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
Created by mycom on 2018/3/12.
public interface IUserService { public void select(); public void update(); public void insert(); public void delect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() {\n }", "@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 public void func_104112_b() {\n \n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void mo38117a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void init() {\n }", "public void mo4359a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private Singletion3() {}", "@Override\r\n\tpublic void init() {}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "Petunia() {\r\n\t\t}", "Consumable() {\n\t}", "@Override\n public void initialize() { \n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "private TMCourse() {\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}", "private void m50366E() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@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 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 void mo6081a() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public Pitonyak_09_02() {\r\n }", "private UsineJoueur() {}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}" ]
[ "0.6045938", "0.5994293", "0.5742296", "0.57383937", "0.57279277", "0.5652337", "0.5652337", "0.5637958", "0.5572891", "0.55696666", "0.55586046", "0.5556214", "0.5555514", "0.5555514", "0.5555514", "0.5555514", "0.5555514", "0.5555514", "0.55487716", "0.5531316", "0.5493069", "0.5492388", "0.54905224", "0.54790944", "0.54742444", "0.5455869", "0.5454333", "0.544566", "0.5444406", "0.5444406", "0.5429564", "0.5425422", "0.54109937", "0.54074985", "0.54026616", "0.5400505", "0.5398321", "0.5397553", "0.53924805", "0.5390312", "0.5389068", "0.53839934", "0.53839934", "0.53839934", "0.53839934", "0.53839934", "0.53787893", "0.53787893", "0.53770304", "0.5371753", "0.5370319", "0.5365004", "0.5357857", "0.5344148", "0.5340708", "0.53373164", "0.5336567", "0.5336567", "0.5331675", "0.53285366", "0.53273207", "0.53260225", "0.5320983", "0.5320983", "0.5320983", "0.53200287", "0.5314238", "0.5314238", "0.5314238", "0.5314238", "0.5314238", "0.5314238", "0.5314238", "0.5314114", "0.5296999", "0.52901196", "0.52901196", "0.52901196", "0.528954", "0.528113", "0.5280508", "0.5274888", "0.52686214", "0.52686214", "0.52686214", "0.5266325", "0.5266325", "0.5266325", "0.52572024", "0.52507645", "0.5244512", "0.5243635", "0.5243363", "0.52427983", "0.52414876", "0.5239696", "0.5236206", "0.5227839", "0.5227415", "0.52261865", "0.52261865" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column HZD_BALANCE.BALANCE_ID
public void setWalletId(Long walletId) { this.walletId = walletId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized double setBalanceForAccId(int AccId, double bal) {\n\t\tConnection dbAccess = DataAccess.getDbAccess();\n\t\tPreparedStatement psttmnt;\n\t\tString querySting;\n\t\tdouble balance = -1.0;\n\t\ttry {\n\t\t\tquerySting = \"UPDATE accounts SET acc_balance = \" + bal + \" WHERE acc_id = \" + AccId;\n\t\t\tpsttmnt = dbAccess.prepareStatement(querySting);\n\t\t\tint result = psttmnt.executeUpdate();\n\t\t\tif (result != 0) {\n\t\t\t\t balance = getBalanceForAccId(AccId);\n\t\t\t}\n\t\t\tdbAccess.close();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\treturn balance;\n\t}", "public void setBalance(Integer balance) {\n this.balance = balance;\n }", "public void setBalance(Integer balance) {\n this.balance = balance;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "public void setBalance( long balance ) {\r\n this.balance = balance;\r\n }", "public void setBalance(final int balance)\n {\n this.balance = balance;\n }", "public void setBalance(BigDecimal balance) {\n this.balance = balance;\n }", "public void setBalance(BigDecimal balance) {\n this.balance = balance;\n }", "private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}", "public void setBalance( Integer account_id, double balance ){\r\n\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n params.put(\"balance\", String.valueOf(balance));\r\n String url = API_DOMAIN + ACCOUNT_EXT + SET_BALANCE;\r\n this.makeVolleyRequest( url, params );\r\n }", "public void setBalance(java.math.BigDecimal balance) {\n this.balance = balance;\n }", "public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public void setBalance(double bal){\n balance = bal;\r\n }", "private void updateBalance(int balance) throws SQLException {\n\t\tupdateBalanceStatement.clearParameters();\n\t\tupdateBalanceStatement.setInt(1, balance);\n\t\tupdateBalanceStatement.setString(2, this.username);\n\t\tupdateBalanceStatement.executeUpdate();\n\t}", "private void setBalance(double balance) {\n this.balance = balance;\n }", "public void setBalance(double balance){\n\t\tthis.balance = balance;\n\t}", "public int balup(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public void setBalance(Double balance) {\r\n this.balance = balance;\r\n }", "public void setBankID(String value) {\n this.bankID = value;\n }", "public void setBalance(){\n balance.setBalance();\n }", "@Override\n\tpublic void updateAccountBalance(double newBalance, int id) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString updateQuery = \"update accounts set balance=? where id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(updateQuery);\n\t\t\tprepStmt.setDouble(1, newBalance);\n\t\t\tprepStmt.setInt(2, id);\n\t\t\tprepStmt.executeUpdate();\n\t}", "public void setJP_BankData_ID (int JP_BankData_ID);", "@Override\n\tpublic int accountUpdate(String id, String balance) {\n\t\tSession session=sessionFactory.openSession();\n\t\tTransaction tr = session.beginTransaction();\n\t\tint executeUpdate = 0;\n\t\tString sqlString=\"update user set balance = '\"+balance+\"' where id ='\"+id+\"'\";\n\t\ttry {\n\t\t\tQuery query=session.createSQLQuery(sqlString);\n\t\t\texecuteUpdate = query.executeUpdate();\n\t\t\tSystem.out.println(\"executeUpdate:\"+executeUpdate);\n\t\t} catch (HibernateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttr.commit();\n\t\t session.close();\n\t\t}\n\t\treturn executeUpdate;\t\n\t}", "public void setBalance(int balance) {\r\n\t\tif(0<=balance&&balance<=1000000) {\r\n\t\tthis.balance = balance;\r\n\t}else{\r\n\t\t System.out.println(\"잘못 입력하셨습니다. 현재 잔고는 \"+this.balance+\"입니다\");\r\n\t}\r\n \r\n}", "void setBalance(double value);", "public void setBalance(double balance)\n {\n startingBalance = balance;\n }", "public void setBalance(double balance) {\n\t\tthis.balance = balance;\n\t}", "private void setBId(int value) {\n \n bId_ = value;\n }", "public void setBalance(float balance) {\n this.balance = balance;\n }", "public void updateBalance(int account_id, int final_amount){\n dbUpdate(\"update ACCOUNTS set BALANCE = \"+ final_amount + \" where ACCOUNT_ID = \" + account_id);\n cache.add(new Account(account_id, final_amount));\n }", "private void setBid(int value) {\n \n bid_ = value;\n }", "public synchronized void setBalance(double balance) {\n this.balance = balance;\n }", "Account(int id, double balance){\r\n\t\t//sets the default values and than the specified values of the id and balance\r\n\t\tsetId(id);\r\n\t\tsetBalance(balance);\t\t \r\n\t\tsetAnnualInterestRate(0);\r\n\t\tthis.dateCreated = new Date(System.currentTimeMillis());\r\n\t }", "public void updateBalance(String mobileNo,int balance)\n\t{\n\t\tContext ctx;\n\t\ttry {\n\t\t\tctx = new InitialContext();\n\t\t\n\t\t\n\t\t DataSource ds=(DataSource)ctx.lookup(\"java:OracleDS\");\n\t\t\tConnection con=ds.getConnection();\n\t\t\tStatement stmt=con.createStatement();\n\t\t\t\n\t\t\tstmt.executeUpdate(\"update mobile set balance=\"+balance+\" where mobileno=\"+mobileNo);\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in connection with Database :\"+e.getMessage());\n\t\t\t\n\t\t}\n\t\t\n\t}", "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 }", "void setManageTransactionBalance(String balance);", "void updateAccount(int id, double accountBalance, String account) {\n // Update only the required keys\n sql = \"UPDATE CashiiDB2 \" + \"SET \" + account + \" ='\" + accountBalance + \"' WHERE AccountNum in ('\" + id + \"')\";\n try {\n st.executeUpdate(sql);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void setBalanceType(Integer balanceType) {\n this.balanceType = balanceType;\n }", "public void setBalanceBonus(BigDecimal balanceBonus) {\n this.balanceBonus = balanceBonus;\n }", "public void InitializeBalance(BigDecimal valor){\n \r\n ChekingAccount chekAc=pRepository.GetChekingAccount();\r\n chekAc.setSaldoInicial(valor);\r\n pRepository.SaveChekingAccount(chekAc);\r\n \r\n }", "public void withdraw(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tif (nowBalance<amount) {\n\t\t\tSystem.out.println(\"No Balance\");\n\t\t\treturn;\n\t\t}\n\t\tlastBalance = nowBalance - amount;\n\t\t//System.out.println(lastBalance);\n\t\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"withdraw : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\tSystem.out.println(\"Ypu got $\"+String.valueOf(amount));\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic Double getBalance( Integer id) {\n\t\tString sql = \"SELECT balance FROM buyers WHERE id = ?;\";\r\n\t\treturn jdbcTemplate.queryForObject( sql, Double.class, id);\r\n\t}", "public void setBankId(long bankId) {\n this.bankId = bankId;\n }", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "public Account(int id, double balance) {\n this();\n this.id = id;\n this.balance = balance;\n }", "@Override\r\n\tpublic void updateBalance( Integer userid, double amount) {\n\t\tif ( getBalance( userid) < amount) {\r\n\t\t\tthrow new RuntimeException( \"用户余额不足!\");\r\n\t\t}\r\n\t\tString sql = \"UPDATE buyers SET balance = balance - ? WHERE id = ?;\";\r\n\t\tjdbcTemplate.update( sql, amount, userid);\r\n\t}", "public void Deposit(Integer accountNo,float depositMoney){\n\tSessionFactory sessionFactory = new Configuration().configure(\"hibernate.cfg.xml\").buildSessionFactory();\n\tSession session = sessionFactory.openSession();\n\tTransaction trans = null;\n\ttry{\n\t\ttrans = session.beginTransaction();\n\t\tQuery query=session.createQuery(\"UPDATE Account set balance+=:balance where accountNo=:accountNo\"); \n\t\tquery.setParameter(\"balance\",depositMoney); \n\t\tquery.setParameter(\"accountNo\",accountNo); \n\t}catch(HibernateException hibernateException){\n\t\tif(trans != null){\n\t\t\ttrans.rollback();\n\t\t}\n\t\thibernateException.printStackTrace();\n\t}\n\t}", "Balance[] findAllByBankAccount_Id(Long id);", "public void setJP_BankDataLine_ID (int JP_BankDataLine_ID);", "protected void setTotalBalance(double balance)\r\n {\r\n totalBalance = balance;\r\n }", "public boolean updateBalance(int account_id, int final_amount, Connection con){\n try {\n tryDbUpdate(\"update ACCOUNTS set BALANCE = \"+ final_amount + \" where ACCOUNT_ID = \" + account_id, con);\n cache.add(new Account(account_id, final_amount));\n } catch (SQLException e) {\n try {\n con.rollback();\n return false;\n } catch (SQLException e1) {\n e1.printStackTrace();\n return false;\n }\n }\n return true;\n }", "void updateBalance(int amount){ \n\t\tbalance = amount;\n\t}", "public void setBidId(int bidId) {\n\t\tthis.bidId = bidId;\n\t}", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "Account(int balance) {\n if(balance <0) this.balance=0;\n this.balance = balance;\n }", "public void setBankAccount(final int newBAccount) {\n this.bankAccount = newBAccount;\n }", "public void deposit(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tlastBalance = nowBalance + amount;\n\t\t//System.out.println(lastBalance);\n\t\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"deposit : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t}", "public GlAccountBank (\n\t\t\tLong in_id\n ) {\n\t\tthis.setId(in_id);\n }", "public void deposit(double amount) {\n balance += amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo='\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n }", "public void setSaldoBank(double saldoBank) {\n this.saldoBank = saldoBank;\n }", "public long getBankId() {\n return bankId;\n }", "public void setC_BankAccount_ID(int C_BankAccount_ID) {\n\t\tif (C_BankAccount_ID < 1)\n\t\t\tthrow new IllegalArgumentException(\"C_BankAccount_ID is mandatory.\");\n\t\tset_ValueNoCheck(\"C_BankAccount_ID\", new Integer(C_BankAccount_ID));\n\t}", "public void setBrandid( Integer brandid )\n {\n this.brandid = brandid ;\n }", "public Builder setBid(int value) {\n copyOnWrite();\n instance.setBid(value);\n return this;\n }", "public Builder setBankID(String value) {\n validate(fields()[7], value);\n this.bankID = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "@Transactional(isolation = Isolation.SERIALIZABLE)\n public void updateAccountBalance(Long accountId, Double newBalance) {\n Account account =accountRepository.findById(accountId)\n .orElseThrow(() -> new AccountNotFoundException(\"Account not found\"));\n account.setBalance(newBalance);\n accountRepository.save(account);\n }", "public Account(int id, double initialBalance){\n\t\tthis.id = id;\n\t\tbalance = initialBalance;\n\t\tdateCreated = new Date();\n\t}", "public void updateBalance(UUID accountId, double amount) {\n Account account = repository.getAccount(accountId);\n account.updateBalance(amount);\n repository.save(account);\n }", "public Builder setBalance(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n balance_ = value;\n onChanged();\n return this;\n }", "public void setBalance(double newBalance) {\n\t\tbalance = newBalance;\n\t\tbalance = Math.round(balance * 100.0) / 100.0;\n\t}", "public void setBankBranchID(String value) {\n this.bankBranchID = value;\n }", "public void setBalance(final double newBalance) {\n this.balance = newBalance;\n }", "public BankAccount findAccountById(int currentBankID) throws SQLException;", "public void setStatementId(BigDecimal statementId) {\n getStatementIdProperty().setValue(statementId);\n }", "public String getBankID() {\n return bankID;\n }", "public Balance(final BigDecimal value) {\r\n this.value = value;\r\n }", "public void setIdContrato(BigDecimal idContrato) {\r\n this.idContrato = idContrato;\r\n }", "public void setC_BPartner_ID (int C_BPartner_ID);", "public void setId(BigDecimal id) {\n\t\tthis.id = id;\n\t}", "protected void initUserAccount(String userServer, long userId, String userName, String balanceId) {\r\n\t\tDataCollection.remove(userServer, \"finance\", \"bill_\" + userId, new BasicDBObject());\r\n\t\tBasicDBObject oField = null;\r\n\t\tif (StringUtil.isEmpty(balanceId)) {\r\n\t\t\toField = new BasicDBObject().append(\"balance\", 0).append(\"income\", 0).append(\"withdraw\", 0).append(\"timestamp\", System.currentTimeMillis())\r\n\t\t\t\t\t.append(\"userId\", userId).append(\"userName\", userName);\r\n\t\t} else {\r\n\t\t\toField = new BasicDBObject().append(\"_id\", new ObjectId(balanceId)).append(\"balance\", 0).append(\"income\", 0).append(\"withdraw\", 0)\r\n\t\t\t\t\t.append(\"timestamp\", System.currentTimeMillis()).append(\"userId\", userId).append(\"userName\", userName);\r\n\t\t}\r\n\t\tbalanceId = DataCollection.insert(userServer, \"finance\", \"bill_\" + userId, oField).toString();\r\n\t\tDataCollection.createIndex(userServer, \"finance\", \"bill_\" + userId, \"keyIdx\", new BasicDBObject().append(\"shortId\", 1), false);\r\n\t\tString sql = \"update user set balance=0,income=0,withdraw=0,income_total=0,withdraw_total=0,sms_count=0,balance_id=? where user_id=?\";\r\n\t\tDataSet.update(Const.defaultMysqlServer, Const.defaultMysqlDB, sql, new String[] { balanceId, String.valueOf(userId) });\r\n\t}", "public int getBalance() {\n return this.balance;\n\n }", "public void addBalance(long balance) {\r\n this.balance += balance;\r\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 wire(String accountNumber,int bankNumber, String toAccountNumber, int amount) {\n\t\t\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll, lp, ls, mm, nn;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\tint tolastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tif (nowBalance<amount) {\n\t\t\tSystem.out.println(\"No Balance\");\n\t\t\treturn;\n\t\t}\n\t\tlastBalance = nowBalance - amount;\n\t\t//System.out.println(lastBalance);\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tls = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tls.setInt(1, lastBalance);\n\t\tls.setString(2, accountNumber.toString());\n\t\tls.executeUpdate();\n\t\t\n\t\t\n\t\t\n\t\t//to account\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql3 = \"select bankName from bank where bankNumber=?\";\n\t\tll= (PreparedStatement) conn.prepareStatement(sql3);\n\t\tll.setString(1, String.valueOf(bankNumber).toString());\n\t\tResultSet rs3 = ll.executeQuery();\n\t\tString toname = \"\";\n\t\twhile(rs3.next()) { \n\t\t\ttoname=rs3.getString(\"bankName\");\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tString sql4 = \"select balance,userId from \"+toname+\" where accountNumber=?\";\n\t\tpp= (PreparedStatement) conn.prepareStatement(sql4);\n\t\tpp.setString(1, accountNumber.toString());\n\t\tResultSet rs4 = pp.executeQuery();\n\t\tint tonowBalance = 0;\n\t\tString toid = \"\";\n\t\twhile(rs4.next()) { \n\t\t\ttonowBalance=rs4.getInt(\"balance\");\n\t\t\ttoid = rs4.getString(\"userId\");\n\t\t}\n\t\t\n\t\ttolastBalance = tonowBalance + amount;\n\t\t//System.out.println(lastBalance);\n\t\tString sql5 = \"UPDATE \"+toname+\" SET balance=? where accountNumber=?\";\n\t\tlp = (PreparedStatement) conn.prepareStatement(sql5);\n\t\tlp.setInt(1, tolastBalance);\n\t\tlp.setString(2, toAccountNumber.toString());\n\t\tlp.executeUpdate();\n\t\t\n\t\t\n\t\t//log\n\t\tString logs = \"wired : \"+ amount+\" to \"+toAccountNumber+\"/ balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tmm = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tmm.setString(1, logs);\n\t\tmm.executeUpdate();\n\t\tSystem.out.println(\"You wired $\"+String.valueOf(amount));\n\t\t\n\t\tString logs1 = \"get : \"+ amount+\" from \" +accountNumber+ \"/ balance: \"+String.valueOf(tolastBalance);\n\t\tString sql12 = \"insert into \"+toid+\" (log) values (?)\";\n\t\tnn = (PreparedStatement) conn.prepareStatement(sql12);\n\t\tnn.setString(1, logs1);\n\t\tnn.executeUpdate();\n\t\tSystem.out.println(\"You got $\"+String.valueOf(amount));\n\t\t\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t}", "public void setC_BPartnerCashTrx_ID(int C_BPartnerCashTrx_ID) {\n\t\tif (C_BPartnerCashTrx_ID <= 0)\n\t\t\tset_Value(\"C_BPartnerCashTrx_ID\", null);\n\t\telse\n\t\t\tset_Value(\"C_BPartnerCashTrx_ID\", new Integer(C_BPartnerCashTrx_ID));\n\t}", "public int getBalance() {\n return total_bal;\n }", "public static void getAcountsBalance(int value) {\n\t\t\t\n\t\t\taccounts.clear();\n\n\t\t\tString query = \"select account.accID, accType, balance, dateCreated, fName, lName \" + \n\t\t \"from ser322.account,ser322.customer \" + \n\t\t \"WHERE customer.accID = account.accID AND balance =\" + value;\n\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tStatement stmt = con.getConnection().createStatement();\n\t\t\t ResultSet rs = stmt.executeQuery(query);\n\t\t while (rs.next()) {\n\t\t \taccounts.addElement(new Account(rs.getInt(\"accID\"),rs.getString(\"accType\"),\n\t\t \t\t\t rs.getFloat(\"balance\"),rs.getDate(\"dateCreated\"), rs.getString(\"fName\"), rs.getString(\"lName\")));\n\t\t \n\t\t }\n\t\t \n\t\t } catch (SQLException e ) {\n\t\t \tSystem.out.println(\"QUERY WRONG - getAcountsBalance\");\n\t\t }\n\t\n\t\t}", "public String getBankID() {\n return bankID;\n }", "public int getBalance()\n {\n return balance;\n }", "public void setAD_Tree_BPartner_ID(int AD_Tree_BPartner_ID) {\n\t\tif (AD_Tree_BPartner_ID <= 0)\n\t\t\tset_ValueNoCheck(\"AD_Tree_BPartner_ID\", null);\n\t\telse\n\t\t\tset_ValueNoCheck(\"AD_Tree_BPartner_ID\", new Integer(\n\t\t\t\t\tAD_Tree_BPartner_ID));\n\t}", "public void setIdEstado(BigDecimal idEstado) {\r\n this.idEstado = idEstado;\r\n }", "public void setTotalDebit(java.math.BigDecimal totalDebit)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOTALDEBIT$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TOTALDEBIT$0);\n }\n target.setBigDecimalValue(totalDebit);\n }\n }", "public Account(int id, double balance) {\n this();\n this.name = \"Account\";\n this.id = id;\n this.balance = balance;\n }", "public Integer getBalance() {\n return balance;\n }", "public Integer getBalance() {\n return balance;\n }", "String addBalance(Integer clientAccountId, Integer balance) throws ServiceException;", "BigDecimal getClosingDebitBalance();", "public abstract void updateBalance(Balance balance, LedgerEntry.Subtype subtype, long amount) throws TransactionException;", "public double getBal() {\n\t\t return balance;\r\n\t }", "public int getBalance() {\n return balance;\n }", "public int getBalance() {\n return balance;\n }" ]
[ "0.65393525", "0.6356108", "0.6356108", "0.6318363", "0.62819785", "0.62150127", "0.61942405", "0.61942405", "0.61681736", "0.6142864", "0.61093456", "0.6087146", "0.6065414", "0.60616994", "0.59676087", "0.5921689", "0.59050524", "0.5902455", "0.58981925", "0.5882443", "0.587284", "0.5860255", "0.58510303", "0.5794648", "0.579393", "0.57884085", "0.5778208", "0.5770243", "0.57541776", "0.5748152", "0.57366943", "0.57349056", "0.5694078", "0.56853336", "0.56813234", "0.5656558", "0.5628538", "0.5592022", "0.5539805", "0.55122197", "0.54833746", "0.5420815", "0.5408558", "0.53935903", "0.5391713", "0.5390105", "0.5384102", "0.53707886", "0.53654414", "0.5353131", "0.5350378", "0.5340203", "0.5305361", "0.5301851", "0.5277187", "0.52728623", "0.5267275", "0.52630144", "0.5256557", "0.5254829", "0.5239965", "0.52329063", "0.5220441", "0.5213529", "0.52045107", "0.51867616", "0.51763004", "0.51533514", "0.515089", "0.51453835", "0.5144639", "0.51412547", "0.51404107", "0.5138384", "0.51354694", "0.5134228", "0.51242375", "0.51116866", "0.50976485", "0.5094016", "0.50852746", "0.50834835", "0.5082419", "0.5081393", "0.50773287", "0.50727606", "0.5067585", "0.50666183", "0.5060616", "0.5057054", "0.50396776", "0.5038881", "0.50176173", "0.50168777", "0.50168777", "0.50142294", "0.5007358", "0.50037426", "0.5001216", "0.49959445", "0.49959445" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column HZD_BALANCE.USER_ID
public Long getUserId() { return userId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BigDecimal getUserId() {\r\n return userId;\r\n }", "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}", "public Integer getUser_id() {\n\t\treturn user_id;\n\t}", "Integer getUserId();", "private int getBalance() throws SQLException {\n\t\tgetBalanceStatement.clearParameters();\n\t\tgetBalanceStatement.setString(1, this.username);\n\t\tResultSet result = getBalanceStatement.executeQuery();\n\t\tresult.next();\n\t\tint out = result.getInt(1);\n\t\tresult.close();\n\t\treturn out;\n\t}", "public Number getUserIdFk() {\r\n return (Number) getAttributeInternal(USERIDFK);\r\n }", "public ResultSet returnAccno(Long userid)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select bank_acc_no from CUSTOMER_DETAILS where user_id=\"+userid+\"\");\r\n\treturn rs;\r\n}", "public Integer getUserID() {\n return userID;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "@Override\n\t\tpublic User getUserInNo(int userNo) throws Exception {\n\t\t\treturn sqlSession.selectOne(\"UserMapper.getUserInNo\", userNo);\n\t\t}", "public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}", "public String findId(User user) throws Exception {\n\t\t\treturn sqlSession.selectOne(\"UserMapper.findId\", user);\n\t\t}", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public Integer getUserid() {\n\t\treturn this.userid;\n\t}", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public int getIdUser() {\n return idUser;\n }", "public int getIdUser() {\n return idUser;\n }", "public static int getUserId(String userName)\n {\n int userID = 0;\n try {\n Statement statement = DBConnection.getConnection().createStatement();\n String userIdQuery = \"SELECT User_ID FROM users WHERE User_Name='\" + userName + \"'\";\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(userIdQuery);\n ResultSet rs = ps.executeQuery();\n\n while(rs.next()) {\n userID = rs.getInt(\"User_ID\");\n return userID;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return userID;\n }", "BankUserInfo selectByPrimaryKey(String userId);", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "Long getUserId();", "public int getIduser() {\n return iduser;\n }", "public Integer getUserId() {\r\n return userId;\r\n }", "public Integer getUserId() {\r\n return userId;\r\n }", "public Long getUserid() {\r\n return userid;\r\n }", "public static String getAccountNumber(String user){\n return \"select u_accountnum from users where u_name = '\" + user + \"'\";\n }", "public int getUserId(User user) throws Exception;", "long getUserId();", "long getUserId();", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID()\n {\n return userID;\n }", "public int getUserID()\n {\n return this.userID;\n }", "public int getUserId()\r\n\t{\r\n\t\treturn this.userId;\r\n\t}", "private int getOrInit(String userId, HashMap<String, Integer> balance) {\n if (balance.containsKey(userId)) {\n return balance.get(userId);\n } else {\n return 1000;\n }\n }", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public Integer getUserId() {\r\n\t\treturn userId;\r\n\t}", "public Integer getUserId() {\r\n\t\treturn userId;\r\n\t}", "public Integer getUserId() {\r\n\t\treturn userId;\r\n\t}", "public int getUserId() {\r\n return this.UserId;\r\n }", "BankUserInfo selectByPrimaryKey(String bankUserId);", "public Integer userID() {\n return this.userID;\n }", "public Integer getUserId() {\n\t\treturn userId;\n\t}", "public int getUserNumber() throws AdminPersistenceException {\n return getCount(\"ST_User\", \"id\", \"accessLevel <> ?\", \"R\");\n }", "public int getAD_User_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_User_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }" ]
[ "0.64549327", "0.63934344", "0.6210864", "0.6174411", "0.611319", "0.6087718", "0.60755455", "0.6047651", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.60461926", "0.5992199", "0.59876114", "0.59491295", "0.5928415", "0.5928415", "0.5928415", "0.5917661", "0.5915757", "0.5895155", "0.5895155", "0.5882438", "0.588142", "0.58813924", "0.588013", "0.58744633", "0.5868935", "0.5868935", "0.5867737", "0.5853403", "0.5835781", "0.582543", "0.582543", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58233327", "0.58205116", "0.58205116", "0.58205116", "0.5809178", "0.58012074", "0.57778794", "0.57680273", "0.5752217", "0.5752217", "0.5752217", "0.5752217", "0.57494044", "0.57494044", "0.57494044", "0.574898", "0.5740115", "0.57085127", "0.57025653", "0.570195", "0.56739944", "0.5666181", "0.5666181", "0.56647086", "0.56647086", "0.56647086", "0.56647086", "0.56647086", "0.56647086", "0.56647086", "0.56647086", "0.56647086", "0.56647086", "0.56647086" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column HZD_BALANCE.USER_ID
public void setUserId(Long userId) { this.userId = userId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initUserAccount(String userServer, long userId, String userName, String balanceId) {\r\n\t\tDataCollection.remove(userServer, \"finance\", \"bill_\" + userId, new BasicDBObject());\r\n\t\tBasicDBObject oField = null;\r\n\t\tif (StringUtil.isEmpty(balanceId)) {\r\n\t\t\toField = new BasicDBObject().append(\"balance\", 0).append(\"income\", 0).append(\"withdraw\", 0).append(\"timestamp\", System.currentTimeMillis())\r\n\t\t\t\t\t.append(\"userId\", userId).append(\"userName\", userName);\r\n\t\t} else {\r\n\t\t\toField = new BasicDBObject().append(\"_id\", new ObjectId(balanceId)).append(\"balance\", 0).append(\"income\", 0).append(\"withdraw\", 0)\r\n\t\t\t\t\t.append(\"timestamp\", System.currentTimeMillis()).append(\"userId\", userId).append(\"userName\", userName);\r\n\t\t}\r\n\t\tbalanceId = DataCollection.insert(userServer, \"finance\", \"bill_\" + userId, oField).toString();\r\n\t\tDataCollection.createIndex(userServer, \"finance\", \"bill_\" + userId, \"keyIdx\", new BasicDBObject().append(\"shortId\", 1), false);\r\n\t\tString sql = \"update user set balance=0,income=0,withdraw=0,income_total=0,withdraw_total=0,sms_count=0,balance_id=? where user_id=?\";\r\n\t\tDataSet.update(Const.defaultMysqlServer, Const.defaultMysqlDB, sql, new String[] { balanceId, String.valueOf(userId) });\r\n\t}", "public void setIdUser(int value) {\n this.idUser = value;\n }", "public void setUserId(BigDecimal userId) {\r\n this.userId = userId;\r\n }", "public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}", "public void setUserId(int value) {\n this.userId = value;\n }", "private void setUserId(int value) {\n \n userId_ = value;\n }", "@Override\r\n\tpublic void updateBalance( Integer userid, double amount) {\n\t\tif ( getBalance( userid) < amount) {\r\n\t\t\tthrow new RuntimeException( \"用户余额不足!\");\r\n\t\t}\r\n\t\tString sql = \"UPDATE buyers SET balance = balance - ? WHERE id = ?;\";\r\n\t\tjdbcTemplate.update( sql, amount, userid);\r\n\t}", "public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }", "public void setId_user(int id_user) {\n this.id_user = id_user;\n }", "public void setAD_User_ID (int AD_User_ID);", "public void setUserIdFk(Number value) {\r\n setAttributeInternal(USERIDFK, value);\r\n }", "public void setIduser(int aIduser) {\n iduser = aIduser;\n }", "private void setUserId(long value) {\n \n userId_ = value;\n }", "public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long value) {\r\n this.userId = value;\r\n }", "public void setUserID(int value) {\n this.userID = value;\n }", "void setUserId(Long userId);", "private void setUserId(long value) {\n\n userId_ = value;\n }", "public void setLastUpdUserId(Integer value) {\n set(6, value);\n }", "public void setUserId(long value) {\n this.userId = value;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "public static void setUserId(int zUserId) {\n userId = zUserId;\n }", "@Override\n\tpublic Integer insert(User user) {\n\t\tuserMapper.insert(user);\n\t\t// MyBatisUtil.closeSqlSession();\n\t\treturn user.getId();\n\t}", "public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }", "public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }", "public BigDecimal getUserId() {\r\n return userId;\r\n }", "public void setUser1X_ID (int User1X_ID);", "void setUserId(int newId) {\r\n\t\t\tuserId = newId;\r\n\t\t}", "private synchronized void setUser(int userId) throws SQLException {\n if(onUserDeletion == null) {\n onUserDeletion = this::onUserDeletion;\n }\n if(this.userId != -1) {\n UserService.unsubscribeFromDeletionEvents(this.userId, onUserDeletion);\n }\n this.userId = userId;\n if(userId != -1) {\n try {\n UserService.subscribeToDeletionEvents(userId, onUserDeletion);\n } catch(IllegalArgumentException e) {\n this.userId = -1;\n }\n }\n }", "private int getOrInit(String userId, HashMap<String, Integer> balance) {\n if (balance.containsKey(userId)) {\n return balance.get(userId);\n } else {\n return 1000;\n }\n }", "public void setUserId(int userId)\r\n\t{\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId( Integer userId ) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(Integer userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(Integer userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(Long userId)\n/* */ {\n/* 80 */ this.userId = userId;\n/* */ }", "@Override\n\tpublic void setUserId(long userId);", "@Override\n\tpublic void setUserId(long userId);", "public void setUser1Z_ID (int User1Z_ID);", "public void setUser2_ID(int User2_ID) {\n\t\tif (User2_ID <= 0)\n\t\t\tset_Value(\"User2_ID\", null);\n\t\telse\n\t\t\tset_Value(\"User2_ID\", new Integer(User2_ID));\n\t}", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setAD_User_ID(int AD_User_ID) {\n\t\tif (AD_User_ID <= 0)\n\t\t\tset_Value(\"AD_User_ID\", null);\n\t\telse\n\t\t\tset_Value(\"AD_User_ID\", new Integer(AD_User_ID));\n\t}", "@Override\n public boolean updateUserById(User user ) {\n boolean tag=false;\n this.sqlSession = MyBatisUtils.getSqlSession();\n tag = this.sqlSession.getMapper(UserDao.class).updateUserInfoById(user);\n sqlSession.commit();\n return tag;\n }", "public void setUserId(int userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(Integer userId) {\n\t\tthis.userId = userId;\n\t}", "public void setUser1Y_ID (int User1Y_ID);", "public void setUserId(int userId) {\n this.mUserId = userId;\n }", "public void setUserId(int userId) {\n this.mUserId = userId;\n }", "public void setUser (User user) {\n userId = user.id != null ? user.id : User.getUserId(user.username);\n }", "public void setUser1_ID(int User1_ID) {\n\t\tif (User1_ID <= 0)\n\t\t\tset_Value(\"User1_ID\", null);\n\t\telse\n\t\t\tset_Value(\"User1_ID\", new Integer(User1_ID));\n\t}", "public void setUserId(String value) {\r\n setAttributeInternal(USERID, value);\r\n }", "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}", "public void setUserId(java.lang.Long value) {\n this.userId = value;\n }", "public void setUser1_ID (int User1_ID);", "public void setUser1_ID (int User1_ID);", "public void setUserAccountId(Long userAccountId) {\r\n this.userAccountId = userAccountId;\r\n }", "public void setUserId(int userId) {\n\t\tthis.userId = userId;\n\t}", "@Override\r\n\tpublic void saveCurrentBalance(Double btcprice, Double balance, Long userId) {\r\n\t\taccountDataDao.saveCurrentBalance(btcprice, balance, userId);\t\t\r\n\t}", "private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }", "@Override\r\n\tpublic Integer registerUser(User user) throws SQLException, ClassNotFoundException, IOException \r\n\t{\r\n\t\t//Declare all variables\r\n\t\t//Create Connection, PreparedStatement, and ResultSet Objects and\r\n\t\t//initialize to null. Create an OracleConnection Object with Java default Constructor.\r\n\t\tConnection conn = null;\t\t\t\r\n\t\tPreparedStatement stmt = null;\t\r\n\t\tResultSet rs = null;\t\t\t\r\n\t\tOracleConnection orcl= new OracleConnection();\t\r\n\t\t\r\n\t\t// Assign query statement (SQL) to String variable\r\n\t\tString insertString = \"insert into users (user_name, password, admin_role) values (?,?,?)\";\r\n\t\t\r\n\t\t//Assign column id value to String array for auto generated keys\r\n\t\tString[] COL = {\"user_id\"};\r\n\t\tint ID = -1;\r\n\t \r\n\t\t//Assign value to Connection Object using getConnection\r\n\t\t//method from OracleConnection Class.\r\n\t conn = orcl.getConnection(); \r\n\t\tSystem.out.println(\"DATABASE CONNECTION ESTABLISHED\");\r\n\t \r\n\t try\r\n\t\t{\r\n\t \t//Initialize Statement Object with passing of query and column id \r\n\t \t//Initialize Statement Object with column index and value to be inserted into the column\r\n\t stmt = conn.prepareStatement(insertString, COL);\r\n\t \r\n\t stmt.setString(1, user.getUserName());\r\n\t stmt.setString(2, user.getPassword());\r\n\t stmt.setString(3, user.getAdminRole());\r\n\t \r\n\t //Execute query\r\n\t stmt.executeUpdate();\r\n\t \r\n\t //Assign returned values to ResultSet Object.\r\n\t rs = stmt.getGeneratedKeys();\r\n\t if(rs != null && rs.next()) \r\n\t {\r\n\t ID = rs.getInt(1);\r\n\t user.setUserId(ID);\r\n\t System.out.println(\"The user has been registered as USER ID#: \"+ID);\r\n\t }\r\n\t }\r\n\t catch (SQLException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\t//Close all database access Objects\r\n\t\t\tif (rs != null) \r\n\t\t\t{\r\n\t\t\t\trs.close();\r\n\t\t\t}\r\n\t\t\tif (stmt != null) \r\n\t\t\t{\r\n\t\t\t\tstmt.close();\r\n\t\t\t}\r\n\t\t\tif (conn != null) \r\n\t\t\t{\r\n\t\t\t\tconn.close();\r\n\t\t\t}\r\n\t\t}\r\n\t \r\n\t\treturn ID;\r\n\t}", "public int update(User user) throws SQLException {\n\t\treturn 0;\n\t}", "public void setUserID(long userID) {\n UserID = userID;\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_second.setUserId(userId);\n\t}", "public void setUserID(Integer userID) {\n this.userID = userID;\n }", "@Update({\r\n \"update umajin.user_master\",\r\n \"set nickname = #{nickname,jdbcType=VARCHAR},\",\r\n \"sex = #{sex,jdbcType=INTEGER},\",\r\n \"age = #{age,jdbcType=INTEGER},\",\r\n \"birthday = #{birthday,jdbcType=DATE},\",\r\n \"regist_date = #{regist_date,jdbcType=TIMESTAMP},\",\r\n \"update_date = #{update_date,jdbcType=TIMESTAMP},\",\r\n \"disable = #{disable,jdbcType=INTEGER}\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n int updateByPrimaryKey(UserMaster record);", "@Update({\n \"update xxd_user\",\n \"set username = #{username,jdbcType=VARCHAR},\",\n \"password = #{password,jdbcType=VARCHAR},\",\n \"sex = #{sex,jdbcType=SMALLINT},\",\n \"phonenumber = #{phonenumber,jdbcType=VARCHAR},\",\n \"id_card = #{idCard,jdbcType=VARCHAR},\",\n \"bank_card = #{bankCard,jdbcType=VARCHAR},\",\n \"bank_location = #{bankLocation,jdbcType=VARCHAR},\",\n \"type = #{type,jdbcType=SMALLINT},\",\n \"salt = #{salt,jdbcType=VARCHAR}\",\n \"is_able = #{is_able,jdbcType=SMALLINT},\",\n \"create_time = #{create_time,jdbcType=VARCHAR}\",\n \"parent_id = #{parent_id,jdbcType=INTEGER}\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(XxdUser record);", "public void updateUser(int uid) {\n\t\tList<String> userParamList = null;\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet result = null;\n\t\tString updateSql = \"update \" + Constant.schema\n\t\t\t\t+ \".USER set lucky=? where uid=?\";\n\n\t\ttry {\n\t\t\tuserParamList = new ArrayList<String>();\n\t\t\tuserParamList.add(\"1\");\n\t\t\tuserParamList.add(\"\"+uid);\n\t\t\t\n\t\t\tconn = DBConUtil.getConn();\n\t\t\tpstmt = conn.prepareStatement(updateSql);\n\t\t\tconn.setAutoCommit(true);\n\t\t\tDBConUtil.executeUpdate(userParamList, conn, pstmt);\n\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tDBConUtil.close(conn, pstmt, result);\n\t\t}\n\t}" ]
[ "0.6279982", "0.6247058", "0.6194111", "0.617137", "0.6051838", "0.59722203", "0.5957132", "0.591315", "0.58751297", "0.5857939", "0.5854443", "0.5829794", "0.5794817", "0.5788226", "0.57696605", "0.57696605", "0.57696605", "0.57696605", "0.57485694", "0.5748476", "0.5723628", "0.5721967", "0.5715604", "0.5713637", "0.56817496", "0.5627891", "0.56074303", "0.55965394", "0.55965394", "0.559362", "0.55845916", "0.5583647", "0.5554907", "0.555021", "0.5543598", "0.5542345", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55268174", "0.55250365", "0.55250365", "0.55250365", "0.5522768", "0.55026954", "0.55026954", "0.5494958", "0.54887664", "0.5486362", "0.5486362", "0.5486362", "0.5475245", "0.5465009", "0.545288", "0.5443549", "0.542507", "0.5416889", "0.5407379", "0.5404028", "0.53996396", "0.5395849", "0.53893626", "0.5386414", "0.5385909", "0.5385909", "0.5383054", "0.53624946", "0.53568393", "0.53568184", "0.53492945", "0.5340369", "0.53353345", "0.5324273", "0.53193766", "0.53053385", "0.53048366", "0.53040963" ]
0.53505874
91
This method was generated by MyBatis Generator. This method returns the value of the database column HZD_BALANCE.MONEY
public BigDecimal getMoney() { return money; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }", "BigDecimal getClosingDebitBalance();", "public Money getTotalBalance();", "BigDecimal getOpeningDebitBalance();", "BigDecimal getOpeningDebitBalance();", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "BigDecimal getAmount();", "BigDecimal getClosingCreditBalance();", "public float getBalance()\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tDBConnection ToDB = new DBConnection(); //Have a connection to the DB\r\n\t\t\tConnection DBConn = ToDB.openConn();\r\n\t\t\tStatement Stmt = DBConn.createStatement();\r\n\t\t\tString SQL_Command = \"SELECT Balance FROM SavingsAccount WHERE SavingsAccountNumber ='\"+SavingsAccountNumber+\"'\"; //SQL query command for Balance\r\n\t\t\tResultSet Rslt = Stmt.executeQuery(SQL_Command);\r\n\t\t\twhile (Rslt.next())\r\n\t\t\t{\r\n\t\t\t\tBalance = Rslt.getFloat(1);\r\n\t\t\t}\r\n\t\t\tStmt.close();\r\n\t\t\tToDB.closeConn();\r\n\t\t}\r\n\t\tcatch(SQLException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SQLException: \" + e);\r\n\t\t\twhile (e != null)\r\n\t\t\t{ System.out.println(\"SQLState: \" + e.getSQLState());\r\n\t\t\t\tSystem.out.println(\"Message: \" + e.getMessage());\r\n\t\t\t\tSystem.out.println(\"Vendor: \" + e.getErrorCode());\r\n\t\t\t\te = e.getNextException();\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception: \" + e);\r\n\t\t\te.printStackTrace ();\r\n\t\t}\r\n\t\treturn Balance;\r\n\t}", "public BigDecimal getBALLOON_AMOUNT() {\r\n return BALLOON_AMOUNT;\r\n }", "public BigDecimal getBALLOON_AMOUNT() {\r\n return BALLOON_AMOUNT;\r\n }", "public int getBalance() {\n return total_bal;\n }", "int getMoneyValue();", "int getMoneyValue();", "double getMoney();", "BigDecimal getOpeningCreditBalance();", "BigDecimal getOpeningCreditBalance();", "public double getBal() {\n\t\t return balance;\r\n\t }", "public int getMoney() {\n return this.budget;\n }", "public BigDecimal getBalance() {\n return balance;\n }", "public BigDecimal getBalance() {\n return balance;\n }", "public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }", "Money getCashSettlementAmount();", "public Integer getMoney() {\r\n return money;\r\n }", "public double getBalance(){\n return balance.getBalance();\n }", "public Integer getMoney() {\n return money;\n }", "int getBonusMoney();", "int getMoney();", "public BigDecimal getPayAmt();", "public BigDecimal getCashMoney() {\n return cashMoney;\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public int getMoney() {\n return wallet.getMoney();\n }", "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "public AmountOfMoney getCashRegisterBalance(){\n return cashRegister.getBalance();\n }", "public double getMoney() {\n return this.money;\n }", "public double getBalance()\n \n {\n \n return balance;\n \n }", "double getBalance();", "double getBalance();", "@Override\npublic Currency getCurrency() {\n\treturn balance.getCurrency();\n}", "public double getMoney() {\n return money_;\n }", "public java.math.BigDecimal getBalance() {\n return balance;\n }", "public Double getTotalBuyMoney() {\r\n return totalBuyMoney;\r\n }", "public double getMoney() {\n return money_;\n }", "public int getMoney() {\n return money_;\n }", "public Integer getAccountBalance(int account_id){\n Account a = cache.get(account_id);\n if(a != null) return a.getBalance();\n\n try (\n Statement s = rawDataSource.getConnection().createStatement();\n ResultSet res = s.executeQuery(\n \"SELECT BALANCE FROM ACCOUNTS WHERE ACCOUNT_ID = \" + account_id)) {\n\n if (res.next())\n return res.getInt(\"BALANCE\");\n } catch (SQLException ex) {\n return null;\n }\n\n return null;\n }", "public int getMoney() {\n return money_;\n }", "public double getBalance(){\n return this.balance;\r\n }", "Money getItemValue();", "public double getBalance(){\r\n\t\treturn balance;\r\n\t}", "public double getBalance(){\n return balance;\n }", "public long getBalance() {\n\t\n\treturn balance;\n}", "public double getMoney() {\n\t\treturn totalMoney;\n\t}", "public Double getBalance() {\r\n return balance;\r\n }", "public int getMoney() {\n \t\treturn money;\n \t}", "public double getBankAccountBalance() {\r\n\t\t\r\n\t\tdouble balance = 0.0;\r\n\t\t\r\n\t\t\t\tif( customerBankAccountList.contains(this.getCustomer() ) ) \r\n\t\t\t\t{\t\r\n\t\t\t\t\tbalance = this.getCustomer().getBalance();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\treturn balance;\r\n\t\t}", "public int getMoney() {\r\n\t\treturn money;\r\n\t}", "public int getMoney() {\r\n\t\treturn money;\r\n\t}", "public long getMoney() {\n return money;\n }", "public int getMoney(){\n\t\treturn money;\n\t}", "public int getMoney(){\n\t\treturn money;\n\t}", "public Integer getBalance() {\n return balance;\n }", "public Integer getBalance() {\n return balance;\n }", "public BigDecimal getBalanceBonus() {\n return balanceBonus;\n }", "public double getBalance() {\n return balance;\n }", "public BigDecimal getfMcashoutAmount() {\r\n return fMcashoutAmount;\r\n }", "public long getBalance() {\n return this.balance;\n }", "public BigDecimal getBSCA_ProfitPriceLimit();", "public Double getMoney() {\n return money;\n }", "public double getAmountBank() {\n return this.amountBank;\n }", "public double getBalance()\n {\n return balance;\n }", "public BigDecimal getMcashoutAmount() {\r\n return mcashoutAmount;\r\n }", "public java.math.BigDecimal getTotalDebit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOTALDEBIT$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getBigDecimalValue();\n }\n }", "com.google.protobuf.DoubleValue getTransactionAmountMicros();", "public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }", "public double getBalance(){\n return balance;\r\n }", "public int getMoneyAfterBet() {\n moneyAfterBet = initialBudget - betAmount;\n // initialBudget = moneyAfterBet;\n return moneyAfterBet;\n\n }", "public double getBalance() {\n return this.balance;\n }", "public BigDecimal getAMOUNT() {\r\n return AMOUNT;\r\n }", "public double getBalance(){\n return balance;\n }", "public double getBalance(){\n\t\treturn balance;\n\t}", "public BigDecimal getWithdrawMoney() {\n return withdrawMoney;\n }", "public int getMoney() {\n return money;\n }", "@Override\n\tpublic BigDecimal getBackAccMoney(String bidId, String period) {\n\t\treturn dao.getBackAccMoney(bidId,period);\n\t}", "public int getBalance(String mobileNo)\n {\n \t\tResultSet rs;\n \t Context ctx;\n \t int balance=0;\n\t\ttry {\n\t\t\tctx = new InitialContext();\n\t\t\n\t\t\n\t\t DataSource ds=(DataSource)ctx.lookup(\"java:OracleDS\");\n\t\t\tConnection con=ds.getConnection();\n\t\t\tStatement stmt=con.createStatement();\n\t\t\t\n\t\t\trs=stmt.executeQuery(\"select Balance from mobile where mobileno=\"+mobileNo);\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t balance=rs.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t\treturn balance;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in connection with Database :\"+e.getMessage());\n\t\t\treturn 0;\n\t\t}\n\t\t\n \t \n }", "@Override\r\n\tpublic Double getBalance( Integer id) {\n\t\tString sql = \"SELECT balance FROM buyers WHERE id = ?;\";\r\n\t\treturn jdbcTemplate.queryForObject( sql, Double.class, id);\r\n\t}", "BigDecimal getSumaryTechoCveFuente(BudgetKeyEntity budgetKeyEntity);", "public double getMoney() {\n\t\treturn money;\n\t}", "public double getMoney() {\n\t\treturn money;\n\t}", "public BaseJson<BigDecimal> wallet_balance() throws Exception {\n String s = main(\"wallet_balance\",\"[]\");\n return JsonHelper.jsonStr2Obj(s, BaseJson.class);\n }", "public int getMoney() {\n\t\treturn money;\n\t}", "public BigDecimal getLBR_TaxAmtCredit();", "public int getBalance()\n {\n return balance;\n }", "public double getBalance(){\n return balance;\n }" ]
[ "0.65793824", "0.6502551", "0.6391795", "0.6371437", "0.6371437", "0.62764627", "0.62764627", "0.62764627", "0.62686455", "0.6226868", "0.62198776", "0.6198973", "0.6198973", "0.6190295", "0.61887085", "0.61887085", "0.6177321", "0.61228335", "0.61228335", "0.6114535", "0.60911876", "0.60796225", "0.60796225", "0.60579014", "0.60564464", "0.60182977", "0.60111165", "0.59895116", "0.59801483", "0.595963", "0.5951722", "0.5947037", "0.5944409", "0.5944409", "0.59218967", "0.59218967", "0.5920512", "0.5912135", "0.5890443", "0.5889341", "0.58675486", "0.58624303", "0.58624303", "0.58596224", "0.5857042", "0.5832284", "0.5826431", "0.5824175", "0.5821055", "0.58181834", "0.58132267", "0.58120215", "0.5804036", "0.57998985", "0.57960784", "0.57893264", "0.57828605", "0.5782649", "0.5779235", "0.57773525", "0.5777", "0.5777", "0.5774599", "0.577195", "0.577195", "0.576749", "0.576749", "0.5764632", "0.5763533", "0.5759145", "0.57491785", "0.57432455", "0.5732932", "0.5730295", "0.5728829", "0.57239944", "0.5719748", "0.5717927", "0.57138336", "0.57129323", "0.5703909", "0.5703104", "0.56935537", "0.5692914", "0.5689699", "0.5688546", "0.5684574", "0.56841654", "0.5680689", "0.56768316", "0.5673695", "0.5673191", "0.5673191", "0.5671042", "0.5670066", "0.56682986", "0.566676", "0.5664426" ]
0.6323159
7
This method was generated by MyBatis Generator. This method sets the value of the database column HZD_BALANCE.MONEY
public void setMoney(BigDecimal money) { this.money = money; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setBalance(double bal){\n balance = bal;\r\n }", "public int balup(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public void setPayAmt (BigDecimal PayAmt);", "public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public void setBalance(BigDecimal balance) {\n this.balance = balance;\n }", "public void setBalance(BigDecimal balance) {\n this.balance = balance;\n }", "public void InitializeBalance(BigDecimal valor){\n \r\n ChekingAccount chekAc=pRepository.GetChekingAccount();\r\n chekAc.setSaldoInicial(valor);\r\n pRepository.SaveChekingAccount(chekAc);\r\n \r\n }", "void setBalance(double value);", "public void setBALLOON_AMOUNT(BigDecimal BALLOON_AMOUNT) {\r\n this.BALLOON_AMOUNT = BALLOON_AMOUNT;\r\n }", "public void setBALLOON_AMOUNT(BigDecimal BALLOON_AMOUNT) {\r\n this.BALLOON_AMOUNT = BALLOON_AMOUNT;\r\n }", "private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}", "public void setCashMoney(BigDecimal cashMoney) {\n this.cashMoney = cashMoney;\n }", "Money getCashSettlementAmount();", "void setManageTransactionBalance(String balance);", "public void Deposit(Integer accountNo,float depositMoney){\n\tSessionFactory sessionFactory = new Configuration().configure(\"hibernate.cfg.xml\").buildSessionFactory();\n\tSession session = sessionFactory.openSession();\n\tTransaction trans = null;\n\ttry{\n\t\ttrans = session.beginTransaction();\n\t\tQuery query=session.createQuery(\"UPDATE Account set balance+=:balance where accountNo=:accountNo\"); \n\t\tquery.setParameter(\"balance\",depositMoney); \n\t\tquery.setParameter(\"accountNo\",accountNo); \n\t}catch(HibernateException hibernateException){\n\t\tif(trans != null){\n\t\t\ttrans.rollback();\n\t\t}\n\t\thibernateException.printStackTrace();\n\t}\n\t}", "public static void setMoney(Integer payment) {\n\n money.moneyLevel += payment;\n money.save();\n }", "public synchronized double setBalanceForAccId(int AccId, double bal) {\n\t\tConnection dbAccess = DataAccess.getDbAccess();\n\t\tPreparedStatement psttmnt;\n\t\tString querySting;\n\t\tdouble balance = -1.0;\n\t\ttry {\n\t\t\tquerySting = \"UPDATE accounts SET acc_balance = \" + bal + \" WHERE acc_id = \" + AccId;\n\t\t\tpsttmnt = dbAccess.prepareStatement(querySting);\n\t\t\tint result = psttmnt.executeUpdate();\n\t\t\tif (result != 0) {\n\t\t\t\t balance = getBalanceForAccId(AccId);\n\t\t\t}\n\t\t\tdbAccess.close();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\treturn balance;\n\t}", "@Override\n public void setTotalMoney(BigDecimal inputMoney) {\n totalMoney = inputMoney;\n }", "public void setBalance(int balance) {\r\n\t\tif(0<=balance&&balance<=1000000) {\r\n\t\tthis.balance = balance;\r\n\t}else{\r\n\t\t System.out.println(\"잘못 입력하셨습니다. 현재 잔고는 \"+this.balance+\"입니다\");\r\n\t}\r\n \r\n}", "public void setBalance(java.math.BigDecimal balance) {\n this.balance = balance;\n }", "public void setAMOUNT(BigDecimal AMOUNT) {\r\n this.AMOUNT = AMOUNT;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "public BigDecimal getMoney() {\r\n return money;\r\n }", "BigDecimal getClosingDebitBalance();", "void setIncome(double amount);", "public void setMoney(double money) {\n this.money = money;\n }", "public void setBalanceBonus(BigDecimal balanceBonus) {\n this.balanceBonus = balanceBonus;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public BigDecimal getMoney() {\n return money;\n }", "public void setfMcashoutAmount(BigDecimal fMcashoutAmount) {\r\n this.fMcashoutAmount = fMcashoutAmount;\r\n }", "public void setMoney(Integer money) {\n this.money = money;\n }", "public void setBalance(){\n balance.setBalance();\n }", "public void setInitilaCash(int noOfBills) throws java.lang.Exception;", "BigDecimal getOpeningDebitBalance();", "BigDecimal getOpeningDebitBalance();", "public void setBalance(Double balance) {\r\n this.balance = balance;\r\n }", "public void setAmount(BigDecimal amount) {\r\n this.amount = amount;\r\n }", "private void setBalance(double balance) {\n this.balance = balance;\n }", "public void setAmount( BigDecimal amount ) {\n this.amount = amount;\n }", "public void setMoney(Double money) {\n this.money = money;\n }", "public void setWithdrawMoney(BigDecimal withdrawMoney) {\n this.withdrawMoney = withdrawMoney;\n }", "public void setBalance(double balance){\n\t\tthis.balance = balance;\n\t}", "public void setBalance(float balance) {\n this.balance = balance;\n }", "public void setTotalDebit(java.math.BigDecimal totalDebit)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TOTALDEBIT$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TOTALDEBIT$0);\n }\n target.setBigDecimalValue(totalDebit);\n }\n }", "void setCapitalPayed(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount capitalPayed);", "public void setBSCA_ProfitPriceLimit (BigDecimal BSCA_ProfitPriceLimit);", "public void setAmount(int moneyOption);", "public void deposit(double amount) {\n balance += amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo='\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n }", "public void updateBalance(String mobileNo,int balance)\n\t{\n\t\tContext ctx;\n\t\ttry {\n\t\t\tctx = new InitialContext();\n\t\t\n\t\t\n\t\t DataSource ds=(DataSource)ctx.lookup(\"java:OracleDS\");\n\t\t\tConnection con=ds.getConnection();\n\t\t\tStatement stmt=con.createStatement();\n\t\t\t\n\t\t\tstmt.executeUpdate(\"update mobile set balance=\"+balance+\" where mobileno=\"+mobileNo);\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in connection with Database :\"+e.getMessage());\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void setBalance( long balance ) {\r\n this.balance = balance;\r\n }", "public void setAmount(BigDecimal amount) {\n this.amount = amount;\n }", "public void setAmount(BigDecimal amount) {\n this.amount = amount;\n }", "public void setAmount(BigDecimal amount) {\n this.amount = amount;\n }", "public double getBal() {\n\t\t return balance;\r\n\t }", "public Money getTotalBalance();", "public void updateBalance(int account_id, int final_amount){\n dbUpdate(\"update ACCOUNTS set BALANCE = \"+ final_amount + \" where ACCOUNT_ID = \" + account_id);\n cache.add(new Account(account_id, final_amount));\n }", "public void setCardMoney(java.math.BigDecimal param) {\r\n this.localCardMoney = param;\r\n }", "public void setTeamLeaderMoney(BigDecimal teamLeaderMoney) {\n this.teamLeaderMoney = teamLeaderMoney;\n }", "public void setBalance( Integer account_id, double balance ){\r\n\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n params.put(\"balance\", String.valueOf(balance));\r\n String url = API_DOMAIN + ACCOUNT_EXT + SET_BALANCE;\r\n this.makeVolleyRequest( url, params );\r\n }", "BigDecimal getAmount();", "public void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);", "public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }", "public BigDecimal getBALLOON_AMOUNT() {\r\n return BALLOON_AMOUNT;\r\n }", "public BigDecimal getBALLOON_AMOUNT() {\r\n return BALLOON_AMOUNT;\r\n }", "protected void setTotalBalance(double balance)\r\n {\r\n totalBalance = balance;\r\n }", "public void setAmount(BigDecimal value) {\n this.amount = value;\n }", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "double getMoney();", "public void updateBal(int value) {\r\n bal = bal + value;\r\n }", "BigDecimal getClosingCreditBalance();", "public BigDecimal getCashMoney() {\n return cashMoney;\n }", "@Override\n\tpublic void businessMoney() {\n\n\t}", "public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateBigDecimal(\" + quote(columnName) + \", \" + quoteBigDecimal(x) + \");\");\n }\n update(columnName, x == null ? (Value) ValueNull.INSTANCE : ValueDecimal.get(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public void setMoney(double money) {\n\t\tthis.money = money;\n\t}", "public void setBalance(Integer balance) {\n this.balance = balance;\n }", "public void setBalance(Integer balance) {\n this.balance = balance;\n }", "public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException\n {\n m_rs.updateBigDecimal(columnName, x);\n }", "public void setAmountBank(double amountBank) {\n this.amountBank = amountBank;\n }", "int getMoneyValue();", "int getMoneyValue();", "BigDecimal getOpeningCreditBalance();", "BigDecimal getOpeningCreditBalance();", "public void realizarDeposito(String codigo_cuenta, double monto) {\n try {\n Cuenta cuenta = obtenerCuenta(codigo_cuenta);\n double credito_total = cuenta.getCredito() + monto;\n PreparedStatement PrSt;\n String Query = \"UPDATE Cuenta SET Credito = ? WHERE Codigo = ?\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setDouble(1, credito_total);\n PrSt.setString(2, codigo_cuenta);\n PrSt.executeUpdate();\n PrSt.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n }", "public void setAMOUNT_NEW(BigDecimal AMOUNT_NEW) {\r\n this.AMOUNT_NEW = AMOUNT_NEW;\r\n }", "void updateBalance(int amount){ \n\t\tbalance = amount;\n\t}", "public void withdraw(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tif (nowBalance<amount) {\n\t\t\tSystem.out.println(\"No Balance\");\n\t\t\treturn;\n\t\t}\n\t\tlastBalance = nowBalance - amount;\n\t\t//System.out.println(lastBalance);\n\t\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"withdraw : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\tSystem.out.println(\"Ypu got $\"+String.valueOf(amount));\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t\t\n\t}", "public void setDepositAmount(MMDecimal depositAmount) {\r\n this.depositAmount = depositAmount;\r\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public int getMoneyValue() {\n return moneyValue_;\n }", "public Balance(final BigDecimal value) {\r\n this.value = value;\r\n }", "public synchronized void setBalance(double balance) {\n this.balance = balance;\n }", "public Balance() {\r\n value = BigDecimal.ZERO;\r\n }" ]
[ "0.66333187", "0.62740153", "0.62740153", "0.62740153", "0.6234209", "0.6156261", "0.6094607", "0.60925967", "0.6079014", "0.6079014", "0.6047067", "0.6029623", "0.59796786", "0.59796786", "0.59490293", "0.58731097", "0.58586234", "0.5846638", "0.58457804", "0.58297074", "0.58183235", "0.58056766", "0.5795161", "0.577739", "0.5767206", "0.5757743", "0.5757743", "0.5757743", "0.57400393", "0.5703945", "0.57004017", "0.56919944", "0.5670863", "0.5670863", "0.5670863", "0.56681585", "0.5652749", "0.56482995", "0.5641378", "0.5640401", "0.5640401", "0.5639842", "0.5637446", "0.5623546", "0.5615324", "0.560553", "0.5604337", "0.5603317", "0.5600427", "0.55997014", "0.5597991", "0.55930096", "0.55882627", "0.55879587", "0.55702066", "0.5567526", "0.5566214", "0.5566214", "0.5566214", "0.55654097", "0.55644375", "0.55511695", "0.55410033", "0.5540246", "0.553898", "0.5531292", "0.5528338", "0.5526914", "0.5521856", "0.5521856", "0.5502674", "0.549378", "0.54851407", "0.54768896", "0.54762286", "0.54745847", "0.54705274", "0.5458173", "0.545628", "0.5453533", "0.544725", "0.544725", "0.5443828", "0.54417473", "0.54407245", "0.54407245", "0.5433638", "0.5433638", "0.54329985", "0.54313695", "0.5430043", "0.5428483", "0.54238486", "0.54173934", "0.54173934", "0.54171187", "0.5415654", "0.54039675" ]
0.63329566
3
This method was generated by MyBatis Generator. This method returns the value of the database column HZD_BALANCE.STATUS
public Byte getStatus() { return status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();", "io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();", "@Enumerated(EnumType.STRING)\n@Column(name = \"STATUS\", length = EntityWithId.COLUMNLENGTH)\n \n @NotNull(message = \"{NotNull.gov.nih.nci.calims2.domain.administration.customerservice.BillingInformation.status}\")\n public gov.nih.nci.calims2.domain.administration.customerservice.enumeration.BillingInformationStatus getStatus() {\n return status;\n }", "io.opencannabis.schema.commerce.Payments.PaymentStatus getStatus();", "public Integer getAccountStatus() {\n return accountStatus;\n }", "public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }", "public int getCBRStatus();", "public Integer getStatus() {\n return this.status;\n }", "public com.example.entities.GatewayStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n com.example.entities.GatewayStatus result = com.example.entities.GatewayStatus.valueOf(status_);\n return result == null ? com.example.entities.GatewayStatus.UNRECOGNIZED : result;\n }", "public com.example.entities.GatewayStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n com.example.entities.GatewayStatus result = com.example.entities.GatewayStatus.valueOf(status_);\n return result == null ? com.example.entities.GatewayStatus.UNRECOGNIZED : result;\n }", "public DBRowStatus getStatus()\n\t{\n\t\treturn _Status;\n\t}", "public io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderStatus result = io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.UNRECOGNIZED : result;\n }", "public io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderStatus result = io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.UNRECOGNIZED : result;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderStatus result = io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.UNRECOGNIZED : result;\n }", "public io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.CommercialOrder.OrderStatus result = io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.CommercialOrder.OrderStatus.UNRECOGNIZED : result;\n }", "public Integer getStatus() {\r\n return status;\r\n }", "public Integer 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() {\r\n return STATUS;\r\n }", "public String getStatus()\r\n {\n return (\"1\".equals(getField(\"ApprovalStatus\")) && \"100\".equals(getField(\"HostRespCode\")) ? \"Approved\" : \"Declined\");\r\n }", "public int getStatus(){\r\n\t\treturn this.status;\r\n\t}", "public String getStatus() {\n return getProperty(Property.STATUS);\n }", "public Long getStatus() {\n return this.Status;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public int getStatusValue() {\n return status_;\n }", "public io.opencannabis.schema.commerce.Payments.PaymentStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.Payments.PaymentStatus result = io.opencannabis.schema.commerce.Payments.PaymentStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.Payments.PaymentStatus.UNRECOGNIZED : result;\n }", "public io.opencannabis.schema.commerce.Payments.PaymentStatus getStatus() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.Payments.PaymentStatus result = io.opencannabis.schema.commerce.Payments.PaymentStatus.valueOf(status_);\n return result == null ? io.opencannabis.schema.commerce.Payments.PaymentStatus.UNRECOGNIZED : result;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "@java.lang.Override public int getStatusValue() {\n return status_;\n }", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();", "int getStatusValue();" ]
[ "0.6345733", "0.6345733", "0.62386227", "0.622733", "0.6166729", "0.6076803", "0.6065161", "0.60496897", "0.60014945", "0.5966337", "0.59431934", "0.59039634", "0.59039634", "0.5896328", "0.5896328", "0.5896328", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588903", "0.588724", "0.588724", "0.58817303", "0.58817303", "0.58801657", "0.58801657", "0.58801657", "0.58801657", "0.58801657", "0.5864525", "0.58634615", "0.58618563", "0.58546835", "0.5845015", "0.5845015", "0.5845015", "0.5845015", "0.5845015", "0.5845015", "0.5845015", "0.5836283", "0.5836283", "0.5836283", "0.5834988", "0.5834988", "0.5834918", "0.5834918", "0.5834918", "0.5834918", "0.5834918", "0.5834918", "0.5834918", "0.5834918", "0.58346874", "0.58346874", "0.58346874", "0.58346874", "0.58346874", "0.58346874", "0.58346874", "0.582433", "0.582433", "0.582433", "0.582433", "0.5820734", "0.58154184", "0.58092636", "0.58034635", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308", "0.580308" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column HZD_BALANCE.STATUS
public void setStatus(Byte status) { this.status = status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setBidded(){\n this.status = \"Bidded\";\n }", "public void updateStatus() {\n\n //loading the driver\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //database variables\n final String db = \"jdbc:mysql://mis-sql.uhcl.edu/dingorkarj2620\";\n Connection con = null;\n Statement st = null;\n ResultSet rs = null;\n\n try {\n //connecting database\n con = DriverManager.getConnection(db, \"dingorkarj2620\", \"1289968\");\n st = con.createStatement();\n rs = st.executeQuery(\"select * from account where a_id = \" + super.id);\n\n //updating the status\n if (rs.next()) {\n //premium seller\n if (rs.getString(3).equalsIgnoreCase(\"premium\")) {\n //update the item status\n i.setI_status(\"Valid\");\n\n } else {\n //regular seller\n if (rs.getString(3).equalsIgnoreCase(\"regular\")) {\n //checking price lower or higher than 100\n if (i.getI_price() <= 100) {\n //update status valid\n i.setI_status(\"Valid\");\n } else {\n //update status pending\n i.setI_status(\"Invalid\");\n }\n }\n }\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n con.close();\n st.close();\n rs.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n }", "protected void setStatus(DBRowStatus p_status)\n\t{\n\t\t_Status = p_status;\n\t}", "public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public void setAccountStatus(Integer accountStatus) {\n this.accountStatus = accountStatus;\n }", "@Enumerated(EnumType.STRING)\n@Column(name = \"STATUS\", length = EntityWithId.COLUMNLENGTH)\n \n @NotNull(message = \"{NotNull.gov.nih.nci.calims2.domain.administration.customerservice.BillingInformation.status}\")\n public gov.nih.nci.calims2.domain.administration.customerservice.enumeration.BillingInformationStatus getStatus() {\n return status;\n }", "public void updateAgentBODStatus(String profileId, int status);", "public int balup(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public void setStatusLastUpd(Date statusLastUpd) {\n this.statusLastUpd = statusLastUpd;\n }", "public void setStatus(int status)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$12);\n }\n target.setIntValue(status);\n }\n }", "public void setStatus(Integer status)\n {\n data().put(_STATUS, status);\n }", "Transfer updateStatus(Long id, Payment.Status status);", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }", "public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }", "public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}", "public void setStatus(int status) {\n STATUS = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n this.status = status;\n }", "public void setStatusValue(Integer statusValue)\r\n\t{\r\n\t\tstatus = WaterGasMeterStatusEnum.enumForValue(statusValue);\r\n\t}", "public void setAdminMigrationStatus(Context context,String strStatus) throws Exception\r\n\t{\r\n\t\tString cmd = \"modify program eServiceSystemInformation.tcl property MigrationR212VariantConfiguration value \"+strStatus;\r\n\t\tMqlUtil.mqlCommand(context, mqlCommand, cmd);\r\n\t}", "public void setSTATUS(String STATUS) {\r\n this.STATUS = STATUS == null ? null : STATUS.trim();\r\n }", "public void setSTATUS(String STATUS) {\r\n this.STATUS = STATUS == null ? null : STATUS.trim();\r\n }", "public void setSTATUS(String STATUS) {\r\n this.STATUS = STATUS == null ? null : STATUS.trim();\r\n }", "public void setSTATUS(String STATUS) {\r\n this.STATUS = STATUS == null ? null : STATUS.trim();\r\n }", "public void setSTATUS(String STATUS) {\r\n this.STATUS = STATUS == null ? null : STATUS.trim();\r\n }", "private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}", "public void setStatus(int status) {\n\t\tthis.status = (byte) status;\n\t\trefreshStatus();\n\t}", "private void setPoStatus(PoBean.Status status, int pid) throws Exception {\n String query = \"UPDATE PO SET status = ? WHERE id = ?\";\n try (Connection con = this.ds.getConnection();\n PreparedStatement p = con.prepareStatement(query)) {\n p.setString(1, status.toString());\n p.setInt(2, pid);\n p.executeUpdate();\n }\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Byte status) {\n this.status = status;\n }", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}", "public void setBfStatus(Byte bfStatus) {\r\n this.bfStatus = bfStatus;\r\n }", "public void setStatus(STATUS status) {\n this.status = status;\n }", "public void setrowStatus(Integer value){\n\t}", "public void setStatus(Byte status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(Byte status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(OrderStatus updatedStatus) {\n this.status = updatedStatus;\n }", "public void setStatus(TransactionStatus status) {\n this.status = status;\n }", "public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "public void setStatus(typekey.RateBookStatus value);", "public void status(String status) {\n FirebaseDatabase.getInstance().getReference(\"chef_account_settings\").child(firebaseUser.getUid()).child(\"status\").setValue(status);\n// HashMap<String, Object> hashMap = new HashMap<>();\n// hashMap.put(\"status\", status);\n// reference.updateChildren(hashMap);\n }", "public void setStatus(gov.nih.nci.calims2.domain.administration.customerservice.enumeration.BillingInformationStatus \n status) {\n this.status = status;\n }", "public void setStatusCd(String statusCd) {\n\t\t\n\t}", "public void setStatus(long status) {\r\n this.status = status;\r\n }", "public void setAuditStatus(Byte auditStatus) {\n this.auditStatus = auditStatus;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "public void setStatus(int status) {\n this.status = status;\n }", "@Override\n\tpublic void updateStatus(String order_Code,String status) {\n\t\ttry{\n\t\t\tbegin();\n\t\t\tString hql = \"UPDATE mOrders set O_Status_Code = :status \" + \n\t\t \"WHERE O_Code = :order_Code\";\n\t\t\tQuery query = getSession().createQuery(hql);\n\t\t\tquery.setParameter(\"status\", status);\n\t\t\tquery.setParameter(\"order_Code\", order_Code);\n\t\t\tint result = query.executeUpdate();\n\t\t\tcommit();\n\t\t}catch(HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t}finally{\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}", "public final void setStatus(com.mendix.systemwideinterfaces.core.IContext context, xlsreport.proxies.Yes_no status)\r\n\t{\r\n\t\tif (status != null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Status.toString(), status.toString());\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Status.toString(), null);\r\n\t}", "io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();", "io.opencannabis.schema.commerce.CommercialOrder.OrderStatus getStatus();", "public void setStatus(Long Status) {\n this.Status = Status;\n }", "public void setStatus(int status) {\n\t\tswitch (status) {\r\n\t\tcase 1:\r\n\t\t\tthis.status = FRESHMAN;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.status = SOPHOMORE;\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.status = JUNIOR;\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.status = SENIOR;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }", "public static void deathBanSetStatus(UUID uuid, int status) {\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tString query = \"UPDATE deathbandata SET status = '\" + status + \"' WHERE uuid='\" + uuid + \"';\";\n\t\t\tst.executeUpdate(query);\n\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t}", "@JsonProperty(\"status\")\n public void setStatus(Status status) {\n this.status = status;\n }", "public void updateBalance(String mobileNo,int balance)\n\t{\n\t\tContext ctx;\n\t\ttry {\n\t\t\tctx = new InitialContext();\n\t\t\n\t\t\n\t\t DataSource ds=(DataSource)ctx.lookup(\"java:OracleDS\");\n\t\t\tConnection con=ds.getConnection();\n\t\t\tStatement stmt=con.createStatement();\n\t\t\t\n\t\t\tstmt.executeUpdate(\"update mobile set balance=\"+balance+\" where mobileno=\"+mobileNo);\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in connection with Database :\"+e.getMessage());\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void setStatus(EnumVar status) {\n this.status = status;\n }", "public void setOrderStatus(java.lang.String param){\n \n this.localOrderStatus=param;\n \n\n }", "public void setStatus(StatusEnum status) {\n this.status = status;\n }", "public void setStatus(String _status) {\n this._status = _status;\n }", "void setStatus(STATUS status);" ]
[ "0.59157413", "0.56977904", "0.5694711", "0.56431955", "0.5642901", "0.5593511", "0.5572126", "0.55123955", "0.55121267", "0.5484189", "0.5472675", "0.5461467", "0.54497766", "0.54497766", "0.5449343", "0.544354", "0.54405355", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.5436221", "0.54357076", "0.54299295", "0.5426895", "0.5426895", "0.5426895", "0.5426895", "0.5426895", "0.54202914", "0.5415969", "0.54056525", "0.54041964", "0.54041964", "0.54041964", "0.54041964", "0.54041964", "0.54041964", "0.54041964", "0.54041964", "0.54041964", "0.54041964", "0.54041964", "0.54041964", "0.54041964", "0.5403101", "0.5403101", "0.54010856", "0.53817236", "0.5381305", "0.5380625", "0.5367637", "0.5367637", "0.53586304", "0.5346353", "0.53411007", "0.532483", "0.53199047", "0.531644", "0.53162396", "0.52990746", "0.5298595", "0.5293366", "0.527128", "0.527128", "0.52705234", "0.52652687", "0.5258248", "0.5258248", "0.525542", "0.5237196", "0.5232696", "0.5229305", "0.52256894", "0.5209493", "0.5208702", "0.52035654", "0.52035236", "0.520212", "0.51841503" ]
0.5413957
51
This method was generated by MyBatis Generator. This method returns the value of the database column HZD_BALANCE.PAY_PASSWORD
public String getPayPassword() { return payPassword; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBankPassword() {\n return bankPassword;\n }", "public String getBankPassword() {\n return bankPassword;\n }", "public String getAccountPassword() {\n return accountPassword;\n }", "public String getAccountPassword() {\n return accountPassword;\n }", "public String getPayPwd() {\n return payPwd;\n }", "public String getJdbcPassword()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_PASSWORD);\n }", "public static String getAccountPassword() {\n\t\tif ((xml == null) || (accountPassword == null)) return \"password\";\n\t\tif (accountPassword.equals(\"\")) return \"password\";\n\t\treturn accountPassword;\n\t}", "public String getAccountPassword() {\n return accountPassword;\n }", "public String getPassword() {\n return jdbcPassword;\n }", "public String returnPassword() {\n\t\treturn this.registration_password.getAttribute(\"value\");\r\n\t}", "public String getFundPassword() {\n return fundPassword;\n }", "public String getPassword() {\r\n \t\treturn properties.getProperty(KEY_PASSWORD);\r\n \t}", "public String getPassword() {\n return getProperty(PASSWORD);\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public java.lang.String getPassword();", "public String getDocumentPassword() {\r\n\t\tString query = \"{ CALL GET_DOCUMENT_PASSWORD(?) }\";\r\n\t\tString pwd = null;\r\n\t\t\r\n\t\ttry (Connection connection = DatabaseConnection.getMySQLConnection();\r\n\t\t\t CallableStatement stmt = connection.prepareCall(query);) {\r\n\t\t\tstmt.setInt(1, policyId);\r\n\t\t\tResultSet result = stmt.executeQuery();\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tpwd = result.getString(\"password\");\r\n\t\t\t}\r\n\t\t\treturn pwd;\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new ReportGenerationException(\"An error occurred while retrieving reports to be generated.\", e);\r\n\t\t}\r\n\t}", "public String getUserPassword() {\n return sp.getString(USER_PASSWORD, null);\n }", "public String getPassword() {\n return (String) getObject(\"password\");\n }", "public String getPassword() {\n\t\treturn String.valueOf(password.getPassword());\n\t}", "public String getPassword()\r\n/* 21: */ {\r\n/* 22:38 */ return this.password;\r\n/* 23: */ }", "public String getFundPassword() {\n return fundPassword;\n }", "public int getPassword() {\n return password;\n }", "@Override\n\tpublic String getPassword() {\n\t\treturn user.getPassword();\n\t}", "public int getPassword(){\n return password;\r\n }", "public String getPassword() {\n return instance.getPassword();\n }", "public String getPassword() {\n return instance.getPassword();\n }", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public final String getPassword() {\n return properties.get(PASSWORD_PROPERTY);\n }", "public String getPassword();", "public String getPassword();", "@Override\n\tpublic String getPassword() {\n\t\treturn getInnerObject().getPassword();\n\t}", "@Override\n\tpublic String getPassword() {\n\t\treturn user.getUserPwd();\n\t}", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public int getPassword(){\n\t\treturn password;\n\t}", "public String getDbpassword() {\n return dbpassword;\n }", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "public String getUserPassword() {\r\n return userPassword;\r\n }", "public String getRepositoryDatabasePassword(){\n \t\treturn getDecryptedProperty(\"org.sagebionetworks.repository.database.password\");\n \t}", "public String getPasswordValue() {\r\n\t\treturn txtPassword.getValue();\r\n\t}", "public String getPassword()\n {\n return _password;\n }", "public String getPassword(){\n return this.password;\n }", "public String getPassword() {\r\n return this.password;\r\n }", "public String getPassword()\n {\n return this.password;\n }", "public String getPassword(){\r\n\t\treturn password;\r\n\t}", "public String getPassword(){\n \treturn password;\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword(){\n return password;\n\t}", "public String getJdbcPassword() {\n if(isJakartaNamespace()) {\n return \"jakarta.persistence.jdbc.password\";\n }\n return \"javax.persistence.jdbc.password\";\n }", "public String getPassword() { \n return this.password; \n }", "public String getPassword() {\r\n\t\t// Get the password\r\n\t\tchar []code = password.getPassword();\r\n\t\t\r\n\t\t// Make the password string\r\n\t\tString password = \"\";\r\n\t\t\r\n\t\t// convert the char[] to string\r\n\t\tfor (char c: code){\r\n\t\t\tpassword += c;\r\n\t\t}\r\n\t\t\r\n\t\t// Return the password string\r\n\t\treturn password;\r\n\t}", "public String getPassword() {return password;}", "public SecretBase password() {\n return this.password;\n }", "public SecretBase password() {\n return this.password;\n }", "@AutoEscape\n\tpublic String getPassword2();", "public String getDbPassword() {\n\t\treturn mDbPassword;\n\t}", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\n {\n return _password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "public String getPassword() {\n \t\treturn password;\n \t}", "public String getClave() {\n\n\t\ttry {\n\t\t\tConnection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/keyring\", \"root\" ,\"\");\n\t\t\tStatement sql = conexion.createStatement();\n\t\t\tResultSet resultado = sql.executeQuery(\"SELECT Password FROM password\");\n\t\t\tString clave;\n\n\t\t\tif (resultado.next()) {\n\t\t\t\tclave = resultado.getString(\"Password\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tclave = \"\";\n\t\t\t}\n\n\t\t\tconexion.close();\n\t\t\treturn clave;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn \"\";\n\t\t}\n\t}", "public String getPassword()\n\t{\n\t\treturn this.password;\n\t}", "public String getPassword() {\n\t\treturn this.password;\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\n return this.password1;\n }", "public String getPassword() {\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() throws Exception\r\n\t{\r\n\t\tString SQL_USER = \"SELECT password FROM user WHERE id=?;\";\t\t\r\n\t\tString returnValue = \"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\t\t\tstatement.setInt(1, userId);\r\n\t\t\tResultSet result = statement.executeQuery();\r\n\r\n\t\t\t// If this returns true, then the user already exists.\r\n\t\t\tif (!result.next())\r\n\t\t\t{\r\n\t\t\t\tthrow new Exception(\"No student found! (getPassword)\");\r\n\t\t\t}\r\n\r\n\t\t\t// Return the successfully user.\r\n\t\t\treturnValue = result.getString(\"password\");\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in getPassword()\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\treturn returnValue;\r\n\t}", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }" ]
[ "0.66592187", "0.65495443", "0.6466896", "0.64580274", "0.6443897", "0.6391927", "0.6383025", "0.6366727", "0.6321884", "0.62568", "0.61699116", "0.61491567", "0.61402917", "0.6113375", "0.6113375", "0.6113375", "0.6113375", "0.6113375", "0.6113375", "0.6113375", "0.6088482", "0.60865855", "0.6081689", "0.60754985", "0.6074778", "0.6064986", "0.6056577", "0.6034757", "0.6026718", "0.60134125", "0.5983672", "0.5983672", "0.59783167", "0.5972741", "0.5967141", "0.5967141", "0.5966105", "0.5962235", "0.59600586", "0.5954146", "0.59505945", "0.5922523", "0.5922523", "0.5922523", "0.5922523", "0.5922523", "0.5922523", "0.5922523", "0.5922523", "0.5922523", "0.59144264", "0.5910477", "0.5910214", "0.59051603", "0.5895684", "0.58920205", "0.587755", "0.5858566", "0.5858089", "0.5856564", "0.5856564", "0.5856564", "0.5856564", "0.5856564", "0.5849417", "0.5846417", "0.58295554", "0.5829046", "0.58203477", "0.5815612", "0.5815612", "0.5815308", "0.5810653", "0.58071554", "0.58068895", "0.58053356", "0.57967883", "0.5791546", "0.5791312", "0.57877874", "0.57873356", "0.57849073", "0.5782915", "0.5780035", "0.5776739", "0.5776739", "0.5776739", "0.5776739", "0.5776739", "0.5776739", "0.5776739", "0.5776739", "0.5776739", "0.5776739", "0.5776739", "0.57737225", "0.5773609", "0.5773609", "0.5768161" ]
0.69009256
1
This method was generated by MyBatis Generator. This method sets the value of the database column HZD_BALANCE.PAY_PASSWORD
public void setPayPassword(String payPassword) { this.payPassword = payPassword == null ? null : payPassword.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBankPassword(String value) {\n this.bankPassword = value;\n }", "public String getPayPassword() {\r\n return payPassword;\r\n }", "public String getPayPassword() {\r\n return payPassword;\r\n }", "public void setAccountPassword(String value) {\n this.accountPassword = value;\n }", "public Builder setBankPassword(String value) {\n validate(fields()[9], value);\n this.bankPassword = value;\n fieldSetFlags()[9] = true;\n return this; \n }", "public String getBankPassword() {\n return bankPassword;\n }", "public void setFundPassword(String value) {\n this.fundPassword = value;\n }", "public String getBankPassword() {\n return bankPassword;\n }", "public void setPayPwd(String payPwd) {\n this.payPwd = payPwd == null ? null : payPwd.trim();\n }", "public void setPassword(String pw)\n {\n this.password = pw;\n }", "@Override\r\n\tpublic int updatepassword(Account account) {\n\t\taccountMapper.updatepassword(account);\r\n\t\treturn 0;\r\n\t}", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "@Override\r\n\tpublic void upadatePassword(String newPassword, ForgetBean forget) {\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction txn = session.getTransaction();\r\n\r\n\t\tString sql = \"UPDATE account SET password = '\" + newPassword + \"' WHERE email='\" + forget.getEmail() + \"'\";\r\n\r\n\t\tSQLQuery query = session.createSQLQuery(sql);\r\n\t\tquery.executeUpdate();\r\n\r\n\t}", "public String getPayPwd() {\n return payPwd;\n }", "public void setJdbcPassword(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_PASSWORD, val);\n }", "public void setPassword(java.lang.String newPassword);", "public void setPasswordField(final JPasswordField pwPasswordParam) {\n this.pwPassword = pwPasswordParam;\n }", "public void changePassword(String account_name, String newPassword){\n //hashe the password\n newPassword = hashPassword(newPassword);\n try {\n statement = connection.createStatement();\n statement.executeUpdate(\"UPDATE members SET password='\"+newPassword+\"' WHERE\" +\n \" name='\"+account_name+\"'\");\n }catch (SQLException ex){ex.printStackTrace();}\n }", "public void updatePassword(String account, String password);", "public void setPassword(String pass);", "@Override\n\tpublic boolean setNewPassword(BigInteger tUserFId,String password) {\n\t\tint res = accountManageDao.updateApplyPwdWithMainUser(tUserFId,password);\n\t\treturn res>0?true:false;\n\t}", "public void setPassword2(String password2);", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public Builder setAccountPassword(String value) {\n validate(fields()[4], value);\n this.accountPassword = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "public void setPassword(String password) throws SQLException\r\n\t{\r\n\t\tif (password == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET password =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, password);\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setPassword(String \"+ password+ \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public void setPassword(String password)\n {\n _password = password;\n }", "public String getPassword() {\n return jdbcPassword;\n }", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public void setPassword(int password) {\n this.password = password;\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public String getAccountPassword() {\n return accountPassword;\n }", "public void setPassword(final java.lang.String password) {\r\n this.password = password;\r\n this.values.put(UserInfoTable.PASSWORD, password);\r\n }", "public String getAccountPassword() {\n return accountPassword;\n }", "public void setPassword(String strPassword){\n\t\t driver.findElement(password99Guru).sendKeys(strPassword);\n\t}", "@Override\n\tpublic void setPassword(String password) {\n\n\t}", "public void updateCardNo(String accountId, String password, String cardNo) {\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/make_order_request\",\"root\",\"admin\");\n Statement mystmt = con.createStatement();\n \n \n //SQL query to update credit card\n String query = \"UPDATE customer_account SET card_no = ? WHERE account_id ='\" + accountId +\"' AND password ='\"+password+\"'\";\n PreparedStatement ps=con.prepareStatement(query);\n ps.setInt(1, Integer.parseInt(cardNo));\n \n \n ps.executeUpdate();\n \n \n }\n \n catch(Exception e){\n e.printStackTrace();\n \n }\n return;\n }", "public int balup(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public Builder setFundPassword(String value) {\n validate(fields()[5], value);\n this.fundPassword = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public String getAccountPassword() {\n return accountPassword;\n }", "public void setPassword(String strPassword){\n \t \n \tdriver.findElement(By.cssSelector(inputPassword)).sendKeys(strPassword);\n \n \n }", "public void setPassword(String password) {\n this.password = password;\n saveProperties();\n }", "public void setPassword(String pw) {\n password = pw.toCharArray();\n cleared = false;\n }", "public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "@Override\n\tpublic String getPassword() {\n\t\treturn \"ajay\";\n\t}", "public void setPassword(String password){\r\n this.password = password;\r\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public String getFundPassword() {\n return fundPassword;\n }", "void updateMasterPassword(String password, User userInSession) throws BusinessException;", "public void setPassword(String password)\n {\n _password = password;\n }", "public void setPassword(String strPassword){\n\t\tdriver.findElement(password99Guru).sendKeys(strPassword);\n\t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}", "@Override\n\tpublic void setEncryptedPassword(String arg0) {\n\t\t\n\t}", "public void setPw(char[] password) {\n\t\t\r\n\t}", "@Override\n\tpublic void updatePassword(Password password, int offset) {\n\t\tDate offsetDate = DateUtils.getOffsetFromCurrentDateObject(DateUtils.IST, offset);\n\t\tString sqlString = \"UPDATE user SET PASSWORD=:hash, EXPIRES_ON=:expiresOn WHERE user.USER_ID=:userId\";\n\t\tPasswordEncoder encoder = new BCryptPasswordEncoder();\n\t\tString hash = encoder.encode(password.getNewPassword());\n\t\tMap<String, Object> params = new HashMap<>();\n\t\tparams.put(\"userId\", password.getUserId());\n\t\tparams.put(\"hash\", hash);\n\t\tparams.put(\"expiresOn\", offsetDate);\n\t\tthis.namedParameterJdbcTemplate.update(sqlString, params);\n\t}", "void setPassword(String ps) {\n this.password = ps;\n }", "public void setPassword(String user, String password) throws Exception {\n\t\tProperties database = getDataBase();\n\t\tdatabase.setProperty(user, PasswordHash.createHash(password));\n\t\tsave(database);\n\t}", "@Override\r\n\tpublic void updateWx_BindCustomerPassword(Wx_BindCustomer wx_BindCustomer) {\n\t\tshopuserDao.updateWx_BindCustomerPassword(wx_BindCustomer);\r\n\t}", "public String getJdbcPassword()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_PASSWORD);\n }", "private Boolean changePassword() {\r\n //capture return value from SQL query to check if pass was updated\r\n int updatedRow = 0;\r\n \r\n try {\r\n // load and register JDBC driver for MySQL - \r\n // This tells the Java Class where to find the driver to connect to \r\n // The MySQL Database\r\n Class.forName(\"com.mysql.jdbc.Driver\"); \r\n Connection conn = DriverManager.getConnection(CONN_STRING,USERNAME,PASSWORD);\r\n \r\n //set password to newly generated string and reset failed attempts on account\r\n String updatePassword = \"UPDATE \" + TABLE_NAME + \" SET password = '\" + \r\n newPassword + \"', failed_attempts = 0 WHERE id = \" + user_id;\r\n System.out.println(updatePassword);\r\n PreparedStatement setNewPassword = conn.prepareStatement(updatePassword);\r\n updatedRow = setNewPassword.executeUpdate();\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n return (updatedRow > 0);\r\n }", "@Override\n\tpublic void setPassword(String password) {\n\t\tgetInnerObject().setPassword(password);\n\t\t\n\t}", "private void changePassword() throws SQLException {\n printAllWebsites();\n\n System.out.println(\"Which website?\");\n String website = input.next();\n\n System.out.println(\"Did the username change as well? Y/N\");\n if (input.next().equalsIgnoreCase(\"y\")) {\n changeWebsite(website);\n return;\n }\n\n System.out.print(\"What is the username?\\nusername: \");\n String username = input.next();\n\n int websiteDataId = getWebsiteDataId(website, username);\n if (websiteDataId == 0) throw new RuntimeException(\"Error while updating website.\");\n\n System.out.println(\"What is the new password?\");\n String pass = input.next();\n\n try (PreparedStatement st = connection.prepareStatement(\"DELETE FROM website_data \" +\n \"WHERE website_data_id like (?)\")) {\n st.setInt(1, websiteDataId);\n st.executeUpdate();\n }\n\n SecretKey key = User.getKey(user.getDecryptedKey());\n String encryptedPass = \"\";\n try {\n Cipher cipher = Cipher.getInstance(\"AES/ECB/PKCS5Padding\");\n cipher.init(Cipher.ENCRYPT_MODE, key);\n encryptedPass = Base64.getEncoder().encodeToString(cipher.doFinal(pass.getBytes(StandardCharsets.UTF_8)));\n } catch (Exception e) {\n System.out.println(\"Error while encrypting: \" + e.toString());\n }\n\n try (PreparedStatement st = connection.prepareStatement(\"INSERT INTO \" +\n \"website_data(website, username, password, website_data_id) VALUES (?, ?, ?, ?)\")) {\n st.setString(1, website);\n st.setString(2, username);\n st.setString(3, encryptedPass);\n st.setInt(4, websiteDataId);\n st.executeUpdate();\n }\n\n System.out.println(\"Password updated.\");\n System.out.println();\n }", "public void setPassword(String newPassword) {\n this.password = newPassword;\n \n //make the changes in the database\n db.updateUserProperty(username, Property.PASSWORD, newPassword);\n }", "public void setPassword(String password) throws BuildException {\n jdbcPassword = password;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "private void setPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n password_ = value;\n }", "public int getPassword(){\n return password;\r\n }", "public void updatePassword(User user) {\n\t\tString sql=\"update SCOTT.USERS set PASSWORD='\"+user.getPassword()+\"' where USERNAME='\"+user.getUsername()+\"'\";\n\t\t\n\t\tJdbcUtils jdbcutils=new JdbcUtils();\n\t\tjdbcutils.executeUpdate(sql);\n\t\t\n\t}", "@Override\r\n\tpublic void forgotPasswordEst(Establishment est) {\r\n\t\r\n\t\tString sql=\"update gr5_establishment set GE_PASS='\"+est.getPass()+\"' where GE_EMAIL='\"+est.getEmail()+\"' and GE_TIN='\"+est.getTin()+\"'\"; \r\n\t jdbcTemplate.update(sql); \r\n\t}", "public void setAccountPassword(String accountPassword) {\n this.accountPassword = accountPassword == null ? null : accountPassword.trim();\n }", "private void setNewPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newPassword_ = value;\n }", "@Override\n\tpublic void updateAccount(String pwd, String field, String company) {\n\t}", "public void setPassword(String password) {\n setObject(\"password\", (password != null) ? password : \"\");\n }", "public String getFundPassword() {\n return fundPassword;\n }", "@Update({\n \"update tb_user\",\n \"set password = #{password,jdbcType=VARCHAR}\",\n \"where username = #{username,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(User record);", "public void setUserPassword(String newPassword) {\n profile.setPassword(currentUser, newPassword);\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public static void changePassword(String password) throws SQLException, ProfileChangeException {\n DbContext.getConnection().setAutoCommit(false);\n DbContext.getConnection().setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);\n String previousPassword = SignedUser.getUser().getPassword();\n try {\n //skontroluje spravny format emailu\n validatePassword(password);\n SignedUser.getUser().setPassword(MD5Password(password));\n SignedUser.getUser().update();\n //commitne zmeny do databazy\n DbContext.getConnection().commit();\n MyAlert.showSuccess(\"Heslo bolo úspešne zmenené\");\n } catch (SQLException e) {\n SignedUser.getUser().setPassword(previousPassword);\n MyAlert.showError(\"Heslo sa nepodarilo zmeniť\");\n DbContext.getConnection().rollback();\n } catch (ProfileChangeException e) {\n MyAlert.showError(e.getMessage());\n } finally {\n DbContext.getConnection().setAutoCommit(true);\n }\n }", "public static String updateUserPassword(String newPass, String account){\n return \"update users set u_pass = '\"+newPass+\"' where u_accountnum = '\"+account+\"'\";\n }", "public ChangePassword() {\n initComponents();\n SQLConnect sqlcon = new SQLConnect();\n con=sqlcon.sqlCon(con);\n jPasswordField2.setEnabled(false);\n jPasswordField3.setEnabled(false);\n }", "@Override\r\n\tpublic AuthZResponseDto changePassword(PasswordDto passwordDto) throws Exception {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic int changePw(HashMap<String, String> map) {\n\t\treturn mDAO.changePw(sqlSession, map);\r\n\t}", "public void setPassword(String password) {\n this.password = password;\r\n }", "public EditAccountPage fillPasswordField(String pass){\n\n pause();\n clickElement(newPasswordElement);\n pause();\n cleanElement(newPasswordElement);\n pause();\n setElementText(newPasswordElement, pass);\n\n return this;\n }", "public void setSpPassword(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpPasswordTracker = true;\r\n } else {\r\n localSpPasswordTracker = false;\r\n \r\n }\r\n \r\n this.localSpPassword=param;\r\n \r\n\r\n }", "@Transactional\n\tpublic void resetPassword(String confirmKey, String newPassword)\n\t{\t\n\t\tlog.debug(\"confirmKey:\" + confirmKey);\n\t\tMap<String,Object> rmap = getConfirmAccountEntry(confirmKey);\n\t\tString username = (String) rmap.get(\"username\");\n\t\t\n\t\tlog.debug(\"rmap:\"+rmap +\"; newPassword=\"+newPassword+\" username=\"+username);\n\t\tsimpleJdbc.update(\"UPDATE users SET password=md5('\" +newPassword +\"') WHERE username=?\",username);\n//\t\tsimpleJdbc.update(\"UPDATE owuser SET owuser=md5('\" +newPassword +\"') WHERE owuser=?\",username);\n\t}", "@Override\n\tpublic void setPassword(String password) {\n\t\tsuper.setPassword(password);\n\t}", "@Override\n\tpublic void setPassword(String password) {\n\t\tsuper.setPassword(password);\n\t}", "public void savePasswordChange(ActionEvent actionEvent) throws SQLException {\n if (validPasswordInput()) {\n DatabaseManager.passwordChange(user.getDatabaseConnection(), user.getUser(), firstPasswordField.getText());\n displayMessage(messagePane,\"Password is changed\", false);\n closeChangePasswordPane(actionEvent);\n }\n }", "public void setJP_BankAccountType (String JP_BankAccountType);", "public void setPassword(String password) {\n\tthis.password = password;\n}", "public void setPassword(String password)\n {\n String passwordRegex = \"^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{8,}$\";\n Pattern passwordPattern = Pattern.compile(passwordRegex);\n Matcher passwordMatcher = passwordPattern.matcher(password);\n if(passwordMatcher.matches())\n {\n this.password=password;\n }\n else\n {\n this.password=\"\";\n }\n }", "public void setAppPassword(String appPassword) {\n this.appPassword = appPassword;\n }", "@Test\n public void testAccountSetPassword() {\n try {\n Account newAcc = new Account(1, \"holder\", \"holder\", Credential.ADMIN);\n newAcc.setPassword(\"newPasswordForHolder\");\n Assert.assertEquals(\"Incorrect updated password for account after changing\",\n \"newPasswordForHolder\", newAcc.getPassword());\n } catch (Exception e) {\n Assert.fail(\"Set account password should not have failed here\");\n e.printStackTrace();\n }\n }" ]
[ "0.66257703", "0.6249301", "0.6249301", "0.61529", "0.6077189", "0.60060287", "0.59462875", "0.591515", "0.5890587", "0.5847851", "0.5830543", "0.58080775", "0.57821125", "0.577705", "0.57605994", "0.5741464", "0.57202363", "0.5690645", "0.56706434", "0.5666505", "0.56577134", "0.5639906", "0.5618994", "0.5609941", "0.5585697", "0.55666786", "0.55659044", "0.554572", "0.5540372", "0.5540372", "0.5540372", "0.55324024", "0.55247843", "0.55040133", "0.5503734", "0.5477934", "0.5474699", "0.54746443", "0.546718", "0.5441358", "0.5418254", "0.54148215", "0.54078424", "0.5397922", "0.5393508", "0.53883594", "0.53878605", "0.5387134", "0.53656805", "0.5364242", "0.53588617", "0.53588456", "0.5340646", "0.533792", "0.5332477", "0.53323054", "0.5328708", "0.53285503", "0.5317118", "0.5311547", "0.5300842", "0.5296711", "0.5296315", "0.52956325", "0.52953565", "0.52932024", "0.5289385", "0.5286774", "0.5286418", "0.5286418", "0.52790254", "0.52780455", "0.52741617", "0.5271063", "0.5264927", "0.52638984", "0.5258427", "0.5254464", "0.5249935", "0.52426267", "0.5232368", "0.5232368", "0.5230756", "0.5230118", "0.52255046", "0.5223503", "0.52145714", "0.52118224", "0.52089703", "0.52061516", "0.5205043", "0.52045256", "0.52045256", "0.52001333", "0.51948", "0.51946604", "0.51931274", "0.51864386", "0.5181921" ]
0.59747505
7
Private constructor to hide default
private BeanAnnotationUtils() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Default()\n {}", "defaultConstructor(){}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "void DefaultConstructor(){}", "private Instantiation(){}", "private Rekenhulp()\n\t{\n\t}", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private MApi() {}", "Reproducible newInstance();", "private SystemInfo() {\r\n // forbid object construction \r\n }", "public Constructor(){\n\t\t\n\t}", "private TMCourse() {\n\t}", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "private CommonMethods() {\n }", "private Supervisor() {\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private ServiceListingList() {\n //This Exists to defeat instantiation\n super();\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "public StubPrivateConstructorPair() {\r\n this(null, null);\r\n }", "private ChainingMethods() {\n // private constructor\n\n }", "private Public() {\n super(\"public\", null);\n }", "private Log()\n {\n //Hides implicit constructor.\n }", "private WebXmlIo()\n {\n // Voluntarily empty constructor as utility classes should not have a public or default\n // constructor\n }", "private void __sep__Constructors__() {}", "public Pitonyak_09_02() {\r\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}", "private AcceleoLibrariesEclipseUtil() {\n \t\t// hides constructor\n \t}", "private Marinator() {\n }", "private Marinator() {\n }", "private PluginAPI() {\r\n\t\tsuper();\r\n\t}", "private LanguageInterpreterRegistry() {\r\n\t\t// hides default constructor.\r\n\t}", "private Utility() {\n\t}", "private Cat() {\n\t\t\n\t}", "protected Approche() {\n }", "private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}", "private Aliyun() {\n\t\tsuper();\n\t}", "public DefaultNashRequestImpl() {\n\t\t\n\t}", "private XMLUtil() {\n\t}", "private Node() {\n\n }", "private Conf() {\n // empty hidden constructor\n }", "private SingleObject()\r\n {\r\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "private Ognl() {\n }", "private NaturePackage() {}", "private XMLUtils()\r\n\t{\r\n\t}", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "private GeoUtil()\n\t{\n\t}", "@SuppressWarnings(\"unused\")\n private Booking() {\n }", "public lo() {}", "private LOCFacade() {\r\n\r\n\t}", "protected PrintBill() \r\n\t{/* nothing needed, but this prevents a public no-arg constructor from being created automatically */}", "private UI()\n {\n this(null, null);\n }", "protected VboUtil() {\n }", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "private CheckingTools() {\r\n super();\r\n }", "private Settings()\n {}", "private Help() {\n // hidden constructor\n }", "protected Doodler() {\n\t}", "private XmlFactory() {\r\n /* no-op */\r\n }", "private Helper() {\r\n // empty\r\n }", "private Builder()\n {\n }", "private WolUtil() {\n }", "private Ex() {\n }", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "public MethodEx2() {\n \n }", "private Params()\n {\n }", "private Infer() {\n\n }", "public SgaexpedbultoImpl()\n {\n }", "public Lanceur() {\n\t}", "private DarthSidious(){\n }", "private GuiUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }", "private ContentUtil() {\n // do nothing\n }", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "private HardCodedCitations() {\n }", "public Pasien() {\r\n }", "private UsineJoueur() {}", "public Curso() {\r\n }", "private Tuples() {\n // prevent instantiation.\n }", "public CyanSus() {\n\n }", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "private Helper() {\r\n // do nothing\r\n }", "private HttpClient() {\n\t}", "private JsonUtils() {\n\t\tsuper();\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate Filter() {\n\n\t}", "private Server()\n\t{\n\t}", "private Builder() {\n }", "private Builder() {\n }", "private Settings() {}", "public Tbdtokhaihq3() {\n super();\n }", "protected Product() {\n\t\t\n\t}", "public PSRelation()\n {\n }" ]
[ "0.7883724", "0.77926433", "0.76846474", "0.7626556", "0.75714576", "0.75536364", "0.7404144", "0.7354553", "0.727307", "0.7271066", "0.7270541", "0.71808314", "0.7177108", "0.7169986", "0.71362287", "0.7135409", "0.7108077", "0.70946145", "0.70820564", "0.7081095", "0.70799613", "0.70661426", "0.7062973", "0.7061384", "0.70589894", "0.70546025", "0.70506036", "0.7050158", "0.70382106", "0.7030237", "0.70250046", "0.7015815", "0.7015815", "0.7015562", "0.7003221", "0.70025015", "0.70025015", "0.69987816", "0.6990096", "0.69886833", "0.69639623", "0.6958591", "0.69532645", "0.6934542", "0.69307584", "0.6926794", "0.69138396", "0.6912525", "0.69037914", "0.689979", "0.6896508", "0.6890589", "0.68741405", "0.6872628", "0.68719935", "0.687097", "0.6865214", "0.6864151", "0.6863718", "0.6855594", "0.68550724", "0.68472964", "0.68466526", "0.6846635", "0.68421334", "0.6829344", "0.6818417", "0.681634", "0.68098044", "0.6805803", "0.6803814", "0.6803186", "0.680218", "0.68006366", "0.67990154", "0.67934614", "0.6791005", "0.67907345", "0.67905414", "0.6785993", "0.6780138", "0.67778087", "0.6776784", "0.6774891", "0.6774652", "0.6773728", "0.6768736", "0.67655665", "0.67636377", "0.6761472", "0.6761252", "0.6754103", "0.6753341", "0.67522514", "0.6749906", "0.6744389", "0.6744389", "0.67357856", "0.67343414", "0.6732872", "0.673137" ]
0.0
-1
Retrieves the specified typelevel annotation, if any, from the bean instance.
public static <A extends Annotation> A getAnnotationFromInstance(Class<A> annotationType, Object instance) { return instance.getClass().getAnnotation(annotationType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PropertyGetter(role = ANNOTATION)\n\t<A extends Annotation> CtAnnotation<A> getAnnotation(\n\t\t\tCtTypeReference<A> annotationType);", "Annotation getAnnotation();", "private Optional<AnnotatedMember> getMemberForType(AnnotatedType annotatedType) {\n\n String currentPropertyName = annotatedType.getPropertyName();\n\n if (currentPropertyName != null && annotatedType.getParent() != null) {\n\n JavaType parentType = definedTypes.get(annotatedType.getParent().getName());\n\n if (parentType != null) {\n\n BeanDescription parentBeanDescription = _mapper.getSerializationConfig().introspect(parentType);\n\n return parentBeanDescription.findProperties().stream()\n .filter(property -> property.getName().equals(currentPropertyName))\n .findFirst()\n .map(BeanPropertyDefinition::getPrimaryMember);\n }\n }\n\n return Optional.empty();\n }", "AnnotationProvider getClassAnnotationProvider();", "public JavaAnnotation getAnnotation( String name );", "public <T extends Annotation> T getPropertyAnnotation(Class<T> annoCls) {\n if(field != null) {\n T annoOnField = field.getAnnotation(annoCls);\n if (annoOnField != null) {\n return annoOnField;\n }\n }\n if(getMethod != null) {\n T annoOnGetMethod = getMethod.getAnnotation(annoCls);\n if (annoOnGetMethod != null) {\n return annoOnGetMethod;\n }\n }\n if(setMethod != null) {\n return setMethod.getAnnotation(annoCls);\n }\n return null;\n }", "public Class<? extends Annotation> annotationType() {\n\t\treturn null;\r\n\t}", "public String getAnnotation();", "@Override\n\t\t\tpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass) {\n\t\t\t\treturn null;\n\t\t\t}", "public Annotation getAnnotation() {\n return annotation;\n }", "@Override\n\tpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass) {\n\t\treturn null;\n\t}", "public String annotation() {\n return this.innerProperties() == null ? null : this.innerProperties().annotation();\n }", "public <T extends Annotation> T loadAnnotation(Class<T> type) {\n\t\tAnnotationMirror mirror = getAnnotation(type);\n\t\tif(mirror == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn mirror.getProxy(type);\n\t}", "public <T> T getInstance(TypeLiteral<T> type,\n Annotation annotation) {\n return getLocator(Key.get(type, annotation)).get();\n }", "public <T extends Annotation> T findAnnotation(final Class<T> type, final InvocationContext context) {\n final Class<?> target = ofNullable(context.getTarget())\n .flatMap(it -> UnwrappedCache.Tool.unwrap(unwrappedCache.getUnwrappedCache(), it))\n .orElseGet(() -> Class.class.cast(context.getMethod().getDeclaringClass()));\n return findAnnotation(type, manager.createAnnotatedType(target), context.getMethod());\n }", "protected Class<? extends Annotation> getAutowiredAnnotationType() {\n return this.autowiredAnnotationType;\n }", "public AnnotationMirror getAnnotation(Class<? extends Annotation> annotation) {\n\t\tString jvmName = ClassUtils.getJVMName(annotation);\n\t\tfor(AnnotationMirror a : getAnnotations()) {\n\t\t\tif(a.getType().getJVMName().equals(jvmName)) {\n\t\t\t\treturn a;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private Log getAnnotationLog(JoinPoint joinPoint) {\n Signature signature = joinPoint.getSignature();\n MethodSignature methodSignature = (MethodSignature) signature;\n Method method = methodSignature.getMethod();\n\n if (method != null) {\n return method.getAnnotation(Log.class);\n }\n return null;\n }", "Annotation readAnnotation(int annotationID);", "public Framework_annotation<T> build_annotation();", "private <T extends Annotation> T getMetaAnnotation(Class<T> metaAnnotation, Field field)\r\n {\r\n Annotation[] allAnnotations = field.getAnnotations();\r\n for (Annotation annotation : allAnnotations) {\r\n if (annotation.annotationType().isAnnotationPresent(metaAnnotation)) {\r\n return annotation.annotationType().getAnnotation(metaAnnotation);\r\n }\r\n }\r\n return null;\r\n }", "@Override\n public String getAnnotation() {\n return annotation;\n }", "public Annotation getAnnotation(Class<?> annotationClass){\n\t\tAnnotation annotation = null;\n\t\tif (annotations.containsKey(annotationClass)){\n\t\t\tannotation = annotations.get(annotationClass);\n\t\t}\n\t\treturn annotation;\n\t}", "public static <A extends IAnnotation> A getTargetAnnotation (ITextUnit textUnit,\r\n \t\tLocaleId locId,\r\n \t\tClass<A> type)\r\n \t{\r\n \t\tif ( textUnit == null ) return null;\r\n \t\tif ( Util.isNullOrEmpty(locId) ) return null;\r\n \t\tif ( textUnit.getTarget(locId) == null ) return null;\r\n \t\treturn textUnit.getTarget(locId).getAnnotation(type);\r\n \t}", "private static FieldTypePair getAnnotatedFieldIfPresent(final Class clazz, Class<? extends Annotation> annotationClass) {\n for (final FieldTypePair fieldTypePair : getDeclaredAndInheritedFieldTypePairs(clazz, true)) {\n Field field = fieldTypePair.getField();\n if (field.isAnnotationPresent(annotationClass)) {\n return fieldTypePair;\n }\n }\n return null;\n }", "public Object handleAnnotation(AnnotationMirror annotation) {\n @SuppressWarnings(\"unchecked\")\n List<AnnotationValue> arrayMembers = (List<AnnotationValue>)annotation.getElementValues().values().iterator().next().getValue();\n return (String)arrayMembers.iterator().next().getValue();\n }", "public Annotation getAnnotation(long j) {\n return this.annotations.obtainBy(j);\n }", "public static <T> T getBean(String beanName, Class<? extends Annotation> annotationType) {\n T t = (T) applicationContext.getBean(beanName);\n if (!t.getClass().isAnnotationPresent(annotationType)) {\n throw new NoSuchBeanDefinitionException(\"Resources don't exist.\");\n }\n return t;\n }", "public Annotation getAnnotation(Class<?> aClass, Class<?> aAnnotation) {\n\t\treturn AnnotationsHelper.getAnnotation(aClass, aAnnotation);\n\t}", "public Class<? extends Annotation> getDeploymentType()\n {\n return _deploymentType;\n }", "public boolean usesTypeAnnotations() {\n return true;\n }", "public String getAnnotation() {\n return annotation;\n }", "public static <A extends IAnnotation> A getSourceAnnotation (ITextUnit textUnit,\r\n \t\tClass<A> type)\r\n \t{\r\n \t\tif (textUnit == null)\r\n \t\t\treturn null;\r\n \t\tif (textUnit.getSource() == null)\r\n \t\t\treturn null;\r\n \r\n \t\treturn textUnit.getSource().getAnnotation(type);\r\n \t}", "public static String getClassAnnotationValue(Class<RegExp> classType,\n\t Class<Author> annotationType,\n\t String attributeName) {\n\t String value = null;\n\t Annotation annotation = classType.getAnnotation(annotationType);\n\t if (annotation != null) {\n\t try {\n\t value = (String) annotation.annotationType().getMethod(attributeName)\n\t .invoke(annotation);\n\t } catch (Exception ex) {\n\t System.out.println(\"Failed loading class annotations\");\n\t }\n\t }\n\t return value;\n\t }", "int getAnnotationSourceValue();", "@Nullable\n public static <A extends Annotation> A getMergedAnnotation(AnnotatedElement element, Class<A> annotationType) {\n if (AnnotationFilter.PLAIN.matches(annotationType) || AnnotationsScanner.hasPlainJavaAnnotationsOnly(element)) {\n return element.getDeclaredAnnotation(annotationType);\n }\n // Exhaustive retrieval of merged annotations...\n return getAnnotations(element).get(annotationType, null, MergedAnnotationSelectors.firstDirectlyDeclared()).synthesize(MergedAnnotation::isPresent).orElse(null);\n }", "<T extends Annotation> IList<Object> getAnnotatedObjects(Class<T> type);", "public static <T extends Annotation> T findAnnotationInClassHierarchy(Class<?> annotatedClass, Class<T> annotationClass) {\n T result = null;\n while (annotatedClass != null && result == null) {\n result = annotatedClass.getAnnotation(annotationClass);\n annotatedClass = annotatedClass.getSuperclass();\n }\n return result;\n }", "public String getAnnotation () {\n return annotation;\n }", "Set<Class<? extends Annotation>> getScanTypeAnnotations();", "public DeclaredType getClassFromAnnotationMethod(Supplier<Class<?>> supplier) {\n\t\ttry {\n\t\t\treturn (DeclaredType) of(supplier.get());\n\t\t} catch (MirroredTypeException e) {\n\t\t\t// types WILL be declared\n\t\t\treturn (DeclaredType) e.getTypeMirror();\n\t\t}\n\t}", "protected Field getFieldWithAnnotation(Class clazz, Class annotation)\r\n {\r\n Field result = null;\r\n Field fields[] = clazz.getDeclaredFields();\r\n for (Field field : fields) {\r\n Annotation an = field.getAnnotation(annotation);\r\n if (an != null) {\r\n return field;\r\n }\r\n }\r\n return result;\r\n }", "public short getTypeOffset() {\n\t\treturn this.offset;\n\t}", "private Color findColor(Object annotationType) {\n \t\tColor color= (Color) fColorTable.get(annotationType);\n \t\tif (color != null)\n \t\t\treturn color;\n \n \t\tif (fAnnotationAccess instanceof IAnnotationAccessExtension) {\n \t\t\tIAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess;\n \t\t\tObject[] superTypes= extension.getSupertypes(annotationType);\n \t\t\tif (superTypes != null) {\n \t\t\t\tfor (int i= 0; i < superTypes.length; i++) {\n \t\t\t\t\tcolor= (Color) fColorTable.get(superTypes[i]);\n \t\t\t\t\tif (color != null)\n \t\t\t\t\t\treturn color;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn null;\n \t}", "TypeElement getTypeElement();", "public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}", "public static <T extends Annotation> Optional<T> findFirst(TypeName annoTypeName,\n Collection<T> coll) {\n String name = annoTypeName.name();\n return coll.stream()\n .filter(it -> it.typeName().name().equals(name))\n .findFirst();\n }", "public String getAnnotationSubPackageProperty() {\n return null;\n }", "@Type\n public int getType() {\n return mType;\n }", "public Annotation getAnnotation(Class<?> aClass, Annotation aAnnotation) {\n\t\treturn AnnotationsHelper.getAnnotation(aClass, aAnnotation);\n\t}", "public AnnotatedTypeBuilder<X> readFromType(AnnotatedType<X> type) {\n\t\treturn readFromType(type, true);\n\t}", "Type<?> get(String name);", "ElementType getElementType();", "private <T extends Annotation> T findAnnotation(Annotation[] annotations, Class<T> cls) {\n for (Annotation annotation : annotations) {\n if (cls.isInstance(annotation)) {\n //noinspection unchecked\n return (T) annotation;\n }\n }\n return null;\n }", "@Nullable\n public static <A extends Annotation> A findMergedAnnotation(AnnotatedElement element, Class<A> annotationType) {\n if (AnnotationFilter.PLAIN.matches(annotationType) || AnnotationsScanner.hasPlainJavaAnnotationsOnly(element)) {\n return element.getDeclaredAnnotation(annotationType);\n }\n // Exhaustive retrieval of merged annotations...\n return findAnnotations(element).get(annotationType, null, MergedAnnotationSelectors.firstDirectlyDeclared()).synthesize(MergedAnnotation::isPresent).orElse(null);\n }", "public static <T> T getAnnotation(final Class c, final Class<T> annotation) {\n final List<T> found = getAnnotations(c, annotation);\n if (found != null && !found.isEmpty()) {\n return found.get(0);\n } else {\n return null;\n }\n }", "public Annotation getAnnotation(Fw aField, Class<?> aAnnotation) {\n\t\treturn AnnotationsHelper.getAnnotation(aField, aAnnotation);\n\t}", "private String getMetaAnnotationType(Class<?> clazz, Collection<Class<? extends Annotation>> annotationSet) {\n for (Class<? extends Annotation> annotType : annotationSet) {\n Annotation annotInstance = clazz.getAnnotation(annotType);\n if (annotInstance != null) {\n return (String) invoke(annotInstance, \"value\", null, null);\n }\n }\n return null;\n }", "private AnnotationMirror findDependent(Element element) {\n List<TypeCompound> tas = ((Symbol) element).getRawTypeAttributes();\n for (TypeCompound ta : tas) {\n if (ta.getAnnotationType().toString().equals(Dependent.class.getCanonicalName())) {\n return ta;\n }\n }\n return null;\n }", "private void getAnnotatedClass(Class<? extends Annotation> annotation, final Element element) {\n TypeElement typeElement = (TypeElement) element.getEnclosingElement();\n// String fullName = typeElement.getQualifiedName().toString();\n Map<Class<? extends Annotation>, List<Element>> classListMap = mAnnotation.get(typeElement);\n if (classListMap == null) {\n classListMap = new HashMap<>();\n ArrayList<Element> elements=new ArrayList<>();\n elements.add(element);\n classListMap.put(annotation,elements);\n mAnnotation.put(typeElement, classListMap);\n } else {\n List<Element> elements = classListMap.get(annotation);\n if (elements == null) {\n elements = new ArrayList<>();\n elements.add(element);\n classListMap.put(annotation,elements);\n mAnnotation.put(typeElement, classListMap);\n } else\n mAnnotation.get(typeElement).get(annotation).add(element);\n }\n\n// log(annotationList.size() + \"fdas\");\n }", "public Class<T> getBeanClass() {\n return this.type;\n }", "public static <T extends Annotation> Optional<T> findFirst(String annoTypeName,\n Collection<T> coll) {\n assert (!annoTypeName.isBlank());\n return coll.stream()\n .filter(it -> it.typeName().name().equals(annoTypeName))\n .findFirst();\n }", "@NonNull\n\t<T> Optional<T> get(@NonNull Class<T> type);", "public AnnotatedTypeBuilder<X> readFromType(Class<X> type) {\n\t\treturn readFromType(type, true);\n\t}", "@NotNull\n/* 42 */ public PolicyType getType() { return this.myType; }", "Class<?> getMemberType(Injectable injectable);", "public String getLtype() {\n return (String) get(2);\n }", "Object getTipo();", "@PropertyGetter(role = ANNOTATION)\n\tList<CtAnnotation<? extends Annotation>> getAnnotations();", "public AnnotationInfo fetchByAnnotationProperties(long DocumentRecordID,\n\t\tString Name, String AnnotationType, String Lead)\n\t\tthrows SystemException {\n\t\treturn fetchByAnnotationProperties(DocumentRecordID, Name,\n\t\t\tAnnotationType, Lead, true);\n\t}", "@Override\n protected void addTypeAnnotation(final List<TypePathNode> typePath, final AnnotationInfo annotationInfo) {\n int numDeeperNestedLevels = 0;\n int nextTypeArgIdx = -1;\n for (final TypePathNode typePathNode : typePath) {\n if (typePathNode.typePathKind == 1) {\n // Annotation is deeper in a nested type\n // (can handle this iteratively)\n numDeeperNestedLevels++;\n } else if (typePathNode.typePathKind == 3) {\n // Annotation is on a type argument of a parameterized type\n // (need to handle this recursively)\n nextTypeArgIdx = typePathNode.typeArgumentIdx;\n break;\n } else {\n // Not valid here:\n // 0 => Annotation is deeper in an array type\n // 2 => Annotation is on the bound of a wildcard type argument of a parameterized type\n throw new IllegalArgumentException(\"Bad typePathKind: \" + typePathNode.typePathKind);\n }\n }\n\n // Figure out whether to index the base type or a suffix, skipping over non-nested class pairs\n int suffixIdx = -1;\n int nestingLevel = -1;\n String typePrefix = className;\n for (;;) {\n boolean skipSuffix;\n if (suffixIdx >= suffixes.size()) {\n throw new IllegalArgumentException(\"Ran out of nested types while trying to add type annotation\");\n } else if (suffixIdx == suffixes.size() - 1) {\n // The suffix to the right cannot be static, because there are no suffixes to the right,\n // so this suffix doesn't need to be skipped\n skipSuffix = false;\n } else {\n // For suffix path X.Y, classes are not nested if Y is static\n final ClassInfo outerClassInfo = scanResult.getClassInfo(typePrefix);\n typePrefix = typePrefix + '$' + suffixes.get(suffixIdx + 1);\n final ClassInfo innerClassInfo = scanResult.getClassInfo(typePrefix);\n skipSuffix = outerClassInfo == null || innerClassInfo == null\n || outerClassInfo.isInterfaceOrAnnotation() //\n || innerClassInfo.isInterfaceOrAnnotation() //\n || innerClassInfo.isStatic() //\n || !outerClassInfo.getInnerClasses().contains(innerClassInfo);\n }\n if (!skipSuffix) {\n // Found nested classes\n nestingLevel++;\n if (nestingLevel >= numDeeperNestedLevels) {\n break;\n }\n }\n suffixIdx++;\n }\n\n if (nextTypeArgIdx == -1) {\n // Reached end of path -- add type annotation\n if (suffixIdx == -1) {\n // Add type annotation to base type\n addTypeAnnotation(annotationInfo);\n } else {\n // Add type annotation to suffix type\n addSuffixTypeAnnotation(suffixIdx, annotationInfo);\n }\n } else {\n final List<TypeArgument> typeArgumentList = suffixIdx == -1 ? typeArguments\n : suffixTypeArguments.get(suffixIdx);\n // For type descriptors (as opposed to type signatures), typeArguments is the empty list,\n // so need to bounds-check nextTypeArgIdx\n if (nextTypeArgIdx < typeArgumentList.size()) {\n // type_path_kind == 3 can be followed by type_path_kind == 2, for an annotation on the\n // bound of a nested type, and this has to be handled recursively on the remaining\n // part of the type path\n final List<TypePathNode> remainingTypePath = typePath.subList(numDeeperNestedLevels + 1,\n typePath.size());\n // Add type annotation to type argument \n typeArgumentList.get(nextTypeArgIdx).addTypeAnnotation(remainingTypePath, annotationInfo);\n }\n }\n }", "public abstract Annotations getClassAnnotations();", "private Element get(final Class<? extends Annotation> annotation) {\n return new MockElement(annotation);\n }", "int getGunType();", "public AnnotationLocation getAnnotationLocation() {\n return annotationLocation;\n }", "protected Object fetchBean()\n {\n if (isAttributeDefined(ATTR_REF))\n {\n return getContext().findVariable(getStringAttr(ATTR_REF));\n }\n\n else\n {\n BeanContext bc = FormBaseTag.getBuilderData(getContext())\n .getBeanContext();\n if (isAttributeDefined(ATTR_BEAN_CLASS))\n {\n Class<?> beanClass = FormBaseTag.convertToClass(getAttributes()\n .get(ATTR_BEAN_CLASS));\n return bc.getBean(beanClass);\n }\n else\n {\n return bc.getBean(getStringAttr(ATTR_BEAN_NAME));\n }\n }\n }", "@Override\n\tpublic Type getTypeToken() {\n\t\treturn new TypeToken<TribeInfoBean>() {\n\t\t}.getType();\n\t}", "@JsonGetter(\"restrictionType\")\r\n public String getRestrictionType ( ) { \r\n return this.restrictionType;\r\n }", "public String\n getAnnotationName() \n {\n return pAnnotationName;\n }", "public static <A extends Annotation> Optional<A> findNearestAnnotation(\n AnnotatedElement annotatedElement, \n Class<A> annotationType) {\n //XXX if synthesize has good runtime performance, then we simply us it here\n return synthesize(annotatedElement, annotationType);\n }", "public Class getAttributeType();", "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.LocationNamedInsured getSubtype();", "public static <T> T get(final Class<T> type) {\n return BeanProvider.getContextualReference(type);\n }", "public <T> T getProperty(String name, Class<T> type);", "public interface AnnotationValue {\n}", "protected Class<?> getOptionalElementType(String optionalName) {\n try {\n Method m = type.getMethod(optionalName);\n return m.getReturnType();\n } catch (NoSuchMethodException ex) {\n return null;\n }\n }", "java.lang.Class<? extends org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.ToastType> getToasterToastType();", "@Nullable\n\tprivate TypeInformation<?> detectAssociationTargetType() {\n\n\t\tif (!isAssociation()) {\n\t\t\treturn null;\n\t\t}\n\n\t\tfor (Class<? extends Annotation> annotationType : ASSOCIATION_ANNOTATIONS) {\n\n\t\t\tAnnotation annotation = findAnnotation(annotationType);\n\n\t\t\tif (annotation == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tObject entityValue = AnnotationUtils.getValue(annotation, \"targetEntity\");\n\n\t\t\tif (entityValue == null || entityValue.equals(void.class)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\treturn TypeInformation.of((Class<?>) entityValue);\n\t\t}\n\n\t\treturn null;\n\t}", "public TYPE getType(){\n return this.type;\n }", "public LikeType getLikeType();", "public Optional<E> create(Annotation annotation) {\n Class<?> type = annotation.annotationType();\n if (type.isAnnotationPresent(annotationType)) {\n T classAnnotation = type.getAnnotation(annotationType);\n Element element = Elements.element(classElement).from(classAnnotation).get();\n Class<E> typeToCreate = element.getValue();\n return create(annotation, typeToCreate);\n }\n return Optional.empty();\n }", "boolean hasAnnotationValue();", "public JavaType resolveMemberAndTypeAnnotations(DeserializationContext ctxt, AnnotatedMember member, JavaType type) throws JsonMappingException {\n AnnotationIntrospector intr = ctxt.getAnnotationIntrospector();\n if (intr == null) {\n return type;\n }\n if (type.isMapLikeType() && type.getKeyType() != null) {\n KeyDeserializer kd = ctxt.keyDeserializerInstance(member, intr.findKeyDeserializer(member));\n if (kd != null) {\n type = ((MapLikeType) type).withKeyValueHandler(kd);\n type.getKeyType();\n }\n }\n if (type.hasContentType()) {\n JsonDeserializer<?> cd = ctxt.deserializerInstance(member, intr.findContentDeserializer(member));\n if (cd != null) {\n type = type.withContentValueHandler(cd);\n }\n TypeDeserializer contentTypeDeser = findPropertyContentTypeDeserializer(ctxt.getConfig(), type, member);\n if (contentTypeDeser != null) {\n type = type.withContentTypeHandler(contentTypeDeser);\n }\n }\n TypeDeserializer valueTypeDeser = findPropertyTypeDeserializer(ctxt.getConfig(), type, member);\n if (valueTypeDeser != null) {\n type = type.withTypeHandler(valueTypeDeser);\n }\n return intr.refineDeserializationType(ctxt.getConfig(), member, type);\n }", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "private Resource getOntClass(Object bean) {\r\n\t\treturn ontClass(bean).addProperty(javaclass, bean.getClass().getName());\r\n\t}", "com.google.cloud.dialogflow.v2beta1.MessageAnnotationOrBuilder getMessageAnnotationOrBuilder();", "default @org.jetbrains.annotations.Nullable java.lang.String getType() {\n return null;\n }", "@NotNull\n PriorityClass getPersonalPriorityClass();", "private IDrawingStrategy getDrawingStrategy(Annotation annotation) {\n \t\tString type= annotation.getType();\n \t\tIDrawingStrategy strategy = (IDrawingStrategy) fRegisteredDrawingStrategies.get(fAnnotationType2DrawingStrategyId.get(type));\n \t\tif (strategy != null)\n \t\t\treturn strategy;\n \n \t\tif (fAnnotationAccess instanceof IAnnotationAccessExtension) {\n \t\t\tIAnnotationAccessExtension ext = (IAnnotationAccessExtension) fAnnotationAccess;\n \t\t\tObject[] sts = ext.getSupertypes(type);\n \t\t\tfor (int i= 0; i < sts.length; i++) {\n \t\t\t\tstrategy= (IDrawingStrategy) fRegisteredDrawingStrategies.get(fAnnotationType2DrawingStrategyId.get(sts[i]));\n \t\t\t\tif (strategy != null)\n \t\t\t\t\treturn strategy;\n \t\t\t}\n \t\t}\n \n \t\treturn fgNullDrawer;\n \n \t}" ]
[ "0.58793736", "0.54880774", "0.53696656", "0.53434056", "0.5182682", "0.51242524", "0.5123482", "0.5120728", "0.5013212", "0.50100636", "0.49741706", "0.49562308", "0.49411857", "0.49254164", "0.48462474", "0.4842717", "0.4778955", "0.4775286", "0.47458193", "0.47347164", "0.47193497", "0.47058323", "0.46828532", "0.46765664", "0.4643306", "0.46307415", "0.45907637", "0.45688435", "0.45486593", "0.4528954", "0.45194295", "0.45162892", "0.45043722", "0.44935334", "0.44873962", "0.44778258", "0.4463655", "0.44535697", "0.44187173", "0.44154748", "0.44141385", "0.440629", "0.43970117", "0.43854207", "0.43748006", "0.43728435", "0.4367748", "0.4367176", "0.4349368", "0.43470445", "0.43461603", "0.43431377", "0.43418333", "0.43409058", "0.43367893", "0.4334479", "0.433443", "0.4318841", "0.43101496", "0.4309176", "0.4309002", "0.4303628", "0.42989156", "0.42961428", "0.4290315", "0.42885628", "0.42798948", "0.42783752", "0.4278045", "0.42677438", "0.42656448", "0.42571926", "0.42522404", "0.42362133", "0.4234508", "0.42341855", "0.4228389", "0.42111093", "0.4195751", "0.41655344", "0.41655236", "0.4164505", "0.41644993", "0.41609764", "0.41535446", "0.41531828", "0.41529584", "0.41481358", "0.41460663", "0.41438034", "0.41434053", "0.4131871", "0.4118559", "0.41115198", "0.41115198", "0.41114366", "0.4095515", "0.4083195", "0.4079083", "0.4072841" ]
0.57422966
1
Retrieves the first method on the bean instance marked with a methodlevel annotation of the specified type.
public static Method getAnnotatedMethodFromInstance(Class<? extends Annotation> methodAnnotationClass, Object instance) { Method result = null; for (Method method : instance.getClass().getMethods()) { if (method.isAnnotationPresent(methodAnnotationClass)) { result = method; break; } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private IMethod findMethod(IType type, String sourceMethod) throws JavaModelException {\n\t\tIMethod[] methods = type.getMethods();\r\n\t\tfor (IMethod method : methods) {\r\n\t\t\tif (sourceMethod.equals(method.getElementName())) {\r\n\t\t\t\treturn method;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private Optional<AnnotatedMember> getMemberForType(AnnotatedType annotatedType) {\n\n String currentPropertyName = annotatedType.getPropertyName();\n\n if (currentPropertyName != null && annotatedType.getParent() != null) {\n\n JavaType parentType = definedTypes.get(annotatedType.getParent().getName());\n\n if (parentType != null) {\n\n BeanDescription parentBeanDescription = _mapper.getSerializationConfig().introspect(parentType);\n\n return parentBeanDescription.findProperties().stream()\n .filter(property -> property.getName().equals(currentPropertyName))\n .findFirst()\n .map(BeanPropertyDefinition::getPrimaryMember);\n }\n }\n\n return Optional.empty();\n }", "protected Method findGetter(Class type, Method setter) {\n String name = setter.getName().substring(3);\n Class param = setter.getParameterTypes()[0];\n Method getter;\n try {\n getter = type.getMethod(\"get\" + name, (Class[]) null);\n if (getter.getReturnType().isAssignableFrom(param)\n || param.isAssignableFrom(getter.getReturnType()))\n return getter;\n } catch (NoSuchMethodException nsme) {\n } catch (Exception e) {\n throw new GeneralException(e);\n }\n\n if (param == boolean.class || param == Boolean.class) {\n try {\n getter = type.getMethod(\"is\" + name, (Class[]) null);\n if (getter.getReturnType().isAssignableFrom(param)\n || param.isAssignableFrom(getter.getReturnType()))\n return getter;\n } catch (NoSuchMethodException nsme) {\n } catch (Exception e) {\n throw new GeneralException(e);\n }\n }\n return null;\n }", "Method getMethod();", "Method getMethod();", "public Method getMethod();", "ClassMember getMethod () { return method; }", "public synchronized Method getReadMethod(Class<?> currEntity) {\n\t\tMethod readMethod;\n\t\tString readMethodName = null;\n\t\tif (propType == boolean.class || propType == null) {\n\t\t\treadMethodName = \"is\" + baseName;\n\t\t} else {\n\t\t\treadMethodName = \"get\" + baseName;\n\t\t}\n\t\tClass<?> classStart = currEntity;\n\t\tif (classStart == null) {\n\t\t\tclassStart = entityType;\n\t\t}\n\t\treadMethod = findMemberMethod(classStart, readMethodName, 0, null);\n\t\tif (readMethod == null && readMethodName.startsWith(\"is\")) {\n\t\t\treadMethodName = \"get\" + baseName;\n\t\t\treadMethod = findMemberMethod(classStart, readMethodName, 0, null);\n\t\t}\n\t\tif (readMethod != null) {\n\t\t\tint mf = readMethod.getModifiers();\n\t\t\tif (!Modifier.isPublic(mf)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tClass<?> retType = readMethod.getReturnType();\n\t\t\tif (!propType.isAssignableFrom(retType)) {\n\t\t\t\tlogger.warn(\"return type unmatch for get Method and property! : \"\n\t\t\t\t\t\t+ classStart.getName() + \".\" + name);\n\t\t\t}\n\t\t}\n\t\treturn readMethod;\n\t}", "MethodType getMethodType();", "private static String getTraceMethod(StackTraceElement[] stackTraceElements, int depth) {\n if ((null != stackTraceElements) && (stackTraceElements.length >= depth)) {\n StackTraceElement stackTraceElement = stackTraceElements[depth];\n if (null != stackTraceElement) {\n return stackTraceElement.getMethodName();\n }\n }\n return null;\n }", "public RandomVariableMethods getMethod(String methodType)\n {\n if(methodType.equalsIgnoreCase(\"poisson\"))\n {\n return new MethodPoisson();\n }\n return null;\n }", "ResourceMethod getMethodType();", "public String getMethodName(Class<?> type, String methodName, Class<?>... params);", "@Nullable\n abstract Method getMethod();", "private Method getAnnotatedJavaMethod(Method javaMethod) {\n if (javaMethod == null) {\n return null;\n }\n final boolean useMethod = checkForJaxRsAnnotations(javaMethod);\n if (useMethod) {\n return javaMethod;\n }\n final Class<?> methodClass = javaMethod.getDeclaringClass();\n final Class<?> superclass = methodClass.getSuperclass();\n final Method scMethod = getMethodFromClass(superclass, javaMethod);\n Method annotatedMeth = getAnnotatedJavaMethod(scMethod);\n if (annotatedMeth != null) {\n return annotatedMeth;\n }\n final Class<?>[] interfaces = methodClass.getInterfaces();\n for (final Class<?> interfaze : interfaces) {\n final Method ifMethod = getMethodFromClass(interfaze, javaMethod);\n annotatedMeth = getAnnotatedJavaMethod(ifMethod);\n if (annotatedMeth != null) {\n return annotatedMeth;\n }\n }\n return null;\n }", "Method getRiggerMethod(String methodName, Class<?>... params) throws Exception {\r\n Rigger rigger = getRiggerInstance();\r\n Class<? extends Rigger> clazz = rigger.getClass();\r\n Method method = clazz.getDeclaredMethod(methodName, params);\r\n method.setAccessible(true);\r\n return method;\r\n }", "private static String getCallingMethod(int depth) {\n return getTraceMethod(Thread.currentThread().getStackTrace(), DEPTH_ADD + depth);\n }", "public <T extends Annotation> T findAnnotation(final Class<T> type, final InvocationContext context) {\n final Class<?> target = ofNullable(context.getTarget())\n .flatMap(it -> UnwrappedCache.Tool.unwrap(unwrappedCache.getUnwrappedCache(), it))\n .orElseGet(() -> Class.class.cast(context.getMethod().getDeclaringClass()));\n return findAnnotation(type, manager.createAnnotatedType(target), context.getMethod());\n }", "@Override\r\n\t\tprotected boolean visit(final Type type) {\r\n\t\t\tChecker.notNull(\"parameter:type\", type);\r\n\r\n\t\t\tfinal Method method = type.findMethod(this.getMethodName(), this.getParameterTypes());\r\n\t\t\tfinal boolean skipRemaining = method != null;\r\n\t\t\tif (skipRemaining) {\r\n\t\t\t\tthis.setFound(method);\r\n\t\t\t}\r\n\t\t\treturn skipRemaining;\r\n\t\t}", "private static Method findTransformer(Class<?> rawType) {\n if (rawType == LinkedListMultimap.class || rawType == ListMultimap.class || rawType ==\n Multimap.class) {\n return null;\n }\n\n // First, check type itself for matching methods\n for (String methodName : METHOD_NAMES) {\n try {\n Method m = rawType.getDeclaredMethod(methodName, Multimap.class);\n if (m != null) {\n return m;\n }\n } catch (NoSuchMethodException e) {\n }\n // pass SecurityExceptions as-is:\n // } catch (SecurityException e) { }\n }\n\n // If not working, possibly super types too (should we?)\n for (String methodName : METHOD_NAMES) {\n try {\n Method m = rawType.getMethod(methodName, Multimap.class);\n if (m != null) {\n return m;\n }\n } catch (NoSuchMethodException e) {\n }\n // pass SecurityExceptions as-is:\n // } catch (SecurityException e) { }\n }\n\n return null;\n }", "public Method findMatchingGetMethod(Object bean, String propertyName) {\n\t\tfor (Method method : bean.getClass().getMethods()) {\n\t\t\t// find all the set methods\n\t\t\tif (method.getName().startsWith(\"get\") && method.getName().length() > \"get\".length()) {\n\t\t\t\tString methodName = method.getName().substring(\"get\".length());\n\t\t\t\tmethodName = methodName.replace(methodName.substring(0,1), methodName.substring(0,1).toLowerCase());\n\t\t\t\tif (methodNameMatches(methodName, propertyName)) {\n\t\t\t\t\tif (method.getReturnType() == null) {\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Unable to find matching getter method for [\" + propertyName + \"] in bean [\" + bean.getClass().getCanonicalName() + \"]. Found [\" + method.getName() + \"] but this does not have a return type.\");\n\t\t\t\t\t}\n\t\t\t\t\treturn method;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalArgumentException(\"Unable to find matching getter method for [\" + propertyName + \"] in bean [\" + bean.getClass().getCanonicalName() + \"]\");\n\t}", "@SuppressWarnings(\"unchecked\")\n private static Optional<MethodInfo> findMethod(ClassPath path,\n ClassDescriptor clazz,\n BiPredicate<ClassNode, MethodNode> condition) {\n return find(path,\n path.findClass(clazz).get(),\n cn -> ((List<MethodNode>) cn.methods)\n .stream()\n .filter(mn -> condition.test(cn, mn))\n .map(mn -> new MethodInfo(new ClassDescriptor(cn.name),\n MethodDescriptor.create(mn.name, mn.desc)))\n .findFirst());\n }", "public static ReflectionResponse<Method> getDeclaredMethodByType(Class<?> clazz, Class<?> type, int index) {\n return getDeclaredMethodByType(clazz, type, index, false);\n }", "@Nullable\n protected abstract MethodInterceptor getInterceptor(Method method);", "public static String getGetterPrefix(final ClassifierFacade type)\r\n {\r\n return type != null && type.isBooleanType() && type.isPrimitive() ? \"is\" : \"get\";\r\n }", "public Method getSetterMethod(String property, Class<?> paramType) {\n String methodName = getSetterMethodName(property);\n Method method;\n\n try {\n method = this.type.getMethod(methodName, paramType);\n } catch (NoSuchMethodException e) {\n method = null;\n } catch (SecurityException e) {\n method = null;\n }\n\n return method;\n }", "public Method getMethod() {\n return method;\n }", "public Method getMethod() {\n return method;\n }", "String getMethod();", "String getMethod();", "MethodName getMethod();", "public Function getMethod(int signature)\r\n\t{\r\n\t\t// search own methods:\r\n\t\tfor (Function fn : methods)\r\n\t\t{\r\n\t\t\tif (fn.signature == signature)\r\n\t\t\t\treturn fn;\r\n\t\t}\r\n\t\t// if we have a base class, let it search for methods, or return null\r\n\t\tif (baseClass != null)\r\n\t\t\treturn baseClass.getMethod(signature);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "public static Method getMetodo (Class classe, TipoMetodo tipoMetodo, String atributo) throws SecurityException {\n\t\tMethod metodo = null;\n\t\ttry {\n\t\tif (existe(classe)) {\n\t\t\tClass tipo = classe;\n\t\t\tfor (Field campo : tipo.getDeclaredFields()) {\n\t\t\t\tif (campo.getName().equals(atributo)) {\n\t\t\t\t\tString primeiroCaracter = atributo.substring(0, 1).toUpperCase();\n\t\t\t\t\tString nomeMetodo = \"\";\n\t\t\t\t\tswitch (tipoMetodo) {\n\t\t\t\t\tcase GET:\n\t\t\t\t\t\tnomeMetodo = \"get\" + primeiroCaracter + atributo.substring(1);\n\t\t\t\t\t\treturn tipo.getMethod(nomeMetodo, null);\n\t\t\t\t\tcase SET:\n\t\t\t\t\t\tnomeMetodo = \"set\" + primeiroCaracter + atributo.substring(1);\n\t\t\t\t\t\treturn tipo.getMethod(nomeMetodo, campo.getType());\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tnomeMetodo = atributo;\n\t\t\t\t\t\treturn tipo.getMethod(nomeMetodo, campo.getType());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tmetodo = tipo.getMethod(atributo, null);\n\t\t}\n\t\t} catch (NoSuchMethodException e) {\n\t\t\tboolean possuiHeranca = existe(classe.getSuperclass()) && (classe.getSuperclass() != Object.class);\n\t\t\tif (possuiHeranca) {\n\t\t\t\treturn getMetodo(classe.getSuperclass(), tipoMetodo, atributo);\n\t\t\t}\n\t\t}\n\t\treturn metodo;\n\t}", "public Method getMethod() {\n return mMethod;\n }", "DevelopmentMethod getRelatedMethod();", "public Method getMethod () {\n\t\treturn method;\n\t}", "public DynamicMethod retrieveMethod(String name) {\n return getMethods().get(name);\n }", "public Method getMethod() {\n\t\treturn this.currentAction.getMethod();\n\t}", "public Method getMethod() {\n\t\treturn method;\n\t}", "public MethodSymbol getEnclosingScopeOfType(Class<?> type) {\n\t\tScope s = this;\n\t\twhile (s != null) {\n\t\t\tif (s.getClass() == type) {\n\t\t\t\treturn (MethodSymbol) s;\n\t\t\t}\n\t\t\ts = s.getEnclosingScope();\n\t\t}\n\t\treturn null;\n\t}", "public int getMethod(){\n return method;\n }", "protected Method getMethod() {\n return method;\n }", "public static <T> T get(final Class<T> type) {\n return BeanProvider.getContextualReference(type);\n }", "public Method getGetter() {\n return this.getter;\n }", "private TypeBodyImpl getApparentType() {\n TypeBodyImpl enclosingType = getEnclosingTypeBody();\n while (enclosingType != null) {\n TypeBodyImpl superType = enclosingType;\n while (superType != null) {\n if (superType == method.getEnclosingTypeBody()) {\n // We've found the method on a superclass\n return enclosingType;\n }\n superType = superType.getSupertype() == null ? null : superType.getSupertype().getTypeBody();\n }\n // Not found on this type, so try the enclosing type\n enclosingType = enclosingType.getEnclosingTypeBody();\n }\n return null;\n }", "public static Optional<MethodInfo> findMethod(ClassPath path, ClassDescriptor clazz, MethodDescriptor descriptor) {\n return findMethod(path, clazz, mi -> mi.getDescriptor().equals(descriptor));\n }", "private Method getMethodFromClass(Class<?> clazz, Method subClassMethod) {\n if (clazz == null) {\n return null;\n }\n final String methodName = subClassMethod.getName();\n final Class<?>[] parameterTypes = subClassMethod.getParameterTypes();\n try {\n return clazz.getMethod(methodName, parameterTypes);\n } catch (final NoSuchMethodException e) {\n return null;\n }\n }", "public static ReflectionResponse<Method> getMethodByType(Class<?> clazz, Class<?> type, int index) {\n return getMethodByPredicate(clazz, new MethodPredicate().withReturnType(type), index);\n }", "public Method method() {\n return method;\n }", "Methodsig getMethod();", "public <T extends Annotation> T getPropertyAnnotation(Class<T> annoCls) {\n if(field != null) {\n T annoOnField = field.getAnnotation(annoCls);\n if (annoOnField != null) {\n return annoOnField;\n }\n }\n if(getMethod != null) {\n T annoOnGetMethod = getMethod.getAnnotation(annoCls);\n if (annoOnGetMethod != null) {\n return annoOnGetMethod;\n }\n }\n if(setMethod != null) {\n return setMethod.getAnnotation(annoCls);\n }\n return null;\n }", "static Method getMethod(final Class < ? extends SimpleScriptable> clazz, final String name) {\n if (name == null) {\n return null;\n }\n for (final Method method : clazz.getMethods()) {\n if (method.getName().equals(name)) {\n return method;\n }\n }\n return null;\n }", "public MethodSignature getIndistinguishableMethod(MethodSignature signature) {\n for (MethodSignature ms : methodTable.get(signature.getSymbol())) {\n if (ms.isIndistinguishable(signature)) return ms;\n }\n\n return null;\n }", "protected IMethod getIMethodFromMethodWrapper(MethodWrapper m) {\r\n\t\ttry {\r\n\t\t\tIMember im = m.getMember();\r\n\t\t\tif (im.getElementType() == IJavaElement.METHOD) {\r\n\t\t\t\treturn (IMethod) m.getMember();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "protected Method getClassMethod(Class<?> cls, String methodName) {\n Method method = null;\n\n // Perhaps its better to use both \"getMethods\" & \"getDeclaredMethods\" methods?\n for (Method m : cls.getDeclaredMethods()) {\n if (m.getName().equals(methodName)) {\n if (Modifier.isPrivate(m.getModifiers())) {\n logger.warn(\"handler with private access modifier is not supported\");\n }\n else {\n method = m;\n\n break;\n }\n }\n }\n\n return method;\n }", "private OperationType methodSignatureMapping() {\n String methodName = this.methodSignature.getName();\n try {\n MethodNameMapping methodNameMapping = SpiOrIocUtils.getBean(applicationContext, MethodNameMapping.class);\n assignOperationType(methodNameMapping, methodName);\n return operationType == null ? doDefaultMapping(methodName) : operationType;\n } catch (GetBeanException gbe) {\n if (logger.isErrorEnabled()) {\n logger.error(\"get the method name mapping from spi or spring ioc happen error. \" +\n \"demote the default mapping\", gbe);\n }\n return doDefaultMapping(methodName);\n }\n }", "@SuppressWarnings(\"unchecked\")\n public static <T> Class<T> getCallerClass(int depth) {\n try {\n return (Class<T>) Class.forName(Thread.currentThread().getStackTrace()[depth + 2].getClassName());\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(\"Something went wrong when finding calling class.\", e);\n }\n }", "public String getMethod ()\n {\n return method;\n }", "public java.lang.reflect.Method getMethod()\n {\n return __m_Method;\n }", "public static ReflectionResponse<Method> getDeclaredMethodByType(Class<?> clazz, Class<?> type, int index, boolean setAccessible) {\n return getDeclaredMethodByPredicate(clazz, new MethodPredicate().withReturnType(type), 0, setAccessible);\n }", "@JsonIgnore\n public java.lang.reflect.Method getMethod() {\n return this.method;\n }", "private HashSet<SootMethod> getMethodsInvokingAtLevel(SootMethod method,\r\n\t\t\tint level) {\n\t\tHashSet<SootMethod> workSet = new HashSet<SootMethod>();\r\n\t\tworkSet.add(method);\r\n\t\t\r\n\t\tHashSet<SootMethod> newWorkset = new HashSet<SootMethod>(1);\r\n\t\tHashSet<SootMethod> topLevel = new HashSet<SootMethod>();\r\n\t\tHashSet<SootMethod> processed = new HashSet<SootMethod>(1);\r\n\t\tfor(int i=0; i< level; i++){\r\n\t\t\tif(i !=0){\r\n\t\t\t\tfor (SootMethod sootMethod : newWorkset) {\r\n\t\t\t\t\tif(!processed.contains(sootMethod))\r\n\t\t\t\t\t\tworkSet = new HashSet<SootMethod>(newWorkset);\r\n\t\t\t\t}\r\n\t\t\t\tnewWorkset = new HashSet<SootMethod>(1);\r\n\t\t\t}\r\n\t\t\tif(workSet.isEmpty())\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tHashSet<SootMethod> implementedMethods = new HashSet<SootMethod>();\r\n\t\t\tfor (SootMethod m : workSet) {\r\n\t\t\t\tfor (SootClass interfaze : m.getDeclaringClass().getInterfaces()) {\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\tSootMethod m2 = interfaze.getMethod(m.getName(), \r\n\t\t\t\t\t\t\t\tm.getParameterTypes(), m.getReturnType());\r\n\t\t\t\t\t\tif(!processed.contains(m2))\r\n\t\t\t\t\t\t\timplementedMethods.add(m2);\r\n\t\t\t\t\t}catch (RuntimeException e) {\r\n\t\t\t\t\t\t//e.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tworkSet.addAll(implementedMethods);\r\n\t\t\tIterator<SootMethod> iter = workSet.iterator();\r\n\t\t\t\r\n\t\t\twhile(iter.hasNext()){\r\n\t\t\t\tSootMethod m = iter.next();\r\n\t\t\t\tif(getMethodsInvoking(m) != null){\r\n\t\t\t\t\tnewWorkset.addAll(getMethodsInvoking(m));\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\ttopLevel.add(m);\r\n\t\t\t}\r\n\t\t\tprocessed.addAll(workSet);\r\n\t\t}\r\n\t\tprocessed.remove(method);\r\n\t\ttadaMethodInvokedByMap.put(method, processed);\r\n\t\ttopLevel.addAll(newWorkset);\r\n\t\treturn topLevel;\r\n\t}", "public static Collection<Method> findAnnotatedMethods(\n Class<?> type,\n Class<? extends Annotation> annotation\n ) {\n\n List<Method> result = new ArrayList<>();\n\n // gather all publicly available methods\n // this returns everything, even if it's declared in a parent\n for (Method method : type.getMethods()) {\n // skip methods that are used internally by the vm for implementing covariance, etc\n if (method.isSynthetic() || method.isBridge() || isStatic(method.getModifiers())) {\n continue;\n }\n\n // look for annotations recursively in super-classes or interfaces\n Method managedMethod = findAnnotatedMethod(\n type,\n annotation,\n method.getName(),\n method.getParameterTypes()\n );\n if (managedMethod != null) {\n result.add(managedMethod);\n }\n }\n\n return result;\n }", "public static String getScopedMethod(AjaxGroup aGroup, AjaxElement aElement,\n AjaxEvent aEvent) {\n\n String method = aGroup.getMethod();\n if (aElement.getMethod() != null) {\n method = aElement.getMethod();\n }\n if (aEvent.getMethod() != null) {\n method = aEvent.getMethod();\n }\n return method;\n\n }", "public static Optional<Method> find(MethodSpec methodSpec, Class<?> clazz, boolean analiseSuper) {\n return Option.orElseAnd(\n find(methodSpec, clazz.getDeclaredMethods()),\n /* not present and */ analiseSuper,\n /* then */ find(methodSpec, clazz.getMethods()));\n }", "static Method getDefinitionMethod(ContainerRequestContext requestContext) {\n if (!(requestContext.getUriInfo() instanceof ExtendedUriInfo)) {\n throw new IllegalStateException(\"Could not get Extended Uri Info. Incompatible version of Jersey?\");\n }\n\n ExtendedUriInfo uriInfo = (ExtendedUriInfo) requestContext.getUriInfo();\n ResourceMethod matchedResourceMethod = uriInfo.getMatchedResourceMethod();\n Invocable invocable = matchedResourceMethod.getInvocable();\n return invocable.getDefinitionMethod();\n }", "public static Method getTaskMethod(final Class< ? > taskClass) throws TaskServiceException\n {\n for (Method method : taskClass.getMethods())\n {\n if (method.isAnnotationPresent(TaskMethod.class))\n {\n return method;\n }\n }\n\n throw new TaskServiceException(\"Task class must have one (and only one) method annotated with TaskMethod annotation\");\n }", "public <T> T getInstance(TypeLiteral<T> type,\n Annotation annotation) {\n return getLocator(Key.get(type, annotation)).get();\n }", "Object getTipo();", "public StrColumn getMethod() {\n return delegate.getColumn(\"method\", DelegatingStrColumn::new);\n }", "Food getByType(String type);", "public int getSuper(TypeReference type) {\n if (type == null) {\n throw new IllegalArgumentException(\"The argument type may not be null\");\n }\n\n int ssa;\n currentScope--;\n assert(currentScope >= 0 );\n ssa = getCurrent(type);\n currentScope++;\n return ssa;\n }", "ClassMember search (ClassMember method) {\r\n ClassMember m = (ClassMember) by_name_table.get (method.type.toString ());\r\n\r\n if (m == null) return null;\r\n\r\n if (!((MethodType) m.type).return_type.isSame (((MethodType) method.type).return_type)) {\r\n /* overriding methods must be exactly same */\r\n OzcError.illegalOverride (method);\r\n return null;\r\n } \r\n\r\n if ((m.isPublic () && !method.isPublic ()) ||\r\n\t(m.isProtected () && method.isPrivate ())) {\r\n /* overriding methods must be more publicity */\r\n OzcError.illegalOverridePublicity (method);\r\n return null;\r\n }\r\n\r\n return m;\r\n }", "private String getGetMethodName() {\n assert name != null;\n if (field != null && (field.getType() == Boolean.class\n || \"boolean\".equals(field.getType().getName()))) {\n return \"is\" + upperFirstChar(name);\n }\n return \"get\" + upperFirstChar(name);\n }", "private ConstrainedMethod findMethodMetaData(Method method) {\n\n\t\tList<ConstrainedParameter> parameterConstraints = getParameterMetaData( method );\n\t\tboolean isCascading = method.isAnnotationPresent( Valid.class );\n\t\tSet<MetaConstraint<?>> constraints =\n\t\t\t\tconvertToMetaConstraints( findConstraints( method, ElementType.METHOD ), method );\n\n\t\treturn new ConstrainedMethod(\n\t\t\t\tConfigurationSource.ANNOTATION,\n\t\t\t\tnew MethodConstraintLocation( method ),\n\t\t\t\tparameterConstraints,\n\t\t\t\tconstraints,\n\t\t\t\tisCascading\n\t\t);\n\t}", "private Log getAnnotationLog(JoinPoint joinPoint) {\n Signature signature = joinPoint.getSignature();\n MethodSignature methodSignature = (MethodSignature) signature;\n Method method = methodSignature.getMethod();\n\n if (method != null) {\n return method.getAnnotation(Log.class);\n }\n return null;\n }", "public static Optional<MethodInfo> findMethod(ClassPath path,\n ClassDescriptor clazz,\n Predicate<MethodInfo> condition) {\n return findMethod(path, clazz,\n (cn, mn) -> condition.test(new MethodInfo(new ClassDescriptor(cn.name),\n MethodDescriptor.create(mn.name, mn.desc))));\n }", "public static Map<String, Object> getMethod(Map<String, Object> model, String methodName) {\n List<Map<String, Object>> methods = getMethods(model);\n for (Map<String, Object> method : methods) {\n if (methodName.equals(method.get(ModelConstant.NAME))) {\n return method;\n }\n }\n return null;\n }", "@Nullable\n private static MethodInvoker getSimpleMethod(Class<?> clazz, @Nullable String methodName, @Nullable Class<?> returnType, boolean throwException,\n Class<?>... params)\n {\n for (Method method : clazz.getDeclaredMethods())\n {\n if (((params.length == 0) || Arrays.equals(method.getParameterTypes(), params)) && ((methodName == null) || method.getName().equals(methodName)) &&\n ((returnType == null) || method.getReturnType().equals(returnType)))\n {\n getAccess(method);\n return new MethodInvoker(method);\n }\n }\n // Search in every superclass\n if (clazz.getSuperclass() != null)\n {\n return getMethod(clazz.getSuperclass(), methodName, throwException, params);\n }\n if (throwException)\n {\n throw new IllegalStateException(String.format(\"Unable to find method %s (%s).\", methodName, Arrays.asList(params)));\n }\n return null;\n }", "public static <T extends Annotation> Optional<T> findFirst(Class<? extends java.lang.annotation.Annotation> annoType,\n Collection<T> coll) {\n return findFirst(annoType.getTypeName(), coll);\n }", "public HashSet<SootMethod> getMethodsToExplore(int invocationLevel){\n\t\tHashSet<SootMethod> methodsToExplore = new HashSet<SootMethod>();\r\n\t\t\r\n\t\tfor (SootMethod method : tadaMethods) {\r\n\t\t\tHashSet<SootMethod> invokingMethods = getMethodsInvokingAtLevel(method, invocationLevel);\r\n\t\t\tmethodsToExplore.addAll(invokingMethods);\r\n\t\t}\r\n\t\treturn methodsToExplore;\r\n\t}", "public static MethodInvoker findMatchingMethod(Class<?> type, String methodName, Object... values) throws NoSuchMethodException, IllegalStateException\n {\n List<Method> methodList = new ArrayList<>(20);\n Class<?> currentType = type;\n while ((currentType != null) && ! currentType.equals(Object.class))\n {\n for (Method method : currentType.getDeclaredMethods())\n {\n if (method.getName().equals(methodName) && (method.getParameterCount() == values.length))\n {\n methodList.add(method);\n }\n }\n currentType = currentType.getSuperclass();\n }\n return findMatchingExecutable(methodList.toArray(new Method[methodList.size()]), values);\n }", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "String getMethodName();", "String getMethodName();", "public MethodProxy getMethod() {\n\t\treturn null;\n\t}", "@NonNull\n @UsedByGeneratedCode\n protected Method resolveTargetMethod() {\n return ReflectionUtils.getRequiredMethod(declaringType, methodName, argTypes);\n }", "private static Set<SootMethod> searchDownForDefineMethods(SootMethod sm,String type){\n\t\tSet<SootMethod> methods = new HashSet<SootMethod>();\n\t\t//1.判断sm中是否含有intent的定义信息,若有,则返回\n\t\tif(containsInitMethod(sm, type)){\n\t\t\tmethods.add(sm);\n\t\t}\n\t\telse{\n\t\t\tList<SootMethod> targets = InterMethodAnalysis.getTargetsMethods(sm);\t\n\t\t\tfor(SootMethod tgt:targets){\n\t\t\t\tif(tgt.equals(sm))\n\t\t\t\t\tcontinue;\n\t\t\t\tif(tgt.getReturnType().toString().contains(type)){\n\t\t\t\t\tif(tgt.isAbstract()){\n\t\t\t\t\t\tfor(SootMethod smMethod:getConcreteMethods(tgt)){\n\t\t\t\t\t\t\tSet<SootMethod> methods2 = searchDownForDefineMethods(smMethod, type);\n\t\t\t\t\t\t\tfor(SootMethod m:methods2){\n\t\t\t\t\t\t\t\tif(!methods.contains(m)){\n\t\t\t\t\t\t\t\t\tmethods.add(m);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSet<SootMethod> methods2 = searchDownForDefineMethods(tgt, type);\n\t\t\t\t\t\tfor(SootMethod m:methods2){\n\t\t\t\t\t\t\tif(!methods.contains(m)){\n\t\t\t\t\t\t\t\tmethods.add(m);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn methods;\n\t}", "protected Method fetchMethod() {\n int i = randomGenerator.nextInt(allCallableMethods.size());\n Method selected = allCallableMethods.get(i);\n allCallableMethods.add(selected); // We add it back to the list of methods, to make it more likely to be selected!\n return selected;\n }", "ClassMember search (String name, MethodType type, int access,\r\n\t\t int modifier_mask) {\r\n IdentifierList methods = (IdentifierList) get (name);\r\n\r\n if (methods == null) return null;\r\n\r\n java.util.Enumeration ms = methods.elements ();\r\n\r\n ClassMember more_specific = null;\r\n while (ms.hasMoreElements ()) {\r\n ClassMember m = (ClassMember) ms.nextElement ();\r\n\r\n int diff;\r\n try {\r\n\tdiff = m.type.compare (type);\r\n } catch (TypeMismatch e) {\r\n\tcontinue;\r\n }\r\n\r\n if (diff < 0) continue;\r\n\r\n int m_access = m.getAccess ();\r\n\r\n if (access == Constants.PROTECTED) {\r\n\tif (m_access == Constants.PRIVATE) continue;\r\n } else if (access == Constants.PUBLIC) {\r\n\tif (m_access != Constants.PUBLIC) continue;\r\n }\r\n\t \r\n if (modifier_mask > 0 &&\r\n\t ((m.getModifier () & modifier_mask) == 0)) continue;\r\n\r\n if (diff == 0) return m;\r\n\r\n if (more_specific == null) {\r\n\tmore_specific = m;\r\n\tcontinue;\r\n }\r\n\r\n try {\r\n\tif (((MethodType) m.type).isMoreSpecific ((MethodType) more_specific.type))\r\n\t more_specific = m;\r\n } catch (OverloadingAmbiguous ex) {\r\n\t/* this overloading is ambiguous */\r\n\tOzcError.overloadingAmbiguous (m);\r\n\treturn ClassMember.ANY;\r\n }\r\n }\r\n\r\n return more_specific;\r\n }", "io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod();", "Class<?> getMemberType(Injectable injectable);", "@NonNull\n\t<T> Optional<T> get(@NonNull Class<T> type);", "public String getMethod() {\n return method;\n }", "public String getMethod() {\n return method;\n }", "public String getMethod() {\n return method;\n }", "<T> Mono<T> invokeMethod(String methodName, TypeRef<T> type);" ]
[ "0.56324464", "0.55574733", "0.5462383", "0.5087072", "0.5087072", "0.50517535", "0.50150865", "0.49934614", "0.49680936", "0.49312443", "0.49212894", "0.49168262", "0.4903668", "0.4862167", "0.48560128", "0.4853844", "0.4837008", "0.48311964", "0.48158696", "0.4741709", "0.47226396", "0.46911475", "0.46352124", "0.46141556", "0.4613719", "0.46121186", "0.46109396", "0.46109396", "0.46021417", "0.46021417", "0.45925185", "0.45535946", "0.45364082", "0.453445", "0.45332152", "0.45241195", "0.4521585", "0.45097604", "0.4499623", "0.44995433", "0.44882104", "0.44873804", "0.44702724", "0.4467478", "0.44532877", "0.44444335", "0.44380572", "0.4435966", "0.4434907", "0.4427769", "0.44248617", "0.44216287", "0.43970767", "0.4393969", "0.4389375", "0.4388088", "0.43824923", "0.43821976", "0.4379628", "0.437142", "0.43587422", "0.4356842", "0.43553153", "0.43497607", "0.4347985", "0.4346997", "0.43412295", "0.4340837", "0.43309242", "0.43243492", "0.43179345", "0.43130854", "0.4290551", "0.42881694", "0.42774892", "0.42758533", "0.4266015", "0.4259138", "0.4255044", "0.42486557", "0.42418787", "0.42377615", "0.42330518", "0.42330518", "0.42330518", "0.42330518", "0.4229721", "0.4229721", "0.4225082", "0.42208245", "0.42181614", "0.42180228", "0.42092872", "0.42016405", "0.4199498", "0.4196294", "0.4194793", "0.4194793", "0.4194793", "0.4194163" ]
0.47719637
19
///int port = 50000;
public static void main(String[] args) { try { /////String host = InetAddress.getLocalHost().getHostName(); Socket client = new Socket("131.159.52.1", 50000); PrintWriter writer = new PrintWriter(client.getOutputStream()); BufferedReader reader = new BufferedReader(new InputStreamReader(client.getInputStream())); BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); System.out.println(reader.readLine()); //read welcome message String message; while (true) { ////System.out.print("Enter message to echo or Exit to end : "); message = stdin.readLine(); if (message == null || message.equalsIgnoreCase("exit")) break; writer.println(message); writer.flush(); System.out.println(reader.readLine()); } client.close(); }catch (Exception ex) { System.out.println("Exception: "+ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPort()\n {\n return port;\n }", "public int getPort(){\r\n return localPort;\r\n }", "public int getPort(){\r\n return localPort;\r\n }", "public int getPort() { return port; }", "public int getPort()\n {\n return port;\n }", "int getPort() {\n return port;\n }", "public int getPort(){\n return port;\n }", "public int getPort(){\n\treturn port;\n }", "void port(int port);", "void port(int port);", "int serverPort ();", "public void setPort(int port);", "public void setPort(int port);", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "public void testSetPort() {\n }", "public String getPort(){\n return port;\n }", "public int getPort()\n {\n return port;\n }", "public int getPort();", "public int getPort();", "public int getPort();", "public int getPort () {\n return port;\n }", "public void port (int port) {\n this.port = port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }", "int localPort();", "Builder port(int port);", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "private void run()throws IOException{\r\n Port = portNumb(); \r\n}", "public void setPort(Integer port) {\n this.port = port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public void setPort (int port) {\n this.port = port;\n }", "public void setPort(int port) {\r\n this.port = port;\r\n }", "int getIntegPort();", "public Integer getPort() {\n return port;\n }", "String getPort();", "public int getPort() {\n \t\treturn port;\n \t}", "public int getPort() {\n \t\treturn port;\n \t}", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "Builder setPort(String port);", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public void setPort(int port) {\n this.port = port;\n }", "public int getPort() {\n return this.port;\n }", "public int getPort() {\n return m_port;\n }", "public void setPort(Integer port) {\n this.port = port;\n }", "public static int getPort() {\n return port;\n }", "public void setPort(int value) {\n this.port = value;\n }", "Integer listeningPort();", "public void setPort(String port) {\r\n this.port = port;\r\n }", "public static int getPort(){\n return catalogue.port;\n }", "public int getPort(){\n\t\treturn this.port;\n\t}", "public void start(int port);", "public Integer getPort() {\n return port;\n }", "public Integer getPort() {\n return port;\n }", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "int getServicePort();", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "@Override\n public int getPortNumber() {\n return 0;\n }", "public void setPort(int port) {\r\n\t\tthis.port = port;\r\n\t}", "public void setPort(int port) {\r\n\t\tthis.port = port;\r\n\t}", "public int getPort() {\r\n\t\treturn port;\r\n\t}", "public int getPort() {\r\n\t\treturn port;\r\n\t}", "public void testGetPort() {\n }", "public static void setPort(int port){\n catalogue.port = port;\n }" ]
[ "0.7992634", "0.7868627", "0.7868627", "0.7845634", "0.7825016", "0.78210163", "0.77999806", "0.7741929", "0.773655", "0.773655", "0.7652645", "0.7615614", "0.7615614", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.752388", "0.7515114", "0.75012803", "0.74983555", "0.7483139", "0.7483139", "0.7483139", "0.7481643", "0.7448856", "0.7418158", "0.7418158", "0.7418158", "0.7418158", "0.7418158", "0.740464", "0.73486257", "0.7314616", "0.7295225", "0.7295225", "0.7295225", "0.728502", "0.7254752", "0.7245189", "0.7245189", "0.7245189", "0.7245189", "0.7245189", "0.7245189", "0.7245189", "0.7245189", "0.7244875", "0.7183558", "0.7168742", "0.71618605", "0.7159111", "0.71482414", "0.71482414", "0.71262485", "0.71262485", "0.71111894", "0.71111894", "0.71111894", "0.71111894", "0.7093511", "0.7084298", "0.7084298", "0.7084298", "0.7084298", "0.7084298", "0.7084298", "0.70840305", "0.70729643", "0.7071533", "0.70697314", "0.70591825", "0.70570374", "0.7042054", "0.7037134", "0.70140046", "0.7007356", "0.7006587", "0.7006587", "0.7003717", "0.7003717", "0.70025045", "0.6995016", "0.6995016", "0.6995016", "0.6995016", "0.6991268", "0.6974905", "0.6974905", "0.69394165", "0.69394165", "0.6932465", "0.6919648" ]
0.0
-1
Do something here if sensor accuracy changes
@Override public void onAccuracyChanged(Sensor sensor, int accuracy) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onAccuracyChanged(int sensor, int accuracy) {\n }", "public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "public void onAccuracyChanged(int sensor, int accuracy) {\n\n }", "@Override\n public void onCompassAccuracyChanged( int accuracy ) {\n if ( accuracy < SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM && MainActivity.this != null && !MainActivity.this.isFinishing() && System.currentTimeMillis() - MainActivity.this.lastCalibrationToastShownTimeMillis > 5 * 1000) {\n Toast.makeText( MainActivity.this, R.string.compass_accuracy_low, Toast.LENGTH_LONG ).show();\n MainActivity.this.lastCalibrationToastShownTimeMillis = System.currentTimeMillis();\n }\n }", "public void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n }", "public void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n }", "@Override\n public void onCompassAccuracyChanged( int accuracy ) {\n if ( accuracy < SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM && wikitude.this != null && !wikitude.this.isFinishing() && System.currentTimeMillis() - wikitude.this.lastCalibrationToastShownTimeMillis > 5 * 1000) {\n Toast.makeText(wikitude.this, R.string.compass_accuracy_low, Toast.LENGTH_LONG).show();\n wikitude.this.lastCalibrationToastShownTimeMillis = System.currentTimeMillis();\n }\n }", "@Override\n public void onAccuracyChanged(android.hardware.Sensor sensor, int accuracy) // Changes the accuracy of the system\n {\n }", "@Override public void onAccuracyChanged(Sensor sensor, int accuracy) \n\t{\n\t}", "@Override\r\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\r\n\t}", "public void onAccuracyChanged(Sensor sensor, int accuracy)\n \t{\n \t\t\n \t}", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "@Override\r\n\tpublic void onAccuracyChanged(Sensor arg0, int arg1) {\n\t\t\r\n\t}", "public void onAccuracyChanged(Sensor arg0, int arg1) {\n \n }", "@Override\n\t\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\t\n\t\t}", "@Override\r\n public final void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "@Override\n public final void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "@Override\n public final void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "@Override\n public final void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "@Override\r\n\t\t\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\r\n\t\t\t}", "@Override\n\t\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) \n\t\t{\n\t\t}", "@Override\r\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\r\n\t}", "@Override\r\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\r\n\t}", "@Override\n public void onAccuracyChanged(Sensor arg0, int arg1) {\n // Not used within this listener\n }", "@Override\r\n\tpublic void onAccuracyChanged(Sensor arg0, int arg1) \r\n\t{\n\t}", "public void onAccuracyChanged(Sensor arg0, int arg1) \r\n\t{\r\n\t}", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t}", "@Override\r\n\tpublic void onAccuracyChanged(Sensor arg0, int arg1) {\n\t}", "@Override\r\n\t\t\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\t}", "@Override\n public void onAccuracyChanged(final Sensor sensor, int accuracy) {\n //nothing to do here, won't happen\n //return;\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n }", "@Override\r\n\t\tpublic void onAccuracyChanged(Sensor arg0, int arg1) {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n\t}", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n }", "@Override\r\n\tpublic void onAccuracyChanged(Sensor arg0, int arg1) {\n\r\n\t}", "@Override\r\n\t\t\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\t\t\n\t}", "public void onAccuracyChanged(Sensor arg0, int arg1) {\n\t}", "@Override\n public void onCompassAccuracyChanged(int accuracy) {\n if (accuracy < SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM && getActivity() !=\n\t\t\t\t\t\tnull && !getActivity().isFinishing() && System.currentTimeMillis() -\n\t\t\t\t\t\tSpryteViewFragment.this.lastCalibrationToastShownTimeMillis > 5 * 1000) {\n Toast.makeText(getActivity(), R.string.compass_accuracy_low, Toast\n\t\t\t\t\t\t\t.LENGTH_LONG).show();\n }\n }", "@Override\n\tpublic void onAccuracyChanged(Sensor arg0, int arg1) {\n\t}", "@Override\n public void onAccuracyChanged(Sensor sensor, int i) {\n }", "public void onAccuracyChanged(Sensor arg0, int arg1) {\n }", "@Override\n \tpublic void onAccuracyChanged(Sensor arg0, int arg1) {\n \t\t\n \t}", "public void onAccuracyChanged(Sensor arg0, int arg1) {\n\t\t\n\t}", "public void onAccuracyChanged(Sensor arg0, int arg1) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onAccuracyChanged(Sensor arg0, int arg1) {\n\n\t\t\t}", "@Override\n \tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n \t}", "@Override\n\tpublic void onAccuracyChanged(Sensor arg0, int arg1) {\n\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor arg0, int arg1) {\n\t\t\n\t}", "@Override\n\tpublic void onAccuracyChanged(Sensor arg0, int arg1) {\n\t\t\n\t}", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int i) {\n }", "@Override\n public void onAccuracyChanged(Sensor sensor, int i) {\n }", "@Override\n public void onAccuracyChanged(Sensor arg0, int arg1) {\n\n }", "@Override\n public void onAccuracyChanged(Sensor arg0, int arg1 )\n {\n\n }", "@Override\n\tpublic void onAccuracyChanged(android.hardware.Sensor arg0, int arg1) {\n\t\t\n\t}", "@Override\n\t\tpublic void onAccuracyChanged(Sensor arg0, int arg1) {\n\n\t\t}", "public void onAccuracyChanged(Sensor sensor, int accuracy) {\n mAccuracy = accuracy;\n }", "@Override\n\tpublic void onAccuracyChanged(Sensor arg0, int arg1) {\n\t\t// TODO Auto-generated method stub\n\t}", "@Override\n public void onAccuracyChanged(Sensor sensor, int i) {\n }", "public void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n\t\t}" ]
[ "0.79187226", "0.78287077", "0.78287077", "0.78287077", "0.78287077", "0.7800047", "0.7799769", "0.7772933", "0.77539575", "0.7732319", "0.77194035", "0.7683841", "0.7683408", "0.7683408", "0.7680105", "0.76508963", "0.76508963", "0.76508963", "0.76436335", "0.7641197", "0.76387095", "0.7634955", "0.7633972", "0.7633972", "0.7633972", "0.7632988", "0.7618312", "0.76176363", "0.7615984", "0.7615984", "0.76134855", "0.7607113", "0.7606696", "0.7603117", "0.7603117", "0.76019317", "0.76019317", "0.76019317", "0.7597774", "0.75957537", "0.75957537", "0.759407", "0.7593824", "0.75926745", "0.75843596", "0.75843596", "0.7581691", "0.75746053", "0.7558109", "0.7552022", "0.7552022", "0.7552022", "0.7552022", "0.7552022", "0.7552022", "0.7552022", "0.7552022", "0.7552022", "0.7552022", "0.7552022", "0.7552022", "0.7552022", "0.7552022", "0.75467885", "0.75454426", "0.7545121", "0.7541178", "0.753542", "0.7527979", "0.75279546", "0.75279546", "0.7521292", "0.75168306", "0.7508776", "0.75022924", "0.75022924", "0.7498595", "0.7498595", "0.7498595", "0.7498595", "0.7498595", "0.7498595", "0.7498595", "0.74869114", "0.74869114", "0.74866045", "0.7479322", "0.7437417", "0.7433169", "0.7409149", "0.74019015", "0.73974365", "0.7316202" ]
0.7614757
37
RedisCommands com = redis.sync();
public static String generateId(String s){ String date = LocalDate.now().format(DateTimeFormatter.ofPattern("yyMMdd")); String key = s +"_" + date; //com.incr(key); redisTemplate.opsForValue().increment(key); Integer num = redisTemplate.opsForValue().get(key); return date + "-" + String.format("%08d",num); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object exec(Jedis jedis);", "public interface RedisService {\n\n boolean existsKey(String key);\n\n void removeKey(String key);\n\n void pushMsg(String key, String message);\n\n void setRedis(String key,String value,int second);\n\n String getRedisValue(String key);\n\n boolean acquireLock(String lockKey ,long expired);\n\n void releaseLock(String lockKey);\n}", "@Test\n public void test2() { User user = new User();\n// user.setId(\"asdasd\");\n// user.setUserType(1);\n// user.setUpdateDate(new Date());\n// redisHelper.set(\"testKey\",user);\n// System.out.println(redisHelper.get(\"testKey\", User.class));\n//\n redisHelper.del(\"testKey\");\n System.out.println(redisHelper.get(\"testKey\", User.class));\n\n }", "public interface RedisService {\n// void setKey(String key,String value);\n// void setKeyVsExpireTime(String key, String value, long time); //单位为妙\n// String getValue(String key);\n\n\n\n}", "@RequestMapping(\"/syncAddRedisValue\")\n public void syncAddRedisValue(){\n ExecutorService pool = Executors.newFixedThreadPool(100);\n for(int i = 0 ; i < 100; i++){\n pool.execute(new Runnable() {\n @Override\n public void run() {\n try {\n Thread.currentThread().sleep(4000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n redisByJedisUtil.incr(\"yang\");\n System.out.println(Thread.currentThread().getName() + \" 执行结束!\");\n }\n });\n }\n pool.shutdown();\n }", "@Override\n public Redis send(Request request, Handler<AsyncResult<Response>> handler) {\n final RequestImpl req = (RequestImpl) request;\n final Command cmd = req.command();\n\n if (cmd.isMovable()) {\n // in cluster mode we currently do not handle movable keys commands\n try {\n handler.handle(Future.failedFuture(\"RedisClusterClient does not handle movable keys commands, use non cluster client on the right node.\"));\n } catch (RuntimeException e) {\n onException.handle(e);\n }\n return this;\n }\n\n if (cmd.isKeyless()) {\n // it doesn't matter which node to use\n send(selectClient(-1, cmd.isReadOnly()), options, RETRIES, req, handler);\n return this;\n }\n\n final List<byte[]> args = req.getArgs();\n\n if (cmd.isMultiKey()) {\n int currentSlot = -1;\n\n // args exclude the command which is an arg in the commands response\n int start = cmd.getFirstKey() - 1;\n int end = cmd.getLastKey();\n if (end > 0) {\n end--;\n }\n if (end < 0) {\n end = args.size() + (end + 1);\n }\n int step = cmd.getInterval();\n\n for (int i = start; i < end; i += step) {\n int slot = ZModem.generate(args.get(i));\n if (currentSlot == -1) {\n currentSlot = slot;\n continue;\n }\n if (currentSlot != slot) {\n\n if (!REDUCERS.containsKey(cmd)) {\n // we can't continue as we don't know how to reduce this\n try {\n handler.handle(Future.failedFuture(\"No Reducer available for: \" + cmd));\n } catch (RuntimeException e) {\n onException.handle(e);\n }\n return this;\n }\n\n final Map<Integer, Request> requests = splitRequest(cmd, args, start, end, step);\n final List<Future> responses = new ArrayList<>(requests.size());\n\n for (Map.Entry<Integer, Request> kv : requests.entrySet()) {\n final Future<Response> f = Future.future();\n send(selectClient(kv.getKey(), cmd.isReadOnly()), options, RETRIES, kv.getValue(), f);\n responses.add(f);\n }\n\n CompositeFuture.all(responses).setHandler(composite -> {\n if (composite.failed()) {\n // means if one of the operations failed, then we can fail the handler\n try {\n handler.handle(Future.failedFuture(composite.cause()));\n } catch (RuntimeException e) {\n onException.handle(e);\n }\n } else {\n try {\n handler.handle(Future.succeededFuture(REDUCERS.get(cmd).apply(composite.result().list())));\n } catch (RuntimeException e) {\n onException.handle(e);\n }\n }\n });\n\n return this;\n }\n }\n\n // all keys are on the same slot!\n send(selectClient(currentSlot, cmd.isReadOnly()), options, RETRIES, req, handler);\n return this;\n }\n\n // last option the command is single key\n int start = cmd.getFirstKey() - 1;\n send(selectClient(ZModem.generate(args.get(start)), cmd.isReadOnly()), options, RETRIES, req, handler);\n return this;\n }", "public interface RedisManager {\n /**\n * 得到json实例通过key\n *\n * @param key\n * @return\n */\n String getString(String key);\n\n /**\n * 从redis中解析并返回对象,如果获取和解析过程中出现异常,直接抛出\n * add by houenxun 2015.07.17\n *\n * @param key\n * @param clazz\n * @param <T>\n * @return\n */\n <T> T getObject(String key, Class<T> clazz);\n\n /**\n * 从redis中解析并返回对象,如果获取和解析过程中出现异常,忽略并返回null\n * add by houenxun 2015.07.17\n *\n * @param key\n * @param clazz\n * @param <T>\n * @return\n */\n <T> T getObjectSilently(String key, Class<T> clazz);\n\n /**\n * 从redis中解析并返回对象列表,如果获取和解析过程中出现异常,忽略并返回null\n *\n * @param key\n * @param clazz\n * @param <T>\n * @return\n */\n <T> List<T> getObjectListSilently(String key, Class<T> clazz);\n\n\n /**\n * 得到json实例通过keys\n *\n * @param keys\n * @return\n */\n List<String> getStrings(List<String> keys);\n\n /**\n * 给某个key赋值 加给予有效期\n *\n * @param key\n * @param second\n * @return\n */\n String put(String key, String json, int second);\n\n /**\n * 存储json文本通过key\n *\n * @param key\n * @param json\n * @return\n */\n String putJson(String key, String json);\n\n\n /**\n * 批量删除实例keys\n *\n * @param key\n * @return\n */\n Long delete(String key);\n\n /**\n * 批量删除\n *\n * @param keys\n * @return\n */\n boolean delete(List<String> keys);\n\n /**\n * 验证是否存在\n *\n * @param key\n * @return\n */\n boolean exists(String key);\n\n /**\n * 移除一个分数从一个key中\n *\n * @param key\n * @param value\n */\n void removeWithScore(String key, String... value);\n\n /**\n * 统计set集合中元素根据索引 score从低到高\n *\n * @param key\n * @param startIndex\n * @param pageSize\n * @return\n */\n Collection<String> getZrangeByIndex(String key, int startIndex, int pageSize);\n\n /**\n * 统计set集合中元素根据score score从低到高\n *\n * @param key\n * @param min\n * @param max\n * @return\n */\n Collection<String> getZrangeByScore(String key, Double min, Double max);\n\n /**\n * 统计set集合中元素根据索引 score从高到低\n *\n * @param key\n * @param startIndex\n * @param pageSize\n * @return\n */\n Collection<String> getZrevrangeByIndex(String key, int startIndex, int pageSize);\n\n /**\n * 统计set集合全部元素 根据分数从低到高\n *\n * @param key\n * @return\n */\n Collection<String> getZRevrangeAll(String key);\n\n /**\n * 获取总数\n *\n * @param key\n * @return\n */\n Long getZcard(String key);\n\n /**\n * 增加Hash属性\n *\n * @param key\n * @param field\n * @param value\n * @return\n */\n Long hash(String key, String field, String value);\n\n /**\n * 获取key对应hash域的值\n *\n * @param key\n * @param field\n * @return\n */\n String getHash(String key, String field);\n\n /**\n * 是否存在域\n *\n * @param key\n * @param field\n * @return\n */\n Boolean hasHashByKey(String key, String field);\n\n\n /**\n * 删除key对应hash域的值\n *\n * @param key\n * @param field\n * @return\n */\n Long delHash(String key, String field);\n\n /**\n * 批量获取key对应hash域的值\n *\n * @param key\n * @param field\n * @return\n */\n List<String> getHash(String key, String... field);\n\n\n /**\n * 获取key中的所有的hash值的key\n *\n * @param key\n * @return\n */\n Set<String> getAllHashKey(String key);\n\n\n /**\n * 获取key中的所有的hash值\n *\n * @param key\n * @return\n */\n Map<String, String> getAllHash(String key);\n\n\n /**\n * 给某个key值给予有效期\n *\n * @param key\n * @param second\n * @return\n */\n Long expire(String key, int second);\n\n\n /**\n * 从左边加入key队列\n *\n * @param key\n * @param value\n * @return\n */\n Long addList(String key, String... value);\n\n\n /**\n * 获取key队列中指定序列的值\n *\n * @param key\n * @param index\n * @return\n */\n String getListByIndex(String key, int index);\n\n\n /**\n * 删除list中的值\n *\n * @param key\n * @param count\n * @param value @return\n */\n Long remList(String key, long count, String value);\n\n\n /**\n * 设置list中的值\n *\n * @param key\n * @param count\n * @param value @return\n */\n String lSet(String key, long count, String value);\n\n /**\n * 获取队列列表\n *\n * @param key\n * @param length\n * @return\n */\n Collection<String> getList(String key, int length);\n\n\n /**\n * 增加一个元素在set队列里面\n *\n * @param key\n * @param value\n * @return\n */\n Long addWithSet(String key, String... value);\n\n\n /**\n * 将元素插入集合中\n *\n * @param key\n * @param value\n * @return\n */\n Long addSet(String key, String value);\n\n\n /**\n * 从集合中删除元素\n *\n * @param key\n * @param value\n * @return\n */\n Long delSetByValue(String key, String... value);\n\n\n /**\n * 从集合获取元素\n *\n * @param key\n * @return\n */\n Set<String> getSet(String key);\n\n /**\n * key对应的值自增1\n *\n * @param key\n * @return\n */\n Long incr(String key);\n\n /**\n * key 对应的值增1,带过期时间\n * @param key\n * @param expire\n * @return\n */\n Long incr(String key, int expire);\n\n /**\n * key获取有效时间\n *\n * @param key\n * @return\n */\n Long ttlKey(String key);\n\n /**\n * 检查是否在set集合里面\n *\n * @param key\n * @param value\n * @return\n */\n Boolean sismemberSet(String key, String value);\n\n /**\n * 检查是否在set集合里面\n *\n * @param key\n * @return\n */\n String rankSet(String key);\n\n /**\n * 存放map\n *\n * @param key\n * @param map\n * @return\n */\n String putHash(String key, Map<String, String> map);\n\n Long getIndexByMember(String key, String member);\n\n /**\n * setnx\n * @param key\n * @param value\n * @param expire 超时时间,秒。若不超时则设置0\n * @return\n */\n boolean setNX(String key, String value, int expire);\n\n /**\n * 通过前缀获取所有的keys\n * @param prefix\n * @return\n */\n Collection<String> getKeys(String prefix);\n\n /**\n * 不catch异常信息的方式获取缓存值\n * @param key\n * @return\n */\n String getStringValue(String key);\n}", "@Test\n public void hmset(){\n User user1 = new User(\"1\",\"xz1\",\"11\",\"男\") ;\n User user2 = new User(\"2\",\"xz2\",\"22\",\"男\") ;\n String key1 = \"user:\"+user1.getId() ;\n String key2 = \"user:\"+user2.getId() ;\n Pipeline pipeline = jedis.pipelined() ;\n pipeline.hdel(key1,\"name\",\"age\",\"sex\") ;\n pipeline.hdel(key2,\"name\",\"age\",\"sex\") ;\n pipeline.hmset(key1,user1.toMap()) ;\n pipeline.hmset(key2,user2.toMap()) ;\n pipeline.hmget(key1,\"name\",\"age\",\"sex\");\n pipeline.hmget(key2,\"name\",\"age\",\"sex\");\n System.out.println(pipeline.syncAndReturnAll());\n }", "public interface RedisService {\n public void addRedis(RedisAnswerRecord redisAnswerRecord);\n public void updateRedis(RedisAnswerRecord redisAnswerRecord);\n public List<RedisAnswerRecord> queryRedis(List<Integer> userid);\n public RedisAnswerRecord queryRedisByKey(String userid,String key);\n\n\n}", "@Test\n public void testSet() throws InterruptedException {\n\n final String k = \"mLock\";\n final String v = \"mValue\";\n\n// long l = 10;\n// Boolean isGetLock = redisTemplate.opsForValue().setIfAbsent(k, v, l, TimeUnit.SECONDS);\n// if (isGetLock) {\n// System.out.println(Thread.currentThread().getName() + \"获得锁成功\");\n// }\n\n\n// redisTemplate.opsForValue().set(\"k6\", \"v6\");\n// Duration duration = Duration.ofSeconds(10);\n// redisTemplate.expire(k, duration);\n// TimeUnit.SECONDS.sleep(10);\n// for (int i = 0; i < 100; i++) {\n// new Thread(() -> {\n// Boolean isGetLock = redisTemplate.opsForValue().setIfAbsent(k, v, 100, TimeUnit.SECONDS);\n//\n// if (isGetLock) {\n// System.out.println(Thread.currentThread().getName() + \"获得锁成功\");\n// } else {\n// System.out.println(Thread.currentThread().getName() + \"获得锁失败\");\n// }\n// }, \"thread-\" + i).start();\n// }\n\n for (int i = 0; i < 100; i++) {\n String key = \"kk\" +i;\n String value = \"vv\" + i;\n\n redisTemplate.opsForValue().set(key, value);\n// new Thread(new Task(key, value, redisTemplate)).start();\n// new Thread(() -> {\n// System.out.println(\"set \" + key + \":\" +value);\n// redisTemplate.opsForValue().set(key, value);\n//\n// if(key.equals(\"kk99\")) {\n// System.out.println(\"haha\");\n// }\n// }).start();\n }\n }", "private void registrarBaseDatosRedis()\n {\n \tConexionBaseDatosRedis registrar = new ConexionBaseDatosRedis();\n \tregistrar.insertarDatos(categoriaPregunta, pregunta, respuesta.getRespuesta());\n\n }", "public interface RedisService {\n\n <K,V> void setObject(K key, V value, Integer timeout);\n\n <K,V> V getObject(K key);\n\n <K> void remove(K key);\n\n <K> void removeAll(K ... keys);\n}", "@Override\n protected String getRedisKey() {\n return REDIS_KEY;\n }", "public interface IRedisService {\n\n /**\n * 保存到缓存\n *\n * @param key\n * @param timeOut 超时时间 秒\n * @param value\n */\n void set(String key, Integer timeOut, String value);\n\n /**\n * 保存到缓存\n *\n * @param key\n * @param value\n */\n void set(String key, String value);\n\n /**\n * 通过key获取\n *\n * @param key\n * @return\n */\n String get(String key);\n\n /**\n * 通过key移除\n *\n * @param key\n */\n void remove(String key);\n\n}", "public RedisConnector() {\n super();\n\n ensureRedisClient();\n }", "void doTransaction (Redis redis) {\n\t \tswitch (redis.EXEC()) {\n\t \tcase OK:\n\t \tbreak;\n\t \tcase FAIL:\n \t\t\tdiscardTransaction(redis);\n\t\t\tbreak;\n\t \t}\n\t}", "public static void main(String[] args) {\n\t\tRedisPool.getJedis().set(\"name\",\"chengwenchong\");\r\n System.out.println(RedisPool.getJedis().get(\"name\"));\r\n\t}", "@org.junit.Test\r\n public void test() {\n Jedis jedis = new Jedis(\"16.186.75.216\");\r\n System.out.println(\"connected successfully\");\r\n //set redis string value\r\n jedis.set(\"runoobkey\", \"www.runoob.com\");\r\n // get the stored value based on the key\r\n System.out.println(\"redis store strings: \"+ jedis.get(\"runoobkey\"));\r\n }", "public interface RedisService\n{\n void storeUserInfoVo() throws Exception;\n\n void updateRedis(String openId) throws Exception;\n\n}", "@Override\n\tpublic BaseResponse getRedis(String key) {\n\t\treturn null;\n\t}", "private RedisClient() {\n\n }", "@Test\n public void get() {\n Object str = redisUtil.get(\"key\");\n System.out.println(str);\n }", "public interface RedisCacheService {\n void put(Object key , Object value);\n Object get(Object key);\n}", "public interface JedisLockSupport {\r\n\t\r\n\t/**\r\n\t * Acquire the lock on passed key and set its owner\r\n\t * It will try once and will return immediately\r\n\t * @param key the key to set lock against\r\n\t * @param owner lock owner\r\n\t * @return true if lock is acquired\r\n\t */\r\n\tpublic boolean acquire(String key, String owner);\r\n\t\r\n\t\r\n\t/**\r\n\t * Acquire the lock on passed key\r\n\t * It will try to get lock for timeout passed\r\n\t * @param key\r\n\t * @param owner\r\n\t * @param timeout\r\n\t * @param timeUnit\r\n\t * @return true if lock is acquired\r\n\t */\r\n\tpublic boolean tryAcquire(String key, String owner, long timeout, TimeUnit timeUnit);\r\n\t\r\n\t/**\r\n\t * Releases the lock\r\n\t * @param key\r\n\t * @param owner\r\n\t */\r\n\tpublic void release(String key, String owner);\r\n\t\r\n\t/**\r\n\t * Interning the string key. Used internally.\r\n\t * String str1 = new String(\"abc\");\r\n\t * String str2 = new String(\"abc\");\r\n\t * str1 and str2 are two different objects \r\n\t * and we synchronized based on the passed key\r\n\t * \r\n\t * @param key to normalize\r\n\t * @return the normalized key\r\n\t */\r\n\tdefault String normalizeKey(String key) {\r\n\t\treturn key.intern();\r\n\t}\r\n}", "@Test\n public void hset(){\n User user = new User(\"1\",\"xz\",\"11\",\"男\") ;\n String key = \"user:\"+user.getId() ;\n jedis.hset(key,\"name\",user.getName()) ;\n jedis.hset(key,\"age\",user.getAge()) ;\n jedis.hset(key,\"sex\",user.getSex()) ;\n\n System.out.println(jedis.hget(key,\"name\"));\n System.out.println(jedis.hget(key,\"name\"));\n System.out.println(jedis.hget(key,\"name\"));\n }", "private static void test(Jedis jedis) {\n\n JedisProxyCglib jp = new JedisProxyCglib();\n Jedis je = jp.getInstance(jedis);\n je.set(\"uuu11\", \"x\");\n je.set(\"uuu12\", \"x2\");\n je.set(\"uuu13\", \"x2\");\n }", "@Override\n public void sync(){\n }", "public static void main(String[] args) throws Exception {\n String server = \"irc.chat.twitch.tv\";\r\n String nick = \"hackpolyplaystwitch\";\r\n String login = \"hackpolyplaystwitch\";\r\n // The channel which the bot will join.\r\n String channel = \"#hackpolyplaystwitch\";\r\n\r\n Socket socket = new Socket(server, 6667);\r\n BufferedWriter writer = new BufferedWriter(\r\n new OutputStreamWriter(socket.getOutputStream( )));\r\n BufferedReader reader = new BufferedReader(\r\n new InputStreamReader(socket.getInputStream( )));\r\n // Join the channel.\r\n\r\n // Create pubsub object\r\n JedisPubSub pubsub = new JedisPubSub() {\r\n @Override\r\n // Fired off when receiving a message from redis\r\n public void onMessage(String redisChannel, String message) {\r\n System.out.println(\"Received Message from Redis Channel: \" + redisChannel + \" - \" + message);\r\n String[] botMsg = message.split(\":\");\r\n if (botMsg[0].equals(\"say\")){\r\n String msg = \"PRIVMSG \" + channel + \" :\" + botMsg[1] + \"\\r\\n\";\r\n System.out.println(msg);\r\n try {\r\n writer.write(msg);\r\n writer.flush();\r\n } catch(IOException ioe){\r\n System.out.println(\"We got exception\");\r\n //Handle exception here, most of the time you will just log it.\r\n }\r\n } else if (botMsg[0].equals(\"whisper\")){\r\n String msg = \"PRIVMSG \" + channel + \" :/w \" + botMsg[1] + \" \" + botMsg[2] + \"\\r\\n\";\r\n System.out.println(msg);\r\n try {\r\n writer.write(msg);\r\n writer.flush();\r\n } catch(IOException ioe){\r\n System.out.println(\"We got exception\");\r\n //Handle exception here, most of the time you will just log it.\r\n }\r\n }\r\n }\r\n };\r\n // Run new thread to connect to redis server\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n // log(\"Connecting\");\r\n Jedis jedis = new Jedis(\"redis://:[email protected]:6379/0\");\r\n // log(\"subscribing\");\r\n jedis.subscribe(pubsub, \"game\");\r\n // log(\"subscribe returned, closing down\");\r\n jedis.quit();\r\n } catch (Exception e) {\r\n System.out.println(\"Exception thread\");\r\n // log(\">>> OH NOES Sub - \" + e.getMessage());\r\n // e.printStackTrace();\r\n }\r\n }\r\n }, \"game\").start();\r\n // Connect directly to the IRC server.\r\n System.out.println(\"Reading from server\");\r\n // Log on to the server.\r\n writer.write(\"PASS oauth:os78xr7aqmuzyfxiskm9wql2armqsh\\r\\n\");\r\n writer.write(\"NICK \" + nick + \"\\r\\n\");\r\n writer.write(\"CAP REQ :twitch.tv/commands\\r\\n\");\r\n // writer.write(\"USER \" + login + \" 8 * : Java IRC Hacks Bot\\r\\n\");\r\n writer.flush( );\r\n writer.write(\"JOIN \" + channel + \"\\r\\n\");\r\n writer.flush( );\r\n // Read lines from the server until it tells us we have connected.\r\n String line = line = reader.readLine();\r\n System.out.println(\"Waiting for response now\");\r\n while ((line = reader.readLine( )) != null) {\r\n System.out.println(line);\r\n break;\r\n // if (line.indexOf(\"004\") >= 0) {\r\n // // We are now logged in.\r\n // break;\r\n // }\r\n // else if (line.indexOf(\"433\") >= 0) {\r\n // System.out.println(\"Nickname is already in use.\");\r\n // return;\r\n // }\r\n }\r\n System.out.println(\"We are done\");\r\n // Join the channel.\r\n //writer.write(\"JOIN \" + channel + \"\\r\\n\");\r\n //writer.flush( );\r\n // Keep reading lines from the server.\r\n while ((line = reader.readLine( )) != null) {\r\n if (line.toLowerCase( ).startsWith(\"ping \")) {\r\n // We must respond to PINGs to avoid being disconnected.\r\n writer.write(\"PONG tmi.twitch.tv\\r\\n\");\r\n // writer.write(\"PRIVMSG \" + channel + \" :I got pinged!\\r\\n\");\r\n writer.flush();\r\n }\r\n else {\r\n // Print the raw line received by the bot.\r\n //TODO DM\r\n //writer.write(\"PRIVMSG #2ggaming :/w vikas3321 aaaaaaaaaaaaaaa\\r\\n\");\r\n //writer.flush();\r\n System.out.println(line);\r\n String[] msg = line.split(\":\",3);\r\n String[] user = msg[1].split(\"!\", 2);\r\n try{\r\n System.out.println(\"USER: \" + user[0]);\r\n System.out.println(\"MSG: \" + msg[2]);\r\n if (msg[2].charAt(0) == '!'){\r\n Commands.checkCommands(msg[2], user[0]);\r\n }\r\n } catch (ArrayIndexOutOfBoundsException e){\r\n }\r\n }\r\n }\r\n }", "public RedisClient() {\n init();\n }", "@Override\n public void callSync() {\n\n }", "public interface PreCmpChargeReqRedisService {\n\n\n /**\n * 保存公司入款信息\n * @param preCmpChargeReq\n * @return\n */\n boolean save(PreCmpChargeReq preCmpChargeReq);\n\n /**\n * 批量获取公司入款信息\n * @param date\n * @return\n */\n List<PreCmpChargeReq> batchPop(Date date);\n}", "Boolean autoSync();", "private static void clearRedis() {\n StringRedisTemplate redisTemplate = getRedisTemplate();\n Set<String> keys = redisTemplate.keys(\"*\");\n for (String key : keys) {\n redisTemplate.delete(key);\n Assert.assertFalse(redisTemplate.hasKey(key));\n }\n }", "public interface IRedisService {\n\n /**\n * 写入缓存\n *\n * @param key\n * @param value\n * @return\n */\n boolean set(final String key, Object value);\n\n /**\n * 写入缓存\n *\n * @param key\n * @param value\n * @param expireTime(TimeUnit.SECONDS)\n * @return\n */\n boolean setnx(final String key, Object value, Long expireTime);\n\n /**\n * 写入缓存设置时效时间\n *\n * @param key\n * @param value\n * @return\n */\n boolean set(final String key, Object value, Long expireTime, TimeUnit timeUnit);\n\n /**\n * 批量删除对应的value\n *\n * @param keys\n */\n void remove(final String... keys);\n\n /**\n * 批量删除key\n *\n * @param pattern\n */\n void removePattern(final String pattern);\n\n /**\n * 删除对应的value\n *\n * @param key\n */\n void remove(final String key);\n\n /**\n * 判断缓存中是否有对应的value\n *\n * @param key\n * @return\n */\n boolean exists(final String key);\n\n /**\n * 判断缓存中是否有对应的value,如果存在则会删除并返回true\n *\n * @param key\n * @return\n */\n boolean existsRemove(final String key);\n\n\n /**\n * 查看key的过期时间\n */\n Long expire(String key);\n\n /**\n * 读取缓存\n *\n * @param key\n * @return\n */\n Object get(final String key);\n\n /**\n * 哈希 添加\n *\n * @param key\n * @param hashKey\n * @param value\n */\n void hmSet(String key, Object hashKey, Object value);\n\n /**\n * 哈希获取数据\n *\n * @param key\n * @param hashKey\n * @return\n */\n Object hmGet(String key, Object hashKey);\n\n /**\n * 哈希 添加\n *\n * @param key\n * @param hashKey\n * @param objClass\n */\n <T> T hmGet4Obj(String key, Object hashKey, Class<T> objClass);\n\n /**\n * 删除指定哈希数据\n *\n * @param key\n * @param hashKey\n * @return\n */\n void hmDel(String key, Object hashKey);\n\n /**\n * 列表添加\n *\n * @param k\n * @param v\n */\n void lPush(String k, Object v);\n\n /**\n * 列表获取\n *\n * @param k\n * @param l\n * @param l1\n * @return\n */\n List<Object> lRange(String k, long l, long l1);\n\n /**\n * 集合添加\n *\n * @param key\n * @param value\n */\n void add(String key, Object value);\n\n /**\n * 集合获取\n *\n * @param key\n * @return\n */\n Set<Object> members4Set(String key);\n\n /**\n * 有序集合添加\n *\n * @param key\n * @param value\n * @param scoure\n */\n void zAdd(String key, Object value, double scoure);\n\n /**\n * 有序集合获取\n *\n * @param key\n * @param scoure\n * @param scoure1\n * @return\n */\n Set<Object> rangeByScore(String key, double scoure, double scoure1);\n\n /**\n * 有序集合获取\n *\n * @param key\n * @param from\n * @param to\n * @return\n */\n Set<Object> rangeByIndex(String key, int from, int to);\n\n /**\n * 倒序获得有序集合获取\n *\n * @param key\n * @param from\n * @param to\n * @return\n */\n Set<Object> rangeByIndexReverse(String key, int from, int to);\n\n /**\n * 判断用户是否已登录\n *\n * @param request\n * @return\n */\n boolean isLogin(HttpServletRequest request);\n\n\n /**\n * 获得缓存的Map\n *\n * @param key\n * @return\n */\n Map<String, Object> getCacheIntegerMap(String key);\n\n /**\n * 发布消息\n */\n void sendMessage(String channel, Object message);\n\n\n\n Set<Object> keys(String key);\n\n void hmDelAll(String key, Set<String> hashKey);\n\n /**\n * redis incrId\n * @return\n */\n Long getIncrId();\n\n /**\n * 活动排行榜\n * @param customerId\n * @param customerId\n * @param activityScoure\n */\n void setActivityZadd(String activityCode,Integer customerId,int activityScoure);\n\n /**\n * 查询用户的活动排名\n * @param activityCode\n * @param customerId\n * @return\n */\n Long getActivityReverseRank(String activityCode,Integer customerId);\n\n /**\n * 获取用户的score\n * @param activityCode\n * @param customerId\n * @return\n */\n Double getActivityReverseScore(String activityCode,Integer customerId);\n\n /**\n * 获取活动 排名\n * @param activityCode\n * @param start\n * @param end\n * @return\n */\n public List<ImmutablePair<String, Double>> getActivityRevRangeWithScores(String activityCode, int start, int end);\n\n /**\n * 设置用户tonken\n * @param userId\n * @return\n */\n String doUserToken(Integer userId);\n\n /**\n * 设置用户tonken\n * @param userId\n * @param token\n * @return\n */\n boolean checkUserToken(Integer userId , String token);\n}", "T sync() throws IOException, ChallongeException;", "@Override\n\t\t\tpublic Long invok(Jedis jedis) {\n\t\t\t\treturn jedis.srem(key, member);\n\t\t\t}", "public SyncMessage recoit ( Door d ) {\n\nSyncMessage sm = (SyncMessage)receive( d );\nreturn sm;\n}", "void sync()throws IOException;", "ManagementLockObject refresh();", "@Bean\n RedisTemplate<Object, Object> redisTemplate() {\n RedisTemplate<Object, Object> redisTemplate = new RedisTemplate<>();\n redisTemplate.setConnectionFactory(jedisConnectionFactory());\n return redisTemplate;\n }", "public void testSet(){\n stringRedisTemplate.opsForSet().add(\"set-key\",\"a\",\"b\",\"c\");\n //srem set-key c d\n stringRedisTemplate.opsForSet().remove(\"set-key\",\"c\",\"d\");\n stringRedisTemplate.opsForSet().remove(\"set-key\",\"c\",\"d\");\n //scard set-key\n stringRedisTemplate.opsForSet().size(\"set-key\");\n //smembers set-key\n stringRedisTemplate.opsForSet().members(\"set-key\");\n //smove set-key set-key2 a\n stringRedisTemplate.opsForSet().move(\"set-key\",\"a\",\"set-key2\");\n stringRedisTemplate.opsForSet().move(\"set-key\",\"c\",\"set-key2\");\n\n //sadd skey1 a b c d\n stringRedisTemplate.opsForSet().add(\"skey1\",\"a\",\"b\",\"c\",\"d\");\n //sadd skey2 c d e f\n stringRedisTemplate.opsForSet().add(\"skey2\",\"c\",\"d\",\"e\",\"f\");\n //sdiff skey1 skey2 //存在与skey1中不存在与skey2中, a b\n stringRedisTemplate.opsForSet().difference(\"skey1\",\"skey2\");\n //sinter skey1 skey2 // c d\n stringRedisTemplate.opsForSet().intersect(\"skey1\",\"skey2\");\n //sunion skey1 skey2 // a b c d e f\n stringRedisTemplate.opsForSet().union(\"skey1\",\"skey2\");\n }", "public interface CommandService {\n\n /**\n * Executes given command remotely and synchronously and returns the similar object as executed, but changed on the remote\n * side.\n */\n <T extends Command> T execute(T command);\n}", "boolean userInRedisSession(String token);", "public void sync()\n {\n setAutoSync(false);\n // simply send sync command\n super.executionSync(Option.SYNC);\n }", "@Test\n public void testHyperLogLogUnion(){\n String redisKey2= \"test:hll:02\";\n for (int i = 1; i <= 10000; i++) {\n redisTemplate.opsForHyperLogLog().add(redisKey2,i);\n }\n String redisKey3= \"test:hll:03\";\n for (int i = 5001; i <= 15000; i++) {\n redisTemplate.opsForHyperLogLog().add(redisKey3,i);\n }\n String redisKey4= \"test:hll:04\";\n for (int i = 10001; i <= 20000; i++) {\n redisTemplate.opsForHyperLogLog().add(redisKey4,i);\n }\n String unionKey= \"test:hll:union\";\n redisTemplate.opsForHyperLogLog().union(unionKey,redisKey2,redisKey3,redisKey4);\n Long size = redisTemplate.opsForHyperLogLog().size(unionKey);\n System.out.println(size);\n }", "void sync() throws IOException;", "private void ensureRedisClient() {\n if (_redisClient != null) {\n return;\n }\n\n synchronized (RedisConnector.class) {\n if (_redisClient != null) {\n return;\n }\n\n ContainerLogger.getInstance().info(\"Creating shared lettuce.io RedisClient\");\n _redisClient = RedisClient.create();\n }\n }", "Commands getCommandes();", "@Repository\npublic interface ICacheRepository<T> {\n\n /**\n * Añadir objeto dentro de Redis.\n *\n * @param collection Nombre de la coleccion a guardar.\n * @param hkey Llave para identificar el objeto dentro de la coleccion.\n * @param object Objeto a guardar.\n * @return Boolean que informa si se guardo o no.\n */\n boolean add(String collection, String hkey, T object);\n\n /**\n * Añadir objeto dentro de Redis con un tiempo determinado de expiracion.\n *\n * @param collection Nombre de la coleccion a guardar.\n * @param hkey Llave para identificar el objeto dentro de la coleccion.\n * @param object Objeto a guardar.\n * @param timeout Tiempo que el objeto va a durar en memoria.\n * @param unit Unidad de tiempo.\n * @return Boolean que informa si se guardo o no.\n */\n boolean add(String collection, String hkey, T object, int timeout, TimeUnit unit);\n\n /**\n * Añadir objeto dentro de Redis con una fecha y momento determinado de expiracion.\n *\n * @param collection Nombre de la coleccion a guardar.\n * @param hkey Llave para identificar el objeto dentro de la coleccion.\n * @param object Objeto a guardar.\n * @param date Fecha y momento de expiracion.\n * @return Boolean que informa si se guardo o no.\n */\n boolean add(String collection, String hkey, T object, Date date);\n\n /**\n * Añadir objeto dentro de Redis de manera reactiva.\n *\n * @param collection Nombre de la coleccion a guardar.\n * @param hkey Llave para identificar el objeto dentro de la coleccion.\n * @param object Objeto a guardar.\n * @return Un mono de tipo boolean que informa si se guardo o no.\n */\n Mono<Boolean> addReactive(String collection, String hkey, T object)\n throws JsonProcessingException, InterruptedException;\n\n /**\n * Añadir objeto dentro de Redis de manera reactiva con un tiempo determinado de expiracion.\n *\n * @param collection Nombre de la coleccion a guardar.\n * @param hkey Llave para identificar el objeto dentro de la coleccion.\n * @param object Objeto a guardar.\n * @param timeout Tiempo que el objeto va a durar en memoria EN SEGUNDOS.\n * @return Un mono de tipo boolean que informa si se guardo o no.\n */\n Mono<Boolean> addReactive(String collection, String hkey, T object, int timeout)\n throws JsonProcessingException, InterruptedException;\n\n /**\n * Buscar un objeto dentro de redis de forma reactiva.\n *\n * @param collection Nombre de la coleccion a buscar.\n * @param hkey Llave para identificar el objeto dentro de la coleccion.\n * @param tclass Modelo de datos de objeto a buscar.?\n * @return Mono generico del objeto buscado.\n */\n Mono<T> findReactive(String collection, String hkey, Class<T> tclass);\n\n /**\n * Eliminar una coleccion.\n *\n * @param collection Nombre de la coleccion a eliminar.\n * @return Boolean que informa si se elimino o no.\n */\n boolean delete(String collection);\n\n /**\n * Elimina un objeto dentro de la coleccion con esa llave.\n *\n * @param collection Nombre de la coleccion a eliminar.\n * @param hkey Nombre de la llave que identifica el objeto.\n * @return Boolean que informa si se elimino o no.\n */\n long delete(String collection, String hkey);\n\n /**\n * Eliminar una coleccion en forma reactiva.\n *\n * @param collection Nombre de la coleccion a eliminar.\n * @return Mono de tipo long con la cantidad de colecciones eliminadas.\n */\n Mono<Long> deleteReactive(String collection);\n\n /**\n * Buscar un objeto determinado dentro de redis por medio de una llave y coleccion.\n *\n * @param collection Nombre de la coleccion a buscar.\n * @param hkey Llave para identificar el objeto dentro de la coleccion.\n * @param tclass Modelo de datos de objeto a buscar.\n * @return El objeto buscado.\n */\n T find(String collection, String hkey, Class<T> tclass);\n\n /**\n * Buscar objeto por medio de una coleccion.\n *\n * @param collection Nombre de la coleccion a buscar.\n * @param tclass Modelo de datos de objeto a buscar.\n * @return Los objeto buscado.\n */\n T find(String collection, Class<T> tclass);\n\n /**\n * Testear colexion a redis.\n *\n * @return Un bolean que informa si hay o no conexion con redis.\n */\n Boolean isAvailable();\n\n /**\n * Informar si existe o no una coleccion.\n *\n * @param collection Nombre de la coleccion a buscar.\n * @return Un bolean que informa si existe o no esa coleccion.\n */\n boolean any(String collection);\n\n /**\n * Informar si existe una llave en una determinada coleccion.\n *\n * @param collection Nombre de la coleccion.\n * @param hkey LLave a buscar dentro de la coleccion.\n * @return Un bolean que informa si existe o no esa llave.\n */\n boolean hasKey(String collection, String hkey);\n\n /**\n * Obtener el primer objeto dentro de la coleccion.\n *\n * @param collection Nombre de la coleccion.\n * @return String con el primer hkey de la coleccion.\n */\n String first(String collection);\n}", "@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }", "DBObject executeSingle();", "public SimplePostHash() {\n this.jedis = new Jedis(\"localhost\");\n this.jedis.flushDB();\n }", "public void rpushForObject(String key, Object value) {\n Jedis jedis = null;\n if (value == null) {\n return;\n }\n try {\n jedis = jedisPool.getResource();\n // jedis.rpush(key.getBytes(), HessianSerializer.serialize(value));\n jedis.rpush(key.getBytes(), toJsonByteArray(value));\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "ManagementLockObject apply();", "public long srem(String key,String value){\n Jedis jedis = null;\n try{\n jedis = pool.getResource();\n return jedis.srem(key,value);\n } catch (Exception e){\n logger.error(\"发生异常:\"+e.getMessage());\n } finally {\n jedis.close();\n }\n return 0;\n }", "@Test(groups = { \"Integration\" })\n public void testRedisConnection() throws Exception {\n redis = app.createAndManageChild(EntitySpec.create(RedisStore.class));\n app.start(ImmutableList.of(loc));\n\n EntityAsserts.assertAttributeEqualsEventually(redis, Startable.SERVICE_UP, true);\n\n JedisSupport support = new JedisSupport(redis);\n support.redisTest();\n }", "byte[] makeBindaryData(RedisSession session) throws IOException;", "public static void main(String[] args) {\n\n Config config = new Config();\n config.useClusterServers().addNodeAddress(\"\", \"\");\n\n RedissonClient redissonClient = Redisson.create(config);\n redissonClient.getLock(\"\");\n redissonClient.getBucket(\"key\").set(\"value\");\n redissonClient.getSet(\"\").addAsync(\"\");\n redissonClient.getList(\"\").set(1, \"\");\n }", "public void performQuack(){\n qb.quack();\n }", "@Test\n public void testHyperLogLog(){\n String redisKey= \"test:hll:01\";\n for (int i = 0; i <= 100000; i++) {\n redisTemplate.opsForHyperLogLog().add(redisKey,i);\n }\n\n for (int i = 0; i <= 100000; i++) {\n int r = (int) (Math.random() * 100000+1);\n redisTemplate.opsForHyperLogLog().add(redisKey,r);\n }\n\n Long size = redisTemplate.opsForHyperLogLog().size(redisKey);\n System.out.println(size);\n }", "@Override\n public void run() {\n // logger.warn(\"正在执行mqtttask \"+\":\"+message);\n // jedis = JedisUtil.getInstance().getJedis();\n\n AnaUtil.handlemqttMessage(message);\n // logger.warn(\"执行mqtttask结束 \"+\":\"+message);\n\n // JedisUtil.getInstance().returnJedis(jedis);\n\n }", "@VertxGen\npublic interface Redis extends ReadStream<Response> {\n\n /**\n * Connect to redis, the {@code onConnect} will get the {@link Redis} instance.\n */\n static void createClient(Vertx vertx, SocketAddress address, Handler<AsyncResult<Redis>> onCreate) {\n createClient(vertx, new RedisOptions().setEndpoint(address), onCreate);\n }\n\n /**\n * Connect to redis, the {@code onConnect} will get the {@link Redis} instance.\n */\n static void createClient(Vertx vertx, RedisOptions options, Handler<AsyncResult<Redis>> onCreate) {\n RedisClient.create(vertx, options.getEndpoint(), options, onCreate);\n }\n\n /**\n * Connect to redis, the {@code onConnect} will get the {@link Redis} instance.\n */\n static void createSentinelClient(Vertx vertx, SocketAddress address, Handler<AsyncResult<Redis>> onCreate) {\n createSentinelClient(vertx, new RedisOptions().setEndpoint(address).setRole(RedisRole.MASTER).setMasterName(\"mymaster\"), onCreate);\n }\n\n /**\n * Connect to redis, the {@code onConnect} will get the {@link Redis} instance.\n */\n static void createSentinelClient(Vertx vertx, RedisOptions options, Handler<AsyncResult<Redis>> onCreate) {\n RedisSentinelClient.create(vertx, options, onCreate);\n }\n\n /**\n * Connect to redis, the {@code onConnect} will get the {@link Redis} instance.\n */\n static void createClusterClient(Vertx vertx, SocketAddress address, Handler<AsyncResult<Redis>> onCreate) {\n createClusterClient(vertx, new RedisOptions().setEndpoint(address).setUseSlave(RedisSlaves.NEVER), onCreate);\n }\n\n /**\n * Connect to redis, the {@code onConnect} will get the {@link Redis} instance.\n */\n static void createClusterClient(Vertx vertx, RedisOptions options, Handler<AsyncResult<Redis>> onCreate) {\n RedisClusterClient.create(vertx, options, onCreate);\n }\n\n /**\n * Set an exception handler on the read stream.\n *\n * @param handler the exception handler\n * @return a reference to this, so the API can be used fluently\n */\n Redis exceptionHandler(Handler<Throwable> handler);\n\n /**\n * Set a data handler. As data is read, the handler will be called with the data.\n *\n * @return a reference to this, so the API can be used fluently\n */\n @Fluent\n Redis handler(Handler<Response> handler);\n\n /**\n * Pause the {@code ReadStream}, it sets the buffer in {@code fetch} mode and clears the actual demand.\n * <p>\n * While it's paused, no data will be sent to the data {@code handler}.\n *\n * @return a reference to this, so the API can be used fluently\n */\n @Fluent\n Redis pause();\n\n /**\n * Resume reading, and sets the buffer in {@code flowing} mode.\n * <p/>\n * If the {@code ReadStream} has been paused, reading will recommence on it.\n *\n * @return a reference to this, so the API can be used fluently\n */\n @Fluent\n Redis resume();\n\n /**\n * Fetch the specified {@code amount} of elements. If the {@code ReadStream} has been paused, reading will\n * recommence with the specified {@code amount} of items, otherwise the specified {@code amount} will\n * be added to the current stream demand.\n *\n * @return a reference to this, so the API can be used fluently\n */\n @Fluent\n Redis fetch(long amount);\n\n /**\n * Set an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called.\n *\n * @return a reference to this, so the API can be used fluently\n */\n @Fluent\n Redis endHandler(@Nullable Handler<Void> endHandler);\n\n\n @Fluent\n Redis send(Request command, Handler<AsyncResult<@Nullable Response>> onSend);\n\n @Fluent\n Redis batch(List<Request> commands, Handler<AsyncResult<List<@Nullable Response>>> handler);\n\n /**\n * Returns the address associated with this client.\n * @return the address.\n */\n SocketAddress socketAddress();\n\n void close();\n}", "ManagementLockObject.Update update();", "private void getClient(SocketAddress address, RedisOptions options, Handler<AsyncResult<Redis>> onClient) {\n\n Redis cli = connections.get(address);\n\n // already have a connection to this client, return that\n if (cli != null) {\n onClient.handle(Future.succeededFuture(cli));\n return;\n }\n\n RedisClient.create(vertx, address, options, create -> {\n if (create.failed()) {\n onClient.handle(create);\n return;\n }\n\n final Redis conn = create.result();\n\n conn.exceptionHandler(t -> {\n // broken connection so force a new client to be created\n connections.remove(address);\n // propagate the exception\n if (onException != null) {\n onException.handle(t);\n }\n\n // now since the clients are unbalanced, we need to reload the slots\n getSlots(options, ar -> {\n if (ar.failed()) {\n // getting slots failed, so raise the exception\n if (onException != null) {\n onException.handle(ar.cause());\n }\n }\n });\n });\n\n conn.endHandler(v -> {\n // closed connections should be removed\n connections.remove(address);\n // how many connections are still open?\n // when there's more than 0 then we can still operate\n if (connections.size() == 0) {\n // all connections are closed so we must assume this\n // cluster is ended (or we can't recover)\n if (onEnd != null) {\n onEnd.handle(null);\n }\n }\n });\n\n conn.handler(r -> {\n if (onMessage != null) {\n onMessage.handle(r);\n }\n });\n\n connections.put(address, conn);\n onClient.handle(Future.succeededFuture(conn));\n });\n }", "private void sendSyncCommand() throws IOException {\n System.out.print(addressPort);\n System.out.println(\"Send Synchronizatin Command\");\n DataOutputStream dos = new DataOutputStream(os);\n for (int i = 0; i < syncCmd.list.size(); i++) {\n System.out.print(\"CODE: \");\n System.out.println(syncCmd.list.get(i).code);\n System.out.print(\"PARENT1: \");\n System.out.println(syncCmd.list.get(i).parent1);\n System.out.print(\"PARENT2: \");\n System.out.println(syncCmd.list.get(i).parent2);\n System.out.print(\"NAME1: \");\n System.out.println(syncCmd.list.get(i).name1);\n System.out.print(\"NAME2: \");\n System.out.println(syncCmd.list.get(i).name2);\n System.out.print(\"ADDRESSPORT: \");\n System.out.println(syncCmd.list.get(i).addressPort);\n }\n\n for (int i = 0; i < syncCmd.list.size(); i++) {\n dos.writeByte(syncCmd.list.get(i).code);\n dos.writeUTF(syncCmd.list.get(i).parent1);\n dos.writeUTF(syncCmd.list.get(i).parent2);\n dos.writeUTF(syncCmd.list.get(i).name1);\n dos.writeUTF(syncCmd.list.get(i).name2);\n dos.writeUTF(syncCmd.list.get(i).addressPort);\n }\n dos.writeByte(Message.MSG_NEW_KEY);\n synchronized (GUITracker.onlinePeer) {\n dos.writeUTF(Util.convertBytesToBase64(GUITracker.RC4KeyByte));\n }\n }", "@Test(timeout = 30_000)\n public void setAndWait(TestContext should) {\n final int runs = 10;\n final Async test = should.async(runs);\n\n Redis.createClient(rule.vertx(), options).connect().onComplete(should.asyncAssertSuccess(cluster -> {\n for (int i = 0; i < runs; i++) {\n cluster.send(cmd(SET).arg(\"key\").arg(\"value\")).onComplete(should.asyncAssertSuccess(setResponse -> {\n should.assertEquals(\"OK\", setResponse.toString().toUpperCase());\n\n cluster.send(cmd(WAIT).arg(1).arg(2000)).onComplete(should.asyncAssertSuccess(waitResponse -> {\n should.assertEquals(1, waitResponse.toInteger());\n test.countDown();\n }));\n }));\n }\n }\n ));\n }", "public interface LuaScript {\n\n /**\n * Execute this script using the given Jedis connection\n * @param jedis the Jedis connection to use\n * @return the result object from the executed script\n * @see Jedis#eval(String)\n */\n Object exec(Jedis jedis);\n}", "public long sadd(String key,String value){\n Jedis jedis = null;\n try{\n jedis = pool.getResource();\n return jedis.sadd(key,value);\n } catch (Exception e){\n logger.error(\"发生异常:\"+e.getMessage());\n } finally {\n jedis.close();\n }\n return 0;\n }", "@Bean\n public RedisTemplate<String, Object> redisTemplate() {\n RedisTemplate<String,Object> redisTemplate = new RedisTemplate<String, Object>();\n redisTemplate.setConnectionFactory(lettuceConnectionFactory());\n redisTemplate.afterPropertiesSet();\n return redisTemplate;\n }", "@Test\n @FixFor(\"DBZ-4509\")\n public void testRedisConnectionRetry() throws Exception {\n Testing.Print.enable();\n\n Jedis jedis = new Jedis(HostAndPort.from(RedisTestResourceLifecycleManager.getRedisContainerAddress()));\n // wait until the offsets are written for the first time\n TestUtils.awaitHashSizeGte(jedis, OFFSETS_HASH_NAME, 1);\n\n // clear the offsets key\n jedis.del(OFFSETS_HASH_NAME);\n\n // pause container\n Testing.print(\"Pausing container\");\n RedisTestResourceLifecycleManager.pause();\n\n final PostgresConnection connection = TestUtils.getPostgresConnection();\n Testing.print(\"Creating new redis_test table and inserting 5 records to it\");\n connection.execute(\n \"CREATE TABLE inventory.redis_test (id INT PRIMARY KEY)\",\n \"INSERT INTO inventory.redis_test VALUES (1)\",\n \"INSERT INTO inventory.redis_test VALUES (2)\",\n \"INSERT INTO inventory.redis_test VALUES (3)\",\n \"INSERT INTO inventory.redis_test VALUES (4)\",\n \"INSERT INTO inventory.redis_test VALUES (5)\");\n connection.close();\n\n Testing.print(\"Sleeping for 2 seconds to flush records\");\n Thread.sleep(2000);\n Testing.print(\"Unpausing container\");\n\n RedisTestResourceLifecycleManager.unpause();\n Testing.print(\"Sleeping for 2 seconds to reconnect to redis and write offset\");\n\n // wait until the offsets are re-written\n TestUtils.awaitHashSizeGte(jedis, OFFSETS_HASH_NAME, 1);\n\n Map<String, String> redisOffsets = jedis.hgetAll(OFFSETS_HASH_NAME);\n jedis.close();\n assertThat(redisOffsets.size() > 0).isTrue();\n }", "@Override\r\n public void execute(Command command) {\n\r\n }", "public void redisStartup() {\n\n\t\tFileReader fr;\n\t\tString[] entryData;\n\t\tString temp = \"visitor_id\";\n\t\tint i;\n\t\tboolean flagV = true, flagC = true;\n\t\ttry {\n\t\t\tfr = new FileReader(\"/home/bridgeit/contentDb.csv\");\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tString entry;\n\t\t\tentry = br.readLine();\n\t\t\tentryData = entry.split(\"\\\\,\");\n\n\t\t\tfor (i = 0; i < entryData.length; i++) {\n\t\t\t\tSystem.out.print(i + \" \" + entryData[i] + \" \");\n\t\t\t}\n\n\t\t\twhile (entry != null) {\n\t\t\t\tentryData = entry.split(\"\\\\,\");\n\t\t\t\tSystem.out.println(entry);\n\t\t\t\tfor (i = 0; i < entryData.length; i++) {\n\t\t\t\t\tentryData[i] = entryData[i].replace(\"\\\"\", \"\");\n\t\t\t\t}\n\n\t\t\t\tif (!(entryData[0].equals(temp))) {\n\t\t\t\t\tRecModel rm = new RecModel(entryData[0], entryData[1], entryData[2], entryData[3], entryData[4],\n\t\t\t\t\t\t\tentryData[5]);\n\t\t\t\t\tSystem.out.println(\"add visitor\");\n\t\t\t\t\taddVisitorID(rm);\n\t\t\t\t\tSystem.out.println(\"add content\");\n\t\t\t\t\taddContentID(rm);\n\n\t\t\t\t}\n\n\t\t\t\tif (flagV && flagC)\n\t\t\t\t\tentry = br.readLine();\n\t\t\t\telse {\n\t\t\t\t\t// return error\n\t\t\t\t\t// System.out.println(\"Error\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Start map\");\n\t\t\tcreateContentIDMap();\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Exit\");\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException ie) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tie.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\t\n\t\treactiveStringRedisTemplate.opsForHash()\n\t\t\t.put(\"STRINGS\", \"id-1\", \"value-1-x\")\n\t\t\t.log()\n\t\t\t.subscribe(result -> System.out.println(\"string operation result : \" + result));\n\t\t\n\t\treactivePersonHashOperations.put(\"person\", \"id-1\", new Person(1l))\n\t\t\t.log()\n\t\t\t.subscribe(result -> System.out.println(\"person operation result : \" + result));\n\t\t\n\t\treactivePersonHashOperations.put(\"person\", \"id-2\", new Person(2l))\n\t\t\t.log()\n\t\t\t.subscribe(result -> System.out.println(\"person operation result : \" + result));\n\t}", "public static void main(String[] args) throws IOException {\n Config config = new Config();\n config.useClusterServers()\n // use \"rediss://\" for SSL connection\n .addNodeAddress(\"redis://127.0.0.1:7181\");\n\n // or read config from file\n config = Config.fromYAML(new File(\"config-file.yaml\"));\n\n // 2. Create Redisson instance\n\n // Sync and Async API\n RedissonClient redisson = Redisson.create(config);\n\n // Reactive API\n RedissonReactiveClient redissonReactive = Redisson.createReactive(config);\n\n // RxJava2 API\n RedissonRxClient redissonRx = Redisson.createRx(config);\n\n // 3. Get Redis based Map\n RMap<String, Object> map = redisson.getMap(\"myMap\");\n\n RMapReactive<String, Object> mapReactive = redissonReactive.getMap(\"myMap\");\n\n RMapRx<String, Object> mapRx = redissonRx.getMap(\"myMap\");\n\n // 4. Get Redis based Lock\n RLock lock = redisson.getLock(\"myLock\");\n\n RLockReactive lockReactive = redissonReactive.getLock(\"myLock\");\n\n RLockRx lockRx = redissonRx.getLock(\"myLock\");\n\n // 4. Get Redis based ExecutorService\n RExecutorService executor = redisson.getExecutorService(\"myExecutorService\");\n\n // over 50 Redis based Java objects and services ...\n }", "public LockSync() {\n lock = new ReentrantLock();\n }", "public long lpush(String key,String value){\n Jedis jedis = null;\n try{\n jedis = pool.getResource();\n return jedis.lpush(key,value);\n } catch (Exception e){\n logger.error(\"发生异常:\"+e.getMessage());\n } finally {\n jedis.close();\n }\n return 0;\n }", "public static void example3() {\n int timeout = 6;\n Ploy Ploy = new LoopPloy();\n Selector selector = new ModuleSelector();\n\n selector.setPloy(Ploy);\n // Shard 0: master:192.738.1.3:6379 slave:192.738.1.4:6379\n // 192.738.1.5:6379\n Shard Shard0 = Shard.createShard(\n timeout,\n \"172.17.20.73:6379\",\n \"127.0.0.1:6379\",\n \"172.17.20.73:6381\");\n selector.addShard(0, Shard0);\n // Shard 1: master:192.738.1.6:6379 slave:192.738.1.7:6379\n // 192.738.1.8:6379\n Shard Shard1 = Shard.createShard(\n timeout,\n \"127.0.0.1:6379\",\n \"127.0.0.1:6379\",\n \"127.0.0.1:6379\");\n selector.addShard(1, Shard1);\n\n JedisShards redis = new JedisShards(selector, isPoolable);\n RedisCommand rc = redis.create(RedisCommand.class);\n for (int i = 0; i < 10; i++) {\n rc.set(\"\" + i, \"V\" + i);\n }\n redis.close();\n }", "@Override\n\tpublic void sync() throws IOException {\n\t\t\n\t}", "public void sendCommand(Command cmd);", "CommandResult execute();", "private static StringRedisTemplate getRedisTemplate() {\n StringRedisTemplate redisTemplate = context.getBean(StringRedisTemplate.class);\n return redisTemplate;\n }", "public void sync () throws java.io.SyncFailedException, ObjectStoreException\n {\n }", "public Command getCommand() {\n\t\treturn redCom;\n\t}", "void syncGroup();", "private void setJedisFromPool() {\n\t\tjedis = jedisPool.getResource();\n\t}", "public long scard(String key){\n Jedis jedis = null;\n try{\n jedis = pool.getResource();\n return jedis.scard(key);\n } catch (Exception e){\n logger.error(\"发生异常:\"+e.getMessage());\n } finally {\n jedis.close();\n }\n return 0;\n }", "public static void main(String[] args){\n subThing st = new subThing(\"RAWR\");\n st.ep.start(Executors.newCachedThreadPool());\n for(;;){\n // try {\n // Thread.sleep(1);\n // } catch (InterruptedException e) {\n // e.printStackTrace();\n // }\n st.ep.execute();\n Thread.yield();\n }\n/*\n try {\n st.ep.listen(Constants.PROXY_PORT);\n // System.out.println((String) t.p.invoke(\"roar\"));\n for(;;) {\n st.ep.accept();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n */\n /*Command cmdTwo = null;\n Command cmd = new Command(\"concat\",\"-nyan\");\n\n Method[] m = String.class.getMethods();\n Map<String,Method> coolMap = new HashMap<String,Method>();\n for (Method M: m){\n coolMap.put(M.getName(),M);\n }\n\n Object o = \" and again\";\n\n try {\n ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(\"./cmd.ser\")));\n oos.writeObject(cmd);\n oos.flush();\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(new FileInputStream(\"./cmd.ser\")));\n cmdTwo = (Command)ois.readObject();\n System.out.println(coolMap.get(cmdTwo.method).invoke(\"rawr\", cmdTwo.args));\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n */\n }", "public Jedis[] getJedis(String msg) {\n Map<String, Boolean> clusterNodesStatus = null;\n int index, node_nums = 0;\n\n node_nums = InitJedisPool();\n index = 0;\n for (String key : clusterNodes.keySet()) {\n nodeNames[index] = key;\n try {\n jedisPool[index] = clusterNodes.get(key);\n if (clusterNodesStatus == null) {\n jedisArray[index] = jedisPool[index].getResource();\n ipPort2Jedis.put(key, jedisArray[index]);\n clusterNodesStatus = getClusterNodesStatus(jedisArray[index]\n .clusterNodes());\n if (clusterNodesStatus.size() != node_nums) {\n jedisArray[index].close();\n jedisCluster = JedisClusterFactory.getJedisCluster();\n return getJedis(\"Node Delete Or Add In Redis Cluster!\");\n }\n } else if (clusterNodesStatus.get(key)) {\n jedisArray[index] = jedisPool[index].getResource();\n ipPort2Jedis.put(key, jedisArray[index]);\n } else {\n flag[index] = 0;\n }\n } catch (JedisException e) {\n flag[index] = 0;\n } finally {\n try {\n// jedisPool[index].returnResource(jedisArray[index]);\n } catch (Exception e) {\n }\n }\n index++;\n }\n clusterNodes.clear();\n return jedisArray;\n }", "public interface RedisConstant {\n\n String TOKEN_PREFIX = \"TOKEN_%s\";\n Integer EXPIRE = 7200;//SECOND\n\n}", "@Override\n\tpublic BaseResponse setRedisTest(String key, String value) {\n\t\tbaseRedisService.setString(key, value);\n\t\treturn setResultSuccess();\n\t}", "public void execute() { // FIXME extract to utility class\n\t\ttry {\n\t\t\tif (errorMsg != null && errorMsg.trim().length() > 0) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (connection == null || connection.isClosed()) {\n\t\t\t\terrorMsg = Messages.error_getConnection;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t//databaseInfo.getServerInfo().compareVersionKey(\"8.2.2\") >= 0;\n\t\t\tboolean isSupportCache = CompatibleUtil.isSupportCache(databaseInfo);\n\t\t\tString sql = \"SELECT owner.name, db_serial.* FROM db_serial WHERE class_name IS NULL\";\n\n\t\t\t// [TOOLS-2425]Support shard broker\n\t\t\tif (databaseInfo.isShard()) {\n\t\t\t\tsql = databaseInfo.wrapShardQuery(sql);\n\t\t\t}\n\n\t\t\tstmt = connection.createStatement();\n\t\t\trs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\tString name = rs.getString(\"name\");\n\t\t\t\tString owner = rs.getString(\"owner.name\");\n\t\t\t\tString currentVal = rs.getString(\"current_val\");\n\t\t\t\tString incrementVal = rs.getString(\"increment_val\");\n\t\t\t\tString maxVal = rs.getString(\"max_val\");\n\t\t\t\tString minVal = rs.getString(\"min_val\");\n\t\t\t\tString cyclic = rs.getString(\"cyclic\");\n\t\t\t\tString startVal = rs.getString(\"started\");\n\t\t\t\tString className = rs.getString(\"class_name\");\n\t\t\t\tString attName = rs.getString(\"att_name\");\n\t\t\t\tboolean isCycle = false;\n\t\t\t\tif (cyclic != null && cyclic.equals(\"1\")) {\n\t\t\t\t\tisCycle = true;\n\t\t\t\t}\n\t\t\t\tString cacheCount = null;\n\t\t\t\tif (isSupportCache) {\n\t\t\t\t\tcacheCount = rs.getString(\"cached_num\");\n\t\t\t\t}\n\t\t\t\tSerialInfo serialInfo = new SerialInfo(name, owner, currentVal,\n\t\t\t\t\t\tincrementVal, maxVal, minVal, isCycle, startVal,\n\t\t\t\t\t\tcacheCount, className, attName);\n\t\t\t\tserialInfoList.add(serialInfo);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\terrorMsg = e.getMessage();\n\t\t\tLOGGER.error(e.getMessage(), e);\n\t\t} finally {\n\t\t\tfinish();\n\t\t}\n\t}", "public void sendDataToCrQueue() {\n List<Shares> sharesList = new ArrayList<>();\n amqpTemplate.convertAndSend(\"queueTestKey\", sharesList);\n }", "RedisManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "void failedToStart(RedisServer redisServer);", "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "public void rpush(String key, Object... values) {\n Jedis jedis = null;\n if (values == null) {\n return;\n }\n try {\n jedis = jedisPool.getResource();\n byte[][] strings = new byte[values.length][];\n for (int j = 0; j < values.length; j++) {\n // strings[j] = HessianSerializer.serialize(values[j]);\n strings[j] = toJsonByteArray(values[j]);\n }\n jedis.rpush(key.getBytes(), strings);\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }", "@RequestMapping(\"/redis/get\")\n @ResponseBody\n public Result<User> redisGet() {\n \tUser user = redisService.get(UserKey.getById, \"1\", User.class);\n return Result.success(user);\n// return Result.success(name);\n }", "public void synchronize(){ \r\n }", "@Override\n protected Void doInBackground(String... strings) {\n try {\n this.socket = new Socket(strings[0], Integer.parseInt(strings[1]));\n this.buffer = new DataOutputStream(this.socket.getOutputStream());\n while(true) {\n this.buffer.write((commandQueue.take()+\"\\r\\n\").getBytes());\n this.buffer.flush();\n }\n }\n catch (Exception e) {\n System.out.println(\"\" + e.getMessage());\n }\n return null;\n }", "public interface JedisDataSource {\n Jedis getRedisClient();\n void returnResource(Jedis jedis);\n void returnResource(Jedis jedis, boolean broken);\n}", "public void getCommandsUpdate() {\n\t\t\r\n\t}" ]
[ "0.6691131", "0.62365097", "0.59918797", "0.580722", "0.5767454", "0.56771314", "0.56575006", "0.5635509", "0.5631057", "0.5603007", "0.56012744", "0.559034", "0.54479617", "0.544503", "0.5438451", "0.5399867", "0.5397943", "0.538153", "0.53614557", "0.53174853", "0.53133905", "0.53113204", "0.52799964", "0.5270709", "0.526831", "0.52370197", "0.52214354", "0.52173364", "0.5210361", "0.52097076", "0.52026397", "0.51901203", "0.5165085", "0.5151092", "0.51027894", "0.50954205", "0.5092765", "0.50661534", "0.50504106", "0.50283045", "0.5012392", "0.49834397", "0.49829283", "0.4948256", "0.49353686", "0.491977", "0.49157903", "0.49140832", "0.49126595", "0.4903375", "0.48992845", "0.48962772", "0.4891458", "0.48894817", "0.48712826", "0.48398158", "0.48373094", "0.4828301", "0.48277435", "0.48218715", "0.4811045", "0.48075727", "0.4806759", "0.4789619", "0.47895724", "0.47565275", "0.47516063", "0.47511333", "0.47415456", "0.47384387", "0.47361872", "0.47274423", "0.46864137", "0.46833402", "0.46762922", "0.466645", "0.46560794", "0.46546373", "0.4653749", "0.46533456", "0.4649675", "0.46402016", "0.4634501", "0.462934", "0.46281445", "0.46277365", "0.46258193", "0.46178716", "0.46113864", "0.46089602", "0.46081954", "0.4604276", "0.45988467", "0.45853326", "0.45821267", "0.45787826", "0.45741504", "0.4550677", "0.4547232", "0.45467213", "0.45389938" ]
0.0
-1
This map will locally (per mapper data) calculate all the frequencies for a given term \t docPath
public void reduce(Text key, Iterable<Text> docPaths, Context context) throws IOException, InterruptedException { HashMap<Text, Integer> map = new HashMap<Text, Integer>(); for (Text docPath : docPaths) { String[] tokens = docPath.toString().split("/"); String path = tokens[tokens.length - 1]; if (map.containsKey(new Text(key.toString() + "\t" + path))) { Integer frequency = map.get(new Text(key.toString() + "\t" + path)); map.put(new Text(key.toString() + "\t" + path), frequency + 1); } else { map.put(new Text(key.toString() + "\t" + path), 1); } } // Iterate through and write the results to the context (docId, wordcount) map.forEach((Text k, Integer v) -> { try { context.write(k, new IntWritable(v)); } catch (Exception e) { System.out.println("Error: Reducer write failed"); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic long getDocumentFrequency(String term) {\n\t\t\t\treturn 0;\r\n\t\t\t}", "@Override\n public int getDocumentFrequencyByTerm(String term) {\n return 0;\n }", "abstract public int docFreq(Term t) throws IOException;", "@Override\n public int getTermFrequencyByDocument(String term, String url) {\n return 0;\n }", "public ComputeTermFrequencies() { super(); }", "public static void DocumentFrequencies() throws FileNotFoundException {\n for (Entry<String, List<Integer>> entry : dictionary.entrySet()) {\n List<Integer> termfrequency = new ArrayList<>();\n\n termfrequency = entry.getValue();\t// getting each word's termfrequency list\n int i = 0;\n termfrequency.add(0); \t\t\t//maintaining documentfrequency at the 57th index\n Integer documentFrequency = termfrequency.get(totaldocument+1);\n while(i<56) { //iterate 0 to 55 all speeches term frequency\n if(termfrequency.get(i)>0) {\t\t//increment document frequency of that word if termfrequency is greater than 0.0\n documentFrequency++;\t\t\t//increment document frequency\n }\n i++;\t\t//increment index\n }\n termfrequency.set(57, documentFrequency);\t//re-set the documentfrequency and save the current maintained document frequency from 0 to calculated value\n dictionary.put(entry.getKey(), termfrequency);\t\t// place the incremented final value of that word back to the same list in dictionary hashmap\n }\n //save();\n }", "public int getDocFreq(Term t){\n\t\tint freq = 0;\r\n\t\tfor (Map.Entry<String, IndexedDoc> set : index.entrySet()){\r\n\t\t\tif (set.getValue().containsTerm(t)){\r\n\t\t\t\tfreq++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn freq;\r\n\t}", "@Override\n public int getTermFrequency(String term) {\n return 0;\n }", "public static int getTermFreq (String dirPath, Set<String> terms) {\r\n\t\tAtomicInteger freq = new AtomicInteger(0);\r\n\t\ttry {\r\n\t\t\tPath currentWorkingPath = Paths.get(dirPath).toAbsolutePath();\r\n\t\t\t// This is our standard \"walk through all .txt files\" code.\r\n\t\t\tFiles.walkFileTree(currentWorkingPath, new SimpleFileVisitor<Path>() {\r\n\r\n\t\t\t\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {\r\n\t\t\t\t\t// make sure we only process the current working directory\r\n\t\t\t\t\tif (currentWorkingPath.equals(dir)) {\r\n\t\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.SKIP_SUBTREE;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpublic FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {\r\n\r\n\t\t\t\t\tif (file.toString().endsWith(\".txt\")) {\r\n\r\n\t\t\t\t\t\tTokenStream tokenStream = null;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ttokenStream = Utils.getTokenStreams(file.toFile());\r\n\t\t\t\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\twhile (tokenStream.hasNextToken()) {\r\n\r\n\t\t\t\t\t\t\tString token = Utils.processWord(tokenStream.nextToken().trim(), false);\r\n\t\t\t\t\t\t\tif (terms.contains(token)) {\r\n\t\t\t\t\t\t\t\tfreq.incrementAndGet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// don't throw exceptions if files are locked/other errors occur\r\n\t\t\t\tpublic FileVisitResult visitFileFailed(Path file, IOException e) {\r\n\t\t\t\t\treturn FileVisitResult.CONTINUE;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn freq.get();\r\n\t}", "private void calculateIdf(){\r\n\t\tIdf = new HashMap<>();\r\n\t\tOcc = new HashMap<>();\r\n\t\t\r\n\t\tfor (Entry<String, Document> doc : Docs.entrySet()){\r\n\t\t\tdoc.getValue().wordSet.forEach(word -> {\r\n\t\t\t\tdouble count = Idf.containsKey(word) ? Idf.get(word) : 0;\r\n \tIdf.put(word, count+1);\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tdoc.getValue().words.forEach((w, o) -> words.add(w));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tfor (Entry<String, Double> e : new HashMap<>(Idf).entrySet()){\r\n\t\t\tIdf.put(e.getKey(),\r\n\t\t\t\t\tMath.log(Idf.keySet().size() / e.getValue()));\r\n\t\t}\r\n\t}", "public int getTermFreq(String fileName, Term t){\n\t\tint freq = 0;\r\n\t\tfor (Map.Entry<String, IndexedDoc> set : index.entrySet()){\r\n\t\t\tif (set.getKey()==fileName){\r\n\t\t\t\treturn set.getValue().termCount(t);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn freq;\r\n\t}", "public void calculateTermWeights() {\n\t\tfor (String termString : terms.keySet()) {\n\t\t\tTerm t = terms.get(termString);\n\t\t\tMap<Integer, TermDoc> posting = t.getPostings();\n\n\t\t\t// Iterate through the docs in which the selected term is found.\n\t\t\tfor (Integer docId : posting.keySet()) {\n\n\t\t\t\tTermDoc td = posting.get(docId);\n\t\t\t\tDocument doc = this.getDocument(docId);\n\n\t\t\t\tfinal double a = 0.4;\n\t\t\t\tdouble ntf = a + (1 - a) * (double) td.getFreq() / (double) doc.getMaxTermFreq();\n\t\t\t\tdouble idf = Math.log((double) documents.size() / (1 + (double) t.getDocFreq()));\n\t\t\t\tdoc.addWeight(termString, ntf * idf);\n\t\t\t}\n\t\t}\n\n\t\tfor (Document doc : documents.values())\n\t\t\tdoc.setEuclideanDistance();\n\t}", "private void scanDocuments()\n{\n document_counts = new HashMap<>();\n kgram_counts = new HashMap<>();\n for (File f : root_files) {\n addDocuments(f);\n }\n}", "public static void pageRankmain() {\n\t\t\t\n\t\t\tstopWordStore();\n\t\t\t//File[] file_read= dir.listFiles();\n\t\t\t//textProcessor(file_read);// Will be called from LinkCrawler\n\t\t\t//queryProcess();\n\t\t\t//System.out.println(\"docsave \"+ docsave);\n\t\t\t/*for ( Map.Entry<String, ArrayList<String>> entry : docsave.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t List<String> values = entry.getValue();\n\t\t\t System.out.print(\"Key = \" + key);\n\t\t\t System.out.println(\" , Values = \"+ values);\n\t\t\t}*/\n\t\t\t//########## RESPOINSIBLE FOR CREATING INVERTED INDEX OF TERMS ##########\n\t\t\tfor(int i=0;i<vocabulary.size();i++) {\n\t\t\t\tint count=1;\n\t\t\t\tMap<String, Integer> nestMap = new HashMap<String, Integer>();\n\t\t\t\tfor ( Map.Entry<String, ArrayList<String>> entry : docsave.entrySet()) {\n\t\t\t\t String keyMain = entry.getKey();\n\t\t\t\t List<String> values = entry.getValue();\n\t\t\t\t if(values.contains(vocabulary.get(i)))\n\t\t\t\t \t{\n\t\t\t\t \tentryDf.put(vocabulary.get(i), count);//entryDf stores documents frequency of vocabulary word \\\\it increase the count value for specific key\n\t\t\t\t \tcount++;\n\t\t\t\t \t}\n\t\t\t\t \n\t\t\t\t nestMap.put(keyMain, Collections.frequency(values,vocabulary.get(i)));\n\t\t\t \t\n\t\t\t \t//System.out.println(\"VOC \"+ vocabulary.get(i)+ \" KeyMain \" +keyMain+ \" \"+ Collections.frequency(values,vocabulary.get(i)));\n\t\t\t\t\t}\n\t\t\t\t\ttfList.put(vocabulary.get(i), nestMap);\n\t\t\t}\n\t\t\t//########## RESPOINSIBLE FOR CREATING A MAP \"storeIdf\" TO STORE IDF VALUES OF TERMS ##########\n\t\t\tfor ( Map.Entry<String, Integer> endf : entryDf.entrySet()) {\n\t\t\t\tString keydf = endf.getKey();\n\t\t\t\tint valdf = endf.getValue();\n\t\t\t\t//System.out.print(\"Key = \" + \"'\"+keydf+ \"'\");\n\t\t\t //System.out.print(\" , Values = \"+ valdf);\n\t\t\t double Hudai = (double) (docsave.size())/valdf;\n\t\t\t //System.out.println(\"docsave size \"+docsave.size()+ \" valdf \"+ valdf + \" Hudai \"+ Hudai+ \" log Value1 \"+ Math.log(Hudai)+ \" log Value2 \"+ Math.log(2));\n\t\t\t double idf= Math.log(Hudai)/Math.log(2);\n\t\t\t storeIdf.put(keydf, idf);\n\t\t\t //System.out.print(\" idf-> \"+ idf);\n\t\t\t //System.out.println();\n\t\t\t} \n\t\t\t\n\t\t\t//############ Just for Printing ##########NO WORK HERE########\n\t\t\tfor (Map.Entry<String, Map<String, Integer>> tokTf : tfList.entrySet()) {\n\t\t\t\tString keyTf = tokTf.getKey();\n\t\t\t\tMap<String, Integer> valTF = tokTf.getValue();\n\t\t\t\tSystem.out.println(\"Inverted Indexing by Key Word = \" + \"'\"+keyTf+ \"'\");\n\t\t\t\tfor (Map.Entry<String, Integer> nesTf : valTF.entrySet()) {\n\t\t\t\t\tString keyTF = nesTf.getKey();\n\t\t\t\t\tInteger valTf = nesTf.getValue();\n\t\t\t\t\tSystem.out.print(\" Document Consists This Key Word = \" + \"'\"+ keyTF+ \"'\");\n\t\t\t\t\tSystem.out.println(\" , Term Frequencies in This Doc = \"+ valTf);\n\t\t\t\t} \n\t\t\t}\n\t\t\t//########### FOR CALCULATING DOCUMENT LENTH #############//\n\t\t\tfor ( Map.Entry<String, ArrayList<String>> entry_new : docsave.entrySet()) // Iterating Number of Documents\n\t\t\t{\n\t\t\t\tString keyMain_new = entry_new.getKey();\n\t\t\t\t//int countStop=0;\n\t\t\t\tdouble sum=0;\n\t\t\t\t for(Map.Entry<String, Map<String, Integer>> tokTf_new : tfList.entrySet()) // Iterating through the vocabulary\n\t\t\t\t { \n\t\t\t\t\t Map<String, Integer> valTF_new = tokTf_new.getValue();\n\t\t\t\t\t for (Map.Entry<String, Integer> nesTf_new : valTF_new.entrySet()) // Iterating Through the Documents\n\t\t\t\t\t {\n\t\t\t\t\t\t if(keyMain_new.equals(nesTf_new.getKey())) // Only doc name EQUAL with docsave name can enter here\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t double val = nesTf_new.getValue()* (Double) storeIdf.get(tokTf_new.getKey());\n\t\t\t\t\t\t\t sum = sum+ Math.pow(val, 2);\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t\t //countStop++;\n\t\t\t\t }\n\t\t\t\t docLength.put(keyMain_new, Math.sqrt(sum));\n\t\t\t\t sum=0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Document Length \"+ docLength);\n\t\t\t//System.out.println(\"tfList \"+tfList);\n\t\t\t\n\t\t\t //########### FOR CALCULATING QUERY LENTH #############///\n\t\t\t\tdouble qrySum=0;\n\t\t\t\t for(String qryTerm: queryList) // Iterating through the vocabulary\n\t\t\t\t {\n\t\t\t\t\t//entryQf.put(qryTerm, Collections.frequency(queryList,qryTerm));// VUl ase\n\t\t\t\t\t \n\t\t\t\t\t\t if(storeIdf.get(qryTerm) != null) \n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t entryQf.put(qryTerm, Collections.frequency(queryList,qryTerm));\n\t\t\t\t\t\t\t double val = entryQf.get(qryTerm)* (Double) storeIdf.get(qryTerm);\n\t\t\t\t\t\t\t qrySum = qrySum+ Math.pow(val, 2);\n\t\t\t\t\t\t }\n\t\t\t\t\t System.out.println(qryTerm+\" \"+entryQf.get(qryTerm)+ \" \"+ (Double) storeIdf.get(qryTerm));\n\t\t\t\t }\n\t\t\t\t qrySum=Math.sqrt(qrySum);\n\t\t\t\t System.out.println(\"qrySum \" + qrySum);\n\t\t\t\t \n\t\t\t\t//########### FOR CALCULATING COSINE SIMILARITY #############///\n\t\t\t\t for ( Map.Entry<String, ArrayList<String>> entry_dotP : docsave.entrySet()) // Iterating Number of Documents\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble sumProduct=0;\n\t\t\t\t\t\tdouble productTfIdf=0;\n\t\t\t\t\t\tString keyMain_new = entry_dotP.getKey(); //Geting Doc Name\n\t\t\t\t\t\t for(Map.Entry<String, Integer> qryTermItr : entryQf.entrySet()) // Iterating through the vocabulary\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t Map<String, Integer> matchTerm = tfList.get(qryTermItr.getKey()); // Getting a map of doc Names by a Query Term as value of tfList\n\n\t\t\t\t\t\t\t\t if(matchTerm.containsKey(keyMain_new)) // Only doc name EQUAL with docsave name can enter here\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t //System.out.println(\"Test \"+ matchTerm.get(keyMain_new) +\" keyMain_new \" + keyMain_new);\n\t\t\t\t\t\t\t\t\t double docTfIdf= matchTerm.get(keyMain_new) * storeIdf.get(qryTermItr.getKey());\n\t\t\t\t\t\t\t\t\t double qryTfIdf= qryTermItr.getValue() * storeIdf.get(qryTermItr.getKey());\n\t\t\t\t\t\t\t\t\t productTfIdf = docTfIdf * qryTfIdf;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t sumProduct= sumProduct+productTfIdf;\n\t\t\t\t\t\t\t //System.out.println(\"productTfIdf \"+productTfIdf+\" sumProduct \"+ sumProduct);\n\t\t\t\t\t\t\t productTfIdf=0;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t cosineProd.put(entry_dotP.getKey(), sumProduct/(docLength.get(entry_dotP.getKey())*qrySum));\n\t\t\t\t\t\t sumProduct=0;\n\t\t\t\t\t\t //System.out.println(entry_dotP.getKey()+ \" \" + docLength.get(entry_dotP.getKey()));\n\t\t\t\t\t}\n\t\t\t\t System.out.println(\"cosineProd \"+ cosineProd);\n\t\t\t\t \n\t\t\t\t System.out.println(\"Number of Top Pages you want to see\");\n\t\t\t\t int topRank = Integer.parseInt(scan.nextLine());\n\t\t\t\t Map<String, Double> result = cosineProd.entrySet().stream()\n\t\t\t .sorted(Map.Entry.comparingByValue(Comparator.reverseOrder())).limit(topRank)\n\t\t\t .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue,\n\t\t\t (oldValue, newValue) -> oldValue, LinkedHashMap::new));\n\n\t\t\t\t scan.close();\n\t\t\t //Alternative way\n\t\t\t //Map<String, Double> result2 = new LinkedHashMap<>();\n\t\t\t //cosineProd.entrySet().stream().sorted(Map.Entry.<String, Double>comparingByValue().reversed()).limit(2).forEachOrdered(x -> result2.put(x.getKey(), x.getValue()));\n\n\t\t\t System.out.println(\"Sorted...\");\n\t\t\t System.out.println(result);\n\t\t\t //System.out.println(result2);\n\t}", "static void returnTfIdfResults() {\n\t\tSet<String> specificWords = findKeywords();\n\n\t\t// for every phrase\n\t\tfor (String word : specificWords) {\n\t\t\t// get the total number of documents\n\t\t\tdouble totalSize = size;\n\n\t\t\t// get the collection of documents containing that word\n\t\t\tCollection<File> containingWordSet = invertedMap.getValues(word);\n\n\t\t\t// makes a new one if null (for ease of code)\n\t\t\tif (containingWordSet == null) {\n\t\t\t\tcontainingWordSet = new HashSet<File>();\n\t\t\t}\n\n\t\t\t// the number containing the word\n\t\t\tdouble numContainingWord = containingWordSet.size();\n\n\t\t\t// get the idf (log(total/(1 + |# contain word|)\n\t\t\t// it is normalize with 1 to prevent division by 0\n\t\t\tdouble idf = Math.log(totalSize / (1 + numContainingWord));\n\n\t\t\t// System.out.println(\"------------------\");\n\t\t\t// System.out.println(word + \" totalSize \" + totalSize);\n\t\t\t// System.out.println(word + \" numContainingWord \" +\n\t\t\t// numContainingWord);\n\t\t\t// System.out.println(word + \" idf \" + idf);\n\t\t\t// System.out.println(\"------------------\");\n\n\t\t\t// set the wordscore to 0\n\t\t\tdouble wordScore = 0;\n\n\t\t\t// for all of the files with the word\n\t\t\tfor (File file : containingWordSet) {\n\t\t\t\tString fileName = file.getName();\n\n\t\t\t\t// get the phrase count for this document\n\t\t\t\tInteger phraseCount = phraseCountMap.get(fileName);\n\t\t\t\tdouble numPhrases = phraseCount.doubleValue();\n\n\t\t\t\t// get the word frequency map for this page\n\t\t\t\tHashMap<String, Integer> docFreqMap = wordFreqMap.get(fileName);\n\t\t\t\tInteger freq = docFreqMap.get(word);\n\n\t\t\t\t// otherwise, get the tf\n\t\t\t\tdouble tf;\n\t\t\t\tif (freq == null) {\n\t\t\t\t\t// if it's not present, it's 0\n\t\t\t\t\ttf = 0;\n\t\t\t\t} else {\n\t\t\t\t\t// otherwise, it's the value\n\t\t\t\t\ttf = freq / numPhrases;\n\t\t\t\t\t// System.out.println(tf);\n\t\t\t\t}\n\n\t\t\t\t// multiply for this score\n\t\t\t\tdouble score = tf * idf;\n\n\t\t\t\t// add it to the page score\n\t\t\t\twordScore += score;\n\t\t\t}\n\n\t\t\t// make a node with the sum of tf-idf for all relevant phrases and\n\t\t\t// add to pq\n\t\t\tWordNode w = new WordNode(word, wordScore);\n\t\t\tpq.add(w);\n\t\t}\n\t}", "private HashMap<String,HashMap<String,Integer>> computeTFForQueryWords(ArrayList<String> queryPostingLines) {\n HashMap<String,HashMap<String,Integer>> queryWordsTF = new HashMap<>();\n HashMap<String,HashMap<String,Integer>> queryWordsTFPerDoc = new HashMap<>();\n String docID,term;\n Integer tf;\n HashSet<String> docIDs = new HashSet<>();\n for(String postingLine : queryPostingLines){\n HashMap<String,Integer> frequenciesInDocuments = new HashMap<>();\n term = postingLine.substring(0,postingLine.indexOf(\"|\"));\n postingLine = postingLine.substring(postingLine.indexOf(\"|\")+1);\n while(!postingLine.equals(\"\")) {\n docID = postingLine.substring(0, postingLine.indexOf(\":\"));\n docIDs.add(docID);\n postingLine = postingLine.substring(postingLine.indexOf(\"_\") + 1);\n tf = Integer.valueOf(postingLine.substring(0, postingLine.indexOf(\"_\")));\n postingLine = postingLine.substring(postingLine.indexOf(\"_\") + 1);\n frequenciesInDocuments.put(docID,tf);\n }\n queryWordsTF.put(term,frequenciesInDocuments);\n }\n\n ArrayList<String> allTermsInQuery = new ArrayList<>(queryWordsTF.keySet());\n for(String doc : docIDs){\n HashMap<String,Integer> tfsInDoc = new HashMap<>();\n for(String termInQuery : allTermsInQuery){\n HashMap<String,Integer> termsTFInDoc = queryWordsTF.get(termInQuery);\n if(termsTFInDoc.containsKey(doc)){\n tfsInDoc.put(termInQuery,termsTFInDoc.get(doc));\n }\n }\n queryWordsTFPerDoc.put(doc,tfsInDoc);\n }\n return queryWordsTFPerDoc;\n }", "@Override\n protected float score(BasicStats stats, float termFreq, float docLength) {\n double s = 0.75;\n\n long N = stats.getNumberOfDocuments();\n long df = stats.getDocFreq();\n float cwd = termFreq;\n float cwq = 1; //assume that the query term frequency is always one\n float n = docLength;\n float navg = stats.getAvgFieldLength();\n\n double p1 = (1+Math.log(1+Math.log(cwd)))/(1-s+s*n/navg);\n float ans = (float) (p1 * cwq * Math.log((N+1)/df));\n\n return ans;\n }", "@Override\n public double score(Document document) {\n Set<String> allDocTerms = documentsTerms.termsExtractedFromDocument(document).allTerms();\n\n //keeping only the query terms that are in the document\n Collection<String> relevantTerms = new LinkedHashSet<>(query);\n relevantTerms.retainAll(allDocTerms);\n\n //compute score using a sum formula on each query term\n int docLength = termsOccurences.get(document).totalNumberOfOccurences();\n double score = 0.0;\n for (String term : relevantTerms) {\n double termIDF = idf.weight(term);\n double termTF = tf.weight(term, document);\n\n score += termIDF * (termTF * (k1 + 1)) / (termTF + k1 * (1 - b + b * (docLength / averageDocLength)));\n }\n\n return score;\n }", "private Map<Double, List<String>> getScoreMap() {\n\t\t//dfMap = new HashMap<String, Integer>();\n\t\t\n\t\tfor (Map.Entry<String, FreqAndLists> entry: map.entrySet()) {\n\t\t\tString term = entry.getKey();\n\t\t\tif (originalTerms.contains(term)) { // expanded terms should not contain original terms\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdouble totalScore = 0;\n\t\t\tList<PositionList> postingList = entry.getValue().getPostingList();\n\t\t\tfor (PositionList positionList : postingList) {\n\t\t\t\tlong dr = positionList.getDocID();\n\t\t\t\tint rawDf = GetRawDf.getRawDf(qryId, term);\n\t\t\t\t//dfMap.put(term, rawDf);\n\t\t\t\ttotalScore += sf.getScore(term, dr, rawDf);\n\t\t\t}\n\t\t\t//System.out.println(term + \" \" + totalScore);\n\t\t\tif (scoreMap.containsKey(totalScore)) {\n\t\t\t\tscoreMap.get(totalScore).add(term);\n\t\t\t} else {\n\t\t\t\tList<String> list = new ArrayList<>();\n\t\t\t\tlist.add(term);\n\t\t\t\tscoreMap.put(totalScore, list);\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*for (Map.Entry<Double, List<String>> entry : scoreMap.entrySet()) {\n\t\t\tSystem.out.println(\"000 \" + entry.getKey());\n\t\t\tList<String> list = entry.getValue();\n\t\t\tfor (String term : list) {\n\t\t\t\tSystem.out.println(\" \" + term);\n\t\t\t}\n\t\t}*/\n\t\t\n\t\t//writeToFile();\n\t\treturn scoreMap;\n\t}", "public void countTerm() throws IOException {\n\n long countBody = reader.getSumDocFreq(\"body\");\n long countTitle = reader.getSumDocFreq(\"title\");\n\n System.out.println(\"Body: \" + countBody);\n System.out.println(\"Title: \" + countTitle);\n System.out.println(\"Total count Terms: \" + (countTitle + countBody));\n\n }", "@Override\n protected double getTFDocument(BasicStats stats, float termFreq, float docLength) {\n return ((k1 + 1) * termFreq / (k1 * (1 - b +\n b * docLength / stats.getAvgFieldLength()) + termFreq));\n }", "private void findDocsFromLine(String line, String term) {\n String docs = line.substring(0, line.indexOf(\"[\") - 1); //get 'docsListStr'\n String[] docsArr = docs.split(\";\");\n for (String docInfo : docsArr) {\n String doc = docInfo.substring(0, docInfo.indexOf(\": \"));\n while(doc.charAt(0) == ' '){\n doc = doc.substring(1);\n }\n String tf = docInfo.substring(docInfo.indexOf(\":\") + 2);\n if (!docsResults.containsKey(doc)) {\n HashMap<String, Integer> termsTf = new HashMap<>();\n try{\n termsTf.put(term, Integer.parseInt(tf));\n }\n catch (NumberFormatException e){\n e.printStackTrace();\n }\n docsResults.put(doc, termsTf);\n } else {\n HashMap<String, Integer> termsTf = docsResults.get(doc);\n HashMap<String, Integer> newTermsTf = termsTf;\n newTermsTf.put(term, Integer.parseInt(tf));\n docsResults.replace(doc, termsTf, newTermsTf);\n }\n }\n }", "int DF(String term) {\n for (int i = 0; i < count1; i++) {\n if (economydocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count2; i++) {\n if (educationdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count3; i++) {\n if (sportdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count4; i++) {\n if (culturedocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count5; i++) {\n if (accedentdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count6; i++) {\n if (environmntaldocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count7; i++) {\n if (foreign_affairdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count8; i++) {\n if (law_justicedocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count9; i++) {\n if (agriculture[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count10; i++) {\n if (politicsdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count12; i++) {\n if (science_technologydocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count13; i++) {\n if (healthdocument[i].contains(term)) {\n df++;\n }\n }\n for (int i = 0; i < count14; i++) {\n if (army[i].contains(term)) {\n df++;\n }\n }\n return df;\n }", "private void buildFreqMap() {\n\t\toriginalFreq = new HashMap<String, WordOccurence>();\n\n\t\tfor (ListIterator<Caption> itr = original.captionIterator(0); itr\n\t\t\t\t.hasNext();) {\n\t\t\tfinal Caption currentCap = itr.next();\n\t\t\tfinal String[] words = currentCap.getCaption().split(\"\\\\s+\");\n\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\tfinal String lowerCasedWord = words[i].toLowerCase();\n\t\t\t\tif (originalFreq.containsKey(lowerCasedWord)) {\n\t\t\t\t\toriginalFreq.get(lowerCasedWord).addOccurence(\n\t\t\t\t\t\t\t(int) currentCap.getTime());\n\t\t\t\t} else {\n\t\t\t\t\tfinal WordOccurence occ = new WordOccurence(\n\t\t\t\t\t\t\t(int) currentCap.getTime());\n\t\t\t\t\toriginalFreq.put(lowerCasedWord, occ);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < identified.size(); i++) {\n\t\t\tResultChunk curretResult = identified.get(i);\n\t\t\tfinal String[] words = curretResult.getDetectedString().split(\n\t\t\t\t\t\"\\\\s+\");\n\t\t\tint identifiedAt = curretResult.getDetectedAt();\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tString currentWord = words[j].toLowerCase();\n\t\t\t\tif (originalFreq.containsKey(currentWord)) {\n\t\t\t\t\tint detectedAt = (int) (identifiedAt - (words.length - j)\n\t\t\t\t\t\t\t* AVG_WORD_TIME);\n\t\t\t\t\toriginalFreq.get(currentWord).addVoiceDetection(detectedAt);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void termQuerySearch(String[] terms) {\n for (String term : terms) {\n LinkedList<TermPositions> postingLists = indexMap.get(analyzeTerm(term));\n if (postingLists != null) {\n for (TermPositions matches : postingLists) {\n double score = (double) 1 + Math.log((double) matches.getPositionList().size()) *\n Math.log((double) N / (double) postingLists.size());\n resultsCollector.add(new DocCollector(matches.getDocId(), score));\n }\n }\n }\n }", "private static void printTable(int numberOfDocs) {\n \n Gson gs = new Gson();\n String json = gs.toJson(wor);\n // System.out.println(json);\n \n List<String> queryWords = new ArrayList();\n //to test it for other query word you can change the following two words\n //queryWords.add(\"carpet\");\n //queryWords.add(\"hous\");\n queryWords.add(\"the\");\n queryWords.add(\"crystallin\");\n queryWords.add(\"len\");\n queryWords.add(\"vertebr\");\n queryWords.add(\"includ\");\n \n \n FrequencySummary frequencySummary = new FrequencySummary();\n frequencySummary.getSummary(json,docName, queryWords);\n \n System.exit(0);\n \n Hashtable<Integer,Integer> g = new Hashtable<>();\n \n /* wor.entrySet().forEach((wordToDocument) -> {\n String currentWord = wordToDocument.getKey();\n Map<String, Integer> documentToWordCount = wordToDocument.getValue();\n freq.set(0);\n df.set(0);\n documentToWordCount.entrySet().forEach((documentToFrequency) -> {\n String document = documentToFrequency.getKey();\n Integer wordCount = documentToFrequency.getValue();\n freq.addAndGet(wordCount);\n System.out.println(\"Word \" + currentWord + \" found \" + wordCount +\n \" times in document \" + document);\n \n if(g.getOrDefault(currentWord.hashCode(), null)==null){\n g.put(currentWord.hashCode(),1);\n \n }else {\n System.out.println(\"Hello\");\n \n int i = g.get(currentWord.hashCode());\n System.out.println(\"i \"+i);\n g.put(currentWord.hashCode(), i++);\n }\n // System.out.println(currentWord+\" \"+ g.get(currentWord.hashCode()));\n // g.put(currentWord.hashCode(), g.getOrDefault(currentWord.hashCode(), 0)+wordCount);\n \n });\n // System.out.println(freq.doubleValue());\n \n // System.out.println(\"IDF for this word: \"+Math.log10( (double)(counter/freq.doubleValue())));\n });\n // System.out.println(g.get(\"plai\".hashCode()));\n //System.out.println(\"IDF for this word: \"+Math.log10( (double)(counter/(double)g.get(\"plai\".hashCode()))));\n */\n }", "private double idf(String term) {\n return 1 + Math.log(this.numberOfDocuments / (double) termToDocumentsContainingTerm.get(term).size());\n }", "void documentFrequncy(Set<String> features,\n int index,\n int troush\n ) {\n for (String str : features) {\n switch (index) {\n case 1:\n for (int i = 0; i < count1; i++) {\n if (economydocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyeco.put(str, e);\n }\n e = 0;\n break;\n case 2:\n for (int i = 0; i < count2; i++) {\n if (educationdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyedu.put(str, e);\n }\n e = 0;\n break;\n case 3:\n for (int i = 0; i < count3; i++) {\n if (sportdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyspo.put(str, e);\n }\n e = 0;\n break;\n case 4:\n for (int i = 0; i < count4; i++) {\n if (culturedocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencycul.put(str, e);\n }\n e = 0;\n break;\n case 5:\n for (int i = 0; i < count5; i++) {\n if (accedentdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyaccid.put(str, e);\n }\n e = 0;\n break;\n case 6:\n for (int i = 0; i < count6; i++) {\n if (environmntaldocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyenv.put(str, e);\n }\n e = 0;\n break;\n case 7:\n for (int i = 0; i < count7; i++) {\n if (foreign_affairdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencydep.put(str, e);\n }\n e = 0;\n break;\n case 8:\n for (int i = 0; i < count8; i++) {\n if (law_justicedocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencylaw.put(str, e);\n }\n e = 0;\n break;\n case 9:\n for (int i = 0; i < count9; i++) {\n if (agriculture[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyagri.put(str, e);\n }\n e = 0;\n break;\n case 10:\n for (int i = 0; i < count10; i++) {\n if (politicsdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencypoltics.put(str, e);\n }\n e = 0;\n break;\n// case 11:\n//\n// for (int i = 0; i < count11; i++) {\n// if (social_affairsdocument[i].contains(str)) {\n// e++;\n// }\n// }\n// if (e > troush) {\n// documntfrequencysocial.put(str, e);\n// }\n// e = 0;\n// break;\n case 11:\n for (int i = 0; i < count12; i++) {\n if (science_technologydocument[i].contains(str)) {\n e++;\n }\n }\n\n if (e > troush) {\n documntfrequencysci.put(str, e);\n }\n e = 0;\n break;\n case 12:\n for (int i = 0; i < count13; i++) {\n if (healthdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyhel.put(str, e);\n }\n e = 0;\n break;\n case 13:\n for (int i = 0; i < count14; i++) {\n if (army[i].contains(str)) {\n e++;\n }\n }\n\n if (e > troush) {\n documntfrequencyarmy.put(str, e);\n }\n e = 0;\n break;\n default:\n break;\n }\n\n }\n }", "public HashMap<Integer, Integer> readFreqPosting(IndexReader indexReader, String fieldName, String term) throws IOException {\n\n\t\tHashMap<Integer, Integer> listOfFreqSortedByDocID = new HashMap<>();\n\t\tSystem.out.printf( \"%-10s%-15s%-6s\\n\", \"DOCID\", \"URL\", \"FREQ\" );//Reads the posting list of the term in a specific index field. You need to encode the term into a BytesRef object, which is the internal representation of a term used by Lucene.\n\t\tPostingsEnum posting = MultiFields.getTermDocsEnum( indexReader, fieldName, new BytesRef( term ), PostingsEnum.FREQS );\n\n\t\tif ( posting != null ) { // if the term does not appear in any document, the posting object may be null\n\t\t\tint docid;\n\t\t\twhile ( ( docid = posting.nextDoc() ) != PostingsEnum.NO_MORE_DOCS ) {//Each time you call posting.nextDoc(), it moves the cursor of the posting list to the next position and returns the docid of the current entry (document). Note that this is an internal Lucene docid. It returns PostingsEnum.NO_MORE_DOCS if you have reached the end of the posting list.\n\t\t\t\tString url = getDocno( indexReader, \"url\", docid );\n\t\t\t\tint freq = posting.freq(); // get the frequency of the term in the current document\n\t\t\t\tlistOfFreqSortedByDocID.put(docid, freq);\n\t\t\t\tSystem.out.printf( \"%-10d%-15s%-6d\\n\", docid, url, freq );\n\t\t\t}\n\t\t}\n\n\t\treturn listOfFreqSortedByDocID;\n\t}", "@Override\n protected float score(BasicStats stats, float termFreq, float docLength) {\n float k1 = (float)1.2;\n float k2 = 750;\n float b = (float)0.75;\n float N = stats.getNumberOfDocuments();\n float df = stats.getDocFreq();\n float qtermFreq = 1;\n float score = (float)Math.log((N - df + 0.5)/df+0.5);\n score*=((k1+1)*termFreq)/(k1*(1-b+b*(docLength/stats.getAvgFieldLength()))+termFreq);\n score*=((k2+1)*qtermFreq)/(k2+qtermFreq);\n return score; }", "private static void wordCountWithMap() throws FileNotFoundException {\n Map<String, Integer> wordCounts = new HashMap<String, Integer>();\n\n Scanner input = new Scanner(new File(fileLocation));\n while (input.hasNext()) {\n String word = input.next();\n if (!wordCounts.containsKey(word)) {\n wordCounts.put(word, 1);\n } else {\n int oldValue = wordCounts.get(word);\n wordCounts.put(word, oldValue + 1);\n }\n }\n\n String term = \"test\";\n System.out.println(term + \" occurs \" + wordCounts.get(term));\n\n // loop over the map\n for (String word : wordCounts.keySet()) {\n int count = wordCounts.get(word);\n if (count >= 500) {\n System.out.println(word + \", \" + count + \" times\");\n }\n }\n\n }", "public abstract double score(\n\t\tdouble tf,\n\t\tdouble docLength,\n\t\tdouble n_t,\n\t\tdouble F_t,\n\t\tdouble keyFrequency);", "private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText();\n // construct a vector of tokens and update the tokenList in CAS\n // use tokenize0 from above\n List<String> ls = tokenize0(docText);\n Map<String, Integer> map = new HashMap<String, Integer>();\n Collection<Token> token_collection = new ArrayList<Token>();\n for (String d : ls) {\n if (map.containsKey(d)) {\n int inc = map.get(d) + 1;\n map.put(d, inc);\n } else {\n map.put(d, 1);\n }\n }\n Iterator it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry) it.next();\n Token t = new Token(jcas);\n String k = pairs.getKey().toString();\n int v = Integer.parseInt(pairs.getValue().toString());\n t.setFrequency(v);\n t.setText(k);\n token_collection.add(t);\n it.remove(); // avoids a ConcurrentModificationException\n }\n // use util tool to convert to FSList\n doc.setTokenList(Utils.fromCollectionToFSList(jcas, token_collection));\n doc.addToIndexes(jcas);\n\n }", "public double tf(String wordToLookFor, HashMap<String, ArrayList<Integer>> tokensHM, Document doc) {\n if (tokensHM.containsKey(wordToLookFor)) {\n double count = 0;\n String[] words = doc.generateWordList(doc.getDocument());\n if(tokensHM.get(wordToLookFor).contains(doc.getIndex())) {\n for (String word : words) {\n if (word.equals(wordToLookFor)) {\n count++;\n }\n }\n }\n return count/words.length;\n }\n else {\n return 0;\n }\n }", "public final float score(\r\n\t\tfloat tf,\r\n\t\tfloat docLength,\r\n\t\tfloat documentFrequency,\r\n\t\tfloat termFrequency,\r\n\t\tfloat keyFrequency) \r\n\t{\r\n\t\tfloat Robertson_tf = k_1*tf/(tf+k_1*(1-b+b*docLength/averageDocumentLength));\r\n\t\tfloat idf =(float) Idf.log(numberOfDocuments/documentFrequency+1);\r\n\t\treturn keyFrequency*Robertson_tf * idf;\r\n\r\n\t}", "private static void processFreqVectors(Map<String, Integer[]> vocabulary\r\n\t\t\t, Map<Path, Vector> freqVectors, int numOfDocs) {\r\n\t\tfor (Map.Entry<Path, Vector> entry : freqVectors.entrySet()) {\r\n\t\t\tVector vector = entry.getValue();\r\n\t\t\t\r\n\t\t\tfor (Map.Entry<String, Integer[]> word : vocabulary.entrySet()) {\r\n\t\t\t\tint index = word.getValue()[0];\r\n\t\t\t\tdouble nOfDocsWithWord = word.getValue()[1];\r\n\t\t\t\tdouble freqOfWordInDoc = vector.valueAt(index);\r\n\t\t\t\tdouble idf = Math.log(numOfDocs/nOfDocsWithWord);\r\n\t\t\t\tdouble value = freqOfWordInDoc * idf;\r\n\t\t\t\tvector.setValueAt(index, value);\r\n\t\t\t\tidfVectors.put(word.getKey(), idf);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void computeTermTable(IndexReader reader) throws IOException {\n\t\t//MultiFields.getFields(reader).terms(field)\n\t\tint numDocs = reader.numDocs();\n\t\tfor (int docID =0 ; docID < numDocs; docID++) {\n\t\t\tTerms termVector = reader.getTermVector(docID, FieldName.METHOD_DESC.getName());\n\t\t\tif(termVector == null)\n\t\t\t\tcontinue;\n\t\t\tTermsEnum iterator = termVector.iterator(null);\n\t\t\tBytesRef next = iterator.next();\n\t\t\twhile (next != null) {\n\t\t\t\tint docFreq = reader.docFreq(FieldName.METHOD_DESC.getName(), next);\n\t\t\t\t\n\t\t\t\ttermTable.put(next.utf8ToString(), docFreq);\n\t\t\t\tnext = iterator.next();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tcomputeStatProperties(reader,termTable);\n\t}", "private void handleDocument(String name,InputStream ins)\n{\n Map<String,Integer> words = new HashMap<>();\n Map<String,Integer> kgrams = new HashMap<>();\n \n try {\n String cnts = IvyFile.loadFile(ins);\n CompilationUnit cu = JcompAst.parseSourceFile(cnts);\n words = handleDocumentText(cnts);\n kgrams = buildKgramCounts(cnts,cu);\n }\n catch (IOException e) {\n IvyLog.logI(\"Problem reading document file \" + name + \": \" + e);\n }\n \n if (words.size() > 0) {\n ++total_documents;\n for (String s : words.keySet()) {\n Integer v = document_counts.get(s);\n if (v == null) document_counts.put(s,1);\n else document_counts.put(s,v+1);\n }\n }\n if (kgrams.size() > 0) {\n ++total_kdocuments;\n for (String s : kgrams.keySet()) {\n Integer v = kgram_counts.get(s);\n if (v == null) kgram_counts.put(s,1);\n else kgram_counts.put(s,v+1);\n }\n }\n}", "public int getTermTotal(){\n\t\tint total = 0;\r\n\t\tfor (Map.Entry<String, IndexedDoc> set : index.entrySet()){\r\n\t\t\ttotal += set.getValue().getTotalTerms();\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "private void createTermFreqVector(JCas jcas, Document doc) {\n\n String docText = doc.getText().toLowerCase();\n\n // TODO: construct a vector of tokens and update the tokenList in CAS\n\n String[] wordList = docText.split(\" \");\n HashMap<String, Integer> tokenCount = new HashMap<String, Integer>();\n for (String word : wordList) {\n String newWord = word;\n if(word.charAt(word.length()-1)<'a' || word.charAt(word.length()-1)>'z'){\n newWord = word.substring(0, word.length()-1);\n }\n //if(Utils.GetStopWordFilter().isStopword(newWord))continue;\n if (!tokenCount.containsKey(newWord)) {\n tokenCount.put(newWord, 1);\n } else {\n tokenCount.put(newWord, tokenCount.get(newWord) + 1);\n }\n }\n\n ArrayList<Token> tokenList = new ArrayList<Token>();\n for (String word : tokenCount.keySet()) {\n Token token = new Token(jcas);\n token.setText(word);\n token.setFrequency(tokenCount.get(word));\n tokenList.add(token);\n }\n FSList tokenFSList = Utils.fromCollectionToFSList(jcas, tokenList);\n doc.setTokenList(tokenFSList);\n }", "public static void InvertedDocFrequency() throws FileNotFoundException {\n //int totalDoc = totaldocument;\n int i = 0;\n for(Entry<String, List<Integer>> entry: dictionary.entrySet()) {\n List<Integer> docFrequency = new ArrayList<>();\n //\tList<Double> idfValue = new ArrayList<>();\n docFrequency = entry.getValue(); //again taking the list of word terms from the same dictionary hashmap\n int df = docFrequency.get(totaldocument+1); // it will save the idf of every word term at the 57th index\n double ans = Math.log10(df);\n ans /= totaldocument;\n\n idfFinal.add(i,ans); //updatin\n i++;\n }\n saveidf();\n }", "public void IndexADocument(String docno, String content) throws IOException {\n\t\tdocid++;\n\t\tdoc2docid.put(docno, docid);\n\t\tdocid2doc.put(docid, docno);\n\n\t\t// Insert every term in this doc into docid2map\n\t\tString[] terms = content.trim().split(\" \");\n\t\tMap<Integer, Integer> docTerm = new HashMap<>();\n\t\tint thisTermid;\n\t\tfor(String term: terms){\n\t\t\t// get termid\n\t\t\tif(term2termid.get(term)!=null) thisTermid = term2termid.get(term);\n\t\t\telse{\n\t\t\t\tthisTermid = ++termid;\n\t\t\t\tterm2termid.put(term, thisTermid);\n\t\t\t}\n\t\t\tdocTerm.put(thisTermid, docTerm.getOrDefault(thisTermid, 0)+1);\n\t\t\t// Merge this term's information into termid2map\n\t\t\tMap<Integer, Integer> temp = termid2map.getOrDefault(thisTermid, new HashMap());\n\t\t\ttemp.put(docid, temp.getOrDefault(docid, 0)+1);\n\t\t\ttermid2map.put(thisTermid, temp);\n\t\t\ttermid2fre.put(thisTermid, termid2fre.getOrDefault(thisTermid, 0)+1);\n\t\t}\n\t\tdocid2map.put(docid, docTerm);\n\n//\t\t// Merge all the terms' information into termid2map\n//\t\tfor(Long tid: docTerm.keySet()){\n//\t\t\tMap<Long, Long> temp = termid2map.getOrDefault(tid, new HashMap());\n//\t\t\ttemp.put(docid,docTerm.get(tid));\n//\t\t\ttermid2map.put(tid, temp);\n//\t\t\t// update this term's frequency\n//\t\t\ttermid2fre.put(tid, termid2fre.getOrDefault(tid,0L)+docTerm.get(tid));\n//\t\t}\n\n\t\t// When termid2map and docid2map is big enough, put it into disk\n\t\tif(docid%blockSize==0){\n\t\t\tWritePostingFile();\n\t\t\tWriteDocFile();\n\t\t}\n\t}", "public void map(LongWritable docID, Text value, OutputCollector<Text, Text> output, Reporter reporter) throws IOException {\n FileSplit fileSplit = (FileSplit) reporter.getInputSplit();\n String filename = \"\" + fileSplit.getPath().getName();\n\n int argc = Integer.parseInt(conf.get(\"argc\"));\n java.util.Map<String, Integer> keywords = new HashMap<String, Integer>();\n\n for (int i = 0; i < argc; i++) {\n String inputString = conf.get(\"keyword\" + i);\n\n keywords.put(inputString, 0);\n\n\n }\n\n String line = value.toString();\n StringTokenizer tokenizer = new StringTokenizer(line);\n while (tokenizer.hasMoreTokens()) {\n\n String token = tokenizer.nextToken();\n for (java.util.Map.Entry<String, Integer> me : keywords.entrySet()) {\n if (token.equalsIgnoreCase(me.getKey())) {\n\n keywords.put(me.getKey(), me.getValue() + 1);\n\n }\n }\n }\n\n for (java.util.Map.Entry<String, Integer> me : keywords.entrySet()) {\n\n keyword.set(me.getKey());\n filenameCount.set(filename + \"_\" + me.getValue());\n\n output.collect(keyword, filenameCount);\n }\n }", "abstract public TermDocs termDocs(Term t) throws IOException;", "public HashMap<String, Double> search(String query) {\n // ===================================================\n // 1. Fetch all inverted lists corresponding to terms\n // in the query.\n // ===================================================\n String[] terms = query.split(\" \");\n HashMap<String, Integer> qf = new HashMap<String, Integer>();\n // Calculate term frequencies in the query\n for (String term : terms) {\n if (qf.containsKey(term))\n qf.put(term, qf.get(term) + 1);\n else\n qf.put(term, 1);\n }\n HashMap<String, Double> docScore = new HashMap<String, Double>();\n for (Entry<String, Integer> termEntry : qf.entrySet()) {\n String term = termEntry.getKey();\n int qfi = termEntry.getValue();\n\n // ===================================================\n // 2. Compute BM25 scores for documents in the lists.\n // Make a score list for documents in the inverted\n // lists. Assume that no relevance information is \n // available. For parameters, use k1=1.2, b=0.75, \n // k2=100.\n // ===================================================\n double k1 = 1.2;\n double b = 0.75;\n double k2 = 100;\n int ni = invIndex.get(term).size();\n\n\n for (Entry<String, IndexEntry> invListEntry : invIndex.get(term).entrySet()) {\n String docID = invListEntry.getKey();\n double bm25Score;\n if (docScore.containsKey(docID))\n bm25Score = docScore.get(docID);\n else\n bm25Score = 0;\n\n // length of the document\n int dl = docStat.get(docID);\n // frequency of the term in the document\n int fi = invListEntry.getValue().getTf();\n double K = k1 * ((1 - b) + b * ((double) dl / avdl));\n\n // ===================================================\n // 3. Accumulate scores for each term in a query\n // on the score list.\n // ===================================================\n bm25Score += Math.log((N - ni + 0.5) / (ni + 0.5))\n * (((k1 + 1) * fi * (k2 + 1) * qfi) / ((K + fi) * (k2 + qfi)));\n docScore.put(docID, bm25Score);\n }\n }\n\n return docScore;\n }", "private Map<String, List<Double>> updateWordMapForTotalCountK(\n\t\t\tMap<String, List<Double>> wordMap, double totalWordCountPerDocument) {\n\t\tIterator<Entry<String, List<Double>>> iterator = wordMap.entrySet().iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\t Map.Entry<String, List<Double>> entry = (Map.Entry<String, List<Double>>) iterator.next();\n\t\t\t if(totalWordCountPerDocument> 0.0)\n\t\t\t\t entry.getValue().set(5,entry.getValue().get(0)); //store unnormized version\n\t\t\t\t entry.getValue().set(0,entry.getValue().get(0)/totalWordCountPerDocument); //add all tf for total words\n\t\t\t \t}\n\t\n\t\treturn wordMap;\n\t}", "public static void docWtgArray() {\n int docCount = 0;\n\n while(docCount<totaldocument) {\n List<Double> pass = new ArrayList();\n for(Entry<String,List<Double>> entry : wtgMap.entrySet()) {\n List<Double> docList = new ArrayList();\n docList = entry.getValue();\n double temp = docList.get(docCount);\n pass.add(temp);\n }\n\n double answer = CosineSimilarity(pass,query);\n if(answer >= alpha) {\n DocID.put(docCount,answer);\n }\n docCount++;\n }\n }", "public synchronized static ComputeTermFrequencies createComputeAndPrintTermFrequency() \n\t{\n\t\treturn new ComputeTermFrequencies();\n\t}", "@Override\n public int getIndexByTerm(String term) {\n return 0;\n }", "public double computeIDF(HashMap<String, Integer> termPostings, int documents) {\n // Document frequency is the number of postings\n int df = termPostings.size();\n\n return Math.log(((double) documents) / (df + 1));\n }", "public VSM(String[] docs) {\n\t\tmyDocs = docs;\n\t\ttermList = new ArrayList<String>();\n\t\tdocLists = new ArrayList<ArrayList<Doc>>();\n\t\tArrayList<Doc> docList;\n\t\t// parse the documents to construct the index and collect the raw\n\t\t// frequencies.\n\t\tfor (int i = 0; i < myDocs.length; i++) {\n\t\t\tString[] tokens = myDocs[i].split(\" \");\n\t\t\tString token;\n\t\t\tfor (int j = 0; j < tokens.length; j++) {\n\t\t\t\ttoken = tokens[j];\n\t\t\t\tif (!termList.contains(token)) {\n\t\t\t\t\ttermList.add(token);\n\t\t\t\t\tdocList = new ArrayList<Doc>();\n\t\t\t\t\tDoc doc = new Doc(i, 1); // initial raw frequency is 1\n\t\t\t\t\tdocList.add(doc);\n\t\t\t\t\tdocLists.add(docList);\n\t\t\t\t} else {\n\t\t\t\t\tint index = termList.indexOf(token);\n\t\t\t\t\tdocList = docLists.get(index);\n\t\t\t\t\tint k = 0;\n\t\t\t\t\tboolean match = false;\n\n\t\t\t\t\t// search the postings list for a document id, if match,\n\t\t\t\t\t// insert a new position number to the document id\n\t\t\t\t\tfor (Doc doc : docList) {\n\t\t\t\t\t\tif (doc.docId == i) {\n\t\t\t\t\t\t\tdoc.tw++; // increase word count\n\t\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tk++;\n\t\t\t\t\t}\n\t\t\t\t\t// if no match, add a new document id along with the\n\t\t\t\t\t// position number\n\t\t\t\t\tif (!match) {\n\t\t\t\t\t\tDoc doc = new Doc(i, 1);\n\t\t\t\t\t\tdocList.add(doc);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}//\n\t\t}// end with parsing\n\n\t\t// compute the tf-idf term weights and the doc lengths\n\t\tint N = myDocs.length;\n\t\tdocLength = new double[N];\n\t\tfor (int i = 0; i < termList.size(); i++) {\n\t\t\tdocList = docLists.get(i);\n\t\t\tint df = docList.size();\n\t\t\tDoc doc;\n\t\t\tfor (int j = 0; j < docList.size(); j++) {\n\t\t\t\tdoc = docList.get(j);\n\t\t\t\tdouble tfidf = (1 + Math.log(doc.tw))\n\t\t\t\t\t\t* Math.log(N / (df * 1.0));\n\t\t\t\tdocLength[doc.docId] += Math.pow(tfidf, 2);\n\t\t\t\tdoc.tw = tfidf;\n\t\t\t\tdocList.set(j, doc);\n\t\t\t}\n\t\t}\n\t\t// update the length\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tdocLength[i] = Math.sqrt(docLength[i]);\n\t\t}\n\n\t}", "private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }", "private void normByTopicAndMultiByCount(Vector doc, List<Integer> terms, Matrix perTopicSparseDistributions) {\n for (Integer termIndex : terms) {\n double sum = 0;\n for (int x = 0; x < numTopics; x++) {\n sum += perTopicSparseDistributions.viewRow(x).getQuick(termIndex);\n }\n double count = doc.getQuick(termIndex);\n for (int x = 0; x < numTopics; x++) {\n perTopicSparseDistributions.viewRow(x).setQuick(termIndex,\n perTopicSparseDistributions.viewRow(x).getQuick(termIndex) * count / sum);\n }\n }\n }", "public static void main(String[] args) throws IOException{\n\t\tint termIndex = 1;\n\t\t\n\t\t// startOffset holds the start offset for each term in\n\t\t// the corpus.\n\t\tlong startOffset = 0;\n\t\t\t\n\t\t// unique_terms is true if there are atleast one more\n\t\t// unique term in corpus.\n\t\tboolean unique_terms = true;\n\t\t\n\t\t\n\t\t//load the stopwords from the HDD\n\t\tString stopwords = getStopWords();\n\t\t\n\t\t// allTokenHash contains all the terms and its termid\n\t\tHashMap<String, Integer> allTermHash = new HashMap<String, Integer>();\n\t\t\n\t\t// catalogHash contains the term and its position in\n\t\t// the inverted list present in the HDD.\n\t\tHashMap<Integer, Multimap> catalogHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// finalCatalogHash contains the catalogHash for the invertedIndexHash\n\t\t// present in the HDD.\n\t\tHashMap<Integer, String> finalCatalogHash = new HashMap<Integer, String>();\n\t\t\n\t\t// token1000Hash contains the term and Dblocks for the first 1000\n\t\tHashMap<Integer, Multimap> token1000DocHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// documentHash contains the doclength of all the documents in the corpus\n\t\tHashMap<String, String> documentHash = new HashMap<String, String>();\t\n\t\t\n\t\t// id holds the document id corresponding to the docNumber.\n\t\tint id = 1;\n\t\t\n\t\t// until all unique terms are exhausted\n\t\t// pass through the documents and index the terms.\n\t\t//while(unique_terms){\n\t\t\t\n\t\t\tFile folder = new File(\"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/ap89_collection\");\n\t\t\t//File folder = new File(\"C:/Users/Naveen/Desktop/TestFolder\");\n\t\t\tFile[] listOfFiles = folder.listFiles();\n\t\t\t\n\t\t\t//for each file in the folder \n\t\t\tfor (File file : listOfFiles) {\n\t\t\t if (file.isFile()) {\n\t\t\t \t\n\t\t\t \tString str = file.getPath().replace(\"\\\\\",\"//\");\n\t\t\t \t\n\t\t\t \t\n\t\t\t\t\t//Document doc = new Document();\n\t\t\t //System.out.println(\"\"+str);\n\t\t\t\t\t//variables to keep parse document.\n\t\t\t\t\tint docCount = 0;\n\t\t\t\t\tint docNumber = 0;\n\t\t\t\t\tint endDoc = 0;\n\t\t\t\t\tint textCount = 0;\n\t\t\t\t\tint noText = 0;\n\t\t\t\t\tPath path = Paths.get(str);\n\t\t\t\t\t\n\t\t\t\t\t//Document id and text\n\t\t\t\t\tString docID = null;\n\t\t\t\t\tString docTEXT = null;\n\t\t\t\t\t\n\t\t\t\t\t//Stringbuffer to hold the text of each document\n\t\t\t\t\tStringBuffer text = new StringBuffer();\n\t\t\t\t\t\n\t\t\t\t\tScanner scanner = new Scanner(path);\n\t\t\t\t\twhile(scanner.hasNext()){\n\t\t\t\t\t\tString line = scanner.nextLine();\n\t\t\t\t\t\tif(line.contains(\"<DOC>\")){\n\t\t\t\t\t\t\t++docCount;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"</DOC>\")){\n\t\t\t\t\t\t\t++endDoc;\n\t\t\t\t\t\t\tdocTEXT = text.toString();\n\t\t\t\t\t\t\t//docTEXT = docTEXT.replaceAll(\"[\\\\n]\",\" \");\n\t\t\t\t\t\t\tSystem.out.println(\"ID: \"+id);\n\t\t\t\t\t\t\t//System.out.println(\"TEXT: \"+docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stop words removed\n\t\t\t\t\t\t\tPattern pattern1 = Pattern.compile(\"\\\\b(?:\"+stopwords+\")\\\\b\\\\s*\", Pattern.CASE_INSENSITIVE);\n\t\t\t\t\t\t\tMatcher matcher1 = pattern1.matcher(docTEXT);\n\t\t\t\t\t\t\tdocTEXT = matcher1.replaceAll(\"\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stemming\n\t\t\t\t\t\t\t//docTEXT = stemmer(docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint docLength = 1;\n\t\t\t\t\t\t\t// regex to build the tokens from the document text\n\t\t\t\t\t\t\tPattern pattern = Pattern.compile(\"\\\\w+(\\\\.?\\\\w+)*\");\n\t\t\t\t\t\t\tMatcher matcher = pattern.matcher(docTEXT.toLowerCase());\n\t\t\t\t\t\t\twhile (matcher.find()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (int i = 0; i < matcher.groupCount(); i++) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// alltermHash contains term and term id\n\t\t\t\t\t\t\t\t\t// if term is present in the alltermHash\n\t\t\t\t\t\t\t\t\tif(allTermHash.containsKey(matcher.group(i))){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tint termId = allTermHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//if term is present in the token1000Hash\n\t\t\t\t\t\t\t\t\t\t//then update the dblock of the term.\n\t\t\t\t\t\t\t\t\t\tif(token1000DocHash.containsKey(termId)){\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockUpdate = token1000DocHash.get(termId);\n\t\t\t\t\t\t\t\t\t\t\t//Multimap<Integer, Integer> dBlockUpdate = token1000DocHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\tif(dBlockUpdate.containsKey(id)){\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//if term is not present in the token1000hash\n\t\t\t\t\t\t\t\t\t\t//then add the token with its dBlock\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termId, dBlockInsert);\t\n\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// if the term is not present I will put the term into allTermHash\n\t\t\t\t\t\t\t\t\t// put corresponding value into the token1000DocHash and increment\n\t\t\t\t\t\t\t\t\t// termIndex\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tallTermHash.put(matcher.group(i),termIndex);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termIndex, dBlockInsert);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\ttermIndex++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocLength++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(id%1000 == 0){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// then dump index file to HDD\n\t\t\t\t\t\t\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// update catalog file\n\t\t\t\t\t\t\t\t\t// to populate catalogHash with the offset\n\t\t\t\t\t\t\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\t\t\t\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\t\t\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//clear the token1000DocHash\n\t\t\t\t\t\t\t\t\ttoken1000DocHash.clear();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdocumentHash.put(docID, \"\"+id+\":\"+docLength);\n\t\t\t\t\t\t\tid++;\n\t\t\t\t\t\t\ttext = new StringBuffer();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<DOCNO>\")){\n\t\t\t\t\t\t\t++docNumber;\n\t\t\t\t\t\t\tdocID = line.substring(8, 21);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<TEXT>\")){\n\t\t\t\t\t\t\t++textCount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if((line.contains(\"<DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DOCNO>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FILEID>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FIRST>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<SECOND>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DATELINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</TEXT>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<TEXT>\"))){\n\t\t\t\t\t\t\t ++noText;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(endDoc == docCount - 1){\n\t\t\t\t\t\t\ttext.append(line);\n\t\t\t\t\t\t\ttext.append(\" \");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t \t\n\t\t\t }//end of if - to check if this is a file and parse.\n\t\t\t \n\t\t\t}//end of for loop to load each file\n\t\t\t\n\t\t//}//end of while loop \n\t\t\n\t// write catalogfile to the hdd to check.\n\t\t\t\n\t\t\t// then dump index file to HDD\n\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\n\t\t\t// update catalog file\n\t\t\t// to populate catalogHash with the offset\n\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\twriteInvertedIndex(catalogHash,\"catalogHash\");\n\t\t\tprintHashMapSI(allTermHash);\n\t\t\tprintHashMapSS(documentHash);\n\t\t\t\n\t\t\tlong InvIndstartOffset = 0;\n\t\t\t\n\t\t\t//write it to file\n \n\t\t\t//change the finalcatalogHash to the form termid:startoffset:length\n\t\t\tfor (Integer name: catalogHash.keySet()){\n\t String key = name.toString();\n\t String value = catalogHash.get(name).toString(); \n\t //System.out.println(key + \" \" + value); \n\t String finalTermIndex = genInvertedIndex(key, value);\n\t finalTermIndex = key+\":\"+finalTermIndex;\n\t int indexLength = finalTermIndex.length();\n\t \n\t \n\t PrintWriter writer = new PrintWriter(new BufferedWriter\n\t \t\t(new FileWriter(\"C:/Users/Naveen/Desktop/TestRuns/LastRun/InvertedIndex\", true)));\n\t writer.println(finalTermIndex);\n\t writer.close();\n\t \n\t //update the finalcatalogHash\n\t //Multimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t//catInsert.put(String.valueOf(InvIndstartOffset), String.valueOf(indexLength));\n\t\t\t\tfinalCatalogHash.put(name, String.valueOf(InvIndstartOffset)+\":\"+String.valueOf(indexLength));//entry.getValue());\n\t\t\t\tInvIndstartOffset += indexLength+2;\n\t \n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tprintHashMapIS(finalCatalogHash);\n\t\t\t\n\t}", "public Vector mapDocument(MultiSet<String> bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.iterator();\n String term = null;\n int index = 0;\n int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n tf = bow.getFrequency(term);\n tfIdf = (float) (log2(tf)) * Iidf[index];\n\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "private void getWordCounts() {\n Map<String, List<String>> uniqueWordsInClass = new HashMap<>();\n List<String> uniqueWords = new ArrayList<>();\n\n for (ClassificationClass classificationClass : classificationClasses) {\n uniqueWordsInClass.put(classificationClass.getName(), new ArrayList<>());\n }\n\n for (Document document : documents) {\n String[] terms = document.getContent().split(\" \");\n\n for (String term : terms) {\n if (term.isEmpty()) {\n continue;\n }\n if (!uniqueWords.contains(term)) {\n uniqueWords.add(term);\n }\n\n for (ClassificationClass docClass : document.getClassificationClasses()) {\n if (!uniqueWordsInClass.get(docClass.getName()).contains(term)) {\n uniqueWordsInClass.get(docClass.getName()).add(term);\n }\n if (totalWordsInClass.containsKey(docClass.getName())) {\n this.totalWordsInClass.put(docClass.getName(), this.totalWordsInClass.get(docClass.getName()) + document.getFeatures().get(term));\n } else {\n this.totalWordsInClass.put(docClass.getName(), document.getFeatures().get(term));\n }\n }\n }\n }\n\n this.totalUniqueWords = uniqueWords.size();\n }", "private double countWordFrequencyScore(Page page, String[] queryWords) {\n double score = 0;\n for (String word : queryWords) {\n int wordId = this.pb.getIdForWord(word);\n for (double pageWordId : page.getWords()) {\n if (wordId == pageWordId) score++;\n }\n }\n\n return score;\n }", "public abstract double score(double tf, double docLength);", "public int getIDFScore(String term) { \r\n\t\tif (map.containsKey(term) == false)\r\n\t\t\treturn 0;\r\n\t\treturn map.get(term).size();\r\n\t}", "public abstract Set<String> getTerms(Document doc);", "public void index(Map<Integer, Document> docs) {\r\n this.docs = docs;\r\n\r\n // index\r\n this.index.process(this.docs);\r\n\r\n // tf-idf model\r\n this.tfidf.inject(this.index, this.docs.size());\r\n this.tfidf.process();\r\n }", "private static double cal_IDF(String tarTerm) throws IOException{\n\t\tFile file = new File(documentPath);\n\t\tFile[] files = file.listFiles();\n\t\tint D_count = 0;\n\t\t\n\t\tfor(File f : files){\n\t\t\tString document = readFileToString(f.getAbsolutePath());\n\t\t\tString[] terms = document.split(\",\");\n\t\t\tboolean match = false;\n\t\t\tfor(String term : terms){\n\t\t\t\tif(term.equals(tarTerm)){\n\t\t\t\t\tmatch = true;\n\t\t\t\t\tD_count++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(match) continue;\n\t\t}\n\t\treturn Math.log10((double)files.length/(D_count+1));\n\t}", "static void ReadQuery(String input) throws FileNotFoundException {\n input = input.replaceAll(\"[^A-Za-z]\",\" \");\n String[] arr = input.split(\" \"); // splitting the whole string into words by split on the basis of white spaces\n\n\n for(int i=0; i<arr.length; i++) {\n String termWord = arr[i].toLowerCase();\t//same pre-processing is applied to all the query word\n //termWord = RemoveSpecialCharacter(termWord);\n termWord = removeStopWords(termWord);\n\n if(!termWord.equalsIgnoreCase(\"\")) { // all the white spaces are removed as if not removed then lemmatization wont be successfully done\n\n termWord = Lemmatize(termWord);\n System.out.println(termWord);\n if(dictionary.containsKey(termWord)) {\n List<Integer> wordList = new ArrayList<>();\n wordList = dictionary.get(termWord);\n int queryWordFrequency = wordList.get(totaldocument);\n queryWordFrequency++;\n wordList.set(totaldocument, queryWordFrequency); // all the frequencies of the query words are stored at the 56th index of the List stored in the\n //hashmap associated with its word-terms\n dictionary.put(termWord, wordList);\n }\n else {\n //if any of the enterd query word not present in all the docs so list will have 0.0 value from 0th index to 55th and 56th index is reserver\n // for query word frequency\n List<Integer> wordList = new ArrayList<>();\n for(int j=0; j<totaldocument+1; j++) {\n wordList.add(0);\n }\n wordList.add(1);\n dictionary.put(termWord, wordList); //updating the dictionary hashmap now containing all the query words frequencies\n }\n }\n }\n save();\n }", "public void map(Object key, Text value, Context context\n\t\t ) throws IOException, InterruptedException {\n\n\t\t\t\n\t\t\t\n\t\t\t \n\t\t\t String curr_string=value.toString();\n\t\t\t /// splitting based on \"*\" as a delimiter...\n\t\t\t String [] parts=curr_string.split(\"\\\\*\");\n\t\t\t String curr_key=parts[0];\n\t\t\t // Removing spaces from both left and right part of the string..\n\t\t\t String curr_value=parts[1].trim();\n\t\t\t String [] small_parts=curr_value.split(\",\");\n\t\t\t // Taking the count of unique files which are present in the input given to tfidf\n\t\t\t int no_of_unique_files=Integer.parseInt(small_parts[small_parts.length-1]);\n\t\t\t /// The formula to compute idf is log((1+no_of_files)/no_of_unique_files))....\n\t\t\t Configuration conf=context.getConfiguration();\n\t\t\t String value_count=conf.get(\"test\");\n\t\t\t if(!value_count.isEmpty())\n\t\t\t {\n\t\t\t int total_no_files=Integer.parseInt(value_count);\n\t\t\t double x=(total_no_files/no_of_unique_files);\n\t\t\t // Formula fo rcomputing the idf value....\n\t\t\t double idf_value=Math.log10(1+x);\n\t\t\t for(int i=0;i<small_parts.length-1;i++)\n\t\t\t {\n\t\t\t\t String [] waste=small_parts[i].split(\"=\");\n\t\t\t\t String file_name=waste[0];\n\t\t\t\t // Computing the tfidf on the fly...\n\t\t\t\t double tf_idf=idf_value*Double.parseDouble(waste[1]);\n\t\t\t\t Text word3 = new Text();\n\t\t\t\t Text word4 = new Text();\n\t\t\t\t word3.set(curr_key+\"#####\"+file_name+\",\");\n\t\t\t\t word4.set(tf_idf+\"\");\n\t\t\t\t context.write(word3,word4);\n\t\t\t\t \n\t\t\t }\n\t\t\t //word1.set(curr_key);\n\t\t\t //word2.set(idf_value+\"\");\n\t\t\t //context.write(word1,word2); \n\t\t\t} \n\t\t}", "private double computeSumWeightDocuments(String term, ArrayList<Integer> listDocumentsSameType) {\n double sumWeightDoc = 0.0;\n Iterator iterator = listDocumentsSameType.iterator();\n while (iterator.hasNext()) {\n int indexDocument = (Integer) iterator.next();\n try {\n if (invertedFile.getListTermWeights().get(term).getDocumentWeightCounterInOneTerm().get(indexDocument) != null) {\n counterWeightPair counter = invertedFile.getListTermWeights().get(term).getDocumentWeightCounterInOneTerm().get(indexDocument);\n sumWeightDoc += counter.getWeight();\n }\n } catch (Exception e) {\n\n }\n }\n return sumWeightDoc;\n }", "public void set_graph() throws ParseException, IOException {\n \tg = new WeightedUndirectedGraph(words.length);\n //g = new WeightedUndirectedGraph(most_important_terms.size());\n \n Directory dir = new SimpleFSDirectory(new File(\".\\\\data\\\\lucene_index_r_r\"));\n Analyzer analyzer = new StandardAnalyzer(LUCENE_41);\n \n // creat a map that stores, for each word (in the cluster), a set of all the documents that contain that word\n HashMap<String,HashSet<Integer>> word_to_docs_map = new HashMap<String,HashSet<Integer>>();\n int n_strings = words.length; \n \n // for each word...\n for (int idx = 0; idx < n_strings; idx++) {\n // query the index with that given word and retrieve all the documents that contains that word\n String query = words[idx]; \n QueryParser parser = new QueryParser(Version.LUCENE_41, \"text\", analyzer); \n Query q = parser.parse(query); \n\n IndexReader reader = DirectoryReader.open(dir);\n IndexSearcher searcher = new IndexSearcher(reader);\n TopDocs docs = searcher.search(q, reader.numDocs());\n ScoreDoc[] hits = docs.scoreDocs;\n \n // update map from word to docs it appears in \n //HashSet<Integer> tmp = null;\n // tmp is the set of all the document ids in which the current word is contained\n HashSet<Integer> tmp = new HashSet<>();\n //word_to_docs_map.put(query, tmp);\n \n // for each document, retrieved from the query\n for(Integer i=0;i<hits.length;i++) {\n Integer docId = hits[i].doc;\n // tmp = word_to_docs_map.get(query); \n // if the document is a document written by an user of interest \n if(indices.contains(docId)) {\n tmp.add(docId);\n }\n //word_to_docs_map.put(query, tmp); \n }\n word_to_docs_map.put(query, tmp);\n\t }\n\t \n\t // add edges: iterate over possible term pairs ...\n\t for(int idx_1 = 0; idx_1 < n_strings - 1; idx_1++) {\n\t \n\t for(int idx_2 = idx_1 + 1 ; idx_2 < n_strings ; idx_2 ++ ) {\n\t \n\t // extract document sets associated with the considered terms \n\t HashSet<Integer> set_a = word_to_docs_map.get(words[idx_1]); \n\t HashSet<Integer> set_b = word_to_docs_map.get(words[idx_2]); \n\t \n\t // compute set intersection \n\t int n = intersectionSize(set_a, set_b);\n\t \n\t // if the terms appear in at least one common document\n\t if(n>0) {\n\t // add edge \n\t g.testAndAdd(idx_1, idx_2 , n); \n\t }\n\t } \n\t }\n\t}", "private void countOnePseudoDoc(int docIdx) {\n\t\tFeatureSequence fs = (FeatureSequence)documents.get(docIdx).getData();\n\t\tint[] tokens = fs.getFeatures();\n\t\tdouble[] tmpCounts = new double[numOfTerms];\n\t\tArrays.fill(tmpCounts, 0);\n\t\tfor(int i=0; i<tokens.length; i++) {\n\t\t\tint term = tokens[i];\n\t\t\ttmpCounts[term] += alpha * 1;\n\t\t}\n\t\t\n\t\tPairedInfo pairedDocs = pairs.links.get(docIdx);\n\t\tif(!pairedDocs.isEmpty()) {\n//\t\t\tSystem.out.println(docIdx + \":\" + Arrays.toString(tokens));\n\t\t\tint[] pIds = pairedDocs.getPairedIdsArray();\n//\t\t\tSystem.out.println(docIdx + \": \" + pairedDocs.getLength() + \":\" + Arrays.toString(pIds));\n\t\t\tdouble[] sims = pairedDocs.getPairedSimArray();\n\t\t\tsims = Util.reWeightVector(sims);\n\t\t\tfor(int p=0; p<pIds.length; p++) {\n\t\t\t\tfs = (FeatureSequence)documents.get(p).getData();\n\t\t\t\tint[] pTokens = fs.getFeatures();\n\t\t\t\tfor(int i=0; i<pTokens.length; i++) {\n\t\t\t\t\tint term = pTokens[i];\n\t\t\t\t\ttmpCounts[term] += (1-alpha) * sims[p];\n\t\t\t\t}\n\t\t\t\ttokens = ArrayUtils.append(tokens, fs.getFeatures());\n\t\t\t}\n//\t\t\tSystem.out.println(docIdx + \":\" + Arrays.toString(tokens));\n\t\t}\n\t\t\n\t\tint termNum = MalletTfidf.distinctNumbers(tokens);\n\t\tpseudoTermIndex[docIdx]= new int[termNum];\n\t\tpseudoTf[docIdx] = new double[termNum];\n\t\tint[] tmpTf = new int[termNum];\n\t\tMalletTfidf.countTf(tokens, pseudoTermIndex[docIdx], tmpTf); // count the tf frequency\n\t\tfor(int i=0; i<pseudoTermIndex[docIdx].length; i++) {\n\t\t\tint term = pseudoTermIndex[docIdx][i];\n\t\t\tpseudoTf[docIdx][i] = tmpCounts[term];\n\t\t}\n\t\tpseudoTermWeight[docIdx] = Util.reWeightVector(pseudoTf[docIdx]);\n\t}", "public Vector mapDocument(BOW bow) {\n //logger.info(\"lsm.mapDocument\");\n SparseVector vector = new SparseVector();\n\n Iterator<String> it = bow.termSet().iterator();\n String term = null;\n int index = 0;\n //int tf = 0;\n float tfIdf;\n for (int i = 0; it.hasNext(); i++) {\n //logger.info(i + \" \" + t[i]);\n term = it.next();\n index = termIndex.get(term);\n\n if (index != -1) {\n //tf = bow.getFrequency(term);\n //tfIdf = (float) (log2(tf)) * Iidf[index];\n //tfIdf = (float) bow.augmentedFrequency(term) * Iidf[index];\n tfIdf = (float) bow.tf(term) * Iidf[index];\n //logger.info(term + \" ==> \" + index + \", tf.idf = \" + tf + \"(\" + (log2(tf)) + \") * \" + Iidf[index] + \" = \" + tfIdf);\n vector.add(index, tfIdf);\n\n }\n } // end for\n\n return vector;\n }", "public void setTermFrequency(double termFreq) {\n\t\ttermFrequency = termFreq;\n\t}", "public static void calcuTFIDF() throws IOException {\n\n\t\tHashtable<String, Double> idf = new Hashtable<String, Double>();\n\t\tArrayList<String> terms = new ArrayList<String>();\n\t\tdouble fileCount = 0.0;\n\t\tString featurePath = \"./corpus/features\";\n\t\tString featureWeight = \"./corpus/featureWeight\";\n\t\tString trainPath = \"./corpus/trainData\";\n\t\tString testPath = \"./corpus/testData\";\n\t\tString stopPath = \"./corpus/english.stop\";\n\t\tString trainOutPath = \"./corpus/trainVectors\";\n\t\tString testOutPath = \"./corpus/testVectors\";\n\t\tBufferedReader br = new BufferedReader(new FileReader(featurePath));\n\t\tBufferedWriter featureWriter = new BufferedWriter(new FileWriter(\n\t\t\t\tfeatureWeight));\n\t\tBufferedReader trainReader = new BufferedReader(new FileReader(\n\t\t\t\ttrainPath));\n\t\tBufferedReader testReader = new BufferedReader(new FileReader(testPath));\n\t\tBufferedReader br2 = new BufferedReader(new FileReader(stopPath));\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(trainOutPath));\n\t\tBufferedWriter testWriter = new BufferedWriter(new FileWriter(\n\t\t\t\ttestOutPath));\n\t\tString oneline;\n\t\tArrayList<String> as = new ArrayList<String>();\n\t\twhile ((oneline = br2.readLine()) != null) {\n\t\t\tas.add(oneline);\n\t\t}\n\t\tString[] stopWords = new String[as.size()];\n\t\tas.toArray(stopWords);\n\t\tAnalyzer analyzer = new SnowballAnalyzer(\"English\", stopWords);\n\n\t\twhile ((oneline = br.readLine()) != null) {\n\t\t\tidf.put(oneline, 0.0);\n\t\t\tterms.add(oneline);\n\t\t}\n\n\t\twhile ((oneline = trainReader.readLine()) != null) {\n\n\t\t\tint pos = oneline.indexOf(\"\\t\");\n\t\t\tString topic = oneline.substring(0, pos);\n\t\t\tString content = oneline.substring(pos + 1);\n\t\t\tfileCount++;\n\t\t\tHashtable<String, Integer> termList = new Hashtable<String, Integer>();\n\t\t\tTokenStream stream = analyzer.tokenStream(\"\", new StringReader(\n\t\t\t\t\tcontent));\n\t\t\twhile (true) {\n\t\t\t\tToken token = stream.next();\n\t\t\t\tif (token == null)\n\t\t\t\t\tbreak;\n\t\t\t\tString tmp = token.termText();\n\t\t\t\tif (!termList.containsKey(tmp))\n\t\t\t\t\ttermList.put(tmp, new Integer(1));\n\t\t\t}\n\t\t\tSet<String> keys = termList.keySet();\n\t\t\tfor (String tmp : keys) {\n\t\t\t\tif (idf.containsKey(tmp)) {\n\t\t\t\t\tDouble num = idf.get(tmp);\n\t\t\t\t\tidf.put(tmp, num + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (String term : terms) {\n\n\t\t\tdouble weightOfTerm = Math.log((double) fileCount / idf.get(term)\n\t\t\t\t\t+ 0.01);\n\t\t\tfeatureWriter.write(term + \" \" + weightOfTerm);\n\t\t\tfeatureWriter.newLine();\n\t\t\tidf.put(term, weightOfTerm);\n\n\t\t}\n\t\tfeatureWriter.flush();\n\t\tfeatureWriter.close();\n\n\t\ttrainReader = new BufferedReader(new FileReader(trainPath));\n\t\twhile ((oneline = trainReader.readLine()) != null) {\n\n\t\t\tint pos = oneline.indexOf(\"\\t\");\n\t\t\tString topic = oneline.substring(0, pos);\n\t\t\tString content = oneline.substring(pos + 1);\n\t\t\tHashtable<String, Integer> termFrequent = new Hashtable<String, Integer>();\n\t\t\tTokenStream stream = analyzer.tokenStream(\"\", new StringReader(\n\t\t\t\t\tcontent));\n\t\t\twhile (true) {\n\t\t\t\tToken token = stream.next();\n\t\t\t\tif (token == null)\n\t\t\t\t\tbreak;\n\t\t\t\tString tmp = token.termText();\n\t\t\t\tif (!termFrequent.containsKey(tmp))\n\t\t\t\t\ttermFrequent.put(tmp, new Integer(1));\n\t\t\t\telse {\n\t\t\t\t\tInteger num = termFrequent.get(tmp);\n\t\t\t\t\ttermFrequent.put(tmp, num + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tdouble weights[] = new double[terms.size()];\n\t\t\tdouble denominator = 0.0;\n\t\t\tint i = 0;\n\t\t\tfor (String term : terms) {\n\t\t\t\tdouble count;\n\t\t\t\tif (termFrequent.containsKey(term)) {\n\t\t\t\t\tcount = termFrequent.get(term);\n\t\t\t\t} else {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\n\t\t\t\tdouble tmp = count * idf.get(term);\n\t\t\t\tdenominator += tmp;\n\t\t\t\tweights[i++] = tmp;\n\t\t\t}\n\t\t\tdenominator = Math.sqrt(denominator);\n\t\t\twriter.write(topic);\n\t\t\tfor (int j = 1; j <= weights.length; j++) {\n\t\t\t\tdouble tmp = weights[j - 1];\n\t\t\t\tif (tmp > 0.0) {\n\t\t\t\t\ttmp = Math.sqrt(tmp) / denominator;\n\t\t\t\t\twriter.write(\" \" + j + \":\" + tmp);\n\t\t\t\t}\n\t\t\t}\n\t\t\twriter.newLine();\n\t\t}\n\n\t\twhile ((oneline = testReader.readLine()) != null) {\n\n\t\t\tint pos = oneline.indexOf(\"\\t\");\n\t\t\tString topic = oneline.substring(0, pos);\n\t\t\tString content = oneline.substring(pos + 1);\n\t\t\tHashtable<String, Integer> termFrequent = new Hashtable<String, Integer>();\n\t\t\tTokenStream stream = analyzer.tokenStream(\"\", new StringReader(\n\t\t\t\t\tcontent));\n\t\t\twhile (true) {\n\t\t\t\tToken token = stream.next();\n\t\t\t\tif (token == null)\n\t\t\t\t\tbreak;\n\t\t\t\tString tmp = token.termText();\n\t\t\t\tif (!termFrequent.containsKey(tmp))\n\t\t\t\t\ttermFrequent.put(tmp, new Integer(1));\n\t\t\t\telse {\n\t\t\t\t\tInteger num = termFrequent.get(tmp);\n\t\t\t\t\ttermFrequent.put(tmp, num + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tdouble weights[] = new double[terms.size()];\n\t\t\tdouble denominator = 0.0;\n\t\t\tint i = 0;\n\t\t\tfor (String term : terms) {\n\t\t\t\tdouble count;\n\t\t\t\tif (termFrequent.containsKey(term)) {\n\t\t\t\t\tcount = termFrequent.get(term);\n\t\t\t\t} else {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t\tdouble tmp = count * idf.get(term);\n\t\t\t\tdenominator += tmp;\n\t\t\t\tweights[i++] = tmp;\n\t\t\t}\n\t\t\tdenominator = Math.sqrt(denominator);\n\t\t\ttestWriter.write(topic);\n\t\t\tfor (int j = 1; j <= weights.length; j++) {\n\t\t\t\tdouble tmp = weights[j - 1];\n\t\t\t\tif (tmp > 0.0) {\n\t\t\t\t\ttmp = Math.sqrt(tmp) / denominator;\n\t\t\t\t\ttestWriter.write(\" \" + j + \":\" + tmp);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttestWriter.newLine();\n\t\t}\n\t\twriter.close();\n\t\ttestWriter.close();\n\t}", "public Set<String> calculateDistance() throws IOException {\n booleanSearch();\n\n Set<String> words = invertedIndexForQuerryWords.keySet();\n Map<String, Double> tfidfQuerry = new TreeMap<>();\n\n //load idf\n char c='a';\n char prC = 'v';\n for (String word : words){\n c = word.charAt(0);\n if(c != prC) {\n String path = Constants.PATH_TO_IDF + c + \"IDF.idf\";\n prC = c;\n idfMap.putAll(objectMapper.readValue(new File(path), new TypeReference<TreeMap<String, Double>>(){}));\n }\n }\n\n Map<String, Double> distanceMap = new HashMap<>();\n double sum = 0.0;\n //calculez norma interogarii\n for(String word:words){\n double idf, tf;\n if(idfMap.containsKey(word)) {\n idf = idfMap.get(word);\n tf = 1.0 / words.size();\n tfidfQuerry.put(word, tf * idf);\n\n sum += (tf * idf) * (tf * idf);\n } else {\n sum += 0.0;\n }\n }\n\n double normQuerry = Math.sqrt(sum);\n\n //iau toate documentele rezultate din boolean search\n Set<String> docs = new TreeSet<>();\n for(List<MyPair> list : invertedIndexForQuerryWords.values()) {\n if (list != null) {\n docs.addAll(list.stream().map(p -> p.getKey()).collect(Collectors.toSet()));\n }\n }\n\n List<File> documents = FileLoader.getFilesForInternalPath(\"Norms\", \".norm\");\n\n Map<String, Double> norms = new HashMap<>();\n for(File file : documents) {\n norms.putAll(objectMapper.readValue(file, new TypeReference<TreeMap<String, Double>>(){}));\n }\n\n //pentru fiecare document din boolean search calculez distanta cosinus\n for(String doc : docs) {\n\n String fileName = Paths.get(doc).getFileName().toString();\n\n String filePath = Constants.PATH_TO_TF + fileName.replaceFirst(\"[.][^.]+$\", \".tf\");\n\n Map<String, Double> tf = objectMapper.readValue(new File(filePath), new TypeReference<TreeMap<String, Double>>(){});\n double wordTF, wordIDF;\n double vectorialProduct = 0.0;\n double tfidfForQueryWord;\n\n for(String word : words) {\n if (tf.containsKey(word)) {\n wordTF = tf.get(word);\n wordIDF = idfMap.get(word);\n tfidfForQueryWord = tfidfQuerry.get(word);\n\n vectorialProduct += tfidfForQueryWord * wordIDF * wordTF;\n }\n }\n\n double normProduct = normQuerry * norms.get(Paths.get(doc).getFileName().toString());\n\n distanceMap.put(doc, vectorialProduct / normProduct);\n }\n\n //sortare distance map\n distanceMap = distanceMap.entrySet().stream()\n .sorted(Map.Entry.comparingByValue(Collections.reverseOrder()))\n .collect(Collectors.toMap(\n Map.Entry::getKey,\n Map.Entry::getValue,\n (e1, e2) -> e1,\n LinkedHashMap::new));\n\n// System.out.println(\"Cos distance:\");\n// for(Map.Entry entry : distanceMap.entrySet()){\n// System.out.println(entry);\n// }\n\n return distanceMap.keySet();\n }", "protected void countTerms(TermedDocument termedDocument,\n\t\t\tEntityStatistics entityStatistics) {\n\t\tentityStatistics.countLabels += termedDocument.getLabels().size();\n\t\t// for (MonolingualTextValue mtv : termedDocument.getLabels().values())\n\t\t// {\n\t\t// countKey(usageStatistics.labelCounts, mtv.getLanguageCode(), 1);\n\t\t// }\n\n\t\tentityStatistics.countDescriptions += termedDocument.getDescriptions()\n\t\t\t\t.size();\n\t\t// for (MonolingualTextValue mtv : termedDocument.getDescriptions()\n\t\t// .values()) {\n\t\t// countKey(usageStatistics.descriptionCounts, mtv.getLanguageCode(),\n\t\t// 1);\n\t\t// }\n\n\t\tfor (String languageKey : termedDocument.getAliases().keySet()) {\n\t\t\tint count = termedDocument.getAliases().get(languageKey).size();\n\t\t\tentityStatistics.countAliases += count;\n\t\t\t// countKey(usageStatistics.aliasCounts, languageKey, count);\n\t\t}\n\t}", "private void fillTermsDF(SortedMap<String, String[]> finalDictionary){\n termsDF = new HashMap<>();\n ArrayList<String> terms = new ArrayList<>(finalDictionary.keySet());\n\n for(String term : terms){\n termsDF.put(term,finalDictionary.get(term)[1]);\n }\n }", "private synchronized ArrayList<int[]> getListaDocFreq(DirectoryReader reader, String campo, String termo) throws IOException{\r\n\t\tArrayList<int[]> lista = new ArrayList<int[]>();\r\n\t DocsEnum docsEnum = MultiFields.getTermDocsEnum(reader, MultiFields.getLiveDocs(reader), campo, new BytesRef(termo));\r\n\t if(docsEnum != null){\r\n\t \twhile(docsEnum.nextDoc() != DocsEnum.NO_MORE_DOCS) {\r\n\t \t\tlista.add(new int[]{docsEnum.docID(), docsEnum.freq()});\r\n\t \t}\r\n\t }\r\n\t return lista;\r\n\t}", "public static String tfidf(String str) throws Exception{\n\t\tIndexReader r = IndexReader.open(FSDirectory.open(new File(\"index\")));\r\n\r\n\t\t// this code takes care of calculating idf for each term\r\n\r\n\t\tHashMap<String, Double> idf_map = new HashMap<String, Double>();\r\n\t\tTermEnum t = r.terms();\r\n\t\tdouble docs_count = r.maxDoc();\r\n\t\twhile (t.next()) {\r\n\t\t\tTerm te = new Term(\"contents\", t.term().text());\r\n\t\t\tdouble idf = Math.log(docs_count / r.docFreq(te));\r\n\t\t\tidf_map.put(t.term().text(), idf);\r\n\t\t}\r\n\r\n\t\t// This code is a test stub to get the term with lowest IDF value\r\n\r\n\t\t/*\r\n\t\t * double minVal = Collections.min(idf_map.values()); for(Entry<String,\r\n\t\t * Double> entry:idf_map.entrySet()){ if(entry.getValue() == minVal){\r\n\t\t * System.out.println(\"Term with lowest idf is: \"+entry.getKey()); } }\r\n\t\t */\r\n\r\n\t\tlong t1, t2;\r\n\t\tlong start = System.currentTimeMillis();\r\n\r\n\t\t// code to get |d| for every document\r\n\r\n\t\tHashMap<Integer, HashMap<String, Integer>> hmap = new HashMap<Integer, HashMap<String, Integer>>();\r\n\t\tTermEnum trm = r.terms();\r\n\t\twhile (trm.next()) {\r\n\t\t\tTerm te1 = new Term(\"contents\", trm.term().text());\r\n\t\t\tTermDocs td1 = r.termDocs(te1);\r\n\r\n\t\t\twhile (td1.next()) {\r\n\t\t\t\tHashMap<String, Integer> a1 = hmap.get(td1.doc());\r\n\t\t\t\tif (a1 == null) {\r\n\t\t\t\t\ta1 = new HashMap<String, Integer>();\r\n\t\t\t\t\ta1.put(trm.term().text(), td1.freq());\r\n\t\t\t\t\thmap.put(td1.doc(), a1);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta1.put(trm.term().text(), td1.freq());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// compute magnitude of each document vector and store it in array\r\n\r\n\t\tArrayList<Double> doc_magnitude = new ArrayList<Double>();\r\n\t\tHashMap<String, Integer> val = new HashMap<String, Integer>();\r\n\t\tSet<Entry<Integer, HashMap<String, Integer>>> entrySet = hmap.entrySet();\r\n\r\n\t\tjava.util.Iterator<Entry<Integer, HashMap<String, Integer>>> it = entrySet.iterator();\r\n\t\twhile (it.hasNext()) { // foreach document id\r\n\t\t\tdouble square_sum = 0.0;\r\n\t\t\tMap.Entry<Integer, HashMap<String, Integer>> me = (Entry<Integer, HashMap<String, Integer>>) it.next();\r\n\t\t\tval = me.getValue();\r\n\t\t\tSet<Map.Entry<String, Integer>> entry = val.entrySet();\r\n\t\t\tjava.util.Iterator<Map.Entry<String, Integer>> iterator = entry.iterator();\r\n\t\t\twhile (iterator.hasNext()) { // foreach term\r\n\t\t\t\tMap.Entry<String, Integer> mp = iterator.next();\r\n\t\t\t\tsquare_sum += mp.getValue() * mp.getValue();\r\n\t\t\t}\r\n\t\t\tdouble root = Math.sqrt(square_sum);\r\n\t\t\tdoc_magnitude.add(me.getKey(), root);\r\n\t\t}\r\n\r\n\t\t// long end = System.currentTimeMillis();\r\n\t\t// double diff = end - start;\r\n\t\t// System.out.println(\"Time taken to compute norms(in seconds): \" + diff\r\n\t\t// / 1000 + \"\\n\");\r\n\r\n\t\t// get the query and find similarity with the documents\r\n\t\tHashMap<Integer, Double> similarity_map = new HashMap<Integer, Double>();\r\n\t\tSet<Entry<Integer, HashMap<String, Integer>>> entrySet1 = hmap.entrySet();\r\n\t\tjava.util.Iterator<Entry<Integer, HashMap<String, Integer>>> it1 = entrySet1.iterator();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tHashMap<Integer, Double> dot_product_map = new HashMap<Integer, Double>();\r\n\r\n\t\t\r\n\t\t\tdot_product_map.clear();\r\n\t\t\tsimilarity_map.clear();\r\n\r\n\t\t\tString[] terms = str.split(\"\\\\s+\");\r\n\t\t\tint cnt = 0;\r\n\r\n\t\t\tlong result_st = System.currentTimeMillis();\r\n\t\t\tt1 = System.nanoTime();\r\n\r\n\t\t\t// for each term get the documents containing the corresponding term\r\n\t\t\tfor (String word : terms) // foreach term in query\r\n\t\t\t{\r\n\t\t\t\tTerm te = new Term(\"contents\", word);\r\n\t\t\t\tTermDocs tdocs = r.termDocs(te);\r\n\t\t\t\twhile (tdocs.next() /* && tdocs.doc() < number */) {\r\n\t\t\t\t\t// Map.Entry<Integer, HashMap<String, Integer>> me =\r\n\t\t\t\t\t// (Entry<Integer, HashMap<String, Integer>>) it1.next();\r\n\t\t\t\t\tdouble freq = hmap.get(tdocs.doc()).get(word);\r\n\t\t\t\t\tDouble temp = dot_product_map.get(tdocs.doc());\r\n\t\t\t\t\tif (temp == null) {\r\n\t\t\t\t\t\tdot_product_map.put(tdocs.doc(), freq * idf_map.get(word));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tdot_product_map.put(tdocs.doc(), dot_product_map.get(tdocs.doc()) + freq * idf_map.get(word));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcnt++;\r\n\t\t\t}\r\n\t\t\tSet<Entry<Integer, Double>> se = dot_product_map.entrySet();\r\n\t\t\tjava.util.Iterator<Entry<Integer, Double>> iter = se.iterator();\r\n\t\t\twhile (iter.hasNext()) {\r\n\t\t\t\tMap.Entry<Integer, Double> me = (Entry<Integer, Double>) iter.next();\r\n\t\t\t\tsimilarity_map.put(me.getKey(), me.getValue() / (Math.sqrt(cnt) * doc_magnitude.get(me.getKey())));\r\n\t\t\t}\r\n\r\n\t\t\t// Normalize the map\r\n\t\t\tdouble sum = 0;\r\n\t\t\tfor (int i : similarity_map.keySet()) {\r\n\t\t\t\tsum += similarity_map.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tfor (int i : similarity_map.keySet()) {\r\n\t\t\t\tdouble temp = similarity_map.get(i) / sum;\r\n\t\t\t\tsimilarity_map.put(i, temp);\r\n\t\t\t}\r\n\r\n\t\t\tString result=\"\";\r\n\r\n\t\t\tList<Integer> l1 = new ArrayList<Integer>();\r\n\t\t\tHashMap<Integer, Double> sim_map = sortMap(similarity_map, r);\r\n\t\t\tfor(Integer i:sim_map.keySet()){\r\n\t\t\t\tl1.add(i);\r\n\t\t\t\tDocument d1 = r.document(i);\r\n\t\t\t\tString url = d1.getFieldable(\"path\").stringValue();\r\n\t\t\t\t//String snippet = getSnippet(hmap.get(i));\r\n\t\t\t\turl = url.replace(\"%%\", \"/\");\r\n\t\t\t\tString snippet = Snippet.getContent(url,terms[0]); //read the content of url\r\n\t\t\t\tresult +=/*i+\" \"+*/url+\"\\n\";\r\n\t\t\t\tresult +=snippet+\"\\n\\n\\n\";\r\n\t\t\t\t//result += snippet+\"\\n\\n\";\r\n\t\t\t}\r\n\t\t\treturn result;\r\n\t\t\t\r\n}", "@Test\n public void test1() throws IOException {\n FileSystem fs = FileSystem.getLocal(new Configuration());\n Path termsFilePath = new Path(\"etc/trec-index-terms.dat\");\n Path termIDsFilePath = new Path(\"etc/trec-index-termids.dat\");\n Path idToTermFilePath = new Path(\"etc/trec-index-termid-mapping.dat\");\n\n DefaultFrequencySortedDictionary dictionary =\n new DefaultFrequencySortedDictionary(termsFilePath, termIDsFilePath, idToTermFilePath, fs);\n\n assertEquals(312232, dictionary.size());\n assertEquals(\"page\", dictionary.getTerm(1));\n assertEquals(\"time\", dictionary.getTerm(2));\n assertEquals(\"will\", dictionary.getTerm(3));\n assertEquals(\"year\", dictionary.getTerm(4));\n assertEquals(\"nikaan\", dictionary.getTerm(100000));\n\n assertEquals(1, dictionary.getId(\"page\"));\n assertEquals(2, dictionary.getId(\"time\"));\n assertEquals(3, dictionary.getId(\"will\"));\n assertEquals(4, dictionary.getId(\"year\"));\n assertEquals(100000, dictionary.getId(\"nikaan\"));\n \n assertEquals(null, dictionary.getTerm(312233));\n\n Iterator<String> iter = dictionary.iterator();\n assertTrue(iter.hasNext());\n assertEquals(\"page\", iter.next());\n assertTrue(iter.hasNext());\n assertEquals(\"time\", iter.next());\n assertTrue(iter.hasNext());\n assertEquals(\"will\", iter.next());\n assertTrue(iter.hasNext());\n assertEquals(\"year\", iter.next());\n assertTrue(iter.hasNext());\n\n int cnt = 0;\n for (@SuppressWarnings(\"unused\") String s : dictionary) {\n cnt++;\n }\n assertEquals(dictionary.size(), cnt);\n\n cnt = 0;\n iter = dictionary.iterator();\n while(iter.hasNext()) {\n cnt++;\n iter.next();\n }\n assertEquals(dictionary.size(), cnt);\n }", "public void readCorpusStats(IndexReader indexReader, String fieldName, String term) throws IOException\n\t{\n\t\tint N = indexReader.numDocs(); // the total number of documents in the index\n\t\tint n = indexReader.docFreq(new Term(fieldName, term)); // get the document frequency of the term in the \"text\" field\n\t\tdouble idf = Math.log((N + 1.0) / (n + 1.0)); // well, we normalize N and n by adding 1 to avoid n = 0\n\n\t\tSystem.out.printf(\"%-30sN=%-10dn=%-10dIDF=%-8.2f\\n\", term, N, n, idf);\n\n\t\tlong corpusTF = indexReader.totalTermFreq(new Term(fieldName, term)); // get the total frequency of the term in the \"text\" field\n\t\tlong corpusLength = indexReader.getSumTotalTermFreq(fieldName); // get the total length of the \"text\" field\n\t\tdouble pwc = 1.0 * corpusTF / corpusLength;\n\n\t\tSystem.out.printf(\"%-30slen(corpus)=%-10dfreq(%s)=%-10dP(%s|corpus)=%-10.6f\\n\", term, corpusLength, term, corpusTF, term, pwc);\n\t}", "public abstract double score(double tf, double docLength, double precomp);", "private double getTermOccurrence(String term, ClassificationClass classificationClass) {\n int termOccurrence = 0;\n\n for (Document document : documents) {\n if (document.getClassificationClasses().contains(classificationClass)) {\n if (document.getFeatures().containsKey(term)) {\n termOccurrence += document.getFeatures().get(term);\n }\n }\n }\n\n return termOccurrence;\n }", "private Float weightTermUniqeness(String term) throws IOException{\n\t\tFloat result = null;\n\t\t\n\t\tLong docCnt\t\t= this.elasticClient.getDocCount();\n\t\tLong termDocCnt = this.elasticClient.getDocCount(term);\n\t\t\n\t\tresult = ((Long)(docCnt / termDocCnt)).floatValue();\n\t\t\n\t\treturn result;\n\t}", "public void buildWordFileMap(){\n hashWords.clear();\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()){ //for all the files selected make the hashWords hashmap\n addWordsFromFile(f);\n }\n \n }", "int getFreq();", "@Override\n\t\tprotected void map(Text key, Text value, Context context)throws IOException, InterruptedException {\n\t\t\tString val = value.toString();\n\t\t\t//String word = line.split(\",\")[0];\n\t\t\t//String docname = line.split(\",\")[1];\n\t\t\tdouble n = Double.parseDouble(val.split(\",\")[0]);\n\t\t\tdouble max = Double.parseDouble(val.split(\",\")[1]);\n\t\t\tdouble N = Double.parseDouble(val.split(\",\")[2]);\n\t\t\tdouble m = Double.parseDouble(val.split(\",\")[3]);\n\t\t\t//System.out.println(\"n is:\"+n+\"max is:\"+max+\" N is:\"+N+\" m is:\"+m+\" D is:\"+D);\n\t\t\tdouble tf = n/max;\n\t\t\t//System.out.println(\"TF is:\"+tf);\n\t\t\t//String TF = \"tf: \"+tf;\n\t\t\tdouble idf = (Math.log(D/m)/Math.log(2));\n\t\t\tdouble tfidf = tf*idf;\n\t\t\t//System.out.println(\"IDF is:\"+idf);\n\t\t\t//String IDF = \"idf: \"+idf;\n\t\t\tString word = key.toString().split(\",\")[0];\n\t\t\tString article = key.toString().split(\",\")[1];\n\t\t\tString new_val = word+\",\"+tf+\",\"+idf+\",\"+tfidf;\n\t\t\tcontext.write(new Text(article),new Text(new_val));\n\t\t}", "public float computeTermScore(int term, int dl, int tf, GlobalStats stats);", "public static String calculate(String path) throws IOException {\n initialize();\n double spam = 0.0;\n double ham = 0.0;\n int spamCount = 0;\n int hamCount = 0;\n\n Get g1 = new Get(\"spam\".getBytes());\n Result r = wordFreTable.get(g1);\n spam += Math.log(bytes2Double(r.getValue(\"spam\".getBytes())));\n Get g2 = new Get(\"ham\".getBytes());\n r = wordFreTable.get(g2);\n ham += Math.log(bytes2Double(result.getValue(\"ham\".getBytes())));\n\n BufferedWriter writer = new BufferedWriter(new FileWriter(path));\n writer.write(\"doc_id,class_id\");\n\n for (int i = 0; i < Document.size(); i++) {\n String[] doc = Document.get(i).split(\"\\t| \");\n for (String word : doc) {\n Get get = new Get(word.getBytes());\n if (!get.isCheckExistenceOnly()) {\n Result result = wordFreTable.get(get);\n for (Cell cell : result.rawCells()) {\n String colName = Bytes.toString(cell.getQualifierArray(), cell.getQualifierOffset(), cell.getQualifierLength());\n String value = Bytes.toString(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength());\n if (colName.equals(\"spam\")) {\n spam += Math.log(Double.valueOf(value));\n } else if (colName.equals(\"ham\")) {\n ham += Math.log(Double.valueOf(value));\n }\n }\n } else {\n //word not exist\n get = new Get(\"SpamSpam\".getBytes());\n Result result = wordFreTable.get(get);\n spam += Math.log(bytes2Double(result.getValue(\"spam\".getBytes())));\n get = new Get(\"HamHam\".getBytes());\n result = wordFreTable.get(get);\n ham += Math.log(bytes2Double(result.getValue(\"ham\".getBytes())));\n }\n }\n if (spam > ham) {\n writer.write(i + \"1\");\n spamCount++;\n } else {\n writer.write(i + \"0\");\n hamCount++;\n }\n }\n writer.close();\n return spamCount * 1.0 / Document.size() + \", \" + hamCount * 1.0 / Document.size();\n }", "public void read(String filename) throws IOException {\n // open the file\n BufferedReader r = new BufferedReader(new FileReader(filename));\n\n // load the number of terms\n int size = Integer.parseInt(r.readLine());\n\n // must divide by load factor (0.75) to not need to rehash\n index = new HashMap((int) (size / .75) + 1);\n\n // temporary variables\n String line;\n StringTokenizer tokens;\n String word;\n HashMap docList;\n String docid;\n int[] fArray;\n int lineNumber = 1;\n\n // while there are more lines in the document\n while ((line = r.readLine()) != null) {\n // increment the line number\n lineNumber++;\n\n // the word is the only thing on the line\n word = line;\n\n // load all documents containign this term\n docList = new HashMap();\n index.put(word, docList);\n\n line = r.readLine();\n while (line != null && !line.equals(\"\")) {\n fArray = new int[1];\n\n docid = line;\n fArray[0] = Integer.parseInt(r.readLine());\n\n docList.put(docid, fArray);\n line = r.readLine();\n }\n }\n\n // close the file\n r.close();\n }", "public HashMap<String, Double> GetTokenRFScore(Query aQuery, int TopK) throws Exception {\r\n\t\t// Store <token, score> for being returned\r\n\t\tHashMap<String, Double> TokenRFScore = new HashMap<>();\r\n\t\t\r\n\t\t// Get tokens in the given query\r\n\t String[] tokens = aQuery.getQueryContent().split(\" \");\r\n\t \r\n\t // Get feedback docs by the given query using feedback retrieval model\r\n\t List<Classes.Document> feedbackDocs = new QueryRetrievalModel().retrieveQuery(aQuery, TopK);\r\n\r\n\t // Initiate qeuryResult map <docid, <term, tf>> and termFreq map <term, cf>\r\n\t queryResult = new HashMap<>();\r\n\t termFreq = new HashMap<>();\r\n\r\n\t // Search each token appearing in the given query \r\n\t for(String token : tokens) {\r\n\t \t// Determine whether the current token exists in collection \r\n\t \tlong cf = myireader.CollectionFreq(token);\r\n\t \ttermFreq.put(token, cf);\r\n\t \tif(cf == 0) {\r\n\t \t\tcontinue; \r\n\t \t}\r\n\t \r\n\t \tint[][] postingList = myireader.getPostingList(token);\r\n\t \tfor(int[] posting : postingList) {\r\n\t \t\tif(!queryResult.containsKey(posting[0])) { // posting[0]: docid\r\n\t \t\t\tHashMap<String, Integer> tfMap = new HashMap<>();\r\n\t \t\t\ttfMap.put(token, posting[1]); // posting[1]: tf\r\n\t \t\t\tqueryResult.put(posting[0], tfMap);\r\n\t \t\t} else {\r\n\t \t\t\tqueryResult.get(posting[0]).put(token, posting[1]);\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t /*\r\n\t\t * After the for loop, we have the map <docid, <term, term_freq>> for each doc to all terms in the query\r\n\t\t * tokens = [Hong, Kong, economics, Singapore]\r\n\t\t * \r\n\t\t * queryResult : <docid, <term, term_freq>>\r\n\t\t * 1, hong, 15\r\n\t\t * Singapore, 3\r\n\t\t * 3, Singapore, 1\r\n\t\t * kong, 10\r\n\t\t * economics, 30\r\n\t\t * ..., ...\r\n\t\t */\t\r\n\r\n\t // Here all feedback docs are treated as one big pseudo document!!!!!!\r\n\t int len = 0;\r\n\t // Store <term, tf>\r\n\t Map<String, Integer> pseudoDoc = new HashMap<>();\r\n\t for(Classes.Document doc : feedbackDocs) {\r\n\t \tqueryResult.get(Integer.parseInt(doc.getLuceneID())).forEach((term, tf) -> { // Iterate each tfMap\r\n\t \t\tif(!pseudoDoc.containsKey(term)) {\r\n\t \t\t\tpseudoDoc.put(term, tf);\r\n\t \t\t} else {\r\n\t \t\t\tpseudoDoc.put(term, tf + pseudoDoc.get(term));\r\n\t \t\t}\r\n\t \t});\r\n\t \t\r\n\t \t// Accumulate by the current doc's length\r\n\t \tlen += myireader.docLength(Integer.parseInt(doc.getLuceneID()));\r\n\t }\r\n\t \r\n\t /**\r\n\t\t * Dirichlet Prior Smoothing:\r\n\t\t * p(w|D) = (|D|/(|D|+MU))*(c(w,D)/|D|) + (MU/(|D|+MU))*p(w|REF)\r\n\t * score = λ*p_doc + (1-λ)*p_ref\r\n\t * = c1*p_doc + c2*p_ref\r\n\t\t */\r\n\t int pseudoLen = len;\r\n\t double c1 = pseudoLen / (pseudoLen + MU);\r\n\t double c2 = MU / (pseudoLen + MU);\r\n\t // Calculate the probability of pseudoDoc generating each term\r\n\t pseudoDoc.forEach((token, tf) -> {\r\n\t \tlong cf = termFreq.get(token);\r\n\t \tdouble pDoc = (double) tf / pseudoLen; // p(w|D)\r\n\t \tdouble pRef = (double) cf / CORPUS_SIZE; // p(w|REF)\r\n\t \tdouble score = c1 * pDoc + c2 * pRef;\r\n\t \t\r\n\t \t// Get the RF probability of each token \r\n\t \tTokenRFScore.put(token, score); \r\n\t });\r\n\r\n\t\treturn TokenRFScore;\r\n\t}", "@Override\n public void postInserts() \n {\n for(IndexObject i: myIndex.values())\n {\n i.tfidf(documentData);\n }\n }", "@Override\n public void init(SearchHits hits) { \n\n \tint numFbDocs = 50;\n \tint numFbTerms = 20;\n \tdouble lambda = 1.0;\n \tdouble alpha = 5.0;\n \t\n if (paramTable.get(FB_DOCS) != null ) \n \tnumFbDocs = paramTable.get(FB_DOCS).intValue();\n if (paramTable.get(FB_TERMS) != null ) \n \tnumFbTerms = paramTable.get(FB_TERMS).intValue();\n if (paramTable.get(LAMBDA) != null ) \n \tlambda = paramTable.get(LAMBDA).doubleValue();\n if (paramTable.get(ALPHA) != null ) \n \talpha = paramTable.get(ALPHA).doubleValue(); \n \n if (hits.size() < numFbDocs) \n \tnumFbDocs = hits.size();\n \n SearchHits fbDocs = new SearchHits(hits.hits().subList(0, numFbDocs));\n FeedbackRelevanceModel rm = new FeedbackRelevanceModel();\n rm.setDocCount(numFbDocs);\n rm.setTermCount(numFbTerms);\n rm.setIndex(index);\n rm.setStopper(null);\n rm.setRes(fbDocs);\n rm.build(); \n \n FeatureVector rmVector = rm.asFeatureVector();\n rmVector.clip(numFbTerms);\n rmVector.normalize();\n \n TermTimeSeries ts = new TermTimeSeries(startTime, endTime, interval, \n \t\trm.asFeatureVector().getFeatures());\n \n for (SearchHit hit: hits.hits()) {\n \t\tlong docTime = TemporalScorer.getTime(hit);\n \t\tdouble score = hit.getScore();\n \t\tts.addDocument(docTime, score, hit.getFeatureVector());\n }\n \n RUtil rutil = new RUtil();\n \n double sdps =0;\n for (String term: rmVector.getFeatures()) {\n \tdouble[] tsw = ts.getTermFrequencies(term);\n \tif (sum(tsw) > 0) {\n \t\ttry {\n \t\t\tsdps += rutil.dps(tsw);\n \t\t} catch (Exception e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n } \n \n FeatureVector tsfv = new FeatureVector(null);\n for (String term: rmVector.getFeatures()) {\n \tdouble[] termts = ts.getTermFrequencies(term);\n \ttry {\n \t\tdouble dps = rutil.dps(termts)/sdps;\n \t\t\n \tdouble weight = Math.pow(dps, alpha) * Math.pow(rmVector.getFeatureWeight(term), (1-alpha));\n tsfv.addTerm(term, weight);\n \n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n }\n tsfv.normalize();\n\n gQuery.getFeatureVector().normalize();\n FeatureVector fv =\n \t\tFeatureVector.interpolate(gQuery.getFeatureVector(), tsfv, lambda);\n gQuery.setFeatureVector(fv);\n \n System.out.println(rmVector.toString(10));\n System.out.println(tsfv.toString(10));\n System.out.println(fv.toString(10));\n rutil.close();\n \n }", "java.lang.String getFrequency();", "public Map<Float, Float> lookupTermPosition(LeafReader reader, int doc, BytesRef term)\n throws IOException {\n final PostingsEnum posting =\n reader.postings(new Term(this.privateField, term), PostingsEnum.POSITIONS);\n final Map<Float, Float> positions = new HashMap<Float, Float>();\n if (posting != null) {\n // move to the document currently looking at\n posting.advance(doc);\n // get a dictionary of the each potential formula to match to and total number of matches\n int count = 0;\n while (count < posting.freq()) {\n final Float position = new Float(posting.nextPosition());\n final Float freq = positions.get(position);\n if (freq == null) {\n positions.put(position, new Float(1));\n } else {\n positions.put(position, freq + new Float(1));\n }\n count += 1;\n }\n }\n return positions;\n }", "private void readDocQueriesRelevance(){\n File f = new File(\"cranfield.query.relevance.txt\");\n if(f.exists() && !f.isDirectory()){\n try {\n FileReader fileReader=null;\n try {\n fileReader = new FileReader(f);\n } catch (FileNotFoundException ex) {\n Logger.getLogger(EvaluationQueries.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line;\n String[] querieDocRel;\n List<QuerieDocRelevance> tempQueriesRelevance;\n while ((line = bufferedReader.readLine()) != null) {\n querieDocRel = line.split(\"\\\\s+\");\n int querieNumber = Integer.parseInt(querieDocRel[0]);\n if(queriesRelevanceMap.containsKey(querieNumber)){\n tempQueriesRelevance = queriesRelevanceMap.get(querieNumber);\n tempQueriesRelevance.add(new QuerieDocRelevance(Integer.parseInt(querieDocRel[1]),Integer.parseInt(querieDocRel[2])));\n queriesRelevanceMap.put(querieNumber,tempQueriesRelevance);\n \n }else{\n tempQueriesRelevance = new ArrayList<>();\n tempQueriesRelevance.add(new QuerieDocRelevance(Integer.parseInt(querieDocRel[1]),Integer.parseInt(querieDocRel[2])));\n queriesRelevanceMap.put(querieNumber,tempQueriesRelevance); \n }\n \n }\n \n } catch (IOException ex) {\n Logger.getLogger(EvaluationQueries.class.getName()).log(Level.SEVERE, null, ex);\n } \n } \n \n }", "public void analyzeDocument(String text) {\n\t\tString[] tokens = m_tokenizer.tokenize(text.toLowerCase());\n\t\tfor (int j = 0; j < tokens.length; j++)\n\t\t\ttokens[j] = SnowballStemmingDemo(NormalizationDemo(tokens[j]));\n\t\tHashMap<String, Integer> document_tf = new HashMap<String, Integer>();\n\t\tfor (String token : tokens) {\n\t\t\tif (!document_tf.containsKey(token))\n\t\t\t\tdocument_tf.put(token, 1);\n\t\t\telse\n\t\t\t\tdocument_tf.put(token, document_tf.get(token) + 1);\n\t\t\tif (!df.containsKey(token))\n\t\t\t\tdf.put(token, 1);\n\t\t\telse\n\t\t\t\tdf.put(token, df.get(token) + 1);\n\t\t}\n\t\ttf.add(document_tf);\n\t\t/*\n\t\t * for(String token : document_tf.keySet()) { if(!df.containsKey(token))\n\t\t * df.put(token, 1); else df.put(token, df.get(token) + 1); if(!) }\n\t\t */\n\t\tm_reviews.add(text);\n\t}", "private static int df(TLongLongMap docs, Map<Long, Document> docsMap) {\n\t\tint compteur = 0;\n\t\tlong[] keys = docs.keys();\n\t\t\n\t\tfor (int i = 0; i < keys.length; i ++) {\n\t\t\tif (docsMap.get(keys[i]).getType() == Document.Type_Element.ARTICLE \n\t\t\t\t\t&& docsMap.get(keys[i]).getCheminDocument().equals(\"article[1]/\")) {\n\t\t\t\tcompteur += 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn compteur;\n\t}", "private void loadDocStatFromFile(String path) {\n docStat = new HashMap<String, Integer>();\n List<String> stats = fu.textFileToList(path);\n int totLength = 0;\n for (String stat : stats) {\n String docID = stat.split(\" \")[0];\n int docLen = Integer.parseInt(stat.split(\" \")[1]);\n totLength += docLen;\n docStat.put(docID, docLen);\n }\n avdl = totLength / N;\n }", "private void initIDF2Map(List<Map<String, List<Double>>> mapPerGestureFile) {\n\t\tMap<String,Double> idf2PerDocument = new HashMap<String, Double>(); // per univariate series\n\t\t\n\t\tfor (int i = 0; i < mapPerGestureFile.size(); i++) {\n\t\t\tMap<String,List<Double>> tmpMap = mapPerGestureFile.get(i);\n\t\t\tIterator<Entry<String, List<Double>>> iterator = tmpMap.entrySet().iterator();\n\t\t\twhile(iterator.hasNext()) {\n\t\t\t\tMap.Entry<String, List<Double>> pairs = (Entry<String, List<Double>>) iterator.next();\n\t\t\t\tif(idf2PerDocument.containsKey(pairs.getKey()))\n\t\t\t\t\t\tidf2PerDocument.put(pairs.getKey(), idf2PerDocument.get(pairs.getKey())+1.0); \n\t\t\t\telse\n\t\t\t\t\t\tidf2PerDocument.put(pairs.getKey(), 1.0);\n\t\t\t}\n\t\t}\n\t\tgetTfMapArrayIDF2().add(idf2PerDocument);\n\t}", "@Override\n public void process(JCas jcas) throws AnalysisEngineProcessException {\n\n FSIterator<Annotation> iter = jcas.getAnnotationIndex().iterator();\n if (iter.isValid()) { \n iter.moveToNext();\n Document doc = (Document) iter.get();\n createTermFreqVector(jcas, doc);\n }\n\n }", "public final float score(float tf, float docLength) {\r\n\t\tfloat Robertson_tf = k_1*tf/(tf+k_1*(1-b+b*docLength/averageDocumentLength));\r\n\t\tfloat idf = (float)Idf.log(numberOfDocuments/documentFrequency+1);\r\n\t\treturn keyFrequency * Robertson_tf * idf;\r\n\t}", "public synchronized void register(int docid, String word, int frequency) {\n // load the hashtable for this term\n Object val = index.get(word);\n\n // define a new int[1] to store the frequency\n int[] fArray = new int[1];\n fArray[0] = frequency;\n\n if (val == null) {\n // if this term isn't in the index, create a new hashtable and store\n // it\n HashMap newList = new HashMap();\n newList.put(docid, fArray);\n index.put(word, newList);\n } else {\n // if the term exists, simply store appropriately\n ((HashMap) val).put(docid, fArray);\n }\n }", "public static void main(String[] args) throws Exception \n\t{\n\t\tList<String> stopWords = new ArrayList<String>();\n\t\tstopWords = stopWordsCreation();\n\n\n\t\t\n\t\tHashMap<Integer, String> hmap = new HashMap<Integer, String>();\t//Used in tittle, all terms are unique, and any dups become \" \"\n\t\n\t\t\n\t\tList<String> uniqueTerms = new ArrayList<String>();\n\t\tList<String> allTerms = new ArrayList<String>();\n\t\t\t\t\n\t\t\n\t\tHashMap<Integer, String> hmap2 = new HashMap<Integer, String>();\n\t\tHashMap<Integer, String> allValues = new HashMap<Integer, String>();\n\t\tHashMap<Integer, Double> docNorms = new HashMap<Integer, Double>();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMap<Integer, List<String>> postingsFileListAllWords = new HashMap<>();\t\t\n\t\tMap<Integer, List<String>> postingsFileList = new HashMap<>();\n\t\t\n\t\tMap<Integer, List<StringBuilder>> docAndTitles = new HashMap<>();\n\t\tMap<Integer, List<StringBuilder>> docAndAbstract = new HashMap<>();\n\t\tMap<Integer, List<StringBuilder>> docAndAuthors = new HashMap<>();\n\t\t\n\t\t\n\t\tMap<Integer, List<Double>> termWeights = new HashMap<>();\n\t\t\n\t\tList<Integer> docTermCountList = new ArrayList<Integer>();\n\t\t\n\t\tBufferedReader br = null;\n\t\tFileReader fr = null;\n\t\tString sCurrentLine;\n\n\t\tint documentCount = 0;\n\t\tint documentFound = 0;\n\t\tint articleNew = 0;\n\t\tint docTermCount = 0;\n\t\t\n\t\t\n\t\tboolean abstractReached = false;\n\n\t\ttry {\n\t\t\tfr = new FileReader(FILENAME);\n\t\t\tbr = new BufferedReader(fr);\n\n\t\t\t// Continues to get 1 line from document until it reaches the end of EVERY doc\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) \n\t\t\t{\n\t\t\t\t// sCurrentLine now contains the 1 line from the document\n\n\t\t\t\t// Take line and split each word and place them into array\n\t\t\t\tString[] arr = sCurrentLine.split(\" \");\n\n\n\t\t\t\t//Go through the entire array\n\t\t\t\tfor (String ss : arr) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t/*\n\t\t\t\t\t * This section takes the array and checks to see if it has reached a new\n\t\t\t\t\t * document or not. If the current line begins with an .I, then it knows that a\n\t\t\t\t\t * document has just started. If it incounters another .I, then it knows that a\n\t\t\t\t\t * new document has started.\n\t\t\t\t\t */\n\t\t\t\t\t//System.out.println(\"Before anything: \"+sCurrentLine);\n\t\t\t\t\tif (arr[0].equals(\".I\")) \n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\tif (articleNew == 0) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarticleNew = 1;\n\t\t\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse if (articleNew == 1) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tarticleNew = 0;\n\t\t\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t//System.out.println(documentFound);\n\t\t\t\t\t\t//count++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/* This section detects that after a document has entered,\n\t\t\t\t\t * it has to gather all the words contained in the title \n\t\t\t\t\t * section.\n\t\t\t\t\t */\n\t\t\t\t\tif (arr[0].equals(\".T\") ) \n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// Go to line UNDER .T since that is where tittle is located\n\t\t\t\t\t\t//sCurrentLine = br.readLine();\n\t\t\t\t\t\tdocAndTitles.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\t\t\tStringBuilder title = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".B|.A|.N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\t\t/* In this section, there are 2 lists being made. One list\n\t\t\t\t\t\t\t * is for all the unique words in every title in the document (hmap).\n\t\t\t\t\t\t\t * Hmap contains all unique words, and anytime a duplicate word is \n\t\t\t\t\t\t\t * found, it is replaced with an empty space in the map.\n\t\t\t\t\t\t\t * All Values \n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//postingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\t\t\t//postingsFileList.get(documentFound - 1).add(term2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"current line: \"+sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] tittle = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (tittle[0].equals(\".W\") )\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\tabstractReached = true;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttitle.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (String tittleWords : tittle)\n\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.toLowerCase();\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'{}*|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'*{}|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\ttittleWords = tittleWords.replaceAll(\"[-&^%'{}*|$+\\\\/\\\\?!<>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\t//System.out.println(tittleWords);\n\t\t\t\t\t\t\t\tif (hmap.containsValue(tittleWords)) \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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, \" \");\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\tallTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tallTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, tittleWords);\n\t\t\t\t\t\t\t\t\tif (!(uniqueTerms.contains(tittleWords)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ((stopWordsSetting && !(stopWords.contains(tittleWords))))\n\t\t\t\t\t\t\t\t\t\t\tuniqueTerms.add(tittleWords);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//docAndTitles.get(documentCount).add(\" \");\n\t\t\t\t\t\t\ttitle.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Title: \"+title);\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\tdocAndTitles.get(documentFound).add(title);\n\t\t\t\t\t\t//System.out.println(\"Done!: \"+ docAndTitles);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (arr[0].equals(\".A\") ) \n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// Go to line UNDER .T since that is where tittle is located\n\t\t\t\t\t\t//sCurrentLine = br.readLine();\n\t\t\t\t\t\tdocAndAuthors.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\t\t\tStringBuilder author = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* In this section, there are 2 lists being made. One list\n\t\t\t\t\t\t\t * is for all the unique words in every title in the document (hmap).\n\t\t\t\t\t\t\t * Hmap contains all unique words, and anytime a duplicate word is \n\t\t\t\t\t\t\t * found, it is replaced with an empty space in the map.\n\t\t\t\t\t\t\t * All Values \n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//postingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\t\t\t//postingsFileList.get(documentFound - 1).add(term2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"current line: \"+sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] tittle = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (tittle[0].equals(\".W\") )\n\t\t\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\tabstractReached = true;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tauthor.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//docAndTitles.get(documentCount).add(\" \");\n\t\t\t\t\t\t\tauthor.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Title: \"+title);\n\t\t\t\t\t\t//System.out.println(\"docAndTitles.get(documentCount+1): \" +docAndTitles.get(documentFound));\n\t\t\t\t\t\tdocAndAuthors.get(documentFound).add(author);\n\t\t\t\t\t\t//System.out.println(\"Done!: \"+ docAndTitles);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/* Since there may or may not be an asbtract after\n\t\t\t\t\t * the title, we need to check what the next section\n\t\t\t\t\t * is. We know that every doc has a publication date,\n\t\t\t\t\t * so it can end there, but if there is no abstract,\n\t\t\t\t\t * then it will keep scanning until it reaches the publication\n\t\t\t\t\t * date. If abstract is empty (in tests), it will also finish instantly\n\t\t\t\t\t * since it's blank and goes straight to .B (the publishing date).\n\t\t\t\t\t * Works EXACTLY like Title \t\t \n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (abstractReached) \n\t\t\t\t\t{\t\n\t\t\t\t\t\t//System.out.println(\"\\n\");\n\t\t\t\t\t\t//System.out.println(\"REACHED ABSTRACT and current line is: \" +sCurrentLine);\n\t\t\t\t\t\tdocAndAbstract.put(documentFound, new ArrayList<StringBuilder>());\n\t\t\t\t\t\tStringBuilder totalAbstract = new StringBuilder();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ( !(sCurrentLine = br.readLine()).matches(\".T|.I|.A|.N|.X|.K|.C\") )\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tString[] abstaract = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tif (abstaract[0].equals(\".B\") )\n\t\t\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\t\t\tabstractReached = false;\n\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttotalAbstract.append(sCurrentLine);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] misc = sCurrentLine.split(\" \");\n\t\t\t\t\t\t\tfor (String miscWords : misc) \n\t\t\t\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmiscWords = miscWords.toLowerCase(); \n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|?{}!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\t\t\n\t\t\t\t\t\t\t\tmiscWords = miscWords.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"\\\\d]\", \"\");\t\t\n\t\t\t\t\t\t\t\t//System.out.println(miscWords);\n\t\t\t\t\t\t\t\tif (hmap.containsValue(miscWords)) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, \" \");\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tallTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tallTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\thmap.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tallValues.put(documentCount, miscWords);\n\t\t\t\t\t\t\t\t\tif (!(uniqueTerms.contains(miscWords)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif ((stopWordsSetting && !(stopWords.contains(miscWords))))\n\t\t\t\t\t\t\t\t\t\t\tuniqueTerms.add(miscWords);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocumentCount++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\ttotalAbstract.append(\"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdocAndAbstract.get(documentFound).add(totalAbstract);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t//Once article is found, we enter all of of it's title and abstract terms \n\t\t\t\tif (articleNew == 0) \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tdocumentFound = documentFound - 1;\n\t\t\t\t\t//System.out.println(\"Words found in Doc: \" + documentFound);\n\t\t\t\t\t//System.out.println(\"Map is\" +allValues);\n\t\t\t\t\tSet set = hmap.entrySet();\n\t\t\t\t\tIterator iterator = set.iterator();\n\n\t\t\t\t\tSet set2 = allValues.entrySet();\n\t\t\t\t\tIterator iterator2 = set2.iterator();\n\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tpostingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\tpostingsFileListAllWords.put(documentFound - 1, new ArrayList<String>());\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tMap.Entry mentry = (Map.Entry) iterator.next();\n\t\t\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// (\"Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// );\n\t\t\t\t\t\tString term = mentry.getValue().toString();\n\t\t\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\t\t\tpostingsFileList.get(documentFound - 1).add(term);\n\t\t\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t\t\tdocTermCount++;\n\t\t\t\t\t}\n\t\t\t\t\t// \"BEFORE its put in, this is what it looks like\" + hmap);\n\t\t\t\t\thmap2.putAll(hmap);\n\t\t\t\t\thmap.clear();\n\t\t\t\t\tarticleNew = 1;\n\n\t\t\t\t\tdocTermCountList.add(docTermCount);\n\t\t\t\t\tdocTermCount = 0;\n\n\t\t\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\t\t\tMap.Entry mentry2 = (Map.Entry) iterator2.next();\n\t\t\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t\t\t// (\"Value2 is: \" + mentry2.getValue());\n\t\t\t\t\t\t// );\n\t\t\t\t\t\tString term = mentry2.getValue().toString();\n\t\t\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\t\t\tpostingsFileListAllWords.get(documentFound - 1).add(term);\n\t\t\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t\t\t// docTermCount++;\n\t\t\t\t\t}\n\n\t\t\t\t\tallValues.clear();\t\t\t\t\t\n\t\t\t\t\tdocumentFound = Integer.parseInt(arr[1]);\n\n\t\t\t\t\t// \"MEANWHILE THESE ARE ALL VALUES\" + postingsFileListAllWords);\n\n\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Looking at final doc!\");\n\t\t\t//Final loop for last sets\n\t\t\tSet set = hmap.entrySet();\n\t\t\tIterator iterator = set.iterator();\n\n\t\t\tSet setA = allValues.entrySet();\n\t\t\tIterator iteratorA = setA.iterator();\n\t\t\tpostingsFileList.put(documentFound - 1, new ArrayList<String>());\n\t\t\tpostingsFileListAllWords.put(documentFound - 1, new ArrayList<String>());\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tMap.Entry mentry = (Map.Entry) iterator.next();\n\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t// (\"Value is: \" + mentry.getValue());\n\t\t\t\t// //);\n\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\tString term2 = mentry.getValue().toString();\n\t\t\t\tpostingsFileList.get(documentFound - 1).add(term2);\n\n\t\t\t\tdocTermCount++;\n\t\t\t}\n\t\t\t//System.out.println(\"Done looking at final doc!\");\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Sorting time!\");\n\t\t\twhile (iteratorA.hasNext()) {\n\t\t\t\tMap.Entry mentry2 = (Map.Entry) iteratorA.next();\n\t\t\t\t// (\"key is: \"+ mentry.getKey() + \" & Value is: \" + mentry.getValue());\n\t\t\t\t// (\"Value2 is: \" + mentry2.getValue());\n\t\t\t\t// //);\n\t\t\t\tString term = mentry2.getValue().toString();\n\t\t\t\t// //\"This is going to be put in doc3: \"+ (documentFound-1));\n\t\t\t\tpostingsFileListAllWords.get(documentFound - 1).add(term);\n\t\t\t\t// if ( !((mentry.getValue()).equals(\" \")) )\n\t\t\t\t// docTermCount++;\n\t\t\t}\n\n\t\t\thmap2.putAll(hmap);\n\t\t\thmap.clear();\n\t\t\tdocTermCountList.add(docTermCount);\n\t\t\tdocTermCount = 0;\n\n\n\t\t\t\n\t\t\n\t\t\t// END OF LOOKING AT ALL DOCS\n\t\t\t\n\t\t\t//System.out.println(\"Docs and titles: \"+docAndTitles);\n\t\t\t\n\t\t\t//System.out.println(\"All terms\" +allTerms);\n\t\t\tString[] sortedArray = allTerms.toArray(new String[0]);\n\t\t\tString[] sortedArrayUnique = uniqueTerms.toArray(new String[0]);\n\t\t\t//System.out.println(Arrays.toString(sortedArray));\n\t\t\t\n\t\t\tArrays.sort(sortedArray);\n\t\t\tArrays.sort(sortedArrayUnique);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//Sortings \n\t\t\tSet set3 = hmap2.entrySet();\n\t\t\tIterator iterator3 = set3.iterator();\n\n\t\t\t// Sorting the map\n\t\t\t//System.out.println(\"Before sorting \" +hmap2);\t\t\t\n\t\t\tMap<Integer, String> map = sortByValues(hmap2);\n\t\t\t//System.out.println(\"after sorting \" +map);\n\t\t\t// //\"After Sorting:\");\n\t\t\tSet set2 = map.entrySet();\n\t\t\tIterator iterator2 = set2.iterator();\n\t\t\tint docCount = 1;\n\t\t\twhile (iterator2.hasNext()) {\n\t\t\t\tMap.Entry me2 = (Map.Entry) iterator2.next();\n\t\t\t\t// (me2.getKey() + \": \");\n\t\t\t\t// //me2.getValue());\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(\"Done sorting!\");\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Posting starts \");\n\t\t\t//\"THIS IS START OF DICTIONARTY\" \n\t\t\tBufferedWriter bw = null;\n\t\t\tFileWriter fw = null;\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(\"Start making an array thats big as every doc total \");\n\t\t\tfor (int z = 1; z < documentFound+1; z++)\n\t\t\t{\n\t\t\t\ttermWeights.put(z, new ArrayList<Double>());\n\t\t\t}\n\t\t\t//System.out.println(\"Done making that large array Doc \");\n\t\t\t\n\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\n\t\t\t//System.out.println(\"All terms\" +allTerms)\n\t\t\t//System.out.println(Arrays.toString(sortedArray));\n\t\t\t//System.out.println(Arrays.toString(sortedArrayUnique));\n\t\t\t//System.out.println(uniqueTerms);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//\tSystem.out.println(\"Posting starts \");\n\t\t\t// \tPOSTING FILE STARTS \n\t\t\ttry {\n\t\t\t\t// Posting File\n\t\t\t\t//System.out.println(\"postingsFileListAllWords: \"+postingsFileListAllWords); //Contains every word including Dups, seperated per doc\n\t\t\t\t//System.out.println(\"postingsFileList: \"+postingsFileList); \t\t //Contains unique words, dups are \" \", seperated per doc\n\t\t\t\t//System.out.println(\"postingsFileListAllWords.size(): \" +postingsFileListAllWords.size()); //Total # of docs \n\t\t\t\t//System.out.println(\"Array size: \"+sortedArrayUnique.length);\n\n\t\t\t\tfw = new FileWriter(POSTING);\n\t\t\t\tbw = new BufferedWriter(fw);\n\t\t\t\tString temp = \" \";\n\t\t\t\tDouble termFreq = 0.0;\n\t\t\t\t// //postingsFileListAllWords);\n\t\t\t\tList<String> finalTermList = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t// //postingsFileList.get(i).size());\n\t\t\t\t\tfor (int j = 0; j < sortedArrayUnique.length; ++j)\t\t\t\t\t // go thru each word, CURRENT TERM\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Term is: \" + sortedArrayUnique[j]);\n\t\t\t\t\t\ttemp = sortedArrayUnique[j];\t\t\t\t\t\n\t\t\t\t\t\tif ((stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!(finalTermList.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//PART TO FIND DOCUMENT FREQ\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint docCountIDF = 0;\n\t\t\t\t\t\t\t//Start here for dictionary \n\t\t\t\t\t\t\tfor (int totalWords = 0; totalWords < sortedArray.length; totalWords++) \t\t\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (temp.compareTo(\" \") == 0 || (stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//EITHER BLANK OR STOPWORD \n\t\t\t\t\t\t\t\t\t//System.out.println(\"fOUND STOP WORD\");\n\t\t\t\t\t\t\t\t\tcontinue;\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\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString temp2 = sortedArray[totalWords];\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Compare: \"+temp+ \" with \" +temp2);\n\t\t\t\t\t\t\t\t\tif (temp.compareTo(temp2) == 0) {\n\t\t\t\t\t\t\t\t\t\t// (temp2+\" \");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tdocCountIDF++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"Total Number: \" +docCountIDF);\n\t\t\t\t\t\t\t//System.out.println(\"documentFound: \" +documentFound);\n\t\t\t\t\t\t\t//System.out.println(\"So its \" + documentFound + \" dividied by \" +docCountIDF);\n\t\t\t\t\t\t\t//docCountIDF = 1;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble idf = (Math.log10(((double)documentFound/(double)docCountIDF)));\n\t\t\t\t\t\t\t//System.out.println(\"Calculated IDF: \"+idf);\n\t\t\t\t\t\t\tif (idf < 0.0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tidf = 0.0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"IDF is: \" +idf);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"Size of doc words: \" + postingsFileListAllWords.size());\n\t\t\t\t\t\t\tfor (int k = 0; k < postingsFileListAllWords.size(); k++) \t\t//Go thru each doc. Since only looking at 1 term, it does it once per doc\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//System.out.println(\"Current Doc: \" +(k+1));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\ttermFreq = 1 + (Math.log10(Collections.frequency(postingsFileListAllWords.get(k), temp)));\t\t\t\n\t\t\t\t\t\t\t\t\t//System.out.println(\"Freq is: \" +Collections.frequency(postingsFileListAllWords.get(k), temp));\n\t\t\t\t\t\t\t\t\t//System.out.println(termFreq + \": \" + termFreq.isInfinite());\n\t\t\t\t\t\t\t\t\tif (termFreq.isInfinite() || termFreq <= 0)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ttermFreq = 0.0;\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t\t\t\t//System.out.println(\"termFreq :\" +termFreq); \n\t\t\t\t\t\t\t\t\t//System.out.println(\"idf: \" +idf);\n\t\t\t\t\t\t\t\t\ttermWeights.get(k+1).add( (idf*termFreq) );\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t\t\tfinalTermList.add(temp);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//FINALCOUNTER\n\t\t\t\t\t\t//System.out.println(\"Done looking at word: \" +j);\n\t\t\t\t\t\t//System.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Current Weights: \"+termWeights);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\twhile (true)\n\t\t\t\t {\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Enter a query: \");\n\t\t\t\t\t\n\t \tScanner scanner = new Scanner(System.in);\n\t \tString enterQuery = scanner.nextLine();\n\t \t\n\t \t\n\t\t\t\t\tList<Double> queryWeights = new ArrayList<Double>();\n\t\t\t\t\t\n\t\t\t\t\t// Query turn\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tenterQuery = enterQuery.toLowerCase();\t\t\n\t\t\t\t\tenterQuery = enterQuery.replaceAll(\"[-&^%'*$+|{}?!\\\\/<\\\\>=.,;_:()\\\\[\\\\]\\\"]\", \"\");\n\t\t\t\t\t//System.out.println(\"Query is: \" + enterQuery);\n\t\t\t\t\t\n\t\t\t\t\tif (enterQuery.equals(\"exit\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tString[] queryArray = enterQuery.split(\" \");\n\t\t\t\t\tArrays.sort(queryArray);\n\t\t\t\t\t\n\t\t\t\t\t//Find the query weights for each term in vocab\n\t\t\t\t\tfor (int j = 0; j < sortedArrayUnique.length; ++j)\t\t\t\t\t // go thru each word, CURRENT TERM\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(\"Term is: \" + sortedArrayUnique[j]);\n\t\t\t\t\t\ttemp = sortedArrayUnique[j];\t\t\t\t\t\n\t\t\t\t\t\tif ((stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\tint docCountDF = 0;\n\t\t\t\t\t\t//Start here for dictionary \n\t\t\t\t\t\tfor (int totalWords = 0; totalWords < queryArray.length; totalWords++) \t\t\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (temp.compareTo(\" \") == 0 || (stopWordsSetting && stopWords.contains(temp))) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//EITHER BLANK OR STOPWORD\n\t\t\t\t\t\t\t\tcontinue;\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\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString temp2 = queryArray[totalWords];\n\t\t\t\t\t\t\t\t//System.out.println(\"Compare: \"+temp+ \" with \" +temp2);\n\t\t\t\t\t\t\t\tif (temp.compareTo(temp2) == 0) {\n\t\t\t\t\t\t\t\t\t// (temp2+\" \");\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocCountDF++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tDouble queryWeight = 1 + (Math.log10(docCountDF));\n\t\t\t\t\t\tif (queryWeight.isInfinite())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tqueryWeight = 0.0;\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tqueryWeights.add(queryWeight);\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Query WEights is: \"+queryWeights);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Finding the norms for DOCS\t\t\t\t\t\n\t\t\t\t\tfor (int norms = 1; norms < documentFound+1; norms++)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble currentTotal = 0.0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int weightsPerDoc = 0; weightsPerDoc < termWeights.get(norms).size(); weightsPerDoc++)\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble square = Math.pow(termWeights.get(norms).get(weightsPerDoc), 2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(\"Current square: \" + termWeights.get(norms).get(weightsPerDoc));\n\t\t\t\t\t\t\tcurrentTotal = currentTotal + square;\n\t\t\t\t\t\t\t//System.out.println(\"Current total: \" + currentTotal);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"About to square root this: \" +currentTotal);\n\t\t\t\t\t\tdouble root = Math.sqrt(currentTotal);\n\t\t\t\t\t\tdocNorms.put(norms, root);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"All of the docs norms: \"+docNorms);\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Finding the norm for the query\n\t\t\t\t\tdouble currentTotal = 0.0;\t\t\t\t\t\n\t\t\t\t\tfor (int weightsPerDoc = 0; weightsPerDoc < queryWeights.size(); weightsPerDoc++)\n\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tdouble square = Math.pow(queryWeights.get(weightsPerDoc), 2);\n\t\t\t\t\t\tcurrentTotal = currentTotal + square;\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdouble root = Math.sqrt(currentTotal);\n\t\t\t\t\tdouble queryNorm = root; \t\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"Query norm \" + queryNorm);\n\t\t\t\t\t\n\t\t\t\t\t//Finding the cosine sim\n\t\t\t\t\t//System.out.println(\"Term Weights \" + termWeights);\n\t\t\t\t\tHashMap<Integer, Double> cosineScore = new HashMap<Integer, Double>();\n\t\t\t\t\tfor (int cosineSim = 1; cosineSim < documentFound+1; cosineSim++)\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble total = 0.0;\n\t\t\t\t\t\tfor (int docTerms = 0; docTerms < termWeights.get(cosineSim).size(); docTerms++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble docTermWeight = termWeights.get(cosineSim).get(docTerms);\n\t\t\t\t\t\t\tdouble queryTermWeight = queryWeights.get(docTerms);\n\t\t\t\t\t\t\t//System.out.println(\"queryTermWeight \" + queryTermWeight);\n\t\t\t\t\t\t\t//System.out.println(\"docTermWeight \" + docTermWeight);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttotal = total + (docTermWeight*queryTermWeight);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdouble cosineSimScore = 0.0;\n\t\t\t\t\t\tif (!(total == 0.0 || (docNorms.get(cosineSim) * queryNorm) == 0))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcosineSimScore = total / (docNorms.get(cosineSim) * queryNorm);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcosineSimScore = 0.0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tcosineScore.put(cosineSim, cosineSimScore);\n\t\t\t\t\t}\n\t\t\t\t\tcosineScore = sortByValues2(cosineScore);\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"This is the cosineScores: \" +cosineScore);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"docAndTitles: \"+ docAndTitles);\n\t\t\t\t\tint topK = 0;\n\t\t\t\t\tint noValue = 0;\n\t\t\t\t\tfor (Integer name: cosineScore.keySet())\n\t\t\t\t\t{\n\t\t\t\t\t\tif (topK < 50)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\n\t\t\t\t String key =name.toString();\n\t\t\t\t //String value = cosineScore.get(name).toString(); \n\t\t\t\t if (!(cosineScore.get(name) <= 0))\n\t\t\t\t {\n\t\t\t\t \tSystem.out.println(\"Doc: \"+key);\t\t\t\t \t\t\t\t\t \t\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \tStringBuilder builder = new StringBuilder();\n\t\t\t\t \tfor (StringBuilder value : docAndTitles.get(name)) {\n\t\t\t\t \t builder.append(value);\n\t\t\t\t \t}\n\t\t\t\t \tString text = builder.toString();\t\t\t\t \t\n\t\t\t\t \t//System.out.println(\"Title:\\n\" +docAndTitles.get(name));\n\t\t\t\t \tSystem.out.println(\"Title: \" +text);\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t//System.out.println(\"Authors:\\n\" +docAndAuthors.get(name));\n\t\t\t\t \t\n\t\t\t\t \tif (docAndAuthors.get(name) == null || docAndAuthors.get(name).toString().equals(\"\"))\n\t\t\t\t \t{\n\t\t\t\t \t\tSystem.out.println(\"Authors: N\\\\A\\n\");\n\t\t\t\t \t}\n\t\t\t\t \telse \n\t\t\t\t \t{\t\t\t\t \t\t\t\t\t\t \t\n\t\t\t\t\t \tStringBuilder builder2 = new StringBuilder();\n\t\t\t\t\t \tfor (StringBuilder value : docAndAuthors.get(name)) {\n\t\t\t\t\t \t builder2.append(value);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tString text2 = builder2.toString();\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t\t \tSystem.out.println(\"Authors found: \" +text2);\n\t\t\t\t \t}\t\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t/* ABSTRACT \n\t\t\t\t \tif (docAndAbstract.get(name) == null)\n\t\t\t\t \t{\n\t\t\t\t \t\tSystem.out.println(\"Abstract: N\\\\A\\n\");\n\t\t\t\t \t}\n\t\t\t\t \telse \n\t\t\t\t \t{\t\t\t\t \t\t\t\t\t\t \t\n\t\t\t\t\t \tStringBuilder builder2 = new StringBuilder();\n\t\t\t\t\t \tfor (StringBuilder value : docAndAbstract.get(name)) {\n\t\t\t\t\t \t builder2.append(value);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tString text2 = builder2.toString();\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t\t \tSystem.out.println(\"Abstract: \" +text2);\n\t\t\t\t \t}\t\n\t\t\t\t \t*/\n\t\t\t\t \t\n\t\t\t\t \tSystem.out.println(\"\");\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t \tnoValue++;\n\t\t\t\t }\n\t\t\t\t topK++;\n\t\t\t\t \n\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (noValue == documentFound)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"No documents contain query!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\ttopK=0;\n\t\t\t\t\tnoValue = 0;\n\t\t\t\t }\n\t\t\t\t\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (bw != null)\n\t\t\t\t\t\tbw.close();\n\n\t\t\t\t\tif (fw != null)\n\t\t\t\t\t\tfw.close();\n\n\t\t\t\t} catch (IOException ex) {\n\n\t\t\t\t\tex.printStackTrace();\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null)\n\t\t\t\t\tbr.close();\n\n\t\t\t\tif (fr != null)\n\t\t\t\t\tfr.close();\n\n\t\t\t} catch (IOException ex) {\n\n\t\t\t\tex.printStackTrace();\n\n\t\t\t}\n\n\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\tint itemCount = uniqueTerms.size();\n\t\t\t//System.out.println(allValues);\n\t\t\tSystem.out.println(\"Total Terms BEFORE STEMING: \" +itemCount);\n\t\t\tSystem.out.println(\"Total Documents \" + documentFound);\n\t\t\t\t\t\t\n\t\t \n\t\t\t \n\t\t\t \n\t\t\t//END OF MAIN\n\t\t}" ]
[ "0.7089572", "0.7018697", "0.70149946", "0.6903755", "0.68933177", "0.6792649", "0.65603125", "0.6555631", "0.65150255", "0.6283897", "0.62685096", "0.62412184", "0.6208782", "0.62046903", "0.61990803", "0.61811274", "0.61788905", "0.61509407", "0.6124751", "0.6072612", "0.60642904", "0.6052798", "0.6013861", "0.6007133", "0.5997308", "0.598223", "0.5961066", "0.5937919", "0.592144", "0.591193", "0.5879086", "0.5826432", "0.58251333", "0.5822243", "0.58201736", "0.5820008", "0.5818725", "0.5816134", "0.5813899", "0.5810396", "0.57827425", "0.57724005", "0.57605624", "0.5752623", "0.5731813", "0.5719173", "0.57103443", "0.57027906", "0.57003504", "0.56928414", "0.568528", "0.5672764", "0.5671405", "0.5649724", "0.564771", "0.5643631", "0.56256026", "0.561526", "0.5611174", "0.56004375", "0.5585438", "0.5582248", "0.5567015", "0.5565253", "0.5550356", "0.554914", "0.55419284", "0.55230504", "0.5513479", "0.550284", "0.5499976", "0.5499177", "0.5490084", "0.54854053", "0.5479904", "0.5478101", "0.5471167", "0.54681104", "0.54649055", "0.5460555", "0.5456765", "0.54526275", "0.5452197", "0.5445893", "0.54443103", "0.54424816", "0.54406434", "0.5431681", "0.5426219", "0.5420502", "0.5415384", "0.54139805", "0.5409544", "0.5409149", "0.5407635", "0.5404631", "0.54020333", "0.5400306", "0.5389712", "0.53895044" ]
0.66024125
6
Get the mouth position that pac man is in.
public int getMouthPosition() { return (mouthPosition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point getPacmanPosition() {\n throw new RuntimeException(\"Not Implemented\");\n }", "public Point getCameraOffset() {\n Point offset = new Point(getPlayer().getCenterX() - screenWidthMiddle,\n getPlayer().getCenterY() - screenHeightMiddle);\n reboundCameraOffset(offset, EnumSet.of(Direction.LEFT, Direction.RIGHT));\n // we want to add these offsets to the player's x and y, so invert them\n offset.x = -offset.x;\n offset.y = -offset.y;\n return offset;\n }", "public double monsterPos(){\r\n\r\n\t\treturn monster.getY();\r\n\r\n\t}", "public int getMolePosition() {\n return molePosition;\n }", "public LatLng getCentrePos() {\n double lat = 0;\n double lon = 0;\n for (int i=0; i<newHazards.size(); i++) {\n lat += frags.get(i).getHazard().getLatitude();\n lon += frags.get(i).getHazard().getLongitude();\n }\n return new LatLng(lat / newHazards.size(), lon / newHazards.size());\n }", "public Pose2d getPose() {\n return m_odometry.getPoseMeters();\n }", "public PVector getWristPosition(){\n\t\treturn this.leap.map(this.arm.wristPosition());\n\t}", "org.mojolang.mojo.lang.Position getStartPosition();", "public double getOffset(){\n\t\tdouble percentHeight = networkTableValues.get(\"height\")/cameraHeightPixel;\n\t\t//Get the height of the frame in inches\n\t\tdouble cameraHeightInches = networkTableValues.get(\"height\")/percentHeight;\n\t\t//Get the width of the frame in inches\n\t\tdouble cameraWidthInches = cameraHeightInches*(cameraWidthPixel/cameraHeightPixel);\n\t\t//Get the distanceFromTower from the camera to the goal\n\t\tdistanceFromTower = (cameraWidthInches/2)/Math.tan(cameraFOV*(Math.PI/180));\n\t\t//Get the distanceFromTower from the camera to the base of the tower\n\t\tdouble horizontalDistance = Math.sqrt(Math.pow(distanceFromTower, 2) - Math.pow(towerHeight, 2));\n\t\t//Get offset in inches\n\t\tdouble distanceFromCenterInches = (networkTableValues.get(\"centerX\") / cameraWidthPixel)*cameraWidthInches;\n\t\tdouble offset = Math.atan((distanceFromCenterInches/distanceFromTower)*(180/Math.PI));\n\t\t\n\t\tSystem.out.println(\"OFFSET: \" + offset);\n\t\treturn offset;\n\t}", "public Vector getWorldPosition(){\n\t\treturn this.absPos;\n\t}", "public Coord getCameraPosition() {\n if(internalNative == null) {\n if(internalLightweightCmp != null) {\n return internalLightweightCmp.getCenter();\n } \n // TODO: Browser component\n return new Coord(0, 0);\n }\n return new Coord(internalNative.getLatitude(), internalNative.getLongitude());\n }", "public void moveMouth()\n {\n mouthPosition++;\n\n if(mouthPosition > Integer.parseInt(\"5\"))\n {\n mouthPosition = 0;\n }\n }", "public int getPosition(int pawn){\n\t\treturn pawns[pawn-1].getPosition();\n\t}", "public Point getAbsPosition() {\n return Game.getMap().TFMapCoordinateToMapCenter(position);\n }", "public Location getEyeLocation ( ) {\n\t\treturn extract ( handle -> handle.getEyeLocation ( ) );\n\t}", "public Point getCameraPosition() {\n\t\treturn new Point(cameraPosition.x, cameraPosition.y, cameraPosition.z);\n\t}", "public MowerPosition getPosition() {\n return position;\n }", "public int getLocY() {\n return locY;\n }", "public int getLocY() {\n return locY;\n }", "public PointF getPosition()\n {\n return getMazeSprite().getPosition();\n }", "public Point getXyLocation() {\n return playerxy;\n }", "public Position findWeedPosition() {\n int x = 0;\n int y = 0;\n int sum = 0;\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(sum==0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n x = i;\n y = j;\n sum = tmpSum;\n }\n }\n else {\n x = i;\n y = j;\n sum = tmpX + tmpY;\n\n }\n }\n }\n\n }\n }\n return new Position(x,y);\n }", "public Point getLocation() {\r\n\t\treturn this.center;\r\n\t}", "private Point getUpper() {\n int upperX;\n int upperY;\n upperY = (int) (gameCanvas.getHeight() + mapOffsetY * 2);\n upperX = (int) (gameCanvas.getWidth() + mapOffsetX * 2);\n return new Point(upperX, upperY);\n }", "public static int getCoords()\n\t{\n\t\treturn moveCoords;\n\t}", "public Vector2F getWorldLocation() {\n\t\treturn new Vector2F(xPos, yPos);\n\t}", "private Vec2 calculatePos() {\n\t\tNetTransformComponent transform = actor.getEntity().getNetTransform();\n\t\tif (transform != null) {\n\t\t\tVec2 screenPos = scene.getCamera()\n\t\t\t\t\t.getScreenCoordinates(Vec3.add(transform.getPosition(), new Vec3(-2.0f, 3.25f, 0.0f)));\n\t\t\tVec2 result = new Vec2(screenPos.getX(), screenPos.getY());\n\t\t\treturn result;\n\t\t}\n\n\t\treturn new Vec2(0.0f, 0.0f);\n\t}", "int getStartPosition();", "int getStartPosition();", "public Vector2F getScreenLocation() {\n\t\treturn new Vector2F(xPos, yPos);\n\t}", "public int getLocationY() {\r\n\t\treturn y;\r\n\t}", "double getMapPositionY();", "public PVector getRawPosition(){\n\t\treturn this.leap.convert(this.arm.center());\n\t}", "public Point getMinimapLocation() {\n Actor c = getAccessor();\n int cX = methods.client.getBaseX() + (c.getLocalLocation().getX() / 32 - 2) / 4;\n int cY = methods.client.getBaseY() + (c.getLocalLocation().getY() / 32 - 2) / 4;\n return methods.calc.worldToMinimap(cX, cY);\n }", "@Override\n public int[] getGoalPosition() {\n\n if(maze != null){\n int[] position = new int[2];\n position[0] = maze.getGoalPosition().getRowIndex();\n position[1] = maze.getGoalPosition().getColumnIndex();\n return position;\n }\n return null;\n }", "public int getNorth() {\n return north;\n }", "public Location getRespawnLocation() {\r\n Location respawn = null;\r\n if (getId() >= 5533 && getId() <= 5538) {\r\n respawn = Location.create(2913, 5467, 0);\r\n } else if (getId() >= 5539 && getId() <= 5546) {\r\n respawn = Location.create(2916, 5473, 0);\r\n } else if (getId() >= 5547 && getId() <= 5552) {\r\n respawn = Location.create(2910, 5476, 0);\r\n } else if (getId() >= 5553 && getId() <= 5558) {\r\n respawn = Location.create(2907, 5470, 0);\r\n }\r\n return respawn;\r\n }", "String getLawnPosition();", "public Point topMiddle() {\n return this.topLeft.add(new Vector2D(getWidth() / 2, 0)).asPoint();\n }", "public MapLocation getEnemySwarmCenter() {\n\t\treturn new MapLocation(centerEnemyX, centerEnemyY);\n\t}", "public Position getRobotPadPosition();", "@Override\n public int[] getStartPosition() {\n if(maze != null){\n int[] position = new int[2];\n position[0] = maze.getStartPosition().getRowIndex();\n position[1] = maze.getStartPosition().getColumnIndex();\n return position;\n }\n return null;\n }", "public int get_Y_Coordinate()\n {\n return currentBallY;\n }", "@Override\n public double getPosY() {\n return this.pos[1];\n }", "public Point getCenter() {\n return location.center();\n }", "public Integer getMouthCount() {\n return mouthCount;\n }", "public Vector2f getPosition() { return new Vector2f(centroid_pos); }", "MapLocation getPosition(Unit unit);", "public int getLocY ()\n {\n return locY;\n }", "public int getPosition(Chamber c) {\n if (chambers.containsKey(c)) {\n return chambers.get(c);\n } else {\n return -1;\n }\n }", "public double getPosition()\n {\n return position * FPS;\n }", "public Point getRobotLocation();", "public PVector getLoc() {\n return location;\n }", "public PVector getLoc() {\n return location;\n }", "public DVector getPosition()\n\t{\n\t\treturn this.screenPos;\n\t}", "public int getMidPos ()\r\n {\r\n if (getLine()\r\n .isVertical()) {\r\n // Fall back value\r\n return (int) Math.rint((getFirstPos() + getLastPos()) / 2.0);\r\n } else {\r\n return (int) Math.rint(\r\n getLine().yAt((getStart() + getStop()) / 2.0));\r\n }\r\n }", "public synchronized Pose getPose() {\n\n\t\tif (m_mover != null) {\n\t\t\tlong currentTime = System.currentTimeMillis();\n\t\t\tif (currentTime - m_lastUpdate > m_updateDelay) {\n\t\t\t\tupdatePose(m_mover.getMovement());\n\t\t\t\tm_lastUpdate = currentTime;\n\t\t\t}\n\t\t}\n\t\treturn new Pose(x, y, heading);\n\t}", "public int getY(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(1)/ AvesAblazeHardware.mmPerInch);\n\t}", "@Override\n\tpublic int getPosY() {\n\t\treturn Y_LAND;\n\t}", "int getPlayerLocation(Player p) {\n\t\t\treturn playerLocationRepo.get(p);\n\t\t}", "public final float getPositionY() {\r\n\t\treturn getState(false).getPositionY();\r\n\t}", "private Vector3f calcPosition() {\r\n float y = (float) (distance * Math.sin(Math.toRadians(pitch)));\r\n float xzDistance = (float) (distance * Math.cos(Math.toRadians(pitch)));\r\n float x = (float) (xzDistance * Math.sin(Math.toRadians(rotation)));\r\n float z = (float) (xzDistance * Math.cos(Math.toRadians(rotation)));\r\n return new Vector3f(x + center.x, y + center.y, z + center.z);\r\n }", "public PVector getElbowPosition(){\n\t\treturn this.leap.map(this.arm.elbowPosition());\n\t}", "public int getYPos() {\r\n\t\treturn this.cameraY;\r\n\t}", "public PVector getWristRawPosition(){\n\t\treturn this.leap.convert(this.arm.wristPosition());\n\t}", "public Point getTopLeft() {\n return location.topLeft();\n }", "public double getLocationY() {\r\n\t\treturn location.getY();\r\n\t}", "Point getCenter();", "Point getCenter();", "public int getLocationY( )\n\t{\n\t\treturn locationY;\n\t}", "public double getNorth() {\n return north;\n }", "public int leftPosion (double degLon){\n double scale = pictureSizePixels/worlSizeMeters;\n return (int) Math.round(xCoordinate(degLon)\n *scale\n +(pictureSizePixels/2));\n }", "private int getMidPoint(int cordinate)\n {\n int mid_point = ((cordinate + Player.getWidth_of_box()) / 2);\n return mid_point;\n }", "public long position() {\n\t\tif (mPlayer.isInitialized()) {\n\t\t\treturn mPlayer.position();\n\t\t}\n\t\treturn -1;\n\t}", "public List<Integer> pacmanLocation(){\n\n pacmanLocay.add(0);\n pacmanLocay.add(0);\n\n return pacmanLocay;\n }", "public ScreenPosition getPosition()\n {\n return myPosition;\n }", "double getPositionY();", "double getPositionY();", "double getPositionY();", "private double getPosY() {\n\t\treturn this.posX.get();\n\t}", "private Point2D getCenterLatLon(){\n Point2D.Double result = new Point2D.Double();\n Point2D.Double screenCenter = new Point2D.Double();\n screenCenter.x = getWidth()/2; //contentpane width/height\n screenCenter.y = getHeight()/2;\n try{\n transform.inverseTransform(screenCenter,result); //transform to lat/lon using the current transform\n } catch (NoninvertibleTransformException e) {\n throw new RuntimeException(e);\n }\n return result;\n }", "public Vector2f getLocation() {\r\n\t\treturn location.getLocation();\r\n\t}", "public Position getStartPosition() throws IllegalStateException{\r\n for (int i = 0; i < mazeData.length; i++) {\r\n for (int j = 0; j < mazeData[i].length; j++) {\r\n if (mazeData[i][j] == START)\r\n return new Position(i, j);\r\n }\r\n }\r\n throw new IllegalStateException(\"Could not find a start-point\");\r\n }", "public int getSpawnY()\n {\n return spawnY;\n }", "public int getCenterY() {\n\t\t\treturn (int) origin.y + halfHeight;\n\t\t}", "String getPosY();", "public int getSpawnY() {\n\t\treturn spawnY;\n\t}", "public Position getMidPoint() {\n return midPoint;\n }", "public NeptunianAlienMouth() {\n\t\tinit(\"mouth-1\", 3, 27, 0);\n\t}", "private long opponent_winning_position() {\r\n return compute_winning_position(bitboard ^ mask, mask);\r\n }", "public int getY() { return loc.y; }", "public int getCurrentPlayerRealPosition();", "public abstract int getStartPosition();", "public double getCenterY() { return centerY.get(); }", "public Point getLocation() {\n return pos;\n }", "public Location getCenter() {\n return new Location(location.getWorld(), (float) getRectangle().getCenterX(), (float) getRectangle().getCenterY());\n }", "public Vector3f getPhysicsLocation() {\n return getPhysicsLocation(null);\n }", "public Double getLoginPosY() {\n\t\treturn this.loginPosY;\n\t}", "public double getCardPosY(){\r\n return getY();\r\n }", "@Override\n\tpublic double getLongitude() {\n\t\treturn _locMstLocation.getLongitude();\n\t}" ]
[ "0.6317851", "0.6230003", "0.6009172", "0.5994361", "0.5946985", "0.589167", "0.5888932", "0.58855295", "0.5878692", "0.5870679", "0.5867097", "0.5864945", "0.5855793", "0.58491784", "0.58112216", "0.57814217", "0.5757478", "0.57549924", "0.5718138", "0.57117766", "0.5703865", "0.5703635", "0.5702931", "0.5695306", "0.56832963", "0.566709", "0.5637639", "0.5628974", "0.5628974", "0.5628519", "0.56261295", "0.5623964", "0.56200606", "0.56115574", "0.5599997", "0.5596301", "0.5590414", "0.55814964", "0.5577854", "0.55679643", "0.55651045", "0.5563952", "0.555761", "0.5548211", "0.55423707", "0.55223876", "0.55207705", "0.55153733", "0.55140936", "0.5506965", "0.55054146", "0.5503424", "0.5501656", "0.5501656", "0.54959667", "0.54943556", "0.54821724", "0.54787266", "0.5470551", "0.54697925", "0.5468162", "0.54647857", "0.54612195", "0.5451333", "0.54371995", "0.5431224", "0.5429977", "0.54233235", "0.54233235", "0.54196185", "0.541723", "0.54133743", "0.5411898", "0.5407616", "0.54020596", "0.53979135", "0.5392765", "0.5392765", "0.5392765", "0.53925556", "0.53918433", "0.5385385", "0.53833574", "0.5382405", "0.53806734", "0.537854", "0.53682727", "0.53670007", "0.5365536", "0.5356222", "0.5356059", "0.5345637", "0.5341944", "0.53414565", "0.53391665", "0.53367597", "0.5334586", "0.53297114", "0.53276247", "0.53180397" ]
0.8082031
0
Move the pac man mouth by cycling through the mouth positions. There are 6 positions total.
public void moveMouth() { mouthPosition++; if(mouthPosition > Integer.parseInt("5")) { mouthPosition = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void moveMhos() {\n\t\tmoveAllignedMhos();\n\t\tmoveDiagonalMhos();\n\t\tmoveHorizontalMhos();\n\t\tmoveVerticalMhos();\n\t\tmoveRemainingMhos();\n\t\tupdateMhoLocationList();\n\t}", "void move_couple() {\n\t\tfor(int i = 0; i < d; i++){\n\t\t\tif(dancers[i].soulmate == -1) continue;\n\t\t\tPoint curr = this.last_positions[i];\n\t\t\tPoint des = this.dancers[i].des_pos;\n\t\t\tthis.dancers[i].next_pos = findNextPosition(curr, des);\n\t\t}\n\t}", "private void moveAllignedMhos() {\n\n\t\t//Assign playerX and playerY to the X and Y of the player\n\t\tint playerX = getNewPlayerLocation()[0];\n\t\tint playerY = getNewPlayerLocation()[1];\n\n\t\t//Iterate through every mho's X and Y values\n\t\tfor(int i = 0; i < mhoLocations.size()/2; i++) {\n\n\t\t\t//Assign mhoX and mhoY to the X and Y values of the mho that is currently being tested\n\t\t\tint mhoX = mhoLocations.get(i*2);\n\t\t\tint mhoY = mhoLocations.get(i*2+1);\n\n\t\t\t//set the default X and Y offsets to 0, and the move to NO_MOVEMENT\n\t\t\tint xOffset = 0;\n\t\t\tint yOffset = 0;\n\t\t\tchar move = Legend.NO_MOVEMENT;\n\n\t\t\t//Check if the playerX is equal to mhoX (aligned on x-axis)\n\t\t\tif(playerX == mhoX) {\n\n\t\t\t\t//Check which direction the mho would have to move, and assign the corresponding move and yOffset\n\t\t\t\tif(playerY > mhoY) {\n\t\t\t\t\tyOffset = 1;\n\t\t\t\t\tmove = Legend.DOWN;\n\t\t\t\t} else {\n\t\t\t\t\tyOffset = -1;\n\t\t\t\t\tmove = Legend.UP;\n\t\t\t\t}\n\t\t\t} else if(playerY == mhoY) {\n\n\t\t\t\t//Check which direction the mho would have to move, and assign the corresponding move and XOffset\n\t\t\t\tif(playerX > mhoX) {\n\t\t\t\t\txOffset = 1;\n\t\t\t\t\tmove = Legend.RIGHT;\n\t\t\t\t} else {\n\t\t\t\t\txOffset = -1;\n\t\t\t\t\tmove = Legend.LEFT;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Only move if the new location is not an instance of mho (in order to make sure they are moved in the right order)\n\t\t\tif(!(newMap[mhoX+xOffset][mhoY+yOffset] instanceof Mho)) {\n\n\t\t\t\t//Set the previous location to a BlankSpace\n\t\t\t\tnewMap[mhoX][mhoY] = new BlankSpace(mhoX, mhoY, board);\n\n\t\t\t\t//If the new square would be a player, end the game\n\t\t\t\tif(newMap[mhoX+xOffset][mhoY+yOffset] instanceof Player) {\n\t\t\t\t\tmoveList[mhoX+xOffset][mhoY+yOffset] = Legend.SHRINK;\n\t\t\t\t\tgameOver();\n\t\t\t\t}\n\n\t\t\t\t//If the new square would be a fence, remove the mho from the map\n\t\t\t\tif(!(newMap[mhoX+xOffset][mhoY+yOffset] instanceof Fence)) {\n\t\t\t\t\tnewMap[mhoX+xOffset][mhoY+yOffset] = new Mho(mhoX+xOffset, mhoY+yOffset, board);\n\t\t\t\t} else {\n\t\t\t\t\tmove = Legend.SHRINK;\n\t\t\t\t}\n\n\t\t\t\t//Set the move of the mho on moveList\n\t\t\t\tmoveList[mhoX][mhoY] = move;\n\n\t\t\t\t//remove the mhoX and mhoY in mhoLocations\n\t\t\t\tmhoLocations.remove(i*2+1);\n\t\t\t\tmhoLocations.remove(i*2);\n\n\t\t\t\t//Call moveAllignedMhos() again, because the list failed to be checked through completely\n\t\t\t\tmoveAllignedMhos();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}", "public void stopMoving()\n {\n mouthPosition = 0;\n }", "private void move() {\n\t\t\tangle += Math.PI/24;\n\t\n\t\t\tcow.locX = Math.sin(angle) * 2.5 + player.getLocation().getX();\n\t\t\tcow.locZ = Math.cos(angle) * 2.5 + player.getLocation().getZ();\n\t\t\t\n\t\t\tLocation loc = new Location(player.getWorld(), cow.locX, player.getLocation().getY() + 1.5, cow.locZ);\n\t\t\tloc.setDirection(player.getLocation().subtract(loc).toVector()); //Look at the player\n\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, cow.getId(), loc);\n\t\t}", "private void moveRemainingMhos() {\n\t\t\n\t\t//Iterate through every mho's X and Y values\n\t\tfor(int i = 0; i < mhoLocations.size()/2; i++) {\n\t\t\t\n\t\t\t//Assign mhoX and mhoY to the X and Y values of the mho that is currently being tested\n\t\t\tint mhoX = mhoLocations.get(i*2);\n\t\t\tint mhoY = mhoLocations.get(i*2+1);\n\t\t\t\n\t\t\t//Check if there is a fence 1 block away from the mho\n\t\t\tif(newMap[mhoX][mhoY+1] instanceof Fence || newMap[mhoX][mhoY-1] instanceof Fence || newMap[mhoX-1][mhoY] instanceof Fence || newMap[mhoX-1][mhoY+1] instanceof Fence || newMap[mhoX-1][mhoY-1] instanceof Fence || newMap[mhoX+1][mhoY] instanceof Fence || newMap[mhoX+1][mhoY+1] instanceof Fence || newMap[mhoX+1][mhoY-1] instanceof Fence) {\n\t\t\t\t\n\t\t\t\t//Assign the new map location as a Mho\n\t\t\t\tnewMap[mhoX][mhoY] = new BlankSpace(mhoX, mhoY, board);\n\t\t\t\t\n\t\t\t\t//Set the mho's move in the moveList\n\t\t\t\tmoveList[mhoX][mhoY] = Legend.SHRINK;\n\t\t\t\t\n\t\t\t\t//remove each X and Y from mhoLocations\n\t\t\t\tmhoLocations.remove(i*2+1);\n\t\t\t\tmhoLocations.remove(i*2);\n\t\t\t\t\n\t\t\t\t//Call moveRemainingMhos again, because the list failed to be checked through completely\n\t\t\t\tmoveRemainingMhos();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "public void move() {\n\n int move_position_x = 0;\n int move_postion_y = 0;\n Random random = new Random();\n do {\n\n move_position_x = 0;\n move_postion_y = 0;\n int direction = random.nextInt(6);\n switch (direction) {\n case 0:\n move_postion_y = -1;\n break;\n case 1:\n case 4:\n move_postion_y = 1;\n break;\n case 2:\n case 5:\n move_position_x = 1;\n break;\n case 3:\n move_position_x = -1;\n }\n } while ((this.positionX + move_position_x < 0) || (this.positionX + move_position_x >= size_of_map) || (\n this.positionY + move_postion_y < 0) || (this.positionY + move_postion_y >= size_of_map));\n this.positionX += move_position_x;\n this.positionY += move_postion_y;\n }", "private void moveClawUp() {\n\t\tMotor.A.setSpeed(45);\n\t\tMotor.A.rotate(90);\n\t\t\n\t}", "private void nextPiece() {\n if (_c == M && _r <= M) {\n _c = 1;\n _r++;\n } else if (_r > M) {\n _move = null;\n } else {\n _c++;\n }\n }", "public void moveM() {\r\n\t\tif (this.barcaIzq)\r\n\t\t\tthis.numMisioneros--;\r\n\t\telse\r\n\t\t\tthis.numMisioneros++;\r\n\r\n\t\tcambiarDeOrilla();\r\n\r\n\t}", "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 }", "private void moveMower(final char movement) {\n int nextYPosition = this.getPosition().getPositionY();\n int nextXPosition = this.getPosition().getPositionX();\n switch (this.getPosition().getOrientation()) {\n case N:\n nextYPosition++;\n break;\n case S:\n nextYPosition--;\n break;\n case W:\n nextXPosition--;\n break;\n case E:\n default:\n nextXPosition++;\n break;\n }\n if (garden.isPositionAvailable(nextXPosition, nextYPosition)) {\n logger.debug(\"Moving mower : ({}, {}) -> ({}, {})\",\n this.position.getPositionX(), this.position.getPositionY(),\n nextXPosition, nextYPosition);\n this.getPosition().setPositionX(nextXPosition);\n this.getPosition().setPositionY(nextYPosition);\n } else {\n logger.debug(\"Cannot move mower : ({}, {}) -> ({}, {})\",\n this.position.getPositionX(), this.position.getPositionY(),\n this.position.getPositionX(), this.position.getPositionY());\n }\n }", "public void move() {\n\t\tif ( board.getLevel() == 5 )\n\t\t\tmovementIndex = ( movementIndex + 1 ) % movement.length;\n\t}", "public void movePacmans() {\n\t\ttry {\n\t\t\tgz.redraw();\n\t\t}\n\t\tcatch(NullPointerException npe) {\n\t\t\tgz.pauseGame();\n\t\t}\n\t}", "@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}", "public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}", "public void moveAll()\n\t{\n\t\tmoveOutput = \"\";\n\t\tfor (int i = 0; i < 20; i++)\n\t\t{\n\t\t\tif (river[i] != null)\n\t\t\t{\n\t\t\t\triver[i].move(i);\n\t\t\t}\n\t\t}\n\t}", "void move(int steps);", "private void changeCharacterLocations() {\n if (locationAnimationDirectionSwitch) {\n locationAnimationTicker++;\n } else {\n locationAnimationTicker--;\n }\n\n // While the user's FaceCharacter bobs up, their opponent should bob down.\n heroLocation[1] += locationAnimationTicker;\n antagonistLocation[1] -= locationAnimationTicker;\n\n if (locationAnimationTicker == 5 || locationAnimationTicker == -5) {\n locationAnimationDirectionSwitch = !locationAnimationDirectionSwitch;\n }\n }", "public void move()\n\t{\n time++;\n\t\tif (time % 10 == 0)\n\t\t{\n\t\t\thistogramFrame.clearData();\n\t\t}\n\t\tfor (int i = 0; i < nwalkers; i++)\n\t\t{\n\t\t\tdouble r = random.nextDouble();\n\t\t\tif (r <= pRight)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] + 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] - 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft + pDown)\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] - 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] + 1;\n\t\t\t}\n\t\t\tif (time % 10 == 0)\n\t\t\t{\n\t\t\t\thistogramFrame.append(Math.sqrt(xpositions[i] * xpositions[i]\n\t\t\t\t\t\t+ ypositions[i] * ypositions[i]));\n\t\t\t}\n\t\t\txmax = Math.max(xpositions[i], xmax);\n\t\t\tymax = Math.max(ypositions[i], ymax);\n\t\t\txmin = Math.min(xpositions[i], xmin);\n\t\t\tymin = Math.min(ypositions[i], ymin);\n\t\t}\n\t}", "public void move()\n {\n daysSurvived+=1;\n\n energy -= energyLostPerDay;\n\n Random generator = new Random();\n\n //losowo okreslony ruch na podstawie genomu\n int turnIndex = generator.nextInt((int)Math.ceil(Genome.numberOfGenes));\n int turn = genome.getGenome().get(turnIndex);\n\n //wywolujemy metode obrotu - dodaje odpowiednio liczbe do aktualnego kierunku\n direction.turn(turn);\n\n //zmieniamy pozycje zwierzaka przez dodanie odpowiedniego wektora\n position = position.add(direction.move());\n //walidacja pozycji tak, by wychodzac za mape byc na mapie z drugiej strony\n position.validatePosition(map.getWidth(),map.getHeight());\n\n moveOnSimulation();\n\n //jesli po ruchu zwierzaczek nie ma juz energii na kolejny ruch\n if(energy < energyLostPerDay )\n {\n this.animalHungry = true;\n }\n }", "private void moveVerticalMhos() {\n\n\t\t//Assign playerX and playerY to the X and Y of the player\n\t\tint playerX = getNewPlayerLocation()[0];\n\t\tint playerY = getNewPlayerLocation()[1];\n\n\t\t//Iterate through every mho's X and Y values\n\t\tfor(int i = 0; i < mhoLocations.size()/2; i++) {\n\n\t\t\t//Assign mhoX and mhoY to the X and Y values of the mho that is currently being tested\n\t\t\tint mhoX = mhoLocations.get(i*2);\n\t\t\tint mhoY = mhoLocations.get(i*2+1);\n\n\t\t\t//set the default X and Y offsets to 0, and the move to NO_MOVEMENT\n\t\t\tint xOffset = 0;\n\t\t\tint yOffset = 0;\n\t\t\tchar move = Legend.NO_MOVEMENT;\n\n\t\t\t//If the horizontal distance is less than or equal to the vertical distance, change the xOffset and yOffset\n\t\t\tif((Math.abs(playerX-mhoX))<=(Math.abs(playerY-mhoY))) {\n\t\t\t\tif(playerY > mhoY) {\n\t\t\t\t\tyOffset = 1;\n\t\t\t\t\tmove = Legend.DOWN;\n\t\t\t\t} else {\n\t\t\t\t\tyOffset = -1;\n\t\t\t\t\tmove = Legend.UP;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//If the new location is an instance of BlankSpace, move the mho\n\t\t\tif(newMap[mhoX+xOffset][mhoY+yOffset] instanceof BlankSpace) {\n\t\t\t\tnewMap[mhoX][mhoY] = new BlankSpace(mhoX, mhoY, board);\n\t\t\t\t\n\t\t\t\t//If the new location is a player, shrink the player and call gameOver()\n\t\t\t\tif(newMap[mhoX+xOffset][mhoY+yOffset] instanceof Player) {\n\t\t\t\t\tmoveList[mhoX+xOffset][mhoY+yOffset] = Legend.SHRINK;\n\t\t\t\t\tgameOver();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Set the mho's move in the moveList\n\t\t\t\tmoveList[mhoX][mhoY] = move;\n\t\t\t\t\n\t\t\t\t//Assign the new map location as a Mho\n\t\t\t\tnewMap[mhoX+xOffset][mhoY+yOffset] = new Mho(mhoX+xOffset, mhoY+yOffset, board);\n\t\t\t\t\n\t\t\t\t//remove each X and Y from mhoLocations\n\t\t\t\tmhoLocations.remove(i*2+1);\n\t\t\t\tmhoLocations.remove(i*2);\n\t\t\t\t\n\t\t\t\t//Call moveVerticalMhos again, because the list failed to be checked through completely\n\t\t\t\tmoveVerticalMhos();\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\treturn;\n\t}", "@Override\n\tpublic void move(List<TileCollision> collidedTiles) \n\t{\t\t\t \n\t\tfor (TileCollision tc : collidedTiles)\n\t\t{\n\n\t\t\tint tileType = tc.theTile.getTileType();\n\n\t\t\tisWall = false;\n\t\t\t// 11 and 12 are the only tiles that are not walls.\n\t\t\tfor (int i = 0; i < 11; i++)\n\t\t\t{\n\t\t\t\tif (tileType == i) isWall = true;\n\t\t\t}\n\n\t\t\tif (tileType == 13 && tc.collisionSide == 0)\n\t\t\t{\n\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\tsetDirection(Direction.RIGHT.getValue());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (isWall)\n\t\t {\n\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\tsetDirection(randomDirection());\n\t\t\t\treturn;\n\t\t }\n\n\t\t\t// Only gets executed when pacman is in it normal state, and not in\n\t\t\t// hunter mode.\n\t\t\tif(!pacman.isHunter())\n\t\t\t{\n\t\t\t if(isPacmanToClose() && !inToCloseZone)\n\t\t\t {\n\t\t\t \tinToCloseZone = true;\n\n\t\t\t \tif (pacman.movesUp() || pacman.movesDown())\n\t\t\t \t{\n\t\t\t \t\treverseVerticalDirection();\n\t\t\t \t}\n\t\t\t \tif (pacman.movesLeft() || pacman.movesRight())\n\t\t\t \t{\n\t\t\t \t\treverseHorizontalDirection();\t\t\t \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t else \n\t\t\t\t{\n\t\t\t\t\tinToCloseZone = false;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// Only gets executed when pacman eat a power up and is the hunter.\n\t\t\telse if(pacman.isHunter())\n\t\t {\n\t\t\t if (isWall)\n\t\t\t { \n\t\t\t\t\tmoveUpToTileSide(tc);\n\t\t\t\t\tif (getDirection() == Direction.UP.getValue())\n\t\t\t\t\t{\n\t\t\t\t\t\tif(collided)\n\t\t\t\t\t\t{\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tsetDirection(Direction.DOWN.getValue());\t\t\t\t\t \n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsetDirection(Direction.RIGHT.getValue());\n\t\t\t\t\t\t\tcollided = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t else if (getDirection() == Direction.RIGHT.getValue())\n\t\t\t\t\t {\n\t\t\t if(collided)\n\t\t\t {\n\t\t\t \t setDirection(Direction.DOWN.getValue());\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.UP.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t }\n\t\t\t\t\t }\n\n\t\t\t\t\t else if (getDirection() == Direction.LEFT.getValue())\n\t\t\t\t\t {\n\t\t\t\t\t\t if(collided)\n\t\t\t\t\t\t {\n\t\t\t \t setDirection(Direction.RIGHT.getValue());\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.UP.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\n\t\t\t\t\t else if (getDirection() == Direction.DOWN.getValue())\n\t\t\t\t\t {\n\t\t\t\t\t\t if(collided)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t setDirection(Direction.LEFT.getValue()); \t \n\t\t\t\t\t\t }\n\t\t\t\t\t else\n\t\t\t\t\t {\n\t\t\t\t\t\t\t setDirection(Direction.RIGHT.getValue()); \n\t\t\t\t\t\t\t collided = true;\n\t\t\t\t\t } \n\t\t\t\t\t }\t\t\t\t\t\t \n\t\t\t } \n\t\t\t else\n\t\t\t {\n\t\t\t collided = false;\t\t\t\t\t \n\t\t\t }\n\t\t }\n\t }\n\t}", "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}", "public void updateMhos() { \r\n\r\n\t\tfor (int i = 0; i < 12; i++) {\r\n\t\t\tif (Mhos[i].isAlive) {// Mho AI\r\n\t\t\t\t\r\n\t\t\t\tif (Mhos[i].x == p.x) // directly vertical\r\n\t\t\t\t\tif (Mhos[i].y > p.y) // move up\r\n\t\t\t\t\t\tmoveMho(i, 0, -1);\r\n\t\t\t\t\telse // move down\r\n\t\t\t\t\t\tmoveMho(i, 0, 1);\r\n\r\n\t\t\t\telse if (Mhos[i].y == p.y) { // directly horizontal\r\n\t\t\t\t\tif (Mhos[i].x > p.x) {\r\n\t\t\t\t\t\tmoveMho(i, -1, 0);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmoveMho(i, 1, 0);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tint relPos = Mhos[i].relToPlayer(p.x, p.y);\r\n\t\t\t\t\tint horDist = Math.abs(Mhos[i].x - p.x);\r\n\t\t\t\t\tint verDist = Math.abs(Mhos[i].y - p.y);\r\n\r\n\t\t\t\t\tif (relPos == 1) { // top right\r\n\t\t\t\t\t\tif (!(board[Mhos[i].x - 1][Mhos[i].y + 1] instanceof Fence\r\n\t\t\t\t\t\t\t\t|| board[Mhos[i].x - 1][Mhos[i].y + 1] instanceof Mho)) {\r\n\t\t\t\t\t\t\t// directly diagonal\r\n\t\t\t\t\t\t\tmoveMho(i, -1, 1);\r\n\t\t\t\t\t\t} else if (horDist >= verDist && !(board[Mhos[i].x - 1][Mhos[i].y] instanceof Fence\r\n\t\t\t\t\t\t\t\t|| board[Mhos[i].x - 1][Mhos[i].y] instanceof Mho)) // horizontal\r\n\t\t\t\t\t\t\tmoveMho(i, -1, 0);\r\n\r\n\t\t\t\t\t\telse if (horDist <= verDist && !(board[Mhos[i].x][Mhos[i].y + 1] instanceof Fence)\r\n\t\t\t\t\t\t\t\t|| board[Mhos[i].x][Mhos[i].y + 1] instanceof Fence) // vertical\r\n\t\t\t\t\t\t\tmoveMho(i, 0, 1);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// tries to move on a fence now\r\n\t\t\t\t\t\telse if (board[Mhos[i].x - 1][Mhos[i].y + 1] instanceof Fence)\r\n\t\t\t\t\t\t\tmoveMho(i, -1, 1);\r\n\t\t\t\t\t\telse if (horDist >= verDist && board[Mhos[i].x - 1][Mhos[i].y] instanceof Fence)\r\n\t\t\t\t\t\t\tmoveMho(i, -1, 0);\r\n\t\t\t\t\t\telse if (horDist >= verDist && board[Mhos[i].x][Mhos[i].y + 1] instanceof Fence)\r\n\t\t\t\t\t\t\tmoveMho(i, 0, 1);\r\n\r\n\t\t\t\t\t} else if (relPos == 2) { // top left\r\n\t\t\t\t\t\tif (!(board[Mhos[i].x + 1][Mhos[i].y + 1] instanceof Fence\r\n\t\t\t\t\t\t\t\t|| board[Mhos[i].x + 1][Mhos[i].y + 1] instanceof Mho)) {\r\n\t\t\t\t\t\t\t// directly diagonal\r\n\t\t\t\t\t\t\tmoveMho(i, 1, 1);\r\n\t\t\t\t\t\t} else if (horDist >= verDist && !(board[Mhos[i].x + 1][Mhos[i].y] instanceof Fence\r\n\t\t\t\t\t\t\t\t|| board[Mhos[i].x + 1][Mhos[i].y] instanceof Mho)) // horizontal\r\n\t\t\t\t\t\t\tmoveMho(i, 1, 0);\r\n\r\n\t\t\t\t\t\telse if (horDist <= verDist && !(board[Mhos[i].x][Mhos[i].y + 1] instanceof Fence)\r\n\t\t\t\t\t\t\t\t|| board[Mhos[i].x][Mhos[i].y + 1] instanceof Fence) // vertical\r\n\t\t\t\t\t\t\tmoveMho(i, 0, 1);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// tries to move on a fence now\r\n\t\t\t\t\t\telse if (board[Mhos[i].x + 1][Mhos[i].y + 1] instanceof Fence)\r\n\t\t\t\t\t\t\tmoveMho(i, 1, 1);\r\n\t\t\t\t\t\telse if (horDist >= verDist && board[Mhos[i].x + 1][Mhos[i].y] instanceof Fence)\r\n\t\t\t\t\t\t\tmoveMho(i, 1, 0);\r\n\t\t\t\t\t\telse if (horDist >= verDist && board[Mhos[i].x][Mhos[i].y + 1] instanceof Fence)\r\n\t\t\t\t\t\t\tmoveMho(i, 0, 1);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} else if (relPos == 3) { // bottom left\r\n\t\t\t\t\t\tif (!(board[Mhos[i].x + 1][Mhos[i].y - 1] instanceof Fence\r\n\t\t\t\t\t\t\t\t|| board[Mhos[i].x + 1][Mhos[i].y - 1] instanceof Mho)) {\r\n\t\t\t\t\t\t\t// directly diagonal\r\n\t\t\t\t\t\t\tmoveMho(i, 1, -1);\r\n\t\t\t\t\t\t} else if (horDist >= verDist && !(board[Mhos[i].x + 1][Mhos[i].y] instanceof Fence\r\n\t\t\t\t\t\t\t\t|| board[Mhos[i].x + 1][Mhos[i].y] instanceof Mho)) // horizontal\r\n\t\t\t\t\t\t\tmoveMho(i, 1, 0);\r\n\r\n\t\t\t\t\t\telse if (horDist <= verDist && !(board[Mhos[i].x][Mhos[i].y - 1] instanceof Fence)\r\n\t\t\t\t\t\t\t\t|| board[Mhos[i].x][Mhos[i].y - 1] instanceof Fence) // vertical\r\n\t\t\t\t\t\t\tmoveMho(i, 0, -1);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// tries to move on a fence now\r\n\t\t\t\t\t\telse if (board[Mhos[i].x + 1][Mhos[i].y - 1] instanceof Fence)\r\n\t\t\t\t\t\t\tmoveMho(i, 1, -1);\r\n\t\t\t\t\t\telse if (horDist >= verDist && board[Mhos[i].x + 1][Mhos[i].y] instanceof Fence)\r\n\t\t\t\t\t\t\tmoveMho(i, 1, 0);\r\n\t\t\t\t\t\telse if (horDist >= verDist && board[Mhos[i].x][Mhos[i].y - 1] instanceof Fence)\r\n\t\t\t\t\t\t\tmoveMho(i, 0, -1);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} else if (relPos == 4) { // bottom right\r\n\t\t\t\t\t\tif (!(board[Mhos[i].x - 1][Mhos[i].y - 1] instanceof Fence\r\n\t\t\t\t\t\t\t\t|| board[Mhos[i].x - 1][Mhos[i].y - 1] instanceof Mho)) {\r\n\t\t\t\t\t\t\t// directly diagonal\r\n\t\t\t\t\t\t\tmoveMho(i, -1, -1);\r\n\t\t\t\t\t\t} else if (horDist >= verDist && !(board[Mhos[i].x - 1][Mhos[i].y] instanceof Fence\r\n\t\t\t\t\t\t\t\t|| board[Mhos[i].x - 1][Mhos[i].y] instanceof Mho)) // horizontal\r\n\t\t\t\t\t\t\tmoveMho(i, -1, 0);\r\n\r\n\t\t\t\t\t\telse if (horDist <= verDist && !(board[Mhos[i].x][Mhos[i].y - 1] instanceof Fence)\r\n\t\t\t\t\t\t\t\t|| board[Mhos[i].x][Mhos[i].y - 1] instanceof Fence) // vertical\r\n\t\t\t\t\t\t\tmoveMho(i, 0, -1);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// tries to move on a fence now\r\n\t\t\t\t\t\telse if (board[Mhos[i].x - 1][Mhos[i].y - 1] instanceof Fence)\r\n\t\t\t\t\t\t\tmoveMho(i, -1, -1);\r\n\t\t\t\t\t\telse if (horDist >= verDist && board[Mhos[i].x - 1][Mhos[i].y] instanceof Fence)\r\n\t\t\t\t\t\t\tmoveMho(i, -1, 0);\r\n\t\t\t\t\t\telse if (horDist >= verDist && board[Mhos[i].x][Mhos[i].y - 1] instanceof Fence)\r\n\t\t\t\t\t\t\tmoveMho(i, 0, -1);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public void move() {\r\n\t\tmoveCount++;\r\n\t}", "private void move()\r\n {\r\n int num = Game.random(4);\r\n String direction;\r\n if (num == 0)\r\n direction = \"north\";\r\n else if (num == 1)\r\n direction = \"east\";\r\n else if (num == 2)\r\n direction = \"south\";\r\n else //num == 3\r\n direction = \"west\";\r\n Room nextRoom = room.nextRoom(direction);\r\n if (nextRoom != null)\r\n {\r\n changeRoom(nextRoom);\r\n \r\n //Monster or Robot greets everyone was already in the room\r\n ArrayList<Person> peopleList = new ArrayList<Person>();\r\n \r\n peopleList = nextRoom.getPeople();\r\n peopleList.remove(name);\r\n \r\n String greetings =\"Hey \";\r\n for (int i=0; i<peopleList.size(); i++)\r\n \tgreetings += peopleList.get(i).getName() + \", \";\r\n\r\n if (!(peopleList.size()==0))\r\n \tsay(greetings);\r\n } \r\n \r\n }", "public void move() {\n if (!canMove) {\n return;\n }\n int moveX = currDirection == EAST ? PACE : currDirection == WEST ? -PACE : 0;\n int moveY = currDirection == NORTH ? PACE : currDirection == SOUTH ? -PACE : 0;\n if (grid == null || grid.isOutside(currX + moveX, currY + moveY)) {\n return;\n }\n currX += moveX;\n currY += moveY;\n }", "public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}", "public int[] move(){\n double inProb = Math.random();\n if (inProb < .25){\n y--;\n }\n else if (inProb < .5){\n y ++;\n }\n else if (inProb <.75){\n x--;\n }\n else {\n x++;\n }\n int[]loc = new int[2];\n loc[0] = x;\n loc[1] = y;\n \n return loc;\n }", "public void move()\n {\n double angle = Math.toRadians( getRotation() );\n int x = (int) Math.round(getX() + Math.cos(angle) * WALKING_SPEED);\n int y = (int) Math.round(getY() + Math.sin(angle) * WALKING_SPEED);\n setLocation(x, y);\n }", "public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}", "private void move() {\n resetUpdate();\n\n gameMessage.setSpace1(clientMessage.getSpace1());\n gameMessage.resetGameMessage();\n gameMessage.notify(gameMessage);\n\n\n if( liteGame.isWinner() ) endOfTheGame = true;\n }", "public static void changePosition() {\n int direction;\n int speed;\n int newTopX;\n int newTopY;\n\n for (int i = 0; i < numShapes; ++i) {\n direction = moveDirection[i];\n speed = moveSpeed[i];\n newTopX = xTopLeft[i];\n newTopY = yTopLeft[i];\n\n //the switch uses the direction the speed should be applied to in order to find the new positions\n switch (direction) {\n case 0 -> {\n newTopX = newTopX - (speed);\n xTopLeft[i] = newTopX;\n }\n //upper left 135 degrees\n case 1 -> {\n newTopX = newTopX - (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY - (speed);\n yTopLeft[i] = newTopY;\n }\n case 2 -> {\n newTopY = newTopY - (speed);\n yTopLeft[i] = newTopY;\n }\n //upper right 45 degrees\n case 3 -> {\n newTopX = newTopX + (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY - (speed);\n yTopLeft[i] = newTopY;\n }\n case 4 -> {\n newTopX = newTopX + (speed);\n xTopLeft[i] = newTopX;\n }\n //bottom right 315 degrees\n case 5 -> {\n newTopX = newTopX + (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY + (speed);\n yTopLeft[i] = newTopY;\n }\n case 6 -> {\n newTopY = newTopY + (speed);\n yTopLeft[i] = newTopY;\n }\n //bottom left 225 degrees\n case 7 -> {\n newTopX = newTopX - (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY + (speed);\n yTopLeft[i] = newTopY;\n }\n }\n }\n }", "private void moveDiagonalMhos() {\n\n\t\t//Assign playerX and playerY to the X and Y of the player\n\t\tint playerX = getNewPlayerLocation()[0];\n\t\tint playerY = getNewPlayerLocation()[1];\n\n\t\t//Iterate through every mho's X and Y values\n\t\tfor(int i = 0; i < mhoLocations.size()/2; i++) {\n\n\t\t\t//Assign mhoX and mhoY to the X and Y values of the mho that is currently being tested\n\t\t\tint mhoX = mhoLocations.get(i*2);\n\t\t\tint mhoY = mhoLocations.get(i*2+1);\n\n\t\t\t//set the default X and Y offsets to 0, and the move to NO_MOVEMENT\n\t\t\tint xOffset = 0;\n\t\t\tint yOffset = 0;\n\t\t\tchar move;\n\n\t\t\t//Check if the playerX is greater to mhoX (aligned on x-axis) (to find direction of diagonal move)\n\t\t\tif(playerX > mhoX) {\n\n\t\t\t\t//check if playerY is greater to mhoY (to find direction of diagonal move)\n\t\t\t\tif(playerY > mhoY) {\n\t\t\t\t\txOffset = 1;\n\t\t\t\t\tyOffset = 1;\n\t\t\t\t\tmove = Legend.DOWN_RIGHT;\n\t\t\t\t} else {\n\t\t\t\t\txOffset = 1;\n\t\t\t\t\tyOffset = -1;\n\t\t\t\t\tmove = Legend.UP_RIGHT;\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\t//check if playerY is greater to mhoY (to find direction of diagonal move)\n\t\t\t\tif(playerY > mhoY) {\n\t\t\t\t\txOffset = -1;\n\t\t\t\t\tyOffset = 1;\n\t\t\t\t\tmove = Legend.DOWN_LEFT;\n\t\t\t\t} else {\n\t\t\t\t\txOffset = -1;\n\t\t\t\t\tyOffset = -1;\n\t\t\t\t\tmove = Legend.UP_LEFT;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Only move the mho if its location is an instance of BlankSpace or Player\n\t\t\tif(newMap[mhoX+xOffset][mhoY+yOffset] instanceof BlankSpace || newMap[mhoX+xOffset][mhoY+yOffset] instanceof Player) {\n\n\t\t\t\t//Assign the previous location as a BlankSpace\n\t\t\t\tnewMap[mhoX][mhoY] = new BlankSpace(mhoX, mhoY, board);\n\n\t\t\t\t//If the new location is a player, shrink the player and call gameOver()\n\t\t\t\tif(newMap[mhoX+xOffset][mhoY+yOffset] instanceof Player) {\n\t\t\t\t\tmoveList[mhoX+xOffset][mhoY+yOffset] = Legend.SHRINK;\n\t\t\t\t\tgameOver();\n\t\t\t\t}\n\n\t\t\t\t//Assign the new location as a mho\n\t\t\t\tnewMap[mhoX+xOffset][mhoY+yOffset] = new Mho(mhoX+xOffset, mhoY+yOffset, board);\n\n\t\t\t\t//Assign move to the mho's old location\n\t\t\t\tmoveList[mhoX][mhoY] = move;\n\n\t\t\t\t//remove each X and Y from mhoLocations\n\t\t\t\tmhoLocations.remove(i*2+1);\n\t\t\t\tmhoLocations.remove(i*2);\n\n\t\t\t\t//Call moveDiagonalMhos again, because the list failed to be checked through completely\n\t\t\t\tmoveDiagonalMhos();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "public void move() {\n\t\tsetHealth(getHealth() - 1);\n\t\t//status();\n\t\tint row = getPosition().getRow() ;\n\t\tint column = getPosition().getColumn();\n\t\tint randomInt = (int)((Math.random()*2) - 1);\n\t\t\n\t\tif(hunter == false && row < 33) {\n\t\t\tif(row == 32) {\n\t\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(row == 0) {\n\t\t\t\tgetPosition().setCoordinates(row + 1 , randomInt);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 99) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column - 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\tif(column == 0) {\n\t\t\t\tgetPosition().setCoordinates(randomInt , column + 1);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t}\n\t\tif(hunter == false && row > 32) {\n\t\t\t//setHealth(100);\n\t\t\tgetPosition().setCoordinates(row -1 , randomInt);\n\t\t\tsetPosition(getPosition()) ;\n\t\t}\n\t\telse {\n\t\t\tif(row < 65 && hunter == true) {\n\t\t\t\tgetPosition().setCoordinates(row + 1, column);\n\t\t\t\tsetPosition(getPosition()) ;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgetPosition().setCoordinates(65, column);\n\t\t\t\tsetPosition(getPosition());\n\t\t\t\t//Check if there is a gazelle\n\t\t\t\tPair [][] range = {{Drawer.pairs[row+1][column-1],Drawer.pairs[row+1][column],\n\t\t\t\t\t\t\t Drawer.pairs[row+1][column+1]}, {\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column-1],\n\t\t\t\t\t\t\t Drawer.pairs[row+2][column],Drawer.pairs[row+2][column+1]}};\n\t\t\t\t\n\t\t\t\tfor(Pair [] line: range) {\n\t\t\t\t\tfor(Pair prey: line) {\n\t\t\t\t\t\tif(prey.getAnimal() instanceof Gazelle ) {\n\t\t\t\t\t\t\tattack();\n\t\t\t\t\t\t\tprey.getAnimal().die();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void move() { \n\t\tSystem.out.println(\"MOVING\");\n\t\tswitch(direction) {\n\t\t\tcase NORTH: {\n\t\t\t\tyloc -= ySpeed;\n\t\t\t}\n\t\t\tcase SOUTH: {\n\t\t\t\tyloc+= xSpeed;\n\t\t\t}\n\t\t\tcase EAST: {\n\t\t\t\txloc+= xSpeed;\n\t\t\t}\n\t\t\tcase WEST: {\n\t\t\t\txloc-= xSpeed;\n\t\t\t}\n\t\t\tcase NORTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase NORTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc+=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc+= ySpeed;\n\t\t\t}\n\t\t}\n\t}", "public void makeMove() {\n\t\tif (CheckForVictory(this)) {\n\t\t\t// System.out.println(\"VICTORY\");\n\t\t\tInterface.goalReached = true;\n\t\t\tfor (int i = 0; i < tmpStrings.length; i++) {\n\t\t\t\tif (moveOrder[i] == 0)\n\t\t\t\t\ttmpStrings[i] = \"turn left\";\n\t\t\t\telse if (moveOrder[i] == 1)\n\t\t\t\t\ttmpStrings[i] = \"turn right\";\n\t\t\t\telse\n\t\t\t\t\ttmpStrings[i] = \"go forward\";\n\n\t\t\t\tInterface.info.setText(\"Generation: \" + Parallel.generationNo + 1 + \" and closest distance to goal: \" + 0);\n\t\t\t}\n\t\t} else {\n\t\t\tmoveOrder[this.movesMade] = moves.remove();\n\t\t\tswitch (moveOrder[this.movesMade]) {\n\t\t\tcase (0):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 0)\n\t\t\t\t\tface = 3;\n\t\t\t\telse\n\t\t\t\t\tface--;\n\t\t\t\tbreak;\n\t\t\tcase (1):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 3)\n\t\t\t\t\tface = 0;\n\t\t\t\telse\n\t\t\t\t\tface++;\n\t\t\t\tbreak;\n\t\t\tcase (2):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 0 && Y - 1 >= 0)\n\t\t\t\t\tY--;\n\t\t\t\telse if (face == 1 && X + 1 <= map[0].length - 1)\n\t\t\t\t\tX++;\n\t\t\t\telse if (face == 2 && Y + 1 <= map.length - 1)\n\t\t\t\t\tY++;\n\t\t\t\telse if (face == 3 && X - 1 >= 0)\n\t\t\t\t\tX--;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Error making move :(\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "protected void move()\n {\n // Find a location to move to.\n Debug.print(\"Fish \" + toString() + \" attempting to move. \");\n Location nextLoc = nextLocation();\n\n // If the next location is different, move there.\n if ( ! nextLoc.equals(location()) )\n {\n // Move to new location.\n Location oldLoc = location();\n changeLocation(nextLoc);\n\n // Update direction in case fish had to turn to move.\n Direction newDir = environment().getDirection(oldLoc, nextLoc);\n changeDirection(newDir);\n Debug.println(\" Moves to \" + location() + direction());\n }\n else\n Debug.println(\" Does not move.\");\n }", "public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\r\n\t}", "private void movement()\n {\n if(gameOverBool==false)\n {\n if(Greenfoot.isKeyDown(\"up\"))\n {\n setLocation(getX(), getY()-6);\n setRotation(2);\n } else if (Greenfoot.isKeyDown(\"down\")){\n setLocation(getX(), getY()+6); \n setRotation(8);\n } else{\n setRotation(5);\n } \n }\n }", "public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }", "private void drawPacman(Graphics g) {\n if (player.frameCount < 1) {\n /* Draw mouth closed */\n g.drawImage(pacmanImage, player.current.x, player.current.y, null);\n } else {\n /* Draw mouth open in appropriate direction */\n if (player.frameCount >= 3)\n player.frameCount = 0;\n\n switch (player.currDirection) {\n case 3:\n g.drawImage(pacmanLeftImage, player.current.x, player.current.y, Color.BLACK, null);\n break;\n case 1:\n g.drawImage(pacmanRightImage, player.current.x, player.current.y, Color.BLACK, null);\n break;\n case 0:\n g.drawImage(pacmanUpImage, player.current.x, player.current.y, Color.BLACK, null);\n break;\n case 2:\n g.drawImage(pacmanDownImage, player.current.x, player.current.y, Color.BLACK, null);\n break;\n }\n }\n }", "void move() {\r\n\t\tif (x + xa < 0){\r\n\t\t\txa = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (x + xa > game.getWidth() - diameter){\r\n\t\t\txa = -mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (y + ya < 0){\r\n\t\t\tya = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (y + ya > game.getHeight() - diameter){\r\n\t\t\tgame.gameOver();\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (colisionPalas()){\r\n\t\t\tya = -mov;\r\n\t\t}\r\n\t\telse if(colisionEstorbos()){\r\n\t\t\tgame.puntuacion+=2;\r\n\t\t}\r\n\t\t\r\n\t\tx = x + xa;\r\n\t\ty = y + ya;\r\n\t}", "public void moveForward()\r\n\t{\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] -= Math.sin(Math.toRadians(heading-90))*distance; \r\n\t\t\tthis.loc[2] -= Math.cos(Math.toRadians(heading-90))*distance;\r\n\t\t}\r\n\t}", "public void move() {\r\n posX += movementX;\r\n posY += movementY;\r\n anchorX += movementX;\r\n anchorY += movementY;\r\n }", "private void moveOrTurn() {\n\t\t// TEMP: look at center of canvas if out of bounds\n\t\tif (!isInCanvas()) {\n\t\t\tlookAt(sens.getXMax() / 2, sens.getYMax() / 2);\n\t\t}\n\n\t\t// if we're not looking at our desired direction, turn towards. Else, move forward\n\t\tif (needToTurn()) {\n\t\t\tturnToDesiredDirection();\n\t\t} else {\n\t\t\tmoveForward(2.0);\n\t\t}\n\n\t\t// move in a random direction every 50 roaming ticks\n\t\tif (tickCount % 100 == 0) {\n\t\t\tgoRandomDirection();\n\t\t}\n\t\ttickCount++;\n\t}", "@Override\n public void move(){\n setDirectionSpeed(180, 7);\n this.moveTowardsAPoint(target.getCenterX(), target.getCenterY());\n }", "public void movePiece(Coordinate from, Coordinate to);", "public void moverPlataformas(){\n\t\tfor ( int x=0 ; x < 2; x++){\n\t\t\tquitarPoder(x);\n\t\t\tgame.moverPersonaje(x);\n\t\t}\n\t}", "private void moveRobots() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == Player.PlayerType.Robot) {\n\t\t\t\tPoint old = new Point(p.getX(), p.getY());\n\t\t\t\tPoint newPoint = new Point(p.getX(), p.getY());\n\t\t\t\t\n\t\t\t\toccupiedPositions.remove(old);\n\t\t\t\t\n\t\t\t\tint playerX = p.getPlayerToFollow().getX();\n\t\t\t\tint playerY = p.getPlayerToFollow().getY();\n\t\t\t\t\n\t\t\t\t//move towards the agent\n\t\t\t\tif(p.getX() < playerX)\n\t\t\t\t\tnewPoint.x += 1;\n\t\t\t\telse if(p.getX() > playerX)\n\t\t\t\t\tnewPoint.x -= 1;\n\t\t\t\t\n\t\t\t\tif(p.getY() < playerY)\n\t\t\t\t\tnewPoint.y += 1;\n\t\t\t\telse if(p.getY() > playerY)\n\t\t\t\t\tnewPoint.y -= 1;\n\t\t\t\t\n\t\t\t\tp.setPosition(newPoint);\n\t\t\t\t\n\t\t\t\t//check if the robot has moved on to something\n\t\t\t\tif(occupiedPositions.contains(newPoint)) { \t\t// check if the position is occupied\n\t\t\t\t\tfor(Player p2 : playerList) { \t\t\t\n\t\t\t\t\t\tif(!p.getName().equals(p2.getName())) {\t// check so it not is the robot itself\n\t\t\t\t\t\t\tif(newPoint.equals(p2.getPosition())) {\n\t\t\t\t\t\t\t\tif(p2.getType() == PlayerType.Robot) { // if it is a robot, both should be rubble\n\t\t\t\t\t\t\t\t\tp2.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp2.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tp.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tHandleCommunication.broadcastToClient(null, server.getConnectedClientList(), SendSetting.ChangedType, p.getName(), p2.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(p2.getType() == PlayerType.Rubble) { // if it is rubble\n\t\t\t\t\t\t\t\t\tp.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tHandleCommunication.broadcastToClient(null, server.getConnectedClientList(), SendSetting.ChangedType, p.getName(), p2.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(p2.getType() == PlayerType.Agent) {\n\t\t\t\t\t\t\t\t\tString send = generateSendableHighscoreList();\n\t\t\t\t\t\t\t\t\tserver.sendMessageToClient(p2.getName(), \"@132@\" + highscore.size() + \"@\" + send);\n\t\t\t\t\t\t\t\t\tserver.addTextToLoggingWindow(\"Robot killed player (\" + p2.getName() + \")\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\toccupiedPositions.add(newPoint);\n\t\t\t\tserver.broadcastToClient(p.getName(), SendSetting.PlayerMoved, old, newPoint);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t//send that it is agents turn again\n\t\tserver.broadcastToClient(null, SendSetting.AgentsTurnToMove, null, null);\n\t}", "public void slideSnowman(double getSeconds) {\n\n //Ensures snowman doesnt move off screen\n if (pos >= 4 || pos <=-4) {\n turn180 = true;\n move = false;\n }\n\n //turn 45 degree so snowman faces direction of motion\n if (turn45) {\n turn180 = false;\n move = false;\n /*\n * Deals with the reset button ie if reset button is pressed it remembers which\n * way it was currently moving and then turns back to that position accordinly.\n */\n if (backwards) {\n i += -1;\n //If backwards snowman needs to rotate 135 degrees to be facing right direction\n // this ensures that and will make the difference = 45 for later conditional\n difference = -i -90;\n } else{\n i += 1;\n difference = i;\n\n }\n snowmanMoveZTranslate.setTransform(Mat4Transform.rotateAroundY(i));\n snowmanMoveZTranslate.update();\n //if turned 45 degree then continue can continue sliding\n if (difference == 45) {\n turn45 = false;\n move = true;\n }\n }\n\n //turn snowman around to face opposite direction\n if(turn180) {\n i += 1;\n snowmanMoveZTranslate.setTransform(Mat4Transform.rotateAroundY(i));\n snowmanMoveZTranslate.update();\n difference = i-oldI;\n if (difference == 180){\n turn180 = false;\n increment = -increment;\n move = true;\n backwards = !backwards;\n }\n }\n\n //move in a diagonal line\n if (move) {\n pos += increment;\n snowmanMoveXTranslate.setTransform(Mat4Transform.translate(pos,0,pos));\n snowmanMoveXTranslate.update();\n oldI = i;\n }\n }", "@Override\n\tpublic void movePlayerUp() {\n\t\tpacman.changeNextDirection(Direction.up);\n //movePacman();\n\t}", "public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }", "private void move() {\n\n for (int z = snakeLength; z > 0; z--) {\n xLength[z] = xLength[(z - 1)];\n yLength[z] = yLength[(z - 1)];\n }\n\n if (left) {\n xLength[0] -= elementSize;\n }\n\n if (right) {\n xLength[0] += elementSize;\n }\n\n if (up) {\n yLength[0] -= elementSize;\n }\n\n if (down) {\n yLength[0] += elementSize;\n }\n }", "public void move() {\n\tupdateSwapTime();\n\tupdateAttackTime();\n\n\tif (enemyNear) {\n\t if (moved) {\n\t\tstopMove();\n\t\tmoved = false;\n\t }\n\t} else {\n\t if (!moved) {\n\t\tcontinueMove();\n\t\tmoved = true;\n\t }\n\n\t x += dx;\n\t y += dy;\n\n\t if (x < speed) {\n\t\tx = speed;\n\t\tdx = (-1) * dx;\n\t }\n\n\t if (y < speed) {\n\t\ty = speed;\n\t\tdy = (-1) * dy;\n\t }\n\n\t if (x > MapSize.getSIZE().getWidth() - 40) {\n\t\tx = MapSize.getSIZE().getWidth() - 40;\n\t\tdx = (-1) * dx;\n\t }\n\n\t if (y > MapSize.getSIZE().getHeight() - 40) {\n\t\ty = MapSize.getSIZE().getHeight() - 40;\n\t\tdy = (-1) * dy;\n\t }\n\t}\n }", "public void move() {\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n\n lista[i].move();\n }\n }", "public void move(final String type) {\n if (pacman.doesExist()) {\n direction = pacman.move(type);\n for (Dot dot : dots) {\n if (pacman.getX() == dot.getX() && pacman.getY() == dot.getY()) {\n seconds = pacman.pacmanEatDot(dot, ghosts, seconds);\n break;\n }\n }\n repaint();\n }\n pacman.pacmanEatGhosts(ghosts);\n }", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "@Override\n public final void move() {\n int x = getPosisi().getX();\n int y = getPosisi().getY();\n int dx = 0, dy = 0;\n\n if (getWaktu() % getDeltaTime() == 0) {\n do {\n do {\n Random randomGenerator = new Random();\n dx = randomGenerator.nextInt(N_RAND) - 1;\n dy = randomGenerator.nextInt(N_RAND) - 1;\n } while (dx == 0 && dy == 0);\n } while (x + dx < 0 || x + dx > getWorldSize() - 1\n || y + dy < 0 || y + dy > getWorldSize() - 1);\n }\n setPX(x + dx);\n setPY(y + dy);\n }", "public void moveActors() {\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield.length; column++) {\n\t\t\t\tif (battlefield[row][column].getElf() != null) {\n\t\t\t\t\tbattlefield[row][column].getElf().move(battlefield, row,\n\t\t\t\t\t\t\tcolumn);\n\t\t\t\t}\n\t\t\t\tif (battlefield[row][column].getOrc() != null) {\n\t\t\t\t\tbattlefield[row][column].getOrc().move(battlefield, row,\n\t\t\t\t\t\t\tcolumn);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void move() {\n super.move(DIRECTION.getRandom());\n }", "private void movementPhase() {\n ClickObserver.getInstance().setCreatureFlag(\"\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(false);\n TheCupGUI.update();\n Board.removeCovers();\n }\n });\n for (Player p : playerList) {\n \tplayer = p;\n player.flipAllUp();\n\t ClickObserver.getInstance().setActivePlayer(player);\n\t ClickObserver.getInstance().setCreatureFlag(\"Movement: SelectMovers\");\n\t InfoPanel.uncover(player.getName());\n\t if (p.getHexesWithPiece().size() > 0) {\n\t \tClickObserver.getInstance().setClickedTerrain(p.getHexesWithPiece().get(0));\n\t }\n\t pause();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tClickObserver.getInstance().whenTerrainClicked();\n \t GUI.getHelpText().setText(\"Movement Phase: \" + player.getName()\n + \", Move your armies\");\n \t Game.getRackGui().setOwner(player);\n }\n });\n\t \n\t while (isPaused) {\n \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t }\n\t InfoPanel.cover(player.getName());\n player.flipAllDown();\n }\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(true);\n }\n });\n ClickObserver.getInstance().setCreatureFlag(\"\");\n }", "private void moveHorizontalMhos() {\n\n\t\t//Assign playerX and playerY to the X and Y of the player\n\t\tint playerX = getNewPlayerLocation()[0];\n\t\tint playerY = getNewPlayerLocation()[1];\n\n\t\t//Iterate through every mho's X and Y values\n\t\tfor(int i = 0; i < mhoLocations.size()/2; i++) {\n\n\t\t\t//Assign mhoX and mhoY to the X and Y values of the mho that is currently being tested\n\t\t\tint mhoX = mhoLocations.get(i*2);\n\t\t\tint mhoY = mhoLocations.get(i*2+1);\n\n\t\t\t//set the default X and Y offsets to 0, and the move to NO_MOVEMENT\n\t\t\tint xOffset = 0;\n\t\t\tint yOffset = 0;\n\t\t\tchar move = Legend.NO_MOVEMENT;\n\n\t\t\t//If the horizontal distance is greater than or equal to the vertical distance, change the xOffset and yOffset\n\t\t\tif((Math.abs(playerX-mhoX))>=(Math.abs(playerY-mhoY))) {\n\t\t\t\tif(playerX > mhoX) {\n\t\t\t\t\txOffset = 1;\n\t\t\t\t\tmove = Legend.RIGHT;\n\t\t\t\t} else {\n\t\t\t\t\txOffset = -1;\n\t\t\t\t\tmove = Legend.LEFT;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//If the new location is an instance of BlankSpace, move the mho\n\t\t\tif(newMap[mhoX+xOffset][mhoY+yOffset] instanceof BlankSpace) {\n\n\t\t\t\t//If the mho were to move onto a Player, call gameOver() and shrink the Player\n\t\t\t\tif(newMap[mhoX+xOffset][mhoY+yOffset] instanceof Player) {\n\t\t\t\t\tmoveList[mhoX+xOffset][mhoY+yOffset] = Legend.SHRINK;\n\t\t\t\t\tgameOver();\n\t\t\t\t}\n\n\t\t\t\t//Assign the new map location as a Mho\n\t\t\t\tnewMap[mhoX+xOffset][mhoY+yOffset] = new Mho(mhoX+xOffset, mhoY+yOffset, board);\n\n\t\t\t\t//Set the mho's move in the moveList\n\t\t\t\tmoveList[mhoX][mhoY] = move;\n\n\t\t\t\t//Assign the mho's original location as a BlankSpace in the new map\n\t\t\t\tnewMap[mhoX][mhoY] = new BlankSpace(mhoX, mhoY, board);\n\n\t\t\t\t//remove each X and Y from mhoLocations\n\t\t\t\tmhoLocations.remove(i*2+1);\n\t\t\t\tmhoLocations.remove(i*2);\n\t\t\t\t\n\t\t\t\t//Call moveHorizontalMhos again, because the list failed to be checked through completely\n\t\t\t\tmoveHorizontalMhos();\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\treturn;\n\t}", "@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 }", "public void moveUp() {\n locY = locY + 1;\n }", "public int move(Piece piece, int dices){\n int step = this.roll(dices); //and returns the new position of piece of player.\n this.piece.position += step;\n this.piece.position = (this.piece.position%40);\n System.out.println(this.name + \" is now located in Square \" + this.piece.position);\n return piece.position;\n }", "private void move(){\n \n currentAnimation = idleDown;\n \n if(playerKeyInput.allKeys[VK_W]){\n int ty = (int) (objectCoordinateY - speed + bounds.y) / 16;\n \n if(!collisionDetection((int) (objectCoordinateX + bounds.x)/16, ty)){\n objectCoordinateY -= speed;\n currentAnimation = upWalk;\n }\n } \n \n if(playerKeyInput.allKeys[VK_S]){\n int ty = (int) (objectCoordinateY + speed + bounds.y + bounds.height) / 16;\n if(!collisionDetection((int) (objectCoordinateX + bounds.x)/16, ty)){\n objectCoordinateY += speed;\n currentAnimation = downWalk;\n }\n } \n \n if(playerKeyInput.allKeys[VK_A]){\n int tx = (int) (objectCoordinateX - speed + bounds.x) / 16;\n if(!collisionDetection(tx, (int) (objectCoordinateY + bounds.y)/16)){\n objectCoordinateX -= speed;\n currentAnimation = sideWalkLeft;\n }\n } \n \n if(playerKeyInput.allKeys[VK_D]){\n int tx = (int) (objectCoordinateX + speed + bounds.x + bounds.width) / 16;\n if(!collisionDetection(tx, (int) (objectCoordinateY + bounds.y)/16)){\n objectCoordinateX += speed;\n currentAnimation = sideWalkRight;\n }\n } \n \n if(playerKeyInput.allKeys[VK_E]){\n currentAnimation = pickUp;\n } \n }", "public void onMouseClick(Location point) {\n\t Thread t6 = new MoveMouth(0, 0, canvas);\n t6.start(); \n }", "public void move(){\n\t\t\n\t}", "private void setCharacters() {\n\n for (Node node : gameState.getMazeState().getMaze().getNodes()) {\n if (pacmanPoint != null) {\n Pacman pacman = new Pacman();\n// if (gameState.getPacman().getDirection() == Direction.LEFT) {\n if (Math.abs(node.getX() - pacmanPoint.x + 2) < 3\n && Math.abs(node.getY() - pacmanPoint.y) < 3) {\n// gameState.getPacman().setCurrentNode(node);\n pacman.setMaze(Maze.A);\n pacman.setCurrentNode(node);\n gameState.setPacman(pacman);\n }\n// } else {\n// if (Math.abs(node.getX() - pacmanPoint.x) < 3\n// && Math.abs(node.getY() - pacmanPoint.y) < 3) {\n\n// }\n// }\n }\n// if (blinkyPoint != null) {\n// if (Math.abs(node.getX() - blinkyPoint.x) < 3\n// && Math.abs(node.getY() - blinkyPoint.y) < 3) {\n// blinkyGhost.setCurrentNode(node);\n// ghs.remove(blinkyGhost);\n// }\n// }\n// if (pinkyPoint != null) {\n// if (Math.abs(node.getX() - pinkyPoint.x) < 3\n// && Math.abs(node.getY() - pinkyPoint.y) < 3) {\n// pinkyGhost.setCurrentNode(node);\n// ghs.remove(pinkyGhost);\n// }\n// }\n// if (inkyPoint != null) {\n// if (Math.abs(node.getX() - inkyPoint.x) < 3\n// && Math.abs(node.getY() - inkyPoint.y) < 3) {\n// inkyGhost.setCurrentNode(node);\n// ghs.remove(inkyGhost);\n// }\n// }\n// if (suePoint != null) {\n// if (Math.abs(node.getX() - suePoint.x) < 3\n// && Math.abs(node.getY() - suePoint.y) < 3) {\n// sueGhost.setCurrentNode(node);\n// ghs.remove(sueGhost);\n// }\n// }\n// if (ghostsPoints.size() > 0) {\n// for (Point ghostPoint : ghostsPoints) {\n// if (Math.abs(node.getX() - ghostPoint.x) < 3\n// && Math.abs(node.getY() - ghostPoint.y) < 3) {\n// if (ghs.size() > 0) {\n// Ghost edibleGhost = ghs.get(0);\n// edibleGhost.setCurrentNode(node);\n// edibleGhost.setEdibleTime(100);\n// ghs.remove(0);\n// }\n// }\n// }\n// }\n }\n }", "public void paradiseMove(){\n if (!getCurrentMainCellCoordinates().equals(new DiscreteCoordinates(11, 9))) {\n move(30);\n }\n }", "public void moveEO(int move) {\n int type = move / 3;\n int[] cycle;\n if(type == 0) {cycle = new int[]{8, 4, 11, 5};}\n else if(type == 1) {cycle = new int[]{8, 3, 9, 0};}\n else if(type == 2) {cycle = new int[]{4, 0, 7, 1};}\n else if(type == 3) {cycle = new int[]{9, 6, 10, 7};}\n else if(type == 4) {cycle = new int[]{11, 1, 10, 2};}\n else {cycle = new int[]{3, 5, 2, 6};}\n\n if(move % 3 == 0) {\n int saver = eo[cycle[0]];\n eo[cycle[0]] = eo[cycle[3]];\n eo[cycle[3]] = eo[cycle[2]];\n eo[cycle[2]] = eo[cycle[1]];\n eo[cycle[1]] = saver;\n }\n else if(move % 3 == 1) {\n int saver0 = eo[cycle[0]];\n int saver1 = eo[cycle[1]];\n eo[cycle[0]] = eo[cycle[2]];\n eo[cycle[1]] = eo[cycle[3]];\n eo[cycle[2]] = saver0;\n eo[cycle[3]] = saver1;\n }\n else {\n int saver = eo[cycle[0]];\n eo[cycle[0]] = eo[cycle[1]];\n eo[cycle[1]] = eo[cycle[2]];\n eo[cycle[2]] = eo[cycle[3]];\n eo[cycle[3]] = saver;\n }\n if(move == 3 || move == 5 || move == 12 || move == 14) {\n eo[cycle[0]] = (eo[cycle[0]] + 1) % 2;\n eo[cycle[1]] = (eo[cycle[1]] + 1) % 2;\n eo[cycle[2]] = (eo[cycle[2]] + 1) % 2;\n eo[cycle[3]] = (eo[cycle[3]] + 1) % 2;\n }\n }", "public void move() {\n health -= 2; //health decrement\n age++; //age increment\n if (yPos > 300) {\n speed += 3;\n }\n boolean canMove = false;\n int distancex = (int) (Math.random() * speed);\n int distancey = (int) (Math.random() * speed);\n int counterx = r.nextInt(2);\n int countery = r.nextInt(2);\n while (!canMove) {\n distancex = (int) (Math.random() * speed);\n distancey = (int) (Math.random() * speed);\n counterx = r.nextInt(2);\n countery = r.nextInt(2);\n if (counterx == 0 && this.xPos - distancex > 0\n && countery == 0 && this.yPos - distancey > 0) {\n canMove = true;\n } else if (counterx == 1 && this.xPos + distancex < 510\n && countery == 1 && this.yPos + distancey < 530) {\n canMove = true;\n }\n }\n if (counterx == 0 && countery == 0) {\n xPos -= distancex;\n yPos -= distancey;\n } else if (counterx == 0 && countery == 1) {\n xPos -= distancex;\n yPos += distancey;\n } else if (counterx == 1 && countery == 0) {\n xPos += distancex;\n yPos -= distancey;\n } else if (counterx == 1 && countery == 1) {\n xPos += distancex;\n yPos += distancey;\n }\n }", "public void rotateCCW(){\n rotState = (rotState + 3) % 4;\n for (int i = 0; i < tiles.length; ++i){\n tiles[i] = new Point(tiles[i].y , -tiles[i].x);\n }\n }", "private void moveMonsters() {\r\n\t\tfor (AreaOrMonster obj : areas) {\r\n\t\t\tif(obj.getLeftRight()) {\r\n\t\t\t\tif(!pirate1.currentLocation.equals(new Point(obj.getX()+1, obj.getY())) && !pirate2.currentLocation.equals(new Point(obj.getX()+1, obj.getY()))) {\r\n\t\t\t\t\tobj.move();\r\n\t\t\t\t\tobj.getImageView().setX(obj.getX() * scalingFactor);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(!pirate1.currentLocation.equals(new Point(obj.getX()-1, obj.getY())) && !pirate2.currentLocation.equals(new Point(obj.getX()-1, obj.getY()))) {\r\n\t\t\t\t\tobj.move();\r\n\t\t\t\t\tobj.getImageView().setX(obj.getX() * scalingFactor);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void move() {\n\t\tif (isLuck) {\n\t\t\tif (rand.nextBoolean()) {\n\t\t\t\txPos++;\n\t\t\t}\n\t\t} else {\n\t\t\tif (rightCount < skill) {\n\t\t\t\trightCount++;\n\t\t\t\txPos++;\n\t\t\t}\n\t\t}\n\t}", "public void move()\n {\n move(WALKING_SPEED);\n }", "private void moveRandomly()\r\n {\r\n if (Greenfoot.getRandomNumber (100) == 50)\r\n turn(Greenfoot.getRandomNumber(360));\r\n else\r\n move(speed);\r\n }", "public void move(){\n x+=xDirection;\n y+=yDirection;\n }", "public void move()\r\n\t{\r\n\t\ty-=8;\r\n\t}", "public void move ()\n\t{\n\t\t//Let's try this...\n\t\tchangeFallSpeed (turnInt);\n\t\t\n\t\t\n\t\tsetX_Pos (getX_Pos () + getHSpeed ());\t//hSpeed is added onto x_pos\n\t\t//The xDimensions are updated by having hSpeed added onto them.\n\t\txDimension1 += getHSpeed ();\n\t\txDimension2 += getHSpeed ();\n\t\txDimension3 += getHSpeed ();\n\t\t\n\t\t//The if statement below ensures that the PaperAirplane does not move\n\t\t//after reaching the 300 y point. The walls around the PaperAirplane,\n\t\t//however, start to move up, creating the illusion that the\n\t\t//PaperAirplane is still falling.\n\t\tif (getY_Pos () < 300)\n\t\t{\n\t\t\tsetY_Pos (getY_Pos () + getVSpeed ());//vSpeed is added onto y_pos\n\t\t\t//The yDimensions are updated by having vSpeed added onto them.\n\t\t\tyDimension1 += getVSpeed ();\n\t\t\tyDimension2 += getVSpeed ();\n\t\t\tyDimension3 += getVSpeed ();\n\t\t}\n\t}", "public void moveAllAgents() {\n\t\tPoint moveTo \t\t= null;\n\t\tGameClient client \t= null;\n\t\t\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tclient = HandleCommunication.findClient(p.getName(), server.getConnectedClientList());\n\t\t\t\tmoveTo = getSafeTeleportPosition();\n\t\t\t\tmovePlayer(p.getName(), p.getPosition(), moveTo, false);\n\t\t\t\tserver.sendMessageToClient(client.getClientSocket(), \"@124@\" + moveTo.x + \"@\" + moveTo.y + \"@\");\n\t\t\t}\n\t\t}\n\t}", "public void pos60() throws InterruptedException{\r\n bucketOverSweeper();\r\n sleep(2500);\r\n motorShoulder.setTargetPosition(-1160);\r\n motorElbow.setTargetPosition(2271);\r\n motorElbow.setPower(POWER_ELBOW_FAST);\r\n motorShoulder.setPower(POWER_SHOULDER_FAST);\r\n sleep(1000);\r\n\r\n servoBucket.setPosition(0.5);\r\n sleep(500);\r\n\r\n motorElbow.setTargetPosition(3075);\r\n motorShoulder.setTargetPosition(-1300);\r\n motorElbow.setPower(POWER_ELBOW_FAST);\r\n motorShoulder.setPower(POWER_SHOULDER_FAST);\r\n sleep(1000);\r\n\r\n motorElbow.setTargetPosition(3500);\r\n motorElbow.setPower(POWER_ELBOW_SLOW);\r\n sleep(500);\r\n\r\n servoBucket.setPosition(MAX_BUCKET);\r\n sleep(500);\r\n\r\n motorElbow.setTargetPosition(3600);\r\n motorElbow.setPower(POWER_ELBOW_FAST);\r\n sleep(1000);\r\n\r\n servoBucket.setPosition(0.85);\r\n\r\n servoBucket.setPosition(0.80);\r\n sleep(500);\r\n\r\n servoBucket.setPosition(0.70);\r\n sleep(500);\r\n\r\n servoBucket.setPosition(0.65);\r\n sleep(500);\r\n\r\n servoBucket.setPosition(0.60);\r\n sleep(500);\r\n\r\n servoBucket.setPosition(0.55);\r\n sleep(500);\r\n\r\n servoBucket.setPosition(0.50);\r\n sleep(500);\r\n\r\n servoBucket.setPosition(0.40);\r\n sleep(500);\r\n\r\n servoBucket.setPosition(0.30);\r\n sleep(500);\r\n\r\n motorElbow.setTargetPosition(3000);\r\n motorElbow.setPower(POWER_ELBOW_FAST);\r\n sleep(500);\r\n\r\n posBucket = MAX_BUCKET;\r\n posElbow = 3000;\r\n posShoulder = -1275;\r\n sleep(3000);\r\n returnBucket();\r\n\r\n }", "public void moveCO(int move) {\n int type = move / 3;\n int[] cycle;\n if(type == 0) {cycle = new int[]{0, 6, 2, 4};}\n else if(type == 1) {cycle = new int[]{0, 4, 1, 5};}\n else if(type == 2) {cycle = new int[]{6, 0, 5, 3};}\n else if(type == 3) {cycle = new int[]{3, 5, 1, 7};}\n else if(type == 4) {cycle = new int[]{6, 3, 7, 2};}\n else {cycle = new int[]{4, 2, 7, 1};}\n\n if(move % 3 == 0) {\n int saver = co[cycle[0]];\n co[cycle[0]] = co[cycle[3]];\n co[cycle[3]] = co[cycle[2]];\n co[cycle[2]] = co[cycle[1]];\n co[cycle[1]] = saver;\n }\n else if(move % 3 == 1) {\n int saver0 = co[cycle[0]];\n int saver1 = co[cycle[1]];\n co[cycle[0]] = co[cycle[2]];\n co[cycle[1]] = co[cycle[3]];\n co[cycle[2]] = saver0;\n co[cycle[3]] = saver1;\n }\n else {\n int saver = co[cycle[0]];\n co[cycle[0]] = co[cycle[1]];\n co[cycle[1]] = co[cycle[2]];\n co[cycle[2]] = co[cycle[3]];\n co[cycle[3]] = saver;\n }\n\n if(move % 3 != 1 && !(move / 3 == 1 || move / 3 == 4)) {\n co[cycle[0]] = (co[cycle[0]] + 1) % 3;\n co[cycle[1]] = (co[cycle[1]] + 2) % 3;\n co[cycle[2]] = (co[cycle[2]] + 1) % 3;\n co[cycle[3]] = (co[cycle[3]] + 2) % 3;\n }\n }", "Move(int r, int c, int dr, int dc)\n\t{\n\t\tpieceRow = r;\n\t\tpieceCol = c;\n\t\tdestRow = dr;\n\t\tdestCol = dc;\n\t}", "public void move() {\n\t\tif(right) {\n\t\t\tgoRight();\n\t\t\tstate++;\n\t\t\tif(state > 5) {\n\t\t\t\tstate = 3;\n\t\t\t}\n\t\t}\n\t\telse if(left) {\n\t\t\tgoLeft();\n\t\t\tstate++;\n\t\t\tif(state > 2) {\n\t\t\t\tstate = 0;\n\t\t\t}\n\t\t}\n\t}", "public void moveBoss() {\n\t\tdouble position = boss.getTranslateY();\n\t\tspeed = Math.random()*30;\n\t\tif(position > 600-70) {\n\t\t\tRandom r = new Random();\n\t\t\tboss.setTranslateY(-6);\n\t\t\tboss.setTranslateX(r.nextInt(900));\n\t\t}else {\n\t\tboss.setTranslateY(position + speed);\n\t\t}\n\t}", "@Override\n public void move(double xa, double ya) {\n if (alive) {\n y += ya;\n x += xa;\n }\n }", "public boolean move() {\n\t\tint nextDirection;\n\t\tint pacmanX = parent.getPacManX();\n\t\tint pacmanY = parent.getPacManY();\n\t\t\n\t\tint[] directionPriority = new int[4];\n\t\t/** The direction is added to the priority in order to achieve it once the move is chosen */\n\t\tdirectionPriority[0]=(pacmanX-pixelLocationX)*(10)*state+GameCharacter.RIGHT;\n\t\tdirectionPriority[1]=((pacmanX-pixelLocationX)*(-10)*state+GameCharacter.LEFT);\n\t\tdirectionPriority[2]=(pacmanY-pixelLocationY)*(10)*state+GameCharacter.DOWN;\n\t\tdirectionPriority[3]=((pacmanY-pixelLocationY)*(-10)*state+GameCharacter.UP);\n\t\tArrays.sort(directionPriority);\n\t\t\n\t\tint i=3;\n\t\t\n\t\tdo {\n\t\t\tnextDirection = directionPriority[i]%10;\n\t\t\tif (nextDirection < 0) {\n\t\t\t\tnextDirection += 10;\n\t\t\t}\n\t\t\tif(isLegalMove(nextDirection) && (Math.abs(nextDirection-currentDirection) != 2) || i==0) {\n\t\t\t\tsetDirection(nextDirection);\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti--;\n\t\t}\n\t\twhile (i>=0);\n\t\treturn super.move();\n\t}", "public void move()\n {\n if (!alive) {\n return;\n }\n\n if (speedTimer > 0) {\n speedTimer --;\n } else if (speedTimer == 0 && speed != DEFAULT_SPEED) {\n speed = DEFAULT_SPEED;\n }\n\n Location last = playerLocations.get(playerLocations.size()-1);\n Location next = null;\n\n // For the speed, iterate x blocks between last and next\n\n if (direction == UPKEY)\n {\n next = getLocation(last.getX(), (int)(last.getY() - speed * getPixelSize()));\n } else if (direction == DOWNKEY)\n {\n next = getLocation(last.getX(), (int)(last.getY() + speed * getPixelSize()));\n } else if (direction == LEFTKEY)\n {\n next = getLocation((int)(last.getX() - speed * getPixelSize()), last.getY());\n } else if (direction == RIGHTKEY)\n {\n next = getLocation((int)(last.getX() + speed * getPixelSize()), last.getY());\n }\n\n ArrayList<Location> line = getLine(last, next);\n\n if (line.size() == 0) {\n gameOver();\n return;\n }\n\n for (Location loc : line) {\n if (checkCrash (loc)) {\n gameOver();\n return;\n } else {\n // Former bug: For some reason when a player eats a powerup a hole appears in the line where the powerup was.\n Location l2 = getLocation(loc.getX(), loc.getY());\n l2.setType(LocationType.PLAYER);\n l2.setColor(this.col);\n\n playerLocations.add(l2);\n getGridCache().add(l2);\n }\n }\n }", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}", "@Override\n public void calculateMove() {\n int xa = 0, ya = 0;\n if (steps <= 0) {\n direction = ep.calculateDirection();\n steps = MAX_STEPS;\n }\n if (direction == 0) {\n ya--;\n }\n if (direction == 2) {\n ya++;\n }\n if (direction == 3) {\n xa--;\n }\n if (direction == 1) {\n xa++;\n }\n if (canMove(xa, ya)) {\n steps -= 1 + rest;\n move(xa * speed, ya * speed);\n moving = true;\n } else {\n steps = 0;\n moving = false;\n }\n }", "public void move(int moveDirection) {\n //if same or opposite direction, check if movable\n if ((direction - moveDirection) % 6 == 0) {\n this.direction = moveDirection;\n if (moveable()) {\n if (direction == 12) {\n this.setLocation(new Point(this.getX(),\n this.getY() - speed));\n }\n //move right\n if (direction == 3) {\n this.setLocation(new Point(this.getX() + speed,\n this.getY()));\n\n }\n //move down\n if (direction == 6) {\n this.setLocation(new Point(this.getX(),\n this.getY() + speed));\n }\n //move left\n if (direction == 9) {\n this.setLocation(new Point(this.getX() - speed,\n this.getY()));\n }\n\n }\n } // if it is turning, check if can turn or not. If can turn then turn and move according to the direction before turn, otherwise, just leave the monster there\n else {\n Point snapToGridPoint = GameUtility.GameUtility.snapToGrid(\n this.getLocation());\n Point gridPoint = GameUtility.GameUtility.toGridCordinate(\n this.getLocation());\n Point nextPoint = new Point(gridPoint.x, gridPoint.y);\n //if the distance is acceptable\n if (GameUtility.GameUtility.distance(snapToGridPoint,\n this.getLocation()) < GameUtility.GameUtility.TILE_SIZE / 2.5) {\n\n if (moveDirection == 3) {\n int x = Math.max(0, gridPoint.x + 1);\n nextPoint = new Point(x, gridPoint.y);\n } else if (moveDirection == 6) {\n int y = Math.max(0, gridPoint.y + 1);\n nextPoint = new Point(gridPoint.x, y);\n } else if (moveDirection == 9) {\n int x = Math.min(19, gridPoint.x - 1);\n nextPoint = new Point(x, gridPoint.y);\n } else if (moveDirection == 12) {\n int y = Math.min(19, gridPoint.y - 1);\n nextPoint = new Point(gridPoint.x, y);\n }\n // if the turn is empty, then snap the monster to the grid location\n if (!(GameManager.getGameMap().getFromMap(nextPoint) instanceof Wall) && !(GameManager.getGameMap().getFromMap(\n nextPoint) instanceof Bomb)) {\n if (GameUtility.GameUtility.distance(snapToGridPoint,\n this.getLocation()) < GameUtility.GameUtility.TILE_SIZE / 10) {\n this.setLocation(snapToGridPoint);\n this.direction = moveDirection;\n } else {\n if (direction == 9 || direction == 3) {\n int directionOfMovement = (snapToGridPoint.x - getX());\n directionOfMovement = directionOfMovement / Math.abs(\n directionOfMovement);\n this.setLocation(new Point(\n this.getX() + directionOfMovement * speed,\n this.getY()));\n } else if (direction == 12 || direction == 6) {\n int directionOfMovement = (snapToGridPoint.y - getY());\n directionOfMovement = directionOfMovement / Math.abs(\n directionOfMovement);\n this.setLocation(new Point(\n this.getX(),\n this.getY() + directionOfMovement * speed));\n }\n }\n }\n }\n }\n }", "private void makeMove() {\r\n //if not all pieces placed, place a new piece\r\n if(numPieces < 3) {\r\n if(pieces == null)\r\n pieces = new PositionData[Constants.NUM_PIECES];\r\n placePiece();\r\n return;\r\n }\r\n //move a random piece to a random location\r\n int pieceNumber = getRandomPiece();\r\n PositionData randomPoint = getRandomPoint();\r\n //move the piece\r\n Game.movePiece(pieces[pieceNumber], randomPoint);\r\n }", "void movemouse (int i, int j)\n\t// set a move at i,j\n\t{\n\t\tif (Pos.haschildren()) return;\n\t\tif (captured == 1 && capturei == i && capturej == j\n\t\t\t&& GF.getParameter(\"preventko\", true)) return;\n\t\tset(i, j); // try to set a new move\n\t}", "@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}", "public void scrollScreen(){\r\n//for smile\r\n\t\tif (smile.getY() < (Constants.GAMEHEIGHT/3)){\r\n\r\n\t\t\tfor (int a = 0; a < arrayPlat.size(); a++){\r\n\r\n\t\t\t\tarrayPlat.get(a).setY(arrayPlat.get(a).getY() + (Constants.GAMEHEIGHT/3 - smile.getY()) );\r\n\t\t\t\t\t\t}\r\n\t\t\t//for monster\r\n\t\t\tfor(Monster monster:arrayMonster) {\r\n\t\t\t\tmonster.setY(monster.getY() + (Constants.GAMEHEIGHT/3 - smile.getY()) );\r\n\r\n\t\t\t}\r\n\r\n\t\t\tsmile.setY(Constants.GAMEHEIGHT/3);\r\n\r\n\t\t}\r\n\r\n\t}" ]
[ "0.6359787", "0.6301896", "0.61886144", "0.6162717", "0.61291337", "0.60827893", "0.6028936", "0.6019815", "0.59917766", "0.59898025", "0.59681123", "0.59562975", "0.59447706", "0.5936873", "0.5936328", "0.59325254", "0.5908673", "0.5901869", "0.5894936", "0.5875526", "0.5857162", "0.58379155", "0.5837692", "0.5817931", "0.58167726", "0.5816029", "0.5805845", "0.5802741", "0.5800655", "0.58000785", "0.575439", "0.5741062", "0.57315123", "0.572999", "0.5725214", "0.5709843", "0.57089436", "0.5705673", "0.5702923", "0.57017094", "0.56988704", "0.56935805", "0.5684249", "0.56756353", "0.5668347", "0.56671286", "0.56572074", "0.56565505", "0.5656101", "0.56371707", "0.56339175", "0.5633246", "0.5628665", "0.56082106", "0.56073016", "0.5591499", "0.55858004", "0.557585", "0.55730003", "0.5565359", "0.5564961", "0.55599755", "0.5557005", "0.5556839", "0.55458635", "0.5533715", "0.55328494", "0.55317396", "0.5527726", "0.5527288", "0.5519986", "0.5509503", "0.5503468", "0.54984653", "0.54945755", "0.5487961", "0.54867375", "0.5482814", "0.54784364", "0.5477962", "0.54774714", "0.5473971", "0.5470612", "0.5467814", "0.5463766", "0.5460157", "0.5450215", "0.5443515", "0.5442174", "0.5441417", "0.5440409", "0.54331744", "0.5432957", "0.54325163", "0.5428841", "0.5427837", "0.54111713", "0.54107684", "0.54101074", "0.5407902" ]
0.7428139
0
Close the pac man mouth by resetting the position to 0.
public void stopMoving() { mouthPosition = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close(){\n \tisClosed = true;\n \tClawAct.set(true);\n\t\tRobot.oi.armRumble(RUMBLE_DURATION);\n }", "@Override\r\n\tpublic void reset() {\n\t\tposition.set(0, 0);\r\n\t\talive = false;\r\n\t}", "protected void end() {\n \tRobot.hand.setWrist(0.0);\n }", "protected void goAway() {\n\t\tthis.setVisible(false);\n\t\tthis.setBounds(-800, -800, mWidth, mHeight);\n\t}", "public void closeArms() {\n\t\tleftArmMotor.setSpeed(100);\n\t\trightArmMotor.setSpeed(100);\n\t\t\n\t\trightArmMotor.rotate(80, true);\n\t\tleftArmMotor.rotate(80, false);\n\t}", "public void doorClose(){\n this.setRoadBlock(true);\n this.setRender(true);\n }", "public void resetPuck() {\n this.puck.setPosition(new Point(this.center_point));\n }", "private void close(){\n\t\tMain.enableWorldMap();\n\t\tdispose();\n\t}", "void closeLeftDoor()\n {\n openingLeft = false;\n leftDoorTimeline.play();\n }", "private void finishReset() {\n DefenceField.fieldActivated = true;\n time.setPaused(false);\n nuiManager.closeScreen(DefenceUris.DEATH_SCREEN);\n }", "public void clawOpen(){\n claw.setPosition(0.1);\n }", "protected void end() {\n drivebase.setArcade(0, 0);\n drivebase.disableTurnController();\n }", "public boolean isPacmanToClose(){\n\n\t\tposXPacman = pacman.getX();\n\t\tposYPacman = pacman.getY();\n\t\tposXBlueEnemy = getX();\n\t\tposYBlueEnemy = getY();\n\n\t\t//pacman links van spook\n\t\tif(posYBlueEnemy == posYPacman && posXPacman < posXBlueEnemy && posYBlueEnemy > posXPacman + 60)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t// pacman rechts van spook\t\n\t\telse if(posYBlueEnemy == posYPacman && posXPacman > posXBlueEnemy && posXPacman < posXBlueEnemy + 60)\n\t\t{\n\t\t\treturn true;\n\t\t}\t\n\t\t//pacman boven spook\n\t\telse if(posXBlueEnemy == posXPacman && posYPacman < posYBlueEnemy && posYBlueEnemy > posYPacman + 60)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t//pacman onder spook\n\t\telse if(posXBlueEnemy == posXPacman && posYPacman > posYBlueEnemy && posYPacman < posYBlueEnemy + 60)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t}", "public void moveMouth()\n {\n mouthPosition++;\n\n if(mouthPosition > Integer.parseInt(\"5\"))\n {\n mouthPosition = 0;\n }\n }", "void closeRightDoor()\n {\n status = DoorStatus.CLOSING;\n openingRight = false;\n rightDoorTimeline.play();\n }", "public void closeGripper(int force);", "public void gerak() \n {\n setLocation(getX(),getY()-5);\n if(getY()<20){\n getWorld().removeObject(this);\n }else\n cek_kena();\n \n }", "@Override\n\tprotected void end() {\n\t\tRobot.chassis.setLeft(0);\n\t\tRobot.chassis.setRight(0);\n\t}", "public void removeLife(Pac pac) {\n\t\tpac.setLife(pac.getLife()-1);\n\t\tlifes.get(pac.getLife()).setVisible(false);\n\t}", "public void closePM(String player) {\n\n }", "public static void sonarPositionClose() {\n double x = HW.sonarControllerLeft.getSpeed();\n double y = HW.sonarControllerFrontRight.getSpeed();\n //+ HW.sonarControllerFrontRight.getSpeed())\n /// 2;\n HW.drive.HolonomicDrive(x, y, HW.turnController.getRotation());\n //DiscoUtils.debugPrintln(\"X: \" + x);\n //DiscoUtils.debugPrintln(\"Y: \" + y);\n }", "public void closeCamera()\n {\n }", "protected void end() {\n \tRobotMap.feedMotor1.set(0);\n \tRobotMap.shootAgitator.set(0);\n }", "public void finish() {\n\t\tPositionVo v = new PositionVo(1d, 0d, 0d, 0d, 0d, 0d, 0d);\n\t\tmanager.canvas.setJoneDoe(v, new Point(0, 0), Direction.NONE);\n\t\tstopTimer();\n\t\tfree();\n\t\tmanager.iWait();\n\t}", "public void looser()\n {\n this.mapFrame.looser();\n }", "public void resetScreen(){\n\t\tGame_Map_Manager.infoVisible= false;\n\t\tGame_PauseMenu.actorManager.open = false;\n\t\tPlayerGoals.open = false;\n\t\tGame_Shop.actorManager.open = false;\n\t\tTrainDepotUI.actorManager.open = false;\n\t\tGameScreenUI.resourcebarexpanded =false;\n\t\tGoalMenu.open= false;\n\t\t\n\t\t//CARDS\n\t\tGame_CardHand.actorManager.open=false;\n\t\tGame_CardHand.actorManager.cardactors.clear();;\n\t\t\n\t\t//Map\n\t\tGame_StartingSequence.reset();\n\t\tGame_Map_Manager.resetMap();\n\t}", "public void resetPosition()\n {\n resetPosition(false);\n }", "private void drawPacman(Graphics g) {\n if (player.frameCount < 1) {\n /* Draw mouth closed */\n g.drawImage(pacmanImage, player.current.x, player.current.y, null);\n } else {\n /* Draw mouth open in appropriate direction */\n if (player.frameCount >= 3)\n player.frameCount = 0;\n\n switch (player.currDirection) {\n case 3:\n g.drawImage(pacmanLeftImage, player.current.x, player.current.y, Color.BLACK, null);\n break;\n case 1:\n g.drawImage(pacmanRightImage, player.current.x, player.current.y, Color.BLACK, null);\n break;\n case 0:\n g.drawImage(pacmanUpImage, player.current.x, player.current.y, Color.BLACK, null);\n break;\n case 2:\n g.drawImage(pacmanDownImage, player.current.x, player.current.y, Color.BLACK, null);\n break;\n }\n }\n }", "public void close() throws RemoteException {\r\n closed = true;\r\n informationsForDrawing.playerStates[ ownIndex ] = null;\r\n }", "public void perdio() {\n\t\tthis.juego = null;\n\t\thiloJuego = null;\n\t\tthis.panelJuego = null;\n\t\tthis.dispose();\n\t\tGameOver_Win go = new GameOver_Win(0);\n\t\tgo.setVisible(true);\n\t\t\n\t}", "public void endTurn()\n {\n revealedCardsScreen.setVisible(false);\n accusationScreen.setVisible(false);\n\n this.played = false;\n\n //call client controller's end turn method\n clientController.endTurn();\n }", "public void flipClose(PlayerCard playerCard){\n RotateTransition flip = createflipAnimation(playerCard);\n playerCard.setIsFlippedOpen(false);\n flip.play();\n if (mainController.checkIsEnabledSound()) cardFlipSound.makeSound();\n playerCard.setDefaultImage();\n }", "public void bossReset(){\n bossTimer.start();\n this.getView().setTranslateX(x);\n this.getView().setTranslateY(y);\n this.getView().setRotate(0);\n bossTimer.start();\n setHitPoints(getDefaultHp());\n }", "protected void end() {\n \tRobot.shooter.speed(0.0);\n }", "protected void end() {\n \tRobot.chassisSubsystem.setShootingMotors(0);\n }", "public void moverAbajo() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, -1));\n }", "public void endTurn(MapPanel caller) {\n\t\tlog.log(\"Ending turn for \" + toMove);\n\t\ts.unexamine(caller);\n\t\ttoMove = Alignment.opposing(toMove);\n\t\tif(toMove == Alignment.FRIENDLY)\n\t\t\tcaller.setGameStatus(GameState.PLAYER_MOVING);\n\t\telse\n\t\t\tcaller.setGameStatus(GameState.ENEMY_TURN);\n\t\tstartTurn(caller);\n\t}", "@Override\n protected void end() {\n Robot.shooter.setShooterSpeed(0);\n Robot.elevator.elevatorUp(0);\n Robot.hopper.hopperOut(0);\n Robot.intake.enableIntake(0);\n\n\n }", "protected void end() {\r\n Robot.feeder.retractArm();\r\n Robot.feeder.setFeederIntakeSpeed(0);\r\n Robot.chassis.driveMecanumNormalized(0, 0, 0);\r\n Robot.shooter.setShootingMotors(0, 0);\r\n }", "@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}", "public void enemyoff(){\n getWorld().removeObject(this);\n }", "public void resetPose() {\n }", "public void resetMove() {\n pointer = 0;\n }", "@Override\n public void kill() {\n alive = false;\n Board.getInstance().setPoints(points);\n }", "public void reset(){\n\t\tfrogReposition();\n\t\tlives = 5;\n\t\tend = 0;\n\t}", "public void unlock() {\n islandLocked = false;\n }", "public void close()\n {\n\n window.close();\n try\n {\n screen.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "void reset() {\n setVisible(false);\n myJumpedOver = false;\n }", "public void disconnect()\n\t{\n\t\t_active = false;\n\t\t_leader.setObjectHandler(null);\n\t\t_leader.close();\n\t\ttry\n\t\t{\n\t\t\t_pos.close();\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t// nothing to do here, doesn't matter\n\t\t}\n\t}", "public void closeDown() {\n\t\tdispose();\n\n\t}", "public void endTurn() {\n controller.endTurn();\n }", "protected void end() {\n \tRobotMap.gearIntakeRoller.set(0);\n }", "public void killPlayer(){\n setInPlay(false);\n setDx(0.0f);\n setDy(0.04f);\n }", "protected void end() {\n \n this.getPIDController().disable();\n shooter.setShooterMotor(0.0);\n }", "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}", "protected void end() {\n\t\tLiquidCrystal lcd = RobotMap.lcd;\n\t\tlcd.clear();\n\n\t\tRobotMap.chassisfrontLeft.set(0);\n\t\tRobotMap.chassisfrontRight.set(0);\n\t\tRobotMap.chassisrearLeft.set(0);\n\t\tRobotMap.chassisrearRight.set(0);\n\t\t\n\t\tRobotMap.climberclimbMotor.set(0);\n\t\tRobotMap.floorfloorLift.set(0);\n\t\tRobotMap.acquisitionacquisitionMotor.set(0);\n\n\n\t}", "public void resetAngle() {\n\t\tnavx.zeroYaw();\n\t}", "public final void easeOut() {\n float originX = phasesUI.getX();\n MoveToAction out = new MoveToAction();\n out.setPosition(phasesUI.getWidth() * -1, phasesUI.getY());\n out.setDuration(PhaseConstants.PANEL_EASE_DURATION);\n\n VisibleAction hide = new VisibleAction();\n hide.setVisible(false);\n\n MoveToAction in = new MoveToAction();\n in.setPosition(originX, phasesUI.getY());\n in.setDuration(PhaseConstants.PANEL_INSTANCE_DURATION);\n\n SequenceAction seq = new SequenceAction(out, hide, in);\n phasesUI.addAction(seq);\n //phasesUI.setVisible(false);\n toggle = false;\n }", "public void resetMove() {\n\t\tthis.moveMade = false;\n\t}", "public void reset() {\n\t\txD = x;\n\t\tyD = y;\n\t\taction = 0;\n\t\tdir2 = dir;\n\t\tvisibleToEnemy = false;\n\t\tselected = false;\n\t\t\n\t\tif (UNIT_R == true) {\n\t\t\t// dir = 0;\n\t\t} else if (UNIT_G == true) {\n\t\t\t// dir = 180 / 2 / 3.14;\n\t\t}\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationEnd(Animation arg0) {\n\t\t\t\t\t\t\t\tview.clearAnimation();\n\t\t\t\t\t\t\t\tview.setY(CENTRE_Y_OF_THE_SCREEN);\n\t\t\t\t\t\t\t}", "public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }", "public void movePacmans() {\n\t\ttry {\n\t\t\tgz.redraw();\n\t\t}\n\t\tcatch(NullPointerException npe) {\n\t\t\tgz.pauseGame();\n\t\t}\n\t}", "public void Close() { // in {FF} Arduino\r\n if (SpeakEasy) System.out.println(\"F%%F/Close..\"); // SpeakEasy=true\r\n if (GoodOpen) try {\r\n surrealPort.closePort();\r\n DoMore = null;\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n GoodOpen = false;\r\n }", "void unlockDoor() {\n }", "public void closeGrabber() {\n grabberServo.setPosition(GRABBER_CLOSE);\n isGrab = false;\n }", "protected void end() {\n Robot.arm.moveArm(0, 1);\n }", "void positionCleared();", "@Override\n protected void end() {\n Robot.SCISSOR.extendLift(0);\n }", "public void laserMoveUp()\r\n\t{\r\n\r\n\t\tif (y > 0)\r\n\t\t\ty -= 20;\r\n\r\n\t\telse\r\n\t\t\tdestroyed = true;\r\n\r\n\t}", "public void openHangerClaws() {\n\t\tcubeSolenoid.set(DoubleSolenoid.Value.kForward);\n\t\t\n\t}", "public int mover()\n { this.ubicacion.y-=20;\n return this.ubicacion.y;\n }", "protected void end() {\n Robot.shooter.Stop();\n }", "private void moveClawDown() {\n\t\tMotor.A.setSpeed(45);\n\t\tMotor.A.rotate(-90);\n\t}", "protected void end() {\n \n \tRobotMap.motorLeftOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \tRobotMap.motorLeftTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \t\n \tRobotMap.motorRightOne.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \tRobotMap.motorRightTwo.set(com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput, 0);\n \t\n }", "public synchronized void dispose() {\n\n\t\tthis.direction = -1;\n\t\tGameMethods.playSound(\"spell_disolve.wav\");\n\t\tanimator.setAnimation(\"/images/weapons_sprites/spell_off.png\", 50, 11);\n\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 }", "public void close(){\n this.boardController.close();\n }", "void cameraClosed();", "private static void turnAwayFromWall() {\n while (true) {\n if (readUsDistance() > OPEN_SPACE) {\n leftMotor.stop();\n rightMotor.stop();\n // re-calibrate theta, offset will be added to this angle\n odometer.setTheta(0);\n System.out.println(\"starting localization...\");\n prevDist = 255;\n dist = prevDist;\n break;\n }\n }\n }", "protected void end() {\n \tRobotMap.motorRightTwo.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorRightOne.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorLeftTwo.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorLeftOne.changeControlMode(TalonControlMode.PercentVbus);\n \tRobotMap.motorLeftOne.set(0);\n \tRobotMap.motorRightOne.set(0);\n \tRobotMap.motorLeftTwo.set(0);\n \tRobotMap.motorRightTwo.set(0);\n \tSystem.out.println(this.startAngle- RobotMap.navx.getAngle());\n\n\n \t\n }", "@Override public void close() {\n\t\tthis.timer.cancel();\n\t\tthis.motionStream.removeListener(this);\n\t}", "protected void end() {\n Robot.shooter.set(0);\n RobotMap.Armed=false;\n RobotMap.shootState=false;\n System.out.println(\"done shooting\");\n if (this.isTimedOut()==true) {\n System.out.println(\n \"shot timed out\");\n \n }\n if (RobotMap.inPosition.get()!=OI.shooterArmed){\n System.out.println(\"in position is different than shooter armed\");\n }\n}", "@Override\r\n\tpublic void fullScreenAdClose(boolean arg0) {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tmap.setRotationAngle(0);\n\t\t\t\tcompass.setRotationAngle(0);\n\n\t\t\t}", "void resetAngle();", "private void resetRayo() {\n rayo.setX(getWidth() / 2 - 10);\n rayo.setY(getHeight() - player.getHeight() - 50);\n }", "public void close()\n {\n setVisible (false);\n dispose();\n }", "void ship_respawn() {\n ship.resetPosition();\n ship_image_view.setX(ship.x_position); // Update the ship image position\n }", "private void logout(){\n player.setName(\"(bot) \" + player.getName());\n botMode = true;\n System.out.println(\"bot made\");\n login = false;\n }", "public void reset() {\r\n this.x = resetX;\r\n this.y = resetY;\r\n state = 0;\r\n }", "public final void moveInitialPanelOffsceen() {\n if (phasesUI != null) {\n phasesUI.setVisible(false);\n toggle = false;\n }\n }", "private void cleaningBallot() {\n\t\tturnLeft();\n\t\tmove();\n\t\tgrabStrayBeepers();\n\t\tturnAround();\n\t\tmove();\n\t\tmove();\n\t\tgrabStrayBeepers();\n\t}", "public void endTurn() {\n }", "@Override\r\n\tpublic void endTurn() {\n\t\t\r\n\t}", "public void reset() {\n position = 0;\n }", "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}", "public void turnOff(int x, int y);", "public void gano() {\n\t\t\n\t\tGameOver_Win win = new GameOver_Win(1);\n\t\thiloJuego = null;\n\t\tthis.panelJuego = null;\n\t\tthis.dispose();\n\t\tthis.juego = null;\n\t\twin.setVisible(true);\n\t\t\n\t}", "protected void end() {\n \tRobot.gearIntake.setIsDown(false);\n \tRobot.gearIntake.setGearRollerSpeed(0);\n }" ]
[ "0.6291988", "0.59594476", "0.5765055", "0.5706916", "0.56608576", "0.561781", "0.5601304", "0.5593647", "0.55872667", "0.5578432", "0.5561866", "0.5528964", "0.5527686", "0.55185676", "0.55109155", "0.55085003", "0.54713756", "0.54626864", "0.5446283", "0.54344076", "0.5415685", "0.5408079", "0.5391694", "0.5366552", "0.5358251", "0.5355194", "0.5352252", "0.5333885", "0.5329781", "0.5328302", "0.5308556", "0.5277439", "0.5267207", "0.52467036", "0.52464914", "0.52377486", "0.52330434", "0.52239966", "0.52179873", "0.5209905", "0.51980734", "0.5185556", "0.5184129", "0.5179159", "0.5173863", "0.51663405", "0.51591223", "0.5156047", "0.5151162", "0.5146504", "0.51455337", "0.51382905", "0.5137289", "0.51328987", "0.513249", "0.51256657", "0.51214355", "0.51191014", "0.5113746", "0.5111342", "0.51000315", "0.5098292", "0.5094712", "0.5094641", "0.5091269", "0.5090807", "0.5082485", "0.50766957", "0.5068284", "0.50654787", "0.5065295", "0.50635797", "0.5063346", "0.5061931", "0.50555", "0.50554276", "0.5053892", "0.505018", "0.5045515", "0.5041383", "0.50332636", "0.5032866", "0.5028066", "0.50181514", "0.5018057", "0.50162494", "0.50161374", "0.5015136", "0.501421", "0.50114214", "0.5010726", "0.5010638", "0.50078714", "0.50031495", "0.50018007", "0.5000734", "0.49986163", "0.49981582", "0.49874794", "0.49764726" ]
0.6663405
0
Common use for this class, loading Strings
@Test public void loadStringsTest() { TestCase.assertEquals( 0, testObj.getSize() ); TestCase.assertEquals( testObj.insert( "foo" ), 0 ); TestCase.assertEquals( testObj.insert( "bar" ), 1 ); TestCase.assertEquals( testObj.insert( "baz" ), 2 ); TestCase.assertEquals( testObj.insert( "quux" ), 3 ); TestCase.assertEquals( 4, testObj.getSize() ); TestCase.assertEquals( testObj.getByteBlock( 2 ), "baz" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected void loadStrings() {\r\n \r\n mfile = settings.getProperty( \"mfile\" );\r\n rmode = settings.getProperty( \"rmode\" );\r\n cmap = settings.getProperty( \"cmap\" );\r\n cmapMin = Double.parseDouble( settings.getProperty( \"cmapMin\" ) );\r\n cmapMax = Double.parseDouble( settings.getProperty( \"cmapMax\" ) );\r\n \r\n }", "public static void loadStrings() {\n\t\tloadStrings(Locale.getDefault());\n\t}", "public static void loadBaseStrings() {\n\t\t//ensure the base strings file exists\n\t\tif (!extractedFileDir.exists())\n\t\t\textractedFileDir.mkdir();\n\t\tif (!baseStringsFile.exists())\n\t\t\textractDataWin();\n\t\t//find the latest numbered strings file\n\t\tint lastFileNum = 0;\n\t\twhile ((new File(extractedFileDir, nextFileNum + \".txt\")).exists()) {\n\t\t\tlastFileNum = nextFileNum;\n\t\t\tnextFileNum *= 2;\n\t\t}\n\t\twhile (nextFileNum > lastFileNum + 1) {\n\t\t\tint mid = (nextFileNum + lastFileNum) / 2;\n\t\t\tif ((new File(extractedFileDir, mid + \".txt\")).exists())\n\t\t\t\tlastFileNum = mid;\n\t\t\telse\n\t\t\t\tnextFileNum = mid;\n\t\t}\n\t}", "private Strings()\n\t{\n\t}", "private Strings()\n\t{\n\t}", "@Override\n void load(String data) {\n }", "public static ArrayList<String> loadStrings(File f, boolean isPrimaryLoad) {\n\t\tArrayList<String> fileStrings = loadFileStrings(f);\n\t\tint stringsListIndex = loadHierarchy(fileStrings, !isPrimaryLoad);\n\t\t//track which saves got used and which ones didn't\n\t\tboolean[] usedSaves = new boolean[lastSaveSelector.getItemCount()];\n\t\t//load the strings\n\t\tArrayList<String> loadedStrings;\n\t\tif (f == stringsPackedFile)\n\t\t\tloadedStrings = loadFromPackedStringsFile(stringsListIndex, fileStrings, usedSaves);\n\t\telse\n\t\t\tloadedStrings = loadFromStringsFile(stringsListIndex, fileStrings, usedSaves);\n\t\t//verify the strings we got unless this is the base strings being loaded for the packed strings\n\t\tif (isPrimaryLoad) {\n\t\t\tlogUnusedSaves(usedSaves);\n\t\t\tverifyStringsAreInOrder(loadedStrings);\n\t\t}\n\t\treturn loadedStrings;\n\t}", "private void loadText() {\n\t\ttext1 = app.loadStrings(\"./data/imports/TXT 1.txt\");\n\t\ttext2 = app.loadStrings(\"./data/imports/TXT 2.txt\");\n\t}", "@Override\n\tpublic void load() {\n\t\tFileHandle file = Gdx.files.internal(DogRunner.PARENT_DIR + \"charset.txt\");\n\t\tcharset = file.readString();\n\t}", "public static void updateStrings() {\n String pathName;\n switch (Parameters.getLanguage()) {\n case ENGLISH:\n default:\n pathName = englishStringPath;\n break;\n case SPANISH:\n pathName = spanishStringPath;\n break;\n case CATALAN:\n pathName = catalanStringPath;\n break;\n }\n updateStrings(pathName);\n }", "public static void loadStrings(Locale locale) {\n\t\tFileHandle baseFileHandle = Gdx.files.internal(\"i18n/Strings\");\n\t\tstrings = I18NBundle.createBundle(baseFileHandle, locale);\n\t}", "public void loadConstNames() {\r\n \tloadHerculesNames();\r\n \tloadUrsaMinorNames();\r\n \tloadUrsaMajorNames();\r\n \tloadLibraNames();\r\n \tloadAndromedaNames();\r\n \tloadAquariusNames();\r\n \tloadAquilaNames();\r\n \tloadAriesNames();\r\n \tloadAurigaNames();\r\n \tloadBootesNames();\r\n \tloadCancerNames();\r\n \tloadCanisMajorNames();\r\n \tloadCanisMinorNames();\r\n \tloadCapricornusNames();\r\n \tloadCassiopeiaNames();\r\n \tloadCentaurusNames();\r\n \tloadCepheusNames();\r\n \tloadCruxNames();\r\n \tloadCygnusNames();\r\n \tloadDracoNames();\r\n \tloadGeminiNames();\r\n \tloadHydraNames();\r\n \tloadLeoNames();\r\n \tloadLyraNames();\r\n \tloadOrionNames();\r\n \tloadPegasusNames();\r\n \tloadPerseusNames();\r\n \tloadPiscesNames();\r\n \tloadSagittariusNames();\r\n \tloadScorpioNames();\r\n \tloadTaurusNames();\r\n }", "public void loadStr(String str, String filename) throws Exceptions.OsoException {\n ffiPolar.loadStr(str, filename);\n checkInlineQueries();\n }", "private void initializeStrings(Activity activity) {\n OBSERVATORY_URL = activity.getString(R.string.live_address);\n API_KEY = activity.getString(R.string.api_key);\n VARIABLE_QUERY_FORMAT = activity.getString(R.string.variable_format);\n BUFFER_QUERY_FORMAT = activity.getString(R.string.buffer_query);\n TWO_VARIABLE_FORMAT = activity.getString(R.string.two_variables_format);\n\n IS_ACTIVE_KEY = activity.getString(R.string.json_is_active_key);\n DATA_KEY = activity.getString(R.string.json_data_key);\n GEOM_KEY = activity.getString(R.string.json_geom_key);\n COORDINATES_KEY = activity.getString(R.string.json_coordinates_key);\n\n PM10_VARIABLE = activity.getString(R.string.pm10_variable);\n TEMP_VARIABLE = activity.getString(R.string.temperature_variable);\n HUMID_VARIABLE = activity.getString(R.string.humidity_variable);\n MEASUREMENTS_LIMIT_UPPER = \n activity.getResources().getInteger(R.integer.measurement_limit_upper);\n\n NO_JSON_OBJECT_FOUND_LOG_TITLE =\n activity.getString(R.string.no_json_object_found_log_title);\n NO_JSON_OBJECT_FOUND_LOG_CONTENTS =\n activity.getString(R.string.no_json_object_found_log_contents);\n }", "private void loadStrings() {\n\t\tfor (String texto : textOne) {\n\t\t\t//Se parte cada linea por comas\n\t\t\tString [] info = texto.split(\",\");\n\t\t\t//----------------\n\t\t\tint id = Integer.parseInt(info[0]);\n\t\t\tString name = info[1];\n\t\t\tint age = Integer.parseInt(info[2]);\n\t\t\tString race = info[3];\n\t\t\t//--------------------\n\t\t\t\n\t\t\tdogList.addElement(id, name, age, race);\n\t\t}\n\t\t\n\t\t//-----------------------\n\t\t// Se carga segundo TXT\n\t\tfor (int i = 0; i < dogList.getList().size(); i++) {\n\t\t\tfor (int j = 0; j < textTwo.length; j++) {\n\t\t\t\tString [] infoD = textTwo[j].split(\",\");\n\t\t\t\t//----------------\n\t\t\t\tint id = Integer.parseInt(infoD[0]);\n\t\t\t\tString nombre = infoD[1];\n\t\t\t\tString apellido = infoD[2];\n\t\t\t\tint identificacion = Integer.parseInt(infoD[3]);\n\t\t\t\tint telefono = Integer.parseInt(infoD[4]);\n\t\t\t\tString direccion = infoD[5];\n\t\t\t\tString enfermedades = infoD[6];\n\t\t\t\t//-----------\n\t\t\t\tduenoList.addElement(id, nombre, apellido, identificacion, telefono, direccion, enfermedades);\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t}\n\t\tduenoList.printList();\n\t\tdogList.printList();\n\t\t\n\t\t\n\t}", "public void loadStr(String str) throws Exceptions.OsoException {\n ffiPolar.loadStr(str, null);\n checkInlineQueries();\n }", "private void setStrings(){\n ip = context.getResources().getString(R.string.ip);\n port = context.getResources().getString(R.string.port);\n dbName = context.getResources().getString(R.string.db_name);\n user = context.getResources().getString(R.string.masterUser);\n pass = context.getResources().getString(R.string.masterPass);\n }", "private Strings() {\n }", "public abstract String getString();", "public abstract String getString();", "public abstract T loadResource(AssetManager assetManager, String str);", "public abstract void fromString(String s, String context);", "public abstract void getStringImpl(String str, String str2, Resolver<String> resolver);", "public abstract String read_string();", "@Override\r\n\tpublic void loadContents(String[] contents) {\n\t\t\r\n\t}", "private static synchronized ResourceBundle getBundle() throws IdealException {\n if (stringBundle == null) {\n if (Util.log.isDebugEnabled())\n Util.log.debug(\" Initialising Strings\");\n try {\n String bundleName = Strings.class.getPackage().getName().replace('.', '/') + \"/strings\";\n stringBundle = ResourceBundle.getBundle(bundleName);\n } catch (Exception e) {\n IdealException ex = new IdealException(ErrorCodes.IMEXME01, \"Unable to load string catalog.\", e);\n ex.setSuggestedAction(\"Distribution is corrupt, redownload from the idealdesk. \");\n throw ex;\n }\n }\n return stringBundle;\n }", "public EncodeAndDecodeStrings() {}", "public void loadStringData(IRSession session, String Source, String data)throws RulesException {\n\t Reader strReader = new StringReader(data);\n\t loadData(session,strReader, Source);\n\t}", "private StringUtilities() {\n // nothing to do\n }", "public void loadLibrary(String str) {\n _lancet.com_ss_android_ugc_aweme_lancet_launch_LoadSoLancet_loadLibrary(str);\n }", "public CMNGameStrings() {\n\t\t}", "private String loadAsString(final String path) {\n try (InputStream inputStream = Thread.currentThread()\n .getContextClassLoader().getResourceAsStream(path)) {\n return new Scanner(inputStream).useDelimiter(\"\\\\A\").next();\n } catch (IOException e) {\n throw new RuntimeException(\"Unable to close input stream.\", e);\n }\n }", "protected StringTranslator() {\n\n String from = \"-_\";\n String to = \"%/\";\n translationMap = new HashMap<Character, Character>();\n\n if (from.length() != to.length())\n throw new IllegalArgumentException(\"The from and to strings must be of the same length\");\n\n for (int i = 0; i < from.length(); i++)\n translationMap.put(from.charAt(i), to.charAt(i));\n }", "public void load(String string) {\n Validate.notNull(string, \"String may not be null\");\n\n load(new StringReader(string));\n }", "public List<String> load();", "@Test public void readStringDescriptionsNotJustSingleWord() {\n fail( \"Not yet implemented\" );\n }", "private static void load(){\n }", "protected String getString(String text, Object... args){\n return text;\n }", "public interface IStrings {\n\n\t/**\n\t * The name of the application, as it appears on the title of the window\n\t * \n\t * @return the name of the application\n\t */\n\tpublic String getAppName();\n\n\t/**\n\t * If the application name should have a definite article when used in\n\t * sentences, this should be it, uncapitalised and with a trailing space if\n\t * one is appropriate.\n\t * \n\t * @return \"the \" or \"\".\n\t */\n\tpublic String getAppNameArticle();\n\n\t/**\n\t * The short form of the application name, for system tray stuff\n\t * \n\t * @return the short form of the application name\n\t */\n\tpublic String getShortAppName();\n\n\t/**\n\t * The name of the application in a form suitable for putting into paths\n\t * \n\t * @return the name of the application in a form for putting into paths\n\t */\n\tpublic String getAppPathname();\n\n\t/**\n\t * The explanation on how files to be saved should be named\n\t * \n\t * @return the explanation on how files to be saved should be named\n\t */\n\tpublic String getFileNamingDetails();\n\n\t/**\n\t * The list of names that appear in the open file dialogue describing the\n\t * file types to open\n\t * \n\t * @return an array containing the descriptions of the file types the user\n\t * can select\n\t */\n\tpublic String[] getOpenDialogueFilterNames();\n\n\t/**\n\t * The file extensions that the file dialogue will match. Must correspond to\n\t * the descriptions returned by {@link #getOpenDialogueFilterNames()}. e.g.\n\t * '*.emp'\n\t * \n\t * @return the file extensions that the file dialogue will match\n\t */\n\tpublic String[] getOpenDialogueFilterExtensions();\n\n\t/**\n\t * The description presented to the user regarding automatically opening\n\t * files.\n\t * \n\t * @return the description presented to the user regarding automatically\n\t * opening files\n\t */\n\tpublic String getPrefsAutoLoadDescription();\n\n\t/**\n\t * The text to be shown in the 'about' dialogue\n\t * \n\t * @return the text to be shown in the 'about' dialogue\n\t */\n\tpublic String getAboutBoxText();\n\n\t/**\n\t * The default naming pattern for saving files\n\t * \n\t * @return the default naming pattern for saving files\n\t */\n\tpublic String getDefaultFilePattern();\n\n\t/**\n\t * This provides the base name for the XML node that stores the download\n\t * state of the application.\n\t * \n\t * @return the XML node name for the download state\n\t */\n\tpublic String getXMLBaseNodeName();\n\n\t/**\n\t * The version of the application.\n\t * \n\t * @return the version of the application\n\t */\n\tpublic String getVersion();\n\n\t/**\n\t * This provides the base name (without extension) for cover art files\n\t * \n\t * @return the base name for cover art files\n\t */\n\tpublic String getCoverArtName();\n\n\t/**\n\t * \"Automatically check for updates to this program\"\n\t */\n\tpublic String prefsAutomaticallyCheck();\n\n\t/**\n\t * \"Files\"\n\t */\n\tpublic String prefsFilesGroupTitle();\n\n\t/**\n\t * \"Downloads\"\n\t */\n\tpublic String prefsDownloadsGroupTitle();\n\n\t/**\n\t * The string shown when the maximum number of failures has been reached.\n\t * This can include &lt;A&gt; elements, which when clicked will open the\n\t * browser to the customer support URL.\n\t */\n\tpublic String dlMaxFailures();\n\n\t/**\n\t * The message displayed when there is a network connection issue. Including\n\t * '\\uFFFC' in the text will cause the resume icon to be included at that\n\t * point.\n\t */\n\tpublic String networkFailureMessage();\n\n\t/**\n\t * \"Preferred number of downloads at once\"\n\t */\n\tpublic String prefsConcurrentDownloads();\n}", "public interface ConstString\n{\n\tString STRING_ENCODING_UTF8 = \"UTF-8\";\n\tString APPLICATION_XML = \"application/xml\";\n\tString APPLICATION_JSON = \"application/json\";\n\tString APP_JSON_UTF_8 = \"application/json;charset=UTF-8\";\n\tString APP_XML_UTF_8 = \"application/xml;charset=UTF-8\";\n}", "String readString();", "public static String[] readStrings() {\n return readAllStrings();\n }", "public interface Loader {\n void loadLibrary(String str) throws Exception;\n\n void loadLibraryFromPath(String str) throws Exception;\n }", "private void loadI18n(String prefix, String baseName) throws IOException {\n LogManager.log(\"... loading i18n properties using prefix \\\"\" + prefix + \"\\\" with base name \\\"\" + baseName + \"\\\"\");\n InputStream is = ResourceUtils.getResource(EngineResources.ENGINE_CONTENTS_LIST);\n String[] resources = StringUtils.splitByLines(StreamUtils.readStream(is));\n is.close();\n List<String> list = new ArrayList<String>();\n LogManager.log(\"... total engine resources: \" + resources.length); //NOI18N\n for (String res : resources) {\n if (res.startsWith(prefix + baseName) &&\n res.endsWith(FileUtils.PROPERTIES_EXTENSION)) {\n list.add(res);\n }\n }\n LogManager.log(\"... total i18n resources: \" + list.size()); //NOI18N\n setI18n(list);\n }", "protected void loadValue(String sValue) {\n\t\tvalue = encode(sValue);\n }", "private StringUtils() {}", "private StringUtils() {}", "public static void load() {\n }", "public StringParser getStringParser();", "@Override\n\tpublic function initFromString(String s) {\n\t\treturn null;\n\t}", "String getString();", "String getString();", "String getString();", "private void ini_Translations()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_Translations\");\r\n\t\tnew Translation(\"data\", FileType.Internal);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tTranslation.LoadTranslation(\"data/lang/en-GB/strings.ini\");\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}", "public static void load(){\n StringBuilder maleNamesString = new StringBuilder();\n try (Scanner maleNamesFile = new Scanner(mnames)){\n while (maleNamesFile.hasNext()) {\n maleNamesString.append(maleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the fnames.json file\n StringBuilder femaleNamesString = new StringBuilder();\n try (Scanner femaleNamesFile = new Scanner(fnames)){\n while (femaleNamesFile.hasNext()) {\n femaleNamesString.append(femaleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the snames.json file\n StringBuilder surNamesString = new StringBuilder();\n try (Scanner surNamesFile = new Scanner(snames)){\n while (surNamesFile.hasNext()) {\n surNamesString.append(surNamesFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the locations.json file\n StringBuilder locationsString = new StringBuilder();\n try (Scanner locationsFile = new Scanner(locationsJson)){\n while (locationsFile.hasNext()) {\n locationsString.append(locationsFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n maleNames = (Names)convertJsonToObject(maleNamesString.toString(), new Names());\n\n femaleNames = (Names)convertJsonToObject(femaleNamesString.toString(), new Names());\n\n surNames = (Names)convertJsonToObject(surNamesString.toString(), new Names());\n\n locations = (Locations)convertJsonToObject(locationsString.toString(), new Locations());\n }", "@Override\n\tprotected void rethinkSearchStrings() {\n\t\tsearchStrings = new String[world.getNumItemBases()];\n\t\tint i = 0;\n\t\tfor (Map.Entry<String, ItemBase> entry : world.getItemBaseMap().entrySet()) {\n\t\t\tsearchStrings[i] = entry.getValue().getFilePath();\n\t\t\ti++;\n\t\t}\n\t}", "public StrStrMap() {\n }", "public static ArrayList<String> loadFileStrings(File f) {\n\t\tArrayList<String> fileStrings = new ArrayList<String>();\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null)\n\t\t\t\tfileStrings.add(line);\n\t\t\tbr.close();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\treturn fileStrings;\n\t}", "private static void loadConstraintFromString(String str) {\n Tokenizer tokenizer1 = new Tokenizer(str);\n ArrayList<String> items1 = tokenizer1.tokenize();\n removeQuotes(items1);\n loadConstraintFromArray(items1, 0, items1.size());\n }", "FPNode_Strings(){\r\n\t\t\r\n\t}", "public StringFileManager() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public void initFromClasspath() throws IOException {\n \t\tcontactNames = loadFromClassPath(\"contactNames\");\n \t\tgroupNames = loadFromClassPath(\"groupNames\");\n \t\tmessageWords = loadFromClassPath(\"messageWords\");\n \t}", "private String getString(String paramString) {\n }", "public abstract void init(ResourceLoader loader);", "protected String getResourceString (String key)\n {\n try {\n if (_bundle != null) {\n return _bundle.getString(key);\n }\n \n } catch (MissingResourceException mre) {\n Log.warning(\"Missing translation message \" +\n \"[bundle=\" + _path + \", key=\" + key + \"].\");\n }\n return null;\n }", "private String m21852a(Context context, String str) {\n try {\n Class loadClass = context.getClassLoader().loadClass(\"android.os.SystemProperties\");\n return (String) loadClass.getMethod(\"get\", new Class[]{String.class}).invoke(loadClass, new Object[]{str});\n } catch (Exception unused) {\n return null;\n }\n }", "@Override\n protected void loadValue(String sValue) {\n value = sValue;\n }", "protected String getString(String key) {\r\n\t\ttry {\r\n\t\t\tResourceBundle bundle = ResourceBundle.getBundle(bundleName);\r\n\t\t\treturn bundle.getString(key);\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private static String getString(String key, Object s1) {\r\n\t\treturn ConfmlFeatureEditorPlugin.INSTANCE.getString(key,\r\n\t\t\t\tnew Object[] { s1 });\r\n\t}", "public AbstractLocalisationBasePurString() {\t\t\r\n\t\tthis(null, null, null, null);\t\t\r\n\t}", "public String getString();", "public void load(String loadString){\r\n try{\r\n String[] split = loadString.split(\"\\\\ \");\r\n\t\t\t\r\n\t\t\t//Before we do anything else, attempt to verify the checksum\r\n\t\t\tif(verifySave(split) == false){\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Initialize fields\r\n currentPlayer = Integer.parseInt(split[0]);\r\n numPlayers = Integer.parseInt(split[1]);\r\n players = new Player[numPlayers];\r\n \r\n int i = 0;\r\n int j = 2;\t//index to start reading in player information\r\n while(i < numPlayers){\r\n players[i] = stringToPlayer(split[j], split[j+1] );\t\r\n j = j + 2;\r\n i = i + 1;\r\n }\r\n }catch(Exception e){\r\n System.out.println(\"ERROR: Sorry, but could not load a game from that file\");\r\n System.exit(0);\r\n }\r\n \r\n \r\n }", "@Override\n public void handleString(String s) {\n\n }", "String getString(String bundleKey, String bundleBaseName, Locale locale);", "@Test\n\tvoid testImplementStrStr() {\n\t\tassertEquals(2, new ImplementStrStr().strStr(\"hello\", \"ll\"));\n\t\tassertEquals(-1, new ImplementStrStr().strStr(\"aaaaa\", \"bba\"));\n\t\tassertEquals(4, new ImplementStrStr().strStr(\"mississippi\", \"issip\"));\n\t\tassertEquals(-1, new ImplementStrStr().strStr(\"mississippi\", \"issipi\"));\n\t\tassertEquals(0, new ImplementStrStr().strStr(\"a\", \"a\"));\n\t\tassertEquals(0, new ImplementStrStr().strStr(\"aaaaa\", \"\"));\n\t\tassertEquals(-1, new ImplementStrStr().strStr(\"a\", \"aaaaa\"));\n\t}", "@Test\n\tpublic void prototype() {\n\t\tassertEquals(parseString().parse(\"abc\").toString(), \"abc\");\n\t\tassertEquals(parseString().parse(\"asDSD2_ff\").toString(), \"asDSD2_ff\");\n\n\t}", "private String getStringFromResource(String resourcePath) {\n String str = \"\";\n ClassLoader classloader = getClass().getClassLoader();\n if (classloader == null) {\n return str;\n }\n if (logger.isTraceEnabled()) {\n URL resourceurl = classloader.getResource(resourcePath);\n logger.trace(\"URL=\" + resourceurl.toString());\n }\n InputStream instream = classloader.getResourceAsStream(resourcePath);\n if (instream == null) {\n logger.warn(\"Could not read resource from path \" + resourcePath);\n return null;\n }\n try {\n str = stringFromInputStream(instream);\n } catch (IOException ioe) {\n logger.warn(\"Could not create string from stream: \", ioe);\n return null;\n }\n return str;\n }", "public abstract String construct();", "protected void loadFile(String s) {\n\t\tpush();\n\t\tfile.load(s, curves);\n\t\trecalculateCurves();\n\t\tpushNew();\n\t}", "public interface ResourceLoader {\n\n\t/** Pseudo URL prefix for loading from the class path: \"classpath:\" */\n\tpublic static final String CLASSPATH_URL_PREFIX = \"classpath:\";\n\n\t/** URL prefix for loading from the file system: \"file:\" */\n\tpublic static final String FILE_URL_PREFIX = \"file:\";\n\n\tResource getResource(String location);\n\n}", "public StringConverter()\n {\n \n }", "public abstract void load();", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "String getString(String bundleKey, String bundleBaseName);", "void load ()\n {\n String name = this.getName();\n try\n {\n\tObject value = Class.forName (className).newInstance ();\n if (value instanceof Syntax)\n\t {\n\t loaded = (Syntax) value;\t\n\t if (name != null && loaded.getName() == null)\n\t loaded.setName(name);\n\t }\n\telse\n\t throw_error (\"failed to autoload valid syntax object \");\n }\n catch (ClassNotFoundException ex)\n {\tthrow_error (\"failed to find class \"); }\n catch (InstantiationException ex)\n { throw_error (\"failed to instantiate class \"); }\n catch (IllegalAccessException ex)\n { throw_error (\"illegal access in class \"); }\n catch (UnboundLocationException e)\n { throw_error (\"missing symbol '\" + e.getMessage () + \"' \"); }\n catch (WrongArguments ex)\n { throw_error (\"type error\"); }\n }", "@Test\r\n\tpublic void testGetString() {\r\n\t\tString s = lattice1.getString();\r\n\t\tString ss = \"[10. 6. 4.](12.328828005937952)\"\r\n\t\t\t\t+ \"[7. 11. 5.](13.96424004376894)\"\r\n\t\t\t\t+ \"[6.8 -4. -9.](11.968291440301744)\";\r\n\t\tAssert.assertEquals(\"getString\", s, ss);\r\n\t}", "private void load() {\n try {\n StringBuilder sb = new StringBuilder();\n InputStreamReader isr = new InputStreamReader(SpellCheckerDemo.class.getResourceAsStream(\"/org/jdesktop/swingx/demo/JuliusCaesar.txt\"));\n BufferedReader br = new BufferedReader(isr);\n String str;\n while((str = br.readLine()) != null) {\n sb.append(str);\n sb.append(\"\\n\");\n }\n str = sb.toString();\n textArea.setText(str);\n } catch (Throwable t) {\n logger.log(Level.SEVERE,\"Unable to load the text.\",t);\n }\n }", "String getString( String key, String def);", "static private String getRawString(String key) {\n try {\n return _resources.getString(key);\n } catch (MissingResourceException mre) {\n return \"Missing resource for: \" + key;\n }\n }", "private ClinicFileLoader() {\n\t}", "public String getString( String key )\n {\n String translation = key;\n\n if ( specificResourceBundle != null )\n {\n try\n {\n translation = specificResourceBundle.getString( key );\n }\n catch ( MissingResourceException ignored )\n {\n }\n }\n\n if ( translation.equals( key ) && globalResourceBundle != null )\n {\n try\n {\n translation = globalResourceBundle.getString( key );\n }\n catch ( MissingResourceException ignored )\n {\n }\n }\n\n return translation;\n }", "public interface StringMapResource<V> extends SharedResourceObject, Iterable<String> {\n /**\n * Return the mapped value V for a given key.\n * \n * @param key to fetch the value V for\n * @return the value V mapped to the key\n */\n public V get(String key);\n\n /**\n * Check if the given key exists.\n * \n * @param key to check\n * @return <code>true</code> if the key is known to the resource\n */\n public boolean containsKey(String key);\n \n /**\n * Return the number of keys.\n * \n * @return the number of keys known by this resource.\n */\n public int size();\n\n /**\n * Fetch an iterator for the keys.\n * \n * @return a key iterator\n */\n public Iterator<String> iterator();\n\n /**\n * Get the name of this resource.\n * \n * @return resource name\n */\n public String getResourceName();\n\n /**\n * Get the URL or URI of this resource.\n * \n * @return the resource URL string or <code>null</code>\n */\n public String getUrl();\n}", "StringSetting(Properties defaultProps, Properties props, String key, \n String defaultStr) {\n\t\tsuper(defaultProps, props, key, defaultStr);\n\t}", "private String readAndReplaceString(String fileName, String packageName, String className) {\n String baseFilePath = \"com.bgn.baseframe.base\";\n\n String time = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").format(new Date());\n String path = (codeType == 0 ? \"kotlin/\" : \"java/\");\n return readFile(path + fileName + \".txt\")\n .replace(\"&time&\", time)\n .replace(\"&package&\", packageName)\n .replace(\"&mvp&\", baseFilePath)\n .replace(\"&className&\", className);\n }", "public String getStringContent() throws IOException;", "public void loadFromString(String fullText) {\n/* */ try {\n/* 315 */ String content = \"\";\n/* */ \n/* 317 */ StringBuffer model = new StringBuffer();\n/* 318 */ BufferedReader in = new BufferedReader(new StringReader(fullText));\n/* 319 */ while ((content = in.readLine()) != null) {\n/* */ \n/* 321 */ content = content.trim();\n/* 322 */ if (content.length() == 0)\n/* */ continue; \n/* 324 */ if (content.indexOf(\"##\") == 0) {\n/* */ continue;\n/* */ }\n/* */ \n/* 328 */ model.append(content);\n/* */ } \n/* 330 */ in.close();\n/* */ \n/* 332 */ this.ensemble = new Ensemble(model.toString());\n/* 333 */ this.features = this.ensemble.getFeatures();\n/* */ }\n/* 335 */ catch (Exception ex) {\n/* */ \n/* 337 */ throw RankLibError.create(\"Error in LambdaMART::load(): \", ex);\n/* */ } \n/* */ }", "private void messagesLoad(String mesagesFileName) throws IOException {\n String temp = new String(Files.readAllBytes(Paths.get(mesagesFileName)));\n String allMessages = stripAccents(temp); // only if you use mockmock or an non UTF-8 compatible SMPT server\n \n //then we split the String into an ArrayList of String\n //in the file messages.utf8 we have used \"=_=_=\" as seperator\n messages = new ArrayList<String>(Arrays.asList(allMessages.split(\"=_=_=\\n\")));\n }", "default void load(String file) {\n load(new File(file));\n }", "private String[] loadFile(String filename) {\n\t\treturn loadFile(filename, new String[0], System.lineSeparator());\n\t}", "@Override\n\tpublic Object load(String file) {\n\t\treturn null;\n\t}" ]
[ "0.72035635", "0.7057109", "0.65986216", "0.6382296", "0.6382296", "0.6359515", "0.62357455", "0.62181413", "0.6198471", "0.6167754", "0.61333346", "0.61165243", "0.60970175", "0.607093", "0.6067893", "0.60586125", "0.60548586", "0.60257626", "0.5993784", "0.5993784", "0.5968904", "0.5963249", "0.5952914", "0.59231794", "0.59208465", "0.5838712", "0.57817346", "0.5749942", "0.57483685", "0.57372636", "0.5682123", "0.56557214", "0.56526536", "0.564199", "0.56236905", "0.56099886", "0.5565188", "0.55637836", "0.5560572", "0.5510343", "0.54797894", "0.5470764", "0.54633605", "0.54536635", "0.54464096", "0.5427639", "0.5427639", "0.542656", "0.5421719", "0.54204375", "0.54197174", "0.54197174", "0.54197174", "0.5410649", "0.54071325", "0.5398792", "0.53949636", "0.5385807", "0.53779143", "0.53716415", "0.5362532", "0.53578407", "0.5353389", "0.5347979", "0.53382385", "0.5336743", "0.5330262", "0.52936494", "0.5291728", "0.52850366", "0.5279732", "0.5278958", "0.52717215", "0.52582645", "0.5256068", "0.5255355", "0.52540994", "0.5249548", "0.52377087", "0.52287227", "0.5226702", "0.5224169", "0.52229625", "0.52187574", "0.52155584", "0.521489", "0.52116245", "0.52081656", "0.52063876", "0.52057785", "0.51919127", "0.516443", "0.5162934", "0.51621014", "0.5159871", "0.51593435", "0.5158479", "0.5149959", "0.51490897", "0.51453614" ]
0.6506986
3
A single action in different ways it's call polymorphism, for example; Polymorphism allows you define one interface and have multiple implementations.
public void InterestRate(){ System.out.println("Bank interest rate is not name "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void action();", "public abstract void action();", "public abstract void action();", "public abstract void action();", "protected abstract void action(Object obj);", "abstract public void performAction();", "public interface Action {\n void buy();\n\n void sell();\n\n void drop();\n\n void pickup();\n\n}", "public interface Action { //придумываем интерфейс для описания действий, присущих роботу\n Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту\n\n}", "public interface Action {\n void doSomething();\n}", "public interface Action {\n void doAction(GameState state);\n}", "@Override\n\tpublic void action() {\n\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "public abstract Action getAction();", "public interface Actionable {\n void executeAction(Action action);\n}", "public interface Action {\n String execute(GameController gameController);\n}", "public interface ChoiceAction {\n}", "public abstract void onAction();", "public void action() {\n action.action();\n }", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public interface ICreateAction extends IAction{\r\n\t\r\n\t\r\n}", "public interface Action {\n\n /** Containing custom action. */\n void action();\n}", "public void action() {\n }", "public void doAction(){}", "public abstract ActionInMatch act();", "@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }", "public interface PoCardAction extends UseGameUnitAction {\n}", "abstract protected String performAction(String input);", "public void performAction();", "public interface ICommandDisplayAction extends IAction{\r\n\r\n\t \r\n\t\r\n\tpublic void displayPallet() ;\r\n\r\n\tpublic void displayArena();\r\n\t\r\n\tpublic void displayComponent(String componentIntanceName) ;\r\n\t\r\n\tpublic void displayChain( ) ;\r\n}", "public interface Action {\n\t\n\t/**\n\t * @return The action's printable value\n\t */\n\tpublic String toString();\n\n\tpublic Action actionClone();\n \t\n}", "interface Action {\n void process(AbstractMessagingService serviceAction,\n Message message);\n\n }", "@Override\n public void act() {\n }", "public void act();", "public void dispatch();", "public interface Action_Aspect extends Action, ExecutableNode_Aspect {\n}", "public interface IAction {\n\n /**\n * Executes this action.\n *\n * @param time The current time in the animation\n */\n void execute(double time);\n\n /**\n * Returns a description of this action.\n *\n * @return The description as a String\n */\n String toString();\n\n /**\n * Gets this action's duration.\n *\n * @return The duration\n */\n Posn getDuration();\n\n /**\n * Gets this actions' type.\n *\n * @return The type\n */\n ActionType getType();\n\n /**\n * Gets the name of this action's shape.\n *\n * @return The name\n */\n String getShapeName();\n\n /**\n * Creates the part of the description that most\n * heavily relies on the type of Action this is.\n *\n * @return The description.\n */\n String getDescription();\n\n /**\n * Creates the description needed to be compatible with svg files.\n *\n * @param speed The speed of the animation.\n * @return The SVG description.\n */\n String getSVGDescription(double speed);\n}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "public interface Handler extends Action, Syntax {\n\n}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public interface ActivityAction {\r\n public void viewedActivity(String condition, String viewerFullName);\r\n}", "public abstract void operation();", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public interface Action {\n\n /**\n * Execute.\n *\n * @param router the router\n * @param request the request\n * @return the response\n */\n public Response execute(Router router, Request request);\n\n}", "public interface UIAction {\n}", "public void act() {\n\t}", "public interface FlyBehavior {\n public abstract void fly();\n// public abstract void\n}", "public interface Animal {\n\n public void eat();\n public void travel();\n}", "public interface ActionHandler {\n ModelApiResponse handleActionChoice(ActionChoice choice);\n List<AvailableActions> getActionsCurrentlyAvailable();\n}", "public interface Action {\n String execute(HttpServletRequest request);\n}", "public abstract void onClick();", "public abstract void onClick();", "public interface OnClick{\n void action();\n }", "protected abstract void perform(ActiveActor a);", "public interface OrderAction \r\n{\r\n\tpublic void add(Drink drink);\r\n\tpublic Drink getDrink(int i);\r\n\tpublic double getSubTotal();\r\n\tpublic double getTotal(double tip);\r\n}", "public void actionOffered();", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public interface Pet {// interface is the blueprint for other class\r\n\r\n\tpublic String food();// method food abstract method no action \r\n\r\n\r\n}", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public interface Actionable {\n /**\n * Performs an action on something\n * @param actionType The type of action to perform\n * @param id The identifier for the item to perform the action on\n * (could be a position, index, ID, etc.)\n * @return {@code true} if the associated {@code ActionMode} should be ended, {@code false} if not\n */\n public boolean performAction(int actionType, int id);\n}", "public interface AppAction\n{\n void login(String name, String password, Handler handler);\n\n void access(Handler handler, String ...s);\n\n void gdata(Handler handler, List<EHentaiMangaInfo> list);\n\n void getMangaInfo(Handler handler);\n\n void getNews(Handler handler);\n\n void getNews(Handler handler, String title, String page);\n\n void getImg( String url, ImageView imageView,AppActionImpl.Callback<Void> callback,int height,int width);\n}", "void act();", "public interface Actions extends EObject\n{\n}", "public interface ApiAction {}", "public interface IAction<A extends Agent, E extends IEnvironment> {\n\n /**\n * The concrete action\n * @param activeAgent the agent that perform this action\n * @param environment the environment of the active agent\n */\n void act(A activeAgent, E environment);\n}", "public interface MovieActionInterface {\n void onFavoriteToggle(Long movieId, boolean isFavorite);\n}", "public abstract void talk();", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public abstract void executeActionButton();", "public interface IIQActions {\n void think();\n Knowledge learn(Knowledge source, Knowledge dest);\n}", "public interface UserAction {\n\n /**\n * Begin game action\n */\n void initGame();\n\n /**\n * User choice action\n * @param x width position of cell\n * @param y height position of cell\n * @param bomb suggest of user about select cell\n */\n void select(int x, int y, boolean bomb);\n}", "public interface TriggerAction {\n\t\tpublic void click();\n\t}", "public void a_Action(){}", "interface InterfaceOuting {\n abstract String movingActivity();\n abstract String climbingActivity();\n\n default void restingActivity(){\n String rest = \"Napping\";\n displayOuting(rest);\n }\n\n static void displayOuting(String activity){\n System.out.println(\"This outing will involve \" + activity);\n }\n}", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public interface Actor extends LogicalHandled\n{\t\n\t/**\n\t * This is the actors action, which will be called at each step\n\t */\n\tpublic void act();\n}", "public interface Interactable {\n\n\tpublic void interact();\n\t\n}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "@Override\n\tprotected void generatePrimitives(SoAction action) {\n\n\t}", "interface Workshop{\n\tabstract public void work();\n}", "@Override\n public void accept(Action action) {\n }", "public interface Action {\n\n /**\n * Set local database connection\n */\n public void setDatabase(Connection _db);\n\n /**\n * Execute business logic\n */\n public boolean execute(HttpServletRequest _req, HttpServletResponse _res)\n throws ServletException, IOException;\n\n /**\n * Return the page name (and path) to display the view\n */\n public String getView();\n\n /**\n * Return a JavaBean containing the model (data)\n */\n public Object getModel();\n\n}", "public interface SettingAction {\n\n void onAction();\n\n}" ]
[ "0.7631201", "0.7631201", "0.7631201", "0.7631201", "0.7380832", "0.72410065", "0.7194837", "0.7086532", "0.7071773", "0.6976989", "0.68900543", "0.688819", "0.688819", "0.688819", "0.6881686", "0.6854604", "0.6830866", "0.6794066", "0.6774207", "0.67703027", "0.67436326", "0.6734122", "0.66792685", "0.66131365", "0.65994287", "0.65762967", "0.6574108", "0.6527457", "0.6522794", "0.6482521", "0.64754444", "0.6473806", "0.6462316", "0.64419353", "0.6440271", "0.6435784", "0.64189595", "0.6413765", "0.64036167", "0.6395479", "0.6338504", "0.6335593", "0.63322806", "0.63308716", "0.6327049", "0.63167644", "0.6303196", "0.63023746", "0.6276603", "0.6271906", "0.6271208", "0.62440455", "0.62313", "0.62313", "0.62226117", "0.6219704", "0.6196856", "0.61926", "0.6188378", "0.6188378", "0.6188378", "0.61868507", "0.61868393", "0.61868393", "0.61868393", "0.61868393", "0.61868393", "0.61868393", "0.61868393", "0.6182786", "0.61808133", "0.61436325", "0.6117945", "0.61168075", "0.6114209", "0.6108759", "0.6103832", "0.60979456", "0.60971105", "0.6094414", "0.6092837", "0.60776764", "0.6072016", "0.6045745", "0.6041029", "0.6041029", "0.60287213", "0.60234284", "0.602105", "0.602105", "0.602105", "0.602105", "0.602105", "0.602105", "0.602105", "0.602105", "0.6013853", "0.5994315", "0.5990025", "0.5987525", "0.5982011" ]
0.0
-1
====================================== = Getters & Setters = ======================================
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void get() {}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public String getName () { return this.name; }", "@Override\n protected void getExras() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n public String toString() {\n return (super.toString());\n\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "protected abstract Set method_1559();", "@Override\n protected void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n public String toString () {\n return super.toString();\n }", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getName(){return this.name;}", "@Override\n public void perish() {\n \n }", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public String getName(){\n return Name; \n }", "public String getName() { return _name; }", "@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 public String getType() {\n return \"\";\n }", "private Value() {\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\n String get();", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}", "String getName(){return this.name;}", "@Override\r\n public String toString() {\r\n return super.toString();\r\n }", "@Override\r\n public String toString() {\r\n return super.toString();\r\n }", "@Override\n public String toString() {\n return value();\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public String getName(){ return name; }", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n public void init() {}", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "protected String getName(){\r\n return this.name;\r\n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void init() {}", "@Override\n protected void updateProperties() {\n }", "@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}", "private ReadProperty()\r\n {\r\n\r\n }", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "@Override\n public String toString() {\n return \"\";\n }", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "@Override\n public int getValue() {\n return super.getValue();\n }", "@Override\r\n\tprotected Object getData() {\n\t\treturn null;\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public String getName ()\n {\n return name;\n }", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "@Override\npublic void setAttributes() {\n\t\n}", "public String getName()\n {\n return name;\n}", "Constructor() {\r\n\t\t \r\n\t }", "protected List getProperties() {\n return null;\n }", "public String getName() {\n/* 209 */ return this.name;\n/* */ }", "private Integer getId() { return this.id; }" ]
[ "0.639728", "0.6370859", "0.6183266", "0.60698766", "0.60481596", "0.59978604", "0.59956235", "0.5963829", "0.5963829", "0.5963829", "0.5963829", "0.5963829", "0.5963829", "0.5956234", "0.58971536", "0.58952826", "0.5894228", "0.58923745", "0.5868238", "0.5861126", "0.58594584", "0.58487785", "0.58429617", "0.58392376", "0.58392376", "0.5838711", "0.58305776", "0.5818568", "0.58174294", "0.58174294", "0.5798309", "0.5798106", "0.578852", "0.5786918", "0.5784697", "0.5766233", "0.57621074", "0.5761963", "0.57522076", "0.57515585", "0.57515585", "0.57515585", "0.57515585", "0.57515585", "0.57515585", "0.57484007", "0.57417285", "0.5739558", "0.5739558", "0.5738283", "0.5735686", "0.5735686", "0.5733191", "0.5732837", "0.5732837", "0.5732837", "0.5732837", "0.573167", "0.57304806", "0.5724811", "0.5724811", "0.5724221", "0.57129663", "0.5699979", "0.5694355", "0.56838274", "0.5682738", "0.56826234", "0.5682364", "0.56695074", "0.56563264", "0.5655975", "0.5654785", "0.5653587", "0.56504494", "0.5644813", "0.56422573", "0.56422573", "0.56422573", "0.56422573", "0.56413585", "0.5618505", "0.5615195", "0.5615195", "0.5600283", "0.55971766", "0.5596559", "0.559504", "0.5591106", "0.55899614", "0.5586735", "0.5585178", "0.55837846", "0.55837846", "0.55820316", "0.55772173", "0.5576849", "0.5575757", "0.5572647", "0.5569755", "0.55685073" ]
0.0
-1
Creates request wrapper from original requests.
public HttpRequestWrapper(HttpServletRequest req, ServletContext servletContext) { super(req); this.servletContext = servletContext; manager = (SessionManager)servletContext.getAttribute(Attributes.SESSION_MANAGER); ServletRequest originalRequest = req; while (originalRequest instanceof ServletRequestWrapper) { if (originalRequest instanceof HttpRequestWrapper) { break; } originalRequest = ((ServletRequestWrapper)originalRequest).getRequest(); } embeddedRequest = (originalRequest instanceof HttpRequestWrapper) ? (HttpRequestWrapper)originalRequest : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected HttpServletRequest modifyRequest(HttpServletRequest request) {\n return new HttpServletRequestWrapper(request) {\n @Override\n public String getRequestURI() {\n StringBuffer uri = new StringBuffer(this.getPathInfo());\n if (this.getQueryString().length() > 0) {\n uri.append(\"?\").append(this.getQueryString());\n }\n return uri.toString();\n }\n @Override\n public String getPathInfo() {\n return (String)this.getRequest().getAttribute(RackPortlet.PORTLET_REQUEST_PATH);\n }\n @Override\n public String getQueryString() {\n return (String)this.getRequest().getAttribute(RackPortlet.PORTLET_REQUEST_QUERY);\n }\n @Override public String getServletPath() { return \"\"; }\n @Override public ServletInputStream getInputStream() { return new EmptyServletInputStream(); }\n };\n }", "private CustomRequest getCustomRequestFor(HttpRequest aRequest,\n Handler aHandler) {\n int lRequestMapped = mapToVolleyMethodCode(aRequest.getMethod());\n RequestComposite lMap = new RequestComposite();\n lMap.setHttpReq(aRequest);\n Handler lHandler = aHandler == null ? mainHandler : aHandler;\n Listener<String> lListener = getListenerForRequest(lMap, lHandler);\n Response.ErrorListener lErrorListener = getErrorListenerForRequest(lMap,\n lHandler);\n CustomRequest lReq = new CustomRequest(lRequestMapped,\n aRequest.getUrl(), lListener, lErrorListener, aRequest);\n // update the reference in the map.\n lMap.setVolleyReq(lReq);\n return lReq;\n }", "static @NonNull HttpRequest toHttpRequest(@NonNull io.micronaut.http.HttpRequest<?> request) {\n Objects.requireNonNull(request, \"The request cannot be null\");\n while (request instanceof HttpRequestWrapper) {\n request = ((HttpRequestWrapper<?>) request).getDelegate();\n }\n if (request instanceof NettyHttpRequestBuilder) {\n return ((NettyHttpRequestBuilder) request).toHttpRequest();\n }\n // manual conversion\n HttpRequest nettyRequest;\n ByteBuf byteBuf = request.getBody(ByteBuf.class).orElse(null);\n if (byteBuf != null) {\n nettyRequest = new DefaultFullHttpRequest(\n HttpVersion.HTTP_1_1,\n HttpMethod.valueOf(request.getMethodName()),\n request.getUri().toString(),\n byteBuf\n );\n } else {\n nettyRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1,\n HttpMethod.valueOf(request.getMethodName()),\n request.getUri().toString()\n );\n }\n\n request.getHeaders()\n .forEach((s, strings) -> nettyRequest.headers().add(s, strings));\n return nettyRequest;\n }", "@Override\n\tpublic Request request() {\n\t\treturn originalRequest;\n\t}", "public static ApiRequest createRequests() {\n Retrofit retrofit = builder.client(client)\n .build();\n return retrofit.create(ApiRequest.class);\n }", "private final static HttpRequest createRequest() {\r\n\r\n HttpRequest req = new BasicHttpRequest\r\n (\"GET\", \"/\", HttpVersion.HTTP_1_1);\r\n //(\"OPTIONS\", \"*\", HttpVersion.HTTP_1_1);\r\n\r\n return req;\r\n }", "@SuppressWarnings(\"deprecation\")\n\tprotected static HttpUriRequest createHttpRequest(Request<?> request, Map<String, String> additionalHeaders) throws AuthFailureError {\n\t\tswitch (request.getMethod()) {\n\t\tcase Method.DEPRECATED_GET_OR_POST: {\n\t\t\t// This is the deprecated way that needs to be handled for backwards compatibility.\n\t\t\t// If the request's post body is null, then the assumption is that the request is\n\t\t\t// GET. Otherwise, it is assumed that the request is a POST.\n\t\t\tbyte[] postBody = request.getPostBody();\n\t\t\tif (postBody != null) {\n\t\t\t\tHttpPost postRequest = new HttpPost(request.getUrl());\n\t\t\t\tpostRequest.addHeader(HEADER_CONTENT_TYPE, request.getPostBodyContentType());\n\t\t\t\tHttpEntity entity;\n\t\t\t\tentity = new ByteArrayEntity(postBody);\n\t\t\t\tpostRequest.setEntity(entity);\n\t\t\t\treturn postRequest;\n\t\t\t} else {\n\t\t\t\treturn new HttpGet(request.getUrl());\n\t\t\t}\n\t\t}\n\t\tcase Method.GET:\n\t\t\treturn new HttpGet(request.getUrl());\n\t\tcase Method.DELETE:\n\t\t\treturn new HttpDelete(request.getUrl());\n\t\tcase Method.POST: {\n\t\t\tHttpPost postRequest = new HttpPost(request.getUrl());\n\t\t\tpostRequest.addHeader(HEADER_CONTENT_TYPE, request.getBodyContentType());\n\t\t\tsetEntityIfNonEmptyBody(postRequest, request);\n\t\t\treturn postRequest;\n\t\t}\n\t\tcase Method.PUT: {\n\t\t\tHttpPut putRequest = new HttpPut(request.getUrl());\n\t\t\tputRequest.addHeader(HEADER_CONTENT_TYPE, request.getBodyContentType());\n\t\t\tsetEntityIfNonEmptyBody(putRequest, request);\n\t\t\treturn putRequest;\n\t\t}\n\t\tdefault:\n\t\t\tthrow new IllegalStateException(\"Unknown request method.\");\n\t\t}\n\t}", "@Override\n public OutgoingRequest createOutgoingRequest(DriverRequest originalRequest, String uri, boolean proxy) {\n HttpHost physicalHost = UriUtils.extractHost(uri);\n\n if (!originalRequest.isExternal()) {\n if (preserveHost) {\n // Preserve host if required\n HttpHost virtualHost = HttpRequestHelper.getHost(originalRequest.getOriginalRequest());\n // Rewrite the uri with the virtualHost\n uri = UriUtils.rewriteURI(uri, virtualHost);\n } else {\n uri = UriUtils.rewriteURI(uri, firstBaseUrlHost);\n }\n }\n\n RequestConfig.Builder builder = RequestConfig.custom();\n builder.setConnectTimeout(connectTimeout);\n builder.setSocketTimeout(socketTimeout);\n\n // Use browser compatibility cookie policy. This policy is the closest\n // to the behavior of a real browser.\n builder.setCookieSpec(CustomBrowserCompatSpecFactory.CUSTOM_BROWSER_COMPATIBILITY);\n\n builder.setRedirectsEnabled(false);\n RequestConfig config = builder.build();\n\n OutgoingRequestContext context = new OutgoingRequestContext();\n\n String method = \"GET\";\n if (proxy) {\n method = originalRequest.getOriginalRequest().getRequestLine().getMethod().toUpperCase();\n }\n OutgoingRequest outgoingRequest =\n new OutgoingRequest(method, uri, originalRequest.getOriginalRequest().getProtocolVersion(),\n originalRequest, config, context);\n if (ENTITY_METHODS.contains(method)) {\n outgoingRequest.setEntity(originalRequest.getOriginalRequest().getEntity());\n } else if (!SIMPLE_METHODS.contains(method)) {\n throw new UnsupportedHttpMethodException(method + \" \" + uri);\n }\n\n context.setPhysicalHost(physicalHost);\n context.setOutgoingRequest(outgoingRequest);\n context.setProxy(proxy);\n\n return outgoingRequest;\n }", "Request(Request otherRequest) {\n this.reqNum = otherRequest.reqNum;\n this.reqText = otherRequest.reqText;\n this.reqExampleDocs = new ArrayList<ExampleDocument>(otherRequest.reqExampleDocs);\n }", "public Request(Request other) {\n __isset_bitfield = other.__isset_bitfield;\n if (other.isSetUrl()) {\n this.url = other.url;\n }\n if (other.isSetMethod()) {\n this.method = other.method;\n }\n if (other.isSetMeta()) {\n Map<String,String> __this__meta = new HashMap<String,String>();\n for (Map.Entry<String, String> other_element : other.meta.entrySet()) {\n\n String other_element_key = other_element.getKey();\n String other_element_value = other_element.getValue();\n\n String __this__meta_copy_key = other_element_key;\n\n String __this__meta_copy_value = other_element_value;\n\n __this__meta.put(__this__meta_copy_key, __this__meta_copy_value);\n }\n this.meta = __this__meta;\n }\n if (other.isSetBody()) {\n this.body = other.body;\n }\n if (other.isSetHeaders()) {\n Map<String,String> __this__headers = new HashMap<String,String>();\n for (Map.Entry<String, String> other_element : other.headers.entrySet()) {\n\n String other_element_key = other_element.getKey();\n String other_element_value = other_element.getValue();\n\n String __this__headers_copy_key = other_element_key;\n\n String __this__headers_copy_value = other_element_value;\n\n __this__headers.put(__this__headers_copy_key, __this__headers_copy_value);\n }\n this.headers = __this__headers;\n }\n if (other.isSetCookies()) {\n Map<String,String> __this__cookies = new HashMap<String,String>();\n for (Map.Entry<String, String> other_element : other.cookies.entrySet()) {\n\n String other_element_key = other_element.getKey();\n String other_element_value = other_element.getValue();\n\n String __this__cookies_copy_key = other_element_key;\n\n String __this__cookies_copy_value = other_element_value;\n\n __this__cookies.put(__this__cookies_copy_key, __this__cookies_copy_value);\n }\n this.cookies = __this__cookies;\n }\n if (other.isSetEncoding()) {\n this.encoding = other.encoding;\n }\n this.priority = other.priority;\n }", "private Request build() {\n Request.Builder builder =\n new Request.Builder().cacheControl(new CacheControl.Builder().noCache().build());\n\n HttpUrl.Builder urlBuilder = HttpUrl.parse(url).newBuilder();\n for (Map.Entry<String, String> entry : queryParams.entrySet()) {\n urlBuilder = urlBuilder.addEncodedQueryParameter(entry.getKey(), entry.getValue());\n }\n builder = builder.url(urlBuilder.build());\n\n for (Map.Entry<String, String> entry : headers.entrySet()) {\n builder = builder.header(entry.getKey(), entry.getValue());\n }\n\n RequestBody body = (bodyBuilder == null) ? null : bodyBuilder.build();\n builder = builder.method(method.name(), body);\n\n return builder.build();\n }", "public SubRequestFacade(Request request) {\n super(request);\n }", "public interface NettyHttpRequestBuilder {\n /**\n * Converts this object to a full http request.\n *\n * @return a full http request\n */\n @NonNull\n FullHttpRequest toFullHttpRequest();\n\n /**\n * Converts this object to a streamed http request.\n * @return The streamed request\n */\n @NonNull\n StreamedHttpRequest toStreamHttpRequest();\n\n /**\n * Converts this object to the most appropriate http request type.\n * @return The http request\n */\n @NonNull\n HttpRequest toHttpRequest();\n\n /**\n * @return Is the request a stream.\n */\n boolean isStream();\n\n /**\n * Convert the given request to a full http request.\n * @param request The request\n * @return The full request.\n */\n static @NonNull HttpRequest toHttpRequest(@NonNull io.micronaut.http.HttpRequest<?> request) {\n Objects.requireNonNull(request, \"The request cannot be null\");\n while (request instanceof HttpRequestWrapper) {\n request = ((HttpRequestWrapper<?>) request).getDelegate();\n }\n if (request instanceof NettyHttpRequestBuilder) {\n return ((NettyHttpRequestBuilder) request).toHttpRequest();\n }\n // manual conversion\n HttpRequest nettyRequest;\n ByteBuf byteBuf = request.getBody(ByteBuf.class).orElse(null);\n if (byteBuf != null) {\n nettyRequest = new DefaultFullHttpRequest(\n HttpVersion.HTTP_1_1,\n HttpMethod.valueOf(request.getMethodName()),\n request.getUri().toString(),\n byteBuf\n );\n } else {\n nettyRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1,\n HttpMethod.valueOf(request.getMethodName()),\n request.getUri().toString()\n );\n }\n\n request.getHeaders()\n .forEach((s, strings) -> nettyRequest.headers().add(s, strings));\n return nettyRequest;\n }\n\n}", "@Override\r\n\t\t\tprotected Vector prepareRequests(ACLMessage request) {\n\t\t\t\tString incomingRequestKey = (String) ((AchieveREResponder) parent).REQUEST_KEY;\r\n\t\t\t\tACLMessage incomingRequest = (ACLMessage) getDataStore().get(incomingRequestKey);\r\n\t\t\t\t// Prepare the request to forward to the responder\r\n\t\t\t\tSystem.out.println(\"Agent \"+getLocalName()+\": Forward the request to \"+bestOffer.getName());\r\n\t\t\t\tACLMessage outgoingRequest = new ACLMessage(ACLMessage.REQUEST);\r\n\t\t\t\toutgoingRequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\t\toutgoingRequest.addReceiver(bestOffer);\r\n\t\t\t\toutgoingRequest.setContent(incomingRequest.getContent());\r\n\t\t\t\toutgoingRequest.setReplyByDate(incomingRequest.getReplyByDate());\r\n\t\t\t\tVector v = new Vector(1);\r\n\t\t\t\tv.addElement(outgoingRequest);\r\n\t\t\t\treturn v;\r\n\t\t\t}", "public interface HttpRequestFactory\n{\n\n\tpublic abstract HttpRequest buildHttpRequest(HttpMethod httpmethod, String s);\n\n\tpublic abstract HttpRequest buildHttpRequest(HttpMethod httpmethod, String s, Map map);\n\n\tpublic abstract PinningInfoProvider getPinningInfoProvider();\n\n\tpublic abstract void setPinningInfoProvider(PinningInfoProvider pinninginfoprovider);\n}", "@Override\n\tpublic abstract RequestAttributeInspectorFactory getWrapped();", "public ResponseFromHTTP makeRequest() throws CustomRuntimeException\n\t{\n\t\tResponseFromHTTP result=null;\n\t\tCloseableHttpClient httpclient=null;\n\t\tCloseableHttpResponse response=null;\n\t\tboolean needAuth=false;\n\t\tboolean viaProxy=httpTransportInfo.isUseProxy() && StringUtils.isNotBlank(httpTransportInfo.getProxyHost());\n\n\t\tHttpHost target = new HttpHost(httpTransportInfo.getHost(), httpTransportInfo.getPort(),httpTransportInfo.getProtocol());\n\t\t//basic auth for request\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tif(StringUtils.isNotBlank(httpTransportInfo.getLogin()) && \n\t\t\t\tStringUtils.isNotBlank(httpTransportInfo.getPassword()))\n\t\t{\n\t\t\tcredsProvider.setCredentials(\n\t\t\t\t\tnew AuthScope(target.getHostName(), target.getPort()),\n\t\t\t\t\tnew UsernamePasswordCredentials(httpTransportInfo.getLogin(), httpTransportInfo.getPassword()));\n\t\t\tneedAuth=true;\n\t\t}\n\n\t\t//proxy auth?\n\t\tif(viaProxy && StringUtils.isNotBlank(httpTransportInfo.getProxyLogin()) &&\n\t\t\t\tStringUtils.isNotBlank(httpTransportInfo.getProxyPassword()))\n\t\t{\n\t\t\t//proxy auth setting\n\t\t\tcredsProvider.setCredentials(\n\t\t\t\t\tnew AuthScope(httpTransportInfo.getProxyHost(), httpTransportInfo.getProxyPort()),\n\t\t\t\t\tnew UsernamePasswordCredentials(httpTransportInfo.getProxyLogin(), httpTransportInfo.getProxyPassword()));\n\t\t}\n\n\t\ttry\n\t\t{\n\n\t\t\tHttpClientBuilder httpclientBuilder = HttpClients.custom()\n\t\t\t\t\t.setDefaultCredentialsProvider(credsProvider);\n\t\t\t//https\n\t\t\tif(\"https\".equalsIgnoreCase(httpTransportInfo.getProtocol()))\n\t\t\t{\n\t\t\t\t//A.K. - Set stub for check certificate - deprecated from 4.4.1\n\t\t\t\tSSLContextBuilder sslContextBuilder=SSLContexts.custom();\n\t\t\t\tTrustStrategyLZ trustStrategyLZ=new TrustStrategyLZ();\n\t\t\t\tsslContextBuilder.loadTrustMaterial(null,trustStrategyLZ);\n\t\t\t\tSSLContext sslContext = sslContextBuilder.build();\n\t\t\t\tSSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext,SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n\t\t\t\thttpclientBuilder.setSSLSocketFactory(sslsf);\n\t\t\t}\n\n\t\t\thttpclient=httpclientBuilder.build();\n\n\t\t\t//timeouts\n\t\t\tBuilder builder = RequestConfig.custom()\n\t\t\t\t\t.setSocketTimeout(httpTransportInfo.getSocketTimeoutSec()*1000)\n\t\t\t\t\t.setConnectTimeout(httpTransportInfo.getConnectTimeoutSec()*1000);\n\n\t\t\t//via proxy?\n\t\t\tif(viaProxy)\n\t\t\t{\n\t\t\t\t//proxy setting\n\t\t\t\tHttpHost proxy = new HttpHost(httpTransportInfo.getProxyHost(),httpTransportInfo.getProxyPort(),httpTransportInfo.getProxyProtocol());\n\t\t\t\tbuilder.setProxy(proxy);\n\t\t\t}\n\n\t\t\tRequestConfig requestConfig=builder.build();\n\n\t\t\t// Create AuthCache instance\n\t\t\tAuthCache authCache = new BasicAuthCache();\n\t\t\t// Generate BASIC scheme object and add it to the local\n\t\t\t// auth cache\n\t\t\tBasicScheme basicAuth = new BasicScheme();\n\t\t\tauthCache.put(target, basicAuth);\n\n\t\t\t// Add AuthCache to the execution context\n\t\t\tHttpClientContext localContext = HttpClientContext.create();\n\t\t\tlocalContext.setAuthCache(authCache);\n\n\t\t\tPathParser parsedPath=new PathParser(getUri());\n\t\t\tif(restMethodDef.isUseOriginalURI())\n\t\t\t{\n\t\t\t\t//in this case params from URI will not add to all params\n\t\t\t\tparsedPath.getParams().clear();\n\t\t\t}\n\t\t\tparsedPath.getParams().addAll(getRequestDefinition().getParams());\n\t\t\t//prepare URI\n\t\t\tURIBuilder uriBuilder = new URIBuilder().setPath(parsedPath.getUri());\n\t\t\tif(!getRequestDefinition().isHttpMethodPost())\n\t\t\t{\n\t\t\t\t//form's parameters - GET/DELETE/OPTIONS/PUT\n\t\t\t\tfor(NameValuePair nameValuePair : parsedPath.getParams())\n\t\t\t\t{\n\t\t\t\t\turiBuilder.setParameter(nameValuePair.getName(),nameValuePair.getValue());\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tURI resultUri =(restMethodDef.isUseOriginalURI())?new URI(getUri()):uriBuilder.build();\n\n\t\t\t//\t\t\tHttpRequestBase httpPostOrGet=(getRequestDefinition().isHttpMethodPost())?\n\t\t\t//\t\t\t\t\tnew HttpPost(resultUri):\n\t\t\t//\t\t\t\t\tnew HttpGet(resultUri);\n\n\t\t\tHttpRequestBase httpPostOrGetEtc=null;\n\t\t\t//\n\t\t\tswitch(getRequestDefinition().getHttpMethod())\n\t\t\t{\n\t\t\t\tcase POST: httpPostOrGetEtc=new HttpPost(resultUri);break;\n\t\t\t\tcase DELETE: httpPostOrGetEtc=new HttpDelete(resultUri);break;\n\t\t\t\tcase OPTIONS: httpPostOrGetEtc=new HttpOptions(resultUri);break;\n\t\t\t\tcase PUT: httpPostOrGetEtc=new HttpPut(resultUri);break;\n\n\t\t\t\tdefault: httpPostOrGetEtc=new HttpGet(resultUri);break;\n\t\t\t}\n\n\t\t\t//Specifie protocol version\n\t\t\tif(httpTransportInfo.isVersionHttp10())\n\t\t\t\thttpPostOrGetEtc.setProtocolVersion(HttpVersion.HTTP_1_0);\n\n\t\t\t//user agent\n\t\t\thttpPostOrGetEtc.setHeader(HttpHeaders.USER_AGENT,httpTransportInfo.getUserAgent());\n\t\t\t//заголовки из запроса\n\t\t\tif(getRequestDefinition().getHeaders().size()>0)\n\t\t\t{\n\t\t\t\tfor(NameValuePair nameValuePair : getRequestDefinition().getHeaders())\n\t\t\t\t{\n\t\t\t\t\tif(org.apache.commons.lang.StringUtils.isNotBlank(nameValuePair.getName()) &&\n\t\t\t\t\t\t\torg.apache.commons.lang.StringUtils.isNotBlank(nameValuePair.getValue()))\n\t\t\t\t\t{\n\t\t\t\t\t\thttpPostOrGetEtc.setHeader(nameValuePair.getName(),nameValuePair.getValue());\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Additional HTTP headers from httpTransportInfo\n\t\t\tif(httpTransportInfo.getAddHeaders()!=null)\n\t\t\t{\n\t\t\t\tfor(Map.Entry<String, String> entry:httpTransportInfo.getAddHeaders().entrySet())\n\t\t\t\t{\n\t\t\t\t\tif(org.apache.commons.lang.StringUtils.isNotBlank(entry.getKey()) &&\n\t\t\t\t\t\t\torg.apache.commons.lang.StringUtils.isNotBlank(entry.getValue()))\n\t\t\t\t\t{\n\t\t\t\t\t\thttpPostOrGetEtc.setHeader(entry.getKey(),entry.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\thttpPostOrGetEtc.setConfig(requestConfig);\n\t\t\t//Form's parameters, request POST\n\t\t\tif(getRequestDefinition().isHttpMethodPost())\n\t\t\t{\n\t\t\t\tif(getPostBody()!=null)\n\t\t\t\t{\n\t\t\t\t\tStringEntity stringEntity=new StringEntity(getPostBody(),httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPost) (httpPostOrGetEtc)).setEntity(stringEntity);\n\t\t\t\t}\n\t\t\t\telse if(parsedPath.getParams().size()>0)\n\t\t\t\t{\n\t\t\t\t\tUrlEncodedFormEntity entityForm = new UrlEncodedFormEntity(parsedPath.getParams(), httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPost) (httpPostOrGetEtc)).setEntity(entityForm);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Body for PUT\n\t\t\tif(getRequestDefinition().getHttpMethod()==HttpMethod.PUT)\n\t\t\t{\n\t\t\t\tif(getPostBody()!=null)\n\t\t\t\t{\n\t\t\t\t\tStringEntity stringEntity=new StringEntity(getPostBody(),httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPut) (httpPostOrGetEtc)).setEntity(stringEntity);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresponse = httpclient.execute(target, httpPostOrGetEtc, (needAuth)?localContext:null);\n\t\t\t//response.\n\t\t\tHttpEntity entity = response.getEntity();\n\t\t\tif(entity!=null)\n\t\t\t{\n\t\t\t\t//charset\n\t\t\t\tContentType contentType = ContentType.get(entity);\n\t\t\t\tString currentCharSet=httpTransportInfo.getCharset();\n\t\t\t\tif(contentType!=null)\n\t\t\t\t{\n\t\t\t\t\t//String mimeType = contentType.getMimeType();\n\t\t\t\t\tif(contentType.getCharset()!=null)\n\t\t\t\t\t\tcurrentCharSet=contentType.getCharset().name();\n\t\t\t\t}\n\t\t\t\tInputStream inputStream=entity.getContent();\n\t\t\t\tif(getRequestDefinition().isBinaryResponseBody())\n\t\t\t\t{\n\t\t\t\t\t//binary content\n\t\t\t\t\tbyte[] bodyBin = IOUtils.toByteArray(inputStream);\n\t\t\t\t\tresult=new ResponseFromHTTP(response.getAllHeaders(),bodyBin,response.getStatusLine().getStatusCode());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//copy content to string\n\t\t\t\t\tStringWriter writer = new StringWriter();\n\t\t\t\t\tIOUtils.copy(inputStream, writer, currentCharSet);\n\t\t\t\t\tresult=new ResponseFromHTTP(response.getAllHeaders(),writer.toString(),response.getStatusLine().getStatusCode());\n\t\t\t\t}\n\t\t\t\tinputStream.close();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new CustomRuntimeException(\"fetchData over http uri: \"+getUri(),e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(response!=null)\n\t\t\t\t\tresponse.close();\n\t\t\t\tif(httpclient!=null)\n\t\t\t\t\thttpclient.close();\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t} \t\n\t\t}\t\t\n\t\treturn result;\n\n\t}", "public final process.proxies.RequestCreation getRequestCreation()\r\n\t{\r\n\t\treturn getRequestCreation(getContext());\r\n\t}", "private Request() {}", "private Request() {}", "MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);", "public interface RequestModifier {\n\n /**\n * Set HTTP request method, only support get, post,put , delete method.\n *\n * @param method\n *\n */\n public void setMethod(HTTPMethod method);\n\n /**\n * Set HTTP Protocol.\n *\n * @param protocol\n *\n */\n public void setProtocol(String protocol);\n\n /**\n * Set HTTP version , such as HTTP1.1.\n *\n * @param version\n *\n */\n public void setVersion(String version);\n\n /**\n * Set HTTP domain.\n *\n * @param domain\n *\n */\n public void setDomain(String domain);\n\n /**\n * Set path in the url.\n *\n * @param path\n *\n */\n public void setPath(String path);\n\n /**\n * Set web server port\n *\n * @param port\n *\n */\n public void setPort(int port);\n\n /**\n * Set HTTP url\n *\n * @param url\n *\n */\n public void setUrl(URL url);\n\n /**\n * Set HTTP url string\n *\n * @param url\n *\n */\n public void setUrl(String url);\n\n /**\n * Modify the exist argument in url.\n *\n * @param urlArg\n *\n * @return boolean, if success to modfiy this argument, return true.\n * if fail to modfiy this argument, return false.\n */\n public boolean modifyURIArgContent(URLArg urlArg);\n\n /**\n * Modify the exist header in HTTP request headers.\n *\n * @param header\n *\n * @return boolean, if success to modfiy this argument, return true.\n * if fail to modfiy this argument, return false.\n */\n public boolean modifyHeaderContent(Header header);\n\n /**\n * Add the request header, if this header is exist, modfiy this value.\n *\n * @param key\n *\n * @param header\n *\n */\n public void addHeader(String key, String header);\n\n /**\n * Add the request header, if this header is exist, modfiy this value.\n *\n * @param key\n *\n * @param header\n *\n */\n public void delHeader(String key);\n\n /**\n * Add the post arg in request header, if this argument is exist, modfiy this value.\n *\n * @param key\n *\n * @param value\n *\n */\n public void addPostArg(String key, String value);\n\n /**\n * Add the url arg in request url, if this argument is exist, modfiy this value.\n *\n * @param key\n *\n * @param value\n *\n */\n public void addUrlArg(String key, String value);\n}", "void projectUriRequest(Request request);", "static HttpRequestInitializer getRequestInitializer() {\n return new HttpRequestInitializer() {\n @Override\n public void initialize(final HttpRequest arg0) {\n }\n };\n }", "ServletRequestInjector getRequestInjector();", "public ReAuthRequest createReAuthRequest(Request req) {\n return null;\r\n }", "public Request<E, T> buildHttpGet ()\n\t{\n\t\treturn new HttpGetRequest<E,T>(this);\n\t}", "private WebSearchRequest createNextRequest() {\n\t\tWebSearchRequest _request = new WebSearchRequest(query);\n\t\t_request.setStart(BigInteger.valueOf(cacheStatus+1));\t\t\t\t\t//Yahoo API starts index with 1, not with 0\n\t\t_request.setResults(getFetchBlockSize());\n\t\treturn _request;\n\t}", "public RedisSessionRequestWrapper(HttpServletRequest request) {\n super(request);\n this.request = request;\n this.token = request.getHeader(TOKEN_HEADER_NAME);\n }", "public Request<E, T> buildHttpPost ()\n\t{\n\t\treturn new HttpPostRequest<E, T>(this);\n\t}", "protected TrellisRequest getRequest() {\n return request;\n }", "public Builder addRequests(RequestFromSelf value) {\n copyOnWrite();\n instance.addRequests(value);\n return this;\n }", "public static EvaluableRequest buildEvaluableRequest(String requestBody, String requestResourcePath, HttpServletRequest request) {\n // Create and fill an evaluable request object.\n EvaluableRequest evaluableRequest = new EvaluableRequest(requestBody,\n requestResourcePath != null ? requestResourcePath.split(\"/\") : null);\n // Adding query parameters...\n Map<String, String> evaluableParams = new HashMap<>();\n List<String> parameterNames = Collections.list(request.getParameterNames());\n for (String parameter : parameterNames) {\n evaluableParams.put(parameter, request.getParameter(parameter));\n }\n evaluableRequest.setParams(evaluableParams);\n // Adding headers...\n Map<String, String> evaluableHeaders = new HashMap<>();\n List<String> headerNames = Collections.list(request.getHeaderNames());\n for (String header : headerNames) {\n evaluableHeaders.put(header, request.getHeader(header));\n }\n evaluableRequest.setHeaders(evaluableHeaders);\n\n return evaluableRequest;\n }", "TypedRequest createTypedRequest();", "@Deprecated\n public Request.Builder makeRequestBuilder() {\n Request.Builder hrb = new Request.Builder();\n\n Map<String, String> traceHeaders = tracing.makeOutboundHttpTraceHeaders();\n traceHeaders.forEach(hrb::addHeader);\n return hrb;\n }", "private RestRequest createRestRequest(final Client jerseyClient) {\n String uri = getServiceEndpointAddress();\n WebResource webResource = buildWebResource(jerseyClient, uri);\n return new RestRequest(webResource);\n }", "public void build() {\n\t\t\tRequest request = new Request();\n request.context = context;\n\t\t\trequest.requestType = requestType;\n\t\t\trequest.url = url;\n\t\t\trequest.envelope = envelope;\n\t\t\trequest.headers = headers;\n\n\t\t\trequest.responseListener = responseListener;\n\t\t\trequest.onValidateResponseListener = validateResponseListener;\n\n\t\t\trequest.isDebug = isDebug;\n\n\t\t\trequest.start();\n\t\t}", "public StripesRequestWrapper(HttpServletRequest request,\n String pathToTempDir,\n int maxTotalPostSize) throws StripesServletException {\n super(request);\n \n try {\n String contentType = request.getContentType();\n \n if (contentType != null && contentType.startsWith(\"multipart/form-data\")) {\n this.multipart = new MultipartRequest(request, pathToTempDir, maxTotalPostSize);\n }\n }\n catch (IOException e) {\n Matcher matcher = exceptionPattern.matcher(e.getMessage());\n \n if (matcher.matches()) {\n throw new FileUploadLimitExceededException(Integer.parseInt(matcher.group(2)),\n Integer.parseInt(matcher.group(1)));\n }\n else {\n throw new StripesServletException(\"Could not construct request wrapper.\", e);\n }\n }\n }", "private Request() {\n initFields();\n }", "private HttpRequestRouterParametersMap(final HttpRequest request) {\n super();\n this.request = request;\n }", "static Request parseRequest(InputStream in) throws IOException {\n\t\tRequestLine request = readRequestLine(in);\n\t\tHeaders headers = readHeaders(in);\n\t\tlong length = -1;\n\t\tInputStream body;\n\t\tif (HeaderValue.CHUNKED.equals(headers.get(HeaderName.TRANSFER_ENCODING))) {\n\t\t\tbody = new ChunkedInputStream(in);\n\t\t} else {\n\t\t\tString header = headers.get(HeaderName.CONTENT_LENGTH);\n\t\t\tlength = header == null ? 0 : Long.parseLong(header);\n\t\t\tbody = new LimitedInputStream(in, length);\n\t\t}\n\t\treturn new Request(request.method(), request.target(), request.path(), request.query(), headers, length, body);\n\t}", "public static StripesRequestWrapper findStripesWrapper(ServletRequest request) {\n // Loop through any request wrappers looking for the stripes one\n while ( !(request instanceof StripesRequestWrapper)\n && request != null\n && request instanceof HttpServletRequestWrapper) {\n request = ((HttpServletRequestWrapper) request).getRequest();\n }\n \n // If we have our wrapper after the loop exits, we're good; otherwise...\n if (request instanceof StripesRequestWrapper) {\n return (StripesRequestWrapper) request;\n }\n \n else {\n throw new IllegalStateException(\"A request made it through to some part of Stripes \" +\n \"without being wrapped in a StripesRequestWrapper. The StripesFilter is \" +\n \"responsible for wrapping the request, so it is likely that either the \" +\n \"StripesFilter is not deployed, or that it's mappings do not include the \" +\n \"DispatcherServlet _and_ *.jsp. Stripes does not requiire that the Stripes \" +\n \"wrapper is the only request wrapper, or the outermost; only that is is present.\");\n }\n }", "public Builder addAllRequests(\n Iterable<? extends RequestFromSelf> values) {\n copyOnWrite();\n instance.addAllRequests(values);\n return this;\n }", "public Pokemon.Request.Builder addRequestsBuilder() {\n return getRequestsFieldBuilder().addBuilder(\n Pokemon.Request.getDefaultInstance());\n }", "public Request(){\n\t\tthis(null, null, null);\n\t}", "private RequestExecution() {}", "private ObjectNode makeRequest(final String api) {\n ObjectNode req = JSON.objectNode();\n req.put(\"api\", api);\n return req;\n }", "public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}", "public SecurityHttpServletRequestWrapper(HttpServletRequest request, int maxLength) {\n\t\tthis(request, maxLength, true);\n\t}", "public static TemplatePushRequest newRequest() {\n return new TemplatePushRequest();\n }", "private Builder(io.confluent.developer.InterceptTest.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.req_custid)) {\n this.req_custid = data().deepCopy(fields()[0].schema(), other.req_custid);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.req_message)) {\n this.req_message = data().deepCopy(fields()[1].schema(), other.req_message);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.req_json)) {\n this.req_json = data().deepCopy(fields()[2].schema(), other.req_json);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.req_remote_addr)) {\n this.req_remote_addr = data().deepCopy(fields()[3].schema(), other.req_remote_addr);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.req_uri)) {\n this.req_uri = data().deepCopy(fields()[4].schema(), other.req_uri);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.req_headers)) {\n this.req_headers = data().deepCopy(fields()[5].schema(), other.req_headers);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.req_method)) {\n this.req_method = data().deepCopy(fields()[6].schema(), other.req_method);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.result_json)) {\n this.result_json = data().deepCopy(fields()[7].schema(), other.result_json);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.result_post)) {\n this.result_post = data().deepCopy(fields()[8].schema(), other.result_post);\n fieldSetFlags()[8] = true;\n }\n }", "@Deprecated\n public Request createRequestEntity(Request request) throws RequestCreationException;", "public HttpRequest a(InputStream inputStream, OutputStream outputStream) throws IOException {\n final InputStream inputStream2 = inputStream;\n final OutputStream outputStream2 = outputStream;\n return (HttpRequest) new a<HttpRequest>(inputStream, this.h) {\n /* renamed from: a */\n public HttpRequest b() throws IOException {\n byte[] bArr = new byte[HttpRequest.this.j];\n while (true) {\n int read = inputStream2.read(bArr);\n if (read == -1) {\n return HttpRequest.this;\n }\n outputStream2.write(bArr, 0, read);\n }\n }\n }.call();\n }", "private void changeRequest(InstanceRequest request) {\r\n\t\t\r\n\t}", "PyDictionary buildRequestTuple(HttpServletRequest req) {\n PyDictionary ret = new PyDictionary();\n ret.putAll(req.getParameterMap());\n return ret;\n }", "private HttpUriRequest createHttpRequest(String url, String method,\n\t\t\tList<NameValuePair> params) throws UnsupportedEncodingException {\n\t\tHttpUriRequest request;\n\t\tif (method.toUpperCase().equals(\"GET\")) {\n\t\t\trequest = new HttpGet(url);\n\t\t} else if (method.toUpperCase().equals(\"POST\")) {\n\t\t\tHttpPost post = new HttpPost(url);\n\t\t\tpost.setEntity(new UrlEncodedFormEntity(params));\n\t\t\trequest = post;\n\t\t} else if (method.toUpperCase().equals(\"PUT\")) {\n\t\t\trequest = new HttpPut(url);\n\t\t} else if (method.toUpperCase().equals(\"DELETE\")) {\n\t\t\trequest = new HttpDelete(url);\n\t\t} else {\n\t\t\trequest = new HttpGet();\n\t\t}\n\n\t\treturn request;\n\t}", "void setRequest(Request req);", "@NonNull\n HttpRequest toHttpRequest();", "private WorkflowRequest parseWorkflowRequest(String [] origArgs) throws InvalidRequestException {\n final RegistryNode match = registry.findWorkflowMatch(origArgs);\n if (match == null || match.getWorkflow() == null) {\n throw new InvalidRequestException(\"Cannot find workflow for args: \" + StringUtils.join(origArgs, \" \"));\n }\n\n String [] path = match.getPath();\n String [] args = origArgs.length > path.length ? Arrays.copyOfRange(origArgs, path.length, origArgs.length) : null;\n return new WorkflowRequest(path, args, match.getWorkflow());\n }", "public Request(final FullHttpRequest request) {\n this.request = request;\n }", "public static void remapRequest(HttpServletRequest request) throws Exception {\n Request connectorReq = (Request) request;\n\n MappingData mappingData = connectorReq.getMappingData();\n mappingData.recycle();\n\n connectorReq.getConnector().\n getMapper().map(connectorReq.getCoyoteRequest().serverName(),\n connectorReq.getCoyoteRequest().decodedURI(), null,\n mappingData);\n\n connectorReq.setContext((Context) connectorReq.getMappingData().context);\n connectorReq.setWrapper((Wrapper) connectorReq.getMappingData().wrapper);\n }", "@Override\n\tpublic void updateRequest(Request request) {\n\n\t\tString requestBody = request.getBodyAsString();\n\t\tif ( (requestBody == null)\n\t\t || (requestBody.trim().isEmpty()) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tboolean toArguments = true;\n\t\tXMLRequestParser parser = new XMLwithAttributesParser(request,toArguments);\n\n\t\ttry {\n\t\t\tparser.parseXml().saveResultsToRequest();\n\t\t} catch (IOException ex) {\n\t\t\tLOGGER.error(ex.getMessage(), ex);\n\t\t\tthrow new RuntimeException(ex.getMessage(), ex);\n\t\t} catch (SAXException ex) {\n\t\t\tLOGGER.error(ex.getMessage(), ex);\n\t\t\tthrow new RuntimeException(ex.getMessage(), ex);\n\t\t}\n\t}", "private static OkHttpClient getOkHttpClient() {\n OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder()\n .addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request original = chain.request();\n\n Request.Builder requestBuilder = original.newBuilder()\n .method(original.method(), original.body());\n\n addAdditionalHttpHeaders(requestBuilder);\n addParleyHttpHeaders(requestBuilder);\n\n Request request = requestBuilder.build();\n return chain.proceed(request);\n }\n })\n .connectTimeout(30, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS);\n\n applySslPinning(okHttpClientBuilder);\n\n return okHttpClientBuilder.build();\n }", "private void initRequest()\n\t{\n\t\tthis.request = new RestClientReportRequest();\n\t\tRequestHelper.copyConfigsToRequest(this.getConfigs(), this.request);\n\t\tRequestHelper.copyParamsToRequest(this.getParams(), this.request);\n\t\t\n\t\tthis.performQuery();\n\t}", "public RequestBuilder() {\n this.https = false;\n }", "public Request buildHttpRequest(Method method, Object args) {\n return post(method, args);\n }", "@Override\n\tpublic InterChildrenRequest prepareRequest(IntercastRequest request)\n\t{\n\t\treturn null;\n\t}", "public CurlRequest newRequest(final String action, final String body) {\n\t\tfinal var builder = AWS4SignatureQuery.builder().service(\"cognito-idp\").body(\"&Version=2016-04-18\");\n\t\tfinal var headers = new HashMap<String, String>();\n\t\theaders.put(\"x-amz-target\", \"AWSCognitoIdentityProviderService.\" + action);\n\t\theaders.put(\"Content-Type\", \"application/x-amz-json-1.1\");\n\t\tfinal var query = builder.accessKey(accessKey).secretKey(secretKey).region(region).path(\"/\").headers(headers)\n\t\t\t\t.body(body).host(URI.create(url).getHost()).build();\n\t\tfinal var authorization = signer.computeSignature(query);\n\t\tfinal var request = new CurlRequest(query.getMethod(), url, query.getBody());\n\t\trequest.getHeaders().putAll(query.getHeaders());\n\t\trequest.getHeaders().put(\"Authorization\", authorization);\n\t\trequest.setSaveResponse(true);\n\t\treturn request;\n\t}", "public byte[] performReplacement(IHttpRequestResponse messageInfo) {\n byte[] request = messageInfo.getRequest();\n if (this.isEnabled) {\n switch (this.type) {\n case (\"Request Header\"):\n return updateHeader(request);\n case (\"Request Body\"):\n return updateRequestBody(request);\n case (\"Request Param Name\"):\n return updateRequestParamName(request);\n case (\"Request Param Value\"):\n return updateRequestParamValue(request);\n case (\"Request Cookie Name\"):\n return updateCookieName(request);\n case (\"Request Cookie Value\"):\n return updateCookieValue(request);\n case (\"Request First Line\"):\n return updateRequestFirstLine(request);\n case (\"Request String\"):\n return updateContent(request);\n case (\"Add Header\"):\n return addHeader(request);\n case (\"Remove Parameter By Name\"):\n return removeParameterByName(request);\n case (\"Remove Parameter By Value\"):\n return removeParameterByValue(request);\n case (\"Remove Cookie By Name\"):\n return removeCookieByName(request);\n case (\"Remove Cookie By Value\"):\n return removeCookieByValue(request);\n case (\"Remove Header By Name\"):\n return removeHeaderByName(request);\n case (\"Remove Header By Value\"):\n return removeHeaderByValue(request);\n case (\"Match Param Name, Replace Value\"):\n return updateRequestParamValueByName(request);\n case (\"Match Cookie Name, Replace Value\"):\n return updateCookieValueByName(request);\n case (\"Match Header Name, Replace Value\"):\n return matchHeaderNameUpdateValue(request);\n default:\n return request;\n }\n }\n return request;\n }", "protected HttpResponse executeRequest(\n\t\t\tRPCRequest invocation, MethodInvocation originalInvocation) throws Exception {\n\t\treturn executeRequest(invocation);\n\t}", "List<SdkHttpRequest> getRequests();", "private void addAllRequests(\n Iterable<? extends RequestFromSelf> values) {\n ensureRequestsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, requests_);\n }", "public RequestDataBuilder patch() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.PATCH);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}", "public static interfacerequests.proxies.IncomingRequest initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject)\r\n\t{\r\n\t\treturn new interfacerequests.proxies.IncomingRequest(context, mendixObject);\r\n\t}", "public static MockHttpServletRequest constructMockRequest(String method,\n String requestURI,\n String acceptHeader,\n Map<?, ?> parameters,\n Map<String, Object> attributes) {\n MockHttpServletRequest mockRequest = constructMockRequest(method, requestURI, acceptHeader);\n if (attributes != null) {\n Set<String> attributeNames = attributes.keySet();\n Object attributeValue;\n for (String attributeName : attributeNames) {\n attributeValue = attributes.get(attributeName);\n mockRequest.setAttribute(attributeName, attributeValue);\n }\n }\n mockRequest.setParameters(parameters);\n\n return mockRequest;\n }", "void projectSurveyUriRequest(Request request);", "private void setUpMockObjects() {\n this.request = new CustomMockHttpServletRequest();\n byte[] content = { 4, 6, 7 };\n ServletInputStream inputStream = new DelegatingServletInputStream(\n new ByteArrayInputStream(content));\n this.request.inputStream = inputStream;\n\n this.response = new MockHttpServletResponse();\n\n this.setUpXmlRpcElementFactory();\n this.setUpXmlRpcRequestParser();\n this.setUpXmlRpcResponseWriter();\n this.setUpXmlRpcServiceExporterMap();\n }", "private RestTemplate getRestTemplateForPatch() {\n HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();\n return new RestTemplate(requestFactory);\n }", "public HttpRequest(HttpRequestBuilder builder){\r\n mUrl = builder.Url;\r\n mMethodType = builder.MethodType;\r\n mCallback = builder.Callback;\r\n mJsonRequestParams = builder.JsonRequestParams;\r\n }", "@Override\n public Call<Void> clone() {\n return new HttpCall(httpClient, endpoint, compressionEnabled, encodedSpans);\n }", "protected RequestLine createRequestLine(String method, String uri, ProtocolVersion ver) {\n/* 337 */ return new BasicRequestLine(method, uri, ver);\n/* */ }", "public static WebRequest findOrCreate(HttpServletRequest _req, HttpServletResponse _resp, Writer aw) throws Exception {\n WebRequest wr = (WebRequest) _req.getAttribute(\"wrappedRequest\");\n if (wr == null) {\n wr = new WebRequest(_req, _resp, aw);\n }\n return wr;\n }", "Request _request(String operation);", "private void addRequest(InstanceRequest request) {\r\n\t\t\r\n\t}", "RequestDelegator getDelegator();", "public abstract Builder methods(RequestMethod... paramVarArgs);", "protected Request makeRequest(\n final List<Token> contextUnits, final int contextUnitsIndex) {\n String before = \"\";\n final ListIterator<Token> beforeIterator =\n contextUnits.listIterator(contextUnitsIndex);\n for (int remaining = this.getPreviousContextSize();\n remaining > 0 && beforeIterator.hasPrevious();\n --remaining) {\n before = beforeIterator.previous().getCoveredText() + \" \" + before;\n }\n\n final String original =\n contextUnits.get(contextUnitsIndex).getCoveredText();\n\n String after = \"\";\n final ListIterator<Token> afterIterator =\n contextUnits.listIterator(contextUnitsIndex + 1);\n for (int remaining = this.getFollowingContextSize();\n remaining > 0 && afterIterator.hasNext();\n --remaining) {\n after = after + \" \" + afterIterator.next().getCoveredText();\n }\n\n try {\n return new Request(before, original, after);\n } catch (final IllegalArgumentException e) {\n return null; // empty original\n }\n }", "public interface RequestManager {\n \n\tpublic Request submitRequest(Request request) throws RequestCreationException;\n\t\n\tpublic void submitRequest(SuspendUserRequest suspendUserRequest) throws RequestCreationException;\n\t\n\tpublic void submitRequest(ResumeUserRequest resumeUserRequest) throws RequestCreationException;\n\t\n\tpublic SelfServiceAccessRequest submitRequest(SelfServiceAccessRequest selfServiceAccessRequest) throws RequestCreationException;\n\t\n\tpublic void submitRequest(AccountsRequest request) throws RequestCreationException;\n\t\n\tpublic CreateUserRequest submitRequest(CreateUserRequest request) throws RequestCreationException;\n\t\n\tpublic Request findRequest(Long requestId);\n\t\n\tpublic void process(Request request) throws OperationException;\n\t\n\tpublic void process(SuspendUserRequest request) throws OperationException;\n\t\n\tpublic void process(ResumeUserRequest request) throws OperationException;\n\t\n\tpublic void process(AccountsRequest request) throws OperationException;\n\t\n\tpublic void process(CreateUserRequest request) throws OperationException;\n\t\n\t\n\t\n\t\n\t\n\t\n\tpublic void finalApproveRequest(Request request, User approver) throws OperationException;\n\tpublic void finalRejectRequest(Request request, User rejecter);\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t//request scanner methods\n public void changeRequestScannerMode() throws OperationException;\n public boolean isRequestScannerActivate();\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\t\n\t@Deprecated\n public void mergeRequestEntity(Request request);\n \n \n /**\n Create a new request entity\n @param request A request entity to persist\n @throws RequestAttributeValidationException\n */\n\t@Deprecated\n public Request createRequestEntity(Request request) throws RequestCreationException;\n \n \n /**\n Execute a request\n @param request The request entity to execute\n */\n\t@Deprecated\n public void executeRequest(Request request) throws RequestExecutionException;\n \n \n /**\n Approve the specified request entity\n @param requrest The request entity to approve\n @throws OperationException\n */\n\t@Deprecated\n public void processRequest(Request request) throws OperationException;\n \n \n \n\t@Deprecated\n public void createTimerScanner(long initialDuration, long intervalDuration);\n \n\t@Deprecated\n public void createTimerScanner() throws OperationException;\n}", "protected abstract ResponseEntity<T> doRequest(String nextHref, RestTemplate template,\n HttpEntity<?> requestEntity);", "private void merge(HttpMockRequest mockRequest, HttpMockRequest mockResponse) {\n mockResponse.setRequestMethod(mockRequest.getRequestMethod());\n mockResponse.setRequestUrl(mockRequest.getRequestUrl());\n mockResponse.setRequestHeaders(mockRequest.getRequestHeaders());\n\n mockResponse.setQueryString(mockRequest.getQueryString());\n //mockResponse.setFormData(mockRequest.getFormData());\n mockResponse.setRequestBody(mockRequest.getRequestBody());\n }", "public ServiceRequest() {\n super();\n this.addNamespaceToRequest = true;\n }", "public com.vodafone.global.er.decoupling.binding.request.ErRequest createErRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ErRequestImpl();\n }", "public RequestWrapper(HttpServletRequest request, String userAgentPostfix) {\r\n\t\tsuper(request);\r\n\t\tString userAgentValue = request.getHeader(\"user-agent\");\r\n\t\tmUserAgentHeaderPresent = userAgentValue != null;\r\n\t\tif (mUserAgentHeaderPresent) {\r\n\t\t\tuserAgentValue = userAgentValue + userAgentPostfix;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tuserAgentValue = userAgentPostfix;\r\n\t\t}\r\n\t\tmUserAgentValues.add(userAgentValue);\r\n\t}", "public interface IRequestFactory {\n /**\n * Conditions request by location name\n *\n * @param location\n * @param listener\n * @return request object\n */\n IConditionsRequest getConditionsRequest(String location, IRequestListener listener);\n\n /**\n * Conditions request by lat/lon\n *\n * @param lat\n * @param lon\n * @param listener\n * @return request object\n */\n IConditionsRequest getConditionsRequest(double lat, double lon, IRequestListener listener);\n\n /**\n * Location request\n *\n * @param location\n * @param listener\n * @return\n */\n ILocationRequest getLocationRequest(String location, IRequestListener listener);\n}", "public GrizzletRequest getRequest();", "public interface Request {\n public String toXml();\n\n\n public String getHandlerId();\n\n\n public String getRequestId();\n}", "public static Request getRequest() {\n return request;\n }", "protected ResourceRequest createRequest( ResourceMethod theMethod, Object ... thePathParameters ) {\r\n\t\treturn new ResourceRequest( this, theMethod, thePathParameters );\r\n\t}", "public interface UrlConnector {\n /**\n * Obtains an HTTP GET request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpGet getRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP PUT request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpPut putRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP POST request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpPost postRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP DELETE request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpDelete deleteRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP PATCH request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpPatch patchRequest(HttpServletRequest request, String address) throws IOException;\n}", "public Request getRequest() throws IOException {\n\t\tString message = underlying.readStringLine();\n\t\tif(message != null && message.startsWith(\"!compute \"))\t\t\n\t\t\treturn new NodeRequest(message.substring(9).split(\"\\\\s\"));\t\t\n\t\tif(message != null && message.equals(\"!getLogs\"))\t\t\n\t\t\treturn new LogRequest();\n\t\tif(message != null && message.startsWith(\"!share \"))\t\t\n\t\t\treturn new ShareRequest(message.substring(7).trim());\n\t\tif(message != null && (message.startsWith(\"!commit \") || message.equals(\"!rollback\")))\t\t\n\t\t\treturn new CommitRequest(message);\n\t\treturn null;\n\t}" ]
[ "0.6387608", "0.62526065", "0.6238219", "0.6154489", "0.61411935", "0.60141104", "0.601258", "0.6003688", "0.59465116", "0.59024006", "0.5802191", "0.57705593", "0.5761076", "0.57162523", "0.5674654", "0.5612771", "0.55534285", "0.55529976", "0.5527769", "0.5527769", "0.5509301", "0.5491622", "0.54797554", "0.54642576", "0.54580706", "0.5450913", "0.544791", "0.541735", "0.5389468", "0.53655267", "0.5365447", "0.5350232", "0.5330631", "0.5323112", "0.53195405", "0.5315556", "0.5304564", "0.5286188", "0.52724355", "0.5268952", "0.5265738", "0.52590066", "0.5253232", "0.52520555", "0.52322364", "0.52310944", "0.5226964", "0.52265865", "0.52259266", "0.5211671", "0.5210842", "0.5193478", "0.51911414", "0.51830214", "0.5178647", "0.51781994", "0.51572764", "0.5148695", "0.5144759", "0.5143885", "0.5142634", "0.51372373", "0.51362145", "0.51289994", "0.5128263", "0.51180637", "0.5117985", "0.510443", "0.5097587", "0.5084221", "0.50828785", "0.50808424", "0.50797933", "0.5078063", "0.5070001", "0.50699484", "0.50614023", "0.5060463", "0.5053515", "0.5053259", "0.5050993", "0.5048632", "0.504475", "0.5043741", "0.5039705", "0.5038572", "0.5030216", "0.5017668", "0.5016617", "0.501439", "0.49978352", "0.49976102", "0.49859917", "0.498437", "0.49761748", "0.49761644", "0.4969295", "0.4958773", "0.49511543", "0.4950477" ]
0.5888605
10
Returns responses associated to this request.
public HttpResponseWrapper getResponse() { return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<CIPsResponse> getResponsesList() {\n createAllResponses();\n return responsesList;\n }", "public synchronized Object getResponse() {\n Object[] resp = new Object[ responses.size() ] ;\n for (int i=0;i<responses.size();i++) {\n resp[i] = responses.get(i) ;\n }\n responses.clear();\n responseChanged = false ;\n numResponses ++ ;\n return resp ;\n }", "public java.util.List<com.google.protobuf.ByteString>\n getResponseList() {\n return response_;\n }", "public abstract Response[] collectResponse();", "public List<byte[]> getResponses() {\n List<byte[]> responsesCopy = new ArrayList<>();\n for (byte[] response : this.responses) {\n responsesCopy.add(response.clone());\n }\n return responsesCopy;\n }", "public Response getResponse() {\n return response;\n }", "public List <State> getResponse ()\n {\n return response;\n }", "public java.util.List<com.google.protobuf.ByteString>\n getResponseList() {\n return java.util.Collections.unmodifiableList(response_);\n }", "public T getResponse() {\n return response;\n }", "public java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> getResponsesList() {\n if (responsesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(responses_);\n } else {\n return responsesBuilder_.getMessageList();\n }\n }", "public Object getResponse ()\r\n {\r\n\r\n return response_;\r\n }", "QuestionResponse getResponses(String questionId);", "protected T getResponse() {\n return responseData;\n }", "public net.iGap.proto.ProtoResponse.Response getResponse() {\n return instance.getResponse();\n }", "public net.iGap.proto.ProtoResponse.Response getResponse() {\n return instance.getResponse();\n }", "public Requests getRequests() {\n return requests;\n }", "public int getResponsesCount() {\n return responses_.size();\n }", "public com.example.products.ResponseMessageOrBuilder getResponseOrBuilder() {\n return getResponse();\n }", "public final List<Object> getResponseValues()\n\t{\n\t\treturn m_responseValues;\n\t}", "public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getResponses(int index) {\n return responses_.get(index);\n }", "List<SdkHttpRequest> getRequests();", "public java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> getResponsesList() {\n return responses_;\n }", "public static Response getResourceResponse() {\n return response;\n }", "public java.util.List<com.google.search.now.wire.feed.mockserver.MockServerProto.ConditionalResponse> getConditionalResponsesList() {\n return java.util.Collections.unmodifiableList(\n instance.getConditionalResponsesList());\n }", "public ClientResponse getResponse() {\n return r;\n }", "public int getResponseCount() {\n return response_.size();\n }", "public int getResponseCount() {\n return response_.size();\n }", "public Map<String, Result> getResults() {\n return results;\n }", "public java.util.List<? extends org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder> \n getResponsesOrBuilderList() {\n return responses_;\n }", "public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getResponses(int index) {\n if (responsesBuilder_ == null) {\n return responses_.get(index);\n } else {\n return responsesBuilder_.getMessage(index);\n }\n }", "public HttpServletResponse getResponse() {\r\n\t\treturn response_;\r\n\t}", "public java.util.List<? extends org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder> \n getResponsesOrBuilderList() {\n if (responsesBuilder_ != null) {\n return responsesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(responses_);\n }\n }", "java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> \n getResponsesList();", "public ResponseObject getResponseObject() {\n return responseObject;\n }", "@java.lang.Override\n public int getResponseCount() {\n return response_.size();\n }", "public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder getResponsesOrBuilder(\n int index) {\n return responses_.get(index);\n }", "public int getResponsesCount() {\n if (responsesBuilder_ == null) {\n return responses_.size();\n } else {\n return responsesBuilder_.getCount();\n }\n }", "public ResultSet getAllQuestionnaireResponses () throws Exception {\r\n String sql = \"SELECT * FROM questionnaireresponses;\";\r\n return stmt.executeQuery(sql);\r\n }", "@Override\n\tpublic Response getAll() {\n\t\treturn null;\n\t}", "public List<ATWResponse> findResponsesByRequestId(int requestID) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<ATWResponse> list = entityManager.createQuery(findByRequestID)\n\t\t\t.setParameter(1, requestID)\n\t\t\t.getResultList();\n\t\tif(list != null) {System.out.println(\"Response by rid List size = \"+list.size());}\n\t\telse { System.out.println(\"Response List is by rid NULL\");}\n\t\treturn list;\n\t}", "public LogEventRequestAndResponse[] retrieveRecordedRequestsAndResponses(RequestDefinition requestDefinition) {\n String recordedRequests = retrieveRecordedRequestsAndResponses(requestDefinition, Format.JSON);\n if (isNotBlank(recordedRequests) && !recordedRequests.equals(\"[]\")) {\n return httpRequestResponseSerializer.deserializeArray(recordedRequests);\n } else {\n return new LogEventRequestAndResponse[0];\n }\n }", "java.util.List<com.google.protobuf.ByteString> getResponseList();", "void getRequests();", "public java.util.List<POGOProtos.Rpc.AssetVersionOutProto.AssetVersionResponseProto> getResponseList() {\n if (responseBuilder_ == null) {\n return java.util.Collections.unmodifiableList(response_);\n } else {\n return responseBuilder_.getMessageList();\n }\n }", "public AdyenResponses() {\n\t\tthis(\"adyen_responses\", null);\n\t}", "public java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> getResultsList() {\n if (resultsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(results_);\n } else {\n return resultsBuilder_.getMessageList();\n }\n }", "public com.example.products.ResponseMessage getResponse() {\n return response_ == null ? com.example.products.ResponseMessage.getDefaultInstance() : response_;\n }", "private void getResponse() {\n response = new Response();\n\n getResponseCode();\n getResponseMessage();\n getResponseBody();\n\n LOG.info(\"--- RESPONSE ---\");\n LOG.info(\"Code: \" + response.getResponseCode());\n LOG.info(\"Message: \" + response.getResponseMessage());\n LOG.info(\"Body: \" + response.getResponseBody());\n LOG.info(\"*************************************\");\n }", "public java.util.List<RequestFromSelf> getRequestsList() {\n return requests_;\n }", "public String getResponse() {\n return response;\n }", "public String getResponse() {\n return response;\n }", "public String getResponse() {\n return response;\n }", "public String getResponse() {\n return response;\n }", "public String getResponse() {\n return response;\n }", "public ServletResponse getResponse() {\n return this.response;\n }", "public byte[] getResponseData() {\n return responseData;\n }", "IHttpRequestResponse[] getHttpMessages();", "public String getResponse()\r\n {\r\n return this.response;\r\n }", "public synchronized RestResponse getResponse() {\n\t\treturn getContext().getLocalSession().getOpSession().getResponse();\n\t}", "public Object getRequestResponseRecord() {\n return requestResponseRecord;\n }", "public Object getRequestResponseRecord() {\n return requestResponseRecord;\n }", "public java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> getResultsList() {\n return results_;\n }", "public Map<String, Object> getResult() {\n return mRes;\n }", "public com.google.search.now.wire.feed.ResponseProto.Response getResponse() {\n return instance.getResponse();\n }", "public com.google.search.now.wire.feed.ResponseProto.Response getResponse() {\n return instance.getResponse();\n }", "public com.github.yeriomin.playstoreapi.ResponseWrapper getResponse() {\n return response_;\n }", "public final int getDeferredResponses() {\n return deferredResponses;\n }", "public java.util.List<Pokemon.Request> getRequestsList() {\n return requests_;\n }", "java.util.List<com.google.search.now.wire.feed.mockserver.MockServerProto.ConditionalResponse> \n getConditionalResponsesList();", "public final Map<Agent, ReplicationResult> getResults() {\n return this.results;\n }", "public List<Integer> getRequests () {\n return requests;\n }", "public java.util.List<Pokemon.Request> getRequestsList() {\n if (requestsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(requests_);\n } else {\n return requestsBuilder_.getMessageList();\n }\n }", "org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getResponses(int index);", "public ResponseTranslator get() {\n setMethod(\"GET\");\n return doRequest();\n }", "java.util.List<Rsp.RequestFromSelf>\n getRequestsList();", "public Builder clearResponses() {\n if (responsesBuilder_ == null) {\n responses_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n responsesBuilder_.clear();\n }\n return this;\n }", "public HashMap<String, HashMap<String, Object>> getResultsForMethods() {\n return resultsForMethods;\n }", "@JsonGetter(\"response\")\n public EventResponseModel getResponse ( ) {\n return this.response;\n }", "public int getResponseCount() {\n if (responseBuilder_ == null) {\n return response_.size();\n } else {\n return responseBuilder_.getCount();\n }\n }", "public String getPatientResponses(){\n \treturn patientResponses;\n }", "@Override\r\n\tpublic RequestsTracker getAllRequests() {\r\n\t\treturn allRequestsTracker;\r\n\t}", "public void clearResponses() {\n this.responses.clear();\n }", "public String produceResponse() {\n processData();\n return response;\n }", "public HttpServletResponse getHttpResponse() {\n return httpResponse;\n }", "public com.example.products.ResponseMessage getResponse() {\n if (responseBuilder_ == null) {\n return response_ == null ? com.example.products.ResponseMessage.getDefaultInstance() : response_;\n } else {\n return responseBuilder_.getMessage();\n }\n }", "public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder getResponsesOrBuilder(\n int index) {\n if (responsesBuilder_ == null) {\n return responses_.get(index); } else {\n return responsesBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.github.yeriomin.playstoreapi.ResponseWrapperOrBuilder getResponseOrBuilder() {\n if (responseBuilder_ != null) {\n return responseBuilder_.getMessageOrBuilder();\n } else {\n return response_;\n }\n }", "public KafkaResponseParam getResponse() {\n return response_;\n }", "public com.github.yeriomin.playstoreapi.ResponseWrapperOrBuilder getResponseOrBuilder() {\n return response_;\n }", "public edu.itq.soa.ResponseDocument.Response getResponse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.itq.soa.ResponseDocument.Response target = null;\n target = (edu.itq.soa.ResponseDocument.Response)get_store().find_element_user(RESPONSE$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public com.google.search.now.wire.feed.mockserver.MockServerProto.ConditionalResponse getConditionalResponses(int index) {\n return instance.getConditionalResponses(index);\n }", "public com.example.products.ResponseMessageOrBuilder getResponseOrBuilder() {\n if (responseBuilder_ != null) {\n return responseBuilder_.getMessageOrBuilder();\n } else {\n return response_ == null ?\n com.example.products.ResponseMessage.getDefaultInstance() : response_;\n }\n }", "public java.util.List<com.google.search.now.wire.feed.mockserver.MockServerProto.ConditionalResponse> getConditionalResponsesList() {\n return conditionalResponses_;\n }", "public java.util.List<org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder> \n getResponsesBuilderList() {\n return getResponsesFieldBuilder().getBuilderList();\n }", "public int getResponse() {return response;}", "public ArrayList<Appointment> getAppointmentRequests()\n {\n AppointmentListSingleton appointments = AppointmentListSingleton.getInstance();\n \n return appointments.getStateList(Appointment.AppointmentState.REQUESTED);\n }", "public java.util.List<RequestFromSelf> getRequestsList() {\n return java.util.Collections.unmodifiableList(\n instance.getRequestsList());\n }", "com.google.protobuf.ByteString\n getResponseBytes();", "public Header[] getResponseFooters() {\n return getResponseTrailerHeaderGroup().getAllHeaders();\n }", "java.util.List<? extends org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder> \n getResponsesOrBuilderList();" ]
[ "0.6781895", "0.67380947", "0.6544528", "0.63746166", "0.6365023", "0.63492626", "0.63307583", "0.6182817", "0.6150456", "0.61369437", "0.611346", "0.6088889", "0.60354996", "0.60077757", "0.60077757", "0.5990887", "0.5986424", "0.5978301", "0.5962289", "0.5927489", "0.5855344", "0.5830967", "0.5830619", "0.57868505", "0.57635146", "0.57606745", "0.57236695", "0.57197237", "0.57060933", "0.5699219", "0.5694311", "0.5688536", "0.5679822", "0.56792796", "0.56587505", "0.5570261", "0.55671334", "0.5564981", "0.5555246", "0.55473554", "0.55449975", "0.5543504", "0.5536308", "0.5517192", "0.55149037", "0.5507926", "0.55040663", "0.5493723", "0.54917777", "0.5480502", "0.5480502", "0.5480502", "0.5480502", "0.5480502", "0.5478053", "0.5475818", "0.54529536", "0.5451819", "0.5449355", "0.54447794", "0.54447794", "0.54438806", "0.5424962", "0.5416833", "0.5416833", "0.5403105", "0.5393317", "0.539075", "0.53889024", "0.5361938", "0.53485864", "0.5346966", "0.534526", "0.5342049", "0.53341085", "0.53225905", "0.5322345", "0.53182894", "0.5308601", "0.5301831", "0.52995336", "0.528828", "0.5287072", "0.5274986", "0.52470434", "0.5242741", "0.5242495", "0.5226698", "0.521223", "0.5208136", "0.5206384", "0.5199593", "0.5191254", "0.5183767", "0.5178565", "0.5176215", "0.51754504", "0.51752007", "0.5165989", "0.51601976" ]
0.597594
18
Sets response associated to this request
public void setResponse(HttpResponseWrapper response) { this.response = response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setResponse(T response) {\n this.response = response;\n }", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "public void setResponse(String response) {\n this.response = response;\n }", "public void setResponse(String response) {\n this.response = response;\n }", "public void setResponse(JSONObject res) { response = res; }", "public void setResponse(final String response) {\n\t\thandler.response = response;\n\t}", "public void setResponse(edu.itq.soa.ResponseDocument.Response response)\n {\n generatedSetterHelperImpl(response, RESPONSE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "@Override\r\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\r\n\t}", "@Override\r\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\r\n\t}", "@Override\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\n\t}", "@Override\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\n\t}", "@Override\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\n\t}", "@Override\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\n\t}", "public static void setResponse(Object response) {\n\t\tif (null != response) {\n\t\t\tMDC.put(ApplicationConstants.RESPONSE, response.toString());\n\t\t}\n\t}", "public void setResponse(ServletResponse response) {\n if (response == null) {\n throw new IllegalArgumentException(\"Response cannot be null\");\n }\n this.response = response;\n }", "@Override\n public void setServletResponse(HttpServletResponse arg0) {\n this.response = arg0;\n }", "@Override\r\n\tpublic void setServletResponse(HttpServletResponse arg0) {\n\t\tthis.response = arg0;\r\n\t}", "@Override\n @SuppressWarnings(\"unchecked\")\n public void setObject(Object response) {\n synchronized (waitObj) {\n if (done != false) {\n throw new IllegalStateException(\"Response value already set.\");\n }\n this.response = (T) response;\n done = true;\n waitObj.notify();\n }\n }", "@JsonSetter(\"response\")\n public void setResponse (EventResponseModel value) {\n this.response = value;\n }", "public void setHttpResponse( HttpResponse resp ) {\r\n\tresponse=resp;\r\n }", "private void setResponse(net.iGap.proto.ProtoResponse.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n \n }", "private void setResponse(net.iGap.proto.ProtoResponse.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n \n }", "private void setResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n bitField0_ |= 0x00000001;\n }", "private void setResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n bitField0_ |= 0x00000002;\n }", "public void setRegisterResponse(Response registerResponse){\n\t\tthis.registerResponse=registerResponse;\n\t}", "public HttpResponseTarget(HttpServletResponse targetResponse) throws IOException {\n \n response = targetResponse;\n }", "public Builder setResponse(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n response_ = value;\n onChanged();\n return this;\n }", "public void setResponseObject(ResponseObject responseObject) {\n this.responseObject = responseObject;\n }", "public void setResponseMessage(KineticMessage response) {\n this.response = response;\n }", "public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) {\n copyOnWrite();\n instance.setResponse(value);\n return this;\n }", "public Builder setResponse(net.iGap.proto.ProtoResponse.Response value) {\n copyOnWrite();\n instance.setResponse(value);\n return this;\n }", "public void setResponse( Double response )\n\t{\n\t\tthis.response = response;\n\t}", "public Builder setResponse(br.com.sergio.wallet.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n response_ = value.getNumber();\n onChanged();\n return this;\n }", "public Builder setResponse(com.czht.face.recognition.Czhtdev.Response value) {\n if (responseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n responseBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }", "public Builder setResponse(com.github.yeriomin.playstoreapi.ResponseWrapper value) {\n if (responseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n responseBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "@Test\n public void testSetResponse_1()\n throws Exception {\n Transaction fixture = new Transaction();\n fixture.setResponse(new Response());\n fixture.setRequest(new Request());\n Response response = new Response();\n\n fixture.setResponse(response);\n\n }", "private void setResponse(\n net.iGap.proto.ProtoResponse.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n \n }", "private void setResponse(\n net.iGap.proto.ProtoResponse.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n \n }", "public Builder setResponse(com.example.products.ResponseMessage value) {\n if (responseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n responseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setIsResponse(boolean isResponse) {\n\t\tthis.isResponse = isResponse;\n\t\t\n\t}", "public sparqles.avro.discovery.DGETInfo.Builder setResponseServer(java.lang.CharSequence value) {\n validate(fields()[6], value);\n this.ResponseServer = value;\n fieldSetFlags()[6] = true;\n return this; \n }", "public void setResponse(MultipleChoiceQuestionResponse response) {\n group.getToggles().get(response.getAnswer()).setSelected(true);\n }", "public void setResponseMessage(String responseMessage) { this.responseMessage = responseMessage; }", "private void setResponse(\n com.google.search.now.wire.feed.ResponseProto.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n bitField0_ |= 0x00000001;\n }", "public Builder setTxnresponse(TxnResponseProto.TxnResponse value) {\n if (txnresponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n txnresponse_ = value;\n onChanged();\n } else {\n txnresponseBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "void setDefinitionResponseMsg(com.exacttarget.wsdl.partnerapi.DefinitionResponseMsgDocument.DefinitionResponseMsg definitionResponseMsg);", "private void setResponse(\n com.google.search.now.wire.feed.ResponseProto.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n bitField0_ |= 0x00000002;\n }", "public void Response(BerString response) throws AccessControl {\n\t DataDir rspdir = new DataDir(response);\n\t Response(rspdir);\n\t}", "public void setResponseString(final String responseString) {\n this.responseString = responseString;\n }", "public void setResponseClass(Class<RES> responseClass) {\n this.responseClass = responseClass;\n }", "private void getResponse() {\n response = new Response();\n\n getResponseCode();\n getResponseMessage();\n getResponseBody();\n\n LOG.info(\"--- RESPONSE ---\");\n LOG.info(\"Code: \" + response.getResponseCode());\n LOG.info(\"Message: \" + response.getResponseMessage());\n LOG.info(\"Body: \" + response.getResponseBody());\n LOG.info(\"*************************************\");\n }", "public HttpServletResponse getResponse() {\r\n\t\treturn response_;\r\n\t}", "public void setResponsePackage(CommandPackage responsePackage) {\n this.responsePackage = responsePackage;\n }", "public Builder setResponse(KafkaResponseParam value) {\n if (responseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n responseBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000100;\n return this;\n }", "public Builder setResponse(\n int index, com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResponseIsMutable();\n response_.set(index, value);\n onChanged();\n return this;\n }", "public void setResponseCode(final int responseCode) {\n\t\thandler.responseCode = responseCode;\n\t}", "IOperationProcessMsg setResponseUrlParam(String respondToUri);", "public void setResponseId(String responseId) {\n this.responseId = responseId;\n }", "public Builder setResponse(\n net.iGap.proto.ProtoResponse.Response.Builder builderForValue) {\n copyOnWrite();\n instance.setResponse(builderForValue);\n return this;\n }", "public Builder setResponse(\n net.iGap.proto.ProtoResponse.Response.Builder builderForValue) {\n copyOnWrite();\n instance.setResponse(builderForValue);\n return this;\n }", "@Override\n public void sendResponse(final Response response) {\n\n }", "public void setChallengeResponse(ChallengeResponse challengeResponse) {\n this.challengeResponse = challengeResponse;\n }", "public void answer(Message response) throws IOException {\n out.writeObject(response);\n out.flush();\n }", "public Builder setResponse(org.naru.park.ParkModel.UIParkResponse value) {\n if (responseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n responseBuilder_.setMessage(value);\n }\n\n return this;\n }", "protected void setResponseStream(InputStream responseStream) {\n this.responseStream = responseStream;\n }", "public VimideHttpServletResponse(HttpServletResponse response) {\r\n super(response);\r\n }", "public Builder setResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n copyOnWrite();\n instance.setResponse(value);\n return this;\n }", "public Builder setResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n copyOnWrite();\n instance.setResponse(value);\n return this;\n }", "public Object getResponse ()\r\n {\r\n\r\n return response_;\r\n }", "public void startResponse()\n\t\t\t{\n\t\t\t\tsend(\"<response>\", false);\n\t\t\t}", "private void clearResponse() { response_ = null;\n \n }", "private void clearResponse() { response_ = null;\n \n }", "protected void postProcessResponse(Message request, Message response) {\n\t\tString correlation = request.getMessageProperties().getCorrelationId();\n\n\t\tif (correlation == null) {\n\t\t\tString messageId = request.getMessageProperties().getMessageId();\n\t\t\tif (messageId != null) {\n\t\t\t\tcorrelation = messageId;\n\t\t\t}\n\t\t}\n\t\tresponse.getMessageProperties().setCorrelationId(correlation);\n\t}", "public Response(HttpResponse httpResponse) {\n\t\tthis.response = httpResponse;\n\t}", "public sparqles.avro.discovery.DGETInfo.Builder setResponseLink(java.lang.CharSequence value) {\n validate(fields()[7], value);\n this.ResponseLink = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "public Builder clearResponse() {\n bitField0_ = (bitField0_ & ~0x00000002);\n response_ = getDefaultInstance().getResponse();\n onChanged();\n return this;\n }", "public Builder setResponseBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n response_ = value;\n onChanged();\n return this;\n }", "public void setResponseCode(int responseCode) {\n this.responseCode = responseCode;\n }", "void setContentType(HttpServletResponse response);", "public Builder setResponse(\n com.github.yeriomin.playstoreapi.ResponseWrapper.Builder builderForValue) {\n if (responseBuilder_ == null) {\n response_ = builderForValue.build();\n onChanged();\n } else {\n responseBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "public Response getResponse() {\n return response;\n }", "public void reset() {\n this.response.reset();\n }", "public void setResponseReplaced(Boolean responseReplaced) {\n\t this.responseReplaced = responseReplaced;\n\t}", "public Builder setResponse(\n com.example.products.ResponseMessage.Builder builderForValue) {\n if (responseBuilder_ == null) {\n response_ = builderForValue.build();\n onChanged();\n } else {\n responseBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void setResponseExchange(String responseExchange) {\n\t\tthis.responseExchange = responseExchange;\n\t}", "public Builder setResponse(\n KafkaResponseParam.Builder builderForValue) {\n if (responseBuilder_ == null) {\n response_ = builderForValue.build();\n onChanged();\n } else {\n responseBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000100;\n return this;\n }", "public Builder setResponseValue(int value) {\n response_ = value;\n onChanged();\n return this;\n }", "public Builder clearResponse() { copyOnWrite();\n instance.clearResponse();\n return this;\n }", "public Builder clearResponse() { copyOnWrite();\n instance.clearResponse();\n return this;\n }", "public Builder clearResponse() { copyOnWrite();\n instance.clearResponse();\n return this;\n }", "public Builder clearResponse() { copyOnWrite();\n instance.clearResponse();\n return this;\n }", "private void setInitialResponse(com.google.search.now.wire.feed.ResponseProto.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n initialResponse_ = value;\n bitField0_ |= 0x00000001;\n }", "public void setResponseData(byte responseData[]) {\n this.responseData = responseData;\n }", "public void ret(Object rsp){\n\t\tresponseObject=rsp;\n\t}", "private void clearResponse() { response_ = null;\n bitField0_ = (bitField0_ & ~0x00000002);\n }", "private void clearResponse() { response_ = null;\n bitField0_ = (bitField0_ & ~0x00000001);\n }", "public static void setResponse(\n FlightContext context, Object responseObject, HttpStatus responseStatus) {\n FlightMap workingMap = context.getWorkingMap();\n workingMap.put(JobMapKeys.RESPONSE.getKeyName(), responseObject);\n workingMap.put(JobMapKeys.STATUS_CODE.getKeyName(), responseStatus);\n }", "void setHeader(HttpServletResponse response, String name, String value);", "public HttpResponseWrapper getResponse() {\n return response;\n }", "public Builder clearResponse() {\n if (responseBuilder_ == null) {\n response_ = null;\n onChanged();\n } else {\n response_ = null;\n responseBuilder_ = null;\n }\n\n return this;\n }" ]
[ "0.79768974", "0.7515466", "0.7512257", "0.7512257", "0.74630654", "0.74519014", "0.735617", "0.73328954", "0.73328954", "0.73034555", "0.73034555", "0.73034555", "0.73034555", "0.7294347", "0.71895325", "0.7076514", "0.70344746", "0.7002445", "0.697978", "0.69097745", "0.68902874", "0.68902874", "0.6632358", "0.6613463", "0.65506005", "0.6537448", "0.6481353", "0.64689255", "0.6452369", "0.6397022", "0.6397022", "0.63709146", "0.6353645", "0.63254243", "0.6294592", "0.6253182", "0.61543", "0.61543", "0.61474025", "0.6118215", "0.6042459", "0.6041033", "0.60171103", "0.60060596", "0.5997165", "0.5988642", "0.5986934", "0.59458923", "0.5935625", "0.5926128", "0.5925375", "0.5908089", "0.58983725", "0.5883105", "0.58814377", "0.58711714", "0.58450973", "0.58374786", "0.5821189", "0.5821189", "0.5820678", "0.5814116", "0.581059", "0.57969177", "0.57957715", "0.5790885", "0.5788862", "0.5788862", "0.5774983", "0.57655823", "0.57611924", "0.57611924", "0.57577336", "0.5757227", "0.5753396", "0.57446045", "0.57444286", "0.57434195", "0.57245386", "0.5700204", "0.5694772", "0.5691911", "0.5682534", "0.5679469", "0.5668458", "0.56661123", "0.5659336", "0.56516826", "0.56516826", "0.56516826", "0.56516826", "0.5641726", "0.5633375", "0.56248504", "0.56137365", "0.5607436", "0.5594776", "0.5585245", "0.55831504", "0.5575404" ]
0.78125674
1
Callback to propagate session to response.
boolean propagateSession() { if (committed && !isDirty()) { return true; } if (getRepositoryBackedSession(false) == null) { setPropagateOnCreate(true); return false; } return doPropagateAndStoreIfFirstWrapper(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void filter(ContainerRequestContext requestContext,\n ContainerResponseContext responseContext) throws IOException {\n HttpSession session = requestManager.getHttpSession();\n\n session.keepAlive();\n sessionManager.save(session);\n\n NewCookie sessionCookie = new NewCookie(COOKIE_NAME, session.getSessionId(),\n \"/\", null, null, -1, true, true);\n\n\n logger.trace(\"Request completed with session id {}\", sessionCookie);\n responseContext.getHeaders().add(HttpHeaders.SET_COOKIE, sessionCookie);\n }", "public RedisSessionResponseWrapper(HttpServletResponse response, RedisSessionRequestWrapper request) {\n super(response);\n //if session associate with token is not existed, create one for the response\n response.setHeader(TOKEN_HEADER_NAME, request.getSession(true).getId());\n }", "@Override\r\npublic void sessionWillPassivate(HttpSessionEvent arg0) {\n\t\r\n}", "public void sessionWillPassivate(HttpSessionEvent arg0) {\n\n\t}", "@Override\n public void sessionCreated(HttpSessionEvent event) {\n }", "@Override\n\tpublic void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response) {\n\t\tsuper.modifyHandshake(sec, request, response);\n\t\tHttpSession session = (HttpSession)request.getHttpSession();\n\t\tsec.getUserProperties().put(\"session\",session);\t\t\n\t}", "@Override\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t\t\n\t}", "@Override\r\npublic void sessionCreated(HttpSessionEvent arg0) {\n\t\r\n}", "public static void getSession (HttpServletRequest request, HttpServletResponse response) throws IOException {\n PrintWriter out = response.getWriter();\n ObjectMapper objM = new ObjectMapper();\n HttpSession session = request.getSession();\n Response<LoginData> res = new Response<>();\n LoginData loginData = new LoginData();\n String r;\n\n if (session.isNew()){\n System.out.println(\"Session not started!\");\n res.setMessage(\"Session not started!\");\n loginData.setAdmin(true);\n res.setStatus(403);\n loginData.setName(\"\");\n res.setData(loginData);\n session.invalidate();\n\n } else {\n System.out.println(\"Session started\");\n res.setMessage(\"Session started\");\n res.setStatus(200);\n loginData.setAdmin(true);\n loginData.setName((String) session.getAttribute(\"name\"));\n res.setData(loginData);\n }\n\n r = objM.writeValueAsString(res);\n System.out.println(r);\n out.print(r);\n }", "public default void sessionCreated(HttpSessionEvent se) {\n }", "@Override\r\npublic void sessionDidActivate(HttpSessionEvent arg0) {\n\t\r\n}", "public abstract void endUserSession();", "void onOpenSession(Session session);", "@Override\n public void saveToResponseAdditional(ActionResponse response) {\n }", "protected void onPVMPostsResponse( HttpServletRequest req, HttpServletResponse resp ) throws Exception {\r\n\tHttpSession session = req.getSession( false );\r\n\tif (session == null) throw new NullPointerException(\"Illegal call. Session has has not been created \");\r\n\tSessionState si = (SessionState)session.getAttribute(\"MEV_SESSION\");\r\n\tif (si == null) throw new NullPointerException(\"Illegal call. Session info has not been created for the current session\");\r\n\tPVMResponseAcceptStrategy strategy = new PVMResponseAcceptStrategy( si, m_properties );\r\n\tstrategy.acceptPVMResponse( req, resp );\r\n }", "@Override\n\tpublic void afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler,\n\t\t\tException ex) {\n\t\tSystem.out.println(\"after handshake\");\n\n\t\tHttpServletRequest rq = ((ServletServerHttpRequest) request).getServletRequest();\n\t\tHttpSession session = rq.getSession();\n\t\tsuper.afterHandshake(request, response, wsHandler, ex);\n\n\t}", "@Override\n protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n try {\n // attempt to find the existing session..\n TwiMLResponse twiMLResponse;\n String id = getWorkflowSessionId(req);\n PyObject twilioRequest = buildRequestTuple(req);\n PyGenerator pygen = workflowSessionCache.getIfPresent(id);\n if (null == pygen) {\n // load the workflow provided\n Invocable f = loadWorkflow(getWorkflowName(req));\n // create the python generator\n pygen = (PyGenerator) f.invokeFunction(\"execute\", twilioRequest);\n twiMLResponse = toTwiMLResponse(pygen.next());\n } else {\n // execute the next request..\n twiMLResponse = toTwiMLResponse(pygen.send(twilioRequest));\n }\n\n // determine if this is the last response..\n if (twiMLResponse instanceof LastTwilioResponse) {\n workflowSessionCache.invalidate(id);\n } else {\n workflowSessionCache.put(id, pygen);\n }\n\n // send back the Twilio response..\n resp.addCookie(new Cookie(\"uuid\", id));\n resp.getWriter().write(twiMLResponse.toXML());\n } catch (Exception ex) {\n throw new ServletException(ex);\n }\n }", "@Override\n public Response serve( IHTTPSession session ) throws SecurityResponseException {\n String host = findRequestHeaderValue( HTTP.HDR_HOST, session );\n if ( StringUtil.isNotBlank( host ) ) {\n String uri;\n if ( server.getPort() == 443 ) {\n uri = HTTPS_SCHEME + host + session.getUri();\n } else {\n uri = HTTP_SCHEME + host + \":\" + server.getPort() + session.getUri();\n }\n Log.append( HTTPD.EVENT, \"Redirecting to \" + uri );\n Response response = Response.createFixedLengthResponse( Status.REDIRECT, MimeType.HTML.getType(), \"<html><body>Moved: <a href=\\\"\" + uri + \"\\\">\" + uri + \"</a></body></html>\" );\n response.addHeader( HTTP.HDR_LOCATION, uri );\n return response;\n }\n return super.serve( session );\n }", "public void sessionCreated(final HttpSessionEvent event) {\n }", "public String execute(){\n HttpSession session = request.getSession();\n System.out.println(request);\n System.out.println(response);\n System.out.println(application);\n System.out.println(session);\n\n return null;\n\n}", "@OnOpen\r\n public void onOpen(Session session) {\n try {\r\n \tClientRequest.session=session;\r\n// System.out.println(ClientRequest.session);\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "private void initSession(HttpServletRequest request, HttpServletResponse response) throws IOException {\n // create new seassion for user\n HttpSession session = request.getSession();\n if (session != null) {\n _sessionId = session.getId();\n }\n\n response.getWriter().write(_sessionId);\n }", "public void passSetupResponseToClient( RtspResponse response )\n\t{\n\t\t// If there isn't yet an rtspSession, create a new one\n\t\tRtspSession rtspSession = RtspSession.get( response.getHeader( \"Session\" ) );\n\t\tif ( rtspSession == null ) {\n\t\t\trtspSession = (RtspSession) clientSession.getAttribute( \"rtspSession\" );\n\t\t\tif ( rtspSession == null ) {\n\t\t\t\trtspSession = RtspSession.create();\n\t\t\t}\n\t\t}\n\t\tsendResponse( clientSession, response );\n\t}", "@Override\n\tpublic void onSessionEnded(final SpeechletRequestEnvelope<SessionEndedRequest> requestEnvelope) {\n\t}", "@Override\n public ModelAndView handle(Request request, Response response) {\n final Session httpSession = request.session();\n final String username = ((Player)httpSession.attribute(PlayerLobby.PLAYER_ID)).getUsername();\n playerLobby.signOut(username, httpSession);\n gameCenter.end(httpSession);\n\n // redirect to the home page\n response.redirect(WebServer.HOME_URL);\n halt();\n return null;\n }", "protected void onMEVPollsForResponse( HttpServletRequest req, HttpServletResponse resp ) throws Exception {\r\n\tHttpSession session = req.getSession( false );\r\n\tif (session == null) throw new NullPointerException(\"Illegal call. Session has not been created \");\r\n\tSessionState si = (SessionState)session.getAttribute(\"MEV_SESSION\");\r\n\tif (si == null) throw new NullPointerException(\"Illegal call. Session info has not been created for the current session\");\r\n\tMEVPollAcceptStrategy strategy = new MEVPollAcceptStrategy( si, m_properties );\r\n\tstrategy.acceptPollRequest( req, resp );\r\n }", "@Override\r\npublic void setSession(Map<String, Object> arg0) {\n\t\r\n}", "@Override\n public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException {\n response.setHeader(\"Content-Type\", \"application/json\");\n Enumeration<String> attributes = request.getSession().getAttributeNames();\n while (attributes.hasMoreElements()) {\n String attribute = (String) attributes.nextElement();\n System.out.println(attribute+\" : \"+request.getSession().getAttribute(attribute));\n }\n }", "protected void onMEVPostsRequest( HttpServletRequest req, HttpServletResponse resp ) throws Exception {\r\n\tHttpSession session = req.getSession( false );\r\n\tif (session == null) { // that means that it is the first request\r\n\t session = req.getSession();\r\n\t synchronized( session ) {\r\n\t\tsession.setAttribute(\"MEV_SESSION\", new SessionState() );\r\n\t\tMEVRequestAcceptStrategy strategy = new MEVRequestAcceptStrategy( m_properties );\r\n\t\tstrategy.acceptMEVRequest( req, resp );\r\n\t }\r\n\t} else {\r\n\t SessionState si = (SessionState)session.getAttribute(\"MEV_SESSION\");\r\n\t MEVRequestAcceptStrategy2 strategy = new MEVRequestAcceptStrategy2( si );\r\n\t strategy.acceptMEVRequest( req, resp );\r\n\t}\r\n }", "HttpServletResponse getCurrentResponse();", "@Override\n\tpublic void sessionCreated(HttpSessionEvent se) {\n\t\tSystem.out.println(\"HttpSessionListener:sessionCreated\");\n\t}", "@RequestMapping(value = \"/punchout/cxml/session\", method = RequestMethod.GET)\r\n\tpublic void handlePunchOutSession(@RequestParam final String key, @RequestParam(\"sid\") final String sessionId,\r\n\t\t\tfinal HttpServletRequest request, final HttpServletResponse response)\r\n\t{\r\n\t\tfinal PunchOutSession punchOutSession = punchoutSessionService.load(sessionId);\r\n\t\tLOG.debug(\"PunchOut session: \" + printSessionInfo(punchOutSession));\r\n\r\n\t\tfinal String userId = cipherService.retrieveUserId(key, punchOutSession);\r\n\r\n\t\tfinal HttpSession session = request.getSession();\r\n\t\tsession.removeAttribute(B2bpunchoutaddonConstants.PUNCHOUT_USER);\r\n\r\n\t\tgetPunchOutUserAuthenticationService().authenticate(userId, true, punchOutSession, request, response);\r\n\r\n\t\t// if user was authenticated (no exception was thrown), set the current cart with the one from the setup request session\r\n\t\tpunchoutSessionService.setCurrentCartFromPunchOutSetup(sessionId);\r\n\r\n\t\tsession.setAttribute(B2bpunchoutaddonConstants.PUNCHOUT_USER, userId);\r\n\t}", "public void sessionEnded() {\n\t\t\r\n\t}", "private static void reply(final RoutingContext context, final Envelop envelop,\n final Set<MediaType> mediaTypes, final Method sessionAction) {\n final HttpServerResponse response = context.response();\n /*\n * FIX: java.lang.IllegalStateException: Response is closed\n */\n if (!response.closed()) {\n /*\n * Set http status information on response, all information came from `Envelop`\n * 1) Status Code\n * 2) Status Message\n */\n final HttpStatusCode code = envelop.status();\n response.setStatusCode(code.code());\n response.setStatusMessage(code.message());\n /*\n * Bind Data\n */\n envelop.bind(context);\n /*\n * Media processing\n */\n Outcome.media(response, mediaTypes);\n /*\n * Security for response ( Successful Only )\n */\n if (envelop.valid()) {\n Outcome.security(response);\n /*\n * SessionData Stored\n */\n storeSession(context, envelop.data(), sessionAction);\n }\n /*\n * Plugin Extension for response replying here ( Plug-in )\n */\n PluginExtension.Answer.reply(context, envelop);\n /*\n * Output of current situation\n */\n Outcome.out(response, envelop, mediaTypes);\n }\n }", "@Override\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t\tlog.info(\"------ sessionListen init------\");\n\t\tlog.info(arg0.getSession().getId());\n\t}", "@Override\n\t\t\tpublic void handleNewSession() throws Exception {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void setSession(Map<String, Object> session) \r\n\t{\n\t\tthis.session = session;\r\n\t}", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "public InnerSessionRequestCallback() {\r\n super();\r\n// this.requestCount = requestCount;\r\n }", "public void setSession(Session session) { this.session = session; }", "void sessionCreated(SessionEvent se);", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n // Recupere la session\r\n HttpSession session = request.getSession(true);\r\n \r\n //Fermeture des sessions ouvertes\r\n session.invalidate();\r\n \r\n //Redirection vers la page d'accueil\r\n retourVue(request,response,\"/index.jsp\");\r\n }", "@Override\r\npublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t\r\n}", "@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n Cookie cookie = requestContext.getCookies().get(COOKIE_NAME);\n String sessionId = null;\n if (cookie != null) {\n sessionId = cookie.getValue();\n logger.trace(\"Request received with session id {}\", sessionId);\n }\n HttpSession httpSession = sessionManager.getOrCreate(sessionId);\n requestManager.setHttpSession(httpSession);\n }", "private void sendAuthenticationResponse(Session userSession, boolean authenticated) {\n\t\tsend(userSession, new AuthenticationResponse(authenticated));\n\t}", "@Override\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session = session;\n\t}", "@Override\r\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session = session;\r\n\t}", "@Override\r\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session = session;\r\n\t}", "void sessionExpired();", "@Override\n public void endRequest(HttpServletResponse httpServletResponse) {\n if (wasModified.get()) {\n Cookie newCookie = new Cookie(COOKIE_NAME, sessionId.get());\n newCookie.setPath(\"/\");\n httpServletResponse.addCookie(newCookie);\n }\n\n // -- Clear the threadlocals since we are now exiting this session --\n wasModified.remove();\n sessionId.remove();\n }", "@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n request.getSession().setAttribute(\"message\", null);\n this.getServletContext().getRequestDispatcher(Utils.LOGIN).forward(request, response);\n }", "@Override\n\tpublic void setSession(Map<String, Object> session)\n\t{\n\t\tthis.session = session;\n\n\t}", "@Override\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session=session;\n\t}", "@Override\r\n\tpublic void setSession(Map<String, Object> arg0) {\n\t\tthis.session = arg0;\r\n\t}", "@Override\r\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session=session;\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tMap<String, Object> model=modelAndView.getModel();\n\t\tif(model.containsKey(RetInfos.SUCCESS))\n\t\t{\n\t\t\trequest.getSession().removeAttribute( CommonConstants.SSM_TOKEN );\n\t\t}\n\t\t\n\t\tsuper.postHandle(request, response, handler, modelAndView);\n\t}", "@Override\n\tpublic void setSession(Map<String, Object> arg0) {\n\t\tthis.session = arg0;\n\t\t\n\t}", "@Override\n public void onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) {\n }", "public void sessionRequested(final JingleSessionRequest request) {\n incCounter();\n System.out.println(\"Session request detected, from \" + request.getFrom());\n }", "@Override\n\tpublic void sessionDestroyed(HttpSessionEvent arg0) {\n\t\tlog.info(\"------ sessionListen-----init------\");\n\t}", "@Override\n\tpublic void setSession(Map<String, Object> arg0) {\n\t\tthis.session = arg0;\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n HttpSession session = new HttpSession() {\n public long getCreationTime() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public String getId() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public long getLastAccessedTime() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public ServletContext getServletContext() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void setMaxInactiveInterval(int interval) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public int getMaxInactiveInterval() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public HttpSessionContext getSessionContext() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Object getAttribute(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Object getValue(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public Enumeration<String> getAttributeNames() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public String[] getValueNames() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void setAttribute(String name, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void putValue(String name, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void removeAttribute(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void removeValue(String name) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public void invalidate() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n public boolean isNew() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n };\n try {\n String bsubmit = request.getParameter(\"submit\");\n String inUsername = request.getParameter(\"username\");\n String inPassword = request.getParameter(\"password\");\n if (bsubmit != null) {\n UserDAO userDAO = new UserDAO();\n User user = userDAO.findUserByNameAndPassword(inUsername, inPassword);\n if (user == null) {\n out.write(\"<script type='text/javascript'>\\n\");\n out.write(\"alert(' Sorry, invalid username or password\");\n out.write(\".');\\n\");\n out.write(\"setTimeout(function(){window.location.href='login.jsp'},1000);\");\n out.write(\"</script>\\n\");\n } else {\n if (user.getUserName().equals(inUsername) && user.getPassword().equals(inPassword)) {\n session = request.getSession();\n session.setAttribute(\"userId\", String.valueOf(user.getId()));\n session.setAttribute(\"userName\", user.getUserName());\n out.write(\"<script type='text/javascript'>\\n\");\n out.write(\"alert(' Thank you! You are login with \");\n out.write(user.getUserName());\n out.write(\" account.');\\n\");\n out.write(\"setTimeout(function(){window.location.href='index.jsp'},1000);\");\n out.write(\"</script>\\n\");\n }\n }\n\n }\n\n } finally {\n out.close();\n }\n }", "public void sessionCreated(HttpSessionEvent sessionEvent) {\n HttpSession session = sessionEvent.getSession();\n\n // Store something in the session, and log a message\n try {\n System.out.println(\"[MySessionListener] Session created: \" + session);\n session.setAttribute(\"foo\", \"bar\");\n } catch (Exception e) {\n System.out.println(\"[MySessionListener] Error setting session attribute: \" + e.getMessage());\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response) {\n response.setContentType(\"text/html;charset=UTF-8\");\n //Invalidate user session\n request.getSession().invalidate();\n }", "@Override\r\n\tpublic void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response,\r\n\t\t\tAuthentication authentication) throws IOException, ServletException {\n\t\t\r\n\t\tHttpSession session = request.getSession();\r\n\t\t\r\n\t\tSystem.out.println(authentication.getName());\r\n\t\tresponse.sendRedirect(\"/test/homepage\");\r\n\t\t\r\n\t}", "@Override\n\tpublic void onInvalidSessionDetected(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\t//返回给浏览器set-Cookie jsessionId\n\t\trequest.getSession();\n\n\t\t// 根据请求的url 是接口还是html 返回相应的数据还是返回html页面\n\t\t//redirectStrategy.sendRedirect(request, response, \"/login.do\");\n\t\tresponse.setContentType(MimeTypeUtils.APPLICATION_JSON_VALUE + \";charset=UTF-8\");\n\t\tresponse.getWriter().write(\"{\\\"message\\\":\\\"onInvalidSessionDetected session超时时会触发还有其他情况也会触发\\\"}\");\n\n\t}", "@Override\n protected void deliverResponse(T response) {\n listener.onSuccessResponse(response);\n }", "private void updateVPLEXSessionId(ClientResponse response) {\n List<NewCookie> cookies = response.getCookies();\n for (NewCookie cookie : cookies) {\n // Look for the session cookie. It should returned in the\n // response if this is the first request from this client\n // or the session expired since the last request, in which\n // case the VPLEX creates a new session and returns the\n // id in the cookie.\n if (VPlexApiConstants.SESSION_COOKIE.equals(cookie.getName())) {\n String newSessionId = cookie.getValue();\n if ((_vplexSessionId == null) || (!_vplexSessionId.equals(newSessionId))) {\n s_logger.info(\"VPLEX Session ID changing from {} to {}\",\n (_vplexSessionId == null ? \"null\" : _vplexSessionId),\n newSessionId);\n _vplexSessionId = newSessionId;\n }\n break;\n }\n }\n }", "protected void handleSuccessMessage(Response response) {\n\t\tonRequestResponse(response);\n\t}", "@Override\n\tpublic void setSession(Map<String, Object> arg0) {\n\t\t\n\t}", "@Override\n\tpublic void setSession(Map<String, Object> arg0) {\n\t\t\n\t}", "protected void onSessionStateChange(SessionState state, Exception exception) {\n }", "@Override\r\n\tpublic void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication)\r\n\t\t\tthrows IOException, ServletException {\n\t\tHttpSession session = request.getSession();\r\n\t\tif(session!=null){\r\n\t\t\t//HttpSessionBindirListener remove ettigimizi dinleyecek unbound methodu calýscak\r\n\t\t\tsession.removeAttribute(\"user\");\r\n\t\t}\r\n\t\thandle(request, response,authentication);\r\n\t}", "@Override\n public void sessionCreated(IoSession session) {\n }", "public void setSession(Session session) {\n\tthis.session = session; \r\n}", "@Override\n\tpublic void setSession(Map<String, Object> s) {\n\t\tsession = s;\n\t}", "public void sessionRequested(final JingleSessionRequest request) {\n System.out.println(\"Session request detected, from \" + request.getFrom());\n\n // We reject the request\n try {\n JingleSession session = request.accept();\n //session.setInitialSessionRequest(request);\n session.startIncoming();\n session.terminate();\n } catch (XMPPException e) {\n e.printStackTrace();\n }\n\n }", "@Override\r\n\tpublic void setSession(Map<String, Object> arg0) {\n\t\t\r\n\t}", "HttpChannel addResponseCookie(Cookie cookie);", "void startSession(@Nullable Callback<Session> callback);", "@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {\n\t\t\n\t\tObject o=request.getSession().getAttribute(\"id\");\n//\t\tlogger.info(request.getRemoteAddr()+\"===\"+request.getRequestURI());\n\t\tresponse.setContentType(\"text/plain;charset=UTF-8\");\n\t\tif(o==null){//用\n\t\t\tresponse.getWriter().print(\"{'s':-1}\");\n \t\treturn false;\n\t\t}\n\n\t\treturn super.preHandle(request, response, handler);\n\t}", "@Override\r\n\tpublic ActionData exec(HttpServletRequest request, HttpServletResponse response) {\n\t\tActionData data = new ActionData();\r\n\t\tHttpSession session = request.getSession(true);\r\n\r\n\t\tsession.removeAttribute(\"id\"); \r\n\t\t\r\n\t\tdata.setPath(\"../center/Main\");\r\n\t\tdata.setRedirect(true);\r\n\t\t\r\n\t\treturn data;\r\n\t}", "@Override\n public void success(Result<TwitterSession> result) {\n TwitterSession session = TwitterCore.getInstance().getSessionManager().getActiveSession();\n Intent intent = new Intent();\n intent.putExtra(TWITTER_SESSION, gson.toJson(session));\n setResult(Activity.RESULT_OK, intent);\n finish();\n }", "public void sessionDidActivate(HttpSessionEvent arg0) {\n\n\t}", "@Override\n protected void deliverResponse(JSONObject response) {\n listener.onResponse(response);\n System.out.println(\"response \"+response);\n }", "public void getSession(RequestCallback callback) throws RequestException {\n sendRequest(\"/session\", null, RequestBuilder.GET, callback);\n }", "@Override\n\tpublic void sessionCreated(HttpSessionEvent httpSessionEvent) {\n\t\tSystem.out.println(\"sessionDestroyed dice: Abriendo session\");\n\t}", "public void sessionStarted() {\n\t\t\r\n\t}", "@Override\n public Optional<Response> handle(HandlerInput input) {\n Map<String, Object> sessionAttributes = input.getAttributesManager().getSessionAttributes();\n int counter = (int) sessionAttributes.get(Attributes.COUNTER_KEY);\n\n String question = RiddleUtils.setupSessionAttributes(sessionAttributes, counter);\n String speech= \"No Problem!\" + question;\n\n return input.getResponseBuilder()\n .withSimpleCard(\"RiddleSession\", speech)\n .withSpeech(speech)\n .withReprompt(speech)\n .withShouldEndSession(false)\n .build();\n }", "@Override\n\tprotected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {\n\t\tSubject subject = getSubject(request, response);\n\t\tif (!subject.isAuthenticated() && !subject.isRemembered()) {\n\t\t\t// 如果没有登录,直接进行之后的流程\n\t\t\treturn true;\n\t\t}\n\t\tString username = (String) subject.getPrincipal();\n\t\tSession session = subject.getSession();\n\t\tString sessionId = (String) session.getId();\n\n\t\tHttpServletRequest req = WebUtils.toHttp(request);\n\t\tServletContext application = req.getSession().getServletContext();\n\t\tDeque<Object> deque = deque = (Deque<Object>) application.getAttribute(username);\n\t\tif (deque == null) {\n\t\t\tdeque = new LinkedList<>();\n\t\t\tdeque.push(sessionId);\n\t\t\tapplication.setAttribute(username, deque);\n\t\t\treturn true;\n\t\t}\n\t\tif (!deque.contains(sessionId) && session.getAttribute(\"kickout\") == null) {\n\t\t\tdeque.push(sessionId);\n\t\t}\n\t\twhile (deque.size() > 1) {\n\t\t\tString kickSessionId = (String) deque.removeLast();\n\t\t\tif (kickSessionId != null) {\n\t\t\t\tSession kickoutSession = null;\n\t\t\t\ttry {\n\t\t\t\t\tkickoutSession = sessionManager.getSession(new DefaultSessionKey(kickSessionId));\n\t\t\t\t\tkickoutSession.setAttribute(\"kickout\", true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tif (session.getAttribute(\"kickout\") != null) {\n\t\t\tsubject.logout();\n\t\t\tsaveRequest(request);\n\t\t\treq.setAttribute(\"kickMsg\", \"该账号异地登录,您被强制下线\");\n\t\t\tWebUtils.issueRedirect(request, response, kickoutUrl);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response,\n\t\t\tAuthentication authentication) throws IOException, ServletException {\n\t\t\n\t\tSystem.out.println(request.getRequestedSessionId());\n\t\tHttpSession session = request.getSession();\n\t\t if (session != null ) {\n\t\tSystem.out.println(\"Session ID:\"+session.getId());\n\t\tSystem.out.println(\"Session Creation Time:\"+session.getCreationTime());\n\t\tSystem.out.println(\"Session Max Inactive Time:\"+session.getMaxInactiveInterval());\n\t\tSystem.out.println(\"Session Servlet Context:\"+session.getServletContext());\n\t\tString username = SecurityUtils.getUserName();\n\t\tUserDetails userDetails=userDetailsRepository.findByUserName(username);\n\t\tsession.setAttribute(\"firstName\",userDetails.getFirstName());\n session.setAttribute(\"username\", userDetails.getUserName());\n session.setAttribute(\"firstName\", userDetails.getFirstName());\n session.setAttribute(\"sessionId\", session.getId());\n SecurityUtils.logUserEvent(username,session.getId(),datasource);\n\t\t }\n //set our response to OK status\n\t\t \n\t\t response.setStatus(HttpServletResponse.SC_OK);\n //since we have created our custom success handler, its up to us to where\n //we will redirect the user after successfully login\n\t\t \n\t\t Set<String> roles = AuthorityUtils.authorityListToSet(authentication.getAuthorities());\n\t System.out.println(\"Role:\"+roles.toString()); \n\t\t if (roles.contains(\"ROLE_ADMIN\")) {\n\t \n\t\t\t //redirectStrategy.sendRedirect(request, response, \"/adminHome\");\n\t\t\t response.sendRedirect(\"/gadibhada/home/admin\");\n\t // response.setStatus(HttpServletResponse.SC_OK);\n\t }\n\t\t else if (roles.contains(\"ROLE_USER\")) {\n\t \n\t \t //redirectStrategy.sendRedirect(request, response, \"/userHome\");\n\t \tresponse.sendRedirect(\"/gadibhada/home/user\");\n\t //response.setStatus(HttpServletResponse.SC_OK);\n\t }\n\t\t\n\t}", "public void init(HttpServletRequest request, HttpServletResponse response,\n HttpSession session, ServletContext app, JspWriter out) {\n\n this.request = request;\n this.response = response;\n this.session = session;\n application = app;\n this.out = out;\n }", "public void sessionDestroyed(HttpSessionEvent arg0) {\r\n\t}", "public void onSessionDestroyed() {\n }", "@Override\n public Response runInternal(KeycloakSession session) {\n TokenEndpoint other = new TokenEndpoint(session, tokenManager,\n new EventBuilder(session.getContext().getRealm(), session, clientConnection));\n // process the request in the created instance.\n return other.processGrantRequestInternal();\n }", "Session decorate(Session session);", "@Override public void deliverResponse(T response) {\n if (listener != null) {\n listener.onResponse(response);\n }\n }", "public void sessionCreated(IoSession session) { }", "@Override\n\tpublic void setSession(Map<String,Object> mySession) {\n\t\tthis.mySession = mySession;\n\t}", "@Override\n\tpublic void processRequest(HttpRequest request, HttpResponse response) throws Exception {\n\t\tresponse.setHeaderField( \"Server-Name\", \"Las2peer 0.1\" );\n\t\tresponse.setContentType( \"text/xml\" );\n\t\t\n\t\t\n\t\t\n\t\tif(authenticate(request,response))\n\t\t\tif(invoke(request,response));\n\t\t\t\t//logout(_currentUserId);\n\t \n\t\n\t\t//connector.logMessage(request.toString());\n\t\t\n\t\t\n\t}" ]
[ "0.64934826", "0.6367335", "0.63527554", "0.617484", "0.61713326", "0.61527663", "0.6080439", "0.6076965", "0.6063476", "0.603394", "0.5934232", "0.58608127", "0.5845045", "0.5843526", "0.5805714", "0.5793514", "0.57844526", "0.5768773", "0.57490414", "0.57438546", "0.5741107", "0.5735471", "0.5734023", "0.5715162", "0.5703532", "0.5691822", "0.5691584", "0.56603473", "0.56567484", "0.5632209", "0.56307596", "0.5625572", "0.56245685", "0.56241316", "0.5623608", "0.5619144", "0.56157476", "0.56102806", "0.55960625", "0.55943453", "0.5590353", "0.55838966", "0.55723494", "0.55723315", "0.55648476", "0.5564768", "0.55583346", "0.55583346", "0.55536264", "0.55520636", "0.55415845", "0.5526636", "0.55203545", "0.55012286", "0.54988", "0.54919267", "0.5470277", "0.5466175", "0.5465694", "0.54648393", "0.5464325", "0.5462007", "0.5459559", "0.54534113", "0.5452656", "0.544239", "0.54362124", "0.54275817", "0.5424644", "0.54238564", "0.5416492", "0.5416492", "0.5407965", "0.5402603", "0.54006284", "0.53991324", "0.53987855", "0.5396233", "0.5395397", "0.5390871", "0.53859454", "0.5384797", "0.53812224", "0.53809047", "0.5368546", "0.53628343", "0.5356837", "0.53562707", "0.5353613", "0.53508896", "0.5350684", "0.5348994", "0.5346752", "0.53445375", "0.5342322", "0.5334176", "0.5333991", "0.53328717", "0.53301036", "0.5316239", "0.53113997" ]
0.0
-1
Callback to commit session.
public void commit() { doCommit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void commit(Session session);", "@Override\n\tpublic void commit() {\n\n\t}", "@Override\n public void commit() {\n }", "public void commit();", "public abstract void commit();", "void commit() {\n }", "public void commit() {\n }", "void commit();", "void commit();", "void storeSession() {\n retrieveSessionIfNeeded(false);\n\n if (session != null) {\n try {\n session.commit();\n } catch (Exception e) { // NOSONAR - some error occured, log it\n logger.warn(\"cannot store session: {}\", session, e);\n throw e;\n }\n } else {\n logger.debug(\"session was null, nothing to commit\");\n }\n }", "public boolean onSave(Session s) throws CallbackException;", "@Override\r\n\tpublic boolean commit() {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"commit\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\tps.executeUpdate();\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public void commit(){\n \n }", "@Override\n public void commit() throws SQLException {\n if (isTransActionAlive() && !getTransaction().getStatus().isOneOf(TransactionStatus.MARKED_ROLLBACK,\n TransactionStatus.ROLLING_BACK)) {\n // Flush synchronizes the database with in-memory objects in Session (and frees up that memory)\n getSession().flush();\n // Commit those results to the database & ends the Transaction\n getTransaction().commit();\n }\n }", "public void commit() {\n\t\ttry {\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"完了したコミット/Commit Done\");\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"接続エラーが発生しました/Connection Commit Error Occured\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic int commit() {\n\t\treturn 0;\n\t}", "public void commit() {\n\t\tcommitted = true;\n\t}", "@Override\n public void commitTx() {\n \n }", "@Override\r\n\t\tpublic void commit() throws SQLException {\n\t\t\t\r\n\t\t}", "protected void post_commit_hook() { }", "public void commit() {\n tryCommit(true);\n }", "public final void commit() throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit() throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit() throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit() throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit() throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "private void processCommit() throws HsqlException {\n tokenizer.isGetThis(Token.T_WORK);\n session.commit();\n }", "public void commitTransaction() {\n\r\n\t}", "public final void commit() throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public final void commit() throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public final void commit() throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public final void commit() throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public abstract void endUserSession();", "@Override\n\tpublic void commit(boolean onSave) {\n\t\tsuper.commit(onSave);\n\t}", "@Override\n public void commitTransaction() {\n try {\n connection.commit();\n } catch (SQLException e) {\n LOGGER.error(\"Can't commit transaction \", e);\n } finally {\n closeConnection();\n }\n }", "void flushSession();", "void flushSession();", "void endSession(@Nullable Callback<ComapiResult<Void>> callback);", "protected abstract boolean commitTxn(Txn txn) throws PersistException;", "void commitTransaction(ConnectionContext context) throws IOException;", "void commitTransaction();", "@Override\n public void commit() throws HeuristicMixedException, HeuristicRollbackException, IllegalStateException,\n RollbackException, SecurityException, SystemException {\n assertActiveTransaction();\n try {\n getTransaction().commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n txns.set(null);\n }\n\n }", "void commit( boolean onSave );", "void commit(String tpcid);", "@Override\n\tpublic void commit() throws Throwable {\n\t\tthrow new Warning(\"please use commit(context)\");\n\t}", "Session begin();", "void commit(Transaction transaction);", "private void commitTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().commit();\n }\n }", "void commit() throws CommitException;", "void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }", "protected void commit()\n\t{\n\t\t_Status = DBRowStatus.Unchanged;\n\t}", "@Override\n\tpublic void commitInmate(InmateData inmate) {\n\t\t\n\t}", "R commit(C change);", "public void commit() {\r\n for (Iterator<Connection> it = connections.values().iterator(); it.hasNext();) {\r\n Connection conn = it.next();\r\n try {\r\n conn.commit();\r\n } catch (SQLException ex) {\r\n log.severe(\"Partial commit failure: \" + ex.getMessage());\r\n }\r\n }\r\n closeConnections();\r\n }", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}", "public void commit(Writer output) throws IOException {\n postData(new StringReader(\"<commit/>\"), output);\n }", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}", "public boolean commit() {\r\n\tboolean result = false;\r\n\r\n\tif (conn != null && isConnected()) {\r\n\t try {\r\n\t\tboolean autoCommit = getAutoCommit();\r\n\r\n\t\tif (!autoCommit) {\r\n\t\t conn.commit();\r\n\t\t result = true;\r\n\t\t}\r\n\t } catch (Exception e) {\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}\r\n\r\n\treturn result;\r\n }", "public void commit() {\n\t\tcommitted = true;\n\t\tbackUp();\n\t\t//back up the current board info at the meanwhile\n\t}", "@Override\r\n\tpublic void commit(String tableName) {\n\t}", "@After\n public void finaliza() {\n session.getTransaction().rollback();\n session.close();\n }", "@Override\n public void onClose(Connection connection, Session session) {\n }", "void commit() throws SoarException\n {\n // if lazy, commit\n if(db != null && params.lazy_commit.get() == LazyCommitChoices.on)\n {\n // Commit and then start next lazy-commit transaction\n try\n {\n db.commitExecuteUpdate( /* soar_module::op_reinit */);\n db.beginExecuteUpdate( /* soar_module::op_reinit */);\n }\n catch(SQLException e)\n {\n throw new SoarException(\"Error while forcing commit: \" + e.getMessage(), e);\n }\n }\n \n }", "protected abstract void commitIndividualTrx();", "public void commitChanges()\n {\n }", "void commit() throws InterruptedException;", "public boolean onUpdate(Session s) throws CallbackException;", "public void commitEntity();", "interface SessionReleasedCallback {\n\n /**\n * Called when the given session is released.\n *\n * @param session The session that has been released.\n */\n void onReleased(Session session);\n }", "public void sessionEnded() {\n\t\t\r\n\t}", "protected abstract boolean commit(String value);", "private void commit(Message m) throws JMSException {\n\t\t// commit the transaction\n\t\tsession.commit();\n\n\t\t// get the current message counter\n\t\tint counter = m.getIntProperty(FailoverQSender.MESSAGE_COUNTER);\n\t\t// set the commit counter\n\n\t\tcommitCounter = counter;\n\t\t// clear app data\n\t\tthis.reset();\n\n\t\tlog(\"Messages committed, commitCounter: \" + commitCounter);\n\t}", "private void commit() {\n if (vote != Vote.COMMIT) {\n throw new IllegalStateException(\"Cannot commit transaction with vote: \" + vote);\n }\n\n for (ObjectVersion<V> objectVersion : objectVersions.values()) {\n objectVersion.commit();\n }\n }", "@Override\n\t\t\tpublic void handleNewSession() throws Exception {\n\t\t\t\t\n\t\t\t}", "public void commit() throws SQLException {\n\t\tconnection.commit();\n\t}", "public void commit() throws PolicyContextException{\n\n\tsynchronized(refreshLock) {\n\t if(stateIs(DELETED_STATE)){\n String defMsg=\"Cannot perform Operation on a deleted PolicyConfiguration\";\n String msg=localStrings.getLocalString(\"pc.invalid_op_for_state_delete\",defMsg);\n\t\tlogger.log(Level.WARNING,msg);\n\t\tthrow new UnsupportedOperationException(defMsg);\n\n\t } else {\n \n\t\ttry {\n\n\t\t checkSetPolicyPermission();\n\n\t\t if (stateIs(OPEN_STATE)) {\n\n\t\t\tgeneratePermissions();\n\n\t\t\tsetState(INSERVICE_STATE);\n\t\t }\n\t\t} catch(Exception e){\n String defMsg=\"commit fail for contextod \"+CONTEXT_ID;\n String msg=localStrings.getLocalString(\"pc.commit_failure\",defMsg,new Object[]{CONTEXT_ID,e});\n\t\t logger.log(Level.SEVERE,msg);\n\t\t throw new PolicyContextException(e);\n\t\t}\n\t\tif (logger.isLoggable(Level.FINE)){\n\t\t logger.fine(\"JACC Policy Provider: PC.commit \"+CONTEXT_ID);\n\t\t}\n\t }\n\t \n\t}\n }", "@Override\n public boolean commitSMO() {\n return true;\n }", "@Override\n\t\t\tpublic void CommitHandle(JTable table) {\n\t\t\t}", "@Override\n\t\t\tpublic void CommitHandle(JTable table) {\n\t\t\t}", "public final void mCOMMIT() throws RecognitionException {\n try {\n int _type = COMMIT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:350:7: ( C O M M I T )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:350:9: C O M M I T\n {\n mC(); \n mO(); \n mM(); \n mM(); \n mI(); \n mT(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void commit() throws ResourceException;", "void commit() throws SolrServerException, IOException;", "public void commitChanges() {\n try {\n connection.commit();\n } catch (SQLException sqle) {\n LOGGER.log(Level.SEVERE, \"Unable to commit changes to the DB due to error {0}\", sqle.getMessage());\n }\n }", "void commit() throws StorageException, ValidationException, KeyValueStoreException;", "private void saveAsCurrentSession(Context context) {\n \t// Save the context\n \tthis.context = context;\n }", "public synchronized void writeCommit(Transaction t) {\n\t\tflush();\n\t\tpw.println(t.transactionId() + \" commit\");\t\n\t\tflush();\n\t}", "void endTransaction();", "public void flush() {\n\t\tgetSession().flush();\n\t}", "public GlBuffer commit(){\n return commit(true);\n }", "boolean shouldCommit();", "public void commitWriter () {\n try {\n writer.commit();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void commit() {\n\t\tif (commit) {\n\t\t\t// Récupérer le path du JSON\n\t\t\tSystem.out.println(ClassLoader.getSystemResource(jsonFile));\n\t\t\tURL url = ClassLoader.getSystemResource(jsonFile);\n\t\t\t// On ouvre un flux d'écriture vers le fichier JSON\n\t\t\ttry (OutputStream ops = new FileOutputStream(Paths.get(url.toURI()).toFile())) {\n\t\t\t\t// Ecriture du fichier JSON avec formatage\n\t\t\t\t// (WithDefaultPrettyPrinter)\n\t\t\t\tobjectMapper.writerWithDefaultPrettyPrinter().writeValue(ops, database);\n\t\t\t\tlogger.info(\"OK - fichier JSON mis à jour \" + jsonFile);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tlogger.info(\"KO - FILE_NOT_FOUND\" + jsonFile);\n\t\t\t\tthrow new DataRepositoryException(\"KO - FILE_NOT_FOUND\", e);\n\t\t\t} catch (IOException e) {\n\t\t\t\tlogger.info(\"KO - I/O ERROR\" + jsonFile);\n\t\t\t\tthrow new DataRepositoryException(\"KO - I/O ERROR\", e);\n\t\t\t} catch (URISyntaxException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "void closeSession();" ]
[ "0.7874127", "0.6763586", "0.67579913", "0.6651148", "0.66487706", "0.6639147", "0.6628137", "0.6617442", "0.6617442", "0.65490466", "0.6536568", "0.6485286", "0.64432013", "0.63822305", "0.6343646", "0.63353837", "0.6335077", "0.6289681", "0.6268965", "0.6261785", "0.6170085", "0.6138401", "0.6138401", "0.6138401", "0.6138401", "0.6138401", "0.60982436", "0.6090022", "0.6085639", "0.6085639", "0.6085639", "0.6085639", "0.60792196", "0.6017054", "0.5987185", "0.5976884", "0.5976884", "0.5953669", "0.59466463", "0.59367275", "0.5931545", "0.5906534", "0.5899922", "0.5892004", "0.58694947", "0.5864937", "0.5864688", "0.5856313", "0.58396167", "0.5774503", "0.5774144", "0.5765393", "0.5749632", "0.5731622", "0.5707655", "0.5707655", "0.5707655", "0.5707655", "0.5707655", "0.569406", "0.5680334", "0.5680334", "0.5680334", "0.5680334", "0.5671901", "0.5645242", "0.5632087", "0.56283134", "0.5624415", "0.5601485", "0.5572432", "0.5554962", "0.55466294", "0.55452985", "0.55433434", "0.5543131", "0.55217665", "0.55193925", "0.5515523", "0.54638547", "0.5439101", "0.5415793", "0.53815645", "0.53567165", "0.5347533", "0.5347533", "0.5343656", "0.5341484", "0.5329601", "0.5294311", "0.5286299", "0.52834076", "0.52805036", "0.5276876", "0.5271193", "0.5262632", "0.5258949", "0.52485204", "0.52261186", "0.52255374" ]
0.65441895
10
Stores session if it was created
void storeSession() { retrieveSessionIfNeeded(false); if (session != null) { try { session.commit(); } catch (Exception e) { // NOSONAR - some error occured, log it logger.warn("cannot store session: {}", session, e); throw e; } } else { logger.debug("session was null, nothing to commit"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void store() {\n session=(HttpSession)getPageContext().getSession();\n session.setAttribute(\"remoteUser\", getRemoteUser());\n session.setAttribute(\"authCode\", getAuthCode());\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n Session currentSession = sessionTracker.getSession();\n Session.saveSession(currentSession, outState);\n outState.putBoolean(SESSION_IS_ACTIVE_KEY, sessionTracker.isTrackingActiveSession());\n }", "private void saveAsCurrentSession(Context context) {\n \t// Save the context\n \tthis.context = context;\n }", "void markAsUserSession();", "@Override\n public void sessionCreated(HttpSessionEvent se) {\n HttpSession session = se.getSession();\n if(session!=null) {\n session.setAttribute(PERSIST_SECURITY_CONTEXT_KEY,generateSeriesData());\n }\n }", "public void createSession(HttpServletRequest request) {\n\n session = request.getSession();\n writeSessionMessage(session);\n }", "public void storeSession(@NonNull User user){\n //calls storeUser method with mUser as argument\n storeUser(user);\n // validate input data\n checkSessionState();\n }", "private void initSession(HttpServletRequest request, HttpServletResponse response) throws IOException {\n // create new seassion for user\n HttpSession session = request.getSession();\n if (session != null) {\n _sessionId = session.getId();\n }\n\n response.getWriter().write(_sessionId);\n }", "public void setSession(Session session) { this.session = session; }", "@Override\n\tpublic Session createSession(SessionBasicInfo sessionBasicInfo) {\n\t\tSession session = sessionStore.createSession( sessionBasicInfo);\n\t\tif(session == null)\n\t\t\treturn null;\n\t\tsession._setSessionStore(this);\n\t\tsession.putNewStatus();\n\t\t\n\t\treturn session;\n\t}", "boolean hasSession();", "private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }", "public void saveGameSession() {\n\t\tlastSaved = ProjectZero.calendar.getTime().toString();\n\t\tAssetHandler.saveGameSession();\n\t}", "@Override\n\tpublic void saveSession(CacheHttpSession httpSession) {\n\t\t\n\t}", "Session begin();", "private static void sessionFromCurrentSession(final Context context) {\n\n \t// The session itself\n final Session newSession = Session.getInstance();\n \n // The service\n Service newService = new Service();\n newSession.setService(newService);\n\n // The shared preferences\n Preferences preferences = new Preferences(context);\n newSession.setPreferences(preferences);\n\n // The database\n RestaurantDBAdapter restaurantDBAdapter = new RestaurantDBAdapter(context);\n newSession.setRestaurantDBAdapter(restaurantDBAdapter);\n\n // The hashmap of all the restaurants\n HashMap<String, Restaurant> restaurants = restaurantDBAdapter.getAllRestaurants();\n newSession.setRestaurants(restaurants);\n\n //Save the current session\n Session.setCurrentSession(newSession);\n Session.currentSession.saveAsCurrentSession(context);\n }", "public static void loadSession(Session session){\n currentSession = session;\n }", "static void beginNewSession() {\n SESSION_ID = null;\n Prefs.INSTANCE.setEventPlatformSessionId(null);\n\n // A session refresh implies a pageview refresh, so clear runtime value of PAGEVIEW_ID.\n PAGEVIEW_ID = null;\n }", "public default void sessionCreated(HttpSessionEvent se) {\n }", "protected void setSession(Session newSession) {\n sessionTracker.setSession(newSession);\n }", "public void sessionStarted() {\n\t\t\r\n\t}", "public Result withNewSession() {\n return withSession(Collections.emptyMap());\n }", "public void AddSession(String session, Long id){ validSessions.put(session, id); }", "public Session createSession() {\n\t\treturn this.session;\n\t}", "public void setSession(Session value);", "@Override\n\tpublic void onStart(Session session) {\n\t\tlogger.info(\"onStart session created:id= {}, begin at {}\", session.getId(), session.getStartTimestamp());\n\t}", "public void sessionCreated(IoSession session) {\r\n\t\tServerLogger.log(\"Session created...\" + session, Constants.DEBUG);\r\n\t\tsession.getConfig().setIdleTime(IdleStatus.BOTH_IDLE, 5);\r\n\t}", "public synchronized void sessionRestored(Session session) {\n if (session != null) {\n flushQueueOnSuccess(session);\n } else if (queue.size() > 0) {\n requestAuth();\n } else {\n // We can not find any session on the disk, future requests for Session\n awaitingSession.set(false);\n }\n }", "public void sessionCreated(HttpSessionEvent sessionEvent) {\n\t\tHttpSession session = sessionEvent.getSession();\n\t\tDate date = new Date();\n\t\tSystem.out.println(\">>> Created Session : [\" + session.getId() + \"] at [\" + date.toString() + \"] <<<\"); \n\t\tSystem.out.println(\">>> getMaxInactiveInterval : [\" + session.getMaxInactiveInterval() + \" ] <<<\"); \n\t}", "@Override\n\t\tpublic HttpSession getSession(boolean create) {\n\t\t\treturn null;\n\t\t}", "@Override\r\n\tpublic HttpSession getSession(boolean create)\r\n\t{\r\n\t\treturn getSession();\r\n\t}", "void sessionCreated(SessionEvent se);", "@Override\n\tpublic boolean isNew(String appKey, String sessionID) {\n\t\treturn this.sessionStore.isNew(appKey, sessionID);\n\t}", "public Session createSession() {\n\t\tSession session = new Session();\n\t\tput(session.getId(), session);\n\t\treturn session;\n\t}", "public void setSession(Session session) {\n\tthis.session = session; \r\n}", "private Session() {\n userId = -1;\n onUserDeletion = null;\n }", "Session getCurrentSession();", "Session getCurrentSession();", "@Override\n\tpublic void setSession(Map<String, Object> s) {\n\t\tsession = s;\n\t}", "public void sessionCreated(HttpSessionEvent sessionEvent) {\n HttpSession session = sessionEvent.getSession();\n\n // Store something in the session, and log a message\n try {\n System.out.println(\"[MySessionListener] Session created: \" + session);\n session.setAttribute(\"foo\", \"bar\");\n } catch (Exception e) {\n System.out.println(\"[MySessionListener] Error setting session attribute: \" + e.getMessage());\n }\n }", "@Override\r\n\tpublic void setSession(Map<String, Object> session) \r\n\t{\n\t\tthis.session = session;\r\n\t}", "public void setSession(Session session) {\r\n this.session = session;\r\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Session.StatusCallback callback = new DefaultSessionStatusCallback();\n sessionTracker = new SessionTracker(this, callback);\n if (savedInstanceState != null) {\n Session session = Session.restoreSession(this, null, callback, savedInstanceState);\n if (session != null) {\n if (savedInstanceState.getBoolean(SESSION_IS_ACTIVE_KEY)) {\n if (Session.getActiveSession() == null) {\n Session.setActiveSession(session);\n }\n } else {\n sessionTracker.setSession(session);\n }\n }\n }\n }", "public void setCurrentSession(Session session){\n if(currentSession == null){\n currentSession = new MutableLiveData<>();\n }\n Log.i(\"VIewModelSessions\", \"setting current session\");\n currentSession.setValue(session);\n Log.i(\"ViewModelSessions\", \"current session: \"+session.toString());\n }", "public void add(Session session);", "@Override\r\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session=session;\r\n\t}", "public SessionCookie createNewSession() {\n\t\tSession session = createSession();\n\t\treturn session.getCookie();\n\t}", "@Override\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session=session;\n\t}", "public static boolean storeSessionId(User dto){\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tEntity sessionId = new Entity(\"sessionId\");\n\t\t/*\n\t\tSet the sessionId and the first / last name tied to it.\n\t\tWhile we may not use the first and last name right now,\n\t\twe might in the future, so for now, store em.\n\t\t */\n\t\t\n\t\tsessionId.setProperty(\"sessionId\", dto.getSessionId());\n\t\tsessionId.setProperty(\"firstName\", dto.getFirstName());\n\t\tsessionId.setProperty(\"lastName\", dto.getLastName());\n\n\t\t//Date for a time reference\n\t\tDate date = new Date();\n\t\tlong currentDateMilliseconds = date.getTime();\n\t\t//Putting the date time reference in as a long in Epoch Time\n\t\tsessionId.setProperty(\"dateCreated\", currentDateMilliseconds);\n\t\t\n\t\t//Insert it into the datastore\n\t\ttry{\n\t\t\tdatastore.put(sessionId);\n\t\t\treturn true;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic void onExpiration(Session session) {\n\t\tlogger.info(\"onExpiration session created:id= {}, begin at {}\", session.getId(), session.getStartTimestamp());\n\t\tlogger.info(\"currentUser={}\",session.getAttribute(Constants.CURRENT_USER));\n\t}", "@Override\r\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session = session;\r\n\t}", "@Override\r\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session = session;\r\n\t}", "DefaultSession createSession(String id);", "public boolean saveSession(String email, String password) {\n\t\tedit.putString(\"email\", email);\n\t\tedit.putString(\"password\", password);\n\t\tedit.putBoolean(\"isLog\", true);\n\n\t\treturn (edit.commit());\n\t}", "void sessionExpired();", "public void startSession(){\n sessionID = client.startSession();\n \n //Get system temporary files path\n String temporaryPath = System.getProperty(\"java.io.tmpdir\").replaceAll(\"\\\\\\\\\",\"/\");\n \n //If temporary file path does not end with /, add it\n if(!temporaryPath.endsWith(\"/\"))\n temporaryPath = temporaryPath + \"/\";\n \n //Create session directory\n sessionDirectory = new File(temporaryPath+sessionID);\n sessionDirectory.mkdir();\n \n }", "@Override\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session = session;\n\t}", "public void setSession(Map<String, Object> session)\r\n\t{\n\t\tthis.session = session;\r\n\t}", "public Session createEmptySession();", "@Override\n public void sessionCreated(HttpSessionEvent event) {\n }", "public void sessionCreated(IoSession session) { }", "@Override\n\tpublic void setSession(Map<String, Object> session)\n\t{\n\t\tthis.session = session;\n\n\t}", "public void sessionCreated(HttpSessionEvent httpSessionEvent) {\r\n System.out.println(\"sessionCreated method has been called in \"\r\n + this.getClass().getName());\r\n\r\n totalUserCount++;\r\n currentUserCount++;\r\n\r\n ctx = httpSessionEvent.getSession().getServletContext();\r\n\r\n ctx.setAttribute(\"totalusers\", totalUserCount);\r\n ctx.setAttribute(\"currentusers\", currentUserCount);\r\n\r\n }", "void add(InternalSession session);", "public void save(Session session) {\n session.save(this);\n ModelMeta meta = ModelMeta.getModelMeta(this.getClass());\n if(meta.isCacheable()){\n RedisTemplate.save(this);\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tprotected void storeInSession(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tServletFileUpload upload = new ServletFileUpload(factory);\n\t\t\n\t\ttry {\n\t\t\tif(ServletFileUpload.isMultipartContent(request)){\n\t\t\t\tList<FileItem> fileItemList = upload.parseRequest(request);\n//\t\t\t\tJsonNode jparams = JacksonUtils.toNode(request.getParameter(\"params\"));\n\t\t\t\tresponse.setContentType(\"text/html\");\n\t\t\t\tfor(FileItem fileItem : fileItemList){\n\t\t\t\t\tif(fileItem.isFormField()){\n//\t\t\t\t\t\tConstants.LOGGER.info(\"FileUploadServlet.storeInSession - file item is form field::: \" + fileItem);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tConstants.LOGGER.info(\"FileUploadServlet.storeImageInSession.NOT formField \" + fileItem);\n//\t\t\t\t\t\tImageFile imageFile = webClientBean.storeImageInUploads(fileItem);\n\t\t\t\t\t\tString id = UUID.randomUUID().toString();\n\t\t\t\t\t\trequest.getSession().setAttribute(id, fileItem);\n\t\t\t\t\t\t\n\t\t\t\t\t\tresponse.getWriter().print(\"<textarea>{target: 'SESSION',id: '\" + id + \"'}</textarea>\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} \n\t\tcatch (Exception exp) {\n\t\t\tConstants.LOGGER.error(exp.getMessage(),exp);\n\t\t\tJacksonUtils.serialize(EntityModel.createErrorMessage(\"FileUpload Exception\", exp.getMessage()), response.getWriter());\n\t\t} \n\t}", "static void startSession() {\n /*if(ZeTarget.isDebuggingOn()){\n Log.d(TAG,\"startSession() called\");\n }*/\n if (!isContextAndApiKeySet(\"startSession()\")) {\n return;\n }\n final long now = System.currentTimeMillis();\n\n runOnLogWorker(new Runnable() {\n @Override\n public void run() {\n logWorker.removeCallbacks(endSessionRunnable);\n long previousEndSessionId = getEndSessionId();\n long lastEndSessionTime = getEndSessionTime();\n if (previousEndSessionId != -1\n && now - lastEndSessionTime < Constants.Z_MIN_TIME_BETWEEN_SESSIONS_MILLIS) {\n DbHelper dbHelper = DbHelper.getDatabaseHelper(context);\n dbHelper.removeEvent(previousEndSessionId);\n }\n //startSession() can be called in every activity by developer, hence upload events and sync datastore\n // only if it is a new session\n //syncToServerIfNeeded(now);\n startNewSessionIfNeeded(now);\n\n openSession();\n\n // Update last event time\n setLastEventTime(now);\n //syncDataStore();\n //uploadEvents();\n\n }\n });\n }", "Session getSession();", "Session getSession();", "@Override\n public void sessionCreated(IoSession session) {\n }", "public static void storeSessionData(String sessionId, Connection conn) {\n\t\tMemberSession ms = MemberSessionFacade.getMemberSession(sessionId);\n\t\tif (ms != null) {\n\t\t\ttry {\n\t\t\t\tif (ms.getMemberId().intValue() != SystemGlobals.getIntValue(ConfigKeys.ANONYMOUS_USER_ID)) {\n\t\t\t\t\tDataAccessDriver.getInstance().newMemberSessionManager().update(ms, conn);\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.warn(\"Error storing member session data: \" + e, e);\n\t\t\t}\n\t\t}\n\t}", "public void setSession(Session session) {\n\t\tthis.session = session;\n\t}", "@Override\n\tpublic void sessionCreated(HttpSessionEvent event) {\n\n\t\tHttpSession session = event.getSession();\n\t\tServletContext application = session.getServletContext();\n\t\tInteger online = (Integer) application.getAttribute(\"online\");\n\t\tif(online != null){\n\t\t\tonline++;\n\t\t}else{\n\t\t\tonline = 1;\n\t\t}\n\t\tapplication.setAttribute(\"online\", online);\n\t}", "@Override\n public Single<SessionEntity> createUserSession() {\n return this.userRepository.getUser().firstOrError().flatMap(userEntity -> {\n if (!userEntity.isGuestUser()) {\n if (userEntity.getSessionId().isEmpty()) {\n return newSession(userEntity);\n }\n else if (userEntity.isHasOpenSession()) {\n return Single.just(new SessionEntity(userEntity.isHasOpenSession(), userEntity.getSessionId()));\n }\n }\n return Single.just(new SessionEntity(false, \"\"));\n });\n }", "public void sessionCreated(final HttpSessionEvent event) {\n }", "public void trackNewSession() {\n if(isTelemetryEnabled()){\n new CreateDataTask(CreateDataTask.DataType.NEW_SESSION).execute();\n }\n }", "@OnOpen\n\tpublic void open(Session session) {\n\t\tsessionHandler.addSession(session);\t\t\n\t}", "@Override\n\t\t\tpublic void handleNewSession() throws Exception {\n\t\t\t\t\n\t\t\t}", "public void setSession (jkt.hms.masters.business.MasSession session) {\n\t\tthis.session = session;\n\t}", "@Override\n\tpublic void saveRequest(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\tif (!justUseSavedRequestOnGet || \"GET\".equals(request.getMethod())) {\n\t\t\tDefaultSavedRequest savedRequest = new DefaultSavedRequest(request,\n\t\t\t\t\tportResolver);\n\n\t\t\tif (createSessionAllowed || request.getSession(false) != null) {\n\t\t\t\t// Store the HTTP request itself. Used by\n\t\t\t\t// AbstractAuthenticationProcessingFilter\n\t\t\t\t// for redirection after successful authentication (SEC-29)\n\t\t\t\trequest.getSession().setAttribute(WebAttributes.SAVED_REQUEST,\n\t\t\t\t\t\tsavedRequest);\n\t\t\t\tlogger.debug(\"DefaultSavedRequest added to Session: \"\n\t\t\t\t\t\t+ savedRequest);\n\t\t\t}\n\t\t}\n\n\t}", "@PostMapping\n @ResponseStatus(HttpStatus.CREATED)\n public Session create(@RequestBody final Session session) {\n return sessionRepository.saveAndFlush(session);\n }", "@Override\n\tpublic void storeSession(IRI sessionID, OutputStream out)\n\t\t\tthrows NonReferenceableSessionException {\n\t\tOntologyStorage store = ONManager.get().getOntologyStore();\n\t\tfor (SessionOntologySpace so : getSessionSpaces(sessionID))\n\t\t\tfor (OWLOntology o : so.getOntologies())\n\t\t\t\tstore.store(o);\n\t}", "public void save() throws ZSessionException {\n\t ZSessionList zList = new ZSessionList();\n zList.upsert(this);\n }", "@Override\n @SessionRequired\n public UserSession newSession(final User user, final boolean isDeviceTrusted) {\n final String seriesId = crypto.nextSessionId();\n final UserSession session = user.getEntityFactory().newByKey(UserSession.class, user, seriesHash(seriesId));\n session.setTrusted(isDeviceTrusted);\n final Date expiryTime = calcExpiryTime(isDeviceTrusted);\n session.setExpiryTime(expiryTime);\n session.setLastAccess(constants.now().toDate());\n\n // authenticator needs to be computed and assigned after the session has been persisted\n // assign authenticator in way not to disturb the entity meta-state\n final UserSession saved = save(session);\n saved.beginInitialising();\n saved.setAuthenticator(mkAuthenticator(saved.getUser(), seriesId /* un-hashed */, saved.getExpiryTime()));\n saved.endInitialising();\n\n // need to cache the established session in associated with the generated authenticator\n cache.put(saved.getAuthenticator().get().toString(), saved);\n\n return saved;\n }", "public void storeOIDCSessionState(String sessionId, OIDCSessionState sessionState) {\n\n OIDCSessionParticipantCacheKey cacheKey = new OIDCSessionParticipantCacheKey();\n cacheKey.setSessionID(sessionId);\n\n OIDCSessionParticipantCacheEntry cacheEntry = new OIDCSessionParticipantCacheEntry();\n cacheEntry.setSessionState(sessionState);\n\n OIDCSessionParticipantCache.getInstance().addToCache(cacheKey, cacheEntry);\n }", "public void createSession(int uid);", "private Single<SessionEntity> newSession(UserEntity userEntity) {\n return this.authApi.getToken().flatMap(requestTokenEntity ->\n this.authApi.validateToken(\n new ValidateTokenEntity(\n userEntity.getTMDBUsername(),\n userEntity.getTMDBPassword(),\n requestTokenEntity.getRequestToken()\n )\n ).doOnError((e)-> {\n updateUser(new SessionEntity(false, \"\"), userEntity);\n createUserSession();\n })\n .flatMap(validatedRequestToken ->\n this.authApi.createSession(validatedRequestToken.getRequestToken()).doOnSuccess(sessionEntity -> {\n if (!sessionEntity.isSuccess()) {\n //TODO - refreshSession few times and return guest session.\n }\n\n updateUser(sessionEntity, userEntity);\n }\n )\n ));\n }", "public void setSession(Map<String, Object> session) {\n\t\t\n\t}", "private void checkSessionState() {\n // get logged in mUser\n mUser = getStoredUser();\n // check if valid\n mIsLoggedIn = (mUser != null && mUser.getId() != null);\n }", "@Before\n public void getTestSession() {\n if (sessionId == null) {\n sessionId = Util.getSessionID();\n }\n }", "private boolean persistSelectedLocationToSession() throws BusinessServiceException\r\n\t{\n\t\tString selectedLocId_str = (String)getParameter(\"existingAddr\");\r\n\t\tif(getModel().hasSelectedLocation(selectedLocId_str) == false)\r\n\t\t{\r\n\t\t\tgetRequest().setAttribute(\"validateLocation\", \"validateLocation\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Set the selected location ID in the model in 2 places\r\n\t\tInteger selectedLocId_int = Integer.parseInt(selectedLocId_str);\r\n\t\tif(selectedLocId_int != null)\r\n\t\t\tgetModel().setSelectedLocationId(selectedLocId_int);\r\n\t\t\r\n\t\tLocationVO selectedLoc=null;\r\n\t\tfor(LocationVO vo : getModel().getLocations())\r\n\t\t{\r\n\t\t\tif(vo.getLocnId().intValue() == selectedLocId_int)\r\n\t\t\t{\r\n\t\t\t\tvo.setDefaultLocn(1);\r\n\t\t\t\tselectedLoc = vo; // Save this for use later\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tvo.setDefaultLocn(0);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Save Selected Location to session\r\n\t\ttry\r\n\t\t{\r\n\t\t\tSSoWSessionFacility.getInstance().evaluateSSOWBeanState(getModel());\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// We need to save some info for the next page Describe and Schedule.\r\n\t\t// Get instance of describeScheduleDTO\r\n\t\tCreateServiceOrderDescribeAndScheduleDTO\r\n\t\t describeScheduleDTO = \r\n\t\t\t\t(CreateServiceOrderDescribeAndScheduleDTO)\r\n\t\t\t\t\t\t\tSSoWSessionFacility.getInstance().getTabDTO(OrderConstants.SSO_DESCRIBE_AND_SCHEDULE_DTO);\r\n\r\n\t\tCreateServiceOrderFindProvidersDTO findProvidersDTO = \r\n\t\t\t(CreateServiceOrderFindProvidersDTO)\r\n\t\t\t\t\t\tSSoWSessionFacility.getInstance().getTabDTO(OrderConstants.SSO_FIND_PROVIDERS_DTO);\r\n\r\n\t\t\r\n //Set location Info into DTO then put back DTO into session\r\n\t\tif(selectedLoc != null && describeScheduleDTO != null)\r\n\t\t{\r\n\t\t\tdescribeScheduleDTO.setLocationName(selectedLoc.getLocName());\r\n\t\t\tdescribeScheduleDTO.setStreet1(selectedLoc.getStreet1());\r\n\t\t\tdescribeScheduleDTO.setStreet2(selectedLoc.getStreet2());\r\n\t\t\tdescribeScheduleDTO.setCity(selectedLoc.getCity());\r\n\t\t\tdescribeScheduleDTO.setStateCd(selectedLoc.getState());\r\n\t\t\tdescribeScheduleDTO.setZip(selectedLoc.getZip());\r\n\t\t\tdescribeScheduleDTO.setFromSelectLocationPage(true);\r\n\t\t\tfindProvidersDTO.setState(selectedLoc.getState());\r\n\t\t\tfindProvidersDTO.setZip(selectedLoc.getZip());\r\n\t\t\r\n\t\t\t// Persist to session\t\t\r\n\t persistDtoToSsoSession(describeScheduleDTO,OrderConstants.SSO_DESCRIBE_AND_SCHEDULE_DTO);\r\n\t persistDtoToSsoSession(findProvidersDTO,OrderConstants.SSO_FIND_PROVIDERS_DTO);\r\n\t\t}\r\n\t\t\r\n\t\t//We also need to put selected location into the Find Providers Page.\r\n\r\n\t\t\r\n\t\treturn true; // success, no validation errors.\r\n\t}", "@Override\n\tpublic void createSession(String customer) {\n\t\t\n\t}", "protected Session getSession() { return session; }", "boolean propagateSession() {\n if (committed && !isDirty()) {\n return true;\n }\n if (getRepositoryBackedSession(false) == null) {\n setPropagateOnCreate(true);\n return false;\n }\n return doPropagateAndStoreIfFirstWrapper();\n }", "private void refreshSession() {\n\t\ttry {\n\t\t\tAuthenticationUtils.endSession();\n\t\t\tAuthenticationUtils.startSession(endpointUser, endpointPassword);\n\t\t} catch(Throwable e) {\n\t\t\tLOG.error(\"Error refreshing session\", e);\n\t\t}\n\t}", "protected boolean putValToSession(HttpSession session, String key, Object val) {\n if (session == null) {\n return false;\n }\n session.setAttribute(key, val);\n return true;\n }", "@Override\n\tpublic void sessionCreated(HttpSessionEvent arg0) {\n\t\tlog.info(\"------ sessionListen init------\");\n\t\tlog.info(arg0.getSession().getId());\n\t}", "private static void startNewSession(final long timestamp) {\n openSession();\n\n sessionId = timestamp;\n //Log.i(\"sessionId\",\"updated at startNewSession()\");\n SharedPreferences preferences = CommonUtils.getSharedPreferences(context);\n preferences.edit().putLong(Constants.Z_PREFKEY_LAST_END_SESSION_ID, sessionId).apply();\n\n logEvent(START_SESSION_EVENT, null, null, timestamp, false);\n logWorker.post(new Runnable() {\n @Override\n public void run() {\n sendEventToServer(START_SESSION_EVENT, timestamp, Constants.Z_START_SESSION_EVENT_LOG_URL, true);\n }\n });\n\n }", "public void addNewSession() {\n //Create an explicit intent for RecordingIntentService\n Intent saveSessionIntent = new Intent(this, RecordingIntentService.class);\n //Set the action of the intent to ACTION_SAVE_SESSION\n saveSessionIntent.setAction(RecordLapTasks.ACTION_SAVE_SESSION);\n\n //add the current session object info to the intent so it can be retrieved\n saveSessionIntent.putExtra(\"session_driver\", mySession.getDriver());\n saveSessionIntent.putExtra(\"session_track\", mySession.getTrackName());\n saveSessionIntent.putExtra(\"session_bestLap\", mySession.getBestLapString());\n saveSessionIntent.putExtra(\"session_laptimes\", mySession.getLaptimesAsString());\n saveSessionIntent.putExtra(\"session_numLaps\", mySession.getNumberOfLaps());\n\n //Call startService and pass the explicit intent\n startService(saveSessionIntent);\n }", "public void setSession(Session session)\n\t{\n\t\tm_Session = session;\n\t}" ]
[ "0.68060213", "0.6534302", "0.650897", "0.64416534", "0.63820744", "0.6355814", "0.63041806", "0.6267394", "0.6232763", "0.6226429", "0.620836", "0.62070054", "0.6202769", "0.61968356", "0.614085", "0.61114347", "0.61110944", "0.61084867", "0.6076495", "0.6052851", "0.60371506", "0.6033277", "0.60302526", "0.6018481", "0.5990044", "0.5984994", "0.5972564", "0.59707147", "0.59584725", "0.5950004", "0.59460616", "0.59419113", "0.59362143", "0.5930737", "0.5909956", "0.5905781", "0.5890027", "0.5890027", "0.588682", "0.58835167", "0.5880549", "0.5875559", "0.5873769", "0.5845018", "0.58414346", "0.58409846", "0.58197194", "0.5817946", "0.5812968", "0.5804429", "0.5802373", "0.5802373", "0.5795769", "0.57922804", "0.57892823", "0.5784468", "0.5769633", "0.5763209", "0.5754866", "0.57416093", "0.57413304", "0.57383853", "0.5737743", "0.5728833", "0.5725435", "0.5724748", "0.5724157", "0.57106304", "0.57106304", "0.57104653", "0.5706321", "0.5705666", "0.5703769", "0.56918025", "0.56905633", "0.5684883", "0.56816566", "0.56811357", "0.5676144", "0.5675637", "0.5663889", "0.56510615", "0.5647139", "0.5646022", "0.5642832", "0.5639206", "0.5631773", "0.5630758", "0.5626727", "0.56258905", "0.5621619", "0.5620584", "0.5611976", "0.56087", "0.5602236", "0.559589", "0.5595636", "0.5583305", "0.5581342", "0.5580616" ]
0.7571156
0
Returns true if session should be propagated on create.
public boolean isPropagateOnCreate() { return propagateOnCreate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean propagateSession() {\n if (committed && !isDirty()) {\n return true;\n }\n if (getRepositoryBackedSession(false) == null) {\n setPropagateOnCreate(true);\n return false;\n }\n return doPropagateAndStoreIfFirstWrapper();\n }", "public boolean isCreate() {\r\n\t\treturn controller.closedByCreate;\r\n\t}", "public boolean isEnsureCleanSession() {\n return ensureCleanSession;\n }", "boolean hasSession();", "protected final boolean isSessionOpen() {\n return sessionTracker.getOpenSession() != null;\n }", "protected boolean shouldValidateSession ()\n {\n return false;\n }", "@Override\n public boolean isSessionAlive() {\n return sessionFactory.getCurrentSession() != null && sessionFactory.getCurrentSession().isOpen();\n }", "public boolean createTransaction() {\n\t\t\treturn false;\n\t\t}", "protected boolean isExposeTransactionAwareSessionFactory() {\n\t\treturn exposeTransactionAwareSessionFactory;\n\t}", "@Override\n\tpublic boolean isNew(String appKey, String sessionID) {\n\t\treturn this.sessionStore.isNew(appKey, sessionID);\n\t}", "@Override\n public boolean isValid() {\n return (connection != null && session != null && session.isOpen());\n }", "public boolean isSessionValid() {\n\t\treturn stateMachine.getCurrent() instanceof SessionValid;\n\t}", "public boolean isSession() {\n\t\treturn config.getBoolean(QuestConfigurationField.SESSION.getKey(), \n\t\t\t\t(boolean) QuestConfigurationField.SESSION.getDefault());\n\t}", "private boolean requiresCreate( EntityInstanceImpl ei )\n {\n // Can't create an entity that wasn't created...\n if ( !ei.isCreated() )\n return false;\n\n // Skip deleted entities; they've been created then deleted so no need to save them.\n if ( ei.isDeleted() )\n return false;\n\n // Check to see if this EI has already been inserted into the DB.\n if ( ei.dbhCreated )\n return false;\n\n EntityDef entityDef = ei.getEntityDef();\n if ( entityDef.isDerivedPath() )\n return false;\n\n // Skip the entity if we don't allow creates.\n if ( ! entityDef.isCreate() )\n return false;\n\n DataRecord dataRecord = entityDef.getDataRecord();\n if ( dataRecord == null )\n return false;\n\n return true;\n }", "public boolean isPersisted() {\n return systemId!=NOT_PERSISTED;\n }", "boolean hasSessionTemplate();", "public boolean isCreateUserInitialized() {\n return createUser_is_initialized; \n }", "public boolean isSetCreate_priv() {\n return this.__isset.create_priv;\n }", "@Override\n\tpublic boolean create(User user) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic HttpSession getSession(boolean create)\r\n\t{\r\n\t\treturn getSession();\r\n\t}", "public boolean isSetCreateId() {\n return this.createId != null;\n }", "public void setCreateSessionAllowed(boolean createSessionAllowed) {\n\t\tthis.createSessionAllowed = createSessionAllowed;\n\t}", "public boolean isNew() {\r\n return getController().isNew();\r\n }", "public static boolean shouldLogin() {\n if (AppPreference.getInstance().getUserLoggedIn() == null ) {\n //|| deltaActive > Constant.SESSION_EXIPRED_TIME) {\n return true;\n }\n\n return false;\n }", "public boolean isExistingUser() {\r\n return isExistingUser;\r\n }", "public boolean isReuseSessionID() {\n return isReuseSessionID;\n }", "public boolean isCleanSession() {\n\t\tboolean enabled = true;\n\t\tString value = options.getProperty(\"Clean-Session\");\n\t\tif(value == null) {\n\t\t\tvalue = options.getProperty(\"clean-session\");\n\t\t}\n\t\tif(value != null) {\n\t\t\tenabled = Boolean.parseBoolean(trimedValue(value));\n\t\t} \n\t\treturn enabled;\n\t}", "public boolean isCreated() {\n\t\treturn this.viewer != null;\n\t}", "public boolean isNewContextEntry()\n {\n return false;\n }", "public boolean hasSession() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "private boolean isInSession()\n {\n return EngagementActivityManager.getInstance().getCurrentActivityAlias() != null;\n }", "public void testHttpSessionEagerlyCreatedWhenDirected()\n throws Exception {\n MockHttpServletRequest request = new MockHttpServletRequest(null, null);\n MockHttpServletResponse response = new MockHttpServletResponse();\n FilterChain chain = new MockFilterChain(null, null, null);\n \n // Prepare filter\n HttpSessionContextIntegrationFilter filter = new HttpSessionContextIntegrationFilter();\n filter.setContext(SecurityContextImpl.class);\n filter.setForceEagerSessionCreation(true); // non-default\n filter.afterPropertiesSet();\n \n // Execute filter\n executeFilterInContainerSimulator(new MockFilterConfig(), filter, request, response, chain);\n \n // Check the session is not null\n assertNotNull(request.getSession(false));\n }", "public boolean save() {\n executeCallbacks(CallbackType.BEFORE_SAVE);\n if (readOnly) throw new ReadOnlyException(getClass().getName() + \" is read only\");\n createOrUpdate();\n executeCallbacks(CallbackType.AFTER_SAVE);\n return true;\n }", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "boolean hasCreateStore();", "public boolean hasSession() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isCreated() {\n\t\treturn mqttClient != null;\n\t}", "@Test\n\tpublic void testIsSession() {\n\t\t\n\t\tclub.CreerSession();\n\t\tassertNotNull(\"Aucune session n'a été pas créée\", club.getSession());\n\t\t\n\t}", "public boolean isCreateUserModified() {\n return createUser_is_modified; \n }", "private boolean validateFBLogin() {\n\t\tSession session = Session.getActiveSession();\n\t\tif (session != null && session.isOpened()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tSession sessionNew = Session.openActiveSessionFromCache(this);\n\n\t\t\tif (sessionNew != null && sessionNew.isOpened()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public static boolean accountAutocreate() {\n\t\treturn getAccountAutocreate().equals(\"yes\");\n\t}", "public boolean onOpenSession() throws java.io.IOException {\n ForwardingClient fwd = manager.getForwardingClient();\r\n\r\n // Now lets setup the forwarding configurations from the profile if\r\n // they dont exist already\r\n pf.setClient(fwd);\r\n\r\n return true;\r\n }", "public Session createSession() {\n\t\treturn this.session;\n\t}", "public boolean isClientsidecreated() {\n return clientsidecreated.get();\n }", "boolean hasAsyncPersistRequest();", "public boolean isSetCreate_user_priv() {\n return this.__isset.create_user_priv;\n }", "@Override\n public Single<SessionEntity> createUserSession() {\n return this.userRepository.getUser().firstOrError().flatMap(userEntity -> {\n if (!userEntity.isGuestUser()) {\n if (userEntity.getSessionId().isEmpty()) {\n return newSession(userEntity);\n }\n else if (userEntity.isHasOpenSession()) {\n return Single.just(new SessionEntity(userEntity.isHasOpenSession(), userEntity.getSessionId()));\n }\n }\n return Single.just(new SessionEntity(false, \"\"));\n });\n }", "public static boolean createSession(String username) {\n\t\tUser user = null;\n\t\tif (Global.Variables.session != null) {\n\t\t\tif (Global.Variables.session.getCurrentUser().getName().equals(username)) {\n\t\t\t\tConsolePrinter.warning(Global.Warnings.ALREADY_CONNECTED);\n\t\t\t} else {\n\t\t\t\tConsolePrinter.warning(Global.Warnings.CANNOT_CONNECT);\n\t\t\t}\n\t\t\treturn false;\n\t\t} else {\n\t\t\tuser = signIn(username);\n\t\t\tif (user == null) {\n\t\t\t\tuser = signUp(username);\n\t\t\t\tGlobal.Variables.session = new Session(user);\n\t\t\t\tGlobal.Variables.registeredUsers.add(user);\n\t\t\t\tUtils.FileUtils.createBlankFile(\n\t\t\t\t\t\tGlobal.Constants.DIRECTORY_LOCATION\n\t\t\t\t\t\t+ username\n\t\t\t\t\t\t);\n\t\t\t\tConsolePrinter.info(Global.Warnings.USER_SIGNED_UP + username);\n\t\t\t} else {\n\t\t\t\tGlobal.Variables.session = new Session(user);\n\t\t\t\tConsolePrinter.info(Global.Warnings.USER_SIGNED_IN + username);\n\t\t\t}\n\t\t\tConsolePrinter.info(Global.Warnings.SESSION_ESTABLISHED);\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean isNew() {\n return _isNew;\n }", "boolean isSetSessionID();", "@Override\n\t\tpublic HttpSession getSession(boolean create) {\n\t\t\treturn null;\n\t\t}", "public boolean getWasCreated(){\n return wasCreated;\n }", "boolean isSessionValid(Object session);", "@Override\n @SessionRequired\n public UserSession newSession(final User user, final boolean isDeviceTrusted) {\n final String seriesId = crypto.nextSessionId();\n final UserSession session = user.getEntityFactory().newByKey(UserSession.class, user, seriesHash(seriesId));\n session.setTrusted(isDeviceTrusted);\n final Date expiryTime = calcExpiryTime(isDeviceTrusted);\n session.setExpiryTime(expiryTime);\n session.setLastAccess(constants.now().toDate());\n\n // authenticator needs to be computed and assigned after the session has been persisted\n // assign authenticator in way not to disturb the entity meta-state\n final UserSession saved = save(session);\n saved.beginInitialising();\n saved.setAuthenticator(mkAuthenticator(saved.getUser(), seriesId /* un-hashed */, saved.getExpiryTime()));\n saved.endInitialising();\n\n // need to cache the established session in associated with the generated authenticator\n cache.put(saved.getAuthenticator().get().toString(), saved);\n\n return saved;\n }", "public boolean hasCreateStore() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "private boolean create() {\r\n\t\tboolean rtn = false;\r\n\t\ttry {\r\n\t\t\tif (_session != null) {\r\n\t\t\t\tSessionMgr.removeSession(_session.getKey());\r\n\t\t\t\t_session = null;\r\n\t\t\t\t_transaction.setSession(_session);\r\n\t\t\t}\r\n\r\n\t\t\tString sentpwd = _where.optString( UsrRequest.PASSWORD, null);\r\n\t\t\tif ((sentpwd == null) || (sentpwd.length() == 0)) {\r\n\t\t\t\tsetError(\"Password missing from login\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString loginname = _where.optString( UsrRequest.LOGINNAME, null);\r\n\t\t\tif ((sentpwd == null) || (sentpwd.length() == 0)) {\r\n\t\t\t\tsetError(\"Loginname missing from login\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\t\t\t\r\n\r\n\t\t\tEntityMap emap = EntityMapMgr.getEMap(USR);\r\n\t\t\t_data.put(COLUMNS, FIELDLIST);\r\n\t\t\tResultSet rs = _dbi.readRecords(emap, _data);\r\n\t\t\tif (rs == null) {\r\n\t\t\t\tsetError(\"User login failed... Invalid usr id ????\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tthis._usrid = rs.getLong(ID);\r\n\t\t\t\tString firstname = rs.getString(UsrRequest.FIRSTNAME);\r\n\t\t\t\tString lastname = rs.getString(UsrRequest.LASTNAME);\r\n\t\t\t\tString str_salt = rs.getString(UsrRequest.SALT);\r\n\t\t\t\tString email = rs.getString(UsrRequest.EMAIL);\r\n\r\n\t\t\t\tint code = validate(\r\n\t\t\t\t\t\tthis._usrid, \r\n\t\t\t\t\t\trs.getString(UsrRequest.DIGEST), \r\n\t\t\t\t\t\tEncryptUtil.getPasswordDigest(sentpwd, str_salt), \r\n\t\t\t\t\t\trs.getInt(\"statusid\"), \r\n\t\t\t\t\t\trs.getInt(\"attempts\"), \r\n\t\t\t\t\t\trs.getTimestamp(\"lastattempt\"));\r\n\t\t\t\trs.close();\r\n\t\t\t\tif (code != NORMAL) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tArrayList<Integer> ugroups = AuthorityMgr.getUGroups(_dbi, this._usrid);\r\n\t\t\t\tif (_session == null) {\r\n\t\t\t\t\t_session = SessionMgr.createSession(this._usrid, ugroups);\r\n\t\t\t\t}\r\n\t\t\t\t_session.setLoginname(loginname);\r\n\t\t\t\t_session.setData(UsrRequest.EMAIL, email);\r\n\t\t\t\t_transaction.setSession(_session);\r\n\r\n\t\t\t\t_jwriter.openObject(DATA);\r\n\t\t\t\t_jwriter.writePair(LOGIN, true);\r\n\t\t\t\t_jwriter.writePair(\"usrid\", this._usrid);\r\n\t\t\t\t_jwriter.writePair(\"firstname\", firstname);\r\n\t\t\t\t_jwriter.writePair(\"lastname\", lastname);\r\n\t\t\t\t_jwriter.writePair(\"sessionid\", _session.getSessionID());\r\n\t\t\t\t_jwriter.writePair(\"permissions\", AuthorityMgr.convertPermissions(ugroups));\r\n\t\t\t\t\r\n\t\t\t\t_jwriter.writePair(\"storageloc\", StorageMgr.instance().usableAsJson());\r\n//\t\t\t\t_jwriter.writePair(\"serverconfig\", ServerconfigRequest.info(_conn));\r\n\t\t\t\t_dbi.read(\"usrconfig\", EntityMapMgr.getEMap(\"usrconfig\"), JsonUtil.getDataWhere(this._usrid));\r\n\r\n\t\t\t\t_jwriter.closeObject();\r\n\t\t\t\trtn = true;\r\n\t\t\t} else {\r\n\t\t\t\t// user does not exists\r\n\t\t\t\tsetErrorNoLog(\"Login failed\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tsetError(e);\r\n\t\t}\r\n\t\treturn rtn;\r\n\t}", "boolean hasReplicateRequest();", "public boolean isSetCreatetime() {\n return this.createtime != null;\n }", "public boolean inAnySession() {\n\t\treturn getSession(player).isPresent();\n\t}", "public boolean hasCreateStore() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "protected boolean isPassenger() {\n\t\tif (request.getSession().getAttribute(\"type\") == null)\n\t\t\treturn false;\n\t\treturn request.getSession().getAttribute(\"type\").equals(\"passenger\");\n\t}", "public Boolean isSuccess()\n\t{\n\t\treturn isSuccess( getSession().getSessionContext() );\n\t}", "@java.lang.Override\n public boolean hasReplicateRequest() {\n return replicateRequest_ != null;\n }", "protected boolean _isEventForSuccessfulCreate(final PersistenceOperationOKEvent opEvent) {\n\t\tPersistenceOperationOK opResult = opEvent.getResultAsOperationOK();\n\t\tboolean handle = _crudOperationOKEventFilter.hasTobeHandled(opEvent);\n\t\tif (!handle) return false;\n\t\n\t\treturn ((opResult.isCRUDOK()) \n\t\t\t && (opResult.as(CRUDOK.class).hasBeenCreated()));\t\t\t\t\t\t\t\t\t\t\t\t// it's a create event\n\t}", "public Session getSession(boolean create) throws LeaseException {\n return entity.getSession(create);\n }", "public Boolean persistent();", "@Override\n\tpublic Session createSession(SessionBasicInfo sessionBasicInfo) {\n\t\tSession session = sessionStore.createSession( sessionBasicInfo);\n\t\tif(session == null)\n\t\t\treturn null;\n\t\tsession._setSessionStore(this);\n\t\tsession.putNewStatus();\n\t\t\n\t\treturn session;\n\t}", "public boolean isNew(){\n return isNew;\n }", "@Override\n\tpublic boolean addNewUser() {\n\t\treturn false;\n\t}", "private boolean update() {\r\n\t\ttry {\r\n\t\t\tif (_session != null) {\r\n\t\t\t\tlong usrid = _session.getUsrID();\r\n\t\t\t\tJSONObject result = new JSONObject();\r\n\t\t\t\tresult.put(\"usrid\", usrid);\r\n\t\t\t\taddData(result);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tsetError(e);\r\n\t\t}\r\n\t\tsetError(Transaction.NO_SESSION_ERROR);\r\n\t\treturn false;\r\n\t}", "boolean hasClientSessionID();", "private boolean isUserExplicitlyLoggedIn() {\n // User is explicitly logged in, if his securityStatus is more than or equal to security status login.\n String securityStatusPropertyName = getStorePropertyManager().getSecurityStatusPropertyName();\n int securityStatus = ((Integer) getProfile().getPropertyValue(securityStatusPropertyName)).intValue();\n return securityStatus >= getStorePropertyManager().getSecurityStatusLogin();\n }", "public boolean isNewRecord() {\n return newRecord;\n }", "@Override\n\tpublic boolean createApplicant(ApplicantEntity applicantEntity) {\n\t\tentityManager.persist(applicantEntity);\n\t\treturn false;\n\t}", "@java.lang.Override\n public boolean hasCreatedAt() {\n return createdAt_ != null;\n }", "@java.lang.Override\n public boolean hasCreatedAt() {\n return createdAt_ != null;\n }", "protected boolean save() {\r\n\t\tboolean saved=true;\r\n\t\tif(validated()){\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tsaved=false;\r\n\t\t}\r\n\t\treturn saved;\r\n\t}", "@Override\n public boolean isTransActionAlive() {\n Transaction transaction = getTransaction();\n return transaction != null && transaction.isActive();\n }", "@Override\n public boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user) {\n return true;\n }", "@Override\n protected boolean tryAlreadyLoginOrRememberMe(LoginHandlingResource resource) {\n if (super.tryAlreadyLoginOrRememberMe(resource)) { // if hybrid with session\n return true;\n }\n return requestManager.getHeader(\"x-authorization\").flatMap(token -> {\n return findByAuthToken(token).map(member -> {\n syncCheckLoginSessionIfNeeds(createUserBean(member)); // sometimes synchronize with database\n saveLoginInfoToSession(member); // if hybrid with session\n return true;\n });\n }).orElse(false);\n }", "public boolean isNew() {\r\n return id == null ? true : false;\r\n }", "@Override\n public boolean isValid() {\n return isAdded() && !isDetached();\n }", "public boolean isSetCreated()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CREATED$0) != 0;\n }\n }", "@Override\r\n public boolean create(Person person) {\n return false;\r\n }", "public boolean isNew() {\r\n\t\treturn (this.id == null);\r\n\t}", "public boolean createEvent(@NonNull final NodeId otherId) {\n Objects.requireNonNull(otherId, \"the otherId must not be null\");\n\n if (disabled) {\n return false;\n }\n\n final EventCreationRuleResponse basicRulesResponse = eventCreationRules.shouldCreateEvent();\n if (basicRulesResponse == EventCreationRuleResponse.DONT_CREATE) {\n return false;\n }\n final GossipEvent selfParent = mostRecentEventById.apply(selfId);\n final GossipEvent otherParent = mostRecentEventById.apply(otherId);\n // if the basic rules returned a CREATE, this overrides all subsequent rules, so we don't check the parent based\n // rules\n if (basicRulesResponse != EventCreationRuleResponse.CREATE\n && eventCreationRules.shouldCreateEvent(selfParent, otherParent)\n == EventCreationRuleResponse.DONT_CREATE) {\n return false;\n }\n\n handleNewEvent(buildEvent(selfParent, otherParent));\n return true;\n }", "public boolean doSave() {\n return true;\n }", "public boolean hasCreatedAt() {\n return createdAt_ != null;\n }", "public boolean hasCreatedAt() {\n return createdAt_ != null;\n }", "public boolean isNew() {\r\n\t\treturn (this.getId() == null);\r\n\t}", "public boolean canSave()\n {\n return true;\n }", "public boolean canSave()\n {\n return true;\n }", "public boolean save() {\n\t\tboolean isCreate = false;\n\t\tif(!validate() || !beforeSave(isCreate)){\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\tupdate();\n\t\t} catch (SQLException e) {\n\t\t\tnew Event(Event.getLeafLevelClassName(this), \"save\",\n\t\t\t\t\t\"SQL error while saving: \" + e.toString(), Event.ERROR);\n\t\t\treturn false;\n\t\t}\n\t\tthis.setPersisted(true);\n\t\tafterSave(isCreate);\n\t\treturn true;\n\t}", "public boolean isSevered() {\n\t\treturn isSevered;\n\t}", "public Boolean getIsNew() {\n return isNew;\n }", "public boolean initiator() {\n return initiator;\n }", "public boolean isSetCreateDate() {\n return this.createDate != null;\n }", "public boolean isSetCreateDate() {\n return this.createDate != null;\n }" ]
[ "0.80052483", "0.6435621", "0.6263163", "0.6201359", "0.6134773", "0.6045244", "0.60354006", "0.60073584", "0.5947773", "0.5946357", "0.59416217", "0.5938521", "0.59164685", "0.5844818", "0.58243096", "0.58176214", "0.5816752", "0.5791265", "0.57180387", "0.57166", "0.5699291", "0.56520295", "0.56424296", "0.5587244", "0.5575488", "0.5563459", "0.5557198", "0.5555827", "0.5540612", "0.5536659", "0.5528051", "0.55120516", "0.5510597", "0.5496872", "0.5496872", "0.5496872", "0.54809356", "0.5477218", "0.5456667", "0.5455566", "0.54424626", "0.5437196", "0.5433217", "0.5430919", "0.54146147", "0.54063773", "0.53938645", "0.5374832", "0.53672504", "0.5365581", "0.5356608", "0.53421795", "0.5327246", "0.53228873", "0.53222877", "0.53204703", "0.53106064", "0.53097486", "0.5299973", "0.5282393", "0.5280869", "0.5276939", "0.52706665", "0.52551234", "0.52547485", "0.52530545", "0.52464217", "0.52455026", "0.5241862", "0.52381736", "0.52276635", "0.52181906", "0.52151525", "0.52031606", "0.5199607", "0.51995355", "0.51951563", "0.51951563", "0.51931083", "0.51893884", "0.518188", "0.5178768", "0.5176301", "0.5175502", "0.51746154", "0.51589197", "0.5156689", "0.5154454", "0.5149505", "0.51483643", "0.51460373", "0.51330966", "0.5122978", "0.5122978", "0.511802", "0.5105084", "0.51047426", "0.5095015", "0.50905067", "0.50905067" ]
0.6523812
1
Called to encode URL. This is used when URL session propagation is used.
public String encodeURL(String url) { return manager.encodeUrl(this, url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String encodeURL(String url) {\n return this._getHttpServletResponse().encodeURL(url);\n }", "public abstract String encodeURL(CharSequence url);", "@Override\n\tpublic CharSequence encodeURL(CharSequence url)\n\t{\n\t\tif (httpServletResponse != null && url != null)\n\t\t{\n\t\t\treturn httpServletResponse.encodeURL(url.toString());\n\t\t}\n\t\treturn url;\n\t}", "@Override\n\tpublic String encodeURL(String url) {\n\t\treturn null;\n\t}", "@Override\n\tpublic String encodeUrl(String url) {\n\t\treturn null;\n\t}", "public final String urlEncode() {\n\t\treturn urlEncode(UTF_8);\n\t}", "@Override\n public String encodeRedirectURL(String url) {\n return this._getHttpServletResponse().encodeRedirectURL(url);\n }", "public static String encodeURL(String url) {\n\n\t\tint len = url.length();\n\n\t\t// add a little (6.25%) to leave room for some expansion during encoding\n\t\tlen += len >>> 4;\n\n\t\treturn appendURL(new StringBuffer(len), url).toString();\n\t}", "@Override\n\tpublic String encodeRedirectURL(String url) {\n\t\treturn null;\n\t}", "@Override\n protected final String encode(String unencoded) {\n try {\n return StringUtils.isBlank(unencoded) ? \"\" : URLEncoder.encode(unencoded, \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n java.util.logging.Logger.getLogger(PostRedirectGetWithCookiesFormHelperImpl.class.getName()).log(Level.SEVERE, null, ex);\n return unencoded;\n }\n }", "public String encodeURL(String s) {\n\t\treturn null;\n\t}", "public final String urlEncode(String encoding) {\n\n\t\tfinal StringBuilder out = new StringBuilder();\n\n\t\ttry {\n\t\t\turlEncode(out, encoding);\n\t\t} catch (IOException e) {\n\t\t\tnew IllegalStateException(e);// Should never happen.\n\t\t}\n\n\t\treturn out.toString();\n\t}", "public String encodeUrl(String s) {\n\t\treturn null;\n\t}", "@Override\n public String encodeUrl(String arg0) {\n return null;\n }", "@Override\n public String encodeURL(String arg0) {\n return null;\n }", "@Override\n\tpublic String encodeRedirectUrl(String url) {\n\t\treturn null;\n\t}", "private static String encodeurl(String url) \n { \n\n try { \n String prevURL=\"\"; \n String decodeURL=url; \n while(!prevURL.equals(decodeURL)) \n { \n prevURL=decodeURL; \n decodeURL=URLDecoder.decode( decodeURL, \"UTF-8\" ); \n } \n return decodeURL.replace('\\\\', '/'); \n } catch (UnsupportedEncodingException e) { \n return \"Issue while decoding\" +e.getMessage(); \n } \n }", "@Override\n @SuppressWarnings(\"all\")\n public String encodeUrl(String arg0) {\n\n return null;\n }", "@Override\n protected boolean shouldEncodeUrls() {\n return isShouldEncodeUrls();\n }", "private static String urlEncode(String toEncode) throws UnsupportedEncodingException{\r\n\t\treturn URLEncoder.encode(toEncode, \"UTF-8\");\r\n\t}", "public String encode(String longUrl) {\n\t int key = longUrl.hashCode();\n\t map.put(key, longUrl);\n\t return Integer.toString(key);\n\t }", "public String encodeURL(String input)\n\t{\n\t\tStringBuilder encodedString = new StringBuilder();\n\t\tfor(int i = 0; i < input.length(); i++)\n\t\t{\n\t\t\tchar c = input.charAt(i);\n\t\t\tboolean notEncoded = Character.isLetterOrDigit(c);\n\t\t\tif (notEncoded)\n\t\t\t\tencodedString.append(c);\n\t\t\telse\n\t\t\t{\n\t\t\t\tint value = (int) c;\n\t\t\t\tString hex = Integer.toHexString(value);\n\t\t\t\tencodedString.append(\"%\" + hex.toUpperCase());\n\t\t\t}\n\t\t}\n\t\treturn encodedString.toString();\n\t}", "public String encodeRedirectURL(String s) {\n\t\treturn null;\n\t}", "public String encodeToUrlString() throws IOException {\n return encodeWritable(this);\n }", "private String encode(String value) {\n String encoded = \"\";\n try {\n encoded = URLEncoder.encode(value, \"UTF-8\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n String sb = \"\";\n char focus;\n for (int i = 0; i < encoded.length(); i++) {\n focus = encoded.charAt(i);\n if (focus == '*') {\n sb += \"%2A\";\n } else if (focus == '+') {\n sb += \"%20\";\n } else if (focus == '%' && i + 1 < encoded.length() && encoded.charAt(i + 1) == '7' && encoded.charAt(i + 2) == 'E') {\n sb += '~';\n i += 2;\n } else {\n sb += focus;\n }\n }\n return sb.toString();\n }", "public String encodeRedirectUrl(String s) {\n\t\treturn null;\n\t}", "private static String encodeURI(String url) {\n\t\tStringBuffer uri = new StringBuffer(url.length());\n\t\tint length = url.length();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tchar c = url.charAt(i);\n\n\t\t\tswitch (c) {\n\t\t\t\tcase '!':\n\t\t\t\tcase '#':\n\t\t\t\tcase '$':\n\t\t\t\tcase '%':\n\t\t\t\tcase '&':\n\t\t\t\tcase '\\'':\n\t\t\t\tcase '(':\n\t\t\t\tcase ')':\n\t\t\t\tcase '*':\n\t\t\t\tcase '+':\n\t\t\t\tcase ',':\n\t\t\t\tcase '-':\n\t\t\t\tcase '.':\n\t\t\t\tcase '/':\n\t\t\t\tcase '0':\n\t\t\t\tcase '1':\n\t\t\t\tcase '2':\n\t\t\t\tcase '3':\n\t\t\t\tcase '4':\n\t\t\t\tcase '5':\n\t\t\t\tcase '6':\n\t\t\t\tcase '7':\n\t\t\t\tcase '8':\n\t\t\t\tcase '9':\n\t\t\t\tcase ':':\n\t\t\t\tcase ';':\n\t\t\t\tcase '=':\n\t\t\t\tcase '?':\n\t\t\t\tcase '@':\n\t\t\t\tcase 'A':\n\t\t\t\tcase 'B':\n\t\t\t\tcase 'C':\n\t\t\t\tcase 'D':\n\t\t\t\tcase 'E':\n\t\t\t\tcase 'F':\n\t\t\t\tcase 'G':\n\t\t\t\tcase 'H':\n\t\t\t\tcase 'I':\n\t\t\t\tcase 'J':\n\t\t\t\tcase 'K':\n\t\t\t\tcase 'L':\n\t\t\t\tcase 'M':\n\t\t\t\tcase 'N':\n\t\t\t\tcase 'O':\n\t\t\t\tcase 'P':\n\t\t\t\tcase 'Q':\n\t\t\t\tcase 'R':\n\t\t\t\tcase 'S':\n\t\t\t\tcase 'T':\n\t\t\t\tcase 'U':\n\t\t\t\tcase 'V':\n\t\t\t\tcase 'W':\n\t\t\t\tcase 'X':\n\t\t\t\tcase 'Y':\n\t\t\t\tcase 'Z':\n\t\t\t\tcase '[':\n\t\t\t\tcase ']':\n\t\t\t\tcase '_':\n\t\t\t\tcase 'a':\n\t\t\t\tcase 'b':\n\t\t\t\tcase 'c':\n\t\t\t\tcase 'd':\n\t\t\t\tcase 'e':\n\t\t\t\tcase 'f':\n\t\t\t\tcase 'g':\n\t\t\t\tcase 'h':\n\t\t\t\tcase 'i':\n\t\t\t\tcase 'j':\n\t\t\t\tcase 'k':\n\t\t\t\tcase 'l':\n\t\t\t\tcase 'm':\n\t\t\t\tcase 'n':\n\t\t\t\tcase 'o':\n\t\t\t\tcase 'p':\n\t\t\t\tcase 'q':\n\t\t\t\tcase 'r':\n\t\t\t\tcase 's':\n\t\t\t\tcase 't':\n\t\t\t\tcase 'u':\n\t\t\t\tcase 'v':\n\t\t\t\tcase 'w':\n\t\t\t\tcase 'x':\n\t\t\t\tcase 'y':\n\t\t\t\tcase 'z':\n\t\t\t\tcase '~':\n\t\t\t\t\turi.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tStringBuffer result = new StringBuffer(3);\n\t\t\t\t\tString s = String.valueOf(c);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbyte[] data = s.getBytes(\"UTF8\");\n\t\t\t\t\t\tfor (int j = 0; j < data.length; j++) {\n\t\t\t\t\t\t\tresult.append('%');\n\t\t\t\t\t\t\tString hex = Integer.toHexString(data[j]);\n\t\t\t\t\t\t\tresult.append(hex.substring(hex.length() - 2));\n\t\t\t\t\t\t}\n\t\t\t\t\t\turi.append(result.toString());\n\t\t\t\t\t} catch (UnsupportedEncodingException ex) {\n\t\t\t\t\t\t// should never happen\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn uri.toString();\n\t}", "@Override\n public String encodeRedirectURL(String arg0) {\n return null;\n }", "public String encode(String longUrl) {\n if (longToShort.containsKey(longUrl)) {\n return longToShort.get(longUrl);\n }\n String encode = intToBase62(longUrl.hashCode());\n List<String> list;\n if (shortToLong.containsKey(encode)) {\n list = shortToLong.get(encode);\n } else {\n list = new ArrayList<>();\n shortToLong.put(encode, list);\n }\n encode += SEPERATE + list.size();\n list.add(longUrl);\n longToShort.put(longUrl, encode);\n return PREFIX + encode;\n }", "public abstract BridgeURL encodeBookmarkableURL(String baseURL, Map<String, List<String>> parameters);", "public static String encodeURL(String string) {\n\t\treturn Utils.encodeURL(string);\n\t}", "@Override\n public String encodeRedirectUrl(String arg0) {\n return null;\n }", "static private String ToUrlEncoded(String word) {\n\t\tString urlStr = null;\n\t\ttry {\n\t\t\turlStr = URLEncoder.encode(word,CharSet);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn urlStr;\n\t}", "private String encodeURILikeJavascript(String s) {\n log.info(\"Entering encodeURILikeJavascript\");\n String result = null;\n\n try {\n result = URLEncoder.encode(s, \"UTF-8\")\n .replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%7E\", \"~\");\n } catch (UnsupportedEncodingException e) {\n result = s;\n }\n\n return result;\n }", "private String urlEncode(String str) {\n String charset = StandardCharsets.UTF_8.name();\n try {\n return URLEncoder.encode(str, charset);\n } catch (UnsupportedEncodingException e) {\n JrawUtils.logger().error(\"Unsupported charset: \" + charset);\n return null;\n }\n }", "public String encode(String longUrl) {\n String key = \"\"+longUrl.hashCode();\n map.put(key, longUrl);\n return key;\n }", "public static String urlEncode(String inText)\n {\n try\n {\n return URLEncoder.encode(inText, \"UTF-8\");\n }\n catch(java.io.UnsupportedEncodingException e)\n {\n Log.error(\"invalid encoding for url encoding: \" + e);\n\n return \"error\";\n }\n }", "public String toUrlSafe() {\n// try {\n //todo: key encoder\n return Base64.getEncoder().encodeToString(new Gson().toJson(this).getBytes());\n// return URLEncoder.encode(\"\", UTF_8.name());\n// return URLEncoder.encode(TextFormat.printToString(toPb()), UTF_8.name());\n// } catch (UnsupportedEncodingException e) {\n// throw new IllegalStateException(\"Unexpected encoding exception\", e);\n// }\n }", "public String encode(String longUrl) {\n\n String shortUrl = getShortUrl();\n\n if(shortToLongUrl.containsKey(shortUrl)){\n shortUrl = getShortUrl();\n }\n\n shortToLongUrl.put(shortUrl, longUrl);\n return \"http://tinyurl.com/\" + shortUrl;\n }", "protected native String encodeURIComponent(String text) /*-{\r\n\t\treturn encodeURIComponent(text);\r\n\t}-*/;", "@Override\n @SuppressWarnings({ \"all\", \"deprecation\" })\n public String encodeRedirectUrl(String arg0) {\n\n return null;\n }", "public String encode(String longUrl) {\n String key = \"\"+map.size();\n map.put(key, longUrl);\n return key;\n }", "@Test\n\tpublic void testUrlEncode_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public String encode(String uri) {\n return uri;\n }", "private String encodeValue(final String dirtyValue) {\n String cleanValue = \"\";\n\n try {\n cleanValue = URLEncoder.encode(dirtyValue, StandardCharsets.UTF_8.name())\n .replace(\"+\", \"%20\");\n } catch (final UnsupportedEncodingException e) {\n }\n\n return cleanValue;\n }", "public String encode(String longUrl) {\n String key = \"\";\n do {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 6; i++) {\n int r = rand.nextInt(charSet.length());\n sb.append(charSet.charAt(r));\n }\n key = sb.toString();\n } while (map.containsKey(key));\n \n map.put(BASE_HOST + key, longUrl);\n return BASE_HOST + key;\n }", "public static String encodeQuery(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n return retString;\n }", "private String encodeUri(String uri) {\n\t\t\tString newUri = \"\";\n\t\t\tStringTokenizer st = new StringTokenizer(uri, \"/ \", true);\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tif (\"/\".equals(tok)) {\n\t\t\t\t\tnewUri += \"/\";\n\t\t\t\t} else if (\" \".equals(tok)) {\n\t\t\t\t\tnewUri += \"%20\";\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnewUri += URLEncoder.encode(tok, \"UTF-8\");\n\t\t\t\t\t} catch (UnsupportedEncodingException ignored) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn newUri;\n\t\t}", "public static String encodeUrl(String base, String parentCode, String code, String targetCode, String token) {\n\t\t/**\n\t\t * A Function for Base64 encoding urls\n\t\t **/\n\n\t\t// Encode Parent and Code\n\t\tString encodedParentCode = new String(Base64.getEncoder().encode(parentCode.getBytes()));\n\t\tString encodedCode = new String(Base64.getEncoder().encode(code.getBytes()));\n\t\tString url = base + \"/\" + encodedParentCode + \"/\" + encodedCode;\n\n\t\t// Add encoded targetCode if not null\n\t\tif (targetCode != null) {\n\t\t\tString encodedTargetCode = new String(Base64.getEncoder().encode(targetCode.getBytes()));\n\t\t\turl = url + \"/\" + encodedTargetCode;\n\t\t}\n\n\t\t// Add access token if not null\n\t\tif (token != null) {\n\t\t\turl = url +\"?token=\" + token;\n\t\t}\n\t\treturn url;\n\t}", "@Test\n\tpublic void testUrlEncode_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public static String encode(String toEncode)\n {\n return com.github.terefang.jldap.ldap.LDAPUrl.encode( toEncode);\n }", "public static String encode(String s) {\n // return java.net.URLEncoder.encode(s);\n /*\n ** The only encoded chars are \"<>%=/\", chars < space and chars >= 127\n ** (including cr/lf, ...)\n ** A leading and/or trailing space is also encoded, all others are\n ** left alone\n **\n ** Encoding is %dd where dd are hex digits for the hex value encode\n **\n ** Check if needs encoding first, if not, simply return original string\n */\n char arr[] = s.toCharArray();\n int len = arr.length;\n for(int i=0; i < len; i++) {\n char ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n StringBuffer sb = new StringBuffer();\n for(i=0; i < len; i++) {\n ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n byte b = (byte)arr[i];\n sb.append('%');\n char c = Character.forDigit((b >> 4) & 0xf, 16);\n sb.append(c);\n c = Character.forDigit(b & 0xf, 16);\n sb.append(c);\n } else {\n sb.append(arr[i]);\n }\n }\n s = sb.toString();\n break;\n }\n }\n return s;\n }", "@Test\n\tpublic void testUrlEncode_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private static String urlEncodeParameter(String parameter) throws UnsupportedEncodingException{\r\n\t\tint equal = parameter.indexOf(\"=\");\r\n\t\treturn urlEncode(parameter.substring(0, equal))+\"=\"+urlEncode(parameter.substring(equal+1));\r\n\t}", "@Test(expected = java.io.UnsupportedEncodingException.class)\n\tpublic void testUrlEncode_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public String encode(String longUrl) {\n while(map.containsKey(key)){\n key = r.nextInt(Integer.MAX_VALUE);//直到找到没有用过的key\n }\n map.put(key, longUrl);\n return \"http://tinyurl.com/\" + key;\n }", "public String encode(String longUrl) {\n\n list.add(longUrl);\n\n return String.valueOf(list.size());\n\n }", "public static String urlEncode(String str) {\n try {\n return URLEncoder.encode(notNull(\"str\", str), \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n return Exceptions.chuck(ex);\n }\n }", "public String encode(String longUrl) {\n if (urlToKey.containsKey(longUrl)) {\n return BASE_HOST + urlToKey.get(longUrl);\n }\n\n String key = null;\n do {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 6; i++) {\n int r = (int)(Math.random() * SEED.length());\n sb.append(SEED.charAt(r));\n }\n key = sb.toString();\n } while (keyToUrl.containsKey(key));\n\n keyToUrl.put(key, longUrl);\n urlToKey.put(longUrl, key);\n return BASE_HOST + key;\n }", "public String encode(String longUrl) {\n StringBuilder sb = new StringBuilder();\n while (sb.length() < keyLength || shortToLong.containsKey(sb.toString())) {\n sb = new StringBuilder();\n for (int i = 0; i < keyLength; i++) {\n sb.append( alphabet.charAt( (int) Math.floor(Math.random()*alphabet.length()) ) );\n }\n }\n String key = sb.toString();\n longToShort.put(longUrl, key);\n shortToLong.put(key, longUrl);\n return \"htpp://tinyurl.com/\" + key;\n }", "public byte[] encode(byte[] bytes) {\n/* 199 */ return encodeUrl(WWW_FORM_URL_SAFE, bytes);\n/* */ }", "private String URLEncode (String sStr) {\r\n if (sStr==null) return null;\r\n\r\n int iLen = sStr.length();\r\n StringBuffer sEscaped = new StringBuffer(iLen+100);\r\n char c;\r\n for (int p=0; p<iLen; p++) {\r\n c = sStr.charAt(p);\r\n switch (c) {\r\n case ' ':\r\n sEscaped.append(\"%20\");\r\n break;\r\n case '/':\r\n sEscaped.append(\"%2F\");\r\n break;\r\n case '\"':\r\n sEscaped.append(\"%22\");\r\n break;\r\n case '#':\r\n sEscaped.append(\"%23\");\r\n break;\r\n case '%':\r\n sEscaped.append(\"%25\");\r\n break;\r\n case '&':\r\n sEscaped.append(\"%26\");\r\n break;\r\n case (char)39:\r\n sEscaped.append(\"%27\");\r\n break;\r\n case '+':\r\n sEscaped.append(\"%2B\");\r\n break;\r\n case ',':\r\n sEscaped.append(\"%2C\");\r\n break;\r\n case '=':\r\n sEscaped.append(\"%3D\");\r\n break;\r\n case '?':\r\n sEscaped.append(\"%3F\");\r\n break;\r\n case 'á':\r\n sEscaped.append(\"%E1\");\r\n break;\r\n case 'é':\r\n sEscaped.append(\"%E9\");\r\n break;\r\n case 'í':\r\n sEscaped.append(\"%ED\");\r\n break;\r\n case 'ó':\r\n sEscaped.append(\"%F3\");\r\n break;\r\n case 'ú':\r\n sEscaped.append(\"%FA\");\r\n break;\r\n case 'Á':\r\n sEscaped.append(\"%C1\");\r\n break;\r\n case 'É':\r\n sEscaped.append(\"%C9\");\r\n break;\r\n case 'Í':\r\n sEscaped.append(\"%CD\");\r\n break;\r\n case 'Ó':\r\n sEscaped.append(\"%D3\");\r\n break;\r\n case 'Ú':\r\n sEscaped.append(\"%DA\");\r\n break;\r\n case 'à':\r\n sEscaped.append(\"%E0\");\r\n break;\r\n case 'è':\r\n sEscaped.append(\"%E8\");\r\n break;\r\n case 'ì':\r\n sEscaped.append(\"%EC\");\r\n break;\r\n case 'ò':\r\n sEscaped.append(\"%F2\");\r\n break;\r\n case 'ù':\r\n sEscaped.append(\"%F9\");\r\n break;\r\n case 'À':\r\n sEscaped.append(\"%C0\");\r\n break;\r\n case 'È':\r\n sEscaped.append(\"%C8\");\r\n break;\r\n case 'Ì':\r\n sEscaped.append(\"%CC\");\r\n break;\r\n case 'Ò':\r\n sEscaped.append(\"%D2\");\r\n break;\r\n case 'Ù':\r\n sEscaped.append(\"%D9\");\r\n break;\r\n case 'ñ':\r\n sEscaped.append(\"%F1\");\r\n break;\r\n case 'Ñ':\r\n sEscaped.append(\"%D1\");\r\n break;\r\n case 'ç':\r\n sEscaped.append(\"%E7\");\r\n break;\r\n case 'Ç':\r\n sEscaped.append(\"%C7\");\r\n break;\r\n case 'ô':\r\n sEscaped.append(\"%F4\");\r\n break;\r\n case 'Ô':\r\n sEscaped.append(\"%D4\");\r\n break;\r\n case 'ö':\r\n sEscaped.append(\"%F6\");\r\n break;\r\n case 'Ö':\r\n sEscaped.append(\"%D6\");\r\n break;\r\n case '`':\r\n sEscaped.append(\"%60\");\r\n break;\r\n case '¨':\r\n sEscaped.append(\"%A8\");\r\n break;\r\n default:\r\n sEscaped.append(c);\r\n break;\r\n }\r\n } // next\r\n\r\n return sEscaped.toString();\r\n }", "public String encode(String longUrl) {\n while (!url2code.containsKey(longUrl)) {\n // generate code\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 6; i++) {\n sb.append(alphabet.charAt(rand.nextInt(62)));\n }\n // put code-url pair\n String code = sb.toString();\n if (!code2url.containsKey(code)) {\n code2url.put(code, longUrl);\n url2code.put(longUrl, code);\n }\n }\n\n return url2code.get(longUrl);\n }", "public static String encodeQueryValue(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n retString = replaceString(retString, \"&\", \"%26\");\n retString = replaceString(retString, \"?\", \"%3F\");\n retString = replaceString(retString, \"=\", \"%3D\");\n return retString;\n }", "public abstract String toURLParam();", "public static String percentEncode(String s) {\r\n\t\t//s = _percentEncode( s ); // the original method, from java.net\r\n\t\ts = encodeURL(s, \"UTF-8\");\r\n\t\treturn s;\r\n\t}", "public static String convertUrlToPunycodeIfNeeded(String url) {\n if (!Charset.forName(\"US-ASCII\").newEncoder().canEncode(url)) {\n if (url.toLowerCase().startsWith(\"http://\")) {\n url = \"http://\" + IDN.toASCII(url.substring(7));\n } else if (url.toLowerCase().startsWith(\"https://\")) {\n url = \"https://\" + IDN.toASCII(url.substring(8));\n } else {\n url = IDN.toASCII(url);\n }\n }\n return url;\n }", "public static String encode(String argStr) {\r\n\t\tString result = argStr;\r\n\t\ttry {\r\n\t\t\tif (result != null && !result.isEmpty()) {\r\n\t\t\t\tresult = URLDecoder.decode(result, UTF_8);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// ignore\r\n\t\t}\r\n\t\tresult = encodeExplicit(result);\r\n\t\treturn result;\r\n\t}", "public Object encode(Object obj) throws EncoderException {\n/* 316 */ if (obj == null)\n/* 317 */ return null; \n/* 318 */ if (obj instanceof byte[])\n/* 319 */ return encode((byte[])obj); \n/* 320 */ if (obj instanceof String) {\n/* 321 */ return encode((String)obj);\n/* */ }\n/* 323 */ throw new EncoderException(\"Objects of type \" + obj.getClass().getName() + \" cannot be URL encoded\");\n/* */ }", "public static String encode(String in){\n in = in.replace(\"&\", \"&amp;\");\n in = in.replace(\"\\\"\", \"&quot;\");\n in = in.replace(\"<\", \"&lt;\");\n in = in.replace(\">\", \"&gt;\");\n log.debug(\"encoded string: \" + in);\n // FIXME: Consider double-encoding & if it is not part of &amp;\n return in;\n }", "public static String encodeURI(String string) {\n\t\treturn Utils.encodeURI(string);\n\t}", "public static String URLEncode (String str) {\n\ttry {\n\t return java.net.URLEncoder.encode (str, \"UTF-8\");\n\t} catch (UnsupportedEncodingException e) {\n\t e.printStackTrace ();\n\t} \n\treturn str;\n }", "public static String encode(String anyURI){\n int len = anyURI.length(), ch;\n StringBuffer buffer = new StringBuffer(len*3);\n \n // for each character in the anyURI\n int i = 0;\n for (; i < len; i++) {\n ch = anyURI.charAt(i);\n // if it's not an ASCII character, break here, and use UTF-8 encoding\n if (ch >= 128)\n break;\n if (gNeedEscaping[ch]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[ch]);\n buffer.append(gAfterEscaping2[ch]);\n }\n else {\n buffer.append((char)ch);\n }\n }\n \n // we saw some non-ascii character\n if (i < len) {\n // get UTF-8 bytes for the remaining sub-string\n byte[] bytes = null;\n byte b;\n try {\n bytes = anyURI.substring(i).getBytes(\"UTF-8\");\n } catch (java.io.UnsupportedEncodingException e) {\n // should never happen\n return anyURI;\n }\n len = bytes.length;\n \n // for each byte\n for (i = 0; i < len; i++) {\n b = bytes[i];\n // for non-ascii character: make it positive, then escape\n if (b < 0) {\n ch = b + 256;\n buffer.append('%');\n buffer.append(gHexChs[ch >> 4]);\n buffer.append(gHexChs[ch & 0xf]);\n }\n else if (gNeedEscaping[b]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[b]);\n buffer.append(gAfterEscaping2[b]);\n }\n else {\n buffer.append((char)b);\n }\n }\n }\n \n // If encoding happened, create a new string;\n // otherwise, return the orginal one.\n if (buffer.length() != len)\n return buffer.toString();\n else\n return anyURI;\n }", "String createUrl() throws JspException {\n\t\tAssert.state(this.value != null, \"No value set\");\n\t\tHttpServletRequest request = (HttpServletRequest) this.pageContext.getRequest();\n\t\tHttpServletResponse response = (HttpServletResponse) this.pageContext.getResponse();\n\n\t\tStringBuilder url = new StringBuilder();\n\t\tif (this.type == UrlType.CONTEXT_RELATIVE) {\n\t\t\t// add application context to url\n\t\t\tif (this.context == null) {\n\t\t\t\turl.append(request.getContextPath());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (this.context.endsWith(\"/\")) {\n\t\t\t\t\turl.append(this.context, 0, this.context.length() - 1);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\turl.append(this.context);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this.type != UrlType.RELATIVE && this.type != UrlType.ABSOLUTE && !this.value.startsWith(\"/\")) {\n\t\t\turl.append('/');\n\t\t}\n\t\turl.append(replaceUriTemplateParams(this.value, this.params, this.templateParams));\n\t\turl.append(createQueryString(this.params, this.templateParams, (url.indexOf(\"?\") == -1)));\n\n\t\tString urlStr = url.toString();\n\t\tif (this.type != UrlType.ABSOLUTE) {\n\t\t\t// Add the session identifier if needed\n\t\t\t// (Do not embed the session identifier in a remote link!)\n\t\t\turlStr = response.encodeURL(urlStr);\n\t\t}\n\n\t\t// HTML and/or JavaScript escape, if demanded.\n\t\turlStr = htmlEscape(urlStr);\n\t\turlStr = (this.javaScriptEscape ? JavaScriptUtils.javaScriptEscape(urlStr) : urlStr);\n\n\t\treturn urlStr;\n\t}", "public String encode(String longUrl) {\n \n String key = getRand();\n while (mapper.containsKey (key))\n key = getRand();\n \n mapper.put (key, longUrl);\n return key;\n }", "public static String encode(String str)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn java.net.URLEncoder.encode(str, \"UTF-8\");\r\n\t\t}\r\n\t\tcatch(java.io.UnsupportedEncodingException ue)\r\n\t\t{\r\n\t\t\treturn str;\r\n\t\t}\r\n\t}", "public static String URIencoding(String word) {\n\t\tString result = word;\n\t\tword = word.replace(\" \", \"_\");\n\t\ttry {\n\t\t\tresult = URLEncoder.encode(word, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public static Object encodeURI(final Object self, final Object uri) {\n return URIUtils.encodeURI(self, JSType.toString(uri));\n }", "private String collect() {\n final Map<String, String> encoded = new HashMap<>();\n\n synchronized (parameters) {\n parameters.forEach((key, value) -> {\n try {\n for (String v : value) {\n encoded.put(CodecUtils.urlEncode(key), CodecUtils.urlEncode(v));\n }\n } catch (UnsupportedEncodingException e) {\n /* ignore unsupported encoded parameters. */\n logger.error(\"Failed to encode request, parameters: {}\", parameters);\n }\n });\n }\n\n return encoded.entrySet().stream().sorted(this::compareParameter)\n .map(entry -> entry.getKey() + \"=\" + entry.getValue())\n .collect(Collectors.joining(\"&\"));\n }", "public static String getSessionEncoding(HttpServletResponse response) {\n if (response == null) return \"\";\n String enc = response.encodeURL(\"foo\").substring(3);\n return enc;\n }", "static String uriEscapeString(String unescaped) {\n try {\n return URLEncoder.encode(unescaped, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // This is fatal.\n throw new RuntimeException(e);\n }\n }", "public String toString(boolean encode) {\n StringBuilder url = new StringBuilder();\n boolean addSlash = true;\n\n //Protocol\n url.append(super.getProtocol());\n\n //Media-Type\n if(mediaType != null){\n url.append(mediaType);\n }\n\n //Base64\n if(base64){\n url.append(\";base64\");\n }\n\n //Data\n //# Throw an error if the data is null or empty\n if(data == null || data.isEmpty())\n throw new URLBuildException(\"Data is null or empty. Data must be set to build a data url.\");\n\n String dataPrepared = data;\n\n if(base64)\n dataPrepared = Base64.getEncoder().encodeToString(dataPrepared.getBytes());\n\n if(encode && !base64)\n dataPrepared = encode(dataPrepared);\n\n url.append(\",\").append(dataPrepared);\n\n return url.toString();\n }", "private String encodeValue(String value) {\r\n try {\r\n return URLEncoder.encode(value, \"UTF8\");\r\n } catch (UnsupportedEncodingException e) {\r\n // it should not occur since UTF8 should be supported universally\r\n throw new ExcelWrapperException(\"UTF8 encoding is not supported : \" + e.getMessage());\r\n }\r\n }", "public String toQueryUrl() {\n StringBuilder urlBuilder = new StringBuilder();\n Set<Map.Entry<String, Object>> entrySet = params.entrySet();\n int i = entrySet.size();\n for (Map.Entry<String, Object> entry : entrySet) {\n try {\n if (null != entry.getValue()) {\n urlBuilder.append(entry.getKey()).append('=')\n .append(URLEncoder.encode(String.valueOf(entry.getValue()), DEFAULT_ENC));\n if (i > 1) {\n urlBuilder.append('&');\n }\n }\n i--;\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }\n \n return urlBuilder.toString();\n }", "public String getEncodedValue() throws UnsupportedEncodingException {\n return URLEncoder.encode(this.value, \"UTF-8\");\n }", "public static String encodedURI(String uri, String decodedUri) {\r\n\t\tfinal String charToReplace = \":\";\r\n\t\tfinal String replacementChar = \"-\";\r\n\t\tif (decodedUri.startsWith(charToReplace)) {\r\n\t\t\tdecodedUri = decodedUri.substring(1); // remove leading char to replace, if any\r\n\t\t}\r\n\t\tString result = \"\";\r\n\t\tif (!uri.equals(decodedUri)) { // was the uri prefixable?\r\n\t\t\t// first, duplicate every pre-existing replacementChar to guarantee unity\r\n\t\t\tresult = decodedUri.replace(replacementChar, replacementChar + replacementChar);\r\n\t\t\t// replace the character to replace with a replacement character to make it a valid fragment\r\n\t\t\tresult = decodedUri.replace(charToReplace, replacementChar);\r\n\t\t} else {\r\n\t\t\tresult = IRILib.encodeUriComponent(decodedUri); // for non-prefixable uri's, just take the encoded form\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Test\n public void encodeParameter() {\n assertEquals(\"abcABC123\", OAuth10.encodeParameter(\"abcABC123\"));\n assertEquals(\"-._~\", OAuth10.encodeParameter(\"-._~\"));\n assertEquals(\"%25\", OAuth10.encodeParameter(\"%\"));\n assertEquals(\"%2B\", OAuth10.encodeParameter(\"+\"));\n assertEquals(\"%26%3D%2A\", OAuth10.encodeParameter(\"&=*\"));\n assertEquals(\"%0A\", OAuth10.encodeParameter(\"\\n\"));\n assertEquals(\"%20\", OAuth10.encodeParameter(\"\\u0020\"));\n assertEquals(\"%7F\", OAuth10.encodeParameter(\"\\u007F\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n assertEquals(\"%E3%80%81\", OAuth10.encodeParameter(\"\\u3001\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n }", "protected String getEscapedUri(String uriToEscape) {\r\n\t\treturn UriComponent.encode(uriToEscape, UriComponent.Type.PATH_SEGMENT);\r\n\t}", "public boolean isShouldEncodeUrls() {\n return mShouldEncodeUrls;\n }", "private String encodeTokenString(String tokenPortion) {\n log.info(\"Entering encodeTokenString\");\n String base64EncodedTokenString = Base64.getEncoder().encodeToString(tokenPortion.getBytes());\n String replacedEncodedTokenString = base64EncodedTokenString.replaceAll(\"={1,2}$\", \"\");\n return encodeURILikeJavascript(replacedEncodedTokenString);\n }", "public static String encoderRequete(\r\n\t\t\tfinal String pYQL) throws UnsupportedEncodingException {\r\n\t\t\r\n\t\tfinal String uriEncodee = URLEncoder.encode(pYQL, \"UTF-8\");\r\n\t\t\r\n\t\treturn uriEncodee;\r\n\t\t\r\n\t}", "java.lang.String getEncoded();", "public static Object encodeURIComponent(final Object self, final Object uri) {\n return URIUtils.encodeURIComponent(self, JSType.toString(uri));\n }", "public String fixForScheme(String url) {\n\t\tStringBuffer returnUrl = new StringBuffer(url);\n\t\tif(StringUtils.contains(url, \"returnurl=\"))\n\t\t{\n\t\t\treturnUrl = new StringBuffer(StringUtils.substring(url,0, \n\t\t\t\t\tStringUtils.indexOf(url, \"returnurl=\")));\n\t\t\t\n\t\t\treturnUrl.append(\"returnurl=\");\n\t\t\tString returnurl = StringUtils.substring(url, \n\t\t\t\t\tStringUtils.indexOf(url, \"returnurl=\")+10);\n\t\t\t\n\t\t\ttry {\n\t\t\t\treturnUrl.append(URLEncoder.encode(new String(Base64.encodeBase64(returnurl.getBytes())),\"UTF-8\"));\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn returnUrl.toString();\n\t}", "String getURLStringToPersist() {\n return getURLStringImpl(null, null, false);\n }", "public String encode() {\n\t\tString encoded_string;\n\t\tencoded_string = MEDIA_FIELD;\n\t\tif (media != null)\n\t\t\tencoded_string += media + Separators.SP + port;\n\t\t// Workaround for Microsoft Messenger contributed by Emil Ivov\n\t\t// Leave out the nports parameter as this confuses the messenger.\n\t\tif (nports > 1)\n\t\t\tencoded_string += Separators.SLASH + nports;\n\n\t\tif (proto != null)\n\t\t\tencoded_string += Separators.SP + proto;\n\n\t\tif (formats != null)\n\t\t\tencoded_string += Separators.SP + encodeFormats();\n\n\t\tencoded_string += Separators.NEWLINE;\n\t\treturn encoded_string;\n\t}", "protected String toExternalForm(URL paramURL) {\n/* 483 */ int i = paramURL.getProtocol().length() + 1;\n/* 484 */ if (paramURL.getAuthority() != null && paramURL.getAuthority().length() > 0)\n/* 485 */ i += 2 + paramURL.getAuthority().length(); \n/* 486 */ if (paramURL.getPath() != null) {\n/* 487 */ i += paramURL.getPath().length();\n/* */ }\n/* 489 */ if (paramURL.getQuery() != null) {\n/* 490 */ i += 1 + paramURL.getQuery().length();\n/* */ }\n/* 492 */ if (paramURL.getRef() != null) {\n/* 493 */ i += 1 + paramURL.getRef().length();\n/* */ }\n/* 495 */ StringBuffer stringBuffer = new StringBuffer(i);\n/* 496 */ stringBuffer.append(paramURL.getProtocol());\n/* 497 */ stringBuffer.append(\":\");\n/* 498 */ if (paramURL.getAuthority() != null && paramURL.getAuthority().length() > 0) {\n/* 499 */ stringBuffer.append(\"//\");\n/* 500 */ stringBuffer.append(paramURL.getAuthority());\n/* */ } \n/* 502 */ if (paramURL.getPath() != null) {\n/* 503 */ stringBuffer.append(paramURL.getPath());\n/* */ }\n/* 505 */ if (paramURL.getQuery() != null) {\n/* 506 */ stringBuffer.append('?');\n/* 507 */ stringBuffer.append(paramURL.getQuery());\n/* */ } \n/* 509 */ if (paramURL.getRef() != null) {\n/* 510 */ stringBuffer.append(\"#\");\n/* 511 */ stringBuffer.append(paramURL.getRef());\n/* */ } \n/* 513 */ return stringBuffer.toString();\n/* */ }", "@Override\r\n\tpublic String encode() {\n\t\treturn null;\r\n\t}", "private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }", "protected String opaque(final Request request) {\n return new Base64Helper().encode( name+ \"@\" + request.url.host());\n }" ]
[ "0.7967348", "0.7694393", "0.7506379", "0.7488471", "0.7399654", "0.73882675", "0.73279566", "0.7253894", "0.6949848", "0.6906333", "0.6896704", "0.6875057", "0.68591714", "0.68371254", "0.68358225", "0.6827379", "0.6765374", "0.6700718", "0.6626673", "0.6606202", "0.6545801", "0.6522176", "0.64576906", "0.6451399", "0.64351743", "0.63728327", "0.6323948", "0.6323386", "0.63111", "0.6275345", "0.627098", "0.6238782", "0.62308383", "0.6225289", "0.6208783", "0.6208154", "0.6200152", "0.61624265", "0.6137636", "0.6137597", "0.61351913", "0.6122861", "0.6081987", "0.607894", "0.6073135", "0.60371304", "0.60205346", "0.6003735", "0.6001214", "0.59981644", "0.5993794", "0.5987453", "0.594133", "0.59216326", "0.59173006", "0.5913389", "0.590966", "0.5892987", "0.5885944", "0.5848387", "0.58386767", "0.5831923", "0.5819475", "0.57879007", "0.5783694", "0.57664245", "0.5732814", "0.5731325", "0.56880754", "0.564173", "0.5635196", "0.56351274", "0.5625495", "0.5592575", "0.5591606", "0.5586158", "0.55825955", "0.55174696", "0.54928", "0.548441", "0.54742074", "0.5422345", "0.53851163", "0.5365435", "0.53453106", "0.5340201", "0.5338264", "0.5311115", "0.5257257", "0.5253959", "0.5239622", "0.5231201", "0.52251285", "0.520933", "0.51819235", "0.51746494", "0.517236", "0.5165626", "0.5152666", "0.5149676" ]
0.7544785
2
Log.v(TAG, "recieve: " + rmsdB + "dB");
@Override public void onRmsChanged(float rmsdB) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void retrieveBitRate() {\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n\n HashMap<String, String> metadata = new HashMap<>();\n\n MediaMetadataRetriever mediaMetadataRetriever = new MediaMetadataRetriever();\n mediaMetadataRetriever.setDataSource(radioStation.getListenUrl(), metadata);\n //mediaMetadataRetriever.setDataSource(RadioPlayerFragment.RADIO_LOCAL_URL, metadata);\n\n bitRate = mediaMetadataRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_BITRATE);\n Log.d(LOG_TAG, \"Bitrate: \" + bitRate);\n\n sendAlert(RadioPlayerFragment.SEND_BITRATE, bitRate);\n }\n }).start();\n\n }", "@Override\n\t\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\t\tString action = arg1.getAction();\n\t\t\tLog.v(TAG, \"action: \" + arg1.getAction());\n\t\t\tif(action.equals(\"android.media.VOLUME_CHANGED_ACTION\")){\n\t\t\t\tsystem_sound = audio.getStreamVolume(AudioManager.STREAM_RING) ;// 当前的媒体音量\n\t\t\t\tFyLog.d(TAG, \"the system_sound is: \" + system_sound);\n\t\t\t\tif(system_sound != sound.getProgress())\n\t\t\t\t\tsound.setProgress(system_sound);\n\t\t\t}\n\t\t}", "public long getMeasRcvdPowerdBm() {\r\n return measRcvdPowerdBm;\r\n }", "int getHeartRate();", "@Override\n public void onReceive(Context context, Intent intent) {\n try {\n float[] message1 = intent.getFloatArrayExtra(\"HR\");\n int message2 = intent.getIntExtra(\"ACCR\", 0);\n int sensorType = intent.getIntExtra(\"SENSOR_TYPE\", 0);\n isRunning = intent.getBooleanExtra(\"IS_RUNNING\",false);\n if (!isRunning) {\n //Thread.sleep(3000);\n isStop = true;\n } else {\n isStop = false;\n }\n if (mSwitch != null) {\n if (isStop) {\n mSwitch.setChecked(isRunning);\n }\n }\n if ((message1 != null ) && (sensorType == 21)) {\n Log.d(\"Receiver\", \"Got HR: \" + message1[0] + \". Got Accuracy: \" + message2);\n int tmpHr = (int)Math.ceil(message1[0] - 0.5f);\n if (tmpHr > 0) {\n //db.getAllUserMonitorDataByLastMeasurementTime(lastMeasurementTime);\n hrTxt.setText(String.valueOf(tmpHr));\n }\n DatabaseHandler db = new DatabaseHandler(getActivity());\n long timeStamp = intent.getLongExtra(\"TIME\", 0)/1000000L;\n lastSyncTxt.setText(String.valueOf(getDate(timeStamp)) + \" / \" + db.getAllUserMonitorDataByLastMeasurementTime(lastMeasurementTime).size() + \" records\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n int level = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0);\n int scale = intent.getIntExtra(BatteryManager.EXTRA_SCALE, 100);\n\n lastChargePercent = (level*100)/scale;\n\n String message = \"Battery charge: \" + lastChargePercent + \" %\";\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Log.d(\"ALARMA\", \"alarma\");\n AlarmUtils.scheduleAlarmHeartRate();\n BleDevice device = new BleDevice(new DeviceManager().getDevice().getMacAddress());\n\n device.connect();\n /*\n while(!device.readSteps(new StepsListener() {\n @Override\n public void onStepsRead(int value) {\n Log.d(\"ALARMA\", value+\"\");\n }\n })){\n }\n */\n\n while(!device.readHeartRate(new HeartRateListener() {\n @Override\n public void onHeartRateRead(int value) {\n Log.d(\"ALARMA\", value+\"\");\n\n Measurement measurement = new Measurement(new SessionManager().getId(), value, currentTimeMillis()/1000);\n new ApiHelper().uploadHeartRateMeasure(measurement, new SessionManager().getJWT());\n }\n }));\n }", "public int getSampleRate() {\r\n\treturn SAMPLES_IN_SECOND;\r\n}", "public int getReSampleRate() {\n return 0;\n }", "public float getMicGainDb();", "@Override\n\t\tpublic void onReceive(Context context, Intent intent){\n\t\t\tBundle bundle = intent.getExtras();\n\t\t\tlong moblieRx = bundle.getLong(\"moblieRx\");\n\t\t\tlong moblieTx = bundle.getLong(\"mobileTx\");\n\t\t\tlong wifiRx = bundle.getLong(\"wifiRx\");\n\t\t\tlong wifiTx = bundle.getLong(\"wifiTx\");\n\t\t\tString moblieR = trafficUtils.FormetFileSize(moblieRx);\n\t\t\tString mobileT=trafficUtils.FormetFileSize(moblieTx);\n\t\t\tString wifiR=trafficUtils.FormetFileSize(wifiRx);\n\t\t\tString wifiT=trafficUtils.FormetFileSize(wifiTx);\n\t\t\tLog.d(\"tag\", bundle.toString());\n\t\t\tmmobileRx.setText(moblieR);\n\t\t\tmmobileTx.setText(mobileT);\n\t\t\tmwifiRx.setText(wifiR);\n\t\t\tmwifiTx.setText(wifiT);\n\t\t}", "@Override\n public void handleMessage(Message msg) {\n sendEmptyMessageDelayed(0, 3000);\n if (resClient.getSendBufferFreePercent() <= 0.05) {\n Toast.makeText(StreamingActivity.this, \"sendbuffer is full,netspeed is low!\", Toast.LENGTH_SHORT).show();\n }\n }", "public int getAudioDscp();", "@Override\r\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tVibrator v = (Vibrator) context\r\n\t\t\t\t.getSystemService(Context.VIBRATOR_SERVICE);\r\n\t\tv.vibrate(500);\r\n\r\n\t\t// also display a toast.\r\n\t\tToast.makeText(context, \"Boradcast received successfully\",\r\n\t\t\t\tToast.LENGTH_LONG).show();\r\n\t}", "@Override\n\t\tpublic void onReceive(Context arg0, Intent intent) {\n\t\t\tif(intent.getAction().equals(Constants.P2P.ACK_GET_SD_CARD_CAPACITY)){\n\t\t\t\tint result = intent.getIntExtra(\"result\", -1);\n\t\t\t\tif(result==Constants.P2P_SET.ACK_RESULT.ACK_PWD_ERROR){\n\t\t\t\t\t\n\t\t\t\t\tIntent i = new Intent();\n\t\t\t\t\ti.setAction(Constants.Action.CONTROL_SETTING_PWD_ERROR);\n\t\t\t\t\tmContext.sendBroadcast(i);\n\t\t\t\t\t\n\t\t\t\t}else if(result==Constants.P2P_SET.ACK_RESULT.ACK_NET_ERROR){\n\t\t\t\t\tLog.e(\"my\",\"net error resend:get npc time\");\n\t\t\t\t\tP2PHandler.getInstance().getSdCardCapacity(contact.contactId, contact.contactPassword,command);\n\t\t\t\t}\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.RET_GET_SD_CARD_CAPACITY)){\n\t\t\t\tint total_capacity=intent.getIntExtra(\"total_capacity\",-1);\n\t\t\t\tint remain_capacity=intent.getIntExtra(\"remain_capacity\",-1);\n\t\t\t\tint state=intent.getIntExtra(\"state\",-1);\n\t\t\t\tSDcardId=intent.getIntExtra(\"SDcardID\",-1);\n\t\t\t\tString id=Integer.toBinaryString(SDcardId);\n\t\t\t\tLog.e(\"id\",\"msga\"+id);\n\t\t\t\twhile(id.length()<8){\n\t\t\t\t\tid=\"0\"+id;\n\t\t\t\t}\n\t\t\t\tchar index=id.charAt(3);\n\t\t\t\tLog.e(\"id\",\"msgb\"+id);\n\t\t\t\tLog.e(\"id\",\"msgc\"+index);\n\t\t\t\tif(state==1){\n\t\t\t\t\tif(index=='1'){\n\t\t\t\t\t\tsdId=SDcardId;\n\t\t\t\t\t\ttv_total_capacity.setText(String.valueOf(total_capacity)+\"M\");\n\t\t\t\t\t\ttv_sd_remainning_capacity.setText(String.valueOf(remain_capacity)+\"M\");\n\t\t\t\t\t\tshowSDImg();\n\t\t\t\t\t}else if(index=='0'){\n\t\t\t\t\t\tusbId=SDcardId;\n\t\t\t\t\t tv_usb_total_capacity.setText(String.valueOf(total_capacity)+\"M\");\n\t\t\t\t\t\ttv_usb_remainning_capacity.setText(String.valueOf(remain_capacity)+\"M\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n//\t\t\t\t\t count++;\n//\t\t\t\t\t if(contact.contactType==P2PValue.DeviceType.IPC){\n//\t\t\t\t\t \tif(count==1){\n//\t\t\t\t\t \t\tIntent back = new Intent();\n//\t\t\t\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n//\t\t\t\t\t\t\t\tmContext.sendBroadcast(back);\n//\t\t\t\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n//\t\t\t\t\t \t}\n//\t\t\t\t\t }else{\n//\t\t\t\t\t \tif(count==2){\n//\t\t\t\t\t \t\tIntent back = new Intent();\n//\t\t\t\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n//\t\t\t\t\t\t\t\tmContext.sendBroadcast(back);\n//\t\t\t\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n//\t\t\t\t\t \t}\n//\t\t\t\t\t }\n\t\t\t\t\tIntent back = new Intent();\n\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n\t\t\t\t\tmContext.sendBroadcast(back);\n\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n\t\t\t }\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.ACK_GET_SD_CARD_FORMAT)){\n\t\t\t\tint result = intent.getIntExtra(\"result\", -1);\n\t\t\t\tif(result==Constants.P2P_SET.ACK_RESULT.ACK_PWD_ERROR){\n\t\t\t\t\t\n\t\t\t\t\tIntent i = new Intent();\n\t\t\t\t\ti.setAction(Constants.Action.CONTROL_SETTING_PWD_ERROR);\n\t\t\t\t\tmContext.sendBroadcast(i);\n\t\t\t\t\t\n\t\t\t\t}else if(result==Constants.P2P_SET.ACK_RESULT.ACK_NET_ERROR){\n\t\t\t\t\tLog.e(\"my\",\"net error resend:get npc time\");\n\t\t\t\t\tP2PHandler.getInstance().setSdFormat(contact.contactId, contact.contactPassword, sdId);\n\t\t\t\t}\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.RET_GET_SD_CARD_FORMAT)){\n\t\t\t\tint result=intent.getIntExtra(\"result\", -1);\n\t\t\t if(result==Constants.P2P_SET.SD_FORMAT.SD_CARD_SUCCESS){\n\t\t\t \tT.showShort(mContext, R.string.sd_format_success);\n\t\t\t }else if(result==Constants.P2P_SET.SD_FORMAT.SD_CARD_FAIL){\n\t\t\t \tT.showShort(mContext, R.string.sd_format_fail);\n\t\t\t }else if(result==Constants.P2P_SET.SD_FORMAT.SD_NO_EXIST){\n\t\t\t \tT.showShort(mContext,R.string.sd_no_exist);\n\t\t\t }\n\t\t\t showSDImg();\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.RET_GET_USB_CAPACITY)){\n\t\t\t\tint total_capacity=intent.getIntExtra(\"total_capacity\",-1);\n\t\t\t\tint remain_capacity=intent.getIntExtra(\"remain_capacity\",-1);\n\t\t\t\tint state=intent.getIntExtra(\"state\",-1);\n\t\t\t\tSDcardId=intent.getIntExtra(\"SDcardID\",-1);\n\t\t\t\tString id=Integer.toBinaryString(SDcardId);\n\t\t\t\tLog.e(\"id\",\"msga\"+id);\n\t\t\t\twhile(id.length()<8){\n\t\t\t\t\tid=\"0\"+id;\n\t\t\t\t}\n\t\t\t\tchar index=id.charAt(3);\n\t\t\t\tLog.e(\"id\",\"msgb\"+id);\n\t\t\t\tLog.e(\"id\",\"msgc\"+index);\n\t\t\t\tif(state==1){\n\t\t\t\t\tif(index=='1'){\n\t\t\t\t\t\tsdId=SDcardId;\n\t\t\t\t\t\ttv_total_capacity.setText(String.valueOf(total_capacity)+\"M\");\n\t\t\t\t\t\ttv_sd_remainning_capacity.setText(String.valueOf(remain_capacity)+\"M\");\n\t\t\t\t\t\tshowSDImg();\n\t\t\t\t\t}else if(index=='0'){\n\t\t\t\t\t\tusbId=SDcardId;\n\t\t\t\t\t tv_usb_total_capacity.setText(String.valueOf(total_capacity)+\"M\");\n\t\t\t\t\t\ttv_usb_remainning_capacity.setText(String.valueOf(remain_capacity)+\"M\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t count++;\n\t\t\t\t\t if(contact.contactType==P2PValue.DeviceType.IPC){\n\t\t\t\t\t \tif(count==1){\n\t\t\t\t\t \t\tIntent back = new Intent();\n\t\t\t\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n\t\t\t\t\t\t\t\tmContext.sendBroadcast(back);\n\t\t\t\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n\t\t\t\t\t \t}\n\t\t\t\t\t }else{\n\t\t\t\t\t \tif(count==2){\n\t\t\t\t\t \t\tIntent back = new Intent();\n\t\t\t\t\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n\t\t\t\t\t\t\t\tmContext.sendBroadcast(back);\n\t\t\t\t\t\t\t\tT.showShort(mContext,R.string.sd_no_exist);\n\t\t\t\t\t \t}\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t\t}else if(intent.getAction().equals(Constants.P2P.RET_DEVICE_NOT_SUPPORT)){\n\t\t\t\tIntent back = new Intent();\n\t\t\t\tback.setAction(Constants.Action.REPLACE_MAIN_CONTROL);\n\t\t\t\tmContext.sendBroadcast(back);\n\t\t\t\tT.showShort(mContext,R.string.not_support);\n\t\t\t}\n\t\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n String output = intent.getStringExtra(\"success\");\n //SpannableString redSpannable= new SpannableString(output);\n //redSpannable.setSpan(new ForegroundColorSpan(Color.RED), 0, output.length(), 0);\n Log.d(\"Output\", output);\n TextView ins = (TextView)findViewById(R.id.instructions);\n //String start_display = \"User Guide: \\n 1. Press Heart Rate Button \\n 2. Turn on Flash Light \\n\" + \"3. Keep Fingertip on camera\";\n ins.append(\"\\n Respiratory Rate: \"+ output);\n rr_val = Double.parseDouble(output);\n hideProgressDialogWithTitle();\n\n }", "@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)\n @Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(context, \"Время поливать свои растения! \", Toast.LENGTH_LONG).show();\n }", "public void onRecieve(RoundTimeMessage message) {\n\n\n }", "public void setMeasRcvdPowerdBm(long value) {\r\n this.measRcvdPowerdBm = value;\r\n }", "int getLastVibrationFrequency();", "public int getSampleRate() {\n return 0;\n }", "int getSmpRate();", "@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(context,\"静态广播:\"+intent.getAction()+\":\"+intent.getStringExtra(\"tv\"),\n Toast.LENGTH_LONG).show();\n System.out.println(intent.getStringExtra(\"tv\"));\n }", "private void sendReceiveRes(){\n\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n // TODO Auto-generated method stub\n Log.d(TAG, \"got it\");\n }", "double getPWMRate();", "@Override\r\n public void onReceive(Context context, Intent intent) {\n int level = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);\r\n boolean full = level == 100;\r\n\r\n Log.d(TAG, \"Power changed - level \" + level);\r\n\r\n // wenn voll\r\n if (full) {\r\n makeNotification(false);\r\n }\r\n // wenn leerer geworden (nur bei Umstieg von grün auf orange notwendig)\r\n else {\r\n makeNotification(true);\r\n }\r\n }", "public float getPlaybackGainDb();", "public int getSampleRate() {\n return sampleRate;\n }", "public String getRemoteRingbackTone();", "private void m76764b() {\n this.f61647d = this.f61646c.getStreamMaxVolume(3);\n this.f61648e = this.f61647d / 15;\n if (this.f61648e == 0) {\n this.f61648e = 1;\n }\n m76765c();\n }", "private void onFullBattery() {\n\n }", "@Override\n public int getDbm() {\n int dBm;\n\n int level = mSignalStrength;\n int asu = (level == 99 ? Integer.MAX_VALUE : level);\n if (asu != Integer.MAX_VALUE) {\n dBm = -113 + (2 * asu);\n } else {\n dBm = Integer.MAX_VALUE;\n }\n if (DBG) log(\"getDbm=\" + dBm);\n return dBm;\n }", "int getBattery();", "@Override\n\tpublic void onReceivePressure(int val, int pos) {\n\n\t}", "int getChargerCurrentRaw();", "int getMPPerSecond();", "@Override\n public void onGetMute(int result, boolean mute) {\n Log.d(\"DLNA\", \"onGetMute result:\" + result);\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n final int bpm = progress + 50;\n Log.d(TAG, \"BPM recorded as \" + bpm);\n heartbeat2.setDurationBasedOnBPM(bpm);\n bpmTV.setText(\"BPM: \" + bpm);\n }", "@Override\n\tpublic double sendbid() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic double sendbid() {\n\t\treturn 0;\n\t}", "public double getPauseBetweenMIDISends() \n {\n return 0.0;\n }", "@Override\n public void run() {\n\n\n AudioRecord audioRecorder = new AudioRecord (MediaRecorder.AudioSource.VOICE_COMMUNICATION, SAMPLE_RATE,\n AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT,\n AudioRecord.getMinBufferSize(SAMPLE_RATE, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT));\n int bytes_read = 0;\n int bytes_sent = 0;\n byte[] buf = new byte[BUF_SIZE];\n Log.d(\"bytes_read\", String.valueOf(bytes_read));\n audioRecorder.startRecording();\n while (mic && !UDP){\n bytes_read = audioRecorder.read(buf, 0, BUF_SIZE); //also should add the headers required for our case\n Log.d(\"bytes_read\", String.valueOf(bytes_read));\n //The following code is to add the length in 4 bytes to the packet. Required in TCP connection if you use recv function in multiplex.py(server side).\n// byte[] len = ByteBuffer.allocate(4).order(BIG_ENDIAN).putInt(bytes_read).array();\n// byte[] toSend = new byte[4+bytes_read];\n// System.arraycopy(len, 0, toSend, 0, 4);\n// System.arraycopy(buf, 0, toSend, 4, bytes_read);\n try {\n dataOutputStreamInstance.write(buf);\n dataOutputStreamInstance.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n bytes_sent += bytes_read;\n }\n\n // Stop recording and release resources\n audioRecorder.stop();\n audioRecorder.release();\n try {\n buff.close();\n dataOutputStreamInstance.close();\n out1.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return;\n }", "private int micRecTime(long freeSpace) {\n\n return (int) (freeSpace / 5898240);\n }", "float getPostGain();", "pb4server.BarrackSpeedAskReq getBarrackSpeedAskReq();", "protected void received(){\n\t\tdouble max = 100; // this is the maximum value rain level range, the unit is mm/h.\n\t\tRandom random = new Random(); // Start a constructor to create random value.\n\n\t\t// Create a random double value between (0 to 400) mm/h and store the value into rain level parameter with 2 decimal places.\n\t\tthis.rain_level = Math.abs(random.nextGaussian() + 5);\n\t}", "int getSampleMs();", "private void setupRSSIsNRBroadcastReceiver() {\n broadcastReceiverRSSI = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (\"com.example.loravisual.RSSI_RECEIVED\".equals(intent.getAction())) {\n byte[] bytes = intent.getByteArrayExtra(\"com.example.loravisual.RSSISNR\");\n int rssi = LVUtil.makeByteUnsigned(bytes[1]);\n int bitErrors = LVUtil.makeByteUnsigned(bytes[3]);\n String rssiSnr = \"RSSI: -\" + rssi + \" SNR: \" + (bytes[2]);\n rssiSnrTextView.setText(rssiSnr);\n if (dbEntries == null) {\n dbEntries = new String[5];\n dbEntries[2] = \"-\" + rssi;\n dbEntries[3] = Byte.toString(bytes[2]);\n dbEntries[4] = Integer.toString(bitErrors);\n } else {\n dbEntries[2] = \"-\" + rssi;\n dbEntries[3] = Byte.toString(bytes[2]);\n dbEntries[4] = Integer.toString(bitErrors);\n databaseHandler.logReceivedTransmission(Integer.toString(experimentNumber), dbEntries);\n dbEntries = null;\n }\n }\n }\n };\n IntentFilter filter = new IntentFilter(\"com.example.loravisual.RSSI_RECEIVED\");\n registerReceiver(broadcastReceiverRSSI, filter);\n\n }", "public float getSampleRate();", "@Override\n public boolean onInfo(MediaPlayer mp, int what, int extra) {\n\n Log.v(\"FreshAir\", \"onInfo (\" + what + \" - \" + extra + \")\");\n\n switch (what) {\n case 701: //MediaPlayer.MEDIA_INFO_BUFFERING_START:\n text_info.setText(\"Buffering ...\");\n progress_main.setVisibility(View.VISIBLE);\n isPlaying = true; // ie you cant re set the data sourse without\n // stoping first\n break;\n\n case 702: //MediaPlayer.MEDIA_INFO_BUFFERING_END:\n text_info.setText(\"Playing ...\");\n progress_main.setVisibility(View.INVISIBLE);\n isPlaying = true;\n\n default:\n break;\n }\n\n return true; // return true to stop the OS calling 'onError'\n }", "public synchronized float getVoltage(){\n\t\t getData(REG_MMXCOMMAND, buf, 1);\n\t\t // 37 is the constant given by Mindsensors support 5/2011 to return millivolts. KPT\n return (37f*(buf[0]&0xff))*.001f;\n\t}", "protected abstract void onReceiveBatteryFrame(int[] value);", "private double getBatteryStatistic(String args) throws Exception\n {\n IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED);\n Intent batteryStatus = contextToUse.registerReceiver(null, ifilter);\n int level = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);\n int scale = batteryStatus.getIntExtra(BatteryManager.EXTRA_SCALE, -1);\n if(args.toLowerCase() == voltsArg)\n {\n return(level);\n }\n else\n {\n float batteryPct = level / (float)scale;\n return((double)batteryPct);\n }\n //TODO:IMPLEMENT BATTERY STATISTICS GETTER\n }", "static void vibrate() {\n String currentState = SettingDetail.settingDetails.get(VIBRATION_SETTING).getCurrentState();\n int ringerMode = audioManager.getRingerMode();\n if (currentState.equals(context.getString(R.string.enabled))\n || (currentState.equals(context.getString(R.string.followSystem))\n && (ringerMode == AudioManager.RINGER_MODE_NORMAL || ringerMode == AudioManager.RINGER_MODE_VIBRATE))) {\n vibrator.vibrate(VibrationEffect.createOneShot(100, VibrationEffect.DEFAULT_AMPLITUDE));\n }\n }", "@Override\n\t\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\t\tif(intent.getAction().equals(Intent.ACTION_BATTERY_CHANGED)) {\n\t\t\t\t\tInteger a = intent.getIntExtra(BatteryManager.EXTRA_STATUS, -1);\n\t\t\t\t\tInteger b = intent.getIntExtra(BatteryManager.EXTRA_HEALTH, -1);\n\t\t\t\t\tresult[0] = a.toString();\n\t\t\t\t\tresult[1] = b.toString();\n\t\t\t\t\tflag[0] = true;\n\t\t\t\t\tgetChargeInfo();\n\t\t\t\t\t\n\t\t\t\t\tif(flag[0] && flag[1]) {\n\t\t\t\t\t\tString content = \"\";\n\t\t\t\t\t\tfor(int i = 0 ; i < result.length; i++) {\n\t\t\t\t\t\t\tcontent += result[i];\n\t content += (i == result.length - 1) ? \"\" :\"|\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t((AutoMMI)getApplication()).recordResult(TAG, content, \"2\");\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}", "public double getRms() {\n return this.rms;\n }", "public double getSignal() {return _signal;}", "public float getByteRate() {\n return byteMonitor.getRate();\n }", "public int getAudioPort();", "@Override\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tif (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals(TelephonyManager.EXTRA_STATE_IDLE))\n\t\t{\n\t\t\t//hang off - return volume\n\t\t\t//System.out.println (\"Idle\");\n\t\t\tIntent intentTo = new Intent();\n\t\t\tintentTo.putExtra(\"event\", \"idle\");\n\t\t\tintentTo.setAction(\"CallActionHappened\");\n\t\t\tcontext.sendBroadcast(intentTo);\n\t\t}\n\t\telse if (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals(TelephonyManager.EXTRA_STATE_OFFHOOK))\n\t\t{\n\t\t\tIntent intentTo = new Intent();\n\t\t\tintentTo.putExtra(\"event\", \"offhook\");\n\t\t\tintentTo.setAction(\"CallActionHappened\");\n\t\t\tcontext.sendBroadcast(intentTo);\n\t\t\t//hang on - mute\n\t\t\t//System.out.println (\"Offhook\");\n\t\t}\n\t\telse if (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals(TelephonyManager.EXTRA_STATE_RINGING))\n\t\t{\n\t\t\t//System.out.println (\"Ringing\");\n\t\t}\n\t}", "public int getVoltage ()\n {\n return _voltage;\n }", "private void setB(float dB) {\n EditText field = (EditText) findViewById(R.id.valB);\n SeekBar sb = (SeekBar) findViewById(R.id.seekB);\n\n b = dB;\n if (b < 1) {\n b = 1.0f;\n } else if (b > 2) {\n b = 2.0f;\n }\n\n field.setText(String.valueOf(b));\n\n if ((b - 1) * 100 <= sb.getMax()) {\n sb.setProgress((int)((b - 1) * 100));\n }\n }", "@Override\n \tpublic void onReceive(Context context, Intent intent)\n \t{\n \tMediaInfoArtist = intent.getStringExtra(\"artist\");\n \tMediaInfoAlbum = intent.getStringExtra(\"album\");\n \tMediaInfoTrack = intent.getStringExtra(\"track\");\n \tMediaInfoNeedsUpdate = true;\n \tLog.d(\"OLV Music\",\"Artist: \"+MediaInfoArtist+\", Album: \"+MediaInfoAlbum+\" and Track: \"+MediaInfoTrack);\n \t}", "int pauseSamples() {\n return 0;\n }", "public byte getRoundsWon(){ return this.roundsWon; }", "private static void sendVibrateIntent() {\n\t\tIntent intent = new Intent(\"org.metawatch.manager.VIBRATE\");\n\t\tBundle b = new Bundle();\n\t\tb.putInt(\"vibrate_on\", 500);\n\t\tb.putInt(\"vibrate_off\", 500);\n\t\tb.putInt(\"vibrate_cycles\", 3);\n\t\tintent.putExtras(b);\n\t\tcontext.sendBroadcast(intent);\n\t\treturn;\n\t}", "@Override\n\t public void onReceive(Context context, Intent intent) {\n\t Toast.makeText(appContext, intent.getStringExtra(\"cmd_value\"), Toast.LENGTH_SHORT).show();\n\t }", "@Override\n public void onReceive(BluetoothLeUart uart, BluetoothGattCharacteristic rx) {\n\n\n\n writeLine(\"Received: \" + rx.getStringValue(0));\n String data = rx.getStringValue(0);\n String delim = \"[,]\";\n final String[] tokens = data.split(delim);\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() { //Using the conversions in the Hardware README.\n TextView tempDoe = (TextView) findViewById(R.id.tempMonitor);\n TextView humid = (TextView) findViewById(R.id.humidMonitor);\n TextView noisePol = (TextView) findViewById(R.id.noisePolMonitor);\n TextView carMon = (TextView) findViewById(R.id.coMonitor);\n float value = new BigInteger(tokens[0], 16).longValue();\n //System.out.println(value);\n float temp = (value * 50) / 65535;\n //System.out.println(temp);\n double tempFah = temp * 1.8000 + 32.00;\n String tempFahStr = String.valueOf(tempFah);\n //System.out.println(tempFah);\n int humidity = (Integer.parseInt(tokens[1],16) * 100) / 65535;\n String humidityDoe = String.valueOf(humidity);\n double noiseLev = Integer.parseInt(tokens[2],16);\n noiseLev = 20*(Math.log10(noiseLev/1024));\n String noiseLevStr = String.valueOf(noiseLev);\n int methane = Integer.parseInt(tokens[3],16);\n String methaneStr = String.valueOf(methane);\n tempDoe.setText(tempFahStr);\n humid.setText(humidityDoe);\n noisePol.setText(noiseLevStr);\n carMon.setText(methaneStr);\n }\n });\n\n\n\n float value = new BigInteger(tokens[0], 16).longValue(); //Done twice because, well, time\n //System.out.println(value); //issues...\n float temp = (value * 50) / 65535;\n //System.out.println(temp);\n double tempFah = temp * 1.8000 + 32.00;\n //System.out.println(tempFah);\n int humidity = (Integer.parseInt(tokens[1],16) * 100) / 65535;\n double noiseLev = Integer.parseInt(tokens[2],16);\n noiseLev = 20*(Math.log10(noiseLev/1024));\n int methane = Integer.parseInt(tokens[3],16);\n\n\n\n System.out.println(tempFah + \" \" + humidity + \" \" + noiseLev + \" \" + methane);\n\n writeLine(\"Pushing to Parse...\");\n //Parse.initialize(this, /*YOUR APP ID*/, /*YOUR CLIENT ID*/);\n ParseObject dataStuff = new ParseObject(\"SensorData\");\n dataStuff.put(\"User\",\"UserName\");\n dataStuff.put(\"Latitude\",\"Latitude Information\");\n dataStuff.put(\"Longitude\",\"Longitude Information\");\n dataStuff.put(\"Temperature\",tempFah);\n dataStuff.put(\"Humidity\",humidity);\n dataStuff.put(\"NoiseLevel\",noiseLev);\n dataStuff.put(\"Methane\",methane);\n dataStuff.saveInBackground();\n writeLine(\"Finished pushing.\");\n writeLine(\"Temperature (F): \" + tempFah);\n writeLine(\"Humidity: \" + humidity);\n writeLine(\"Noise Level: \" + noiseLev);\n writeLine(\"Methane: \" + methane);\n writeLine(\"Sensor Data Collected and pushed!\");\n\n }", "public synchronized void receive(Double message) {\n\t\t}", "@Override\n public void onBuffering(int percent) {\n }", "RecordHandler(Looper looper) {\n super(looper);\n if (DEBUG)\n MLog.d(TAG, \"RecordHandler() mPollRate: \" + mPollRate);\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tint channel;\n\t\t\tdouble data;\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\t\tcase Bluetooth.SUCCESS_CONNECT:\n\t\t\t\t\tBluetooth.connectedThread = new Bluetooth.ConnectedThread((BluetoothSocket) msg.obj);\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Conectado!\", 0).show();\n\t\t\t\t\tString s = \"successfully connected\";\n\t\t\t\t\tBluetooth.connectedThread.start();\n\t\t\t\t\tbreak;\n\t\t\t\tcase Bluetooth.MESSAGE_READ:\n\t\t\t\t\tif (!Record_Dialog_On) {\n\t\t\t\t\t\tbyte[] readBuf = (byte[]) msg.obj;\n\t\t\t\t\t\tfor (int i = 0; i < readBuf.length + cont ; i++) { //[LL]: Barrido del buffer de 1024 byte\n\t\t\t\t\t\t//\tLog.d(\"Cont.\", Integer.toString(cont));\n\t\t\t\t\t\t\tif (cont==3) {\n\t\t\t\t\t\t\t\tdata_aux[3]= (int) readBuf[i] & 0xff;\n\t\t\t\t\t\t\t\tcont=0;\n\n\t\t\t\t\t\t\tif ((data_aux[0] & 0x80) == 0x80 && (data_aux[1] & 0x80) == 0 && (data_aux[2] & 0x80) == 0 && (data_aux[3] & 0x80) == 0) {\n\t\t\t\t\t\t\t\tdata = ProcessData(data_aux); //Obtengo el valor a graficar segun el formato de los datos\n\t\t\t\t\t\t\t\tchannel = (data_aux[0] & 0x38) >> 3; //Obtengo el canal a graficar. Mascara= 0x38= 111000b\n\t\t\t\t\t\t\t\t//i = i + 3;\n\t\t\t\t\t\t\t\tif (Record == true && j < (1024 - 4)) {\n\t\t\t\t\t\t\t\t\trecording = true;\n\t\t\t\t\t\t\t\t\tif(canal_ant==-1)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(channel==0)\n\t\t\t\t\t\t\t\t\t\t\tcanal_ant= 1;\n\t\t\t\t\t\t\t\t\t\telse if(channel==1) {\n\t\t\t\t\t\t\t\t\t\t\tcanal_ant = 0;\n\t\t\t\t\t\t\t\t\t\t\tDataWrite = DataWrite.concat(Double.toString(data_channel_0_prev) + \",\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tswitch(canal_ant) {\n\t\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\t\tif(channel==1) {\n\t\t\t\t\t\t\t\t\t\t\t\tDataWrite = DataWrite.concat(Double.toString(data) + \"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\tcanal_ant=1;\n\t\t\t\t\t\t\t\t\t\t\t\tdata_channel_1_prev= data;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse if(channel==0) {\n\t\t\t\t\t\t\t\t\t\t\t\tDataWrite = DataWrite.concat(Double.toString(data_channel_1_prev) + \"\\n\" + data + \",\");\n\t\t\t\t\t\t\t\t\t\t\t\tdata_channel_0_prev = data;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\t\tif(channel==0) {\n\t\t\t\t\t\t\t\t\t\t\t\tDataWrite = DataWrite.concat(Double.toString(data) + \",\");\n\t\t\t\t\t\t\t\t\t\t\t\tcanal_ant = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t//DataWrite = DataWrite.concat(Double.toString(data_channel_1_prev) + \"\\n\" + data + \",\");\n\t\t\t\t\t\t\t\t\t\t\t\tdata_channel_0_prev = data;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse if(channel==1) {\n\t\t\t\t\t\t\t\t\t\t\t\tDataWrite = DataWrite.concat(Double.toString(data_channel_0_prev) + \",\" + data + \"\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\t//DataWrite = DataWrite.concat(Double.toString(data_channel_1_prev) + \"\\n\" + data + \",\");\n\t\t\t\t\t\t\t\t\t\t\t\tdata_channel_1_prev = data;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tj++;\n\n\t\t\t\t\t\t\t\t} else if (recording == true) {\n\t\t\t\t\t\t\t\t\tLog.d(\"com.gibio.bt_graph\", \"grabando...\");\n\t\t\t\t\t\t\t\t\tString DirToSaveType;\n\t\t\t\t\t\t\t\t\tif (FileSaveDialog.Get_m_dir().equals(\"\") == false)\n\t\t\t\t\t\t\t\t\t\tDirToSaveType = FileSaveDialog.Get_m_dir();\n\t\t\t\t\t\t\t\t\telse DirToSaveType = FileSaveDialog.Get_m_sdcardDirectory();\n\t\t\t\t\t\t\t\t\tSaveData(DataWrite, DirToSaveType, FileSaveDialog.Get_Selected_File_Name()); //Guardo los datos en un archivo\n\t\t\t\t\t\t\t\t\tDataWrite = (String) \"\";\n\t\t\t\t\t\t\t\t\t//canal_ant = -1; // -1 == ningún canal\n\n\t\t\t\t\t\t\t\t\tif (Record == false) { //[LL]: si se presionó STOP dejo de grabar\n\t\t\t\t\t\t\t\t\t\trecording = false;\n\t\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Grabación detenida!\", 0).show();j = 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tj = 0;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tswitch (channel) {\n\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\tif (Sereies_0_index < 10000){ //[LL]:Esto lo puse para evitar picos en la memoria\n\t\t\t\t\t\t\t\t\t\t\tif(data!=-2097152.0 && data!=0.0 && data!=409600.0 && data!=393216.0) { //[LL]:Por un error (picos) ver como resolver\n\t\t\t\t\t\t\t\t\t\t//Notar que todos los valores que dan error son multiplos de 1024\n\t\t\t\t\t\t\t\t\t\t//393216= 0x060000 = 0000 0110 00000000 00000000\n\t\t\t\t\t\t\t\t\t\t//409600= 0x064000 = 0000 0110 01000000 00000000\n\t\t\t\t\t\t\t\t\t\t//con el protocolo: 10001000 00110010 00000000 00000000\n\n\t\t\t\t\t\t\t\t\t\t// -2097152= 0xE00000 = 1110 0000 00000000 00000000\n\n\t\t\t\t\t\t\t\t\t\tSeries_0.appendData(new GraphViewData(graph2LastXValue_0, data), AutoScrollX);\n\t\t\t\t\t\t\t\t\t\tSereies_0_index++;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tSeries_0.resetData(new GraphViewData[]{});\n\t\t\t\t\t\t\t\t\t\t\tSereies_0_index = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//X-axis control\n\t\t\t\t\t\t\t\t\t\tif (graph2LastXValue_0 >= Xview && Lock == true) {\n\t\t\t\t\t\t\t\t\t\t\tSeries_0.resetData(new GraphViewData[]{});\n\t\t\t\t\t\t\t\t\t\t\tgraph2LastXValue_0 = 0;\n\t\t\t\t\t\t\t\t\t\t} else graph2LastXValue_0 += 0.1;\n\n\t\t\t\t\t\t\t\t\t\tif (Lock == true) {\n\t\t\t\t\t\t\t\t\t\t\tgraphView_0.setViewPort(0, Xview);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tgraphView_0.setViewPort(graph2LastXValue_0 - Xview, Xview);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//refresh\n\t\t\t\t\t\t\t\t\t\tGraphView_0.removeView(graphView_0);\n\t\t\t\t\t\t\t\t\t\tGraphView_0.addView(graphView_0);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\tif (Sereies_1_index < 10000) {\n\t\t\t\t\t\t\t\t\t\tif(data!=-2097152.0 && data!=0.0 && data!=409600.0 && data!=393216.0 ) {\n\t\t\t\t\t\t\t\t\t\t//if(data!=-2097152.0 ) {\n\t\t\t\t\t\t\t\t\t\t\tSeries_1.appendData(new GraphViewData(graph2LastXValue_1, data), AutoScrollX);\n\t\t\t\t\t\t\t\t\t\t\t//Log.d(\"com.gibio.bt_graph\", \"data:\" + Double.toString(data));\n\t\t\t\t\t\t\t\t\t\t\tSereies_1_index++;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tSeries_1.resetData(new GraphViewData[]{});\n\t\t\t\t\t\t\t\t\t\t\tSereies_1_index = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//X-axis control\n\t\t\t\t\t\t\t\t\t\tif (graph2LastXValue_1 >= Xview && Lock == true) {\n\t\t\t\t\t\t\t\t\t\t\tSeries_1.resetData(new GraphViewData[]{});\n\t\t\t\t\t\t\t\t\t\t\tgraph2LastXValue_1 = 0;\n\t\t\t\t\t\t\t\t\t\t} else graph2LastXValue_1 += 0.1;\n\n\t\t\t\t\t\t\t\t\t\tif (Lock == true) {\n\t\t\t\t\t\t\t\t\t\t\tgraphView_1.setViewPort(0, Xview);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tgraphView_1.setViewPort(graph2LastXValue_1 - Xview, Xview);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//refresh\n\t\t\t\t\t\t\t\t\t\tGraphView_1.removeView(graphView_1);\n\t\t\t\t\t\t\t\t\t\tGraphView_1.addView(graphView_1);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tdata_aux[cont] = (int) readBuf[i] & 0xff;\n\t\t\t\t\t\t\t\tcont++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}", "int getInputVoltageRaw();", "@Override\n public void run() {\n graphIn = new Handler(Looper.getMainLooper()) {\n\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState2:\n received = Boolean.parseBoolean((String) msg.obj);\n break;\n case handlerState4:\n sampleTime = Integer.parseInt((String) msg.obj);\n break;\n case handlerState1:\n ppgWaveBuffer.addAll((ArrayList) msg.obj);\n bluetoothIn.obtainMessage(handlerState5, \"ACK\").sendToTarget();\n break;\n\n }\n }\n };\n\n for (; ; ) {\n\n if (!VerifyActivity.isActivityVisible()) {\n ppgWaveBuffer.clear();\n break;\n }\n if (received == true && ppgWaveBuffer.size() != 0) {\n\n runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n if (ppgWaveBuffer.size() != 0) {\n graph.update(ppgWaveBuffer);\n }\n }\n });\n try {\n Thread.sleep(sampleTime + compensatoryTime);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }", "void onAudioLevel(float level);", "public int getSamples(){ \n return this.samples; \n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n if (intent != null) {\n String action = intent.getAction();\n if (action.equals(Constants.ACTION_DIFF) || action.equals(Constants.ACTION_SUM) ) {\n String text = intent.getStringExtra(Constants.INTENT_KEY);\n Log.d(Constants.RECEIVER_TAG, \"Result for \"+ action +\" is : \" + text);\n recv++;\n }\n }\n }", "public void setMicGainDb(float level);", "int getRt();", "float getPostEndOfAudioTimeoutMs();", "@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n }", "@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n }", "void onServerVoiceChannelChangeBitrate(ServerVoiceChannelChangeBitrateEvent event);", "public int getMaxAmplitude() {\r\n\treturn MAX_AMPLITUDE;\r\n}", "@Override\n\t\tpublic void onReceivePressure(int val, int pos) {\n\n\t\t}", "@Override\r\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(MainActivity.this, \"已挂断电话\", Toast.LENGTH_SHORT).show();\r\n Log.i(\"callShutDown\", \"已挂断电话\");\r\n }", "public void onUpdateTraffic(Message msg) {\n if (msg != null && msg.obj != null) {\n Bundle bundle = (Bundle) msg.obj;\n this.mHwHiStreamCHRManager.onUpdateQuality(bundle.getInt(\"wifiRxTraffic\"), bundle.getInt(\"cellularRxTraffic\"), bundle.getInt(\"wifiTxTraffic\"), bundle.getInt(\"celluarTxTraffic\"), bundle.getInt(\"monitoringUid\"));\n }\n }", "protected float getSoundVolume()\n {\n return 0.4F;\n }", "public void broadcastState() {\n StringBuilder sb = new StringBuilder();\n sb.append(MSG_STATE);\n\n if(mService.isTransmitterMode()) {\n sb.append(\" t \");\n }\n else {\n sb.append(\" r \");\n }\n\n sb.append(mService.getVADThreshold());\n sb.append(\" \");\n\n sb.append(mService.getNoiseTracker().getLastNoiseHeard() / 1000);\n\n try {\n sendChannelMessage(sb.toString());\n }\n catch(RemoteException e) {\n e.printStackTrace();\n }\n }", "float getVideoCaptureRateFactor();", "@Override\r\n\t\tpublic void onBufferingUpdate(MediaPlayer arg0, int percent) {\n\t\t\t((TextView) mainLayout.findViewById(R.id.btn_buffering)).setText(\"Buffering \" + percent + \"%\");\r\n\t\t}", "public int getAudiobitrate() {\n return audiobitrate;\n }", "float getDecodedAudioTimeoutMs();", "float getDecodedAudioTimeoutMs();", "private void setupMsgBroadcastReceiver() {\n broadcastReceiverLoraMsg = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (\"com.example.loravisual.MSG_RECEIVED\".equals(intent.getAction())) {\n byte[] bytes = intent.getByteArrayExtra(\"com.example.loravisual.MSG\");\n\n String totalNumber = Integer.toString(bytes[11] + (bytes[10] * multipliers[5])); // + correct total message number calculated from two ble transmitted bytes (#msg number in iteration = [11], (#iteration = [10])\n String msg = new String(bytes).substring(0, 10); // msg = header (ble transmitted from board as string\n\n if (colorToggle) {\n msgTextView.setTextColor(getResources().getColor(R.color.colorPrimaryDark, null));\n } else {\n msgTextView.setTextColor(getResources().getColor(R.color.white, null));\n }\n colorToggle = !colorToggle;\n msgTextView.setText(msg + \" (\" + totalNumber + \")\");\n\n if (dbEntries == null) {\n dbEntries = new String[5];\n dbEntries[0] = totalNumber;\n dbEntries[1] = msg;\n } else {\n dbEntries[0] = totalNumber;\n dbEntries[1] = msg;\n databaseHandler.logReceivedTransmission(Integer.toString(experimentNumber), dbEntries);\n dbEntries = null;\n }\n }\n }\n };\n IntentFilter filter = new IntentFilter(\"com.example.loravisual.MSG_RECEIVED\");\n registerReceiver(broadcastReceiverLoraMsg, filter);\n }", "public float getWavelength() {\n/* 52 */ return this.wavelength;\n/* */ }", "@Override\n\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t}", "@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_volume = inf.findViewById(R.id.textView9);\n txtV_volume.setText(\"\"+progress+\" ml\");\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String refresh = intent.getStringExtra(MyService.REFRESH_MONEY_PLAYER);\n Log.i(\"II/FullScreen_Juego>\", \" receiver2 > REFRESH : \"+refresh);\n\n try {\n\n //Si lo que recibimos es mayor que lo que habia entonces GANAMOS dinero\n if (Float.parseFloat(refresh) > Float.parseFloat(visorMoneyP1.getText().toString())\n ) {\n //Ejecutamos sonido\n soundGanamosDinero.start();\n //Ejecutar animacion\n visorMoneyP1.startAnimation(aumento);\n //Mostramos el Custom Toast Felicitaciones!\n Toast toast = new Toast(getApplicationContext());\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);\n toast.setView(layout_ganamos);//setting the view of custom toast layout\n toast.show();\n\n\n //Monstramos imagview/gif confeti\n imageView_gif_confeti.setVisibility(View.VISIBLE);\n //Despues de 6 segundos ocultamos Confeti\n new CountDownTimer(6000, 1000) {\n public void onFinish() {\n // When timer is finished\n // Execute your code here\n\n imageView_gif_confeti.setVisibility(View.INVISIBLE);\n }\n\n public void onTick(long millisUntilFinished) {\n // millisUntilFinished The amount of time until finished.\n }\n }.start();\n\n\n //Si lo que recibimos es MENOR que lo que habia entonces PERDIMOS dinero\n } else if (Float.parseFloat(refresh) < Float.parseFloat(visorMoneyP1.getText().toString())\n ) {\n\n //Ejecutamos sonido\n soundPerdimosDinero.start();\n //Ejecutamos animacion\n visorMoneyP1.startAnimation(sacudir);\n\n //Mostramos el Custom Toast Perdimos :(\n Toast toast = new Toast(getApplicationContext());\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);\n toast.setView(layout_pierde);//setting the view of custom toast layout\n toast.show();\n }\n\n\n visorMoneyP1.setText(refresh);\n\n\n }catch (Exception e){\n Log.d(\"II/\",\"Error: \"+e);\n }\n\n }" ]
[ "0.6209644", "0.5983885", "0.59296006", "0.5904198", "0.5837486", "0.5782387", "0.5769196", "0.5754569", "0.5745915", "0.5725117", "0.5688529", "0.5660304", "0.5632894", "0.5627375", "0.56194025", "0.56049204", "0.56039065", "0.55432725", "0.5539882", "0.5539191", "0.5513998", "0.55079013", "0.5499799", "0.54885364", "0.54875684", "0.54816216", "0.5461411", "0.54549307", "0.54424244", "0.5412021", "0.5409614", "0.54045963", "0.5403867", "0.54010206", "0.5393455", "0.5389672", "0.53793824", "0.5374326", "0.5371851", "0.5366943", "0.5366943", "0.53637457", "0.5358315", "0.5356572", "0.535171", "0.5349757", "0.53477323", "0.5344262", "0.5329056", "0.5325334", "0.5323977", "0.53162414", "0.5314899", "0.5309435", "0.53092134", "0.5308602", "0.530302", "0.5300152", "0.52982897", "0.5292846", "0.5282483", "0.52779615", "0.527251", "0.5266937", "0.5262018", "0.5259414", "0.52579224", "0.52480257", "0.5245469", "0.5239321", "0.523731", "0.52123094", "0.52118486", "0.5200188", "0.5197773", "0.5194709", "0.5192613", "0.5191824", "0.51888776", "0.51840013", "0.5177394", "0.5177313", "0.5177313", "0.5165577", "0.5160765", "0.5155595", "0.51528573", "0.5147086", "0.51443917", "0.51400185", "0.5135984", "0.51357573", "0.5132068", "0.51295143", "0.51295143", "0.5123728", "0.51132125", "0.510178", "0.50988454", "0.5096957" ]
0.7260661
0
TODO: Remove this, it is just a debugging option
public RDFReplayAgent() {//throws XMPPException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void debugInfo() { throw Extensions.todo(); }", "@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}", "public void debug() {\n\n }", "@Override\n\tpublic void dump() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic String toStringDebug() {\n\t\treturn null;\n\t}", "private static void printDebug(String s)\n {\n }", "public java.lang.String toDebugString () { throw new RuntimeException(); }", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "private void strin() {\n\n\t}", "private void kk12() {\n\n\t}", "public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}", "protected static void printUsage() {\n\t}", "public abstract void debug(RobocodeFileOutputStream output);", "private DebugMessage() {\n initFields();\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n public void perish() {\n \n }", "public void mo4359a() {\n }", "public void debug()\r\n {\n \t\treload();\r\n }", "private void sout() {\n\t\t\n\t}", "private void m50366E() {\n }", "public void method_4270() {}", "public static void ClearDebugInfo() { throw Extensions.todo(); }", "private void debug(String str) {\n }", "public void mo21877s() {\n }", "private static void debug()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords:\");\r\n\t\tfor(String word : keywords)\r\n\t\t{\r\n\t\t\tSystem.out.println(word);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedLink.debugLinks();\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedPage.debugPages();\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}", "private void dumpState() {\r\n\t\tfor (TextChunk location : locationalResult) {\r\n\t\t\tlocation.printDiagnostics();\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}", "public void autoDetails() {\n\t\t\r\n\t}", "void getInfo() {\n \tSystem.out.println(\"There doesn't seem to be anything here.\");\n }", "static void feladat4() {\n\t}", "public void dump()\n {\n System.out.println(toString());\n }", "public void dump()\r\n {\r\n dump(true);\r\n }", "private void test() {\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 }", "public static void listing5_14() {\n }", "@Override\r\n\t\t\tpublic void print() {\n\t\t\t\t\r\n\t\t\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void outputDebugInfo(Writer writer) {\n\t\t\n\t}", "public String toDebugString();", "private void debug(String s) {\r\n\t\tif (debug)\r\n\t\t\tSystem.out.println(s);\r\n\t}", "private static void printFunctionCalls() {\n dvm.printFunctionCalls();\n }", "@Override\n\tpublic String Dump() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void debug(Message msg) {\n\n\t}", "void debug() {\n\t\tfor( int i = 0; i < N; i++ ) {\t\n\t\t\tSystem.out.print(i+\" \");\n\t\t\tfor( int j = 0; j < N; j++ )\n\t\t\t\tSystem.out.print(j+\":\"+(defined[i][j]?\"T\":\"F\")+\" \"+\n\t\t\t\t\t\tc[i][j]+\" p=\"+path[i][j]+\" f=\"+f[i][j]+\"; \");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void mo21779D() {\n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public void mo21785J() {\n }", "static void feladat7() {\n\t}", "public final void mo91715d() {\n }", "public static void printInfo(){\n }", "public void mo12930a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void mo3749d() {\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "static void feladat9() {\n\t}", "private static void debug(String s) {\n if (System.getProperty(\"javafind.debug\") != null)\n System.out.println(\"debug in GnuNativeFind: \" + s);\n }", "public void mo21792Q() {\n }", "public void debug() {\n\n\t\t// Establecemos el estado\n\t\tsetEstado(Estado.DEBUG);\n\n\t\t// Obtenemos la proxima tarea\n\t\ttarea = planificador.obtenerProximaTarea();\n\t}", "@Override\n\tpublic void debug(Object message) {\n\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate static void printDebug(String p) {\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(PREFIX + p);\n\t\t}\n\t}", "private void level7() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "static void debug() {\n ProcessRunnerImpl.setGlobalDebug(true);\n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private static void dbg(Object... objects) {\n\t\tSystem.out.println(Arrays.deepToString(objects));\r\n\t}", "public void printInfo(){\n\t}", "public void printInfo(){\n\t}", "private ElementDebugger() {\r\n\t\t/* PROTECTED REGION ID(java.constructor._17_0_5_12d203c6_1363681638138_829588_2092) ENABLED START */\r\n\t\t// :)\r\n\t\t/* PROTECTED REGION END */\r\n\t}", "@Override\n\tpublic void debug(Marker marker, MessageSupplier msgSupplier) {\n\n\t}", "private void brewCoffeeGrinds() {\r\n LOG.debug( \"Brewing coffee grinds\" );\r\n }", "static void feladat6() {\n\t}", "public static String getInfo() {\n/* 327 */ return \"\";\n/* */ }", "public void mo44053a() {\n }", "@Override\n\tpublic void debug(Marker marker, Message msg) {\n\n\t}", "public void mo55254a() {\n }", "@Override\n\t\tpublic void print() {\n\n\t\t}", "public void mo23813b() {\n }", "@Override public int describeContents() { return 0; }", "protected void brkt() {\n println(breakPoints.toString());\n }", "@Override\n\tpublic void debug(Marker marker, String message, Object p0) {\n\n\t}", "static void feladat5() {\n\t}", "private DAOLogger() {\n\t}", "public String toString()\r\n/* 67: */ {\r\n/* 68:253 */ return getClass().getName();\r\n/* 69: */ }", "public void print_DEBUG() {\n\t\tSystem.out.println(\"Direction\");\n\t\tSystem.out.println(\"ID: \" + ID);\n\t\tSystem.out.println(\"FROM: \" + from.name() );\n\t\tSystem.out.println(\"TO: \" + to.name() );\n\t\tSystem.out.println(\"dir: \" + dir);\n\t\tSystem.out.println(\"Locked: \" + locked);\n\t\tSystem.out.println(\"LockPattern: \" + lockPattern);\n\t}", "protected void mo6255a() {\n }", "public void mo3376r() {\n }", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "private void poetries() {\n\n\t}" ]
[ "0.6167628", "0.61579645", "0.60574657", "0.6028902", "0.5949183", "0.5915097", "0.58014053", "0.5796744", "0.5782236", "0.57749575", "0.5769314", "0.5727877", "0.56922597", "0.5688681", "0.5675099", "0.56365615", "0.5632739", "0.56303906", "0.56221473", "0.56191486", "0.5602651", "0.559712", "0.55415916", "0.5537865", "0.5535563", "0.5532601", "0.55193967", "0.55175686", "0.5516803", "0.5516558", "0.55140275", "0.5501714", "0.54988295", "0.5498319", "0.54903847", "0.547171", "0.5463735", "0.5463735", "0.5463735", "0.5463735", "0.5463735", "0.5463735", "0.5463735", "0.5461259", "0.54608864", "0.54599994", "0.5456067", "0.54548955", "0.5453632", "0.5444656", "0.5444422", "0.54373586", "0.5436122", "0.5435224", "0.5434402", "0.5432675", "0.5423507", "0.5422411", "0.5419698", "0.5412379", "0.54071194", "0.5406636", "0.5405402", "0.5403885", "0.5402566", "0.5400456", "0.5396173", "0.53947854", "0.53916293", "0.53914106", "0.5387293", "0.53860444", "0.5384151", "0.5382121", "0.5379489", "0.5376073", "0.5376073", "0.5373563", "0.53682053", "0.53682053", "0.5367894", "0.5364707", "0.5358363", "0.53556406", "0.5355325", "0.535207", "0.5341834", "0.5340651", "0.5335863", "0.5335338", "0.5329875", "0.532859", "0.5327692", "0.5321752", "0.53182644", "0.5313303", "0.53119123", "0.53042126", "0.53028756", "0.53025764", "0.53013176" ]
0.0
-1
TODO: Could all of these static methods be rolled into a single "getAgentGateway" method, which returns an object which was initialised previously in the agent to interact with GWT?
public static String getAgraphUsername() { return "root"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Agent getAgent();", "public AGateway getGateway()\r\n/* 16: */ {\r\n/* 17:36 */ return this.gateway;\r\n/* 18: */ }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "ICordysGatewayClient getGatewayClientInstance();", "public interface GatewayInfo {\n\n /**\n * Return Pipeline ID of the Microservice Pipeline\n *\n * @return the Pipeline ID\n */\n String getPipelineId();\n\n /**\n * Return the service name for the API Gateway, used in the gateway rest point URL.\n * http://localhost:18630/rest/v1/gateway/<ServiceName>\n *\n * @return the Gateway Service name\n */\n String getServiceName();\n\n /**\n * Return the REST Service API Endpoint.\n *\n * @return the REST Service HTTP URL\n */\n String getServiceUrl();\n\n /**\n * Return true to use protected Data Collector URL\n * \"http://localhost:18630/rest/v1/gateway/<service name>.\".\n *\n * Otherwise, Gateway URL is an unprotected Data Collector URL -\n * \"http://localhost:18630/public-rest/v1/gateway/<service name>.\"\n *\n * @return Return true to use protected Gateway Endpoint\n */\n boolean getNeedGatewayAuth();\n\n /**\n * Return the Gateway secret to use in the HTTP request header.\n *\n * To avoid users calling REST Service URL directly instead of going through gateway URL,\n * we use GATEWAY_SECRET header, and REST Service will process requests only if secret matches.\n *\n * @return the gateway secret\n */\n String getSecret();\n\n}", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "protected abstract RemoteFactory.Agent<Msg, Ref> make_Agent();", "protected AgentConfig getAgentConfig() {\n return agentConfig;\n }", "public RemoteFactory.Agent<Msg, Ref> _createImplementationOfAgent() {\n RemoteFactory.Agent<Msg, Ref> implem = make_Agent();\n if (implem == null) {\n \tthrow new RuntimeException(\"make_Agent() in fr.irit.smac.may.lib.classic.remote.RemoteFactory should not return null.\");\n }\n assert implem.ecosystemComponent == null: \"This is a bug.\";\n assert this.selfComponent != null: \"This is a bug.\";\n implem.ecosystemComponent = this.selfComponent;\n return implem;\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public String getAgent() {\n return agent;\n }", "public static ServiceAgent getAgent() {\n\t\tif (instance == null) {\n\t\t\tthrow new ApplicationError(\"Service Agent is not set up, but there are requests for service!!\");\n\t\t}\n\t\treturn instance;\n\t}", "org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder();", "private com.google.protobuf.SingleFieldBuilderV3<\n org.beangle.security.session.protobuf.Model.Agent, org.beangle.security.session.protobuf.Model.Agent.Builder, org.beangle.security.session.protobuf.Model.AgentOrBuilder>\n getAgentFieldBuilder() {\n if (agentBuilder_ == null) {\n agentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.beangle.security.session.protobuf.Model.Agent, org.beangle.security.session.protobuf.Model.Agent.Builder, org.beangle.security.session.protobuf.Model.AgentOrBuilder>(\n getAgent(),\n getParentForChildren(),\n isClean());\n agent_ = null;\n }\n return agentBuilder_;\n }", "public String getAgent() {\n return this.agent;\n }", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public final AgentIdentifier getAgent() {\n\t\treturn (this.__agent==null) ? null : this.__agent.get().getId();\n\t}", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public String getGateway() {\n return gateway;\n }", "public org.beangle.security.session.protobuf.Model.Agent.Builder getAgentBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getAgentFieldBuilder().getBuilder();\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Gateway() {\n genClient = new GenericClient<Gateway>(this);\n }", "public String getGatewayHost();", "public org.beangle.security.session.protobuf.Model.AgentOrBuilder getAgentOrBuilder() {\n if (agentBuilder_ != null) {\n return agentBuilder_.getMessageOrBuilder();\n } else {\n return agent_ == null ?\n org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "Proxy getProxy();", "public Agent getAgent(String agentId) {\n return agentMap.get(agentId);\n }", "public interface ICordysGatewayClientFactory\r\n{\r\n /**\r\n * Return a client (the factory is also responsable for creating the gateway).\r\n *\r\n * @return A cordys gateway client.\r\n */\r\n ICordysGatewayClient getGatewayClientInstance();\r\n}", "public Agent getAgent(URI agentId) {\n return agentId == null ? null : getAgent(agentId.toString());\n }", "public Agent getAgent(Maze maze, Bot bot){\n\n return new Agent(maze, bot, maze.getEntX(), maze.getEntY());\n }", "@JsonGetter(\"agent\")\n public Object getAgent ( ) { \n return this.agent;\n }", "ShipmentGatewayConfig createShipmentGatewayConfig();", "public org.biocatalogue.x2009.xml.rest.Agent addNewAgent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.Agent target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.Agent)get_store().add_element_user(AGENT$0);\r\n return target;\r\n }\r\n }", "public Agent generateAgent(){\r\n\r\n\t\t\tlogger.info(\"generateAgent method\");\r\n\r\n\t\t\tPatch currentPatch = randPatch();\r\n\r\n\t\t\tlogger.info(\"random patch: x = \" + currentPatch.getX()\r\n\t\t\t\t\t\t+ \" y = \" + currentPatch.getY());\r\n\r\n\r\n\t\t\tAgent agent= new Agent(currentPatch, false);\r\n\r\n\t\t\tcurrentPatch.setPerson(agent);\r\n\r\n\t\t\treturn agent;\r\n\t\t}", "@Nonnull\n HashMap<String, Object> createAgentConfiguration();", "public InetAddress getInitialGateway() {\n if (mIpConfiguration != null && mIpConfiguration.getStaticIpConfiguration() != null) {\n return mIpConfiguration.getStaticIpConfiguration().gateway;\n } else {\n return null;\n }\n }", "protected RemoteFactory.Agent.Component<Msg, Ref> newAgent() {\n RemoteFactory.Agent<Msg, Ref> _implem = _createImplementationOfAgent();\n return _implem._newComponent(new RemoteFactory.Agent.Requires<Msg, Ref>() {},true);\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo getVpnGateway() {\n if (vpnGatewayBuilder_ == null) {\n if (stepInfoCase_ == 10) {\n return (com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo.getDefaultInstance();\n } else {\n if (stepInfoCase_ == 10) {\n return vpnGatewayBuilder_.getMessage();\n }\n return com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo.getDefaultInstance();\n }\n }", "public void setGateway(AGateway gateway)\r\n/* 21: */ {\r\n/* 22:41 */ this.gateway = gateway;\r\n/* 23: */ }", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.agent.v1.Agent getAgentReq(Agent agent){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.agent.v1.Agent agentReq = \n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.agent.v1.Agent();\n\t\t\n\t\tagentReq.setAgentNo( agent.getAgentNo() );\n\t\tagentReq.setFirstName( agent.getFirstName() );\n\t\tagentReq.setLastName( agent.getLastName() );\n\t\tagentReq.setFullName( agent.getFullName() );\n\t\tagentReq.setEmailId( agent.getEmailId() );\n\t\tagentReq.setRoyaltyNo( agent.getRoyaltyNo() );\n\t\tagentReq.setPrint( agent.getPrint() );\n\t\tagentReq.setFaxInput( agent.getFaxInput() );\n\t\t\n\t\treturn agentReq;\n\t}", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.biocatalogue.x2009.xml.rest.Agent get(int i)\r\n { return AgentsResultsImpl.this.getAgentArray(i); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent set(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.setAgentArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.biocatalogue.x2009.xml.rest.Agent o)\r\n { AgentsResultsImpl.this.insertNewAgent(i).set(o); }\r\n \r\n public org.biocatalogue.x2009.xml.rest.Agent remove(int i)\r\n {\r\n org.biocatalogue.x2009.xml.rest.Agent old = AgentsResultsImpl.this.getAgentArray(i);\r\n AgentsResultsImpl.this.removeAgent(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return AgentsResultsImpl.this.sizeOfAgentArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new AgentList();\r\n }\r\n }", "public InetAddress getGatewayIPAddress()\n {\n return gatewayIPAddress;\n }", "public static synchronized EngagementAgent getInstance(Context context)\n {\n /* Always check this even if we instantiate once to trigger null pointer in all cases */\n if (sInstance == null)\n sInstance = new EngagementAgent(context.getApplicationContext());\n return sInstance;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo,\n com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfoOrBuilder>\n getVpnGatewayFieldBuilder() {\n if (vpnGatewayBuilder_ == null) {\n if (!(stepInfoCase_ == 10)) {\n stepInfo_ =\n com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo.getDefaultInstance();\n }\n vpnGatewayBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo,\n com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfoOrBuilder>(\n (com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo) stepInfo_,\n getParentForChildren(),\n isClean());\n stepInfo_ = null;\n }\n stepInfoCase_ = 10;\n onChanged();\n return vpnGatewayBuilder_;\n }", "public interface RuntimeServices {\n\n /**\n * Creates a new agent with <i>agName</i> from source\n * <i>agSource</i>, using <i>agClass</i> as agent class (default\n * value is \"jason.asSemantics.Agent\"), <i>archClasses</i> as agent\n * architecture classes,\n * <i>bbPars</i> as the belief base\n * class (default value is \"DefaultBeliefBase\"), <i>stts</i> as\n * Settings (default value is new Settings()), and\n * <i>father</i> is the agent creating this agent (null is none).\n *\n * if no archClasses is informed (null value),\n * if fathers is informed\n * use father's ag archs\n * else\n * use default ag archs (see registerDefaultAgArch)\n *\n * <p> Example: createAgent(\"bob\", \"bob.asl\", \"mypkg.MyAgent\", null, null, null);\n *\n * Returns the name of the agent\n */\n public String createAgent(String agName, String agSource, String agClass, Collection<String> archClasses, ClassParameters bbPars, Settings stts, Agent father) throws Exception;\n\n public String getNewAgentName(String baseName);\n\n /** register a class to be included as new agents archs */\n default public void registerDefaultAgArch(String agArch) {}\n\n default public Collection<String> getDefaultAgArchs() { return new ArrayList<>(); }\n\n /** starts an agent (e.g. create thread for it) */\n public void startAgent(String agName);\n\n /**\n * Clones an agent\n *\n * @param source: the agent used as source for beliefs, plans, ...\n * @param archClassName: agent architectures that will be used\n * @param agName: the name of the clone\n * @return the agent arch created\n * @throws JasonException\n */\n public AgArch clone(Agent source, Collection<String> archClasses, String agName) throws JasonException;\n\n /**\n * Kills the agent named <i>agName</i> as a requested by <i>byAg</i>.\n * Agent.stopAg() method is called before the agent is removed.\n */\n public boolean killAgent(String agName, String byAg, int deadline);\n\n /** Returns a set of all agents' name */\n public Collection<String> getAgentsNames();\n\n /** Gets the number of agents in the MAS. */\n public int getAgentsQty();\n\n /** Stops all MAS (the agents, the environment, the controller, ...) */\n public void stopMAS(int deadline) throws Exception;\n default public void stopMAS() throws Exception { stopMAS(0); }\n\n default public void dfRegister(String agName, String service, String type) {}\n default public void dfDeRegister(String agName, String service, String type) {}\n default public Collection<String> dfSearch(String service, String type) { return new ArrayList<>(); }\n default public void dfSubscribe(String agName, String service, String type) {}\n}", "public String getAgentName ()\n {\n return agentName;\n\n }", "boolean getNeedGatewayAuth();", "ORGateway createORGateway();", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo getVpnGateway() {\n if (stepInfoCase_ == 10) {\n return (com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo.getDefaultInstance();\n }", "public String getGatewayIp() {\n return gatewayIp;\n }", "ShipmentGatewayDhl createShipmentGatewayDhl();", "com.google.container.v1.GkeBackupAgentConfig getGkeBackupAgentConfig();", "private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }", "public IDiogenAgent getHostAgent() {\n return this.hostAgent;\n }", "public String getGatewayId() {\n return this.gatewayId;\n }", "public Agent createNewAgent() throws MaceException{\r\n\t\tAgent agent = new Agent(\"n\" + maxAgentId, Agent.AGENT_BUYER);\r\n\t\taddAgent(agent);\r\n\t\tmaxAgentId++;\r\n\t\treturn agent;\r\n\t}", "public String getGatewayARN() {\n return gatewayARN;\n }", "public String getAgentId() {\n return agentId;\n }", "public interface IPSAgent\n{\n /**\n * This method is the first one to be called by the Agent Manager just after\n * instantiating the implementing class object. This is called only once in\n * the object's life cycle.\n * @param configData - DOM Element representing the configuration data\n * defined in the configuration file. The implementor dictates the DTD for\n * the element depending on what he needs.\n * @throws PSAgentException if initialization fails for any reason\n */\n void init(Element configData) throws PSAgentException;\n\n /**\n * This method is the engine of the agent and called any time a service from\n * this agent is requested by the Agent Manager.\n * @param action - name of the action to be excuted by the agent.\n * @param params - Map (name, value pairs) of all parameters from the\n * request\n * @param response <code>IPSAgentHandlerResponse</code> object that can be\n * used to set the results of execution of the action. If the requested\n * action is not implmented or enough parameters are not supplied to execute\n * the action, the result can be set to error.\n */\n void executeAction(String action, Map params,\n IPSAgentHandlerResponse response);\n\n /**\n * This method is called by the Agent Manager while shuttingdown. May be\n * used to do any cleaning.\n */\n void terminate();\n}", "protected IBrowserManager getBrowserMgr () {\n return (this.theBrowserMgr);\n }", "@Override\n public AgentManagementServiceGrpc.AgentManagementServiceStub getV3GrpcAgentClient() {\n return federation.getCells().get(0).getTitusOperations().getV3GrpcAgentClient();\n }", "public static void helloAgent(){\n\t\tHelloAgent agent = new HelloAgent();\r\n\t\r\n\t}", "java.lang.String getAgentName();", "public String getAgentId() {\n return this.agentId;\n }", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "@Override\n\tprotected ProductHierarchyServiceServiceagent getServiceAgent() {\n\t\ttry {\n\t\t\tURL url = new URL(this.getWebServiceUri());\n\t\t\treturn new ProductHierarchyServiceServiceagent(url);\n\t\t} catch (MalformedURLException e) {\n\t\t\tProductHierarchyServiceClient.logger.error(e.getMessage());\n\t\t}\n\t\treturn new ProductHierarchyServiceServiceagent();\n\t}", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfoOrBuilder\n getVpnGatewayOrBuilder() {\n if ((stepInfoCase_ == 10) && (vpnGatewayBuilder_ != null)) {\n return vpnGatewayBuilder_.getMessageOrBuilder();\n } else {\n if (stepInfoCase_ == 10) {\n return (com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo.getDefaultInstance();\n }\n }", "@Override\n public GetWirelessGatewayResult getWirelessGateway(GetWirelessGatewayRequest request) {\n request = beforeClientExecution(request);\n return executeGetWirelessGateway(request);\n }", "public CreateGaugeGoal(Agent agent) {\n\t\tsuper(agent);\n\t}", "public String getAgentName() {\n return agentName;\n }", "public Object getProxy() {\n\t\t\r\n\t\treturn getProxy(this.advised.getTargetClass().getClassLoader());\r\n\t}", "AgentPolicy build();", "public CreateVpnGatewayResponse createVpnGateway(CreateVpnGateway createVpnGateway) {\n \t\treturn null;\r\n \t}", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "public List<Gateway> getListGateway() {\n\n\t\tList<Gateway> listGatewayReturn = new ArrayList<Gateway>();\n\n\t\tString jpqlGateway = \"select g from Gateway g\";\n\t\tTypedQuery<Gateway> queryCreate = entityManager.createQuery(jpqlGateway, Gateway.class);\n\n\t\tfor (Gateway gtw : queryCreate.getResultList()) {\n\t\t\tif (gtw.isStatus()) {\n\t\t\t\tGateway gateway = new Gateway();\n\t\t\t\t\n\t\t\t\tString jpqlBI = \"select bi from BundlerInstalled bi where bi.id.gateway = :gtw\";\n\t\t\t\tTypedQuery<BundlerInstalled> queryCreateBI = entityManager.createQuery(jpqlBI, BundlerInstalled.class);\n\t\t\t\tqueryCreateBI.setParameter(\"gtw\", gtw);\n\t\t\t\t\n\t\t\t\tgtw.getListBundlerInstalled().addAll(queryCreateBI.getResultList());\n\t\t\t\tgateway = gtw;\n\t\t\t\t\n\t\t\t\t//por algum motivo ele só carrega quando uso algum comando\n\t\t\t\tgateway.getListBundlerInstalled().isEmpty();\n\t\t\t\t\n\t\t\t\tlistGatewayReturn.add(gateway);\n\t\t\t}\n\t\t}\n\n\t\treturn listGatewayReturn;\n\t}", "protected HttpJsonAgentsStub(\n AgentsStubSettings settings,\n ClientContext clientContext,\n HttpJsonStubCallableFactory callableFactory)\n throws IOException {\n this.callableFactory = callableFactory;\n this.httpJsonOperationsStub =\n HttpJsonOperationsStub.create(\n clientContext,\n callableFactory,\n typeRegistry,\n ImmutableMap.<String, HttpRule>builder()\n .put(\n \"google.longrunning.Operations.CancelOperation\",\n HttpRule.newBuilder()\n .setPost(\"/v3/{name=projects/*/operations/*}:cancel\")\n .addAdditionalBindings(\n HttpRule.newBuilder()\n .setPost(\"/v3/{name=projects/*/locations/*/operations/*}:cancel\")\n .build())\n .build())\n .put(\n \"google.longrunning.Operations.GetOperation\",\n HttpRule.newBuilder()\n .setGet(\"/v3/{name=projects/*/operations/*}\")\n .addAdditionalBindings(\n HttpRule.newBuilder()\n .setGet(\"/v3/{name=projects/*/locations/*/operations/*}\")\n .build())\n .build())\n .put(\n \"google.longrunning.Operations.ListOperations\",\n HttpRule.newBuilder()\n .setGet(\"/v3/{name=projects/*}/operations\")\n .addAdditionalBindings(\n HttpRule.newBuilder()\n .setGet(\"/v3/{name=projects/*/locations/*}/operations\")\n .build())\n .build())\n .build());\n\n HttpJsonCallSettings<ListAgentsRequest, ListAgentsResponse> listAgentsTransportSettings =\n HttpJsonCallSettings.<ListAgentsRequest, ListAgentsResponse>newBuilder()\n .setMethodDescriptor(listAgentsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetAgentRequest, Agent> getAgentTransportSettings =\n HttpJsonCallSettings.<GetAgentRequest, Agent>newBuilder()\n .setMethodDescriptor(getAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<CreateAgentRequest, Agent> createAgentTransportSettings =\n HttpJsonCallSettings.<CreateAgentRequest, Agent>newBuilder()\n .setMethodDescriptor(createAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"parent\", String.valueOf(request.getParent()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateAgentRequest, Agent> updateAgentTransportSettings =\n HttpJsonCallSettings.<UpdateAgentRequest, Agent>newBuilder()\n .setMethodDescriptor(updateAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"agent.name\", String.valueOf(request.getAgent().getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<DeleteAgentRequest, Empty> deleteAgentTransportSettings =\n HttpJsonCallSettings.<DeleteAgentRequest, Empty>newBuilder()\n .setMethodDescriptor(deleteAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ExportAgentRequest, Operation> exportAgentTransportSettings =\n HttpJsonCallSettings.<ExportAgentRequest, Operation>newBuilder()\n .setMethodDescriptor(exportAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<RestoreAgentRequest, Operation> restoreAgentTransportSettings =\n HttpJsonCallSettings.<RestoreAgentRequest, Operation>newBuilder()\n .setMethodDescriptor(restoreAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ValidateAgentRequest, AgentValidationResult>\n validateAgentTransportSettings =\n HttpJsonCallSettings.<ValidateAgentRequest, AgentValidationResult>newBuilder()\n .setMethodDescriptor(validateAgentMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetAgentValidationResultRequest, AgentValidationResult>\n getAgentValidationResultTransportSettings =\n HttpJsonCallSettings\n .<GetAgentValidationResultRequest, AgentValidationResult>newBuilder()\n .setMethodDescriptor(getAgentValidationResultMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetGenerativeSettingsRequest, GenerativeSettings>\n getGenerativeSettingsTransportSettings =\n HttpJsonCallSettings.<GetGenerativeSettingsRequest, GenerativeSettings>newBuilder()\n .setMethodDescriptor(getGenerativeSettingsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<UpdateGenerativeSettingsRequest, GenerativeSettings>\n updateGenerativeSettingsTransportSettings =\n HttpJsonCallSettings.<UpdateGenerativeSettingsRequest, GenerativeSettings>newBuilder()\n .setMethodDescriptor(updateGenerativeSettingsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\n \"generative_settings.name\",\n String.valueOf(request.getGenerativeSettings().getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<ListLocationsRequest, ListLocationsResponse>\n listLocationsTransportSettings =\n HttpJsonCallSettings.<ListLocationsRequest, ListLocationsResponse>newBuilder()\n .setMethodDescriptor(listLocationsMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n HttpJsonCallSettings<GetLocationRequest, Location> getLocationTransportSettings =\n HttpJsonCallSettings.<GetLocationRequest, Location>newBuilder()\n .setMethodDescriptor(getLocationMethodDescriptor)\n .setTypeRegistry(typeRegistry)\n .setParamsExtractor(\n request -> {\n RequestParamsBuilder builder = RequestParamsBuilder.create();\n builder.add(\"name\", String.valueOf(request.getName()));\n return builder.build();\n })\n .build();\n\n this.listAgentsCallable =\n callableFactory.createUnaryCallable(\n listAgentsTransportSettings, settings.listAgentsSettings(), clientContext);\n this.listAgentsPagedCallable =\n callableFactory.createPagedCallable(\n listAgentsTransportSettings, settings.listAgentsSettings(), clientContext);\n this.getAgentCallable =\n callableFactory.createUnaryCallable(\n getAgentTransportSettings, settings.getAgentSettings(), clientContext);\n this.createAgentCallable =\n callableFactory.createUnaryCallable(\n createAgentTransportSettings, settings.createAgentSettings(), clientContext);\n this.updateAgentCallable =\n callableFactory.createUnaryCallable(\n updateAgentTransportSettings, settings.updateAgentSettings(), clientContext);\n this.deleteAgentCallable =\n callableFactory.createUnaryCallable(\n deleteAgentTransportSettings, settings.deleteAgentSettings(), clientContext);\n this.exportAgentCallable =\n callableFactory.createUnaryCallable(\n exportAgentTransportSettings, settings.exportAgentSettings(), clientContext);\n this.exportAgentOperationCallable =\n callableFactory.createOperationCallable(\n exportAgentTransportSettings,\n settings.exportAgentOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.restoreAgentCallable =\n callableFactory.createUnaryCallable(\n restoreAgentTransportSettings, settings.restoreAgentSettings(), clientContext);\n this.restoreAgentOperationCallable =\n callableFactory.createOperationCallable(\n restoreAgentTransportSettings,\n settings.restoreAgentOperationSettings(),\n clientContext,\n httpJsonOperationsStub);\n this.validateAgentCallable =\n callableFactory.createUnaryCallable(\n validateAgentTransportSettings, settings.validateAgentSettings(), clientContext);\n this.getAgentValidationResultCallable =\n callableFactory.createUnaryCallable(\n getAgentValidationResultTransportSettings,\n settings.getAgentValidationResultSettings(),\n clientContext);\n this.getGenerativeSettingsCallable =\n callableFactory.createUnaryCallable(\n getGenerativeSettingsTransportSettings,\n settings.getGenerativeSettingsSettings(),\n clientContext);\n this.updateGenerativeSettingsCallable =\n callableFactory.createUnaryCallable(\n updateGenerativeSettingsTransportSettings,\n settings.updateGenerativeSettingsSettings(),\n clientContext);\n this.listLocationsCallable =\n callableFactory.createUnaryCallable(\n listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);\n this.listLocationsPagedCallable =\n callableFactory.createPagedCallable(\n listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);\n this.getLocationCallable =\n callableFactory.createUnaryCallable(\n getLocationTransportSettings, settings.getLocationSettings(), clientContext);\n\n this.backgroundResources =\n new BackgroundResourceAggregation(clientContext.getBackgroundResources());\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfoOrBuilder\n getVpnGatewayOrBuilder() {\n if (stepInfoCase_ == 10) {\n return (com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.VpnGatewayInfo.getDefaultInstance();\n }", "public String getGatewayFlag() {\n return gatewayFlag;\n }", "public interface ComponentAgent extends QueryAgent{\r\n\t\r\n\t/**\r\n\t * get ID. of the component.\r\n\t * \r\n\t * @return ID or null if it hasn't.\r\n\t */\r\n\tString getId();\r\n\t\r\n\t/**\r\n\t * get UUID. of the component.\r\n\t * \r\n\t * @return UUID.\r\n\t */\r\n\tString getUuid();\r\n\t\r\n\t/**\r\n\t * get attribute by specify name.\r\n\t * \r\n\t * @param name\r\n\t * attribute name.\r\n\t * @return attribute value or null if not found or otherwise.\r\n\t */\r\n\tObject getAttribute(String name);\r\n\r\n\t/**\r\n\t * get children agents.\r\n\t * \r\n\t * @return always return a list of children (may be empty).\r\n\t */\r\n\tList<ComponentAgent> getChildren();\r\n\r\n\t/**\r\n\t * get child by specify index.\r\n\t * \r\n\t * @param index\r\n\t * @return child agent or null if index is out of boundary.\r\n\t */\r\n\tComponentAgent getChild(int index);\r\n\t\r\n\t/**\r\n\t * Returns the associated owner component of this agent\r\n\t * @return\r\n\t */\r\n\t<T extends Component> T getOwner();\r\n\r\n\t/**\r\n\t * Returns the first child, if any.\r\n\t * \r\n\t * @since 1.2.1\r\n\t * @return the first child agent or null.\r\n\t */\r\n\tComponentAgent getFirstChild();\r\n\t\r\n\t/**\r\n\t * Returns the last child, if any.\r\n\t * \r\n\t * @since 1.2.1\r\n\t * @return the last child agent or null.\r\n\t */\r\n\tComponentAgent getLastChild();\r\n\t\r\n\t/**\r\n\t * Returns the next sibling, if any. \r\n\t * \r\n\t * @since 1.2.1\r\n\t * @return the next sibling agent or null.\r\n\t */\r\n\tComponentAgent getNextSibling();\r\n\t\r\n\t/**\r\n\t * Returns the previous sibling, if any. \r\n\t * \r\n\t * @since 1.2.1\r\n\t * @return the previous sibling agent or null.\r\n\t */\r\n\tComponentAgent getPreviousSibling();\r\n\r\n\t/**\r\n\t * get parent agent.\r\n\t * \r\n\t * @return parent agent or null if this is root agent.\r\n\t */\r\n\tComponentAgent getParent();\r\n\r\n\t/**\r\n\t * get desktop agent this component belonged to.\r\n\t * \r\n\t * @return desktop agent.\r\n\t */\r\n\tDesktopAgent getDesktop();\r\n\r\n\t/**\r\n\t * get page agent this component belonged to.\r\n\t * \r\n\t * @return page agent.\r\n\t */\r\n\tPageAgent getPage();\r\n\t\r\n\t/**\r\n\t * Click on this component, A short cut of {@link ClickAgent#click()} <p/>\r\n\t * If this component doesn't support {@link ClickAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see ClickAgent\r\n\t */\r\n\tvoid click();\r\n\t\r\n\t/**\r\n\t * Type on this component, it is a short cut of {@link InputAgent#type(String)} <p/>\r\n\t * If this component doesn't support {@link InputAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see InputAgent\r\n\t */\r\n\tvoid type(String value);\r\n\t\r\n\t/**\r\n\t * Input to this component, it is a short cut of {@link InputAgent#input(Object)} <p/>\r\n\t * If this component doesn't support {@link InputAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see InputAgent\r\n\t */\r\n\tvoid input(Object value);\r\n\t\r\n\t/**\r\n\t * Focus this component, it is a short cut of {@link FocusAgent#focus()} <p/>\r\n\t * If this component doesn't support {@link FocusAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see FocusAgent\r\n\t */\r\n\tvoid focus();\r\n\t\r\n\t/**\r\n\t * Blur this component, it is a short cut of {@link FocusAgent#blur()} <p/>\r\n\t * If this component doesn't support {@link FocusAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see FocusAgent\r\n\t */\r\n\tvoid blur();\r\n\t\r\n\t/**\r\n\t * Check this component, it is a short cut of {@link CheckAgent#check(boolean)}<p/>\r\n\t * If this component doesn't support {@link CheckAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see CheckAgent\r\n\t */\r\n\tvoid check(boolean checked);\r\n\t\r\n\t/**\r\n\t * Stroke a key on this component, it is a short cut of {@link KeyStrokeAgent#stroke(String)}<p/>\r\n\t * If this component doesn't support {@link KeyStrokeAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see KeyStrokeAgent\r\n\t */\r\n\tvoid stroke(String key);\r\n\t\r\n\t/**\r\n\t * Select this component, it is a short cut of {@link SelectAgent#select()}<p/>\r\n\t * If this component doesn't support {@link SelectAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see SelectAgent\r\n\t */\r\n\tvoid select();\r\n}", "private Agent createAgent(Class agentClass, Vertex vertex,\n Hashtable defaultAgentValues) {\n Agent ag;\n\n try {\n\n ProcessData data = new ProcessData();\n\n ag = (Agent) agentClass.getConstructor().newInstance();\n ag.setSimulator(this);\n ag.setWhiteBoard(defaultAgentValues);\n\t data.vertex = vertex;\n data.agent = ag;\n agents.put(ag, data);\n\n\t addAgentToVertex(vertex, ag);\n\n } catch (Exception e) {\n throw new IllegalArgumentException(e);\n }\n\n stats.add(new AgentCreationStat(ag.getClass()));\n\n return ag;\n }", "ANDGateway createANDGateway();", "void initialize (ZyniAgent agent, Object ... args);", "public Tunnel getTunnel();", "@Override\r\n\tpublic Graph getGrph() {\n\t\tList<Routes> routeList = storeRouteRepos();\r\n\t\tGraph.Edge[] GRAPH = new Graph.Edge[routeList.size()];\r\n\t\tRoutes route = new Routes();\r\n\r\n\t\tfor (int i = 0; i <= routeList.size() - 1; i++) {\r\n\t\t\troute = routeList.get(i);\r\n\t\t\tif ((route.getPlanetOrigin() != null) && (route.getPlanetDestination() != null)) {\r\n\t\t\t\tGRAPH[i] = new Graph.Edge(route.getPlanetOrigin(), route.getPlanetDestination(), route.getDistance());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tGraph g = new Graph(GRAPH);\r\n\t\t// g.dijkstra(START);\r\n\t\treturn g;\r\n\r\n\t}", "public AgentInstance instantiate(AgentInstance refererInstance, User user, AgentServer agentServer) throws AgentServerException {\n AgentInstance agentInstance = agentServer.getAgentInstance(user, dataSource, parameterValues, true);\r\n \r\n // Optionally record reference to instance\r\n if (refererInstance != null)\r\n agentInstance.addReference(refererInstance);\r\n \r\n // Mark the instance as being \"auto-created\"\r\n agentInstance.autoCreated = true;\r\n \r\n // Return the new instance\r\n return agentInstance;\r\n }", "public AgentController getAgent(String name, boolean isGuid) throws ControllerException {\n\t\tif(myImpl == null || myProxy == null) {\n\t\t\tthrow new StaleProxyException();\n\t\t}\n\n\t\tAID agentID = new AID(name, isGuid);\n\n\t\t// Check that the agent exists\n\t\tjade.core.Agent instance = myImpl.acquireLocalAgent(agentID);\n\t\tif (instance == null) {\n\t\t\tthrow new ControllerException(\"Agent \" + agentID.getName() + \" not found.\");\n\t\t} \n\t\tmyImpl.releaseLocalAgent(agentID);\n\t\treturn new AgentControllerImpl(agentID, myProxy, myImpl);\n\t}", "@java.lang.Override\n public boolean hasAgent() {\n return agent_ != null;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public GatewayInfo() {\n\n\t}", "public static GenomeAdapter getGenome() {\n return genomeController.getGenome();\n }", "public interface LDMServesPlugin extends PrototypeRegistryService {\n\n /**\n * Equivalent to <code>((PlanningFactory) getFactory(\"planning\"))</code>.\n */\n PlanningFactory getFactory();\n\n /** @return the Requested Domain's LDM Factory.\n **/\n Factory getFactory(String domainName);\n\n /** @return the Requested Domain's LDM Factory.\n **/\n Factory getFactory(Class domainClass);\n\n /** @return the classloader to be used for loading classes for the LDM.\n * Domain Plugins should not use this, as they will have been themselves\n * loaded by this ClassLoader. Some infrastructure components which are\n * not loaded in the same way will require this for correct operation.\n **/\n ClassLoader getLDMClassLoader();\n\n /** The current agent's Address */\n MessageAddress getMessageAddress();\n \n UIDServer getUIDServer();\n\n /**\n * If the Delegator is used, this gets the real thing\n **/\n LDMServesPlugin getLDM();\n\n class Delegator implements LDMServesPlugin {\n private LDMServesPlugin ldm;\n Delegator() { }\n\n synchronized void setLDM(LDMServesPlugin ldm) {\n this.ldm = ldm;\n }\n\n public LDMServesPlugin getLDM() {\n return ldm != null ? ldm : this;\n }\n public void addPrototypeProvider(PrototypeProvider prov) {\n ldm.addPrototypeProvider(prov);\n }\n public void addPropertyProvider(PropertyProvider prov) {\n ldm.addPropertyProvider(prov);\n }\n public void addLatePropertyProvider(LatePropertyProvider lpp) {\n ldm.addLatePropertyProvider(lpp);\n }\n public void fillProperties(Asset anAsset) {\n ldm.fillProperties(anAsset);\n }\n public PropertyGroup lateFillPropertyGroup(Asset anAsset, Class pg, long time) {\n return ldm.lateFillPropertyGroup(anAsset, pg, time);\n }\n public int getPrototypeProviderCount() {\n return ldm.getPrototypeProviderCount();\n }\n public int getPropertyProviderCount() {\n return ldm.getPropertyProviderCount();\n }\n public PlanningFactory getFactory() {\n return ldm.getFactory();\n }\n public Factory getFactory(String domainName) {\n return ldm.getFactory(domainName);\n }\n public Factory getFactory(Class domainClass) {\n return ldm.getFactory(domainClass);\n }\n public ClassLoader getLDMClassLoader() {\n return ldm.getLDMClassLoader();\n }\n public MessageAddress getMessageAddress() {\n return ldm.getMessageAddress();\n }\n public UIDServer getUIDServer() {\n return ldm.getUIDServer();\n }\n\n //\n // set up a temporary prototype cache while bootstrapping\n //\n\n private HashMap _pcache;\n private HashMap pc() { /* must be called within synchronized */\n if (_pcache == null) {\n _pcache = new HashMap(13);\n }\n return _pcache;\n }\n\n // called by LDMContextTable to read out any cached prototypes into the real one\n synchronized HashMap flushTemporaryPrototypeCache() {\n HashMap c = _pcache;\n _pcache = null;\n return c;\n }\n\n public synchronized void cachePrototype(String aTypeName, Asset aPrototype) {\n if (ldm != null) {\n ldm.cachePrototype(aTypeName, aPrototype);\n } else {\n pc().put(aTypeName, aPrototype);\n }\n }\n public synchronized boolean isPrototypeCached(String aTypeName) {\n if (ldm != null) {\n return ldm.isPrototypeCached(aTypeName);\n } else {\n return (_pcache==null?false:_pcache.get(aTypeName)!=null);\n }\n }\n public synchronized Asset getPrototype(String aTypeName, Class anAssetClass) {\n if (ldm != null) {\n return ldm.getPrototype(aTypeName, anAssetClass);\n } else {\n return (Asset) (_pcache==null?null:_pcache.get(aTypeName)); /*no hint passed, since we've got no actual providers*/\n }\n }\n public synchronized Asset getPrototype(String aTypeName) {\n if (ldm != null) {\n return ldm.getPrototype(aTypeName);\n } else {\n return (Asset) (_pcache == null?null:_pcache.get(aTypeName));\n } \n }\n public synchronized int getCachedPrototypeCount() {\n if (ldm != null) {\n return ldm.getCachedPrototypeCount();\n } else {\n return (_pcache == null)?0:pc().size();\n }\n }\n }\n}", "public Agent getAgent(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.agent.v1.Agent res){\n\t\tAgent agent = new Agent();\n\t\t\n\t\tagent.setAgentNo( res.getAgentNo() );\n\t\tagent.setFirstName( res.getFirstName() );\n\t\tagent.setLastName( res.getLastName() );\n\t\tagent.setFullName( res.getFullName() );\n\t\tagent.setEmailId( res.getEmailId() );\n\t\tagent.setRoyaltyNo( res.getRoyaltyNo() );\n\t\tagent.setPrint( res.getPrint() );\n\t\tagent.setFaxInput( res.getFaxInput() );\n\t\t\n\t\treturn agent;\n\t}", "ShipmentGatewayConfigType createShipmentGatewayConfigType();", "public static Gadget getInstance(){\r\n\t\t\treturn instance;\r\n\t\t}", "public String getAgentContactor() {\n return agentContactor;\n }", "public Router getRouter();", "@Override\n\tpublic void agentSetup() {\n\n\t\t// load the class names of each object\n\t\tString os = dagent.getOfferingStrategy().getClassname();\n\t\tString as = dagent.getAcceptanceStrategy().getClassname();\n\t\tString om = dagent.getOpponentModel().getClassname();\n\t\tString oms = dagent.getOMStrategy().getClassname();\n\n\t\t// createFrom the actual objects using reflexion\n\n\t\tofferingStrategy = BOAagentRepository.getInstance().getOfferingStrategy(os);\n\t\tacceptConditions = BOAagentRepository.getInstance().getAcceptanceStrategy(as);\n\t\topponentModel = BOAagentRepository.getInstance().getOpponentModel(om);\n\t\tomStrategy = BOAagentRepository.getInstance().getOMStrategy(oms);\n\n\t\t// init the components.\n\t\ttry {\n\t\t\topponentModel.init(negotiationSession, dagent.getOpponentModel().getParameters());\n\t\t\topponentModel.setOpponentUtilitySpace(fNegotiation);\n\t\t\tomStrategy.init(negotiationSession, opponentModel, dagent.getOMStrategy().getParameters());\n\t\t\tofferingStrategy.init(negotiationSession, opponentModel, omStrategy,\n\t\t\t\t\tdagent.getOfferingStrategy().getParameters());\n\t\t\tacceptConditions.init(negotiationSession, offeringStrategy, opponentModel,\n\t\t\t\t\tdagent.getAcceptanceStrategy().getParameters());\n\t\t\tacceptConditions.setOpponentUtilitySpace(fNegotiation);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// remove the reference to the information object such that the garbage\n\t\t// collector can remove it.\n\t\tdagent = null;\n\t}" ]
[ "0.6934508", "0.6859549", "0.6356419", "0.63122666", "0.62022036", "0.6046418", "0.60280555", "0.59532595", "0.5930216", "0.590925", "0.5888291", "0.5867793", "0.5827093", "0.58124584", "0.57962096", "0.57904434", "0.57654864", "0.5752023", "0.57338643", "0.57270545", "0.5698148", "0.5655119", "0.56343555", "0.56325704", "0.5628864", "0.5615171", "0.55974764", "0.55658704", "0.55420685", "0.55381924", "0.5530857", "0.5524629", "0.55246127", "0.54855996", "0.5478489", "0.5447432", "0.5444457", "0.542951", "0.54225785", "0.5421823", "0.541759", "0.5406365", "0.5327967", "0.5325932", "0.53184986", "0.5279584", "0.52596503", "0.5258911", "0.5241367", "0.5230395", "0.519508", "0.5185109", "0.51699257", "0.51654077", "0.51646733", "0.51574486", "0.51445204", "0.5127037", "0.5123724", "0.50991666", "0.50864214", "0.50844437", "0.5072699", "0.5058058", "0.50557965", "0.5032598", "0.5014875", "0.5008033", "0.49985233", "0.4994646", "0.499346", "0.4991758", "0.49818566", "0.4979969", "0.49682975", "0.4954044", "0.49520752", "0.49494472", "0.49457857", "0.49382913", "0.49269146", "0.49221155", "0.4922047", "0.49211183", "0.49174204", "0.49026453", "0.4886939", "0.48754096", "0.48737112", "0.4871581", "0.48648092", "0.48648092", "0.4862802", "0.48578152", "0.4836861", "0.48347527", "0.48295358", "0.4819823", "0.48188365", "0.48180076", "0.48163617" ]
0.0
-1
TODO: Make this encrypted somehow?
public static void setAgraphPassword(String password) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Encryption encryption();", "public String encrypt() throws LRException\n\t{\n\t\treturn LUEncrypt.encrypt(getFields(),\n\t\t\t((DataHRecordData)getData()).encryptKey.getStringValue());\n\t}", "public doEncryptNotifdeEncode() {\n\t}", "@Override\n public String encrypt(String s) throws NotInAlphabetException{ \n passwordPos = 0; //initialize to 0\n return super.encrypt(s); //invoke parent\n }", "String encryption(Long key, String encryptionContent);", "public String Crypt(String s);", "public String encrypt(String geheimtext);", "@Override\n public void encrypt() {\n algo.encrypt();\n String cypher = vigenereAlgo(true);\n this.setValue(cypher);\n }", "public static byte[] getEncryptRawKey() {\n\n try {\n /*byte[] bytes64Key = App.RealmEncryptionKey.getBytes(\"UTF-8\");\n KeyGenerator kgen = KeyGenerator.getInstance(\"AES\");\n SecureRandom sr = SecureRandom.getInstance(\"SHA1PRNG\");\n sr.setSeed(bytes64Key);\n kgen.init(128, sr);\n SecretKey skey = kgen.generateKey();\n byte[] raw = skey.getEncoded();*/\n\n byte[] key = new BigInteger(App.RealmEncryptionKey, 16).toByteArray();\n return key;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "public String encrypt() {\n StringBuilder encryptedText = new StringBuilder();\n //Make sure the key is valid.\n if (key < 0 || key > 25) {\n Log.d(\"TAG\", \"encrypt: Error in Keu=y \");\n return \"Key Must be 0 : 25\";\n }\n if (plaintext.length() <= 0) {\n Log.d(\"TAG\", \"encrypt: Error in Plain\");\n return \"Error in Plaintext\";\n }\n //Eliminates any whitespace and non alpha char's.\n plaintext = plaintext.trim();\n plaintext = plaintext.replaceAll(\"\\\\W\", \"\");\n if (plaintext.contains(\" \")) {\n plaintext = plaintext.replaceAll(\" \", \"\");\n }\n //Makes sure that all the letters are uppercase.\n plaintext = plaintext.toUpperCase();\n Log.i(\"Caesar\", \"encrypt: plainis : \" + plaintext);\n for (int i = 0; i < plaintext.length(); i++) {\n char letter = plaintext.charAt(i);\n if (charMap.containsKey(letter) && charMap.get(letter) != null) {\n int lookUp = (charMap.get(letter) + key) % 26;\n encryptedText.append(encryptionArr[lookUp]);\n }\n }\n Log.d(\"Caesar.java\", \"encrypt: the Data is \" + encryptedText.toString());\n return encryptedText.toString();\n }", "private void encode(){\r\n \r\n StringBuilder sb = new StringBuilder();\r\n \r\n /*\r\n *if a character code is >126 after adding the encryption key, subtract \r\n *95 to wrap\r\n */\r\n for(int i = 0; i < message.length(); i++){\r\n if(message.charAt(i) + key > 126){\r\n int wrappedKey = message.charAt(i) + key - 95;\r\n \r\n sb.append((char) wrappedKey);\r\n \r\n /*\r\n *if a character code ins't > 126 after adding the encryption key\r\n */\r\n } else{\r\n int wrappedKey = message.charAt(i) + key;\r\n sb.append( (char) wrappedKey);\r\n }\r\n }\r\n /*\r\n *case coded message to a string\r\n */\r\n codedMessage = sb.toString();\r\n }", "private static String m5297cj() {\n try {\n KeyGenerator instance = KeyGenerator.getInstance(\"AES\");\n instance.init(128);\n return Base64.encodeToString(instance.generateKey().getEncoded(), 0);\n } catch (Throwable unused) {\n return null;\n }\n }", "public void testCaesar(){\n String msg = \"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\";\n \n /*String encrypted = encrypt(msg, key);\n System.out.println(\"encrypted \" +encrypted);\n \n String decrypted = encrypt(encrypted, 26-key);\n System.out.println(\"decrypted \" + decrypted);*/\n \n \n String encrypted = encrypt(msg, 15);\n System.out.println(\"encrypted \" +encrypted);\n \n }", "OutputFile encryptingOutputFile();", "protected void setEncrypted() {\n content = this.aesKey.encrypt(this.content);\n }", "String encrypt(String input) {\n\t\treturn BaseEncoding.base64().encode(input.getBytes());\n\t}", "public EnScrypt() {}", "@Override\n\tpublic boolean isNeedEncrypt() {\n\t\treturn false;\n\t}", "public static String encrypt(String seed, String plain) throws Exception {\r\nbyte[] rawKey = getRawKey(seed.getBytes());\r\nbyte[] encrypted = encrypt(rawKey, plain.getBytes());\r\nreturn Base64.encodeToString(encrypted, Base64.DEFAULT);\r\n}", "public EncryptorReturn encrypt(String in) throws CustomizeEncryptorException;", "@Override\n public String encryptMsg(String msg) {\n if (msg.length() == 0) {\n return msg;\n } else {\n char[] encMsg = new char[msg.length()];\n for (int ind = 0; ind < msg.length(); ++ind) {\n char letter = msg.charAt(ind);\n encMsg[ind] = (char) ((letter + key) % 65536);\n }\n return new String(encMsg);\n }\n }", "private String encryptMessage(String message) {\n int MESSAGE_LENGTH = message.length();\n //TODO: throw SizeTooBigException for message requirements\n if(MESSAGE_LENGTH > 1300){\n\n throw new SizeTooBigException();\n }\n\n final int length = message.length();\n String encryptedMessage = \"\";\n for (int i = 0; i < length; i++) {\n //TODO: throw InvalidCharacterException for message requirements\n int m = message.charAt(i);\n int k = this.kissKey.keyAt(i) - 'a';\n int value = m ^ k;\n encryptedMessage += (char) value;\n }\n return encryptedMessage;\n }", "private String encrypt (String password){\r\n String encrypted = \"\";\r\n char temp;\r\n int ASCII;\r\n //For each letter in password.\r\n for (int i = 0; i < password.length(); i++){\r\n temp = password.charAt(i);\r\n ASCII = (int) temp;\r\n //If the letter is a character.\r\n if (ASCII >= 32 && ASCII <= 127){\r\n int x = ASCII - 32;\r\n x = (x + 6) % 96; /*Mod the characters so that it cannot go over the amount.\r\n The letters are all shifted plus 6 characters along. */\r\n encrypted += (char) (x + 32);\r\n }\r\n }\r\n return encrypted;\r\n }", "private EncryptionUtility(){\r\n\t\treturn;\t\t\r\n\t}", "@Override\n\tpublic String getEncryptedPassword() {\n\t\treturn null;\n\t}", "public static byte[] encryptText(String plainText,SecretKey secKey) throws Exception{\n\r\n Cipher aesCipher = Cipher.getInstance(\"AES\");\r\n\r\n aesCipher.init(Cipher.ENCRYPT_MODE, secKey);\r\n\r\n byte[] byteCipherText = aesCipher.doFinal(plainText.getBytes());\r\n\r\n return byteCipherText;\r\n\r\n}", "byte[] encrypt(String plaintext);", "@Override\n public String toString() {\n System.out.print(super.toString());\n System.out.print(\"This form was encrypted using: \" + encryption);\n return \"\";\n }", "@Override\n\tpublic void Encrypt(Object key) {\n\n\t}", "public String encrypt(String plainText);", "@Test\n\tpublic void doEncrypt() {\n\t\tString src = \"18903193260\";\n\t\tString des = \"9oytDznWiJfLkOQspiKRtQ==\";\n\t\tAssert.assertEquals(Encryptor.getEncryptedString(KEY, src), des);\n\n\t\t/* Encrypt some plain texts */\n\t\tList<String> list = new ArrayList<String>();\n\t\tlist.add(\"18963144219\");\n\t\tlist.add(\"13331673185\");\n\t\tlist.add(\"18914027730\");\n\t\tlist.add(\"13353260117\");\n\t\tlist.add(\"13370052053\");\n\t\tlist.add(\"18192080531\");\n\t\tlist.add(\"18066874640\");\n\t\tlist.add(\"15357963496\");\n\t\tlist.add(\"13337179174\");\n\t\tfor (String str : list) {\n\t\t\tSystem.out.println(Encryptor.getEncryptedString(KEY, str));\n\t\t}\n\t}", "@Test\r\n public void testEncrypt()\r\n {\r\n System.out.println(\"encrypt\");\r\n String input = \"Hello how are you?\";\r\n KeyMaker km = new KeyMaker();\r\n SecretKeySpec sks = new SecretKeySpec(km.makeKeyDriver(\"myPassword\"), \"AES\");\r\n EncyptDecrypt instance = new EncyptDecrypt();\r\n String expResult = \"0fqylTncsgycZJQ+J5pS7v6/fj8M/fz4bavB/SnIBOQ=\";\r\n String result = instance.encrypt(input, sks);\r\n assertEquals(expResult, result);\r\n }", "public abstract String encryptMsg(String msg);", "public String encrypt(String word) {\n char[] encrypted = word.toCharArray();\n for (int i = 0; i < encrypted.length; i++){\n if (encrypted[i] == 'x' || encrypted[i] == 'y' || encrypted[i] == 'z'){\n encrypted[i] -= 23;\n } else {\n encrypted[i] += 3;\n }\n \n }\n String encryptedResult = new String(encrypted);\n return encryptedResult;\n }", "public static String encrypt(String input) {\n\t\tBase64.Encoder encoder = Base64.getMimeEncoder();\n String message = input;\n String key = encoder.encodeToString(message.getBytes());\n return key;\n\t}", "@Override\n public String encryptMsg(String msg) {\n if (msg.length() == 0) {\n return msg;\n } else {\n char[] encMsg = new char[msg.length()];\n for (int ind = 0; ind < msg.length(); ++ind) {\n char letter = msg.charAt(ind);\n if (letter >= 'a' && letter <= 'z') {\n encMsg[ind] = (char) ('a' + ((letter - 'a' + key) % 26));\n } else if (letter >= 'A' && letter <= 'Z') {\n encMsg[ind] = (char) ('A' + ((letter - 'A' + key) % 26));\n } else {\n encMsg[ind] = letter;\n }\n }\n return new String(encMsg);\n }\n }", "public void encrypt() {\n // JOptionPane.showMessageDialog(null, \"Encrypting ... Action-Type = \" + DES_action_type);\n int[] flipped_last2_cipher_rounds = new int[64];\n for (int i = 0; i < 32; i++) {\n flipped_last2_cipher_rounds[i] = DES_cipher_sequence[17][i];\n flipped_last2_cipher_rounds[32 + i] = DES_cipher_sequence[16][i];\n }\n DES_ciphertext = select(flipped_last2_cipher_rounds, FP);\n }", "private static String encrypt(String in){\n\n\t String alphabet = \"1234567890\";\n\n\t String scramble1 = \"<;\\'_$,.?:|)\";\n\t String scramble2 = \"XYZVKJUTHM\";\n\t String scramble3 = \"tuvwxyz&*}\";\n\t String scramble4 = \"~!-+=<>%@#\";\n\t String scramble5 = \"PUDHCKSXWZ\";\n\n\t char messageIn[] = in.toCharArray();\n\t String r = \"\";\n\n\t for(int i = 0; i < in.length(); i++){\n\n\t int letterIndex = alphabet.indexOf(in.charAt(i));\n\n\t if(i % 3 == 0){\n\t r += scramble1.charAt(letterIndex);\n\t }else if (i % 3 == 1){\n\t \tr += scramble2.charAt(letterIndex);\n\t }else if(i % 3 == 2){\n\t \tr += scramble3.charAt(letterIndex);\n\t }\n\t }\n\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------\");\n\t\t\t\tSystem.out.println(\" Encoded Message: \" + r);\n\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------\\n\\n\");\n\t\treturn r;\n\t}", "public String toEncryptedString() {\r\n\t\t\r\n\t\t// puts the optional fields as \"??\" if they were blanks.\r\n\t\tif(this.getAddress().length()==0)\r\n\t\t\tthis.setAddress(\"??\");\r\n\t\t\r\n\t\tif(this.getCity().length()==0)\r\n\t\t\tthis.setCity(\"??\");\t\t\r\n\t\t\r\n\t\t// encrypt contact info.\r\n\t\tString line = Method.encrypt(this.getLastName(), true)+\",\"\r\n\t\t\t+Method.encrypt(this.getFirstName(),true)+\",\"\r\n\t\t\t+Method.encrypt(this.getAddress(),true)+\",\"\r\n\t\t\t+Method.encrypt(this.getCity(),true)+\",\"\r\n\t\t\t+Method.encrypt(this.getPhoneNumber(),true);\r\n\t\t\r\n\t\treturn line;\r\n\t}", "@Override\n\tpublic String getEncryptSn() {\n\t\treturn null;\n\t}", "public String getEnryptedString() {\n this.enryptedString= encoderFunc();\n return this.enryptedString;\n }", "private String encrypt(String logMessage) {\n logMessage = logMessage.substring(logMessage.length() - 1)\n + logMessage.substring(0, logMessage.length() - 1);\n\n return logMessage;\n }", "public CryptObject reencrypt(Ciphertext ciphertext);", "Update withEncryption(Encryption encryption);", "public static String encrypt(String strToEncrypt)\n {\n try\n {\n Cipher cipher = Cipher.getInstance(\"AES/ECB/PKCS5Padding\");\n final SecretKeySpec secretKey = new SecretKeySpec(key, \"AES\");\n cipher.init(Cipher.ENCRYPT_MODE, secretKey);\n final String encryptedString = Base64.encodeBase64String(cipher.doFinal(strToEncrypt.getBytes()));\n return encryptedString;\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return null;\n\n }", "public String encrypt (String input) {\n // parameter checks. If input has nothing, or both keys\n // are zero, we have no work to do.\n if (!hasValue(input)) return \"\";\n if (mainKey1 == 0 && mainKey2 == 0) return input;\n\n // Start with a StringBuilder we can update below.\n StringBuilder encrypted = new StringBuilder(input);\n\n // Walk the input string and transform each letter that exists in\n // our alphabet\n for (int i = 0; i < encrypted.length(); i++) {\n char currChar = encrypted.charAt(i);\n int idx = alphabet.indexOf(currChar);\n if (idx != -1) {\n // Which alphabet do I use? even i is key1, odd i is key2\n String shiftedAlphabet = (i % 2 == 0) ? shiftedAlphabet1: shiftedAlphabet2;\n char newChar = shiftedAlphabet.charAt(idx);\n encrypted.setCharAt(i, newChar);\n }\n }\n\n return encrypted.toString();\n }", "private void encryptionAlgorithm() {\n\t\ttry {\n\t\t\t\n\t\t\tFileInputStream fileInputStream2=new FileInputStream(\"D:\\\\program\\\\key.txt\");\n\t\t\tchar key=(char)fileInputStream2.read();\n\t\t\tSystem.out.println(key);\n\t\t\tFileInputStream fileInputStream1=new FileInputStream(\"D:\\\\program\\\\message.txt\");\n\t\t\tint i=0;\n\t\t\t\n\t\t\tStringBuilder message=new StringBuilder();\n\t\t\twhile((i= fileInputStream1.read())!= -1 )\n\t\t\t{\n\t\t\t\tmessage.append((char)i);\n\t\t\t}\n\t\t\tString s=message.toString();\n\t\t\tchar[] letters=new char[s.length()];\n\t\t\tStringBuilder en=new StringBuilder();\n\t\t\tfor(int j = 0;j < letters.length;j++)\n\t\t\t{\n\t\t\t\ten.append((char)(byte)letters[j]+key);\n\t\t\t}\t\t\n\t\t\tFileOutputStream fileoutput=new FileOutputStream(\"D:\\\\program\\\\encryptedfile.txt\");\n\t\t\t\n\t\t\tfileInputStream1.close();\n\t\t\tfileInputStream2.close();\n\t\t\t\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t}", "@Override\n public String decrypt(String s) throws NotInAlphabetException{\n passwordPos = 0; //initialize to 0\n return super.decrypt(s); //invoke parent\n }", "public String cipher() {\n int[] r1taps = {13, 16, 17, 18};\n int[] r2taps = {20, 21};\n int[] r3taps = {7, 20, 21, 22};\n\n // Set register size and majority bits\n final int R1 = 19;\n final int R1M = 8;\n final int R2 = 22;\n final int R2M = 10;\n final int R3 = 23;\n final int R3M = 10;\n\n // Initialize variables\n String bs = \"\";\n byte[] key = HexStringToBytes(symKey);\n BitSet keySet = new BitSet();\n BitSet keyStream = new BitSet();\n BitSet messageSet = new BitSet();\n\n // Create a byte array length of sample message\n byte[] messageArray = new byte[message.length()];\n\n // Convert the sample message to a byte array\n try {\n messageArray = message.getBytes(\"ISO-8859-1\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n\n // Convert message sample byte array to string\n String as = \"\";\n for (int i = 0; i < messageArray.length; i++) {\n byte b1 = messageArray[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n as += s;\n }\n\n // Convert string of bits to a BitSet\n messageSet = BitStringToBitSet(as);\n\n // Creates string from key byte array\n for (int i = 0; i < 8; i++) {\n byte b1 = key[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n bs += s;\n }\n\n // Convert string of bits to a BitSet\n keySet = BitStringToBitSet(bs);\n\n // Initialize registers\n BitSet r1 = new BitSet();\n BitSet r2 = new BitSet();\n BitSet r3 = new BitSet();\n\n // Process key into registers\n for (int i = 0; i < 64; i++) {\n r1 = ShiftSet(r1, R1, keySet.get(i) ^ Tap(r1, r1taps));\n r2 = ShiftSet(r2, R2, keySet.get(i) ^ Tap(r2, r2taps));\n r3 = ShiftSet(r3, R3, keySet.get(i) ^ Tap(r3, r3taps));\n }\n\n // Clock additional 100 times for additional security (GSM standard)\n for (int i = 0; i < 100; i++) {\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n }\n\n // Create keystream as long as the sample message\n for (int i = 0; i < message.length() * 8; i++) {\n\n // Get keystream bit\n keyStream.set(i, r1.get(R1 - 1) ^ r2.get(R2 - 1) ^ r3.get(R3 - 1));\n\n // Shift majority registers\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n\n }\n\n // XOR the message with the created keystream and return as string\n messageSet.xor(keyStream);\n return BitStringToText(ReturnSet(messageSet, message.length() * 8));\n }", "private static String getEncryptedStoredPassword(String args[]) {\n return args[1].trim() ;\n }", "private void prga(){\n int i = 0;\n int a = 0;\n int b = 0;\n StringBuilder sb = new StringBuilder();\n fileEncrypted.clear();\n\n byte[] code = new byte[filePlain.size()];\n while (i<filePlain.size()){\n a = (a + 1) % 256;\n b = (b + s_box.get(a)) % 256;\n Collections.swap(s_box, a, b);\n\n int key_int = s_box.get((s_box.get(a) + s_box.get(b))% 256);\n byte cypher = (byte) (key_int^filePlain.get(i));\n\n fileEncrypted.add(cypher);\n sb.append((char)cypher);\n code[i] = cypher;\n i++;\n }\n\n System.out.println(\"aaa\");\n// export file\n Helper.exportFile(code, extension, true);\n }", "public String toString(){\n return String.format(\"Vigenere Cipher (password='%s')\", password);\n }", "String encryptString(String toEncrypt) throws NoUserSelectedException;", "public String encrypt(String word) {\n String [] encr = new String[word.length()];\n StringBuilder encrRet = new StringBuilder();\n for (int i = 0; i<word.length();i++)\n {\n char shift = (char) (((word.charAt(i) - 'a' + 3) % 26) + 'a');\n encrRet = encrRet.append(shift);\n }\n\n return encrRet.toString();\n }", "private String encrypt_password(String password)\r\n\t{\r\n\t\tString generated_password = null;\r\n try\r\n {\r\n\r\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n md.update(password.getBytes());\r\n byte[] bytes = md.digest();\r\n StringBuilder sb = new StringBuilder();\r\n for(int i=0; i< bytes.length ;i++)\r\n {\r\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n generated_password=sb.toString();\r\n }\r\n catch (NoSuchAlgorithmException e)\r\n {\r\n \r\n }\r\n return generated_password;\r\n\t}", "protected byte[] engineSharedSecret() throws KeyAgreementException {\n return Util.trim(ZZ);\n }", "static String encryption(String s) {\n\n s = s.replaceAll(\" \",\"\");\n StringBuffer sb = new StringBuffer(s);\n int len = sb.length();\n int L = (int)Math.floor(Math.sqrt(len));\n int M = (int)Math.ceil(Math.sqrt(len));\n int p = M;\n List<String> list = new ArrayList<>();\n for (int i = 0; i < sb.length();) {\n if(i+M < sb.length()){\n list.add(sb.substring(i, i+M));\n }else{\n list.add(sb.substring(i, len));\n }\n i=i+M;\n }\n\n StringBuffer[] tps = new StringBuffer[M];\n for (int i = 0; i < M ; i++) {\n StringBuffer tpsi = new StringBuffer();\n for (String str:\n list) {\n if(i < str.length())\n tpsi.append(str.charAt(i));\n }\n tps[i] = tpsi;\n }\n\n StringBuffer ans = new StringBuffer();\n for (StringBuffer str:\n tps) {\n ans.append(str.toString()+\" \");\n }\n return ans.toString();\n }", "public static String Encrypt(String inputText, String key) {\n String retVal = \"\";\n try {\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n byte[] keyBytes = new byte[16];\n byte[] b = key.getBytes();\n int len = b.length;\n if (len > keyBytes.length) {\n len = keyBytes.length;\n }\n System.arraycopy(b, 0, keyBytes, 0, len);\n SecretKeySpec keySpec = new SecretKeySpec(keyBytes, \"AES\");\n IvParameterSpec ivSpec = new IvParameterSpec(keyBytes);\n cipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec);\n BASE64Encoder _64e = new BASE64Encoder();\n byte[] encryptedData = cipher.doFinal(inputText.getBytes());\n retVal = _64e.encode(encryptedData);\n\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n return retVal;\n }", "private String encrypt(String input){\n\t\tbyte[] crypt = null;\n\t\t\n\t\ttry {\n\t\t\t// Génération d'une spec de clé secrète à partir de la clé \"secret\"\n\t\t\tSecretKeySpec KS = new SecretKeySpec(SECRET_KEY.getBytes(), \"Blowfish\");\n\t\t\t\n\t\t\t// Initialisation d'un code basé sur blowfish\n\t\t Cipher cipher = Cipher.getInstance(\"Blowfish\");\n\t\t cipher.init(Cipher.ENCRYPT_MODE, KS);\n\n\t\t // chiffrement du message\n\t\t crypt = cipher.doFinal(input.getBytes());\n\t\t\t\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.err.println(\"Algorithme inconnu \" + e.getMessage());\n\t\t} catch (NoSuchPaddingException e) {\n\t\t\tSystem.err.println(\"Offset inconnu \" + e.getMessage());\n\t\t} catch (InvalidKeyException e) {\n\t\t\tSystem.err.println(\"Clé non valide \" + e.getMessage());\n\t\t} catch (IllegalBlockSizeException e) {\n\t\t\tSystem.err.println(\"Bloc de taille invalide \" + e.getMessage());\n\t\t} catch (BadPaddingException e) {\n\t\t\tSystem.err.println(\"Mauvais Padding : \" + e.getMessage());\n\t\t}\n\t\t\n\t\t// (pour des raisons d'encodage des caractères et de sauvegarde des bytes[] en base, on gardera les HexValues)\n\t\treturn byteArrayToHexString(crypt);\n\t}", "public String encriptarPassword(String password)\r\n\t{\r\n\t\tString passwordencriptadomd=\"\";\r\n\t\tString passwordencriptadosh=\"\";\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tif(i==0){\r\n\t\t\t\tpasswordencriptadomd=Encriptar.getStringMessageDigest(password, Encriptar.MD5);\r\n\t\t\t\tpasswordencriptadosh=Encriptar.getStringMessageDigest(passwordencriptadomd, Encriptar.SHA1);\r\n\t\t\t}else{\r\n\t\t\t\tpasswordencriptadomd=Encriptar.getStringMessageDigest(passwordencriptadosh, Encriptar.MD5);\r\n\t\t\t\tpasswordencriptadosh=Encriptar.getStringMessageDigest(passwordencriptadomd, Encriptar.SHA1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn passwordencriptadosh;\r\n\t}", "private String encrypt(String plainData) throws Exception {\n Key key = generateKey();\n Cipher c = Cipher.getInstance(ALGO);\n c.init(Cipher.ENCRYPT_MODE, key);\n byte[] encValue = c.doFinal(plainData.getBytes());\n return Base64.getEncoder().encodeToString(encValue);\n }", "protected String encryptedDirectoryPath(String directoryPath)\n\t{\n\t\treturn directoryPath+\"\\\\encrypted\";\n\t\n\t}", "public String encrypt(String value) throws Exception\n {\n if ( key == null )\n {\n throw new Exception(\"CodecUtil must be initialised with the storeKey first.\");\n }\n try\n {\n Cipher pbeCipher = Cipher.getInstance(\"PBEWithMD5AndDES\");\n pbeCipher.init(Cipher.ENCRYPT_MODE, key, new PBEParameterSpec(salt, 20));\n return base64Encode(pbeCipher.doFinal(value.getBytes(\"UTF-8\")));\n }\n catch (Exception e)\n {\n throw new Exception(\"Encryption error :\" + e.getMessage());\n }\n }", "public synchronized void encryptText() {\n setSalt(ContentCrypto.generateSalt());\n try {\n mText = ContentCrypto.encrypt(mText, getSalt(), Passphrase.INSTANCE.getPassPhrase().toCharArray());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public static String encrypt(String rawPassword) {\n\t\treturn rawPassword;\r\n\t}", "public String encrypt(String input)\n {\n StringBuilder encrypted = new StringBuilder(input);\n\n String alphabetLower = alphabet.toLowerCase();\n String shiftedAlphabetLower1 = shiftedAlphabet1.toLowerCase();\n String shiftedAlphabetLower2 = shiftedAlphabet2.toLowerCase();\n\n for (int k = 0; k < encrypted.length() ; k++)\n {\n char currentChar = encrypted.charAt(k);\n int indexOfCurrentCharAlphabet = alphabet.indexOf(currentChar);\n int indexOfCurrentCharLower = alphabetLower.indexOf(currentChar);\n\n if (indexOfCurrentCharAlphabet != -1 && k % 2 == 0)\n {\n char newCurrentCharAlphabet = shiftedAlphabet1.charAt(indexOfCurrentCharAlphabet);\n encrypted.setCharAt(k, newCurrentCharAlphabet);\n }\n\n if (indexOfCurrentCharAlphabet != -1 && k % 2 != 0)\n {\n char newCurrentCharAlphabet = shiftedAlphabet2.charAt(indexOfCurrentCharAlphabet);\n encrypted.setCharAt(k, newCurrentCharAlphabet);\n }\n\n if (indexOfCurrentCharLower != -1 && k % 2 == 0)\n {\n char newCurrentCharLower = shiftedAlphabetLower1.charAt(indexOfCurrentCharLower);\n encrypted.setCharAt(k, newCurrentCharLower);\n }\n\n if (indexOfCurrentCharLower != -1 && k % 2 != 0)\n {\n char newCurrentCharLower = shiftedAlphabetLower2.charAt(indexOfCurrentCharLower);\n encrypted.setCharAt(k, newCurrentCharLower);\n }\n }\n return encrypted.toString();\n }", "@Override\n\tpublic boolean isEncrypted() {\n\t\treturn encrypted;\n\t}", "public Encryption encryption() {\n return this.encryption;\n }", "private byte[] encrypt(ECPoint point) {\n return point.multiply(privateKey.getS()).getEncoded(true);\n }", "@Test\n public void defaultEncoding() throws SecureCellException {\n String passphrase = \"\\u6697\\u53F7\";\n SecureCell.Seal cellA = SecureCell.SealWithPassphrase(passphrase);\n SecureCell.Seal cellB = SecureCell.SealWithPassphrase(passphrase.getBytes(StandardCharsets.UTF_8));\n byte[] message = \"All your base are belong to us!\".getBytes(StandardCharsets.UTF_8);\n\n byte[] encrypted = cellA.encrypt(message);\n byte[] decrypted = cellB.decrypt(encrypted);\n\n assertArrayEquals(message, decrypted);\n }", "public byte[] Tencryption() {\n int[] ciphertext = new int[message.length];\n\n for (int j = 0, k = 1; j < message.length && k < message.length; j = j + 2, k = k + 2) {\n sum = 0;\n l = message[j];\n r = message[k];\n for (int i = 0; i < 32; i++) {\n sum = sum + delta;\n l = l + (((r << 4) + key[0]) ^ (r + sum) ^ ((r >> 5) + key[1]));\n r = r + (((l << 4) + key[2]) ^ (l + sum) ^ ((l >> 5) + key[3]));\n }\n ciphertext[j] = l;\n ciphertext[k] = r;\n }\n return this.Inttobyte(ciphertext);\n\n }", "String encryptHiddenField(String value) throws EncryptionException;", "public String encrypt(final String value) {\n\t\treturn encryptor.encrypt(value);\n\t}", "@Override\n\tpublic void setEncryptedPassword(String arg0) {\n\t\t\n\t}", "public static String caesarCypherEncryptor(String str, int key) {\n /* StringBuilder cipher = new StringBuilder();\n for (char ch : str.toCharArray()) {\n char shiftedChar = (char) (((ch - 'a' + key) % 26) + 'a');\n cipher.append(shiftedChar);\n }\n return cipher.toString();*/\n\n return str.chars()\n .mapToObj(ch -> (char) (((ch - 'a' + key) % 26) + 'a'))\n .map(String::valueOf)\n .collect(Collectors.joining());\n }", "public void encrypt(String s)\n\t{\n\t\tconvertToNum(s);\n\t\tfor(int i = 0; i < myMessage.length; i++)\n\t\t{\n\t\t\tmyView.setEncryptText((myMessage[i].modPow(E, publicKey)).toString() + \" \");\n\t\t}\n\t}", "public java.lang.String getEncryptedData() {\r\n return encryptedData;\r\n }", "public String encrypt(String text) {\n return content.encrypt(text);\n }", "public String encrypt(String value) throws Exception \n\t{\n\t\treturn value;\n\t}", "public String encodeKey() {\n byte[] keyByte = secretKey.getEncoded();\n return Base64.getEncoder().encodeToString(keyByte);\n }", "void encryptText() {\n\n ArrayList<Character> punctuation = new ArrayList<>(\n Arrays.asList('\\'', ':', ',', '-', '-', '.', '!', '(', ')', '?', '\\\"', ';'));\n\n for (int i = 0; i < text.length(); ++i) {\n\n if (punctuation.contains(this.text.charAt(i))) {\n\n // only remove punctuation if not ? or . at the very end\n if (!((i == text.length() - 1) && (this.text.charAt(i) == '?' || this.text.charAt(i) == '.'))) {\n this.text.deleteCharAt(i);\n\n // go back to previous position since current char was deleted,\n // meaning the length of the string is now 1 less than before\n --i;\n }\n }\n }\n \n \n // Step 2: convert phrase to lowerCase\n\n this.setText(new StringBuilder(this.text.toString().toLowerCase()));\n\n \n // Step 3: split the phrase up into words and encrypt each word separately using secret key\n\n ArrayList<String> words = new ArrayList<>(Arrays.asList(this.text.toString().split(\" \")));\n\n \n // Step 3.1:\n\n ArrayList<Character> vowels = new ArrayList<>(Arrays.asList('a', 'e', 'i', 'o', 'u'));\n\n for (int i = 0; i < words.size(); ++i) {\n\n // if first char is vowel, add y1x3x4 to the end of word\n if (vowels.contains(words.get(i).charAt(0))) \n words.set(i, words.get(i).substring(0, words.get(i).length()) + this.secretKey.substring(3, 6));\n\n // otherwise, move first char to end of the word, then add x1x2 to the end of word\n else \n words.set(i, words.get(i).substring(1, words.get(i).length()) + words.get(i).charAt(0) + this.secretKey.substring(0, 2));\n }\n\n StringBuilder temp = new StringBuilder(\"\");\n\n for (String word : words)\n temp.append(word + \" \");\n\n this.setText(temp);\n\n \n // Step 3.2:\n\n // go through entire phrase\n for (int i = 0; i < this.getText().length(); ++i) {\n\n // if position is a multiple of z, insert the special char y2\n if ((i % Character.getNumericValue(this.secretKey.charAt(7)) == 0) && (i != 0)) {\n this.getText().replace(0, this.getText().length(), this.getText().substring(0, i) + this.secretKey.charAt(8)\n + this.getText().substring(i, this.getText().length()));\n }\n }\n \n }", "public String getEncryptedPassword () {\n return encryptedPassword;\n }", "public String encode( String password );", "public Object invoke() {\n \t\tString plaintxt = plaintext;\n \t\treturn md5 != null ? md5.digest( plaintxt != null ? plaintxt.getBytes() : null ) : null;\n }", "private String teaEncrypt(String plaintext, String password) {\n if (plaintext.length() == 0) {\n return (\"\"); // nothing to encrypt\n }\n // 'escape' plaintext so chars outside ISO-8859-1 work in single-byte packing, but keep\n // spaces as spaces (not '%20') so encrypted text doesn't grow too long (quick & dirty)\n String asciitext = plaintext;\n int[] v = strToLongs(asciitext); // convert string to array of longs\n\n if (v.length <= 1) {\n int[] temp = new int[2];\n temp[0] = 0; // algorithm doesn't work for n<2 so fudge by adding a null\n temp[1] = v[0];\n v = temp;\n }\n int[] k = strToLongs(password.substring(0, 16).toLowerCase()); // simply convert first 16 chars of password as\n // key\n int n = v.length;\n\n // int z = v[n - 1], y = v[0], delta = 0x9E3779B9;\n // int mx, e, q = (int) Math.floor(6 + 52 / n), sum = 0;\n int z = v[n - 1];\n int y = v[0];\n int delta = 0x9E3779B9;\n int mx;\n int e;\n int q = (int) Math.floor(6 + 52 / n);\n int sum = 0;\n\n while (q-- > 0) { // 6 + 52/n operations gives between 6 & 32 mixes on each word\n sum += delta;\n e = sum >>> 2 & 3;\n for (int p = 0; p < n; p++) {\n y = v[(p + 1) % n];\n mx = (z >>> 5 ^ y << 2) + (y >>> 3 ^ z << 4) ^ (sum ^ y) + (k[p & 3 ^ e] ^ z);\n z = v[p] += mx;\n }\n }\n\n String ciphertext = longsToHexStr(v);\n\n return ciphertext;\n }", "public static String encriptar(String input){\n try {\n\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n }\n\n catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "public byte[] encrypto(String base) throws Exception {\n\t\tSecretKeyFactory keyFactory = SecretKeyFactory.getInstance(PBKDF2);\r\n\t\tKeySpec pbeKeySpec = new PBEKeySpec(\"password\".toCharArray(), \"salt\".getBytes(), 1023, 128);\r\n\t\tSecretKey pbeSecretKey = keyFactory.generateSecret(pbeKeySpec);\r\n\t\t// Create SecretKey for AES by KeyFactory-With-Hmac\r\n\t\tSecretKey aesSecretKey = new SecretKeySpec(pbeSecretKey.getEncoded(), AES);\r\n\t\t\r\n\t\tCipher cipher = Cipher.getInstance(AES_CBC_PKCS5PADDING);\r\n//\t\tcipher.init(Cipher.ENCRYPT_MODE, aesSecretKey, SecureRandom.getInstance(\"SHA1PRNG\"));\r\n\t\tcipher.init(Cipher.ENCRYPT_MODE, aesSecretKey);\r\n\t\tbyte[] encrypted = cipher.doFinal(base.getBytes());\r\n\r\n\t\tSystem.out.println(\"IV: \" + new String(cipher.getIV()));\r\n\t\tSystem.out.println(\"AlgorithmParameter: \" + cipher.getParameters().getEncoded());\r\n\t\tCipher decryptor = Cipher.getInstance(AES_CBC_PKCS5PADDING);\r\n\t\tdecryptor.init(Cipher.DECRYPT_MODE, aesSecretKey, new IvParameterSpec(cipher.getIV()));\r\n\t\tSystem.out.println(\"Decrypted: \" + new String(decryptor.doFinal(encrypted)));\r\n\t\t\r\n\t\treturn encrypted;\r\n\t}", "java.lang.String getSaltData();", "public String encryptWithUser(String data){\n String userId = getUserService().getCurrentUser().getUid();\n Pair pair = new Pair(data, userId);\n\n //Encrypt pair\n String strData;\n try {\n strData = mapper.writeValueAsString(pair);\n SecureToken secureToken = new SecureToken(strData, System.currentTimeMillis());\n return getSecureTokenService().encryptData(secureToken);\n } catch (JsonProcessingException e) {\n LOG.error(e);\n }\n return null;\n }", "private String encrypt(SecretKey key, String value) {\n\t\ttry {\n\n\t\t\tCipher cipher = Cipher.getInstance(\"AES\");\n\t\t\tcipher.init(Cipher.ENCRYPT_MODE, key);\n\n\t\t\tbyte[] encrypted = cipher.doFinal(value.getBytes());\n\t\t\treturn Base64.encodeBase64String(encrypted);\n\t\t} catch (InvalidKeyException | NoSuchAlgorithmException | BadPaddingException | IllegalBlockSizeException\n\t\t\t\t| NoSuchPaddingException ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t}\n\n\t\treturn null;\n\t}", "public Boolean getEncrypted() {\n return this.encrypted;\n }", "public byte[] encryptPassword(String password) {\n byte[] encodedBytes = null;\n\n try {\n Cipher c = Cipher.getInstance(\"AES\");\n c.init(Cipher.ENCRYPT_MODE, sks);\n encodedBytes = c.doFinal(password.getBytes());\n } catch (Exception e) {\n Log.e(TAG, \"AES encryption error\");\n }\n\n //String encryptedText = Base64.encodeToString(encodedBytes, Base64.DEFAULT);\n\n //Log.v(\"Encrypted Text\", encryptedText);\n\n return encodedBytes;\n }", "public static void main(String[] args) {\n \n byte[] cadena = null;\n byte[] cadenaEncriptada = null;\n byte[] cadenaDencriptada = null;\n String cadena2=\"Hola, bona tarda!, com estas? qqoepoepoepoepooepoepoepoepoepoe\";\n \n SecretKey key=null;\n \n cadena=cadena2.getBytes();\n key=keygenKeyGeneration(128);\n cadenaEncriptada=encryptData(key,cadena);\n System.out.println(cadena2);\n cadena2=cadenaEncriptada.toString();\n System.out.println(cadena2);\n cadenaDencriptada=dencryptData(key,cadenaEncriptada);\n String misstageDencriptat = new String(cadenaDencriptada);\n System.out.println(misstageDencriptat);\n \n }", "public String encrypt(String input) throws Throwable {\n\n byte[] inputByteArray = input.getBytes();\n String keyString = \"\";\n\n // reading the public key\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(\n new InputStreamReader(context.getAssets().open(\"Put your public key in assets and Enter its name here\"), \"UTF-8\"));\n String line;\n while ((line = reader.readLine()) != null) {\n keyString += line;\n }\n reader.close();\n }catch (IOException e){\n Toast.makeText(context, \"Couldn't create file reader\", Toast.LENGTH_SHORT).show();\n }\n\n // fetching the key from public key\n keyString = keyString.replaceAll(NEW_LINE_CHARACTER, EMPTY_STRING)\n .replaceAll(PUBLIC_KEY_START_KEY_STRING, EMPTY_STRING)\n .replaceAll(PUBLIC_KEY_END_KEY_STRING, EMPTY_STRING);\n\n byte[] publicKey = keyString.getBytes();\n\n Key generatePublic = KeyFactory.getInstance(\"RSA\").\n generatePublic(new X509EncodedKeySpec(Base64.getDecoder().decode(publicKey)));\n\n // create RSA Cipher instance\n Cipher cipherInstance = Cipher.getInstance(\"RSA/None/PKCS1Padding\");\n cipherInstance.init(Cipher.ENCRYPT_MODE, generatePublic);\n\n // encrypt string\n byte[] encryptedByteArray = cipherInstance.doFinal(inputByteArray);\n return Base64.getEncoder().encodeToString(encryptedByteArray);\n }", "public static String encrypt(String data){\n\t\tif (data.equals(\"\") || data.equals(\"null\"))\n\t\t\treturn data;\n\t\ttry{\n\t\t\tjavax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance(CIPHER);\n\t\t\tcipher.init(javax.crypto.Cipher.ENCRYPT_MODE, new SecretKeySpec(ENCRYPTION_KEY.getBytes(Charset.forName(\"UTF-8\")), \"AES\"), new IvParameterSpec(new byte[16]));\n\t\t\tbyte[] encryptedBytes = cipher.doFinal(data.getBytes(Charset.forName(\"UTF-8\")));\n\t\t\treturn ENCRYPTION_PREFIX + new String(Base64.encodeBase64(encryptedBytes), Charset.forName(\"UTF-8\"));\n\t\t}catch (Exception e) {\n\t\t\tSystem.err.println( \"Error in EncryptionUtil.encrypt: \" + e );\n\t\t\treturn data;\n\t\t}\n\t}", "private String encryptPassword(String password) {\n\t\tbyte[] defaultBytes = password.getBytes();\r\n StringBuffer hexString = new StringBuffer();\r\n try{\r\n MessageDigest algorithm = MessageDigest.getInstance(\"MD5\");\r\n algorithm.reset();\r\n algorithm.update(defaultBytes);\r\n byte messageDigest[] = algorithm.digest();\r\n for (int i=0;i<messageDigest.length;i++) {\r\n String hex = Integer.toHexString(0xFF & messageDigest[i]);\r\n if(hex.length()==1)\r\n hexString.append('0');\r\n hexString.append(hex);\r\n }\r\n }catch (Exception e){e.printStackTrace();}\r\n\t\tpassword = hexString.toString();\r\n\t\t//System.out.println(password);\r\n\t\treturn password;\r\n\t}", "public static String crypt(String str) {\n if (str == null || str.length() == 0) {\n throw new IllegalArgumentException(\"String to encript cannot be null or zero length\");\n }\n StringBuffer hexString = new StringBuffer();\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n byte[] hash = md.digest();\n for (int i = 0; i < hash.length; i++) {\n if ((0xff & hash[i]) < 0x10) {\n hexString.append(\"0\" + Integer.toHexString((0xFF & hash[i])));\n } else {\n hexString.append(Integer.toHexString(0xFF & hash[i]));\n }\n }\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return hexString.toString();\n }", "public String encrypt(String message) {\t\n\n\t\tchar [] letters = new char [message.length()];\n\t\tString newMessage = \"\";\n\n\t\t//create an array of characters from message\n\t\tfor(int i=0; i< message.length(); i++){\n\t\t\tletters[i]= message.charAt(i);\n\t\t}\n\n\t\tfor(int i=0; i<letters.length; i++){\n\t\t\tif(Character.isLetter(letters[i])){ //check to see if letter\n\t\t\t\tif(Character.isUpperCase(letters[i])){ //check to see if it is uppercase\n\t\t\t\t\tnewMessage += letters[i]; //add that character to new string\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t//this creates an array with the numbers that are keys \n\t\tint [] numberOfLetters = new int[newMessage.length()];\n\t\tString alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n\t\tfor(int i=0; i< newMessage.length(); i++){\n\t\t\tfor(int j=0; j< alphabet.length(); j++){\n\t\t\t\tif(newMessage.charAt(i) == alphabet.charAt(j)){ //if they have the same letter\n\t\t\t\t\tnumberOfLetters[i]=j+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\n\t\t//creates an array of the keys\n\t\tint [] key = new int[numberOfLetters.length];\n\t\tint keys;\n\t\tfor(int i=0; i< numberOfLetters.length; i++){\n\t\t\tkeys = getKey();\n\t\t\tkey[i] = keys;\n\t\t}\n\t\n\t\t//create an array for what we encrypted \n\t\tint [] encryptNum = new int[key.length];\n\t\tfor(int i=0; i< key.length; i++){\n\t\t\tint value = numberOfLetters[i] + key[i];\n\t\t\tif(value > 26){\n\t\t\t\tvalue = value-26;\n\t\t\t\tencryptNum[i]= value;\n\t\t\t}else{\n\t\t\t\tencryptNum[i]= value;\n\t\t\t}\n\t\t}\n\n\t\t//turn encryption into letters \n\t\tString encrypt = \"\";\n\t\tchar [] let = new char [encryptNum.length];\n\n\t\tfor(int i=0; i< encryptNum.length; i++){\n\t\t\tint x = encryptNum[i]-1;\n\t\t\tlet[i] = alphabet.charAt(x);\n\t\t}\n\n\t\tfor(int j=0; j< let.length; j++){\n\t\t\tencrypt += let[j];\n\t\t}\n\n\t\t// COMPLETE THIS METHOD\n\t\t// THE FOLLOWING LINE HAS BEEN ADDED TO MAKE THE METHOD COMPILE\n\n\t\treturn encrypt;\n\t}", "private String vigenereAlgo(boolean encrypt){\n List<Integer> key = EncryptionUtils.stringToIntList(algo.getKey());\n List<Integer> value = EncryptionUtils.stringToIntList(algo.getValue());\n int keyLength = key.size();\n int valueLength = value.size();\n \n List<Integer> crypt = new ArrayList<>();\n \n for (int i = 0; i < valueLength; i++){\n crypt.add(Math.floorMod(value.get(i)-EncryptionUtils.FIRST+ mult(encrypt)*\n (key.get(i%keyLength)-EncryptionUtils.FIRST),EncryptionUtils.SIZE) +EncryptionUtils.FIRST);\n }\n \n return EncryptionUtils.intListToString(crypt);\n }", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "public String encode() {\n return encodeToBase64(encKey.getEncoded()) + \":\" + encodeToBase64(macKey.getEncoded());\n }" ]
[ "0.75621617", "0.6609193", "0.6575502", "0.6563185", "0.6502766", "0.6466505", "0.64564764", "0.6445965", "0.64308995", "0.6429514", "0.63601404", "0.6354806", "0.6305103", "0.62885016", "0.6278003", "0.6265799", "0.62487215", "0.6219181", "0.62009484", "0.62005657", "0.6200139", "0.61942846", "0.6191479", "0.6189", "0.6186627", "0.616478", "0.615232", "0.6143184", "0.6141742", "0.6105712", "0.60865533", "0.60519737", "0.6033796", "0.6031593", "0.6031334", "0.60259736", "0.6019882", "0.5993395", "0.59806085", "0.59700906", "0.5956605", "0.59535724", "0.59247744", "0.59207267", "0.59182656", "0.5917108", "0.591604", "0.5906163", "0.58994305", "0.5899236", "0.5880507", "0.5860366", "0.5858536", "0.5852875", "0.5847685", "0.58465284", "0.58461475", "0.58365595", "0.58350056", "0.5827321", "0.5816144", "0.58147943", "0.5814347", "0.5810981", "0.5807919", "0.5802314", "0.5799869", "0.5796942", "0.57951677", "0.57928735", "0.5782182", "0.5770583", "0.5762344", "0.5759631", "0.57549644", "0.57534504", "0.5740535", "0.5738025", "0.5736127", "0.57321244", "0.5730474", "0.57249594", "0.5723561", "0.57188797", "0.56993586", "0.5698814", "0.56926066", "0.56918156", "0.5690664", "0.5690555", "0.5690176", "0.5687952", "0.56860733", "0.56853634", "0.5675317", "0.5670811", "0.5668396", "0.56670386", "0.56633836", "0.56617135", "0.5661145" ]
0.0
-1
Constructs an instance of InvalidJSONException with the specified detail message.
public InvalidJSONException(String msg) { super(msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InvalidJsonException(String message) {\n\t\tsuper(message);\n\t}", "public JsonParseException _constructError(String msg) {\n return new JsonParseException(this, msg).withRequestPayload(this._requestPayload);\n }", "public InvalidJsonException() {\n\t\tsuper();\n\t}", "public JSONParsingException(String message) {\n super(message);\n }", "public EserialInvalidJsonException(String msg) {\n super(String.format(\"%s\", msg));\n }", "public InvalidJsonException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}", "public JSONException syntaxError(String message) {\n return new JSONException(message + this.toString());\n }", "public NotFoundException(final String message) {\r\n super(Response.status(Responses.NOT_FOUND).\r\n entity(message).type(\"text/plain\").build());\r\n myDetailMessage = message;\r\n }", "public BadRequestException(String message) {\n super(message);\n if(!message.equals(\"\")){errorText = errorText.concat(\": \" + message);}\n }", "public JSONException syntaxError(String message, Throwable causedBy) {\n return new JSONException(message + this.toString(), causedBy);\n }", "public InvalidDatumException(String message) {\n \n super(message);\n }", "@Override\r\n\tpublic Response error(String message) {\r\n\t\tJSONObject json = new JSONObject();\r\n\r\n\t\ttry {\r\n\t\t\tjson.put(STAT, FAIL);\r\n\t\t\tjson.put(MESSAGE, message);\r\n\t\t} catch (JSONException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn buildResponse(json);\r\n\t}", "@SuppressWarnings(\"unused\")\n protected static HttpResponseImpl createError(final String message) {\n return createError(message, null);\n }", "public CoderException(String message) {\n super(message);\n }", "public InvalidModelException(String message) {\n super(message);\n }", "public ResultJsonView(String message) {\r\n this(null, message);\r\n }", "public ValidationFailure(String message) {\n this.message = message;\n }", "public NotValidException(String message) {\r\n super(message);\r\n }", "public InvalidItemIDException (String message){\n super(message);\n }", "public EmployeeNotFoundException(String message) {\n super(message);\n }", "public MessageParseException(String message) {\n super(message);\n }", "public JDBFException (String message){\r\n super(Messages.message(message));\r\n }", "private JSONObject createError(Exception exception, JSONObject invocationContext) throws JSONException {\n\n\t\tJSONObject callbackResult = new JSONObject();\n\t\ttry {\n\t\t\tcallbackResult.put(\"invocationContext\", invocationContext);\n\t\t\tString errorMessage = exception.getLocalizedMessage();\n\t\t\tif (errorMessage == null)\n\t\t\t\terrorMessage = exception.toString();\n\t\t\tcallbackResult.put(\"errorMessage\", errorMessage);\n\t\t\tif (exception instanceof MqttException)\n\t\t\t{\n\t\t\t\tint errorNumber = ((MqttException) exception).getReasonCode();\n\t\t\t\tcallbackResult.put(\"errorCode\", errorNumber);\n\t\t\t}\n\t\t\telse\n\t\t\t\tcallbackResult.put(\"errorCode\", generalError);\n\t\t\t\t\n\t\t} catch (JSONException e) {\n\t\t\ttraceError(TAG, e.getMessage());\n\t\t}\n\t\treturn callbackResult;\n\t}", "public BadRequestResponse()\n {\n super();\n codeSubfield = 0;\n payload = \"Bad Request\";\n }", "public RecordNotFoundException(String message) {\n this(message, null);\n }", "@Override\n\tpublic void jsonParseError() {\n\t\tMyDialog.showInfoDialog(this, R.string.tips, R.string.response_data_error);\n\t}", "public TwilioRestException(String message, int errorCode, String moreInfo) {\n\t\tsuper(message);\n\n\t\tthis.message = message;\n\t\tthis.errorCode = errorCode;\n\t\tthis.moreInfo = moreInfo;\n\t}", "public SenhaInvalidaException(String message) {\n\t\tsuper(message);\n\t}", "public InvalidJsonException(Throwable cause) {\n\t\tsuper(cause);\n\t}", "public InvalidNumberException(String message) {\n\t\tsuper(message);\n\t}", "public InvalidCommand() {\n this.errorMessage = EMPTY_STRING;\n }", "public InvalidCommand(String errorMessage) {\n this.errorMessage = errorMessage;\n }", "public JSONObject buildError(String str) {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"result\", (Object) \"WX_FAILED\");\n jSONObject.put(\"message\", (Object) str);\n return jSONObject;\n }", "public RecordNotFoundException(String message) {\n super(message);\n }", "public void setInvalidMessage(String message) {\n isValid.setMessage(message);\n }", "public JsonResponse(String status, String[] message, String userid, String password, String name, String school, BigDecimal edollar) {\n this.status = status;\n this.message = message;\n this.userid = userid;\n this.password = password;\n this.name = name;\n this.school = school;\n this.edollar = edollar;\n }", "public Neo4jException(String message) {\n this(\"N/A\", message);\n }", "public JsonResponse(String status, String[] message) {\n this.status = status;\n this.message = message;\n }", "public BadMessageException(final String message) {\r\n\t\tsuper(message);\r\n\t}", "public InvalidAmountException(String message) {\r\n\t\tsuper(message);\r\n\t}", "public MessageParseException() {\n }", "public void testConstructorWithMessage() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", null, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }", "public APIException(String message) {\n\t\tsuper(message, null);\n\t}", "public TwilioRestException(String message, int errorCode) {\n\t\tthis(message, errorCode, \"\");\n\t}", "public InvalidRequestMsg() {\n\n this(\"\");\n\n }", "@Override\r\n\tpublic Response error(ErrorMessage errorMessage) {\r\n\r\n\t\tJSONObject json = new JSONObject();\r\n\r\n\t\ttry {\r\n\t\t\tjson.put(STAT, FAIL);\r\n\t\t\tjson.put(CODE, errorMessage.getCode());\r\n\t\t\tjson.put(MESSAGE, errorMessage.getMessage());\r\n\t\t} catch (JSONException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn buildResponse(json);\r\n\t}", "public InvalidEmployeeDetailsException(String exception) {\r\n super(exception);\r\n }", "public ManagerNotFoundException(String message) {\n super(message);\n }", "public InvalidRifValueException(String message) {\n super(message);\n }", "public DataException(String message, String code){\r\n super(message, code);\r\n }", "public FormatException(String message) {\r\n\t\tsuper(message);\r\n\t}", "public InvalidInputException(String errMessage)\n\t{\n\t\tthis.errMessage = errMessage;\n\t}", "public ParsingException(String message) {\n super(message);\n }", "@Test\n public void testConstructorWithMessage()\n {\n final LoaderException e = new LoaderException(\"Custom message\");\n assertEquals(\"Custom message\", e.getMessage());\n }", "public static Message fromJSON(JSONArray json){\n\t\t\n\t\tString message = (String) json.get(0);\n\t\tlong creationTime = (long) json.get(1);\n\t\tlong visibleTime = (long) json.get(2);\n\t\tlong id = (long) json.get(3);\n\t\t\n\t\treturn new Message(message, visibleTime, creationTime, id);\n\t}", "public JsonRpcErrorObject(JsonElement elem) {\n this();\n if (elem != null) {\n JsonObject obj = elem.getAsJsonObject();\n if (obj != null) {\n setCode(obj.get(JsonRpcConstants.CODE));\n setMessage(obj.get(JsonRpcConstants.MESSAGE));\n setData(obj.get(JsonRpcConstants.DATA));\n }\n }\n }", "public BaseException(String message) {\n super(message);\n setErrorCode();\n }", "public BadRequestException(String msg) {\n\t\tsuper(msg);\n\t}", "public ValueOutOfRangeException(String message) {\n this.message = message;\n }", "public ParseException(String message) {\n super(message);\n }", "public InvalidCommandException(String message) {\n super(message);\n }", "public ItemNotFoundException(String e){\r\n super(e+\" was not found!\");\r\n }", "public static BajaPoiAdapter registrarError(JSONObject jsonObject) {\n\t\tBajaPoiAdapter bajaPoi = new BajaPoiAdapter();\n\t\tbajaPoi.setId(-1);\n\t\tbajaPoi.setFecha(new Date().toString());\n\t\tbajaPoi.setMensaje(jsonObject.getString(\"error\"));\n\t\tbajaPoi.setStatus(jsonObject.getInt(\"status_code\"));\n\t\treturn bajaPoi;\n\t}", "public JDBFException (String message, Object type){\r\n super(Messages.format(message, type));\r\n }", "private ModelAndView createErrorResponse(String sMessage) {\n\t\tlogger_c.debug(\"Exception déclenché au niveau de la classe PersoController2 :[\"\n\t\t\t\t+ sMessage + \" ]\");\n\t\treturn new ModelAndView(jsonView_i, ERROR_FIELD, sMessage);\n\t}", "public InvalidTokenException(String message) {\n super(message);\n }", "public JavaException(@Nullable String message)\r\n\t{\r\n\t\tsuper(message);\r\n\t}", "public ItemInvalidoException(String msg) {\r\n super(msg);\r\n }", "public BadQueryException(String message) {\n super(message);\n }", "public BadTrackingNumberFormatException(){\n super(\"That tracking number is not correct.\");\n }", "public ErrorResponse(int errNo, String errMessage) {\n\t\tsuper();\n\t\tthis.errNo = errNo;\n\t\tthis.errMessage = errMessage;\n\t}", "public Error(String message) {\r\n \tsuper(message);\r\n \t}", "public FacebookApiException(JSONObject Result)\n {\n result = Result;\n\n try\n {\n code = result.has(\"error_code\") ? result\n .getInt(\"error_code\") : 0;\n\n if (result.has(\"error_description\"))\n {\n // OAuth 2.0 Draft 10 style\n message = result.getString(\"error_description\");\n } else if (result.has(\"error\"))\n {\n // OAuth 2.0 Draft 00 style\n message = result.getJSONObject(\"error\").getString(\"message\");\n } else if (result.has(\"error_msg\"))\n { // Rest server style\n message = result.getString(\"error_msg\");\n } else\n {\n message = \"Unknown Error. Check getResult()\";\n }\n } catch (JSONException e)\n {\n e.printStackTrace();\n }\n\n }", "public InvalidRequestMsg(String reason) {\n\n this.reason = reason;\n\n }", "public InvalidURIException(String message)\r\n\t{\r\n\t\tsuper(message);\r\n\t\tthis.message = message;\r\n\t}", "public DataIntegrityError(String message) {\n super(message);\n }", "@SuppressWarnings(\"rawtypes\")\r\n public <R extends Result> ResultJsonView(R resultObject, String message) {\r\n super(resultObject);\r\n this.message = message;\r\n }", "public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }", "public ResourceNotFoundException(final String message, final Object resourceIdentifier) {\n super(message);\n this.resourceIdentifier = resourceIdentifier;\n }", "@Api(1.4)\n public HaloParsingException(@Nullable String message, @Nullable Exception e) {\n super(message, e);\n }", "public Neo4jException(String code, String message) {\n this(code, message, null);\n }", "public HttpException(int status, String message, String body) {\r\n\t\tsuper(\"Status: \" + status + \", Response: \" + body);\r\n\t\tmStatus = status;\r\n\t\tmMessage = message;\r\n\t\tmBody = body;\r\n\t}", "public InvalidFileFormatException(String message){\n super(message);\n }", "public UserNotFoundException(String message) {\n\t\tsuper(message);\n\t}", "public UserNotFoundException(String message) {\n\t\tsuper(message);\n\t}", "public UserNotFoundException(String message) {\n\t\tsuper(message);\n\t}", "String getInvalidMessage();", "public InvalidUserDataException(String errorMessage) {\n super(errorMessage);\n }", "public SmartScriptParserException(String message) {super(message);}", "public APIException(String message, String token) {\n\t\tthis(message, token, null);\n\t}", "public Metadata(String _JSONString) {\n mJSONObject = new JSONObject();\n mJSONObject = (JSONObject) JSONValue.parse(_JSONString);\n\n // TODO: Maybe raise a 'malformed json string exception'\n if (mJSONObject == null) {\n \tLOGGER.info(\"Invalid JSON String received. new object was created, but its NULL.\");\n }\n }", "public InvalidTransitionException(String message) {\r\n super(message);\r\n }", "public InvalidInputException(String code) {\n super(\"Invalid Input : \" + code);\n }", "public WeatherNotFoundException() {\n\t\tsuper(\"Something went wrong. Please try again later.. \");\n\t}", "public InvalidDeliveryException(String message) {\n super(message);\n }", "public void alertInvalid(){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Herencia invalida\");\n alert.setHeaderText(\"Un hijo no puede ser hijo de su padre o un padre no puede ser padre de su padre,\"\n + \"No puede crear herencia con entidades debiles.\");\n alert.showAndWait();\n }", "public void testConstructorWithMessageAndCauseAndRejectReason() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message, cause, reason);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", cause, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", reason, exception.getProblemRejectReason());\r\n }", "public InvalidTransitionException(String message) {\n\t\tsuper(message);\n\t}", "public InvalidTransitionException(String message) {\n\t\tsuper(message);\n\t}", "public Message createMessageFromJson(JSONObject messageJson){\n\n try {\n this.setBody( messageJson.get(\"body\").toString());\n\n //recupèrer l'objet contact\n JSONObject contactObject = (JSONObject) messageJson.get(\"contact\");\n this.getContact().setName(contactObject.get(\"name\").toString());\n this.getContact().setNumber( contactObject.get(\"number\").toString());\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return this;\n }" ]
[ "0.7328285", "0.6654923", "0.66361666", "0.65034235", "0.6399539", "0.616301", "0.6096665", "0.5799229", "0.576719", "0.5734348", "0.57148576", "0.56123674", "0.55737543", "0.5540443", "0.5530061", "0.5519148", "0.5504449", "0.5486219", "0.545794", "0.5455076", "0.54498917", "0.54320943", "0.540641", "0.5394156", "0.5382705", "0.5369434", "0.53280383", "0.5289422", "0.5287467", "0.5241599", "0.5239586", "0.52394545", "0.52387196", "0.52371144", "0.5233563", "0.52282", "0.52080244", "0.52051425", "0.5204915", "0.52032185", "0.52015924", "0.51877975", "0.51799285", "0.51701283", "0.5158365", "0.51073873", "0.50769114", "0.50715256", "0.5068645", "0.5012802", "0.50108856", "0.50082046", "0.49938843", "0.4988024", "0.4957274", "0.49567053", "0.4955868", "0.49460176", "0.49434933", "0.49423537", "0.49405763", "0.4939854", "0.49366555", "0.4936404", "0.49343547", "0.49337325", "0.49201745", "0.4906933", "0.48923674", "0.4891257", "0.4887923", "0.48806924", "0.488025", "0.48700526", "0.48652008", "0.4862969", "0.48621356", "0.48555258", "0.4847363", "0.48472944", "0.4843753", "0.48352987", "0.48341644", "0.48304757", "0.48304757", "0.48304757", "0.48287517", "0.4826539", "0.48219067", "0.48188388", "0.48169485", "0.4815508", "0.47848842", "0.4783836", "0.47820905", "0.47809792", "0.47793555", "0.4778687", "0.4778687", "0.47691795" ]
0.7629741
0
Base interface for Parser.
public interface Parser { /** * Parse and return List of EXIFContent. * @return */ public abstract List<EXIFContent> parse(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Parser {\n\n}", "private Parser () { }", "public Parser() {}", "public interface IParser {\n\n /**\n * Coco/R generated function. It is used to inform parser about semantic errors.\n */\n void SemErr(String str);\n\n /**\n * Coco/R generated function for parsing input. The signature was changes in parsers' frame files so that it\n * receives source argument.\n *\n * @param source source to be parsed\n */\n void Parse(Source source);\n\n /**\n * Resets the parser but not the {@link NodeFactory} instance it holds. This way it can be used multiple times with\n * storing current state (mainly identifiers table). This is useful for parsing unit files before parsing the actual\n * source.\n */\n void reset();\n\n /**\n * Returns whether there were any errors throughout the parsing of the last source.\n */\n boolean hadErrors();\n\n /**\n * Sets support for extended goto. If this option is turned on, the parser will generate {@link cz.cuni.mff.d3s.trupple.language.nodes.statement.ExtendedBlockNode}s\n * instead of {@link cz.cuni.mff.d3s.trupple.language.nodes.statement.BlockNode}s.\n */\n void setExtendedGoto(boolean extendedGoto);\n\n /**\n * Returns true if the support for Turbo Pascal extensions is turned on.\n */\n boolean isUsingTPExtension();\n\n /**\n * Reutnrs the root node of the last parsed source.\n */\n RootNode getRootNode();\n\n}", "public parser(Scanner s) {super(s);}", "public interface Parser {\n\t\n\t/**\n\t * A method to parse the file\n\t * @param file the file\n\t * @return the content\n\t */\n\tpublic String parse(File file);\n\t\n}", "public abstract void parse() throws IOException;", "public interface Parser {\n\n ParsedObject[] parse();\n}", "CParser getParser();", "public interface Parser<T> {\n\t\n\t/**\n\t * Il metodo che deve essere completato per poter analizzare la stringa\n\t * @param value la stringa da analizzare\n\t * @return il tipo di dato voluto\n\t */\n\tpublic T parse(String value);\n\t\n}", "@Override\n\tpublic void parse() throws IOException {\n\t}", "public Parser() {\n\t\tpopulateMaps();\n\t}", "public void parse() {\n }", "public interface XMLParser {\n\n String parse();\n}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "private interface ParseInterface {\n public void parse(String sentence);\n }", "public interface Parseable\n{\n\n /**\n * Returns a new {@link GTIParser}.\n * \n * @param gtiScanner The input {@link GTIScanner}.\n * @return A new {@link GTIParser}.\n * @see Parseable#newParser(GTIScanner)\n */\n public GTIParser newParser ( GTIScanner gtiScanner );\n\n\n /**\n * Returns a new {@link GTIParser}.\n * \n * @param pText The input {@link String}.\n * @return A new {@link GTIParser}.\n * @see Parseable#newParser(String)\n */\n public GTIParser newParser ( String pText );\n\n\n /**\n * Returns a new {@link GTIScanner}.\n * \n * @param text The input {@link String}.\n * @return A new {@link GTIScanner}.\n * @see Parseable#newScanner(String)\n */\n public GTIScanner newScanner ( String text );\n}", "public interface Parser<T extends ParsedBlock> {\n\t/**\n\t * \n\t * @return the parsed block\n\t * @throws IOException\n\t */\n\tpublic T parse() throws IOException;\n\n}", "protected Parser getParser() {\n\t\treturn myParser;\n\t}", "abstract protected Parser createSACParser();", "public abstract ArgumentParser makeParser();", "public interface MediaWikiParser {\n\t/**\n\t * Parses MediaWiki Source, given as parameter src, and returns a ParsedPage.\n\t */\n\tpublic ParsedPage parse(String src);\n\t\n\t/**\n\t * Retruns information abour the configuration of the parser.\n\t */\n\tpublic String configurationInfo();\n\t\n\t/**\n\t * Retruns the String which is uses as line separator, usually it \n\t * will be \"\\n\" or \"\\r\\n\"\n\t */\n\tpublic String getLineSeparator();\n}", "public Parser()\n {\n //nothing to do\n }", "public interface Parser<T> {\n T parse(String str);\n\n default void throwUnparsable(String unparsable) {\n throw new IllegalArgumentException(\n \"Could not parse input: \" + unparsable);\n }\n}", "void parse();", "public Parse(String str)\r\n {\r\n super(str);\r\n }", "public abstract T parse(String str);", "public abstract T parse(String s);", "@Override\n\t\t\t\tpublic boolean hasParser() {\n\t\t\t\t\treturn true;\n\t\t\t\t}", "public interface Parser<T> {\n T parse(String source) throws JAXBException;\n\n\n List<String> groupContent(String content);\n\n}", "public interface IParser {\n\t/**\n\t * Start parsing the 3D object\n\t */\n\tvoid parse();\n\t/**\n\t * Returns the parsed object\n\t * @return\n\t */\n\tObject3dContainer getParsedObject();\n\t/**\n\t * Returns the parsed animation object\n\t * @return\n\t */\n\tAnimationObject3d getParsedAnimationObject();\n}", "public OnionooParser() {\n\n\t}", "@Override\n\tpublic void postParse() {\n\t}", "@Override\n\tpublic void postParse() {\n\t}", "public FastqParser() {\n\t\tsuper();\n\t}", "Parse createParse();", "protected StreamParser()\n {\n }", "public interface Parser {\r\n String parse(String path) throws ParsingException;\r\n Map<String, String> parse(Map<String, String> paths) throws ParsingException;\r\n}", "public IParser getParserSuccessfull ( ){ return mParserSuccessfull; }", "public Parser()\n{\n //nothing to do\n}", "public interface Parser extends ProvidesFeedback {\n\n\t/**\n\t * Parses input provided by a given lexical analyzer\n\t * \n\t * @param lex\n\t * the lexical analyzer\n\t */\n\tpublic void parse(Lexer lex);\n\n}", "public interface Parser<T> {\n TripleExpression<T> parse(String expression) throws Exception;\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "public CompParser(java_cup.runtime.Scanner s) {super(s);}", "public CrossrefUnixrefSaxParser() {\n }", "private Term parseImpl() throws ParseException {\n final Term expr = parseTerm(false);\n final int tt = _tokenizer.next();\n if (tt != Tokenizer.TT_EOS) {\n reportError(\"Incomplete expression.\"); /*I18N*/\n }\n return expr;\n }", "public CoolParser(java_cup.runtime.Scanner s) {super(s);}", "void Parse(Source source);", "interface IXMLParser\n{\n boolean exists (String path);\n\n Node getNode (String path);\n\n Node[] getChildren (String path);\n\n String getText (String path);\n\n void setText (String path, String value);\n\n String getAttribute (String path, String attributeName);\n\n String setAttribute (String path, String attributeName);\n}", "public ModemPMParser()\n\t{\n\t\tsuper();\n\t}", "public XPathParser(java_cup.runtime.Scanner s) {super(s);}", "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "public HtmlParserImpl(final String url) throws ParserException {\n\t\tsuper(url);\n\t}", "void setParser(CParser parser);", "CParserResult getParserResult();", "public StringParser getStringParser();", "protected abstract void parse(String line);", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public void parse() throws IOException, LexerException, ParserException {\n classLines.clear();\n methodLines.clear();\n\n PushbackReader pbr = new PushbackReader(reader);\n Lexer lexer = new Lexer(pbr);\n Parser parser = new Parser(lexer);\n try {\n Start start = parser.parse();\n start.apply(this);\n fixClassNames();\n } finally {\n try {\n pbr.close();\n } catch (IOException ioe) { /* ignore */ }\n }\n }", "protected Parser getParser() throws TemplateException {\n try {\n return (Parser) _broker.getValue(\"parser\",\"wm\"); \n } catch (Exception e) {\n Engine.log.exception(e);\n throw new TemplateException(\"Could not load parser type \\\"\" + \n _parserName + \"\\\": \" + e);\n }\n }", "public interface RecursiveDescentParser\n{\n\n /**\n * Parses a regular expression and returns an NFA that describes that regular expression.\n * @return an NFA describing the regular expression that was parsed\n * @throws ParseException\n */\n public NFA parse() throws ParseException;\n\n}", "public parser(Scanner s, SymbolFactory sf) {super(s,sf);}", "public interface LineParser {\n boolean hasProtocolVersion(CharArrayBuffer charArrayBuffer, ParserCursor parserCursor);\n\n Header parseHeader(CharArrayBuffer charArrayBuffer) throws ParseException;\n\n ProtocolVersion parseProtocolVersion(CharArrayBuffer charArrayBuffer, ParserCursor parserCursor) throws ParseException;\n\n RequestLine parseRequestLine(CharArrayBuffer charArrayBuffer, ParserCursor parserCursor) throws ParseException;\n\n StatusLine parseStatusLine(CharArrayBuffer charArrayBuffer, ParserCursor parserCursor) throws ParseException;\n}", "public CGXParser() {\n super();\n }", "public A4Parser(java_cup.runtime.Scanner s) {super(s);}", "public A4Parser(java_cup.runtime.Scanner s) {super(s);}", "@Override\r\n protected void parseDocuments()\r\n {\n\r\n }", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public MJParser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public interface IParserComp extends IPAMOJAComponent {\n\n /**\n * Returns a parser object. \n * This an abstract method to be implemented by the descendants.\n * @return the parser object.\n */\n CParser getParser();\n\n /**\n * Sets the specified parser object to this parser component.\n * This an abstract method to be implemented by the descendants.\n * @param parser @author Jackline Ssanyu ([email protected])\n */\n void setParser(CParser parser);\n\n /**\n * Returns a parser-result object containing boolean value (indicating whether a parse was successful or not) and the parse tree constructed. \n * This an abstract method to be implemented by the descendants.\n * \n * @return the value of the parser-result object.\n */\n CParserResult getParserResult(); \n\n /**\n *\n * @return\n */\n ArrayList<CParseLog> getLogs();\n\n /**\n * Links to <code>GrammarComp</code> component via its interface.\n * Sets the value of <code>Grammar</code> and registers for property change events.\n * \n * @param aGrammar new value of Grammar\n */\n void setGrammar(IGrammarComp aGrammar);\n\n /**\n * Get the grammar object.\n * @return the value of the grammar object\n */ \n IGrammarComp getGrammar();\n \n /**\n * Get the symbolstream object.\n * @return the value of the symbolstream object\n */ \n ISymbolStreamComp getSymbolStream();\n\n /**\n * Links to <code>SymbolStreamComp</code> component via its interface.\n * Sets the value of <code>SymbolStream</code> and registers for property change events.\n * \n * @param aSymbolStream\n */\n void setSymbolStream(ISymbolStreamComp aSymbolStream);\n\n /**\n *\n * @return\n */\n CParseStack getStateStack();\n\n /**\n *\n * @param fStateStack\n */\n void setStateStack(CParseStack fStateStack); \n\n /**\n *\n * @return\n */\n public ArrayList<Symbol> getSymbolsUnmatched();\n\n /**\n *\n * @param symbolsUnmatched\n */\n public void setSymbolsUnmatched(ArrayList<Symbol> symbolsUnmatched);\n\n /**\n *\n */\n public void parseText();\n}", "protected LogParserMatch() {\n\t}", "public interface SubtitleParser {\n public SubtitleObject parse(InputStream is) throws IOException, SubtitleParsingException;\n public SubtitleObject parse(InputStream is, boolean strict, boolean withHours) throws IOException, SubtitleParsingException;\n}" ]
[ "0.78445107", "0.7504592", "0.7290184", "0.72194517", "0.70909303", "0.7012618", "0.697916", "0.69425815", "0.693585", "0.68816614", "0.68656635", "0.68255067", "0.6770761", "0.672874", "0.67164904", "0.67164904", "0.67164904", "0.67164904", "0.67164904", "0.67164904", "0.67164904", "0.67164904", "0.66551596", "0.66551596", "0.66551596", "0.66551596", "0.66551596", "0.66551596", "0.66519684", "0.65846854", "0.65713525", "0.656871", "0.6549087", "0.6538911", "0.64623076", "0.64269954", "0.6416599", "0.6394025", "0.636752", "0.63550514", "0.63382816", "0.6323206", "0.6320699", "0.63134354", "0.63115716", "0.6307551", "0.6307551", "0.6300595", "0.62985635", "0.62921137", "0.6281359", "0.62675357", "0.6221797", "0.6207493", "0.611349", "0.61068046", "0.6094399", "0.60936415", "0.6093406", "0.6080255", "0.60764056", "0.6068457", "0.6061123", "0.6058014", "0.6057568", "0.6056245", "0.6030318", "0.6028477", "0.60194504", "0.60144794", "0.60095507", "0.60095507", "0.60095507", "0.60095507", "0.60095507", "0.60095507", "0.60095507", "0.6008243", "0.6000081", "0.5994048", "0.59935826", "0.5990958", "0.5983608", "0.5980121", "0.5980121", "0.5963272", "0.59604496", "0.59575546", "0.59395635", "0.59395635", "0.59395635", "0.59395635", "0.59395635", "0.59395635", "0.59395635", "0.59395635", "0.59395635", "0.5936161", "0.5932106", "0.59286463" ]
0.6146262
54
Parse and return List of EXIFContent.
public abstract List<EXIFContent> parse();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Parser {\r\n\r\n /**\r\n * Parse and return List of EXIFContent.\r\n * @return\r\n */\r\n public abstract List<EXIFContent> parse();\r\n\r\n}", "java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList();", "java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByHandlerList();", "private ArrayList<ImageItem> getData() {\n final ArrayList<ImageItem> imageItems = new ArrayList<>();\n // TypedArray imgs = getResources().obtainTypedArray(R.array.image_ids);\n for (int i = 0; i < f.size(); i++) {\n Bitmap bitmap = imageLoader.loadImageSync(\"file://\" + f.get(i));;\n imageItems.add(new ImageItem(bitmap, \"Image#\" + i));\n }\n return imageItems;\n }", "java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList();", "java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByTransformList();", "private ArrayList<Photo> buildListFromXML(HttpURLConnection httpURLConnection) {\n ArrayList<Photo> photos = new ArrayList<Photo>();\n\n try {\n SAXBuilder builder = new SAXBuilder();\n Document document = (Document)builder.build(httpURLConnection.getInputStream());\n Element responseElement = document.getRootElement();\n Element photosElement = responseElement.getChild(\"photos\");\n List<Element> photoElements = photosElement.getChildren(\"photo\");\n\n Photo photo = null;\n for(Element photoElement : photoElements) {\n photo = new Photo(photoElement);\n photo.setBitmap(this.pullImageAsBitmapFromUrl(photo.getAsUrl()));\n\n photos.add(photo);\n Log.i(\"Success\", \"Photo successfully added to photos list\");\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JDOMException e) {\n e.printStackTrace();\n }\n\n return photos;\n }", "@Override\n public List<MetadataWrapper> extractContent(InputStream stream, String filename, String mimeType, List<String> tags, String from, String to, boolean recursive) {\n\n Logger.getLogger(\"DefaultFileConverter\").log(Level.INFO, filename + \": \" + mimeType + \" :recursive = \" + recursive);\n try (InputStream fileStream = stream) {\n\n List<MetadataWrapper> contents =new ArrayList<>();\n\n\n //parse Document\n AutoDetectParser parser = new AutoDetectParser();\n Metadata metadata = new Metadata();\n BodyContentHandler handler = new BodyContentHandler();\n TikaInputStream tikaInputStream = TikaInputStream.get(fileStream);\n parser.parse(tikaInputStream, handler, metadata);\n\n contents.add(new FileMetadataWrapper(filename, mimeType, handler.toString(), tags, from, to));\n\n if(recursive) {\n //parse embedded contents\n List<MetadataWrapper> extracted = extractEmbeddedContent(tikaInputStream, filename, from, to);\n contents.addAll(extracted);\n }\n\n Logger.getLogger(\"DefaultFileConverter\").log(Level.INFO, filename + \": \" + \"contents: \" + contents);\n return contents;\n\n } catch (IOException | SAXException | TikaException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "public List<MediaFile> list() {\n\t\treturn (doc != null ? listFeed() : listHtml());\n\t}", "public ArrayList<PhotoAlbum> getContents() {\n return ( ArrayList<PhotoAlbum> ) contents;\n }", "public List<T> extract(String filename)\n {\n if (StringUtils.isBlank(filename))\n {\n throw new IllegalStateException(\"Name of the file must be specified!\");\n }\n else\n {\n data = new ArrayList<T>();\n ClassLoader classLoader = getClass().getClassLoader();\n InputStream inputStream = classLoader.getResourceAsStream(filename);\n\n Scanner scanner = new Scanner(inputStream);\n while (scanner.hasNextLine())\n {\n parse(scanner.nextLine());\n }\n scanner.close();\n\n return data;\n }\n }", "public List<String> getFileContent() {\r\n\t\tTextFileProcessor proc = new TextFileProcessor();\r\n\t\tthis.processFile(proc);\r\n\t\treturn proc.strList;\r\n\t}", "@JsonIgnore public Collection<Mass> getFatContents() {\n final Object current = myData.get(\"fatContent\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Mass>) current;\n }\n return Arrays.asList((Mass) current);\n }", "java.util.List<java.lang.String>\n getMetadataList();", "java.util.List<java.lang.String>\n getMetadataList();", "List<MediaMetadata> getAll();", "@Override\n\tpublic ArrayList<FileSystemItem> getContent() {\n\t\treturn this.content;\n\t}", "public List<String> getContent()\n {\n return fContent;\n }", "public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList() {\n return imagesByHandler_;\n }", "@Override\n\t\tpublic List<String> getPhotos() throws RemoteException {\n\t\t\treturn null;\n\t\t}", "public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> getImagesByHandlerList() {\n return imagesByHandler_;\n }", "public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> getImagesByHandlerList() {\n if (imagesByHandlerBuilder_ == null) {\n return java.util.Collections.unmodifiableList(imagesByHandler_);\n } else {\n return imagesByHandlerBuilder_.getMessageList();\n }\n }", "public ArrayList<String> getContentList() {\n\t\treturn contentList;\n\t}", "public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList() {\n if (imagesByHandlerBuilder_ != null) {\n return imagesByHandlerBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(imagesByHandler_);\n }\n }", "@JsonIgnore public Collection<Mass> getSodiumContents() {\n final Object current = myData.get(\"sodiumContent\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Mass>) current;\n }\n return Arrays.asList((Mass) current);\n }", "private List<MediaFile> listHtml() {\n\t\tList<MediaFile> list = new ArrayList<MediaFile>(32);\n\t\treturn list;\n\t}", "private void parseItems(List<FlickrPhoto> items, JSONObject jsonBody) throws IOException, JSONException {\n Gson gson = new Gson(); // got gson parsing\n JSONObject photosJsonObject =jsonBody.getJSONObject(\"photos\");\n JSONArray photosJsonArray =photosJsonObject.getJSONArray(\"photo\");\n\n for (int i = 0; i< photosJsonArray.length(); i++){\n JSONObject photoJsonObject = photosJsonArray.getJSONObject(i);\n FlickrPhoto item = gson.fromJson(photoJsonObject.toString(), FlickrPhoto.class);\n int index = item.getDescription().indexOf(getTravelTrackerSignaturePrefixStringWithNL());\n if (index < 0 ) {\n index = item.getDescription().indexOf(getTravelTrackerSignaturePrefixString());\n }\n if (index >= 0 ) {\n item.setDescription(item.getDescription().substring(0, index));\n }\n items.add(item);\n }\n }", "public List<ReceiptLineItem> Parse() {\n List<ReceiptLineItem> receiptLineItems = new ArrayList<>();\n\n ArrayList<String> order_content = GetOrderContent();\n resolveInlined(order_content);\n ArrayList<Integer> categoryPositions = FindEachCategoryPosition(order_content);\n\n //Resolve the item sections for each category\n // startLine, endLine: start and end of each category\n for (int categoryIndex = 0; categoryIndex < categoryPositions.size() - 1; categoryIndex++) {\n int startLine = categoryPositions.get(categoryIndex);\n int endLine = categoryPositions.get(categoryIndex + 1);\n if ((endLine - startLine - 2) % ColesReceiptItem.EXPECTED_ITEM__SECTION_LINE != 0) {\n ResolveTheItemSection(order_content, startLine + 1, endLine - 1);\n }\n }\n\n RemoveCategoryNameChunk(order_content);\n\n // Add to receiptLineItems for each item section\n for (int index = 0; index < order_content.size(); index = index + ColesReceiptItem.EXPECTED_ITEM__SECTION_LINE)\n receiptLineItems.add(ParseItem(order_content.subList(index, index + ColesReceiptItem.EXPECTED_ITEM__SECTION_LINE)));\n\n return receiptLineItems;\n }", "static public ObservableList<ImageMetaInfo> getImagesInfo(File path) {\n ObservableList<ImageMetaInfo> observableList = FXCollections.observableArrayList();\n ExtFilter fileFilter = new ExtFilter();\n File[] imageFilesArray = path.listFiles(fileFilter);\n for (File file : imageFilesArray) {\n ImageMetaInfo imageMetaInfo = getImageMetaInfo(file);\n observableList.add(imageMetaInfo);\n }\n return observableList;\n }", "java.util.List<com.google.protobuf.ByteString> getImgDataList();", "public List<MCRContent> getAll() throws IOException, JDOMException, SAXException {\n\t\tList<MCRContent> resultsSet = new ArrayList<>();\n\t\t// build basic part of API URL\n\t\tString baseQueryURL = API_URL + \"/affiliation/AFFILIATION_ID:\" + AFFIL_ID + \"?apikey=\" + API_KEY\n\t\t\t\t+ \"&view=DOCUMENTS\";\n\n\t\t// divide API request in blocks a XXX documents (in final version 200\n\t\t// documents per block, number of blocks determined by total number of\n\t\t// documents)\n\t\t// int numberOfPublications = getNumberOfPublications(baseQueryURL);\n\t\t// at the moment only testing, two blocks a 10 documents\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tint start = 10 * i;\n\t\t\tint count = 10;\n\n\t\t\t// build API URL\n\t\t\tString queryURL = baseQueryURL + \"&start=\" + start + \"&count=\" + count + \"&view=DOCUMENTS\";\n\n\t\t\t// add block to list of blocks\n\t\t\tresultsSet.add(getResponse(queryURL));\n\t\t}\n\t\t// return API-response\n\t\treturn resultsSet;\n\t}", "public List<String> getContent(){\n\t\t\tif (canHaveContent()){\n\t\t\t\treturn this.content;\n\t\t\t}else{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t}", "public ArrayList<Item> parse(String fileName) throws SAXException,\n\t\t\tIOException {\n\t\tFile f = new File(fileName);\n\t\tDocument doc = builder.parse(f);\n\n\t\t// get the <items> root element\n\n\t\tElement root = doc.getDocumentElement();\n\t\treturn getItems(root);\n\t}", "public static NodeList findAllImages(DocumentFragment df)\n throws Exception {\n // troubble with expath in some dfs\n // do it the hard way:\n try {\n String domstring = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?><\"+WXTROOT+\"></\"+WXTROOT+\">\";\n Document doc = makeDomFromString(domstring,true,null);\n doc.getDocumentElement().appendChild(doc.importNode(df, true));\n return doc.getElementsByTagName(\"img\");\n } catch (Exception ex) {\n throw new Exception(reporter.getBundleString(\"Could_not_extract_images\", ex.getMessage()));\n }\n }", "public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> getImagesByTransformList() {\n if (imagesByTransformBuilder_ == null) {\n return java.util.Collections.unmodifiableList(imagesByTransform_);\n } else {\n return imagesByTransformBuilder_.getMessageList();\n }\n }", "java.util.List<entities.Torrent.FileInfo>\n getFileInfoList();", "public ArrayList<?> getItems(String filename){\n \n try {\n FileInputStream fis = new FileInputStream(filename);\n ObjectInputStream ois = new ObjectInputStream(fis);\n items = (ArrayList<?>) ois.readObject();\n ois.close();\n \n \n }catch(IOException e){\n System.out.println(e);\n }catch(ClassNotFoundException e){\n System.out.println(e);\n }\n \n return items;\n }", "private static List<FlickrPhotoSize> parsePhotoSizeItems(JSONObject jsonBody) throws IOException, JSONException {\n Gson gson = new Gson(); // got gson parsing\n JSONObject photosJsonObject =jsonBody.getJSONObject(\"sizes\");\n JSONArray photosJsonArray =photosJsonObject.getJSONArray(\"size\");\n\n List<FlickrPhotoSize> items = new ArrayList<>();\n for (int i = 0; i< photosJsonArray.length(); i++){\n JSONObject photoJsonObject = photosJsonArray.getJSONObject(i);\n FlickrPhotoSize item = gson.fromJson(photoJsonObject.toString(), FlickrPhotoSize.class);\n items.add(item);\n }\n return items;\n }", "public ArrayList<String> getPhotos() {return photos;}", "public List<Image> parseMainImagesResult(Document doc) {\n\n ArrayList<Image> mainImages = new ArrayList<>();\n Elements mainHtmlImages = doc.select(CSS_IMAGE_QUERY);\n Timber.i(\"Images: %s\", mainHtmlImages.toString());\n String href;\n Image mainImage;\n for (Element mainHtmlImage : mainHtmlImages) {\n href = mainHtmlImage.attr(\"href\");\n Timber.i(\"Link href: %s\", href);\n mainImage = new Image(href);\n mainImages.add(mainImage);\n }\n return mainImages;\n }", "public ArrayList<MaterialData> parseExcelFile(InputStream is) {\n\t\ttry {\n\t\t\tWorkbook workbook = new XSSFWorkbook(is);\n\t\t\tDataFormatter formatter = new DataFormatter();\n\t\t\tSheet sheet = workbook.getSheet(\"RAWDATA\");\n\t\t\tIterator<Row> rows = sheet.iterator();\n\n\t\t\tArrayList<MaterialData> values = new ArrayList<MaterialData>();\n\n\t\t\tint rowNumber = 0;\n\t\t\twhile (rows.hasNext()) {\n\t\t\t\tRow currentRow = rows.next();\n\n\t\t\t\t// skip header and next two column (totally ignored first 3 rows)\n\t\t\t\tif (rowNumber < 3) {\n\t\t\t\t\trowNumber++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tMaterialData material = new MaterialData();\n\t\t\t\tIterator<Cell> cellsInRow = currentRow.iterator();\n\t\t\t\tint columnNumber = 0;\n\t\t\t\twhile (cellsInRow.hasNext()) {\n\t\t\t\t\tCell currentCell = cellsInRow.next();\n\t\t\t\t\tif (columnNumber == 0)\n\t\t\t\t\t\tmaterial.setMaterialId((long) currentCell.getNumericCellValue());\n\t\t\t\t\telse if (columnNumber == 1)\n\t\t\t\t\t\tmaterial.setClassName(formatter.formatCellValue(currentCell));\n\t\t\t\t\telse if (columnNumber == 2)\n\t\t\t\t\t\tmaterial.setCharacter(formatter.formatCellValue(currentCell));\n\t\t\t\t\telse if (columnNumber == 3)\n\t\t\t\t\t\tmaterial.setValue(formatter.formatCellValue(currentCell));\n\t\t\t\t\tcolumnNumber++;\n\t\t\t\t}\n\n\t\t\t\tif (material.getMaterialId() != 0) {\n//\t\t\t\t\tSystem.out.println(material);\n\t\t\t\t\tvalues.add(material);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// Close WorkBook\n\t\t\tworkbook.close();\n\t\t\tSystem.out.println(\"Total Count \" + values.size());\n\t\t\tSystem.out.println(\"First Element \" + values.get(0));\n\t\t\tSystem.out.println(\"Last Element \" + values.get(values.size() - 1));\n\t\t\treturn values;\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"FAIL! -> message = \" + e.getMessage());\n\t\t}\n\t}", "public String[] parseContent(String s) {\n\t\t\n\t\tint column = 0;\n\t\tint len = s.length();\n\t\tString[] data = new String[110];\n\t\tchar[] ch = s.toCharArray();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i=0; i < len; i++) {\n\t\t\tif (ch[i] == '\\\"') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (i == len - 1) {\n\t\t\t\tdata[column] = sb.toString();\n\t\t\t}\n\t\t\t\n\t\t\tif ((ch[i] != ',') || ((ch[i] == ',') && (i+1 < len) && (ch[i+1] == ' '))) {\n\t\t\t\tsb.append(ch[i]);\n\t\t\t} else {\n\t\t\t\tif (i == len - 1) {\n\t\t\t\t\tcolumn = 0;\n\t\t\t\t}\t\n\t\t\t\tdata[column] = sb.toString();\n\t\t\t\tsb.setLength(0);\n\t\t\t\tcolumn++;\n\t\t\t}\n\t\t}\n\t\tif (column < 109) {\n\t\t\treturn null;\n\t\t}\n\t\treturn data;\n\t}", "public static List<String> parseContents(JSONObject jsonBook) throws ContentsException {\n\t\tif (jsonBook == null) throw new ContentsException(\"The object 'jsonBook' is null.\");\t\t\n\t\t\n\t\tList<String> contents = null;\n\t\t\n\t\ttry {\n\t\t\tJSONArray jsonContents = jsonBook.getJSONArray(\"contents\");\n\t\t\tcontents = new ArrayList<String>(jsonContents.length());\n\t\t\tfor (int i = 0; i < jsonContents.length(); i++) {\n\t\t\t\tif (!jsonContents.isNull(i)) contents.add(jsonContents.getString(i));\n\t\t\t}\n\t\t} catch (JSONException jsone) {\n\t\t\tLog.e(\"JSONContentsParser.parseContents\", \"Error on read JSON: \" + jsone.getMessage(), jsone);\n\t\t} catch (Exception e) {\n\t\t\tLog.e(\"JSONContentsParser.parseContents\", \"Error on read JSON: \" + e.getMessage(), e);\n\t\t}\n\t\t\n\t\treturn contents;\n\t}", "@JsonIgnore public Collection<Mass> getTransFatContents() {\n final Object current = myData.get(\"transFatContent\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Mass>) current;\n }\n return Arrays.asList((Mass) current);\n }", "@JsonIgnore public Collection<Mass> getFiberContents() {\n final Object current = myData.get(\"fiberContent\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Mass>) current;\n }\n return Arrays.asList((Mass) current);\n }", "List<LoggingEvent> parse(InputStream is) throws ParseException;", "java.util.List<java.lang.String> getContentsList();", "public static ArrayList<Metadata> getMetadata() {\n\t\tmetadata.add(new Metadata(\"id\", \"Numero identificativo del lavoro\", \"long\"));\n\t\tmetadata.add(new Metadata(\"role\", \"Ruolo lavorativo\", \"String\"));\n\t\tmetadata.add(new Metadata(\"cname\", \"Nome dell'azienda\", \"String\"));\n\t\tmetadata.add(new Metadata(\"etype\", \"Tipo di impiego\", \"String\"));\n\t\tmetadata.add(new Metadata(\"location\", \"Luogo\", \"String\"));\n\t\tmetadata.add(new Metadata(\"remote\", \"Lavoro a distanza\", \"Bool\"));\n\t\t\n\n\t\treturn metadata;\n\t}", "public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList() {\n return imagesByTransform_;\n }", "public List<String> content() {\n return content;\n }", "public List<RssFeedItem> getItems() throws Exception {\n // using SaxParser as the method of parsing the feed. \n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n // SAX parser handler object which handles feed elements\n RssParseHandler handler = new RssParseHandler();\n saxParser.parse(rssUrl, handler);\n // The result of the parsing process is being stored in the handler object\n return handler.getItems();\n }", "public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList() {\n if (imagesByTransformBuilder_ != null) {\n return imagesByTransformBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(imagesByTransform_);\n }\n }", "@Override\n\tprotected List<Document> loadContent(String content) throws Exception {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument document = \n\t\t\t\tdBuilder.parse(new InputSource(new StringReader(content)));\n\t\tdocument.getDocumentElement().normalize();\n\t\tList<Document> list = new LinkedList<>();\n\t\tlist.add(document);\n\t\treturn list;\n\t}", "public static List<OperationData> getElements() {\n return new ArrayList<>(content);\n }", "public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> getImagesByTransformList() {\n return imagesByTransform_;\n }", "private ArrayList<String> GetOrderContent() {\n ArrayList<String> order_content = new ArrayList<>();\n boolean added = false;\n for (String line : receipt_lines) {\n if (IsReceiptHeader(line) || IsReceiptFooter(line) || ColesReceiptItem.Is_So_On_Keyword(line) || ColesReceiptItem.Is_Empty(line))\n continue;\n if (ColesReceiptItem.Is_Total_Line(line)) break;\n if (ColesReceiptItem.Is_Order_Summary_Keyword(line))\n added = true;\n else if (added) order_content.add(line);\n }\n return order_content;\n }", "@JsonIgnore public Collection<Mass> getSugarContents() {\n final Object current = myData.get(\"sugarContent\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Mass>) current;\n }\n return Arrays.asList((Mass) current);\n }", "private void odfContentList(Document document) {\n\t\t// mimetype\n\t\t// content\n\t\t// styles\n\t\t// meta\n\t\t// settings\n\t\t// META-INF/manifest - this thing should tell us what is in the document\n\t\t// Versions\n\t\t// Thumbnails\n\t\t// Pictures\n\n\t\tOdfPackage pkg = document.getPackage();\n\n\t\tfor (String file : pkg.getFilePaths()) {\n\t\t\tif (file != null)\n\t\t\t\tfilePaths.add(file);\n\t\t}\n\n\t}", "public Object parseImage(int rssType, Document doc) throws Exception;", "public NSMutableArray<Pair> formattedFiles()\n {\n if ( formattedFiles == null )\n {\n formattedFiles = new NSMutableArray<Pair>();\n Pair[] rawPairs = (Pair[])task.result();\n if (rawPairs != null && rawPairs.length > 0)\n {\n EOEditingContext taskContext =\n rawPairs[0].file.editingContext();\n try\n {\n taskContext.lock();\n for (int i = 0; i < rawPairs.length; i++)\n {\n Pair pair = new Pair();\n formattedFiles.addObject(pair);\n pair.file = rawPairs[i].file\n .localInstance(localContext());\n pair.html = rawPairs[i].html;\n }\n }\n finally\n {\n taskContext.unlock();\n }\n }\n task.resultNoLongerNeeded();\n }\n return formattedFiles;\n }", "public List<Song> parseSongs(String respContent) {\n\t\treturn null;\r\n\t}", "public abstract List<String> getContent( );", "public List<PreFinanceDocument> getParsedSMSList() {\n List<PreFinanceDocument> preFinanceDocumentList = new ArrayList<>();\n Cursor cursor = getCursor();\n if (cursor.moveToFirst()) {\n do {\n String smsBody = cursor.getString(cursor.getColumnIndexOrThrow(KEY_BODY));\n\n if (hasCardNumber(smsBody) || hasAccountNumber(smsBody)) {\n String[] parsedSMSBody = parseSMSBody(smsBody);\n if (!parsedSMSBody[0].isEmpty()) {\n PreFinanceDocument preFinanceDocument = new PreFinanceDocument();\n preFinanceDocument.setDate(\n cursor.getString(\n cursor.getColumnIndexOrThrow(KEY_DATE)));\n\n preFinanceDocument.setValue(parsedSMSBody[0]);\n preFinanceDocument.setCurrency(parsedSMSBody[1]);\n preFinanceDocument.setDescription(parsedSMSBody[2]);\n preFinanceDocumentList.add(preFinanceDocument);\n }\n }\n } while (cursor.moveToNext());\n }\n\n closeCursor();\n\n return preFinanceDocumentList;\n }", "public abstract ArrayList<AprilTagDetection> getDetections();", "protected List<CrawlDatum> parse(CrawlDatum fetchDatum) {\n List<CrawlDatum> parseDatums = new ArrayList<CrawlDatum>(0);\n if (fetchDatum.getStatus() == CrawlDatum.STATUS_FETCH_SUCCESS) {\n CrawlDatum signatureDatum = new CrawlDatum(CrawlDatum.STATUS_SIGNATURE, 0);\n signatureDatum.setSignature(getSignature());\n parseDatums.add(signatureDatum);\n }\n return parseDatums;\n }", "private void getArticleAttachments(){\n\t\ttry{\n\t\t\tIN_ARTICLE_DETAILS = dataProvider.getArticleAttachemnts(IN_CATEGORYID, IN_ARTICLEID);\n\t\t\tIN_FILELIST = iCaching.parseData(new JSONArray(IN_ARTICLE_DETAILS.get(0).get(MEDIAATTACHMENT)));\n\t\t}catch(Exception e){\n\t\t\tIN_FILELIST = null;\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (IN_FILELIST !=null && IN_FILELIST.size()>0) {\n\t\t\t//prepare attachment list\n\t\t\tprepareFileList(IN_FILELIST,false);\n\t\t\tfileListAdapter = getFileListAdapter();\n\t\t\tlstAttachments.setAdapter(fileListAdapter);\n\t\t}\n\t}", "private static ArrayList<Note> parseResponse(final String response) {\n Winery firstWinery = new Winery(1, \"Test 1\");\r\n Winery secondWinery = new Winery(2, \"Test 2\");\r\n Wine firstWine = new Wine(1, firstWinery, \"Reisling\", 2011);\r\n Wine secondWine = new Wine(2, firstWinery, \"Merlot\", 2012);\r\n Wine thirdWine = new Wine(3, secondWinery, \"Baco Noir\", 2014);\r\n ArrayList<Note> notes = new ArrayList<>();\r\n notes.add(new Note(3, thirdWine, DateUtils.parseDateFromString(\"2012/3/5\"), 2));\r\n notes.add(new Note(2, secondWine, DateUtils.parseDateFromString(\"2011/10/1\"), 3));\r\n notes.add(new Note(1, firstWine, DateUtils.parseDateFromString(\"2010/5/13\"), 5));\r\n return notes;\r\n }", "private ArrayList<?> ParseXMLResponse(StringBuilder response, IDataInterface myHandler){\n \t\t SAXParserFactory spf = SAXParserFactory.newInstance();\n \t\t try {\n \t\t\tSAXParser sp = spf.newSAXParser();\n \t\t\tXMLReader xr = sp.getXMLReader();\n \t\t\t\n \t\t\txr.setContentHandler((ContentHandler) myHandler);\n \t\t\tInputSource is = new InputSource();\n \t\t\tis.setCharacterStream(new StringReader(response.toString()));\n \t\t\txr.parse(is);\n \t\t\t\n \t\t} catch (ParserConfigurationException e) {\n \t\t\te.printStackTrace();\n \t\t} catch (SAXException e) {\n \t\t\te.printStackTrace();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\treturn myHandler.getData();\n \t}", "@JsonIgnore public Collection<Mass> getCarbohydrateContents() {\n final Object current = myData.get(\"carbohydrateContent\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Mass>) current;\n }\n return Arrays.asList((Mass) current);\n }", "public ArrayList<ContentProviderOperation> parseEmails(ArrayList<ContentProviderOperation> operation, JsonArray emails);", "public Object[] getRawContent() {\n Object[] returnedContent = fFieldsMap.values().toArray(new Object[fFieldsMap.size()]);\n return returnedContent;\n }", "@Override\r\n\tpublic List<ManageNursingContentWithBLOBs> selectByExampleWithBLOBs(\r\n\t\t\tManageNursingContentExample example) throws Exception {\n\t\treturn mContentMapper.selectByExampleWithBLOBs(example);\r\n\t}", "public ArrayList<ForMngJrArticleModel> getJrArtArrayList(){\n\t\tArrayList<ForMngJrArticleModel> jrArticles = null;\n\t\tString nameOfFile = \"documents/journalDetails\".concat(\".dat\");\n\t\ttry {\n\t\t\tFileInputStream fisOfJrArt = new FileInputStream(nameOfFile);\n\t\t\tObjectInputStream oisOfJrArt = new ObjectInputStream(fisOfJrArt);\n\t\t\tObject ojct = oisOfJrArt.readObject();\n\t\t\tjrArticles = (ArrayList<ForMngJrArticleModel>) ojct;\n\t\t\toisOfJrArt.close();\n\t\t}\n\t\tcatch(FileNotFoundException fnfe) {\n\t\t\tfnfe.printStackTrace();\n\t\t}\n\t\tcatch(IOException ioet) {}\n\t\tcatch(ClassNotFoundException cnfe) {\n\t\t\tcnfe.printStackTrace();\n\t\t}\n\t\treturn jrArticles;\n\t}", "public void createContentList(String body) throws ParseException {\n try {\n HeaderFactoryExt headerFactory = new HeaderFactoryImpl();\n String delimiter = this.getContentTypeHeader().getParameter(BOUNDARY);\n\n if (delimiter == null) {\n this.contentList = new LinkedList();\n ContentImpl content = new ContentImpl(body, delimiter);\n content.setContentTypeHeader(this.getContentTypeHeader());\n this.contentList.add(content);\n return;\n }\n\n String[] fragments = body.split(\"--\" + delimiter + \"\\r\\n\");\n\n if (logger.isDebugEnabled()) {\n logger.debug(\"nFragments = \" + fragments.length);\n logger.debug(\"delimiter = \" + delimiter);\n logger.debug(\"body = \" + body);\n }\n \n for (int i = 0; i < fragments.length; i++) \n {\n \tString nextPart = fragments[i];\n\n // NOTE - we are not hanlding line folding for the sip header here.\n\n if (nextPart == null) {\n return;\n }\n StringBuffer strbuf = new StringBuffer(nextPart);\n while (strbuf.length() > 0\n && (strbuf.charAt(0) == '\\r' || strbuf.charAt(0) == '\\n'))\n strbuf.deleteCharAt(0);\n\n if (strbuf.length() == 0)\n continue;\n nextPart = strbuf.toString();\n int position = nextPart.indexOf(\"\\r\\n\\r\\n\");\n int off = 4;\n if (position == -1) {\n position = nextPart.indexOf(\"\\n\");\n off = 2;\n }\n if (position == -1)\n throw new ParseException(\"no content type header found in \" + nextPart, 0);\n String rest = nextPart.substring(position + off);\n\n if (rest == null)\n throw new ParseException(\"No content [\" + nextPart + \"]\", 0);\n // logger.debug(\"rest = [[\" + rest + \"]]\");\n String headers = nextPart.substring(0, position);\n ContentImpl content = new ContentImpl(rest, boundary);\n\n String[] headerArray = headers.split(\"\\r\\n\");\n for (int j = 0; j < headerArray.length; j++) \n {\n \tString hdr = headerArray[j];\n\n Header header = headerFactory.createHeader(hdr);\n if (header instanceof ContentTypeHeader) {\n content.setContentTypeHeader((ContentTypeHeader) header);\n } else if (header instanceof ContentDispositionHeader) {\n content.setContentDispositionHeader((ContentDispositionHeader) header);\n } else {\n throw new ParseException(\"Unexpected header type \" + header.getName(), 0);\n }\n contentList.add(content); \n\t\t\t\t} \n\t\t\t} \n } catch (StringIndexOutOfBoundsException ex) {\n throw new ParseException(\"Invalid Multipart mime format\", 0);\n }\n }", "private List<String> getDataFromApi() throws IOException {\n // Get a list of up to 10 files.\n List<String> fileInfo = new ArrayList<String>();\n FileList result = mService.files().list()\n .setMaxResults(10)\n .execute();\n List<File> files = result.getItems();\n if (files != null) {\n for (File file : files) {\n fileInfo.add(String.format(\"%s (%s)\\n\",\n file.getTitle(), file.getId()));\n }\n }\n return fileInfo;\n }", "protected List<String> readFile()\n {\n // Base size 620 for Google KML icons. This might be slow for larger\n // sets.\n List<String> lines = New.list(620);\n try (BufferedReader reader = new BufferedReader(\n new InputStreamReader(getClass().getResourceAsStream(myImageList), StringUtilities.DEFAULT_CHARSET)))\n {\n for (String line = reader.readLine(); line != null; line = reader.readLine())\n {\n lines.add(line);\n }\n }\n catch (IOException e)\n {\n LOGGER.warn(e.getMessage());\n }\n return lines;\n }", "private List<CellEle> decodeDoc(InputStream path) throws IOException {\n List<CellEle> list = new ArrayList<>();\n\n String content = FileUtil.readFile(inputStream);\n\n Document document = mxXmlUtils.parseXml(content);\n\n Node root = document.getFirstChild();\n Node child = root.getFirstChild();\n while (child != null) {\n CellEle ele = decodeCell(child);\n if (ele != null) {\n list.add(ele);\n }\n child = child.getNextSibling();\n }\n\n return list;\n }", "java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> \n getEntryList();", "@Override\r\n\tpublic E2ECheckpointElements getElements() {\n\t\treturn this.content;\r\n\t}", "public List getResult() {\n // Flush remaining text content in case the last text segment is\n // outside an element.\n try {\n this.flushCharacters();\n }\n catch (SAXException e) { /* Ignore... */ }\n return this.getDetachedContent(dummyRoot);\n }", "@Override\n\t\tpublic List<Person> parse(InputStream xml) throws Exception {\n\t\t\tList<Person> list = null;\n\t\t\tPerson p = null;\n\t\t\tXmlPullParser xpp = Xml.newPullParser();\n\t\t\txpp.setInput(xml, \"UTF-8\");\n\t\t\tint eventType = xpp.getEventType();\n\t\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\n\t\t\t\tswitch (eventType) {\n\n\t\t\t\tcase XmlPullParser.START_DOCUMENT:\n\t\t\t\t\tlist = new ArrayList<Person>();\n\t\t\t\t\tbreak;\n\t\t\t\tcase XmlPullParser.START_TAG:\n\t\t\t\t\tString name = xpp.getName();\n\t\t\t\t\tif (name.equals(\"person\")) {\n\t\t\t\t\t\tp = new Person();\n\t\t\t\t\t} else if (name.equals(\"id\")) {\n\t\t\t\t\t\tString id = xpp.nextText();\n\t\t\t\t\t\tp.setId(Integer.parseInt(id));\n\t\t\t\t\t} else if (name.equals(\"name\")) {\n\t\t\t\t\t\tString pName = xpp.nextText();\n\t\t\t\t\t\tp.setName(pName);\n\t\t\t\t\t} else if (name.equals(\"age\")) {\n\t\t\t\t\t\tString age = xpp.nextText();\n\t\t\t\t\t\tp.setAge(Integer.parseInt(age));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase XmlPullParser.END_TAG:\n\t\t\t\t\tString tagName = xpp.getName();\n\t\t\t\t\tif (tagName.equals(\"person\")) {\n\t\t\t\t\t\tlist.add(p);\n\t\t\t\t\t\tp = null;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t\teventType = xpp.next();\n\t\t\t}\n\t\t\treturn list;\n\t\t}", "java.util.List<ds.hdfs.generated.FileMetadata> \n getFilesList();", "@Override\n public void getFilesContent(List<FileReference> resultFilesContent) {\n }", "@Override\n public void getFilesContent(List<FileReference> resultFilesContent) {\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByHandler(int index);", "public String[] parseSrc()\n {\n String [] values;\n\n String src = driver.getPageSource();\n int begin = src.indexOf(\"496px;\\\"><\") + 8;\n int endScope = src.indexOf(\"id=\\\"dialog\\\"\");\n src = src.substring(begin, endScope);\n int end = src.indexOf(\"</span></div>\");\n src = src.substring(0, end);\n\n values = src.split(\"</span>\");\n\n return values;\n }", "public List<VueMetadataElement> getXMLdata() {\n // TODO: FIX\n // if (isEmpty())\n // return null;\n // else\n return dataList;\n }", "public ArrayList<String> getAssignmentFileList(String metadataFileContent) {\r\n\t\tint listLength = IlmProtocol.FILE_LIST_NODE.length();\r\n\t\tint startIndex = metadataFileContent.indexOf(\"<\" + IlmProtocol.FILE_LIST_NODE + \">\");\r\n\t\tint endIndex = metadataFileContent.indexOf(\"</\" + IlmProtocol.FILE_LIST_NODE + \">\");\r\n\t\tString fileListString = metadataFileContent.substring(startIndex, endIndex + 3 + listLength);\r\n\r\n\t\tArrayList<String> assignmentFileList = new ArrayList<String>();\r\n\t\tint fileLength = IlmProtocol.ASSIGNMENT_FILE_NODE.length();\r\n\t\tendIndex = 0;\r\n\t\tdo {\r\n\t\t\tstartIndex = fileListString.indexOf(\"<\" + IlmProtocol.ASSIGNMENT_FILE_NODE + \">\", endIndex) + 2 + fileLength;\r\n\t\t\tendIndex = fileListString.indexOf(\"</\" + IlmProtocol.ASSIGNMENT_FILE_NODE + \">\", startIndex);\r\n\t\t\tassignmentFileList.add(fileListString.substring(startIndex, endIndex));\r\n\t\t} while (endIndex < fileListString.lastIndexOf(\"</\" + IlmProtocol.ASSIGNMENT_FILE_NODE + \">\"));\r\n\t\treturn assignmentFileList;\r\n\t}", "List<Attachment> getAttachmentList(ContentIdentifier id);", "public Collection getMimeTypesInputStream(InputStream in)\n\t\t\tthrows UnsupportedOperationException {\n\t\treturn lookupMimeTypesForMagicData(in);\n\t}", "public static ArrayList<ArrayList<Feiertag>> produceFromString(File[] f) {\n\t\tArrayList<ArrayList<Feiertag>> ret = new ArrayList<ArrayList<Feiertag>>();\n\t\tfor (int i = 0; i < f.length; i++) {\n\t\t\tArrayList<Feiertag> temp = new ArrayList<Feiertag>();\n\t\t\ttry {\n\t\t\t\tScanner myReader = new Scanner(f[i]);\n\t\t\t\twhile (myReader.hasNextLine()) {\n\t\t\t\t\tString data = myReader.nextLine();\n\t\t\t\t\ttemp.add(new Feiertag(FeiertageFactory.toDate(data), FeiertageFactory.toName(data)));\n\t\t\t\t}\n\t\t\t\tmyReader.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tret.add(temp);\n\t\t}\n\t\treturn ret;\n\t}", "private List<ExerciseType> loadCustomExercises() {\n\t\tList<ExerciseType> list = new ArrayList<ExerciseType>();\n\n\t\tLog.v(TAG, \"Loading custom exercises\");\n\n\t\tFile customExerciseFolder = new File(mContext.getFilesDir().toString() + \"/\"\n\t\t\t\t+ IDataProvider.CUSTOM_EXERCISE_FOLDER);\n\t\tif(!customExerciseFolder.exists()){\n\t\t\tcustomExerciseFolder.mkdirs();\n\t\t\tLog.d(TAG, \"Folder for custom exercises does not exist, will create it now.\");\n\t\t}\n\t\t\n\t\tString[] customFiles = customExerciseFolder.list();\n\n\t\tfor (String f : customFiles) {\n\t\t\tif (f.endsWith(\".xml\")) {\n\t\t\t\tExerciseTypeXMLParser parser = new ExerciseTypeXMLParser(mContext);\n\t\t\t\tExerciseType ex = parser.read(new File(customExerciseFolder + \"/\" + f));\n\t\t\t\tif(ex != null){\n\t\t\t\t\tlist.add(ex);\n\t\t\t\t}else{\n\t\t\t\t\tLog.e(TAG, \"Exercise parser returned null\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public ArrayList<ImageFile> getImageFiles() {\n return new ArrayList<>(imageFiles);\n }", "private static List<Restaurant> analyzedContent(List<String> fileContent) {\n recommendationsList = new ArrayList<>();\n\n for (String str : fileContent) {\n ArrayList<String> strComponents = split(str);\n recommendationsList.add(analyzedRestaurant(strComponents));\n }\n return recommendationsList;\n }", "List<Park> parse() {\n\t\tList<Park> parks = new ArrayList<Park>();\n\t\ttry {\n\t\t\tFile fXmlFile = new File(filename);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory\n\t\t\t\t\t.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\tNodeList nList = doc.getElementsByTagName(\"node\");\n\n\t\t\tfor (int temp = 0; temp < nList.getLength(); temp++) {\n\n\t\t\t\tNode nNode = nList.item(temp);\n\n\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\t\tElement eElement = (Element) nNode;\n\n\t\t\t\t\tPark Park = new Park();\n\n\t\t\t\t\tPark.setLatitude(Double.parseDouble(eElement\n\t\t\t\t\t\t\t.getAttribute(\"lat\")));\n\t\t\t\t\tPark.setLongitude(Double.parseDouble(eElement\n\t\t\t\t\t\t\t.getAttribute(\"lon\")));\n\n\t\t\t\t\tparks.add(Park);\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\treturn parks;\n\t}", "public ArrayList<Group> GetImageStorageMelanoma() {\n\t\tExListViewController selImagens = new ExListViewController();\n\t\treturn selImagens.SelectPicsOnMelanomaDirectory(CreateListFiles());\n\t}", "public static ArrayList<Map<String,String>> getContentsFromCert()\n {\n ArrayList<String> contents = getFeedContents(AdressesClass.getUrls().get(3));\n ArrayList<Map<String,String>> allContents = new ArrayList<Map<String, String>>();\n Map<String,String> tempMap = new HashMap<String, String>();\n tempMap.put(\"URI\",AdressesClass.getUrls().get(3));\n allContents.add(tempMap);\n for (int i = 0; i < contents.size(); i++) {\n\n allContents.add(HtmlParseFromCert(contents.get(i)));\n }\n\n return allContents;\n }", "public List<String> getimagenames() {\n List<String> arrimg=new ArrayList<String>();\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \" + TABLE_NAME +\" ORDER BY \" + POSITIONNO + \" ASC\" ,null);\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n String name = cursor.getString(cursor.getColumnIndex(IMGNAME));\n\n arrimg.add(name);\n cursor.moveToNext();\n }\n }\n\n return arrimg;\n }", "private List<Embarcation> cursorToEmbarcationList(Cursor cursor){\n\t\tList<Embarcation> resultList = new ArrayList<Embarcation>();\n\t\t\n\t\twhile(cursor.moveToNext()){\n\t\t\tEmbarcation embarcation = new Embarcation(\n\t\t\t\t\tcursor.getInt(cursor.getColumnIndex(ID_WEB)),\n\t\t\t\t\tcursor.getString(cursor.getColumnIndex(LIBELLE)),\n\t\t\t\t\tcursor.getString(cursor.getColumnIndex(COMMENTAIRE)),\t\t\t\t\t\n\t\t\t\t\tcursor.getInt(cursor.getColumnIndex(DISPONIBLE)) > 0,\t\n\t\t\t\t\tcursor.getInt(cursor.getColumnIndex(CONTENANCE)),\t\t\t\n\t\t\t\t\tcursor.getLong(cursor.getColumnIndex(VERSION))\n\t\t\t\t\t);\n\t\t\t\n\t\t\tresultList.add(embarcation);\t\t\t\n\t\t}\n\t\tcursor.close();\n\t\t\n\t\treturn resultList;\n\t}", "java.util.List<? extends entities.Torrent.FileInfoOrBuilder>\n getFileInfoOrBuilderList();" ]
[ "0.61635965", "0.56097835", "0.5607213", "0.5454323", "0.5411374", "0.53800905", "0.53321594", "0.5293609", "0.5270647", "0.52372396", "0.52007574", "0.513925", "0.51378983", "0.5119044", "0.5119044", "0.5109154", "0.50656366", "0.503096", "0.49828923", "0.49746394", "0.496854", "0.49557108", "0.49485493", "0.4948095", "0.49473405", "0.49134314", "0.4906667", "0.48898172", "0.48856276", "0.48792675", "0.48620632", "0.48568544", "0.48486948", "0.48269242", "0.48246962", "0.4824179", "0.48229778", "0.48214552", "0.48198935", "0.4806896", "0.4804898", "0.48042095", "0.47988644", "0.47882512", "0.47879803", "0.47798145", "0.4776024", "0.47601265", "0.47569856", "0.4753585", "0.4749642", "0.47440827", "0.47399163", "0.4724972", "0.4696863", "0.46889904", "0.46833542", "0.4682607", "0.4681855", "0.4681404", "0.4669435", "0.4668177", "0.466501", "0.46600595", "0.4659408", "0.4648723", "0.46452627", "0.46325868", "0.46319348", "0.46314344", "0.4626789", "0.46228424", "0.4612255", "0.46056122", "0.4600966", "0.45987338", "0.45785385", "0.45680583", "0.45602503", "0.45572084", "0.4553737", "0.45461535", "0.45440358", "0.45440358", "0.45439935", "0.45404115", "0.45333785", "0.4530091", "0.45156938", "0.45096436", "0.45044518", "0.44989473", "0.4498336", "0.44979018", "0.4494239", "0.44878697", "0.44835848", "0.4480416", "0.44799733", "0.44748598" ]
0.83842206
0
This function returns generated terrain mesh. Heights of the terrain are based on the Perlin noise.
public TerrainMesh generateTerrain() { float[] vertices = new float[(zVertexCount * xSize) * 9]; float[] colors = new float[(zVertexCount * xSize) * 8]; float[] normals = new float[(zVertexCount * xSize) * 8]; int[] indices = new int[(zVertexCount * xSize) * 3]; for(int x = 0; x < xSize; x++) { for(int z = 0; z < zSize; z++) { TerrainSquare square = new TerrainSquare(this, new Vector2f(x, z), new Vector3f(x == 0 ? 0 : size * x, 0 + getHeight(x, z), z == 0 ? 0 : size * z), null); square.setColor(biomeGenerator.getColors()[square.getSquareId()]); storeSquareVertices(vertices, square); storeSquareColors(colors, square); storeSquareNormals(normals, square); storeSquareIndices(indices, square); terrainSquareMap.put(square.getSquareIndex(), square); } } return new TerrainMesh(vertices, colors, normals, indices); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void createTerrain( ) {\n //System.out.println( \"terrain#material: \" +getAppearance().getMaterial() ); \n ElevationGridGenerator gridGenerator = new ElevationGridGenerator(\n getTerrainWidth(),\n getTerrainDepth(),\n getTerrainHeights()[0].length,\n getTerrainHeights().length,\n getTranslation(),\n isTerrainCentered() );\n\n // set the terrain into the elevation grid handler\n gridGenerator.setTerrainDetail( getTerrainHeights(), 0 );\n\n GeometryData data = new GeometryData();\n data.geometryType = getGeometryType();\n data.geometryComponents = GeometryData.NORMAL_DATA;\n if ( getTexture() != null ){\n data.geometryComponents |= GeometryData.TEXTURE_2D_DATA;\n }\n try {\n gridGenerator.generate( data );\n } catch ( UnsupportedTypeException ute ) {\n System.out.println( \"Geometry type is not supported\" );\n }\n int format = GeometryArray.COORDINATES | GeometryArray.NORMALS;\n if ( getTexture() != null )\n format |= GeometryArray.TEXTURE_COORDINATE_2;\n GeometryArray geom = createGeometryArray( data, format );\n\n geom.setCoordinates( 0, data.coordinates );\n geom.setNormals( 0, data.normals );\n if ( getTexture() != null ){\n geom.setTextureCoordinates( 0, 0, data.textureCoordinates );\n }\n setGeometry( geom );\n }", "private void process(ArrayList<Float> points) {\n downsample(3, points);\n vertices = new Vector3f[nrows * ncols];\n texcoord = BufferUtils.createFloatBuffer(2 * nrows * ncols);\n indexes = BufferUtils.createIntBuffer(6 * (nrows - 1) * (ncols - 1));\n Vector3f[][][] fnormals = new Vector3f[nrows - 1][ncols - 1][2];\n normals = new Vector3f[nrows * ncols];\n float x, z;\n\n System.out.println(\"Processing \" + nrows + \"x\" + ncols + \" terrain...\");\n\n // First make vertices + texcoords\n x = 0.0f;\n for (int row = 0; row < nrows; row++) {\n z = 0.0f;\n for (int col = 0; col < ncols; col++) {\n vertices[(row * ncols) + col] = new Vector3f(x, data[row][col], z);\n texcoord.put(col / (float) ncols);\n texcoord.put(row / (float) nrows);\n z += cellsize;\n }\n x += cellsize;\n }\n // Indexes + face normals\n System.out.println(\"Populating faces...\");\n for (int row = 0; row < (nrows - 1); row++) {\n for (int col = 0; col < (ncols - 1); col++) {\n int base = 6 * ((row * (ncols - 1)) + col);\n // Triangle 1\n indexes.put((row * ncols) + col); // a\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col); // c\n // Triangle 2\n indexes.put(((row + 1) * ncols) + col); // c\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col + 1); // d\n // Faces\n base = (row * ncols) + col;\n Vector3f a = vertices[base];\n Vector3f b = vertices[base + 1];\n Vector3f c = vertices[base + ncols];\n Vector3f d = vertices[base + ncols + 1];\n Vector3f ba = b.subtract(a);\n Vector3f ca = c.subtract(a);\n Vector3f bc = b.subtract(c);\n Vector3f dc = d.subtract(c);\n // ormal.subtractLocal(pointa).crossLocal(pointc.x - pointa.x,\n // pointc.y - pointa.y, pointc.z - pointa.z);\n fnormals[row][col][0] = ba.crossLocal(ca).normalizeLocal();\n fnormals[row][col][1] = bc.crossLocal(dc).normalizeLocal();\n // Triangle ta = new Triangle(a,b,c);\n // Triangle tb = new Triangle(c,b,d);\n }\n }\n System.out.println(\"Calculating face normals...\");\n // Vector normals\n Vector3f t;\n // Corners\n // TL\n t = fnormals[0][0][0].add(fnormals[0][0][1]);\n t.normalizeLocal();\n normals[0] = t;\n // TR\n t = fnormals[0][ncols - 2][0].add(fnormals[0][ncols - 2][1]);\n t.normalizeLocal();\n normals[ncols - 1] = t;\n // BL\n t = fnormals[nrows - 2][0][0].add(fnormals[nrows - 2][0][1]);\n t.normalizeLocal();\n normals[(nrows - 1) * ncols] = t;\n // BR\n t = fnormals[nrows - 2][ncols - 2][0].add(fnormals[nrows - 2][ncols - 2][1]);\n t.normalizeLocal();\n normals[(nrows * ncols) - 1] = t;\n // Do first row and last row\n for (int col = 1; col < (ncols - 1); col++) {\n // First row\n t = fnormals[0][col - 1][0].add(fnormals[0][col - 1][1]);\n t.addLocal(fnormals[0][col][0]);\n t.addLocal(fnormals[0][col][1]);\n t.normalizeLocal();\n normals[col] = t;\n // Last row\n t = fnormals[nrows - 2][col - 1][0].add(fnormals[nrows - 2][col - 1][1]);\n t.addLocal(fnormals[nrows - 2][col][0]);\n t.addLocal(fnormals[nrows - 2][col][1]);\n t.normalizeLocal();\n normals[((nrows - 1) * ncols) + col] = t;\n }\n // Do first and last column\n for (int row = 1; row < (nrows - 1); row++) {\n // First col\n t = fnormals[row - 1][0][0].add(fnormals[row - 1][0][1]);\n t.addLocal(fnormals[row][0][0]);\n t.addLocal(fnormals[row][0][1]);\n t.normalizeLocal();\n normals[row * ncols] = t;\n // Last col\n t = fnormals[row - 1][ncols - 2][0].add(fnormals[row - 1][ncols - 2][1]);\n t.addLocal(fnormals[row][ncols - 2][0]);\n t.addLocal(fnormals[row][ncols - 2][1]);\n t.normalizeLocal();\n normals[(row * ncols) + (ncols - 1)] = t;\n // Centre cols\n for (int col = 1; col < (ncols - 1); col++) {\n t = fnormals[row - 1][col - 1][0].add(fnormals[row - 1][col - 1][1]);\n t.addLocal(fnormals[row - 1][col][0]);\n t.addLocal(fnormals[row - 1][col][1]);\n t.addLocal(fnormals[row][col - 1][0]);\n t.addLocal(fnormals[row][col - 1][1]);\n t.addLocal(fnormals[row][col][0]);\n t.addLocal(fnormals[row][col][1]);\n t.normalizeLocal();\n normals[(row * ncols) + col] = t;\n }\n }\n System.out.println(\"Processing finished...\");\n setBuffer(VertexBuffer.Type.Position, 3, BufferUtils.createFloatBuffer(vertices));\n setBuffer(VertexBuffer.Type.TexCoord, 2, texcoord);\n setBuffer(VertexBuffer.Type.Index, 3, indexes);\n setBuffer(VertexBuffer.Type.Normal, 3, BufferUtils.createFloatBuffer(normals));\n updateBound();\n System.out.println(\"NE corner: \" + vertices[vertices.length - 1].mult(0.006f));\n // Hint to renderer that we don't plan on modifying the terrain.\n this.setStatic();\n }", "public static DeformableMesh3D createTestBlock(double w, double h, double depth){\n ArrayList<double[]> pts = new ArrayList<double[]>();\n ArrayList<int[]> connections = new ArrayList<int[]>();\n ArrayList<int[]> triangles = new ArrayList<int[]>();\n\n pts.add(new double[]{-w/2, -h/2, depth/2});\n pts.add(new double[]{-w/2, h/2, depth/2});\n pts.add(new double[]{w/2, h/2, depth/2});\n pts.add(new double[]{w/2, -h/2, depth/2});\n\n pts.add(new double[]{-w/2, -h/2, -depth/2});\n pts.add(new double[]{-w/2, h/2, -depth/2});\n pts.add(new double[]{w/2, h/2, -depth/2});\n pts.add(new double[]{w/2, -h/2, -depth/2});\n\n //back face\n connections.add(new int[]{0, 4});\n connections.add(new int[]{0, 1});\n connections.add(new int[]{1, 5});\n connections.add(new int[]{5, 4});\n\n //front face\n connections.add(new int[]{3, 7});\n connections.add(new int[]{2, 3});\n connections.add(new int[]{2, 6});\n connections.add(new int[]{6, 7});\n\n //front-back connections.\n connections.add(new int[]{3, 0});\n connections.add(new int[]{1, 2});\n connections.add(new int[]{5, 6});\n connections.add(new int[]{7, 4});\n\n //top\n triangles.add(new int[]{0, 2, 1});\n triangles.add(new int[]{0,3,2});\n //top-diagonal\n connections.add(new int[]{0, 2});\n\n //back\n triangles.add(new int[]{0, 1, 5});\n triangles.add(new int[]{0,5,4});\n connections.add(new int[]{0, 5});\n\n //right\n triangles.add(new int[]{1,2,5});\n triangles.add(new int[]{5,2,6});\n connections.add(new int[]{5, 2});\n\n //front\n triangles.add(new int[]{2,3,6});\n triangles.add(new int[]{6,3,7});\n connections.add(new int[]{3, 6});\n\n //left\n triangles.add(new int[]{3,0,4});\n triangles.add(new int[]{3,4,7});\n connections.add(new int[]{3, 4});\n\n //bottom\n triangles.add(new int[]{4,5,6});\n triangles.add(new int[]{4,6,7});\n connections.add(new int[]{4, 6});\n return new DeformableMesh3D(pts, connections, triangles);\n\n }", "M generateNoise();", "public void generateTerrain()\n\t{\n\t\tint rand;\n\t\tint starting=(int)(blocksWide*0.45);//Choose the first grass block\n\t\tblocksTall=(int)(blocksWide*0.6);\n\t\tfor(int i=0;i<blocksWide;i++)\n\t\t{\n\t\t\t//Determine whether the next block will go up a level, down a level or stay the same (55% chance of staying the same)\n\t\t\trand=ThreadLocalRandom.current().nextInt(0,3);\t\n\t\t\tif(rand!=0)\n\t\t\t{\n\t\t\t\trand=ThreadLocalRandom.current().nextInt(-1,2);\n\t\t\t}\n\t\t\tif(starting+rand<blocksTall-2 && starting+rand>4)\t//Make sure new position isn't too close to the top or bottom\n\t\t\t{\n\t\t\t\tstarting+=rand;\n\t\t\t}\n\t\t\tgrassy[i]=starting;\n\t\t\tgrassT[i]=ThreadLocalRandom.current().nextInt(0,3);\n\t\t\t//Generate a platform to allow for collision detection\n\t\t\tplatforms.add(new Platform((double)i/blocksWide,(double)starting/blocksTall,1.0/blocksWide,1.0/blocksWide));\n\t\t}\n\t\tplatforms.add(new Platform(0.0,0.0,0.0,0.0));\n\t}", "public String getTerrain() {\n \r\n return terrain;\r\n }", "private Mesh createMesh(final int pTrianglesCount) {\n\t\tfinal int pSpeed \t\t\t= 20;\n\t\tfinal int pVertexCount\t \t= Mesh.VERTEX_SIZE * pTrianglesCount * 3; \t\n\t\tfinal float pColor \t\t\t= new Color(0f,0f,0f).getABGRPackedFloat();\n\t\tfinal float pSegmentWidth \t= CAMERA_WIDTH/pTrianglesCount;\n\t\tfinal float[] pBufferData \t= new float[pVertexCount];\t\n\t\t\n\t\tmHeightOffsetCurrent = new float[pVertexCount];\t\t\n\t\t\n\t\t//create triangles \n\t\t// A--B\n\t\t// \\ |\n\t\t// \\|\n\t\t// C\n\t\t//\n\t\tint i = 0;\n\t\tfloat x = 0f;\n\t\tfinal float pInitialHeight = 400;\n\t\tfor (int triangleIndex = 0;triangleIndex<pTrianglesCount;triangleIndex++){\n\t\t\t //first triangle \n\t\t\t pBufferData[(i * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_X] = x;\n\t\t\t pBufferData[(i * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_Y] = pInitialHeight;\n\t\t\t pBufferData[(i * Mesh.VERTEX_SIZE) + Mesh.COLOR_INDEX] = pColor;\n\t\t\t \n\t\t\t pBufferData[((i+1) * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_X] = x+pSegmentWidth;\n\t\t\t pBufferData[((i+1) * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_Y] = pInitialHeight;\n\t\t\t pBufferData[((i+1) * Mesh.VERTEX_SIZE) + Mesh.COLOR_INDEX] = pColor;\n\t\t\t \n\t\t\t pBufferData[((i+2) * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_X] = x+pSegmentWidth;\n\t\t\t pBufferData[((i+2) * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_Y] = 0;\t\n\t\t\t pBufferData[((i+2) * Mesh.VERTEX_SIZE) + Mesh.COLOR_INDEX] = pColor;\t\n\t\t\t \n\t\t\t i = i+3;\n\t\t\t x = x+pSegmentWidth;\n\t\t }\n\t\t \n\t\tfinal VertexBufferObjectManager VBOM = getVertexBufferObjectManager();\n\t\tfinal HighPerformanceMeshVertexBufferObject pMeshVBO = new HighPerformanceMeshVertexBufferObject(VBOM, pBufferData, pBufferData.length, DrawType.DYNAMIC, true, Mesh.VERTEXBUFFEROBJECTATTRIBUTES_DEFAULT);\n\t\t\n//\t\tpMesh = new Mesh(0, 0,pVertexCount,DrawMode.TRIANGLES,pMeshVBO){\t\t\n//\t\t\t\n//\t\t\tfloat progress_x = 0;\n//\t\t\t\n//\t\t\t@Override\n//\t\t protected void onManagedUpdate(final float pSecondsElapsed) { \n//\t\t\t\tsuper.onManagedUpdate(pSecondsElapsed);\n//\t\t\t\tdrawBySine(pSecondsElapsed);\n//\t\t this.mMeshVertexBufferObject.setDirtyOnHardware(); // include this line\n//\t\t progress_x+=(pSpeed*pSecondsElapsed);\n//\t\t };\n//\t\t\t\n//\t\t\tvoid drawBySine(final float pSecondsElapsed){\n//\t\t\t\tfinal float[] pBuff = pMeshVBO.getBufferData();\n//\t\t\t\tfor (int i = 0;i<((pTrianglesCount)*3);i++){ //FIRST part of triangles \n//\t\t\t\t\tif (i%3==0||i==0||((i-1)%3==0)){\n//\t\t\t\t\t\t//every vertex (v0) of triangle must be connected to previous triangle at second vertex (v1) to prevent stairs\n//\t\t\t\t\t\tif (i%3==0&&i>0){ \n//\t\t\t\t\t\t\tmHeightOffsetCurrent[i] = mHeightOffsetCurrent[i-2];\n//\t\t\t\t\t\t} else { \n//\t\t\t\t\t\t\tmHeightOffsetCurrent[i] = getNormalizedSine(i+progress_x, mTouchY, pTrianglesCount*3);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t} \n//\t\t\t\t\tpBuff[(i * Mesh.VERTEX_SIZE) + Mesh.VERTEX_INDEX_Y] = mHeightOffsetCurrent[i];\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\t\n//\t\t\tfloat getNormalizedSine(float x, float halfY, float maxX) {\t\n//\t\t\t double factor = (2 * Math.PI) / maxX;\n//\t\t\t return (float) ((Math.sin(x * factor) * halfY) + halfY);\n//\t\t\t}\n//\t\t\t\n//\t\t};\n\t\treturn pMesh;\n\t}", "public static WritableImage getSphereTexture(double[][][] noise, int width, int height) {\n\t\tWritableImage result = new WritableImage(width, height);\n\t\tPixelWriter writer = result.getPixelWriter();\n\t\t\n\t\tfor (int y = 0; y < height; y ++) {\n\t\t\tfor (int x = 0; x < width; x ++) {\n\t\t\t\tdouble u = (double)x/width;\n\t\t\t\tdouble v = (double)y/height;\n\t\t\t\t\n\t\t\t\tdouble lat = u * 2 * Math.PI;\n\t\t\t\tdouble lng = v * 2 * Math.PI;\n\t\t\t\t\n\t\t\t\tdouble xt = Math.sin(lng)*Math.cos(lat);\n\t\t\t\tdouble yt = Math.sin(lng)*Math.sin(lat);\n\t\t\t\tdouble zt = Math.cos(lng);\n\t\t\t\t\n\t\t\t\txt = MathUtils.map(xt, -1.0, 1.0, 0.0, noise.length - 1);\n\t\t\t\tyt = MathUtils.map(yt, -1.0, 1.0, 0.0, noise.length - 1);\n\t\t\t zt = MathUtils.map(zt, -1.0, 1.0, 0.0, noise.length - 1);\n\t\t\t\t\n\t\t\t\t//System.out.printf(\"%f %f\\n\", lat, lng);\n\t\t\t\t//System.out.printf(\"%d %d => %d %d %d\\n\", x, y, dX, dY, dZ);\n\t\t\t\t\n\t\t\t /* get remainders to weight values */\n\t\t\t double xrem = xt - Math.floor(xt);\n\t\t\t double yrem = yt - Math.floor(yt);\n\t\t\t double zrem = zt - Math.floor(zt);\n\t\t\t \n\t\t\t /* Weights of all adjacent cells */\n\t\t\t \n\t\t\t /* Values of all adjacent cells */\n\t\t\t double brf = noise[(int)Math.ceil(zt)][(int)Math.ceil(yt)][(int)Math.ceil(xt)];\n\t\t\t double blf = noise[(int)Math.ceil(zt)][(int)Math.ceil(yt)][(int)Math.floor(xt)];\n\t\t\t double tlf = noise[(int)Math.ceil(zt)][(int)Math.floor(yt)][(int)Math.floor(xt)];\n\t\t\t double trf = noise[(int)Math.ceil(zt)][(int)Math.floor(yt)][(int)Math.ceil(xt)];\n\t\t\t double brb = noise[(int)Math.floor(zt)][(int)Math.ceil(yt)][(int)Math.ceil(xt)];\n\t\t\t double blb = noise[(int)Math.floor(zt)][(int)Math.ceil(yt)][(int)Math.floor(xt)];\n\t\t\t double tlb = noise[(int)Math.floor(zt)][(int)Math.floor(yt)][(int)Math.floor(xt)];\n\t\t\t double trb = noise[(int)Math.floor(zt)][(int)Math.floor(yt)][(int)Math.ceil(xt)];\n\t\t\t \n\t\t\t /* weighted average of all adjacent cells */\n\t\t\t\tdouble val = 0.0;\n\t\t\t\tval += brf*xrem*yrem*zrem;\n\t\t\t\tval += blf*(1-xrem)*yrem*zrem;\n\t\t\t\tval += tlf*(1-xrem)*(1-yrem)*zrem;\n\t\t\t\tval += trf*xrem*(1-yrem)*zrem;\n\t\t\t\tval += brb*xrem*yrem*(1-zrem);\n\t\t\t\tval += blb*(1-xrem)*yrem*(1-zrem);\n\t\t\t\tval += tlb*(1-xrem)*(1-yrem)*(1-zrem);\n\t\t\t\tval += trb*xrem*(1-yrem)*(1-zrem);\n\t\t\t\t\t\t\n\t\t\t\t//val /= 8;\n\t\t\t\t\n\t\t\t\twriter.setColor(x, y, new Color(val,val,val,1.0));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Override\r\n\tprotected void generateAreas() {\n\t\tPerlinNoise noise = new PerlinNoise((int) getSeed(), perlinTemplate.getScale(), perlinTemplate.getOctaves(), perlinTemplate.getPersistence());\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\t\tif (getValue(x, y) != BASE) {\r\n\t\t\t\t\tif (noise.perlinNoise(x, y) > perlinTemplate.getThreshold()) {\r\n\t\t\t\t\t\tsetValue(x, y, WALL);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsetValue(x, y, FLOOR);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void buildHexes(){\n\t\t// Normal hexes\n\t\tHexLocation loc1 = new HexLocation(0, -2);\n\t\tTerrainHex hex1 = new TerrainHex(loc1, HexType.WOOD, 11);\n\t\thexes.put(loc1, hex1);\n\n\t\tHexLocation loc2 = new HexLocation(1, -2);\n\t\tTerrainHex hex2 = new TerrainHex(loc2, HexType.SHEEP, 12);\n\t\thexes.put(loc2, hex2);\n\t\t\n\t\tHexLocation loc3 = new HexLocation(2, -2);\n\t\tTerrainHex hex3 = new TerrainHex(loc3, HexType.WHEAT, 9);\n\t\thexes.put(loc3, hex3);\n\t\t\n\t\tHexLocation loc4 = new HexLocation(-1, -1);\n\t\tTerrainHex hex4 = new TerrainHex(loc4, HexType.BRICK, 4);\n\t\thexes.put(loc4, hex4);\n\t\t\n\t\tHexLocation loc5 = new HexLocation(0, -1);\n\t\tTerrainHex hex5 = new TerrainHex(loc5, HexType.ORE, 6);\n\t\thexes.put(loc5, hex5);\n\t\t\n\t\tHexLocation loc6 = new HexLocation(1, -1);\n\t\tTerrainHex hex6 = new TerrainHex(loc6, HexType.BRICK, 5);\n\t\thexes.put(loc6, hex6);\n\t\t\n\t\tHexLocation loc7 = new HexLocation(2, -1);\n\t\tTerrainHex hex7 = new TerrainHex(loc7,HexType.SHEEP, 10);\n\t\thexes.put(loc7, hex7);\n\t\t\n\t\tHexLocation loc8 = new HexLocation(-2, 0);\n\t\tTerrainHex hex8 = new TerrainHex(loc8, HexType.DESERT, 0);\n\t\thexes.put(loc8, hex8);\n\t\t\n\t\tHexLocation loc9 = new HexLocation(-1, 0);\n\t\tTerrainHex hex9 = new TerrainHex(loc9, HexType.WOOD, 3);\n\t\thexes.put(loc9, hex9);\n\t\t\n\t\tHexLocation loc10 = new HexLocation(0, 0);\n\t\tTerrainHex hex10 = new TerrainHex(loc10, HexType.WHEAT, 11);\n\t\thexes.put(loc10, hex10);\n\t\t\n\t\tHexLocation loc11 = new HexLocation(1, 0);\n\t\tTerrainHex hex11 = new TerrainHex(loc11, HexType.WOOD, 4);\n\t\thexes.put(loc11, hex11);\n\t\t\n\t\tHexLocation loc12 = new HexLocation(2, 0);\n\t\tTerrainHex hex12 = new TerrainHex(loc12, HexType.WHEAT, 8);\n\t\thexes.put(loc12, hex12);\n\t\t\n\t\tHexLocation loc13 = new HexLocation(-2, 1);\n\t\tTerrainHex hex13 = new TerrainHex(loc13, HexType.BRICK, 8);\n\t\thexes.put(loc13, hex13);\n\t\t\n\t\tHexLocation loc14 = new HexLocation(-1, 1);\n\t\tTerrainHex hex14 = new TerrainHex(loc14, HexType.SHEEP, 10);\n\t\thexes.put(loc14, hex14);\n\t\t\n\t\tHexLocation loc15 = new HexLocation(0, 1);\n\t\tTerrainHex hex15 = new TerrainHex(loc15, HexType.SHEEP, 9);\n\t\thexes.put(loc15, hex15);\n\t\t\n\t\tHexLocation loc16 = new HexLocation(1, 1);\n\t\tTerrainHex hex16 = new TerrainHex(loc16, HexType.ORE, 3);\n\t\thexes.put(loc16, hex16);\n\t\t\n\t\tHexLocation loc17 = new HexLocation(-2, 2);\n\t\tTerrainHex hex17 = new TerrainHex(loc17, HexType.ORE, 5);\n\t\thexes.put(loc17, hex17);\n\t\t\n\t\tHexLocation loc18 = new HexLocation(-1, 2);\n\t\tTerrainHex hex18 = new TerrainHex(loc18, HexType.WHEAT, 2);\n\t\thexes.put(loc18, hex18);\n\t\t\n\t\tHexLocation loc19 = new HexLocation(0, 2);\n\t\tTerrainHex hex19 = new TerrainHex(loc19, HexType.WOOD, 6);\n\t\thexes.put(loc19, hex19);\n\n\n\t\t\n\t}", "ArrayList<ArrayList<Double>> initrandomTerrainHeights() {\n ArrayList<ArrayList<Double>> result = new ArrayList<ArrayList<Double>>();\n for (int i = 0; i < ForbiddenIslandWorld.ISLAND_SIZE + 1; i = i + 1) {\n ArrayList<Double> result2 = new ArrayList<Double>();\n for (int j = 0; j < ForbiddenIslandWorld.ISLAND_SIZE + 1; j = j + 1) {\n result2.add(0.0);\n }\n result.add(result2);\n }\n result.get(0).set(ForbiddenIslandWorld.ISLAND_SIZE / 2, 1.0);\n result.get(ForbiddenIslandWorld.ISLAND_SIZE / 2).set(0, 1.0);\n result.get(ForbiddenIslandWorld.ISLAND_SIZE / 2).set(ForbiddenIslandWorld.ISLAND_SIZE / 2,\n (double) (ForbiddenIslandWorld.ISLAND_SIZE / 2));\n result.get(ForbiddenIslandWorld.ISLAND_SIZE / 2).set(ForbiddenIslandWorld.ISLAND_SIZE, 1.0);\n result.get(ForbiddenIslandWorld.ISLAND_SIZE).set(ForbiddenIslandWorld.ISLAND_SIZE / 2, 1.0);\n return result;\n }", "private void generatePrism() {\n\t\tdouble halfAltitude = Math.sin(Math.PI / 3); // The cross-section is an equilateral triangle with sides of length 2 units. The altitude is the height of the triangle with one edge horizontal\n\t\tverts = new Vector[] {new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3)};\n\t\tverts[0].setElements(new double[] {-1, -halfAltitude, -1});\n\t\tverts[1].setElements(new double[] {0, halfAltitude, -1});\n\t\tverts[2].setElements(new double[] {1, -halfAltitude, -1});\n\t\t// Use the same triangle of vertices but offset by 2 units along the z-axis\n\t\tverts[3].setElements(verts[0]);\n\t\tverts[4].setElements(verts[1]);\n\t\tverts[5].setElements(verts[2]);\n\t\tverts[3].setElement(2, 1);\n\t\tverts[4].setElement(2, 1);\n\t\tverts[5].setElement(2, 1);\n\t\t\n\t\tfaces = new int[][] {{0, 1, 2}, {0, 5, 3}, {0, 2, 5}, {0, 3, 4}, {0, 4, 1}, {1, 4, 5}, {1, 5, 2}, {3, 5, 4}};\n\t}", "ArrayList<ArrayList<Vertex>> generateInitVertices() {\n ArrayList<ArrayList<Vertex>> vertices = new ArrayList<ArrayList<Vertex>>();\n for (int x = 0; x < width; x++) {\n ArrayList<Vertex> temp = new ArrayList<Vertex>();\n for (int y = 0; y < height; y++) {\n temp.add(new Vertex(x, y));\n }\n vertices.add(temp);\n }\n Random r = new Random();\n for (ArrayList<Vertex> vList : vertices) {\n for (Vertex v : vList) {\n if (v.x != 0) {\n v.outEdges.add(new Edge(v, vertices.get(v.x - 1).get(v.y), r.nextInt(1000)));\n }\n if (v.x != width - 1) {\n v.outEdges.add(new Edge(v, vertices.get(v.x + 1).get(v.y), r.nextInt(1000)));\n }\n if (v.y != 0) {\n v.outEdges.add(new Edge(v, vertices.get(v.x).get(v.y - 1), r.nextInt(1000)));\n }\n if (v.y != height - 1) {\n v.outEdges.add(new Edge(v, vertices.get(v.x).get(v.y + 1), r.nextInt(1000)));\n }\n }\n }\n return vertices;\n }", "public Terrain proxy(Terrain terrain) {\r\n return new Mimic(terrain, this.terrain, color);\r\n }", "public TerrainMap getTerrainMap(){\n\t\treturn this.terrainMap;\n\t}", "public int noise(int xin, int yin, int zin);", "public void invertNormals() {\n mCubeNormalData = new float[]\n {\n // Front face\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n // Right face\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n // Back face\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n // Left face\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n // Top face\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n // Bottom face\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f\n };\n mCubeNormals.put(mCubeNormalData).position(0);\n\n }", "public void createMesh(GL2 gl){\r\n\t\tfor(int x = 0; x < chunkSize; x++){\r\n\t\t\tfor(int y = 0; y < chunkHeight; y++){\r\n\t\t\t\tfor(int z = 0; z < chunkSize; z++){\r\n\t\t\t\t\tif(y + pos[1]*chunkHeight <= ChunkManager.map2D(x + pos[0]*chunkSize, z + pos[2]*chunkSize)){\r\n\t\t\t\t\t\tblocks[x][y][z] = (byte) (2.7*(y+pos[1]*chunkHeight)/13+1); // Initialize each block\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tblocks[x][y][z] = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tvertexCount = 0;\r\n\t\t// Allocate the buffers (Change to one buffer, or use short/byte buffer for normals and color)\r\n\t\tvertexData = Buffers.newDirectFloatBuffer(chunkSize*chunkSize*chunkSize*18*3);\r\n\t\tnormalData = Buffers.newDirectFloatBuffer(chunkSize*chunkHeight*chunkSize*18*3);\r\n\t\tcolorsData = Buffers.newDirectFloatBuffer(chunkSize*chunkSize*chunkSize*18*3);\r\n\t\tfor(int x = 0; x < chunkSize; x++){\r\n\t\t\tfor(int y = 0; y < chunkHeight; y++){\r\n\t\t\t\tfor(int z = 0; z < chunkSize; z++){\r\n\t\t\t\t\tif(BlockType.isActive(blocks[x][y][z])){\r\n\t\t\t\t\t\tcreateCube(x, y, z); // If the cube is active, add it to the Buffer\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// correct the buffer size, and rewind\r\n\t\tnormalData.flip();\r\n\t\tvertexData.flip();\r\n\t\tcolorsData.flip();\r\n\t\tgl.glGenBuffers(3, buffer, 0); // allocate the buffers and get IDs\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[0]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, vertexData, GL.GL_DYNAMIC_DRAW);\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[1]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, normalData, GL.GL_DYNAMIC_DRAW);\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[2]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, colorsData, GL.GL_DYNAMIC_DRAW);\r\n\t\t// set buffer as null now that it's done being used, hope it will be garbage collected\r\n\t\tvertexData = null;\r\n\t\tnormalData = null;\r\n\t\tcolorsData = null;\t\t\r\n\t}", "public Vector2f[] generatePatch(){\n\t\tVector2f[] vertices = new Vector2f[16];\n\t\t\n\t\tint index = 0;\n\t\t\n\t\tvertices[index++] = new Vector2f(0,0);\n\t\tvertices[index++] = new Vector2f(0.333f,0);\n\t\tvertices[index++] = new Vector2f(0.666f,0);\n\t\tvertices[index++] = new Vector2f(1,0);\n\t\t\n\t\tvertices[index++] = new Vector2f(0,0.333f);\n\t\tvertices[index++] = new Vector2f(0.333f,0.333f);\n\t\tvertices[index++] = new Vector2f(0.666f,0.333f);\n\t\tvertices[index++] = new Vector2f(1,0.333f);\n\t\t\n\t\tvertices[index++] = new Vector2f(0,0.666f);\n\t\tvertices[index++] = new Vector2f(0.333f,0.666f);\n\t\tvertices[index++] = new Vector2f(0.666f,0.666f);\n\t\tvertices[index++] = new Vector2f(1,0.666f);\n\t\n\t\tvertices[index++] = new Vector2f(0,1);\n\t\tvertices[index++] = new Vector2f(0.333f,1);\n\t\tvertices[index++] = new Vector2f(0.666f,1);\n\t\tvertices[index++] = new Vector2f(1,1);\n\t\t\n\t\treturn vertices;\n\t}", "public TerrainObject build() {\n\t\tfor(int i=0; i<paramsSet.length-3; i++)\n\t\t\tif(!paramsSet[i])\n\t\t\t\tthrow new IllegalArgumentException(\"Needed parameter (No. \"+i+\") for TerrainObject hasn't been set\");\n\t\treturn new TerrainObject(x, y, z, xW, yW, zW, scale, seed, noise);\n\t}", "public static SquareTerrain createSquareTerrainFromBitmap(SquareTerrain.Parameters prs, boolean createVBOs) {\n\n\t\tint divisions = prs.divisions;\n\n\t\tif (!((prs.divisions != 0) && ((prs.divisions & (prs.divisions - 1)) == 0))) {\n\t\t\tthrow new RuntimeException(\"Divisions must be x^2\");\n\t\t}\n\n\t\tdouble[][] terrain = new double[divisions + 1][divisions + 1];\n\t\tdouble[][] temperature = new double[divisions + 1][divisions + 1];\n\t\tVector3[][] normals = new Vector3[divisions + 1][divisions + 1];\n\n\t\tboolean useColorBitmap = prs.colorMapBitmap != null;\n\n\t\tint colorpixels[] = null;\n\t\tBitmap bnew = Bitmap.createBitmap(divisions + 1, divisions + 1, Bitmap.Config.ARGB_8888);\n\n\t\tCanvas cnv = new Canvas(bnew);\n\t\tcnv.drawBitmap(prs.heightMapBitmap,\n\t\t\t\tnew Rect(0, 0, prs.heightMapBitmap.getWidth(), prs.heightMapBitmap.getHeight()), new Rect(0, 0,\n\t\t\t\t\t\tdivisions + 1, divisions + 1), null);\n\n\t\tint pixels[] = new int[(divisions + 1) * (divisions + 1)];\n\t\tbnew.getPixels(pixels, 0, divisions + 1, 0, 0, divisions + 1, divisions + 1);\n\n\t\tif (useColorBitmap) {\n\t\t\tcolorpixels = new int[(divisions + 1) * (divisions + 1)];\n\t\t\tPaint clearPaint = new Paint();\n\t\t\tclearPaint.setXfermode(new PorterDuffXfermode(android.graphics.PorterDuff.Mode.CLEAR));\n\t\t\tcnv.drawRect(0, 0, prs.colorMapBitmap.getWidth(), prs.colorMapBitmap.getHeight(), clearPaint);\n\t\t\tcnv.drawBitmap(prs.colorMapBitmap,\n\t\t\t\t\tnew Rect(0, 0, prs.colorMapBitmap.getWidth(), prs.colorMapBitmap.getHeight()), new Rect(0, 0,\n\t\t\t\t\t\t\tdivisions + 1, divisions + 1), null);\n\t\t\tbnew.getPixels(colorpixels, 0, divisions + 1, 0, 0, divisions + 1, divisions + 1);\n\t\t}\n\t\tbnew.recycle();\n\n\t\tint color;\n\t\tint cols = divisions + 1;\n\t\tdouble min, max;\n\t\tterrain[0][0] = Color.green(0) / 255f * prs.scale.y;\n\t\tmin = max = terrain[0][0];\n\t\tdouble alt;\n\t\tdouble temp;\n\t\tfloat oneover255 = 1f / 255f;\n\n\t\tfor (int i = 0; i <= divisions; ++i) {\n\t\t\tfor (int j = 0; j <= divisions; ++j) {\n\t\t\t\tcolor = pixels[i + j * cols];\n\t\t\t\talt = Color.green(color) * oneover255 * prs.scale.y;\n\t\t\t\ttemp = Color.red(color) * oneover255 * (prs.maxTemp - prs.minTemp) + prs.minTemp;\n\t\t\t\tif (i > 0 && j > 0) {\n\t\t\t\t\ttemp = ((temperature[i - 1][j] + temperature[i][j - 1]) * 0.5f + temp) * 0.5f;\n\t\t\t\t\talt = ((terrain[i - 1][j] + terrain[i][j - 1]) * 0.5f + alt) * 0.5f;\n\t\t\t\t}\n\t\t\t\telse if (j > 0) {\n\t\t\t\t\ttemp = (temperature[i][j - 1] + temp) * 0.5f;\n\t\t\t\t\talt = (terrain[i][j - 1] + alt) * 0.5f;\n\t\t\t\t}\n\t\t\t\telse if (i > 0) {\n\t\t\t\t\ttemp = (temperature[i - 1][j] + temp) * 0.5f;\n\t\t\t\t\talt = (terrain[i - 1][j] + alt) * 0.5f;\n\t\t\t\t}\n\t\t\t\ttemperature[i][j] = temp;\n\t\t\t\tterrain[i][j] = alt;\n\n\t\t\t\tif (alt < min)\n\t\t\t\t\tmin = alt;\n\t\t\t\telse if (alt > max)\n\t\t\t\t\tmax = alt;\n\t\t\t\tnormals[i][j] = new Vector3(0f, 1f, 0f);\n\t\t\t}\n\t\t}\n\n\t\tVector3 scale = prs.scale;\n\n\t\tVector3 v0 = new Vector3();\n\t\tVector3 v1 = new Vector3();\n\t\tVector3 v2 = new Vector3();\n\t\tVector3 na = new Vector3();\n\t\tVector3 nb = new Vector3();\n\t\tVector3 nc = new Vector3();\n\t\tVector3 nd = new Vector3();\n\n\t\tfor (int x = 1; x < divisions; x++) {\n\t\t\tfor (int z = 1; z < divisions; z++) {\n\t\t\t\t// O z-1\n\t\t\t\t// /|\\\n\t\t\t\t// / | \\\n\t\t\t\t// x-1 O--O--O x+1\n\t\t\t\t// \\ | /\n\t\t\t\t// \\|/\n\t\t\t\t// O z+1\n\t\t\t\tv0.x = (x - 1) * scale.x;\n\t\t\t\tv0.z = z * scale.z;\n\t\t\t\tv0.y = terrain[x - 1][z];\n\n\t\t\t\tv1.x = x * scale.x;\n\t\t\t\tv1.z = (z - 1) * scale.z;\n\t\t\t\tv1.y = terrain[x][z - 1];\n\n\t\t\t\tv2.x = x * scale.x;\n\t\t\t\tv2.z = z * scale.z;\n\t\t\t\tv2.y = terrain[x][z];\n\n\t\t\t\tna = v1.subtract(v0).cross(v2.subtract(v0));\n\t\t\t\tna.inverse();\n\n\t\t\t\tv0.x = x * scale.x;\n\t\t\t\tv0.z = z * scale.z;\n\t\t\t\tv0.y = terrain[x][z];\n\n\t\t\t\tv1.x = x * scale.x;\n\t\t\t\tv1.z = (z - 1) * scale.z;\n\t\t\t\tv1.y = terrain[x][z - 1];\n\n\t\t\t\tv2.x = (x + 1) * scale.x;\n\t\t\t\tv2.z = z * scale.z;\n\t\t\t\tv2.y = terrain[x + 1][z];\n\n\t\t\t\tnb = v1.subtract(v0).cross(v2.subtract(v0));\n\t\t\t\tnb.inverse();\n\n\t\t\t\tv0.x = x * scale.x;\n\t\t\t\tv0.z = z * scale.z;\n\t\t\t\tv0.y = terrain[x][z];\n\n\t\t\t\tv1.x = (x + 1) * scale.x;\n\t\t\t\tv1.z = z * scale.z;\n\t\t\t\tv1.y = terrain[x + 1][z];\n\n\t\t\t\tv2.x = x * scale.x;\n\t\t\t\tv2.z = (z + 1) * scale.z;\n\t\t\t\tv2.y = terrain[x][z + 1];\n\n\t\t\t\tnc = v1.subtract(v0).cross(v2.subtract(v0));\n\t\t\t\tnc.inverse();\n\n\t\t\t\tv0.x = x * scale.x;\n\t\t\t\tv0.z = z * scale.z;\n\t\t\t\tv0.y = terrain[x][z];\n\n\t\t\t\tv1.x = x * scale.x;\n\t\t\t\tv1.z = (z + 1) * scale.z;\n\t\t\t\tv1.y = terrain[x][z + 1];\n\n\t\t\t\tv2.x = (x - 1) * scale.x;\n\t\t\t\tv2.z = z * scale.z;\n\t\t\t\tv2.y = terrain[x - 1][z];\n\n\t\t\t\tnd = v1.subtract(v0).cross(v2.subtract(v0));\n\t\t\t\tnd.inverse();\n\n\t\t\t\tnormals[x][z].y = 0f; // pre-set to 1\n\t\t\t\tnormals[x][z].add(na);\n\t\t\t\tnormals[x][z].add(nb);\n\t\t\t\tnormals[x][z].add(nc);\n\t\t\t\tnormals[x][z].add(nd);\n\n\t\t\t}\n\t\t}\n\n\t\tSquareTerrain sq = new SquareTerrain(divisions, terrain, normals, temperature, scale.x, scale.z);\n\n\t\tfloat[] vertices = new float[(divisions + 1) * (divisions + 1) * 3];\n\t\tfloat[] nors = new float[(divisions + 1) * (divisions + 1) * 3];\n\t\tfloat[] colors = new float[(divisions + 1) * (divisions + 1) * 4];\n\t\tfloat[] textureCoords = new float[(divisions + 1) * (divisions + 1) * 2];\n\t\tint[] indices = new int[(divisions) * (divisions) * 6];\n\t\tint ii = 0;\n\t\tint nn = 0;\n\t\tint tt = 0;\n\t\tint xx = 0;\n\t\tint cc = 0;\n\t\tdouble maxtt = 1f / (divisions + 1);\n\n\t\tdouble xmid = (divisions * scale.x) / 2f;\n\t\tdouble zmid = (divisions * scale.z) / 2f;\n\t\tdouble percalt = 0;\n\t\tfloat r, g, b, a;\n\t\ta = 1f;\n\n\t\tfloat a_basecolor = (float) Color.alpha(prs.basecolor) * oneover255;\n\t\tfloat a_middlecolor = (float) Color.alpha(prs.middlecolor) * oneover255;\n\t\tfloat a_upcolor = (float) Color.alpha(prs.upcolor) * oneover255;\n\n\t\tfloat g_basecolor = (float) Color.green(prs.basecolor) * oneover255;\n\t\tfloat g_middlecolor = (float) Color.green(prs.middlecolor) * oneover255;\n\t\tfloat g_upcolor = (float) Color.green(prs.upcolor) * oneover255;\n\n\t\tfloat b_basecolor = (float) Color.blue(prs.basecolor) * oneover255;\n\t\tfloat b_middlecolor = (float) Color.blue(prs.middlecolor) * oneover255;\n\t\tfloat b_upcolor = (float) Color.blue(prs.upcolor) * oneover255;\n\n\t\tfloat r_basecolor = (float) Color.red(prs.basecolor) * oneover255;\n\t\tfloat r_middlecolor = (float) Color.red(prs.middlecolor) * oneover255;\n\t\tfloat r_upcolor = (float) Color.red(prs.upcolor) * oneover255;\n\n\t\tint bmpcolor;\n\t\tfloat a_bmp;\n\t\tfloat r_bmp;\n\t\tfloat g_bmp;\n\t\tfloat b_bmp;\n\t\tfor (int i = 0; i <= divisions; ++i) {\n\t\t\tfor (int j = 0; j <= divisions; ++j) {\n\n\t\t\t\tvertices[ii++] = (float) (i * scale.x - xmid);\n\t\t\t\tvertices[ii++] = (float) terrain[i][j];\n\t\t\t\tvertices[ii++] = (float) (j * scale.z - zmid);\n\n\t\t\t\tpercalt = sq.getPercAltitude(i, j);\n\n\t\t\t\tif (percalt < 0.5) {\n\t\t\t\t\ttemp = (percalt - 0.0) * 2;\n\t\t\t\t\tr = (float) (r_basecolor + (r_middlecolor - r_basecolor) * temp);\n\t\t\t\t\tg = (float) (g_basecolor + (g_middlecolor - g_basecolor) * temp);\n\t\t\t\t\tb = (float) (b_basecolor + (b_middlecolor - b_basecolor) * temp);\n\t\t\t\t\ta = (float) (a_basecolor + (a_middlecolor - a_basecolor) * temp);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttemp = (percalt - 0.5) * 2;\n\t\t\t\t\tr = (float) (r_middlecolor + (r_upcolor - r_middlecolor) * temp);\n\t\t\t\t\tg = (float) (g_middlecolor + (g_upcolor - g_middlecolor) * temp);\n\t\t\t\t\tb = (float) (b_middlecolor + (b_upcolor - b_middlecolor) * temp);\n\t\t\t\t\ta = (float) (a_middlecolor + (a_upcolor - a_middlecolor) * temp);\n\n\t\t\t\t}\n\t\t\t\tif (useColorBitmap) {\n\t\t\t\t\tbmpcolor = colorpixels[i + j * cols];\n\t\t\t\t\ta_bmp = (float) Color.alpha(bmpcolor) * oneover255;\n\n\t\t\t\t\tr_bmp = (float) Color.red(bmpcolor) * oneover255;\n\t\t\t\t\tg_bmp = (float) Color.green(bmpcolor) * oneover255;\n\t\t\t\t\tb_bmp = (float) Color.blue(bmpcolor) * oneover255;\n\n\t\t\t\t\tr = r * (1f - a_bmp) + a_bmp * r_bmp;\n\t\t\t\t\tg = g * (1f - a_bmp) + a_bmp * g_bmp;\n\t\t\t\t\tb = b * (1f - a_bmp) + a_bmp * b_bmp;\n\n\t\t\t\t}\n\n\t\t\t\tr = r < 0f ? 0f : r;\n\t\t\t\tr = r > 1f ? 1f : r;\n\t\t\t\tg = g < 0f ? 0f : g;\n\t\t\t\tg = g > 1f ? 1f : g;\n\t\t\t\tb = b < 0f ? 0f : b;\n\t\t\t\tb = b > 1f ? 1f : b;\n\t\t\t\ta = a < 0f ? 0f : a;\n\t\t\t\ta = a > 1f ? 1f : a;\n\n\t\t\t\tcolors[cc++] = r;\n\t\t\t\tcolors[cc++] = g;\n\t\t\t\tcolors[cc++] = b;\n\t\t\t\tcolors[cc++] = a;\n\n\t\t\t\tnormals[i][j].normalize();\n\t\t\t\tnors[nn++] = (float) normals[i][j].x;\n\t\t\t\tnors[nn++] = (float) normals[i][j].y;\n\t\t\t\tnors[nn++] = (float) normals[i][j].z;\n\n\t\t\t\ttextureCoords[tt++] = (float) (i * maxtt * prs.textureMult);\n\t\t\t\ttextureCoords[tt++] = (float) (j * maxtt * prs.textureMult);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < divisions; i += 2) {\n\t\t\tfor (int j = 0; j < divisions; j += 2) {\n\t\t\t\t// O--O--O--O--O\n\t\t\t\t// |A/|\\D| /|\\ |\n\t\t\t\t// |/B|C\\|/ | \\|\n\t\t\t\t// O--O--O--O--O\n\t\t\t\t// |\\F|G/|\\ | /|\n\t\t\t\t// |E\\|/H| \\|/ |\n\t\t\t\t// O--O--O--O--O\n\t\t\t\t// A\n\t\t\t\tindices[xx++] = (i) + (j) * cols;\n\t\t\t\tindices[xx++] = (i + 1) + (j) * cols;\n\t\t\t\tindices[xx++] = (i) + (j + 1) * cols;\n\t\t\t\t// B\n\t\t\t\tindices[xx++] = (i + 1) + (j) * cols;\n\t\t\t\tindices[xx++] = (i + 1) + (j + 1) * cols;\n\t\t\t\tindices[xx++] = (i) + (j + 1) * cols;\n\t\t\t\t// C\n\t\t\t\tindices[xx++] = (i + 1) + (j) * cols;\n\t\t\t\tindices[xx++] = (i + 2) + (j + 1) * cols;\n\t\t\t\tindices[xx++] = (i + 1) + (j + 1) * cols;\n\t\t\t\t// D\n\t\t\t\tindices[xx++] = (i + 1) + (j) * cols;\n\t\t\t\tindices[xx++] = (i + 2) + (j) * cols;\n\t\t\t\tindices[xx++] = (i + 2) + (j + 1) * cols;\n\t\t\t\t// E\n\t\t\t\tindices[xx++] = (i) + (j + 1) * cols;\n\t\t\t\tindices[xx++] = (i + 1) + (j + 2) * cols;\n\t\t\t\tindices[xx++] = (i) + (j + 2) * cols;\n\t\t\t\t// F\n\t\t\t\tindices[xx++] = (i) + (j + 1) * cols;\n\t\t\t\tindices[xx++] = (i + 1) + (j + 1) * cols;\n\t\t\t\tindices[xx++] = (i + 1) + (j + 2) * cols;\n\t\t\t\t// G\n\t\t\t\tindices[xx++] = (i + 1) + (j + 1) * cols;\n\t\t\t\tindices[xx++] = (i + 2) + (j + 1) * cols;\n\t\t\t\tindices[xx++] = (i + 1) + (j + 2) * cols;\n\t\t\t\t// H\n\t\t\t\tindices[xx++] = (i + 2) + (j + 1) * cols;\n\t\t\t\tindices[xx++] = (i + 2) + (j + 2) * cols;\n\t\t\t\tindices[xx++] = (i + 1) + (j + 2) * cols;\n\n\t\t\t}\n\n\t\t}\n\n\t\tsq.setData(vertices, nors, textureCoords, colors, indices, createVBOs);\n\t\tnors = null;\n\t\tcolors = null;\n\t\tindices = null;\n\t\ttextureCoords = null;\n\t\tvertices = null;\n\n\t\treturn sq;\n\t}", "public Point3d sampleHemisphere();", "public double[] createMesh(float a,int n, float dt){\n double[] mesh = new double[n];\r\n mesh[0] = a;\r\n for (int i = 1; i < n; i++){\r\n mesh[i] = mesh[i-1] + dt ;\r\n }\r\n return mesh;\r\n }", "public static DeformableMesh3D createRectangleMesh(double width, double height, double depth, double segment_size){\n ArrayList<double[]> pts = new ArrayList<double[]>();\n ArrayList<int[]> connections = new ArrayList<int[]>();\n ArrayList<int[]> triangles = new ArrayList<int[]>();\n //For the complete length there will be n+1 nodes\n int nx = (int)(width/segment_size + 0.5) + 1;\n int ny = (int)(height/segment_size+0.5) + 1;\n int nz = (int)(depth/segment_size+0.5) + 1;\n double actual_w = (nx-1)*segment_size;\n double actual_h = (ny-1)*segment_size;\n double actual_z = (nz-1)*segment_size;\n\n int dex;\n\n //top face x-y @ actual_z/2\n int top_starting_dex = pts.size();\n for(int i = 0; i<nx; i++){\n for(int j = 0; j<ny; j++){\n dex = top_starting_dex + i*ny + j;\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n j*segment_size - actual_h/2,\n actual_z/2\n });\n\n //create a connection\n if(i>0){\n connections.add(new int[]{\n dex,\n dex - ny\n });\n }\n\n if(j>0){\n connections.add(new int[]{\n dex,\n dex-1\n });\n }\n }\n }\n\n for(int i = 1; i<nx; i++){\n for(int j = 1; j<ny; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n (j-0.5)*segment_size - actual_h/2,\n actual_z/2\n });\n //first\n int a_dex = top_starting_dex + (i-1)*ny + (j-1);\n connections.add(new int[]{dex,a_dex});\n int b_dex = top_starting_dex + (i)*ny + (j-1);\n connections.add(new int[]{dex,b_dex});\n int c_dex = top_starting_dex + (i)*ny + (j);\n connections.add(new int[]{dex,c_dex});\n int d_dex = top_starting_dex + (i-1)*ny + (j);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, a_dex, b_dex});\n triangles.add(new int[]{dex, b_dex, c_dex});\n triangles.add(new int[]{dex, c_dex, d_dex});\n triangles.add(new int[]{dex, d_dex, a_dex});\n\n }\n }\n\n\n //bottom face x-y @ -actual_z/2\n int bottom_starting_dex = pts.size();\n for(int i = 0; i<nx; i++){\n for(int j = 0; j<ny; j++){\n\n dex = bottom_starting_dex + i*ny + j;\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n j*segment_size - actual_h/2,\n -actual_z/2\n });\n\n //create a connection\n if(i>0){\n connections.add(new int[]{\n dex,\n dex - ny\n });\n }\n\n if(j>0){\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n\n\n }\n }\n //bottom face\n for(int i = 1; i<nx; i++){\n for(int j = 1; j<ny; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n (j-0.5)*segment_size - actual_h/2,\n -actual_z/2\n });\n //first\n int a_dex = bottom_starting_dex + (i-1)*ny + (j-1);\n connections.add(new int[]{dex,a_dex});\n int b_dex = bottom_starting_dex + (i)*ny + (j-1);\n connections.add(new int[]{dex,b_dex});\n int c_dex = bottom_starting_dex + (i)*ny + (j);\n connections.add(new int[]{dex,c_dex});\n int d_dex = bottom_starting_dex + (i-1)*ny + (j);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n\n\n //left face y-z @ -actual_x/2\n int left_starting_dex = pts.size();\n for(int i = 0; i<ny; i++){\n for(int j = 1; j<nz-1; j++){\n dex = left_starting_dex + i*(nz-2) + (j-1);\n pts.add(new double[]{\n -actual_w/2,\n i*segment_size - actual_h/2,\n j*segment_size - actual_z/2\n });\n\n //creates a connection\n if(i>0){\n //previous row\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n //previous column\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n }\n }\n\n\n //left face connections\n for(int i = 0; i<ny; i++){\n connections.add(new int[]{\n top_starting_dex + i,\n left_starting_dex + i*(nz-2) + (nz-3)\n });\n\n connections.add(new int[]{\n bottom_starting_dex + i,\n left_starting_dex + i*(nz-2)\n });\n\n }\n\n //left face triangles\n for(int i = 1; i<ny; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n -actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = left_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = left_starting_dex + (i)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = left_starting_dex + (i)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = left_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n //left face merging triangles\n for(int i = 1; i<ny; i++){\n\n dex = pts.size();\n\n pts.add(new double[]{\n -actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = bottom_starting_dex + i-1;\n int b_dex = bottom_starting_dex + i;\n int c_dex = left_starting_dex + i*(nz-2);\n int d_dex = left_starting_dex + (i-1)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n dex = pts.size();\n\n pts.add(new double[]{\n -actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = top_starting_dex + i;\n b_dex = top_starting_dex + i-1;\n c_dex = left_starting_dex + (i-1)*(nz-2) + (nz-3);\n d_dex = left_starting_dex + (i)*(nz-2) + (nz-3);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n //right face y-z @ actual_x/2\n int right_starting_dex = pts.size();\n for(int i = 0; i<ny; i++){\n for(int j = 1; j<nz-1; j++){\n dex = right_starting_dex + i*(nz-2) + (j-1);\n pts.add(new double[]{\n actual_w/2,\n i*segment_size - actual_h/2,\n j*segment_size - actual_z/2\n });\n\n //creates a connection\n if(i>0){\n //previous row\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n //previous column\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n }\n }\n\n for(int i = 0; i<ny; i++){\n connections.add(new int[]{\n top_starting_dex + i + ny*(nx-1),\n right_starting_dex + i*(nz-2) + (nz-3)\n });\n\n connections.add(new int[]{\n bottom_starting_dex + i + ny*(nx-1),\n right_starting_dex + i*(nz-2)\n });\n\n }\n\n //right face triangles\n for(int i = 1; i<ny; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = right_starting_dex + (i)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = right_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = right_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = right_starting_dex + (i)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n\n //right face merging triangles\n for(int i = 1; i<ny; i++){\n /*\n connections.add(new int[]{\n top_starting_dex + i,\n left_starting_dex + i*(nz-2) + (nz-3)\n });\n */\n dex = pts.size();\n\n pts.add(new double[]{\n actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = bottom_starting_dex + i + ny*(nx-1);\n int b_dex = bottom_starting_dex + i-1 + ny*(nx-1);\n int c_dex = right_starting_dex + (i-1)*(nz-2);\n int d_dex = right_starting_dex + (i)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n dex = pts.size();\n\n pts.add(new double[]{\n actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = top_starting_dex + i-1 + ny*(nx-1);\n b_dex = top_starting_dex + i + ny*(nx-1);\n c_dex = right_starting_dex + (i)*(nz-2) + (nz-3);\n d_dex = right_starting_dex + (i-1)*(nz-2) + (nz-3);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n\n //front face x-z @ -actual_y/2\n int front_starting_dex = pts.size();\n for(int i = 1; i<nx-1; i++){\n for(int j = 1; j<nz-1; j++){\n dex = front_starting_dex + (i-1)*(nz-2) + (j-1);\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n -actual_h/2,\n j*segment_size - actual_z/2\n });\n\n if(i>1){\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n\n\n }\n }\n\n //connect to top and bottom.\n for(int i = 1; i<nx-1; i++){\n connections.add(new int[]{\n front_starting_dex + (i-1)*(nz - 2),\n bottom_starting_dex + i*ny\n });\n\n connections.add(new int[]{\n front_starting_dex + (i-1)*(nz - 2) + (nz-3),\n top_starting_dex + i*ny\n });\n\n }\n\n //connect to left and right\n for(int j = 1; j<nz-1; j++){\n connections.add(new int[]{\n front_starting_dex + (j-1),\n left_starting_dex + j - 1\n });\n\n connections.add(new int[]{\n front_starting_dex + (j-1) + (nz-2)*(nx-3),\n right_starting_dex + j - 1\n });\n }\n\n //front face triangles\n for(int i = 2; i<nx-1; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n -actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = front_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = front_starting_dex + (i-2)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = front_starting_dex + (i-2)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = front_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n //front face triangles merging to top/bottom sans corners.\n for(int i = 2; i<nx-1; i++){\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n -actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = front_starting_dex + (i-2)*(nz - 2);\n int b_dex = front_starting_dex + (i-1)*(nz - 2);\n int c_dex = bottom_starting_dex + i*ny;\n int d_dex = bottom_starting_dex + (i-1)*ny;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n -actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = front_starting_dex + (i-1)*(nz - 2) + (nz-3);\n b_dex = front_starting_dex + (i-2)*(nz - 2) + (nz-3);\n c_dex = top_starting_dex + (i-1)*ny;\n d_dex = top_starting_dex + i*ny;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n //front face triangles merging to left and right sans corners.\n for(int j = 2; j<nz-1; j++){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n -actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n int a_dex = front_starting_dex + (j-1);\n int b_dex = front_starting_dex + (j-2);\n int c_dex = left_starting_dex + j - 2;\n int d_dex = left_starting_dex + j - 1;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n -actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n a_dex = front_starting_dex + (j-2) + (nz-2)*(nx-3);\n b_dex = front_starting_dex + (j-1) + (nz-2)*(nx-3);\n c_dex = right_starting_dex + j - 1;\n d_dex = right_starting_dex + j - 2;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n //front triangles four corners.\n for(int j = 1; j<nz; j+=nz-2){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n -actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n\n\n int a_dex, b_dex, c_dex, d_dex;\n\n if(j==1){\n a_dex = front_starting_dex;\n b_dex = bottom_starting_dex + ny;\n c_dex = bottom_starting_dex;\n d_dex = left_starting_dex;\n } else{\n a_dex = front_starting_dex + nz-3;\n b_dex = left_starting_dex + nz-3;\n c_dex = top_starting_dex;\n d_dex = top_starting_dex + ny;\n }\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n -actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n\n if(j==1){\n a_dex = front_starting_dex + (nx-3)*(nz - 2);\n b_dex = right_starting_dex;\n c_dex = bottom_starting_dex + (nx-1)*(ny);\n d_dex = bottom_starting_dex + (nx-2)*(ny);\n } else{\n a_dex = front_starting_dex + (nx-2)*(nz - 2) -1;\n b_dex = top_starting_dex + (nx-2)*(ny);\n c_dex = top_starting_dex + (nx-1)*(ny);\n d_dex = right_starting_dex + nz-3;\n }\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n\n //back plane\n int back_starting_dex = pts.size();\n for(int i = 1; i<nx-1; i++){\n for(int j = 1; j<nz-1; j++){\n dex = back_starting_dex + (i-1)*(nz-2) + (j-1);\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n actual_h/2,\n j*segment_size - actual_z/2\n });\n\n if(i>1){\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n\n\n }\n }\n\n\n //connect to top and bottom.\n for(int i = 1; i<nx-1; i++){\n connections.add(new int[]{\n back_starting_dex + (i-1)*(nz - 2),\n bottom_starting_dex + i*ny + ny-1\n });\n\n connections.add(new int[]{\n back_starting_dex + (i-1)*(nz - 2) + (nz-3),\n top_starting_dex + i*ny + ny-1\n });\n\n }\n\n\n //connect to left and right\n for(int j = 1; j<nz-1; j++){\n connections.add(new int[]{\n back_starting_dex + (j-1),\n left_starting_dex + j - 1 + (ny-1)*(nz-2)\n });\n\n connections.add(new int[]{\n back_starting_dex + (j-1) + (nz-2)*(nx-3),\n right_starting_dex + j - 1 + (ny-1)*(nz-2)\n });\n }\n\n //back face triangles\n for(int i = 2; i<nx-1; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = back_starting_dex + (i-2)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = back_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = back_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = back_starting_dex + (i-2)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n\n //back face triangles merging to top/bottom sans corners.\n for(int i = 2; i<nx-1; i++){\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = back_starting_dex + (i-1)*(nz - 2);\n int b_dex = back_starting_dex + (i-2)*(nz - 2);\n int c_dex = bottom_starting_dex + (i-1)*ny + ny - 1;\n int d_dex = bottom_starting_dex + (i)*ny + ny - 1;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = back_starting_dex + (i-2)*(nz - 2) + (nz-3);\n b_dex = back_starting_dex + (i-1)*(nz - 2) + (nz-3);\n c_dex = top_starting_dex + (i)*ny + ny - 1;\n d_dex = top_starting_dex + (i-1)*ny + ny - 1;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n //back face triangles merging to left and right sans corners.\n for(int j = 2; j<nz-1; j++){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n int a_dex = back_starting_dex + (j-2);\n int b_dex = back_starting_dex + (j-1);\n int c_dex = left_starting_dex + j - 1 + (ny-1)*(nz-2);\n int d_dex = left_starting_dex + j - 2 + (ny-1)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n a_dex = back_starting_dex + (j-1) + (nz-2)*(nx-3);\n b_dex = back_starting_dex + (j-2) + (nz-2)*(nx-3);\n c_dex = right_starting_dex + j - 2+ (ny-1)*(nz-2);\n d_dex = right_starting_dex + j - 1+ (ny-1)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n //back triangles four corners.\n for(int j = 1; j<nz; j+=nz-2){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n\n\n int a_dex, b_dex, c_dex, d_dex;\n\n if(j==1){\n a_dex = back_starting_dex;\n b_dex = left_starting_dex + (ny-1)*(nz-2);\n c_dex = bottom_starting_dex + ny -1;\n d_dex = bottom_starting_dex + 2*ny - 1;\n } else{\n a_dex = back_starting_dex + nz-3;\n b_dex = top_starting_dex + 2*ny - 1;\n c_dex = top_starting_dex + ny - 1;\n d_dex = left_starting_dex + (ny)*(nz-2) - 1 ;\n }\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n\n if(j==1){\n a_dex = back_starting_dex + (nx-3)*(nz - 2);\n b_dex = bottom_starting_dex + (nx-1)*(ny) - 1;\n c_dex = bottom_starting_dex + (nx)*(ny) - 1;\n d_dex = right_starting_dex + (nz-2)*(ny-1);\n } else{\n a_dex = back_starting_dex + (nx-2)*(nz - 2) -1;\n b_dex = right_starting_dex + (nz-2)*(ny-1) + nz - 3;\n c_dex = top_starting_dex + (nx)*(ny) -1;\n d_dex = top_starting_dex + (nx-1)*(ny) -1;\n }\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n final DeformableMesh3D mesh = new DeformableMesh3D(pts, connections, triangles);\n\n return mesh;\n }", "public void rebuildMesh(float initX, float initY, float initZ) {\r\n VBOColorHandle = glGenBuffers();\r\n VBOVertexHandle = glGenBuffers();\r\n VBOTextureHandle = glGenBuffers();\r\n int height;\r\n FloatBuffer VertexPositionData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n FloatBuffer VertexColorData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n FloatBuffer VertexTextureData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n for (float x = -initX; x < -initX + CHUNK_SIZE; x++) {\r\n for (float z = -initZ; z < -initZ + CHUNK_SIZE; z++) {\r\n height = (int) (((sNoise.getNoise((int)x + (int)initX/2, (int)z + (int)initZ/2)) + 1) / 2 * 10) + 5;\r\n for (float y = 0; y <= height; y++) {\r\n VertexPositionData.put(createCube((float)(initX + x * CUBE_LENGTH), (float)(initY + y * CUBE_LENGTH), (float)(initZ + z * CUBE_LENGTH)));\r\n VertexColorData.put(createCubeVertexCol(getCubeColor(blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ])));\r\n VertexTextureData.put(createTexCube((float) 0, (float) 0, blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ]));\r\n }\r\n if (height < 11) {\r\n for (float y = height; y < 11; y++) {\r\n VertexPositionData.put(createCube((float)(initX + x * CUBE_LENGTH), (float)(initY + y * CUBE_LENGTH), (float)(initZ + z * CUBE_LENGTH)));\r\n VertexColorData.put(createCubeVertexCol(getCubeColor(blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ])));\r\n VertexTextureData.put(createTexCube((float) 0, (float) 0, blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ]));\r\n }\r\n }\r\n }\r\n }\r\n VertexColorData.flip();\r\n VertexPositionData.flip();\r\n VertexTextureData.flip();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexPositionData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexColorData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexTextureData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n }", "private void generateSphere() {\n\t\tint segments = 14;\n\t\tint rings = 15; // Use an odd number of rings of faces so that halfway up the sphere is the middle of a ring and not a loop of edges\n\t\tverts = new Vector[segments * (rings - 1) + 2]; // There are rings + 1 rings of vertices, but the first and last of these are each a single vertex\n\t\tfaces = new int[2 * segments * (rings - 1)][3]; // Apart from the first and last, each ring has segments number of square faces, so 2 * segments triangular faces. The first and last each have segments triangular faces\n\t\tverts[0] = new Vector(3);\n\t\tverts[0].setElement(1, -1); // The lowest point of the sphere\n\t\tfor (int i = 0; i < segments; i++) {\n\t\t\tif (i == segments - 1) {\n\t\t\t\tfaces[i] = new int[] {0, i + 1, 1}; // The last face involves the last vertex in the second ring and loops back to the first vertex in the second ring\n\t\t\t} else {\n\t\t\t\tfaces[i] = new int[] {0, i + 1, i + 2}; // Triangles involving the lowest vertex and two consecutive vertices in the second ring of vertices\n\t\t\t}\n\t\t}\n\t\tdouble pitchIncrement = Math.PI / rings; // The increment in pitch (angle above horizontal) between rings of vertices\n\t\tdouble pitch = pitchIncrement - Math.PI / 2; // The lowest point had a pitch of -pi/2\n\t\tdouble headingIncrement = Math.PI * 2.0 / segments; // The increment in heading between segments\n\t\tdouble heading = -Math.PI;\n\t\tfor (int r = 0; r < rings - 1; r++) { // Last ring is a single point and must be treated separately\n\t\t\tdouble y = Math.sin(pitch); // The y co-ordinate for each vertex in this ring\n\t\t\tdouble modulus = Math.cos(pitch); // The radius of the circle which this ring lies on\n\t\t\tfor (int s = 0; s < segments; s++) {\n\t\t\t\tdouble x = modulus * Math.cos(heading); // x co-ordinate for the next vertex\n\t\t\t\tdouble z = modulus * Math.sin(heading); // z co-ordinate for the next vertex\n\t\t\t\tverts[segments * r + s + 1] = new Vector(3);\n\t\t\t\tverts[segments * r + s + 1].setElements(new double[] {x, y, z});\n\t\t\t\theading += headingIncrement;\n\t\t\t}\n\t\t\t// Make faces between the vertices just added and the next ring of vertices to be added\n\t\t\tif (r != rings - 2) { // The second to last ring doesn't make faces with the next ring up in the same way because the last ring is a single vertex\n\t\t\t\tfor (int i = 0; i < segments; i++) {\n\t\t\t\t\tif (i == segments - 1) { // The last two faces make use of the first vertex in the next ring by looping back to the start\n\t\t\t\t\t\t// Two faces in the same plane\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1)] = new int[] {segments * r + i + 1, (segments * r + i + 1) + segments, segments * r + 1 + segments};\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1) + 1] = new int[] {segments * r + i + 1, segments * r + 1 + segments, segments * r + 1};\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Two faces that are in the same plane and appear as a quadrilateral\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1)] = new int[] {segments * r + i + 1, (segments * r + i + 1) + segments, (segments * r + i + 1) + segments + 1};\n\t\t\t\t\t\tfaces[i * 2 + segments * (2 * r + 1) + 1] = new int[] {segments * r + i + 1, (segments * r + i + 1) + segments + 1, (segments * r + i + 1) + 1};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tpitch += pitchIncrement;\n\t\t}\n\t\tverts[verts.length - 1] = new Vector(3);\n\t\tverts[verts.length - 1].setElement(1, 1); // The last and highest vertex\n\t\tfor (int i = 0; i < segments; i++) {\n\t\t\tif (i == segments - 1) { // Last face completes the ring and includes the last vertex of the second to last ring\n\t\t\t\tfaces[2 * segments + segments * (2 * rings - 5) + i] = new int[] {segments * (rings - 2) + 1 + i, segments * (rings - 1) + 1, segments * (rings - 2) + 1};\n\t\t\t} else { // Faces involving the last vertex and two consecutive vertices in the second to last ring\n\t\t\t\tfaces[2 * segments + segments * (2 * rings - 5) + i] = new int[] {segments * (rings - 2) + 1 + i, segments * (rings - 1) + 1, segments * (rings - 2) + 1 + i + 1};\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n protected void generateRavine(long seed, int chunkX, int chunkZ, byte[] chunkData, double blockX, double blockY, double blockZ, float scale, float leftRightRadian, float upDownRadian, int currentY, int targetY, double scaleHeight) {\r\n final int worldHeight = chunkData.length / (16 * 16); // 128 or 256\r\n final Random random = new SecureRandom();\r\n random.setSeed(seed);\r\n\r\n final double chunkCenterX = (double) (chunkX * 16 + 8);\r\n final double chunkCenterZ = (double) (chunkZ * 16 + 8);\r\n float leftRightChange = 0.0F;\r\n float upDownChange = 0.0F;\r\n\r\n if (targetY <= 0) {\r\n final int blockRangeY = this.range * 16 - 16;\r\n targetY = blockRangeY - random.nextInt(blockRangeY / 4);\r\n }\r\n\r\n boolean createFinalRoom = false;\r\n\r\n if (currentY == -1) {\r\n currentY = targetY / 2;\r\n createFinalRoom = true;\r\n }\r\n\r\n float nextIntersectionHeight = 1.0F;\r\n\r\n for (int k1 = 0; k1 < worldHeight; ++k1) {\r\n if (k1 == 0 || random.nextInt(3) == 0) {\r\n nextIntersectionHeight = 1.0F + random.nextFloat() * random.nextFloat() * 1.0F;\r\n }\r\n\r\n this.field_75046_d[k1] = nextIntersectionHeight * nextIntersectionHeight;\r\n }\r\n\r\n for (; currentY < targetY; ++currentY) {\r\n double roomWidth = 1.5D + (double) (MathHelper.sin((float) currentY * (float) Math.PI / (float) targetY) * scale * 1.0F);\r\n double roomHeight = roomWidth * scaleHeight;\r\n roomWidth *= (double) random.nextFloat() * 0.25D + 0.75D;\r\n roomHeight *= (double) random.nextFloat() * 0.25D + 0.75D;\r\n float f6 = MathHelper.cos(upDownRadian);\r\n float f7 = MathHelper.sin(upDownRadian);\r\n blockX += (double) (MathHelper.cos(leftRightRadian) * f6);\r\n blockY += (double) f7;\r\n blockZ += (double) (MathHelper.sin(leftRightRadian) * f6);\r\n upDownRadian *= 0.7F;\r\n upDownRadian += upDownChange * 0.05F;\r\n leftRightRadian += leftRightChange * 0.05F;\r\n upDownChange *= 0.8F;\r\n leftRightChange *= 0.5F;\r\n upDownChange += (random.nextFloat() - random.nextFloat()) * random.nextFloat() * 2.0F;\r\n leftRightChange += (random.nextFloat() - random.nextFloat()) * random.nextFloat() * 4.0F;\r\n\r\n if (createFinalRoom || random.nextInt(4) != 0) {\r\n double d8 = blockX - chunkCenterX;\r\n double d9 = blockZ - chunkCenterZ;\r\n double d10 = (double) (targetY - currentY);\r\n double d11 = (double) (scale + 2.0F + 16.0F);\r\n\r\n if (d8 * d8 + d9 * d9 - d10 * d10 > d11 * d11) {\r\n return;\r\n }\r\n\r\n if (blockX >= chunkCenterX - 16.0D - roomWidth * 2.0D && blockZ >= chunkCenterZ - 16.0D - roomWidth * 2.0D && blockX <= chunkCenterX + 16.0D + roomWidth * 2.0D && blockZ <= chunkCenterZ + 16.0D + roomWidth * 2.0D) {\r\n final int xLow = TwoMath.withinBounds(MathHelper.floor_double(blockX - roomWidth) - chunkX * 16 - 1, 0, 16);\r\n final int xHigh = TwoMath.withinBounds(MathHelper.floor_double(blockX + roomWidth) - chunkX * 16 + 1, 0, 16);\r\n final int yLow = TwoMath.withinBounds(MathHelper.floor_double(blockY - roomHeight) - 1, 1, worldHeight - 8);\r\n final int yHigh = TwoMath.withinBounds(MathHelper.floor_double(blockY + roomHeight) + 1, 1, worldHeight - 8);\r\n final int zLow = TwoMath.withinBounds(MathHelper.floor_double(blockZ - roomWidth) - chunkZ * 16 - 1, 0, 16);\r\n final int zHigh = TwoMath.withinBounds(MathHelper.floor_double(blockZ + roomWidth) - chunkZ * 16 + 1, 0, 16);\r\n\r\n boolean underWater = false;\r\n for (int x = xLow; !underWater && x < xHigh; ++x) {\r\n for (int z = zLow; !underWater && z < zHigh; ++z) {\r\n for (int y = yHigh + 1; !underWater && y >= yLow - 1; --y) {\r\n final int index = (x * 16 + z) * worldHeight + y;\r\n\r\n if (y >= 0 && y < worldHeight) {\r\n if (isOceanBlock(chunkData, index, x, y, z, chunkX, chunkZ)) {\r\n underWater = true;\r\n }\r\n\r\n if (y != yLow - 1 && x != xLow && x != xHigh - 1 && z != zLow && z != zHigh - 1) {\r\n y = yLow;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (!underWater) {\r\n for (int x = xLow; x < xHigh; ++x) {\r\n double d12 = ((double) (x + chunkX * 16) + 0.5D - blockX) / roomWidth;\r\n\r\n for (int z = zLow; z < zHigh; ++z) {\r\n double d13 = ((double) (z + chunkZ * 16) + 0.5D - blockZ) / roomWidth;\r\n int index = (x * 16 + z) * worldHeight + yHigh;\r\n boolean flag2 = false;\r\n\r\n if (d12 * d12 + d13 * d13 < 1.0D) {\r\n for (int y = yHigh - 1; y >= yLow; --y) {\r\n double yScale = ((double) y + 0.5D - blockY) / roomHeight;\r\n\r\n if ((d12 * d12 + d13 * d13) * (double) this.field_75046_d[y] + yScale * yScale / 6.0D < 1.0D) {\r\n if (isTopBlock(chunkData, index, x, y, z, chunkX, chunkZ)) {\r\n flag2 = true;\r\n }\r\n\r\n digBlock(chunkData, index, x, y, z, chunkX, chunkZ, flag2);\r\n }\r\n\r\n --index;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (createFinalRoom) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "private void generateLevel() {\n\t\tgenerateBorder();\n\t\tfor (int y = 1; y < height - 1; y++) {\n\t\t\tfor (int x = 1; x < height - 1; x++) {\n\t\t\t\tif (random.nextInt(2) == 1) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t\trandForest(x, y);\n\t\t\t\t} else {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getDirt(), false, x, y);\n\t\t\t\t\trandOre(x, y);\n\t\t\t\t}\n\t\t\t\tif (x == 4 && y == 4) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "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 }", "private double noise(final double xin, final double yin, final double zin) {\n double n0, n1, n2, n3;\n double s = (xin + yin + zin) * F3;\n int i = fastfloor(xin + s);\n int j = fastfloor(yin + s);\n int k = fastfloor(zin + s);\n double t = (i + j + k) * G3;\n double x0 = xin - (i - t);\n double y0 = yin - (j - t);\n double z0 = zin - (k - t);\n int i1, j1, k1;\n int i2, j2, k2;\n if (x0 >= y0) {\n if (y0 >= z0) {\n i1 = 1;\n j1 = 0;\n k1 = 0;\n i2 = 1;\n j2 = 1;\n k2 = 0;\n } else if (x0 >= z0) {\n i1 = 1;\n j1 = 0;\n k1 = 0;\n i2 = 1;\n j2 = 0;\n k2 = 1;\n } else {\n i1 = 0;\n j1 = 0;\n k1 = 1;\n i2 = 1;\n j2 = 0;\n k2 = 1;\n }\n } else {\n if (y0 < z0) {\n i1 = 0;\n j1 = 0;\n k1 = 1;\n i2 = 0;\n j2 = 1;\n k2 = 1;\n } else if (x0 < z0) {\n i1 = 0;\n j1 = 1;\n k1 = 0;\n i2 = 0;\n j2 = 1;\n k2 = 1;\n } else {\n i1 = 0;\n j1 = 1;\n k1 = 0;\n i2 = 1;\n j2 = 1;\n k2 = 0;\n }\n }\n double x1 = x0 - i1 + G3;\n double y1 = y0 - j1 + G3;\n double z1 = z0 - k1 + G3;\n double x2 = x0 - i2 + 2.0 * G3;\n double y2 = y0 - j2 + 2.0 * G3;\n double z2 = z0 - k2 + 2.0 * G3;\n double x3 = x0 - 1.0 + 3.0 * G3;\n double y3 = y0 - 1.0 + 3.0 * G3;\n double z3 = z0 - 1.0 + 3.0 * G3;\n int ii = i & (SUPPLY_LENGTH - 1);\n int jj = j & (SUPPLY_LENGTH - 1);\n int kk = k & (SUPPLY_LENGTH - 1);\n int gi0 = permMod12[ii + perm[jj + perm[kk]]];\n int gi1 = permMod12[ii + i1 + perm[jj + j1 + perm[kk + k1]]];\n int gi2 = permMod12[ii + i2 + perm[jj + j2 + perm[kk + k2]]];\n int gi3 = permMod12[ii + 1 + perm[jj + 1 + perm[kk + 1]]];\n double t0 = CONTRIBUTION_FACTOR - x0 * x0 - y0 * y0 - z0 * z0;\n if (t0 < 0) {\n n0 = 0.0;\n } else {\n t0 *= t0;\n n0 = t0 * t0 * dot(GTAB[gi0], x0, y0, z0);\n }\n double t1 = CONTRIBUTION_FACTOR - x1 * x1 - y1 * y1 - z1 * z1;\n if (t1 < 0) {\n n1 = 0.0;\n } else {\n t1 *= t1;\n n1 = t1 * t1 * dot(GTAB[gi1], x1, y1, z1);\n }\n double t2 = CONTRIBUTION_FACTOR - x2 * x2 - y2 * y2 - z2 * z2;\n if (t2 < 0) {\n n2 = 0.0;\n } else {\n t2 *= t2;\n n2 = t2 * t2 * dot(GTAB[gi2], x2, y2, z2);\n }\n double t3 = CONTRIBUTION_FACTOR - x3 * x3 - y3 * y3 - z3 * z3;\n if (t3 < 0) {\n n3 = 0.0;\n } else {\n t3 *= t3;\n n3 = t3 * t3 * dot(GTAB[gi3], x3, y3, z3);\n }\n return NORMALIZE_FACTOR * (n0 + n1 + n2 + n3);\n }", "private void estimateFlatEarthPolynomial() {\n int minLine = 0;\n int maxLine = sourceImageHeight;\n int minPixel = 0;\n int maxPixel = sourceImageWidth;\n \n Rectangle rectangle = new Rectangle();\n rectangle.setSize(maxPixel, maxLine);\n \n // int srpPolynomialDegree = 5; // for flat earth phase\n int numberOfCoefficients = numberOfCoefficients(srpPolynomialDegree);\n \n double[][] position = distributePoints(srpNumberPoints, rectangle);\n \n // setup observation and design matrix\n DoubleMatrix y = new DoubleMatrix(srpNumberPoints);\n DoubleMatrix A = new DoubleMatrix(srpNumberPoints, numberOfCoefficients);\n \n double masterMinPi4divLam = (-4 * Math.PI * Constants.lightSpeed) / masterMetadata.radar_wavelength;\n double slaveMinPi4divLam = (-4 * Math.PI * Constants.lightSpeed) / slaveMetadata.radar_wavelength;\n \n // Loop throu a vector or distributedPoints()\n for (int i = 0; i < srpNumberPoints; ++i) {\n \n double line = position[i][0];\n double pixel = position[i][1];\n \n // compute azimuth/range time for this pixel\n final double masterTimeRange = pix2tr(pixel, masterMetadata);\n \n // compute xyz of this point : sourceMaster\n Point3d xyzMaster = lp2xyz(line, pixel, masterMetadata, masterOrbit);\n \n final Point2d slaveTimeVector = xyz2t(xyzMaster, slaveMetadata, slaveOrbit);\n final double slaveTimeRange = slaveTimeVector.x;\n \n // observation vector\n y.put(i, (masterMinPi4divLam * masterTimeRange) - (slaveMinPi4divLam * slaveTimeRange));\n \n // set up a system of equations\n // ______Order unknowns: A00 A10 A01 A20 A11 A02 A30 A21 A12 A03 for degree=3______\n double posL = normalize(line, minLine, maxLine);\n double posP = normalize(pixel, minPixel, maxPixel);\n \n int index = 0;\n \n for (int j = 0; j <= srpPolynomialDegree; j++) {\n for (int k = 0; k <= j; k++) {\n // System.out.println(\"A[\" + i + \",\" + index + \"]: \"\n // + Math.pow(posL, (float) (j - k)) * Math.pow(posP, (float) k));\n A.put(i, index, (Math.pow(posL, (double) (j - k)) * Math.pow(posP, (double) k)));\n index++;\n }\n }\n }\n \n // Fit polynomial through computed vector of phases\n DoubleMatrix Atranspose = A.transpose();\n DoubleMatrix N = Atranspose.mmul(A);\n DoubleMatrix rhs = Atranspose.mmul(y);\n \n // TODO: validate Cholesky decomposition of JBLAS: see how it is in polyfit and reuse!\n \n // this should be the coefficient of the reference phase\n flatEarthPolyCoefs = Solve.solve(N, rhs);\n \n /*\n System.out.println(\"*******************************************************************\");\n System.out.println(\"_Start_flat_earth\");\n System.out.println(\"*******************************************************************\");\n System.out.println(\"Degree_flat:\" + polyDegree);\n System.out.println(\"Estimated_coefficients_flatearth:\");\n int coeffLine = 0;\n int coeffPixel = 0;\n for (int i = 0; i < numberOfCoefficients; i++) {\n if (flatEarthPolyCoefs.get(i, 0) < 0.) {\n System.out.print(flatEarthPolyCoefs.get(i, 0));\n } else {\n System.out.print(\" \" + flatEarthPolyCoefs.get(i, 0));\n }\n \n System.out.print(\" \\t\" + coeffLine + \" \" + coeffPixel + \"\\n\");\n coeffLine--;\n coeffPixel++;\n if (coeffLine == -1) {\n coeffLine = coeffPixel;\n coeffPixel = 0;\n }\n }\n System.out.println(\"*******************************************************************\");\n System.out.println(\"_End_flat_earth\");\n System.out.println(\"*******************************************************************\");\n */\n \n // TODO: test inverse : when cholesky is finished\n // // ______Test inverse______\n // for (i=0; i<Qx_hat.lines(); i++)\n // for (j=0; j<i; j++)\n // Qx_hat(j,i) = Qx_hat(i,j);// repair Qx_hat\n // const real8 maxdev = max(abs(N*Qx_hat-eye(real8(Qx_hat.lines()))));\n // INFO << \"flatearth: max(abs(N*inv(N)-I)) = \" << maxdev;\n // INFO.print();\n // if (maxdev > .01)\n // {\n // ERROR << \"Deviation too large. Decrease degree or number of points?\";\n // PRINT_ERROR(ERROR.get_str())\n // throw(some_error);\n // }\n // else if (maxdev > .001)\n // {\n // WARNING << \"Deviation quite large. Decrease degree or number of points?\";\n // WARNING.print();\n // }\n // else\n // {\n // INFO.print(\"Deviation is OK.\");\n // }\n // // ______Some other stuff, scale is ok______\n // matrix<real8> y_hat = A * rhs;\n // matrix<real8> e_hat = y - y_hat;\n }", "Maze3d generate(int x, int y, int z) throws Exception;", "@Override\r\n\tprotected void generateAreas() {\n\t\tPerlinNoise noise = new PerlinNoise(new Random().nextInt(), xmasTemplate.getScale(), xmasTemplate.getOctaves(), xmasTemplate.getPersistence());\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\t\tif (getValue(x, y) != BASE) {\r\n\t\t\t\t\tif (noise.perlinNoise(x, y) > xmasTemplate.getThreshold()) {\r\n\t\t\t\t\t\tsetValue(x, y, WALL);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsetValue(x, y, FLOOR);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Fill east, west and south\r\n\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\tdrawArea(x, 0, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t}\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tdrawArea(0, y, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t\tdrawArea(getWidth() - 1, y, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t}\r\n\r\n\t\t// Draw random blotch lines between each base first\r\n\t\tArrayList<Point> basesCopy = new ArrayList<Point>(getBases());\r\n\t\tfor (int i = 0; i < basesCopy.size(); i ++) {\r\n\t\t\tPoint p1 = basesCopy.get(i);\r\n\t\t\tint j = Util.random(0, basesCopy.size() - 1);\r\n\t\t\tPoint p2 = basesCopy.get(j);\r\n\t\t\tbasesCopy.set(i, p2);\r\n\t\t\tbasesCopy.set(j, p1);\r\n\t\t}\r\n\r\n\t\tPoint s = basesCopy.get(0), t;\r\n\t\tdrawArea(s.getX(), s.getY(), (xmasTemplate.getMinMainTunnelWidth() + xmasTemplate.getMaxMainTunnelWidth()) / 2.0f, FLOOR);\r\n\t\tfor (int i = 0; i < basesCopy.size() - 1; i ++) {\r\n\t\t\ts = basesCopy.get(i);\r\n\t\t\tt = basesCopy.get(i + 1);\r\n\t\t\tdrawLine(s.getX(), s.getY(), t.getX(), t.getY(), xmasTemplate.getMinMainTunnelWidth(), xmasTemplate.getMaxMainTunnelWidth(), FLOOR);\r\n\t\t}\r\n\r\n\t}", "private void initMesh() {\n\t\tfloat[] vertices = { -1, -1, 0, 1, -1, 0, -1, 1, 0, 1, 1, 0 };\n\t\tfloat[] texCoords = { 0, 0, 1, 0, 0, 1, 1, 1 };\n\t\tint[] indices = { 0, 1, 2, 3 };\n\t\tmesh = new StaticMesh(gl, vertices, null, texCoords, indices);\n\t\tmesh.setPositionIndex(shader.getAttributeLocation(\"aVertexPosition\"));\n\t\tmesh.setNormalIndex(-1);\n\t\tmesh.setTexCoordIndex(shader.getAttributeLocation(\"aTextureCoord\"));\n\t\tmesh.setBeginMode(BeginMode.TRIANGLE_STRIP);\n\t}", "private void addTerrain() {\n int patchSize = 3;\n int mapSize = 3;\n TerrainQuad quad\n = new TerrainQuad(\"terrain\", patchSize, mapSize, nineHeights);\n rootNode.attachChild(quad);\n quad.setMaterial(quadMaterial);\n\n CollisionShape shape = CollisionShapeFactory.createMeshShape(quad);\n float massForStatic = 0f;\n RigidBodyControl rbc = new RigidBodyControl(shape, massForStatic);\n rbc.setPhysicsSpace(physicsSpace);\n quad.addControl(rbc);\n }", "@Override\n protected void createMesh() {\n rayLight.getScope().add(camera);\n\n light = new PointLight(Color.GAINSBORO);\n light.setTranslateX(-300);\n light.setTranslateY(300);\n light.setTranslateZ(-2000);\n\n light2 = new PointLight(Color.ALICEBLUE);\n light2.setTranslateX(300);\n light2.setTranslateY(-300);\n light2.setTranslateZ(2000);\n\n light3 = new PointLight(Color.SPRINGGREEN);\n light3.setTranslateY(-2000);\n //create a target\n target1 = new Sphere(180);\n target1.setId(\"t1\");\n target1.setDrawMode(DrawMode.LINE);\n target1.setCullFace(CullFace.NONE);\n target1.setTranslateX(500);\n target1.setTranslateY(500);\n target1.setTranslateZ(500);\n target1.setMaterial(red);\n // create another target\n target2 = new Sphere(150);\n target2.setId(\"t2\");\n target2.setDrawMode(DrawMode.LINE);\n target2.setCullFace(CullFace.NONE);\n target2.setTranslateX(-500);\n target2.setTranslateY(-500);\n target2.setTranslateZ(-500);\n target2.setMaterial(blue);\n\n origin = new Box(20, 20, 20);\n origin.setDrawMode(DrawMode.LINE);\n origin.setCullFace(CullFace.NONE);\n \n model = new Group(target1, target2, origin, light, light2, light3, rayLight);\n }", "public static float perlin2D(float x, float y) {\n float total = 0.0f;\n\n for (int i = 0; i < OCTAVES; i++) {\n //These values can be changed for desired terrain gen\n //We selected these to work well\n float frequency = 0.05f;\n float amplitude = 4;\n\n total += Noise2D.interpolate(x * frequency, y * frequency, Noise1D.primes[0]) * amplitude;\n }\n\n return total;\n }", "private void generateCube() {\n\t\tverts = new Vector[] {new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3)};\n\t\tverts[0].setElement(0, -1);\n\t\tverts[0].setElement(1, -1);\n\t\tverts[0].setElement(2, -1);\n\t\t\n\t\tverts[1].setElement(0, 1);\n\t\tverts[1].setElement(1, -1);\n\t\tverts[1].setElement(2, -1);\n\t\t\n\t\tverts[2].setElement(0, -1);\n\t\tverts[2].setElement(1, -1);\n\t\tverts[2].setElement(2, 1);\n\t\t\n\t\tverts[3].setElement(0, 1);\n\t\tverts[3].setElement(1, -1);\n\t\tverts[3].setElement(2, 1);\n\t\t\n\t\tverts[4].setElement(0, -1);\n\t\tverts[4].setElement(1, 1);\n\t\tverts[4].setElement(2, -1);\n\t\t\n\t\tverts[5].setElement(0, 1);\n\t\tverts[5].setElement(1, 1);\n\t\tverts[5].setElement(2, -1);\n\t\t\n\t\tverts[6].setElement(0, -1);\n\t\tverts[6].setElement(1, 1);\n\t\tverts[6].setElement(2, 1);\n\t\t\n\t\tverts[7].setElement(0, 1);\n\t\tverts[7].setElement(1, 1);\n\t\tverts[7].setElement(2, 1);\n\t\t\n\t\tfaces = new int[][] {{0, 3, 2}, {0, 1, 3}, {0, 4, 5}, {0, 5, 1}, {0, 2, 6}, {0, 6, 4}, {2, 7, 6}, {2, 3, 7}, {3, 1, 5}, {3, 5, 7}, {4, 7, 5}, {4, 6, 7}}; // List the vertices of each face by index in verts. Vertices must be listed in clockwise order from outside of the shape so that the faces pointing away from the camera can be culled or shaded differently\n\t}", "public void makeCube (int subdivisions)\r\n {\r\n \tfloat horz[] = new float[subdivisions + 1];\r\n \tfloat vert[] = new float[subdivisions + 1];\r\n \t\r\n \t\r\n \t// Front face\r\n \tPoint p1 = new Point(-0.5f, -0.5f, 0.5f);\r\n \tPoint p2 = new Point(0.5f, -0.5f, 0.5f);\r\n \tPoint p3 = new Point(0.5f, 0.5f, 0.5f);\r\n \tPoint p4 = new Point(-0.5f, 0.5f, 0.5f);\r\n \t\r\n \tfloat h = p1.x;\r\n \tfloat v = p1.y;\r\n \t\r\n \tfor( int i = 0; i <= subdivisions; i++ )\r\n \t{\r\n \t\thorz[i] = h;\r\n \t\th = h + (float)(1/(float)subdivisions);\r\n \t}\r\n \t\r\n \tfor( int i = 0; i <= subdivisions; i++)\r\n \t{\r\n \t\tvert[i] = v;\r\n \t\tv = v + (float)(1/(float)subdivisions);\r\n \t}\r\n \t\r\n \tfor( int j = 0; j < vert.length - 1; j ++)\r\n \t\tfor( int k = 0; k < horz.length - 1; k ++)\r\n \t\t{\r\n \t\t\tPoint tempP1 = new Point(horz[k], vert[j], 0.5f);\r\n \t\t\tPoint tempP2 = new Point(horz[k + 1], vert[j], 0.5f);\r\n \t\t\tPoint tempP3 = new Point(horz[k + 1], vert[j + 1], 0.5f);\r\n \t\t\tPoint tempP4 = new Point(horz[k], vert[j + 1], 0.5f);\r\n \t\t\t\r\n \t\t\taddTriangle(tempP1.x, tempP1.y, tempP1.z, tempP3.x, tempP3.y, tempP3.z, tempP4.x, tempP4.y, tempP4.z);\r\n \t\t\taddTriangle(tempP1.x, tempP1.y, tempP1.z, tempP2.x, tempP2.y, tempP2.z, tempP3.x, tempP3.y, tempP3.z);\r\n \t\t\t\r\n \t\t}\r\n \t\r\n \t// Back face\r\n \tp1.y = p1.z = -0.5f;\r\n \tp1.x = 0.5f;\r\n \tp2.x = p2.y = p2.z = -0.5f;\r\n \tp3.x = p3.z = -0.5f;\r\n \tp3.y = 0.5f;\r\n \tp4.x = p4.y = 0.5f;\r\n \tp4.z = -0.5f;\r\n \t\r\n \th = p1.x;\r\n \tv = p1.y;\r\n \t\r\n \t\r\n \tfor( int i = 0; i <= subdivisions; i++ )\r\n \t{\r\n \t\thorz[i] = h;\r\n \t\th = h - (float)(1/(float)subdivisions);\r\n \t}\r\n \t\r\n \tfor( int i = 0; i <= subdivisions; i++)\r\n \t{\r\n \t\tvert[i] = v;\r\n \t\tv = v + (float)(1/(float)subdivisions);\r\n \t}\r\n \t\r\n \tfor( int j = 0; j < vert.length - 1; j ++)\r\n \t\tfor( int k = 0; k < horz.length - 1; k ++)\r\n \t\t{\r\n \t\t\tPoint tempP1 = new Point(horz[k], vert[j], -0.5f);\r\n \t\t\tPoint tempP2 = new Point(horz[k + 1], vert[j], -0.5f);\r\n \t\t\tPoint tempP3 = new Point(horz[k + 1], vert[j + 1], -0.5f);\r\n \t\t\tPoint tempP4 = new Point(horz[k], vert[j + 1], -0.5f);\r\n \t\t\t\r\n \t\t\taddTriangle(tempP1.x, tempP1.y, tempP1.z, tempP3.x, tempP3.y, tempP3.z, tempP4.x, tempP4.y, tempP4.z);\r\n \t\t\taddTriangle(tempP1.x, tempP1.y, tempP1.z, tempP2.x, tempP2.y, tempP2.z, tempP3.x, tempP3.y, tempP3.z);\r\n \t\t\t\r\n \t\t}\r\n \t\r\n \t// Left face\r\n \tp1.x = p1.y = p1.z = -0.5f;\r\n \tp2.x = p2.y = -0.5f;\r\n \tp2.z = 0.5f;\r\n \tp3.x = -0.5f;\r\n \tp3.y = p3.z = 0.5f;\r\n \tp4.y = 0.5f;\r\n \tp4.x = p4.z = -0.5f;\r\n \t\r\n \th = p1.z;\r\n \tv = p1.y;\r\n \t\r\n \t\r\n \tfor( int i = 0; i <= subdivisions; i++ )\r\n \t{\r\n \t\thorz[i] = h;\r\n \t\th = h + (float)(1/(float)subdivisions);\r\n \t}\r\n \t\r\n \tfor( int i = 0; i <= subdivisions; i++)\r\n \t{\r\n \t\tvert[i] = v;\r\n \t\tv = v + (float)(1/(float)subdivisions);\r\n \t}\r\n \t\r\n \tfor( int j = 0; j < vert.length - 1; j ++)\r\n \t\tfor( int k = 0; k < horz.length - 1; k ++)\r\n \t\t{\r\n \t\t\tPoint tempP1 = new Point(-0.5f, vert[j], horz[k]);\r\n \t\t\tPoint tempP2 = new Point(-0.5f, vert[j], horz[k + 1]);\r\n \t\t\tPoint tempP3 = new Point(-0.5f, vert[j + 1], horz[k + 1]);\r\n \t\t\tPoint tempP4 = new Point(-0.5f, vert[j + 1], horz[k]);\r\n \t\t\t\r\n \t\t\taddTriangle(tempP1.x, tempP1.y, tempP1.z, tempP3.x, tempP3.y, tempP3.z, tempP4.x, tempP4.y, tempP4.z);\r\n \t\t\taddTriangle(tempP1.x, tempP1.y, tempP1.z, tempP2.x, tempP2.y, tempP2.z, tempP3.x, tempP3.y, tempP3.z);\r\n \t\t\t\r\n \t\t}\r\n \t\r\n \t// Right face\r\n \tp1.x = p1.z = 0.5f;\r\n \tp1.y = -0.5f;\r\n \tp2.y = p2.z = -0.5f;\r\n \tp2.x = 0.5f;\r\n \tp3.x = p3.y = 0.5f;\r\n \tp3.z = -0.5f;\r\n \tp4.x = p4.y = p4.z = 0.5f;\r\n \t\r\n \t\r\n \th = p1.z;\r\n \tv = p1.y;\r\n \t\r\n \t\r\n \tfor( int i = 0; i <= subdivisions; i++ )\r\n \t{\r\n \t\thorz[i] = h;\r\n \t\th = h - (float)(1/(float)subdivisions);\r\n \t}\r\n \t\r\n \tfor( int i = 0; i <= subdivisions; i++)\r\n \t{\r\n \t\tvert[i] = v;\r\n \t\tv = v + (float)(1/(float)subdivisions);\r\n \t}\r\n \t\r\n \tfor( int j = 0; j < vert.length - 1; j ++)\r\n \t\tfor( int k = 0; k < horz.length - 1; k ++)\r\n \t\t{\r\n \t\t\tPoint tempP1 = new Point(0.5f, vert[j], horz[k]);\r\n \t\t\tPoint tempP2 = new Point(0.5f, vert[j], horz[k + 1]);\r\n \t\t\tPoint tempP3 = new Point(0.5f, vert[j + 1], horz[k + 1]);\r\n \t\t\tPoint tempP4 = new Point(0.5f, vert[j + 1], horz[k]);\r\n \t\t\t\r\n \t\t\taddTriangle(tempP1.x, tempP1.y, tempP1.z, tempP3.x, tempP3.y, tempP3.z, tempP4.x, tempP4.y, tempP4.z);\r\n \t\t\taddTriangle(tempP1.x, tempP1.y, tempP1.z, tempP2.x, tempP2.y, tempP2.z, tempP3.x, tempP3.y, tempP3.z);\r\n \t\t\t\r\n \t\t}\r\n \t\r\n \t// Top face\r\n \tp1.x = -0.5f;\r\n \tp1.y = p1.z = 0.5f;\r\n \tp2.x = p2.y = p2.z = 0.5f;\r\n \tp3.x = p3.y = 0.5f;\r\n \tp3.z = -0.5f;\r\n \tp4.x = p4.z = -0.5f;\r\n \tp4.y = 0.5f;\r\n \t\r\n \t\r\n \th = p1.x;\r\n \tv = p1.z;\r\n \t\r\n \t\r\n \tfor( int i = 0; i <= subdivisions; i++ )\r\n \t{\r\n \t\thorz[i] = h;\r\n \t\th = h + (float)(1/(float)subdivisions);\r\n \t}\r\n \t\r\n \tfor( int i = 0; i <= subdivisions; i++)\r\n \t{\r\n \t\tvert[i] = v;\r\n \t\tv = v - (float)(1/(float)subdivisions);\r\n \t}\r\n \t\r\n \tfor( int j = 0; j < vert.length - 1; j ++)\r\n \t\tfor( int k = 0; k < horz.length - 1; k ++)\r\n \t\t{\r\n \t\t\tPoint tempP1 = new Point(horz[k], 0.5f, vert[j]);\r\n \t\t\tPoint tempP2 = new Point(horz[k + 1], 0.5f, vert[j]);\r\n \t\t\tPoint tempP3 = new Point(horz[k + 1], 0.5f, vert[j + 1]);\r\n \t\t\tPoint tempP4 = new Point(horz[k], 0.5f, vert[j + 1]);\r\n \t\t\t\r\n \t\t\taddTriangle(tempP1.x, tempP1.y, tempP1.z, tempP3.x, tempP3.y, tempP3.z, tempP4.x, tempP4.y, tempP4.z);\r\n \t\t\taddTriangle(tempP1.x, tempP1.y, tempP1.z, tempP2.x, tempP2.y, tempP2.z, tempP3.x, tempP3.y, tempP3.z);\r\n \t\t\t\r\n \t\t}\r\n \t\r\n \t// Bottom face\r\n \tp1.x = p1.y = p1.z = -0.5f;\r\n \tp2.y = p2.z = 0.5f;\r\n \tp2.x = 0.5f;\r\n \tp3.x = p3.z = 0.5f;\r\n \tp3.y = -0.5f;\r\n \tp4.x = p4.y = -0.5f;\r\n \tp4.z = 0.5f;\r\n \t\r\n \t\r\n \th = p1.x;\r\n \tv = p1.z;\r\n \t\r\n \t\r\n \tfor( int i = 0; i <= subdivisions; i++ )\r\n \t{\r\n \t\thorz[i] = h;\r\n \t\th = h + (float)(1/(float)subdivisions);\r\n \t}\r\n \t\r\n \tfor( int i = 0; i <= subdivisions; i++)\r\n \t{\r\n \t\tvert[i] = v;\r\n \t\tv = v + (float)(1/(float)subdivisions);\r\n \t}\r\n \t\r\n \tfor( int j = 0; j < vert.length - 1; j ++)\r\n \t\tfor( int k = 0; k < horz.length - 1; k ++)\r\n \t\t{\r\n \t\t\tPoint tempP1 = new Point(horz[k], -0.5f, vert[j]);\r\n \t\t\tPoint tempP2 = new Point(horz[k + 1], -0.5f, vert[j]);\r\n \t\t\tPoint tempP3 = new Point(horz[k + 1], -0.5f, vert[j + 1]);\r\n \t\t\tPoint tempP4 = new Point(horz[k], -0.5f, vert[j + 1]);\r\n \t\t\t\r\n \t\t\taddTriangle(tempP1.x, tempP1.y, tempP1.z, tempP3.x, tempP3.y, tempP3.z, tempP4.x, tempP4.y, tempP4.z);\r\n \t\t\taddTriangle(tempP1.x, tempP1.y, tempP1.z, tempP2.x, tempP2.y, tempP2.z, tempP3.x, tempP3.y, tempP3.z);\r\n \t\t\t\r\n \t\t}\r\n \t\r\n }", "TerrainType givePropType(List<Integer[]> coordsInProp, HashMap<Integer[], TerrainType> terrainDistribution) throws Exception;", "public void calculateNormals() {\n // TODO!\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "void postGen(World world, int x, int y, int z);", "protected MapChunk[] generateChunks( Tile[] tiles ) {\n \n // Check that the tiles we have been given are valid.\n if(tiles == null) {\n return null;\n }\n \n // Ensure we have tiles\n if(tiles.length <= 0) {\n return null;\n }\n \n // Ensure that the tile count is correct\n int tileRows = getHeightInTiles();\n int tileCols = getWidthInTiles();\n \n int tileCount = tileRows * tileCols;\n \n if(tiles.length != tileCount) {\n return null;\n }\n \n // Calculate the amount of chunks we need\n int chunkRows = getWidthInChunks();\n int chunkCols = getHeightInChunks();\n \n int chunkCount = chunkRows * chunkCols;\n \n // Create an array to store these chunks\n MapChunk[] chunks = new MapChunk[ chunkCount ];\n \n // Nullify the chunks\n for( int i = 0; i < chunkCount; i++ ) {\n chunks[i] = null;\n }\n \n // Render the tiles onto the chunks\n for(int x = 0; x < tileCols; x++) {\n for(int y = 0; y < tileRows; y++) {\n \n // Get the current tile\n Tile thisTile = tiles[ (y * tileCols) + x ];\n \n // Figure out which chunk we're in \n int tileX = x * getTileWidth();\n int tileY = y * getTileHeight();\n \n int chunkX = 0;\n int chunkY = 0;\n \n while( tileX >= getChunkWidth() ) {\n chunkX ++;\n tileX -= getChunkWidth();\n }\n \n while( tileY >= getChunkHeight() ) {\n chunkY ++;\n tileY -= getChunkHeight();\n }\n \n // Find the chunk\n MapChunk chunk = chunks[ (chunkY * chunkCols) + chunkX ];\n \n // System.out.println(\" Tile \" + ((y * tileCols) + x) + \" (\" + x + \", \" + y + \") Tile Position \" + (x * getTileWidth()) + \", \" + (y * getTileHeight()) + \" is in Chunk \" + chunkX + \", \" + chunkY + \" which is at index \" + ((chunkY * chunkCols) + chunkX));\n \n // Ensure this chunk has been created\n if(chunk == null) {\n chunk = new MapChunk( getChunkWidth(), getChunkHeight() );\n chunks[ (chunkY * chunkCols) + chunkX ] = chunk;\n \n }\n \n // Draw the tile\n for(int tx = 0; tx < getTileWidth(); tx++ ){\n for(int ty = 0; ty < getTileHeight(); ty++) {\n chunk.image.setPixel(\n \n tx + (x * getTileWidth()) - (chunkX * getChunkWidth()),\n ty + (y * getTileHeight()) - (chunkY * getChunkHeight()),\n thisTile.getColor()\n \n );\n }\n }\n \n }\n }\n \n return chunks;\n \n }", "public TiledMap createMap() {\n map_inter = new MapTile[g_logic.MAP_WIDTH][g_logic.MAP_HEIGHT];\n \n //drawing stuff\n tiles = new Texture(Gdx.files.internal(\"packed/terrain.png\"));\n TextureRegion[][] splitTiles = TextureRegion.split(tiles, 54, 54);\n map = new TiledMap();\n MapLayers layers = map.getLayers();\n TiledMapTileLayer new_layer = new TiledMapTileLayer(g_logic.MAP_WIDTH, g_logic.MAP_HEIGHT, g_logic.ISO_WIDTH, g_logic.ISO_HEIGHT);\n \n //actual generation\n for (int x = 0; x < g_logic.MAP_WIDTH; x++) \n {\n for (int y = 0; y < g_logic.MAP_HEIGHT; y++) \n {\n char chara = '.';\n int ty = 0;\n int tx;\n if (x == 0 || x == g_logic.MAP_WIDTH-1)\n {\n tx = 1;\n chara = '#';\n }\n else\n {\n tx = 0; \n chara = '.';\n }\n \n //set up map tiles\n MapTile tile = new MapTile(x, y, tx, ty, chara);\n Gdx.app.log(\"Map gen\", \"Created a map tile @\" + x + \",\" + y + \" \" + tx + \" \" + ty + \" \" + chara);\n \n //put them in the internal map\n putInterMap(tile, x, y);\n \n //set up renderer cells\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n //y,x\n cell.setTile(new StaticTiledMapTile(splitTiles[tile.getTextureY()][tile.getTextureX()]));\n new_layer.setCell(x, y, cell);\n }\n }\n \n \n float y_off = g_logic.getYOffset();\n new_layer.setOffsetY(y_off);\n layers.add(new_layer);\n \n g_logic.setInterMap(map_inter);\n\n return map;\n }", "public Particle(Point[] landmarks, int width, int height) {\r\n this.landmarks = landmarks;\r\n this.worldWidth = width;\r\n this.worldHeight = height;\r\n random = new Random();\r\n x = random.nextFloat() * width;\r\n y = random.nextFloat() * height;\r\n orientation = random.nextFloat() * 2f * ((float)Math.PI);\r\n forwardNoise = 0f;\r\n turnNoise = 0f;\r\n senseNoise = 0f; \r\n }", "void computeTriangleNormals();", "public MazeRoom[][] generate() {\n\t\tgenerate(theGrid[0][0]);\n\t\treturn theGrid;\n\t}", "private void createCube(float x, float y, float z){\r\n\t\tboolean[] sides = checkCubeSides((int)x,(int)y,(int)z);\r\n\t\tfloat[] color = BlockType.color(blocks[(int)x][(int)y][(int)z]);\r\n\t\t\r\n//\t\t gl.glNormal3f(0.0f, 1.0f, 0.0f);\r\n\t\tif(sides[0]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\t \r\n//\t // Bottom-face\r\n//\t gl.glNormal3f(0.0f, -1.0f, 0.0f);\r\n\t\t\r\n\t\tif(sides[1]){\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(-1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n//\t // Back-face\r\n//\t gl.glNormal3f(0.0f, 0.0f, -1.0f);\r\n\t\tif(sides[2]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(-1f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n//\t // Front-face\r\n//\t gl.glNormal3f(0.0f, 0.0f, 1.0f);\r\n\t\tif(sides[3]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(1f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n//\t \r\n//\t // Left-face\r\n//\t gl.glNormal3f(-1.0f, 0.0f, 0.0f);\r\n\t\tif(sides[4]){\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(-1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n//\t // Right-face\r\n//\t gl.glNormal3f(1.0f, 0.0f, 0.0f);\r\n\t\tif(sides[5]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void buildVerticies(){\n\t\tfor(Entry<HexLocation, TerrainHex> entry : hexes.entrySet()){\n\t\t\t\n\t\t\tVertexLocation vertLoc1 = new VertexLocation(entry.getKey(), VertexDirection.NorthWest);\n\t\t\tVertex v1 = new Vertex(vertLoc1);\n\t\t\tverticies.put(vertLoc1, v1);\n\t\t\t\n\t\t\tVertexLocation vertLoc2 = new VertexLocation(entry.getKey(), VertexDirection.NorthEast);\n\t\t\tVertex v2 = new Vertex(vertLoc2);\n\t\t\tverticies.put(vertLoc2, v2);\n\t\t\t\n\t\t\tVertexLocation vertLoc3 = new VertexLocation(entry.getKey(), VertexDirection.East);\n\t\t\tVertex v3 = new Vertex(vertLoc3);\n\t\t\tverticies.put(vertLoc3, v3);\n\t\t\t\n\t\t\tVertexLocation vertLoc4 = new VertexLocation(entry.getKey(), VertexDirection.SouthEast);\n\t\t\tVertex v4 = new Vertex(vertLoc4);\n\t\t\tverticies.put(vertLoc4, v4);\n\t\t\t\n\t\t\tVertexLocation vertLoc5 = new VertexLocation(entry.getKey(), VertexDirection.SouthWest);\n\t\t\tVertex v5 = new Vertex(vertLoc5);\n\t\t\tverticies.put(vertLoc5, v5);\n\t\t\t\n\t\t\tVertexLocation vertLoc6 = new VertexLocation(entry.getKey(), VertexDirection.West);\n\t\t\tVertex v6 = new Vertex(vertLoc6);\n\t\t\tverticies.put(vertLoc6, v6);\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "public boolean generate(World paramaqu, Random paramRandom, BlockPosition paramdt)\r\n/* 12: */ {\r\n/* 13: 19 */ int i = paramRandom.nextInt(4) + 5;\r\n/* 14: 20 */ while (paramaqu.getBlock(paramdt.down()).getType().getMaterial() == Material.water) {\r\n/* 15: 21 */ paramdt = paramdt.down();\r\n/* 16: */ }\r\n/* 17: 24 */ int j = 1;\r\n/* 18: 25 */ if ((paramdt.getY() < 1) || (paramdt.getY() + i + 1 > 256)) {\r\n/* 19: 26 */ return false;\r\n/* 20: */ }\r\n/* 21: */ int n;\r\n/* 22: */ int i2;\r\n/* 23: 29 */ for (int k = paramdt.getY(); k <= paramdt.getY() + 1 + i; k++)\r\n/* 24: */ {\r\n/* 25: 30 */ int m = 1;\r\n/* 26: 31 */ if (k == paramdt.getY()) {\r\n/* 27: 32 */ m = 0;\r\n/* 28: */ }\r\n/* 29: 34 */ if (k >= paramdt.getY() + 1 + i - 2) {\r\n/* 30: 35 */ m = 3;\r\n/* 31: */ }\r\n/* 32: 37 */ for (n = paramdt.getX() - m; (n <= paramdt.getX() + m) && (j != 0); n++) {\r\n/* 33: 38 */ for (i2 = paramdt.getZ() - m; (i2 <= paramdt.getZ() + m) && (j != 0); i2++) {\r\n/* 34: 39 */ if ((k >= 0) && (k < 256))\r\n/* 35: */ {\r\n/* 36: 40 */ BlockType localatr3 = paramaqu.getBlock(new BlockPosition(n, k, i2)).getType();\r\n/* 37: 41 */ if ((localatr3.getMaterial() != Material.air) && (localatr3.getMaterial() != Material.leaves)) {\r\n/* 38: 42 */ if ((localatr3 == BlockList.water) || (localatr3 == BlockList.flowingWater))\r\n/* 39: */ {\r\n/* 40: 43 */ if (k > paramdt.getY()) {\r\n/* 41: 44 */ j = 0;\r\n/* 42: */ }\r\n/* 43: */ }\r\n/* 44: */ else {\r\n/* 45: 47 */ j = 0;\r\n/* 46: */ }\r\n/* 47: */ }\r\n/* 48: */ }\r\n/* 49: */ else\r\n/* 50: */ {\r\n/* 51: 51 */ j = 0;\r\n/* 52: */ }\r\n/* 53: */ }\r\n/* 54: */ }\r\n/* 55: */ }\r\n/* 56: 57 */ if (j == 0) {\r\n/* 57: 58 */ return false;\r\n/* 58: */ }\r\n/* 59: 61 */ BlockType localatr1 = paramaqu.getBlock(paramdt.down()).getType();\r\n/* 60: 62 */ if (((localatr1 != BlockList.grass) && (localatr1 != BlockList.dirt)) || (paramdt.getY() >= 256 - i - 1)) {\r\n/* 61: 63 */ return false;\r\n/* 62: */ }\r\n/* 63: 66 */ makeDirt(paramaqu, paramdt.down());\r\n/* 64: */ int i3;\r\n/* 65: */ int i4;\r\n/* 66: */ BlockPosition localdt3;\r\n/* 67: 68 */ for (int m = paramdt.getY() - 3 + i; m <= paramdt.getY() + i; m++)\r\n/* 68: */ {\r\n/* 69: 69 */ n = m - (paramdt.getY() + i);\r\n/* 70: 70 */ i2 = 2 - n / 2;\r\n/* 71: 71 */ for (i3 = paramdt.getX() - i2; i3 <= paramdt.getX() + i2; i3++)\r\n/* 72: */ {\r\n/* 73: 72 */ i4 = i3 - paramdt.getX();\r\n/* 74: 73 */ for (int i5 = paramdt.getZ() - i2; i5 <= paramdt.getZ() + i2; i5++)\r\n/* 75: */ {\r\n/* 76: 74 */ int i6 = i5 - paramdt.getZ();\r\n/* 77: 75 */ if ((Math.abs(i4) != i2) || (Math.abs(i6) != i2) || ((paramRandom.nextInt(2) != 0) && (n != 0)))\r\n/* 78: */ {\r\n/* 79: 78 */ localdt3 = new BlockPosition(i3, m, i5);\r\n/* 80: 79 */ if (!paramaqu.getBlock(localdt3).getType().m()) {\r\n/* 81: 80 */ setBlock(paramaqu, localdt3, BlockList.leaves);\r\n/* 82: */ }\r\n/* 83: */ }\r\n/* 84: */ }\r\n/* 85: */ }\r\n/* 86: */ }\r\n/* 87: 86 */ for (int m = 0; m < i; m++)\r\n/* 88: */ {\r\n/* 89: 87 */ BlockType localatr2 = paramaqu.getBlock(paramdt.up(m)).getType();\r\n/* 90: 88 */ if ((localatr2.getMaterial() == Material.air) || (localatr2.getMaterial() == Material.leaves) || (localatr2 == BlockList.flowingWater) || (localatr2 == BlockList.water)) {\r\n/* 91: 89 */ setBlock(paramaqu, paramdt.up(m), BlockList.log);\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94: 93 */ for (int m = paramdt.getY() - 3 + i; m <= paramdt.getY() + i; m++)\r\n/* 95: */ {\r\n/* 96: 94 */ int i1 = m - (paramdt.getY() + i);\r\n/* 97: 95 */ i2 = 2 - i1 / 2;\r\n/* 98: 96 */ for (i3 = paramdt.getX() - i2; i3 <= paramdt.getX() + i2; i3++) {\r\n/* 99: 97 */ for (i4 = paramdt.getZ() - i2; i4 <= paramdt.getZ() + i2; i4++)\r\n/* 100: */ {\r\n/* 101: 98 */ BlockPosition localdt1 = new BlockPosition(i3, m, i4);\r\n/* 102:100 */ if (paramaqu.getBlock(localdt1).getType().getMaterial() == Material.leaves)\r\n/* 103: */ {\r\n/* 104:101 */ BlockPosition localdt2 = localdt1.west();\r\n/* 105:102 */ localdt3 = localdt1.east();\r\n/* 106:103 */ BlockPosition localdt4 = localdt1.north();\r\n/* 107:104 */ BlockPosition localdt5 = localdt1.south();\r\n/* 108:106 */ if ((paramRandom.nextInt(4) == 0) && (paramaqu.getBlock(localdt2).getType().getMaterial() == Material.air)) {\r\n/* 109:107 */ a(paramaqu, localdt2, bbv.S);\r\n/* 110: */ }\r\n/* 111:109 */ if ((paramRandom.nextInt(4) == 0) && (paramaqu.getBlock(localdt3).getType().getMaterial() == Material.air)) {\r\n/* 112:110 */ a(paramaqu, localdt3, bbv.T);\r\n/* 113: */ }\r\n/* 114:112 */ if ((paramRandom.nextInt(4) == 0) && (paramaqu.getBlock(localdt4).getType().getMaterial() == Material.air)) {\r\n/* 115:113 */ a(paramaqu, localdt4, bbv.Q);\r\n/* 116: */ }\r\n/* 117:115 */ if ((paramRandom.nextInt(4) == 0) && (paramaqu.getBlock(localdt5).getType().getMaterial() == Material.air)) {\r\n/* 118:116 */ a(paramaqu, localdt5, bbv.R);\r\n/* 119: */ }\r\n/* 120: */ }\r\n/* 121: */ }\r\n/* 122: */ }\r\n/* 123: */ }\r\n/* 124:122 */ return true;\r\n/* 125: */ }", "public static Mesh[] getObjmesh() {\n return objmesh;\n }", "private void generate () {\n\t\t\n\t\tArrayList<Integer[]> copyToCheck = new ArrayList<Integer[]> ();\n\t\tfor (int i = 0; i < Math.pow(size, 3); i++) { // Filling up the maze with blocks\n\t\t\tint x, y, z;\n\t\t\tx = i / (size * size); // Get the x, y, and z\n\t\t\ty = i % (size * size) / size;\n\t\t\tz = i % (size * size) % size;\n\t\t\t// spaces each block out by 1\n\t\t\tif (x%2 == 1 && y%2 == 1 && z%2 == 1) {\n\t\t\t\tmaze.add(new Block (x, y, z, ' ')); // 'w' means wall\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tmaze.add(new Block (x, y, z, 'w'));\n\t\t\t\tif (x > 0 && y > 0 && z > 0 && x < size-1 && y < size-1 && z < size-1) { // if the blocks are within the outer shell, add the blocks to the list of walls to check\n\t\t\t\t\tif (x%2+y%2+z%2 == 2)copyToCheck.add(new Integer[] {x, y, z});\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if (x > 0 && y > 0 && z > 0 && x < size-1 && y < size-1 && z < size-1) { // checks if the coordinates are within the smaller cube that is below the first layer.\n\t\t\t\t//copyToCheck.add(new Integer[] { x, y, z });\t// the Block coords left to check\n\t\t\t//}\n\t\t}\n\t\t\n\t\tint starty, startx, startz; // x, y and z of current block\n\t\tstartz = 0; // the starting block will be at z = 0 because that is the bottom-most layer\n\n\t\tstartx = ((int)(Math.random() * (size/2)))*2 + 1; \n\t\tstarty = ((int)(Math.random() * (size/2)))*2 + 1;\n\t\tstart = get(startx, starty, startz);\n\t\t\n\t\tint endx, endy, endz; // x, y and z of end block\n\t\tendx = ((int)(Math.random() * (size/2)))*2 + 1; \n\t\tendy = ((int)(Math.random() * (size/2)))*2 + 1;\n\t\tendz = size-1;\n\t\tend = get(endx, endy, endz);\n\t\t\n\t\tArrayList<Integer[]> toCheck;\n\t\tboolean removed = true;\n\t\twhile (removed) {\n\t\t\tremoved = false;\n\t\t\ttoCheck = new ArrayList<Integer[]> ();\n\t\t\tfor (Integer[] thing : copyToCheck) {\n\t\t\t\ttoCheck.add(thing);\n\t\t\t}\n\t\t\tCollections.shuffle(toCheck); // Randomizes the order of the list of coordinates to check.\n\t\t\tfor (Integer[] coords : toCheck) {\n\t\t\t\tBlock curr = get(coords[0], coords[1], coords[2]);\n\t\t\t\tArrayList<Block> neighbors = getAdj(curr);\n\t\t\t\tboolean isJoint = false;\n\t\t\t\t\tfor (int i = 0; i < neighbors.size() - 1 && !isJoint; i++) {\n\t\t\t\t\t\tfor (int j = i+1; j < neighbors.size(); j++) {\n\t\t\t\t\t\t\tif (neighbors.get(j).t == ' ')\n\t\t\t\t\t\t\t\tif (neighbors.get(i).tree == neighbors.get(j).tree) {\n\t\t\t\t\t\t\t\t\tisJoint = true;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isJoint) { // Even if it doesn't matter too much, don't want to spend a bunch of time iterating through the stuff unless I have too.\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!isJoint) {\n\t\t\t\t\t\tremoved = true;\n\t\t\t\t\t\tcopyToCheck.remove(coords);\n\t\t\t\t\t\tjoin(curr); // Joins all of the sets, changes the type of the block.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\tArrayList<Block> t = new ArrayList<Block>();\n\t\tfor (int i = 0; i < 5*size; i++) {\n\t\t\tArrayList<Block> b = getWalls();\n\t\t\t\n\t\t\tint rand = (int)(Math.random()*b.size());\n\t\t\tint x = b.get(rand).x;\n\t\t\tint y = b.get(rand).y;\n\t\t\tint z = b.get(rand).z;\n\t\t\tset(x, y, z, new Trap (x, y, z));\n\t\t}\n\t\tstart.t = ' '; // sets the type of the start and end blocks\n\t\tend.t = 'e';\n\t}", "public abstract Array<Mesh> toMeshes(float depth);", "public SbVec3f getNormal() { return worldNormal; }", "public Tile[] generate() {\n Tile[] tiles = generateTiles();\n calculatePathfindingGrid(tiles);\n return tiles;\n }", "public Mesh() {\r\n \tthis.surfaceAreaMethods.add(Object3D.MESH_SA);\r\n \tthis.volumeMethods.add(Object3D.MESH_VOL);\r\n \t\r\n vertices = new ArrayList<Vertex>();\r\n tris = new ArrayList<Triangle>();\r\n }", "public static int[][] generateMap(int mines, int width, int height, int fcX, int fcY) {\n\t\tif(mines>width*height-1){\n\t\t\treturn null;\n\t\t}\n\t\tint[][] meowfield = new int[height][width];\n\t\tmeowfield[fcY][fcX] = (int)Math.random()*10;\n\t\tint[] RNGesus = new int[mines];\n\t\tfor(int i=0; i<meowfield.length;i++){\t\n\t\t\tArrays.fill(meowfield[i], -1);\n\t\t}\n\t\tArrays.fill(RNGesus, -1);\n\t\tfor (int i = 0; i < mines; i++) {\n\t\t\tint ranNum = (int) (Math.random() * width * height);\n\t\t\tSystem.out.println(ranNum);\n\t\t\tif (!contains(RNGesus, ranNum)) {\n\t\t\t\tRNGesus[i] = ranNum;\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Arrays.toString(RNGesus));\n\t\tfor (int i = 0; i < RNGesus.length; i++) {\n\t\t\tmeowfield[RNGesus[i] %width][RNGesus[i]/height] = 10;\n\t\t}\n\t\treturn meowfield;\n\t}", "public BufferedImage generateTexture() {\n BufferedImage texture = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n WritableRaster raster = texture.getRaster();\n \n int[] rasterData = new int[width * height];\n for (int i = 0; i < width * height; i++) {\n rasterData[i] = Color.BLACK.getRGB();\n }\n \n Color color;\n \n double max = Math.min(upperZ, cache.max);\n double min = Math.max(lowerZ, cache.min);\n double dz = (max - min) / (double)contours;\n boolean matched;\n for (int i = 0; i < width; i++) {\n for (int j = 0; j < height; j++) {\n PointDouble in = graphToValue(new PointDouble(i, j));\n double val = cache.get(in.getX(), in.getY());\n matched = false;\n if (alternateContours && contours > 0) {\n for (int k = 0; k <= contours; k++) {\n if (val >= min + (k - 0.5 * contourWidth + contourOffset + 0.5) * dz && val <= min + (k + 0.5 * contourWidth + contourOffset + 0.5) * dz) {\n matched = true;\n break;\n }\n }\n }\n if (matched) {\n color = CONTOUR_COLOR;\n }\n else {\n color = interpolate(LOW_COLOR, HIGH_COLOR, Math.min(Math.max((val - min) / (max - min), 0), 1));\n }\n \n rasterData[j * width + i] = color.getRGB();\n /*val = new PointDouble(val.getX(), op.applyAsDouble(val.getX()));\n val = valueToGraph(val);\n if (i != 0) {\n g.drawLine(MARGIN_X + i - 1, prev, (int) Math.round(val.getX()), (int) Math.round(val.getY()));\n }\n prev = (int) Math.round(val.getY());*/\n \n }\n }\n //Draw contours\n if (!alternateContours) {\n for (int k = 0; k < contours; k++) {\n double target = min + (k + contourOffset + 0.5) * dz;\n \n //Map of all points higher/lower then the target\n ArrayList<ArrayList<Boolean>> data = new ArrayList<>(width);\n for (int i = 0; i < width; i++) {\n data.add(new ArrayList<>(height));\n for (int j = 0; j < height; j++) {\n PointDouble in = graphToValue(new PointDouble(i, j));\n double val = cache.get(in.getX(), in.getY());\n data.get(i).add(val > target);\n }\n }\n \n //Edge detection filter\n ArrayList<ArrayList<Boolean>> filteredData = new ArrayList<>(width);\n for (int i = 0; i < width; i++) {\n filteredData.add(new ArrayList<>(height));\n for (int j = 0; j < height; j++) {\n boolean tl = data.get(Math.max(Math.min(i - 1, width - 1), 0)).get(Math.max(Math.min(j + 1, height - 1), 0));\n boolean tc = data.get(Math.max(Math.min(i, width - 1), 0)).get(Math.max(Math.min(j + 1, height - 1), 0));\n boolean tr = data.get(Math.max(Math.min(i + 1, width - 1), 0)).get(Math.max(Math.min(j + 1, height - 1), 0));\n \n boolean cl = data.get(Math.max(Math.min(i - 1, width - 1), 0)).get(Math.max(Math.min(j, height - 1), 0));\n boolean cc = data.get(Math.max(Math.min(i, width - 1), 0)).get(Math.max(Math.min(j, height - 1), 0));\n boolean ct = data.get(Math.max(Math.min(i + 1, width - 1), 0)).get(Math.max(Math.min(j, height - 1), 0));\n \n boolean bl = data.get(Math.max(Math.min(i - 1, width - 1), 0)).get(Math.max(Math.min(j - 1, height - 1), 0));\n boolean bc = data.get(Math.max(Math.min(i, width - 1), 0)).get(Math.max(Math.min(j - 1, height - 1), 0));\n boolean br = data.get(Math.max(Math.min(i + 1, width - 1), 0)).get(Math.max(Math.min(j - 1, height - 1), 0));\n \n boolean res;\n if (contourWidth > 0.5) {\n res = (cc && (!tl || !tc || !tr || !cl || !ct || !bl || !bc || !br)) || (!cc && (tl || tc || tr || cl || ct || bl || bc || br));\n }\n else {\n if (contourWidth > 0.25) {\n res = (cc && (!tc || !cl || !ct || !bc)) || (!cc && (tc || cl || ct || bc));\n }\n else {\n res = cc && (!tc || !cl || !ct || !bc);\n }\n }\n filteredData.get(i).add(res);\n }\n }\n \n //Draw contour\n color = CONTOUR_COLOR;\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n if (filteredData.get(j).get(i)) {\n rasterData[i * width + j] = color.getRGB();\n }\n }\n }\n }\n }\n raster.setDataElements(0, 0, width, height, rasterData);\n return texture;\n }", "public final MeshView getChunk(Point2D point, int size, int subdivisions, int resolution) {\n TriangleMesh mesh = new TriangleMesh();\n int increment = size / subdivisions;\n \n boolean cancelled = false;\n float max = 0;\n int octaves = Math.min((int) (\n Math.log(1 / (baseFreq * increment))\n / Math.log(lacunarity)), octaveCap);\n float[][] buffer = new float[subdivisions + 1][subdivisions + 1];\n noiseLoop:\n for (int j = 0; j < buffer.length; j++) {\n for (int i = 0; i < buffer[0].length; i++) {\n if (Thread.interrupted()) {\n cancelled = true;\n break noiseLoop;\n }\n\n double x = (size * point.getX() + i * increment) * baseFreq;\n double y = (size * point.getY() + j * increment) * baseFreq;\n \n float noiseSum = 0;\n double amplitude = baseAmp;\n for (int k = 1; k < octaves; k++) {\n noiseSum += noise2D(x, y) * amplitude;\n x *= lacunarity;\n y *= lacunarity;\n amplitude *= gain;\n }\n buffer[j][i] += noiseSum;\n if (Math.abs(buffer[j][i]) > max) {\n max = Math.abs(buffer[j][i]);\n }\n }\n }\n\n if (!cancelled) {\n processLoop:\n for (int j = 0; j < buffer.length; j++) {\n for (int i = 0; i < buffer[0].length; i++) {\n if (Thread.interrupted()) {\n cancelled = true;\n break processLoop;\n }\n switch (mode) {\n case NONE:\n buffer[j][i] =\n (1 + buffer[j][i]) / 2.0f;\n break;\n case SQUARE:\n buffer[j][i] =\n (float) Math.pow(buffer[j][i], 2);\n break;\n case CUBE:\n buffer[j][i] =\n (1 + (float) Math.pow(\n buffer[j][i], 3)) / 2.0f;\n break;\n default:\n buffer[j][i] =\n (float) Math.abs(buffer[j][i]);\n break;\n }\n mesh.getPoints().addAll(\n (float) (size * point.getX() + increment * i),\n (float) (size * point.getY() + increment * j),\n -buffer[j][i]);\n mesh.getTexCoords().addAll(\n (float) increment * i / size,\n (float) increment * j / size\n );\n }\n }\n }\n \n if (!cancelled) {\n meshLoop:\n for (int j = 0; j < buffer.length - 1; j++) {\n for (int i = 0; i < buffer[0].length - 1; i++) {\n if (Thread.interrupted()) {\n cancelled = true;\n break meshLoop;\n }\n mesh.getFaces().addAll(\n (subdivisions + 1) * j + i, (subdivisions + 1) * j + i,\n (subdivisions + 1) * (j + 1) + i, (subdivisions + 1) * (j + 1) + i,\n (subdivisions + 1) * (j + 1) + (i + 1), (subdivisions + 1) * (j + 1) + (i + 1),\n (subdivisions + 1) * j + i, (subdivisions + 1) * j + i,\n (subdivisions + 1) * (j + 1) + (i + 1), (subdivisions + 1) * (j + 1) + (i + 1),\n (subdivisions + 1) * j + (i + 1), (subdivisions + 1) * j + (i + 1)\n );\n \n }\n }\n }\n \n MeshView meshView = new MeshView(mesh);\n PhongMaterial material = new PhongMaterial();\n material.setDiffuseMap(getChunkTex(resolution, buffer));\n meshView.setMaterial(material);\n return meshView;\n }", "public static double noise(double x, double y, double z, double w){\n\t\t\n\t\tdouble n0,n1,n2,n3,n4; // Noise contributions from the five corners\n\t\t// Skew the (x,y,z,w) space to determine which cell of 24 simplices we're in\n\t\tdouble s=(x+y+z+w)*F4; // Factor for 4D skewing\n\t\tint i=fastfloor(x+s);\n\t\tint j=fastfloor(y+s);\n\t\tint k=fastfloor(z+s);\n\t\tint l=fastfloor(w+s);\n\t\tdouble t=(i+j+k+l)*G4; // Factor for 4D unskewing\n\t\tdouble X0=i-t; // Unskew the cell origin back to (x,y,z,w) space\n\t\tdouble Y0=j-t;\n\t\tdouble Z0=k-t;\n\t\tdouble W0=l-t;\n\t\tdouble x0=x-X0; // The x,y,z,w distances from the cell origin\n\t\tdouble y0=y-Y0;\n\t\tdouble z0=z-Z0;\n\t\tdouble w0=w-W0;\n\t\t// For the 4D case, the simplex is a 4D shape I won't even try to describe.\n\t\t// To find out which of the 24 possible simplices we're in, we need to\n\t\t// determine the magnitude ordering of x0, y0, z0 and w0.\n\t\t// Six pair-wise comparisons are performed between each possible pair\n\t\t// of the four coordinates, and the results are used to rank the numbers.\n\t\tint rankx=0;\n\t\tint ranky=0;\n\t\tint rankz=0;\n\t\tint rankw=0;\n\t\tif(x0>y0) rankx++;\n\t\telse ranky++;\n\t\tif(x0>z0) rankx++;\n\t\telse rankz++;\n\t\tif(x0>w0) rankx++;\n\t\telse rankw++;\n\t\tif(y0>z0) ranky++;\n\t\telse rankz++;\n\t\tif(y0>w0) ranky++;\n\t\telse rankw++;\n\t\tif(z0>w0) rankz++;\n\t\telse rankw++;\n\t\tint i1,j1,k1,l1; // The integer offsets for the second simplex corner\n\t\tint i2,j2,k2,l2; // The integer offsets for the third simplex corner\n\t\tint i3,j3,k3,l3; // The integer offsets for the fourth simplex corner\n\t\t// [rankx, ranky, rankz, rankw] is a 4-vector with the numbers 0, 1, 2 and 3\n\t\t// in some order. We use a thresholding to set the coordinates in turn.\n\t\t// Rank 3 denotes the largest coordinate.\n\t\ti1=rankx>=3?1:0;\n\t\tj1=ranky>=3?1:0;\n\t\tk1=rankz>=3?1:0;\n\t\tl1=rankw>=3?1:0;\n\t\t// Rank 2 denotes the second largest coordinate.\n\t\ti2=rankx>=2?1:0;\n\t\tj2=ranky>=2?1:0;\n\t\tk2=rankz>=2?1:0;\n\t\tl2=rankw>=2?1:0;\n\t\t// Rank 1 denotes the second smallest coordinate.\n\t\ti3=rankx>=1?1:0;\n\t\tj3=ranky>=1?1:0;\n\t\tk3=rankz>=1?1:0;\n\t\tl3=rankw>=1?1:0;\n\t\t// The fifth corner has all coordinate offsets = 1, so no need to compute that.\n\t\tdouble x1=x0-i1+G4; // Offsets for second corner in (x,y,z,w) coords\n\t\tdouble y1=y0-j1+G4;\n\t\tdouble z1=z0-k1+G4;\n\t\tdouble w1=w0-l1+G4;\n\t\tdouble x2=x0-i2+2.0*G4; // Offsets for third corner in (x,y,z,w) coords\n\t\tdouble y2=y0-j2+2.0*G4;\n\t\tdouble z2=z0-k2+2.0*G4;\n\t\tdouble w2=w0-l2+2.0*G4;\n\t\tdouble x3=x0-i3+3.0*G4; // Offsets for fourth corner in (x,y,z,w) coords\n\t\tdouble y3=y0-j3+3.0*G4;\n\t\tdouble z3=z0-k3+3.0*G4;\n\t\tdouble w3=w0-l3+3.0*G4;\n\t\tdouble x4=x0-1.0+4.0*G4; // Offsets for last corner in (x,y,z,w) coords\n\t\tdouble y4=y0-1.0+4.0*G4;\n\t\tdouble z4=z0-1.0+4.0*G4;\n\t\tdouble w4=w0-1.0+4.0*G4;\n\t\t// Work out the hashed gradient indices of the five simplex corners\n\t\tint ii=i&255;\n\t\tint jj=j&255;\n\t\tint kk=k&255;\n\t\tint ll=l&255;\n\t\tint gi0=perm[ii+perm[jj+perm[kk+perm[ll]]]]%32;\n\t\tint gi1=perm[ii+i1+perm[jj+j1+perm[kk+k1+perm[ll+l1]]]]%32;\n\t\tint gi2=perm[ii+i2+perm[jj+j2+perm[kk+k2+perm[ll+l2]]]]%32;\n\t\tint gi3=perm[ii+i3+perm[jj+j3+perm[kk+k3+perm[ll+l3]]]]%32;\n\t\tint gi4=perm[ii+1+perm[jj+1+perm[kk+1+perm[ll+1]]]]%32;\n\t\t// Calculate the contribution from the five corners\n\t\tdouble t0=0.6-x0*x0-y0*y0-z0*z0-w0*w0;\n\t\tif(t0<0) n0=0.0;\n\t\telse{\n\t\t\tt0*=t0;\n\t\t\tn0=t0*t0*dot(grad4[gi0], x0, y0, z0, w0);\n\t\t}\n\t\tdouble t1=0.6-x1*x1-y1*y1-z1*z1-w1*w1;\n\t\tif(t1<0) n1=0.0;\n\t\telse{\n\t\t\tt1*=t1;\n\t\t\tn1=t1*t1*dot(grad4[gi1], x1, y1, z1, w1);\n\t\t}\n\t\tdouble t2=0.6-x2*x2-y2*y2-z2*z2-w2*w2;\n\t\tif(t2<0) n2=0.0;\n\t\telse{\n\t\t\tt2*=t2;\n\t\t\tn2=t2*t2*dot(grad4[gi2], x2, y2, z2, w2);\n\t\t}\n\t\tdouble t3=0.6-x3*x3-y3*y3-z3*z3-w3*w3;\n\t\tif(t3<0) n3=0.0;\n\t\telse{\n\t\t\tt3*=t3;\n\t\t\tn3=t3*t3*dot(grad4[gi3], x3, y3, z3, w3);\n\t\t}\n\t\tdouble t4=0.6-x4*x4-y4*y4-z4*z4-w4*w4;\n\t\tif(t4<0) n4=0.0;\n\t\telse{\n\t\t\tt4*=t4;\n\t\t\tn4=t4*t4*dot(grad4[gi4], x4, y4, z4, w4);\n\t\t}\n\t\t// Sum up and scale the result to cover the range [-1,1]\n\t\treturn 27.0*(n0+n1+n2+n3+n4);\n\t}", "private static ImmutableList<WorldCoord> generateVertexList()\r\n {\n\t return ShapeReader.getWorldCoordsFromResource(RESOURCE);\r\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 static @NotNull Image genNoiseCellular(int width, int height, int tileSize)\n {\n Color.Buffer pixels = Color.malloc(ColorFormat.RGBA, width * height);\n \n Random random = new Random();\n \n int seedsPerRow = width / tileSize;\n int seedsPerCol = height / tileSize;\n int seedsCount = seedsPerRow * seedsPerCol;\n \n int[] seeds = new int[seedsCount << 1];\n \n for (int i = 0; i < seedsCount; i++)\n {\n seeds[2 * i] = i % seedsPerRow * tileSize + random.nextInt(tileSize);\n seeds[2 * i + 1] = i / seedsPerRow * tileSize + random.nextInt(tileSize);\n }\n \n for (int j = 0; j < height; j++)\n {\n int tileY = j / tileSize;\n \n for (int i = 0; i < width; i++)\n {\n int tileX = i / tileSize;\n \n double minDistance = Double.MAX_VALUE;\n \n // Check all adjacent tiles\n for (int x = -1; x < 2; x++)\n {\n if (tileX + x < 0 || tileX + x >= seedsPerRow) continue;\n \n for (int y = -1; y < 2; y++)\n {\n if (tileY + y < 0 || tileY + y >= seedsPerCol) continue;\n \n int index = (tileY + y) * seedsPerRow + tileX + x;\n \n int seedX = seeds[2 * index];\n int seedY = seeds[2 * index + 1];\n \n double dist = Math.hypot(i - seedX, j - seedY);\n \n minDistance = Math.min(minDistance, dist);\n }\n }\n \n // I made this up but it seems to give good results at all tile sizes\n int intensity = (int) Math.round(minDistance * 256 / tileSize);\n \n pixels.put(j * width + i, Math.min(intensity, 255), 255);\n }\n }\n \n return new Image(pixels, width, height, 1, ColorFormat.RGBA);\n }", "public void genField() {\n\t\tint mines = (int)(height * width * .1);\r\n\t\tRandom random = new Random();\r\n\t\tint x;\r\n\t\tint y;\r\n\t\tint i = 0;\r\n\t\twhile(i < mines) {\r\n\t\t\tx = random.nextInt(width);\r\n\t\t\ty = random.nextInt(height);\r\n\t\t\tif(cells.get(x).get(y).getValue() != -1) {\r\n\t\t\t\tcells.get(x).get(y).setValue(-1);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(x = 0; x < width; x++) {\r\n\t\t\tfor(y = 0; y < height; y++) {\r\n\t\t\t\tif(cells.get(x).get(y).getValue() != -1) {\r\n\t\t\t\t\tprocessCell(x, y); //generate cell number\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private float noise(Vector2 point) {\n\t\tVector2 bottomLeft = randomGrid[(int) point.x][(int) point.y];\n\t\tVector2 topLeft = randomGrid[(int) point.x][(int) point.y + 1];\n\t\tVector2 bottomRight = randomGrid[(int) point.x + 1][(int) point.y];\n\t\tVector2 topRight = randomGrid[(int) point.x + 1][(int) point.y + 1];\n\n\t\tfloat bottomLeftValue = bottomLeft.dot(point.cpy().scl(-1).add((int) point.x, (int) point.y));\n\t\tfloat topLeftValue = topLeft.dot(point.cpy().scl(-1).add((int) point.x, (int) point.y + 1));\n\t\tfloat bottomRightValue = bottomRight.dot(point.cpy().scl(-1).add((int) point.x + 1, (int) point.y));\n\t\tfloat topRightValue = topRight.dot(point.cpy().scl(-1).add((int) point.x + 1, (int) point.y + 1));\n\n\t\tfloat bottomValue = bottomLeftValue * (1 - point.x % 1) + bottomRightValue * (point.x % 1);\n\t\tfloat topValue = topLeftValue * (1 - point.x % 1) + topRightValue * (point.x % 1);\n\t\tfloat value = bottomValue * (1 - point.y % 1) + topValue * (point.y % 1);\n\n\t\treturn value;\n\t}", "public WaterWorld()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n populateWorld();\r\n }", "@Override\n \tpublic void globe(int M, int N) {\n\t\tvertices = new double[][] { { 1, 1, 1, 0, 0, 1 },\n\t\t\t\t{ 1, -1, 1, 0, 0, 1 }, { -1, -1, 1, 0, 0, 1 },\n\t\t\t\t{ -1, 1, 1, 0, 0, 1 }, { 1, 1, -1, 0, 0, -1 },\n\t\t\t\t{ 1, -1, -1, 0, 0, -1 }, { -1, -1, -1, 0, 0, -1 },\n\t\t\t\t{ -1, 1, -1, 0, 0, -1 }, { 1, 1, 1, 1, 0, 0 },\n\t\t\t\t{ 1, -1, 1, 1, 0, 0 }, { 1, -1, -1, 1, 0, 0 },\n\t\t\t\t{ 1, 1, -1, 1, 0, 0 }, { -1, 1, 1, -1, 0, 0 },\n\t\t\t\t{ -1, -1, 1, -1, 0, 0 }, { -1, -1, -1, -1, 0, 0 },\n\t\t\t\t{ -1, 1, -1, -1, 0, 0 }, { 1, 1, 1, 0, 1, 0 },\n\t\t\t\t{ -1, 1, 1, 0, 1, 0 }, { -1, 1, -1, 0, 1, 0 },\n\t\t\t\t{ 1, 1, -1, 0, 1, 0 }, { 1, -1, 1, 0, -1, 0 },\n\t\t\t\t{ -1, -1, 1, 0, -1, 0 }, { -1, -1, -1, 0, -1, 0 },\n\t\t\t\t{ 1, -1, -1, 0, -1, 0 }, };\n \t\tfaces = new int[6][4];\n \t\tfor (int i = 0; i < faces.length; i++) {\n \t\t\tfaces[i] = new int[] { i * 4, i * 4 + 1, i * 4 + 2, i * 4 + 3 };\n \t\t}\n \n \t\tthis.m.identity();\n \t}", "public static void main(String[] args) throws FileNotFoundException\n {\n File file = new File(System.getProperty(\"user.home\") + \"/Desktop\", \"lion.off\");\n Scanner s = new Scanner(file);\n s.nextLine(); // Skip first line of context\n\n // Create result file(mesh2C.off)\n try { fileManager.CreateResultFile(); }\n catch(IOException exc) { System.out.println(\"Error: \" + exc.getMessage()); }\n \n // Initializing PrintWriter instance for writing data to result file\n PrintWriter pw = new PrintWriter(System.getProperty(\"user.home\") + \"/Desktop/mesh2C.off\");\n pw.println(\"OFF\"); // Write first line to mesh2C.off\n\n // Get number of vertices which lion.off has\n String str_num_of_vertices = s.next();\n String str_num_of_faces = s.next();\n int num_of_vertices = Integer.parseInt(str_num_of_vertices);\n int num_of_faces = Integer.parseInt(str_num_of_faces);\n pw.println(Integer.toString(num_of_vertices + 8) + \" \" + Integer.toString(num_of_faces + 6) + s.nextLine());\n\n // Extract max and min value of each axis(X, Y, Z) separately\n double minX = 0, maxX = 0;\n double minY = 0, maxY = 0;\n double minZ = 0, maxZ = 0;\n\n for(int i = 0; i < num_of_vertices; i++)\n {\n double x = Double.parseDouble(s.next());\n if(x < minX) { minX = x; }\n if(x > maxX) { maxX = x; }\n double y = Double.parseDouble(s.next());\n if(y < minY) { minY = y; }\n if(y > maxY) { maxY = y; }\n double z = Double.parseDouble(s.next());\n if(z < minZ) { minZ = z; }\n if(z > maxZ) { maxZ = z; }\n\n String tmp = Double.toString(x) + \" \" + Double.toString(y) + \" \" + Double.toString(z);\n pw.println(tmp); \n }\n\n // Calculate and create String arrays for Vertices and faces\n String vStr[] = new String[8];\n String fStr[] = new String[6];\n\n vStr[0] = Double.toString(minX) + \" \" + Double.toString(maxY) + \" \" + Double.toString(maxZ);\n vStr[1] = Double.toString(minX) + \" \" + Double.toString(minY) + \" \" + Double.toString(maxZ);\n vStr[2] = Double.toString(maxX) + \" \" + Double.toString(minY) + \" \" + Double.toString(maxZ);\n vStr[3] = Double.toString(maxX) + \" \" + Double.toString(maxY) + \" \" + Double.toString(maxZ);\n vStr[4] = Double.toString(minX) + \" \" + Double.toString(maxY) + \" \" + Double.toString(minZ);\n vStr[5] = Double.toString(minX) + \" \" + Double.toString(minY) + \" \" + Double.toString(minZ);\n vStr[6] = Double.toString(maxX) + \" \" + Double.toString(minY) + \" \" + Double.toString(minZ);\n vStr[7] = Double.toString(maxX) + \" \" + Double.toString(maxY) + \" \" + Double.toString(minZ);\n\n for(int i = 0; i < 8; i++) { pw.println(vStr[i]); }\n \n // Calculate face list and write into result file\n String id_quad_1 = Integer.toString(num_of_vertices);\n String id_quad_2 = Integer.toString(num_of_vertices + 1);\n String id_quad_3 = Integer.toString(num_of_vertices + 2);\n String id_quad_4 = Integer.toString(num_of_vertices + 3);\n String id_quad_5 = Integer.toString(num_of_vertices + 4);\n String id_quad_6 = Integer.toString(num_of_vertices + 5);\n String id_quad_7 = Integer.toString(num_of_vertices + 6);\n String id_quad_8 = Integer.toString(num_of_vertices + 7);\n\n fStr[0] = \"4 \" + id_quad_1 + \" \" + id_quad_4 + \" \" + id_quad_3 + \" \" + id_quad_2;\n fStr[1] = \"4 \" + id_quad_5 + \" \" + id_quad_6 + \" \" + id_quad_7 + \" \" + id_quad_8;\n fStr[2] = \"4 \" + id_quad_1 + \" \" + id_quad_5 + \" \" + id_quad_8 + \" \" + id_quad_4;\n fStr[3] = \"4 \" + id_quad_3 + \" \" + id_quad_7 + \" \" + id_quad_6 + \" \" + id_quad_2;\n fStr[4] = \"4 \" + id_quad_2 + \" \" + id_quad_6 + \" \" + id_quad_5 + \" \" + id_quad_1;\n fStr[5] = \"4 \" + id_quad_4 + \" \" + id_quad_8 + \" \" + id_quad_7 + \" \" + id_quad_3;\n\n // Copy face data from original lion.off file to result file\n s.nextLine();\n for(int i = 0; i < num_of_faces; i++) { pw.println(s.nextLine()); }\n \n // Add new face data at the bottom of result file\n for(int i = 0; i < 6; i++) { pw.println(fStr[i]); }\n\n // Terminate filestream\n s.close();\n pw.close();\n }", "public void buildMap() {\n // CUBES ENGINE INITIALIZATION MOVED TO APPSTATE METHOD\n // Here we init cubes engine\n CubesTestAssets.registerBlocks();\n CubesSettings blockSettings = CubesTestAssets.getSettings(this.app);\n blockSettings.setBlockSize(5);\n //When blockSize = 5, global coords should be multiplied by 3 \n this.blockScale = 3.0f;\n this.halfBlockStep = 0.5f;\n \n testTerrain = new BlockTerrainControl(CubesTestAssets.getSettings(this.app), new Vector3Int(4, 1, 4));\n testNode = new Node();\n int wallHeight = 3;\n //testTerrain.setBlockArea(new Vector3Int(0, 0, 0), new Vector3Int(32, 1, 64), CubesTestAssets.BLOCK_STONE);\n this.testTerrain.setBlockArea( new Vector3Int(3,0,43), new Vector3Int(10,1,10), CubesTestAssets.BLOCK_STONE); // Zone 1 Floor\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,52), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(12,1,46), new Vector3Int(1,wallHeight,4)); // Door A\n \n this.testTerrain.setBlockArea( new Vector3Int(12,0,45), new Vector3Int(13,1,6), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(12,1,45), new Vector3Int(8,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,50), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea(new Vector3Int(19,0,42), new Vector3Int(6,1,3), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(19,1,42), new Vector3Int(1,wallHeight,3), CubesTestAssets.BLOCK_WOOD); //\n this.testTerrain.setBlockArea( new Vector3Int(24,1,42), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); //\n \n this.testTerrain.setBlockArea( new Vector3Int(15,0,26), new Vector3Int(18,1,17), CubesTestAssets.BLOCK_STONE); // Zone 3 Floor\n this.testTerrain.setBlockArea( new Vector3Int(15,1,42), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(32,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(20,1,42), new Vector3Int(4,wallHeight,1)); // Door B\n this.testTerrain.removeBlockArea( new Vector3Int(15,1,27), new Vector3Int(1,wallHeight,6)); // Door C\n \n this.testTerrain.setBlockArea( new Vector3Int(10,0,26), new Vector3Int(5,1,8), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(10,1,26), new Vector3Int(5,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,0,18), new Vector3Int(8,1,16), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(3,1,18), new Vector3Int(1,wallHeight,16), CubesTestAssets.BLOCK_WOOD); // East Wall\n this.testTerrain.setBlockArea( new Vector3Int(10,1,18), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,33), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n \n this.testTerrain.setBlockArea( new Vector3Int(1,0,5), new Vector3Int(26,1,14), CubesTestAssets.BLOCK_STONE); // Zone 5\n this.testTerrain.setBlockArea( new Vector3Int(1,1,18), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(26,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(4,1,18), new Vector3Int(6,wallHeight,1)); // Door E\n \n // Populate the world with spawn points\n this.initSpawnPoints();\n \n //Add voxel world/map to collisions\n testTerrain.addChunkListener(new BlockChunkListener(){\n @Override\n public void onSpatialUpdated(BlockChunkControl blockChunk){\n Geometry optimizedGeometry = blockChunk.getOptimizedGeometry_Opaque();\n phyTerrain = optimizedGeometry.getControl(RigidBodyControl.class);\n if(phyTerrain == null){\n phyTerrain = new RigidBodyControl(0);\n optimizedGeometry.addControl(phyTerrain);\n bulletAppState.getPhysicsSpace().add(phyTerrain);\n }\n phyTerrain.setCollisionShape(new MeshCollisionShape(optimizedGeometry.getMesh()));\n }\n });\n \n testNode.addControl(testTerrain);\n rootNode.attachChild(testNode);\n }", "public Tile[] generateTiles() {\n return null;\n }", "public double Generate(double[] par);", "private void setGeometryData() {\n // allocate vertices\n final int factorK = (innerRadius == 0 ? 1 : 2);\n final int verts = factorK * ((zSamples - 2) * (radialSamples) + 2); // rs + 1\n setVertexCoordsSize (verts);\n setNormalCoordsSize (verts);\n\n // generate geometry\n final double fInvRS = 1.0 / (radialSamples);\n final double fZFactor = 1.0 / (zSamples - 1); // 2.0 / (zSamples - 1);\n\n // Generate points on the unit circle to be used in computing the mesh\n // points on a sphere slice.\n final double[] afSin = new double[(radialSamples + 1)];\n final double[] afCos = new double[(radialSamples + 1)];\n for ( int iR = 0; iR < radialSamples; iR++ ) {\n final double fAngle = phi0 + dPhi * fInvRS * iR;\n afCos[iR] = Math.cos (fAngle);\n afSin[iR] = Math.sin (fAngle);\n }\n // afSin[radialSamples] = afSin[0];\n // afCos[radialSamples] = afCos[0];\n\n double radDiff = Math.abs (outerRadius - innerRadius);\n\n for ( int icnt = 0; icnt < 2; icnt++ ) {\n radius = (icnt == 0 ? innerRadius : outerRadius);\n if ( radius == 0.0 ) {\n continue;\n }\n double zNP = centerZ; // 0.0;\n double zSP = centerZ; // 0.0;\n\n // generate the sphere itself\n int i = 0;\n Vector3D tempVa;\n Vector3D kSliceCenter;\n\n for ( int iZ = 1; iZ < (zSamples - 1); iZ++ ) { // -1\n //final double fAFraction = 0.5 * Math.PI * (-1.0f + fZFactor * iZ); // in (-pi/2, pi/2)\n final double fAFraction = theta1 - iZ * fZFactor * dTheta;\n final double fZFraction = Math.sin (fAFraction); // in (-1,1)\n final double fZ = radius * fZFraction;\n\n // compute center of slice\n kSliceCenter = new Vector3D (\n center.getX (),\n center.getY (),\n center.getZ () + fZ\n );\n\n // compute radius of slice\n final double fSliceRadius = Math.sqrt (\n Math.abs (\n radius * radius - fZ * fZ\n )\n );\n\n // compute slice vertices with duplication at end point\n Vector3D kNormal;\n final int iSave = i;\n for ( int iR = 0; iR < radialSamples; iR++ ) {\n final double fRadialFraction = iR * fInvRS; // in [0,1)\n final Vector3D kRadial = new Vector3D (\n afCos[iR],\n afSin[iR],\n 0\n );\n tempVa = new Vector3D (\n fSliceRadius * kRadial.getX (),\n fSliceRadius * kRadial.getY (),\n fSliceRadius * kRadial.getZ ()\n );\n\n zNP = Math.\n max (kSliceCenter.getZ (), zNP);\n zSP = Math.\n min (kSliceCenter.getZ (), zSP);\n\n putVertex (\n (kSliceCenter.getX () + tempVa.getX ()),\n (kSliceCenter.getY () + tempVa.getY ()),\n (kSliceCenter.getZ () + tempVa.getZ ())\n );\n tempVa = getVertexCoord (i);\n\n kNormal = new Vector3D (\n tempVa.getX () - center.getX (),\n tempVa.getY () - center.getY (),\n tempVa.getZ () - center.getZ ()\n );\n double mag = Math.sqrt (\n Math.pow (kNormal.getX (), 2) +\n Math.pow (kNormal.getY (), 2) +\n Math.pow (kNormal.getZ (), 2)\n );\n kNormal = new Vector3D (\n kNormal.getX () / mag,\n kNormal.getY () / mag,\n kNormal.getZ () / mag\n );\n if ( !viewInside ) {\n putNormal (\n kNormal.getX (),\n kNormal.getY (),\n kNormal.getZ ()\n );\n } else {\n putNormal (\n -kNormal.getX (),\n -kNormal.getY (),\n -kNormal.getZ ()\n );\n }\n i++;\n }\n\n// setVertexCoord(i, getVertexCoord(iSave));\n// setNormalCoord(i, getNormalCoord(iSave));\n putVertex (getVertexCoord (iSave));\n putNormal (getNormalCoord (iSave));\n i++;\n }\n\n // south pole\n if ( theta0 == -0.5 * Math.PI ) {\n putVertex (new Vector3D (\n center.getX (),\n center.getY (),\n (center.getZ () - radius)\n ));\n setVertexCount (i + 1);\n if ( !viewInside ) {\n putNormal (new Vector3D (0, 0, -1));\n } else {\n putNormal (new Vector3D (0, 0, 1));\n }\n setNormalCount (i + 1);\n i++;\n }\n\n // north pole\n if ( theta1 == 0.5 * Math.PI ) {\n putVertex (new Vector3D (\n center.getX (),\n center.getY (),\n center.getZ () + radius\n ));\n setVertexCount (i + 1);\n if ( !viewInside ) {\n putNormal (new Vector3D (0, 0, 1));\n } else {\n putNormal (new Vector3D (0, 0, -1));\n }\n setNormalCount (i + 1);\n i++;\n }\n }\n\n }", "com.google.protobuf.ByteString\n getNoiseBytes();", "private void getTilePrefabs(){\n \n tilePrefabs = new Node[14];\n tilePrefabs[0] = (Node) animation_Scene.getChild(0);\n tilePrefabs[1] = (Node) animation_Scene.getChild(1);\n tilePrefabs[2] = (Node) animation_Scene.getChild(2);\n tilePrefabs[3] = (Node) animation_Scene.getChild(3);\n tilePrefabs[4] = (Node) animation_Scene.getChild(4);\n tilePrefabs[5] = (Node) animation_Scene.getChild(5);\n tilePrefabs[6] = (Node) animation_Scene.getChild(6);\n tilePrefabs[7] = (Node) animation_Scene.getChild(7);\n tilePrefabs[8] = (Node) animation_Scene.getChild(8);\n tilePrefabs[9] = (Node) animation_Scene.getChild(9);\n tilePrefabs[10] = (Node) animation_Scene.getChild(10);\n tilePrefabs[11] = (Node) animation_Scene.getChild(11);\n tilePrefabs[12] = (Node) animation_Scene.getChild(12);\n tilePrefabs[13] = (Node) animation_Scene.getChild(13);\n \n /* A colored lit cube. Needs light source! */ \n Material floorMat = new Material(assetManager, \"Common/MatDefs/Light/Lighting.j3md\"); \n floorMat.setBoolean(\"UseMaterialColors\", true); \n floorMat.setColor(\"Ambient\", new ColorRGBA(0.113f,0.104f, 0.128f,1));\n floorMat.setColor(\"Diffuse\", ColorRGBA.Green); \n \n Material wallMat = new Material(assetManager, \"Common/MatDefs/Light/Lighting.j3md\"); \n wallMat.setBoolean(\"UseMaterialColors\", true); \n wallMat.setColor(\"Ambient\", new ColorRGBA(0.359f,0.367f, 0.312f,1)); \n wallMat.setColor(\"Diffuse\", ColorRGBA.Green); \n \n tilePrefabs[0].setMaterial(floorMat);\n tilePrefabs[1].setMaterial(wallMat);\n tilePrefabs[2].setMaterial(wallMat);\n tilePrefabs[3].setMaterial(wallMat);\n tilePrefabs[4].setMaterial(floorMat);\n tilePrefabs[5].setMaterial(floorMat);\n tilePrefabs[6].setMaterial(floorMat);\n tilePrefabs[7].setMaterial(floorMat);\n tilePrefabs[8].setMaterial(wallMat);\n tilePrefabs[9].setMaterial(floorMat);\n tilePrefabs[10].setMaterial(floorMat);\n tilePrefabs[11].setMaterial(floorMat);\n tilePrefabs[12].setMaterial(wallMat);\n tilePrefabs[13].setMaterial(wallMat);\n }", "public Polygon getPolygon(double eyeDistance){\n //define the front two verticies of the currentTrack\n Point3D track_vertex0 = currentTrack.getVertex(0);\n Point3D track_vertex1 = currentTrack.getVertex(1);\n //use center point to define the center of the sphape\n int cubeSize = 3;\n\n Point3D front_up_left = new Point3D (centerPoint.x-cubeSize, centerPoint.y-cubeSize, centerPoint.z-cubeSize);\n Point3D front_down_left = new Point3D (centerPoint.x-cubeSize, centerPoint.y+cubeSize, centerPoint.z-cubeSize);\n Point3D front_down_right = new Point3D (centerPoint.x+cubeSize, centerPoint.y+cubeSize, centerPoint.z-cubeSize);\n Point3D front_up_right = new Point3D (centerPoint.x+cubeSize, centerPoint.y-cubeSize, centerPoint.z-cubeSize);\n\n Point3D back_up_left = new Point3D (front_up_left.x, front_up_left.y, centerPoint.z+cubeSize);\n Point3D back_down_left = new Point3D (front_down_left.x, front_down_left.y, centerPoint.z+cubeSize);\n Point3D back_down_right = new Point3D (front_down_right.x, front_down_right.y, centerPoint.z+cubeSize);\n Point3D back_up_right = new Point3D (front_up_right.x, front_up_right.y, centerPoint.z+cubeSize);\n\n //aranges verticies in the order they will be drawn\n Point3D[] cube_verticies = {front_up_left, front_down_left, front_down_right, front_up_right,\n front_up_left, back_up_left, back_up_right, front_up_right,\n front_down_right, back_down_right, back_up_right, back_down_right,\n back_down_left, back_up_left, back_down_left, front_down_left};\n\n int[] x_points = new int[16];\n int[] y_points = new int[16];\n //convert 3D points to 2D points\n for(int i=0;i<16;i++){\n if(cube_verticies[i].z <= 200){ //same fix as for the track positioning\n x_points[i] = (int) -cube_verticies[i].projectPoint3D(eyeDistance).getX();\n y_points[i] = (int) cube_verticies[i].projectPoint3D(eyeDistance).getY();\n }\n else{\n x_points[i] = (int) cube_verticies[i].projectPoint3D(eyeDistance).getX();\n y_points[i] = (int) cube_verticies[i].projectPoint3D(eyeDistance).getY();\n }\n }\n Polygon polygon = new Polygon(x_points, y_points, 16);\n return polygon;\n }", "protected void skybox() {\n Triple pos1, pos2, pos3, pos4, pos5, pos6, pos7, pos8, col1, col2, col3, col4;\n\n pos1 = new Triple(0, 0, 0);\n pos2 = new Triple(100, 0, 0);\n pos3 = new Triple(100, 0, 100);\n pos4 = new Triple(0, 0, 100);\n pos5 = new Triple(0, 100, 0);\n pos6 = new Triple(100, 100, 0);\n pos7 = new Triple(100, 100, 100);\n pos8 = new Triple(0, 100, 100);\n\n // Front Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 0, 0),\n new Vertex(pos2, .25, 0),\n new Vertex(pos3, .25, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos3, .25, 1),\n new Vertex(pos4, 0, 1),\n new Vertex(pos1, 0, 0),\n 21 ) );\n\n // Left Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 1, 0),\n new Vertex(pos5, .75, 0),\n new Vertex(pos8, .75, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos8, .75, 1),\n new Vertex(pos4, 1, 1),\n new Vertex(pos1, 1, 0),\n 21 ) );\n\n // Right Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos2, .25, 0),\n new Vertex(pos6, .5, 0),\n new Vertex(pos7, .5, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, .5, 1),\n new Vertex(pos3, .25, 1),\n new Vertex(pos2, .25, 0),\n 21 ) );\n\n // Back Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos5, .75, 0),\n new Vertex(pos6, .5, 0),\n new Vertex(pos7, .5, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, .5, 1),\n new Vertex(pos8, .75, 1),\n new Vertex(pos5, .75, 0),\n 21 ) );\n\n // Top Triangles\n// frozenSoups.addTri( new Triangle(new Vertex(pos4, 0, 0),\n// new Vertex(pos3, 0, 1),\n// new Vertex(pos7, 1, 1),\n// 20 ) );\n\n// frozenSoups.addTri( new Triangle(new Vertex(pos7, 0, 0),\n// new Vertex(pos8, 1, 0),\n// new Vertex(pos4, 1, 1),\n// 20 ) );\n }", "@Override\r\n\tpublic Maze3d generate(int x_axis, int y_axis, int z_axis, IPickCellStrategy pickStrategy) {\r\n\t\tMaze3d maze = new Maze3d(x_axis, y_axis, z_axis);\r\n\t\tPickStrategy = pickStrategy;\r\n\t\t//step 1\r\n\t\t//Let listOfCells be a list of cells, initially empty\r\n\t\tSystem.out.println(\"Starting Growing Tree Maze3d Generator. TotalX = \" + maze.getX_axis() + \"TotalY = \" + maze.getY_axis() + \"TotalZ = \" + maze.getZ_axis());\r\n\t\tList<Position> listOfCells = new ArrayList<Position>();\r\n\t\t\r\n\t\t//step 2\r\n\t\t//Add one cell to C, at random\r\n\t\tRandom rand = new Random(); \r\n\t\tint x = randOddNumber(maze.getX_axis());\r\n\t\tint y = randOddNumber(maze.getY_axis()); \r\n\t\tint z = randOddNumber(maze.getZ_axis()); \t\t\r\n\t\tlistOfCells.add(new Position(x,y,z));\r\n\t\tSystem.out.println(\"Random start = \" + listOfCells.get(0).toString());\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t//Repeat steps 3-4 until C is empty\r\n\t\twhile(listOfCells.isEmpty() == false){\r\n\t\t\t//step 3\r\n\t\t\t//Choose a cell c from C\r\n\t\t\tPosition chosenCell = PickStrategy.Pick(listOfCells);\r\n\t\t\t\r\n\t\t\t//step 4\r\n\t\t\t//If c has unvisited neighbors:\r\n\t\t\t//Choose an unvisited neighbor of cell c. Call it neighborCell\r\n\t\t\tList<Position> listOfUnvisitedNeighbors = maze.getUnvisitedNeighbors(chosenCell);\r\n\t\t\tif(listOfUnvisitedNeighbors.isEmpty() == false){\r\n\t\t\t\tPosition unvisitedNeighbor = listOfUnvisitedNeighbors.get(rand.nextInt(listOfUnvisitedNeighbors.size()));\r\n\t\t\t\tmaze.RemoveWallBetweenCells(chosenCell, unvisitedNeighbor);\r\n\t\t\t\tlistOfCells.add(unvisitedNeighbor);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tlistOfCells.remove(chosenCell);\r\n\t\t}\r\n\t\t\r\n\t\t//Generate entrance and exit\r\n\t\tboolean foundStart= false;\r\n\t\tboolean foundEnd= false;\r\n\t\tList<Position> temp = null;\r\n\t\t\r\n\t\tfor (int m = 1; m < maze.getX_axis()-1; m=m+2) {\r\n\t\t\tfor (int n = 1; n < maze.getY_axis()-1; n=n+2) {\r\n\t\t\t\tif (maze.getValueAt(m,n,1) == 0 && !foundStart)\r\n\t\t\t\t{\r\n\t\t\t\t\tmaze.setStartPosition(new Position(m,n,1));\r\n\t\t\t\t\tfoundStart = true;\r\n\t\t\t\t\tbreak;\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor (int m = 1; m < maze.getX_axis()-1; m=m+2) {\r\n\t\t\tfor (int n = 1; n < maze.getY_axis()-1; n=n+2) {\r\n\t\t\t\tif (maze.getValueAt(m,n,maze.getZ_axis()-2) == 0 && !foundEnd)\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tmaze.setGoalPosition(new Position(m,n,maze.getZ_axis()-2));\r\n\t\t\t\t\tfoundEnd = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn maze;\r\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic byte[][] generateBlockSections(World world, Random rand, int ChunkX, int ChunkZ, BiomeGrid biomeGrid) {\n\t\tbyte[][] chunk = new byte[world.getMaxHeight() / 16][];\n\n\t\t\n\n\t\tfor (int x = 0; x < 16; x++) {\n\t\t\tfor (int z = 0; z < 16; z++) {\n\t\t\t\t// the seas\n\t\t\t\tfor (int y = 0; y < 35; y++) {\n\t\t\t\t\tif (getBlock(x, y, z, chunk) == Material.AIR.getId()) {\n\t\t\t\t\t\tsetBlock(x, y, z, chunk, Material.STATIONARY_WATER);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// bottom\n\t\t\t\tfor (int y = 0; y < 2; y++) {\n\t\t\t\t\tif (getBlock(x, y, z, chunk) == Material.STATIONARY_WATER.getId()) {\n\t\t\t\t\t\tsetBlock(x, y, z, chunk, Material.SAND);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsetBlock(x, 0, z, chunk, Material.BEDROCK);\n\t\t\t}\n\t\t}\n\t\treturn chunk;\n\t}", "private void generateMap(){\n int[] blockStepX = {X_STEP, 0, -X_STEP, -X_STEP, 0, X_STEP};\n int[] blockStepY = {Y_STEP_ONE, Y_STEP_TWO, Y_STEP_ONE, -Y_STEP_ONE, -Y_STEP_TWO, -Y_STEP_ONE};\n int blockSpecialValue = 0;\n int cellSpecial = 0;\n\n mapCells[origin.x/10][origin.y/10] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n cellGrid[0][0][0] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n for (int distanceFromOrigin = 0; distanceFromOrigin < config.getSizeOfMap();\n distanceFromOrigin++){\n\n int[] blockXVals = {origin.x,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x,\n origin.x - X_STEP * distanceFromOrigin,\n origin.x - X_STEP * distanceFromOrigin};\n\n int[] blockYVals = {origin.y - Y_STEP_TWO * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_TWO * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin};\n\n blockSpecialValue = getRandomNumber(distanceFromOrigin, 0, 0);\n\n for (int block = 0; block < NUMBER_OF_BLOCKS; block ++){\n\n int blockXOrdinal = blockXVals[block];\n int blockYOrdinal = blockYVals[block];\n\n for (int blockSize = 0; blockSize < distanceFromOrigin; blockSize++){\n if(blockSpecialValue == blockSize){\n cellSpecial = getRandomNumber(2, 1, 1);\n }else {\n cellSpecial = 0;\n }\n cellGrid [distanceFromOrigin][block+1][blockSize+1] = makeNewCell(\n new CellPosition(distanceFromOrigin,block+1, blockSize+1),\n new Point(blockXOrdinal + blockStepX[block] * (blockSize + 1),\n blockYOrdinal + blockStepY[block] * (blockSize + 1)), cellSpecial);\n }\n }\n }\n }", "private Group genClearAndGradedMesh(String runwayId, Integer height){\n Dimension dim = controller.getRunwayDim(runwayId);\n Group meshGroup = new Group();\n //Create now TriangleMeshes for the top and side meshes.\n TriangleMesh meshTop = new TriangleMesh();\n TriangleMesh meshSide = new TriangleMesh();\n\n //Add all the vertexes for the top of the mesh.\n meshTop.getPoints().addAll(\n -75, -height/2, dim.width/2 +60,\n 75, -height/2, dim.width/2 +60,\n -75, -height/2, -dim.width/2 -60,\n 75, -height/2, -dim.width/2 -60,\n -75, -height/2, -dim.width/2 +150,\n -105, -height/2, -dim.width/2 +300,\n -105, -height/2, dim.width/2 -300,\n -75, -height/2, dim.width/2 -150,\n 75, -height/2, -dim.width/2 +150,\n 105, -height/2, -dim.width/2 +300,\n 105, -height/2, dim.width/2 -300,\n 75, -height/2, dim.width/2 -150);\n\n //Define all the faces on the top of the shape.\n meshTop.getFaces().addAll(\n 0,0,3,3,1,1, 0,0,2,2,3,3,\n 6,6,5,5,4,4, 6,6,4,4,7,7,\n 11,11,8,8,9,9, 11,11,9,9,10,10);\n\n //Since the object will not be UV unwrapped, we don't worry about the texture coordinates.\n for(int i =0; i < meshTop.getPoints().size()/3; i++){\n meshTop.getTexCoords().addAll(0,0);\n }\n //Create a MeshView for the mesh, set the material, and add it to the mesh group.\n MeshView topMeshView = new MeshView(meshTop);\n topMeshView.setMaterial(new PhongMaterial(convertToJFXColour(CLEAR_AND_GRADED_COLOUR)));\n meshGroup.getChildren().add(topMeshView);\n\n //Add all the vertices in topMesh to sideMesh.\n meshSide.getPoints().addAll(meshTop.getPoints());\n //Iterate over all the vertices and add a copy which is mirrored in the x=0, y=0 plane.\n for (int i = 0; i < meshTop.getPoints().size()/3; i++){\n meshSide.getPoints().addAll(meshTop.getPoints().get(i*3));\n meshSide.getPoints().addAll(-meshTop.getPoints().get(i*3+1));\n meshSide.getPoints().addAll(meshTop.getPoints().get(i*3+2));\n }\n\n //Define all the faces to connect the top and bottom faces.\n meshSide.getFaces().addAll(\n 0,0,13,13,12,12, 0,0,1,1,13,13,\n 2,2,14,14,15,15, 2,2,15,15,3,3,\n 6,6,18,18,17,17, 6,6,17,17,5,5,\n 9,9,21,21,22,22, 9,9,22,22,10,10,\n 0,0,12,12,19,19, 0,0,19,19,7,7,\n 11,11,23,23,13,13, 11,11,13,13,1,1,\n 4,4,16,16,14,14, 4,4,14,14,2,2,\n 3,3,15,15,20,20, 3,3,20,20,8,8,\n 7,7,19,19,18,18, 7,7,18,18,6,6,\n 10,10,22,22,23,23, 10,10,23,23,11,11,\n 5,5,17,17,16,16, 5,5,16,16,4,4,\n 8,8,20,20,21,21, 8,8,21,21,9,9\n );\n\n //Again, since the object will not be UV unwrapped, we don't worry about the texture coordinates.\n for(int i =0; i < meshSide.getPoints().size()/3; i++){\n meshSide.getTexCoords().addAll(0,0);\n }\n //Create a MeshView for the mesh, set the material, and add it to the mesh group.\n MeshView sideMeshView = new MeshView(meshSide);\n sideMeshView.setMaterial(new PhongMaterial(convertToJFXColour(CLEAR_AND_GRADED_COLOUR)));\n meshGroup.getChildren().add(sideMeshView);\n\n //return the group containing both meshes.\n return meshGroup;\n }", "godot.wire.Wire.Vector3 getNormal();", "@Override\n\tpublic IChunkProvider createChunkGenerator()\n\t{\n\t\treturn new ChunkProviderHeaven(worldObj, worldObj.getSeed(), true);\n\t}", "public void populateNoiseArray(double[] p_76308_1_, double p_76308_2_, double p_76308_4_, double p_76308_6_, int p_76308_8_, int p_76308_9_, int p_76308_10_, double p_76308_11_, double p_76308_13_, double p_76308_15_, double p_76308_17_) {\n/* 81 */ if (p_76308_9_ == 1) {\n/* */ \n/* 83 */ boolean var64 = false;\n/* 84 */ boolean var65 = false;\n/* 85 */ boolean var21 = false;\n/* 86 */ boolean var68 = false;\n/* 87 */ double var70 = 0.0D;\n/* 88 */ double var73 = 0.0D;\n/* 89 */ int var75 = 0;\n/* 90 */ double var77 = 1.0D / p_76308_17_;\n/* */ \n/* 92 */ for (int var30 = 0; var30 < p_76308_8_; var30++) {\n/* */ \n/* 94 */ double var31 = p_76308_2_ + var30 * p_76308_11_ + this.xCoord;\n/* 95 */ int var78 = (int)var31;\n/* */ \n/* 97 */ if (var31 < var78)\n/* */ {\n/* 99 */ var78--;\n/* */ }\n/* */ \n/* 102 */ int var34 = var78 & 0xFF;\n/* 103 */ var31 -= var78;\n/* 104 */ double var35 = var31 * var31 * var31 * (var31 * (var31 * 6.0D - 15.0D) + 10.0D);\n/* */ \n/* 106 */ for (int var37 = 0; var37 < p_76308_10_; var37++)\n/* */ {\n/* 108 */ double var38 = p_76308_6_ + var37 * p_76308_15_ + this.zCoord;\n/* 109 */ int var40 = (int)var38;\n/* */ \n/* 111 */ if (var38 < var40)\n/* */ {\n/* 113 */ var40--;\n/* */ }\n/* */ \n/* 116 */ int var41 = var40 & 0xFF;\n/* 117 */ var38 -= var40;\n/* 118 */ double var42 = var38 * var38 * var38 * (var38 * (var38 * 6.0D - 15.0D) + 10.0D);\n/* 119 */ int var19 = this.permutations[var34] + 0;\n/* 120 */ int var66 = this.permutations[var19] + var41;\n/* 121 */ int var67 = this.permutations[var34 + 1] + 0;\n/* 122 */ int var22 = this.permutations[var67] + var41;\n/* 123 */ var70 = lerp(var35, func_76309_a(this.permutations[var66], var31, var38), grad(this.permutations[var22], var31 - 1.0D, 0.0D, var38));\n/* 124 */ var73 = lerp(var35, grad(this.permutations[var66 + 1], var31, 0.0D, var38 - 1.0D), grad(this.permutations[var22 + 1], var31 - 1.0D, 0.0D, var38 - 1.0D));\n/* 125 */ double var79 = lerp(var42, var70, var73);\n/* 126 */ int var10001 = var75++;\n/* 127 */ p_76308_1_[var10001] = p_76308_1_[var10001] + var79 * var77;\n/* */ }\n/* */ \n/* */ } \n/* */ } else {\n/* */ \n/* 133 */ int var19 = 0;\n/* 134 */ double var20 = 1.0D / p_76308_17_;\n/* 135 */ int var22 = -1;\n/* 136 */ boolean var23 = false;\n/* 137 */ boolean var24 = false;\n/* 138 */ boolean var25 = false;\n/* 139 */ boolean var26 = false;\n/* 140 */ boolean var27 = false;\n/* 141 */ boolean var28 = false;\n/* 142 */ double var29 = 0.0D;\n/* 143 */ double var31 = 0.0D;\n/* 144 */ double var33 = 0.0D;\n/* 145 */ double var35 = 0.0D;\n/* */ \n/* 147 */ for (int var37 = 0; var37 < p_76308_8_; var37++) {\n/* */ \n/* 149 */ double var38 = p_76308_2_ + var37 * p_76308_11_ + this.xCoord;\n/* 150 */ int var40 = (int)var38;\n/* */ \n/* 152 */ if (var38 < var40)\n/* */ {\n/* 154 */ var40--;\n/* */ }\n/* */ \n/* 157 */ int var41 = var40 & 0xFF;\n/* 158 */ var38 -= var40;\n/* 159 */ double var42 = var38 * var38 * var38 * (var38 * (var38 * 6.0D - 15.0D) + 10.0D);\n/* */ \n/* 161 */ for (int var44 = 0; var44 < p_76308_10_; var44++) {\n/* */ \n/* 163 */ double var45 = p_76308_6_ + var44 * p_76308_15_ + this.zCoord;\n/* 164 */ int var47 = (int)var45;\n/* */ \n/* 166 */ if (var45 < var47)\n/* */ {\n/* 168 */ var47--;\n/* */ }\n/* */ \n/* 171 */ int var48 = var47 & 0xFF;\n/* 172 */ var45 -= var47;\n/* 173 */ double var49 = var45 * var45 * var45 * (var45 * (var45 * 6.0D - 15.0D) + 10.0D);\n/* */ \n/* 175 */ for (int var51 = 0; var51 < p_76308_9_; var51++) {\n/* */ \n/* 177 */ double var52 = p_76308_4_ + var51 * p_76308_13_ + this.yCoord;\n/* 178 */ int var54 = (int)var52;\n/* */ \n/* 180 */ if (var52 < var54)\n/* */ {\n/* 182 */ var54--;\n/* */ }\n/* */ \n/* 185 */ int var55 = var54 & 0xFF;\n/* 186 */ var52 -= var54;\n/* 187 */ double var56 = var52 * var52 * var52 * (var52 * (var52 * 6.0D - 15.0D) + 10.0D);\n/* */ \n/* 189 */ if (var51 == 0 || var55 != var22) {\n/* */ \n/* 191 */ var22 = var55;\n/* 192 */ int var69 = this.permutations[var41] + var55;\n/* 193 */ int var71 = this.permutations[var69] + var48;\n/* 194 */ int var72 = this.permutations[var69 + 1] + var48;\n/* 195 */ int var74 = this.permutations[var41 + 1] + var55;\n/* 196 */ int var75 = this.permutations[var74] + var48;\n/* 197 */ int var76 = this.permutations[var74 + 1] + var48;\n/* 198 */ var29 = lerp(var42, grad(this.permutations[var71], var38, var52, var45), grad(this.permutations[var75], var38 - 1.0D, var52, var45));\n/* 199 */ var31 = lerp(var42, grad(this.permutations[var72], var38, var52 - 1.0D, var45), grad(this.permutations[var76], var38 - 1.0D, var52 - 1.0D, var45));\n/* 200 */ var33 = lerp(var42, grad(this.permutations[var71 + 1], var38, var52, var45 - 1.0D), grad(this.permutations[var75 + 1], var38 - 1.0D, var52, var45 - 1.0D));\n/* 201 */ var35 = lerp(var42, grad(this.permutations[var72 + 1], var38, var52 - 1.0D, var45 - 1.0D), grad(this.permutations[var76 + 1], var38 - 1.0D, var52 - 1.0D, var45 - 1.0D));\n/* */ } \n/* */ \n/* 204 */ double var58 = lerp(var56, var29, var31);\n/* 205 */ double var60 = lerp(var56, var33, var35);\n/* 206 */ double var62 = lerp(var49, var58, var60);\n/* 207 */ int var10001 = var19++;\n/* 208 */ p_76308_1_[var10001] = p_76308_1_[var10001] + var62 * var20;\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ }", "public double getYNoise(double x, double z)\n {\n double var11 = 0.5D * (square3 - 1.0D);\n double var13 = (x + z) * var11;\n int var15 = fastFloor(x + var13);\n int var16 = fastFloor(z + var13);\n double var17 = (3.0D - square3) / 6.0D;\n double var19 = (double)(var15 + var16) * var17;\n double var21 = (double)var15 - var19;\n double var23 = (double)var16 - var19;\n double var25 = x - var21;\n double var27 = z - var23;\n byte var29;\n byte var30;\n\n if (var25 > var27)\n {\n var29 = 1;\n var30 = 0;\n }\n else\n {\n var29 = 0;\n var30 = 1;\n }\n\n double var31 = var25 - (double)var29 + var17;\n double var33 = var27 - (double)var30 + var17;\n double var35 = var25 - 1.0D + 2.0D * var17;\n double var37 = var27 - 1.0D + 2.0D * var17;\n int var39 = var15 & 255;\n int var40 = var16 & 255;\n int var41 = this.permutationTable[var39 + this.permutationTable[var40]] % 12;\n int var42 = this.permutationTable[var39 + var29 + this.permutationTable[var40 + var30]] % 12;\n int var43 = this.permutationTable[var39 + 1 + this.permutationTable[var40 + 1]] % 12;\n double var44 = 0.5D - var25 * var25 - var27 * var27;\n double var5;\n\n if (var44 < 0.0D)\n {\n var5 = 0.0D;\n }\n else\n {\n var44 *= var44;\n var5 = var44 * var44 * dot(grad3[var41], var25, var27);\n }\n\n double var46 = 0.5D - var31 * var31 - var33 * var33;\n double var7;\n\n if (var46 < 0.0D)\n {\n var7 = 0.0D;\n }\n else\n {\n var46 *= var46;\n var7 = var46 * var46 * dot(grad3[var42], var31, var33);\n }\n\n double var48 = 0.5D - var35 * var35 - var37 * var37;\n double var9;\n\n if (var48 < 0.0D)\n {\n var9 = 0.0D;\n }\n else\n {\n var48 *= var48;\n var9 = var48 * var48 * dot(grad3[var43], var35, var37);\n }\n\n return 70.0D * (var5 + var7 + var9);\n }", "public abstract Array<Mesh> toMeshesDirect(float depth);", "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 static void main(String args[]) {\n\n\tint nx = 200;\n int ny = 300;\n\n\tColorSurfaceData data = new SmoothData3D(nx,ny);\n\n double minX = -2;\n double minY = -3;\n double maxX = 2;\n double maxY = 3; \n\tdouble stepX = (maxX - minX)/(nx-1);\n double stepY = (maxY - minY)/(ny-1); \n\n\tdata.setMinMaxX(minX,maxX);\n\tdata.setMinMaxY(minY,maxY);\n\n\tdouble x,y,v;\n\n\tfor(int i = 0; i < nx; i++){\n\tfor(int j = 0; j < ny; j++){\n\t x = minX + i*stepX;\n\t y = minY + j*stepY;\n v = Math.exp(-(x*x+y*y));\n data.setValue(i,j,v);\n //data.addValue(x,y,v);\n\t}}\n\n\tdouble max_dev = 0;\n\tint i_max = 0, j_max = 0;\n\n\tfor(int i = 6; i < nx-6; i++){\n\tfor(int j = 6; j < ny-6; j++){\n\t x = i*stepX + minX + 0.5*stepX;\n\t y = j*stepY + minY + 0.5*stepY;\n v = Math.abs(Math.exp(-(x*x+y*y)) - data.getValue(x,y))/Math.exp(-(x*x+y*y));\n if(max_dev < v) {\n max_dev = v;\n\t i_max = i;\n\t j_max = j;\n\t }\n\t}} \n\n\tSystem.out.println(\"max dev [%] = \"+max_dev*100);\n\n\tdouble v_calc = 0;\n\tx = i_max*stepX + minX + 0.5*stepX;\n\ty = j_max*stepY + minY + 0.5*stepY; \n\tv = Math.exp(-(x*x+y*y));\n\tv_calc = data.getValue(x,y);\n \tSystem.out.println(\"stepX = \"+stepX);\n \tSystem.out.println(\"stepY = \"+stepY);\n \tSystem.out.println(\"i_max = \"+i_max);\n \tSystem.out.println(\"j_max = \"+j_max);\n \tSystem.out.println(\"x = \"+x);\n \tSystem.out.println(\"y = \"+y);\n \tSystem.out.println(\"v = \"+v);\n \tSystem.out.println(\"v_calc = \"+v_calc); \n\n }", "private void mkMesh()\n\t{\n\t\t/* this initialises the the two FloatBuffer objects */\n\t\n\t\tfloat vertices[] = {\n\t\t\t-0.5f, -0.5f, 0.0f,\t\t// V1 - bottom left\n\t\t\t-0.5f, 0.5f, 0.0f,\t\t// V2 - top left\n\t\t\t 0.5f, -0.5f, 0.0f,\t\t// V3 - bottom right\n\t\t\t 0.5f, 0.5f, 0.0f\t\t\t// V4 - top right\n\t\t\t};\n\t\tfloat texture[] = { \t\t\n\t\t\t// Mapping coordinates for the vertices\n\t\t\t0.0f, 1.0f,\t\t// top left\t\t(V2)\n\t\t\t0.0f, 0.0f,\t\t// bottom left\t(V1)\n\t\t\t1.0f, 1.0f,\t\t// top right\t(V4)\n\t\t\t1.0f, 0.0f\t\t// bottom right\t(V3)\n\t\t\t};\n\t\t/* cache the number of floats in the vertices data */\n\t\tvertexCount = vertices.length;\n\t\t\n\t\t// a float has 4 bytes so we allocate for each coordinate 4 bytes\n\t\tByteBuffer byteBuffer = ByteBuffer.allocateDirect(vertices.length * 4);\n\t\tbyteBuffer.order(ByteOrder.nativeOrder());\n\t\t\n\t\t// allocates the memory from the byte buffer\n\t\tvertexBuffer = byteBuffer.asFloatBuffer();\n\t\t\n\t\t// fill the vertexBuffer with the vertices\n\t\tvertexBuffer.put(vertices);\n\t\t\n\t\t// set the cursor position to the beginning of the buffer\n\t\tvertexBuffer.position(0);\n\t\t\n\t\tbyteBuffer = ByteBuffer.allocateDirect(texture.length * 4);\n\t\tbyteBuffer.order(ByteOrder.nativeOrder());\n\t\ttextureBuffer = byteBuffer.asFloatBuffer();\n\t\ttextureBuffer.put(texture);\n\t\ttextureBuffer.position(0);\n\t}", "private void createWVertices() {\n\t\tfor (int i = 0; i < this.numWVertices; i++) {\n\t\t\tvertices.add(new Vertex('w', this.countWID++));\n\t\t}\n\t}", "@Test\n public void testTerrainDimension() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n assertEquals(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.TERRAIN_HEGHT / TerrainFactoryImpl.TERRAIN_ROWS);\n assertEquals(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.TERRAIN_WIDTH / TerrainFactoryImpl.TERRAIN_COLUMNS);\n level.levelUp(); \n });\n }", "public WorldScene makeScene() {\n WorldScene w = new WorldScene(width * scale, height * scale);\n for (Vertex v : vertices) {\n Color color = generateColor(v);\n w.placeImageXY(new RectangleImage(scale, scale, OutlineMode.SOLID, color),\n (v.x * scale) + (scale * 1 / 2), (v.y * scale) + (scale * 1 / 2));\n }\n for (Edge e : walls) {\n if (e.to.x == e.from.x) {\n w.placeImageXY(\n new RectangleImage(scale, scale / 10, OutlineMode.SOLID, Color.black),\n (e.to.x * scale) + (scale * 1 / 2),\n ((e.to.y + e.from.y) * scale / 2) + (scale * 1 / 2));\n }\n else {\n w.placeImageXY(\n new RectangleImage(scale / 10, scale, OutlineMode.SOLID, Color.black),\n ((e.to.x + e.from.x) * scale / 2) + (scale * 1 / 2),\n (e.to.y * scale) + (scale * 1 / 2));\n }\n }\n return w;\n }", "public double[] getNormal(int index){\n Node3D node = mesh.nodes.get(index);\n return calculateMeanNormal(node, node_to_triangle.get(node));\n }", "public Point4 getNormal();", "private void calculateNormals() {\n int i;\n float[] l_vect1 = new float[3];\n float[] l_vect2 = new float[3];\n float[] l_vect3 = new float[3];\n float[] l_vect_b1;\n float[] l_vect_b2;\n float[] l_normal;\n\n normals = new float[faces.length*3];\n int normalIndex = 0;\n\n for (i=0; i<faces.length; i=i+3) {\n\n l_vect1[0] = vertices[faces[i] * 3];\n l_vect1[1] = vertices[faces[i] * 3 + 1];\n l_vect1[2] = vertices[faces[i] * 3 + 2];\n l_vect2[0] = vertices[faces[(i + 1)] * 3];\n l_vect2[1] = vertices[faces[(i + 1)] * 3 + 1];\n l_vect2[2] = vertices[faces[(i + 1)] * 3 + 2];\n l_vect3[0] = vertices[faces[(i + 2)] * 3];\n l_vect3[1] = vertices[faces[(i + 2)] * 3 + 1];\n l_vect3[2] = vertices[faces[(i + 2)] * 3 + 2];\n\n l_vect_b1 = VectorCreate(l_vect1, l_vect2);\n l_vect_b2 = VectorCreate(l_vect1, l_vect3);\n\n l_normal = VectorDotProduct(l_vect_b1, l_vect_b2);\n l_normal = VectorNormalize(l_normal);\n\n normals[normalIndex++]+=l_normal[0];\n normals[normalIndex++]+=l_normal[1];\n normals[normalIndex++]+=l_normal[2];\n normals[normalIndex++]+=l_normal[0];\n normals[normalIndex++]+=l_normal[1];\n normals[normalIndex++]+=l_normal[2];\n normals[normalIndex++]+=l_normal[0];\n normals[normalIndex++]+=l_normal[1];\n normals[normalIndex++]+=l_normal[2];\n }\n }", "static int[] LevelGen() {\t\t\n\t\tSystem.out.println(\"Dungeon size integer: \" + dungeonsize);\n\t\tint lvldata[];\t\t\n\t\tint enemychance;\n\t\tint spawnthreshold = 70;\n\t\tint eventtype;\n\t\tlvldata = new int[dungeonsize];\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Enemy spawn threshold: \" + spawnthreshold);\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i = 0; i < dungeonsize; i++) {\n\t\t\tlvldata[i] = (int) ((Math.random() * 4) + 1);\t// Sets the dungeon type\n\t\t\tlvldata[i] *= 100;\t// Adjusts the value\n\t\t\tenemychance = (int) (Math.random() * 101);\n\t\t\tlvldata[i] += (int) (Math.random() * 6);\n\t\t\t\n\t\t\tif (enemychance > 40) {\n\t\t\t\tlvldata[i] += 10;\n\t\t\t}\n\t\t\tif (enemychance > 60) {\n\t\t\t\tlvldata[i] += 20;\n\t\t\t}\n\t\t\tif (enemychance > 90) {\n\t\t\t\tlvldata[i] += 30;\n\t\t\t}\n\t\t\tif (Engine.devmode == true) {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"--Loop \" + (i + 1) + \"--\");\n\t\t\t\tSystem.out.print(\"Leveldata: \" + lvldata[i] +\", \");\t\t\t\n\t\t\t\tSystem.out.print(\"Enemychance: \" + enemychance);\n\t\t\t\tSystem.out.print(\", Roomtype: \" + lvldata[i] / 100);\n\t\t\t\tSystem.out.print(\", Enemylocation: \" + (lvldata[i]/10) % 10);\n\t\t\t\tSystem.out.print(\", Eventtype: \" + (lvldata[i] % 100) % 10);\n\t\t\t\tSystem.out.println(\"\tLevelGen cycle \" + i + \" passed\");\n\t\t\t}\n\t\t}\n\t\tlvldata[0] = 000;\t// Sets the first and the last as hubs\n\t\tlvldata[(dungeonsize-1)] = 000;\t\t\n\t\treturn lvldata;\n\t}", "@Override\n @Nonnull\n public EndChunkGenerator createChunkGenerator() {\n return new EndChunkGenerator(world, new DungeonBiomeProvider(), new EndGenerationSettings());\n }", "private void initiateGameTerrain(GameTerrain terrainModel){\r\n\t\t//Reference the raw model from the entity model\r\n\t\tUntexturedModel untexturedModel = terrainModel.getUntexturedModel();\r\n\t\t//Bind the model's VAO\r\n\t\tGL30.glBindVertexArray(untexturedModel.getVertexArrayObjectReferenceID());\r\n\t\t//Enable the vertex position attribute from VAO\r\n\t\tGL20.glEnableVertexAttribArray(0);\r\n\t\t//Enable the texture coordinate attribute from VAO\r\n\t\tGL20.glEnableVertexAttribArray(1);\r\n\t\t//Enable the normal vector attribute from VAO\r\n\t\tGL20.glEnableVertexAttribArray(2);\r\n\t\t//Attach the textures\r\n\t\tattachTextures(terrainModel);\r\n\t\t//Start light shading\r\n\t\tgameTerrainShader.loadLightVariables(1,0);\r\n\t}", "@Test\r\n public void testGeneratePolygonMeshBuilder()\r\n {\r\n EasyMockSupport support = new EasyMockSupport();\r\n\r\n MapManager mapManager = support.createMock(MapManager.class);\r\n\r\n support.replayAll();\r\n\r\n EllipsoidGeometryBuilder<GeographicPosition> builder = new EllipsoidGeometryBuilder<>(mapManager);\r\n builder.setAxisAMeters(EllipsoidTestUtils.AXIS_A);\r\n builder.setAxisBMeters(EllipsoidTestUtils.AXIS_B);\r\n builder.setAxisCMeters(EllipsoidTestUtils.AXIS_C);\r\n builder.setQuality(EllipsoidTestUtils.QUALITY);\r\n builder.setColor(Color.RED);\r\n\r\n List<List<Position>> expectedPositions = EllipsoidTestUtils.getExpectedPositions();\r\n List<Position> combinedExpected = New.list();\r\n for (List<Position> strip : expectedPositions)\r\n {\r\n combinedExpected.addAll(strip);\r\n }\r\n\r\n Builder<Position> meshBuilder = builder.generatePolygonMeshBuilder();\r\n List<? extends Color> colors = meshBuilder.getColors();\r\n assertEquals(combinedExpected.size(), colors.size());\r\n for (Color color : colors)\r\n {\r\n assertEquals(Color.RED, color);\r\n }\r\n\r\n assertEquals(AbstractRenderer.TRIANGLE_STRIP_VERTEX_COUNT, meshBuilder.getPolygonVertexCount());\r\n\r\n List<? extends Position> positions = meshBuilder.getPositions();\r\n assertEquals(combinedExpected.size(), positions.size());\r\n int index = 0;\r\n for (Position position : positions)\r\n {\r\n assertEquals(combinedExpected.get(index).asVector3d(), position.asVector3d());\r\n index++;\r\n }\r\n\r\n List<Vector3d> expectedNormals = EllipsoidTestUtils.calculateExpectedNormals(expectedPositions);\r\n assertEquals(combinedExpected.size(), expectedNormals.size());\r\n List<? extends Vector3d> actualNormals = meshBuilder.getNormals();\r\n assertEquals(combinedExpected.size(), actualNormals.size());\r\n assertEquals(expectedNormals, actualNormals);\r\n\r\n support.verifyAll();\r\n }", "public List<ga_Triangle2D> tesselatePolygon(ga_Polygon poly);" ]
[ "0.6210956", "0.55430377", "0.54928935", "0.54500216", "0.54392534", "0.54248834", "0.53713477", "0.53084785", "0.52264327", "0.51902586", "0.5172634", "0.51541555", "0.5132586", "0.5066451", "0.5065469", "0.50323254", "0.5020745", "0.49778944", "0.4966977", "0.4964077", "0.49570176", "0.4928539", "0.49135157", "0.48946217", "0.4859376", "0.48534083", "0.4852996", "0.48259825", "0.47864753", "0.47739148", "0.475592", "0.47309285", "0.47290665", "0.4719788", "0.47021088", "0.4691559", "0.46688822", "0.4664436", "0.46240684", "0.46154943", "0.46080935", "0.46014577", "0.45993456", "0.45963237", "0.45912474", "0.4589602", "0.45800856", "0.4575148", "0.45749867", "0.45724705", "0.4571268", "0.45588934", "0.4556647", "0.4555795", "0.45261103", "0.4523704", "0.45183122", "0.45153254", "0.4503623", "0.45009002", "0.44826633", "0.44782636", "0.44610345", "0.44597256", "0.44539145", "0.4453901", "0.44465423", "0.44433615", "0.44430274", "0.44272894", "0.44266737", "0.44249284", "0.44198498", "0.4410153", "0.4409407", "0.4403841", "0.43989924", "0.439808", "0.43947747", "0.43936664", "0.43888932", "0.43797654", "0.43777862", "0.4376157", "0.437314", "0.43720013", "0.43712786", "0.43663108", "0.4357111", "0.4354097", "0.43482554", "0.43481392", "0.43392396", "0.4334243", "0.4331482", "0.43249106", "0.4320451", "0.43176907", "0.4316689", "0.43026248" ]
0.7498125
0
Called when a Block is rightclicked with this Item
@Nonnull @Override public EnumActionResult onItemUse(@Nonnull EntityPlayer player, World world, @Nonnull BlockPos pos, EnumHand hand, @Nonnull EnumFacing facing, float hitX, float hitY, float hitZ) { // don't place the slab if unable to edit ItemStack stack = player.getHeldItem(hand); if(stack.getCount() != 0 && player.canPlayerEdit(pos.offset(facing), facing, stack)) { // try placing the slab at the current position // note that this requires the slab to be extended on the side the block was clicked if(tryPlace(player, stack, world, pos, facing)) { return EnumActionResult.SUCCESS; } // otherwise. try and place it in the block in front else if(this.tryPlace(player, stack, world, pos.offset(facing), null)) { return EnumActionResult.SUCCESS; } return super.onItemUse(player, world, pos, hand, facing, hitX, hitY, hitZ); } else { return EnumActionResult.FAIL; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onRightClick() {\n\t\t\t}", "@Override\r\n\tpublic void rightClick(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void rightClick(MouseEvent e) {\n\n\t}", "@Override\r\n protected void handleMouseClick(Slot slotIn, int slotId, int clickedButton, int clickType){\r\n\t\tthis.keyOrButtonClicked = true;\r\n clickType = slotId == -999 && clickType == 0 ? 4 : clickType;\r\n \r\n //if(slotIn != null && slotIn.getStack() != null)\r\n \t//System.out.println(\"Button = \" + clickedButton + \" Type = \" + clickType);\r\n \t//System.out.println(slotIn.getStack().getDisplayName());\r\n \r\n \r\n if (mode == 0){\r\n\t if(clickedButton == 0){\r\n\t \t\r\n\t \tif(clickType == 0){\r\n\t \t\tif(slotIn.getStack() == null)\r\n\t \t\t\treturn;\r\n\t \t\tblockReplaceList.clear();\r\n\t \t\tblockReplaceList.add(0, slotIn.getStack());\r\n\t \t}\r\n\t \telse if(clickType == 1){\r\n\t \t\t//((ContainerBlockSelMenu.CustomSlot) slotIn).setColor(RGBA.Red.setAlpha(100));;\r\n\t \t\t//slotIn.setColor(RGBA.Red.setAlpha(100));\r\n\t \t}\r\n\t \tSystem.out.println(blockReplaceList);\r\n\t }\r\n\t else if(clickedButton == 1){\r\n\t \tif(clickType == 0){\r\n\t \t\tif(slotIn.getStack() == null)\r\n\t \t\t\treturn;\r\n\t \t\tif(!blockReplaceList.isEmpty()){\r\n\t \t\t\t\r\n\t \t\t\tint currID;\r\n\t\t \t\tint currDATA;\r\n\t\t \t\tif(slotIn.getStack().getIsItemStackEqual(new ItemStack(Items.bucket).setStackDisplayName(\"Air\"))){\r\n\t\t \t\t\tcurrID = Block.getIdFromBlock(Blocks.air);\r\n\t\t \t\t\tcurrDATA = 0;\r\n\t\t \t\t}\r\n\t\t \t\telse if(slotIn.getStack().getIsItemStackEqual(new ItemStack(Items.water_bucket).setStackDisplayName(\"Water\"))){\r\n\t\t \t\t\tcurrID = Block.getIdFromBlock(Blocks.flowing_water);\r\n\t\t \t\t\tcurrDATA = 0;\r\n\t\t \t\t}\r\n\t\t \t\telse if(slotIn.getStack().getIsItemStackEqual(new ItemStack(Items.lava_bucket).setStackDisplayName(\"Lava\"))){\r\n\t\t \t\t\tcurrID = Block.getIdFromBlock(Blocks.flowing_lava);\r\n\t\t \t\t\tcurrDATA = 0;\r\n\t\t \t\t}\r\n\t\t \t\telse{\r\n\t\t\t \t\tcurrID = Block.getIdFromBlock(Block.getBlockFromItem(slotIn.getStack().getItem()));\r\n\t\t\t \t\tcurrDATA = slotIn.getStack().getItem().getMetadata(slotIn.getStack());\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \t\tint currID2;\r\n\t\t \t\tint currDATA2 = 0;\r\n\t\t \t\tif(blockReplaceList.get(0).getIsItemStackEqual(new ItemStack(Items.bucket).setStackDisplayName(\"Air\"))){\r\n\t\t \t\t\tcurrID2 = Block.getIdFromBlock(Blocks.air);\r\n\t\t \t\t\tcurrDATA = 0;\r\n\t\t \t\t}\r\n\t\t \t\telse if(blockReplaceList.get(0).getIsItemStackEqual(new ItemStack(Items.water_bucket).setStackDisplayName(\"Water\"))){\r\n\t\t \t\t\tcurrID2 = Block.getIdFromBlock(Blocks.flowing_water);\r\n\t\t \t\t\tcurrDATA = 0;\r\n\t\t \t\t}\r\n\t\t \t\telse if(blockReplaceList.get(0).getIsItemStackEqual(new ItemStack(Items.lava_bucket).setStackDisplayName(\"Lava\"))){\r\n\t\t \t\t\tcurrID2 = Block.getIdFromBlock(Blocks.flowing_lava);\r\n\t\t \t\t\tcurrDATA = 0;\r\n\t\t \t\t}\r\n\t\t \t\telse{\r\n\t\t \t\t\tcurrID2 = Block.getIdFromBlock(Block.getBlockFromItem(blockReplaceList.get(0).getItem()));\r\n\t\t \t\t\tcurrDATA2 = blockReplaceList.get(0).getItem().getMetadata(blockReplaceList.get(0));\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \t\tSystem.out.println(currID + \" \" + currID2);\r\n\t \t\t\t\r\n//\t\t \t\tint currID2 = Block.getIdFromBlock(Block.getBlockFromItem(blockReplaceList.get(0).getItem()));\r\n//\t\t \t\tint currDATA2 = blockReplaceList.get(0).getItem().getMetadata(blockReplaceList.get(0));\r\n\t\t \t\tPacketDispatcher.sendToServer(new SendSimpleReplacePacketToItemMessage(currID, currDATA, currID2, currDATA2));\r\n\t\t \t\tthis.mc.thePlayer.closeScreen();\r\n\t \t\t}\r\n\t \t}\r\n\t \telse if(clickType == 1){\r\n\t \t\t\r\n\t \t}\r\n\t }\r\n }\r\n else{\r\n \tif(clickedButton == 0){\r\n\t \tif(clickType == 0){\r\n\t \t\tif(slotIn.getStack() == null)\r\n\t \t\t\treturn;\r\n\t \t\tif(blockReplaceList.contains(slotIn.getStack())){\r\n\t \t\t\tblockReplaceList.remove(slotIn.getStack());\r\n\t \t\t}\r\n\t \t\telse{\r\n\t \t\t\tif(!blockFillList.contains(slotIn.getStack()))\r\n\t \t\t\t\tblockReplaceList.add(slotIn.getStack());\r\n\t \t\t}\r\n\t \t\t\t\r\n\t \t\tSystem.out.println(blockReplaceList);\r\n\t \t\t\r\n\t \t}\r\n\t \telse if(clickType == 1){\r\n\t \t\tif(!blockFillList.contains(slotIn.getStack())){\r\n\t \t\t\tblockFillList.add(slotIn.getStack());\r\n\t \t\t}\r\n\t \t\telse{\r\n\t \t\t\tblockFillList.remove(slotIn.getStack());\r\n\t \t\t\tslotIn.getStack().stackSize++;\r\n\t \t\t\tblockFillList.add(slotIn.getStack());\r\n\t \t\t}\r\n\t \t\tSystem.out.println(blockFillList);\r\n\t \t\t//slotIn.setColor(RGBA.Red.setAlpha(100));\r\n\t \t}\r\n\t }\r\n\t else if(clickedButton == 1){\r\n\t \tif(slotIn.getStack() == null)\r\n \t\t\treturn;\r\n\t \t//if(clickType == 0){\r\n\t \t\tif(!blockFillList.contains(slotIn.getStack())){\r\n\t \t\t\t//((ContainerBlockSelMenu.CustomSlot) slotIn).setColor(RGBA.White.setAlpha(0));\r\n\t \t\t\t//blockFillList.add(slotIn.getStack());\r\n\t \t\t}\r\n\t \t\telse{\r\n\t \t\t\tblockFillList.remove(slotIn.getStack());\r\n\t \t\t\tif(slotIn.getStack().stackSize>1){\r\n\t \t\t\t\tslotIn.getStack().stackSize--;\r\n\t \t\t\t\tblockFillList.add(slotIn.getStack());\r\n\t \t\t\t}\r\n\t \t\t\telse if (slotIn.getStack().stackSize == 1){\r\n\t \t\t\t\t//((ContainerBlockSelMenu.CustomSlot) slotIn).clearColor();\r\n\t \t\t\t}\r\n\t \t\t\t\r\n\t \t\t}\r\n\t \t\tSystem.out.println(blockFillList);\r\n//\t \t}\r\n//\t \telse if(clickType == 1){\r\n//\t \t\t\r\n//\t \t}\r\n\t }\r\n }\r\n\r\n }", "public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {}", "void onRightClick(double mouseX, double mouseY);", "@SubscribeEvent(priority = EventPriority.LOWEST)\n public void interactRightClickBlock(PlayerInteractEvent.RightClickBlock evt)\n {\n boolean invalid = !evt.getEntityPlayer().isSneaking() || !CompatWrapper.isValid(evt.getItemStack())\n || !(evt.getItemStack().getItem() instanceof OceanOrb /*ItemPokedex*/) || evt.getWorld().isRemote;\n if (invalid) return;\n Block block = null;\n EntityPlayer playerIn = evt.getEntityPlayer();\n World worldIn = evt.getWorld();\n BlockPos pos = evt.getPos();\n IBlockState state = evt.getWorld().getBlockState(evt.getPos());\n block = state.getBlock();\n PokedexEntry entry = Database.getEntry(\"lugia\");\n if (block == BlockInit.LEGENDARY_SPAWN && entry != null)\n {\n SpawnData data = entry.getSpawnData();\n if (data != null) for (SpawnBiomeMatcher matcher : data.matchers.keySet())\n {\n if (data.getWeight(matcher) > 0) return;\n }\n ISpecialSpawnCondition spawnCondition = ISpecialSpawnCondition.spawnMap.get(entry);\n ISpecialCaptureCondition captureCondition = ISpecialCaptureCondition.captureMap.get(entry);\n if (spawnCondition != null)\n {\n Vector3 location = Vector3.getNewVector().set(pos);\n if (spawnCondition.canSpawn(playerIn, location))\n {\n EntityLiving entity = (EntityLiving) PokecubeMod.core.createPokemob(entry, worldIn);\n IPokemob pokemob = CapabilityPokemob.getPokemobFor(entity);\n if (captureCondition != null && !captureCondition.canCapture(playerIn, pokemob))\n {\n evt.setCanceled(true);\n return;\n }\n PokecubePlayerDataHandler.getCustomDataTag(playerIn).setBoolean(\"spwn:\" + entry.getTrimmedName(),\n true);\n entity.setHealth(entity.getMaxHealth());\n location.add(0, 1, 0).moveEntity(entity);\n spawnCondition.onSpawn(pokemob);\n playerIn.getHeldItemMainhand().setCount(0);\n worldIn.setBlockToAir(pos);\n if (pokemob.getExp() < 100)\n {\n entity = pokemob.setForSpawn(Tools.levelToXp(entry.getEvolutionMode(), 50)).getEntity();\n }\n worldIn.spawnEntity(entity);\n }\n }\n evt.setCanceled(true);\n }\n }", "abstract void onRightClick(int x, int y, boolean down);", "@Override\n\tpublic void RightButtonClick() {\n\t\t\n\t}", "@Override\n\tpublic void RightButtonClick() {\n\t\t\n\t}", "protected void onBlockClick(PlayerInteractEvent event) {\n\t}", "@EventHandler\n\tpublic void onPlayerInteractEvent(PlayerInteractEvent event) {\n\t\tAction action = event.getAction();\n\t if (action != Action.RIGHT_CLICK_BLOCK && action != Action.RIGHT_CLICK_AIR) {\n\t\t\treturn;\n\t\t}\n\n\t\tPlayer player = event.getPlayer();\n\t boolean holdingBOE = false;\n\t boolean holdingSOW = false;\n\n\t\tPlayerInventory inv = player.getInventory();\n\t\tItemStack mainItem = inv.getItemInMainHand();\n\t if (mainItem != null) {\n ItemMeta meta = mainItem.getItemMeta();\n if (meta != null) {\n if (BookOfEnder.getMeta().equals(meta)) {\n holdingBOE = true;\n } else if (ScrollOfWarp.getMeta().getDisplayName().equals(meta.getDisplayName())) {\n holdingSOW = true;\n }\n }\n\t\t}\n\n\t // do nothing if the player isn't holding a book or scroll in their main hand\n\t\tif (!holdingBOE && !holdingSOW) {\n\t\t\treturn;\n\t\t}\n\n\t\t// even if they are holding a key item, do nothing if they are interacting with certain blocks\n\t\t// ex: crafting table, hopper, chest, etc.\n\t\tBlock blockClicked = event.getClickedBlock();\n\t\tif (blockClicked != null && blockClicked.getType().isInteractable()) {\n\t\t\tLog.d(\"NOT handling right-click event (player interacting with block overrides us)\");\n\t\t\treturn;\n\t\t}\n\n\t\tLog.d(\"handling right-click event!\");\n\n\t\t// we are handling the event, so don't allow block placement (with either hand)\n\t\tevent.setCancelled(true);\n\n\t\t// ignore the off-hand event, as this listener will run once for each hand\n\t\tif (event.getHand() == EquipmentSlot.OFF_HAND) {\n\t\t\tLog.d(\"ignoring off-hand\");\n\t\t\treturn;\n\t\t}\n\n\t\t// TODO allow clicking on the block directly above as well?\n\t\t// pass the player and block location onto a more specific handler\n\t\tLocation blockLocation = blockClicked != null ? blockClicked.getLocation() : null;\n\t\tif (holdingBOE) {\n\t\t\thandleBookOfEnderAction(player, blockLocation);\n\t\t} else {\n\t\t\thandleScrollOfWarpAction(player, blockLocation);\n\t\t}\n\t}", "@EventHandler\n\tpublic void onPlayerInteract(PlayerInteractEvent event) {\n\t\tif (event.getAction() == Action.LEFT_CLICK_AIR || event.getAction() == Action.LEFT_CLICK_BLOCK) {\n\t\t\tSpoutItemStack stack = new SpoutItemStack(event.getPlayer().getItemInHand());\n\t\t\tif (stack.getMaterial() instanceof GenericCustomItem) {\n\t\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"HoldLeftClick\", ((GenericCustomItem) stack.getMaterial()).getCustomId(), event);\n\t\t\t} else if (stack.getMaterial() instanceof GenericCustomBlock) {\n\t\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"HoldLeftClick\", ((GenericCustomBlock) stack.getMaterial()).getCustomId(), event);\n\t\t\t}\n\t\t} else if (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK) {\n\t\t\tSpoutItemStack stack = new SpoutItemStack(event.getPlayer().getItemInHand());\n\t\t\tif (stack.getMaterial() instanceof GenericCustomItem) {\n\t\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"HoldRightClick\", ((GenericCustomItem) stack.getMaterial()).getCustomId(), event);\n\t\t\t} else if (stack.getMaterial() instanceof GenericCustomBlock) {\n\t\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"HoldRightClick\", ((GenericCustomBlock) stack.getMaterial()).getCustomId(), event);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// The click event for the block you clicked on\n\t\tif (event.getAction() == Action.LEFT_CLICK_BLOCK || event.getAction() == Action.RIGHT_CLICK_BLOCK) {\n\t\t\tBlock block = ((SpoutCraftBlock) event.getClickedBlock()).getBlockType();\n\t\t\tif (block instanceof GenericCustomBlock) {\n\t\t\t\tif (event.getAction() == Action.LEFT_CLICK_BLOCK) {\n\t\t\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"LeftClick\", ((GenericCustomBlock) block).getCustomId(), event);\n\t\t\t\t} else {\n\t\t\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"RightClick\", ((GenericCustomBlock) block).getCustomId(), event);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void handleLeftClick() {\n\t\tif (summonedFamiliar != null && c.getInstance().summoned != null) {\n\t\t\tif (summonedFamiliar.familiarType == FamiliarType.BOB) {\n\t\t\t\tfor (int i = 0; i < burdenedItems.length; i++) {\n\t\t\t\t\tif (c.getItems().freeSlots() > 0)\n\t\t\t\t\t\twithdrawItem(burdenedItems[i] - 1, 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tuseSpecial(c);\n\t\t\t}\n\t\t} else {\n\t\t\tc.getPA().sendSummOrbDetails(false, \"\");\n\t\t}\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tl1.setText(\"You cliked the mouse\");\r\n\t}", "@Override\n\tpublic ItemStack onItemRightClick(ItemStack bucket, World world, EntityPlayer user)\n {\n boolean flag = this.isFull == Blocks.air;\n MovingObjectPosition movingobjectposition = this.getMovingObjectPositionFromPlayer(world, user, flag);\n\n if (movingobjectposition == null)\n {\n return bucket;\n }\n else\n {\n if (movingobjectposition.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK)\n {\n int x = movingobjectposition.blockX;\n int y = movingobjectposition.blockY;\n int z = movingobjectposition.blockZ;\n\n if (!world.canMineBlock(user, x, y, z))\n {\n return bucket;\n }\n\n if (flag)\n {\n if (!user.canPlayerEdit(x, y, z, movingobjectposition.sideHit, bucket))\n {\n return bucket;\n }\n\n Material material = world.getBlock(x, y, z).getMaterial();\n int l = world.getBlockMetadata(x, y, z);\n\n if (material == Material.water && l == 0)\n {\n world.setBlockToAir(x, y, z);\n return this.createNewInstance(bucket, user, ToolListMF.bucketwood_water, 0);\n }\n\n if (material == Material.lava && l == 0)\n {\n \tworld.playSound(x+0.5, y+0.5, z+0.5, \"random.fizz\", 1.0F, 1.0F, true);\n world.spawnParticle(\"largeSmoke\", x+0.5, y+1F, z+0.5, 0F, 0.5F, 0F);\n \treturn this.createNewInstance(bucket, user, Items.coal, 1);\n }\n }\n else\n {\n if (this.isFull == Blocks.air)\n {\n return new ItemStack(ToolListMF.bucketwood_empty);\n }\n\n if (movingobjectposition.sideHit == 0)\n {\n --y;\n }\n\n if (movingobjectposition.sideHit == 1)\n {\n ++y;\n }\n\n if (movingobjectposition.sideHit == 2)\n {\n --z;\n }\n\n if (movingobjectposition.sideHit == 3)\n {\n ++z;\n }\n\n if (movingobjectposition.sideHit == 4)\n {\n --x;\n }\n\n if (movingobjectposition.sideHit == 5)\n {\n ++x;\n }\n\n if (!user.canPlayerEdit(x, y, z, movingobjectposition.sideHit, bucket))\n {\n return bucket;\n }\n\n if (this.tryPlaceContainedLiquid(world, x, y, z) && !user.capabilities.isCreativeMode)\n {\n return new ItemStack(ToolListMF.bucketwood_empty);\n }\n }\n }\n\n return bucket;\n }\n }", "public void rightPressed() {\n System.out.println(\"rightPressed()\");\n current.translate(0, 1);\n display.showBlocks();\n }", "@Override\n public void itemClick(int pos) {\n }", "public ItemStack onItemRightClick(ItemStack var1, World var2, EntityPlayer var3)\r\n {\r\n var3.setItemInUse(var1, this.getMaxItemUseDuration(var1));\r\n return var1;\r\n }", "public ItemStack onItemRightClick(ItemStack var1, World var2, EntityPlayer var3)\n {\n float var4 = 1.0F;\n double var5 = var3.prevPosX + (var3.posX - var3.prevPosX) * (double)var4;\n double var7 = var3.prevPosY + (var3.posY - var3.prevPosY) * (double)var4 + 1.62D - (double)var3.yOffset;\n double var9 = var3.prevPosZ + (var3.posZ - var3.prevPosZ) * (double)var4;\n boolean var11 = this.isFull == 0;\n MovingObjectPosition var12 = this.getMovingObjectPositionFromPlayer(var2, var3, var11);\n\n if (var12 == null)\n {\n return var1;\n }\n else\n {\n FillBucketEvent var13 = new FillBucketEvent(var3, var1, var2, var12);\n\n if (MinecraftForge.EVENT_BUS.post(var13))\n {\n return var1;\n }\n else if (var13.getResult() == Event.Result.ALLOW)\n {\n if (var3.capabilities.isCreativeMode)\n {\n return var1;\n }\n else if (--var1.stackSize <= 0)\n {\n return var13.result;\n }\n else\n {\n if (!var3.inventory.addItemStackToInventory(var13.result))\n {\n var3.dropPlayerItem(var13.result);\n }\n\n return var1;\n }\n }\n else\n {\n if (var12.typeOfHit == EnumMovingObjectType.TILE)\n {\n int var14 = var12.blockX;\n int var15 = var12.blockY;\n int var16 = var12.blockZ;\n\n if (!var2.canMineBlock(var3, var14, var15, var16))\n {\n return var1;\n }\n\n if (this.isFull == 0)\n {\n if (!var3.canPlayerEdit(var14, var15, var16, var12.sideHit, var1))\n {\n return var1;\n }\n\n if (var2.getBlockMaterial(var14, var15, var16) == Material.water && var2.getBlockMetadata(var14, var15, var16) == 0)\n {\n var2.setBlockWithNotify(var14, var15, var16, 0);\n\n if (var3.capabilities.isCreativeMode)\n {\n return var1;\n }\n\n if (--var1.stackSize <= 0)\n {\n return new ItemStack(Item.bucketWater);\n }\n\n if (!var3.inventory.addItemStackToInventory(new ItemStack(Item.bucketWater)))\n {\n var3.dropPlayerItem(new ItemStack(Item.bucketWater.itemID, 1, 0));\n }\n\n return var1;\n }\n\n if (var2.getBlockMaterial(var14, var15, var16) == Material.lava && var2.getBlockMetadata(var14, var15, var16) == 0 && var2.getBlockId(var14, var15, var16) == DivineRPG.tarStill.blockID)\n {\n var2.setBlockWithNotify(var14, var15, var16, 0);\n\n if (var3.capabilities.isCreativeMode)\n {\n return var1;\n }\n\n if (--var1.stackSize <= 0)\n {\n return new ItemStack(DivineRPG.tarBucket);\n }\n\n if (!var3.inventory.addItemStackToInventory(new ItemStack(DivineRPG.tarBucket)))\n {\n var3.dropPlayerItem(new ItemStack(DivineRPG.tarBucket.itemID, 1, 0));\n }\n\n return var1;\n }\n }\n else\n {\n if (this.isFull < 0)\n {\n return new ItemStack(DivineRPG.arcaniumBucket);\n }\n\n if (var12.sideHit == 0)\n {\n --var15;\n }\n\n if (var12.sideHit == 1)\n {\n ++var15;\n }\n\n if (var12.sideHit == 2)\n {\n --var16;\n }\n\n if (var12.sideHit == 3)\n {\n ++var16;\n }\n\n if (var12.sideHit == 4)\n {\n --var14;\n }\n\n if (var12.sideHit == 5)\n {\n ++var14;\n }\n\n if (!var3.canPlayerEdit(var14, var15, var16, var12.sideHit, var1))\n {\n return var1;\n }\n\n if (this.tryPlaceContainedLiquid(var2, var5, var7, var9, var14, var15, var16) && !var3.capabilities.isCreativeMode)\n {\n return new ItemStack(DivineRPG.arcaniumBucket);\n }\n }\n }\n\n return var1;\n }\n }\n }", "@Override\n public void mouseClicked(MouseEvent me) {\n }", "@Override\n\t\t public void handle(MouseEvent mouseEvent) {\n\t\t \tif(mouseEvent.getButton() == MouseButton.PRIMARY && mouseEvent.getClickCount() == 2){\n\t\t \t\tfinal AbstractEntity entity = getTreeElement();\n\t\t\t\t\trightContainerFillListener.setupRightContainer(entity);\n\t\t }\n\t\t \t//Rechtsclick Mouse\n\t\t \tif(mouseEvent.getButton() == MouseButton.SECONDARY){\n\t\t \t\tcontextMenu.updateItems(getTreeElement());\n\t\t \t}\n\t\t }", "@Override\n\tpublic void rightNavClick() {\n\t\t\n\t}", "public abstract void onRightButtonClick();", "@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)\n public void onPlayerInteract(PlayerInteractEvent event) {\n if (event.getClickedBlock() != null && event.getItem() != null) {\n if (event.getAction() == Action.RIGHT_CLICK_BLOCK && !event.getPlayer().isSneaking()) {\n if (ItemUtils.HOES.contains(event.getMaterial())) {\n\n Block block = event.getClickedBlock();\n BlockData original = block.getBlockData();\n BlockData changed = safelyRotated(block);\n if (!original.matches(changed)) {\n\n // make sure player can build here\n Block against = block.getRelative(event.getBlockFace().getOppositeFace(), 1);\n BlockPlaceEvent e = new BlockPlaceEvent(block, block.getState(), against, event.getItem(), event.getPlayer(), true, EquipmentSlot.HAND);\n plugin.getServer().getPluginManager().callEvent(e);\n if (!e.isCancelled()) {\n block.setBlockData(changed);\n event.setCancelled(true);\n }\n }\n }\n }\n }\n }", "public boolean onRightClick(EntityPlayer paramahd)\r\n/* 148: */ {\r\n/* 149:170 */ if (!this.world.isClient) {\r\n/* 150:171 */ paramahd.a((vq)this);\r\n/* 151: */ }\r\n/* 152:174 */ return true;\r\n/* 153: */ }", "@Override\n public void onLeftClicked(int position) {\n }", "@EventHandler\n\tpublic void onRightClick(PlayerInteractEvent e){\n\t\t\n\t\tPlayer player = e.getPlayer();\n\t\tsetPlayer(player);\n\t\t\n\t}", "default public void clickRight() {\n\t\tremoteControlAction(RemoteControlKeyword.RIGHT);\n\t}", "public static void rightClick() {\r\n\t\tMinecraftForge.EVENT_BUS.register(playerUtil);\r\n\t}", "@Override\n\tpublic void LeftButtonClick() {\n\t\t\n\t}", "@Override\n\tpublic void leftClick(MouseEvent e) {\n\n\t}", "@Override\n public void execute(PlayerClickExecutableItemEvent event) {\n event.blockClicked.getWorld().createExplosion(event.blockClicked.getLocation(), 12.0f);\n event.player.sendMessage(ChatColor.GREEN + \"Sylphid's magic overflowed.\");\n }", "public void mouseClicked(MouseEvent me) {\n\t\t\t\trow_position = jTable2.rowAtPoint(me.getPoint());\n\t\t\t\tcolumn_position = jTable2.columnAtPoint(me.getPoint());\n\t\t\t\tif (SwingUtilities.isRightMouseButton(me)) {\n\t\t\t\t\tpop.show(me.getComponent(), me.getX(), me.getY());\n\t\t\t\t}\n\n\t\t\t}", "@EventHandler\n public void onChestOpen(PlayerInteractEvent e){\n if(e.getClickedBlock()==null){\n return; //they clicked air\n }\n if(compareLocation(e.getClickedBlock().getLocation())){\n e.setCancelled(true); //its our location they clicked, so we stop it.\n }\n }", "public void menuItemClicked( Menu2DEvent e );", "@Override\n\tpublic void mouseClicked(MouseEvent me) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent me) {\n\t\t\n\t}", "@Override\n public ItemStack onItemRightClick(ItemStack par1ItemStack, World world, EntityPlayer par3EntityPlayer)\n {\n if(!world.isRemote) {\n MobHelper.spawnCreature(world, entClass, par3EntityPlayer, true);\n if (!(par3EntityPlayer.capabilities.isCreativeMode)) {\n par1ItemStack.stackSize--;\n }\n }\n return par1ItemStack;\n }", "@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}", "public void onClicked(EntityPlayer player, QRayTraceResult hit, ItemStack item);", "@Override\n public void OnItemClick(int position) {\n }", "@EventHandler\n void onPlayerInteract(PlayerInteractEvent e){\n Player player = e.getPlayer();\n Block rawblock = e.getClickedBlock();\n Material block = null;\n if(rawblock != null){ block = rawblock.getType();}\n if(block != null && block == Material.DARK_OAK_WALL_SIGN){\n Sign sign = (Sign) e.getClickedBlock().getState();\n if(sign.getLine(0).equalsIgnoreCase(ChatColor.WHITE + \"[\" + ChatColor.GOLD + \"RAID\" + ChatColor.WHITE + \"]\"))\n {\n player.sendMessage(\"gg\");\n }\n }\n }", "@Override\n\tpublic ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand)\n\t{\n\t\tif(playerIn instanceof EntityPlayerMP && StorageBank.controller.authorize(playerIn, itemStackIn))\n\t\t{\n\t\t\tplayerIn.openGui(StorageBank.instance, ID.Gui.GuiIDCard, worldIn, (int)playerIn.posX, (int)playerIn.posY, (int)playerIn.posZ);\n\t\t\tCommonProxy.guiChannel.sendTo(new S2COpenGuiPacket(ID.Gui.GuiIDCard, (int)playerIn.posX, (int)playerIn.posY, (int)playerIn.posZ), (EntityPlayerMP)playerIn);\n\t\t}\n\t\t\n\t\treturn new ActionResult<ItemStack>(EnumActionResult.SUCCESS, itemStackIn);\n\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n public void e_on_mouse_click(EMouseClick e){\n NE_GUI_QuickslotBar.active_slot = id;\n Player.get_player_ent().set_active_item(item); //set player item and update data\n }", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {\n MovingObjectPosition movingobjectposition = this.getMovingObjectPositionFromPlayer(par2World, par3EntityPlayer, true);\n\n if (movingobjectposition == null) {\n return par1ItemStack;\n } else {\n if (!par2World.isRemote && movingobjectposition.typeOfHit == EnumMovingObjectType.TILE && mobID != null) {\n double i = movingobjectposition.hitVec.xCoord;\n double j = movingobjectposition.hitVec.yCoord;\n double k = movingobjectposition.hitVec.zCoord;\n\n spawnBottledEntity(i, j, k, par2World);\n }\n\n return par1ItemStack;\n }\n }", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "void onLeftMouseButtonReleased(double mouseX, double mouseY);", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\r\n\t}", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\r\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\t}", "public void fireCursorRightClicked(long id, float x, float y, float pressure) {\r\n\t\tfor (ItemListener l : itemListeners) {\r\n\t\t\tl.cursorRightClicked(this, id, x, y, pressure);\r\n\t\t}\r\n\t}", "@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }", "@Override\n public void clicked(InputEvent e, float x, float y) {\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n public void mouseClicked(MouseEvent arg0) {\n \n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"vai ficar clikando ai a toa? PATETA\");\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\tif (gameOver) // Nothing will happens if the game had already over\n\t\t\treturn;\n\t\tint column = getColumn(e.getX());\n\t\tint row = getRow(e.getY());\n\t\tCell cell = field.getCellAt(row, column); // The cell the mouse clicked\n\t\t\t\t\t\t\t\t\t\t\t\t\t// is at\n\t\t// (x, y)\n\t\tif (cell.getVisiblity() == true) // The cell is visible\n\t\t\treturn;\n\t\tif (e.isMetaDown()) { // If it is clicked by the right button\n\t\t\tif (cell.hasSign())\n\t\t\t\tcell.removeSign();\n\t\t\telse\n\t\t\t\tcell.addSign();\n\t\t} else { // Clicked by the left button\n\t\t\tif (cell.hasSign())\n\t\t\t\treturn;\n\t\t\tcell.setVisibility();\n\t\t\tif (cell.hasMine()) {\n\t\t\t\tgameOver = true; // Lost\n\t\t\t\tlost = true;\n\t\t\t}\n\t\t\telse if (cell.getFlag() == 0) {\n\t\t\t\tbfsVisible(cell);\n\t\t\t}\n\t\t}\n\t\tframe.repaint();\n\t\tcheckWin(); //Check if the player is win\n\t\t\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\ttoggleFullSceen();\n\t\t\t}" ]
[ "0.7032815", "0.68074626", "0.67368186", "0.6671143", "0.6589355", "0.65698373", "0.65369487", "0.6489962", "0.6485496", "0.6485496", "0.6408463", "0.6399357", "0.63392556", "0.6306047", "0.6242531", "0.62242967", "0.61944723", "0.61777246", "0.61668134", "0.6164712", "0.61602676", "0.61579955", "0.615349", "0.61253923", "0.61159855", "0.61103266", "0.60891914", "0.6082554", "0.6065512", "0.60603464", "0.6057224", "0.6052419", "0.605212", "0.60485995", "0.6035469", "0.600938", "0.5991221", "0.5991221", "0.5982202", "0.5966826", "0.5966826", "0.5966826", "0.59565455", "0.59277064", "0.5926914", "0.59158003", "0.59111035", "0.59111035", "0.59111035", "0.59109974", "0.5908961", "0.5908961", "0.5902823", "0.58955854", "0.58896863", "0.58896863", "0.58896863", "0.58896863", "0.58896863", "0.58896863", "0.58896863", "0.58724684", "0.58706397", "0.58686936", "0.58639157", "0.58603114", "0.5853945", "0.5853945", "0.5853945", "0.5851868", "0.5851868", "0.58510846", "0.58510846", "0.58510846", "0.5849184", "0.5849184", "0.5849184", "0.5849184", "0.5849184", "0.5849184", "0.5849184", "0.5849184", "0.5849184", "0.5849184", "0.5849184", "0.5848986", "0.5848883", "0.5847131", "0.58384347", "0.5832406", "0.5824719", "0.5819329", "0.5819329", "0.58169746", "0.5811553", "0.5805504", "0.57991624", "0.5798735", "0.5798735", "0.57954025", "0.5794912" ]
0.0
-1
adds the "half=bottom" to the item model, so it does not error
@Override @SuppressWarnings("unchecked") @SideOnly(Side.CLIENT) public void registerItemModels() { final Item item = this; final ResourceLocation loc = ForgeRegistries.BLOCKS.getKey(block); for(T o : (Collection<T>) mappingProperty.getAllowedValues()) { int meta = block.getMetaFromState(block.getDefaultState().withProperty(mappingProperty, o)); String name = mappingProperty.getName(o); ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(loc, "half=bottom," + mappingProperty.getName() + "=" + name)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBottom(int x) {\r\n bottomSide = x;\r\n }", "public void setBoundingBoxBottom(double value) {\n this.boundingBoxBottom = value;\n }", "@Override\n public boolean isGoodForBottom()\n {\n return false;\n }", "public int getBottomWeight(){\r\n\t \treturn this.bottomWeight;\r\n\t }", "public double Bottom(){\n\t\tdouble fary = y + sizeY - 1;\n\t\treturn (fary);\n\t}", "public void alignBottom() {\n\t\ttop.bottom();\n\t}", "public void alignSelectedFurnitureOnBottom() {\n alignSelectedFurniture(new AlignmentAction() {\n public void alignFurniture(AlignedPieceOfFurniture [] alignedFurniture, \n HomePieceOfFurniture leadPiece) {\n float maxYLeadPiece = getMaxY(leadPiece);\n for (AlignedPieceOfFurniture alignedPiece : alignedFurniture) {\n HomePieceOfFurniture piece = alignedPiece.getPieceOfFurniture();\n float maxY = getMaxY(piece);\n piece.setY(piece.getY() + maxYLeadPiece - maxY);\n }\n }\n });\n }", "private void addLastValueToTable(){\n\t\t//System.out.println(theModelColumn.size()-1);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getX(), theModelColumn.size()-1, 0);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getY(), theModelColumn.size()-1, 1);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getWidth(), theModelColumn.size()-1, 2);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getHeight(), theModelColumn.size()-1, 3);\n\t}", "public void setBottom() {\n reset(State.BOTTOM);\n }", "@Override\n protected boolean isItemsOrderReversed() {\n return Utils.isCornerBottom(mCurrentCorner);\n }", "public double getBoundingBoxBottom() {\n return boundingBoxBottom;\n }", "@Override\n public void addItem(ItemType item) {\n if (curArrayIndex > items.length - 1) {\n System.out.println(item.getDetails() + \" - This bin is full. Item cannot be added!\");\n }\n else if (item.getWeight() + curWeight <= maxWeight) {\n curWeight += item.getWeight();\n items[curArrayIndex++] = item;\n }\n else {\n System.out.println(item.getDetails() + \" - Overweighted. This item cannot be added!\");\n }\n if (item.isFragile()) {\n setLabel(\"Fragile - Handle with Care\");\n }\n\n }", "@Test\n public void testIsBottom() {\n for (final Border border : Border.values()) {\n if (border.toString().contains(\"BOTTOM\") || border.toString().contains(\"ALL\")) {\n Assert.assertTrue(border.isBottom());\n } else {\n Assert.assertFalse(border.isBottom());\n }\n }\n }", "public void updateBottomBorder(){\n if (player.getScore()%40 ==0){\n botBorders.add(new BotBorder(BitmapFactory.decodeResource(getResources(),R.drawable.brick),\n botBorders.get(botBorders.size()-1).getX()+20,\n (int)(rand.nextDouble()*maxBorderHeight)+HEIGHT-maxBorderHeight));\n }\n //update bottom border\n for (int i =0; i<botBorders.size(); i++){\n botBorders.get(i).update();\n if (botBorders.get(i).getX()<-20) {\n botBorders.remove(i);\n if (botBorders.get(botBorders.size() - 1).getY() <= HEIGHT- maxBorderHeight) {\n botDown = true ;\n }\n if (botBorders.get(botBorders.size() - 1).getY() >= HEIGHT- minBorderHeight) {\n botDown = false;\n }\n if (botDown) {\n botBorders.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.brick),\n botBorders.get(botBorders.size() - 1).getX() + 20,\n botBorders.get(botBorders.size() - 1).getY() + 1));\n } else {\n botBorders.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.brick),\n botBorders.get(botBorders.size() - 1).getX() + 20,\n botBorders.get(botBorders.size() - 1).getY() - 1));\n }\n }\n }\n }", "public float getBottom() {\r\n\t\treturn top + height;\r\n\t}", "public void updateBottomWeight(){\r\n\t \tif(this.bottomNode != null)\r\n\t \t{\r\n\t \t\tif( this.bottomNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.bottomWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.bottomNode.isRoad() == true && this.bottomNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.bottomWeight = this.bottomNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.bottomWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }", "public int getBottom() {\n return position[0] + (size - 1) / 2;\n }", "static public void adjustLeftBottom(Shape2D shape,float left,float bottom){\n shape(shape,left-Shape2DLimits.minXShape(shape),bottom-Shape2DLimits.minYShape(shape));\n }", "@Override\n protected int getPrimaryGravity(Utils.Corner currentCorner){\n return (currentCorner == Utils.Corner.LeftBottom || currentCorner == Utils.Corner.RightBottom) ?\n Gravity.BOTTOM : Gravity.TOP;\n }", "public int getBottomY() {\n\t\treturn 0;\r\n\t}", "public Position setBottom(Size size) {\n\t\tbottom = size.clone();\n\t\treturn this;\n\t}", "private static Position getBottomNeighbor(Position curr, int side) {\n int newX = curr.getX();\n int newY = curr.getY() - side * 2;\n return new Position(newX, newY);\n }", "public boolean setOnBottom(int i) {\n return windows.setOnBottom(i);\n }", "@JSProperty(\"bottom\")\n void setBottom(Chart3dFrameBottomOptions value);", "private void hAndBF(Node<T> current) {\n int h = Math.max(findHeight(current.getLeft()),\n findHeight(current.getRight())) + 1;\n current.setHeight(h);\n int bf = findHeight(current.getLeft()) - findHeight(current.getRight());\n current.setBalanceFactor(bf);\n }", "public void scrollToBottom()\n {\n ensureIndexIsVisible(getModel().getSize() - 1);\n }", "public void setBlockBoundsForItemRender()\n {\n if (this.isFullBlock)\n {\n this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\n }\n else\n {\n this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);\n }\n }", "public int getBottom() {\n\t\treturn this.bottom;\n\t}", "public int getYBottom() {\n return getYTop() + getYWidth();\n }", "@Override\n public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {\n outRect.top = space;\n// outRect.left = space;\n// outRect.right = space;\n }", "public void setimageitem(items item){\n ImageView item_icon = (ImageView) mView.findViewById(R.id.imageitem);\n //If the current weight is greater than half of the original weight, full Icon is displayed\n if(item.getCurrent_wieght() > item.getOriginal_weight()/2)\n item_icon.setImageResource(R.drawable.fullicon);\n //If the current weight is greater than quarter of the original weight, the half icon will be displayed\n else if (item.getCurrent_wieght() <= item.getOriginal_weight()/ 2 && item.getCurrent_wieght() > item.getOriginal_weight()/ 4)\n item_icon.setImageResource(R.drawable.halficon);\n //If the current weight is less than a quarter of the original weight\n // to suggest that the item is empty, a quarter icon will be displayed.\n else if(item.getCurrent_wieght() <= item.getOriginal_weight()/ 4 && item.getCurrent_wieght()> (item.getOriginal_weight()/ 4)/2 ) {\n item_icon.setImageResource(R.drawable.quartericon);\n }\n //if the item is empty an alert icon will be displayed.\n else if(item.getCurrent_wieght()<= (item.getOriginal_weight()/ 4)/2 ) {\n item_icon.setImageResource(R.drawable.alerticon);\n }\n }", "private void updateSpanBottomParameters(){\r\n spanBottomMin = spanBottom[0];\r\n spanBottomMax = spanBottom[0];\r\n for(int i = 1; i < mSpanCount; i++){\r\n if(spanBottomMin > spanBottom[i])\r\n spanBottomMin = spanBottom[i];\r\n if(spanBottomMax < spanBottom[i])\r\n spanBottomMax = spanBottom[i];\r\n }\r\n for(int i = 0; i < mSpanCount; i++){\r\n if(spanBottom[i] == spanBottomMin){\r\n firstOneEmptyBottomSpanIndex = i;\r\n break;\r\n }\r\n }\r\n firstTwoEmptyBottomSpanIndex = -1;\r\n for(int i = firstOneEmptyBottomSpanIndex; i < mSpanCount - 1; i++){\r\n if(spanBottom[i] == spanBottomMin && spanBottom[i + 1] == spanBottomMin){\r\n firstTwoEmptyBottomSpanIndex = i;\r\n break;\r\n }\r\n }\r\n }", "@JSProperty(\"bottom\")\n @Nullable\n Chart3dFrameBottomOptions getBottom();", "public void addLength() {\n\t\tBodyPart b1 = snake.getBodyPart(snake.getSize()-1), b2 = snake.getBodyPart(snake.getSize()-2);\n\t\tif(b1.getX() > b2.getX())\n\t\t\tsnake.addBodyPart(b1.getX()+GameObject.SIZE, b1.getY());\n\t\telse if(b1.getX() < b2.getX())\n\t\t\tsnake.addBodyPart(b1.getX()-GameObject.SIZE, b1.getY());\n\t\telse if(b1.getY() >= b2.getY())\n\t\t\tsnake.addBodyPart(b1.getX(), b1.getY()+GameObject.SIZE);\n\t\telse if(b1.getY() >= b2.getY())\n\t\t\tsnake.addBodyPart(b1.getX(), b1.getY()-GameObject.SIZE);\n\t}", "public void onUpdate()\n\t{\n\t\tchunk.setModelBound(new BoundingBox());\n\t\tchunk.updateModelBound();\n\n\t}", "public UtilsPadding setBottom(Number bottom) {\n if (jsBase == null) {\n this.bottom = null;\n this.bottom1 = null;\n \n this.bottom = bottom;\n } else {\n this.bottom = bottom;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".bottom(%s)\", bottom));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".bottom(%s);\", bottom));\n js.setLength(0);\n }\n }\n return this;\n }", "protected View getBottomLayout() {\n\t\treturn new View(this);\n\t}", "public void setItemHeight(int height) {\n if (height == mItemHeight) {\n return;\n }\n// mItemHeight = height;\n// mImageViewLayoutParams = new RelativeLayout.LayoutParams(\n// ViewGroup.LayoutParams.MATCH_PARENT, mItemHeight);\n notifyDataSetChanged();\n }", "private boolean checkItemMovingTowardsBumper(Item item) {\n\t\t\n\t\t// positive == bumper below\n\t\tfloat diffY = y - item.getY();\n\t\t\n\t\t// check if item is moving towards bumper\n\t\tif (Game.direction == Game.DIRECTION_NORMAL) {\n\t\t\tif (item.getDirY() < 0) {\n\t\t\t\treturn diffY < 0;\n\t\t\t} else {\n\t\t\t\treturn diffY >= 0;\n\t\t\t}\n\t\t} else {\n\t\t\tif (item.getDirY() < 0) {\n\t\t\t\treturn diffY >= 0;\n\t\t\t} else {\n\t\t\t\treturn diffY < 0;\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t}", "public void setBlockBoundsForItemRender() {\n\t\tthis.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);\n\t}", "public int getCompoundPaddingBottom() {\n final Drawables dr = mDrawables;\n if (dr == null || dr.mDrawableBottom == null) {\n return mPaddingBottom;\n } else {\n return mPaddingBottom + dr.mDrawablePadding + dr.mDrawableSizeBottom;\n }\n }", "boolean testBottomText(Tester t) {\n return t.checkExpect(new NBullets(10).bottomText(),\n new TextImage(\"Bullets left: 10, ships destroyed: 0\", 15, Color.BLACK))\n && t.checkExpect(new NBullets(this.mt, this.los1, 5, 42, 0).bottomText(),\n new TextImage(\"Bullets left: 5, ships destroyed: 42\", 15, Color.BLACK));\n }", "public int getBottom(){\n\t\treturn platformHitbox.y+height;\n\t}", "@Override\n public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {\n\n Log.e(\">>>>>>>>>>>>>\", parent.getChildAdapterPosition(view) + \"\");\n //因为 parent.getChildCount()是不断变化的,无法判断是否最后一条\n //但是第一条的位置 parent.getChildAdapterPosition(view) 肯定等于0\n if(parent.getChildAdapterPosition(view) != 0) {\n outRect.top = mDrawable.getIntrinsicHeight();\n }\n\n }", "private void onSwipeBottom() {\n\t\t\r\n\t}", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "public int getHalfHeight() {\n\t\t\treturn halfHeight;\n\t\t}", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public boolean isBlockBottomSlab(Point3d position){\r\n\t\tIBlockState state = world.getBlockState(new BlockPos(position.x, position.y, position.z));\r\n\t\tBlock block = state.getBlock();\r\n\t\treturn block instanceof BlockSlab && !((BlockSlab) block).isDouble() && state.getValue(BlockSlab.HALF) == BlockSlab.EnumBlockHalf.BOTTOM;\r\n\t}", "private void Add_Bottom_Top(String s) {\n\t\tBottom_Layout b = new Bottom_Layout(s);\n\t\tScrollPane sc = new ScrollPane();\n\t\t\n\t\tthis.mainPanel.add(b.getBottom(), BorderLayout.CENTER);\n\t\t\n\t}", "public void bottomPlatform()\r\n {\r\n //Bottom platform/ floor\r\n addObject (platforms[0], 141, 555);\r\n addObject (platforms[1], 424, 555);\r\n addObject (platforms[2], 700, 555);\r\n addObject (platforms[3], 950, 555);\r\n }", "public double getBottom() {\n return this.yD;\n }", "public static SuffixLattice getBottom() {\n\t\treturn BOTTOM;\n\t}", "private boolean isFullSouth()\r\n\t{\r\n\t\treturn (southElem == maxSize);\r\n\t}", "private void fillListDown(int bottomEdge, final int offset) {\n while (bottomEdge + offset < getHeight() && mLastItemPosition < mAdapter.getCount() - 1) {\n mLastItemPosition++;\n final View newBottomchild = mAdapter.getView(mLastItemPosition, getCachedView(), this);\n addAndMeasureChild(newBottomchild, LAYOUT_MODE_BELOW);\n bottomEdge += getChildHeight(newBottomchild);\n }\n }", "public void onSwipeBottom() {\n if (moodNumber > 0) {\n moodNumber--;\n swipeDisplay();\n }\n }", "void bottom() {\n startAnimation(bottomSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n bottomCubeSwap();\n }", "public void setClipBottom(int bottom) {\n if (bottom != mClipRect.bottom) {\n mClipRect.bottom = bottom;\n mSourceView.invalidateOutline();\n }\n }", "public void setBottomWidth(String bottomWidth) {\r\n\t\tthis.bottomWidth = bottomWidth;\r\n\t}", "@Override\r\n\t\tprotected void updateItem(Boolean t, boolean empty) {\r\n\t\t\tsuper.updateItem(t, empty);\r\n\t\t\tif (!empty) {\r\n\t\t\t\tsetGraphic(pane);\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\t\tprotected void updateItem(Boolean t, boolean empty) {\r\n\t\t\tsuper.updateItem(t, empty);\r\n\t\t\tif (!empty) {\r\n\t\t\t\tsetGraphic(pane);\r\n\t\t\t}\r\n\t\t}", "public void onGlobalLayout() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n llItems.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n } else {\n llItems.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n }\n int centerPosition = 0;\n\n // measure your views here\n int totalChildren = llItems.getChildCount();\n\n for (int i = 0; i < totalChildren - 1; i++) {\n ItemView firstItem = (ItemView) llItems.getChildAt(i);\n ItemView secondItem = (ItemView) llItems.getChildAt(i + 1);\n\n if (i == 0) {\n int paddingLeft = firstItem.getPaddingLeft();\n\n View radioButton = firstItem.findViewById(R.id.rb__choice);\n centerPosition = paddingLeft + radioButton.getWidth() / 2;\n }\n\n View lineView = inflater.inflate(R.layout.item_vertical_line, null);\n llLines.addView(lineView);\n lineView.setTag(\"LINE_\" + i);\n\n View line = lineView.findViewById(R.id.v__line);\n LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) line.getLayoutParams();\n\n int topSpace = 0;\n if (i == 0) {\n topSpace = firstItem.getHeight() / 2 + firstItem.rbChoice.getHeight() / 2;\n } else {\n topSpace = firstItem.rbChoice.getHeight();\n }\n\n params.setMargins(centerPosition - 1, topSpace, 0, 0);\n\n int height = firstItem.getHeight() + secondItem.getTopRadio() - firstItem.getBottomRadio();\n Log.i(\"TRUNGNTH\", \"Height: \" + height + \" secondItem.getTopRadio(): \" + secondItem.getTopRadio() + \" | firstItem.getBottomRadio(): \" + firstItem.getBottomRadio());\n params.height = height;\n line.setLayoutParams(params);\n }\n }", "public void yBindHeight(String bind_name, ObservableValue<? extends Number> height, boolean stroke_included);", "public void setPrefHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getPrefHeight()) return;\n firePropertyChange(\"PrefHeight\", put(\"PrefHeight\", h), h, -1);\n}", "private int getChildBottom(final View child) {\n return child.getBottom() + getChildMargin(child);\n }", "@Override\n public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {\n\n int space = (int) getResources().getDimension(R.dimen.cellSpacing);\n outRect.left = space;\n outRect.right = space;\n outRect.bottom = space;\n\n // Add top margin only for the first item to avoid double space between items\n if (parent.getChildLayoutPosition(view) == 0) {\n outRect.top = space;\n } else {\n outRect.top = 0;\n }\n }", "public void addLast(Item item) { // initiation\n if (item != null) {\n if (size == 0) {\n first = new Node();\n last = new Node();\n first.item = item;\n first.front = null;\n first.back = null;\n last = first;\n } else {\n Node oldlast = last;\n last = new Node();\n last.back = null;\n last.item = item;\n last.front = oldlast;\n oldlast.back = last;\n }\n size++;\n } else throw new IllegalArgumentException(\"?\");\n }", "private Cell[][] increaseHeightBottom(Cell[][] oldgrid) {\n //Create new grid of new size\n Cell[][] newGrid = new Cell[this.width][this.height + 2];\n\n\n //Iterate through old grid and add cells\n for (int x = 0; x < this.width; x++) {\n System.arraycopy(oldgrid[x], 0, newGrid[x], 0, this.height);\n }\n\n //Populate new empty locations with dead cells\n for (int x = 0; x < this.width; x++) {\n for (int y = this.height; y < this.height + 2; y++) {\n newGrid[x][y] = new Cell(this, x, y, false);\n }\n }\n\n //Add 2 to the global height\n this.height += 2;\n\n return newGrid;\n }", "public void setOutlineClipBottom(int bottom) {\n if (bottom != mOutlineClipRect.bottom) {\n mOutlineClipRect.bottom = bottom;\n mSourceView.invalidateOutline();\n }\n }", "public void setBestHeight() { setHeight(getBestHeight()); }", "public int getOutlineClipBottom() {\n return mOutlineClipRect.bottom;\n }", "@Override\n\tpublic void updateModel() {\n\n\t\tfinal List<GbGradingSchemaEntry> schemaEntries = this.schemaView.getModelObject();\n\n\t\tfinal Map<String, Double> bottomPercents = new HashMap<>();\n\t\tfor (final GbGradingSchemaEntry schemaEntry : schemaEntries) {\n\t\t\tbottomPercents.put(schemaEntry.getGrade(), schemaEntry.getMinPercent());\n\t\t}\n\n\t\tthis.model.getObject().getGradebookInformation().setSelectedGradingScaleBottomPercents(bottomPercents);\n\n\t\tthis.configuredGradeMappingId = this.currentGradeMappingId;\n\t}", "public double getHeight(Block bl,MainWindow M){\r\n\t\tPoint3D pT = (Map.gpsToPix(bl.getpoint_BlockTopRight().y(),bl.getpoint_BlockTopRight().x(),M.getHeight(),M.getWidth()));\r\n\t\tPoint3D pD = (Map.gpsToPix(bl.getpoint_BlockDownleft().y(),bl.getpoint_BlockDownleft().x(),M.getHeight(),M.getWidth()));\r\n\t\tint height = (int)(pD.y() - pT.y());\r\n\t\treturn height;\r\n\t}", "public void setMinHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getMinHeight()) return;\n firePropertyChange(\"MinHeight\", put(\"MinHeight\", h), h, -1);\n}", "public boolean setOnBottom(String sname) {\n return windows.setOnBottom(sname);\n }", "public void updateBotBorder()\n {\n //update bottom border\n for(int i = 0; i<botborder.size(); i++)\n {\n botborder.get(i).update();\n\n //if border is moving off screen, remove it and add a corresponding new one\n if(botborder.get(i).getX()<-25) {\n botborder.remove(i);\n\n\n //determine if border will be moving up or down\n if (botborder.get(botborder.size() - 1).getY() <= height-maxBorderHeight) {\n down = true;\n }\n if (botborder.get(botborder.size() - 1).getY() >= height - minBorderHeight) {\n down = false;\n }\n\n if (down) {\n botborder.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), botborder.get(botborder.size() - 1).getX() + 25, botborder.get(botborder.size() - 1\n ).getY() + 1));\n } else {\n botborder.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder\n ), botborder.get(botborder.size() - 1).getX() + 25, botborder.get(botborder.size() - 1\n ).getY() - 1));\n }\n }\n }\n }", "@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n if (holder instanceof FooterViewHolder) {\n StaggeredGridLayoutManager.LayoutParams clp = (StaggeredGridLayoutManager.LayoutParams) holder.itemView.getLayoutParams();\n if (clp != null)\n clp.setFullSpan(true);\n }\n super.onBindViewHolder(holder, position);\n }", "public void setHeight(float top, float bottom) {\n this.top = top;\n this.bottom = bottom;\n }", "public void upperHalf() {\n\t\t// TODO: Implement\n\t\tint sumOfSlotCounts = getSumOfSlotCount()-1;\n\t\tint slot = 0;\n\t\tint beanNumber = getSlotBeanCount(slot)-1;\n\t\tint deleted = 0;\n\t\t//System.out.println(\"sumOfCounts: \" + sumOfSlotCounts);\n\t\twhile(deleted < Math.floor(sumOfSlotCounts / 2) ){\n\t\t\t/*if (slotBean.get(slot).isEmpty()) {\n\t\t\t\tslot++;\n\t\t\t\tbeanNumber = 0;\n\t\t\t\tSystem.out.println(\"slot empty: slot: \" + slot + \" beanN: \" + beanNumber);\n\t\t\t}*/\n\t\t\t\n\t\t\t//System.out.println(\"i: \" + deleted + \" count: \" + getSlotBeanCount(slot)+\" beanNumber: \" + beanNumber);\n\t\t\tif(beanNumber < getSlotBeanCount(slot) && beanNumber >= 0 && getSlotBeanCount(slot) > 0 ) {\n\t\t\t\t//System.out.println(\"slot not empty: slot: \" + slot + \" beanN: \" + beanNumber);\n\t\t\t\tslotBean.get(slot).remove(beanNumber--);\n\t\t\t\tdeleted++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//System.out.println(\"slot empty: slot: \" + slot + \" beanN: \" + beanNumber);\n\t\t\t\tif(slot < getSlotCount()-1) slot++;\n\t\t\t\tif(getSlotBeanCount(slot) > 0) beanNumber = getSlotBeanCount(slot)-1;\n\t\t\t\telse beanNumber = 0;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "void setBottomLineNode(Node<UnderlyingData> bottomLineNode);", "public void drawBottom(float dt, Graphics g) {\n\t\tbackground.drawBottom(g);\n\t\tint x = (int) background.getPos()[Values.X];\n\t\tint y = (int) background.getPos()[Values.Y];\n\t\tIterator<Integer> it = sprites.keySet().iterator();\n\t\tint index = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tSprite as = sprites.get(it.next());\n\t\t\tfloat asy = as.pos[Values.Y];\n\t\t\telements[index].setYpos(asy);\n\t\t\telements[index++].setIndex(as.hashCode());\n\t\t}\n\t\tArrays.sort(elements);\n\t\tif (sprites.size() != elements.length) {\n\t\t\tlogger.log(Level.WARNING, \"Error: the sprite list and elements are not of equal length\");\n\t\t}\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tSprite as = sprites.get(elements[i].getIndex());\n\t\t\tint asx = Math.round(as.pos[Values.X] + x);\n\t\t\tint asy = Math.round(as.pos[Values.Y] + y);\n\t\t\tas.draw(dt, g, asx, asy);\n\t\t}\n\t}", "private static Position getRightBottomNeighbor(Position curr, int side) {\n int newX = curr.getX() + getNumElement(0, side) + getNumSpacePerSide(0, side) + 1;\n int newY = curr.getY() - side;\n return new Position(newX, newY);\n }", "public void fixHeight(BTNode<T> node){\n\t\tnode.setHeight(Math.max(height(node.getLeft()),height(node.getRight()))+1);\n\t}", "public double getPrefHeight() { return getPrefHeight(-1); }", "protected void setFullSpan(RecyclerView.ViewHolder holder) {\n if (holder.itemView.getLayoutParams() instanceof StaggeredGridLayoutManager.LayoutParams) {\n StaggeredGridLayoutManager.LayoutParams params = (StaggeredGridLayoutManager.LayoutParams) holder\n .itemView.getLayoutParams();\n params.setFullSpan(true);\n }\n }", "public List<Integer> getAdditionalBottomDiameters() {\n return additionalBottomDiameters;\n }", "public String getBottomWidth() {\r\n\t\treturn bottomWidth;\r\n\t}", "@NonNull\n public Builder setBottom(@NonNull DpProp bottom) {\n if (bottom.getDynamicValue() != null) {\n throw new IllegalArgumentException(\"setBottom doesn't support dynamic values.\");\n }\n mImpl.setBottom(bottom.toProto());\n mFingerprint.recordPropertyUpdate(\n 4, checkNotNull(bottom.getFingerprint()).aggregateValueAsInt());\n return this;\n }", "@Nullable\n public DpProp getBottom() {\n if (mImpl.hasBottom()) {\n return DpProp.fromProto(mImpl.getBottom());\n } else {\n return null;\n }\n }", "@Override\n\tpublic void setHeightInPoints(float arg0) {\n\t\t\n\t}", "public Point notValidSnakeHeadDown() {\t\t\n\t\treturn new Point(15, bottom_border);\n\t}", "public float getAlignmentY() { return 0.5f; }", "public void setItem(BudgetItemModel item) { model= item;}", "private float getHoldingArrowY()\n {\n return yPos + ARROW_Y_OFFSET;\n }", "public int getLastPos ()\r\n {\r\n return (getFirstPos() + getThickness()) - 1;\r\n }", "private boolean hasDrawableBottom(Drawable[] drawables){\n\n //returns true if drawables[BOTTOM] is not null\n //BOTTOM = 3, which is the position of drawableTop iin drawables array\n return drawables[BOTTOM] != null;\n\n }", "private boolean hasReachedBottom() {\n\t\tfor (Segment s:this.getHorizontalProjection().getShapeSegments()){\n\t\t\t\n\t\t\tHeightProfile hs = this.grid.heightAt(s);\n\t\t\t\n\t\t\tfor (int h : hs){\n\t\t\t\t\n\t\t\t\tif (this.bottomLeft.getY() <= h){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public List<Integer> getBottomVerticalSpacings() {\n return bottomVerticalSpacings;\n }", "@Override\n public void getItemOffsets(@NonNull Rect outRect, @NonNull View view, @NonNull RecyclerView parent, @NonNull RecyclerView.State state) {\n outRect.top = stenMargin;\n outRect.bottom = stenMargin;\n int size = parent.getAdapter().getItemCount();\n if(parent.getChildAdapterPosition(view) == 0){\n outRect.left = stenMargin;\n outRect.right = margin;\n }else if(parent.getChildAdapterPosition(view) == (size-1)){\n outRect.right = stenMargin;\n }else{\n outRect.right = margin;\n }\n\n\n }", "public static void addHalfWall(Block halfWall) {\r\n\t\t_halfWalls.add(halfWall);\r\n\t}" ]
[ "0.60145736", "0.57271606", "0.5673889", "0.55491614", "0.53406006", "0.5261188", "0.52480304", "0.5227628", "0.52208614", "0.518289", "0.5179356", "0.5162002", "0.51551276", "0.51419485", "0.51403606", "0.5139257", "0.5108001", "0.50913274", "0.50701773", "0.5052966", "0.5047947", "0.5041065", "0.5035422", "0.5013219", "0.49775836", "0.49182692", "0.48934337", "0.48688233", "0.4863883", "0.48428613", "0.48398957", "0.48174685", "0.48103178", "0.48090887", "0.4805531", "0.48010558", "0.47897962", "0.47885904", "0.47874877", "0.47823954", "0.4772294", "0.47662866", "0.47659445", "0.47652742", "0.47642747", "0.47636375", "0.47636375", "0.47606468", "0.4758782", "0.4747985", "0.47363952", "0.47361624", "0.47351387", "0.47242963", "0.47203377", "0.47114167", "0.4706418", "0.46977916", "0.46913472", "0.46885064", "0.46727476", "0.46727476", "0.46710736", "0.46683857", "0.46678156", "0.46633202", "0.46554616", "0.464921", "0.46296573", "0.46143246", "0.461408", "0.4610869", "0.46090832", "0.46086502", "0.46083775", "0.46082842", "0.4607632", "0.46063966", "0.4602948", "0.4597184", "0.45971", "0.45943916", "0.4572408", "0.4560319", "0.4559653", "0.4556176", "0.45533732", "0.45527703", "0.45507988", "0.45417795", "0.45298678", "0.452828", "0.4521175", "0.4516294", "0.45115942", "0.4499957", "0.44989687", "0.44978464", "0.4486814", "0.44816035", "0.44768104" ]
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static ListTrackInspectors newInstance(String param1, String param2) { ListTrackInspectors fragment = new ListTrackInspectors(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public LogFragment() {\n }", "public FragmentMy() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment(){}", "public WelcomeFragment() {}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public HeaderFragment() {}", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public PeersFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public PersonDetailFragment() {\r\n }", "public VehicleFragment() {\r\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.72579354", "0.7230664", "0.7111118", "0.6989669", "0.6988643", "0.6832622", "0.6828347", "0.6811571", "0.67998976", "0.67981213", "0.6764955", "0.6737489", "0.6737489", "0.672639", "0.67151165", "0.6705766", "0.6689923", "0.66892016", "0.668683", "0.6660643", "0.6643716", "0.6640094", "0.6639471", "0.663276", "0.6616162", "0.661253", "0.6606033", "0.66032845", "0.65968", "0.65907437", "0.65904725", "0.65902895", "0.65813494", "0.65776277", "0.6563118", "0.6559757", "0.65561354", "0.6549309", "0.65482223", "0.65418893", "0.6539374", "0.65335816", "0.6531328", "0.6527365", "0.65240943", "0.65233314", "0.6521717", "0.6512845", "0.6505184", "0.64974624", "0.6497044", "0.64939314", "0.6493866", "0.64851093", "0.6484942", "0.6480105", "0.6477698", "0.6475581", "0.6469443", "0.6464999", "0.6456842", "0.6455086", "0.6452874", "0.6449878", "0.6449284", "0.64480394", "0.6447579", "0.64461416", "0.6442683", "0.6442683", "0.6442683", "0.6440273", "0.64399385", "0.6439486", "0.64380777", "0.6432602", "0.6427376", "0.6427346", "0.6423002", "0.6418853", "0.64185506", "0.6411978", "0.6411162", "0.64018214", "0.64001954", "0.6395824", "0.63955945", "0.63901", "0.63884425", "0.63831455", "0.6378475", "0.6374434", "0.637425", "0.637425", "0.637425", "0.63637155", "0.63635045", "0.6360547", "0.63519037", "0.63509697", "0.63504416" ]
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "public abstract void update(UIReader event);", "@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}", "@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}", "@Override\n\tpublic void update(Event e) {\n\t}", "public abstract void onInvoked(CommandSender sender, String[] args);", "@Override\r\n public void updateUI() {\r\n }", "@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}", "@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "public void updateUI(){}", "private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}", "Event () {\n // Nothing to do here.\n }", "void onArgumentsChanged();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "void eventChanged();", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }", "public abstract void onCommand(MessageEvent context) throws Exception;", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void handle(Event event) {\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n public void actionPerformed(AnActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public void ImageView(ActionEvent event) {\n\t}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "public void runInUi(ElexisEvent ev){}", "@Override\n public void delta() {\n \n }", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent ev) {\n }", "@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void update(Observable o, Object arg)\n {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }" ]
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037", "0.59848183", "0.59776366", "0.59587413", "0.5940049", "0.5925668", "0.5925668", "0.59208333", "0.5915737", "0.5915737", "0.5915737", "0.5915737", "0.5915737", "0.5915554", "0.5909643", "0.5895144", "0.58947057", "0.589277", "0.58885247", "0.58885247", "0.58885247", "0.58671176", "0.58671176", "0.58671176", "0.58636886", "0.5862447", "0.5862447", "0.58613557", "0.5855828", "0.5846504", "0.5846504", "0.5846504", "0.5846504", "0.5837475", "0.58366984", "0.5820788", "0.58068436", "0.58022934", "0.5772422", "0.57714665", "0.5770862", "0.5765655", "0.5763872", "0.57544947", "0.57542855", "0.57542855", "0.57450074", "0.57441026", "0.57441026", "0.57441026", "0.5741053", "0.574037", "0.5739314", "0.57367086", "0.57367086", "0.57367086", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57235956", "0.57232994", "0.5721006", "0.571978", "0.571978", "0.57187414", "0.57177836", "0.57133436", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.5707859", "0.5707546", "0.5704973", "0.57016516" ]
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}", "public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }", "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }", "public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }", "public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}", "public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}", "public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }", "void onFragmentInteraction(Object ref);", "public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }", "public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }", "public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }", "public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }", "public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}", "public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}", "public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }", "public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }", "public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}", "public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface PersonalFragmentView extends BaseMvpView {\n\n}", "public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }", "void onFragmentInteraction(View v);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }", "void onFragmentInteractionMain();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }", "public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}", "public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }", "void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }", "public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }", "public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }", "public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}", "public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }", "public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}", "public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}", "public interface ChangeFragmentListener {\n void changeFragment();\n}", "public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }", "public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }", "void onFragmentInteraction(int position);", "public interface AddFarmFragmentView extends BaseView {\n\n\n}", "void OpenFragmentInteraction();", "public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}", "public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}", "public interface PesonageFragmentView extends MvpView {\n\n}", "public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}", "public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }", "public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }", "interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }", "public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}" ]
[ "0.73253685", "0.7208221", "0.7135427", "0.7125134", "0.7122899", "0.7015074", "0.69772226", "0.69772226", "0.69772226", "0.69742674", "0.6968375", "0.6966134", "0.6961393", "0.69540805", "0.6943721", "0.69346327", "0.6930482", "0.692832", "0.69233596", "0.69116926", "0.690342", "0.68976855", "0.68948317", "0.6882658", "0.6882081", "0.6875571", "0.6864682", "0.6861518", "0.6860603", "0.685874", "0.685558", "0.6844162", "0.6840187", "0.6830546", "0.68180513", "0.6817237", "0.681027", "0.6787042", "0.67702794", "0.67698765", "0.67698765", "0.67698765", "0.67698765", "0.67698765", "0.67698765", "0.67698765", "0.67698765", "0.67698765", "0.67667663", "0.67619693", "0.67566663", "0.67535967", "0.66989464", "0.6681518", "0.6673999", "0.6671697", "0.6669918", "0.6661716", "0.66616666", "0.66558737", "0.6652783", "0.6644981", "0.6644593", "0.6644593", "0.6644593", "0.6644593", "0.6644593", "0.6644593", "0.6644593", "0.6644593", "0.6644593", "0.6644593", "0.6644593", "0.6638633", "0.663656", "0.6632035", "0.66252804", "0.6625241", "0.6618193", "0.66103643", "0.6609185", "0.6608966", "0.6605762", "0.65984315", "0.65974903", "0.658786", "0.6572658", "0.6569353", "0.6560453", "0.6560409", "0.6555267", "0.6550397", "0.65486026", "0.6543535", "0.65396214", "0.6534547", "0.6534547", "0.6534547", "0.6519845", "0.651823", "0.6517091" ]
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "Object[] getArguments();", "Object[] getArguments();", "String getArguments();", "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }", "ArgList createArgList();", "public Object[] getArguments() { return args;}", "@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }", "@Override\n protected String getName() {return _parms.name;}", "private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }", "uicargs createuicargs();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}", "public getType_args(getType_args other) {\n }", "Object[] args();", "protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }", "@Test\n void getArgString() {\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "int getArgIndex();", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "@Override\n public Object[] getArguments() {\n return null;\n }", "public login_1_argument() {\n }", "Optional<String[]> arguments();", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}", "protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}", "void setArguments(String arguments);", "@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}", "OpFunctionArgAgregate createOpFunctionArgAgregate();", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void visitArgument(Argument argument);", "public Thaw_args(Thaw_args other) {\r\n }", "@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}", "private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }", "public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "public abstract ValidationResults validArguments(String[] arguments);", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "public String getArgumentString() {\n\t\treturn null;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}", "void onArgumentsChanged();", "com.google.protobuf.ByteString\n\t\tgetArgBytes();", "@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }", "MyArg(int value){\n this.value = value;\n }", "public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }", "public Clear_args(Clear_args other) {\r\n }", "private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }", "public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}", "@Override\n public int getArgent() {\n return _argent;\n }", "private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }", "private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}", "PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }", "public Type getArgumentDirection() {\n return direction;\n }", "public String argTypes() {\n return \"I\";//NOI18N\n }", "public static void main(String arg[]) {\n\n }", "godot.wire.Wire.Value getArgs(int index);", "@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }", "public void setArgs(java.lang.String value) {\n this.args = value;\n }", "private Argument(Builder builder) {\n super(builder);\n }", "@Override\n public void execute(String[] args) {\n\n }", "@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}", "UUID createArgument(ArgumentCreateRequest request);", "@Override\n public void initialise(String[] arguments) {\n\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "protected abstract void parseArgs() throws IOException;" ]
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.59906125", "0.59906125", "0.5984017", "0.59791875", "0.5977681", "0.59532714", "0.5946838", "0.59457266", "0.59452903", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.5909717", "0.5889277", "0.588111", "0.5871162", "0.5866624", "0.58613646", "0.58519953", "0.58381283", "0.58083445", "0.58059824", "0.5795826", "0.57816726", "0.57670826", "0.57556796", "0.57471323", "0.57418406", "0.5729463", "0.57291526", "0.5716928", "0.5713024", "0.56974274", "0.56782854", "0.56723106", "0.5664594", "0.5664104", "0.5660337", "0.5652865", "0.5647883", "0.5642134", "0.5635645", "0.5634968", "0.562251", "0.56210977", "0.56167537", "0.56138444", "0.56044126", "0.56044126", "0.5602371", "0.56012225", "0.55986875", "0.55893147", "0.5588273", "0.5583255", "0.5582767", "0.55681497", "0.55626017", "0.55577534", "0.55524325", "0.5549442", "0.55378276", "0.5536797", "0.5527675", "0.5511817", "0.55099154", "0.550257" ]
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Ingredient)) { return false; } Ingredient other = (Ingredient) object; if ((this.ingredientid == null && other.ingredientid != null) || (this.ingredientid != null && !this.ingredientid.equals(other.ingredientid))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "protected abstract String getId();", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "@Override\n public int getField(int id) {\n return 0;\n }", "public int getId ()\r\n {\r\n return id;\r\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public String getID(){\n return Id;\n }", "public int getId()\n {\n return id;\n }" ]
[ "0.68948644", "0.6837785", "0.67038405", "0.6639133", "0.6639133", "0.65911627", "0.6576973", "0.6576973", "0.6573157", "0.6573157", "0.6573157", "0.6573157", "0.6573157", "0.6573157", "0.65598476", "0.65598476", "0.6543178", "0.6523156", "0.65143406", "0.6486455", "0.6475413", "0.64253694", "0.6417849", "0.64156985", "0.6400779", "0.6365434", "0.63546157", "0.63499856", "0.6346203", "0.63227576", "0.631763", "0.63001484", "0.629182", "0.629182", "0.62824625", "0.62701356", "0.62650704", "0.6263972", "0.6261773", "0.62577695", "0.6254688", "0.62506694", "0.62461007", "0.62461007", "0.62423015", "0.62379855", "0.62379855", "0.623057", "0.6222287", "0.62187535", "0.6218387", "0.6210061", "0.62075466", "0.62007535", "0.6199978", "0.6191151", "0.6188524", "0.6188524", "0.6188345", "0.6188345", "0.6188345", "0.6185662", "0.6182675", "0.6173944", "0.6173008", "0.6165809", "0.6164505", "0.61599946", "0.61553764", "0.61553764", "0.61553764", "0.61553764", "0.61553764", "0.61553764", "0.61553764", "0.6154299", "0.6154299", "0.6140791", "0.61329263", "0.612767", "0.61260307", "0.61032844", "0.6102886", "0.6102886", "0.6101522", "0.6101417", "0.61006045", "0.6098037", "0.6098024", "0.6093603", "0.6091251", "0.60907245", "0.60907245", "0.6090395", "0.6087628", "0.6075129", "0.6071766", "0.6070483", "0.6069239", "0.6068642", "0.6068207" ]
0.0
-1
Singleton Get method for getting the same instance every time, while also providing the context.
public static ContactModel get(Context context) { if (sContactModel == null) { sContactModel = new ContactModel(context); } return sContactModel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Context getInstance(){\n\t\treturn (Context) t.get();\n\t}", "public static synchronized MyVolleySingleton getInstance(Context context) {\n if (singletonInstance == null) { // If Instance is null\n singletonInstance = new MyVolleySingleton(context); // Initialize new Instance\n }\n return singletonInstance;\n }", "@Override\n public T getInstance() {\n return instance;\n }", "public T getInstance() {\n return instance;\n }", "public static synchronized Util getInstance(Context context) {\n if (_instance == null) {\n _instance = new Util(context);\n }\n return _instance;\n }", "public static Context getContext() {\n\t\treturn instance;\n\t}", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static ApplicationContext getInstance()\n\t{\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public static Singleton getInstance( ) {\n return singleton;\n }", "synchronized public static RecipeRepo getInstance(Context applicationContext){\n if(sInstance == null){\n sInstance = new RecipeRepo(applicationContext.getApplicationContext());\n }\n return sInstance;\n }", "T getInstance();", "public static SingletonEager getInstance()\n {\n return instance;\n }", "private LifecycleHolder get(Context context) {\n if (context == null) {\n throw new IllegalArgumentException(\"You cannot start a load on a null Context\");\n } else if (!isOnMainThread() && !(context instanceof Application)) {\n if (context instanceof FragmentActivity) {\n return get((FragmentActivity) context);\n } else if (context instanceof Activity) {\n return get((Activity) context);\n } else if (context instanceof ContextWrapper) {\n return get(((ContextWrapper) context).getBaseContext());\n }\n }\n\n return getApplicationLifecycle();\n }", "public synchronized T get(Scope scope) {\n if (instance != null) {\n return instance;\n }\n\n if (providerInstance != null) {\n if (isProvidingSingleton) {\n instance = providerInstance.get();\n return instance;\n }\n\n return providerInstance.get();\n }\n\n if (factoryClass != null && factory == null) {\n factory = FactoryLocator.getFactory(factoryClass);\n this.isSingleton |= factory.hasSingletonAnnotation();\n this.isReleasable |= (this.isSingleton && factory.hasReleasableAnnotation());\n // gc\n factoryClass = null;\n }\n\n if (factory != null) {\n if (isSingleton) {\n instance = factory.createInstance(scope);\n\n if (!isReleasable) {\n // gc\n factory = null;\n }\n\n return instance;\n }\n\n return factory.createInstance(scope);\n }\n\n if (providerFactoryClass != null && providerFactory == null) {\n providerFactory = FactoryLocator.getFactory(providerFactoryClass);\n this.isSingleton |= providerFactory.hasSingletonAnnotation();\n this.isReleasable |= (this.isSingleton && providerFactory.hasReleasableAnnotation());\n this.isProvidingSingleton |= providerFactory.hasProvidesSingletonAnnotation();\n this.isProvidingReleasable |=\n (this.isProvidingSingleton && providerFactory.hasProvidesReleasableAnnotation());\n\n // gc\n providerFactoryClass = null;\n }\n\n if (providerFactory != null) {\n if (isSingleton) {\n providerInstance = providerFactory.createInstance(scope);\n\n if (!isReleasable) {\n // gc\n providerFactory = null;\n }\n\n if (isProvidingSingleton) {\n instance = providerInstance.get();\n return instance;\n }\n return providerInstance.get();\n }\n\n if (isProvidingSingleton) {\n instance = providerFactory.createInstance(scope).get();\n\n if (!isProvidingReleasable) {\n // gc\n providerFactory = null;\n }\n return instance;\n }\n\n return providerFactory.createInstance(scope).get();\n }\n\n throw new IllegalStateException(\n \"A provider can only be used with an instance, a provider, a factory or a provider factory. Should not happen.\");\n }", "public static synchronized Singleton getInstance() {\n\t\tif (mContext == null) {\n\t\t\tthrow new IllegalArgumentException(\"Impossible to get the instance. This class must be initialized before\");\n\t\t}\n\n\t\tif (instance == null) {\n\t\t\tinstance = new Singleton();\n\t\t}\n\n\t\treturn instance;\n\t}", "public static LifecycleProvider get() {\n return INSTANCE;\n }", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "public static SingletonEager get_instance(){\n }", "public static Singleton getInstance() {\n return mSing;\n }", "public static SingleObject getInstance(){\n return instance;\n }", "public DPSingletonLazyLoading getInstance(){ //not synchronize whole method. Instance oluşmuş olsa bile sürekli burada bekleme olur.\r\n\t\tif (instance == null){//check\r\n\t\t\tsynchronized(DPSingletonLazyLoading.class){ //critical section code NOT SYNCRONIZED(this) !!\r\n\t\t\t\tif (instance == null){ //double check\r\n\t\t\t\t\tinstance = new DPSingletonLazyLoading();//We are creating instance lazily at the time of the first request comes.\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static synchronized LocalDatabaseSingleton getInstance(Context context) {\r\n if (mInstance == null) {\r\n mInstance = new LocalDatabaseSingleton(context);\r\n }\r\n return mInstance;\r\n }", "public static Singleton instance() {\n return Holder.instance;\n }", "synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }", "public static WeatherSingleton getInstance(Context context) {\n if (instance == null) {\n instance = new WeatherSingleton(new ArrayList<WeatherNow>(), context);\n }\n return instance;\n }", "public static synchronized Singleton getInstanceTS() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "public static LazyInitializedSingleton getInstance(){ // method for create/return Object\n if(instance == null){//if instance null?\n instance = new LazyInitializedSingleton();//create new Object\n }\n return instance; // return early created object\n }", "@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Return the singleton instance from the SingletonHolder.\n return (Singleton<T>) SingletonHolder.INSTANCE;\n }", "static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }", "static TransactionList getInstance(Context context) {\n if (TransactionList.singleton_instance == null) {\n singleton_instance = new TransactionList(context);\n }\n return singleton_instance;\n }", "public static EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}", "@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Atomically set the reference's value to a new singleton iff\n // the current value is null. This constructor will most likely\n // be called more than once if instance() is called from\n // multiple threads, but only the first one is used.\n sSingletonAR\n .updateAndGet(u ->\n u != null ? u : new SingletonAR<T>());\n\n // Return the singleton's current value.\n return (Singleton<T>) sSingletonAR.get();\n }", "public static TodoData getInstance() {\n return instance;\n }", "static synchronized DownloadDatabaseHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new DownloadDatabaseHelper(context);\n }\n return sInstance;\n }", "public static synchronized RecipeDatabase getInstance(Context context)\n {\n if(instance==null)\n {\n instance=new RecipeDatabase(context.getApplicationContext());\n }\n return instance;\n\n }", "public static synchronized DatabaseHandler getInstance(Context context) {\n if (sInstance == null) {\r\n sInstance = new DatabaseHandler(context.getApplicationContext());\r\n }\r\n return sInstance;\r\n }", "public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }", "public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "public static synchronized DatabaseContext getInstance() {\r\n if (instance == null) {\r\n instance = new DatabaseContext();\r\n }\r\n return instance;\r\n }", "@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}", "synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }", "public static synchronized Database get() {\n return instance;\n }", "public static synchronized DatabaseHandler getInstance(Context context) {\n\t if (sInstance == null) {\r\n\t sInstance = new DatabaseHandler(context.getApplicationContext());\r\n\t }\r\n\t return sInstance;\r\n\t}", "public static Main getInstance() {\r\n return instance;\r\n }", "public static DatabaseAccess getInstance(Context context){\n if(instance == null){\n instance=new DatabaseAccess(context);\n }\n return instance;\n }", "public static WebContext getInstance() {\n return webContext;\n }", "public static synchronized DatabaseHelper getInstance(Context context) {\n /* Use the application context, which will ensure that you don't accidentally leak an\n * Activity's context. See this article for more information: http://bit.ly/6LRzfx*/\n if (sInstance == null) {\n sInstance = new DatabaseHelper(context.getApplicationContext());\n }\n return sInstance;\n }", "public static synchronized DatabaseHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new DatabaseHelper(context.getApplicationContext());\n }\n return sInstance;\n }", "public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }", "public static LazySingleton getInstance()\n {\n // Check null\n if (instance == null)\n instance = new LazySingleton();\n return instance;\n\n }", "public static synchronized VaultDatabaseHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new VaultDatabaseHelper(context.getApplicationContext());\n }\n return sInstance;\n }", "public static PMSFormulaContext getInstance() {\n return singleton;\n }", "public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}", "public static Main getInstance() {\n return instance;\n }", "public static ConnectionServer getInstance(Activity ctx) {\n if (instance == null) {\n instance = new ConnectionServer(ctx);\n }\n\n return instance;\n }", "public static synchronized SharedPreferencesManager getInstance(Context context){\n if(INSTANCE == null){\n // Initialize shared preferences and its editor\n sharedPreferences = context.getSharedPreferences(context.getPackageName(), Activity.MODE_PRIVATE);\n editor = sharedPreferences.edit();\n\n INSTANCE = new SharedPreferencesManager();\n }\n\n return INSTANCE;\n }", "public static PriorityExecutorSupplier getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static synchronized DatabaseHandler getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new DatabaseHandler(context.getApplicationContext());\n }\n return sInstance;\n }", "public static Connection getInstance() {\n return LazyHolder.INSTANCE;\n }", "public static synchronized LocationsDB getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new LocationsDB(context.getApplicationContext());\n\n }\n return sInstance;\n }", "public static FixtureCache getInstance() {\n\t\tif(instance==null) {\n\t\t\tsynchronized(lock) {\n\t\t\t\tif(instance==null) {\n\t\t\t\t\tinstance = new FixtureCache();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static EnduserApi getSharedInstance() {\n if (EnduserApi.sharedInstance == null) {\n throw new NullPointerException(\"Instance is null. Please use getSharedInstance(apikey, context) \" +\n \"or setSharedInstance\");\n }\n return EnduserApi.sharedInstance;\n }", "public SingletonSyncBlock getInstance() { // when getting a new instance, getInstance as synchronized method is\n\t\t\t\t\t\t\t\t\t\t\t\t// called\n\n\t\tif (SINGLETON_INSTANCE == null) { // if no Singleton was yet initialized, one instance will be created else,\n\t\t\t\t\t\t\t\t\t\t\t// it's returned the one already created.\n\n\t\t\tsynchronized (SingletonSyncBlock.class) { // synchronized block\n\n\t\t\t\tif (SINGLETON_INSTANCE == null) {\n\n\t\t\t\t\tSINGLETON_INSTANCE = new SingletonSyncBlock();\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn SINGLETON_INSTANCE;\n\n\t}", "public T get() {\n\t\treturn get(ModSettings.currentContext);\n\t}", "public static StatsManager getInstance(Context context) {\n if (ourInstance == null) {\n ourInstance = new StatsManager(context);\n }\n return ourInstance;\n }", "public static ThreadSafeSingleton getInstanceWithDoubleCheck() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (ThreadSafeSingleton.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new ThreadSafeSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static Settings get() {\n return INSTANCE;\n }", "public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}", "public static QardioSCHelper getInstance(Context context) {\n if (instance == null) {\n synchronized (QardioSCHelper.class) {\n if (instance == null) {\n instance = new QardioSCHelper(context);\n }\n }\n }\n return instance;\n }", "public static FilterCacheFactory getInstance() {\n return instance;\n }", "public static synchronized MultiThreadedSingleton getInstance() {\n\t\t//Lazy instantiation using double locking mechanism.\n\t\tif (singleton == null) {\n\t\t\tsynchronized (MultiThreadedSingleton.class) {\n\t\t\t\tif (singleton == null) {\n\t\t\t\t\tsimulateRandomActivity();\n\t\t\t\t\tsingleton = new MultiThreadedSingleton();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"created singleton: \" + singleton);\n\t\treturn singleton;\n\t}", "public static ResourceFactory get() {\r\n\t\treturn single;\r\n\t}", "public static synchronized DatabaseHelper getInstance (Context context){\n\n if(mHelper == null) {\n mHelper = new DatabaseHelper(context.getApplicationContext());\n }\n return mHelper;\n }", "public static Singleton getInstance()\r\n\t{\r\n\t\t// check if the instance is already created or not, required only for lazy init\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new Singleton();\r\n\t\treturn instance;\r\n\t}", "public static HelperCommon getInstance(final Context context) {\n if (sHelper == null) {\n // Always pass in the Application Context\n sHelper = new HelperCommon(context.getApplicationContext());\n }\n return sHelper;\n }", "public static synchronized DatabaseHelper getInstance(Context context) { \n\t\t // Use the application context, which will ensure that you \n\t\t // don't accidentally leak an Activity's context.\n\t\t // See this article for more information: http://bit.ly/6LRzfx\n\t\t if (sInstance == null) {\n\t\t sInstance = new DatabaseHelper(context.getApplicationContext());\n\t\t }\n\t\t return sInstance;\n\t\t}", "public MyServiceDataSingleton(Context context) {\r\n myContext = context;\r\n }", "public synchronized static MetaDataCache getInstance() {\r\n if (instance == null) {\r\n instance = new MetaDataCache();\r\n }\r\n return instance;\r\n }", "public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}", "public static synchronized TodoDatabaseHelper getInstance(Context context) {\n if (todoDatabaseHelper == null) {\n todoDatabaseHelper = new TodoDatabaseHelper(context.getApplicationContext());\n }\n return todoDatabaseHelper;\n }", "public static Controller getInstance(Context _context) {\r\n if (sInstance == null) {\r\n sInstance = new Controller(_context);\r\n } else {\r\n \tsInstance.mContext = _context;\r\n }\r\n return sInstance;\r\n }", "public static synchronized CustomerDbHelper getInstance(Context _context) {\n if (sInstance == null) {\n sInstance = new CustomerDbHelper(_context.getApplicationContext());\n }\n return sInstance;\n }", "public static Singleton getInstance() {\n\n if (_instance == null) {\n synchronized (Singleton.class) {\n if (_instance == null)\n _instance = new Singleton();\n }\n }\n return _instance;\n }", "public static synchronized GizwitsManager getInstance(final Context context) {\n\t\tif (managerInstance == null) {\n\t\t\tmanagerInstance = new GizwitsManager(context);\n\t\t}\n\t\treturn managerInstance;\n\t}", "public static synchronized LazyLoadingSingleton getInstanceSynchronized() {\n\t\tif (INSTANCE == null) {\n\t\t\tINSTANCE = new LazyLoadingSingleton();\n\t\t}\n\t\treturn INSTANCE;\n\t}", "public static synchronized NoteDatabase getInstance(Context context){\n if(instance == null){//Instantiate if instance is null\n instance = Room.databaseBuilder(context.getApplicationContext(),NoteDatabase.class,\"note_database\")\n .fallbackToDestructiveMigration()\n .addCallback(roomCallBack)\n .build();\n }\n return instance;\n }", "private static Injector instance() {\n if (instance == null) {\n instance = new Injector();\n }\n \n return instance;\n }", "public static ChatSingleton getInstance( ) {\n return singleton;\n }", "public static LOCFacade getInstance() {\r\n\t\tcreateInstance();\r\n\t\treturn instance;\r\n\t}", "public static RetrofitClient getInstance() {\n return OUR_INSTANCE;\n }", "public static Singleton getInstance() {\n if (instance == null) {\n synchronized (Singleton.class){\n if (instance == null) {\n instance = new Singleton();\n }\n }\n }\n return instance;\n }", "public abstract T get(String context);", "public static SlavesHolder getInstance() {\n if (instance == null) {\n instance = new SlavesHolder();\n }\n return instance;\n }" ]
[ "0.7729964", "0.740888", "0.73581964", "0.73580426", "0.7236581", "0.71133137", "0.6937681", "0.69307566", "0.6880928", "0.68800765", "0.68765634", "0.68726605", "0.68429554", "0.68217766", "0.6807674", "0.674565", "0.67062145", "0.6692505", "0.6683891", "0.66611844", "0.6648216", "0.66190517", "0.6610374", "0.66077095", "0.6595286", "0.65837777", "0.6550284", "0.65319467", "0.6525682", "0.65098464", "0.65068114", "0.6504629", "0.6498495", "0.647504", "0.6474813", "0.6457706", "0.64507633", "0.64287555", "0.6427147", "0.6412839", "0.641177", "0.64114463", "0.64070183", "0.63983554", "0.63966584", "0.6394662", "0.6388426", "0.6377696", "0.63676405", "0.63654137", "0.6361938", "0.6359808", "0.6357262", "0.63519794", "0.63459694", "0.63415307", "0.63359016", "0.63271165", "0.63239866", "0.63141316", "0.6309941", "0.62952894", "0.62952894", "0.62952894", "0.62952894", "0.6285543", "0.62853265", "0.6281261", "0.6276061", "0.62541115", "0.62445533", "0.62412024", "0.6239576", "0.6230334", "0.62208414", "0.62176883", "0.62171763", "0.62150073", "0.62134874", "0.6204429", "0.6198772", "0.6198435", "0.6194719", "0.61939824", "0.6192257", "0.61875874", "0.6183755", "0.61817527", "0.617662", "0.6175841", "0.6169969", "0.616874", "0.61599636", "0.6159765", "0.6158152", "0.6153569", "0.6151763", "0.61489743", "0.61407053", "0.61352557", "0.61172944" ]
0.0
-1
Constructor with Context from the outside, and instantiation of Database.
private ContactModel(Context context) { mContext = context.getApplicationContext(); mDatabase = new ContactBaseHelper(mContext) .getWritableDatabase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }", "public Database(Context context)\n\t{\n\t\t/* Instanciation de l'openHelper */\n\t\tDBOpenHelper helper = new DBOpenHelper(context);\n\t\t\n\t\t/* Load de la database */\n\t\t//TODO passer en asynchrone pour les perfs\n\t\tmainDatabase = helper.getWritableDatabase();\n\t\t\n\t\t/* DEBUG PRINT */\n\t\tLog.i(\"info\", \"Database Loading Suceeded\");\n\t}", "public Database(Context context) { \n\t\tsuper( context, database_MEF, null, 2); \n\t}", "public Database(Context context) {\n super(context, DB_NAME, null, DB_VER);\n }", "private DatabaseAccess(Context context) {\n this.openHelper = new MyDatabase(context);\n }", "private DatabaseAccess(Context context) {\n this.openHelper = new DatabaseOpenHelper(context);\n }", "public Database(Context context) {\n super(context, nome_db, null, versao_db);\n }", "public DatabaseAccess(Context context) {\n this.openHelper = new OlpbhtbDatabase(context);\n }", "private DatabaseAccess(Context context) {\n this.openHelper = new RecipesDatabase(context);\n }", "public ContextDaoImpl() {\n Set<Commissioner> commissionerSet = new HashSet<>();\n List<String> logins = new ArrayList<>();\n commissionerSet.add(new Commissioner(\"victor.net\", \"25345Qw&&\", true));\n commissionerSet.add(new Commissioner(\"egor.net\", \"3456eR&21\", false));\n commissionerSet.add(new Commissioner(\"igor.net\", \"77??SDSw23\", false));\n logins.add(\"[email protected]\");\n logins.add(\"[email protected]\");\n logins.add(\"[email protected]\");\n Database.setCandidateSet(new HashSet<>());\n Database.setVoterSet(new HashSet<>());\n Database.setLogins(logins);\n Database.setCommissionerSet(commissionerSet);\n }", "private Db() {\n super(Ke.getDatabase(), null);\n }", "public DatabaseHandler(Context context){\n super(context, \"tienda.db\", null, 1);\n }", "public SQLDataBase(Context context){ // is this supposed to be public?\n super(context, DATABASE_NAME, null, 1);\n }", "public DatabaseHandler(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "public DatabaseHandler(Context context) {\r\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\r\n }", "private DatabaseAccess(Context context){\n this.openHelper=new DatabaseOpenHelper(context);\n }", "public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}", "public DatabaseStorage(Context context)\n {\n this.database = new DatabaseStorageHelper(context);\n }", "public MyDBHandler(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "private DatabaseHelper(Context cont) {\n super(cont, DB_NAME, null, DB_VERSION);\n this.context = cont;\n }", "private LocalDatabaseSingleton(Context context) {\r\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\r\n this.mContext = context;\r\n }", "public static void initialize(Context context) {\n _db = new DatabaseHandler(context);\n }", "public SQLHandler(Context context) {\n \t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n \t}", "public SQLManager(Context context) {\n handler = new SQLHandler(context);\n }", "public Database() {\n if (init) {\n\n //creating Transaction data\n Transaction transactionOne\n = new Transaction(1, \"Debit\", \"Spar Grocery\", 54.68,1);\n\n transactionDB.add(transactionOne);\n\n // Creating an Account data\n Account accountOne = new Account(1, 445, 111111111, \"Savings\",\n 1250.24, transactionDB);\n\n accountDB.add(accountOne);\n\n //creating withdrawal data\n Withdrawal withdrawalOne = new Withdrawal(1, 64422545, 600.89);\n withdrawalDB.add(withdrawalOne);\n\n //creating transfer data\n Transfer transferOne = new Transfer(1, 25252525, 521.23);\n transferDB.add(transferOne);\n\n //creating lodgement data\n Lodgement lodgementOne = new Lodgement(1, 67766666, 521.23);\n lodgementDB.add(lodgementOne);\n\n //add Customer data \n Customer customerOne\n = new Customer(1, \"Darth Vader\", \"[email protected]\",\n \"Level 5, Suit Dark\", \"darkSideIsGoodStuff\",\n accountDB, withdrawalDB, transferDB, lodgementDB);\n\n customerDB.add(customerOne);\n\n init = false;\n }\n }", "public GastoDAO(Context context){\n dbHelper = new MyDatabaseHelper(context);\n database = dbHelper.getWritableDatabase();\n }", "public DBHandler(Context context) {\n super(context, DB_NAME, null, DB_VERSION);\n }", "private DBHelper(Context context) {\n super(context, DB_NAME, null, DB_VERSION);\n }", "public DBMS(Context context) {\n super(context, DBName, null, DBVersion);\n Log.e(\"DBMS=>\", \"yes Db bna d ha\");\n }", "public ContextDaoImpl(Context context) {\n Database.setCandidateSet(context.getCandidateSet());\n Database.setVoterSet(context.getVoterSet());\n Database.setLogins(context.getLogins());\n Database.setCommissionerSet(context.getCommissionerSet());\n }", "public DataSource(Context context) {\n dbHelper = new MySQLiteHelper(context);\n database = dbHelper.getWritableDatabase();\n dbHelper.close();\n }", "public DatabaseBackend(Context context) {\n super(context, Db_name, null, Db_version);\n }", "public DatabaseHelper(Context context) {\n super(context, \"caballoscocheros.db\", null);\n\n db = getWritableDatabase();\n DaoMaster daoMaster = new DaoMaster(db);\n daoSession = daoMaster.newSession();\n }", "private CalendarDBhelper(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "public DBManager(Context context){ \n\t\thelper = new DBHelper(context); \n\t\tdb = helper.getWritableDatabase(); \n\t}", "public DatabaseHelper(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n this.context = context;\n res = context.getResources();\n }", "private DatabaseHelper(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "public SQLHandler(Context context) {\n super(context, DB_NAME, null, DB_VERSION);\n }", "public UserInfoDatabase(Context context) {\r\n mDatabaseOpenHelper = new DatabaseOpenHelper(context);\r\n }", "public GaelDbHelper( final Context context ){\n\tsuper( context, DATABASE_NAME, null, DATABASE_VERSION );\n\tmContext = context;\n\tlog.trace( \"GaelDbHelper.constructor():\" + DATABASE_NAME );\n}", "public DB() {\r\n\t\r\n\t}", "public DatabaseUtilities(@NonNull Context context) {\n this.context = context;\n this.init(context);\n this.realmConfiguration = DatabaseUtilities.buildRealmConfig(context, null, null, null);\n }", "public DatabaseManager(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "public DBHelper(Context c) {\n\t\tsuper(c, DB_NAME, null, version);\n\t}", "public SQLiteHandler(Context context) {\n\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "private DatabaseHandler(){\n createConnection();\n }", "public DBHelper(Context context) {\n super(context, Database_Name, null, 1);\n\n }", "public DataBaseHelper(Context context) {\n \n \tsuper(context, DB_NAME, null, 1);\n this.myContext = context;\n }", "public DatabaseHelper(Context context) {\n super(context, DATABASE_NAME, null, 1);\n }", "public DatabaseNoteHelper(@Nullable Context context) {\r\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\r\n }", "public sqlDatabase() {\n }", "public SQLHelper(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "public Database() {\n //Assign instance variables.\n this.movies = new ArrayList<>();\n this.users = new ArrayList<>();\n }", "private DBHelper(Context context){\n this.context= context;\n tablesClass = new TablesClass(context, Constants.DATABASE_NAME,null,Constants.DB_VERSION);\n\n }", "public DataBaseHelper(Context context) {\n\n super(context, DB_NAME, null, 1);\n this.myContext = context;\n }", "public DBManager(Context ctx) {\n this.mCtx = ctx;\n }", "public NdbAdapter(Context context) {\n this.context = context;\n }", "public DBAdapter(Context ctx) {\n this.context = ctx;\n myDBHelper = new DatabaseHelper(context);\n }", "private TodoDatabaseHelper(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "public Database(){\n ItemBox.getLogger().info(\"[Database] protocol version \" + net.mckitsu.itembox.protocol.ItemBoxProtocol.getVersion());\n }", "public Database() {\n\t\tconn = null;\n\t}", "private void initDB() {\n dataBaseHelper = new DataBaseHelper(this);\n }", "private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }", "private CustomerDatabaseHelper(Context context){\n _openHelper = new DatabaseOpenHelper(context);\n }", "public static synchronized NoteDatabase getInstance(Context context){\n if(instance == null){//Instantiate if instance is null\n instance = Room.databaseBuilder(context.getApplicationContext(),NoteDatabase.class,\"note_database\")\n .fallbackToDestructiveMigration()\n .addCallback(roomCallBack)\n .build();\n }\n return instance;\n }", "private void initDb() {\n\t\tif (dbHelper == null) {\n\t\t\tdbHelper = new DatabaseOpenHelper(this);\n\t\t}\n\t\tif (dbAccess == null) {\n\t\t\tdbAccess = new DatabaseAccess(dbHelper.getWritableDatabase());\n\t\t}\n\t}", "private CustomerDbHelper(Context _context) {\n super(_context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "private DatabaseOperations() {\n }", "private DatabaseCustomAccess(Context context) {\n\t\thelper = new SpokaneValleyDatabaseHelper(context);\n\n\t\tsaveInitialPoolLocation(); // save initial pools into database\n\t\tsaveInitialTotalScore(); // create total score in database\n\t\tsaveInitialGameLocation(); // create game location for GPS checking\n\t\tLoadingDatabaseTotalScore();\n\t\tLoadingDatabaseScores();\n\t\tLoadingDatabaseGameLocation();\n\t}", "public DbHelper(Context context) {\n super(context, DBNAME, null, 1);\n }", "public DataBaseManager(Context context) {\n helper = new DataBaseHelper(context);\n db = helper.getWritableDatabase();\n }", "public DatabaseAdaptor() {\n\t\ttry {\n\t\t\tdatabase = new MyDatabase(DB_NAME);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}", "public TasksDataSource(Context context) {\n dbHelper = new SQLiteHelper(context);\n }", "public Database() {\n size = 0;\n tables = new HashMap();\n p = new Parse(this);\n }", "private DatabaseManager() {}", "public DatabaseHelper(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "public DatabaseHelper(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "public DatabaseOpenHelper(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "TaskDbHelper(Context context){\n super(context, DATA_BASE_NAME, null, DATABASE_VERSION);\n }", "public DbHelper(Context context) {\r\n\t\tsuper(context, DATABASE_NAME, null, VERSION);\r\n\t}", "Context(final DatabaseMetaData databaseMetaData) {\n super();\n this.databaseMetaData = Objects.requireNonNull(databaseMetaData, \"databaseMetaData is null\");\n }", "SmDatabaseHelper(Context context) {\n super(context, DBNAME, null, 1);\n }", "public DBHelper(Context c) {\r\n context = c;\r\n dbHelper = new TablesClass(context, Constants.DATABASE_NAME, null, Constants.DATABASE_VERSION);\r\n }", "private AttendantDatabase() {}", "public DatabaseOperations(){\n\n }", "public static synchronized AppDatabase getInstance(Context context){\n if(instance == null){\n //TODO: Remove allowMainThreadQueries, because it can freeze UI on big queries (but normally not on this project). Better to call queries outside of the UI thread.\n instance = Room.databaseBuilder(context.getApplicationContext(), AppDatabase.class, \"app_db\").fallbackToDestructiveMigration().allowMainThreadQueries().build();\n }\n return instance;\n }", "private DatabaseManager() {\r\n }", "public Persistence() {\n\t\tconn = dbConnection();\n\t}", "DatabaseController(Context context){\n helper=new MyHelper(context);\n }", "public BookStorage (Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t}", "SimpleDatabaseHelper(Context context) {\n _openHelper = new SimpleSQLiteOpenHelper(context);\n }", "private DBConnection() \n {\n initConnection();\n }", "public SQLiteHelper(Context context) {\n\t\tsuper(context, getDefaultDatabaseName(context), null, DEFAULT_VERSION);\n\t\t\n\t\tLogger.log(\"Database path:\"+ context.getDatabasePath(getDefaultDatabaseName(context)));\n\t}", "public db_adapter(Context ctx) {\n\t\tthis.mCtx = ctx;\n\t}", "DQDatabaseHelper(Context context) {\n\n\t\tsuper(context, DQDatabaseHelper.DB_NAME, null, DQDatabaseHelper.DATABASE_VERSION);\n\t\tthis.mContext = context;\n\t}", "static AppDatabase getDatabase(final Context context) {\n if (INSTANCE == null) { //only a single thread can run this block at once\n //we only want this because we don't want to run too many databases\n synchronized (AppDatabase.class) {\n if(INSTANCE == null) {\n INSTANCE = Room.databaseBuilder(context.getApplicationContext(), AppDatabase.class, \"saved_locations_db\").build(); //build a database object\n }\n\n }\n }\n return INSTANCE;\n }", "public TrapDbHelper(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "public TripPlannerDB(Context context) {\n // Create the database helper object\n dbHelper = new TripPlannerDBHelper(context, DB_NAME, null, DB_VERSION);\n dtListType = new TypeToken<ArrayList<DT>>(){}.getType();\n }", "public DBConnections(Context context) {\n super(context, DbName, null, 1);\n\n }", "private AppRepo(Context context) {\n mDb = AppDB.getInstance(context);\n mFoods = getAllFoods();\n mPortions = getAllPortions();\n mMeals = getAllMeals();\n mConsumed = getAllConsumed();\n }" ]
[ "0.84380955", "0.80774504", "0.7931019", "0.7801445", "0.7741273", "0.7716652", "0.76555794", "0.76284707", "0.75969374", "0.75681627", "0.75391287", "0.7494194", "0.74889773", "0.74585474", "0.7431362", "0.7423389", "0.7381209", "0.73595506", "0.7290601", "0.7288254", "0.72868997", "0.72730386", "0.72331226", "0.72163945", "0.72089505", "0.71936125", "0.71815044", "0.71668404", "0.71613383", "0.7147806", "0.713211", "0.71236336", "0.7109812", "0.7102098", "0.7092573", "0.70857286", "0.70846", "0.7082378", "0.7080239", "0.70588076", "0.70567715", "0.7049373", "0.7047153", "0.70357287", "0.7032624", "0.7020194", "0.70165527", "0.7012594", "0.7010593", "0.7009784", "0.70054996", "0.6975574", "0.6970177", "0.6959604", "0.69591516", "0.69479835", "0.6942592", "0.6942356", "0.69395846", "0.69308776", "0.69244796", "0.69107693", "0.6909106", "0.69083685", "0.6905035", "0.6879441", "0.6878987", "0.68717855", "0.68475723", "0.6818045", "0.6817501", "0.6813616", "0.6804785", "0.6804007", "0.67943573", "0.678874", "0.6784403", "0.6784403", "0.6779734", "0.67769504", "0.67654526", "0.67598283", "0.67494535", "0.67458457", "0.67430586", "0.67230725", "0.6717908", "0.67104834", "0.6707384", "0.66964006", "0.6694927", "0.66934174", "0.66894937", "0.66888595", "0.66723776", "0.6671883", "0.6666999", "0.6663596", "0.6658247", "0.6653337", "0.6652592" ]
0.0
-1
The public GetAll method that handles db contact.
public List<ContactBE> getContacts() { List<ContactBE> contacts = new ArrayList<>(); try (ContactCurserWrapper cursor = queryContacts(null, null)) { cursor.moveToFirst(); while (!cursor.isAfterLast()) { contacts.add(cursor.getContact()); cursor.moveToNext(); } } return contacts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "public Collection<T> getAll() throws DaoException;", "@Override\n @Transactional\n public List<Contacts> findAll() {\n Session currentSession = entiyManager.unwrap(Session.class);\n\n //create the query\n\n Query<Contacts> theQuery = currentSession.createQuery(\"from Contacts\", Contacts.class);\n\n //execute query and get result list\n\n List<Contacts> contacts = theQuery.getResultList();\n\n //return the results\n\n return contacts;\n }", "@Override\n public List<T> getAll() throws SQLException {\n\n return this.dao.queryForAll();\n\n }", "@Override\n\tpublic List<Contact> findAll() throws Exception {\n\t\treturn queryEntity(\"select * from contact\", null);\n\t}", "@GetMapping(\"getAll\")\n\tpublic ServiceResponse<ContactAllResponse> getAll() {\n\t\treturn contactService.getAll();\n\t}", "private void getAll(){\n if (!LOADED_ALL) {\n Message msg_getpersons = Message.obtain(getPersonsHandlerThread.getHandler());\n msg_getpersons.what = GetPersonsHandlerThread.TASK_GET_PERSONS;\n int table1 = TABLE_ALL;\n msg_getpersons.arg1 = table1;\n Log.d(TAG, \"DbOperationsRunnable: run(): preparing message msg_getperson with following attributes:\");\n Log.d(TAG, \"DbOperationsRunnable: run(): msg_getpersons.what = \" + msg_getpersons.what);\n Log.d(TAG, \"DbOperationsRunnable: run(): msg_getpersons.arg1 = \" + msg_getpersons.arg1);\n Log.d(TAG, \"DbOperationsRunnable: run(): sending message...\");\n msg_getpersons.sendToTarget();\n while (true) {\n if (DONE_TASK_GETPERSONS) {\n DONE_TASK_GETPERSONS = false;\n break;\n }\n }\n LOADED_ALL = true;\n } else {\n persons_list.clear();\n persons_list.addAll(all_list);\n }\n }", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "public List<Contact> getAllContacts();", "@Override\n\tpublic List<Contact> getAllContacts() {\n\t\t\n\t\treturn repository.findAll();\n\t}", "@Override\r\n\tpublic List<CustVO> getAll() {\n\t\tList<CustVO> list = new ArrayList<CustVO>();\r\n\t\tCustVO custVO = null;\r\n\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tcon = ds.getConnection();\r\n\t\t\tpstmt = con.prepareStatement(GET_ALL_STMT);\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustVO = new CustVO();\r\n\t\t\t\tcustVO.setCust_ID(rs.getString(\"CUST_ID\"));\r\n\t\t\t\tcustVO.setCust_acc(rs.getString(\"CUST_ACC\"));\r\n\t\t\t\tcustVO.setCust_pwd(rs.getString(\"CUST_PWD\"));\r\n\t\t\t\tcustVO.setCust_name(rs.getString(\"CUST_NAME\"));\r\n\t\t\t\tcustVO.setCust_sex(rs.getString(\"CUST_SEX\"));\r\n\t\t\t\tcustVO.setCust_tel(rs.getString(\"CUST_TEL\"));\r\n\t\t\t\tcustVO.setCust_addr(rs.getString(\"CUST_ADDR\"));\r\n\t\t\t\tcustVO.setCust_pid(rs.getString(\"CUST_PID\"));\r\n\t\t\t\tcustVO.setCust_mail(rs.getString(\"CUST_MAIL\"));\r\n\t\t\t\tcustVO.setCust_brd(rs.getDate(\"CUST_BRD\"));\r\n\t\t\t\tcustVO.setCust_reg(rs.getDate(\"CUST_REG\"));\r\n\t\t\t\tcustVO.setCust_pic(rs.getBytes(\"CUST_PIC\"));\r\n\t\t\t\tcustVO.setCust_status(rs.getString(\"CUST_STATUS\"));\r\n\t\t\t\tcustVO.setCust_niname(rs.getString(\"CUST_NINAME\"));\r\n\t\t\t}\r\n\t\t} catch (SQLException se) {\r\n\t\t\tthrow new RuntimeException(\"A database error occured. \" + se.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (con != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}", "@Override\n\tpublic List<Company> getAll() {\n\t\treturn dao.getAll();\n\t}", "@Override\n\tpublic void getAll() {\n\t\tArrayList<Post> list = new ArrayList<Post>();\n\t\tlist = dao.selectAll();\n\t\t\n\t\tfor (Post p : list) {\n\t\t\tSystem.out.println(p.getPostId() + \".\" + p.getPostName() + \" 작성자:\" + p.getMemberId());\n\t\t}\n\t}", "public List<Contact> getAllContacts() {\n List<Contact> contactList = new ArrayList<Contact>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_CONTACTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Contact contact = new Contact();\n contact.set_id((cursor.getInt(0)));\n contact.set_name(cursor.getString(1));\n contact.set_audios(cursor.getString(2));\n contact.set_captured_image(cursor.getString(3));\n contact.set_contents(cursor.getString(4));\n contact.set_delelte_var(cursor.getInt(5));\n contact.set_gallery_image(cursor.getString(6));\n contact.set_recycle_delete(cursor.getInt(7));\n contact.set_photo(cursor.getString(8));\n // Adding contact to list\n contactList.add(contact);\n } while (cursor.moveToNext());\n }\n\n // return contact list\n return contactList;\n }", "@Override\n\tpublic List<Contact> getAllContact() {\n\n\t\tList<Contact> contactList = new ArrayList<>();\n\n\t\tList<ContactDetailsEntity> entityList = contactRepositeries.findAll();\n\n\t\tList<ContactDetailsEntity> filterEntity = entityList.stream()\n\t\t\t\t.filter(entity -> \"y\".equals(entity.getActiveSwitch())).collect(Collectors.toList());\n\n\t\tif (!filterEntity.isEmpty()) {\n\t\t\tfilterEntity.forEach(entity -> {\n\t\t\t\tContact c = new Contact();\n\t\t\t\tBeanUtils.copyProperties(entity, c);\n\t\t\t\tcontactList.add(c);\n\t\t\t});\n\t\t}\n\t\treturn contactList;\n\t}", "List<T> getAll() throws PersistException;", "@Override\n @Transactional\n public List getAll() {\n return routDAO.getAll();\n }", "@Override\r\n public List<Anggota> getAll() {\r\n List<Anggota> datas = new ArrayList<>();\r\n String query = \"SELECT *From Anggota\";\r\n try {\r\n\r\n PreparedStatement preparedStatement = connection.prepareStatement(query);\r\n ResultSet rs = preparedStatement.executeQuery();\r\n\r\n while (rs.next()) {\r\n Anggota anggota = new Anggota();\r\n anggota.setKdAnggota(rs.getString(1));\r\n anggota.setNmAnggota(rs.getString(2));\r\n anggota.setTelepon(rs.getString(3));\r\n anggota.setAlamat(rs.getString(4));\r\n datas.add(anggota);\r\n }\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(AnggotaDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return datas;\r\n\r\n }", "@Override\n\tpublic List<Client> getAll() {\n\t\treturn dao.getAll(Client.class);\n\t}", "@Override\n\tpublic ResultWrapper<List<Todos>> getAll() {\n\t\tResultWrapper<List<Todos>> rs = new ResultWrapper<List<Todos>>();\n\t\tList<Todos> todosList = todosRepo.findAllTodos();\n\t\tif (todosList.size() > 0) {\n\t\t\trs.succeedGet(todosList);\n\t\t\treturn rs;\n\t\t} else {\n\t\t\trs.setResult(todosList);\n\t\t\trs.setStatus(Result.SUCCESS);\n\t\t\trs.setMessage(\"List is empty\");\n\t\t\treturn rs;\n\t\t}\n\t}", "public Cursor getAllContact()\n {\n return db.query(DATABASE_TABLE,new String[]{KEY_ROWID,KEY_NAME,\n KEY_EMAIL},null,null,null,null,null);\n }", "@GetMapping(\"/contacts\")\r\n\tCollectionModel<EntityModel<Contact>> all() {\r\n\t\t//Use map to call toModel on each Contact resource\r\n\t List<EntityModel<Contact>> contacts = repo.findAll().stream()\r\n\t .map(assembler::toModel)\r\n\t .collect(Collectors.toList());\r\n\t return CollectionModel.of(contacts, linkTo(methodOn(ContactController.class).all()).withSelfRel());\r\n\t}", "public abstract List<Object> getAll();", "public List<Consulta> getAll() throws BusinessException;", "@Override\n\tpublic List<Dispositivo> getAll() {\n\t\treturn (List<Dispositivo>) dispositivoDao.findAll();\n\t}", "@Override\n public ArrayList<Course> getAll() {\n ArrayList<Course> allCourses = new ArrayList();\n String statement = FINDALL;\n ResultSet rs = data.makeStatement(statement);\n try {\n while(rs.next()){\n Course course = new Course(rs.getInt(\"id\"),rs.getString(\"title\"),rs.getString(\"stream\"),\n rs.getString(\"type\"),rs.getDate(\"start_date\").toLocalDate(),rs.getDate(\"end_date\").toLocalDate());\n allCourses.add(course);\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getAll()\");\n }\n finally{\n data.closeConnections(rs,data.statement,data.conn);\n }\n return allCourses;\n }", "public ArrayList<Contacto> obtenerDatos(){\n\n BaseDatos db=new BaseDatos(context);\n insertarContactos(db);\n\n return db.obtenerTodosContactos();\n\n }", "@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}", "@Override\n public List<Seq> getAll() {\n Connection conn = null;\n Statement stmt = null;\n List<Seq> listSeqs = new ArrayList<>();\n\n try {\n String url = \"jdbc:sqlite:src\\\\database\\\\AT2_Mobile.db\";\n conn = DriverManager.getConnection(url);\n stmt = conn.createStatement();\n ProcessesDAO pdao = new ProcessesDAO();\n String sql = \"select * from seq;\";\n ResultSet rs = stmt.executeQuery(sql);\n\n while (rs.next()) {\n\n Seq seq = new Seq(rs.getInt(\"id\"), pdao.getbyidentifier(rs.getString(\"identifier\")), rs.getInt(\"seq_number\"));\n listSeqs.add(seq);\n }\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n } finally {\n try {\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n }\n return listSeqs;\n }", "public abstract List<Company> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "private List<String> queryForAll() {\n // query for all of the data objects in the database\n List<Contact> list = dao.queryForAll();\n List<String> creadentials = new ArrayList<String>();\n for (Contact contact : list) {\n creadentials.add(contact.email);\n creadentials.add(contact.password);\n }\n return creadentials;\n }", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "public ArrayList<TEntity> getAll(){\n ArrayList<TEntity> list = new ArrayList<TEntity>();\n\n Cursor cursor = db.query(tableName, columns, null, null, null, null, null);\n\n cursor.moveToFirst();\n\n while (!cursor.isAfterLast()) {\n list.add(fromCursor(cursor));\n cursor.moveToNext();\n }\n\n return list;\n }", "@Override\n\tpublic List<PersonelContract> GetAll() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List queryAll() throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Commande> getAll() {\n\n\t\ttry {\n\n\t\t\tps = this.connection.prepareStatement(\"SELECT * FROM commandes\");\n\n\t\t\trs = ps.executeQuery();\n\n\t\t\tList<Commande> listeCommandesBDD = new ArrayList<>();\n\t\t\tCommande commande = null;\n\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tcommande = new Commande(rs.getInt(1), rs.getDate(2), rs.getInt(3));\n\t\t\t\tlisteCommandesBDD.add(commande);\n\n\t\t\t} // end while\n\n\t\t\treturn listeCommandesBDD;\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"...(CommandeDAOImpl) erreur de l'execution de getAll()...\");\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t\tps.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} // end finally\n\n\t\treturn null;\n\n\t}", "public List findAll() {\n\t\treturn dao.findAll();\r\n\t}", "public List<Book> getAll() {\n return bookFacade.findAll(); \n }", "@Override\n\tpublic List<NewsVO> getAll() {\n\t\tList<NewsVO> list = new ArrayList<NewsVO>();\n\t\tNewsVO newsVO = null;\n\n\t\tConnection con = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rs = null;\n\n\t\ttry {\n\n\t\t\tClass.forName(driver);\n\t\t\tcon = DriverManager.getConnection(url, userid, passwd);\n\t\t\tpstmt = con.prepareStatement(GET_ALL_STMT);\n\t\t\trs = pstmt.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\t// empVO 也稱為 Domain objects\n\t\t\t\tnewsVO = new NewsVO();\n\t\t\t\tnewsVO.setNews_id(rs.getString(\"news_id\"));\n\t\t\t\tnewsVO.setNews_content(rs.getString(\"news_content\"));\n\t\t\t\tnewsVO.setNews_date(rs.getTimestamp(\"news_date\"));\n\t\t\t\tlist.add(newsVO); // Store the row in the list\n\t\t\t}\n\n\t\t\t// Handle any driver errors\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tthrow new RuntimeException(\"Couldn't load database driver. \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\t// Handle any SQL errors\n\t\t} catch (SQLException se) {\n\t\t\tthrow new RuntimeException(\"A database error occured. \"\n\t\t\t\t\t+ se.getMessage());\n\t\t\t// Clean up JDBC resources\n\t\t} finally {\n\t\t\tif (rs != null) {\n\t\t\t\ttry {\n\t\t\t\t\trs.close();\n\t\t\t\t} catch (SQLException se) {\n\t\t\t\t\tse.printStackTrace(System.err);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pstmt != null) {\n\t\t\t\ttry {\n\t\t\t\t\tpstmt.close();\n\t\t\t\t} catch (SQLException se) {\n\t\t\t\t\tse.printStackTrace(System.err);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (con != null) {\n\t\t\t\ttry {\n\t\t\t\t\tcon.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace(System.err);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "public List getAll() throws RepositoryException {\n\t\treturn DatanucleusCRUDUtils.getAll(getEntity().getSimpleName());\n\t}", "@Override\r\n\tpublic List findAll() {\n\t\treturn usermaindao.findAll();\r\n\t}", "List<User> getAll() throws SQLException;", "@Override\n\tpublic List<T> getAllEntry() {\n\t\treturn this.hibernateTemplate.find(\"from \"+this.classt.getName());\n\t}", "public List<ContentInterventoBOBean> execGetAll() {\n System.out.println(\"InterventoLogics - execGetAll\");\n InterventoClient client = new InterventoClient(new ContentInterventoRequestBean());\n try {\n client.getAll();\n return BOFactory.convertWorkableToBOInterventi(client.getResList());\n }catch(Exception e){\n e.printStackTrace();\n }\n return null;\n }", "@Override\n\t@Transactional\n\tpublic List<Customer> getAll() {\n\t\tList<Customer> loadAll = hibernateTemplate.loadAll(Customer.class);\n\t\treturn loadAll;\n\t}", "@Override\n\tpublic List<Order> readAll() {\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT * FROM orders\");) {\n\t\t\tList<Order> orderList = new ArrayList<>();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\torderList.add(modelFromResultSet(resultSet));\n\t\t\t}\n\t\t\treturn orderList;\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn new ArrayList<>();\n\t}", "@Override\r\npublic List<Map<String, Object>> readAll() {\n\treturn detalle_pedidoDao.realAll();\r\n}", "void db_all(Context context);", "public List getAll(){\n\t\tList<Person> personList = personRepository.getAll();\n\t\treturn personList;\n\t}", "public String getAllContacts() {\n\t\treturn \"SELECT * FROM CONTACTS\";\n\t}", "@Override\n\tpublic List<CreditCard> getAll(){\n\t\t\n\t\treturn creditCardDao.findAll();\n\t}", "@Override\n\t@Transactional\n\tpublic List<DetalleCarrito> readAll() throws Exception {\n\t\treturn detalleCarritoRepository.findAll();\n\t}", "@Override\n public Collection<FasciaOrariaBean> doRetrieveAll() throws SQLException {\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"SELECT * FROM fasciaoraria\";\n ArrayList<FasciaOrariaBean> collection = new ArrayList<>();\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n System.out.println(\"DoRetriveAll\" + statement);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n FasciaOrariaBean bean = new FasciaOrariaBean();\n bean.setId(rs.getInt(\"id\"));\n bean.setFascia(rs.getString(\"fascia\"));\n collection.add(bean);\n }\n return collection;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n return collection;\n }", "@Override\n\tpublic List<Empresa> getAll() {\n\t\treturn empresaJpaRepository.findAll();\n\t}", "@Override\n\tpublic List<Users> getAll() {\n\t\treturn usersDAO.getAll();\n\t}", "@Override\n\tpublic List<BaseEntity> getAll(BaseEntity entity) throws DaoException {\n\t\treturn null;\n\t}", "@RequestMapping(value=\"/getbooks\", method=RequestMethod.GET, produces = \"application/json\")\n\tpublic List<Book> getAll() {\n\t\tList<Book> books = new ArrayList<>();\n\t\tbooks = bookDao.getAllFromDB();\n\t\t\n\t\treturn books;\n\t}", "@Override\n\t@Transactional\n\tpublic List<T> getAll() {\n\t\tList<?> result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.list();\n\t\treturn result.stream()\n\t\t\t\t.map(e -> initialize(checkType(e)))\n\t\t\t\t.filter(e -> e != null)\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public Cursor fetchAll() {\n\t\treturn db.query(tableName, fields, null, null, null, null, null);\n\t}", "public abstract List<Log> getAll() throws DatabaseConfigException;", "@Override\n\tpublic List<Cliente> readAll() {\n\t\treturn clientedao.readAll();\n\t}", "public List<MessageInfo> getAllInfo() {\n List<MessageInfo> messageList = new ArrayList<MessageInfo>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_CONTACTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n\n MessageInfo messageInfo = new MessageInfo();\n messageInfo.setBankName(cursor.getString(0));\n messageInfo.setDate(cursor.getString(1));\n messageInfo.setCreDeb(cursor.getString(2));\n messageInfo.setAccNumber(cursor.getString(3));\n messageInfo.setBal(cursor.getFloat(4));\n messageInfo.setAmount(cursor.getFloat(5));\n messageList.add(messageInfo);\n\n\n } while (cursor.moveToNext());\n }\n\n // return contact list\n cursor.close();\n return messageList;\n }", "@Override\r\n\tpublic List<Repair> queryAll() {\n\t\treturn repairDao.queryAll();\r\n\t}", "@Override\n\tpublic List<BookInfoVO> findAll() {\n\t\treturn bookInfoDao.findAll();\n\t}", "public List<T> selectAll() {\n Logger logger = getLogger();\n List<T> objectList = new ArrayList<>();\n try (Connection connection = getConnection();\n PreparedStatement preparedStatement = connection.prepareStatement(getSelectAll())) {\n\n logger.info(\"Executing statement: \" + preparedStatement);\n ResultSet rs = preparedStatement.executeQuery();\n\n while (rs.next()) {\n T object = setObjectParams(rs);\n setObjectId(rs, object);\n objectList.add(object);\n }\n } catch (SQLException e) {\n logger.error(e.getMessage());\n }\n logger.info(\"Select all: success\");\n return objectList;\n }", "public List<Ejemplar> getAll();", "@Transactional\n\n\t@Override\n\tpublic Collection<FileModel> getAll() {\n\t\treturn fm.findAll();\n\t}", "@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "public Cursor fetchAll() {\n\t\tCursor cursor = db.query(CertificationConstants.DB_TABLE, CertificationConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}", "@RequestMapping(value = \"\", method = RequestMethod.GET)\r\n public ArrayList<Bonus> getAllBonus() {\r\n return DatabaseBonus.getBonusDatabase();\r\n }", "@Override\n\tpublic List<Product> getAll() {\n\t\tQuery query = session.createQuery(\"from Product \");\n\t\t\n\t\treturn query.getResultList();\n\t}", "@Override\n public List<Client> getAllClients(){\n log.trace(\"getAllClients --- method entered\");\n List<Client> result = clientRepository.findAll();\n log.trace(\"getAllClients: result={}\", result);\n return result;\n }", "@Override\r\n\tpublic List<?> getAll() {\n\t\treturn null;\r\n\t}", "@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\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 }", "@Override\r\n\tpublic ArrayList<Board1> getAll() {\n\t\treturn dao.selectAll();\r\n\t}", "@RequestMapping(method = RequestMethod.GET)\n\tpublic List<User> getAll() {\n\t\tList<User> users = dao.getAll();\n\t\treturn users;\n\t}", "@Override\n\tpublic List<Libro> readAll() {\n\t\treturn libroDao.readAll();\n\t}", "@Override\n\tpublic List<Contact> listContact() {\n\t\ttry {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"************************* je suis dans Liste des contacts *********************************\");\n\t\t\tsession = HibernateUtil.getSessionFactory().openSession();\n\t\t\ttx = session.beginTransaction();\n\n\t\t\tQuery query = session.createQuery(\"from Contact\");\n\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tSystem.out.println(\"liste des contacts: \" + String.valueOf(query.list()));\n\n\t\t\tList<Contact> lc = (List<Contact>) query.list();\n\t\t\ttx.commit();\n\t\t\tsession.close();\n\n\t\t\treturn lc;\n\n\t\t} catch (HibernateException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\tpublic List<Generator> getAll() {\n\n\t\tList<Generator> result = new ArrayList<>();\n\n\t\ttry (Connection c = context.getConnection(); \n\t\t\tStatement stmt = c.createStatement()) {\n\n\t\t\tResultSet rs = stmt.executeQuery(getAllQuery);\n\n\t\t\twhile (rs.next()) {\n \tGenerator generator = new Generator(\n \t\trs.getInt(1),\n \t\trs.getString(2),\n \t\trs.getString(3),\n \t\trs.getInt(4),\n \t\trs.getInt(5),\n \t\trs.getInt(6)\n \t);\n\t\t\t\tresult.add(generator);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn result;\n\t\t}\n\t\treturn result;\n\n\t}", "@Override\n\tpublic List<Record> getAllRecord() {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry {\n\t\t\tlist = dao.findAll();\n\t\t\ttx.commit();\n\t\t} catch (RuntimeException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\n\t\treturn list;\n\t}", "@Override\n\tpublic List<User> getAll() {\n\t\treturn userDao.getAll();\n\t}", "@Override\n public List<User> findAll() {\n try {\n return runner.query(con.getThreadConnection(),\"select * from user\",new BeanListHandler<User>(User.class));\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "public Cliente[] findAll() throws ClienteDaoException;", "@Override\n\tpublic List<Company> queryCompanyAll() {\n\t\treturn companyDao.queryCompanyAll();\n\t}", "public void getAll() {\n Cursor res = myDB.getAllData();\n if (res.getCount() == 0) {\n Log.e(\"NO_ELEMENT\", \"NO ELEMENTS IN THE DB\");\n }\n while (res.moveToNext()) {\n arrayList.add(res.getString(1));\n }\n Log.d(TAG, \"getAll() returned: \" + arrayList);\n }", "public List<Item> getAll() {\r\n List<Item> list = new ArrayList<Item>();\r\n //Transaction trans = null;\r\n Session session = HibernateUtil.getSessionFactory().openSession();\r\n\r\n try {\r\n //trans = session.beginTransaction();\r\n\r\n list = session.createQuery(\"from Item\").list();\r\n\r\n //trans.commit();\r\n } catch (HibernateException e) {\r\n //if (trans != null) { trans.rollback(); }\r\n e.printStackTrace();\r\n } finally {\r\n //session.flush();\r\n session.close();\r\n }\r\n return list;\r\n }", "@Override\n\tpublic List<finalDataBean> findAll() throws Exception {\n\t\treturn this.dao.findAll();\n\t}", "@Override\r\n\tpublic List<Trainee> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException 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 llistaActivitats;\r\n\t}", "@Override\n public List<User> findAll() throws DaoException {\n log.info(\"Get all users\");\n return userDao.findAll();\n }", "@Override\n\tpublic List<Besoin> getAllBesion() {\n\t\treturn dao.getAllBesion();\n\t}", "Collection<Account> getAll();", "@Override\n public List<Category> getAll()\n {\n \n ResultSet rs = DataService.getData(\"SELECT * FROM Categories\");\n \n List<Category> categories = new ArrayList<Category>();\n \n try\n {\n while (rs.next())\n {\n categories.add(convertResultSetToCategory(rs));\n }\n }\n catch (SQLException e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n return categories;\n }", "public ArrayList<Service> selectAll(){\n return Database.servico;\n }", "@Override\n\tpublic List<Employee> queryAll() {\n\t\treturn dao.queryAll();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<DbLotniskoEntity> getAll() {\n \tList<DbLotniskoEntity> airports = (List<DbLotniskoEntity>)getSession().createQuery(\"from kiwi.models.DbLotniskoEntity\").list();\n\n \treturn airports;\n }" ]
[ "0.75924087", "0.7485579", "0.7377271", "0.73333925", "0.72466433", "0.72028625", "0.7091517", "0.7081645", "0.7003492", "0.6952232", "0.6946217", "0.69369197", "0.69335103", "0.69320834", "0.69046414", "0.68904257", "0.68826354", "0.6880802", "0.68596196", "0.6852975", "0.6826098", "0.68034565", "0.6772299", "0.67377985", "0.6715944", "0.669765", "0.6684211", "0.66717327", "0.66447765", "0.6628975", "0.66208", "0.66208", "0.66208", "0.66208", "0.66208", "0.66191316", "0.66068465", "0.6585815", "0.6584041", "0.657537", "0.65699595", "0.65628356", "0.6557445", "0.65436596", "0.65314615", "0.6524825", "0.6524421", "0.65225", "0.6511291", "0.65104026", "0.65058494", "0.65056497", "0.65011555", "0.6496317", "0.6495785", "0.6491068", "0.6484347", "0.6481566", "0.64790857", "0.6475445", "0.6475172", "0.6467715", "0.64609176", "0.64236444", "0.642052", "0.64180845", "0.6416047", "0.64144546", "0.64114416", "0.64111644", "0.64110386", "0.64081466", "0.6404759", "0.6395785", "0.6394238", "0.6391018", "0.63845265", "0.6369421", "0.6363499", "0.6361111", "0.63569343", "0.63549", "0.6344902", "0.63427097", "0.6341504", "0.6340235", "0.63392335", "0.63379467", "0.63348246", "0.63274497", "0.6315464", "0.6314931", "0.6314896", "0.63142204", "0.631234", "0.6308848", "0.6307701", "0.6306756", "0.6306438", "0.6306259", "0.630585" ]
0.0
-1
Helper method for putting Content Values, for better cohesion.
private static ContentValues getContentValues(ContactBE contact) { ContentValues values = new ContentValues(); values.put(ContactTable.Cols.UUID, contact.getId().toString()); values.put(ContactTable.Cols.NAME, contact.getName()); values.put(ContactTable.Cols.ADDRESS, contact.getAddress()); values.put(ContactTable.Cols.LOCATION, contact.getLocation()); values.put(ContactTable.Cols.PHONE, contact.getPhoneNumber()); values.put(ContactTable.Cols.MAIL, contact.getMailAddress()); values.put(ContactTable.Cols.WEBSITE, contact.getWebsite()); values.put(ContactTable.Cols.BIRTHDAY, contact.getBirthDay()); values.put(ContactTable.Cols.PICTURE, contact.getPicture()); return values; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "private void setContent(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n content_ = value;\n }", "public ContentValues toContentValues(){\n ContentValues contentValues = new ContentValues();\n contentValues.put(DatabaseContract.PlaceDetailsEntry.COLUMN_PLACE_ID, id);\n contentValues.put(DatabaseContract.PlaceDetailsEntry.COLUMN_TITLE, title);\n contentValues.put(DatabaseContract.PlaceDetailsEntry.COLUMN_ADDRESS, address);\n contentValues.put(DatabaseContract.PlaceDetailsEntry.COLUMN_TRANSPORT, new Transport().format(transport));\n contentValues.put(DatabaseContract.PlaceDetailsEntry.COLUMN_GEOCOORDINATES, geocoordinates);\n contentValues.put(DatabaseContract.PlaceDetailsEntry.COLUMN_DESCRIPTION, description);\n contentValues.put(DatabaseContract.PlaceDetailsEntry.COLUMN_PHONE, new Phone().format(phone));\n contentValues.put(DatabaseContract.PlaceDetailsEntry.COLUMN_FAX, new Fax().format(phone));\n contentValues.put(DatabaseContract.PlaceDetailsEntry.COLUMN_EMAIL, new Email().format(email));\n return contentValues;\n }", "private ContentValues getContentValues(long primeNr){\n ContentValues values = new ContentValues();\n values.put(PrimeNrBaseHelper.PRIME_NR, primeNr);\n return values;\n }", "@Override\n public ContentValues getContentValues() {\n ContentValues contentvalues = new ContentValues();\n\n\n contentvalues.put(\"nome\", nome);\n contentvalues.put(\"codigobanco\", codigobanco);\n contentvalues.put(\"codigoagencia\", codigoagencia);\n contentvalues.put(\"codigoconta\", codigoconta);\n contentvalues.put(\"cpf\", cpf);\n\n return contentvalues;\n }", "private ContentValues createContentValues(MyTrack obj) {\n ContentValues values = new ContentValues();\n\n values.put(MyTrackColumns.ALBUM_NAME, obj.getAlbumName());\n values.put(MyTrackColumns.ARTIST_ID, obj.getArtistId());\n values.put(MyTrackColumns.DURATION, obj.duration_ms);\n values.put(MyTrackColumns.IMAGE_URL, obj.getImageUrl());\n values.put(MyTrackColumns.PREVIEW_URL, obj.preview_url);\n values.put(MyTrackColumns.TRACK_ID, obj.id);\n values.put(MyTrackColumns.TRACK_NAME, obj.name);\n values.put(MyTrackColumns.TRACK_NUMBER, obj.track_number);\n\n return values;\n }", "public void setContent(T content);", "protected void setContents(Object contents) {\n\t}", "private ContentValues createContentValues(MyArtist obj) {\n ContentValues values = new ContentValues();\n\n values.put(MyArtistColumns.ARTIST_ID, obj.id);\n values.put(MyArtistColumns.ARTIST_NAME, obj.name);\n values.put(MyArtistColumns.IMAGE_URL, obj.getImageUrl());\n\n return values;\n }", "public synchronized void setContent(Object content) {\n // nothing\n }", "private ContentValues createContentValues(Object o) {\n\t\ttry {\n\t\t\tContentValues values = new ContentValues();\n\t\t\tfor (Field f : getPersistenceFields(o.getClass())) {\n\t\t\t\tif ((f.isAnnotationPresent(PrimaryKey.class))\n\t\t\t\t\t\t&& (((PrimaryKey) f.getAnnotation(PrimaryKey.class))\n\t\t\t\t\t\t\t\t.autoIncrement()))\n\t\t\t\t\tcontinue;\n\t\t\t\tClass type = f.getType();\n\t\t\t\tString name = f.getName();\n\n\t\t\t\tif (type == Integer.TYPE) {\n\t\t\t\t\tvalues.put(name, Integer.valueOf(f.getInt(o)));\n\t\t\t\t} else if (type == Long.TYPE) {\n\t\t\t\t\tvalues.put(name, Long.valueOf(f.getLong(o)));\n\t\t\t\t} else if (type == Float.TYPE) {\n\t\t\t\t\tvalues.put(name, Float.valueOf(f.getFloat(o)));\n\t\t\t\t} else if (type == Double.TYPE) {\n\t\t\t\t\tvalues.put(name, Double.valueOf(f.getDouble(o)));\n\t\t\t\t} else if (type == String.class) {\n\t\t\t\t\tvalues.put(name, (String) f.get(o));\n\t\t\t\t} else if (type == Byte.class) {\n\t\t\t\t\tvalues.put(name, (byte[]) f.get(o));\n\t\t\t\t} else if (type == Boolean.TYPE) {\n\t\t\t\t\tvalues.put(name, Boolean.valueOf(f.getBoolean(o)));\n\t\t\t\t} else if (type == Short.TYPE) {\n\t\t\t\t\tvalues.put(name, Short.valueOf(f.getShort(o)));\n\t\t\t\t} else if (type == Date.class) {\n\t\t\t\t\tDate d = (Date) f.get(o);\n\t\t\t\t\tvalues.put(name, d != null ? Long.valueOf(d.getTime())\n\t\t\t\t\t\t\t: null);\n\t\t\t\t} else if (type.isEnum()) {\n\t\t\t\t\tEnum e = (Enum) f.get(o);\n\t\t\t\t\tvalues.put(name, e != null ? e.name() : null);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn values;\n\t\t} catch (Exception e) {\n\t\t}\n\t\treturn null;\n\t}", "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 void setContent(Object content) {\n this.content = content;\n }", "ContentType(String value){\n\t\t_value = value;\n\t}", "public void setContent(String content) { this.content = content; }", "public ContentValues getContentValues() {\n\t\tfinal ContentValues values = new ContentValues();\n\n\t\tvalues.put(_ID, mId);\n\t\tvalues.put(TITLE, mTitle);\n\t\tvalues.put(BODY, mBody);\n\t\tvalues.put(WIDGET_ID, 0);\n\n\t\treturn values;\n\t}", "private void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content)\n/* */ {\n/* 1340 */ this.content = content;\n/* */ }", "private ContentValues createContentValues(String name, String surname, byte[] profilePic) {\n\t\tContentValues contentValues = new ContentValues();\n\t\tcontentValues.put(UserConstants.FIELD_NAME, name);\n\t\tcontentValues.put(UserConstants.FIELD_SURNAME, surname);\n\t\tcontentValues.put(UserConstants.FIELD_PROFILEPIC, profilePic);\n\t\treturn contentValues;\n\t}", "public Result<T> setContent(T content) {\n Result<T> returnResult = new Result<T>(this.resultCode, this.resultText);\n returnResult.content = content;\n return returnResult;\n }", "Builder addContentLocation(String value);", "@Override\n public void set(C content) {\n this.content = content;\n }", "void setContent(String data) {\n this.content = data;\n }", "public ContentData createContentData(String language, String value, Content content) {\n return contentDataDAO.create(language, value, content);\n }", "Builder addContentLocation(Place value);", "public void setContent(byte[] value) {\r\n this.content = value;\r\n }", "private void setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value.toStringUtf8();\n }", "private void setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value.toStringUtf8();\n }", "private ContentValues buildValues(NotificationEntry notificationEntry) {\n CharSequence charSequence;\n byte[] drawableToByte = drawableToByte(notificationEntry.getSbn().getAppIcon());\n if (drawableToByte == null) {\n return null;\n }\n boolean isSensitive = notificationEntry.isSensitive();\n Notification notification = notificationEntry.getSbn().getNotification();\n CharSequence appName = isSensitive ? notificationEntry.getSbn().getAppName() : NotificationUtil.resolveTitle(notification);\n CharSequence hiddenText = isSensitive ? NotificationUtil.getHiddenText() : NotificationUtil.resolveText(notification);\n String str = CodeInjection.MD5;\n if (isSensitive) {\n charSequence = str;\n } else {\n charSequence = NotificationUtil.resolveSubText(notification);\n }\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"icon\", drawableToByte);\n contentValues.put(\"title\", TextUtils.isEmpty(appName) ? str : appName.toString());\n contentValues.put(\"content\", TextUtils.isEmpty(hiddenText) ? str : hiddenText.toString());\n contentValues.put(\"time\", getTimeText(notificationEntry));\n contentValues.put(\"info\", new ArrayList(this.mSortedKeys).toString());\n if (!TextUtils.isEmpty(charSequence)) {\n str = charSequence.toString();\n }\n contentValues.put(\"subtext\", str);\n contentValues.put(\"key\", Integer.valueOf(notificationEntry.getKey().hashCode()));\n contentValues.put(\"pkg\", notificationEntry.getSbn().getPackageName());\n contentValues.put(\"user_id\", Integer.valueOf(notificationEntry.getSbn().getUserId()));\n return contentValues;\n }", "public void setContent(String content) {\n this.contents = content;\n }", "@Override\r\n public String getContent() {\r\n return content;\r\n }", "public Content(String text) {\n setContent(text);\n }", "public void setContent(java.lang.CharSequence value) {\n this.Content = value;\n }", "public void setContent(String content) {\n\t this.content = content;\n\t}", "public void setContent(String newValue);", "private Uri insertContentValues(Uri uri, UrlType urlType, ContentValues contentValues) {\n switch (urlType) {\n case EVENT:\n return insertEvent(uri, contentValues);\n case PERSON:\n return insertPerson(uri, contentValues);\n case PERSON_EVENTS:\n return insertPersonEvent(uri, contentValues);\n case PERSON_MEDIA:\n return insertPersonMedia(uri, contentValues);\n case SEARCH:\n return insertSearch(uri, contentValues);\n default:\n throw new IllegalArgumentException(\"Unknown url \" + uri);\n }\n }", "void setContent(java.lang.String content);", "public void testUpdateContentValues() {\n String accountType = SimUtils.ACCOUNT_TYPE_USIM;\n String text = null;\n ContentValues values = new ContentValues();\n int type = 0;// 1,2,3anr,---\n\n // 01--right type,not null text,put sne success\n text = \"nicknameofme\";\n if (mOpContactAccountExtension.updateContentValues(accountType, values, null, text, type, Utils.COMMD_FOR_SNE)) {\n assertEquals(text, values.get(\"sne\"));\n }\n // 02-sim\n accountType = SimUtils.ACCOUNT_TYPE_SIM;\n assertFalse(mOpContactAccountExtension.updateContentValues(accountType, values, null, text, type, Utils.COMMD_FOR_SNE));\n\n // 03-the type is not right,super\n accountType = SimUtils.ACCOUNT_TYPE_USIM;\n type = 1;// do not CONTENTVALUE_ANR_UPDATE\n assertFalse(mOpContactAccountExtension.updateContentValues(accountType, values, null, text, type, Utils.COMMD_FOR_SNE));\n }", "private void setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value.toStringUtf8();\n }", "private void setContentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n content_ = value.toStringUtf8();\n }", "void setContent(Map<String, Object> content);", "Builder addContentLocation(Place.Builder value);", "public void setContent(String content) {\r\n\t\tthis.content = content;\r\n\t}", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void setContent(String content) {\n this.content = content;\n }", "public void addModelContentValues(T model, ContentValues values);", "public abstract void setContent(Object o);", "public void testGetContent()\n\t{\n\t\tString content = \"tdContentObject\";\n\t\t((TypeDefinitionImpl) fTypeDefinition).setContent(content);\n\t\tassertEquals(\"The TypeDefinition content Object differs from that set -\", content, fTypeDefinition.getContent());\n\t}", "public void addContentType( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), CONTENTTYPE, value);\r\n\t}", "public ContentValues getContentValues(){\n // Add a new student record\n ContentValues values = new ContentValues();\n values.put(RoutineContract.COLUMN_UID, uid);\n values.put(RoutineContract.COLUMN_ROUTINE_NAME, routineName);\n values.put(RoutineContract.COLUMN_ORDER_NUMBER, orderNumber);\n values.put(RoutineContract.COLUMN_EXERCISE, exercise);\n values.put(RoutineContract.COLUMN_CATEGORY, category);\n values.put(RoutineContract.COLUMN_NUM_SETS, numOfSets);\n\n return values;\n }", "public void setContents(String value) {\n\tif (value == null) {\n\t throw new IllegalArgumentException(\"The value must be non-null.\");\n\t}\n\tthis.contents = value;\n }", "public void setContent(String content) {\n\t\tthis.content = content;\n\t}", "public void setContent(String content) {\n\t\tthis.content = content;\n\t}", "public sparqles.avro.discovery.DGETInfo.Builder setContent(java.lang.CharSequence value) {\n validate(fields()[8], value);\n this.Content = value;\n fieldSetFlags()[8] = true;\n return this; \n }", "int insertContent(@Param(\"c\") UserContent content);", "Serializable getContent();", "public com.babbler.ws.io.avro.model.BabbleValue.Builder setContent(java.lang.String value) {\n validate(fields()[1], value);\n this.content = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "public void setContent(String content) {\n\t\tmContent = content;\n\t}", "protected void updateContents(Object aValue) {\n \n \t\tif (getText() == null) {\n \t\t\treturn;\n \t\t}\n \n \t\tString aText = StringStatics.BLANK;\n \t\tif (aValue != null) {\n \t\t\taText = aValue.toString();\n \t\t}\n \t\tgetText().setText(aText);\n \t}", "public String createContent(String spaceId, String contentId);", "private void insertValue(String field, String value) {\n switch (mapFieldsTypes.get(field)) {\n case DBCreator.STRING_TYPE:\n insertStringValue(field, value);\n break;\n case DBCreator.INTEGER_TYPE:\n insertIntegerValue(field, Integer.valueOf(value));\n break;\n }\n }", "@Override\n public void saveValues() {\n \n }", "void storeEditorData(int userid,String name,Object bodyContent){\n dbConnection();\n try{\n PGobject editorData = new PGobject();\n editorData.setType(\"json\");\n editorData.setValue(bodyContent.toString());\n\n stmt = con.prepareStatement(\"INSERT INTO editorData(name,bodyContent,userid)VALUES(?,?,?)\");\n stmt.setString(1,name);\n stmt.setObject(2,editorData);\n stmt.setInt(3,userid);\n\n stmt.executeUpdate();\n }\n catch(Exception e){\n e.printStackTrace();\n }\n finally{\n closeConnection();\n }\n \n }", "private static ContentValues getContentValues(Beverage beverage) {\n // New pack of values.\n ContentValues values = new ContentValues();\n\n // Populate this pack of values.\n values.put(BeverageTable.Cols.ID, beverage.getId());\n values.put(BeverageTable.Cols.NAME, beverage.getName());\n values.put(BeverageTable.Cols.PACK, beverage.getPack());\n values.put(BeverageTable.Cols.PRICE, beverage.getPrice());\n values.put(BeverageTable.Cols.ACTIVE, beverage.isActive() ? 1 : 0); // stores 1 if true, 0 is false.\n\n return values; // Return the ContentValues package.\n }", "public void saveValue() {\n String[] idCol = assignedDataObject.getIdentifyTemplate().getIdentifyColumnNames();\n if (!(idCol.length == 1 && name.equals(idCol[0]))) { // method \"copy\" must not change unique key name! For any other methods it is not needed to save from frame.\n if (this.getText().equals(\"\")) {\n assignedDataObject.setInt(name, 0);\n } else {\n assignedDataObject.setInt(name, this.getIntValue());\n }\n }\n }", "private void writeProperty(Content content) throws Exception {\n\t\tNodeAttributes attributes = content.getAttributes();\n\t\tFileOutputStream out = new FileOutputStream(open());\n\t\tif (attributes != null)\n\t\t\tout.write(attributes.toString().getBytes());\n\t\tout.flush();\n\t\tout.close();\n\t}", "public ContentValues getContentValues()\n {\n final ContentValues contentValues = new ContentValues();\n contentValues.put(Member.PERSON_ID, mPersonId);\n if (mGivenName != null)\n {\n contentValues.put(Member.GIVEN_NAME, mGivenName);\n } // if\n if (mSurname != null)\n {\n contentValues.put(Member.SURNAME, mSurname);\n } // if\n if (mEmail != null)\n {\n contentValues.put(Member.EMAIL, mEmail);\n } // if\n if (mDepartment != null)\n {\n contentValues.put(Member.DEPARTMENT, mDepartment);\n } // if\n if (mMemberType != null)\n {\n contentValues.put(Member.MEMBER_TYPE, mMemberType);\n } // if\n return contentValues;\n }", "private static void _valueToStorageDocument(\n\t\tValue value,\n\t\tElement element,\n\t\tDocument doc\n\t) {\n\t\t// Supports only string, int and double\n\t\tif ( value.isString() ) {\n\t\t\telement.appendChild( doc.createTextNode( value.strValue() ) );\n\t\t\telement.setAttribute( JOLIE_TYPE_ATTRIBUTE, \"string\" );\n\t\t} else if ( value.isInt() ) {\n\t\t\telement.appendChild( doc.createTextNode( new Integer( value.intValue() ).toString() ) );\n\t\t\telement.setAttribute( JOLIE_TYPE_ATTRIBUTE, \"int\" );\n\t\t} else if ( value.isDouble() ) {\n\t\t\telement.appendChild( doc.createTextNode( new Double( value.doubleValue() ).toString() ) );\n\t\t\telement.setAttribute( JOLIE_TYPE_ATTRIBUTE, \"double\" );\n\t\t} else {\n\t\t\telement.setAttribute( JOLIE_TYPE_ATTRIBUTE, \"void\" );\n\t\t}\n\n\t\t// adding other attributes\n\t\tMap<String, ValueVector> attrs = getAttributesOrNull( value );\n\t\tif ( attrs != null ) {\n\t\t\tfor( Entry<String, ValueVector> attrEntry : attrs.entrySet() ) {\n\t\t\t\telement.setAttribute(\n\t\t\t\t\tattrEntry.getKey(),\n\t\t\t\t\tattrEntry.getValue().first().strValue() );\n\t\t\t}\n\t\t}\n\n\t\t// adding subelements\n\t\tElement currentElement;\n\t\tfor( Entry<String, ValueVector> entry : value.children().entrySet() ) {\n\t\t\tif ( !entry.getKey().startsWith( \"@\" ) ) {\n\t\t\t\tfor( Value val : entry.getValue() ) {\n\t\t\t\t\tcurrentElement = doc.createElement( entry.getKey() );\n\t\t\t\t\telement.appendChild( currentElement );\n\t\t\t\t\t_valueToStorageDocument( val, currentElement, doc );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public String getContent() { return this.content; }", "public void setContent(String content) {\n this.m_content = content;\n }", "@Override\n\tpublic long insert(ContentValues cv) {\n\t\treturn 0;\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n public void setContent(Object... objects) {\n try {\n if (objects != null && objects.length > 0) {\n Balance balance = (Balance) objects[0];\n\n String value = null;\n if (balance != null) {\n value = balance.getResult();\n }\n\n if (value == null || value.isEmpty()) {\n value = \"0\";\n }\n\n String s = DigitsUtils.valueToString(new BigInteger(value));\n\n if (s.length() < lengthValue) {\n linearLayout.setOrientation(LinearLayout.HORIZONTAL);\n }\n\n textValue.setText(s);\n\n textValue.post(new Runnable() {\n @Override\n public void run() {\n int lineCount = textValue.getLineCount();\n if (lineCount > 1) {\n linearLayout.setOrientation(LinearLayout.VERTICAL);\n lengthValue = textValue.length();\n }\n }\n });\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public Content createContent();", "String setValue();", "public String getContent()\n/* */ {\n/* 1329 */ return this.content;\n/* */ }", "private ContentValues storeData_PS__getContentValues(PS ps) {\n\t\t// TODO Auto-generated method stub\n\t\tContentValues cv = new ContentValues();\n\t\t\n\t\t/***************************************\n\t\t * Put values\n\t\t ***************************************/\n//\t\tandroid.provider.BaseColumns._ID,\t// 0\n//\t\t\"created_at\", \"modified_at\",\t\t// 1,2\n//\t\t\"store_name\", \"due_date\", \"amount\",\t// 3,4,5 \n//\t\t\"memo\", \"items\"\t\t\t\t\t\t// 6,7\t\t\n\t\t\n\t\tcv.put(CONS.DB.col_Names_PS_full[1], Methods.get_TimeLabel());\n\t\t\n\t\tcv.put(CONS.DB.col_Names_PS_full[2], Methods.get_TimeLabel());\n//\t\tMethods.conv_MillSec_to_TimeLabel(Methods.getMillSeconds_now()));\n\t\t\n\t\tcv.put(CONS.DB.col_Names_PS_full[3], ps.getStoreName());\n\n\t\tcv.put(CONS.DB.col_Names_PS_full[4], ps.getDueDate());\n\n\t\tcv.put(CONS.DB.col_Names_PS_full[5], ps.getAmount());\n\t\t\n\t\tcv.put(CONS.DB.col_Names_PS_full[6], ps.getMemo());\n\n\t\tcv.put(CONS.DB.col_Names_PS_full[7], ps.getItems());\n\t\t\n\t\treturn cv;\n\t\t\n\t}", "private void addAllContentIdToEmbeddingTokens(\n java.lang.Iterable<? extends org.chromium.components.paint_preview.common.proto.PaintPreview.ContentIdEmbeddingTokenPairProto> values) {\n ensureContentIdToEmbeddingTokensIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, contentIdToEmbeddingTokens_);\n }", "public void setContent(List<String> content){\n\t\t\tif (canHaveContent())this.content = content;\n\t\t}", "private ContentValues prepareContentValues(FbEvent event) {\n\t\tContentValues contents = new ContentValues();\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_EID, event.getId());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_NAME, event.getName());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_PICTURE, event.getPicture());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_RSVP, event.getRsvp_status());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_START_TIME, event.getStart_time());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_END_TIME, event.getEnd_time());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_LOCATION, event.getLocation());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_LONGITUDE, event.getVenueLongitude());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_LATITUDE, event.getVenueLatitude());\n\t\tcontents.put(SQLTablesHelper.MY_EVENT_FRIENDS_ATTENDING, Attendee.getAttendeesStrFromList(event.getFriendsAttending()));\n\t\treturn contents;\n\t}", "private static void elementsToSubValuesForStoring( Value value, NodeList list, String type )\n\t{\n\t\tNode node;\n\t\tValue childValue;\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor( int i = 0; i < list.getLength(); i++ ) {\n\t\t\tnode = list.item( i );\n\t\t\tswitch( node.getNodeType() ) {\n\t\t\t\tcase Node.ATTRIBUTE_NODE:\n\t\t\t\t\tif ( !node.getNodeName().equals( JOLIE_TYPE_ATTRIBUTE ) ) {\n\t\t\t\t\t\tgetAttribute( value, node.getNodeName() ).setValue( node.getNodeValue() );\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Node.ELEMENT_NODE:\n\t\t\t\t\tchildValue = value.getNewChild( (node.getLocalName() == null) ? node.getNodeName() : node.getLocalName() );\n\t\t\t\t\tString subElType = setAttributesForStoring( childValue, node );\n\t\t\t\t\telementsToSubValuesForStoring( childValue, node.getChildNodes(), subElType );\n\t\t\t\t\tbreak;\n\t\t\t\tcase Node.CDATA_SECTION_NODE:\n\t\t\t\tcase Node.TEXT_NODE:\n\t\t\t\t\tbuilder.append( node.getNodeValue() );\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif ( builder.length() > 0 ) {\n\t\t\tif ( type.equals( \"string\" ) ) {\n\t\t\t\tvalue.setValue( builder.toString() );\n\t\t\t} else if ( type.equals( \"int\" ) ) {\n\t\t\t\tvalue.setValue( new Integer( builder.toString() ) );\n\t\t\t} else if ( type.equals( \"double\" ) ) {\n\t\t\t\tvalue.setValue( new Double( builder.toString() ) );\n\t\t\t}\n\t\t}\n\t}", "protected void setContent(WaypointCardBase<?> content) {\n this.content.setValue(content);\n }", "void putValue(String key, Object data);", "public String getContent(String content)\n\t{\n\t\treturn prop.getProperty(content);\n\t}" ]
[ "0.6220141", "0.6220141", "0.6193001", "0.6193001", "0.58487535", "0.5826571", "0.5814029", "0.5785849", "0.57663786", "0.5766123", "0.57629377", "0.57525945", "0.5747664", "0.573144", "0.57099235", "0.5681055", "0.56689245", "0.56665814", "0.5665677", "0.5630049", "0.55535495", "0.5544508", "0.55316246", "0.55180436", "0.5504241", "0.54913425", "0.548963", "0.5483213", "0.5478734", "0.5478734", "0.5461751", "0.54594576", "0.5450268", "0.54444665", "0.5427214", "0.53958374", "0.53940904", "0.5389843", "0.5376775", "0.5367225", "0.53660774", "0.53660774", "0.53610325", "0.53557444", "0.53475684", "0.533158", "0.533158", "0.533158", "0.533158", "0.533158", "0.533158", "0.533158", "0.533158", "0.533158", "0.533158", "0.533158", "0.5328052", "0.5321974", "0.5316627", "0.5315677", "0.5272261", "0.52642226", "0.5242069", "0.5242069", "0.52373356", "0.52368224", "0.52361995", "0.52260363", "0.5225925", "0.5225925", "0.5225925", "0.5225925", "0.5225925", "0.5225925", "0.5221655", "0.5213955", "0.52102154", "0.51998335", "0.5199057", "0.5195785", "0.51944494", "0.51930827", "0.51908576", "0.5188178", "0.51806587", "0.51795584", "0.5169581", "0.5169417", "0.5168938", "0.51667273", "0.5154778", "0.51488864", "0.5147798", "0.51455516", "0.5142845", "0.5140935", "0.5135055", "0.5117294", "0.5106264", "0.5102919" ]
0.5229388
67
Method for Creation of a contact in the db.
public void addContact(ContactBE contact) { ContentValues values = getContentValues(contact); mDatabase.insert(ContactTable.NAME, null, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.vh.locker.ejb.Contact create(java.lang.Long id, java.lang.String name, java.lang.String nickName, java.lang.String phone, java.lang.String email, com.vh.locker.ejb.User anUser) throws javax.ejb.CreateException;", "@ApiMethod(name = \"createContact\", path = \"contact\", httpMethod = HttpMethod.POST)\n\tpublic Contact createContact(final ContactForm form) {\n\t\tfinal Key<Contact> key = Contact.allocateKey();\n\t\tContact contact = new Contact(key.getId(), form);\n\n\t\tofy().save().entity(contact).now();\n\n\t\treturn contact;\n\t}", "public void create_contact(String contactName, SupplierCard supplier) {\n supplier_dao.create_contact(contactName, supplier);\n }", "public static Contacts createContacts(String name,String phoneNumber){\n //it calling the constuctor to create an new contact record\n return new Contacts(name,phoneNumber);\n\n }", "public void insert(Contact c);", "public void addContact(Contact contact) {\n SQLiteDatabase db = null;\n try {\n db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n //values.put(KEY_ID, contact.getID()); // Contact ID id identity\n values.put(KEY_DEVICE_ID, contact.getDeviceID()); // Contact DeviceID\n values.put(KEY_DISPLAY_WIDTH, contact.getDisplayWidth()); // Contact DisplayWidth\n values.put(KEY_DISPLAY_HEIGHT, contact.getDisplayHeight()); // Contact DisplayHeight\n values.put(KEY_SURNAME, contact.getSurname()); // Contact Surname\n values.put(KEY_IP, contact.getIP()); // Contact IP\n values.put(KEY_HOST_NAME, contact.getHostName()); // Contact hostName\n values.put(KEY_AVATAR, contact.getAvatar()); // Contact Avatar\n values.put(KEY_OSTYPE, contact.getOSType()); // Contact OSType\n values.put(KEY_VER_NO, contact.getVersionNumber()); // Contact versionNumber\n values.put(KEY_PH_NO, contact.getPhoneNumber()); // Contact PhoneNumber\n values.put(KEY_SERVICE_NAME, contact.getServiceName()); // Contact ServiceName\n values.put(KEY_IS_ONLINE, contact.getOnline()?1:0); // Contact PhoneNumber\n\n // Inserting Row\n db.insert(TABLE_CONTACT, null, values);\n }catch (Exception e){\n Log.e(TAG,\"addContact:\"+e.getMessage());\n throw e;\n }finally {\n if(db!= null && db.isOpen())\n db.close(); // Closing database connection\n }\n\n }", "@Override\n\t public void onCreate(SQLiteDatabase db) {\n\t db.execSQL(\n\t \"create table contacts \" +\n\t \"(id integer primary key, name text,phone text,last text, state text,place text)\"\n\t );\n\t }", "void addContact(String name,String number);", "public void testAddContact() throws NotExistsException {\n\t\tContact contact = new Contact();\n\t\tcontact.setName(\"Jack Sparrow\");\n\t\tcontact.setMobilePhone(\"0438200300\");\n\t\tcontact.setHomePhone(\"03 12345678\");\n\t\tcontact.setWorkPhone(\"03 98765432\");\n\n\t\t// create\n\t\tString newContactId = contactService.addContact(addrBook1, contact).getId();\n\n\t\t// read\n\t\tcontact = contactService.getContactById(newContactId);\n\n\t\t// assert\n\t\tassertEquals(1, contactService.getContacts(addrBook1).size());\n\t\tassertEquals(\"Jack Sparrow\", contact.getName());\n\t\tassertEquals(\"0438200300\", contact.getMobilePhone());\n\t\tassertEquals(\"03 12345678\", contact.getHomePhone());\n\t\tassertEquals(\"03 98765432\", contact.getWorkPhone());\n\t}", "void addContact(String name, String number);", "public void addContact(Addendance_DB_Model contact) {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(KEY_COMP_ID, contact.get_CompId()); // Addendance_DB_Model Name\n\t\tvalues.put(KEY_DATETIME, contact.get_DateTime());\n\t\tvalues.put(KEY_EMP_ID,contact.get_EmpId());\n\t\tvalues.put(KEY_IBEACON_ID,contact.get_IbeaconId());// Addendance_DB_Model Phone\n\t\tvalues.put(KEY_Status,contact.getStatus());\n\t\tvalues.put(KEY_Latitude,contact.getLatit());\n\t\tvalues.put(KEY_Longitude,contact.getLogni());\n\t\t// Inserting Row\n\t\tdb.insert(TABLE_CONTACTS, null, values);\n\t\tdb.close(); // Closing database connection\n\t}", "private Contact createBaseContact()\n {\n Contact contact = new Contact();\n contact.setName(new Name(new LastName(\"Doe\"), new FirstName(\"John\")));\n contact.setAddress(new Address(new StreetAddress(\"123 Main St\"),\n null,\n new GeneralProperty(\"Tucson\"),\n new State(\"AZ\"),\n new Zip(\"85750\")));\n contact.setPhone(new Phone(\"(520) 123-4567\"));\n contact.setEmail(new Email(\"[email protected]\"));\n\n return contact;\n }", "void addContact(Contact contact) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, contact.get_name()); // Contact Name\n values.put(KEY_AUDIOS, contact.get_audios());\n values.put(KEY_CONTENTS, contact.get_contents());\n values.put(KEY_CAPTURED_IMAGE, contact.get_captured_image());\n values.put(KEY_DELETE_VAR, contact.get_delelte_var());\n values.put(KEY_GALLERY_IMAGE, contact.get_gallery_image());\n values.put(KEY_PHOTO, contact.get_photo());\n values.put(KEY_RRECYCLE_DELETE, contact.get_recycle_delete());\n\n // Inserting Row\n db.insert(TABLE_CONTACTS, null, values);\n //2nd argument is String containing nullColumnHack\n db.close(); // Closing database connection\n }", "public Contact() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.person.tables.Contact.Contact);\n\t}", "public Contact(){}", "public void addContact(String on_cloudkibo, String lname, String phone, String uname, String uid, String shareddetails,\r\n \t\tString status) {\r\n\r\n\r\n ContentValues values = new ContentValues();\r\n //values.put(Contacts.CONTACT_FIRSTNAME, fname); // FirstName\r\n //values.put(Contacts.CONTACT_LASTNAME, lname); // LastName\r\n values.put(Contacts.CONTACT_PHONE, phone); // Phone\r\n values.put(\"display_name\", uname); // UserName\r\n values.put(Contacts.CONTACT_UID, uid); // Uid\r\n values.put(Contacts.CONTACT_STATUS, status); // Status\r\n values.put(Contacts.SHARED_DETAILS, shareddetails); // Created At\r\n values.put(\"on_cloudkibo\", on_cloudkibo);\r\n\r\n // Inserting Row\r\n try {\r\n// if(getContactName(phone) != null){\r\n// SQLiteDatabase db = this.getWritableDatabase();\r\n// db.update(Contacts.TABLE_CONTACTS,values,\"phone='\"+phone+\"'\",null);\r\n// db.close();\r\n// }else{\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n db.replace(Contacts.TABLE_CONTACTS, null, values);\r\n db.close();\r\n// }\r\n } catch (android.database.sqlite.SQLiteConstraintException e){\r\n Log.e(\"SQLITE_CONTACTS\", uname + \" - \" + phone);\r\n ACRA.getErrorReporter().handleSilentException(e);\r\n }\r\n // Closing database connection\r\n }", "private void saveContact() throws SQLException {\n \n if (checkFieldsForSaving()) {\n\n clsContactsDetails mContactDetails = new clsContactsDetails();\n\n //Differentiate between the two saving modes new and modify.\n clsContacts.enmSavingMode mSavingMode = null;\n if (this.pStatus == enmStatus.New) {\n mSavingMode = clsContacts.enmSavingMode.New;\n } else if (this.pStatus == enmStatus.Modify) {\n mSavingMode = clsContacts.enmSavingMode.Modify;\n\n int mID = ((clsContactsTableModel) tblContacts.getModel()).getID(tblContacts.getSelectedRow());\n int mIDModifications = ((clsContactsTableModel) tblContacts.getModel()).getIDModifications(tblContacts.getSelectedRow());\n mContactDetails.setID(mID);\n mContactDetails.setIDModification(mIDModifications);\n }\n\n //Create the contact details.\n mContactDetails.setFirstName(txtFirstName.getText());\n mContactDetails.setMiddleName(txtMiddleName.getText());\n mContactDetails.setLastName(txtLastName.getText());\n mContactDetails.setBirthday(dtpBirthday.getDate());\n mContactDetails.setGender(getGender());\n mContactDetails.setStreet(txtStreet.getText());\n mContactDetails.setPostcode(txtPostcode.getText());\n mContactDetails.setCity(txtCity.getText());\n mContactDetails.setCountry(txtCountry.getText());\n mContactDetails.setAvailability(txtAvailability.getText());\n mContactDetails.setComment(txtComment.getText());\n \n int mIDContacts = this.pModel.saveContact(mSavingMode, mContactDetails);\n if (mIDContacts > 0) {\n this.pStatus = enmStatus.View;\n setComponents();\n \n //Select the created or modified row.\n if (mSavingMode == clsContacts.enmSavingMode.New) {\n this.pSelectedRow = getRowOfID(mIDContacts);\n }\n selectContact();\n }\n }\n }", "@Secured({ })\n\t\t@RequestMapping(value = \"/contacts\", method = RequestMethod.POST, headers = \"Accept=application/json\")\n\tpublic Contact insert(@RequestBody Contact obj) {\n\t\tContact result = contactService.insert(obj);\n\n\t \n\t\t\n\t\treturn result;\n\t}", "@Override\n public Contact addContact(String firstName, String secondName, String fathersName,\n String mobilePhoneNumber, String homePhoneNumber,\n String homeAddress, String email, long userId) {\n\n Contact contact = new Contact(firstName, secondName, fathersName, mobilePhoneNumber,\n homePhoneNumber, homeAddress, email, userRepository.findOne(userId));\n\n contactRepository.save(contact);\n return null;\n }", "private void createContact( HashMap<String,String> contactObject ) {\r\n\t\t\t\t\r\n\t\t//validate input object\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (contactObject == null || contactObject.isEmpty()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//DEBUG: output all values\r\n\t\t\t/*\r\n\t\t\tLogger.debug(\"***\");\r\n\t\t\t \r\n\t\t\tfor (String key : contactObject.keySet() ) {\r\n\t\t\t\tLogger.debug(\"key:\" + key + \", value:\" + contactObject.get(key));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tLogger.debug(\"***\");\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tnumProcessed++;\r\n\t\t\t\r\n\t\t\t//validate required Active Directory fields\r\n\t\t\tif (type.equals(TYPE_AD)) {\t\t\r\n\t\t\t\t\r\n\t\t\t\tString objectClass = contactObject.get(\"objectclass\");\r\n\t\t\t\t\r\n\t\t\t\tif (objectClass == null || ( !objectClass.equalsIgnoreCase(\"user\") && !objectClass.equalsIgnoreCase(\"person\") )) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//no or no valid object class: skip\r\n\t\t\t\t\tthrow( new Exception(\"missing required \\\"objectClass\\\" attribute\"));\r\n\t\t\t\t\t\r\n\t\t\t\t} else if ( !contactObject.containsKey(\"userprincipalname\") && !contactObject.containsKey(\"objectguid\") ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//no identifier: skip\r\n\t\t\t\t\tthrow( new Exception(\"missing required attribute to identify user\"));\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t//check required attributes:\r\n\t\t\tif (\r\n\t\t\t\t!contactObject.containsKey(\"givenname\") || \r\n\t\t\t\t!contactObject.containsKey(\"sn\") ||\r\n\t\t\t\t!contactObject.containsKey(\"mail\")\r\n\t\t\t) {\r\n\t\t\t\tthrow( new Exception(\"missing required attribute(s)\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//create contact object using values\r\n\t\t\tContact c = new Contact();\r\n\t\t\t\r\n\t\t\tc.setUserType(Authorizations.USER_TYPE_CONTACT);\t\t//default user type = \"contact\"\r\n\t\t\t\r\n\t\t\tc.setLastName( contactObject.get(\"sn\") );\r\n\t\t\tc.setFirstName(contactObject.get(\"givenname\") );\r\n\t\t\tc.setEmail( contactObject.get(\"mail\"));\r\n\t\t\t\r\n\t\t\tif ( contactObject.containsKey(\"objectguid\")) {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"objectguid\"));\r\n\t\t\t} else if (contactObject.containsKey(\"userprincipalname\") ) {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"userprincipalname\"));\r\n\t\t\t} else {\r\n\t\t\t\tc.setImportIdentifier(contactObject.get(\"id\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (contactObject.containsKey(\"title\")) {\r\n\t\t\t\tc.setJobTitle(contactObject.get(\"title\"));\r\n\t\t\t}\r\n\t\t\tif (contactObject.containsKey(\"telephonenumber\")) {\r\n\t\t\t\tc.setPhoneWork( contactObject.get(\"telephonenumber\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//optional: set org name/ alias from import file based on the (first?) 'OU' parameter in the user's DN\r\n\t\t\t\r\n\t\t\tc.create();\r\n\t\t\t\r\n\t\t\tnumSuccess++;\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tnumFailed++;\r\n\t\t\tLogger.error(\"error while creating contact: \" + e.getMessage() );\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tif (!nameEditText.getText().toString().equalsIgnoreCase(\"\")\n\t\t\t\t\t&& !phoneNumberEditText.getText().toString()\n\t\t\t\t\t\t\t.equalsIgnoreCase(\"\")) {\n\t\t\t\t\n\t\t\t\tSCContact scContact = new SCContact();\n\t\t\t\tscContact.setName(nameEditText.getText().toString());\n\t\t\t\tscContact.setNumber(phoneNumberEditText.getText().toString());\n\t\t\t\tscContact.setId(contactID);\n\t\t\t\tif (insertOrUpdate) {\n\t\t\t\t\t\n\t\t\t\t\tcontactRepository = new ContactRepository(AddEmergencyContactsActivity.this);\n\t\t\t\t\tcontactRepository.insertContact(scContact);\n\t\t\t\t} else {\n\t\t\t\t\tcontactRepository = new ContactRepository(AddEmergencyContactsActivity.this);\n\t\t\t\t\tcontactRepository.updateContact(scContact);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}", "public Contact(){\n\t\t\n\t}", "public void contact_add(contact contact){\n \t\n \tif (contact.type_get() == contact.TYPE_PERSON) {\n \t\tcontact check_contact = contact_get_person_by_address(contact.address_get());\n \t\tif (check_contact != null) {\n \t\t\tLog.d(\"contact_add\", \"contact exists with address \" + contact.address_get());\n \t\t\treturn;\n \t\t}\n \t} else {\n \t\tcontact check_contact = contact_get_group_by_address_and_group(contact.address_get(), contact.group_get());\n \t\tif (check_contact != null) {\n \t\t\tLog.d(\"contact_add\", \"contact exists with address \" + contact.address_get());\n \t\t\treturn;\n \t\t}\n \t}\n \t\n \t// 1. get reference to writable DB\n \tSQLiteDatabase db = this.getWritableDatabase();\n\n \t// 2. create ContentValues to add key \"column\"/value\n \tContentValues values = new ContentValues();\n \tvalues.put(KEY_CONTACT_ADDRESS, contact.address_get());\n \tvalues.put(KEY_CONTACT_NAME, contact.name_get());\n \tvalues.put(KEY_CONTACT_TYPE, contact.type_get());\n \tvalues.put(KEY_CONTACT_KEYSTAT, contact.keystat_get());\n \tif (contact.type_get() == contact.TYPE_GROUP)\n \t\tvalues.put(KEY_CONTACT_MEMBERS, contact.members_get_string());\n \tvalues.put(KEY_CONTACT_LASTACT, contact.time_lastact_get());\n \tvalues.put(KEY_CONTACT_UNREAD, contact.unread_get());\n \tvalues.put(KEY_CONTACT_GROUP, contact.group_get());\n\n \t// 3. insert\n \tdb.insert(TABLE_CONTACT, // table\n \t\t\tnull, //nullColumnHack\n \t\t\tvalues); // key/value -> keys = column names/ values = column values\n\n \t// 4. close\n \tdb.close();\n }", "public Contact() {\n }", "public Contact() {\n }", "public Contact() {\n }", "public static Contact createContact (String name, String phoneNumber){\n\n return new Contact(name, phoneNumber);\n\n }", "public org.hl7.fhir.Contact addNewContact()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Contact target = null;\n target = (org.hl7.fhir.Contact)get_store().add_element_user(CONTACT$6);\n return target;\n }\n }", "public void addContact() \n\t{\n\t\tSystem.out.printf(\"%n--[ Add Contact ]--%n\");\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.printf(\"%nFirst Name: \");\n\t\tString firstName = s.next();\n\t\tSystem.out.printf(\"%nLast Name: \");\n\t\tString lastName = s.next();\n\t\tSystem.out.printf(\"%nPhone Number: \");\n\t\tString phoneNumber = s.next();\n\t\tSystem.out.printf(\"%nEmail Address: \");\n\t\tString emailAddress = s.next();\n\t\tSystem.out.printf(\"%nCompany: \");\n\t\tString company = s.next();\n\t\tBusinessContact b = new BusinessContact(firstName, lastName,\n\t\t\t\tphoneNumber, emailAddress, company);\n\t\tcontacts.add(b);\n\t}", "@GetMapping(value = \"/createContactSuccess\")\r\n\tpublic String createContactSuccess(Model model) {\r\n\t\tmodel.addAttribute(\"contact\", new Contact());\r\n\t\treturn \"contactInfo\";\r\n\r\n\t}", "@Override\n public void onClick(View v) {\n if(validateInputInfo()){\n\n //Get text input\n String firstName = newContactFirstName.getText().toString();\n String lastName = newContactLastName.getText().toString();\n String email = newContactEmailAddress.getText().toString();\n String phone = newContactPhoneNumber.getText().toString();\n\n //Create contact object\n final Contact addMe = new Contact(firstName, lastName, email, phone);\n\n //Get unique ID in database to store Contact object\n String id = myDatabase.push().getKey();\n\n //Add to database\n myDatabase.child(id).setValue(addMe).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n //If successful display message and return to home page\n if(task.isSuccessful()){\n Toast.makeText(getBaseContext(), \"New contact \" + addMe.getDisplayName() + \" created!\", Toast.LENGTH_LONG).show();\n\n //Go to home page\n finish();\n }\n else {\n Toast.makeText(getBaseContext(), \"Unable to add \" + addMe.getDisplayName() + \" contact\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }\n }", "@Override\n\tpublic Contact handRequest() {\n\t\tIvalidation valid = new ValidContact();\n\t\t\n\t\t\n\t\tContact newContact = new Contact(this.name, this.noPhone, this.email);\t//create new contact\n\t\t\n\t\tvalid = new ValidContact();\n\t\tif(valid.valid(newContact)) {\n\t\t\tAppContact2Data.addContactToData(newContact);\n\t\t\tSystem.out.print(\"\\nSuccessfull!\\n\");\n\t\t\treturn newContact;\n\t\t}\n\t\treturn null;\n\t}", "public Contact() {\n\t}", "public void create(Customer c){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"INSERT INTO customer (name, id, phone) VALUES (?, ?, ?)\");\n ppst.setString(1, c.getName());\n ppst.setString(2, c.getId());\n ppst.setString(3, c.getPhone());\n ppst.executeUpdate();\n System.out.println(\"Customer created.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Creation error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }", "public void addContacts(Contact contact) {\n SQLiteDatabase db = dbOpenHelper.getReadableDatabase();\n ContentValues values = new ContentValues();\n\n values.put(KEY_FNAME, contact.getFName());\n values.put(KEY_POTO, contact.getImage());\n\n\n db.insert(TABLE_CONTACTS, null, values);\n db.close();\n }", "public String insertContactStatement() {\n\t\treturn \"INSERT INTO CONTACTS\"\n\t\t\t\t+ \"(\\\"NAME\\\", \\\"SURNAME\\\", \\\"TITLE\\\", \\\"ADDRESS\\\", \\\"CITY\\\", \\\"PROVINCE\\\", \"\n\t\t\t\t+ \"\\\"POSTAL_CODE\\\", \\\"REGION\\\", \\\"COUNTRY\\\", \\\"COMPANY_NAME\\\", \\\"WORKSTATION\\\", \"\n\t\t\t\t+ \"\\\"WORK_PHONE\\\", \\\"WORK_EXTENSION\\\", \\\"MOBILE_PHONE\\\", \\\"FAX_NUMBER\\\", \\\"EMAIL\\\", \"\n\t\t\t\t+ \"\\\"CONTACT_TYPE_ID\\\", \\\"NOTES\\\" )\"\n\t\t\t\t+ \"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n\t}", "public SimpleContactDao() {\n\t\ttry {\n\t\t\tFile contactFile = new File(DB_FILE_NAME);\n\t\t\tif (!contactFile.exists()) {\n\t\t\t\tif (contactFile.createNewFile()) {\n\t\t\t\t\tFileWriter fwriter = new FileWriter(contactFile);\n\t\t\t\t\tfwriter.write(\"{}\");\n\t\t\t\t\tfwriter.close();\n\t\t\t\t\tcontactDtoMap = new HashMap<>();\n\t\t\t\t} else {\n\t\t\t\t\tlog.error(\"File could not created.\");\n\t\t\t\t}\n\n\t\t\t\tlog.info(\"created file : {}\", contactFile.getAbsolutePath());\n\t\t\t} else {\n\t\t\t\tlog.info(\"file exists : {}\", contactFile.getAbsolutePath());\n\t\t\t\tloadFile(contactFile);\n\t\t\t}\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tlog.error(\"something went wrong while initializong contact information.\");\n\t\t}\n\t}", "public Contact() {\n super();\n }", "@GET\n\t@Path(\"CreateCustomer\")\n\tpublic Customer createCustomer(@QueryParam(\"companyname\") String companyname,\n\t\t\t@QueryParam(\"companynumber\") String companynumber, @QueryParam(\"contactname\") String contactname,\n\t\t\t@QueryParam(\"email\") String email, @QueryParam(\"phone\") String phone, @QueryParam(\"username\")String username ,@QueryParam(\"password\") String password) {\n\t\treturn ManagerHelper.getCustomerManager().createCustomer(companyname, companynumber, contactname, email, phone, username,password );\n\t}", "Contact createUnresolvedContact(String address, String persistentData, ContactGroup parentGroup);", "public String creatContact(PartnerConnection connection, String AccountId) throws InterruptedException{\n\n\t\ttry{\n\t\t\tLOG.info(\"--------------------------------------------------------\");\n\t\t\tLOG.info(\" Create New Contact on Account \");\n\t\t\tLOG.info(\"--------------------------------------------------------\");\n\t\t\t\n\t\t\t//Get Country Record Type Id\n\t\t\tString RecordTypeId = commonAPI.getRecordTypeId(connection, \"Contact\", \"Contact\");\n\t\t\tString AccountName \t= commonAPI.getFieldValue(connection, \"Account\", AccountId, \"Name\");\n\n\t\t\t//Create new Company\n\t\t\tLOG.info(\" : Create New Contact - Started.......\");\n\t\t\tdataMap = TestDataProvider.dataReader(TEST_DATA);\n\t\t\tMap<String,Object> contactMap = dataMap.get(\"GlobalContact\");\n\t\t\tcontactMap.put(\"FirstName\", AccountName);\n\t\t\tcontactMap.put(\"RecordTypeId\", RecordTypeId);\n\t\t\tcontactMap.put(\"AccountId\", AccountId);\n\t\t\tString ContactId = ApiUtilities.createObject(connection,\"Contact\", contactMap);\n\t\t\tLOG.info(\"Contact Id : \"+ContactId);\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"\");\n\t\t\treturn ContactId;\n\n\t\t}catch(Exception ex){\n\t\t\tLOG.info(\" : Entered catch \" + ex.getMessage());\n\t\t}\n\t\treturn ContactId;\n\t}", "public DaoResult createPerson(final Person person) {\n if (findPersonByFacebookId(person.getFacebookId()) != null) {\n return DaoResult.RECORD_ALREADY_EXIST;\n }\n //if no, find the city from City table, and create\n CityDataHandler cityDataHandler = new CityDataHandler();\n City fromCity = cityDataHandler.findCity(person.getFrom().getName());\n if (fromCity != null) {\n person.setFrom(fromCity);\n }\n City toCity = cityDataHandler.findCity(person.getTo().getName());\n if (toCity != null) {\n person.setTo(toCity);\n }\n\n EntityManager entityManager = CarPoolBuddyEntityManagerFactory.getInstance().makeEntityManager();\n EntityTransaction tx = entityManager.getTransaction();\n try {\n tx.begin();\n entityManager.persist(person);\n tx.commit();\n } finally {\n if (tx.isActive()) {\n tx.rollback();\n }\n entityManager.close();\n }\n\n //check if inserted\n if (findPersonByFacebookId(person.getFacebookId()) != null) {\n return DaoResult.RECORD_CREATED_SUCCESSFULLY;\n } else {\n return DaoResult.RECORD_CREATION_FAILED;\n }\n }", "public Contact(String name, String phoneNumber) {\n this.name = name;\n this.phoneNumber = phoneNumber;\n\n }", "public long guardarContacto(Contacto c )\n {\n ContentValues initialValues=new ContentValues();\n initialValues.put(\"nombre\", c.getNombre());\n initialValues.put(\"email\", c.getEmail());\n initialValues.put(\"edad\", c.getEdad());\n return db.insert(\"contactos\", null, initialValues);\n }", "public ContactInfo() {\n\n }", "@Override\r\n\tpublic void addContact(Contact contact) {\n\t\tsuper.save(contact);\r\n\t}", "public static void store(Context context, Contact contact) {\n Intent intent = new Intent(ContactsContract.Intents.Insert.ACTION);\n intent.setType(ContactsContract.RawContacts.CONTENT_TYPE);\n\n intent.putExtra(ContactsContract.Intents.Insert.NAME, contact.name)\n .putExtra(ContactsContract.Intents.Insert.PHONE, contact.phoneNumber);\n\n context.startActivity(intent);\n }", "private void save() {\n Toast.makeText(ContactActivity.this, getString(R.string.save_contact_toast), Toast.LENGTH_SHORT).show();\n\n String nameString = name.getText().toString();\n String titleString = title.getText().toString();\n String emailString = email.getText().toString();\n String phoneString = phone.getText().toString();\n String twitterString = twitter.getText().toString();\n \n if (c != null) {\n datasource.editContact(c, nameString, titleString, emailString, phoneString, twitterString);\n }\n else {\n \tc = datasource.createContact(nameString, titleString, emailString, phoneString, twitterString);\n }\n }", "public Contact (String fname, String sname, String id, String phone){\r\n\t\tfirstName = fname;\r\n\t\tsurname = sname;\r\n\t\tuniqueID = id;\r\n\t\tphoneNumber = phone;\r\n\t}", "public void addContact(Contact contact) {\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(KEY_ID, contact.get_id());\n\t\tvalues.put(KEY_USER_FIRST_NAME, contact.getFirst_name());\n\t\tvalues.put(KEY_USER_LAST_NAME, contact.getLast_name());\n\t\tvalues.put(KEY_USER_NAME, contact.getUser_name());\n\t\tvalues.put(KEY_USER_PWD, contact.getPwd());\n\t\tvalues.put(KEY_USER_CONFIRMPWD, contact.getConfirm_pwd());\n\t\tvalues.put(KEY_PH_NO, contact.getPhone_number());\n\t\tvalues.put(KEY_GENDER, contact.getGenderValue());\n\t\tvalues.put(KEY_ADDR_ONE, contact.getAddr_1());\n\t\tvalues.put(KEY_ADDR_TWO, contact.getAddr_2());\n\t\tvalues.put(KEY_CITY, contact.getCity());\n\t\tvalues.put(KEY_STATE, contact.getState());\n\t\tvalues.put(KEY_ZIP, contact.getZipcode());\n\t\tvalues.put(KEY_DOB, contact.getDob());\n\n\t\t// Inserting Row\n\t\tmSqLiteDatabase.insert(USERDETAILS_TABLE, null, values);\n\t\t// mSqLiteDatabase.close(); // Closing database connection\n\t}", "public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }", "private PageAction getAddToContactsAction() {\n return new PageAction() {\n @Override\n public void run() {\n final Transfer transfer = data.getTransfer();\n if(transfer != null && transfer.getBasicMember() != null) { \n contactService.saveContact(transfer.getBasicMember().getId(), new BaseAsyncCallback<Contact>() {\n @Override\n public void onSuccess(Contact result) {\n Parameters params = new Parameters();\n params.add(ParameterKey.ID, result.getMember().getId());\n params.add(ParameterKey.SAVE, true);\n Navigation.get().go(PageAnchor.CONTACT_DETAILS, params);\n } \n }); \n } \n }\n @Override\n public String getLabel() { \n return messages.addToContacts();\n } \n };\n }", "public void openCreateContact(View view){\n intent = new Intent(this, CreateContact.class);\n //we actually are starting the intent up, doing as we intend to - in this case, heading over to the Create Contact class\n startActivity(intent);\n }", "@PostMapping\n\t@ResponseStatus(value = HttpStatus.CREATED)\n\tpublic Contact save ( @RequestBody Contact contact) {\n\t\t\n\t\treturn repository.save(contact);\n\t}", "private void addContact(final String Email, final String password)\n throws NoSuchAlgorithmException, UnsupportedEncodingException {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Added contact \" + Email);\n dao.create(new Contact(Email, password));\n Log.i(\"results\", sb.toString());\n }", "private void addRecord() {\n\t\tContactData cd = new ContactData(contactDataId, aName, aLastname,\n\t\t\t\taDate, aAdress, aGender, aImage);\n\t\tIntent intent = getIntent();\n\t\tintent.putExtra(\"ContactData\", cd);\n\t\tsetResult(RESULT_OK, intent);\n\t\tfinish();\n\t\tonDestroy();\n\t}", "public Object create() {\n executeCallbacks(CallbackType.BEFORE_CREATE);\n\n executeCallbacks(CallbackType.BEFORE_VALIDATION);\n executeValidations();\n executeValidationsOnCreate();\n executeCallbacks(CallbackType.AFTER_VALIDATION);\n\n if (errors.size() > 0) return this;\n\n Adapter adapter = getAdapter();\n if (getId() == null && adapter.shouldPrefetchPrimaryKey(getTableName())) {\n this.id = adapter.getNextSequenceValue(getSequenceName());\n }\n\n StringBuilder sql = new StringBuilder();\n sql.append(\"INSERT INTO \").append(getTableName()).append(\" (\");\n sql.append(quotedColumnNames(includePrimaryKey));\n sql.append(\") VALUES (\").append(quotedAttributeValues(includePrimaryKey)).append(\")\");\n\n id = adapter.insert(sql.toString(), getClass().getName() + \" Create\");\n\n readAssociations();\n readAggregations();\n\n newRecord = false;\n\n executeCallbacks(CallbackType.AFTER_CREATE);\n\n return id;\n }", "private void executeAsyncTaskAddContact() {\n final Uri uri = buildWebServiceUriAddContact();\n final JSONObject json = new JSONObject();\n try {\n json.put(\"email\", mSavedState.getString(getString(R.string.keyMyEmail)));\n json.put(\"myContactID\", mContact.getID());\n json.put(\"colorA\", randomColor());\n json.put(\"colorB\", randomColor());\n //Defaults to adding a contact of doDelete is not specified.\n } catch (Exception e) {\n //woopsy\n }\n new SendPostAsyncTask.Builder(uri.toString(), json)\n .onPreExecute(this::handleAccountUpdateOnPre)\n .onPostExecute(this::handleAddAccountOnPost)\n .onCancelled(this::handleErrorsInTask)\n .build().execute();\n }", "private ContactImpl createContactWithSupportedProperties(IVCardContactProperties contactProperties) throws MappingMissingException {\r\n ContactCreator contactCreator = new ContactCreator(this.contactTemplateModel, speedDialManager);\r\n ContactImpl createdContact = contactCreator.createContactWithProperties(contactProperties);\r\n \r\n return createdContact;\r\n }", "public void AddContact(View view){\n Utils.Route_Start(ListContact.this,Contato.class);\n // Notificar, para atualizar a lista.\n\n }", "void addContact(String name, int number)\r\n\t{\r\n\t\t\r\n\t\tContact a = new Contact(number,name);\r\n\t\tthis.add(a);\r\n\t}", "@Override\n\tpublic void save(Contact contact) throws Exception {\n\t\tupdate(\"insert into contact values (null,?,?,?,?,?,?,?)\",\n\t\t\t\tcontact.toArray());\n\t}", "public void addContact() {\n\t\tif (contactCounter == contactList.length) {\n\t\t\tSystem.err.println(\"Maximum contacts reached. \"\n\t\t\t\t\t\t\t\t+ \"No more contact can be added\");\n\t\treturn;\n\t\t}\n\t\t\n\t\treadContactInfo();\t\n\t}", "ShipmentContactMech createShipmentContactMech();", "public static void addContact ( LinkedList contactsList ) { \n\t\tSystem.out.print ( \"\\n\" + \"Enter the contact's first and last name: \" ); // prompt\n\t\tString [ ] firstAndLastName = CheckInput.getString( ).split( \" \" ); // split the name into first and last\n\t\tString firstName = firstAndLastName [ 0 ]; // assign\n\t\tString lastName = firstAndLastName [ 1 ];\n\t\tSystem.out.print ( \"Enter the contact's phone number: \" );\n\t\tString phoneNumber = CheckInput.getString ( );\n\t\tSystem.out.print ( \"Enter the contact's address: \" );\n\t\tString address = CheckInput.getString ( );\n\t\tSystem.out.print ( \"Enter the contact's city: \" );\n\t\tString city = CheckInput.getString ( );\n\t\tSystem.out.print ( \"Enter the contact's zip code: \" );\n\t\tString zip = CheckInput.getString( );\n\t\tcontactsList.add ( new Contact ( firstName, lastName, phoneNumber, address, city, zip ) );\n\t\t// adds to the LinkedList a new contact with the user given information\n\t\tSystem.out.print ( \"\\n\" );\n\t}", "protected void createCompaniesContacts() {\n\n log.info(\"CompaniesContactsBean => method : createCompaniesContacts()\");\n\n EntityManager em = EMF.getEM();\n EntityTransaction tx = null;\n\n try {\n tx = em.getTransaction();\n tx.begin();\n for (CompaniesEntity c : selectedCompaniesContacts) {\n CompaniesContactsEntity companiesContactsEntity1 = new CompaniesContactsEntity();\n companiesContactsEntity1.setContactsByIdContacts(contactsBean.getContactsEntity());\n companiesContactsEntity1.setCompaniesByIdCompanies(c);\n companiesContactsDao.update(em, companiesContactsEntity1);\n }\n tx.commit();\n log.info(\"Persist ok\");\n } catch (Exception ex) {\n if (tx != null && tx.isActive()) tx.rollback();\n log.info(\"Persist failed\");\n } finally {\n em.clear();\n em.clear();\n }\n\n }", "@Path(\"adduc\")\n @GET\n @Produces(MediaType.TEXT_PLAIN)\n public String insertUserContact(@QueryParam(\"userid\") int uid, @QueryParam(\"city\") String ct, @QueryParam(\"phone\") int tel, @QueryParam(\"jsonpcallback\") String jsonpcallback) {\n // public String insertUserContact(@QueryParam(\"usercontact\") UserContact uc, @QueryParam(\"jsonpcallback\") String jsonpcallback) {\n String val = \"Error! Check Constraints\";\n UserContact uc = new UserContact();\n uc.setUserid(uid);\n uc.setCity(ct);\n uc.setPhone(tel);\n boolean status = ucs.insertUserContact(uc);\n if (status == true) {\n val = \"Added!!\";\n }\n return jsonpcallback + \"(\\\"\" + val + \"\\\")\";\n }", "@Override\n public void onClick(View v) {\n String name = nameEditText.getText().toString();\n String phoneNumber = phoneEditText.getText().toString();\n\n //create a Contact Object to add\n Contact contact1 = new Contact(name, phoneNumber);\n\n //add contact1 object to database\n int temp = 0;\n for (Contact contact : contacts) {\n if (contact.getName().equals(name) && contact.getPhoneNumber().equals(phoneNumber)){\n Toast.makeText(MainActivity.this, \"This contact does exists\", Toast.LENGTH_SHORT).show();\n temp = 1;\n break;\n }\n if (contact.getName().equals(name)) {\n replaceContact(contact1);\n temp = 1;\n break;\n }\n }\n if (temp == 0) {\n addContact(contact1);\n }\n }", "public void initContactCreation() {\n click(By.linkText(\"add new\"));\n //wd.findElement(By.linkText(\"add new\")).click();\n }", "public boolean createPersonalDetails(Integer staffID, String surname, String name, Date dob, String address, String town, String county,\n String postCode, String telNo, String mobileNo, String emergencyContact, String emergencyContactNo){\n\n\n hrDB.addPDRecord(staffID, surname, name, dob, address, town, county,\n postCode, telNo, mobileNo, emergencyContact, emergencyContactNo);\n return true;\n\n\n }", "void addContact(Donor donor) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, donor.getName());\n values.put(KEY_PH_NO, donor.getContuctNumber());\n values.put(KEY_CITY, donor.getCity());\n values.put(KEY_BL_GRP, donor.getBloodGroup());\n values.put(KEY_LAT, donor.getLat());\n values.put(KEY_LAN, donor.getLan());\n\n // Inserting Row\n db.insert(TABLE_CONTACTS, null, values);\n //2nd argument is String containing nullColumnHack\n db.close(); // Closing database connection\n }", "public void addtoCart(BookModel contact) {\n\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(PDF_IMAGE, contact.getImageUrl());\n contentValues.put(PDF_NAME, contact.getImagename());\n contentValues.put(PDF_URL, contact.getPdfUrl());\n\n db.insert(TABLE_NAME, null, contentValues);\n\n\n db.close();\n }", "public boolean InsertContactInfo(String client_id, String email,\n\t\t\tString phone, String address, String create_user)\n\t\t\tthrows SQLException {\n\t\ttry {\n\n\t\t\tthis.TryConnect();\n\n\t\t\tthis.m_objData\n\t\t\t\t\t.SetStoreName(\"hrm_contact_InsertContactInfo(?,?,?,?,?)\");\n\t\t\tthis.m_objData.Parameters.setString(1, client_id);\n\t\t\tthis.m_objData.Parameters.setString(2, email);\n\t\t\tthis.m_objData.Parameters.setString(3, phone);\n\t\t\tthis.m_objData.Parameters.setString(4, address);\n\t\t\tthis.m_objData.Parameters.setString(5, create_user);\n\n\t\t\tthis.m_objData.ExecNoneQuery();\n\t\t\treturn true;\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tILog.Error(\"hrm_contact_UpdateContactInfo error\", this, e);\n\t\t} finally {\n\n\t\t\tthis.TryDisconnect();\n\t\t}\n\t\treturn false;\n\t}", "public long insertContact(String name,String email)\n {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_NAME, name);\n initialValues.put(KEY_EMAIL, email);\n return db.insert(DATABASE_TABLE, null, initialValues);\n }", "@Override\r\n\tpublic boolean addContact(ContentResolver contentResolver, ContactInfo cInfo) {\r\n\t\tif(cInfo != null \r\n\t\t\t\t&& cInfo.getDisplayName() != null \r\n\t\t\t\t&& cInfo.getPhoneNumber() != null) {\r\n\t\t\t//Add name\r\n\t\t\tContentValues values = new ContentValues();\r\n\t\t\tvalues.put(People.NAME, cInfo.getDisplayName());\r\n\t\t\tUri uri = contentResolver.insert(People.CONTENT_URI, values);\r\n\t\t\tLog.d(\"ANDROID\", uri.toString());\r\n\t\t\t\r\n\t\t\t//Add Number\r\n\t\t\tUri numberUri = Uri.withAppendedPath(uri, People.Phones.CONTENT_DIRECTORY);\r\n\t\t\tvalues.clear();\r\n\t\t\tvalues.put(Phones.TYPE, Phones.TYPE_MOBILE);\r\n\t\t\tvalues.put(People.NUMBER, cInfo.getPhoneNumber());\r\n\t\t\tcontentResolver.insert(numberUri, values);\r\n\t\t\treturn true;\r\n\t\t}\t\t\r\n\t\treturn false;\r\n\t}", "public Contacts(int contactID, String contactName, String email) {\r\n this.contactID = contactID;\r\n this.contactName = contactName;\r\n this.email = email;\r\n }", "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 }", "@Override\n public Contact getContactDAO(String firstName, String lastName) {\n\n SQLiteDatabase database = contactDB.getReadableDatabase();\n Cursor cursor = null;\n // Cursor cursor = database.query(\"(Select \"+ContactContract.FIRST_NAME_COLUMN+\" ,\"+ContactContract.LAST_NAME_COLUMN+\" \"+\"from\"+\" \"+ContactContract.DATABASE_TABLE+\n // \"where \"+firstName+\"=\"+ContactContract.DATABASE_TABLE+\".\"+ContactContract.FIRST_NAME_COLUMN +\" )\",null,null );\n Contact contact = null;\n if (cursor != null) {\n contact = new Contact();\n contact.setFirstName(cursor.getString(1));\n contact.setLastName(cursor.getString(2));\n }\n return contact;\n }", "public void creatUser(String name, String phone, String email, String password);", "public String saveNewContact(\n String name,\n String phone,String email) {\n\n String newContactId = null;\n boolean success = false;\n Connection conn = getConnection();\n if (conn != null) {\n success = beginTransaction(conn, \"Guardar Contacto\");\n if (success) {\n String newId = this.generatePrimaryKey(conn, \"_contact\");\n if (newId == null || newId.length() == 0) {\n success = false;\n }\n\n if (success) {\n success = sql.insertIntoContact(conn, newId, name, phone,email);\n }\n if (success) {\n newContactId = newId;\n }\n if (success) {\n commitTransaction(conn, \"saveNewContact\");\n } else {\n rollbackTransaction(conn, \"saveNewContact\");\n }\n }\n closeConnection(conn);\n }\n return newContactId;\n }", "private void saveContact() {\n ArrayList <ContentProviderOperation> contentProviderOperations = new ArrayList <ContentProviderOperation>();\n contentProviderOperations.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI)\n .withValue(ContactsContract.RawContacts.ACCOUNT_TYPE, null).withValue(ContactsContract.RawContacts.ACCOUNT_NAME, null).build());\n //add contact name\n contentProviderOperations.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI)\n .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, 0).withValue(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE)\n .withValue(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME, name).build());\n //add contact number\n contentProviderOperations.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI)\n .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, 0).withValue(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE)\n .withValue(ContactsContract.CommonDataKinds.Phone.NUMBER, phoneNumber).withValue(ContactsContract.CommonDataKinds.Phone.TYPE, ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE).build());\n try {\n ContentProviderResult[] results = getApplicationContext().getContentResolver().\n applyBatch(ContactsContract.AUTHORITY, contentProviderOperations);\n Toast.makeText(this, \"Contact Saved\", Toast.LENGTH_SHORT).show();\n // After save, clear fields\n mNameEdT.setText(\"\");\n mPhoneNumberEdT.setText(\"\");\n } catch (RemoteException e) {\n Log.e(TAG, \"RemoteException: \" + e.getMessage());\n } catch (OperationApplicationException e) {\n Log.e(TAG, \"OperationApplicationException: \" + e.getMessage());\n }\n }", "@Override\n\tpublic void createDoctorRecord(String FirstName, String LastName, String Address, String PhoneNumber,\n\t\t\tString Specialization, String Location)\tthrows RemoteException \n\t{\n\t\tDoctorRecord record = new DoctorRecord();\n\t\t\n\t\trecord.FirstName = FirstName;\t\n\t\trecord.LastName = LastName;\n\t\trecord.Address = Address;\n\t\trecord.PhoneNumber = PhoneNumber;\n\t\trecord.Specialization = Specialization;\n\t\trecord.getRecordID();\n\t\n\t\tStaffRecords.Add(record);\n\t\tif(Location.equals(\"MTL\")){\n\t\t\tMTLcount++;\n\t\t}\n\t\tif(Location.equals(\"DDO\")){\n\t\t\tDDOcount++;\n\t\t}\n\t\tif(Location.equals(\"LVL\")){\n\t\t\tLVLcount++;\n\t\t}\n\t}", "public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}", "public static void create() {\n Application.currentUserCan( 1 );\n \n String author = session.get(\"userEmail\");\n String title = params.get( \"course[title]\", String.class );\n String content = params.get( \"course[content]\", String.class );\n \n if( title.length() > 0 && content.length() > 0 ) {\n Course course = new Course(title, content, author);\n course.save();\n }\n \n index();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_add_contact_screen);\n\n\n /**\n * This method initializes all instance variables defined above\n */\n initializeInstanceVariables();\n\n /**\n * When the finish button is pressed, a call is made to verify the user information AND\n * another call is made to Firebase to push the validated data onto the database.\n *\n */\n finishButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n //Check if input is valid first\n if(validateInputInfo()){\n\n //Get text input\n String firstName = newContactFirstName.getText().toString();\n String lastName = newContactLastName.getText().toString();\n String email = newContactEmailAddress.getText().toString();\n String phone = newContactPhoneNumber.getText().toString();\n\n //Create contact object\n final Contact addMe = new Contact(firstName, lastName, email, phone);\n\n //Get unique ID in database to store Contact object\n String id = myDatabase.push().getKey();\n\n //Add to database\n myDatabase.child(id).setValue(addMe).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n //If successful display message and return to home page\n if(task.isSuccessful()){\n Toast.makeText(getBaseContext(), \"New contact \" + addMe.getDisplayName() + \" created!\", Toast.LENGTH_LONG).show();\n\n //Go to home page\n finish();\n }\n else {\n Toast.makeText(getBaseContext(), \"Unable to add \" + addMe.getDisplayName() + \" contact\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }\n }\n });\n\n /**\n * This is a simple button that when pressed, it sends the user back to the home page\n *\n */\n backButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n }", "private Customer createCustomerData() {\n int id = -1;\n Timestamp createDate = DateTime.getUTCTimestampNow();\n String createdBy = session.getUsername();\n\n if (action.equals(Constants.UPDATE)) {\n id = existingCustomer.getCustomerID();\n createDate = existingCustomer.getCreateDate();\n createdBy = existingCustomer.getCreatedBy();\n }\n\n String name = nameField.getText();\n String address = addressField.getText() + \", \" + cityField.getText();\n System.out.println(address);\n String postal = postalField.getText();\n String phone = phoneField.getText();\n Timestamp lastUpdate = DateTime.getUTCTimestampNow();\n String lastUpdatedBy = session.getUsername();\n\n FirstLevelDivision division = divisionComboBox.getSelectionModel().getSelectedItem();\n int divisionID = division.getDivisionID();\n\n return new Customer(id, name, address, postal, phone, createDate, createdBy, lastUpdate, lastUpdatedBy, divisionID);\n }", "Contact(int instanceId, String name, String phone){\n\t\tthis.name = name;\n\t\tthis.phone = phone;\n\t\tthis.instanceId = instanceId;\n\t}", "public void populateContactsTable() {\n Contact contact1 = createContactFromFile(\"DummyContact1.json\");\n Contact contact2 = createContactFromFile(\"DummyContact2.json\");\n contacts = new ArrayList<>();\n contacts.add(contact1);\n contacts.add(contact2);\n\n contactService.postContact(contact1);\n contactService.postContact(contact2);\n }", "void createACustomer() {\r\n\t\tSystem.out.println(\"\\nCreating a customer:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "public Contact(String name)\n {\n if(name == null || name.equals(\"\")) {\n throw new IllegalArgumentException(\"Name cannot be null.\");\n }\n \n this.name = name;\n this.agenda = new ArrayList<Appointment>();\n }", "public RAMContactoDAO() {\r\n /*contacto.add(c1);\r\n contacto.add(c2);\r\n contacto.add(c3);\r\n contacto.add(c4);*/\r\n }", "public void addContact(String firstName, String lastName,\n\t\t\tString phoneNumber, String emailAddress, String company) \n\t{\n\t\tBusinessContact b = new BusinessContact(firstName, lastName,\n\t\t\t\tphoneNumber, emailAddress, company);\n\t\tcontacts.add(b);\n\t}", "public boolean addCustomer(String firstName, String lastName, String phone, String address) {\r\n\t\tCustomer customer = createCustomer();\r\n\t\tcustomer.setFirstName(firstName);\r\n\t\tcustomer.setLastName(lastName);\r\n\t\tcustomer.setPhone(phone);\r\n\t\tcustomer.setAddress(address);\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tcustomer.setCreationDate(Date.valueOf(cal.get(Calendar.YEAR) + \"-\" + cal.get(Calendar.MONTH) + \"-\" + cal.get(Calendar.DAY_OF_MONTH)));\r\n\t\ttry {\r\n\t\t\tcustomer.commit();\r\n\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public String createTRecord(String firstName, String lastName, String address, String phone, String specialization,\n\t\t\tString location, String managerID);", "public AddAddress(Contact contact) {\n\n\t\tsession = getSession();\n\n\t\t// Show user's name and role:\n\t\tadd(new Label(\"userInfo\", getUserInfo(getSession())));\n\n\t\tCompoundPropertyModel<Contact> contactModel = new CompoundPropertyModel<Contact>(contact);\n\t\tsetDefaultModel(contactModel);\n\n\t\t// Create and add feedback panel to page\n\t\tadd(new JQueryFeedbackPanel(\"feedback\"));\n\n\t\t// Add a create Contact form to the page\n\t\tadd(new CreateAddressForm(\"createAddressForm\", contactModel));\n\n\t\t// single-select no minimum example\n\t\tadd(new Label(\"city0\", new PropertyModel<>(this, \"city0\")));\n\n\t\tSelect2Choice<City> city0 = new Select2Choice<>(\"city0\", new PropertyModel<City>(this, \"city0\"),\n\t\t\t\tnew CitiesProvider());\n\t\tcity0.getSettings().setPlaceholder(\"Please select city\").setAllowClear(true);\n\t\tadd(new Form<Void>(\"single0\").add(city0));\n\n\t}", "@Override\r\n\tpublic boolean create(Moteur obj, Connection conn) throws SQLException {\n\t\treturn false;\r\n\t}", "private ContactModel(Context context) {\n mContext = context.getApplicationContext();\n mDatabase = new ContactBaseHelper(mContext)\n .getWritableDatabase();\n }", "@Override\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\tString createPersonaQuery = \"CREATE TABLE \" + TBL_PERSONA + \" (\" + FLD_ID +\n\t\t\t\t\t\" INTEGER PRIMARY KEY AUTOINCREMENT,\" + FLD_NOMBRE + \" TEXT,\" +\n\t\t\t\t\tFLD_CORREO + \" TEXT,\" + FLD_TELEFONO + \" TEXT)\";\n\t\t\tdb.execSQL(createPersonaQuery);\n\t\t}", "public void addContact(String name, String number) {\n\n\t\ttry{\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(\"./src/data/contactInfo.text\", true));\n\t\t\twriter.write(name);\n\t\t\twriter.write(\" | \");\n\t\t\twriter.write(number);\n\t\t\twriter.write(\" |\");\n\t\t\twriter.newLine();\n\t\t\twriter.close();\n\t\t}catch (IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public int create(Candidato c) {\r\n\t\t Connection con = null;\r\n\t\t String sql = \"INSERT INTO candidato(cpf, nome, cargo) VALUES(?,?,?)\";\r\n\t\t PreparedStatement stmt = null;\r\n\t\t con = ConnectionFactory.getConnection();\r\n\t\t try {\r\n\t\t\t stmt = con.prepareStatement(sql);\r\n\t\t\t stmt.setString(1, c.getCpf());\r\n\t\t\t stmt.setString(2, c.getNome());\r\n\t\t\t stmt.setString(3, c.getCargo());\r\n\t\t\t stmt.execute();\r\n\t\t\t return 1;\r\n\t\t } catch(SQLException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Erro ao cadastrar no banco de dados!\"+e.getMessage(), \"Erro\", 2);\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tConnectionFactory.closeConnection(con,stmt);\r\n\t\t\t}\r\n\t }" ]
[ "0.76280046", "0.7095293", "0.69612557", "0.682761", "0.6711824", "0.67041266", "0.6556355", "0.65424573", "0.6541615", "0.64876366", "0.6463753", "0.6388367", "0.63795966", "0.637916", "0.63730943", "0.6362734", "0.6353018", "0.63155985", "0.62818134", "0.62637675", "0.6256465", "0.6242437", "0.62226474", "0.6211932", "0.6211932", "0.6211932", "0.61660576", "0.6164288", "0.6148812", "0.61287016", "0.6088126", "0.6084821", "0.6071034", "0.6062505", "0.6013498", "0.6003565", "0.5996835", "0.59908605", "0.59894407", "0.59601253", "0.594356", "0.59384805", "0.59287447", "0.59219724", "0.5912972", "0.5895417", "0.58904237", "0.58889264", "0.58458257", "0.58392495", "0.58308685", "0.58305705", "0.58279955", "0.58276004", "0.5826699", "0.5812964", "0.5805857", "0.58048457", "0.5793487", "0.57915556", "0.57840085", "0.5783863", "0.57795864", "0.5760206", "0.57508516", "0.573835", "0.5723904", "0.57205164", "0.57118607", "0.5710502", "0.570087", "0.5700378", "0.5698482", "0.5693366", "0.56710315", "0.56510454", "0.5650859", "0.5639432", "0.5628051", "0.5613695", "0.55832475", "0.5583147", "0.5582046", "0.558049", "0.55713403", "0.5570733", "0.5565037", "0.55616236", "0.5548965", "0.5531237", "0.5523224", "0.5508581", "0.5500341", "0.54971874", "0.5496344", "0.5495555", "0.5491772", "0.54913944", "0.54898196", "0.548271" ]
0.6050704
34
Method for Updating a contact matching the UUID
public void updateContact(ContactBE contact) { String uuidString = contact.getId().toString(); ContentValues values = getContentValues(contact); mDatabase.update(ContactTable.NAME, values, ContactTable.Cols.UUID + " = ?", new String [] {uuidString}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateContact(String id, int status);", "@Override\n\tpublic void update(Contact contact) throws Exception {\n\t\tObject[] params = contact.toEditArray();\n\t\tparams = ArrayUtils.add(params, contact.getId());\n\t\tupdate(\"update contact set customer=?, gender=?, age=?, position=?, phone=?, relation=? where id = ?\",\n\t\t\t\tparams);\n\t}", "int updateContact(String email, String firstName, String lastName, String phone, String username);", "@Override\r\n\tpublic void updateContact(Contact contact) {\n\t\tsuper.update(contact);\r\n\t}", "public void contact_update(contact contact){\n \tSQLiteDatabase db = this.getWritableDatabase();\n\n \t// 2. create ContentValues to add key \"column\"/value\n \tContentValues values = new ContentValues();\n \tvalues.put(KEY_CONTACT_ADDRESS, contact.address_get());\n \tvalues.put(KEY_CONTACT_NAME, contact.name_get());\n \tvalues.put(KEY_CONTACT_TYPE, contact.type_get());\n \tvalues.put(KEY_CONTACT_KEYSTAT, contact.keystat_get());\n \tif (contact.type_get() == contact.TYPE_GROUP)\n \t\tvalues.put(KEY_CONTACT_MEMBERS, contact.members_get_string());\n \tvalues.put(KEY_CONTACT_LASTACT, contact.time_lastact_get());\n \tvalues.put(KEY_CONTACT_UNREAD, contact.unread_get());\n \tvalues.put(KEY_CONTACT_GROUP, contact.group_get());\n\n \tLog.d(\"contact_update\", \"update contact with id \" + contact.id_get());\n \t// 3. update\n \tdb.update(TABLE_CONTACT, // table\n \t\t\tvalues, // key/value -> keys = column names/ values = column values\n \t\t\t\"id = \" + contact.id_get(), null);\n \t\n \t// 4. close\n \tdb.close();\n }", "public int updateContact(Contact contact) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n\n values.put(KEY_NAME, contact.get_name()); // Contact Name\n values.put(KEY_AUDIOS, contact.get_audios());\n values.put(KEY_CONTENTS, contact.get_contents());\n values.put(KEY_CAPTURED_IMAGE, contact.get_captured_image());\n values.put(KEY_DELETE_VAR, contact.get_delelte_var());\n values.put(KEY_GALLERY_IMAGE, contact.get_gallery_image());\n values.put(KEY_PHOTO, contact.get_photo());\n values.put(KEY_RRECYCLE_DELETE, contact.get_recycle_delete());\n\n // updating row\n return db.update(TABLE_CONTACTS, values, KEY_ID + \" = ?\",\n new String[]{String.valueOf(contact.get_id())});\n }", "@Override\r\n\tpublic boolean editContact(ContentResolver contentResolver, ContactInfo cInfo) {\r\n\t\tif(cInfo != null) {\r\n\t\t\tlong id = Integer.parseInt(cInfo.get_ID());\r\n\t\t\t\r\n\t\t\t//Update with new name\r\n\t\t\tUri uri = ContentUris.withAppendedId(People.CONTENT_URI, id);\r\n\t\t\tContentValues values = new ContentValues();\r\n\t\t\tvalues.put(PeopleColumns.NAME, cInfo.getDisplayName());\r\n\t\t\tint effectedRows = contentResolver.update(uri, values, null, null);\r\n\t\t\t\r\n\t\t\t//Used to test the above mentioned bug. \r\n\t\t\t//Currently program shows the phone_ID and the _ID as being the same\r\n\t\t\t//This is WRONG\r\n\t\t\tLog.d(TAG, TAG + \" nameSt \" + cInfo.getDisplayName());\r\n\t\t\tLog.d(TAG, TAG + \" nameID \" + cInfo.get_ID());\r\n\t\t\tLog.d(TAG, TAG + \" phoneSt \" + cInfo.getPhoneNumber());\r\n\t\t\tLog.d(TAG, TAG + \" phoneID \" + cInfo.getPhone_ID());\r\n\t\t\t\r\n\t\t\t//Update with new number\r\n\t\t\tUri numberUri = Uri.withAppendedPath(uri, People.Phones.CONTENT_DIRECTORY);\r\n\t\t\tvalues.clear();\r\n\t\t\tvalues.put(Contacts.Phones.TYPE, getPhoneType(cInfo.getPhoneType()));\r\n\t\t\tvalues.put(People.Phones.NUMBER, cInfo.getPhoneNumber());\r\n\t\t\teffectedRows += contentResolver.update(Uri.withAppendedPath(numberUri, cInfo.getPhone_ID()), values, null, null);\r\n\t\t\t\r\n\t\t\tif(effectedRows <= 0)\r\n\t\t\t\treturn false;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void patientUpdate(long id, String firstName, String lastName, String identifier, String facility, String dob,\n String sex, String contact1, String contact2, String contact3, String location, String outcome,\n String txStart){\n Callback<Users> callback = new Callback<Users>() {\n\n @Override\n public void success(Users serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceServerEvent(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.updatePatient(id, firstName, lastName, identifier, dob, facility, sex, contact1,\n contact2, contact3, txStart, location, outcome, callback);\n }", "public void updateDetails(String contactNo, String email, String address) {\n this.contactNo = contactNo;\n this.email = email;\n this.address = address;\n }", "public boolean UpdateContactInfo(String contact_id, String email,\n\t\t\tString phone, String address, String udpate_user)\n\t\t\tthrows SQLException {\n\t\ttry {\n\n\t\t\tthis.TryConnect();\n\n\t\t\tthis.m_objData\n\t\t\t\t\t.SetStoreName(\"hrm_contact_UpdateContactInfo(?,?,?,?,?)\");\n\t\t\tthis.m_objData.Parameters.setString(1, contact_id);\n\t\t\tthis.m_objData.Parameters.setString(2, email);\n\t\t\tthis.m_objData.Parameters.setString(3, phone);\n\t\t\tthis.m_objData.Parameters.setString(4, address);\n\t\t\tthis.m_objData.Parameters.setString(5, udpate_user);\n\n\t\t\tthis.m_objData.ExecNoneQuery();\n\t\t\treturn true;\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tILog.Error(\"hrm_contact_UpdateContactInfo error\", this, e);\n\t\t} finally {\n\n\t\t\tthis.TryDisconnect();\n\t\t}\n\t\treturn false;\n\t}", "public void updateContact(View v){\n\n receivedPersonInfo.name = nameField.getText().toString();\n receivedPersonInfo.address = addressField.getText().toString();\n receivedPersonInfo.business = primbusiness.getItemAtPosition(primbusiness.getSelectedItemPosition()).toString();\n receivedPersonInfo.province = province.getItemAtPosition(province.getSelectedItemPosition()).toString();\n receivedPersonInfo.toMap(); // update hash\n appState.firebaseReference.child(receivedPersonInfo.uid).setValue(receivedPersonInfo);\n }", "public void updateContact() {\r\n\t\tSystem.out.println(\"enter the name of the contact whose details are to be updated\");\r\n\t\tString name = scanner.nextLine();\r\n\t\tContact existing = service.getContact(name); //get the existing contact details from service<-dao\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"1. keep the same address\\n2. update the address\");\r\n\t\tint choice = Integer.parseInt(scanner.nextLine());\r\n\t\tString address;\r\n\t\tif(choice==1) {\r\n\t\t\taddress=existing.getAddress();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"enter new address\");\r\n\t\t\taddress = scanner.nextLine();\r\n\t\t}\r\n\t\t\r\n\t\t//mobile number updation\r\n\t\tSystem.out.println(\"1. keep the same mobile number(s)\\n2. add new mobile number\\n3.remove existing added number\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tString mobileNumber[];\r\n\t\t\r\n\t\t//if the user wants to keep same mobile number(s)\r\n\t\tif(choice==1) {\r\n\t\t\tmobileNumber=existing.getMobileNumber();\r\n\t\t}\r\n\t\t\r\n\t\t//if the user wants to add a new mobile number to already existing \r\n\t\telse if(choice==2) {\r\n\t\t\tmobileNumber=existing.getMobileNumber();\r\n\t\t\tList<String> numberList = new ArrayList<>(Arrays.asList(mobileNumber));\r\n\t\t\tSystem.out.println(\"enter new mobile number\");\r\n\t\t\tString newNumber = scanner.nextLine();\r\n\t\t\tif(numberList.contains(newNumber)) {\r\n\t\t\t\tSystem.out.println(\"the number is already a part of this contact\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnumberList.add(newNumber);\r\n\t\t\t}\r\n\t\t\tmobileNumber=numberList.toArray(new String[0]);\r\n\t\t}\r\n\t\t\r\n\t\t//if the user wants to remove some number from existing numbers\r\n\t\telse {\r\n\t\t\tmobileNumber=existing.getMobileNumber();\r\n\t\t\tList<String> numberList = new ArrayList<>(Arrays.asList(mobileNumber));\r\n\t\t\tSystem.out.println(\"enter mobile number to remove\");\r\n\t\t\tString removingNumber = scanner.nextLine();\r\n\t\t\tif(!numberList.contains(removingNumber)) {\r\n\t\t\t\tSystem.out.println(\"no such mobile number exist\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnumberList.remove(removingNumber);\r\n\t\t\t}\r\n\t\t\tmobileNumber=numberList.toArray(new String[0]);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//updating the profile picture\r\n\t\tSystem.out.println(\"1. keep the same image\\n2. update the image\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tString imageReference;\r\n\t\tif(choice==1) {\r\n\t\t\timageReference=existing.getImageReference();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"enter new image path\");\r\n\t\t\timageReference = scanner.nextLine();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//updating the date of birth\r\n\t\tSystem.out.println(\"1. keep the same date of birth\\n2. update the date of birth\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tLocalDate dateOfBirth;\r\n\t\tif(choice==1) {\r\n\t\t\tdateOfBirth=existing.getDateOfBirth();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"enter new date of birth\");\r\n\t\t\tdateOfBirth = LocalDate.parse(scanner.nextLine());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//updating the email - same logic as that of updating mobile number\r\n\t\tSystem.out.println(\"1. keep the same email Id(s)\\n2. add new email Id\\n3.remove existing email Id\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tString email[];\r\n\t\tif(choice==1) {\r\n\t\t\temail=existing.getEmail();\r\n\t\t}\r\n\t\telse if(choice==2) {\r\n\t\t\temail=existing.getEmail();\r\n\t\t\tList<String> emailList = new ArrayList<>(Arrays.asList(email));\r\n\t\t\tSystem.out.println(\"enter new email Id\");\r\n\t\t\tString newEmail = scanner.nextLine();\r\n\t\t\tif(emailList.contains(newEmail)) {\r\n\t\t\t\tSystem.out.println(\"the email is already a part of this contact\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\temailList.add(newEmail);\r\n\t\t\t}\r\n\t\t\temail=emailList.toArray(new String[0]);\r\n\t\t}\r\n\t\telse {\r\n\t\t\temail=existing.getEmail();\r\n\t\t\tList<String> emailList = new ArrayList<>(Arrays.asList(email));\r\n\t\t\tSystem.out.println(\"enter email to remove\");\r\n\t\t\tString removingEmail = scanner.nextLine();\r\n\t\t\tif(!emailList.contains(removingEmail)) {\r\n\t\t\t\tSystem.out.println(\"no such email exist\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\temailList.remove(removingEmail);\r\n\t\t\t}\r\n\t\t\temail=emailList.toArray(new String[0]);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//updating the group id \r\n\t\tSystem.out.println(\"1. keep the same group Id\\n2. update the group Id\");\r\n\t\tchoice = Integer.parseInt(scanner.nextLine());\r\n\t\tint groupId;\r\n\t\tif(choice==1) {\r\n\t\t\tgroupId = existing.getGroupId();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"enter new group Id\");\r\n\t\t\tshowGroups(service); \t\t\t\t\t//this is static method which shows the available groups\r\n\t\t\tgroupId = Integer.parseInt(scanner.nextLine());\r\n\t\t}\r\n\t\t\r\n\t\t//setting up the contact object \r\n\t\tContact updated = new Contact(name, address, mobileNumber, imageReference, dateOfBirth, email, groupId);\r\n\t\t\r\n\t\t//calling the service update method which calls the DAO to update the contact\r\n\t\tint rowsEffected = service.updateExistingContact(existing, updated);\r\n\t\tSystem.out.println(rowsEffected+\" row(s) updated\");\r\n\t\t\r\n\t}", "public int updateContact(String key, Contact contact) {\n\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\n\t\tvalues.put(NAME_FIELD, contact.getName());\n\t\tvalues.put(EMAIL_FIELD, contact.getEmail());\n\t\tvalues.put(PHONE_FIELD, contact.getPhone());\n\t\tvalues.put(COMPANY_FIELD, contact.getCompanyName());\n\t\tvalues.put(JOBTITLE_FIELD, contact.getJobTitle());\n\t\tvalues.put(STATE_FIELD, contact.getState());\n\n\t\tint updated = db.update(TABLE_NAME, values, PHONE_FIELD + \"=?\",\n\t\t\t\tnew String[] { key });\n\n\t\tdb.close();\n\t\treturn updated;\n\t}", "void editAddressUser(String uid, Address address);", "public String UpdateContacts() throws Exception {\n String params = null;\n String result=null;\n String contactlist=new PhoneContacts().getAllContactNumber(this);\n if(contactlist !=null) {\n params = \"&phone=\" + URLEncoder.encode(this.userphone, \"UTF-8\") +\n \"&password=\" + URLEncoder.encode(this.password, \"UTF-8\") +\n \"&action=\" +URLEncoder.encode(\"contactUpdate\", \"UTF-8\") +\n \"&json=\" +URLEncoder.encode(contactlist, \"UTF-8\") +\n \"&\";\n result= socketOperator.sendHttpRequest(params);\n if(result !=LoginActivity.NO_NEW_UPDATE) {\n new StoreContacts(this).JosnDecoding(result);\n result=\"updated\";\n }\n }\n else result=\"No Contacts for update\";\n return result;\n }", "public void updateContact(View v){\n\n String uid = appState.firebaseReference.push().getKey();\n String businessID = ubidField.getText().toString();\n String name = unameField.getText().toString();\n String location = ulocationField.getText().toString();\n String primaryBiz = uprimaryBizField.getText().toString();\n String address = uaddressField.getText().toString();\n\n Map<String, Object> businessUpdate = receivedPersonInfo.toMap();\n businessUpdate.put(\"uid\", uid);\n businessUpdate.put(\"bid\", businessID);\n businessUpdate.put(\"name\", name);\n businessUpdate.put(\"primaryBiz\", primaryBiz);\n businessUpdate.put(\"address\", address);\n businessUpdate.put(\"location\", location);\n\n appState.firebaseReference.child(receivedPersonInfo.uid).setValue(businessUpdate);\n finish();\n Intent intent=new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "@PUT\n\t@Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML})\n\t@Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML})\n\t@Path(\"/contact/{name}\")\n\tpublic Response update(@PathParam(\"name\") String name,Contact contact){\n\t\tcontact.setName(name);\n\t\tAddressBookResponse addressBookResponse = new AddressBookResponse();\n\t\tif(processor.update(contact)){\n\t\t\taddressBookResponse.setCode(Status.OK);\n\t\t\taddressBookResponse.setMessage(\"Success\");\n\t\t\taddressBookResponse.setMessage(\"Entery got successfully created\");\n\t\t}else{\n\t\t\taddressBookResponse.setCode(Status.NOT_FOUND);\n\t\t\taddressBookResponse.setMessage(\"contact for \" + contact.getName() \n\t\t\t\t\t+ \" \"+ contact.getlName() + \" does not exist\");\n\t\t}\n\t\t\n\t\treturn Response.ok().entity(addressBookResponse).build();\n\t\t\n\t}", "public String updateContactStatement() {\n\t\treturn \"UPDATE CONTACTS SET (name, surname, title, address, city, \"\n\t\t\t\t+ \"province, postal_Code, region, country , company_Name, \"\n\t\t\t\t+ \"workstation, work_Phone, work_Extension, mobile_Phone, \"\n\t\t\t\t+ \"fax_Number, email, contact_type_id, notes) = (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) \" + \"WHERE id=?\";\n\n\t}", "public static int handleUpdateContact(Request req, Response res) {\n \n try {\n \n ObjectMapper objectMapper = new ObjectMapper();\n \n logger.info(\"raw body in handleUpdate = \\n\" + req.body());\n \n String data = Jsoup.parse(req.body()).text()\n .replaceAll(Path.Web.OK_PATTERN, \"\");\n \n logger.info(\"Jsoup parsed and escaped data = \\n\" + data);\n \n \n Contact c = objectMapper.readValue(data, Contact.class);\n \n String userIdNew = req.session(false).attribute(Path.Web.ATTR_USER_ID);\n String id = req.params(\"id\");\n \n if(userIdNew != null && !userIdNew.isEmpty() && id != null && !id.isEmpty()) {\n ObjectId objectId = new ObjectId(id); \n c.setUserId(userIdNew);\n c.setId(objectId.toString());\n c.setUpdatedAt(new Date());\n ds = dbHelper.getDataStore();\n\t ds.save(c);\n res.status(200);\n logger.info(\"updated contact object after mapping and setting id = \\n\" + c.toString());\n \n } else {\n //you managed not to login and get here\n logger.info(\"No user id found for the update operation\");\n res.status(500);\n }\n \n } catch(Exception e) {\n logger.info(\"error parsing data from handleUpdateContact \\n\");\n e.printStackTrace();\n res.status(500);\n }\n \n return res.status();\n\t}", "public void setContactUid(final String val) {\n contactUid = val;\n }", "int updateByPrimaryKey(SdkPhone record);", "public void setABContact(entity.ABContact value);", "public void setContact(Contact contact) {\n this.contact = contact;\n }", "public void setContact(Contact contact) {\n this.contact = contact;\n }", "public boolean updateContactList(String contactId, String userId){\n Organizer og = (Organizer)idToPerson.get(userId);\n if(!og.getContactList().contains(contactId)) { // checking if they are not currently a contact\n og.addContact(contactId);\n return true;\n }\n return false;\n }", "public void setContact(String contact) {\n this.contact = contact;\n }", "public void setContact(String contact) {\n this.contact = contact;\n }", "public void setContact(String contact) {\n this.contact = contact;\n }", "public void setContact(String contact) {\n this.contact = contact;\n }", "public void setPrimaryContact(String contact);", "int updateByPrimaryKey(Addresses record);", "@Test\n public void updateContact() {\n }", "public void updateUser(int uid, String name, String phone, String email, String password, int money, int credit);", "void updateCustomerById(Customer customer);", "int updateByPrimaryKey(UcMembers record);", "@PostMapping(\"/update-contact/{cid}\")\n\tpublic String updateContact(@PathVariable(\"cid\") Integer cid,Model m) {\n\t\t\n\t\tm.addAttribute(\"title\",\"Update contact\");\n\t\t\n\t\tContact contact = this.contactRepository.findById(cid).get();\n\t\t\n\t\tm.addAttribute(\"contact\",contact);\n\t\t\n\t\treturn \"normal/update_form\";\n\t}", "@GET\n\t@Path(\"UpdateCustomer\")\n\tpublic Reply UpdateCustomer(@QueryParam(\"id\") int id, @QueryParam(\"companyname\") String companyname,\n\t\t\t@QueryParam(\"companynumber\") String companynumber, @QueryParam(\"contactname\") String contactname,\n\t\t\t@QueryParam(\"email\") String email, @QueryParam(\"phone\") String phone, @QueryParam(\"user\") int user) {\n\t\treturn ManagerHelper.getCustomerManager().UpdateCustomer(id, companyname, companynumber, contactname, email,\n\t\t\t\tphone, user);\n\t}", "int updateByPrimaryKey(mailIdentify record);", "@Test\r\n\tvoid testContactServiceUpdatAddress() {\r\n\t\t// update contact address\r\n\t\tcontactService.updateContactAddress(id, id);\r\n\t\tassertTrue(contactService.getContactAddress(id).equals(id));\r\n\t}", "SerialResponse editRecipient(String recipientToken, PinRecipientPut pinRecipientPut);", "int updateByPrimaryKey(Cargo record);", "int updateByPrimaryKey(Email record);", "public void updateMobilePhoneForPrincipal(@Nullable MobilePhone curPhone, @Nullable MobilePhone newPhone, @Nullable Long principal) \n throws ValidationException, DuplicateKeyException, ItemNotFoundException, RepositoryServerException;", "int updateByPrimaryKey(Card record);", "@Test\r\n\tvoid testContactServiceUpdatPhone() {\r\n\t\t// update contact phone\r\n\t\tcontactService.updateContactPhone(id, \"9876543210\");\r\n\t\tassertTrue(contactService.getContactPhone(id).equals(\"9876543210\"));\r\n\t}", "int updateByPrimaryKey(SsSocialSecurityAccount record);", "@Override\n public void updateCustomer(UUID customerId, @RequestBody Customer customer) {\n log.debug(\"Updating a customer to service...\");\n }", "public void setContact(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONTACT_PROP.get(), value);\n }", "int updateByPrimaryKey(OcCustContract record);", "int updateByPrimaryKey(TVmManufacturer record);", "int updateByPrimaryKey(DangerMerchant record);", "public Address update(Address entity);", "int updateByPrimaryKey(CusBankAccount record);", "@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"chat/messages/{id}\")\n Call<Void> editChatMessage(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Body ChatMessageResource chatMessageResource\n );", "public void setContact(com.vmware.converter.DVSContactInfo contact) {\r\n this.contact = contact;\r\n }", "public void testUpdateDataToDb() {\n String accountType = SimUtils.ACCOUNT_TYPE_USIM;\n ContentResolver resolver = mTargetContext.getContentResolver();\n\n ArrayList<String> arrNickname = new ArrayList<String>();\n String updateNickname = \"ghjkk\";\n String oldNickname = \"abc\";\n arrNickname.add(updateNickname);// 0\n arrNickname.add(oldNickname);// 1\n long rawId = 0; // TODO how to get the rawId,// Contacts.CONTENT_URI\n int type = 0;// DB_UPDATE_NICKNAME = 0;DB_UPDATE_ANR=1\n // 1.sim\n accountType = SimUtils.ACCOUNT_TYPE_SIM;\n boolean updateSuccess = mOpContactAccountExtension.updateDataToDb(accountType, resolver, arrNickname, null,\n rawId, type, Utils.COMMD_FOR_SNE);\n assertFalse(updateSuccess);\n\n // 2.type not 0,\n type = 1;\n updateSuccess = mOpContactAccountExtension\n .updateDataToDb(accountType, resolver, arrNickname, null, rawId, type, Utils.COMMD_FOR_SNE);\n assertFalse(updateSuccess);\n\n // 3.usim--update\n accountType = SimUtils.ACCOUNT_TYPE_USIM;\n type = 0;\n updateSuccess = mOpContactAccountExtension\n .updateDataToDb(accountType, resolver, arrNickname, null, rawId, type, Utils.COMMD_FOR_SNE);\n assertTrue(updateSuccess);\n\n // 4.--arrNickname null ,or do not have 2 values--false\n arrNickname.clear();\n updateSuccess = mOpContactAccountExtension\n .updateDataToDb(accountType, resolver, arrNickname, null, rawId, type, Utils.COMMD_FOR_SNE);\n assertFalse(updateSuccess);\n\n // 04--insert\n updateNickname = \"newnicknamein\";\n oldNickname = \"\";\n arrNickname.add(updateNickname);\n arrNickname.add(oldNickname);\n updateSuccess = mOpContactAccountExtension\n .updateDataToDb(accountType, resolver, arrNickname, null, rawId, type, Utils.COMMD_FOR_SNE);\n assertTrue(updateSuccess);\n\n // 05--delete--\n arrNickname.clear();\n updateNickname = \"\";\n oldNickname = \"haveaname\";\n arrNickname.add(updateNickname);\n arrNickname.add(oldNickname);\n updateSuccess = mOpContactAccountExtension\n .updateDataToDb(accountType, resolver, arrNickname, null, rawId, type, Utils.COMMD_FOR_SNE);\n assertTrue(updateSuccess);\n }", "public void updateAddress(Address address)\n\t{\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\t \n\t\ttry\n\t\t{\n\t\t\t conn = ConnectionObj.getConnection();\n\t\t stmt = conn.prepareStatement(\"UPDATE contact_info SET person_id=?,address_line_1=?,address_line_2=?,\"\n\t\t \t\t+ \"city=?,state=?,country=?,zipcode=? \"\n\t\t \t\t+ \" WHERE contact_info_id=?\");\n\n\t\t stmt.setInt(1,Integer.parseInt(address.getPersonId()));\n\t\t //stmt.setDate(2, new java.sql.Date(DateUtility.getDateFromEle(address.getContactDate()).getTime()));\n\t\t stmt.setString(2, address.getAddress1());\n\t\t stmt.setString(3, address.getAddress2());\n\t\t stmt.setString(4, address.getCity());\n\t\t stmt.setString(5, address.getState());\n\t\t stmt.setString(6, address.getCountry());\n\t\t stmt.setString(7, address.getZip());\n\t\t \n\t\t stmt.setInt(8, Integer.parseInt(address.getId()));\n\t\t \n\t\t stmt.executeUpdate();\n\t\t \n\t\t \n\t\t updateEmailAddress(address);\n\t\t updatePhoneNumber(address);\n\t\t\t\n\t\t}\n\t\tcatch(Exception e )\n\t\t{\n\t\t\tSystem.out.println(\"Problem in Updating Address Data \");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\tif(stmt!=null)\n\t\t\t\ttry {\n\t\t\t\t\tstmt.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}", "@PutMapping(\"/contacts/{id}\")\r\n\tEntityModel<Contact> replaceContact(@RequestBody Contact newContact, @PathVariable Long id) {\r\n\t\t\r\n\t\treturn repo.findById(id).map(contact -> {\r\n\t\t\tcontact.setName((newContact.getName()));\r\n\t\t\tcontact.setRelation(newContact.getRelation());\r\n\t\t\treturn assembler.toModel(repo.save(contact));\r\n\t\t}).orElseGet(() -> {\r\n\t\t\tnewContact.setId(id);\r\n\t\t\treturn assembler.toModel(repo.save(newContact));\r\n\t\t});\r\n\t}", "int updateByPrimaryKey(ClinicalData record);", "public void updatePhoneNumber(Address address)\n\t{\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\t \n\t\ttry\n\t\t{\n\t\t\t conn = ConnectionObj.getConnection();\n\t\t stmt = conn.prepareStatement(\"UPDATE phone_number_info SET person_id=?,phone_number=? \"\n\t\t \t\t+ \" WHERE idphone_number_info_id=?\");\n\n\t\t stmt.setInt(1,Integer.parseInt(address.getPersonId()));\n\t\t stmt.setInt(2, Integer.parseInt(address.getPhoneNumber()));\n\t\t \n\t\t stmt.setInt(3, Integer.parseInt(address.getPhoneNumberId()));\n\t\t \n\t\t stmt.executeUpdate();\n\t\t\t\n\t\t}\n\t\tcatch(Exception e )\n\t\t{\n\t\t\tSystem.out.println(\"Problem in Updating Address Data \");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tif(conn!=null)\n\t\t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\tif(stmt!=null)\n\t\t\t\ttry {\n\t\t\t\t\tstmt.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}\n\t}", "private static void modifyContact() {\n System.out.print(\"Enter the name of the current contact: \");\n String oldName = scanner.nextLine();\n if(phone.onFile(oldName)) {\n Contact oldContact = phone.queryContact(oldName);\n System.out.print(\"Enter the name of the new contact: \");\n String newName = scanner.nextLine();\n if(phone.onFile(newName)) {\n System.out.println(newName + \", is already a contact\");\n boolean proceed = true;\n while (proceed) {\n System.out.print(\"Update existing phone number(y/n)? \");\n String choice = scanner.nextLine();\n //Allow user to decide to update existing contact's number\n if (choice.equalsIgnoreCase(\"y\")) {\n System.out.print(\"Enter the new phone number: \");\n String newNumber = scanner.nextLine();\n //Check whether new phone number matches existing\n if (oldContact.getPhoneNumber().equalsIgnoreCase(newNumber)) {\n System.out.println(\"Duplicate information\");\n } else {\n Contact newContact = Contact.addNewContact(newName, newNumber);\n phone.modifyContact(oldContact, newContact);\n System.out.println(newName + \"'s number has been updated to: \"\n + newContact.getPhoneNumber());\n proceed = false;\n }\n } else if (choice.equalsIgnoreCase(\"n\")) {\n proceed = false;\n } else {\n System.out.println(\"Please enter a valid response: \");\n }\n }\n }\n // As long as new name does not match existing, following code will execute\n else {\n System.out.print(\"Enter the new contact number: \");\n String number = scanner.nextLine();\n Contact newContact = Contact.addNewContact(newName, number);\n phone.modifyContact(oldContact, newContact);\n System.out.println(\"\\t\" + oldName + \", has been replaced with: \" + newName + \"\\n\");\n }\n }\n // If existing name does not match existing contact, following will execute..\n else {\n System.out.println(\"\\t\"+oldName+\", is not one of your contacts\\n\");\n }\n }", "int updateByPrimaryKey(Device record);", "int updateByPrimaryKey(Device record);", "int updateByPrimaryKeySelective(SdkPhone record);", "public void setContact(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONTACT_PROP.get(), value);\n }", "@PatchMapping(\"/user/contacts\")\n ResponseEntity<?> updateContacts(@RequestHeader(name = \"username\") String username, @RequestBody List<Contact> contacts) {\n contacts = contactService.updateContacts(contacts);\n return ResponseEntity.ok(contacts);\n }", "public static void update(Customer aCustomer) throws NotFoundException\r\n\t{\n\t\tphoneNumber = aCustomer.getPhoneNo();\r\n\t\tname = aCustomer.getName();\r\n\t\taddress = aCustomer.getAddress();\r\n\r\n\t\t// define the SQL query statement using the phone number key\r\n\t\tString sqlUpdate = \"Update CustomerTable \" +\r\n\t\t\t\t\t\t\t\t \" SET CustomerName = '\" + name +\"', \" +\r\n\t\t\t\t\t\t\t\t \" address = '\" + address +\"' \" +\r\n\t\t\t\t\t\t\t\t \" WHERE PhoneNo = '\" + phoneNumber + \"'\";\r\n\r\n\t\t// see if this customer exists in the database\r\n\t\t// NotFoundException is thrown by find method\r\n\t\ttry\r\n\t\t{\r\n\t\t\tCustomer c = Customer.find(phoneNumber);\r\n \t\t// if found, execute the SQL update statement\r\n \t\tint result = aStatement.executeUpdate(sqlUpdate);\r\n \t}\r\n\t\tcatch (SQLException e)\r\n\t\t\t{ System.out.println(e);\t}\r\n\t}", "int updateByPrimaryKey(ScPartyMember record);", "int updateByPrimaryKey(Account record);", "int updateByPrimaryKey(Account record);", "public void setContact(String contact) {\n\t\tthis.contact = contact;\n\t}", "public void setSelectedContactDTO(ContactDTO dto) {\n/*Generated! Do not modify!*/ replyDTO.getDTOsToSet().add(\"selectedContact\");\n/*Generated! Do not modify!*/ if (dto == null){\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().remove(\"selectedContact\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getDTOValues().put(\"selectedContact\", dto);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.SET_DTO, \"setSelectedContactDTO(\", gson.toJson(dto), getClassName(dto));\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "void update(Serializable objectId);", "int updateByPrimaryKey(CCustomer record);", "@Override\n public void updateCustomer(UUID id, CustomerDto customer) {\n log.debug(\"Customer is updated: customerId: \"+id);\n }", "int updateByPrimaryKey(CaseLinkman record);", "@POST\n @Path(\"notify\")\n public synchronized void notifyPatient(String contact) {\n }", "@Override\n public void changeContact(String id,String pass,String newno) throws IOException\n {\n \tNode<Admin> pos = adm_list.getFirst();\n \twhile(pos!=null)\n \t{\n \t\tif(pos.getData().employee_id.equals(id) && pos.getData().password.equals(pass))\n \t\t{\n \t\t\tpos.getData().contact = newno;\n \t\t}\n \t\tpos = pos.getNext();\n \t}\n \twrite_adm_file();\n }", "public void updateContact(String name, double Latitude, double Longitude, int share){\r\n\t\tSQLiteDatabase db = this.getWritableDatabase();\r\n\t\t\r\n\t\tContentValues values = new ContentValues();\r\n \t\r\n\t\tvalues.put(DBHelper.COLUMN_LATITUDE, Latitude);\r\n\t\tvalues.put(DBHelper.COLUMN_LONGITUDE, Longitude);\r\n\t\tvalues.put(DBHelper.COLUMN_SHARE, share);\r\n\t\t\r\n\t\tdb.update(DBHelper.CONTACT_TABLE_NAME, values, DBHelper.COLUMN_NAME + \"=?\", new String[] {name});\r\n\t\tdb.close();\r\n\t}", "void updateCustomer(int id, String[] updateInfo);", "int updateByPrimaryKey(UserInfoUserinfo record);", "public String changeContactDetails(final EmployeeAddressDTO employeeAddressDTO) throws ApplicationCustomException;", "int updateByPrimaryKey(Userinfo record);", "int updateByPrimaryKey(EcsAd record);", "int updateByPrimaryKey(GirlInfo record);", "public void updateAssociates(String uid, String modified_by, String modiedCounter, String strname, String strmob_no, String selectedPhoneType, String selectedIsd_codeType, String strEmail, String selectedSpeciality, String selectedAssociateType, String straddress, String strcity, String selectedState, String strpin, String strdistrict, String dateTimeddmmyyyy, String flag, String nameTitle, String contactForPatient, String selectedIsd_code_altType, String selectedcontactForPatientType) throws ClirNetAppException {\n SQLiteDatabase db = null;\n\n try {\n db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(MODIFIED_BY, modified_by);\n values.put(PHONE_NUMBER, strmob_no);\n values.put(KEY_NAME, strname);\n values.put(PHONE_TYPE, selectedPhoneType);\n values.put(ISD_CODE, selectedIsd_codeType);\n values.put(KEY_EMAIL, strEmail);\n values.put(SPECIALTY, selectedSpeciality);\n values.put(ASSOCIATE_TYPE, selectedAssociateType);\n values.put(ASSOCIATE_ADDRESS, straddress);\n values.put(CITY_TOWN, strcity);\n values.put(ASSOCIATE_STATE, selectedState);\n values.put(PIN_CODE, strpin);\n values.put(DISTRICT, strdistrict);\n values.put(MODIFIED_ON, dateTimeddmmyyyy);\n values.put(FLAG, flag);\n values.put(MODIFIED_COUNTER, modiedCounter);\n values.put(NAME_TITLE, nameTitle);\n values.put(CONTACT_FOR_PATIENT, contactForPatient);\n values.put(\"selectedIsd_code_altType\", selectedIsd_code_altType);\n values.put(\"selectedcontactForPatientType\", selectedcontactForPatientType);\n\n // Inserting Row\n db.update(TABLE_ASSOCIATE_MASTER, values, KEY_ID + \"=\" + uid, null);\n\n } catch (Exception e) {\n throw new ClirNetAppException(\"Error inserting data\");\n } finally {\n if (db != null) {\n db.close(); // Closing database connection\n }\n }\n }", "@PutMapping(\"/updateAnAddress/{emailId}\")\n\tpublic ResponseEntity<Boolean> updateAnAddress(@PathVariable String emailId, @RequestBody Address address) throws ResourceNotFoundException\n\t{\n\t\tlogger.trace(\"Requested to update an existing address\");\t\n\t\tboolean returnedValue=service.UpdateAnAddress(emailId,address);\n\t\tlogger.trace(\"Completed request to update an existing address\");\t\n\t\treturn ResponseEntity.ok(returnedValue);\n\t}", "public void updateContact(Address address) {\n Address address1 = SearchContact(address.getFirstName(), address.getLastName());\r\n System.out.println(\"Enter 1 for update first name,2 for update last name,3 for phone number and 4 for address\");\r\n int choice = input.nextInt();\r\n switch (choice) {\r\n case 1 -> {\r\n System.out.println(\"Enter the first name: \");\r\n String fname = input.next();\r\n address1.setFirstName(fname);\r\n }\r\n case 2 -> {\r\n System.out.println(\"Enter the last name: \");\r\n String lname = input.next();\r\n address1.setLastName(lname);\r\n }\r\n case 3 -> {\r\n System.out.println(\"Enter the mobile number: \");\r\n String mobnumb = input.next();\r\n address1.setPhoneNumber(mobnumb);\r\n }\r\n case 4 -> {\r\n System.out.println(\"Enter the adrees: \");\r\n String adress = input.next();\r\n address1.setAddress(adress);\r\n }\r\n }\r\n }", "int updateByPrimaryKey(UcOrderGuestInfo record);", "@Override\n\tpublic void update(Phone phone) {\n\t\t\n\t}", "int updateByPrimaryKey(SBCallAlarm record);", "@Update(\"UPDATE addresses SET city=#{city}, zip_code=#{zip}, street=#{street}, number=#{number} \" +\n \"WHERE id_address=#{addressId}\")\n void updatePatientAddress(Address address);", "int updateByPrimaryKey(MVoucherDTO record);", "int updateByPrimaryKey(Organization record);", "public void addContact(String on_cloudkibo, String lname, String phone, String uname, String uid, String shareddetails,\r\n \t\tString status) {\r\n\r\n\r\n ContentValues values = new ContentValues();\r\n //values.put(Contacts.CONTACT_FIRSTNAME, fname); // FirstName\r\n //values.put(Contacts.CONTACT_LASTNAME, lname); // LastName\r\n values.put(Contacts.CONTACT_PHONE, phone); // Phone\r\n values.put(\"display_name\", uname); // UserName\r\n values.put(Contacts.CONTACT_UID, uid); // Uid\r\n values.put(Contacts.CONTACT_STATUS, status); // Status\r\n values.put(Contacts.SHARED_DETAILS, shareddetails); // Created At\r\n values.put(\"on_cloudkibo\", on_cloudkibo);\r\n\r\n // Inserting Row\r\n try {\r\n// if(getContactName(phone) != null){\r\n// SQLiteDatabase db = this.getWritableDatabase();\r\n// db.update(Contacts.TABLE_CONTACTS,values,\"phone='\"+phone+\"'\",null);\r\n// db.close();\r\n// }else{\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n db.replace(Contacts.TABLE_CONTACTS, null, values);\r\n db.close();\r\n// }\r\n } catch (android.database.sqlite.SQLiteConstraintException e){\r\n Log.e(\"SQLITE_CONTACTS\", uname + \" - \" + phone);\r\n ACRA.getErrorReporter().handleSilentException(e);\r\n }\r\n // Closing database connection\r\n }", "int updateByPrimaryKey(CmsRoomBook record);", "public Boolean updateData(int position, String oldemail, String category, String name, String dob, String email, String phone){\n return databaseManager.updateInfo(position,oldemail,category,name,dob,email,phone);\n }", "int updateByPrimaryKey(AuthorDO record);", "int updateByPrimaryKey(CmsActivity record);", "void setContactId(long contactId) {\n\t\tthis.contactId = contactId;\n\t}" ]
[ "0.7132857", "0.6946882", "0.69337153", "0.6597124", "0.6493558", "0.6362904", "0.60717225", "0.6005614", "0.597988", "0.59590006", "0.59458745", "0.59155375", "0.5905146", "0.5877454", "0.58672535", "0.5786449", "0.5760769", "0.57011884", "0.5700664", "0.5698702", "0.568211", "0.56710374", "0.5666361", "0.5666361", "0.56430787", "0.5630068", "0.5630068", "0.5630068", "0.5630068", "0.56210333", "0.5613492", "0.558268", "0.55746907", "0.5568197", "0.5546498", "0.55323076", "0.5522956", "0.55188704", "0.5495746", "0.5457835", "0.54486877", "0.5440888", "0.54408175", "0.5437949", "0.5432398", "0.5420339", "0.5415613", "0.54121906", "0.53925234", "0.53908694", "0.53901374", "0.53831404", "0.5377448", "0.53752995", "0.5371699", "0.5369283", "0.5366548", "0.5363583", "0.5360958", "0.5358515", "0.5353742", "0.5352831", "0.5352831", "0.535153", "0.5349488", "0.53358495", "0.5333221", "0.53209513", "0.53195333", "0.53195333", "0.53126335", "0.53116995", "0.5300633", "0.5296082", "0.5291237", "0.5291088", "0.52843744", "0.52839875", "0.52819526", "0.5275531", "0.5270656", "0.526972", "0.5265155", "0.52633935", "0.5259962", "0.5255741", "0.5254255", "0.52533615", "0.525287", "0.52517694", "0.5249911", "0.5249137", "0.52452284", "0.5244993", "0.5243662", "0.524241", "0.5241505", "0.5238777", "0.5228137", "0.521743" ]
0.77781177
0
Helper method for getting a CursorWrapper.
private ContactCurserWrapper queryContacts(String whereClause, String[] whereArgs) { Cursor cursor = mDatabase.query( ContactTable.NAME, null, // columns - null selects all columns whereClause, whereArgs, null, // groupBy, null, // having null // orderBy ); return new ContactCurserWrapper(cursor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CursorWrapper getCursor() {\n\t\t\treturn cursor;\n\t\t}", "public MyCursorWrapper(Cursor cursor) {\n super(cursor);\n }", "public abstract Cursor buildCursor();", "public abstract long getCursor();", "public CrimeCursorWrapper(Cursor cursor) {\n super(cursor);\n }", "@Override\n public CursorFactory getCursorFactory() {\n return null;\n }", "public Cursor getCursor(){\n return mCursor;\n }", "public Cursor getCursor() {\n\t\treturn null;\n\t}", "public Cursor getCursor() {\n Cursor cursor = super.getCursor();\n\n\t\tif ( cursor == Cursor.getPredefinedCursor( Cursor.DEFAULT_CURSOR) && isEnabled()) {\n\t\t\tcursor = Cursor.getPredefinedCursor( Cursor.HAND_CURSOR);\n\t\t}\n\t\t\n\t\treturn cursor;\n }", "public java.lang.String getCursor() {\n return cursor_;\n }", "@SuppressWarnings(\"WeakerAccess\")\n @NonNull\n public BaseCursorAdapter getCursorAdapter() {\n return mCursorAdapter;\n }", "public java.lang.String getCursor() {\n return instance.getCursor();\n }", "@SuppressWarnings({\"unused\", \"RedundantSuppression\"})\n @NonNull\n public BaseCursorAdapter getCursorAdapter() {\n return mBaseCacheAdapter.getCursorAdapter();\n }", "public abstract Cursor getMouseCursor();", "public Cursor getEnabledCursor() {\r\n return enabledCursor;\r\n }", "Bindable getBindable( Meta.CursorFactory cursorFactory );", "public BorrowerCursor(Cursor cursor) {\n super(cursor);\n }", "Cursor getCursor(final Point p) {\n return getTarget().getCursor();\n }", "public Cursor getCursor() throws RelationException;", "public int getCursor() { return curs; }", "public X cursor(Cursor cursor) {\n component.setCursor(cursor);\n return (X) this;\n }", "public void setCursor(Cursor c) {\n\n\t}", "public com.google.protobuf.ByteString\n getCursorBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(cursor_);\n }", "private Cursor getCursorObject() {\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // Define a projection that specifies which columns from the database\n // you will actually use after this query.\n String[] projection = {\n HabbitContract.HabbitEntry._ID,\n HabbitContract.HabbitEntry.COLUMN_HAD_BREAKFAST,\n HabbitContract.HabbitEntry.COLUMN_BREAKFAST_MEAL,\n HabbitContract.HabbitEntry.COLUMN_HAD_LUNCH,\n HabbitContract.HabbitEntry.COLUMN_LUNCH_MEAL,\n HabbitContract.HabbitEntry.COLUMN_HAD_SUPPER,\n HabbitContract.HabbitEntry.COLUMN_SUPPER_MEAL,\n HabbitContract.HabbitEntry.COLUMN_ADDITIONAL_DATA,\n HabbitContract.HabbitEntry.COLUMN_DATETIME_STAMP};\n\n // Perform a query on the nutrition table\n Cursor cursor = db.query(\n HabbitContract.HabbitEntry.TABLE_NAME, // The table to query\n projection, // The columns to return\n null, // The columns for the WHERE clause\n null, // The values for the WHERE clause\n null, // Don't group the rows\n null, // Don't filter by row groups\n null); // The sort order\n\n return cursor;\n }", "public Cursor getCursor() throws SQLException\n {\n Cursor c = db.query( true, C_TABLA, columnas, null, null, null, null, null, null);\n\n return c;\n }", "@GuardedBy(\"this\")\n private Cursor createMergedCursor() {\n try {\n final boolean hasNewCalls = mNewCallsCursor.getCount() != 0;\n final boolean hasOldCalls = mOldCallsCursor.getCount() != 0;\n \n if (!hasNewCalls) {\n // Return only the old calls, without the header.\n MoreCloseables.closeQuietly(mNewCallsCursor);\n return mOldCallsCursor;\n }\n \n if (!hasOldCalls) {\n // Return only the new calls.\n MoreCloseables.closeQuietly(mOldCallsCursor);\n return new MergeCursor(\n new Cursor[]{ createNewCallsHeaderCursor(), mNewCallsCursor });\n }\n \n return new MergeCursor(new Cursor[]{\n createNewCallsHeaderCursor(), mNewCallsCursor,\n createOldCallsHeaderCursor(), mOldCallsCursor});\n } finally {\n // Any cursor still open is now owned, directly or indirectly, by the caller.\n mNewCallsCursor = null;\n mOldCallsCursor = null;\n }\n }", "DataFrameCursor<R,C> cursor();", "@Override\n\tpublic StendhalCursor getCursor() {\n\t\treturn StendhalCursor.LOOK;\n\t}", "private org.eclipse.swt.graphics.Cursor getPlatformCursor(final CursorFrame cursorFrame) {\n if (cursorFrame.getCursorType() == CursorType.DEFAULT) {\n return null;\n }\n final org.eclipse.swt.graphics.Cursor cachedPlatformCursor =\n cursorFrame.getPlatformCursor(org.eclipse.swt.graphics.Cursor.class);\n if (cachedPlatformCursor != null) {\n // platform cursor already cached\n return cachedPlatformCursor;\n }\n\n // platform cursor not cached yet\n final org.eclipse.swt.graphics.Cursor platformCursor = \n SWTCursors.embedCursorToCursor(cursorFrame);\n cursorFrame.setPlatforCursor(org.eclipse.swt.graphics.Cursor.class, platformCursor);\n\n return platformCursor;\n }", "public static interface Cursor {\n\t\tpublic void open() throws RelationException;\n\n\t\t//the hasNext() method actually loads the object, so don't skip it\n\t\tpublic boolean hasNext() throws RelationException;\n\n\t\t//this retrieves the next object. use in confunction with hasNext();\n\t\tpublic Tuple next() throws RelationException;\n\n\t\tpublic void close() throws RelationException;\n\t}", "protected Cursor retrieveCanDockCursor()\r\n\t{\r\n\t\treturn DockingManager.getCanDockCursor();\r\n\t}", "public WeightedPoint getCursor()\n {\n return cursor;\n }", "Data<List<Boards>> getSearchBoardsCursor(String query, String cursor);", "public IDataCursor getCursorClone() {\n return new CaseInsensitiveElementListIDataCursor(this.position);\n }", "@Override\n protected Cursor buildCursor() {\n return(db.getReadableDatabase().rawQuery(rawQuery, args));\n }", "public Cursor getWaitCursor() {\r\n return waitCursor;\r\n }", "public Cursor getCursorWithRows() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length())\n .addLengths(\"val123\".length()).setValues(ByteString\n .copyFromUtf8(\"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS TEAMHELLO\"\n +\n \" TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123val123\"))).build());\n return cursor;\n }", "public com.google.protobuf.ByteString\n getCursorBytes() {\n return instance.getCursorBytes();\n }", "Data<List<Boards>> getSearchBoardsCursor(String query, String cursor, String fields);", "public Cursor getDisabledCursor() {\r\n return disabledCursor;\r\n }", "protected Cursor retrieveCanNotDockCursor()\r\n\t{\r\n\t\treturn DockingManager.getCanNotDockCursor();\r\n\t}", "@Override\n public IDataCursor getCursor() {\n return new CaseInsensitiveElementListIDataCursor();\n }", "public Cursor getCursorWithRowsAsNull() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length()).addLengths(-1).setValues(\n ByteString.copyFromUtf8(\n \"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS \"\n +\n \"TEAMHELLO TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123\"))).build());\n return cursor;\n }", "public Cursor getGraphCursor() {\r\n \t\treturn graph.getCursor();\r\n \t}", "public Cursor retrieve()\n {\n String[] columns={Constants.ROW_ID,Constants.FIRSTNAME,Constants.LASTNAME};\n Cursor c=null;\n c=db.query(Constants.TB_NAME,columns,null,null,null,null,null);\n return c;\n }", "public Cursor queryTheCursorLocation() { \n\t Cursor c = db.rawQuery(\"SELECT * FROM \"+ DBEntryContract.LocationEntry.TABLE_NAME, null); \n\t return c; \n\t}", "public static MyListItem fromCursor(Cursor cursor) {\n MyListItem m = new MyListItem();\n return m;\n }", "public Object getWrapper(Vector primaryKey) {\n CacheKey cacheKey = getCacheKeyWithReadLock(primaryKey);\n\n if (cacheKey == null) {\n return null;\n } else {\n return cacheKey.getWrapper();\n }\n }", "public int cursor();", "void setCursor(int kind);", "@SuppressWarnings({\"unused\", \"RedundantSuppression\"})\n @Override\n public Cursor swapCursor(final Cursor cursor) {\n mCursorCache = null;\n return cursor;\n }", "@FromAnyThread\n public static @Nullable PaintingControl getPaintingControl(@NotNull Node cursorNode) {\n return cursorNode.getControl(PaintingControl.class);\n }", "public Cursor getCursor()\n {\n// Object localObject1;\n// if (!this.mCursorValid)\n// {\n// this.mCursor = new EsMatrixCursor(PROJECTION);\n// this.mCursorValid = true;\n// if ((this.mLocalProfilesLoaded) && (this.mGaiaIdsAndCirclesLoaded))\n// {\n// localObject1 = new HashSet();\n// HashSet localHashSet = new HashSet();\n// Object localObject3 = this.mLocalProfiles.iterator();\n// while (true)\n// {\n// long l1;\n// if (!((Iterator)localObject3).hasNext())\n// {\n// localObject5 = this.mContacts.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject5).hasNext())\n// {\n// localObject2 = this.mPublicProfiles.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject2).hasNext())\n// {\n// localObject3 = this.mPublicProfiles.iterator();\n// while (true)\n// {\n// if (!((Iterator)localObject3).hasNext())\n// {\n// localObject1 = this.mCursor;\n// break;\n// }\n// localObject4 = (PublicProfile)((Iterator)localObject3).next();\n// localObject2 = ((PublicProfile)localObject4).gaiaId;\n// if (((HashSet)localObject1).contains(localObject2))\n// continue;\n// localObject5 = this.mCursor;\n// arrayOfObject = new Object[11];\n// l1 = this.mNextId;\n// this.mNextId = (1L + l1);\n// arrayOfObject[0] = Long.valueOf(l1);\n// arrayOfObject[1] = ((PublicProfile)localObject4).personId;\n// arrayOfObject[2] = null;\n// arrayOfObject[3] = localObject2;\n// arrayOfObject[4] = ((PublicProfile)localObject4).name;\n// arrayOfObject[5] = null;\n// arrayOfObject[6] = null;\n// arrayOfObject[7] = null;\n// arrayOfObject[8] = null;\n// arrayOfObject[9] = null;\n// arrayOfObject[10] = ((PublicProfile)localObject4).snippet;\n// ((EsMatrixCursor)localObject5).addRow(arrayOfObject);\n// }\n// }\n// localObject3 = (PublicProfile)((Iterator)localObject2).next();\n// localObject5 = ((PublicProfile)localObject3).gaiaId;\n// localObject4 = (String)this.mGaiaIdsAndCircles.get(localObject5);\n// if ((((HashSet)localObject1).contains(localObject5)) || (TextUtils.isEmpty((CharSequence)localObject4)))\n// continue;\n// ((HashSet)localObject1).add(localObject5);\n// localObject6 = this.mCursor;\n// Object[] arrayOfObject = new Object[11];\n// l1 = this.mNextId;\n// this.mNextId = (1L + l1);\n// arrayOfObject[0] = Long.valueOf(l1);\n// arrayOfObject[1] = ((PublicProfile)localObject3).personId;\n// arrayOfObject[2] = null;\n// arrayOfObject[3] = localObject5;\n// arrayOfObject[4] = ((PublicProfile)localObject3).name;\n// arrayOfObject[5] = localObject4;\n// arrayOfObject[6] = null;\n// arrayOfObject[7] = null;\n// arrayOfObject[8] = null;\n// arrayOfObject[9] = null;\n// arrayOfObject[10] = null;\n// ((EsMatrixCursor)localObject6).addRow(arrayOfObject);\n// }\n// }\n// localObject3 = (Contact)((Iterator)localObject5).next();\n// if (l1.contains(((Contact)localObject3).name))\n// continue;\n// localObject2 = this.mCursor;\n// localObject4 = new Object[11];\n// l2 = this.mNextId;\n// this.mNextId = (1L + l2);\n// localObject4[0] = Long.valueOf(l2);\n// localObject4[1] = ((Contact)localObject3).personId;\n// localObject4[2] = ((Contact)localObject3).lookupKey;\n// localObject4[3] = null;\n// localObject4[4] = ((Contact)localObject3).name;\n// localObject4[5] = null;\n// localObject4[6] = null;\n// localObject4[7] = ((Contact)localObject3).email;\n// localObject4[8] = ((Contact)localObject3).phoneNumber;\n// localObject4[9] = ((Contact)localObject3).phoneType;\n// localObject4[10] = null;\n// ((EsMatrixCursor)localObject2).addRow(localObject4);\n// }\n// }\n// Object localObject6 = (LocalProfile)((Iterator)localObject3).next();\n// Object localObject2 = ((LocalProfile)localObject6).gaiaId;\n// ((HashSet)localObject1).add(localObject2);\n// l1.add(((LocalProfile)localObject6).name);\n// Object localObject4 = this.mCursor;\n// Object localObject5 = new Object[11];\n// long l2 = this.mNextId;\n// this.mNextId = (1L + l2);\n// localObject5[0] = Long.valueOf(l2);\n// localObject5[1] = ((LocalProfile)localObject6).personId;\n// localObject5[2] = null;\n// localObject5[3] = localObject2;\n// localObject5[4] = ((LocalProfile)localObject6).name;\n// localObject5[5] = ((LocalProfile)localObject6).packedCircleIds;\n// localObject5[6] = ((LocalProfile)localObject6).email;\n// localObject5[7] = null;\n// localObject5[8] = ((LocalProfile)localObject6).phoneNumber;\n// localObject5[9] = ((LocalProfile)localObject6).phoneType;\n// localObject5[10] = null;\n// ((EsMatrixCursor)localObject4).addRow(localObject5);\n// }\n// }\n// localObject1 = this.mCursor;\n// }\n// else\n// {\n// localObject1 = this.mCursor;\n// }\n// return (Cursor)(Cursor)(Cursor)(Cursor)(Cursor)(Cursor)localObject1;\n return null;\n }", "public void setCursor(int l, int c);", "@Nullable\n\tprotected abstract T readCursor(ResultSet rs, int currentRow) throws SQLException;", "public Cursor queryTheCursorCategory() { \n\t Cursor c = db.rawQuery(\"SELECT * FROM \"+ DBEntryContract.CategoryEntry.TABLE_NAME, null); \n\t return c; \n\t}", "@Override\n\tprotected Account obtenerDesdeCursor(Cursor cursor) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic ResponseOrder cursorToBean(Cursor cursor) {\n\t\treturn null;\r\n\t}", "public GraphicsObjectWrapper<?> getCurrentWrapper(\n )\n {return GraphicsObjectWrapper.get(this);}", "private Cursor getCursorData() {\n\t\tDBAdventureHelper enclosingInstance = new DBAdventureHelper();\r\n\t\tDBAdventureHelper.AdventureDBHelper mDbHelper = enclosingInstance.new AdventureDBHelper(this);\r\n\t\t// Get the data repository in read mode\r\n\t\tSQLiteDatabase db = mDbHelper.getReadableDatabase();\r\n\r\n\t\t// Projection defines which DB cols you will be pulled from the query\r\n\t\t// Cursor queries the database with the provided parameters; pulling record where ID col == Adventure ID\r\n\t\tCursor c = db.query(\r\n\t\t\t\tAdventureContract.AdventuresTable.ADVENTURES_TABLE_NAME, \t\t\t\t\t\t\t\t\t// The table to query\r\n\t\t\t projection, \t\t\t\t\t\t\t\t\t\t\t\t\t// The columns to return\r\n\t\t\t null,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// The columns for the WHERE clause\r\n\t\t\t null, \t \t\t\t\t\t\t\t\t \t\t\t\t\t\t\t// The values for the WHERE clause\r\n\t\t\t null, \t\t\t\t\t\t\t\t\t\t\t\t\t// don't group the rows\r\n\t\t\t null, \t\t\t\t\t\t\t\t\t\t\t\t\t// don't filter by row groups\r\n\t\t\t \"DESC\" \t\t \t\t\t\t\t\t\t\t\t\t\t\t\t// The sort order\r\n\t\t);\r\n\t\tc.moveToFirst();\r\n\t return c;\r\n\t }", "public static Contact fromDatabaseCursor(ContactNotifier notifier, Cursor cursor) {\n Contact contact = new Contact();\n contact.notifier = notifier;\n contact.did = cursor.getString(cursor.getColumnIndex(DatabaseHelper.DID));\n contact.carrierUserID = cursor.getString(cursor.getColumnIndex(DatabaseHelper.CARRIER_USER_ID));\n contact.notificationsBlocked = cursor.getInt(cursor.getColumnIndex(DatabaseHelper.NOTIFICATIONS_BLOCKED)) == 1;\n contact.name = cursor.getString(cursor.getColumnIndex(DatabaseHelper.NAME));\n contact.avatar = ContactAvatar.fromDatabaseCursor(cursor);\n return contact;\n }", "public Cursor swapCursor(Cursor c) {\n // check if this cursor is the same as the previous cursor (mCursor)\n if (mCursor == c) {\n return null; // bc nothing has changed\n }\n Cursor temp = mCursor;\n this.mCursor = c; // new cursor value assigned\n\n //check if this is a valid cursor, then update the cursor\n if (c != null) {\n this.notifyDataSetChanged();\n }\n return temp;\n }", "public static Cursor getAllCursor() {\n String tableName = Cache.getTableInfo(TodoItem.class).getTableName();\n\n // Query all items without any conditions\n String sql = new Select(tableName + \".*, \" + tableName + \".Id as _id\").\n from(TodoItem.class).toSql();\n\n return Cache.openDatabase().rawQuery(sql, null);\n }", "public Cursor fetchById(long rowId) {\n\t\tCursor cursor = db.query(tableName, fields, fields[0] + \" = \" + rowId, null, null, null, null);\n\t\tif (cursor != null) {\n\t\t\tcursor.moveToFirst();\n\t\t}\n\t\treturn cursor;\n\t}", "public Cursor getAllTrousersCursor() {\n String selectQuery = \"SELECT * FROM \" + TrouserEntry.TABLE_NAME;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }", "public Cursor swapCursor(Cursor c) {\n if (mCursor == c) {\n return null; // bc nothing has changed\n }\n Cursor temp = mCursor;\n this.mCursor = c; // new cursor value assigned\n\n //check if this is a valid cursor, then update the cursor\n if (c != null) {\n this.notifyDataSetChanged();\n }\n return temp;\n }", "private Integer idFromCursor(Cursor cursor) {\n\t\treturn cursor.getInt(0);\n\t}", "private Room cursorToRoom(Cursor cursor) {\n\t\tRoom room = new Room();\n\n\t\troom.setId(cursor.getLong(0));\n\t\troom.setName(cursor.getString(1));\n\t\troom.setDescription(cursor.getString(2));\n\n\t\treturn room;\n\t}", "@Override\n\tprotected Cursor loadCursor() {\n\t\treturn DataManager.get().queryLocations();\n\t}", "public Cursor I() {\n return this.m.a(D(), (Map<String, String>) this.f5843b);\n }", "public static AdventureObject fromCursor(Cursor cursor){\n AdventureObject advObject = null;\n try {\n advObject = CustomGson.getGson().fromJson(cursor.getString(cursor.getColumnIndex(ROW_OBJECT)), AdventureObject.class);\n advObject.id = cursor.getInt(cursor.getColumnIndex(ROW_ID));\n advObject.mdateCreated = new Date(cursor.getLong(cursor.getColumnIndex(ROW_DATE_CREATED)));\n advObject.mdateUpdated = new Date(cursor.getLong(cursor.getColumnIndex(ROW_DATE_UPDATED)));\n advObject.madventureTitle = cursor.getString(cursor.getColumnIndex(ROW_TITLE));\n } catch(CursorIndexOutOfBoundsException e){\n e.printStackTrace();\n } catch(NullPointerException e){\n e.printStackTrace();\n }\n return advObject;\n }", "@Override\n\tprotected Cursor query()\n\t{\n\t\treturn null;\n\t}", "static private Cursor readRawCursor(Context context, String positionSelection, String[] positionSelArgs) {\n Position.context = context;\r\n\r\n // Read GuardTracker database helper\r\n GuardTrackerDbHelper dbHelper = new GuardTrackerDbHelper(context);\r\n // Initialize database for read\r\n db = dbHelper.getReadableDatabase();\r\n\r\n // Define a projection that specifies which columns from the database\r\n // you will actually use after this query.\r\n String[] positionProjection = {\r\n GuardTrackerContract.PositionTable._ID,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_SESSION,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_LT,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_LG,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_TIME,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_ALTITUDE,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_NSAT,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_HDOP,\r\n GuardTrackerContract.PositionTable.COLUMN_NAME_FIXED\r\n };\r\n\r\n cursor = db.query(\r\n GuardTrackerContract.PositionTable.TABLE_NAME, // The table to query\r\n positionProjection, // The columns to return\r\n positionSelection, // The columns for the WHERE clause\r\n positionSelArgs, // The values for the WHERE clause\r\n null, // don't group the rows\r\n null, // don't filter by row groups\r\n null // The sort order\r\n );\r\n if (cursor.getCount() == 0) throw new IllegalStateException(\"No entries PositionTable\");\r\n\r\n // O cursor dependerá dos db ou dbHelper? Se não depender, deverei fechar db e dbHelper.\r\n return cursor;\r\n }", "private void clearCursor() {\n \n cursor_ = getDefaultInstance().getCursor();\n }", "public void setCursor(int row, int col);", "@Override\n public Cursor swapCursor(final Cursor cursor) {\n if (cursor == mCursor) return null;\n\n final Cursor prevCursor = mCursor;\n mCursor = cursor;\n return prevCursor;\n }", "static public Cursor readCursor(Context context, int[] id) {\r\n // Build WHERE clause\r\n StringBuilder positionSelBuilder = new StringBuilder();\r\n ArrayList<String> positionSelArgsList = new ArrayList<String>();\r\n positionSelBuilder.append(GuardTrackerContract.PositionTable._ID);\r\n positionSelBuilder.append(\" LIKE ?\");\r\n positionSelArgsList.add(\"\" + id[0]);\r\n for (int i = 1; i < id.length; i++) {\r\n // Define columns WHERE clause.\r\n positionSelBuilder.append(\" OR \");\r\n positionSelBuilder.append(GuardTrackerContract.PositionTable._ID);\r\n positionSelBuilder.append(\" LIKE ?\");\r\n positionSelArgsList.add(\"\" + id[i]);\r\n }\r\n // Define columns WHERE clause.\r\n String positionSelection = positionSelBuilder.toString();\r\n // Define values WHERE clause.\r\n String[] positionSelArgs = new String[positionSelArgsList.size()];\r\n positionSelArgs = positionSelArgsList.toArray(positionSelArgs);\r\n Cursor cursor = readRawCursor(context, positionSelection, positionSelArgs);\r\n return cursor;\r\n }", "void generateReadValueFromCursor(Builder methodBuilder, SQLiteDaoDefinition daoDefinition, TypeName paramTypeName, String cursorName, String indexName);", "public static <T> T getItem(Cursor cursor, Class<? extends T> clazz) {\n final TypeAdapter adapter = getAdapter(clazz);\n Object newInstance = adapter.newObject();\n adapter.map(cursor, newInstance);\n return (T) newInstance;\n }", "public Node<E> getCursor() {\n if (isCurrent()) { return cursor; }\n else { throw new IllegalStateException(\"There is no current element.\"); }\n }", "Data<List<Pins>> getLikeCursor(String cursor, Integer limit);", "private Trait cursorToTrait(final Cursor cursor) {\r\n long id = cursor.getLong(1);\r\n return this.traitDataSource.get(id);\r\n }", "public static ContactEntry fromCursor(Cursor cursor, Context context) {\n int idColumnIndex = PhoneLoader.getIdColumnIndex(cursor);\n int starredColumn = cursor.getColumnIndex(ContactsContract.Contacts.STARRED);\n int pinnedColumn = cursor.getColumnIndex(\"pinned\");\n int displayNameColumnIndex = cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME);\n int avatarUriColumnIndex = cursor.getColumnIndex(ContactsContract.Contacts.PHOTO_URI);\n int avatarThumbnailColumnIndex = cursor.getColumnIndex(\n ContactsContract.Contacts.PHOTO_THUMBNAIL_URI);\n int lookupKeyColumnIndex = cursor.getColumnIndex(ContactsContract.Contacts.LOOKUP_KEY);\n int typeColumnIndex = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DATA2);\n int labelColumnIndex = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DATA3);\n\n String name = cursor.getString(displayNameColumnIndex);\n String number = PhoneLoader.getPhoneNumber(cursor, context.getContentResolver());\n int starred = cursor.getInt(starredColumn);\n int pinnedPosition = cursor.getInt(pinnedColumn);\n ContactEntry contactEntry = new ContactEntry(context, name, number, starred > 0,\n pinnedPosition);\n contactEntry.setId(cursor.getInt(idColumnIndex));\n contactEntry.setAvatarUri(cursor.getString(avatarUriColumnIndex));\n contactEntry.setAvatarThumbnailUri(cursor.getString(avatarThumbnailColumnIndex));\n contactEntry.setLookupKey(cursor.getString(lookupKeyColumnIndex));\n contactEntry.setType(cursor.getInt(typeColumnIndex));\n contactEntry.setLabel(cursor.getString(labelColumnIndex));\n return contactEntry;\n }", "@Override\n public T convert(final Cursor cursor, final int position) {\n if (cursor == null) { // should never happen\n CoreLogger.logError(\"cursor is null\");\n return null;\n }\n if (mConverter == null) { // should never happen\n CoreLogger.logWarning(\"converter is null, the default one will be used\");\n mConverter = new BaseConverter<>();\n }\n if (!mConverter.isInternalCache())\n CoreLogger.logWarning(\"should be called for internal cache only\");\n\n if (mCursorCache == null) {\n final Object data;\n try {\n data = mConverter.getData(cursor, null);\n }\n finally {\n Utils.close(cursor);\n }\n if (data == null) {\n CoreLogger.logError(\"data is null\");\n return null;\n }\n\n if (CoreReflection.isNotSingle(data))\n mCursorCache = convert(data);\n else {\n if (cursor.getPosition() == position) return convertSingle(data);\n\n CoreLogger.logError(\"can't retrieve ContentValues for position \" + position);\n return null;\n }\n }\n if (position < mCursorCache.size()) return mCursorCache.get(position);\n\n CoreLogger.logError(\"can't retrieve ContentValues for position \" + position +\n \", data size == \" + mCursorCache.size());\n return null;\n }", "Hashtable<String, String> unpack_cursor(Cursor cursor)\n {\n \tHashtable<String, String> result = null;\n \tif(cursor == null) return null;\n \telse if(cursor.getCount() == 0) return null;\n \telse\n \t{\n \t\tresult= new Hashtable<String, String>();\n\t \tcursor.moveToFirst(); \n\t \tint keyIndex = cursor.getColumnIndex(KEY_FIELD);\n\t\t\tint valueIndex = cursor.getColumnIndex(VALUE_FIELD);\n\t\t\tresult.put(cursor.getString(keyIndex), cursor.getString(valueIndex));\n\t\t\twhile (cursor.moveToNext()) \n\t \t{\n\t \t\tresult.put(cursor.getString(keyIndex), cursor.getString(valueIndex));\n\t \t}\n \t}\n \treturn result;\n }", "protected abstract CursorResource createResource(QueryResource queryResource, String cursorId, CreateCursorRequest cursorRequest);", "Object convertCursorToJavaValue(Cursor cursor, int columnIndex,\n\t\t\tClass<?> javaType);", "public Cursor getItem(long rowId) throws SQLException {\n\t\tCursor mCursor = db.query(true, TABLE_EVENTS, new String[] { ROW_ID,ROW_TITLE, ROW_DATE, ROW_TIME, ROW_DATETIME, ROW_INFO,\n\t\t\tROW_REPEAT,ROW_REPEAT_TEXT, ROW_REPEAT_CNT, ROW_REPEAT_TYPE_ID,ROW_REPEAT_TYPE_TEXT,\n\t\t\tROW_BEFORE,ROW_BEFORE_TEXT, ROW_BEFORE_CNT,ROW_BEFORE_TYPE_ID,ROW_BEFORE_TYPE_TEXT,\n\t\t\t\t\t\t\t\t ROW_ACTIVE }, ROW_ID + \"=\"\n\t\t\t\t+ rowId, null, null, null, null, null);\n\t\tif (mCursor != null) {\n\t\t\tmCursor.moveToFirst();\n\t\t}\n\t\treturn mCursor;\n\t}", "public Cursor fetchNote(long rowId) throws SQLException {\n\n Cursor mCursor = database.query(true, NOTES_TABLE, new String[] {KEY_NOTES_ROWID, KEY_NOTES_TITLE, KEY_NOTES_BODY}, KEY_NOTES_ROWID + \"=\" + rowId, null,\n null, null, null, null);\n if (mCursor != null) {\n mCursor.moveToFirst();\n }\n return mCursor;\n\n }", "public Builder setCursor(\n java.lang.String value) {\n copyOnWrite();\n instance.setCursor(value);\n return this;\n }", "private void updateCursor() {\n if ((! editor.isCursorSet())\n || editor.getCursor() instanceof UIResource) {\n Cursor cursor = (editor.isEditable()) ? textCursor : null;\n editor.setCursor(cursor);\n }\n }", "public static Cursor getAutoReplyCursor() {\r\n\t\tCursor cursor = null;\r\n\t\ttry {\r\n\r\n\t\t\t// cursor = db.rawQuery(\r\n\t\t\t// \"SELECT id AS _id,sms_to,message FROM autoReply\", null);\r\n\r\n\t\t\tcursor = db\r\n\t\t\t\t\t.rawQuery(\r\n\t\t\t\t\t\t\t\"SELECT a.id as _id, a.sms_to,a.message,Count(d.id) as reply_count from autoReply as a \"\r\n\t\t\t\t\t\t\t\t\t+ \"LEFT JOIN autoReplyDetail as d on a.id = d.autoReplyId GROUP BY\"\r\n\t\t\t\t\t\t\t\t\t+ \" a.id , a.sms_to,a.message ORDER BY a.id DESC\",\r\n\t\t\t\t\t\t\tnull);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"AUTO_REPLY SELECT\", \"error : \" + e.toString());\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn cursor;\r\n\t}", "public Cursor getAllShirtsCursor() {\n String selectQuery = \"SELECT * FROM \" + ShirtEntry.TABLE_NAME;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }", "public static Cursor getBusINFOCursor() {\r\n SQLiteDatabase db = SearchHelper.getReadableDatabase();\r\n if(Bus.isLanguare()==true) {\r\n Cursor cursor = db.rawQuery(Prefix_Data_SQL.QUERY_BUS_BASIC_INFO_TC_SQL, null);\r\n return cursor;\r\n }else{\r\n Cursor cursor = db.rawQuery(Prefix_Data_SQL.QUERY_BUS_BASIC_INFO_EN_SQL, null);\r\n return cursor;\r\n }\r\n }", "private void setCursor(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n cursor_ = value;\n }", "public Cursor getWords() \n\t{\n\t\tString query = String.format(_select, getDate()) +\n\t\t\t\t\t\t_havingDataContraint +\n\t\t\t\t\t\t\" ORDER BY \" + DBConstants.WordTable.WORD_KEY;\n\t\t\n\t\treturn _db.rawQuery(query, null);\t\n }", "public final int getCursorX() {\n return cursorX;\n }", "public ItemCursor() {\n\t\tsetMaxStackSize(1);\n\t}", "public static Cursor getTransactionHistoryDbCursor() {\n // get DB helper\n mDbHelper = PointOfSaleDb.getInstance(context);\n\n // Each row in the list stores amount and date of transaction -- retrieves history from DB\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // get the following columns:\n String[] tableColumns = { PointOfSaleDb.TRANSACTIONS_COLUMN_TX_ID,\n PointOfSaleDb.TRANSACTIONS_COLUMN_LOCAL_AMOUNT,\n PointOfSaleDb.TRANSACTIONS_COLUMN_LOCAL_CURRENCY,\n PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT,\n PointOfSaleDb.TRANSACTIONS_COLUMN_TX_STATUS,\n PointOfSaleDb.TRANSACTIONS_COLUMN_CRYPTOCURRENCY_AMOUNT,\n PointOfSaleDb.TRANSACTIONS_COLUMN_CRYPTOCURRENCY_ADDRESS,\n \"_ROWID_\", //// getting also _ROWID_ to save the txID after getting the response\n PointOfSaleDb.TRANSACTIONS_COLUMN_CRYPTOCURRENCY};\n\n String sortOrder = PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT + \" DESC\";\n Cursor c = db.query(PointOfSaleDb.TRANSACTIONS_TABLE_NAME, tableColumns, null, null, null, null, sortOrder);\n\n return c;\n }", "public static long getId(Cursor cursor) {\n return cursor.getLong(0);\n }", "public void cursorOn();" ]
[ "0.72058165", "0.70720136", "0.68249685", "0.64232177", "0.63924766", "0.6141465", "0.6131672", "0.6066923", "0.60245115", "0.5972383", "0.58895946", "0.5843797", "0.5828043", "0.58129364", "0.5763126", "0.5689918", "0.56789666", "0.5625608", "0.56215465", "0.56182116", "0.55916053", "0.55796367", "0.55356365", "0.5524138", "0.551275", "0.5503678", "0.5492765", "0.54829085", "0.54750043", "0.54736805", "0.5468747", "0.54493785", "0.54429173", "0.5438061", "0.54015625", "0.539607", "0.53893363", "0.5371565", "0.53124034", "0.53120446", "0.5311956", "0.5293621", "0.52333295", "0.5217751", "0.5216542", "0.52052015", "0.51633203", "0.51602733", "0.5156265", "0.5145532", "0.51163805", "0.5112117", "0.5105079", "0.51030284", "0.508993", "0.5076361", "0.5055596", "0.5053911", "0.5049917", "0.5020096", "0.49793497", "0.49791175", "0.49727184", "0.4960301", "0.4956821", "0.4939024", "0.49372825", "0.4917808", "0.49011597", "0.48959047", "0.48892784", "0.48879805", "0.48840192", "0.48695987", "0.48685268", "0.4867628", "0.48662028", "0.48575968", "0.48482478", "0.48302084", "0.48149067", "0.4800942", "0.47980776", "0.4794355", "0.4786407", "0.4783073", "0.47745332", "0.47620824", "0.4748864", "0.47347072", "0.47336704", "0.4721166", "0.47152004", "0.4714044", "0.47138643", "0.47130185", "0.47120792", "0.4708213", "0.470387", "0.4698755", "0.46855077" ]
0.0
-1
Method for Deletion of a specific ContactBE
public void deleteContact(UUID id) { mDatabase.delete(ContactTable.NAME, ContactTable.Cols.UUID + " = ?", new String[] {id.toString()}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete(Contact contact ) {\n\n mRepository.delete(contact);\n }", "@Override\r\n\tpublic void delContact(Contact contact) {\n\t\tsuper.delete(contact);\r\n\t}", "void deleteContact(String id, int position);", "public void delContact() \n\t{\n\t\tSystem.out.printf(\"%n--[ Delete Contact ]--%n\");\n\t\tScanner s = new Scanner(System.in);\n\t\tshowContactIndex();\n\t\tSystem.out.printf(\"%nClient Number: \");\n\t\tint index = s.nextInt();\n\t\tthis.contacts.remove(index - 1);\n\t\tshowContactIndex();\n\t}", "public void delete_contact(String contact, SupplierCard supplier) {\n supplier_dao.delete_contact(contact, supplier);\n }", "public void deleteOne(ContactModelClass contactModelClass) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME, \"id = ?\", new String[] { String.valueOf(contactModelClass.getId()) });\n db.close();\n }", "@Override\n\tpublic void delete(CelPhone celphone) {\n\t\t\n\t}", "public void deleteContact(Address address){\n Address address2 = SearchContact(address.getFirstName(),address.getLastName());\r\n if (address2 != null) {\r\n contact.remove(address2);\r\n }\r\n else {\r\n System.out.println(\"Does not exist\");\r\n }\r\n }", "private void deleteContact()\r\n {\r\n // create a new AlertDialog Builder\r\n AlertDialog.Builder builder = \r\n new AlertDialog.Builder(ViewContact.this);\r\n\r\n builder.setTitle(R.string.confirmTitle); // title bar string\r\n builder.setMessage(R.string.confirmMessage); // message to display\r\n\r\n // provide an OK button that simply dismisses the dialog\r\n builder.setPositiveButton(R.string.button_delete,\r\n new DialogInterface.OnClickListener()\r\n {\r\n @Override\r\n public void onClick(DialogInterface dialog, int button)\r\n {\r\n final DatabaseConnector databaseConnector = \r\n new DatabaseConnector(ViewContact.this);\r\n\r\n // create an AsyncTask that deletes the contact in another \r\n // thread, then calls finish after the deletion\r\n AsyncTask<Long, Object, Object> deleteTask =\r\n new AsyncTask<Long, Object, Object>()\r\n {\r\n @Override\r\n protected Object doInBackground(Long... params)\r\n {\r\n databaseConnector.deleteContact(params[0]); \r\n return null;\r\n } // end method doInBackground\r\n\r\n @Override\r\n protected void onPostExecute(Object result)\r\n {\r\n finish(); // return to the AddressBook Activity\r\n } // end method onPostExecute\r\n }; // end new AsyncTask\r\n\r\n // execute the AsyncTask to delete contact at rowID\r\n deleteTask.execute(new Long[] { rowID }); \r\n } // end method onClick\r\n } // end anonymous inner class\r\n ); // end call to method setPositiveButton\r\n \r\n builder.setNegativeButton(R.string.button_cancel, null);\r\n builder.show(); // display the Dialog\r\n }", "public void testRemoveContact() throws DaoException {\n\t\tContact contact = new Contact();\n\t\tcontact.setName(\"Jack Sparrow\");\n\t\t// create\n\t\tString contactId = contactService.addContact(addrBook1, contact).getId();\n\t\t// assert\n\t\tassertEquals(1, contactService.getContacts(addrBook1).size());\n\t\t// remove\n\t\tcontactService.deleteContact(contactId);\n\t\t// assert\n\t\tassertEquals(0, contactService.getContacts(addrBook1).size());\n\n\t}", "public void delete(CbmCItemFininceItem entity);", "public void deleteContact() {\n Intent intent = getIntent(); //start the intent\n try {\n MainActivity.appDb.contactDelete(intent.getStringExtra(\"MyID\")); //try to delete contact from the database\n String delnum = intent.getStringExtra(\"delete_number\");\n Contacts.list.remove(Integer.parseInt(delnum));\n Contacts.listindex.remove(Integer.parseInt(delnum)); //delete it from the list of database id's and the listView\n Contacts.adapter.notifyDataSetChanged(); //update the list view\n }catch(NumberFormatException e){ //if we cant find the entry in the list\n MainActivity.appDb.contactDelete(intent.getStringExtra(\"MyID\")); //just delete the contact from the database\n }\n Intent Newintent = new Intent(viewContacts.this, Contacts.class); // start an intent to go back to contacts\n onActivityResult(1, RESULT_OK, Newintent); //start activity\n finish();\n }", "public boolean removeContact(Contact c);", "public String deleteContactPerson() {\n this.contactPersonService.deleteBy(this.id);\n return SUCCESS;\n }", "public void deleteCompany(Company obj);", "public void delete(HrJBorrowcontract entity);", "@Test\n\tpublic void shoudRemoveContact(){\n\t\tContact contact = new Contact().setFirstName(\"tester\").setLastName(\"test\");\n\t\tapp.getContactHelper().createContact(contact);\n\t\t//Removing the contact\n\t\tapp.getContactHelper().removeFirstContact();\n\t\tapp.getContactHelper().checkContactRemoved();\n\n\t}", "public void removeContact() {\r\n int selection = getContactSelection().getMinSelectionIndex();\r\n Statement stmt = null;\r\n try {\r\n rowSet.absolute(selection+1);\r\n Connection con = rowSet.getConnection();\r\n stmt = con.createStatement();\r\n String sql = \"delete from \" + CONTACTS_TABLE + \" where \" + CONTACTS_KEY + \" = \" + rowSet.getObject(CONTACTS_KEY);\r\n stmt.executeUpdate(sql);\r\n rowSet.execute();\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n } finally {\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "public void delete(Object bo) {\r\n getPersistenceBrokerTemplate().delete(bo);\r\n }", "public void removeContact() {\r\n\t\tSystem.out.println(\"enter the name of the contact you want to delete?\");\r\n\t\tString name = scanner.nextLine();\r\n\t\tint rowsEffected = service.removeContact(name);\r\n\t\tSystem.out.println(rowsEffected+\" row was removed\");\r\n\t}", "@Override\r\n\tpublic void delete(TAdAddress account) {\n\r\n\t}", "public void delete(Contract entity) {\n\r\n\t}", "public void delete(Address entity);", "@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}", "public void deleteContact(String del) {\n\n\t\t// get reference of the bookmarks database\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\t// delete word\n\t\tdb.delete(TABLE_NAME, NAME_FIELD + \" = ?\", new String[] { \"\" + del });\n\t\tdb.close();\n\t}", "private void deleteContact() throws SQLException {\n clsContactsTableModel mModel = (clsContactsTableModel) tblContacts.getModel();\n //Get the entire contact details.\n clsContactsDetails mContactsDetails = mModel.getContactDetails(this.pSelectedRow);\n \n switch (JOptionPane.showInternalConfirmDialog(this, \"Do you really want to delete the contact '\" + mContactsDetails.getFirstName() + \" \" + mContactsDetails.getLastName() + \"'?\", \"Delete contact?\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE)) {\n case JOptionPane.YES_OPTION:\n int mID = ((clsContactsTableModel) tblContacts.getModel()).getID(tblContacts.getSelectedRow());\n if (this.pModel.deleteContact(mID)) {\n this.pSelectedRow = -1;\n fillContactsTable();\n selectContact();\n }\n break;\n }\n }", "public void deleteContact(String name){\r\n\t\tSQLiteDatabase db = this.getWritableDatabase();\r\n\t\tdb.execSQL(\"delete from MYSELF where name=\\\"\"+name+\"\\\";\");\r\n\t\tdb.close();\r\n\t}", "@Override\n\tpublic void delete(BatimentoCardiaco t) {\n\t\t\n\t}", "public void deleteContact(@NotNull Long id) {\n Contact contact = contactRepo.findById(id)\n .orElseThrow(() -> new ContactNotFoundException(id));\n contactRepo.delete(contact);\n }", "public void delete(ControlAcceso entity) {\n\n\t}", "int deleteByExample(CxBasStaffExample example);", "@Override\n\tpublic void deleteById(int id) throws Exception {\n\t\tupdate(\"delete from contact where id = ?\", new Object[] { id });\n\t}", "public void deleteAfterOrderContact(AfterOrderContact afterOrderContact,String hql)\n\t\t\tthrows ErpServiceException {\n\t\ttry {\t \n\t\t\tafterSalesDao.deleteAfterOrderContact(afterOrderContact,hql);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new ErpServiceException(e.getMessage());\n\t\t}\n\t}", "private void executeAsyncTaskDeleteContact() {\n Log.d(\"test\", \"in delete task\");\n final Uri uri = buildWebServiceUriDeleteContact();\n final JSONObject json = new JSONObject();\n try {\n Log.d(\"test\", \"putting info\");\n json.put(\"email\", mSavedState.getString(getString(R.string.keyMyEmail)));\n json.put(\"myContactID\", mContact.getID());\n json.put(\"doDelete\", \"true\");\n Log.d(\"test\", \"put all info\");\n } catch (Exception e) {\n //woopsy\n }\n new SendPostAsyncTask.Builder(uri.toString(), json)\n .onPreExecute(this::handleAccountUpdateOnPre)\n .onPostExecute(this::handleDeleteAccountOnPost)\n .onCancelled(this::handleErrorsInTask)\n .build().execute();\n }", "boolean delete(Account account);", "void delete( String officeCode );", "public void deleteEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void delete(ExperTypeVO expertypeVO) {\n\n\t}", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "@Override\n\tpublic void deletContact(Integer cid) {\n\t\tcontactRepositeries.update(\"N\", cid);\n\t}", "public boolean deleteContact(ContentResolver contentResolver, ContactInfo cInfo) {\r\n\t\tlong id = Integer.parseInt(cInfo.get_ID());\r\n\t\tUri uri = ContentUris.withAppendedId(People.CONTENT_URI, id);\r\n\t\tint rowsDeleted = contentResolver.delete(uri, null, null);\r\n\t\t\r\n\t\tif(rowsDeleted >= 1) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\r\n\t}", "public void deleteForum(Forum forum);", "public static void deleteContact(String user, long id) {\n Contact contact = Contact.find().byId(id);\n UserInfo userInfo = UserInfo.find().where().eq(\"email\", user).findUnique();\n userInfo.getContacts().remove(contact);\n userInfo.save();\n contact.setUserInfo(null);\n contact.delete();\n }", "public void eraseContact(View v)\n {\n appState.firebaseReference.child(receivedPersonInfo.uid).removeValue();\n }", "public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);", "@Override\n\tpublic PersonelContract Delete(PersonelContract entity) {\n\t\treturn null;\n\t}", "void deleteComputerByCompany(Company company);", "int deleteByExample(TbaDeliveryinfoCriteria example);", "public String delete() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result = model.delete(vendorMaster);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(\"Record Deleted Successfully.\");\r\n\t\t\treset();\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"This record is referenced in other resources.So can't delete.\");\r\n\t\t\treset();\r\n\t\t}// end of else\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\t\tgetNavigationPanel(1); \r\n\t\treturn \"success\";\r\n\t}", "public void delete(String account) {\n BellvilleAccountant accountings = findAccountant(account);\r\n if (bellAccount != null) this.bellAccount.remove(bellAccount);\r\n }", "void delete(int entityId);", "public void removeByCompanyId(long companyId);", "public void remove(AddressBookDict addressBook) {\n\t\tlog.info(\"Enter the address book name from where you want to delete the contact\");\n\t\tString addressBookName = obj.next();\n\t\tlog.info(\"Enter the person name whose contact you want to delete\");\n\t\tString name = obj.next();\n\t\tPersonInfo p = addressBook.getContactByName(addressBookName, name);\n\t\tif (p == null) {\n\t\t\tlog.info(\"No such contact exists\");\n\t\t} else {\n\t\t\taddressBook.removeContact(addressBookName, p);\n\t\t\tlog.info(\"Details of \" + name + \" removed\");\n\t\t}\n\t}", "@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}", "int deleteByExample(TbComEqpModelExample example);", "@Override\n\tpublic void delete(FxzfLane entity) {\n\t\t\n\t}", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "@org.junit.Test\r\n public void testDelete() {\r\n System.out.println(\"delete\");\r\n String emailid = \"[email protected]\";\r\n ContactDao instance = new ContactDao();\r\n List<ContactResponse> expResult = new ArrayList<ContactResponse>();\r\n ContactResponse c = new ContactResponse(\"Contact Deleted\");\r\n expResult.add(c);\r\n List<ContactResponse> result = instance.delete(emailid);\r\n String s=\"No such contact ID found\";\r\n if(!result.get(0).getMessage().equals(s))\r\n assertEquals(expResult.get(0).getMessage(), result.get(0).getMessage());\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Override\r\n\tpublic int deleteByExample(FarmerCreditExample example) {\n\t\treturn farmerCreditDao.deleteByExample(example);\r\n\t}", "public void deleteAFDetail(VBAFDetail vbAFDetail)\r\n\t{\n\t\tAffiliateDAOUtil.deleteAFDetail(vbAFDetail);\r\n\t}", "public void deleteContact(int id) {\n\t\tObject record = hibernateTemplate.load(L7ServiceConfig.class, id);\n\t\thibernateTemplate.delete(record);\n\t}", "int deleteByPrimaryKey(String depCode);", "public void removeComposer(Contact value) {\r\n\t\tBase.remove(this.model, this.getResource(), COMPOSER, value);\r\n\t}", "int deleteByExample(TbMessageExample example);", "void deleteAveria(Long idAveria) throws BusinessException;", "@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}", "int deleteByPrimaryKey(Long bId);", "int deleteByPrimaryKey(Long accountid);", "public void deletePerson() {\n\t\tSystem.out.println(\"*****Delete the record*****\");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"Enter phone number for deletion : \");\n\t\tlong PhoneDelete = sc.nextLong();\n\t\tfor (int i = 0; i < details.length; i++) {\n\t\t\tif (details[i] != null && details[i].getPhoneNo() == PhoneDelete) {\n\t\t\t\tdetails[i] = null;\n\t\t\t\tSystem.out.println(\"Record deleted successfully\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "void deleteByOrgId(String csaOrgId);", "public void deleteDepartmentByDeptNo(int dept_no);", "public String deleterPetDetails(int petId);", "void deleteBlogPost(BlogPost blogPost);", "public void removeByUuid_C(java.lang.String uuid, long companyId);", "public void delete(String so_cd);", "@Override\n\tpublic void deleteBourse(Bourse brs) {\n\t\t\n\t}", "public int deleteContact(String uriStr) {\n return mContext.getContentResolver().delete(Uri.parse(uriStr), null, null);\n\n }", "public int DelCompany(Long cid, String compname, Long shareamt, Long getnoShare) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"delete from company where comp_id=\"+cid+\"\");\r\n\treturn i;\r\n}", "public int delete( Conge conge ) ;", "void deleteById(String accountNumber) throws AccountException;", "int deleteByExample(CGcontractCreditExample example);", "public int Delbroker(Long broker_id, String firstname, String lastname,\r\n\t\tString address, String gender, String eMail, Long phone,\r\n\t\tString experience) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"delete from broker where broker_id=\"+broker_id+\"\");\r\n\treturn i;\r\n}", "@Override\r\n public void deleteEntity(String entityName) {\n\r\n }", "public void removeByUuid_C(String uuid, long companyId);", "public void removeByUuid_C(String uuid, long companyId);", "public void removeByUuid_C(String uuid, long companyId);", "void delete(Entity entity);", "@Override\n\tpublic void delete(Phone phone) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Phone phone) {\n\t\t\n\t}", "@Override\n\tpublic int deleteTicket(Booking_ticket bt) {\n\t\treturn 0;\n\t}", "int deleteByExample(CusBankAccountExample example);", "public void elimina(DTOAcreditacionGafetes acreGafete) throws Exception;", "int deleteByExample(DebtsRecordEntityExample example);", "public void eraseContact(View v)\n {\n appState.firebaseReference.child(receivedPersonInfo.uid).removeValue();\n finish();\n Intent intent=new Intent(this, MainActivity.class);\n startActivity(intent);\n\n }", "int deleteByExample(mailIdentifyExample example);", "@Override\n\tpublic void delete(Integer deptno) {\n\t\t\n\t}", "void unsubscribe(Contact contact)\n throws IllegalArgumentException, IllegalStateException, OperationFailedException;", "public abstract void deleteContract(String contractNumber);", "@Override\n\tpublic void deleteTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}", "public int delComp(Long cid, String compname, String address, String city,\r\n\t\tString state, Long offno, Long faxno, String website, String eMail,\r\n\t\tLong shareamt, Long getnoShare)throws SQLException {\n\tLong id=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+cid+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tid=rs.getLong(1);\r\n\t}\r\n\tint i=DbConnect.getStatement().executeUpdate(\"Delete from login where login_id=\"+id+\"\");\r\n\treturn i;\r\n}", "@Override\n\tpublic void delete(Unidade obj) {\n\n\t}" ]
[ "0.6934847", "0.6909265", "0.68508166", "0.6653502", "0.6570559", "0.6540021", "0.65340835", "0.6507553", "0.64786434", "0.64065534", "0.6379846", "0.6374231", "0.6347536", "0.6332083", "0.6303823", "0.6267845", "0.62674224", "0.62246007", "0.61921215", "0.61836165", "0.6170647", "0.61705005", "0.6154401", "0.6147466", "0.61350936", "0.61300063", "0.60872424", "0.60816497", "0.60608476", "0.60449475", "0.60293674", "0.6029158", "0.60070336", "0.6002074", "0.60008144", "0.5996618", "0.5994154", "0.5987107", "0.5982429", "0.59741694", "0.59712064", "0.5966784", "0.59631", "0.5949434", "0.5932369", "0.5921343", "0.59157616", "0.59088206", "0.59043473", "0.58927554", "0.5886108", "0.5878747", "0.5873131", "0.5851957", "0.5845446", "0.584513", "0.5836681", "0.5835687", "0.5825461", "0.58242697", "0.58237225", "0.5822995", "0.5819685", "0.58177507", "0.5815929", "0.58099484", "0.58064073", "0.58023787", "0.5802343", "0.5801041", "0.5790847", "0.5790588", "0.57865995", "0.57856846", "0.57844585", "0.5783486", "0.578249", "0.57817006", "0.5775215", "0.5771695", "0.5769976", "0.5769639", "0.5769608", "0.5765533", "0.5765533", "0.5765533", "0.5765129", "0.57612914", "0.57612914", "0.576016", "0.57446724", "0.5744044", "0.57366455", "0.5735817", "0.573248", "0.5731092", "0.5726058", "0.57249856", "0.5724119", "0.57236034", "0.5723104" ]
0.0
-1
List of requirement for a beverage
@Override public Map<Ingredient, Integer> getRequirementsForABeverage(String beverage){ return requirementSpecificationMap.get(beverage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<AbstractRequirement> getRequirements();", "public List<? extends Requirement> getRequirements();", "public Collection<Requirement> getGenericRequirements();", "ImmutableList<ResourceRequirement> getRequirements();", "protected void getRequires() {\n System.out.println(\"\\nRequires: \");\n /******************************************/\n myIterator.next();\n myRequires = new Expression(myIterator, mye);\n /******************************************/\n System.out.println(\"\\n\");\n }", "Requires getRequires();", "public String toString() {\n StringBuilder out = new StringBuilder(\"Requirements:\\n\");\n for (Fact fact: requiredFacts) {\n out.append(fact.toString());\n if (requiredFacts.indexOf(fact) < requiredFacts.size() - 1) out.append(reqIsAnd ? \"AND\\n\" : \"OR\\n\");\n }\n return out.toString();\n }", "public String getRequirements() { \n\t\treturn getRequirementsElement().getValue();\n\t}", "private void computeCoffeeMaker(){\n HashMap<String,String> notAvailableBeverages = coffeeMakerService.getNotAvailableBeverages();\n ArrayList<String> beverageNames = coffeeMakerService.getBeveragesName();\n for (String beverage: beverageNames) {\n if(notAvailableBeverages.containsKey(beverage)){\n System.out.println(notAvailableBeverages.get(beverage));\n }else{\n if(coffeeMakerService.canPrepareBeverage(beverage)){\n coffeeMakerService.prepareBeverage(beverage);\n System.out.println(beverage+\" is prepared\");\n }else{\n System.out.println(coffeeMakerService.getReasonForNotPreparation(beverage));\n }\n }\n }\n }", "public abstract List<Requirement> getFailedChecks();", "public Requirement getRequirement() {\n return requirement;\n }", "private String needs() {\r\n\t\tint[] needs=tile.getLifeNeedsMet();\r\n\t\tString out=\"Needs Met: \"+needs[0]+\" || Needs Not Met: \"+needs[1];\r\n\t\treturn out;\r\n\t}", "public java.util.List<DocumentRequires> getRequires() {\n if (requires == null) {\n requires = new com.amazonaws.internal.SdkInternalList<DocumentRequires>();\n }\n return requires;\n }", "@Override\n\tpublic List<Product_Requirement> findByName(String name) {\n\t\treturn productR.findByName(name);\n\t}", "@Override\n public int getRequirementTotal() {\n return mutants.length;\n }", "public Collection<String> getRequireFeature();", "@Override\n\tpublic Set<PartType> getRequirements(PartType reference) {\n\t\treturn null;\n\t}", "Collection<? extends Equipment> getUses();", "List<OpeningRequirement> selectAll();", "private void convertReqsInCriterions(){\n\t\tArrayList<Criterion> criteria = this.data.getCriteria();\n\t\t\n\t\tfor(Requirement req : this.data.getRequirements()){\n\t\t\tif(req.isCriterion()){\n\t\t\t\t//create new criterion\n\t\t\t\tCriterion crit = new Criterion();\n\t\t\t\tif(req.getQuantType() != null)\n\t\t\t\t\tcrit.setName(req.getQuantType().getValue());\n\t\t\t\telse if(req.getQualType() != null)\n\t\t\t\t\tcrit.setName(req.getQualType().getValue());\n\t\t\t\telse\n\t\t\t\t\t//this is a price requirement\n\t\t\t\t\tcrit.setName(\"price\");\n\t\t\t\t\n\t\t\t\tString[] msg = {crit.getName(), \"General\"};\n\t\t\t\tif(this.methodID == CloudAid.SAW){\n\t\t\t\t\tFloat weight = Float.parseFloat(CloudAid.askData(CloudAid.GET_WEIGHT, msg, null));\n\t\t\t\t\tcrit.setWeight(weight);\n\t\t\t\t}\n\t\t\t\t//get the criterion preference direction\n\t\t\t\tString res = CloudAid.askData(CloudAid.GET_PREFERENCE_DIRECTION, msg, null);\n\t\t\t\tif(res.equalsIgnoreCase(\"y\")){\n\t\t\t\t\tcrit.setPreferenceDirection(\"max\");\n\t\t\t\t}else if(res.equalsIgnoreCase(\"n\")){\n\t\t\t\t\tcrit.setPreferenceDirection(\"min\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcriteria.add(crit);\n\t\t\t}\n\t\t}\n\t\tthis.data.setCriteria(criteria);\n\t\t\n\t\t//convert each serpiceTemplate requirements\n\t\tfor(ServiceTemplate template : this.data.getServiceTemplates()){\n\t\t\tArrayList<Criterion> templateCriteria = template.getCriteria();\n\t\t\tfor(Requirement req: template.getRequirements()){\n\t\t\t\tif(req.isCriterion()){\n\t\t\t\t\t//create new criterion\n\t\t\t\t\tCriterion crit = new Criterion();\n\t\t\t\t\tif(req.getQuantType() != null)\n\t\t\t\t\t\tcrit.setName(req.getQuantType().getValue());\n\t\t\t\t\telse if(req.getQualType() != null)\n\t\t\t\t\t\tcrit.setName(req.getQualType().getValue());\n\t\t\t\t\telse\n\t\t\t\t\t\t//this is a price requirement\n\t\t\t\t\t\tcrit.setName(\"price\");\n\t\t\t\t\t\n\t\t\t\t\tString[] msg = {crit.getName(), template.getType()};\n\t\t\t\t\tif(this.methodID == CloudAid.SAW){\n\t\t\t\t\t\tFloat weight = Float.parseFloat(CloudAid.askData(CloudAid.GET_WEIGHT, msg, null));\n\t\t\t\t\t\tcrit.setWeight(weight);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//get the criterion preference direction\n\t\t\t\t\tString res = CloudAid.askData(CloudAid.GET_PREFERENCE_DIRECTION, msg, null);\n\t\t\t\t\tif(res.equalsIgnoreCase(\"y\")){\n\t\t\t\t\t\tcrit.setPreferenceDirection(\"max\");\n\t\t\t\t\t}else if(res.equalsIgnoreCase(\"n\")){\n\t\t\t\t\t\tcrit.setPreferenceDirection(\"min\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttemplateCriteria.add(crit);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemplate.setCriteria(templateCriteria);\n\t\t}\n\t}", "public String[] requires() { return new String[0]; }", "public java.lang.String getRequires()\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(REQUIRES$28);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "private List<AmountResource> getAvailableDessertResources(double amountNeeded, boolean isThirsty) {\n\n\t\tList<AmountResource> result = new ArrayList<AmountResource>();\n\n\t\tUnit containerUnit = person.getContainerUnit();\n\t\tif (!(containerUnit instanceof MarsSurface)) {\n\t\t\tInventory inv = containerUnit.getInventory();\n\n\t\t\tboolean option = true;\n\n\t\t\tAmountResource[] ARs = PreparingDessert.getArrayOfDessertsAR();\n\t\t\tfor (AmountResource ar : ARs) {\n\t\t\t\tif (isThirsty)\n\t\t\t\t\toption = ar.getName().contains(JUICE) || ar.getName().contains(MILK);\n\t\t\t\t\n\t\t\t\tboolean hasAR = false;\n\t\t\t\tif (amountNeeded > MIN) {\n\t\t\t\t\thasAR = Storage.retrieveAnResource(amountNeeded, ar, inv, false);\n\t\t\t\t}\n\t\t\t\tif (option && hasAR) {\n\t\t\t\t\tresult.add(ar);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public interface Beverage {\n\n String printDescription();\n double getCost();\n}", "public default int getActiveRequirementCount() {\n\t\tint result = 0;\n\t\tif (getRequirements() != null) {\n\t\t\tfor (Requirement req : getRequirements()) {\n\t\t\t\tif (!req.isArchived()) {\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@JsonIgnore public Collection<Offer> getExpectsAcceptanceOfs() {\n final Object current = myData.get(\"expectsAcceptanceOf\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Offer>) current;\n }\n return Arrays.asList((Offer) current);\n }", "public boolean processRequirementSummary() throws NbaBaseException {\n\t\tboolean success = false;\n\t\tNbaVpmsAdaptor vpmsProxy = null; //SPR3362\n\t\ttry {\n\t\t\tNbaOinkDataAccess oinkData = new NbaOinkDataAccess(txLifeReqResult); //ACN009\n\t\t\toinkData.setAcdbSource(new NbaAcdb(), nbaTxLife);\n\t\t\toinkData.setLobSource(work.getNbaLob());\n\t\t\tif(getLogger().isDebugEnabled()) { //SPR3290\n\t\t\t getLogger().logDebug(\"########### Testing Requirment Summary ###########\");\n\t\t\t getLogger().logDebug(\"########### PartyId: \" + partyID);\n\t\t\t}//SPR3290\n\t\t\tvpmsProxy = new NbaVpmsAdaptor(oinkData, NbaVpmsAdaptor.ACREQUIREMENTSUMMARY); //SPR3362\n\t\t\tvpmsProxy.setVpmsEntryPoint(NbaVpmsAdaptor.EP_GET_CALCXMLOBJECTS);\n\t\t\tMap deOink = new HashMap();\n\t\t\t//\t\t\t######## DEOINK\n\t\t\tdeOink.put(NbaVpmsConstants.A_PROCESS_ID, NbaUtils.getBusinessProcessId(getUser())); //SPR2639\n\t\t\tdeOinkContractFieldsForRequirement(deOink);\n\t\t\tdeOinkXMLResultFields(deOink);\n deOinkSubstanceUsage(oinkData, deOink, partyID); //AXAL3.7.07\n\t\t\tdeOinkLabTestResults(deOink);\n\t\t\tObject[] args = getKeys();\n\t\t\tNbaOinkRequest oinkRequest = new NbaOinkRequest();\n\t\t\toinkRequest.setRequirementIdFilter(reqId);\n\t\t\toinkRequest.setArgs(args);\n\t\t\tvpmsProxy.setANbaOinkRequest(oinkRequest);\n\t\t\tvpmsProxy.setSkipAttributesMap(deOink);\n\t\t\tVpmsComputeResult vcr = vpmsProxy.getResults();\n\t\t\tNbaVpmsResultsData vpmsResultsData = new NbaVpmsResultsData(vcr);\n\t\t\tArrayList results = vpmsResultsData.getResultsData();\n\t\t\tresults = vpmsResultsData.getResultsData();\n\t\t\t//Resulting string will be the zeroth element.\n\t\t\tif (results == null) {\n\t\t\t\t//SPR3362 code deleted\n\t\t\t\tthrow new NbaVpmsException(NbaVpmsException.VPMS_NO_RESULTS + NbaVpmsAdaptor.ACREQUIREMENTSUMMARY); //SPR2652\n\t\t\t} //SPR2652\n\t\t\tvpmsResult = (String) results.get(0);\n\t\t\tNbaVpmsModelResult vpmsOutput = new NbaVpmsModelResult(vpmsResult);\n\t\t\tVpmsModelResult vpmModelResult = vpmsOutput.getVpmsModelResult();\n\t\t\tupdateDefaultValues(vpmModelResult.getDefaultValues());\n\t\t\tupdateSummaryValues(vpmModelResult.getSummaryValues());\n\t\t\tsuccess = true;\n\t\t\t// SPR2652 Code Deleted\n\t\t\t//SPR3362 code deleted\n\t\t} catch (RemoteException re) {\n\t\t\tthrow new NbaBaseException(\"Remote Exception occured in processRequirementSummary\", re);\n\t\t// SPR2652 Code Deleted\n\t\t//begin SPR3362\n\t\t} finally {\n\t\t if(vpmsProxy != null){\n\t\t try {\n vpmsProxy.remove();\n } catch (RemoteException e) {\n getLogger().logError(NbaBaseException.VPMS_REMOVAL_FAILED);\n }\n\t\t }\n\t\t//end SPR3362\n\t\t}\n\t\treturn success;\n\t}", "public Collection<String> getProvideFeature();", "public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }", "public void addRequirements(BptSlotInfo slot, IBptContext context, LinkedList requirements)\r\n/* 21: */ {\r\n/* 22:28 */ requirements.add(new ur(amq.y));\r\n/* 23: */ }", "void require( AvailabilityRequirement requirement );", "public List<Flow.Significance> getSignificanceToTargetChoices() {\n List<Flow.Significance> significances = new ArrayList<Flow.Significance>();\n significances.add( Flow.Significance.Useful );\n significances.add( Flow.Significance.Critical );\n significances.add( Flow.Significance.Terminates );\n if ( !getFlow().isAskedFor() ) significances.add( Flow.Significance.Triggers );\n return significances;\n }", "List<ResourceSkuRestrictions> restrictions();", "@Override\n\tpublic String toString() {\n\t\treturn this.gems + \" gems for \" + this.amount + \" \" + this.goods.toString();\n\t}", "com.microsoft.schemas.crm._2011.contracts.ArrayOfRequiredResource getRequiredResources();", "public String getDisablebuyerrequirements() {\r\n return disablebuyerrequirements;\r\n }", "public String getExperienceRequirements() {\r\n return experienceRequirements;\r\n }", "public List<String> getSpecifications() {\n\t\tString sql =\"select specification from specifications\";\n\t\tList<String> res = jdbcTemplate.queryForList(sql, String.class);\n\t\treturn res;\n\t}", "public interface Recipe {\n\n String getTitle();\n\n String getDescription();\n\n List<String> getMealType();\n\n List<String> getFoodType();\n\n List<String> getIngredients();\n}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Chef \" + name + \" finished preparing \"+ total + \" orders including \"\r\n\t\t\t\t+ bCount + \" burgers, \" + pCount + \" pizzas and \" + fCount + \" fish n chips\";\r\n\t}", "public String drawRequirements();", "UsabilityRequirement createUsabilityRequirement();", "private Item getRequiredItem(ArrayList<Item> items, String requiredItemName) {\n Item requirement = null;\n\n for (int i = 0; i <= items.size() - 1; i++) {\n if (items.get(i).getName().equals(requiredItemName)) {\n requirement = items.get(i);\n }\n }\n return requirement;\n }", "MeasureOrNullListType getQuantityList();", "private void initiaLizeRequirements() {\n\n\t\ttry {\n\t\t\tstFoodDataEntry = cnFoodDataEntry.createStatement();\n\n\t\t\tString sql = \"select energysourceid, unit, conversionfactor from energysourcedetail where energysourceid in (select sourceid from energysource where energytypeid =\"\n\t\t\t\t\t+ FOOD + \") order by energysourceid asc\";\n\t\t\trsFoodDataEntry = stFoodDataEntry.executeQuery(sql);\n\n\t\t\tMap<String, Double> unitConversionF = null;\n\t\t\t// List<Map<String, Double>> listUnitConversionF;\n\t\t\tenergySourceDetail = new LinkedHashMap<Integer, Map<String, Double>>();\n\n\t\t\tint energysourceId;\n\t\t\tString unit;\n\t\t\tDouble coversionFactor;\n\n\t\t\twhile (rsFoodDataEntry.next()) {\n\t\t\t\tenergysourceId = rsFoodDataEntry.getInt(\"energysourceid\");\n\t\t\t\tunit = rsFoodDataEntry.getString(\"unit\");\n\t\t\t\tcoversionFactor = rsFoodDataEntry.getDouble(\"conversionfactor\");\n\n\t\t\t\tif (energySourceDetail.containsKey(energysourceId)) {\n\t\t\t\t\tenergySourceDetail.remove(energysourceId);\n\t\t\t\t} else {\n\t\t\t\t\tunitConversionF = new LinkedHashMap<String, Double>();\n\t\t\t\t}\n\t\t\t\tunitConversionF.put(unit, coversionFactor);\n\t\t\t\tenergySourceDetail.put(energysourceId, unitConversionF);\n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String marketBuyAmounts() {\r\n\t\tint[] amounts= market.getBuyAmounts();\r\n\t\tString out = \"Buy Requests Are: \";\r\n\t\tfor(int i=0; i<amounts.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+amounts[i]+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "public int getBeverageQty() {\n return beverageQty;\n }", "boolean containsRequirementFor(AResourceType type);", "Collection<? extends PM_Learning_Material> getHasRecommendation();", "Set<Capability> getAvailableCapability();", "public String[] getRequiredInfo()\n\t{\n\t\tString[] info = new String[] {\n\t\t\t\tcurrentMedText.getText(),\n\t\t\t\tnameText.getText(), \n\t\t\t\tdoseText.getText(),\n\t\t\t\tdurationText.getText(),\n\t\t\t\tchemicalCategoryText.getText(),\n\t\t\t\tactionText.getText(),\n\t\t\t\tapplicationText.getText(),\n\t\t\t\tusualDoseText.getText(),\n\t\t\t\tsideEffectText.getText()};\n\t\treturn info; \n\t\t\n\t}", "@Override\n\tpublic Optional<Product_Requirement> listProduct_RequirementId(long id) {\n\t\treturn productR.findById(id);\n\t}", "public String getAcademicRequirements() {\r\n return academicRequirements;\r\n }", "public RequirementsRecord() {\n super(Requirements.REQUIREMENTS);\n }", "private void generalizeCSARequirements(){\n\t\tArrayList<ServiceTemplate> comps = new ArrayList<ServiceTemplate>() ;\n\t\tArrayList<Requirement> reqs = new ArrayList<Requirement>() ;\n\t\t\n\t\tcomps = this.data.getServiceTemplates();\n\t\treqs = this.data.getRequirements();\n\t\t\n\t\tfor(ServiceTemplate c : comps){\n\t\t\tfor(Requirement r : reqs){\n\t\t\t\tRequirement temp = new Requirement();\n\t\t\t\ttry {\n\t\t\t\t\tBeanUtils.copyProperties(temp, r);\n\t\t\t\t\t//System.out.println(r.toString());\n\t\t\t\t\t//System.out.println(temp.toString());\n\t\t\t\t\tc.addReq(temp);\n\t\t\t\t} catch (IllegalAccessException | InvocationTargetException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "List<SupplyNeed> selectByExample(SupplyNeedExample example);", "private static List<Building> getManufacturingBuildingsNeedingWork(List<Building> buildingList, int skill) {\n\n\t\tList<Building> result = new ArrayList<Building>();\n\n\t\tIterator<Building> i = buildingList.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tBuilding building = i.next();\n\t\t\tif (building.getManufacture().requiresManufacturingWork(skill)) {\n\t\t\t\tresult.add(building);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public static List<Requirement> getGroupListOfReq(Long idProject){\r\n\r\n\t\tStringBuffer filter = new StringBuffer();\r\n\t\tfilter.append(\"idProject==\"+ idProject);\r\n\t\tfilter.append(\"&&\");\r\n\t\tfilter.append(Constant.DEFAULT_STATUS);\r\n\t\t\r\n\t\treturn reqDao.getGroupOfReq(filter.toString());\r\n\t}", "public List<ModelOrderItemQtySpec>findAllSpecification(Long specificationId);", "String getNeedsInventoryIssuance();", "@Override\n\tpublic String getText(Object object) {\n\t\tRequirement requirement = (Requirement)object;\n\t\treturn getString(\"_UI_Requirement_type\") + \" \" + requirement.getIdentifier();\n\t}", "public TerritoryCardRequirementBonus(boolean needRequirement) {\r\n\t\tsuper(\"TerritoryCardRequirementBonus\");\r\n\t\tthis.needRequirement = needRequirement;\r\n\t}", "public String getProductServiceSpecificationOperationalRequirements() {\n return productServiceSpecificationOperationalRequirements;\n }", "@Override\n\tpublic java.lang.String getNeedQuantity() {\n\t\treturn _lineaGastoCategoria.getNeedQuantity();\n\t}", "public SupplyDemand() {\r\n\t\t//begin\r\n\t\tproducerList = new ArrayList<>();\r\n\t\tretailerList = new ArrayList<>();\r\n\t\t//end\r\n\t}", "List<Consumption> listAll();", "@GetMapping(\"/getrequirements/{empId}\")\n\t public ResponseEntity<List<Requirement>> getAllRequirements(@PathVariable int empId)\n\t {\n\t\t List<Requirement> fetchedRequirements=employeeService.getAllRequirements(empId);\n\t\t \n\t\t if(fetchedRequirements.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\t return new ResponseEntity<List<Requirement>>(fetchedRequirements,HttpStatus.OK); \n }", "@Override\n\tpublic String ingredients() {\n\t\treturn \"Chicken, Bread, seasoning , cheese\";\n\t}", "List<ResourceSkuCapabilities> capabilities();", "Set<DependencyItem> getDependsOnMe(Class<?> type);", "java.util.List<pb4client.TransportRequest> \n getReqList();", "@GET\n @Path(\"/{requirementId}\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method returns a specific requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns a certain requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response getRequirement(@PathParam(\"requirementId\") int requirementId) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n RequirementEx requirement = dalFacade.getRequirementById(requirementId, internalUserId);\n if (dalFacade.isRequirementPublic(requirementId)) {\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Read_PUBLIC_REQUIREMENT, String.valueOf(requirement.getProjectId()), dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.anonymous\"));\n }\n } else {\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Read_REQUIREMENT, String.valueOf(requirement.getProjectId()), dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.component.read\"));\n }\n }\n Gson gson = new Gson();\n return Response.ok(gson.toJson(requirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }", "ResourceRequirement getRequirementFor(AResourceType type);", "public String getNecessary() {\n return necessary;\n }", "public CourseRequirement(String requirementName, List<ModuleCode> modules, ModularCredits modularCredits,\n List<String> requirementInfo) {\n this.requirementName = requirementName;\n this.modules = modules;\n this.modularCredits = modularCredits;\n this.requirementInfo = requirementInfo;\n }", "public List quantInscritosVestibular(String vest_info);", "public DependencySet getMinimalCover();", "List<ExamPackage> getListPresent();", "io.dstore.values.StringValue getConditionList();", "private boolean hasRequirements() {\n \t\tif (checkHasRequirements) {\n \t\t\thasRequirements = pullRequired(requiredInput, false);\n \t\t\tcheckHasRequirements = false;\n \t\t}\n \t\treturn hasRequirements;\n \t}", "protected DListUI<IC_OperationsForList> createRequirementsField() {\r\n\t\tAbstractModelController mc = new AbstractModelController() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Object getValue() {\r\n\t\t\t\treturn _updateState.getDefinition().getRequirements();\r\n\t\t\t}\r\n\r\n\t\t\tpublic void notifieValueChanged(UIField field, Object value) {\r\n\t\t\t\t// do nothing\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// retrieve list of update operations\r\n\t\tIC_OperationsForList ic = new IC_OperationsForList(_updateState, OperationCategory.REQUIREMENTS) {\r\n\t\t\t@Override\r\n\t\t\tpublic void initAfterUI() {\r\n\t\t\t\tsuper.initAfterUI();\r\n\r\n\t\t\t\t((FilteredTree) _requirementsField.getMainControl()).getViewer()\r\n\t\t\t\t\t\t.addSelectionChangedListener(\r\n\t\t\t\t\t\t\t\tnew ISelectionChangedListener() {\r\n\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void selectionChanged(\r\n\t\t\t\t\t\t\t\t\t\t\tSelectionChangedEvent event) {\r\n\t\t\t\t\t\t\t\t\t\t_selectedRequirement = (Operation) ((TreeSelection) event.getSelection()).getFirstElement();\r\n\t\t\t\t\t\t\t\t\t\trefreshRequirementsFields();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\treturn\t_swtuiPlatforms.createDListUI(_page, \"#listOfRequirements\",\r\n\t\t\t\t\"Requirements\", EPosLabel.top, mc, ic, false, false, false, false);\r\n\t}", "private List<ProductQuantity> getQuantities() {\n List<ProductQuantity> quantities = new ArrayList<>();\n for (int i = 1; i <= QUANTITY_MAX; i++) {\n ProductQuantity q = new ProductQuantity(i, i + \"x\");\n quantities.add(q);\n }\n return quantities;\n }", "AddonRecommendation getAddonRecommendation();", "@Test\n\tpublic void testPurchaseBeverageEnoughMoney() {\n\t\twhen(mockCoffeeMaker.getRecipes()).thenReturn(recipeList);\n\t\tassertEquals(100, mockCoffeeMaker.makeCoffee(0, 150));\n\t}", "public StringDt getRequirementsElement() { \n\t\tif (myRequirements == null) {\n\t\t\tmyRequirements = new StringDt();\n\t\t}\n\t\treturn myRequirements;\n\t}", "public BigDecimal getBSCA_ProfitPriceList();", "public Collection<Integer> getIncludedServiceBrands();", "@SuppressWarnings(\"unused\")\n private Object[] parametersTestHasEnough() {\n return new Object[] { \n new Object[] { new Ingredient(\"have\", 100, \"tbsp.\"), new Ingredient(\"needed\", 1, \"cup\"), true}, \n new Object[] { new Ingredient(\"have\", 5, \"\"), new Ingredient(\"needed\", 10, \"tsp\"), false}, \n new Object[] { new Ingredient(\"have\", 3, \"cups.\"), new Ingredient(\"needed\", 1, \"gallon\"), false},\n new Object[] { new Ingredient(\"have\", 3, \"ounces.\"), new Ingredient(\"needed\", 1, \"gallon\"), false},\n new Object[] { new Ingredient(\"have\", 100, \"tbsp.\"), new Ingredient(\"needed\", 100, \"tbsp\"), true},\n new Object[] { new Ingredient(\"have\", 100, \"\"), new Ingredient(\"needed\", 100, \"tbsp\"), true},\n new Object[] { new Ingredient(\"have\", 100, \"oz\"), new Ingredient(\"needed\", 50, null), true},\n new Object[] { new Ingredient(\"have\", 3, \"ct.\"), new Ingredient(\"needed\", 2, \"fake\"), true},\n new Object[] { new Ingredient(\"have\", 3, \"ct.\"), null, true},\n };\n }", "public List<IndicatorCriteria> getIndicatorCriterias();", "public List<ScheduleResource> neededSpecificResources();", "void fulfill( AvailabilityRequirement requirement );", "public BigDecimal getBSCA_ProfitPriceListEntered();", "public List getGestionStockList(Map criteria);", "public FocusNode.EnumSupplyType[] willSupply() { return new FocusNode.EnumSupplyType[] { FocusNode.EnumSupplyType.TARGET }; }", "List<ExamPackage> getListIsComing();", "public List getDonts() {\n\t\tif (donts == null) {\n\t\t\tdonts = getFormattedPractices(\"/metadataFieldInfo/field/bestPractices/donts\");\n\t\t}\n\t\treturn donts;\n\t}", "public ImmutableList<G> getGoods() {\n return this.goods;\n }", "public int getSupplies() {\n\t\treturn supplies;\n\t}", "public Recipe(String name, ArrayList<Product> productList, ArrayList<String> steps, int timeNeeded){\n this.name = name;\n this.productList = productList;\n this.steps = steps;\n this.timeNeeded = timeNeeded;\n }", "public List<Constraint> getConstraints();" ]
[ "0.7446574", "0.7081293", "0.6558332", "0.64778316", "0.6410712", "0.62650985", "0.61888397", "0.6129109", "0.60732", "0.5809023", "0.5788553", "0.5773877", "0.57405835", "0.57161933", "0.55857307", "0.5559235", "0.5507461", "0.5483521", "0.54484046", "0.5439369", "0.5422502", "0.5422321", "0.5394924", "0.5349432", "0.5345313", "0.53441805", "0.5280315", "0.5262546", "0.5256679", "0.5224058", "0.5213417", "0.5209271", "0.5182227", "0.517787", "0.51690245", "0.5147999", "0.514361", "0.5113122", "0.51000524", "0.50971615", "0.50953174", "0.50683504", "0.50661874", "0.50658995", "0.5062863", "0.50517315", "0.50467294", "0.5032239", "0.5007775", "0.49993658", "0.49990636", "0.49954927", "0.49919742", "0.49813813", "0.49734175", "0.49711454", "0.49550548", "0.4948367", "0.49455804", "0.49416804", "0.49374673", "0.49373657", "0.489395", "0.48899728", "0.48848855", "0.4879402", "0.48746145", "0.48703244", "0.4870097", "0.48700875", "0.48691595", "0.48673144", "0.4866132", "0.48639983", "0.48632765", "0.48625532", "0.48587695", "0.4843626", "0.4842912", "0.484083", "0.48397914", "0.4839678", "0.48280734", "0.48210016", "0.482075", "0.48202083", "0.4819985", "0.48199007", "0.48143464", "0.48123404", "0.48085445", "0.48074147", "0.4803536", "0.47961974", "0.47951114", "0.4779717", "0.47616202", "0.47519937", "0.47514468", "0.4750645" ]
0.7121387
1
Current Inventory for a Ingredient
@Override public Integer getInventoryForAIngredient(Ingredient ingredient){ return beverageInventoryMap.get(ingredient); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Inventory getInventory(){ //needed for InventoryView - Sam\n return inventory;\n }", "public Inventory getInventory() {\r\n\t\treturn inventory;\r\n\t}", "public Inventory getInventory() {\n return inventory;\n }", "InventoryItem getInventoryItem();", "public Product getProductInventory() {\n return productInventory;\n }", "public Inventory getInventory(){\n return inventory;\n }", "protected ItemBO getSelectedInventoryForAnItem(final ItemBO anItem) {\n\t\tif (!isPartFoundInMultipleLocations(anItem)) {\n\t\t\tanItem.setInventory(shortListRelevantInventory(anItem));\n\t\t\tanItem.setAdditionalInventory(new ArrayList<InventoryBO>());\n\t\t}\n\t\t\n\t\treturn anItem;\n\t}", "@Override\n\tpublic Inventory getInventory() {\n\t\treturn null;\n\t}", "Collection<Item> getInventory();", "public String getInventoryName()\n {\n return this.inventoryTitle;\n }", "public String getInventoryName()\n {\n return this.hasCustomName() ? this.getCustomName() : Names.Containers.WATERJET;\n }", "public PlayerInventory getInventory ( ) {\n\t\treturn extract ( handle -> handle.getInventory ( ) );\n\t}", "public ImageIdentifier getInventoryPicture()\n\t {\n\t return inventoryPicture;\n\t }", "public int getKeyInventory() {\r\n return Input.Keys.valueOf(keyInventoryName);\r\n }", "public int getUnitsInventory(){\n\t\treturn unitsInventory;\n\t}", "public String getKeyInventoryName() {\r\n return keyInventoryName;\r\n }", "@Override\n\tpublic Inventory getInventory()\n\t{\n\t\tInventory inventory = Bukkit.createInventory(this, tabSize*9, \n\t\t\t\tsettings.getAccountNameFormat().replace(\"{player}\", owner).replace(\"{npc}\", settings.getNpcName())\n\t\t\t\t);\n\t\treturn inventory;\n\t}", "public void inventory() {\n\t\tList<Item> items = super.getItems();\n\n\t\tString retStr = \"Items: \";\n\t\tItem item;\n\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\titem = items.get(i);\n\t\t\tretStr += item.toString();\n\t\t\tif (i != items.size()-1)\n \t{\n\t\t\t\tretStr += \", \";\n \t}\n\t\t}\n\t\tretStr += \"\\nCapacity: \" + this.currentCapacity() + \"/\" + this.maxCapacity;\n\t\tSystem.out.println(retStr);\n\t}", "List<InventoryItem> getInventory();", "public Item[] getInventoryItems(){\n\t\treturn inventoryItems;\n\t}", "SimpleInventory getOpenedInventory(Player player);", "public InventoryView getOpenInventory ( ) {\n\t\treturn extract ( handle -> handle.getOpenInventory ( ) );\n\t}", "@Override\n\tpublic String getInventoryName() {\n\t\treturn isInventoryNameLocalized() ? field_145902_i : \"container.hopper\";\n\t}", "public InventoryUtil getInventoryUtil() {\n return inventoryUtil;\n }", "public ItemStack getCartItem() {\n return new ItemStack(ModItems.fluxLevitatorItem);\n }", "public String getInventoryString() {\n String msg = new String(\"Inventory: \\n\");\n for (Map.Entry<String, Item> me : inventory.entrySet()) {\n msg += \" item: \" + me.getKey() + \" description: \" + me.getValue().getDescription() + \"\\n\";\n }\n return msg;\n }", "public String inventoryItemId() {\n return this.innerProperties() == null ? null : this.innerProperties().inventoryItemId();\n }", "public Location getInventoryLocation() \n\t{\n\t\treturn factoryInventoryLocation;\n\t}", "@Override\n public String toString() {\n return \"Ingredient'\" + ingredientName + '\\'' +\n \": amount='\" + amount + '\\'';\n }", "public Inventory getEquipment() {\n return equipment;\n }", "@Override\n\tpublic String getInventoryName(){\n\t return ModBlocks.ModularCrate.getUnlocalizedName() + \".name\";\n\t}", "@Override\r\n public ItemStack getCurrentArmor(int slotIn)\r\n {\n return null;\r\n }", "@GetMapping ( BASE_PATH + \"/inventory\" )\n public ResponseEntity getInventory () {\n final Inventory inventory = inventoryService.getInventory();\n return new ResponseEntity( inventory, HttpStatus.OK );\n }", "public List<Inventory> getInventory();", "public static ItemIngredient of(ItemStack input) {\n\t\treturn new ItemStackIngredient(input);\n\t}", "public int getInventoryFull ()\n {\n return (inventoryFull);\n }", "public Product getProduct(int i){\n return inventory.get(i);\n }", "public ArrayList<Stock> getAvaiableStock (){\n\t\treturn inventory;\n\t}", "public String getPlayerInventory() {\r\n String res = \"You have the following items in your inventory:\" + System.getProperty(\"line.separator\");\r\n for (int i = 0; i < player.getInventory().size(); i++) {\r\n res += i + \": \" + player.getInventory().get(i).toString() + System.getProperty(\"line.separator\");\r\n }\r\n return res;\r\n }", "public int getSizeInventory()\n {\n return this.furnaceItemStacks.length;\n }", "public String toString()\n\t{\n\t\treturn ingredients;\n\t}", "public Number getInventoryItemId() {\n return (Number)getAttributeInternal(INVENTORYITEMID);\n }", "public Number getInventoryItemId() {\n return (Number)getAttributeInternal(INVENTORYITEMID);\n }", "@Override\r\n\tpublic ItemStack getCraftingResult(InventoryCrafting inv) {\r\n\t\tItemStack result = super.getCraftingResult(inv);\r\n\t\tif (!result.isEmpty()) {\r\n\t\t\tfor (int i = 0; i < inv.getSizeInventory(); i++) {\r\n\t\t\t\tItemStack s = inv.getStackInSlot(i);\r\n\t\t\t\tif (result.getItem() == s.getItem()) {\r\n\t\t\t\t\tItemHelper.setUpgrades(result, ItemHelper.getUpgrades(s) + 1);\r\n\t\t\t\t\tresult.setItemDamage(s.getItemDamage());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public void onInventoryChanged();", "List<SimpleInventory> getInventories();", "@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}", "public String getOrganizationInventoryName() {\n return organizationInventoryName;\n }", "ItemStack getEggItem(IGeneticMob geneticMob);", "public Inventory() {\n this.SIZE = DEFAULT_SIZE;\n this.ITEMS = new ArrayList<>();\n }", "public Inventory searchForItem (TheGroceryStore g, Inventory i, String key);", "public void setInventory(int inventory){\r\n inventoryNumber += inventory;\r\n }", "@NotNull\n @Override\n public Inventory getInventory() {\n Inventory inventory = Bukkit.createInventory(this, missionType == Mission.MissionType.ONCE ? IridiumSkyblock.getInstance().getInventories().missionsGUISize : 27, StringUtils.color(\"&7Island Missions\"));\n\n InventoryUtils.fillInventory(inventory);\n\n if (missionType == Mission.MissionType.DAILY) {\n HashMap<String, Mission> missions = IridiumSkyblock.getInstance().getIslandManager().getDailyIslandMissions(island);\n int i = 0;\n\n for (String key : missions.keySet()) {\n Mission mission = IridiumSkyblock.getInstance().getMissionsList().get(key);\n List<Placeholder> placeholders = new ArrayList<>();\n\n for (int j = 1; j <= mission.getMissions().size(); j++) {\n IslandMission islandMission = IridiumSkyblock.getInstance().getIslandManager().getIslandMission(island, mission, key, j);\n placeholders.add(new Placeholder(\"progress_\" + j, String.valueOf(islandMission.getProgress())));\n }\n\n inventory.setItem(IridiumSkyblock.getInstance().getMissions().dailySlots.get(i), ItemStackUtils.makeItem(mission.getItem(), placeholders));\n i++;\n }\n } else {\n for (String key : IridiumSkyblock.getInstance().getMissionsList().keySet()) {\n Mission mission = IridiumSkyblock.getInstance().getMissionsList().get(key);\n if (mission.getMissionType() != Mission.MissionType.ONCE) continue;\n List<Placeholder> placeholders = new ArrayList<>();\n\n for (int j = 1; j <= mission.getMissions().size(); j++) {\n IslandMission islandMission = IridiumSkyblock.getInstance().getIslandManager().getIslandMission(island, mission, key, j);\n placeholders.add(new Placeholder(\"progress_\" + j, String.valueOf(islandMission.getProgress())));\n IridiumSkyblock.getInstance().getLogger().info(j + \" - \" + islandMission.getProgress());\n }\n\n inventory.setItem(mission.getItem().slot, ItemStackUtils.makeItem(mission.getItem(), placeholders));\n }\n }\n\n return inventory;\n }", "public void addIngredient(Ingredient ingredient) {\n stock.put(ingredient, inventoryMax);\n }", "public String printPlayerInventory() {\r\n\t\t\tif(this.getPlayer().getInventory().getContent().isEmpty()) {\r\n\t\t\t\treturn \"You have no items in your inventory.\" + \"\\n\"\r\n\t\t\t\t\t\t+ \"You can carry \" + this.getPlayer().getCarryCapacity() + \" more units of weight. \\n\"\r\n\t\t\t\t\t\t+ \"You have \" + this.getPlayer().getGold() + \" gold.\";\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\treturn \"Your \" + this.getPlayer().getInventory().printContent()\r\n\t\t\t\t+ \"You can carry \" + this.getPlayer().getCarryCapacity() + \" more units of weight. \\n\"\r\n\t\t\t\t\t\t+ \"You have \" + this.getPlayer().getGold() + \" gold.\";\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}", "public Item getItem(int itemIndex){\n\t\treturn inventoryItems[itemIndex];\n\t}", "@Override\n public String toString () {\n String stock = \"\";\n\n for (int i = 0; i < inventory.size(); i++) {\n\n Product p = inventory.get(i);\n stock += p.toString() + '\\n';\n }\n return stock;\n }", "@Override\n\tpublic void openInventory() {\n\t\t\n\t}", "public ArrayList<Item> getItemList(){\n\t\treturn inventoryList;\n\t}", "@Override\n\tpublic void onInventoryChanged() {\n\t}", "public Integer getStock(int ID) {\r\n\t\treturn inventory.get(ID);\r\n\t}", "public void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}", "public interface IInventoryBase extends IInventory {\n\n @Override\n default public int getInventoryStackLimit() {\n return 64;\n }\n\n @Override\n default public void openInventory(EntityPlayer player) {}\n\n @Override\n default public void closeInventory(EntityPlayer player) {}\n\n @Override\n default public boolean isItemValidForSlot(int index, ItemStack stack) {\n return true;\n }\n\n @Override\n default public int getField(int id) {\n return 0;\n }\n\n @Override\n default public void setField(int id, int value) {}\n\n @Override\n default public int getFieldCount() {\n return 0;\n }\n\n @Override\n default public boolean hasCustomName() {\n return false;\n }\n\n @Override\n default public ITextComponent getDisplayName() {\n return new TextComponentTranslation(getName());\n }\n\n}", "public List<InventoryEntry> getInventoryEntries();", "@Override\n\tpublic int getSizeInventory() {\n\t\treturn 0;\n\t}", "@SuppressWarnings(\"deprecation\")\r\n\t@EventHandler\r\n\tpublic void inventoryClickEvent(InventoryClickEvent e) {\r\n\t\tEntity applier = e.getWhoClicked();\r\n\t\tif (!e.isCancelled()) {\r\n\t\t\tif (applier instanceof Player) {\r\n\t\t\t\tPlayer papplier = (Player) applier;\r\n\t\t\t\t// PlayerInventory pinventory = papplier.getInventory();\r\n\t\t\t\t// inven.put(papplier, pinventory);\r\n\t\t\t\tItemStack item = e.getCurrentItem();\r\n\t\t\t\tItemStack transmog = e.getCursor();\r\n\t\t\t\tString tname = \"\";\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tItemMeta itemMeta = item.getItemMeta();\r\n\t\t\t\t\tArrayList<String> lore1 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore2 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore3 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore4 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore5 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore6 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore7 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> totallore = new ArrayList<String>();\r\n\t\t\t\t\tif (item.getType() != Material.AIR) {\r\n\t\t\t\t\t\t// papplier.sendMessage(\"1\");\r\n\t\t\t\t\t\tif (transmog != null) {\r\n\t\t\t\t\t\t\t// papplier.sendMessage(\"2\");\r\n\t\t\t\t\t\t\tif (item.getType().name().endsWith(\"SWORD\") || item.getType().name().endsWith(\"AXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HELMET\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"SHOVEL\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"CHESTPLATE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"LEGGINGS\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"BOOTS\") || item.getType().name().endsWith(\"BOW\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"PICKAXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HOE\")) {\r\n\t\t\t\t\t\t\t\t// papplier.sendMessage(\"3\");\r\n\t\t\t\t\t\t\t\tif (item.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"4\");\r\n\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"5\");\r\n\t\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"6\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"7\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(Api.transint(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t// + \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tdname.put(item, item.getItemMeta().getDisplayName());\r\n\t\t\t\t\t\t\t\t\t\t\t\tI.put(papplier, Methods.transint(item));\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, true);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"8\");\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"9\");\r\n\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"10\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"11\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"12\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"13\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"14\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"15\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"16\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"17\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanted.put(titem, false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\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\tMethods.removeColor(\r\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\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\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.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\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.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\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.getEnchantmentCategory(\r\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\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\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\"T1\")) {\r\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\tlore1.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T2\")) {\r\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\tlore2.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T3\")) {\r\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\tlore3.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T4\")) {\r\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\tlore4.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T5\")) {\r\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\tlore5.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T6\")) {\r\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\tlore6.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = \"&a\" + item.getType().name()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"21\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tString dname1 = dname.get(item).replace(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(\"&d&l[&b&l&n\" + I.get(papplier) + \"&d&l]\"), \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"22\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"23\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"24\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"25\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"26\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"27\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"28\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\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\tMethods.removeColor(\r\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\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\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.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\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.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\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.getEnchantmentCategory(\r\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\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\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\"T1\")) {\r\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\tlore1.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T2\")) {\r\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\tlore2.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T3\")) {\r\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\tlore3.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T4\")) {\r\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\tlore4.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T5\")) {\r\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\tlore5.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T6\")) {\r\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\tlore6.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = dname1 + \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public currentInventory(Game incomingManager) {\n\t\tmanager = incomingManager;\n\t\tinitialize();\n\t\tinvWindow.setVisible(true);\n\t}", "public static ItemIngredient of(Item input) {\n\t\treturn new ItemStackIngredient(new ItemStack(input, 1, OreDictionary.WILDCARD_VALUE));\n\t}", "@Override\n\t\tpublic String toString() {\n\t\t\tString theList = \"\";\n\t\t\tfor (int i = 0; i < this.getSize(); i++) {\n\t\t\t\ttheList += \"Ingredient \" + (i+1) + \": \" + this.getList()[i].toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn theList;\n\t\t}", "public abstract List<String> getInventory();", "public String toString() {\n System.out.println(\"Inventory: \");\n String str = \"\";\n for(int i = 0; i < numItems; i++) {\n if(inventory[i]!= null) {\n str += inventory[i].toString() + \"\\n\";\n }\n }\n return str;\n }", "private Inventory createInventory() {\n\n\t\tInventory inv;\n\n\t\tif (guiMetadata.getInvType() == InventoryType.CHEST) {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getSize(), guiMetadata.getGuiName());\n\t\t} else {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getInvType(), guiMetadata.getGuiName());\n\t\t}\n\n\t\treturn inv;\n\t}", "@Override\r\n\tpublic ItemStack getCraftingResult(InventoryCrafting par1InventoryCrafting) {\r\n\t\tItemStack itemstack = this.getRecipeOutput().copy();\r\n\r\n\t\tif (this.field_92101_f) {\r\n\t\t\tfor (int i = 0; i < par1InventoryCrafting.getSizeInventory(); ++i) {\r\n\t\t\t\tItemStack itemstack1 = par1InventoryCrafting.getStackInSlot(i);\r\n\r\n\t\t\t\tif (itemstack1 != null && itemstack1.hasTagCompound()) {\r\n\t\t\t\t\titemstack.setTagCompound((NBTTagCompound) itemstack1.stackTagCompound.copy());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn itemstack;\r\n\t}", "@Override\n\tpublic void onInventoryChanged() {\n\t\tsuper.onInventoryChanged();\n\t}", "ItemStack getItem();", "public String toString() {\n\tString result = \"\";\n for (int x = 0; x < list.size(); x++) {\n result += list.get(x).toString();\n }\n\treturn \"Inventory: \\n\" + result + \"\\n\";\n}", "public List<InventoryEntity> getAllInventory() {\n\t\treturn inventoryDao.getAllInventory();\n\t}", "public List<Ingrediente> verIngredientes(){\n\t\t// Implementar\n\t\treturn ingredientes;\n\t}", "public void getNutritionixIngredientInfo(Recipe curRecipe) {\r\n\r\n ArrayList<NutritionixInfo> nutritionixIngredientList = new ArrayList<NutritionixInfo>();\r\n List<RecipeIngredient> ingredients = this.recipe.getIngredients();\r\n\r\n try {\r\n\r\n // Use the Nutritionix API to lookup nutrition facts info for each one of our ingredients\r\n for (RecipeIngredient ingredient : ingredients) {\r\n String ingredientName = ingredient.getIngredient().getIngredientName();\r\n nutritionixIngredientList.add(nutritionixBean.searchForIngredient(ingredientName, 0, 1));\r\n }\r\n\r\n // Calculate and set the nutrition attributes for this class\r\n for (RecipeIngredient ingredient : ingredients) {\r\n int servings = Math.round(ingredient.getIngredientAmount());\r\n for (NutritionixInfo ni : nutritionixIngredientList) {\r\n this.setCalories(servings * (this.getCalories() + ni.getNfCalories()));\r\n this.setCaloriesFromFat(servings * (this.getCaloriesFromFat() + ni.getNfCaloriesFromFat()));\r\n this.setCholesterol(servings * (this.getCholesterol() + ni.getNfCholesterol()));\r\n this.setDietaryFiber(servings * (this.getDietaryFiber() + ni.getNfDietaryFiber()));\r\n this.setProtein(servings * (this.getProtein() + ni.getNfProtein()));\r\n this.setSaturatedFat(servings * (this.getSaturatedFat() + ni.getNfSaturatedFat()));\r\n this.setSodium(servings * (this.getSodium() + ni.getNfSodium()));\r\n this.setSugars(servings * (this.getSugars() + ni.getNfSugars()));\r\n this.setTotalCarbohydrates(servings * (this.getTotalCarbohydrates() + ni.getNfTotalCarbohydrate()));\r\n this.setTotalFat(servings * (this.getTotalFat() + ni.getNfTotalFat()));\r\n this.setTransFat(servings * (this.getTransFat() + ni.getNfTransFat()));\r\n\r\n this.setCalciumPercentage(servings * (this.getCalciumPercentage() + ni.getNfCalciumDv()));\r\n this.setIronPercentage(servings * (this.getIronPercentage() + ni.getNfIronDv()));\r\n this.setVitaminAPercentage(servings * (this.getVitaminAPercentage() + ni.getNfVitaminADv()));\r\n this.setVitaminCPercentage(servings * (this.getVitaminCPercentage() + ni.getNfVitaminCDv()));\r\n }\r\n }\r\n\r\n } catch (MalformedURLException ex) {\r\n Logger.getLogger(ViewRecipeBean.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (IOException ex) {\r\n Logger.getLogger(ViewRecipeBean.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(ViewRecipeBean.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public Items getItem(String name)\n {\n return Inventory.get(name);\n }", "public POGOProtos.Rpc.HoloInventoryItemProto.Builder getInventoryItemDataBuilder() {\n return getInventoryItemDataFieldBuilder().getBuilder();\n }", "Set<String> getInventory();", "private void drawInventory() {\n Texture highlight = createInventoryHighlight();\n InventoryComponent inventory = gameWorld.getHero().getInventory();\n\n float originX = ((VIRTUAL_HEIGHT * Gdx.graphics.getWidth() / Gdx.graphics.getHeight()) / 2) - (inventory.getSize() * ITEM_BACKGROUND_SIZE) / 2;\n\n Item[] items = inventory.getItems();\n for (int i = 0; i < inventory.getSize(); i++) {\n hudBatch.draw(background, originX + i * ITEM_BACKGROUND_SIZE, 0, ITEM_BACKGROUND_SIZE, ITEM_BACKGROUND_SIZE);\n if (items[i] != null) {\n if (inventory.getSelectedItem() != null && items[i] == inventory.getSelectedItem()) {\n hudBatch.draw(highlight, originX + i * ITEM_BACKGROUND_SIZE, 0, ITEM_BACKGROUND_SIZE, ITEM_BACKGROUND_SIZE / 12);\n }\n float itemOffset = ITEM_BACKGROUND_SIZE / 2 - calculateItemWidth(items[i]) / 2;\n hudBatch.draw(items[i].getTexture(), (originX + i * INVENTORY_ITEM_SIZE) + itemOffset, 0, calculateItemWidth(items[i]), INVENTORY_ITEM_SIZE);\n }\n }\n }", "@EventHandler\n public void onInventoryClick(InventoryClickEvent e) {\n // Check if it is one of our inventories\n if (!(e.getInventory().getHolder() instanceof InventoryEvent)) return;\n\n // Cancel the event so the player can't take the item\n e.setCancelled(true);\n\n // Check if it was air or null\n if (e.getCurrentItem() == null || e.getCurrentItem().getType() == Material.AIR) return;\n\n // Get the sign in progress\n ShopSign cur = null;\n for( ShopSign sign : signs) {\n if(sign.owner.equalsIgnoreCase(e.getWhoClicked().getUniqueId().toString())) {\n cur = sign;\n break;\n }\n }\n\n // Check if cur is null\n if(cur == null) {\n return;\n }\n\n // Check if the sign is done\n if(cur.done) {\n return;\n }\n\n // Set the can remove flag to true\n can_remove = true;\n\n // Get the player\n HumanEntity player = e.getWhoClicked();\n\n // Get the inventory that was clicked\n Inventory inv = clone_inv(e.getClickedInventory(), e.getView().getTitle());\n\n // Get the clicked item\n ItemStack clicked = e.getCurrentItem();\n ItemMeta clicked_meta = clicked.getItemMeta();\n\n // Check if it was exit\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"exit\") && e.getRawSlot() == 0) {\n // Remove the in progress sign\n signs.remove(cur);\n\n e.getWhoClicked().closeInventory();\n return;\n }\n\n // Make sure it's not removed when switching the UI\n can_remove = false;\n\n // Check if it was to proceed\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"next\") && e.getRawSlot() == 8) {\n if(e.getView().getTitle().equalsIgnoreCase(\"Item Amount\")) {\n player.openInventory(itemPrice);\n } else {\n player.sendMessage(\"Now right click on a chest to select it!\");\n player.closeInventory();\n }\n return;\n }\n\n // Check if it is buying or selling\n else if(e.getView().getTitle().equalsIgnoreCase(\"Selling or Buying\")) {\n // If it was selling\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"Buy\") && e.getRawSlot() == 5) {\n cur.selling = false;\n }\n // If it was buying\n else if(clicked_meta.getDisplayName().equalsIgnoreCase(\"Sell\") && e.getRawSlot() == 3) {\n cur.selling = true;\n }\n\n inv = clone_inv(itemAmount, \"Item Amount\");\n inv.setItem(4, cur.item);\n player.openInventory(inv);\n }\n\n // Check if it was an increase or decrease in amount\n else if(e.getView().getTitle().equalsIgnoreCase(\"Item Amount\")) {\n // If it was green wool\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"More\") && e.getRawSlot() == 5) {\n // Make sure were not at the max stack size\n if(cur.item.getAmount() == cur.item.getMaxStackSize()) {\n return;\n }\n\n // Add one to the amount of the in progress sign\n cur.item.setAmount(cur.item.getAmount()+1);\n\n // Update the ui\n inv.setItem(4, cur.item);\n player.openInventory(inv);\n return;\n }\n\n // If it was red wool\n else if(clicked_meta.getDisplayName().equalsIgnoreCase(\"Less\") && e.getRawSlot() == 3) {\n // Make sure were not at the stack minimum\n if(cur.item.getAmount() == 1) {\n return;\n }\n\n // Subtract one from the amount of the in progress sign\n cur.item.setAmount(cur.item.getAmount()-1);\n\n // Update the ui\n inv.setItem(4, cur.item);\n player.openInventory(inv);\n return;\n }\n }\n\n // Check if we are changing the price\n else if(e.getView().getTitle().equalsIgnoreCase(\"Item Price\")) {\n // If it was green wool\n if(clicked_meta.getDisplayName().equalsIgnoreCase(\"More\") && e.getRawSlot() == 5) {\n // Make sure were not at the max stack size\n if(cur.price == 64) {\n return;\n }\n\n // Add one to the amount of the in progress sign\n cur.price++;\n\n // Update the ui\n inv.setItem(4, new ItemStack(Material.GOLD_INGOT, cur.price));\n player.openInventory(inv);\n return;\n }\n\n // If it was red wool\n else if(clicked_meta.getDisplayName().equalsIgnoreCase(\"Less\") && e.getRawSlot() == 3) {\n // Make sure were not at the stack minimum\n if(cur.price == 1) {\n return;\n }\n\n // Subtract one from the amount of the in progress sign\n cur.price--;\n\n // Update the ui\n inv.setItem(4, new ItemStack(Material.GOLD_INGOT, cur.price));\n player.openInventory(inv);\n return;\n }\n }\n\n // Allow removal again\n can_remove = true;\n }", "public ArrayList<Item> getList() {\r\n\t\treturn inventory;\r\n\t}", "public void addIngredientQuantity(Ingredient ingredient, Integer addedValue){\n\t\tbeverageInventoryMap.put(ingredient, getInventoryForAIngredient(ingredient) + addedValue);\n\t}", "public Inventory() {\r\n invPower = 0;\r\n invDefense = 0;\r\n invSpeed = 0;\r\n invAwareness = 0;\r\n treasures = new ArrayList<>();\r\n }", "public int getSizeInventory()\n {\n return this.slotsCount;\n }", "@java.lang.Override\n public POGOProtos.Rpc.HoloInventoryItemProto getInventoryItemData() {\n if (inventoryItemCase_ == 3) {\n return (POGOProtos.Rpc.HoloInventoryItemProto) inventoryItem_;\n }\n return POGOProtos.Rpc.HoloInventoryItemProto.getDefaultInstance();\n }", "public ItemStack getStackInSlot(int p_70301_1_)\n {\n return p_70301_1_ >= 0 && p_70301_1_ < this.inventoryContents.length ? this.inventoryContents[p_70301_1_] : null;\n }", "public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }", "public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }", "public int getSizeInventory() {\n\t\treturn this.slots.length;\n\t}", "public Inventory getEnchantInventory(Player p){\n Inventory inv = Bukkit.createInventory(null, 27, \"Enchant Pickaxe\");\n for(CustomEnchantment ce : enchants.keySet()){\n ItemStack item = new ItemStack(ce.getIcon());\n ItemMeta meta = item.getItemMeta();\n meta.setDisplayName(ce.getColor() + ce.getDisplayName());\n List<String> lore = new ArrayList<>();\n lore.add(\"\");\n lore.add(Changeables.CHAT + \"Current Level: \" + Changeables.CHAT_INFO + getEnchantLevel(ce, p));\n lore.add(Changeables.CHAT + \"Max Level: \" + Changeables.CHAT_INFO + ce.getMaxLevel());\n lore.add(Changeables.CHAT + \"Current Price: \" + Changeables.CHAT_INFO + ce.getPrice(getEnchantLevel(ce, p)));\n lore.add(\"\");\n lore.add(Changeables.CHAT + \"Left Click to \" + Changeables.CHAT_INFO + \" Buy 1\");\n lore.add(Changeables.CHAT + \"Right Click to \" + Changeables.CHAT_INFO + \" Buy Max\");\n meta.setLore(lore);\n item.setItemMeta(meta);\n inv.setItem(enchants.get(ce), item);\n }\n\n\n\n\n\n return inv;\n }", "public String getDescription() {return \"Use an item in your inventory\"; }", "@EventHandler(priority = EventPriority.NORMAL)\n public void onInventoryClick(InventoryClickEvent event) {\n Player player = (Player) event.getWhoClicked();\n if (event.getInventory().getTitle().contains(\"Recipe\") && event.getCurrentItem() != null) {\n List<Recipe> recipes = Bukkit.getRecipesFor(event.getCurrentItem());\n if (recipes.size() > 0) {\n DisplayThread.showRecipes(player, recipes);\n }\n event.setCancelled(true);\n }\n }", "@Override\t\n\tpublic InventoryObjectState getObjectsCurrentState();", "public ItemStack getItem() {\n return this.item;\n }", "public Inventory () {\n weaponsInventory = new ArrayList<>();\n pointInventory = 0;\n lenInventory = 0;\n }", "public String getInventoryCod() {\n return (String)getAttributeInternal(INVENTORYCOD);\n }" ]
[ "0.738529", "0.73724484", "0.7306059", "0.72603905", "0.69304574", "0.69198275", "0.6681486", "0.66559684", "0.66499674", "0.65851045", "0.6565348", "0.65499353", "0.65213895", "0.6503511", "0.6468907", "0.64429927", "0.6399593", "0.63983315", "0.63908386", "0.63729703", "0.63380045", "0.6319098", "0.6313308", "0.63121754", "0.6284729", "0.62489724", "0.62258226", "0.622164", "0.6189163", "0.61852986", "0.6165233", "0.6154101", "0.6141833", "0.61417085", "0.61380696", "0.61300504", "0.61284465", "0.61237955", "0.6115883", "0.610528", "0.6091124", "0.60846734", "0.60846734", "0.60741293", "0.60655266", "0.6055081", "0.6053433", "0.6041586", "0.6038443", "0.60222805", "0.6011844", "0.5984948", "0.5983905", "0.5968235", "0.5959143", "0.59555733", "0.59507346", "0.5930157", "0.5923148", "0.59209794", "0.5895374", "0.5895171", "0.58919966", "0.58918643", "0.58751416", "0.5871305", "0.5870168", "0.5868945", "0.58641094", "0.58588", "0.58433074", "0.58431673", "0.58410597", "0.58395386", "0.5832711", "0.5826789", "0.58252275", "0.58167386", "0.5815976", "0.5810876", "0.5810117", "0.58041996", "0.5801019", "0.5786778", "0.57844126", "0.5782738", "0.57740486", "0.5770475", "0.57442945", "0.57349783", "0.57339936", "0.57339936", "0.57321745", "0.5730891", "0.57281274", "0.5712238", "0.57062244", "0.5705714", "0.5686749", "0.56829405" ]
0.77972656
0
Get user display name from a system name
@Override public String getBeverageDisplayName(String beverage) throws BeverageNotSupportedException { if(!beverageNameVsDisplayNameMap.containsKey(beverage)){ throw new BeverageNotSupportedException(String.format(Messages.NOT_SUPPORTED, beverage)); } return beverageNameVsDisplayNameMap.get(beverage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCurrentUserDisplayName() throws Exception;", "public static String getUserDisplayName() {\r\n return getUsername();\r\n }", "String getDisplay_name();", "public static String makeSystemName(String displayName) {\n\t\treturn displayName.toLowerCase().replaceAll(\"\\\\s+\", \"\");\n\t}", "String realmDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "String getUserCnName(String userName);", "private String getUserConfiguredDeviceName() {\n\t\tString nameFromSystemDevice = Settings.Secure.getString(getContentResolver(), \"device_name\");\n\t\tif (!isEmpty(nameFromSystemDevice)) return nameFromSystemDevice;\n\t\treturn null;\n\t}", "String displayName();", "String displayName();", "public String getUserSciper() {\n String sciper = \"\";\n try {\n sciper = fAuth.getCurrentUser().getDisplayName();\n } catch (NullPointerException e) {\n e.printStackTrace();\n Toast.makeText(this, R.string.toast_no_connection, Toast.LENGTH_SHORT)\n .show();\n return \"\";\n }\n return sciper;\n }", "public String getUserDisplayName() throws Exception\r\n {\n return null;\r\n }", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "public static String onGetLocalUserName(Context context){\n return PreferencesUtils.getString(context, Config.KEY_OF_USER_NAME, \"\");\n }", "public String getUserRealName() {\r\n return userRealName;\r\n }", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public String getSystemName();", "public String getFriendlyUsername(Context ctx) {\n User user = DBHandler.getInstance(ctx).getUser(getPartnerId());\n String name = getState().toString();\n if (user == null || getState() != State.Open) {\n if (getState() != State.Open) {\n if(getState() == State.Close) {\n name = name + \" - \" + AndroidUtils.getFormattedTime(getTime());\n } else {\n name = ctx.getString(R.string.todays_match);\n }\n }\n } else {\n name = user.getFullName();\n }\n return name;\n }", "public String getUserRealname() {\n return userRealname;\n }", "@AutoEscape\n\tpublic String getUser_name();", "public static String getOsUserName() {\n\n return System.getProperty(\"user.name\");\n }", "java.lang.String getUser();", "public static String getUserName (String name) {\r\n\r\n char intial = name.charAt (0);\r\n String intialString = \"\";\r\n intialString = intialString.valueOf (intial);\r\n name = intialString.toUpperCase () + name;\r\n\r\n return name;\r\n }", "public String getUserDisplayName(String userId) {\n return \"Artichoke, Arty\";\n }", "static String getUserName() {\n return System.getProperty(\"user.name\");\n }", "String fullName();", "public String getDisplayName () throws java.io.IOException, com.linar.jintegra.AutomationException;", "String getUserName();", "String getUserName();", "private void getUserName() {\n if (mAuth.getCurrentUser() != null) {\n nameOfCurrentUser = mAuth.getCurrentUser().getDisplayName();\n Log.d(TAG, \"getUserName: getDisplayName is not null\");\n if (nameOfCurrentUser != null && nameOfCurrentUser.contains(\" \")) {\n String[] nameArray = nameOfCurrentUser.split(\" \");\n personalWelcomeMessage.setText(\"Hello, \" + nameArray[0]);\n Log.d(TAG, \"Name is: \" + personalWelcomeMessage.getText().toString());\n }\n else if (nameOfCurrentUser != null && !nameOfCurrentUser.contains(\" \")) {\n personalWelcomeMessage.setText(\"Hello, \" + nameOfCurrentUser);\n Log.d(TAG, \"Name is: \" + personalWelcomeMessage.getText().toString());\n }\n else if (nameOfCurrentUser==null){\n personalWelcomeMessage.setText(\"Hello\");\n }\n }\n }", "public static String getCurrentUserFullName() {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n String username = getCurrentUsername();\n User user = directoryManager.getUserByUsername(username);\n if (user != null && user.getFirstName() != null && user.getFirstName().trim().length() > 0) {\n return user.getFirstName() + \" \" + user.getLastName();\n } else {\n return username;\n }\n }", "String intermediateSystemName();", "@Override\n public CharSequence getOrganizationNameForUser(int userHandle) {\n if (!mHasFeature) {\n return null;\n }\n Preconditions.checkArgumentNonnegative(userHandle, \"Invalid userId\");\n\n final CallerIdentity caller = getCallerIdentity();\n Preconditions.checkCallAuthorization(hasFullCrossUsersPermission(caller, userHandle));\n Preconditions.checkCallAuthorization(canManageUsers(caller));\n Preconditions.checkCallAuthorization(isManagedProfile(userHandle),\n \"You can not get organization name outside a managed profile, userId = %d\",\n userHandle);\n\n synchronized (getLockObject()) {\n ActiveAdmin profileOwner = getProfileOwnerAdminLocked(userHandle);\n return (profileOwner != null)\n ? profileOwner.organizationName\n : null;\n }\n }", "public String getDisplayName() {\n if (!TextUtils.isEmpty(mDisplayName)) {\n return mDisplayName;\n }\n if (isVoicemail()) {\n return mContext.getResources().getString(R.string.voicemail);\n } else {\n String displayName = TelecomUtils.getFormattedNumber(mContext, mNumber);\n if (TextUtils.isEmpty(displayName)) {\n displayName = mContext.getString(R.string.unknown);\n }\n return displayName;\n }\n }", "@Override\n\tpublic String getGivenName() {\n\t\treturn user.getUserInfo().getGivenName();\n\t}", "public static String getUserName(long requestorId)\n\t {\n\t String fullName = StringPool.BLANK;\n\t try\n\t {\n\t User user = UserLocalServiceUtil.getUserById(requestorId);\n\t fullName = user.getFirstName() + StringPool.SPACE + user.getLastName();\n\t } catch (PortalException e)\n\t {\n\t LOGGER.error(\"Failed to find user details...\" + e.getMessage());\n\t } catch (SystemException e)\n\t {\n\t LOGGER.error(\"User not exist....\" + e.getMessage());\n\t }\n\t return fullName;\n\t }", "String getUserUsername();", "String getUser();", "String getUser();", "String usernameLabel();", "String getPreferredName();", "String getSupName();", "public String getDisplayName()\n {\n return getString(\"DisplayName\");\n }", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public final java.lang.String getDisplayName() { throw new RuntimeException(\"Stub!\"); }", "public final java.lang.String getDisplayName(java.util.Locale locale) { throw new RuntimeException(\"Stub!\"); }", "public abstract String getSystemName();", "public static String getSystemName()\n {\n return sSysName;\n }", "java.lang.String getUserDN();", "public String getStrdisplayname() {\n return strdisplayname;\n }", "public static String getDisplayName(String fieldName)\n\t{\n\t\tString displayName = null;\n\n\t\tif(StringUtil.isInvalidString(fieldName))\n\t\t{\n\t\t\treturn fieldName;\n\t\t}\n\n\t\tint indexOfSeparator = fieldName.indexOf(MODULE_FIELD_SEPARATOR);\n\n\t\tif(indexOfSeparator==-1)\n\t\t{\n\t\t\treturn fieldName;\n\t\t}\n\n\t\tdisplayName = fieldName.substring(indexOfSeparator+1);\n\n\t\treturn displayName;\n\t}", "public static String getCurrentUser() {\n\t\treturn System.getProperty(\"user.name\");\n\t}", "@Override\r\n\tpublic String getFullname(String userId) {\n\t\tif (conn == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tString name = null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT username FROM users WHERE user_id = ? \";\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql);\r\n\t\t\tstatement.setString(1, userId);\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tname = rs.getString(\"username\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "public java.lang.String getDisplayName() {\n java.lang.Object ref = displayName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n displayName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public static String getShortName(String longName) {\n StringTokenizer strtok = new StringTokenizer(longName,\",\");\n String shortUserName = null;\n if (strtok.countTokens() > 1) {\n while ((null!=strtok) && (strtok.hasMoreTokens())) {\n\n String mytok1 = strtok.nextToken();\n if (null!=mytok1) {\n //filter for the shortened name\n StringTokenizer innerToken = new StringTokenizer(mytok1,\"=\");\n if ((null!=innerToken)&&(innerToken.countTokens()==2)) {\n String key = innerToken.nextToken();\n if (null!=key) {\n if ((key.equalsIgnoreCase(\"cn\"))||(key.equalsIgnoreCase(\"uid\"))) {\n shortUserName = innerToken.nextToken();\n break;\n }\n }\n }\n } //end:if (null!=mytok1) {\n } //end: while\n } else if (longName.contains(\"@\")) {\n shortUserName = longName.substring(0, longName.indexOf(\"@\"));\n }\n return shortUserName;\n }", "private String getLoggedInUserName() {\n try {\n /*\n * Get the user information.\n */\n String userName = ServerUtilities.getServerUserInfo().getName();\n\n if(userName.isEmpty()) {\n return new String(\"Anonymous User\");\n }\n return userName;\n } catch (Exception ignore) {\n }\n\n return new String(\"Anonymous User\");\n }", "public String getName() {\n return user.getName();\n }", "@Override\n\tpublic String getDisplayName() {\n\t\treturn getGivenName() + \" \" + getFamilyName();\n\t}", "String getPname();", "public java.lang.String getDisplayName() {\n java.lang.Object ref = displayName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n displayName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getDisplayName() {\n java.lang.Object ref = displayName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n displayName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract String getMachineUnlocalizedName();", "public String getUserShortName() throws Exception\r\n {\n return null;\r\n }", "@Override\n\tpublic String getUserName() {\n\t\t\n\t\ttry {\n\t\t\treturn UserLocalServiceUtil.getUser(_dataset.getUserId()).getScreenName();\n\t\t} catch (PortalException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SystemException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\treturn \"ERROR\";\n\t\t}\n\t}", "public String getUserTitle() {\n\t\treturn StringUtils.join(userTitle, messages.getString(\"TITLE_SEPARATOR\"));\n\t}", "@Override\n\tpublic String getFamilyName() {\n\t\treturn user.getUserInfo().getFamilyName();\n\t}", "private String getUser(String name) {\n\t\treturn null;\n\t}", "private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }", "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}", "java.lang.String getNickname();", "public String getUserName() {\n\t\treturn phoneText.getText().toString();\n\t}", "private String createDisplayName(User user, String listName) {\n assert ((user != null) && (user.getUsername() != null));\n String name = StringUtils.isNotBlank(user.getName()) ? user.getName() : user.getUsername();\n if (StringUtils.isNotBlank(user.getEmail()) && NAME_AND_EMAIL.equals(listName)) {\n name = name + \" <\" + user.getEmail() + \">\";\n } else if (NAME_AND_USERNAME.equals(listName)) {\n name = name + \" (\" + user.getUsername() + \")\";\n }\n assert (name != null);\n return name;\n }", "private String getLoggedUser() {\n\t\torg.springframework.security.core.userdetails.User user2 = \n\t\t\t\t(org.springframework.security.core.userdetails.User) \n\t\t\t\tSecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\tString name = user2.getUsername();\n\t\treturn name;\n\t}", "com.google.protobuf.ByteString getDisplayNameBytes();", "com.google.protobuf.ByteString getDisplayNameBytes();", "com.google.protobuf.ByteString getDisplayNameBytes();", "com.google.protobuf.ByteString getDisplayNameBytes();", "String getLastName();", "String getLastName();", "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 java.lang.String getDisplayName(android.icu.util.ULocale locale) { throw new RuntimeException(\"Stub!\"); }", "String simpleName();", "public String displayName() {\r\n\t\tString name = \"Unknown\";\r\n\t\tif(EUR.equals(this)) {\r\n\t\t\tname = \"Europe\";\r\n\t\t} else if(JPN.equals(this)) {\r\n\t\t\tname = \"Japan\";\r\n\t\t} else if(USA.equals(this)) {\r\n\t\t\tname = \"USA\";\r\n\t\t} else if(KOR.equals(this)) {\r\n\t\t\tname = \"Korea\";\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "private String getQualifiedMetricName(String metricName) {\n try {\n if (SecurityUtils.isAuthenticationEnabled(mContext.getClusterConf())\n && mContext.getUserState().getUser() != null) {\n return Metric.getMetricNameWithTags(metricName, MetricInfo.TAG_USER,\n mContext.getUserState().getUser().getName());\n } else {\n return metricName;\n }\n } catch (IOException e) {\n return metricName;\n }\n }", "java.lang.String getLastName();", "java.lang.String getLastName();" ]
[ "0.79209656", "0.7336115", "0.71687055", "0.70793414", "0.70163125", "0.6935619", "0.6935619", "0.6935619", "0.6935619", "0.6935619", "0.6935619", "0.68740964", "0.6838545", "0.6752833", "0.6752833", "0.67290735", "0.6665537", "0.66623014", "0.66623014", "0.66623014", "0.66623014", "0.66623014", "0.66623014", "0.6649124", "0.6592672", "0.65728843", "0.65728843", "0.65728843", "0.65672785", "0.6558456", "0.6553083", "0.6546531", "0.64974755", "0.64439046", "0.64345706", "0.64333034", "0.64224017", "0.6402439", "0.63943946", "0.6389641", "0.6389641", "0.63754076", "0.6357704", "0.6327117", "0.6306411", "0.62894875", "0.62588966", "0.6254303", "0.6229186", "0.62206364", "0.62206364", "0.6211533", "0.6209984", "0.6205431", "0.6156639", "0.61565775", "0.61565775", "0.61565775", "0.61565775", "0.61387897", "0.61182535", "0.61127317", "0.6104358", "0.6097317", "0.6070529", "0.60676473", "0.6067082", "0.6066055", "0.60587376", "0.6053369", "0.6043696", "0.60166186", "0.6014529", "0.6013341", "0.6008989", "0.6008989", "0.6002721", "0.6001245", "0.59889984", "0.5987636", "0.5984454", "0.59728116", "0.596963", "0.5965909", "0.59624815", "0.59596205", "0.5957717", "0.5957495", "0.59574246", "0.59574246", "0.59574246", "0.59574246", "0.5955614", "0.5955614", "0.5943987", "0.5943525", "0.59377587", "0.592999", "0.59282273", "0.59280294", "0.59280294" ]
0.0
-1
To Remove an Ingredient Quantity
@Override public void removeIngredientQuantity(Ingredient ingredient, Integer removedValue){ Integer newValue = getInventoryForAIngredient(ingredient) - removedValue; beverageInventoryMap.put(ingredient, newValue); if(newValue<Constants.CRITICAL_LIMIT){ System.out.println(String.format(Messages.INGREDIENT_RUNNING_LOW, ingredient.getDisplayName())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetValueQuantity();", "void removeStock(int i);", "public void decreaseQuantity() {\n this.quantity--;\n this.updateTotalPrice();\n }", "public void unsetQuantity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(QUANTITY$10, 0);\n }\n }", "public void removeStock(int qtearajouter) {\n\t\tthis.stock -= qtearajouter;\n\t}", "public void reduceQuantity(Integer numToRemove) throws OutOfStockException {\n if (numToRemove > this.quantity) {\n throw new OutOfStockException(\"There are less than \" + numToRemove + \" items in stock\");\n }\n this.quantity = this.quantity - numToRemove;\n }", "void removeProduct(int position) throws ProductNotFoundException;", "public void removeItem(String itemName, int Qty) {\n if (checkExist(itemName, Qty) == true) {\n int i;\n //System.out.println(checkExist(itemName));\n for (i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n int a = Integer.parseInt((String) removedItem.get(\"Amount\"));\n removedItem.put(\"Amount\", a - Qty);\n\n if (a - Qty < 1) {\n removedItem.put(\"Existence\", \"N\");\n }\n }\n }\n } else {\n System.out.println(\"Item \" + itemName + \" is not available.\");\n for (int i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n System.out.println(\"Since item \" + itemName + \"'s amout is not enough, try less amount.\");\n }\n }\n }\n outPutFile();\n }", "public void removeSimulasi(ActionEvent event) {\n SimulasiBean smb = (SimulasiBean) event.getComponent().getAttributes().get(\"itemDelete\");\n //setIdList((String)event.getComponent().getAttributes().get(\"itemDelete\"));\n System.out.println(smb.toString());\n listSImulasi.remove(smb);\n BigDecimal t = BigDecimal.ZERO;\n for (SimulasiBean o : listSImulasi) {\n t = t.add((BigDecimal) (o.charge));\n //t = t + (Integer) o.charge;\n }\n setTotal(t);\n }", "public void minusQuantity()\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n if ( quantity == 0 )\n {\n Popup.DisplayError(\"Quantity cannot be negative.\");\n return;\n }\n quantity--;\n quantityTextField.setText(\"\" + quantity);\n\n changeSubtotalTextField();\n }", "public void removeItem(Item iToRemove, int amount) {\n for (Item i : inventory) {\n if (iToRemove.getClass().equals(i.getClass())) {\n int tempQuantity = i.getQuantity() - amount;\n if (tempQuantity > 0) {\n i.setQuantity(tempQuantity);\n } else {\n inventory.remove(i);\n }\n }\n }\n }", "void removeProduct(Product product);", "public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}", "public void remove(int index){\n if (myBasket.size() == 0)\n System.out.println(\"List is empty.\");\n int i = 0 ;\n boolean isFound = false;\n Product toRemove = null;\n for (Product product: myBasket.keySet())\n {\n i++;\n if (i == index && myBasket.get(product) > 0)\n {\n isFound = true;\n toRemove = product;\n break;\n\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index!\");\n\n // now , checking how many of this product is in the basket\n\n else if (myBasket.get(toRemove) > 1){\n System.out.println(\"How many of this product do you want to give back?\");\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n if (num < myBasket.get(toRemove)) {\n totalCost -= toRemove.getPrice() * num;\n myBasket.replace(toRemove,myBasket.get(toRemove) - num);\n for (int j = 0 ; j < num ; j++)\n inventory.updateStock(toRemove , '+');\n }\n else {\n totalCost -= toRemove.getPrice() * myBasket.get(toRemove);\n myBasket.remove(toRemove);\n for (int j = 0 ; j < myBasket.get(toRemove) ; j++)\n inventory.updateStock(toRemove,'+');\n }\n System.out.println(\"Product removed.\");\n }\n\n // there is just one of this product in basket\n\n else {\n totalCost -= toRemove.getPrice();\n myBasket.remove(toRemove);\n System.out.println(\"Product removed.\");\n inventory.updateStock(toRemove , '+');\n }\n }", "public void removeOrder(){\n foods.clear();\n price = 0;\n }", "@FXML\n public void removeIngredFromMeal(){\n if (ingredientsForMeal.getSelectionModel().getSelectedItem() == null){\n mealBox.errorDiaglogBox(\"Remove ingredient\", \"Please select an ingredient to remove\");\n } else {\n try{\n Ingredient ingredientToRemove = ingredientsForMeal.getSelectionModel().getSelectedItem();\n newIngredients.remove(ingredientToRemove);\n } catch (Exception e){\n System.out.println(\"Couldnt remove item from meal\");\n mealBox.errorDiaglogBox(\"Remove ingredient\", \"Error removing ingredient\");\n }\n }\n }", "public void removeQuantidade(String nome, int quantidade) {\n\t\tthis.listaProdutoVenda.replace(nome, this.listaProdutoVenda.get(nome) - quantidade); \t\n\t}", "void removeOrderItem(OrderItem target);", "void removeCartItem(int cartItemId);", "protected abstract void removeItem();", "public void decreaseQuantity(int amount) {\n this.currentQuantity -= amount;\n }", "public void removeItems(Product product, int quantity) throws IllegalArgumentException {\n int qty = quantity;\n \t\t\n if (qty > 0) {\n if (qty <= getNumOfRequestItems()) {\n for (int i = 0; i < qty; i++) {\n this.setRequestValue(getRequestValue() - product.getPrice());\n requestItems.remove(product);\n product.setQuantity(product.getQuantity() + 1);\n }\n }\n } else {\n throw new IllegalArgumentException(\"The number has to be positive.\");\n }\n }", "@Override\r\n public boolean removeProductQuantity(Product product, int quantity) {\r\n int stock;\r\n int i = 0;\r\n for (Product p : this.productList) {\r\n if (p.getId() == product.getId()) {\r\n stock = this.productQuantity.get(i);\r\n\r\n //checks if quantity value is invalid or if not enough stocks\r\n if (quantity <= 0 || stock < quantity) {\r\n this.productQuantity.set(i, 0);\r\n return true;\r\n }\r\n this.productQuantity.set(i, stock - quantity);\r\n return true;\r\n }\r\n i++;\r\n }\r\n return false;\r\n }", "public void removeItem(Carryable g) {\r\n for (int i=0; i<numItems; i++) {\r\n if (cart[i] == g) {\r\n cart[i] = cart[numItems - 1];\r\n numItems -= 1;\r\n return;\r\n }\r\n }\r\n }", "public void removeTotalItem(String item) {\n\n String toDelete = KEY_EXERCISE + \"=?\";\n String[] deleteArguments = new String[] {item};\n db.delete(DATABASE_TABLE_TOTAL, toDelete, deleteArguments);\n }", "private void minusQuantity(TextField source, Clothing clothing) {\n clothing.setCount(-1);\n int quantity = clothing.getCount();\n double totalPriceOfClothing = 0;\n\n for (int i = 0; i < clothingArrayList.size(); i++) {\n double countOfItems = clothingArrayList.get(i).getCount();\n double clothingPricePerUnit = Double.valueOf(clothingArrayList.get(i).getPrice());\n totalPriceOfClothing += clothingPricePerUnit * countOfItems;\n\n }\n source.setText(\"\" + (quantity));\n totalPrices.setText(\"\" + totalPriceOfClothing );\n\n }", "void remove(Price Price);", "public void decreaseStock(int serialNum, int reduction){\n //loop through all Inventory\n for(int i=0; i<this.items.size(); i++){\n //check if inventoryItem has matching serialNumber with specified serialNum\n if(this.items.get(i).getSerialNum()==serialNum){\n //if serial numbers match, reduce inventory by specified amount\n this.items.get(i).removeFromQty(reduction);\n }\n }\n }", "public void removeExtras() {\n Object selected = extraSelected.getSelectionModel().getSelectedItem();\n sandwhich.remove(selected);\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraSelected.getItems().remove(selected);\n extraOptions.getItems().add(selected);\n }", "public void decreaseQuantity(int quantity) {\n\t\tif (quantity < 0) {\n\t\t\tthrow new IllegalArgumentException(\"null barcode\");\n\t\t}\n\t\ttotalNumOfItems -= quantity;\n\t}", "public ItemStack remove(int debug1) {\n/* 104 */ return this.container.removeItem(this.slot, debug1);\n/* */ }", "Cart deleteFromCart(String code, Long quantity, String userId);", "public static void deleteItem()\r\n\t{\r\n\t\tif(receiptList.getSelectedIndex() < listModel.getSize()-4 && receiptList.getSelectedIndex() > -1)\r\n\t\t{\r\n\t\t\tString itemPrice = receiptList.getSelectedValue().substring(0,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treceiptList.getSelectedValue().indexOf(\" \"));\r\n\t\t\t\r\n\t\t\tsubtotalAmount = subtotalAmount - Functions.toAmount(itemPrice);\r\n\t\t\tupdateTotals();\r\n\t\t\t\r\n\t\t\tlistModel.removeElementAt(receiptList.getSelectedIndex());\r\n\t\t\tif(listModel.getSize() == 4)\r\n\t\t\t\tclearReceipt();\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tfor(int count=0; count < 4; count++)\r\n\t\t\t\t\tlistModel.removeElementAt(listModel.getSize()-1);\r\n\t\t\t\tlistModel.addElement(\" \");\r\n\t\t\t\tlistModel.addElement(Functions.toMoney(subtotalAmount) + manualTab(Functions.toMoney(subtotalAmount)) + \"Subtotal \");\r\n\t\t\t\tlistModel.addElement(Functions.toMoney(taxAmount) + manualTab(Functions.toMoney(taxAmount)) + \"Tax\");\r\n\t\t\t\tlistModel.addElement(Functions.toMoney(totalAmount) + manualTab(Functions.toMoney(totalAmount)) + \"Total\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean checkQuantity(Integer numToRemove) {\n return this.quantity >= numToRemove;\n }", "public String removeItem() {\n userFacade.printUsersCart(user);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n //user.getCart().remove(selectedItem);\n userFacade.removeFromCart(user, selectedItem);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n userFacade.printUsersCart(user);\n return \"\";\n }", "private void subtractOneToQuantity() {\n String previousValueString = mQuantityEditText.getText().toString();\n int previousValue;\n if (previousValueString.isEmpty() || previousValueString.equals(\"0\")) {\n return;\n }\n else {\n previousValue = Integer.parseInt(previousValueString);\n mQuantityEditText.setText(String.valueOf(previousValue - 1));\n }\n }", "@NonNull\n public BasketItemBuilder decrementQuantity() {\n this.quantity--;\n return this;\n }", "@Override\r\n public JSONObject removeFood(JSONObject input) {\n int id = (Integer) input.get(\"id\");\r\n\r\n Refrigerator refrigerator = em.find(Refrigerator.class, id);\r\n if (refrigerator != null) {\r\n em.remove(refrigerator);\r\n }\r\n \r\n //Tra ket qua\r\n JSONObject result = new JSONObject();\r\n result.put(\"result\", \"Removed\");\r\n return result;\r\n }", "private void removeProduct() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter Product Id - \");\n\t\t\tint productId = getValidInteger(\"Enter Product Id - \");\n\t\t\twhile (!CartController.getInstance().isProductPresentInCart(\n\t\t\t\t\tproductId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id - \");\n\t\t\t\tproductId = getValidInteger(\"Enter Product Id - \");\n\t\t\t}\n\t\t\tCartController.getInstance().removeProductFromCart(productId);\n\t\t} else {\n\t\t\tDisplayOutput.getInstance().displayOutput(\n\t\t\t\t\t\"\\n-----Cart Is Empty----\\n\");\n\t\t}\n\t}", "@Override\n public void changeQuantity(Product product, int position) {\n changeProductQuantity(product, -1);\n }", "@Override\n\tpublic void removeItem(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*--------------Remove Items here--------------*\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input item id\n\t\t\tSystem.out.print(\"Enter Item Id to delete the item: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.removeItem(session,itemId);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Items Exception: \" +e.getMessage());\n\t\t}\n\t}", "public boolean supprimerProduit(int id, Magasin mag);", "@Override\n\tpublic void ingredientDeleted()\n\t{\n\t\tdrawIngredients(); \n\t}", "public void removeItem(int n)\n {\n items.remove(n);\n }", "protected void removeButtonActionPerformed() {\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t// Initialize controller\n\t\tMenuController mc = new MenuControllerAdapter();\n\n\t\t// Get selected supply type\n\t\tSupply supply = null;\n\t\ttry {\n\t\t\tsupply = item.getSupply(supplyList.getSelectedIndex());\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\t\t}\n\t\t\n\t\t// Remove from item\n\t\ttry {\n\t\t\tmc.removeIngredient(item, supply);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t\n\t\trefreshData();\n\t\t\n\t}", "public void removeIngredient(String type) {\n\t\tMyStack newBurger = new MyStack();\n\t\twhile (myBurger.size() != 0) {\n\t\t\tif (myBurger.peek().equals(type)) {\n\t\t\t\tmyBurger.pop();\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tString ingredient = (String) myBurger.pop();\n\t\t\t\tnewBurger.push(ingredient);\n\t\t\t}\n\t\t}\n\t\twhile (newBurger.size() != 0) {\n\t\t\tString ingredient = (String) newBurger.pop();\n\t\t\tmyBurger.push(ingredient);\n\t\t}\n\t\tif (type.equals(\"Beef\") || type.equals(\"Chicken\") || type.equals(\"Veggie\")) {\n\t\t\tpattyCount--;\n\t\t}\n\t}", "@Override\n\tpublic void removeOrderLine(int cartIndex) {\n\t\t\n\t}", "private static void removeItemFromCart() {\r\n\t\tString itemName = getValidItemNameInput(scanner);\r\n\t\tfor (Iterator<Map.Entry<Product, Integer>> it = cart.getCartProductsEntries().iterator(); it.hasNext();){\r\n\t\t Map.Entry<Product, Integer> item = it.next();\r\n\t\t if( item.getKey().getName().equals(itemName) ) {\r\n\t\t\t it.remove();\r\n\t\t }\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Item removed from the cart successfully\");\r\n\t\tSystem.out.println();\r\n\t}", "public void sell(int number) {\r\n quantity -= number;\r\n }", "public void removeNuclei() {\n int size = nucleiSelected.size();\n if (size > 0) {\n nucleiSelected.remove(size - 1);\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n decrementUpdateCount();\n }\n }", "public void removeSup(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(SUP$4, i);\n }\n }", "public static int removeItem(Basket basket, String item, int quantity) {\n StockItem stockItem = stockList.getStockItem(item);\n if (stockItem == null) {\n System.out.println(\"We don't sell \" + item);\n return 0;\n }\n if (basket.removeFromBasket(stockItem, quantity) == quantity) {\n return stockList.unreservedStock(item, quantity);\n }\n return 0;\n }", "void removeUses(Equipment oldUses);", "public void decreaseQuantity (View view){\n if(quantity == 1) {\n\n Toast.makeText(this, \"You cannot order less than 1 coffee\", Toast.LENGTH_SHORT).show();\n return;\n }\n quantity = quantity - 1;\n displayQuantity(quantity);\n }", "ResponseEntity<Cart> removeCartItem(CartFormData formData);", "private void removeAllWeightBasedProduct(Product product){\n total-= cartItems.get(product.name).cost();\n noOfItems--;\n cartItems.remove(product.name);\n }", "public void removeProduct(ProductBarcode code) throws NoSuchElementException;", "public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }", "@Override\n public void remove(int no) throws Exception {\n \n }", "public void removeItem(int id);", "public void removeByequip_id(long equip_id);", "public void removeItem(int itemToRemove){\n\t\tinventoryItems[itemToRemove] = null;\n\t}", "Quantity getQuantity();", "public void eliminar(Producto producto) throws BusinessErrorHelper;", "public void removeFromInventoryWheels(int amountOfWheels, String inputColor, String inputStandard, int inputType){\n }", "public Item removeItem(int itemIndex) {\n\t\tItem itemRemoved = purchaseList.removeItem(itemIndex);\n\t\tif (itemRemoved instanceof PLUCodedItem || itemRemoved instanceof BarcodedItem) {\n\t\t\tProduct realProduct = this.getProductFromItem(itemRemoved);\n\t\t\tint inventory = this.productDatabase.getInventoryByProduct(realProduct);\n\t\t\tthis.productDatabase.setInventoryByProduct(realProduct, inventory + 1);\n\t\t}\n\t\treturn itemRemoved;\n\t}", "ISlot remove(IStrongSlot target);", "private void btnRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRemoveActionPerformed\n if(tblOrders.getSelectedRow() == -1)\n {\n lblMessage.setText(\"Select Product First\");\n }\n else\n {\n DefaultTableModel model = (DefaultTableModel)tblOrders.getModel();\n int productId = \n Integer.parseInt(String.valueOf(model.getValueAt(tblOrders.getSelectedRow(), 0)));\n \n loggedInCustomer.findLatestOrder().removeOrderLine(productId);\n \n model.removeRow(tblOrders.getSelectedRow());\n \n lblMessage.setText(\"Product Has Been Removed\");\n lblTotalCost.setText(\"£\" + String.format(\"%.02f\",loggedInCustomer.findLatestOrder().getOrderTotal()));\n }\n }", "public void remove(int index)\r\n {\r\n if(index<0 || measurementItems==null || measurementItems.size()<index) return;\r\n measurementItems.remove(index);\r\n \r\n itemsQuantity=(this.getMeasurementItems()!=null)?this.getMeasurementItems().size():0;\r\n }", "public void decreaseQuantity(View view) {\n Log.d(\"Method\", \"decreaseQuantity()\");\n updateQuantity(-1);\n }", "public Builder clearQuantity() {\n \n quantity_ = 0L;\n onChanged();\n return this;\n }", "public Builder clearQuantity() {\n \n quantity_ = 0L;\n onChanged();\n return this;\n }", "public static void removeProduct(Scanner input) {\n\n\t\tif (basket.isEmpty()) {\n\t\t\tSystem.out.println(\"No products in you basket yet.\");\n\t\t\treturn;\n\t\t} else {\n\n\t\t\tSystem.out.println(\"In your basket you have:\");\n\n\t\t\tshowBasket();\n\n\t\t\tSystem.out.println(\"Enter the ID of the product you don't want.\");\n\n\t\t\tint productId = productValidation(input, basket);\n\n\t\t\tint productQuantity = 0;\n\n\t\t\tif (basket.get(productId).getQuantity() > 1) {\n\n\t\t\t\tSystem.out.printf(\"You have more than one %s.%n\", basket.get(productId).getName());\n\t\t\t\tSystem.out.println(\"Press 1 to remove all or 2 to remove some.\");\n\n\t\t\t\tif (TwoOptiosValidation.check(input) == 1) {\n\t\t\t\t\tbasket.remove(productId);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"How many would you like to remove?\");\n\t\t\t\t\tproductQuantity = quantityValidation(input, productId, basket);\n\t\t\t\t\tif (productQuantity == basket.get(productId).getQuantity()) {\n\t\t\t\t\t\tbasket.remove(productId);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbasket.get(productId).setQuantity(basket.get(productId).getQuantity() - productQuantity);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbasket.remove(productId);\n\t\t\t}\n\n\t\t\tProductsList.cancelOrder(productId, productQuantity);\n\n\t\t\tSystem.out.println(\"Done\");\n\n\t\t}\n\n\t\tSystem.out.println();\n\n\t}", "public void deleteCartRow() {\n CarComponent selectedRow = cartTable.getSelectionModel().getSelectedItem();\n cartTable.getItems().remove(selectedRow);\n componentsCart.remove(selectedRow);\n\n updateTotal();\n }", "@SuppressWarnings(\"unused\")\n\tpublic void removeFromShoppingCart(BarcodedItem item, int quantity) {\n\t\t\n\t\tBarcodedProduct prod = ProductDatabases.BARCODED_PRODUCT_DATABASE.get(item.getBarcode());\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tfor (int j = 0; j < SHOPPING_CART_ARRAY.length; j++) {\n\t\t\t\tif (prod.getDescription().equals(SHOPPING_CART_ARRAY[j][0]) && \n\t\t\t\t\t\tInteger.toString(quantity).equals(SHOPPING_CART_ARRAY[j][1])) {\n\t\t\t\t\tSHOPPING_CART_ARRAY[j][0] = null;\n\t\t\t\t\tSHOPPING_CART_ARRAY[j][1] = null;\n\t\t\t\t\ttotalNumOfItems = totalNumOfItems - quantity;\n\t\t\t\t\tdecreaseTotalPayment(item, quantity);\n\t\t\t\t\tBARCODE_ARRAY[j] = null;\n\t\t\t\t\tBARCODEDITEM_ARRAY[j] = null;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} \n\t\t} catch (NullPointerException e) {\n\t\t\tthrow new SimulationException(e);\n\t\t}\n\n\n\t}", "int getQuantity();", "public void removeAllVariantBasedProduct(Product product){\n /*\n Using for loop because we want to delete all the variants of that particular product\n */\n for(Variant variant : product.variants){\n String key = product.name + \" \" + variant.name;\n if(cartItems.containsKey(key)){\n total-= cartItems.get(key).cost();\n noOfItems--;\n cartItems.remove(key);\n }\n }\n }", "@Override\n public int quantityDropped(int meta, int fortune, Random random)\n {\n return super.quantityDropped(meta, fortune, random);\n }", "@Override\n\tpublic void modify(int quantity) {\n\t}", "@Override\n\tpublic int remove(int n) {\n\t\treturn 0;\n\t}", "BigDecimal getOriginalQuantity();", "public boolean supprimerMagasin(int id);", "@Modifying(clearAutomatically = true)\n @Query(\"UPDATE Item i SET i.quantity = i.quantity - ?1 WHERE i =?2\")\n int deductFromStock(double qty, Item item);", "public Integer getQuantity();", "public void removeJpmProductSaleNew(final Long uniNo);", "@Override\n public void removeMenu(Items item) {\n int index = getCartIndex(item);\n if (index >= 0) {\n Items cartItem = mCartAdapter.getmCartItemsList().get(index);\n cartItem.setItemQuantity(cartItem.getItemQuantity() - 1);\n if (cartItem.getItemQuantity() == 0) {\n mCartAdapter.getmCartItemsList().remove(index);\n }\n// else {\n// mCartAdapter.getmCartItemsList().set(index, cartItem);\n// }\n item.setItemQuantity(item.getItemQuantity() - 1);\n updateCartMenu();\n } else { // Duplicate item available in cart\n Toast.makeText(OrderOnlineActivity.this, getResources().getString(R.string.multiple_customisation_error), Toast.LENGTH_LONG).show();\n }\n }", "public void removeItem(Product p) throws IOException {\n for(Product l: this.cartContents)\n System.out.println(l.getProductName());\n this.cartContents.remove(p);\n this.saveCart();\n }", "private void removeItem(int item) {\n\t\tboolean flag = false;\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i].getTag() == item) {\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"없어진 상품:\"+products[i].toString());\r\n\t\t\t\tproducts[i] = null;\r\n\t\t\t\tindex--;\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"해당하는 상품이 없습니다.\");\r\n\t}", "public void vaciar(){\n\t\tingredientes.clear();\n\t}", "@Test\n public void testRemove_int() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n Integer expResult = 7;\n Integer result = instance.remove(2);\n\n assertEquals(expResult, result);\n\n }", "@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }", "public Inventory inventoryDelete (TheGroceryStore g, LinkedList<Inventory> deleter) throws ItemNotFoundException;", "public void Remove_button() {\n\t\tProduct product = (Product) lsvProduct.getSelectionModel().getSelectedItem();\n\t\tif (product!=null) {\n\t\t\tint ind = lsvProduct.getSelectionModel().getSelectedIndex();\n\t\t\tcart.removeProduct(product);\n\t\t\tcart.removePrice(ind);\n\t\t\tcart.removeUnit(ind);\n\t\t}\n\t\tthis.defaultSetup();\n\t}", "private void removeProducto(int position) {\n losproductos.remove(position);\n // Notificamos de un item borrado en nuestro array\n eladaptador.notifyItemRemoved(position);\n }", "@Override \n public void commandRemoveFood(int id, float x, float y) {\n\n }", "ShoppingBasket removeProductItem(Long shoppingBasketId, Long productItemId);", "@Test\n public void removing_item_from_menu_should_decrease_menu_size_by_1() throws itemNotFoundException {\n\n int initialMenuSize = restaurant.getMenu().size();\n restaurant.removeFromMenu(\"Vegetable lasagne\");\n assertEquals(initialMenuSize-1,restaurant.getMenu().size());\n }", "public void removeItemAt(int theIndex) {\n\t\tList<Item> keys = new ArrayList<Item>(inventory.keySet());\t\n\t\tItem item = keys.get(theIndex);\n\t\tinventory.remove(item);\t\t\n\t}", "long getQuantity();", "long getQuantity();" ]
[ "0.69162637", "0.6813856", "0.6743156", "0.6638437", "0.66184884", "0.6609026", "0.65717226", "0.6552", "0.6513993", "0.6390151", "0.6385891", "0.63847214", "0.63365954", "0.63204", "0.6287481", "0.62552744", "0.62469065", "0.62425184", "0.62270796", "0.62057084", "0.6182822", "0.6179125", "0.61499", "0.6123213", "0.6113552", "0.6091775", "0.60884106", "0.6069469", "0.60650146", "0.6048382", "0.6032947", "0.60324347", "0.60229915", "0.60181016", "0.60086745", "0.6007159", "0.60019636", "0.5990495", "0.5983759", "0.59772396", "0.5976002", "0.5974196", "0.5967071", "0.59599376", "0.59579396", "0.59572357", "0.595274", "0.59527344", "0.5951615", "0.5938882", "0.5931195", "0.59249216", "0.59156066", "0.5910755", "0.59103894", "0.5908674", "0.59023273", "0.5902216", "0.5891786", "0.58893585", "0.58726066", "0.5859658", "0.58477366", "0.58423537", "0.5828588", "0.58279145", "0.58214664", "0.5819041", "0.5813253", "0.58115333", "0.58048", "0.58048", "0.58000004", "0.57996106", "0.5792245", "0.5775354", "0.57749546", "0.57733625", "0.5771596", "0.5771278", "0.577086", "0.57657236", "0.57635266", "0.5761919", "0.57602924", "0.575819", "0.5756115", "0.5746766", "0.5744916", "0.57409084", "0.5728612", "0.57279956", "0.5726204", "0.57232946", "0.5720739", "0.5718741", "0.570506", "0.5703599", "0.56981206", "0.56981206" ]
0.7093075
0
To Add an Ingredient Quantity
public void addIngredientQuantity(Ingredient ingredient, Integer addedValue){ beverageInventoryMap.put(ingredient, getInventoryForAIngredient(ingredient) + addedValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.hl7.fhir.Quantity addNewValueQuantity();", "public void addIngredient(String name, String sQuantity){\r\n int positionIngredient = findIngredientByName(name);\r\n double quantity = Double.parseDouble(sQuantity);\r\n\r\n if(positionIngredient != -1){\r\n quantity += ingredients.get(positionIngredient).getQuantity();\r\n Ingredient ingredient = new Ingredient(ingredients.get(positionIngredient).getName(), quantity);\r\n ingredients.remove(positionIngredient);\r\n ingredients.add(ingredient);\r\n } else {\r\n Ingredient ingredient = new Ingredient(name, quantity);\r\n ingredients.add(ingredient);\r\n }\r\n }", "public void addQuantity()\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n quantity++;\n quantityTextField.setText(\"\" + quantity);\n\n changeSubtotalTextField();\n }", "public void addIngredient(Ingredient ingredient) {\n stock.put(ingredient, inventoryMax);\n }", "public void addFuel(int quantity) throws Exception;", "@Override\n public void onAddIngredient(String ingredient_name, double quantity, MeasurementUnit unit) {\n\n Intent updateDB = new Intent(this, UpdateIngredientsService.class);\n updateDB.putExtra(UpdateIngredientsService.ING_NAME_KEY, ingredient_name);\n updateDB.putExtra(UpdateIngredientsService.RECIPE_ID_KEY, recipe_id);\n updateDB.putExtra(UpdateIngredientsService.ING_QUANT_KEY, quantity);\n updateDB.putExtra(UpdateIngredientsService.ING_UNIT_KEY, unit);\n updateDB.putExtra(UpdateIngredientsService.ACTION_KEY, UpdateIngredientsService.Action.ADD);\n startService(updateDB);\n\n }", "public org.hl7.fhir.Integer addNewQuantity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Integer target = null;\n target = (org.hl7.fhir.Integer)get_store().add_element_user(QUANTITY$10);\n return target;\n }\n }", "public void increaseQuantity() {\n this.quantity++;\n this.updateTotalPrice();\n }", "public void addItemQty(int itemQty) {\n this.itemQty += itemQty;\n }", "Quantity createQuantity();", "@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }", "Quantity getQuantity();", "public void addQuantity(int quantity) {\n\t\tif (quantity < 0) {\n\t\t\tthrow new IllegalArgumentException(\"null barcode\");\n\t\t}\n\t\ttotalNumOfItems += quantity;\n\t}", "public int adjustQuantitiesInDB(Ingredient ingredient, int givenQuantity)throws SQLException{ //adds a current type of ingredient to database takes in quantity and ingredient object \r\n\t\tint newQuantity;\r\n\t\tString requiredIngredientName = ingredient.getName();\r\n\t\tString sqlUpdate = \"update stock_ingredients set quantity = quantity + \" + givenQuantity + \" where name = \" + \"'\" + requiredIngredientName + \"'\";\r\n\t\t\t\r\n\t\t//find correct syntax for increasing the quantity by x amount\r\n\r\n\t\tConnection connection = connectToDB(databaseUser, databasePass);\r\n\r\n\t\tPreparedStatement ps = connection.prepareStatement(sqlUpdate);\r\n\r\n\t\tps.executeUpdate();\r\n\r\n\t\tnewQuantity = checkCurrentStockLevels(ingredient);\r\n\r\n\t\tconnection.close();\r\n\t\t\r\n\t\treturn newQuantity;\r\n\r\n\t}", "int getQuantity();", "public void addStock(int qtearajouter) {\n\t\tthis.stock += qtearajouter;\n\t}", "@NonNull\n public BasketItemBuilder incrementQuantity() {\n this.quantity++;\n return this;\n }", "public void agregarIngrediente(Ingrediente ingrediente){\n\t\tingredientes.add(ingrediente);\n\t}", "public void addItem(String name, String quantity)\n\t{\n\t\tingredients.add(new Ingredient(quantity, name));\n\t}", "public void addIngredientRecipe(IngredientRecipePOJO ingr);", "public Integer getQuantity();", "public int getQuantity();", "long getQuantity();", "long getQuantity();", "private void plusQuantity(TextField source, Clothing clothing) {\n clothing.setCount(1);\n int quantity = clothing.getCount();\n double totalPriceOfClothing = 0;\n\n for (int i = 0; i < clothingArrayList.size(); i++) {\n double countOfItems = clothingArrayList.get(i).getCount();\n double clothingPricePerUnit = Double.valueOf(clothingArrayList.get(i).getPrice());\n totalPriceOfClothing += countOfItems * clothingPricePerUnit;\n\n }\n source.setText(\"\" + (quantity));\n totalPrices.setText(\"\" + totalPriceOfClothing);\n\n totalPrice.textProperty().bind(totalPrices.textProperty());\n }", "@FXML\n\tpublic void addIngredientToProduct(ActionEvent event) {\n\t\tIngredient ingredient = restaurant.returnIngredient(ChoiceIngredients.getValue());\n\t\tboolean ingredientExists = false;\n\n\t\tfor (int i = 0; i < selectedIngredients.size() && ingredientExists == false; i++) {\n\t\t\tif (selectedIngredients.get(i).equalsIgnoreCase(ChoiceIngredients.getValue())) {\n\t\t\t\tingredientExists = true;\n\t\t\t}\n\t\t}\n\t\tif (ingredientExists == false) {\n\t\t\tif (ChoiceIngredients.getValue() != null) {\n\t\t\t\tif (ingredient.getCondition() == Condition.ACTIVE) {\n\t\t\t\t\tselectedIngredients.add(ChoiceIngredients.getValue());\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\n\t\t\t\t\t\t\t\"Ingrediente \" + ChoiceIngredients.getValue() + \" ha sido añadido al producto\");\n\t\t\t\t\tdialog.setTitle(\"Adicion de Ingrediente satisfactoria\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t} else {\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"El ingrediente ha sido deshabilitado por lo que no puede ser utilizado\");\n\t\t\t\t\tdialog.setTitle(\"Error, ingrediente Deshabilitado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Debe escoger algun ingrediente para que pueda ser añadido\");\n\t\t\t\tdialog.setTitle(\"Campo requerido\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"El ingrediente con el nombre \" + ChoiceIngredients.getValue() + \" ya existe\");\n\t\t\tdialog.setTitle(\"Error, Ingrediente existente\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "public void addToOrder()\n {\n\n if ( donutTypeComboBox.getSelectionModel().isEmpty() || flavorComboBox.getSelectionModel().isEmpty() )\n {\n Popup.DisplayError(\"Must select donut type AND donut flavor.\");\n return;\n } else\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n if ( quantity == 0 )\n {\n Popup.DisplayError(\"Quantity must be greater than 0.\");\n return;\n } else\n {\n for ( int i = 0; i < quantity; i++ )\n {\n Donut donut = new Donut(donutTypeComboBox.getSelectionModel().getSelectedIndex(), flavorComboBox.getSelectionModel().getSelectedIndex());\n mainMenuController.getCurrentOrder().add(donut);\n }\n if ( quantity == 1 )\n {\n Popup.Display(\"Donuts\", \"Donut has been added to the current order.\");\n } else\n {\n Popup.Display(\"Donuts\", \"Donuts have been added to the current order.\");\n }\n\n\n donutTypeComboBox.getSelectionModel().clearSelection();\n flavorComboBox.getSelectionModel().clearSelection();\n quantityTextField.setText(\"0\");\n subtotalTextField.setText(\"$0.00\");\n }\n }\n\n\n }", "public void addItem(Product p, int qty){\n //store info as an InventoryItem and add to items array\n this.items.add(new InventoryItem(p, qty));\n }", "public void increaseQuantity(int amount) {\n this.currentQuantity += amount;\n }", "public void stock(int number) {\r\n quantity += number;\r\n }", "public void addFood(int quantity) {\n if (quantity > 0) {\n this.food += quantity;\n System.out.printf(\"\\u001B[34mINFO:\\u001B[0m %d of food added.\\n\", quantity);\n } else {\n System.out.println(\"\\u001B[34mINFO:\\u001B[0m There are no food to add.\");\n }\n }", "public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }", "static void addIngredient(ArrayList<Ingredient> Ingredients,\n\t\t\tString ingredient) {\n\t\tboolean ingredientAdded = false;\n\t\t// check if ingredient is already present and add count accordingly\n\t\tfor (Ingredient ing : Ingredients) {\n\t\t\tif (!ingredientAdded) {\n\t\t\t\tif (ing.equals(ingredient)) {\n\t\t\t\t\ting.addCount();\n\t\t\t\t\tingredientAdded = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// add new ingredient to list if not already present\n\t\tif (!ingredientAdded) {\n\t\t\tIngredients.add(new Ingredient(ingredient));\n\t\t}\n\t}", "public void addItem() {\r\n\t\tFacesContext fc = FacesContext.getCurrentInstance();\r\n\t\tif (itemInvoice.getQuantidade() <= itemPO.getQuantidadeSaldo()) {\r\n\t\t\tBigDecimal total = itemInvoice.getPrecoUnit().multiply(\r\n\t\t\t\t\tnew BigDecimal(itemInvoice.getQuantidade()));\r\n\t\t\titemInvoice.setTotal(total);\r\n\t\t\tif (!editarItem) {\r\n\r\n\t\t\t\tif (itemInvoice.getPrecoUnit() == null) {\r\n\t\t\t\t\titemInvoice.setPrecoUnit(new BigDecimal(0.0));\r\n\t\t\t\t}\r\n\t\t\t\tif (itemInvoice.getQuantidade() == null) {\r\n\t\t\t\t\titemInvoice.setQuantidade(0);\r\n\t\t\t\t}\r\n\t\t\t\titemInvoice.setInvoice(invoice);\r\n\r\n\t\t\t\tinvoice.getItensInvoice().add(itemInvoice);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tinvoice.getItensInvoice().set(\r\n\t\t\t\t\t\tinvoice.getItensInvoice().indexOf(itemInvoice),\r\n\t\t\t\t\t\titemInvoice);\r\n\t\t\t}\r\n\t\t\tcarregarTotais();\r\n\t\t\tinicializarItemInvoice();\r\n\t\t\trequired = false;\r\n\t\t} else {\r\n\r\n\t\t\tMessages.adicionaMensagemDeInfo(TemplateMessageHelper.getMessage(\r\n\t\t\t\t\tMensagensSistema.INVOICE, \"lblQtdMaioSaldo\", fc\r\n\t\t\t\t\t\t\t.getViewRoot().getLocale()));\r\n\t\t}\r\n\t}", "BigDecimal getQuantity();", "void populateItemQuantity() {\n for (int i = 0; i < 10; i++) {\n String number = String.valueOf(i + 1);\n comboQuantity.getItems().add(i, number);\n }\n comboQuantity.setEditable(true);\n comboQuantity.getSelectionModel().selectFirst();\n }", "public void setQuantity(int quantity) {\r\n this.quantity = quantity;\r\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(int value) {\n this.quantity = value;\n }", "public void setQuantity(Integer quantity) {\r\n this.quantity = quantity;\r\n }", "public void setQuantity(String quantity) {\n this.quantity = quantity;\n }", "public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }", "public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }", "public int addItem(Itemset i);", "public void setQuantity(int quantity) {\n this.quantity = quantity;\n }", "public void setQuantity(int quantity) {\n this.quantity = quantity;\n }", "@Override\r\n public void addProductQuantity(Product product, int quantity) {\r\n int stock;\r\n int i = 0;\r\n for (Product p : this.productList) {\r\n if (p.getId() == product.getId()) {\r\n stock = this.productQuantity.get(i);\r\n this.productQuantity.set(i, stock + quantity);\r\n break;\r\n }\r\n i++;\r\n }\r\n this.productList.add(product);\r\n this.productQuantity.add(quantity);\r\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "public void addOrder(Order o) {\n medOrder.add(o);\n //System.out.println(\"in adding order\");\n for(OrderItem oi: o.getOrderItemList())\n {\n MedicineProduct p=oi.getProduct();\n //System.out.println(\"in for oop produscts \"+p);\n Medicine med = this.searchMedicine(p.getProdName());\n if(med!=null){\n int i = med.getAvailQuantity()+oi.getQuantity();\n med.setAvailQuantity(i);\n // System.out.println(\"in adding quntity \"+i);\n \n }\n }\n \n }", "public void addIngredient(View view) {\n // find the input boxes\n EditText ingredientName = findViewById(R.id.input_Ingredient);\n EditText ingredientQuantity = findViewById(R.id.input_Quantity);\n\n // get the values\n String name = ingredientName.getText().toString();\n String quantity = ingredientQuantity.getText().toString();\n\n if (!(name.equals(\"\"))) {\n // assign it to the recipe\n newRecipe.addIngredient(new Ingredient(name, quantity));\n\n // update the listview for the ingredients\n updateIngredientListView();\n\n // remove the contents of those fields\n ingredientName.setText(\"\");\n ingredientQuantity.setText(\"\");\n }\n else {\n Toast.makeText(this, \"You must enter a name for your ingredient!\", Toast.LENGTH_SHORT).show();\n }\n }", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public Integer getQuantity() {\n return this.quantity;\n }", "@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }", "public void addItem(String nameMeal, String quantity, String idOrder) {\n\n\t\ttry {\n\n\t\t\torderDetails.insertNewOrderDetail(idOrder, quantity, nameMeal);\n\n\t\t} finally {\n\t\t\tmysqlConnect.disconnect();\n\t\t}\n\t}", "@Test\n public void validAdd1() {\n assertEquals(i3, isl.get(2));\n\n //checks the amount of ingredient 4\n assertEquals(2.39, ((Ingredient) isl.get(3)).amountNeed, 0);\n assertEquals(1.01, ((Ingredient) isl.get(3)).amountHave, 0);\n\n //add an ingredient that is already present in the list\n //the amount should be added to the current amount 2.39 + 0.45 = 2.84\n //ignores the fact that category and unit don't match\n assertFalse(isl.add(new Ingredient(\"vANiLle\", \"niks\", 0.45, 0.69, \"none\")));\n assertEquals(2.84, ((Ingredient) isl.get(3)).amountNeed, 0.00001);\n assertEquals(1.7, ((Ingredient) isl.get(3)).amountHave, 0.00001);\n assertEquals(\"kruiden\", ((Ingredient) isl.get(3)).category);\n assertEquals(Unit.GRAMS, ((Ingredient) isl.get(3)).unit);\n\n //add a new ingredient and check if it's added correctly\n assertTrue(isl.add(new Ingredient(\"cookies\", \"yum\", 3, 4, \"none\")));\n assertEquals(\"cookies\", isl.get(5).name);\n assertEquals(\"yum\", ((Ingredient) isl.get(5)).category);\n assertEquals(3, ((Ingredient) isl.get(5)).amountNeed, 0);\n assertEquals(4, ((Ingredient) isl.get(5)).amountHave, 0);\n assertEquals(Unit.NONE, ((Ingredient) isl.get(5)).unit);\n }", "public void addItem(LineItem item)\r\n {\r\n\t ChangeEvent event = new ChangeEvent(this);\r\n\t if(items.contains(item))\r\n\t {\r\n\t\t \r\n\t\t counter = 0;\r\n\t\t items.add(item);\r\n\t\t //tem.addQuantity();\r\n\t\t //tem.getQuantity();\r\n\t\t for(int i = 0; i < items.size(); i++)\r\n\t\t {\r\n\t\t\t if(items.get(i).equals(item))\r\n\t\t\t {\r\n\t\t\t counter++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t for (ChangeListener listener : listeners)\r\n\t\t listener.stateChanged(event);\r\n\t\t System.out.print(\"\\r Quantity of \" + item.toString() + \": \"+ counter);\r\n\t\t \r\n\t }\r\n\t else\r\n\t {\r\n\t\t counter = 1;\r\n\t// item.addQuantity();\r\n\t// item.getQuantity();\r\n\t\t items.add(item);\r\n\t// System.out.println(item.getQuantity());\r\n\t\t for (ChangeListener listener : listeners)\r\n\t\t listener.stateChanged(event);\r\n\t \t\r\n\t \tSystem.out.print(\"\\n Quantity of \" + item.toString() + \": \"+ counter);\r\n\t \r\n\t\t \r\n\t }\r\n\t\t\r\n \r\n }", "public void addQuantity(Vector3d v, double q) {\r\n\t\tint[] b = boxCoords(v);\r\n\t\taddQuantity(b[0],b[1],b[2],q);\r\n\t}", "public int addItem(Item i);", "public int getQuantity()\n {\n return quantity;\n }", "public void addItem(Carryable g) {\r\n if (numItems < MAX_CART_ITEMS)\r\n cart[numItems++] = g;\r\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "@Test void addIngredientZero()\n {\n }", "public Integer getQuantity() {\n return quantity;\n }", "public Integer getQuantity() {\n return quantity;\n }", "private void addProduct() {\n String type = console.readString(\"type (\\\"Shirt\\\", \\\"Pant\\\" or \\\"Shoes\\\"): \");\n String size = console.readString(\"\\nsize: \");\n int qty = console.readInt(\"\\nQty: \");\n int sku = console.readInt(\"\\nSKU: \");\n Double price = console.readDouble(\"\\nPrice: \");\n int reorderLevel = console.readInt(\"\\nReorder Level: \");\n daoLayer.addProduct(type, size, qty, sku, price, reorderLevel);\n\n }", "public int getQuantity() {\r\n return quantity;\r\n }", "private void increaseOneToQuantity() {\n String previousValueString = mQuantityEditText.getText().toString();\n int previousValue;\n if (previousValueString.isEmpty() || previousValueString.equals(\"0\")) {\n return;\n }\n else {\n previousValue = Integer.parseInt(previousValueString);\n mQuantityEditText.setText(String.valueOf(previousValue + 1));\n }\n }", "protected void ingredientDialog() {\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Add New Ingredient\");\n\n\t\tfinal EditText ingredientET = new EditText(this);\n\t\tingredientET.setHint(\"Ingredient\");\n\n\t\tfinal EditText unitET = new EditText(this);\n\t\tunitET.setHint(\"Unit of measurement\");\n\n\t\tfinal EditText quantityET = new EditText(this);\n\t\tquantityET.setHint(\"Quantity\");\n\n\t\tLinearLayout layout = new LinearLayout(this);\n\t\tlayout.setOrientation(1); // 1 is for vertical orientation\n\t\tlayout.addView(ingredientET);\n\t\tlayout.addView(unitET);\n\t\tlayout.addView(quantityET);\n\n\t\talert.setView(layout);\n\n\t\talert.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\tif ((!isEmpty(ingredientET)) && (!isEmpty(unitET))\n\t\t\t\t\t\t&& (!isEmpty(quantityET))) {\n\t\t\t\t\tRecipeView.addIngredient(ingredientET, unitET, quantityET,\n\t\t\t\t\t\t\tcurrentRecipe);\n\t\t\t\t\tpopulateIngredientView();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\talert.setNegativeButton(\"Cancel\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\t\t}\n\t\t\t\t});\n\t\talert.show();\n\t}", "@Override\n\tpublic void modify(int quantity) {\n\t}", "public void setQuantity(int quantity)\n\t{\n\t\tthis.quantity = quantity;\n\t}", "public String getQuantity() {\n return quantity;\n }", "public void increaseQuantityOfProductByOne() {\n int intQuantity = Integer.parseInt(quantityOfProducts.getAttribute(\"value\"));\n plusButton.click();\n testClass.waitTillValueOfElementIsIncreasedByOne(\n QUANTITY_OF_PRODUCTS_XPATH, intQuantity + 1);\n }", "String getQuantity() {\n return Integer.toString(quantity);\n }", "Items(int quantidade,Produto produto){\n\t\tqntd = quantidade;\n\t\tthis.produto = produto;\n\t\t\n\t}", "void printTotalQuantity();", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public int getQuantity() {\n return quantity;\n }", "public Integer getQuantity() {\r\n return this.quantity;\r\n }", "public ItemQuantity(Item item, int quantity) {\n this.item = item;\n this.quantity = quantity;\n }", "public void addItem(Item newItem) {\n for (Item i : inventory) {\n if (newItem.getClass().equals(i.getClass())) {\n i.setQuantity(i.getQuantity() + newItem.getQuantity());\n return;\n }\n }\n inventory.add(newItem);\n }", "public int getQuantity() \n\t{\n\t\treturn quantity;\n\t}", "public abstract Ingredient getNew();", "public Ingredient(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void addProduct(Product item){\n inventory.add(item);\n }", "public void setQuantity(int quantity) {\r\n\t\tthis.quantity = quantity;\r\n\t}", "public void addIngredientRecipe(ArrayList<IngredientRecipePOJO> ingr);", "public int getQuantity() {\r\n\t\treturn quantity;\r\n\t}", "void registerGoods(Goods goods, int quantity) throws StoreKeeperWorkException;", "public void add(Double addedAmount) {\n }", "@FXML\n\tpublic void addUpdateIngredientToProduct(ActionEvent event) {\n\t\tif (ChoiceUpdateIngredients.getValue() != null) {\n\t\t\tselectedIngredients.add(ChoiceUpdateIngredients.getValue());\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Ingrediente \" + ChoiceUpdateIngredients.getValue() + \" ha sido añadido al producto\");\n\t\t\tdialog.setTitle(\"Adicion de Ingrediente satisfactoria\");\n\t\t\tdialog.show();\n\t\t\tChoiceUpdateIngredients.setValue(null);\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Debe escoger algun ingrediente para que pueda ser añadido\");\n\t\t\tdialog.setTitle(\"Campo requerido\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public void addWarehouseStock(String name, int amount);", "public Integer getQuantity() {\n return this.quantity;\n }", "@Test(expected = InventoryException.class)\n\tpublic void testAddSugarPositiveInteger() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"0\", \"0\", \"15\", \"0\");\n\t}", "public void addToSale(ItemDTO item, int quantity){\n this.saleInfo.addItem(item, quantity);\n }", "public int getQuantity()\n {\n \treturn quantity;\n }" ]
[ "0.7479091", "0.74040025", "0.712093", "0.69717175", "0.6924691", "0.6799296", "0.67660093", "0.6705145", "0.66661733", "0.6658218", "0.6635641", "0.6548286", "0.64955723", "0.64090824", "0.6408518", "0.6394884", "0.6394624", "0.6385323", "0.63826746", "0.63796335", "0.63729626", "0.63153684", "0.62964106", "0.62964106", "0.6280771", "0.62682587", "0.6260079", "0.62564313", "0.6239253", "0.62377447", "0.62187487", "0.62179947", "0.6186139", "0.61660665", "0.6163846", "0.6160794", "0.6159178", "0.6149156", "0.6149156", "0.6149156", "0.61443543", "0.61427546", "0.6135157", "0.6135157", "0.6132342", "0.6110024", "0.6110024", "0.6109712", "0.60828596", "0.6082574", "0.6080903", "0.6073512", "0.6064947", "0.6064113", "0.6048137", "0.6047879", "0.60429704", "0.60361797", "0.6033781", "0.6030889", "0.6029928", "0.60278237", "0.60227394", "0.6010418", "0.6010418", "0.60084486", "0.6008356", "0.60050404", "0.6001901", "0.5989846", "0.598949", "0.59871805", "0.59867257", "0.5986454", "0.598618", "0.598286", "0.5982615", "0.5982615", "0.5982615", "0.5982615", "0.5982615", "0.5982615", "0.5981202", "0.5981139", "0.59724265", "0.5972324", "0.5963679", "0.5952224", "0.5943661", "0.5941343", "0.5940027", "0.59375995", "0.5934868", "0.5934548", "0.5925289", "0.5924477", "0.5921622", "0.59175307", "0.5909688", "0.5907119" ]
0.7598446
0
Outlets of the system
public Integer getOutlets(){ return this.outlets; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUIComponents() {\n\t\tframe.setTitle(\"Departamento de ventas\");\n\t\tframe.setMinimumSize(new Dimension(700, 500));\n\n\t\t/*\n\t\t * Paneles externos. Solo hay que añadir en el bottomPanel\n\t\t */\n\t\tJPanel topPanel = new JPanel();\n\t\tframe.getContentPane().add(topPanel, BorderLayout.NORTH);\n\t\ttopPanel.setBackground(new Color(233, 196, 106));\n\t\ttopPanel.setBounds(100, 100, 100, 100);\n\n\t\tJPanel leftPanel = new JPanel();\n\t\tframe.getContentPane().add(leftPanel, BorderLayout.WEST);\n\t\tleftPanel.setBackground(new Color(233, 196, 106));\n\n\t\tJPanel rightPanel = new JPanel();\n\t\tframe.getContentPane().add(rightPanel, BorderLayout.EAST);\n\t\trightPanel.setBackground(new Color(233, 196, 106));\n\n\t\tJPanel bottomPanel = new JPanel();\n\t\tframe.getContentPane().add(bottomPanel, BorderLayout.SOUTH);\n\t\tbottomPanel.setBackground(new Color(233, 196, 106));\n\t\tbottomPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 0));\n\t\t// Se añaden los componentes al bottomPanel\n\t\tbtnLogOut = new JButton(\"Cerrar Sesión\");\n\t\tbtnLogOut.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tbtnLogOut.setBorder(null);\n\t\tbtnLogOut.setBackground(new Color(233, 196, 106));\n\t\tbtnLogOut.setFont(new Font(\"SansSerif\", Font.BOLD, 12));\n\t\tbottomPanel.add(btnLogOut);\n\n\t\tJLabel lblLogOut = new JLabel(\"X\");\n\t\tlblLogOut.setForeground(new Color(220, 20, 60));\n\t\tlblLogOut.setFont(new Font(\"SansSerif\", Font.BOLD, 13));\n\t\tbottomPanel.add(lblLogOut);\n\n\t\t/*\n\t\t * mainPanel. Dentro se crean otros paneles para añadir los distintos\n\t\t * componentes.\n\t\t */\n\t\tJPanel mainPanel = new JPanel();\n\t\tmainPanel.setBorder(new MatteBorder(2, 2, 1, 1, (Color) new Color(0, 0, 0)));\n\t\tframe.getContentPane().add(mainPanel);\n\t\tGridBagLayout gbl_mainPanel = new GridBagLayout();\n\t\tgbl_mainPanel.columnWidths = new int[] { 1061, 0 };\n\t\tgbl_mainPanel.rowHeights = new int[] { 137, 298, 328, 0 };\n\t\tgbl_mainPanel.columnWeights = new double[] { 0.0, Double.MIN_VALUE };\n\t\tgbl_mainPanel.rowWeights = new double[] { 0.0, 0.0, 0.0, Double.MIN_VALUE };\n\t\tmainPanel.setLayout(gbl_mainPanel);\n\n\t\t// Paneles que componen el mainPanel\n\n\t\tJPanel clientPanel = new JPanel();\n\t\tGridBagConstraints gbc_clientesPanel = new GridBagConstraints();\n\t\tgbc_clientesPanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_clientesPanel.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_clientesPanel.gridx = 0;\n\t\tgbc_clientesPanel.gridy = 0;\n\t\tmainPanel.add(clientPanel, gbc_clientesPanel);\n\t\tclientPanel.setLayout(new BorderLayout());\n\t\tclientPanel.setPreferredSize(new Dimension(10, 50));\n\n\t\t// Añadir Jlabel a clientesPanel\n\t\tJLabel lblClientData = new JLabel(\"Datos del cliente\");\n\t\tlblClientData.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblClientData.setFont(new Font(\"SansSerif\", Font.BOLD, 25));\n\t\tclientPanel.add(lblClientData, BorderLayout.CENTER);\n\n\t\t// Panel para rellenar datos de cliente.\n\t\tJPanel clientDataPanel = new JPanel();\n\t\tGridBagConstraints gbc_datosClientePanel = new GridBagConstraints();\n\t\tgbc_datosClientePanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_datosClientePanel.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_datosClientePanel.gridx = 0;\n\t\tgbc_datosClientePanel.gridy = 1;\n\t\tmainPanel.add(clientDataPanel, gbc_datosClientePanel);\n\t\tclientDataPanel.setLayout(new GridLayout(1, 2));\n\n\t\tJPanel clientDataPanelLeft = new JPanel();\n\t\tclientDataPanel.add(clientDataPanelLeft);\n\t\tSpringLayout sl_datosClientePanelLeft = new SpringLayout();\n\t\tclientDataPanelLeft.setLayout(sl_datosClientePanelLeft);\n\n\t\t// Componentes panel derecho\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblCod = new JLabel(\"Código de cliente:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblCod, 26, SpringLayout.NORTH, clientDataPanelLeft);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblCod, 70, SpringLayout.WEST, clientDataPanelLeft);\n\t\tlblCod.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblCod);\n\n\t\ttxtCod = new JTextField();\n\t\ttxtCod.setEnabled(false);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtCod, -3, SpringLayout.NORTH, lblCod);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtCod, 74, SpringLayout.EAST, lblCod);\n\t\ttxtCod.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtCod.setColumns(10);\n\t\tclientDataPanelLeft.add(txtCod);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblNombreCliente = new JLabel(\"Nombre:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblNombreCliente, 26, SpringLayout.SOUTH, lblCod);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblNombreCliente, 0, SpringLayout.WEST, lblCod);\n\t\tlblNombreCliente.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblNombreCliente);\n\n\t\ttxtName = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtName, -3, SpringLayout.NORTH, lblNombreCliente);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtName, 0, SpringLayout.WEST, txtCod);\n\t\ttxtName.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtName.setColumns(10);\n\t\tclientDataPanelLeft.add(txtName);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblSurnames = new JLabel(\"Apellidos:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblSurnames, 26, SpringLayout.SOUTH,\n\t\t\t\tlblNombreCliente);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblSurnames, 0, SpringLayout.WEST, lblCod);\n\t\tlblSurnames.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblSurnames);\n\n\t\ttxtSurnames = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtSurnames, -3, SpringLayout.NORTH, lblSurnames);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtSurnames, 0, SpringLayout.WEST, txtCod);\n\t\ttxtSurnames.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtSurnames.setColumns(10);\n\t\tclientDataPanelLeft.add(txtSurnames);\n\n\t\tJLabel lblDni = new JLabel(\"DNI:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblDni, 26, SpringLayout.SOUTH, lblSurnames);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblDni, 0, SpringLayout.WEST, lblCod);\n\t\tlblDni.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblDni);\n\n\t\ttxtDni = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtDni, -3, SpringLayout.NORTH, lblDni);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtDni, 0, SpringLayout.WEST, txtCod);\n\t\ttxtDni.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtDni.setColumns(10);\n\t\tclientDataPanelLeft.add(txtDni);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblTelephone = new JLabel(\"Teléfono:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblTelephone, 26, SpringLayout.SOUTH, lblDni);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblTelephone, 0, SpringLayout.WEST, lblCod);\n\t\tlblTelephone.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblTelephone);\n\n\t\ttxtTelephone = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtTelephone, -3, SpringLayout.NORTH, lblTelephone);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtTelephone, 0, SpringLayout.WEST, txtCod);\n\t\ttxtTelephone.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtTelephone.setColumns(10);\n\t\tclientDataPanelLeft.add(txtTelephone);\n\n\t\tJPanel clientDataPanelRight = new JPanel();\n\t\tclientDataPanel.add(clientDataPanelRight);\n\n\t\tJPanel bottonPanel = new JPanel();\n\t\tGridBagConstraints gbc_botonPanel = new GridBagConstraints();\n\t\tgbc_botonPanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_botonPanel.gridx = 0;\n\t\tgbc_botonPanel.gridy = 2;\n\t\tmainPanel.add(bottonPanel, gbc_botonPanel);\n\t\tbottonPanel.setLayout(new FlowLayout(1, 250, 100));\n\n\t\t// Botones\n\t\tbackButton = new JButton(\"Volver al menú\");\n\t\tbackButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tbackButton.setFont(new Font(\"SansSerif\", Font.BOLD, 15));\n\t\tbackButton.setBackground(new Color(244, 162, 97));\n\t\tbackButton.setForeground(Color.WHITE);\n\t\tbottonPanel.add(backButton);\n\n\t\tregisterButton = new JButton(\"Añadir cliente\");\n\t\tregisterButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tregisterButton.setFont(new Font(\"SansSerif\", Font.BOLD, 15));\n\t\tregisterButton.setBackground(new Color(231, 111, 81));\n\t\tregisterButton.setForeground(Color.WHITE);\n\t\tbottonPanel.add(registerButton);\n\n\t}", "public Outlet(String name, Component parent, int outlets)\n {\n // Runs the superclass' constructor using the name, the parent, the type and maxCurrent of 0\n super(name, parent, Type.OUTLET, 0);\n // Sets the number of outlets\n this.outlets = outlets;\n }", "@Override\n public String toString()\n {\n return \"Outlet(name=\" + name + \", current=\" + currentBeingUsed +\", plugs=\" + children.size() + '/' + outlets + \", on=\" + turnedOn +\")\";\n }", "public void createComponents()\n {\n VBox col = new VBox(SPACING);\n\n Label lblStatus = new Label(\"Machine Status\");\n lblStatus.getStyleClass().add(\"bordered-titled-title\");\n\n lblCurrFile = new Label(\"No File Currently Loaded\");\n lblConnection = new Label(\"Not Connected\");\n\n btnConnect = new Button(\"Connect to Machine\");\n btnConnect.setOnAction(new ConnectEventHandler());\n //btnConnect.getStyleClass().add(\"glass-grey\");\n\n ivConnection = new ImageView(\n new Image(getClass().getResourceAsStream(\"/Resources/Not Connected.png\")));\n\n lblMachineStatus = new Label(\"Status: Good\");\n HBox r1 = new HBox(SPACING);\n r1.getChildren().addAll(lblConnection, ivConnection);\n\n col.getChildren().addAll(btnConnect, r1, lblCurrFile, lblMachineStatus);\n getChildren().addAll(lblStatus, col);\n\n }", "public static void OptionsComponents() {\n\t\tInterface.controls.setPreferredSize(Interface.dim);\n\t\tInterface.controls.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.controls.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.controls.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.controls.setForeground(Color.white);\n\t\t\n\t\tInterface.controls2.setPreferredSize(Interface.dim);\n\t\tInterface.controls2.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.controls2.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.controls2.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.controls2.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.sound.setPreferredSize(Interface.dim);\n\t\tInterface.sound.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.sound.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.sound.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.sound.setForeground(Color.white);\n\t\t\n\t\tInterface.soundOn.setPreferredSize(Interface.dim);\n\t\tInterface.soundOn.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.soundOn.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.soundOn.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.soundOn.setForeground(Color.white);\n\t\t\n\t\tInterface.soundOff.setPreferredSize(Interface.dim);\n\t\tInterface.soundOff.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.soundOff.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.soundOff.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.soundOff.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtomain.setPreferredSize(Interface.dim);\n\t\tInterface.backtomain.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtomain.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtomain.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtomain.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.save.setPreferredSize(Interface.dim);\n\t\tInterface.save.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.save.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.save.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.save.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtooptions.setPreferredSize(Interface.dim);\n\t\tInterface.backtooptions.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtooptions.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtooptions.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtooptions.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.player1.setForeground(Color.white);\n\t\tInterface.player2.setForeground(Color.white);\n\t\tInterface.up1.setForeground(Color.white);\n\t\tInterface.up2.setForeground(Color.white);\n\t\tInterface.down1.setForeground(Color.white);\n\t\tInterface.down2.setForeground(Color.white);\n\t\tInterface.right1.setForeground(Color.white);\n\t\tInterface.right2.setForeground(Color.white);\n\t\tInterface.left1.setForeground(Color.white);\n\t\tInterface.left2.setForeground(Color.white);\n\t\tInterface.bomb1.setForeground(Color.white);\n\t\tInterface.bomb2.setForeground(Color.white);\n\t\tInterface.boxNumber.setForeground(Color.white);\n\t\tInterface.getUp1.setEditable(false);\n\t\tInterface.getUp2.setEditable(false);\n\t\tInterface.getDown1.setEditable(false);\n\t\tInterface.getDown2.setEditable(false);\n\t\tInterface.getRight1.setEditable(false);\n\t\tInterface.getRight2.setEditable(false);\n\t\tInterface.getLeft1.setEditable(false);\n\t\tInterface.getLeft2.setEditable(false);\n\t\tInterface.getBomb1.setEditable(false);\n\t\tInterface.getBomb2.setEditable(false);\n\t}", "private void addComponents() {\n\t\tthis.add(btn_pause);\n\t\tthis.add(btn_continue);\n\t\tthis.add(btn_restart);\n\t\tthis.add(btn_rank);\n\t\tif(Config.user.getUsername().equals(\"root\")) {\n\t\t\tthis.add(btn_admin);\n\t\t}\n\t\n\t\t\n\t}", "private void displayConnections()\n {\n if (agent == null)\n {\n JOptionPane.showMessageDialog(null, \"No Portal Connected\", \"Portal\", JOptionPane.ERROR_MESSAGE);\n }\n else\n {\n String connection = agent.getPortal().getHandle();\n JOptionPane.showMessageDialog(null, connection, \"Portal\", JOptionPane.INFORMATION_MESSAGE);\n }\n }", "public static void MultiComponents() {\n\t\tInterface.rndMapMulti.setPreferredSize(Interface.dim);\n\t\tInterface.rndMapMulti.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.rndMapMulti.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.rndMapMulti.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.rndMapMulti.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.startGame2.setPreferredSize(Interface.dim);\n\t\tInterface.startGame2.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.startGame2.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.startGame2.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.startGame2.setForeground(Color.white);\n\t\t\n\t\tInterface.online.setPreferredSize(Interface.dim);\n\t\tInterface.online.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.online.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.online.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.online.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.join.setPreferredSize(Interface.dim);\n\t\tInterface.join.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.join.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.join.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.join.setForeground(Color.white);\n\t\t\n\n\t\tInterface.ipLabel.setForeground(Color.white);\n\t}", "public void manageComponent() {\n menu = new JMenuBar();\n mainbox = new JScrollPane();\n toolbox = new JPanel();\n paintBox = new JPanel();\n optionbox = new JPanel();\n statusbar = new JPanel();\n paintModule = new PaintModule();\n\n // component setting\n createToolBox(toolbox);\n createMenu(menu);\n createOptionBox(optionbox);\n createStatusBar(statusbar);\n this.setLayout(new BorderLayout());\n\n // add component to container\n paintBox.add(paintModule);\n mainbox.setViewportView(paintBox);\n\n\n this.add(menu, BorderLayout.NORTH);\n this.add(mainbox, BorderLayout.CENTER);\n this.add(toolbox, BorderLayout.WEST);\n this.add(optionbox, BorderLayout.EAST);\n this.add(statusbar, BorderLayout.SOUTH);\n\n }", "public void referenciaComponentes() {\n campoModeloCelular = findViewById(R.id.CampoModeloCelular);\n campoNumeroChip1 = findViewById(R.id.radioButtonNumChip1);\n campoNumeroChip2 = findViewById(R.id.radioButtonNumChip2);\n numeroDoChip1 = findViewById(R.id.EditTextNumChip1);\n numeroDoChip2 = findViewById(R.id.EditTextNumChip2);\n IMEI1 = findViewById(R.id.campoIMEI1);\n IMEI2 = findViewById(R.id.campoIMEI2);\n\n // iniciando alguns componentes invisiveis\n IMEI2.setVisibility(View.GONE);\n numeroDoChip2.setVisibility(View.GONE);\n }", "private void writeInstancePanel() {\n \t\tgetView().getComboInstance().clear();\n \t\tfor (int i = 0; i<Storage_access.getNumberOfInstance(); i++)\n \t\t\tgetView().getComboInstance().addItem(\"\"+Storage_access.getInstanceLocalNum(i)+\": \"+Storage_access.getInstanceDesc(i));\n \t\t//Storage_access.printStorage();\n \t\t\n \t}", "private UIManager() {\n tableUI = new TableUI();\n snifferUI = new SnifferUI();\n }", "private void getComponents() {\n drawerLayout = binding.activityMainDrawerLayout;\n navigationView = binding.navigationView;\n floatingActionButton = binding.flAddPet;\n shareAppButton = binding.flShareApp;\n }", "private void initComponents() {\n\t\tbtn_pause =new JButton(\"暂停游戏\");\n\t\tbtn_continue =new JButton(\"继续游戏\");\n\t\tbtn_restart =new JButton(\"重新开始\");\n\t\tbtn_rank =new JButton(\"游戏排行\");\n\t\tbtn_admin =new JButton(\"后台管理\");\n\t\t\n\t\t\n\t\t//给按钮设置单击监听\n\t\tbtn_pause.addActionListener(this);\n\t\tbtn_continue.addActionListener(this);\n\t\tbtn_restart.addActionListener(this);\n\t\tbtn_rank.addActionListener(this);\n\t\tbtn_admin.addActionListener(this);\n\t}", "private void makeDisplay() {\n\n\t\t// setLayout to be a BoxLayout\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\t// call these methods ???? to be defined later\n\n\t\taddOscServerAddressPanel();\n\t\taddGlobalControlPanel();\n\t\taddFirstSynthPanel();\n\t\taddSecondSynthPanel();\n\t\taddThirdSynthPanel();\n\t}", "private void findViews() {\n serverView = findViewById(R.id.server_view);\n portView = findViewById(R.id.port_view);\n usernameView = findViewById(R.id.username_view);\n passwordView = findViewById(R.id.password_view);\n messageView = findViewById(R.id.message_view);\n uploadButtonView = findViewById(R.id.upload_button_view);\n }", "private void setButtons()\n\t{\n\t\tstartSim = new JButton(\"Start Sim\");\n\t\tstartSim.addActionListener(this);\n\t\tpauseSim = new JButton(\"Pause Sim\");\n\t\tpauseSim.addActionListener(this);\n\t\taddEat = new JButton(\"Add Eatery\");\n\t\taddEat.addActionListener(this);\n\t\tsubEat = new JButton(\"Subtract Eatery\");\n\t\tsubEat.addActionListener(this);\n\t\taddCash = new JButton(\"Add Cashier\");\n\t\taddCash.addActionListener(this);\n\t\tsubCash = new JButton(\"Subtract Cashier\");\n\t\tsubCash.addActionListener(this);\n\t}", "private void organizeUI() {\n\t\tfileMenu.add(startServerFileMenu);\n\t\tfileMenu.add(stopServerFileMenu);\n\t\tfileMenu.addSeparator();\n\t\tfileMenu.add(exitFileMenu);\n\n\t\toptionMenu.add(loadJokesOptionMenu);\n\t\toptionMenu.add(setupServerInfoOptionMenu);\n\t\t\n\t\thelpMenu.add(aboutHelpMenu);\n\t\t\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(optionMenu);\n\t\tmenuBar.add(helpMenu);\n\t\tsetJMenuBar(menuBar);\n\t\t\n\t\ttoolBar.add(startServerToolBarButton);\n\t\ttoolBar.add(stopServerToolBarButton);\n\t\tstopServerToolBarButton.setEnabled(false);\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(kkClientToolBarButton);\n\t\t\n\t\tkkServerPortField = new JTextField(String.valueOf(kkServerPort));\n\t\t\n\t\tserverStatusLabel.setText(serverStopped);\n\t\tnorthPanel.setLayout(new BorderLayout());\n\t\tnorthPanel.add(toolBar, BorderLayout.NORTH);\n\t\tnorthPanel.add(serverStatusLabel, BorderLayout.WEST);\n\t\tadd(northPanel, BorderLayout.NORTH);\n\t\t\n\t\tcenterPanel.setLayout(new BorderLayout());\n\t\tadd(centerPanel, BorderLayout.CENTER);\n\t\t\n\t\tsouthPanel.setLayout(new BorderLayout());\n\t\tsouthPanel.add(totalClientConectionLabel, BorderLayout.WEST);\n\t\tsouthPanel.add(totalJokesLabel, BorderLayout.EAST);\n\t\t\n\t\tadd(southPanel, BorderLayout.SOUTH);\n\t}", "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}", "public OI() {\n // Xbox Controller 0 Buttons\n \tButtonMap.xbox0_Y.whileHeld(new TransmissionAscend());\n \tButtonMap.xbox0_A.whileHeld(new TransmissionDescend());\n \tButtonMap.xbox0_R1.whenPressed(new ClawClose());\n \tButtonMap.xbox0_L1.whenPressed(new ClawOpen());\n \t\n \t// Drive Commands\n \tButtonMap.xbox0_B.whileHeld(new DriveFullSpeedWithJoystick());\n ButtonMap.xbox0_B.whenReleased(new ArcadeTriggerDriveWithJoystick());\n \t\n \t// Xbox Controller 1 Buttons\n \tButtonMap.xbox1_R1.whenPressed(new ClawClose());\n \tButtonMap.xbox1_L1.whenPressed(new ClawOpen()); \n \tButtonMap.xbox1_Y.whileHeld(new TransmissionAscend()); \n \tButtonMap.xbox1_A.whileHeld(new TransmissionDescend()); \n }", "public void createObservers() {\n\n\t\t// Airport screens\n\n\t\tAirportScreen airportScreen1 = new AirportScreen(airport, \"AIRPORT (1)\", airportScreen1Dialog);\n\t\tAirportScreen airportScreen2 = new AirportScreen(airport, \"AIRPORT (2)\", airportScreen2Dialog);\n\t\tairport.attach(airportScreen1);\n\t\tairport.attach(airportScreen2);\n\n\t\t// Terminal screens (three each)\n\n\t\tTerminalScreen termAScreen1 = new TerminalScreen(termA, \"TERMINAL A (1)\", termAScreen1Dialog);\n\t\tTerminalScreen termAScreen2 = new TerminalScreen(termA, \"TERMINAL A (2)\", termAScreen2Dialog);\n\t\tTerminalScreen termAScreen3 = new TerminalScreen(termA, \"TERMINAL A (3)\", termAScreen3Dialog);\n\t\ttermA.attach(termAScreen1);\n\t\ttermA.attach(termAScreen2);\n\t\ttermA.attach(termAScreen3);\n\n\t\tTerminalScreen termBScreen1 = new TerminalScreen(termB, \"TERMINAL B (1)\", termBScreen1Dialog);\n\t\tTerminalScreen termBScreen2 = new TerminalScreen(termB, \"TERMINAL B (2)\", termBScreen2Dialog);\n\t\tTerminalScreen termBScreen3 = new TerminalScreen(termB, \"TERMINAL B (3)\", termBScreen3Dialog);\n\t\ttermB.attach(termBScreen1);\n\t\ttermB.attach(termBScreen2);\n\t\ttermB.attach(termBScreen3);\n\n\t\tTerminalScreen termCScreen1 = new TerminalScreen(termC, \"TERMINAL C (1)\", termCScreen1Dialog);\n\t\tTerminalScreen termCScreen2 = new TerminalScreen(termC, \"TERMINAL C (2)\", termCScreen2Dialog);\n\t\tTerminalScreen termCScreen3 = new TerminalScreen(termC, \"TERMINAL C (3)\", termCScreen3Dialog);\n\t\ttermC.attach(termCScreen1);\n\t\ttermC.attach(termCScreen2);\n\t\ttermC.attach(termCScreen3);\n\n\t\t// Gates and gate screens\n\n\t\t// Terminal A\n\t\tfor (int i = 0; i < gatesA.length; ++i) {\n\t\t\tgatesA[i] = new Gate(\"A-\" + (i + 1));\n\t\t\tgatesA[i].attach(new GateScreen(gatesA[i], gatesADialogs[i]));\n\t\t}\n\n\t\t// Terminal B\n\t\tfor (int i = 0; i < gatesB.length; ++i) {\n\t\t\tgatesB[i] = new Gate(\"B-\" + (i + 1));\n\t\t\tgatesB[i].attach(new GateScreen(gatesB[i], gatesBDialogs[i]));\n\t\t}\n\n\t\t// Terminal C\n\t\tfor (int i = 0; i < gatesC.length; ++i) {\n\t\t\tgatesC[i] = new Gate(\"C-\" + (i + 1));\n\t\t\tgatesC[i].attach(new GateScreen(gatesC[i], gatesCDialogs[i]));\n\t\t}\n\t}", "public void registerComponents() \r\n {\r\n grantsByPIForm.jbnRunButton.addActionListener(this);\r\n grantsByPIForm.jbnCloseButton.addActionListener(this);\r\n \r\n }", "private static void setSubsystems()\n {\n //Components\n //Talons\n frontLeftTalon.setName(\"DrivetrainSubsystem\", \"FrontLeftDriveTalon\");\n frontRightTalon.setName(\"DrivetrainSubsystem\", \"FrontRightDriveTalon\");\n rearLeftTalon.setName(\"DrivetrainSubsystem\", \"RearLeftDriveTalon\");\n rearRightTalon.setName(\"DrivetrainSubsystem\", \"RearRightDriveTalon\");\n //Sensors\n //navX.setName(\"SensorSubsystem\", \"NavX\");\n System.out.print(pigeon.getAbsoluteCompassHeading());\n \n //Subsystems\n drivetrainSubsystem.setName(\"DrivetrainSubsystem\", \"DrivetrainSubsystem\");\n sensorSubsystem.setName(\"SensorSubsystem\", \"SensorSubsystem\");\n }", "public void setPortletComponents(ArrayList components) {\n this.components = components;\n }", "public void registerButtons()\n\t{\n\t\tplot.addActionListener(new ButtonListener());\n\t\tin.addActionListener(new ButtonListener(1));\n\t\tout.addActionListener(new ButtonListener(2));\n\t\t\n\t}", "private void createUIComponents() {\n bt1 = new JButton(\"Hola\");\n }", "private void setupUIViews() {\n toolbar = (Toolbar)findViewById(R.id.ToolbarMain);\n listview = (ListView)findViewById(R.id.lvMain);\n }", "private OI() {\n\t\t\n\t\tJoystickButton intakeIn = new JoystickButton(//gunner, \n\t\t\t\tdriver, JOYSTICK_INTAKE);\n\t\tJoystickButton intakeOut = new JoystickButton(//gunner, \n\t\t\t\tdriver, JOYSTICK_REVERSE_INTAKE);\n\t\tJoystickButton pivotOut = new JoystickButton(//gunner,\t\t\t\tThese create officially each button on the driver remote\n\t\t\t\tdriver, JOYSTICK_PIVOT_OUT);\n\t\tJoystickButton pivotIn = new JoystickButton(//gunner,\t\t\t\tusing the button numbers created above\n\t\t\t\tdriver, JOYSTICK_PIVOT_IN);\n\t\tJoystickButton climbRelease = new JoystickButton(//gunner,\n\t\t\t\tdriver, JOYSTICK_ClIMB_RELEASE);\n\t\tJoystickButton climbUp = new JoystickButton(//gunner,\n\t\t\t\tdriver, JOYSTICK_CLIMB_UP);\n\t\tJoystickButton climbBrake = new JoystickButton(\n\t\t\t\tdriver, JOYSTICK_BRAKE);\n\t\tJoystickButton climbUndoBrake = new JoystickButton(\n\t\t\t\tdriver, JOYSTICK_UNDO_BRAKE);\n\t\t\n\t\t/*\n\t\t * JoystickButton intakeIn = new JoystickButton(//left, \n\t\t\t\tright, JOYSTICK_INTAKE);\n\t\t * JoystickButton intakeOut = new JoystickButton(//left, \n\t\t\t\tright, JOYSTICK_REVERSE_INTAKE);\n\t\t * JoystickButton pivotOut = new JoystickButton(//left,\t\t\t\tThese create officially each button on the driver remote\n\t\t\t\tright, JOYSTICK_PIVOT_OUT);\n\t\t * JoystickButton pivotIn = new JoystickButton(//left,\t\t\t\tusing the button numbers created above\n\t\t\t\tright, JOYSTICK_PIVOT_IN);\n\t\t * JoystickButton climbRelease = new JoystickButton(//left,\n\t\t\t\tright, JOYSTICK_ClIMB_RELEASE);\n\t\t * JoystickButton climbUp = new JoystickButton(//left,\n\t\t\t\tright, JOYSTICK_CLIMB_UP);\n\t\t * JoystickButton climbBrake = new JoystickButton(//left,\n\t\t\t\tright, JOYSTICK_BRAKE);\n\t\t * JoystickButton climbUndoBrake = new JoystickButton(//left,\n\t\t\t\tright, JOYSTICK_UNDO_BRAKE);\n\t\t */\n\t\t\n\t\t\n\t\tintakeIn.whileHeld(new IntakeIn());\t\t\t//Executes intakeIn WHILE the button is pressed\n\t\tintakeIn.whenReleased(new IntakeStop());\t//executes intakestop WHEN the button is let go\n\t\t\n\t\tintakeOut.whileHeld(new IntakeOut());\t\n\t\tintakeOut.whenReleased(new IntakeStop());\n\t\t\n\t\tpivotIn.whileHeld(new PivotIn());\n\t\tpivotIn.whenReleased(new PivotStop());\t\t\t\t\t\t\t//These bind the buttons to a specific command\n\t\t\n\t\tpivotOut.whileHeld(new PivotOut());\n\t\tpivotOut.whenReleased(new PivotStop());\n\t\t\n\t\tclimbRelease.whileHeld(new ClimbRelease());\n\t\tclimbRelease.whenReleased(new ClimbStop());\n\t\t\n\t\tclimbUp.whileHeld(new ClimbUp());\n\t\tclimbUp.whenReleased(new ClimbStop());\n\t\t\n\t\tclimbBrake.whileHeld(new ClimbBrake());\n\t\tclimbBrake.whenReleased(new BrakeStop());\n\t\t\n\t\tclimbUndoBrake.whileHeld(new ClimbBrakeUndo());\n\t\tclimbUndoBrake.whenReleased(new BrakeStop());\n\t}", "public void printInfo(){\n\t\tSystem.out.println(\"id : \" + id + \" label : \" + label);\n\t\tSystem.out.println(\"vms : \" );\n\t\tfor(VirtualMachine v : vms){\n\t\t\tv.printInfo();\n\t\t}\n\t}", "@Override\n protected void addButtons()\n {\n JLabel agentOptions = new JLabel(\"Client Options \", SwingConstants.CENTER);\n addComponentToGridBag(this, agentOptions, 0, 0, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n\n JButton agentSendMessage = new JButton(\"Send Message\");\n addComponentToGridBag(this, agentSendMessage, 0, 2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentSendMessage.addActionListener((ActionEvent e) ->\n {\n String to = getTo();\n String content = getContent(to);\n sendMessage(to, content);\n });\n\n JButton agentShowPortal = new JButton(\"Show Portal\");\n addComponentToGridBag(this, agentShowPortal, 0, 3, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentShowPortal.addActionListener((ActionEvent e) ->\n {\n displayConnections();\n });\n\n JButton agentexit = new JButton(\"Exit\");\n addComponentToGridBag(this, agentexit, 0, 5, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentexit.addActionListener((ActionEvent e) ->\n {\n System.exit(0);\n });\n }", "public static void initOutlets(JPanel jPListContainer, JLabel jLInformationSong, JButton jBPlayButton, JToggleButton orderByAlbum, JToggleButton orderByArtist,\n JToggleButton orderByYear, JFileChooser jFileChooser1, MyOwnJFrame actualWindow, JFileChooser jfcOneFile, JToggleButton jtbRepeatSongs)\n {\n JSoundsMainWindowViewController.jPListContainer = jPListContainer;\n JSoundsMainWindowViewController.jLInformationSong = jLInformationSong;\n JSoundsMainWindowViewController.jBPlayButton = jBPlayButton;\n JSoundsMainWindowViewController.orderByAlbum = orderByAlbum;\n JSoundsMainWindowViewController.orderByArtist = orderByArtist;\n JSoundsMainWindowViewController.orderByYear = orderByYear;\n JSoundsMainWindowViewController.jFileChooser1 = jFileChooser1; \n JSoundsMainWindowViewController.jlActualListSongs = null;\n JSoundsMainWindowViewController.iAmPlaying = true;\n JSoundsMainWindowViewController.iAmPausing = false;\n JSoundsMainWindowViewController.iAmResuming = false; \n JSoundsMainWindowViewController.actualWindow = actualWindow;\n JSoundsMainWindowViewController.jtbRepeatSongs = jtbRepeatSongs;\n JSoundsMainWindowViewController.jtbRepeatSongs.setSelected(false); \n JSoundsMainWindowViewController.jfcOneFile = jfcOneFile; \n }", "public void initializeUIComponents() {\n etIdentification = (EditText) findViewById(R.id.etIdentification);\n etAddress = (EditText) findViewById(R.id.etAddress);\n etPort = (EditText) findViewById(R.id.etPort);\n btnConnect = (Button) findViewById(R.id.btnConnect);\n\n try {\n getSupportActionBar().setDisplayHomeAsUpEnabled(false);\n getSupportActionBar().setHomeButtonEnabled(false);\n } catch (Exception e){\n Log.e(\"phys timer\", e.getMessage());\n }\n }", "private void componentsListeners() {\r\n\t\t// NIFs\r\n\t\tbtnRefrescarnifs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcb_nifCliente.setModel(new DefaultComboBoxModel(ContenedorPrincipal.getContenedorPrincipal().getContenedorClientes().getNifs()));\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Clientes\r\n\t\tbtnClientes.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarClientes();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Reparaciones\r\n\t\tbtnRepararVehvulo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarReparaciones();\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Anterior vehiculo\r\n\t\tbuttonLeftArrow.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (!Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarLeftArrow();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Siguiente vehiculo\r\n\t\tbuttonRightArrow.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (!Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarRightArrow();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Atras\r\n\t\tbtnAtrs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarAtras();\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Guarda el vehiculo\r\n\t\tbtnGuardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tif (Constantes.MODO_CREAR) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tcontroladorVehiculos.guardarVehiculo();\r\n\t\t\t\t\t} catch (NumberFormatException e1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Hay campos vacios\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t} catch (Exception e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Algo ha ido mal\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Borra el vehículo\r\n\t\tbtnBorrarVehiculo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tif (Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarBorrarVehiculo();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public ConsulterOffres() {\n initComponents();\n }", "private void findViews() {\n // Buttons first\n closeBtn = (ImageButton) findViewById(getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()));\n shareBtn = (ImageButton) findViewById(getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()));\n\n //ProgressBar\n loadingBar = (ProgressBar) findViewById(getApplication().getResources().getIdentifier(\"loadingBar\", \"id\", getApplication().getPackageName()));\n // Image Container\n image = (TouchImageView) findViewById(getApplication().getResources().getIdentifier(\"imageView\", \"id\", getApplication().getPackageName()));\n \n\n // Title TextView\n titleTxt = (TextView) findViewById(getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()));\n }", "private void createUserInterface() {\n // get content pane for attaching GUI components\n Container contentPane = getContentPane();\n\n // enable explicit positioning of GUI components\n contentPane.setLayout(null);\n\n // set up securityCodeJLabel\n // JLabel and JPasswordField for user to input security code\n JLabel securityCodeJLabel = new JLabel();\n securityCodeJLabel.setBounds(16, 16, 90, 21);\n securityCodeJLabel.setText(\"Security code:\");\n contentPane.add(securityCodeJLabel);\n\n // set up securityCodeJPasswordField\n securityCodeJPasswordField = new JPasswordField();\n securityCodeJPasswordField.setBounds(114, 16, 172, 26);\n securityCodeJPasswordField.setEditable(false);\n contentPane.add(securityCodeJPasswordField);\n\n // set up oneJButton\n // JButtons to represent security keypad\n JButton oneJButton = new JButton();\n oneJButton.setBounds(80, 64, 50, 50);\n oneJButton.setText(\"1\");\n contentPane.add(oneJButton);\n // anonymous inner class\n // event handler called when oneJButton is pressed\n oneJButton.addActionListener(\n\n this::oneJButtonActionPerformed // end anonymous inner class\n\n ); // end call to addActionListener\n\n // set up twoJButton\n JButton twoJButton = new JButton();\n twoJButton.setBounds(130, 64, 50, 50);\n twoJButton.setText(\"2\");\n contentPane.add(twoJButton);\n // anonymous inner class\n // event handler called when twoJButton is pressed\n twoJButton.addActionListener(\n\n this::twoJButtonActionPerformed // end anonymous inner class\n\n ); // end call to addActionListener\n\n // set up threeJButton\n JButton threeJButton = new JButton();\n threeJButton.setBounds(180, 64, 50, 50);\n threeJButton.setText(\"3\");\n contentPane.add(threeJButton);\n // anonymous inner class\n // event handler called when threeJButton is pressed\n threeJButton.addActionListener(\n\n this::threeJButtonActionPerformed // end anonymous inner class\n\n ); // end call to addActionListener\n\n // set up fourJButton\n JButton fourJButton = new JButton();\n fourJButton.setBounds(80, 114, 50, 50);\n fourJButton.setText(\"4\");\n contentPane.add(fourJButton);\n // anonymous inner class\n // event handler called when fourJButton is pressed\n fourJButton.addActionListener(\n\n this::fourJButtonActionPerformed // end anonymous inner class\n\n ); // end call to addActionListener\n\n // set up fiveJButton\n JButton fiveJButton = new JButton();\n fiveJButton.setBounds(130, 114, 50, 50);\n fiveJButton.setText(\"5\");\n contentPane.add(fiveJButton);\n // anonymous inner class\n // event handler called when fiveJButton is pressed\n fiveJButton.addActionListener(\n\n this::fiveJButtonActionPerformed // end anonymous inner class\n\n ); // end call to addActionListener\n\n // set up sixJButton\n JButton sixJButton = new JButton();\n sixJButton.setBounds(180, 114, 50, 50);\n sixJButton.setText(\"6\");\n contentPane.add(sixJButton);\n // anonymous inner class\n // event handler called when sixJButton is pressed\n sixJButton.addActionListener(\n\n this::sixJButtonActionPerformed // end anonymous inner class\n\n ); // end call to addActionListener\n\n // set up sevenJButton\n JButton sevenJButton = new JButton();\n sevenJButton.setBounds(80, 164, 50, 50);\n sevenJButton.setText(\"7\");\n contentPane.add(sevenJButton);\n // anonymous inner class\n // event handler called when sevenJButton is pressed\n sevenJButton.addActionListener(\n\n this::sevenJButtonActionPerformed // end anonymous inner class\n\n ); // end call to addActionListener\n\n // set up eightJButton\n JButton eightJButton = new JButton();\n eightJButton.setBounds(130, 164, 50, 50);\n eightJButton.setText(\"8\");\n contentPane.add(eightJButton);\n // anonymous inner class\n // event handler called when eightJButton is pressed\n eightJButton.addActionListener(\n\n this::eightJButtonActionPerformed // end anonymous inner class\n\n ); // end call to addActionListener\n\n // set up nineJButton\n JButton nineJButton = new JButton();\n nineJButton.setBounds(180, 164, 50, 50);\n nineJButton.setText(\"9\");\n contentPane.add(nineJButton);\n // anonymous inner class\n // event handler called when nineJButton is pressed\n nineJButton.addActionListener(\n\n this::nineJButtonActionPerformed // end anonymous inner class\n\n ); // end call to addActionListener\n\n // set up clearJButton\n JButton clearJButton = new JButton();\n clearJButton.setBounds(80, 214, 50, 50);\n clearJButton.setText(\"C\");\n contentPane.add(clearJButton);\n // anonymous inner class\n // event handler called when clearJButton is pressed\n clearJButton.addActionListener(\n\n this::clearJButtonActionPerformed // end anonymous inner class\n\n ); // end call to addActionListener\n\n // set up zeroJButton\n JButton zeroJButton = new JButton();\n zeroJButton.setBounds(130, 214, 50, 50);\n zeroJButton.setText(\"0\");\n contentPane.add(zeroJButton);\n // anonymous inner class\n // event handler called when zeroJButton is pressed\n zeroJButton.addActionListener(\n\n this::zeroJButtonActionPerformed // end anonymous inner class\n\n ); // end call to addActionListener\n\n // set up enterJButton\n JButton enterJButton = new JButton();\n enterJButton.setBounds(180, 214, 50, 50);\n enterJButton.setText(\"#\");\n contentPane.add(enterJButton);\n // anonymous inner class\n // event handler called when enterJButton is pressed\n enterJButton.addActionListener(\n\n event -> enterJButtonActionPerformed() // end anonymous inner class\n\n ); // end call to addActionListener\n\n // set up accessLogJLabel\n // JLabel, JTextArea and JScrollPane to display access log\n JLabel accessLogJLabel = new JLabel();\n accessLogJLabel.setBounds(16, 285, 100, 16);\n accessLogJLabel.setText(\"Access log:\");\n contentPane.add(accessLogJLabel);\n\n // set up accessLogJTextArea\n accessLogJTextArea = new JTextArea();\n\n // set up accessLogJScrollPane\n JScrollPane accessLogJScrollPane = new JScrollPane(accessLogJTextArea);\n accessLogJScrollPane.setBounds(16, 309, 270, 95);\n contentPane.add(accessLogJScrollPane);\n\n // set properties of application's window\n setTitle(\"Security Panel\"); // set title bar string\n setSize(310, 450); // set window's size\n setVisible(true); // display window\n\n }", "private void controllersUI() {\n\t\tc.setLayout(null);\n\t\tc.setBackground(whiteColor);\n\t\t\n\t\tlbPullTitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlbPullTitle.setOpaque(true);\n\t\tlbPullTitle.setFont(new Font(\"Helvetica Neue\", Font.PLAIN, 18));\n\t\tlbPullTitle.setBounds(0, 0, 320, 52);\n\t\t\n\t\ttxtPulls.setFont(new Font(\"Helvetica Neue\", Font.PLAIN, 12));\n\t\ttxtPulls.setBounds(0, 52, 320, 420);\n\t\t\n\t\ttxtMsg.setBounds(10, 480, 230, 35);\n\t\tbtnMsg.setBounds(250, 476, 60, 40);\n\t\t\n\t\tc.add(txtPulls);\n\t\tc.add(lbPullTitle);\n\t\tc.add(btnMsg);\n\t\tc.add(txtMsg);\n\t\t\n\t\tbtnMsg.addActionListener(this);\n\t}", "public void softwareResources() {\n\t\tSystem.out.println(\"I am the software implemented through Multiple inheritence in Desktop class\");\r\n\t\t\r\n\t}", "public void hardwareResources() {\n\t\tSystem.out.println(\"I am the Hardware implemented through Multiple inheritence in Desktop class\");\r\n\r\n\t}", "public void setupUI() {\n users = (Button) findViewById(R.id.btnUtilisateur);\n services = (Button) findViewById(R.id.btnServices);\n }", "private void setupUI(){\n this.setupTimerSchedule(controller, 0, 500);\n this.setupFocusable(); \n this.setupSensSlider();\n this.setupInitEnable();\n this.setupDebugger();\n }", "public Administrative() {\r\n\t\tsetTitle(\"APB\");\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 418, 238);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBorder(new TitledBorder(UIManager\r\n\t\t\t\t.getBorder(\"TitledBorder.border\"), \"Administrative\",\r\n\t\t\t\tTitledBorder.CENTER, TitledBorder.TOP, null, null));\r\n\t\tpanel.setBounds(10, 11, 379, 183);\r\n\t\tcontentPane.add(panel);\r\n\t\tpanel.setLayout(null);\r\n\r\n\t\tJButton btnBarber = new JButton(\"Barber\");\r\n\t\tbtnBarber.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the Phonebook frame\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tRegisterBarber frame = new RegisterBarber();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton and open the phonebook frame\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnBarber.setBounds(10, 45, 157, 37);\r\n\t\tpanel.add(btnBarber);\r\n\r\n\t\tJButton btnTipoJob = new JButton(\"Tipo de Servi\\u00E7o\");\r\n\t\tbtnTipoJob.addActionListener(new ActionListener() {\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the Service Type frame\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tRegisterDoneService frame = new RegisterDoneService();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton and open the Service Type frame\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnTipoJob.setBounds(215, 45, 149, 37);\r\n\t\tpanel.add(btnTipoJob);\r\n\r\n\t\tJButton btnPhonebook = new JButton(\"Phonebook\");\r\n\t\tbtnPhonebook.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the Phonebook frame\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tRegisterPhonebook frame = new RegisterPhonebook();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPhonebook.setBounds(10, 93, 157, 37);\r\n\t\tpanel.add(btnPhonebook);\r\n\r\n\t\tJButton btnVoltar = new JButton(\"Voltar\");\r\n\t\tbtnVoltar.addActionListener(new ActionListener() {\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the Service Type frame\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tMainMenu frame = new MainMenu();\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton to go back\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnVoltar.setBounds(151, 141, 89, 23);\r\n\t\tpanel.add(btnVoltar);\r\n\r\n\t\tJButton btnRecibo = new JButton(\"Recibo\");\r\n\t\tbtnRecibo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\t// This method is used to create the button and the action that open\r\n\t\t\t// the receipt frame\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tGenerateReceipt frame = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tframe = new GenerateReceipt();\r\n\t\t\t\t} catch (ParseException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tLogger.getLogger(\"Create the boutton and open the receipt frame\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnRecibo.setBounds(215, 93, 149, 37);\r\n\t\tpanel.add(btnRecibo);\r\n\t}", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "private void findViews() {\r\n\t\t// Buttons first\r\n\t\tcloseBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\tshareBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\t// Photo Container\r\n\t\tphoto = (ImageView) findViewById( getApplication().getResources().getIdentifier(\"photoView\", \"id\", getApplication().getPackageName()) );\r\n\t\twarning = this.getResources().getIdentifier(\"warning\", \"drawable\", getApplication().getPackageName());\r\n\t\tplace = this.getResources().getIdentifier(\"no_media\", \"drawable\", getApplication().getPackageName());\r\n\t\tmAttacher = new PhotoViewAttacher(photo);\r\n\t\t// Title TextView\r\n\t\t//titleTxt = (TextView) findViewById( getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()) );\r\n\t\tprogress = (ProgressBar) findViewById( getApplication().getResources().getIdentifier(\"progressBar\", \"id\", getApplication().getPackageName()));\r\n\t}", "private void inizialiteViews() {\n tvDirectionStore = findViewById(R.id.tvDirectionStore);\n tvNameOwner = findViewById(R.id.tvNameOwnerView);\n tvNameStore = findViewById(R.id.tvNameStoreView);\n tvPhonestore = findViewById(R.id.tvPhoneNumberOwner);\n editStore = findViewById(R.id.btnEditStore);\n imageViewStore = findViewById(R.id.imageStore);\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}", "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 void addMonitors() {\n\t\t// get graphics environment\n\t\tGraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\tGraphicsDevice[] graphicsDevices = graphicsEnvironment.getScreenDevices();\n\t\t// let user choose on which screen to show the capturer, only if more than one is connected\n\t\tif (graphicsDevices.length > 1) {\n\t\t\tbuttonPanel.removeAll();\n\t\t\tJLabel screenLabel = new JLabel(getResourceMap().getString(\"screenLabel.text\"));\n\t\t\tbuttonPanel.add(screenLabel, \"wrap, grow, span\");\n\t\t\t// create buttongroup for selecting monitor\n\t\t\tButtonGroup screenButtonGroup = new ButtonGroup();\n\t\t\tInteger defaultMonitorId = videoCapturerFactory.getMonitorIdForComponent(selectedVideoCapturerName);\n\t\t\t// get the default monitor id for this capturer\n\t\t\tfor (GraphicsDevice graphicsDevice : graphicsDevices) {\n\t\t\t\tString monitorIdString = graphicsDevice.getIDstring();\n\t\t\t\tDisplayMode displayMode = graphicsDevice.getDisplayMode();\n\t\t\t\t// final Rectangle position = graphicsDevice.getDefaultConfiguration().getBounds();\n\t\t\t\tString resolution = displayMode.getWidth() + \"x\" + displayMode.getHeight();\n\t\t\t\tJToggleButton button = new JToggleButton(\"<html><center>\" + monitorIdString + \"<br>\" + resolution + \"</center></html>\");\n\t\t\t\tmonitorIdString = monitorIdString.substring(monitorIdString.length() - 1);\n\t\t\t\tbutton.setActionCommand(monitorIdString);\n\t\t\t\tbutton.addActionListener(new ActionListener() {\n\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tAbstractButton source = (AbstractButton) e.getSource();\n\t\t\t\t\t\tString monitorId = source.getActionCommand();\n\t\t\t\t\t\t// TODO pass position here instead of monitor id..\n\t\t\t\t\t\tfirePropertyChange(SelfContained.MONITOR_ID, selectedMonitorId, selectedMonitorId = monitorId);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t\tbutton.setBackground(Color.WHITE);\n\t\t\t\t// set default screen selection\n\t\t\t\tint monitorId = Integer.parseInt(monitorIdString);\n\t\t\t\tif (defaultMonitorId != null && defaultMonitorId == monitorId) {\n\t\t\t\t\tbutton.setSelected(true);\n\t\t\t\t\tscreenButtonGroup.setSelected(button.getModel(), true);\n\t\t\t\t} else {\n\t\t\t\t\tscreenButtonGroup.setSelected(button.getModel(), false);\n\t\t\t\t}\n\t\t\t\tscreenButtonGroup.add(button);\n\t\t\t\tbuttonPanel.add(button, \"height 70!, width 70::, grow\");\n\t\t\t}\n\t\t\tscreenLabel.setVisible(true);\n\t\t\tbuttonPanel.setVisible(true);\n\t\t}\n\t}", "private void inicComponent() {\n\n\t\tprogres = (LinearLayout) findViewById(R.id.linearLayoutProgres);\n\t\t\n\t\tbuttonKategorije = (Button) findViewById(R.id.buttonKategorije);\n\t\t\n\t}", "public List getPortletComponents() {\n return components;\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}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jPanel1 = new javax.swing.JPanel();\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 jButton1 = new javax.swing.JButton();\n jSplitPane1 = new javax.swing.JSplitPane();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTextArea2 = new javax.swing.JTextArea();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jLabel1.setText(\"Port :\");\n\n jLabel2.setText(\"jLabel2\");\n\n jLabel3.setText(\"Local IP :\");\n\n jLabel4.setText(\"jLabel2\");\n\n jLabel5.setText(\"Web IP :\");\n\n jLabel6.setText(\"jLabel2\");\n\n jButton1.setText(\"Inchide pravalia\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\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()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jLabel6))\n .addGap(0, 5, Short.MAX_VALUE))\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n\n jScrollPane1.setViewportView(jPanel1);\n\n jSplitPane1.setDividerLocation(90);\n jSplitPane1.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\n\n jTextArea2.setEditable(false);\n jTextArea2.setColumns(20);\n jTextArea2.setFont(new java.awt.Font(\"Times New Roman\", 0, 12)); // NOI18N\n jTextArea2.setForeground(new java.awt.Color(255, 0, 51));\n jTextArea2.setRows(5);\n jScrollPane3.setViewportView(jTextArea2);\n\n jSplitPane1.setLeftComponent(jScrollPane3);\n\n jTextArea1.setEditable(false);\n jTextArea1.setColumns(20);\n jTextArea1.setFont(new java.awt.Font(\"Times New Roman\", 0, 12)); // NOI18N\n jTextArea1.setLineWrap(true);\n jTextArea1.setRows(5);\n jScrollPane2.setViewportView(jTextArea1);\n\n jSplitPane1.setRightComponent(jScrollPane2);\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(jScrollPane1)\n .addComponent(jSplitPane1))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "public void addListeners() {\n\t\tsave.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t//Set the window variables\r\n\t\t\t\tEnvironmentVariables.setWidth(Float.parseFloat(width.getText()));\r\n\t\t\t\tEnvironmentVariables.setHeight(Float.parseFloat(height.getText()));\r\n\t\t\t\tEnvironmentVariables.setTitle(title.getText());\r\n\t\t\t\tupdateGameWorld();\r\n\t\t\t\t//go to save function\r\n\t\t\t\tsaveGame();\r\n\t\t\t\t\r\n\t\t\t\tWindow.getFrame().setVisible(false);\r\n\t\t\t\tWindow.getFrame().dispose();\r\n\t\t\t\t\r\n\t\t\t\tHomePage.buildHomePage();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//reset to empty world\r\n\t\treset.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tEnvironmentVariables.clearWorld();\r\n\t\t\t\tWindow.render();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "void inicializaComponentes(){\r\n\t\t\r\n\t\t//Botão com status\r\n\t\ttgbGeral = (ToggleButton) findViewById(R.id.tgbGeral);\r\n\t\ttgbGeral.setOnClickListener(this);\r\n\t\ttgbMovimento = (ToggleButton) findViewById(R.id.tgbMovimento);\r\n\t\ttgbMovimento.setOnClickListener(this);\r\n\t\ttgbfogo = (ToggleButton) findViewById(R.id.tgbFogo);\r\n\t\ttgbfogo.setOnClickListener(this);\r\n\r\n\t\t//botão\r\n\t\tbtnTemperatura = (Button) findViewById(R.id.btnTemperatura);\r\n\t\tbtnTemperatura.setOnClickListener(this);\r\n\t\t\r\n\t\t//label\r\n\t\ttxtLegenda = (TextView) findViewById(R.id.txtSensorLegenda);\r\n\t}", "private void renderObjetos() {\n // Agrego los botones a la barra\n this.rBotones.add(this.btnOK);\n this.rBotones.add(this.btnCancel);\n }", "public void registerGui()\n {\n }", "public void outputVisualObjects ()\n\t{\n\t\toutput (\"\\n> (visual-objects)\\n\");\n\t\tif (model!=null) model.outputVisualObjects();\n\t}", "void closePorts() {\n try {\n for (ObjectInputStream itr : inputReadPorts) {\n itr.close();\n }\n for (ObjectOutputStream itr : outputWritePorts) {\n itr.close();\n }\n } catch (Exception e) {\n System.out.println(\"\\n\" + this.getName() + \" ClosePorts error::\" + e);\n } // try-catch\n }", "RobotSelector(JLabel robotInUse, ArrayList<Robot> robots, VisionDisplay vision){\n\t\tsuper();\n\t\tthis.robotInUse = robotInUse;\n\t\tthis.robots = robots;\n\t\tthis.vi = vision;\n\t\tsetBackground(Color.gray);\n\t\t// Toolkit tk = Toolkit.getDefaultToolkit();\n\t\tWidth = 130; // 120//110 (int)(tk.getScreenSize().getWidth() * 0.05);\n\t\tHeight = 800; //(int)(tk.getScreenSize().getHeight() * 1);\n\t\t//Width -= 10;\n\t Dimension d = new Dimension(Width, Height);\n\t setPreferredSize(d);\t\t\n\t setLayout(new BorderLayout());\n\t setBorder(BorderFactory.createRaisedBevelBorder());\n\t \n\t System.out.println(this.getPreferredSize());\n\t \n\t robotButtons = new JButton[robots.size()];\n\t robotIcons = new ImageIcon[robots.size()];\n\t grabButtons = new JButton[robots.size()];\n\t ungrabButtons = new JButton[robots.size()];\n\t\timageButtons = new JButton[robots.size()];\n\t\tvideoButtons = new JButton[robots.size()];\n\t int i=0;\n\t buttons = new JPanel();\n\t for (final Robot x : robots) {\n \t\t//final Robot x = (Robot)e.nextElement();\n \t\tString name = x.getName();\n \t\tSystem.out.println(name);\n \t\trobotIcons[i] = GuiUtils.resizeJP(x.getRobotIcon().getImage(), Width, Width);\n \t\tfinal JLabel jl = robotInUse;\n \t\tif(name==null){\n \t\t\tname = \"No Name\";\n \t\t}\n \t\trobotButtons[i] = new JButton(name, robotIcons[i]);\n \t\trobotButtons[i].setVerticalTextPosition(AbstractButton.TOP);\n \t\trobotButtons[i].setHorizontalTextPosition(AbstractButton.CENTER);\n \t\tif(!Gui.useCentralServer){\n\t \t\trobotButtons[i].addActionListener(new ActionListener() {\n\t\t\t\t\t//private boolean threadVision;\n\t\t\t\t\t//private boolean threadVisionAibo;\n\t\t\t\t\t\n\t\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t// TODO Think about how to use the key in robots hashtable\n\t \t \tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n\t \t \tRobot.setRobotInUse(x.getRobotKey());\n\t \t \tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n\t \t \tjl.setText(x.getName());\n\t \t \t\n\t \t \tvi.showVideo(x);\n\t \t \t\n\t \t \t\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t \t });\n\t \t\tbuttons.add(robotButtons[i]);\n \t\t}\n\n \t\telse {\n \t\tgrabButtons[i] = new JButton(\"Lock\");\n \t\tgrabButtons[i].setFont(new Font(\"SansSerif\", Font.PLAIN, 9));\n \t\tgrabButtons[i].setPreferredSize(new Dimension(Width/3 + 15, 25)); // 3 15\n \t\tgrabButtons[i].setVerticalTextPosition(AbstractButton.TOP);\n \t\tgrabButtons[i].setHorizontalTextPosition(AbstractButton.CENTER);\n \t\tgrabButtons[i].addActionListener(new ActionListener() {\n \t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\tGui.serverComm.writeStream(\"LOCK \" + x.getUniqueId());\n \t\t\t\tRobot.setRobotInUse(x.getRobotKey());\n \t\t\t\tRobot.setRobotInUseVideo(x.getRobotKey());\n \t\t\t\tvi.showVideo(x);\n \t\t\t\tjl.setText(x.getName());\n// \t\t\t\tif(Gui.serverComm.sendReqGrab()){\n// \t\t\t\t\tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n//\t \t \tRobot.setRobotInUse(x.getRobotKey());\n//\t \t \tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n//\t \t \tjl.setText(x.getName());\n//\t \t \tgrabButtons[x.getRobotKey()].setBackground(Color.green);\n//\t \t \tungrabButtons[x.getRobotKey()].setBackground(Color.red);\n// \t\t\t\t}\n// \t\t\t\telse{\n// \t\t\t\t\tjl.setText(\"Robot is Locked\");\n// \t\t\t\t}\n \t\t\t}\n \t\t});\n \t\t\n \t\tungrabButtons[i] = new JButton(\"Unlock\");\n \t\tungrabButtons[i].setFont(new Font(\"SansSerif\", Font.PLAIN, 9));\n \t\tungrabButtons[i].setPreferredSize(new Dimension(Width/3 + 15, 25)); // 3 15\n \t\tungrabButtons[i].setVerticalTextPosition(AbstractButton.TOP);\n \t\tungrabButtons[i].setHorizontalTextPosition(AbstractButton.CENTER);\n \t\tungrabButtons[i].addActionListener(new ActionListener() {\n \t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\tGui.serverComm.writeStream(\"UNLOCK \" + x.getUniqueId());\n \t\t\t\tRobot.setRobotInUse(-1);\n \t\t\t\t//unlockAll();\n \t\t\t\t//Robot.setRobotInUseVideo(-1);\n \t\t\t\tjl.setText(\"NO Robot in use\");\n// \t\t\t\tif(Gui.serverComm.sendReqUnGrab()){\n// \t\t\t\t\tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n//\t \t \tRobot.setRobotInUse(x.getRobotKey());\n//\t \t \tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n//\t \t \tjl.setText(x.getName());\n// \t\t\t\t}\n// \t\t\t\telse{\n// \t\t\t\t\tjl.setText(\"Robot is Locked\");\n// \t\t\t\t}\n \t\t\t}\n \t\t});\n \t\t\n \t\timageButtons[i] = new JButton(\"Image\");\n \t\timageButtons[i].setFont(new Font(\"SansSerif\", Font.PLAIN, 9)); // 8\n \t\timageButtons[i].setPreferredSize(new Dimension(Width/3 + 15, 25)); // 3 15\n \t\timageButtons[i].setVerticalTextPosition(AbstractButton.TOP);\n \t\timageButtons[i].setHorizontalTextPosition(AbstractButton.CENTER);\n \t\t// TODO: This needs to be implemented\n \t\t\n \t\tvideoButtons[i] = new JButton(\"Video\");\n \t\tvideoButtons[i].setFont(new Font(\"SansSerif\", Font.PLAIN, 9)); // 8\n \t\tvideoButtons[i].setPreferredSize(new Dimension(Width/3 + 15, 25)); // 3 15\n \t\tvideoButtons[i].setVerticalTextPosition(AbstractButton.TOP);\n \t\tvideoButtons[i].setHorizontalTextPosition(AbstractButton.CENTER);\n \t\tvideoButtons[i].addActionListener(new ActionListener() {\n \t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\tif(x.getHasCamera()){\n \t\t\t\t\t// These two lines are so we can see the video even if it is on loider. \n \t\t\t\t\tunlockAll();\n \t\t\t\t\tRobot.setRobotInUseVideo(x.getRobotKey());\n \t\t\t\tjl.setText(\"Video:\" + x.getName());\n \t\t\t\t\tvi.showVideo(x);\n \t\t\t\t}\n \t\t\t\telse{\n \t\t\t\t\t// Now this is done after the Robot is registered. \n \t\t\t\t\t// I have this here just in case we don't have this info for some reason.\n \t\t\t\t\tGui.serverComm.writeStream(\"ASKPLAYER \" + x.getUniqueId());\n \t\t\t\t\t// TODO: What does the GUI should do until we get the IP and port from the server? Pablo\n \t\t\t\t}\n \t\t\t}\n\n\t\t\t\t\n \t\t});\n \t\t\n \t\t// Wire the button with action listener that contains Robot key\n \t\t\n \t\tbuttons.add(robotButtons[i]);\n \t\tbuttons.add(grabButtons[i]);\n \t\tbuttons.add(ungrabButtons[i]);\n \t\tbuttons.add(imageButtons[i]);\n \t\tbuttons.add(videoButtons[i]);\n \t\t}\n \t\t\n \t\ti++;\n \t\t\n \t\t\n }\n\t add(buttons);\n\t validate();\n\t \n\t}", "public void addClickables() {\n\t\tclickable.add(button1.getBounds());\n\t\tbehaviors.put(clickable.get(0), () -> hideEscapeScreen());\n\t\tclickable.add(button3.getBounds());\n\t\tbehaviors.put(clickable.get(1), () -> Driver.getInstance().switchToScreen(new FFWorldMap()));\n\t\tclickable.add(button4.getBounds());\n\t\tbehaviors.put(clickable.get(2), () -> Driver.getInstance().switchToScreen(new FFMainMenu()));\n\t}", "public void destroy() {\n Iterator it = components.iterator();\n while (it.hasNext()) {\n PortletComponent comp = (PortletComponent) it.next();\n comp.destroy();\n }\n }", "private void loadRemoteOfficeComponents() {\r\n\t\tJTextArea objRemoteOfficeJTextArea;\r\n\t\tobjRemoteOfficeJTextArea = new JTextArea(getValue(strDescription));\r\n\t\tmakeWelcomeText(objRemoteOfficeJTextArea);\r\n\t\tobjRemoteOfficeJLabel = new JLabel(getValue(strPhoneNumber));\r\n\t\tobjRemoteOfficeJLabel.setBorder(new EmptyBorder(0, 7, 0, 5));\r\n\t\tobjRemoteOfficeJTextField = new JTextField(10);\r\n\r\n\t\tobjRemoteOfficeEnableJCheckBox = getSteelCheckBox();\r\n\t\tobjRemoteOfficeEnableJCheckBox.setText(getValue(strEnabled));\r\n\t\tobjRemoteOfficeEnableJCheckBox.setOpaque(false);\r\n\t\tobjRemoteOfficeEnableJCheckBox.setSelected(true);\r\n\t\ttry {\r\n\r\n\t\t\taddComponent(objRemoteOfficeJTextArea, 0, 0, 19, 2);\r\n\t\t\taddComponent(objRemoteOfficeEnableJCheckBox, 1, 2, 5, 1);\r\n\t\t\taddComponent(objRemoteOfficeJLabel, 2, 3, 5, 1);\r\n\t\t\taddComponent(objRemoteOfficeJTextField, 7, 3, 10, 1);\r\n\r\n\t\t} catch (InvalidGUIObjectException e) {\r\n\r\n\t\t}\r\n\r\n\t\tobjRemoteOfficeEnableJCheckBox.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tisChanged = true;\r\n\t\t\t\tif (objRemoteOfficeEnableJCheckBox.isSelected()) {\r\n\r\n\t\t\t\t\tobjRemoteOfficeJTextField.setEnabled(true);\r\n\t\t\t\t\tobjRemoteOfficeJLabel.setEnabled(true);\r\n\t\t\t\t\tfocusEnabled(objRemoteOfficeJTextField);\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tobjRemoteOfficeJTextField.setEnabled(false);\r\n\t\t\t\t\tobjRemoteOfficeJLabel.setEnabled(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tobjRemoteOfficeJTextField.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent arg0) {\r\n\t\t\t\tisChanged = true;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "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 SystemAdminWorkArea() {\n initComponents();\n }", "private void setViews() {\n\n }", "public void createSensors() {\n\t\t// calculates the height and width of the screen\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint width = (int) screenSize.getWidth();\n\t\tint height = (int) screenSize.getHeight();\n\n\t\t// color for border\n\t\tint red = 33;\n\t\tint green = 65;\n\t\tint blue = 114;\n\t\tColor myBlue = new Color(red, green, blue);\n\n\t\t// title label\n\t\ttitleLabel = new JLabel(\"CONFIGURATION PANEL\");\n\t\ttitleLabel.setFont(font);\n\t\ttitleLabel.setBounds(600, 7, 417, 50);\n\t\ttitleLabel.setForeground(myBlue);\n\t\tthis.add(titleLabel, BorderLayout.NORTH);\n\n\t\tthis.setBorder(BorderFactory.createStrokeBorder(new BasicStroke(20.0f),\n\t\t\t\tmyBlue));\n\n\t\t// label the displays the selected area\n\t\tsectionLabel = new JLabel(\"\");\n\t\tsectionLabel.setFont(font3);\n\t\tsectionLabel.setBounds(40, 145, 200, 50);\n\t\tsectionLabel.setForeground(Color.RED);\n\t\tthis.add(sectionLabel);\n\n\t\t// fire sensor check box\n\t\tfireSensor = new JCheckBox(\"Fire Sensor\");\n\t\tfireSensor.setFont(font);\n\t\tfireSensor.setBounds(35, 195, 115, 50);\n\t\tfireSensor.setForeground(Color.BLACK);\n\t\tfireSensor.setBackground(Color.WHITE);\n\t\tthis.add(fireSensor);\n\n\t\t// fire bell icon is displayed using the following label\n\t\tfetchfireBell();\n\t\tfireBellLabel = new JLabel(new ImageIcon(fireBellScaledImg));\n\t\tfireBellLabel.setBounds(150, 205, 25, 25);\n\t\tthis.add(fireBellLabel);\n\n\t\t// burglary sensor check box\n\t\tburglarySensor = new JCheckBox(\"Burglary Sensor\");\n\t\tburglarySensor.setFont(font);\n\t\tburglarySensor.setBounds(35, 245, 150, 50);\n\t\tburglarySensor.setForeground(Color.BLACK);\n\t\tburglarySensor.setBackground(Color.WHITE);\n\t\tthis.add(burglarySensor);\n\n\t\t// burglary bell icon is displayed using the following label\n\t\tfetchBurglaryBell();\n\t\tburglaryBellLabel = new JLabel(new ImageIcon(burglaryBellScaledImg));\n\t\tburglaryBellLabel.setBounds(189, 254, 25, 25);\n\t\tthis.add(burglaryBellLabel);\n\n\t\t// date label\n\t\tdateLabel = new JLabel(\"Date: \");\n\t\tdateLabel.setFont(font);\n\t\tdateLabel.setBounds(1106, 153, 150, 50);\n\t\tdateLabel.setForeground(Color.BLACK);\n\t\tdateLabel.setBackground(Color.WHITE);\n\t\tthis.add(dateLabel);\n\n\t\t// from date text field\n\t\tdateFromTf = new JTextField();\n\t\tdateFromTf.setFont(font1);\n\t\tdateFromTf.setBounds(1106, 193, 75, 30);\n\t\tdateFromTf.setForeground(Color.BLACK);\n\t\tdateFromTf.setBackground(Color.WHITE);\n\t\tthis.add(dateFromTf);\n\n\t\t// to date text field\n\t\tdateToTf = new JTextField();\n\t\tdateToTf.setFont(font1);\n\t\tdateToTf.setBounds(1186, 193, 75, 30);\n\t\tdateToTf.setForeground(Color.BLACK);\n\t\tdateToTf.setBackground(Color.WHITE);\n\t\tthis.add(dateToTf);\n\n\t\t// Weekdays label\n\t\tWDaysLbl = new JLabel(\"Time: Weekdays \");\n\t\tWDaysLbl.setFont(font);\n\t\tWDaysLbl.setBounds(1106, 243, 150, 50);\n\t\tWDaysLbl.setForeground(Color.BLACK);\n\t\tWDaysLbl.setBackground(Color.WHITE);\n\t\tthis.add(WDaysLbl);\n\n\t\t// util.date is converted to sql.date for compatibility with database\n\t\tjava.util.Date date = new java.util.Date();\n\t\tlong t = date.getTime();\n\t\tjava.sql.Time endTime = new java.sql.Time(t);\n\n\t\t// From time during week days text field\n\t\tWDFromTf = new JTextField(endTime.toString());\n\t\tWDFromTf.setFont(font1);\n\t\tWDFromTf.setBounds(1106, 293, 70, 30);\n\t\tWDFromTf.setForeground(Color.BLACK);\n\t\tWDFromTf.setBackground(Color.WHITE);\n\t\tthis.add(WDFromTf);\n\n\t\t// To time during week days text field\n\t\tWDToTf = new JTextField(endTime.toString());\n\t\tWDToTf.setFont(font1);\n\t\tWDToTf.setBounds(1186, 293, 70, 30);\n\t\tWDToTf.setForeground(Color.BLACK);\n\t\tWDToTf.setBackground(Color.WHITE);\n\t\tthis.add(WDToTf);\n\n\t\t// from time during week ends text field\n\t\tWEndsLbl = new JLabel(\"Time: Weekends\");\n\t\tWEndsLbl.setFont(font);\n\t\tWEndsLbl.setBounds(1106, 343, 150, 50);\n\t\tWEndsLbl.setForeground(Color.BLACK);\n\t\tWEndsLbl.setBackground(Color.WHITE);\n\t\tthis.add(WEndsLbl);\n\n\t\t// from time during week ends text field\n\t\tWEndsFrom = new JTextField(endTime.toString());\n\t\tWEndsFrom.setFont(font1);\n\t\tWEndsFrom.setBounds(1106, 393, 70, 30);\n\t\tWEndsFrom.setForeground(Color.BLACK);\n\t\tWEndsFrom.setBackground(Color.WHITE);\n\t\tthis.add(WEndsFrom);\n\n\t\t// to time during week ends text field\n\t\tWEndsTo = new JTextField(endTime.toString());\n\t\tWEndsTo.setFont(font1);\n\t\tWEndsTo.setBounds(1186, 393, 70, 30);\n\t\tWEndsTo.setForeground(Color.BLACK);\n\t\tWEndsTo.setBackground(Color.WHITE);\n\t\tthis.add(WEndsTo);\n\n\t\t// save sensors selection button\n\t\tsaveSensorsButton = new JButton(\"Save\");\n\t\tsaveSensorsButton.setFocusPainted(false);\n\t\tsaveSensorsButton.setFont(font1);\n\t\tsaveSensorsButton.setBounds(35, 295, 100, 30);\n\t\tsaveSensorsButton.setForeground(Color.BLACK);\n\t\tthis.add(saveSensorsButton);\n\n\t\t// activate sensors button to activate the schedule of the sensors\n\t\t// configured\n\t\tactivateSensorsButton = new JButton(\"Activate\");\n\t\tactivateSensorsButton.setFocusPainted(false);\n\t\tactivateSensorsButton.setFont(font1);\n\t\tactivateSensorsButton.setBounds(1105, 443, 100, 30);\n\t\tactivateSensorsButton.setForeground(Color.BLACK);\n\t\tthis.add(activateSensorsButton);\n\n\t}", "public Portlets() \r\n {\r\n super();\r\n _portletList = new Vector();\r\n }", "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 createComponents() {\n\t\tbuttons = new Button[9];\r\n\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\tbuttons[i] = new Button();\r\n\t\t}\r\n\r\n\t\t// Initialize components\r\n\t\tplayAgainButton = new Button(\"Play Again\");\r\n\t\tquitButton = new Button(\"Quit\");\r\n\r\n\t\t// Initialize layouts\r\n\t\tgameButtonGrid = new GridPane();\r\n\t\tgameButtonGrid.setStyle(\"-fx-background-color:Aquamarine;\");\r\n\t\tbottomButtonsHBox = new HBox();\r\n\t\tbottomButtonsHBox.setStyle(\"-fx-background-color:LightSlateGray;\");\r\n\t\tsceneVBox = new VBox();\r\n\t\t\r\n\t\t//Game components\r\n\t\tgameInfo = new GameInfo();\r\n\t}", "public void assignDimensionalControls() {\n frame = imp1.getWindow();\n Component[] comps = frame.getComponents();\n try {\n cSelectorChannel_ = (ScrollbarWithLabel) comps[1];\n if (comps.length > 2) {\n tSelectorTime_ = (ScrollbarWithLabel) comps[2];\n }\n if (comps.length > 3) {\n zSelectorZSlice_ = (ScrollbarWithLabel) comps[3];\n }\n } catch (Exception ex) {\n }\n try {\n pSelectorPos = (ScrollbarWithLabel) comps[4];\n } catch (Exception ex) {\n System.out.println(\n \"Warning: Orientation indicators could not attach to Position dim. It might not be present.\");\n }\n// if (imp1.getRoi() == null && imp1.getCanvas().getMagnification() > 1) {\n// Rectangle rec = new Rectangle(imp1.getCanvas().getSrcRect());\n// imp1.setRoi(rec);\n// }\n// if (\"Yes\".equals(UseListener) && \"Yes\".equals(EnableIndicators)) {\n// //loadParams();\n// addListeners();\n// } else {\n// //UseListener = \"No\";\n// EnableIndicators = \"No\";\n// removeListeners();\n// }\n }", "public MacOptionsPanel() {\n initComponents();\n setName (NbBundle.getMessage (MacOptionsPanel.class, \"LAB_ConfigureMac\"));\n \n }", "private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n enterpriseLabel = new javax.swing.JLabel();\n valueLabel = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n btnHomeless = new javax.swing.JButton();\n btnShelter = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(255, 255, 255));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(71, 79, 112));\n jLabel1.setText(\"Individual Work Area -Adminstrative Role\");\n add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 120, 600, -1));\n\n enterpriseLabel.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 18)); // NOI18N\n enterpriseLabel.setForeground(new java.awt.Color(71, 79, 112));\n enterpriseLabel.setText(\"Enterprise :\");\n add(enterpriseLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 230, 160, 30));\n\n valueLabel.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 18)); // NOI18N\n valueLabel.setForeground(new java.awt.Color(71, 79, 112));\n add(valueLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 240, 160, 30));\n\n jButton1.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 14)); // NOI18N\n jButton1.setForeground(new java.awt.Color(71, 79, 112));\n jButton1.setText(\"Manage Request\");\n jButton1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 410, 190, 80));\n\n btnHomeless.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 14)); // NOI18N\n btnHomeless.setForeground(new java.awt.Color(252, 8, 4));\n btnHomeless.setText(\"Homeless Found?? \");\n btnHomeless.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n btnHomeless.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnHomelessActionPerformed(evt);\n }\n });\n add(btnHomeless, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 520, 190, 80));\n\n btnShelter.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 14)); // NOI18N\n btnShelter.setForeground(new java.awt.Color(71, 79, 112));\n btnShelter.setText(\"Shelter Request\");\n btnShelter.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n btnShelter.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnShelterActionPerformed(evt);\n }\n });\n add(btnShelter, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 410, 200, 80));\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/utility/global-world-map-background-business-template-d-globe-40201747.jpg\"))); // NOI18N\n add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(-5, -4, 1300, 870));\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n panelIDE1 = new com.doscom.TeaLinuxInstaller.view.PanelIDE();\n panelIDE2 = new com.doscom.TeaLinuxInstaller.view.PanelIDE();\n panelIDE3 = new com.doscom.TeaLinuxInstaller.view.PanelIDE();\n panelIDE4 = new com.doscom.TeaLinuxInstaller.view.PanelIDE();\n panelIDE5 = new com.doscom.TeaLinuxInstaller.view.PanelIDE();\n panelIDE6 = new com.doscom.TeaLinuxInstaller.view.PanelIDE();\n panelIDE7 = new com.doscom.TeaLinuxInstaller.view.PanelIDE();\n panelIDE8 = new com.doscom.TeaLinuxInstaller.view.PanelIDE();\n panelIDE9 = new com.doscom.TeaLinuxInstaller.view.PanelIDE();\n panelIDE10 = new com.doscom.TeaLinuxInstaller.view.PanelIDE();\n\n panelIDE1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n panelIDE1MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n panelIDE1MouseEntered(evt);\n }\n });\n\n panelIDE2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n panelIDE2MouseClicked(evt);\n }\n });\n\n panelIDE3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n panelIDE3MouseClicked(evt);\n }\n });\n\n panelIDE4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n panelIDE4MouseClicked(evt);\n }\n });\n\n panelIDE5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n panelIDE5MouseClicked(evt);\n }\n });\n\n panelIDE6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n panelIDE6MouseClicked(evt);\n }\n });\n\n panelIDE7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n panelIDE7MouseClicked(evt);\n }\n });\n\n panelIDE8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n panelIDE8MouseClicked(evt);\n }\n });\n\n panelIDE9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n panelIDE9MouseClicked(evt);\n }\n });\n\n panelIDE10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n panelIDE10MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panelIDE1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(panelIDE2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(panelIDE3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(panelIDE4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(panelIDE5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(panelIDE6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(panelIDE7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(panelIDE8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(panelIDE9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(panelIDE10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(panelIDE1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panelIDE2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panelIDE3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panelIDE4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panelIDE5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panelIDE6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panelIDE7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panelIDE8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panelIDE9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(panelIDE10, 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 }", "public static void SingleComponents() {\n\t\tInterface.rndMapSingle.setPreferredSize(Interface.dim);\n\t\tInterface.rndMapSingle.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.rndMapSingle.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.rndMapSingle.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.rndMapSingle.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.constMap.setPreferredSize(Interface.dim);\n\t\tInterface.constMap.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.constMap.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.constMap.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.constMap.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.startGame.setPreferredSize(Interface.dim);\n\t\tInterface.startGame.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.startGame.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.startGame.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.startGame.setForeground(Color.white);\n\t}", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n mainPanel = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jListSwapMotes = new javax.swing.JList();\n jLabel1 = new javax.swing.JLabel();\n jLabelAddress = new javax.swing.JLabel();\n jLabelManufact = new javax.swing.JLabel();\n jLabelManufactDescr = new javax.swing.JLabel();\n jLabelProduct = new javax.swing.JLabel();\n jLabelProductDescr = new javax.swing.JLabel();\n jButtonConnect = new javax.swing.JButton();\n jLabelStatus = new javax.swing.JLabel();\n menuBar = new javax.swing.JMenuBar();\n javax.swing.JMenu fileMenu = new javax.swing.JMenu();\n javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();\n gatewayMenu = new javax.swing.JMenu();\n serialMenuItem = new javax.swing.JMenuItem();\n gNetMenuItem = new javax.swing.JMenuItem();\n deviceMenu = new javax.swing.JMenu();\n dNetMenuItem = new javax.swing.JMenuItem();\n chronosMenuItem = new javax.swing.JMenuItem();\n regMenuItem = new javax.swing.JMenuItem();\n javax.swing.JMenu helpMenu = new javax.swing.JMenu();\n javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();\n\n mainPanel.setName(\"mainPanel\"); // NOI18N\n mainPanel.setPreferredSize(new java.awt.Dimension(490, 270));\n\n jScrollPane1.setName(\"jScrollPane1\"); // NOI18N\n\n jListSwapMotes.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jListSwapMotes.setName(\"jListSwapMotes\"); // NOI18N\n jListSwapMotes.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n jListSwapMotesSelected(evt);\n }\n });\n jScrollPane1.setViewportView(jListSwapMotes);\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(swapdmt.SWAPdmtApp.class).getContext().getResourceMap(SWAPdmtView.class);\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n\n jLabelAddress.setText(resourceMap.getString(\"jLabelAddress.text\")); // NOI18N\n jLabelAddress.setName(\"jLabelAddress\"); // NOI18N\n\n jLabelManufact.setText(resourceMap.getString(\"jLabelManufact.text\")); // NOI18N\n jLabelManufact.setName(\"jLabelManufact\"); // NOI18N\n\n jLabelManufactDescr.setText(resourceMap.getString(\"jLabelManufactDescr.text\")); // NOI18N\n jLabelManufactDescr.setName(\"jLabelManufactDescr\"); // NOI18N\n\n jLabelProduct.setText(resourceMap.getString(\"jLabelProduct.text\")); // NOI18N\n jLabelProduct.setName(\"jLabelProduct\"); // NOI18N\n\n jLabelProductDescr.setText(resourceMap.getString(\"jLabelProductDescr.text\")); // NOI18N\n jLabelProductDescr.setName(\"jLabelProductDescr\"); // NOI18N\n\n jButtonConnect.setText(resourceMap.getString(\"jButtonConnect.text\")); // NOI18N\n jButtonConnect.setName(\"jButtonConnect\"); // NOI18N\n jButtonConnect.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonConnectPressed(evt);\n }\n });\n\n jLabelStatus.setText(resourceMap.getString(\"jLabelStatus.text\")); // NOI18N\n jLabelStatus.setName(\"jLabelStatus\"); // NOI18N\n\n javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);\n mainPanel.setLayout(mainPanelLayout);\n mainPanelLayout.setHorizontalGroup(\n mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 220, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(24, 24, 24)\n .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelManufact)\n .addComponent(jLabelProduct)\n .addComponent(jLabelAddress)\n .addComponent(jLabelProductDescr, javax.swing.GroupLayout.DEFAULT_SIZE, 218, Short.MAX_VALUE)\n .addComponent(jLabelManufactDescr, javax.swing.GroupLayout.DEFAULT_SIZE, 218, Short.MAX_VALUE))))\n .addGap(378, 378, 378))\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addComponent(jButtonConnect, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabelStatus)\n .addContainerGap())))\n );\n mainPanelLayout.setVerticalGroup(\n mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()\n .addComponent(jLabelManufact)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabelManufactDescr)\n .addGap(5, 5, 5)\n .addComponent(jLabelProduct)\n .addGap(4, 4, 4)\n .addComponent(jLabelProductDescr)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabelAddress)\n .addGap(85, 85, 85)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonConnect)\n .addComponent(jLabelStatus))\n .addGap(8, 8, 8))\n );\n\n menuBar.setName(\"menuBar\"); // NOI18N\n\n fileMenu.setText(resourceMap.getString(\"fileMenu.text\")); // NOI18N\n fileMenu.setName(\"fileMenu\"); // NOI18N\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(swapdmt.SWAPdmtApp.class).getContext().getActionMap(SWAPdmtView.class, this);\n exitMenuItem.setAction(actionMap.get(\"quit\")); // NOI18N\n exitMenuItem.setName(\"exitMenuItem\"); // NOI18N\n fileMenu.add(exitMenuItem);\n\n menuBar.add(fileMenu);\n\n gatewayMenu.setText(resourceMap.getString(\"gatewayMenu.text\")); // NOI18N\n gatewayMenu.setName(\"gatewayMenu\"); // NOI18N\n\n serialMenuItem.setAction(actionMap.get(\"showSerialBox\")); // NOI18N\n serialMenuItem.setText(resourceMap.getString(\"serialMenuItem.text\")); // NOI18N\n serialMenuItem.setName(\"serialMenuItem\"); // NOI18N\n gatewayMenu.add(serialMenuItem);\n\n gNetMenuItem.setAction(actionMap.get(\"showGnetBox\")); // NOI18N\n gNetMenuItem.setText(resourceMap.getString(\"gNetMenuItem.text\")); // NOI18N\n gNetMenuItem.setName(\"gNetMenuItem\"); // NOI18N\n gatewayMenu.add(gNetMenuItem);\n\n menuBar.add(gatewayMenu);\n\n deviceMenu.setText(resourceMap.getString(\"deviceMenu.text\")); // NOI18N\n deviceMenu.setName(\"deviceMenu\"); // NOI18N\n\n dNetMenuItem.setAction(actionMap.get(\"showDnetBox\")); // NOI18N\n dNetMenuItem.setText(resourceMap.getString(\"dNetMenuItem.text\")); // NOI18N\n dNetMenuItem.setName(\"dNetMenuItem\"); // NOI18N\n deviceMenu.add(dNetMenuItem);\n\n chronosMenuItem.setAction(actionMap.get(\"showChronosBox\")); // NOI18N\n chronosMenuItem.setText(resourceMap.getString(\"chronosMenuItem.text\")); // NOI18N\n chronosMenuItem.setName(\"chronosMenuItem\"); // NOI18N\n deviceMenu.add(chronosMenuItem);\n\n regMenuItem.setAction(actionMap.get(\"showSetRegisterBox\")); // NOI18N\n regMenuItem.setText(resourceMap.getString(\"regMenuItem.text\")); // NOI18N\n regMenuItem.setName(\"regMenuItem\"); // NOI18N\n deviceMenu.add(regMenuItem);\n\n menuBar.add(deviceMenu);\n\n helpMenu.setText(resourceMap.getString(\"helpMenu.text\")); // NOI18N\n helpMenu.setName(\"helpMenu\"); // NOI18N\n\n aboutMenuItem.setAction(actionMap.get(\"showAboutBox\")); // NOI18N\n aboutMenuItem.setName(\"aboutMenuItem\"); // NOI18N\n helpMenu.add(aboutMenuItem);\n\n menuBar.add(helpMenu);\n\n setComponent(mainPanel);\n setMenuBar(menuBar);\n }", "private void addComponents()\n\t{\n\t\tPrinter currentPrinter;\n\t\tadd(m_ResultHeader);\n\t\tfor(int i = 2; i <= m_PrinterList.getNumberOfPrinters()+1; i++)\n\t\t{\n\t\t\t// Convert values to Strings\n\t\t\tcurrentPrinter = m_PrinterList.getPrinter(i-2);\n\t\t\tadd(new PrinterLabel(i,MenuWindow.FRAME_WIDTH , MenuWindow.FRAME_HEIGHT,\n\t\t\t\t\tcurrentPrinter.getPrinterName()+ \"\",\n\t\t\t\t\tcurrentPrinter.getVendor(),\n\t\t\t\t\tcurrentPrinter.getTension()+ \"\",\n\t\t\t\t\tcurrentPrinter.getCompression()+ \"\",\n\t\t\t\t\tcurrentPrinter.getImpact()+ \"\",\n\t\t\t\t\tcurrentPrinter.materialsString(),\n\t\t\t\t\tcurrentPrinter.getTolerance()+ \"\",\n\t\t\t\t\tcurrentPrinter.getFinish()+ \"\", true));\n\t\t}\n\t}", "private void createUIComponents() {\n Fond = new JLabel(new ImageIcon(\"maxresdefault.jpg\"));\r\n Fond.setIcon(new ImageIcon(\"maxresdefault.jpg\"));\r\n }", "private void setupGUI() {\r\n\t\tnetPaintClient = new NetPaintClient(out, clientName);\t\r\n\t\tnetPaintClient.addWindowListener(new WindowAdapter(){\r\n\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\t\t\ttry {\r\n\t\t\t\tout.writeObject(new DisconnectCommand(clientName));\r\n\t\t\t\tout.close();\r\n\t\t\t\tin.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\t}", "public gui() {\n initComponents();\n jLayeredPane1.setVisible(false);\n jLayeredPane2.setVisible(false);\n// jTextArea1.addMouseListener(new ContextMenuMouseListener());\n// jTextArea1.setDragEnabled(true);\n \n }", "public void inicializarFrames(){ // hay que enviar tambien la direccion IP\r\n \r\n this.empView = new Employees(this.user,this.host);\r\n this.equiView = new Equipments(this.user,this.host);\r\n this.deptView = new Departments(this.user,this.host);\r\n this.loctView = new Locations(this.user,this.host);\r\n this.artView = new Articles(this.user,this.host);\r\n this.suppView = new Suppliers(this.user,this.host);\r\n this.instView = new Instructions(this.user,this.host);\r\n this.mantView = new Mantenimiento(this.user,this.host);\r\n this.ordtrView = new OrdenTrabajo(this.user,this.host); \r\n this.repView = new Reports(this.user,this.host);\r\n this.pedView = new Pedidos(/*this.user,*/this.host);\r\n this.opeView = new Operabilidad(/*this.user,*/this.host);\r\n}", "public Bebawy_Hotels() \n\t{\n\t\tinitComponent();\n\t\tcreateEvent();\t\n\t}", "public void initializeConnections(){\n cc = new ConnectorContainer();\n cc.setLayout(null);\n cc.setAutoscrolls(true);\n connections = new LinkedList<JConnector>();\n agents = new LinkedList<JConnector>();\n }", "public MainUI() throws UnknownHostException {\n initComponents();\n //server();\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\nwidth = screenSize.getWidth();\n height = screenSize.getHeight();\n setIcon();\n \n }", "private void createUI(Container pane) {\n try {\n setupTrayIcon();\n } catch (Exception e) { }\n\n EmptyBorder emptyBorder = new EmptyBorder(5, 5, 5, 5);\n GridBagConstraints gbc = new GridBagConstraints();\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weightx = 1; gbc.ipadx = 2; gbc.gridx = 0;\n gbc.weighty = 0; gbc.ipady = 2; gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.PAGE_START;\n\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {\n LOGGER.error(\"[!] Exception setting system theme:\", e);\n }\n\n ripTextfield = new JTextField(\"\", 20);\n ripTextfield.addMouseListener(new ContextMenuMouseListener());\n ImageIcon ripIcon = new ImageIcon(mainIcon);\n ripButton = new JButton(\"<html><font size=\\\"5\\\"><b>Rip</b></font></html>\", ripIcon);\n stopButton = new JButton(\"<html><font size=\\\"5\\\"><b>Stop</b></font></html>\");\n stopButton.setEnabled(false);\n try {\n Image stopIcon = ImageIO.read(getClass().getClassLoader().getResource(\"stop.png\"));\n stopButton.setIcon(new ImageIcon(stopIcon));\n } catch (Exception ignored) { }\n JPanel ripPanel = new JPanel(new GridBagLayout());\n ripPanel.setBorder(emptyBorder);\n\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weightx = 0;\n gbc.gridx = 0; ripPanel.add(new JLabel(\"URL:\", JLabel.RIGHT), gbc);\n gbc.weightx = 1;\n gbc.weighty = 1;\n gbc.gridx = 1; ripPanel.add(ripTextfield, gbc);\n gbc.weighty = 0;\n gbc.weightx = 0;\n gbc.gridx = 2; ripPanel.add(ripButton, gbc);\n gbc.gridx = 3; ripPanel.add(stopButton, gbc);\n gbc.weightx = 1;\n\n statusLabel = new JLabel(rb.getString(\"inactive\"));\n statusLabel.setHorizontalAlignment(JLabel.CENTER);\n openButton = new JButton();\n openButton.setVisible(false);\n JPanel statusPanel = new JPanel(new GridBagLayout());\n statusPanel.setBorder(emptyBorder);\n\n gbc.gridx = 0; statusPanel.add(statusLabel, gbc);\n gbc.gridy = 1; statusPanel.add(openButton, gbc);\n gbc.gridy = 0;\n\n JPanel progressPanel = new JPanel(new GridBagLayout());\n progressPanel.setBorder(emptyBorder);\n statusProgress = new JProgressBar(0, 100);\n progressPanel.add(statusProgress, gbc);\n\n JPanel optionsPanel = new JPanel(new GridBagLayout());\n optionsPanel.setBorder(emptyBorder);\n optionLog = new JButton(rb.getString(\"Log\"));\n optionHistory = new JButton(rb.getString(\"History\"));\n optionQueue = new JButton(rb.getString(\"Queue\"));\n optionConfiguration = new JButton(rb.getString(\"Configuration\"));\n optionLog.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionHistory.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionQueue.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionConfiguration.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n try {\n Image icon;\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"comment.png\"));\n optionLog.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"time.png\"));\n optionHistory.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"list.png\"));\n optionQueue.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"gear.png\"));\n optionConfiguration.setIcon(new ImageIcon(icon));\n } catch (Exception e) { }\n gbc.gridx = 0; optionsPanel.add(optionLog, gbc);\n gbc.gridx = 1; optionsPanel.add(optionHistory, gbc);\n gbc.gridx = 2; optionsPanel.add(optionQueue, gbc);\n gbc.gridx = 3; optionsPanel.add(optionConfiguration, gbc);\n\n logPanel = new JPanel(new GridBagLayout());\n logPanel.setBorder(emptyBorder);\n logText = new JTextPane();\n logText.setEditable(false);\n JScrollPane logTextScroll = new JScrollPane(logText);\n logTextScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n logPanel.setVisible(false);\n logPanel.setPreferredSize(new Dimension(300, 250));\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n logPanel.add(logTextScroll, gbc);\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weighty = 0;\n\n historyPanel = new JPanel(new GridBagLayout());\n historyPanel.setBorder(emptyBorder);\n historyPanel.setVisible(false);\n historyPanel.setPreferredSize(new Dimension(300, 250));\n historyTableModel = new AbstractTableModel() {\n private static final long serialVersionUID = 1L;\n @Override\n public String getColumnName(int col) {\n return HISTORY.getColumnName(col);\n }\n @Override\n public Class<?> getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }\n @Override\n public Object getValueAt(int row, int col) {\n return HISTORY.getValueAt(row, col);\n }\n @Override\n public int getRowCount() {\n return HISTORY.toList().size();\n }\n @Override\n public int getColumnCount() {\n return HISTORY.getColumnCount();\n }\n @Override\n public boolean isCellEditable(int row, int col) {\n return (col == 0 || col == 4);\n }\n @Override\n public void setValueAt(Object value, int row, int col) {\n if (col == 4) {\n HISTORY.get(row).selected = (Boolean) value;\n historyTableModel.fireTableDataChanged();\n }\n }\n };\n historyTable = new JTable(historyTableModel);\n historyTable.addMouseListener(new HistoryMenuMouseListener());\n historyTable.setAutoCreateRowSorter(true);\n for (int i = 0; i < historyTable.getColumnModel().getColumnCount(); i++) {\n int width = 130; // Default\n switch (i) {\n case 0: // URL\n width = 270;\n break;\n case 3:\n width = 40;\n break;\n case 4:\n width = 15;\n break;\n }\n historyTable.getColumnModel().getColumn(i).setPreferredWidth(width);\n }\n JScrollPane historyTableScrollPane = new JScrollPane(historyTable);\n historyButtonRemove = new JButton(rb.getString(\"remove\"));\n historyButtonClear = new JButton(rb.getString(\"clear\"));\n historyButtonRerip = new JButton(rb.getString(\"re-rip.checked\"));\n gbc.gridx = 0;\n // History List Panel\n JPanel historyTablePanel = new JPanel(new GridBagLayout());\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n historyTablePanel.add(historyTableScrollPane, gbc);\n gbc.ipady = 180;\n gbc.gridy = 0;\n historyPanel.add(historyTablePanel, gbc);\n gbc.ipady = 0;\n JPanel historyButtonPanel = new JPanel(new GridBagLayout());\n historyButtonPanel.setPreferredSize(new Dimension(300, 10));\n historyButtonPanel.setBorder(emptyBorder);\n gbc.gridx = 0; historyButtonPanel.add(historyButtonRemove, gbc);\n gbc.gridx = 1; historyButtonPanel.add(historyButtonClear, gbc);\n gbc.gridx = 2; historyButtonPanel.add(historyButtonRerip, gbc);\n gbc.gridy = 1; gbc.gridx = 0;\n gbc.weighty = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n historyPanel.add(historyButtonPanel, gbc);\n\n queuePanel = new JPanel(new GridBagLayout());\n queuePanel.setBorder(emptyBorder);\n queuePanel.setVisible(false);\n queuePanel.setPreferredSize(new Dimension(300, 250));\n queueListModel = new DefaultListModel();\n JList queueList = new JList(queueListModel);\n queueList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n queueList.addMouseListener(new QueueMenuMouseListener());\n JScrollPane queueListScroll = new JScrollPane(queueList,\n JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n for (String item : Utils.getConfigList(\"queue\")) {\n queueListModel.addElement(item);\n }\n updateQueueLabel();\n gbc.gridx = 0;\n JPanel queueListPanel = new JPanel(new GridBagLayout());\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n queueListPanel.add(queueListScroll, gbc);\n queuePanel.add(queueListPanel, gbc);\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weighty = 0;\n gbc.ipady = 0;\n\n configurationPanel = new JPanel(new GridBagLayout());\n configurationPanel.setBorder(emptyBorder);\n configurationPanel.setVisible(false);\n // TODO Configuration components\n configUpdateButton = new JButton(rb.getString(\"check.for.updates\"));\n configUpdateLabel = new JLabel( rb.getString(\"current.version\") + \": \" + UpdateUtils.getThisJarVersion(), JLabel.RIGHT);\n configThreadsLabel = new JLabel(rb.getString(\"max.download.threads\") + \":\", JLabel.RIGHT);\n configTimeoutLabel = new JLabel(rb.getString(\"timeout.mill\"), JLabel.RIGHT);\n configRetriesLabel = new JLabel(rb.getString(\"retry.download.count\"), JLabel.RIGHT);\n configThreadsText = new JTextField(Integer.toString(Utils.getConfigInteger(\"threads.size\", 3)));\n configTimeoutText = new JTextField(Integer.toString(Utils.getConfigInteger(\"download.timeout\", 60000)));\n configRetriesText = new JTextField(Integer.toString(Utils.getConfigInteger(\"download.retries\", 3)));\n configOverwriteCheckbox = addNewCheckbox(rb.getString(\"overwrite.existing.files\"), \"file.overwrite\", false);\n configAutoupdateCheckbox = addNewCheckbox(rb.getString(\"auto.update\"), \"auto.update\", true);\n configPlaySound = addNewCheckbox(rb.getString(\"sound.when.rip.completes\"), \"play.sound\", false);\n configShowPopup = addNewCheckbox(rb.getString(\"notification.when.rip.starts\"), \"download.show_popup\", false);\n configSaveOrderCheckbox = addNewCheckbox(rb.getString(\"preserve.order\"), \"download.save_order\", true);\n configSaveLogs = addNewCheckbox(rb.getString(\"save.logs\"), \"log.save\", false);\n configSaveURLsOnly = addNewCheckbox(rb.getString(\"save.urls.only\"), \"urls_only.save\", false);\n configSaveAlbumTitles = addNewCheckbox(rb.getString(\"save.album.titles\"), \"album_titles.save\", true);\n configClipboardAutorip = addNewCheckbox(rb.getString(\"autorip.from.clipboard\"), \"clipboard.autorip\", false);\n configSaveDescriptions = addNewCheckbox(rb.getString(\"save.descriptions\"), \"descriptions.save\", true);\n configPreferMp4 = addNewCheckbox(rb.getString(\"prefer.mp4.over.gif\"),\"prefer.mp4\", false);\n configWindowPosition = addNewCheckbox(rb.getString(\"restore.window.position\"), \"window.position\", true);\n configURLHistoryCheckbox = addNewCheckbox(rb.getString(\"remember.url.history\"), \"remember.url_history\", true);\n configUrlFileChooserButton = new JButton(rb.getString(\"download.url.list\"));\n\n configLogLevelCombobox = new JComboBox<>(new String[] {\"Log level: Error\", \"Log level: Warn\", \"Log level: Info\", \"Log level: Debug\"});\n configSelectLangComboBox = new JComboBox<>(supportedLanges);\n configLogLevelCombobox.setSelectedItem(Utils.getConfigString(\"log.level\", \"Log level: Debug\"));\n setLogLevel(configLogLevelCombobox.getSelectedItem().toString());\n configSaveDirLabel = new JLabel();\n try {\n String workingDir = (Utils.shortenPath(Utils.getWorkingDirectory()));\n configSaveDirLabel.setText(workingDir);\n configSaveDirLabel.setForeground(Color.BLUE);\n configSaveDirLabel.setCursor(new Cursor(Cursor.HAND_CURSOR));\n } catch (Exception e) { }\n configSaveDirLabel.setToolTipText(configSaveDirLabel.getText());\n configSaveDirLabel.setHorizontalAlignment(JLabel.RIGHT);\n configSaveDirButton = new JButton(rb.getString(\"select.save.dir\") + \"...\");\n\n addItemToConfigGridBagConstraints(gbc, 0, configUpdateLabel, configUpdateButton);\n addItemToConfigGridBagConstraints(gbc, 1, configAutoupdateCheckbox, configLogLevelCombobox);\n addItemToConfigGridBagConstraints(gbc, 2, configThreadsLabel, configThreadsText);\n addItemToConfigGridBagConstraints(gbc, 3, configTimeoutLabel, configTimeoutText);\n addItemToConfigGridBagConstraints(gbc, 4, configRetriesLabel, configRetriesText);\n addItemToConfigGridBagConstraints(gbc, 5, configOverwriteCheckbox, configSaveOrderCheckbox);\n addItemToConfigGridBagConstraints(gbc, 6, configPlaySound, configSaveLogs);\n addItemToConfigGridBagConstraints(gbc, 7, configShowPopup, configSaveURLsOnly);\n addItemToConfigGridBagConstraints(gbc, 8, configClipboardAutorip, configSaveAlbumTitles);\n addItemToConfigGridBagConstraints(gbc, 9, configSaveDescriptions, configPreferMp4);\n addItemToConfigGridBagConstraints(gbc, 10, configWindowPosition, configURLHistoryCheckbox);\n addItemToConfigGridBagConstraints(gbc, 11, configSelectLangComboBox, configUrlFileChooserButton);\n addItemToConfigGridBagConstraints(gbc, 12, configSaveDirLabel, configSaveDirButton);\n\n\n\n\n emptyPanel = new JPanel();\n emptyPanel.setPreferredSize(new Dimension(0, 0));\n emptyPanel.setSize(0, 0);\n\n gbc.anchor = GridBagConstraints.PAGE_START;\n gbc.gridy = 0; pane.add(ripPanel, gbc);\n gbc.gridy = 1; pane.add(statusPanel, gbc);\n gbc.gridy = 2; pane.add(progressPanel, gbc);\n gbc.gridy = 3; pane.add(optionsPanel, gbc);\n gbc.weighty = 1;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.gridy = 4; pane.add(logPanel, gbc);\n gbc.gridy = 5; pane.add(historyPanel, gbc);\n gbc.gridy = 5; pane.add(queuePanel, gbc);\n gbc.gridy = 5; pane.add(configurationPanel, gbc);\n gbc.gridy = 5; pane.add(emptyPanel, gbc);\n gbc.weighty = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n }", "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 }", "private JPanel getJPTiposVms()\n\t{\n\t\tif ( jPTiposVms == null )\n\t\t{\n\t\t\tjPTiposVms = new JPanel();\n\t\t\tjPTiposVms.setLayout(null);\n\t\t\tjPTiposVms.setBounds(new Rectangle(275, 33, 260, 125));\n\t\t\tjPTiposVms.add(getJCSmall(), null);\n\t\t\tjPTiposVms.add(getJCBLarge(), null);\n\t\t\tjPTiposVms.add(getJCBExtra(), null);\n\t\t\tjPTiposVms.setBorder(BorderFactory.createLineBorder(Color.gray));\n\t\t\tjPTiposVms.setBorder(BorderFactory.createTitledBorder(\"Timpos VMs\"));\n\n\t\t}\n\t\treturn jPTiposVms;\n\t}", "protected void addOscServerAddressPanel() {\n\n\t\t// variable addressPanel holds an instance of JPanel.\n\t\t// instance of JPanel received from makeNewJPanel method\n\t\tfinal JPanel addressPanel = makeNewJPanel1();\n\t\taddressPanel.setBackground(new Color(123, 150, 123));\n\t\t// variable addressWidget holds an instance of JTextField\n\t\taddressWidget = new JTextField(\"localhost\");\n\t\t// variable setAddressButton holds an insatnce of JButton with\n\t\t// a \"Set Address\" argument for its screen name\n\t\tfinal JButton setAddressButton = new JButton(\"Set Address\");\n\t\tsetAddressButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\t// perform the addressChanged method when action is received\n\t\t\t\taddressChanged();\n\t\t\t}\n\t\t});\n\n\t\t// variable portWidget holds an instance of JLabel with the OSCPortOut\n\t\t// as the text it looks like OSCPortOut has a method to get the default\n\t\t// SuperCollider port\n\t\tportWidget = new JLabel(Integer.toString(OSCPort.defaultSCOSCPort()));\n\n\t\tportWidget.setForeground(new Color(255, 255, 255));\n\t\tfinal JLabel portLabel = new JLabel(\"Port\");\n\t\tportLabel.setForeground(new Color(255, 255, 255));\n\n\t\t// add the setAddressButton to the addressPanel\n\t\taddressPanel.add(setAddressButton);\n\t\t// portWidget = new JTextField(\"57110\");\n\t\t// add the addressWidget to the addressPanel\n\t\taddressPanel.add(addressWidget);\n\t\t// add the JLabel \"Port\" to the addressPanel\n\t\taddressPanel.add(portLabel);\n\t\t// add te portWidget tot eh addressPanel\n\t\taddressPanel.add(portWidget);\n\n\t\t//??? add address panel to the JPanel OscUI\n\t\tadd(addressPanel);\n\t}", "private void CreateToolBars(){\n toolBar = new ToolBar();\n btoolBar = new ToolBar();\n login=new Button(\"Login\");\n simulate=new Button(\"Simulate\");\n scoreBoardButton=new Button(\"ScoreBoard\");\n viewBracket= new Button(\"view Bracket\");\n clearButton=new Button(\"Clear\");\n resetButton=new Button(\"Reset\");\n finalizeButton=new Button(\"Finalize\");\n toolBar.getItems().addAll(\n createSpacer(),\n login,\n simulate,\n scoreBoardButton,\n viewBracket,\n createSpacer()\n );\n btoolBar.getItems().addAll(\n createSpacer(),\n clearButton,\n resetButton,\n finalizeButton,\n createSpacer()\n );\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }" ]
[ "0.597564", "0.5791874", "0.57534266", "0.57144916", "0.57094467", "0.5641334", "0.5510576", "0.5489671", "0.5392636", "0.5392436", "0.5384222", "0.53617257", "0.53119004", "0.53112495", "0.52875525", "0.5277807", "0.5272298", "0.5270107", "0.5238796", "0.52263224", "0.52261496", "0.5191005", "0.5190301", "0.51884097", "0.51848805", "0.51842034", "0.5177461", "0.5168446", "0.5167814", "0.51581013", "0.5158026", "0.5154099", "0.51528186", "0.51427597", "0.51359195", "0.5135514", "0.5128846", "0.51122856", "0.5104756", "0.5104154", "0.5098596", "0.5083655", "0.5081035", "0.5081035", "0.50760174", "0.5068403", "0.50625765", "0.50591224", "0.505772", "0.50505966", "0.50444186", "0.5023248", "0.5016925", "0.5005349", "0.49961185", "0.4995826", "0.49949777", "0.49905962", "0.49898604", "0.4989156", "0.49876902", "0.49832782", "0.4977234", "0.4974881", "0.49732965", "0.49711922", "0.49688038", "0.49649435", "0.496431", "0.49642223", "0.49627933", "0.4959907", "0.49574575", "0.4955301", "0.4952557", "0.49476185", "0.49469823", "0.49439535", "0.49396548", "0.49361303", "0.4933962", "0.49339584", "0.4931923", "0.49313945", "0.49300134", "0.49291825", "0.49262244", "0.4925883", "0.49215892", "0.49186933", "0.4916511", "0.4916511", "0.4916511", "0.4916511", "0.4916511", "0.4916511", "0.4916511", "0.4916511", "0.4916511", "0.4916511" ]
0.64021116
0
To prevent singleton property
public Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private PropertySingleton(){}", "private StaticProperty() {}", "@Serialize//(getName = \"property\")\r\n public boolean getIsSingleton()\r\n\t{\r\n\t\treturn _isSingleton; \r\n\t}", "@Override\n public boolean isSingleton() {\n return false;\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "private DiffProperty() {\n\t\t// No implementation\n\t}", "private ReadProperty()\r\n {\r\n\r\n }", "private PropertyHolder() {\n }", "public Property getProperty() {\n\treturn commonproperty;\r\n}", "public static PropertyUtil getInstance(){\t\t\n\t\tif(resource==null){\n\t\t\tresource = new PropertyUtil();\n\t\t}\n\t\treturn resource;\n\t}", "public boolean isSingleton() {\n\t\treturn false;\r\n\t}", "private Object readResolve() {\n\t\treturn singletonObj;\n\t}", "public boolean isSingleton() {\n\t\treturn false;\n\t}", "public boolean getShared(){\n return this.shared;\n }", "private EagerInitializedSingleton() {\n\t}", "private EagerInitializedSingleton() {\n\t}", "protected Object readResolve(){\n return singletonInstance;\n }", "public static PropertyHolder getInstance() {\n if (singletonHolder == null) {\n singletonHolder = new PropertyHolder();\n }\n return singletonHolder;\n }", "private SingletonDoubleCheck() {}", "private SingletonEager(){\n \n }", "static void setNotCopying(){isCopying=false;}", "private SingletonLectorPropiedades() {\n\t}", "public static SingleObject getInstance(){\n return instance;\n }", "public Property() {}", "public SpotPropertyManager() {\r\n\t\tsuper();\r\n\t}", "private LazySingleton(){}", "@Override\n public boolean isMutable() {\n return true;\n }", "static void setNotAutoCopy(){isAutoCopying=false;}", "public boolean isSingleton()\n\t{\n\t\treturn true;\n\t}", "protected boolean keepCurrentPropertyKey() {\n return newPropertyKey == null;\n }", "public static String lazyInit(){\n\t\tthrow new IllegalStateException(\"Lombok were supposed to inject this variable\");\n\t}", "private EagerInitializationSingleton() {\n\t}", "public boolean getPropertyAlive();", "private PropertiesGetter() {\n // do nothing\n }", "public static Boolean getSingleton() {\r\n\t\treturn singleton;\r\n\t}", "private Singleton(){}", "private AirforceOne_lazy() {\n }", "@Test\n\tpublic void testPropertyStateful() {\n\t\tfinal Base base = context.mock(Base.class);\n\t\tcontext.checking(new PropertyEnabledExpectations() {\n\t\t\t{\n\t\t\t\tallowingProperty(base).getId();\n\t\t\t}\n\t\t});\n\n\t\tfinal String key1 = \"something\";\n\t\tfinal String key2 = \"another\";\n\n\t\tbase.setId(key1);\n\t\tassertEquals(key1, base.getId());\n\t\tbase.setId(key2);\n\t\tassertEquals(key2, base.getId());\n\t}", "private SingletonClass() {\n x = 10;\n }", "@Override\n public boolean isMutable()\n {\n return true;\n }", "@Before(order=0)\n\tpublic void getProperty() {\n\t\tconfigReader = new ConfigReaders();\n\t\tprop = configReader.init_prop();\n\t\t\n\t}", "@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}", "@Override\r\n public void inject(ConcurrentMap<String, Object> singleton, Object bean, Field field) {\n Reflections.setField(bean, field, field.getAnnotation(Value.class).value());\r\n }", "private Object readResolve() \r\n { \r\n return instance; \r\n }", "private Value() {\n\t}", "static void setCopying(){isCopying=true;}", "private Singleton() {\n\t}", "private GlobalPrefs() {\n\t\tprops = new Properties();\n\t}", "private Singleton()\n\t\t{\n\t\t}", "Property createProperty();", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "private EagerlySinleton()\n\t{\n\t}", "synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }", "@Override\n public String getProperty(String s) {\n return null;\n }", "private Object readResolve() {\n\t\treturn INSTANCE;\n\t}", "private Object readResolve() {\n return INSTANCE;\n }", "private Object readResolve() {\n return INSTANCE;\n }", "private PropertiesUtilis() {\n throw new UnsupportedOperationException(\"PropertiesUtilis instantiation\" + \n \"not allowed !\");\n }", "private PropertiesHelper() {\n throw new AssertionError(\"Cannot instantiate this class\");\n }", "public Property()\r\n {\r\n }", "private Singleton() { }", "protected PropertyChangeSupport getPropertyChange() {\r\n\t\tif (propertyChange == null) {\r\n\t\t\tpropertyChange = new PropertyChangeSupport(this);\r\n\t\t}\r\n\t\t;\r\n\t\treturn propertyChange;\r\n\t}", "public void enablePropertyAlive()\n {\n iPropertyAlive = new PropertyBool(new ParameterBool(\"Alive\"));\n addProperty(iPropertyAlive);\n }", "private DatabaseValidationProperties() {}", "public SharedPref() {\n super();\n }", "private PropertiesUtils() {}", "private Property(String value) {\n\t\t\tthis.value = value;\n\t\t}", "private Property(String value) {\n\t\t\tthis.value = value;\n\t\t}", "private SingleObject(){}", "public Object _duplicate() {\n throw new NO_IMPLEMENT(reason);\n }", "protected List getProperties() {\n return null;\n }", "@Override\n public Object onRetainCustomNonConfigurationInstance() {\n RetainData data = new RetainData();\n data.validator = mValidator;\n if (mProgress != null) data.progressMessage = mProgressMessage;\n data.syncing = mSyncing;\n return data;\n }", "@Override\n public void get() {}", "private PropertySetFactory() {}", "protected T createNewValueOnFlush() {\n \t\treturn null;\n \t}", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "public final BooleanProperty autoConsumeProperty()\n {\n return myAutoConsumeProperty;\n }", "@Test\n\tpublic void testPropertyInSuper() {\n\t\tfinal Valuable valuable = context.mock(Valuable.class);\n\t\tcontext.checking(new PropertyEnabledExpectations() {\n\t\t\t{\n\t\t\t\tallowingProperty(valuable).getId();\n\t\t\t\twill(returnValue(INITIAL));\n\t\t\t}\n\t\t});\n\n\t\tassertEquals(\"Initial value not set\", INITIAL, valuable.getId());\n\t}", "public boolean setPropertyAlive(boolean aValue);", "private Get() {}", "private Get() {}", "private SingletonSigar(){}", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "private Singleton(){\n }", "@Override\r\n\tpublic void copy(Property p) {\n\t\t\r\n\t}", "@Override\n public boolean isConstant() {\n return false;\n }", "DispatchingProperties() {\r\n\t\tsuper();\r\n\t\t// if (handler != null) {\r\n\t\t// throw new\r\n\t\t// RuntimeException(\"ServicePropertiesHandler: class already instantiated!\");\r\n\t\t// }\r\n\t\t// handler = this;\r\n\t}", "private mxPropertiesManager()\n\t{\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private FanState() {\n\t\tinstance = this;\n\t}", "protected java.beans.PropertyChangeSupport getPropertyChange() {\r\n\tif (propertyChange == null) {\r\n\t\tpropertyChange = new java.beans.PropertyChangeSupport(this);\r\n\t};\r\n\treturn propertyChange;\r\n}", "@Override\n\t\tpublic Object getProperty(String key) {\n\t\t\treturn null;\n\t\t}", "public void setStatic() {\r\n\t\tthis.isStatic = true;\r\n\t}", "Shared shared();", "@Override\n public T getInstance() {\n return instance;\n }", "@Override\n\tpublic boolean isConsistent() {\n\t\treturn true;\n\t}", "public default boolean canBePermanent(){ return false; }", "public void testDuplicateProperty() throws Exception {\n loader.load(reader, ctx);\n assertTrue(ctx.getErrors().get(0) instanceof DuplicateComponentService);\n }", "private SingletonObject() {\n\n\t}", "private GetProperty(Builder builder) {\n super(builder);\n }", "private MetallicityUtils() {\n\t\t\n\t}" ]
[ "0.7379674", "0.6740267", "0.66774195", "0.6408479", "0.6353141", "0.6303817", "0.60992366", "0.60855854", "0.59242624", "0.58671534", "0.5829433", "0.58144295", "0.57725626", "0.5758482", "0.57573766", "0.57573766", "0.57454765", "0.5723561", "0.5677753", "0.56585544", "0.56478846", "0.56438845", "0.56389004", "0.5622954", "0.56152564", "0.5606417", "0.55995643", "0.5557841", "0.55563474", "0.55529", "0.55482477", "0.5548025", "0.55399454", "0.5532383", "0.5511414", "0.5504329", "0.5498917", "0.5476118", "0.5458024", "0.54572606", "0.54568446", "0.5456666", "0.5446148", "0.5437834", "0.54349846", "0.5432393", "0.54253757", "0.5420055", "0.54094356", "0.54075986", "0.5401833", "0.53970695", "0.53877884", "0.53849494", "0.5384151", "0.5379044", "0.5379044", "0.53683645", "0.53671753", "0.536592", "0.5358818", "0.5358603", "0.5341273", "0.5340188", "0.5338184", "0.5337353", "0.53299147", "0.53299147", "0.53220874", "0.532116", "0.53188705", "0.5315628", "0.53045756", "0.5300056", "0.52948844", "0.5288748", "0.5283405", "0.52760416", "0.52692956", "0.5263586", "0.5263586", "0.5253974", "0.5253871", "0.5253075", "0.5252144", "0.52515936", "0.5246984", "0.5238003", "0.5233427", "0.52331775", "0.52323955", "0.52203697", "0.5219263", "0.52131784", "0.5210532", "0.52067393", "0.5206339", "0.5204136", "0.5198975", "0.5198239", "0.5195598" ]
0.0
-1
see instructions for populating array
private void populate() { ages = new int[] { 15, 18, 16, 16, 15, 16 }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populate ()\n\t{\n\t\t//create a random object\n\t\tRandom rand = new Random(); \n\t\t//for loop for row\n\t\tfor (int row =0; row < currentVersion.length; row++)\n\t\t{\t//for loop for column\n\t\t\tfor(int column = 0; column < currentVersion[row].length; column++)\n\t\t\t{\n\t\t\t\t//assign byte values from [0 to state-1] into array\n\t\t\t\tcurrentVersion[row][column] = (byte) rand.nextInt((this.state-1));\n\t\t\t}\n\t\t}\n\t}", "public void makeArray() {\r\n for (int i = 0; i < A.length; i++) {\r\n A[i] = i;\r\n }\r\n }", "private void createArray() {\n\t\tdata = new Integer[userInput];\n\t\tRandom rand = new Random();\n\n\t\t// load the array with random numbers\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tdata[i] = rand.nextInt(maximumNumberInput);\n\t\t}\n\n\t\t// copy the array to the sorting method\n\t\tinsertionData = data.clone();\n\t\tquickData = data.clone();\n\n\t}", "private void initializeArrays(){\n arrayOfBadges = new String[6];\n stateArray = new int[6];\n for (int i = 0; i<6; i++){\n stateArray[i]=0;\n }\n arrayOfBadges[0] = \"Community\";\n arrayOfBadges[1] = \"Academic\";\n arrayOfBadges[2] = \"Dean\";\n arrayOfBadges[3] = \"Honor\";\n arrayOfBadges[4] = \"Abroad\";\n arrayOfBadges[5] = \"Graduation\";\n\n\n }", "public static void fillArray() {\r\n\t\tfor (int i = 0; i < myOriginalArray.length - 1; i++) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tmyOriginalArray[i] = rand.nextInt(250);\r\n\t\t}\r\n\t\t// Copies original array 4 times for algorithm arrays\r\n\t\tmyBubbleArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmySelectionArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmyInsertionArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t\tmyQuickArray = Arrays.copyOf(myOriginalArray, myOriginalArray.length);\r\n\t}", "public SuperArray() { \n \t_data = new Comparable[10];\n \t_lastPos = -1; //flag to indicate no lastpos yet\n \t_size = 0;\t\n }", "private void buildArray() throws VerificationException\n {\n \tindices = new int[length];\n \tcommonality = new int[length];\n \n \tcommonality[0] = -1;\n \tfor( int i=0; i<indices.length; i++ ){\n \t indices[i] = i;\n \t}\n \n sort();\n }", "Array createArray();", "private void populateFieldArray() \r\n\t{\r\n\t\tInteger fieldId;\r\n\t\t/** get input column names which is populated based on the input file\r\n\t\t * format specified in the command file */\r\n\t\tString [] inputColNames = getInputColNames();\r\n\t\tint arrLength; /** Number of columns in the input file*/\r\n\t\tif (null == inputColNames)\r\n\t\t{\r\n\t\t\t/** set array length 2 for two default columns (probeset and chip description)*/\r\n\t\t\tarrLength = 2; \r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/** Basic Probeset ID and description fields are present for all files \r\n\t\t\t * but the other supplementary information like accession number, unigene and\r\n\t\t\t * entrezgene ids may be present one or many based on the file format */\r\n\t\t\tarrLength = 2 + inputColNames.length; /** add other columns*/\r\n\t\t}\r\n\t\t/** Field array base elements are Probeset and Chip_Desc plus any of acc_no, ugid, & locusid/organism */\r\n\t\tfieldIndexArray = new int [arrLength];\r\n\t\t\r\n\t\t/** Now 0th field in input file is probeset*/\r\n\t\tfieldIndexArray[0] = ((Integer) fieldIdTable.get(\"CIN_PROBESET\")).intValue();\r\n\t\t\r\n\t\tif (inputColNames != null) \r\n\t\t{\r\n\t\t\t/** get the field ids for all column names*/\r\n\t\t\tfor (int i=0; i< inputColNames.length; i++)\r\n\t\t\t{\r\n\t\t\t\t/** Pick up the column from the list of inout columns as obtained based on\r\n\t\t\t\t * the input file format. Then fetch its ID from the FieldIdTable */\r\n\t\t\t\tfieldId = (Integer) fieldIdTable.get(inputColNames[i].toUpperCase());\r\n\t\t\t\tif (null == fieldId)\r\n\t\t\t\t{\r\n\t\t\t\t\t/** no such column name allowed*/\r\n\t\t\t\t\tLogger.log(\"Column name \" + inputColNames[i] + \" is not a valid name\",Logger.WARNING);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t/** add the field id to the index array. Thus fieldIndexArray will have all the \r\n\t\t\t\t\t * column names depending on the file format*/\r\n\t\t\t\t\tfieldIndexArray[1+i] = fieldId.intValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t/** ChipDesc field is the last column in the input file. First we have added the default first field\r\n\t\t * as probeset id , then all the middle fields based on the file format and now the last default\r\n\t\t * field which is chipdescription */\r\n\t\tfieldIndexArray[fieldIndexArray.length-1] = ((Integer) fieldIdTable.get(\"CIN_CHIP_DESCRIPTION\")).intValue();\r\n\t\tLogger.log(\"populateFieldArray complete \",Logger.DEBUG);\r\n\t}", "private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}", "public static void arrayDemo() {\n\t}", "private void createArray()\r\n\t{\r\n\t\tscorers = new String[NUMBER_OF_ENTRIES];\r\n\t\tfor(int i = 0; i < NUMBER_OF_ENTRIES; i += 2)\r\n\t\t{\r\n\t\t\tscorers[i] = \"[NULL]\";\r\n\t\t\tscorers[i + 1] = String.valueOf(-1);\r\n\t\t}\r\n\t}", "private void makeArrays()\n\t{\n\t\tfor (String key : sub.keySet())\n\t\t\tsub.put(key, ((List<String>) sub.get(key)).toArray(s0));\n\t\tfor (String key : attrs.keySet())\n\t\t\tattrs.put(key, ((List<String>) attrs.get(key)).toArray(s0));\n\t\tfor (String key : defs.keySet())\n\t\t\tdefs.put(key, ((List<String>) defs.get(key)).toArray(s0));\n\t\tfor (String key : smodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) smodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tsmodes.put(key, array);\n\t\t}\n\t\tfor (String key : amodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) amodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tamodes.put(key, array);\n\t\t}\n\t}", "ArrayValue createArrayValue();", "public void setArray(int i, Array x);", "void populateArray () {\r\n\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream (\"Bank.dat\");\r\n\t\t\tdis = new DataInputStream (fis);\r\n\t\t\t//Loop to Populate the Array.\r\n\t\t\twhile (true) {\r\n\t\t\t\tfor (int i = 0; i < 6; i++) {\r\n\t\t\t\t\trecords[rows][i] = dis.readUTF ();\r\n\t\t\t\t}\r\n\t\t\t\trows++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\ttotal = rows;\r\n\t\t\tif (total == 0) { }\r\n\t\t\telse {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdis.close();\r\n\t\t\t\t\tfis.close();\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception exp) { }\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void inicialisation(){\r\n\t\t\r\n\t\tgoods = new AutoParts[0];\r\n\t\tclient = new Client[0];\r\n\t\t\r\n\t\tshop = new Shopping[0];\r\n\t\tsale = new Sale[0];\r\n\t\ttransaction = new Document[0];\r\n\t\t\r\n\t\tbalancesAutoParts = new BalancesAutoParts[0];\r\n\t\t\r\n\t\tprices = new Prices[0];\r\n\t\t\r\n\t\tagriment = new Agreement[0];\r\n\t\t\r\n\t}", "void setNullArray()\n/* */ {\n/* 1051 */ this.length = -1;\n/* 1052 */ this.elements = null;\n/* 1053 */ this.datums = null;\n/* 1054 */ this.pickled = null;\n/* 1055 */ this.pickledCorrect = false;\n/* */ }", "private static int[] arrayInitializer(int length) {\n int[] myArray = new int[length];\n Random rand = new Random();\n for (int i = 0; i < length; i++) {\n myArray[i] = rand.nextInt(1000);\n }\n return myArray;\n }", "public WeetArray() {\n count = 0;\n nullCount = 0;\n }", "public purchaseDesign()\n {\n priceArray = new int[5][4];\n }", "public static void main(String[] args) {\n\n for(int i=0; i<3;i++){\n // arr[i] = new Array1(i+3,i*2);\n //arr[0] = arr.getArray(3,5);\n\n }\n\n }", "public abstract void startArray();", "static void initializeArray2() {\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tRandom r = new Random();\n\t\t\tint val = r.nextInt(m);\n\t\t\t// Hash implementation\n\t\t\tint mod = val % m;\n\t\t\tarray[mod] = val;\n\t\t\tresult[1]++;\n\t\t}\n\t}", "public void constructArray(){\n\t\tfor (int col = 0; col < cols; col++){\n\t\t\tfor (int row = 0; row < rows; row++){\n\t\t\t\tmap[col][row] = new Pixel();\n\t\t\t}\n\t\t}\n\t}", "public void setArr(int[] arr){ this.arr = arr; }", "private static void initialise( String booth[] ) {\n\r\n for (int x = 0; x < 6; x++ ) { //Assigning all the 6 booths as \"empty\"\r\n booth[x] = \"empty\";\r\n }\r\n }", "public void inicializarArrays(){\n for(int i=0;i<=10;i++){\n dni[i] = 0;\n nombre[i] = \"\";\n apellido[i] = \"\";\n direccion[i] = \"\";\n telefono[i] = \"\";\n fNacimiento[i] = \"\";\n }\n }", "public void newArray() {\n\t\t\n\t\tE[] newArray= (E[]) new Object[list.length * 2]; //Holds the old elements from the list array while new list array is being made\n\t\t\n\t\tfor(int i = 0; i < list.length; i++) {\n\t\t\t\n\t\t\tnewArray[i] = list[i]; //Copy the old list array into the newArray\n\t\t}\n\t\t\n\t\tlist = newArray; //Point the old array at the newArray starting memory location\n\t\t\n\t}", "void setUp(Comparable[] input) {\n\n\t\t// Clone input array, to get data from\n\t\tarray = Arrays.copyOf(input, input.length);\n\t\t\n\t\t/*\n\t\t * Initialize arrays:\n\t\t * \"data\" is the array of lists\n\t\t * \"next\" is the array of list tails\n\t\t * \"queue\" is the array for the queue implementation\n\t\t */\n\t\tdata = new int[input.length];\n\t\tnext = new int[input.length];\n\t\tqueue = new int[input.length];\n\t\t\n\t\t// fill array of tail with NIL values\n\t\tArrays.fill(next, NIL);\n\t\t\n\t\t// fill array of lists and queue with indexes\n\t\tfor (int i = 0; i < input.length; i++)\n\t\t\tdata[i] = queue[i] = i;\n\t\t\n\t\t// set queue pointers to the first cell\n\t\tqPush = qPoll = 0;\n\n\t\t/*\n\t\t * At this point queue is full.\n\t\t * So set flags: can poll, but cannot push\n\t\t */\n\t\tcanPush = false;\n\t\tcanPoll = true;\n\t}", "private void fillData()\n {\n\n }", "static void initializeArray(boolean firstTime) {\n\t\tint count = 0;\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tRandom r = new Random();\n\t\t\tint val = r.nextInt(m);\n\t\t\tint mod = val % m;\n\t\t\tif (array[mod] == -1) {\n\t\t\t\tarray[mod] = val;\n\t\t\t\tresult[1]++;\n\t\t\t\tcount++;\n\t\t\t} else if (firstTime) {\n\t\t\t\tresult[0] = count;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void initializeArray(){\n if(topOfStack==-1){\n for(int i=0;i<this.arr.length;i++){\n this.arr[i]=Integer.MIN_VALUE;\n }\n }\n }", "private static void fillArray(int[][] array) {\n for (int i = 0; i < array.length; i++)\n for (int j = 0; j < array[i].length; j++)\n array[i][j] = i + j;\n\n // The following lines do nothing\n array = new int[1][1];\n array[0][0] = 239;\n }", "private Number[] arrayFinalFormation(Number[] array, int countOfElements) {\n Number[] completedArrayVersion = new Number[countOfElements];\n for (int index = 0; index < completedArrayVersion.length; index++) {\n completedArrayVersion[index] = array[index];\n }\n return completedArrayVersion;\n }", "public Stmt\ninitiateArray(\n Exp pArray, Exp pInitExp,\n Exp pFrom, Exp pTo, Subp pSubp );", "public static void createArrays() {\n\t\tinitArrays();\n\t\tcreateNodeTable();\n\t\tcreateEdgeTables();\n\t\t// Helper.Time(\"Read File\");\n\t\tcreateOffsetTable();\n\t}", "public static void main(String[] args) {\n\r\n\r\n\r\n\r\n int[] myIntArray = new int[10];\r\n myIntArray [5]= 50;\r\n System.out.println(myIntArray [5]);\r\n//\r\n// double [] myDoubleArray = new double [5];\r\n// myDoubleArray [3]= 80;\r\n// System.out.println(\"My double is \" +myDoubleArray [3]);\r\n//\r\n// //String [3] myStringArray = new String [10];\r\n\r\n\r\n //first way to initialize\r\n// int [] myNewArray = new int [10];\r\n// myNewArray [0]= 20;\r\n// myNewArray [1]= 30;\r\n// myNewArray [2]= 40;\r\n// myNewArray [3]= 50;\r\n// myNewArray [4]= 60;\r\n// myNewArray [5]= 70;\r\n// myNewArray [6]= 80;\r\n// myNewArray [7]= 90;\r\n// myNewArray [8]= 100;\r\n//\r\n// System.out.println(\"My new array value \" + myNewArray [4]);\r\n\r\n\r\n //second way to initialize\r\n// double[] newDoubleArray = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0};\r\n// System.out.println(\"My array double is \" + newDoubleArray[4]);\r\n//\r\n//\r\n //third way to initialize with a loop\r\n// int[] myNewInt = new int[99];\r\n\r\n //for(int i=0; i<10; i++) hardcoding with initializing condition with a 10 (i<10) \r\n\r\n //different way to initialize where array length is 'myNewInt.length' rather than (i<10)\r\n// for (int i = 0; i < myNewInt.length; i++) {\r\n// myNewInt[i] = i * 10;\r\n// }\r\n\r\n// for (int i = 0; i < myNewInt.length; i++) {\r\n// System.out.println(\"Element \" + i + \" value is \" + myNewInt[i]);\r\n// }\r\n// methodArray(myNewInt);\r\n// }\r\n\r\n// public static void methodArray (int [] array){\r\n// for(int i=0; i<array.length; i++ )\r\n// System.out.println(\"Element \"+ i + \" value is \" + array [i]);\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n }", "public PilaEnterosArray() {\n\t\ttop = -1;\n\t}", "private void setArray(byte[] initialArray)\r\n/* 60: */ {\r\n/* 61: 95 */ this.array = initialArray;\r\n/* 62: 96 */ this.tmpNioBuf = null;\r\n/* 63: */ }", "public void makeArray(){\n for (int i = 0; i<length; i++){\n departements[i] = wallList.get(i).getName();\n }\n }", "private void setupTimesTablesArray() {\n for (int i=0; i < ARRAY_SIZE; ++i)\n for (int j=0; j < ARRAY_SIZE; ++j)\n timesTables[i][j] = i * j;\n }", "private static void fillArrayWithValues() {\n int[] myArray = new int[40];\n\n // fills my array with value 5\n Arrays.fill(myArray, 5);\n\n // iterate and then print\n for (int i = 0; i < myArray.length; i++) {\n System.out.println(myArray[i]);\n }\n }", "private ArraySetHelper() {\n\t\t// nothing\n\t}", "public DynamicArray(){\n\t \n\t array = (E[]) new Object[dim];\n }", "public static void main(String[] args) {\n fillArrayWithValues();\n }", "void setArrayGeneric(int paramInt)\n/* */ {\n/* 1062 */ this.length = paramInt;\n/* 1063 */ this.datums = new Datum[paramInt];\n/* 1064 */ this.pickled = null;\n/* 1065 */ this.pickledCorrect = false;\n/* */ }", "public ZYArraySet(){\n elements = (ElementType[])new Object[DEFAULT_INIT_LENGTH];\n }", "private void getArr()\r\n {\r\n // Create array of '0'\r\n Random rand = new Random();\r\n arr = new int[Integer.parseInt(SizeField.getText())];\r\n\r\n // InOrder creates a list in ascending order\r\n if (InOrderRadio.isSelected())\r\n {\r\n for (int i = 0; i < arr.length; i++)\r\n {\r\n arr[i] = i;\r\n }\r\n\r\n // AlmostOrder creates a list which is 50% sorted and 50% unsorted\r\n } else if (AlmostOrderRadio.isSelected())\r\n {\r\n for (int i = 0; i < arr.length / 2; i++)\r\n {\r\n arr[i] = i;\r\n }\r\n\r\n for (int i = arr.length / 2; i < arr.length; i++)\r\n {\r\n arr[i] = rand.nextInt(arr.length);\r\n }\r\n\r\n // ReverseOrder creates list in descending order\r\n } else if (ReverseOrderRadio.isSelected())\r\n {\r\n for (int i = arr.length, j = 0; i > 0; i--, j++)\r\n {\r\n arr[j] = i;\r\n }\r\n\r\n // RandomOrder creates 100% unsorted list\r\n } else\r\n {\r\n for (int i = 0; i < arr.length; i++)\r\n {\r\n arr[i] = rand.nextInt(arr.length);\r\n }\r\n }\r\n }", "private void initialize(int[] arr) {\n a = ArraysUtils.sortAndRemoveDuplicates(arr);\n if (a.length != arr.length) {\n throw new IllegalArgumentException(\"Need unique list of numbers\");\n }\n numLeft = new BigInteger(total.toString());\n }", "public void makeArray(int size) {\n\t\t\n\t}", "public void fillPropertyArray()\n \t{\n \t\tsuper.fillPropertyArray();\n \t\tsuper.fillPropertyArray( gui );\n \t}", "public void extendArray() {\n int index = size();\n Object[] temp = new Object[index + 1];\n for (int i=0; i < index; i++) {\n temp[i] = AL[i];\n }\n AL = temp;\n }", "private void populateGradesArray() {\r\n\r\n for (int i = 0; i < numberOfCourses; i++)\r\n letterGrades[i] = convertNumericToLetter(marks[i]);\r\n }", "private void declareArray() {\n\t\twriter.println();\n\t\twriter.println(\"; array of 52 for variables:\");\n\t\twriter.print(variables + \" dw\");\n\t\tfor (int i = 0; i < 51; i++) {\n\t\t\twriter.print(\" 0,\");\n\t\t}\n\t\twriter.println(\" 0\");\n\t}", "protected void setArray(Object[] array){\r\n\t \tthis.array = array;\r\n\t }", "FunWithArrays(int size){\r\n\t\tnumbers = new int[size];\r\n\t}", "static int[] populateArray(int lenght) {\n\t\tint[] A = new int[lenght];\n\t\t\n\t\tfor(int i=0; i < A.length; i++) {\n\t\t\tA[i] = (int)(Integer.MAX_VALUE * Math.random());\n\t\t}\n\t\t\n\t\treturn A;\n\t}", "private void newArrayInitialize(NewArrayIRTuple instr) throws IOException{\n\n String type = (String)instr.getArg0();\n ArgumentVariable arg1 = new ArgumentVariable(instr.getArg1());\n ArgumentVariable result = new ArgumentVariable(instr.getResult());\n\n //Store $ra on stack\n writer.write(\"addi $sp, $sp, -20\\n\");\n writer.write(\"sw $ra, 16($sp)\\n\");\n\n //Store $a0\n writer.write(\"sw $a0, 12($sp)\\n\");\n\n //Store $t0-$t1 on the stack\n for(int i = 0; i < 2; i++)\n {\n writer.write(\"sw $t\" + i + \", \" + (8 - (4*i)) + \"($sp)\\n\");\n }\n\n //Store $v0 on the stack\n writer.write(\"sw $v0, 0($sp)\\n\");\n\n if(arg1.type.equals(\"constant\"))\n writer.write(\"li $a0, \" + arg1.getValue(curAddTable) + \"\\n\");\n else\n writer.write(\"move $a0, \" + arg1.getValue(curAddTable) + \"\\n\");\n if(type.equals(\"int\"))\n writer.write(\"sll $a0, $a0, 2\\n\");\n\n //Call the function of \"_new_array\"\n writer.write(\"jal _new_array\\n\");\n writer.write(\"lw $t0, 8($sp)\\n\");\n writer.write(\"lw $t1, 4($sp)\\n\");\n\n writer.write(\"lw $a0, 12($sp)\\n\");\n writer.write(\"move \" + result.getValue(curAddTable) + \", $v0\\n\");\n\n writer.write(\"lw $v0, 0($sp)\\n\");\n writer.write(\"lw $ra, 16($sp)\\n\");\n writer.write(\"addi $sp, $sp, 20\\n\");\n\n }", "private RubyArray(Ruby runtime, IRubyObject[] vals, int begin) {\n super(runtime, runtime.getArray());\n this.values = vals;\n this.begin = begin;\n this.realLength = vals.length - begin;\n this.isShared = true;\n }", "private void setupStuff() {\n\t\tm_seenNumbers = new double[featureArray.length][];\n\t\tm_Weights = new double[featureArray.length][];\n\t\tm_NumValues = new int[featureArray.length];\n\t\tm_SumOfWeights = new double[featureArray.length];\n\t\tfeatureTotals = new int[featureArray.length];\n\n\t\tfor (int i = 0; i < featureArray.length; i++) {\n\t\t\tm_NumValues[i] = 0;\n\t\t\tm_seenNumbers[i] = new double[100];\n\t\t\tm_Weights[i] = new double[100];\n\t\t}\n\n\t\t/*\n\t\t * initialize structures for probabilities of each class and of each\n\t\t * feature\n\t\t */\n\t\tclassCounts = new double[MLearner.NUMBER_CLASSES];\n\t\tprobs = new HashMap[MLearner.NUMBER_CLASSES][featureArray.length];\n\t\tRealprobs = new HashMap[MLearner.NUMBER_CLASSES][featureArray.length];\n\t\tfor (int i = 0; i < MLearner.NUMBER_CLASSES; i++) {\n\t\t\tfor (int j = 0; j < featureArray.length; j++) {\n\t\t\t\tif (featureArray[j]) {//only create if we are using that\n\t\t\t\t\t// feature\n\t\t\t\t\tprobs[i][j] = new HashMap();\n\t\t\t\t\tif (EmailInternalConfigurationWindow.isFeatureDiscrete(j)) {\n\t\t\t\t\t\tprobs[i][j].put(\"_default\", new Double(0));\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tclassCounts[i] = 0;\n\t\t}\n\n\t}", "private void readArray(TypeImpl type, Attributes attrs) throws SAXParseException {\n String attrName, attrVal;\n // No entries in indexRep means not indexed\n IntVector indexRep = new IntVector();\n int size = 0;\n int id = -1;\n for (int i = 0; i < attrs.getLength(); i++) {\n attrName = attrs.getQName(i);\n attrVal = attrs.getValue(i);\n if (attrName.equals(XCASSerializer.ID_ATTR_NAME)) {\n try {\n id = Integer.parseInt(attrVal);\n } catch (NumberFormatException e) {\n throw createException(XCASParsingException.ILLEGAL_ID, attrVal);\n }\n } else if (attrName.equals(XCASSerializer.ARRAY_SIZE_ATTR)) {\n try {\n size = Integer.parseInt(attrVal);\n if (size < 0) {\n throw createException(XCASParsingException.ILLEGAL_ARRAY_SIZE, attrVal);\n }\n } catch (NumberFormatException e) {\n throw createException(XCASParsingException.INTEGER_EXPECTED, attrVal);\n }\n } else if (attrName.equals(XCASSerializer.INDEXED_ATTR_NAME)) {\n String[] arrayvals = parseArray(attrVal);\n for (int s = 0; s < arrayvals.length; s++) {\n indexRep.add(Integer.parseInt(arrayvals[s]));\n }\n } else {\n throw createException(XCASParsingException.ILLEGAL_ARRAY_ATTR, attrName);\n }\n }\n final int finalSize = size;\n TOP fs = maybeCreateWithV2Id(fsId, () -> cas.createArray(type, finalSize));\n // TOP fs = cas.createArray(type, size);\n\n FSInfo fsInfo = new FSInfo(fs, indexRep);\n if (id >= 0) {\n fsTree.put(id, fsInfo);\n } else {\n idLess.add(fsInfo);\n }\n // Hang on to those for setting array values.\n this.currentFs = fs;\n this.arrayPos = 0;\n\n this.state = ARRAY_ELE_STATE;\n }", "private final int[] initializeInstanceVariable() {\n\t\tint n = 10;\n\t\tint[] temp = new int[n];\n\t\tfor (int i = 0; i < n; i++) {temp[i] = i;}\n\t\treturn temp;\n\t}", "private void initArrayHeightAndWidth() {\n\n\t\theight = 0;\n\t\twidth = 0;\n\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(mapFile));\n\t\t\tString line = br.readLine();\n\t\t\t// get length of map\n\t\t\twidth = line.length();\n\t\t\t// get height of map\n\t\t\twhile (line != null) {\n\t\t\t\theight += 1;\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\tbr.close();\n\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\theight_on_display = (height - 1) * 35;\n\t\twidth_on_display = (width - 1) * 35;\n\t\tmapElementStringArray = new String[height][width];\n\t\tmapElementArray = new MapElement[height][width];\n\n\t}", "public static void main(String[] args) {\n\t\tint[] [] numbers = {{1,2,3}, {10,20,30,40,50},{100,200,300}};\n\t// if we need first conteiner second value its gonna be int [0] [1] (value = 2)\n\t// \tif we need third conteiner third value its gonna be int [2] [2] (value = 300)\n\t\t\n\t\tSystem.out.println(numbers[0][0]);\n\t\t\n\t\tint [] [] nums = new int[3][];\n\t\tSystem.out.println(nums[1][3]);\n\t\t\n\t\tint [] ages = {26,25,50,10};\n\t\t//numbers[0] = new int[4];\n\t\tnums[0]=ages;\n\t\tSystem.out.println(nums[0][2]);\n\t\t\n}", "@Override\n public void init(float[] data) {\n this.data = data;\n\n //\n shapeArr = new Rectangle2D.Float[data.length];\n colorArr = new Color[data.length];\n pointArr = new Point2D.Float[data.length];\n }", "void setDatumArray(Datum[] paramArrayOfDatum)\n/* */ {\n/* 979 */ if (paramArrayOfDatum == null) {\n/* 980 */ setNullArray();\n/* */ }\n/* */ else {\n/* 983 */ this.length = paramArrayOfDatum.length;\n/* 984 */ this.elements = null;\n/* 985 */ this.datums = ((Datum[])paramArrayOfDatum.clone());\n/* 986 */ this.pickled = null;\n/* 987 */ this.pickledCorrect = false;\n/* */ }\n/* */ }", "public static void main(String[] args) {\n\t\tint arr[]=new int[5];\r\n\t\tfor(int i=0;i<5;i++){\r\n\t\t\tarr[i]=i;\r\n\t\t}\r\n\t\tArrays.fill(arr,1,4,9);\r\n\t\r\nfor(int i=0;i<5;i++){\r\n\tSystem.out.println(arr[i]);\r\n}\r\n}", "public static void createArrays() {\r\n\t\tRandom rand = new Random();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tint size = rand.nextInt(5) + 5;\r\n\t\t\tTOTAL += size;\r\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\r\n\t\t\tfor (int j = 0; j < size; j++) {\r\n\t\t\t\tint value = rand.nextInt(1000) + 1;\r\n\t\t\t\tnumList.add(value);\r\n\t\t\t}\r\n\t\t\tCollections.sort(numList);\r\n\t\t\tarrayMap.put(i + 1, numList);\r\n\t\t}\r\n\t}", "protected void setArray(Expression expr)\n {\n setExpression(expr);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void growArray() {\n\t\tObject[] newList = new Object[size * 2];\n\t\tfor (int i = 0; i < size(); i++) {\n\t\t\tnewList[i] = get(i);\n\t\t}\n\t\tlist = (E[]) newList;\n\t\tsize *= 2;\n\t}", "private int [] createXArray(){\r\n\t\tint [] xCoord = {\r\n\t\t\t\txStart,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart + 65,\r\n\t\t\t\txStart + 65,\r\n\t\t\t\txStart + 50, \r\n\t\t\t\txStart,\r\n\t\t\t\txStart,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart,\r\n\t\t\t\txStart\r\n\t\t};\r\n\t\treturn xCoord;\r\n\t}", "public void setup(int size){\n runValues = new double[size];\n hardwareValues = new double[size][];\n }", "@Test\n public void testSetAccountNumberArray() {\n System.out.println(\"setAccountNumberArray\");\n int[] accountNumberArray = {1, 2, 3, 4, 5, 6};\n AbstractMethod instance = new AbstractMethodImpl();\n instance.setAccountNumberArray(accountNumberArray);\n int[] result = instance.getAccountNumberArray();\n for (int r : result) {\n System.out.print(r);\n }\n assertArrayEquals(accountNumberArray, result);\n\n }", "private RubyArray(Ruby runtime, long length) {\n super(runtime, runtime.getArray());\n checkLength(length);\n values = new IRubyObject[(int)length];\n }", "private static void arrayInserionTime() {\n\t\t String[] namesArray = new String[1000];\n\t\t \n\t long startTime = System.nanoTime();\n\t \n\t for (int i = 0; i < namesArray.length; i++)\n\t {\n\t namesArray[i] = \"Name\"+i;\n\t }\n\t \n\t long endTime = System.nanoTime(); \n\t \n\t System.out.println(\"Time taken by Array : \"+(endTime - startTime)/1000+\"us\");\n\t \n\t ArrayList<String> nameList = new ArrayList<String>(); \n\t \n\t startTime = System.nanoTime();\n\t \n\t for (int i = 0; i <= 1000; i++)\n\t {\n\t nameList.add(\"Name\"+i);\n\t }\n\t \n\t endTime = System.nanoTime();\n\t \n\t System.out.println(\"Time taken by ArrayList : \"+(endTime-startTime)/1000+\"us\");\n\n\t}", "private void fillNamesArray() // fillNamesArray method start\n\t\t{\n\t\t\tfor (int x = 0; x < SIZE - 1; x++)\n\t\t\t{\n\t\t\t\tnames[x + 1] = accounts[x].getName();\n\t\t\t} // end for\n\t\t\t\n\t\t\tfor (int x = 0, y = 1; x < SIZE - 1; x++)\n\t\t\t{\n\t\t\t\tif (!accounts[x].getStatus())\n\t\t\t\t{\n\t\t\t\t\tdebitDecreaseNames[y] = accounts[x].getName();\n\t\t\t\t\ty++;\n\t\t\t\t} // end if\n\t\t\t} // end for\n\t\t\t\n\t\t\tfor (int x = 0, y = 1; x < SIZE - 1; x++)\n\t\t\t{\n\t\t\t\tif (accounts[x].getStatus())\n\t\t\t\t{\n\t\t\t\t\tdebitIncreaseNames[y] = accounts[x].getName();\n\t\t\t\t\ty++;\n\t\t\t\t} // end if\n\t\t\t} // end for \n\t\t}", "private static int[] createArray() {\n\t\trnd = new Random();\r\n\t\trandomArray = new int[8];\r\n\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\trandomArray[i] = rnd.nextInt(45);\r\n\t\t}\r\n\t\treturn randomArray;\r\n\t}", "private static int[][] AddToArr(int[][] arr, int[][] symbol, int length, int offset) {\n\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tfor (int j = 0; j < length; j++) {\r\n\t\t\t\tif (symbol[i][j] > 0) {\r\n\r\n\t\t\t\t\tarr[i][j + offset] = 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arr;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n \tprivate Entry<K,V>[] newArray(int length) {\r\n \treturn new Entry[length];\r\n }", "@Override\r\n\tpublic void visit(Array array) {\n\r\n\t}", "ArrayADT() {\n this.size = 10;\n this.base = createArrayInstance(this.size);\n this.length = 0;\n }", "public ArrBag()\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n }", "@Override\r\n\tpublic void visit(ArrayExpression arrayExpression) {\n\r\n\t}", "private void fillNamesArray() // fillNamesArray method start\n\t\t{\n\t\t\tfor (int x = 0; x < SIZE - 1; x++)\n\t\t\t{\n\t\t\t\tnames[x + 1] = accounts[x].getName();\n\t\t\t} // end for\n\t\t\t\n\t\t\tfor (int x = 0, y = 1; x < SIZE - 1; x++)\n\t\t\t{\n\t\t\t\tif (!accounts[x].getStatus())\n\t\t\t\t{\n\t\t\t\t\tdebitDecreaseNames[y] = accounts[x].getName();\n\t\t\t\t\ty++;\n\t\t\t\t} // end if\n\t\t\t} // end for\n\t\t\t\n\t\t\tfor (int x = 0, y = 1; x < SIZE - 1; x++)\n\t\t\t{\n\t\t\t\tif (accounts[x].getStatus())\n\t\t\t\t{\n\t\t\t\t\tdebitIncreaseNames[y] = accounts[x].getName();\n\t\t\t\t\ty++;\n\t\t\t\t} // end if\n\t\t\t} // end for \n\n\t\t}", "public static void main(String[] args) {\n\n\t\tint[] array = new int[10];\n\t\tint[] array2 = new int[]{1, 2, 3, 4, 5};\n\n\t\t//In this example, we have created an array of integers\n\t\t//Notice that the common array notation uses square brackets\n\t\t//The instantiation, or the creation, of an array uses the NEW operator, similar to the String variable\n\t\t//Since the size of the array is immutable, or unchangeable, the size of the array or the elements are necessary\n\n\t\t//Every data structure must obviously have some sort of structure for the data\n\t\t//In the array, elements are stored in a linear fashion, in which each has a location number\n\t\t//This location number is referred to as the index and represents the elements' location\n\n\t\tint[] array3 = new int[]{1, 2, 3, 4, 5};\n\t\tSystem.out.println(array3[0]);\n\t\tSystem.out.println(array3[1]);\n\t\tSystem.out.println(array3[2]);\n\t\tSystem.out.println(array3[3]);\n\t\tSystem.out.println(array3[4]);\n\t\t\n\t\t//In this example, we have created an array with length 5, with the integer elements 1,2,3,4,5\n\t\t//To individually access the elements, place square brackets after the array name and insert the index\n\t\t//In Java, array indexes start at 0 rather than 1 and thus the 1st element -> index 0, 2nd -> index 1...\n\t\t\n\t\t//As usual, there is an easier way to access all the elements of an array than sifting through individually\n\t\t\n\t\tdouble[] array4 = new double[10];\n\t\tfor(int i=0; i<array4.length; i++){\n\t\t\tarray4[i] = Math.random();\n\t\t\tSystem.out.println(\"Index: \" + i + \" Value: \" + array4[i]);\n\t\t}\n\t\t\n\t\t//In this example, we create an array with a set size of 10 rather than providing the elements themselves\n\t\t//We can use the \".length\" attribute of an array to find its length, and use a for loop to reach that number\n\t\t//Remember, that since the indices start at 0, the last element will have an index of \"array.length-1\"\n\t\t//Thus, we iterate as long as i is less than the length, so that the loop stops at the last element at index \"array.length-1\"\n\t\t//As we go through the for loop, we access the ith position in the array and assign a random value\n\t\t//Finally, we can print both the index and the value at that index in the array\n\t\t\n\n\t}", "Array() {\n\t\tarray = new int[0];\n\t}", "private void addSizeArray() {\n int doubleSize = this.container.length * 2;\n Object[] newArray = new Object[doubleSize];\n System.arraycopy(this.container, 0, newArray, 0, this.container.length);\n this.container = new Object[doubleSize];\n System.arraycopy(newArray, 0, this.container, 0, doubleSize);\n }", "public void initialise() \n\t{\n\t\tthis.docids = scoresMap.keys();\n\t\tthis.scores = scoresMap.getValues();\n\t\tthis.occurrences = occurrencesMap.getValues();\t\t\n\t\tresultSize = this.docids.length;\n\t\texactResultSize = this.docids.length;\n\n\t\tscoresMap.clear();\n\t\toccurrencesMap.clear();\n\t\tthis.arraysInitialised = true;\n\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}", "protected Object[] getArray(){\r\n\t \treturn array;\r\n\t }", "Array(int[] n) {\n\t\tarray = n;\n\t}", "public void putValueBeforeArrayAddrIndex() {\n\t\tObj index = Tab.currentScope().findSymbol(\"@@TEMPOBJ\");\n\t\tObj address = Tab.currentScope().findSymbol(\"@@TEMPOBJ2\");\n\t\tObj value = Tab.currentScope().findSymbol(\"@@TEMPOBJ3\");\n\t\t\n\t\tCode.store(index);\n\t\tCode.store(address);\n\t\tCode.store(value);\n\t\t\n\t\tCode.load(address);\n\t\tCode.load(index);\n\t\tCode.load(value);\t\t\n\t}", "private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }", "public void setMeasurementArray(){\n\t\tnResults = rt.size();\n\t\tData = new double[4][nResults];\n\t\tfor(int i =1; i<nResults; i++) {\n\t\t\tData[0][i]=i;\n\t\t\tData[1][i]=rt.getValueAsDouble(rt.getColumnIndex(\"Mean\"),i); \n\t\t\tData[2][i]=rt.getValueAsDouble(rt.getColumnIndex(\"StdDev\"),i);\n\t\t\tData[3][i]=rt.getValueAsDouble(rt.getColumnIndex(\"Max\"),i)-rt.getValueAsDouble(rt.getColumnIndex(\"Min\"),i);\n\t\t}\n\t\treturn;\n\t}", "public static int[][] init() {\n int[][] arr={\n {0,1,0,1,0,0,0},\n {0,0,1,0,0,1,0},\n {1,0,0,1,0,1,0},\n {0,0,1,0,0,1,0},\n {0,0,1,1,0,1,0},\n {1,0,0,0,0,0,0}\n };\n return arr;\n }", "public static void arrayCreation() {\n int[] arr = new int[3];\n // as we are using new operator and that is how we create objects hence arrays\n // are called objects\n // every array in java is an object\n System.out.println(arr.getClass()\n .getSimpleName()); // int[]\n System.out.println(arr.getClass()\n .getName()); // [I\n\n int[] a1 = new int[3];\n int[][] a2 = new int[3][3];\n double[] a3 = new double[3];\n short[] a4 = new short[3];\n byte[] a5 = new byte[3];\n boolean[] a6 = new boolean[3];\n long[] a7 = new long[3];\n float[] a8 = new float[3];\n Integer[] a9 = new Integer[3];\n\n System.out.println(a1.getClass()\n .getName()); // [I\n System.out.println(a2.getClass()\n .getName()); // [[I\n System.out.println(a3.getClass()\n .getName()); // [D\n System.out.println(a4.getClass()\n .getName()); // [S\n System.out.println(a5.getClass()\n .getName()); // [B\n System.out.println(a6.getClass()\n .getName()); // [Z\n System.out.println(a7.getClass()\n .getName()); // [J\n System.out.println(a8.getClass()\n .getName()); // [F\n System.out.println(a9.getClass()\n .getName()); // [Ljava.lang.Integer;\n\n // at the time of the array initialization we should compulsory specify the size\n // new int[3] we should specify the size else it will lead to compilation error\n\n // It is legal to have size zero in java\n int[] a = new int[0];\n System.out.println(a);\n\n }", "public void init() {\n for (Point[] p : prev) {\n Arrays.fill(p, null);\n }\n }" ]
[ "0.65990126", "0.6535613", "0.65281546", "0.6500059", "0.64428127", "0.6442098", "0.63197917", "0.6313235", "0.630353", "0.62489897", "0.6246741", "0.6230326", "0.62298286", "0.61879385", "0.6161527", "0.6125777", "0.6096164", "0.609288", "0.6084218", "0.6083853", "0.60682446", "0.6063717", "0.6050765", "0.6050277", "0.60270476", "0.6014701", "0.60003215", "0.5997053", "0.59964687", "0.59713465", "0.5968383", "0.59679896", "0.5963156", "0.5951179", "0.59487766", "0.59429336", "0.59424764", "0.5938049", "0.59118015", "0.5905569", "0.590256", "0.5897043", "0.5882795", "0.58804953", "0.5874546", "0.58695555", "0.5868598", "0.58674127", "0.58617103", "0.5861048", "0.58591056", "0.5857714", "0.58522254", "0.58503425", "0.5849514", "0.5841529", "0.5840571", "0.5839519", "0.5838817", "0.58238065", "0.58196735", "0.5814896", "0.5797119", "0.5785057", "0.5783015", "0.5782433", "0.5778397", "0.57753134", "0.5772607", "0.57684076", "0.57645154", "0.57640463", "0.57636636", "0.57636213", "0.5760382", "0.5758789", "0.5757722", "0.575568", "0.57510704", "0.5740071", "0.573999", "0.5735643", "0.57324505", "0.5728239", "0.5723232", "0.57177895", "0.5713668", "0.5705965", "0.5705472", "0.56981397", "0.56981397", "0.56981397", "0.5697174", "0.5696729", "0.56927496", "0.56861097", "0.5681672", "0.5678777", "0.56781846", "0.56638485" ]
0.6811178
0
The Java method will process HTTP GET requests
@GET // The Java method will produce content identified by the MIME Media type "text/plain" @Produces("text/plain") public String getClichedMessage() throws IOException { // Return some cliched textual content return readAPI(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "void getRequests();", "@Override\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tList<String> headers = readRequest(client);\n\t\t\t\t\t\t\tif (headers != null && headers.size() >= 1) {\n\t\t\t\t\t\t\t\tString requestURL = getRequestURL(headers.get(0));\n\t\t\t\t\t\t\t\tLog.d(TAG, requestURL);\n\n\t\t\t\t\t\t\t\tif (requestURL.startsWith(\"http://\")) {\n\n\t\t\t\t\t\t\t\t\t// HttpRequest request = new\n\t\t\t\t\t\t\t\t\t// BasicHttpRequest(\"GET\", requestURL);\n\n\t\t\t\t\t\t\t\t\tprocessHttpRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tprocessFileRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\nprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n}", "@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "GetResponse() {\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\npublic void get(String url) {\n\t\n}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doGet(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n {\n processRequest(request, response);\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "public static void main(String[] args) {\n HttpClient client = new HttpClient();\n\n // Create an instance of the method\n GetMethod method = new GetMethod(url);\n\n // Provide a custom retry handler is nessasery\n method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,\n new DefaultHttpClientRetryHandler(3, false));\n\n try {\n // execute the method\n int statusCode = client.execute(method);\n\n if (statusCode != HttpStatus.SC_OK) {\n System.err.println(\"Method failed: \"\n + method.getStatusLine());\n }\n\n // read response body\n byte[] responseBody = method.readResponseBody();\n\n // deal with the response\n System.out.println(new String(responseBody));\n } catch (HttpException e) {\n System.err.println(\"Fatal Protocol Violation: \"\n + e.getMessage());\n e.printStackTrace();\n\n } catch (IOException e) {\n System.err.println(\"Fatal Transport Error: \"\n + e.getMessage());\n e.printStackTrace();\n } finally {\n // release the connection\n method.releaseConnection();\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request,response);\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "public String doHttpGet(String url, final String ...head);", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }", "public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}", "@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response\n )\n throws ServletException\n , IOException {\n processRequest(request, response);\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }" ]
[ "0.7068913", "0.6971673", "0.68313414", "0.67879885", "0.67789954", "0.6752962", "0.6738498", "0.6734777", "0.6728428", "0.6724527", "0.6724527", "0.67236114", "0.67154545", "0.67131424", "0.66901344", "0.66901344", "0.6674147", "0.66630334", "0.6662823", "0.66560876", "0.66473496", "0.6643126", "0.663169", "0.66294205", "0.6629014", "0.66286707", "0.66266114", "0.6625392", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.66229457", "0.6618876", "0.66116095", "0.6610196", "0.66100985", "0.6609213", "0.6608671", "0.6607065", "0.6607065", "0.6607065", "0.6607065", "0.66060483", "0.65988237", "0.6593737", "0.65824217", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004", "0.65821004" ]
0.0
-1
Data un immagine disegna la sua icona
public void Draw() { imgIcon = new ImageIcon(imgUrl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIcone(String icone) {\n this.icone = icone;\n }", "@Override\n public void mudarIcone(String enderecoImg, int botao) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public ImageIcon getFoto(){\r\n return (ImageIcon)beneficiario[5];\r\n }", "String getIcon();", "String getIcon();", "public VentanaFichaMedica() {\n initComponents(); \n setSize(1195, 545);\n setIcon();\n setLocationRelativeTo(null);\n setResizable(false);\n cargar(\"\");\n setTitle(\"LISTA DE FICHAS MÉDICAS\");\n inicar(); \n }", "public abstract String typeIcon();", "public void setIconTablaPlantilla() {\n\t\t// Establece el icono del boton editar\n\t\tFile archivo1 = new File(\"imagenes\" + File.separator + \"lapices.png\");\n\t\tImage imagen1 = new Image(archivo1.toURI().toString(), 50, 50, true, true, true);\n\t\tbtnModificar.setGraphic(new ImageView(imagen1));\n\t\tbtnModificar.setContentDisplay(ContentDisplay.CENTER);\n\t}", "public void setIcon(Image i) {icon = i;}", "public void anuncio() {\n\n\t\tapp.image(pantallaEncontrado, 197, 115, 300, 150);\n\n\t\tapp.image(botonContinuar, 253, 285);\n\n\t}", "java.lang.String getIcon();", "java.lang.String getIcon();", "Icon getIcon();", "public void mostrarAyudaCM() {\n try {\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"res/help_maker.png\")));\n }\n catch (Exception e) {}\n }", "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "private void changeIconDate(String sta, Integer dia, ImageView ima){\r\n switch (sta){\r\n case \"vencido\":\r\n ima.setImage(new Image(getClass().getResourceAsStream(\"/Images/img61a.png\")));\r\n break;\r\n case \"x vencer\":\r\n if (dia < 46)\r\n ima.setImage(new Image(getClass().getResourceAsStream(\"/Images/img59a.png\")));\r\n else\r\n ima.setImage(new Image(getClass().getResourceAsStream(\"/Images/img57a.png\")));\r\n break;\r\n }\r\n }", "public void rellenaImagen()\n {\n rellenaDatos(\"1\",\"Samsung\", \"cv3\", \"blanco\" , \"50\", 1200,2);\n rellenaDatos(\"2\",\"Samsung\", \"cv5\", \"negro\" , \"30\", 600,5);\n }", "public interface Interfaz_Icon {\n //interfaz de comunicacion entre fragment y activity\n public void select_details(int icon, String text);\n}", "public String getNomIcone() {\n\t\treturn nomIcone;\n\t}", "public void setIcon(FSIcon icon) {\n this.icon = icon;\n }", "public halamanUtama(){\n initComponents();\n setnama();\n \n try {\n BufferedImage beam = ImageIO.read(getClass().getResource(\"library.png\"));\n setIconImage(beam); \n } catch (IOException ex) {\n Logger.getLogger(halamanUtama.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n this.setTitle(\"Halaman Utama\");\n }", "public IIcon method_2681() {\r\n return this.field_2146;\r\n }", "public FSIcon getIcon() {\n return icon;\n }", "public CadastroMicrobio() {\n initComponents();\n setIcon();\n }", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}", "public int getIconId(){\n return mIconId;\n }", "public Image meurt() {\n\t\t\tString str;//va contenir le nom de l'image\n\t\t\tImageIcon ico;//nom de la nouvelle instance de la methode ImageIcon\n\t\t\tImage img;//va etre egale a ico, et va retourner l'image voulu\n\t\t\t\n\t\t\tstr = \"/images/bouleDeFeu.png\";\n\t\t\tthis.compteurMort++;//on incremente un compteur\n\t\t\tif(this.compteurMort > 100) {//si le compteur arrive jusqu'a 100, mario meurt, \n\t\t\t\tstr = \"/images/mortDEMario.png\";//donc on change d'image\n\t\t\t\tthis.setY(this.getY() - 1);//fait monter l'image de la mort de mario vers le ciel\n\t\t\t}\n\t\t\tico = new ImageIcon(getClass().getResource(str));\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\n\t\t}", "public abstract String getIcon(int current_turn);", "public EditarFuncionario() {\n initComponents();\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getClassLoader().getResource(\"resource/logo_onibus_oficial.png\")));\n }", "public void setIcon(Integer icon) {\n switch (icon) {\n case 0:\n this.icon = Icon.Schutzengel;\n break;\n case 1:\n this.icon = Icon.Person;\n break;\n case 2:\n this.icon = Icon.Institution;\n break;\n case 3:\n this.icon = Icon.Krankenhaus;\n break;\n case 4:\n this.icon = Icon.Polizei;\n break;\n default:\n this.icon = Icon.Feuerwehr;\n break;\n }\n }", "public void mostrarAyudaCB() {\n try {\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"res/help_breaker.png\")));\n }\n catch (Exception e) {}\n }", "public void bulleVerte() {\r\n\t\tIcon icon = null;\r\n\t\ticon = new ImageIcon(\"../_Images/Bouton/bulle_verte.png\");\r\n\t\tif (icon != null)\r\n\t\t\tbulleAide.setIcon(icon);\r\n\t}", "public int getIconImageNumber(){return iconImageNumber;}", "public Icon getIcon();", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public void tambahIsi(){\n status();\n //kondisi jika air penuh\n if(level==6){\n Toast.makeText(this,\"Air Penuh\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(++level);\n }", "public void cambiarEstadoImagen(){\n ImageIcon respuesta=new ImageIcon();\n if(oportunidades==0){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado7.jpg\"));\n }\n if(oportunidades==1){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado6.jpg\"));\n }\n if(oportunidades==2){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado5.jpg\"));\n }\n if(oportunidades==3){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado4.jpg\"));\n }\n if(oportunidades==4){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado3.jpg\"));\n }\n if(oportunidades==5){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado2.jpg\"));\n }\n if(oportunidades==6){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado1.jpg\"));\n }\n if(oportunidades==7){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado0.jpg\"));\n }\n this.imgAhorcado=respuesta; \n }", "public final void mo1245a(int i) {\n this.f1768l.icon = i;\n }", "public iAddCancion(int _id, String _miImagen) {\n this.id = _id;\n this.miImagen = _miImagen;\n initComponents();\n dameTodoAlbum(id);\n Image img = new ImageIcon(\"src/img/\"+miImagen).getImage();\n ImageIcon img2 = new ImageIcon(img.getScaledInstance(jLabelMiImagen.getWidth(), jLabelMiImagen.getHeight(), Image.SCALE_SMOOTH));\n\n jLabelMiImagen.setIcon(img2);\n }", "public static String obtenerIconoDelJuego(){\n return direccionIcono;\n }", "public Coloca_imagen(){\n \n \n }", "public void cargarIconoX() {\r\n\t\tClassLoader cl = getClass().getClassLoader();\r\n\t\tURL url = cl.getResource(RUTA_ICONO_CERRAR);\r\n\t\tImageIcon imageIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(url));\r\n\t\tlblEmoticon.setIcon(imageIcon);\r\n\t}", "public void novaIgra() {\r\n\t\tbroj_slobodnih = 16;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\t\ttabela[i][j] = 0;\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}", "public void addIcon(Direction dir, Color clr){\r\n\t\t \r\n\t\t Graphics2D g = bufferedImage.createGraphics();\r\n\t\t BufferedImage imgPiece;\r\n\t\t File fileImg = new File(\"src/main/java/data/smallfollower_0.png\");\r\n\t \t try {\r\n\t\t\timgPiece = ImageIO.read(fileImg);\r\n\r\n\t\t\t Graphics2D g1 = imgPiece.createGraphics();\t\r\n\t\t\t for (int x = 0; x < imgPiece.getWidth(); x++) {\r\n\t\t\t\t for (int y = 0; y < imgPiece.getHeight(); y++) {\r\n\t\t\t\t\t int color = imgPiece.getRGB(x,y);\r\n\t\t\t\t\t if(color == -65281){\r\n\t\t\t\t\t\t g1.setColor(clr);\r\n\t\t\t\t\t\t g1.fillRect(x,y,1,1);\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t g.drawImage(imgPiece, getX(dir), getY(dir), 20, 20, null);\r\n\t\t }\r\n\t\t catch (IOException e) {\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t }", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "Icon createIcon();", "private void configurarIcones() {\n\t\tswitch (dificuldade) {\r\n\t\tcase FACIL:\r\n\t\t\ticonBomba = new ImageIcon(getClass().getResource(\"/images/iconBombaFacil.png\"));\r\n\t\t\ticonBandeira = new ImageIcon(getClass().getResource(\"/images/iconBandeiraFacil.png\"));\r\n\t\t\ticonBotao = new ImageIcon(getClass().getResource(\"/images/iconBotaoFacil.png\"));\r\n\t\t\tbreak;\r\n\t\tcase MEDIO:\r\n\t\t\ticonBomba = new ImageIcon(getClass().getResource(\"/images/iconBombaMedio.png\"));\r\n\t\t\ticonBandeira = new ImageIcon(getClass().getResource(\"/images/iconBandeiraMedio.png\"));\r\n\t\t\ticonBotao = new ImageIcon(getClass().getResource(\"/images/iconBotaoMedio.png\"));\r\n\t\t\tbreak;\r\n\t\tcase DIFICIL:\r\n\t\t\ticonBomba = new ImageIcon(getClass().getResource(\"/images/iconBombaDificil.png\"));\r\n\t\t\ticonBandeira = new ImageIcon(getClass().getResource(\"/images/iconBandeiraDificil.png\"));\r\n\t\t\ticonBotao = new ImageIcon(getClass().getResource(\"/images/iconBotaoDificil.png\"));\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\ticonContador = new ImageIcon(getClass().getResource(\"/images/iconBombaMedio.png\"));\r\n\t\ticonIa = new ImageIcon(getClass().getResource(\"/images/iconIa.png\"));\r\n\t}", "public abstract String getIconString();", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}", "public void registerIcons(IIconRegister iconRegister) {\n/* 51 */ this.itemIcon = iconRegister.registerIcon(\"forgottenrelics:Soul_Tome\");\n/* */ }", "@Override\n\tpublic void setIcon(int resId) {\n\t\t\n\t}", "public MovimentacaoCaixa(GeradorSQL.tipoOperacao operacao) {\n initComponents();\n URL url = this.getClass().getResource(\"/imagens/Icone.png\");\n Image imagemTitulo = Toolkit.getDefaultToolkit().getImage(url);\n this.setIconImage(imagemTitulo);\n String data = (new java.text.SimpleDateFormat(\"dd/MM/yyyy\").format(new java.util.Date(System.currentTimeMillis())));\n jFormattedTextFieldDataMovimentacao.setText(data);\n jFormattedTextFieldDataMovimentacao.setEnabled(false);\n try{\n GeradorSQL geradorSQL = new GeradorSQL();\n geradorSQL.consultaSaldoCaixa();\n if(geradorSQL.consultaSaldoCaixa() != null){\n jTextFieldSaldoCaixa.setText(geradorSQL.consultaSaldoCaixa());\n if(Float.parseFloat(jTextFieldSaldoCaixa.getText()) > 0){\n jTextFieldSaldoCaixa.setForeground(Color.BLUE);\n }else{\n jTextFieldSaldoCaixa.setForeground(Color.RED);\n } \n }else{\n jTextFieldSaldoCaixa.setText(\"0.00\");\n }\n \n jTextFieldSaldoCaixa.setEditable(false); \n } catch(SQLException ex){\n Logger.getLogger(MovimentacaoEstoque.class.getName()).log(Level.SEVERE, null, ex);\n }\n this.operacao = operacao;\n }", "@Nonnull\n S iconify();", "public void bulleRouge() {\r\n\t\tIcon icon = null;\r\n\t\ticon = new ImageIcon(\"../_Images/Bouton/bulle_rouge.png\");\r\n\t\tif (icon != null)\r\n\t\t\tbulleAide.setIcon(icon);\r\n\t}", "private void initIcons() {\n \n \n addIcon(lblFondoRest, \"src/main/java/resource/fondo.png\");\n addIcon(lblCheckRest, \"src/main/java/resource/check.png\");\n \n }", "public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }", "@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}", "public String testando(JLabel icone){\n String iconeNome = icone.getIcon().toString();\n String[] lb11=iconeNome.split(\"/\");\n String opcao11 = lb11[lb11.length-1];\n return opcao11;\n }", "public Icon getIcon() {\n \t\treturn null;\n \t}", "private void aumentarPilha() {\n this.pilhaMovimentos++;\n }", "public ingresarBiblioteca() {\n initComponents();\n this.nombreUsuario.setText(usuariosID[0].getNombre());\n this.Picture.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN,10));\n usuario.insertarInicio(this.nombreUsuario.getText()/*, carpeta*/);\n usuario.obtenerNodo(0).getArchivo().insertarFinal(\"GENERAL\");//carpeta.insertarFinal(\"GENERAL\");\n }", "public int getIcon() {\n int i=0;\n String b = \"\";\n try {\n FileInputStream i1 = c.openFileInput(\"faculty.txt\"); //open the faculty file\n int size1 = i1.available();\n byte[] buffer1 = new byte[size1];\n i1.read(buffer1);\n i1.close();\n b = new String(buffer1); //b set to the text in the file\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n if(b.equals(\"Faculty of Engineering\")){ //comparing b(faculty in the file) to the Faculty of Engineering.This is repeated for the other faculties\n i=R.drawable.engine; //id of the engneering icon in the drawable file\n }\n if(b.equals(\"Faculty of Food and Agriculture\")){\n i=R.drawable.food;\n }\n if(b.equals(\"Faculty of Science and Technology\")){\n i=R.drawable.tech;\n }\n if(b.equals(\"Faculty of Medical Sciences\")){\n i=R.drawable.med;\n }\n if(b.equals(\"Faculty of Social Sciences\")){\n i=R.drawable.oc;\n }\n if(b.equals(\"aculty of Humanities and Education\")){\n i=R.drawable.human;\n }\n if(b.equals(\"Faculty of Law\")){\n i=R.drawable.la;\n }\n return i;\n }", "private int getIcon(int i, int j){\n \n // ADD YOU CODE HERE\n\n // Case 11 (unopened fields)\n if (gameModel.isCovered(i,j)) {\n\n return 11;\n\n }\n\n // Case 10 (user presses on a field that is mined)\n else if (gameModel.hasBeenClicked(i,j) && gameModel.isMined(i,j)) {\n\n return 10;\n\n }\n\n // Case 9 (if the field is a mine)\n else if (gameModel.isMined(i,j)) {\n\n return 9;\n \n }\n\n // Case 0 to 8 (user presses on a field that is not mined and program displays neighboring mines)\n else {\n\n return gameModel.getNeighbooringMines(i,j);\n\n }\n\n // CASE 12 BONUS\n\n }", "private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }", "public byte[] getIcon()\r\n {\r\n return icon;\r\n }", "public JLabel morir(){\r\n\t\tif(this.grafico != null){\r\n\t\t\tthis.grafico.setIcon(image[4]);\r\n\t\t\tthis.grafico.setBounds(this.pos.x, this.pos.y, width, height);\r\n\t\t}\r\n\t\treturn this.grafico;\r\n\t}", "public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }", "public void setzeMausIcon( String pfad , int hotspotX , int hotspotY ) \n {\n ea.edu.FensterE.getFenster().mausAnmelden( new Maus( new Bild(0,0,pfad) , new Punkt(hotspotX,hotspotY) ) , true );\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Sisapre001.png\"));\n return retValue;\n }", "public PrincipalDigitador() {\n initComponents();\n setIcon();\n }", "@Override\n public boolean isIcon(){\n return super.isIcon() || speciallyIconified;\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public vistaVentas() {\n initComponents();\n URL url = getClass().getResource(\"/imagenes/logoCarisma.jpg\");\n ImageIcon img = new ImageIcon(url);\n setIconImage(img.getImage());\n llenardescuento();\n }", "public Pesquisa() {\n initComponents();\n ComboReg.addItem(\"Selecione uma região\");\n ComboEst.addItem(\"Selecione primeiro a região\");\n pesquisas();\n ComboEst.disable();\n this.setIconImage(new ImageIcon(getClass().getResource(\"/icones/logosuperior.jpg\")).getImage());\n }", "public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}", "public int getIconFromDamage(int i){\n\t\treturn 4;\n\t}", "@Override\n public String GetImagePart() {\n return \"coal\";\n }", "public void bulleBlanche() {\r\n\t\tIcon icon = null;\r\n\t\ticon = new ImageIcon(\"../_Images/Bouton/bulle_blanche.png\");\r\n\t\tif (icon != null)\r\n\t\t\tbulleAide.setIcon(icon);\r\n\t}", "public void kurangIsi(){\n status();\n //kondisi jika air kurang atau sama dengan level 0\n if(level==0){Toast.makeText(this,\"Air Sedikit\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(--level);\n }", "@Override\n public String getTypeIcon() {\n return \"[E]\";\n }", "private void botonImagen() {\n ImageIcon guardar = new ImageIcon(getClass().getResource(\"/Img/saveIcon.png\"));\n btnGuardar.setIcon(new ImageIcon(guardar.getImage().getScaledInstance(btnGuardar.getWidth(), btnGuardar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon eliminar = new ImageIcon(\"src/Img/Delete.png\");\n ImageIcon eliminar = new ImageIcon(getClass().getResource(\"/Img/Delete.png\"));\n btnEliminar.setIcon(new ImageIcon(eliminar.getImage().getScaledInstance(btnEliminar.getWidth(), btnEliminar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon regresar = new ImageIcon(\"src/Img/arrow.png\");\n ImageIcon regresar = new ImageIcon(getClass().getResource(\"/Img/arrow.png\"));\n btnRegresar.setIcon(new ImageIcon(regresar.getImage().getScaledInstance(btnRegresar.getWidth(), btnRegresar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon cancelar = new ImageIcon(\"src/Img/deleteIcon.png\");\n ImageIcon cancelar = new ImageIcon(getClass().getResource(\"/Img/deleteIcon.png\"));\n btnCancelar.setIcon(new ImageIcon(cancelar.getImage().getScaledInstance(btnCancelar.getWidth(), btnCancelar.getHeight(), Image.SCALE_SMOOTH)));\n\n }", "public void changeIcon(Icon icon) {\r\n this.iconId = icon.getId();\r\n }", "public void mostrarImagen(Image img){\n ImageIcon icono = new ImageIcon(img);\n jlImagen.setIcon(icono);\n }", "public String getAccessibleIconDescription();", "public EditarVenda() {\n initComponents();\n URL caminhoIcone = getClass().getResource(\"/mklivre/icone/icone2.png\");\n Image iconeTitulo = Toolkit.getDefaultToolkit().getImage(caminhoIcone);\n this.setIconImage(iconeTitulo);\n conexao = ModuloConexao.conector();\n codigoCliente.setEnabled(false);\n lucro.setEnabled(false);\n valorLiquidoML.setEnabled(false);\n }", "@Override\n public int getSmallIconId() throws android.os.RemoteException {\n return 0;\n }", "private void change_im_tool4(int boo){\r\n if(boo == 0){ //IMAGEN SI EL USUARIO ESTA INHABILITADO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img07.png\")));\r\n }else{ //IMAGEN PARA HABILITAR AL USUARIO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }\r\n }", "private int seleccionarImagenTipo(int position){\n if(pedido.get(position).getCategoria().equalsIgnoreCase(\"compañia\")){\n return R.drawable.amigos;\n }else if (pedido.get(position).getCategoria().equalsIgnoreCase(\"informatica\")){\n return R.drawable.ordenador;\n }else if (pedido.get(position).getCategoria().equalsIgnoreCase(\"clases\")){\n return R.drawable.clases;\n }else if (pedido.get(position).getCategoria().equalsIgnoreCase(\"menaje/hogar\")){\n return R.drawable.herramientas;\n }\n return 0;\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Icono.png\"));\n return retValue;\n}", "public void establecerIcono(){\n ActionBar actionBar = getSupportActionBar();\n\n //Establecemos el icono en la ActionBar\n actionBar.setIcon(R.mipmap.ic_be_score);\n actionBar.setDisplayShowHomeEnabled(true);\n\n // Activar flecha ir atrás (ir a la Parent Activity declarada en el manifest)\n //actionBar.setDisplayHomeAsUpEnabled(true);\n }", "public String getAnoFilmagem();", "public char getIcon() {\n return this.icon;\n }", "public vtnAdminMenuUsuariosA() {\n initComponents();\n Image icono = Toolkit.getDefaultToolkit().getImage(\"src/design/softipet.png\");\n this.setIconImage(icono);\n }", "@Override\n public void onClick(View view) {\n BitmapDrawable bitmapDrawable = (BitmapDrawable) imgHinh.getDrawable();\n Bitmap bitmap = bitmapDrawable.getBitmap();\n ByteArrayOutputStream byteArray = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArray);\n byte[] hinhAnh = byteArray.toByteArray();\n AnhcuatoiActivity.database.INSERT_AnhCuaToi(\n edtTen.getText().toString().trim(),\n edtMoTa.getText().toString().trim(),\n hinhAnh\n );\n Toast.makeText(AnhcuatoiActivity.this, \"Đã Thêm\", Toast.LENGTH_SHORT).show();\n }", "public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por defecto\");\n }\n }" ]
[ "0.7003227", "0.68413", "0.6554687", "0.65369904", "0.65369904", "0.649371", "0.6465062", "0.6436137", "0.6431396", "0.6416774", "0.63414764", "0.63414764", "0.62894636", "0.62498343", "0.61851245", "0.6184714", "0.61809397", "0.6127482", "0.61189705", "0.61152375", "0.61065227", "0.6105241", "0.61028063", "0.6083089", "0.60370845", "0.6027572", "0.602342", "0.60234123", "0.60078853", "0.60030794", "0.5992093", "0.5986394", "0.5975119", "0.59707606", "0.59691864", "0.59685564", "0.596648", "0.59657013", "0.5924773", "0.59197223", "0.59143645", "0.5905395", "0.5902587", "0.589072", "0.58845794", "0.5880644", "0.5869421", "0.58582854", "0.58468467", "0.5845865", "0.5845865", "0.5845865", "0.5845865", "0.58338463", "0.5833309", "0.58330274", "0.58243966", "0.58229804", "0.5821893", "0.5797663", "0.5793899", "0.579016", "0.5780678", "0.57799", "0.57766604", "0.57698274", "0.5768133", "0.5763392", "0.57624984", "0.57585835", "0.57478845", "0.57472354", "0.5746966", "0.57466984", "0.57446676", "0.5735565", "0.5731058", "0.5731058", "0.5723311", "0.57213444", "0.57208145", "0.5718901", "0.5715982", "0.5715115", "0.57129014", "0.56997", "0.56990874", "0.56964594", "0.5691988", "0.56860846", "0.5683096", "0.56824976", "0.5673575", "0.5673419", "0.5672962", "0.56624454", "0.5661421", "0.56596464", "0.56483585", "0.5646368", "0.5643755" ]
0.0
-1
currency name hashcode will become stable id
@Override public long getItemId(int position) { return getItem(position).currencyName.hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }", "Long getCurrencyId();", "public int hashCode(){\n return name.hashCode();\n }", "public byte[] id() {\n return Token.concat(Token.DOLLAR, name.internal());\n }", "public int getC_Currency_ID();", "@Override\n public long generateNewContractId() {\n return idCounter++;\n }", "@Override\n public int hashCode() {\n return name.hashCode();\n }", "@Override\n public int hashCode()\n {\n return new HashCodeBuilder(17, 31).\n append(_name).\n toHashCode();\n }", "@Override\r\n public int hashCode() {\n return this.name.hashCode();\r\n }", "private String calulateHash() {\n\t\tsequence++; // increase the sequence to avoid 2 identical transactions having the same hash\n\t\treturn StringUtil.applySha256(StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value) + sequence);\n\t}", "@Override\n public int hashCode() {\n return amount.hashCode();\n }", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public String get_currency_name() {\n\t\treturn name;\r\n\t}", "public int hashCode() {\n return name.hashCode();\n }", "@Override\r\n\tpublic int hashCode() {\n\t\tint result = 17;\r\n\t\tresult = 37*result+(int) (id ^ (id>>>32));\r\n\t\t//result = 37*result+(name==null?0:name.hashCode());\r\n\t\t//result = 37*result+displayOrder;\r\n\t\t//result = 37*result+(this.url==null?0:url.hashCode());\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn name.hashCode();\n\t}", "public int hashCode() {\n return name.hashCode();\n }", "public static long hashName(String name) {\n\t\t\tlong res = 123;\n\t\t\tfor (int i = 0; i < name.length(); ++i) {\n\t\t\t\tres = (res << 8) | (res >>> 56);\n\t\t\t\tres += name.charAt(i);\n\t\t\t\tif ((res & 1) == 0) {\n\t\t\t\t\tres ^= 0x00000000feabfeabL; // Some kind of feedback\n\t\t\t\t}\n\t\t\t}\n\t\t\tres |= 0x8000000000000000L; // Make sure the hash is negative (to distinguish it from database id's)\n\t\t\treturn res;\n\t\t}", "@Override\n public int hashCode() {\n\treturn getName().hashCode();\n }", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "@Override\r\n public int hashCode() {\r\n return this.name.hashCode();\r\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn this.name.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn this.name.hashCode();\n\t}", "public int hashcode(){\r\n\t\t\r\n\t\treturn last_Name.hashcode();\r\n\t}", "@Override\n\tpublic int getC_Currency_ID() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long getHashCode(String key) {\n\t\tlong hash = 0;\n\t\tlong b = 378551;\n\t\tlong a = 63689;\n\t\tint tmp = 0;\n\t\tfor (int i = 0; i < key.length(); i++) {\n\t\t\ttmp = key.charAt(i);\n\t\t\thash = hash * a + tmp;\n\t\t\ta *= b;\n\t\t}\n\t\treturn hash;\n\t}", "@Override\n public int hashCode() {\n return Objects.hash(name, unit, price, minimum, numUnits);\n }", "public String getCurrencyid() {\n return currencyid;\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn new HashCodeBuilder(17, 37).append(id).append(code).append(nom).append(prix).toHashCode();\n\t}", "@Override\n public int hashCode() {\n // name's hashCode is multiplied by an arbitrary prime number (13)\n // in order to make sure there is a difference in the hashCode between\n // these two parameters:\n // name: a value: aa\n // name: aa value: a\n return key.hashCode() * 13 + (value == null ? 0 : value.hashCode());\n }", "@Override\n public int hashCode() {\n return ASNID;\n }", "public void setCurrencyID(String value) {\n this.currencyID = value;\n }", "@Override\n public int hashCode()\n {\n if (hash != 0) {\n return hash;\n }\n\n hash = provider.hashCode() * 127 + id.hashCode();\n return hash;\n }", "@Override\r\n public int hashCode() {\n return id % 10;\r\n }", "@Override\n public int hashCode() {\n return Objects.hash(name);\n }", "@Override\n public int hashCode() {\n return getName().hashCode();\n }", "@Override\n public final int hashCode() {\n return name != null ? name.hashCode() : 0;\n }", "@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }", "protected String nameToKey(String searchName) {\n\t\tif( searchName == null ) throw new NullPointerException(\"searchName is null\");\n\t\treturn hex(sha1(searchName));\n\t}", "private int genKey()\n {\n return (nameValue.getData() + scopeDefined.getTag()).hashCode();\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + _currencyPair.hashCode();\n result = prime * result + _vega.hashCode();\n return result;\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn Objects.hashCode(this.name);\n\t}", "@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}", "protected String revealedId (String name)\n {\n return name;\n }", "@Override\r\n public int hashCode() {\r\n int hash = Objects.hashCode(name);\r\n return hash;\r\n }", "private String generateId(String input) {\n\t\treturn StringUtil.hashSHA256(input);\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn Integer.parseInt(sid);\n\t}", "java.lang.String getSymbolId();", "@Override\n public int hashCode() {\n\n final int prime = 31;\n int result = 1;\n result = prime * result + name.hashCode();\n return result;\n }", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((name == null) ? 0 : name.hashCode());\n\t\treturn result;\n\t}", "@Override\r\n\t public int hashCode()\r\n\t {\n\t final int PRIME = 31;\r\n\t int result = 1;\r\n\t result = (int) (PRIME * result + (getId()==null?\r\n\t \t\tgetName().hashCode()\r\n\t \t\t:getName().hashCode()+getId()));\r\n\t return result;\r\n\t }", "private String calculateHash() {\n\n // Increments the sequence to prevent two transactions from having identical keys.\n sequence++;\n return StringUtil.applySha256(\n StringUtil.getStringFromKey(sender) +\n StringUtil.getStringFromKey(recipient) +\n Float.toString(value) +\n sequence\n );\n }", "int toHashKey(String s)\n\t{\n\t\tint A = 1952786893;\n\t\tint B = 367257;\n\t\tint v = B;\n\t\tfor (int j = 0; j < s.length(); j++)\n\t\t{\n\t\t\tchar c = s.charAt(j);\n\t\t\tv = A * (v + (int) c + j) + B;\n\t\t}\n\n\t\tif (v < 0) v = -v;\n\t\treturn v;\n\t}", "public int hashCode()\n {\n return getName().hashCode();\n }", "public String getCurrencyID() {\n return currencyID;\n }", "@Override\r\n\tpublic String createID() {\r\n\t\t \r\n\t\t\t\treturn transCode.toString();\r\n\t\t\t\t}", "@Override\n public int hashCode() {\n return ticker.hashCode();\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((name == null) ? 0 : name.hashCode());\n result = prime * result + ((identifierPrefix == null) ? 0 : identifierPrefix.hashCode());\n return result;\n }", "@Override\n public int hashCode() {\n \n final int code = 24;\n int result = 1;\n result = code * result + ((id == null) ? 0 : id.hashCode());\n return result;\n }", "@Override\n public int hashCode() {\n return Objects.hash(this.name, this.collectionOfCurrentListings, this.commissionRate, this.totalEarnings);\n }", "com.google.protobuf.StringValue getCurrencyCode();", "String getHash();", "String getHash();", "private String calulateHash() {\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\treturn StringUtil.applySha256(\r\n\t\t\t\t\tStringUtil.getStringFromKey(creator) +\r\n\t\t\t\t\tname+description+begin+end+end_subscription+\r\n\t\t\t\t\tmin_capacity+max_capacity+ date_creation_transaction.getTime()\r\n\t\t\t\t\t);\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn StringUtil.applySha256(\r\n\t\t\t\t\tStringUtil.getStringFromKey(subscriber) + id_event);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public static String assetid(String id, String scale, String precision, String assetname) {\n\t return Crypto.sha1(id + ',' + scale + ',' + precision + ',' + assetname);\n }", "@Override\n public int hashCode(){\n return name.hashCode() + 20 * age;// so, public should be save.\n }", "@Override\n public int hashCode() {\n // Declare hash and assign value\n int hash = 7;\n // Generate hash integer\n hash = 31 * hash + (int) this.getCrossingTime();\n hash = 31 * hash + (this.getName() == null ? 0 : this.getName().hashCode());\n return hash;\n }", "@Override\n public int hashCode() {\n return Objects.hash(getSymbol(), getDescription(), getType(), getCountry(), getExchange(), getExchangeCountry(), getCategory1(), getCategory2(), getCategory3(), getSedol());\n }", "public String getCurrencyID() {\n return currencyID;\n }", "@Override\n\tpublic int hashCode() {\n\t\t// TODO: Do we need null check?\n\t\treturn symbol.hashCode();\n\t}", "public String getHashname(){\n\t\treturn sHashname;\n\t}", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.id);\n hash = 29 * hash + Objects.hashCode(this.name);\n return hash;\n }", "public int hashCode()\n {\n return this.getName().hashCode();\n }", "@Override\r\n\tpublic int hashCode() {\r\n\t\tint hash = 1;\r\n hash = hash * 17 + (name == null ? 0 : name.hashCode());\r\n hash = hash * 13 + (duration);\r\n return hash;\r\n\t}", "String getMarketId();", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + _currencyPair.hashCode();\n result = prime * result + _expiries.hashCode();\n result = prime * result + _delta.hashCode();\n result = prime * result + _vega.hashCode();\n return result;\n }", "public void setHash() throws NoSuchAlgorithmException {\n\t\tString transformedName = new StringBuilder().append(this.titulo).append(this.profesor)\n .append(this.descripcion).append(this.materia.getUniversidad()).append(this.materia.getDepartamento())\n\t\t\t\t.append(this.materia.getCarrera()).append(this.materia.getIdMateria()).append(new Date().getTime()).toString();\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n\t\tmessageDigest.update(transformedName.getBytes(StandardCharsets.UTF_8));\n\t\tthis.hash = new BigInteger(1, messageDigest.digest()).toString(16);\n\t}", "@Override\r\n\tpublic int hashCode() {\n\t\treturn caId.hashCode();\r\n\t}", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 71 * hash + this.id;\n hash = 71 * hash + Objects.hashCode(this.name);\n hash = 71 * hash + Objects.hashCode(this.cash);\n hash = 71 * hash + Objects.hashCode(this.skills);\n hash = 71 * hash + Objects.hashCode(this.potions);\n return hash;\n }", "@Array({4}) \n\t@Field(27) \n\tpublic Pointer<Byte > CurrencyID() {\n\t\treturn this.io.getPointerField(this, 27);\n\t}", "@Override\n public int hashCode() {\n int i;\n int result = 17;\n i = getIdacquirente();\n result = 37*result + i;\n return result;\n }", "@Override\n protected String getIDPrefix() {\n return \"bc\";\n }", "void setCurrencyId(Long currencyId);", "@Test\n public void testHash() \n\t{\n\tLaboonCoin l = new LaboonCoin();\n\t\tint hash = l.hash(\"boo\");\n\t\tint result = 1428150834;\n\t\tassertEquals(result, hash);\n }", "public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }", "public int hashCode(){\n int hashcode = name == null ? 0 : name.hashCode() / 2;\n return hashcode += ( value == null ? 0 : value.hashCode()/2 );\n }", "@Override\n //zwraca niepowtarzalny numer identyfikujacy nasz obiekt\n public int hashCode() {\n return Objects.hash(name, engine, maxSpeed);\n }", "@Override\n public int hashCode() {\n int i;\n int result = 17;\n if (getBtrAudUid() == null) {\n i = 0;\n } else {\n i = getBtrAudUid().hashCode();\n }\n result = 37*result + i;\n return result;\n }", "private UniqueIdentifier(){\n\t\t\n\t}", "private int calculateHash(int id, String uri) {\n\t\treturn uri.hashCode() * Constants.HASH_PRIMES[0]\n\t\t\t\t+ Integer.toString(id).hashCode() * Constants.HASH_PRIMES[1];\n\t}", "private int hash1(T key) {\n return (key.toString().charAt(0) + key.toString().length())%newTable.length;\r\n }", "@Override\n public int hashCode() {\n return Objects.hash(name, type, id);\n }", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + account_id;\n\t\tresult = prime * result + ((account_type == null) ? 0 : account_type.hashCode());\n\t\tlong temp;\n\t\ttemp = Double.doubleToLongBits(balance);\n\t\tresult = prime * result + (int) (temp ^ (temp >>> 32));\n\t\tresult = prime * result + customer_id_fk;\n\t\treturn result;\n\t}", "@Override\r\n public int hashCode() {\n int key=(Integer)(this.capsule.get(0)); // Get the key\r\n Integer bkey=Integer.parseInt(Integer.toBinaryString(key)); // Convert into binary \r\n int n=setcount(bkey); //counts the number of 1's in the binary\r\n key=key*n + Objects.hashCode(this.capsule.get(0)); //multiplies that with the hashcode of the pId\r\n return key;\r\n }", "@Override\n\t\tpublic int hashCode()\n\t\t{\n\t\t\treturn absorber.getObjectId();\n\t\t}", "@Test\n\tpublic void testNameCurrency(){\n\t\tString name = \"$21,000 U.S. Currency\";\n\t\tString actualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$21,000 U.S. Currency\", actualName);\n\t\tname = \"$$21,000 U.S. Currency\";\n\t\tactualName = NormalizationUtility.normalizePartyName(name);\n\t\tAssert.assertEquals(\"$$21,000 U.S. Currency\", actualName); \n\t}", "private int getHash() {\n return (name + FluentIterable.from(getDimensions()).transform(new Function<CloudConfigurationDimension, String>() {\n @Override\n public String apply(CloudConfigurationDimension dimension) {\n return getStringRepresentation(dimension);\n }\n }).toString()).hashCode();\n }", "public String getNewBankId() {\n\t\tString newBankId=null;\n\t\tString bank_id=null;\n\t\t//BasicDBObject searchQuery = new BasicDBObject();\n\t\tDBCursor curr=coll4.find().sort(new BasicDBObject(\"ba_id\", -1)).limit(1);\n\t\tBankInfo bank = new BankInfo();\t\n\t\t\n\t while(curr.hasNext()) {\n\t\t System.out.println(\"inside cursor\");\n\t\t\n\t\t\tDBObject obj = curr.next();\n\t\t\t\n\t\t\tbank_id = obj.get(\"ba_id\").toString();\n\t\t\tbank.setBa_id(bank_id);\n\t\t\tSystem.out.println(\"NEXT Bank ID=\"+bank.getBa_id());\n\t\t }\n\t \n\t newBankId= bank_id;\n\t long tempLong= Long.parseLong(newBankId);\n\t tempLong=tempLong+1;\n\t \n\t newBankId= Long.toString(tempLong);\n\t System.out.println(\"New ID generated\"+newBankId);\n\t return newBankId;\t\t\n\t\t\n\t}", "@Override\n public byte[] hashIntoTheCurve(byte[] byteId) {\n return convertECPoint(hashIntoTheCurveInternal(byteId)).getEncoded(true);\n }", "int getHash();" ]
[ "0.6253041", "0.6161416", "0.6074067", "0.60464954", "0.6013363", "0.59892005", "0.598472", "0.59838504", "0.5973574", "0.59345657", "0.5905769", "0.5894347", "0.58918065", "0.58886427", "0.58827597", "0.5872365", "0.5864474", "0.5862691", "0.58569586", "0.58554745", "0.58541495", "0.5817371", "0.5817371", "0.5802788", "0.57726383", "0.5757688", "0.57278734", "0.5722388", "0.5718802", "0.571068", "0.5708186", "0.5690345", "0.5689775", "0.5670999", "0.56658447", "0.56650496", "0.56522584", "0.5642085", "0.56409204", "0.5636564", "0.5631936", "0.5628681", "0.56265086", "0.5622068", "0.5576637", "0.556982", "0.55691165", "0.55656415", "0.5564977", "0.5553954", "0.55517876", "0.5551468", "0.55418736", "0.5539262", "0.5538974", "0.553556", "0.55295116", "0.5527404", "0.5517038", "0.55132556", "0.5496161", "0.5495577", "0.5495577", "0.5484203", "0.5472064", "0.54639244", "0.54637337", "0.5458372", "0.54572517", "0.545664", "0.5454842", "0.5452992", "0.5443647", "0.5441932", "0.5432954", "0.54156256", "0.5410775", "0.5407575", "0.5394624", "0.53847885", "0.5372451", "0.5362398", "0.53550273", "0.53469056", "0.53462774", "0.53461003", "0.533841", "0.53376395", "0.5335488", "0.5332303", "0.53270566", "0.5322372", "0.5317264", "0.53136283", "0.5306268", "0.52944267", "0.5292977", "0.52708375", "0.5262769", "0.52606285" ]
0.59406483
9
Init the data structure using the given array of strings as the dictionary. You can assume each word in the dictionary contains only the upper letters A thru z
public BoggleSolver(String[] dictionary) { wordsSoFar = new ArrayList<String>(); // 1. build the trie tree of the dictionary dict = new NewTrieSet(); for (String s : dictionary) { if (s.length() >= MIN_WORD_LENGTH) dict.add(s); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildDict(String[] dict) {\n for (String word : dict) {\n for (int i = 0; i < word.length(); i++) {\n String key = word.substring(0, i) + word.substring(i+1);\n int[] indexAndChar = new int[2];\n indexAndChar[0] = i;\n indexAndChar[1] = word.charAt(i) - 'a';\n List<int[]> indexAndCharList = dictonary.getOrDefault(key, new ArrayList<>());\n indexAndCharList.add(indexAndChar);\n\n dictonary.put(key, indexAndCharList);\n }\n }\n }", "public abstract void init(ArrayList<String> ary);", "public void buildDict(String[] dict) {\n for (String s:dict){\n insert(s);\n }\n }", "public WordDictionary() {\n letters = new WordDictionary[26];\n }", "public void buildDict(String[] dict) {\n\t\tfor (String word : dict) {\n\t\t\tTrieNode node = root;\n\t\t\tfor (Character c : word.toCharArray()) {\n\t\t\t\tif (node.list[c - 'a'] == null) {\n\t\t\t\t\tnode.list[c - 'a'] = new TrieNode();\n\t\t\t\t}\n\t\t\t\tnode = node.list[c - 'a'];\n\t\t\t}\n\t\t\tnode.isLeaf = true;\n\t\t}\n\t}", "public BoggleSolver(String[] dictionary) {\n for (int i = 0; i < dictionary.length; ++i) {\n add(dictionary[i]);\n }\n }", "public BoggleSolver(String[] dictionary) {\n this.dictionary = new TrieST();\n for (String word: dictionary) {\n this.dictionary.put(word, true);\n }\n }", "public CaseInsensitiveDictionary() {\n words = new HashSet<>();\n }", "public BoggleSolver(final String[] dictionary) {\n inputdict = new TrieST();\n for (int i = 0; i < dictionary.length; i++) {\n inputdict.add(dictionary[i]);\n }\n // validwords = new HashSet<>();\n }", "void Create(){\n map = new TreeMap<>();\r\n\r\n // Now we split the words up using punction and spaces\r\n String wordArray[] = wordSource.split(\"[{ \\n\\r.,]}}?\");\r\n\r\n // Now we loop through the array\r\n for (String wordArray1 : wordArray) {\r\n String key = wordArray1.toLowerCase();\r\n // If this word is not present in the map then add it\r\n // and set the word count to 1\r\n if (key.length() > 0){\r\n if (!map.containsKey(map)){\r\n map.put(key, 1);\r\n }\r\n else {\r\n int wordCount = map.get(key);\r\n wordCount++;\r\n map.put(key, wordCount);\r\n }\r\n }\r\n } // end of for loop\r\n \r\n // Get all entries into a set\r\n // I think that before this we just have key-value pairs\r\n entrySet = map.entrySet();\r\n \r\n }", "private void initLetters(Set<String> s) {\n\t\tfill(s,'A','Z');\n\t\tfill(s,'a','z');\n }", "public Dictionary () {\n\t\tsuper();\n\t\t//words = new ArrayList < String > () ;\n\t}", "public Dictionary()\n\t{\n\t\tfor(Character i = 97; i<=122;i++)\n\t\t\tthis.put(i,new ArrayList<DictionaryElement>());\n\t\t\t\n\t}", "private void splitWord(String wordField) {\n wordsArray = new String[wordField.length()];\n wordsArray = wordField.split(\", *\");\n System.out.println(\"chk1: wordsArray: \" + Arrays.toString(wordsArray));\n //wordMap(words);\n for (int i = 0; i < wordsArray.length; i++) {\n wordsArray[i] = wordsArray[i].toUpperCase();\n wordMap.put(\"word\" + i, new Word(wordsArray[i]));//convert each word to upperCase and add it to wordMap\n }\n\n }", "public TrieNode buildTrie(List<String> dict){\n TrieNode root = new TrieNode();\n for(String s : dict){\n TrieNode t = root;\n for(char c : s.toCharArray()){\n if(t.children[c - 'a'] == null)\n t.children[c - 'a'] = new TrieNode();\n t = t.children[c-'a'];\n }\n t.isword = true;\n t.word = s;\n }\n return root;\n }", "public void createHashTable() {\n\n String[] tempArray = new String[words.size()];\n\n for (int i = 0; i < words.size(); i++) {\n char[] word = words.get(i).toCharArray(); // char[] snarf\n Arrays.sort(word); // char[] afnrs\n tempArray[i] = toString(word); // String afnrs\n }\n\n for (int i = 0; i < words.size(); i++) {\n String word = tempArray[i];\n hashTable.put(word.substring(0, 4), i); // plocka bort bokstav nr 5\n String subString4 = (word.substring(0, 3) + word.substring(4, 5)); // plocka bort bokstav nr 4\n hashTable.put(subString4, i);\n String subString3 = (word.substring(0, 2) + word.substring(3, 5)); // plocka bort bokstav nr 3\n hashTable.put(subString3, i);\n String subString2 = (word.substring(0, 1) + word.substring(2, 5)); // plocka bort bokstav nr 2\n hashTable.put(subString2, i);\n hashTable.put(word.substring(1, 5), i); // plocka bort bokstav nr 1\n }\n }", "public BoggleSolver(String[] dictionary) {\n root = new Node();\n\n for (String word : dictionary) {\n if (word.length() < 3) {\n continue;\n }\n Node node = processWord(word);\n if (node != null) node.setWord(word);\n }\n }", "public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }", "private void mapSetUp() {\n\t\tfor (int i = 0; i < allChar.length; i++) {\n\t\t\tmap.put(allChar[i], shuffledChar[i]);\n\t\t}\n\t}", "public Dictionary() { //constructor\r\n try {\r\n createDictionary(); //create dictionary\r\n addCustomWords(); //add any user define words in it\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public Dictionary ( ArrayList < String > listOfWords ) {\n\t\tsuper(listOfWords.get((listOfWords.size()-1)/2));\n\t\t\n\t\t//store words list as binary tree\n\t\t//starts with left side then with right\n\t\tint start = 0;\n\t\tint end = listOfWords.size()-1;\n\t\tint mid = (start+end)/2;\n\t\tmakeTree(listOfWords, start, mid-1);\n\t\tmakeTree(listOfWords, mid+1, end);\n\t\t\n\t\t\n\t\t/**old code written by Professor below\n\t\t * \n\t\t */\n\t\t//words = listOfWords;\n\t\t//if (null == words) {\n\t\t//\twords = new ArrayList <String> ();\n\t\t//}\n\t\t\n\n\t\t\n\t}", "public Dictionary(String dataname, String username){\n this(dataname, null, username);\n }", "public Game(String[] dictionary, Letter[] letters) {\n\t\tthis.dictionary = dictionary;\n\t\tdeck = new Deck(letters);\n\t\thand = new Hand();\n\t\tword = new Word();\n\t}", "public void fillMap(Map<String, List<String>> map){\n \tfor(String word : dictionary.words){ //Iterate over the ArrayList in the Dictionary object\n \t\tList<String> list = new ArrayList<String>();\n \t\tfor(String w : dictionary.words){ //iterate through all words in dictionary to find all one letter off from word\n \t\t\tif(isOneLetterOff(w, word))\n \t\t\t\tlist.add(w);\n \t\t\t//if w isn't off from word by one letter, check next w\n \t\t}\n \t\tmap.put(word, list);\n \t}\n }", "public void initDict(String filename, int max_length) {\n\t\tsetDictionary(new ArrayList<String>());\n\t\tFile f = new File(\"src/\" + filename);\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(f))) {\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tif (line.length() < max_length) {\n\t\t\t\t\tgetDictionary().add(line.toLowerCase());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Poop\");\n\t\t}\n\n\t\tfor (String word : getDictionary()) {\n\t\t\taddWord(word);\n\t\t}\n\t}", "public void sortChars(String[] array){\n HashMap<String, LinkedList<String>> list = new HashMap<String, LinkedList<String>>();\n\n for(String s: array){\n String key = sortChars(s);\n if(!list.containsKey(key)){\n list.put(key, new LinkedList<String>());\n }\n LinkedList<String> anagrams = list.get(key);\n anagrams.push(s);\n }\n\n int index = 0;\n for(String key: list.keySet()){\n LinkedList<String> anagrams = list.get(key);\n for(String val: anagrams){\n array[index] = val;\n index++;\n }\n }\n }", "public WordDictionary() {\n }", "public WordDictionary() {\n\n }", "public WordDictionary() {\n\n }", "public WordDictionary() {\n\n }", "private void init(String command) {\n if (command == null) throw new IllegalArgumentException(\"Empty command\");\n this.raw = command;\n\n String[] data = this.raw.split(\" \");\n this.map = new HashMap<>();\n for ( int i = 0; i < data.length; i++) {\n map.put( Index.values()[i], data[i] );\n }\n }", "public static void initializeArr(String[] arr){\n\t for(int i = 0; i < arr.length; i++){\n\t arr[i] = \"\";\n\t }\n\t}", "public WordDictionary() {\n \n \n }", "public Dictionary(String filename)\n\t\tthrows FileNotFoundException, IOException\n\t{\n\t\tmyFilename = filename;\n\t\t\n\t\tchar myCharacter = 'a';\n\t\tString myWord = new String(\"\");\n\t\tBufferedReader myReader = new BufferedReader(new FileReader(myFilename));\n\t\t\n\t\tmyWord = myReader.readLine();\n\t\t\n\t\t//creates each WordList for the words in the given text file\n\t\tfor(int counter = 0; counter < 26; ++counter)\n\t\t{\nSystem.out.print((char)(counter + (int)'a'));\n\t\t\tint position = 0;\n\t\t\tString[] tempArray = new String[100];\n\t\t\t\n\t\t\tmyCharacter = (char)myWord.charAt(0);\n\t\t\ttempArray[position] = myWord;\n\t\t\t\n\t\t\tmyWord = myReader.readLine();\n\t\t\t\n\t\t\twhile(myWord != null && myWord.charAt(0) == myCharacter)\n\t\t\t{\n\t\t\t\t++position;\n\t\t\t\t\n\t\t\t\tif(tempArray.length >= position)\n\t\t\t\t{\n\t\t\t\t\ttempArray = enlargeArray(tempArray);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttempArray[position] = myWord;\n\t\t\t\t\n\t\t\t\tmyWord = myReader.readLine();\n\t\t\t}\n\t\t\t\n\t\t\tmyDictionaryArray[counter] = new WordList(shrinkArray(tempArray));\n\t\t}\n\t\t\n\t\tmyReader.close();\n\t}", "void constructMap(JsonArray array)\n {\n JsonObject obj = array.get(0).getAsJsonObject();\n\n // Loop on them\n for(Map.Entry<String, JsonElement> entry : obj.entrySet())\n {\n String key = entry.getKey(); // ID:TYPE\n if(!(key.matches(\"(\\\\d+):([A-Z_]+)\")))\n continue;\n\n String[] split = key.split(\":\");\n long id = Long.parseLong(split[0]);\n CodeType type = remapLegacyCodeType(split[1]);\n\n Map<CodeType, Map<String, String>> userMap = map.getOrDefault(id, new HashMap<>());\n Map<String, String> codesForTypeMap = userMap.getOrDefault(type, new HashMap<>());\n\n for(Map.Entry<String, JsonElement> code : entry.getValue().getAsJsonObject().entrySet())\n codesForTypeMap.put(code.getKey(), code.getValue().getAsString());\n\n userMap.put(type, codesForTypeMap);\n map.put(id, userMap);\n }\n\n array.remove(obj); // Remove the codes object\n }", "public Alphabet()\n {\n \tthis.growing = true;\n this.map = new TObjectIntHashMap<T>();\n this.entries = new ArrayList<T>();\n }", "public Generator(String[] words, Random rng)\n throws NullPointerException, IllegalArgumentException {\n if (rng == null) {\n throw new NullPointerException(NULL_RNG_MESSAGE);\n }\n if (words == null) {\n throw new NullPointerException(NULL_WORDS_MESSAGE);\n }\n if (words.length == 0) {\n throw new IllegalArgumentException(EMPTY_WORDS_MESSAGE);\n }\n Set<String> pool = new HashSet<>();\n for (String word : words) {\n word = word.toLowerCase();\n if (!pool.contains(word)) {\n pool.add(word);\n }\n }\n this.words = pool.toArray(new String[pool.size()]);\n this.rng = rng;\n }", "private static void createMap()\r\n {\r\n position = new String[8][8];\r\n for(int i=0;i<8;i++)\r\n {\r\n int z=0;\r\n for(int j=72;j>=65;j--)\r\n {\r\n position[i][z]=(char)j+\"\"+(i+1); //uses ascii char placement for letters\r\n z++;\r\n }\r\n }\r\n \r\n }", "public WordDictionary() {\n\n }", "private void populateDictionary() {\n Scanner scanner = null;\n try {\n scanner = new Scanner(new FileInputStream(filePath));\n while(scanner.hasNextLine()) {\n String word = scanner.nextLine();\n rwDictionary.put(reducedWord(word), word);\n lcDictionary.put(word.toLowerCase(), word);\n }\n } catch(IOException e) {\n System.err.println(e.toString());\n e.printStackTrace();\n } finally {\n if(scanner != null) {\n scanner.close();\n }\n }\n }", "public OpenHashSet(java.lang.String[] data) {\n this();\n\n for (int i = 0; i < data.length; i++){\n if (data[i]!=null)\n add(data[i]);\n }\n }", "public HangmanManager(Set<String> words) {\r\n \t//Check Preconditions\r\n \tif (words == null || words.size() <= 0) {\r\n \t\tthrow new IllegalArgumentException(\"pre: words != null, words.size() > 0\");\r\n \t}\r\n \t\r\n \t//Build Dictionary ArrayList using iterator\r\n \tdictionary = new ArrayList <String>();\r\n \tIterator<String> iterator = words.iterator();\r\n \twhile (iterator.hasNext()) {\r\n \t\tdictionary.add(iterator.next());\r\n \t}\r\n }", "private void setUp() {\n\t\tString allLetter = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ. 0123456789\";\n\t\tallChar = allLetter.toCharArray();\n\t\tshuffledChar = shuffle(allLetter.toCharArray());\n\t\tmap = new HashMap<Character, Character>();\n\t\tmapSetUp();\n\t}", "public static void sanitizeAndSplit(ArrayList<String> myChunk){\n\t\t//Variables\n\t\tString myStringArray[] = {};\n\n\t\ttry {\n\t\t\t//step through string array and put key value pairs into a string\n\t\t\tfor(String temp : myChunk){\n\t\t\t\t//Split the key and values as put into hashMap\n\t\t\t\tif(temp != null) {\n\t\t\t\t\tmyStringArray = temp.split(\"\\\\s+\");\n\t\t\t\t\tWord word = hm.get(myStringArray[0]);\n\t\t\t\t\tif(word == null) {\n\t\t\t\t\t\thm.put(myStringArray[0], new Word(myStringArray[0], Integer.parseInt(myStringArray[1])));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\thm.get(myStringArray[0]).addToCount(Integer.parseInt(myStringArray[1]));\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}", "public OpenHashSet(java.lang.String[] data){\r\n this.hashTable = new String[defaultCapacity];\r\n this.lowerLoadFactor = defaultLowerLoadFactor;\r\n this.upperLoadFactor = defaultUpperLoadFactor;\r\n this.capacity = defaultCapacity;\r\n this.size = defaultSize;\r\n this.hashing = false;\r\n for(String i:data){\r\n this.add(i);\r\n }\r\n }", "public void setInitMap(int size,String[][] text) {\n\t\tfor(int i=0;i<this.size;i++) {\n\t\t\tfor(int j=0;j<this.size;j++) {\n\t\t\t\tthis.map[i][j] = text[i][j];\n\t\t\t\tif(map[i][j].equals(\"p\")) {\n\t\t\t\t\tsetPlayer(i,j,map[i][j]);\n\t\t\t\t}\n\t\t\t\telse if(map[i][j].equals(\"h\")||map[i][j].equals(\"s\")||map[i][j].equals(\"H\")||map[i][j].equals(\"c\")) {\n\t\t\t\t\tsetEnemy(i,j,map[i][j]);\n\t\t\t\t}\n\t\t\t\telse if(!(map[i][j].equals(\" \")||map[i][j].equals(\"*\"))){\n\t\t\t\t\tsetItemList(i,j,map[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public static void testConstructor(LetterRecord[] records, Scanner input, String[] strings) {\n\t\tSystem.out.println(\"Testing constructor...\");\n\t\tfor (int i = 0; i < strings.length; i++) {\n\t\t\tstrings[i] = input.nextLine();\n\t\t\tSystem.out.print(\" testing \\\"\" + strings[i] + \"\\\"\");\n\t\t\ttry {\n\t\t\t\trecords[i] = new LetterRecord(strings[i]);\n\t\t\t\tSystem.out.println(\"...passed\");\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"...failed\");\n\t\t\t\tSystem.out.println(\" threw exception: \" + e);\n\t\t\t\tint line = e.getStackTrace()[0].getLineNumber();\n\t\t\t\tSystem.out.println(\" in LetterInventory line#\" + line);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"passed\");\n\t\tSystem.out.println();\n\t}", "private void initializeRooms (String[] words)\n {\n int i = 1; //index for room in our txt file \n int j = 2; //index for boolean in our txt file \n int k = 3;\n Room room;\n \n while (j < words.length) //As long j is less than array lenght put room\n {\n switch (words[j]) {\n case \"ItemRoom\":\n roomsSC.put(words[i], new ItemRoom(words[i]));\n room = roomsSC.get(words[i]);\n room.setOperating(Boolean.parseBoolean(words[k]));\n break;\n case \"WorkshopRoom\":\n roomsSC.put(words[i], new WorkshopRoom(words[i]));\n room = roomsSC.get(words[i]);\n room.setOperating(Boolean.parseBoolean(words[k]));\n break;\n default:\n roomsSC.put(words[i], new ControlRoom(words[i]));\n room = roomsSC.get(words[i]);\n room.setOperating(Boolean.parseBoolean(words[k]));\n break;\n }\n \n i += 3; //Jumps to room index in our txt\n j += 3; //jumps to next boolean in txt\n k += 3;\n }\n }", "public static void main(String args[])\n {\n // Let the given dictionary be following\n String dictionary[] = {\"hit\", \"hits\", \"kilts\", \"pEg\",\"peN\",\"pentAgon\",\"slit\",\"slits\",\"sTilts\"};\n\n\n\n char boggle[][] = {{'P','W','Y','R'},\n {'E','N','T','H'},\n {'G','S','I','Q'},\n {'O','L','S','A'}\n };\n\n String[] val=findWords(boggle,dictionary);\n\n System.out.println(Arrays.toString(val));\n\n\n }", "public static void main(String args[]) \n {\n String dictionary[] = {\"GEEKS\", \"FOR\", \"QUIZ\", \"GEE\"}; \n \n // root Node of trie \n TrieNode root = new TrieNode(); \n \n // insert all words of dictionary into trie \n int n = dictionary.length; \n for (int i=0; i<n; i++) \n insert(root, dictionary[i]); \n \n char boggle[][] = {{'G','I','Z'}, \n {'U','E','K'}, \n {'Q','S','E'} \n }; \n \n findWords(boggle, root); \n }", "private LowercaseWordList() {\n\n }", "public ArrayMap() {\n this(DEFAULT_INITIAL_CAPACITY);\n }", "private static void initialise( String booth[] ) {\n\r\n for (int x = 0; x < 6; x++ ) { //Assigning all the 6 booths as \"empty\"\r\n booth[x] = \"empty\";\r\n }\r\n }", "public void initialize() {\n\t\tString alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint N = alphabet.length();\n\n\t\tRandom r = new Random();\n\t\tString key = \"\";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tkey+= alphabet.charAt(r.nextInt(N));\n\t\t}\n\t\tthis.key = key;\n\t}", "public ArrayHashMap() {\n super();\n }", "private void initLegits(Set<String> s) {\n\t\ts.addAll(letters);\n\t\ts.addAll(digits);\n }", "public void init( String dictionaryFilePath) throws IOException {\n if(dictionaryFilePath == null || dictionaryFilePath.isEmpty()) {\n dictionaryFilePath = DEFAULT_DICTIONARY;\n log.warn(\"Using Default Dictionary\");\n }\n\n DICTIONARY = Files.readAllLines(Paths.get(dictionaryFilePath))\n .parallelStream()\n .map(line -> line.replaceAll(\"[^a-zA-Z ]\", \"\"))\n .map(Word::new)\n .collect(Collectors.toCollection(ConcurrentLinkedQueue::new));\n }", "public OrderedNameMap() {\r\n\t\tthis(CASE_SENSITIVE);\r\n\t}", "public void initialise(String[] GameNames)\n\t{\n\t\tgametype = new GameType[GameNames.length];\n\t\tfor (int i = 0; i < GameNames.length; i++)\n\t\t{\n\t\t\tgametype[i] = new GameType(GameNames[i]);\n\t\t}\n\t}", "public HashMap build(String[] words, int[] chars) {\n HashMap<Character, ArrayList<Character>> adj = new HashMap<Character, ArrayList<Character>>(); \n for (int i = 0; i < words.length; i++) {\n for (int j = i + 1; j < words.length; j++) {\n buildAdjList(words[i], words[j], adj, chars);\n }\n }\n\n return adj;\n }", "public EfficientWordMarkov()\n\t{\n\t\tsuper();\n\t\tmyMap = new HashMap<WordGram , ArrayList<String>>();\n\t}", "public static void main(String[] args) {\n\t\tArrayList<String> givenArray = new ArrayList<String>();\n\t\tArrayList<String> listOfNamesStartingWithA = new ArrayList<String>();\n\t\tArrayList<String> listOfNamesStartingWithG = new ArrayList<String>();\n\t\tgivenArray.add(\"apple\");\n\t\tgivenArray.add(\"appleinc\");\n\t\tgivenArray.add(\"applemac\");\n\t\tgivenArray.add(\"google\");\n\t\t\n\t\tHashMap<String, ArrayList> map = new HashMap<String, ArrayList>();\n\t\tmap.clone();\n\t\tIterator<String> itr = givenArray.iterator();\n\t\t\n\t\twhile(itr.hasNext()) {\n\t\t\tString arrayListOb = itr.next();\n\n\t\t\tString key =arrayListOb.substring(0, 1);\n\t\t\tif(key.startsWith(\"a\")) {\n\t\t\t\tlistOfNamesStartingWithA.add(arrayListOb);\t\n\t\t\t\tmap.put(key, listOfNamesStartingWithA);\t\n\t\t\t}\n\t\t\tif(key.startsWith(\"g\")) {\n\t\t\t\tlistOfNamesStartingWithG.add(arrayListOb);\n\t\t\t\tmap.put(key, listOfNamesStartingWithG);\n\t\t\t}\t\t\t\t\n\t\t\tSystem.out.println(key);\n\t\t\tSystem.out.println(map.get(key));\n\t\t}\n\t\tSystem.out.println(map.size());\n\t\t//System.out.println(map.get(\"g\"));\n\t\t//System.out.println(map.get(\"a\"));\n\t\t/*for(Map.Entry<String,ArrayList> entry: map.entrySet())\n\t\t{\n\t\t\tSystem.out.println(map.get(\"a\"));\n\t\t}*/\n\t}", "abstract CharArraySet build();", "public Record(String[] input){\r\n\t\tsetData(input);\r\n\t}", "public Tokenizer(String[] s){\n\t\tlist = new ArrayList<String>();\n\t\tfor(int i=0;i<s.length;i++){\n\t\t\tString[] x=s[i].trim().split(\"\\\\s+\");//splits at the spaces\n\t\t\tfor(int j=0;j<x.length;j++){\n\t\t\t\tx[j]=x[j].trim().toLowerCase().replaceAll(\"\\\\W\", \"\");\n\t\t\t\tlist.add(x[j]);\n\t\t\t}//ends for loop that splits up words inside each array\n\t\t}//will go through each array\n\t}", "private static void standardPopulate(String[] s) {\n\t\tfor(/*int i = 0; i<s.length;i++*//* String z: s*/ int i = 0;i<s.length;i++){\r\n\t\t\t//s[i] = \"String #\"+(i+1);\r\n\t\t\t/*i++;\r\n\t\t\tz = \"String #\"+(i+1); */\r\n\t\t\tString string= \"String #\"+(i+1);\r\n\t\t\ts[i] = string; // setting position i into string\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Test\n public void testWordGuessArray() {\n\n // If I make a new word\n Word word = new Word(\"Llama\", 10);\n\n // The guess array should be initialized to all '_' characters\n // but be of the same length as the number of letters in the word\n Assert.assertEquals(\"Llama\".length(), word.getGuesses().length);\n Assert.assertEquals('_', word.getGuesses()[0]);\n Assert.assertEquals('_', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('_', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // If I guess the letter L (uppercase)\n // it should return true, because 'Llama' contains 2 Ls.\n Assert.assertTrue(word.guessLetter('L'));\n\n // It should update the 'guess' character array\n // to have all L's revealed regardless of casing\n // all other letters should stay hidden as '_'\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('_', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // If I guess an M, it should also be true\n Assert.assertTrue(word.guessLetter('M'));\n\n // and now the m should be revealed\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('_', word.getGuesses()[2]);\n Assert.assertEquals('m', word.getGuesses()[3]);\n Assert.assertEquals('_', word.getGuesses()[4]);\n\n // And finally an A\n Assert.assertTrue(word.guessLetter('A'));\n\n // The whole word should be revealed\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('a', word.getGuesses()[2]);\n Assert.assertEquals('m', word.getGuesses()[3]);\n Assert.assertEquals('a', word.getGuesses()[4]);\n\n // If I guess a bunch of other letters, they should all return false\n // because the word has already been completed, and revealed\n Assert.assertFalse(word.guessLetter('l'));\n Assert.assertFalse(word.guessLetter('m'));\n Assert.assertFalse(word.guessLetter('a'));\n Assert.assertFalse(word.guessLetter('c'));\n Assert.assertFalse(word.guessLetter('v'));\n Assert.assertFalse(word.guessLetter('b'));\n\n Assert.assertEquals('L', word.getGuesses()[0]);\n Assert.assertEquals('l', word.getGuesses()[1]);\n Assert.assertEquals('a', word.getGuesses()[2]);\n Assert.assertEquals('m', word.getGuesses()[3]);\n Assert.assertEquals('a', word.getGuesses()[4]);\n\n }", "public Set (ArrayList<String> inputArray) { // Constructor, taking in an ArrayList\n\t\tstringArray = inputArray;\n\t\t// Setting that passed ArrayList to our private variable\n\t}", "private void initializeNamesMap (Workspace[] wss) {\n // fill name mapping with proper values\n namesMap = new HashMap(wss.length * 2);\n for (int i = 0; i < wss.length; i++) {\n // create new string for each display name to be able to search\n // using '==' operator in findProgrammaticName(String displayName) method\n namesMap.put(wss[i].getName(), new String(wss[i].getDisplayName()));;\n }\n }", "private void createHashtable()\n {\n int numLanguages = languages.length;\n mapping = new Hashtable(numLanguages, 1.0f);\n for (int i = 0; i < numLanguages; i++)\n mapping.put(languages[i], values[i]);\n }", "Alphabet() {\n this(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n }", "Alphabet() {\n this(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n }", "Alphabet() {\n this(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n }", "public MagicDictionary() {\n\n }", "public LetterSet() {\n this(\"enEN\");\n }", "public void initialize(Vector<String> Records) {\n\t\tHashSet<String> hSet = new HashSet<String>();\n\t\tfor (String s : Records) {\n\t\t\tRuler r = new Ruler();\n\t\t\tr.setNewInput(s);\n\t\t\tfor (TNode t : r.vec) {\n\t\t\t\tif (!hSet.contains(t.text)) {\n\t\t\t\t\thSet.add(t.text);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tvocabs = hSet.toArray(new String[hSet.size()]);\n\t}", "private static Map<Character, Set<Character>> genLessMap(String[] words) throws Exception {\n Map<Character, Set<Character>> map = new HashMap<>();\n for (int i = 1; i < words.length; i ++) {\n String a = words[i - 1];\n String b = words[i];\n boolean allEqual = true;\n for (int j = 0; j < a.length() && j < b.length(); j ++) {\n if (a.charAt(j) == b.charAt(j))\n continue;\n allEqual = false;\n Set<Character> sb = map.get(a.charAt(j));\n if (sb == null) {\n sb = new HashSet<Character>();\n map.put(a.charAt(j), sb);\n }\n sb.add(b.charAt(j));\n break;\n }\n if (allEqual && a.length() > b.length())\n throw new Exception(\"Invalid.\");\n }\n return map;\n }", "public OpenHashSet(String[] data) {\n new OpenHashSet();\n linkedListStrings = new LinkedListString[INITIAL_CAPACITY];\n\n\n for (int i = 0; i < data.length; i++) {\n add(data[i]);\n }\n }", "private static List<List<String>> groupAnagramsBestCase(String[] strings) {\n List<List<String>> result = new ArrayList<>();\n Map<String, List<String>> keyToValues = new HashMap<>();\n\n for(String str : strings) {\n String key = getKey(str);\n List<String> anagrams = keyToValues.getOrDefault(key, new ArrayList<>());\n anagrams.add(str);\n\n keyToValues.put(key, anagrams);\n }\n\n result.addAll(keyToValues.values());\n return result;\n }", "public final void loadDict() {\r\n try {\r\n FileInputStream inf = new FileInputStream(dictionary);\r\n char let;\r\n String str = \"\";\r\n int n = 0;\r\n while ((n = inf.read()) != -1) {\r\n let = (char) n;\r\n if (Character.isLetter(let)) {\r\n str += Character.toLowerCase(let);\r\n }\r\n if ((Character.isWhitespace(let) || let == '-') && !str.isEmpty()) { \r\n dictList[str.charAt(0) - 97].add(str);\r\n str = \"\";\r\n\r\n }\r\n\r\n }\r\n inf.close();\r\n\r\n } catch (IOException e) {\r\n\r\n e.printStackTrace();\r\n\r\n }\r\n }", "private static Set<String> m23475a(String[] strArr) {\n if (strArr == null || strArr.length == 0) {\n return Collections.emptySet();\n }\n HashSet hashSet = new HashSet(strArr.length);\n for (String str : strArr) {\n hashSet.add(str);\n }\n return hashSet;\n }", "public DictionaryHandler() {\n\t}", "public void setWord(char[] input){\n\t\tword = new char[input.length];\n\t\tword = input;\n\t}", "void init(int dictionarySize) throws IOException;", "public void init(String... names) throws IOException;", "private static Map<String, List<String>> getCustomStringStructure(@NotNull String s) {\n String[] arr = s.split(\" \");\n // the storage\n Map<String, List<String>> map = new TreeMap<>();\n // put the first element in the storage\n List<String> l = new ArrayList<>();\n l.add(arr[0]);\n map.put(arr[0].substring(0, 1), l);\n\n for (int i = 1; i < arr.length; i++) {\n String sub = arr[i].substring(0, 1);\n // if map contains key put String arr[i] in the List\n if (map.containsKey(sub)) {\n map.get(sub).add(arr[i]);\n } else {\n // if not put first letter as a key and arr[i] as a value in the map\n List<String> list = new ArrayList<>();\n list.add(arr[i]);\n map.put(sub, list);\n }\n }\n\n // sort by size, by string's length and alphabetically\n Map<String, List<String>> collect = map.entrySet()\n .stream()\n .filter(k -> k.getValue().size() > 1)\n .collect(Collectors.toMap(\n Map.Entry::getKey,\n e -> e.getValue().stream().sorted((o1, o2) -> {\n if (o2.length() != o1.length()) {\n return o2.length() - o1.length();\n } else {\n return o1.compareTo(o2);\n }\n })\n .collect(Collectors.toList())\n ));\n\n // return TreeMap to sort keys\n return new TreeMap<>(collect);\n }", "public static void initialiseContext(String[] listOfKeys) {\n for (String a : listOfKeys) {\n keywords.add(a);\n }\n }", "public ArrayMapIterator(SimpleEntry<K, V>[] entries) {\n this.entries = entries;\n }", "private void initializeArrays(){\n arrayOfBadges = new String[6];\n stateArray = new int[6];\n for (int i = 0; i<6; i++){\n stateArray[i]=0;\n }\n arrayOfBadges[0] = \"Community\";\n arrayOfBadges[1] = \"Academic\";\n arrayOfBadges[2] = \"Dean\";\n arrayOfBadges[3] = \"Honor\";\n arrayOfBadges[4] = \"Abroad\";\n arrayOfBadges[5] = \"Graduation\";\n\n\n }", "public WordGenerator()\n {\n adjective1a = new ArrayList<String>();\n adjective1b = new ArrayList<String>();\n adjective1c = new ArrayList<String>();\n adjective2a = new ArrayList<String>();\n adjective2b = new ArrayList<String>();\n adjective2c = new ArrayList<String>();\n fillAdjectives();\n noun = \"\";\n adj1 = \"\";\n adj2 = \"\";\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tString[] dict = {\"hello\",\"leetcode\"};\r\n\t\tMagicDictionary dictionary = new MagicDictionary();\r\n\t\tdictionary.buildDict(dict);\r\n\t\tSystem.out.println(dictionary.search(\"hello\"));\r\n\t\tSystem.out.println(dictionary.search(\"hhllo\"));\r\n\t\tSystem.out.println(dictionary.search(\"hell\"));\r\n\t\tSystem.out.println(dictionary.search(\"leetcoded\"));\r\n\t\t\r\n\t\tSystem.out.println();\r\n\r\n\t\tMagicDictionary1 dictionary1 = new MagicDictionary1();\r\n\t\tdictionary1.buildDict(dict);\r\n\t\tSystem.out.println(dictionary1.search(\"hello\"));\r\n\t\tSystem.out.println(dictionary1.search(\"hhllo\"));\r\n\t\tSystem.out.println(dictionary1.search(\"hell\"));\r\n\t\tSystem.out.println(dictionary1.search(\"leetcoded\"));\r\n\t\t\r\n\t\t\r\n\t\t//System.out.println(dictionary.search(\"abcabacbababdbadbfaejfoiawfjaojfaojefaowjfoawjzoawj\"));\r\n\t\t\r\n\t}", "public ArrayList<String> anagrams(String[] strs) {\n HashMap<String, ArrayList<String>> rec=new HashMap<String,ArrayList<String>>();\n ArrayList<String> ans=new ArrayList<String>();\n if(strs.length==0)return ans;\n for(int i=0;i<strs.length;i++){\n char[] key=strs[i].toCharArray();\n Arrays.sort(key);\n String newkey=new String(key);\n if(rec.containsKey(newkey)){\n rec.get(newkey).add(strs[i]);\n }\n else{\n ArrayList<String> ad=new ArrayList<String>();\n ad.add(strs[i]);\n rec.put(newkey,ad);\n }\n }\n for(ArrayList<String> value:rec.values()){\n if(value.size()>1)ans.addAll(value);\n }\n return ans;\n }", "private static void populateWordList(Scanner dictScan) {\n\t\tfor(int i=2; i<wordList.length; i++) {\n\t\t\tif(dictScan.hasNext()) {\n\t\t\t\twordList[i] = dictScan.nextLine();\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args){\n \tunsortedWords = new ArrayList<String>();\n sortedWords = new ArrayList<String>();\n \ttry{\n \t\tInputStreamReader in = new InputStreamReader(System.in);\n \t\tBufferedReader input = new BufferedReader(in);\n \t\talphabetString = input.readLine();\n \t\tif (alphabetString == null || alphabetString == \"\"){\n \t\t\tthrow new IllegalArgumentException();\n \t\t}\n\n \t\tstr = input.readLine();\n if (str == null || str == \"\"){\n throw new IllegalArgumentException();\n }\n \n \t\twhile (str != null){\n \t\t\tunsortedWords.add(str);\n \t\t\tstr = input.readLine();\n numberOfWords += 1;\n \t\t}\n\n\n\n \t}\n \tcatch (IOException io){\n \t\tSystem.out.println(\"There are no words given\");\n \t\tthrow new IllegalArgumentException();\n\n \t}\n\n alphabetMap = new HashMap<String, Integer>();\n String[] alphabetLetters = alphabetString.split(\"\");\n \tint j = 0;\n \tString letter;\n \t// String[] alphabetLetters = alphabetString.split(\"\");\n \twhile (j < alphabetLetters.length){\n letter = alphabetLetters[j];\n if (alphabetString.length() - alphabetString.replace(letter, \"\").length() > 1) {\n System.out.println(letter);\n throw new IllegalArgumentException();\n }\n alphabetMap.put(alphabetLetters[j], j);\n j += 1;\n }\n //for checking the last value something is in the outputed list. \n lastArrayIndex = 0;\n\n //sorts words\n int k = 0;\n String chosenWord;\n while (k < unsortedWords.size()){\n chosenWord = unsortedWords.get(k);\n sorting(chosenWord, sortedWords);\n k += 1; \n }\n\n //prints words\n int l = 0;\n String printedWord;\n while (l < sortedWords.size()){\n printedWord = sortedWords.get(l);\n System.out.println(printedWord);\n l += 1;\n }\n\n\n \t//making the trie\n // usedTrie = makeATrie(unsortedWords);\n\n //printing out the order\n // recursiveAlphabetSorting(usedTrie, \"\", alphabetString);\n\n\n }", "public static Dictionary load(Stream<String> lines) {\n final Dictionary dictionary = new Dictionary();\n lines.map(DictionaryReader::keepOnlyAlphabets).distinct().filter(word -> !isNullOrEmpty(word))\n .map(String::toUpperCase).forEach(word -> {\n final String number = wordToNumber(word);\n dictionary.addWord(number, word);\n });\n return dictionary;\n }", "public static void initBoards(String keyword, char[] guessBoard, char[] alphabetBoard) {\n Arrays.fill(guessBoard, '_');\n for(int i = 0; i < 26; i++) alphabetBoard[i] = (char) (65 + i);\n }", "public Trie createTrie(List<String[]> articles) {\n Trie trie = new Trie();\n for(String[] article : articles) {\n Map<String, Integer> res = putIntoDictinary(article[1]);\n trie.addArticle(article[0], res);\n }\n return trie;\n }", "private void buildBoundary(Set<String> dict) {\n for (String s : dict) {\n int len = s.length();\n min = Math.min(min, len);\n max = Math.max(max, len);\n }\n }", "public DictionaryAdapter(Map<String,String> dict) {\n mData = new ArrayList();\n mData.addAll(dict.entrySet());\n }", "private void fillMap(String[] querys) {\r\n\r\n\t\tLOG.info(\"fillMap\");\r\n\r\n\t\tquerysMap = new HashMap<String, String>();\r\n\t\t\r\n\t\tfor (String query : querys) {\r\n\t\t\t\r\n\t\t\tString[] temp = getStringArray(query, START_QUERY_PATTERN);\r\n\t\t\t\r\n\t\t\tif (temp != null && temp.length == 2) {\r\n\t\t\t\t\r\n\t\t\t\ttemp[0] = temp[0].replaceAll(\"\\\\P{Alnum}\", \"\");\r\n\t\t\t\tquerysMap.put(temp[0], temp[1].trim());\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tLOG.error(\"El array es nulo o la longitud no es la esperada\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tLOG.info(\"END fillMap\");\r\n\r\n\t}" ]
[ "0.6877559", "0.6522838", "0.64714515", "0.64549416", "0.6431791", "0.6358713", "0.63447106", "0.63152283", "0.62148565", "0.6152647", "0.60681653", "0.6052073", "0.6048187", "0.5940477", "0.577716", "0.5765131", "0.56934154", "0.56650335", "0.5663734", "0.5633483", "0.5621881", "0.55954456", "0.55560696", "0.5552901", "0.5460693", "0.54567945", "0.5448335", "0.5435188", "0.5435188", "0.5435188", "0.54133695", "0.54130787", "0.5406682", "0.5403037", "0.53988194", "0.53715366", "0.534651", "0.53452486", "0.5339153", "0.5318146", "0.53177106", "0.5309546", "0.52971166", "0.5289812", "0.52859896", "0.52612704", "0.5254563", "0.52510464", "0.5245208", "0.5224684", "0.5212299", "0.5210088", "0.51964676", "0.5188933", "0.5181011", "0.5170717", "0.5166798", "0.5156742", "0.5127621", "0.512718", "0.5124067", "0.51161516", "0.5082768", "0.50705916", "0.5065682", "0.5046213", "0.5032457", "0.50263053", "0.50238246", "0.50158924", "0.50137925", "0.50137925", "0.50137925", "0.5006427", "0.50060004", "0.4997289", "0.4993654", "0.49933565", "0.4992769", "0.49855828", "0.49842796", "0.4972863", "0.49587783", "0.49556753", "0.49519712", "0.49478585", "0.49464354", "0.49445716", "0.4943046", "0.49425057", "0.49359033", "0.49349976", "0.49329856", "0.49307498", "0.49279556", "0.49151754", "0.49103817", "0.49056843", "0.49041632", "0.48929852" ]
0.61857843
9
returns the set of all valid words in the given Boggle board, as an Iterable.
public Iterable<String> getAllValidWords(BoggleBoard board) { int rows = board.rows(); int cols = board.cols(); ArrayList<String> all = new ArrayList<String>(); // 1. enumerate all strings that can be composed by adj dice for (int i = 0; i < rows; i++) { for (int j = 0; j < cols; j++) depthFirstSearch(board, i, j, all); } // 2. for each string, check the longest prefix // 2. store the word wordsSoFar = all; return wordsSoFar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterable<String> getAllValidWords(final BoggleBoard board) {\n HashSet<String> validwords = new HashSet<>();\n for (int i = 0; i < board.rows(); i++) {\n for (int j = 0; j < board.cols(); j++) {\n boolean[][] marked = new boolean[board.rows()][board.cols()];\n String word = \"\";\n dfs(board, marked, i, j, word, validwords);\n }\n }\n return validwords;\n }", "public Iterable<String> getAllValidWords(BoggleBoard board) {\n boardRows = board.rows();\n boardCols = board.cols();\n boolean[][] visited = new boolean[boardRows][boardCols];\n HashSet<String> foundWords = new HashSet<>();\n for (int row = 0; row < boardRows; row++) {\n for (int col = 0; col < boardCols; col++) {\n doSearch(row, col, root, board, visited, foundWords);\n }\n }\n return foundWords;\n }", "public Iterable<String> getAllValidWords(BoggleBoard board) {\n\t\tboolean[][] visited = new boolean[board.rows()][board.cols()];\n\t\tSet<String> results = new HashSet<>();\n\t\tTST.BacktrackTraverser<Integer> bt = tst.getTraverser();\n\t\tfor (int y = 0; y < board.rows(); y++) {\n\t\t\tfor (int x = 0; x < board.cols(); x++) {\n\t\t\t\tif (!bt.hasDown(board.getLetter(y, x))) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tvisited[y][x] = true;\n\t\t\t\tbt.down(board.getLetter(y, x));\n\t\t\t\tdfs(y, x, visited, results, board, bt);\n\t\t\t\tbt.up();\n\t\t\t\tvisited[y][x] = false;\n\t\t\t}\n\t\t}\n\n\t\treturn results;\n\t}", "public Iterable<String> getAllValidWords(BoggleBoard board) {\n m = board.rows();\n n = board.cols();\n graph = new char[m][n];\n marked = new boolean[m][n];\n for (int i = 0; i < m; ++i) {\n for (int j = 0; j < n; ++j) {\n graph[i][j] = board.getLetter(i, j);\n }\n }\n\n words = new HashSet<String>();\n for (int i = 0; i < m; ++i) {\n for (int j = 0; j < n; ++j) {\n dfs(i, j, \"\");\n }\n }\n return words;\n }", "public Iterable<String> getAllValidWords(BoggleBoard board) {\n // precompute board\n int rows = board.rows(), cols = board.cols();\n Dice[][] diceBoard = new Dice[rows][cols];\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n diceBoard[i][j] = new Dice(board.getLetter(i, j), i, j);\n }\n }\n boggleGraph = new Dice[rows][cols][];\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n List<Dice> list = new ArrayList<Dice>();\n if (i > 0) {\n if (j > 0) {\n list.add(diceBoard[i-1][j-1]);\n }\n list.add(diceBoard[i-1][j]);\n if (j < cols - 1) {\n list.add(diceBoard[i-1][j+1]);\n }\n }\n if (j > 0) {\n list.add(diceBoard[i][j-1]);\n }\n if (j < cols - 1) {\n list.add(diceBoard[i][j+1]);\n }\n if (i < rows - 1) {\n if (j > 0) {\n list.add(diceBoard[i+1][j-1]);\n }\n list.add(diceBoard[i+1][j]);\n if (j < cols - 1) {\n list.add(diceBoard[i+1][j+1]);\n }\n }\n boggleGraph[i][j] = list.toArray(new Dice[list.size()]);\n }\n }\n\n // run\n result = new HashSet<String>();\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n Stack<Dice> stack = new Stack<Dice>();\n stack.push(diceBoard[i][j]);\n find(buildWord(diceBoard[i][j].letter), stack, i, j);\n }\n }\n\n return result;\n }", "private void findValidWordsOnBoard(){\n\n //mark each visited cell to ensure it gets used only once while forming a word\n boolean[][] visited = new boolean[boardLength][boardLength];\n String word = \"\";\n\n for(int i = 0; i < boardLength; i++) {\n for(int j = 0; j < boardLength; j++)\n findWordsOnBoard(word, visited, board, i, j);\n }\n }", "public Set<String> getWordsNotFoundByUser(){\n\n Set<String> validWordsOnBoardCopy = new HashSet<String>();\n validWordsOnBoardCopy.addAll(validWordsOnBoard);\n validWordsOnBoardCopy.removeAll(validWordsFoundByUser);\n\n return validWordsOnBoardCopy;\n }", "private static void findWords(char boggleBoardChars[][], Trie trie, String[] valids) { \r\n\t\tboolean[][] visitedTiles = new boolean[4][4]; \r\n\r\n\t\tString str = \"\"; \r\n\t\t//searches for valid word starting at each die on board\r\n\t\tfor (int row = 0 ; row < 4; row++) { \r\n\t\t\tfor (int col = 0 ; col < 4 ; col++) { \r\n\t\t\t\tif (trie.isInTrie( (boggleBoardChars[row][col] + \"\").toUpperCase())) { \r\n\t\t\t\t\tstr = str+boggleBoardChars[row][col]; \r\n\t\t\t\t\tboggleBoardSearch(trie, boggleBoardChars, row, col, visitedTiles, str, valids); \r\n\t\t\t\t\tstr = \"\"; \r\n\t\t\t\t} \r\n\t\t\t} \r\n\t\t} \r\n\t}", "public static String[] validateAllWords(char[][] boggleBoardChars, int lang) throws FileNotFoundException { \r\n\t\t// load dictionary\r\n\t\tFile wordList = null;\r\n\t\tif(lang == 0) {\r\n\t\t\twordList = new File(dictionaryEng);\r\n\t\t} else if(lang==1) {\r\n\t\t\twordList = new File(dictionarySpan);\r\n\t\t}\r\n\t\tScanner scan = new Scanner(wordList);\r\n\t\t// create trie to store dictionary words for later lookup and insert words\r\n\t\tTrie trie = new Trie(); \r\n\r\n\t\twhile(scan.hasNextLine()) {\r\n\t\t\ttrie.insert(scan.nextLine()); \r\n\t\t}\r\n\t\t//\r\n\t\tfindWords(boggleBoardChars, trie ,allValidWords);\r\n\t\t\r\n\t\t//close scanner and return\r\n\t\tscan.close();\r\n\t\treturn allValidWords;\r\n\t}", "public static ArrayList<String> boggle(char[][] board, Trie dict) {\n ArrayList<String> result = new ArrayList<String>();\n boolean[][] history = new boolean[board.length][board[0].length];\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[0].length; j++) {\n boggle(history, board, result, i, j, \"\", dict);\n }\n }\n\n return result;\n }", "public Collection<String> words() {\n Collection<String> words = new ArrayList<String>();\n TreeSet<Integer> keyset = new TreeSet<Integer>();\n keyset.addAll(countToWord.keySet());\n for (Integer count : keyset) {\n words.addAll(this.countToWord.get(count));\n }\n return words;\n }", "public Set<String> getWords() {\n return wordMap.keySet();\n }", "static ArrayList<String> findWords(char boggle[][], WordNode root)\n {\n // Mark all characters as not visited\n boolean[][] visited = new boolean[boggle.length][boggle[0].length];\n WordNode pChild = root ;\n\n String str = \"\";\n ArrayList<String> list=new ArrayList<String>();\n\n // traverse all matrix elements\n for (int i = 0 ; i < boggle.length; i++)\n {\n for (int j = 0 ; j < boggle[0].length ; j++)\n {\n // we start searching for word in dictionary\n // if we found a character which is child\n // of Trie root\n if (pChild.child[(Character.toLowerCase(boggle[i][j])) - 'a'] != null)\n {\n str = str+Character.toLowerCase(boggle[i][j]);\n\n //String word=str;\n\n searchWord(pChild.child[(Character.toLowerCase(boggle[i][j])) - 'a'],\n boggle, i, j, visited, str, list);\n\n\n str = \"\";\n }\n }\n }\n return list;\n }", "public Iterator<String> words();", "public Set<String> getWords() {\n\t\treturn Collections.unmodifiableSet(this.invertedIndex.keySet());\n\t}", "private List<String> getFilteredWords() {\r\n\t\tArrayList<String> filteredWords = new ArrayList<String>(16);\r\n\t\t\r\n\t\tfor (String word : allWords) {\r\n\t\t\tif (matchesFilter(word) == true) {\r\n\t\t\t\tfilteredWords.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn filteredWords;\r\n\t}", "private static void boggleBoardSearch(Trie trie, char boggleBoardChars[][], int row, \r\n\t\t\tint col, boolean visitedTiles[][], String str, String[] valids) { \r\n\r\n\t\tif(trie.isInTrie(str.toUpperCase()) && str.length() > 2) {\r\n\t\t\tvalids[totalBoardWords] = str.toUpperCase();\r\n\t\t\ttotalBoardWords++;\r\n\t\t}\r\n\r\n\t\tif (validBoardTile(row, col, visitedTiles)) { \r\n\t\t\t// set the visited tile to TRUE in the array\r\n\t\t\tvisitedTiles[row][col] = true; \r\n\r\n\t\t\t//Goes through all the possible combinations of words based on that tile and previously\r\n\t\t\t// visited tiles\r\n\t\t\tfor (int i =0; i < 26; i++) { \r\n\r\n\t\t\t\tif (trie.getRoot().getChildren() != null) { \r\n\t\t\t\t\tchar ch = (char) (i + 'A') ; \r\n\r\n\t\t\t\t\t// checks all the possible tiles next to it for words,\r\n\t\t\t\t\t// up, upLeft, upRight, left, right, down, downLeft, downRight\r\n\t\t\t\t\tif (validBoardTile(row+1,col, visitedTiles) && boggleBoardChars[row+1][col] == ch) {\r\n\t\t\t\t\t\tboggleBoardSearch(trie,boggleBoardChars,row+1, col, visitedTiles,str+ch, valids); \r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (validBoardTile(row+1,col-1,visitedTiles) && boggleBoardChars[row+1][col-1] == ch) {\r\n\t\t\t\t\t\tboggleBoardSearch(trie,boggleBoardChars,row+1, col-1, visitedTiles,str+ch, valids); \r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (validBoardTile(row+1,col+1,visitedTiles) && boggleBoardChars[row+1][col+1] == ch) {\r\n\t\t\t\t\t\tboggleBoardSearch(trie,boggleBoardChars,row+1,col+1, visitedTiles,str+ch, valids); \r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (validBoardTile(row, col-1,visitedTiles)&& boggleBoardChars[row][col-1] == ch) {\r\n\t\t\t\t\t\tboggleBoardSearch(trie,boggleBoardChars,row,col-1, \tvisitedTiles,str+ch, valids); \r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (validBoardTile(row, col+1,visitedTiles) && boggleBoardChars[row][col+1] == ch) {\r\n\t\t\t\t\t\tboggleBoardSearch(trie,boggleBoardChars,row, col+1, visitedTiles,str+ch, valids); \r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (validBoardTile(row-1, col,visitedTiles) && boggleBoardChars[row-1][col] == ch) {\r\n\t\t\t\t\t\tboggleBoardSearch(trie,boggleBoardChars,row-1, col, visitedTiles,str+ch, valids);\r\n\t\t\t\t\t} \r\n\t\t\t\t\tif (validBoardTile(row-1,col-1,visitedTiles) && boggleBoardChars[row-1][col-1] == ch) {\r\n\t\t\t\t\t\tboggleBoardSearch(trie,boggleBoardChars,row-1, col-1, visitedTiles,str+ch, valids); \r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (validBoardTile(row-1,col+1,visitedTiles) && boggleBoardChars[row-1][col+1] == ch) {\r\n\t\t\t\t\t\tboggleBoardSearch(trie,boggleBoardChars,row-1, col+1, visitedTiles,str+ch, valids);\r\n\t\t\t\t\t} \r\n\t\t\t\t} \r\n\t\t\t} \r\n\t\t\t//since we are done testing this tile we set it back to being nonvisited for this test case\r\n\t\t\tvisitedTiles[row][col] = false; \r\n\t\t} \r\n\t}", "public Set<String> getWords() {\n return wordsOccurrences.keySet();\n }", "@Override\n\tpublic Set<String> getWordSet() {\n\t\tlock.lockReadOnly();\n\t\ttry {\n\t\t\treturn super.getWordSet();\n\t\t} finally {\n\t\t\tlock.unlockReadOnly();\n\t\t}\n\t}", "private ArrayList<String> allWords(int ret, ArrayList<Character> mustIn){\n String mustContain = \"\";\n for (int inde = 0; inde < mustIn.size(); inde++) {\n mustContain+=mustIn.get(inde);\n }\n \n ArrayList<String> allAnagrams = new ArrayList<String>();\n \n for (int inde = 0; inde < combinations.size(); inde++){\n ArrayList<Piece> temp = combinations.get(inde);\n if (temp.size()<=ret){\n String lettersToAdd = \"\";\n \n for (int i = 0; i < temp.size(); i++)\n lettersToAdd +=temp.get(i).theLetter();\n \n allAnagrams.add(mustContain+\"\"+lettersToAdd);\n }\n }\n \n return allAnagrams;\n }", "public List<String> validWords(int input) throws Exception {\n List<String> validStrings = new ArrayList<>();\n getValidStrings(validStrings, \"\", Integer.toString(input));\n return validStrings;\n }", "public List<String> getAllWords() {\n List<String> words = new ArrayList<>();\n // get the words to the list\n getAllWords(root, \"\", 0, words);\n // and return the list of words\n return words;\n }", "public Set getBoardSet(String s){\n return board.getSet(s);\n }", "private static List<String> getCandidates(String w, Set<String> words) {\n List<String> result = new LinkedList<>();\n for (int i = 0; i < w.length(); i++) {\n char[] chars = w.toCharArray();\n for (char ch = 'A'; ch <= 'Z'; ch++) {\n chars[i] = ch;\n String candidate = new String(chars);\n if (words.contains(candidate)) {\n result.add(candidate);\n }\n }\n }\n return result;\n }", "public Iterator words() {\n return index.keySet().iterator();\n }", "public Set<Square> validDestinations(Board b);", "public ArrayList<String> FindAllCombinationWord(String str) {\r\n\r\n ArrayList<String> wordList = new ArrayList<String>();\r\n\r\n int n = str.length();\r\n ArrayList<String> combinationWord = permute(str, 0, n - 1);\r\n\r\n for (String item : combinationWord) {\r\n int j = 0;\r\n for (int i = n; i >= 2; i--) {\r\n String finalString = item.substring(j);\r\n\r\n if (!wordList.contains(finalString)) {\r\n wordList.add(finalString);\r\n }\r\n j++;\r\n }\r\n }\r\n return wordList;\r\n }", "private void fillSet() {\r\n\t\tString regex = \"\\\\p{L}+\";\r\n\t\tMatcher matcher = Pattern.compile(regex).matcher(body);\r\n\t\twhile (matcher.find()) {\r\n\t\t\tif (!matcher.group().isEmpty()) {\r\n\t\t\t\twords.add(matcher.group());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean isStringMadeofAllUniqueChars(String word) {\n if (word.length() > 128) {\n return false;\n }\n boolean[] char_set = new boolean[128];\n for (int i = 0; i < word.length(); i++) {\n int val = word.charAt(i);\n System.out.println(val);\n if (char_set[val]) {\n return false;\n }\n char_set[val] = true;\n }\n return true;\n }", "public static Collection<Character> getWhitelist(){\n\t\treturn new HashSet<Character>(kanjiWhitelist);\n\t}", "public int allWordsHorizontal(Board board, Dictionary dictionary, Scrabble game, int moves){\n // Initializes variables\n testBoard = board;\n String topHWord = \"\";\n int topHScore = 0;\n int topHRow=0;\n int topHCol=0;\n boolean theWay = true;\n boolean found = false;\n ArrayList<Piece> piecesOfTopWord = new ArrayList<Piece>();\n\n // Goes through ever point on the board\n for (int row = 0; row < 15; row++){\n for (int col = 0; col < 15; col++) {\n if (game.numOfMoves()==0){\n row = 7;\n col = 7;\n }\n \n // The word to make at that point\n mustUse=new ArrayList<Character>();\n mustUseVert=new ArrayList<Character>(); \n int retHorz = anagramAtSquare(row,col,col,0,false, moves);\n int retVert = anagramAtSquareVert(row,col,row,0,false, moves);\n \n // Puts the word on the board and checks to make sure valid word, and if it is top word it stores information about the word for horizontal words\n ArrayList<String> allAnagrams = null;\n if (retHorz!=-1){\n allAnagrams = allWords(retHorz, mustUse);\n for (int inde = 0; inde < allAnagrams.size(); inde++){\n ArrayList<String> test = dictionary.anagram(allAnagrams.get(inde).toLowerCase());\n if(test != null){\n for (int all = 0; all < test.size(); all++) {\n if (addToBoardHor(col, row, all, test, board)) {\n if (game.isValidMove()||moves==0) {\n ArrayList<ArrayList<Piece>> words = new ArrayList<ArrayList<Piece>>();\n words.addAll(board.words());\n if (game.isValidWord(words)){\n int trackScore=0;\n trackScore=board.scoreAI(words);\n if (board.numNonPinned() == 7)\n trackScore+=50;\n if (trackScore>topHScore && game.getStrength()){\n wordsToDisplay = new ArrayList<String>();\n for (int index = 0; index < words.size(); index++)\n {\n ArrayList<Piece> word = new ArrayList<Piece>();\n word = words.get(index);\n String wordToCheck = \"\";\n for (int indexInner = 0; indexInner < word.size(); indexInner++)\n wordToCheck += word.get(indexInner).theLetter();\n\n if (wordToCheck.length() > 1)\n wordsToDisplay.add(wordToCheck);\n }\n\n topHWord = test.get(all);\n topHScore = trackScore;\n topHRow=row;\n topHCol=col;\n theWay= true;\n found = true;\n piecesOfTopWord = words.get(0);\n } else if (trackScore>topHScore && trackScore<15){\n wordsToDisplay = new ArrayList<String>();\n for (int index = 0; index < words.size(); index++)\n {\n ArrayList<Piece> word = new ArrayList<Piece>();\n word = words.get(index);\n String wordToCheck = \"\";\n for (int indexInner = 0; indexInner < word.size(); indexInner++)\n wordToCheck += word.get(indexInner).theLetter();\n\n if (wordToCheck.length() > 1)\n wordsToDisplay.add(wordToCheck);\n }\n\n topHWord = test.get(all);\n topHScore = trackScore;\n topHRow=row;\n topHCol=col;\n theWay= true;\n found = true;\n piecesOfTopWord = words.get(0);\n }\n }\n \n board.clearNonPinned();\n } else {\n board.clearNonPinned();\n }\n }\n }\n }\n }\n }\n \n // Puts the word on the board and checks to make sure valid word, and if it is top word it stores information about the word for Vertical words\n allAnagrams = null;\n if (retVert!=-1){\n allAnagrams = allWords(retVert, mustUse);\n for (int inde = 0; inde < allAnagrams.size(); inde++){\n ArrayList<String> test = dictionary.anagram(allAnagrams.get(inde).toLowerCase());\n if(test != null){\n for (int all = 0; all < test.size(); all++) {\n if (addToBoardVer(col, row, all, test, board)) {\n if (game.isValidMove()||moves==0) {\n ArrayList<ArrayList<Piece>> words = new ArrayList<ArrayList<Piece>>();\n words.addAll(board.words());\n if (game.isValidWord(words)){\n int trackScore=0;\n trackScore=board.scoreAI(words);\n if (board.numNonPinned() == 7)\n trackScore+=50;\n if (trackScore>topHScore && game.getStrength()){\n wordsToDisplay = new ArrayList<String>();\n for (int index = 0; index < words.size(); index++)\n {\n ArrayList<Piece> word = new ArrayList<Piece>();\n word = words.get(index);\n String wordToCheck = \"\";\n for (int indexInner = 0; indexInner < word.size(); indexInner++)\n wordToCheck += word.get(indexInner).theLetter();\n\n if (wordToCheck.length() > 1)\n wordsToDisplay.add(wordToCheck);\n }\n \n topHWord = test.get(all);\n topHScore = trackScore;\n topHRow=row;\n topHCol=col;\n theWay=false;\n found = true;\n piecesOfTopWord = words.get(0);\n } else if (trackScore>topHScore && trackScore<15){\n wordsToDisplay = new ArrayList<String>();\n for (int index = 0; index < words.size(); index++)\n {\n ArrayList<Piece> word = new ArrayList<Piece>();\n word = words.get(index);\n String wordToCheck = \"\";\n for (int indexInner = 0; indexInner < word.size(); indexInner++)\n wordToCheck += word.get(indexInner).theLetter();\n\n if (wordToCheck.length() > 1)\n wordsToDisplay.add(wordToCheck);\n }\n \n topHWord = test.get(all);\n topHScore = trackScore;\n topHRow=row;\n topHCol=col;\n theWay=false;\n found = true;\n piecesOfTopWord = words.get(0);\n }\n }\n \n board.clearNonPinned();\n } else {\n board.clearNonPinned();\n }\n }\n }\n }\n }\n }\n \n if (game.numOfMoves()==0){\n row = 15;\n col = 15;\n }\n \n }\n }\n \n System.out.println(\"Top Word: \" + topHWord + \" Score: \" + topHScore + \" Row: \" + topHRow + \" Col: \" + topHCol+ \" HorOrVert: \" + theWay);\n for (int i = 0; i < piecesOfTopWord.size(); i++) {\n System.out.print(piecesOfTopWord.get(i).theLetter());\n }\n System.out.println();\n \n for (int i = 0; i < playersPieces.size(); i++) {\n System.out.print(playersPieces.get(i).theLetter());\n }\n System.out.println();\n \n // Returns what move to make\n if (found){\n putOnBoard(topHRow, topHCol, theWay,topHWord, piecesOfTopWord, board);\n return 1;\n }\n else if (!game.isBagEmpty()){\n return 2;\n }else\n return 3;\n }", "private ISet<String> getKeySet(IList<String> words) {\n\t\tISet<String> keySet = new ChainedHashSet<String>();\n\t\tfor (String word: words) {\n\t\t\tkeySet.add(word);\n\t\t}\n\t\treturn keySet;\n }", "public static List<String> search(char[][] board, Set<String> set) {\n List<String> ret = new LinkedList<String>();\n if (set == null || set.size() == 0) return ret;\n boolean[][] visited = new boolean[board.length][board[0].length];\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[0].length; j++) {\n search(board, i, j, \"\", set, visited, ret);\n }\n }\n return ret;\n }", "public List<String> legalMoves() {\n List<String> result = new ArrayList<>();\n for (int col = 1; col < _board.length + 1; col += 1) {\n for (int row = 1; row < _board.length + 1; row += 1) {\n String move = row + \",\" + col;\n if (isLegal(move)) {\n result.add(move);\n }\n }\n }\n return result;\n }", "private Set<Integer> getSynsetKeys(String word) {\n HashSet<Integer> kset = new HashSet<Integer>();\n\n for (ArrayList<String> o : synsetRev.keySet()) {\n for (String p : o) {\n if (p.equals(word)) {\n kset.add(synsetRev.get(o));\n }\n }\n }\n return kset;\n }", "public Iterable<Board> solution() {\n\t\treturn result;\n\t}", "public ArrayList<String> getWords() {\n return words;\n }", "public ArrayList <String> getWordList () {\r\n return words;\r\n }", "public List<List<String>> wordSquares(String[] words) {\n if (words == null || words.length == 0) {\n return new ArrayList<>();\n }\n\n Trie trie = new Trie();\n for (String word : words) {\n trie.add(word);\n }\n\n Stack<String> stack = new Stack<>();\n List<List<String>> list = new ArrayList<>();\n int target = words[0].length();\n\n dfs(stack, list, trie, 0, target, \"\");\n\n return list;\n }", "private void findWordsOnBoard(String word, boolean[][] visited, char[][] board, int i, int j) {\n\n //mark visited word cell as true so we don't use it again in the formation of a word\n visited[i][j] = true;\n //add the word of cell just visited to the end of the word\n word += board[i][j];\n\n //if word is valid / in dictionary, add it to validWordsOnBoard, else ignore\n if(word.length() >= 3 && dictionary.search(word.toLowerCase()))\n {\n validWordsOnBoard.add(word);\n }\n\n\n for(int row = i - 1; row <= i + 1 && row < board.length; row++) {\n\n for(int column = j - 1; column <= j+ 1 && column < board[0].length; column++) {\n\n if(row >= 0 && column >= 0 && !visited[row][column]){\n\n if(dictionary.hasPrefix(word.toLowerCase())){\n findWordsOnBoard(word, visited, board, row, column);\n }\n }\n }\n }\n\n //take out the last letter (of just visited cell) from word\n String temp = word.substring(0,word.length()-1);\n word = temp;\n visited[i][j] = false;\n }", "public ArrayList<String> getWords() {\n return new ArrayList<>(words);\n }", "public WordSearchBoard(String[] wordBoardIn) {\r\n setBound(wordBoardIn);\r\n markBoard = new boolean[squareDimension][squareDimension];\r\n wordBoard = new String[squareDimension][squareDimension];\r\n int pos = 0;\r\n for (String s: wordBoardIn) {\r\n wordBoard[this.rowPos(pos)][this.colPos(pos)] = s.toUpperCase();\r\n pos++;\r\n }\r\n }", "public Cursor getRejectedWords()\n\t{\n\t\treturn getWordsByType(DBConstants.WORDTYPE_REJECTED);\n\t}", "Collection<CrosswordEntry> getCrosswordEntries();", "public void computeWords(){\n\n loadDictionary();\n\n CharacterGrid characterGrid = readCharacterGrid();\n\n Set<String> wordSet = characterGrid.findWordMatchingDictionary(dictionary);\n\n System.out.println(wordSet.size());\n for (String word : wordSet) {\n\t System.out.println(word);\n }\n\n // System.out.println(\"Finish scanning character grid in \" + (System.currentTimeMillis() - startTime) + \" ms\");\n }", "public boolean allUnique(String word) {\n if(word == null || word.length() <= 1) {\n return false;\n }\n char[] array = word.toCharArray();\n int[] alphabet = new int[8];\n for (char c : array) {\n int bitindex = c;\n int row = bitindex / 32;\n int col = bitindex % 32;\n if ((alphabet[row] & (1 << col)) != 0) {\n return false;\n } else {\n alphabet[row] = alphabet[row] | (1 << col);\n }\n }\n return true;\n }", "public ArrayList<Square> enemyValidSquares() {\r\n\t\tArrayList<Square> result = new ArrayList<Square>();\r\n\t\tArrayList<Square> enemyList = (myBoard.activeColour == Colour.WHITE) ? myBoard.myGame.blackList : myBoard.myGame.whiteList;\r\n\t\t//for every square in my enemy list\r\n\t\tArrayList<Move> tempList;\r\n\t\tfor (Square sq : enemyList) {\r\n\t\t\ttempList = sq.mySB.getValidMoves();\r\n\t\t\tfor (Move m: tempList) {\r\n\t\t\t\tresult.add(m.end);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public Set<Line> getPossibleMoves(Square[][] board) {\n Set<Line> empty = new HashSet<Line>();\n return getPossibleMoves(board, empty, 0);\n }", "private ArrayList<Integer> getEmptySpaces(char[] board) {\n ArrayList<Integer> emptySpaces = new ArrayList<>();\n for (int i = 0; i < board.length; i++) {\n if (board[i] == ' ') {\n emptySpaces.add(i);\n }\n }\n return emptySpaces;\n }", "public List<Word> getWordsWithGivenLetter(Text text, char ch) {\n\n List<Word> allWords = getTextWords(text.getBookText());\n\n List<Word> words = new ArrayList<Word>();\n\n for (int i = 0; i < allWords.size(); i++) {\n Word tempWord = new Word(allWords.get(i).getCharsSequence());\n if (logic.isWordContainChar(tempWord, ch)) {\n if (!words.contains(tempWord)) {\n words.add(tempWord);\n }\n }\n }\n\n Collections.sort(words, new WordGivenCharComparator(ch));\n\n return words;\n }", "public static Set<String> createSet() {\n Set<String> set = new HashSet<>();\n set.add(\"lesson\");\n set.add(\"large\");\n set.add(\"link\");\n set.add(\"locale\");\n set.add(\"love\");\n set.add(\"light\");\n set.add(\"limitless\");\n set.add(\"lion\");\n set.add(\"line\");\n set.add(\"lunch\");\n set.add(\"level\");\n set.add(\"lamp\");\n set.add(\"luxurious\");\n set.add(\"loop\");\n set.add(\"last\");\n set.add(\"lie\");\n set.add(\"lose\");\n set.add(\"lecture\");\n set.add(\"little\");\n set.add(\"luck\");\n\n return set;\n }", "Set<String> getUniqueCharacterStrings();", "public static List<String> validWords(List<String> words)\n\t{\n\t\tStemmer stemmer = new Stemmer();\n\t\tList<String> goodWords = new ArrayList<String>();\n\t\tfor (String word : words)\n\t\t{\n\t\t\tString stem = stemmer.stem(word);\n\t\t\tif (dictUtils.dict.containsKey(stem))\n\t\t\t{\n\t\t\t\tgoodWords.add(dictUtils.dict.get(stem));\n\t\t\t}\n\t\t}\n\t\treturn goodWords;\n\t}", "boolean allWordsGuessed()\n\t{\n\t\tfor( int i = 0; i < entry.getLinkedWords().size(); i++ )\n\t\t\tif( ! wordGuessed[i] )\n\t\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "public boolean[][] validateWord(String s, Set<String> set) {\n boolean[][] isWord = new boolean[s.length()][s.length()];\n for (int i = 0; i < s.length(); i++) {\n for (int j = i; j < s.length(); j++) {\n isWord[i][j] = set.contains(s.substring(i, j + 1));\n }\n }\n return isWord;\n }", "public static Set getAllEnzymes()\n {\n return Collections.unmodifiableSet(enzymeToPattern.keySet());\n }", "List<T> getWord();", "private ArrayList<String> matchingWords(String word){\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor(int i=0; i<words.size();i++){\n\t\t\tif(oneCharOff(word,words.get(i))){\n\t\t\t\tlist.add(words.get(i));\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "@Test\n public void boggle(){\n BoggleBoard board = new BoggleBoard(\"datasets/board5x5.txt\");\n\n BogglePlayer player = new BogglePlayer(Permeate.textToStringAr(\"datasets/dictionary-yawl.txt\"));\n\n for (String word : player.getAllValidWords(board)) {\n System.out.println(word);\n }\n assertEquals(2911,player.getMaximumScore(board));\n }", "public List<Map.Entry<String, Integer>> getWordList(){\n\t\treturn new ArrayList<>(GeneralWordCounter.entrySet());\n\t}", "public Cursor getAcceptedWords()\n\t{\n\t\treturn getWordsByType(DBConstants.WORDTYPE_ACCEPTED);\n\t}", "public static Set<String> getUniqueWords(String input) {\r\n HashSet<String> hSet = new HashSet<String>();\r\n ArrayList<String> words = getWords(input);\r\n for(String word: words) {\r\n if(!hSet.contains(word)) {\r\n hSet.add(word);\r\n }\r\n }\r\n return hSet;\r\n }", "public Set<String> getLocations(String word) {\n\t\tif (this.invertedIndex.get(word) == null) {\n\t\t\treturn Collections.emptySet();\n\t\t} else {\n\t\t\treturn Collections.unmodifiableSet(this.invertedIndex.get(word).keySet());\n\t\t}\n\t}", "public Set<String> getAllKnownWords() throws IOException {\n log.info(\"Reading all data to build known words set.\");\n Set<String> words = new HashSet<>();\n if (this.hasTrain()) {\n for (AnnoSentence sent : getTrainInput()) {\n words.addAll(sent.getWords());\n }\n }\n if (this.hasDev()) {\n for (AnnoSentence sent : getDevInput()) {\n words.addAll(sent.getWords());\n }\n }\n if (this.hasTest()) {\n for (AnnoSentence sent : getTestInput()) {\n words.addAll(sent.getWords());\n }\n }\n return words;\n }", "private Set<BoardObject> populateBoard(){\r\n\t\tSet<BoardObject> ob = new HashSet<BoardObject>();\r\n\t\tob.addAll(createCharacters());\r\n\t\tob.addAll(createWeapons());\r\n\t\treturn ob;\r\n\t}", "public static void main(String args[])\n {\n // Let the given dictionary be following\n String dictionary[] = {\"hit\", \"hits\", \"kilts\", \"pEg\",\"peN\",\"pentAgon\",\"slit\",\"slits\",\"sTilts\"};\n\n\n\n char boggle[][] = {{'P','W','Y','R'},\n {'E','N','T','H'},\n {'G','S','I','Q'},\n {'O','L','S','A'}\n };\n\n String[] val=findWords(boggle,dictionary);\n\n System.out.println(Arrays.toString(val));\n\n\n }", "public static ArrayList<String> findWords(TrieNode root) {\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tgetWords(root, \"\", result);\n\t\treturn result;\n\t}", "public Set<Character> characters(){\r\n\t\tSet<Character> characters = new HashSet<Character>();\r\n\t\tfor(BoardObject object: boardObjects){\r\n\t\t\tif(object instanceof Character)\r\n\t\t\t\tcharacters.add((Character) object);\r\n\t\t}\r\n\t\treturn characters;\r\n\t}", "public BoardSquare[] findSet() {\n ArrayList<BoardSquare> allCards = new ArrayList<>(12);\n\n // flatten BoardSquares into one-dimensional array\n for (int row = 0; row < board.numRows(); row++)\n for (int col = 0; col < board.numCols(); col++)\n allCards.add(board.getBoardSquare(row, col));\n\n // loop through every single unique card combination\n for (int i1 = 0; i1 < allCards.size(); i1++) {\n for (int i2 = 1; i2 < allCards.size(); i2++) {\n for (int i3 = 2; i3 < allCards.size(); i3++) {\n if (i1 != i2 && i2 != i3 && i1 != i3) {\n BoardSquare bs1 = allCards.get(i1);\n BoardSquare bs2 = allCards.get(i2);\n BoardSquare bs3 = allCards.get(i3);\n\n boolean set = Card.isSet(\n bs1.getCard(),\n bs2.getCard(),\n bs3.getCard()\n );\n\n if (set)\n return new BoardSquare[] {bs1, bs2, bs3};\n }\n }\n }\n }\n\n // if no set found, return empty Array\n return new BoardSquare[] {};\n }", "public static Set<String> getEnglishWords()\n{\n return english_words;\n}", "private StopWords() {\r\n\t\tPath source = Paths.get(\"./dat/zaustavne_rijeci.txt\");\r\n\t\ttry {\r\n\t\t\tbody = new String(Files.readAllBytes(source),\r\n\t\t\t\t\tStandardCharsets.UTF_8);\r\n\t\t} catch (IOException ignorable) {\r\n\t\t}\r\n\t\twords = new LinkedHashSet<>();\r\n\t\tfillSet();\r\n\t}", "public synchronized List<String> getCompletedWords() {\n\t\treturn this.humanPlayerGrid.getCompletedWordList();\n\t}", "public List<Preference<CharacterSet>> getAcceptedCharacterSets() {\n // Lazy initialization with double-check.\n List<Preference<CharacterSet>> a = this.acceptedCharacterSets;\n if (a == null) {\n synchronized (this) {\n a = this.acceptedCharacterSets;\n if (a == null) {\n this.acceptedCharacterSets = a = new ArrayList<Preference<CharacterSet>>();\n }\n }\n }\n return a;\n }", "public boolean accepts(String word) {\n List<Character> chars = word.chars().mapToObj(it -> (char) it).collect(Collectors.toList());\n return this.initialState.traverse(chars);\n }", "public Vector<Word> allKeyValue(){\n\n\tVector<Word> words = new Vector<Word>();\n\tfor(int w = 0; w < theTable.length; w++){\n\t // System.out.println(\"w: \" + w);\n\t // System.out.println(\"theTable[w]: \" + theTable[w]);\n\t if(theTable[w] != null){\n\t\twords.addElement(theTable[w]);\n\t }\n\t}\n\treturn words;\n }", "@Override\r\n\t@CacheCable(key=\"'wfx:SensitiveWord'\" ,value=\"value\",expiration=24*60*60)\r\n\tpublic List<String> getAllSensitiveWord() {\n\t\treturn shopMapper.getAllSensitiveWord();\r\n\r\n\t}", "public boolean[] validatePossibility(String s, Set<String> set, boolean[][] isWord) {\n \t/*\n \tboolean[] valid = new boolean[s.length() + 1];\n \tvalid[s.length()] = true;\n\n \tint maxLeng = getMaxLength(set);\n \tfor (int i = s.length() - 1; i >= 0; i--) {\n \t\tfor (int j = i; j < s.length() && (j - i) <= maxLeng; j++) {\n \t\t\tif (isWord[i][j] && valid[j + 1]) {\n \t\t\t\tvalid[i] = true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}*/\n// boolean[] valid = new boolean[s.length() + 1];\n// valid[0] = true;\n// int maxLength = getMaxLength(set);\n// for (int i = 0; i < s.length(); i++) {\n// for (int j = 0; j < i && j < maxLength; j++) {//iterate [0 ~ i]\n// if (isWord[i - j][i] && isValid[i - j + 1])) {\n// valid[i + 1] = true;\n// break;\n// }\n// }\n// }\n//\n// return valid;\n\n boolean[] rst = new boolean[s.length() + 1];\n rst[0] = true;\n if (s == null || set.contains(s)) {\n return rst;\n }\n for (int i = 0; i < s.length(); i++) {\n for (int j = 0; j <= i; j++) {\n if (rst[j] && set.contains(s.substring(j, i + 1))) {\n rst[i + 1] = true;\n break;\n }\n }\n }\n return rst;\n }", "private boolean checkWord() {\n \tboolean bl = false;\n \tfor (int i = 0; i < word.length(); i++) {\n \t\tif (letter == word.charAt(i) && list[i] != true) {\n \t\t\tlist[i] = true;\n \t\t\tnumberOfSymbols++;\n \t\t\tbl = true;\n \t\t}\n \t}\n \treturn bl;\n }", "public List<Integer> getLegalMoves()\n\t{\n\t\tArrayList<Integer> moves = new ArrayList<Integer>();\n\t\tfor (int col = 0; col < cols; col++)\n\t\t{\n\t\t\tif (isEmpty(0,col))\n\t\t\t\tmoves.add(col);\n\t\t}\n\t\treturn moves;\n\t}", "public BoggleSolver(String[] dictionary) {\n wordsSoFar = new ArrayList<String>();\n // 1. build the trie tree of the dictionary\n dict = new NewTrieSet();\n for (String s : dictionary) {\n if (s.length() >= MIN_WORD_LENGTH)\n dict.add(s);\n }\n }", "@Override\n public List<DefinitionDTO> findAllWords() {\n List<Word> words = wordRepository.findAll();\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }", "public Set<String> getStopWords() throws Exception{\n\tFile file = new File(\"stopWords/stopwords.txt\");\n\tHashSet<String> stopwords = new HashSet<>();\n\tBufferedReader br = new BufferedReader(new FileReader(file));\n\tString line;\n\twhile((line=br.readLine())!=null){\n\t\tString[] tokens = line.split(\" \");\n\t\tfor(String token : tokens){\n\t\t\tif(!stopwords.contains(token)){\n\t\t\t\tstopwords.add(token);\n\t\t\t}\n\t\t}\n\t}\n\tbr.close();\n\treturn stopwords;\n\t}", "public List<Word> getCleanWordList(String moduleName) {\n return moduleList.stream()\n .skip(moduleList.size() - 1)\n .map(item -> new Word(item, moduleName))\n .collect(Collectors.toList());\n }", "private Set<String> replacementHelper(String word) {\n\t\tSet<String> replacementWords = new HashSet<String>();\n\t\tfor (char letter : LETTERS) {\n\t\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\treplacementWords.add(word.substring(0, i) + letter + word.substring(i + 1));\n\t\t\t}\n\t\t}\n\t\treturn replacementWords;\n\t}", "public String [] get_word_array(){\n\t\treturn word_array;\n\t}", "public static boolean areWords(Set<String> toBeChecked)\n\t{\n\t\tfor (String word : toBeChecked)\n\t\t{\n\t\t\tif (! dictionary.contains(word))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public String[] getLettersOfAllGames(){\n String[] letters = new String[9];\n int z = 0;\n for (SmallGameBoard game: getAllGames()) {\n String letter = game.getLetterOfWinner();\n letters[z] = letter;\n z++;\n }\n return letters;\n }", "public List<Move> getAvailableSpaces() {\n List<Move> availableMoves = new ArrayList<>();\n for (int i = 0; i < LENGTH; i++) {\n for (int j = 0; j < LENGTH; j++) {\n Move move = new Move(i, j);\n if (isValidMove(move)) {\n availableMoves.add(move);\n }\n }\n }\n return availableMoves;\n }", "public Iterable<Board> solution() {\n return solution;\n }", "public ArrayList<Move> getPossibilities(Move letters, ArrayList<Tile> rack) {\n\t\t// check for an empty letter list (invalid input)\n\t\tif (letters == null || letters.size() == 0)\n\t\t\treturn new ArrayList<Move>();\n\t\t// check if the move is the first move of the game\n\t\tif (isEmpty())\n\t\t\treturn getFirstMoves(letters, rack);\n\t\t// create list of possible moves\n\t\tArrayList<Move> moves = new ArrayList<Move>();\n\t\tint r = 0;\n\t\tint c = 0;\n\t\t// create a list of empty squares adjacent to letters on the board\n\t\tArrayList<Coord> adj = new ArrayList<Coord>();\n\t\t// for each letter on the board, check if the word can be added in the\n\t\t// vertical or horizontal direction using the letter already on the\n\t\t// board, which is compared with every letter in the word\n\t\tfor (int i = 0; i < lettersInPlay.size(); i++) {\n\t\t\tfor (int j = 0; j < letters.size(); j++) {\n\t\t\t\tif (lettersInPlay.get(i).getChar() == letters.get(j).getChar()) {\n\t\t\t\t\t// move is a singular possible move for a list of letters\n\t\t\t\t\tMove move;\n\t\t\t\t\tif (letters.size() > 1) {\n\t\t\t\t\t\tmove = findVerticalIntersections(letters, j, i, rack);\n\t\t\t\t\t\tif (move != null && !moves.contains(move))\n\t\t\t\t\t\t\tmoves.add(move);\n\t\t\t\t\t\tmove = findHorizontalIntersections(letters, j, i, rack);\n\t\t\t\t\t\tif (move != null && !moves.contains(move))\n\t\t\t\t\t\t\tmoves.add(move);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// if there are enough blanks to cover for the letters that aren't in\n\t\t// the rack of the player, initialize the list of empty tiles adjacent\n\t\t// to tiles already on the board\n\t\tfor (int i = 0; i < lettersInPlay.size(); i++) {\n\t\t\tr = lettersInPlay.get(i).getLoc().getRow();\n\t\t\tc = lettersInPlay.get(i).getLoc().getCol();\n\t\t\tif (r - 1 >= 0 && board[r - 1][c].getLetter() == null\n\t\t\t\t\t&& !adj.contains(new Coord(r - 1, c)))\n\t\t\t\tadj.add(new Coord(r - 1, c));\n\t\t\tif (c - 1 >= 0 && board[r][c - 1].getLetter() == null\n\t\t\t\t\t&& !adj.contains(new Coord(r, c - 1)))\n\t\t\t\tadj.add(new Coord(r, c - 1));\n\t\t\tif (r + 1 < len && board[r + 1][c].getLetter() == null\n\t\t\t\t\t&& !adj.contains(new Coord(r + 1, c)))\n\t\t\t\tadj.add(new Coord(r + 1, c));\n\t\t\tif (c + 1 < len && board[r][c + 1].getLetter() == null\n\t\t\t\t\t&& !adj.contains(new Coord(r, c + 1)))\n\t\t\t\tadj.add(new Coord(r, c + 1));\n\t\t}\n\t\t// move is a singular possible move for a list of letters\n\t\tMove move;\n\t\t// for every coordinate in the list of adjacent sqaures, check if\n\t\t// the word can be added in the vertical or horizontal direction,\n\t\t// using the coordinate as the starting point for each letter in the\n\t\t// word being checked\n\t\tfor (int i = 0; i < adj.size(); i++) {\n\t\t\tfor (int j = 0; j < letters.size(); j++) {\n\t\t\t\tmove = findVerticalAdj(letters, j, adj.get(i), rack);\n\t\t\t\tif (move != null && !moves.contains(move))\n\t\t\t\t\tmoves.add(move);\n\t\t\t\tmove = findHorizontalAdj(letters, j, adj.get(i), rack);\n\t\t\t\tif (move != null && !moves.contains(move))\n\t\t\t\t\tmoves.add(move);\n\t\t\t}\n\t\t}\n\t\tif (moves.size() == 0)\n\t\t\treturn new ArrayList<Move>();\n\t\treturn moves;\n\t}", "public ArrayList<String> wordList(){\n\t\treturn list;\n\t}", "public Set<Character> distincts() {\n return jumble.keySet();\n }", "private static Stream<String> createBadWordsDetectingStream(String text, \n List<String> badWords) {\n\t \treturn Arrays.stream(text.split(\" \")).filter(el -> !badWords.contains(el)).distinct().sorted().collect(Collectors.toList()).stream();\n\t }", "public Set<Square> squaresWithMarkedSides(Square[][] board, int n) {\n \n Set<Square> theSet = new HashSet<Square>();\n for(int row = 0; row < Util.N; row++)\n for(int col = 0; col < Util.N; col++) {\n Square square = board[row][col];\n if (square.hasNMarkedSides(n))\n theSet.add(square);\n }\n return theSet;\n }", "private ArrayList<String> getPossibleMoves(String boardString) {\n ArrayList<String> reachableBoards = new ArrayList<>();\n for (int i = 0; i < 9; i++) {\n if ((new AIBoard(boardString, 0)).isValidMove(i)) {\n Board board = new Board(boardString);\n board.makeAMove(i);\n reachableBoards.add(board.toString());\n }\n }\n\n return reachableBoards;\n }", "@Override\r\n\tpublic Set<Wall> getWalls(Board board) throws UnsupportedOperationException\r\n\t{\r\n\t\treturn board.getElements(Wall.class);\r\n\t}", "String[][] getBoard();", "void findAllWords() {\n\t\tScanner in = new Scanner(textEditor.getText());\n\t\tint head = 0;\n\t\twhile (in.hasNext()) {\n\t\t\tString value = in.next();\n\t\t\tif (value.equals(findWord)) {\n\t\t\t\tint tail = value.length();\n\t\t\t\tfinder.add(new WordPosition(head, tail + head +1));\n\t\t\t}\n\t\t\thead += (value.length()+1);\n\t\t}\n\t\tin.close();\n\t}", "@Override\r\n\tpublic Set<Robot> getRobots(Board board)\r\n\t{\r\n\t\treturn board.getElements(Robot.class);\r\n\t}", "public static List<String> getValidSuits() {\n return Arrays.asList(\"Spades\", \"Clubs\", \"Hearts\", \"Diamonds\");\n }" ]
[ "0.85390127", "0.841897", "0.8405043", "0.83367795", "0.78819966", "0.66343653", "0.6509318", "0.6443213", "0.63641113", "0.63451815", "0.5952888", "0.5920711", "0.5914554", "0.56239754", "0.5608188", "0.56013006", "0.5596035", "0.5558414", "0.55261093", "0.5525141", "0.5517346", "0.55078477", "0.54798394", "0.5431777", "0.5376948", "0.5374736", "0.5372991", "0.5366844", "0.53207916", "0.5289877", "0.52864444", "0.52859896", "0.5258139", "0.523341", "0.5230282", "0.5215614", "0.52130944", "0.5208517", "0.5192609", "0.51901674", "0.51768154", "0.5175575", "0.51645756", "0.51558065", "0.513605", "0.51098835", "0.5106167", "0.5098233", "0.5086819", "0.5081377", "0.5072106", "0.5066196", "0.5061813", "0.50514454", "0.5049928", "0.5043572", "0.50177085", "0.50168276", "0.49918637", "0.49845168", "0.49838325", "0.4981187", "0.496782", "0.49616688", "0.4958214", "0.49567878", "0.4952979", "0.4948003", "0.4930038", "0.49224672", "0.49202555", "0.49146724", "0.48929587", "0.48894548", "0.48885214", "0.48784685", "0.487618", "0.48658788", "0.48588485", "0.48512614", "0.48469722", "0.48409778", "0.48281312", "0.4827608", "0.48251033", "0.4820317", "0.48189846", "0.48107213", "0.48106512", "0.47937894", "0.4783182", "0.478124", "0.4774407", "0.47692692", "0.4765944", "0.47611418", "0.47581178", "0.47506377", "0.47448602", "0.47448555" ]
0.79580784
4
returns the score of the given word if it is in the dictionary, zero otherwise. you can assume the word contains only the uppercase letters A thru Z.
public int scoreOf(String word) { // 1. check if the word is in dictionary. dict.contains(word) is true or not // 2. calculate the score of the word int score = calScore(word); return score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int scoreOf(String word) {\n\t\tString noU = stripU(word);\n\t\treturn tst.contains(noU) ? tst.get(noU) : 0;\n\t}", "public int scoreOf(String word) {\n if (dictionary.contains(word)) {\n switch (word.length()) {\n case 0:\n case 1:\n case 2:\n return 0;\n case 3:\n case 4:\n return 1;\n case 5:\n return 2;\n case 6:\n return 3;\n case 7:\n return 5;\n default:\n return 11;\n }\n } else {\n return 0;\n }\n }", "public int scoreOf(String word) {\n int length = word.length();\n\n // Validate word\n Node node = root;\n for (int i = 0; i < length; i++) {\n int c = word.charAt(i) - A_ENCODE;\n\n // Handle Q\n if (c == Q_LETTER) {\n // Skip 'U'\n if (i + 1 < length && word.charAt(i + 1) == U_ENCODE) {\n i++;\n // Dictionary do not consider words that have 'Q' that isn't 'QU'\n } else {\n return 0;\n }\n }\n\n node = node.edges[c];\n if (node == null) {\n return 0;\n }\n }\n\n if (node.word == null) {\n return 0;\n }\n\n // Get points\n if (length < 5) {\n return 1;\n }\n switch (length) {\n case 5: return 2;\n case 6: return 3;\n case 7: return 5;\n default: return 11;\n }\n }", "public int scoreOf(String word) {\n int len = word.length();\n if (!contains(word) || len <= 2) return 0;\n else if (len == 3 || len == 4) return 1;\n else if (len == 5) return 2;\n else if (len == 6) return 3;\n else if (len == 7) return 5;\n return 11;\n }", "public static int getScore (String word, int [] scoretable)\r\n {\r\n int wordScore = 0;\r\n char [] letters = word.toCharArray();\r\n String[] wordValues = word.split(\" \");\r\n for(int i = 0; i < letters.length; i++ )\r\n {\r\n int score = letters[i];\r\n wordScore = wordScore + scoretable[score - 97]; \r\n }\r\n //Gives word double score if consecutive double letters \r\n for (int j = 0; j < wordValues.length; j++)\r\n {\r\n for (int n = 0; n < (wordValues[j].length()-1); n++)\r\n {\r\n if(wordValues[j].charAt(n) == wordValues[j].charAt(n+1))\r\n {\r\n wordScore = wordScore * 2;\r\n }\r\n }\r\n }\r\n return wordScore;\r\n }", "private static int searchStandardDictionary(String word) {\n if (word.length() < 4) {\n return Arrays.binarySearch(STANDARD_DICTIONARY, 0, FOUR_LETTER_WORDS_OFFSET, word.toUpperCase(Locale.ENGLISH));\n } else {\n return Arrays.binarySearch(STANDARD_DICTIONARY, FOUR_LETTER_WORDS_OFFSET, STANDARD_DICTIONARY.length, word.toUpperCase(Locale.ENGLISH));\n }\n }", "private static int calculateScore( String word )\n\t{\n\t\tif (word.equals(\"rc\")) {\n\t\t\treturn -1;\n\t\t} else if (word.equals(\"b\")) {\n\t\t\treturn -2;\n\t\t} else if (word.equals(\"beta\")) {\n\t\t\treturn -3;\n\t\t} else if (word.equals(\"a\")) {\n\t\t\treturn -4;\n\t\t} else if (word.equals(\"alpha\")) {\n\t\t\treturn -5;\n\t\t} else if (word.equals(\"snapshot\")) {\n\t\t\treturn -10;\n\t\t} else if (word.equals(\"push0ver\")) {\n\t\t\treturn -11;\n\t\t} else if (word.equals(\"cvs\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"svn\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"bzr\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"hg\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"git\")) {\n\t\t\treturn -21;\n\t\t} else if (word.equals(\"rev\")) {\n\t\t\treturn -100;\n\t\t} else if (word.equals(\"r\")) {\n\t\t\treturn -101;\n\t\t} else if (word.equals(\"release\")) {\n\t\t\treturn 12;\n\t\t} else if (word.equals(\"update\")) {\n\t\t\treturn 11;\n\t\t} else if (word.equals(\"u\")) {\n\t\t\treturn 10;\n\t\t} else if (word.equals(\"patch\")) {\n\t\t\treturn 9;\n\t\t} else if (word.equals(\"p\")) {\n\t\t\treturn 8;\n\t\t} else if (word.equals(\"hotfix\")) {\n\t\t\treturn 7;\n\t\t} else if (word.equals(\"fix\")) {\n\t\t\treturn 6;\n\t\t}\n\t\tLong l = toLong( word );\n\t\treturn l != null ? 100 : 0; // a pure number (with no alpha) wins against all of those.\n\t}", "private int getUseOfLetter(String word) {\n int result = 0;\n for (int i = 0; i < word.length(); i++) {\n result |= tables[word.charAt(i)];\n }\n return result;\n }", "public void scoreWord() {\n\t\t// check if valid word\n\t\tif (word.isWord(dictionary)) {\n\t\t\tscore += word.getScore();\n\t\t\tword.start = null;\n\t\t\tword.wordSize = 0;\n\t\t\t// check if word still possible\n\t\t} else if (!word.isPossibleWord(dictionary)) {\n\t\t\tword.start = null;\n\t\t\tword.wordSize = 0;\n\t\t}\n\n\t}", "public DictionaryData lookup(String word) {\r\n\r\n return dictionaryMap.get(word.toUpperCase());\r\n }", "public int count( String hotWord ){\r\n String x = hotWord.toLowerCase();\r\n //If the word is a hotword then get the count and return it\r\n if(words.containsKey(x)){\r\n return words.get(x);\r\n }\r\n //If not, then return -1\r\n else{\r\n return -1;\r\n }\r\n\t}", "public String spellcheck(String word) {\n // Check if the world is already in lcDictionary.\n String lcdictionaryLookup = lcDictionary.get(word.toLowerCase());\n if(lcdictionaryLookup != null) {\n return lcdictionaryLookup;\n }\n String reducedWord = reducedWord(word);\n String rwdictionaryLookup = rwDictionary.get(reducedWord);\n if(rwdictionaryLookup != null) {\n return rwdictionaryLookup;\n }\n return \"NO SUGGESTION\";\n }", "public double getDictionaryLookupScoreOfString(String tweet) {\n double score = 0;\n List<TaggedToken> tokens = tokenizeAndTag(tweet);\n for (TaggedToken token : tokens) {\n score += sentiWordNet.extract(token.token, getWordNetTag(token.tag));\n }\n return score;\n }", "public boolean contains(String word) {\r\n\r\n return dictionaryMap.containsKey(word.toUpperCase());\r\n\r\n }", "public int getScrabbleScore(String string) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tHashtable<Character, Integer> letterBank = new Hashtable<Character, Integer>();\n\t\tletterBank.put('A', 1);\n\t\tletterBank.put('B', 3);\n\t\tletterBank.put('C', 3);\n\t\tletterBank.put('D', 2);\n\t\tletterBank.put('E', 1);\n\t\tletterBank.put('F', 4);\n\t\tletterBank.put('G', 2);\n\t\tletterBank.put('H', 4);\n\t\tletterBank.put('I', 1);\n\t\tletterBank.put('J', 8);\n\t\tletterBank.put('K', 5);\n\t\tletterBank.put('L', 1);\n\t\tletterBank.put('M', 3);\n\t\tletterBank.put('N', 1);\n\t\tletterBank.put('O', 1);\n\t\tletterBank.put('P', 3);\n\t\tletterBank.put('Q', 10);\n\t\tletterBank.put('R', 1);\n\t\tletterBank.put('S', 1);\n\t\tletterBank.put('T', 1);\n\t\tletterBank.put('U', 1);\n\t\tletterBank.put('V', 4);\n\t\tletterBank.put('W', 4);\n\t\tletterBank.put('X', 8);\n\t\tletterBank.put('Y', 4);\n\t\tletterBank.put('Z', 10);\n\t\tint score = 0;\n\t\tchar upperCase;\n\t\tfor(int i =0; i < string.length(); i++) {\n\t\t\tif(Character.isLowerCase(string.charAt(i))){\n\t\t\t\tupperCase = Character.toUpperCase(string.charAt(i));\n\t\t\t\tscore += letterBank.get(upperCase);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tscore += letterBank.get(string.charAt(i));\n\t\t\t}\n\t\t}\n\t\t//System.out.println(score);\n\t\treturn score;\n\t}", "public static double calculateSentenceScore(Map<String, Double> wordScores, String sentence) {\n\t\t/* IMPLEMENT THIS METHOD! */\n\t\tSystem.out.println(\"Sentence: \" + sentence + wordScores);\n\t\tif(wordScores == null || wordScores.isEmpty() || sentence == null || sentence.length() < 1 ) return 0;\n\t\tsentence.toLowerCase();//converts all words to lower case\n\t\tString[] words = sentence.split(\"\\\\s+\");//split on empty spaces\n\t\tint howManyWords = words.length;\n\t\tdouble sc = 0.0;\n\t\tfor(String word : words) {\n\t\t\tif(!word.trim().equals(\"\") && word.trim().matches(\"^[a-zA-Z]*$\")) {//regex ensures that word starts with letter only\n\t\t\t\tif(wordScores.containsKey(word.trim())) {\n//\t\t\t\t\tSystem.out.println(\"for key: \" + word.trim() + wordScores.get(word.trim()));\n\t\t\t\t\tsc += wordScores.get(word.trim());\n\t\t\t\t}else {\n//\t\t\t\t\tSystem.out.println(\"no such key\");\n\t\t\t\t\tsc += 0.0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sc/howManyWords; // this line is here only so this code will compile if you don't modify it\n\n\t}", "public int getWordOccurrence(String word) {\n MutableInt i = wordsOccurrences.get(word);\n if (i == null) {\n return 0;\n }\n return i.getValue();\n }", "public int count(String word);", "public int checkWordAndUpdateScore(String word) {\n\n //if word is valid and is on board\n if(validWordsOnBoard.contains(word.toUpperCase())){\n\n //if word has never been submitted by user before, add word to validWordsFoundByUser and update score\n if(!validWordsFoundByUser.contains(word.toUpperCase())){\n\n int wordLength = word.length();\n if(wordLength < 3)\n score +=0;\n else if(wordLength == 3 || wordLength == 4)\n score += 1;\n else if(wordLength == 5)\n score += 2;\n else if(wordLength == 6)\n score += 3;\n else if(wordLength == 7)\n score += 5;\n else\n score += 10;\n\n validWordsFoundByUser.add(word);\n return 1;\n } else{\n\n return 2;\n }\n }\n return 0;\n }", "private HashMap<Character, Integer> countAllLetters(String word) {\n WordToolbox otherWord = new WordToolbox(word.toLowerCase());\r\n HashMap<Character, Integer> mapOfWord = new HashMap<>();\r\n for (int i = 0; i < word.length(); i++) {\r\n mapOfWord.put(word.toLowerCase().charAt(i), otherWord.countHowMany(word.toLowerCase().charAt(i)));\r\n }\r\n return mapOfWord;\r\n }", "public double getProb(String word) {\n double numWords = wordMap.get(\"TOTAL_WORDS\");\n return wordMap.getOrDefault(word, 0.0)/numWords;\n }", "public boolean wordExists(String word)\n\t{\n\t\t//checks to make sure the word is a word that starts with a lowercase letter, otherwise return false\n\t\tif(word.charAt(0) >= 'a' && word.charAt(0) <= 'z')\n\t\t{\n\t\t\tchar letter = word.charAt(0);\n\t\t\t\n\t\t\treturn (myDictionaryArray[(int)letter - (int)'a'].wordExists(word));\n\t\t}\n\t\t\n\t\treturn false;\t\t\n\t}", "public int getCount(String word) {\n // TODO: pattern this after the count() function.\n // Make sure to return 0 for words you haven't seen before.\n if(word.equals(\"\")){\n return(0);\n }\n\n for (int i=0; i < counters.length; i++) {\n if (counters[i] != null) {\n if (counters[i].wordMatches(word)) {\n return (counters[i].getCount());\n }\n }\n }\n return(0);\n }", "public int size(String word) {\n\t\treturn contains(word) ? invertedIndex.get(word).size() : 0;\n\t}", "public int calWord() {\n for(int i = 0; i < newWord.length(); i++) {\n for (String c : keySetPoint) {\n if(String.valueOf(newWord.charAt(i)).equals(c)) {\n point += mapPoint.get(c);\n }\n }\n }\n\n return point;\n }", "public int count(String word) {\n return this.wordToCount.get(word);\n }", "@Override\n\tprotected int keywordWeighting(String word) {\n\t\tif (this.keywordWeight.containsKey(word)) {\n\t\t\treturn this.keywordWeight.get(word);\n\t\t}\n\t\treturn 1;\n\t}", "public int score(String name) {\n return name.indexOf(this.name + \"_\");\n }", "public int getScrabbleScore(String string) {\n\t\t\n\t\t//Create a hashmap of each letter and its corresponding score value\n\t\t\n\t\tHashMap<Character, Integer> lettersAndScores = new HashMap<Character, Integer>(26);\n\t\tlettersAndScores.put('A', 1);\n\t\tlettersAndScores.put('E', 1);\n\t\tlettersAndScores.put('I', 1);\n\t\tlettersAndScores.put('O', 1);\n\t\tlettersAndScores.put('U', 1);\n\t\tlettersAndScores.put('L', 1);\n\t\tlettersAndScores.put('N', 1);\n\t\tlettersAndScores.put('R', 1);\n\t\tlettersAndScores.put('S', 1);\n\t\tlettersAndScores.put('T', 1);\n\t\tlettersAndScores.put('D', 2);\n\t\tlettersAndScores.put('G', 2);\n\t\tlettersAndScores.put('B', 3);\n\t\tlettersAndScores.put('C', 3);\n\t\tlettersAndScores.put('M', 3);\n\t\tlettersAndScores.put('P', 3);\n\t\tlettersAndScores.put('F', 4);\n\t\tlettersAndScores.put('H', 4);\n\t\tlettersAndScores.put('V', 4);\n\t\tlettersAndScores.put('W', 4);\n\t\tlettersAndScores.put('Y', 4);\n\t\tlettersAndScores.put('K', 5);\n\t\tlettersAndScores.put('J', 8);\n\t\tlettersAndScores.put('X', 8);\n\t\tlettersAndScores.put('Q', 10);\n\t\tlettersAndScores.put('Z', 10);\n\t\t\n\t\t//Insert the characters of the string into the hashmap to get the corresponding values\n\t\t//Add the values to a score variable to then return\n\t\t\n\t\tint score = 0;\n\t\tfor(int i=0; i<string.length(); i++) {\n\t\t\tscore += lettersAndScores.get(Character.toUpperCase(string.charAt(i)));\n\t\t}\n\t\treturn score;\n\t}", "public void count(String word) {\n if(word.equals(\"\")){\n return;\n }\n\n for (int i=0; i < counters.length; i++) {\n //TODO: If you find the word increment the count and return\n if (counters[i] != null){\n if (counters[i].wordMatches(word)){\n counters[i].incrementCount();\n break;\n }\n } else {\n counters[i] = new SingleWordCounter(word);\n counters[i].incrementCount();\n break;\n }\n }\n\n //TODO: You didn't find the word. Add a new word counter to the array.\n // Don't forget to increment the word's count to get it to 1!\n\n\t}", "private int scoreFor(String keyword) {\n return keyword.length();\n }", "public boolean search(String word) {\n // 1. 遍历 每个 字母 去掉 从list 里去出来结果 比较list 每个结果\n for (int i = 0; i < word.length(); i++) {\n String key = word.substring(0, i) + word.substring(i+1);\n List<int[]> indexAndCharList = dictonary.getOrDefault(key, new ArrayList<>());\n for (int[] indexAndChar : indexAndCharList) {\n if (indexAndChar[0] == i && indexAndChar[1] != (word.charAt(i) - 'a')) {\n return true;\n }\n }\n }\n return false;\n }", "public int countOccurrences(String word) {\n\t\tint i = 0;\n\t\tfor (int j = 0; j < wordList.size(); j++) {\n\t\t\tif (wordList.get(j).equals(word)) {\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\treturn i;\n\t\t// TODO Add your code here\n\t}", "public boolean contains(String word) {\r\n\t\treturn dict.contains(word);\r\n\t}", "int count(String s) {\r\n\t\tif (m_words.containsKey(s)) {\r\n\t\t\treturn m_words.get(s);\r\n\t\t} else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "private boolean checkDict(String word, String[] dict){\n int a = 0;\n int b = dict.length-1;\n while (a<=b) {\n int m = (a+b)/2;\n if (word.compareTo(dict[m]) == 0) return true;\n else if (word.compareTo(dict[m])>0) a = m+1;\n else b = m-1;\n }\n return false;\n }", "public int GetIndex(String word) {\n\t\tString s = word.toLowerCase();\n\t\t\n\t\tif(this.wordIndex == null) {\n\t\t\tLoadWordIndexFromFile();\n\t\t}\n \treturn this.wordIndex.get(s);\n\t}", "public boolean isInDictionary(String word) {\n return isInDictionary(word, Language.ENGLISH);\n }", "public int getWordScore(Coord coord, String dirPlaced, String dirCheck) {\n\t\tif (coord.getRow() < 0 || coord.getCol() < 0 || coord.getRow() >= len\n\t\t\t\t&& coord.getCol() >= len)\n\t\t\treturn 0;\n\n\t\tint score = 0;\n\t\t// the factor by which the final score of the word is multipled by\n\t\tint wordScoreModifier = 1;\n\t\t// variables that change the column or row depending on the orientation\n\t\t// of the added word\n\t\tint rowChange = 0;\n\t\tint colChange = 0;\n\t\tint r = coord.getRow();\n\t\tint c = coord.getCol();\n\n\t\t// set the direction of the coordinate change variables\n\t\tif (dirCheck.equals(\"vertical\"))\n\t\t\trowChange++;\n\t\telse if (dirCheck.equals(\"horizontal\"))\n\t\t\tcolChange++;\n\n\t\t// for each letter left of or above (depending on direction)\n\t\t// the given coordinate, add the score value and trigger any unused\n\t\t// scoreModifiers on the newly placed tiles' squares\n\t\twhile (r >= 0 && c >= 0 && board[r][c].getLetter() != null) {\n\t\t\t// update the score for any letter-based score modifiers\n\t\t\tscore += board[r][c].updateScore(\n\t\t\t\t\tboard[r][c].getLetter().getValue(), \"letter\");\n\t\t\t// update the word score factor for any word score modifiers\n\t\t\twordScoreModifier = board[r][c].updateScore(wordScoreModifier,\n\t\t\t\t\t\"word\");\n\t\t\tr -= rowChange;\n\t\t\tc -= colChange;\n\t\t}\n\n\t\tr = coord.getRow() + rowChange;\n\t\tc = coord.getCol() + colChange;\n\n\t\t// for each letter right of or below (depending on direction)\n\t\t// the given coordinate, add the score value and trigger any unused\n\t\t// scoreModifiers on the newly placed tiles' squares\n\t\twhile (r < len && c < len && board[r][c].getLetter() != null) {\n\t\t\tscore += board[r][c].updateScore(\n\t\t\t\t\tboard[r][c].getLetter().getValue(), \"letter\");\n\t\t\twordScoreModifier = board[r][c].updateScore(wordScoreModifier,\n\t\t\t\t\t\"word\");\n\t\t\tr += rowChange;\n\t\t\tc += colChange;\n\t\t}\n\t\tif (!dirCheck.equals(dirPlaced) && !makesNewWord(coord, dirCheck))\n\t\t\treturn 0;\n\t\t// return the word score multiplied by any word score modifiers\n\t\treturn score * wordScoreModifier;\n\t}", "private int getHash(String word){\n\t\tif (word == null){\n\t\t\treturn INVALID;\n\t\t}\n\n\t\tint hash = 52;\n\t\tif ((word.charAt(0) >= 'a') && (word.charAt(0) <= 'z')){\n\t\t\thash = word.charAt(0) - 'a';\n\t\t}\n\t\telse if ((word.charAt(0) >= 'A') && (word.charAt(0) <= 'Z')){\n\t\t\thash = word.charAt(0) - 'A' + 26;\n\t\t}\n\t\treturn hash;\n\t}", "public float computePhraseScore(int dl, int tf, GlobalStats stats);", "private void updateCount(String word) {\n\t\t\tthis.count += invertedIndex.get(word).get(this.location).size();\n\t\t\tthis.score = (double) this.count / counts.get(this.location);\n\t\t}", "public boolean checkWord(LLNodeHash word){\n //finds index of the word in the array\n int h = hash(word.getKey());\n LLNodeHash ptr = hashTable[h];\n //looks through linked list at that index and changes frequency of word if found\n while (ptr != null){\n if (ptr.getKey().equals(word.getKey())){\n ptr.setFreq(ptr.getFreq() + word.getFreq());\n return true;\n }\n ptr = ptr.getNext();\n }\n return false;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner info = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the phrase:\");\r\n\t\tString sentence = info.nextLine();\r\n\t\t\r\n\t\tsentence = sentence.trim().toUpperCase();\r\n\t\t\r\n\t\tfor (int i = 0; i < sentence.length(); i++) {\r\n\t\t\tif (sentence.charAt(i) <'A' || sentence.charAt(i) > 'Z' ) {\r\n\t\t\t\tsentence = sentence.replace(\"\"+sentence.charAt(i), \"/\");\r\n//\t\t\t\tSystem.out.println(sentence);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString[] word = sentence.split(\"/\") ;\r\n\t\t\r\n\t\tint total = 0;\r\n\t\tif (word.length < 1) {\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\r\n\t\t\tHashMap hMap = new HashMap();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (word[0].length() > 0) {\r\n\t\t\t\thMap.put(word[0].length(), 1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (int i = 1; i < word.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < i; j++) {\r\n\t\t\t\t\tif (word[i].length() == word[j].length()) {\r\n\t\t\t\t\t\tint cnt = (int) hMap.get(word[i].length());\r\n\t//\t\t\t\t\tSystem.out.println(\"cnt==>\"+cnt);\r\n\t\t\t\t\t\thMap.put(word[i].length(),++cnt);\r\n\t\t\t\t\t\t\t\r\n\t//\t\t\t\t\tSystem.out.println(word[i].length()+\"==>\"+hMap.get(word[i].length()));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (j == (i-1)){\r\n\t\t\t\t\t\t\thMap.put(word[i].length(), 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSet<Integer> keys1 = hMap.keySet();\r\n\t\r\n\t\t\tfor(int key:keys1) {\r\n\t\t\t\tif (key !=0) {\r\n\t\t\t\t\tSystem.out.println(hMap.get(key)+\" \"+key +\" letter words\");\r\n\t\t\t\t\ttotal += (int)hMap.get(key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(total+\" total words\");\r\n\t\t\r\n\t}", "public boolean hasWord(String word) {\n return cache.indexOf(word) >= 0;\n }", "boolean hasWord();", "public int rank(String word) {\n if (!cached) {\n int ctr = this.wordNumber;\n for (String wordTemp : this.words()) {\n wordToRank.put(wordTemp, ctr);\n ctr -= 1;\n }\n this.cached = true;\n }\n return wordToRank.get(word);\n }", "public static int lookup (String name)\n {\n\tInteger result = MAP.get (name.toLowerCase ());\n\n\treturn (result == null) ? -1 : result;\n }", "private void wordAdd(String word){\n if (!fileWords.containsKey(word)){\n fileWords.put(word,1);\n if (probabilities.containsKey(word)) {\n double oldCount = probabilities.get(word);\n probabilities.put(word, oldCount+1);\n } else {\n probabilities.put(word, 1.0);\n }\n }\n }", "public static boolean hasMatch(String s, int dict) {\n if (s.length()==0) {return false;}\n if (isInteger(s)) {return true;}\n //else if (s.length()==1) {return true;}\n else {\n int len = s.length();\n boolean has = false;\n\n try {\n String file = \"../dicts/total/try\"+dict+\"/total.txt\";\n BufferedReader br = new BufferedReader(new FileReader(file));\n String line = br.readLine();\n int count = 0;\n boolean done = false;\n while (line != null && !done) {\n //process lines\n String[] split = line.split(\"\\t\");\n if (s.length()>Integer.parseInt(split[0])) {\n done = true;\n has = false;\n } else if (s.toLowerCase().equals(split[1].toLowerCase())) {\n done = true;\n has = true;\n }\n line = br.readLine();\n count++;\n }\n } catch (FileNotFoundException ex) {\n has = false;\n } catch (IOException ex) {\n has = false;\n }\n\t\n return has;\n }\n }", "public boolean containsWord(String word) {\n\t\treturn index.containsKey(word);\n\t}", "int countByExample(WdWordDictExample example);", "static int countOccurrences(String str, String word) \r\n\t\t{\n\t\t String a[] = str.split(\" \");\r\n\t\t \r\n\t\t // search for pattern in a\r\n\t\t int count = 0;\r\n\t\t for (int i = 0; i < a.length; i++) \r\n\t\t {\r\n\t\t // if match found increase count\r\n\t\t if (word.equals(a[i]))\r\n\t\t count++;\r\n\t\t }\r\n\t\t \r\n\t\t return count;\r\n\t\t}", "private static int num_vokal(String word) {\n int i;\n int jumlah_vokal = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) == 'a' ||\n word.charAt(i) == 'i' ||\n word.charAt(i) == 'u' ||\n word.charAt(i) == 'e' ||\n word.charAt(i) == 'o') {\n jumlah_vokal++;\n }\n }\n return jumlah_vokal;\n }", "public static int countWord(String string, String word) {\n int count = 0;\n while (string.indexOf(word) > -1) {\n count++;\n string = string.substring(string.indexOf(word) + 1);\n }\n return count;\n\n }", "public int getFrequencyOf(String word) {\r\n\t\tint frequency = 0;\r\n\t\tif (readDocument != null) {\r\n\t\t\tfrequency = readDocument.getFrequencyOf(word);\r\n\t\t\tSystem.out.println(\"Frequency: \" + frequency);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"You have not read in a document. Please indicate file name\"\r\n\t\t\t\t\t+ \" before using this feature.\");\r\n\t\t}\r\n\t\treturn frequency;\r\n\t}", "@Override\n\tpublic Integer getScore(Jogador jogador) {\n\t\treturn scoreMap.get(jogador.getNome().toUpperCase());\n\t}", "private boolean isWord(String word) {\n\t\treturn dict.isWord(word);\n\t}", "public WordInfo searchWord(String word) {\n\t\tSystem.out.println(\"Dic:SearchWord: \"+word);\n\n\t\tDocument doc;\n\t\ttry {\n\t\t\tdoc = Jsoup.connect(\"https://dictionary.cambridge.org/dictionary/english-vietnamese/\" + word).get();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\tElements elements = doc.select(\".dpos-h.di-head.normal-entry\");\n\t\tif (elements.isEmpty()) {\n\t\t\tSystem.out.println(\" not found\");\n\t\t\treturn null;\n\t\t}\n\n\t\tWordInfo wordInfo = new WordInfo(word);\n\n\t\t// Word\n\t\telements = doc.select(\".tw-bw.dhw.dpos-h_hw.di-title\");\n\n\t\tif (elements.size() == 0) {\n\t\t\tSystem.out.println(\" word not found in doc!\");\n\t\t\treturn null;\n\t\t}\n\n\t\twordInfo.setWordDictionary(elements.get(0).html());\n\n\t\t// Type\n\t\telements = doc.select(\".pos.dpos\");\n\n\t\tif(elements.size() > 0) {\n\t\t\twordInfo.setType(WordInfo.getTypeShort(elements.get(0).html()));\n//\t\t\tif (wordInfo.getTypeShort().equals(\"\"))\n//\t\t\t\tSystem.out.println(\" typemis: \"+wordInfo.getType());\n\t\t}\n\n\t\t// Pronoun\n\t\telements = doc.select(\".ipa.dipa\");\n\n\t\tif (elements.size() > 0)\n\t\t\twordInfo.setAPI(\"/\"+elements.get(0).html()+\"/\");\n\n\t\t// Trans\n\t\telements = doc.select(\".trans.dtrans\");\n\n\t\tif (elements.size() > 0)\n\t\t\twordInfo.setTrans(elements.get(0).html());\n\n\t\tSystem.out.println(\" found\");\n\t\treturn wordInfo;\n\t}", "public static int getHealthScore(String hstr) {\n try {\n int score = HEALTH_SYMPTOM_NUM;\n for (int i = 0; i < HEALTH_SYMPTOM_NUM; i++)\n if (0 == ONE.compareTo(String.valueOf(hstr.charAt(i))))\n score--;\n return score;\n } catch (Exception e) {\n return 0;\n }\n }", "protected int lookup(String s) {\r\n\t\tint i;\r\n\r\n\t\tfor (i = 0; i < kwlist.length; i++) {\r\n\t\t\tif (kwlist[i].equalsIgnoreCase(s))\r\n\t\t\t\treturn i;\r\n\t\t}\r\n\r\n\t\treturn -1;\r\n\t}", "private boolean isValidWord(String word){\n if (trie.searchWord(word)){\n return true;\n } else {\n return false;\n }\n }", "public boolean search(String word) {\n Trie cur = this;\n int i = 0;\n while(i < word.length()) {\n int c = word.charAt(i) - 'a';\n if(cur.tries[c] == null) {\n return false;\n }\n cur = cur.tries[c];\n i++;\n }\n return cur.hasWord;\n }", "public int getScrabbleScore(String string) {\n\n\t\tif (!string.matches(\"([a-zA-Z])+\"))\n\t\t\tthrow new IllegalArgumentException();\n\n\t\tint score = 0;\n\t\tfor (char c : (string.toUpperCase()).toCharArray()) {\n\t\t\tswitch (c) {\n\t\t\tcase 'D':\n\t\t\tcase 'G':\n\t\t\t\tscore += 2;\n\t\t\t\tbreak;\n\t\t\tcase 'B':\n\t\t\tcase 'C':\n\t\t\tcase 'M':\n\t\t\tcase 'P':\n\t\t\t\tscore += 3;\n\t\t\t\tbreak;\n\t\t\tcase 'F':\n\t\t\tcase 'H':\n\t\t\tcase 'V':\n\t\t\tcase 'W':\n\t\t\tcase 'Y':\n\t\t\t\tscore += 4;\n\t\t\t\tbreak;\n\t\t\tcase 'K':\n\t\t\t\tscore += 5;\n\t\t\t\tbreak;\n\t\t\tcase 'J':\n\t\t\tcase 'X':\n\t\t\t\tscore += 8;\n\t\t\t\tbreak;\n\t\t\tcase 'Q':\n\t\t\tcase 'Z':\n\t\t\t\tscore += 10;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tscore += 1;\n\t\t\t}\n\t\t}\n\t\treturn score;\n\t}", "private static void wordCountWithMap() throws FileNotFoundException {\n Map<String, Integer> wordCounts = new HashMap<String, Integer>();\n\n Scanner input = new Scanner(new File(fileLocation));\n while (input.hasNext()) {\n String word = input.next();\n if (!wordCounts.containsKey(word)) {\n wordCounts.put(word, 1);\n } else {\n int oldValue = wordCounts.get(word);\n wordCounts.put(word, oldValue + 1);\n }\n }\n\n String term = \"test\";\n System.out.println(term + \" occurs \" + wordCounts.get(term));\n\n // loop over the map\n for (String word : wordCounts.keySet()) {\n int count = wordCounts.get(word);\n if (count >= 500) {\n System.out.println(word + \", \" + count + \" times\");\n }\n }\n\n }", "private double countWordLocationScore(Page page, String[] queryWords) {\n double score = 0;\n boolean wasFound = false;\n\n for (String word : queryWords) {\n int queryWordId = this.pb.getIdForWord(word);\n for (int i = 0; i < page.getWords().size(); i++) {\n if (page.getWords().get(i) == queryWordId) {\n score += i;\n wasFound = true;\n break;\n }\n }\n\n if (!wasFound) {\n score += 100000;\n } else {\n wasFound = false;\n }\n }\n return score;\n }", "public double[] score(String word, short tag, int loc, boolean noSmoothing,\n\t\t\tboolean isSignature, double priorProb);", "public static String bestWord (String [] word, int [] scoretable)\r\n { \r\n int score = 0;\r\n int maxScore = 0;\r\n String maxScoreString = \"\";\r\n for(String each : word)\r\n { \r\n score = getScore(each, scoretable); \r\n if(score > maxScore)\r\n {\r\n maxScore = score;\r\n maxScoreString = each;\r\n }\r\n } \r\n return maxScoreString;\r\n }", "public void checkWord(int largeTile) {\r\n String guess = \"\";\r\n int length = 0;\r\n// int score = 0;\r\n boolean correct = false; // flag for whether the word is valid\r\n\r\n // get word string based on which button was pressed\r\n switch(largeTile) {\r\n case 1:\r\n guess = tile1.toString();\r\n break;\r\n case 2:\r\n guess = tile2.toString();\r\n break;\r\n case 3:\r\n guess = tile3.toString();\r\n break;\r\n case 4:\r\n guess = tile4.toString();\r\n break;\r\n case 5:\r\n guess = tile5.toString();\r\n break;\r\n case 6:\r\n guess = tile6.toString();\r\n break;\r\n case 7:\r\n guess = tile7.toString();\r\n break;\r\n case 8:\r\n guess = tile8.toString();\r\n break;\r\n case 9:\r\n guess = tile9.toString();\r\n break;\r\n default:\r\n guess = \"\";\r\n }\r\n length = guess.length();\r\n\r\n // check if valid word\r\n if (length >= 3) { // check if the length of the word is >= 3\r\n if (dictionary.contains(guess.toLowerCase())) { // check if the dictionary contains the word\r\n correct = true; // true if found\r\n\r\n stringSubmitted[largeTile-1] = 1; // word has been submitted for this tile\r\n\r\n // set amount of points\r\n int bonus = 0;\r\n for (char c : guess.toCharArray()) {\r\n if (c == 'E' || c == 'A' || c == 'I' || c == 'O' || c == 'N' || c == 'R' || c == 'T' || c == 'L' || c == 'S') {\r\n bonus += 1;\r\n } else if (c == 'D' || c == 'G') {\r\n bonus += 2;\r\n } else if (c == 'B' || c == 'C' || c == 'M' || c == 'P') {\r\n bonus += 3;\r\n } else if (c == 'F' || c == 'H' || c == 'V' || c == 'W' || c == 'Y') {\r\n bonus += 4;\r\n } else if (c == 'K') {\r\n bonus += 5;\r\n } else if (c == 'J' || c == 'X') {\r\n bonus += 8;\r\n } else {\r\n bonus += 10;\r\n }\r\n }\r\n if (length == 9 && phase == 1) bonus += length; // bonus for 9 letter word during phase 1\r\n pointsScore += bonus; // calculate total score\r\n scoreBoard.setText(\"\"+pointsScore); // set scoreboard to total\r\n\r\n // save longest word information\r\n if (length > longestLength) {\r\n longestLength = length;\r\n longestWord = guess;\r\n longestWordScore = bonus;\r\n }\r\n\r\n // mark as submitted in tile tacker array\r\n submittedTracker[largeTile-1] = true;\r\n int done = 0;\r\n for (boolean b : submittedTracker) {\r\n if (b == true) done++;\r\n }\r\n// if (done == 9) {\r\n// timer.cancel();\r\n// gameOver();\r\n// }\r\n }\r\n } else {\r\n correct = false; // false if not found\r\n pointsScore -= 3; // penalize for submitting an incorrect word\r\n scoreBoard.setText(\"\"+pointsScore); // set scoreboard to total\r\n }\r\n\r\n // if word is in the dictionary\r\n if (correct) {\r\n mSoundPool.play(mSoundCorrect, mVolume, mVolume, 1, 0, 1f); // chime when correct\r\n adapter.add(guess); // add to list\r\n// Log.e(\"word\", String.valueOf(tile1));\r\n\r\n // set unused tiles to be blank\r\n for (int small = 0; small < 9; small++) { // go through entire list\r\n// Log.e(\"tile # \", Integer.toString(small));\r\n// Log.e(\"selected? \", allTilesInt[largeTile-1][small] == 0 ? \"no\" : \"yes\");\r\n if (allTilesInt[largeTile-1][small] == 0) { // if the tile was not selected\r\n buttonList[largeTile-1][small].setText(\"\"); // remove the letter from the button\r\n buttonList[largeTile-1][small].setClickable(false);\r\n }\r\n }\r\n\r\n // if word was not in the dictionary\r\n } else {\r\n mSoundPool.play(mSoundIncorrect, mVolume, mVolume, 1, 0, 1f); // quack when incorrect\r\n }\r\n }", "private String getWordStatsFromList(List<String> wordList) {\n\t\tif (wordList != null && !wordList.isEmpty()) {\n\t\t\tList<String> wordsUsedCaps = new ArrayList<>(); \n\t\t\tList<String> wordsExcludedCaps = new ArrayList<>(); \n\t\t\tListIterator<String> iterator = wordList.listIterator();\n\t\t\tMap<String, Integer> wordToFreqMap = new HashMap<>();\n\t\t\t// iterate on word List using listIterator to enable edits and removals\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tString origWord = iterator.next();\n\t\t\t\t// remove quotes from word e.g. change parents' to parents; \n\t\t\t\t// change children's to children; change mark'd to mark\n\t\t\t\tString curWord = stripQuotes(origWord);\n\t\t\t\tif (!curWord.equals(origWord)) {\n\t\t\t\t\titerator.set(curWord);\n\t\t\t\t}\n\t\t\t\tString curWordCaps = curWord.toUpperCase();\n\t\t\t\t// remove words previously used (to prevent duplicates) or previously\n\t\t\t\t// excluded (compare capitalized version)\n\t\t\t\tif (wordsExcludedCaps.contains(curWordCaps)) {\n\t\t\t\t\titerator.remove();\n\t\t\t\t}\n\t\t\t\telse if (wordsUsedCaps.contains(curWordCaps)) {\n\t\t\t\t\t// if word was previously used then update wordToFreqMap to increment\n\t\t\t\t\t// its usage frequency\n\t\t\t\t\tSet<String> wordKeys = wordToFreqMap.keySet();\n\t\t\t\t\tfor (String word : wordKeys) {\n\t\t\t\t\t\tif (curWord.equalsIgnoreCase(word)) {\n\t\t\t\t\t\t\twordToFreqMap.put(word, wordToFreqMap.get(word).intValue() + 1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\titerator.remove();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// invoke checkIfEligible() with algorithm described in Challenge 2 to see if word not\n\t\t\t\t\t// previously used/excluded should be kept. If kept in list \n\t\t\t\t\t// then add to wordsUsedCaps list; if not qualified then add to\n\t\t\t\t\t// wordsExcludedCaps list to prevent checkIfEligible() having to be \n\t\t\t\t\t// called again\n\t\t\t\t\tif (checkIfEligible(curWordCaps)) {\n\t\t\t\t\t\twordsUsedCaps.add(curWordCaps);\n\t\t\t\t\t\twordToFreqMap.put(curWord, 1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\twordsExcludedCaps.add(curWordCaps);\n\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// sort words in list in order of length\n\t\t\twordList.sort(Comparator.comparingInt(String::length));\n\t\t\t// sort wordToFreqMap by value (frequency) and choose the last sorted map element\n\t\t\t// to get most frequently used word\n\t\t\tList<Map.Entry<String, Integer>> mapEntryWtfList = new ArrayList<>(wordToFreqMap.entrySet());\n\t\t\tmapEntryWtfList.sort(Map.Entry.comparingByValue());\n\t\t\tMap<String, Integer> sortedWordToFreqMap = new LinkedHashMap<>();\n\t\t\tsortedWordToFreqMap.put(mapEntryWtfList.get(mapEntryWtfList.size()-1).getKey(), mapEntryWtfList.get(mapEntryWtfList.size()-1).getValue());\t\n\t\t\t// set up Json object to be returned as string\n\t\t\t// the code below is self-explaining\n\t\t\tJSONObject json = new JSONObject();\n\t\t\ttry {\n\t\t\t\tjson.put(\"remaining words ordered by length\", wordList);\n\t\t\t\tjson.put(\"most used word\", mapEntryWtfList.get(mapEntryWtfList.size()-1).getKey());\n\t\t\t\tjson.put(\"number of uses\", mapEntryWtfList.get(mapEntryWtfList.size()-1).getValue());\n\t\t\t} catch(JSONException je) {\n\t\t\t\tje.printStackTrace();\n\t\t\t}\n\t\t\treturn json.toString();\n\t\t\t\n\t\t}\n\t\treturn \"\";\n\t}", "public void computeWords(){\n\n loadDictionary();\n\n CharacterGrid characterGrid = readCharacterGrid();\n\n Set<String> wordSet = characterGrid.findWordMatchingDictionary(dictionary);\n\n System.out.println(wordSet.size());\n for (String word : wordSet) {\n\t System.out.println(word);\n }\n\n // System.out.println(\"Finish scanning character grid in \" + (System.currentTimeMillis() - startTime) + \" ms\");\n }", "public int findKeyword(String phrase, String goal){\n\t\tif (phrase != null){\n\t\t\tint psn = phrase.indexOf(goal, 0);\n\t\t\twhile (psn >= 0){\n\t\t\t\tString before = \" \", after = \" \";\n\t\t\t\tif (psn > 0){\n\t\t\t\t\tbefore = phrase.substring(psn - 1, psn);\n\t\t\t\t}if (psn + goal.length() < phrase.length()){\n\t\t\t\t\tafter = phrase.substring(\n\t\t\t\t\t\t\tpsn + goal.length(),\n\t\t\t\t\t\t\tpsn + goal.length() + 1);\n\t\t\t\t}if (((before.compareTo(\"a\") < 0) || (before.compareTo(\"z\") > 0)) && ((after.compareTo(\"a\") < 0) || (after.compareTo(\"z\") > 0))){\n\t\t\t\t\treturn psn;\n\t\t\t\t}\n\t\t\t\tpsn = phrase.indexOf(goal, psn + 1);\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public double getScoreOfString(String tweet) {\n return classifier.classify(tweet);\n }", "public boolean inCache(String word){\n\t//\tSystem.out.println(\"checking word is: \"+\"-\"+word+\"-\");\n\t//\tSystem.out.println(source.containsValue(word));\n\t\tif(source.get(word) != null){\n\t//\t\tSystem.out.println(\"This word is in the cache dictionary \");\n\t\t\treturn true;\n\t\t}\n\t//\tSystem.out.println(\"this word is not in the cache dictionary \");\n\t\treturn false;\n\t}", "@Override //old methd for letter count\n public Integer letterCount(String inputString) {\n char[] characterArray = inputString.toCharArray();\n Map<Character, Integer> wordFrequencyMap = new HashMap<Character, Integer>();\n\n for (char character : characterArray) {\n if (wordFrequencyMap.containsKey(character)) {\n\n Integer wordCount = (Integer) wordFrequencyMap.get(character);\n wordFrequencyMap.put(character, wordCount + 1);\n\n } else {\n wordFrequencyMap.put(character, 1);\n\n }\n }\n return null; //iterateWordCount(wordFrequencyMap);\n }", "public static Map<String, Double> calculateScores(Set<Word> words) {\n//\t\tSystem.out.println(words);\n\t\t/* IMPLEMENT THIS METHOD! */\n\t\tMap<String, Double> myMap = new HashMap<>();\n\t\tif(words == null || words.isEmpty()) return myMap;\n\t\tfor(Word w : words) {\n//\t\t\tSystem.out.println(w);\n\t\t\tmyMap.put(w.getText(), w.calculateScore());\n\t\t}\n\t\treturn myMap; // this line is here only so this code will compile if you don't modify it\n\t}", "public boolean contains(String word) {\n\t\treturn invertedIndex.containsKey(word);\n\t}", "public static void search(String word){\n if(index.containsKey(word)){\n System.out.println(\"word \" + word + \" displays in :\");\n HashSet<String> list = index.get(word);\n for(String str:list){\n System.out.println(str);\n }\n }\n else{\n System.out.println(\"word \" + word + \" doesn't found!\");\n }\n }", "public void add(String word) {\n if (hashTable.contains(word)) {\n hashTable.put(word, hashTable.get(word) + 1);\n }\n else {\n hashTable.put(word,1);\n }\n }", "@Test \r\n public void shouldNotFindWordIntoTheDictionary() {\r\n String inputWord = \"xxxxx\";\r\n String[] dictionary =\r\n new String[] {\"able\", \"ale\", \"apple\", \"bale\", \"kangaroo\"};\r\n\r\n assertNull(wordSeeker.lookFor(inputWord, dictionary));\r\n }", "private WordRecord lookUp(String word)\n {\n int contains = 0;\n boolean check = false;\n //loops through concordance\n for(int i = 0; i < this.concordance.size();i++)\n {\n //checks to see if the words are equal\n if(word.equalsIgnoreCase(this.concordance.get(i).getWord()))\n {\n //gets location of what position the word is true\n contains = i;\n check = true;\n }\n \n }\n //checks to see if it was found in concordance\n if(check)\n return this.concordance.get(contains);\n \n return null;\n }", "@Test \r\n public void shouldFindOneWordAtTheEnd() {\r\n \r\n String inputWord = \"bxxxxxxxe\";\r\n String[] dictionary =\r\n new String[] {\"able\", \"be\", \"ale\", \"apple\", \"bale\", \"kangaroo\"};\r\n \r\n assertEquals(\"be\", wordSeeker.lookFor(inputWord, dictionary));\r\n }", "public long getCount(String word) throws FileNotFoundException,IOException{\n\t\tlong count=0;\n\t\tLong cacheCount=counts.get(word);\n\t\tif(cacheCount==null){\n\t\t\tsynchronized(this){\n\t\t\t\ttry(BufferedReader inputFile=new BufferedReader(new FileReader(GlobalResources.FILE_PATH))){\n\t\t\t\t\tString line=inputFile.readLine();\n\t\t\t\t\tStringTokenizer tokenizer=null;\n\t\t\t\t\twhile(line!=null){\n\t\t\t\t\t\ttokenizer=new StringTokenizer(line);\n\t\t\t\t\t\tString token=null;\n\t\t\t\t\t\twhile(tokenizer.hasMoreElements()){\n\t\t\t\t\t\t\ttoken=(String)tokenizer.nextElement();\n\t\t\t\t\t\t\tif(token.equalsIgnoreCase(word))count++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tline=inputFile.readLine();\n\t\t\t\t\t}\n\t\t\t\t}catch(FileNotFoundException fileNotFoundException){\n\t\t\t\t\tSystem.out.println(\"FileNotFoundException in class FileDAO : method : getCount(String) \"+fileNotFoundException.getMessage());\n\t\t\t\t\tthrow fileNotFoundException;\n\t\t\t\t}catch(IOException ioException){\n\t\t\t\t\tSystem.out.println(\"IOException in class FileDAO : method : getCount(String) \"+ioException.getMessage());\n\t\t\t\t\tthrow ioException;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcounts.put(word, count);\n\t\t}else{\n\t\t\tcount=cacheCount.longValue();\n\t\t}\n\t\treturn count;\n\t}", "public boolean search(String word){\n\t\tint hash = getHash(word);\n\t\tif (hash != INVALID){\n\t\t\treturn m_arraylists[hash].search(word);\n\t\t}\n\t\treturn false;\n\t}", "public static void main(String[] args) \n\t{\n\t\tBoggleBoard.generateBoard();\n\t\tArrayList<String> usedWords = new ArrayList<String>();\n\t\tmyDictionary = new Dictionary(\"words.txt\"); //load the dictionary\n\t\tmyBoard = new BoggleBoard(\"board.txt\"); //load the board: board.txt for standard board, board2.txt for random board\n\t\tmyBoard.display(); //display the board\n\t\tint score = 0;\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"\\nEnter a word (or enter nothing at any point to end the game): \");\n\t\tString input = scan.nextLine();\n\t\tinput = input.toLowerCase();\n\t\t\n\t\twhile(!input.equals(\"\")) //user inputs a word\n\t\t{\n\t\t\tif(input.length() < 3) //words less than 3 letters don't count\n\t\t\t\tSystem.out.println(\"That word is too short.\");\n\t\t\telse if(Dictionary.search(input, 0, myDictionary.size-1) < 0) //user made up a word\n\t\t\t\tSystem.out.println(\"That word is not in the dictionary.\");\n\t\t\telse if(!myBoard.findWord(input.toUpperCase())) //word not on the board\n\t\t\t\tSystem.out.println(\"That word is a valid word, but is not on the board.\");\n\t\t\telse // myDictionary.search() && myBoard.findWord(input)\n\t\t\t{\n\t\t\t\tif(!usedWords.contains(input))\n\t\t\t\t{\n\t\t\t\t\t//account for grammar\n\t\t\t\t\tif(myBoard.score(input) == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"That is a good word! You score \" + myBoard.score(input) + \" point!\");\n\t\t\t\t\t\tscore += myBoard.score(input);\n\t\t\t\t\t\tusedWords.add(input); //add searched words to usedWords to make sure they cant be used again\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"That is a good word! You score \" + myBoard.score(input) + \" points!\");\n\t\t\t\t\t\tscore += myBoard.score(input);\n\t\t\t\t\t\tusedWords.add(input);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"That word was already used.\");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\tmyBoard.display();\n\t\t\t\n\t\t\tSystem.out.print(\"Used words: \");\n\t\t\tfor(String d : usedWords)\n\t\t\t\tSystem.out.print(d + \", \");\n\t\t\t\n\t\t\tSystem.out.print(\"\\nEnter a word: \");\n\t\t\tinput = scan.nextLine();\n\t\t\tinput = input.toLowerCase();\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Total score: \" + score); //end of the game.\n\t\tSystem.out.println(\"Thanks for playing!\");\n\t}", "public double tf(String wordToLookFor, HashMap<String, ArrayList<Integer>> tokensHM, Document doc) {\n if (tokensHM.containsKey(wordToLookFor)) {\n double count = 0;\n String[] words = doc.generateWordList(doc.getDocument());\n if(tokensHM.get(wordToLookFor).contains(doc.getIndex())) {\n for (String word : words) {\n if (word.equals(wordToLookFor)) {\n count++;\n }\n }\n }\n return count/words.length;\n }\n else {\n return 0;\n }\n }", "public String getLexEntry(String word)\n {\n boolean found = false;\n String buff = \"\";\n String rtn = \"\";\n\n lastCount = 0.0;\n if(word.length() > 0)\n {\n buff = compactNumbers(word);\n rtn = searchLexDb(buff, true);\n if(rtn.length() > 0)\n found = true;\n\n else // try the lowercase version\n {\n buff = buff.toLowerCase();\n rtn = searchLexDb(buff, true);\n if(rtn.length() > 0)\n found = true;\n } // else\n } // fi\n\n // If not found, get the search string corresponding to the word.\n\n if(!found)\n {\n buff = searchString(word);\n\n while(!found && (buff.length() > 0))\n {\n rtn = searchLexDb(buff, false);\n if(rtn.length() > 0)\n found = true;\n else\n buff = buff.substring(1);\n } // while\n } // fi\n\n if(!found)\n System.out.println(\"word: #\" + word + \"# lex entry not found\");\n\n return(rtn.toString());\n }", "public boolean search(String word) {\n char[] chs = word.toCharArray();\n TreeNode cur = root;\n for (int i = 0; i < chs.length; i++) {\n int ind = chs[i] - 'a';\n if (cur.map[ind] == null) {\n return false;\n }\n cur = cur.map[ind];\n }\n return cur.end;\n }", "public boolean findWord ( String word ) {\n\t\tif(this.contains(word))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\n\t\t\n\t\t/**old code written by Professor below\n\t\t * \n\t\t */\n\t\t//return isWordInDictionaryRecursive( word, 0, words.size()-1);\n\n\t}", "@Test\r\n public void shouldFindTheLongestWordInDictionary() {\r\n\r\n String inputWord = \"abppplee\";\r\n String[] dictionary =\r\n new String[] {\"able\", \"ale\", \"apple\", \"bale\", \"kangaroo\", \r\n \"axxxxxxxxxxxxxx\", \"bddddddddddddddd\", \"cccccccccccccccccc\", \r\n \"hxxxxxxxxxxxxxx\", \"gbddddddddddddddd\", \"xccccccccccccccccc\"};\r\n\r\n assertEquals(\"apple\", wordSeeker.lookFor(inputWord, dictionary));\r\n }", "public boolean search(String word) {\n TrieTree point = root;\n for(int i = 0; i < word.length(); i++){\n char ch = word.charAt(i);\n if(point.getChild(ch - 'a') == null) return false;\n point = point.getChild(ch - 'a');\n }\n return point.getIsWord();\n }", "@Test\n\tpublic void testValidWord() {\n\t\tAssert.assertTrue(new DictionaryImpl().isValidWord(\"set\"));\n\t}", "boolean isWord(String potentialWord);", "public Map<String, Integer> findUnicalWord(ArrayList<Word> text)\n {\n String[] words=new String[text.size()];\n for(int i=0; i<text.size(); i++){\n words[i]=text.get(i).toString();\n }\n HashMap<String, Integer> myWordsCount = new HashMap<>();\n for (String s : words){\n if (myWordsCount.containsKey(s)) myWordsCount.replace(s, myWordsCount.get(s) + 1);\n else myWordsCount.put(s, 1);\n }\n\n Map<String, Integer> newWordsCount = myWordsCount\n .entrySet()\n .stream()\n .sorted(Collections.reverseOrder(Map.Entry.comparingByValue()))\n .collect(\n toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2,\n LinkedHashMap::new));\n\n return newWordsCount;\n\n }", "private static String mostCommonWord(String paragraph, String[] banned) {\n\t String [] words =paragraph.replaceAll(\"[^a-zA-Z\\\\s+]\", \" \").toLowerCase().split(\"\\\\s+\");\r\n\t \r\n\t Set<String> bannedSet = new HashSet<String>();\r\n\t HashMap<String,Integer> map = new HashMap<String,Integer>();\r\n\t \r\n\t for (String string : banned) {\r\n\t \tbannedSet.add(string);\r\n\t }\r\n\t \r\n\t \r\n\t for (String string : words) {\r\n\t\t\t\r\n\t \tif(!bannedSet.contains(string)) {\r\n\t \t\tmap.put(string, map.getOrDefault(string, 0)+1);\r\n\t \t}\r\n\t \t \r\n\t\t}\r\n\t\t \r\n\t List list = new LinkedList(map.entrySet());\r\n\t\t// Defined Custom Comparator here\r\n\t\tCollections.sort(list, new Comparator() {\r\n\t\t\tpublic int compare(Object o1, Object o2) {\r\n\t\t\t\treturn ((Comparable) ((Map.Entry) (o2)).getValue()).compareTo(((Map.Entry) (o1)).getValue());\r\n\t\t\t}\r\n\t\t});\r\n\t \r\n\t\t//System.out.println(map);\r\n\t\t//System.out.println(list);\r\n\t\t\r\n\t\t return (String) ((Map.Entry) list.get(0)).getKey();\t\t\r\n\t}", "@Test\r\n public void testGetCandidateWords() throws IOException {\r\n System.out.println(\"getCandidateWords\");\r\n String word = \"idabetes\";\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n Map<String, Double> result = sc.getCandidateWords(word);\r\n for (String key : result.keySet()) {\r\n System.out.println(key + \", \" + result.get(key));\r\n }\r\n\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 }", "private double countWordFrequencyScore(Page page, String[] queryWords) {\n double score = 0;\n for (String word : queryWords) {\n int wordId = this.pb.getIdForWord(word);\n for (double pageWordId : page.getWords()) {\n if (wordId == pageWordId) score++;\n }\n }\n\n return score;\n }", "public Map<String, Integer> wordCount(String string) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tString foundword = \"\";\n\t\tstring = string.replaceAll(\"\\n\",\"\");\n\t\tMap<String, Integer> WordCountMap = new HashMap<>();\n\t\tList<String> stringList = new ArrayList<String>();\n\t\tfor(int i = 0; i < string.length(); i++) {\n\t\t\t//System.out.println(string.charAt(i));\n\t\t\t\n\t\t\tif(string.charAt(i) == ' ') {\n\t\t\t\tstringList.add(foundword);\n\t\t\t\tfoundword = \"\";\n\t\t\t}\n\t\t\telse if(string.charAt(i) == ',') {\n\t\t\t\tstringList.add(foundword);\n\t\t\t\tfoundword = \"\";\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tfoundword = foundword + string.charAt(i);\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tstringList.add(foundword);\n\t\t\n\t\tfor(String name: stringList) {\n\t\t\tif(WordCountMap.containsKey(name)) {\n\t\t\t\t//The frequencyMap already contains the count for this name;\n\t\t\t\t//So we want to increase that count by 1\n\t\t\t\tint currentCount = WordCountMap.get(name);\n\t\t\t\tWordCountMap.put(name, currentCount+1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tWordCountMap.put(name, 1); //Track the name with a count of 1 if we haven't seen it before\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn WordCountMap;\n\t}", "private int numEnglishWords(String str) {\n int numWords = 0;\n String[] strings = str.split(\" \");\n for (String word : strings) {\n if (english.contains(word)) {\n numWords ++;\n }\n }\n return numWords;\n }", "public static int countWords(String word, ArrayList<String> s){\n\t\tint n = 0;\n\t\tfor(String w : s){\n\t\t\tif(w.equals(word)){\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\t\treturn n;\n\t}" ]
[ "0.80764574", "0.799889", "0.74905986", "0.7251311", "0.70965636", "0.70672184", "0.6785874", "0.6632876", "0.65948164", "0.6530494", "0.6496762", "0.6476467", "0.6408439", "0.6390092", "0.634747", "0.6319309", "0.62736475", "0.6265352", "0.62169534", "0.619561", "0.6189797", "0.605575", "0.6042797", "0.602827", "0.59544116", "0.59471154", "0.5939583", "0.5896317", "0.58920026", "0.5876626", "0.58685154", "0.5834922", "0.581265", "0.57705224", "0.5769515", "0.5765183", "0.5746589", "0.57372475", "0.57098913", "0.5697562", "0.56906027", "0.5683161", "0.567232", "0.5666169", "0.56069577", "0.55884176", "0.5577527", "0.55672836", "0.55579484", "0.55570763", "0.5544618", "0.5538418", "0.5535798", "0.55336046", "0.550945", "0.5497399", "0.5494874", "0.5485066", "0.5477121", "0.5460358", "0.5457731", "0.5456498", "0.5448799", "0.54468787", "0.5441604", "0.5431481", "0.54292923", "0.54221255", "0.54167634", "0.54141474", "0.5412601", "0.5405109", "0.54028106", "0.5398893", "0.53976667", "0.53963214", "0.53926253", "0.5392624", "0.53705066", "0.5364722", "0.5363041", "0.5358747", "0.5356735", "0.53537846", "0.5352363", "0.5341326", "0.5338679", "0.53266937", "0.53174675", "0.53159136", "0.5315165", "0.53144914", "0.53085315", "0.5294448", "0.52935463", "0.5290739", "0.52901804", "0.52892715", "0.5281652", "0.5274298" ]
0.8344074
0
depth first search from v
private void dfs(BoggleBoard board, int row, int col, StringBuilder theWord, ArrayList<String> all, boolean[] marked) { int totalRow = board.rows(); int totalCol = board.cols(); char ch = board.getLetter(row, col); if (ch == 'Q') theWord.append("QU"); else theWord.append(ch); if (!dict.isPrefixValid(theWord.toString())) { theWord.deleteCharAt(theWord.length() - 1); if (ch == 'Q') theWord.deleteCharAt(theWord.length() - 1); return; } marked[row * totalCol + col] = true; // if such prefix exists in dictionary, if not, undo it for (int w : getAdj(row, col, totalRow, totalCol)) { if (!marked[w]) { dfs(board, w / totalCol, w % totalCol, theWord, all, marked); } } String s = theWord.toString(); if ((dict.contains(s)) && (!all.contains(s))) all.add(theWord.toString()); // reset the theWord and marked theWord.deleteCharAt(theWord.length() - 1); if (ch == 'Q') // delete one more character theWord.deleteCharAt(theWord.length() - 1); marked[row * totalCol + col] = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void depthFirstSearch(Vertex v, ArrayList<Vertex> visitedArrayList, Graph graph){\n visitedArrayList.add(v);\n Iterator<Vertex> iter=graph.getNeighbors(v).iterator();\n while (iter.hasNext()){\n Vertex v1=iter.next();\n if(!visitedArrayList.contains(v1)){\n depthFirstSearch(v1,visitedArrayList,graph);\n }\n }\n for(Vertex v1 : graph.getNeighbors(v)){\n if(!visitedArrayList.contains(v1)){\n depthFirstSearch(v1,visitedArrayList,graph);\n }\n }\n }", "Bfs_search(int v) \r\n { \r\n V = v; \r\n \r\n adj = new LinkedList[v]; \r\n \r\n for (int i=0; i<v; ++i) \r\n adj[i] = new LinkedList(); \r\n }", "private int find(int[] parent, int v) {\n if(parent[v] == -1) return v;\n return find(parent, parent[v]);\n }", "protected void search(V v) {\n if(markedVertices.get(v))\n return;\n markedVertices.put(v, true);\n for(V w : graph.adjVertices(v))\n search(w);\n }", "public Vertex find(Vertex v) {\n\n // if the given vertex is its own root, return the vertex\n if(v.getRoot().equals(v)){\n return v;\n }\n\n // loop on the path of given root, find the sentinel node\n Vertex curr = v.getRoot();\n while(!curr.getRoot().equals(curr)){\n curr = curr.getRoot();\n }\n\n return curr;\n }", "void dfs(){\n // start from the index 0\n for (int vertex=0; vertex<v; vertex++){\n // check visited or not\n if (visited[vertex]==false){\n Explore(vertex);\n }\n }\n }", "void DFS(int v) {\n // Mark all the vertices as not visited(set as\n // false by default in java)\n boolean visited[] = new boolean[V];\n\n // Call the recursive helper function to print DFS traversal\n DFSUtil(v, visited);\n }", "public void depthFirstTraverse(Graph<VLabel, ELabel> G,\n Graph<VLabel, ELabel>.Vertex v) {\n _graph = G;\n _marked = new HashSet<Graph<VLabel, ELabel>.Vertex>();\n _curTraversal = \"dft\";\n _finalVertex = null;\n try {\n depthHelper(G, v, _marked, false);\n } catch (StopException e) {\n return;\n }\n _curTraversal = \"\";\n }", "public int find(int v) {\n if(_parents[v] == v) {\n return _parents[v];\n } else {\n return find(_parents[v]);\n }\n }", "private void traverseHelper(Graph<VLabel, ELabel>.Vertex v) {\n PriorityQueue<Graph<VLabel, ELabel>.Vertex> fringe =\n new PriorityQueue<Graph<VLabel,\n ELabel>.Vertex>(_graph.vertexSize(), _comparator);\n fringe.add(v);\n while (fringe.size() > 0) {\n Graph<VLabel, ELabel>.Vertex curV = fringe.poll();\n try {\n if (!_marked.contains(curV)) {\n _marked.add(curV);\n visit(curV);\n for (Graph<VLabel, ELabel>.Edge e: _graph.outEdges(curV)) {\n if (!_marked.contains(e.getV(curV))) {\n preVisit(e, curV);\n fringe.add(e.getV(curV));\n }\n }\n }\n } catch (StopException e) {\n _finalVertex = curV;\n return;\n }\n }\n }", "int query_tree(int v, int l, int r, int tl, int tr) {\n int ans = query(1, l, r, r, tl, tr);\n return r - l + 1 - ans;\n }", "void DFSUtil(int v, boolean visited[]) {\n // Mark the current node as visited and print it\n visited [v] = true;\n System.out.print(v + \" \");\n\n // Recur for all the vertices adjacent to this vertex\n Iterator<Integer> i = adj [v].listIterator();\n while (i.hasNext()) {\n int n = i.next();\n if (!visited [n])\n DFSUtil(n, visited);\n }\n }", "public AbstractGraph<V>.Tree bfs(int v);", "public AbstractGraph<V>.Tree bfs(int v);", "void DFSUtil(int v, boolean visited[]) {\n\t\t\tvisited[v] = true;\n\t\t\tSystem.out.println(v +\" \");\n\t\t\t\n\t\t\t//Recur all the vertices adjacents to this vertex\n\t\t\tIterator<Integer> i = adj[v].listIterator();\n\t\t\twhile(i.hasNext()) {\n\t\t\t\tint node = i.next();\n\t\t\t\tif(!visited[node]) {\n\t\t\t\t\tDFSUtil(node, visited);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "void DFSUtil(int v, boolean visited[]) {\n \t// Mark the current node as visited and print it \n visited[v] = true; \n System.out.print(v + \" \"); \n \n for(int w: adj[v]) \n \tif (!visited[w]) { \n \t\tDFSUtil(w, visited);\n \t}\n }", "private List<View> getAllChildrenBFS(View v) {\n List<View> visited = new ArrayList<View>();\n List<View> unvisited = new ArrayList<View>();\n unvisited.add(v);\n\n while (!unvisited.isEmpty()) {\n View child = unvisited.remove(0);\n visited.add(child);\n if (!(child instanceof ViewGroup)) continue;\n ViewGroup group = (ViewGroup) child;\n final int childCount = group.getChildCount();\n for (int i=0; i<childCount; i++) unvisited.add(group.getChildAt(i));\n }\n return visited;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public int Search(int v_key){\n\tboolean cont ;\n\tint ifound ;\n\tTree current_node;\n\tint key_aux ;\n\n\tcurrent_node = this ;\n\tcont = true ;\n\tifound = 0 ;\n\twhile (cont){\n\t key_aux = current_node.GetKey();\n\t if (v_key < key_aux)\n\t\tif (current_node.GetHas_Left())\n\t\t current_node = current_node.GetLeft() ;\n\t\telse cont = false ;\n\t else \n\t\tif (key_aux < v_key)\n\t\t if (current_node.GetHas_Right())\n\t\t\tcurrent_node = current_node.GetRight() ;\n\t\t else cont = false ;\n\t\telse { \n\t\t ifound = 1 ;\n\t\t cont = false ;\n\t\t}\n\t}\n\treturn ifound ;\n }", "public BinaryNode<T> find(T v);", "void DFS(int v) {\n\t\t\tboolean visited[] = new boolean[number_of_vertices];\n\t\t\t\n\t\t\t//in case that the vertex are not connected, I need to make DFS for all\n\t\t\t//available vertex and checking before if they are not visited\n\t\t\tfor(int i = 0 ; i < number_of_vertices; i++) {\n\t\t\t\tif(visited[i] == false)\n\t\t\t\t\tDFSUtil(v, visited);\n\t\t\t}\n\t\t}", "public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n int nopath = -1;\n int length = Integer.MAX_VALUE;\n for (int i1 : v) {\n for (int i2 : w) {\n int ancestor = ancestor(i1, i2);\n if (length >= length(i1, i2)) {\n length = distance;\n nopath = ancestor;\n }\n }\n }\n distance = length;\n return nopath;\n }", "public void depthFirstSearch() {\n List<Vertex> visited = new ArrayList<Vertex>();\r\n // start the recursive depth first search on the current vertex\r\n this.dfs(visited);\r\n }", "void DFS(int v, boolean visited[]) {\n visited[v] = true;\n connected++;\n //LinkedList Iterator to Recursively traverse all adjacent nodes of v\n Iterator<Integer> itr = adj[v].listIterator();\n\n while(itr.hasNext()) {\n int x = itr.next();\n if(visited[x] == false)\n DFS(x,visited);\n }\n }", "public HPTNode<K, V> search(List<K> key) {\n check(key);\n int size = key.size();\n\n // Start at the root, and only search lower in the tree if it is\n // large enough to produce a match.\n HPTNode<K, V> current = root;\n for (int i = 0; i < size; i++) {\n if (current == null || (size - i) > current.maxDepth()) {\n return null;\n }\n current = find(current, i, key.get(i), false);\n }\n if (current == null || current.values == null) {\n return null;\n }\n return current.values.isEmpty() ? null : current;\n }", "public void recursiveDfs(Graph G, int v) {\n sourceVertexCount++;\n marked[v] = true;\n for (int w : G.adj(v)) {\n if (!marked[w]) {\n recursiveDfs(G, w);\n }\n }\n }", "public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n\n int shortestPath = Integer.MAX_VALUE;\n Deque<Integer> ancestors = new ArrayDeque<>();\n int ancestor = -1;\n\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer a : ancestors) {\n if ((bfsV.distTo(a) + bfsW.distTo(a)) < shortestPath) {\n shortestPath = (bfsV.distTo(a) + bfsW.distTo(a));\n ancestor = a;\n }\n }\n return ancestor;\n }" ]
[ "0.6926913", "0.66088396", "0.6416563", "0.63649285", "0.6312199", "0.6274202", "0.62473565", "0.6238824", "0.60654896", "0.60553706", "0.5991765", "0.5979297", "0.5954744", "0.5954744", "0.5948598", "0.59413123", "0.5909545", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58403605", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.58401066", "0.5839323", "0.58211696", "0.5818031", "0.57947063", "0.5793485", "0.5786582", "0.57220614", "0.5686349" ]
0.0
-1
This class was generated by the JAXWS RI. JAXWS RI 2.2.10 Generated source version: 2.2
@WebService(name = "CustomerSoapType", targetNamespace = "http://test.co.id/ws/customer/") @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) @XmlSeeAlso({ ObjectFactory.class }) public interface CustomerSoapType { /** * Request All Customer * * @return * returns id.co.bca.ws.mbs.soap.customer.ListOfCustomerType */ @WebMethod(operationName = "GetAllCustomer") @WebResult(name = "GetAllCustomerResponse", targetNamespace = "http://test.co.id/ws/customer/", partName = "parameters") public ListOfCustomerType getAllCustomer(); /** * Insert Customer * * @param parameters * @return * returns java.lang.String */ @WebMethod(operationName = "InsertCustomer") @WebResult(name = "InsertCustomerResponse", targetNamespace = "http://test.co.id/ws/customer/", partName = "parameters") public String insertCustomer( @WebParam(name = "InsertCustomer", targetNamespace = "http://test.co.id/ws/customer/", partName = "parameters") CustomerType parameters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(name = \"ZWSVUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\r\npublic interface ZWSVURUPDSTATUS {\r\n\r\n\r\n /**\r\n * \r\n * @param iNROLIQ\r\n * @param eRETURN\r\n * @param iESTADO\r\n * @param eMESSAGE\r\n */\r\n @WebMethod(operationName = \"ZPSCDFM_VUR_UPDSTATUS\")\r\n @RequestWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUS\")\r\n @ResponseWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUSResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUSResponse\")\r\n public void zpscdfmVURUPDSTATUS(\r\n @WebParam(name = \"I_ESTADO\", targetNamespace = \"\")\r\n String iESTADO,\r\n @WebParam(name = \"I_NROLIQ\", targetNamespace = \"\")\r\n String iNROLIQ,\r\n @WebParam(name = \"E_MESSAGE\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<String> eMESSAGE,\r\n @WebParam(name = \"E_RETURN\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<Integer> eRETURN);\r\n\r\n}", "@WebService(name = \"ListSubscriptions\", targetNamespace = \"http://soap/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ListSubscriptions {\n\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetListResponse\")\n public String getList();\n\n}", "@WebService(name = \"AgendarReservasWS\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\")\npublic interface AgendarReservasWS {\n\n\n /**\n * \n * @param reserva\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws ApplicationException_Exception\n * @throws AccesoMultipleException_Exception\n * @throws BusinessException_Exception\n * @throws ValidacionException_Exception\n * @throws ErrorValidacionException_Exception\n * @throws WarningValidacionCommitException_Exception\n * @throws WarningValidacionException_Exception\n * @throws ErrorValidacionCommitException_Exception\n * @throws UserException_Exception\n * @throws ValidacionClaveUnicaException_Exception\n * @throws ValidacionPorCampoException_Exception\n */\n @WebMethod\n @WebResult(name = \"confirmarReservaResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"confirmarReserva\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConfirmarReserva\")\n @ResponseWrapper(localName = \"confirmarReservaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConfirmarReservaResponse\")\n public Reserva confirmarReserva(\n @WebParam(name = \"reserva\", targetNamespace = \"\")\n Reserva reserva)\n throws AccesoMultipleException_Exception, ApplicationException_Exception, BusinessException_Exception, ErrorValidacionCommitException_Exception, ErrorValidacionException_Exception, UserException_Exception, ValidacionClaveUnicaException_Exception, ValidacionException_Exception, ValidacionPorCampoException_Exception\n ;\n\n// /**\n// * \n// * @param nombre\n// * @return\n// * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Agenda\n// * @throws ApplicationException_Exception\n// * @throws BusinessException_Exception\n// */\n// @WebMethod\n// @WebResult(name = \"consultarAgendaPorNombreResult\", targetNamespace = \"\")\n// @RequestWrapper(localName = \"consultarAgendaPorNombre\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorNombre\")\n// @ResponseWrapper(localName = \"consultarAgendaPorNombreResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorNombreResponse\")\n// public Agenda consultarAgendaPorNombre(\n// @WebParam(name = \"nombre\", targetNamespace = \"\")\n// String nombre)\n// throws ApplicationException_Exception, BusinessException_Exception\n// ;\n\n /**\n * \n * @param nombre\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Agenda\n * @throws ApplicationException_Exception\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarAgendaPorIdResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarAgendaPorId\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorId\")\n @ResponseWrapper(localName = \"consultarAgendaPorIdResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorIdResponse\")\n public Agenda consultarAgendaPorId(\n @WebParam(name = \"id\", targetNamespace = \"\")\n Integer id)\n throws ApplicationException_Exception, BusinessException_Exception\n ;\n \n /**\n * \n * @param agenda\n * @return\n * returns java.util.List<uy.gub.imm.sae.common.factories.ws.client.agendar.Recurso>\n * @throws ApplicationException_Exception\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarRecursosResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarRecursos\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarRecursos\")\n @ResponseWrapper(localName = \"consultarRecursosResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarRecursosResponse\")\n public List<Recurso> consultarRecursos(\n @WebParam(name = \"agenda\", targetNamespace = \"\")\n Agenda agenda)\n throws ApplicationException_Exception, BusinessException_Exception\n ;\n\n /**\n * \n * @param datos\n * @param recurso\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws ApplicationException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarReservaPorDatosClaveResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarReservaPorDatosClave\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarReservaPorDatosClave\")\n @ResponseWrapper(localName = \"consultarReservaPorDatosClaveResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarReservaPorDatosClaveResponse\")\n public Reserva consultarReservaPorDatosClave(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"datos\", targetNamespace = \"\")\n HashMap<DatoASolicitar, DatoReserva> datos)\n throws ApplicationException_Exception\n ;\n\n /**\n * \n * @param reserva\n * @throws BusinessException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"desmarcarReserva\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.DesmarcarReserva\")\n @ResponseWrapper(localName = \"desmarcarReservaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.DesmarcarReservaResponse\")\n public void desmarcarReserva(\n @WebParam(name = \"reserva\", targetNamespace = \"\")\n Reserva reserva)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param disponibilidad\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws BusinessException_Exception\n * @throws UserException_Exception\n * @throws UserCommitException_Exception\n */\n @WebMethod\n @WebResult(name = \"marcarReservaDisponibleResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"marcarReservaDisponible\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.MarcarReservaDisponible\")\n @ResponseWrapper(localName = \"marcarReservaDisponibleResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.MarcarReservaDisponibleResponse\")\n public Reserva marcarReservaDisponible(\n @WebParam(name = \"disponibilidad\", targetNamespace = \"\")\n Disponibilidad disponibilidad)\n throws BusinessException_Exception, UserException_Exception\n ;\n\n /**\n * \n * @param ventanaDeTiempo\n * @param recurso\n * @return\n * returns java.util.List<java.lang.Integer>\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerCuposPorDiaResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerCuposPorDia\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerCuposPorDia\")\n @ResponseWrapper(localName = \"obtenerCuposPorDiaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerCuposPorDiaResponse\")\n public List<Integer> obtenerCuposPorDia(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"ventanaDeTiempo\", targetNamespace = \"\")\n VentanaDeTiempo ventanaDeTiempo,\n @WebParam(name = \"timezone\", targetNamespace = \"\")\n TimeZone timezone\n )\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param ventanaDeTiempo\n * @param recurso\n * @return\n * returns java.util.List<uy.gub.imm.sae.common.factories.ws.client.agendar.Disponibilidad>\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerDisponibilidadesResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerDisponibilidades\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerDisponibilidades\")\n @ResponseWrapper(localName = \"obtenerDisponibilidadesResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerDisponibilidadesResponse\")\n public List<Disponibilidad> obtenerDisponibilidades(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"ventanaDeTiempo\", targetNamespace = \"\")\n VentanaDeTiempo ventanaDeTiempo)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param recurso\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.VentanaDeTiempo\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerVentanaCalendarioInternetResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerVentanaCalendarioInternet\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerVentanaCalendarioInternet\")\n @ResponseWrapper(localName = \"obtenerVentanaCalendarioInternetResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerVentanaCalendarioInternetResponse\")\n public VentanaDeTiempo obtenerVentanaCalendarioInternet(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"pingResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ping\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.Ping\")\n @ResponseWrapper(localName = \"pingResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.PingResponse\")\n public String ping();\n\n}", "@WebService(targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", name = \"MDMTableConditionDataNew\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface MDMTableConditionDataNew {\n\n @WebMethod(action = \"process\")\n @RequestWrapper(localName = \"process\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.Process\")\n @ResponseWrapper(localName = \"processResponse\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.ProcessResponse\")\n public void process(\n\n @WebParam(name = \"IN_SYS_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inSYSNAME,\n @WebParam(name = \"IN_MASTER_TYPE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inMASTERTYPE,\n @WebParam(name = \"IN_TABLE_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inTABLENAME,\n @WebParam(name = \"IN_FIELDS_VALUE_TABLE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n HAIERMDMFIELDSVALUETABLE inFIELDSVALUETABLE,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RESULT\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRESULT,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETMSG\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETMSG,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETCODE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETCODE\n );\n}", "@WebService(name = \"memberWs\", targetNamespace = \"http://webservice.cereme.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MemberWs {\r\n\r\n\r\n /**\r\n * \r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"init\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.Init\")\r\n @ResponseWrapper(localName = \"initResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.InitResponse\")\r\n public void init();\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.util.List<org.cereme.digital.library.clientws.Member>\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findAll\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAll\")\r\n @ResponseWrapper(localName = \"findAllResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAllResponse\")\r\n public List<Member> findAll();\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns org.cereme.digital.library.clientws.Member\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findByUsername\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsername\")\r\n @ResponseWrapper(localName = \"findByUsernameResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsernameResponse\")\r\n public Member findByUsername(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"updateMember\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMember\")\r\n @ResponseWrapper(localName = \"updateMemberResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMemberResponse\")\r\n public String updateMember(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Member arg0);\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @return\r\n * returns boolean\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"isValidUser\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUser\")\r\n @ResponseWrapper(localName = \"isValidUserResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUserResponse\")\r\n public boolean isValidUser(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1);\r\n\r\n}", "@WebService(targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", name = \"NotificationPort\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface NotificationPort {\n\n /**\n * Process a number of notifications.\n */\n @WebResult(name = \"Ack\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n @RequestWrapper(localName = \"notifications\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.Notifications\")\n @WebMethod\n @ResponseWrapper(localName = \"notificationsResponse\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.NotificationsResponse\")\n public boolean notifications(\n @WebParam(name = \"OrganizationId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String organizationId,\n @WebParam(name = \"ActionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String actionId,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String sessionId,\n @WebParam(name = \"EnterpriseUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String enterpriseUrl,\n @WebParam(name = \"PartnerUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String partnerUrl,\n @WebParam(name = \"Notification\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.util.List<com.barryku.cloud.cxf.BookCNotification> notification\n );\n}", "@WebService\npublic interface Appointment {\n\n AppointmentImpl getRecord(String ref);\n \n}", "@WebService(targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", name = \"MembershipService\")\n@XmlSeeAlso({com.z2systems.schemas.membership.ObjectFactory.class, com.z2systems.schemas.common.ObjectFactory.class, com.z2systems.schemas.account.ObjectFactory.class, com.z2systems.schemas.donation.ObjectFactory.class, com.z2systems.schemas.store.ObjectFactory.class, ObjectFactory.class, com.z2systems.schemas.event.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface MembershipService {\n\n @WebResult(name = \"listMembershipsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipsResponse listMemberships(\n @WebParam(partName = \"request\", name = \"listMembershipsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipsRequest request\n );\n\n @WebResult(name = \"retrieveMembershipStatsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.RetrieveMembershipStatsResponse retrieveMembershipStats(\n @WebParam(partName = \"request\", name = \"retrieveMembershipStatsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.RetrieveMembershipStatsRequest request\n );\n\n @WebResult(name = \"listMembershipHistoryResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipHistoryResponse listMembershipHistory(\n @WebParam(partName = \"request\", name = \"listMembershipHistoryRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipHistoryRequest request\n );\n\n @WebResult(name = \"listMembershipTermsResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.ListMembershipTermsResponse listMembershipTerms(\n @WebParam(partName = \"request\", name = \"listMembershipTermsRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.ListMembershipTermsRequest request\n );\n\n @WebResult(name = \"addMembershipToAccountResponse\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\", partName = \"response\")\n @WebMethod\n public com.z2systems.schemas.membership.AddMembershipToAccountResponse addMembershipToAccount(\n @WebParam(partName = \"request\", name = \"addMembershipToAccountRequest\", targetNamespace = \"http://www.z2systems.com/schemas/neonws/\")\n com.z2systems.schemas.membership.AddMembershipToAccountRequest request\n );\n}", "@WebService(name = \"ZBC_EVENT_RAISE_WEB\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZBCEVENTRAISEWEB {\n\n\n /**\n * \n * @param eventparm\n * @param eventid\n * @param targetINSTANCE\n * @return\n * returns java.lang.String\n * @throws ZBCEVENTRAISEException\n */\n @WebMethod(operationName = \"ZBC_EVENT_RAISE\", action = \"urn:sap-com:document:sap:rfc:functions:ZBC_EVENT_RAISE_WEB:ZBC_EVENT_RAISERequest\")\n @WebResult(name = \"EV_SUCCESS\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZBC_EVENT_RAISE\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZBCEVENTRAISE\")\n @ResponseWrapper(localName = \"ZBC_EVENT_RAISEResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZBCEVENTRAISEResponse\")\n public String zbcEVENTRAISE(\n @WebParam(name = \"EVENTID\", targetNamespace = \"\")\n String eventid,\n @WebParam(name = \"EVENTPARM\", targetNamespace = \"\")\n String eventparm,\n @WebParam(name = \"TARGET_INSTANCE\", targetNamespace = \"\")\n String targetINSTANCE)\n throws ZBCEVENTRAISEException\n ;\n\n}", "@WebService(name = \"zperson_communic\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZpersonCommunic {\n\n\n /**\n * \n * @param employeeId\n * @param lastnameM\n * @param fstnameM\n * @param telAts\n * @param orgtxt\n * @param job\n * @param orgUnit\n * @param jobtxt\n * @param checkCommunities\n * @param outTab\n * @return\n * returns test.Bapireturn\n */\n @WebMethod(operationName = \"ZPersonalSearch\")\n @WebResult(name = \"Return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZPersonalSearch\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearch\")\n @ResponseWrapper(localName = \"ZPersonalSearchResponse\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearchResponse\")\n public Bapireturn zPersonalSearch(\n @WebParam(name = \"CheckCommunities\", targetNamespace = \"\")\n String checkCommunities,\n @WebParam(name = \"EmployeeId\", targetNamespace = \"\")\n String employeeId,\n @WebParam(name = \"FstnameM\", targetNamespace = \"\")\n String fstnameM,\n @WebParam(name = \"Job\", targetNamespace = \"\")\n String job,\n @WebParam(name = \"Jobtxt\", targetNamespace = \"\")\n String jobtxt,\n @WebParam(name = \"LastnameM\", targetNamespace = \"\")\n String lastnameM,\n @WebParam(name = \"OrgUnit\", targetNamespace = \"\")\n String orgUnit,\n @WebParam(name = \"Orgtxt\", targetNamespace = \"\")\n String orgtxt,\n @WebParam(name = \"OutTab\", targetNamespace = \"\", mode = WebParam.Mode.INOUT)\n Holder<TableOfZpernComm> outTab,\n @WebParam(name = \"TelAts\", targetNamespace = \"\")\n String telAts);\n\n}", "@WebService(targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", name = \"Baeldung\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Baeldung {\n\n @WebMethod\n @RequestWrapper(localName = \"helloStudent\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudent\")\n @ResponseWrapper(localName = \"helloStudentResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudentResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String helloStudent(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n com.uwefuchs.demo.soap.apachecxf.endpoint.Student arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"getStudents\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudents\")\n @ResponseWrapper(localName = \"getStudentsResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudentsResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public com.uwefuchs.demo.soap.apachecxf.endpoint.StudentMap getStudents();\n}", "@WebService(name = \"HelloWS\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HelloWS {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHello\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHello\")\n @ResponseWrapper(localName = \"getHelloResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloResponse\")\n public String getHello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHelloWithAuth\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuth\")\n @ResponseWrapper(localName = \"getHelloWithAuthResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuthResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthResponse\")\n public String getHelloWithAuth(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n}", "@WebService(targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", name = \"TestJaxWs\")\n@XmlSeeAlso({ObjectFactory.class})\n//@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)\n@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) //28.12.2018 forum advice\npublic interface TestJaxWs {\n\n @WebMethod(operationName = \"jaxWsTest1\", action = \"http://sap.com/xi/WebService/soap1.1\")\n @RequestWrapper(localName = \"jaxWsTest1\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1\")\n @ResponseWrapper(localName = \"jaxWsTest1Response\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1Response\")\n //@WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String jaxWsTest1(\n @WebParam(name = \"information\", targetNamespace = \"\")\n java.lang.String information,\n @WebParam(name = \"count\", targetNamespace = \"\")\n int count\n //@WebParam(name=\"jaxWsTest1\", targetNamespace = \"\")\n //JaxWsTest1 jaxWsTest1\n ) throws UserDefinedException;\n}", "@WebService(name = \"LegislationSearch\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface LegislationSearch {\n\n\n /**\n * \n * @param startIndex\n * @param pageSize\n * @param constraints\n * @return\n * returns gov.ga.legis.legislation.LegislationSearchResultsPaged\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n */\n @WebMethod(operationName = \"GetLegislationSearchResultsPaged\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationSearchResultsPaged\")\n @WebResult(name = \"GetLegislationSearchResultsPagedResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationSearchResultsPaged\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPaged\")\n @ResponseWrapper(localName = \"GetLegislationSearchResultsPagedResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPagedResponse\")\n public LegislationSearchResultsPaged getLegislationSearchResultsPaged(\n @WebParam(name = \"Constraints\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationSearchConstraints constraints,\n @WebParam(name = \"PageSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer pageSize,\n @WebParam(name = \"StartIndex\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer startIndex)\n throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage, LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n ;\n\n /**\n * \n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndex\n */\n @WebMethod(operationName = \"GetLegislationForSession\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationForSession\")\n @WebResult(name = \"GetLegislationForSessionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationForSession\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSession\")\n @ResponseWrapper(localName = \"GetLegislationForSessionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSessionResponse\")\n public ArrayOfLegislationIndex getLegislationForSession(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @param documentType\n * @param sessionId\n * @param rangeSize\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndexRangeSet\n */\n @WebMethod(operationName = \"GetLegislationRanges\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRanges\")\n @WebResult(name = \"GetLegislationRangesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRanges\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRanges\")\n @ResponseWrapper(localName = \"GetLegislationRangesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangesResponse\")\n public ArrayOfLegislationIndexRangeSet getLegislationRanges(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId,\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"RangeSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer rangeSize);\n\n /**\n * \n * @param range\n * @return\n * returns gov.ga.legis.legislation.LegislationIndexRange\n */\n @WebMethod(operationName = \"GetLegislationRange\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRange\")\n @WebResult(name = \"GetLegislationRangeResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRange\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRange\")\n @ResponseWrapper(localName = \"GetLegislationRangeResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangeResponse\")\n public LegislationIndexRange getLegislationRange(\n @WebParam(name = \"Range\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationIndexRangeSet range);\n\n /**\n * \n * @param legislationId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetail\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetail\")\n @WebResult(name = \"GetLegislationDetailResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetail\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetail\")\n @ResponseWrapper(localName = \"GetLegislationDetailResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailResponse\")\n public LegislationDetail getLegislationDetail(\n @WebParam(name = \"LegislationId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer legislationId);\n\n /**\n * \n * @param number\n * @param documentType\n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetailByDescription\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetailByDescription\")\n @WebResult(name = \"GetLegislationDetailByDescriptionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetailByDescription\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescription\")\n @ResponseWrapper(localName = \"GetLegislationDetailByDescriptionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescriptionResponse\")\n public LegislationDetail getLegislationDetailByDescription(\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"Number\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer number,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @return\n * returns gov.ga.legis.legislation.ArrayOfSubject\n */\n @WebMethod(operationName = \"GetTitles\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetTitles\")\n @WebResult(name = \"GetTitlesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetTitles\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitles\")\n @ResponseWrapper(localName = \"GetTitlesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitlesResponse\")\n public ArrayOfSubject getTitles();\n\n}", "@WebService(targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", name = \"ZSDRFC_AMC_CONTRACT_VALIDATION\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface ZSDRFCAMCCONTRACTVALIDATION {\n\n @WebMethod(operationName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", action = \"urn:sap-com:document:sap:rfc:functions:ZSDRFC_AMC_CONTRACT_VALIDATION:ZSDRFC_AMC_CONTRACT_VALIDATIONRequest\")\n @RequestWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATION_Type\")\n @ResponseWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATIONResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATIONResponse\")\n public void zsdrfcAMCCONTRACTVALIDATION(\n @WebParam(name = \"CHASSIS_NO\", targetNamespace = \"\")\n java.lang.String chassisNO,\n @WebParam(name = \"CHASSIS_PL\", targetNamespace = \"\")\n java.lang.String chassisPL,\n @WebParam(name = \"CONTRACT_NO\", targetNamespace = \"\")\n java.lang.String contractNO,\n @WebParam(name = \"CRM_SALE_DATE\", targetNamespace = \"\")\n java.lang.String crmSALEDATE,\n @WebParam(mode = WebParam.Mode.INOUT, name = \"IT_AMC\", targetNamespace = \"\")\n javax.xml.ws.Holder<TABLEOFZSDAMCLINEITEM> itAMC,\n @WebParam(name = \"KMS\", targetNamespace = \"\")\n int kms,\n @WebParam(mode = WebParam.Mode.OUT, name = \"REMARKS\", targetNamespace = \"\")\n javax.xml.ws.Holder<java.lang.String> remarks\n );\n}", "@WebService(name = \"RPCLitSWA\", targetNamespace = \"http://org/apache/axis2/jaxws/proxy/rpclitswa\", wsdlLocation = \"RPCLitSWA.wsdl\")\r\n@SOAPBinding(style = Style.RPC)\r\npublic interface RPCLitSWA {\r\n\r\n\r\n /**\r\n * \r\n * @param request\r\n * @param dummyAttachmentINOUT\r\n * @param dummyAttachmentOUT\r\n * @param response\r\n * @param dummyAttachmentIN\r\n */\r\n @WebMethod\r\n public void echo(\r\n @WebParam(name = \"request\", partName = \"request\")\r\n String request,\r\n @WebParam(name = \"dummyAttachmentIN\", partName = \"dummyAttachmentIN\")\r\n String dummyAttachmentIN,\r\n @WebParam(name = \"dummyAttachmentINOUT\", mode = Mode.INOUT, partName = \"dummyAttachmentINOUT\")\r\n Holder<DataHandler> dummyAttachmentINOUT,\r\n @WebParam(name = \"response\", mode = Mode.OUT, partName = \"response\")\r\n Holder<String> response,\r\n @WebParam(name = \"dummyAttachmentOUT\", mode = Mode.OUT, partName = \"dummyAttachmentOUT\")\r\n Holder<String> dummyAttachmentOUT);\r\n\r\n}", "@WebService(name = \"DocumentValidationSchemaService\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\")\n@XmlSeeAlso({\n pl.softfly.integ.doc.entity.ObjectFactory.class,\n pl.softfly.integ.endpoint.entity.ObjectFactory.class,\n pl.softfly.integ.entity.ObjectFactory.class,\n pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ObjectFactory.class,\n pl.softfly.integ.shipment.entity.ObjectFactory.class\n})\npublic interface DocumentValidationSchemaService {\n\n\n /**\n * @param arg0\n * @return returns pl.softfly.integ.doc.entity.DocumentHeader\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ValidateResponse\")\n public DocumentHeader validate(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n DocumentHeader arg0);\n\n}", "@WebService(name = \"wsFoo\", targetNamespace = \"http://helloworldws.yv84.me/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface WsFoo {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEcho\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEcho\")\n @ResponseWrapper(localName = \"getEchoResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEchoResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getEchoRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getEchoResponse\")\n public String getEcho(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetListResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getListRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getListResponse\")\n public List<String> getList();\n\n}", "@WebService(name = \"BillPayServiceAT\", targetNamespace = \"http://jaxws.billpay.wsat.edu.unf.com/\")\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BillPayServiceAT {\r\n\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @throws BillPayException\r\n */\r\n @WebMethod\r\n public void paybillamount(\r\n @WebParam(name = \"arg0\", partName = \"arg0\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", partName = \"arg1\")\r\n long arg1)\r\n throws BillPayException\r\n ;\r\n\r\n}", "@WebService(targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/requester\", name = \"ConnectionRequesterPort\")\n@XmlSeeAlso({net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.ObjectFactory.class, net.es.nsi.lib.soap.gen.saml.assertion.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmlenc.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmldsig.ObjectFactory.class})\npublic interface ConnectionRequesterPort {\n\n /**\n * This reserveFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a reserve failure. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveFailed\")\n @RequestWrapper(localName = \"reserveFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This querySummaryConfirmed message is sent from the target NSA to\n * requesting NSA as an indication of a successful querySummary\n * operation. This is in response to an original querySummary request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/querySummaryConfirmed\")\n @RequestWrapper(localName = \"querySummaryConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void querySummaryConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This provisionConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful provision operation.\n * This is in response to an original provision request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/provisionConfirmed\")\n @RequestWrapper(localName = \"provisionConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void provisionConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * The error message is sent from a Provider NSA to Requester\n * NSA as an indication of the occurence of an error condition.\n * This is in response to an original request from the associated\n * Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/error\")\n @RequestWrapper(localName = \"error\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericErrorType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void error(\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This terminateConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful terminate operation.\n * This is in response to an original terminate request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/terminateConfirmed\")\n @RequestWrapper(localName = \"terminateConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void terminateConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This releaseConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful release operation.\n * This is in response to an original release request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/releaseConfirmed\")\n @RequestWrapper(localName = \"releaseConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void releaseConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous error message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/errorEvent\")\n @RequestWrapper(localName = \"errorEvent\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ErrorEventType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void errorEvent(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"event\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.EventEnumType event,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"additionalInfo\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.TypeValuePairListType additionalInfo,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/dataPlaneStateChange\")\n @RequestWrapper(localName = \"dataPlaneStateChange\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStateChangeRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void dataPlaneStateChange(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"dataPlaneStatus\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStatusType dataPlaneStatus,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveAbortConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveAbort.\n * This is in response to an original reserveAbort request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveAbortConfirmed\")\n @RequestWrapper(localName = \"reserveAbortConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveAbortConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/messageDeliveryTimeout\")\n @RequestWrapper(localName = \"messageDeliveryTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.MessageDeliveryTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void messageDeliveryTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"correlationId\", targetNamespace = \"\")\n java.lang.String correlationId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a modify failure. This\n * is in response to an original modify request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitFailed\")\n @RequestWrapper(localName = \"reserveCommitFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryNotificationConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryNotification\n * operation. This is in response to an original queryNotification request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryNotificationConfirmed\")\n @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n @WebResult(name = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", partName = \"acknowledgment\")\n public net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType queryNotificationConfirmed(\n @WebParam(partName = \"queryNotificationConfirmed\", name = \"queryNotificationConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryNotificationConfirmedType queryNotificationConfirmed,\n @WebParam(partName = \"header\", mode = WebParam.Mode.INOUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryResultConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryResult operation.\n * This is in response to an original queryResult request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryResultConfirmed\")\n @RequestWrapper(localName = \"queryResultConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryResultConfirmed(\n @WebParam(name = \"result\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultResponseType> result,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveCommit request.\n * This is in response to an original reserveCommit request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitConfirmed\")\n @RequestWrapper(localName = \"reserveCommitConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveTimeout\")\n @RequestWrapper(localName = \"reserveTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"timeoutValue\", targetNamespace = \"\")\n int timeoutValue,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reservation. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveConfirmed\")\n @RequestWrapper(localName = \"reserveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"globalReservationId\", targetNamespace = \"\")\n java.lang.String globalReservationId,\n @WebParam(name = \"description\", targetNamespace = \"\")\n java.lang.String description,\n @WebParam(name = \"criteria\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReservationConfirmCriteriaType criteria,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryRecursiveConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryRecursive\n * operation. This is in response to an original queryRecursive request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryRecursiveConfirmed\")\n @RequestWrapper(localName = \"queryRecursiveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryRecursiveConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n}", "@WebService(name = \"infra_PortType\", targetNamespace = PepConfig.TARGET_NAMESPACE)\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n sk.gov.ekolky.estamp.fo10.nominal.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.aponet.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.assessment.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.cashdesk.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.infra.ObjectFactory.class,\n sk.gov.ekolky.estamp.xsd10.ObjectFactory.class,\n com.jump_soft.estamp.fo10.common.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.estamp.ObjectFactory.class\n})\npublic interface InfraPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.IncidentRegisterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"incidentRegisterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public IncidentRegisterResponse incidentRegister(\n @WebParam(name = \"incidentRegisterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n IncidentRegisterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.DeviceStateCheckResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"deviceStateCheckResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public DeviceStateCheckResponse deviceStateCheck(\n @WebParam(name = \"deviceStateCheckRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n DeviceStateCheckRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListParameterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listParameterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListParameterResponse listParameter(\n @WebParam(name = \"listParameterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListParameterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListServiceResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listServiceResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListServiceResponse listService(\n @WebParam(name = \"listServiceRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListServiceRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeeResponse listFee(\n @WebParam(name = \"listFeeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListOfficeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listOfficeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListOfficeResponse listOffice(\n @WebParam(name = \"listOfficeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListOfficeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListSWPResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listSWPResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListSWPResponse listSWP(\n @WebParam(name = \"listSWPRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListSWPRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListCountryResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listCountryResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListCountryResponse listCountry(\n @WebParam(name = \"listCountryRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListCountryRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListDeviceInfoResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listDeviceInfoResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListDeviceInfoResponse listDeviceInfo(\n @WebParam(name = \"listDeviceInfoRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListDeviceInfoRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeDevicesResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeDevicesResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeDevicesResponse listFeDevices(\n @WebParam(name = \"listFeDevicesRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeDevicesRequest parameters)\n throws BloxFaultMessage\n ;\n\n}", "@WebService(name = \"StudentWS\", targetNamespace = \"http://ws/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface StudentWS {\n\n\n /**\n * \n * @param studentId\n * @param courseId\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"registerToCourse\", targetNamespace = \"http://ws/\", className = \"ws.RegisterToCourse\")\n @Action(input = \"http://ws/StudentWS/registerToCourse\")\n public void registerToCourse(\n @WebParam(name = \"courseId\", targetNamespace = \"\")\n Long courseId,\n @WebParam(name = \"studentId\", targetNamespace = \"\")\n Long studentId);\n\n /**\n * \n * @param username\n * @return\n * returns ws.Student\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStudent\", targetNamespace = \"http://ws/\", className = \"ws.GetStudent\")\n @ResponseWrapper(localName = \"getStudentResponse\", targetNamespace = \"http://ws/\", className = \"ws.GetStudentResponse\")\n @Action(input = \"http://ws/StudentWS/getStudentRequest\", output = \"http://ws/StudentWS/getStudentResponse\")\n public Student getStudent(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username);\n\n /**\n * \n * @param firstName\n * @param lastName\n * @param password\n * @param city\n * @param streetNo\n * @param street\n * @param email\n * @param username\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"addStudent\", targetNamespace = \"http://ws/\", className = \"ws.AddStudent\")\n @Action(input = \"http://ws/StudentWS/addStudent\")\n public void addStudent(\n @WebParam(name = \"firstName\", targetNamespace = \"\")\n String firstName,\n @WebParam(name = \"lastName\", targetNamespace = \"\")\n String lastName,\n @WebParam(name = \"email\", targetNamespace = \"\")\n String email,\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"city\", targetNamespace = \"\")\n String city,\n @WebParam(name = \"street\", targetNamespace = \"\")\n String street,\n @WebParam(name = \"streetNo\", targetNamespace = \"\")\n String streetNo);\n\n /**\n * \n * @return\n * returns java.util.List<ws.Student>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllStudents\", targetNamespace = \"http://ws/\", className = \"ws.GetAllStudents\")\n @ResponseWrapper(localName = \"getAllStudentsResponse\", targetNamespace = \"http://ws/\", className = \"ws.GetAllStudentsResponse\")\n @Action(input = \"http://ws/StudentWS/getAllStudentsRequest\", output = \"http://ws/StudentWS/getAllStudentsResponse\")\n public List<Student> getAllStudents();\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"userExists\", targetNamespace = \"http://ws/\", className = \"ws.UserExists\")\n @ResponseWrapper(localName = \"userExistsResponse\", targetNamespace = \"http://ws/\", className = \"ws.UserExistsResponse\")\n @Action(input = \"http://ws/StudentWS/userExistsRequest\", output = \"http://ws/StudentWS/userExistsResponse\")\n public boolean userExists(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param studentId\n * @param courseId\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"confirmRegisterToCourse\", targetNamespace = \"http://ws/\", className = \"ws.ConfirmRegisterToCourse\")\n @Action(input = \"http://ws/StudentWS/confirmRegisterToCourse\")\n public void confirmRegisterToCourse(\n @WebParam(name = \"studentId\", targetNamespace = \"\")\n Long studentId,\n @WebParam(name = \"courseId\", targetNamespace = \"\")\n Long courseId);\n\n /**\n * \n * @param studentId\n * @return\n * returns java.util.List<ws.StudentCourse>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCourseByStudent\", targetNamespace = \"http://ws/\", className = \"ws.GetCourseByStudent\")\n @ResponseWrapper(localName = \"getCourseByStudentResponse\", targetNamespace = \"http://ws/\", className = \"ws.GetCourseByStudentResponse\")\n @Action(input = \"http://ws/StudentWS/getCourseByStudentRequest\", output = \"http://ws/StudentWS/getCourseByStudentResponse\")\n public List<StudentCourse> getCourseByStudent(\n @WebParam(name = \"studentId\", targetNamespace = \"\")\n Long studentId);\n\n /**\n * \n * @return\n * returns java.util.List<ws.StudentCourse>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllStudentCourse\", targetNamespace = \"http://ws/\", className = \"ws.GetAllStudentCourse\")\n @ResponseWrapper(localName = \"getAllStudentCourseResponse\", targetNamespace = \"http://ws/\", className = \"ws.GetAllStudentCourseResponse\")\n @Action(input = \"http://ws/StudentWS/getAllStudentCourseRequest\", output = \"http://ws/StudentWS/getAllStudentCourseResponse\")\n public List<StudentCourse> getAllStudentCourse();\n\n}", "@WebService(targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", name = \"PasswordGeneratorWSServer\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface PasswordGeneratorWSServer {\n\n @WebMethod(action = \"urn:GeneratePasswordAction\")\n @RequestWrapper(localName = \"generatePassword\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePassword\")\n @ResponseWrapper(localName = \"generatePasswordResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePasswordResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String generatePassword(\n @WebParam(name = \"length\", targetNamespace = \"\")\n java.lang.String length\n );\n\n @WebMethod(action = \"urn:VersionAction\")\n @RequestWrapper(localName = \"version\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.Version\")\n @ResponseWrapper(localName = \"versionResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.VersionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String version();\n}", "@WebService(name = \"SendMTPortType\", targetNamespace = \"http://sms.neo\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SendMTPortType {\n\n\n /**\n * \n * @param rtype\n * @param timeend\n * @param password\n * @param receiver\n * @param repeat\n * @param brandname\n * @param timestart\n * @param loaisp\n * @param content\n * @param timesend\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendMessage\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendMessage\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessage\")\n @ResponseWrapper(localName = \"sendMessageResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessageResponse\")\n public String sendMessage(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"repeat\", targetNamespace = \"http://sms.neo\")\n Integer repeat,\n @WebParam(name = \"rtype\", targetNamespace = \"http://sms.neo\")\n Integer rtype,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"timestart\", targetNamespace = \"http://sms.neo\")\n String timestart,\n @WebParam(name = \"timeend\", targetNamespace = \"http://sms.neo\")\n String timeend,\n @WebParam(name = \"timesend\", targetNamespace = \"http://sms.neo\")\n String timesend,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromServiceNumber\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromServiceNumber\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumber\")\n @ResponseWrapper(localName = \"sendFromServiceNumberResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumberResponse\")\n public String sendFromServiceNumber(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromBrandname\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromBrandname\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandname\")\n @ResponseWrapper(localName = \"sendFromBrandnameResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandnameResponse\")\n public String sendFromBrandname(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param cardSerial\n * @param cardCode\n * @param issure\n * @param username\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:useCard\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"useCard\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCard\")\n @ResponseWrapper(localName = \"useCardResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCardResponse\")\n public String useCard(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"issure\", targetNamespace = \"http://sms.neo\")\n String issure,\n @WebParam(name = \"cardCode\", targetNamespace = \"http://sms.neo\")\n String cardCode,\n @WebParam(name = \"cardSerial\", targetNamespace = \"http://sms.neo\")\n String cardSerial);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param loaisp\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendSMS\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendSMS\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMS\")\n @ResponseWrapper(localName = \"sendSMSResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMSResponse\")\n public String sendSMS(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n}", "@WebService(name = \"HelloService\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface HelloService {\r\n\r\n\r\n /**\r\n * \r\n * @param name\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"say\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.Say\")\r\n @ResponseWrapper(localName = \"sayResponse\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.SayResponse\")\r\n public String say(\r\n @WebParam(name = \"name\", targetNamespace = \"\")\r\n String name);\r\n\r\n}", "@WebService(name = \"SharesBrokeringSystem\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharesBrokeringSystem {\n\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"sellShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SellShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/sellShares\")\n public void sellShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"companyList\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyList\")\n @ResponseWrapper(localName = \"companyListResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyListResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListResponse\")\n public List<Company> companyList();\n\n /**\n * \n * @param company\n * @return\n * returns org.me.sharesbrokeringsystem.Company\n * @throws CertificateException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"moreCompanyInfo\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfo\")\n @ResponseWrapper(localName = \"moreCompanyInfoResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfoResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoResponse\", fault = {\n @FaultAction(className = CertificateException_Exception.class, value = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfo/Fault/CertificateException\")\n })\n public Company moreCompanyInfo(\n @WebParam(name = \"_company\", targetNamespace = \"\")\n Company company)\n throws CertificateException_Exception\n ;\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns org.me.sharesbrokeringsystem.Client\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logIn\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogIn\")\n @ResponseWrapper(localName = \"logInResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogInResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInResponse\")\n public Client logIn(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param currentTrades\n * @return\n * returns org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompanies\")\n @ResponseWrapper(localName = \"updateCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesResponse\")\n public org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return updateCompanies(\n @WebParam(name = \"_currentTrades\", targetNamespace = \"\")\n org.me.sharesbrokeringsystem.UpdateCompanies.CurrentTrades currentTrades);\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"signUp\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUp\")\n @ResponseWrapper(localName = \"signUpResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUpResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpResponse\")\n public int signUp(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param client\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logOut\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOut\")\n @ResponseWrapper(localName = \"logOutResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOutResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutResponse\")\n public int logOut(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client);\n\n /**\n * \n * @param amount\n * @param client\n * @param currency\n * @return\n * returns double\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"depositAmount\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmount\")\n @ResponseWrapper(localName = \"depositAmountResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmountResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountResponse\")\n public double depositAmount(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"amount\", targetNamespace = \"\")\n double amount,\n @WebParam(name = \"currency\", targetNamespace = \"\")\n String currency);\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"buyShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.BuyShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/buyShares\")\n public void buyShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompanies\")\n @ResponseWrapper(localName = \"getCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesResponse\")\n public List<Company> getCompanies();\n\n}", "@WebService(targetNamespace = \"http://ven.ws.pms.dhcc.com/\", name = \"OrderStateWServiceInterface\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\npublic interface OrderStateWServiceInterface {\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult deliver(\r\n @WebParam(partName = \"deliveritms\", name = \"deliveritms\")\r\n VenDeliveritmArray deliveritms\r\n );\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult getVenInc(\r\n @WebParam(partName = \"venIncWeb\", name = \"venIncWeb\")\r\n VenIncWeb venIncWeb\r\n );\r\n\r\n @WebResult(name = \"orderWebVos\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"orderWebVos\")\r\n @WebMethod\r\n public OrderWebVoArray listOrderWS(\r\n @WebParam(partName = \"passWord\", name = \"passWord\")\r\n java.lang.String passWord,\r\n @WebParam(partName = \"userName\", name = \"userName\")\r\n java.lang.String userName\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"return\")\r\n @WebMethod\r\n public OperateResult recievedMsg(\r\n @WebParam(partName = \"orderId\", name = \"orderId\")\r\n long orderId\r\n );\r\n}", "@WebService(targetNamespace = \"http://tempuri.org/\", name = \"WebService1Soap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface WebService1Soap {\r\n\r\n @WebResult(name = \"SendMessageResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"SendMessage\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessage\")\r\n @WebMethod(operationName = \"SendMessage\", action = \"http://tempuri.org/SendMessage\")\r\n @ResponseWrapper(localName = \"SendMessageResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessageResponse\")\r\n public java.lang.String sendMessage(\r\n @WebParam(name = \"strConnectorName\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strConnectorName,\r\n @WebParam(name = \"strDisServerHost\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strDisServerHost,\r\n @WebParam(name = \"strMessage\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessage,\r\n @WebParam(name = \"strMessageType\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageType,\r\n @WebParam(name = \"strMessageSchema\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageSchema,\r\n @WebParam(name = \"strNull\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strNull\r\n );\r\n}", "@WebService(name = \"BilesikKutukSorgulaKimlikNoServis\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BilesikKutukSorgulaKimlikNoServis {\n\n\n /**\n * \n * @param kriterListesi\n * @return\n * returns services.kps.bilesikkutuk.BilesikKutukBilgileriSonucu\n */\n @WebMethod(operationName = \"Sorgula\", action = \"http://kps.nvi.gov.tr/2017/08/01/BilesikKutukSorgulaKimlikNoServis/Sorgula\")\n @WebResult(name = \"SorgulaResult\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n @RequestWrapper(localName = \"Sorgula\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.Sorgula\")\n @ResponseWrapper(localName = \"SorgulaResponse\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.SorgulaResponse\")\n public BilesikKutukBilgileriSonucu sorgula(\n @WebParam(name = \"kriterListesi\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n ArrayOfBilesikKutukSorgulaKimlikNoSorguKriteri kriterListesi);\n\n}", "@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService\", name = \"RoutePointConnectionService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.routepointconnectionservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface RoutePointConnectionService {\r\n\r\n @WebMethod(operationName = \"RoutePointRetrieve\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/RoutePointRetrieve\")\r\n public void routePointRetrieve(\r\n @WebParam(partName = \"parameters\", name = \"RoutePointRetrieveRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RoutePointRetrieveRequest parameters\r\n ) throws RoutePointRetrieveException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"RouteResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"result\")\r\n @WebMethod(operationName = \"Route\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/Route\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteResponse route(\r\n @WebParam(partName = \"parameters\", name = \"RouteRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteRequest parameters\r\n ) throws RouteException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GiveMediaTreatmentResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GiveMediaTreatment\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GiveMediaTreatment\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentResponse giveMediaTreatment(\r\n @WebParam(partName = \"parameters\", name = \"GiveMediaTreatmentRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentRequest parameters\r\n ) throws GiveMediaTreatmentException, SessionNotCreatedException;\r\n}", "@WebService(name = \"publish_portype\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n bc.intra.middleware.api.schema.fault.ObjectFactory.class,\n bc.intra.middleware.api.schema.pubsub.ObjectFactory.class,\n bc.intra.middleware.api.services.pubsub.push.ObjectFactory.class\n})\npublic interface PublishPortype {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns bc.intra.middleware.api.services.pubsub.push.PublishResponseType\n * @throws PublishFaultMessage\n */\n @WebMethod(operationName = \"Publish\", action = \"http://www.proximus.com/middleware/services/pubsub/Publish\")\n @WebResult(name = \"PublishResponse\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n public PublishResponseType publish(\n @WebParam(name = \"PublishRequest\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n PublishRequestType parameters)\n throws PublishFaultMessage\n ;\n\n}", "@WebService(name = \"GetAllProductsSoap\", targetNamespace = \"http://tempuri.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetAllProductsSoap {\n\n\n /**\n * \n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetAllProductsList\", action = \"http://tempuri.org/GetAllProductsList\")\n @WebResult(name = \"GetAllProductsListResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetAllProductsList\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAllProductsList\")\n @ResponseWrapper(localName = \"GetAllProductsListResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAllProductsListResponse\")\n public ArrayOfProductClass getAllProductsList();\n\n /**\n * \n * @param serviceid\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetProductsByServiceID\", action = \"http://tempuri.org/GetProductsByServiceID\")\n @WebResult(name = \"GetProductsByServiceIDResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductsByServiceID\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByServiceID\")\n @ResponseWrapper(localName = \"GetProductsByServiceIDResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByServiceIDResponse\")\n public ArrayOfProductClass getProductsByServiceID(\n @WebParam(name = \"serviceid\", targetNamespace = \"http://tempuri.org/\")\n String serviceid);\n\n /**\n * \n * @param zip\n * @param serviceid\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetProductsByZipAndServiceID\", action = \"http://tempuri.org/GetProductsByZipAndServiceID\")\n @WebResult(name = \"GetProductsByZipAndServiceIDResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductsByZipAndServiceID\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByZipAndServiceID\")\n @ResponseWrapper(localName = \"GetProductsByZipAndServiceIDResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByZipAndServiceIDResponse\")\n public ArrayOfProductClass getProductsByZipAndServiceID(\n @WebParam(name = \"serviceid\", targetNamespace = \"http://tempuri.org/\")\n String serviceid,\n @WebParam(name = \"zip\", targetNamespace = \"http://tempuri.org/\")\n int zip);\n\n /**\n * \n * @param zip\n * @param stateCode\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetEnterpriseProducts\", action = \"http://tempuri.org/GetEnterpriseProducts\")\n @WebResult(name = \"GetEnterpriseProductsResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetEnterpriseProducts\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetEnterpriseProducts\")\n @ResponseWrapper(localName = \"GetEnterpriseProductsResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetEnterpriseProductsResponse\")\n public ArrayOfProductClass getEnterpriseProducts(\n @WebParam(name = \"state_code\", targetNamespace = \"http://tempuri.org/\")\n String stateCode,\n @WebParam(name = \"zip\", targetNamespace = \"http://tempuri.org/\")\n int zip);\n\n /**\n * \n * @return\n * returns org.tempuri.ArrayOfProductRate\n */\n @WebMethod(operationName = \"GetProductRates\", action = \"http://tempuri.org/GetProductRates\")\n @WebResult(name = \"GetProductRatesResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductRates\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductRates\")\n @ResponseWrapper(localName = \"GetProductRatesResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductRatesResponse\")\n public ArrayOfProductRate getProductRates();\n\n}", "@WebService(name = \"HandSoapWeb\", targetNamespace = \"http://soapmanagement.jpdc.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HandSoapWeb {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSoapsNyBrand\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrand\")\n @ResponseWrapper(localName = \"getSoapsNyBrandResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrandResponse\")\n public List<HandSoap> getSoapsNyBrand(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"addNewSoap\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoap\")\n @ResponseWrapper(localName = \"addNewSoapResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoapResponse\")\n public void addNewSoap(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n HandSoap arg0);\n\n /**\n * \n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSoaps\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoaps\")\n @ResponseWrapper(localName = \"getAllSoapsResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoapsResponse\")\n public List<HandSoap> getAllSoaps();\n\n}", "@WebService(name = \"EiccToKgdUniversalPortType\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EiccToKgdUniversalPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns ResponseMessage\n * @throws SendMessageException\n */\n @WebMethod(operationName = \"SendMessage\", action = \"http://10.8.255.50:1274/EiccToKgdUniversal/SendMessage\")\n @WebResult(name = \"sendMessageResponse\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n public ResponseMessage sendMessage(\n @WebParam(name = \"sendMessageRequest\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n RequestMessage parameters)\n throws SendMessageException\n ;\n\n}", "@WebService(targetNamespace = \"http://www.example.org/s2/\", name = \"s2\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface S2 {\n\n @WebMethod(operationName = \"S2Operation\", action = \"http://www.example.org/s2/S2Operation\")\n @WebResult(name = \"FulfillmentResponse\", targetNamespace = \"http://www.example.org/s2/\", partName = \"parameters\")\n public FulfillmentResponse s2Operation(\n @WebParam(partName = \"parameters\", name = \"FulfillmentRequest\", targetNamespace = \"http://www.example.org/s2/\")\n FulfillmentRequest parameters\n );\n}", "@WebService\npublic interface MessageService extends Serializable{\n\n /**\n * Sends messages to registered patients\n *\n * @param messages List of messages to be sent\n */\n @WebMethod\n public void sendPatientMessages(@WebParam(name=\"messages\") PatientMessage[] messages);\n\t\n /**\n * Sends a message to a registered patient\n *\n * @param messageId Id of the message to send\n * @param personalInfo List of name value pairs containing patient information\n * @param patientNumber Patient mobile contact number\n * @param patientNumberType Type of contact number. Possible values include PERSONAL, SHARED\n * @param langCode Code representing preferred communication language\n * @param mediaType Patient's preferred communication medium\n * @param notificationType Type of message to send to patient\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @param recipientId String unique identifier of the recipient\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendPatientMessage(@WebParam(name=\"messageId\") String messageId, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"personalInfo\") NameValuePair[] personalInfo, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"patientNumber\") String patientNumber, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"patientNumberType\") ContactNumberType patientNumberType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"langCode\") String langCode, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"mediaType\") MediaType mediaType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"notificationType\") Long notificationType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"startDate\")Date startDate, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"endDate\")Date endDate,\n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"recipientId\")String recipientId);\n\n /**\n * Sends a message to a registered CHPS worker\n *\n * @param messageId Id of the message to send\n * @param personalInfo List of name value pairs containing patient information\n * @param workerNumber CHPS worker's mobile contact number\n * @param patients A List of patients requiring service from CHPS worker\n * @param langCode Code representing preferred communication language\n * @param mediaType Patient's preferred communication medium\n * @param notificationType Type of message to send to patient\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendCHPSMessage(@WebParam(name=\"messageId\") String messageId, @WebParam(name=\"personalInfo\") NameValuePair[] personalInfo, @WebParam(name=\"workerNumber\") String workerNumber, @WebParam(name=\"patients\") Patient[] patients, @WebParam(name=\"langCode\") String langCode, @WebParam(name=\"mediaType\") MediaType mediaType, @WebParam(name=\"notificationType\") Long notificationType, @WebParam(name=\"startDate\")Date startDate, @WebParam(name=\"endDate\")Date endDate);\n\n /**\n * Sends a list of care defaulters to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param cares List of patient care options which have defaulters\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendDefaulterMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"cares\") Care[] cares,\n @WebParam(name = \"media\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends a list of patients within a delivery schedule to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param patients List of patients with matching delivery status\n * @param deliveryStatus Status of patient delivery. Expected values are 'Upcoming', 'Recent' and 'Overdue'\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendDeliveriesMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patients\") Patient[] patients,\n @WebParam(name = \"deliveryStatus\") String deliveryStatus,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends a list of upcoming care for a particular patient to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param patient patient due for care\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendUpcomingCaresMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patient\") Patient patient,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends an SMS message\n *\n * @param content the message to send\n * @param recipient the phone number to receive the message\n * @return\n */\n @WebMethod\n public MessageStatus sendMessage(@WebParam(name = \"content\") String content,\n @WebParam(name = \"recipient\") String recipient);\n\n /**\n * Sends multiple upcoming care messages to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param cares List of upcoming care\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendBulkCaresMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patient\") Care[] cares,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n}", "@WebService(targetNamespace = \"http://payment.services.adyen.com\", name = \"PaymentPortType\")\r\n@XmlSeeAlso({com.adyen.services.common.ObjectFactory.class, ObjectFactory.class})\r\npublic interface PaymentPortType {\r\n\r\n @WebResult(name = \"captureResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"capture\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Capture\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"captureResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CaptureResponse\")\r\n public com.adyen.services.payment.ModificationResult capture(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"refundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Refund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundResponse\")\r\n public com.adyen.services.payment.ModificationResult refund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransfer\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransferResponse\")\r\n public com.adyen.services.payment.FundTransferResult fundTransfer(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.FundTransferRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"authoriseReferralResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authoriseReferral\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferral\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseReferralResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferralResponse\")\r\n public com.adyen.services.payment.ModificationResult authoriseReferral(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refundWithData\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithData\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundWithDataResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithDataResponse\")\r\n public com.adyen.services.payment.PaymentResult refundWithData(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancel\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Cancel\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelResponse\")\r\n public com.adyen.services.payment.ModificationResult cancel(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise3d\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3D\")\r\n @WebMethod(operationName = \"authorise3d\")\r\n @ResponseWrapper(localName = \"authorise3dResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3DResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise3D(\r\n @WebParam(name = \"paymentRequest3d\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest3D paymentRequest3D\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"balanceCheck\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheck\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"balanceCheckResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheckResponse\")\r\n public com.adyen.services.payment.BalanceCheckResult balanceCheck(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.BalanceCheckRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"directdebit\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Directdebit\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"directdebitResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.DirectdebitResponse\")\r\n public com.adyen.services.payment.DirectDebitResponse2 directdebit(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.DirectDebitRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelOrRefundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancelOrRefund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelOrRefundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefundResponse\")\r\n public com.adyen.services.payment.ModificationResult cancelOrRefund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"checkFraud\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraud\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"checkFraudResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraudResponse\")\r\n public com.adyen.services.payment.PaymentResult checkFraud(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n}", "@WebService(name = \"XMXUTIL2Inmsg2\", targetNamespace = \"http://vistaevolution.va.gov\")\npublic interface XMXUTIL2Inmsg2Endpoint {\n \n \n \n /**\n * <pre>\n * \n * This RPC returns message information (Part 2).\n * \n * </pre>\n * \n * @param request -\n * \n * Domain Object that contains All Inmsg2^XMXUTIL2 input\n * Parameters\n * \n * @return XMXUTIL2Inmsg2Response -\n * \n * Domain Object that contains Inmsg2^XMXUTIL2 output data\n * \n * @throws VistaWebServiceFault\n */\n @WebMethod(action = \"XMXUTIL2Inmsg2Action\", operationName = \"XMXUTIL2Inmsg2\")\n public XMXUTIL2Inmsg2Response inmsg2(@WebParam(name = \"XMXUTIL2Inmsg2Request\") XMXUTIL2Inmsg2Request request)\n throws VistaWebServiceFault;\n}", "@WebService(targetNamespace = \"http://www.lxs.com\", name = \"INotificationServiceWs\")\r\n@XmlSeeAlso({})\r\npublic interface INotificationServiceWs {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"sendBroadcast\", targetNamespace = \"http://www.lxs.com\", className = \"com.lxs.SendBroadcast\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"sendBroadcastResponse\", targetNamespace = \"http://www.lxs.com\", className = \"com.lxs.SendBroadcastResponse\")\r\n public java.lang.String sendBroadcast(\r\n @WebParam(name = \"title\", targetNamespace = \"\")\r\n java.lang.String title,\r\n @WebParam(name = \"message\", targetNamespace = \"\")\r\n java.lang.String message,\r\n @WebParam(name = \"uri\", targetNamespace = \"\")\r\n java.lang.String uri\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"sendNotifcationToUsers\", targetNamespace = \"http://www.lxs.com\", className = \"com.lxs.SendNotifcationToUsers\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"sendNotifcationToUsersResponse\", targetNamespace = \"http://www.lxs.com\", className = \"com.lxs.SendNotifcationToUsersResponse\")\r\n public java.lang.String sendNotifcationToUsers(\r\n @WebParam(name = \"users\", targetNamespace = \"\")\r\n java.lang.String users,\r\n @WebParam(name = \"title\", targetNamespace = \"\")\r\n java.lang.String title,\r\n @WebParam(name = \"message\", targetNamespace = \"\")\r\n java.lang.String message,\r\n @WebParam(name = \"uri\", targetNamespace = \"\")\r\n java.lang.String uri\r\n );\r\n}", "@WebService(wsdlLocation=\"https://jcs.my-oraclecloudapps.com/HealthCare/HealthCarePort?WSDL\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", name=\"HealthCare\")\n@XmlSeeAlso(\n { com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.ObjectFactory.class })\npublic interface HealthCare\n{\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupResponse\")\n @ResponseWrapper(localName=\"isMedicationReadyToPickupResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickupResponse\")\n @RequestWrapper(localName=\"isMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickup\")\n @WebResult(targetNamespace=\"\")\n public boolean isMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusResponse\")\n @ResponseWrapper(localName=\"requestOrderStatusResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatusResponse\")\n @RequestWrapper(localName=\"requestOrderStatus\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatus\")\n @WebResult(targetNamespace=\"\")\n public String requestOrderStatus(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/setMedicationReadyToPickup\")\n @RequestWrapper(localName=\"setMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.SetMedicationReadyToPickup\")\n @Oneway\n public void setMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionResponse\")\n @ResponseWrapper(localName=\"loadPrescriptionResponse\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescriptionResponse\")\n @RequestWrapper(localName=\"loadPrescription\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescription\")\n @WebResult(targetNamespace=\"\")\n public String loadPrescription(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n}", "@WebService(name = \"SharedGalleryServerSOAP\", targetNamespace = \"http://SOAP.svr.tp1.sd/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharedGalleryServerSOAP {\n\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfAlbums\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbums\")\n @ResponseWrapper(localName = \"getListOfAlbumsResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbumsResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsResponse\")\n public List<String> getListOfAlbums();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfPictures\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPictures\")\n @ResponseWrapper(localName = \"getListOfPicturesResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPicturesResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesResponse\")\n public List<String> getListOfPictures(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns byte[]\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPictureData\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureData\")\n @ResponseWrapper(localName = \"getPictureDataResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureDataResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataResponse\")\n public byte[] getPictureData(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"createAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbum\")\n @ResponseWrapper(localName = \"createAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumResponse\")\n public String createAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbum\")\n @ResponseWrapper(localName = \"deleteAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumResponse\")\n public Boolean deleteAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"uploadPicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPicture\")\n @ResponseWrapper(localName = \"uploadPictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureResponse\")\n public String uploadPicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n byte[] arg2);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePicture\")\n @ResponseWrapper(localName = \"deletePictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureResponse\")\n public Boolean deletePicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n}", "@WebService(targetNamespace = \"urn:hl7-org:v3\", name = \"HL7MessageServerService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HL7MessageServerService {\n\n @WebMethod(operationName = \"HIPMessageServer\", action = \"HIPMessageServer\")\n @RequestWrapper(localName = \"HIPMessageServer\", targetNamespace = \"urn:hl7-org:v3\", className = \"org.hl7.v3.HIPMessageServer\")\n @ResponseWrapper(localName = \"HIPMessageServerResponse\", targetNamespace = \"urn:hl7-org:v3\", className = \"org.hl7.v3.HIPMessageServerResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hipMessageServer(\n @WebParam(name = \"action\", targetNamespace = \"urn:hl7-org:v3\")\n java.lang.String action,\n @WebParam(name = \"message\", targetNamespace = \"urn:hl7-org:v3\")\n java.lang.String message\n );\n}", "@WebService(name = \"TerminationCoordinatorPortType\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface TerminationCoordinatorPortType {\n\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CompleteOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Complete\")\n @Oneway\n public void completeOperation(\n @WebParam(name = \"Complete\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CloseOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Close\")\n @Oneway\n public void closeOperation(\n @WebParam(name = \"Close\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CancelOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Cancel\")\n @Oneway\n public void cancelOperation(\n @WebParam(name = \"Cancel\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n}", "@WebService(name = \"ProductoWS\", targetNamespace = \"http://ProductoWS/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ProductoWS {\n\n\n /**\n * \n * @return\n * returns java.util.List<com.udea.ws.Producto>\n */\n @WebMethod(operationName = \"ConsultarProducto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ConsultarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.ConsultarProducto\")\n @ResponseWrapper(localName = \"ConsultarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.ConsultarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/ConsultarProductoRequest\", output = \"http://ProductoWS/ProductoWS/ConsultarProductoResponse\")\n public List<Producto> consultarProducto();\n\n /**\n * \n * @param codigo\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"BuscarProducto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"BuscarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.BuscarProducto\")\n @ResponseWrapper(localName = \"BuscarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.BuscarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/BuscarProductoRequest\", output = \"http://ProductoWS/ProductoWS/BuscarProductoResponse\")\n public String buscarProducto(\n @WebParam(name = \"codigo\", targetNamespace = \"\")\n int codigo);\n\n /**\n * \n * @param descripcion\n * @param precio\n * @param stock\n * @param nombre\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ingresarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.IngresarProducto\")\n @ResponseWrapper(localName = \"ingresarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.IngresarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/ingresarProductoRequest\", output = \"http://ProductoWS/ProductoWS/ingresarProductoResponse\")\n public String ingresarProducto(\n @WebParam(name = \"nombre\", targetNamespace = \"\")\n String nombre,\n @WebParam(name = \"precio\", targetNamespace = \"\")\n double precio,\n @WebParam(name = \"stock\", targetNamespace = \"\")\n int stock,\n @WebParam(name = \"descripcion\", targetNamespace = \"\")\n String descripcion);\n\n}", "@WebService(name = \"AnswerWS\", targetNamespace = \"http://AnswerModel/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface AnswerWS {\n\n\n /**\n * \n * @param qid\n * @return\n * returns java.util.List<answermodel.Answer>\n */\n @WebMethod\n @WebResult(name = \"Answer\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getAnswerByQID\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.GetAnswerByQID\")\n @ResponseWrapper(localName = \"getAnswerByQIDResponse\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.GetAnswerByQIDResponse\")\n @Action(input = \"http://AnswerModel/AnswerWS/getAnswerByQIDRequest\", output = \"http://AnswerModel/AnswerWS/getAnswerByQIDResponse\")\n public List<Answer> getAnswerByQID(\n @WebParam(name = \"qid\", targetNamespace = \"\")\n int qid);\n\n /**\n * \n * @param questionId\n * @param content\n * @param token\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"createAnswer\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.CreateAnswer\")\n @ResponseWrapper(localName = \"createAnswerResponse\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.CreateAnswerResponse\")\n @Action(input = \"http://AnswerModel/AnswerWS/createAnswerRequest\", output = \"http://AnswerModel/AnswerWS/createAnswerResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://AnswerModel/AnswerWS/createAnswer/Fault/ParseException\")\n })\n public int createAnswer(\n @WebParam(name = \"token\", targetNamespace = \"\")\n String token,\n @WebParam(name = \"question_id\", targetNamespace = \"\")\n int questionId,\n @WebParam(name = \"content\", targetNamespace = \"\")\n String content)\n throws ParseException_Exception\n ;\n\n /**\n * \n * @param stat\n * @param userid\n * @param aid\n * @param token\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"voteAnswer\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.VoteAnswer\")\n @ResponseWrapper(localName = \"voteAnswerResponse\", targetNamespace = \"http://AnswerModel/\", className = \"answermodel.VoteAnswerResponse\")\n @Action(input = \"http://AnswerModel/AnswerWS/voteAnswerRequest\", output = \"http://AnswerModel/AnswerWS/voteAnswerResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://AnswerModel/AnswerWS/voteAnswer/Fault/ParseException\")\n })\n public int voteAnswer(\n @WebParam(name = \"userid\", targetNamespace = \"\")\n int userid,\n @WebParam(name = \"aid\", targetNamespace = \"\")\n int aid,\n @WebParam(name = \"stat\", targetNamespace = \"\")\n int stat,\n @WebParam(name = \"token\", targetNamespace = \"\")\n String token)\n throws ParseException_Exception\n ;\n\n}", "@WebService(name = \"MyServ\", targetNamespace = \"http://myServ\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MyServ {\r\n\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns double\r\n */\r\n @WebMethod(operationName = \"ConvertMtoKm\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"ConvertMtoKm\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKm\")\r\n @ResponseWrapper(localName = \"ConvertMtoKmResponse\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKmResponse\")\r\n public double convertMtoKm(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n double arg0);\r\n\r\n}", "@WebService(name = \"Authentication\", targetNamespace = \"urn:authws.services.ecm.opentext.com\")\r\n@XmlSeeAlso({\r\n com.opentext.ecm.api.ObjectFactory.class,\r\n com.opentext.ecm.services.authws.ObjectFactory.class\r\n})\r\npublic interface Authentication {\r\n\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"GetResourceId\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetResourceId\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetResourceId\")\r\n @ResponseWrapper(localName = \"GetResourceIdResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetResourceIdResponse\")\r\n public String getResourceId()\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param resourceId\r\n * @param username\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"GetTicketForUser\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetTicketForUser\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetTicketForUser\")\r\n @ResponseWrapper(localName = \"GetTicketForUserResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetTicketForUserResponse\")\r\n public String getTicketForUser(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"resourceId\", targetNamespace = \"\")\r\n String resourceId)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param password\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"Authenticate\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"Authenticate\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.Authenticate\")\r\n @ResponseWrapper(localName = \"AuthenticateResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateResponse\")\r\n public String authenticate(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateCurrentUser\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateCurrentUser\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUser\")\r\n @ResponseWrapper(localName = \"AuthenticateCurrentUserResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserResponse\")\r\n public String authenticateCurrentUser()\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param code\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateCurrentUserWithCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateCurrentUserWithCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserWithCode\")\r\n @ResponseWrapper(localName = \"AuthenticateCurrentUserWithCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserWithCodeResponse\")\r\n public String authenticateCurrentUserWithCode(\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param code\r\n * @param password\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithPasswordAndCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithPasswordAndCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithPasswordAndCode\")\r\n @ResponseWrapper(localName = \"AuthenticateWithPasswordAndCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithPasswordAndCodeResponse\")\r\n public String authenticateWithPasswordAndCode(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password,\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param token\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithToken\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithToken\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithToken\")\r\n @ResponseWrapper(localName = \"AuthenticateWithTokenResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenResponse\")\r\n public String authenticateWithToken(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"token\", targetNamespace = \"\")\r\n byte[] token)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param token\r\n * @param code\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithTokenAndCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithTokenAndCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenAndCode\")\r\n @ResponseWrapper(localName = \"AuthenticateWithTokenAndCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenAndCodeResponse\")\r\n public String authenticateWithTokenAndCode(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"token\", targetNamespace = \"\")\r\n byte[] token,\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n}", "@WebService(name = \"ProductoService\", targetNamespace = \"http://ws.jwsclase2_2_1/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ProductoService {\n\n\n /**\n * \n * @return\n * returns jwsclase2_2_2.wsresponse.Producto\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProducto\", targetNamespace = \"http://ws.jwsclase2_2_1/\", className = \"jwsclase2_2_2.wsresponse.GetProducto\")\n @ResponseWrapper(localName = \"getProductoResponse\", targetNamespace = \"http://ws.jwsclase2_2_1/\", className = \"jwsclase2_2_2.wsresponse.GetProductoResponse\")\n @Action(input = \"http://ws.jwsclase2_2_1/ProductoService/getProductoRequest\", output = \"http://ws.jwsclase2_2_1/ProductoService/getProductoResponse\")\n public Producto getProducto();\n\n}", "@WebService(targetNamespace = \"http://services.bookservice.atatorus.fr/\", name = \"Hello\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Hello {\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.Hello_Type\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"nom\", targetNamespace = \"\")\n java.lang.String nom\n );\n}", "@WebService(name = \"PopuplistDtoServicewsEndpoint\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n@XmlSeeAlso({\n ObjectFactoryPopuplist.class\n})\npublic interface PopuplistDtoServicewsEndpoint {\n\n\n /**\n * \n * @param popuplistDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.PopuplistDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"updatePopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdatePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"updatePopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdatePopuplistDtoServicewsResponse\")\n public PopuplistDto updatePopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n /**\n * \n * @param entite\n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.PopuplistDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"searchPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPopuplistDtoServicews\")\n @ResponseWrapper(localName = \"searchPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPopuplistDtoServicewsResponse\")\n public List<PopuplistDto> searchPopuplistDtoServicews(\n @WebParam(name = \"entite\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n String entite);\n\n /**\n * \n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.PopuplistDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"getAllPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllPopuplistDtoServicews\")\n @ResponseWrapper(localName = \"getAllPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllPopuplistDtoServicewsResponse\")\n public List<PopuplistDto> getAllPopuplistDtoServicews();\n\n /**\n * \n * @param popuplistDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.PopuplistDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"createPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreatePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"createPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreatePopuplistDtoServicewsResponse\")\n public PopuplistDto createPopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n /**\n * \n * @param popuplistDto\n */\n @WebMethod\n @RequestWrapper(localName = \"deletePopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeletePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"deletePopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeletePopuplistDtoServicewsResponse\")\n public void deletePopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n}", "@WebService(targetNamespace = \"http://www.pm.company.com/service/Pawel/\", name = \"Pawel\")\n@XmlSeeAlso({com.company.pm.schema.pawelschema.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface Pawel {\n\n @WebResult(name = \"firstOperationResponse\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\", partName = \"firstOperationResponse\")\n @WebMethod(operationName = \"FirstOperation\", action = \"http://www.pm.company.com/service/Pawel/FirstOperation\")\n public com.company.pm.schema.pawelschema.FirstOperationResponseType firstOperation(\n @WebParam(partName = \"firstOperationRequest\", name = \"firstOperationRequest\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\")\n com.company.pm.schema.pawelschema.FirstOperationRequestType firstOperationRequest\n );\n}", "@WebService(targetNamespace = \"http://cxf.poc.ideo.com/\", name = \"OperationService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface OperationService {\n\n @WebResult(name = \"additionResponse\", targetNamespace = \"http://cxf.poc.ideo.com/\", partName = \"additionResponse\")\n @WebMethod\n public AdditionResponse addition(\n @WebParam(partName = \"additionRequest\", name = \"additionRequest\", targetNamespace = \"http://cxf.poc.ideo.com/\")\n AdditionRequest additionRequest\n );\n}", "@WebService(name = \"WebServiceEntry\", targetNamespace = \"http://ws.adapter.bsoft.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface WebServiceEntry {\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String invoke(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") StringArray arg4)\n\t\t\tthrows Exception_Exception;\n\n\t/**\n * \n */\n\t@WebMethod\n\tpublic void startWs();\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String transportData(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") int arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows Exception_Exception;\n\n}", "@WebService(targetNamespace = \"http://demo.cxf.com/\", name = \"SampleService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface SampleService {\n\n @WebMethod\n @RequestWrapper(localName = \"serviceMethod\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethod\")\n @ResponseWrapper(localName = \"serviceMethodResponse\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethodResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String serviceMethod();\n}", "@WebService(name = \"GetUser\", targetNamespace = \"http://Eshan/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetUser {\n\n\n /**\n * \n * @param userID\n * @return\n * returns java.util.List<java.lang.Object>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUser_Type\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUserResponse\")\n @Action(input = \"http://Eshan/GetUser/getUserRequest\", output = \"http://Eshan/GetUser/getUserResponse\")\n public List<Object> getUser(\n @WebParam(name = \"UserID\", targetNamespace = \"\")\n int userID);\n\n}", "@WebService(name = \"AppWebService\", targetNamespace = \"http://pingan.cn/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface AppWebService {\n\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceCompareResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceCompare\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompare\")\n @ResponseWrapper(localName = \"faceCompareResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompareResponse\")\n public String faceCompare(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getReturngoodsResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getReturngoods\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoods\")\n @ResponseWrapper(localName = \"getReturngoodsResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoodsResponse\")\n public String getReturngoods(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/boundBankcard\")\n @WebResult(name = \"boundBankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"boundBankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcard\")\n @ResponseWrapper(localName = \"boundBankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcardResponse\")\n public String boundBankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/returnBtvOrder\")\n @WebResult(name = \"returnBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"returnBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrder\")\n @ResponseWrapper(localName = \"returnBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrderResponse\")\n public String returnBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"bankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"bankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Bankcard\")\n @ResponseWrapper(localName = \"bankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BankcardResponse\")\n public String bankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/updateLogisticsinfo\")\n @WebResult(name = \"updateLogisticsinfoResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"updateLogisticsinfo\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfo\")\n @ResponseWrapper(localName = \"updateLogisticsinfoResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfoResponse\")\n public String updateLogisticsinfo(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceDetectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceDetect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetect\")\n @ResponseWrapper(localName = \"faceDetectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetectResponse\")\n public String faceDetect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws SQLException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getCreditline\")\n @WebResult(name = \"getCreditlineResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getCreditline\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditline\")\n @ResponseWrapper(localName = \"getCreditlineResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditlineResponse\")\n public String getCreditline(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws SQLException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"signCheckResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"signCheck\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheck\")\n @ResponseWrapper(localName = \"signCheckResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheckResponse\")\n public String signCheck(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansSelect\")\n @WebResult(name = \"repayPlansSelectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansSelect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelect\")\n @ResponseWrapper(localName = \"repayPlansSelectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelectResponse\")\n public String repayPlansSelect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansQuery\")\n @WebResult(name = \"repayPlansQueryResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansQuery\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQuery\")\n @ResponseWrapper(localName = \"repayPlansQueryResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQueryResponse\")\n public String repayPlansQuery(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"queryPhoneZHHSResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"queryPhoneZHHS\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHS\")\n @ResponseWrapper(localName = \"queryPhoneZHHSResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHSResponse\")\n public String queryPhoneZHHS(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansTrialResult\")\n @WebResult(name = \"repayPlansTrialResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansTrial\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrial\")\n @ResponseWrapper(localName = \"repayPlansTrialResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrialResponse\")\n public String repayPlansTrial(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(operationName = \"Idcard\", action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"IdcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"Idcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Idcard\")\n @ResponseWrapper(localName = \"IdcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.IdcardResponse\")\n public String idcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrder\")\n @ResponseWrapper(localName = \"getOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrderResponse\")\n public String getOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/registerBtvOrder\")\n @WebResult(name = \"registerBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"registerBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrder\")\n @ResponseWrapper(localName = \"registerBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrderResponse\")\n public String registerBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/pubTransLog\")\n @WebResult(name = \"pubTransLogResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"pubTransLog\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLog\")\n @ResponseWrapper(localName = \"pubTransLogResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLogResponse\")\n public String pubTransLog(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n}", "@WebService(name = \"NumberGeneratorServiceSoap\", targetNamespace = \"NS_NumGen\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface NumberGeneratorServiceSoap {\n\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/primeRange\")\n @WebResult(name = \"primeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"primeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRange\")\n @ResponseWrapper(localName = \"primeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRangeResponse\")\n public String primeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/compositeRange\")\n @WebResult(name = \"compositeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"compositeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRange\")\n @ResponseWrapper(localName = \"compositeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRangeResponse\")\n public String compositeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/perfectSquaresRange\")\n @WebResult(name = \"perfectSquaresRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"perfectSquaresRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRange\")\n @ResponseWrapper(localName = \"perfectSquaresRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRangeResponse\")\n public String perfectSquaresRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/fibonacciRange\")\n @WebResult(name = \"fibonacciRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"fibonacciRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRange\")\n @ResponseWrapper(localName = \"fibonacciRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRangeResponse\")\n public String fibonacciRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @param n\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/randomNumbers\")\n @WebResult(name = \"randomNumbersResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"randomNumbers\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbers\")\n @ResponseWrapper(localName = \"randomNumbersResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbersResponse\")\n public String randomNumbers(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high,\n @WebParam(name = \"n\", targetNamespace = \"NS_NumGen\")\n int n);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/powersofTwo\")\n @WebResult(name = \"powersofTwoResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"powersofTwo\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwo\")\n @ResponseWrapper(localName = \"powersofTwoResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwoResponse\")\n public String powersofTwo(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/evenRange\")\n @WebResult(name = \"evenRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"evenRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRange\")\n @ResponseWrapper(localName = \"evenRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRangeResponse\")\n public String evenRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/oddRange\")\n @WebResult(name = \"oddRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"oddRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRange\")\n @ResponseWrapper(localName = \"oddRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRangeResponse\")\n public String oddRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/palindromeRange\")\n @WebResult(name = \"palindromeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"palindromeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRange\")\n @ResponseWrapper(localName = \"palindromeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRangeResponse\")\n public String palindromeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n}", "@WebService(name = \"BonusOperationWebService\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BonusOperationWebService {\n\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundResponse tranformFrznBonusFund(\n @WebParam(name = \"tranformFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundCompensationResponse tranformBonusFundCompensation(\n @WebParam(name = \"tranformBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundResponse tranformBonusFund(\n @WebParam(name = \"tranformBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundResponse tranformUnFrznBonusFund(\n @WebParam(name = \"tranformUnFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundCompensationResponse tranformUnFrznBonusFundCompensation(\n @WebParam(name = \"tranformUnFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundCompensationResponse tranformFrznBonusFundCompensation(\n @WebParam(name = \"tranformFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n}", "@WebService(targetNamespace = \"http://ws.jinouts.org/\", name = \"AndProxyClientRespTestWS\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface AndProxyClientRespTestWS {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testPrimitiveResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestPrimitiveResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testPrimitiveResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestPrimitiveResponseResponse\")\r\n public java.lang.String testPrimitiveResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user,\r\n @WebParam(name = \"pass\", targetNamespace = \"\")\r\n java.lang.String pass\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testComplexResponseObject\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestComplexResponseObject\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testComplexResponseObjectResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestComplexResponseObjectResponse\")\r\n public org.jinouts.ws.TestComplexResponse testComplexResponseObject(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListResponseResponse\")\r\n public java.util.List<java.lang.String> testListResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testDateResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestDateResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testDateResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestDateResponseResponse\")\r\n public javax.xml.datatype.XMLGregorianCalendar testDateResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListOfComplexResponseObject\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfComplexResponseObject\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListOfComplexResponseObjectResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfComplexResponseObjectResponse\")\r\n public java.util.List<org.jinouts.ws.TestComplexResponse> testListOfComplexResponseObject(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testArrayResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestArrayResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testArrayResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestArrayResponseResponse\")\r\n public java.util.List<java.lang.String> testArrayResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListOfObjResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfObjResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListOfObjResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfObjResponseResponse\")\r\n public java.util.List<org.jinouts.ws.MbrDetail> testListOfObjResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n}", "@WebService(name = \"GodinezLunchPort\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/wsdl/1.0/GodinezLunchWS\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface GodinezLunchWS {\r\n\r\n\r\n /**\r\n * \r\n * @param calculateDistanceRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.CalculateDistanceResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/calculateDistance\")\r\n @WebResult(name = \"calculateDistanceResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceResponse\")\r\n public CalculateDistanceResponse calculateDistance(\r\n @WebParam(name = \"calculateDistanceRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceRequest\")\r\n CalculateDistanceRequest calculateDistanceRequest);\r\n\r\n /**\r\n * \r\n * @param getNearbyPlacesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetNearbyPlacesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getNearbyPlaces\")\r\n @WebResult(name = \"getNearbyPlacesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesResponse\")\r\n public GetNearbyPlacesResponse getNearbyPlaces(\r\n @WebParam(name = \"getNearbyPlacesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesRequest\")\r\n GetNearbyPlacesRequest getNearbyPlacesRequest);\r\n\r\n /**\r\n * \r\n * @param getAllCategoriesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetAllCategoriesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getAllCategories\")\r\n @WebResult(name = \"getAllCategoriesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesResponse\")\r\n public GetAllCategoriesResponse getAllCategories(\r\n @WebParam(name = \"getAllCategoriesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesRequest\")\r\n GetAllCategoriesRequest getAllCategoriesRequest);\r\n\r\n /**\r\n * \r\n * @param getMyFavoritesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetMyFavoritesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getMyFavorites\")\r\n @WebResult(name = \"getMyFavoritesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesResponse\")\r\n public GetMyFavoritesResponse getMyFavorites(\r\n @WebParam(name = \"getMyFavoritesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesRequest\")\r\n GetMyFavoritesRequest getMyFavoritesRequest);\r\n\r\n}", "@WebService(name = \"SafeImpl\", targetNamespace = \"http://webservices.safe.woolpert.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SafeImpl {\n\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Collection>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCollections\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetCollections\")\n @ResponseWrapper(localName = \"getCollectionsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetCollectionsResponse\")\n public List<Collection> getCollections();\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @param arg8\n * @param arg9\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertCollection\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertCollection\")\n @ResponseWrapper(localName = \"insertCollectionResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertCollectionResponse\")\n public ReturnStatus insertCollection(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n double arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n double arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n double arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n long arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n long arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n int arg8,\n @WebParam(name = \"arg9\", targetNamespace = \"\")\n int arg9);\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg10\n * @param arg6\n * @param arg7\n * @param arg8\n * @param arg9\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateCollection\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateCollection\")\n @ResponseWrapper(localName = \"updateCollectionResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateCollectionResponse\")\n public ReturnStatus updateCollection(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n double arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n double arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n double arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n long arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n long arg8,\n @WebParam(name = \"arg9\", targetNamespace = \"\")\n int arg9,\n @WebParam(name = \"arg10\", targetNamespace = \"\")\n int arg10);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteCollections\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteCollections\")\n @ResponseWrapper(localName = \"deleteCollectionsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteCollectionsResponse\")\n public ReturnStatus deleteCollections(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Asset>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAssets\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAssets\")\n @ResponseWrapper(localName = \"getAssetsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAssetsResponse\")\n public List<Asset> getAssets();\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertAsset\")\n @ResponseWrapper(localName = \"insertAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertAssetResponse\")\n public ReturnStatus insertAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n int arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n double arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n double arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n int arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n long arg7);\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @param arg8\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateAsset\")\n @ResponseWrapper(localName = \"updateAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateAssetResponse\")\n public ReturnStatus updateAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n int arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n double arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n double arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n int arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n long arg8);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteAsset\")\n @ResponseWrapper(localName = \"deleteAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteAssetResponse\")\n public ReturnStatus deleteAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Platform>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPlatforms\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetPlatforms\")\n @ResponseWrapper(localName = \"getPlatformsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetPlatformsResponse\")\n public List<Platform> getPlatforms();\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePlatform\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdatePlatform\")\n @ResponseWrapper(localName = \"updatePlatformResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdatePlatformResponse\")\n public ReturnStatus updatePlatform(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n Boolean arg3);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePlatform\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeletePlatform\")\n @ResponseWrapper(localName = \"deletePlatformResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeletePlatformResponse\")\n public ReturnStatus deletePlatform(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertPlatform\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertPlatform\")\n @ResponseWrapper(localName = \"insertPlatformResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertPlatformResponse\")\n public ReturnStatus insertPlatform(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n Boolean arg2);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Poc>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPOCs\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetPOCs\")\n @ResponseWrapper(localName = \"getPOCsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetPOCsResponse\")\n public List<Poc> getPOCs();\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertPOC\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertPOC\")\n @ResponseWrapper(localName = \"insertPOCResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertPOCResponse\")\n public ReturnStatus insertPOC(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n int arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n String arg6);\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePOC\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdatePOC\")\n @ResponseWrapper(localName = \"updatePOCResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdatePOCResponse\")\n public ReturnStatus updatePOC(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n int arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n String arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n String arg7);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePOC\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeletePOC\")\n @ResponseWrapper(localName = \"deletePOCResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeletePOCResponse\")\n public ReturnStatus deletePOC(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Organization>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOrganizations\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetOrganizations\")\n @ResponseWrapper(localName = \"getOrganizationsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetOrganizationsResponse\")\n public List<Organization> getOrganizations();\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertOrganization\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertOrganization\")\n @ResponseWrapper(localName = \"insertOrganizationResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertOrganizationResponse\")\n public ReturnStatus insertOrganization(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateOrganization\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateOrganization\")\n @ResponseWrapper(localName = \"updateOrganizationResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateOrganizationResponse\")\n public ReturnStatus updateOrganization(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteOrganization\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteOrganization\")\n @ResponseWrapper(localName = \"deleteOrganizationResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteOrganizationResponse\")\n public ReturnStatus deleteOrganization(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.SensorMFR>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSensorMFRs\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorMFRs\")\n @ResponseWrapper(localName = \"getSensorMFRsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorMFRsResponse\")\n public List<SensorMFR> getSensorMFRs();\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertSensorMFR\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorMFR\")\n @ResponseWrapper(localName = \"insertSensorMFRResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorMFRResponse\")\n public ReturnStatus insertSensorMFR(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateSensorMFR\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorMFR\")\n @ResponseWrapper(localName = \"updateSensorMFRResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorMFRResponse\")\n public ReturnStatus updateSensorMFR(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteSensorMFR\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorMFR\")\n @ResponseWrapper(localName = \"deleteSensorMFRResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorMFRResponse\")\n public ReturnStatus deleteSensorMFR(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Sensor>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSensors\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensors\")\n @ResponseWrapper(localName = \"getSensorsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorsResponse\")\n public List<Sensor> getSensors();\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg6\n * @param arg7\n * @param arg8\n * @param arg9\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensor\")\n @ResponseWrapper(localName = \"insertSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorResponse\")\n public ReturnStatus insertSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n int arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n int arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n double arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n double arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n double arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n int arg8,\n @WebParam(name = \"arg9\", targetNamespace = \"\")\n long arg9);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensor\")\n @ResponseWrapper(localName = \"deleteSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorResponse\")\n public ReturnStatus deleteSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg5\n * @param arg4\n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @param arg10\n * @param arg6\n * @param arg7\n * @param arg8\n * @param arg9\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensor\")\n @ResponseWrapper(localName = \"updateSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorResponse\")\n public ReturnStatus updateSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n int arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n int arg5,\n @WebParam(name = \"arg6\", targetNamespace = \"\")\n double arg6,\n @WebParam(name = \"arg7\", targetNamespace = \"\")\n double arg7,\n @WebParam(name = \"arg8\", targetNamespace = \"\")\n double arg8,\n @WebParam(name = \"arg9\", targetNamespace = \"\")\n int arg9,\n @WebParam(name = \"arg10\", targetNamespace = \"\")\n long arg10);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Spectrum>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSpectrums\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSpectrums\")\n @ResponseWrapper(localName = \"getSpectrumsResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSpectrumsResponse\")\n public List<Spectrum> getSpectrums();\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertSpectrum\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSpectrum\")\n @ResponseWrapper(localName = \"insertSpectrumResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSpectrumResponse\")\n public ReturnStatus insertSpectrum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateSpectrum\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSpectrum\")\n @ResponseWrapper(localName = \"updateSpectrumResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSpectrumResponse\")\n public ReturnStatus updateSpectrum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteSpectrum\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSpectrum\")\n @ResponseWrapper(localName = \"deleteSpectrumResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSpectrumResponse\")\n public ReturnStatus deleteSpectrum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.woolpert.safe.webservices.SensorMetadata>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSensorMetadata\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAllSensorMetadata\")\n @ResponseWrapper(localName = \"getAllSensorMetadataResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAllSensorMetadataResponse\")\n public List<SensorMetadata> getAllSensorMetadata();\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertSensorMetadata\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorMetadata\")\n @ResponseWrapper(localName = \"insertSensorMetadataResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.InsertSensorMetadataResponse\")\n public ReturnStatus insertSensorMetadata(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateSensorMetadata\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorMetadata\")\n @ResponseWrapper(localName = \"updateSensorMetadataResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.UpdateSensorMetadataResponse\")\n public ReturnStatus updateSensorMetadata(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteSensorMetadata\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorMetadata\")\n @ResponseWrapper(localName = \"deleteSensorMetadataResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.DeleteSensorMetadataResponse\")\n public ReturnStatus deleteSensorMetadata(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"addSensorToAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.AddSensorToAsset\")\n @ResponseWrapper(localName = \"addSensorToAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.AddSensorToAssetResponse\")\n public ReturnStatus addSensorToAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Sensor>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSensorsForAsset\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorsForAsset\")\n @ResponseWrapper(localName = \"getSensorsForAssetResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetSensorsForAssetResponse\")\n public List<Sensor> getSensorsForAsset(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.woolpert.safe.webservices.ReturnStatus\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"addAssetToSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.AddAssetToSensor\")\n @ResponseWrapper(localName = \"addAssetToSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.AddAssetToSensorResponse\")\n public ReturnStatus addAssetToSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<com.woolpert.safe.webservices.Asset>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAssetsForSensor\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAssetsForSensor\")\n @ResponseWrapper(localName = \"getAssetsForSensorResponse\", targetNamespace = \"http://webservices.safe.woolpert.com/\", className = \"com.woolpert.safe.webservices.GetAssetsForSensorResponse\")\n public List<Asset> getAssetsForSensor(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}", "@WebService(name = \"PaymentMgmtService\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/wsdl/ao/PaymentMgmtService\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface PaymentMgmtService {\n\n\n /**\n *\n * @param request\n * @return\n * returns gov.laca.amp.proxy.soap.pmtmgmtservice.client.gen.RetrievePaymentHistoryResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"RetrievePaymentHistory\", action = \"RetrievePaymentHistory\")\n @WebResult(name = \"RetrievePaymentHistoryResponse\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/xsd/ao/RetrievePaymentHistory\", partName = \"reply\")\n public RetrievePaymentHistoryResponse retrievePaymentHistory(@WebParam(name = \"RetrievePaymentHistoryRequest\",\n targetNamespace =\n \"http://assessor.lacounty.gov/amp/xsd/ao/RetrievePaymentHistory\",\n partName = \"request\")\n RetrievePaymentHistoryRequest request) throws FaultMessage;\n\n /**\n *\n * @param request\n * @return\n * returns gov.laca.amp.proxy.soap.pmtmgmtservice.client.gen.RetrieveSTRSummaryResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"RetrieveSTRSummary\", action = \"RetrieveSTRSummary\")\n @WebResult(name = \"RetrieveSTRSummaryResponse\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRSummary\", partName = \"reply\")\n public RetrieveSTRSummaryResponse retrieveSTRSummary(@WebParam(name = \"RetrieveSTRSummaryRequest\",\n targetNamespace =\n \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRSummary\",\n partName = \"request\")\n RetrieveSTRSummaryRequest request) throws FaultMessage;\n\n /**\n *\n * @param request\n * @return\n * returns gov.laca.amp.proxy.soap.pmtmgmtservice.client.gen.RetrieveSTRChangeHistoryResponse\n * @throws FaultMessage\n */\n @WebMethod(operationName = \"RetrieveSTRChangeHistory\", action = \"RetrieveSTRChangeHistory\")\n @WebResult(name = \"RetrieveSTRChangeHistoryResponse\",\n targetNamespace = \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRChangeHistory\", partName = \"reply\")\n public RetrieveSTRChangeHistoryResponse retrieveSTRChangeHistory(@WebParam(name = \"RetrieveSTRChangeHistoryRequest\",\n targetNamespace =\n \"http://assessor.lacounty.gov/amp/xsd/ao/RetrieveSTRChangeHistory\",\n partName = \"request\")\n RetrieveSTRChangeHistoryRequest request) throws FaultMessage;\n\n}", "@WebService(targetNamespace = \"http://jaxws.intergrupo.com.co/\", name = \"InterfaceWebService\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface InterfaceWebService {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoReportado\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportado\")\r\n @WebMethod(action = \"urn:vehiculoReportado\")\r\n @ResponseWrapper(localName = \"vehiculoReportadoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportadoResponse\")\r\n public boolean vehiculoReportado(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"saludo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.Saludo\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"saludoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.SaludoResponse\")\r\n public java.lang.String saludo(\r\n @WebParam(name = \"nombre\", targetNamespace = \"\")\r\n java.lang.String nombre\r\n );\r\n\r\n @WebResult(name = \"vehiculo\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"consultarVehiculo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculo\")\r\n @WebMethod(action = \"urn:consultarVehiculo\")\r\n @ResponseWrapper(localName = \"consultarVehiculoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculoResponse\")\r\n public co.com.intergrupo.cxf.Vehiculo consultarVehiculo(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoAlDiaConImpuesto\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuesto\")\r\n @WebMethod(action = \"urn:vehiculoAlDiaConImpuesto\")\r\n @ResponseWrapper(localName = \"vehiculoAlDiaConImpuestoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuestoResponse\")\r\n public boolean vehiculoAlDiaConImpuesto(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"registradoRunt\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRunt\")\r\n @WebMethod(action = \"urn:registradoRunt\")\r\n @ResponseWrapper(localName = \"registradoRuntResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRuntResponse\")\r\n public boolean registradoRunt(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n}", "@WebService(name = \"IPartnerIntegrationService\", targetNamespace = \"http://tempuri.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface IPartnerIntegrationService {\r\n\r\n\r\n /**\r\n * \r\n * @param partnerIntegrationXML\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"SavePartner_integration\", action = \"http://tempuri.org/IPartnerIntegrationService/SavePartner_integration\")\r\n @WebResult(name = \"SavePartner_integrationResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"SavePartner_integration\", targetNamespace = \"http://tempuri.org/\", className = \"com.kotak.SavePartnerIntegration\")\r\n @ResponseWrapper(localName = \"SavePartner_integrationResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.kotak.SavePartnerIntegrationResponse\")\r\n public String savePartnerIntegration(\r\n @WebParam(name = \"Partner_integrationXML\", targetNamespace = \"http://tempuri.org/\")\r\n String partnerIntegrationXML);\r\n\r\n /**\r\n * \r\n * @param strPolicyIssueTime\r\n * @param strTransactionID\r\n * @param strCustomerName\r\n * @param strTransactionRef\r\n * @param strProdType\r\n * @param strPolicyNo\r\n * @param strPassword\r\n * @param strUserId\r\n * @param strPolicyPDF\r\n * @return\r\n * returns com.kotak.ClsSignPDF\r\n */\r\n @WebMethod(operationName = \"GetSignPolicyPDF\", action = \"http://tempuri.org/IPartnerIntegrationService/GetSignPolicyPDF\")\r\n @WebResult(name = \"GetSignPolicyPDFResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetSignPolicyPDF\", targetNamespace = \"http://tempuri.org/\", className = \"com.kotak.GetSignPolicyPDF\")\r\n @ResponseWrapper(localName = \"GetSignPolicyPDFResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.kotak.GetSignPolicyPDFResponse\")\r\n public ClsSignPDF getSignPolicyPDF(\r\n @WebParam(name = \"strUserId\", targetNamespace = \"http://tempuri.org/\")\r\n String strUserId,\r\n @WebParam(name = \"strPassword\", targetNamespace = \"http://tempuri.org/\")\r\n String strPassword,\r\n @WebParam(name = \"strProdType\", targetNamespace = \"http://tempuri.org/\")\r\n String strProdType,\r\n @WebParam(name = \"strPolicyNo\", targetNamespace = \"http://tempuri.org/\")\r\n String strPolicyNo,\r\n @WebParam(name = \"strPolicyIssueTime\", targetNamespace = \"http://tempuri.org/\")\r\n String strPolicyIssueTime,\r\n @WebParam(name = \"strTransactionID\", targetNamespace = \"http://tempuri.org/\")\r\n String strTransactionID,\r\n @WebParam(name = \"strTransactionRef\", targetNamespace = \"http://tempuri.org/\")\r\n String strTransactionRef,\r\n @WebParam(name = \"strCustomerName\", targetNamespace = \"http://tempuri.org/\")\r\n String strCustomerName,\r\n @WebParam(name = \"strPolicyPDF\", targetNamespace = \"http://tempuri.org/\")\r\n byte[] strPolicyPDF);\r\n\r\n}", "@WebService(name = \"People\", targetNamespace = \"http://ws.soap.finalproject.introsde/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface People {\n\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePerson\")\n @ResponseWrapper(localName = \"createPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/createPersonResponse\")\n public int createPerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.Person\n */\n @WebMethod\n @WebResult(name = \"person\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPerson\")\n @ResponseWrapper(localName = \"getPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonResponse\")\n public Person getPerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updatePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/updatePersonResponse\")\n public int updatePerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responsePersonCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deletePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/deletePersonResponse\")\n public int deletePerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"people\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPeopleList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleList\")\n @ResponseWrapper(localName = \"getPeopleListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPeopleListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPeopleListResponse\")\n public ListPersonWrapper getPeopleList();\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"currentHealth\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getCurrentHealth\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealth\")\n @ResponseWrapper(localName = \"getCurrentHealthResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealthResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthRequest\", output = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthResponse\")\n public ListMeasureWrapper getCurrentHealth(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"vitalSigns\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getVitalSigns\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSigns\")\n @ResponseWrapper(localName = \"getVitalSignsResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSignsResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getVitalSignsRequest\", output = \"http://ws.soap.finalproject.introsde/People/getVitalSignsResponse\")\n public ListMeasureWrapper getVitalSigns(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctor\")\n @ResponseWrapper(localName = \"createDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/createDoctorResponse\")\n public int createDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns introsde.finalproject.soap.ws.Doctor\n */\n @WebMethod\n @WebResult(name = \"doctor\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctor\")\n @ResponseWrapper(localName = \"getDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getDoctorResponse\")\n public Doctor getDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctor\")\n @ResponseWrapper(localName = \"updateDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateDoctorResponse\")\n public int updateDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseDoctorCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctor\")\n @ResponseWrapper(localName = \"deleteDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteDoctorResponse\")\n public int deleteDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param idDoctor\n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"patientList\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPersonByDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctor\")\n @ResponseWrapper(localName = \"getPersonByDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorResponse\")\n public ListPersonWrapper getPersonByDoctor(\n @WebParam(name = \"idDoctor\", targetNamespace = \"\")\n int idDoctor);\n\n /**\n * \n * @param familyId\n * @return\n * returns introsde.finalproject.soap.ws.Family\n */\n @WebMethod\n @WebResult(name = \"family\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getFamily\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamily\")\n @ResponseWrapper(localName = \"getFamilyResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamilyResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getFamilyRequest\", output = \"http://ws.soap.finalproject.introsde/People/getFamilyResponse\")\n public Family getFamily(\n @WebParam(name = \"familyId\", targetNamespace = \"\")\n int familyId);\n\n /**\n * \n * @param idPerson\n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminder\")\n @ResponseWrapper(localName = \"createReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/createReminderResponse\")\n public int createReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListReminderWrapper\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminder\")\n @ResponseWrapper(localName = \"getReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/getReminderResponse\")\n public ListReminderWrapper getReminder(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"updateReminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminder\")\n @ResponseWrapper(localName = \"updateReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateReminderResponse\")\n public int updateReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder);\n\n /**\n * \n * @param idReminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseReminderCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminder\")\n @ResponseWrapper(localName = \"deleteReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteReminderResponse\")\n public int deleteReminder(\n @WebParam(name = \"idReminder\", targetNamespace = \"\")\n int idReminder);\n\n /**\n * \n * @param idPerson\n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTarget\")\n @ResponseWrapper(localName = \"createTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/createTargetResponse\")\n public int createTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTargetList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetList\")\n @ResponseWrapper(localName = \"getTargetListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetListResponse\")\n public ListTargetWrapper getTargetList(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targetId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTarget\")\n @ResponseWrapper(localName = \"updateTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateTargetResponse\")\n public int updateTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target);\n\n /**\n * \n * @param idTarget\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseTargetCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTarget\")\n @ResponseWrapper(localName = \"deleteTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteTargetResponse\")\n public int deleteTarget(\n @WebParam(name = \"idTarget\", targetNamespace = \"\")\n int idTarget);\n\n /**\n * \n * @param idMeasureDef\n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTarget\")\n @ResponseWrapper(localName = \"getTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetResponse\")\n public ListTargetWrapper getTarget(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId,\n @WebParam(name = \"idMeasureDef\", targetNamespace = \"\")\n int idMeasureDef);\n\n /**\n * \n * @param measure\n * @param idPerson\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasure\")\n @ResponseWrapper(localName = \"createMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/createMeasureResponse\")\n public int createMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasure\")\n @ResponseWrapper(localName = \"getMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureResponse\")\n public ListMeasureWrapper getMeasure(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param measure\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(name = \"idUpdatedMeasure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasure\")\n @ResponseWrapper(localName = \"updateMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateMeasureResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://ws.soap.finalproject.introsde/People/updateMeasure/Fault/ParseException\")\n })\n public int updateMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure)\n throws ParseException_Exception\n ;\n\n /**\n * \n * @param idMeasure\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseMeasureCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasure\")\n @ResponseWrapper(localName = \"deleteMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteMeasureResponse\")\n public int deleteMeasure(\n @WebParam(name = \"idMeasure\", targetNamespace = \"\")\n int idMeasure);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureDefinitionWrapper\n */\n @WebMethod\n @WebResult(name = \"measureDefinition\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasureDefinition\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinition\")\n @ResponseWrapper(localName = \"getMeasureDefinitionResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinitionResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionResponse\")\n public ListMeasureDefinitionWrapper getMeasureDefinition();\n\n}", "@WebService(name = \"EmployeeManagementWebService\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EmployeeManagementWebService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns com.virtualpairprogrammers.employeemanagement.Employee\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEmployeeById\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetEmployeeById\")\n @ResponseWrapper(localName = \"getEmployeeByIdResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetEmployeeByIdResponse\")\n public Employee getEmployeeById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.virtualpairprogrammers.employeemanagement.Employee>\n * @throws ServiceUnavailableException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllEmployees\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetAllEmployees\")\n @ResponseWrapper(localName = \"getAllEmployeesResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetAllEmployeesResponse\")\n public List<Employee> getAllEmployees()\n throws ServiceUnavailableException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"registerEmployee\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.RegisterEmployee\")\n @ResponseWrapper(localName = \"registerEmployeeResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.RegisterEmployeeResponse\")\n public void registerEmployee(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Employee arg0);\n\n}", "@WebService(name = \"ConfigurationService\", targetNamespace = \"http://ws.coverity.com/v7\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ConfigurationService {\n\n\n /**\n * \n * @param message\n * @param usernames\n * @param subject\n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"notify\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.Notify\")\n @ResponseWrapper(localName = \"notifyResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.NotifyResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/notifyRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/notifyResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/notify/Fault/CovRemoteServiceException\")\n })\n public List<String> notify(\n @WebParam(name = \"usernames\", targetNamespace = \"\")\n List<String> usernames,\n @WebParam(name = \"subject\", targetNamespace = \"\")\n String subject,\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.AttributeDefinitionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttributes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributes\")\n @ResponseWrapper(localName = \"getAttributesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesResponse\")\n public List<AttributeDefinitionDataObj> getAttributes();\n\n /**\n * \n * @param attributeDefinitionId\n * @return\n * returns com.coverity.ws.v7.AttributeDefinitionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttribute\")\n @ResponseWrapper(localName = \"getAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAttribute/Fault/CovRemoteServiceException\")\n })\n public AttributeDefinitionDataObj getAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.VersionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersionResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getVersionRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getVersionResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getVersion/Fault/CovRemoteServiceException\")\n })\n public VersionDataObj getVersion()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.GroupsPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroups\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroups\")\n @ResponseWrapper(localName = \"getGroupsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroups/Fault/CovRemoteServiceException\")\n })\n public GroupsPageDataObj getGroups(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n GroupFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.UsersPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUsers\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsers\")\n @ResponseWrapper(localName = \"getUsersResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsersResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUsersRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUsersResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUsers/Fault/CovRemoteServiceException\")\n })\n public UsersPageDataObj getUsers(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n UserFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @return\n * returns com.coverity.ws.v7.GroupDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroup\")\n @ResponseWrapper(localName = \"getGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroup/Fault/CovRemoteServiceException\")\n })\n public GroupDataObj getGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @return\n * returns com.coverity.ws.v7.RoleDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRole\")\n @ResponseWrapper(localName = \"getRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getRole/Fault/CovRemoteServiceException\")\n })\n public RoleDataObj getRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttribute\")\n @ResponseWrapper(localName = \"createAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createAttribute/Fault/CovRemoteServiceException\")\n })\n public void createAttribute(\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.RoleDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllRoles\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRoles\")\n @ResponseWrapper(localName = \"getAllRolesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRolesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesResponse\")\n public List<RoleDataObj> getAllRoles();\n\n /**\n * \n * @param groupSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroup\")\n @ResponseWrapper(localName = \"createGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createGroup/Fault/CovRemoteServiceException\")\n })\n public void createGroup(\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRole\")\n @ResponseWrapper(localName = \"createRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createRole/Fault/CovRemoteServiceException\")\n })\n public void createRole(\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroup\")\n @ResponseWrapper(localName = \"deleteGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroup/Fault/CovRemoteServiceException\")\n })\n public void deleteGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupSpec\n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroup\")\n @ResponseWrapper(localName = \"updateGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateGroup/Fault/CovRemoteServiceException\")\n })\n public void updateGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId,\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRole\")\n @ResponseWrapper(localName = \"updateRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateRole/Fault/CovRemoteServiceException\")\n })\n public void updateRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId,\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRole\")\n @ResponseWrapper(localName = \"deleteRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteRole/Fault/CovRemoteServiceException\")\n })\n public void deleteRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStream\")\n @ResponseWrapper(localName = \"createStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStream/Fault/CovRemoteServiceException\")\n })\n public void createStream(\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStream\")\n @ResponseWrapper(localName = \"updateStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateStream/Fault/CovRemoteServiceException\")\n })\n public void updateStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param onlyIfEmpty\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStream\")\n @ResponseWrapper(localName = \"deleteStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteStream/Fault/CovRemoteServiceException\")\n })\n public void deleteStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"onlyIfEmpty\", targetNamespace = \"\")\n boolean onlyIfEmpty)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUser\")\n @ResponseWrapper(localName = \"createUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createUser/Fault/CovRemoteServiceException\")\n })\n public void createUser(\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUser\")\n @ResponseWrapper(localName = \"updateUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateUser/Fault/CovRemoteServiceException\")\n })\n public void updateUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUser\")\n @ResponseWrapper(localName = \"deleteUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteUser/Fault/CovRemoteServiceException\")\n })\n public void deleteUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllIntegrityControlPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissions\")\n @ResponseWrapper(localName = \"getAllIntegrityControlPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissions/Fault/CovRemoteServiceException\")\n })\n public List<PermissionDataObj> getAllIntegrityControlPermissions(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttribute\")\n @ResponseWrapper(localName = \"updateAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateAttribute/Fault/CovRemoteServiceException\")\n })\n public void updateAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId,\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttribute\")\n @ResponseWrapper(localName = \"deleteAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttribute/Fault/CovRemoteServiceException\")\n })\n public void deleteAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMap\")\n @ResponseWrapper(localName = \"createComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMap/Fault/CovRemoteServiceException\")\n })\n public void createComponentMap(\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMap\")\n @ResponseWrapper(localName = \"updateComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMap/Fault/CovRemoteServiceException\")\n })\n public void updateComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId,\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMap\")\n @ResponseWrapper(localName = \"deleteComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMap/Fault/CovRemoteServiceException\")\n })\n public void deleteComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProject\")\n @ResponseWrapper(localName = \"createProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createProject/Fault/CovRemoteServiceException\")\n })\n public void createProject(\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProject\")\n @ResponseWrapper(localName = \"updateProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateProject/Fault/CovRemoteServiceException\")\n })\n public void updateProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProject\")\n @ResponseWrapper(localName = \"deleteProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteProject/Fault/CovRemoteServiceException\")\n })\n public void deleteProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStore\")\n @ResponseWrapper(localName = \"createTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStore/Fault/CovRemoteServiceException\")\n })\n public void createTriageStore(\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStore\")\n @ResponseWrapper(localName = \"updateTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStore/Fault/CovRemoteServiceException\")\n })\n public void updateTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStore\")\n @ResponseWrapper(localName = \"deleteTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStore/Fault/CovRemoteServiceException\")\n })\n public void deleteTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentId\n * @return\n * returns com.coverity.ws.v7.ComponentDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponent\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponent\")\n @ResponseWrapper(localName = \"getComponentResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponent/Fault/CovRemoteServiceException\")\n })\n public ComponentDataObj getComponent(\n @WebParam(name = \"componentId\", targetNamespace = \"\")\n ComponentIdDataObj componentId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns com.coverity.ws.v7.UserDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUser\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUser/Fault/CovRemoteServiceException\")\n })\n public UserDataObj getUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.StreamDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStreams\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreams\")\n @ResponseWrapper(localName = \"getStreamsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreamsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getStreams/Fault/CovRemoteServiceException\")\n })\n public List<StreamDataObj> getStreams(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n StreamFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.CheckerPropertyDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCheckerProperties\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerProperties\")\n @ResponseWrapper(localName = \"getCheckerPropertiesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerPropertiesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerProperties/Fault/CovRemoteServiceException\")\n })\n public List<CheckerPropertyDataObj> getCheckerProperties(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n CheckerPropertyFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteSnapshot\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshot\")\n @ResponseWrapper(localName = \"deleteSnapshotResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshotResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshot/Fault/CovRemoteServiceException\")\n })\n public void deleteSnapshot(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param viewname\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"executeNotification\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotification\")\n @ResponseWrapper(localName = \"executeNotificationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotificationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/executeNotification/Fault/CovRemoteServiceException\")\n })\n public void executeNotification(\n @WebParam(name = \"viewname\", targetNamespace = \"\")\n String viewname)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ProjectDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProjects\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjects\")\n @ResponseWrapper(localName = \"getProjectsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjectsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getProjects/Fault/CovRemoteServiceException\")\n })\n public List<ProjectDataObj> getProjects(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ProjectFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @param sourceStreamId\n * @return\n * returns com.coverity.ws.v7.StreamDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"copyStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStream\")\n @ResponseWrapper(localName = \"copyStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/copyStream/Fault/CovRemoteServiceException\")\n })\n public StreamDataObj copyStream(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"sourceStreamId\", targetNamespace = \"\")\n StreamIdDataObj sourceStreamId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStreamInProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProject\")\n @ResponseWrapper(localName = \"createStreamInProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProject/Fault/CovRemoteServiceException\")\n })\n public void createStreamInProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"setAcceptingNewCommits\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommits\")\n @ResponseWrapper(localName = \"setAcceptingNewCommitsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommitsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsResponse\")\n public void setAcceptingNewCommits(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n boolean arg0);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDay\")\n @ResponseWrapper(localName = \"getMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayResponse\")\n public String getMessageOfTheDay();\n\n /**\n * \n * @param message\n */\n @WebMethod\n @RequestWrapper(localName = \"setMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDay\")\n @ResponseWrapper(localName = \"setMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayResponse\")\n public void setMessageOfTheDay(\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message);\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.TriageStoreDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStores\")\n @ResponseWrapper(localName = \"getTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStores/Fault/CovRemoteServiceException\")\n })\n public List<TriageStoreDataObj> getTriageStores(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n TriageStoreFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.CommitStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCommitState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitState\")\n @ResponseWrapper(localName = \"getCommitStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateResponse\")\n public CommitStateDataObj getCommitState();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.ServerDomainIdDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLdapServerDomains\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomains\")\n @ResponseWrapper(localName = \"getLdapServerDomainsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomainsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsResponse\")\n public List<ServerDomainIdDataObj> getLdapServerDomains();\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.LicenseStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLicenseState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseState\")\n @ResponseWrapper(localName = \"getLicenseStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateResponse\")\n public LicenseStateDataObj getLicenseState();\n\n /**\n * \n * @param snapshotId\n * @param snapshotData\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateSnapshotInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfo\")\n @ResponseWrapper(localName = \"updateSnapshotInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfo/Fault/CovRemoteServiceException\")\n })\n public void updateSnapshotInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n SnapshotIdDataObj snapshotId,\n @WebParam(name = \"snapshotData\", targetNamespace = \"\")\n SnapshotInfoDataObj snapshotData)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.FeatureUpdateTimeDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLastUpdateTimes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimes\")\n @ResponseWrapper(localName = \"getLastUpdateTimesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesResponse\")\n public List<FeatureUpdateTimeDataObj> getLastUpdateTimes();\n\n /**\n * \n * @param ldapConfigurationSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfiguration\")\n @ResponseWrapper(localName = \"createLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void createLdapConfiguration(\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param ldapConfigurationSpec\n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfiguration\")\n @ResponseWrapper(localName = \"updateLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void updateLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj,\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.SnapshotPurgeDetailsObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"getSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public SnapshotPurgeDetailsObj getSnapshotPurgeDetails()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param purgeDetailsSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"setSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"setSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public void setSnapshotPurgeDetails(\n @WebParam(name = \"purgeDetailsSpec\", targetNamespace = \"\")\n SnapshotPurgeDetailsObj purgeDetailsSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param srcTriageStoreIds\n * @param triageStoreId\n * @param deleteSourceStores\n * @param assignStreamsToTargetStore\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"mergeTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStores\")\n @ResponseWrapper(localName = \"mergeTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStores/Fault/CovRemoteServiceException\")\n })\n public void mergeTriageStores(\n @WebParam(name = \"srcTriageStoreIds\", targetNamespace = \"\")\n List<TriageStoreIdDataObj> srcTriageStoreIds,\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"deleteSourceStores\", targetNamespace = \"\")\n boolean deleteSourceStores,\n @WebParam(name = \"assignStreamsToTargetStore\", targetNamespace = \"\")\n boolean assignStreamsToTargetStore)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissions\")\n @ResponseWrapper(localName = \"getAllPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsResponse\")\n public List<PermissionDataObj> getAllPermissions();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.LdapConfigurationDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllLdapConfigurations\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurations\")\n @ResponseWrapper(localName = \"getAllLdapConfigurationsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurationsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurations/Fault/CovRemoteServiceException\")\n })\n public List<LdapConfigurationDataObj> getAllLdapConfigurations()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @return\n * returns java.util.List<com.coverity.ws.v7.DeleteSnapshotJobInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDeleteSnapshotJobInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfo\")\n @ResponseWrapper(localName = \"getDeleteSnapshotJobInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfo/Fault/CovRemoteServiceException\")\n })\n public List<DeleteSnapshotJobInfoDataObj> getDeleteSnapshotJobInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotIdDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotsForStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStream\")\n @ResponseWrapper(localName = \"getSnapshotsForStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStream/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotIdDataObj> getSnapshotsForStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n SnapshotFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfiguration\")\n @ResponseWrapper(localName = \"deleteLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void deleteLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ComponentMapDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponentMaps\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMaps\")\n @ResponseWrapper(localName = \"getComponentMapsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMapsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMaps/Fault/CovRemoteServiceException\")\n })\n public List<ComponentMapDataObj> getComponentMaps(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ComponentMapFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDefectStatuses\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatuses\")\n @ResponseWrapper(localName = \"getDefectStatusesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatusesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatuses/Fault/CovRemoteServiceException\")\n })\n public List<String> getDefectStatuses()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotIds\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotInformation\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformation\")\n @ResponseWrapper(localName = \"getSnapshotInformationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformation/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotInfoDataObj> getSnapshotInformation(\n @WebParam(name = \"snapshotIds\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotIds)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getServerTime\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTime\")\n @ResponseWrapper(localName = \"getServerTimeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTimeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getServerTime/Fault/CovRemoteServiceException\")\n })\n public XMLGregorianCalendar getServerTime()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.ConfigurationDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSystemConfig\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfig\")\n @ResponseWrapper(localName = \"getSystemConfigResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfigResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigResponse\")\n public ConfigurationDataObj getSystemConfig();\n\n}", "@WebService(name = \"CardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CardWS {\n\n\n /**\n * \n * @param plastic\n * @param fechaCorte\n * @param fechaAsignacion\n * @param client\n * @param canal\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"assignCardToClientWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWS\")\n @ResponseWrapper(localName = \"assignCardToClientWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSResponse\")\n public RespuestaDTO assignCardToClientWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"plastic\", targetNamespace = \"\")\n Plastic plastic,\n @WebParam(name = \"fechaCorte\", targetNamespace = \"\")\n String fechaCorte,\n @WebParam(name = \"fechaAsignacion\", targetNamespace = \"\")\n String fechaAsignacion,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param client\n * @param canal\n * @param status\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"cancelCardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWS\")\n @ResponseWrapper(localName = \"cancelCardWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSResponse\")\n public RespuestaDTO cancelCardWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"status\", targetNamespace = \"\")\n String status,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param plasticNumber\n * @return\n * returns com.cbp1.ws.cbp.service.Plastic\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"consultPlasticByNumberWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWS\")\n @ResponseWrapper(localName = \"consultPlasticByNumberWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSResponse\")\n public Plastic consultPlasticByNumberWS(\n @WebParam(name = \"plasticNumber\", targetNamespace = \"\")\n String plasticNumber);\n\n}", "@WebService(targetNamespace = \"http://interfaces.webService.xxdai.com/\", name = \"BaseInfoCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BaseInfoCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"alterBaseInfo\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfo\")\n @WebMethod\n @ResponseWrapper(localName = \"alterBaseInfoResponse\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfoResponse\")\n public java.lang.String alterBaseInfo(\n @WebParam(name = \"alterBaseInfoJson\", targetNamespace = \"\")\n java.lang.String alterBaseInfoJson\n );\n}", "@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/AddressService\", name = \"AddressService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.addressservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface AddressService {\r\n\r\n @WebResult(name = \"GetDoNotDisturbResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetDoNotDisturb\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetDoNotDisturbResponse getDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"GetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetDoNotDisturbException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetAddressCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"OriginateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"Originate\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/Originate\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ContactResponse originate(\r\n @WebParam(partName = \"parameters\", name = \"OriginateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressOriginateRequest parameters\r\n ) throws OriginateException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetDoNotDisturb\")\r\n public void setDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"SetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetDoNotDisturbRequest parameters\r\n ) throws SessionNotCreatedException, SetDoNotDisturbException;\r\n\r\n @WebResult(name = \"IsForwardedResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsForwarded\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsForwarded\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsForwardedResponse isForwarded(\r\n @WebParam(partName = \"parameters\", name = \"IsForwardedRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsForwardedException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetForwarding\")\r\n public void setForwarding(\r\n @WebParam(partName = \"parameters\", name = \"SetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetForwardingRequest parameters\r\n ) throws SetForwardingException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"CancelForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/CancelForwarding\")\r\n public void cancelForwarding(\r\n @WebParam(partName = \"parameters\", name = \"CancelForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, CancelForwardingException;\r\n\r\n @WebResult(name = \"GetStateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetState\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetState\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetStateResponse getState(\r\n @WebParam(partName = \"parameters\", name = \"GetStateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetStateException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminals\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminals\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalsResponse getTerminals(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetTerminalsException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetPresenceResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetPresence\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetPresence\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetPresenceResponse getPresence(\r\n @WebParam(partName = \"parameters\", name = \"GetPresenceRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetPresenceException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnection\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnection\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ConnectionResponse getConnection(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.ConnectionRequest parameters\r\n ) throws GetConnectionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetMessageWaitingResponse getMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"GetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalStatusResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminalStatus\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminalStatus\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalStatusResponse getTerminalStatus(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalStatusRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetTerminalStatusException;\r\n\r\n @WebMethod(operationName = \"PresenceSubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceSubscribe\")\r\n public void presenceSubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceSubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.PresenceSubscribeRequest parameters\r\n ) throws PresenceSubscribeException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnections\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnections\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetConnectionsResponse getConnections(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetConnectionsException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SendInstantMessage\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SendInstantMessage\")\r\n public void sendInstantMessage(\r\n @WebParam(partName = \"parameters\", name = \"SendInstantMessage\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.InstantMessageRequest parameters\r\n ) throws SessionNotCreatedException, SendInstantMessageException;\r\n\r\n @WebResult(name = \"GetUriResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetUri\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetUri\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetUriResponse getUri(\r\n @WebParam(partName = \"parameters\", name = \"GetUriRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetUriException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetForwardingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetForwarding\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetForwardingResponse getForwarding(\r\n @WebParam(partName = \"parameters\", name = \"GetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetForwardingException;\r\n\r\n @WebMethod(operationName = \"PresenceUnsubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceUnsubscribe\")\r\n public void presenceUnsubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceUnsubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws PresenceUnsubscribeException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetMessageWaiting\")\r\n public void setMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"SetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetMessageWaitingRequest parameters\r\n ) throws SetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"IsMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsMessageWaitingResponse isMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"IsMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsMessageWaitingException, SessionNotCreatedException;\r\n}", "@WebService(targetNamespace = \"http://soa.agh.edu.pl/\", name = \"HelloWorld\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HelloWorld {\n\n @WebMethod(operationName = \"Hi\")\n @RequestWrapper(localName = \"Hi\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hi\")\n @ResponseWrapper(localName = \"HiResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HiResponse\")\n @WebResult(name = \"ElementsWraper\", targetNamespace = \"\")\n public pl.edu.agh.soa.HiResponse.ElementsWraper hi(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n\n @WebMethod(action = \"Hello\")\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n}", "@WebService(name = \"iTmsLogisticsOrderWsService\", targetNamespace = \"http://www.aurora-framework.org/schema\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ITmsLogisticsOrderWsService {\n\n\n /**\n *\n * @param tmsLogisticsOrderRequestPart\n * @return\n * returns org.aurora_framework.schema.SoapResponse\n */\n @WebMethod(action = \"execute\")\n @WebResult(name = \"soapResponse\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderResponse_part\")\n public SoapResponse execute(\n @WebParam(name = \"logisticsOrderRequest\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderRequest_part\")\n LogisticsOrderRequest tmsLogisticsOrderRequestPart);\n\n}", "@WebService(name = \"OrderPortType\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface OrderPortType {\n\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"getDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType getDish(\n @WebParam(name = \"getDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"addDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType addDish(\n @WebParam(name = \"addDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetDishListResponse\n */\n @WebMethod\n @WebResult(name = \"getDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetDishListResponse getDishList(\n @WebParam(name = \"getDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"getOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType getOrder(\n @WebParam(name = \"getOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"addOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType addOrder(\n @WebParam(name = \"addOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetOrderListResponse\n */\n @WebMethod\n @WebResult(name = \"getOrderListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetOrderListResponse getOrderList(\n @WebParam(name = \"getOrderListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishListType\n */\n @WebMethod\n @WebResult(name = \"getOrderDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishListType getOrderDishList(\n @WebParam(name = \"getOrderDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishType\n */\n @WebMethod\n @WebResult(name = \"addOrderDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishType addOrderDish(\n @WebParam(name = \"addOrderDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderDishRequest parameter);\n\n}", "@WebService(name = \"EntityServer\", targetNamespace=\"http://activitiderbysoapservice.spqr.de/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface EntityServer {\n @WebMethod @WebResult(partName = \"return\")String getTimeAsString();\n @WebMethod @WebResult(partName = \"return\")long getTimeAsElapsed();\n @WebMethod @WebResult(partName = \"return\")long orderParts(String part);\n @WebMethod @WebResult(partName = \"return\")boolean changeBackWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeDoorAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeFronWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeEngineAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeTireAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeWheelAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")long amountOfParts(String part);\n \n}", "@WebService(name = \"databaseInfoService\", targetNamespace = \"urn:Vidal\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DatabaseInfoService {\n\n\n /**\n * \n * @param lapVersion\n * @param codeAdeli\n * @param userType\n * @param codeRpps\n * @param codeUserLap\n * @param codeLap\n * @return\n * returns com.whatever.DatabaseInfoService.VIDALAuthStatus\n */\n @WebMethod\n @WebResult(name = \"checkUser\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"checkUser\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.CheckUser\")\n @ResponseWrapper(localName = \"checkUserResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.CheckUserResponse\")\n public VIDALAuthStatus checkUser(\n @WebParam(name = \"codeUserLap\", targetNamespace = \"urn:Vidal\")\n String codeUserLap,\n @WebParam(name = \"codeLap\", targetNamespace = \"urn:Vidal\")\n String codeLap,\n @WebParam(name = \"lapVersion\", targetNamespace = \"urn:Vidal\")\n String lapVersion,\n @WebParam(name = \"userType\", targetNamespace = \"urn:Vidal\")\n String userType,\n @WebParam(name = \"codeRpps\", targetNamespace = \"urn:Vidal\")\n String codeRpps,\n @WebParam(name = \"codeAdeli\", targetNamespace = \"urn:Vidal\")\n String codeAdeli);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"CeMarkingLabel\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getCEMarkingLabel\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetCEMarkingLabel\")\n @ResponseWrapper(localName = \"getCEMarkingLabelResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetCEMarkingLabelResponse\")\n public String getCEMarkingLabel();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"expiryDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getDataExpiryDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetDataExpiryDate\")\n @ResponseWrapper(localName = \"getDataExpiryDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetDataExpiryDateResponse\")\n public XMLGregorianCalendar getDataExpiryDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"extractionDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getExtractionDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetExtractionDate\")\n @ResponseWrapper(localName = \"getExtractionDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetExtractionDateResponse\")\n public XMLGregorianCalendar getExtractionDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"graceEndDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getGraceEndDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetGraceEndDate\")\n @ResponseWrapper(localName = \"getGraceEndDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetGraceEndDateResponse\")\n public XMLGregorianCalendar getGraceEndDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"licenceEndDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceEndDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceEndDate\")\n @ResponseWrapper(localName = \"getLicenceEndDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceEndDateResponse\")\n public XMLGregorianCalendar getLicenceEndDate();\n\n /**\n * \n * @return\n * returns com.whatever.DatabaseInfoService.LicencingStatus\n */\n @WebMethod\n @WebResult(name = \"licenceOrGraceStatus\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceOrGraceStatus\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceOrGraceStatus\")\n @ResponseWrapper(localName = \"getLicenceOrGraceStatusResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceOrGraceStatusResponse\")\n public LicencingStatus getLicenceOrGraceStatus();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"licenceStartDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceStartDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceStartDate\")\n @ResponseWrapper(localName = \"getLicenceStartDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceStartDateResponse\")\n public XMLGregorianCalendar getLicenceStartDate();\n\n /**\n * \n * @return\n * returns com.whatever.DatabaseInfoService.ProductLineType\n */\n @WebMethod\n @WebResult(name = \"productLine\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getProductLine\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetProductLine\")\n @ResponseWrapper(localName = \"getProductLineResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetProductLineResponse\")\n public ProductLineType getProductLine();\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"version\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetVersionResponse\")\n public String getVersion();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"warningDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getWarningDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetWarningDate\")\n @ResponseWrapper(localName = \"getWarningDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetWarningDateResponse\")\n public XMLGregorianCalendar getWarningDate();\n\n}", "@WebService(name = \"TempWs\", targetNamespace = \"http://temperature.ws.com\")\r\npublic interface TempWs {\r\n\r\n\r\n /**\r\n * \r\n * @param fahrenheit\r\n * @return\r\n * returns float\r\n */\r\n @WebMethod(action = \"http://temperature.ws.com/toCelsius\")\r\n @WebResult(name = \"returnFahrenheit\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"toCelsius\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToCelsius\")\r\n @ResponseWrapper(localName = \"toCelsiusResponse\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToCelsiusResponse\")\r\n public float toCelsius(\r\n @WebParam(name = \"fahrenheit\", targetNamespace = \"\")\r\n float fahrenheit);\r\n\r\n /**\r\n * \r\n * @param celsius\r\n * @return\r\n * returns float\r\n */\r\n @WebMethod(action = \"http://temperature.ws.com/toFahrenheit\")\r\n @WebResult(name = \"returnCelsius\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"toFahrenheit\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToFahrenheit\")\r\n @ResponseWrapper(localName = \"toFahrenheitResponse\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToFahrenheitResponse\")\r\n public float toFahrenheit(\r\n @WebParam(name = \"celsius\", targetNamespace = \"\")\r\n float celsius);\r\n\r\n}", "@WebService(name = \"BankInterface\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BankInterface {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByID\")\n @ResponseWrapper(localName = \"getOperationByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByIDResponse\")\n public String getOperationByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.SET\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConti\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetConti\")\n @ResponseWrapper(localName = \"getContiResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetContiResponse\")\n public SET getConti();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationsByClientID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientID\")\n @ResponseWrapper(localName = \"getOperationsByClientIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientIDResponse\")\n public List<String> getOperationsByClientID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientIDs\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDs\")\n @ResponseWrapper(localName = \"getClientIDsResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDsResponse\")\n public List<String> getClientIDs();\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.MAP\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDbop\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbop\")\n @ResponseWrapper(localName = \"getDbopResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbopResponse\")\n public MAP getDbop();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByID\")\n @ResponseWrapper(localName = \"getClientByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByIDResponse\")\n public String getClientByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}", "@WebService(name = \"UserWebService\", targetNamespace = \"http://webservice.openmeetings.apache.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UserWebService {\n\n\n /**\n * \n * @param confirm\n * @param user\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.UserDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"add\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Add\")\n @ResponseWrapper(localName = \"addResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.AddResponse\")\n public UserDTO add(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"user\", targetNamespace = \"\")\n UserDTO user,\n @WebParam(name = \"confirm\", targetNamespace = \"\")\n Boolean confirm);\n\n /**\n * \n * @param sid\n * @return\n * returns java.util.List<cn.edu.service.userwebService.UserDTO>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"get\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Get\")\n @ResponseWrapper(localName = \"getResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.GetResponse\")\n public List<UserDTO> get(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid);\n\n /**\n * \n * @param options\n * @param user\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRoomHash\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.GetRoomHash\")\n @ResponseWrapper(localName = \"getRoomHashResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.GetRoomHashResponse\")\n public ServiceResult getRoomHash(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"user\", targetNamespace = \"\")\n ExternalUserDTO user,\n @WebParam(name = \"options\", targetNamespace = \"\")\n RoomOptionsDTO options);\n\n /**\n * \n * @param id\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"delete\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Delete\")\n @ResponseWrapper(localName = \"deleteResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.DeleteResponse\")\n public ServiceResult delete(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"id\", targetNamespace = \"\")\n long id);\n\n /**\n * \n * @param externaltype\n * @param externalid\n * @param sid\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteExternal\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.DeleteExternal\")\n @ResponseWrapper(localName = \"deleteExternalResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.DeleteExternalResponse\")\n public ServiceResult deleteExternal(\n @WebParam(name = \"sid\", targetNamespace = \"\")\n String sid,\n @WebParam(name = \"externaltype\", targetNamespace = \"\")\n String externaltype,\n @WebParam(name = \"externalid\", targetNamespace = \"\")\n String externalid);\n\n /**\n * \n * @param pass\n * @param user\n * @return\n * returns cn.edu.service.userwebService.ServiceResult\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"login\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.Login\")\n @ResponseWrapper(localName = \"loginResponse\", targetNamespace = \"http://webservice.openmeetings.apache.org/\", className = \"cn.edu.service.userwebService.LoginResponse\")\n public ServiceResult login(\n @WebParam(name = \"user\", targetNamespace = \"\")\n String user,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n String pass);\n\n}", "@WebService(targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", name = \"BillingProcessWebServices\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BillingProcessWebServices {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"billingProcess\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcess\")\n @WebMethod\n @ResponseWrapper(localName = \"billingProcessResponse\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcessResponse\")\n public co.nz.pizzashack.client.integration.ws.client.stub.BillingResponse billingProcess(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n co.nz.pizzashack.client.integration.ws.client.stub.BillingDto arg0\n ) throws FaultMessage;\n}", "@WebService(targetNamespace = \"http://iso8583.org/payload\", name = \"CoreServicePortType\")\n@XmlSeeAlso({ObjectFactory.class, org.team5.bank.core.server.service.model.xsd.ObjectFactory.class})\npublic interface CoreServicePortType {\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getTransactionHistory\", output = \"urn:getTransactionHistoryResponse\")\n @RequestWrapper(localName = \"getTransactionHistory\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistory\")\n @WebMethod(action = \"urn:getTransactionHistory\")\n @ResponseWrapper(localName = \"getTransactionHistoryResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistoryResponse\")\n public java.util.List<org.team5.bank.core.server.service.model.xsd.Transaction> getTransactionHistory(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getBalance\", output = \"urn:getBalanceResponse\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalance\")\n @WebMethod(action = \"urn:getBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalanceResponse\")\n public java.lang.String getBalance(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getAccount\", output = \"urn:getAccountResponse\")\n @RequestWrapper(localName = \"getAccount\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccount\")\n @WebMethod(action = \"urn:getAccount\")\n @ResponseWrapper(localName = \"getAccountResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccountResponse\")\n public org.team5.bank.core.server.service.model.xsd.Account getAccount(\n @WebParam(name = \"userId\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Long userId\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:withdraw\", output = \"urn:withdrawResponse\")\n @RequestWrapper(localName = \"withdraw\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Withdraw\")\n @WebMethod(action = \"urn:withdraw\")\n @ResponseWrapper(localName = \"withdrawResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.WithdrawResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse withdraw(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:fundTransfer\", output = \"urn:fundTransferResponse\")\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransfer\")\n @WebMethod(action = \"urn:fundTransfer\")\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransferResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse fundTransfer(\n @WebParam(name = \"from\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String from,\n @WebParam(name = \"to\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String to,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:deposit\", output = \"urn:depositResponse\")\n @RequestWrapper(localName = \"deposit\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Deposit\")\n @WebMethod(action = \"urn:deposit\")\n @ResponseWrapper(localName = \"depositResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.DepositResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse deposit(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n}", "@WebService\npublic interface HelloWorld {\n String sayHi(String name);\n\n}", "public interface AcSentEdiInterchangeDomesticCandidateRouteMessageServiceIF\n extends AcModelServiceIF\n{\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessageByWebKey(String webKey);\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAll();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllAvailable();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllWhere(String whereClause, Integer rowLimit);\n void insert(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void update(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void delete(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n}", "@WebService(targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", name = \"BankManagementInterface\")\r\n@XmlSeeAlso({budgetuserlibrary.gw.fmis.ibm.hr.infotypes.ObjectFactory.class, ObjectFactory.class, budgetuserlibrary.gw.fmis.ibm.hr.messages.ObjectFactory.class})\r\npublic interface BankManagementInterface {\r\n\r\n @WebResult(name = \"bankResponseMsg\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"retrieveBank\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.RetrieveBank\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"retrieveBankResponse\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.RetrieveBankResponse\")\r\n public budgetuserlibrary.gw.fmis.ibm.hr.messages.BankResponseMsg retrieveBank(\r\n @WebParam(name = \"bankRetrieveRequestMsg\", targetNamespace = \"\")\r\n budgetuserlibrary.gw.fmis.ibm.hr.messages.BankRetrieveRequestMsg bankRetrieveRequestMsg\r\n );\r\n\r\n @WebResult(name = \"bankResponseMsg\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"changeBank\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.ChangeBank\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"changeBankResponse\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.ChangeBankResponse\")\r\n public budgetuserlibrary.gw.fmis.ibm.hr.messages.BankResponseMsg changeBank(\r\n @WebParam(name = \"bankChangeRequestMsg\", targetNamespace = \"\")\r\n budgetuserlibrary.gw.fmis.ibm.hr.messages.BankChangeRequestMsg bankChangeRequestMsg\r\n );\r\n\r\n @WebResult(name = \"bankResponseMsg\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"createBank\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.CreateBank\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"createBankResponse\", targetNamespace = \"http://hr.ibm.fmis.gw.BudgetUserLibrary/interfaces/BankManagementInterface\", className = \"budgetuserlibrary.gw.fmis.ibm.hr.interfaces.bankmanagementinterface.CreateBankResponse\")\r\n public budgetuserlibrary.gw.fmis.ibm.hr.messages.BankResponseMsg createBank(\r\n @WebParam(name = \"bankCreationRequestMsg\", targetNamespace = \"\")\r\n budgetuserlibrary.gw.fmis.ibm.hr.messages.BankCreationRequestMsg bankCreationRequestMsg\r\n );\r\n}", "@WebService\r\n@SOAPBinding(style = Style.RPC)\r\n// @SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL) // optional\r\npublic interface DiaryWebService {\r\n\t@WebMethod\r\n\tString getAllRecord();\r\n}", "@WebService(targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", name = \"CartWebService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface CartWebService {\n\n @WebMethod\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.ValidateResponse\")\n @WebResult(name = \"order_id\", targetNamespace = \"\")\n public java.lang.String validate(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName\n ) throws PaymentException_Exception, UnknownCustomerException_Exception, EmptyCartException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"removeItemToCustomerCart\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.RemoveItemToCustomerCart\")\n @ResponseWrapper(localName = \"removeItemToCustomerCartResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.RemoveItemToCustomerCartResponse\")\n public void removeItemToCustomerCart(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName,\n @WebParam(name = \"item\", targetNamespace = \"\")\n stubs.cart.Item item\n ) throws UnknownCustomerException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"addItemToCustomerCart\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.AddItemToCustomerCart\")\n @ResponseWrapper(localName = \"addItemToCustomerCartResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.AddItemToCustomerCartResponse\")\n public void addItemToCustomerCart(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName,\n @WebParam(name = \"item\", targetNamespace = \"\")\n stubs.cart.Item item\n ) throws UnknownCustomerException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"getCustomerCartContents\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.GetCustomerCartContents\")\n @ResponseWrapper(localName = \"getCustomerCartContentsResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.GetCustomerCartContentsResponse\")\n @WebResult(name = \"cart_contents\", targetNamespace = \"\")\n public java.util.List<stubs.cart.Item> getCustomerCartContents(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName\n ) throws UnknownCustomerException_Exception;\n}", "@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}", "@WebService(name = \"JMeadowsData\", targetNamespace = \"http://webservice.jmeadows.DNS /\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface JMeadowsData {\n\n\n /**\n * \n * @param siteCode\n * @param verifyCode\n * @param accessCode\n * @param requestingApp\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.User\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"login\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.Login\")\n @ResponseWrapper(localName = \"loginResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LoginResponse\")\n public User login(\n @WebParam(name = \"siteCode\", targetNamespace = \"\")\n String siteCode,\n @WebParam(name = \"accessCode\", targetNamespace = \"\")\n String accessCode,\n @WebParam(name = \"verifyCode\", targetNamespace = \"\")\n String verifyCode,\n @WebParam(name = \"requestingApp\", targetNamespace = \"\")\n String requestingApp)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param authUserInfoQuery\n * @return\n * returns boolean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateUserSubjectDN\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.UpdateUserSubjectDN\")\n @ResponseWrapper(localName = \"updateUserSubjectDNResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.UpdateUserSubjectDNResponse\")\n public boolean updateUserSubjectDN(\n @WebParam(name = \"authUserInfoQuery\", targetNamespace = \"\")\n AuthUserInfo authUserInfoQuery)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param siteCode\n * @param verifyCode\n * @param cardID\n * @param accessCode\n * @param ipAddress\n * @param requestingApp\n * @param subjectDN\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.User\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"loginEnterprise\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LoginEnterprise\")\n @ResponseWrapper(localName = \"loginEnterpriseResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LoginEnterpriseResponse\")\n public User loginEnterprise(\n @WebParam(name = \"cardID\", targetNamespace = \"\")\n String cardID,\n @WebParam(name = \"siteCode\", targetNamespace = \"\")\n String siteCode,\n @WebParam(name = \"accessCode\", targetNamespace = \"\")\n String accessCode,\n @WebParam(name = \"verifyCode\", targetNamespace = \"\")\n String verifyCode,\n @WebParam(name = \"requestingApp\", targetNamespace = \"\")\n String requestingApp,\n @WebParam(name = \"ipAddress\", targetNamespace = \"\")\n String ipAddress,\n @WebParam(name = \"subjectDN\", targetNamespace = \"\")\n String subjectDN)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Patient>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"lookupPatient\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LookupPatient\")\n @ResponseWrapper(localName = \"lookupPatientResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LookupPatientResponse\")\n public List<Patient> lookupPatient(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.ResponsePatientQuery\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"lookupPatientPDWS\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LookupPatientPDWS\")\n @ResponseWrapper(localName = \"lookupPatientPDWSResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LookupPatientPDWSResponse\")\n public ResponsePatientQuery lookupPatientPDWS(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n PdwsQueryBean queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.Patient\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"selectPatient\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatient\")\n @ResponseWrapper(localName = \"selectPatientResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientResponse\")\n public Patient selectPatient(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.ResponsePatientSelect\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"selectPatientMVI\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientMVI\")\n @ResponseWrapper(localName = \"selectPatientMVIResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientMVIResponse\")\n public ResponsePatientSelect selectPatientMVI(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"selectPatientForVASensitive\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientForVASensitive\")\n @ResponseWrapper(localName = \"selectPatientForVASensitiveResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SelectPatientForVASensitiveResponse\")\n public void selectPatientForVASensitive(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"auditVARestrictedAccess\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.AuditVARestrictedAccess\")\n @ResponseWrapper(localName = \"auditVARestrictedAccessResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.AuditVARestrictedAccessResponse\")\n public void auditVARestrictedAccess(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"auditSensitiveRecordAccess\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.AuditSensitiveRecordAccess\")\n @ResponseWrapper(localName = \"auditSensitiveRecordAccessResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.AuditSensitiveRecordAccessResponse\")\n public void auditSensitiveRecordAccess(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAdmission>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientAdmissions\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAdmissions\")\n @ResponseWrapper(localName = \"getPatientAdmissionsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAdmissionsResponse\")\n public List<PatientAdmission> getPatientAdmissions(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientHistory>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientHistory\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientHistory\")\n @ResponseWrapper(localName = \"getPatientHistoryResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientHistoryResponse\")\n public List<PatientHistory> getPatientHistory(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Allergy>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientAllergies\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAllergies\")\n @ResponseWrapper(localName = \"getPatientAllergiesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAllergiesResponse\")\n public List<Allergy> getPatientAllergies(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Allergy>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDODVLERPatientAllergies\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetDODVLERPatientAllergies\")\n @ResponseWrapper(localName = \"getDODVLERPatientAllergiesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetDODVLERPatientAllergiesResponse\")\n public List<Allergy> getDODVLERPatientAllergies(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.AllergyDetail\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllergyDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAllergyDetail\")\n @ResponseWrapper(localName = \"getAllergyDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAllergyDetailResponse\")\n public AllergyDetail getAllergyDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientEncountersReport\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientEncountersReport\")\n @ResponseWrapper(localName = \"getPatientEncountersReportResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientEncountersReportResponse\")\n public FreeTextReport getPatientEncountersReport(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAppointments>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientAppointments\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAppointments\")\n @ResponseWrapper(localName = \"getPatientAppointmentsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientAppointmentsResponse\")\n public List<PatientAppointments> getPatientAppointments(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Encounter>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientEncounters\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientEncounters\")\n @ResponseWrapper(localName = \"getPatientEncountersResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientEncountersResponse\")\n public List<Encounter> getPatientEncounters(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.ClinicalReminder>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientClinicalReminders\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientClinicalReminders\")\n @ResponseWrapper(localName = \"getPatientClinicalRemindersResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientClinicalRemindersResponse\")\n public List<ClinicalReminder> getPatientClinicalReminders(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClinicalReminderDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetClinicalReminderDetail\")\n @ResponseWrapper(localName = \"getClinicalReminderDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetClinicalReminderDetailResponse\")\n public FreeTextReport getClinicalReminderDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientDemographics>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientDemographics\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDemographics\")\n @ResponseWrapper(localName = \"getPatientDemographicsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDemographicsResponse\")\n public List<PatientDemographics> getPatientDemographics(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientDemographicsDetail>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientDemographicsDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDemographicsDetail\")\n @ResponseWrapper(localName = \"getPatientDemographicsDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDemographicsDetailResponse\")\n public List<PatientDemographicsDetail> getPatientDemographicsDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Immunization>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientImmunizations\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientImmunizations\")\n @ResponseWrapper(localName = \"getPatientImmunizationsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientImmunizationsResponse\")\n public List<Immunization> getPatientImmunizations(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabOrder>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientLabs\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabs\")\n @ResponseWrapper(localName = \"getPatientLabsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabsResponse\")\n public List<LabOrder> getPatientLabs(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabResult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientLabResults\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabResults\")\n @ResponseWrapper(localName = \"getPatientLabResultsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabResultsResponse\")\n public List<LabResult> getPatientLabResults(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientLabReport\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabReport\")\n @ResponseWrapper(localName = \"getPatientLabReportResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabReportResponse\")\n public FreeTextReport getPatientLabReport(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Medication>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientMedications\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientMedications\")\n @ResponseWrapper(localName = \"getPatientMedicationsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientMedicationsResponse\")\n public List<Medication> getPatientMedications(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Form>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientForms\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientForms\")\n @ResponseWrapper(localName = \"getPatientFormsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientFormsResponse\")\n public List<Form> getPatientForms(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.ProgressNote>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientProgressNotes\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientProgressNotes\")\n @ResponseWrapper(localName = \"getPatientProgressNotesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientProgressNotesResponse\")\n public List<ProgressNote> getPatientProgressNotes(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.NoteImage\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getBHIENoteImage\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetBHIENoteImage\")\n @ResponseWrapper(localName = \"getBHIENoteImageResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetBHIENoteImageResponse\")\n public NoteImage getBHIENoteImage(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.ProgressNote>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientDischargeSummaries\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDischargeSummaries\")\n @ResponseWrapper(localName = \"getPatientDischargeSummariesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientDischargeSummariesResponse\")\n public List<ProgressNote> getPatientDischargeSummaries(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Consult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientConsultRequests\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientConsultRequests\")\n @ResponseWrapper(localName = \"getPatientConsultRequestsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientConsultRequestsResponse\")\n public List<Consult> getPatientConsultRequests(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Order>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientOrders\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientOrders\")\n @ResponseWrapper(localName = \"getPatientOrdersResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientOrdersResponse\")\n public List<Order> getPatientOrders(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Problem>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientProblemList\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientProblemList\")\n @ResponseWrapper(localName = \"getPatientProblemListResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientProblemListResponse\")\n public List<Problem> getPatientProblemList(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.RadiologyReport>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientRads\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientRads\")\n @ResponseWrapper(localName = \"getPatientRadsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientRadsResponse\")\n public List<RadiologyReport> getPatientRads(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Vitals>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientVitals\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientVitals\")\n @ResponseWrapper(localName = \"getPatientVitalsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientVitalsResponse\")\n public List<Vitals> getPatientVitals(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabResult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientLabTestResults\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabTestResults\")\n @ResponseWrapper(localName = \"getPatientLabTestResultsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientLabTestResultsResponse\")\n public List<LabResult> getPatientLabTestResults(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabResult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLabOrderResult\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetLabOrderResult\")\n @ResponseWrapper(localName = \"getLabOrderResultResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetLabOrderResultResponse\")\n public List<LabResult> getLabOrderResult(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.AdmissionDetail\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAdmissionDetails\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionDetails\")\n @ResponseWrapper(localName = \"getAdmissionDetailsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionDetailsResponse\")\n public AdmissionDetail getAdmissionDetails(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Diagnosis>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAdmissionDiagnosis\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionDiagnosis\")\n @ResponseWrapper(localName = \"getAdmissionDiagnosisResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionDiagnosisResponse\")\n public List<Diagnosis> getAdmissionDiagnosis(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Procedure>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAdmissionProcedures\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionProcedures\")\n @ResponseWrapper(localName = \"getAdmissionProceduresResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAdmissionProceduresResponse\")\n public List<Procedure> getAdmissionProcedures(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConsultReport\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetConsultReport\")\n @ResponseWrapper(localName = \"getConsultReportResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetConsultReportResponse\")\n public List<FreeTextReport> getConsultReport(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.User\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderProfile\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderProfile\")\n @ResponseWrapper(localName = \"getProviderProfileResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderProfileResponse\")\n public User getProviderProfile(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMedicationDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetMedicationDetail\")\n @ResponseWrapper(localName = \"getMedicationDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetMedicationDetailResponse\")\n public FreeTextReport getMedicationDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOrderDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetOrderDetail\")\n @ResponseWrapper(localName = \"getOrderDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetOrderDetailResponse\")\n public FreeTextReport getOrderDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Vitals>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientCurrentVitals\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientCurrentVitals\")\n @ResponseWrapper(localName = \"getPatientCurrentVitalsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientCurrentVitalsResponse\")\n public List<Vitals> getPatientCurrentVitals(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.InsuranceBean>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPatientInsurances\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientInsurances\")\n @ResponseWrapper(localName = \"getPatientInsurancesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetPatientInsurancesResponse\")\n public List<InsuranceBean> getPatientInsurances(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Procedure>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOutpatientProcedures\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetOutpatientProcedures\")\n @ResponseWrapper(localName = \"getOutpatientProceduresResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetOutpatientProceduresResponse\")\n public List<Procedure> getOutpatientProcedures(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.ProblemDetail\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProblemDetail\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProblemDetail\")\n @ResponseWrapper(localName = \"getProblemDetailResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProblemDetailResponse\")\n public ProblemDetail getProblemDetail(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProgressNote\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProgressNote\")\n @ResponseWrapper(localName = \"getProgressNoteResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProgressNoteResponse\")\n public FreeTextReport getProgressNote(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.RadiologyReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRadiologyReport\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetRadiologyReport\")\n @ResponseWrapper(localName = \"getRadiologyReportResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetRadiologyReportResponse\")\n public RadiologyReport getRadiologyReport(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.VlerDocument>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVLERDocumentList\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVLERDocumentList\")\n @ResponseWrapper(localName = \"getVLERDocumentListResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVLERDocumentListResponse\")\n public List<VlerDocument> getVLERDocumentList(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param vDoc\n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.VlerDocument\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVLERDocument\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVLERDocument\")\n @ResponseWrapper(localName = \"getVLERDocumentResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVLERDocumentResponse\")\n public VlerDocument getVLERDocument(\n @WebParam(name = \"vDoc\", targetNamespace = \"\")\n VlerDocument vDoc,\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Vlerccda>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDODVLERPatientCCDA\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetDODVLERPatientCCDA\")\n @ResponseWrapper(localName = \"getDODVLERPatientCCDAResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetDODVLERPatientCCDAResponse\")\n public List<Vlerccda> getDODVLERPatientCCDA(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Alert>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUserAlerts\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetUserAlerts\")\n @ResponseWrapper(localName = \"getUserAlertsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetUserAlertsResponse\")\n public List<Alert> getUserAlerts(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.FreeTextReport\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVisitNotes\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVisitNotes\")\n @ResponseWrapper(localName = \"getVisitNotesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVisitNotesResponse\")\n public FreeTextReport getVisitNotes(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param providerIen\n * @param siteCode\n * @param endDate\n * @param userNPI\n * @param patId\n * @param requestingApp\n * @param userName\n * @param category\n * @param userIen\n * @param startDate\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"logAudit\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LogAudit\")\n @ResponseWrapper(localName = \"logAuditResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.LogAuditResponse\")\n public void logAudit(\n @WebParam(name = \"siteCode\", targetNamespace = \"\")\n String siteCode,\n @WebParam(name = \"userIen\", targetNamespace = \"\")\n String userIen,\n @WebParam(name = \"providerIen\", targetNamespace = \"\")\n String providerIen,\n @WebParam(name = \"userNPI\", targetNamespace = \"\")\n String userNPI,\n @WebParam(name = \"userName\", targetNamespace = \"\")\n String userName,\n @WebParam(name = \"patId\", targetNamespace = \"\")\n String patId,\n @WebParam(name = \"category\", targetNamespace = \"\")\n String category,\n @WebParam(name = \"requestingApp\", targetNamespace = \"\")\n String requestingApp,\n @WebParam(name = \"startDate\", targetNamespace = \"\")\n String startDate,\n @WebParam(name = \"endDate\", targetNamespace = \"\")\n String endDate)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAppointments>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderAppointments\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderAppointments\")\n @ResponseWrapper(localName = \"getProviderAppointmentsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderAppointmentsResponse\")\n public List<PatientAppointments> getProviderAppointments(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAdmission>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderAdmissions\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderAdmissions\")\n @ResponseWrapper(localName = \"getProviderAdmissionsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderAdmissionsResponse\")\n public List<PatientAdmission> getProviderAdmissions(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.PatientAdmission>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getWardAdmissions\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetWardAdmissions\")\n @ResponseWrapper(localName = \"getWardAdmissionsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetWardAdmissionsResponse\")\n public List<PatientAdmission> getWardAdmissions(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.ProgressNote>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderUnsignedNotes\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderUnsignedNotes\")\n @ResponseWrapper(localName = \"getProviderUnsignedNotesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderUnsignedNotesResponse\")\n public List<ProgressNote> getProviderUnsignedNotes(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Consult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderConsultsRequested\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderConsultsRequested\")\n @ResponseWrapper(localName = \"getProviderConsultsRequestedResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderConsultsRequestedResponse\")\n public List<Consult> getProviderConsultsRequested(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Consult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderConsultsReceived\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderConsultsReceived\")\n @ResponseWrapper(localName = \"getProviderConsultsReceivedResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderConsultsReceivedResponse\")\n public List<Consult> getProviderConsultsReceived(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Order>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderOrdersPending\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderOrdersPending\")\n @ResponseWrapper(localName = \"getProviderOrdersPendingResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderOrdersPendingResponse\")\n public List<Order> getProviderOrdersPending(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Order>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderOrdersResulted\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderOrdersResulted\")\n @ResponseWrapper(localName = \"getProviderOrdersResultedResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderOrdersResultedResponse\")\n public List<Order> getProviderOrdersResulted(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.LabResult>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderLabAbnormalResults\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderLabAbnormalResults\")\n @ResponseWrapper(localName = \"getProviderLabAbnormalResultsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderLabAbnormalResultsResponse\")\n public List<LabResult> getProviderLabAbnormalResults(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.lang.String\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getJanusGUIConfig\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetJanusGUIConfig\")\n @ResponseWrapper(localName = \"getJanusGUIConfigResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetJanusGUIConfigResponse\")\n public String getJanusGUIConfig(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param cfg\n * @param queryBean\n * @return\n * returns boolean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"setJanusGUIConfig\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetJanusGUIConfig\")\n @ResponseWrapper(localName = \"setJanusGUIConfigResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetJanusGUIConfigResponse\")\n public boolean setJanusGUIConfig(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean,\n @WebParam(name = \"cfg\", targetNamespace = \"\")\n String cfg)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param queryBean\n * @return\n * returns java.lang.String\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProviderFlags\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderFlags\")\n @ResponseWrapper(localName = \"getProviderFlagsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetProviderFlagsResponse\")\n public String getProviderFlags(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param flags\n * @param queryBean\n * @return\n * returns boolean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"setProviderFlags\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetProviderFlags\")\n @ResponseWrapper(localName = \"setProviderFlagsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetProviderFlagsResponse\")\n public boolean setProviderFlags(\n @WebParam(name = \"queryBean\", targetNamespace = \"\")\n JMeadowsQuery queryBean,\n @WebParam(name = \"flags\", targetNamespace = \"\")\n String flags)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param smartCardID\n * @param smartCardAgency\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.IehrUserProfile\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getIehrUserProfile\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetIehrUserProfile\")\n @ResponseWrapper(localName = \"getIehrUserProfileResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetIehrUserProfileResponse\")\n public IehrUserProfile getIehrUserProfile(\n @WebParam(name = \"smartCardID\", targetNamespace = \"\")\n String smartCardID,\n @WebParam(name = \"smartCardAgency\", targetNamespace = \"\")\n String smartCardAgency)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @param iehrUserProfile\n * @return\n * returns boolean\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"setIehrUserProfile\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetIehrUserProfile\")\n @ResponseWrapper(localName = \"setIehrUserProfileResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.SetIehrUserProfileResponse\")\n public boolean setIehrUserProfile(\n @WebParam(name = \"iehrUserProfile\", targetNamespace = \"\")\n IehrUserProfile iehrUserProfile)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Site>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSites\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetSites\")\n @ResponseWrapper(localName = \"getSitesResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetSitesResponse\")\n public List<Site> getSites();\n\n /**\n * \n * @param cardID\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.AuditEntry>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLoginInfo\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetLoginInfo\")\n @ResponseWrapper(localName = \"getLoginInfoResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetLoginInfoResponse\")\n public List<AuditEntry> getLoginInfo(\n @WebParam(name = \"cardID\", targetNamespace = \"\")\n String cardID)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getServiceErrors\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetServiceErrors\")\n @ResponseWrapper(localName = \"getServiceErrorsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetServiceErrorsResponse\")\n public String getServiceErrors();\n\n /**\n * \n * @param authUserInfoQuery\n * @return\n * returns gov.va.med.jmeadows_2_3_1.webservice.AuthUserInfo\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAuthUser\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAuthUser\")\n @ResponseWrapper(localName = \"getAuthUserResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetAuthUserResponse\")\n public AuthUserInfo getAuthUser(\n @WebParam(name = \"authUserInfoQuery\", targetNamespace = \"\")\n AuthUserInfo authUserInfoQuery)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n */\n @WebMethod\n @RequestWrapper(localName = \"resetStatus\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.ResetStatus\")\n @ResponseWrapper(localName = \"resetStatusResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.ResetStatusResponse\")\n public void resetStatus();\n\n /**\n * \n * @param userId\n * @return\n * returns java.util.List<gov.va.med.jmeadows_2_3_1.webservice.Patient>\n * @throws JMeadowsException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRecentlyViewedPatients\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetRecentlyViewedPatients\")\n @ResponseWrapper(localName = \"getRecentlyViewedPatientsResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetRecentlyViewedPatientsResponse\")\n public List<Patient> getRecentlyViewedPatients(\n @WebParam(name = \"userId\", targetNamespace = \"\")\n String userId)\n throws JMeadowsException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetVersionResponse\")\n public String getVersion();\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStatus\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetStatus\")\n @ResponseWrapper(localName = \"getStatusResponse\", targetNamespace = \"http://webservice.jmeadows.DNS /\", className = \"gov.va.med.jmeadows_2_3_1.webservice.GetStatusResponse\")\n public String getStatus();\n\n}", "@WebService(name = \"StudentWebService\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface StudentWebService {\n\n\n /**\n * \n * @param entity\n * @return\n * returns com.wishmaster.ifmo.ws.jaxws.client.generated.Student\n * @throws InternalException\n * @throws IllegalRequestException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"update\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.Update\")\n @ResponseWrapper(localName = \"updateResponse\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.UpdateResponse\")\n @Action(input = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/updateRequest\", output = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/updateResponse\", fault = {\n @FaultAction(className = IllegalRequestException.class, value = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/update/Fault/IllegalRequestException\"),\n @FaultAction(className = InternalException.class, value = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/update/Fault/InternalException\")\n })\n public Student update(\n @WebParam(name = \"entity\", targetNamespace = \"\")\n Student entity)\n throws IllegalRequestException, InternalException\n ;\n\n /**\n *\n * @param id\n * @throws InternalException\n */\n @WebMethod\n @RequestWrapper(localName = \"delete\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.Delete\")\n @ResponseWrapper(localName = \"deleteResponse\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.DeleteResponse\")\n @Action(input = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/deleteRequest\", output = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/deleteResponse\", fault = {\n @FaultAction(className = InternalException.class, value = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/delete/Fault/InternalException\")\n })\n public void delete(\n @WebParam(name = \"id\", targetNamespace = \"\")\n int id)\n throws InternalException\n ;\n\n /**\n *\n * @param entity\n * @return\n * returns java.lang.Integer\n * @throws InternalException\n * @throws IllegalRequestException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"create\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.Create\")\n @ResponseWrapper(localName = \"createResponse\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.CreateResponse\")\n @Action(input = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/createRequest\", output = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/createResponse\", fault = {\n @FaultAction(className = IllegalRequestException.class, value = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/create/Fault/IllegalRequestException\"),\n @FaultAction(className = InternalException.class, value = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/create/Fault/InternalException\")\n })\n public Integer create(\n @WebParam(name = \"entity\", targetNamespace = \"\")\n Student entity)\n throws IllegalRequestException, InternalException\n ;\n\n /**\n *\n * @param filter\n * @return\n * returns java.util.List<com.wishmaster.ifmo.ws.jaxws.client.generated.Student>\n * @throws InternalException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"search\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.Search\")\n @ResponseWrapper(localName = \"searchResponse\", targetNamespace = \"http://jaxws.ws.ifmo.wishmaster.com/\", className = \"com.wishmaster.ifmo.ws.jaxws.client.generated.SearchResponse\")\n @Action(input = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/searchRequest\", output = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/searchResponse\", fault = {\n @FaultAction(className = InternalException.class, value = \"http://jaxws.ws.ifmo.wishmaster.com/StudentWebService/search/Fault/InternalException\")\n })\n public List<Student> search(\n @WebParam(name = \"filter\", targetNamespace = \"\")\n StudentsFilter filter)\n throws InternalException\n ;\n\n}", "@WebService\n@SOAPBinding (style = SOAPBinding.Style.RPC)\npublic interface SystemeAmendes {\n\n @WebMethod\n void enregistrer (Voiture car);\n\n @WebMethod\n int signaler(String immatriculation, String modele, int tarif);\n\n @WebMethod\n String lister(String immatriculation);\n\n @WebMethod\n int payer(int numero, String nom, String prenom);\n\n\n}", "@WebService(name = \"UsersTraining\", targetNamespace = \"http://SOAPService.BusinessLogic/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface UsersTraining {\r\n\r\n\r\n /**\r\n * \r\n * @param monthFilter\r\n * @param eventName\r\n * @return\r\n * returns BusinessLogic.SOAPServiceClient.RobWS\r\n */\r\n @WebMethod(operationName = \"UsuariosACapacitar\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"UsuariosACapacitar\", targetNamespace = \"http://SOAPService.BusinessLogic/\", className = \"BusinessLogic.SOAPServiceClient.UsuariosACapacitar\")\r\n @ResponseWrapper(localName = \"UsuariosACapacitarResponse\", targetNamespace = \"http://SOAPService.BusinessLogic/\", className = \"BusinessLogic.SOAPServiceClient.UsuariosACapacitarResponse\")\r\n @Action(input = \"http://SOAPService.BusinessLogic/UsersTraining/UsuariosACapacitarRequest\", output = \"http://SOAPService.BusinessLogic/UsersTraining/UsuariosACapacitarResponse\")\r\n public RobWS usuariosACapacitar(\r\n @WebParam(name = \"EventName\", targetNamespace = \"\")\r\n String eventName,\r\n @WebParam(name = \"MonthFilter\", targetNamespace = \"\")\r\n int monthFilter);\r\n\r\n}", "@WebService(targetNamespace = \"http://server.gameco.com/\", name = \"IGameExchangeService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface IGameExchangeService {\n\n @WebMethod(action = \"urn:SetMoves\")\n @RequestWrapper(localName = \"setMoves\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.SetMoves\")\n @ResponseWrapper(localName = \"setMovesResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.SetMovesResponse\")\n public void setMoves(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n com.gameco.server.GameHistory arg0\n );\n\n @WebMethod(action = \"urn:SetMove\")\n @RequestWrapper(localName = \"setMove\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.SetMove\")\n @ResponseWrapper(localName = \"setMoveResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.SetMoveResponse\")\n public void setMove(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n com.gameco.server.GameMove arg0\n );\n\n @WebMethod(action = \"urn:GetGames\")\n @RequestWrapper(localName = \"getGames\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.GetGames\")\n @ResponseWrapper(localName = \"getGamesResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.GetGamesResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.util.List<com.gameco.server.PlayingGame> getGames();\n\n @WebMethod(action = \"urn:Invite\")\n @RequestWrapper(localName = \"invite\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.Invite\")\n @ResponseWrapper(localName = \"inviteResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.InviteResponse\")\n public void invite(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.util.List<java.lang.String> arg0\n );\n\n @WebMethod(action = \"urn:Join\")\n @RequestWrapper(localName = \"join\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.Join\")\n @ResponseWrapper(localName = \"joinResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.JoinResponse\")\n public void join(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n\n @WebMethod(action = \"urn:GetUsers\")\n @RequestWrapper(localName = \"getUsers\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.GetUsers\")\n @ResponseWrapper(localName = \"getUsersResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.GetUsersResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.util.List<com.gameco.server.User> getUsers();\n\n @WebMethod(action = \"urn:Logout\")\n @RequestWrapper(localName = \"logout\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.Logout\")\n @ResponseWrapper(localName = \"logoutResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.LogoutResponse\")\n public void logout();\n\n @WebMethod(action = \"urn:AddCallback\")\n @RequestWrapper(localName = \"addCallback\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.AddCallback\")\n @ResponseWrapper(localName = \"addCallbackResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.AddCallbackResponse\")\n public void addCallback(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n javax.xml.ws.wsaddressing.W3CEndpointReference arg0\n );\n\n @WebMethod(action = \"urn:Accept\")\n @RequestWrapper(localName = \"accept\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.Accept\")\n @ResponseWrapper(localName = \"acceptResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.AcceptResponse\")\n public void accept(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n\n @WebMethod(action = \"urn:GetAvaibleGames\")\n @RequestWrapper(localName = \"getAvaibleGames\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.GetAvaibleGames\")\n @ResponseWrapper(localName = \"getAvaibleGamesResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.GetAvaibleGamesResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.util.List<java.lang.String> getAvaibleGames();\n\n @WebMethod(action = \"urn:Login\")\n @RequestWrapper(localName = \"login\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.Login\")\n @ResponseWrapper(localName = \"loginResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.LoginResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public com.gameco.server.User login(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n java.lang.String arg1\n ) throws CredentialException_Exception;\n\n @WebMethod(action = \"urn:Cancel\")\n @RequestWrapper(localName = \"cancel\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.Cancel\")\n @ResponseWrapper(localName = \"cancelResponse\", targetNamespace = \"http://server.gameco.com/\", className = \"com.gameco.server.CancelResponse\")\n public void cancel(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n}", "@WebService(name = \"InformacionClientePort\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface InformacionClientePort {\n\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.ListaCLienteType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/consultarClientes\")\n @WebResult(name = \"consultarClientesRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public ListaCLienteType consultarClientes(@WebParam(name = \"consultarClientesRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.MoraType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/clientePoseeMora\")\n @WebResult(name = \"clientePoseeMoraRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public MoraType clientePoseeMora(@WebParam(name = \"clientePoseeMoraRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n}", "@WebService(name = \"DomesticRemittanceByPartnerService\", targetNamespace = \"http://www.quantiguous.com/services\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DomesticRemittanceByPartnerService {\n\n\n /**\n * \n * @param beneficiaryAccountNo\n * @param remitterToBeneficiaryInfo\n * @param remitterAddress\n * @param remitterIFSC\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param remitterName\n * @param beneficiaryAddress\n * @param uniqueResponseNo\n * @param version\n * @param requestReferenceNo\n * @param beneficiaryIFSC\n * @param debitAccountNo\n * @param uniqueRequestNo\n * @param beneficiaryName\n * @param customerID\n * @param beneficiaryContact\n * @param transferType\n * @param attemptNo\n * @param transferCurrencyCode\n * @param remitterContact\n * @param remitterAccountNo\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/remit\")\n @RequestWrapper(localName = \"remit\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.Remit\")\n @ResponseWrapper(localName = \"remitResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.RemitResponse\")\n public void remit(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"uniqueRequestNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String uniqueRequestNo,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"debitAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String debitAccountNo,\n @WebParam(name = \"remitterAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterAccountNo,\n @WebParam(name = \"remitterIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterIFSC,\n @WebParam(name = \"remitterName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterName,\n @WebParam(name = \"remitterAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType remitterAddress,\n @WebParam(name = \"remitterContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType remitterContact,\n @WebParam(name = \"beneficiaryName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryName,\n @WebParam(name = \"beneficiaryAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType beneficiaryAddress,\n @WebParam(name = \"beneficiaryContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType beneficiaryContact,\n @WebParam(name = \"beneficiaryAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryAccountNo,\n @WebParam(name = \"beneficiaryIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryIFSC,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n CurrencyCodeType transferCurrencyCode,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\")\n BigDecimal transferAmount,\n @WebParam(name = \"remitterToBeneficiaryInfo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterToBeneficiaryInfo,\n @WebParam(name = \"uniqueResponseNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> uniqueResponseNo,\n @WebParam(name = \"attemptNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> attemptNo,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> requestReferenceNo,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param accountCurrencyCode\n * @param partnerCode\n * @param accountNo\n * @param accountBalanceAmount\n * @param customerID\n * @param version\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getBalance\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalanceResponse\")\n public void getBalance(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"accountCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> accountCurrencyCode,\n @WebParam(name = \"accountBalanceAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> accountBalanceAmount,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert);\n\n /**\n * \n * @param reqTransferType\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param transferType\n * @param transactionDate\n * @param version\n * @param transferCurrencyCode\n * @param requestReferenceNo\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getRemittanceStatus\")\n @RequestWrapper(localName = \"getRemittanceStatus\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatus\")\n @ResponseWrapper(localName = \"getRemittanceStatusResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatusResponse\")\n public void getRemittanceStatus(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String requestReferenceNo,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"reqTransferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> reqTransferType,\n @WebParam(name = \"transactionDate\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<XMLGregorianCalendar> transactionDate,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> transferAmount,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> transferCurrencyCode,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param numDebits\n * @param partnerCode\n * @param dateRange\n * @param accountNo\n * @param customerID\n * @param closingBalance\n * @param numTransactions\n * @param numCredits\n * @param version\n * @param openingBalance\n * @param transactionsArray\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getTransactions\")\n @RequestWrapper(localName = \"getTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactions\")\n @ResponseWrapper(localName = \"getTransactionsResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactionsResponse\")\n public void getTransactions(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"dateRange\", targetNamespace = \"http://www.quantiguous.com/services\")\n DateRangeType dateRange,\n @WebParam(name = \"openingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> openingBalance,\n @WebParam(name = \"numDebits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numDebits,\n @WebParam(name = \"numCredits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numCredits,\n @WebParam(name = \"closingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> closingBalance,\n @WebParam(name = \"numTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numTransactions,\n @WebParam(name = \"transactionsArray\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionsArrayType> transactionsArray);\n\n}", "@WebService(targetNamespace = \"http://example.org/signature\", name = \"SignatureDocumentLiteral\")\n@XmlSeeAlso({ ObjectFactory.class })\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface SignatureDocumentLiteral\n{\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInAlternate\", output = \"http://example.org/action/SignatureOutAlternate\")\n @WebMethod(operationName = \"Sign2\", action = \"http://example.org/action/SignatureInAlternate\")\n public java.lang.String sign2(@WebParam(partName = \"SignatureIn\", name = \"SignatureIn\", targetNamespace = \"http://example.org/signature\")\n java.lang.String signatureIn);\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInEmpty\", output = \"http://example.org/action/SignatureOutEmpty\")\n @WebMethod(operationName = \"Sign3\", action = \"http://example.org/action/SignatureInEmpty\")\n public java.lang.String sign3();\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInAlternateEmpty\", output = \"http://example.org/action/SignatureOutAlternateEmpty\")\n @WebMethod(operationName = \"Sign4\", action = \"http://example.org/action/SignatureInAlternateEmpty\")\n public java.lang.String sign4();\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureInMultipart\", output = \"http://example.org/action/SignatureOutMultipart\")\n @WebMethod(operationName = \"Sign6\", action = \"http://example.org/action/SignatureInMultipart\")\n public java.lang.String sign6(@WebParam(partName = \"parameters\", name = \"SignatureInMultipartMessage\", targetNamespace = \"http://example.org/signature\")\n SignatureInMultipartMessage parameters);\n\n @WebResult(name = \"SignatureOut\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOut\")\n @Action(input = \"http://example.org/action/SignatureIn\", output = \"http://example.org/action/SignatureOut\")\n @WebMethod(operationName = \"Sign1\", action = \"http://example.org/action/SignatureIn\")\n public java.lang.String sign1(@WebParam(partName = \"SignatureIn\", name = \"SignatureIn\", targetNamespace = \"http://example.org/signature\")\n java.lang.String signatureIn);\n\n @Action(input = \"http://example.org/action/SignatureEmptyPartIn\", output = \"http://example.org/action/SignatureEmptyPartOut\")\n @WebMethod(operationName = \"Sign5\", action = \"http://example.org/action/SignatureEmptyPartIn\")\n public void sign5();\n\n @WebResult(name = \"SignatureOutHeaderMember\", targetNamespace = \"http://example.org/signature\", partName = \"SignatureOutHeaderMember\")\n @Action(input = \"http://example.org/action/SignatureHeaderIn\", output = \"http://example.org/action/SignatureHeaderReply\", fault = { @FaultAction(className = SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage.class, value = \"http://example.org/action/SignatureHeaderFault\") })\n @WebMethod(operationName = \"Sign7\", action = \"http://example.org/action/SignatureHeaderIn\")\n public java.lang.String sign7(@WebParam(partName = \"SignatureInHeaderMember\", name = \"SignatureInHeaderMember\", targetNamespace = \"http://example.org/signature\")\n java.lang.String signatureInHeaderMember,\n @WebParam(partName = \"HeaderText\", mode = WebParam.Mode.INOUT, name = \"SignatureOutHeader\", targetNamespace = \"http://example.org/signature\", header = true)\n javax.xml.ws.Holder<java.lang.String> headerText) throws SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage;\n\n}", "@WebService(\n name = \"ITransactionService\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ITransactionService {\n\n\n /**\n * \n * @param startDate\n * @param endDate\n * @param productId\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.TransactionResponse\n */\n @WebMethod\n @WebResult(name = \"TransactionResponse\", targetNamespace = \"\")\n @RequestWrapper(\n localName = \"getChargeBackTransactions\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetChargeBackTransactions\")\n @ResponseWrapper(\n localName = \"getChargeBackTransactionsResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetChargeBackTransactionsResponse\")\n public TransactionResponse getChargeBackTransactions(\n @WebParam(name = \"ProductId\", targetNamespace = \"\") String productId,\n @WebParam(name = \"StartDate\", targetNamespace = \"\") String startDate,\n @WebParam(name = \"EndDate\", targetNamespace = \"\") String endDate);\n\n /**\n * \n * @param startDate\n * @param endDate\n * @param productId\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.TransactionResponse\n */\n @WebMethod\n @WebResult(\n name = \"TransactionResponse\",\n targetNamespace = \"\")\n @RequestWrapper(\n localName = \"getVoidTransactions\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetVoidTransactions\")\n @ResponseWrapper(\n localName = \"getVoidTransactionsResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetVoidTransactionsResponse\")\n public TransactionResponse getVoidTransactions(\n @WebParam(name = \"ProductId\", targetNamespace = \"\") String productId,\n @WebParam(name = \"StartDate\", targetNamespace = \"\") String startDate,\n @WebParam(name = \"EndDate\", targetNamespace = \"\") String endDate);\n\n /**\n * \n * @param cancelPaymentRequest\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.TransactionStatusResponse\n */\n @WebMethod\n @WebResult(\n name = \"TransactionStatusResponse\",\n targetNamespace = \"\")\n @RequestWrapper(\n localName = \"cancelPayment\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.CancelPayment\")\n @ResponseWrapper(\n localName = \"cancelPaymentResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.CancelPaymentResponse\")\n public TransactionStatusResponse cancelPayment(\n @WebParam(\n name = \"CancelPaymentRequest\",\n targetNamespace = \"\") CancelPaymentRequest cancelPaymentRequest);\n\n /**\n * \n * @param startDate\n * @param endDate\n * @param cdeName\n * @param cdeValue\n * @param productId\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.TransactionStatusResponse\n */\n @WebMethod\n @WebResult(name = \"TransactionStatusResponse\", targetNamespace = \"\")\n @RequestWrapper(\n localName = \"getTransactionStatus\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetTransactionStatus\")\n @ResponseWrapper(\n localName = \"getTransactionStatusResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetTransactionStatusResponse\")\n public TransactionStatusResponse getTransactionStatus(\n @WebParam(name = \"ProductId\", targetNamespace = \"\") String productId,\n @WebParam(name = \"CDEName\", targetNamespace = \"\") String cdeName,\n @WebParam(name = \"CDEValue\", targetNamespace = \"\") String cdeValue,\n @WebParam(name = \"StartDate\", targetNamespace = \"\") String startDate,\n @WebParam(name = \"EndDate\", targetNamespace = \"\") String endDate);\n\n /**\n * \n * @param startDate\n * @param endDate\n * @param productId\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.TransactionResponse\n */\n @WebMethod\n @WebResult(name = \"TransactionResponse\", targetNamespace = \"\")\n @RequestWrapper(\n localName = \"getRefundTransactions\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetRefundTransactions\")\n @ResponseWrapper(\n localName = \"getRefundTransactionsResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetRefundTransactionsResponse\")\n public TransactionResponse getRefundTransactions(\n @WebParam(name = \"ProductId\", targetNamespace = \"\") String productId,\n @WebParam(name = \"StartDate\", targetNamespace = \"\") String startDate,\n @WebParam(name = \"EndDate\", targetNamespace = \"\") String endDate);\n\n /**\n * \n * @param confirmationCode\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.PaymentHistoryResponse\n */\n @WebMethod\n @WebResult(name = \"PaymentHistoryResponse\", targetNamespace = \"\")\n @RequestWrapper(\n localName = \"getPaymentHistory\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetPaymentHistory\")\n @ResponseWrapper(\n localName = \"getPaymentHistoryResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetPaymentHistoryResponse\")\n public PaymentHistoryResponse getPaymentHistory(\n @WebParam(name = \"ConfirmationCode\", targetNamespace = \"\") List<String> confirmationCode);\n\n /**\n * \n * @param startDate\n * @param endDate\n * @param productId\n * @return returns\n * upbillpay.applibs.transactionHistory.libs.TransactionResponse\n */\n @WebMethod\n @WebResult(name = \"TransactionResponse\", targetNamespace = \"\")\n @RequestWrapper(\n localName = \"getAchReturnTransactions\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetAchReturnTransactions\")\n @ResponseWrapper(\n localName = \"getAchReturnTransactionsResponse\",\n targetNamespace = \"http://transaction.provider.webservice.officialpayments.com/\",\n className = \"upbillpay.applibs.transactionHistory.libs.GetAchReturnTransactionsResponse\")\n public TransactionResponse getAchReturnTransactions(\n @WebParam(name = \"ProductId\", targetNamespace = \"\") String productId,\n @WebParam(name = \"StartDate\", targetNamespace = \"\") String startDate,\n @WebParam(name = \"EndDate\", targetNamespace = \"\") String endDate);\n\n}", "@WebService(name = \"LDBSVServiceSoap\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2012_01_13.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2013_11_28.token.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2014_02_20.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2016_02_16.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2007_10_10.ldb.commontypes.ObjectFactory.class\r\n})\r\npublic interface LDBSVServiceSoap {\r\n\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByCRS\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByCRS(\r\n @WebParam(name = \"GetArrivalDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByCRS\")\r\n @WebResult(name = \"GetArrivalBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByCRS(\r\n @WebParam(name = \"GetArrivalBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByCRS\")\r\n @WebResult(name = \"GetDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByCRS(\r\n @WebParam(name = \"GetDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetServiceDetailsByRID\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetServiceDetailsByRID\")\r\n @WebResult(name = \"GetServiceDetailsByRIDResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetServiceDetailsResponseType getServiceDetailsByRID(\r\n @WebParam(name = \"GetServiceDetailsByRIDRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetServiceDetailsByRIDParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryServices\")\r\n @WebResult(name = \"QueryServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryServicesResponseType queryServices(\r\n @WebParam(name = \"QueryServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCode\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCode\")\r\n @WebResult(name = \"GetReasonCodeResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeResponseType getReasonCode(\r\n @WebParam(name = \"GetReasonCodeRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetReasonCodeRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeListResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCodeList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCodeList\")\r\n @WebResult(name = \"GetReasonCodeListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeListResponseType getReasonCodeList(\r\n @WebParam(name = \"GetReasonCodeListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetDisruptionListResponseType\r\n */\r\n @WebMethod(operationName = \"GetDisruptionList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDisruptionList\")\r\n @WebResult(name = \"GetDisruptionListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetDisruptionListResponseType getDisruptionList(\r\n @WebParam(name = \"GetDisruptionListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDisruptionListRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetSourceInstanceNamesResponseType\r\n */\r\n @WebMethod(operationName = \"GetSourceInstanceNames\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetSourceInstanceNames\")\r\n @WebResult(name = \"GetSourceInstanceNamesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetSourceInstanceNamesResponseType getSourceInstanceNames(\r\n @WebParam(name = \"GetSourceInstanceNamesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricDepartureBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricDepartureBoard\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricDepartureBoard\")\r\n @WebResult(name = \"GetHistoricDepartureBoardResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricDepartureBoardResponseType getHistoricDepartureBoard(\r\n @WebParam(name = \"GetHistoricDepartureBoardRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricDepartureBoardRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricServiceDetails\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricServiceDetails\")\r\n @WebResult(name = \"GetHistoricServiceDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricServiceDetailsResponseType getHistoricServiceDetails(\r\n @WebParam(name = \"GetHistoricServiceDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricServiceDetailsRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricTimeLineResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricTimeLine\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricTimeLine\")\r\n @WebResult(name = \"GetHistoricTimeLineResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricTimeLineResponseType getHistoricTimeLine(\r\n @WebParam(name = \"GetHistoricTimeLineRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricTimeLineRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryHistoricServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryHistoricServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryHistoricServices\")\r\n @WebResult(name = \"QueryHistoricServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryHistoricServicesResponseType queryHistoricServices(\r\n @WebParam(name = \"QueryHistoricServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryHistoricServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrDepBoardWithDetails\")\r\n @WebResult(name = \"GetArrDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrDepBoardWithDetails(\r\n @WebParam(name = \"GetArrDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrBoardWithDetails\")\r\n @WebResult(name = \"GetArrBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrBoardWithDetails(\r\n @WebParam(name = \"GetArrBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetDepBoardWithDetails\")\r\n @WebResult(name = \"GetDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getDepBoardWithDetails(\r\n @WebParam(name = \"GetDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDepartures\")\r\n @WebResult(name = \"GetNextDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getNextDepartures(\r\n @WebParam(name = \"GetNextDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDepartures\")\r\n @WebResult(name = \"GetFastestDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getFastestDepartures(\r\n @WebParam(name = \"GetFastestDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDeparturesWithDetails\")\r\n @WebResult(name = \"GetNextDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getNextDeparturesWithDetails(\r\n @WebParam(name = \"GetNextDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDeparturesWithDetails\")\r\n @WebResult(name = \"GetFastestDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getFastestDeparturesWithDetails(\r\n @WebParam(name = \"GetFastestDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n}", "@WebService(name = \"UtsWsHistoryController\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UtsWsHistoryController {\n\n\n /**\n * \n * @param ticket\n * @param atomId\n * @param version\n * @return\n * returns java.util.List<UtsMetathesaurusHistory.AtomMovementDTO>\n * @throws UtsFault_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAtomMovements\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetAtomMovements\")\n @ResponseWrapper(localName = \"getAtomMovementsResponse\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetAtomMovementsResponse\")\n public List<AtomMovementDTO> getAtomMovements(\n @WebParam(name = \"ticket\", targetNamespace = \"\")\n String ticket,\n @WebParam(name = \"version\", targetNamespace = \"\")\n String version,\n @WebParam(name = \"atomId\", targetNamespace = \"\")\n String atomId)\n throws UtsFault_Exception\n ;\n\n /**\n * \n * @param ticket\n * @param conceptId\n * @param version\n * @return\n * returns java.util.List<java.lang.String>\n * @throws UtsFault_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getBequeathedToConceptCuis\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetBequeathedToConceptCuis\")\n @ResponseWrapper(localName = \"getBequeathedToConceptCuisResponse\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetBequeathedToConceptCuisResponse\")\n public List<String> getBequeathedToConceptCuis(\n @WebParam(name = \"ticket\", targetNamespace = \"\")\n String ticket,\n @WebParam(name = \"version\", targetNamespace = \"\")\n String version,\n @WebParam(name = \"conceptId\", targetNamespace = \"\")\n String conceptId)\n throws UtsFault_Exception\n ;\n\n /**\n * \n * @param ticket\n * @param fromVersion\n * @param conceptId\n * @param version\n * @return\n * returns java.util.List<UtsMetathesaurusHistory.ConceptBequeathalDTO>\n * @throws UtsFault_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConceptBequeathals\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetConceptBequeathals\")\n @ResponseWrapper(localName = \"getConceptBequeathalsResponse\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetConceptBequeathalsResponse\")\n public List<ConceptBequeathalDTO> getConceptBequeathals(\n @WebParam(name = \"ticket\", targetNamespace = \"\")\n String ticket,\n @WebParam(name = \"version\", targetNamespace = \"\")\n String version,\n @WebParam(name = \"conceptId\", targetNamespace = \"\")\n String conceptId,\n @WebParam(name = \"fromVersion\", targetNamespace = \"\")\n String fromVersion)\n throws UtsFault_Exception\n ;\n\n /**\n * \n * @param ticket\n * @param fromVersion\n * @param conceptId\n * @param version\n * @return\n * returns java.util.List<UtsMetathesaurusHistory.ConceptDeathDTO>\n * @throws UtsFault_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConceptDeletions\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetConceptDeletions\")\n @ResponseWrapper(localName = \"getConceptDeletionsResponse\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetConceptDeletionsResponse\")\n public List<ConceptDeathDTO> getConceptDeletions(\n @WebParam(name = \"ticket\", targetNamespace = \"\")\n String ticket,\n @WebParam(name = \"version\", targetNamespace = \"\")\n String version,\n @WebParam(name = \"conceptId\", targetNamespace = \"\")\n String conceptId,\n @WebParam(name = \"fromVersion\", targetNamespace = \"\")\n String fromVersion)\n throws UtsFault_Exception\n ;\n\n /**\n * \n * @param ticket\n * @param fromVersion\n * @param conceptId\n * @param version\n * @return\n * returns java.util.List<UtsMetathesaurusHistory.ConceptMergeDTO>\n * @throws UtsFault_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConceptMerges\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetConceptMerges\")\n @ResponseWrapper(localName = \"getConceptMergesResponse\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetConceptMergesResponse\")\n public List<ConceptMergeDTO> getConceptMerges(\n @WebParam(name = \"ticket\", targetNamespace = \"\")\n String ticket,\n @WebParam(name = \"version\", targetNamespace = \"\")\n String version,\n @WebParam(name = \"conceptId\", targetNamespace = \"\")\n String conceptId,\n @WebParam(name = \"fromVersion\", targetNamespace = \"\")\n String fromVersion)\n throws UtsFault_Exception\n ;\n\n /**\n * \n * @param ticket\n * @param termId\n * @param version\n * @return\n * returns java.util.List<UtsMetathesaurusHistory.TermMergeDTO>\n * @throws UtsFault_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getTermMerges\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetTermMerges\")\n @ResponseWrapper(localName = \"getTermMergesResponse\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetTermMergesResponse\")\n public List<TermMergeDTO> getTermMerges(\n @WebParam(name = \"ticket\", targetNamespace = \"\")\n String ticket,\n @WebParam(name = \"version\", targetNamespace = \"\")\n String version,\n @WebParam(name = \"termId\", targetNamespace = \"\")\n String termId)\n throws UtsFault_Exception\n ;\n\n /**\n * \n * @param ticket\n * @param conceptId\n * @param version\n * @return\n * returns java.lang.String\n * @throws UtsFault_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMergedToConceptCui\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetMergedToConceptCui\")\n @ResponseWrapper(localName = \"getMergedToConceptCuiResponse\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetMergedToConceptCuiResponse\")\n public String getMergedToConceptCui(\n @WebParam(name = \"ticket\", targetNamespace = \"\")\n String ticket,\n @WebParam(name = \"version\", targetNamespace = \"\")\n String version,\n @WebParam(name = \"conceptId\", targetNamespace = \"\")\n String conceptId)\n throws UtsFault_Exception\n ;\n\n /**\n * \n * @param ticket\n * @param termId\n * @param version\n * @return\n * returns java.lang.String\n * @throws UtsFault_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMergedToTermUi\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetMergedToTermUi\")\n @ResponseWrapper(localName = \"getMergedToTermUiResponse\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetMergedToTermUiResponse\")\n public String getMergedToTermUi(\n @WebParam(name = \"ticket\", targetNamespace = \"\")\n String ticket,\n @WebParam(name = \"version\", targetNamespace = \"\")\n String version,\n @WebParam(name = \"termId\", targetNamespace = \"\")\n String termId)\n throws UtsFault_Exception\n ;\n\n /**\n * \n * @param ticket\n * @param atomId\n * @param version\n * @return\n * returns java.lang.String\n * @throws UtsFault_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMovedToConceptCui\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetMovedToConceptCui\")\n @ResponseWrapper(localName = \"getMovedToConceptCuiResponse\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetMovedToConceptCuiResponse\")\n public String getMovedToConceptCui(\n @WebParam(name = \"ticket\", targetNamespace = \"\")\n String ticket,\n @WebParam(name = \"version\", targetNamespace = \"\")\n String version,\n @WebParam(name = \"atomId\", targetNamespace = \"\")\n String atomId)\n throws UtsFault_Exception\n ;\n\n /**\n * \n * @param source\n * @param ticket\n * @param conceptId\n * @param saui\n * @param version\n * @return\n * returns java.util.List<UtsMetathesaurusHistory.SourceAtomChangeDTO>\n * @throws UtsFault_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSourceAtomChanges\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetSourceAtomChanges\")\n @ResponseWrapper(localName = \"getSourceAtomChangesResponse\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetSourceAtomChangesResponse\")\n public List<SourceAtomChangeDTO> getSourceAtomChanges(\n @WebParam(name = \"ticket\", targetNamespace = \"\")\n String ticket,\n @WebParam(name = \"version\", targetNamespace = \"\")\n String version,\n @WebParam(name = \"conceptId\", targetNamespace = \"\")\n String conceptId,\n @WebParam(name = \"source\", targetNamespace = \"\")\n String source,\n @WebParam(name = \"saui\", targetNamespace = \"\")\n String saui)\n throws UtsFault_Exception\n ;\n\n /**\n * \n * @param ticket\n * @param fromVersion\n * @param termId\n * @param version\n * @return\n * returns java.util.List<UtsMetathesaurusHistory.TermDeathDTO>\n * @throws UtsFault_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getTermDeletions\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetTermDeletions\")\n @ResponseWrapper(localName = \"getTermDeletionsResponse\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetTermDeletionsResponse\")\n public List<TermDeathDTO> getTermDeletions(\n @WebParam(name = \"ticket\", targetNamespace = \"\")\n String ticket,\n @WebParam(name = \"version\", targetNamespace = \"\")\n String version,\n @WebParam(name = \"termId\", targetNamespace = \"\")\n String termId,\n @WebParam(name = \"fromVersion\", targetNamespace = \"\")\n String fromVersion)\n throws UtsFault_Exception\n ;\n\n /**\n * \n * @param ticket\n * @param fromVersion\n * @param termStringId\n * @param version\n * @return\n * returns java.util.List<UtsMetathesaurusHistory.TermStringDeathDTO>\n * @throws UtsFault_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getTermStringDeletions\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetTermStringDeletions\")\n @ResponseWrapper(localName = \"getTermStringDeletionsResponse\", targetNamespace = \"http://webservice.uts.umls.nlm.nih.gov/\", className = \"UtsMetathesaurusHistory.GetTermStringDeletionsResponse\")\n public List<TermStringDeathDTO> getTermStringDeletions(\n @WebParam(name = \"ticket\", targetNamespace = \"\")\n String ticket,\n @WebParam(name = \"version\", targetNamespace = \"\")\n String version,\n @WebParam(name = \"termStringId\", targetNamespace = \"\")\n String termStringId,\n @WebParam(name = \"fromVersion\", targetNamespace = \"\")\n String fromVersion)\n throws UtsFault_Exception\n ;\n\n}", "@WebService(name = \"SoapService\", targetNamespace = \"http://test/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SoapService {\n\n\n /**\n * \n * @param fileName\n * @return\n * returns java.lang.Integer\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResult\", targetNamespace = \"http://test/\", className = \"test.GetResult\")\n @ResponseWrapper(localName = \"getResultResponse\", targetNamespace = \"http://test/\", className = \"test.GetResultResponse\")\n @Action(input = \"http://test/SoapService/getResultRequest\", output = \"http://test/SoapService/getResultResponse\")\n public Integer getResult(\n @WebParam(name = \"fileName\", targetNamespace = \"\")\n String fileName);\n\n /**\n * \n * @param path\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"getFilePath\", targetNamespace = \"http://test/\", className = \"test.GetFilePath\")\n @Action(input = \"http://test/SoapService/getFilePath\")\n public void getFilePath(\n @WebParam(name = \"path\", targetNamespace = \"\")\n String path);\n\n}", "@WebService(targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", name = \"KeyInfoService\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface KeyInfoService {\r\n\r\n @WebResult(name = \"isOk\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"modifyPwdByUserCode\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyPwdByUserCode\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"modifyPwdByUserCodeResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyPwdByUserCodeResponse\")\r\n public boolean modifyPwdByUserCode(\r\n @WebParam(name = \"userCode\", targetNamespace = \"\")\r\n java.lang.String userCode,\r\n @WebParam(name = \"newPwd\", targetNamespace = \"\")\r\n java.lang.String newPwd\r\n );\r\n\r\n @WebResult(name = \"isOk\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"modifyPwdByKeySn\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyPwdByKeySn\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"modifyPwdByKeySnResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyPwdByKeySnResponse\")\r\n public boolean modifyPwdByKeySn(\r\n @WebParam(name = \"keysn\", targetNamespace = \"\")\r\n java.lang.String keysn,\r\n @WebParam(name = \"newPwd\", targetNamespace = \"\")\r\n java.lang.String newPwd\r\n );\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"addKeyinfo\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.AddKeyinfo\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"addKeyinfoResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.AddKeyinfoResponse\")\r\n public com.kg.isignatureserver.web.services.keyinfoservices.JsonBean addKeyinfo(\r\n @WebParam(name = \"keyinfo\", targetNamespace = \"\")\r\n com.kg.isignatureserver.web.services.keyinfoservices.Keyinfo keyinfo\r\n );\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"modifyKeyStatusByKeysn\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyKeyStatusByKeysn\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"modifyKeyStatusByKeysnResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyKeyStatusByKeysnResponse\")\r\n public boolean modifyKeyStatusByKeysn(\r\n @WebParam(name = \"keySN\", targetNamespace = \"\")\r\n java.lang.String keySN,\r\n @WebParam(name = \"keystatus\", targetNamespace = \"\")\r\n java.lang.String keystatus\r\n );\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"addKey\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.AddKey\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"addKeyResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.AddKeyResponse\")\r\n public com.kg.isignatureserver.web.services.keyinfoservices.JsonBean addKey(\r\n @WebParam(name = \"keySn\", targetNamespace = \"\")\r\n java.lang.String keySn,\r\n @WebParam(name = \"userCode\", targetNamespace = \"\")\r\n java.lang.String userCode,\r\n @WebParam(name = \"userName\", targetNamespace = \"\")\r\n java.lang.String userName,\r\n @WebParam(name = \"overDate\", targetNamespace = \"\")\r\n java.lang.String overDate,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n java.lang.String password\r\n );\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"modifyKeyinfo\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyKeyinfo\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"modifyKeyinfoResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.ModifyKeyinfoResponse\")\r\n public com.kg.isignatureserver.web.services.keyinfoservices.JsonBean modifyKeyinfo(\r\n @WebParam(name = \"keyinfo\", targetNamespace = \"\")\r\n com.kg.isignatureserver.web.services.keyinfoservices.Keyinfo keyinfo\r\n );\r\n\r\n @WebResult(name = \"keyinfo\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"getKeyinfoByKeySN\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.GetKeyinfoByKeySN\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"getKeyinfoByKeySNResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.GetKeyinfoByKeySNResponse\")\r\n public com.kg.isignatureserver.web.services.keyinfoservices.Keyinfo getKeyinfoByKeySN(\r\n @WebParam(name = \"keySN\", targetNamespace = \"\")\r\n java.lang.String keySN\r\n );\r\n\r\n @WebResult(name = \"keyinfo\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"getKeyinfoByUserCode\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.GetKeyinfoByUserCode\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"getKeyinfoByUserCodeResponse\", targetNamespace = \"http://keyinfoServices.services.web.iSignatureServer.kg.com/\", className = \"com.kg.isignatureserver.web.services.keyinfoservices.GetKeyinfoByUserCodeResponse\")\r\n public com.kg.isignatureserver.web.services.keyinfoservices.Keyinfo getKeyinfoByUserCode(\r\n @WebParam(name = \"userCode\", targetNamespace = \"\")\r\n java.lang.String userCode\r\n );\r\n}", "@WebService(name = \"serverPortType\", targetNamespace = \"urn:server\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ServerPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns server.CreateRequestResponseType\n */\n @WebMethod(operationName = \"CreateRequest\", action = \"urn:server#CreateRequest\")\n @WebResult(name = \"CreateRequestResponse\", partName = \"parameters\")\n public CreateRequestResponseType createRequest(\n @WebParam(name = \"CreateRequest\", partName = \"parameters\")\n CreateRequestRequestType parameters);\n\n /**\n * \n * @param parameters\n * @return\n * returns server.CreateIncidentResponseType\n */\n @WebMethod(operationName = \"CreateIncident\", action = \"urn:server#CreateIncident\")\n @WebResult(name = \"CreateIncidentResponse\", partName = \"parameters\")\n public CreateIncidentResponseType createIncident(\n @WebParam(name = \"CreateIncident\", partName = \"parameters\")\n CreateIncidentRequestType parameters);\n\n}" ]
[ "0.6616532", "0.6540903", "0.63170415", "0.630866", "0.6290191", "0.6281742", "0.62623346", "0.62558806", "0.62499386", "0.62491506", "0.6230389", "0.6225547", "0.62244487", "0.6215638", "0.6213505", "0.6209828", "0.6205393", "0.6204818", "0.6198135", "0.61892027", "0.61850303", "0.6181528", "0.61746", "0.6172681", "0.61706215", "0.61668885", "0.61641145", "0.6148456", "0.6146181", "0.61432767", "0.6141211", "0.61355174", "0.61321616", "0.6131345", "0.613133", "0.61285627", "0.61272645", "0.61187637", "0.6112829", "0.61098886", "0.61087227", "0.6108141", "0.6091578", "0.6089875", "0.6087692", "0.60836816", "0.606862", "0.6059415", "0.60536927", "0.6041426", "0.60380805", "0.60375226", "0.6036636", "0.6032795", "0.60301614", "0.6017087", "0.60127354", "0.6010648", "0.60019493", "0.5998108", "0.5994272", "0.59815544", "0.5981422", "0.59803313", "0.59741724", "0.5972386", "0.5970933", "0.5970824", "0.59546417", "0.59473586", "0.59440726", "0.59407926", "0.594067", "0.59361917", "0.5925031", "0.5921917", "0.59201795", "0.59171134", "0.5917024", "0.59119636", "0.5909708", "0.59035766", "0.58941984", "0.5893774", "0.5891457", "0.58910626", "0.58742106", "0.5873204", "0.58624065", "0.5860673", "0.5847463", "0.5844291", "0.58439434", "0.5823896", "0.58182406", "0.58168083", "0.5808463", "0.58034116", "0.58026665", "0.5801648" ]
0.6284974
5
return !str.matches("^[\u0000\u0080]+$"); Only keeping paragraphs: 1). Contains English character only. 2). Starts with an uppercase letter or the character ".
private boolean preTest(String str) { return str.matches("^[\"A-Z][\u0000-\u0080]+$"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isValidString(String str){\r\n\t\tString allowedChars=\"! \\\" # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\\\ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~\";\r\n\t\tfor(int i=0;i<str.split(\"\").length;i++){\r\n\t\t\tif(allowedChars.indexOf(str.split(\"\")[i]) == -1){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean validWord(String word) {\n\t\tPattern p = Pattern.compile(\"[!@#$%&*()_+=|<>?{}\\\\[\\\\]~,;:/§.£/{}¨\\\"]\");\n\t\tMatcher m = p.matcher(word);\n\t\treturn !m.find();\n\t}", "private boolean isAllLetters(String text) {\n for ( int i = 0; i < text.length(); i++){\n if(!(Character.isAlphabetic(text.charAt(i)) || text.charAt(i) == ' '))\n {\n return false;\n }\n }\n return true;\n }", "private boolean ifAlphabetOnly(String str){\n return str.chars().allMatch(Character :: isLetter);\n }", "public static boolean isCon(String s){\n boolean flag = true;\n int i = 0;\n while(flag && i < s.length()){\n if ((s.charAt(i) >= 'a' && s.charAt(i) <= 'z') || (s.charAt(i) >= 'A' && s.charAt(i) <='Z')) {\n flag = (s.charAt(i) != 'a' && s.charAt(i) != 'A' &&\n s.charAt(i) != 'e' && s.charAt(i) != 'E' &&\n s.charAt(i) != 'i' && s.charAt(i) != 'I' &&\n s.charAt(i) != 'o' && s.charAt(i) != 'O' &&\n s.charAt(i) != 'u' && s.charAt(i) != 'U' );\n }else\n flag = false;\n \n i++;\n }\n return flag;\n }", "public static boolean checkchar(String sentence){\n for (int i =0; i < sentence.length(); i++){ //just compare for the whole length \n if (Character.isLetter(sentence.charAt(i))==false){ //if it is not a letter\n return false; //return false\n }\n return true; //otherwise return true\n }\n return true;\n}", "static boolean isValidWord(String word){\n\t\tword = word.toLowerCase();\n\t\tchar check;\n\t\tfor(int i=0; i<word.length(); i++){\n\t\t\tcheck = word.charAt(i);\n\t\t\tif((check<97 || check>122)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public Boolean hasSpecialCharacters(String string){\n //Check is the string has anything other than a-z and 0-9 case insensitive\n return Pattern.compile(\"[^a-z0-9 ]\", Pattern.CASE_INSENSITIVE)\n .matcher(string)\n .find();\n }", "private static boolean isValidWord(String s) {\r\n\t\tString valid = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-'\";\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (valid.indexOf(s.charAt(i)) < 0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}", "public static boolean lettersCheck(String name) {\r\n\t\treturn name.matches(\"^[\\\\p{L} .'-]+$\");\r\n\t}", "private boolean containsAlphanumChars(String[] text, int startIndex, int endIndex) {\n for(int i=startIndex; i<=endIndex; i++){\n String token = text[i];\n String normalizedToken = BaselineModel.normalizeToken(token);\n \n if(normalizedToken.length()==0)\n return false;\n }\n return true;\n }", "public static boolean isValidWord(String word) {\n\t\t\n\t\t// Creating char array\n\t\tString wordIn = word.toLowerCase();\n\t\tchar[] wordChars = wordIn.toCharArray();\n\t\t\n\t\t// If any of the characters are alphabetic return true\n\t\tfor( char c : wordChars ) {\n\t\t\tif( Character.isAlphabetic(c) == false ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean validate(String s)\r\n\t{\r\n\t\tint i=0;\r\n\t\tchar[] s1=s.toLowerCase().toCharArray();\r\n\t\twhile(i<s1.length)\r\n\t\t{\r\n\t\t\tif(s1[i]=='*' || s1[i]=='?')\r\n\t\t\t\tbreak;\r\n\t\t\tif(s1[i]<'a' || s1[i]>'z') return false;\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static Boolean Word(String arg){\n\t\tif(arg.matches(\"^[a-zA-ZåÅäÄöÖüÜéÉèÈ]*\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\t\n\t}", "private boolean hasSpecialCharacters(String s) {\r\n\t\t\tif (s != s.replaceAll(\"([^A-Za-z0-9.,!?~`'\\\"% _-]+)\", \"\")) return true;\r\n\t\t\treturn false;\r\n\t}", "public boolean detectCapitalUse_regex(String word){\n return word.matches(\"[A-Z]*|.[a-z]*\");\n }", "private boolean checkInputContent(String contents){\n try {\n char[] temC = contents.toCharArray();\n for (int i=0;i<temC.length;i++) {\n char mid = temC[i];\n if(mid>=48&&mid<=57){//数字\n continue;\n }\n if(mid>=65&&mid<=90){//大写字母\n continue ;\n }\n if(mid>=97&&mid<=122){//小写字母\n continue ;\n }\n// temp.replace(i, i+1, \" \");\n return false;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return true;\n }", "private boolean validDefinition(String definition) {\n\t\tPattern p = Pattern.compile(\"[@#$%&*_+=|<>{}\\\\[\\\\]~¨§£{}]\");\n\t\tMatcher m = p.matcher(definition);\n\t\treturn !m.find();\n\t}", "private boolean isWord(String word) {\n String pattern = \"^[a-zA-Z]+$\";\n if (word.matches(pattern)) {\n return true;\n } else {\n return false;\n }\n }", "private String validateChar(String text) {\n char[] validChars = new char[text.length()];\n int validCount = 0;\n for (int i = 0; i < text.length(); i++) {\n char c = text.charAt(i);\n boolean valid = (c >= 0x20 && c <= 0xd7ff) || (c >= 0xe000 && c <= 0xfffd);\n if (valid) {\n validChars[validCount++] = c;\n } else {\n if (c == 10) // LineBreak\n {\n validChars[validCount++] = c;\n }\n }\n }\n return new String(validChars, 0, validCount);\n }", "private String validateWord (String word) {\r\n String chars = \"\";\r\n for (int i = 0; i < word.length (); ++i) {\r\n if (!Character.isLetter (word.charAt (i))) {\r\n chars += \"\\\"\" + word.charAt (i) + \"\\\" \";\r\n }\r\n }\r\n return chars;\r\n }", "public static Boolean Letter(String arg){\n\t\tif(arg.matches(\"\\\\p{L}{1}\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isValidWord(String word) {\n\t\tword = word.toLowerCase();\n\t\tchar characterVal;\n\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tcharacterVal = word.charAt(i);\n\t\t\tif ((characterVal < 97) || (characterVal > 122)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean isOK(char ch) {\n if(String.valueOf(ch).matches(\"[<|\\\\[|\\\\-|\\\\||&|a-z|!]\")){\n return true;\n }\n return false;\n }", "private static boolean m66068b(String str) {\n for (int i = 0; i < str.length(); i++) {\n char charAt = str.charAt(i);\n if (charAt <= 31 || charAt >= 127 || \" #%/:?@[\\\\]\".indexOf(charAt) != -1) {\n return true;\n }\n }\n return false;\n }", "private boolean isNonCharacter(int c) {\n return (c & 0xFFFE) == 0xFFFE;\n }", "public boolean noOtherSpecialChars(String password) {\n boolean noOtherSpecialCharsPresent = false;\n int otherSpecials = 0;\n String[] splitPW = password.split(\"\");\n\n for (String s : splitPW) {\n //add count, if special char is present\n if (s.matches(\"[^a-zA-Z0-9]\")) {\n otherSpecials++;\n //remove last count, if special char matches allowed chars\n if (s.matches(\"[()#$?!%/@]\")) {\n otherSpecials--;\n }\n }\n }\n noOtherSpecialCharsPresent = otherSpecials == 0;\n return noOtherSpecialCharsPresent;\n }", "public static boolean isFirstWordInSentence(String word) {\n return word.matches(\"\\\\p{Punct}*\\\\p{Lu}[\\\\p{L}&&[^\\\\p{Lu}]]*\");\n }", "public static boolean BasicTextValidation(String text) {\n String pattern = \"^[A-Za-z0-9.)*&,(\\\\-\\\\s]{2,}$\";\n return text.matches(pattern);\n }", "public boolean verifyString(String s) {\n\t\t\n\t\tfor (int i = 0; i<s.length();i++) {\n\t\t\tif (!alphabet.contains(s.charAt(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "private boolean isValidCI(String text){\n Boolean validation = true;\n int lenght = text.length();\n char lastCharacter = text.charAt(lenght-1);\n if(Character.isDigit(lastCharacter) || Character.isAlphabetic(lastCharacter)){\n for(int i=0;i<lenght-1;i++){\n char ch = text.charAt(i);\n if(!Character.isDigit(ch)){\n validation = false;\n break;\n }\n }\n }\n else{\n validation = false;\n }\n if(isOnlySpaces(text)){\n validation = false;\n }\n return validation;\n }", "public boolean isContainChinese(String str) {\n\t\t Pattern p = Pattern.compile(\"[\\u4e00-\\u9fa5]\");\n\t\t Matcher m = p.matcher(str);\n\t\t if (m.find()) {\n\t\t return true;\n\t\t }\n\t\t return false;\n\t\t}", "boolean hasChar();", "public static boolean isLetter(String p) {\n boolean check = true;\n for (int i = 0; i < p.length(); i++) {\n if (!Character.isLetter(p.charAt(i))) {\n check = false;\n }\n }\n return check;\n }", "private static boolean isPNCharsBase(int ch) {\n return\n r(ch, 'a', 'z') || r(ch, 'A', 'Z') || r(ch, 0x00C0, 0x00D6) || r(ch, 0x00D8, 0x00F6) || r(ch, 0x00F8, 0x02FF) ||\n r(ch, 0x0370, 0x037D) || r(ch, 0x037F, 0x1FFF) || r(ch, 0x200C, 0x200D) || r(ch, 0x2070, 0x218F) ||\n r(ch, 0x2C00, 0x2FEF) || r(ch, 0x3001, 0xD7FF) ||\n // Surrogate pairs\n r(ch, 0xD800, 0xDFFF) ||\n r(ch, 0xF900, 0xFDCF) || r(ch, 0xFDF0, 0xFFFD) ||\n r(ch, 0x10000, 0xEFFFF) ; // Outside the basic plane.\n }", "private String stripNoneWordChars(String uncleanString) {\n return uncleanString.replace(\".\", \" \").replace(\":\", \" \").replace(\"@\", \" \").replace(\"-\", \" \").replace(\"_\", \" \").replace(\"<\", \" \").replace(\">\", \" \");\n\n }", "public abstract boolean containsUppercaseLetters(String str);", "public static boolean isPalindrome(String s) {\n\t\tif (s == null || s.trim().isEmpty())\n\t\t\treturn true;\n\t\tif (s.length() == 1) {\n\t\t\treturn true;\n\t\t}\n\t\tchar[] charArray = s.toLowerCase().toCharArray();\n\t\tint start = 0;\n\t\tint end = charArray.length - 1;\n\t\twhile (start < end) {\n\t\t\twhile (start < charArray.length\n\t\t\t\t\t&& !isAlphanumeric(charArray[start]))\n\t\t\t\tstart++;\n\t\t\twhile (end >= 0 && !isAlphanumeric(charArray[end]))\n\t\t\t\tend--;\n\n\t\t\tif (start >= charArray.length || end < 0)\n\t\t\t\treturn true;\n\n\t\t\tif (charArray[start] != charArray[end])\n\t\t\t\treturn false;\n\t\t\tstart++;\n\t\t\tend--;\n\t\t}\n\t\treturn true;\n\t}", "private boolean containsOnlyASCII(String input) {\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (input.charAt(i) > 127) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean hasSpecialCharacters(String s) {\n if (s == null || s.trim().isEmpty()) {\n //if the string is empty return true\n return true;\n }\n //create a pattern that checks for characters which are not alphanumeric and are not a dot, dash, or comma\n Pattern p = Pattern.compile(\"[^A-Za-z0-9. ,]^-\");\n Matcher m = p.matcher(s);\n // boolean b = m.matches();\n boolean b = m.find();\n if (b){\n //return true, there is special characters\n return true;\n } else {\n //return false, there is no special characters\n return false;\n }\n }", "static void checkexpression(String sentence){\n //matching the sentence to see if it begins with capital letter and ends with .\n boolean check = Pattern.matches(\"^[A-Z].*[.]$\",sentence);\n if(check){\n System.out.println(\"Correct Format.\");\n }else{\n System.out.println(\"Incorrect Format.\");\n }\n }", "public boolean isValidContent() { \n\t\tSLLStack<Character> stringStack = new SLLStack<>();\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tif(!Character.isAlphabetic(s.charAt(i))) { return false; }\n\t\t\tif(Character.isUpperCase(s.charAt(i))) { stringStack.push(s.charAt(i)); }\n\t\t\telse{\n\t\t\t\tif(stringStack.isEmpty()) { return false; }\n\t\t\t\tif(stringStack.top() == Character.toUpperCase(s.charAt(i))) { stringStack.pop(); }\n\t\t\t\telse { stringStack.push(s.charAt(i)); }\n\t\t\t}\n\t\t}\n\t\treturn stringStack.isEmpty();\n\t}", "public boolean validWord(String input){\n\t\t//if it is a valid word, return true\n\t\tif(input.matches(\"[a-zA-Z]+\") && input.length()>1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static Boolean ContainsOnlyAllowedChars(String toCheck){\r\n\t\treturn !toCheck.contains(\";\");\r\n\t}", "private static boolean isPNChars(int ch) {\n return isPNChars_U(ch) || isDigit(ch) || ( ch == '-' ) || ch == 0x00B7 || r(ch, 0x300, 0x036F) || r(ch, 0x203F, 0x2040) ;\n }", "public static boolean isValid(String str)\n\t{\n\t\tboolean len = false;\n\t\tboolean cap = false;\n\t\tboolean small = false;\n\t\tboolean num = false;\n\t\tboolean valid = false;\n\n\t\tchar[] pieces = str.toCharArray();\n\n\t\tif(!(pieces.length<6))\n\t\t{\n\t\t\tlen = true;\n\t\t\tfor(int i=0; i<pieces.length; i++)\n\t\t\t{\n\t\t\t\tif(Character.isLowerCase(pieces[i])) \n\t\t\t\t\tcap = true;\n\t\t\t\telse if(Character.isUpperCase(pieces[i])) \n\t\t\t\t\tsmall = true;\n\t\t\t\telse if(Character.isDigit(pieces[i])) \n\t\t\t\t\tnum = true;\n\t\n\t\t\t\tif(len && cap && small && num)\n\t\t\t\t\tvalid = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn valid;\n\t}", "public boolean hasUnicodeRepresentation();", "boolean hasPunctuationToAppend();", "public boolean isValidString(String data) { \n String blackList = \"[<>;/@#$%^&+=]\";\n p = Pattern.compile(blackList);\n m = p.matcher(data);\n isValid = m.find(); \n if(isValid)\n \tisValid = containsScriptTag(data);\n return isValid;\n }", "public static void main(String[] args) {\n\n \tString str = \"123abc你好efc\";\n\n \tString reg = \"[\\u4e00-\\u9fa5]\";\n\n \tPattern pat = Pattern.compile(reg); \n\n \tMatcher mat=pat.matcher(str); \n\n \tString repickStr = mat.replaceAll(\"\");\n\n \tSystem.out.println(\"去中文后:\"+repickStr);\n\n}", "boolean hasHasCharacter();", "private static boolean allDashes(String s) {\n/* 1121 */ for (int i = 0; i < s.length(); i++) {\n/* 1122 */ if (s.charAt(i) != '-')\n/* 1123 */ return false; \n/* */ } \n/* 1125 */ return true;\n/* */ }", "private boolean verificarText(String text,String campo) {\n\t\tif(text.length()==0) {\n\t\t\tJOptionPane.showMessageDialog(null,\"Error \"+campo +\": campo vacio\");\n\t\t\treturn false;\n\t\t}\n\t\t//\n\t\tfor(int i =0;i<text.length();i++) {\n\t\t\tif(text.charAt(i)!=' ') {\n\t\t\t\tif((text.charAt(i)<'a' || text.charAt(i)>'z'&& (text.charAt(i)<'A' || text.charAt(i)>'Z') ) ) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Error \"+campo +\": Se ingreso un numero o caracter especial\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public boolean validarEntradaLetra(String letra) {\n\n\t\tPattern p = Pattern.compile(\"[a-zA-Z]{1,1}\");\n\n\t\tMatcher m = p.matcher(letra);\n\n\t\tif (m.matches() == false) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Letra inválida, favor insira uma letra válida!\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean matchAnyString() { return false; }", "public boolean checkSpecialChars(String password) {\n return password.matches(\".*[()#$?!%/@].*\");\n //why does this not work? return password.matches(\"[()#$?!%/@]+\");\n }", "public boolean checkLowerCase(String password) {\n return password.matches(\".*[a-z].*\");\n }", "public static boolean contieneSoloLetras(String cadena) {\r\n //metodo para comprobar si una cadena contiene solamente letras\r\n for (int x = 0; x < cadena.length(); x++) {\r\n char c = cadena.charAt(x);\r\n // Si no está entre a y z, ni entre A y Z, ni es un espacio\r\n if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == ' ')) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "boolean isWord(String potentialWord);", "@Test\n public void givenFirstName_WhenSpChar_ShouldReturnFalse() {\n RegexTest valid = new RegexTest();\n boolean result = valid.firstName(\"Fat@ha\");\n Assert.assertEquals(false,result);\n }", "private static boolean hasUnsafeChars(String s) {\n for (int i = 0; i < s.length(); ++i) {\n char c = s.charAt(i);\n if (Character.isLetter(c) || c == '.')\n continue;\n else\n return true;\n }\n return false;\n }", "boolean isValid(String word);", "public static boolean isAlpha(String text) {\r\n\t\treturn text != null && text.trim().length() > 0\r\n\t\t\t\t&& text.replaceAll(\" \", \"\").chars().anyMatch(Character::isLetter);\r\n\t}", "public static boolean ShouldEncode(String str) {\r\n\r\n char SAFE_CHAR_EXCEPTIONS[] = {'\\n', '\\r', '\\t', 0};\r\n char SAFE_INIT_CHAR_EXCEPTIONS[] = {'\\n', '\\r', '\\t', 32, ':', '<', 0};\r\n\r\n // Are there safe initial character exceptions in the content?\r\n for (int ji = 0; ji < SAFE_INIT_CHAR_EXCEPTIONS.length; ji++) {\r\n if (str.indexOf(SAFE_INIT_CHAR_EXCEPTIONS[ji]) == 0) {\r\n return (true);\r\n }\r\n }\r\n\r\n // Are there safe character exceptions in the content?\r\n for (int ji = 0; ji < SAFE_CHAR_EXCEPTIONS.length; ji++) {\r\n if (str.indexOf(SAFE_CHAR_EXCEPTIONS[ji]) != -1) {\r\n return (true);\r\n }\r\n }\r\n\r\n // Is there a trailing space?\r\n if (str.endsWith(\" \")) {\r\n return (true);\r\n }\r\n\r\n\r\n return (false);\r\n }", "private String StringFilter(String str) {\n String regEx = \"[` !@#$%^&*()+=|《{}':;',//[//]. ̄<o╥﹏╥o>/?!@#¥%……&*~~。∀。》()・゜・ノД・゜・∠ ͡° ͜ʖ ͡° ᐛ 」∠_——+|{}【】σ°∀°σ‘⊙▽⊙;≧∇≦ヾ〃∇ノヽ´∀`ノ:ω”“’。,、ヽ●´∀●ノ?ヾ´∀`ノ[\\\\s][0-9][\\\\uD83E\\uDD70\\\\uD83E\\uDD2A\\\\uD83E\\uDD23\\\\uD83E\\uDD22\\\\uD83E\\uDD2E\\\\uD83E\\uDDD0\\\\uD83E\\uDD11\\\\uD83E\\uDD2A\\\\uD83E\\uDD23\\\\uD83E\\uDD2A\\\\uD83E\\uDD74\\\\ud83c\\\\udc00-\\\\ud83c\\\\udfff]|[\\\\ud83d\\\\udc00-\\\\ud83d\\\\udfff]|[\\\\u2600-\\\\u27ff]]\";\n Pattern pattern = Pattern.compile(regEx);\n Matcher matcher = pattern.matcher(str);\n String trim = matcher.replaceAll(\"\").trim();\n return trim;\n }", "static boolean containsInvalidCharacters(String topic) {\n Matcher matcher = INVALID_CHARS_PATTERN.matcher(topic);\n return matcher.find();\n }", "public boolean isStopWord(String word);", "private boolean isWhitespaceText(String text) {\n \n \t\tif (text == null || text.length() == 0)\n \t\t\treturn false;\n \n \t\tString[] delimiters= fDocument.getLegalLineDelimiters();\n \t\tint index= TextUtilities.startsWith(delimiters, text);\n \t\tif (index > -1) {\n \t\t\tchar c;\n \t\t\tint length= text.length();\n \t\t\tfor (int i= delimiters[index].length(); i < length; i++) {\n \t\t\t\tc= text.charAt(i);\n \t\t\t\tif (c != ' ' && c != '\\t')\n \t\t\t\t\treturn false;\n \t\t\t}\n \t\t\treturn true;\n \t\t}\n \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 static Boolean testUsername(String username){\n\t\t//Setting Up Regex -> All Numbers and Letters maximum 14 signs\n\t\tString pattern =\"[A-z1-9]{2,14}\";\n\t\tPattern p = Pattern.compile(pattern);\n\t\tMatcher m = p.matcher(username);\n\t\t\t\n\t\tif(m.matches() && !username.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean ValidString(String s)\n\t{\n\t\tchar[] sChar = s.toCharArray();\n\t\tfor(int i = 0; i < sChar.length; i++)\n\t\t{\n\t\t\tint sInt = (int)sChar[i];\n\t\t\tif(sInt < 48 || sInt > 122)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 57 && sInt < 65)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 90 && sInt < 97)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static Boolean validateInput(String input) {\n\t\tString xInput = input.substring(0,1);\n\n\t\n\n\t\t\n\t\tboolean xIsLetter = Character.isLetter(xInput.charAt(0));\n\n\t\tif((!input.isEmpty()) || (!xIsLetter)) {\n\t\n\t\t\treturn false;\n\t\t} else {\n\n\t\t\treturn true; \n\t\t\t}\n\t\t}", "private boolean noUpper(String password) {\n return !password.equals(password.toLowerCase());\n }", "public static boolean hasSpecialChar(String password) throws NoSpecialCharacterException\r\n {\r\n Pattern pattern = Pattern.compile(\"[a-zA-Z0-9]*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (matcher.matches())\r\n throw new NoSpecialCharacterException();\r\n return true;\r\n }", "public static boolean isWord(String str) {\r\n if (str == null || str.length() == 0)\r\n return false;\r\n\r\n for (int i= 0; i < str.length(); i++) {\r\n if (!Character.isJavaIdentifierPart(str.charAt(i)))\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean checkFormat(String username){\n\n ArrayList<Character> charList = new ArrayList<Character>();\n Collections.addAll(charList, '!', '$', '#', '@');\n\n //Check for special Character\n boolean containsSpecial = false;\n for(Character character: charList) {\n if (username.contains(Character.toString(character))) {\n containsSpecial = true;\n }\n }\n //Check for Letters\n int numberCharacters = 0;\n if(containsSpecial){\n for(int i=0; i<username.length();i++){\n String symbol = String.valueOf(username.charAt(i));\n\n //REGEX pattern Check\n Pattern pattern = Pattern.compile(\"[A-z]\");\n Matcher matcher = pattern.matcher(symbol);\n\n if(matcher.matches()){\n numberCharacters++;\n System.out.println(\"Match: \" + numberCharacters);\n }\n }\n }\n\n if(numberCharacters>2){\n return true;\n }\n else {\n return false;\n }\n }", "public boolean isContainLowercaseLetters(String password) {\n\t\treturn password.matches(\".*[a-z].*\");\n\t}", "static String cleanString(String s) {\n return s.replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase();\n }", "static String cleanString(String s) {\n return s.replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase();\n }", "static String cleanString(String s) {\n return s.replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase();\n }", "public static boolean isValidInput(String str) {\n if (str != null && str.matches(\"^[a-zA-Z0-9_]*$\")){\n return true;\n }\n\n return false;\n }", "private static boolean isLegalIdentifier(String str) {\n if (\"\".equals(str)) {\n return false;\n }\n if (str.charAt(0) >= '0' & str.charAt(0) <= '9') {\n return false;\n }\n\n return str.matches(\"^\\\\w+$\");\n }", "static boolean isText(char c) {\n\t\t\tswitch (c) {\n\t\t\t\tcase LINE_SEPARATOR:\n\t\t\t\tcase PERCENT_SIGN:\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "boolean isNotKeyWord(String word);", "boolean isSetCapital();", "public static boolean stringInBounds(String plainText) {\r\n\t\tchar[] val = plainText.toCharArray();\r\n\t\tfor (int i = 0; i < val.length; i++) {\r\n\t\t\tif (!(val[i]==SPACE) &&!(val[i] >= LOWER_BOUND && val[i] <= UPPER_BOUND)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isUrgentLetter() {\n\t\treturn false;\n\t}", "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 }", "public static boolean isOnlyWhitespace(String str) {\n for (int i = 0; i < str.length(); i++) {\n if (!Character.isWhitespace(str.charAt(i))) {\n return false;\n }\n }\n return true;\n }", "private boolean isGrLetter(char ch) {\n /*if ( ( (ch >= 'á') && (ch <= 'ù')) || ( (ch >= 'Á') && (ch <= 'Ù')) ||\n (ch == 'Ü') || (ch == 'Ý') || (ch == 'Þ') || (ch == 'ß') ||\n (ch == 'ü') || (ch == 'ý') || (ch == 'þ') ||\n (ch == '¢') || (ch == '¸') || (ch == '¹') || (ch == 'º') ||\n (ch == '¼') || (ch == '¾') || (ch == '¿') ||\n (ch == 'ú') || (ch == 'û') || (ch == 'À') || (ch == 'à')) {*/\n if ( ( (ch >= '\\u03b1') && (ch <= '\\u03c9')) || ( (ch >= '\\u0391') && (ch <= '\\u03a9')) ||\n \t(ch == '\\u03ac') || (ch == '\\u03ad') || (ch == '\\u03ae') || (ch == '\\u03af') ||\n \t(ch == '\\u03cc') || (ch == '\\u03cd') || (ch == '\\u03ce') ||\n \t(ch == '\\u0386') || (ch == '\\u0388') || (ch == '\\u0389') || (ch == '\\u038a') ||\n \t(ch == '\\u038c') || (ch == '\\u038e') || (ch == '\\u038f') ||\n \t(ch == '\\u03ca') || (ch == '\\u03cb') || (ch == '\\u0390') || (ch == '\\u03b0')) {\n return true;\n } // if\n else {\n return false;\n } // else\n }", "public static boolean isPNChars(int ch) {\n return isPNChars_U(ch)\n || isDigit(ch)\n || (ch == '-')\n || ch == 0x00B7\n || r(ch, 0x300, 0x036F)\n || r(ch, 0x203F, 0x2040);\n }", "public static boolean isPunctuation(CharSequence name) {\n int len = name.length();\n if (len == 0) {\n return false;\n }\n if (len == 1) {\n return isPunctuation(name.charAt(0));\n }\n return is(name, Strings::isPunctuation);\n }", "public static void main(String[] args) {\n\t\tBoolean[] b= new Boolean[26];\n\t\tArrays.fill(b, false);\n\t\tint index=0;\n\t\tString test =\"aabbcc\";\n\t\tfor(int i=0;i<test.length();i++)\n\t\t{\n\t\t\tindex=(int)test.charAt(i)-'a';\n\t\t\tb[index]=true;\n\t\t}\n\t\tfor(int i=0;i<b.length;i++)\n\t\t{\n\t\t\tif(b[i]==false)\n\t\t\t{\n\t\t\t//\tSystem.out.println(\"Not pangram\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t String str = \"Happy%^&*Christmas*&*&*)NewYear\"; \n \n\t // similar to Matcher.replaceAll \n\t str = str.replaceAll(\"\\\\p{Punct}\",\" \"); \n\t \n\t System.out.println(str); \n\n\t}", "private static boolean isTashkeelChar(char ch) {\n return ( ch >='\\u064B' && ch <= '\\u0652' );\n }", "public static boolean palindrome(String s) {\n \tString x = \"\";\n \tfor(int i = 0; i<s.length(); i++) {\n \t\tif(Character.isLetter(s.charAt(i))) {\n \t\t\tx += s.substring(i, i + 1);\n \t\t}\n \t}\n \tString other = \"\";\n \tfor(int i = x.length() - 1; i>=0; i--) {\n \t\tother += x.substring(i, i + 1);\n \t}\n return other.compareToIgnoreCase(x) == 0;\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}", "public static boolean Q4(String test) {\n\t\tSystem.out.println(Pattern.matches(\".*\\\\W+.*\",test));\n\t\treturn Pattern.matches(\".*\\\\W+.*\",test);\n\t}", "public boolean isValidWord(String word) {\n\t\tif (word == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tString check = this.checker.spellCheckWord(word);\n\t\treturn check.contains(\"<plain>\");\n\t}", "public static boolean isAscii(char ch) {\n/* 403 */ return (ch < '€');\n/* */ }", "protected static String removeBannedCharacters(String st) {\n return st.replaceAll(\"[^A-Za-z]\", \"\");\n }" ]
[ "0.67250264", "0.6583328", "0.6543956", "0.6374958", "0.62242234", "0.621542", "0.6181269", "0.6165507", "0.6162376", "0.6090867", "0.6082882", "0.60221803", "0.601021", "0.6009832", "0.5972037", "0.59584785", "0.5925173", "0.5899171", "0.58745265", "0.58379346", "0.58207417", "0.58078355", "0.577767", "0.5765753", "0.5739735", "0.5732046", "0.57284445", "0.57267594", "0.5723657", "0.5721615", "0.57166785", "0.5708376", "0.57011795", "0.5691445", "0.56737566", "0.56626624", "0.56551355", "0.5651395", "0.56465584", "0.56247723", "0.5598481", "0.55979306", "0.5597707", "0.55943906", "0.55782616", "0.55772424", "0.5572515", "0.55442345", "0.5541259", "0.5539592", "0.5531071", "0.5523559", "0.5512908", "0.5508211", "0.54969406", "0.54934967", "0.5489743", "0.5480312", "0.5478881", "0.5476066", "0.5474766", "0.54740995", "0.54731584", "0.54704124", "0.5469221", "0.5464547", "0.5457121", "0.5449337", "0.5448934", "0.5447871", "0.5438113", "0.5435258", "0.54330087", "0.5421137", "0.5415556", "0.5401592", "0.53986144", "0.5394748", "0.5394748", "0.5394748", "0.53865427", "0.53863555", "0.5386004", "0.538413", "0.53740156", "0.5368335", "0.5361968", "0.535705", "0.5353492", "0.5346559", "0.5344165", "0.53279686", "0.53272575", "0.53268355", "0.5326539", "0.5323647", "0.5322037", "0.5319154", "0.53173", "0.5303414" ]
0.67015123
1
This method is often declared statically.
public Pizza createPizza(String type) { Pizza pizza = null; if(type.equals("cheese")) { pizza = new CheesePizza(); } else if(type.equals("pepperoni")) { pizza = new PepperoniPizza(); } return pizza; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void method_4270() {}", "protected boolean func_70814_o() { return true; }", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "private ArraySetHelper() {\n\t\t// nothing\n\t}", "private void m50366E() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo70713b();", "@Override\n protected void prot() {\n }", "public abstract void mo56925d();", "public void m23075a() {\n }", "static void init() {}", "public abstract void mo27386d();", "@Override\n protected void init() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "public abstract String mo13682d();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private Util() { }", "private static void staticFun()\n {\n }", "@Override\n void init() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void init() {\n }", "public void mo38117a() {\n }", "public abstract void mo27385c();", "static void sm() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public abstract Object mo26777y();", "@Override\n public void init() {\n\n }", "protected abstract Set method_1559();", "private Rekenhulp()\n\t{\n\t}", "public static void thisMethod() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public abstract String mo41079d();", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "void m1864a() {\r\n }", "private void kk12() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract String mo118046b();", "@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() {}", "public abstract void mo30696a();", "@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 }", "private void init() {\n\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "protected boolean func_70041_e_() { return false; }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public final void mo91715d() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public abstract void mo6549b();", "public void mo21779D() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "protected void init() {\n // to override and use this method\n }", "public void mo21877s() {\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\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}", "protected void h() {}", "public void mo21787L() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public void mo21792Q() {\n }", "public abstract void mo42329d();", "protected void mo6255a() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "protected void initialize() {}", "protected void initialize() {}", "public void method_191() {}" ]
[ "0.65694755", "0.64055467", "0.6258356", "0.61724913", "0.61301583", "0.6127766", "0.6102856", "0.6069492", "0.60145783", "0.60145783", "0.60042006", "0.5986172", "0.59791744", "0.597188", "0.59352326", "0.5910292", "0.59092766", "0.59086406", "0.59078383", "0.5896443", "0.58870244", "0.58863777", "0.58833396", "0.5880802", "0.58727235", "0.58727235", "0.58727235", "0.58727235", "0.58727235", "0.58727235", "0.5872552", "0.5872016", "0.5866199", "0.5861783", "0.58588994", "0.5853756", "0.5853456", "0.5849314", "0.58440316", "0.5838434", "0.5836314", "0.581216", "0.5809093", "0.5805477", "0.5796294", "0.5791225", "0.57741475", "0.57735205", "0.5769587", "0.5769587", "0.57677937", "0.57673216", "0.57673216", "0.57673216", "0.57673216", "0.57673216", "0.57669234", "0.5752275", "0.57494533", "0.57494533", "0.57461953", "0.574463", "0.57348514", "0.5728768", "0.5728768", "0.57186025", "0.5716335", "0.57141", "0.5711589", "0.5708985", "0.57077515", "0.57060254", "0.57022595", "0.5694575", "0.5686098", "0.56853664", "0.56850755", "0.5671092", "0.56670725", "0.5664215", "0.56639355", "0.5663414", "0.5663414", "0.5663414", "0.56633353", "0.5658262", "0.5650392", "0.5650392", "0.5650392", "0.5649524", "0.5649524", "0.56381255", "0.5634458", "0.56340724", "0.563389", "0.5629077", "0.5622767", "0.562157", "0.5618867", "0.5618867", "0.56184834" ]
0.0
-1
Test existing zero statistics for not touched caches.
@Test public void testEmptyIOStat() throws Exception { IgniteEx ign = prepareIgnite(true); GridMetricManager mmgr = ign.context().metric(); checkEmptyStat(mmgr.registry(metricName(CACHE_GROUP.metricGroupName(), DEFAULT_CACHE_NAME)), CACHE_GROUP); checkEmptyStat(mmgr.registry(metricName(HASH_INDEX.metricGroupName(), DEFAULT_CACHE_NAME, HASH_PK_IDX_NAME)), HASH_INDEX); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testCoh3710_isEmpty()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertTrue(getNamedCache(getCacheName0()).isEmpty());\n }\n });\n }", "@Test\n public void testCoh3710_getAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(NullImplementation.getMap(),\n getNamedCache(getCacheName0()).getAll(\n Collections.singleton(Integer.valueOf(1))));\n }\n });\n }", "@Test\n public void testCoh3710_size()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(0, getNamedCache(getCacheName0()).size());\n }\n });\n }", "private void assertNoStaleDataExistInNearCache(IMap<Integer, Integer> map) {\n Map<Integer, Integer> fromNearCache = getAllEntries(map);\n\n // 2. clear Near Cache\n ((NearCachedMapProxyImpl) map).getNearCache().clear();\n\n // 3. get all values when Near Cache is empty, these requests\n // will go directly to underlying IMap because Near Cache is empty\n Map<Integer, Integer> fromIMap = getAllEntries(map);\n\n for (int i = 0; i < ENTRY_COUNT; i++) {\n assertEquals(fromIMap.get(i), fromNearCache.get(i));\n }\n }", "@java.lang.Override\n public boolean hasStats() {\n return stats_ != null;\n }", "public void resetCounters()\n {\n cacheHits = 0;\n cacheMisses = 0;\n }", "@Test\n public void testLIFOStatsUpdation() {\n try {\n assertNotNull(cache);\n LocalRegion rgn = (LocalRegion) cache.getRegion(SEPARATOR + regionName);\n assertNotNull(rgn);\n\n // check for is LIFO Enable\n assertTrue(\"Eviction Algorithm is not LIFO\",\n (((EvictionAttributesImpl) rgn.getAttributes().getEvictionAttributes()).isLIFO()));\n\n // put four entries into the region\n for (int i = 0; i < 8; i++) {\n rgn.put((long) i, (long) i);\n }\n\n assertTrue(\"In Memory entry count not 5 \",\n new Long(5).equals(lifoStats.getCounter()));\n\n // varifies evicted entry values are null in memory\n assertTrue(\"In memory \", rgn.entries.getEntry(5L).isValueNull());\n assertTrue(\"In memory \", rgn.entries.getEntry(6L).isValueNull());\n assertTrue(\"In memory \", rgn.entries.getEntry(7L).isValueNull());\n\n // get an entry back\n Long value = (Long) rgn.get(4L);\n value = (Long) rgn.get(5L);\n value = (Long) rgn.get(6L);\n\n // check for entry value\n assertTrue(\"Value not matched \", value.equals(6L));\n assertNull(\"Entry value in VM is not null\", rgn.getValueInVM(7L));\n\n assertTrue(\"Entry count not 7 \", new Long(7).equals(lifoStats.getCounter()));\n // check for destory\n rgn.destroy(3L);\n assertTrue(\"Entry count not 6 \", new Long(6).equals(lifoStats.getCounter()));\n // check for invalidate\n rgn.invalidate(1L);\n assertTrue(\"Entry count not 5 \", new Long(5).equals(lifoStats.getCounter()));\n // check for remove\n rgn.put(8L, 8L);\n rgn.remove(2L);\n assertTrue(\"Entry count not 4 \", new Long(4).equals(lifoStats.getCounter()));\n } catch (Exception ex) {\n ex.printStackTrace();\n fail(\"Test failed\");\n }\n\n }", "@Override\n\tpublic boolean hasCachedData() {\n\t\treturn false;\n\t}", "@Test\n public void testGetCountEmpty() {\n assertEquals(fixture.getCounts(), Collections.emptyMap());\n }", "@Test\n\tpublic void testReadFromExsistingHostWithFreeCache(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(10);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(40000, readTime);\t\t\n\t}", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats(long arg0)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "public boolean checkNoCache() {\n\treturn getBoolean(ATTR_NOCACHE, false);\n }", "private void checkNoStatus(IgniteEx n, String cacheName) throws Exception {\n assertNull(statuses(n).get(cacheName));\n assertNull(metaStorageOperation(n, metaStorage -> metaStorage.read(KEY_PREFIX + cacheName)));\n assertTrue(indexBuildStatusStorage(n).rebuildCompleted(cacheName));\n }", "@Test\n public void testCoh3710_get()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertNull(getNamedCache(getCacheName0()).get(Integer.valueOf(1)));\n }\n });\n }", "protected void resetCache() {\n if (cacheResults && initialized) {\n dataCache.clear();\n }\n }", "@Test\n public void clear() {\n cache.put(1, \"a\");\n cache.put(2, \"b\");\n changesOf(0, 0, 2, 0);\n cache.clear();\n changesOf(0, 0, 0, 0);\n }", "@Test\n\tpublic void testReadFromOnlyHostWithFullCache(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock2(100);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(10000, readTime);\t\t\t\t\n\t}", "@Test\n public void testCoh3710_containsKey()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertFalse(getNamedCache(getCacheName0()).containsKey(Integer.valueOf(1)));\n }\n });\n }", "@Override\n\tpublic int removeAllCacheData()\n\t{\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getSizeToCache() {\n\t\treturn 0;\n\t}", "@Override\n public synchronized boolean isEmpty() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.isEmpty();\n }", "public boolean hasOTAVAILCACHEIND() {\n return fieldSetFlags()[11];\n }", "long getCacheMisses();", "void resetCacheCounters();", "@Test\n public void testCoh3710()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run() { getNamedCache(getCacheName0()).clear(); }\n });\n }", "@Test\n public void testCoh3710_entrySetFilter()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n Iterator iter = cache.entrySet(AlwaysFilter.INSTANCE).iterator();\n validateIndex(cache);\n\n assertFalse(iter.hasNext());\n }\n });\n }", "@Test\n public void TestGetHeatEmpty() throws Exception {\n for (int i = 0; i < HEIGHT; i++) {\n for (int j = 0; j < WIDTH; j++) {\n assertEquals(0, heatGrid.getHeat(j, i));\n }\n }\n }", "public void clearCache() {\n/* 105 */ this.cachedRed = null;\n/* 106 */ this.cachedUsr2dev = null;\n/* 107 */ this.cachedGn2dev = null;\n/* 108 */ this.cachedBounds = null;\n/* */ }", "@Ignore(\"Google's LRU map max size is not predictable\")\n\t@Override\n\tpublic void statsTest()\n\t{\n\t}", "boolean isCacheInitialized();", "@Test\n public void testGetExecutionStatsLocked_Caching() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).invalidateAllExecutionStatsLocked();\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (23 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (7 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (2 * HOUR_IN_MILLIS), 10 * MINUTE_IN_MILLIS, 5), false);\n mQuotaController.saveTimingSession(0, \"com.android.test\",\n createTimingSession(now - (6 * MINUTE_IN_MILLIS), 3 * MINUTE_IN_MILLIS, 5), false);\n final ExecutionStats originalStatsActive;\n final ExecutionStats originalStatsWorking;\n final ExecutionStats originalStatsFrequent;\n final ExecutionStats originalStatsRare;\n synchronized (mQuotaController.mLock) {\n originalStatsActive = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", ACTIVE_INDEX);\n originalStatsWorking = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", WORKING_INDEX);\n originalStatsFrequent = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", FREQUENT_INDEX);\n originalStatsRare = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", RARE_INDEX);\n }\n\n // Advance clock so that the working stats shouldn't be the same.\n advanceElapsedClock(MINUTE_IN_MILLIS);\n // Change frequent bucket size so that the stats need to be recalculated.\n setDeviceConfigLong(QcConstants.KEY_WINDOW_SIZE_FREQUENT_MS, 6 * HOUR_IN_MILLIS);\n\n ExecutionStats expectedStats = new ExecutionStats();\n expectedStats.allowedTimePerPeriodMs = originalStatsActive.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsActive.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsActive.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsActive.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsActive.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsActive.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsActive.bgJobCountInWindow;\n expectedStats.executionTimeInMaxPeriodMs = originalStatsActive.executionTimeInMaxPeriodMs;\n expectedStats.bgJobCountInMaxPeriod = originalStatsActive.bgJobCountInMaxPeriod;\n expectedStats.sessionCountInWindow = originalStatsActive.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsActive.inQuotaTimeElapsed;\n final ExecutionStats newStatsActive;\n synchronized (mQuotaController.mLock) {\n newStatsActive = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", ACTIVE_INDEX);\n }\n // Stats for the same bucket should use the same object.\n assertTrue(originalStatsActive == newStatsActive);\n assertEquals(expectedStats, newStatsActive);\n\n expectedStats.allowedTimePerPeriodMs = originalStatsWorking.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsWorking.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsWorking.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsWorking.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsWorking.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsWorking.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsWorking.bgJobCountInWindow;\n expectedStats.sessionCountInWindow = originalStatsWorking.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsWorking.inQuotaTimeElapsed;\n final ExecutionStats newStatsWorking;\n synchronized (mQuotaController.mLock) {\n newStatsWorking = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", WORKING_INDEX);\n }\n assertTrue(originalStatsWorking == newStatsWorking);\n assertNotEquals(expectedStats, newStatsWorking);\n\n expectedStats.allowedTimePerPeriodMs = originalStatsFrequent.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsFrequent.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsFrequent.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsFrequent.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsFrequent.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsFrequent.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsFrequent.bgJobCountInWindow;\n expectedStats.sessionCountInWindow = originalStatsFrequent.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsFrequent.inQuotaTimeElapsed;\n final ExecutionStats newStatsFrequent;\n synchronized (mQuotaController.mLock) {\n newStatsFrequent = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", FREQUENT_INDEX);\n }\n assertTrue(originalStatsFrequent == newStatsFrequent);\n assertNotEquals(expectedStats, newStatsFrequent);\n\n expectedStats.allowedTimePerPeriodMs = originalStatsRare.allowedTimePerPeriodMs;\n expectedStats.windowSizeMs = originalStatsRare.windowSizeMs;\n expectedStats.jobCountLimit = originalStatsRare.jobCountLimit;\n expectedStats.sessionCountLimit = originalStatsRare.sessionCountLimit;\n expectedStats.expirationTimeElapsed = originalStatsRare.expirationTimeElapsed;\n expectedStats.executionTimeInWindowMs = originalStatsRare.executionTimeInWindowMs;\n expectedStats.bgJobCountInWindow = originalStatsRare.bgJobCountInWindow;\n expectedStats.sessionCountInWindow = originalStatsRare.sessionCountInWindow;\n expectedStats.inQuotaTimeElapsed = originalStatsRare.inQuotaTimeElapsed;\n final ExecutionStats newStatsRare;\n synchronized (mQuotaController.mLock) {\n newStatsRare = mQuotaController.getExecutionStatsLocked(\n 0, \"com.android.test\", RARE_INDEX);\n }\n assertTrue(originalStatsRare == newStatsRare);\n assertEquals(expectedStats, newStatsRare);\n }", "@UnsupportedAppUsage\n public void clearStats() {\n mStats = null;\n }", "public boolean existCache() {\n return false;\n }", "@Override\n\tpublic long getCacheSize() {\n\t\treturn 0;\n\t}", "public boolean hasStats() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@Test\n public void testLocalStatistics() {\n ObjectStatisticsImpl stat1 = getStatistics();\n ObjectStatisticsImpl stat2 = getStatistics();\n\n repo.saveLocalStatistics(K1, stat1, AffinityTopologyVersion.ZERO);\n repo.saveLocalStatistics(K2, stat2, AffinityTopologyVersion.ZERO);\n\n assertEquals(stat1, repo.getLocalStatistics(K1, null));\n assertEquals(stat1, repo.getLocalStatistics(K2, AffinityTopologyVersion.ZERO));\n\n repo.clearLocalPartitionsStatistics(K1, null);\n\n assertNull(repo.getLocalStatistics(K1, AffinityTopologyVersion.ZERO));\n assertEquals(stat2, repo.getLocalStatistics(K2, null));\n }", "@Test\n public void testCoh3710_aggregateFilter()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n Object oResult = getNamedCache(getCacheName0()).aggregate(\n AlwaysFilter.INSTANCE, new Count());\n assertEquals(Integer.valueOf(0), oResult);\n }\n });\n }", "public boolean isSetCacheIgnoresCount() {\n return EncodingUtils.testBit(__isset_bitfield, __CACHEIGNORESCOUNT_ISSET_ID);\n }", "boolean isNoCache();", "@Test\r\n\tpublic void testGaussianCache() {\n\t\tRandomOrgCache<double[]> c = rocs[0].createGaussianCache(10, 3.41d, 2.1d, 4);\r\n\t\tc.stop();\r\n\r\n\t\ttry {\r\n\t\t\tc.get();\r\n\t\t\tcollector.addError(new Error(\"should have thrown NoSuchElementException\"));\r\n\t\t} catch (NoSuchElementException e) {}\r\n\t\t\r\n\t\tc.resume();\r\n\t\t\r\n\t\tdouble[] got = null;\r\n\t\t\r\n\t\twhile (got == null) {\r\n\t\t\ttry {\r\n\t\t\t\tgot = c.get();\r\n\t\t\t} catch (NoSuchElementException e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(50);\r\n\t\t\t\t} catch (InterruptedException e1) {\r\n\t\t\t\t\tcollector.addError(new Error(\"shouldn't have been interrupted!\"));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tcollector.checkThat(got, notNullValue());\r\n\t}", "public void zero();", "@Benchmark\n public AllocAndZeroStoreHelper testAllocAndZeroStore() throws Exception {\n return new AllocAndZeroStoreHelper(s1, s2, s3, s4, s5, s6, s7, s8);\n }", "public void test0() {\n\t\tempty(m1);\n\t\tempty(m2);\n\t\tempty(m3);\n\t\tempty(m4);\n\t}", "@Override\n\tpublic Map<String, String> stats(InetSocketAddress arg0)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "private void findZeros() {\n\t\t\n\t\tif (realFinal == 0) {\n\t\t\thasZeroR = true;\n\t\t} if (imagFinal == 0) {\n\t\t\thasZeroI = true;\n\t\t}\n\t\t\n\t}", "private void clearStats() {\n stats_ = emptyProtobufList();\n }", "@Test\n\tpublic void testIllegalMapZeroCostsTest() {\n\t\ttry {\n\t\t\tmapFactory.initializeGameState(\"./src/Mapfiles/NightlyTests/IllegalMapZeroCostsTest\", 1, rng, gs);\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Expected IllegalArgumentException\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfail(\"Expected IllegalArgumentException\");\n\t}", "public boolean isEmpty() {\n return this.cache.isEmpty();\n }", "CompT zero();", "public static int performanceCountGet() { return 0; }", "@Test\n public void testCoh3710_keySetContains()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().contains(Integer.valueOf(1)));\n validateIndex(cache);\n }\n });\n }", "@Test\n\t\tpublic void woeIsMeUnreachabletest() {\n\t\t\tassertTrue(System.currentTimeMillis() > 0);\n\t\t}", "@Test\n public void testEntryFaultinCount() {\n try {\n assertNotNull(cache);\n LocalRegion rgn = (LocalRegion) cache.getRegion(SEPARATOR + regionName);\n assertNotNull(rgn);\n\n DiskRegionStats diskRegionStats = rgn.getDiskRegion().getStats();\n assertTrue(\"Entry count not 0 \", new Long(0).equals(lifoStats.getCounter()));\n\n // put five entries into the region\n for (int i = 0; i < 8; i++) {\n rgn.put(\"key\" + i, \"value\" + i);\n }\n\n assertEquals(\n \"LRU eviction entry count and entries overflown to disk count from diskstats is not equal \",\n lifoStats.getEvictions(), diskRegionStats.getNumOverflowOnDisk());\n assertNull(\"Entry value in VM is not null\", rgn.getValueInVM(\"key6\"));\n rgn.get(\"key6\");\n assertEquals(\"Not equal to number of entries present in VM : \", 6L,\n diskRegionStats.getNumEntriesInVM());\n assertEquals(\"Not equal to number of entries present on disk : \", 2L,\n diskRegionStats.getNumOverflowOnDisk());\n\n } catch (Exception ex) {\n ex.printStackTrace();\n fail(\"Test failed\");\n }\n }", "public Long get_cachetotnonstoreablemisses() throws Exception {\n\t\treturn this.cachetotnonstoreablemisses;\n\t}", "public void clearDataCache() {\n\t\t_cumulativeVolumeTable.clear();\n\t\tbookMap.clear();\n\t\tquoteMap.clear();\n\t\tmillisCST = 0L;\n\t}", "void forceStats(long operations, long hits);", "public boolean zeroFinder()\n {\n return zeroFinder(0);\n }", "private static Cache<DHTKey, LruRetentionInfo> buildEmptyCacheWithCapacity(long capacityBytes) {\n return Caffeine.newBuilder().weigher(cacheWeigher).maximumWeight(capacityBytes).recordStats().build();\n }", "public boolean isSetCacheLocalKeyUnchangedHitsCount() {\n return EncodingUtils.testBit(__isset_bitfield, __CACHELOCALKEYUNCHANGEDHITSCOUNT_ISSET_ID);\n }", "public static Boolean settingValuesToZero(){\n resultsMap.replaceAll((k, v) -> v = 0);\n Integer sum = 0;\n for (Integer v : resultsMap.values()) {\n sum += v;\n if (sum == 0) {\n return true;\n }\n\n }\n return false;\n }", "void clearStatistics();", "public int getNumCacheMiss() {\n return cacheHandler.getCountCacheMiss();\n }", "@Test\n public void testCoh3710_containsValue()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertFalse(getNamedCache(getCacheName0()).containsValue(Integer.valueOf(1)));\n }\n });\n }", "boolean hasStatistics();", "public boolean isZero() {return false;}", "public boolean isCacheFull() {\n return this.cacheSize >= this.maximumCacheSize;\n }", "void statsReset();", "public boolean isZero() {\n return mJavaSize == 0 && mRegisteredNativeSize == 0;\n }", "long getCacheHits();", "private void resetStats() {\n }", "public boolean isEmpty() {\r\n for (int i = 0, tot = buckets.length; i < tot; i++) {\r\n CacheData<K, V> entry = getCacheData(i);\r\n // if we find a key that is valid it's not empty\r\n if (entry != null && entry.validateKey() != null) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "@Test\n public void emptyCkpointTest() throws Exception {\n final int tableSize = 0;\n\n CorfuRuntime rt = getNewRuntime();\n PersistentCorfuTable<String, Long> tableA = openTable(rt, streamNameA);\n PersistentCorfuTable<String, Long> tableB = openTable(rt, streamNameB);\n\n scheduleConcurrently(1, ignored_task_num -> {\n mapCkpoint(rt, tableA, tableB);\n });\n\n // thread 2: repeat ITERATIONS_LOW times starting a fresh runtime, and instantiating the maps.\n // they should be empty.\n scheduleConcurrently(PARAMETERS.NUM_ITERATIONS_LOW, ignored_task_num -> {\n validateMapRebuild(tableSize, true, false);\n });\n\n executeScheduled(PARAMETERS.CONCURRENCY_SOME, PARAMETERS.TIMEOUT_LONG);\n\n // Finally, after the two threads finish, again we start a fresh runtime and instantiate the maps.\n // Then verify they are empty.\n validateMapRebuild(tableSize, true, false);\n\n rt.shutdown();\n }", "@Test\n public void testCoh3710_keySetContainsAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().containsAll(\n Collections.singleton(Integer.valueOf(1))));\n validateIndex(cache);\n }\n });\n }", "@Test\n public void testCoh3710_aggregateKeys()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n Object oResult = getNamedCache(getCacheName0()).aggregate(\n Collections.singleton(Integer.valueOf(1)), new Count());\n assertEquals(Integer.valueOf(0), oResult);\n }\n });\n }", "@Test\n public void indexIsUsedForQueryWhenRegionIsEmpty() {\n try {\n CacheUtils.getCache();\n isInitDone = false;\n Query q =\n qs.newQuery(\"SELECT DISTINCT * FROM \" + SEPARATOR + \"portfolio where status = 'active'\");\n QueryObserverHolder.setInstance(new QueryObserverAdapter() {\n\n @Override\n public void afterIndexLookup(Collection coll) {\n indexUsed = true;\n }\n });\n SelectResults set = (SelectResults) q.execute();\n if (set.size() == 0 || !indexUsed) {\n fail(\"Either Size of the result set is zero or Index is not used \");\n }\n indexUsed = false;\n\n region.clear();\n set = (SelectResults) q.execute();\n if (set.size() != 0 || !indexUsed) {\n fail(\"Either Size of the result set is not zero or Index is not used \");\n }\n } catch (Exception e) {\n e.printStackTrace();\n fail(e.toString());\n } finally {\n isInitDone = false;\n CacheUtils.restartCache();\n }\n }", "public boolean isZero() {\n\t\treturn x == 0.0 && y == 0.0 && z == 0.0;\n\t}", "@Test\n public void testFindViaCache() {\n Integer hitRate1 = hitRate;\n Integer foundId = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate1, hitRate); // No change expected yet\n \n Integer hitRate2 = hitRate;\n Integer foundId2 = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate, new Integer(hitRate2+1)); // A cache hit is expected\n }", "boolean hasMetric();", "boolean hasMetric();", "public boolean isCachedMemory() {\n return false;\n }", "@Test\n public void testCoh3710_entrySetIterator()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n Iterator iter = cache.entrySet().iterator();\n assertFalse(iter.hasNext());\n validateIndex(cache);\n }\n });\n }", "public static void resetStatistics()\r\n {\r\n \t//System.out.println ( \"Resetting statistics\");\r\n count_ = 0; \r\n }", "@Test(timeout = 4000)\n public void test078() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unweightedMicroFmeasure();\n assertEquals(Double.NaN, double0, 0.01);\n }", "@Test\n public void testNearTruncate()\n {\n NamedCache cache = getNamedCache(\"near-client-listener-truncate\");\n cache.clear();\n\n clearEvents();\n cache.put(MapListenerTests.KEY, MapListenerTests.VALUE);\n assertEquals(cache.get(MapListenerTests.KEY), MapListenerTests.VALUE);\n checkEvents(true, false);\n\n clearEvents();\n cache.truncate();\n Eventually.assertThat(invoking(cache).get(MapListenerTests.KEY), nullValue());\n checkEvents(false, false);\n\n clearEvents();\n cache.put(MapListenerTests.KEY, MapListenerTests.VALUE);\n checkEvents(true, false);\n }", "public void testNormalClearIsEmpty()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkClearMap(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "@Test\n public void checkThatTheCacheIsUsed() {\n \tif (!useResourceCaching) {\n \t\treturn;\n \t}\n \t\n \t// The basic test setup is copied from testSearchPath2ElementsWithSuper\n String root0 = \"/apps/\";\n String root1 = \"/libs/\";\n searchPathOptions.setSearchPaths(new String[] {\n root0,\n root1\n });\n\n // set resource super type\n resourceSuperType = \"foo:superBar\";\n resourceSuperTypePath = ResourceUtil.resourceTypeToPath(resourceSuperType);\n replaceResource(null, resourceSuperType);\n\n final Resource r = request.getResource();\n \n \t// Execute the same call twice and expect that on 2nd time the ResourceResolver\n \t// is never used, because all is taken from the cache\n getLocations(r.getResourceType(),\n r.getResourceSuperType());\n Mockito.clearInvocations(resolver);\n getLocations(r.getResourceType(),\n r.getResourceSuperType());\n Mockito.verify(resolver, Mockito.never()).getResource(Mockito.anyString());\n \n // validate the cache cleanup\n int cacheEntries = ((Map<String,Resource>) resolver.getPropertyMap().get(LocationCollector.CACHE_KEY)).size();\n assertTrue(cacheEntries > 0);\n LocationCollector.clearCache(resolver);\n assertEquals(0,((Map<String,Resource>) resolver.getPropertyMap().get(LocationCollector.CACHE_KEY)).size());\n \n }", "@Override\n public boolean isStatisticsEnabled() {\n return counter != null && counter.isStatisticsEnabled();\n }", "public void resetHitStatistics()\n {\n m_stats.resetHitStatistics();\n }", "@Override\n boolean resetStatistics();", "public boolean isMissingData() {\n return myModel.getRealtimeTimestamp() == 0;\n }", "void resetCache();", "public abstract void statsReset();", "private static boolean canCacheQuery(QueryInfo queryInfo) {\n return !queryInfo.hasAggregates()\n && !queryInfo.hasDistinct()\n && !queryInfo.hasGroupBy()\n && !queryInfo.hasLimit()\n && !queryInfo.hasTop()\n && !queryInfo.hasOffset()\n && !queryInfo.hasDCount()\n && !queryInfo.hasOrderBy();\n }", "@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}", "public boolean isZero(int count) {\n\t\treturn count == 0;\n\t}", "@Test\n\tpublic void testNoZeroGFnorm() {\n\t\t\n\t\tList<Term> terms = termino.getTerms().values().stream()\n\t\t\t\t.filter(t-> t.getGeneralFrequencyNorm() == 0)\n\t\t\t\t.collect(Collectors.toList());\n\n\t\tassertThat(terms).isEmpty();\n\t}", "public void clear()\n {\n // push next flush out to avoid attempts at multiple simultaneous\n // flushes\n deferFlush();\n\n synchronized (this)\n {\n while (true)\n {\n try\n {\n // notify cache entries of their impending removal\n for (Iterator iter = entrySet().iterator(); iter.hasNext(); )\n {\n ((Entry) iter.next()).discard();\n }\n\n // verify that the cache maintains its data correctly\n if (m_cCurUnits != 0)\n {\n // soft assertion\n Base.out(\"Invalid unit count after clear: \" + m_cCurUnits);\n m_cCurUnits = 0;\n }\n break;\n }\n catch (ConcurrentModificationException e)\n {\n }\n }\n\n // reset the cache storage\n super.clear();\n\n // reset hit/miss stats\n resetHitStatistics();\n\n // schedule next flush\n scheduleFlush();\n }\n }", "@Test\r\n void testGetPointsZeroPoints() {\r\n AlwaysDefect testStrat = new AlwaysDefect();\r\n int points = testStrat.getPoints();\r\n assertEquals(points, 0, \"getPoints not returning correctly when 0 points\");\r\n }", "@Test\n public void testEntryEvictionCount() {\n try {\n assertNotNull(cache);\n Region rgn = cache.getRegion(SEPARATOR + regionName);\n assertNotNull(rgn);\n\n assertTrue(\"Entry count not 0 \", new Long(0).equals(lifoStats.getCounter()));\n // put four entries into the region\n for (int i = 0; i < 8; i++) {\n rgn.put((long) i, (long) i);\n }\n\n assertTrue(\"1)Total eviction count is not correct \",\n new Long(3).equals(lifoStats.getEvictions()));\n rgn.put(8L, 8L);\n rgn.get(5L);\n assertTrue(\"2)Total eviction count is not correct \",\n new Long(4).equals(lifoStats.getEvictions()));\n } catch (Exception ex) {\n ex.printStackTrace();\n fail(\"Test failed\");\n }\n }", "@Test\n public void testCoh3733()\n {\n doSingleServerTest(\"IdxTestCoh3733\", new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(\"coh3733\");\n\n cache.addIndex(new IndexAwareExtractor()\n {\n public MapIndex createIndex(boolean fOrdered, Comparator comparator, Map mapIndex,\n BackingMapContext ctx)\n {\n MapIndex index = new SimpleMapIndex(this, false, null, ctx)\n {\n protected void removeInverseMapping(Map mapIndex, Object oIxValue, Object oKey)\n {\n Set setKeys = (Set) mapIndex.get(oIxValue);\n\n assertTrue(\"Attempted to remove non-existent index entry\",\n setKeys != null && setKeys.contains(oKey));\n super.removeInverseMapping(mapIndex, oIxValue, oKey);\n }\n };\n mapIndex.put(this, index);\n return index;\n }\n\n public MapIndex destroyIndex(Map mapIndex)\n {\n return (MapIndex) mapIndex.remove(this);\n }\n\n public Object extract(Object oTarget)\n {\n return oTarget;\n }\n }, false, null);\n cache.addMapListener(new MultiplexingMapListener()\n {\n protected void onMapEvent(MapEvent evt)\n {\n fail(\"Observed unexpected event: \" + evt);\n }\n });\n\n cache.remove(\"non-existent-key\");\n\n validateIndex(cache);\n }\n });\n }" ]
[ "0.69380826", "0.6658924", "0.625626", "0.60116196", "0.5916905", "0.59120476", "0.5876542", "0.58646125", "0.58635026", "0.5863485", "0.585584", "0.5855358", "0.5853733", "0.5853694", "0.5804845", "0.5803738", "0.58031565", "0.57857746", "0.57732177", "0.5754136", "0.5745171", "0.5744629", "0.57405245", "0.57400745", "0.570896", "0.56903964", "0.56901604", "0.5686625", "0.56792736", "0.5674479", "0.56687593", "0.56533074", "0.56292737", "0.5627741", "0.56200606", "0.56151074", "0.56130195", "0.56021905", "0.55876046", "0.5581298", "0.55583125", "0.5546983", "0.55455947", "0.5545143", "0.5536142", "0.55215883", "0.55122095", "0.5510185", "0.5496774", "0.54753745", "0.5465531", "0.5463781", "0.54617953", "0.5455921", "0.5453586", "0.5452722", "0.54526234", "0.5427843", "0.54253566", "0.5417669", "0.5405151", "0.5404031", "0.53918296", "0.5376986", "0.53724325", "0.5364993", "0.5363013", "0.53562695", "0.53479946", "0.5346858", "0.5329988", "0.5323787", "0.53228027", "0.5314612", "0.5313191", "0.53068495", "0.53035575", "0.5298605", "0.5298605", "0.529182", "0.52887547", "0.5279195", "0.52689815", "0.5245324", "0.5230847", "0.522767", "0.52261513", "0.521728", "0.52126175", "0.52022326", "0.519825", "0.51965964", "0.5190803", "0.51875377", "0.51733035", "0.51668113", "0.51665777", "0.5166466", "0.51634437", "0.51613873" ]
0.7053075
0
Test LOCAL_NODE statistics tracking for not persistent cache.
@Test public void testNotPersistentIOGlobalStat() throws Exception { ioStatGlobalPageTrackTest(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testLocalStatistics() {\n ObjectStatisticsImpl stat1 = getStatistics();\n ObjectStatisticsImpl stat2 = getStatistics();\n\n repo.saveLocalStatistics(K1, stat1, AffinityTopologyVersion.ZERO);\n repo.saveLocalStatistics(K2, stat2, AffinityTopologyVersion.ZERO);\n\n assertEquals(stat1, repo.getLocalStatistics(K1, null));\n assertEquals(stat1, repo.getLocalStatistics(K2, AffinityTopologyVersion.ZERO));\n\n repo.clearLocalPartitionsStatistics(K1, null);\n\n assertNull(repo.getLocalStatistics(K1, AffinityTopologyVersion.ZERO));\n assertEquals(stat2, repo.getLocalStatistics(K2, null));\n }", "@Test\n public void testPersistentIOGlobalStat() throws Exception {\n ioStatGlobalPageTrackTest(true);\n }", "@Test\n public void testLIFOStatsUpdation() {\n try {\n assertNotNull(cache);\n LocalRegion rgn = (LocalRegion) cache.getRegion(SEPARATOR + regionName);\n assertNotNull(rgn);\n\n // check for is LIFO Enable\n assertTrue(\"Eviction Algorithm is not LIFO\",\n (((EvictionAttributesImpl) rgn.getAttributes().getEvictionAttributes()).isLIFO()));\n\n // put four entries into the region\n for (int i = 0; i < 8; i++) {\n rgn.put((long) i, (long) i);\n }\n\n assertTrue(\"In Memory entry count not 5 \",\n new Long(5).equals(lifoStats.getCounter()));\n\n // varifies evicted entry values are null in memory\n assertTrue(\"In memory \", rgn.entries.getEntry(5L).isValueNull());\n assertTrue(\"In memory \", rgn.entries.getEntry(6L).isValueNull());\n assertTrue(\"In memory \", rgn.entries.getEntry(7L).isValueNull());\n\n // get an entry back\n Long value = (Long) rgn.get(4L);\n value = (Long) rgn.get(5L);\n value = (Long) rgn.get(6L);\n\n // check for entry value\n assertTrue(\"Value not matched \", value.equals(6L));\n assertNull(\"Entry value in VM is not null\", rgn.getValueInVM(7L));\n\n assertTrue(\"Entry count not 7 \", new Long(7).equals(lifoStats.getCounter()));\n // check for destory\n rgn.destroy(3L);\n assertTrue(\"Entry count not 6 \", new Long(6).equals(lifoStats.getCounter()));\n // check for invalidate\n rgn.invalidate(1L);\n assertTrue(\"Entry count not 5 \", new Long(5).equals(lifoStats.getCounter()));\n // check for remove\n rgn.put(8L, 8L);\n rgn.remove(2L);\n assertTrue(\"Entry count not 4 \", new Long(4).equals(lifoStats.getCounter()));\n } catch (Exception ex) {\n ex.printStackTrace();\n fail(\"Test failed\");\n }\n\n }", "@Test\n public void testClearLocalPartitionIdsStatistics() {\n ObjectPartitionStatisticsImpl stat1 = getPartitionStatistics(1);\n ObjectPartitionStatisticsImpl stat10 = getPartitionStatistics(10);\n ObjectPartitionStatisticsImpl stat100 = getPartitionStatistics(100);\n\n IgniteStatisticsStore store = repo.statisticsStore();\n store.saveLocalPartitionStatistics(K1, stat1);\n store.saveLocalPartitionStatistics(K1, stat10);\n store.saveLocalPartitionStatistics(K1, stat100);\n\n assertNotNull(repo.getLocalPartitionStatistics(K1, 10));\n\n repo.clearLocalPartitionsStatistics(K1, setOf(1, 2, 10));\n\n assertNull(repo.getLocalPartitionStatistics(K1, 10));\n assertNotNull(repo.getLocalPartitionStatistics(K1, 100));\n }", "@Ignore(\"Google's LRU map max size is not predictable\")\n\t@Override\n\tpublic void statsTest()\n\t{\n\t}", "@Test\n public void testEmptyIOStat() throws Exception {\n IgniteEx ign = prepareIgnite(true);\n\n GridMetricManager mmgr = ign.context().metric();\n\n checkEmptyStat(mmgr.registry(metricName(CACHE_GROUP.metricGroupName(), DEFAULT_CACHE_NAME)), CACHE_GROUP);\n\n checkEmptyStat(mmgr.registry(metricName(HASH_INDEX.metricGroupName(), DEFAULT_CACHE_NAME, HASH_PK_IDX_NAME)),\n HASH_INDEX);\n }", "public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }", "@Test\n\tpublic void testReadFromOnlyHostWithFullCache(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock2(100);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(10000, readTime);\t\t\t\t\n\t}", "@Test\n public void testRepositoryPartitions() {\n ObjectPartitionStatisticsImpl stat1 = getPartitionStatistics(1);\n ObjectPartitionStatisticsImpl stat10 = getPartitionStatistics(10);\n\n ObjectPartitionStatisticsImpl stat1_2 = getPartitionStatistics(1);\n\n assertTrue(repo.getLocalPartitionsStatistics(K1).isEmpty());\n assertTrue(repo.getLocalPartitionsStatistics(K2).isEmpty());\n\n IgniteStatisticsStore store = repo.statisticsStore();\n store.saveLocalPartitionStatistics(K1, stat1);\n store.saveLocalPartitionStatistics(K1, stat10);\n store.saveLocalPartitionStatistics(K2, stat1_2);\n\n ObjectPartitionStatisticsImpl stat1Readed = repo.getLocalPartitionStatistics(K1, 1);\n assertNotNull(stat1Readed);\n assertEquals(1, stat1Readed.partId());\n\n ObjectPartitionStatisticsImpl stat10Readed = repo.getLocalPartitionStatistics(K1, 10);\n assertNotNull(stat10Readed);\n assertEquals(10, stat10Readed.partId());\n\n assertNull(repo.getLocalPartitionStatistics(K1, 2));\n\n assertEquals(2, repo.getLocalPartitionsStatistics(K1).size());\n assertEquals(1, repo.getLocalPartitionsStatistics(K2).size());\n }", "@Test\n public void test5() throws Exception {\n CuratorFramework client = ZKConfig.getClient();\n final NodeCache nodeCache = new NodeCache(client, \"/test/test1\", false);\n nodeCache.getListenable().addListener(new NodeCacheListener() {\n @Override\n public void nodeChanged() throws Exception {\n logger.info(\"getCurrentData:\" + nodeCache.getCurrentData());\n logger.info(\"stat : \"+nodeCache.getCurrentData().getStat());\n logger.info(\"path : \"+nodeCache.getCurrentData().getPath());\n logger.info(\"data : \"+new String(nodeCache.getCurrentData().getData()));\n }\n });\n nodeCache.start();\n while(true);\n }", "@Test\n\tpublic void testReadFromExsistingHostWithFreeCache(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(10);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(40000, readTime);\t\t\n\t}", "@Test\n public void testCpuMetric() {\n MetricValue mv = new MetricValue.Builder().load(30).add();\n\n CPU_METRICS.forEach(cmt -> testUpdateMetricWithoutId(cmt, mv));\n CPU_METRICS.forEach(cmt -> testLoadMetric(nodeId, cmt, mv));\n }", "@Override\n\tpublic Map<String, String> stats(InetSocketAddress arg0)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "@Override\n\tpublic Map<String, String> stats(InetSocketAddress arg0, long arg1)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "@Test\n\tpublic void testReadFromNewHostWithFreeCache(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(10);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 3\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(30000, readTime);\n\t}", "@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 }", "@Test\n public void testNamenodeStateOverride() throws Exception {\n String ns = \"ns0\";\n String nn = \"nn0\";\n MembershipState report = createRegistration(\n ns, nn, ROUTERS[1], FederationNamenodeServiceState.STANDBY);\n assertTrue(namenodeHeartbeat(report));\n\n // Load data into cache and calculate quorum\n assertTrue(getStateStore().loadCache(MembershipStore.class, true));\n\n MembershipState existingState = getNamenodeRegistration(ns, nn);\n assertEquals(\n FederationNamenodeServiceState.STANDBY, existingState.getState());\n\n // Override cache\n UpdateNamenodeRegistrationRequest request =\n UpdateNamenodeRegistrationRequest.newInstance(\n ns, nn, FederationNamenodeServiceState.ACTIVE);\n assertTrue(membershipStore.updateNamenodeRegistration(request).getResult());\n\n MembershipState newState = getNamenodeRegistration(ns, nn);\n assertEquals(FederationNamenodeServiceState.ACTIVE, newState.getState());\n\n // Override cache\n UpdateNamenodeRegistrationRequest request1 =\n UpdateNamenodeRegistrationRequest.newInstance(ns, nn,\n FederationNamenodeServiceState.OBSERVER);\n assertTrue(\n membershipStore.updateNamenodeRegistration(request1).getResult());\n\n MembershipState newState1 = getNamenodeRegistration(ns, nn);\n assertEquals(FederationNamenodeServiceState.OBSERVER, newState1.getState());\n }", "public boolean isMCNodeLocal() {\n\t\treturn javaNetAddress.isMCNodeLocal();\n\t}", "@Test\n public void testHeapMetricUsageNotStatic() throws Exception {\n final InterceptingOperatorMetricGroup heapMetrics = new InterceptingOperatorMetricGroup();\n\n MetricUtils.instantiateHeapMemoryMetrics(heapMetrics);\n\n @SuppressWarnings(\"unchecked\")\n final Gauge<Long> used = (Gauge<Long>) heapMetrics.get(MetricNames.MEMORY_USED);\n\n runUntilMetricChanged(\"Heap\", 10, () -> new byte[1024 * 1024 * 8], used);\n }", "private static TransactionStatistics initLocalTransaction() {\n TransactionStatistics lts = thread.get();\n if (lts == null && configuration != null) {\n if (log.isTraceEnabled()) {\n log.tracef(\"Init a new local transaction statistics\");\n }\n lts = new LocalTransactionStatistics(configuration);\n thread.set(lts);\n //Here only when transaction starts\n TransactionTS lastTS = lastTransactionTS.get();\n if (lastTS == null) {\n if (log.isTraceEnabled())\n log.tracef(\"Init a new local transaction statistics for Timestamp\");\n lastTransactionTS.set(new TransactionTS());\n } else {\n lts.addValue(ExposedStatistic.NTBC_EXECUTION_TIME, System.nanoTime() - lastTS.getEndLastTxTs());\n lts.incrementValue(ExposedStatistic.NTBC_COUNT);\n }\n } else if (configuration == null) {\n if (log.isDebugEnabled()) {\n log.debugf(\"Trying to create a local transaction statistics in a not initialized Transaction Statistics Registry\");\n }\n } else {\n if (log.isTraceEnabled()) {\n log.tracef(\"Local transaction statistic is already initialized: %s\", lts);\n }\n }\n return lts;\n }", "@Test\n\tpublic void getStaticsDataTest() {\n\t\tthis.repo.save(new StatisticsRequest(\"1233333\", \"testing\", Integer.valueOf(200), Integer.valueOf(2000)));\n\n\t\twebTestClient.get().uri(\"/getLoggedData\").accept(MediaType.APPLICATION_JSON).exchange().expectStatus().isOk()\n\t\t\t\t.expectBody(StatisticsResponse.class)\n\t\t\t\t.consumeWith(res -> assertTrue(res.getResponseBody().getTotalRequest() > 0.0));\n\n\t}", "@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats(long arg0)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "@Test\n public void testEntryFaultinCount() {\n try {\n assertNotNull(cache);\n LocalRegion rgn = (LocalRegion) cache.getRegion(SEPARATOR + regionName);\n assertNotNull(rgn);\n\n DiskRegionStats diskRegionStats = rgn.getDiskRegion().getStats();\n assertTrue(\"Entry count not 0 \", new Long(0).equals(lifoStats.getCounter()));\n\n // put five entries into the region\n for (int i = 0; i < 8; i++) {\n rgn.put(\"key\" + i, \"value\" + i);\n }\n\n assertEquals(\n \"LRU eviction entry count and entries overflown to disk count from diskstats is not equal \",\n lifoStats.getEvictions(), diskRegionStats.getNumOverflowOnDisk());\n assertNull(\"Entry value in VM is not null\", rgn.getValueInVM(\"key6\"));\n rgn.get(\"key6\");\n assertEquals(\"Not equal to number of entries present in VM : \", 6L,\n diskRegionStats.getNumEntriesInVM());\n assertEquals(\"Not equal to number of entries present on disk : \", 2L,\n diskRegionStats.getNumOverflowOnDisk());\n\n } catch (Exception ex) {\n ex.printStackTrace();\n fail(\"Test failed\");\n }\n }", "public grpc.CommunicationServiceOuterClass.LocalStatsResponse localStat(grpc.CommunicationServiceOuterClass.Measurement request) {\n return blockingUnaryCall(\n getChannel(), METHOD_LOCAL_STAT, getCallOptions(), request);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats()\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "@Test\n public void testCoh3710_getAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(NullImplementation.getMap(),\n getNamedCache(getCacheName0()).getAll(\n Collections.singleton(Integer.valueOf(1))));\n }\n });\n }", "@Test\n public void getLocallyExecutableNodes() {\n final String LOCUS_KEY = \"locus\";\n final String EARTH_KEY = \"earth\";\n final String MOON_KEY = \"moon\";\n final String SKY_LABS_KEY = \"sky-labs\";\n AnalysisGraph graph =\n new AnalysisGraph() {\n /*\n ------------------\n | CPU |\n | | |\n | \\|/ |\n | EARTH |\n |-------|---------|\n | |\n | |\n | |\n | |\n -------|---------- |\n | \\|/ | |\n | MOON | |\n | | |\n |-----------------| |\n \\ |\n \\ |\n \\ |\n \\ |\n \\ |\n \\ |\n |------\\--|--------|\n | cpu \\ | |\n | \\ \\| |\n | \\/ \\/ | Skylabs consumes the locally generated metric\n | skylabs | CPU and also the metrics from remote nodes moon\n |------------------| and earth.\n\n In this graph:\n IntentFlow:\n - Moon -> Earth\n - SkyLabs -> Earth\n - SkyLabs -> Moon\n DataFlow:\n - Earth -> Moon\n - Earth -> SkyLabs\n - Moon -> Skylabs\n The following code tests this.\n */\n\n @Override\n public void construct() {\n Metric metric =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom earthSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n @Override\n public String name() {\n return EARTH_KEY;\n }\n };\n Symptom moonSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return MOON_KEY;\n }\n };\n\n Metric skyLabCpu =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom skyLabsSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return SKY_LABS_KEY;\n }\n };\n\n addLeaf(metric);\n addLeaf(skyLabCpu);\n earthSymptom.addAllUpstreams(Collections.singletonList(metric));\n moonSymptom.addAllUpstreams(Collections.singletonList(earthSymptom));\n skyLabsSymptom.addAllUpstreams(\n new ArrayList<Node<?>>() {\n {\n add(earthSymptom);\n add(moonSymptom);\n add(skyLabCpu);\n }\n });\n\n metric.addTag(LOCUS_KEY, EARTH_KEY);\n earthSymptom.addTag(LOCUS_KEY, EARTH_KEY);\n moonSymptom.addTag(LOCUS_KEY, MOON_KEY);\n skyLabCpu.addTag(LOCUS_KEY, SKY_LABS_KEY);\n skyLabsSymptom.addTag(LOCUS_KEY, SKY_LABS_KEY);\n }\n };\n\n RcaConf earthConf =\n new RcaConf() {\n @Override\n public Map<String, String> getTagMap() {\n return new HashMap<String, String>() {\n {\n this.put(LOCUS_KEY, EARTH_KEY);\n }\n };\n }\n };\n\n RcaConf moonConf =\n new RcaConf() {\n @Override\n public Map<String, String> getTagMap() {\n return new HashMap<String, String>() {\n {\n this.put(LOCUS_KEY, MOON_KEY);\n }\n };\n }\n };\n\n RcaConf skyLabsConf =\n new RcaConf() {\n @Override\n public Map<String, String> getTagMap() {\n return new HashMap<String, String>() {\n {\n this.put(LOCUS_KEY, SKY_LABS_KEY);\n }\n };\n }\n };\n\n class WireHopperDerived extends WireHopper {\n DataMsg dataMsg;\n List<IntentMsg> intentMsgs;\n int intextIdx = 0;\n\n private WireHopperDerived(IntentMsg intentMsg, DataMsg dataMsg) {\n this(Collections.singletonList(intentMsg), dataMsg);\n }\n\n private WireHopperDerived(List<IntentMsg> intentMsg, DataMsg dataMsg) {\n super(null, null, null, null, null, new AppContext());\n this.intentMsgs = intentMsg;\n this.dataMsg = dataMsg;\n }\n\n @Override\n public void sendData(DataMsg msg) {\n assertEquals(msg.getSourceGraphNode(), this.dataMsg.getSourceGraphNode());\n AssertHelper.compareLists(msg.getDestinationGraphNodes(), this.dataMsg.getDestinationGraphNodes());\n }\n\n @Override\n public void sendIntent(IntentMsg intentMsg) {\n assertEquals(\n intentMsg.getRequesterGraphNode(), this.intentMsgs.get(intextIdx).getRequesterGraphNode());\n assertEquals(\n intentMsg.getDestinationGraphNode(), this.intentMsgs.get(intextIdx).getDestinationGraphNode());\n intextIdx++;\n }\n }\n\n List<ConnectedComponent> connectedComponents = RcaUtil.getAnalysisGraphComponents(graph);\n\n class RCASchedulerTaskMock extends RCASchedulerTask {\n private RCASchedulerTaskMock(RcaConf conf, WireHopper wireHopper) {\n super(\n 100,\n Executors.newFixedThreadPool(2),\n connectedComponents,\n null,\n null,\n conf,\n wireHopper,\n new AppContext());\n }\n }\n\n RCASchedulerTaskMock earthTask =\n new RCASchedulerTaskMock(\n earthConf,\n new WireHopperDerived(\n Collections.emptyList(),\n new DataMsg(\n EARTH_KEY,\n new ArrayList<String>() {\n {\n add(MOON_KEY);\n add(SKY_LABS_KEY);\n }\n },\n null)));\n\n RCASchedulerTaskMock moonTask =\n new RCASchedulerTaskMock(\n moonConf,\n new WireHopperDerived(\n new IntentMsg(MOON_KEY, EARTH_KEY, null),\n new DataMsg(\n MOON_KEY,\n new ArrayList<String>() {\n {\n add(SKY_LABS_KEY);\n }\n },\n null)));\n RCASchedulerTaskMock skyLabsTask =\n new RCASchedulerTaskMock(\n skyLabsConf,\n new WireHopperDerived(\n new ArrayList<IntentMsg>() {\n {\n add(new IntentMsg(SKY_LABS_KEY, EARTH_KEY, null));\n add(new IntentMsg(SKY_LABS_KEY, MOON_KEY, null));\n }\n },\n null));\n\n earthTask.run();\n\n moonTask.run();\n\n skyLabsTask.run();\n }", "public void testPerformance() {\n \t}", "@Override\n public void afterPropertiesSet() throws Exception {\n GuavaCacheMetrics.monitor(\n registry,\n cache,\n \"serialLookupCache\",\n Collections.singleton(Tag.of(StoreMetrics.TAG_STORE_KEY, StoreMetrics.TAG_STORE_VALUE)));\n }", "boolean hasTelemetry();", "private boolean local_fresh(int freshness_interval) {\n long current_time = System.currentTimeMillis();\n boolean fresh = current_time - server_checkin_time < freshness_interval;\n if (Constants.DEBUG) System.out.println(\"(log) Checking freshness locally: it is currently \" + current_time +\n \" and we last checked the server at time \" + server_checkin_time);\n if (Constants.DEBUG) {\n if (fresh) {\n System.out.println(\"(log) -> fresh locally\");\n }\n else {\n System.out.println(\"(log) -> not fresh locally\");\n }\n }\n return fresh;\n }", "@Test\n\tpublic void testReadFromOnlyHost(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock2(0);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(10000, readTime);\t\t\n\t}", "@Test\n\tpublic void testKernelNoProfile() throws Exception {\n\t\tProperties serviceProps = SgsTestNode.getDefaultProperties(APP_NAME,\n\t\t\t\tserverNode, null);\n\t\tserviceProps\n\t\t\t\t.setProperty(\"com.sun.sgs.impl.kernel.profile.level\", \"MIN\");\n\t\taddNodes(serviceProps, 1);\n\n\t\tProfileCollector collector = getCollector(additionalNodes[0]);\n\t\tassertNotNull(collector);\n\t\tassertSame(ProfileLevel.MIN, collector.getDefaultProfileLevel());\n\n\t}", "public static int performanceCountGet() { return 0; }", "@Test\n public void testCoh3710_size()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(0, getNamedCache(getCacheName0()).size());\n }\n });\n }", "private static void initializeVM() throws Exception {\n Properties props = new Properties();\n props.setProperty(MCAST_PORT, \"0\");\n props.setProperty(LOCATORS, \"\");\n props.setProperty(LOG_LEVEL, \"info\"); // to keep diskPerf logs smaller\n distributedSystem = DistributedSystem.connect(props);\n cache = CacheFactory.create(distributedSystem);\n assertNotNull(cache);\n DiskStoreFactory dsf = cache.createDiskStoreFactory();\n AttributesFactory factory = new AttributesFactory();\n factory.setScope(Scope.LOCAL);\n\n File dir = new File(\"testingDirectoryDefault\");\n dir.mkdir();\n dir.deleteOnExit();\n File[] dirs = {dir};\n dsf.setDiskDirsAndSizes(dirs, new int[] {Integer.MAX_VALUE});\n\n dsf.setAutoCompact(false);\n DiskStore ds = dsf.create(regionName);\n factory.setDiskStoreName(ds.getName());\n factory.setDiskSynchronous(true);\n factory.setDataPolicy(DataPolicy.NORMAL);\n\n /* setting LIFO related eviction attributes */\n\n factory.setEvictionAttributes(EvictionAttributesImpl.createLIFOEntryAttributes(capacity,\n EvictionAction.OVERFLOW_TO_DISK));\n RegionAttributes attr = factory.create();\n\n ((GemFireCacheImpl) cache).createRegion(regionName, attr);\n lifoClockHand =\n ((VMLRURegionMap) ((LocalRegion) cache.getRegion(SEPARATOR + regionName)).entries)\n .getEvictionList();\n\n /* storing stats reference */\n lifoStats = lifoClockHand.getStatistics();\n\n }", "@Test(timeout = 10000L)\n public void testIdleNodesInformation() throws Exception {\n CommonDriverAdminTests.testIdleNodesInformation(client, nbNodes);\n }", "public Map<Integer, Integer> getLocalCache() {\n return localCache;\n }", "private void updateReadyNodeLivenessEvents() {\n try (Mutex lock = nodeRepository().nodes().lockUnallocated()) {\n for (Node node : nodeRepository().nodes().list(Node.State.ready)) {\n Optional<Instant> lastLocalRequest = hostLivenessTracker.lastRequestFrom(node.hostname());\n if (lastLocalRequest.isEmpty()) continue;\n\n if (!node.history().hasEventAfter(History.Event.Type.requested, lastLocalRequest.get())) {\n History updatedHistory = node.history()\n .with(new History.Event(History.Event.Type.requested, Agent.NodeHealthTracker, lastLocalRequest.get()));\n nodeRepository().nodes().write(node.with(updatedHistory), lock);\n }\n }\n }\n }", "@Override\n public String localStatus(DeviceId deviceId) {\n return null;\n }", "@Test\n public void testChooseLocalNodeWithLocalNodeLoaded() {\n DatanodeDescriptor localNode = dataNodes[1];\n int numLocalChosen = 0;\n for (int i = 0; i < CHOOSE_TIMES; i++) {\n DatanodeStorageInfo[] targets =\n namenode.getNamesystem().getBlockManager().getBlockPlacementPolicy()\n .chooseTarget(FILE, 1, localNode,\n new ArrayList<DatanodeStorageInfo>(), false, null, BLOCK_SIZE,\n TestBlockStoragePolicy.DEFAULT_STORAGE_POLICY, null);\n\n Assert.assertEquals(1, targets.length);\n if (localNode == targets[0].getDatanodeDescriptor()) {\n numLocalChosen++;\n }\n }\n Assert.assertTrue(numLocalChosen < (CHOOSE_TIMES - numLocalChosen));\n }", "private void checkCacheEnableStatus(FlowGraph graph, JobMySqlModel lastJob) {\n\n // Based on the time when the task was created,\n // nodes that have been edited after this time cannot use the cache.\n long lastJobCreateTime = lastJob.getCreatedTime().getTime();\n\n // Temporarily mark all nodes as cache available\n graph.getAllJobSteps().forEach(x -> x.setHasCacheResult(true));\n\n // Find the nodes whose version number is greater than the base time.\n // These nodes have been edited after the task is created, and the cache cannot be used.\n graph\n .getAllJobSteps()\n .stream()\n .filter(x -> x.getParamsVersion() >= lastJobCreateTime)\n .forEach(x -> x.setHasCacheResult(false));\n\n\n // Check whether the cache of the task corresponding to the node is available.\n // If the task status is incorrect, the cache is not available.\n // A node may correspond to multiple tasks\n List<TaskMySqlModel> taskMysqlList = taskService.listByJobId(lastJob.getJobId(), lastJob.getMyRole());\n Map<String, List<TaskMySqlModel>> taskMap = new HashMap<>();\n for (TaskMySqlModel model : taskMysqlList) {\n List<TaskMySqlModel> taskList = taskMap.get(model.getFlowNodeId());\n if (taskList == null) {\n taskList = new ArrayList<>();\n }\n taskList.add(model);\n taskMap.put(model.getFlowNodeId(), taskList);\n }\n\n graph.getAllJobSteps().stream().filter(x -> x.getHasCacheResult()).filter(x -> {\n List<TaskMySqlModel> taskList = taskMap.get(x.getNodeId());\n if (taskList == null) {\n return true;\n } else {\n for (TaskMySqlModel m : taskList) {\n if (m.getStatus() != TaskStatus.success) {\n return true;\n }\n }\n }\n return false;\n }).forEach(x -> x.setHasCacheResult(false));\n }", "@Test\n public void testLIFOEntryEviction() {\n try {\n assertNotNull(cache);\n LocalRegion rgn = (LocalRegion) cache.getRegion(SEPARATOR + regionName);\n assertNotNull(rgn);\n\n assertEquals(\"Region is not properly cleared \", 0, rgn.size());\n assertTrue(\"Entry count not 0 \", new Long(0).equals(lifoStats.getCounter()));\n // put eight entries into the region\n for (int i = 0; i < 8; i++) {\n rgn.put((long) i, (long) i);\n if (i < capacity) {\n // entries are in memory\n assertNotNull(\"Entry is not in VM \", rgn.getValueInVM((long) i));\n } else {\n /*\n * assertTrue(\"LIFO Entry is not evicted\", lifoClockHand.getLRUEntry() .testEvicted());\n */\n assertTrue(\"Entry is not null \", rgn.entries.getEntry((long) i).isValueNull());\n }\n }\n\n } catch (Exception ex) {\n ex.printStackTrace();\n fail(\"Test failed\");\n }\n }", "private void assertNoStaleDataExistInNearCache(IMap<Integer, Integer> map) {\n Map<Integer, Integer> fromNearCache = getAllEntries(map);\n\n // 2. clear Near Cache\n ((NearCachedMapProxyImpl) map).getNearCache().clear();\n\n // 3. get all values when Near Cache is empty, these requests\n // will go directly to underlying IMap because Near Cache is empty\n Map<Integer, Integer> fromIMap = getAllEntries(map);\n\n for (int i = 0; i < ENTRY_COUNT; i++) {\n assertEquals(fromIMap.get(i), fromNearCache.get(i));\n }\n }", "public void testWatcherUsageStatsTests() {\n long watchCount = randomLongBetween(5, 20);\n for (int i = 0; i < watchCount; i++) {\n watcherClient().preparePutWatch(\"_id\" + i).setSource(watchBuilder()\n .trigger(schedule(cron(\"0/5 * * * * ? 2050\")))\n .input(simpleInput())\n .addAction(\"_id\", loggingAction(\"whatever \" + i)))\n .get();\n }\n\n XPackUsageRequest request = new XPackUsageRequest();\n XPackUsageResponse usageResponse = client().execute(XPackUsageAction.INSTANCE, request).actionGet();\n Optional<XPackFeatureSet.Usage> usage = usageResponse.getUsages().stream()\n .filter(u -> u instanceof WatcherFeatureSetUsage)\n .findFirst();\n assertThat(usage.isPresent(), is(true));\n WatcherFeatureSetUsage featureSetUsage = (WatcherFeatureSetUsage) usage.get();\n\n long activeWatchCount = (long) ((Map) featureSetUsage.stats().get(\"count\")).get(\"active\");\n assertThat(activeWatchCount, is(watchCount));\n }", "public com.google.common.util.concurrent.ListenableFuture<grpc.CommunicationServiceOuterClass.LocalStatsResponse> localStat(\n grpc.CommunicationServiceOuterClass.Measurement request) {\n return futureUnaryCall(\n getChannel().newCall(METHOD_LOCAL_STAT, getCallOptions()), request);\n }", "public void localStat(grpc.CommunicationServiceOuterClass.Measurement request,\n io.grpc.stub.StreamObserver<grpc.CommunicationServiceOuterClass.LocalStatsResponse> responseObserver) {\n asyncUnimplementedUnaryCall(METHOD_LOCAL_STAT, responseObserver);\n }", "long memoryUnused();", "@Test\n public void testStorageTypeStatsWhenStorageFailed() throws Exception {\n assumeNotWindows();\n\n DFSTestUtil.createFile(cluster.getFileSystem(),\n new Path(\"/blockStatsFile1\"), 1024, (short) 1, 0L);\n Map<StorageType, StorageTypeStats> storageTypeStatsMap = cluster\n .getNamesystem().getBlockManager().getStorageTypeStats();\n\n StorageTypeStats storageTypeStats = storageTypeStatsMap\n .get(StorageType.RAM_DISK);\n assertEquals(7, storageTypeStats.getNodesInService());\n\n storageTypeStats = storageTypeStatsMap.get(StorageType.DISK);\n assertEquals(3, storageTypeStats.getNodesInService());\n\n storageTypeStats = storageTypeStatsMap.get(StorageType.ARCHIVE);\n assertEquals(3, storageTypeStats.getNodesInService());\n\n storageTypeStats = storageTypeStatsMap.get(StorageType.NVDIMM);\n assertEquals(1, storageTypeStats.getNodesInService());\n File dn1ArcVol1 = cluster.getInstanceStorageDir(0, 1);\n File dn2ArcVol1 = cluster.getInstanceStorageDir(1, 1);\n File dn3ArcVol1 = cluster.getInstanceStorageDir(2, 1);\n File dn4ArcVol1 = cluster.getInstanceStorageDir(3, 1);\n DataNodeTestUtils.injectDataDirFailure(dn1ArcVol1);\n DataNodeTestUtils.injectDataDirFailure(dn2ArcVol1);\n DataNodeTestUtils.injectDataDirFailure(dn3ArcVol1);\n DataNodeTestUtils.injectDataDirFailure(dn4ArcVol1);\n try {\n DFSTestUtil.createFile(cluster.getFileSystem(), new Path(\n \"/blockStatsFile2\"), 1024, (short) 1, 0L);\n fail(\"Should throw exception, becuase no DISK storage available\");\n } catch (Exception e) {\n assertTrue(e.getMessage().contains(\n \"could only be written to 0 of the 1 minReplication\"));\n }\n // wait for heartbeat\n Thread.sleep(6000);\n storageTypeStatsMap = cluster.getNamesystem().getBlockManager()\n .getStorageTypeStats();\n assertFalse(\"StorageTypeStatsMap should not contain DISK Storage type\",\n storageTypeStatsMap.containsKey(StorageType.DISK));\n DataNodeTestUtils.restoreDataDirFromFailure(dn1ArcVol1);\n DataNodeTestUtils.restoreDataDirFromFailure(dn2ArcVol1);\n DataNodeTestUtils.restoreDataDirFromFailure(dn3ArcVol1);\n DataNodeTestUtils.restoreDataDirFromFailure(dn4ArcVol1);\n for (int i = 0; i < 4; i++) {\n cluster.restartDataNode(0, true);\n }\n // wait for heartbeat\n Thread.sleep(6000);\n storageTypeStatsMap = cluster.getNamesystem().getBlockManager()\n .getStorageTypeStats();\n storageTypeStats = storageTypeStatsMap.get(StorageType.RAM_DISK);\n assertEquals(7, storageTypeStats.getNodesInService());\n\n storageTypeStats = storageTypeStatsMap.get(StorageType.DISK);\n assertEquals(3, storageTypeStats.getNodesInService());\n\n storageTypeStats = storageTypeStatsMap.get(StorageType.ARCHIVE);\n assertEquals(3, storageTypeStats.getNodesInService());\n\n storageTypeStats = storageTypeStatsMap.get(StorageType.NVDIMM);\n assertEquals(1, storageTypeStats.getNodesInService());\n }", "@Test\n public void testNetworkMetric() {\n MetricValue mv = new MetricValue.Builder().load(10).add();\n\n Set<String> set = ImmutableSet.of(\"eth0\", \"eth1\");\n\n set.forEach(network -> NETWORK_METRICS.forEach(cmt ->\n testUpdateMetricWithResource(cmt, mv, network)));\n\n set.forEach(network -> NETWORK_METRICS.forEach(cmt ->\n testLoadMetricWithResource(nodeId, cmt, mv, network)));\n }", "@Test\n public void eternal() {\n Cache<Integer, Integer> c = new Cache2kBuilder<Integer, Integer>() {}\n .eternal(true)\n /* ... set loader ... */\n .build();\n target.setCache(c);\n assertTrue(extractHandler() instanceof TimingHandler.EternalImmediate);\n }", "@Test\n public void testProcessRequestMetadataDispatcherSupportabilityTracking() throws Exception {\n EnvironmentHolder holder = setupEnvironmentHolder(\"cat_enabled_dt_disabled_test\");\n\n try {\n String className = APISupportabilityTest.ProcessRequestMetadataDispatcherTestClass.class.getName();\n InstrumentTestUtils.createTransformerAndRetransformClass(className, \"getProcessRequestMetadata\", \"()V;\");\n\n final String processRequestMetadataMetric = \"Supportability/API/ProcessRequestMetadata/API\";\n new ProcessRequestMetadataDispatcherTestClass().getProcessRequestMetadata();\n\n Map<String, Integer> metricData = InstrumentTestUtils.getAndClearMetricData();\n Assert.assertNotNull(metricData.get(processRequestMetadataMetric));\n Assert.assertEquals(Integer.valueOf(1), metricData.get(processRequestMetadataMetric));\n } finally {\n holder.close();\n }\n }", "@Test\n public void testCoh3710_isEmpty()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertTrue(getNamedCache(getCacheName0()).isEmpty());\n }\n });\n }", "long getCacheHits();", "@Test\n public void testFindViaCache() {\n Integer hitRate1 = hitRate;\n Integer foundId = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate1, hitRate); // No change expected yet\n \n Integer hitRate2 = hitRate;\n Integer foundId2 = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate, new Integer(hitRate2+1)); // A cache hit is expected\n }", "@Test\n public void testAuditLogger() throws IOException {\n Configuration conf = new HdfsConfiguration();\n conf.set(DFSConfigKeys.DFS_NAMENODE_AUDIT_LOGGERS_KEY, TestAuditLogger.DummyAuditLogger.class.getName());\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build();\n try {\n cluster.waitClusterUp();\n Assert.assertTrue(TestAuditLogger.DummyAuditLogger.initialized);\n TestAuditLogger.DummyAuditLogger.resetLogCount();\n FileSystem fs = cluster.getFileSystem();\n long time = System.currentTimeMillis();\n fs.setTimes(new Path(\"/\"), time, time);\n Assert.assertEquals(1, TestAuditLogger.DummyAuditLogger.logCount);\n } finally {\n cluster.shutdown();\n }\n }", "default String getLocalNodeName() {\n return \"local\";\n }", "@FameProperty(name = \"numberOfLocalAccesses\", derived = true)\n public Number getNumberOfLocalAccesses() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "private static void testRendezvousHashing() {\n Map<String, AtomicInteger> HRWNodesMap = Maps.newHashMap();\r\n List<String> HRWNodes = Lists.newArrayList();\r\n for(int i = 0 ; i < nodesCount; i ++) {\r\n HRWNodes.add(\"HRWNode\"+i);\r\n HRWNodesMap.put(\"HRWNode\"+i, new AtomicInteger());\r\n }\r\n RendezvousHashing<String, String> hrw = new RendezvousHashing(charsFunnel, charsFunnel, HRWNodes);\r\n \r\n // insert keys\r\n long startTime = System.currentTimeMillis();\r\n for(int i = 0 ; i < keyCount; i++) {\r\n HRWNodesMap.get(hrw.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n long endTime = System.currentTimeMillis();\r\n long timeElapsed = endTime - startTime;\r\n // System.out.println(\"Execution Time in milliseconds : \" + timeElapsed);\r\n \r\n\r\n // print out distriubution + clear\r\n for(Entry<String, AtomicInteger> entry : HRWNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n entry.getValue().set(0);\r\n }\r\n\r\n // remove node 3\r\n System.out.println(\"\\n=== After Removing Node 3 ===\");\r\n hrw.removeNode(\"HRWNode3\");\r\n HRWNodesMap.remove(\"HRWNode3\");\r\n\r\n // re-add\r\n for(int i = 0 ; i < keyCount; i++) {\r\n HRWNodesMap.get(hrw.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n\r\n // print out distriubution again\r\n for(Entry<String, AtomicInteger> entry : HRWNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n }\r\n }", "int getSystemCount();", "public void testNodeNotReachableFromClusterManager() throws Exception {\n startCluster(3);\n\n String clusterManagerNode = internalCluster().getClusterManagerName();\n String nonClusterManagerNode = null;\n while (nonClusterManagerNode == null) {\n nonClusterManagerNode = randomFrom(internalCluster().getNodeNames());\n if (nonClusterManagerNode.equals(clusterManagerNode)) {\n nonClusterManagerNode = null;\n }\n }\n\n logger.info(\"blocking request from cluster-manager [{}] to [{}]\", clusterManagerNode, nonClusterManagerNode);\n MockTransportService clusterManagerTransportService = (MockTransportService) internalCluster().getInstance(\n TransportService.class,\n clusterManagerNode\n );\n if (randomBoolean()) {\n clusterManagerTransportService.addUnresponsiveRule(\n internalCluster().getInstance(TransportService.class, nonClusterManagerNode)\n );\n } else {\n clusterManagerTransportService.addFailToSendNoConnectRule(\n internalCluster().getInstance(TransportService.class, nonClusterManagerNode)\n );\n }\n\n logger.info(\"waiting for [{}] to be removed from cluster\", nonClusterManagerNode);\n ensureStableCluster(2, clusterManagerNode);\n\n logger.info(\"waiting for [{}] to have no cluster-manager\", nonClusterManagerNode);\n assertNoClusterManager(nonClusterManagerNode);\n\n logger.info(\"healing partition and checking cluster reforms\");\n clusterManagerTransportService.clearAllRules();\n\n ensureStableCluster(3);\n }", "private final void setupLocal0() {\n assert _profile==null;\n _fs = new Futures();\n _profile = new MRProfile(this);\n _profile._localstart = System.currentTimeMillis();\n _topLocal = true;\n // Check for global vs local work\n int selfidx = H2O.SELF.index();\n int nlo = subShift(selfidx);\n assert nlo < _nhi;\n final int nmid = (nlo+_nhi)>>>1; // Mid-point\n if( !_run_local && nlo+1 < _nhi ) { // Have global work?\n _profile._rpcLstart = System.currentTimeMillis();\n _nleft = remote_compute(nlo+1,nmid);\n _profile._rpcRstart = System.currentTimeMillis();\n _nrite = remote_compute( nmid,_nhi);\n _profile._rpcRdone = System.currentTimeMillis();\n }\n _lo = 0; _hi = _fr.anyVec().nChunks(); // Do All Chunks\n // If we have any output vectors, make a blockable Futures for them to\n // block on.\n // get the Vecs from the K/V store, to avoid racing fetches from the map calls\n _fr.vecs();\n setupLocal(); // Setup any user's shared local structures\n _profile._localdone = System.currentTimeMillis();\n }", "boolean isCollectorHostLive(String clusterName, MetricsService service) throws SystemException;", "private void laaLLocalAttributeDetected(Metric metric) {\n\t\tLaaData laaData = (LaaData)((Laa)metric).getData();\n\t\tint localAttributesAccessed = laaData.getLocalAttributesAccessed() + 1;\n\t\tlaaData.setLocalAttributesAccessed(localAttributesAccessed);\t\t\n\t}", "public boolean hasOTAVAILCACHEIND() {\n return fieldSetFlags()[11];\n }", "boolean isCacheInitialized();", "static boolean stats(Configuration conf) {\n return conf.getBoolean(STATS_FLAG, false);\n }", "private Map<String, Object> buildNodeStatus(RemoteProxy proxy) {\r\n\r\n\t\tMap<String, Object> nodeInfos = new HashMap<>();\r\n\t\tnodeInfos.put(\"busy\", proxy.isBusy());\r\n\t\ttry {\r\n\t\t\tnodeInfos.put(\"version\", ((CustomRemoteProxy)proxy).getNodeStatusClient().getStatus().getString(\"version\"));\r\n\t\t} catch (Exception e) {\r\n\t\t\tnodeInfos.put(\"version\", \"unknown\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tnodeInfos.put(\"driverVersion\", ((CustomRemoteProxy)proxy).getNodeStatusClient().getStatus().getString(\"driverVersion\"));\r\n\t\t} catch (Exception e) {\r\n\t\t\tnodeInfos.put(\"driverVersion\", \"unknown\");\r\n\t\t}\r\n\t\tnodeInfos.put(\"testSlots\", proxy.getConfig().maxSession);\r\n\t\tnodeInfos.put(\"usedTestSlots\", proxy.getTotalUsed());\r\n\t\t\r\n\t\tlong lastSession = proxy.getLastSessionStart();\r\n\t\tString lastSessionDate = \"never\";\r\n\t\tif (lastSession > 0) {\r\n\t\t\tInstant instant = Instant.ofEpochSecond(lastSession / 1000);\r\n\t\t\tlastSessionDate = ZonedDateTime.ofInstant(instant, ZoneOffset.UTC).toString();\r\n\t\t}\r\n\t\t\r\n\t\tnodeInfos.put(\"lastSessionStart\", lastSessionDate);\r\n\t\ttry {\r\n\t\t\tnodeInfos.put(\"status\", ((CustomRemoteProxy)proxy).getNodeStatusClient().getStatus().getString(\"status\"));\r\n\t\t} catch (Exception e) {\r\n\t\t\tnodeInfos.put(\"status\", GridStatus.UNKNOWN);\r\n\t\t}\r\n\r\n\t\treturn nodeInfos;\r\n\t}", "@Test\n\tpublic void testReadFromExistingHost(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(100);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(40000, readTime);\n\t}", "private void verifyServing(int port) throws IOException {\n String response = httpGet(port, \"\");\n assertTrue(response.contains(\"Ping\"));\n assertTrue(response.contains(\"Metrics\"));\n assertTrue(response.contains(\"Healthcheck\"));\n \n response = httpGet(port, \"/ping\");\n assertEquals(\"pong\", response.trim());\n \n response = httpGet(port, \"/threads\");\n assertTrue(response.startsWith(\"main id=\"));\n \n response = httpGet(port, \"/healthcheck\");\n assertTrue(response.startsWith(\"{\\\"deadlocks\\\":{\\\"healthy\\\":true}}\"));\n \n response = httpGet(port, \"/metrics\");\n assertTrue(response.startsWith(\"{\\\"version\\\":\")); \n Iterator iter = new ObjectMapper().reader(JsonNode.class).readValues(response);\n JsonNode node = (JsonNode) iter.next();\n assertEquals(1, node.get(\"counters\").get(\"myMetrics.myCounter\").get(\"count\").asInt());\n assertEquals(2, node.get(\"meters\").get(\"morphline.logWarn.numProcessCalls\").get(\"count\").asInt());\n assertEquals(3, node.get(\"meters\").get(\"morphline.logDebug.numProcessCalls\").get(\"count\").asInt()); \n assertTrue(node.get(\"gauges\").get(\"jvm.memory.heap.used\").get(\"value\").asInt() > 0);\n \n assertFalse(iter.hasNext()); \n }", "@Test\n public void testCoh3710_get()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertNull(getNamedCache(getCacheName0()).get(Integer.valueOf(1)));\n }\n });\n }", "@Override\n public boolean isStatisticsEnabled() {\n return counter != null && counter.isStatisticsEnabled();\n }", "public void localStat(grpc.CommunicationServiceOuterClass.Measurement request,\n io.grpc.stub.StreamObserver<grpc.CommunicationServiceOuterClass.LocalStatsResponse> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(METHOD_LOCAL_STAT, getCallOptions()), request, responseObserver);\n }", "public static boolean isActiveNetworkMetered(Context context) {\n return false;\n // by tfling\n }", "List<CacheHealth> getCacheHealth();", "@Test\n public void testCoh3710_containsKey()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertFalse(getNamedCache(getCacheName0()).containsKey(Integer.valueOf(1)));\n }\n });\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n boolean boolean0 = fBCachedFetcher0.isFirst();\n assertFalse(boolean0);\n }", "@Test\n public void testIndexCreateCountPartitionsLeftInCluster() throws Exception {\n pds = true;\n\n Ignite ignite = startGrid(0);\n\n startGrid(1);\n\n ignite.cluster().state(ClusterState.ACTIVE);\n\n IgniteCache<Object, Object> cache1 = ignite.cache(CACHE_NAME);\n\n String addColSql = \"ALTER TABLE \" + TABLE + \" ADD COLUMN \" + COLUMN3_NAME + \" BIGINT\";\n\n cache1.query(new SqlFieldsQuery(addColSql)).getAll();\n\n for (int i = 0; i < 100_000; i++) {\n Long id = (long)i;\n\n BinaryObjectBuilder o = ignite.binary().builder(OBJECT_NAME)\n .setField(KEY_NAME, id)\n .setField(COLUMN1_NAME, i / 2)\n .setField(COLUMN2_NAME, \"str\" + Integer.toHexString(i))\n .setField(COLUMN3_NAME, id * 10);\n\n cache1.put(id, o.build());\n }\n\n stopGrid(1);\n\n MetricRegistry metrics = cacheGroupMetrics(0, GROUP_NAME);\n\n GridTestUtils.runAsync(() -> {\n String createIdxSql = \"CREATE INDEX \" + INDEX_NAME + \" ON \" + TABLE + \"(\" + COLUMN3_NAME + \")\";\n\n cache1.query(new SqlFieldsQuery(createIdxSql)).getAll();\n\n String selectIdxSql = \"select * from information_schema.indexes where index_name='\" + INDEX_NAME + \"'\";\n\n List<List<?>> all = cache1.query(new SqlFieldsQuery(selectIdxSql)).getAll();\n\n assertEquals(\"Index not found\", 1, all.size());\n });\n\n final LongMetric idxBuildCntPartitionsLeft0 = metrics.findMetric(\"IndexBuildCountPartitionsLeft\");\n\n assertTrue(\"Timeout wait start build index\",\n waitForCondition(() -> idxBuildCntPartitionsLeft0.value() > 0, 30_000));\n\n assertTrue(\"Timeout wait finished build index\",\n waitForCondition(() -> idxBuildCntPartitionsLeft0.value() == 0, 30_000));\n\n startGrid(1);\n\n metrics = cacheGroupMetrics(1, GROUP_NAME);\n\n final LongMetric idxBuildCntPartitionsLeft1 = metrics.findMetric(\"IndexBuildCountPartitionsLeft\");\n\n assertTrue(\"Timeout wait start build index\",\n waitForCondition(() -> idxBuildCntPartitionsLeft1.value() > 0, 30_000));\n\n assertTrue(\"Timeout wait finished build index\",\n waitForCondition(() -> idxBuildCntPartitionsLeft1.value() == 0, 30_000));\n }", "private NodeList getStats() {\n\t\treturn mDom.getElementsByTagName(\"stats\");\n\t}", "public boolean isSetCacheLocalKeyUnchangedHitsCount() {\n return EncodingUtils.testBit(__isset_bitfield, __CACHELOCALKEYUNCHANGEDHITSCOUNT_ISSET_ID);\n }", "public void testSummaryStatsParallel() {\n File testFile = new File(\"src/test/data/dataset1.txt\");\n GcManager gcManager = new GcManager();\n gcManager.store(testFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Max young space not calculated correctly.\", 248192, jvmRun.getMaxYoungSpace());\n Assert.assertEquals(\"Max old space not calculated correctly.\", 786432, jvmRun.getMaxOldSpace());\n Assert.assertEquals(\"NewRatio not calculated correctly.\", 3, jvmRun.getNewRatio());\n Assert.assertEquals(\"Max heap space not calculated correctly.\", 1034624, jvmRun.getMaxHeapSpace());\n Assert.assertEquals(\"Max heap occupancy not calculated correctly.\", 1013058, jvmRun.getMaxHeapOccupancy());\n Assert.assertEquals(\"Max pause not calculated correctly.\", 2782, jvmRun.getMaxGcPause());\n Assert.assertEquals(\"Max perm gen space not calculated correctly.\", 159936, jvmRun.getMaxPermSpace());\n Assert.assertEquals(\"Max perm gen occupancy not calculated correctly.\", 76972, jvmRun.getMaxPermOccupancy());\n Assert.assertEquals(\"Total GC duration not calculated correctly.\", 5614, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC Event count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SCAVENGE.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SCAVENGE));\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SERIAL_OLD.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SERIAL_OLD));\n Assert.assertTrue(Analysis.WARN_APPLICATION_STOPPED_TIME_MISSING + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_APPLICATION_STOPPED_TIME_MISSING));\n Assert.assertTrue(Analysis.ERROR_SERIAL_GC_PARALLEL + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_SERIAL_GC_PARALLEL));\n }", "int getCachedCount();", "void nodeOnline();", "@Override\n public NodeInfo getNodeInfo() {\n NodeInfo nodeInfo = new NodeInfo(this.nodeProbe.isGossipRunning(), this.nodeProbe.isThriftServerRunning(),\n this.nodeProbe.isNativeTransportRunning(), this.nodeProbe.getUptime(),\n this.nodeProbe.getExceptionCount());\n return nodeInfo;\n }", "@Test\n public void testNearTruncate()\n {\n NamedCache cache = getNamedCache(\"near-client-listener-truncate\");\n cache.clear();\n\n clearEvents();\n cache.put(MapListenerTests.KEY, MapListenerTests.VALUE);\n assertEquals(cache.get(MapListenerTests.KEY), MapListenerTests.VALUE);\n checkEvents(true, false);\n\n clearEvents();\n cache.truncate();\n Eventually.assertThat(invoking(cache).get(MapListenerTests.KEY), nullValue());\n checkEvents(false, false);\n\n clearEvents();\n cache.put(MapListenerTests.KEY, MapListenerTests.VALUE);\n checkEvents(true, false);\n }", "@Test\n public void testRefreshEntriesFromPrimaryWhenDSMDetectsServerLive() throws Exception {\n addIgnoredException(ServerConnectivityException.class.getName());\n\n PORT1 = server1.invoke(HAInterestTestCase::createServerCache);\n server1.invoke(HAInterestTestCase::createEntriesK1andK2);\n createClientPoolCacheConnectionToSingleServer(getName(),\n getServerHostName(server1.getHost()));\n registerK1AndK2();\n verifyRefreshedEntriesFromServer();\n\n server1.invoke(HAInterestTestCase::stopServer);\n verifyDeadAndLiveServers(1, 0);\n server1.invoke(HAInterestTestCase::putK1andK2);\n server1.invoke(HAInterestTestCase::startServer);\n verifyDeadAndLiveServers(0, 1);\n final Region r1 = cache.getRegion(SEPARATOR + REGION_NAME);\n assertNotNull(r1);\n // Verify for interest registration after cache-server is started.\n server1.invoke(HAInterestTestCase::verifyInterestRegistration);\n\n WaitCriterion wc = new WaitCriterion() {\n private String excuse;\n\n @Override\n public boolean done() {\n Entry e1;\n Entry e2;\n\n try {\n e1 = r1.getEntry(k1);\n if (e1 == null) {\n excuse = \"Entry for k1 is null\";\n return false;\n }\n } catch (EntryDestroyedException e) {\n excuse = \"Entry destroyed\";\n return false;\n }\n if (!server_k1.equals(e1.getValue())) {\n excuse = \"e1 value is not server_k1\";\n return false;\n }\n try {\n e2 = r1.getEntry(k2);\n if (e2 == null) {\n excuse = \"Entry for k2 is null\";\n return false;\n }\n } catch (EntryDestroyedException e) {\n excuse = \"Entry destroyed\";\n return false;\n }\n if (!server_k2.equals(e2.getValue())) {\n excuse = \"e2 value is not server_k2\";\n return false;\n }\n return true;\n }\n\n @Override\n public String description() {\n return excuse;\n }\n };\n GeodeAwaitility.await().untilAsserted(wc);\n }", "boolean isUsed();", "boolean isUsed();", "@Override\n public boolean getCurrentNodeStatus(InetAddress ia) {\n if (ia.isAnyLocalAddress()) {\n return true;\n }\n // Check if given address is in cluster\n for (Client c : instance.getClientService().getConnectedClients()) {\n if (c.getSocketAddress().getAddress().equals(ia)) {\n return true;\n }\n }\n // reject all other addresses\n return false;\n }", "public boolean isLocal();", "BigDecimal getCacheSpaceAvailable();", "@Override\n public double computeLikeliness(Node node1, Node node12) {\n return 0;\n }", "public abstract String getNodeStatusVariableName();", "private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }", "@Test\n\t\tpublic void woeIsMeUnreachabletest() {\n\t\t\tassertTrue(System.currentTimeMillis() > 0);\n\t\t}", "@Override\n protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {\n final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));\n final String cacheContainerName = address.getElement(address.size() - 2).getValue();\n final String cacheName = address.getLastElement().getValue();\n final String attrName = operation.require(NAME).asString();\n final ServiceController<?> controller = context.getServiceRegistry(false).getService(CacheService.getServiceName(cacheContainerName, cacheName));\n Cache<?, ?> cache = (Cache<?, ?>) controller.getValue();\n\n CacheMetrics metric = CacheMetrics.getStat(attrName);\n ModelNode result = new ModelNode();\n\n if (metric == null) {\n context.getFailureDescription().set(String.format(\"Unknown metric %s\", attrName));\n } else if (cache == null) {\n context.getFailureDescription().set(String.format(\"Unavailable cache %s\", attrName));\n } else {\n switch (metric) {\n case CACHE_STATUS:\n result.set(cache.getAdvancedCache().getStatus().toString());\n break;\n case CONCURRENCY_LEVEL:\n result.set(((LockManagerImpl) cache.getAdvancedCache().getLockManager()).getConcurrencyLevel());\n break;\n case NUMBER_OF_LOCKS_AVAILABLE:\n result.set(((LockManagerImpl) cache.getAdvancedCache().getLockManager()).getNumberOfLocksAvailable());\n break;\n case NUMBER_OF_LOCKS_HELD:\n result.set(((LockManagerImpl) cache.getAdvancedCache().getLockManager()).getNumberOfLocksHeld());\n break;\n case AVERAGE_READ_TIME: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getAverageReadTime() : 0);\n break;\n }\n case AVERAGE_WRITE_TIME: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getAverageWriteTime() : 0);\n break;\n }\n case ELAPSED_TIME: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getElapsedTime() : 0);\n break;\n }\n case EVICTIONS: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getEvictions() : 0);\n break;\n }\n case HIT_RATIO: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getHitRatio() : 0);\n break;\n }\n case HITS: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getHits() : 0);\n break;\n }\n case MISSES: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getMisses() : 0);\n break;\n }\n case NUMBER_OF_ENTRIES: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getNumberOfEntries() : 0);\n break;\n }\n case READ_WRITE_RATIO: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getReadWriteRatio() : 0);\n break;\n }\n case REMOVE_HITS: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getRemoveHits() : 0);\n break;\n }\n case REMOVE_MISSES: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getRemoveMisses() : 0);\n break;\n }\n case STORES: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getStores() : 0);\n break;\n }\n case TIME_SINCE_RESET: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getTimeSinceReset() : 0);\n break;\n }\n case AVERAGE_REPLICATION_TIME: {\n result.set(((RpcManagerImpl) cache.getAdvancedCache().getRpcManager()).getAverageReplicationTime());\n break;\n }\n case REPLICATION_COUNT:\n result.set(((RpcManagerImpl) cache.getAdvancedCache().getRpcManager()).getReplicationCount());\n break;\n case REPLICATION_FAILURES:\n result.set(((RpcManagerImpl) cache.getAdvancedCache().getRpcManager()).getReplicationFailures());\n break;\n case SUCCESS_RATIO:\n result.set(((RpcManagerImpl) cache.getAdvancedCache().getRpcManager()).getSuccessRatioFloatingPoint());\n break;\n case COMMITS: {\n TxInterceptor txInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), TxInterceptor.class);\n result.set(txInterceptor != null ? txInterceptor.getCommits() : 0);\n break;\n }\n case PREPARES: {\n TxInterceptor txInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), TxInterceptor.class);\n result.set(txInterceptor != null ? txInterceptor.getPrepares() : 0);\n break;\n }\n case ROLLBACKS: {\n TxInterceptor txInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), TxInterceptor.class);\n result.set(txInterceptor != null ? txInterceptor.getRollbacks() : 0);\n break;\n }\n case INVALIDATIONS: {\n InvalidationInterceptor invInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), InvalidationInterceptor.class);\n result.set(invInterceptor != null ? invInterceptor.getInvalidations() : 0);\n break;\n }\n case PASSIVATIONS: {\n PassivationInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), PassivationInterceptor.class);\n result.set(interceptor != null ? interceptor.getPassivations() : \"\");\n break;\n }\n case ACTIVATIONS: {\n ActivationManager manager = cache.getAdvancedCache().getComponentRegistry().getComponent(ActivationManager.class);\n result.set(manager != null ? manager.getActivationCount() : 0);\n break;\n }\n case CACHE_LOADER_LOADS: {\n ActivationInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), ActivationInterceptor.class);\n result.set(interceptor != null ? interceptor.getCacheLoaderLoads() : 0);\n break;\n }\n case CACHE_LOADER_MISSES: {\n ActivationInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), ActivationInterceptor.class);\n result.set(interceptor != null ? interceptor.getCacheLoaderMisses() : 0);\n break;\n }\n case CACHE_LOADER_STORES: {\n CacheWriterInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), CacheWriterInterceptor.class);\n result.set(interceptor != null ? interceptor.getWritesToTheStores() : 0);\n break;\n }\n }\n context.getResult().set(result);\n }\n context.completeStep();\n }", "@Test(groups = { \"Integration\" })\n public void testNonStandardPort() throws Exception {\n redis = app.createAndManageChild(EntitySpec.create(RedisStore.class)\n .configure(RedisStore.REDIS_PORT, PortRanges.fromString(\"10000+\")));\n app.start(ImmutableList.of(loc));\n\n EntityAsserts.assertAttributeEqualsEventually(redis, Startable.SERVICE_UP, true);\n JedisSupport support = new JedisSupport(redis);\n support.redisTest();\n\n // Increase timeout because test was failing on jenkins sometimes. The log shows only one \n // call to `info server` (for obtaining uptime) which took 26 seconds; then 4 seconds later \n // this assert failed (with it checking every 500ms). The response did correctly contain\n // `uptime_in_seconds:27`.\n EntityAsserts.assertPredicateEventuallyTrue(ImmutableMap.of(\"timeout\", Duration.FIVE_MINUTES), redis, new Predicate<RedisStore>() {\n @Override public boolean apply(@Nullable RedisStore input) {\n return input != null &&\n input.getAttribute(RedisStore.UPTIME) > 0 &&\n input.getAttribute(RedisStore.TOTAL_COMMANDS_PROCESSED) >= 0 &&\n input.getAttribute(RedisStore.TOTAL_CONNECTIONS_RECEIVED) >= 0 &&\n input.getAttribute(RedisStore.EXPIRED_KEYS) >= 0 &&\n input.getAttribute(RedisStore.EVICTED_KEYS) >= 0 &&\n input.getAttribute(RedisStore.KEYSPACE_HITS) >= 0 &&\n input.getAttribute(RedisStore.KEYSPACE_MISSES) >= 0;\n }\n });\n }", "int getHdfsMetricsCount();" ]
[ "0.6607758", "0.60954565", "0.6068883", "0.60664254", "0.6035814", "0.60291857", "0.5842367", "0.58102363", "0.57829964", "0.5750845", "0.5665301", "0.55806774", "0.549923", "0.54802155", "0.5460439", "0.5436629", "0.54113746", "0.53596956", "0.5340876", "0.53293926", "0.53273135", "0.5307702", "0.5286063", "0.5283986", "0.52682114", "0.52368987", "0.5206614", "0.5193465", "0.5192926", "0.51786304", "0.5154558", "0.51488584", "0.51452446", "0.5126738", "0.5112096", "0.5095672", "0.5065914", "0.50498545", "0.50456357", "0.50346357", "0.5029902", "0.5008207", "0.50078", "0.49875998", "0.49865615", "0.4981442", "0.49709743", "0.49690077", "0.4968301", "0.4967881", "0.49549878", "0.4951901", "0.49496502", "0.4936138", "0.493365", "0.493359", "0.49292898", "0.49249423", "0.49238542", "0.49199262", "0.49158365", "0.49158034", "0.49147144", "0.491247", "0.49106774", "0.48822677", "0.4879031", "0.48740706", "0.48736334", "0.4865219", "0.486413", "0.4860171", "0.48557776", "0.4848133", "0.48421", "0.48406228", "0.4834261", "0.48340753", "0.48284778", "0.48162103", "0.48119938", "0.4811258", "0.4809606", "0.47994202", "0.47930062", "0.47708237", "0.4766546", "0.47645003", "0.4763996", "0.4763996", "0.47569728", "0.4746591", "0.47416544", "0.47416347", "0.47389194", "0.4736826", "0.47336575", "0.47319484", "0.47295392", "0.47259146" ]
0.58436286
6
Test LOCAL_NODE statistics tracking for persistent cache.
@Test public void testPersistentIOGlobalStat() throws Exception { ioStatGlobalPageTrackTest(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testLocalStatistics() {\n ObjectStatisticsImpl stat1 = getStatistics();\n ObjectStatisticsImpl stat2 = getStatistics();\n\n repo.saveLocalStatistics(K1, stat1, AffinityTopologyVersion.ZERO);\n repo.saveLocalStatistics(K2, stat2, AffinityTopologyVersion.ZERO);\n\n assertEquals(stat1, repo.getLocalStatistics(K1, null));\n assertEquals(stat1, repo.getLocalStatistics(K2, AffinityTopologyVersion.ZERO));\n\n repo.clearLocalPartitionsStatistics(K1, null);\n\n assertNull(repo.getLocalStatistics(K1, AffinityTopologyVersion.ZERO));\n assertEquals(stat2, repo.getLocalStatistics(K2, null));\n }", "@Test\n public void testClearLocalPartitionIdsStatistics() {\n ObjectPartitionStatisticsImpl stat1 = getPartitionStatistics(1);\n ObjectPartitionStatisticsImpl stat10 = getPartitionStatistics(10);\n ObjectPartitionStatisticsImpl stat100 = getPartitionStatistics(100);\n\n IgniteStatisticsStore store = repo.statisticsStore();\n store.saveLocalPartitionStatistics(K1, stat1);\n store.saveLocalPartitionStatistics(K1, stat10);\n store.saveLocalPartitionStatistics(K1, stat100);\n\n assertNotNull(repo.getLocalPartitionStatistics(K1, 10));\n\n repo.clearLocalPartitionsStatistics(K1, setOf(1, 2, 10));\n\n assertNull(repo.getLocalPartitionStatistics(K1, 10));\n assertNotNull(repo.getLocalPartitionStatistics(K1, 100));\n }", "@Test\n public void testRepositoryPartitions() {\n ObjectPartitionStatisticsImpl stat1 = getPartitionStatistics(1);\n ObjectPartitionStatisticsImpl stat10 = getPartitionStatistics(10);\n\n ObjectPartitionStatisticsImpl stat1_2 = getPartitionStatistics(1);\n\n assertTrue(repo.getLocalPartitionsStatistics(K1).isEmpty());\n assertTrue(repo.getLocalPartitionsStatistics(K2).isEmpty());\n\n IgniteStatisticsStore store = repo.statisticsStore();\n store.saveLocalPartitionStatistics(K1, stat1);\n store.saveLocalPartitionStatistics(K1, stat10);\n store.saveLocalPartitionStatistics(K2, stat1_2);\n\n ObjectPartitionStatisticsImpl stat1Readed = repo.getLocalPartitionStatistics(K1, 1);\n assertNotNull(stat1Readed);\n assertEquals(1, stat1Readed.partId());\n\n ObjectPartitionStatisticsImpl stat10Readed = repo.getLocalPartitionStatistics(K1, 10);\n assertNotNull(stat10Readed);\n assertEquals(10, stat10Readed.partId());\n\n assertNull(repo.getLocalPartitionStatistics(K1, 2));\n\n assertEquals(2, repo.getLocalPartitionsStatistics(K1).size());\n assertEquals(1, repo.getLocalPartitionsStatistics(K2).size());\n }", "@Test\n public void testLIFOStatsUpdation() {\n try {\n assertNotNull(cache);\n LocalRegion rgn = (LocalRegion) cache.getRegion(SEPARATOR + regionName);\n assertNotNull(rgn);\n\n // check for is LIFO Enable\n assertTrue(\"Eviction Algorithm is not LIFO\",\n (((EvictionAttributesImpl) rgn.getAttributes().getEvictionAttributes()).isLIFO()));\n\n // put four entries into the region\n for (int i = 0; i < 8; i++) {\n rgn.put((long) i, (long) i);\n }\n\n assertTrue(\"In Memory entry count not 5 \",\n new Long(5).equals(lifoStats.getCounter()));\n\n // varifies evicted entry values are null in memory\n assertTrue(\"In memory \", rgn.entries.getEntry(5L).isValueNull());\n assertTrue(\"In memory \", rgn.entries.getEntry(6L).isValueNull());\n assertTrue(\"In memory \", rgn.entries.getEntry(7L).isValueNull());\n\n // get an entry back\n Long value = (Long) rgn.get(4L);\n value = (Long) rgn.get(5L);\n value = (Long) rgn.get(6L);\n\n // check for entry value\n assertTrue(\"Value not matched \", value.equals(6L));\n assertNull(\"Entry value in VM is not null\", rgn.getValueInVM(7L));\n\n assertTrue(\"Entry count not 7 \", new Long(7).equals(lifoStats.getCounter()));\n // check for destory\n rgn.destroy(3L);\n assertTrue(\"Entry count not 6 \", new Long(6).equals(lifoStats.getCounter()));\n // check for invalidate\n rgn.invalidate(1L);\n assertTrue(\"Entry count not 5 \", new Long(5).equals(lifoStats.getCounter()));\n // check for remove\n rgn.put(8L, 8L);\n rgn.remove(2L);\n assertTrue(\"Entry count not 4 \", new Long(4).equals(lifoStats.getCounter()));\n } catch (Exception ex) {\n ex.printStackTrace();\n fail(\"Test failed\");\n }\n\n }", "@Test\n public void test5() throws Exception {\n CuratorFramework client = ZKConfig.getClient();\n final NodeCache nodeCache = new NodeCache(client, \"/test/test1\", false);\n nodeCache.getListenable().addListener(new NodeCacheListener() {\n @Override\n public void nodeChanged() throws Exception {\n logger.info(\"getCurrentData:\" + nodeCache.getCurrentData());\n logger.info(\"stat : \"+nodeCache.getCurrentData().getStat());\n logger.info(\"path : \"+nodeCache.getCurrentData().getPath());\n logger.info(\"data : \"+new String(nodeCache.getCurrentData().getData()));\n }\n });\n nodeCache.start();\n while(true);\n }", "@Test\n\tpublic void testReadFromOnlyHostWithFullCache(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock2(100);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(10000, readTime);\t\t\t\t\n\t}", "@Ignore(\"Google's LRU map max size is not predictable\")\n\t@Override\n\tpublic void statsTest()\n\t{\n\t}", "@Test\n public void testEmptyIOStat() throws Exception {\n IgniteEx ign = prepareIgnite(true);\n\n GridMetricManager mmgr = ign.context().metric();\n\n checkEmptyStat(mmgr.registry(metricName(CACHE_GROUP.metricGroupName(), DEFAULT_CACHE_NAME)), CACHE_GROUP);\n\n checkEmptyStat(mmgr.registry(metricName(HASH_INDEX.metricGroupName(), DEFAULT_CACHE_NAME, HASH_PK_IDX_NAME)),\n HASH_INDEX);\n }", "@Test\n\tpublic void testReadFromNewHostWithFreeCache(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(10);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 3\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(30000, readTime);\n\t}", "public final int[] cacheNodeStatus() {\n return new int[]{0,0,0,0,0,0,0,0,0,0};\r\n }", "@Test\n public void testCpuMetric() {\n MetricValue mv = new MetricValue.Builder().load(30).add();\n\n CPU_METRICS.forEach(cmt -> testUpdateMetricWithoutId(cmt, mv));\n CPU_METRICS.forEach(cmt -> testLoadMetric(nodeId, cmt, mv));\n }", "@Test\n\tpublic void testReadFromExsistingHostWithFreeCache(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(10);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(40000, readTime);\t\t\n\t}", "@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 }", "@Test\n public void testNotPersistentIOGlobalStat() throws Exception {\n ioStatGlobalPageTrackTest(false);\n }", "@Override\n public void afterPropertiesSet() throws Exception {\n GuavaCacheMetrics.monitor(\n registry,\n cache,\n \"serialLookupCache\",\n Collections.singleton(Tag.of(StoreMetrics.TAG_STORE_KEY, StoreMetrics.TAG_STORE_VALUE)));\n }", "@Test\n public void testNamenodeStateOverride() throws Exception {\n String ns = \"ns0\";\n String nn = \"nn0\";\n MembershipState report = createRegistration(\n ns, nn, ROUTERS[1], FederationNamenodeServiceState.STANDBY);\n assertTrue(namenodeHeartbeat(report));\n\n // Load data into cache and calculate quorum\n assertTrue(getStateStore().loadCache(MembershipStore.class, true));\n\n MembershipState existingState = getNamenodeRegistration(ns, nn);\n assertEquals(\n FederationNamenodeServiceState.STANDBY, existingState.getState());\n\n // Override cache\n UpdateNamenodeRegistrationRequest request =\n UpdateNamenodeRegistrationRequest.newInstance(\n ns, nn, FederationNamenodeServiceState.ACTIVE);\n assertTrue(membershipStore.updateNamenodeRegistration(request).getResult());\n\n MembershipState newState = getNamenodeRegistration(ns, nn);\n assertEquals(FederationNamenodeServiceState.ACTIVE, newState.getState());\n\n // Override cache\n UpdateNamenodeRegistrationRequest request1 =\n UpdateNamenodeRegistrationRequest.newInstance(ns, nn,\n FederationNamenodeServiceState.OBSERVER);\n assertTrue(\n membershipStore.updateNamenodeRegistration(request1).getResult());\n\n MembershipState newState1 = getNamenodeRegistration(ns, nn);\n assertEquals(FederationNamenodeServiceState.OBSERVER, newState1.getState());\n }", "@Test\n\tpublic void getStaticsDataTest() {\n\t\tthis.repo.save(new StatisticsRequest(\"1233333\", \"testing\", Integer.valueOf(200), Integer.valueOf(2000)));\n\n\t\twebTestClient.get().uri(\"/getLoggedData\").accept(MediaType.APPLICATION_JSON).exchange().expectStatus().isOk()\n\t\t\t\t.expectBody(StatisticsResponse.class)\n\t\t\t\t.consumeWith(res -> assertTrue(res.getResponseBody().getTotalRequest() > 0.0));\n\n\t}", "@Test\n public void testFindViaCache() {\n Integer hitRate1 = hitRate;\n Integer foundId = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate1, hitRate); // No change expected yet\n \n Integer hitRate2 = hitRate;\n Integer foundId2 = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate, new Integer(hitRate2+1)); // A cache hit is expected\n }", "@Override\n\tpublic Map<String, String> stats(InetSocketAddress arg0, long arg1)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "@Test(timeout = 10000L)\n public void testNodesInformation() throws Exception {\n CommonDriverAdminTests.testNodesInformation(client, nbNodes);\n }", "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "@Override\n\tpublic Map<String, String> stats(InetSocketAddress arg0)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "private static TransactionStatistics initLocalTransaction() {\n TransactionStatistics lts = thread.get();\n if (lts == null && configuration != null) {\n if (log.isTraceEnabled()) {\n log.tracef(\"Init a new local transaction statistics\");\n }\n lts = new LocalTransactionStatistics(configuration);\n thread.set(lts);\n //Here only when transaction starts\n TransactionTS lastTS = lastTransactionTS.get();\n if (lastTS == null) {\n if (log.isTraceEnabled())\n log.tracef(\"Init a new local transaction statistics for Timestamp\");\n lastTransactionTS.set(new TransactionTS());\n } else {\n lts.addValue(ExposedStatistic.NTBC_EXECUTION_TIME, System.nanoTime() - lastTS.getEndLastTxTs());\n lts.incrementValue(ExposedStatistic.NTBC_COUNT);\n }\n } else if (configuration == null) {\n if (log.isDebugEnabled()) {\n log.debugf(\"Trying to create a local transaction statistics in a not initialized Transaction Statistics Registry\");\n }\n } else {\n if (log.isTraceEnabled()) {\n log.tracef(\"Local transaction statistic is already initialized: %s\", lts);\n }\n }\n return lts;\n }", "public void testPerformance() {\n \t}", "@Test\n public void testAuditLogger() throws IOException {\n Configuration conf = new HdfsConfiguration();\n conf.set(DFSConfigKeys.DFS_NAMENODE_AUDIT_LOGGERS_KEY, TestAuditLogger.DummyAuditLogger.class.getName());\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build();\n try {\n cluster.waitClusterUp();\n Assert.assertTrue(TestAuditLogger.DummyAuditLogger.initialized);\n TestAuditLogger.DummyAuditLogger.resetLogCount();\n FileSystem fs = cluster.getFileSystem();\n long time = System.currentTimeMillis();\n fs.setTimes(new Path(\"/\"), time, time);\n Assert.assertEquals(1, TestAuditLogger.DummyAuditLogger.logCount);\n } finally {\n cluster.shutdown();\n }\n }", "private static void initializeVM() throws Exception {\n Properties props = new Properties();\n props.setProperty(MCAST_PORT, \"0\");\n props.setProperty(LOCATORS, \"\");\n props.setProperty(LOG_LEVEL, \"info\"); // to keep diskPerf logs smaller\n distributedSystem = DistributedSystem.connect(props);\n cache = CacheFactory.create(distributedSystem);\n assertNotNull(cache);\n DiskStoreFactory dsf = cache.createDiskStoreFactory();\n AttributesFactory factory = new AttributesFactory();\n factory.setScope(Scope.LOCAL);\n\n File dir = new File(\"testingDirectoryDefault\");\n dir.mkdir();\n dir.deleteOnExit();\n File[] dirs = {dir};\n dsf.setDiskDirsAndSizes(dirs, new int[] {Integer.MAX_VALUE});\n\n dsf.setAutoCompact(false);\n DiskStore ds = dsf.create(regionName);\n factory.setDiskStoreName(ds.getName());\n factory.setDiskSynchronous(true);\n factory.setDataPolicy(DataPolicy.NORMAL);\n\n /* setting LIFO related eviction attributes */\n\n factory.setEvictionAttributes(EvictionAttributesImpl.createLIFOEntryAttributes(capacity,\n EvictionAction.OVERFLOW_TO_DISK));\n RegionAttributes attr = factory.create();\n\n ((GemFireCacheImpl) cache).createRegion(regionName, attr);\n lifoClockHand =\n ((VMLRURegionMap) ((LocalRegion) cache.getRegion(SEPARATOR + regionName)).entries)\n .getEvictionList();\n\n /* storing stats reference */\n lifoStats = lifoClockHand.getStatistics();\n\n }", "public grpc.CommunicationServiceOuterClass.LocalStatsResponse localStat(grpc.CommunicationServiceOuterClass.Measurement request) {\n return blockingUnaryCall(\n getChannel(), METHOD_LOCAL_STAT, getCallOptions(), request);\n }", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats(long arg0)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "@Test\n public void testCoh3710_size()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(0, getNamedCache(getCacheName0()).size());\n }\n });\n }", "@Test\n public void testEntryFaultinCount() {\n try {\n assertNotNull(cache);\n LocalRegion rgn = (LocalRegion) cache.getRegion(SEPARATOR + regionName);\n assertNotNull(rgn);\n\n DiskRegionStats diskRegionStats = rgn.getDiskRegion().getStats();\n assertTrue(\"Entry count not 0 \", new Long(0).equals(lifoStats.getCounter()));\n\n // put five entries into the region\n for (int i = 0; i < 8; i++) {\n rgn.put(\"key\" + i, \"value\" + i);\n }\n\n assertEquals(\n \"LRU eviction entry count and entries overflown to disk count from diskstats is not equal \",\n lifoStats.getEvictions(), diskRegionStats.getNumOverflowOnDisk());\n assertNull(\"Entry value in VM is not null\", rgn.getValueInVM(\"key6\"));\n rgn.get(\"key6\");\n assertEquals(\"Not equal to number of entries present in VM : \", 6L,\n diskRegionStats.getNumEntriesInVM());\n assertEquals(\"Not equal to number of entries present on disk : \", 2L,\n diskRegionStats.getNumOverflowOnDisk());\n\n } catch (Exception ex) {\n ex.printStackTrace();\n fail(\"Test failed\");\n }\n }", "long getCacheHits();", "@Test\n public void testCoh3710_getAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(NullImplementation.getMap(),\n getNamedCache(getCacheName0()).getAll(\n Collections.singleton(Integer.valueOf(1))));\n }\n });\n }", "@Test\n public void testChooseLocalNodeWithLocalNodeLoaded() {\n DatanodeDescriptor localNode = dataNodes[1];\n int numLocalChosen = 0;\n for (int i = 0; i < CHOOSE_TIMES; i++) {\n DatanodeStorageInfo[] targets =\n namenode.getNamesystem().getBlockManager().getBlockPlacementPolicy()\n .chooseTarget(FILE, 1, localNode,\n new ArrayList<DatanodeStorageInfo>(), false, null, BLOCK_SIZE,\n TestBlockStoragePolicy.DEFAULT_STORAGE_POLICY, null);\n\n Assert.assertEquals(1, targets.length);\n if (localNode == targets[0].getDatanodeDescriptor()) {\n numLocalChosen++;\n }\n }\n Assert.assertTrue(numLocalChosen < (CHOOSE_TIMES - numLocalChosen));\n }", "@Test\n\tpublic void testReadFromOnlyHost(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock2(0);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(10000, readTime);\t\t\n\t}", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats()\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "private boolean local_fresh(int freshness_interval) {\n long current_time = System.currentTimeMillis();\n boolean fresh = current_time - server_checkin_time < freshness_interval;\n if (Constants.DEBUG) System.out.println(\"(log) Checking freshness locally: it is currently \" + current_time +\n \" and we last checked the server at time \" + server_checkin_time);\n if (Constants.DEBUG) {\n if (fresh) {\n System.out.println(\"(log) -> fresh locally\");\n }\n else {\n System.out.println(\"(log) -> not fresh locally\");\n }\n }\n return fresh;\n }", "@Test\n public void getLocallyExecutableNodes() {\n final String LOCUS_KEY = \"locus\";\n final String EARTH_KEY = \"earth\";\n final String MOON_KEY = \"moon\";\n final String SKY_LABS_KEY = \"sky-labs\";\n AnalysisGraph graph =\n new AnalysisGraph() {\n /*\n ------------------\n | CPU |\n | | |\n | \\|/ |\n | EARTH |\n |-------|---------|\n | |\n | |\n | |\n | |\n -------|---------- |\n | \\|/ | |\n | MOON | |\n | | |\n |-----------------| |\n \\ |\n \\ |\n \\ |\n \\ |\n \\ |\n \\ |\n |------\\--|--------|\n | cpu \\ | |\n | \\ \\| |\n | \\/ \\/ | Skylabs consumes the locally generated metric\n | skylabs | CPU and also the metrics from remote nodes moon\n |------------------| and earth.\n\n In this graph:\n IntentFlow:\n - Moon -> Earth\n - SkyLabs -> Earth\n - SkyLabs -> Moon\n DataFlow:\n - Earth -> Moon\n - Earth -> SkyLabs\n - Moon -> Skylabs\n The following code tests this.\n */\n\n @Override\n public void construct() {\n Metric metric =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom earthSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n @Override\n public String name() {\n return EARTH_KEY;\n }\n };\n Symptom moonSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return MOON_KEY;\n }\n };\n\n Metric skyLabCpu =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom skyLabsSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return SKY_LABS_KEY;\n }\n };\n\n addLeaf(metric);\n addLeaf(skyLabCpu);\n earthSymptom.addAllUpstreams(Collections.singletonList(metric));\n moonSymptom.addAllUpstreams(Collections.singletonList(earthSymptom));\n skyLabsSymptom.addAllUpstreams(\n new ArrayList<Node<?>>() {\n {\n add(earthSymptom);\n add(moonSymptom);\n add(skyLabCpu);\n }\n });\n\n metric.addTag(LOCUS_KEY, EARTH_KEY);\n earthSymptom.addTag(LOCUS_KEY, EARTH_KEY);\n moonSymptom.addTag(LOCUS_KEY, MOON_KEY);\n skyLabCpu.addTag(LOCUS_KEY, SKY_LABS_KEY);\n skyLabsSymptom.addTag(LOCUS_KEY, SKY_LABS_KEY);\n }\n };\n\n RcaConf earthConf =\n new RcaConf() {\n @Override\n public Map<String, String> getTagMap() {\n return new HashMap<String, String>() {\n {\n this.put(LOCUS_KEY, EARTH_KEY);\n }\n };\n }\n };\n\n RcaConf moonConf =\n new RcaConf() {\n @Override\n public Map<String, String> getTagMap() {\n return new HashMap<String, String>() {\n {\n this.put(LOCUS_KEY, MOON_KEY);\n }\n };\n }\n };\n\n RcaConf skyLabsConf =\n new RcaConf() {\n @Override\n public Map<String, String> getTagMap() {\n return new HashMap<String, String>() {\n {\n this.put(LOCUS_KEY, SKY_LABS_KEY);\n }\n };\n }\n };\n\n class WireHopperDerived extends WireHopper {\n DataMsg dataMsg;\n List<IntentMsg> intentMsgs;\n int intextIdx = 0;\n\n private WireHopperDerived(IntentMsg intentMsg, DataMsg dataMsg) {\n this(Collections.singletonList(intentMsg), dataMsg);\n }\n\n private WireHopperDerived(List<IntentMsg> intentMsg, DataMsg dataMsg) {\n super(null, null, null, null, null, new AppContext());\n this.intentMsgs = intentMsg;\n this.dataMsg = dataMsg;\n }\n\n @Override\n public void sendData(DataMsg msg) {\n assertEquals(msg.getSourceGraphNode(), this.dataMsg.getSourceGraphNode());\n AssertHelper.compareLists(msg.getDestinationGraphNodes(), this.dataMsg.getDestinationGraphNodes());\n }\n\n @Override\n public void sendIntent(IntentMsg intentMsg) {\n assertEquals(\n intentMsg.getRequesterGraphNode(), this.intentMsgs.get(intextIdx).getRequesterGraphNode());\n assertEquals(\n intentMsg.getDestinationGraphNode(), this.intentMsgs.get(intextIdx).getDestinationGraphNode());\n intextIdx++;\n }\n }\n\n List<ConnectedComponent> connectedComponents = RcaUtil.getAnalysisGraphComponents(graph);\n\n class RCASchedulerTaskMock extends RCASchedulerTask {\n private RCASchedulerTaskMock(RcaConf conf, WireHopper wireHopper) {\n super(\n 100,\n Executors.newFixedThreadPool(2),\n connectedComponents,\n null,\n null,\n conf,\n wireHopper,\n new AppContext());\n }\n }\n\n RCASchedulerTaskMock earthTask =\n new RCASchedulerTaskMock(\n earthConf,\n new WireHopperDerived(\n Collections.emptyList(),\n new DataMsg(\n EARTH_KEY,\n new ArrayList<String>() {\n {\n add(MOON_KEY);\n add(SKY_LABS_KEY);\n }\n },\n null)));\n\n RCASchedulerTaskMock moonTask =\n new RCASchedulerTaskMock(\n moonConf,\n new WireHopperDerived(\n new IntentMsg(MOON_KEY, EARTH_KEY, null),\n new DataMsg(\n MOON_KEY,\n new ArrayList<String>() {\n {\n add(SKY_LABS_KEY);\n }\n },\n null)));\n RCASchedulerTaskMock skyLabsTask =\n new RCASchedulerTaskMock(\n skyLabsConf,\n new WireHopperDerived(\n new ArrayList<IntentMsg>() {\n {\n add(new IntentMsg(SKY_LABS_KEY, EARTH_KEY, null));\n add(new IntentMsg(SKY_LABS_KEY, MOON_KEY, null));\n }\n },\n null));\n\n earthTask.run();\n\n moonTask.run();\n\n skyLabsTask.run();\n }", "public Map<Integer, Integer> getLocalCache() {\n return localCache;\n }", "public void testSummaryStatsParallel() {\n File testFile = new File(\"src/test/data/dataset1.txt\");\n GcManager gcManager = new GcManager();\n gcManager.store(testFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Max young space not calculated correctly.\", 248192, jvmRun.getMaxYoungSpace());\n Assert.assertEquals(\"Max old space not calculated correctly.\", 786432, jvmRun.getMaxOldSpace());\n Assert.assertEquals(\"NewRatio not calculated correctly.\", 3, jvmRun.getNewRatio());\n Assert.assertEquals(\"Max heap space not calculated correctly.\", 1034624, jvmRun.getMaxHeapSpace());\n Assert.assertEquals(\"Max heap occupancy not calculated correctly.\", 1013058, jvmRun.getMaxHeapOccupancy());\n Assert.assertEquals(\"Max pause not calculated correctly.\", 2782, jvmRun.getMaxGcPause());\n Assert.assertEquals(\"Max perm gen space not calculated correctly.\", 159936, jvmRun.getMaxPermSpace());\n Assert.assertEquals(\"Max perm gen occupancy not calculated correctly.\", 76972, jvmRun.getMaxPermOccupancy());\n Assert.assertEquals(\"Total GC duration not calculated correctly.\", 5614, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC Event count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SCAVENGE.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SCAVENGE));\n Assert.assertTrue(JdkUtil.LogEventType.PARALLEL_SERIAL_OLD.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PARALLEL_SERIAL_OLD));\n Assert.assertTrue(Analysis.WARN_APPLICATION_STOPPED_TIME_MISSING + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_APPLICATION_STOPPED_TIME_MISSING));\n Assert.assertTrue(Analysis.ERROR_SERIAL_GC_PARALLEL + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_SERIAL_GC_PARALLEL));\n }", "public void testWatcherUsageStatsTests() {\n long watchCount = randomLongBetween(5, 20);\n for (int i = 0; i < watchCount; i++) {\n watcherClient().preparePutWatch(\"_id\" + i).setSource(watchBuilder()\n .trigger(schedule(cron(\"0/5 * * * * ? 2050\")))\n .input(simpleInput())\n .addAction(\"_id\", loggingAction(\"whatever \" + i)))\n .get();\n }\n\n XPackUsageRequest request = new XPackUsageRequest();\n XPackUsageResponse usageResponse = client().execute(XPackUsageAction.INSTANCE, request).actionGet();\n Optional<XPackFeatureSet.Usage> usage = usageResponse.getUsages().stream()\n .filter(u -> u instanceof WatcherFeatureSetUsage)\n .findFirst();\n assertThat(usage.isPresent(), is(true));\n WatcherFeatureSetUsage featureSetUsage = (WatcherFeatureSetUsage) usage.get();\n\n long activeWatchCount = (long) ((Map) featureSetUsage.stats().get(\"count\")).get(\"active\");\n assertThat(activeWatchCount, is(watchCount));\n }", "@Test\n public void testHeapMetricUsageNotStatic() throws Exception {\n final InterceptingOperatorMetricGroup heapMetrics = new InterceptingOperatorMetricGroup();\n\n MetricUtils.instantiateHeapMemoryMetrics(heapMetrics);\n\n @SuppressWarnings(\"unchecked\")\n final Gauge<Long> used = (Gauge<Long>) heapMetrics.get(MetricNames.MEMORY_USED);\n\n runUntilMetricChanged(\"Heap\", 10, () -> new byte[1024 * 1024 * 8], used);\n }", "@Test\n\tpublic void testReadFromExistingHost(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(100);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 1\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(40000, readTime);\n\t}", "@Test\n\tpublic void testReadFromNewHost(){\n\t\t\n\t\tIDataCollector dataCollector = prepareDataMock1(100);\n\t\tEstimator estimator = prepareEstimator(dataCollector);\n\t\t\n\t\t//When\n\t\tlong readTime = estimator.getReadEstimation(\"Host 3\", 10 * 1024);\n\t\t\n\t\t//Then\n\t\tAssert.assertEquals(30000, readTime);\n\t\t\n\t}", "@Test\n public void testProcessRequestMetadataDispatcherSupportabilityTracking() throws Exception {\n EnvironmentHolder holder = setupEnvironmentHolder(\"cat_enabled_dt_disabled_test\");\n\n try {\n String className = APISupportabilityTest.ProcessRequestMetadataDispatcherTestClass.class.getName();\n InstrumentTestUtils.createTransformerAndRetransformClass(className, \"getProcessRequestMetadata\", \"()V;\");\n\n final String processRequestMetadataMetric = \"Supportability/API/ProcessRequestMetadata/API\";\n new ProcessRequestMetadataDispatcherTestClass().getProcessRequestMetadata();\n\n Map<String, Integer> metricData = InstrumentTestUtils.getAndClearMetricData();\n Assert.assertNotNull(metricData.get(processRequestMetadataMetric));\n Assert.assertEquals(Integer.valueOf(1), metricData.get(processRequestMetadataMetric));\n } finally {\n holder.close();\n }\n }", "@Test\n public void testStorageTypeStatsWhenStorageFailed() throws Exception {\n assumeNotWindows();\n\n DFSTestUtil.createFile(cluster.getFileSystem(),\n new Path(\"/blockStatsFile1\"), 1024, (short) 1, 0L);\n Map<StorageType, StorageTypeStats> storageTypeStatsMap = cluster\n .getNamesystem().getBlockManager().getStorageTypeStats();\n\n StorageTypeStats storageTypeStats = storageTypeStatsMap\n .get(StorageType.RAM_DISK);\n assertEquals(7, storageTypeStats.getNodesInService());\n\n storageTypeStats = storageTypeStatsMap.get(StorageType.DISK);\n assertEquals(3, storageTypeStats.getNodesInService());\n\n storageTypeStats = storageTypeStatsMap.get(StorageType.ARCHIVE);\n assertEquals(3, storageTypeStats.getNodesInService());\n\n storageTypeStats = storageTypeStatsMap.get(StorageType.NVDIMM);\n assertEquals(1, storageTypeStats.getNodesInService());\n File dn1ArcVol1 = cluster.getInstanceStorageDir(0, 1);\n File dn2ArcVol1 = cluster.getInstanceStorageDir(1, 1);\n File dn3ArcVol1 = cluster.getInstanceStorageDir(2, 1);\n File dn4ArcVol1 = cluster.getInstanceStorageDir(3, 1);\n DataNodeTestUtils.injectDataDirFailure(dn1ArcVol1);\n DataNodeTestUtils.injectDataDirFailure(dn2ArcVol1);\n DataNodeTestUtils.injectDataDirFailure(dn3ArcVol1);\n DataNodeTestUtils.injectDataDirFailure(dn4ArcVol1);\n try {\n DFSTestUtil.createFile(cluster.getFileSystem(), new Path(\n \"/blockStatsFile2\"), 1024, (short) 1, 0L);\n fail(\"Should throw exception, becuase no DISK storage available\");\n } catch (Exception e) {\n assertTrue(e.getMessage().contains(\n \"could only be written to 0 of the 1 minReplication\"));\n }\n // wait for heartbeat\n Thread.sleep(6000);\n storageTypeStatsMap = cluster.getNamesystem().getBlockManager()\n .getStorageTypeStats();\n assertFalse(\"StorageTypeStatsMap should not contain DISK Storage type\",\n storageTypeStatsMap.containsKey(StorageType.DISK));\n DataNodeTestUtils.restoreDataDirFromFailure(dn1ArcVol1);\n DataNodeTestUtils.restoreDataDirFromFailure(dn2ArcVol1);\n DataNodeTestUtils.restoreDataDirFromFailure(dn3ArcVol1);\n DataNodeTestUtils.restoreDataDirFromFailure(dn4ArcVol1);\n for (int i = 0; i < 4; i++) {\n cluster.restartDataNode(0, true);\n }\n // wait for heartbeat\n Thread.sleep(6000);\n storageTypeStatsMap = cluster.getNamesystem().getBlockManager()\n .getStorageTypeStats();\n storageTypeStats = storageTypeStatsMap.get(StorageType.RAM_DISK);\n assertEquals(7, storageTypeStats.getNodesInService());\n\n storageTypeStats = storageTypeStatsMap.get(StorageType.DISK);\n assertEquals(3, storageTypeStats.getNodesInService());\n\n storageTypeStats = storageTypeStatsMap.get(StorageType.ARCHIVE);\n assertEquals(3, storageTypeStats.getNodesInService());\n\n storageTypeStats = storageTypeStatsMap.get(StorageType.NVDIMM);\n assertEquals(1, storageTypeStats.getNodesInService());\n }", "List<CacheHealth> getCacheHealth();", "private void logCacheStatus() {\n if (!LOGGER.canLogAtLevel(LogLevel.VERBOSE)) {\n return;\n }\n\n final int size = cache.size();\n final int length = cache.getTotalLength();\n\n LOGGER.atVerbose()\n .addKeyValue(SIZE_KEY, size)\n .addKeyValue(TOTAL_LENGTH_KEY, length)\n .log(\"Cache entry added or updated. Total number of entries: {}; Total schema length: {}\",\n size, length);\n }", "@Test\n public void eternal() {\n Cache<Integer, Integer> c = new Cache2kBuilder<Integer, Integer>() {}\n .eternal(true)\n /* ... set loader ... */\n .build();\n target.setCache(c);\n assertTrue(extractHandler() instanceof TimingHandler.EternalImmediate);\n }", "@Test\n public void testRefreshEntriesFromPrimaryWhenDSMDetectsServerLive() throws Exception {\n addIgnoredException(ServerConnectivityException.class.getName());\n\n PORT1 = server1.invoke(HAInterestTestCase::createServerCache);\n server1.invoke(HAInterestTestCase::createEntriesK1andK2);\n createClientPoolCacheConnectionToSingleServer(getName(),\n getServerHostName(server1.getHost()));\n registerK1AndK2();\n verifyRefreshedEntriesFromServer();\n\n server1.invoke(HAInterestTestCase::stopServer);\n verifyDeadAndLiveServers(1, 0);\n server1.invoke(HAInterestTestCase::putK1andK2);\n server1.invoke(HAInterestTestCase::startServer);\n verifyDeadAndLiveServers(0, 1);\n final Region r1 = cache.getRegion(SEPARATOR + REGION_NAME);\n assertNotNull(r1);\n // Verify for interest registration after cache-server is started.\n server1.invoke(HAInterestTestCase::verifyInterestRegistration);\n\n WaitCriterion wc = new WaitCriterion() {\n private String excuse;\n\n @Override\n public boolean done() {\n Entry e1;\n Entry e2;\n\n try {\n e1 = r1.getEntry(k1);\n if (e1 == null) {\n excuse = \"Entry for k1 is null\";\n return false;\n }\n } catch (EntryDestroyedException e) {\n excuse = \"Entry destroyed\";\n return false;\n }\n if (!server_k1.equals(e1.getValue())) {\n excuse = \"e1 value is not server_k1\";\n return false;\n }\n try {\n e2 = r1.getEntry(k2);\n if (e2 == null) {\n excuse = \"Entry for k2 is null\";\n return false;\n }\n } catch (EntryDestroyedException e) {\n excuse = \"Entry destroyed\";\n return false;\n }\n if (!server_k2.equals(e2.getValue())) {\n excuse = \"e2 value is not server_k2\";\n return false;\n }\n return true;\n }\n\n @Override\n public String description() {\n return excuse;\n }\n };\n GeodeAwaitility.await().untilAsserted(wc);\n }", "@Override\n protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {\n final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));\n final String cacheContainerName = address.getElement(address.size() - 2).getValue();\n final String cacheName = address.getLastElement().getValue();\n final String attrName = operation.require(NAME).asString();\n final ServiceController<?> controller = context.getServiceRegistry(false).getService(CacheService.getServiceName(cacheContainerName, cacheName));\n Cache<?, ?> cache = (Cache<?, ?>) controller.getValue();\n\n CacheMetrics metric = CacheMetrics.getStat(attrName);\n ModelNode result = new ModelNode();\n\n if (metric == null) {\n context.getFailureDescription().set(String.format(\"Unknown metric %s\", attrName));\n } else if (cache == null) {\n context.getFailureDescription().set(String.format(\"Unavailable cache %s\", attrName));\n } else {\n switch (metric) {\n case CACHE_STATUS:\n result.set(cache.getAdvancedCache().getStatus().toString());\n break;\n case CONCURRENCY_LEVEL:\n result.set(((LockManagerImpl) cache.getAdvancedCache().getLockManager()).getConcurrencyLevel());\n break;\n case NUMBER_OF_LOCKS_AVAILABLE:\n result.set(((LockManagerImpl) cache.getAdvancedCache().getLockManager()).getNumberOfLocksAvailable());\n break;\n case NUMBER_OF_LOCKS_HELD:\n result.set(((LockManagerImpl) cache.getAdvancedCache().getLockManager()).getNumberOfLocksHeld());\n break;\n case AVERAGE_READ_TIME: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getAverageReadTime() : 0);\n break;\n }\n case AVERAGE_WRITE_TIME: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getAverageWriteTime() : 0);\n break;\n }\n case ELAPSED_TIME: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getElapsedTime() : 0);\n break;\n }\n case EVICTIONS: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getEvictions() : 0);\n break;\n }\n case HIT_RATIO: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getHitRatio() : 0);\n break;\n }\n case HITS: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getHits() : 0);\n break;\n }\n case MISSES: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getMisses() : 0);\n break;\n }\n case NUMBER_OF_ENTRIES: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getNumberOfEntries() : 0);\n break;\n }\n case READ_WRITE_RATIO: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getReadWriteRatio() : 0);\n break;\n }\n case REMOVE_HITS: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getRemoveHits() : 0);\n break;\n }\n case REMOVE_MISSES: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getRemoveMisses() : 0);\n break;\n }\n case STORES: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getStores() : 0);\n break;\n }\n case TIME_SINCE_RESET: {\n CacheMgmtInterceptor cacheMgmtInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache().getInterceptorChain(), CacheMgmtInterceptor.class);\n result.set(cacheMgmtInterceptor != null ? cacheMgmtInterceptor.getTimeSinceReset() : 0);\n break;\n }\n case AVERAGE_REPLICATION_TIME: {\n result.set(((RpcManagerImpl) cache.getAdvancedCache().getRpcManager()).getAverageReplicationTime());\n break;\n }\n case REPLICATION_COUNT:\n result.set(((RpcManagerImpl) cache.getAdvancedCache().getRpcManager()).getReplicationCount());\n break;\n case REPLICATION_FAILURES:\n result.set(((RpcManagerImpl) cache.getAdvancedCache().getRpcManager()).getReplicationFailures());\n break;\n case SUCCESS_RATIO:\n result.set(((RpcManagerImpl) cache.getAdvancedCache().getRpcManager()).getSuccessRatioFloatingPoint());\n break;\n case COMMITS: {\n TxInterceptor txInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), TxInterceptor.class);\n result.set(txInterceptor != null ? txInterceptor.getCommits() : 0);\n break;\n }\n case PREPARES: {\n TxInterceptor txInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), TxInterceptor.class);\n result.set(txInterceptor != null ? txInterceptor.getPrepares() : 0);\n break;\n }\n case ROLLBACKS: {\n TxInterceptor txInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), TxInterceptor.class);\n result.set(txInterceptor != null ? txInterceptor.getRollbacks() : 0);\n break;\n }\n case INVALIDATIONS: {\n InvalidationInterceptor invInterceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), InvalidationInterceptor.class);\n result.set(invInterceptor != null ? invInterceptor.getInvalidations() : 0);\n break;\n }\n case PASSIVATIONS: {\n PassivationInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), PassivationInterceptor.class);\n result.set(interceptor != null ? interceptor.getPassivations() : \"\");\n break;\n }\n case ACTIVATIONS: {\n ActivationManager manager = cache.getAdvancedCache().getComponentRegistry().getComponent(ActivationManager.class);\n result.set(manager != null ? manager.getActivationCount() : 0);\n break;\n }\n case CACHE_LOADER_LOADS: {\n ActivationInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), ActivationInterceptor.class);\n result.set(interceptor != null ? interceptor.getCacheLoaderLoads() : 0);\n break;\n }\n case CACHE_LOADER_MISSES: {\n ActivationInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), ActivationInterceptor.class);\n result.set(interceptor != null ? interceptor.getCacheLoaderMisses() : 0);\n break;\n }\n case CACHE_LOADER_STORES: {\n CacheWriterInterceptor interceptor = getFirstInterceptorWhichExtends(cache.getAdvancedCache()\n .getInterceptorChain(), CacheWriterInterceptor.class);\n result.set(interceptor != null ? interceptor.getWritesToTheStores() : 0);\n break;\n }\n }\n context.getResult().set(result);\n }\n context.completeStep();\n }", "@Test\n public void testIndexCreateCountPartitionsLeftInCluster() throws Exception {\n pds = true;\n\n Ignite ignite = startGrid(0);\n\n startGrid(1);\n\n ignite.cluster().state(ClusterState.ACTIVE);\n\n IgniteCache<Object, Object> cache1 = ignite.cache(CACHE_NAME);\n\n String addColSql = \"ALTER TABLE \" + TABLE + \" ADD COLUMN \" + COLUMN3_NAME + \" BIGINT\";\n\n cache1.query(new SqlFieldsQuery(addColSql)).getAll();\n\n for (int i = 0; i < 100_000; i++) {\n Long id = (long)i;\n\n BinaryObjectBuilder o = ignite.binary().builder(OBJECT_NAME)\n .setField(KEY_NAME, id)\n .setField(COLUMN1_NAME, i / 2)\n .setField(COLUMN2_NAME, \"str\" + Integer.toHexString(i))\n .setField(COLUMN3_NAME, id * 10);\n\n cache1.put(id, o.build());\n }\n\n stopGrid(1);\n\n MetricRegistry metrics = cacheGroupMetrics(0, GROUP_NAME);\n\n GridTestUtils.runAsync(() -> {\n String createIdxSql = \"CREATE INDEX \" + INDEX_NAME + \" ON \" + TABLE + \"(\" + COLUMN3_NAME + \")\";\n\n cache1.query(new SqlFieldsQuery(createIdxSql)).getAll();\n\n String selectIdxSql = \"select * from information_schema.indexes where index_name='\" + INDEX_NAME + \"'\";\n\n List<List<?>> all = cache1.query(new SqlFieldsQuery(selectIdxSql)).getAll();\n\n assertEquals(\"Index not found\", 1, all.size());\n });\n\n final LongMetric idxBuildCntPartitionsLeft0 = metrics.findMetric(\"IndexBuildCountPartitionsLeft\");\n\n assertTrue(\"Timeout wait start build index\",\n waitForCondition(() -> idxBuildCntPartitionsLeft0.value() > 0, 30_000));\n\n assertTrue(\"Timeout wait finished build index\",\n waitForCondition(() -> idxBuildCntPartitionsLeft0.value() == 0, 30_000));\n\n startGrid(1);\n\n metrics = cacheGroupMetrics(1, GROUP_NAME);\n\n final LongMetric idxBuildCntPartitionsLeft1 = metrics.findMetric(\"IndexBuildCountPartitionsLeft\");\n\n assertTrue(\"Timeout wait start build index\",\n waitForCondition(() -> idxBuildCntPartitionsLeft1.value() > 0, 30_000));\n\n assertTrue(\"Timeout wait finished build index\",\n waitForCondition(() -> idxBuildCntPartitionsLeft1.value() == 0, 30_000));\n }", "@Test\n public void testHyperLogLog(){\n String redisKey= \"test:hll:01\";\n for (int i = 0; i <= 100000; i++) {\n redisTemplate.opsForHyperLogLog().add(redisKey,i);\n }\n\n for (int i = 0; i <= 100000; i++) {\n int r = (int) (Math.random() * 100000+1);\n redisTemplate.opsForHyperLogLog().add(redisKey,r);\n }\n\n Long size = redisTemplate.opsForHyperLogLog().size(redisKey);\n System.out.println(size);\n }", "public boolean isMCNodeLocal() {\n\t\treturn javaNetAddress.isMCNodeLocal();\n\t}", "private final void setupLocal0() {\n assert _profile==null;\n _fs = new Futures();\n _profile = new MRProfile(this);\n _profile._localstart = System.currentTimeMillis();\n _topLocal = true;\n // Check for global vs local work\n int selfidx = H2O.SELF.index();\n int nlo = subShift(selfidx);\n assert nlo < _nhi;\n final int nmid = (nlo+_nhi)>>>1; // Mid-point\n if( !_run_local && nlo+1 < _nhi ) { // Have global work?\n _profile._rpcLstart = System.currentTimeMillis();\n _nleft = remote_compute(nlo+1,nmid);\n _profile._rpcRstart = System.currentTimeMillis();\n _nrite = remote_compute( nmid,_nhi);\n _profile._rpcRdone = System.currentTimeMillis();\n }\n _lo = 0; _hi = _fr.anyVec().nChunks(); // Do All Chunks\n // If we have any output vectors, make a blockable Futures for them to\n // block on.\n // get the Vecs from the K/V store, to avoid racing fetches from the map calls\n _fr.vecs();\n setupLocal(); // Setup any user's shared local structures\n _profile._localdone = System.currentTimeMillis();\n }", "private static void testRendezvousHashing() {\n Map<String, AtomicInteger> HRWNodesMap = Maps.newHashMap();\r\n List<String> HRWNodes = Lists.newArrayList();\r\n for(int i = 0 ; i < nodesCount; i ++) {\r\n HRWNodes.add(\"HRWNode\"+i);\r\n HRWNodesMap.put(\"HRWNode\"+i, new AtomicInteger());\r\n }\r\n RendezvousHashing<String, String> hrw = new RendezvousHashing(charsFunnel, charsFunnel, HRWNodes);\r\n \r\n // insert keys\r\n long startTime = System.currentTimeMillis();\r\n for(int i = 0 ; i < keyCount; i++) {\r\n HRWNodesMap.get(hrw.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n long endTime = System.currentTimeMillis();\r\n long timeElapsed = endTime - startTime;\r\n // System.out.println(\"Execution Time in milliseconds : \" + timeElapsed);\r\n \r\n\r\n // print out distriubution + clear\r\n for(Entry<String, AtomicInteger> entry : HRWNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n entry.getValue().set(0);\r\n }\r\n\r\n // remove node 3\r\n System.out.println(\"\\n=== After Removing Node 3 ===\");\r\n hrw.removeNode(\"HRWNode3\");\r\n HRWNodesMap.remove(\"HRWNode3\");\r\n\r\n // re-add\r\n for(int i = 0 ; i < keyCount; i++) {\r\n HRWNodesMap.get(hrw.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n\r\n // print out distriubution again\r\n for(Entry<String, AtomicInteger> entry : HRWNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n }\r\n }", "@Test\n public void testCoh3710_get()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertNull(getNamedCache(getCacheName0()).get(Integer.valueOf(1)));\n }\n });\n }", "@Test(timeout = 10000L)\n public void testIdleNodesInformation() throws Exception {\n CommonDriverAdminTests.testIdleNodesInformation(client, nbNodes);\n }", "@Test\n public void testNearTruncate()\n {\n NamedCache cache = getNamedCache(\"near-client-listener-truncate\");\n cache.clear();\n\n clearEvents();\n cache.put(MapListenerTests.KEY, MapListenerTests.VALUE);\n assertEquals(cache.get(MapListenerTests.KEY), MapListenerTests.VALUE);\n checkEvents(true, false);\n\n clearEvents();\n cache.truncate();\n Eventually.assertThat(invoking(cache).get(MapListenerTests.KEY), nullValue());\n checkEvents(false, false);\n\n clearEvents();\n cache.put(MapListenerTests.KEY, MapListenerTests.VALUE);\n checkEvents(true, false);\n }", "public void localStat(grpc.CommunicationServiceOuterClass.Measurement request,\n io.grpc.stub.StreamObserver<grpc.CommunicationServiceOuterClass.LocalStatsResponse> responseObserver) {\n asyncUnimplementedUnaryCall(METHOD_LOCAL_STAT, responseObserver);\n }", "public com.google.common.util.concurrent.ListenableFuture<grpc.CommunicationServiceOuterClass.LocalStatsResponse> localStat(\n grpc.CommunicationServiceOuterClass.Measurement request) {\n return futureUnaryCall(\n getChannel().newCall(METHOD_LOCAL_STAT, getCallOptions()), request);\n }", "@Test\n public void testLIFOEntryEviction() {\n try {\n assertNotNull(cache);\n LocalRegion rgn = (LocalRegion) cache.getRegion(SEPARATOR + regionName);\n assertNotNull(rgn);\n\n assertEquals(\"Region is not properly cleared \", 0, rgn.size());\n assertTrue(\"Entry count not 0 \", new Long(0).equals(lifoStats.getCounter()));\n // put eight entries into the region\n for (int i = 0; i < 8; i++) {\n rgn.put((long) i, (long) i);\n if (i < capacity) {\n // entries are in memory\n assertNotNull(\"Entry is not in VM \", rgn.getValueInVM((long) i));\n } else {\n /*\n * assertTrue(\"LIFO Entry is not evicted\", lifoClockHand.getLRUEntry() .testEvicted());\n */\n assertTrue(\"Entry is not null \", rgn.entries.getEntry((long) i).isValueNull());\n }\n }\n\n } catch (Exception ex) {\n ex.printStackTrace();\n fail(\"Test failed\");\n }\n }", "private void updateReadyNodeLivenessEvents() {\n try (Mutex lock = nodeRepository().nodes().lockUnallocated()) {\n for (Node node : nodeRepository().nodes().list(Node.State.ready)) {\n Optional<Instant> lastLocalRequest = hostLivenessTracker.lastRequestFrom(node.hostname());\n if (lastLocalRequest.isEmpty()) continue;\n\n if (!node.history().hasEventAfter(History.Event.Type.requested, lastLocalRequest.get())) {\n History updatedHistory = node.history()\n .with(new History.Event(History.Event.Type.requested, Agent.NodeHealthTracker, lastLocalRequest.get()));\n nodeRepository().nodes().write(node.with(updatedHistory), lock);\n }\n }\n }\n }", "@Test\n public void testIndexRebuildCountPartitionsLeftInCluster() throws Exception {\n pds = true;\n\n Ignite ignite = startGrid(0);\n\n startGrid(1);\n\n ignite.cluster().state(ClusterState.ACTIVE);\n\n IgniteCache<Object, Object> cache1 = ignite.cache(CACHE_NAME);\n\n for (int i = 0; i < 100_000; i++) {\n Long id = (long)i;\n\n BinaryObjectBuilder o = ignite.binary().builder(OBJECT_NAME)\n .setField(KEY_NAME, id)\n .setField(COLUMN1_NAME, i / 2)\n .setField(COLUMN2_NAME, \"str\" + Integer.toHexString(i));\n\n cache1.put(id, o.build());\n }\n\n String consistentId = ignite.cluster().localNode().consistentId().toString();\n\n stopGrid(0);\n\n File dir = U.resolveWorkDirectory(U.defaultWorkDirectory(), DFLT_STORE_DIR, false);\n\n IOFileFilter filter = FileFilterUtils.nameFileFilter(\"index.bin\");\n\n Collection<File> idxBinFiles = FileUtils.listFiles(dir, filter, TrueFileFilter.TRUE);\n\n for (File indexBin : idxBinFiles)\n if (indexBin.getAbsolutePath().contains(consistentId))\n U.delete(indexBin);\n\n startGrid(0);\n\n MetricRegistry metrics = cacheGroupMetrics(0, GROUP_NAME);\n\n LongMetric idxBuildCntPartitionsLeft = metrics.findMetric(\"IndexBuildCountPartitionsLeft\");\n\n assertTrue(\"Timeout wait start rebuild index\",\n waitForCondition(() -> idxBuildCntPartitionsLeft.value() > 0, 30_000));\n\n assertTrue(\"Timeout wait finished rebuild index\",\n GridTestUtils.waitForCondition(() -> idxBuildCntPartitionsLeft.value() == 0, 30_000));\n }", "@Override\n protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {\n final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));\n final String cacheContainerName = address.getLastElement().getValue();\n final String attrName = operation.require(ModelDescriptionConstants.NAME).asString();\n final ServiceController<?> controller = context.getServiceRegistry(false).getService(EmbeddedCacheManagerService.getServiceName(cacheContainerName));\n DefaultEmbeddedCacheManager cacheManager = (DefaultEmbeddedCacheManager) controller.getValue();\n\n CacheManagerMetrics metric = CacheManagerMetrics.getStat(attrName);\n ModelNode result = new ModelNode();\n\n if (metric == null) {\n context.getFailureDescription().set(String.format(\"Unknown metric %s\", attrName));\n } else if (cacheManager == null) {\n context.getFailureDescription().set(String.format(\"Unavailable cache container %s\", attrName));\n } else {\n switch (metric) {\n case CACHE_MANAGER_STATUS:\n result.set(cacheManager.getStatus().toString());\n break;\n case IS_COORDINATOR:\n result.set(cacheManager.isCoordinator());\n break;\n case LOCAL_ADDRESS:\n result.set(cacheManager.getAddress() != null ? cacheManager.getAddress().toString() : \"N/A\");\n break;\n case COORDINATOR_ADDRESS:\n result.set(cacheManager.getCoordinator() != null ? cacheManager.getCoordinator().toString() : \"N/A\");\n break;\n case CLUSTER_NAME:\n result.set(cacheManager.getClusterName() != null ? cacheManager.getClusterName() : \"N/A\");\n }\n context.getResult().set(result);\n }\n context.completeStep();\n }", "private void checkCacheEnableStatus(FlowGraph graph, JobMySqlModel lastJob) {\n\n // Based on the time when the task was created,\n // nodes that have been edited after this time cannot use the cache.\n long lastJobCreateTime = lastJob.getCreatedTime().getTime();\n\n // Temporarily mark all nodes as cache available\n graph.getAllJobSteps().forEach(x -> x.setHasCacheResult(true));\n\n // Find the nodes whose version number is greater than the base time.\n // These nodes have been edited after the task is created, and the cache cannot be used.\n graph\n .getAllJobSteps()\n .stream()\n .filter(x -> x.getParamsVersion() >= lastJobCreateTime)\n .forEach(x -> x.setHasCacheResult(false));\n\n\n // Check whether the cache of the task corresponding to the node is available.\n // If the task status is incorrect, the cache is not available.\n // A node may correspond to multiple tasks\n List<TaskMySqlModel> taskMysqlList = taskService.listByJobId(lastJob.getJobId(), lastJob.getMyRole());\n Map<String, List<TaskMySqlModel>> taskMap = new HashMap<>();\n for (TaskMySqlModel model : taskMysqlList) {\n List<TaskMySqlModel> taskList = taskMap.get(model.getFlowNodeId());\n if (taskList == null) {\n taskList = new ArrayList<>();\n }\n taskList.add(model);\n taskMap.put(model.getFlowNodeId(), taskList);\n }\n\n graph.getAllJobSteps().stream().filter(x -> x.getHasCacheResult()).filter(x -> {\n List<TaskMySqlModel> taskList = taskMap.get(x.getNodeId());\n if (taskList == null) {\n return true;\n } else {\n for (TaskMySqlModel m : taskList) {\n if (m.getStatus() != TaskStatus.success) {\n return true;\n }\n }\n }\n return false;\n }).forEach(x -> x.setHasCacheResult(false));\n }", "int getCachedCount();", "public void testSummaryStatsParNew() {\n File testFile = new File(\"src/test/data/dataset2.txt\");\n GcManager gcManager = new GcManager();\n gcManager.store(testFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Max young space not calculated correctly.\", 348864, jvmRun.getMaxYoungSpace());\n Assert.assertEquals(\"Max old space not calculated correctly.\", 699392, jvmRun.getMaxOldSpace());\n Assert.assertEquals(\"NewRatio not calculated correctly.\", 2, jvmRun.getNewRatio());\n Assert.assertEquals(\"Max heap space not calculated correctly.\", 1048256, jvmRun.getMaxHeapSpace());\n Assert.assertEquals(\"Max heap occupancy not calculated correctly.\", 424192, jvmRun.getMaxHeapOccupancy());\n Assert.assertEquals(\"Max pause not calculated correctly.\", 1070, jvmRun.getMaxGcPause());\n Assert.assertEquals(\"Max perm gen space not calculated correctly.\", 99804, jvmRun.getMaxPermSpace());\n Assert.assertEquals(\"Max perm gen occupancy not calculated correctly.\", 60155, jvmRun.getMaxPermOccupancy());\n Assert.assertEquals(\"Total GC duration not calculated correctly.\", 1282, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC Event count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertTrue(JdkUtil.LogEventType.PAR_NEW.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.PAR_NEW));\n Assert.assertTrue(JdkUtil.LogEventType.CMS_SERIAL_OLD.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.CMS_SERIAL_OLD));\n Assert.assertTrue(Analysis.ERROR_SERIAL_GC_CMS + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_SERIAL_GC_CMS));\n }", "@Test\n public void testIndexMaintenanceOnCacheLoadedData() throws Exception {\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n AttributesMutator am = region.getAttributesMutator();\n am.setCacheLoader(new CacheLoader() {\n\n @Override\n public Object load(LoaderHelper helper) throws CacheLoaderException {\n String key = (String) helper.getKey();\n Portfolio p = new Portfolio(Integer.parseInt(key));\n return p;\n }\n\n @Override\n public void close() {\n // nothing\n }\n });\n\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID()\", SEPARATOR + \"portfolio1 pf\");\n List keys = new ArrayList();\n keys.add(\"1\");\n keys.add(\"2\");\n keys.add(\"3\");\n keys.add(\"4\");\n\n region.getAll(keys);\n }", "public void localStat(grpc.CommunicationServiceOuterClass.Measurement request,\n io.grpc.stub.StreamObserver<grpc.CommunicationServiceOuterClass.LocalStatsResponse> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(METHOD_LOCAL_STAT, getCallOptions()), request, responseObserver);\n }", "BigDecimal getCacheSpaceAvailable();", "boolean isCollectorHostLive(String clusterName, MetricsService service) throws SystemException;", "@DefaultValue(\"300000\")\n long getNodeGcTtlMs();", "@Test\n public void testNetworkMetric() {\n MetricValue mv = new MetricValue.Builder().load(10).add();\n\n Set<String> set = ImmutableSet.of(\"eth0\", \"eth1\");\n\n set.forEach(network -> NETWORK_METRICS.forEach(cmt ->\n testUpdateMetricWithResource(cmt, mv, network)));\n\n set.forEach(network -> NETWORK_METRICS.forEach(cmt ->\n testLoadMetricWithResource(nodeId, cmt, mv, network)));\n }", "public List<NodeInfo> getStoredNodes() {\n List<NodeInfo> nodes = new ArrayList<>();\n\n SearchResponse response = client.prepareSearch(\"k8s_*\").setTypes(\"node\").setSize(10000).get();\n\n SearchHit[] hits = response.getHits().getHits();\n log.info(String.format(\"The length of node search hits is [%d]\", hits.length));\n\n ObjectMapper mapper = new ObjectMapper();\n try {\n for (SearchHit hit : hits) {\n// log.info(hit.getSourceAsString());\n NodeInfo node = mapper.readValue(hit.getSourceAsString(), NodeInfo.class);\n nodes.add(node);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return nodes;\n }", "@Test\n public void testCoh3710_containsKey()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertFalse(getNamedCache(getCacheName0()).containsKey(Integer.valueOf(1)));\n }\n });\n }", "@Override\n public void execute() throws Throwable\n {\n \tlogger.debug(\"--------- Bucket Refresh \" + localNode.getNodeId() +\"--------\");\n \tfor (MId node : localNode.getRoutingTable().getAllNodes()) {\n \t\tlogger.debug(\" - \" + node.toString());\n\t\t};\n \t\n// \tHashMap<String, Integer> nodeMap = new HashMap<>();\n \t\n for (int i = 1; i < MId.ID_LENGTH; i++)\n {\n /* Construct a NodeId that is i bits away from the current node Id */\n final MId current = (localNode.getNodeId()).generateNodeIdByDistance(i);\n\n// System.nanoTime();\n /* Run the Node Lookup Operation, each in a different thread to speed up things */\n new NodeLookupOperation(localNode, current).execute();\n // System.nanoTime();\n \n// localNode.getLookupEventLoop().execute(new Runnable() {\n//\t\t\t\t@Override\n//\t\t\t\tpublic void run() {\n// try\n// {\n// }\n// catch (IOException e)\n// {\n// //System.err.println(\"Bucket Refresh Operation Failed. Msg: \" + e.getMessage());\n// } catch (Throwable 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 }\n\t\tlogger.debug(\"--------- Bucket Refresh End --------\");\n }", "void startStatisticsMonitor();", "private void verifyServing(int port) throws IOException {\n String response = httpGet(port, \"\");\n assertTrue(response.contains(\"Ping\"));\n assertTrue(response.contains(\"Metrics\"));\n assertTrue(response.contains(\"Healthcheck\"));\n \n response = httpGet(port, \"/ping\");\n assertEquals(\"pong\", response.trim());\n \n response = httpGet(port, \"/threads\");\n assertTrue(response.startsWith(\"main id=\"));\n \n response = httpGet(port, \"/healthcheck\");\n assertTrue(response.startsWith(\"{\\\"deadlocks\\\":{\\\"healthy\\\":true}}\"));\n \n response = httpGet(port, \"/metrics\");\n assertTrue(response.startsWith(\"{\\\"version\\\":\")); \n Iterator iter = new ObjectMapper().reader(JsonNode.class).readValues(response);\n JsonNode node = (JsonNode) iter.next();\n assertEquals(1, node.get(\"counters\").get(\"myMetrics.myCounter\").get(\"count\").asInt());\n assertEquals(2, node.get(\"meters\").get(\"morphline.logWarn.numProcessCalls\").get(\"count\").asInt());\n assertEquals(3, node.get(\"meters\").get(\"morphline.logDebug.numProcessCalls\").get(\"count\").asInt()); \n assertTrue(node.get(\"gauges\").get(\"jvm.memory.heap.used\").get(\"value\").asInt() > 0);\n \n assertFalse(iter.hasNext()); \n }", "@Test\n public void testChooseLocalNode() {\n DatanodeDescriptor localNode = dataNodes[0];\n for (int i = 0; i < CHOOSE_TIMES; i++) {\n DatanodeStorageInfo[] targets =\n namenode.getNamesystem().getBlockManager().getBlockPlacementPolicy()\n .chooseTarget(FILE, 1, localNode,\n new ArrayList<DatanodeStorageInfo>(), false, null, BLOCK_SIZE,\n TestBlockStoragePolicy.DEFAULT_STORAGE_POLICY, null);\n Assert.assertEquals(1, targets.length);\n Assert.assertEquals(localNode, targets[0].getDatanodeDescriptor());\n }\n }", "@Test\n public void testRandomAccessSameCache()\n {\n doStressTest(\"IdxTestRASC\", getCacheName0(), getCacheName0(),\n IdentityExtractor.INSTANCE,\n new CompositeKeyCreator()\n {\n public CompositeKey getCompositeKey(Object oKeyNatural, NamedCache cache)\n {\n return new CompositeKey(oKeyNatural, Base.getRandom().nextInt(20));\n }\n },\n /*nServers*/1, /*cRollingRestart*/0);\n }", "private void laaLLocalAttributeDetected(Metric metric) {\n\t\tLaaData laaData = (LaaData)((Laa)metric).getData();\n\t\tint localAttributesAccessed = laaData.getLocalAttributesAccessed() + 1;\n\t\tlaaData.setLocalAttributesAccessed(localAttributesAccessed);\t\t\n\t}", "@FameProperty(name = \"numberOfLocalAccesses\", derived = true)\n public Number getNumberOfLocalAccesses() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "int getCurrentCacheSize();", "@Override\n public NodeInfo getNodeInfo() {\n NodeInfo nodeInfo = new NodeInfo(this.nodeProbe.isGossipRunning(), this.nodeProbe.isThriftServerRunning(),\n this.nodeProbe.isNativeTransportRunning(), this.nodeProbe.getUptime(),\n this.nodeProbe.getExceptionCount());\n return nodeInfo;\n }", "public void testAdvancedUsage() throws Exception {\n Map<Integer, byte[]> tree = createRandomTree(12, xorGen);\n TreeStorage storage = new TreeStorage(tree.get(1),xorGen, 12);\n \n // add 3, 5, 9, 16\n storage.add(3, tree.get(3));\n storage.add(5, tree.get(5));\n storage.add(9, tree.get(9));\n storage.add(16, tree.get(16));\n \n assertFalse(storage.getVerifiedNodes().contains(3));\n assertFalse(storage.getVerifiedNodes().contains(5));\n assertFalse(storage.getVerifiedNodes().contains(9));\n assertFalse(storage.getVerifiedNodes().contains(16));\n \n // add broken 17, nothing changes\n assertFalse(storage.add(17, tree.get(16)));\n assertFalse(storage.getVerifiedNodes().contains(3));\n assertFalse(storage.getVerifiedNodes().contains(5));\n assertFalse(storage.getVerifiedNodes().contains(9));\n assertFalse(storage.getVerifiedNodes().contains(16));\n \n // add real 17, they all become verified\n assertTrue(storage.add(17, tree.get(17)));\n// assert storage.add(17, tree.get(17));\n assertTrue(storage.getVerifiedNodes().contains(3));\n assertTrue(storage.getVerifiedNodes().contains(5));\n assertTrue(storage.getVerifiedNodes().contains(9));\n assertTrue(storage.getVerifiedNodes().contains(16));\n assertTrue(storage.getVerifiedNodes().contains(17));\n assertEquals(6, storage.getVerifiedNodes().size());\n \n // use 3, 5, 9, 16\n storage.used(3);\n storage.used(5);\n storage.used(9);\n storage.used(16);\n assertEquals(6, storage.getVerifiedNodes().size());\n \n // use 17 and only the root remains\n storage.used(17);\n assertEquals(1,storage.getVerifiedNodes().size());\n assertEquals(1,storage.getUsedNodes().size());\n assertTrue(storage.getVerifiedNodes().containsAll(storage.getUsedNodes()));\n assertTrue(storage.getVerifiedNodes().contains(1));\n }", "int getHdfsMetricsCount();", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "public void testGenerateBrokerAndVirtualhostStatistics() throws Exception\n {\n sendUsing(_test, 5, 200);\n Thread.sleep(1000);\n \n for (ManagedConnection mc : _jmxUtils.getManagedConnections(\"test\"))\n {\n assertEquals(\"Incorrect connection total\", 0, mc.getTotalMessagesReceived());\n assertEquals(\"Incorrect connection data\", 0, mc.getTotalDataReceived());\n\t assertFalse(\"Connection statistics should not be enabled\", mc.isStatisticsEnabled());\n }\n \n ManagedBroker vhost = _jmxUtils.getManagedBroker(\"test\");\n assertEquals(\"Incorrect vhost data\", 5, vhost.getTotalMessagesReceived());\n assertEquals(\"Incorrect vhost data\", 1000, vhost.getTotalDataReceived());\n assertTrue(\"Vhost statistics should be enabled\", vhost.isStatisticsEnabled());\n\n assertEquals(\"Incorrect server total messages\", 5, _jmxUtils.getServerInformation().getTotalMessagesReceived());\n assertEquals(\"Incorrect server total data\", 1000, _jmxUtils.getServerInformation().getTotalDataReceived());\n assertTrue(\"Server statistics should be enabled\", _jmxUtils.getServerInformation().isStatisticsEnabled());\n }", "@Test\n public void testDiskMetric() {\n MetricValue mv = new MetricValue.Builder().load(50).add();\n\n Set<String> set = ImmutableSet.of(\"disk1\", \"disk2\");\n\n set.forEach(disk -> DISK_METRICS.forEach(cmt ->\n testUpdateMetricWithResource(cmt, mv, disk)));\n\n set.forEach(disk -> DISK_METRICS.forEach(cmt ->\n testLoadMetricWithResource(nodeId, cmt, mv, disk)));\n }", "boolean isCacheInitialized();", "public static int performanceCountGet() { return 0; }", "private static void testConsistentHashing() {\n Map<String, AtomicInteger> CHNodesMap = Maps.newHashMap();\r\n List<String> CHNodes = Lists.newArrayList();\r\n for(int i = 0 ; i < nodesCount; i ++) {\r\n CHNodes.add(\"CHNode\"+i);\r\n CHNodesMap.put(\"CHNode\"+i, new AtomicInteger());\r\n }\r\n ConsistentHashing<String, String> ch = new ConsistentHashing(charsFunnel, charsFunnel, CHNodes);\r\n \r\n // insert keys\r\n long startTime = System.currentTimeMillis();\r\n for(int i = 0 ; i < keyCount; i++) {\r\n CHNodesMap.get(ch.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n long endTime = System.currentTimeMillis();\r\n long timeElapsed = endTime - startTime;\r\n // System.out.println(\"Execution Time in milliseconds : \" + timeElapsed);\r\n\r\n // print out distriubution + clear\r\n for(Entry<String, AtomicInteger> entry : CHNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n entry.getValue().set(0);\r\n }\r\n \r\n // remove node 3\r\n System.out.println(\"\\n=== After Removing Node 3 ===\");\r\n ch.removeNode(\"CHNode3\");\r\n CHNodesMap.remove(\"CHNode3\");\r\n \r\n // re-add\r\n for(int i = 0 ; i < keyCount; i++) {\r\n CHNodesMap.get(ch.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n \r\n // print out distriubution again\r\n for(Entry<String, AtomicInteger> entry : CHNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n }\r\n }", "@Test(groups = { \"Integration\" })\n public void testNonStandardPort() throws Exception {\n redis = app.createAndManageChild(EntitySpec.create(RedisStore.class)\n .configure(RedisStore.REDIS_PORT, PortRanges.fromString(\"10000+\")));\n app.start(ImmutableList.of(loc));\n\n EntityAsserts.assertAttributeEqualsEventually(redis, Startable.SERVICE_UP, true);\n JedisSupport support = new JedisSupport(redis);\n support.redisTest();\n\n // Increase timeout because test was failing on jenkins sometimes. The log shows only one \n // call to `info server` (for obtaining uptime) which took 26 seconds; then 4 seconds later \n // this assert failed (with it checking every 500ms). The response did correctly contain\n // `uptime_in_seconds:27`.\n EntityAsserts.assertPredicateEventuallyTrue(ImmutableMap.of(\"timeout\", Duration.FIVE_MINUTES), redis, new Predicate<RedisStore>() {\n @Override public boolean apply(@Nullable RedisStore input) {\n return input != null &&\n input.getAttribute(RedisStore.UPTIME) > 0 &&\n input.getAttribute(RedisStore.TOTAL_COMMANDS_PROCESSED) >= 0 &&\n input.getAttribute(RedisStore.TOTAL_CONNECTIONS_RECEIVED) >= 0 &&\n input.getAttribute(RedisStore.EXPIRED_KEYS) >= 0 &&\n input.getAttribute(RedisStore.EVICTED_KEYS) >= 0 &&\n input.getAttribute(RedisStore.KEYSPACE_HITS) >= 0 &&\n input.getAttribute(RedisStore.KEYSPACE_MISSES) >= 0;\n }\n });\n }", "@Test\n public void testBridgeProcessRequestMetadataDispatcherSupportabilityTracking() throws Exception {\n EnvironmentHolder holder = setupEnvironmentHolder(\"cat_enabled_dt_disabled_test\");\n\n try {\n String className = APISupportabilityTest.ProcessRequestMetadataDispatcherBridgeTestClass.class.getName();\n InstrumentTestUtils.createTransformerAndRetransformClass(className, \"getProcessRequestMetadata\", \"()V;\");\n\n final String processRequestMetadataMetric = \"Supportability/API/ProcessRequestMetadata/API\";\n new ProcessRequestMetadataDispatcherBridgeTestClass().getProcessRequestMetadata();\n\n Map<String, Integer> metricData = InstrumentTestUtils.getAndClearMetricData();\n Assert.assertNotNull(metricData.get(processRequestMetadataMetric));\n Assert.assertEquals(Integer.valueOf(1), metricData.get(processRequestMetadataMetric));\n } finally {\n holder.close();\n }\n }", "@BeforeAll\n static void cacheManager() {\n }", "private Map<String, Object> buildNodeStatus(RemoteProxy proxy) {\r\n\r\n\t\tMap<String, Object> nodeInfos = new HashMap<>();\r\n\t\tnodeInfos.put(\"busy\", proxy.isBusy());\r\n\t\ttry {\r\n\t\t\tnodeInfos.put(\"version\", ((CustomRemoteProxy)proxy).getNodeStatusClient().getStatus().getString(\"version\"));\r\n\t\t} catch (Exception e) {\r\n\t\t\tnodeInfos.put(\"version\", \"unknown\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tnodeInfos.put(\"driverVersion\", ((CustomRemoteProxy)proxy).getNodeStatusClient().getStatus().getString(\"driverVersion\"));\r\n\t\t} catch (Exception e) {\r\n\t\t\tnodeInfos.put(\"driverVersion\", \"unknown\");\r\n\t\t}\r\n\t\tnodeInfos.put(\"testSlots\", proxy.getConfig().maxSession);\r\n\t\tnodeInfos.put(\"usedTestSlots\", proxy.getTotalUsed());\r\n\t\t\r\n\t\tlong lastSession = proxy.getLastSessionStart();\r\n\t\tString lastSessionDate = \"never\";\r\n\t\tif (lastSession > 0) {\r\n\t\t\tInstant instant = Instant.ofEpochSecond(lastSession / 1000);\r\n\t\t\tlastSessionDate = ZonedDateTime.ofInstant(instant, ZoneOffset.UTC).toString();\r\n\t\t}\r\n\t\t\r\n\t\tnodeInfos.put(\"lastSessionStart\", lastSessionDate);\r\n\t\ttry {\r\n\t\t\tnodeInfos.put(\"status\", ((CustomRemoteProxy)proxy).getNodeStatusClient().getStatus().getString(\"status\"));\r\n\t\t} catch (Exception e) {\r\n\t\t\tnodeInfos.put(\"status\", GridStatus.UNKNOWN);\r\n\t\t}\r\n\r\n\t\treturn nodeInfos;\r\n\t}", "@Override\n public synchronized void receiveStats(String entityName, PerfMetricSet metricSet) {\n MOREFRetriever morefRetriever = this.context.getMorefRetriever();\n Integer frequencyInSeconds = this.context.getConfiguration().getFrequencyInSeconds();\n\n try {\n String entityNameParsed = \"\";\n logger.debug(\"MetricsReceiver in receiveStats\");\n if (metricSet != null) {\n String cluster = null;\n\n if((metricSet.getEntityName().contains(\"VirtualMachine\")) || (metricSet.getEntityName().contains(\"HostSystem\"))){\n\n entityNameParsed = morefRetriever.parseEntityName(metricSet.getEntityName());\n\n if(entityNameParsed.equals(\"\")){\n logger.warn(\"Received Invalid Managed Entity. Failed to Continue.\");\n return;\n }\n cluster = String.valueOf(clusterMap.get(entityNameParsed.replace(\" \", \"_\")));\n if(cluster == null || cluster.equals(\"\")){\n logger.warn(\"Cluster Not Found for Entity \" + entityNameParsed.replace(\" \", \"_\"));\n return;\n }\n logger.debug(\"Cluster and Entity: \" + cluster + \" : \" + entityNameParsed.replace(\" \", \"_\"));\n }\n\n String instanceName = (this.rules.get(\"instanceName\") != null)? RuleUtils.applyRules(metricSet.getInstanceId(),this.rules.get(\"instanceName\")):metricSet.getInstanceId();\n \n if( ( this.globalInstance == true ) && ( instanceName == null || instanceName.isEmpty() ) )\n {\n instanceName = \"global\";\n }\n\n String statType=metricSet.getStatType();\n\n\n int interval=metricSet.getInterval();\n\n String rollup;\n String hostName = null;\n if(entityName.contains(\"[VirtualMachine]\")) {\n hostName = (this.rules.get(\"hostName\") != null)?RuleUtils.applyRules(entityNameParsed,this.rules.get(\"hostName\")):entityNameParsed;\n }\n\n String eName = Utils.getEName(this.use_entity_type_prefix, this.use_fqdn, entityName, entityNameParsed, this.rules.get(\"eName\"));\n logger.debug(\"Container Name :\" + morefRetriever.getContainerName(eName) + \" Interval: \"+Integer.toString(interval)+ \" Frequency :\"+Integer.toString(frequencyInSeconds));\n\n /*\n Finally node contains these fields (depending on properties)\n graphite_prefix.cluster.eName.groupName.instanceName.metricName_rollup_statType\n graphite_prefix.cluster.eName.groupName.instanceName.metricName_statType_rollup\n\n NOTES: if cluster is null cluster name disappears from node string.\n if instanceName is null instanceName name disappears from node string.\n */\n //Get group name (xxxx) metric name (yyyy) and rollup (zzzz)\n // from \"xxxx.yyyyyy.xxxxx\" on the metricName\n if(cluster != null) {\n cluster = (this.rules.get(\"cluster\") != null)?RuleUtils.applyRules(cluster,this.rules.get(\"cluster\")):cluster;\n\n }\n\n String[] counterInfo = Utils.splitCounterName(metricSet.getCounterName());\n String groupName = counterInfo[0];\n String metricName = counterInfo[1];\n rollup = counterInfo[2];\n\n Map<String,String> graphiteTree = new HashMap<String, String>();\n graphiteTree.put(\"graphite_prefix\", this.props.getProperty(\"prefix\"));\n graphiteTree.put(\"cluster\", cluster); //\n graphiteTree.put(\"eName\", eName); //\n graphiteTree.put(\"groupName\", groupName);\n graphiteTree.put(\"instanceName\", instanceName); //\n graphiteTree.put(\"metricName\", metricName);\n graphiteTree.put(\"statType\", statType);\n graphiteTree.put(\"rollup\", rollup);\n graphiteTree.put(\"counterName\", metricSet.getCounterName());\n graphiteTree.put(\"hostName\", hostName); //\n\n String node = Utils.getNode(graphiteTree, place_rollup_in_the_end, this.isHostMap, this.hostMap);\n\n metricsCount += metricSet.size();\n if(node != null) {\n if(this.instanceMetrics) {\n if(instanceName == null || instanceName.isEmpty()) {\n this.sendMetric(metricSet, node, rollup);\n }\n } else {\n this.sendMetric(metricSet, node, rollup);\n }\n }\n } else {\n logger.debug(\"MetricsReceiver MetricSet is NULL\");\n }\n } catch(Exception e){\n logger.fatal(\"Unexpected error occurred during metrics collection.\", e);\n }\n }", "@Test\n public void testRegistrationExpiredAndDeletion()\n throws InterruptedException, IOException, TimeoutException {\n\n MembershipState report = createRegistration(\n NAMESERVICES[0], NAMENODES[0], ROUTERS[0],\n FederationNamenodeServiceState.ACTIVE);\n assertTrue(namenodeHeartbeat(report));\n\n // Load cache\n assertTrue(getStateStore().loadCache(MembershipStore.class, true));\n\n // Verify quorum and entry\n MembershipState quorumEntry = getNamenodeRegistration(\n report.getNameserviceId(), report.getNamenodeId());\n assertNotNull(quorumEntry);\n assertEquals(ROUTERS[0], quorumEntry.getRouterId());\n assertEquals(FederationNamenodeServiceState.ACTIVE, quorumEntry.getState());\n quorumEntry = getExpiredNamenodeRegistration(report.getNameserviceId(),\n report.getNamenodeId());\n assertNull(quorumEntry);\n\n // Wait past expiration (set in conf to 2 seconds)\n GenericTestUtils.waitFor(() -> {\n try {\n assertTrue(getStateStore().loadCache(MembershipStore.class, true));\n // Verify entry is expired and is no longer in the cache\n return getNamenodeRegistration(NAMESERVICES[0], NAMENODES[0]) == null;\n } catch (IOException e) {\n return false;\n }\n }, 100, 3000);\n\n // Verify entry is in expired membership records\n quorumEntry = getExpiredNamenodeRegistration(NAMESERVICES[0], NAMENODES[0]);\n assertNotNull(quorumEntry);\n\n // Verify entry is now expired and can't be used by RPC service\n quorumEntry = getNamenodeRegistration(\n report.getNameserviceId(), report.getNamenodeId());\n assertNull(quorumEntry);\n quorumEntry = getExpiredNamenodeRegistration(\n report.getNameserviceId(), report.getNamenodeId());\n assertNotNull(quorumEntry);\n\n // Heartbeat again, updates dateModified\n assertTrue(namenodeHeartbeat(report));\n // Reload cache\n assertTrue(getStateStore().loadCache(MembershipStore.class, true));\n\n // Verify updated entry marked as active and is accessible to RPC server\n quorumEntry = getNamenodeRegistration(\n report.getNameserviceId(), report.getNamenodeId());\n assertNotNull(quorumEntry);\n assertEquals(ROUTERS[0], quorumEntry.getRouterId());\n assertEquals(FederationNamenodeServiceState.ACTIVE, quorumEntry.getState());\n quorumEntry = getExpiredNamenodeRegistration(\n report.getNameserviceId(), report.getNamenodeId());\n assertNull(quorumEntry);\n\n // Wait past expiration (set in conf to 2 seconds)\n GenericTestUtils.waitFor(() -> {\n try {\n assertTrue(getStateStore().loadCache(MembershipStore.class, true));\n // Verify entry is expired and is no longer in the cache\n return getNamenodeRegistration(NAMESERVICES[0], NAMENODES[0]) == null;\n } catch (IOException e) {\n return false;\n }\n }, 100, 3000);\n\n // Verify entry is in expired membership records\n quorumEntry = getExpiredNamenodeRegistration(NAMESERVICES[0], NAMENODES[0]);\n assertNotNull(quorumEntry);\n\n // Wait past deletion (set in conf to 2 seconds)\n GenericTestUtils.waitFor(() -> {\n try {\n assertTrue(getStateStore().loadCache(MembershipStore.class, true));\n // Verify entry is deleted from even the expired membership records\n return getExpiredNamenodeRegistration(NAMESERVICES[0], NAMENODES[0])\n == null;\n } catch (IOException e) {\n return false;\n }\n }, 100, 3000);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n boolean boolean0 = fBCachedFetcher0.isFirst();\n assertFalse(boolean0);\n }", "void clearLocalCache(final TCServerMap map);" ]
[ "0.6517676", "0.6014178", "0.5998602", "0.5964023", "0.5946795", "0.5849307", "0.5846891", "0.5685265", "0.56537426", "0.56006", "0.5549841", "0.5511392", "0.5506695", "0.5470127", "0.53747237", "0.5349057", "0.5311635", "0.5292859", "0.5259849", "0.5257434", "0.52568984", "0.52442884", "0.5225424", "0.52060497", "0.5187354", "0.5130095", "0.51089513", "0.51029617", "0.5101487", "0.5095008", "0.50531214", "0.50418496", "0.5026659", "0.50255615", "0.5019579", "0.5016124", "0.50039965", "0.49970955", "0.499191", "0.4976071", "0.4936771", "0.4934932", "0.49330264", "0.49239275", "0.49128637", "0.49031496", "0.4894158", "0.48858795", "0.48847282", "0.4884099", "0.4878806", "0.4872099", "0.486024", "0.48489138", "0.48441753", "0.48324847", "0.4827828", "0.48188597", "0.48069203", "0.47997406", "0.47970542", "0.47956055", "0.47930688", "0.47921985", "0.4784953", "0.4779804", "0.47764674", "0.47761428", "0.4769552", "0.4758858", "0.47560474", "0.47557923", "0.4752279", "0.47475997", "0.47474045", "0.47402805", "0.47353125", "0.47233337", "0.47214106", "0.4718362", "0.47099245", "0.47039485", "0.46962103", "0.46952948", "0.46923488", "0.46865514", "0.46860477", "0.4680634", "0.4679932", "0.46766144", "0.4676604", "0.46749455", "0.4674014", "0.46700567", "0.46663693", "0.46661928", "0.46654588", "0.4664408", "0.4661666", "0.46590722" ]
0.61959165
1
Response of direct pre approval cancellation
public interface DirectPreApprovalCancellation { /** * Get Direct Pre Approval Code * * @return Direct Pre Approval Code */ String getCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "pb4server.CancelCureSoliderAskReq getCancelCureSoliderAskReq();", "CancelOrderResponse cancelOrder(CancelOrderRequest cancelOrderRequest);", "protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}", "@Override\n public String getDescription() {\n return \"Ask order cancellation\";\n }", "@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }", "TransactionResponseDTO cancelTransaction(TransactionRequestDTO transactionRequestDTO);", "@Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }", "protected abstract void sendCancel(Status reason);", "protected void onCancelRequestReceipts() {\n \tmTxtStatus.setText(\"requestReceipts onCancel\");\n }", "public void cancel( String reason );", "pb4server.CancelMakeSoliderAskReq getCancelMakeSoliderAskReq();", "public void requestcanceled() {\n\n requestcancelcheck = true;\n\n String diatitle = \"Request cancelled.\";\n String msg = \"Request cancelled by Rider.\";\n\n marker.setEnabled(false);\n // mGoogleMap.clear();\n fullbutton.setVisibility(View.GONE);\n usercheck = false;\n touch.setVisibility(View.GONE);\n marker.setVisibility(View.INVISIBLE);\n checkonclick = false;\n timercheck = true;\n whilecheck = true;\n accheck = true;\n receivecheck = true;\n\n acc1 = acc;\n\n registerReceiver(mHandleMessageReceiver, new IntentFilter(Config.DISPLAY_MESSAGE_ACTION));\n dialogshow(diatitle, msg);\n\n }", "public boolean cancel(String requestId);", "public void cancel();", "public abstract boolean cancel();", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "public static URL getUrlForRequestSubCancel()\r\n {\r\n String rop = P.isCountryNop() ? \"rop_\" : \"\";\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/subscription/subscription_and_vehicle/\"+rop+\"cancellation_request\";\r\n return str2url( strUrl );\r\n }", "public void cancelInvitionUser() {\n\n }", "void cancelProduction();", "protected abstract void onCancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "public void cancelCard() {}", "public boolean cancel();", "@PostMapping(value = \"/cancel\",produces = MediaType.APPLICATION_JSON_VALUE,consumes = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<String> cancel(JSONObject reqJson) throws Exception{\n return new ResponseEntity<String>(RailCancelProcessor.process(reqJson), HttpStatus.OK);\n }", "void sendCancelMessage();", "private void deleteRequest() {\n\t\tboolean res = false;\n\t\tMessage messageToServer = new Message();\n\t\tmessageToServer.setMsg(req.getEcode());\n\t\tmessageToServer.setOperation(\"DeleteRequest\");\n\t\tmessageToServer.setControllerName(\"PrincipalController\");\n\t\tres = (boolean) ClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\tif (res) {\n\t\t\t// success pop up\n\t\t\tTheRequestWasHandledSuccessfullyWindowController popUp = new TheRequestWasHandledSuccessfullyWindowController();\n\t\t\ttry {\n\t\t\t\tpopUp.start(new Stage());\n\t\t\t} catch (Exception e) {\n\t\t\t\tUsefulMethods.instance().printException(e);\n\t\t\t}\n\t\t} else {\n\t\t\tUsefulMethods.instance().display(\"error in deleting request!\");\n\t\t}\n\t}", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "private ProcessResponse validateCancelRequest(ServiceOrder so,\r\n\t\t\tSecurityContext securityContext, SOCancelRequest soCancelRequest) {\r\n\t\tProcessResponse response = new ProcessResponse();\r\n\t\t// Set response code as 1 for success (default)\r\n\t\tresponse.setCode(PublicAPIConstant.ONE);\r\n\t\tList<String> message = new ArrayList<String>();\t\t\r\n\t\tboolean validReasonCode = Boolean.FALSE;\r\n\t\t// wf state ID of the SO\r\n\t\tint stateId = so.getWfStateId().intValue();\r\n\t\tswitch (stateId) {\r\n\t\t\t/* For invalid states */\t\r\n\t\t\tcase OrderConstants.CANCELLED_STATUS:\r\n\t\t\tcase OrderConstants.COMPLETED_STATUS:\r\n\t\t\tcase OrderConstants.PENDING_CANCEL_STATUS:\r\n\t\t\tcase OrderConstants.CLOSED_STATUS:\r\n\t\t\tcase OrderConstants.VOIDED_STATUS:\r\n\t\t\tcase OrderConstants.DELETED_STATUS:\r\n\t\t\t\tmessage.add(CommonUtility\r\n\t\t\t\t\t\t.getMessage(PublicAPIConstant.INVALID_STATE_ERROR_CODE));\r\n\t\t\t\tresponse.setCode(ServiceConstants.USER_ERROR_RC);\r\n\t\t\t\tbreak;\r\n\t\t\tcase OrderConstants.DRAFT_STATUS:\r\n\t\t\tcase OrderConstants.ROUTED_STATUS:\r\n\t\t\tcase OrderConstants.EXPIRED_STATUS:\r\n\t\t\t\t// Validate cancel reason code\r\n\t\t\t\tvalidReasonCode = validateReasonCodes(soCancelRequest.getCancelReasonCode(), securityContext.getCompanyId());\r\n\t\t\t\tif (!validReasonCode) {\r\n\t\t\t\t\tmessage.add(CommonUtility.getMessage(PublicAPIConstant.cancelSO.INVALID_CANCEL_REASONCODE_ERROR_CODE));\r\n\t\t\t\t\tresponse.setCode(ServiceConstants.USER_ERROR_RC);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Handle the possible scenario where request xml contains\r\n\t\t\t\t\t// amount for these state SOs.\r\n\t\t\t\t\tsoCancelRequest.setCancelAmount(Double.valueOf(0));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase OrderConstants.ACCEPTED_STATUS:\r\n\t\t\tcase OrderConstants.ACTIVE_STATUS:\r\n\t\t\tcase OrderConstants.PROBLEM_STATUS:\r\n\t\t\t\tboolean isAmountValidationNeeded = Boolean.TRUE;\r\n\t\t\t\t// Validate cancel reason code\r\n\t\t\t\tvalidReasonCode = validateReasonCodes(soCancelRequest.getCancelReasonCode(), securityContext.getCompanyId());\r\n\t\t\t\tif (!validReasonCode) {\r\n\t\t\t\t\tmessage.add(CommonUtility.getMessage(PublicAPIConstant.cancelSO.INVALID_CANCEL_REASONCODE_ERROR_CODE));\r\n\t\t\t\t\tresponse.setCode(ServiceConstants.USER_ERROR_RC);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t /* If Compensation is not required, task_level check is not\r\n\t\t\t\t\t * needed. SO is to be cancelled for 0.0$.\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (PublicAPIConstant.cancelSO.NO.equalsIgnoreCase(soCancelRequest.getProviderPaymentReqd())) {\r\n\t\t\t\t\t\tsoCancelRequest.setCancelSkus(new CancelSKU());\r\n\t\t\t\t\t\tsoCancelRequest.setCancelAmount(Double.valueOf(0));\r\n\t\t\t\t\t\tisAmountValidationNeeded = Boolean.FALSE;\r\n\t\t\t\t\t} else if (OrderConstants.TASK_LEVEL_PRICING.equalsIgnoreCase(so.getPriceType())) {\r\n\t\t\t\t\t\t/* For TASK_LEVEL SO consider work order SKU for validation\r\n\t\t\t\t\t\t * and for calculating the cancellation amount.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tList<String> invalidSKUs = handleTaskLevelPricing(soCancelRequest, securityContext);\r\n\t\t\t\t\t\tif (null != invalidSKUs && !invalidSKUs.isEmpty()) {\r\n\t\t\t\t\t\t\tStringBuilder warning = new StringBuilder(CommonUtility.getMessage(PublicAPIConstant.cancelSO.INVALID_WORK_ORDER_SKU_ERROR_CODE));\r\n\t\t\t\t\t\t\twarning.append(\"Invalid SKU(s): \");\r\n\t\t\t\t\t\t\twarning.append(invalidSKUs);\r\n\t\t\t\t\t\t\tmessage.add(warning.toString());\r\n\t\t\t\t\t\t\tresponse.setCode(ServiceConstants.USER_ERROR_RC);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t/* If SO Status, reason code and SKUs (if applicable) are valid then\r\n\t\t\t\t * validate the cancellation amount.\r\n\t\t\t\t */\r\n\t\t\t\tif (isAmountValidationNeeded && PublicAPIConstant.ONE.equals(response.getCode())) {\r\n\t\t\t\t\tString warningMsg = validateCancelAmount(soCancelRequest,\r\n\t\t\t\t\t\t\tsecurityContext, so);\r\n\t\t\t\t\tif (!StringUtils.isEmpty(warningMsg)) {\r\n\t\t\t\t\t\tmessage.add(warningMsg);\r\n\t\t\t\t\t\tresponse.setCode(ServiceConstants.USER_ERROR_RC);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\t/*Error message on invalid SO State*/\r\n\t\t\t\tmessage.add(CommonUtility\r\n\t\t\t\t\t\t.getMessage(PublicAPIConstant.INVALID_STATE_ERROR_CODE));\r\n\t\t\t\tresponse.setCode(ServiceConstants.USER_ERROR_RC);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tif (message.isEmpty()) {\r\n\t\t\tresponse.setCode(PublicAPIConstant.ONE);\r\n\t\t}\r\n\t\tresponse.setMessages(message);\r\n\t\treturn response;\r\n\t}", "public String cancel() {\n endConversation();\n return CANCEL_OUTCOME_ID;\n }", "@Override\n public String getDescription() {\n return \"Bid order cancellation\";\n }", "@RequestMapping(value = \"/cancel\", method = RequestMethod.GET)\n public String cancel()\n {\n return \"cancel\";\n }", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "public void cancel() {\n request.disconnect();\n }", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\r\n public void cancelMsg() {\n System.out.println(\"Transaction has been cancelled for gas pump #1..\");\r\n }", "public void cancel()\n\t{\n\t}", "@Override\n\tpublic void CancelOrder(Order order) {\n\t\t\n\t}", "@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "void cancelOverrideRequest() {\n cancelCurrentRequestLocked();\n }", "@Override\n\tpublic void cancel() {\n\t\t\n\t}", "public String getCancelReason() {\n return cancelReason;\n }", "@Override\n public void cancel() {\n }", "public void cancelGetResponse() {\n impl.cancelGetResponse();\n }", "@Override\n public void cancel() {\n\n }", "public void onCancel();", "public void cancel(){\n cancelled = true;\n }", "protected abstract void handleCancel();", "public static URL getUrlForRequestDeleteAccRop()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/account/rop_cancellation_request\";\r\n return str2url( strUrl );\r\n }", "void cancel(long inId);", "public void cancel()\n {\n this.controller.cancelDownloads();\n\n // Synchronised to avoid a race condition\n synchronized(this.cancelledMonitor)\n {\n // Set the cancelled field to true\n this.cancelled = true;\n }\n theLogger.info(\"Cancel request recieved from UI\");\n }", "Update withCancelRequested(Boolean cancelRequested);", "boolean isCancelled();", "@Override\n public void cancel() {\n\n }", "public void cancel() {\n\t}", "public boolean isCancelled();", "public boolean isCancelled();", "public boolean isCancelled();", "synchronized void cancel()\n {\n state = DNSState.CANCELED;\n notifyAll();\n }", "public void checkCancel() throws CancellationException;", "public void cancel(Object content){\n\t\t\n\t\tif (isInitiator() && (getState() != RequestProtocolState.DONE) && (getState() != RequestProtocolState.CANCELED)\n\t\t\t\t&& (getState() != RequestProtocolState.NOT_STARTED)) \n\t\t{\n\t\t\tsendMessage(content, Performative.CANCEL, getParticipants().get(0));\n\t\t\tsetState(RequestProtocolState.CANCELING);\n\t\t}\n\t\telse if (isParticipant()) {\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.21\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.22\")); //$NON-NLS-1$\n\t\t}\n\t}", "public void cancelMethod1(){\n return;\n\n }", "@Override\n\tpublic boolean hasCancelBeenRequested() {\n\t\treturn false;\n\t}", "@Override\n public void cancel() {\n }", "@Action\n public void acCancel() {\n setChangeObj(false);\n }", "@Action\n public void acCancel() {\n setChangeObj(false);\n }", "protected void testUncancelReal() {\n\n log.info(\"Starting testUncancel\");\n\n try {\n\n String prod = \"Shotgun\";\n BillingPeriod term = BillingPeriod.MONTHLY;\n String planSet = IPriceListSet.DEFAULT_PRICELIST_NAME;\n\n // CREATE\n Subscription subscription = createSubscription(prod, term, planSet);\n IPlanPhase trialPhase = subscription.getCurrentPhase();\n assertEquals(trialPhase.getPhaseType(), PhaseType.TRIAL);\n\n // NEXT PHASE\n DateTime expectedPhaseTrialChange = Clock.addDuration(subscription.getStartDate(), trialPhase.getDuration());\n checkNextPhaseChange(subscription, 1, expectedPhaseTrialChange);\n\n // MOVE TO NEXT PHASE\n testListener.pushExpectedEvent(NextEvent.PHASE);\n clock.setDeltaFromReality(trialPhase.getDuration(), DAY_IN_MS);\n assertTrue(testListener.isCompleted(2000));\n IPlanPhase currentPhase = subscription.getCurrentPhase();\n assertEquals(currentPhase.getPhaseType(), PhaseType.EVERGREEN);\n\n // SET CTD + RE READ SUBSCRIPTION + CHANGE PLAN\n IDuration ctd = getDurationMonth(1);\n DateTime newChargedThroughDate = Clock.addDuration(expectedPhaseTrialChange, ctd);\n billingApi.setChargedThroughDate(subscription.getId(), newChargedThroughDate);\n subscription = (Subscription) entitlementApi.getSubscriptionFromId(subscription.getId());\n\n testListener.pushExpectedEvent(NextEvent.CANCEL);\n\n // CANCEL\n subscription.cancel(clock.getUTCNow(), false);\n assertFalse(testListener.isCompleted(2000));\n\n subscription.uncancel();\n\n // MOVE TO EOT + RECHECK\n clock.addDeltaFromReality(ctd);\n DateTime future = clock.getUTCNow();\n assertFalse(testListener.isCompleted(2000));\n\n IPlan currentPlan = subscription.getCurrentPlan();\n assertEquals(currentPlan.getProduct().getName(), prod);\n currentPhase = subscription.getCurrentPhase();\n assertEquals(currentPhase.getPhaseType(), PhaseType.EVERGREEN);\n\n } catch (EntitlementUserApiException e) {\n Assert.fail(e.getMessage());\n }\n }", "private void popCancellationNotification(Passenger p) {\n Seat s = p.getSeat();\n int row = s.getRow();\n int col = s.getCol();\n System.out.printf(\"Successfully canceled seat %d%s for %s.\\n\",\n row, convertSeatColToString(col),p.getName());\n }", "@Override\n\t\t\tpublic boolean isCanceled() {\n\t\t\t\treturn false;\n\t\t\t}", "void onCancel();", "TransitionRequestResult forceCancel(String namespace, String wid) throws Exception;", "@Override\n\t\t\tpublic void setCanceled(boolean value) {\n\t\t\t\t\n\t\t\t}", "@Test\n public void cancelTicket() {\n Ticket ticket = givenTicketInOrderedBilled();\n\n // when\n boolean activateTicket = ticket.cancelTicket();\n\n // then\n assertTrue(activateTicket);\n assertTicketInState(ticket, TicketStateType.TICKET_CANCELLED, TransactionStateType.TRANSACTION_BILLED, 6);\n }", "protected abstract boolean isCancelEnabled();", "User canceledUserRegistration(User user) throws LogicException;", "@Override\n\t\tpublic void onCancel() {\n \n \t}", "@DeleteMapping(\"/cancel/{id}\")\n public ResponseEntity<?> cancel(@PathVariable(\"id\") Long id, @RequestHeader String token) {\n try {\n if (authenticationService.validateAdminToken(token) == null && authenticationService.validateCustomerToken(token) == null) {\n return new ResponseEntity<>(\"Must be logged in as admin or customer.\", HttpStatus.BAD_REQUEST);\n }\n appointmentService.cancelAppointment(id);\n return new ResponseEntity<>(HttpStatus.OK);\n } catch (Exception e) {\n if (e instanceof TimeConstraintException) {\n return new ResponseEntity<>(\"Can't cancel within 7 days.\", HttpStatus.BAD_REQUEST);\n }\n return new ResponseEntity<>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);\n }\n }", "public String doCancel(Integer id, User user)\r\n/* 130: */ {\r\n/* 131:130 */ String result = \"\";String returnStat = \"0\";\r\n/* 132: */ \r\n/* 133:132 */ Expence expence = (Expence)this.expenceDao.get(Integer.valueOf(id.intValue()));\r\n/* 134:133 */ if ((\"0\".equals(expence.getStat())) || (expence.getStat() == \"0\") || (\"1\".equals(expence.getStat())) || (expence.getStat() == \"1\")) {\r\n/* 135:134 */ return result = \"[id=\" + expence.getId() + \"]该项数据已经回退!\";\r\n/* 136: */ }\r\n/* 137:138 */ ExpenceFlow expenceFlow = new ExpenceFlow();\r\n/* 138:139 */ expenceFlow.setGxsj(new Date());\r\n/* 139:140 */ expenceFlow.setExpence(expence);\r\n/* 140:141 */ expenceFlow.setUser(user);\r\n/* 141:142 */ expenceFlow.setOptContent(\"回退\");\r\n/* 142:143 */ expenceFlow.setYwlc(Integer.valueOf(0));\r\n/* 143:144 */ this.expenceFlowDao.save(expenceFlow);\r\n/* 144:146 */ if ((expence.getStat() == \"3\") || (\"3\".equals(expence.getStat())))\r\n/* 145: */ {\r\n/* 146:147 */ if (expence.getBankRunningId() == null) {\r\n/* 147:148 */ return result = \"[flow_id=\" + id + \"]bankRunningId为空!\";\r\n/* 148: */ }\r\n/* 149:151 */ BankRunning bankRunning = (BankRunning)this.bankRunningService.get(Integer.valueOf(expence.getBankRunningId().intValue()));\r\n/* 150:152 */ if (bankRunning == null) {\r\n/* 151:153 */ return \"银行流水id:\" + expence.getBankRunningId();\r\n/* 152: */ }\r\n/* 153:157 */ if ((bankRunning.getBank() != null) && (!\"\".equals(bankRunning.getBank().getId())))\r\n/* 154: */ {\r\n/* 155:158 */ Bank b = (Bank)this.bankService.get(bankRunning.getBank().getId());\r\n/* 156:159 */ double cush = new Double(b.getCush() - bankRunning.getLrje()).doubleValue();\r\n/* 157:160 */ this.bankService.updateBankCush(cush, Integer.valueOf(bankRunning.getBank().getId().intValue()));\r\n/* 158:161 */ this.bankRunningService.delete(expence.getBankRunningId());\r\n/* 159: */ }\r\n/* 160: */ }\r\n/* 161:166 */ expence.setGxsj(new Date());\r\n/* 162:167 */ expence.setStat(returnStat);\r\n/* 163:168 */ this.expenceDao.update(expence);\r\n/* 164: */ \r\n/* 165:170 */ return result;\r\n/* 166: */ }", "pb4server.CancelCureSoliderAskReqOrBuilder getCancelCureSoliderAskReqOrBuilder();", "@Override\n\t\tpublic boolean isCanceled() {\n\t\t\treturn false;\n\t\t}", "public synchronized void cancel() {\n }", "public final void cancelResv() {\n ApiUtil.getApi2().cancelCourseResv(this.reserveId).compose(RxUtil.applyIO()).subscribe(new MyResvDetailActivity$cancelResv$1(this, this));\n }", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}", "@Override\r\n\tpublic boolean isCanceled() {\n\t\treturn false;\r\n\t}", "void cancelOriginal();", "public void cancel() {\n\t\tcancelled = true;\n\t}" ]
[ "0.68191415", "0.6672446", "0.65235174", "0.65200984", "0.65138906", "0.6482321", "0.64425796", "0.6426503", "0.6312178", "0.6229392", "0.621825", "0.61737657", "0.6134258", "0.61276066", "0.611633", "0.6095903", "0.6088454", "0.6065705", "0.6050046", "0.6031719", "0.59969354", "0.59969354", "0.59969354", "0.59969354", "0.59969354", "0.59969354", "0.59926033", "0.5959926", "0.59542435", "0.5939313", "0.5925828", "0.5919268", "0.59138507", "0.59138507", "0.59138507", "0.59105957", "0.5908834", "0.590775", "0.5899752", "0.58989435", "0.5898009", "0.5898009", "0.5898009", "0.5898009", "0.5898009", "0.5897909", "0.5895342", "0.5895342", "0.5895342", "0.5881126", "0.5879779", "0.58791125", "0.5878515", "0.58767027", "0.58688974", "0.5861439", "0.5860457", "0.5857106", "0.58485305", "0.58455795", "0.5829739", "0.58232516", "0.5820413", "0.5805155", "0.58038354", "0.5795726", "0.5794195", "0.57892126", "0.57778263", "0.57767147", "0.57767147", "0.57767147", "0.57766587", "0.5776214", "0.5768561", "0.57640237", "0.5762552", "0.5753912", "0.5740437", "0.5740437", "0.57401145", "0.57253516", "0.57153153", "0.5714061", "0.57123154", "0.57054013", "0.5703803", "0.57000774", "0.5699673", "0.56995165", "0.5695249", "0.56938916", "0.5691513", "0.56865036", "0.56738275", "0.5672868", "0.56666017", "0.5647963", "0.56457025", "0.56418675" ]
0.68082154
1
Get Direct Pre Approval Code
String getCode();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getApprove() {\r\n if (approve == null)\r\n approve = initApproveElement().findElement(By.cssSelector(\"[data-role*='approvalStatus']\")).getText();\r\n return approve;\r\n }", "public String getLBR_ProtestCode();", "public String getStatus()\r\n {\n return (\"1\".equals(getField(\"ApprovalStatus\")) && \"100\".equals(getField(\"HostRespCode\")) ? \"Approved\" : \"Declined\");\r\n }", "String getEACCode();", "public interface DirectPreApprovalCancellation {\n\n /**\n * Get Direct Pre Approval Code\n *\n * @return Direct Pre Approval Code\n */\n String getCode();\n\n}", "String getAdditionalCode();", "String getAdditionalCode();", "String getAdditionalCode();", "public String getXpeApproverSequence() {\n return (String) getAttributeInternal(XPEAPPROVERSEQUENCE);\n }", "java.lang.String getTranCode();", "public String getCreativeApprovalStatus() {\r\n return creativeApprovalStatus;\r\n }", "private String getApprovalLink(Payment approvedPayment) {\n List<Links> links = approvedPayment.getLinks();\n String approvalLink = null;\n\n for (Links link : links) {\n if (link.getRel().equalsIgnoreCase(\"approval_url\")) {\n approvalLink = link.getHref();\n break;\n }\n }\n return approvalLink;\n }", "@Override\n\tpublic long getApprovedstatus() {\n\t\treturn _buySellProducts.getApprovedstatus();\n\t}", "@Override\n public String getPostCode() {\n\n if(this.postCode == null){\n\n this.postCode = TestDatabase.getInstance().getClientField(token, id, \"postCode\");\n }\n\n return postCode;\n }", "public int noApproval2(int c_code) {\n\tConnection conn=getConnection();\n\tint result=dao.noApproval2(conn,c_code);\n\tif (result > 0)\n\t\tcommit(conn);\n\telse\n\t\trollback(conn);\n\tclose(conn);\n\n\treturn result;\n}", "public java.lang.CharSequence getCLAPPROVAL() {\n return CL_APPROVAL;\n }", "public java.lang.CharSequence getCLAPPROVAL() {\n return CL_APPROVAL;\n }", "public String getApprovedFlag() {\r\n return (String) getAttributeInternal(APPROVEDFLAG);\r\n }", "public String getApproval_Level() {\n return (String) getAttributeInternal(APPROVAL_LEVEL);\n }", "int getCodeValue();", "public String getLBR_InterestCode();", "public Byte getApproveStatus() {\n return approveStatus;\n }", "@ApiModelProperty(value = \"The code used by the customer to purchase against this gift certificate.\")\n public String getCode() {\n return code;\n }", "public String getLBR_LatePaymentPenaltyCode();", "public int getAD_Workflow_ID();", "private String getApprovalLink(Payment approvedPayment) {\n\t\tList<Links> links = approvedPayment.getLinks();\n\t\tString approvalLink = null;\n\n\t\tfor (Links link : links) {\n\t\t\tif (link.getRel().equalsIgnoreCase(\"approval_url\")) {\n\t\t\t\tapprovalLink = link.getHref();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn approvalLink;\n\t}", "public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}", "public java.lang.String getRequestCode() {\n\t\treturn _tempNoTiceShipMessage.getRequestCode();\n\t}", "public int getPrepayment_option() {\n return prepayment_option;\n }", "public String getProcessCode() {\n \tif (isProcessDocumentNotNull()) {\n \t\treturn getProcessDocument().getDocCode();\n \t}\n\t\treturn processCode;\n\t}", "public String getCodeposte() {\n return (String) getAttributeInternal(CODEPOSTE);\n }", "public CWE getAdministeredCode() { \r\n\t\tCWE retVal = this.getTypedField(5, 0);\r\n\t\treturn retVal;\r\n }", "public java.lang.String getPOST_CODE1()\n {\n \n return __POST_CODE1;\n }", "String getATDocCodeID();", "public String getCode(){\n\t\treturn new SmartAPIModel().getCpSourceCode(cp.getLocalName());\n\t}", "public String getApprover() {\n return approver;\n }", "Code getCode();", "Integer getCode();", "public String getAppCode()\n\t{\n\t\treturn appCode;\n\t}", "public java.lang.String CC_GetProvCodebyCallCentre(java.lang.String accessToken, java.lang.String CCCode) throws java.rmi.RemoteException;", "public static String getRedemptionPromotionId(Connection conn, String redemptionCode) throws SQLException {\n\t\tString promoId = null;\n\t\t//TODO later the select query need to be changed to return ID column instead of Code. \n\t\tPreparedStatement ps = conn.prepareStatement(\"SELECT code FROM CUST.PROMOTION_NEW where UPPER(redemption_code) = UPPER(?) and status \"+getStatusReplacementString()+\" order by expiration_date desc\");\n\t\tps.setString(1, redemptionCode);\n\t\tResultSet rs = ps.executeQuery();\n\n\t\tif (rs.next()) {\n\t\t\tpromoId = rs.getString(\"CODE\");\n\t\t}\n\n\t\trs.close();\n\t\tps.close();\n\n\t\treturn promoId;\n\t}", "public int getAuthorizationCode();", "public int getC_Payment_ID();", "@Override\n public String getCampusCode() {\n final Person initiator = getPersonService().getPerson(getDocumentHeader().getWorkflowDocument().getInitiatorPrincipalId());\n return initiator.getCampusCode();\n }", "public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}", "public String getVerifyCode() {\r\n return verifyCode;\r\n }", "public RebateCode() {\n this.setEmcLabel(\"Rebate Code\");\n this.setMandatory(true);\n }", "public int getCode() {\n\t\treturn adaptee.getCode();\n\t}", "public java.lang.String getCodigo_pcom();", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "java.lang.String getCode();", "java.lang.String getCode();", "public String getAuthCode()\n\t{\n\t\tif(response.containsKey(\"AUTH_CODE\")) {\n\t\t\treturn response.get(\"AUTH_CODE\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public String policyNo() {\r\n sleep(2000);\r\n String profileNoLable = pageHeaderForPolicyFolder.getAttribute(\"innerHTML\");\r\n String[] portfolioNo = profileNoLable.split(\" \", 3);\r\n return portfolioNo[2];\r\n }", "public int getCode()\n {\n return code;\n }", "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "public String getCode()\n {\n return fCode;\n }", "public String getAuthorisationCode() {\n return authorisationCode;\n }", "public int getCode() {\r\n return code;\r\n }", "public int getCode() {\r\n return code;\r\n }", "public String getRecapitoCode() {\n\t\treturn this.recapitoCode;\n\t}", "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 }", "@Override\n public String getPaymentMethodCode() {\n return this.getAdvanceTravelPayment().getPaymentMethodCode();\n }", "public String getRestrictionCode() {\n return restrictionCode;\n }", "public java.lang.String getFteReasonCode(){\n return localFteReasonCode;\n }", "public String getCode() {\n return (String)getAttributeInternal(CODE);\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public int getCode () {\n return code;\n }", "public void autoApprove(int reimburseID, String autoReason, int status);", "public java.lang.String getPostalCode( EAIMMCtxtIfc theCtxt) throws EAIException ;", "int getCode();", "int getCode();", "int getCode();", "String getVerified();", "public long getCode () {\r\n\t\treturn code;\r\n\t}", "public String getCode()\n {\n return code;\n }", "public java.lang.String getPolicyNo() {\n return policyNo;\n }", "public java.lang.String getPolicyNo() {\n return policyNo;\n }", "public Long getCode() {\n return code;\n }", "public Long getCode() {\n return code;\n }", "public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }", "public void requestConfirmationCode() {\n PhoneNumberVerificationRequest.forPhoneNumberVerification(this.airPhone.formattedPhone()).withListener((Observer) this.phoneNumberVerificationRequestListener).execute(this.requestManager);\n }", "org.hyperledger.fabric.protos.token.Transaction.PlainApprove getPlainApprove();", "public int getCode();", "public String getCode () {\r\n\t\treturn code;\r\n\t}", "public long 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 }" ]
[ "0.63732266", "0.62542224", "0.61205345", "0.60546565", "0.59158725", "0.5862686", "0.5862686", "0.5862686", "0.5849837", "0.5825957", "0.5771247", "0.57366866", "0.57181793", "0.57100165", "0.570691", "0.56964755", "0.5674753", "0.567146", "0.565765", "0.5635546", "0.56284773", "0.561305", "0.5606451", "0.56050974", "0.56042224", "0.5599014", "0.5571276", "0.5567485", "0.5562292", "0.5544658", "0.5527186", "0.5519524", "0.5505132", "0.54941154", "0.54667383", "0.5466528", "0.5454079", "0.54230356", "0.542196", "0.5419046", "0.5414455", "0.5414177", "0.5411601", "0.54084176", "0.5396345", "0.53889036", "0.5387384", "0.5385761", "0.5385264", "0.53835785", "0.53800607", "0.53800607", "0.5371049", "0.536168", "0.5358104", "0.535712", "0.535712", "0.53453934", "0.53411216", "0.5340575", "0.5340575", "0.53393984", "0.53345037", "0.53319633", "0.5327199", "0.5324934", "0.5321566", "0.532123", "0.532123", "0.532123", "0.532123", "0.532123", "0.532123", "0.532123", "0.53184515", "0.531815", "0.531812", "0.5316337", "0.5316337", "0.5316337", "0.53150976", "0.5313495", "0.5311762", "0.53086835", "0.53086835", "0.53039765", "0.53039765", "0.52981955", "0.5298037", "0.5296854", "0.5296349", "0.52958465", "0.52942264", "0.5290274", "0.5290274", "0.5290274" ]
0.5496812
37
Apply | message format for any named colours
protected void applyAnnotationStatusLabel(Annotation annotation) { // check for a colour label. ArrayList<DragDropColorList.ColorLabel> colorLabels = DragDropColorList.retrieveColorLabels(); String colorLabelString = null; if (colorLabels != null) { for (DragDropColorList.ColorLabel colorLabel : colorLabels) { if (annotation.getColor() != null && colorLabel.getColor().equals(annotation.getColor())) { colorLabelString = colorLabel.getLabel(); break; } } } StringBuilder statusLabel = new StringBuilder(); // append private/public start. if (PRIVATE_PROPERTY_ENABLED) { if (annotation.getFlagPrivateContents()) { statusLabel.append(messageBundle.getString("viewer.utilityPane.markupAnnotation.view.privateToggleButton.label")); } else { statusLabel.append(messageBundle.getString("viewer.utilityPane.markupAnnotation.view.publicToggleButton.label")); } } if (colorLabelString != null) { if (PRIVATE_PROPERTY_ENABLED) statusLabel.append(" | "); statusLabel.append(colorLabelString); } if (statusLabel.length() > 0) { markupAnnotationHandlerPanel.setProgressLabel(statusLabel.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String parseColor(String msg) {\n\t\tif (msg.contains(CS)) {\r\n\t\t\tmsg = msg.replaceAll(CS+\"a\", \"<span style=\\\"color: #8afb17\\\">\")\r\n\t\t\t .replace(CS+\"b\", \"<span style=\\\"color: #00ffff\\\">\")\r\n\t\t\t .replace(CS+\"c\", \"<span style=\\\"color: #e55451\\\">\")\r\n\t\t\t .replace(CS+\"d\", \"<span style=\\\"color: #ff55ff\\\">\")\r\n\t\t\t .replace(CS+\"e\", \"<span style=\\\"color: #fff380\\\">\")\r\n\t\t\t .replace(CS+\"f\", \"<span style=\\\"color: #ffffff\\\">\")\r\n\t\t\t .replace(CS+\"1\", \"<span style=\\\"color: #0000a0\\\">\")\r\n\t\t\t .replace(CS+\"2\", \"<span style=\\\"color: #348017\\\">\")\r\n\t\t\t .replace(CS+\"3\", \"<span style=\\\"color: #008080\\\">\")\r\n\t\t\t .replace(CS+\"4\", \"<span style=\\\"color: #9f000f\\\">\")\r\n\t\t\t .replace(CS+\"5\", \"<span style=\\\"color: #6c2dc7\\\">\")\r\n\t\t\t .replace(CS+\"6\", \"<span style=\\\"color: #d4a017\\\">\")\r\n\t\t\t .replace(CS+\"7\", \"<span style=\\\"color: #837e7c\\\">\")\r\n\t\t\t .replace(CS+\"8\", \"<span style=\\\"color: #555555\\\">\")\r\n\t\t\t .replace(CS+\"9\", \"<span style=\\\"color: #1f45fc\\\">\")\r\n\t\t\t .replace(CS+\"0\", \"<span style=\\\"color: #000000\\\">\")\r\n\t\t\t .replace(CS+\"l\", \"<span style=\\\"font-weight: bold\\\">\") //bold\r\n\t\t\t .replace(CS+\"o\", \"<span style=\\\"font-style: italic\\\">\") //italics\r\n\t\t\t .replace(CS+\"r\", \"<span style=\\\"font-weight: normal; font-style: normal\\\">\"); //normal text\r\n\t\t\tnumCloseSpans = msg.split(CS).length - 1;\r\n\t\t} else {\r\n\t\t\t//nothing\r\n\t\t}\r\n\t\treturn msg;\r\n\t}", "public String getColorString();", "public void colors(ChatColor... colors) {\n for (ChatColor color : colors) {\n if (color.isFormat()) {\n switch (color) {\n case BOLD:\n bold();\n break;\n case ITALIC:\n italic();\n break;\n case UNDERLINE:\n underline();\n break;\n case STRIKETHROUGH:\n strikethrough();\n break;\n case MAGIC:\n obfuscate();\n break;\n }\n } else {\n color(color);\n }\n }\n }", "String getColor();", "public static String textColor(String color,String message)\n {\n String colorCode = null;\n switch (color.toLowerCase())\n {\n case \"red\":\n colorCode = \"\\033[1;91m\";\n break;\n\n case \"green\":\n colorCode = \"\\033[1;92m\";\n break;\n\n case \"blue\":\n colorCode = \"\\033[1;94m\";\n break;\n\n case \"yellow\":\n colorCode = \"\\033[1;93m\";\n break;\n\n case \"purple\":\n colorCode = \"\\033[1;95m\";\n break;\n\n case \"cyan\":\n colorCode = \"\\033[1;96m\";\n break;\n\n case \"white\":\n colorCode = \"\\033[1;97m\";\n break;\n\n default:\n colorCode = \"\\033[0m\";\n break;\n\n }\n return String.format(\"%s%s%s\",colorCode,message,\"\\033[0m\");\n }", "@Override\n\tpublic String addcolor() {\n\t\treturn \"Green color is applied\";\n\t}", "private static String getColorString(int index) {\n switch (index) {\n case 0: return \"None\";\n case 1: case 6: return \"Orange\";\n case 2: case 7: return \"Green\";\n case 3: return \"Blue\";\n case 4: case 14: return \"Yellow\";\n case 8: return \"Black\";\n default: return \"not a color\";\n }\n }", "public void applyColor() {\n\t\tSystem.out.println(\"Yellow\");\n\n\t}", "void print(String message, Color color) throws IOException;", "abstract String getColor();", "public String getColouredName() {\n\t\tConfigManager crates = new ConfigManager(\"crates.yml\");\n\t\tcrates.get().getString(\"crates.\"+name.toLowerCase()+\".colouredName\");\n\t\treturn new String(ChatColor.translateAlternateColorCodes('&', crates.get().getString(\"crates.\"+name+\".colouredName\")));\n\t}", "@Test\n public void testColorCodeReplacement() {\n String text = \"§aWelcome §eto §7our §6Server§9!\";\n Assert.assertEquals(\"Welcome to our Server!\", stringUtils.removeFormattingCodes(text));\n }", "public static String parseColorCodes(String format) {\r\n for (Map.Entry<String, String> entry : colorReplaceMap.entrySet()) {\r\n format = format.replace(entry.getKey(), entry.getValue());\r\n }\r\n return format;\r\n }", "@Override\r\n\tpublic void printColor(String color1, String message, String color2) {\n\t\tSystem.out.println(color1 + message + color2);\r\n\t}", "private static void printColor() {\n\t\tfor (int i = 0; i < colors.length; i++) {\n\t\t\tSystem.out.print(String.format(\"%d for %s\", i + 1, colors[i]));\n\t\t\tif (i != colors.length - 1) {\n\t\t\t\tSystem.out.print(\", \"); // Separate colors with comma\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\")\"); // Print a new line for the last color option\n\t\t\t}\n\t\t}\n\t}", "public static String colorizeString(String sColor, String message) {\n String reset = AnsiColor.RESET.getColor();\n String colorValue = AnsiColor.RESET.getColor();\n try {\n colorValue = AnsiColor.valueOf(sColor.toUpperCase()).getColor();\n } catch (Exception e) {\n /*NOP*/\n }\n return colorValue + message + reset;\n }", "private static TextColor colorString(String color) {\n if (color.toLowerCase().trim().startsWith(\"#\")) {\n // pass this for now.\n }\n switch (color.toLowerCase().trim()) {\n case \"blue\":\n case \"&9\":\n return TextColors.BLUE;\n case \"dark_blue\":\n case \"dark blue\":\n case \"&1\":\n return TextColors.DARK_BLUE;\n case \"dark red\":\n case \"dark_red\":\n case \"&4\":\n return TextColors.DARK_RED;\n case \"red\":\n case \"&c\":\n return TextColors.RED;\n case \"reset\":\n case \"&r\":\n return TextColors.RESET;\n case \"gold\":\n case \"&6\":\n return TextColors.GOLD;\n case \"yellow\":\n case \"&e\":\n return TextColors.YELLOW;\n case \"dark_green\":\n case \"dark green\":\n case \"&2\":\n return TextColors.DARK_GREEN;\n case \"green\":\n case \"lime\":\n case \"&a\":\n return TextColors.GREEN;\n case \"aqua\":\n case \"&b\":\n return TextColors.AQUA;\n case \"dark_aqua\":\n case \"dark aqua\":\n case \"&3\":\n return TextColors.DARK_AQUA;\n case \"light_purple\":\n case \"light purple\":\n case \"pink\":\n case \"%d\":\n return TextColors.LIGHT_PURPLE;\n case \"dark_purple\":\n case \"dark purple\":\n case \"purple\":\n case \"magenta\":\n case \"&5\":\n return TextColors.DARK_PURPLE;\n case \"white\":\n case \"&f\":\n return TextColors.WHITE;\n case \"gray\":\n case \"grey\":\n case \"&7\":\n return TextColors.GRAY;\n case \"dark_grey\":\n case \"dark_gray\":\n case \"dark gray\":\n case \"dark grey\":\n case \"&8\":\n return TextColors.DARK_GRAY;\n case \"black\":\n case \"&0\":\n return TextColors.BLACK;\n default:\n return TextColors.NONE;\n }\n }", "static public String formatString(String string)\n\t{\n\t\tString newString = string;\n\t\t\n\t\tnewString = newString.replace(\"&0\", \"\" + ChatColor.BLACK);\n\t\tnewString = newString.replace(\"&1\", \"\" + ChatColor.DARK_BLUE);\n\t\tnewString = newString.replace(\"&2\", \"\" + ChatColor.DARK_GREEN);\n\t\tnewString = newString.replace(\"&3\", \"\" + ChatColor.DARK_AQUA);\n\t\tnewString = newString.replace(\"&4\", \"\" + ChatColor.DARK_RED);\n\t\tnewString = newString.replace(\"&5\", \"\" + ChatColor.DARK_PURPLE);\n\t\tnewString = newString.replace(\"&6\", \"\" + ChatColor.GOLD);\n\t\tnewString = newString.replace(\"&7\", \"\" + ChatColor.GRAY);\n\t\tnewString = newString.replace(\"&8\", \"\" + ChatColor.DARK_GRAY);\n\t\tnewString = newString.replace(\"&9\", \"\" + ChatColor.BLUE);\n\t\tnewString = newString.replace(\"&a\", \"\" + ChatColor.GREEN);\n\t\tnewString = newString.replace(\"&b\", \"\" + ChatColor.AQUA);\n\t\tnewString = newString.replace(\"&c\", \"\" + ChatColor.RED);\n\t\tnewString = newString.replace(\"&d\", \"\" + ChatColor.LIGHT_PURPLE);\n\t\tnewString = newString.replace(\"&e\", \"\" + ChatColor.YELLOW);\n\t\tnewString = newString.replace(\"&f\", \"\" + ChatColor.WHITE);\n\t\t\n\t\tnewString = newString.replace(\"&k\", \"\" + ChatColor.MAGIC);\n\t\tnewString = newString.replace(\"&l\", \"\" + ChatColor.BOLD);\n\t\tnewString = newString.replace(\"&m\", \"\" + ChatColor.STRIKETHROUGH);\n\t\tnewString = newString.replace(\"&n\", \"\" + ChatColor.UNDERLINE);\n\t\tnewString = newString.replace(\"&o\", \"\" + ChatColor.ITALIC);\n\t\tnewString = newString.replace(\"&p\", \"\" + ChatColor.RESET);\n\t\t\n\t\treturn newString;\n\t}", "public String seeColor(String str) {\r\n if (str.startsWith(\"red\")) {\r\n return \"red\";\r\n }\r\n if (str.startsWith(\"blue\")) {\r\n return \"blue\";\r\n }\r\n\r\n return \"\";\r\n }", "public static void main(String[] args) {\n\t\tString x = \"rgb(40, 116, 240)\";\r\n\t\tString[] ar1 = {\"(\",\")\",\",\"};\r\n\t\tfor (int i = 0; i < ar1.length; i++) {\r\n\t\t\tx = x.replace(ar1[i], \" \");\t\t\r\n\t\t}\r\n\t\t\r\n\t\tString[] ans = x.split(\" \");\r\n\t\tint color = Integer.parseInt(ans[ans.length-1]);\r\n\t\tif(color>133 && color<250){\r\n\t\t\tSystem.out.println(\"The Text color is BLUE\");\r\n\t\t}\r\n\t\tSystem.out.println(color);\r\n\t}", "String getMessage()\n\t{\n\t\tString message = \"\";\n\t\tfor(int i =0;i<4;i++)\n\t\t{\n\t\t\tmessage = message + String.valueOf(listePeg[i].getColor());\n\t\t}\n\t\treturn message;\n\t}", "public static String red(String warning){\n return ANSI_RED + warning + ANSI_RED;\n }", "public static String setColour(Token token) {\n switch(token.getType()) {\n case \"RESERVED\":\n return \"\\t\\t\\t<font color=\\\"#FF00E8\\\" size=\\\"14\\\">\" + token.getValue().toLowerCase() + \"</font>\\n\";\n \n case \"ID\":\n int index = Integer.parseInt(token.getValue()) - 1;\n return \"\\t\\t\\t<font color=\\\"#FFF300\\\" size=\\\"14\\\">\" + symbols.get(index) + \"</font>\\n\";\n\n case \"TERMINAL\":\n return \"\\t\\t\\t<font color=\\\"#0FFF00\\\" size=\\\"14\\\">\" + token.getValue() + \"</font>\\n\";\n\n case \"INTEGER\":\n return \"\\t\\t\\t<font color=\\\"#005DFF\\\" size=\\\"14\\\">\" + token.getValue() + \"</font>\\n\";\n\n case \"DOUBLE\":\n return \"\\t\\t\\t<font color=\\\"#00FFC1\\\" size=\\\"14\\\">\" + token.getValue() + \"</font>\\n\";\n \n case \"COMPARATOR\":\n return \"\\t\\t\\t<font color=\\\"#FF9300\\\" size=\\\"14\\\">\" + token.getValue() + \"</font>\\n\";\n \n case \"ERROR\":\n return \"\\t\\t\\t<font color=\\\"#FF0000\\\" size=\\\"14\\\">\" + token.getValue() + \"</font>\\n\";\n\n case \"SPACE\":\n return \"\\t\\t\\t<font size=\\\"14\\\">&nbsp</font>\\n\";\n\n case \"TAB\":\n return \"\\t\\t\\t<font size=\\\"14\\\">&nbsp&nbsp&nbsp&nbsp</font>\\n\";\n \n case \"NEWLINE\":\n return \"\\t\\t</p>\\n\\t\\t<p>\\n\";\n\n case \"END\":\n return \"\\t\\t\\t<font color=\\\"#FFFFFF\\\" size=\\\"14\\\">\" + token.getValue() + \"</font>\\n\";\n\n }\n\n return \"\";\n }", "public void colorText() {\r\n String theColor = textShape.getText();\r\n if (theColor.contains(\"blue\")) {\r\n textShape.setForegroundColor(Color.BLUE);\r\n }\r\n else if (theColor.contains(\"red\")) {\r\n textShape.setForegroundColor(Color.RED);\r\n }\r\n else {\r\n textShape.setForegroundColor(Color.BLACK);\r\n }\r\n }", "public String format(Object object){\n return \"<font\"+(this == NO_COLOR ? \"\" : \" color=#\"+getHexValue())+\">\"+object+\"</font>\";\n }", "public String codeFilter(String msg)\n\t{\n\t\tchar ESC = (char)0x1B;\n\t\tint CLEAR = 0;\t\t\t/* {x */\n\t\tint BOLD = 1;\t\t\t/* Uppercase version of any of the following include bold. */\n\t\tint BLACK = 30;\t\t\t/* {d */\n\t\tint RED = 31;\t\t\t/* {r */\n\t\tint GREEN = 32;\t\t\t/* {g */\n\t\tint YELLOW = 33;\t\t/* {y */\n\t\tint BLUE = 34;\t\t\t/* {b */\n\t\tint MAGENTA = 35;\t\t/* {m */\n\t\tint CYAN = 36;\t\t\t/* {c */\n\t\tint WHITE = 37;\t\t\t/* {w */\n\t\tint BG_BLACK = 40;\t\t/* */\n\t\tint BG_RED = 41;\t\t/* */\n\t\tint BG_GREEN = 42;\t\t/* */\n\t\tint BG_YELLOW = 43;\t\t/* */\n\t\tint BG_BLUE = 44;\t\t/* */\n\t\tint BG_MAGENTA = 45;\t/* */\n\t\tint BG_CYAN = 46;\t\t/* */\n\t\tint BG_WHITE = 47;\t\t/* */\n\t\t\n\t\tfor (String s : beeps)\n\t\t\tmsg = msg.replace(s, \"{*\"+s);\n\t\t\n\t\tmsg = msg.replace(\"^^\", \"SPEC_DOUBLE_CARROTS\");\n\t\tmsg = msg.replace(\"^{\", \"SPEC_BRACE_LEFT\");\n\t\tmsg = msg.replace(\"^}\", \"SPEC_BRACE_RIGHT\");\n\n\t\tfor (String codes : colors)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\tfor (String codes : colorSubs)\n\t\t{\n\t\t\tif (codes.split(\"=\", 2).length == 2)\n\t\t\t{\n\t\t\t\tString code1 = codes.split(\"=\", 2)[0];\n\t\t\t\tString code2 = codes.split(\"=\", 2)[1];\n\t\t\t\tif (code1.length() > 0 && code2.length() > 0)\n\t\t\t\t\tmsg = msg.replace(code1, code2);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (prefs.get(\"ansi\"))\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{B\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLUE+\"m\");\n\t\t\tmsg = msg.replace(\"{c\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\tmsg = msg.replace(\"{C\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+CYAN+\"m\");\n\t\t\t// Real black turned off for accessibility purposes.\n\t\t\t//msg = msg.replace(\"{d\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{D\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+BLACK+\"m\");\n\t\t\tmsg = msg.replace(\"{g\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{G\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+GREEN+\"m\");\n\t\t\tmsg = msg.replace(\"{m\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{M\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+MAGENTA+\"m\");\n\t\t\tmsg = msg.replace(\"{r\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{R\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+RED+\"m\");\n\t\t\tmsg = msg.replace(\"{w\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{W\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+WHITE+\"m\");\n\t\t\tmsg = msg.replace(\"{y\", ESC+\"[\"+CLEAR+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{Y\", ESC+\"[\"+BOLD+\"m\"+ESC+\"[\"+YELLOW+\"m\");\n\t\t\tmsg = msg.replace(\"{x\", ESC+\"[\"+CLEAR+\"m\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmsg = msg.replace(\"{b\", \"\");\n\t\t\tmsg = msg.replace(\"{B\", \"\");\n\t\t\tmsg = msg.replace(\"{c\", \"\");\n\t\t\tmsg = msg.replace(\"{C\", \"\");\n\t\t\tmsg = msg.replace(\"{d\", \"\");\n\t\t\tmsg = msg.replace(\"{D\", \"\");\n\t\t\tmsg = msg.replace(\"{g\", \"\");\n\t\t\tmsg = msg.replace(\"{G\", \"\");\n\t\t\tmsg = msg.replace(\"{m\", \"\");\n\t\t\tmsg = msg.replace(\"{M\", \"\");\n\t\t\tmsg = msg.replace(\"{r\", \"\");\n\t\t\tmsg = msg.replace(\"{R\", \"\");\n\t\t\tmsg = msg.replace(\"{w\", \"\");\n\t\t\tmsg = msg.replace(\"{W\", \"\");\n\t\t\tmsg = msg.replace(\"{y\", \"\");\n\t\t\tmsg = msg.replace(\"{Y\", \"\");\n\t\t\tmsg = msg.replace(\"{x\", \"\");\n\t\t}\n\t\tmsg = msg.replace(\"{*\", \"\"+(char)7);\n\n\t\tmsg = msg.replace(\"^/\", \"\\n\\r\");\n\t\tmsg = msg.replace(\"^\\\\\", \"\");\n\t\tmsg = msg.replace(\"^-\", \"~\");\n\t\tmsg = msg.replace(\"^i\", \"\"+(char)161);\n\t\tmsg = msg.replace(\"^$\", \"\"+(char)162);\n\t\tmsg = msg.replace(\"^&\", \"\"+(char)163);\n\t\tmsg = msg.replace(\"^*\", \"\"+(char)164);\n\t\tmsg = msg.replace(\"^V\", \"\"+(char)165);\n\t\tmsg = msg.replace(\"^|\", \"\"+(char)166);\n\t\tmsg = msg.replace(\"^S\", \"\"+(char)167);\n\t\tmsg = msg.replace(\"^#\", \"\"+(char)168);\n\t\tmsg = msg.replace(\"^@\", \"\"+(char)169);\n\t\tmsg = msg.replace(\"^a\", \"\"+(char)170);\n\t\tmsg = msg.replace(\"^<\", \"\"+(char)171);\n\t\tmsg = msg.replace(\"^]\", \"\"+(char)172);\n\t\tmsg = msg.replace(\"^%\", \"\"+(char)174);\n\t\tmsg = msg.replace(\"^_\", \"\"+(char)175);\n\t\tmsg = msg.replace(\"^o\", \"\"+(char)176);\n\t\tmsg = msg.replace(\"^+\", \"\"+(char)177);\n\t\tmsg = msg.replace(\"^2\", \"\"+(char)178);\n\t\tmsg = msg.replace(\"^3\", \"\"+(char)179);\n\t\tmsg = msg.replace(\"^`\", \"\"+(char)180);\n\t\tmsg = msg.replace(\"^u\", \"\"+(char)181);\n\t\tmsg = msg.replace(\"^P\", \"\"+(char)182);\n\t\tmsg = msg.replace(\"^.\", \"\"+(char)183);\n\t\tmsg = msg.replace(\"^,\", \"\"+(char)184);\n\t\tmsg = msg.replace(\"^1\", \"\"+(char)185);\n\t\tmsg = msg.replace(\"^0\", \"\"+(char)186);\n\t\tmsg = msg.replace(\"^>\", \"\"+(char)187);\n\t\tmsg = msg.replace(\"^4\", \"\"+(char)188);\n\t\tmsg = msg.replace(\"^5\", \"\"+(char)189);\n\t\tmsg = msg.replace(\"^6\", \"\"+(char)190);\n\t\tmsg = msg.replace(\"^?\", \"\"+(char)191);\n\t\tmsg = msg.replace(\"^M\", \"\"+(char)192);\n\t\tmsg = msg.replace(\"^Q\", \"\"+(char)193);\n\t\tmsg = msg.replace(\"^7\", \"\"+(char)195);\n\t\tmsg = msg.replace(\"^z\", \"\"+(char)196);\n\t\tmsg = msg.replace(\"^A\", \"\"+(char)197);\n\t\tmsg = msg.replace(\"^8\", \"\"+(char)198);\n\t\tmsg = msg.replace(\"^C\", \"\"+(char)199);\n\t\tmsg = msg.replace(\"^R\", \"\"+(char)200);\n\t\tmsg = msg.replace(\"^W\", \"\"+(char)201);\n\t\tmsg = msg.replace(\"^E\", \"\"+(char)202);\n\t\tmsg = msg.replace(\"^H\", \"\"+(char)203);\n\t\tmsg = msg.replace(\"^Z\", \"\"+(char)204);\n\t\tmsg = msg.replace(\"^k\", \"\"+(char)205);\n\t\tmsg = msg.replace(\"^L\", \"\"+(char)206);\n\t\tmsg = msg.replace(\"^I\", \"\"+(char)207);\n\t\tmsg = msg.replace(\"^D\", \"\"+(char)208);\n\t\tmsg = msg.replace(\"^N\", \"\"+(char)209);\n\t\tmsg = msg.replace(\"^l\", \"\"+(char)210);\n\t\tmsg = msg.replace(\"^m\", \"\"+(char)211);\n\t\tmsg = msg.replace(\"^O\", \"\"+(char)212);\n\t\tmsg = msg.replace(\"^G\", \"\"+(char)213);\n\t\tmsg = msg.replace(\"^J\", \"\"+(char)214);\n\t\tmsg = msg.replace(\"^X\", \"\"+(char)215);\n\t\tmsg = msg.replace(\"^!\", \"\"+(char)216);\n\t\tmsg = msg.replace(\"^n\", \"\"+(char)217);\n\t\tmsg = msg.replace(\"^q\", \"\"+(char)218);\n\t\tmsg = msg.replace(\"^:\", \"\"+(char)219);\n\t\tmsg = msg.replace(\"^K\", \"\"+(char)220);\n\t\tmsg = msg.replace(\"^Y\", \"\"+(char)221);\n\t\tmsg = msg.replace(\"^p\", \"\"+(char)222);\n\t\tmsg = msg.replace(\"^B\", \"\"+(char)223);\n\t\tmsg = msg.replace(\"^r\", \"\"+(char)224);\n\t\tmsg = msg.replace(\"^s\", \"\"+(char)225);\n\t\tmsg = msg.replace(\"^j\", \"\"+(char)226);\n\t\tmsg = msg.replace(\"^b\", \"\"+(char)227);\n\t\tmsg = msg.replace(\"^d\", \"\"+(char)228);\n\t\tmsg = msg.replace(\"^F\", \"\"+(char)229);\n\t\tmsg = msg.replace(\"^9\", \"\"+(char)230);\n\t\tmsg = msg.replace(\"^c\", \"\"+(char)231);\n\t\tmsg = msg.replace(\"^t\", \"\"+(char)232);\n\t\tmsg = msg.replace(\"^v\", \"\"+(char)233);\n\t\tmsg = msg.replace(\"^g\", \"\"+(char)234);\n\t\tmsg = msg.replace(\"^e\", \"\"+(char)235);\n\t\tmsg = msg.replace(\"^w\", \"\"+(char)236);\n\t\tmsg = msg.replace(\"^x\", \"\"+(char)237);\n\t\tmsg = msg.replace(\"^h\", \"\"+(char)238);\n\t\tmsg = msg.replace(\"^f\", \"\"+(char)239);\n\t\tmsg = msg.replace(\"^T\", \"\"+(char)240);\n\t\tmsg = msg.replace(\"^(\", \"\"+(char)241);\n\t\tmsg = msg.replace(\"^\\\"\", \"\"+(char)245);\n\t\tmsg = msg.replace(\"^=\", \"\"+(char)247);\n\t\tmsg = msg.replace(\"^[\", \"\"+(char)248);\n\t\tmsg = msg.replace(\"^)\", \"\"+(char)251);\n\t\tmsg = msg.replace(\"^U\", \"\"+(char)252);\n\t\tmsg = msg.replace(\"^y\", \"\"+(char)253);\n\t\tmsg = msg.replace(\"^;\", \"\"+(char)254);\n\t\t\n\t\tmsg = msg.replace(\"SPEC_DOUBLE_CARROTS\", \"^\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_LEFT\", \"{\");\n\t\tmsg = msg.replace(\"SPEC_BRACE_RIGHT\", \"}\");\n\t\t\n\t\treturn msg;\n\t}", "public abstract void tellColorList(ArrayList<String> colors);", "public static Color name2color(String name) {\n Color ans = name2color.get(name);\n if (ans!=null) return ans;\n else if (name.equals(\"magic\")) ans=Color.WHITE;\n else if (name.equals(\"palevioletred\")) ans=new Color(222,113,148);\n else if (name.equals(\"red\")) ans=new Color(255,0,0);\n else if (name.equals(\"salmon\")) ans=new Color(255,130,115);\n else if (name.equals(\"magenta\")) ans=new Color(255,0,255);\n else if (name.equals(\"limegreen\")) ans=new Color(49,207,49);\n else if (name.equals(\"green2\")) ans=new Color(0,239,0);\n else if (name.equals(\"darkolivegreen2\")) ans=new Color(189,239,107);\n else if (name.equals(\"chartreuse2\")) ans=new Color(115,239,0);\n else if (name.equals(\"gold\")) ans=new Color(255,215,0);\n else if (name.equals(\"yellow\")) ans=new Color(255,255,0);\n else if (name.equals(\"lightgoldenrod\")) ans=new Color(239,223,132);\n else if (name.equals(\"cornflowerblue\")) ans=new Color(99,150,239);\n else if (name.equals(\"blue\")) ans=new Color(0,0,255);\n else if (name.equals(\"cadetblue\")) ans=new Color(90,158,165);\n else if (name.equals(\"cyan\")) ans=new Color(0,255,255);\n else if (name.equals(\"lightgray\")) ans=new Color(214,214,214);\n else if (name.equals(\"white\")) ans=Color.WHITE;\n else ans=Color.BLACK;\n name2color.put(name,ans);\n return ans;\n }", "private String rainbowColoredName(String name) {\n\t\tStringBuilder rainbowName = new StringBuilder();\n\t\tfor (char c: name.toCharArray()) {\n\t\t\trainbowName.append(randomRainbowColor());\n\t\t\trainbowName.append(c);\n\t\t}\n\t\treturn rainbowName.toString();\n\t}", "Color(String text) {\n this.text = text;\n }", "public void setColor(String c);", "@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}", "public static String formatMessage(String message) {\r\n \r\n message = parseColorCodes(message);\r\n message = parseFormatCodes(message);\r\n message = parseMarkupCodes(message);\r\n \r\n return message;\r\n }", "@Override\n\tpublic String getColorName() {\n\t\treturn colorName;\n\t}", "public String colouredText(String word) { //O(1)\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString colorWord = sb.append(ConsoleColour.RED_BRIGHT).append(word).append(ConsoleColour.RESET).toString();\n\t\treturn colorWord;\n\t}", "private static String checkColor(String color) throws ParseException {\n if (COLOR.contains(color.toUpperCase()))\n return color.toUpperCase();\n else\n throw new ParseException(\"Colore \" + color + \" non ammesso\", color.length());\n }", "String getColour();", "private String getColor(String tagName) {\n if (labelColor.containsKey(tagName)) {\n return labelColor.get(tagName);\n } else {\n Random random = new Random();\n // create a big random number - maximum is ffffff (hex) = 16777215 (dez)\n int nextInt = random.nextInt(256 * 256 * 256);\n // format it as hexadecimal string (with hashtag and leading zeros)\n String colorCode = String.format(\"#%06x\", nextInt);\n labelColor.put(tagName, colorCode);\n return labelColor.get(tagName);\n }\n }", "abstract public String getColor();", "abstract public String getColor();", "public static void printColor(String[] colors){\n for(int i=0; i<colors.length; i++){\n System.out.println(colors[i]);\n }\n }", "Integer getTxtColor();", "@Override\n public String toString() {\n return color.name();\n }", "public static String combineAnsiBackGround(ANSI_BACKGROUND_COLOR color, String message) {\n\t\treturn (color.value + message + ANSI_RESET);\n\t}", "public static String purple(String text){\n return ANSI_PURPLE + text + ANSI_PURPLE;\n }", "public static String replaceColors(String str) {\n\t\tfor (CustomColor color : CustomColor.values())\n\t\t\tstr = str.replace(color.getCustom(), color.getString());\n\t\treturn str;\n\t}", "ColorGroup(String text) {\n this.text = text;\n }", "private void buildNamedColors(JPanel panel, ResourceBundle messageBundle) {\n dragDropColorList = new DragDropColorList(swingController, preferences);\r\n\r\n // create current list of colours\r\n JScrollPane scrollPane = new JScrollPane(dragDropColorList);\r\n addGB(panel, scrollPane, 0, 0, 5, 1);\r\n\r\n dragDropColorList.addListSelectionListener(this);\r\n\r\n // build out the CRUD GUI.\r\n addNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.add.label\"));\r\n addNamedColorButton.addActionListener(this);\r\n addNamedColorButton.setEnabled(true);\r\n\r\n removeNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.remove.label\"));\r\n removeNamedColorButton.addActionListener(this);\r\n removeNamedColorButton.setEnabled(false);\r\n\r\n updateNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.edit.label\"));\r\n updateNamedColorButton.addActionListener(this);\r\n updateNamedColorButton.setEnabled(false);\r\n\r\n colorButton = new ColorChooserButton(Color.DARK_GRAY);\r\n colorButton.setEnabled(true);\r\n colorLabelTextField = new JTextField(\"\");\r\n colorLabelTextField.setEnabled(true);\r\n\r\n // add, edit remove controls.\r\n constraints.insets = new Insets(5, 5, 5, 1);\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.weightx = 0.01;\r\n constraints.weighty = 1.0;\r\n addGB(panel, colorButton, 0, 1, 1, 1);\r\n\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.insets = new Insets(5, 1, 5, 1);\r\n constraints.weightx = 1.0;\r\n constraints.fill = GridBagConstraints.BOTH;\r\n addGB(panel, colorLabelTextField, 1, 1, 1, 1);\r\n\r\n constraints.weightx = 0.01;\r\n constraints.fill = GridBagConstraints.NONE;\r\n addGB(panel, addNamedColorButton, 2, 1, 1, 1);\r\n addGB(panel, updateNamedColorButton, 3, 1, 1, 1);\r\n\r\n constraints.insets = new Insets(5, 0, 5, 5);\r\n addGB(panel, removeNamedColorButton, 4, 1, 1, 1);\r\n }", "KeyColor(String name){\n this.name = name;\n }", "public static void addColor(){ \r\n \r\n welcome.add(black);\r\n black.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n black.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(red);\r\n red.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n red.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); //adding some buttons, formatting them, and aligning them\r\n \r\n welcome.add(yellow);\r\n yellow.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n yellow.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(green);\r\n green.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n green.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n }", "public static ChatColor getChatColor(EnumChatFormatting format) {\n \treturn getChatColor(format.toString());\n }", "@Override\r\n\tpublic String getColor() {\n\t\treturn \"white\";\r\n\t}", "private String getExpectedYellowColorName()\n {\n String expected;\n\n switch (ResourceBundleManager.getLocale().getLanguage())\n {\n case \"en\":\n expected = \"Yellow\";\n break;\n\n case \"de\":\n expected = \"Gelb\";\n break;\n\n case \"fr\":\n expected = \"Jaune\";\n break;\n\n case \"it\":\n expected = \"Giallo\";\n break;\n\n case \"es\":\n expected = \"Amarillo\";\n break;\n\n default:\n throw new ResourceBundleException(String.format(\"Unhandled: '%s' locale\", ResourceBundleManager.getLocale()));\n }\n\n return expected;\n }", "public static String blue(String text){\n return ANSI_BLUE + text + ANSI_BLUE;\n }", "@Override\n\tpublic void color() {\n\t\tSystem.out.println(\"Colour is red\");\n\t\t\n\t}", "public static void log(String color, String message) {\r\n message = \"<font color=\\\"\" + color + \"\\\">\" + message + \"</font><br>\";\r\n chatText.append(message);\r\n jEditorPane1.setText(chatText.toString());\r\n }", "private String printColorError(List<Card> hand, Card upCard,\n UnoPlayer.Color calledColor, ArrayList<Integer> validPlays,\n UnoPlayer.Color newColor)\n {\n String s = \"\";\n s += \"Whoops -- your callColor() method has an error!\\n\";\n s += \"You were given this hand:\\n\";\n for (int i = 0; i < hand.size(); i++)\n {\n s += \" \" + i + \". \" + hand.get(i) + \"\\n\";\n }\n\n s += \"and the up card was: \" + upCard + \"\\n\";\n if (upCard.getRank() == UnoPlayer.Rank.WILD\n || upCard.getRank() == UnoPlayer.Rank.WILD_D4)\n {\n s += \"and the called color was: \" + calledColor + \"\\n\";\n }\n s += \"and you (wrongly) returned \" + newColor + \".\\n\";\n return s;\n }", "@Override\n\tpublic String howtocolor() {\n\t\treturn \"Color all four sides\";\n\t}", "private void makeChange(int color) {\n StringBuilder sb = new StringBuilder(\"C:\");\n\n sb.append(Color.red(color)).append(\",\")\n .append(Color.green(color)).append(\",\")\n .append(Color.blue(color)).append(\",\")\n .append(\"-1\\n\");\n\n sendMessage(sb.toString());\n }", "public static String yellow(String text){\n return ANSI_YELLOW + text + ANSI_YELLOW;\n }", "private void changeColors(){\n \n Color vaccanceColor = vaccance.getValue();\n String vaccRGB = getRGB(vaccanceColor);\n databaseHandler.setTermColor(\"vaccance\", vaccRGB);\n \n Color travailColor = travail.getValue();\n String travailRGB = getRGB(travailColor);\n databaseHandler.setTermColor(\"travail\", travailRGB);\n \n Color AnnivColor = anniverssaire.getValue();\n String summerSemRGB = getRGB(AnnivColor);\n databaseHandler.setTermColor(\"annivessaire\", summerSemRGB);\n \n Color formationColor = formation.getValue();\n String formationRGB = getRGB(formationColor);\n databaseHandler.setTermColor(\"formation\", formationRGB);\n \n Color workshopColor = workshop.getValue();\n String workshopRGB = getRGB(workshopColor);\n databaseHandler.setTermColor(\"workshop\", workshopRGB);\n \n Color certifColor = certif.getValue();\n String certifRGB = getRGB(certifColor);\n databaseHandler.setTermColor(\"certif\", certifRGB);\n \n Color importantColor = important.getValue();\n String importantRGB = getRGB(importantColor);\n databaseHandler.setTermColor(\"important\", importantRGB);\n \n Color urgentColor = urgent.getValue();\n String allHolidayRGB = getRGB(urgentColor);\n databaseHandler.setTermColor(\"urgent\", allHolidayRGB);\n \n \n \n }", "private void parseColors(String colors){\n String pattern = \"#([A-F0-9]||[a-f0-9]){6}\";\n if (colors.matches(pattern)){\n paint.setColor(Color.parseColor(colors));\n return;\n }\n pattern = \"rgb\\\\(\\\\d\\\\d?\\\\d?,\\\\d\\\\d?\\\\d?,\\\\d\\\\d?\\\\d?\\\\)\";\n if (!colors.matches(pattern)) return;\n\n colors = colors.substring(4);\n\n int r = Integer.parseInt(colors.substring(0,colors.indexOf(',')));\n if (r > 255) return;\n\n colors = colors.substring(colors.indexOf(',') + 1);\n\n int g = Integer.parseInt(colors.substring(0,colors.indexOf(',')));\n if (g > 255) return;\n\n int b = Integer.parseInt(colors.substring(colors.indexOf(',') + 1, colors.length()-1));\n if (b > 255) return;\n\n paint.setColor(Color.argb(255, r, g, b));\n\n }", "@Override\r\n\tpublic void tellColorList(ArrayList<String> colors) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\tsuper.setColorList(colors);\r\n\t}", "public String colorToLocate() {\n char targetColor;\n gameData = DriverStation.getInstance().getGameSpecificMessage();\n if(gameData.length() > 0) {\n switch (gameData.charAt(0)) {\n case 'B' :\n targetColor = 'R';\n break;\n case 'G' :\n targetColor = 'Y';\n break;\n case 'R' :\n targetColor = 'B';\n break;\n case 'Y' :\n targetColor = 'G';\n break;\n default :\n targetColor = '?';\n break;\n }\n } else {\n targetColor = '?';\n }\n return \"\"+targetColor;\n }", "@Override\n\tpublic String getColor() {\n\t\treturn \"red\";\n\t}", "private static void updateColors() {\n try {\n text.setBackground(colorScheme[0]); outputText.setBackground(colorScheme[0]); \n //frame.setBackground(colorScheme[0]);\n\n //Determines the color to set the splitter\n if(colorScheme[0].equals(Color.BLACK)) splitter.setBackground(Color.DARK_GRAY.darker());\n else if(colorScheme[0].equals(new Color(35,37,50))) splitter.setBackground(new Color(35,37,50).brighter());\n else if(colorScheme[0].equals(Color.GRAY) || colorScheme[0].equals(Color.LIGHT_GRAY) || colorScheme[0].equals(Color.WHITE)) splitter.setBackground(null);\n else splitter.setBackground(colorScheme[0].darker());\n\n text.getStyledDocument().getForeground(attributeScheme[11]); //Will work, but needs to be refreshed somehow.\n outputText.setForeground(colorScheme[11]); \n } catch (Exception e) {\n System.out.println(\"The error was here!\");\n e.printStackTrace();\n }\n }", "private static String formatHexString(Color c) {\n return c != null?String.format(null, \"#%02x%02x%02x\", new Object[]{Long.valueOf(Math.round(c.getRed() * 255.0D)), Long.valueOf(Math.round(c.getGreen() * 255.0D)), Long.valueOf(Math.round(c.getBlue() * 255.0D))}).toUpperCase():null;\n }", "void setColor(ChatColor color);", "public static String combineAnsiFont(ANSI_FONT_COLOR color, String message) {\n\t\treturn (color.value + message + ANSI_RESET);\n\t}", "private static TextStyle styleString(String color) {\n switch (color.toLowerCase().trim()) {\n case \"bold\":\n case \"&l\":\n return TextStyles.BOLD;\n case \"italic\":\n case \"&o\":\n return TextStyles.ITALIC;\n case \"random\":\n case \"obfuscated\":\n case \"magic\":\n case \"&k\":\n return TextStyles.OBFUSCATED;\n case \"strike\":\n case \"strikethru\":\n case \"strikethrough\":\n case \"&m\":\n return TextStyles.STRIKETHROUGH;\n case \"reset\":\n case \"&r\":\n return TextStyles.RESET;\n case \"underline\":\n case \"&n\":\n return TextStyles.UNDERLINE;\n default:\n return TextStyles.NONE;\n }\n }", "public String parseColors(String string){\n return ChatColor.translateAlternateColorCodes('&', string);\n }", "public void cambia_color(String color) {\n\t\tif (color.equals(\"azul\")||color.equals(\"rojo\")) {\n\t\t\tthis.color=color;\n\t\t}else {\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null,\"color incorrecto\");\n\t\t\t\n\t\t}\n\t\t \n\t\t \n\t\t\n\t\t}", "public String getTextColor();", "public ColouredString(ColourPair color, String content) {\n this.colour = color;\n this.content = content;\n }", "public static ChatColor getFormat(ChatColor... chatFormats) {\n Random r = new Random(System.nanoTime());\n ChatColor[] colors;\n if (chatFormats.length == 0)\n colors = ChatColor.values();\n else\n colors = chatFormats;\n int i = r.nextInt(colors.length);\n while (!colors[i].isFormat())\n i = r.nextInt(colors.length);\n ChatColor rc = colors[i];\n return rc;\n }", "public static int getTextColorFromMagnitude(String input) {\n double magnitude = Double.parseDouble(input);\n if (magnitude >=0 && magnitude <= 3.5) {\n return Color.parseColor(\"#00FF00\");\n } else if (magnitude > 3.5 && magnitude <= 5.5) {\n return Color.parseColor(\"#FF6347\");\n } else {\n return Color.parseColor(\"#FF0000\");\n }\n }", "protected static String getColouredString(final String colour, final String line) {\n String res = null;\n if (colour.length() < 3) {\n int num;\n \n try {\n num = Integer.parseInt(colour);\n } catch (NumberFormatException ex) {\n num = -1;\n }\n \n if (num >= 0 && num <= 15) {\n res = String.format(\"%c%02d%s%1$c\", Styliser.CODE_COLOUR, num, line);\n }\n } else if (colour.length() == 6) {\n try {\n Color.decode('#' + colour);\n res = String.format(\"%c%s%s%1$c\", Styliser.CODE_HEXCOLOUR, colour, line);\n } catch (NumberFormatException ex) { /* Do Nothing */ }\n }\n \n if (res == null) {\n res = String.format(\"%c%02d%s%1$c\", Styliser.CODE_COLOUR, 14, line);\n }\n return res;\n }", "private void processInput(String str) {\r\n String[] strs = str.split(\":\")[1].split(\",\");\r\n for (String s : strs) {\r\n color.add(s.trim().toUpperCase());\r\n }\r\n }", "public interface SinkColor\n {\n /**\n * Blue, RGB( 0, 0, 255 )\n *\n * @see Sink#anchor(String)\n * @see Sink#anchor(SinkEventAttributes)\n * @see Sink#anchor_()\n */\n Color ANCHOR_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 255 ) );\n\n /**\n * @see Sink#author()\n * @see Sink#author(SinkEventAttributes)\n * @see Sink#author_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color AUTHOR_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#body()\n * @see Sink#body(SinkEventAttributes)\n * @see Sink#body_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color BODY_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#bold()\n * @see Sink#bold(SinkEventAttributes)\n * @see Sink#bold_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color BOLD_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * Green, RGB( 0, 140, 0 )\n *\n * @see Sink#comment(String)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color COMMENT_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 140, 0 ) );\n\n /**\n * Green, RGB( 63,127, 95 )\n *\n * @see Sink#date()\n * @see Sink#date(SinkEventAttributes)\n * @see Sink#date_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color DATE_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#definedTerm()\n * @see Sink#definedTerm(SinkEventAttributes)\n * @see Sink#definedTerm_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color DEFINEDTERM_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#definition()\n * @see Sink#definition(SinkEventAttributes)\n * @see Sink#definition_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color DEFINITION_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#definitionList()\n * @see Sink#definitionList(SinkEventAttributes)\n * @see Sink#definitionList_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color DEFINITIONLIST_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#definitionListItem()\n * @see Sink#definitionListItem(SinkEventAttributes)\n * @see Sink#definitionListItem_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color DEFINITIONLISTITEM_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#figure()\n * @see Sink#figure(SinkEventAttributes)\n * @see Sink#figure_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color FIGURE_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#figureCaption()\n * @see Sink#figureCaption(SinkEventAttributes)\n * @see Sink#figureCaption_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color FIGURECAPTION_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * Blue, RGB( 0, 0, 255 )\n *\n * @see Sink#figureGraphics(String)\n * @see Sink#figureGraphics(String, SinkEventAttributes)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color FIGUREGRAPHICS_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 255 ) );\n\n /**\n * Violet, RGB( 139, 38, 201 )\n *\n * @see Sink#head()\n * @see Sink#head(SinkEventAttributes)\n * @see Sink#head_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color HEAD_COLOR = ColorManager.getInstance().getColor( new RGB( 139, 38, 201 ) );\n\n /**\n * Grey, RGB( 192, 192, 192 )\n *\n * @see Sink#horizontalRule()\n * @see Sink#horizontalRule(SinkEventAttributes)\n */\n Color HORIZONTALRULE_COLOR = ColorManager.getInstance().getColor( new RGB( 192, 192, 192 ) );\n\n /**\n * @see Sink#italic()\n * @see Sink#italic(SinkEventAttributes)\n * @see Sink#italic_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color ITALIC_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#lineBreak()\n * @see Sink#lineBreak(SinkEventAttributes)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color LINEBREAK_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * Blue, RGB( 0, 0, 255 )\n *\n * @see Sink#link(String)\n * @see Sink#link(String, SinkEventAttributes)\n * @see Sink#link_()\n */\n Color LINK_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 255 ) );\n\n /**\n * @see Sink#list()\n * @see Sink#list(SinkEventAttributes)\n * @see Sink#list_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color LIST_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#listItem()\n * @see Sink#listItem(SinkEventAttributes)\n * @see Sink#listItem_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color LISTITEM_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#monospaced()\n * @see Sink#monospaced(SinkEventAttributes)\n * @see Sink#monospaced_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color MONOSPACED_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#nonBreakingSpace()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color NONBREAKINGSPACE_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#numberedList(int)\n * @see Sink#numberedList(int, SinkEventAttributes)\n * @see Sink#numberedList_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color NUMBEREDLIST_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#numberedListItem()\n * @see Sink#numberedListItem(SinkEventAttributes)\n * @see Sink#numberedListItem_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color NUMBEREDLISTITEM_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#pageBreak()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color PAGEBREAK_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#paragraph()\n * @see Sink#paragraph(SinkEventAttributes)\n * @see Sink#paragraph_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color PARAGRAPH_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#section(int, SinkEventAttributes)\n * @see Sink#section_(int)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTION_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#section1()\n * @see Sink#section1_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTION1_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#section2()\n * @see Sink#section2_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTION2_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#section3()\n * @see Sink#section3_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTION3_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#section4()\n * @see Sink#section4_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTION4_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#section5()\n * @see Sink#section5_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTION5_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#sectionTitle()\n * @see Sink#sectionTitle(int, SinkEventAttributes)\n * @see Sink#sectionTitle_()\n * @see Sink#sectionTitle_(int)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTIONTITLE_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#sectionTitle1()\n * @see Sink#sectionTitle1_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTIONTITLE1_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#sectionTitle2()\n * @see Sink#sectionTitle2_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTIONTITLE2_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#sectionTitle3()\n * @see Sink#sectionTitle3_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTIONTITLE3_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#sectionTitle4()\n * @see Sink#sectionTitle4_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTIONTITLE4_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * @see Sink#sectionTitle5()\n * @see Sink#sectionTitle5_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color SECTIONTITLE5_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * Blue, RGB( 0, 0, 150 )\n *\n * @see Sink#table()\n * @see Sink#table(SinkEventAttributes)\n * @see Sink#table_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color TABLE_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 150 ) );\n\n /**\n * @see Sink#tableCaption()\n * @see Sink#tableCaption(SinkEventAttributes)\n * @see Sink#tableCaption_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color TABLECAPTION_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * Blue, RGB( 0, 0, 150 )\n *\n * @see Sink#tableCell()\n * @see Sink#tableCell(SinkEventAttributes)\n * @see Sink#tableCell_()\n * @see Sink#tableCell(String)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color TABLECELL_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 150 ) );\n\n /**\n * Blue, RGB( 0, 0, 150 )\n *\n * @see Sink#tableHeaderCell()\n * @see Sink#tableHeaderCell(SinkEventAttributes)\n * @see Sink#tableHeaderCell_()\n * @see Sink#tableHeaderCell(String)\n * @see ColorManager#DEFAULT_COLOR\n */\n Color TABLEHEADERCELL_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 150 ) );\n\n /**\n * Blue, RGB( 0, 0, 150 )\n *\n * @see Sink#tableRow()\n * @see Sink#tableRow(SinkEventAttributes)\n * @see Sink#tableRow_()\n * @see Sink#tableRows(int[], boolean)\n * @see Sink#tableRows_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color TABLEROW_COLOR = ColorManager.getInstance().getColor( new RGB( 0, 0, 150 ) );\n\n /**\n * @see Sink#title()\n * @see Sink#title(SinkEventAttributes)\n * @see Sink#title_()\n * @see ColorManager#DEFAULT_COLOR\n */\n Color TITLE_COLOR = ColorManager.getInstance().getColor( ColorManager.DEFAULT_COLOR );\n\n /**\n * Grey, RGB( 100, 100, 100 )\n *\n * @see Sink#verbatim(boolean)\n * @see Sink#verbatim(SinkEventAttributes)\n * @see Sink#verbatim_()\n */\n Color VERBATIM_COLOR = ColorManager.getInstance().getColor( new RGB( 100, 100, 100 ) );\n }", "public static void main (String[] args) {\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\\033[90m\",\"ANDALUCÍA \",\"\\033[40m\");\n //System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"ANDALUCÍA \",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\"); \n \n \n }", "public void colorInfo() {\n\t\tSystem.out.println(\"Universal Color\");\n\t}", "public interface MclnStatePalette {\n\n String CORE_NOTHING_COLOR = \"0xC0C0C0\";\n String CORE_CONTRADICT_COLOR = \"0xAAAAAA\";\n String CORE_UNKNOWN_COLOR = \"0xC0C0C0\";\n String CORE_POSITIVE_COLOR = \"0xFFFFFF\";\n String CORE_NEGATIVE_COLOR = \"0xFFFFFF\";\n\n String CREATION = \"0xC0C0C0\";\n String NOT_CREATION = \"0x0B0B0B\";\n String WHITE = \"0xFFFFFF\";\n String BLACK = \"0x000000\";\n\n String GRAY = \"0xCCCCCC\";\n String NOT_GRAY = \"0x333333\";\n String MID_GRAY = \"0xBBBBBB\";\n String DARK_GRAY = \"0xAAAAAA\";\n\n String RED = \"0xFF0000\";\n String NOT_RED = \"0x00FFFF\";\n String MID_RED = \"0xCC0033\";\n String DARK_RED = \"0x800040\";\n\n String GREEN = \"0x00FF00\";\n String NOT_GREEN = \"0xFF00FF\";\n String MID_GREEN = \"0x94D352\";\n String DARK_GREEN = \"0x008040\";\n\n String BLUE = \"0x0000FF\";\n String NOT_BLUE = \"0xFFFF00\";\n String MID_BLUE = \"0x0040FF\";\n String DARK_BLUE = \"0x0020BB\";\n\n String PURPLE = \"0xFF00FF\";\n String NOT_PURPLE = GREEN;\n String MID_PURPLE = \"0x9900FF\";\n String DARK_PURPLE = \"0x4000DD\";\n\n String CYAN = \"0x00FFFF\";\n String NOT_CYAN = RED;\n String MID_CYAN = \"0x31A4B1\";\n String DARK_CYAN = \"0x2C5463\";\n\n String YELLOW = \"0xFFFF00\";\n String NOT_YELLOW = BLUE;\n String MID_YELLOW = \"0x9900FF\";\n String DARK_YELLOW = \"0x4000DD\";\n\n String BROWN = \"0xdec79f\";\n String MID_BROWN = \"0xce9b4e\";\n String DARK_BROWN = \"0xc27101\";\n\n String SWAMP = \"0xc8c8aa\";\n String MID_SWAMP = \"0x999966\";\n String DARK_SWAMP = \"0xe4e640\";\n\n String PINK = \"0xFF7FBF\";\n String NOT_PINK = \"0x005555\";\n String ORANGE = \"0xFF9900\";\n String CANARY = \"0xBFFF00\";\n\n int MCLN_MIN_STATE = MclnAlgebra.MCL_CORE_MAX + 1;\n\n MclnState MCLN_CREATION_STATE = MclnState.createState(\"Creation\", MCLN_MIN_STATE, CREATION);\n MclnState MCLN_NOT_CREATION_STATE = MclnState.createState(MCLN_CREATION_STATE, \"Not Creation\", -MCLN_MIN_STATE,\n NOT_CREATION);\n//\n// MclnState MCLN_CREATION_STATE = MclnState.createState(\"Creation\", MCLN_MIN_STATE, CREATION);\n// MclnState MCLN_NOT_CREATION_STATE = MclnState.createState(MCLN_CREATION_STATE, \"Not Creation\", -MCLN_MIN_STATE, NOT_CREATION);\n//\n// MclnState MCLN_STATE_GRAY = MclnState.createState(\"Gray\", (MCLN_MIN_STATE + 1) , GRAY);\n// MclnState MCLN_STATE_NOT_GRAY = MclnState.createState(MCLN_STATE_GRAY, \"Not Gray\", -(MCLN_MIN_STATE + 1), NOT_GRAY);\n//\n// MclnState MCLN_STATE_RED = MclnState.createState(\"Red\", (MCLN_MIN_STATE + 2), RED);\n// MclnState MCLN_STATE_NOT_RED = MclnState.createState(MCLN_STATE_RED, \"Not Red\", -(MCLN_MIN_STATE + 2), NOT_RED);\n//\n// MclnState MCLN_STATE_GREEN = MclnState.createState(\"Green\", (MCLN_MIN_STATE + 3), GREEN);\n// MclnState MCLN_STATE_NOT_GREEN = MclnState.createState(MCLN_STATE_GREEN, \"Not Green\", -(MCLN_MIN_STATE + 3), NOT_GREEN);\n//\n// MclnState MCLN_STATE_BLUE = MclnState.createState(\"Blue\", (MCLN_MIN_STATE + 4), BLUE);\n// MclnState MCLN_STATE_NOT_BLUE = MclnState.createState(MCLN_STATE_BLUE, \"Not Blue\", -(MCLN_MIN_STATE + 4), NOT_BLUE);\n//\n// MclnState MCLN_STATE_DARK_BLUE = MclnState.createState(\"Dark blue\", (MCLN_MIN_STATE + 5), DARK_BLUE);\n// MclnState MCLN_STATE_NOT_DARK_BLUE = MclnState.createState(MCLN_STATE_DARK_BLUE, \"Not Dark blue\", -(MCLN_MIN_STATE + 5), NOT_DARK_BLUE);\n//\n// MclnState MCLN_STATE_PINK = MclnState.createState(\"Pink\", (MCLN_MIN_STATE + 6), PINK);\n// MclnState MCLN_STATE_NOT_PINK = MclnState.createState(MCLN_STATE_PINK, \"Not Pink\", -(MCLN_MIN_STATE + 6), NOT_PINK);\n//\n// MclnState MCLN_STATE_DARK_GREEN = MclnState.createState(\"Dark Brown\", (MCLN_MIN_STATE + 7), DARK_GREEN);\n\n public List<MclnState> getAvailableStates();\n\n /**\n * @param color\n * @return\n */\n public MclnState getState(String color);\n\n// String CREATION_COLOR = \"0xC0C0C0\";\n// MclnState CREATION_MCLN_STATE = MclnState.createState(\"Creation State\", 0, CREATION_COLOR);\n\n// int mclnPaletteMax = 10 * 2;\n// int RED = 0xFF0000;\n// int NOT_RED = 0x00FFFF;\n// int GREEN = 0x00FF00;\n// int NOT_GREEN = 0xFF00FF;\n// int BLUE = 0x0000FF;\n// int NOT_BLUE = 0xFFFF00;\n// int YELLOW = NOT_BLUE;\n// int NOT_YELLOW = BLUE;\n// int MAGENTA = NOT_GREEN;\n// int NOT_MAGENTA = GREEN;\n// int CYAN = NOT_RED;\n// int NOT_CYAN = RED;\n// int PINK = 0xFFAAAA;\n// int NOT_PINK = 0x005555;\n//\n// int WHITE = 0xFFFFFF;\n// int VERY_LIGHT_CIAN = 0xCCFFFF;\n// int VERY_LIGHT_BLUE = 0xCCCCFF;\n// int VERY_LIGHT_MAGENTA = 0xCCFFCC;\n// int VERY_LIGHT_RED = 0xFFCCCC;\n// int VERY_LIGHT_YELLOW = 0xFFFFCC;\n//\n//\n// int DARK_RED = 0xCC0000;\n// int DARK_CIAN = 0x00CCCC;\n// int DARK_GREEN = 0x00CC00;\n// int DARK_MAGENTA = 0xCC00CC;\n// int DARK_BLUE = 0x0000CC;\n// int DARK_YELLOW = 0xCCCC00;\n//\n// int VERY_DARK_CIAN = 0x006666;\n// int VERY_DARK_BLUE1 = 0x003366;\n// int VERY_DARK_BLUE2 = 0x000066;\n// int VERY_DARK_BLUE3 = 0x330066;\n// int VERY_DARK_MAGENTA = 0x660066;\n// int VERY_DARK_RED1 = 0x660033;\n// int VERY_DARK_RED2 = 0x660000;\n// int VERY_DARK_RED3 = 0x663300;\n// int VERY_DARK_YELLOW = 0x666600;\n// int VERY_DARK_GREEN1 = 0x336600;\n// int VERY_DARK_GREEN2 = 0x006600;\n// int VERY_DARK_GREEN3 = 0x006633;\n//\n//\n//\n// MclnState getState(Integer color);\n//\n//// Integer getActiveState(Color color) {\n//// return activeColorPalette.get(color);\n//// }\n////\n//// Color getActiveColor(Integer state) {\n//// return activeStatePalette.get(state);\n//// }\n\n}", "String getTextStrokeColorAsString();", "private String colorLogLine(String lineText) {\n\t\tString logLvl = lineText.substring(13, lineText.indexOf(' ', 13));\r\n\t\tString style = \"black\";\r\n\t\tif (\"TRACE\".equals(logLvl))\r\n\t\t\tstyle = \"yellow\";\r\n\t\telse if (\"DEBUG\".equals(logLvl))\r\n\t\t\tstyle = \"green\";\r\n\t\telse if (\"INFO\".equals(logLvl))\r\n\t\t\tstyle = \"blue\";\r\n\t\telse if (\"WARN\".equals(logLvl))\r\n\t\t\tstyle = \"red; font-weight:bold\";\r\n\t\telse if (\"ERROR\".equals(logLvl))\r\n\t\t\tstyle = \"purple; font-weight:bold\";\r\n\t\telse if (\"FATAL\".equals(logLvl))\r\n\t\t\tstyle = \"black; font-weight:bold\";\r\n\t\tlineText = lineText.replaceAll(\" \", \"&nbsp;\");\r\n\t\tlineText = \"<code style=\\\"color:\" + style + \";\\\">\" + lineText + \"</code>\";\r\n\t\treturn lineText;\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tchar color ='g';\n\t\t\n\t\tswitch(color) {\n\t\tcase 'r': System.out.println(\"red\");\n\t\tcase 'b': System.out.println(\"blue\");\n\t\tcase 'g': System.out.println(\"green\");\n\t\t\n\t\t}}", "Lang(String message) {\n this.message = Chat.colourize(message);\n }", "private void appendColor(StringBuilder sb) {\n if (colorsEnabled) {\n // if color given, use that, else take color from default flag-to-color mapping\n if (colorCode != null) {\n sb.append(colorCode);\n } else {\n sb.append(colorMap.get(flagSymbol));\n }\n }\n }", "@Override\n\tprotected char getColor(int position) {\n\t\treturn color;\n\t}", "public void setColour(String[] colours)\n {\n for (int i=0 ; i<colours.length ; i++)\n {\n if(colours[i] != null)\n {\n if(checker.isStringspace(colours[i]))\n colour = colours;\n else\n colour[i] = \"\";\n }\n }\n \n }", "@Test\n public void testColorCodeExtraction() {\n String text = \"§aHello §b§oWhat's up?\";\n\n String colorResult = stringUtils.extractColorCodes(text).toString();\n String styleResult = stringUtils.extractStyleCodes(text).toString();\n\n Assert.assertEquals(\"[§a, §b]\", colorResult);\n Assert.assertEquals(\"[§o]\", styleResult);\n }", "public static ChatColor getColor(ChatColor... validChatcolors) {\n Random r = new Random(System.nanoTime());\n ChatColor[] colors;\n if (validChatcolors.length == 0)\n colors = ChatColor.values();\n else\n colors = validChatcolors;\n\n int i = r.nextInt(colors.length);\n while (!colors[i].isColor() || colors[i] == ChatColor.BLACK)\n i = r.nextInt(colors.length);\n ChatColor rc = colors[i];\n return rc;\n }", "public void updateGrepStyle()\n\t{\n\t\tgrepStyle.setName(textName.getText());\n\t\tgrepStyle.setBold(cbBold.getSelection());\n\t\tgrepStyle.setItalic(cbItalic.getSelection());\n\t\tgrepStyle.setForeground(cpForeground.getEffectiveColor());\n\t\tgrepStyle.setBackground(cpBackground.getEffectiveColor());\n\t\tgrepStyle.setUnderline(cpUnderline.isChecked());\n\t\tgrepStyle.setUnderlineColor(cpUnderline.getColor()); \n\t\tgrepStyle.setStrikeout(cpStrikethrough.isChecked());\n\t\tgrepStyle.setStrikeoutColor(cpStrikethrough.getColor());\n\t\tgrepStyle.setBorder(cpBorder.isChecked());\n\t\tgrepStyle.setBorderColor(cpBorder.getColor());\n\t}", "public static void printColor(String color){\n System.out.println(color);\n }", "public String printColors(){\n String RGB = \"\";\n detectedColor = m_colorSensor.getColor();\n RGB = \"Red: \" + detectedColor.red + \", Green: \" + detectedColor.green + \", Blue: \" + detectedColor.blue;\n return RGB;\n }", "private String translateColor(CardColor c) {\n if (c == CardColor.BLUE) return Color.BLUE.getAnsiCode();\n if (c == CardColor.VIOLET) return Color.RED.getAnsiCode();\n if (c == CardColor.GREEN) return Color.GREEN.getAnsiCode();\n else return Color.YELLOW.getAnsiCode();\n }", "abstract void consoleCustom(boolean time, String tag, String message, Paint color);", "boolean labelColor(String mode);", "private String getColor(Map<Integer, Integer> colMap, int col){\r\n Integer val = colMap.get(col);\r\n if(val == null){\r\n val = colMap.size();\r\n colMap.put(col,val);\r\n }\r\n return val.toString();\r\n }", "protected String comprobarColor(Colores color){\r\n if(getColor() == Colores.AZUL | getColor() == Colores.BLANCO | getColor() == Colores.GRIS | getColor() == Colores.NEGRO\r\n | getColor() == Colores.ROJO){\r\n return \"Color correcto\";\r\n }\r\n else{\r\n return \"Color erroneo\";\r\n }\r\n }", "public static SpannableString getColorNormalString(Context context, String colorStr, String normalStr) {\n SpannableString ss;\n\n if (TextUtils.isEmpty(colorStr)) {\n ss = new SpannableString(normalStr);\n } else {\n int pos = colorStr.length();\n\n ss = new SpannableString(colorStr + \" \" + normalStr);\n ss.setSpan(new ForegroundColorSpan(context.getResources().getColor(R.color.tint_color)), 0, pos, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n ss.setSpan(new StyleSpan(Typeface.BOLD), 0, pos, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n ss.setSpan(new ForegroundColorSpan(Color.GRAY), pos + 1, colorStr.length() + normalStr.length() + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n }\n\n return ss;\n }", "@Override\n\tpublic String getColor() {\n\t\treturn \"blue\";\n\t}" ]
[ "0.6405154", "0.60609835", "0.60342133", "0.6033067", "0.59056467", "0.58986753", "0.58581406", "0.5830659", "0.5829033", "0.5800968", "0.5791726", "0.5773249", "0.5773094", "0.5767372", "0.57624114", "0.57572323", "0.5712842", "0.5669336", "0.5666244", "0.5651782", "0.5634377", "0.5592006", "0.5569502", "0.5539267", "0.55348516", "0.5519983", "0.55145425", "0.5470061", "0.54324716", "0.54295444", "0.54216605", "0.5419915", "0.5417185", "0.5415551", "0.54136336", "0.53949386", "0.5366626", "0.5364057", "0.53593516", "0.53593516", "0.53515494", "0.53392965", "0.5337902", "0.53346455", "0.5319911", "0.5303982", "0.53038985", "0.5298958", "0.52881694", "0.5286976", "0.5281111", "0.5278062", "0.5240238", "0.5230201", "0.5229854", "0.52274734", "0.5221101", "0.5220392", "0.5214084", "0.52074", "0.51986676", "0.51961327", "0.5193754", "0.51887476", "0.5180384", "0.51727366", "0.51723707", "0.51556665", "0.5154933", "0.5151996", "0.51512897", "0.5148863", "0.5123661", "0.5122329", "0.5120555", "0.5111038", "0.51062405", "0.50946236", "0.5091393", "0.508912", "0.50837916", "0.50762373", "0.50433636", "0.50401735", "0.5037119", "0.5035262", "0.50197065", "0.5017753", "0.50137097", "0.5005693", "0.5005416", "0.5004898", "0.5001516", "0.50013614", "0.50002915", "0.49893448", "0.49887124", "0.49849918", "0.49793595", "0.49744815", "0.49726465" ]
0.0
-1
update the quick color drop down.
public void refreshColorPanel() { if (quickPaintAnnotationButton != null) { quickPaintAnnotationButton.refreshColorPanel(); } colorFilterMenuItem.removeAll(); // build colour submenu based on colour labels ButtonGroup filterColorMenuGroup = new ButtonGroup(); JCheckBoxMenuItem filterColorAllMenuItem = new JCheckBoxMenuItem(); filterColorAllMenuItem.setAction(new FilterColorAction( messageBundle.getString("viewer.utilityPane.markupAnnotation.toolbar.filter.option.byColor.all.label"), null)); colorFilterMenuItem.add(filterColorAllMenuItem); filterColorMenuGroup.add(filterColorAllMenuItem); ArrayList<DragDropColorList.ColorLabel> colorLabels = DragDropColorList.retrieveColorLabels(); int defaultColor = preferences.getInt(ViewerPropertiesManager.PROPERTY_ANNOTATION_FILTER_COLOR_COLUMN, -1); JCheckBoxMenuItem filterColorMenuItem; if (colorLabels.size() > 0) { for (DragDropColorList.ColorLabel colorLabel : colorLabels) { filterColorMenuItem = new JCheckBoxMenuItem(); FilterColorAction sortAction = new FilterColorAction( colorLabel.getLabel(), colorLabel.getColor()); filterColorMenuItem.setAction(sortAction); colorFilterMenuItem.add(filterColorMenuItem); filterColorMenuGroup.add(filterColorMenuItem); if (defaultColor != -1 && defaultColor == sortAction.getColorRGB()) { filterColorMenuItem.setSelected(true); filterColorAction = sortAction; } } } if (defaultColor == -1) { filterColorAllMenuItem.setSelected(true); filterColorAction = filterColorAllMenuItem.getAction(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void _updateField(Color c) {\n if (_isBackgroundColor) {\n _colorField.setBackground(c);\n }\n else {\n _colorField.setForeground(c);\n }\n _colorField.setText(getLabelText() + \" (\"+_option.format(c)+\")\");\n }", "private void updateMainFrame() {\n mainFrame.setCustomColorsChosen(this.colorSelectedList);\n }", "public void chooseColor() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private void colorScheme (Composite parent) {\r\n\t\tbgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_BG);\r\n\t\tbgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tfgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_FG);\r\n\t\tfgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tbgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_BG)));\r\n\t\tfgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_FG)));\r\n\r\n\t\tbgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = bgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_BG, sb.toString());\r\n\t\t});\r\n\r\n\t\tfgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = fgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_FG, sb.toString());\r\n\t\t});\r\n\r\n\t\tturnOnOffColors();\r\n\t}", "public void chooseColor() {\n Color c = JColorChooser.showDialog(_parent, \"Choose '\" + getLabelText() + \"'\", _color);\n if (c != null) {\n _color = c;\n notifyChangeListeners();\n _updateField(_color);\n } \n }", "private void updateColorComboBoxes() {\n for(int i = 0; i < colorScheme.length; i++) {\n final int j = i;\n SwingUtilities.invokeLater(new Runnable() {public void run() {temp[j].setSelectedIndex(indexOf(colorScheme[j]));}});\n }\n }", "private void changeColorWheels() {\n if (rgbRdo.getSelection() == true) {\n upperColorWheel.showRgbSliders(true);\n lowerColorWheel.showRgbSliders(true);\n } else {\n upperColorWheel.showRgbSliders(false);\n lowerColorWheel.showRgbSliders(false);\n }\n }", "private void onSetColor() {\r\n\t Frame frame = JOptionPane.getFrameForComponent(getContentComponent());\r\n\t Color newColor = JColorChooser.showDialog(frame, \"Choose color\", DEF_CLUSTER_COLOR);\r\n\t if (newColor != null) {\r\n\t setClusterColor(newColor);\r\n\t }\r\n\t}", "void setColorSelection() {\r\n for (int i = 0; i < chooser.length; i++) {\r\n\r\n if (mainclass.getGraphTyp()\r\n == AbstractGraph.GRAPHTYP_RESIDUAL) {\r\n\r\n switch (i) {\r\n case COLOR_EDGE_ONE:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_FLOW]);\r\n break;\r\n case COLOR_EDGE_TWO:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_CAP]);\r\n break;\r\n case COLOR_EDGE_TOP:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_RTOP]);\r\n break;\r\n default:\r\n chooser[i].setColorSelected(colors[i]);\r\n }\r\n } else {\r\n chooser[i].setColorSelected(colors[i]);\r\n }\r\n }\r\n }", "private void updateColorPreview() {\n runOnUiThread(() -> colorView.setBackgroundColor(Utils.HSV_to_ARGB(specState.hue,\n specState.saturation,\n specState.value)));\n }", "public void updateColourInfo(String col) {\n /**\n * Handles a few special cases where the colour is not set or where the\n * colouring would class with the black background.\n *\n */\n switch (col) {\n case \"LIGHTBLACK\":\n selectedCol.setText(\"Selected Ball Colour: BLACK\");\n selectedCol.setColour(\"GREY\");\n break;\n case \"NONE\":\n selectedCol.setText(\"Selected Ball Colour: NONE\");\n selectedCol.setColour(\"WHITE\");\n break;\n default:\n selectedCol.setText(\"Selected Ball Colour: \" + col);\n selectedCol.setColour(col);\n break;\n }\n }", "public void updateColorsFromSelection() {\n featureDiagramView.reAssignColors(aspectContainer.getSelected());\n }", "@SuppressWarnings(\"unused\")\n\tprivate void showJColorChooser() {\n\t\tColor[] colors = getValues();\n\t\tint i = getSelectedThumb();\n\t\tif (i >= 0 && i < colors.length) {\n\t\t\tcolors[i] = JColorChooser.showDialog(this, \"Choose a Color\",\n\t\t\t\t\tcolors[i]);\n\t\t\tif (colors[i] != null)\n\t\t\t\tsetValues(getThumbPositions(), colors);\n\t\t}\n\t}", "public void RGB_Change(View view) {\r\n int [] color= {0,0,0};\r\n\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Core Colors Change\");\r\n adb.setItems(colors, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n color[which]=255;\r\n lL.setBackgroundColor(Color.rgb(color[0],color[1],color[2]));\r\n }\r\n });\r\n adb.setPositiveButton(\"Exit\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }", "private void changeColors(){\n \n Color vaccanceColor = vaccance.getValue();\n String vaccRGB = getRGB(vaccanceColor);\n databaseHandler.setTermColor(\"vaccance\", vaccRGB);\n \n Color travailColor = travail.getValue();\n String travailRGB = getRGB(travailColor);\n databaseHandler.setTermColor(\"travail\", travailRGB);\n \n Color AnnivColor = anniverssaire.getValue();\n String summerSemRGB = getRGB(AnnivColor);\n databaseHandler.setTermColor(\"annivessaire\", summerSemRGB);\n \n Color formationColor = formation.getValue();\n String formationRGB = getRGB(formationColor);\n databaseHandler.setTermColor(\"formation\", formationRGB);\n \n Color workshopColor = workshop.getValue();\n String workshopRGB = getRGB(workshopColor);\n databaseHandler.setTermColor(\"workshop\", workshopRGB);\n \n Color certifColor = certif.getValue();\n String certifRGB = getRGB(certifColor);\n databaseHandler.setTermColor(\"certif\", certifRGB);\n \n Color importantColor = important.getValue();\n String importantRGB = getRGB(importantColor);\n databaseHandler.setTermColor(\"important\", importantRGB);\n \n Color urgentColor = urgent.getValue();\n String allHolidayRGB = getRGB(urgentColor);\n databaseHandler.setTermColor(\"urgent\", allHolidayRGB);\n \n \n \n }", "Color userColorChoose();", "public static void update(){\n\t\t\n\t\tgraphFrame.setColor(color);\n\t}", "private void updateColorMap() {\n //if (colorMap == null) {\n colorMap = ColorUtil.buildColorMap(colorBar.getCurrentColors(),\n null);\n /* } else {\n colorMap = ColorUtil.updateColorMap(colorBar.getCurrentColors(),\n colorMap);\n }*/\n cmapParams.setColorMap(colorMap);\n cmapParams.setColorMapName(null);\n ((AbstractNcEditor) EditorUtil.getActiveEditor()).refresh();\n }", "private void update() {\n\t\tColor fColor = fgColorProvider.getCurrentColor();\n\t\tColor bColor = bgColorProvider.getCurrentColor();\n\t\tsetText(String.format(\"Foreground color: (%d, %d, %d), background color: (%d, %d, %d).\", \n\t\t\t\tfColor.getRed(), fColor.getGreen(), fColor.getBlue(),\n\t\t\t\tbColor.getRed(), bColor.getGreen(), bColor.getBlue()));\n\t}", "colorChoice(Vec3 color) {\n this.color = color;\n }", "public CGlassEclipseColorSchemeExtension () {\r\n updateUI();\r\n }", "private void sFCButtonActionPerformed(java.awt.event.ActionEvent evt) {\n\t\tfinal SelectColor sASelectColor=new SelectColor(mAnnotation.getFillColor());\n\t\tsASelectColor.setOKListener( new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tColor clr = sASelectColor.getColor();\n\t\t\t\tpreview.setFillColor(clr);\n\t\t\t\tpreviewPanel.repaint();\n\t\t\t}\n\t\t});\n\t\n\t\tsASelectColor.setSize(435, 420);\n\t\tsASelectColor.setVisible(true);\n\t\t//1 -> FillColor\n\t}", "private void revalidateColorPanel() {\n colorPickerCurrent.setValue(colorsQueue.getFirst());\n buttonRecentFirst.setBackground(new Background(new BackgroundFill(colorsQueue.get(1), null, null)));\n buttonRecentSecond.setBackground(new Background(new BackgroundFill(colorsQueue.get(2), null, null)));\n buttonRecentThird.setBackground(new Background(new BackgroundFill(colorsQueue.get(3), null, null)));\n buttonRecentFourth.setBackground(new Background(new BackgroundFill(colorsQueue.get(4), null, null)));\n buttonRecentFifth.setBackground(new Background(new BackgroundFill(colorsQueue.get(5), null, null)));\n }", "public void updateChooser()\r\n\t{\r\n\t\t/*\twhat shall we do here ? */\r\n\t}", "void changeColor(Color color) {\r\n currentColor = color;\r\n redInput.setText(String.valueOf(color.getRed()));\r\n greenInput.setText(String.valueOf(color.getGreen()));\r\n blueInput.setText(String.valueOf(color.getBlue()));\r\n newSwatch.setForeground(currentColor);\r\n }", "ColorSelectionDialog() {\n initComponents();\n }", "private void updateUserSelectionList() {\n colorChosenList.setModel(new AbstractListModel<String>() {\n private static final long serialVersionUID = 8471220817189405309L;\n String[] strings = colorSelectedList.stream().toArray(String[]::new);\n\n @Override\n public int getSize() {\n return strings.length;\n }\n\n @Override\n public String getElementAt(int i) {\n return strings[i];\n }\n });\n }", "void setStatusColour(Color colour);", "public void updateSelection() {\n\t\t\n\t}", "synchronized private void changeColor()\n {\n if ( ++colorIndex == someColors.length )\n colorIndex = 0;\n setForeground( currentColor() );\n repaint();\n }", "public void widgetSelected(SelectionEvent arg0) {\n\t\t ColorDialog dlg = new ColorDialog(shell);\r\n\r\n\t\t // Set the selected color in the dialog from\r\n\t\t // user's selected color\r\n\t\t Color shpColor = viewer.getShpReader().getForeColor();\r\n\t\t dlg.setRGB(shpColor.getRGB());\r\n\r\n\t\t // Change the title bar text\r\n\t\t dlg.setText(Messages.getMessage(\"SHPLayersScreen_ColorDialog\"));\r\n\r\n\t\t // Open the dialog and retrieve the selected color\r\n\t\t RGB rgb = dlg.open();\r\n\t\t if (rgb != null && !rgb.equals(shpColor.getRGB())) {\r\n\t\t // Dispose the old color, create the\r\n\t\t // new one, and set into the label\r\n\t\t \tnewColor = new Color(shell.getDisplay(), rgb);\r\n\t\t\t\t\tlabelColor.setBackground(newColor);\r\n\t\t }\r\n\t\t\t}", "public void Color() {\n\t\t\r\n\t}", "private void displayColourMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------- Colour Menu ---------------\");\r\n System.out.println(\"(1) To edit Colour1\");\r\n System.out.println(\"(2) To edit Colour2\");\r\n System.out.println(\"(3) To edit Colour3\");\r\n }", "public void updateOptions(Container frame) {\n\t\tArrayList<Component> componentList = getAllComponents(frame);\n\t\tfor (Component comp : componentList) {\n\t\t\tif ((comp instanceof JLabel && comp.isOpaque()) || comp instanceof JButton || comp instanceof JSlider || comp instanceof JToggleButton || comp instanceof JComboBox)\n\t\t\t\tcomp.setBackground(Options.getButtonColor());\n\t\t\telse if (comp instanceof JPanel)\n\t\t\t\tcomp.setBackground(Options.getBackgroundColor());\n\t\t}\n\t}", "public void setColorScheme(int schemeNo){\n\t\tlocalColor = GCScheme.getColor(winApp, schemeNo);\n\t\tslider.localColor = GCScheme.getColor(winApp, schemeNo);\n\t\tArrayList<GOption> options = optGroup.getOptions();\n\t\tfor(int i = 0; i < options.size(); i++)\n\t\t\toptions.get(i).localColor = GCScheme.getColor(winApp, schemeNo);\n\t}", "protected void attemptGridPaintSelection() {\n/* 314 */ Color c = JColorChooser.showDialog(this, localizationResources.getString(\"Grid_Color\"), Color.blue);\n/* */ \n/* 316 */ if (c != null) {\n/* 317 */ this.gridPaintSample.setPaint(c);\n/* */ }\n/* */ }", "public void onUpdateColor() {\n getVertexBufferObject().onUpdateColor(this);\n }", "public void chooseCellColor(){\n currentCellColor = cellColorPicker.getValue();\n draw();\n }", "void setColor(Person p,Color c){\r\n\t\tColor newc = JColorChooser.showDialog(ccDialog,\"Choose a color\",c);\r\n\t\tif (newc != null)\r\n\t\t\tp.setColor(newc);\r\n\t}", "private void postInit() {\n // start with compact form\n detailledToggleButtonActionPerformed(null);\n\n colorMappingComboBox.setRenderer(ColorMappingListCellRenderer.getListCellRenderer());\n\n // Fill colorMapping combobox\n for (ColorMapping cm : ColorMapping.values()) {\n if (cm != ColorMapping.OBSERVATION_DATE) { // not implemented\n colorMappingComboBox.addItem(cm);\n }\n }\n\n xAxisEditor = new AxisEditor(this);\n xAxisPanel.add(xAxisEditor);\n\n if (ENABLE_EXPRESSION_EDITOR) {\n expressionEditor = new ExpressionEditor(this);\n expressionEditor.setVisible(false);\n\n this.jPanelOtherEditors.add(expressionEditor, BorderLayout.CENTER);\n } else {\n jToggleButtonExprEditor.setVisible(false);\n }\n\n // Adjust fonts:\n final Font fixedFont = new Font(Font.MONOSPACED, Font.PLAIN, SwingUtils.adjustUISize(12));\n this.jToggleButtonAuto.setFont(fixedFont);\n this.jToggleButtonDefault.setFont(fixedFont);\n this.jToggleButtonFixed.setFont(fixedFont);\n }", "private void editList(){\n String name =this.stringPopUp(\"New name:\");\n Color newDefaultPriority = ColorPicker.colorPopUp(ColorPicker.getColor(currentList.getColor()));\n if(name != null && !name.isEmpty()) {\n String oldName = getPanelForList().getName();\n JPanel panel = getPanelForList();\n currentList.setName(name);\n currentList.setColor(ColorPicker.getColorName(newDefaultPriority));\n agenda.getConnector().editItem(currentList);\n setup.remove(oldName);\n window.remove(panel);\n setup.put(name,true);\n panel.setName(name);\n comboBox.addItem(name);\n comboBox.setSelectedItem(name);\n window.add(name,panel);\n comboBox.removeItem(oldName);\n this.updateComponent(panel);\n this.showPanel(name);\n this.updateComponent(header);\n }\n }", "public void changeColor(){\r\n if(color == 1)\r\n color = 2;\r\n else\r\n color = 1;\r\n }", "public void chooseBackgroundColor(){\n currentBackgroundColor = backgroundColorPicker.getValue();\n draw();\n }", "public void stateChanged(ChangeEvent changeEvent) {\n Color newForegroundColor = colorChooser.getColor();\n label.setForeground(newForegroundColor);\n }", "private void addNewColorToPanel() {\n if (!colorPickerCurrent.getValue().equals(colorsQueue.getFirst())) {\n colorsQueue.push(colorPickerCurrent.getValue());\n revalidateColorPanel();\n }\n }", "@Override\n \t public void actionPerformed(ActionEvent e) \n \t {\n \t\t Color newColour = JColorChooser.showDialog(null, \"Choose a colour!\", Color.black);\n \t\t if(newColour == null)\n \t\t\t return;\n \t\t else\n \t\t\t client.setColor(newColour);\n \t }", "private void assignColors() {\n soundQuickStatus.setBackground(drawables[noise]);\n comfortQuickStatus.setBackground(drawables[comfort]);\n lightQuickStatus.setBackground(drawables[light]);\n convenienceQuickStatus.setBackground(drawables[convenience]);\n }", "public void updateColor(ColorData colorData, boolean upperFlag) {\n if (upperFlag) {\n upperColorWheel.setColor(colorData);\n } else {\n lowerColorWheel.setColor(colorData);\n }\n }", "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "@Override\n public void changeColor(ColorEvent ce) {\n \n txtRed.setText(\"\"+ ce.getColor().getRed());\n txtGreen.setText(\"\"+ ce.getColor().getGreen());\n txtBlue.setText(\"\"+ ce.getColor().getBlue());\n \n \n }", "public void changeColor(Color c){\n switch(identifier){\n case \"FillRec\":\n fillrec.setBackground(c);\n break;\n case \"FillOval\":\n filloval.setBackground(c);\n break;\n case \"EmptyRec\":\n emptyrec.setBackground(c);\n break;\n case \"EmptyOval\":\n emptyoval.setBackground(c);\n break;\n case \"LineDraw\":\n linedraw.setBackground(c);\n break;\n case \"ColorChooser\":\n opencolor.setBackground(c);\n break;\n }\n }", "public void paintWheel() {\n \t\n //initialColor is the initially-selected color to be shown in the rectangle on the left of the arrow.\n //for example, 0xff000000 is black, 0xff0000ff is blue. Please be aware of the initial 0xff which is the alpha.\n AmbilWarnaDialog dialog = new AmbilWarnaDialog(c, currentColor, new OnAmbilWarnaListener() {\n \n // Executes, when user click Cancel button\n @Override\n public void onCancel(AmbilWarnaDialog dialog){\n }\n \n // Executes, when user click OK button\n @Override\n public void onOk(AmbilWarnaDialog dialog, int color) {\n \t\n \tcurrentColor=color;\n \t//convert RGB values to float(0-1) for OpenGL use\n \tfloat r=(float)Color.red(color)/255;\n \tfloat g=(float)Color.green(color)/255;\n \tfloat b=(float)Color.blue(color)/255;\n \t\n \tsetModelColor(r,g,b);\n }\n });\n dialog.show();\n }", "private void turnOnOffColors () {\r\n\t\tif (store.getString(CDTFoldingConstants.COMBO_CHOICE).equals(\r\n\t\t\t\tCDTFoldingConstants.COMBO_CHOICE_HIGHLIGHT)) {\r\n\t\t\tfgLabel.setVisible(true);\r\n\t\t\tbgLabel.setVisible(true);\r\n\t\t\tbgColorSelector.setEnabled(true);\r\n\t\t\tfgColorSelector.setEnabled(true);\r\n\t\t} else {\r\n\t\t\tfgLabel.setVisible(false);\r\n\t\t\tbgLabel.setVisible(false);\r\n\t\t\tbgColorSelector.setEnabled(false);\r\n\t\t\tfgColorSelector.setEnabled(false);\r\n\t\t}\r\n\t}", "private void updateColor() {\n int redShift = red << 16; // red: 0xRR0000 <- 0xRR\n int greenShift = green << 8; // red: 0xGG00 <- 0xGG\n int blueShift = blue; // blue: 0xBB <- 0xBB\n int alphaShift = 0xff << 24; // alpha 0xff000000 <- 0xff // we don't want our color to be transparent.\n int color = alphaShift | redShift | greenShift | blueShift;\n viewColor.setBackgroundColor(color);\n }", "@Override\n public String getType() {\n return \"Color change\";\n }", "public void setColor(Color newColor) ;", "public void colorButtonClicked(String tag){\n color.set(tag);\n }", "public void RGB_Mix(View view) {\r\n int [] color= {0,0,0};\r\n\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Core Colors Mix\");\r\n adb.setMultiChoiceItems(colors, null, new DialogInterface.OnMultiChoiceClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\r\n if(isChecked) color[which]=255;\r\n else if(color[which]==255) color[which]=0;\r\n }\r\n });\r\n adb.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n lL.setBackgroundColor(Color.rgb(color[0],color[1],color[2]));\r\n\r\n }\r\n });\r\n adb.setNegativeButton(\"Exit\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }", "boolean changeColor(Color newColor){\n boolean change=false;\r\n\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()) {\r\n TShape theShape = (TShape) iter.next();\r\n\r\n if (theShape.getSelected()) {\r\n theShape.setColor(newColor);\r\n change = true;\r\n }\r\n }\r\n }\r\n\r\n if (!change){\r\n TShape prototype=fPalette.getPrototype();\r\n\r\n if (prototype!=null)\r\n prototype.setColor(newColor);\r\n fPalette.repaint(); // no listeners for change in the palette\r\n }\r\n\r\n return\r\n change; // to drawing itself\r\n }", "private void define_select_color(){\n\n TextView white_panel = (TextView) findViewById(R.id.palette_white);\n TextView black_panel = (TextView) findViewById(R.id.palette_black);\n TextView red_panel = (TextView) findViewById(R.id.palette_red);\n TextView blue_panel = (TextView) findViewById(R.id.palette_blue);\n\n white_panel.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n selected_color=WHITE;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n black_panel.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n selected_color=BLACK;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n red_panel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selected_color = RED;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n blue_panel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selected_color = BLUE;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n\n\n\n }", "public void setColor(int color) {\n/* 77 */ this.color = color;\n/* 78 */ this.paint.setColor(this.color);\n/* */ }", "public void cbMohexShowRollout()\n {\n \tif (!m_white.wasSuccess()) \n \t return;\n \n \tString str = m_white.getResponse();\n Vector<Pair<String, String> > pairs = \n StringUtils.parseStringPairList(str);\n \n m_guiboard.clearMarks();\n m_guiboard.aboutToDirtyStones();\n \n HexPoint p = HexPoint.get(pairs.get(0).first);\n HexColor color = HexColor.get(pairs.get(0).second);\n m_guiboard.setColor(p, color);\n m_guiboard.setAlphaColor(p, Color.blue);\n \n for (int i=1; i<pairs.size(); i++) {\n \t HexPoint point = HexPoint.get(pairs.get(i).first);\n String value = pairs.get(i).second;\n if (value.equals(\"#\"))\n m_guiboard.setAlphaColor(point, Color.green);\n else\n m_guiboard.setAlphaColor(point, Color.red);\n \n m_guiboard.setText(point, Integer.toString(i));\n \n color = color.otherColor();\n m_guiboard.setColor(point, color);\n \t}\n \tm_guiboard.repaint();\n \n }", "public void linkColor(String str) { setSelected(link_colors, str); }", "public void update()\n\t{\n\t\tGViewMapManager gViewMapManager = this.guiController.getCurrentStyleMapManager();\n\t\tLayout layout = gViewMapManager.getLayout();\n\n\t\tswitch (layout)\n\t\t{\n\t\t\tcase LINEAR:\n\t\t\t\tthis.linear.setSelected(true);\n\t\t\t\tbreak;\n\t\t\tcase CIRCULAR:\n\t\t\t\tthis.circular.setSelected(true);\n\t\t\t\tbreak;\n default:\n break;\n\t\t}\n\t}", "public void cambiarColorCrc() {\r\n R1 = slRCrc.getValue();\r\n G1 = slGCrc.getValue();\r\n B1 = slBCrc.getValue();\r\n jRCr.setText(\"R: \" + R1);\r\n jVCr.setText(\"G: \" + G1);\r\n jACr.setText(\"B: \" + B1);\r\n color = new Color(R1,G1,B1);\r\n btninfCrc.setBackground(color);\r\n btnEditarCrc.setBackground(color);\r\n btnPruebaCrc.setBackground(color);\r\n btnRegresarCrc.setBackground(color);\r\n repaint(); //Metodo que permite que la figura cambie de color en tiempo real\r\n }", "private void buildNamedColors(JPanel panel, ResourceBundle messageBundle) {\n dragDropColorList = new DragDropColorList(swingController, preferences);\r\n\r\n // create current list of colours\r\n JScrollPane scrollPane = new JScrollPane(dragDropColorList);\r\n addGB(panel, scrollPane, 0, 0, 5, 1);\r\n\r\n dragDropColorList.addListSelectionListener(this);\r\n\r\n // build out the CRUD GUI.\r\n addNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.add.label\"));\r\n addNamedColorButton.addActionListener(this);\r\n addNamedColorButton.setEnabled(true);\r\n\r\n removeNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.remove.label\"));\r\n removeNamedColorButton.addActionListener(this);\r\n removeNamedColorButton.setEnabled(false);\r\n\r\n updateNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.edit.label\"));\r\n updateNamedColorButton.addActionListener(this);\r\n updateNamedColorButton.setEnabled(false);\r\n\r\n colorButton = new ColorChooserButton(Color.DARK_GRAY);\r\n colorButton.setEnabled(true);\r\n colorLabelTextField = new JTextField(\"\");\r\n colorLabelTextField.setEnabled(true);\r\n\r\n // add, edit remove controls.\r\n constraints.insets = new Insets(5, 5, 5, 1);\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.weightx = 0.01;\r\n constraints.weighty = 1.0;\r\n addGB(panel, colorButton, 0, 1, 1, 1);\r\n\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.insets = new Insets(5, 1, 5, 1);\r\n constraints.weightx = 1.0;\r\n constraints.fill = GridBagConstraints.BOTH;\r\n addGB(panel, colorLabelTextField, 1, 1, 1, 1);\r\n\r\n constraints.weightx = 0.01;\r\n constraints.fill = GridBagConstraints.NONE;\r\n addGB(panel, addNamedColorButton, 2, 1, 1, 1);\r\n addGB(panel, updateNamedColorButton, 3, 1, 1, 1);\r\n\r\n constraints.insets = new Insets(5, 0, 5, 5);\r\n addGB(panel, removeNamedColorButton, 4, 1, 1, 1);\r\n }", "public static void applyUIColors(Color c) {\n \n \n Color cbr = ColorUtil.slightlyBrighter(c);\n Color cdk = ColorUtil.slightlyDarker(c);\n Color cdkdk = ColorUtil.slightlyDarker(cdk);\n \n UIManager.put(\"TabbedPane.contentAreaColor\", c);\n UIManager.put(\"TabbedPane.selected\", c);\n UIManager.put(\"TabbedPane.selectedBackground\", c);\n UIManager.put(\"TabbedPane.unselectedBackground\", cdk);\n\n UIManager.put(\"TabbedPane.tabAreaBackground\", c);\n UIManager.put(\"TabbedPane.selectHighlight\", cbr);\n UIManager.put(\"TabbedPane.tabsOpaque\", new Boolean(false));\n UIManager.put(\"TabbedPane.borderHightlightColor\", cdk);\n\n UIManager.put(\"TabbedPane.light\", cbr);\n UIManager.put(\"TabbedPane.highlight\", cbr);\n UIManager.put(\"TabbedPane.shadow\", cdk);\n UIManager.put(\"TabbedPane.darkShadow\", cdkdk);\n UIManager.put(\"TabbedPane.focus\", c);\n \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}", "protected abstract void updateColor(final Color col, final boolean fill);", "public void changing_redbar(View v)\n {\n SV.setRed(selected,((SeekBar)v).getProgress());\n }", "private void updateDialog() {\n for (int i = 0; i < NUMBER_OF_CARD_BACKGROUNDS; i++) {\n linearLayoutsBackgrounds[i].setBackgroundResource(i == selectedBackground ? R.drawable.settings_highlight : typedValue.resourceId);\n }\n\n for (int i = 0; i < NUMBER_OF_CARD_BACKGROUNDS; i++) {\n imageViews[i].setImageBitmap(bitmaps.getCardBack(i, selectedBackgroundColor));\n }\n\n for (int i = 0; i < 4; i++) {\n linearLayoutsColors[i].setBackgroundResource(i == selectedBackgroundColor ? R.drawable.settings_highlight : typedValue.resourceId);\n }\n }", "private void setChinaColor(int color) {\n //2 for green, 1 for blue, 3 for red\n if(smdtManager != null)\n { smdtManager.smdtSetExtrnalGpioValue (1,false);\n smdtManager.smdtSetExtrnalGpioValue (2,false);\n smdtManager.smdtSetExtrnalGpioValue (3,false);\n\n smdtManager.smdtSetExtrnalGpioValue (color,true);\n }\n }", "public void setColor(int color);", "public void setColor(int color);", "@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tif (evt.getSource() == jMenuItem8) {\n\t\t\t\t\tSystem.out.println(\"Selected: \"\n\t\t\t\t+ evt.getActionCommand());\n\t\t\t\t\t/*\n\t\t\t\t\t((Echiquier) panelChess\n\t\t\t\t\t.getComponents()[0])\n\t\t\t\t\t.setLightColor(Color.lightGray);\n\t\t\t\t\t((Echiquier) panelChess\n\t\t\t\t\t.getComponents()[0])\n\t\t\t\t\t.setDarkColor(Color.darkGray);\n\t\t\t\t\t((Echiquier) panelChess\n\t\t\t\t\t\t.getComponents()[0]).repaint();\n\t\t\t\t\t((Echiquier) panelChess\n\t\t\t\t\t.getComponents()[0]).revalidate();*/\n\t\t\t\t}\n\t\t\t}", "public void colorInfo() {\n\t\tSystem.out.println(\"Universal Color\");\n\t}", "public void nodeColor(String str) { setSelected(node_colors, str); }", "void seeGreen() {\n\t\tbar.setForeground(Color.GREEN);\n\t}", "private void onColourWheelInput(MouseEvent e)\n {\n int x = (int)e.getX(), y = (int)e.getY();\n try\n {\n setColour(pickerWheel.getImage().getPixelReader().getColor(x, y), true);\n syncSliderInput();\n syncHexInput();\n syncRgbInput();\n } catch (IndexOutOfBoundsException ex){}\n }", "private void InitColorTable(){\n\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (colors.getSelectedIndex() == 1) {\n\t\t\t\t\tthisgame.setAppColor(BLUE);\n\t\t\t\t\t//settingsmenu.dispose();\n\t\t\t\t\tdrawSettingsScreen(thisgame);\n\t\t\t\t\tsettingsmenu.dispose();\n\t\t\t\t}\n\t\t\t\t//Settings Background Color to Red\n\t\t\t\telse if (colors.getSelectedIndex() == 2) {\n\t\t\t\t\tthisgame.setAppColor(RED);\n\t\t\t\t\t//settingsmenu.dispose();\n\t\t\t\t\tdrawSettingsScreen(thisgame);\n\t\t\t\t\tsettingsmenu.dispose();\n\t\t\t\t}\n\t\t\t\t//Setting Background Color to Yellow\n\t\t\t\telse if (colors.getSelectedIndex() == 3) {\n\t\t\t\t\tthisgame.setAppColor(YELLOW);\n\t\t\t\t\t//settingsmenu.dispose();\n\t\t\t\t\tdrawSettingsScreen(thisgame);\n\t\t\t\t\tsettingsmenu.dispose();\n\t\t\t\t}\n\t\t\t\t//Settings Background Color to Green\n\t\t\t\telse if (colors.getSelectedIndex() == 4){\n\t\t\t\t\tthisgame.setAppColor(GREEN);\t\n\t\t\t\t\t//settingsmenu.dispose();\n\t\t\t\t\tdrawSettingsScreen(thisgame);\n\t\t\t\t\tsettingsmenu.dispose();\n\t\t\t\t}\n\t\t\t\t//Settings Background Color to Purple\n\t\t\t\telse if (colors.getSelectedIndex() == 5) {\n\t\t\t\t\tthisgame.setAppColor(PURPLE);\t\n\t\t\t\t\t//settingsmenu.dispose();\n\t\t\t\t\tdrawSettingsScreen(thisgame);\n\t\t\t\t\tsettingsmenu.dispose();\n\t\t\t\t}\n\t\t\t\t//Setting Background Color to Gray\n\t\t\t\telse if (colors.getSelectedIndex() == 6) {\n\t\t\t\t\tthisgame.setAppColor(GRAY);\n\t\t\t\t\t//settingsmenu.dispose();\n\t\t\t\t\tdrawSettingsScreen(thisgame);\n\t\t\t\t\tsettingsmenu.dispose();\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\tString color = chc.getSelectedItem();\r\n\t\tif (color == \"Yellow\") {\r\n\t\t\tfrm.setBackground(Color.yellow);\r\n\t\t} else if (color == \"Orange\") {\r\n\t\t\tfrm.setBackground(Color.orange);\r\n\t\t} else if (color == \"Pink\") {\r\n\t\t\tfrm.setBackground(Color.pink);\r\n\t\t} else if (color == \"Cyan\") {\r\n\t\t\tfrm.setBackground(Color.cyan);\r\n\t\t}\r\n\t\tfrm.setTitle(\"you selected \" + color);\r\n\t}", "public void flavorChosen()\n {\n changeSubtotalTextField();\n }", "public void stateChanged(ChangeEvent evt) {\n if (evt.getSource() == bgColorSlider) {\n int bgVal = bgColorSlider.getValue();\n displayLabel.setBackground( new Color(bgVal,bgVal,bgVal) );\n // NOTE: The background color is a shade of gray,\n // determined by the setting on the slider.\n }\n else {\n float hue = fgColorSlider.getValue()/100.0f;\n displayLabel.setForeground( Color.getHSBColor(hue, 1.0f, 1.0f) );\n // Note: The foreground color ranges through all the colors\n // of the spectrum.\n }\n }", "@Override\n public void respond(ShapePanel sp) {\n sp.changeBackgroundColor(ColouringUtils.openJColorChooser(sp.getBackgroundColor()));\n }", "private void colorPickerHander() {\n\t\tboolean validvalues = true;\n\t\tHBox n0000 = (HBox) uicontrols.getChildren().get(5);\n\t\tTextField t0000 = (TextField) n0000.getChildren().get(1);\n\t\tLabel l0000 = (Label) n0000.getChildren().get(3);\n\t\tString txt = t0000.getText();\n\t\tString[] nums = txt.split(\",\");\n\t\tif (nums.length != 4) {\n\t\t\tvalidvalues = false;\n\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\tGUIerrorout.showAndWait();\n\t\t}\n\t\tif (validvalues) {\n\t\t\tint[] colorvalues = new int[3];\n\t\t\tdouble alphavalue = 1.0;\n\t\t\ttry {\n\t\t\t\tfor(int x = 0; x < 3; x++) {\n\t\t\t\t\tcolorvalues[x] = Integer.parseInt(nums[x]);\n\t\t\t\t}\n\t\t\t\talphavalue = Double.parseDouble(nums[3]);\n\t\t\t} catch(Exception e) {\n\t\t\t\tvalidvalues = false;\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t\tif (alphavalue <= 1.0 && alphavalue >= 0.0 && colorvalues[0] >= 0 && colorvalues[0] < 256 && colorvalues[1] >= 0 && colorvalues[1] < 256 && colorvalues[2] >= 0 && colorvalues[2] < 256){\n\t\t\t\tif (validvalues) {\n\t\t\t\t\tl0000.setTextFill(Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue));\n\t\t\t\t\tusercolors[colorSetterId] = Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t}\n\t}", "private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.rightPanel.setBackground(color);\n this.rightCenPanel.setBackground(color);\n this.rightLowPanel.setBackground(color);\n this.rightTopPanel.setBackground(color);\n this.inputPanel.setBackground(color);\n this.controlPanel.setBackground(color);\n this.setupPanel.setBackground(color);\n this.cameraPanel.setBackground(color);\n this.jPanel4.setBackground(color);\n this.sensSlider.setBackground(color); \n }", "protected void onColorUpdated(int type){\n if(type == ColorScheme.AUTO_COMP_PANEL_BG || type == ColorScheme.AUTO_COMP_PANEL_CORNER) {\n if(mACPanel != null)\n mACPanel.applyColor();\n return;\n }\n invalidate();\n }", "private void actionComboboxChangedImage ()\r\n\t{\r\n\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\tif (isDisplaySamples) { helperDisplayDetectedSamples(); }\r\n\t\t\telse { helperDisplayInputImage(); }\r\n\r\n\t\t\thelperDisplaySamplesCombobox();\r\n\t\t\thelperDisplayResults();\r\n\t\t\thelperDisplayChart(true);\r\n\t\t}\r\n\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent actionevent)\r\n\t\t{\n\t\t\tColor c = (Color) getValue( \"Color\" );\r\n\t\t\tsetBackground( c );\r\n\t\t}", "public void setColors() {\n\t\tif (!this.block.isEditable()) {\n\t\t\tthis.dispNormal = Color.LIGHT_GRAY;\n\t\t\tthis.dispSelected = Color.GRAY;\n\t\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t\t} else {\n\t\t\tthis.dispNormal = Color.white;\n\t\t\tthis.dispSelected = Color.cyan;\n\t\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t\t}\n\t}", "@Override\n public void update() {\n selectedLevel.update();\n }", "@Override\n public void onColorChanged(int selectedColor) {\n Log.d(\"ColorPicker\", \"onColorChanged: 0x\" + Integer.toHexString(selectedColor));\n }", "public void update(){\n \tSystem.out.println(model.toString());\n\t\tnumberofsteps.setText(model.toString());\n\t\tint selectedColor = model.getCurrentSelectedColor();\n\t\t\n\t\t// Update dots\n\t\tfor (int i = 0; i < size; i++){\n\t\t\tfor (int j = 0; j < size; j++){\n\t\t\t\t// Assign captured dots to correct colour\n\t\t\t\tif (model.isCaptured(i, j))\n\t\t\t\t\tdots[i][j].setColor(selectedColor);\n\t\t\t}\n\t\t}\n\t\t\n }", "public void setColor(Color choice) {\n circleColor = choice;\n\n }", "public void setColor(Color newColor)\n {\n this.color = newColor;\n conditionallyRepaint();\n }", "public void setColor( GraphColor newVal ) {\n color = newVal;\n }", "@Override\n\tpublic void changeColor2(Color color) {\n\n\t}", "public void changeColor(double d, Color color, Color color2, boolean bl) {\n block2: {\n void difference;\n void dragging;\n if (dragging == false) break block2;\n if (difference == Double.longBitsToDouble(Double.doubleToLongBits(1.2749872908217061E308) ^ 0x7FE6B20E10D32E17L)) {\n void zeroColor;\n this.setting.setValue(new Color(zeroColor.getRed(), zeroColor.getGreen(), zeroColor.getBlue(), this.setting.getValue().getAlpha()));\n } else {\n void color3;\n this.setting.setValue(new Color(color3.getRed(), color3.getGreen(), color3.getBlue(), this.setting.getValue().getAlpha()));\n }\n }\n }", "void reset() {\n colorSelectedList = new HashSet<>();\n }" ]
[ "0.66485715", "0.65726745", "0.6216254", "0.6198957", "0.6197765", "0.6166562", "0.61648524", "0.61586964", "0.6145272", "0.61219573", "0.611759", "0.6102317", "0.60702974", "0.6030355", "0.6025045", "0.60105175", "0.59905815", "0.5928779", "0.5886501", "0.5865859", "0.58624005", "0.5835744", "0.5816083", "0.577925", "0.5776385", "0.5754902", "0.5743069", "0.57102156", "0.5708529", "0.56969905", "0.56743884", "0.56675076", "0.5654073", "0.5642034", "0.5626627", "0.5626286", "0.5622815", "0.56191915", "0.56066495", "0.56059015", "0.5594627", "0.55728346", "0.5558545", "0.5554425", "0.5545504", "0.554316", "0.55339247", "0.55324894", "0.5531184", "0.55266464", "0.5525969", "0.5520813", "0.55194926", "0.5508945", "0.5480074", "0.5479601", "0.54720026", "0.54715157", "0.54678583", "0.5467436", "0.5465524", "0.5465387", "0.546276", "0.5462024", "0.5459177", "0.54375005", "0.54352766", "0.54314375", "0.54278713", "0.54226804", "0.54200804", "0.5413032", "0.5409709", "0.5409709", "0.5403721", "0.53938156", "0.53884184", "0.5386476", "0.5380048", "0.5370938", "0.53694075", "0.53622913", "0.5359514", "0.5350109", "0.534935", "0.5346685", "0.5346344", "0.5340511", "0.5337282", "0.53359455", "0.53349805", "0.5334212", "0.5330176", "0.53299356", "0.53258806", "0.53247654", "0.5313939", "0.5310905", "0.53095835", "0.5309009" ]
0.6851673
0
push the work off the a worker thread
protected void sortAndFilterAnnotationData() { SortColumn sortType = (SortColumn) sortAction.getValue(COLUMN_PROPERTY); FilterSubTypeColumn filterType = (FilterSubTypeColumn) filterTypeAction.getValue(COLUMN_PROPERTY); FilterAuthorColumn filterAuthor = (FilterAuthorColumn) filterAuthorAction.getValue(COLUMN_PROPERTY); Color filterColor = (Color) filterColorAction.getValue(COLUMN_PROPERTY); FilterVisibilityColumn filterVisibility = (FilterVisibilityColumn) filterVisibilityAction.getValue(COLUMN_PROPERTY); filterDropDownButton.setSelected(!filterAuthor.equals(FilterAuthorColumn.ALL) || !filterType.equals(FilterSubTypeColumn.ALL) || filterColor != null); // setup search pattern Pattern searchPattern = null; String searchTerm = searchTextField.getText(); boolean caseSensitive = caseSensitiveMenutItem.isSelected(); if (searchTerm != null && !searchTerm.isEmpty()) { searchPattern = Pattern.compile(caseSensitive ? searchTerm : searchTerm.toLowerCase()); // todo we can add search flags at a later date, via drop down on search or checkboxes. } markupAnnotationHandlerPanel.sortAndFilterAnnotationData( searchPattern, sortType, filterType, filterAuthor, filterVisibility, filterColor, regexMenuItem.isSelected(), caseSensitive); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void allocateWorker(Work work);", "private void workOnQueue() {\n }", "void allocateDeamonWorker(Work work);", "void done(W worker);", "private void startBackgroundWorker() {\n\t\tworker.execute(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (!buildList.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTestsResultQueueEntry testsResultQueueEntry = buildList.get(0);\n\t\t\t\t\t\t\tTestsResult testsResult = pluginServices.getTestsResult(testsResultQueueEntry.jobId, testsResultQueueEntry.buildId);\n\t\t\t\t\t\t\tOctaneResponse response = pushTestsResult(testsResult);\n\t\t\t\t\t\t\tif (response.getStatus() == HttpStatus.SC_ACCEPTED) {\n\t\t\t\t\t\t\t\tlogger.info(\"tests result push SUCCEED\");\n\t\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t\t} else if (response.getStatus() == HttpStatus.SC_SERVICE_UNAVAILABLE) {\n\t\t\t\t\t\t\t\tlogger.info(\"tests result push FAILED, service unavailable; retrying after a breathe...\");\n\t\t\t\t\t\t\t\tbreathe(SERVICE_UNAVAILABLE_BREATHE_INTERVAL);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// case of any other fatal error\n\t\t\t\t\t\t\t\tlogger.error(\"tests result push FAILED, status \" + response.getStatus() + \"; dropping this item from the queue\");\n\t\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tlogger.error(\"tests result push failed; will retry after \" + SERVICE_UNAVAILABLE_BREATHE_INTERVAL + \"ms\", e);\n\t\t\t\t\t\t\tbreathe(SERVICE_UNAVAILABLE_BREATHE_INTERVAL);\n\t\t\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\t\t\tlogger.error(\"tests result push failed; dropping this item from the queue \", t);\n\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreathe(LIST_EMPTY_INTERVAL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "worker(long workOn) {\n this.workOn = workOn;\n }", "public void doWork() {\n Thread thread = new Thread( hva != null ? hva : this);\n thread.start();\n }", "void returnWorker(WorkerThread worker) {\n synchronized (idle) {\n idle.add(worker);\n }\n }", "@WorkerThread\n public abstract void zzaso();", "public void createWorker(Worker worker){\n }", "public void run() {\n\t\tZMQ.Socket sender = context.socket(ZMQ.PUSH);\n\t\tsender.bind(\"tcp://*:5557\");\n\t\t\n\t\t//this lets you go to another machine to start a worker\n\t\tSystem.out.println(\"Press Enter when the workers are ready: \");\n\t\ttry {\n\t\t\tSystem.in.read();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Messaging sending loop\n\t\tSystem.out.println(\"Sending tasks to workers\\n\");\n\t\twhile (!Thread.interrupted()) {\n\t\t\ttry {\n\t\t\t\t// If there are jobs to be sent, send them\n\t\t\t\t// Synchronize access to workParts structure before accessing it\n\t\t\t\tsynchronized (Master.lock) {\n\t\t\t\t\tif (!workParts.isEmpty()) {\t\n\t\t\t\t\t\tfor (Computation comp : workParts.values()) {\n\t\t\t\t\t\t\t// Submit only unsubmitted jobs\n\t\t\t\t\t\t\tif (!comp.isSubmitted()) {\n\t\t\t\t\t\t\t\tfor (int i=0; i < comp.getNumOfSubmissions(); i++) {\n\t\t\t\t\t\t\t\t\tsendJob(sender, comp);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Set submitted flag\n\t\t\t\t\t\t\t\tcomp.setSubmitted(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Take a short break before reading the job list again\n\t\t\t\tThread.sleep(10);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "protected void internalRun() {\n work();\n }", "public static void AddWorker(ExecutorService worker)\n\t{\n\t\t//TODO something reasonable\n\t}", "private void runWork()\r\n\t{\r\n\t\tRunnable transferPending = new Runnable()\r\n\t\t{\r\n\r\n\t\t\tpublic void run()\r\n\t\t\t{\r\n\t\t\t\ttransferPendingCellData();\r\n\t\t\t\tfireTableDataChanged(); // causes the table to be updated\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\twhile(noStopRequested)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t// refresh the plans vector\r\n\t\t\t\tplans = new java.util.LinkedList(Control.getInstance().getPlanObjects());\r\n\t\t\t\tcreatePendingCellData();\r\n\t\t\t\tSwingUtilities.invokeAndWait(transferPending);\r\n\t\t\t\tThread.sleep(2000L); // the REFRESH rate is set at two seconds\r\n\t\t\t}catch(InvocationTargetException tx)\r\n\t\t\t{\r\n\t\t\t\tlogger.error(\"runWork - InvocationTargetException building cell data: \", tx);\r\n\t\t\t\tstopRequest();\r\n\t\t\t}catch(InterruptedException x)\r\n\t\t\t{\r\n\t\t\t\tThread.currentThread().interrupt();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void myWork() {\n\t\t\n\t}", "public void work() {\n\t}", "public void work() {\n\t}", "@NonNull\n @Override\n public Result doWork() {\n\n Log.d(TAG, \"doWork: \");\n savedata();\n createNotification();\n\n OneTimeWorkRequest oneTimeWorkRequest = new OneTimeWorkRequest.Builder(MyWorkManager.class)\n .setInitialDelay(5, TimeUnit.SECONDS).build();\n WorkManager.getInstance().enqueueUniqueWork(\"aaa\", ExistingWorkPolicy.APPEND, oneTimeWorkRequest);\n\n\n return Result.success();\n\n }", "public void addWork(Work w) {\r\n\t\twork.add(w);\t\t\r\n\t}", "public void go() { // Thread stuff.\n current = 0;\n// final SwingWorker worker = new SwingWorker() {\n// public Object construct() {\n Render render = null;\n// try {\n render = new Render();\n /*} catch (Exception e) {\n System.out.println(\"Thread Error!\");\n e.printStackTrace();\n }\n if (render == null) {\n return null;\n } else {\n return render;\n }\n }\n };\n worker.start();*/\n }", "public void run() {\n jobDescriptor j = null;\n\n while (!exit) {\n try {\n // wait for work\n syncObject.acquire();\n\n // get next job descriptor\n j = jobQueue.poll();\n if (j == null)\n continue;\n\n j.outputObject.started();\n\n if (!executor.executeTask(new MyRunnable(j.codeToBeExecuted, j.outputObject))) {\n j.outputObject.error(\"... cancelled!\");\n }\n } catch (Throwable e) {\n logger.error(e.getMessage());\n }\n }\n }", "private void workerExecute() {\r\n\r\n\t\t_workerStart = System.currentTimeMillis();\r\n\r\n\t\tPhoto[] newPhotos = null;\r\n\r\n\t\tif (_workerStateDir != null) {\r\n\r\n\t\t\t_display.syncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\r\n\t\t\t\t\t// guard against the ui being closed before this runs\r\n\t\t\t\t\tif (_uiContainer.isDisposed()) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tsetStatusMessage(UI.EMPTY_STRING);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// get all image files, sorting is not yet done\r\n\t\t\tfinal File[] files = _workerStateDir.listFiles(_fileFilter);\r\n\r\n\t\t\t// check if interruption occred\r\n\t\t\tif (_workerCancelled) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tint numberOfImages = 0;\r\n\r\n\t\t\tif (files == null) {\r\n\r\n\t\t\t\t// prevent NPE\r\n\r\n\t\t\t\tnewPhotos = new Photo[0];\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// image files are available\r\n\r\n\t\t\t\tnumberOfImages = files.length;\r\n\r\n\t\t\t\tnewPhotos = new Photo[numberOfImages];\r\n\r\n\t\t\t\t// create a photo for each image file\r\n\t\t\t\tfor (int fileIndex = 0; fileIndex < numberOfImages; fileIndex++) {\r\n\r\n\t\t\t\t\tfinal File photoFile = files[fileIndex];\r\n\r\n\t\t\t\t\tPhoto galleryPhoto = PhotoCache.getPhoto(photoFile.getAbsolutePath());\r\n\r\n\t\t\t\t\tif (galleryPhoto == null) {\r\n\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * photo is not found in the photo cache, create a new photo\r\n\t\t\t\t\t\t */\r\n\r\n\t\t\t\t\t\tgalleryPhoto = new Photo(photoFile);\r\n\r\n\t\t\t\t\t\tPhotoCache.setPhoto(galleryPhoto);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tnewPhotos[fileIndex] = galleryPhoto;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * sort photos with currently selected comparator\r\n\t\t\t\t */\r\n\t\t\t\t_currentComparator = getCurrentComparator();\r\n\t\t\t\tArrays.sort(newPhotos, _currentComparator);\r\n\t\t\t}\r\n\r\n\t\t\t// check if the previous files retrival has been interrupted\r\n\t\t\tif (_workerCancelled) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t_photoFolder = _workerStateDir;\r\n\r\n\t\t\tif (_photoFolder != null) {\r\n\t\t\t\t_newGalleryPositionKey = _photoFolder.getAbsolutePath();\r\n\t\t\t}\r\n\r\n\t\t\tworkerExecute_DisplayImages(newPhotos);\r\n\t\t}\r\n\t}", "void runQueue();", "void consumeWorkUnit();", "public void pathwayScan() {\n ScanPathwayBasedAssocSwingWorker worker = new ScanPathwayBasedAssocSwingWorker();\n // buildTask = buildTask.create(buildingThread); //the task is not started yet\n buildTask = RP.create(worker); //the task is not started yet\n buildTask.schedule(0); //start the task\n }", "@Override\npublic void run() {\n perform();\t\n}", "public void run(){\n //logic to execute in a thread \n }", "public void run() {\r\n PooledConnection pConn;\r\n do {\r\n while (needAddConnSize.get() > 0) {\r\n needAddConnSize.decrementAndGet();\r\n if (!waitQueue.isEmpty()) {\r\n try {\r\n if ((pConn = createPooledConn(CONNECTION_USING)) != null)\r\n recycle(pConn);\r\n } catch (Throwable e) {\r\n if (e instanceof SQLException) {\r\n transferException((SQLException) e);\r\n } else {\r\n transferException(new SQLException(e));\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (needAddConnSize.get() == 0 && createConnThreadState.compareAndSet(THREAD_WORKING, THREAD_WAITING))\r\n park(this);\r\n if (createConnThreadState.get() == THREAD_DEAD) break;\r\n } while (true);\r\n }", "@Override\n\tvoid startWork() {\n\t\t\n\t}", "@Override\n\tvoid startWork() {\n\t\t\n\t}", "public void doInWorkerThread_2() {\n doInWorkerThread();\n }", "@Override\n\t\t\tpublic void internalWorked(double work) {\n\t\t\t\t\n\t\t\t}", "public WorkerThread(EventHandler<T> eh, BlockingEventQueue<Object> q) {\n\t\thandler = eh;\n\t\tqueue = q;\n\t}", "public void run () {\n\n String tflag = System.getenv (\"CSW_DONT_USE_THREADS\");\n\n if (tflag == null || tflag.isEmpty()) {\n HGWorker hgw = new HGWorker (hg);\n hgw.execute ();\n }\n else {\n hg.populateDlist ();\n hg.setVisible (true);\n }\n\n }", "public void runInThread() {\n\t\tTaskRunner taskRunner = Dep.get(TaskRunner.class);\n\t\tATask atask = new ATask<Object>(getClass().getSimpleName()) {\n\t\t\t@Override\n\t\t\tprotected Object run() throws Exception {\n\t\t\t\tBuildTask.this.run();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t};\n\t\ttaskRunner.submitIfAbsent(atask);\n\t}", "void work();", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tThread thisThread = currentThread();\n\t\t\ttry {\n\t\t\t\tLog.i(\"con\", \"worked3\");\n\t\t\t\tconnectToServer();\n\t\t\t\tif (connected) {\n\t\t\t\t\tsetUpStreams();\n\t\t\t\t\tsendProfile();\n\t\t\t\t\tLog.i(\"con\", \"worked8\");\n\t\t\t\t\twhile (blinker == thisThread) {\n\t\t\t\t\t\tstartListening();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tLog.e(\"cl\", \"Found IO Exception!: \" + e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tLog.e(\"cl\", \"Found class not found exception!: \" + e);\n\t\t\t}\n\n\t\t}", "@Override\n\tpublic void run() {\n\t\tIterable<Page> allPages = new Pages(this.numPages, this.fileName);\n\t\tfor (Page pg : allPages) {\n\t\t\ttry {\n\t\t\t\tqueue.put(pg);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<this.numThread;i++){\n\t\t\ttry {\n\t\t\t\tqueue.put(new PoisonPill());\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "final void pushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp;\n setSlot(q, s & mask, t);\n storeSp(++s);\n if ((s -= base) == 1)\n pool.signalWork();\n else if (s >= mask)\n growQueue();\n }", "public void run() {\n for (CrawlTask newTask = queue.pop(level); newTask != null; newTask = queue.pop(level))\n /*while (queue.getQueueSize(currentLevel)>0)*/ {\n//\t\t\tObject newTask = queue.pop(currentLevel);\n // Tell the message receiver what we're doing now\n mainCrawler.receiveMessage(newTask, id);\n // Process the newTask\n process(newTask);\n // If there are less threads running than it could, try\n // starting more threads\n if (tc.getMaxThreads() > tc.getRunningThreads()) {\n try {\n tc.startThreads();\n } catch (Exception e) {\n System.err.println(\"[\" + id + \"] \" + e.toString());\n }\n }\n }\n // Notify the ThreadController that we're done\n tc.finished(id);\n }", "private void enterToRunwayQueue() {\n\t\tqueue.insert(this);\n\t}", "public void invokeLater(Runnable task) {\n queue.add(task);\n }", "protected abstract void work();", "@Override\n\t\t\tpublic void worked(int work) {\n\t\t\t\t\n\t\t\t}", "public void run(){\n\t\t\tLog.w(\"Control\",\"Thread Start\");\n\t\t\twhile(true){\n\t\t\t\tif((sdata = queue.Qout())!=null){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tCompressBuffer(encoder, -1, sdata, sdata.length,h264Buff);\n\t\t\t\t\t\tcb.OnEncodeCompleted(++CodedCounter);\n\n\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\tLog.w(\"Error\",e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(10);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\tif(!isRecording&&queue.Qempry()){\n\t\t\t\t\tLog.w(\"Encoder\",\"Thread end\");\n\t\t\t\t\tCompressEnd(encoder);\n\t\t\t\t\tLog.w(\"Control\",\"ended\");\n\t\t\t\t\tflagDone = true;\n\t\t\t\t\tcb.OnFinished();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isDestroy){\n\t\t\t\t\tflagDone = true;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "private static void init(WorkQueue<IMethod> q) {\n q.add(MultiThreadAnalysisUtil.getFakeRoot());\n }", "public Worker<Void> getLoadWorker();", "private synchronized void execute(TestRunnerThread testRunnerThread) {\n boolean hasSpace = false;\n while(!hasSpace) {\n threadLock.lock();\n try {\n hasSpace = currentThreads.size()<capacity;\n }\n finally {\n threadLock.unlock();\n }\n }\n \n //Adding thread to list and executing it\n threadLock.lock();\n try {\n currentThreads.add(testRunnerThread);\n testRunnerThread.setThreadPoolListener(this);\n Thread thread = new Thread(testRunnerThread);\n //System.out.println(\"Starting thread for \"+testRunnerThread.getTestRunner().getTestName());\n thread.start();\n }\n finally {\n threadLock.unlock();\n }\n }", "@Override\r\n\tpublic void internalWorked(double work) {\n\r\n\t}", "synchronized void putWork(PartialSolution sp) {\n\t\ttasks.add(sp);\n\t\t/* anuntam unul dintre workerii care asteptau */\n\t\tthis.notify();\n\n\t}", "public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\tthreads.add(new Thread(pts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void backgroundExecution() {\n // This moves the time consuming operation to a child thread.\n Thread thread=new Thread(null, doBackgroundThreadProcessing, \"Background\");\n thread.start();\n }", "public interface Work {\n \n public static final int UNDETERMINED_AMOUNT = -1;\n \n /**\n * Calling this method causes the work to be performed, similar to run() in Runnable.\n * The implementation of this method must regularly call mayContinue()\n * on its ContinuationArbiter, and terminate ASAP if it returns false.\n *\n * The Work may receive an InterruptedException if it is aborted during execution.\n * is free to throw an InterruptedException if it is interrupted\n * (wich will be ignored), or it may catch the exception and exit nicely.\n */\n public void execute() throws InterruptedException;\n \n /**\n * The WorkManager will call this method to designate a ContinuationArbiter \n * to the Work before it executes the Work. The Work must then use that \n * arbiter regularly during execution to ask if it may continue \n * and to signal progress.\n * The Work must make sure that calls to the arbiter occur only in the execution Thread.\n *\n * @post The Work only calls mayContinue on the designated ContinuationArbiter.\n */\n public void setContinuationArbiter(ContinuationArbiter arbiter);\n \n /**\n * Returns a description of the work (to be shown in the GUI).\n * WorkManager will only call this method on the same thread as execute, \n * so it is not required to make this method threadsafe with regard to execute.\n */\n public String getDescription();\n \n /**\n * Returns the total amount of Work to be done.\n * Note that the WorkManager expects an amount of work has been done\n * on each call of mayContinue().\n * Must return a positive integer value or UNDETERMINED_AMOUNT.\n * WorkManager will only call this method on the same thread as execute, \n * so it is not required to make this method threadsafe with regard to execute.\n */\n public int getTotalAmount();\n \n /**\n * Returns the amount of Work that has been done already.\n * Must return a positive integer value or UNDETERMINED_AMOUNT.\n * WorkManager will only call this method on the same thread as execute, \n * so it is not required to make this method threadsafe with regard to execute.\n */\n public int getAmountDone();\n \n /**\n * Returns whether this work can cope with interrupts when an abort is requested.\n * If false, the Work will not receive interrupts from the WorkManager, and \n * the only effect of an abort will be that mayContinue returns false.\n */\n public boolean isInterruptible();\n \n /**\n * Returns whether this work can be aborted by the user.\n * This is only reflected in the GUI. Programs can always (try to) abort a Work, \n * regardless of the value of the abortable property.\n * Aborting a Work only has effect when the work calls mayContinue()\n * (which will return false) or while it is waiting (it will be interrupted).\n */\n public boolean isAbortable();\n \n /**\n * Returns whether this work can be paused by the user.\n * This is only reflected in the GUI. Programs can always (try to) pause a Work, \n * regardless of the value of the pausable property.\n * Aborting a Work only has effect when the work calls mayContinue(),\n * which will not return until the Work is unpaused.\n */\n public boolean isPausable();\n}", "@Override\n protected void compute() {\n\n if(this.workLoad > 16){\n System.out.println(\"Splitting Workload :: \"+this.workLoad);\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n subTasks.addAll(createSubTasks());\n\n subTasks.forEach(tasks -> {\n tasks.fork();\n });\n }else{\n System.out.println(\"Doing Workload myself :: \"+this.workLoad);\n }\n }", "protected void doWork() {\n\t\ttry {\n\t\t\twhile ((_cli != null) && _cli.hasNext()) {\n\t\t\t\tConversationMessage cm = _cli.next2();\n\t\t\t\t_messages.add(cm);\n\t\t\t}\n\t\t\tThread.sleep(_DOWORK_WAIT);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void run(){\n // first register the producer\n m_DirectoryQueue.registerProducer();\n\n enqueueFiles(f_Root);\n\n //lastly unregister the producer\n m_DirectoryQueue.unregisterProducer();\n }", "@Override\n\tpublic void run() {\t\n\t\tint maxNum = (maxCustomerNumOnline > maxCustomerNumShop) ? maxCustomerNumOnline : maxCustomerNumShop;\n\t\t\n\t\tfor(int i = 0; i < maxNum; i++) {\n\t\t\t// every number of milliseconds, add customer to end of queue \n\t\t\ttry {\t\t\t\n\t\t\t\t// if online queue exists add to it \n\t\t\t\tif (i < maxCustomerNumOnline) {\n\t\t\t\t\tCustomerQueueOutput out = onlineQueue.addToQueue();\n\t\t\t\t\tCoffeeShop.customerList.put(out.getCustomer().getId(), out.getCustomer());\n\t\t\t\t\t\n\t\t\t\t\tlog.updateLog(\"[QueueHandler]: \"+ \"Queue Handler added customer \" + out.getCustomer().getName() + \n\t\t\t\t\t\t\t\" (ID: \" + out.getCustomer().getId() + \") to online queue -> updated size: \" \n\t\t\t\t\t\t\t+ out.getUpdatedSize());\n\t\t\t\t}\n\n\t\t\t\tif (i < maxCustomerNumShop) {\n\t\t\t\t\t// add to in-shop queue \n\t\t\t\t\tCustomerQueueOutput out = shopQueue.addToQueue();\n\t\t\t\t\tCoffeeShop.customerList.put(out.getCustomer().getId(), out.getCustomer());\n\t\t\t\t\t\n\t\t\t\t\tlog.updateLog(\"[QueueHandler]: \"+ \"Queue Handler added customer \" + out.getCustomer().getName() + \n\t\t\t\t\t\t\t\" (ID: \" + out.getCustomer().getId() + \") to in-shop queue -> updated size: \" \n\t\t\t\t\t\t\t+ out.getUpdatedSize());\n\t\t\t\t}\t\t\t\t\t\t\n\n\t\t\t\t// delay for visualization purposes \n\t\t\t\tThread.sleep(onlineQueue.getDelay());\n\t\t\t\t\n\t\t\t// catch exception for calling sleep() function\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlog.updateLog(\"[QueueHandler]: \"+ \"Interuption in queueHandler\");\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\t\t\n\t}", "public synchronized void retThread(WorkerThread w) {\n\t\tfor (int i = 0; i < this.threadPool.size(); ++i) {\n\t\t\tif (this.threadPool.get(i) == w) {\n\t\t\t\tthis.threadPool.get(i).setAvailable(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n\n\t\tQueueObject qO = null;\n\t\tQueueRUNNING = true;\n\t\tint iNext = -1;\n\t\t// if not RUNNING, then check queue\n\t\t// get next object\n\t\t// set to running\n\n\t\twhile (TRUE) {\n\n\t\t\tif (QueueRUNNING) {\n\t\t\t\t//date = new Date();\n\n\t\t\t\t// don't get next job until free in run queue, except for\n\t\t\t\t// standard jobs\n\t\t\t\tif (!bRunning)\n\t\t\t\t\tiNext = Queue.getNextJobToRun();\n\n\t\t\t\tif ((!bRunning) && (iNext != Globals.NOT_FOUND)) {\n\t\t\t\t\tqO = Queue.get(iNext);\n\n\t\t\t\t\tint id = qO.getID();\n\t\t\t\t\tqO.setStart(); // update the object\n\t\t\t\t\tQueue.set(iNext, qO); // update the object in the queue\n\n\t\t\t\t\tif (id == SITEMAP) {\n\t\t\t\t\t\tbRunning = true;\n\t\t\t\t\t\tsiteMap = new SiteMapThread(qO.getJobID());\n\t\t\t\t\t\tsiteMap.start();\n\t\t\t\t\t}\n//\t\t\t\t\tif (id == CHECK_NEW_PHOTOS) {\n//\t\t\t\t\t\tcheck = new CheckDirectoryStructure(qO.getJobID());\n//\t\t\t\t\t\tcheck.start();\n//\t\t\t\t\t}\n//\t\t\t\t\tif (id == RASTERIZE) {\n//\t\t\t\t\t\trasterize = new WatchRastQueue(qO.getJobID());\n//\t\t\t\t\t\trasterize.start();\n//\t\t\t\t\t}\n\n//\t\t\t\t\tif (id == XMLUPDATE) {\n//\t\t\t\t\t\txmlUpdate = new WatchXMLQueue(qO.getJobID());\n//\t\t\t\t\t\txmlUpdate.start();\n//\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tLogging.info(this.getClass().getName(), \"Queue is not running.\");\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tThread.sleep(10000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tLogging.error(e);\n\t\t\t}\n\n\t\t\tif (ABORT_ID != -100) {\n\t\t\t\tQueueObject qTemp = Queue.get(ABORT_ID);\n\t\t\t\tif (qTemp.getJobID() == ABORT_ID) {\n\t\t\t\t\tLogging.info(this.getClass().getName(), \"Aborting: \" + ABORT_ID);\n\t\t\t\t\tLogging.info(this.getClass().getName(), \"Type: \" + qO.getID());\n\t\t\t\t\tswitch (qTemp.getID()) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tsiteMap.Abort();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n//\t\t\t\t\t\tcheck.interrupt();\n//\t\t\t\t\t\tcheck.Abort();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n//\t\t\t\t\t\trasterize.interrupt();\n//\t\t\t\t\t\trasterize.Abort();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n//\t\t\t\t\t\txmlUpdate.interrupt();\n//\t\t\t\t\t\txmlUpdate.Abort();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tABORT_ID = -100; // reset ID\n\t\t\t}\n\n\t\t}\n\n\t}", "private void backgroundThreadProcessing() {\n // [ ... Time consuming operations ... ]\n }", "private UniqueElementSingleThreadWorker()\n {\n _state = ActivityState.INITIALIZING;\n _taskQueue = new UniqueTagQueue<String, Runnable>();\n \n _taskThread = new Thread(\"UniqueElementSingleThreadWorker-\" + COUNTER.incrementAndGet())\n {\n @Override\n public void run()\n {\n while(true)\n {\n try\n {\n Runnable task = _taskQueue.blockingPop();\n if(task == SHUTDOWN_TASK)\n {\n break;\n }\n task.run();\n }\n catch(InterruptedException ex) { }\n //Catch run time exceptions that the runnable might throw so that the thread does not die\n catch(RuntimeException ex)\n {\n ErrorReporter.reportUncaughtException(ex);\n }\n }\n \n _state = ActivityState.SHUT_DOWN;\n }\n };\n }", "public static void attachWorkStealingThreadPool(WorkStealingThreadPool myWorkStealingThreadPool) {\n WSP = myWorkStealingThreadPool;\n }", "@Override\r\n\tpublic void worked(int work) {\n\t}", "public static void startWorker(Context context) {\n if (Application.workHandler != null && Application.worker != null && Application.worker.getState() != Thread.State.TERMINATED) {\n // Clear any instance of tickerRunnable to avoid duplicate\n // and initialize to make sure ticker is running as intended.\n if (Application.workHandler != null) {\n Application.workHandler.removeCallbacks(Application.tickerRunnable);\n }\n Application.tickerRunnable = null;\n Application.tickerRunnable = new TickerRunnable(context, Application.workHandler);\n Application.tickerRunnable.tick();\n return;\n }\n Application.worker = new WorkerThread();\n Application.worker.start();\n\n Application.workHandler = Application.worker.getHandler();\n\n Application.tickerRunnable = new TickerRunnable(context, Application.workHandler);\n Application.tickerRunnable.tick();\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}", "private void assignWork(String worker, String task) {\n System.out.println(\"assign work and create node \" + worker + \"/task\");\n zk.setData(worker, task.getBytes(), -1,\n (rc, path, ctx, data) -> {\n System.out.println(KeeperException.Code.get(rc));\n logger.info(\"DISTMASTER: task \" + task + \" has been created\");\n }, null);\n }", "public void run() {\n\t\t\t\twhile (queue.size() > 0) {\n\t\t\t\t\tJobQueue urlList = queue.poll();\n\t\t\t\t\tdoRequests(urlList);\n\t\t\t\t}\n\t\t\t}", "BackgroundWorker (String page, String name, String type, Context context) {this.page=page; this.name=name; this.type=type; this.context=context; flag=2;}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tproduce();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void doWork() {\n\t\tmSource.doWork();\n\t}", "@Override\n public void run() {\n task.run();\n }", "protected abstract long doWork();", "protected abstract void process(WorkerThread current_, double now_);", "public void run() {\r\n\t\t\r\n\t\tlong lastTime = new Date().getTime();\r\n\t\t\r\n\t\twhile (true)\r\n\t\t{\r\n\t\t\tlong ct = new Date().getTime();\r\n\t\t\tif (ct-lastTime < 50)\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//thread.slee(10-ct+lastTime);\r\n\t\t\t\t\tThread.sleep(50);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\tlastTime = new Date().getTime();\r\n\t\t\t\r\n\t\t\t//System.out.println(lastTime);\r\n\t\t\t\r\n\t\t\tif (working /*|| drawArea == null || drawArea.getGraphicsConfiguration() == null*/)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\tworker = new MySwingWorker(tempImage,this);\r\n\t\t \tworker.execute();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tthis.threadName = Thread.currentThread().getName();\n\t\t\n\t\tsynchronized(currentWorkLock)\n\t\t{\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\twhile(currentWork == null)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tcurrentWorkLock.wait();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tidle = false;\n\t\t\t\t\n\t\t\t\tfinishWork();\n\t\t\t\t\n\t\t\t\tcurrentWork = null;\n\t\t\t\tidle = true;\n\t\t\t\t\n\t\t\t\tmanager.signalDone(this);\n\t\t\t}\n\t\t}\n\t}", "private void performSendToStagingArea() {\n MsbColumns columns = MsbClient.getColumnInfo();\n\n final Integer msbID = new Integer((String) sorter.getValueAt(\n selRow, columns.getIndexForKey(\"msbid\")));\n final String checksum = (String) sorter.getValueAt(\n selRow, columns.getIndexForKey(\"checksum\"));\n final String projectid = (String) sorter.getValueAt(\n selRow, columns.getIndexForKey(\"projectid\"));\n\n // Perform SpQueuedMap check and other Swing actions before\n // launching the SwingWorker thread.\n if (remaining.isSelected()) {\n String time =\n SpQueuedMap.getSpQueuedMap().containsMsbChecksum(checksum);\n\n if (time != null) {\n int rtn = JOptionPane.showOptionDialog(null,\n \"This observation was sent to the queue \"\n + time + \".\\n Continue ?\",\n \"Duplicate execution warning\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.WARNING_MESSAGE, null, null,\n null);\n\n if (rtn == JOptionPane.NO_OPTION) {\n return;\n }\n }\n }\n\n logger.info(\"Fetching MSB \" + msbID + \" INFO is: \" + projectid +\n \", \" + checksum);\n\n InfoPanel.logoPanel.start();\n om.enableList(false);\n\n (new SwingWorker<SpItem, Void>() {\n public SpItem doInBackground() {\n return localQuerytool.fetchMSB(msbID);\n }\n\n // Runs on the event-dispatching thread.\n protected void done() {\n // Restore GUI state: we want to do this on the\n // event-dispatching thread regardless of whether the worker\n // succeeded or not.\n om.enableList(true);\n InfoPanel.logoPanel.stop();\n\n try {\n SpItem item = get();\n\n // Perform the following actions of the worker was\n // successful ('get' didn't raise an exception).\n DeferredProgramList.clearSelection();\n om.addNewTree(item);\n buildStagingPanel();\n }\n catch (InterruptedException e) {\n logger.error(\"Execution thread interrupted\");\n }\n catch (ExecutionException e) {\n logger.error(\"Error retriving MSB: \" + e);\n String why = null;\n Throwable cause = e.getCause();\n if (cause != null) {\n why = cause.toString();\n }\n else {\n why = e.toString();\n }\n\n // exceptions are generally Null Pointers or Number Format\n // Exceptions\n logger.debug(why);\n JOptionPane.showMessageDialog(\n null, why, \"Could not fetch MSB\",\n JOptionPane.ERROR_MESSAGE);\n }\n catch (Exception e) {\n // Retaining this catch-all block as one was present in\n // the previous version of this code. Exceptions\n // raised by 'get' should be caught above -- this block\n // is in case the in-QT handling of the MSB fails.\n // (Not sure if that can happen or not.)\n logger.error(\"Error processing retrieved MSB: \" + e);\n JOptionPane.showMessageDialog(\n null, e.toString(), \"Could not process fetched MSB\",\n JOptionPane.ERROR_MESSAGE);\n }\n }\n }).execute();\n }", "private void run() throws InterruptedException, IOException {\n endpoint.getWcEvents().take();\n\n //process received data\n processRecv();\n\n for (int i=0; i < 1000000; i++) {\n //change data in remote memory\n writeData(i);\n\n //wait for writing remote memory to complete\n endpoint.getWcEvents().take();\n }\n System.out.println(\"ClientWrite::finished!\");\n }", "@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.put(i++);\r\n\t\t}\r\n\t}", "public SingleWorkerPoolExecutor() {\n this.worker = new Worker(taskQueue);\n\n // Nothing bad as worker is blocked by an emptiness of a task\n // queue. Adding to this task queue will be possible after worker pool\n // finishes construction\n worker.start();\n }", "@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}", "@Override\n public void run() {\n while (queue.num < 100) {\n try {\n queue.producer();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\twhile(runFlg){\n\t\t\t\ttry{\n\t\t\t\t\t\n\t\t\t\t\twhile(mQueue.getSize() >0 ){\n\t\t\t\t\t\tbyte[] data = getData();\n\t\t\t\t\t\tmOut.write(data);\n\t\t\t\t\t}\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\tLog.e(TAG,e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n public void run() {\n numStarted ++;\n\n while (true) {\n try {\n // pull a link from the link queue\n URL url = new URL(SharedLinkQueue.getNextLink());\n\n // download the HTML page text at the given URL\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n BufferedReader download = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\n // store the HTML page text on the page queue as a string\n String pageText = \"\";\n String inputLine;\n while ((inputLine = download.readLine()) != null) {\n pageText += inputLine;\n }\n SharedPageQueue.addPage(pageText);\n\n download.close();\n } catch (MalformedURLException e) {\n errorCount ++;\n System.out.println(\"MalformedURLException: \" + e.getMessage());\n } catch (IOException e) {\n errorCount ++;\n System.out.println(\"IOException: \" + e.getMessage());\n } catch (InterruptedException e) {\n errorCount ++;\n System.out.println(\"InterruptedException: \" + e.getMessage());\n }\n }\n }", "public void computationCompleted(ComputationThread thread, WorkSection work);", "public void addNotify() {\n\t\tsuper.addNotify();\n\t\tif (thread == null) {\n\t\t\tthread = new Thread(this);\n\t\t\tthread.start();\n\t\t}\n\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}", "@Override\n\tpublic void run() {\n\t\tif (queue.size() > 0) {\n\t\t\tITask task = queue.poll();\n\t\t\tpool.execute(task);\n\t\t} else {\n\t\t\tqueue.setTaskRunning(false);\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\tpublic void run() {\n long throughputMeasurementStartTime = System.currentTimeMillis();\n\n byte[] reply;\n int reqId;\n int req = 0;\n\n Storage st = new Storage(nTXs);\n\n System.out.println(\"Executing experiment for \" + nTXs + \" ops\");\n\n for (int i = 0; i < nTXs; i++, req++) {\n long last_send_instant = System.nanoTime();\n if (dos) {\n reqId = proxy.generateRequestId((readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n proxy.TOMulticast(request, reqId, (readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n\n } else {\n \tif(readOnly) {\n \t\treply = proxy.invokeUnordered(request);\n \t} else {\n \t\treply = proxy.invokeOrdered(request);\n \t}\n }\n st.store(System.nanoTime() - last_send_instant);\n\n if (timeout > 0) {\n //sleeps timeout ms before sending next request\n try {\n\t\t\t\t\t\tThread.sleep(timeout);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n } \n\n } \n writeReportJSON(throughputMeasurementStartTime, st); \n }", "@Override\n public void run() {\n while(isAlive.get()) {\n Runnable task = queue.poll();\n if (task != null) {\n task.run();\n }\n }\n Log.d(TAG, \"Simple worker terminated\"); // method quit() called\n }", "public void run() {\n\t\t\t\t\t\t}", "BackgroundWorker (String page, int id, Context context) {this.page=page; this.id=id; this.context=context; flag=3;}", "@Override\n\tpublic void run() {\n\t\twhile (running) {\n\t\t\tif (debug)\n\t\t\t\tSystem.out.println(\"WORKER THREAD \" + threadID + \" Waiting for new task\");\n\n\t\t\t// get the next task from the blocking queue\n\t\t\tSelectionKey newTask = manager.nextTask();\n\n\t\t\t// if(debug)\n\t\t\t// System.out.println(\"Worker Thread \" + threadID + \" received new task\");\n\n\t\t\tif (newTask != null) {\n\t\t\t\tif (debug)\n\t\t\t\t\tSystem.out.println(\"Worker Thread \" + threadID + \" received new task: \" + newTask.toString());\n\t\t\t\tSocketChannel channel = (SocketChannel) newTask.channel();\n\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(8000);\n\t\t\t\ttry {\n\t\t\t\t\tchannel.read(buffer);\n\t\t\t\t\tbyte[] packet = buffer.array();\n\t\t\t\t\tif (debug)\n\t\t\t\t\t\tSystem.out.println(\"Worker Thread \" + threadID + \" received new message: \" + packet.toString());\n\t\t\t\t\tMessage message = Serializer.deserializeMessage(packet);\n\t\t\t\t\tif (debug)\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Worker Thread \" + threadID + \" received new message: \" + message.toString());\n\t\t\t\t\tString messageCode = message.getType();\n\t\t\t\t\tbuffer.flip();\n\t\t\t\t\tbuffer.clear();\n\t\t\t\t\tnewTask.interestOps(SelectionKey.OP_WRITE);\n\t\t\t\t\tswitch (messageCode) {\n\t\t\t\t\t/**\n\t\t\t\t\t * This switch statement should be the only thing that has to get edited from\n\t\t\t\t\t * here on out. When we want to add functionality, it should always either be\n\t\t\t\t\t * adding a new case, if a new wireform is needed, or by altering code in the\n\t\t\t\t\t * case of the message being responded to.\n\t\t\t\t\t */\n\t\t\t\t\tcase (USER_REGISTRATION): {\n\t\t\t\t\t\tUserRegistration registrationMessage = (UserRegistration) message;\n\t\t\t\t\t\tString username = registrationMessage.getUsername();\n\t\t\t\t\t\tString password = registrationMessage.getPasswordHash();\n\n\t\t\t\t\t\tboolean created = sql.addUser(new Account(username, password));\n\t\t\t\t\t\tMessage outgoing = null;\n\n\t\t\t\t\t\tif (created) {\n\t\t\t\t\t\t\toutgoing = new UserRegistrationResponse(true, \"User was created successfully\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\toutgoing = new UserRegistrationResponse(false,\n\t\t\t\t\t\t\t\t\t\"Most likely a duplicated username, could also be a failed SQL connection\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsend(outgoing, buffer, channel, debug);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase (USER_LOGON): {\n\t\t\t\t\t\tUserLogon logonMessage = (UserLogon) message;\n\n\t\t\t\t\t\tString username = logonMessage.getUsername();\n\t\t\t\t\t\tString password = logonMessage.getPasswordHash();\n\t\t\t\t\t\t// Returns true if the user is validated\n\t\t\t\t\t\tboolean loggedIn = sql.checkLogin(username, password);\n\t\t\t\t\t\tMessage outgoing = null;\n\n\t\t\t\t\t\tif (loggedIn) {\n\t\t\t\t\t\t\tAccount acc = sql.getAccount(username, password);\n\t\t\t\t\t\t\toutgoing = new UserLogonResponse(true, \"User was verified and logged in\", acc);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\toutgoing = new UserLogonResponse(false, \"User was not Verified.\", null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Outgoing is the reply to the client program\n\t\t\t\t\t\tsend(outgoing, buffer, channel, debug);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase (RECORDS_REQUEST): {\n\t\t\t\t\t\tRecordsRequest requestMessage = (RecordsRequest) message;\n\t\t\t\t\t\tString requestUser = requestMessage.getUsername();\n\n\t\t\t\t\t\t// done, but relies on methods that are themselves TODO\n\t\t\t\t\t\tAccount update = sql.getAccount(requestUser);\n\t\t\t\t\t\tSystem.out.println(\"ACC: \" + update.getUsername());\n\t\t\t\t\t\tList<Game> games = sql.getGames(update);\n\n\t\t\t\t\t\tfor (Game g : games) {\n\t\t\t\t\t\t\tSystem.out.println(g.toString());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tsend(new RecordsRequestResponse(games, update), buffer, channel, debug);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase (CREATE_INVITATION): {\n\t\t\t\t\t\tCreateInvitation inviteMessage = (CreateInvitation) message;\n\t\t\t\t\t\tString inviter = inviteMessage.getInviter();\n\t\t\t\t\t\tString invitee = inviteMessage.getInvitee();\n\n\t\t\t\t\t\tAccount inviteeAccount = sql.getAccount(invitee);\n\t\t\t\t\t\tinviteeAccount.addInvite(new Invitation(inviter, invitee));\n\t\t\t\t\t\tsql.setAccount(inviteeAccount);\n\n\t\t\t\t\t\tsend(new CreateInvitationResponse(true, \"Invitation Sent\"), buffer, channel, debug);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase (RESPOND_TO_INVITATION): {\n\t\t\t\t\t\tRespondToInvitation respondMessage = (RespondToInvitation) message;\n\t\t\t\t\t\tInvitation acceptedInvite = respondMessage.getInvitation();\n\t\t\t\t\t\tString recipient = acceptedInvite.getRecipient();\n\t\t\t\t\t\tString sender = acceptedInvite.getSender();\n\t\t\t\t\t\tAccount updateRecipient = sql.getAccount(recipient);\n\t\t\t\t\t\tAccount updateSender = sql.getAccount(sender);\n\n\t\t\t\t\t\tif (updateRecipient.getInvites().remove(acceptedInvite)) {\n\t\t\t\t\t\t\tSystem.out.println(\"----------------------------- Removed invite from account: \" + updateRecipient.getUsername());\n\t\t\t\t\t\t\tsql.setAccount(updateRecipient);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (respondMessage.isAccept()) {\n\t\t\t\t\t\t\tPlayer attacker = new Player(updateSender, \"black\");\n\t\t\t\t\t\t\tPlayer defender = new Player(updateRecipient, \"white\");\n\n\t\t\t\t\t\t\tupdateSender.addPlayer(attacker);\n\t\t\t\t\t\t\tupdateRecipient.addPlayer(defender);\n\n\t\t\t\t\t\t\tsql.setAccount(updateSender);\n\t\t\t\t\t\t\tsql.setAccount(updateRecipient);\n\n\t\t\t\t\t\t\tGame g1 = new Game(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\").toString(), attacker,\n\t\t\t\t\t\t\t\t\tdefender);\n\t\t\t\t\t\t\tsql.addGame(sender, recipient, g1);\n\n\t\t\t\t\t\t\tsend(new RespondToInvitationResponse(true, \"Game Added to Account\"), buffer, channel,\n\t\t\t\t\t\t\t\t\tdebug);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsend(new RespondToInvitationResponse(true, \"Invited Rejected\"), buffer, channel, debug);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase (SUBMIT_MOVE): {\n\t\t\t\t\t\tSubmitMove moveMessage = (SubmitMove) message;\n\t\t\t\t\t\tGame gameUpdate = moveMessage.getGameUpdate();\n\t\t\t\t\t\tGame oldGame = sql.getGame(gameUpdate.getAttacker(), gameUpdate.getDefender());\n\n\t\t\t\t\t\tGameResult status;\n\t\t\t\t\t\tif(gameUpdate.getResult() ==GameResult.CONTINUE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tgameUpdate = rules.processCaptures(oldGame, gameUpdate);\n\t\t\t\t\t\t\tstatus = rules.gameHasEnded(gameUpdate);\n\t\t\t\t\t\t\tgameUpdate.setResult(status);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tstatus = gameUpdate.getResult();\n\t\t\t\t\t\tif (status != GameResult.CONTINUE) {\n\t\t\t\t\t\t\tgameUpdate.setEndTime(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\").toString());\n\t\t\t\t\t\t\tAccount defender = gameUpdate.getDefender().getAccount();\n\t\t\t\t\t\t\tAccount attacker = gameUpdate.getAttacker().getAccount();\n\t\t\t\t\t\t\tif (status == GameResult.WHITE) {\n\t\t\t\t\t\t\t\tattacker.getStats().addLoss();\n\t\t\t\t\t\t\t\tdefender.getStats().addWin();\n\t\t\t\t\t\t\t} else if (status == GameResult.BLACK) {\n\t\t\t\t\t\t\t\tattacker.getStats().addWin();\n\t\t\t\t\t\t\t\tdefender.getStats().addLoss();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tattacker.getStats().addLoss();\n\t\t\t\t\t\t\t\tdefender.getStats().addLoss();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsql.setAccount(defender);\n\t\t\t\t\t\t\tsql.setAccount(attacker);\n\t\t\t\t\t\t\tsql.deleteGame(attacker, defender);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\tgameUpdate.changeTurns();\n\t\t\t\t\t\tsql.updateGame(gameUpdate.getAttacker(), gameUpdate.getDefender(), gameUpdate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsend(new SubmitMoveResponse(true, \"Move Submitted\"), buffer, channel, debug);\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tbuffer.flip();\n\t\t\t\t\tbuffer.clear();\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tnewTask.cancel();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchannel.close();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnewTask.interestOps(SelectionKey.OP_READ);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"THREAD \" + threadID + \" terminating\");\n\t}", "@Override\n\tpublic void run() {\n\t\tL = new Listener(this.port);\n\t\tthis.listener = new Thread(L);\n\t\tthis.listener.start();\n\n\t\twhile (true) {\n\t\t\twhile (this.workQueue.isEmpty()) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(10);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tClientRequest req = this.workQueue.poll();\n\t\t\tif (req.getType() == ClientRequestType.START) {\n\t\t\t\tsynchronized (nextWorkerLock) {\n\t\t\t\t\tthis.workers[this.nextWorker++].sendToWorker(req);\n\t\t\t\t\tthis.nextWorker %= this.workers.length;\n\t\t\t\t}\n\t\t\t} else if (req.getType() == ClientRequestType.KILLALL) {\n\t\t\t\tfor (WorkerInfo wi : workers) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\twi.sendControlMessage(new ProcessControlMessage(0,\n\t\t\t\t\t\t\t\tProcessControlCommand.KILLALL, \"\"));\n\t\t\t\t\t\tSystem.out.println(\"Killed one\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tSystem.exit(0);\n\t\t\t} else {\n\t\t\t\tpidsToWorkers.get(req.getProcessId()).sendToWorker(req);\n\t\t\t}\n\t\t}\n\t}", "private synchronized void join() {\n\t\ttry {\n\t\t\tlog.debug(\"Waiting for work...\");\n\n\t\t\twhile (pending > 0) {\n\t\t\t\t// if we put a wait() here... where does the notifyAll() go?\n\t\t\t\tthis.wait();\n\t\t\t\tlog.debug(\"Woke up with pending at {}.\", pending);\n\t\t\t}\n\n\t\t\tlog.debug(\"Work finished.\");\n\t\t}\n\t\tcatch (InterruptedException ex) {\n\t\t\tlog.debug(ex.getMessage(), ex);\n\t\t}\n\t}", "static void enqueueWork(Context context, Intent work) {\n enqueueWork(context, ParkSensorBackgroundService.class, JOB_ID, work);\n if (spiFileHandler == -1) {\n spiFileHandler = initSPIDevice();\n }\n if (spiFileHandler != -1) {\n Log.i(\"BackgroundService\", \"Initialized. \" + spiFileHandler);\n }\n }", "protected void onQueued() {}", "Value worker(String main, String address);", "private void run() {\n //Create the store object\n Store store = new Store();\n\n //Populate the array of people\n for (int i = 0; i < 20; i++) {\n people.add(new Viewer(store));\n if (i < 6) { //Add buyers\n people.add(new Buyer(store));\n }\n }\n\n //Make a thread pool according to the size of people\n this.threadPoolExecutor =\n (ThreadPoolExecutor) Executors.newFixedThreadPool(people.size());\n\n //Start the life of every person\n for (Person person : this.people) {\n threadPoolExecutor.execute(person);\n }\n }", "public final void execute() {\n thread = Thread.currentThread();\n while (!queue.isEmpty()) {\n if (currentThreads.get() < maxThreads) {\n queue.remove(0).start();\n currentThreads.incrementAndGet();\n } else {\n try {\n Thread.sleep(Long.MAX_VALUE);\n } catch (InterruptedException ex) {}\n }\n }\n while (currentThreads.get() > 0) {\n try {\n Thread.sleep(Long.MAX_VALUE);\n } catch (InterruptedException ex) {}\n }\n }", "public void run() {\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = Msg_SetProgress;\n\t\t\t\tmHandler.sendMessage(msg);\n\t\t\t}", "protected void addWorker(IWorkerConfiguration workerCfg) {\n if (!workerCfg.activate())\n return;\n \n log.debug(\"Adding new worker to the pool\");\n \n try {\n Class taskClass = Class.forName(workerCfg.getWorkerTask());\n\n int numWorker = (workerCfg.getConcurrentExecutions() == 0 ? 1 : workerCfg.getConcurrentExecutions());\n for(int i = 0; i < numWorker; i++) {\n RunningWorkerInstance rWorker = new RunningWorkerInstance();\n rWorker.workerName = workerCfg.getName();\n rWorker.task = (IWorkerTask) taskClass.newInstance();\n rWorker.task.setName(workerCfg.getName() + \":\" + i);\n rWorker.task.setParameters(workerCfg.getTaskParameters());\n\n Interval interval = workerCfg.getInterval();\n if (interval != null) \n rWorker.runningWorker = pool.scheduleWithFixedDelay(rWorker.task, 0, interval.getLength(), interval.getUnit());\n else\n rWorker.runningWorker = pool.submit(rWorker.task);\n\n workers.add(rWorker);\n \n log.debug(\"Added new worker instance [\" + workerCfg.getName() + \"] to the pool\");\n }\n } catch (ClassNotFoundException cnfe) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] could not be found\");\n } catch (InstantiationException ie) { \n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] could not be created\");\n } catch (IllegalAccessException iae) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] could not be created\");\n } catch (ClassCastException cce) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task class [\" + workerCfg.getWorkerTask() + \"] is not a WorkerTask object\");\n } catch (TaskConfigurationException tce) {\n log.error(\"Unable to add worker \" + workerCfg.getName() + \" because task could not be configured correctly [\" + tce.getMessage() + \"]\");\n }\n }" ]
[ "0.70142895", "0.6962669", "0.65668297", "0.6554931", "0.6537636", "0.6513192", "0.6484341", "0.6472206", "0.6436022", "0.6425922", "0.6345506", "0.6269397", "0.6196936", "0.61855364", "0.6176427", "0.61705124", "0.61705124", "0.61467516", "0.61454594", "0.60924745", "0.60892195", "0.6056722", "0.6004509", "0.5999081", "0.5995796", "0.59471005", "0.5929006", "0.59271973", "0.59111744", "0.59111744", "0.5899104", "0.5877546", "0.58745766", "0.58668596", "0.5850749", "0.5849573", "0.584182", "0.5806294", "0.5805422", "0.58042973", "0.5742519", "0.5704886", "0.5700451", "0.56966656", "0.56965405", "0.56846434", "0.56657696", "0.5658815", "0.565102", "0.56422925", "0.5638468", "0.5637633", "0.56294715", "0.5616947", "0.56134695", "0.56112754", "0.56091624", "0.5603042", "0.5600628", "0.55978584", "0.5592182", "0.55883145", "0.5582219", "0.5568471", "0.55524385", "0.5546585", "0.55464596", "0.55453324", "0.55431783", "0.5540531", "0.55331755", "0.5529934", "0.55298316", "0.5527504", "0.5514055", "0.5502794", "0.55015177", "0.5491166", "0.5489786", "0.54789853", "0.5465455", "0.5460891", "0.5459071", "0.54587007", "0.5457433", "0.5453077", "0.54529387", "0.54492056", "0.5447742", "0.54456884", "0.5442908", "0.54419714", "0.54390144", "0.5427889", "0.5425603", "0.5424695", "0.54209405", "0.54155654", "0.5414793", "0.5413068", "0.54113585" ]
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() { etiqueta1 = new javax.swing.JLabel(); funcion = new javax.swing.JTextField(); almacenar = new javax.swing.JButton(); limiteBoton = new javax.swing.JButton(); derivadaBoton = new javax.swing.JButton(); integralBoton = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setBackground(new java.awt.Color(51, 51, 255)); setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR)); setForeground(java.awt.Color.blue); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosed(java.awt.event.WindowEvent evt) { formWindowClosed(evt); } }); etiqueta1.setFont(new java.awt.Font("Tahoma", 2, 24)); // NOI18N etiqueta1.setText("Resolución de una Función"); funcion.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N funcion.setText("f(x)="); funcion.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { funcionActionPerformed(evt); } }); almacenar.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N almacenar.setText("Guardar Función"); almacenar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { almacenarActionPerformed(evt); } }); limiteBoton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N limiteBoton.setText("Límite"); limiteBoton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { limiteBotonActionPerformed(evt); } }); derivadaBoton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N derivadaBoton.setText("Derivada"); derivadaBoton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { derivadaBotonActionPerformed(evt); } }); integralBoton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N integralBoton.setText("Integral"); integralBoton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { integralBotonActionPerformed(evt); } }); jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N jLabel1.setText("Función"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(38, 38, 38) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(funcion, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE) .addComponent(almacenar))) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(limiteBoton) .addGap(47, 47, 47) .addComponent(derivadaBoton) .addGap(43, 43, 43) .addComponent(integralBoton) .addGap(85, 85, 85)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(etiqueta1, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(97, 97, 97)))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(20, 20, 20) .addComponent(etiqueta1) .addGap(18, 18, 18) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(funcion, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(almacenar)) .addGap(36, 36, 36) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(limiteBoton) .addComponent(derivadaBoton) .addComponent(integralBoton)) .addContainerGap(21, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public 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 UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7321233", "0.72922724", "0.72922724", "0.72922724", "0.7287021", "0.7250113", "0.7214902", "0.7209478", "0.71973455", "0.71915394", "0.71855843", "0.71602577", "0.7149222", "0.70949143", "0.70813066", "0.70579875", "0.6988272", "0.6978623", "0.6956488", "0.6954857", "0.69464177", "0.6943629", "0.69367987", "0.6933018", "0.6929331", "0.69254756", "0.6925112", "0.6913102", "0.69126385", "0.6894097", "0.6893964", "0.68917936", "0.6891495", "0.68895847", "0.68845505", "0.688321", "0.6882532", "0.6878455", "0.68770224", "0.68752515", "0.6872487", "0.6861657", "0.6857395", "0.68569964", "0.6856607", "0.68555", "0.6854448", "0.6854003", "0.6854003", "0.68440473", "0.6838224", "0.6837637", "0.6829588", "0.6829244", "0.68277496", "0.68251204", "0.68236995", "0.68180907", "0.6817601", "0.681135", "0.680981", "0.680977", "0.68097097", "0.6807759", "0.6803703", "0.6795666", "0.67947936", "0.6793619", "0.6790796", "0.67902565", "0.67899716", "0.67888206", "0.67829174", "0.67670804", "0.6766693", "0.67661726", "0.6757112", "0.67564726", "0.67534983", "0.6751943", "0.67434925", "0.6739915", "0.6737868", "0.6737343", "0.673493", "0.6728943", "0.67285377", "0.672136", "0.6716568", "0.671613", "0.67153496", "0.67092025", "0.67079633", "0.6704689", "0.67022705", "0.6701755", "0.6700168", "0.66992295", "0.669491", "0.6692837", "0.6690047" ]
0.0
-1
//GENEND:initComponents Desactiva todos los botones de funciones matematicas
private void deActivateButtons(){ limiteBoton.setEnabled(false); derivadaBoton.setEnabled(false); integralBoton.setEnabled(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Botones() {\n initComponents();\n }", "public void iniciarComponentes(){\n\n crearPanel();\n colocarBotones();\n \n }", "public void inicializarBotones() {\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'login'\n\t\tthis.controladorLogin = new ControladorLogin(vista, modelo);\n\t\tthis.controladorLogin.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'registro'\n\t\tthis.controladorRegistro = new ControladorRegistro(vista, modelo);\n\t\tthis.controladorRegistro.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'bienvenida'\n\t\tthis.controladorBienvenida = new ControladorBienvenida(vista, modelo);\n\t\tthis.controladorBienvenida.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'sel_billete'\n\t\tthis.controladorBillete = new ControladorBillete(vista, modelo);\n\t\tthis.controladorBillete.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'sel_fecha'\n\t\tthis.controladorFecha = new ControladorFecha(vista, modelo);\n\t\tthis.controladorFecha.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'detalles_compra'\n\t\tthis.controladorDetalles = new ControladorDetalles(vista, modelo);\n\t\tthis.controladorDetalles.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'pago'\n\t\tthis.controladorPago = new ControladorPago(vista, modelo);\n\t\tthis.controladorPago.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel \"fin_pago\"\n\t\tthis.controladorFinPago = new ControladorFinPago(vista, modelo);\n\t\tthis.controladorFinPago.addListeners();\n\t}", "public meseros() {\n initComponents();\n }", "@Override\r\n\tprotected void onGuiEvent(GuiEvent arg0) {\n\t\taddBehaviour(new SendMessage());\r\n\r\n\t}", "public Principal() {\n initComponents();\n JButton botonesH[] = {cmdCrear, cmdLimpiar};\n JButton botonesD[] = {cmdManual, cmdAutomatico, cmdOperaciones};\n\n Helper.habilitarBotones(botonesH);\n Helper.deshabilitarBotones(botonesD);\n\n txtFilas.setEditable(true);\n txtColumnas.setEditable(true);\n }", "private GUIReminder() {\n\n initComponents();\n initOthers();\n\n }", "private void initComponents() {\r\n String textoBotones[]={\"Listado Almacen\", \r\n \"Listado por producto\",\"Pedidos por almacén\"};\r\n \r\n botones=new JButton[textoBotones.length];\r\n //Utilizo todo el fondo del JFrame\r\n contenedor=(ImagePanel) this.getContentPane();\r\n //Inicializo un layout\r\n contenedor.setLayout(new GridLayout(textoBotones.length, 1, 5, 5)); \r\n //Inicializo los objetos\r\n for (int x=0;x<textoBotones.length;x++) {\r\n botones[x]=new JButton();\r\n botones[x].setText(textoBotones[x]);\r\n botones[x].setActionCommand(Integer.toString(x));\r\n botones[x].addActionListener(this); \r\n contenedor.add(botones[x]);\r\n }\r\n }", "public MyGUI() {\n \t super(\"Mastermind\");\n \t guiManager = new GUIManager();\n createMenuComponents();\n createMastermindComponents(this,2);\n \n }", "public ViewBotonesListas() {\n initComponents();\n }", "private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }", "protected abstract void iniciarModo();", "@Override\r\n public void initDefaultCommand() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\r\n setDefaultCommand(new joystick_lift_upAndDown());\r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\r\n // Set the default command for a subsystem here.\r\n // setDefaultCommand(new MySpecialCommand());\r\n }", "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 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 initDefaultCommand() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n setDefaultCommand(new joystickDrive());\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\t\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \n \n \n }", "private GUIAltaHabitacion() {\r\n\t initComponents();\r\n\t }", "public UICadMovel() {\n initComponents();\n }", "private void InitGUI() {\n\n\t\t//Configuraciones de la ventana principal\n\t\tcontenedor = getContentPane();\n\t\tcontenedor.removeAll();\n\t\tgetContentPane().setLayout(null);\n\t\tthis.setUndecorated(true);\n\t\tlistener = new ManejadorDeBotones();\n\t\tmanejadorDesplazamientoVentana(this);\n\n\t\t// Logo del sofa\n\t\tJLabel imagenSofa = new JLabel(\"\");\n\t\timagenSofa.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/sofa.png\")));\n\t\timagenSofa.setBounds(199, 15, 120, 80);\n\t\tgetContentPane().add(imagenSofa);\n\n\t\t// Etiqueta para el nombre al ladpo del logo\n\t\tJLabel lblMueblesYMuebles = new JLabel(\" Muebles y Muebles\");\n\t\tlblMueblesYMuebles.setFont(font);\n\t\tlblMueblesYMuebles.setForeground(Color.WHITE);\n\t\tlblMueblesYMuebles.setBounds(390, 77, 152, 32);\n\t\tgetContentPane().add(lblMueblesYMuebles);\n\n\t\t// Etiqueta para el logo XYZ\n\t\tJLabel imagenLogo = new JLabel(\"\");\n\t\timagenLogo.setIcon(\n\t\t\t\tnew ImageIcon(GUIMenuAdmin.class.getResource(\"/images/logo_blanco.png\")));\n\t\timagenLogo.setBounds(288, 23, 213, 82);\n\t\tgetContentPane().add(imagenLogo);\n\n\t\t//Boton para inicial crear ordenes de trabajo\n\t\tcrearOrden = new JButton(\"CREAR\");\n\t\tcrearOrden.setForeground(SystemColor.textHighlight);\n\t\tcrearOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tcrearOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tcrearOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_crear.png\")));\n\t\tcrearOrden.setFocusPainted(false);\n\t\tcrearOrden.setBorderPainted(false);\n\t\tcrearOrden.setOpaque(true);\n\t\tcrearOrden.setBackground(new Color(227, 227, 227));\n crearOrden.setFont(font);\n crearOrden.setBounds(117, 219, 140, 120);\n crearOrden.addActionListener(listener);\n getContentPane().add(crearOrden);\n\n\t\t//Boton para modificar ordenes de trabajo\n\t\tmodificarOrden = new JButton(\"MODIFICAR\");\n\t\tmodificarOrden.setForeground(SystemColor.textHighlight);\n\t\tmodificarOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tmodificarOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tmodificarOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_editar.png\")));\n\t\tmodificarOrden.setFocusPainted(false);\n\t\tmodificarOrden.setBorderPainted(false);\n\t\tmodificarOrden.setOpaque(true);\n\t\tmodificarOrden.setBackground(new Color(227, 227, 227));\n\t\tmodificarOrden.setFont(font);\n\t\tmodificarOrden.setBounds(267, 219, 140, 120);\n modificarOrden.addActionListener(listener);\n getContentPane().add(modificarOrden);\n\n\t\t//Boton para inicial la actualizacion de los usuarios\n\t\tconsultarOrden = new JButton(\"CONSULTAR\");\n\t\tconsultarOrden.setForeground(SystemColor.textHighlight);\n\t\tconsultarOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tconsultarOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tconsultarOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_buscar.png\")));\n\t\tconsultarOrden.setFocusPainted(false);\n\t\tconsultarOrden.setBorderPainted(false);\n\t\tconsultarOrden.setOpaque(true);\n\t\tconsultarOrden.setBackground(new Color(227, 227, 227));\n\t\tconsultarOrden.setFont(font);\n\t\tconsultarOrden.setBounds(417, 219, 140, 120);\n consultarOrden.addActionListener(listener);\n getContentPane().add(consultarOrden);\n\n //Boton salir\n\t\tsalir = new JButton(\"\");\n\t\tsalir.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/salir.png\")));\n\t\tsalir.setBorderPainted(false);\n\t\tsalir.setBorder(null);\n\t\tsalir.setMargin(new Insets(0, 0, 0, 0));\n\t\tsalir.setContentAreaFilled(false);\n\t\tsalir.addActionListener(listener);\n\t\tsalir.setBounds(588, 411, 81, 59);\n\t\tgetContentPane().add(salir);\n\n\t\t//-- Eriqueta --//\n\t\tlabel_1 = new JLabel(\"ORDENES DE TRABAJO\");\n\t\tlabel_1.setForeground(SystemColor.textHighlight);\n\t\tlabel_1.setFont(font);\n\t\tlabel_1.setBounds(117, 192, 140, 14);\n\t\tgetContentPane().add(label_1);\n\n\t\t//-- Separadores --//\n\t\tseparator_1 = new JSeparator();\n\t\tseparator_1.setForeground(SystemColor.textHighlight);\n\t\tseparator_1.setBackground(new Color(255, 255, 255));\n\t\tseparator_1.setBounds(260, 199, 297, 9);\n\t\tgetContentPane().add(separator_1);\n\t\t\n\t\t//Etiqueta salir\n\t\tlblSalir = new JLabel(\"SALIR\");\n\t\tlblSalir.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblSalir.setForeground(SystemColor.textHighlight);\n\t\tlblSalir.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblSalir.setBounds(597, 391, 49, 14);\n\t\tgetContentPane().add(lblSalir);\n\t\t//Etiqueta superior azul\n\t\tJLabel fondoAzul = new JLabel(\"\");\n\t\tfondoAzul.setOpaque(true);\n\t\tfondoAzul.setBackground(new Color(45, 118, 232));// azul #2D76E8\n\t\tfondoAzul.setBounds(0, 0, 679, 120);\n\t\tgetContentPane().add(fondoAzul);\n\n\t\t//Titulo para tipo de usuario\n\t\tJLabel titulo = new JLabel(\"JEFE DE TALLER\");\n\t\ttitulo.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\ttitulo.setForeground(SystemColor.textHighlight);\n\t\ttitulo.setBounds(417, 146, 140, 21);\n\t\tgetContentPane().add(titulo);\n\n\t\t\n\t\t// Etiqueta principal blanca\n\t\tJLabel fondoBlanco = new JLabel(\"\");\n\t\tfondoBlanco.setOpaque(true);\n\t\tfondoBlanco.setBackground(new Color(255, 255, 255));\n\t\tfondoBlanco.setBounds(0, 120, 679, 377);\n\t\tgetContentPane().add(fondoBlanco);\n\n\t\t//Configuraciones adicionales de la ventana principal\n\t\tsetSize(679, 497);\n\t\tsetResizable(false);\n\t\tsetVisible(true);\n\t\tsetLocationRelativeTo(null);\n\t\tsetShape(new java.awt.geom.RoundRectangle2D.Double(0, 0, getWidth(), getHeight(), 5, 5));\n\n }", "public void initDefaultCommand() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n setDefaultCommand(new drive_w_joysticks());\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\t\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand(new MySpecialCommand());\r\n }", "public mitigacao() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n gUI_Botones1 = new Vista.GUI_Botones();\n gUI_RegistroEstudiantes2 = new Vista.GUI_RegistroEstudiantes();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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(gUI_RegistroEstudiantes2, javax.swing.GroupLayout.PREFERRED_SIZE, 327, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(gUI_Botones1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(gUI_RegistroEstudiantes2, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(gUI_Botones1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 17, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void initDefaultCommand() {\n\n setDefaultCommand(new DriveWithJoystick());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n }", "public interface MiiCommandManager\n\t{\n\t\t\t/**------------------------------------------------------\n\t\t\t * Registers the given widget and the command it generates.\n\t\t\t * This permits (de)sensitization of the widget by the\n\t\t\t * setCommandSensitivity method. \n\t\t\t * @param widget \tthe widget that generates the command\n\t\t\t * @param command \tthe command\n\t\t\t * @see\t\t\t#unRegisterWidgetGeneratedCommand\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tregisterCommandDependentWidget(MiPart widget, String command);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * UnRegisters the given widget and the command it generates.\n\t\t\t * Either the given widget or the given command may be null.\n\t\t\t * @param widget \tthe widget that generates the command\n\t\t\t * @param command \tthe command\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tunRegisterWidgetGeneratedCommand(MiPart widget, String command);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command is to be visible to the\n\t\t\t * user. This method typically (hides)shows the widgets \n\t\t\t * that have been associated with the command.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the user can now see the\n\t\t\t *\t\t\tcommand (whether sensitive or not)\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t * @implements\t\t\n\t\t\t *\tMiiCommandManager#setCommandVisibility\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandVisibility(String command, boolean flag);\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command can be processed at this\n\t\t\t * time. Otherwise, possibly based on the current state of\n\t\t\t * the application, the given command cannot/should not be\n\t\t\t * processed at this time. This method typically (de)sensitizes\n\t\t\t * the widgets that have been associated with the command\n\t\t\t * (see registerCommandDependentWidget).\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the system can now process\n\t\t\t *\t\t\tthe command\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandSensitivity(String command, boolean flag);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command can be processed at this\n\t\t\t * time. Otherwise, possibly based on the current state of\n\t\t\t * the application, the given command cannot/should not be\n\t\t\t * processed at this time. This method typically (de)sensitizes\n\t\t\t * the widgets that have been associated with the command\n\t\t\t * (see registerCommandDependentWidget). This method is designed\n\t\t\t * to display a status bar message that describes why a \n\t\t\t * particular widget is desensitized.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the system can now process\n\t\t\t *\t\t\tthe command\n\t\t\t * @param statusHelpMsg the new status bar message\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t * @see\tMiiCommandManager#setCommandSensitivity\n\t\t\t * @see\tMiCommandManager#setCommandSensitivity\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandSensitivity(String command, boolean flag, String statusHelpMsg);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the state of the boolean widget that generates the \n\t\t\t * given command. This is used for initializing toggle \n\t\t\t * buttons.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the two state widget is\n\t\t\t *\t\t\tto be 'set'.\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandState(String command, boolean flag);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the state of the multi-state widget that generates\n\t\t\t * the given command. This is used for initializing widgets \n\t\t\t * like combo boxes and lists.\n\t\t\t * @param command \tthe command\n\t\t\t * @param state\t\tthe current state, one of many.\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandState(String command, String state);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the label of the widget that generates the given \n\t\t\t * command. This is used for initializing widgets like\n\t\t\t * labels and menubar buttons, push button etc.\n\t\t\t * @param command \tthe command\n\t\t\t * @param label\t\tthe new label\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandLabel(String command, String label);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the values of the multi-state widget that generates\n\t\t\t * the given command. This is used for setting the possible\n\t\t\t * values of widgets like combo boxes and lists.\n\t\t\t * @param command \tthe command\n\t\t\t * @param options\tthe new contents of the widget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandOptions(String command, Strings options);\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the given property to the given value for all parts\n\t\t\t * that generates the given command. This is used for, say,\n\t\t\t * changing the status help message on a widget that may\n\t\t\t * only be situationally and temporarily desensitized.\n\t\t\t * @param command \tthe command\n\t\t\t * @param propertyName\tthe property name\n\t\t\t * @param propertyValue\tthe value\n\t\t\t * @implements\t\tMiiCommandManager#setCommandState\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);\n\t}", "public ATM(){\n\t\tgui = new ATM_GUI(\n\t\t\t\tnew ActionListener(){\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\thandleButton(e.getActionCommand());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\tgui.run();\n\t\tloginMenu();\n\t}", "public modGenRoomControl() {\r\n //construct MbModule\r\n super();\r\n roomObjects = new HashMap(32);\r\n gui = new GUI();\r\n //we depend on the RemoteControl-module\r\n addDependency(\"RemoteControl\");\r\n //we depend on the ARNE-module\r\n addDependency(\"ARNE\");\r\n //register our packet data handler\r\n setPacketDataHandler(new PacketDataHandler());\r\n //we have a html-interface, so lets register it\r\n setHTMLInterface(new HTMLInterface());\r\n }", "public App() {\n\n //Ação do botão ****\n btnHomensNegros.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMENS_NEGROS_PAIS, \"Homicídios Homens Negros\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomensNaoNegros.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMENS_NAO_NEGROS_PAIS, \"Homicídios Homens Não Negros\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnMulheresNaoNegras.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(MULHERES_NAO_NEGRAS_PAIS, \"Homicídios Mulheres Não Negras\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomicidiosMulheresNegrasButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(MULHERES_NEGRAS_PAIS, \"Homicídios Mulheres Negras\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnMulheresPais.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(MULHERES_PAIS, \"Homicídios Mulheres\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomicidiosNaoNegros.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMICIDIOS_PESSOAS_NAO_NEGRAS, \"Homicídios Pessoas Não Negras\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomicidiosPessoasNegras.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMICIDIOS_PESSOAS_NEGRAS, \"Homicídios Pessoas Negras\");\n\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomicidiosHomens.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMICIDIOS_HOMENS, \"Homicídios de Homens\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Acao do RadioButton\n rdnTotal.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Deixa o clicado marcado e desmarca o outro\n rdnMedia.setSelected(false);\n rdnTotal.setSelected(true);\n }\n });\n //Acao do RadioButton\n rdnMedia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Deixa o clicado marcado e desmarca o outro\n rdnTotal.setSelected(false);\n rdnMedia.setSelected(true);\n }\n });\n //Ação do botão Sair do aplicativo\n btnSair.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n frame.dispose();\n btnSair.setBounds(12, 12, 30, 25);\n //setBounds arredondamento das bordas;\n }\n });\n }", "public AllSystemsClimbCenter() {\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=PARAMETERS\n // Add Commands here:\n // e.g. addSequential(new Command1());\n // addSequential(new Command2());\n // these will run in order.\n\n // To run multiple commands at the same time,\n // use addParallel()\n // e.g. addParallel(new Command1());\n // addSequential(new Command2());\n // Command1 and Command2 will run in parallel.\n\n // A command group will require all of the subsystems that each member\n // would require.\n // e.g. if Command1 requires chassis, and Command2 requires arm,\n // a CommandGroup containing them would require both the chassis and the\n // arm.\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=COMMAND_DECLARATIONS\n\n // if (!Robot.getKillClimber()) constantly checks if climber was killed by driver\n\n // if (!Robot.getKillClimber())\n // {\n // // set drive direction to correct orientation for climbing (front of robot direction)\n // Robot.chassis.setDriveDirection(-1);\n // }\n\n // if (!Robot.getKillClimber())\n // {\n // // ensure robot intake is in start position\n // addParallel(new ShooterAngleRotate(Constants.ALL_CENTER_SHOOTER_CLIMB_START_POSITION));\n // // ensure robot is against platform\n // addSequential(new DriveWithPower(Constants.ALL_CENTER_CHASSIS_INITIAL_POWER, \n // Constants.ALL_CENTER_CHASSIS_INITIAL_TIME), Constants.ALL_CENTER_CHASSIS_TIMEOUT);\n // }\n \n // extends front and back climber at the same time\n if (!Robot.getKillClimber())\n {\n addParallel(new ClimberFrontSetPosition(Constants.ALL_CENTER_FRONT_CLIMBER_EXTEND_POSITION));\n addParallel(new ClimberBackSetPosition(Constants.ALL_CENTER_BACK_CLIMBER_EXTEND_POSITION));\n // delay only 2 seconds in order to rotate shooter angle to pull in position faster\n addSequential(new Delay(2));\n }\n\n // // rotate shooter angle in order to pull robot onto platform\n // if (!Robot.getKillClimber())\n // {\n // addParallel(new ShooterAngleRotate(Constants.ALL_CENTER_SHOOTER_PULL_IN_POSITION));\n // addSequential(new Delay(2));\n // }\n \n // if (!Robot.getKillClimber())\n // {\n // // start shooter climber wheels in order to pull in\n // addParallel(new SetShooterSpeedStraight(Constants.ALL_CENTER_SHOOTER_PULL_IN_RPM));\n // // drive forward onto the platform\n // addSequential(new DriveWithPower(Constants.ALL_CENTER_CHASSIS_PLATFORM_POWER, \n // Constants.ALL_CENTER_CHASSIS_PLATFORM_TIME), Constants.ALL_CENTER_CHASSIS_TIMEOUT);\n // }\n\n // // bring up back climber\n // if (!Robot.getKillClimber())\n // {\n // addParallel(new ClimberBackSetPosition(Constants.ALL_CENTER_BACK_CLIMBER_RETRACT_POSITION));\n // addSequential(new Delay(2));\n // }\n\n // // drive forward onto the platform\n // if (!Robot.getKillClimber())\n // {\n // addSequential(new DriveWithPower(Constants.ALL_CENTER_CHASSIS_PLATFORM_POWER, \n // Constants.ALL_CENTER_CHASSIS_PLATFORM_TIME), Constants.ALL_CENTER_CHASSIS_TIMEOUT);\n // }\n\n // if (!Robot.getKillClimber())\n // {\n // // bring up front climber\n // addParallel(new ClimberFrontSetPosition(Constants.ALL_CENTER_FRONT_CLIMBER_RETRACT_POSITION));\n // addSequential(new Delay(2));\n // }\n // if (!Robot.getKillClimber())\n // {\n // // drive forward onto the platform\n // addParallel(new DriveWithPower(Constants.ALL_CENTER_CHASSIS_PLATFORM_POWER, \n // Constants.ALL_CENTER_CHASSIS_PLATFORM_TIME), Constants.ALL_CENTER_CHASSIS_TIMEOUT);\n // // bring shooter angle rotate to home position so it doesn't hit driver station\n // addSequential(new ShooterAngleRotate(Constants.ALL_CENTER_SHOOTER_HOME_POSITION));\n // }\n }", "public void commandAction(Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\n if (displayable == CheckVehicule) {//GEN-BEGIN:|7-commandAction|1|34-preAction\n if (command == okCommand1) {//GEN-END:|7-commandAction|1|34-preAction\n this.checkVehicule(); \n//GEN-LINE:|7-commandAction|2|34-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|3|19-preAction\n } else if (displayable == LoginForm) {\n if (command == exitCommand) {//GEN-END:|7-commandAction|3|19-preAction\n // write pre-action user code here\n exitMIDlet();//GEN-LINE:|7-commandAction|4|19-postAction\n // write post-action user code here\n } else if (command == okCommand) {//GEN-LINE:|7-commandAction|5|25-preAction\n connexion();\n \n//GEN-LINE:|7-commandAction|6|25-postAction\n \n }//GEN-BEGIN:|7-commandAction|7|53-preAction\n } else if (displayable == MauvaisIdentifiants) {\n if (command == okCommand5) {//GEN-END:|7-commandAction|7|53-preAction\n // write pre-action user code here\n switchDisplayable(null, getLoginForm());//GEN-LINE:|7-commandAction|8|53-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|9|49-preAction\n } else if (displayable == PoliceCheckBegin) {\n if (command == okCommand4) {//GEN-END:|7-commandAction|9|49-preAction\n this.policeCheckBegin();\n//GEN-LINE:|7-commandAction|10|49-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|11|45-preAction\n } else if (displayable == RecordVehicule) {\n if (command == okCommand3) {//GEN-END:|7-commandAction|11|45-preAction\n this.recordVehicule();\n//GEN-LINE:|7-commandAction|12|45-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|13|41-preAction\n } else if (displayable == VehiculeRightPlace) {\n if (command == okCommand2) {//GEN-END:|7-commandAction|13|41-preAction\n this.vehiculeRightPlace();\n \n//GEN-LINE:|7-commandAction|14|41-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|15|7-postCommandAction\n }//GEN-END:|7-commandAction|15|7-postCommandAction\n // write post-action user code here\n }", "public RobotInit() {\n initComponents();\n }", "public void componentesimplementacionIsmael() {\n\t\t// En el menu bar Ismael\n\t\tmenuIsmael = new JMenu(\"Ismael\");\n\t\tmenuBar.add(menuIsmael);\n\n\t\t// SUBMENU\n\t\tsubMenuRecientes = new JMenu(\"Recientes\");\n\t\titemSubMenuRecientes = new ArrayList<>();\n\t\trutasRecientes = new ArrayList<>();\n\t\ttry {\n\t\t\trutasRecientes = manejadorFichero.obtenerLineasDelFichero();\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\tif (!rutasRecientes.isEmpty()) {\n\t\t\tfor (int i = 0; i < rutasRecientes.size(); i++) {\n\t\t\t\tJMenuItem textoSubmenu = new JMenuItem(rutasRecientes.get(i));\n\t\t\t\titemSubMenuRecientes.add(textoSubmenu);\n\t\t\t\tsubMenuRecientes.add(textoSubmenu);\n\t\t\t}\n\t\t}\n\t\tmenuIsmael.add(subMenuRecientes);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\t// Fuente\n\t\titemFuente = new JMenuItem(\"Fuente\");\n\t\titemFuente.setEnabled(false);\n\t\titemFuente.setMnemonic(KeyEvent.VK_F);\n\t\titemFuente.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemFuente);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\titemSeleccionarTodo = new JMenuItem(\"Selec.Todo\");\n\t\titemSeleccionarTodo.setEnabled(false);\n\t\titemSeleccionarTodo.setMnemonic(KeyEvent.VK_N);\n\t\titemSeleccionarTodo.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemSeleccionarTodo);\n\n\t\titemSeleccionarTodoYCopiar = new JMenuItem(\"Selec All+Copy\");\n\t\titemSeleccionarTodoYCopiar.setEnabled(false);\n\t\titemSeleccionarTodoYCopiar.setMnemonic(KeyEvent.VK_M);\n\t\titemSeleccionarTodoYCopiar.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemSeleccionarTodoYCopiar);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\titemHora = new JMenuItem(\"Hora\");\n\t\titemHora.setEnabled(true);\n\t\titemHora.setMnemonic(KeyEvent.VK_H);\n\t\titemHora.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemHora);\n\n\t}", "private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }", "public clientesagregarclass() {\n initComponents();\n }", "public void initDefaultCommand() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n setDefaultCommand(new EnableLight());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "public AdminUpdateFly() {\n initComponents();\n }", "private void crearObjetos() {\n // crea los botones\n this.btnOK = new CCButton(this.OK);\n this.btnOK.setActionCommand(\"ok\");\n this.btnOK.setToolTipText(\"Confirmar la Operación\");\n \n this.btnCancel = new CCButton(this.CANCEL);\n this.btnCancel.setActionCommand(\"cancel\");\n this.btnCancel.setToolTipText(\"Cancelar la Operación\");\n \n // Agregar los eventos a los botones\n this.btnOK.addActionListener(this);\n this.btnCancel.addActionListener(this);\n }", "public void premutoRegistrati()\n\t{\n\t\tnew _FINITO_funzione_registrazioneGUI();\n\t}", "public PanelListaMotoristas() {\n initComponents();\n atualizarListaMotoristas();\n }", "public combinacion() {\n initComponents();\n eventos();\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}", "public static void init() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n driveTrainmotor_leftFront = new Talon(1);\n LiveWindow.addActuator(\"DriveTrain\", \"motor_leftFront\", (Talon) driveTrainmotor_leftFront);\n \n driveTrainmotor_leftRear = new Talon(2);\n LiveWindow.addActuator(\"DriveTrain\", \"motor_leftRear\", (Talon) driveTrainmotor_leftRear);\n \n driveTrainmotor_rightFront = new Talon(3);\n LiveWindow.addActuator(\"DriveTrain\", \"motor_rightFront\", (Talon) driveTrainmotor_rightFront);\n \n driveTrainmotor_rightRear = new Talon(4);\n LiveWindow.addActuator(\"DriveTrain\", \"motor_rightRear\", (Talon) driveTrainmotor_rightRear);\n \n driveTrainRobotDrive = new RobotDrive(driveTrainmotor_leftFront, driveTrainmotor_leftRear,\n driveTrainmotor_rightFront, driveTrainmotor_rightRear);\n \n driveTrainRobotDrive.setSafetyEnabled(true);\n driveTrainRobotDrive.setExpiration(0.1);\n driveTrainRobotDrive.setSensitivity(0.5);\n driveTrainRobotDrive.setMaxOutput(1.0);\n\n liftmotor_Lift = new Talon(0);\n LiveWindow.addActuator(\"Lift\", \"motor_Lift\", (Talon) liftmotor_Lift);\n \n liftencoderLiftHeight = new Encoder(1, 2, true, EncodingType.k4X);\n LiveWindow.addSensor(\"Lift\", \"encoder LiftHeight\", liftencoderLiftHeight);\n liftencoderLiftHeight.setDistancePerPulse(1.0);\n liftencoderLiftHeight.setPIDSourceParameter(PIDSourceParameter.kRate);\n liftlimitBottom = new DigitalInput(0);\n LiveWindow.addSensor(\"Lift\", \"limitBottom\", liftlimitBottom);\n \n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "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 }", "void inicializaComponentes(){\r\n\t\t\r\n\t\t//Botão com status\r\n\t\ttgbGeral = (ToggleButton) findViewById(R.id.tgbGeral);\r\n\t\ttgbGeral.setOnClickListener(this);\r\n\t\ttgbMovimento = (ToggleButton) findViewById(R.id.tgbMovimento);\r\n\t\ttgbMovimento.setOnClickListener(this);\r\n\t\ttgbfogo = (ToggleButton) findViewById(R.id.tgbFogo);\r\n\t\ttgbfogo.setOnClickListener(this);\r\n\r\n\t\t//botão\r\n\t\tbtnTemperatura = (Button) findViewById(R.id.btnTemperatura);\r\n\t\tbtnTemperatura.setOnClickListener(this);\r\n\t\t\r\n\t\t//label\r\n\t\ttxtLegenda = (TextView) findViewById(R.id.txtSensorLegenda);\r\n\t}", "public Modify() {\n initComponents();\n }", "private void menuMotifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuMotifActionPerformed\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n SwingUtilities.updateComponentTreeUI(this);\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void buscarGestor(){\r\n\t\t\r\n\t}", "public void initDefaultCommand() {\n\t\tsetDefaultCommand(new JoystickLiftCommand());\n\t}", "@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}", "@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}", "private void getGameCommands(){\n\n }", "private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\n }", "public frmacceso() {\n initComponents();\n }", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "@Override\n public void initGUI() {\n\n }", "public void initDefaultCommand() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\t\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n SmartDashboard.putData(leftMotor1);\n SmartDashboard.putData(leftMotor2);\n SmartDashboard.putData(rightMotor1);\n SmartDashboard.putData(rightMotor2);\n SmartDashboard.putData(firstMotor);\n SmartDashboard.putData(secondMotor);\n \n\n\n\n }", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "private SimpleChatUI() {\n initComponents();\n convo = null;\n setConnStatus(false);\n jMessageEntry.addActionListener(new java.awt.event.ActionListener() {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jSendButtonActionPerformed(evt);\n }\n });\n }", "public void initDefaultCommand() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\t\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public static void limpiarCampos(){\r\n\tvista.getTxtID().setText(\"\");\r\n\tvista.getTxtMuseo().setText(\"\");\r\n\tvista.getTxtAutor().setText(\"\");\r\n\tvista.getTxtSiglo().setText(\"\");\r\n\tvista.getTxtObra().setText(\"\");\r\n\t\r\n\tvista.getMntmLimpiarCampos().addActionListener(r->{\r\n\t\tvista.getTxtID().setText(\"\");\r\n\tvista.getTxtMuseo().setText(\"\");\r\n\tvista.getTxtAutor().setText(\"\");\r\n\tvista.getTxtSiglo().setText(\"\");\r\n\tvista.getTxtObra().setText(\"\");\r\n\tvista.getTxtBarraStatus().setText(\"CAMPOS LIMPIADOS - \");\r\n\t});\r\n\t\r\n}", "public Botonera() {\n initComponents();\n }", "@Override\r\n\tprotected void beforeSendCommands(String cmds) {\n\r\n\t}", "public ConfigureRobot()\n {\n Scheduler.getInstance().removeAll(); //remove all running commands\n addSequential(new BrakeOpen(),2);\n addSequential(new WaitCommand(1));\n addSequential(new LiftToBottom(),3);\n }", "private void menuNimbusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuNimbusActionPerformed\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.motif.MotifLookAndFeel\");\n SwingUtilities.updateComponentTreeUI(this);\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "Commands createCommands();", "public Atmbooths() {\n initComponents();\n }", "public jp_modificar_clave() {\n initComponents();\n }", "public void habilitabotones() {\n\n\tif (IR.sensmci == true) {\n\t btnmci1.setEnabled(true);\n\t btnmci1.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t //Instancio el panel lecturas (MCI-1) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_1) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 1\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci1.setEnabled(false);\n\n\tif (IR.sensmci2 == true) {\n\t btnmci2.setEnabled(true);\n\t btnmci2.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-2) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_2) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 2\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci2.setEnabled(false);\n\n\tif (IR.sensmci3 == true) {\n\t btnmci3.setEnabled(true);\n\t btnmci3.addMouseListener(new MouseAdapter() {\n\n\t\t\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-3) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_3) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 3\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci3.setEnabled(false);\n\n\tif (IR.sensmci4 == true) {\n\t btnmci4.setEnabled(true);\n\t btnmci4.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-4) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_4) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 4\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci4.setEnabled(false);\n\n\tif (IR.sensbt2 == true) { // Revisar comportamiento y\n\t\t\t\t // necesidad del hiloinfo en bt2\n\n\t btnbt21.setEnabled(true);\n\t btnbt21.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t \n\t\t //Instancio el panel lecturas (BT2-1) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_5) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-1\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t // IR.panelecturasbt2.setActualizar(true);\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasbt2\n\t\t // .setHilomuestrainfo(IR.panelecturasbt2\n\t\t // .getHilomuestrainfo());\n\t\t // IR.panelecturasbt2.hiloinfo = new Thread(\n\t\t // IR.panelecturasbt2.hilomuestrainfo);\n\t\t // IR.panelecturasbt2.hiloinfo.start();\n\n\t\t}\n\t });\n\t} else\n\t btnbt21.setEnabled(false);\n\n\tif (IR.sensbt22 == true) {\n\t btnbt22.setEnabled(true);\n\t btnbt22.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-2) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_6) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-2\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt22.setEnabled(false);\n\n\tif (IR.sensbt23 == true) {\n\t btnbt23.setEnabled(true);\n\t btnbt23.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-3) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_7) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-3\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt23.setEnabled(false);\n\n\tif (IR.sensbt24 == true) {\n\t btnbt24.setEnabled(true);\n\t btnbt24.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-4) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_8){\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\"pulsos\", IR.panelecturasbt2);\n\t\t\tIR.sensores.get(i).addPropertyChangeListener(\"lectura\",\n\t\t\t\tIR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-4\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt24.setEnabled(false);\n\n\tif (IR.hayplacasens) {\n\t btnplaca_sens.setEnabled(true);\n\t btnplaca_sens.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (Sensores) al pulsar el boton.\n\t\t IR.panelecturasens = Panelecturasens.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_SENSORES_0) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasens);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasens);\n\t\t\t \n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasens.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasens);\n\t\t IR.panelecturasens.setVisible(true);\n\t\t}\n\t });\n\t} else\n\t btnplaca_sens.setEnabled(false);\n\n }", "@Override\n public void onBoomButtonClick(int index) {\n }", "private void initiateClient(){\n btnNewGame.addActionListener(clientAction);\n btnNewGame.setActionCommand(\"NEWGAME\");\n btnQuit.addActionListener(clientAction);\n btnQuit.setActionCommand(\"QUIT\");\n btnResign.addActionListener(clientAction);\n btnResign.setActionCommand(\"RESIGN\");\n btnSendMsg.addActionListener(clientAction);\n btnSendMsg.setActionCommand(\"CHAT\");\n\n setButtons(false);\n btnNewGame.setEnabled(false);\n boardComponent.initiate();\n }", "private void registerCommands() {\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HOME.toString())) {\r\n\t\t\t(new HomeCommand(this)).register();\r\n\t\t\t(new SetHomeCommand(this)).register();\r\n\t\t\t(new DelHomeCommand(this)).register();\r\n\t\t\t(new ListHomesCommand(this)).register();\r\n\t\t\t(new NearbyHomesCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.BACK.toString())) {\r\n\t\t\t(new Back(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TPASK.toString())) {\r\n\t\t\t(new TeleportToggle(this)).register();\r\n\t\t\t(new TpAsk(this)).register();\r\n\t\t\t(new TpAskHere(this)).register();\r\n\t\t\t(new TeleportAccept(this)).register();\r\n\t\t\t(new TeleportDeny(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TELEPORT.toString())) {\r\n\t\t\t(new Teleport(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.SPEED_SETTING.toString())) {\r\n\t\t\t(new SpeedCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.FLY.toString())) {\r\n\t\t\t(new FlyCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.GAMEMODE.toString())) {\r\n\t\t\tGameModeCommand gmc = new GameModeCommand(this);\r\n\t\t\tPlayerLoader loader = new PlayerLoader(true, false, false, false);\r\n\t\t\tGameModeLoader gml = new GameModeLoader(true);\r\n\t\t\tgmc.setLoader(gml);\r\n\t\t\tgml.setLoader(loader);\r\n\t\t\tgmc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.PLAYER_CMD.toString())) {\r\n\t\t\t// create command and player loader\r\n\t\t\tPlayerCommand pc = new PlayerCommand();\r\n\t\t\tPlayerLoader playerLoader = new PlayerLoader(true, false, false, false);\r\n\t\t\t\r\n\t\t\t// create components\r\n\t\t\tFeedComponent fc = new FeedComponent();\r\n\t\t\tfc.setLoader(playerLoader);\r\n\t\t\tStarveComponent sc = new StarveComponent();\r\n\t\t\tsc.setLoader(playerLoader);\r\n\t\t\tHealComponent hc = new HealComponent();\r\n\t\t\thc.setLoader(playerLoader);\r\n\t\t\tKillComponent kc = new KillComponent();\r\n\t\t\tkc.setLoader(playerLoader);\r\n\t\t\tBurnComponent bc = new BurnComponent();\r\n\t\t\tbc.setLoader(playerLoader);\r\n\t\t\tExtinguishComponent ec = new ExtinguishComponent();\r\n\t\t\tec.setLoader(playerLoader);\r\n\t\t\tLightningComponent lc = new LightningComponent();\r\n\t\t\tlc.setLoader(playerLoader);\r\n\t\t\tLightningEffectComponent lec = new LightningEffectComponent();\r\n\t\t\tlec.setLoader(playerLoader);\r\n\t\t\t\r\n\t\t\tPlayerLoader gcLoader = new PlayerLoader(false, false, false, false);\r\n\t\t\tBinaryLoader ooc = new BinaryLoader(true, BinaryLoader.BINARY.ENABLE_DISABLE);\r\n\t\t\tooc.setLoader(gcLoader);\r\n\t\t\t\r\n\t\t\tInvincibleComponent gc = new InvincibleComponent();\r\n\t\t\tgc.setLoader(ooc);\r\n\t\t\t\r\n\t\t\t// add components\r\n\t\t\tpc.addComponent(\"feed\", fc);\r\n\t\t\tpc.addComponent(\"starve\", sc);\r\n\t\t\tpc.addComponent(\"heal\", hc);\r\n\t\t\tpc.addComponent(\"invincible\", gc);\r\n\t\t\tpc.addComponent(\"kill\", kc);\r\n\t\t\tpc.addComponent(\"burn\", bc);\r\n\t\t\tpc.addComponent(\"extinguish\", ec);\r\n\t\t\tpc.addComponent(\"lightning\", lc);\r\n\t\t\tpc.addComponent(\"lightningeffect\", lec);\r\n\t\t\t\r\n\t\t\t// register command\r\n\t\t\tpc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HAT.toString())) {\r\n\t\t\t// /hat command\r\n\t\t\t(new HatCommand()).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.WORKBENCH_ENDERCHEST.toString())) {\r\n\t\t\t// /enderchest and /workbench commands\r\n\t\t\tWorkbenchCommand wb = new WorkbenchCommand();\r\n\t\t\twb.setPermission(\"karanteenials.inventory.workbench\");\r\n\t\t\twb.register();\r\n\t\t\t\r\n\t\t\tEnderChestCommand ec = new EnderChestCommand();\r\n\t\t\tec.setPermission(\"karanteenials.inventory.enderchest\");\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.CLEAR_INVENTORY.toString())) {\r\n\t\t\tClearInventoryCommand cic = new ClearInventoryCommand();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, false, false);\r\n\t\t\tMaterialLoader ml = new MaterialLoader(true, false, false);\r\n\t\t\tpl.setLoader(ml);\r\n\t\t\tcic.setLoader(pl);\r\n\t\t\tpl.setPermission(\"karanteenials.inventory.clear-multiple\");\r\n\t\t\tcic.setPermission(\"karanteenials.inventory.clear\");\r\n\t\t\tcic.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /nick command\r\n\t\t/*if(getSettings().getBoolean(KEY_PREFIX+KEYS.NICK.toString())) {\r\n\t\t\tNickCommand nc = new NickCommand();\r\n\t\t\tnc.register();\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t// /enchant command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.ENCHANT_COMMAND.toString())) {\r\n\t\t\tEnchantCommand ec = new EnchantCommand();\r\n\t\t\t\r\n\t\t\tGiveEnchantmentComponent gec = new GiveEnchantmentComponent();\r\n\t\t\tgec.setPermission(\"karanteenials.enchant.set\");\r\n\t\t\t\r\n\t\t\tRemoveEnchantmentComponent rec = new RemoveEnchantmentComponent();\r\n\t\t\trec.setPermission(\"karanteenials.enchant.remove\");\r\n\t\t\t\r\n\t\t\tec.addComponent(\"give\", gec);\r\n\t\t\tec.addComponent(\"remove\", rec);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader giveEnchLoader = new EnchantmentLoader();\r\n\t\t\tgec.setLoader(giveEnchLoader);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader removeEnchLoader = new EnchantmentLoader();\r\n\t\t\trec.setLoader(removeEnchLoader);\r\n\t\t\t\r\n\t\t\tLevelLoader ll = new LevelLoader();\r\n\t\t\tgiveEnchLoader.setLoader(ll);\r\n\t\t\t\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /rtp command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.RANDOM_TELEPORT.toString())) {\r\n\t\t\tRandomTeleport rtp = new RandomTeleport();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, true, false);\r\n\t\t\trtp.setLoader(pl);\r\n\t\t\trtp.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.NEAR_COMMAND.toString())) {\r\n\t\t\tNearCommand nc = new NearCommand();\r\n\t\t\tnc.setPermission(\"karanteenials.near\");\r\n\t\t\tnc.register();\r\n\t\t}\r\n\t}", "private GUI()\n {\n makeGUI();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n BotaoIniciar = new java.awt.Button();\n BotaoNormal = new javax.swing.JButton();\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 BotaoHard = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Menu Inicial\");\n\n BotaoIniciar.setLabel(\"Iniciar\");\n BotaoIniciar.setPreferredSize(new java.awt.Dimension(65, 35));\n BotaoIniciar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BotaoIniciarActionPerformed(evt);\n }\n });\n\n BotaoNormal.setBackground(new java.awt.Color(254, 254, 254));\n BotaoNormal.setText(\"Normal\");\n BotaoNormal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BotaoNormalActionPerformed(evt);\n }\n });\n\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"espaço --> atirar\");\n\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(\"Seta Direita --> direita\");\n\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"Seta Esquerda --> esquerda\");\n\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"p --> pause\");\n\n BotaoHard.setText(\"Hard\");\n BotaoHard.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BotaoHardActionPerformed(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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(BotaoNormal, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 118, Short.MAX_VALUE)\n .addComponent(BotaoHard, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(73, 73, 73))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(BotaoIniciar, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(185, 185, 185))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(BotaoIniciar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(45, 45, 45)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BotaoNormal)\n .addComponent(BotaoHard))\n .addGap(24, 24, 24)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel5)\n .addContainerGap(38, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\n\tpublic void autonomousInit() {\n\t\t//SmartDashboard.getData(\"Driver File\");\n\t\t//SmartDashboard.getData(\"Operator File\");\n\t\tautonomousCommand = chooser.getSelected();\n\t\tisAutonomous = true;\n\t\tisTeleoperated = false;\n\t\tisEnabled = true;\n\t\tRobot.numToSend = 3;\n\t\tdrivebase.resetGyro();\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\tRobot.gearManipulator.gearManipulatorPivot.setPosition(0);\n\t\tRobot.gearManipulator.gearManipulatorPivot.setSetpoint(0);\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.start();\n\t}", "public OI() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n xBoxOne = new Joystick(0);\n \n autoRight = new JoystickButton(xBoxOne, 10);\n autoRight.whenPressed(new AutoRight());\n autoLeft = new JoystickButton(xBoxOne, 9);\n autoLeft.whenPressed(new AutoLeft());\n vision = new JoystickButton(xBoxOne, 7);\n vision.whenPressed(new SeekAndDriveTo());\n cameraSwitch = new JoystickButton(xBoxOne, 2);\n cameraSwitch.whenPressed(new CameraSwitch());\n latchCloseManual = new JoystickButton(xBoxOne, 6);\n latchCloseManual.whileHeld(new latchCloseManual());\n latchOpenManual = new JoystickButton(xBoxOne, 5);\n latchOpenManual.whileHeld(new latchOpenManual());\n toggleDirection = new JoystickButton(xBoxOne, 3);\n toggleDirection.whenPressed(new SwitchDirection());\n follow = new JoystickButton(xBoxOne, 8);\n follow.whenPressed(new follow());\n driveBackToDistance = new JoystickButton(xBoxOne, 1);\n driveBackToDistance.whenPressed(new AutoReverse());\n driveToDistance = new JoystickButton(xBoxOne, 4);\n driveToDistance.whenPressed(new AutoDrop());\n\n\n // SmartDashboard Buttons\n SmartDashboard.putData(\"Autonomous Command\", new AutonomousCommand());\n SmartDashboard.putData(\"DriveWithJoystick\", new DriveWithJoystick());\n SmartDashboard.putData(\"driveToDistance\", new driveToDistance());\n SmartDashboard.putData(\"HDriveJoystick\", new HDriveJoystick());\n SmartDashboard.putData(\"driveBackToDistance\", new driveBackToDistance());\n SmartDashboard.putData(\"follow\", new follow());\n SmartDashboard.putData(\"Climb\", new Climb());\n SmartDashboard.putData(\"SwitchDirection\", new SwitchDirection());\n SmartDashboard.putData(\"latchClose\", new latchClose());\n SmartDashboard.putData(\"latchOpen\", new latchOpen());\n SmartDashboard.putData(\"AutoDrop\", new AutoDrop());\n SmartDashboard.putData(\"AutoReverse\", new AutoReverse());\n SmartDashboard.putData(\"latchOpenManual\", new latchOpenManual());\n SmartDashboard.putData(\"latchCloseManual\", new latchCloseManual());\n SmartDashboard.putData(\"autoForwardBack\", new autoForwardBack());\n SmartDashboard.putData(\"kickForward\", new kickForward());\n SmartDashboard.putData(\"CameraSwitch\", new CameraSwitch());\n SmartDashboard.putData(\"Vision\", new Vision());\n SmartDashboard.putData(\"SeekAndDriveTo\", new SeekAndDriveTo());\n SmartDashboard.putData(\"turnRightTimed\", new turnRightTimed());\n SmartDashboard.putData(\"turnLeftTimed\", new turnLeftTimed());\n SmartDashboard.putData(\"driveForwardTimed\", new driveForwardTimed());\n SmartDashboard.putData(\"AutoRight\", new AutoRight());\n SmartDashboard.putData(\"AutoLeft\", new AutoLeft());\n SmartDashboard.putData(\"AutoMiddle\", new AutoMiddle());\n SmartDashboard.putData(\"SeekAndDriveSim\", new SeekAndDriveSim());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "public ModUsu() {\n setUndecorated(true);\n initComponents();\n this.setLocationRelativeTo(null);\n \n this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n i();\n \n }", "abstract void botonDemo_actionPerformed(ActionEvent e);", "private void enableBotonAceptar()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic void autonomousInit() {\n//\t\tm_autonomousCommand = m_chooser.getSelected();\n\t\t\n\t\tif(m_startPosition.getSelected().equals(\"Center\")) {\n\t\t\tif(getGameSpecificData(\"alliance\") == R) {\n\t\t\t\tm_autonomousCommand = new AUTO_centerRight();\n\t\t\t}else if(getGameSpecificData(\"alliance\") == L) {\n\t\t\t\tm_autonomousCommand = new AUTO_centerLeft();\n\t\t\t}else {\n\t\t\t\tm_autonomousCommand = null;\n\t\t\t}\n\t\t\t\n\t\t}else if(m_startPosition.getSelected().equals(\"Right\")) {\n\t\t\tif(m_gameElement.getSelected().equals(\"switch\")) {\n\t\t\t\tif(getGameSpecificData(\"alliance\") == R) {\n\t\t\t\t\tm_autonomousCommand = new AUTO_rightSwitchRight();\n\t\t\t\t}else if(getGameSpecificData(\"alliance\") == L) {\n\t\t\t\t\tm_autonomousCommand = new AUTO_rightSwitchLeft();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if(m_gameElement.getSelected().equals(\"scale\")) {\n\t\t\t\tif(getGameSpecificData(\"scale\") == R) {\n\t\t\t\t\tm_autonomousCommand = new AUTO_rightScaleRight();\n\t\t\t\t}else if(getGameSpecificData(\"scale\") == L) {\n\t\t\t\t\tm_autonomousCommand = new HowToTestAutoPath();\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tm_autonomousCommand = null;\n\t\t\t}\n\t\t\t\n\t\t}else if(m_startPosition.getSelected().equals(\"Left\")) {\n\t\t\tif(m_gameElement.getSelected().equals(\"switch\")) {\n\t\t\t\tif(getGameSpecificData(\"alliance\") == R) {\n\t\t\t\t\tm_autonomousCommand = new HowToTestAutoPath();//AUTO_leftSwitchRight();\n\t\t\t\t}else if(getGameSpecificData(\"alliance\") == L) {\n\t\t\t\t\tm_autonomousCommand = new AUTO_leftSwitchLeft();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if(m_gameElement.getSelected().equals(\"scale\")) {\n\t\t\t\tif(getGameSpecificData(\"scale\") == R) {\n\t\t\t\t\tm_autonomousCommand = new AUTO_leftScaleRight();\n\t\t\t\t}else if(getGameSpecificData(\"scale\") == L) {\n\t\t\t\t\tm_autonomousCommand = new AUTO_leftScaleLeft();\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tm_autonomousCommand = null;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\tSmartDashboard.putData(\"auto command\",m_autonomousCommand);\n\t\t\n\t\t// schedule the autonomous command (example)\n\t\tif (m_autonomousCommand != null) {\n\t\t\tm_autonomousCommand.start();\n\t\t}\n\t\t\n\t\tgetSwitchColor();\n//\t\tSmartDashboard.putBoolean(\"Alliance_R\", alliance_R_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"Alliance_L\", alliance_L_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"Scale_R\", R_scaleState);\n//\t\tSmartDashboard.putBoolean(\"Scale_L\", L_scaleState);\n//\t\tSmartDashboard.putBoolean(\"oppisite_R\", opposite_R_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"opposite_L\", opposite_L_SwitchState);\n\t\t\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 }", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\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 void initDefaultCommand() \n {\n }", "public void robotInit() \n {\n RobotMap.init();\n\n driveTrain = new DriveTrain();\n gripper = new Gripper();\n verticalLift = new VerticalLift();\n\n // OI must be constructed after subsystems. If the OI creates Commands \n //(which it very likely will), subsystems are not guaranteed to be \n // constructed yet. Thus, their requires() statements may grab null \n // pointers. Bad news. Don't move it.\n\n oi = new OI();\n\n autonomousChooser = new SendableChooser();\n autonomousChooser.addDefault( \"Auto: Do Nothing\" , new DoNothing () );\n autonomousChooser.addObject ( \"Auto: Drive To Auto Zone\" , new DriveToAutoZone () );\n autonomousChooser.addObject ( \"Auto: Drive To Auto Zone (Bump)\" , new DriveToAutoZoneBump () );\n //autonomousChooser.addObject ( \"Auto: Get One (Long)\" , new GetOneLong () );\n //autonomousChooser.addObject ( \"Auto: Get One (Short)\" , new GetOneShort () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Bump)\" , new GetOneRecycleBin () );\n autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Side)\" , new GetRecycleBinSide () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Backwards)\" , new GetOneRecycleBinBackwards () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Backwards, Bump)\", new GetOneRecycleBinBackwardsBump() );\n //autonomousChooser.addObject ( \"Auto: Get Two (Short)\" , new GetTwoShort () );\n //autonomousChooser.addObject ( \"Auto: Get Two Short (Special)\" , new GetTwoShortSpecial () );\n //autonomousChooser.addObject ( \"Auto: Get Two (Long, From left)\" , new TwoLongFromLeft () );\n //autonomousChooser.addObject ( \"Auto: Get Two (Long, From right)\" , new TwoLongFromRight () );\n autonomousChooser.addObject ( \"Auto: Get One Tote and Recycle Bin\" , new OneRecycleBinAndTote () );\n autonomousChooser.addObject ( \"Auto: Get One Tote and Recycle Bin (Bump)\" , new OneRecycleBinAndToteBump () );\n SmartDashboard.putData( \"Autonomous\", autonomousChooser );\n\n // instantiate the command used for the autonomous period\n //autonomousCommand = new RunAutonomousCommand();\n\n m_USBVCommand = new UpdateSBValuesCommand();\n m_USBVCommand.start();\n \n frame = NIVision.imaqCreateImage(NIVision.ImageType.IMAGE_RGB, 0);\n /*\n // the camera name (ex \"cam0\") can be found through the roborio web interface\n session = NIVision.IMAQdxOpenCamera(\"cam1\",\n NIVision.IMAQdxCameraControlMode.CameraControlModeController);\n NIVision.IMAQdxConfigureGrab(session);\n \n NIVision.IMAQdxStartAcquisition(session);\n */\n /*\n camServer = CameraServer.getInstance();//.startAutomaticCapture(\"cam1\");\n camServer.setQuality(30);\n \n cam = new USBCamera(\"cam1\");\n cam.openCamera();\n cam.setFPS(60);\n \n cam.setSize(320, 240);\n cam.updateSettings();\n */\n }", "public void initDefaultCommand() {\n \n }", "public void actionPerformed(ActionEvent e) {\n\t\tString cmd=e.getActionCommand().toString();\n\t\tif(cmd.equals(ControladorAdmin.OFF)){\n\t\t\tif(aux1!=null)\n\t\t\t\taux1.dispose();\n\t\t\tif(help!=null)\n\t\t\t\thelp.dispose();\n\t\t\ta.dispose();\n\t\t\tVentanaLogin ven=new VentanaLogin();\n\t\t\tControladorLogin con=new ControladorLogin(ven);\n\t\t\tven.asignarControlador(con);\n\t\t\tven.ver();\n\t\t} else if(cmd.equals(ControladorAdmin.HELP)){\n\t\t\tif(help!=null)\n\t\t\t\thelp.dispose();\n\t\t\tif(aux1!=null)\n\t\t\t\taux1.dispose();\n\t\t\t\n\t\t\t File fileH = new File(\"Resource/Usuarios/3.txt\");\n\t\t\t help=new VentanaHelp(3);\n\t\t\t help.setAlwaysOnTop(true);\n\t\t try(BufferedReader read = new BufferedReader(new FileReader(fileH))) {\n\t\t \n\t\t String line = read.readLine();\n\t\t \n\t\t while(line !=null){\n\t\t help.getText().append(line+\" \"+\"\\n\");\n\t\t line =read.readLine();\n\t\t }\n\t\t \n\t\t } catch (Exception ex) {\n\t\t \n\t\t }\n\t\t} else if(cmd.equals(CREARME)){\n\t\t\tif(aux1!=null)\n\t\t\t\taux1.dispose();\n\t\t\tif(help!=null)\n\t\t\t\thelp.dispose();\n\t\t\taux1=new Formulario();\n\t\t\taux1.medico(this);\n\t\t\taux1.ver();\n\t\t} else if(cmd.equals(CREARTEC)){\n\t\t\tif(aux1!=null)\n\t\t\t\taux1.dispose();\n\t\t\tif(help!=null)\n\t\t\t\thelp.dispose();\n\t\t\t aux1=new Formulario();\n\t\t\t aux1.tecnico(this);\n\t\t\t aux1.ver();\n\t\t} else if(cmd.equals(CANCEL)){\n\t\t\tif(aux1!=null)\n\t\t\t\taux1.dispose();\n\t\t} else if(cmd.equals(ENVIARME)){\n\t\t\tboolean bien=true;\n\t\t\tboolean dni=true;\n\t\t\tboolean comprobar = Conexion.dniMedico(aux1);\n\t\t\tif(aux1.getNombre().getText().isEmpty()){\n\t\t\t\taux1.getNombre().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getNombre().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getApellido1().getText().isEmpty()){\n\t\t\t\taux1.getApellido1().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getApellido1().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getApellido2().getText().isEmpty()){\n\t\t\t\taux1.getApellido2().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getApellido2().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getDni().getText().isEmpty()){\n\t\t\t\taux1.getDni().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\tif(!aux1.getLetra().getSelectedItem().toString().toLowerCase().equals(Utilidades.letraDNI(Integer.parseInt(aux1.getDni().getText())).toLowerCase())) {\n\t\t\t\t\taux1.getDni().setBackground(Color.red);\n\t\t\t\t\taux1.getLetra().setBackground(Color.RED);\n\t\t\t\t\tdni=false;\n\t\t\t\t} else {\n\t\t\t\t\taux1.getDni().setBackground(Color.WHITE);\n\t\t\t\t\taux1.getLetra().setBackground(Color.WHITE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(aux1.getLugar().getText().isEmpty()){\n\t\t\t\taux1.getLugar().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getLugar().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getTelefono().getText().isEmpty()){\n\t\t\t\taux1.getTelefono().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getTelefono().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getNumero().getText().isEmpty()){\n\t\t\t\taux1.getNumero().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getNumero().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tString pss=\"\";\n\t\t\tfor(int i=0;i<aux1.getContrasena1().getPassword().length;i++) {\n\t\t\t\tpss=pss+aux1.getContrasena1().getPassword()[i];\n\t\t\t}\n\t\t\tString pss2=\"\";\n\t\t\tfor(int i=0;i<aux1.getContrasena2().getPassword().length;i++) {\n\t\t\t\tpss2=pss2+aux1.getContrasena2().getPassword()[i];\n\t\t\t}\n\t\t\tif(pss.equals(\"\")){\n\t\t\t\taux1.getContrasena1().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getContrasena1().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(pss.equals(\"\")){\n\t\t\t\taux1.getContrasena2().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getContrasena2().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(comprobar == false){\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ya existe un mecnico con dni \" + aux1.getDni().getText()\n\t\t\t\t\t\t+ \". Porfavor introduzca el dni correcto\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tbien = false;\n\t\t\t}\n\t\t\t\n\t\t\tif(bien==true){\n\t\t\t\tif(!dni) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"El dni es erroneo\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else\n\t\t\t\t\n\t\t\t\tif(!(pss.equals(pss2))){\n\t\t\t\t\taux1.getContrasena2().setBackground(Color.RED);\n\t\t\t\t\taux1.getContrasena1().setBackground(Color.RED);\n\t\t\t\t\tJOptionPane.showMessageDialog(aux1, \"Las passwords no coinciden\", \"error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tint i=0;\n\t\t\t\t\telimi=new Vector<Usuario>();\n\t\t\t\t\tusuario=Conexion.consultarUsuarios();\n\t\t\t\t\tString st=aux1.getNombre().getText()+aux1.getApellido1().getText();\n\t\t\t\t\tVector<String> aux=new Vector<String>();\n\t\t\t\t\tfor(int j=0;j<usuario.size();j++) {\n\t\t\t\t\t\taux.add(usuario.get(i).getUser().toLowerCase());\n\t\t\t\t\t}\n\t\t\t\t\tif(aux.contains(st.toLowerCase())){\n\t\t\t\t\t\twhile(aux.contains(st.toLowerCase()+i)){\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tst=st+i;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//escribirMedico(st,con1, aux1.getNombre().getText(), aux1.getApellido1().getText(), aux1.getApellido2().getText(), aux1.getDni().getText(), aux1.getTelefono().getText(), aux1.getLugar().getText(), aux1.getNumero().getText());\n\t\t\t\t\tString sentencia=\" insert into Medico ( dni, nColegiado, nTelefono) values (\"+aux1.getDni().getText()+\",\"+aux1.getNumero().getText()+\",\"+aux1.getTelefono().getText()+\");\";\n\t\t\t\t\tConexion.sentenciaSQL(sentencia);\n\t\t\t\t\tsentencia=\" insert into Usuario(dni, rol, apellido, nombre, nick, contrasena, ubicacion) values (\"+aux1.getDni().getText()+\",\"+Constantes.MEDICO+\",'\"+aux1.getApellido1().getText()+\" \"+aux1.getApellido2().getText()+\"','\"+aux1.getNombre().getText()+\"','\"+st+\"','\"+pss+\"','\"+aux1.getLugar().getText()+\"');\";\n\t\t\t\t\tConexion.sentenciaSQL(sentencia);\n\t\t\t\t\tusuario.add(new Usuario(st,\"medico\",pss,Integer.parseInt(aux1.getDni().getText())));\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Medico creado con usuario: \"+st, \"Creado\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\taux1.dispose();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(dni) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Por favor, rellene todos los campos\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"El DNI es erronea y por favor, rellene todos los campos\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if(cmd.equals(ENVIARTEC)){\n\t\t\tboolean bien=true;\n\t\t\tboolean dni=true;\n\t\t\tboolean comprobar = Conexion.dniTecnico(aux1);\n\t\t\tif(aux1.getNombre().getText().isEmpty()){\n\t\t\t\taux1.getNombre().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getNombre().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getApellido1().getText().isEmpty()){\n\t\t\t\taux1.getApellido1().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getApellido1().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getApellido2().getText().isEmpty()){\n\t\t\t\taux1.getApellido2().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getApellido2().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getDni().getText().isEmpty()){\n\t\t\t\taux1.getDni().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\tif(!aux1.getLetra().getSelectedItem().toString().toLowerCase().equals(Utilidades.letraDNI(Integer.parseInt(aux1.getDni().getText())).toLowerCase())) {\n\t\t\t\t\taux1.getDni().setBackground(Color.red);\n\t\t\t\t\taux1.getLetra().setBackground(Color.RED);\n\t\t\t\t\tdni=false;\n\t\t\t\t} else {\n\t\t\t\t\taux1.getDni().setBackground(Color.WHITE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(aux1.getLugar().getText().isEmpty()){\n\t\t\t\taux1.getLugar().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getLugar().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tString pss=\"\";\n\t\t\tfor(int i=0;i<aux1.getContrasena1().getPassword().length;i++) {\n\t\t\t\tpss=pss+aux1.getContrasena1().getPassword()[i];\n\t\t\t}\n\t\t\tString pss2=\"\";\n\t\t\tfor(int i=0;i<aux1.getContrasena2().getPassword().length;i++) {\n\t\t\t\tpss2=pss2+aux1.getContrasena2().getPassword()[i];\n\t\t\t}\n\t\t\tif(pss.equals(\"\")){\n\t\t\t\taux1.getContrasena1().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getContrasena1().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(pss.equals(\"\")){\n\t\t\t\taux1.getContrasena2().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getContrasena2().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(comprobar == false){\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ya existe un tecnico con dni \" + aux1.getDni().getText()\n\t\t\t\t\t\t+ \". Porfavor introduzca el dni correcto\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tbien = false;\n\t\t\t}\n\t\t\tif(bien==true){\n\t\t\t\tif(!dni) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"El dni es erroneo\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else\n\t\t\t\t\n\t\t\t\tif(!(pss.equals(pss2))){\n\t\t\t\taux1.getContrasena2().setBackground(Color.RED);\n\t\t\t\taux1.getContrasena1().setBackground(Color.RED);\n\t\t\t\tJOptionPane.showMessageDialog(aux1, \"Las passwords no coinciden\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t} else{\n\t\t\t\telimi=new Vector<Usuario>();\n\t\t\t\tusuario=Conexion.consultarUsuarios();\n\t\t\t\tint i=0;\n\t\t\t\tString st=aux1.getNombre().getText()+aux1.getApellido1().getText();\n\t\t\t\tVector<String> aux=new Vector<String>();\n\t\t\t\tfor(int j=0;j<usuario.size();j++) {\n\t\t\t\t\taux.add(usuario.get(i).getUser().toLowerCase());\n\t\t\t\t}\n\t\t\t\tif(aux.contains(st.toLowerCase())){\n\t\t\t\t\twhile(aux.contains(st.toLowerCase()+i)){\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tst=st+i;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//sql\n\t\t\t\t//escribirTecnico(st,con1, aux1.getNombre().getText(), aux1.getApellido1().getText(), aux1.getApellido2().getText(), aux1.getDni().getText(), aux1.getLugar().getText());\n\t\t\t\tString sentencia=\" insert into Tecnico ( dni, turno) values (\"+aux1.getDni().getText()+\",\"+Constantes.turno+\");\";\n\t\t\t\tConexion.sentenciaSQL(sentencia);\n\t\t\t\tsentencia=\" insert into Usuario(dni, rol, apellido, nombre, nick, contrasena, ubicacion) values (\"+aux1.getDni().getText()+\",\"+Constantes.TECNICO+\",'\"+aux1.getApellido1().getText()+\" \"+aux1.getApellido2().getText()+\"','\"+aux1.getNombre().getText()+\"','\"+st+\"','\"+pss+\"','\"+aux1.getLugar().getText()+\"');\";\n\t\t\t\tConexion.sentenciaSQL(sentencia);\n\t\t\t\tusuario.add(new Usuario(st,\"tecnico\",pss,Integer.parseInt(aux1.getDni().getText())));\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Tecnico creado con usuario: \"+st, \"Creado\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\taux1.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(dni) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Por favor, rellene todos los campos\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"El DNI es erronea y por favor, rellene todos los campos\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} else if(cmd.equals(USUARIOS)){\n\t\t\telimi=new Vector<Usuario>();\n\t\t\tusuario=Conexion.consultarUsuarios();\n\t\t\taux=a.getCentro().getComponents();\n\t\t\ta.getCentro().setVisible(false);\n\t\t\ta.getCentro().removeAll();\n\t\t\t//usuario=this.obtenerUsuarios();\n\t\t\tVector<Usuario>medi=new Vector<Usuario>();\n\t\t\tVector<Usuario>tec=new Vector<Usuario>();\n\t\t\t\n\t\t\tfor(int i=0;i<usuario.size();i++){\n\t\t\t\tif(usuario.get(i).getRol().equals(\"medico\")){\n\t\t\t\t\tmedi.add(usuario.get(i));\n\t\t\t\t} else {\n\t\t\t\t\ttec.add(usuario.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//drop usuario\n\t\t\ta.getCentro().add(a.paneldeusuarios(this,medi,tec,elimi),BorderLayout.CENTER);\n\t\t\t\n\t\t\ta.getCentro().setVisible(true);\n\n\t\t} else if(cmd.equals(BACK)){\n\t\t\tif(!elimi.isEmpty()) {\n\t\t\t\tint resp = JOptionPane.showConfirmDialog(a, \"Seguro que desea mantener los cambios? Serán permanentes\", \"Guardar cambios\",JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(resp==JOptionPane.NO_OPTION) {\n\t\t\t\t\telimi.removeAllElements();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < querys.size();i++){\n\t\t\t\tConexion.sentenciaSQL(querys.get(i));\n\t\t\t\tSystem.out.println(querys.get(i));\n\t\t\t}\n\t\t\tquerys.clear();\n\t\t\twhile(!elimi.isEmpty()) {\n\t\t\t\tif(elimi.get(0).getRol().equals(\"medico\")) {\n//\t\t\t\t\tConexion.sentenciaSQL(\"delete from Medico where dni=\"+elimi.get(0).getDni());\n\t\t\t\t\t\n\t\t\t\t} else if(elimi.get(0).getRol().equals(\"tecnico\")){\n//\t\t\t\t\tConexion.sentenciaSQL(\"delete from tecnico where dni=\"+elimi.get(0).getDni());\n\t\t\t\t} else {\n//\t\t\t\t\tConexion.sentenciaSQL(\"delete from administrador where dni=\"+elimi.get(0).getDni());\n\t\t\t\t}\n//\t\t\t\tConexion.sentenciaSQL(\"delete from Usuario where dni=\"+elimi.get(0).getDni());\n\t\t\t\tusuario.remove(elimi.get(0));\n\t\t\t\telimi.remove(0);\n\t\t\t}\n\t\t\ta.getCentro().setVisible(false);\n\t\t\ta.getCentro().removeAll();\n\t\t\tfor(int i=0;i<aux.length;i++){\n\t\t\t\ta.getCentro().add(aux[i]);\t\n\t\t\t}\n\t\t\t\n\t\t\ta.getCentro().setVisible(true);\n//\t\t\tString sentencia=\" insert into Tecnico ( dni, turno) values (\"+aux1.getDni().getText()+\",\"+Constantes.turno+\");\";\n//\t\t\tString sentencia = \"drop turno from Tecnico where Tecnico.dni = 98;\";\n//\t\t\tConexion.sentenciaSQL(sentencia);\n\t\t}\n\t}", "@Override\n public void onInteract() {\n }", "public void ejecutaMetodo() {\n\t\r\n}", "@Override\n\tpublic void init(SWTBot bot) {\n\n\t}", "private void sendGameCommand(){\n\n }", "public static void main(String[] args) {\n//\n// remote.setCommand(garageDoorOpenCommand);\n// remote.buttonWasPressed();\n\n RemoteControl remoteControl = new RemoteControl();\n\n Light livingRoomLight = new Light(\"Living Room\");\n Light kitchenLight = new Light(\"Kitchen\");\n CeilingFan ceilingFan = new CeilingFan(\"Living Room\");\n GarageDoor garageDoor = new GarageDoor(\"\");\n Stereo stereo = new Stereo(\"Living Room\");\n\n LightOnCommands livingRoomLightsOn = new LightOnCommands(livingRoomLight);\n LightOffCommand livingRoomLightsOff = new LightOffCommand(livingRoomLight);\n LightOnCommands kitchenLightsOn = new LightOnCommands(kitchenLight);\n LightOffCommand kitchenLightsOff = new LightOffCommand(kitchenLight);\n\n CeilingFanOnCommand ceilingFanOnCommand = new CeilingFanOnCommand(ceilingFan);\n CeilingFanOffCommand ceilingFanOffCommand = new CeilingFanOffCommand(ceilingFan);\n\n GarageDoorOpenCommand garageDoorOpenCommand = new GarageDoorOpenCommand(garageDoor);\n GarageDoorCloseCommand garageDoorCloseCommand = new GarageDoorCloseCommand(garageDoor);\n\n StereoOnWithCdCommand stereoOnWithCdCommand = new StereoOnWithCdCommand(stereo);\n StereoOffCommand stereoOffCommand = new StereoOffCommand(stereo);\n\n\n remoteControl.setCommand(0, livingRoomLightsOn, livingRoomLightsOff);\n remoteControl.setCommand(1, kitchenLightsOn, kitchenLightsOff);\n remoteControl.setCommand(2, ceilingFanOnCommand, ceilingFanOffCommand);\n remoteControl.setCommand(3, stereoOnWithCdCommand, stereoOffCommand);\n\n System.out.println(remoteControl);\n\n remoteControl.onButtonWasPushed(0);\n remoteControl.offButtonWasPushed(0);\n remoteControl.onButtonWasPushed(1);\n remoteControl.offButtonWasPushed(1);\n remoteControl.onButtonWasPushed(2);\n remoteControl.offButtonWasPushed(2);\n remoteControl.onButtonWasPushed(3);\n remoteControl.offButtonWasPushed(3);\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 }", "public void initDefaultCommand() {\n \n }", "public Operacoes() {\n initComponents();\n }", "@Override\n\tpublic void initDefaultCommand() {\n \tElevator2.set(ControlMode.Follower, 6);\n \tElevator1.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder, 0, 50);\n \n }", "@Override\n protected void addButtons()\n {\n JLabel agentOptions = new JLabel(\"Client Options \", SwingConstants.CENTER);\n addComponentToGridBag(this, agentOptions, 0, 0, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n\n JButton agentSendMessage = new JButton(\"Send Message\");\n addComponentToGridBag(this, agentSendMessage, 0, 2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentSendMessage.addActionListener((ActionEvent e) ->\n {\n String to = getTo();\n String content = getContent(to);\n sendMessage(to, content);\n });\n\n JButton agentShowPortal = new JButton(\"Show Portal\");\n addComponentToGridBag(this, agentShowPortal, 0, 3, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentShowPortal.addActionListener((ActionEvent e) ->\n {\n displayConnections();\n });\n\n JButton agentexit = new JButton(\"Exit\");\n addComponentToGridBag(this, agentexit, 0, 5, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentexit.addActionListener((ActionEvent e) ->\n {\n System.exit(0);\n });\n }", "public void robotInit() {\n\t\toi = new OI();\n chooser = new SendableChooser();\n chooser.addDefault(\"Default Auto\", new ExampleCommand());\n// chooser.addObject(\"My Auto\", new MyfAutoCommand());\n SmartDashboard.putData(\"Auto mode\", chooser);\n \n //Drive\n //this.DriveTrain = new DriveTrain();\n \t//RobotMap.robotDrive1.arcadeDrive(oi.stickLeft);\n \n //Buttons\n // oi.button1.whenPressed(new SetMaxMotorOutput());\n \n //Ultrasonic\n sonic1 = new Ultrasonic(0,1);\n sonic1.setAutomaticMode(true);\n \n }", "public help() {\n initComponents();\n }", "@Override\n public void help(CommandSender sender) {\n \n }", "public MHTYGUI() {\n\t\t\tinitComponents();\n\t\t}" ]
[ "0.64417225", "0.6298969", "0.62462246", "0.60840106", "0.6056793", "0.6005554", "0.599306", "0.596062", "0.59470475", "0.5942543", "0.59164464", "0.591564", "0.59038466", "0.5901203", "0.58954227", "0.58893484", "0.5863353", "0.583921", "0.5835045", "0.58279395", "0.57929665", "0.57888395", "0.5777004", "0.5772604", "0.57713395", "0.5767173", "0.5734594", "0.57285917", "0.5727015", "0.5723256", "0.5710699", "0.57040006", "0.5685294", "0.5683174", "0.56810963", "0.56795365", "0.5670439", "0.5670281", "0.5670128", "0.5665948", "0.56492156", "0.56490386", "0.5648989", "0.5645864", "0.5645202", "0.56448746", "0.5639338", "0.56361663", "0.56361663", "0.5636002", "0.56358933", "0.56307036", "0.5616475", "0.56151956", "0.5614347", "0.5614243", "0.5604916", "0.5604063", "0.5594947", "0.5593036", "0.5589954", "0.55851185", "0.558199", "0.55775976", "0.55770075", "0.55756164", "0.55739397", "0.5573607", "0.5570189", "0.55651104", "0.55466443", "0.554626", "0.55396193", "0.5534691", "0.5533592", "0.5530677", "0.5530355", "0.552317", "0.55188626", "0.5518855", "0.5517661", "0.5517661", "0.5516169", "0.5515556", "0.5515234", "0.55135113", "0.55134344", "0.55072", "0.55065274", "0.5500546", "0.54999894", "0.54989356", "0.5497574", "0.54924506", "0.54923624", "0.54911864", "0.54821837", "0.5482149", "0.54784685", "0.54778147", "0.54758227" ]
0.0
-1
Activa todos los botones de funciones matematicas
private void activateButtons(){ limiteBoton.setEnabled(true); derivadaBoton.setEnabled(true); integralBoton.setEnabled(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void enableBotonAceptar()\r\n\t{\r\n\t\t\r\n\t}", "public void inicializarBotones() {\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'login'\n\t\tthis.controladorLogin = new ControladorLogin(vista, modelo);\n\t\tthis.controladorLogin.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'registro'\n\t\tthis.controladorRegistro = new ControladorRegistro(vista, modelo);\n\t\tthis.controladorRegistro.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'bienvenida'\n\t\tthis.controladorBienvenida = new ControladorBienvenida(vista, modelo);\n\t\tthis.controladorBienvenida.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'sel_billete'\n\t\tthis.controladorBillete = new ControladorBillete(vista, modelo);\n\t\tthis.controladorBillete.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'sel_fecha'\n\t\tthis.controladorFecha = new ControladorFecha(vista, modelo);\n\t\tthis.controladorFecha.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'detalles_compra'\n\t\tthis.controladorDetalles = new ControladorDetalles(vista, modelo);\n\t\tthis.controladorDetalles.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel 'pago'\n\t\tthis.controladorPago = new ControladorPago(vista, modelo);\n\t\tthis.controladorPago.addListeners();\n\t\t\n\t\t// aņadimos listeners a los botones del panel \"fin_pago\"\n\t\tthis.controladorFinPago = new ControladorFinPago(vista, modelo);\n\t\tthis.controladorFinPago.addListeners();\n\t}", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "public void activar(){\n\n }", "private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }", "private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\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 enableChat();", "private void registerCommands() {\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HOME.toString())) {\r\n\t\t\t(new HomeCommand(this)).register();\r\n\t\t\t(new SetHomeCommand(this)).register();\r\n\t\t\t(new DelHomeCommand(this)).register();\r\n\t\t\t(new ListHomesCommand(this)).register();\r\n\t\t\t(new NearbyHomesCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.BACK.toString())) {\r\n\t\t\t(new Back(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TPASK.toString())) {\r\n\t\t\t(new TeleportToggle(this)).register();\r\n\t\t\t(new TpAsk(this)).register();\r\n\t\t\t(new TpAskHere(this)).register();\r\n\t\t\t(new TeleportAccept(this)).register();\r\n\t\t\t(new TeleportDeny(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TELEPORT.toString())) {\r\n\t\t\t(new Teleport(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.SPEED_SETTING.toString())) {\r\n\t\t\t(new SpeedCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.FLY.toString())) {\r\n\t\t\t(new FlyCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.GAMEMODE.toString())) {\r\n\t\t\tGameModeCommand gmc = new GameModeCommand(this);\r\n\t\t\tPlayerLoader loader = new PlayerLoader(true, false, false, false);\r\n\t\t\tGameModeLoader gml = new GameModeLoader(true);\r\n\t\t\tgmc.setLoader(gml);\r\n\t\t\tgml.setLoader(loader);\r\n\t\t\tgmc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.PLAYER_CMD.toString())) {\r\n\t\t\t// create command and player loader\r\n\t\t\tPlayerCommand pc = new PlayerCommand();\r\n\t\t\tPlayerLoader playerLoader = new PlayerLoader(true, false, false, false);\r\n\t\t\t\r\n\t\t\t// create components\r\n\t\t\tFeedComponent fc = new FeedComponent();\r\n\t\t\tfc.setLoader(playerLoader);\r\n\t\t\tStarveComponent sc = new StarveComponent();\r\n\t\t\tsc.setLoader(playerLoader);\r\n\t\t\tHealComponent hc = new HealComponent();\r\n\t\t\thc.setLoader(playerLoader);\r\n\t\t\tKillComponent kc = new KillComponent();\r\n\t\t\tkc.setLoader(playerLoader);\r\n\t\t\tBurnComponent bc = new BurnComponent();\r\n\t\t\tbc.setLoader(playerLoader);\r\n\t\t\tExtinguishComponent ec = new ExtinguishComponent();\r\n\t\t\tec.setLoader(playerLoader);\r\n\t\t\tLightningComponent lc = new LightningComponent();\r\n\t\t\tlc.setLoader(playerLoader);\r\n\t\t\tLightningEffectComponent lec = new LightningEffectComponent();\r\n\t\t\tlec.setLoader(playerLoader);\r\n\t\t\t\r\n\t\t\tPlayerLoader gcLoader = new PlayerLoader(false, false, false, false);\r\n\t\t\tBinaryLoader ooc = new BinaryLoader(true, BinaryLoader.BINARY.ENABLE_DISABLE);\r\n\t\t\tooc.setLoader(gcLoader);\r\n\t\t\t\r\n\t\t\tInvincibleComponent gc = new InvincibleComponent();\r\n\t\t\tgc.setLoader(ooc);\r\n\t\t\t\r\n\t\t\t// add components\r\n\t\t\tpc.addComponent(\"feed\", fc);\r\n\t\t\tpc.addComponent(\"starve\", sc);\r\n\t\t\tpc.addComponent(\"heal\", hc);\r\n\t\t\tpc.addComponent(\"invincible\", gc);\r\n\t\t\tpc.addComponent(\"kill\", kc);\r\n\t\t\tpc.addComponent(\"burn\", bc);\r\n\t\t\tpc.addComponent(\"extinguish\", ec);\r\n\t\t\tpc.addComponent(\"lightning\", lc);\r\n\t\t\tpc.addComponent(\"lightningeffect\", lec);\r\n\t\t\t\r\n\t\t\t// register command\r\n\t\t\tpc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HAT.toString())) {\r\n\t\t\t// /hat command\r\n\t\t\t(new HatCommand()).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.WORKBENCH_ENDERCHEST.toString())) {\r\n\t\t\t// /enderchest and /workbench commands\r\n\t\t\tWorkbenchCommand wb = new WorkbenchCommand();\r\n\t\t\twb.setPermission(\"karanteenials.inventory.workbench\");\r\n\t\t\twb.register();\r\n\t\t\t\r\n\t\t\tEnderChestCommand ec = new EnderChestCommand();\r\n\t\t\tec.setPermission(\"karanteenials.inventory.enderchest\");\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.CLEAR_INVENTORY.toString())) {\r\n\t\t\tClearInventoryCommand cic = new ClearInventoryCommand();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, false, false);\r\n\t\t\tMaterialLoader ml = new MaterialLoader(true, false, false);\r\n\t\t\tpl.setLoader(ml);\r\n\t\t\tcic.setLoader(pl);\r\n\t\t\tpl.setPermission(\"karanteenials.inventory.clear-multiple\");\r\n\t\t\tcic.setPermission(\"karanteenials.inventory.clear\");\r\n\t\t\tcic.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /nick command\r\n\t\t/*if(getSettings().getBoolean(KEY_PREFIX+KEYS.NICK.toString())) {\r\n\t\t\tNickCommand nc = new NickCommand();\r\n\t\t\tnc.register();\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t// /enchant command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.ENCHANT_COMMAND.toString())) {\r\n\t\t\tEnchantCommand ec = new EnchantCommand();\r\n\t\t\t\r\n\t\t\tGiveEnchantmentComponent gec = new GiveEnchantmentComponent();\r\n\t\t\tgec.setPermission(\"karanteenials.enchant.set\");\r\n\t\t\t\r\n\t\t\tRemoveEnchantmentComponent rec = new RemoveEnchantmentComponent();\r\n\t\t\trec.setPermission(\"karanteenials.enchant.remove\");\r\n\t\t\t\r\n\t\t\tec.addComponent(\"give\", gec);\r\n\t\t\tec.addComponent(\"remove\", rec);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader giveEnchLoader = new EnchantmentLoader();\r\n\t\t\tgec.setLoader(giveEnchLoader);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader removeEnchLoader = new EnchantmentLoader();\r\n\t\t\trec.setLoader(removeEnchLoader);\r\n\t\t\t\r\n\t\t\tLevelLoader ll = new LevelLoader();\r\n\t\t\tgiveEnchLoader.setLoader(ll);\r\n\t\t\t\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /rtp command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.RANDOM_TELEPORT.toString())) {\r\n\t\t\tRandomTeleport rtp = new RandomTeleport();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, true, false);\r\n\t\t\trtp.setLoader(pl);\r\n\t\t\trtp.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.NEAR_COMMAND.toString())) {\r\n\t\t\tNearCommand nc = new NearCommand();\r\n\t\t\tnc.setPermission(\"karanteenials.near\");\r\n\t\t\tnc.register();\r\n\t\t}\r\n\t}", "protected abstract void iniciarModo();", "private void enable_buttons() {\n\n\n btnInicio.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //Utilizamos dos botones, una para iniciar y otro para detener. Comprueba cual\n // Se ha pulsado\n switch (view.getId()) {\n //Login\n case R.id.buttonLogin:\n //Comprueba la conexion\n if (comprobarConexion()) {\n //Comprueba si ya hay un servicio iniciado\n if(!servicioIniciado) {\n Intent i = new Intent(getApplicationContext(), Localitzacio.class);\n i.putExtra(\"matricula\", matriculaEditText.getText().toString());\n Log.i(\"SI \", \"se abre el servicio\");\n startService(i);\n servicioIniciado = true;\n }\n } else {\n Log.i(\"NO \", \"se abre el servicio\");\n }\n break;\n //Salir\n case R.id.buttonSortir:\n Intent i = new Intent(getApplicationContext(), Localitzacio.class);\n stopService(i);\n btnStop.setEnabled(true);\n Log.i(\"CERRAR\",\"Se cierra el servicio\");\n break;\n }\n }\n });\n\n\n\n }", "public void deshabilitarBotones()\n\t{\n\t\tbotonPlay.setClickable(false);\n\t\tbotonPause.setClickable(false);\n\t\tbotonPonerRingtone.setClickable(false);\n\t\tbotonDescargar.setClickable(false);\n\t}", "public void habilitabotones() {\n\n\tif (IR.sensmci == true) {\n\t btnmci1.setEnabled(true);\n\t btnmci1.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t //Instancio el panel lecturas (MCI-1) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_1) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 1\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci1.setEnabled(false);\n\n\tif (IR.sensmci2 == true) {\n\t btnmci2.setEnabled(true);\n\t btnmci2.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-2) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_2) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 2\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci2.setEnabled(false);\n\n\tif (IR.sensmci3 == true) {\n\t btnmci3.setEnabled(true);\n\t btnmci3.addMouseListener(new MouseAdapter() {\n\n\t\t\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-3) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_3) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 3\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci3.setEnabled(false);\n\n\tif (IR.sensmci4 == true) {\n\t btnmci4.setEnabled(true);\n\t btnmci4.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-4) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_4) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 4\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci4.setEnabled(false);\n\n\tif (IR.sensbt2 == true) { // Revisar comportamiento y\n\t\t\t\t // necesidad del hiloinfo en bt2\n\n\t btnbt21.setEnabled(true);\n\t btnbt21.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t \n\t\t //Instancio el panel lecturas (BT2-1) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_5) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-1\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t // IR.panelecturasbt2.setActualizar(true);\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasbt2\n\t\t // .setHilomuestrainfo(IR.panelecturasbt2\n\t\t // .getHilomuestrainfo());\n\t\t // IR.panelecturasbt2.hiloinfo = new Thread(\n\t\t // IR.panelecturasbt2.hilomuestrainfo);\n\t\t // IR.panelecturasbt2.hiloinfo.start();\n\n\t\t}\n\t });\n\t} else\n\t btnbt21.setEnabled(false);\n\n\tif (IR.sensbt22 == true) {\n\t btnbt22.setEnabled(true);\n\t btnbt22.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-2) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_6) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-2\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt22.setEnabled(false);\n\n\tif (IR.sensbt23 == true) {\n\t btnbt23.setEnabled(true);\n\t btnbt23.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-3) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_7) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-3\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt23.setEnabled(false);\n\n\tif (IR.sensbt24 == true) {\n\t btnbt24.setEnabled(true);\n\t btnbt24.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-4) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_8){\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\"pulsos\", IR.panelecturasbt2);\n\t\t\tIR.sensores.get(i).addPropertyChangeListener(\"lectura\",\n\t\t\t\tIR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-4\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt24.setEnabled(false);\n\n\tif (IR.hayplacasens) {\n\t btnplaca_sens.setEnabled(true);\n\t btnplaca_sens.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (Sensores) al pulsar el boton.\n\t\t IR.panelecturasens = Panelecturasens.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_SENSORES_0) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasens);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasens);\n\t\t\t \n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasens.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasens);\n\t\t IR.panelecturasens.setVisible(true);\n\t\t}\n\t });\n\t} else\n\t btnplaca_sens.setEnabled(false);\n\n }", "private void setActions(){\n login.setOnAction(e->login());\n simulate.setOnAction(e->simulate());\n scoreBoardButton.setOnAction(e->scoreBoard());\n viewBracket.setOnAction(e->viewBracket(selectedBracket, playerMap));\n clearButton.setOnAction(e->clear());\n resetButton.setOnAction(e->reset());\n finalizeButton.setOnAction(e->finalizeBracket());\n }", "private void registerCommands() {\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtick\")\n\t\t\t\t\t\t.then(argument(\"Number of Ticks Between Sends\", integer())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.timeBetween = getInteger(c, \"Number of Ticks Between Sends\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message will be sent every \" + getInteger(c, \"Number of Ticks Between Sends\") + \" ticks.\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurphrase [Recurring Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurphrase\")\n\t\t\t\t\t\t.then(argument(\"Recurring Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentPhrase = getString(c, \"Recurring Phrase\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + getString(c, \"Recurring Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurtoggle\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtoggle\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.persistentChat = !config.persistentChat;\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message has been turned \" + (config.persistentChat ? \"on\" : \"off\") + \".\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//arrecur [Enabled?]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecur\")\n\t\t\t\t\t\t.then(argument(\"Enabled?\", bool())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentChat = getBool(c, \"Enabled?\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + (config.persistentChat ? \"on\" : \"off\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//aradditem [Item Name] [Trigger Term]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddterm\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string())\n\t\t\t\t\t\t\t\t.then(argument(\"Trigger Term\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.terms.add(getString(c, \"Trigger Term\") + \"|\" + getString(c, \"Item Name\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tHelper.setupChatMessages();\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added term \\\"\" + getString(c, \"Trigger Term\") + \"\\\" to item \\\"\" + getString(c, \"Item Name\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t})))\n\t\t));\n\t\t//araddin [In Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddin\")\n\t\t\t\t\t\t.then(argument(\"In Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.ins.add(getString(c, \"In Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added in-phrase \\\"\" + getString(c, \"In Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//araddout [Out Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddout\")\n\t\t\t\t\t\t.then(argument(\"Out Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.outs.add(getString(c, \"Out Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added out-phrase \\\"\" + getString(c, \"Out Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arreload\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arreload\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tarreload();\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"AutoReply config reloaded.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//araddshopitem [Item Name] [Quantity] [Price]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddshopitem\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string()).then(argument(\"Quantity\", string()).then(argument(\"Price\", string())\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.shopItems.add(getString(c, \"Item Name\") + \"|\" + getString(c, \"Quantity\") + \"|$\" + getString(c, \"Price\"));\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added \" + getString(c, \"Item Name\") + \" to shop stock.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t}))))\n\t\t));\n\t}", "private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\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}", "private void cargarBotones() {\n recordar_pass = findViewById(R.id.button_recordar);\n recordar_pass.setOnClickListener(new View.OnClickListener() {\n public void onClick(final View v) {\n //Antes de hacer la peticion al servidor hacemos las comprobaciones necesarias.\n if (textInputLayout_email.getText().toString().isEmpty() || textInputLayout_email.getText().toString().equals(\"\")) {\n mensaje=getResources().getString(R.string.debe_indicar_nombre_usuario_registrado);\n Snackbar.make(v, mensaje, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n } else {\n // Para cerrar el teclado antes de mostrar el AlertDialog\n InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(textInputLayout_email.getWindowToken(), 0);\n //Dialogo que confirma el cambio de contraseña informado al usuario que se\n // le enviara un correo con la nueva contraseña auto generada.\n AlertDialog alertDialog = new AlertDialog.Builder(RecordarPass.this).create();\n alertDialog.setTitle(getResources().getString(R.string.recordarpasstitulo));\n alertDialog.setMessage(getResources().getString(R.string.mensaje_recordar_pass));\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE, getResources().getString(R.string.aceptar), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n JSONObject json = new JSONObject();\n try {\n json.put(Tags.USUARIO, textInputLayout_email.getText().toString());\n //Se hace la peticion al servidor con el json que lleva dentro el email del usuario.\n json = JSONUtil.hacerPeticionServidor(\"usuarios/java/recuperar_contrasena/\", json);\n\n\n String p = json.getString(Tags.RESULTADO);\n //Comprobamos la conexión con el servidor\n if (p.contains(Tags.ERRORCONEXION)) {\n //Si no conecta imprime un snackbar\n mensaje=getResources().getString(R.string.error_conexion);\n Snackbar.make(v, mensaje, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n\n// return false;\n }\n else if (p.contains(Tags.OK)) {\n //Si el servidor devuelve OK y se ha generado una nueva\n // contraseña porque el usuario es correcto, tendra que mirar\n // el su correo para poder acceder a la apliacion con la nueva contraseña.\n mensaje= getResources().getString(R.string.mensaje_enviado);\n Snackbar.make(v, mensaje, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n finish();\n }\n //resultado falla por otro error\n else if (p.contains(Tags.ERROR)) {\n String msg = json.getString(Tags.MENSAJE);\n Snackbar.make(v, msg, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n\n// return false;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n dialog.dismiss();\n }\n });\n\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, getResources().getString(R.string.cancelar), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n }\n }\n\n });\n }", "private void sendGameCommand(){\n\n }", "public ConfigureRobot()\n {\n Scheduler.getInstance().removeAll(); //remove all running commands\n addSequential(new BrakeOpen(),2);\n addSequential(new WaitCommand(1));\n addSequential(new LiftToBottom(),3);\n }", "private void cargarBotones() throws Exception{\n Image img = null;\n Image img2 = null;\n try {\n img = Lienzo.cargarImagen(\"imagenes/skip.png\");\n //img2 = Lienzo.cargarImagen(\"imagenes/skipHover.png\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n //añadimos los botones al menu\n Boton b =new BotonGeneral(img, img, \"Menu\", 900, 550, img.getWidth(null), img.getHeight(null));\n new ObservadorCredits(b);\n botones.add(b);\n }", "public void executeBot(){\n if(botSignal){\n if(bot != null){\n bot.execute();\n }\n }\n botSignal=false;\n }", "void enableMod();", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "public void iniciarComponentes(){\n\n crearPanel();\n colocarBotones();\n \n }", "public void activarAceptar() {\n aceptar = false;\n }", "public void startSocial() {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tSystem.out.println(Constants.Message.WELCOME_MESSAGE);\n\t\tSystem.out.println(Constants.Message.DO_ACTION_MESSAGE);\n\n\t\twhile(scanner.hasNext()) {\n\t\t\tString command = scanner.nextLine();\n\t\t\tCommandStrategy commandStrategy = chooseStrategy(command);\n\t\t\tif(commandStrategy != null) {\n\t\t\t\tcommandStrategy.execute(command);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Constants.Message.DO_ACTION_MESSAGE);\n\t\t}\n\t}", "private void activerEvenements() {\n creerCompte.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n creerCompte();\n }\n });\n seConnecter.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n startActivity(new Intent(CreerCompte.this, Login.class));\n }\n });\n }", "private void getGameCommands(){\n\n }", "private void crearBotones() {\n\t\tJButton botonTropa;\n\t\tArrayList<Tropa> tropasJugador = getJuego().getTurnoActual().getJugador().getTropas();\n\t\tint posicion = 0;\n\t\tfor (int i = 0; i < CANTIDADBOTONES; ++i) {\n\t\t\tif (tropasJugador.size() > i && !tropasJugador.get(i).isEnJuego()) {\n\t\t\t\tbotonTropa = new JButton(\" \" + tropasJugador.get(i).getNombre());\n\t\t\t\tponerIconosBotones(botonTropa, tropasJugador.get(i).getNombre());\n\n\t\t\t} else if (tropasJugador.size() > i && tropasJugador.get(i).isEnJuego()) {\n\t\t\t\tbotonTropa = new JButton(\" \" + tropasJugador.get(i).getNombre() + \" (En juego)\");\n\t\t\t\tponerIconosBotones(botonTropa, tropasJugador.get(i).getNombre());\n\t\t\t\tbotonTropa.setEnabled(false);\n\t\t\t} else {\n\t\t\t\tposicion = i + 1;\n\t\t\t\tbotonTropa = new JButton(\"Tropa \" + posicion);\n\t\t\t\tbotonTropa.setEnabled(false);\n\t\t\t}\n\n\t\t\tbotones.add(botonTropa);\n\t\t\tpanelBotones.add(botonTropa);\n\t\t}\n\t}", "public void eventos() {\n btnAbrir.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n btnAbrirActionPerformed(evt);\n }\n });\n }", "public void registerCommands() {\n\t CommandSpec cmdCreate = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdCreate.getInstance())\n\t .permission(\"blockyarena.create\")\n\t .build();\n\n\t CommandSpec cmdRemove = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdRemove.getInstance())\n\t .permission(\"blockyarena.remove\")\n\t .build();\n\n\t CommandSpec cmdJoin = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"mode\")))\n\t )\n\t .executor(CmdJoin.getInstance())\n\t .build();\n\n\t CommandSpec cmdQuit = CommandSpec.builder()\n\t .executor(CmdQuit.getInstance())\n\t .build();\n\n\t CommandSpec cmdEdit = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t GenericArguments.optional(onlyOne(GenericArguments.string(Text.of(\"param\"))))\n\t )\n\t .executor(CmdEdit.getInstance())\n\t .permission(\"blockyarena.edit\")\n\t .build();\n\n\t CommandSpec cmdKit = CommandSpec.builder()\n\t .arguments(onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdKit.getInstance())\n\t .build();\n\n\t CommandSpec arenaCommandSpec = CommandSpec.builder()\n\t .child(cmdEdit, \"edit\")\n\t .child(cmdCreate, \"create\")\n\t .child(cmdRemove, \"remove\")\n\t .child(cmdJoin, \"join\")\n\t .child(cmdQuit, \"quit\")\n\t .child(cmdKit, \"kit\")\n\t .build();\n\n\t Sponge.getCommandManager()\n\t .register(BlockyArena.getInstance(), arenaCommandSpec, \"blockyarena\", \"arena\", \"ba\");\n\t }", "public void sendeLobby();", "private void abrirVentanaChatPrivada() {\n\t\tthis.chatPublico = new MenuVentanaChat(\"Sala\", this, false);\n\t}", "public void action() {\n\t\t\n\t\tjugar.setOnAction(f->{\n\n\t\t\tMain.pantallaPersonaje();\n\t\t});\n\t\n\t\tpuntajes.setOnAction(f->{\n\t\t\tMain.pantallaPuntajes();\n\t\t});\n\t\n\t\n\t}", "public void interactionOneTouch(int x, int y){\n if(this.getBotones().getBotonRecHorizLeft().contains(x,y)){\n Log.d(TAG,\"boton Left\");\n this.getJugadora().setDireccio(1);\n this.getJugadora().setPosicion(this.getJugadora().getPosicion().x - this.getJugadora().getSpeed(),this.getJugadora().getPosicion().y);\n }else if(this.getBotones().getBotonRecHorizRigth().contains(x,y)) {\n Log.d(TAG, \"boton Right\");\n this.getJugadora().setDireccio(0);\n this.getJugadora().setPosicion(this.getJugadora().getPosicion().x + this.getJugadora().getSpeed(),this.getJugadora().getPosicion().y);\n } else if (this.getBotones().getBotonRecVertArriba().contains(x,y)){\n Log.d(TAG, \"boton Arriba\");\n this.getJugadora().setDireccio(2);\n this.getJugadora().setPosicion(this.getJugadora().getPosicion().x,this.getJugadora().getPosicion().y - this.getJugadora().getSpeed());\n } else if (this.getBotones().getBotonRecVertBajo().contains(x,y)){\n Log.d(TAG, \"boton Abajo\");\n this.getJugadora().setDireccio(3);\n this.getJugadora().setPosicion(this.getJugadora().getPosicion().x,this.getJugadora().getPosicion().y + this.getJugadora().getSpeed());\n }\n if(this.getBotones().getBotonCercleA().contains(x,y)){\n Log.d(TAG, \"boton A\");\n }\n if(this.getBotones().getBotonCercleB().contains(x,y)){\n Log.d(TAG, \"boton B\");\n }\n\n // mover player , interaccion de una sola respuesta por cada click\n\n\n\n }", "public void activate() {\n\t\t// set cooldown counter\n\t}", "private void registerCommands() {\n }", "public void executeGame(String[] names) {\n IBuilder builder = new Builder();\n builder.newBoard(this);\n\n\n graphicInterface.connect(b);\n\n //get dino names\n\n\n for (int z = 0; z < 4; z++) {\n dinos[z].setName(names[z]);\n }\n\n\n //print game\n graphicInterface.connect(dinos);\n graphicInterface.connect(b);\n graphicInterface.printGame();\n\n //buttonUpperLeft - 7, buttonUp - 8, buttonUpperRight - 9, buttonLeft - 4, buttonEgg - 5, buttonRight - 6, buttonLowerLeft - 1, buttonDown - 2, buttonLowerRight - 3;\n graphicInterface.getMenuBar().buttonUpperLeft.addActionListener(actionEvent -> {\n System.out.println(\"reconheceu botao 7 apertado\");\n command = 7;\n turno++;\n System.out.println(\"c\" + command + \"t\" + turno);\n\n });\n\n graphicInterface.getMenuBar().buttonUp.addActionListener(actionEvent -> {\n System.out.println(\"reconheceu botao 8 apertado\");\n command = 8;\n turno++;\n System.out.println(\"c\" + command + \"t\" + turno);\n\n\n });\n\n\n graphicInterface.getMenuBar().buttonUpperRight.addActionListener(actionEvent -> {\n System.out.println(\"reconheceu botao 9 apertado\");\n command = 9;\n turno++;\n System.out.println(\"c\" + command + \"t\" + turno);\n\n });\n\n\n graphicInterface.getMenuBar().buttonLeft.addActionListener(actionEvent -> {\n System.out.println(\"reconheceu botao 4 apertado\");\n command = 4;\n turno++;\n System.out.println(\"c\" + command + \"t\" + turno);\n\n });\n\n graphicInterface.getMenuBar().buttonEgg.addActionListener(actionEvent -> {\n System.out.println(\"reconheceu botao 5 apertado\");\n command = 5;\n turno++;\n System.out.println(\"c\" + command + \"t\" + turno);\n\n });\n\n graphicInterface.getMenuBar().buttonRight.addActionListener(actionEvent -> {\n System.out.println(\"reconheceu botao 6 apertado\");\n command = 6;\n turno++;\n System.out.println(\"c\" + command + \"t\" + turno);\n\n });\n\n graphicInterface.getMenuBar().buttonLowerLeft.addActionListener(actionEvent -> {\n System.out.println(\"reconheceu botao 1 apertado\");\n command = 1;\n turno++;\n System.out.println(\"c\" + command + \"t\" + turno);\n\n });\n\n graphicInterface.getMenuBar().buttonDown.addActionListener(actionEvent -> {\n System.out.println(\"reconheceu botao 2 apertado\");\n command = 2;\n turno++;\n System.out.println(\"c\" + command + \"t\" + turno);\n\n });\n\n graphicInterface.getMenuBar().buttonLowerRight.addActionListener(actionEvent -> {\n System.out.println(\"reconheceu botao 3 apertado\");\n command = 3;\n turno++;\n System.out.println(\"c: \" + command + \" t: \" + turno + \" t+1: \" + turno_anterior + \" cond: \" + (turno == turno_anterior + 1));\n\n });\n\n while (atLeastOneAlive()) {\n System.out.println();\n if (turno == turno_anterior + 1) {\n\n\n dinoPos = turno % 4;\n\n System.out.println(\"entrou no if do turno: dino \" + dinoPos);\n\n\n if (dinos[dinoPos].getIsAlive()) {\n System.out.println(\"dino \" + dinoPos + \"vivo \");\n if (command != 0) {\n System.out.println(\"num comando \" + command);\n System.out.println(\"pos dino \" + dinoPos);\n System.out.println(\"turno \" + turno);\n //System.out.println(\"posicoes iniciais do dino: i:\" + dinos[dinoPos].getI() + \"j:\" + dinos[dinoPos].getJ());\n makeMove(command, dinoPos);\n //System.out.println(\"posicoes iniciais do dino: i:\" + dinos[dinoPos].getI() + \"j:\" + dinos[dinoPos].getJ());\n command = 0;\n }\n }\n else {\n turno++;\n\n }\n turno_anterior++;\n\n if (dinoPos == 3) {\n b.insertLavas(volcanoes);\n\n graphicInterface.updateBoardView(next(dinoPos));\n roundNumber++;\n if(winnersNum != 0){\n //one or more have reached the fort\n //decide who wins\n int winner = whoWins(winnersNum);\n System.out.println(dinos[winner].getName() + \"has won the game\");\n break;\n }\n\n }\n }\n }\n\n if (!atLeastOneAlive()){\n System.out.println(\"No dino has won this round\");\n }\n\n }", "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 kickStart() {\n startLobby();\n }", "@Override\n protected InteractionResponse gbExecute(Interaction interaction) throws GiveawayException\n {\n if(!interaction.getMember().hasPermission(Permission.MANAGE_GUILD))\n throw new GiveawayException(LocalizedMessage.ERROR_USER_PERMISSIONS);\n \n WebLocale wl = interaction.getEffectiveLocale();\n \n CommandInteractionDataOption group = interaction.getCommandData().getOptions().get(0);\n switch(group.getName())\n {\n case \"set\":\n CommandInteractionDataOption cmd = group.getOptions().get(0);\n switch(cmd.getName())\n {\n //case \"role\":\n //long id = cmd.getOptionByName(\"role\").getIdValue();\n //bot.getDatabase().setGuildManager(interaction.getGuildId(), id);\n //return respondSuccess(LocalizedMessage.SUCCESS_SETTINGS_ROLE.getLocalizedMessage(wl, \"<@&\" + id + \">\"));\n case \"color\":\n String col = cmd.getOptionByName(\"hex\").getStringValue();\n Color color = OtherUtil.parseColor(col);\n if(color == null)\n return respondError(LocalizedMessage.ERROR_INVALID_COLOR.getLocalizedMessage(wl, col));\n bot.getDatabase().setGuildColor(interaction.getGuildId(), color);\n return respondSuccess(LocalizedMessage.SUCCESS_SETTINGS_COLOR.getLocalizedMessage(wl, \"#\" + Integer.toHexString(color.getRGB() & 0xFFFFFF).toUpperCase()));\n case \"emoji\":\n String em = cmd.getOptionByName(\"emoji\").getStringValue();\n EmojiParser.ParsedEntryButton pe = bot.getGiveawayManager().getEmojiManager().parse(em);\n if(pe.isFree() || bot.getDatabase().getPremiumLevel(interaction.getGuildId()).customEmojis)\n {\n if(pe.text != null && pe.text.length() > MAX_BUTTON_TEXT_LENGTH)\n return respondError(LocalizedMessage.ERROR_INVALID_EMOJI_LENGTH.getLocalizedMessage(wl, MAX_BUTTON_TEXT_LENGTH));\n bot.getDatabase().setGuildEmoji(interaction.getGuildId(), pe.render());\n return respondSuccess(LocalizedMessage.SUCCESS_SETTINGS_EMOJI.getLocalizedMessage(wl, pe.render()));\n }\n else return respondError(LocalizedMessage.ERROR_INVALID_EMOJI_CHOICE.getLocalizedMessage(wl, bot.getGiveawayManager().getEmojiManager().getFreeEmoji()));\n default:\n return respondError(\"Unknown settings command.\");\n }\n case \"show\":\n GuildSettings gs = bot.getDatabase().getSettings(interaction.getGuildId());\n String text = LocalizedMessage.INFO_SETTINGS_OWNER.getLocalizedMessage(wl) + \": <@\" + gs.getOwnerId() + \">\\n\" \n + LocalizedMessage.INFO_SETTINGS_PREMIUM.getLocalizedMessage(wl) + \": **\" + bot.getDatabase().getPremiumLevel(gs.getGuildId(), gs.getOwnerId()) + \"**\\n\" \n //+ LocalizedMessage.INFO_SETTINGS_ROLE.getLocalizedMessage(wl) + \": \" + (gs.getManagerRoleId() == 0L ? \"N/A\" : \"<@&\" + gs.getManagerRoleId() + \">\") + \"\\n\"\n + LocalizedMessage.INFO_SETTINGS_EMOJI.getLocalizedMessage(wl) + \": \" + gs.getEmoji() + \"\\n\"\n + LocalizedMessage.INFO_SETTINGS_LOCALE.getLocalizedMessage(wl) + \": \" + gs.getLocale().getTextualName() + \"\\n\\n\"\n + LocalizedMessage.INFO_SETTINGS_ETC.getLocalizedMessage(wl);\n return new MessageCallback(new SentMessage.Builder()\n .setContent(Constants.YAY + \" **GiveawayBot** \" + LocalizedMessage.INFO_SETTINGS.getLocalizedMessage(wl))\n .addEmbed(new Embed.Builder()\n .setColor(gs.getColor())\n .setDescription(text).build()).build());\n default:\n return respondError(\"Unknown settings command.\");\n }\n }", "void spawnBot( String className, String login, String password, String messager ) {\n CoreData cdata = m_botAction.getCoreData();\n long currentTime;\n\n String rawClassName = className.toLowerCase();\n BotSettings botInfo = cdata.getBotConfig( rawClassName );\n\n if( botInfo == null ) {\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" tried to spawn bot of type \" + className + \". Invalid bot type or missing CFG file.\" );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader tried to spawn bot of type \" + className + \". Invalid bot type or missing CFG file.\" );\n\n m_botAction.sendSmartPrivateMessage( messager, \"That bot type does not exist, or the CFG file for it is missing.\" );\n return;\n }\n\n Integer maxBots = botInfo.getInteger( \"Max Bots\" );\n Integer currentBotCount = m_botTypes.get( rawClassName );\n\n if( maxBots == null ) {\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" tried to spawn bot of type \" + className + \". Invalid settings file. (MaxBots improperly defined)\" );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader tried to spawn bot of type \" + className + \". Invalid settings file. (MaxBots improperly defined)\" );\n\n m_botAction.sendSmartPrivateMessage( messager, \"The CFG file for that bot type is invalid. (MaxBots improperly defined)\" );\n return;\n }\n\n if( login == null && maxBots.intValue() == 0 ) {\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" tried to spawn bot of type \" + className + \". Spawning for this type is disabled on this hub.\" );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader tried to spawn bot of type \" + className + \". Spawning for this type is disabled on this hub.\" );\n\n m_botAction.sendSmartPrivateMessage( messager, \"Bots of this type are currently disabled on this hub. If you are running another hub, please try from it instead.\" );\n return;\n }\n\n if( currentBotCount == null ) {\n currentBotCount = new Integer( 0 );\n m_botTypes.put( rawClassName, currentBotCount );\n }\n\n if( login == null && currentBotCount.intValue() >= maxBots.intValue() ) {\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" tried to spawn a new bot of type \" + className + \". Maximum number already reached (\" + maxBots + \")\" );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader tried to spawn a new bot of type \" + className + \". Maximum number already reached (\" + maxBots + \")\" );\n\n m_botAction.sendSmartPrivateMessage( messager, \"Maximum number of bots of this type (\" + maxBots + \") has been reached.\" );\n return;\n }\n\n String botName, botPassword;\n currentBotCount = new Integer( getFreeBotNumber( botInfo ) );\n\n if( login == null || password == null ) {\n botName = botInfo.getString( \"Name\" + currentBotCount );\n botPassword = botInfo.getString( \"Password\" + currentBotCount );\n } else {\n botName = login;\n botPassword = password;\n }\n\n Session childBot = null;\n\n try {\n // FIXME: KNOWN BUG - sometimes, even when it detects that a class is updated, the loader\n // will load the old copy/cached class. Perhaps Java itself is caching the class on occasion?\n if( m_loader.shouldReload() ) {\n System.out.println( \"Reinstantiating class loader; cached classes are not up to date.\" );\n resetRepository();\n m_loader = m_loader.reinstantiate();\n }\n\n Class<? extends SubspaceBot> roboClass = m_loader.loadClass( \"twcore.bots.\" + rawClassName + \".\" + rawClassName ).asSubclass(SubspaceBot.class);\n String altIP = botInfo.getString(\"AltIP\" + currentBotCount);\n int altPort = botInfo.getInt(\"AltPort\" + currentBotCount);\n String altSysop = botInfo.getString(\"AltSysop\" + currentBotCount);\n\n if(altIP != null && altSysop != null && altPort > 0)\n childBot = new Session( cdata, roboClass, botName, botPassword, currentBotCount.intValue(), m_group, altIP, altPort, altSysop, true);\n else\n childBot = new Session( cdata, roboClass, botName, botPassword, currentBotCount.intValue(), m_group, true);\n } catch( ClassNotFoundException cnfe ) {\n Tools.printLog( \"Class not found: \" + rawClassName + \".class. Reinstall this bot?\" );\n return;\n }\n\n currentTime = System.currentTimeMillis();\n\n if( m_lastSpawnTime + SPAWN_DELAY > currentTime ) {\n m_botAction.sendSmartPrivateMessage( messager, \"Subspace only allows a certain amount of logins in a short time frame. Please be patient while your bot waits to be spawned.\" );\n\n if( m_spawnQueue.isEmpty() == false ) {\n int size = m_spawnQueue.size();\n\n if( size > 1 ) {\n m_botAction.sendSmartPrivateMessage( messager, \"There are currently \" + m_spawnQueue.size() + \" bots in front of yours.\" );\n } else {\n m_botAction.sendSmartPrivateMessage( messager, \"There is only one bot in front of yours.\" );\n }\n } else {\n m_botAction.sendSmartPrivateMessage( messager, \"You are the only person waiting in line. Your bot will log in shortly.\" );\n }\n\n if(messager != null)\n m_botAction.sendChatMessage( 1, messager + \" in queue to spawn bot of type \" + className );\n else\n m_botAction.sendChatMessage( 1, \"AutoLoader in queue to spawn bot of type \" + className );\n }\n\n String creator;\n\n if(messager != null) creator = messager;\n else creator = \"AutoLoader\";\n\n ChildBot newChildBot = new ChildBot( rawClassName, creator, childBot );\n addToBotCount( rawClassName, 1 );\n m_botStable.put( botName, newChildBot );\n m_spawnQueue.add( newChildBot );\n }", "protected void volverInicio() {\n\t\tIntent i = new Intent(this, ImcActivity.class);\n\t\tthis.startActivity(i);\n\t\t\n\t}", "@Override\r\n public void onMessage(MessageEvent message) {\r\n String newMessage = message.getMessage();\r\n String response;\r\n\r\n //split the message on spaces to identify the command\r\n String[] messageArray = newMessage.split(\" \");\r\n \r\n switch (messageArray[0]) {\r\n case \"!command\":\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n if (messageArray.length == 2) {\r\n if (messageArray[1].equals(\"off\")) {\r\n commandsActive = false;\r\n } \r\n if (messageArray[1].equals(\"on\")) {\r\n commandsActive = true;\r\n }\r\n }\r\n }\r\n break;\r\n //command to make a custom command for the bot\r\n case \"!addcom\":\r\n if (commandsActive) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n response = addCom(messageArray, message.getChannel().getName());\r\n message.getChannel().send().message(response);\r\n } \r\n else {\r\n message.respond(\"You are not allowed to add commands.\");\r\n }\r\n }\r\n break;\r\n case \"!commands\":\r\n if (commandsActive) {\r\n if (messageArray.length ==1) {\r\n ArrayList<String> commands = manager.getCommands(message.getChannel().getName());\r\n String commandList = \"The custom commands available to everyone for this channel are: \";\r\n while (!commands.isEmpty()) {\r\n commandList += commands.remove(0) + \", \";\r\n }\r\n message.getChannel().send().message(commandList);\r\n }\r\n }\r\n break;\r\n //command to delete a custom command from the bot\r\n case \"!delcom\":\r\n if (commandsActive) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n response = delCom(messageArray[1], message.getChannel().getName());\r\n message.getChannel().send().message(response);\r\n } \r\n else {\r\n message.respond(\"You are not allowed to remove commands.\");\r\n }\r\n }\r\n break;\r\n //command to edit a custom command the bot has\r\n case \"!editcom\":\r\n if (commandsActive) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n response = editCom(messageArray, message.getChannel().getName());\r\n message.getChannel().send().message(response);\r\n } \r\n else {\r\n message.respond(\"You are not allowed to edit commands.\");\r\n }\r\n }\r\n break;\r\n\r\n //default message handling for custom commands\r\n default:\r\n if (commandsActive) {\r\n if (message.getMessage().startsWith(\"!\") && !messageArray[0].equals(\"!permit\")&& !messageArray[0].equals(\"!spam\")) {\r\n customCommands(message);\r\n }\r\n }\r\n break;\r\n }\r\n }", "public void ejecutaMetodo() {\n\t\r\n}", "public void action(BotInstance bot, Message message);", "public void listenButtons() {\n\n playGameButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.PLAY_GAME;\n startActivity();\n }\n });\n\n freePlayButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.FREE_PLAY;\n startActivity();\n }\n });\n\n informationIcon.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mActivities = MyActivities.POP_UP;\n startActivity();\n }\n });\n }", "public void start(){\n started = true;\n bot.setHumanInputEnabled(false);\n scriptStart();\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n tembak();\r\n gerakKiri();\r\n gerakKanan();\r\n \r\n \r\n \r\n }", "private void tournaments() {\n\tstartActivity (new Intent(getApplicationContext(), Tournaments.class));\n\n\t}", "private void handleCommands() {\n for (Command c : commands) {\n try {\n if (!game.isPaused()) {\n switch (c) {\n case INTERACT:\n game.interact();\n break;\n case PRIMARY_ATTACK:\n game.shoot(mouse.getX(), mouse.getY());\n break;\n case SECONDARY_ATTACK:\n game.specialAbility(mouse.getX(), mouse.getY());\n break;\n case PAUSE:\n game.pauseGame();\n break;\n }\n }\n } catch (Exception ignored) { }\n }\n }", "private void customCommands(MessageEvent message) {\r\n String command = message.getMessage();\r\n \r\n if (!reservedCommands.contains(command)) {\r\n String[]info;\r\n info = manager.getCommandFromDatabase(command, message.getChannel().getName());\r\n\r\n //checks if the command is in custom mod commands\r\n if (info[1].matches(\"-m\")) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"You're not allowed to use this command.\");\r\n }\r\n }\r\n //checks if the command is in the custom commands available to everyone\r\n else if (info[1].matches(\"-e\")) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"No such command exists\");\r\n }\r\n }\r\n }", "public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }", "public void autonomous() {\n for (int i = 0; i < teleopControllers.size(); i++) {\n ((EventController) teleopControllers.elementAt(i)).disable();\n }\n for (int i = 0; i < autoControllers.size(); i++) {\n ((EventController) autoControllers.elementAt(i)).enable();\n }\n\n }", "public void atenderTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" atendido!\");\n notificarTodos();\n }", "private void agregarBotones() {\n boton = new JButton[20];\r\n //INICIALIZAMOS LOS BOTONES\r\n boton[0]=new JButton(\"CE\");\r\n boton[1]=new JButton(\"\");\r\n boton[2]=new JButton(\"\");\r\n boton[3]=new JButton(\"\");\r\n boton[4]=new JButton(\"7\");\r\n boton[5]=new JButton(\"8\");\r\n boton[6]=new JButton(\"9\");\r\n boton[7]=new JButton(\"/\");\r\n boton[8]=new JButton(\"4\");\r\n boton[9]=new JButton(\"5\");\r\n boton[10]=new JButton(\"6\");\r\n boton[11]=new JButton(\"*\");\r\n boton[12]=new JButton(\"1\");\r\n boton[13]=new JButton(\"2\");\r\n boton[14]=new JButton(\"3\");\r\n boton[15]=new JButton(\"-\");\r\n boton[16]=new JButton(\"0\");\r\n boton[17]=new JButton(\".\");\r\n boton[18]=new JButton(\"=\");\r\n boton[19]=new JButton(\"+\");\r\n //AGREAMOS LOS BOTONES AL PANEL BOTONES\r\n for(int i=0;i<20;i++){\r\n panel_botones.add(boton[i]);\r\n }\r\n //EVENTOS DE LOS BOTONES\r\n //OPERACIONES\r\n boton[19].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n if(op1!=0)\r\n op1=op1+Double.parseDouble(caja.getText());\r\n else\r\n op1=Double.parseDouble(caja.getText());\r\n operacion=\"suma\";\r\n caja.setText(\"\");\r\n }catch(Exception err){}\r\n \r\n }\r\n });\r\n boton [15].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n if(op1!=0)\r\n op1=op1-Double.parseDouble(caja.getText());\r\n else\r\n op1=Double.parseDouble(caja.getText());\r\n operacion=\"resta\";\r\n caja.setText(\"\");\r\n }catch(Exception err){}\r\n }\r\n });\r\n boton[11].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n if(op1!=0)\r\n op1=op1*Double.parseDouble(caja.getText());\r\n else\r\n op1=Double.parseDouble(caja.getText());\r\n operacion=\"multiplicacion\";\r\n caja.setText(\"\");\r\n }catch(Exception err){}\r\n }\r\n });\r\n boton[7].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n if(op1!=0)\r\n op1=op1/Double.parseDouble(caja.getText());\r\n else\r\n op1=Double.parseDouble(caja.getText());\r\n operacion=\"division\";\r\n caja.setText(\"\");\r\n }catch(Exception err){}\r\n }\r\n });\r\n //NUMEROS Y PUNTO DECIMAL\r\n boton[4].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"7\");\r\n }\r\n });\r\n boton[5].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"8\");\r\n }\r\n });\r\n boton[6].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"9\");\r\n }\r\n });\r\n boton[8].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"4\");\r\n }\r\n });\r\n boton[9].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"5\");\r\n }\r\n });\r\n boton[10].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"6\");\r\n }\r\n });\r\n boton[12].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"1\");\r\n }\r\n });\r\n boton[13].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"2\");\r\n }\r\n });\r\n boton[14].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"3\");\r\n }\r\n });\r\n boton[16].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\"0\");\r\n }\r\n });\r\n boton[17].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n if(nueva){caja.setText(\"\");nueva=false;}\r\n caja.setText(caja.getText()+\".\");\r\n }\r\n });\r\n //IGUAL\r\n boton[18].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n try{\r\n op2=Double.parseDouble(caja.getText());\r\n }catch(Exception err){}\r\n if(operacion.equals(\"suma\")){\r\n double res=op1+op2;\r\n caja.setText(String.valueOf(res));\r\n op1=op2=0;\r\n operacion=\"\";\r\n }else if(operacion.equals(\"resta\")){\r\n double res=op1-op2;\r\n caja.setText(String.valueOf(res));\r\n op1=op2=0;\r\n operacion=\"\";\r\n }else if(operacion.equals(\"multiplicacion\")){\r\n double res=op1*op2;\r\n caja.setText(String.valueOf(res));\r\n op1=op2=0;\r\n operacion=\"\";\r\n }else if(operacion.equals(\"division\")){\r\n double res=op1/op2;\r\n caja.setText(String.valueOf(res));\r\n op1=op2=0;\r\n operacion=\"\";\r\n }\r\n nueva=true;\r\n }\r\n });\r\n //CE\r\n boton[0].addActionListener(new ActionListener(){\r\n @Override\r\n public void actionPerformed(ActionEvent evt){\r\n caja.setText(\"\");\r\n op1=op2=0;\r\n operacion=\"\";\r\n }\r\n });\r\n \r\n }", "public void enableAgentInitiateChat() throws Exception {\n\t\twdriver.findElement(By.xpath(WebData.agentInitiateChatDisabled)).isDisplayed();\n\t\twdriver.findElement(By.xpath(WebData.agentInitiateChatDisabled)).click();\n\t\twdriver.findElement(By.xpath(WebData.clickConfirmButton)).click();\n\t}", "private void manejoDeModales(){\n botonTipo1.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n comprar_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto1);\n });\n botonTipo2.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto2);\n }); \n botonTipo3.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto3);\n }); \n botonCategoria1.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n comprar_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto1);\n }); \n botonCategoria2.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto2);\n }); \n botonCategoria3.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto3);\n }); \n }", "public void notifyJoueurActif();", "public void mantenimiento(){\n\t}", "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}", "void spawnBot( String className, String messager ) {\n spawnBot( className, null, null, messager);\n }", "protected void execute() {\n \toi.updateToggleLift();\n if(oi.toggleOnLift){\n \t// The commands here will occur if the TorqueLift toggle switch\n \t// is activated. All code here will only run after the button\n \t// has been toggled.\n \tif (limitswitch.getReadyState()) { \n \ttorquelift.swap();\n \ttorquelift.moveAllMotors(oi.getLiftSpeed());\n \t} else {\n \t\t// activates when the limit switch is pressed\n \t\ttorquelift.moveAllMotors(oi.getLiftYUpSpeed());\n \t}\n } else {\n \t// The commands here will occur normally, when the TorqueLift is\n \t// not activated.\n \treturn;\n }\n }", "public void act() \n {\n movegas();\n \n atingido2(); \n \n }", "public void onMessageReceived(MessageReceivedEvent e) {\n\t\tFunctions funcao = new Functions(e);\n\t\tString message = e.getMessage().getContent();\n\t\tString name = e.getAuthor().getName();\n\t\tString response = \"\";\n\t\tif ((message.startsWith(\"!!!\") || message.startsWith(\"-\")) && !e.getTextChannel().getName().equals(\"commands\")) {\n\t\t//if(e.getMessage().getAuthor().isBot()) {\n\t\t\tfuncao.limparComando();\n\t\t} else if (name.equals(\"Jads1\")) {\n\t\t\tRandom rand = new Random();\n\t\t\tint rng = rand.nextInt(100 + 1);\n\t\t\tif (rng == 9) {\n\t\t\t\tresponse = \"Cala boca, Jads!\";\n\t\t\t\te.getTextChannel().sendMessage(response).queue();\n\t\t\t}\n\t\t} else if (message.equals(\"'flipCoin\")) {\n\t\t\tfuncao.flipCoin();\n\t\t}else if (message.startsWith(\"'ranking\")) {\n\t\t\tfuncao.displayRanking();\n\t\t} else if (message.startsWith(\"'whois\")) {\n\t\t\tfuncao.whoIs();\n\t\t}else if (message.equals(\"'atribuirCargos\") && (e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(0).getName()) || e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(1).getName()))) {\n\t\t\tfuncao.atribuirCargos();\n\t\t}else if(message.startsWith(\"'setNumEpics \") && (e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(0).getName()) || e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(1).getName()))) {\n\t\t\tfuncao.setNumEpics();\n\t\t}else if(message.startsWith(\"'setNumRares \") && (e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(0).getName()) || e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(1).getName()))) {\n\t\t\tfuncao.setNumRares();\n\t\t}\n\t}", "@Override\n\tprotected void setOnClickForButtons() {\n\t\tthis.buttons[0].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(getActivity(), MainScreenActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\tMainFunctions.selectedOption = 1;\n\t\t\t\tdestroyServices();\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\n\t\t/* message box - onclick event */\n\t\tthis.buttons[1].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdestroyServices();\n\t\t\t\tMainFunctions.selectedOption = 2;\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\t\n\t\t/* one tick sound */\n\t\tfor (int i = 0; i < this.totalButtons; i++){\n\t\t\tfinal String desc = buttons[i].getTag().toString();\n\t\t\tbuttons[i].setOnFocusChangeListener(new View.OnFocusChangeListener() {\n\t\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t\tif (hasFocus) {\n\t\t\t\t\t\tLog.i(TAG, \"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tlogFunctions.logTextFile(\"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tspeakButton(desc, 1.0f, 1.0f);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public void spustPosluchace() {\n newGameButton.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent arg0) {\n\n // posli komunikaci at zalozi hru\n if (zalozenaHra == false) {\n gameConnectButton.setEnabled(false);\n newGameButton.setText(\"Zrus zalozeni\");\n zalozenaHra = true;\n komunikace.CreateGame();\n } else {\n gameConnectButton.setEnabled(true);\n newGameButton.setText(\"Zaloz hru\");\n zalozenaHra = false;\n komunikace.cancelGame();\n }\n\n }\n });\n\n gameConnectButton.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n int polozka = listHer.getSelectedIndex();\n if (polozka >= 0) {\n newGameButton.setEnabled(false);\n gameConnectButton.setEnabled(false);\n komunikace.connectToGame(polozka);\n }\n\n }\n });\n\n this.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n komunikace.disconnect(\"f\");\n zalogujSkonci();\n }\n });\n\n }", "private void deActivateButtons(){\n limiteBoton.setEnabled(false);\n derivadaBoton.setEnabled(false);\n integralBoton.setEnabled(false);\n}", "private void crearObjetos() {\n // crea los botones\n this.btnOK = new CCButton(this.OK);\n this.btnOK.setActionCommand(\"ok\");\n this.btnOK.setToolTipText(\"Confirmar la Operación\");\n \n this.btnCancel = new CCButton(this.CANCEL);\n this.btnCancel.setActionCommand(\"cancel\");\n this.btnCancel.setToolTipText(\"Cancelar la Operación\");\n \n // Agregar los eventos a los botones\n this.btnOK.addActionListener(this);\n this.btnCancel.addActionListener(this);\n }", "public static void limpiarCampos(){\r\n\tvista.getTxtID().setText(\"\");\r\n\tvista.getTxtMuseo().setText(\"\");\r\n\tvista.getTxtAutor().setText(\"\");\r\n\tvista.getTxtSiglo().setText(\"\");\r\n\tvista.getTxtObra().setText(\"\");\r\n\t\r\n\tvista.getMntmLimpiarCampos().addActionListener(r->{\r\n\t\tvista.getTxtID().setText(\"\");\r\n\tvista.getTxtMuseo().setText(\"\");\r\n\tvista.getTxtAutor().setText(\"\");\r\n\tvista.getTxtSiglo().setText(\"\");\r\n\tvista.getTxtObra().setText(\"\");\r\n\tvista.getTxtBarraStatus().setText(\"CAMPOS LIMPIADOS - \");\r\n\t});\r\n\t\r\n}", "private void init_buttons(){\r\n /**\r\n * BOTON NUEVO\r\n */\r\n im_tool1.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n botonNuevo();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON EDITAR\r\n */\r\n im_tool2.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEditar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON GUARDAR\r\n */\r\n im_tool3.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonGuardar();\r\n }\r\n }\r\n }); \r\n /**\r\n * BOTON ELIMINAR\r\n */\r\n im_tool4.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEliminar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON IMPRIMIR\r\n */\r\n im_tool5.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){ \r\n botonImprimir();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON REGRESAR\r\n */\r\n im_tool6.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON POR ASIGNAR\r\n */\r\n im_tool7.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON NOTAS DE CREDITO\r\n */\r\n im_tool8.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON DEVOLUCION\r\n */\r\n im_tool9.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON BUSCAR\r\n */\r\n im_tool12.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n switch (mouseEvent.getClickCount()){\r\n case 1:\r\n botonInicio();\r\n botonBuscar();\r\n break;\r\n case 2:\r\n Datos.setIdButton(2003041);\r\n Gui.getInstance().showBusqueda(\"Busqueda\"); \r\n break;\r\n }\r\n }\r\n });\r\n /**\r\n * SELECCION EN LA TABLA\r\n */\r\n tb_guias.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n if ((tb_guias.getItems() != null) && (!tb_guias.getItems().isEmpty()))\r\n selectedRowGuide();\r\n }\r\n }\r\n }); \r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nroguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nroguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_rela_caja(tf_nroguia.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_nroguia.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de \" + ScreenName + \" NO existe!\", \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nrorguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nrorguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n boolean booa = true; \r\n if(booa){\r\n boolean booc = Ln.getInstance().check_log_CGuias_caja(tf_nrorguia.getText()); \r\n if(booc){\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n else{\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n if(tf_nrorguia.getText().equals(tb_guias.getItems().get(i).getGuias())){\r\n booa = false;\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n break;\r\n }\r\n } \r\n if(booa){\r\n log_Guide_rel_inv guide_carga = new log_Guide_rel_inv();\r\n\r\n List<Fxp_Archguid_gfc> data = \r\n Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(tf_nrorguia.getText()));\r\n\r\n if (data.get(0).getStat_guia().equals(\"X\")\r\n || data.get(0).getStat_guia().equals(\"C\")){\r\n guide_carga.setNumorden(String.valueOf((log_guide_guia.size() + 1)));\r\n guide_carga.setGuias(tf_nrorguia.getText());\r\n guide_carga.setNumfact(data.get(0).getNumfact());\r\n guide_carga.setNumclie(data.get(0).getNumclie());\r\n\r\n if (data.get(0).getStat_guia().equals(\"A\")){\r\n if (tipoOperacion == 1)\r\n guide_carga.setStat_guia(null);\r\n else\r\n guide_carga.setStat_guia(data.get(0).getStat_guia());\r\n }\r\n else{\r\n guide_carga.setStat_guia(null);\r\n }\r\n \r\n \r\n log_guide_guia.add(guide_carga);\r\n\r\n loadTableGuide_guias();\r\n change_im_val(200, im_checkg); \r\n\r\n numFactCarga = numFactCarga + data.get(0).getNumfact();\r\n numClieCarga = numClieCarga + data.get(0).getNumclie();\r\n\r\n tf_nrorguia.setText(\"\");\r\n }else{\r\n if (data.get(0).getStat_guia().equals(\"\")){\r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO tiene relación de Guia de Carga!\", \"A\");\r\n }\r\n else{\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n }\r\n tf_nrorguia.requestFocus();\r\n }\r\n \r\n }\r\n }\r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO existe!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n }", "@Override\n public void teleopInit() {\n if (autonomousCommand != null) \n {\n autonomousCommand.cancel();\n }\n\n new ArcadeDrive().start();\n\n new BackElevatorControl().start();\n\n new IntakeControl().start();\n\n new FrontElevatorManual().start();\n\n new ElevatorAutomatic().start();\n }", "default void onEnable() {}", "@Override\r\n\tprotected void beforeSendCommands(String cmds) {\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 activate();", "public void DoGoToSeat() {\n\t\tcommand = Command.FollowWaiter;\n\t}", "protected void botonAceptarPulsado() {\n\t\tString pass = this.vista.getClave();\n\t\tchar[] arrayC = campoClave.getPassword();\n\t\tString clave = new String(arrayC);\n\t\tclave = Vista.md5(clave);\n\t\t\n\t\tif (pass.equals(clave)) {\n\t\t\tarrayC = campoClaveNueva.getPassword();\n\t\t\tString pass1 = new String(arrayC);\n\t\t\t\n\t\t\tarrayC = campoClaveRepita.getPassword();\n\t\t\tString pass2 = new String(arrayC);\n\t\t\t\n\t\t\tif (pass1.equals(pass2)) {\n\t\t\t\tif (this.vista.cambiarClave(pass1)) {\n\t\t\t\t\tthis.vista.msg(this, \"Contraseña maestra cambiada con éxito\");\n\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.vista.error(this, \"Error al cambiar la contraseña maestra\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.vista.error(this, \"Las contraseñas no coinciden\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.vista.error(this, \"Contraseña incorrecta\");\n\t\t}\n\t}", "public void powerOn() { //power_on\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.ON));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.ON) {\n isTurningOn = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n }\n }", "public void doCommands(ChessBoard board){\n\t\tfor(LiftPlaceCommand command : liftCommandSequence)\n\t\t\tcommand.performLift(board);\n\t\tfor(LiftPlaceCommand command : placeCommandSequence)\n\t\t\tcommand.performPlace(board);\n\t\tperformingPiece.incrementMovesMade();\n\t}", "public ATM(){\n\t\tgui = new ATM_GUI(\n\t\t\t\tnew ActionListener(){\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\thandleButton(e.getActionCommand());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\tgui.run();\n\t\tloginMenu();\n\t}", "public void activate(){\n callback.action();\n }", "public void activate(){\r\n\r\n\t}", "void activate();", "void activate();", "private void ctrlIniciar() {\n btnPausar.setEnabled(true);\n btnParar.setEnabled(true);\n btnIniciar.setEnabled(false);\n btnIniciar.setText(\"Reanudar\");\n\n }", "public void iniciarRotina() {\n }", "@Quando(\"acionar o botao save\")\r\n\tpublic void acionarOBotaoSave() {\n\t\tNa(CadastrarUsuarioPage.class).acionarBtnSave();\r\n\t}", "public void controlaMenuFuncionario() {\n int opcao = this.telaFuncionario.pedeOpcao();\n\n switch (opcao) {\n case 1:\n incluiFuncionario();\n break;\n case 2:\n editaFuncionario();\n break;\n case 3:\n listaFuncionarios();\n break;\n case 4:\n menuDeletaFuncionario();\n break;\n case 5:\n ControladorPrincipal.getInstance().exibeMenuPrincipal();\n break;\n default:\n this.telaFuncionario.opcaoInexistente();\n exibeMenuFuncionario();\n break;\n }\n\n }", "String ejecutarAccion();", "public void onInteract() {\n }", "public void changerJoueur() {\r\n\t\t\r\n\t}", "public App() {\n\n //Ação do botão ****\n btnHomensNegros.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMENS_NEGROS_PAIS, \"Homicídios Homens Negros\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomensNaoNegros.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMENS_NAO_NEGROS_PAIS, \"Homicídios Homens Não Negros\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnMulheresNaoNegras.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(MULHERES_NAO_NEGRAS_PAIS, \"Homicídios Mulheres Não Negras\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomicidiosMulheresNegrasButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(MULHERES_NEGRAS_PAIS, \"Homicídios Mulheres Negras\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnMulheresPais.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(MULHERES_PAIS, \"Homicídios Mulheres\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomicidiosNaoNegros.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMICIDIOS_PESSOAS_NAO_NEGRAS, \"Homicídios Pessoas Não Negras\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomicidiosPessoasNegras.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMICIDIOS_PESSOAS_NEGRAS, \"Homicídios Pessoas Negras\");\n\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Ação do botão ****\n btnHomicidiosHomens.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Tenta abrir o gráfico passando para o método escolhaTipo(nomeArquivo, tituloGráfico)\n try {\n escolhaTipo(HOMICIDIOS_HOMENS, \"Homicídios de Homens\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n //printa a Exceção\n }\n }\n });\n\n //Acao do RadioButton\n rdnTotal.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Deixa o clicado marcado e desmarca o outro\n rdnMedia.setSelected(false);\n rdnTotal.setSelected(true);\n }\n });\n //Acao do RadioButton\n rdnMedia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Deixa o clicado marcado e desmarca o outro\n rdnTotal.setSelected(false);\n rdnMedia.setSelected(true);\n }\n });\n //Ação do botão Sair do aplicativo\n btnSair.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n frame.dispose();\n btnSair.setBounds(12, 12, 30, 25);\n //setBounds arredondamento das bordas;\n }\n });\n }", "private void initiateClient(){\n btnNewGame.addActionListener(clientAction);\n btnNewGame.setActionCommand(\"NEWGAME\");\n btnQuit.addActionListener(clientAction);\n btnQuit.setActionCommand(\"QUIT\");\n btnResign.addActionListener(clientAction);\n btnResign.setActionCommand(\"RESIGN\");\n btnSendMsg.addActionListener(clientAction);\n btnSendMsg.setActionCommand(\"CHAT\");\n\n setButtons(false);\n btnNewGame.setEnabled(false);\n boardComponent.initiate();\n }", "@Override\n\tpublic void setController(ControladorVista[] controllers) {\n\t\tboton.addActionListener((ActionListener) controllers[0]);\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n if(e.getActionCommand() == \"Iniciar sesión\" ){\n this.mostrarDatosUsuario();\n this.entrar();\n }\n if(e.getActionCommand() == \"Registrate\" ){\n JOptionPane.showMessageDialog(null, \"Oprimió botón registrarse\" , \"Advertencia\", 1);\n }\n if(e.getActionCommand() == \"¿Olvidaste tu contraseña?\" ){\n JOptionPane.showMessageDialog(null, \"Oprimió botón recuperar contraseña\" , \"Advertencia\", 1);\n }\n if(e.getSource() == logintemplate.getBVerContraseña()){\n JOptionPane.showMessageDialog(null, \"Oprimido botón ver contraseña\" , \"Advertencia\", 1);\n }\n if(e.getSource() == logintemplate.getBVerMas()){\n JOptionPane.showMessageDialog(null, \"Oprimido botón ver mas\" , \"Advertencia\", 1);\n }\n }", "@Override\n public void giveCommands(Robot robot) {\n super.giveCommands(robot);\n\n arcadeDrive(robot.getDrivetrain());\n\n }", "public void defender(){setModopelea(1);}", "public void updateCommands ( ) {\n\t\texecute ( handle -> handle.updateCommands ( ) );\n\t}" ]
[ "0.6466924", "0.62542796", "0.6032126", "0.5952281", "0.5920928", "0.5886437", "0.57655", "0.57032055", "0.56587476", "0.5654433", "0.564878", "0.56429845", "0.5620337", "0.56044316", "0.55497324", "0.5519884", "0.54949474", "0.5493066", "0.54657906", "0.5461769", "0.54549384", "0.54367393", "0.5414733", "0.54045445", "0.5398266", "0.53879774", "0.5370208", "0.53651047", "0.53079355", "0.5297158", "0.529315", "0.5291703", "0.52901804", "0.5289387", "0.5287175", "0.5267803", "0.5251658", "0.5249635", "0.5246702", "0.52455556", "0.52448773", "0.52365047", "0.52358687", "0.5230074", "0.52275634", "0.5223711", "0.5221684", "0.5216464", "0.5202732", "0.5198798", "0.5195992", "0.51956034", "0.5195444", "0.5193403", "0.518944", "0.51879984", "0.517313", "0.5169824", "0.516511", "0.5160356", "0.516021", "0.5140525", "0.5136433", "0.5135116", "0.5133758", "0.51316035", "0.5128363", "0.51213676", "0.5118508", "0.5116627", "0.5112206", "0.5111239", "0.5105475", "0.5104994", "0.5104561", "0.5102669", "0.51025647", "0.5094813", "0.5086383", "0.50854397", "0.5082252", "0.508205", "0.50808185", "0.508059", "0.508037", "0.508037", "0.5075954", "0.5073251", "0.50674886", "0.50636023", "0.5060412", "0.50603783", "0.5059814", "0.50576204", "0.5049078", "0.50432557", "0.5039557", "0.5038093", "0.5035353", "0.5021693" ]
0.5926789
4
GENFIRST:event_funcionActionPerformed TODO add your handling code here:
private void funcionActionPerformed(java.awt.event.ActionEvent evt) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jTextField11ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField11ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField4ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField5ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField5ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField5ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField12ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField12ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void textField1ActionPerformed(java.awt.event.ActionEvent evt) {\n\t}", "private void vencimentoBoletoJTextFieldActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void botao_atirarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {\n \n }", "private void jCAreaActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void nombretxtActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtRucActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void numeroDaFarmaciaEntradaActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField19ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField10ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jfanoActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtidDemActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void senhaLFEActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtserchActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtNomenclaturaActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField8ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField6ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField6ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField7ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void cnpjFarmaciaEntradaActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField13ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void btnInventarioActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void splPerActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void btnAceptarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void t1ActionPerformed(java.awt.event.ActionEvent evt) {\n\n }", "private void t1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void btnIngresarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void btnIngresarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void comCosasActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {\n}", "private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void uocsoActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void ValorActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void BanalisisActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void ControlsActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtKQActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtNomProdActionPerformed(java.awt.event.ActionEvent evt) {\n\n }", "private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtbuscarHCActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void campo_linhaActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void phantichActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txt_nombreActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void InterestJTextFieldActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void CActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void songuyentoActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButtonOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOkActionPerformed\n \n }", "private void u_interestActionPerformed(java.awt.event.ActionEvent evt) {\n}", "private void tfLugarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txttenfileActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void flightIDTextActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public void actionPerformed(ActionEvent event)\n\t{\n\t}", "private void jTextFieldIDActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void buscaNomeProdutoActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton21ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtTolActionPerformed(java.awt.event.ActionEvent evt) {\n}", "private void searchTextFiledActionPerformed(ActionEvent evt) {\n }", "private void formMouseClicked(java.awt.event.MouseEvent evt) {\n }", "private void Button_CEActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_CEActionPerformed\n // TODO add your handling code here:\n \n }", "private void jtxtIDActionPerformed(java.awt.event.ActionEvent evt) {\n \n }", "public void actionPerformed( ActionEvent event )\n {\n \n }", "private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) \n\t\t{\n\t\t\t\n\t\t}", "private void rowCountTextFldActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtCIdActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void darahPasienBoxActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void button1ActionPerformed(ActionEvent e) {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "private void txtBonusActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jTextFieldNomeActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void tfApellidoActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jNumHabitacionActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void message_labelActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void waffleQuantityTxtActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.80805564", "0.80805564", "0.8068303", "0.79983896", "0.79983896", "0.79983896", "0.7981673", "0.7981673", "0.79761606", "0.797263", "0.79675037", "0.7941126", "0.79307985", "0.7920133", "0.7918774", "0.7901355", "0.7900483", "0.7900483", "0.7900483", "0.7898128", "0.78886026", "0.78886026", "0.78886026", "0.78810155", "0.7877623", "0.7876073", "0.7866527", "0.78649575", "0.78085274", "0.77988136", "0.77950263", "0.77950263", "0.77901155", "0.77901155", "0.77901155", "0.77901155", "0.77807206", "0.7774438", "0.7773079", "0.77674705", "0.7764868", "0.7764342", "0.77605414", "0.77592194", "0.77519137", "0.7751338", "0.7751338", "0.77478665", "0.77437043", "0.77427626", "0.7740138", "0.77248544", "0.7722943", "0.7721034", "0.7721032", "0.7708942", "0.7708942", "0.7708942", "0.7706268", "0.7679415", "0.76626986", "0.76574504", "0.7652498", "0.76376754", "0.76332575", "0.76207674", "0.76192844", "0.76009476", "0.75939506", "0.7591317", "0.75848085", "0.75790805", "0.7577483", "0.75720286", "0.75659955", "0.75483924", "0.75398713", "0.7525677", "0.7519937", "0.7505039", "0.75023216", "0.74821615", "0.74812746", "0.7471605", "0.7471325", "0.74707294", "0.7470725", "0.7466072", "0.74629694", "0.74579674", "0.74576104", "0.74545926", "0.7449544", "0.744882", "0.74481314", "0.7435054", "0.7431044", "0.74297583", "0.74218714", "0.74203" ]
0.89082474
0
TODO Autogenerated method stub
@Override public List<Role> find(String hql, Class<Role> entityClass, Object[] params) { return baseDao.find(hql, entityClass, params); }
{ "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 Role get(Class<Role> entityClass, Serializable id) { return baseDao.get(entityClass, id); }
{ "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 Page<Role> findPage(String hql, Page<Role> page, Class<Role> entityClass, Object[] params) { return baseDao.findPage(hql, page, entityClass, params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void saveOrUpdateAll(Collection<Role> entitys) { baseDao.saveOrUpdateAll(entitys); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
run the factory, seize the means of production later
public byte[] produce(int quantity) { //generate an array of trash byte[] trash = new byte[quantity]; for(int i=0; i<quantity; i++) { trash[i] = (byte)randomNumGen.nextInt(256); } return trash; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n System.out.println(\"=== Bodyguard ===\");\n HumanFactory factory = HumanFactory.getFactory(\"gof.creational.abstractfactory.factory.BodyguardFactory\");\n Weapon weapon = factory.createWeapon();\n weapon.attack();\n Vehicle vehicle = factory.createVehicle();\n vehicle.saySpeed();\n\n // Create knight's weapon and vehicle.\n System.out.println(\"=== Knight ===\");\n factory = HumanFactory.getFactory(\"gof.creational.abstractfactory.factory.KnightFactory\");\n weapon = factory.createWeapon();\n weapon.attack();\n vehicle = factory.createVehicle();\n vehicle.saySpeed();\n\n // Create millennial generation's weapon and vehicle.\n System.out.println(\"=== Millennial Generation ===\");\n factory = HumanFactory.getFactory(\"gof.creational.abstractfactory.factory.MillennialFactory\");\n weapon = factory.createWeapon();\n weapon.attack();\n vehicle = factory.createVehicle();\n vehicle.saySpeed();\n\n }", "public Object run(ModelFactory factory);", "public static void main(String[] args) {\n Injector guice = Guice.createInjector(new DiscountGuiceModule());\n\n // Creates separate object graph with business logic, etc. Instantiate the main object on that\n MainAppWithCustomFactory application = guice.getInstance(MainAppWithCustomFactory.class);\n\n // Start your app\n application.start();\n }", "public static void main(String[] args) {\n\t\tSoldat soldat1 = new Soldat();\n\t\tSoldat soldat2 = new Soldat();\n\t\tGrup grup1 = new Grup();\n\t\tgrup1.adaugaSoldat(soldat1);\n\t\tgrup1.adaugaSoldat(soldat2);\n\t\t\n\t\tSoldat soldat3 = new Soldat();\n\t\tGrup grup2 = new Grup();\n\t\tgrup2.adaugaSoldat(soldat3);\n\t\tgrup2.adaugaSoldat(grup1);\n\t\t\n\t\tgrup2.alearga();\n\t\tgrup2.ataca();\n\t\t\n\t\t//test flyweight\n\t\tFactorySuperEroi factory = \n\t\t\t\tnew FactorySuperEroi();\n\t\t\n\t\t//colectia pentru stari temporare\n\t\tArrayList<StareTemporaraEcran>stariTemporare = \n\t\t\t\tnew ArrayList<>();\n\t\t//colectia pentru flyweight jucator\n\t\tArrayList<FlyweightErou> eroi = \n\t\t\t\tnew ArrayList<>();\n\t\t\n\t\t//adaugare jucatori\n\t\tStareTemporaraEcran stareJucator1 = \n\t\t\t\tnew StareTemporaraEcran(10,10,\"rosu\");\n\t\tFlyweightErou erouJucator1 = \n\t\t\t\tnew FlyweightErou(factory.get(\"Batman\"));\n\t\t\n\t\tstariTemporare.add(stareJucator1);\n\t\teroi.add(erouJucator1);\n\t\t\n\t\tStareTemporaraEcran stareJucator2 = \n\t\t\t\tnew StareTemporaraEcran(34,25,\"verde\");\n\t\tFlyweightErou erouJucator2 = \n\t\t\t\tnew FlyweightErou(factory.get(\"Batman\"));\n\t\t\n\t\tstariTemporare.add(stareJucator2);\n\t\teroi.add(erouJucator2);\n\t\t\n\t\terouJucator1.afisareEcran(stareJucator1);\n\t\terouJucator2.afisareEcran(stareJucator2);\n\t\t\n\t\t//test proxy\n\t\tLogIn log1 = new LogIn();\n\t\tlog1.login(\"Gigel\", \"1234\");\n\t\tlog1.login(\"Gigel\", \"1234\");\n\t\tlog1.login(\"Gigel\", \"1234\");\n\t\tlog1.login(\"Gigel\", \"1234\");\n\t\t\n\t\tProxyLogin proxy1 = \n\t\t\t\tnew ProxyLogin(log1);\n\t\tproxy1.login(\"Gigel\", \"1234\");\n\t\tproxy1.login(\"Gigel\", \"1234\");\n\t\tproxy1.login(\"Gigel\", \"1234\");\n\t\tproxy1.login(\"Gigel\", \"1234\");\n\t\tproxy1.login(\"Gigel\", \"1234\");\n\t}", "public static void main(String[] args) {\n\n\n CarFactory.createCar(\"audi\").run();\n CarFactory.createCar(\"byd\").run();\n\n }", "Run createRun();", "@Override\n\tvoid startProduction() {\n\t\tSystem.out.println(\"Begin sweat shirt producton\");\n\n\t}", "public static void main(String[] args){\n Api api = Factory.createApi(1);\n api.operation(\"using factory now\");\n\n System.out.println(\"--------------using configuration file to get api--------------\");\n Api api2 = Factory.configToCreateApi();\n api2.operation(\"just a test!\");\n }", "private static ExecutionService getInstance() {\r\n\t\treturn \r\n\t\t\t\tnew ExecutionService() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void buy(String security, double price, int volume) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(\"buy is\"+price+volume);\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void sell(String security, double price, int volume) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(\"sell is\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t};\r\n\t}", "public static void main(String[] args) {\n AbstractFactory engineFactory = getFactory(\"ENGINE\");\n IEngines engine1 = engineFactory.getEngine(\"DIESEL\");\n engine1.installEngine();\n IEngines engine2 = engineFactory.getEngine(\"OTTO\");\n engine2.installEngine();\n IEngines engine3 = engineFactory.getEngine(\"ELECTRIC\");\n engine3.installEngine();\n IEngines engine4 = engineFactory.getEngine(\"TURBO\");\n engine4.installEngine();\n\n // This part of code checks the installation procedure of all types of tires which have been implemented;\n // Several variables are being declared and initialized;\n AbstractFactory tireFactory = getFactory(\"TIRES\");\n ITires tire1 = tireFactory.getTires(\"WINTER\");\n tire1.installTires();\n ITires tire2 = tireFactory.getTires(\"CASUAL\");\n tire2.installTires();\n ITires tire3 = tireFactory.getTires(\"RACING\");\n tire3.installTires();\n\n\n }", "public void sampleExecution() {\n System.out.println(\"Starting sample execution.\");\n contr.addRevenueObserver(new TotalRevenueView());\n logger.setFileLogger();\n \n contr.startSale();\n System.out.println(\"\\nAfter call to startSale()\");\n try {\n System.out.println(contr.enterItemID(\"LK\"));\n System.out.println(contr.enterItemIDAndQuantity(\"SK\", 2));\n System.out.println(contr.enterItemIDAndQuantity(\"LK\", 3));\n System.out.println(contr.enterItemID(\"SK\"));\n System.out.println(contr.enterItemID(\"SK\"));\n System.out.println(contr.enterItemID(\"MK\"));\n }\n catch (ItemNotFoundException exc) {\n handleException(invalidIDMessage(exc.getID()), exc);\n }\n catch (ItemRegistryException exc) {\n handleException(databaseFailureMessage(), exc);\n }\n System.out.println(contr.indicateAllItemsRegistered());\n try {\n contr.enterPaidCash(3);\n }\n catch (InvalidPaymentException exc) {\n handleException(invalidPaymentMessage(exc.getPayment(), exc.getPrice()), exc);\n }\n try {\n contr.enterPaidCash(125);\n }\n catch (InvalidPaymentException exc) {\n handleException(invalidPaymentMessage(exc.getPayment(), exc.getPrice()), exc);\n }\n \n contr.startSale();\n System.out.println(\"\\nAfter call to startSale()\");\n try {\n System.out.println(contr.enterItemID(\"LK\"));\n System.out.println(contr.enterItemIDAndQuantity(\"SK\", 2));\n System.out.println(contr.enterItemIDAndQuantity(\"LK\", 3));\n System.out.println(contr.enterItemID(\"SK\"));\n System.out.println(contr.enterItemID(\"SK\"));\n System.out.println(contr.enterItemID(\"rofl\"));\n }\n catch (ItemNotFoundException exc) {\n handleException(invalidIDMessage(exc.getID()), exc);\n }\n System.out.println(contr.indicateAllItemsRegistered());\n try {\n contr.enterPaidCash(500);\n }\n catch (InvalidPaymentException exc) {\n handleException(invalidPaymentMessage(exc.getPayment(), exc.getPrice()), exc);\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}", "public static void main(String[] args) {\n testFactoryMethod();\n }", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tprinteazaPersonalSpital(new MedicFactory(), \"Ana\");\r\n\t\tprinteazaPersonalSpital(new AsistentFactory(), \"Cosmin\");\r\n\t\tprinteazaPersonalSpital(new InfirmierFactory(), \"Tuti\");\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tAnnotationConfigApplicationContext bob = new AnnotationConfigApplicationContext();\n\t\tbob.scan(\"jimmy.ecole55.dao\");\n\t\tbob.scan(\"jimmy.ecole55.service\");\n\t\tbob.refresh();\n\t\t\n\t\tIEtudiantService etuServ = (IEtudiantService) bob.getBean(\"etudiantService\");\n\t\tetuServ.createEtudiant(new Etudiant(\"pavade\",\"jimmy\",\"B\"));\n\n\t}", "public static void execute() {\n EFsupply.standardGroundSupply(70036690, -63257400, \"EF Tasmania Supply 1\");\n\n //Default Zeon supply i Tasmania.\n ZeonSupply.standardGroundSupply(69616733, -63019640, \"Zeon Tasmania Supply 1\");\n\n ZeonNpcEF1();\n EfNpcZeon1();\n }", "public static void main(String[] args) {\n\t\tAbstractFactory factory1 = new Factory1();\n\t\tAbstractProductA productA1 = factory1.productA();\n\t\tAbstractProductB productB1 = factory1.productB();\n\t}", "public static void main(String[] args) {\n\n PlantFactory pf = new PlantFactory();\n for(int number = 0; number < 5; number++) {\n Corn newCorn = pf.getCorn();\n if(newCorn == null) break;\n\n PlantField.cornList.add(newCorn);\n }\n for(int number = 0;number < 10; number++) {\n Rice newRice = pf.getRice();\n if(newRice == null) break;\n\n PlantField.riceList.add(newRice);\n }\n for(int number = 0;number < 2;number++) {\n Pasture newPasture = pf.getPasture();\n if(newPasture == null) break;\n\n PlantField.pastureList.add(newPasture);\n }\n\n // Now we got different plants!\n show();\n\n // Let's fertilize those plants!\n for (Corn item : PlantField.cornList) {\n item.fertilized();\n }\n for (Pasture item : PlantField.pastureList) {\n item.fertilized();\n }\n\n // Let's try to fertilize them again.\n for (Corn item : PlantField.cornList) {\n item.fertilized();\n }\n for (Rice item : PlantField.riceList) {\n item.fertilized();\n }\n for (Pasture item : PlantField.pastureList) {\n item.fertilized();\n }\n System.out.println(\"\\nLet's harvest them!\");\n for(Corn item : PlantField.cornList){\n item.harvested();\n }\n for(Rice item : PlantField.riceList){\n item.harvested();\n }\n for(Pasture item : PlantField.pastureList){\n item.harvested();\n }\n\n show();\n\n // Maybe we need to buy some seeds.\n\n // Oops, those corns and rices need to be pollinated.\n for(Corn item : PlantField.cornList){ // corn and rise need to be poll\n PollinationStrategy ps = new SpontaneousPollination();\n ps.pollinate(item);\n }\n\n // We just pollinated those corns. Let's harvest them!\n for(Corn item : PlantField.cornList){\n item.harvested();\n }\n\n show();\n// ------\n // Take a look at those dead plant.\n for(Corn item : PlantField.cornList){\n item.harvested();\n item.fertilized();\n PollinationStrategy ps = new ArtificialPollination();\n ps.pollinate(item);\n }\n\n // plantTest completed successfully\n }", "public static void main(String[] args) {\n\t\tApplicationContext ctx=new ClassPathXmlApplicationContext(\"performance.xml\");\r\n\t Performer p=ctx.getBean(\"sonu nigam\", Performer.class); \r\n\t p.Performe();\r\n\t ConfigurableApplicationContext cfgCtx=(ConfigurableApplicationContext) ctx;\r\n\t cfgCtx.close();\r\n\t \r\n\t\r\n\t}", "public static void main(String args[]) throws Exception{\n\n System.setProperty(\"env\",\"qa2\");\n AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(EnvironmentConfig.class);\n ApiController controller=context.getBean(\"apiController\",ApiController.class);\n/// System.out.println(controller.login().getBody().jsonPath().getString(\"access_token\"));\n\n controller.login();\n System.out.println(controller.createManagementCompany());\n controller.doGeoSetup();\n Thread.sleep(2000);\n System.out.println(controller.defineSegmentTypes().statusCode());\n Thread.sleep(2000);\n System.out.println(controller.defineSegmentCategoryStructure().statusCode());\n Thread.sleep(2000);\n controller.createProperty();\n Thread.sleep(2000);\n controller.createCompanySegment();\n Thread.sleep(2000);\n controller.createSegment();\n //Thread.sleep(2000);\n //controller.deactiveManagementId();\n Thread.sleep(2000);\n // controller.generateRdpData();\n // System.out.println(new Date());\n controller.createImpactEvent();\n // PropertyUser controller=context.getBean(\"propertyUser\",PropertyUser.class);\n UserPermissionData userPermissionData=new UserPermissionData();\n controller.createNewUser(UserTypeConstants.PROPERTY_USER,userPermissionData.getPropertyUserPermission());\n context.close();\n }", "public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}", "public ProcessWorkloadGenerator(UserFactory userFactory, @Assisted final ProcessWorkload workload){\r\n \tthis.userFactory = userFactory;\r\n this.workload = workload;\r\n this.periods = workload.getProcessTriggerPeriods();\r\n //this.blackboardGarbageCollector = this.model.getProbeSpecContext().getBlackboardGarbageCollector();\r\n }", "public static void main(String[] args) {\r\n callFactory(new BicycleFactory());\r\n callFactory(new UnicycleFactory());\r\n callFactory(new TricycleFactory());\r\n }", "public void testRunning()\n\t\t{\n\t\t\tInvestigate._invData.clearStores();\n\n\t\t\tfinal WorldLocation topLeft = SupportTesting.createLocation(0, 10000);\n\t\t\ttopLeft.setDepth(-1000);\n\t\t\tfinal WorldLocation bottomRight = SupportTesting.createLocation(10000, 0);\n\t\t\tbottomRight.setDepth(1000);\n\t\t\tfinal WorldArea theArea = new WorldArea(topLeft, bottomRight);\n\t\t\tfinal RectangleWander heloWander = new RectangleWander(theArea,\n\t\t\t\t\t\"rect wander\");\n\t\t\theloWander.setSpeed(new WorldSpeed(20, WorldSpeed.Kts));\n\t\t\tfinal RectangleWander fishWander = new RectangleWander(theArea,\n\t\t\t\t\t\"rect wander 2\");\n\n\t\t\tRandomGenerator.seed(12);\n\n\t\t\tWaterfall searchPattern = new Waterfall();\n\t\t\tsearchPattern.setName(\"Searching\");\n\n\t\t\tTargetType theTarget = new TargetType(Category.Force.RED);\n\t\t\tInvestigate investigate = new Investigate(\"investigating red targets\",\n\t\t\t\t\ttheTarget, DetectionEvent.IDENTIFIED, null);\n\t\t\tsearchPattern.insertAtHead(investigate);\n\t\t\tsearchPattern.insertAtFoot(heloWander);\n\n\t\t\tfinal Status heloStat = new Status(1, 0);\n\t\t\theloStat.setLocation(SupportTesting.createLocation(2000, 4000));\n\t\t\theloStat.getLocation().setDepth(-200);\n\t\t\theloStat.setCourse(270);\n\t\t\theloStat.setSpeed(new WorldSpeed(100, WorldSpeed.Kts));\n\n\t\t\tfinal Status fisherStat = new Status(1, 0);\n\t\t\tfisherStat.setLocation(SupportTesting.createLocation(4000, 2000));\n\t\t\tfisherStat.setCourse(155);\n\t\t\tfisherStat.setSpeed(new WorldSpeed(12, WorldSpeed.Kts));\n\n\t\t\tfinal DemandedStatus dem = null;\n\n\t\t\tfinal SimpleDemandedStatus ds = (SimpleDemandedStatus) heloWander.decide(\n\t\t\t\t\theloStat, null, dem, null, null, 100);\n\n\t\t\tassertNotNull(\"dem returned\", ds);\n\n\t\t\t// ok. the radar first\n\t\t\tASSET.Models.Sensor.Lookup.RadarLookupSensor radar = new RadarLookupSensor(\n\t\t\t\t\t12, \"radar\", 0.04, 11000, 1.2, 0, new Duration(0, Duration.SECONDS),\n\t\t\t\t\t0, new Duration(0, Duration.SECONDS), 9200);\n\n\t\t\tASSET.Models.Sensor.Lookup.OpticLookupSensor optic = new OpticLookupSensor(\n\t\t\t\t\t333, \"optic\", 0.05, 10000, 1.05, 0.8, new Duration(20,\n\t\t\t\t\t\t\tDuration.SECONDS), 0.2, new Duration(30, Duration.SECONDS));\n\n\t\t\tHelo helo = new Helo(23);\n\t\t\thelo.setName(\"Merlin\");\n\t\t\thelo.setCategory(new Category(Category.Force.BLUE,\n\t\t\t\t\tCategory.Environment.AIRBORNE, Category.Type.HELO));\n\t\t\thelo.setStatus(heloStat);\n\t\t\thelo.setDecisionModel(searchPattern);\n\t\t\thelo.setMovementChars(HeloMovementCharacteristics.getSampleChars());\n\t\t\thelo.getSensorFit().add(radar);\n\t\t\thelo.getSensorFit().add(optic);\n\n\t\t\tSurface fisher2 = new Surface(25);\n\t\t\tfisher2.setName(\"Fisher2\");\n\t\t\tfisher2.setCategory(new Category(Category.Force.RED,\n\t\t\t\t\tCategory.Environment.SURFACE, Category.Type.FISHING_VESSEL));\n\t\t\tfisher2.setStatus(fisherStat);\n\t\t\tfisher2.setDecisionModel(fishWander);\n\t\t\tfisher2.setMovementChars(SurfaceMovementCharacteristics.getSampleChars());\n\n\t\t\tCoreScenario cs = new CoreScenario();\n\t\t\tcs.setScenarioStepTime(5000);\n\t\t\tcs.addParticipant(helo.getId(), helo);\n\t\t\tcs.addParticipant(fisher2.getId(), fisher2);\n\n\t\t\t// ok. just do a couple of steps, to check how things pan out.\n\t\t\tcs.step();\n\n\t\t\tSystem.out.println(\"started at:\" + cs.getTime());\n\n\t\t\tDebriefReplayObserver dro = new DebriefReplayObserver(\"./test_reports/\",\n\t\t\t\t\t\"investigate_search.rep\", false, true, true, null, \"plotter\", true);\n\t\t\tTrackPlotObserver tpo = new TrackPlotObserver(\"./test_reports/\", 300,\n\t\t\t\t\t300, \"investigate_search.png\", null, false, true, false, \"tester\",\n\t\t\t\t\ttrue);\n\t\t\tdro.setup(cs);\n\t\t\ttpo.setup(cs);\n\t\t\t//\n\t\t\tdro.outputThisArea(theArea);\n\n\t\t\tInvestigateStore theStore = Investigate._invData.firstStore();\n\n\t\t\t// now run through to completion\n\t\t\tint counter = 0;\n\t\t\twhile ((cs.getTime() < 12000000)\n\t\t\t\t\t&& (theStore.getCurrentTarget(23) == null))\n\t\t\t{\n\t\t\t\tcs.step();\n\t\t\t\tcounter++;\n\t\t\t}\n\n\t\t\t// so, we should have found our tartget\n\t\t\tassertNotNull(\"found target\", theStore.getCurrentTarget(23));\n\n\t\t\t// ok. we've found it. check that we do transition to detected\n\t\t\tcounter = 0;\n\t\t\twhile ((counter++ < 100) && (theStore.getCurrentTarget(23) != null))\n\t\t\t{\n\t\t\t\tcs.step();\n\t\t\t}\n\n\t\t\tdro.tearDown(cs);\n\t\t\ttpo.tearDown(cs);\n\n\t\t\t// so, we should have cleared our tartget\n\t\t\tassertNull(\"found target\", theStore.getCurrentTarget(23));\n\t\t\tassertEquals(\"remembered contact\", 1, theStore.countDoneTargets());\n\n\t\t}", "public static void main(String[] args)\n\t{\tint generation = 0;\n\t\tint sum = 0;\n\t\tExecutor exec=new Executor();\n\t\t\n\t\tGeneticController pacman = new GeneticController();\n\t\tController<EnumMap<GHOST,MOVE>> ghosts = new Legacy();\n\n\n\t\tLispStatements ls = new LispStatements();\n\t\tArrayList<String> functionSet = new ArrayList<>();\n\t\tfunctionSet.add(\"2ifblue\");\n\t\tfunctionSet.add(\"4ifle\");\n\t\tfunctionSet.add(\"2ifindanger\");\n\t\tfunctionSet.add(\"2ifpowerpillscleared\");\n\t\tfunctionSet.add(\"2istopowersafe\");\n\t\tArrayList<String> terminalSet = new ArrayList<>();\n\t\tterminalSet.add(\"distToPill\");\n\t\tterminalSet.add(\"distToPower\");\n\t\tterminalSet.add(\"distGhost\");\n\t\tterminalSet.add(\"distTo2ndGhost\");\n\t\tterminalSet.add(\"distTo3rdGhost\");\n\t\tterminalSet.add(\"distToEdibleGhost\");\n\t\tterminalSet.add(\"distToNonEdibleGhost\");\n\t\tterminalSet.add(\"moveToFood\");\n\t\tterminalSet.add(\"moveToPower\");\n\t\tterminalSet.add(\"moveToEdibleGhost\");\n\t\tterminalSet.add(\"moveFromNonEdibleGhost\");\n\t\tterminalSet.add(\"moveFromPower\");\n\t\tterminalSet.add(\"runaway\");\n\t\ttry {\n\t\t\tls.setFunctionalSet(functionSet);\n\t\t}catch (Exception ignored){\n\n\t\t}\n\t\tls.setTerminalSet(terminalSet);\n\t\ttry {\n\t\t\tGenetic.Executor.setUp(pacman, ls, 8);\n\t\t}catch (Exception ignored){\n\n\t\t}\n\n\t\tdouble average = 0;\n\n\t\twhile (generation < 51) {\n\t\t\twhile (Generation.isGenFinished()) {\n\n\t\t\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\t\t\tint delay = 0;\n\t\t\t\t\t\tboolean visual = false;\n\t\t\t\t\t\tsum += exec.runGame(pacman, ghosts, visual, delay);\n\t\t\t\t\t}\n\n\t\t\t\t\tGeneration.setFitness(50000 - (sum/10));\n\t\t\t\t\tSystem.out.println(sum/10);\n\n\n\t\t\t\t\tsum = 0;\n\n\t\t\t\tGeneration.pointerUpdate();\n\t\t\t}\n\t\t\tSystem.out.println(\"Generation \" + generation);\n\t\t\tGenetic.Executor.newGen();\n\t\t\tSystem.out.println(Generation.getBestRating());\n\t\t\tgeneration ++;\n\t\t}\n\n\t\tSystem.out.println(Generation.getBestTree());\n\t\tSystem.out.println(Generation.getBestRating());\n\n\n\n/*\n\t\tboolean visual=false;\n\t\tString fileName=\"results/replay10.txt\";\n\n\t\tint bestScore = 0;\n\t\tint result = 0;\n\t\tint average = 0;\n\t\tfor(int i = 0; i < 1000 ; i++) {\n\t\t\tresult = exec.runGameTimedRecorded(pacman, ghosts, visual, fileName, bestScore);\n\t\t\taverage +=result;\n\t\t\tif(result > bestScore){\n\t\t\t\tbestScore = result;\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\tvisual = true;\n\t\tSystem.out.println(average/1000.0);\n\t\texec.replayGame(fileName,visual);\n\t\t*/\n\n\n\t}", "public static void main(String[] args) {\n\t\tFileSystemResource res = new FileSystemResource(\"src/com/nt/cfgs/applicationContext.xml\");\r\n\t\t// crrate IOC container \r\n\t\tXmlBeanFactory factory = new XmlBeanFactory(res);\r\n\t\t//get target Spring bean class object from factoryObject\r\n\t\tWishMessageGenerator generator = (WishMessageGenerator) factory.getBean(\"wishMessageGenerator\");\r\n\t\tWishMessageGenerator generator2 = (WishMessageGenerator) factory.getBean(\"wmsg1\");\r\n\t\tWishMessageGenerator generator3 = (WishMessageGenerator) factory.getBean(\"wmsg2\");\r\n\t\tSystem.out.println(generator2.hashCode()+\" \"+generator3.hashCode()+\" \"+generator.hashCode());\r\n\t\tWishMessageGenerator generator4 = (WishMessageGenerator) factory.getBean(\"don1\");\r\n\t\tWishMessageGenerator generator5 = (WishMessageGenerator) factory.getBean(\"don2\");\r\n\t\tWishMessageGenerator generator6 = (WishMessageGenerator) factory.getBean(\"don3\");\r\n\t\tWishMessageGenerator generator7 = (WishMessageGenerator) factory.getBean(\"don4\");\r\n\t\tSystem.out.println(generator4.hashCode()+\" \"+generator5.hashCode()+\" \"+generator6.hashCode()+\" \"+generator7.hashCode());\r\n\t\t//invoke the b.logic\r\n\t\tSystem.out.println(\"result \"+ generator.generateWishMessage(\"Sushant\"));\r\n\t}", "public void runDemo()\n {\n manager.printAllProducts();\n \n int noProducts = manager.numberProductsInStock();\n \n int amount = 0;\n \n System.out.println(\"No of products in stock = \" + noProducts);\n \n demoDeliverProducts();\n demoSellProducts();\n }", "public void run() {\n\t\t\n\t\t\n\t\t\tsaleMethod1();\n\t\t\t//saleMethod3();\n\t\t\t//saleMethod2();\n\t}", "public void warmUp();", "public static void main(String[] args) {\n\n PersonFactory.<PersonFactoryStudentImpl>getFactory(Student.class)\n .createStuden(\"123\")\n .ifPresent(student -> student.tell(\"Stundent 123\"));\n\n }", "public static void main(String[] args) {\n Services.registerDefaultProvider(DEFAULT_PROVIDER);\n Services.registerProvider(\"comp\", COMP_PROVIDER);\n Services.registerProvider(\"armed\", ARMED_PROVIDER);\n\n // Clients would execute these lines\n Service service1 = Services.newInstance();\n Service service2 = Services.newInstance(\"comp\");\n Service service3 = Services.newInstance(\"armed\");\n System.out.printf(\"%s, %s, %s%n\", service1, service2, service3);\n }", "public void run() throws Exception {\n /*\n * Reset ...basePolicyClass security property\n * so that base policy class cannot be found\n * and try to create DynamicPolicyProvider.\n * We expect PolicyInitializationException\n * in this case.\n */\n setBasePolicyClassProp(\"Foo\");\n createDynamicPolicyProviderPIE(CALLName);\n\n /*\n * Reset ...basePolicyClass security property\n * so that base class can be found\n * but this class is not the instance\n * of Policy interface,\n * and try to create DynamicPolicyProvider.\n * We expect PolicyInitializationException\n * in this case.\n */\n String className = Util.listClasses[0].name;\n\n /*\n * Verify that class can be loaded.\n */\n Class.forName(className);\n setBasePolicyClassProp(className);\n createDynamicPolicyProviderPIE(CALLName);\n\n /*\n * Reset ...basePolicyClass security property\n * to QABadPolicy class that\n * does not declare a public no-arg constructor\n * and try to create DynamicPolicyProvider\n * We expect PolicyInitializationException\n * in these cases.\n */\n className = Util.listPolicy[0].name;\n\n /*\n * Verify that class can be loaded.\n */\n Class.forName(className);\n setBasePolicyClassProp(className);\n createDynamicPolicyProviderPIE(CALLName);\n }", "public Factory(BaseProcessingEnvImpl env) {\n _env = env;\n }", "public static void main(String[] args) {\n System.out.println(\"Creating Honda\");\n System.out.println(\"\\n\\nAdding new Factories\");\n Manufacturer honda = new Manufacturer(\"Honda\");\n System.out.println(\"Adding Hybrid Factory Trade:cheap\");\n honda.addNewFactory(CarType.HYBRID, \"cheap\");\n System.out.println(\"Adding Truck Factory Trade:heavy\");\n honda.addNewFactory(CarType.TRUCK, \"heavy\");\n System.out.println(\"Adding Sport Factory Trade:fast\");\n honda.addNewFactory(CarType.SPORT, \"fast\");\n System.out.println(\"Adding Hybrid Factory Trade:zippy\");\n honda.addNewFactory(CarType.HYBRID, \"zippy\");\n System.out.println(\"Adding Truck Factory Trade:deadly\");\n honda.addNewFactory(CarType.TRUCK, \"deadly\");\n System.out.println(\"Adding Sport Factory Trade:SUPERFAST\");\n honda.addNewFactory(CarType.SPORT, \"SUPERFAST\");//I Don't know cars\n \n System.out.println(\"\\n\\nAdding Factory Owners\");\n System.out.println(\"Adding Factory Owner Employee Bob\");\n honda.addFactoryOwner(\"Bob\");\n System.out.println(\"Adding Factory Owner Employee Tob\");\n honda.addFactoryOwner(\"Tob\");\n System.out.println(\"Adding Factory Owner Employee Rob\");\n honda.addFactoryOwner(\"Rob\");\n System.out.println(\"Adding Factory Owner Employee Cob\");\n honda.addFactoryOwner(\"Cob\");\n System.out.println(\"Adding Factory Owner Employee Fob\");\n honda.addFactoryOwner(\"Fob\");\n \n System.out.print(\"Setting the Factory Owner Pay \");\n honda.changeFactoryOwnerPay(new GoodPaying());\n System.out.println(honda.getFactoryOwners().getStrategy().getPayStrat());\n List<Employee> employees = honda.getFactoryOwners().getAllEmployees();\n for (Employee obs : employees) {\n System.out.println(obs.getEmployeeName() + \" \" + obs.getPayStrat().getPayStrat());\n \n }\n System.out.println(\"\\n\\nAdding Factory Employess\");\n System.out.println(\"Adding Factory Employee Brob\");\n honda.addFactoryWorker(\"Borb\");\n System.out.println(\"Adding Factory Employee Trob\");\n honda.addFactoryWorker(\"Torb\");\n System.out.println(\"Adding Factory Employee Rrob\");\n honda.addFactoryWorker(\"Rorb\");\n System.out.println(\"Adding Factory Employee Crob\");\n honda.addFactoryWorker(\"Corb\");\n System.out.println(\"Adding Factory Employee Frob\");\n honda.addFactoryWorker(\"Forb\");\n honda.changeFactoryWorkerPay(new BadPaying());\n System.out.print(\"Setting the Factory Employee Pay \");\n System.out.println(honda.getFactoryEmployees().getStrategy().getPayStrat());\n \n employees = honda.getFactoryEmployees().getAllEmployees();\n \n for (Employee obs : employees) {\n \n System.out.println(obs.getEmployeeName() + \" \" + obs.getPayStrat().getPayStrat());\n \n }\n \n \n System.out.println(\"\\n\\nCreating some cars\");\n Car carHolder = honda.getCar(CarType.HYBRID);\n System.out.println(carHolder.getTrade() + \" \" + carHolder.getType());\n carHolder = honda.getCar(CarType.SPORT);\n System.out.println(carHolder.getTrade() + \" \" + carHolder.getType());\n carHolder = honda.getCar(CarType.TRUCK);\n System.out.println(carHolder.getTrade() + \" \" + carHolder.getType());\n \n \n carHolder = honda.getCar(CarType.HYBRID, \"zippy\");\n System.out.println(carHolder.getTrade() + \" \" + carHolder.getType());\n carHolder = honda.getCar(CarType.TRUCK, \"deadly\");\n System.out.println(carHolder.getTrade() + \" \" + carHolder.getType());\n carHolder = honda.getCar(CarType.SPORT, \"SUPERFAST\");\n System.out.println(carHolder.getTrade() + \" \" + carHolder.getType());\n \n System.out.println(\"\\n\\nCreating a couple car models\");\n Model modelHolder = honda.getCarModel(CarType.HYBRID, \"Fit\");\n System.out.println(modelHolder.getTrade() + \" \" + modelHolder.getType() + \" \" \n + modelHolder.getModelName() + \" \" + modelHolder.getCreator()); \n modelHolder = honda.getCarModel(CarType.SPORT, \"Element\");\n System.out.println(modelHolder.getTrade() + \" \" + modelHolder.getType() + \" \" \n + modelHolder.getModelName() + \" \" + modelHolder.getCreator());\n modelHolder = honda.getCarModel(CarType.TRUCK, \"Odysee\");\n System.out.println(modelHolder.getTrade() + \" \" + modelHolder.getType() + \" \" \n + modelHolder.getModelName() + \" \" + modelHolder.getCreator());\n \n modelHolder = honda.getCarModel(CarType.HYBRID, \"Fit\", \"zippy\");\n System.out.println(modelHolder.getTrade() + \" \" + modelHolder.getType() + \" \" \n + modelHolder.getModelName() + \" \" + modelHolder.getCreator()); \n modelHolder = honda.getCarModel(CarType.SPORT, \"Element\", \"SUPERFAST\");\n System.out.println(modelHolder.getTrade() + \" \" + modelHolder.getType() + \" \" \n + modelHolder.getModelName() + \" \" + modelHolder.getCreator());\n modelHolder = honda.getCarModel(CarType.TRUCK, \"Odysee\", \"deadly\");\n System.out.println(modelHolder.getTrade() + \" \" + modelHolder.getType() + \" \" \n + modelHolder.getModelName() + \" \" + modelHolder.getCreator());\n \n \n \n \n }", "public static void main(String[] args) {\n\t\tApplicationContext ctx = new AnnotationConfigApplicationContext(PerformerConfig.class);\r\n\t\tPerformer p = ctx.getBean(\"Rushikesh\",Performer.class);\r\n\t\ttry {\r\n\t\t\tp.perform();\r\n\t\t} catch (PerformanceExceptions e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tAnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();\n ctx.register(Config.class);\n ctx.refresh();\n \n AnimalFactory a = ctx.getBean(AnimalFactory.class);\n a.getAnimal(\"Amphibian\").sleep();\n\t}", "private static void fines() {\n\t\tnew PayFineUI(new payFineControl()).run(); // method name changes RuN() to run() , PayFineControl to payFineControl()\r\n\t}", "public ExecutionFactoryImpl() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void run(String... args) throws Exception {Formation f1=formationRepository.save(new Formation(\"php\", 60));\n//\t\tFormation f2=formationRepository.save(new Formation(\"java\", 60));\n//\t\tFormation f3=formationRepository.save(new Formation(\"c\", 60));\n//\t\tetudiantRepository.save(new Etudiant(\"hachem\",\"jebel\",new Date(),f1));\n//\t\tetudiantRepository.save(new Etudiant(\"salah\",\"sallemi\",new Date(),f2));\n//\t\tetudiantRepository.save(new Etudiant(\"hachem\",\"jebel\",new Date(),f3));\n//\t\t\n\t}", "public static void main(String[] args) {\n\n\t\tProducer farm = new Producer();\n\t\tSupplier sysco = new Supplier();\n\t\tConsumer resturant = new Consumer();\n\t\tfarm.addObserver(sysco);\n\t\tsysco.addObserver(resturant);\n\t\tfarm.grow();\n\t\tSystem.out.println(\"Supplier Inv:\" + sysco.inventory.size());\n\n\t\tRandom buy = new Random();\n\t\tint toBuy = buy.nextInt(2) + 0;\n\t\tif (toBuy == 1) {\n\t\t\tfarm.notifyObservers(farm.bananaInventory);\n\t\t} else {\n\t\t\tfarm.notifyObservers(farm.carrotInventory);\n\t\t}\n\t\tSystem.out.println(\"Supplier Inv:\" + sysco.inventory.size());\n\t\tSystem.out.println(\"Product Available: \"\n\t\t\t\t+ resturant.getProductAvailable().get(0).getName());\n\t\tSystem.out.println(\"---End transaction----\");\n\t}", "public static void main(String[] args) {\n\t\tGeneralPractitioner gp1 = new GeneralPractitioner(\"Stefan\", 32);\n\t\tSurgron s1 = new Surgron(\"Ivana\", 38);\n\t\tgp1.doMedicine();\n\t\tgp1.makeHouseCalls();\n\t\ts1.doMedicine();\n\t\ts1.performSurgery();\n\n\t}", "public Factory() {\n\t\tnb_rounds = 0; \n\t\tnb_to_train = 0; \n\t\ttraining_queue = new LinkedList<Pair<Soldier, Integer>>(); \n\t\tcurrent = null;\n\t}", "public static void main(String[] args) {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(AnnotationAwareAspectJAutoProxyCreator.class);\n\t\tcontext.scan(\"com.lpanek.dev.bigpicture.dip_vs_di_vs_ioc.ioc_aop\");\n\t\tcontext.refresh();\n\t\tBoxService boxService = (BoxService) context.getBean(\"boxService\");\n\n\t\t// ===== 2. USE CASE =====\n\t\tprintApplicationMessage(\"Boxes at the beginning: %s\", boxService.getAllBoxes());\n\n\t\tCreateBoxRequest createRequest = new CreateBoxRequest(\"Brand New Box\", period(\"2019-03-11\", \"2019-03-15\"));\n\t\tBoxId boxId = boxService.createBox(createRequest);\n\t\tprintApplicationMessage(\"Boxes after create Box: %s\", boxService.getAllBoxes());\n\n\t\tboxService.deleteBox(boxId);\n\t\tprintApplicationMessage(\"Boxes after delete Box: %s\", boxService.getAllBoxes());\n\t}", "public static void main(String[] args) {\n \tboolean debug = true;\n \tif(debug) {\n \t\tCustomExecutor executor = new CustomExecutor.Builder()\n \t\t\t.setVisual(true)\n\t \t.setTickLimit(8000)\n \t\t\t.setPO(true)\n\t \t.build();\n \t\t\n\t \tEnumMap<GHOST, IndividualGhostController> controllers = new EnumMap<>(GHOST.class);\n\n MyPacMan agent = new MyPacMan(true, MODULE_TYPE.THREE_MULTITASK, 2);\n //MyPacMan badboy = new MyPacMan(true, MODULE_TYPE.TWO_MODULES, 15);\n \n\t //create ghost controllers\n controllers.put(GHOST.INKY, new POGhost(GHOST.INKY));\n controllers.put(GHOST.BLINKY, new POGhost(GHOST.BLINKY));\n controllers.put(GHOST.PINKY, new POGhost(GHOST.PINKY));\n controllers.put(GHOST.SUE, new POGhost(GHOST.SUE));\n \n boolean secondViewer = true; // View in PO and non-PO mode\n executor.runGameTimed(agent, new MASController(controllers), secondViewer);\n\t System.out.println(\"Evaluation over\");\n \t} else {\n \t\t\n\t Executor executor = new Executor.Builder()\n\t \t\t.setVisual(true)\n\t \t \t.setTickLimit(8000)\n\t \t \t.build();\t\t\n\t \n\t \tEnumMap<GHOST, IndividualGhostController> controllers = new EnumMap<>(GHOST.class);\n\n\t MyPacMan agent = new MyPacMan();\n\t \n\t controllers.put(GHOST.INKY, new POGhost(GHOST.INKY));\n\t controllers.put(GHOST.BLINKY, new POGhost(GHOST.BLINKY));\n\t controllers.put(GHOST.PINKY, new POGhost(GHOST.PINKY));\n\t controllers.put(GHOST.SUE, new POGhost(GHOST.SUE));\n\t \n\t executor.runGameTimed(agent, new MASController(controllers));\n\t System.out.println(\"Evaluation over\");\n\t \n \t}\n }", "public static void main(String[] args){\n\n \tApplicationContext appContext = new AnnotationConfigApplicationContext(AppConfig.class);\n AnimalStoreService aService = appContext.getBean(\"animalStoreService\", AnimalStoreService.class);\n aService.execute();\n\n\n }", "public void warmup(TestCase testCase) { \n run(testCase);\n }", "public static void main(String[] args) {\n Factory factory = new SuTenCarFactory();\n Car car = factory.create();\n car.drive();\n }", "public static void main(String[] args) {\n ConfigurableApplicationContext ctx = new ClassPathXmlApplicationContext(\"config.xml\");\n // ctx.start();\n Database d =ctx.getBean(\"mysql\",Database.class);\n System.out.println(\"name --->\" + d.getName() + \" port-->\" + d.getPort());\n d.connect();\n // d.getInteger();\n // d.throwException();\n // d.checkdata(\"richa\");\n // d.getIntdata(200);\n // Dummy dummy = ctx.getBean(\"dummy\", Dummy.class);\n // dummy.display();\n // ctx.stop();\n /* Dummytest dummytest=ctx.getBean(\"dummyTest\",Dummytest.class);\nSystem.out.print(dummytest);\n PersonalisedService personalisedService=ctx.getBean(\"personalisedService\",PersonalisedService.class);\n System.out.println(personalisedService);\n System.out.println(personalisedService.employee.getCity());\n*/\n\n }", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\tconfiguration.exposeIdsFor(Film.class, Salle.class, Ticket.class, Categorie.class, Cinema.class, Place.class,\n\t\t\t\tProjection.class, Seance.class, Ville.class);\n\t\t// cinemaInitService.truncate();\n\t\t// cinemaInitService.initVilles();\n\t\t// cinemaInitService.initCategories();\n\t\t// cinemaInitService.initSeances();\n\t\t// cinemaInitService.initCinemas();\n\t\t// cinemaInitService.initSalles();\n\t\t// cinemaInitService.initPlaces();\n\t\t// cinemaInitService.initFilms();\n\t\t// cinemaInitService.initProjections();\n\t\t// cinemaInitService.initTickets();\n\t}", "public static void main(String[] args) {\n\t\tconfiguration = new Configuration().configure();\n\t\tssrb = new StandardServiceRegistryBuilder()\n\t\t\t\t.applySettings(configuration.getProperties());\n\t\tsf = configuration.buildSessionFactory(ssrb.build());\n\t\t\n\t\t//firstDemo();\n\t\t\n\t\t//secondDemo();\n\t\t\n\t\t//thirdDemo();\n\t\t\n\t\tfourthDemo();\n\t\t\n\t\t//fifthDemo();\n\t\t\n\t\tsf.close();\n\t\t\n\t}", "public void run() {\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionStart();\n\n /**\n * create an archetype for the new application\n */\n executeArchetypeCommand();\n\n /**\n * Provide some delay to allow thread to create the archetype\n */\n splash = new SplashScreen();\n\n for (int i = 0; i < 7; i++) {\n updateStatus(i);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }\n }\n\n hideSplashScreen();\n splash = null;\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionEnd();\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tVehicleFactory factory = new CarFactory();\n\t\tMoveable moveable = factory.Create();\n\t\tmoveable.run();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\r\n \r\n \r\n Resource res=null;\r\n BeanFactory bs=null;\r\n res=new FileSystemResource(\"src/com/spr/cfg/applicationContext.xml\");\r\n bs=new XmlBeanFactory(res);\r\n \r\n Object obj=bs.getBean(\"wsg\");\r\n WishApp opp=(WishApp)obj;\r\n String result=opp.WishGenrator(\"deependra\");\r\n System.out.println(result);\r\n \r\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t/* to implement fillowing methods we have to create an object of that class*/\n\t\tDeveloping d=new Developing();\n\t\td.payCreditCard();\n\t\td.transferBalnace();\n\t\td.checkBalance();\n\t\td.login();\n\t\t\n\t\tBankClient dr=new Developing();/**dr is only accss methods of bankclient not developing\n\t\t *all depends on return type..here is return type is bankclient\n\t\t *thats y dr is able to acss only bankclient methods this is known as\n\t\t *\"RUN TIME POLYMORPHISM\"\n\t\t */\n\t\t dr.payCreditCard();\n\t\t \n\t\t// DomainCleint dc=new DomainCleint();//this throws an error\n\t\t DomainCleint dc=new Developing();\n\t\t dc.investment();\n\n\t}", "protected void setup() {\n\t\tgetContentManager().registerOntology(JADEManagementOntology.getInstance());\r\n getContentManager().registerLanguage(new SLCodec(), FIPANames.ContentLanguage.FIPA_SL0);\r\n\t\tSystem.out.println(\"Agent FixCop cree : \"+getLocalName());\r\n\t\tObject[] args = getArguments();\r\n\t\tList<String> itinerary = (List<String>) args[0];\r\n\t\tint period = (int) args[1];\r\n\t\t\r\n\t\t\r\n\t// POLICIER STATIONNAIRE DO THE CYCLIC BEHAVIOUR TO SCAN THE ROOT , IF THE INTRUDER IS IN ROOT, POLICIER STATIO KILLS HIM.\r\n addBehaviour(new StationScanRootBehaviour(this));\r\n\r\n\t// RESPAWN ANOTHER POLICIER MOBILE AFTER EACH POLICIER MOBILE's LIFETIME DURATION ELAPSES.\r\n addBehaviour(new RespawnCopBehaviour(this, period, itinerary));\r\n\r\n\t}", "public void run() {\n boolean debug = debugLifecycle;\r\n if (debug) {\r\n System.out.println(\"Created : \" + getName()); \r\n }\r\n try {\r\n alive.incrementAndGet();\r\n super.run();\r\n } finally {\r\n alive.decrementAndGet();\r\n if (debug) {\r\n System.out.println(\"Exiting : \" + getName());\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n\t SendFactory factory = new SendFactory(); \r\n\t Sender sender = factory.produce(\"sms\"); \r\n\t sender.Send(); \r\n\t \r\n\t \r\n\t //using method get sender\r\n\t SendMultiFactory multiFactory = new SendMultiFactory(); \r\n\t sender = multiFactory.produceSms(); \r\n\t sender.Send(); \r\n\t \r\n\t //use static factory\r\n\t sender=SendStaticFactory.produceSms();\r\n\t sender.Send(); \r\n\t }", "public static void main(String[] args) {\n neqsim.thermo.system.SystemInterface feedGas = new neqsim.thermo.system.SystemSrkCPAstatoil(273.15 + 42.0,\n 10.00);\n feedGas.addComponent(\"nitrogen\", 1.03);\n feedGas.addComponent(\"CO2\", 1.42);\n feedGas.addComponent(\"methane\", 83.88);\n feedGas.addComponent(\"ethane\", 8.07);\n feedGas.addComponent(\"propane\", 3.54);\n feedGas.addComponent(\"i-butane\", 0.54);\n feedGas.addComponent(\"n-butane\", 0.84);\n feedGas.addComponent(\"i-pentane\", 0.21);\n feedGas.addComponent(\"n-pentane\", 0.19);\n feedGas.addComponent(\"n-hexane\", 0.28);\n feedGas.addComponent(\"water\", 0.0);\n feedGas.addComponent(\"TEG\", 0);\n feedGas.createDatabase(true);\n feedGas.setMixingRule(10);\n feedGas.setMultiPhaseCheck(true);\n\n Stream dryFeedGas = new Stream(\"dry feed gas\", feedGas);\n dryFeedGas.setFlowRate(11.23, \"MSm3/day\");\n dryFeedGas.setTemperature(30.4, \"C\");\n dryFeedGas.setPressure(52.21, \"bara\");\n StreamSaturatorUtil saturatedFeedGas = new StreamSaturatorUtil(dryFeedGas);\n Stream waterSaturatedFeedGas = new Stream(saturatedFeedGas.getOutStream());\n saturatedFeedGas.setName(\"water saturator\");\n neqsim.thermo.system.SystemInterface feedTEG = (neqsim.thermo.system.SystemInterface) feedGas.clone();\n feedTEG.setMolarComposition(new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02, 0.98 });\n\n Stream TEGFeed = new Stream(\"lean TEG to absorber\", feedTEG);\n TEGFeed.setFlowRate(6.1 * 1100.0, \"kg/hr\");\n TEGFeed.setTemperature(35.4, \"C\");\n TEGFeed.setPressure(52.21, \"bara\");\n\n SimpleTEGAbsorber absorber = new SimpleTEGAbsorber(\"SimpleTEGAbsorber\");\n absorber.addGasInStream(waterSaturatedFeedGas);\n absorber.addSolventInStream(TEGFeed);\n absorber.setNumberOfStages(10);\n absorber.setStageEfficiency(0.35);\n\n Stream dehydratedGas = new Stream(absorber.getGasOutStream());\n dehydratedGas.setName(\"dry gas from absorber\");\n Stream richTEG = new Stream(absorber.getSolventOutStream());\n\n ThrottlingValve glycol_flash_valve = new ThrottlingValve(richTEG);\n glycol_flash_valve.setName(\"Rich TEG HP flash valve\");\n glycol_flash_valve.setOutletPressure(4.9);\n\n Heater richGLycolHeaterCondeser = new Heater(glycol_flash_valve.getOutStream());\n richGLycolHeaterCondeser.setName(\"rich TEG preheater\");\n richGLycolHeaterCondeser.setOutTemperature(273.15 + 35.5);\n\n Heater richGLycolHeater = new Heater(richGLycolHeaterCondeser.getOutStream());\n richGLycolHeater.setName(\"rich TEG heater HP\");\n richGLycolHeater.setOutTemperature(273.15 + 62.0);\n\n Separator flashSep = new Separator(richGLycolHeater.getOutStream());\n flashSep.setName(\"degasing separator\");\n Stream flashGas = new Stream(flashSep.getGasOutStream());\n flashGas.setName(\"gas from degasing separator\");\n Stream flashLiquid = new Stream(flashSep.getLiquidOutStream());\n flashLiquid.setName(\"liquid from degasing separator\");\n\n Heater richGLycolHeater2 = new Heater(flashLiquid);\n richGLycolHeater2.setName(\"LP rich glycol heater\");\n richGLycolHeater2.setOutTemperature(273.15 + 139.0);\n richGLycolHeater2.setOutPressure(1.23);\n\n Mixer mixerTOreboiler = new Mixer(\"reboil mxer\");\n mixerTOreboiler.addStream(richGLycolHeater2.getOutStream());\n\n Heater heaterToReboiler = new Heater(mixerTOreboiler.getOutStream());\n heaterToReboiler.setOutTemperature(273.15 + 206.6);\n\n Separator regenerator2 = new Separator(heaterToReboiler.getOutStream());\n\n Stream gasFromRegenerator = new Stream(regenerator2.getGasOutStream());\n\n Heater sepregenGasCooler = new Heater(gasFromRegenerator);\n sepregenGasCooler.setOutTemperature(273.15 + 109.0);\n sepregenGasCooler.setOutPressure(1.23);\n//\t\tsepregenGasCooler.setEnergyStream(richGLycolHeaterCondeser.getEnergyStream());\n\n Separator sepRegen = new Separator(sepregenGasCooler.getOutStream());\n\n Stream liquidRegenReflux = new Stream(sepRegen.getLiquidOutStream());\n\n Recycle resycle2 = new Recycle(\"reflux resycle\");\n resycle2.addStream(liquidRegenReflux);\n\n Heater coolerRegenGas = new Heater(sepRegen.getGasOutStream());\n coolerRegenGas.setOutTemperature(273.15 + 35.5);\n\n Separator sepregenGas = new Separator(coolerRegenGas.getOutStream());\n\n Stream gasToFlare = new Stream(sepregenGas.getGasOutStream());\n\n Stream liquidToTrreatment = new Stream(sepregenGas.getLiquidOutStream());\n\n Stream hotLeanTEG = new Stream(regenerator2.getLiquidOutStream());\n\n neqsim.thermo.system.SystemInterface stripGas = (neqsim.thermo.system.SystemInterface) feedGas.clone();\n stripGas.setMolarComposition(new double[] { 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 });\n\n Stream strippingGas = new Stream(\"stripGas\", stripGas);\n strippingGas.setFlowRate(70.0, \"kg/hr\");\n strippingGas.setTemperature(206.6, \"C\");\n strippingGas.setPressure(1.23, \"bara\");\n\n WaterStripperColumn stripper = new WaterStripperColumn(\"TEG stripper\");\n stripper.addGasInStream(strippingGas);\n stripper.addSolventInStream(hotLeanTEG);\n stripper.setNumberOfStages(10);\n stripper.setStageEfficiency(0.5);\n\n Recycle resycle3 = new Recycle(\"gas stripper resycle\");\n resycle3.addStream(stripper.getGasOutStream());\n\n Pump hotLeanTEGPump = new Pump(stripper.getSolventOutStream());\n hotLeanTEGPump.setName(\"hot lean TEG pump\");\n hotLeanTEGPump.setOutletPressure(20.0);\n\n Heater coolerhOTteg = new Heater(hotLeanTEGPump.getOutStream());\n coolerhOTteg.setName(\"hot lean TEG cooler\");\n coolerhOTteg.setOutTemperature(273.15 + 116.8);\n\n Heater coolerhOTteg2 = new Heater(coolerhOTteg.getOutStream());\n coolerhOTteg2.setName(\"medium hot lean TEG cooler\");\n coolerhOTteg2.setOutTemperature(273.15 + 89.3);\n\n Heater coolerhOTteg3 = new Heater(coolerhOTteg2.getOutStream());\n coolerhOTteg3.setName(\"lean TEG cooler\");\n coolerhOTteg3.setOutTemperature(273.15 + 44.85);\n\n Pump hotLeanTEGPump2 = new Pump(coolerhOTteg3.getOutStream());\n hotLeanTEGPump2.setName(\"lean TEG HP pump\");\n hotLeanTEGPump2.setOutletPressure(52.21);\n\n Stream leanTEGtoabs = new Stream(hotLeanTEGPump2.getOutStream());\n leanTEGtoabs.setName(\"lean TEG to absorber\");\n\n neqsim.thermo.system.SystemInterface pureTEG = (neqsim.thermo.system.SystemInterface) feedGas.clone();\n pureTEG.setMolarComposition(new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0 });\n\n Stream makeupTEG = new Stream(\"lean TEG to absorber\", pureTEG);\n makeupTEG.setFlowRate(1e-6, \"kg/hr\");\n makeupTEG.setTemperature(35.4, \"C\");\n makeupTEG.setPressure(52.21, \"bara\");\n\n Calculator makeupCalculator = new Calculator(\"makeup calculator\");\n makeupCalculator.addInputVariable(dehydratedGas);\n makeupCalculator.addInputVariable(flashGas);\n makeupCalculator.addInputVariable(gasToFlare);\n makeupCalculator.addInputVariable(liquidToTrreatment);\n makeupCalculator.setOutputVariable(makeupTEG);\n\n StaticMixer makeupMixer = new StaticMixer(\"makeup mixer\");\n makeupMixer.addStream(leanTEGtoabs);\n makeupMixer.addStream(makeupTEG);\n\n Recycle resycleLeanTEG = new Recycle(\"lean TEG resycle\");\n resycleLeanTEG.addStream(makeupMixer.getOutStream());\n\n neqsim.processSimulation.processSystem.ProcessSystem operations = new neqsim.processSimulation.processSystem.ProcessSystem();\n operations.add(dryFeedGas);\n operations.add(saturatedFeedGas);\n operations.add(waterSaturatedFeedGas);\n operations.add(TEGFeed);\n operations.add(absorber);\n operations.add(dehydratedGas);\n operations.add(richTEG);\n operations.add(glycol_flash_valve);\n operations.add(richGLycolHeaterCondeser);\n operations.add(richGLycolHeater);\n operations.add(flashSep);\n operations.add(flashGas);\n operations.add(flashLiquid);\n operations.add(richGLycolHeater2);\n operations.add(mixerTOreboiler);\n operations.add(heaterToReboiler);\n operations.add(regenerator2);\n operations.add(gasFromRegenerator);\n operations.add(sepregenGasCooler);\n operations.add(sepRegen);\n operations.add(liquidRegenReflux);\n operations.add(resycle2);\n\n operations.add(coolerRegenGas);\n operations.add(sepregenGas);\n operations.add(gasToFlare);\n operations.add(liquidToTrreatment);\n operations.add(hotLeanTEG);\n operations.add(strippingGas);\n operations.add(stripper);\n\n operations.add(resycle3);\n operations.add(hotLeanTEGPump);\n operations.add(coolerhOTteg);\n operations.add(coolerhOTteg2);\n operations.add(coolerhOTteg3);\n operations.add(hotLeanTEGPump2);\n operations.add(leanTEGtoabs);\n operations.add(makeupCalculator);\n operations.add(makeupTEG);\n operations.add(makeupMixer);\n operations.add(resycleLeanTEG);\n\n operations.run();\n richGLycolHeater2.getOutStream().getFluid().display();\n System.out.println(\"Energy reboiler \" + heaterToReboiler.getDuty());\n mixerTOreboiler.addStream(liquidRegenReflux);\n mixerTOreboiler.addStream(resycle3.getOutStream());\n //\n operations.run();\n absorber.replaceSolventInStream(resycleLeanTEG.getOutStream());\n operations.run();\n // richGLycolHeater2.getOutStream().getFluid().display();\n\n System.out.println(\"Energy reboiler 2 \" + heaterToReboiler.getDuty());\n\n System.out.println(\"wt lean TEG after stripper \"\n + ((WaterStripperColumn) operations.getUnit(\"TEG stripper\")).getSolventOutStream().getFluid()\n .getPhase(\"aqueous\").getWtFrac(\"TEG\"));\n\n operations.save(\"c:/temp/TEGprocessSimple.neqsim\");\n }", "public static void main (String[] args) {\n\n Config config = ConfigUtils.loadConfig(\"/home/gregor/git/matsim/examples/scenarios/pt-tutorial/0.config.xml\");\n// config.controler().setLastIteration(0);\n// config.plans().setHandlingOfPlansWithoutRoutingMode(PlansConfigGroup.HandlingOfPlansWithoutRoutingMode.useMainModeIdentifier);\n// Scenario scenario = ScenarioUtils.loadScenario(config);\n// Controler controler = new Controler(scenario);\n// controler.run();\n\n\n// Config config = this.utils.loadConfig(IOUtils.extendUrl(ExamplesUtils.getTestScenarioURL(\"pt-tutorial\"), \"0.config.xml\"));\n config.controler().setLastIteration(1);\n config.plans().setHandlingOfPlansWithoutRoutingMode(PlansConfigGroup.HandlingOfPlansWithoutRoutingMode.useMainModeIdentifier);\n\n\n// try {\n Controler controler = new Controler(config);\n// final EnterVehicleEventCounter enterVehicleEventCounter = new EnterVehicleEventCounter();\n// final StageActivityDurationChecker stageActivityDurationChecker = new StageActivityDurationChecker();\n// controler.addOverridingModule( new AbstractModule(){\n// @Override public void install() {\n// this.addEventHandlerBinding().toInstance( enterVehicleEventCounter );\n// this.addEventHandlerBinding().toInstance( stageActivityDurationChecker );\n// }\n// });\n controler.run();\n }", "public static void main(String[] args) {\n Engine engine = new Engine(\"suzuki\", 100, 0, 887, 500);\r\n Boing747 aircraft = new Boing747(engine);\r\n aircraft.fly(1_000_000);\r\n if (engine.doesEngineNeedsRestart()) {\r\n System.out.println(\"take engine to repair...\");\r\n }\r\n }", "@Override\n\tpublic int run() {\n\t\tSystem.out.println(\"Id das prateleiras existentes:\" + shelfBusiness.getAllIds());\n\t\t\n\t\tSystem.out.println(shelfBusiness.consultar());\n\t\t\n\t\t//TODO introduzir info count produts - nao funciona\n//\t\tSystem.out.println(\"Quantidade de produtos\" + productsIds.lenght);\n\n\n\t\treturn 1;\n\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tRunRecMaintenance maintain = new RunRecMaintenance();\n\t\t\t\t\t\tmaintain.startAutomaticMaintain();\n\t\t\t\t\t}", "@Override\n\tprotected void postRun() {\n\n\t}", "@Override\n\tpublic void run() {\n\t\tfileName = \"out_\" + Program.getProgram().getFileName() + \"_\";\n\t\tint numAddStop = 0;\n\t\t//fileName = \"out_themida_\";\n\n\t\t//fileState.clearContentFile();\n\t\t//bkFile.clearContentFile();\n\t\toverallStartTime = System.currentTimeMillis();\n\t\tlong overallStartTemp = overallStartTime;\n\t\t// BE-PUM algorithm\n\t\tSystem.out.println(\"Starting On-the-fly Model Generation algorithm.\");\n\t\tprogram.getResultFileTemp().appendInLine('\\n' + program.getFileName() + '\\t');\n\t\t\n\t\t// Set up initial context\n\t\tX86TransitionRule rule = new X86TransitionRule();\n\t\tBPCFG cfg = Program.getProgram().getBPCFG();\n\t\tEnvironment env = new Environment();\n\t\t//env.getMemory().resetImportTable(program);\n\t\tAbsoluteAddress location = Program.getProgram().getEntryPoint();\n\t\tInstruction inst = Program.getProgram().getInstruction(location, env);\n\t\tList<BPPath> pathList = new ArrayList<BPPath>();\n\t\t\n\t\t// Insert start node\n\t\tBPVertex startNode = null;\n\t\tstartNode = new BPVertex(location, inst);\n\t\tstartNode.setType(0);\n\t\tcfg.insertVertex(startNode);\n\n\t\tBPState curState = null;\n\t\tBPPath path = null;\n\t\tcurState = new BPState(env, location, inst);\n\t\tpath = new BPPath(curState, new PathList(), new Formulas());\n\t\tpath.setCurrentState(curState);\n\t\tpathList.add(path);\n\n\t\t/*if (Program.getProgram().getFileName().equals(\"api_test_v2.3_lvl1.exe\") \n\t\t\t\t&& isRestored) {\n\t\t\tSystem.out.println(\"Restore State from File.\");\n\t\t\tFileProcess reFile = new FileProcess(\"data/data/restoreState.txt\");\n\t\t\tpathList = restoreState(reFile);\n\t\t\t// bkFile.clearContentFile();\n\t\t\tSystem.out.println(\"Finished restoring state!\");\n\t\t}*/\n\n\t\t// Update at first -----------------------------\n\t\tTIB.setBeUpdated(true);\n\t\tTIB.updateTIB(curState);\n\t\t// ---------------------------------------------\n\n\t\t// PHONG - 20150801 /////////////////////////////\n\t\t// Packer Detection via Header\n\t\tSystem.out.println(\"================PACKER DETECTION VIA HEADER ======================\");\n\t\tif (OTFModelGeneration.detectPacker)\n\t\t{\n\t\t\tprogram.getDetection().detectViaHeader(program);\n\t\t\tprogram.getDetection().setToLogFirst(program);\n\t\t}\n\t\tSystem.out.println(\"==================================================================\");\n\t\t/////////////////////////////////////////////////\n\t\t\n\t\tsynchronized (OTFThreadManager.getInstance()) {\n\t\t\ttry {\n\t\t\t\tOTFThreadManager.getInstance().check(this, pathList);\n\t\t\t\tOTFThreadManager.getInstance().wait();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// PHONG - 20150724\n\t\tSystem.out.println(\"================PACKER DETECTION VIA OTF======================\");\n\t\tprogram.getDetection().packedByTechniques();\n\t\tprogram.getDetection().packedByTechniquesFrequency();\n\t\tSystem.out.println(\"==============================================================\");\n\t}", "public static void main(String[] args) throws Exception {\r\n\r\n\t\t\r\n\t\t// prepare\r\n\t\tDiscountPolicy KB = null; // this is the generated interface\r\n\t\tBasicConfigurator.configure();\r\n\r\n\t\t// compile and bind constants referenced in rules\r\n\t\tKnowledgeBaseManager<DiscountPolicy> kbm = new KnowledgeBaseManager<DiscountPolicy>();\r\n\t\tMap<String,Object> bindings = new HashMap<String,Object>();\t\t\r\n\t\tbindings.put(\"goldCustomerDiscount\",new Discount(20,true));\r\n\t\tInputStream scriptSource = GenerateInterface.class.getResourceAsStream(\"/example/nz/org/take/compiler/example1/crm-example.take\");\r\n\t\tKB = kbm.getKnowledgeBase(\r\n\t\t\t\tDiscountPolicy.class, \r\n\t\t\t\tnew ScriptKnowledgeSource(scriptSource),\r\n\t\t\t\tbindings);\r\n\t\t\r\n\t\t// now use the generated classes to query the kb\r\n\t\tCustomer john = new Customer(\"John\");\r\n\t\tjohn.setTurnover(1000);\r\n\t\tResultSet<CustomerDiscount> result = KB.getDiscount(john);\r\n\t System.out.println(\"The discount for John is: \" + result.next().discount);\r\n\t \r\n\t // print rules used\r\n\t System.out.println(\"The following rules have been used to calculate the discount: \");\r\n\t for (DerivationLogEntry e:result.getDerivationLog()) {\r\n\t \tSystem.out.print(e.getCategory());\r\n\t \tSystem.out.print(\" : \");\r\n\t \tSystem.out.println(e.getName());\r\n\t }\r\n\t \r\n\t // query again (first query is slow as kb has to be compiled, like in JSPs), measure time\r\n\t long before = System.currentTimeMillis();\r\n\t result = KB.getDiscount(john);\r\n\t long after = System.currentTimeMillis();\r\n\t System.out.println(\"Second query took \" + (after-before) + \"ms\");\r\n\t \r\n\t System.out.println(\"done\");\r\n\t}", "@Override\n public void run() throws ApplicationException\n {\n super.run();\n\n /* If not exists, create */\n if (!customer.exists)\n {\n generator.generateData();\n byte[] tmpPassword = customer.firstName.getBytes();\n\n try {\n session.createCustomer(tmpPassword);\n } finally {\n Utils.cleanArray(tmpPassword);\n }\n }\n\n do {\n /* Prepare an order */\n session.order();\n\n do {\n Session.ItemDef item;\n\n do {\n /* Add items */\n session.item(item = session.selectRandomProducts(random));\n\n /* This loop is just a hack for the case if select random returns null (it may) */\n } while (item == null);\n } while (random.nextDouble() > newItemThreshold);\n\n /* Submit order, this actually executes SQL */\n session.submit();\n } while (random.nextDouble() > newOrderThreshold);\n }", "public static void main(String args[]) {\n\t\tStirFry order = new StirFry();\n\t\t\n\t\torder.make(); //makes the stir fry\n\t\torder.serve(); //serves the stir fry\n\t}", "public static void main(String[] args) \n\t{\n\t\t\n\t\tApplicationContext context=new ClassPathXmlApplicationContext\n\t\t\t\t(\"com/bridgelabz/DependencyInjection/injectingobject/beans.xml\");\n\t\t//student\n\t\tStudent stu=context.getBean(\"stud\",Student.class);\n\t\tstu.cheating();\n\t\t//New student\n\t\tNewStudent newstu=context.getBean(\"newstud\",NewStudent.class);\n\t\tnewstu.startcheating();\n\t\t\n\t\t \n\t}", "private void runEm() {\n renameOriginalDomainConfig();\n\n testV3_0_1Domain();\n\n // after all the tests have run, move back the old domain\n restoreOriginalDomainConfig();\n\n // print results\n stat.printSummary();\n }", "public static void main(String[] args) {\n var sagaOrchestrator = new SagaOrchestrator(newSaga(), serviceDiscovery());\n\n Saga.Result goodOrder = sagaOrchestrator.execute(\"good_order\");\n Saga.Result badOrder = sagaOrchestrator.execute(\"bad_order\");\n Saga.Result crashedOrder = sagaOrchestrator.execute(\"crashed_order\");\n\n System.out.printf(\"orders: goodOrder is %s, badOrder is %s,crashedOrder is %s%n\",\n goodOrder, badOrder, crashedOrder);\n }", "public void run() {\n run(ErisCasper.create());\n }", "public void makeTea() {\n\t\tboil();\n\t\taddSugar();\n\t\taddTea();\n\t\tserve();\n\t}", "public static void main(String[] args) {\r\n System.out.println(\"***debut serveur gestion ***\");\r\n new ServeurGestion(50003).fonctionnementService();\r\n \r\n }", "SUT createSUT();", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew Niveau1();\n\t\t\t}", "public static void main(String[] args) {\n\t\tApplicationContext context = new AnnotationConfigApplicationContext(Config.class);\n\t\t\n\t\tStudentService studentService = (StudentService) context.getBean(\"concreteStudentService\");\n\t\tstudentService.viewStudent();\n\t\t\n\t\tstudentService = (StudentService) context.getBean(\"concreteStudentService\");\n\t\tstudentService.viewStudent();\n\t\t\n\t\tstudentService = (StudentService) context.getBean(\"consoleStudentService\");\n\t\tstudentService.viewStudent();\n\t\t\n\n\t\t((ConfigurableApplicationContext)context).close();\n\t}", "public static void main(String[] args) {\n\t\tBankServiceProvider bsp= new AxisBank();\r\n\t\tbsp.processLoan();\r\n\t\tbsp=new IndianBank();\r\n\t\tbsp.processLoan();\r\n\t\t\r\n\t\t/*final double pie=3.14;\r\n\t\tpie=pie+1;*/\r\n\t\t\r\n\t\t\r\n\r\n\t}", "private void runBest() {\n }", "protected void generateAndSavePopulation(Scenario sc) {\n\t\tGripsConfigModule gcm = getGripsConfig(sc.getConfig());\n\t\tString gripsPopulationFile = gcm.getPopulationFileName();\n\t\tnew PopulationFromESRIShapeFileGenerator(sc, gripsPopulationFile,\n\t\t\t\tthis.safeLinkId).run();\n\n\t\tString outputPopulationFile = gcm.getOutputDir() + \"/population.xml.gz\";\n\t\tnew PopulationWriter(sc.getPopulation(), sc.getNetwork(),\n\t\t\t\tgcm.getSampleSize()).write(outputPopulationFile);\n\t\tsc.getConfig().plans().setInputFile(outputPopulationFile);\n\n\t\tsc.getConfig().qsim().setStorageCapFactor(gcm.getSampleSize());\n\t\tsc.getConfig().qsim().setFlowCapFactor(gcm.getSampleSize());\n\n\t\tActivityParams pre = new ActivityParams(\"pre-evac\");\n\t\tpre.setTypicalDuration(49); // needs to be geq 49, otherwise when\n\t\t\t\t\t\t\t\t\t// running a simulation one gets\n\t\t\t\t\t\t\t\t\t// \"java.lang.RuntimeException: zeroUtilityDuration of type pre-evac must be greater than 0.0. Did you forget to specify the typicalDuration?\"\n\t\t// the reason is the double precision. see also comment in\n\t\t// ActivityUtilityParameters.java (gl)\n\t\tpre.setMinimalDuration(49);\n\t\tpre.setClosingTime(49);\n\t\tpre.setEarliestEndTime(49);\n\t\tpre.setLatestStartTime(49);\n\t\tpre.setOpeningTime(49);\n\n\t\tActivityParams post = new ActivityParams(\"post-evac\");\n\t\tpost.setTypicalDuration(49); // dito\n\t\tpost.setMinimalDuration(49);\n\t\tpost.setClosingTime(49);\n\t\tpost.setEarliestEndTime(49);\n\t\tpost.setLatestStartTime(49);\n\t\tpost.setOpeningTime(49);\n\t\tsc.getConfig().planCalcScore().addActivityParams(pre);\n\t\tsc.getConfig().planCalcScore().addActivityParams(post);\n\n\t\tsc.getConfig().planCalcScore().setLateArrival_utils_hr(0.);\n\t\tsc.getConfig().planCalcScore().setPerforming_utils_hr(0.);\n\n\t\t// matsimScenario.getConfig().planCalcScore().addParam(\"activityPriority_0\", \"1\");\n\t\t// matsimScenario.getConfig().planCalcScore().addParam(\"activityTypicalDuration_0\",\n\t\t// \"00:00:49\");\n\t\t// matsimScenario.getConfig().planCalcScore().addParam(\"activityMinimalDuration_0\",\n\t\t// \"00:00:49\");\n\t\t// matsimScenario.getConfig().planCalcScore().addParam(\"activityPriority_1\", \"1\");\n\t\t// matsimScenario.getConfig().planCalcScore().addParam(\"activityTypicalDuration_1\",\n\t\t// \"00:00:49\");\n\t\t// matsimScenario.getConfig().planCalcScore().addParam(\"activityMinimalDuration_1\",\n\t\t// \"00:00:49\");\n\n\t}", "private String doInit(int i, String[] args) throws SoarException\r\n {\n smem.smem_close();\r\n\r\n // production memory (automatic init-soar clears working memory as a result) \r\n //this->DoCommandInternal( \"excise --all\" );\r\n \r\n // Excise all just removes all rules and does init-soar\r\n final Agent agent = Adaptables.require(getClass(), context, Agent.class);\r\n for(Production p : new ArrayList<Production>(agent.getProductions().getProductions(null)))\r\n {\r\n agent.getProductions().exciseProduction(p, false);\r\n }\r\n agent.initialize();\r\n \r\n return \"\";\r\n }", "public static void main(String[] args) {\n\t\tProgram.withoutFactoryMethod();\n\t\tSystem.out.println();\n\t\tProgram.withFactoryMethod();\n\t}", "protected void setup() {\r\n \t//inizializza gli attributi dell'iniziatore in base ai valori dei parametri\r\n Object[] args = this.getArguments();\r\n \t\tif (args != null)\r\n \t\t{\r\n \t\t\tthis.goodName = (String) args[0];\r\n \t\t\tthis.price = (int) args[1];\r\n \t\t\tthis.reservePrice = (int) args[2];\r\n \t\t\tthis.dif = (int) args[3];\r\n \t\t\tthis.quantity = (int) args[4];\r\n \t\t\tthis.msWait = (int) args[5];\r\n \t\t} \t\t\r\n\r\n manager.registerLanguage(codec);\r\n manager.registerOntology(ontology);\r\n \r\n //inizializza il bene oggetto dell'asta\r\n good = new Good(goodName, price, reservePrice, quantity);\r\n \r\n //cerca ed inserisce nell'ArrayList gli eventuali partecipanti\r\n findBidders(); \r\n \r\n //viene aggiunto l'apposito behaviour\r\n addBehaviour(new BehaviourInitiator(this));\r\n\r\n System.out.println(\"Initiator \" + this.getLocalName() + \" avviato\");\r\n }", "public static void main(String [] args){\n\t\tAbstractFactory carFactory = new CarFactory();\n\t\t\n\t\t// Create as many cars as you want\n\t\tCar sedan = carFactory.getCar(\"Sedan\");\n\t\tsedan.getCarInfo();\n\t\t\n\t\tCar coupe = carFactory.getCar(\"Coupe\");\n\t\tcoupe.getCarInfo();\n\t\t\n\t}", "public static void main(String[] args) throws Exception {\n\t\tApplicationContext factory = new AnnotationConfigApplicationContext(AppConfig.class);\n\t\t\n\t\t\n\t\tProductService service = (ProductServiceImpl) factory.getBean(ProductServiceImpl.class);\n\t\tSystem.out.println(\"Scanning Items.... \");\n\t\t\n\t\tservice.scanProductId(\"Item_1\");\n\t\tservice.scanProductId(\"Item_2\");\n\t\tservice.scanProductId(\"Item_3\");\n\t\tservice.scanProductId(\"Item_4\");\n\t\tservice.scanProductId(\"Item_5\");\n\t\tservice.scanProductId(\"Item_6\");\n\t\tservice.scanProductId(\"Item_7\");\n\t\t\n\t\tSystem.out.println(\"Calculating order amount....\");\n\t\tservice.calculateBill();\n\n\t\t//SpringApplication.run(OrderApplication.class, args);\n\t}", "static void configure() {\n float weight = (float) (Math.random() * 4000);\n System.out.println(\"Weight: \" + String.format(\"%.2f\", weight) + \"kg\");\n\n if (weight < 2000) {\n logisticsFactory = new RoadLogistics();\n } else {\n logisticsFactory = new SeaLogistics();\n }\n\n }", "private static SnowyScheme constructSnowyScheme() {\n\t\t/* Setup a basic dam scheme */\n\t\t\n\t\t/*Dam setup \n\t\t * Used ML for water and MW for power, didn't add outflow as it depends on the dam, coeff wasn't changed\n\t\t */\t\t\n\t\t/**dam\n\t\t * @param count - Variable used as an identifier.\n\t\t * @param capacity - The maximum water capacity of the dam.\n\t\t * @param initialLevel - The water level of the dam starts with this value.\n\t\t * @param downstream - Variable representing where water flows when the dam is overflowing.\n\t\t * @param coeff - Coefficient of the power-water equation (used to determine power generated per litre of water).\n\t\t * @param maxPwr - max power the generator in the dam can produce \n\t\t */\n\t\t\n\t /** river\n\t * @param count - An id\n\t * @param max - A max value before flooding\n\t * @param min - A min value before drought\n\t * @param initialFlow - What the river starts at\n\t * @param length - Length of the river\n\t * @param out - Where the water flow goes.\n\t */\n\t\t\n\t\t// Dams\n\t\tDam blowering = new Dam(\"Blowering\", 1628000, 1628000/2, null , (float)0.3, 80); \n\t\tDam talbingo = new Dam(\"Talbingo\", 921400, 921400/2, null, (float)0.3, 1500); \t\t\n\t\tDam tumut2 = new Dam(\"Tumut 2\", 2677, 2677/2, null, (float)0.3, 286); \t\t\n\t\tDam tumut1 = new Dam(\"Tumut 1\", 52793, 52793/2, null, (float)0.3, 330); \t\t\n\t\tDam guthega = new Dam(\"Guthega\", 1604, 1604/2, null, (float)0.3, 60);\n\t\tDam murray = new Dam(\"Murray\", 2344, 2344/2, null, (float)0.3, 1500);\n\t\tDam jounama = new Dam(\"Jounama\", 43542, 43542/2, null, (float)0.3, 0);\n\t\tDam tooma = new Dam(\"Tooma\", 28124, 28124/2, null, (float)0.3, 0);\n\t\tDam happyJacks = new Dam(\"Happy Jacks\", 271, 271/2, null, (float)0.3, 0);\n\t\tDam tangara = new Dam(\"Tangara\", 254099, 254099/2, null, (float)0.3, 0);\n\t\tDam eucumbene = new Dam(\"Eucumbene\", 4798400, 4798400/2, null, (float)0.3, 0);\n\t\tDam jindabyne = new Dam(\"Jindabyne\", 688287, 688287/2, null, (float)0.3, 0);\n\t\tDam islandBendDam = new Dam(\"Island Bend\", 3084, 3084/2, null, (float)0.3, 0);\n\t\tDam geehi = new Dam(\"Geehi\", 21093, 21093/2, null, (float)0.3, 0);\n\t\tDam khancoban = new Dam(\"Khancoban\", 26643, 26643/2, null, (float)0.3, 0);\n\n\t\tSnowyScheme scheme = new SnowyScheme(murray);\n\t\tscheme.addDam(blowering);\n\t\tscheme.addDam(talbingo);\n\t\tscheme.addDam(tumut2);\n\t\tscheme.addDam(tumut1);\n\t\tscheme.addDam(guthega);\n\t\tscheme.addDam(murray);\n\t\tscheme.addDam(jounama);\n\t\tscheme.addDam(tooma);\n\t\tscheme.addDam(happyJacks);\n\t\tscheme.addDam(tangara);\n\t\tscheme.addDam(eucumbene);\n\t\tscheme.addDam(jindabyne);\n\t\tscheme.addDam(islandBendDam);\n\t\tscheme.addDam(geehi);\n\t\tscheme.addDam(khancoban);\n\t\t\n\t\t// Rivers\n\t\tRiver hightoBlowering = new River(\"Blowering to Ocean\", 100, 10 , 50, 10, scheme.getOcean()); // From blowering to ocean\n\t\tblowering.connectTo(hightoBlowering);\n\t\tscheme.addRiver(hightoBlowering);\n\t\tRiver junamaToblowering = new River(\"Junama To Blowering\", 54, 5 , 25, (float) 17.857, blowering);\n\t\tjounama.connectTo(junamaToblowering);\n\t\tscheme.addRiver(junamaToblowering);\n\t\tRiver talbingoTojunama = new River(\"Talbingo to Junama\", 27, 3 , 10, (float) 8.923, jounama);\n\t\ttalbingo.connectTo(talbingoTojunama);\n\t\tscheme.addRiver(talbingoTojunama);\n\t\tRiver tumutToTalbingo = new River(\"Tumut to Talbingo\", 89, 9 , 40, (float) 29.762, talbingo);\n\t\ttumut2.connectTo(tumutToTalbingo);\n\t\tscheme.addRiver(tumutToTalbingo);\n\t\tRiver tumutToTamut = new River(\"Tumut 1 to Tumut 2\", 27, 3 , 15, (float) 8.929, tumut2);\n\t\ttumut1.connectTo(tumutToTamut);\n\t\tscheme.addRiver(tumutToTamut);\n\t\tRiver toomaToTumut = new River(\"Tooma to Tumut 1\", 45, 5, 25, (float) 14.881, tumut1);\n\t\ttooma.connectTo(toomaToTumut);\n\t\tscheme.addRiver(toomaToTumut);\n\t\tRiver happyJToTumut = new River(\"Happy Jacks to Tumut 1\", 45, 5, 25, (float) 14.881, tumut1);\n\t\thappyJacks.connectTo(happyJToTumut);\n\t\tscheme.addRiver(happyJToTumut);\n\t\tPipe eucumbeneToHappyJ = new Pipe(\"Eucumbene to Happy Jacks\", 50 , 100, (float) 0.5, eucumbene, happyJacks);\n\t\tscheme.addPipe(eucumbeneToHappyJ);\n\t\tRiver tangaraToEucumbene = new River(\"Tangara to Eucumbene\", 107, 10 , 50, (float) 35.714, eucumbene);\n\t\ttangara.connectTo(tangaraToEucumbene);\n\t\tscheme.addRiver(tangaraToEucumbene);\n\t\tRiver eucumbeneToJindabyne = new River(\"Eucumbene To Jinabyne\", 928, 93 , 400, (float) 32.738, jindabyne);\n\t\teucumbene.connectTo(eucumbeneToJindabyne);\n\t\tscheme.addRiver(eucumbeneToJindabyne);\n\t\tRiver snowyRiver = new River(\"Snowy River\", 1000, 10 , 500, 100, scheme.getOcean());\n\t\tjindabyne.connectTo(snowyRiver);\n\t\tscheme.addRiver(snowyRiver);\n\t\tPipe jindabyneToIsland = new Pipe(\"JindaByne to Island Bend\", 50, 100, (float) 0.5, islandBendDam, jindabyne);\n\t\tscheme.addPipe(jindabyneToIsland);\n\t\tPipe eucumbeneToIsland = new Pipe(\"Eucumbene to Island\", 50, 100, (float) 0.5, islandBendDam, eucumbene);\n\t\tscheme.addPipe(eucumbeneToIsland);\n\t\tRiver guthegaToIsland = new River(\"Guthega to Island Bend\", 54, 5 , 20, (float) 17.857, islandBendDam);\n\t\tguthega.connectTo(guthegaToIsland);\n\t\tscheme.addRiver(guthegaToIsland);\n\t\tRiver islandToGeehi = new River(\"Island Bend to Geehi\", 48, 5 , 20, (float) 16.071, geehi);\n\t\tislandBendDam.connectTo(islandToGeehi);\n\t\tscheme.addRiver(islandToGeehi);\n\t\tRiver geehiToMurray = new River(\"Geehi to Murray\", 45, 5 , 20, (float) 14.881, murray);\n\t\tgeehi.connectTo(geehiToMurray);\n\t\tscheme.addRiver(geehiToMurray);\n\t\tRiver murrayToKhancoban = new River(\"Murray to Khancoban\", 31, 3 , 10, (float) 10.119, khancoban);\n\t\tmurray.connectTo(murrayToKhancoban);\n\t\tscheme.addRiver(murrayToKhancoban);\n\t\tRiver khancobanRiver = new River(\"Khancoban to Ocean\", 100, 0 , 50, 100, scheme.getOcean());\n\t\tkhancoban.connectTo(khancobanRiver);\n\t\tscheme.addRiver(khancobanRiver);\n\n\t\tSystem.out.print(\"The model is \");\n\t\t\n\t\tif(scheme.validateModel())\n\t\t\tSystem.out.println(\"valid\");\n\t\telse{\n\t\t\tSystem.out.println(\"invalid\");\n\t\t}\n\t\t\n\t\treturn scheme;\n\t}", "public void launch(String stage) {\n\t\tnew JFXPanel();\n\t\tresult = new FutureTask(new Callable(){\n \n @Override\n public Object call() throws Exception {\n StagedProduction prod=(StagedProduction)Class.forName(stage).getConstructor().newInstance();\n return (prod.produce());\n }\n \n \n });\n Platform.runLater(result);\n\t}", "public static void main(String[] args) {\n CandidatoServices candidatoServices = new CandidatoServices();\n candidatoServices.consultarVagas();\n //teste de candidatar a vaga\n Candidato usuCandidato = new Candidato(1, \"123\", \"321\", 25, \"[email protected]\", \"senha465\", \"Leonardo\");\n ProcessoSeletivo processo = new ProcessoSeletivo(new ArrayList<Candidatura>(),new Vaga(\"analista\",2000,\n new Empresa(\"123\",\"rua dois\")),\"Processo 1\");\n candidatoServices.candidatarVaga(processo, usuCandidato);\n //teste de acompanhamento de processo seletivo\n candidatoServices.acompanharProcessoSeletivo(new Candidatura(usuCandidato,StatusCandidatura.EMPROCESSOSELETIVO),\n new Entrevista(\"10/10/2020\",\"Rua tres\",\"12:00\",usuCandidato), processo);\n\n //testes de servicos da agencia\n //teste de consultar os candidatos em cada processo seletivo\n AgenciaServices agenciaServices = new AgenciaServices();\n agenciaServices.consultarCandidatos();\n //teste de cadasatrar uma vaga\n agenciaServices.cadastrarVaga(new Vaga(\"designer\",5000,new Empresa(\"123\",\"rua dois\")), \"Processo final\");\n //teste de gerenciamento dos processos seletivos\n agenciaServices.gerenciarProcessoSeletivo();\n }", "public static void main(String[] args) {\n\t\t\n\t\tBlackBox core = new BlackBox();\n\t\tcore.newEnvironment();\n\t\t\n\t\ttry {\n\t\t\t/**\n\t\t\t * insert fire fighter agents\n\t\t\t * insert fire building tasks\n\t\t\t * insert fire station agents\n\t\t\t */\n\t\t\tcore.addAgent(FireFighter.class, Transmitter.getIntConfigParameter(\"config.properties\", \"config.variables\"));\n\t\t\tcore.addTask(FireBuildingTask.class, Transmitter.getIntConfigParameter(\"config.properties\", \"config.values\"));\n\t\t\tcore.addAgent(FireStation.class, Transmitter.getIntConfigParameter(\"config.properties\", \"config.central\"));\n\t\t\t\n\t\t} catch (InstantiationException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IllegalAccessException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tcore.simulationStart();\n\t\t} catch (SimulatorException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/*\n\t\tfor(Variable var : core.getEnvironment().getVariables())\n\t\t{\n\t\t\tSystem.out.println(var.getClass());\n\t\t\tif(var instanceof Human){\n\t\t\t\tHuman h = (Human)var;\n\t\t\t\tSystem.out.println(\"Attributes of Human \"+h.getId());\n\t\t\t\tSystem.out.println(\"Strength \"+h.getStrength());\n\t\t\t\tSystem.out.println(\"Dexterity \"+h.getDexterity());\n\t\t\t\tSystem.out.println(\"Stamina \"+h.getStamina());\n\t\t\t\tSystem.out.println(\"Charisma \"+h.getCharisma());\n\t\t\t\tSystem.out.println(\"Appearance \"+h.getAppearance());\n\t\t\t\tSystem.out.println(\"Leadership \"+h.getLeadership());\n\t\t\t\tSystem.out.println(\"Intelligence \"+h.getIntelligence());\n\t\t\t\tSystem.out.println(\"Reasoning \"+h.getReasoning());\n\t\t\t\tSystem.out.println(\"Perception \"+h.getPerception());\n\t\t\t\tSystem.out.println(\"ph \"+((h.getStrength()-1)+(h.getDexterity()-1)+(h.getStamina()-1)));\n\t\t\t\tSystem.out.println(\"sc \"+((h.getCharisma()-1)+(h.getAppearance()-1)+(h.getLeadership()-1)));\n\t\t\t\tSystem.out.println(\"mn \"+((h.getIntelligence()-1)+(h.getReasoning()-1)+(h.getPerception()-1)));\n\t\t\t\tSystem.out.println(\"will \"+h.getWill());\n\t\t\t\tSystem.out.println(\"x \"+h.getX());\n\t\t\t\tSystem.out.println(\"y \"+h.getY());\n\t\t\t\tSystem.out.println(\"domain \"+h.getDomain().size());\n\t\t\t\tSystem.out.println();\n\t\t\t}else if(var instanceof FireStation){\n\t\t\t\tFireStation h = (FireStation)var;\n\t\t\t\tSystem.out.println(\"Attributes of the Fire Station \"+h.getId());\n\t\t\t\tSystem.out.println(\"x \"+h.getX());\n\t\t\t\tSystem.out.println(\"y \"+h.getY());\n\t\t\t\tSystem.out.println(\"domain \"+h.getDomain().size());\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\tfor(Value val : core.getEnvironment().getValues())\n\t\t{\n\t\t\tSystem.out.println(val.getClass());\n\t\t\tFireBuildingTask t = (FireBuildingTask)val;\n\t\t\tSystem.out.println(\"Attributes of building \"+t.getId());\n\t\t\tSystem.out.println(\"Temperature \"+t.getTemperature());\n\t\t\tSystem.out.println(\"Floors \"+t.getFloors());\n\t\t\tSystem.out.println(\"Ground Area \"+t.getGroundArea());\n\t\t\tSystem.out.println(\"Success \"+t.getSuccess());\n\t\t\tSystem.out.println(\"HP \"+t.getBuildingHP());\n\t\t\tSystem.out.println(\"x \"+t.getX());\n\t\t\tSystem.out.println(\"y \"+t.getY());\n\t\t}*/\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tApplicationContext appContext=(ApplicationContext) new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\t\n\t\tEtudiant etu1=(Boursier) appContext.getBean(\"etudiant-boursier\");\n\t\tEtudiant etu2=(NonBousier) appContext.getBean(\"etudiant-non-boursier\");\n\t\tEtudiantServiceImp serviceEtudiant=(EtudiantServiceImp) appContext.getBean(\"service-etudiant\");\n\t\tClasseServiceImp serviceClasse= (ClasseServiceImp) appContext.getBean(\"service-classe\");\n\t\t\n\t\tSystem.out.println(\"etudiant boursier : \"+etu1.toString());\n\t\tSystem.out.println(\"etudiant non boursier: \"+etu2.toString());\n\t\t\n\t\t//Etudiant et=null;\n //double total=1000;\n //et=serviceEtudiant.creerEtudiantt(false);\n //serviceEtudiant.afficherNomComplet(et);\n System.out.println(\"scolarite: \"+serviceEtudiant.CalculScolarite(etu1));\n\t\t\n\n\t\t\n\t\t//List<Etudiant> etudiants = new ArrayList<Etudiant>();\n\t\t//etudiants.add(nonBEtudiant);\n\t\t//etudiants.add(boursier);\n\t\t//System.out.println(serviceClasse.SommeScollarite(etudiants));\n\t}", "public void run() {\n\ttry {\n\t for (;;) {\n\t\tif (initialize()) {\n\t\t /*\n\t\t * Load all the new/old definitions from the file system to the memory\n\t\t */\n\t\t iterateOverDefinitionDirectories();\n\t\t}/* if (initialize()) */\n\n\t\t/*\n\t\t * Do sanity check on the ready state of the JREST\n\t\t */\n\t\tisSystemReady();\n\n\t\tif (moSessionStore.isSystemInReadyState() == false) {\n\t\t mLogger.fatal(String.format(Exceptions.gsHaltSleepIntervalMessage,\n\t\t\t Exceptions.gsSystemInHaltState, (Constants.glHaltSleepInterval / 1000)));\n\n\t\t sleep(Constants.glHaltSleepInterval);\n\n\t\t continue;\n\t\t}// if (moSessionStore.isSystemInReadyState() == false)\n\n\t\tif (mbInitExecutionEngine == false) {\n\t\t moExecutionEngine.initialize();\n\t\t mbInitExecutionEngine = true;\n\t\t}// if (mbInitExecutionEngine == false)\n\n\t\t/*\n\t\t * Free up any unused database connection object held via Executor\n\t\t */\n\t\tmoExecutionEngine.freeIdleExecutorSlot();\n\n\t\t/*\n\t\t * Cleanup any or all the sessions that have expired\n\t\t */\n\t\tmoSessionStore.removeExpiredSessions();\n\n\t\tsleep(mlJrestSweepInterval);\n\t }// end of for (;;)\n\t} catch (Exception e) {\n\t e.printStackTrace(moPrintWriter);\n\n\t mLogger.error(moStringWriter.toString());\n\t}// end of try ... catch block\n }", "public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context= \r\n\t\t\t\tnew ClassPathXmlApplicationContext(new String[] {\"spring.xml\"});\r\n\t\t\r\n\t\t\r\n\t\tIBanqueService metier= (IBanqueService) context.getBean(\"banqueServiceImpl\");\r\n\t\t\r\n//\tmetier.addClientSf(new Client(\"P8\", \"GZZZLLZG\")); \r\n\t\t\r\n\t\tList<Operation> ops= metier.consulterOperation(\"FR1545457\");\r\n\tCompte cp= metier.consulterCompte(\"FR1545457\");\r\n\t\tfor(Operation op: ops){\r\n\t\t\tSystem.out.println(\"************\");\r\n\t\t\tSystem.out.println(\"operation numero : \"+ op.getNumOperation());\r\n\t\t\tSystem.out.println(\"date operation \"+op.getDateOperation());\r\n\t\t\tSystem.out.println(\" Montant transaction \"+op.getMontant());\r\n\t\t\tSystem.out.println(\"type tranbsaction: \"+op.getClass().getSimpleName());\r\n\t\t}\r\n\t\tSystem.out.println(\"************\");\r\n\t\t\r\n\t\tSystem.out.println(\"solde restant: \"+cp.getSolde());\r\n\t\t\r\n\t\t//Compte ce= (Compte) metier.consulterCompte(\"TN55566644\");\r\n\t\t//String codeCli= ce.getNumCompte();\r\n\t//\tmetier.verser(200L, \"TN55566644\", 2L);\r\n\t//\tmetier.virement(100, \"TN55566644\", \"FR1545457\", 3L);\r\n\t\t\r\n\t\t\r\n//\t\tmetier.addClient(new Client(\"A1\", \"fjedncjd\"));\r\n//\t\tmetier.addClient(new Client(\"B5\", \"njedvvv\"));\r\n//\t\tmetier.addClient(new Client(\"R5\", \"njeddd\"));\r\n//\t\tmetier.addClient(new Client(\"Y4\", \"njedzzzd\"));\r\n//\t\t\r\n//\t\tmetier.addEmploye(new Employe(\"1E\"), null);\r\n//\t\tmetier.addEmploye(new Employe(\"2E\"), (long) 1);\r\n//\t\tmetier.addEmploye(new Employe(\"3E\"), (long) 1);\r\n//\r\n//\t\tmetier.addGroupe(new Groupe(\"G1\"));\r\n//\t\tmetier.addEmployeToGroupe(2L, 1L);\r\n//\t\tmetier.addEmployeToGroupe(1L, 1L);\r\n//\t\tmetier.addEmployeToGroupe(3L, 1L);\r\n//\t\tCompteCourant cp= (CompteCourant) context.getBean(\"compteCourant\");\r\n//\t\tcp.setDateCreation(new Date());\r\n//\t\tcp.setNumCompte(\"TN13212545\");\r\n//\t\tcp.setSolde(999.222);\r\n//\t\tmetier.addCompte(new CompteCourant(\"TN1562321544\", new Date(), 1000L, 100L), 1L, 2L);\r\n\t\t\r\n//\t\tCompteCourant cc=(CompteCourant) context.getBean(\"compteCourant\");\r\n//\t\tcc.setNumCompte(\"TN55566644\");\r\n//\t\tcc.setDateCreation(new Date());\r\n//\t\tcc.setSolde(300L);\r\n//\t\tcc.setDecouvert(100L);\r\n//\t\tmetier.addCompte(new CompteCourant(\"TN55566644\", new Date(), 300L, 100L), 2L, 3L);\r\n//\t\tmetier.addCompte(new CompteEpargne(\"FR1545457\", new Date(), 2000L, 4.5), 2L, 3L);\r\n\t\t//metier.addCompte(cc, 2L, 3L);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n\t\tMercedesFactory factory_germany = new MercedesFactoryGermany(); //\n\t\tBenzA a2 = factory_germany.createBenzA(); //\n\t\t\n\t}", "protected abstract void preRun();", "@Override\n\tpublic void run() {\n\t\tList<ProfileData> base=this.readBattery(this.batteryBasedFile);\n\t\tList<ProfileData> cpuFull=this.readBattery(this.batteryCPUFile);\n\t\t\n\t\tDefaultNetworkEnergyManager nem = MANAGER_FACTORY.createNetworkEnergyManager(networkEnergyManagerEnable, wifiSignalStrength);\n\t\tDefaultBatteryManager sb=MANAGER_FACTORY.createBatteryManager(2, startCharge, startUptime, batteryCapacityInJoules);\n\t\tfor(ProfileData b:base)\n\t\t\tsb.addProfileData(0, b);\n\t\tfor(ProfileData b:cpuFull)\n\t\t\tsb.addProfileData(1, b);\n\t\t\n\t\tDefaultExecutionManager se=MANAGER_FACTORY.createExecutionManager();\t\t\n\t\tse.setMips(this.flops);\n\t\tDevice d= MANAGER_FACTORY.createDevice(this.nodeId, sb, se, nem);\n\t\t\n\t\tsimLock.lock();\n\t\tNetworkModel.getModel().addNewNode(d);\n\t\tSimulation.addEntity(d);\n\t\tthis.dId=Simulation.getEntityId(this.nodeId);\n\t\tsimLock.unlock();\n\t\t\n\t\tsb.setDevice(d);\n\t\tse.setDevice(d);\n\t\tnem.setDevice(d);\n\t\tse.setBatteryManager(sb);\n\t\tnem.setBatteryManager(sb);\n\t\tsb.setSEASExecutionManager(se);\n\t\t\t\t\t\t\n\t\tthis.readCPUEvents();\n\t\t\n\t\tthis.eventLock.lock();\n\t\tEvent e=Event.createEvent(Event.NO_SOURCE, this.startTime, this.dId, Device.EVENT_TYPE_DEVICE_START, null);\n\t\tthis.eventLock.unlock();\n\t\tthis.simLock.lock();\n\t\tSimulation.addEvent(e);\n\t\tthis.simLock.unlock();\n\t}", "public static void main(String[] args) {\n ExecuteParams executeParams1 = new ExecuteParams();\n ExecuteParams executeParams2 = new ExecuteParams();\n ExecuteParams executeParams30 = new ExecuteParams();\n ExecuteParams executeParams31 = new ExecuteParams();\n ExecuteParams executeParams32 = new ExecuteParams();\n ExecuteParams executeParams33 = new ExecuteParams();\n ExecuteParams executeParams34 = new ExecuteParams();\n ExecuteParams executeParams41 = new ExecuteParams();\n\n //*** PARAMS\n executeParams1.DeviationPredictor_CosineMetric();\n executeParams2.DeviationPredictor_PearsonMetric();\n executeParams30.DeviationPredictor_PearsonSignifianceWeightMetric(1);\n executeParams31.DeviationPredictor_PearsonSignifianceWeightMetric(5);\n executeParams32.DeviationPredictor_PearsonSignifianceWeightMetric(50);\n executeParams33.DeviationPredictor_PearsonSignifianceWeightMetric(100);\n executeParams34.DeviationPredictor_PearsonSignifianceWeightMetric(200);\n executeParams41.DeviationPredictor_JaccardMetric();\n //***\n\n computeOne(executeParams1);\n computeOne(executeParams2);\n computeOne(executeParams30,\"N = 1\");\n computeOne(executeParams31,\"N = 5\");\n computeOne(executeParams32,\"N = 50\");\n computeOne(executeParams33,\"N = 100\");\n computeOne(executeParams34,\"N = 200\");\n computeOne(executeParams41);\n }", "public static void main(String[] args)\n {\n Injector guice = Guice.createInjector(new DiscountGuiceModule());\n\n // Inject the application which contains a separate object graph which contains all the business logic\n // When we call the top level class, BasicApplication, guice will inject every static dependency that we request\n // via @Inject\n BasicApplication basicApplication = guice.getInstance(BasicApplication.class);\n\n // now start the application\n basicApplication.start();\n }", "@Override\n public void run() {\n LOG.info(\"ready to create a new topic model for domain: \" + domainUri);\n Optional<Resource> result = helper.getUdm().read(Resource.Type.DOMAIN).byUri(domainUri);\n\n if (!result.isPresent()){\n LOG.warn(\"Unknown domain from uri: \" + domainUri);\n return;\n }\n\n // Load domain info\n domain = result.get().asDomain();\n\n // Delete previous Topics\n helper.getUdm().find(Resource.Type.TOPIC).in(Resource.Type.DOMAIN,domain.getUri()).stream().forEach(topic -> helper.getUdm().delete(Resource.Type.TOPIC).byUri(topic));\n\n // Documents\n buildModelfor(Resource.Type.DOCUMENT);\n\n // Items\n buildModelfor(Resource.Type.ITEM);\n\n // Parts\n buildModelfor(Resource.Type.PART);\n\n }", "protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\tdfd.setName(getAID());\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(\"paciente\");\n\t\tsd.setName(getName());\n\t\tdfd.addServices(sd);\n\t\ttry {\n\t\t\tDFService.register(this, dfd);\n\t\t} catch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t\n\t\t// atualiza lista de monitores e atuadores\n\t\taddBehaviour(new UpdateAgentsTempBehaviour(this, INTERVALO_AGENTES));\n\t\t\n\t\t// ouve requisicoes dos atuadores e monitores\n\t\taddBehaviour(new ListenBehaviour());\n\t\t\n\t\t// adiciona comportamento de mudanca de temperatura\n\t\taddBehaviour(new UpdateTemperatureBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de hemoglobina\t\t\n\t\taddBehaviour(new UpdateHemoglobinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de bilirrubina\n\t\taddBehaviour(new UpdateBilirrubinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\n\t\t// adiciona comportamento de mudanca de pressao\t\t\n\t\taddBehaviour(new UpdatePressaoBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t}", "public static void doSetup(String fName){\n\n\t\t//SET CONFIG AND STATS\n\t\tc = Config.getInstance();\n\t\tstats = new Run_Stats(c);\n\n\t\t// FILE PATHS\n\t\tcohFile = c.dataPath+c.file;\n\t\tc.popLogFilePath+=description+\"_pop_\"+c.numPieces+\"_\"+c.maxLength;\n\t\tc.statsLogFilePath+=description+\"_\"+c.file+\"_\"+c.numPieces+\"_\"+c.maxLength+\"_log\";\n\n\n\t\tcoherencies = new SRP_FitnessEnvironment(c.useThreshold, c.zThreshold);\n\t\tcoherencies.addCasesFromFile(cohFile);\n\t\tCPSwrapper.setMAXSIZE(coherencies.getLstFreq().size());\n\t\tSystem.out.println(CPSwrapper.getMAXSIZE());\n\t\tSystem.out.println(\"Loaded \"+ (coherencies.getLstCoh().size()+1) + \" Frequency points. Beginning evolution.\");\n\n\t\t//UPDATE INFORMATION BASED ON FILES READ IN\n\t\t//TODO invalidate these variables\n\t\tc.numTrain = 9999;//train.numberOfCases();\n\t\tc.numValid = 9999;//valid.numberOfCases();\n\t\tc.numTest = coherencies.getLstCoh().size();\n\n\t\t//set up the stats array for logging best fits\n\t\t//Get these outputs running to the right place.\n\t\tLogger.initialize(c.logPath+description+\"_\"+ c.file+\"_\"+ c.numPieces + \"_\" + c.initialMinLength+\"_\");\n\t}", "public static void main(String[] args) {\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tSystem.out.println(\"context loaded\");\n\t\t// Sim sim = (Sim) context.getBean(\"sim\");\n\t\t/**\n\t\t * Avoid above type casting\n\t\t */\n\t\tSim sim = context.getBean(\"sim\", Sim.class);\n\t\tsim.calling();\n\t\tsim.data();\n\t}" ]
[ "0.62426335", "0.6196243", "0.6074782", "0.6039547", "0.60203224", "0.5907183", "0.5885029", "0.58053905", "0.5758383", "0.5758244", "0.5754419", "0.5738795", "0.5734192", "0.5712316", "0.57069844", "0.5703268", "0.569916", "0.5691093", "0.56701756", "0.56658834", "0.5665322", "0.5639508", "0.56270695", "0.56157255", "0.5599253", "0.55861264", "0.5565388", "0.55545884", "0.55466235", "0.5540565", "0.5540446", "0.5525949", "0.5525306", "0.55086464", "0.5502691", "0.54958236", "0.5492107", "0.54885066", "0.5485335", "0.54754025", "0.54749626", "0.546721", "0.54573816", "0.545694", "0.5452212", "0.54520047", "0.5439068", "0.54364496", "0.5428275", "0.54247695", "0.54203284", "0.54136", "0.54046977", "0.54040635", "0.54040116", "0.5402818", "0.5394791", "0.53941053", "0.5393872", "0.5390894", "0.53905976", "0.53899443", "0.53897244", "0.5386324", "0.5378408", "0.5375609", "0.53684986", "0.5361625", "0.5352079", "0.5349509", "0.5349073", "0.53476375", "0.5346065", "0.53316075", "0.53310466", "0.5329668", "0.531694", "0.5315114", "0.5306536", "0.5301964", "0.5300632", "0.52971417", "0.5290212", "0.52887416", "0.52812636", "0.52810246", "0.52763265", "0.52731085", "0.52726245", "0.5271879", "0.5264222", "0.5261064", "0.5259549", "0.52496225", "0.524934", "0.5241806", "0.5237552", "0.52320117", "0.5224196", "0.5220684", "0.5217448" ]
0.0
-1
read data file from source to list transaction. If can't read or sf is not found throw IOException
public void getInstances(String sf) throws IOException { Database db = new Database(); this.database = db.loadData(sf); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}", "private static void readFridgeData() throws FileNotFoundException, InvalidDateException,\n InvalidQuantityException, EmptyDescriptionException,\n RepetitiveFoodIdentifierException, InvalidFoodCategoryException, InvalidFoodLocationException {\n File file = new File(DATA_FILE_PATH);\n Scanner scanner = new Scanner(file); // create a Scanner using the File as the source\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n populateFridge(line);\n }\n scanner.close();\n }", "MafSource readSource(File sourceFile);", "private static ArrayList<String> readFile() throws ApplicationException {\r\n\r\n ArrayList<String> bookList = new ArrayList<>();\r\n\r\n File sourceFile = new File(FILE_TO_READ);\r\n try (BufferedReader input = new BufferedReader(new FileReader(sourceFile))) {\r\n\r\n if (sourceFile.exists()) {\r\n LOG.debug(\"Reading book data\");\r\n String oneLine = input.readLine();\r\n\r\n while ((oneLine = input.readLine()) != null) {\r\n\r\n bookList.add(oneLine);\r\n\r\n }\r\n input.close();\r\n } else {\r\n throw new ApplicationException(\"File \" + FILE_TO_READ + \" does not exsit\");\r\n }\r\n } catch (IOException e) {\r\n LOG.error(e.getStackTrace());\r\n }\r\n\r\n return bookList;\r\n\r\n }", "public FilesInputStreamLoad readFile() throws ArcException {\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\tFile toRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\tFilesInputStreamLoad filesInputStreamLoadReturned = null;\r\n\ttry {\r\n\t\tfilesInputStreamLoadReturned = new FilesInputStreamLoad (toRead);\r\n\t} catch (IOException ioReadException) {\r\n\t\tthrow new ArcException(ioReadException, ArcExceptionMessage.FILE_READ_FAILED, toRead);\r\n\t}\r\n\treturn filesInputStreamLoadReturned;\r\n }", "public abstract void readFromFile( ) throws Exception;", "public List<Stock> readFile() throws IOException\n {\n \t //System.out.println(\"hhh\");\n \t //List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>() {});\n \t \n \t List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>(){});\n \t\n\t\treturn listStock;\n }", "public void readFromFile() {\n\n\t}", "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}", "public void readFromSource() {\n\t\ttry {\n\t\t\tif (date != null && !date.isEmpty())\n\t\t\t\tif (hour != null && !hour.isEmpty())\n\t\t\t\t\treadHourData();\n\t\t\t\telse\n\t\t\t\t\treadDayData();\n\t\t\telse\n\t\t\t\tthrow new Exception(\"Date and hour cannot be null\");\n\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getLocalizedMessage(), e);\n\t\t}\n\t}", "private String[] readFile(InputStream stream) throws StorageException {\r\n try {\r\n return readFile(new BufferedReader(new InputStreamReader(stream)));\r\n } catch (Exception exception) {\r\n throw new StorageException(\"Cannot read file \");\r\n }\r\n }", "private void testReadFile() {\n System.out.println(\"------ TESTING : readFile(String filename) ------\");\n try{\n if(iTestFileList.readFile(sFile)){\n //throw exception if the values are not copied correctly\n if(iTestFileList.get(0) != 42175){\n throw new RuntimeException(\"FAILED -> readFile(String filename) not working correctly\");\n }\n if(iTestFileList.get(5) != 45545){\n throw new RuntimeException(\"FAILED -> readFile(String filename) not working correctly\");\n }\n if(iTestFileList.get(10) != 86908) {\n throw new RuntimeException(\"FAILED -> readFile(String filename) not working correctly\");\n }\n }\n else{\n throw new RuntimeException(\"FAILED -> readFile(String filename) not working correctly\");\n }\n }catch(RuntimeException e){\n System.out.print(e.getMessage());\n }\n System.out.print(\"\\n\");\n }", "DatasetFileService getSource();", "TraceList read(File file) throws IOException;", "private void loadTransactions(String transactionFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(transactionFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n int transactionId = Integer.parseInt(splitLine[0]);\n\n String accountTypeChar = splitLine[1];\n TransactionType transactionType = null;\n switch (accountTypeChar)\n {\n case \"D\":\n transactionType = TransactionType.DEBIT;\n break;\n\n case \"C\":\n transactionType = TransactionType.CREDIT;\n break;\n\n case \"T\":\n transactionType = TransactionType.TRANSFER;\n }\n\n String description = splitLine[2];\n Date date = dateFormat.parse(splitLine[3]);\n double amount = Double.parseDouble(splitLine[4]);\n int accountId = Integer.parseInt(splitLine[5]);\n\n Transaction transaction = new Transaction(transactionId,\n transactionType,\n description,\n date,\n amount,\n accountId);\n\n transactionHashMap.putIfAbsent(accountId, new ArrayList<>());\n transactionHashMap.get(accountId).add(transaction);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private FileInputStream getDataInputStream(File f, long seekOffset)\n throws IOException {\n FileInputStream fis;\n final FileIoProvider fileIoProvider = getFileIoProvider();\n if (NativeIO.isAvailable()) {\n fis = fileIoProvider.getShareDeleteFileInputStream(\n getVolume(), f, seekOffset);\n } else {\n try {\n fis = fileIoProvider.openAndSeek(getVolume(), f, seekOffset);\n } catch (FileNotFoundException fnfe) {\n throw new IOException(\"Expected block file at \" + f +\n \" does not exist.\");\n }\n }\n return fis;\n }", "public ArrayList<Task> loadData() throws IOException {\n DateTimeFormatter validFormat = DateTimeFormatter.ofPattern(\"MMM dd yyyy HH:mm\");\n ArrayList<Task> orderList = new ArrayList<>();\n\n try {\n File dataStorage = new File(filePath);\n Scanner s = new Scanner(dataStorage);\n while (s.hasNext()) {\n String curr = s.nextLine();\n String[] currTask = curr.split(\" \\\\| \");\n assert currTask.length >= 3;\n Boolean isDone = currTask[1].equals(\"1\");\n switch (currTask[0]) {\n case \"T\":\n orderList.add(new Todo(currTask[2], isDone));\n break;\n case \"D\":\n orderList.add(new Deadline(currTask[2],\n LocalDateTime.parse(currTask[3], validFormat), isDone));\n break;\n case \"E\":\n orderList.add(new Event(currTask[2],\n LocalDateTime.parse(currTask[3], validFormat), isDone));\n break;\n }\n }\n } catch (FileNotFoundException e) {\n if (new File(\"data\").mkdir()) {\n System.out.println(\"folder data does not exist yet.\");\n } else if (new File(filePath).createNewFile()) {\n System.out.println(\"File duke.txt does not exist yet.\");\n }\n }\n return orderList;\n\n }", "abstract public Entity[] getWorkDataFromFile(String filename)\n \tthrows IOException, InvalidStatusException;", "private List<Task> readFromFile() {\n if (file.exists()) {\n try {\n return objectmapper.readValue(file,TaskList.class);\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n } else {\n return new ArrayList<>();\n }\n }", "@Override\n public void readDataFromTxtFile()\n throws NumberFormatException, DepartmentCreationException, EmployeeCreationException {\n\n }", "public interface SourceFileReader {\n\t\n\t/**\n\t * Reads a file and returns its content in a List\n\t * @param fileReaderType the location of a file \n\t * (<b>local</b> for locally stored files, \n\t * <b>web</b> for files stored on the web). \n\t * @param filepath the url of the file\n\t * @return a List that contains the contents of the file \n\t * or null if the type is neither <b>local</b> nor <b>web</b>\n\t * @throws IOException\n\t */\n\tpublic List<String> readFileIntoList(String filepath) throws IOException;\n\t\n\t/**\n\t * Reads a file and returns its content in a single String\n\t * @param fileReaderType the location of a file \n\t * (<b>local</b> for locally stored files, \n\t * <b>web</b> for files stored on the web). \n\t * @param filepath the url of the file\n\t * @return a String that contains the contents of the file\n\t * or null if the type is neither <b>local</b> nor <b>web</b>\n\t * @throws IOException\n\t */\n\tpublic String readFileIntoString(String filepath) throws IOException;\n\n}", "public static LinkedList<TransactionNode> readTransactionFile(String fileName)\n\t\t\tthrows IOException, InvalidFileFormatException, FileNotFoundException {\n\t\tFile csvFile = new File(fileName);\n\n\t\t// read the file only if it exists\n\t\tif (csvFile.isFile()) {\n\t\t\t// the row in the csv file\n\t\t\tString row = null;\n\t\t\tint indexRow = 0;\n\t\t\t// create BufferedReader and read data from csv\n\t\t\tBufferedReader csvReader = new BufferedReader(new FileReader(fileName));\n\t\t\ttry {\n\t\t\t\t// read the rest of the lines\n\t\t\t\tLinkedList<TransactionNode> newNodes = new LinkedList<TransactionNode>();\n\t\t\t\twhile ((row = csvReader.readLine()) != null) {\n\t\t\t\t\tString[] data = row.split(\",\");\n\n\t\t\t\t\t// check the header at the first line (header)\n\t\t\t\t\tif (indexRow == 0) {\n\t\t\t\t\t\t// check if the column names\n\t\t\t\t\t\tif (!(data[0].equals(\"target\") && data[1].equals(\"date\")\n\t\t\t\t\t\t\t\t&& data[2].equals(\"unitPrice\") && data[3].equals(\"investorName\")\n\t\t\t\t\t\t\t\t&& data[4].equals(\"numUnits\")\n\t\t\t\t\t\t\t\t&& data[5].equals(\"transactionType\"))) {\n\n\t\t\t\t\t\t\tthrow new InvalidFileFormatException(\n\t\t\t\t\t\t\t\t\t\"The column names of the file is invalid.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tindexRow++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// for the rest of the rows\n\t\t\t\t\t// - create the transaction node for each row\n\t\t\t\t\tString target = data[0];\n\t\t\t\t\tlong date = Long.valueOf(data[1]);\n\t\t\t\t\tdouble unitPrice = Double.valueOf(data[2]);\n\t\t\t\t\tString investorName = data[3];\n\t\t\t\t\tdouble numUnits = Double.valueOf(data[4]);\n\t\t\t\t\tString transactionType = data[5];\n\t\t\t\t\tif (!(transactionType.equals(\"sell\") || transactionType.equals(\"buy\"))) {\n\t\t\t\t\t\tthrow new InvalidFileFormatException(\n\t\t\t\t\t\t\t\t\"Unrecognized transaction type\" + transactionType);\n\t\t\t\t\t}\n\t\t\t\t\t// add the row data to the list\n\t\t\t\t\tTransactionNode node = new TransactionNode(date, investorName, transactionType,\n\t\t\t\t\t\t\ttarget, unitPrice, numUnits);\n\t\t\t\t\tnewNodes.add(node);\n\t\t\t\t\tindexRow++;\n\t\t\t\t}\n\t\t\t\t// return the new nodes\n\t\t\t\treturn newNodes;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new IOException(\"IO Exception occured while reading the file at line \"\n\t\t\t\t\t\t+ String.valueOf(indexRow) + \" in: \" + fileName);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new InvalidFileFormatException(\n\t\t\t\t\t\t\"The format of the file at line \" + String.valueOf(indexRow)\n\t\t\t\t\t\t\t\t+ \" is invalid,i.e.,\" + row + \" in: \" + fileName);\n\t\t\t} finally {\n\t\t\t\t// close the reader\n\t\t\t\tcsvReader.close();\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new FileNotFoundException(\n\t\t\t\t\t\"The file you attempted to read does not exist or is not a valid file: \"\n\t\t\t\t\t\t\t+ fileName);\n\t\t}\n\t}", "List readFile(String pathToFile);", "public abstract T readDataFile(String fileLine);", "public static void read6() {\n List<String> list = new ArrayList<>();\n\n try (BufferedReader br = Files.newBufferedReader(Paths.get(filePath))) {\n\n //br returns as stream and convert it into a List\n list = br.lines().collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }", "protected void parseAudioFileSource(final ByteArrayInputStream stream) throws EOFException\n {\n String fileName = \"\";\n int audioFormat = EASMessage.parseUnsignedByte(stream);\n\n if (0 != (audioFormat & 0x80)) // file_name_present\n {\n audioFormat &= 0x3F;\n fileName = new String(parseByteArray(stream, EASMessage.parseUnsignedByte(stream)));\n }\n\n int audioSource = EASMessage.parseUnsignedByte(stream);\n switch (audioSource)\n {\n case EASAudioFileSource.OOB_DSMCC_DATA_CAROUSEL:\n {\n int prgNo = EASMessage.parseUnsignedShort(stream); // program_number\n long dwnId = parseUnsignedInt(stream); // download_id\n long modId = parseUnsignedInt(stream); // module_id\n int appId = EASMessage.parseUnsignedShort(stream); // application_id\n this.m_audioFileSources.add(new EASAudioFileDataCarouselSource(audioFormat, fileName, prgNo, dwnId,\n modId, appId));\n break;\n }\n case EASAudioFileSource.OOB_DSMCC_OBJECT_CAROUSEL:\n {\n int prgNo = EASMessage.parseUnsignedShort(stream); // program_number\n long carId = parseUnsignedInt(stream); // carousel_id\n int appId = EASMessage.parseUnsignedShort(stream); // application_id\n this.m_audioFileSources.add(new EASAudioFileObjectCarouselSource(audioFormat, fileName, prgNo, carId,\n appId));\n break;\n }\n default:\n {\n if (log.isWarnEnabled())\n {\n log.warn(formatLogMessage(\"Disregarding audio source - unsupported source type:<0x\" + Integer.toHexString(audioSource)\n + \">\"));\n }\n }\n }\n }", "private InputSource filesystemLookup(ResourceLocation matchingEntry) {\n\n String uri = matchingEntry.getLocation();\n // the following line seems to be necessary on Windows under JDK 1.2\n uri = uri.replace(File.separatorChar, '/');\n URL baseURL;\n\n //\n // The ResourceLocation may specify a relative path for its\n // location attribute. This is resolved using the appropriate\n // base.\n //\n if (matchingEntry.getBase() != null) {\n baseURL = matchingEntry.getBase();\n } else {\n try {\n baseURL = FILE_UTILS.getFileURL(getProject().getBaseDir());\n } catch (MalformedURLException ex) {\n throw new BuildException(\"Project basedir cannot be converted to a URL\");\n }\n }\n\n URL url = null;\n try {\n url = new URL(baseURL, uri);\n } catch (MalformedURLException ex) {\n // this processing is useful under Windows when the location of the DTD\n // has been given as an absolute path\n // see Bugzilla Report 23913\n File testFile = new File(uri);\n if (testFile.exists() && testFile.canRead()) {\n log(\"uri : '\"\n + uri + \"' matches a readable file\", Project.MSG_DEBUG);\n try {\n url = FILE_UTILS.getFileURL(testFile);\n } catch (MalformedURLException ex1) {\n throw new BuildException(\n \"could not find an URL for :\" + testFile.getAbsolutePath());\n }\n } else {\n log(\"uri : '\"\n + uri + \"' does not match a readable file\", Project.MSG_DEBUG);\n\n }\n }\n\n InputSource source = null;\n if (url != null && \"file\".equals(url.getProtocol())) {\n String fileName = FILE_UTILS.fromURI(url.toString());\n if (fileName != null) {\n log(\"fileName \" + fileName, Project.MSG_DEBUG);\n File resFile = new File(fileName);\n if (resFile.exists() && resFile.canRead()) {\n try {\n source = new InputSource(Files.newInputStream(resFile.toPath()));\n String sysid = JAXPUtils.getSystemId(resFile);\n source.setSystemId(sysid);\n log(\"catalog entry matched a readable file: '\"\n + sysid + \"'\", Project.MSG_DEBUG);\n } catch (IOException ex) {\n // ignore\n }\n }\n }\n }\n return source;\n }", "public void readFile() {\n try\n {\n tasksList.clear();\n\n FileInputStream file = new FileInputStream(\"./tasksList.txt\");\n ObjectInputStream in = new ObjectInputStream(file);\n\n boolean cont = true;\n while(cont){\n Task readTask = null;\n try {\n readTask = (Task)in.readObject();\n } catch (Exception e) {\n }\n if(readTask != null)\n tasksList.add(readTask);\n else\n cont = false;\n }\n\n if(tasksList.isEmpty()) System.out.println(\"There are no todos.\");\n in.close();\n file.close();\n }\n\n catch(IOException ex)\n {\n ex.printStackTrace();\n }\n }", "private void readFileList() throws IOException {\n\t\tint entries = metadataFile.readInt();\n\n\t\tfor (int i = 0; i < entries; i++) {\n\t\t\tint hash = metadataFile.readInt();\n\t\t\tlong dataOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tlong dataSize = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathListIndex = metadataFile.readInt();\n\n\t\t\tlong position = metadataFile.getPosition();\n\t\t\tmetadataFile.setPosition(pathListOffset + 8 + (pathListIndex * 8));\n\n\t\t\tlong pathOffset = metadataFile.readInt() & 0xFFFFFFFFL;\n\t\t\tint pathSize = metadataFile.readInt();\n\n\t\t\tmetadataFile.setPosition(pathListOffset + pathOffset);\n\t\t\tString path = metadataFile.readString(pathSize).trim();\n\n\t\t\tif (hash == hash(path)) \n\t\t\t\tfileEntries.add(new RAFFileEntry(dataOffset, dataSize, path));\n\t\t\telse\n\t\t\t\tthrow new IOException(\"Invalid hash for item '\" + path + \"'.\");\n\n\t\t\tmetadataFile.setPosition(position);\n\t\t}\n\t}", "public List<Task> readFile() throws FileNotFoundException, DukeException {\n List<Task> output = new ArrayList<>();\n Scanner sc = new Scanner(file);\n while (sc.hasNext()) {\n output.add(readTask(sc.nextLine()));\n }\n return output;\n }", "@Override\n public String generareSourcecodetoReadInputFromFile() throws Exception {\n String typeVar = VariableTypes.deleteStorageClasses(this.getType())\n .replace(IAbstractDataNode.REFERENCE_OPERATOR, \"\");\n // Ex: A::B, ::B. We need to get B\n if (typeVar.contains(\"::\"))\n typeVar = typeVar.substring(typeVar.lastIndexOf(\"::\") + 2);\n\n String loadValueStm = \"data.findStructure\" + typeVar + \"ByName\" + \"(\\\"\" + getVituralName() + \"\\\")\";\n\n String fullStm = typeVar + \" \" + this.getVituralName() + \"=\" + loadValueStm + SpecialCharacter.END_OF_STATEMENT;\n return fullStm;\n }", "protected abstract void readFile();", "@Test\n\tpublic void testReadFileIntoListNull() throws IOException {\n\t\tsfr = ss.createFileReader(\"non-existing-type\");\n\t\tList<String> actualList = sfr.readFileIntoList(TEST_CLASS_LOCAL);\n\t\tassertNull(actualList);\n\t}", "public void readDataFromFile(){\n try {\n weatherNow.clear();\n // Open File\n Scanner scan = new Scanner(context.openFileInput(fileSaveLoc));\n\n // Find all To Do items\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n\n // if line is not empty it is data, add item.\n if (!line.isEmpty()) {\n // first is the item name and then the item status.\n String[] readList = line.split(\",\");\n String city = readList[0];\n String countryCode = readList[1];\n double temp = Double.parseDouble(readList[2]);\n String id = readList[3];\n String description = readList[4];\n\n weatherNow.add(new WeatherNow(city,countryCode, temp, id, description));\n }\n }\n\n // done\n scan.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static List<Transaction> readObject(String filename){\n\n\t\tlogger.finer(\" Reading object (Deserializtion) used\");\n\t\tList<Transaction> transactionList = null;\n\n\t\ttry(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename))){\n\t\t\ttransactionList = (List<Transaction>)ois.readObject();\n\t\t}\n\t\tcatch(IOException | ClassNotFoundException ioe){\n\n\t\t\tSystem.out.println(\"Exception occurred during deserialization\");\n\t\t} \n\n\t\t//\t\tpresentFileContents(transactionList);\n\n\t\treturn (List<Transaction>) transactionList;\n\t}", "@PostConstruct\n private void loadFiles() {\n \n\n File dir = new File(Constants.DIR_PATH);\n File[] files = dir.listFiles(); //stores list of files in given paths\n String line=\"\";\n\n for(File file : files){\n try {\n br = new BufferedReader(new FileReader(file));\n br.readLine();\n while((line=br.readLine())!=null){\n\n String []token=line.split(Constants.DELIMETER);\n String fileName=file.getName().toUpperCase();\n\n FlightData newflight = new FlightData(fileName.substring(0,fileName.lastIndexOf(\".\")),token[0],token[1],token[2],token[3],token[4],token[5],Double.parseDouble(token[6]),token[7],token[8]);\n flightDataDao.insertFlightData(newflight);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "public List<String> readFileContents(String filePath) throws APIException;", "public void loadData (IRSession session, InputStream dataSource, String source) throws RulesException {\n Reader dataSrc = new InputStreamReader(dataSource);\n loadData(session, dataSrc, source);\n }", "public List<StockTransaction> readStream(String fileName) throws IOException {\n FileInputStream fileInputStream = new FileInputStream(fileName);\n HSSFWorkbook workbook = new HSSFWorkbook(fileInputStream);\n HSSFSheet sheet = workbook.getSheetAt(0);\n Iterator rowIterator = sheet.rowIterator();\n List<StockTransaction> transactionList = new ArrayList<StockTransaction>();\n\n if(rowIterator.hasNext()){\n // ignoring the headers\n rowIterator.next();\n }\n\n while(rowIterator.hasNext()){\n HSSFRow row = (HSSFRow) rowIterator.next();\n Iterator cellIterator = row.cellIterator();\n try{\n HSSFCell cell = (HSSFCell) cellIterator.next();\n int stockId = (int)cell.getNumericCellValue();\n String transactionType = ((HSSFCell) cellIterator.next()).getRichStringCellValue().getString();\n String companyName = ((HSSFCell) cellIterator.next()).getRichStringCellValue().getString();\n int quantity = (int)((HSSFCell) cellIterator.next()).getNumericCellValue();\n\n if(transactionType.equalsIgnoreCase(\"Buy\")){\n transactionList.add(new StockTransaction(StockTransaction.TransactionType.BUY, quantity, new Stock(stockId, companyName)));\n }else{\n transactionList.add(new StockTransaction(StockTransaction.TransactionType.SELL, quantity, new Stock(stockId, companyName)));\n }\n\n }catch (Exception ex){\n ex.printStackTrace();\n }\n }\n\n return transactionList;\n }", "protected abstract E readFile() throws Exception;", "public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }", "private boolean restoreTransferFromFile(File f) {\n long fileSize = f.length();\n\n if (fileSize > org.dkf.jed2k.Constants.BLOCK_SIZE_INT) {\n log.warn(\"[ED2K service] resume data file {} has too large size {}, skip it\"\n , f.getName(), fileSize);\n return false;\n }\n\n TransferHandle handle = null;\n ByteBuffer buffer = ByteBuffer.allocate((int)fileSize);\n try(FileInputStream istream = openFileInput(f.getName())) {\n log.info(\"[ED2K service] load resume data {} size {}\"\n , f.getName()\n , fileSize);\n\n istream.read(buffer.array(), 0, buffer.capacity());\n // do not flip buffer!\n AddTransferParams atp = new AddTransferParams();\n atp.get(buffer);\n File file = new File(atp.getFilepath().asString());\n\n if (Platforms.get().saf()) {\n LollipopFileSystem fs = (LollipopFileSystem)Platforms.fileSystem();\n if (fs.exists(file)) {\n android.util.Pair<ParcelFileDescriptor, DocumentFile> resume = fs.openFD(file, \"rw\");\n\n if (resume != null && resume.second != null && resume.first != null && resume.second.exists()) {\n atp.setExternalFileHandler(new AndroidFileHandler(file, resume.second, resume.first));\n handle = session.addTransfer(atp);\n } else {\n log.error(\"[ED2K service] restore transfer {} failed document/parcel is null\", file);\n }\n } else {\n log.warn(\"[ED2K service] unable to restore transfer {}: file not exists\", file);\n }\n } else {\n if (file.exists()) {\n atp.setExternalFileHandler(new DesktopFileHandler(file));\n handle = session.addTransfer(atp);\n } else {\n log.warn(\"[ED2K service] unable to restore transfer {}: file not exists\", file);\n }\n }\n }\n catch(FileNotFoundException e) {\n log.error(\"[ED2K service] load resume data file not found {} error {}\", f.getName(), e);\n }\n catch(IOException e) {\n log.error(\"[ED2K service] load resume data {} i/o error {}\", f.getName(), e);\n }\n catch(JED2KException e) {\n log.error(\"[ED2K service] load resume data {} add transfer error {}\", f.getName(), e);\n }\n\n // log transfer handle if it has been added\n if (handle != null) {\n log.info(\"transfer {} is {}\"\n , handle.isValid() ? handle.getHash().toString() : \"\"\n , handle.isValid() ? \"valid\" : \"invalid\");\n }\n\n return handle != null;\n }", "private void readFile() {\r\n\t\tcsvEntrys = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(filepath)))) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tif (!line.contains(\"id\")) {\r\n\t\t\t\t\tcsvEntrys.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void readFrom(DataInputStream din) throws IOException {\r\n throw new Error(\"Method no longer available\");\r\n// commit_id = din.readInt();\r\n// table_id = din.readInt();\r\n//// if (table_id != din.readInt()) {\r\n//// throw new IOException(\r\n//// \"'table id' in given format is not the same. Does this journal \" +\r\n//// \"really belong to another table?\");\r\n//// }\r\n// journal_entries = din.readInt();\r\n// command_journal = new byte[journal_entries];\r\n// din.readFully(command_journal, 0, journal_entries);\r\n// int size = din.readInt();\r\n// for (int i = 0; i < size; ++i) {\r\n// command_parameters.addInt(din.readInt());\r\n// }\r\n }", "public static List<Contract> readFromFile(String filename) {\n List<Contract> contracts = new ArrayList<>();\n\n InputStreamReader inputStreamReader = null;\n try {\n inputStreamReader = new InputStreamReader(new FileInputStream(new File(filename)),\"cp1251\");\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String [] lines = null;\n String line = null;\n try{\n while ((line = bufferedReader.readLine()) != null) {\n\n lines= line.split(\",\");\n\n\n LocalDate conc = LocalDate.parse(lines[1], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n LocalDate start = LocalDate.parse(lines[2], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n LocalDate end = LocalDate.parse(lines[3], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n\n Client client=new Client(ClientType.valueOf(lines[4]),lines[5],lines[6]);\n\n ArrayList<InsuredPerson>insuredPeople=new ArrayList<>();\n for(int i=7; i<lines.length; i+=4 ){\n LocalDate d=LocalDate.parse(lines[i+2],DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n InsuredPerson person = new InsuredPerson(Integer.valueOf(lines[i]),lines[i+1],d,Double.valueOf(lines[i+3]));\n insuredPeople.add(person);\n\n\n }\n Contract contract=new Contract(Integer.valueOf(lines[0]),conc,start,end,client,insuredPeople);\n contracts.add(contract);\n }\n bufferedReader.close();}\n catch (IOException e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return contracts;\n\n }", "private ArrayList<String> getFileData(InputStream is) {\n ArrayList<String> restaurantData = new ArrayList<>();\n\n // Initialize the reader for the csv file\n BufferedReader reader = new BufferedReader(new InputStreamReader(is,\n Charset.forName(\"UTF-8\")));\n\n // Read each line into the ArrayList\n try {\n // Read the file\n String row;\n while ((row = reader.readLine()) != null) {\n restaurantData.add(row);\n }\n } catch (IOException ex) {\n Log.i(TAG, \"Error reading line\", ex);\n } finally {\n try {\n // Close the file\n reader.close();\n } catch (IOException ex) {\n Log.i(TAG, \"Error closing file\", ex);\n }\n }\n\n // Return data\n return restaurantData;\n }", "public void readFiles() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open BufferedReader to open connection to tipslocation URL and read file\n\t\t\tBufferedReader reader1 = new BufferedReader(new InputStreamReader(tipsLocation.openStream()));\n\t\t\t\n\t\t\t// Create local variable to parse through the file\n\t String tip;\n\t \n\t // While there are lines in the file to read, add lines to tips ArrayList\n\t while ((tip = reader1.readLine()) != null) {\n\t tips.add(tip);\n\t }\n\t \n\t // Close the BufferedReader\n\t reader1.close();\n\t \n\t \n\t // Open BufferedReader to open connection to factsLocation URL and read file\n\t BufferedReader reader2 = new BufferedReader(new InputStreamReader(factsLocation.openStream()));\n\t \n\t // Create local variable to parse through the file\n\t String fact;\n\t \n\t // While there are lines in the file to read: parses the int that represents\n\t // the t-cell count that is associated with the line, and add line and int to \n\t // tCellFacts hashmap\n\t while ((fact = reader2.readLine()) != null) {\n\t \t\n\t \tint tCellCount = Integer.parseInt(fact);\n\t \tfact = reader2.readLine();\n\t \t\n\t tCellFacts.put(tCellCount, fact);\n\t }\n\t \n\t // Close the second BufferedReader\n\t reader2.close();\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"Error loading files\"); e.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void loadFlights(InputStream stream) throws StorageException {\r\n // Get the file contents\r\n String[] lines = readFile(stream);\r\n // Parse and save flights from lines found\r\n parseFlights(lines);\r\n }", "public void readFromBookingListFile()\r\n {\r\n try(ObjectInputStream fromBookingListFile = \r\n new ObjectInputStream(new FileInputStream(\"listfiles/bookinglist.dta\")))\r\n {\r\n bookingList = (BookingList) fromBookingListFile.readObject();\r\n bookingList.setSavedStaticBookingRunNr(fromBookingListFile);\r\n }\r\n catch(ClassNotFoundException cnfe)\r\n {\r\n bookingList = new BookingList();\r\n JOptionPane.showMessageDialog(null, \"Fant ikke definisjon av booking \"\r\n + \"objektene.\\nOppretter tomt bookingregister.\\n\" \r\n + cnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(FileNotFoundException fnfe)\r\n {\r\n bookingList = new BookingList();\r\n JOptionPane.showMessageDialog(null, \"Finner ikke angitt fil.\\n\"\r\n + \"Oppretter tomt bookingregister.\\n\" \r\n + fnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(IOException ioe)\r\n\t{\r\n bookingList = new BookingList();\r\n JOptionPane.showMessageDialog(null, \"Fikk ikke lest fra filen.\\n\"\r\n + \"Oppretter tomt bookingregister.\\n\"\r\n + ioe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n }", "@Override\n public InputStream read()\n throws EFapsException\n {\n StoreResourceInputStream in = null;\n try {\n final FileObject file = this.manager.resolveFile(this.storeFileName + VFSStoreResource.EXTENSION_NORMAL);\n if (!file.isReadable()) {\n VFSStoreResource.LOG.error(\"file for \" + this.storeFileName + \" not readable\");\n throw new EFapsException(VFSStoreResource.class, \"#####file not readable\");\n }\n in = new VFSStoreResourceInputStream(this, file);\n } catch (final FileSystemException e) {\n VFSStoreResource.LOG.error(\"read of \" + this.storeFileName + \" failed\", e);\n throw new EFapsException(VFSStoreResource.class, \"read.Throwable\", e);\n } catch (final IOException e) {\n VFSStoreResource.LOG.error(\"read of \" + this.storeFileName + \" failed\", e);\n throw new EFapsException(VFSStoreResource.class, \"read.Throwable\", e);\n }\n return in;\n }", "private void init() throws FileNotFoundException, TransformerConfigurationException {\n try (Scanner filesscanner = new Scanner(new File(csvlocation))) {\n while (filesscanner.hasNext()) {\n filecontent.add(filesscanner.next());\n }\n if (!filecontent.isEmpty()) {\n this.header = filecontent.get(0);\n filecontent.remove(0);\n }\n setMailtemplate();\n } catch (FileNotFoundException | TransformerConfigurationException e) {\n LOGGER.error(\"Exception occured while reading the file\", e);\n throw e;\n }\n }", "public synchronized void readLog() {\n MemoryCache instance = MemoryCache.getInstance();\n try (Stream<String> stream = Files.lines(Paths.get(path)).skip(instance.getSkipLine())) {\n stream.forEach(s -> {\n Result result = readEachLine(s);\n instance.putResult(result);\n instance.setSkipLine(instance.getSkipLine() + 1);\n });\n } catch (IOException e) {\n logger.error(\"error during reading file \" + e.getMessage());\n }\n }", "private List<String> readFile() throws FileNotFoundException {\t\n\t\tList<String> itemsLines = new ArrayList<>();\n\t\tFile inputFile = new File(filePath);\t\n\t\ttry (Scanner newScanner = new Scanner(inputFile)) {\n\t\t\twhile(newScanner.hasNextLine()) {\n\t\t\t\titemsLines.add(newScanner.nextLine());\n\t\t\t}\t\n\t\t}\n\t\treturn itemsLines;\n\t}", "@PostConstruct\n public void loaddata() throws IOException {\n File file = ResourceUtils.getFile(configProvider.getFilePath());\n Reader in = new FileReader(file.getPath());\n Iterable<CSVRecord> records = CSVFormat.RFC4180.withHeader(\n \"locationid\", \"Applicant\", \"FacilityType\", \"cnn\", \"LocationDescription\", \"Address\", \"blocklot\", \"block\", \"lot\",\n \"permit\", \"Status\", \"FoodItems\", \"X\", \"Y\", \"Latitude\", \"Longitude\", \"Schedule\",\n \"dayshours\", \"NOISent\", \"Approved\", \"Received\", \"PriorPermit\", \"ExpirationDate\",\n \"Location\", \"Fire Prevention Districts\", \"Police Districts\",\n \"Supervisor Districts\", \"Zip Codes\", \"Neighborhoods (old)\"\n ).parse(in);\n\n Iterator<CSVRecord> iterator = records.iterator();\n iterator.next();\n // use our own ids because of how atomic integers work, we can't have a 0 for an id, so can't rely on outside sources.\n int i = 0;\n while (iterator.hasNext()) {\n CSVRecord record = iterator.next();\n FoodTruck truck = new FoodTruck(Float.parseFloat(record.get(\"Latitude\")), Float.parseFloat(record.get(\"Longitude\")),\n record.get(\"Address\"), record.get(\"FoodItems\"), ++i);\n //add food truck to datastore\n truckDataStore.addTruck(truck.getId(), truck);\n\n final Rectangle rect = new Rectangle(truck.getLat(), truck.getLon(),\n truck.getLat(), truck.getLon());\n //add food truck location + id to location data store.\n locationDataStore.getSpatialIndex().add(rect, truck.getId());\n }\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 }", "public SourceFile getSourceFile() throws InvalidFormatException;", "public static void read(String fname){\r\n\t\t\t\r\n\t\t\tString line = \"\";\r\n\t\t\ttry {\r\n\t // FileReader reads text files in the default encoding.\r\n\t FileReader fileReader = new FileReader(fname);\r\n\t \r\n\t // Always wrap FileReader in BufferedReader.\r\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\r\n\t header=bufferedReader.readLine();\r\n\t \r\n\t data = new ArrayList<alldata>();\r\n\r\n\t while((line = bufferedReader.readLine()) != null) {\r\n\t \t\r\n\t //parse line and divide data by comma\r\n\t \r\n\t \t\r\n\t \tString[] lineStr = line.split(\",\");\r\n\t \t\r\n\t //create object row into which data from each line is stored and then added to array list\t\r\n\t \t\r\n\t if(lineStr.length >0) {\r\n\t \talldata row = new alldata();\r\n\t \trow.Name = lineStr[0]+ \",\" + lineStr[1];\r\n\t \trow.Num = lineStr[2];\r\n\t \trow.State = lineStr[3];\r\n\t \trow.Zip = lineStr[4];\r\n\t \trow.Age = Integer.parseInt(lineStr[6]);\r\n\t \trow.Sex = lineStr[7];\r\n\t \t\r\n\t \tdata.add(row);\r\n\t }\r\n\t \r\n\t \r\n\t } \r\n\t bufferedReader.close(); // Always close files. \r\n\t }catch(FileNotFoundException ex) {\r\n\t System.out.println(\"Unable to open file '\" + fname + \"'\"); \r\n\t }catch(IOException ex) {\r\n\t System.out.println(\"Error reading file '\" + fname + \"'\"); \r\n\t }\r\n\t\t\tSystem.out.println(\"Finish reading data from file \"+ fname);\r\n\t\t}", "public List<Task> loadData() throws FileNotFoundException,\n DukeInvalidTimeException, ArrayIndexOutOfBoundsException {\n List<Task> tasks = new ArrayList<>();\n Scanner scanner = new Scanner(path.toFile());\n // Reading tasks from file\n for (int i = 1; scanner.hasNextLine(); i++) {\n Task currTask = null;\n // Assertion: The data has been saved in expected format on disk already\n assert scanner.nextLine().substring(1, 4).equals(\"---\") : \"Data has not been saved in proper format\";\n String[] currStrings = scanner.nextLine().split(\"---\");\n String type = currStrings[0];\n boolean isDone = Integer.parseInt(currStrings[1]) == 1;\n String activity = currStrings[2];\n String description;\n String tag;\n // Loading tasks from file\n switch (type) {\n case \"T\":\n tag = currStrings[3];\n currTask = new Todo(activity, i, isDone, tag);\n break;\n case \"D\":\n case \"E\":\n tag = currStrings[4];\n description = activity + \" \" + currStrings[3];\n currTask = readTask(description, type, i, isDone, tag);\n break;\n default:\n break;\n }\n assert currTask != null;\n boolean isTodo = currTask.getType() == TaskType.TODO;\n boolean isDeadline = currTask.getType() == TaskType.DEADLINE;\n boolean isEvent = currTask.getType() == TaskType.EVENT;\n // Assertion: Tasks belong to the three main defined types\n assert isTodo || isDeadline || isEvent : \"Task(s) don't belong to the main types of tasks\";\n tasks.add(currTask);\n }\n return tasks;\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 }", "private Data readFromFileData() {//Context context) {\n try {\n FileInputStream fileInputStream = openFileInput(fileNameData);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n Data.userData = (Data) objectInputStream.readObject();\n objectInputStream.close();\n fileInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n return Data.userData;\n }", "void readFile(String location) throws FileNotFoundException,GPSException{\n\t\tFile file = new File(location);\n\t\tif(!file.exists()) {\n\t\t\tthrow new FileNotFoundException(\"Address doesn't exist\");\n\t\t}\n\t\t//Use scanner to get the data from the file\n\t\tScanner scanner = new Scanner(new File(location));\n\t\t//Read data line-by-line\n\t\tScanner valuescanner = new Scanner(scanner.nextLine());\n\t\tint count = 0,num1=0;//count is used to decide where the data should be put, num1 is to get the total amount of available points\n\t\tdo{\n\t\t\tvaluescanner = new Scanner(scanner.nextLine());\n\t\t\tvaluescanner.useDelimiter(\",\");//split up the line on commas\n\t\t\tZonedDateTime time=null;\n\t\t\tdouble longi=0,latit=0,eleva=0;\n\t\t\twhile(count<4) {\n\t\t\t\tString data = valuescanner.next();\n\t\t\t\t//if data doesn't finish fetching but scanner fetch no data,then there is an exception\n\t\t\t\tif(count<3&&!valuescanner.hasNext()) {\n\t\t\t\t\tthrow new GPSException(\"Missing Data\");\n\t\t\t\t}\n\t\t\t\tif(count==0) {\n\t\t\t\t\t//timetamp is put\n\t\t\t\t\ttime= ZonedDateTime.parse(data);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse if(count==1) {\n\t\t\t\t\t//longitude is put\n\t\t\t\t\tlongi = Double.parseDouble(data);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse if(count==2) {\n\t\t\t\t\t//latitude is put\n\t\t\t\t\tlatit= Double.parseDouble(data);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\telse if(count==3) {\n\t\t\t\t\t//elevation is put\n\t\t\t\t\televa= Double.parseDouble(data);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tPoint res = new Point(time,longi,latit,eleva);//initialize the point to be put into the sequence\n\t\t\tpoints[num1]=res;\n\t\t\tcount=0;\n\t\t\tnum1++;\n\t\t}while(scanner.hasNextLine()&&num1<=200);\n\t\tsize=num1;//get the size in advance\n\t\tscanner.close();\n\t\tvaluescanner.close();\n\t}", "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 }", "private void readingFiles() {\r\n\r\n File sdCard = Environment.getExternalStorageDirectory();\r\n File directory = new File(sdCard.getAbsoluteFile() + \"/MyApplication\");\r\n\r\n //List of names\r\n File name = new File(directory, \"nameList.csv\");\r\n FileInputStream fIn = null;\r\n try {\r\n fIn = new FileInputStream(name);\r\n InputStreamReader isr = new InputStreamReader(fIn);\r\n char[] inputBuffer = new char[READ_BLOCK_SIZE];\r\n String s = \"\";\r\n int charRead;\r\n while ((charRead = isr.read(inputBuffer)) > 0) {\r\n String readString = String.copyValueOf(inputBuffer, 0, charRead);\r\n s += readString;\r\n inputBuffer = new char[READ_BLOCK_SIZE];\r\n }\r\n\r\n String[] retrievedStringArray = s.split(\",\");\r\n nameList = new ArrayList<String>(Arrays.asList(retrievedStringArray));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n nameList = new ArrayList<String>();\r\n }\r\n\r\n //List of latitudes\r\n File lat = new File(directory, \"latList.csv\");\r\n FileInputStream fIn1 = null;\r\n try {\r\n fIn1 = new FileInputStream(lat);\r\n InputStreamReader isr = new InputStreamReader(fIn1);\r\n char[] inputBuffer1 = new char[READ_BLOCK_SIZE];\r\n String s1 = \"\";\r\n int charRead;\r\n while ((charRead = isr.read(inputBuffer1)) > 0) {\r\n String readString = String.copyValueOf(inputBuffer1, 0, charRead);\r\n s1 += readString;\r\n inputBuffer1 = new char[READ_BLOCK_SIZE];\r\n }\r\n\r\n String[] retrievedStringArray = s1.split(\",\");\r\n latList = new ArrayList<String>(Arrays.asList(retrievedStringArray));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n latList = new ArrayList<String>();\r\n }\r\n\r\n //List of longitudes\r\n File lng = new File(directory, \"lngList.csv\");\r\n FileInputStream fIn2 = null;\r\n try {\r\n fIn2 = new FileInputStream(lng);\r\n InputStreamReader isr = new InputStreamReader(fIn2);\r\n char[] inputBuffer2 = new char[READ_BLOCK_SIZE];\r\n String s2 = \"\";\r\n int charRead;\r\n while ((charRead = isr.read(inputBuffer2)) > 0) {\r\n String readString = String.copyValueOf(inputBuffer2, 0, charRead);\r\n s2 += readString;\r\n inputBuffer2 = new char[READ_BLOCK_SIZE];\r\n }\r\n\r\n String[] retrievedStringArray = s2.split(\",\");\r\n lngList = new ArrayList<String>(Arrays.asList(retrievedStringArray));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n lngList = new ArrayList<String>();\r\n }\r\n if (lngList.get(0) == \"\") {\r\n lngList.remove(0);\r\n }\r\n if (latList.get(0) == \"\") {\r\n latList.remove(0);\r\n }\r\n if (nameList.get(0) == \"\") {\r\n nameList.remove(0);\r\n }\r\n }", "protected void loadDataFromFile() throws IOException {\n \t\tInputStream is = null;\n \n \t\ttry {\n \t\t\tis = new BufferedInputStream(new GZIPInputStream(\n \t\t\t\t\tnew FileInputStream(this.dataFile)));\n \n \t\t\tint dataOffset = 0;\n \t\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\n \n \t\t\twhile (true) {\n \t\t\t\tint b = is.read();\n \n \t\t\t\tif (b == 0) {\n \t\t\t\t\t// field separator reached.\n \t\t\t\t\tif (this.componentId == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \t\t\t\t\t\tcomponentId = new String(URLEncoding.decode(encoded),\n \t\t\t\t\t\t\t\t\"UTF-8\");\n \t\t\t\t\t} else if (this.query == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tString queryXml = new String(URLEncoding\n \t\t\t\t\t\t\t\t\t.decode(encoded), \"UTF-8\");\n \n \t\t\t\t\t\t\t// parse the query.\n \t\t\t\t\t\t\tSAXReader reader = new SAXReader();\n \t\t\t\t\t\t\tElement root = reader.read(\n \t\t\t\t\t\t\t\t\tnew StringReader(queryXml))\n \t\t\t\t\t\t\t\t\t.getRootElement();\n \t\t\t\t\t\t\tthis.query = root.getText();\n \t\t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\t\tthrow new IOException(\n \t\t\t\t\t\t\t\t\t\"Cannot unmarshall cached query.\");\n \t\t\t\t\t\t}\n \t\t\t\t\t} else if (this.optionalParams == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \n \t\t\t\t\t\tif (encoded.length > 0) {\n \t\t\t\t\t\t\tMap optionalParams = new HashMap();\n \t\t\t\t\t\t\tString urlEncoded = new String(URLEncoding\n \t\t\t\t\t\t\t\t\t.decode(encoded), \"UTF-8\");\n \t\t\t\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(\n\t\t\t\t\t\t\t\t\turlEncoded, \"&\", false);\n \n \t\t\t\t\t\t\twhile (tokenizer.hasMoreTokens()) {\n String param = tokenizer.nextToken();\n\t\t\t\t\t\t\t\tString key = param.substring(0, param.indexOf('='));\n\t\t\t\t\t\t\t\tString value = param.substring(param.indexOf('=')+1);\n \t\t\t\t\t\t\t\toptionalParams.put(key, value);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tthis.optionalParams = optionalParams;\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tthis.optionalParams = null;\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tthis.dataOffset = dataOffset;\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \n \t\t\t\t\tos.reset();\n \t\t\t\t} else if (b == -1) {\n \t\t\t\t\tthrow new IOException(\"Premature end of cached file.\");\n \t\t\t\t} else {\n \t\t\t\t\tos.write(b);\n \t\t\t\t}\n \t\t\t}\n \t\t} finally {\n \t\t\tif (is != null) {\n \t\t\t\ttry {\n \t\t\t\t\tis.close();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tlog.error(\"Cannot close input cache file: \"\n \t\t\t\t\t\t\t+ this.dataFile.getAbsolutePath());\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "private void validateSource(SourcePointer.FileSource src) {\n File f = src.path.toFile();\n if (!f.exists() || !f.canRead()) {\n throw new SolrException(\n ErrorCode.BAD_REQUEST,\n String.format(\n Locale.US, \"File at %s either does not exist or cannot be read.\", src.path));\n }\n }", "public void testFileWithDosEol()\n {\n try {\n SalesFile t = new SalesFile(\"samples/data/in/base_dos_eol.dat\", AppConfig.fieldDelimiter);\n t.read();\n assertEquals(t.getTotalSalesman(), 2);\n assertEquals(t.getTotalCustomers(), 2);\n assertEquals(t.getMostExpensiveSaleId(), \"10\");\n assertEquals(t.getWorstSalesman(), \"Renato\");\n } catch(RecordInvalidTokenException ex) {\n assertTrue(\"This file is well formed, but something is wrong!\", false);\n } catch(FileNotFoundException e) {\n assertTrue(\"File must exist to complete the test!\", false);\n } catch(IOException e) {\n assertTrue(\"IO exception!\", false);\n }\n }", "public void read() {\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(\"studentData.dat\");\n\n\t\t\tObjectInputStream ois;\n\t\t\ttry {\n\t\t\t\tois = new ObjectInputStream(fis);\n\t\t\t\ttry {\n\t\t\t\t\tstudentList = (ArrayList<Student>) ois.readObject();\n\t\t\t\t} catch (ClassNotFoundException 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\tois.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public ArrayList<Task> copyFileContents() throws IOException {\n assert filePath != null;\n File f = new File(this.filePath); // create a File for the given file path\n Scanner s = new Scanner(f); // create a Scanner using the File as the source\n StringBuilder targetBuilder = new StringBuilder();\n while (s.hasNext()) {\n targetBuilder.append(s.nextLine()).append(\"\\n\");\n }\n\n return parse(targetBuilder.toString());\n }", "public ArrayList<Task> readFile() throws DukeException, IOException {\n\n TaskList taskList = new TaskList();\n\n if(Files.exists(Path.of(PATH_DIRECTORY))) {\n File f = new File (PATH_DIRECTORY + \"/tasks.txt\");\n Scanner sc = new Scanner(f);\n\n while(sc.hasNext()) {\n String partialString = sc.nextLine();\n String[] data = partialString.trim().split(\"\\\\|\", 3);\n taskAssigner(data, taskList);\n }\n } else {\n File f = new File (PATH_DIRECTORY);\n boolean dirExists = f.mkdir();\n if (dirExists) {\n f = new File (PATH_DIRECTORY + \"/tasks.txt\");\n f.createNewFile();\n } else {\n throw new DukeException();\n }\n }\n\n return taskList.getTaskArrayList();\n }", "public void readZip(File f) {\r\n try {\r\n unzip(f);\r\n File file = new File(workplace + \"/temp/USQ_IMAGE\");\r\n File old = new File(workplace + \"/old\");\r\n if(!old.exists())old.mkdir();\r\n if(old.exists()&&old.isFile())old.mkdir();\r\n File files[] = file.listFiles();\r\n for(int i=0 ; i<files.length ; i++){\r\n readFile(files[i]);\r\n }\r\n //new session\r\n createSes(f);\r\n } catch (Exception ex) {\r\n JOptionPane.showMessageDialog(null, \"read zip file failed.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n ex.printStackTrace();\r\n }\r\n }", "public abstract RecordReader<K , V> createRecordReader(InputSplit inputSplit) throws IOException, SfsFileDoesNotExistException;", "@Override\n public List<Object> readFile(File file) {\n Scanner scanner = createScanner(file);\n if (Objects.isNull(scanner)) {\n return Collections.emptyList();\n }\n List<Object> readingDTOList = new ArrayList<>();\n scanner.nextLine();\n List<List<String>> allLines = new ArrayList<>();\n while (scanner.hasNext()) {\n List<String> line = parseLine((scanner.nextLine()));\n if (!line.isEmpty()) {\n allLines.add(line);\n }\n }\n if (!allLines.isEmpty()) {\n for (List<String> line : allLines) {\n String sensorId = line.get(0);\n String dateTime = line.get(1);\n String value = line.get(2);\n String unit = line.get(3);\n LocalDateTime readingDateTime;\n if (sensorId.contains(\"RF\")) {\n LocalDate readingDate = LocalDate.parse(dateTime, DateTimeFormatter.ofPattern(\"dd/MM/uuuu\"));\n readingDateTime = readingDate.atStartOfDay();\n } else {\n ZonedDateTime zonedDateTime = ZonedDateTime.parse(dateTime);\n readingDateTime = zonedDateTime.toLocalDateTime();\n }\n double readingValue = Double.parseDouble(value);\n ReadingDTO readingDTO = ReadingMapper.mapToDTOwithIDandUnits(sensorId, readingDateTime, readingValue, unit);\n readingDTOList.add(readingDTO);\n }\n }\n return readingDTOList;\n }", "public void read(){\n assert(inputStream.hasNext());\n\n while(inputStream.hasNextLine()){\n String line = inputStream.nextLine();\n String[] fields = line.split(\";\");\n\n //If Line is address line\n if(fields.length >= 4){\n Address adr = new Address(fields[0], fields[1], fields[2], fields[3]);\n if(fields.length == 5){\n parseGroups(fields[4], adr);\n }\n inputAddressList.add(adr);\n }\n\n //If Line is Group Line\n else if(fields.length <=3){\n Group group = new Group(fields[0], Integer.parseInt(fields[1]));\n if(fields.length == 3){\n parseGroups(fields[2], group);\n }\n inputGroupList.add(group);\n }\n }\n compose();\n assert(invariant());\n }", "public void parse() throws IOException, StopDataMissingException, JSONException{\n DataProvider dataProvider = new FileDataProvider(filename);\n\n parseStops(dataProvider.dataSourceToString());\n }", "public ToDoList read() throws IOException {\n String jsonData = readFile(source);\n JSONObject jsonObject = new JSONObject(jsonData);\n return parseToDoList(jsonObject);\n }", "private void read() {\n\n\t\t\t\tString road=getActivity().getFilesDir().getAbsolutePath()+\"product\"+\".txt\";\n\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(road); \n\t\t\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\t\t\tint length = fis.available(); \n\t\t\t\t\tbyte [] buffer = new byte[length]; \n\t\t\t\t\tfis.read(buffer); \n\t\t\t\t\tString res1 = EncodingUtils.getString(buffer, \"UTF-8\"); \n\t\t\t\t\tfis.close(); \n\t\t\t\t\tjson(res1.toString());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t}", "private void readKeyDataToIdentifyTransactions(){\n\t\t\n\t\tBufferedReader reader = null;\n\t\t\n\t\ttry{\n\t\t\treader = new BufferedReader(new FileReader(keyFile));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tif((line.startsWith(\"#\")) || (line.equals(\"\")))\n\t\t\t\t\tcontinue;\n\t\t\t\telse{\n\t\t\t\t\tString transacName = line.split(\";\")[0];\n\t\t\t\t\tchar transacType = line.split(\";\")[1].charAt(0);\n\t\t\t\t\ttypeTransData.put(transacName,transacType);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Sorry!! \"+ keyFile +\" required for processing!!!\");\n\t\t\tSystem.out.println(\"Please try again !!!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t}", "public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public void readEntries() throws FileAccessException;", "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 }", "public void readFromHotelRoomListFile()\r\n {\r\n try(ObjectInputStream fromHotelRoomListFile = \r\n new ObjectInputStream(new FileInputStream(\"listfiles/hotelRoomlist.dta\")))\r\n {\r\n hotelRoomList = (HotelRoomList) fromHotelRoomListFile.readObject();\r\n hotelRoomList.getSavedStaticPrice(fromHotelRoomListFile);\r\n }\r\n catch(ClassNotFoundException cnfe)\r\n {\r\n hotelRoomList = new HotelRoomList();\r\n JOptionPane.showMessageDialog(null, \"Fant ikke definisjon av hotelrom \"\r\n + \"objektene.\\nOppretter ny liste for \"\r\n + \"hotelrommene.\\n\" + cnfe.getMessage(), \r\n \"Feilmelding\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(FileNotFoundException fnfe)\r\n {\r\n hotelRoomList = new HotelRoomList();\r\n JOptionPane.showMessageDialog(null, \"Finner ikke angitt fil.\\n\"\r\n + \"Oppretter ny liste for hotelrommene.\\n\" \r\n + fnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(IOException ioe)\r\n\t{\r\n hotelRoomList = new HotelRoomList();\r\n JOptionPane.showMessageDialog(null, \"Fikk ikke lest fra filen.\\n\"\r\n + \"Oppretter ny liste for hotelrommene.\\n\"\r\n + ioe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n }", "private void readListFromFile() {\n // clear existing list\n if (listArr == null || listArr.size() > 0) {\n listArr = new ArrayList<>();\n }\n\n try {\n Scanner scan = new Scanner(openFileInput(LIST_FILENAME));\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n listArr.add(line);\n }\n\n if (listAdapter != null) {\n listAdapter.notifyDataSetChanged();\n }\n\n } catch (IOException ioe) {\n Log.e(\"ReadListFromFile\", ioe.toString());\n }\n\n }", "public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static String readFromFile(ArrayList diretorios, String sessionId)\n\t{\n\t StringBuffer result = new StringBuffer();\n\t \n\t try\n\t {\n\t //Verificando na lista de diretorios se o arquivo pode ser encontrado. \n\t for(int i = 0; i < diretorios.size(); i++)\n\t {\n\t\t String fileName = (String)diretorios.get(i) + File.separator + sessionId;\n\t\t File fileExtrato = new File(fileName);\n\t\t \n\t\t if(fileExtrato.exists())\n\t\t {\n\t\t //Lendo o XML do arquivo.\n\t\t FileReader reader = new FileReader(fileExtrato);\n\t\t char[] buffer = new char[new Long(fileExtrato.length()).intValue()];\n\t\t int bytesRead = 0;\n\t \n\t\t while((bytesRead = reader.read(buffer)) != -1)\n\t\t {\n\t\t result.append(buffer);\n\t\t }\n\t \n\t\t reader.close();\n\t\t break;\n\t\t }\n\t }\n\t }\n\t catch(Exception e)\n\t {\n\t e.printStackTrace();\n\t }\n\t \n\t return (result.length() > 0) ? result.toString() : null;\n\t}", "protected abstract Object readFile(BufferedReader buf) throws IOException, FileParseException;", "public FileInputStream getFileInputStream(){\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"\\\\src\\\\test\\\\java\\\\data\\\\userData.xlsx\");\n\t\tString filePath=System.getProperty(\"user.dir\")+\"/src/test/java/data/userData.xlsx\";\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"src/test/java/data/userData.xlsx\");\n\t\tFile srcFile=new File(filePath);\n\t\ttry {\n\t\t\tfis=new FileInputStream(srcFile);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Test Data file not found.terminating process!! :Check file path of test data file\");\n\t\t}\n\n\t\treturn fis;\n\t}", "public StreetNameReader() throws FileNotFoundException{\n\t\ttry {\n\t\t\tstreet = new InputStreamReader(new FileInputStream(\"names.dat\"), \"UTF-8\");\n\t\t\tzip = new InputStreamReader(new FileInputStream(\"post.dat\"), \"UTF-8\");\n\t\t\tbrStreet = new BufferedReader(street);\n\t\t\tbrZip = new BufferedReader(zip);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// Risks that the special characters aren't read properly \n\t\t\tbrStreet = new BufferedReader(new FileReader(\"names.dat\"));\n\t\t\tbrZip = new BufferedReader(new FileReader(\"post.dat\"));\n\t\t\tJOptionPane.showMessageDialog(null, \"An encoding error ocured and it might affect the system.\" +\n\t\t\t\t\t\t\t\t\t\t\t\"\\nIf yout experience any problem we sugest that you restart the Program.\",\n\t\t\t\t\t\t\t\t\t\t\t\"WARNING\", JOptionPane.WARNING_MESSAGE);\n\t\t}\n\t}", "public List<String> readFile() {\n \n try {\n ensureFileExists();\n return Files.readAllLines(filePath);\n } catch (FileNotFoundException ex) {\n return new ArrayList<>();\n } catch (IOException ex) {\n ex.printStackTrace();\n return new ArrayList<>();\n }\n }", "public static void load() {\r\n\t\ttransList = new ArrayList<Transaction>();\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"loading all trans...\");\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"src/transaction.csv\"));\r\n\t\t\treader.readLine();\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tString item[] = line.split(\",\");\r\n\t\t\t\tString type = item[0];\r\n\t\t\t\tint acc = Integer.parseInt(item[1]);\r\n\t\t\t\tdouble amount = Double.parseDouble(item[2]);\r\n\t\t\t\tint year = Integer.parseInt(item[3]);\r\n\t\t\t\tint month = Integer.parseInt(item[4]);\r\n\t\t\t\tint date = Integer.parseInt(item[5]);\r\n\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\tcal.set(year, month - 1, date);\r\n\t\t\t\tif (type.charAt(0) == 'w') {\r\n\t\t\t\t\tWithdrawal trans = new Withdrawal(acc, amount, cal);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t} else if (type.charAt(0) == 'd') {\r\n\t\t\t\t\tboolean cleared = Boolean.parseBoolean(item[6]);\r\n\t\t\t\t\tDeposit trans = new Deposit(acc, amount, cal, cleared);\r\n\t\t\t\t\ttransList.add(trans);\r\n\t\t\t\t\tSystem.out.println(trans.toFile());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t\tSystem.out.println(\"loading finished\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}", "@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}", "InputStream getInputStream() throws FileSystemException;", "public static List<Server> readFile() {\n String fileName = \"servers.txt\";\n\n List<Server> result = new LinkedList<>();\n try (Scanner sc = new Scanner(createFile(fileName))) {\n\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n result.add(lineProcessing(line));\n\n }\n\n } catch (FileNotFoundException e) {\n System.out.println(\"File is not found\");\n } catch (MyException e) {\n System.out.println(\"File is corrupted\");\n }\n return result;\n }", "@Override\n public void parse() {\n if (file == null)\n throw new IllegalStateException(\n \"File cannot be null. Call setFile() before calling parse()\");\n\n if (parseComplete)\n throw new IllegalStateException(\"File has alredy been parsed.\");\n\n FSDataInputStream fis = null;\n BufferedReader br = null;\n\n try {\n fis = fs.open(file);\n br = new BufferedReader(new InputStreamReader(fis));\n\n // Go to our offset. DFS should take care of opening a block local file\n fis.seek(readOffset);\n records = new LinkedList<T>();\n\n LineReader ln = new LineReader(fis);\n Text line = new Text();\n long read = readOffset;\n\n if (readOffset != 0)\n read += ln.readLine(line);\n\n while (read < readLength) {\n int r = ln.readLine(line);\n if (r == 0)\n break;\n\n try {\n T record = clazz.newInstance();\n record.fromString(line.toString());\n records.add(record);\n } catch (Exception ex) {\n LOG.warn(\"Unable to instantiate the updateable record type\", ex);\n }\n read += r;\n }\n\n } catch (IOException ex) {\n LOG.error(\"Encountered an error while reading from file \" + file, ex);\n } finally {\n try {\n if (br != null)\n br.close();\n\n if (fis != null)\n fis.close();\n } catch (IOException ex) {\n LOG.error(\"Can't close file\", ex);\n }\n }\n\n LOG.debug(\"Read \" + records.size() + \" records\");\n }", "@Override\n public Optional<UniqueRecordList> readRecordList() throws DataConversionException, IOException {\n return readRecordList(recordListFilePath);\n }", "public List<Task> load() throws DukeException {\n List<Task> tasks = new ArrayList<>();\n\n try {\n BufferedReader reader = new BufferedReader(new FileReader(filePath));\n\n String line;\n while ((line = reader.readLine()) != null) {\n String[] tokens = line.split(\"\\\\|\");\n\n Task task = StorageSerializer.deserialize(tokens);\n tasks.add(task);\n }\n\n reader.close();\n } catch (FileNotFoundException e) {\n throw new IoDukeException(\"Error opening task file for reading\");\n } catch (IOException e) {\n throw new IoDukeException(\"Error closing file reader\");\n } catch (ParseException e) {\n throw new IoDukeException(\"Error parsing date in task file\");\n }\n\n return tasks;\n }", "public ArrayList<String> readFile() {\n data = new ArrayList<>();\n String line = \"\";\n boolean EOF = false;\n\n try {\n do {\n line = input.readLine();\n if(line == null) {\n EOF = true;\n } else {\n data.add(line);\n }\n } while(!EOF);\n } catch(IOException io) {\n System.out.println(\"Error encountered.\");\n }\n return data;\n }", "public void readFile() throws NumberFormatException,FileNotFoundException {\n Scanner scanStar, scanMessier, scanPlanet;\n String raw_data;\n String[] values;\n Set<String> identifyName = new HashSet<>();\n // Create scanner to scan file\n scanStar = new Scanner(new File(filename[0]));\n scanMessier = new Scanner(new File(filename[1]));\n scanPlanet = new Scanner(new File(filename[2]));\n\n // Read data about Star and store\n Star star;\n while (scanStar.hasNext()){\n raw_data = scanStar.nextLine();\n values = processData(raw_data, 1);\n // Check whether there is the same object or the data is wrong\n if (values.length != 7 || identifyName.contains(values[0])){\n System.out.println(\"There are some mistakes in Star file\");\n System.exit(1);\n }\n star = new Star();\n star.setNumber(values[0]);\n star.setRa(Double.parseDouble(values[1]));\n star.setDecl(Double.parseDouble(values[2]));\n star.setMagn(Double.parseDouble(values[3]));\n star.setDistance(Double.parseDouble(values[4]));\n star.setType(values[5]);\n star.setConstellation(values[6]);\n // Add object to collection\n aos.add(star);\n identifyName.add(star.getNumber());\n }\n scanStar.close();\n\n // Read data about Messier and store\n Messier messier;\n while (scanMessier.hasNext()){\n raw_data = scanMessier.nextLine();\n values = processData(raw_data, 1);\n if (values.length < 6 || identifyName.contains('M' + values[0])){\n System.out.println(\"There are some mistakes in Messier file\");\n System.exit(1);\n }\n messier = new Messier();\n messier.setNumber(\"M\" + values[0]);\n messier.setRa(Double.parseDouble(values[1]));\n messier.setDecl(Double.parseDouble(values[2]));\n messier.setMagn(Double.parseDouble(values[3]));\n messier.setDistance(Double.parseDouble(values[4]));\n messier.setConstellation(values[5]);\n if (values.length == 7){\n messier.setDescription(values[6]);\n }else {\n messier.setDescription(\"-\");\n }\n // Add object to collection\n aos.add(messier);\n identifyName.add(messier.getNumber());\n }\n scanMessier.close();\n\n // Read data about Planet and store\n Planet planet;\n while (scanPlanet.hasNext()){\n raw_data = scanPlanet.nextLine();\n values = processData(raw_data, 0);\n if (values.length != 6 || identifyName.contains(values[0])){\n System.out.println(\"There are some mistakes in Planet file\");\n System.exit(1);\n }\n planet = new Planet();\n planet.setName(values[0]);\n planet.setRa(Double.parseDouble(values[1]));\n planet.setDecl(Double.parseDouble(values[2]));\n planet.setMagn(Double.parseDouble(values[3]));\n planet.setDistance(Double.parseDouble(values[4]));\n planet.setAlbedo(Double.parseDouble(values[5]));\n // Add object to collection\n aos.add(planet);\n identifyName.add(planet.getName());\n }\n scanPlanet.close();\n }", "public void stockLoad() {\n try {\n File file = new File(stockPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String data = scanner.nextLine();\n String[] userData = data.split(separator);\n Stock stock = new Stock();\n stock.setProductName(userData[0]);\n int stockCountToInt = Integer.parseInt(userData[1]);\n stock.setStockCount(stockCountToInt);\n float priceToFloat = Float.parseFloat(userData[2]);\n stock.setPrice(priceToFloat);\n stock.setBarcode(userData[3]);\n\n stocks.add(stock);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void getUsingMoreSources() throws Exception {\n ReadConfig conf = new ReadConfig();\n try {\n conf.getFileName();\n } catch (Exception e) {\n assertTrue(e.getMessage().equals(\"Try to access config file before reading it.\") );\n }\n try {\n conf.readFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n assertNotNull(conf.getFileName());\n assertTrue(conf.getFileName().size() == 1);\n assertFalse(conf.getUsingMoreSources());\n }" ]
[ "0.65173644", "0.5987569", "0.5847535", "0.57117593", "0.5557766", "0.5496324", "0.54088813", "0.53708667", "0.53614897", "0.53226227", "0.53145736", "0.53100556", "0.530763", "0.52458936", "0.5234153", "0.52261585", "0.52156305", "0.52156204", "0.51878613", "0.51836324", "0.51762056", "0.5158893", "0.51562184", "0.51500034", "0.5143819", "0.51278836", "0.51163816", "0.51094234", "0.5100516", "0.5088973", "0.50878143", "0.5086694", "0.50757855", "0.5072795", "0.50722426", "0.5060348", "0.5050441", "0.50454074", "0.5037258", "0.5034678", "0.5032733", "0.50262153", "0.5006847", "0.5005634", "0.5003879", "0.500054", "0.49956006", "0.49929622", "0.4986526", "0.49758717", "0.4974515", "0.49681", "0.49649134", "0.49557784", "0.49542195", "0.49507812", "0.4947325", "0.49472636", "0.4944328", "0.49353182", "0.4932236", "0.4930467", "0.4930429", "0.49265403", "0.49248075", "0.49200645", "0.49119735", "0.49081367", "0.4899736", "0.48898336", "0.4888432", "0.4874681", "0.48725963", "0.48641992", "0.48634538", "0.48607597", "0.48580864", "0.48554394", "0.4855022", "0.4853459", "0.48454204", "0.48391774", "0.48388368", "0.48377913", "0.4834714", "0.483309", "0.4829076", "0.4824112", "0.48232108", "0.48180857", "0.48141328", "0.48093545", "0.48077914", "0.48061332", "0.48033392", "0.48014805", "0.4798899", "0.47800627", "0.47792387", "0.47763643", "0.47684336" ]
0.0
-1
set minimum support for algorithm
public void setMinSup(int minSup) { this.minSup = minSup; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setNilMultipleBetMinimum();", "void setNilSingleBetMinimum();", "void setNilWagerMinimum();", "@Test\n public void min() {\n assertEquals(2103, SuggestionUtil.min(2103, 2103, 2103));\n\n // EP: two numbers same and one different\n assertEquals(2103, SuggestionUtil.min(2103, 2104, 2103));\n\n // EP: all three numbers different\n assertEquals(2103, SuggestionUtil.min(2103, 2104, 2105));\n }", "private void notEligibleForRealMin() {\n eligibleForRealMin = false;\n }", "public void setMinimum(Number min) {\n this.min = min;\n }", "public void setMin(int min) {\n this.min = min;\n }", "public void setMin(int min) {\n this.min = min;\n }", "void setMinValue();", "public void set_min(byte value) {\n setSIntBEElement(offsetBits_min(), 8, value);\n }", "private void setMinNode(BinaryNode current, int min) {\n if (getMinNodeFromSeq() == null) {\n if ((int) current.getWert() >= min) {\n setMinNodeFromSeq(current);\n }\n\n } else {\n if ((int) current.getWert() < (int) getMinNodeFromSeq().getWert()) {\n setMinNodeFromSeq(current);\n }\n }\n }", "private void setMin(int min) { this.min = new SimplePosition(false,false,min); }", "public void SetMinVal(int min_val);", "boolean isSetMultipleBetMinimum();", "public void minimum()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(rowTick[i]==8888)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(cost[i][j]<min)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmin=cost[i][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "boolean isSetWagerMinimum();", "void setWagerMinimum(java.math.BigDecimal wagerMinimum);", "public void setMin(int min)\n\t{\n\t\tif (min < 0)\n\t\t\tthrow new IllegalArgumentException(\"min < 0\");\n\t\tthis.min = min;\n\t}", "protected void setStateToLowestEnergy() {\n\tpoints = bestEverPoints;\n\n\t// make a copy of the best points\n\tbestEverPoints = getPoints();\n\n\tbuildEnergyMatrix();\n\tstateEnergy();\n }", "protected final void setMin() {\n\tint prevmin = this.min;\n\n\tint i1 = this.low;\n\tint i2 = left.min;\n\tint i3 = right.min;\n\n\tif (i2 == -1) \n\t i2 = i1;\n\tif (i3 == -1) \n\t i3 = i1;\n\n\tif ((i1 <= i2) && (i1 <= i3)) {\n\t this.min = i1;\n\t} else if ((i2 <= i1) && (i2 <= i3)) {\n\t this.min = i2;\n\t} else {\n\t this.min = i3;\n\t}\n\n\tif ((p != IntervalNode.nullIntervalNode) &&\n\t (prevmin != this.min)) {\n \t p.setMin();\n\t}\n }", "public void setMin ( Point min ) {\r\n\r\n\tsetA ( min );\r\n }", "@Override\n\tprotected void setLowerBound() {\n\t\t\n\t}", "public BatchSummarizer setMinSupport(double minSupport) {\n this.minOutlierSupport = minSupport;\n return this;\n }", "public void setMinsize(int minsize) {\n\t\tthrow new UnsupportedOperationException(\"readonly\");\n\t}", "public void setMinimum(Number min) {\n ((ADocument) getDocument()).setMinimum(min);\n }", "boolean isSetSingleBetMinimum();", "@Override\n public void setSoftLowerLimit(double position)\n {\n final String funcName = \"setSoftLowerLimit\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"position=%f\", position);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n softLowerLimit = position;\n }", "int min();", "public void setMinValue(int x) {\r\n\t\tminValue = x;\r\n\t}", "@Test\n\tpublic void checkAlreadyMinimal() {\n\n\t\tSet<FunctionalDependency> input = set(\n\t\t\t\tnew FunctionalDependency(set(\"A\"), set(\"B\")),\n\t\t\t\tnew FunctionalDependency(set(\"B\"), set(\"C\")),\n\t\t\t\tnew FunctionalDependency(set(\"B\"), set(\"D\")));\n\n\t\tSet<FunctionalDependency> output = minimalBasisSolver.findMinimal(input);\n\n\t\tassertEquals(input, output);\n\t}", "public abstract int getMinimumValue();", "void unsetMultipleBetMinimum();", "private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }", "public void useNormalVarimax(){\n this. varimaxOption = true;\n }", "public M csmiCertifyTypeMin(Object min){this.put(\"csmiCertifyTypeMin\", min);return this;}", "void setMultipleBetMinimum(java.math.BigDecimal multipleBetMinimum);", "public void setMinAlturaCM(float max);", "public Key min();", "public K min();", "void unsetWagerMinimum();", "public void setMin(Vect3d min) {\r\n this.min = min;\r\n }", "public static void main(String[] args)\n {\n int[] array = {9,11,2,7,3};\n OptimalMin min = new OptimalMin(array);\n System.out.println(min.getMin(0,4));\n System.out.println(min.getMin(2,3));\n System.out.println(min.getMin(3,3));\n }", "private void runBest() {\n }", "public void setMinValue(int minValue) {\n this.minValue = minValue;\n }", "@Override\n\tpublic void setMinCpus(int minCpus) {\n\t\t_scienceApp.setMinCpus(minCpus);\n\t}", "@Override\n\tpublic void setMinnum(long minnum) {\n\t\t_esfTournament.setMinnum(minnum);\n\t}", "void unsetSingleBetMinimum();", "void setSingleBetMinimum(java.math.BigDecimal singleBetMinimum);", "float xMin();", "public final boolean minimum(){\r\n\t\treturn minimum;\r\n\t}", "int min() {\n return min;\r\n }", "public void setSupports(long supports);", "public abstract int getMinimumArguments();", "public void setMinAmount(int min) {\n _min = min;\n }", "public void setAdc_min (int min)\n {\n adc_min_ = min;\n }", "public void setMinimumValue (double min) {\r\n\t\tminValue = new Double(min);\r\n\t\tvalidateMin = (minValue.compareTo(DOUBLE_ZERO) != 1);\r\n\t}", "void xsetWagerMinimum(org.apache.xmlbeans.XmlDecimal wagerMinimum);", "public void setMinEdad(int min);", "public void minimize()\n {\n }", "public ParametersBuilder setForceLowestBitrate(boolean forceLowestBitrate) {\n this.forceLowestBitrate = forceLowestBitrate;\n return this;\n }", "public void setMinPoolSize(int minPoolSize) {\n this.minPoolSize = minPoolSize;\n }", "void MemorizeBestSource() \n\t{\n\t int i,j;\n\t \n\t\tfor(i=0;i<FoodNumber;i++)\n\t\t{\n\t\tif (f[i]<GlobalMin)\n\t\t\t{\n\t GlobalMin=f[i];\n\t for(j=0;j<D;j++)\n\t GlobalParams[j]=Foods[i][j];\n\t }\n\t\t}\n\t }", "int minKey(float key[], Boolean mstSet[]){\n float min = Float.MAX_VALUE;\n int min_index = -1;\n \n for (int v = 0; v < V; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n \n return min_index;\n }", "public void setMinimumPoint(BlockVector pt) {\r\n setMinMaxPoints(pt, this.getMaximumPoint());\r\n }", "private void setNumberMines(int setNumberMines)\n\t{\n\t\tif(setNumberMines <= 0) myNumberMines = 1;\n\t\telse if(setNumberMines > ((mySizeX * mySizeY)-9))\n\t\t\tmyNumberMines = (mySizeX * mySizeY) - 9;\n\t\telse myNumberMines = setNumberMines;\n\t}", "void xsetMultipleBetMinimum(org.apache.xmlbeans.XmlDecimal multipleBetMinimum);", "private void run(){\r\n\t\tArrayList<Integer> parcours = new ArrayList<Integer>();\r\n\t\tArrayList<Integer> sommets = new ArrayList<Integer>();\r\n\t\t\r\n\t\t//initialisation de la liste des sommets\r\n\t\tfor (int i=1; i<super.g.getDim();i++) {\r\n\t\t\tsommets.add(i);\r\n\t\t}\r\n\r\n\t\t//g�n�ration d'un parcours initial\r\n\t\tAlgo2opt algo = new Algo2opt(super.g);\r\n\t\tsuper.parcoursMin = algo.parcoursMin;\r\n\t\tsuper.dist = algo.dist;\r\n\r\n\t\tcheminMin(parcours,sommets,super.g.getDim(), 0);\r\n\t}", "public void setMinimum( final int value ) {\n checkWidget();\n if( 0 <= value && value < maximum ) {\n minimum = value;\n if( selection < minimum ) {\n selection = minimum;\n }\n }\n if( thumb >= maximum - minimum ) {\n thumb = maximum - minimum;\n selection = minimum;\n }\n }", "protected void calcMinMax() {\n }", "public void param_value_min_SET(float src)\n { set_bytes(Float.floatToIntBits(src) & -1L, 4, data, 13); }", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "void setNilFractionalMinimum();", "public int getOptimalNumNearest();", "public void setMax(){\n for (int i = 0; i < Nodes.size(); i++){\n this.MinDistance.add(Double.MAX_VALUE);\n }\n }", "public void setMin( float min )\n {\n this.min = min;\n show_text();\n }", "public int getMinSelectionIndex()\r\n {\r\n return 0;\r\n }", "public FireflyOptimization(){\n this(25, 1000);\n }", "protected void setMinimizeEnabledFromScout(boolean minized) {\n }", "private boolean isEligibleForRealMin() {\n return eligibleForRealMin;\n }", "public void setMinimumremnantset(Long minimumremnantset) {\r\n this.minimumremnantset = minimumremnantset;\r\n }", "public void setWeakMinimumSizeAllowed(boolean weakMinimumSizeAllowed) \n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mWeakMinimumSizeAllowed = weakMinimumSizeAllowed;\n }", "public MinMaxSearch(SearchLimitingPredicate<T> slp)\t{\n\t\tthis.slp = slp;\n\t}", "public void setAlgorithm(){\n\t\tif(pickRequest.equals(\"FCFS\"){\n\t\t\tmethods.remove(0);\n\t\t}\n\t\telse if(pickRequest.equals(\"Closest\"))\n\t\t{\n\t\t\tmethods.remove(); \n\t\t}\n\t\telse if(pickRequest.equals(\"Urgency\"))\n\t\t{\n\t\t\tmethods.remove();\n\t\t}\n\t}", "@JSProperty(\"softMin\")\n void setSoftMin(double value);", "public void setMinConf (float value) {\r\n min_conf = value; }", "public void randomizeSearchDifficulty(int minimum){\n\t\tint roll=minimum+dice.nextInt(floorTag+20);\r\n\t\tsetSearchDifficulty(roll);\r\n\t}", "public int GetMinVal();", "private void setRegToMin(int register) {\r\n\t\tif(sim40.memory[register] < 0)\r\n\t\t\tswitchOnFlag(1);\r\n\r\n\t\tswitchOnFlag(0);\r\n\t\tsim40.memory[register] = 0;\r\n\t}", "public StandardSolution (long[] nums){\n \t\tsequence = nums;\n \t\tpartitions = new boolean[sequence.length];\n \t\t\n \t\tRandom rand = new Random();\n \t\tfor (int i = 0; i < partitions.length; i++){\n \t\t\t// worry about seeing?\n \t\t\tpartitions[i] = rand.nextBoolean();\n \t\t}\n \t}", "public void coMina(){\n espM=true;\r\n }", "public void setMinValue(double x) {\r\n\t\tminValue = x;\r\n\t}", "private void updateEncoders(){\r\n \r\n double min = Double.MAX_VALUE;\r\n double max = Double.MIN_VALUE;\r\n \r\n for(Encoder<T> encoder : encoders){\r\n if(encoder instanceof SimpleEncoder){\r\n SimpleEncoder<T> simpleEncoder = (SimpleEncoder<T>) encoder;\r\n if(simpleEncoder.getMin() < min)\r\n min = simpleEncoder.getMin();\r\n \r\n if(max < simpleEncoder.getMax())\r\n max=simpleEncoder.getMax();\r\n \r\n }\r\n }\r\n \r\n for(Encoder<T> encoder : encoders){\r\n if(encoder instanceof SimpleEncoder){\r\n SimpleEncoder<T> simpleEncoder = (SimpleEncoder<T>) encoder;\r\n simpleEncoder.setMin(min);\r\n simpleEncoder.setMax(max);\r\n }\r\n }\r\n \r\n }", "public void testComparatorChainOnMinvaluedCompatator() {\n ComparatorChain chain = new ComparatorChain();\r\n chain.addComparator(\r\n new Comparator() {\r\n public int compare(Object a, Object b) {\r\n int result = ((Comparable)a).compareTo(b);\r\n if(result < 0) {\r\n return Integer.MIN_VALUE;\r\n } else if(result > 0) {\r\n return Integer.MAX_VALUE;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n }, true);\r\n\r\n assertTrue(chain.compare(new Integer(4), new Integer(5)) > 0); \r\n assertTrue(chain.compare(new Integer(5), new Integer(4)) < 0); \r\n assertTrue(chain.compare(new Integer(4), new Integer(4)) == 0); \r\n }", "public void setMiterLimit(float limit);", "public void setMinimumStock (double minimumStock) {\r\n\t\tthis.minimumStock = minimumStock;\r\n\t}", "private int minWeight(int dist[], Boolean sptSet[]){\n int min = Integer.MAX_VALUE;\r\n int minIndex = -1;\r\n\r\n for(int n = 0; n< rideCount; n++){\r\n if(!sptSet[n] && dist[n] <= min) {\r\n min = dist[n];\r\n minIndex = n;\r\n }\r\n }\r\n return minIndex;\r\n }", "@Override\r\n\tpublic void setMinCoordinates() {\n\t\t\r\n\t}", "private void findSmallestCost() {\n int best = 0;\n fx = funFitness[0];\n for (int i = 1; i < population; i++) {\n if (funFitness[i] < fx) {\n fx = funFitness[i];\n best = i;\n }\n }\n //System.arraycopy(currentPopulation[best], 0, bestSolution, 0, dimension);\n copy(bestSolution, currentPopulation[best]);\n }", "public void testGetSetMinNTrials() {\n exp = new Experiment(\"10\");\n exp.setMinNTrials(5);\n assertEquals(\"get/setMinNTrials does not work\", 5, (int)exp.getMinNTrials());\n }", "public void initMaxMin(){\n\t\tmax = dja.max();\n\t\tmin = dja.min();\n\t}", "public final boolean searchMinimum(){\r\n\t\tif (!initialized()) minimum=true;\r\n\t\treturn minimum;\r\n\t}" ]
[ "0.6492224", "0.6381097", "0.61244035", "0.60253406", "0.60084784", "0.59423137", "0.5904811", "0.5904811", "0.58842075", "0.58685035", "0.5863298", "0.5848883", "0.5796502", "0.57496727", "0.5736781", "0.56961775", "0.566934", "0.56624967", "0.5657167", "0.56569356", "0.56460303", "0.56456995", "0.56436855", "0.56213015", "0.5619609", "0.5592225", "0.5589883", "0.55725294", "0.5569748", "0.5538467", "0.5513097", "0.5512273", "0.55118287", "0.55010676", "0.5497792", "0.54731846", "0.5470743", "0.54343146", "0.54338443", "0.5414336", "0.54117185", "0.54103106", "0.540711", "0.5407078", "0.5402819", "0.53964204", "0.5368702", "0.5359062", "0.5358894", "0.5358261", "0.53524774", "0.53423816", "0.53255266", "0.5319961", "0.5315178", "0.5303009", "0.52994406", "0.5296662", "0.5293862", "0.528357", "0.52835506", "0.5277843", "0.5274894", "0.5265438", "0.5264536", "0.5264381", "0.5261173", "0.5260877", "0.5259746", "0.52517706", "0.5240041", "0.52399486", "0.523716", "0.5233574", "0.5232634", "0.5229144", "0.52267003", "0.52249956", "0.5218401", "0.52178484", "0.5213584", "0.5207542", "0.51877236", "0.5187493", "0.5185884", "0.5184514", "0.5183623", "0.51822615", "0.517641", "0.5168958", "0.5164077", "0.51607245", "0.5157732", "0.51485395", "0.5143456", "0.51358277", "0.5132348", "0.51322275", "0.51307976", "0.5130387", "0.5127357" ]
0.0
-1
set minimum confidence for algorithm
public void setMinConf(int minConf) { this.minConf = minConf; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConfidence(final Double confidence);", "public void setMinConf (float value) {\r\n min_conf = value; }", "float getConfidence();", "public double confidenceLow() {\n return mean() - ((1.96 * stddev()) / Math.sqrt(this.numTrials));\n }", "public double confidenceLow() {\n\t\treturn (double) mean()-(1.96*stddev()/Math.sqrt(myData.length));\n\t}", "public double confidenceLow() {\n return (mean() - 1.96 * stddev() / Math.sqrt(trials));\n }", "@Override\n\tpublic double confidence(Example example) {\n\t\treturn 0;\n\t}", "public double confidenceLow() {\n return mean() - (1.96 * stddev() / Math.sqrt(times));\n }", "private double getMinInitProb(){\r\n\t\treturn probThreshold;\r\n\t}", "public void setConfidence(double confidence) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n } \n if (confidence < MIN_CONFIDENCE || confidence > MAX_CONFIDENCE) {\n throw new IllegalArgumentException();\n }\n mConfidence = confidence;\n }", "public float getConfidence();", "public double confidenceHi() \n {\n double mean = mean();\n double stddev = stddev();\n return mean + 1.96 * stddev / Math.sqrt(count);\n }", "public void setConfidence(\n final double confidence)\n {\n ArgumentChecker.assertIsInRangeInclusive(\n \"confidence\", confidence, 0.5, 1.0);\n this.confidence = confidence;\n\n // Compute phi.\n this.phi = -UnivariateGaussian.CDF.Inverse.evaluate(\n 1.0 - confidence, 0.0, 1.0 );\n this.psi = 1.0 + this.phi * this.phi / 2.0;\n this.epsilon = 1.0 + this.phi * this.phi;\n }", "private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }", "public void setConfidence(double confidence) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (confidence < MIN_CONFIDENCE || confidence > MAX_CONFIDENCE) {\n throw new IllegalArgumentException();\n }\n mConfidence = confidence;\n }", "public float getMinConf () {\r\n return min_conf; }", "public boolean setConfidence(double value) {\n\t\tboolean valid;\n\t\tif (valid = value >= 0 && value <= 100) {\n\t\t\tconfidence = value;\n\t\t}\n\t\treturn valid;\n\t}", "public double confidence() {\n return this.confidence;\n }", "public double confidenceHi(){\n return (this.average + (this.confidence_constant * this.std)/Math.sqrt((double) this.num_trials));\n }", "public float getConfidence() {\n return confidence;\n }", "public double confidenceHi() {\n\t\treturn mean() + ((constant * stddev())/Math.sqrt(trails));\n\t}", "public double confidenceHi(){\n return mean() + ((1.96 * stddev()) / Math.sqrt(numberOfTrials));\n }", "public Prediction apply( double[] confidence );", "public double getConfidenceLevel ()\n { \n return confidenceLevel;\n \n }", "void setNilSingleBetMinimum();", "String getConfidence();", "public double confidenceHi() {\n\t\treturn mean + 1.96 * stddev / Math.sqrt(experiments);\n\t}", "public int getConfidence() {\n\t\treturn confidence;\r\n\t}", "public float confidence() {\r\n\t\treturn LeapJNI.Hand_confidence(this.swigCPtr, this);\r\n\t}", "void setExtremeSpikeProbability(double p);", "public double getConfidence() {\n\t\treturn confidence;\n\t}", "public void setConfidenceLevel (double confidenceLevel)\n {\n this.confidenceLevel = confidenceLevel;\n \n }", "public Integer getConfidence() {\r\n\t\treturn confidence;\r\n\t}", "@AbstractCustomGlobal.GlobalMethod(menuText=\"Set Threshold Probability\")\n public void setThreshold() {\n if(Tools.getGlobalTime()!=0){\n JOptionPane.showMessageDialog(null, \"You can change this probability only when the simulation start\",\"Alert\", JOptionPane.INFORMATION_MESSAGE);\n return;\n }\n String answer = JOptionPane.showInputDialog(null, \"Set the probability that a node can be selected to run.\");\n // Show an information message\n try{\n double k = Double.parseDouble(answer);\n Iterator<Node> it = Tools.getNodeList().iterator();\n while(it.hasNext()){\n Node n = it.next();\n if(n.getClass() == MSNode.class){\n MSNode n1 = (MSNode)n;\n n1.setThresholdProbability(k);\n }\n if(n.getClass() == MS2Node.class){\n MS2Node n1 = (MS2Node)n;\n n1.setThresholdProbability(k);\n }\n }\n JOptionPane.showMessageDialog(null, \"Well done you have set this value:\"+k,\"Notice\", JOptionPane.INFORMATION_MESSAGE);\n }catch(NumberFormatException e){\n JOptionPane.showMessageDialog(null, \"You must insert a valid double \", \"Alert\", JOptionPane.INFORMATION_MESSAGE);\n }\n }", "public double confidenceHi() {\r\n\t\treturn confidenceHi;\r\n\t}", "public double confidenceHi() {\n\t\t return mean() + ((CONFIDENCE_NUM * stddev()) / Math.sqrt(trials));\n\t }", "void setNilMultipleBetMinimum();", "public double confidenceHi() {\n\t\treturn mean() + 1.96 * stddev() / Math.sqrt(threshold.length);\n\t}", "public double getConfidence() {\n return !Double.isNaN(confidence) ? MathUtil.coerce(0, 1, confidence) : 0.0;\n }", "public double getConfidence() {\n return mConfidence;\n }", "public double getConfidence() {\n return mConfidence;\n }", "public double getConfidence()\n {\n return this.confidence;\n }", "public double confidenceHi() {\n return mean() + CONFIDENCE * stddev() / Math.sqrt(trials);\n }", "public double confidenceHi() {\n return mean() + ((1.96 * stddev()) / Math.sqrt(trials));\n }", "public double confidenceHi() {\n\t\treturn confidenceHi;\n\t}", "private double getMinThreshold() {\n return minThreshold;\n }", "public double confidenceHi() {\n double confidenceLevel = 1.96;\r\n double temp = confidenceLevel * stddev()/Math.sqrt(stats.length);\r\n return mean()+temp;\r\n }", "public double confidenceHi() {\n return mu + 1.96*sig/Math.sqrt(t);\n }", "public double confidenceHi() {\n return mean() + CONFIDENCE_95 * stddev() / Math.sqrt(trials);\n }", "public double confidenceHi() {\n double high = mean()+1.96*stddev()/Math.sqrt(mProbabilities.length);\n return high;\n }", "public double confidenceHigh() {\n return confidenceHigh;\n }", "double getLowerThreshold();", "public double confidenceLo() \n {\n double mean = mean();\n double stddev = stddev();\n return mean - 1.96 * stddev / Math.sqrt(count);\n }", "public double confidenceHigh() {\n\t\treturn (double) mean()+(1.96*stddev()/Math.sqrt(myData.length));\n\t}", "public double confidenceHigh() {\n return mean() + ((1.96 * stddev()) / Math.sqrt(this.numTrials));\n }", "public double confidenceHi() { \n double hiBound = sampleMean \n + 1.96 * sampleStanDevi / Math.sqrt(times);\n return hiBound;\n }", "void setWagerMinimum(java.math.BigDecimal wagerMinimum);", "public double confidenceHigh() {\n return (mean() + 1.96 * stddev() / Math.sqrt(trials));\n }", "public double confidenceHi() {\n return this.mean() + this.stddev() * 1.96 / Math.sqrt(this.threshold.length);\n\n }", "public float getMinRatio();", "void setBestScore(double bestScore);", "public double confidenceHigh() {\n return mean() + (1.96 * stddev() / Math.sqrt(times));\n }", "void setSingleBetMinimum(java.math.BigDecimal singleBetMinimum);", "private ExpectedApproximation(int param) {\r\n this(Double.MIN_VALUE, param, Double.MAX_VALUE);\r\n }", "public double confidenceLo() {\n double low = mean()-1.96*stddev()/Math.sqrt(mProbabilities.length);\n return low;\n }", "public double confidenceLo() {\n\t\treturn confidenceLow;\n\t}", "public double confidenceLo(){\n return mean() - ((1.96 * stddev()) / Math.sqrt(numberOfTrials));\n }", "public double confidenceLo(){\n return (this.average - (this.confidence_constant * this.std)/Math.sqrt((double) this.num_trials));\n }", "public Confidence getConfidence() {\n return confidence;\n }", "public void setMinThreshold(double minThreshold) {\n this.minThreshold = minThreshold;\n }", "void m6860a(Confidence confidence) {\n this.f5235f = confidence;\n }", "public double confidenceLo() {\n\t\treturn mean - 1.96 * stddev / Math.sqrt(experiments);\n\t}", "void xsetWagerMinimum(org.apache.xmlbeans.XmlDecimal wagerMinimum);", "void xsetSingleBetMinimum(org.apache.xmlbeans.XmlDecimal singleBetMinimum);", "private ExpectedApproximation(double minExpected, int param, double maxExpected) {\r\n this.minExpected = Math.min(minExpected, maxExpected);\r\n this.param = param;\r\n this.maxExpected = Math.max(minExpected, maxExpected);\r\n }", "public void setMinAlturaCM(float max);", "public double confidenceHi() {\n double conHi = mean() + CONFIDENCE_95 * stddev() / (Math.sqrt(t));\n return conHi;\n }", "float xMin();", "private double getLowerFitness(Individual[] individuals){\n double lower = Double.MAX_VALUE;\n for (int i = 0; i < individuals.length; ++i ){\n \tlower = Math.min(lower, individuals[i].getFitness());\n }\n return lower;\n }", "public BestMeanConvergence() {\n }", "void setThreshold(float value);", "public double confidenceLo() {\r\n\t\treturn confidenceLo;\r\n\t}", "public double confidenceLo() {\n return mu - 1.96*sig/Math.sqrt(t);\n }", "public double confidenceLo() {\n double lowBound = \n sampleMean - 1.96 * sampleStanDevi / Math.sqrt(times);\n return lowBound;\n }", "private void setChlorophyllMinError (float chlorophyllMin, Exception e, int error) {\n this.chlorophyllMin = chlorophyllMin;\n chlorophyllMinErrorMessage = e.toString();\n chlorophyllMinError = error;\n }", "void setMultipleBetMinimum(java.math.BigDecimal multipleBetMinimum);", "public double confidenceLo() {\n\n\t\treturn mean() - ((constant * stddev())/Math.sqrt(trails));\n\t}", "public double confidenceHi() {\n double conHi = mean() + CONFIDENCE_95 * StdStats.var(trialResult) / Math.sqrt(trials);\n return conHi;\n }", "public void setMin( float min )\n {\n this.min = min;\n show_text();\n }", "public double confidenceLo() {\n\t\treturn mean() - 1.96 * stddev() / Math.sqrt(threshold.length);\n\t}", "@Test\r\n\tpublic void calculLostPointsByOneRuleBelowMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(2f, 0.5f, 3f), new Integer(1)),\r\n\t\t\t\tnew Float(0));\r\n\t}", "public void setMinimumValue(double minimumValue)\n {\n this.minimumValue = minimumValue;\n }", "int minNoteValue();", "public double confidenceLo() {\n\t\t return mean() - ((CONFIDENCE_NUM * stddev()) / Math.sqrt(trials));\n\t }", "int getLikelihoodValue();", "public int setChlorophyllMin(Float chlorophyllMin) {\n try {\n setChlorophyllMin(chlorophyllMin.floatValue());\n } catch (Exception e) {\n setChlorophyllMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMinError;\n }", "void xsetMultipleBetMinimum(org.apache.xmlbeans.XmlDecimal multipleBetMinimum);", "public float getMinAlturaCM();", "public int setSilicateMin(Float silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public double confidenceLo() {\n double confidenceLevel = 1.96;\r\n double temp = confidenceLevel * stddev()/Math.sqrt(stats.length);\r\n return mean()-temp;\r\n }" ]
[ "0.7245321", "0.6498493", "0.6479596", "0.6477637", "0.64652646", "0.64359987", "0.6403653", "0.6347741", "0.63377225", "0.62411773", "0.6205467", "0.61615103", "0.6160526", "0.6142017", "0.6118512", "0.6107053", "0.60994136", "0.60965455", "0.6080273", "0.608013", "0.60402006", "0.6038138", "0.6032648", "0.6024544", "0.6006877", "0.59669733", "0.5964703", "0.5935687", "0.5933134", "0.5899767", "0.5872949", "0.5863648", "0.58624965", "0.5842836", "0.5828886", "0.581876", "0.58183074", "0.5807497", "0.5798698", "0.57722265", "0.57722265", "0.5753068", "0.5752324", "0.5742883", "0.57410413", "0.57398605", "0.5731522", "0.57313925", "0.57226294", "0.5714387", "0.57072675", "0.56980205", "0.56972474", "0.56898004", "0.5687142", "0.56637055", "0.56608003", "0.5645305", "0.56439173", "0.56439006", "0.5639722", "0.5613847", "0.5602238", "0.55924594", "0.55885375", "0.5588411", "0.5580725", "0.55757433", "0.5572252", "0.55568135", "0.5538237", "0.5535568", "0.55207896", "0.548285", "0.5480069", "0.5477026", "0.54630524", "0.5459686", "0.54437345", "0.5416154", "0.53933954", "0.53924364", "0.53837293", "0.53794134", "0.5376338", "0.53738", "0.5368166", "0.53626984", "0.53551185", "0.53514725", "0.53322047", "0.53314203", "0.53256494", "0.53227264", "0.5319232", "0.5310144", "0.53023934", "0.52991277", "0.52989566", "0.5297876" ]
0.54377335
79
This method returns a signed authorization that the NHS will accept
public PutAuthorization authorizePutRecord(SecureRecord record) throws SecurityLibraryException { return new PutAuthorization( record, this.getCertificate(), record.getDoctorCertificate(), record.getPatientCertificate(), signBytes(record.getBytes()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String getAuthorization();", "public int getAuthorizationCode();", "public static String getAuthorization() {\n\t\treturn getServer()+\"wsagenda/v1/agenda\";//\"http://10.0.2.2/wsrest/v1/agenda\";//\"http://10.0.2.2/prueba/ahorro/obtener_gastos.php\";//\"http://10.0.2.2/wsrest/v1/agenda\";\n\t}", "boolean getIsAuthorized();", "java.lang.String getAuth();", "java.lang.String getAuth();", "java.lang.String getAuth();", "public String getAuthorizationStatus(){\n\t\treturn accessToken;\n\t}", "public\t Authorization getAuthorization()\n { return (Authorization) this.getHeader(AuthorizationHeader.NAME); }", "private void authorize() {\r\n\r\n\t}", "private boolean isAuthorized() {\n return true;\n }", "boolean authNeeded();", "String getSecret();", "@Api(1.0)\n @NonNull\n public String getAuthorization() {\n return mTokenType + \" \" + mAccessToken;\n }", "String privacyPolicy();", "public Principal getAuthorizationPrincipal() {\n return authorizationPrincipal;\n }", "String getSignature();", "String getSignature();", "String getSignature();", "java.lang.String getSecret();", "public String generateAuthCode() {\n return authCodeGenerator.generate().toString();\n }", "@RequestMapping(value = \"/authorization\", method = GET)\n AuthorizationCode getAuthorizationCodeUri();", "Signature getSignature();", "private String issuer() {\n return \"spoqn.com\";\n }", "public CurrencyCode getAuthorizationCurrencyCode() {\n return authorizationCurrencyCode;\n }", "public int getExternalIssuer();", "protected String getAuthMethod() {\n return \"Token\" ;// TODO this.conf.getAuthMethod();\n }", "String getUniqueSignature();", "public abstract String getSignature();", "public static String getAuthorizationLoguin() {\n\t\treturn getServer()+\"wsagenda/v1/usuarios/login\";\n\t}", "public abstract String getCurrentUserSignature(PortletRequest request);", "public abstract String getSecret();", "private static String getAuthorizationKey() {\n\n\t\t// Get valid authentication key from Environment\n\t\tString validAuthKey = AUTHORIZATION_KEY;\n\t\tif (String.valueOf(System.getenv(\"PROCESS_AUTH_KEY\")) != \"null\"){\n\t\t\tvalidAuthKey = String.valueOf(System.getenv(\"PROCESS_AUTH_KEY\"));\n\t\t}\n\n\t\treturn validAuthKey;\n\t}", "public String getAUTHORIZED_BY() {\r\n return AUTHORIZED_BY;\r\n }", "public String getAUTHORIZED_BY() {\r\n return AUTHORIZED_BY;\r\n }", "@Test\n public void destiny2AwaProvideAuthorizationResultTest() {\n InlineResponse20019 response = api.destiny2AwaProvideAuthorizationResult();\n\n // TODO: test validations\n }", "public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }", "String getVerified();", "Pokemon.RequestEnvelop.AuthInfo getAuth();", "Object getAuthInfoKey();", "java.lang.String getServerSecret();", "String getAccessToken();", "String getAccessToken();", "protected synchronized String authenticated() throws JSONException {\n JSONObject principal = new JSONObject()\n .put(FIELD_USERNAME, USER)\n .put(FIELD_PASSWORD, PASSWORD);\n if (token == null){ //Avoid authentication in each call\n token =\n given()\n .basePath(\"/\")\n .contentType(ContentType.JSON)\n .body(principal.toString())\n .when()\n .post(LOGIN)\n .then()\n .statusCode(200)\n .extract()\n .header(HEADER_AUTHORIZATION);\n\n }\n return token;\n }", "public final byte[] secret() {\n try {\n ByteSequence seq = new ByteSequence(this.sequence());\n seq.append(this._domainNameSeq);\n seq.append(this._creatorCert.getEncoded());\n return seq.sequence();\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n }", "String getSign();", "private Boolean authorize() {\n\n return Session.getInstance().login(user.getText(), password.getText());\n }", "SignatureIdentification createSignatureIdentification();", "private void getAUTH_REQUEST() throws Exception {\n\t\t\n\t\tboolean status = true;\n\t\tboolean status2 = false;\n\t\tString msg = \"\";\n\t\t\n\t\t//File filePK = new File(\"identity\");\n\t\n\t\ttry {\n\t\t\t\n\t\t\tmsg = br.readLine();\n\t\t\tGetTimestamp(\"Received Authorization Request from Client: \" + msg);\n\t\t\t\n\t\t\tJSONObject REQUEST = (JSONObject) parser.parse(msg);\n\t String identity = REQUEST.get(\"identity\").toString();\n\t\t\t\n\t\t\t\n\t if((identity.contains(\"aaron@krusty\"))) {\n\n\t \tGetTimestamp(\"Authorization Request from Client is approved: \");\n\n\t \tGetTimestamp(\"Client Publickey is stored: \" ) ;\n\n\t \tString tosend = encrypt1(getSharedKey(), getClientPublicKey());\n\n\t \tGetTimestamp(\"Server sharedkey is being encrypted with Client's publickey to be sent: \") ;\n\n\t \tJSONObject RESPONSE = new JSONObject();\n\t \tRESPONSE.put(\"command\",\"AUTH_RESPONSE\");\n\t \tRESPONSE.put(\"AES128\", tosend);\n\t \tRESPONSE.put(\"status\", status);\n\t \tRESPONSE.put(\"message\", \"public key found\");\n\n\t \tStringWriter out = new StringWriter();\n\t \tRESPONSE.writeJSONString(out);\n\n\t \tString AUTH_RESPONSE = out.toString();\n\t \tSystem.out.println(AUTH_RESPONSE);\n\n\t \tGetTimestamp(\"Sending Authorization Response to Client: \");\n\n\t \tpw.println(AUTH_RESPONSE);\n\t \tpw.flush();\n\n\n\n\t }\n\t else {\n\n\t \tSystem.out.println(\"Client \" + REQUEST.get(\"identity\") + \" has been rejected\");\n\n\t \tJSONObject RESPONSE = new JSONObject();\n\t \tRESPONSE.put(\"command\",\"AUTH_RESPONSE\");\n\t \tRESPONSE.put(\"status\", status2);\n\t \tRESPONSE.put(\"message\", \"public key not found\");\n\n\t \tStringWriter out = new StringWriter();\n\t \tRESPONSE.writeJSONString(out);\n\n\t \tString AUTH_RESPONSE = out.toString();\n\t \tSystem.out.println(AUTH_RESPONSE);\n\n\t \tpw.println(AUTH_RESPONSE);\n\t \tpw.flush();\n\n\t \tcloseConnection();\n\t }\n\t\t\t\t\n\t\t\t\n\t\t} catch (IOException ex) {\n\t\t\tLogger.getLogger(ServerTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\tif (msg.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"Client has signed out!\");\n\t\t\tcloseConnection();\n\n\t\t} else {\t\n\t\t\tgetMessage();\n\t\t}\n\t}", "default T calendarAccessAuthorized() {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, true);\n }", "public String getAccessToken();", "String getToken(String scope, String username, String password) throws AuthorizationException;", "java.lang.String getIssuer();", "public String getAuthorizationAmount() {\n return authorizationAmount;\n }", "public Pokemon.RequestEnvelop.AuthInfo getAuth() {\n return auth_;\n }", "UserPermissions authenticate (Request request);", "public String getAuthCode()\n\t{\n\t\tif(response.containsKey(\"AUTH_CODE\")) {\n\t\t\treturn response.get(\"AUTH_CODE\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic String authorizationCode() throws OAuthSystemException {\n\t\treturn null;\r\n\t}", "public abstract boolean authorize(int requestCode, int resultCode, @Nullable Intent intent);", "public abstract byte[] getSignature();", "public String getAuthCode() {\n return authCode;\n }", "@Override\n\tpublic boolean getSigned() {\n\t\treturn false;\n\t}", "public interface AuthorizationInterface {\n\n void init(Properties properties);\n\n HashMap<String,String> health(Properties properties);\n\n /**\n * returns an OAuth 2.0-like JSON string or null\n *\n * @param scope\n * @param username\n * @param password\n * @return\n * @throws AuthorizationException\n */\n String getToken(String scope, String username, String password) throws AuthorizationException;\n\n boolean isTokenValid(HttpServletResponse httpServletResponse, String service, String patronid, String access_token) throws AuthorizationException;\n\n boolean revokeToken(String token) throws AuthorizationException;\n\n String getAuthCookies(Cookie[] cookies) throws AuthorizationException;\n}", "public ClientAuthorization getClientAuthorization() {\n return clientAuthorization;\n }", "Pokemon.RequestEnvelop.AuthInfo.JWT getToken();", "int getSignature ();", "public AuthorizationApi getAuthorization() {\n return authorizationApi;\n }", "private String getSignedAssertion(String clientId, String tokenEndpoint, String mccmnc, String code, String clientKeyPairs, String keyPair) throws Exception {\n log.info(\"Entering getSignedAssertion: tokenEndpoint: {}\", tokenEndpoint);\n\n AssertionBody assertionBody = new AssertionBody();\n\n assertionBody.setAud(tokenEndpoint);\n assertionBody.setIss(clientId);\n assertionBody.setSub(clientId);\n // Create a version 4 UUID\n assertionBody.setJti(UUID.randomUUID().toString());\n // Casting to int truncates fractional portion of long if it exists\n int iat = (int)(new Date().getTime() / 1000);\n assertionBody.setIat(iat);\n int exp = iat + 30 * 60;\n assertionBody.setExp(exp);\n\n ObjectMapper mapper = new ObjectMapper();\n\n JSONObject parseKeyPairs = null;\n try {\n parseKeyPairs = JSONObjectUtils.parse(clientKeyPairs);\n } catch (ParseException ex) {\n String returnedMessage = String.format(\"JSONProcessingException: Error converting AssertionBody to JSON string: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n Object signingKey = parseKeyPairs.get(clientId);\n log.info(\"===> signingKey: \" + signingKey);\n\n String jwtKeyId = signingKey == null ? \"\" : signingKey.toString();\n\n JwtHeaderAssertion jwtHeaderAssertion = createJwtHeaderAssertion(jwtKeyId);\n\n String jwtHeaderAssertionJsonStrng = null;\n String assertionBodyJsonString = null;\n // Convert Java POJO JwtHeaderAssertion object to JSON string\n // Convert Java POJO AssertionBody object to JSON string\n try {\n jwtHeaderAssertionJsonStrng = mapper.writeValueAsString(jwtHeaderAssertion);\n assertionBodyJsonString = mapper.writeValueAsString(assertionBody);\n } catch (JsonProcessingException ex) {\n String returnedMessage = String.format(\"JSONProcessingException: Error converting AssertionBody to JSON string: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n log.info(\"JwtHeaderAssertion JSON string: {}\", jwtHeaderAssertionJsonStrng);\n log.info(\"AssertionBody JSON string: {}\", assertionBodyJsonString);\n\n String unsignedAssertion = createUnsignedJwt(jwtHeaderAssertionJsonStrng, assertionBodyJsonString);\n log.info(\"unsignedAssertion: {}\", unsignedAssertion);\n\n String signedAssertion = \"\";\n\n try {\n signedAssertion = createSignedRSAToken(unsignedAssertion, clientId, clientKeyPairs, keyPair);\n } catch (ParseException ex) {\n String returnedMessage = String.format(\"ParseException: Error signing unsigned assertion: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n } catch (JOSEException ex) {\n String returnedMessage = String.format(\"JOSEException: Error signing unsigned assertion: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n log.info(\"Leaving getSignedAssertion\");\n\n return signedAssertion;\n }", "public String getAuthorizationHeader() {\n\t\tString auth = getUsername() + \":\" + getPassword();\n\t\tthis.debugAuthentcation();\n\t\tString header = \"Basic \"\n\t\t\t\t+ DatatypeConverter.printBase64Binary(auth.getBytes());\n\t\treturn header;\n\t}", "public SignType getSignType();", "public static void buildAuthorizeURI(HttpServletRequest req,HttpServletResponse resp) throws IOException\n\t{\n\t\tHttpSession session=req.getSession();\n\t\t//generate random string for the state param in authorize query\n\t String state=randomStringGenerator(6);\n\t \n\t //generate random string for the nonce parameters in authorize query(Implicit flow/Hybrid flow)\n\t String nonce=randomStringGenerator(6);\n\t String response_type=authPickFlow(5);\n\t //store the state value as key and response_type as value in session and cross verified the state value in response to avoid CSRF attack\n\t //parallely process the future request based on response_type by passing the state parameter from the response and get the required response_type\n\t session.setAttribute(state, response_type);\n\t //It is on the session to verified the ID Token(Implict flow,Hybrid Flow)\n\t session.setAttribute(nonce,nonce);\n\t // System.out.println(state+\":\"+(String) session.getAttribute(state));\n\t //Build the URI with clientID,scope,state,redirectURI,response type\n\t\tString url=\"http://localhost:8080/OPENID/msOIDC/authorize?client_id=mano.lmfsktkmyj&scope=openid profile&state=\"+state+\"&redirect_uri=http://localhost:8080/OPENID/msPhoneBook/response1&response_type=\"+response_type+\"&nonce=\"+nonce;\n\t\t//Redirect the browser to msOIDC authorization endpoint\n\t\tresp.sendRedirect(url);\n\t}", "com.google.protobuf.ByteString getAuthorityBytes();", "public static com.tangosol.net.security.Authorizer getAuthorizer()\n {\n return __s_Authorizer;\n }", "boolean isSecureAccess();", "public boolean isAuthorized() {\n return isAuthorized;\n }", "static String m9939c(String str) throws C2579j {\n if (str == null || str.isEmpty()) {\n throw new C2579j(\"Authorization response does not contain the signed_request\");\n }\n try {\n String[] split = str.split(\"\\\\.\");\n if (split.length == 2) {\n return new JSONObject(new String(Base64.decode(split[1], 0), C2793C.UTF8_NAME)).getString(\"user_id\");\n }\n } catch (UnsupportedEncodingException | JSONException unused) {\n }\n throw new C2579j(\"Failed to retrieve user_id from signed_request\");\n }", "boolean authorize(\n String secret,\n int verificationCode,\n int window)\n throws GoogleAuthenticatorException;", "public String formUnauthorized()\r\n {\r\n return formError(\"401 Unauthorized\",\"Unauthorized use of this service\");\r\n }", "public String getAuthorisationCode() {\n return authorisationCode;\n }", "Credential<?>[] readAuthorization(HttpServletRequest request)\n throws IOException,ServletException;", "private String signature() {\n\t\t++this.nonce;\n\t\tString message = new String(this.nonce + this.username + this.apiKey);\n\t\tMac hmac = null;\n\n\t\ttry {\n\t\t\thmac = Mac.getInstance(\"HmacSHA256\");\n\t\t\tSecretKeySpec secret_key = new SecretKeySpec(\n\t\t\t\t\t((String) this.apiSecret).getBytes(\"UTF-8\"), \"HmacSHA256\");\n\t\t\thmac.init(secret_key);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidKeyException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn String.format(\"%X\",\n\t\t\t\tnew BigInteger(1, hmac.doFinal(message.getBytes())));\n\t}", "public Authorization() {\n\t\t\n\t\tBigInteger now = BigInteger.valueOf(Context.getBlockTimestamp());\t\t\n\t\tday.set(now.divide(U_SECONDS_DAY));\n\t}", "public boolean getWantClientAuth()\n {\n return wantClientAuth;\n }", "com.google.protobuf.ByteString\n getAuthBytes();", "com.google.protobuf.ByteString\n getAuthBytes();", "com.google.protobuf.ByteString\n getAuthBytes();", "public boolean auth() throws IOException {\r\n \treturn auth(false);\r\n }", "public interface ISecurityVerifier {\n public static final String COMPONENT_NAME = \"ISecurityVerifier\";\n\n Access getAllPossibleAccess(SecurityAccessor accessor, String resourceEntity, Access mask);\n\n boolean canAccess(SecurityAccessor accessor, String resourceEntity, Access access);\n\n boolean canAccess(SecurityAccessor accessor, String resourceEntity, Access access, Object... instances);\n\n void checkAccess(SecurityAccessor accessor, String resourceEntity, Access access) throws NoPermissionException;\n\n void checkAccess(SecurityAccessor accessor, String resourceEntity, Access access, Object... instances) throws NoPermissionException;\n\n boolean canAccessMappedResource(SecurityAccessor accessor, String mappedResource, Access access);\n\n void setAuthorityProvider(IAuthorityProvider provider);\n}", "@O2BearerToken\n @GET\n @Path(\"/token\")\n public Response bearerAuthorizedGet(@Context final SecurityContext c) {\n return Response.ok().build();\n }", "boolean isAuthenticated();", "GlobalAuthorizationConfigurationBuilder authorization();", "public boolean isAuthorized(){\n\t\treturn authorized;\n\t}", "public String getSignature()\r\n {\r\n return signature;\r\n }", "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}", "@Test\n public void testAuthorizationCode() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .authToken()\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.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }", "byte[] getSignatureImage();", "private static String getCloudAuth(String accessToken) {\n\t\ttry {\n\t\t\tURL urlResource = new URL(\"https://myapi.pathomation.com/api/v1/authenticate\");\n\t\t\tURLConnection conn = urlResource.openConnection();\n\t\t\tconn.setRequestProperty( \"Authorization\", \"Bearer \" + accessToken);\n\t\t\tconn.setUseCaches( false );\n\t\t\treturn getResponseString(conn);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public String requestSubscriptionAuthorization(SubscriptionRequestUIModel request)\n\t{\n\t\treturn SubscriptionAuthorizationDialog.obtainAuthorisationResponse(phoneFrame, request);\n\t}", "public StandardAuthority getAuthority()\n {\n return authority;\n }", "@Override\n public User authorize(String code) {\n return User.of(new Random().nextInt(100000) + 1, \"[email protected]\", UUID.randomUUID().toString(), 43800);\n }", "public boolean isAuthorized() {\n return authorized;\n }" ]
[ "0.6683504", "0.6603295", "0.6363069", "0.5948031", "0.5881707", "0.5881707", "0.5881707", "0.58785385", "0.5846342", "0.57975763", "0.5707104", "0.558061", "0.5561617", "0.5555067", "0.55528384", "0.5533406", "0.5524699", "0.5524699", "0.5524699", "0.5497803", "0.5495944", "0.5479613", "0.5454227", "0.53927654", "0.53850216", "0.5380982", "0.5360984", "0.5359152", "0.5340709", "0.5328293", "0.5326326", "0.53249645", "0.53211033", "0.53102756", "0.53102756", "0.5285436", "0.52750343", "0.52707744", "0.5258264", "0.5250067", "0.52421886", "0.52409035", "0.52409035", "0.5235705", "0.5228136", "0.52252614", "0.522159", "0.521914", "0.5211003", "0.5202744", "0.5198204", "0.5190884", "0.5190602", "0.5188776", "0.5187664", "0.5186642", "0.5186151", "0.51854825", "0.51771367", "0.51700073", "0.5167348", "0.5165607", "0.5165341", "0.5162003", "0.5157598", "0.5145293", "0.51430345", "0.51400036", "0.51317966", "0.5131449", "0.512804", "0.51201767", "0.5101232", "0.5099743", "0.50974107", "0.50957364", "0.50889117", "0.5081503", "0.5079109", "0.50529456", "0.50520116", "0.5050345", "0.5030039", "0.5029852", "0.5029852", "0.5029852", "0.5022377", "0.50197107", "0.50145143", "0.5011024", "0.50089633", "0.50082093", "0.50073", "0.5006305", "0.5005942", "0.5005264", "0.49934256", "0.49929374", "0.49890122", "0.49883252", "0.4986863" ]
0.0
-1
This method returns a signed authorization that the NHS will accept
public FetchAuthorization authorizeFetchRecord(Doctor doctor, Patient patient) throws SecurityLibraryException { try { return new FetchAuthorization( this.getCertificate(), doctor.getCertificate(), patient.getCertificate(), signBytes(concat(doctor.getCertificate().getEncoded(), patient.getCertificate().getEncoded()))); } catch (CertificateEncodingException e) { throw new SecurityLibraryException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String getAuthorization();", "public int getAuthorizationCode();", "public static String getAuthorization() {\n\t\treturn getServer()+\"wsagenda/v1/agenda\";//\"http://10.0.2.2/wsrest/v1/agenda\";//\"http://10.0.2.2/prueba/ahorro/obtener_gastos.php\";//\"http://10.0.2.2/wsrest/v1/agenda\";\n\t}", "boolean getIsAuthorized();", "java.lang.String getAuth();", "java.lang.String getAuth();", "java.lang.String getAuth();", "public String getAuthorizationStatus(){\n\t\treturn accessToken;\n\t}", "public\t Authorization getAuthorization()\n { return (Authorization) this.getHeader(AuthorizationHeader.NAME); }", "private void authorize() {\r\n\r\n\t}", "private boolean isAuthorized() {\n return true;\n }", "boolean authNeeded();", "String getSecret();", "@Api(1.0)\n @NonNull\n public String getAuthorization() {\n return mTokenType + \" \" + mAccessToken;\n }", "String privacyPolicy();", "public Principal getAuthorizationPrincipal() {\n return authorizationPrincipal;\n }", "String getSignature();", "String getSignature();", "String getSignature();", "java.lang.String getSecret();", "public String generateAuthCode() {\n return authCodeGenerator.generate().toString();\n }", "@RequestMapping(value = \"/authorization\", method = GET)\n AuthorizationCode getAuthorizationCodeUri();", "Signature getSignature();", "private String issuer() {\n return \"spoqn.com\";\n }", "public CurrencyCode getAuthorizationCurrencyCode() {\n return authorizationCurrencyCode;\n }", "public int getExternalIssuer();", "protected String getAuthMethod() {\n return \"Token\" ;// TODO this.conf.getAuthMethod();\n }", "String getUniqueSignature();", "public abstract String getSignature();", "public abstract String getCurrentUserSignature(PortletRequest request);", "public static String getAuthorizationLoguin() {\n\t\treturn getServer()+\"wsagenda/v1/usuarios/login\";\n\t}", "public abstract String getSecret();", "private static String getAuthorizationKey() {\n\n\t\t// Get valid authentication key from Environment\n\t\tString validAuthKey = AUTHORIZATION_KEY;\n\t\tif (String.valueOf(System.getenv(\"PROCESS_AUTH_KEY\")) != \"null\"){\n\t\t\tvalidAuthKey = String.valueOf(System.getenv(\"PROCESS_AUTH_KEY\"));\n\t\t}\n\n\t\treturn validAuthKey;\n\t}", "public String getAUTHORIZED_BY() {\r\n return AUTHORIZED_BY;\r\n }", "public String getAUTHORIZED_BY() {\r\n return AUTHORIZED_BY;\r\n }", "@Test\n public void destiny2AwaProvideAuthorizationResultTest() {\n InlineResponse20019 response = api.destiny2AwaProvideAuthorizationResult();\n\n // TODO: test validations\n }", "public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }", "String getVerified();", "Pokemon.RequestEnvelop.AuthInfo getAuth();", "Object getAuthInfoKey();", "java.lang.String getServerSecret();", "String getAccessToken();", "String getAccessToken();", "protected synchronized String authenticated() throws JSONException {\n JSONObject principal = new JSONObject()\n .put(FIELD_USERNAME, USER)\n .put(FIELD_PASSWORD, PASSWORD);\n if (token == null){ //Avoid authentication in each call\n token =\n given()\n .basePath(\"/\")\n .contentType(ContentType.JSON)\n .body(principal.toString())\n .when()\n .post(LOGIN)\n .then()\n .statusCode(200)\n .extract()\n .header(HEADER_AUTHORIZATION);\n\n }\n return token;\n }", "public final byte[] secret() {\n try {\n ByteSequence seq = new ByteSequence(this.sequence());\n seq.append(this._domainNameSeq);\n seq.append(this._creatorCert.getEncoded());\n return seq.sequence();\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n }", "String getSign();", "private Boolean authorize() {\n\n return Session.getInstance().login(user.getText(), password.getText());\n }", "SignatureIdentification createSignatureIdentification();", "private void getAUTH_REQUEST() throws Exception {\n\t\t\n\t\tboolean status = true;\n\t\tboolean status2 = false;\n\t\tString msg = \"\";\n\t\t\n\t\t//File filePK = new File(\"identity\");\n\t\n\t\ttry {\n\t\t\t\n\t\t\tmsg = br.readLine();\n\t\t\tGetTimestamp(\"Received Authorization Request from Client: \" + msg);\n\t\t\t\n\t\t\tJSONObject REQUEST = (JSONObject) parser.parse(msg);\n\t String identity = REQUEST.get(\"identity\").toString();\n\t\t\t\n\t\t\t\n\t if((identity.contains(\"aaron@krusty\"))) {\n\n\t \tGetTimestamp(\"Authorization Request from Client is approved: \");\n\n\t \tGetTimestamp(\"Client Publickey is stored: \" ) ;\n\n\t \tString tosend = encrypt1(getSharedKey(), getClientPublicKey());\n\n\t \tGetTimestamp(\"Server sharedkey is being encrypted with Client's publickey to be sent: \") ;\n\n\t \tJSONObject RESPONSE = new JSONObject();\n\t \tRESPONSE.put(\"command\",\"AUTH_RESPONSE\");\n\t \tRESPONSE.put(\"AES128\", tosend);\n\t \tRESPONSE.put(\"status\", status);\n\t \tRESPONSE.put(\"message\", \"public key found\");\n\n\t \tStringWriter out = new StringWriter();\n\t \tRESPONSE.writeJSONString(out);\n\n\t \tString AUTH_RESPONSE = out.toString();\n\t \tSystem.out.println(AUTH_RESPONSE);\n\n\t \tGetTimestamp(\"Sending Authorization Response to Client: \");\n\n\t \tpw.println(AUTH_RESPONSE);\n\t \tpw.flush();\n\n\n\n\t }\n\t else {\n\n\t \tSystem.out.println(\"Client \" + REQUEST.get(\"identity\") + \" has been rejected\");\n\n\t \tJSONObject RESPONSE = new JSONObject();\n\t \tRESPONSE.put(\"command\",\"AUTH_RESPONSE\");\n\t \tRESPONSE.put(\"status\", status2);\n\t \tRESPONSE.put(\"message\", \"public key not found\");\n\n\t \tStringWriter out = new StringWriter();\n\t \tRESPONSE.writeJSONString(out);\n\n\t \tString AUTH_RESPONSE = out.toString();\n\t \tSystem.out.println(AUTH_RESPONSE);\n\n\t \tpw.println(AUTH_RESPONSE);\n\t \tpw.flush();\n\n\t \tcloseConnection();\n\t }\n\t\t\t\t\n\t\t\t\n\t\t} catch (IOException ex) {\n\t\t\tLogger.getLogger(ServerTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\tif (msg.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"Client has signed out!\");\n\t\t\tcloseConnection();\n\n\t\t} else {\t\n\t\t\tgetMessage();\n\t\t}\n\t}", "default T calendarAccessAuthorized() {\n return amend(CALENDAR_ACCESS_AUTHORIZED_OPTION, true);\n }", "public String getAccessToken();", "java.lang.String getIssuer();", "String getToken(String scope, String username, String password) throws AuthorizationException;", "public Pokemon.RequestEnvelop.AuthInfo getAuth() {\n return auth_;\n }", "public String getAuthorizationAmount() {\n return authorizationAmount;\n }", "UserPermissions authenticate (Request request);", "public String getAuthCode()\n\t{\n\t\tif(response.containsKey(\"AUTH_CODE\")) {\n\t\t\treturn response.get(\"AUTH_CODE\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic String authorizationCode() throws OAuthSystemException {\n\t\treturn null;\r\n\t}", "public abstract boolean authorize(int requestCode, int resultCode, @Nullable Intent intent);", "public abstract byte[] getSignature();", "@Override\n\tpublic boolean getSigned() {\n\t\treturn false;\n\t}", "public String getAuthCode() {\n return authCode;\n }", "public interface AuthorizationInterface {\n\n void init(Properties properties);\n\n HashMap<String,String> health(Properties properties);\n\n /**\n * returns an OAuth 2.0-like JSON string or null\n *\n * @param scope\n * @param username\n * @param password\n * @return\n * @throws AuthorizationException\n */\n String getToken(String scope, String username, String password) throws AuthorizationException;\n\n boolean isTokenValid(HttpServletResponse httpServletResponse, String service, String patronid, String access_token) throws AuthorizationException;\n\n boolean revokeToken(String token) throws AuthorizationException;\n\n String getAuthCookies(Cookie[] cookies) throws AuthorizationException;\n}", "public ClientAuthorization getClientAuthorization() {\n return clientAuthorization;\n }", "Pokemon.RequestEnvelop.AuthInfo.JWT getToken();", "int getSignature ();", "public AuthorizationApi getAuthorization() {\n return authorizationApi;\n }", "private String getSignedAssertion(String clientId, String tokenEndpoint, String mccmnc, String code, String clientKeyPairs, String keyPair) throws Exception {\n log.info(\"Entering getSignedAssertion: tokenEndpoint: {}\", tokenEndpoint);\n\n AssertionBody assertionBody = new AssertionBody();\n\n assertionBody.setAud(tokenEndpoint);\n assertionBody.setIss(clientId);\n assertionBody.setSub(clientId);\n // Create a version 4 UUID\n assertionBody.setJti(UUID.randomUUID().toString());\n // Casting to int truncates fractional portion of long if it exists\n int iat = (int)(new Date().getTime() / 1000);\n assertionBody.setIat(iat);\n int exp = iat + 30 * 60;\n assertionBody.setExp(exp);\n\n ObjectMapper mapper = new ObjectMapper();\n\n JSONObject parseKeyPairs = null;\n try {\n parseKeyPairs = JSONObjectUtils.parse(clientKeyPairs);\n } catch (ParseException ex) {\n String returnedMessage = String.format(\"JSONProcessingException: Error converting AssertionBody to JSON string: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n Object signingKey = parseKeyPairs.get(clientId);\n log.info(\"===> signingKey: \" + signingKey);\n\n String jwtKeyId = signingKey == null ? \"\" : signingKey.toString();\n\n JwtHeaderAssertion jwtHeaderAssertion = createJwtHeaderAssertion(jwtKeyId);\n\n String jwtHeaderAssertionJsonStrng = null;\n String assertionBodyJsonString = null;\n // Convert Java POJO JwtHeaderAssertion object to JSON string\n // Convert Java POJO AssertionBody object to JSON string\n try {\n jwtHeaderAssertionJsonStrng = mapper.writeValueAsString(jwtHeaderAssertion);\n assertionBodyJsonString = mapper.writeValueAsString(assertionBody);\n } catch (JsonProcessingException ex) {\n String returnedMessage = String.format(\"JSONProcessingException: Error converting AssertionBody to JSON string: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n log.info(\"JwtHeaderAssertion JSON string: {}\", jwtHeaderAssertionJsonStrng);\n log.info(\"AssertionBody JSON string: {}\", assertionBodyJsonString);\n\n String unsignedAssertion = createUnsignedJwt(jwtHeaderAssertionJsonStrng, assertionBodyJsonString);\n log.info(\"unsignedAssertion: {}\", unsignedAssertion);\n\n String signedAssertion = \"\";\n\n try {\n signedAssertion = createSignedRSAToken(unsignedAssertion, clientId, clientKeyPairs, keyPair);\n } catch (ParseException ex) {\n String returnedMessage = String.format(\"ParseException: Error signing unsigned assertion: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n } catch (JOSEException ex) {\n String returnedMessage = String.format(\"JOSEException: Error signing unsigned assertion: %s\", ex.getMessage());\n log.error(returnedMessage);\n throw new Exception(returnedMessage);\n }\n log.info(\"Leaving getSignedAssertion\");\n\n return signedAssertion;\n }", "public SignType getSignType();", "public String getAuthorizationHeader() {\n\t\tString auth = getUsername() + \":\" + getPassword();\n\t\tthis.debugAuthentcation();\n\t\tString header = \"Basic \"\n\t\t\t\t+ DatatypeConverter.printBase64Binary(auth.getBytes());\n\t\treturn header;\n\t}", "public static void buildAuthorizeURI(HttpServletRequest req,HttpServletResponse resp) throws IOException\n\t{\n\t\tHttpSession session=req.getSession();\n\t\t//generate random string for the state param in authorize query\n\t String state=randomStringGenerator(6);\n\t \n\t //generate random string for the nonce parameters in authorize query(Implicit flow/Hybrid flow)\n\t String nonce=randomStringGenerator(6);\n\t String response_type=authPickFlow(5);\n\t //store the state value as key and response_type as value in session and cross verified the state value in response to avoid CSRF attack\n\t //parallely process the future request based on response_type by passing the state parameter from the response and get the required response_type\n\t session.setAttribute(state, response_type);\n\t //It is on the session to verified the ID Token(Implict flow,Hybrid Flow)\n\t session.setAttribute(nonce,nonce);\n\t // System.out.println(state+\":\"+(String) session.getAttribute(state));\n\t //Build the URI with clientID,scope,state,redirectURI,response type\n\t\tString url=\"http://localhost:8080/OPENID/msOIDC/authorize?client_id=mano.lmfsktkmyj&scope=openid profile&state=\"+state+\"&redirect_uri=http://localhost:8080/OPENID/msPhoneBook/response1&response_type=\"+response_type+\"&nonce=\"+nonce;\n\t\t//Redirect the browser to msOIDC authorization endpoint\n\t\tresp.sendRedirect(url);\n\t}", "com.google.protobuf.ByteString getAuthorityBytes();", "public static com.tangosol.net.security.Authorizer getAuthorizer()\n {\n return __s_Authorizer;\n }", "boolean isSecureAccess();", "static String m9939c(String str) throws C2579j {\n if (str == null || str.isEmpty()) {\n throw new C2579j(\"Authorization response does not contain the signed_request\");\n }\n try {\n String[] split = str.split(\"\\\\.\");\n if (split.length == 2) {\n return new JSONObject(new String(Base64.decode(split[1], 0), C2793C.UTF8_NAME)).getString(\"user_id\");\n }\n } catch (UnsupportedEncodingException | JSONException unused) {\n }\n throw new C2579j(\"Failed to retrieve user_id from signed_request\");\n }", "public boolean isAuthorized() {\n return isAuthorized;\n }", "boolean authorize(\n String secret,\n int verificationCode,\n int window)\n throws GoogleAuthenticatorException;", "public String formUnauthorized()\r\n {\r\n return formError(\"401 Unauthorized\",\"Unauthorized use of this service\");\r\n }", "public String getAuthorisationCode() {\n return authorisationCode;\n }", "private String signature() {\n\t\t++this.nonce;\n\t\tString message = new String(this.nonce + this.username + this.apiKey);\n\t\tMac hmac = null;\n\n\t\ttry {\n\t\t\thmac = Mac.getInstance(\"HmacSHA256\");\n\t\t\tSecretKeySpec secret_key = new SecretKeySpec(\n\t\t\t\t\t((String) this.apiSecret).getBytes(\"UTF-8\"), \"HmacSHA256\");\n\t\t\thmac.init(secret_key);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidKeyException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn String.format(\"%X\",\n\t\t\t\tnew BigInteger(1, hmac.doFinal(message.getBytes())));\n\t}", "Credential<?>[] readAuthorization(HttpServletRequest request)\n throws IOException,ServletException;", "public Authorization() {\n\t\t\n\t\tBigInteger now = BigInteger.valueOf(Context.getBlockTimestamp());\t\t\n\t\tday.set(now.divide(U_SECONDS_DAY));\n\t}", "public boolean getWantClientAuth()\n {\n return wantClientAuth;\n }", "com.google.protobuf.ByteString\n getAuthBytes();", "com.google.protobuf.ByteString\n getAuthBytes();", "com.google.protobuf.ByteString\n getAuthBytes();", "public boolean auth() throws IOException {\r\n \treturn auth(false);\r\n }", "public interface ISecurityVerifier {\n public static final String COMPONENT_NAME = \"ISecurityVerifier\";\n\n Access getAllPossibleAccess(SecurityAccessor accessor, String resourceEntity, Access mask);\n\n boolean canAccess(SecurityAccessor accessor, String resourceEntity, Access access);\n\n boolean canAccess(SecurityAccessor accessor, String resourceEntity, Access access, Object... instances);\n\n void checkAccess(SecurityAccessor accessor, String resourceEntity, Access access) throws NoPermissionException;\n\n void checkAccess(SecurityAccessor accessor, String resourceEntity, Access access, Object... instances) throws NoPermissionException;\n\n boolean canAccessMappedResource(SecurityAccessor accessor, String mappedResource, Access access);\n\n void setAuthorityProvider(IAuthorityProvider provider);\n}", "@O2BearerToken\n @GET\n @Path(\"/token\")\n public Response bearerAuthorizedGet(@Context final SecurityContext c) {\n return Response.ok().build();\n }", "boolean isAuthenticated();", "public String getSignature()\r\n {\r\n return signature;\r\n }", "GlobalAuthorizationConfigurationBuilder authorization();", "byte[] getSignatureImage();", "public boolean isAuthorized(){\n\t\treturn authorized;\n\t}", "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}", "@Test\n public void testAuthorizationCode() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .authToken()\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.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }", "private static String getCloudAuth(String accessToken) {\n\t\ttry {\n\t\t\tURL urlResource = new URL(\"https://myapi.pathomation.com/api/v1/authenticate\");\n\t\t\tURLConnection conn = urlResource.openConnection();\n\t\t\tconn.setRequestProperty( \"Authorization\", \"Bearer \" + accessToken);\n\t\t\tconn.setUseCaches( false );\n\t\t\treturn getResponseString(conn);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public String requestSubscriptionAuthorization(SubscriptionRequestUIModel request)\n\t{\n\t\treturn SubscriptionAuthorizationDialog.obtainAuthorisationResponse(phoneFrame, request);\n\t}", "public StandardAuthority getAuthority()\n {\n return authority;\n }", "@Override\n public User authorize(String code) {\n return User.of(new Random().nextInt(100000) + 1, \"[email protected]\", UUID.randomUUID().toString(), 43800);\n }", "public boolean isAuthorized() {\n return authorized;\n }" ]
[ "0.66830826", "0.66024894", "0.6361659", "0.59477353", "0.5883168", "0.5883168", "0.5883168", "0.5877462", "0.584465", "0.5796613", "0.57062614", "0.55813056", "0.5561594", "0.5554536", "0.5552983", "0.55327576", "0.55265534", "0.55265534", "0.55265534", "0.5497931", "0.5496367", "0.54786325", "0.54563254", "0.5394363", "0.5384858", "0.5382414", "0.5361942", "0.536082", "0.53430057", "0.53284514", "0.53281105", "0.53255886", "0.5321001", "0.53105354", "0.53105354", "0.52837163", "0.5274423", "0.52732843", "0.5258985", "0.5251045", "0.5241939", "0.52413344", "0.52413344", "0.5237031", "0.52289927", "0.52268285", "0.5221805", "0.5221239", "0.52105725", "0.5202594", "0.51985806", "0.5192778", "0.5190391", "0.5188465", "0.5187945", "0.51872456", "0.51864415", "0.51851034", "0.5176858", "0.5171881", "0.5168137", "0.51679355", "0.5163991", "0.51604646", "0.51582164", "0.514645", "0.51426744", "0.5142262", "0.51339227", "0.51309776", "0.5128333", "0.512112", "0.5100959", "0.5099008", "0.509681", "0.50965816", "0.50884664", "0.5080715", "0.5079234", "0.50539255", "0.50515944", "0.504973", "0.5030091", "0.50298893", "0.50298893", "0.50298893", "0.5023079", "0.5020972", "0.5013892", "0.50125605", "0.5009315", "0.5009107", "0.50075024", "0.5007234", "0.5006903", "0.50035626", "0.49925902", "0.4991224", "0.4990719", "0.49879387", "0.4986059" ]
0.0
-1
Code based off this example:
public static byte[] createCheckSum(String filename) throws Exception { InputStream fis = new FileInputStream(filename); byte[] buffer = new byte[1024]; MessageDigest complete = MessageDigest.getInstance("MD5"); int numRead; do { numRead = fis.read(buffer); if (numRead > 0) { complete.update(buffer, 0, numRead); } } while (numRead != -1); fis.close(); // Return MD5 Hash return complete.digest(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "private stendhal() {\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "protected void mo6255a() {\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void strin() {\n\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 }", "public void gored() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo38117a() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n protected void setup() {\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n\tprotected void postRun() {\n\n\t}", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\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 }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void initialize() {\n\n \n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n \tpublic void process() {\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\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "public static void main(String[] args)\r\t{", "private static void iterator() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "public void mo6081a() {\n }", "@Override\n public void init() {\n\n }", "public void redibujarAlgoformers() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@Override\n public int describeContents() { return 0; }", "protected OpinionFinding() {/* intentionally empty block */}", "@Override\n\tprotected void logic() {\n\n\t}", "public static void listing5_14() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void identify() {\n\n\t}", "private void init() {\n\n\n\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}" ]
[ "0.5444667", "0.5330878", "0.5248115", "0.5227022", "0.51644415", "0.51140094", "0.50927734", "0.50741845", "0.5053528", "0.504108", "0.4986639", "0.49724972", "0.496235", "0.496235", "0.49460778", "0.49311057", "0.49280804", "0.49233562", "0.4921858", "0.49214333", "0.49214333", "0.49137616", "0.4906319", "0.4906319", "0.4906319", "0.4906319", "0.4906319", "0.4906319", "0.48906842", "0.48887545", "0.48867875", "0.48867875", "0.4871879", "0.48640633", "0.4860288", "0.486013", "0.4857563", "0.48571858", "0.48571858", "0.48476028", "0.4841017", "0.48393714", "0.48238945", "0.4815673", "0.480858", "0.48066902", "0.4804407", "0.48033968", "0.48030645", "0.48030645", "0.48030645", "0.48030645", "0.48030645", "0.48030645", "0.48030645", "0.47985217", "0.47870895", "0.47808024", "0.4777469", "0.47754523", "0.47685525", "0.47683924", "0.47621015", "0.47612602", "0.47612602", "0.47540447", "0.47535962", "0.47482184", "0.47464064", "0.4745401", "0.47399375", "0.47399375", "0.47399375", "0.47399375", "0.47399375", "0.47366896", "0.47338894", "0.47294703", "0.47255477", "0.47124818", "0.47124818", "0.47107187", "0.47053707", "0.4704901", "0.46943283", "0.46736494", "0.4670585", "0.46695", "0.46669447", "0.46667197", "0.4665584", "0.46653175", "0.46652675", "0.4658652", "0.4653489", "0.4653282", "0.46500456", "0.46439028", "0.46438196", "0.46437228", "0.46437228" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { LinkRemoveDuplicates2 ll=new LinkRemoveDuplicates2(); ll.insertFirst(40); ll.insertFirst(30); ll.insertFirst(20); ll.insertFirst(20); ll.insertFirst(10); ll.insertFirst(10); System.out.println("Initial List->"); ll.printList(); ll.head=ll.remove(ll.head); System.out.println("\n\nAfter removing duplicates->"); ll.printList(); }
{ "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
Set values and important GUI things for all pieces of the GUI. HBox.setHgrow(adrem, Priority.ALWAYS); HBox.setHgrow(quitB, Priority.ALWAYS); HBox.setHgrow(saveB, Priority.ALWAYS); ColumnConstraints test1 = ColumnConstraintsBuilder.create().percentWidth.(20).build();
@Override public void start(Stage primaryStage) throws IOException { for (Country c : countries) { visibleCountriesList.add(c); } //Build top toolbar g.setHgap(10); for (int i = 0; i < 5; i++) { ColumnConstraints column = new ColumnConstraints(); column.setPercentWidth(20); g.getColumnConstraints().add(column); } //Top toolbar creation + eventHandler. for (int i = 0; i < 5; i++) { final Button b = new Button(); b.setMaxWidth(Double.MAX_VALUE); GridPane.setColumnIndex(b, i); g.getChildren().add(b); b.setOnMouseClicked(new EventHandler<MouseEvent>() { @Override public void handle(MouseEvent t) { if (!"None".equals(b.getText())) { selectedCountry = Country.getCountry(b.getText()); eventLog.appendText("Selected "+selectedCountry.Name+" From favourites list \n"); selectedCountryChanged(); } else { //don't wanna do anything } } }); } refreshToolbarButtons(); BorderPane root = new BorderPane(); //Build country list lv.setPrefHeight(400); lv.setPrefWidth(100); lv.setItems(visibleCountriesList); lv.getSelectionModel().setSelectionMode(SelectionMode.SINGLE); lv.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>() { @Override public void changed(ObservableValue<? extends Number> ov, Number t, Number t1) { selectedCountry = (Country)lv.getSelectionModel().getSelectedItem(); selectedCountryChanged(); //eventLog.appendText("Changed Flag, Country Text and Image to:"+selectedCountry.Name+"\n"); } }); //Build main window addToToolbar.setOnMouseClicked(new EventHandler<MouseEvent>() { @Override public void handle(MouseEvent t) { addToToolbar(); } }); Button remFromToolbar = new Button("Remove favourite"); remFromToolbar.setOnMouseClicked(new EventHandler<MouseEvent>() { @Override public void handle(MouseEvent t) { removeFromToolbar(); } }); adrem.getChildren().add(addToToolbar); adrem.getChildren().add(remFromToolbar); //Set up for checkbox Filters GridPane filters = new GridPane(); for (int i = 0; i < 6; i++) { RowConstraints row = new RowConstraints(); row.setPercentHeight(20); filters.getRowConstraints().add(row); } saveB.setOnAction(new EventHandler<ActionEvent>(){ @Override public void handle(ActionEvent event) { FileChooser fileChooser = new FileChooser(); //Set extension filter FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter("PNG files (*.png)", "*.png"); fileChooser.getExtensionFilters().add(extFilter); //Show save file dialog File filepath = fileChooser.showSaveDialog(primaryStage); //Modify this to print out the file path. eventLog.appendText("Saved file to: "+filepath.toString()+"\n"); //if(file != null){ //SaveFile( file); //} } }); //Creation and Observer for checkbox Filters. for (int i = 0; i < 6; i++) { CheckBox ch = new CheckBox(ContList[i]); ch.setMaxWidth(Double.MAX_VALUE); ch.setMaxHeight(Double.MAX_VALUE); GridPane.setRowIndex(ch, i); ch.setSelected(true); //filters.; ch.selectedProperty().addListener(new ChangeListener<Boolean>(){ @Override public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) { if(ch.isSelected() == false){ String Title = ch.getText(); String Contval; //visibleCountriesList.clear(); //System.out.println(Title); for (Country c : countries){ switch (c.Continent.ordinal()) { case 0: Contval = ContList[0]; break; case 1: Contval = ContList[1]; break; case 2: Contval = ContList[2]; break; case 3: Contval = ContList[3]; break; case 4: Contval = ContList[4]; break; case 5: Contval = ContList[5]; break; default: Contval = "Doesn't Exist"; break; } //System.out.println(Contval); if (Title.equals(Contval)){ visibleCountriesList.remove(c); } } eventLog.appendText("Filtered Continent:"+ch.getText()+"\n"); } else { String Title = ch.getText(); String Contval; for (Country c : countries){ switch (c.Continent.ordinal()) { case 0: Contval = ContList[0]; break; case 1: Contval = ContList[1]; break; case 2: Contval = ContList[2]; break; case 3: Contval = ContList[3]; break; case 4: Contval = ContList[4]; break; case 5: Contval = ContList[5]; break; default: Contval = "Doesn't Exist"; break; } //System.out.println(Contval); if (Title.equals(Contval)){ visibleCountriesList.add(c); } if (visibleCountriesList.isEmpty()){ visibleCountriesList.clear(); } } eventLog.appendText("Unfiltered Continent:"+ch.getText()+"\n"); } } }); filters.getChildren().add(ch); } Scene scene = new Scene(root, 700, 500); primaryStage.setTitle("Assignment3"); primaryStage.setScene(scene); image = new Image((getClass().getResourceAsStream("/Flags/vi.png"))); CountryTitle.setText(countries[0].Name); CountryTitle.setFont(new Font("Arial",20)); //CountryTitle.setWrapText(true); selectedCountry = Country.getCountry(CountryTitle.getText()); //lv.getSelectionModel().select(0); //lv.getFocusModel().focus(0); imageHolder.setImage(image); //imageHolder.setFitWidth(200); imageHolder.setPreserveRatio(true); centreP.setBackground(new Background(new BackgroundFill(Color.LIGHTGREY,CornerRadii.EMPTY,Insets.EMPTY))); adrem.setAlignment(Pos.CENTER); lv.setMaxSize(Double.MAX_VALUE,Double.MAX_VALUE); filters.setMaxSize(Double.MAX_VALUE,Double.MAX_VALUE); centreP.setMaxSize(Double.MAX_VALUE,Double.MAX_VALUE); bottomStuff.setPrefHeight(300); eventLog.setPrefHeight(500); saveQuit.setPrefHeight(500); testGrid.add(topStuff,0,1); topStuff.add(filters,0,0); testGrid.add(g, 0, 0); ColumnConstraints cTopSt1 = new ColumnConstraints(50,5000,Double.MAX_VALUE); cTopSt1.setPercentWidth(15); cTopSt1.setHgrow(Priority.ALWAYS); topStuff.getColumnConstraints().add(cTopSt1); RowConstraints gtst =new RowConstraints (30,30,Double.MAX_VALUE); gtst.setVgrow(Priority.ALWAYS); gtst.setPercentHeight(100); g.getRowConstraints().add(gtst); topStuff.add(centreP,1,0); //centreP.getChildren().addAll(textAndFlag,descText,adrem); ColumnConstraints cTopSt2 = new ColumnConstraints(50,5000,Double.MAX_VALUE); cTopSt2.setPercentWidth(55); cTopSt2.setHgrow(Priority.ALWAYS); topStuff.getColumnConstraints().add(cTopSt2); centreP.add(textAndFlag,0,0); textAndFlag.getChildren().addAll(CountryTitle,imageHolder); textAndFlag.setAlignment(Pos.CENTER); centreP.add(descText,0,1); centreP.add(adrem,0,2); ColumnConstraints tstCol = new ColumnConstraints(50,1000,Double.MAX_VALUE); tstCol.setHgrow(Priority.ALWAYS); tstCol.setPercentWidth(100); RowConstraints tstRow = new RowConstraints(50,1000,Double.MAX_VALUE); tstRow.setVgrow(Priority.ALWAYS); //tstRow.getPercentHeight(); centreP.getRowConstraints().addAll(tstRow,tstRow,tstRow); centreP.getColumnConstraints().addAll(tstCol); //topStuff.getRowConstraints().add(tstRow); topStuff.add(lv, 2, 0); ColumnConstraints cTopSt3 = new ColumnConstraints(50,5000,Double.MAX_VALUE); cTopSt3.setPercentWidth(30); cTopSt3.setHgrow(Priority.ALWAYS); topStuff.getColumnConstraints().add(cTopSt3); testGrid.add(bottomStuff,0,2); bottomStuff.add(eventLog,0,0); ColumnConstraints cBotSt1 = new ColumnConstraints(50,50,Double.MAX_VALUE); cBotSt1.setPercentWidth(90); cBotSt1.setHgrow(Priority.ALWAYS); bottomStuff.getColumnConstraints().add(cBotSt1); //RowConstraints rBotSt1 = new RowConstraints(50,50,Double.MAX_VALUE); //rBotSt1.setVgrow(Priority.NEVER); //rBotSt1.setPercentHeight(100); bottomStuff.add(saveQuit,1,0); ColumnConstraints cBotSt2 = new ColumnConstraints(50,50,Double.MAX_VALUE); cBotSt2.setPercentWidth(10); cBotSt2.setHgrow(Priority.ALWAYS); bottomStuff.getColumnConstraints().add(cBotSt2); saveQuit.add(saveB,0,0); saveQuit.add(quitB,0,1); RowConstraints cRowSt3 = new RowConstraints(50,1000,Double.MAX_VALUE); cRowSt3.setPercentHeight(100); cRowSt3.setVgrow(Priority.ALWAYS); bottomStuff.getRowConstraints().add(cRowSt3); //testGrid.setGridLinesVisible(true); //RowConstraints tstR1 = new RowConstraints(50,50,Double.MAX_VALUE); //tstR1.setVgrow(Priority.ALWAYS); //tstR1.setPercentHeight(100); //testGrid.getRowConstraints().add(tstR1); //RowConstraints tstR2 = new RowConstraints(50,50,Double.MAX_VALUE); //tstR2.setVgrow(Priority.ALWAYS); //tstR2.setPercentHeight(100); //testGrid.getRowConstraints().add(tstR2); //Setting each piece of the overall TestGrid (why did I name it that? //Well it's it was originally a test //RowConstraints tGRow1 = new RowConstraints(50,50,Double.MAX_VALUE); //tGRow1.setVgrow(Priority.ALWAYS); //tGRow1.setPercentHeight(5); //testGrid.getRowConstraints().add(0,tGRow1); //RowConstraints tGRow2 = new RowConstraints(50,50,Double.MAX_VALUE); //tGRow2.setVgrow(Priority.ALWAYS); //tGRow2.setPercentHeight(55); //testGrid.getRowConstraints().add(1, tGRow2); //RowConstraints tGRow3 = new RowConstraints(50,50,Double.MAX_VALUE); //tGRow3.setVgrow(Priority.ALWAYS); //tGRow3.setPercentHeight(40); //testGrid.getRowConstraints().add(2,tGRow3); //g.setPadding(new Insets(0,10,10,0)); //root.setTop(g); //g.setGridLinesVisible(true); //root.setCenter(topStuff); //topStuff.setGridLinesVisible(true); //root.setBottom(bottomStuff); //bottomStuff.setGridLinesVisible(true); adrem.setSpacing(20); root.setCenter(testGrid); primaryStage.show(); quitB.setOnAction(new EventHandler<ActionEvent>(){ @Override public void handle(ActionEvent event) { System.exit(0); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n panel1.setBackground(new Color(-6047008));\n panel1.setFont(new Font(\"Times New Roman\", panel1.getFont().getStyle(), 16));\n formPanel = new JPanel();\n formPanel.setLayout(new FormLayout(\"left:56dlu:noGrow,left:32dlu:noGrow,left:92px:noGrow,left:34dlu:noGrow,fill:84px:noGrow,left:4dlu:noGrow,fill:40dlu:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:39dlu:noGrow,left:4dlu:noGrow,fill:d:grow\", \"center:d:noGrow,top:4dlu:noGrow,center:p:noGrow,top:4dlu:noGrow,fill:50px:noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:50px:noGrow,top:4dlu:noGrow,center:17px:noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:50px:noGrow\"));\n formPanel.setBackground(new Color(-6047008));\n CellConstraints cc = new CellConstraints();\n panel1.add(formPanel, cc.xy(1, 1));\n table4Title = new JLabel();\n table4Title.setBackground(new Color(-6047008));\n table4Title.setText(\"碎石土的密实度与触探击数的关系(N63.5)\");\n formPanel.add(table4Title, cc.xyw(1, 1, 5, CellConstraints.FILL, CellConstraints.FILL));\n final JLabel label1 = new JLabel();\n label1.setText(\"触探击数参数一\");\n formPanel.add(label1, cc.xy(1, 3));\n final JLabel label2 = new JLabel();\n label2.setText(\"触探击数参数二\");\n formPanel.add(label2, cc.xy(3, 3, CellConstraints.LEFT, CellConstraints.DEFAULT));\n final JLabel label3 = new JLabel();\n label3.setText(\"触探击数参数三\");\n formPanel.add(label3, cc.xy(5, 3));\n table4Field2 = new JFormattedTextField();\n table4Field2.setText(\"\");\n formPanel.add(table4Field2, cc.xy(4, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\n table4Field1 = new JFormattedTextField();\n table4Field1.setText(\"\");\n formPanel.add(table4Field1, cc.xy(2, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\n table4Field3 = new JFormattedTextField();\n table4Field3.setText(\"\");\n formPanel.add(table4Field3, cc.xy(7, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\n table5Title = new JLabel();\n table5Title.setBackground(new Color(-6047008));\n table5Title.setText(\"碎石土的密实度与触探击数的关系(N120)\");\n formPanel.add(table5Title, cc.xyw(1, 7, 5));\n final JLabel label4 = new JLabel();\n label4.setText(\"触探击数参数一\");\n formPanel.add(label4, cc.xy(1, 9));\n final JLabel label5 = new JLabel();\n label5.setText(\"触探击数参数二\");\n formPanel.add(label5, cc.xy(3, 9, CellConstraints.LEFT, CellConstraints.DEFAULT));\n final JLabel label6 = new JLabel();\n label6.setText(\"触探击数参数三\");\n formPanel.add(label6, cc.xy(5, 9));\n table5Field2 = new JFormattedTextField();\n table5Field2.setText(\"\");\n formPanel.add(table5Field2, cc.xy(4, 9, CellConstraints.FILL, CellConstraints.DEFAULT));\n table5Field1 = new JFormattedTextField();\n table5Field1.setText(\"\");\n formPanel.add(table5Field1, cc.xy(2, 9, CellConstraints.FILL, CellConstraints.DEFAULT));\n table5Field3 = new JFormattedTextField();\n formPanel.add(table5Field3, cc.xy(7, 9, CellConstraints.FILL, CellConstraints.DEFAULT));\n table6Title = new JLabel();\n table6Title.setBackground(new Color(-6047008));\n table6Title.setText(\"砂土的密实度与触探击数的关系(N63.6)\");\n formPanel.add(table6Title, cc.xyw(1, 13, 5));\n final JLabel label7 = new JLabel();\n label7.setText(\"触探击数参数一\");\n formPanel.add(label7, cc.xy(1, 15));\n final JLabel label8 = new JLabel();\n label8.setText(\"触探击数参数二\");\n formPanel.add(label8, cc.xy(3, 15, CellConstraints.LEFT, CellConstraints.DEFAULT));\n final JLabel label9 = new JLabel();\n label9.setText(\"触探击数参数三\");\n formPanel.add(label9, cc.xy(5, 15));\n table6Field2 = new JFormattedTextField();\n formPanel.add(table6Field2, cc.xy(4, 15, CellConstraints.FILL, CellConstraints.DEFAULT));\n table6Field1 = new JFormattedTextField();\n table6Field1.setText(\"\");\n formPanel.add(table6Field1, cc.xy(2, 15, CellConstraints.FILL, CellConstraints.DEFAULT));\n table6Field3 = new JFormattedTextField();\n table6Field3.setText(\"\");\n formPanel.add(table6Field3, cc.xy(7, 15, CellConstraints.FILL, CellConstraints.DEFAULT));\n table4Area = new JTextPane();\n table4Area.setBackground(new Color(-1));\n table4Area.setEditable(false);\n table4Area.setText(\"\");\n formPanel.add(table4Area, cc.xyw(1, 5, 13, CellConstraints.FILL, CellConstraints.FILL));\n final JLabel label10 = new JLabel();\n label10.setText(\"触探击数参数四\");\n formPanel.add(label10, cc.xy(9, 9));\n table5Field4 = new JFormattedTextField();\n formPanel.add(table5Field4, cc.xy(11, 9, CellConstraints.FILL, CellConstraints.DEFAULT));\n table5Area = new JTextPane();\n table5Area.setBackground(new Color(-1));\n table5Area.setEditable(false);\n table5Area.setText(\"\");\n formPanel.add(table5Area, cc.xyw(1, 11, 13, CellConstraints.FILL, CellConstraints.FILL));\n table6Area = new JTextPane();\n table6Area.setBackground(new Color(-1));\n table6Area.setEditable(false);\n table6Area.setText(\"\");\n formPanel.add(table6Area, cc.xyw(1, 17, 13, CellConstraints.FILL, CellConstraints.FILL));\n table7Title = new JLabel();\n table7Title.setBackground(new Color(-6047008));\n table7Title.setText(\"砂土的密实度与触探击数的关系(N63.7)\");\n panel1.add(table7Title, cc.xy(1, 3, CellConstraints.LEFT, CellConstraints.DEFAULT));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FormLayout(\"left:56dlu:noGrow,left:31dlu:noGrow,left:89px:noGrow,left:36dlu:noGrow,fill:84px:noGrow,left:4dlu:noGrow,fill:44dlu:noGrow,left:4dlu:noGrow,fill:d:grow\", \"center:max(d;4px):noGrow,top:4dlu:noGrow,fill:50px:noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:50px:noGrow\"));\n panel2.setBackground(new Color(-6047008));\n panel1.add(panel2, cc.xy(1, 5));\n final JLabel label11 = new JLabel();\n label11.setText(\"触探击数参数一\");\n panel2.add(label11, cc.xy(1, 1));\n final JLabel label12 = new JLabel();\n label12.setText(\"触探击数参数二\");\n panel2.add(label12, cc.xy(3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));\n final JLabel label13 = new JLabel();\n label13.setText(\"触探击数参数三\");\n panel2.add(label13, cc.xy(5, 1));\n table7Field2 = new JFormattedTextField();\n table7Field2.setText(\"\");\n panel2.add(table7Field2, cc.xy(4, 1, CellConstraints.FILL, CellConstraints.DEFAULT));\n table7Field1 = new JFormattedTextField();\n panel2.add(table7Field1, cc.xy(2, 1, CellConstraints.FILL, CellConstraints.DEFAULT));\n table7Field3 = new JFormattedTextField();\n table7Field3.setText(\"\");\n panel2.add(table7Field3, cc.xy(7, 1, CellConstraints.FILL, CellConstraints.DEFAULT));\n table8Title = new JLabel();\n table8Title.setBackground(new Color(-6047008));\n table8Title.setText(\"砂土的密实度与触探击数的关系(N63.8)\");\n panel2.add(table8Title, cc.xyw(1, 5, 5));\n final JLabel label14 = new JLabel();\n label14.setText(\"触探击数参数一\");\n panel2.add(label14, cc.xy(1, 7));\n final JLabel label15 = new JLabel();\n label15.setText(\"触探击数参数二\");\n panel2.add(label15, cc.xy(3, 7, CellConstraints.LEFT, CellConstraints.DEFAULT));\n final JLabel label16 = new JLabel();\n label16.setText(\"触探击数参数三\");\n panel2.add(label16, cc.xy(5, 7));\n table8Field2 = new JFormattedTextField();\n table8Field2.setText(\"\");\n panel2.add(table8Field2, cc.xy(4, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\n table8Field1 = new JFormattedTextField();\n table8Field1.setText(\"\");\n panel2.add(table8Field1, cc.xy(2, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\n table8Field3 = new JFormattedTextField();\n panel2.add(table8Field3, cc.xy(7, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\n table7Area = new JTextPane();\n table7Area.setBackground(new Color(-1));\n table7Area.setEditable(false);\n table7Area.setText(\"\");\n panel2.add(table7Area, cc.xyw(1, 3, 9, CellConstraints.FILL, CellConstraints.FILL));\n table8Area = new JTextPane();\n table8Area.setBackground(new Color(-1));\n table8Area.setEditable(false);\n table8Area.setText(\"\");\n panel2.add(table8Area, cc.xyw(1, 9, 9, CellConstraints.FILL, CellConstraints.FILL));\n }", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, 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 panel1.add(panel2, new GridConstraints(0, 1, 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 buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, 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 content = new JPanel();\n content.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(content, 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, null, null, 0, false));\n tabbedPane1 = new JTabbedPane();\n content.add(tabbedPane1, 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 Gesture = new JPanel();\n Gesture.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n tabbedPane1.addTab(\"Gesture\", Gesture);\n final JLabel label1 = new JLabel();\n label1.setIcon(new ImageIcon(getClass().getResource(\"/reference/by_gesture.png\")));\n label1.setText(\"\");\n Gesture.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 }", "public void guiSetup(Container pane)\n {\n \t/*\n \t * How it's organized:\n \t * 3 separate columns\n \t * Components in column one are small\n \t * Main grid component in column 2 takes up multiple spaces\n \t * Found word components in column 3 takes up multiple spaces as well\n \t */\n\t\tpane.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.weighty = 0.5;\n\t\t\n\t\t/*\n\t\t * First column GUI components\n\t\t */\n\t\tc.weightx = 0.25;\n\t\tc.gridx = 0;\n\t\t\n\t\tFont f = new Font( \"SansSerif\", Font.ITALIC, 34 );\n\t\ttitle = new JLabel( \"Boggle\" );\n\t\ttitle.setFont( f );\n\t\tc.gridy = 0;\n\t\tpane.add(title, c);\n\t\t\n\t\tscoreLabel = new JLabel( \"Score: 0\" );\n\t\tf = new Font( \"Serif\", Font.PLAIN, 24 );\n\t\tscoreLabel.setFont( f );\n\t\tc.gridy = 1;\n\t\tpane.add(scoreLabel, c);\n\t\n\t\ttimerLabel = new JLabel( \"Timer: 3:00\" );\n\t\ttimerLabel.setFont( f );\n\t\tc.gridy = 2;\n\t\tpane.add(timerLabel, c);\n\t\n\t\tmessagesLabel = new JLabel( \"Enter word: \" );\n\t\tf = new Font( \"Serif\", Font.PLAIN, 20 );\n\t\tmessagesLabel.setFont( f );\n\t\tf = new Font( \"Serif\", Font.PLAIN, 24 );\n\t\tc.gridy = 3;\n\t\tc.fill = GridBagConstraints.VERTICAL;\n\t\tpane.add(messagesLabel, c);\n\t\tc.fill = GridBagConstraints.NONE;\n\t\t\n\t\trestart = new JButton( \"Restart\" );\n\t\trestart.addActionListener( this );\n\t\t\n\t\tc.gridy = 4;\n\t\tpane.add(restart, c);\n\t\t\n\t\tpause = new JButton( \"Pause\" );\n\t\tpause.addActionListener( this );\n\t\t\n\t\tc.gridy = 5;\n\t\tpane.add(pause, c);\n\t\t\n\t\texit = new JButton( \"Exit\" );\n\t\texit.addActionListener( this );\n\t\t\n\t\tc.gridy = 6;\n\t\tpane.add(exit, c);\n\t\t\n\t\t/*\n\t\t * Second column\n\t\t */\n\t\tc.gridx = 1;\n\t\tc.weightx = 0.75;\n\t\t\n\t\tguiGrid = new JPanel( new GridLayout( BOARD_SIZE, BOARD_SIZE ) );\n\t\tgridButtons = new JButton[BOARD_SIZE][BOARD_SIZE];\n\t\tg = new Grid( BOARD_SIZE );\n\t\t\n\t\tfor( int i = 0; i < BOARD_SIZE; i++ )\n\t\t{\n\t\t\tfor( int j = 0; j < BOARD_SIZE; j++ )\n\t\t\t{\n\t\t\t\tgridButtons[i][j] = new JButton( Character.toString( g.charAt( i, j ) ) );\n\t\t\t\tgridButtons[i][j].addActionListener( this );\n\t\t\t\tgridButtons[i][j].setFont( f );\n\t\t\t\tguiGrid.add( gridButtons[i][j] );\n\t\t\t}\n\t\t}\n\t\t\n\t\tc.gridx = 1;\n\t\tc.gridheight = 3;\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\tc.gridy = 1;\n\t\tpane.add(guiGrid, c);\n\t\tc.gridheight = 1;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\t\n\t\tnewWord = new JButton( \"New word\" );\n\t\tnewWord.addActionListener( this );\n\t\tc.gridy = 5;\n\t\tpane.add( newWord, c );\n\t\t\n\t\tguessWordArea = new JTextArea( 1, 1 );\n\t\tguessWordArea.setEditable( false );\n\t\tguessWordArea.setBorder(BorderFactory.createEtchedBorder());\n\t\t\n\t\tc.gridy = 6;\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\tpane.add(guessWordArea, c);\n\t\tc.fill = GridBagConstraints.NONE;\n\t\t\n\t\tsubmitWord = new JButton( \"Submit word\" );\n\t\tsubmitWord.addActionListener( this );\n\t\t\n\t\tc.gridx = 1;\n\t\tc.gridy = 7;\n\t\tpane.add( submitWord, c );\n\t\t\n\t\t/*\n\t\t * Third column\n\t\t */\n\t\tc.gridx = 2;\n\t\tc.weightx = 0.25;\n\t\t\n\t\tJLabel foundTitle = new JLabel( \"Found words:\" );\n\t\tfoundTitle.setFont( f );\n\t\tc.gridy = 1;\n\t\tpane.add( foundTitle, c);\n\t\t\n\t\tfoundWordsArea = new JTextArea( 10, 16 );\n\t\tfoundWordsArea.setEditable( false );\n\t\tc.gridx = 2;\n\t\tc.gridy = 2;\n\t\tc.gridheight = 2;\n\t\tInsets in = new Insets( 25, 25, 25, 25 );\n\t\tfoundWordsArea.setMargin( in );\n\t\tfoundWordsArea.setBorder(BorderFactory.createEtchedBorder()); \n\t\tpane.add( foundWordsArea, c);\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.setBackground(new Color(-3100784));\n mainPanel.setPreferredSize(new Dimension(500, 600));\n contentTablePanel = new JPanel();\n contentTablePanel.setLayout(new GridBagLayout());\n contentTablePanel.setBackground(new Color(-3100784));\n mainPanel.add(contentTablePanel, BorderLayout.NORTH);\n contentTablePanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.black), null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));\n final JLabel label1 = new JLabel();\n Font label1Font = this.$$$getFont$$$(\"Arial Rounded MT Bold\", Font.BOLD, 14, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n label1.setForeground(new Color(-14342875));\n label1.setHorizontalAlignment(0);\n label1.setHorizontalTextPosition(0);\n label1.setIconTextGap(0);\n label1.setPreferredSize(new Dimension(150, 25));\n label1.setText(\"Poste\");\n GridBagConstraints gbc;\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n contentTablePanel.add(label1, gbc);\n final JLabel label2 = new JLabel();\n Font label2Font = this.$$$getFont$$$(\"Arial Rounded MT Bold\", Font.BOLD, 14, label2.getFont());\n if (label2Font != null) label2.setFont(label2Font);\n label2.setForeground(new Color(-14342875));\n label2.setHorizontalAlignment(0);\n label2.setHorizontalTextPosition(0);\n label2.setIconTextGap(0);\n label2.setPreferredSize(new Dimension(150, 25));\n label2.setText(\"Mode de Paiement\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n contentTablePanel.add(label2, gbc);\n final JLabel label3 = new JLabel();\n Font label3Font = this.$$$getFont$$$(\"Arial Rounded MT Bold\", Font.BOLD, 14, label3.getFont());\n if (label3Font != null) label3.setFont(label3Font);\n label3.setForeground(new Color(-14342875));\n label3.setHorizontalAlignment(0);\n label3.setHorizontalTextPosition(0);\n label3.setIconTextGap(0);\n label3.setPreferredSize(new Dimension(150, 25));\n label3.setText(\"Valeur\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n contentTablePanel.add(label3, gbc);\n final JLabel label4 = new JLabel();\n label4.setForeground(new Color(-14342875));\n label4.setHorizontalAlignment(0);\n label4.setPreferredSize(new Dimension(150, 18));\n label4.setText(\"{{typeTransaction}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label4, gbc);\n final JLabel label5 = new JLabel();\n label5.setForeground(new Color(-14342875));\n label5.setHorizontalAlignment(0);\n label5.setPreferredSize(new Dimension(150, 18));\n label5.setText(\"{{valueTransaction}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label5, gbc);\n final JLabel label6 = new JLabel();\n label6.setForeground(new Color(-14342875));\n label6.setHorizontalAlignment(0);\n label6.setPreferredSize(new Dimension(150, 18));\n label6.setText(\"{{typeTransaction}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label6, gbc);\n final JLabel label7 = new JLabel();\n label7.setForeground(new Color(-14342875));\n label7.setHorizontalAlignment(0);\n label7.setPreferredSize(new Dimension(150, 18));\n label7.setText(\"{{themeTransaction4}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label7, gbc);\n final JLabel label8 = new JLabel();\n label8.setForeground(new Color(-14342875));\n label8.setHorizontalAlignment(0);\n label8.setPreferredSize(new Dimension(150, 18));\n label8.setText(\"{{themeTransaction5}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 5;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label8, gbc);\n final JLabel label9 = new JLabel();\n label9.setForeground(new Color(-14342875));\n label9.setHorizontalAlignment(0);\n label9.setPreferredSize(new Dimension(150, 18));\n label9.setText(\"{{valueTransaction}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 6;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label9, gbc);\n final JLabel label10 = new JLabel();\n label10.setForeground(new Color(-14342875));\n label10.setHorizontalAlignment(0);\n label10.setPreferredSize(new Dimension(150, 18));\n label10.setText(\"{{valueTransaction}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 5;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label10, gbc);\n final JLabel label11 = new JLabel();\n label11.setForeground(new Color(-14342875));\n label11.setHorizontalAlignment(0);\n label11.setPreferredSize(new Dimension(150, 18));\n label11.setText(\"{{valueTransaction}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label11, gbc);\n final JLabel label12 = new JLabel();\n label12.setForeground(new Color(-14342875));\n label12.setHorizontalAlignment(0);\n label12.setPreferredSize(new Dimension(150, 18));\n label12.setText(\"{{valueTransaction}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label12, gbc);\n final JLabel label13 = new JLabel();\n label13.setForeground(new Color(-14342875));\n label13.setHorizontalAlignment(0);\n label13.setPreferredSize(new Dimension(150, 18));\n label13.setText(\"{{typeTransaction}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label13, gbc);\n final JLabel label14 = new JLabel();\n label14.setForeground(new Color(-14342875));\n label14.setHorizontalAlignment(0);\n label14.setPreferredSize(new Dimension(150, 18));\n label14.setText(\"{{typeTransaction}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label14, gbc);\n final JLabel label15 = new JLabel();\n label15.setForeground(new Color(-14342875));\n label15.setHorizontalAlignment(0);\n label15.setPreferredSize(new Dimension(150, 18));\n label15.setText(\"{{typeTransaction}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 6;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label15, gbc);\n final JLabel label16 = new JLabel();\n label16.setForeground(new Color(-14342875));\n label16.setHorizontalAlignment(0);\n label16.setPreferredSize(new Dimension(150, 18));\n label16.setText(\"{{themeTransaction1}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label16, gbc);\n final JLabel label17 = new JLabel();\n label17.setForeground(new Color(-14342875));\n label17.setHorizontalAlignment(0);\n label17.setPreferredSize(new Dimension(150, 18));\n label17.setText(\"{{themeTransaction2}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label17, gbc);\n final JLabel label18 = new JLabel();\n label18.setForeground(new Color(-14342875));\n label18.setHorizontalAlignment(0);\n label18.setPreferredSize(new Dimension(150, 18));\n label18.setText(\"{{themeTransaction3}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label18, gbc);\n final JLabel label19 = new JLabel();\n label19.setForeground(new Color(-14342875));\n label19.setHorizontalAlignment(0);\n label19.setPreferredSize(new Dimension(150, 18));\n label19.setText(\"{{themeTransaction6}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 6;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label19, gbc);\n final JLabel label20 = new JLabel();\n label20.setForeground(new Color(-14342875));\n label20.setHorizontalAlignment(0);\n label20.setPreferredSize(new Dimension(150, 18));\n label20.setText(\"{{typeTransaction}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label20, gbc);\n final JLabel label21 = new JLabel();\n label21.setForeground(new Color(-14342875));\n label21.setHorizontalAlignment(0);\n label21.setPreferredSize(new Dimension(150, 18));\n label21.setText(\"{{valueTransaction}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 15, 0);\n contentTablePanel.add(label21, gbc);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridBagLayout());\n panel1.setBackground(new Color(-3100784));\n mainPanel.add(panel1, BorderLayout.EAST);\n final JLabel label22 = new JLabel();\n label22.setEnabled(true);\n label22.setForeground(new Color(-14342875));\n label22.setText(\"Valeur :\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.WEST;\n panel1.add(label22, gbc);\n final JLabel label23 = new JLabel();\n label23.setForeground(new Color(-14342875));\n label23.setText(\"{{currentValue}}\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 30, 0, 30);\n panel1.add(label23, gbc);\n final JLabel label24 = new JLabel();\n label24.setForeground(new Color(-14342875));\n label24.setText(\"Euros\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.WEST;\n panel1.add(label24, gbc);\n validateBtn = new JButton();\n validateBtn.setBackground(new Color(-5468041));\n validateBtn.setForeground(new Color(-14342875));\n validateBtn.setPreferredSize(new Dimension(100, 30));\n validateBtn.setText(\"OK\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.insets = new Insets(20, 0, 0, 50);\n panel1.add(validateBtn, gbc);\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel2.setBackground(new Color(-3100784));\n mainPanel.add(panel2, BorderLayout.SOUTH);\n backgroundImageLabel = new JLabel();\n backgroundImageLabel.setBackground(new Color(-3100784));\n backgroundImageLabel.setIcon(new ImageIcon(getClass().getResource(\"/img/accountingRecordPrint.png\")));\n backgroundImageLabel.setText(\"\");\n panel2.add(backgroundImageLabel, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, new Dimension(100, 20), new Dimension(100, 20), new Dimension(100, 20), 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, 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 panel1.add(panel2, new GridConstraints(0, 1, 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 buttonClose = new JButton();\n buttonClose.setText(\"Close\");\n panel2.add(buttonClose, 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 final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, 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 messageLabel = new JLabel();\n messageLabel.setText(\"\");\n panel3.add(messageLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n panel2 = new JPanel();\n panel2.setLayout(new GridBagLayout());\n titreTextField = new JTextField();\n titreTextField.setText(\"Titre\");\n GridBagConstraints gbc;\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.gridwidth = 2;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel2.add(titreTextField, gbc);\n consoleTextField = new JTextField();\n consoleTextField.setText(\"Console\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel2.add(consoleTextField, gbc);\n nbJoueurTextField = new JTextField();\n nbJoueurTextField.setText(\"NbJoueur\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 3;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel2.add(nbJoueurTextField, gbc);\n checkBox1 = new JCheckBox();\n checkBox1.setText(\"CheckBox\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 4;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n panel2.add(checkBox1, gbc);\n langueTextField1 = new JTextField();\n langueTextField1.setText(\"Langue\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel2.add(langueTextField1, gbc);\n genreTextField = new JTextField();\n genreTextField.setText(\"Genre\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel2.add(genreTextField, gbc);\n pegiTextField = new JTextField();\n pegiTextField.setText(\"Pegi\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel2.add(pegiTextField, gbc);\n dateDeSortieTextField = new JTextField();\n dateDeSortieTextField.setText(\"Date de sortie\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel2.add(dateDeSortieTextField, gbc);\n origineTextField = new JTextField();\n origineTextField.setText(\"Origine\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel2.add(origineTextField, gbc);\n commentaireTextArea = new JTextArea();\n commentaireTextArea.setText(\"Commentaire\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 5;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.BOTH;\n panel2.add(commentaireTextArea, gbc);\n saveButton = new JButton();\n saveButton.setText(\"Valider\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel2.add(saveButton, gbc);\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 }", "public void constructComponents() {\n // taking care of window setup //\n /////////////////////////////////\n\n\tsetLayout(new GridBagLayout());\n\tsetTitle(\"HMusicController\");\n\n\tsetResizable(false);\n\n\tsetMinimumSize( new Dimension( WIDTH, HEIGHT ) );\n\n\tconstraints = new GridBagConstraints();\n\n\t\n\t////////////////////////////////\n // adjustment for stellacaeli //\n ////////////////////////////////\n\n\tcaeliLabel = new Label( \"star density\" );\n\tsetConstraints( 0, 0, 1, 1 );\n\tadd( caeliLabel, constraints );\n\n\tcaeliScroll = new Scrollbar( Scrollbar.VERTICAL, 9, 1, 0, 10 );\n\tcaeliScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tcaeliScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tcaeliScroll.addAdjustmentListener( this );\n\tsetConstraints( 0, 1, 1, 1 );\n\tadd( caeliScroll, constraints );\n\n\tcaeliValueLabel = new Label( \"\"+((caeliScroll.getMaximum() - caeliScroll.getValue())/100.0) );\n\tsetConstraints( 0, 2, 1, 1 );\n\tadd( caeliValueLabel, constraints );\n\n\t\n\t/////////////////////////////////\n // adjustment for planet count //\n /////////////////////////////////\n\n\tplanetLabel = new Label( \"planet count\" );\n\tsetConstraints( 1, 0, 1, 1 );\n\tadd( planetLabel, constraints );\n\n\tplanetScroll = new Scrollbar( Scrollbar.VERTICAL, 9, 1, 0, 10 );\n\tplanetScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tplanetScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tplanetScroll.addAdjustmentListener( this );\n\tsetConstraints( 1, 1, 1, 1 );\n\tadd( planetScroll, constraints );\n\n\tplanetValueLabel = new Label( \"\"+(planetScroll.getMaximum() - planetScroll.getValue()));\n\tsetConstraints( 1, 2, 1, 1 );\n\tadd( planetValueLabel, constraints );\n\n\n\t////////////////////////////////////////\n // adjustment for triangle thresholds //\n ////////////////////////////////////////\n\n\ttriSizeLabel = new Label( \"coarse T size\" );\n\tsetConstraints( 2, 0, 1, 1 );\n\tadd( triSizeLabel, constraints );\n\n\ttriSizeScroll = new Scrollbar( Scrollbar.VERTICAL, 99000, 100, 100, 100000 );\n\ttriSizeScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriSizeScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriSizeScroll.addAdjustmentListener( this );\n\tsetConstraints( 2, 1, 1, 1 );\n\tadd( triSizeScroll, constraints );\n\n\ttriSizeValueLabel = new Label( \"\"+(triSizeScroll.getMaximum() - triSizeScroll.getValue()));\n\tsetConstraints( 2, 2, 1, 1 );\n\tadd( triSizeValueLabel, constraints );\n\n\t// ---------------------------------------- //\n\n\ttriFineSizeLabel = new Label( \"fine T size\" );\n\tsetConstraints( 3, 0, 1, 1 );\n\tadd( triFineSizeLabel, constraints );\n\n\ttriFineSizeScroll = new Scrollbar( Scrollbar.VERTICAL, 5000, 100, 0, 10000 );\n\ttriFineSizeScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriFineSizeScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriFineSizeScroll.addAdjustmentListener( this );\n\tsetConstraints( 3, 1, 1, 1 );\n\tadd( triFineSizeScroll, constraints );\n\n\ttriFineSizeValueLabel = new Label( \"\"+(triFineSizeScroll.getMaximum() - triFineSizeScroll.getValue()));\n\tsetConstraints( 3, 2, 1, 1 );\n\tadd( triFineSizeValueLabel, constraints );\n\n\n\t////////////////////////////////////////\n // adjustment for triangle thresholds //\n ////////////////////////////////////////\n\n\tattDistLabel = new Label( \"att. dist.\" );\n\tsetConstraints( 4, 0, 1, 1 );\n\tadd( attDistLabel, constraints );\n\n\tattDistanceScroll = new Scrollbar( Scrollbar.VERTICAL, 3200, 100, 100, 4000 );\n\tattDistanceScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattDistanceScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattDistanceScroll.addAdjustmentListener( this );\n\tsetConstraints( 4, 1, 1, 1 );\n\tadd( attDistanceScroll, constraints );\n\n\tattDistValueLabel = new Label( \"\"+(attDistanceScroll.getMaximum() - attDistanceScroll.getValue()));\n\tsetConstraints( 4, 2, 1, 1 );\n\tadd( attDistValueLabel, constraints );\n\n\t// ---------------------------------------- //\n\n\tattStrnLabel = new Label( \"att. strn.\" );\n\tsetConstraints( 5, 0, 1, 1 );\n\tadd( attStrnLabel, constraints );\n\n\tattStrengthScroll = new Scrollbar( Scrollbar.VERTICAL, 90000, 1000, 1000, 100000 );\n\tattStrengthScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattStrengthScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattStrengthScroll.addAdjustmentListener( this );\n\tsetConstraints( 5, 1, 1, 1 );\n\tadd( attStrengthScroll, constraints );\n\n\tattStrnValueLabel = new Label( \"\"+(attStrengthScroll.getMaximum() - attStrengthScroll.getValue()));\n\tsetConstraints( 5, 2, 1, 1 );\n\tadd( attStrnValueLabel, constraints );\n\n\t// ---------------------------------------- //\n\n\t// Add MIDI choice\n\tLabel midiLabel = new Label(\"Select MIDI device\");\n\tsetConstraints( 0, 3, 2, 1 );\n\tadd( midiLabel, constraints );\n\tsetConstraints( 2, 3, 3, 1 );\n\tadd( midiDevices, constraints );\n\n\tpack();\n }", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(10, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setBackground(new Color(-5461075));\n buttonBack = new JButton();\n buttonBack.setText(\"Cancel\");\n panel1.add(buttonBack, new GridConstraints(8, 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 labelTitle = new JLabel();\n Font labelTitleFont = this.$$$getFont$$$(\"Droid Sans Mono\", Font.BOLD, 18, labelTitle.getFont());\n if (labelTitleFont != null) labelTitle.setFont(labelTitleFont);\n labelTitle.setForeground(new Color(-12828863));\n labelTitle.setText(\"Rename Billboard\");\n panel1.add(labelTitle, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCreate = new JButton();\n buttonCreate.setText(\"Rename\");\n panel1.add(buttonCreate, new GridConstraints(6, 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 fieldName = new JTextField();\n panel1.add(fieldName, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n labelName = new JLabel();\n labelName.setForeground(new Color(-11578538));\n labelName.setHorizontalAlignment(0);\n labelName.setHorizontalTextPosition(0);\n labelName.setText(\"New Billboard Name\");\n panel1.add(labelName, new GridConstraints(3, 1, 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 panel1.add(spacer1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(85, 30), null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n panel1.add(spacer2, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(18, 18), null, null, 0, false));\n final Spacer spacer3 = new Spacer();\n panel1.add(spacer3, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(10, 10), null, null, 0, false));\n final Spacer spacer4 = new Spacer();\n panel1.add(spacer4, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(15, 15), null, null, 0, false));\n final Spacer spacer5 = new Spacer();\n panel1.add(spacer5, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(15, 15), null, null, 0, false));\n final Spacer spacer6 = new Spacer();\n panel1.add(spacer6, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(300, 0), null, null, 0, false));\n final Spacer spacer7 = new Spacer();\n panel1.add(spacer7, new GridConstraints(9, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 10), null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));\n CellConstraints cc = new CellConstraints();\n panel1.add(panel2, cc.xy(1, 3));\n saveButton = new JButton();\n this.$$$loadButtonText$$$(saveButton, ResourceBundle.getBundle(\"bundles/button\").getString(\"Save\"));\n panel2.add(saveButton);\n tabbedPane = new JTabbedPane();\n panel1.add(tabbedPane, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\n final JScrollPane scrollPane1 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"countryBorder\"), scrollPane1);\n countryBorderTable = new JTable();\n scrollPane1.setViewportView(countryBorderTable);\n final JScrollPane scrollPane2 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"provinceBorder_title\"), scrollPane2);\n provinceBorderTable = new JTable();\n provinceBorderTable.setToolTipText(\"\");\n scrollPane2.setViewportView(provinceBorderTable);\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new GridConstraints(0, 1, 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 buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, 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 buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel2.add(buttonCancel, 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 JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, 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, null, null, 0, false));\n pan1 = new JPanel();\n pan1.setLayout(new GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(pan1, 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, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Название номера\");\n pan1.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 final JLabel label2 = new JLabel();\n label2.setText(\"Дата регистрации\");\n pan1.add(label2, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Дата истечения\");\n pan1.add(label3, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_VERTICAL, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n pan1.add(spacer2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(0, 25), new Dimension(0, 25), new Dimension(0, 25), 0, false));\n number = new JTextField();\n pan1.add(number, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n pan1.add(creationDatePanel, new GridConstraints(1, 2, 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 pan1.add(expirationDatePanel, new GridConstraints(2, 2, 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 }", "protected void makeContent() {\n\n \t// panel for main control and setup\n\tGridBagLayout setGridBag = new GridBagLayout();\n\tmainPanel.setLayout(setGridBag);\n\n\tInsets sepInsets = new Insets(5, 0, 5, 0);\n\tInsets nullInsets = new Insets(0, 0, 0, 0);\n\tInsets defaultInsets = new Insets(5,5,5,5);\n\t\n\tint sumy = 0;\n\tGridBagConstraints gbc = new GridBagConstraints();\n\tgbc.fill = GridBagConstraints.NONE;\n\tgbc.weightx = 0.; gbc.weighty = 0.;\n\tgbc.gridx = 0; gbc.gridy = sumy++;\n\tgbc.insets = new Insets(10, 5, 10,5);\n\tgbc.gridwidth = 3;\n\tsetGridBag.setConstraints(sequenceLabel, gbc);\n\tmainPanel.add(sequenceLabel);\n\n\tgbc.fill = GridBagConstraints.HORIZONTAL;\n\tgbc.insets = sepInsets;\n\tgbc.weightx = 1.;\n\tgbc.gridx = 0; gbc.gridy = sumy++;\n\tJSeparator sep1 = new JSeparator(SwingConstants.HORIZONTAL);\n\tsetGridBag.setConstraints(sep1, gbc);\n\tmainPanel.add(sep1);\n\tsep1.setVisible(true);\n\t\n\tJLabel typeLabel = new JLabel(\"Device Type\");\n\tgbc.fill = GridBagConstraints.NONE;\n\tgbc.weightx = 1.; gbc.weighty = 0.;\n\tgbc.gridx = 0; gbc.gridy = sumy;\n\tgbc.insets = defaultInsets;\n\tgbc.gridwidth = 1;\n\tsetGridBag.setConstraints(typeLabel, gbc);\n\tmainPanel.add(typeLabel);\n\t\n\tJLabel pvLabel = new JLabel(\"PV Choice\");\n\tgbc.fill = GridBagConstraints.NONE;\n\tgbc.weightx = 1.; gbc.weighty = 0.;\n\tgbc.gridx = 1; gbc.gridy = sumy;\n\tgbc.insets = defaultInsets;\n\tgbc.gridwidth = 1;\n\tsetGridBag.setConstraints(pvLabel, gbc);\n\tmainPanel.add(pvLabel);\n\t\n\tJLabel actionLabel = new JLabel(\"Action Choice\");\n\tgbc.fill = GridBagConstraints.NONE;\n\tgbc.weightx = 1.; gbc.weighty = 0.;\n\tgbc.gridx = 2; gbc.gridy = sumy++;\n\tgbc.insets = defaultInsets;\n\tgbc.gridwidth = 1;\n\tsetGridBag.setConstraints(actionLabel, gbc);\n\tmainPanel.add(actionLabel);\t\n\t\n\ttypeList.setListData(nullDevices);\n\ttypeList.setVisibleRowCount(6);\n\ttypeList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\t\n\tJScrollPane typeScrollPane = new JScrollPane(typeList);\n\tgbc.fill = GridBagConstraints.NONE;\n\tgbc.weightx = 1.; gbc.weighty = 0.;\n\tgbc.gridx = 0; gbc.gridy = sumy;\n\tgbc.insets = defaultInsets;\n\tgbc.gridwidth = 1;\n\tsetGridBag.setConstraints(typeScrollPane, gbc);\n\tmainPanel.add(typeScrollPane);\n\ttypeList.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent evt) {\n theDoc.typeSelected();\n }\n\t});\t\n\t\n\tsignalList.setListData(nullSignals);\n\tsignalList.setVisibleRowCount(6);\n\tsignalList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\t\t\n\tJScrollPane signalScrollPane = new JScrollPane(signalList);\n\tgbc.fill = GridBagConstraints.NONE;\n\tgbc.weightx = 1.; gbc.weighty = 0.;\n\tgbc.gridx = 1; gbc.gridy = sumy;\n\tgbc.insets = defaultInsets;\n\tgbc.gridwidth = 1;\n\tsetGridBag.setConstraints(signalScrollPane, gbc);\n\tmainPanel.add(signalScrollPane);\n\tsignalList.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent evt) {\n theDoc.signalSelected();\n }\n\t});\t\n\t\n\tgbc.fill = GridBagConstraints.NONE;\n\tgbc.weightx = 1.; gbc.weighty = 0.;\n\tgbc.gridx = 2; gbc.gridy = sumy++;\n\tgbc.insets = defaultInsets;\n\tgbc.gridwidth = 1;\n\tsetGridBag.setConstraints(actionChoice, gbc);\n\tmainPanel.add(actionChoice);\n\n\tgbc.fill = GridBagConstraints.HORIZONTAL;\n\tgbc.insets = sepInsets;\n\tgbc.gridwidth = 3;\tgbc.weightx = 1.;\n\tgbc.gridx = 0; gbc.gridy = sumy++;\n\tJSeparator sep2 = new JSeparator(SwingConstants.HORIZONTAL);\n\tsetGridBag.setConstraints(sep2, gbc);\n\tmainPanel.add(sep2);\n\tsep2.setVisible(true);\n\t\n\tJLabel setValueLabel = new JLabel(\"Set Value\");\n\tgbc.gridwidth = 1;\n\tgbc.fill = GridBagConstraints.NONE;\n\tgbc.weightx = 1.; gbc.weighty = 0.;\n\tgbc.gridx = 0; gbc.gridy = sumy;\n\tgbc.insets = defaultInsets;\n\tgbc.gridwidth = 1;\n\tsetGridBag.setConstraints(setValueLabel, gbc);\n\tmainPanel.add(setValueLabel);\n\n\tJLabel selectValueLabel = new JLabel(\"Select Value\");\n\tgbc.fill = GridBagConstraints.NONE;\n\tgbc.weightx = 1.; gbc.weighty = 0.;\n\tgbc.gridx = 1; gbc.gridy = sumy++;\n\tgbc.insets = defaultInsets;\n\tgbc.gridwidth = 1;\n\tsetGridBag.setConstraints(selectValueLabel, gbc);\n\tmainPanel.add(selectValueLabel);\n\t\n\tvalueField = new DoubleInputTextField( (new Double(theDoc.newSetValue)).toString());\n\tvalueField.setNumberFormat(new DecimalFormat(\"####.#####\"));\n\tvalueField.setEnabled(false);\n\tvalueField.setPreferredSize(new Dimension(80, 20));\n\tgbc.weightx = 1.; gbc.weighty = 1.;\t\n\tgbc.gridx = 0; gbc.gridy = sumy;\n\tvalueField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n theDoc.newSetValue= valueField.getValue();\n }\n\t});\t\t\n\tsetGridBag.setConstraints(valueField, gbc);\n\tmainPanel.add(valueField);\n\n\tvalueList = new JList<String>(nullValues);\n\tvalueList.setEnabled(false);\n\tgbc.weightx = 1.; gbc.weighty = 1.;\t\n\tgbc.gridx = 1; gbc.gridy = sumy++;\n\tvalueList.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent evt) {\n theDoc.newSetValueString = valueList.getSelectedValue();\n }\n\t});\t\t\n\tsetGridBag.setConstraints(valueList, gbc);\n\tmainPanel.add(valueList);\n\t\n\tJSeparator sep3 = new JSeparator(SwingConstants.HORIZONTAL);\n\tgbc.fill = GridBagConstraints.HORIZONTAL;\n\tgbc.insets = sepInsets;\n\tgbc.gridwidth = 3;\tgbc.weightx = 1.;\n\tgbc.gridx = 0; gbc.gridy = sumy++;\n\tsetGridBag.setConstraints(sep2, gbc);\n\tmainPanel.add(sep3);\n\tsep3.setVisible(true);\n\t\n\tJButton confirmButton = new JButton(\"Confirm\");\n\tconfirmButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n theDoc.confirmIt();\t\t\n }\n\t});\t\t\n\tgbc.fill = GridBagConstraints.NONE;\n\tgbc.weightx = 0.; gbc.weighty = 0.;\n\tgbc.gridx = 0; gbc.gridy = sumy;\n\tgbc.insets = defaultInsets;\n\tgbc.gridwidth = 1;\n\tsetGridBag.setConstraints(confirmButton, gbc);\n\tmainPanel.add(confirmButton);\n\t\n\t\n\ttextArea = new JTextArea(\"\");\n\tJScrollPane textScrollPane = new JScrollPane(textArea);\n\ttextScrollPane.setVerticalScrollBarPolicy(\n JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n textScrollPane.setPreferredSize(new Dimension(100, 150));\n textScrollPane.setMinimumSize(new Dimension(10, 10));\t\n\tgbc.insets = nullInsets;\n\tgbc.fill = GridBagConstraints.BOTH;\n\tgbc.weightx = 1.; gbc.weighty = 0.;\n\tgbc.gridwidth = 2; gbc.gridheight = 2;\t\n\tgbc.gridx = 1; gbc.gridy = sumy++;\n\tsetGridBag.setConstraints(textScrollPane, gbc);\n\tmainPanel.add(textScrollPane);\t\t\n\t// The analysis plot panel:\t\n\t\n\tJButton doItButton = new JButton(\"Set'em\");\n\tdoItButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n theDoc.fireSignals();\t\t\n }\n\t});\t\n\tgbc.fill = GridBagConstraints.NONE;\n\tgbc.weightx = 0.; gbc.weighty = 0.;\n\tgbc.gridx = 0; gbc.gridy = sumy;\n\tgbc.insets = defaultInsets;\n\tgbc.gridwidth = 1;\n\tsetGridBag.setConstraints(doItButton, gbc);\n\tmainPanel.add(doItButton);\t\n\t\n\t// the type selection list:\n\t\n\t//\tcontainer.add(mainTabbedPane,BorderLayout.CENTER);\n\t//container.add(errorText,BorderLayout.SOUTH);\n\n }", "private void initialize() {\r\n\t\tthis.setSize(734, 710);\r\n\t\tfinal GridBagLayout gridBagLayout_1 = new GridBagLayout();\r\n\t\tgridBagLayout_1.rowWeights = new double[]{0.0, 1.0,0};\r\n\t\tgridBagLayout_1.columnWeights = new double[]{1.0};\r\n\t\tgridBagLayout_1.rowHeights = new int[] {0,0, 0}; \r\n\t\tthis.setLayout(gridBagLayout_1);\r\n\r\n\t\teditROIPanel = new JPanel();\r\n\t\tfinal GridBagLayout gridBagLayout_2 = new GridBagLayout();\r\n\t\tgridBagLayout_2.rowHeights = new int[] {0,0,7};\r\n\t\tgridBagLayout_2.columnWidths = new int[] {0,7};\r\n\t\teditROIPanel.setLayout(gridBagLayout_2);\r\n\t\tfinal GridBagConstraints gridBagConstraints_6 = new GridBagConstraints();\r\n\t\tgridBagConstraints_6.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_6.insets = new Insets(2, 2, 5, 2);\r\n\t\tgridBagConstraints_6.weightx = 1.0;\r\n\t\tgridBagConstraints_6.gridy = 0;\r\n\t\tgridBagConstraints_6.gridx = 0;\r\n\t\tadd(editROIPanel, gridBagConstraints_6);\r\n\r\n\t\tfinal JLabel infoLabel = new JLabel();\r\n\t\tinfoLabel.setText(\"Data Info:\");\r\n\t\tfinal GridBagConstraints gridBagConstraints_12 = new GridBagConstraints();\r\n\t\tgridBagConstraints_12.insets = new Insets(0, 0, 0, 4);\r\n\t\tgridBagConstraints_12.anchor = GridBagConstraints.EAST;\r\n\t\tgridBagConstraints_12.gridy = 0;\r\n\t\tgridBagConstraints_12.gridx = 0;\r\n\t\teditROIPanel.add(infoLabel, gridBagConstraints_12);\r\n\r\n\t\ttextLabel = new JLabel();\r\n\t\ttextLabel.setPreferredSize(new Dimension(500, 20));\r\n\t\ttextLabel.setMinimumSize(new Dimension(500, 20));\r\n\t\tfinal GridBagConstraints gridBagConstraints_2 = new GridBagConstraints();\r\n\t\tgridBagConstraints_2.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_2.weightx = 1;\r\n\t\tgridBagConstraints_2.insets = new Insets(0, 2, 0, 0);\r\n\t\tgridBagConstraints_2.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_2.gridy = 0;\r\n\t\tgridBagConstraints_2.gridx = 1;\r\n\t\tgridBagConstraints_2.gridwidth = 2;\r\n\t\teditROIPanel.add(textLabel, gridBagConstraints_2);\r\n\t\ttextLabel.setText(\"No FRAP DataSet loaded.\");\r\n\r\n\t\tautoCropButton = new JButton(new ImageIcon(getClass().getResource(\"/images/autoCrop.gif\")));\r\n\t\tautoCropButton.setName(\"roiAutoCropBtn\");\r\n\t\tautoCropButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\r\n\t\t\t\tfirePropertyChange(FRAP_DATA_AUTOCROP_PROPERTY, null,null);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tclearROIbutton = new JButton(new ImageIcon(getClass().getResource(\"/images/clearROI.gif\")));\r\n\t\tclearROIbutton.setEnabled(false);\r\n\t\tclearROIbutton.setName(\"clearROIBtn\");\r\n\t\tclearROIbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\r\n\t\t\t\tif(roiComboBox.getItemCount() == 0){\r\n\t\t\t\t\tgiveROIRequiredWarning(\"Clear Domain\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tfirePropertyChange(FRAP_DATA_CLEARROI_PROPERTY, ((ROIMultiPaintManager.ComboboxROIName)roiComboBox.getSelectedItem()), null);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tviewZLabel = new JLabel();\r\n\t\tviewZLabel.setText(\"View Z:\");\r\n\t\tfinal GridBagConstraints gridBagConstraints_17 = new GridBagConstraints();\r\n\t\tgridBagConstraints_17.insets = new Insets(0, 0, 0, 4);\r\n\t\tgridBagConstraints_17.anchor = GridBagConstraints.EAST;\r\n\t\tgridBagConstraints_17.gridy = 1;\r\n\t\tgridBagConstraints_17.gridx = 0;\r\n\t\teditROIPanel.add(viewZLabel, gridBagConstraints_17);\r\n\r\n\t\tfinal JPanel panel_1 = new JPanel();\r\n\t\tfinal GridBagLayout gridBagLayout_4 = new GridBagLayout();\r\n\t\tgridBagLayout_4.columnWeights = new double[]{1.0};\r\n\t\tgridBagLayout_4.columnWidths = new int[] {7};\r\n\t\tpanel_1.setLayout(gridBagLayout_4);\r\n\t\tfinal GridBagConstraints gridBagConstraints_18 = new GridBagConstraints();\r\n\t\tgridBagConstraints_18.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_18.insets = new Insets(0, 2, 0, 0);\r\n\t\tgridBagConstraints_18.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_18.weightx = 0;\r\n\t\tgridBagConstraints_18.gridy = 1;\r\n\t\tgridBagConstraints_18.gridx = 1;\r\n\t\teditROIPanel.add(panel_1, gridBagConstraints_18);\r\n\t\tfinal GridBagConstraints gridBagConstraints_19 = new GridBagConstraints();\r\n\t\tgridBagConstraints_19.insets = new Insets(0, 0, 5, 0);\r\n\t\tgridBagConstraints_19.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_19.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_19.weightx = 1;\r\n\t\tgridBagConstraints_19.gridy = 0;\r\n\t\tgridBagConstraints_19.gridx = 0;\r\n\t\tpanel_1.add(getZSlider(), gridBagConstraints_19);\r\n\r\n\t\tviewTLabel = new JLabel();\r\n\t\tviewTLabel.setText(\"View Time:\");\r\n\t\tfinal GridBagConstraints gridBagConstraints_13 = new GridBagConstraints();\r\n\t\tgridBagConstraints_13.insets = new Insets(0, 0, 0, 4);\r\n\t\tgridBagConstraints_13.anchor = GridBagConstraints.EAST;\r\n\t\tgridBagConstraints_13.gridy = 2;\r\n\t\tgridBagConstraints_13.gridx = 0;\r\n\t\teditROIPanel.add(viewTLabel, gridBagConstraints_13);\r\n\r\n\t\tfinal JPanel panel = new JPanel();\r\n\t\tpanel.setLayout(new GridBagLayout());\r\n\t\tfinal GridBagConstraints gridBagConstraints_15 = new GridBagConstraints();\r\n\t\tgridBagConstraints_15.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_15.weightx = 1;\r\n\t\tgridBagConstraints_15.insets = new Insets(0, 0, 0, 0);\r\n\t\tgridBagConstraints_15.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_15.gridy = 0;\r\n\t\tgridBagConstraints_15.gridx = 0;\r\n\t\tpanel.add(getTimeSlider(), gridBagConstraints_15);\r\n\t\t\r\n\t\tfinal GridBagConstraints gridBagConstraints_14 = new GridBagConstraints();\r\n\t\tgridBagConstraints_14.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_14.insets = new Insets(0, 2, 0, 0);\r\n\t\tgridBagConstraints_14.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_14.gridy = 2;\r\n\t\tgridBagConstraints_14.gridx = 1;\r\n\t\teditROIPanel.add(panel, gridBagConstraints_14);\r\n\r\n\t\tfinal JPanel editROIButtonPanel = new JPanel();\r\n\t\tfinal GridBagLayout gridBagLayout_3 = new GridBagLayout();\r\n\t\tgridBagLayout_3.rowWeights = new double[]{0.0, 1.0};\r\n\t\tgridBagLayout_3.columnWeights = new double[]{0.0, 1.0, 0.0, 0.0, 0.0, 0.0};\r\n\t\tgridBagLayout_3.columnWidths = new int[] {0, 0,7,7, 0, 0};\r\n\t\teditROIButtonPanel.setLayout(gridBagLayout_3);\r\n\t\tfinal GridBagConstraints gridBagConstraints_8 = new GridBagConstraints();\r\n\t\tgridBagConstraints_8.gridwidth = 2;\r\n\t\tgridBagConstraints_8.weightx = 0;\r\n\t\tgridBagConstraints_8.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_8.insets = new Insets(0, 2, 0, 0);\r\n\t\tgridBagConstraints_8.anchor = GridBagConstraints.WEST;\r\n\t\tgridBagConstraints_8.gridy = 3;\r\n\t\tgridBagConstraints_8.gridx = 0;\r\n\t\teditROIPanel.add(editROIButtonPanel, gridBagConstraints_8);\r\n\t\t\r\n\t\tpanel_2 = new JPanel();\r\n\t\tGridBagConstraints gbc_panel_2 = new GridBagConstraints();\r\n\t\tgbc_panel_2.insets = new Insets(2, 2, 2, 2);\r\n\t\tgbc_panel_2.weighty = 1.0;\r\n\t\tgbc_panel_2.weightx = 1.0;\r\n\t\tgbc_panel_2.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_panel_2.gridx = 0;\r\n\t\tgbc_panel_2.gridy = 1;\r\n\t\tadd(panel_2, gbc_panel_2);\r\n\t\tGridBagLayout gbl_panel_2 = new GridBagLayout();\r\n\t\tgbl_panel_2.columnWidths = new int[]{0, 0, 0};\r\n\t\tgbl_panel_2.rowHeights = new int[]{0};\r\n\t\tgbl_panel_2.columnWeights = new double[]{0, 1.0, 0.0};\r\n\t\tgbl_panel_2.rowWeights = new double[]{0.0};\r\n\t\tpanel_2.setLayout(gbl_panel_2);\r\n\t\t\r\n\t\tpanel_3 = new JPanel();\r\n\t\tpanel_3.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\tGridBagConstraints gbc_panel_3 = new GridBagConstraints();\r\n\t\tgbc_panel_3.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_panel_3.insets = new Insets(2, 2, 2, 2);\r\n\t\tgbc_panel_3.gridx = 0;\r\n\t\tgbc_panel_3.gridy = 0;\r\n\t\tpanel_2.add(panel_3, gbc_panel_3);\r\n\t\tGridBagLayout gbl_panel_3 = new GridBagLayout();\r\n\t\tgbl_panel_3.columnWidths = new int[]{0, 0};\r\n\t\tgbl_panel_3.rowHeights = new int[]{0, 0, 0, 0};\r\n\t\tgbl_panel_3.columnWeights = new double[]{0.0, Double.MIN_VALUE};\r\n\t\tgbl_panel_3.rowWeights = new double[]{0.0, 0.0, 0.0, Double.MIN_VALUE};\r\n\t\tpanel_3.setLayout(gbl_panel_3);\r\n\t\t\r\n\t\tdomainRegionLabel = new JLabel(DOMAIN_LIST_TEXT);\r\n\t\tGridBagConstraints gbc_domainRegionLabel = new GridBagConstraints();\r\n\t\tgbc_domainRegionLabel.insets = new Insets(0, 0, 2, 0);\r\n\t\tgbc_domainRegionLabel.gridx = 0;\r\n\t\tgbc_domainRegionLabel.gridy = 0;\r\n\t\tpanel_3.add(domainRegionLabel, gbc_domainRegionLabel);\r\n\t\t\r\n\t\tscrollPane = new JScrollPane();\r\n\t\tGridBagConstraints gbc_scrollPane = new GridBagConstraints();\r\n\t\tgbc_scrollPane.insets = new Insets(0, 2, 0, 0);\r\n\t\tgbc_scrollPane.weighty = 1.0;\r\n\t\tgbc_scrollPane.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_scrollPane.gridx = 0;\r\n\t\tgbc_scrollPane.gridy = 1;\r\n\t\tpanel_3.add(scrollPane, gbc_scrollPane);\r\n\t\tscrollPane.setPreferredSize(new Dimension(125, 10));\r\n\t\tscrollPane.setMinimumSize(new Dimension(125,10));\r\n\t\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n\t\t\r\n\t\tresolvedList = new JList();\r\n\t\tresolvedList.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tsuper.mouseClicked(e);\r\n\t\t\t\tif(showConvertPopup(e,false) == SHOWCONVERT.HANDLED){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif(e.getClickCount() == 2){\r\n\t\t\t\t\tfirePropertyChange(FRAP_DATA_FINDROI_PROPERTY, null, resolvedList.getSelectedValue());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tsuper.mousePressed(e);\r\n\t\t\t\tif(showConvertPopup(e,false) == SHOWCONVERT.HANDLED){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tsuper.mouseReleased(e);\r\n\t\t\t\tif(showConvertPopup(e,false) == SHOWCONVERT.HANDLED){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tresolvedList.addListSelectionListener(resolvedListSelectionListener);\r\n\t\tresolvedList.setCellRenderer(resolvedObjectListCellRenderer);\r\n\t\tscrollPane.setViewportView(resolvedList);\r\n\t\t\r\n\t\tmergeButton = new JButton(\"Auto-Merge\");\r\n\t\tmergeButton.setToolTipText(\"Remove regions by merging with neighbor\");\r\n\t\tmergeButton.setEnabled(false);\r\n\t\tmergeButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tresolvedListSelection(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridBagConstraints gbc_mergeButton = new GridBagConstraints();\r\n\t\tgbc_mergeButton.gridx = 0;\r\n\t\tgbc_mergeButton.gridy = 2;\r\n\t\tpanel_3.add(mergeButton, gbc_mergeButton);\r\n\t\tGridBagConstraints gbc_jScrollPane2 = new GridBagConstraints();\r\n\t\tgbc_jScrollPane2.weighty = 1.0;\r\n\t\tgbc_jScrollPane2.weightx = 1.0;\r\n\t\tgbc_jScrollPane2.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_jScrollPane2.insets = new Insets(2, 2, 2, 2);\r\n\t\tgbc_jScrollPane2.gridx = 1;\r\n\t\tgbc_jScrollPane2.gridy = 0;\r\n\t\tpanel_2.add(getJScrollPane2(), gbc_jScrollPane2);\r\n\t\tGridBagConstraints gbc_toolButtonPanel = new GridBagConstraints();\r\n\t\tgbc_toolButtonPanel.weighty = 1.0;\r\n\t\tgbc_toolButtonPanel.insets = new Insets(2, 2, 0, 2);\r\n\t\tgbc_toolButtonPanel.anchor = GridBagConstraints.NORTH;\r\n\t\tgbc_toolButtonPanel.gridx = 2;\r\n\t\tgbc_toolButtonPanel.gridy = 0;\r\n\t\tpanel_2.add(getToolButtonPanel(), gbc_toolButtonPanel);\r\n\r\n\t\troiComboBox = new JComboBox();\r\n\t\troiComboBox.setName(\"activeROIComboBox\");\r\n\t\troiComboBox.setRenderer(new ListCellRenderer() {\r\n\t\t\tprivate DefaultListCellRenderer listCellRender = new DefaultListCellRenderer();\r\n\t\t\tpublic Component getListCellRendererComponent(JList list, Object value,\r\n\t\t\t\t\tint index, boolean isSelected, boolean cellHasFocus) {\r\n\t\t\t\tROIMultiPaintManager.ComboboxROIName comboboxROIName = (ROIMultiPaintManager.ComboboxROIName)value;\r\n\t\t\t\tif(comboboxROIName == null){//return blank\r\n\t\t\t\t\treturn listCellRender.getListCellRendererComponent(list, null, index, isSelected, cellHasFocus);\r\n\t\t\t\t}\r\n\t\t\t\tif(comboboxROIName.getHighlightColor() == null){//return text only\r\n\t\t\t\t\treturn listCellRender.getListCellRendererComponent(list, comboboxROIName.getROIName(), index, isSelected, cellHasFocus);\r\n\t\t\t\t}\r\n\t\t\t\t//return text with small color box\r\n\t\t\t\tIcon icon = new ColorIcon(20,20,comboboxROIName.getHighlightColor());\r\n\t\t\t\tJLabel jlable = (JLabel)listCellRender.getListCellRendererComponent(list, icon, index, isSelected, cellHasFocus);\r\n\t\t\t\tjlable.setText(comboboxROIName.getROIName());\r\n\t\t\t\treturn jlable;\r\n\t\t\t}\r\n\t\t});\r\n\t\troiComboBox.addActionListener(ROI_COMBOBOX_ACTIONLISTENER);\r\n\t\t\r\n\t\tlblNewLabel = new JLabel(\"Active Domain:\");\r\n\t\tGridBagConstraints gbc_lblNewLabel = new GridBagConstraints();\r\n\t\tgbc_lblNewLabel.insets = new Insets(4, 4, 4, 4);\r\n\t\tgbc_lblNewLabel.anchor = GridBagConstraints.EAST;\r\n\t\tgbc_lblNewLabel.gridx = 0;\r\n\t\tgbc_lblNewLabel.gridy = 0;\r\n\t\teditROIButtonPanel.add(lblNewLabel, gbc_lblNewLabel);\r\n\t\tfinal GridBagConstraints gridBagConstraints_1 = new GridBagConstraints();\r\n\t\tgridBagConstraints_1.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgridBagConstraints_1.insets = new Insets(4, 4, 5, 5);\r\n\t\tgridBagConstraints_1.weightx = 1;\r\n\t\tgridBagConstraints_1.gridy = 0;\r\n\t\tgridBagConstraints_1.gridx = 1;\r\n\t\teditROIButtonPanel.add(roiComboBox, gridBagConstraints_1);\r\n\r\n\t\taddROIButton = new JButton();\r\n\t\taddROIButton.setName(\"roiAddBtn\");\r\n\t\taddROIButton.addActionListener(addROIActionListener);\r\n\t\taddROIButton.setText(\"Add Domain...\");\r\n\t\tfinal GridBagConstraints gridBagConstraints_3 = new GridBagConstraints();\r\n\t\tgridBagConstraints_3.insets = new Insets(4, 4, 5, 5);\r\n\t\tgridBagConstraints_3.gridy = 0;\r\n\t\tgridBagConstraints_3.gridx = 2;\r\n\t\teditROIButtonPanel.add(addROIButton, gridBagConstraints_3);\r\n\r\n\t\tdelROIButton = new JButton();\r\n\t\tdelROIButton.setName(\"roiDeleteBtn\");\r\n\t\tdelROIButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\r\n\t\t\t\tfirePropertyChange(FRAP_DATA_DELETEROI_PROPERTY, ((ROIMultiPaintManager.ComboboxROIName)roiComboBox.getSelectedItem()), null);\r\n\t\t\t}\r\n\t\t});\r\n\t\tdelROIButton.setText(\"Delete Domain...\");\r\n\t\tdelROIButton.setEnabled(false);\r\n\t\tfinal GridBagConstraints gridBagConstraints_4 = new GridBagConstraints();\r\n\t\tgridBagConstraints_4.insets = new Insets(4, 4, 5, 5);\r\n\t\tgridBagConstraints_4.gridy = 0;\r\n\t\tgridBagConstraints_4.gridx = 3;\r\n\t\teditROIButtonPanel.add(delROIButton, gridBagConstraints_4);\r\n\t\t\r\n\t\tdiscardHighlightsButton = new JButton(\"Clear Selections\");\r\n\t\tdiscardHighlightsButton.setEnabled(false);\r\n\t\tdiscardHighlightsButton.setName(\"clearHighlightsBtn\");\r\n\t\tdiscardHighlightsButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfirePropertyChange(FRAP_DATA_DISCARDHIGHLIGHT_PROPERTY,null,null);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tGridBagConstraints gbc_specialActionsButton = new GridBagConstraints();\r\n\t\tgbc_specialActionsButton.insets = new Insets(4, 4, 5, 5);\r\n\t\tgbc_specialActionsButton.gridx = 4;\r\n\t\tgbc_specialActionsButton.gridy = 0;\r\n\t\teditROIButtonPanel.add(discardHighlightsButton, gbc_specialActionsButton);\r\n\t\t\r\n\t\tchannelComboBox = new JComboBox();\r\n\t\tGridBagConstraints gbc_channelComboBox = new GridBagConstraints();\r\n\t\tgbc_channelComboBox.insets = new Insets(4, 4, 5, 4);\r\n\t\tgbc_channelComboBox.gridx = 5;\r\n\t\tgbc_channelComboBox.gridy = 0;\r\n\t\teditROIButtonPanel.add(channelComboBox, gbc_channelComboBox);\r\n\t\tchannelComboBox.addActionListener(channelActionListener);\r\n\t\tchannelComboBox.setPreferredSize(new Dimension(100, 22));\r\n\t\tchannelComboBox.setMinimumSize(new Dimension(100, 20));\r\n\t\t\r\n\t\tblendPercentPanel = new JPanel();\r\n\t\tblendPercentPanel.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\tGridBagConstraints gbc_panel_2a = new GridBagConstraints();\r\n\t\tgbc_panel_2a.gridwidth = 6;\r\n\t\tgbc_panel_2a.insets = new Insets(4, 4, 4, 4);\r\n\t\tgbc_panel_2a.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_panel_2a.gridx = 0;\r\n\t\tgbc_panel_2a.gridy = 1;\r\n\t\teditROIButtonPanel.add(blendPercentPanel, gbc_panel_2a);\r\n\t\tGridBagLayout gbl_panel_2a = new GridBagLayout();\r\n\t\tblendPercentPanel.setLayout(gbl_panel_2a);\r\n\t\t\r\n\t\tblendPercentROILabel = new JLabel(\"Domains\");\r\n\t\tGridBagConstraints gbc_blendPercentROILabel = new GridBagConstraints();\r\n\t\tgbc_blendPercentROILabel.anchor = GridBagConstraints.WEST;\r\n\t\tgbc_blendPercentROILabel.gridx = 0;\r\n\t\tgbc_blendPercentROILabel.gridy = 0;\r\n\t\tblendPercentPanel.add(blendPercentROILabel, gbc_blendPercentROILabel);\r\n\t\t\r\n\t\tblendPercentSlider = new JSlider();\r\n\t\tblendPercentSlider.setToolTipText(\"Mix view of Domains and background image\");\r\n\t\tblendPercentSlider.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\r\n\t\t\t\tsetBlendPercent(blendPercentSlider.getValue());\r\n//\t\t\t\tif(!blendPercentSlider.getValueIsAdjusting()){\r\n//\t\t\t\t\tsetBlendPercent(blendPercentSlider.getValue());\r\n//\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridBagConstraints gbc_blendPercentSlider = new GridBagConstraints();\r\n\t\tgbc_blendPercentSlider.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_blendPercentSlider.weightx = 0.5;\r\n\t\tgbc_blendPercentSlider.gridx = 1;\r\n\t\tgbc_blendPercentSlider.gridy = 0;\r\n\t\tblendPercentPanel.add(blendPercentSlider, gbc_blendPercentSlider);\r\n\t\t\r\n\t\tblendPercentImageLabel = new JLabel(\"Image\");\r\n\t\tGridBagConstraints gbc_blendPercentImageLabel = new GridBagConstraints();\r\n\t\tgbc_blendPercentImageLabel.anchor = GridBagConstraints.EAST;\r\n\t\tgbc_blendPercentImageLabel.gridx = 2;\r\n\t\tgbc_blendPercentImageLabel.gridy = 0;\r\n\t\tblendPercentPanel.add(blendPercentImageLabel, gbc_blendPercentImageLabel);\r\n\t\t\r\n\t\tsmoothOrigLabel = new JLabel(\"Original\");\r\n\t\tGridBagConstraints gbc_smoothOrigLabel = new GridBagConstraints();\r\n\t\tgbc_smoothOrigLabel.insets = new Insets(0, 20, 0, 0);\r\n\t\tgbc_smoothOrigLabel.gridx = 3;\r\n\t\tgbc_smoothOrigLabel.gridy = 0;\r\n\t\tblendPercentPanel.add(smoothOrigLabel, gbc_smoothOrigLabel);\r\n\t\t\r\n\t\tsmoothslider = new JSlider();\r\n\t\tsmoothslider.setToolTipText(\"Smooth background image\");\r\n\t\tsmoothslider.setSnapToTicks(true);\r\n\t\tsmoothslider.setPaintTicks(true);\r\n\t\tsmoothslider.setMajorTickSpacing(1);\r\n\t\tsmoothslider.setMaximum(10);\r\n\t\tsmoothslider.setValue(0);\r\n\t\tsmoothslider.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\r\n\t\t\t\tif(!smoothslider.getValueIsAdjusting()){\r\n\t\t\t\t\tfirePropertyChange(FRAP_DATA_UNDERLAY_SMOOTH_PROPERTY, null, new Integer(smoothslider.getValue()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridBagConstraints gbc_smoothslider = new GridBagConstraints();\r\n\t\tgbc_smoothslider.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_smoothslider.weightx = 0.5;\r\n\t\tgbc_smoothslider.gridx = 4;\r\n\t\tgbc_smoothslider.gridy = 0;\r\n\t\tblendPercentPanel.add(smoothslider, gbc_smoothslider);\r\n\t\t\r\n\t\tsmootherLabel = new JLabel(\"Smoother\");\r\n\t\tGridBagConstraints gbc_smootherLabel = new GridBagConstraints();\r\n\t\tgbc_smootherLabel.gridx = 5;\r\n\t\tgbc_smootherLabel.gridy = 0;\r\n\t\tblendPercentPanel.add(smootherLabel, gbc_smootherLabel);\r\n\t\t\r\n\t\troiDrawButtonGroup.add(selectButton);\r\n\t\troiDrawButtonGroup.add(paintButton);\r\n\t\troiDrawButtonGroup.add(eraseButton);\r\n\t\troiDrawButtonGroup.add(fillButton);\r\n\t\troiDrawButtonGroup.add(cropButton);\r\n\t\troiDrawButtonGroup.add(translateToolButton);\r\n\t\troiDrawButtonGroup.add(scaleToolButton);\r\n\t\t\r\n\t\tBeanUtils.enableComponents(getToolButtonPanel(), false);\r\n\t\tBeanUtils.enableComponents(editROIPanel, false);\r\n\t\t\r\n\t\thistogramPanel = new HistogramPanel();\r\n\t\thistogramPanel.addPropertyChangeListener(new PropertyChangeListener() {\r\n\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\r\n\t\t\t\tif(evt.getPropertyName().equals(HistogramPanel.HISTOGRAM_SELECT_PROPERTY)){\r\n\t\t\t\t\tOverlayEditorPanelJAI.this.firePropertyChange(\r\n\t\t\t\t\tOverlayEditorPanelJAI.FRAP_DATA_HISTOUPDATEHIGHLIGHT_PROPERTY, null, (ListSelectionModel)evt.getNewValue());\r\n\t\t\t\t}else if(evt.getPropertyName().equals(HistogramPanel.HISTOGRAM_APPLY_ACTION)){\r\n\t\t\t\t\tfirePropertyChange(OverlayEditorPanelJAI.FRAP_DATA_UPDATEROI_WITHHIGHLIGHT_PROPERTY,null,null);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\thistogramPanel.setVisible(false);\r\n\t\thistogramPanel.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\tGridBagConstraints gbc_histogramButton = new GridBagConstraints();\r\n\t\tgbc_histogramButton.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_histogramButton.insets = new Insets(2, 2, 2, 2);\r\n\t\tgbc_histogramButton.gridx = 0;\r\n\t\tgbc_histogramButton.gridy = 2;\r\n\t\tadd(histogramPanel, gbc_histogramButton);\r\n\t}", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n materialFirstWordLabel = new JLabel();\n materialFirstWordLabel.setText(\"нет данных\");\n contentPane.add(materialFirstWordLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(10, -1), null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(0, 1, 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 materialMarkLabel = new JLabel();\n materialMarkLabel.setText(\" \");\n materialMarkLabel.setVerticalTextPosition(1);\n panel1.add(materialMarkLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialProfileLabel = new JLabel();\n materialProfileLabel.setText(\" \");\n materialProfileLabel.setVerticalTextPosition(3);\n panel1.add(materialProfileLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialSeparator = new JSeparator();\n panel1.add(materialSeparator, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n contentPane.add(spacer1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "private void binding(){\n\t\trectangle1.widthProperty().bind(employeer.widthProperty().subtract(10));\n\t\trectangle1.heightProperty().bind(employeer.heightProperty().subtract(10));\n\t\t\n\t\trectangle2.widthProperty().bind(hbox.widthProperty());\n\t\t\n\t\tuserNameColumn.prefWidthProperty().bind(usersTable.widthProperty().divide(2));\n\t\tuserLastNameColumn.prefWidthProperty().bind(usersTable.widthProperty().divide(2));\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 1, 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 buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, 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 buttonCancel = new JButton();\n this.$$$loadButtonText$$$(buttonCancel, ResourceBundle.getBundle(\"strings\").getString(\"cancel\"));\n panel2.add(buttonCancel, 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 JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, 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, null, null, 0, false));\n final JLabel label1 = new JLabel();\n this.$$$loadLabelText$$$(label1, ResourceBundle.getBundle(\"strings\").getString(\"resource-name\"));\n panel3.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 nameField = new JTextField();\n panel3.add(nameField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label2 = new JLabel();\n this.$$$loadLabelText$$$(label2, ResourceBundle.getBundle(\"strings\").getString(\"resource-availability\"));\n panel3.add(label2, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel3.add(scrollPane1, new GridConstraints(1, 1, 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 scrollPane1.setViewportView(availabilitiesList);\n label1.setLabelFor(nameField);\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(2, 4, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setBackground(new Color(-1973532));\n panel1.setMaximumSize(new Dimension(1200, 800));\n panel1.setMinimumSize(new Dimension(1200, 800));\n panel1.setPreferredSize(new Dimension(1200, 800));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(11, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel2.setBackground(new Color(-1973532));\n panel2.setOpaque(false);\n panel1.add(panel2, new GridConstraints(1, 2, 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 question = new JLabel();\n question.setForeground(new Color(-16777216));\n question.setText(\"¿Desea continuar alguna partida?\");\n panel2.add(question, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel3.setOpaque(false);\n panel2.add(panel3, new GridConstraints(7, 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 loadButton = new JButton();\n loadButton.setBackground(new Color(-16777216));\n loadButton.setBorderPainted(false);\n loadButton.setContentAreaFilled(false);\n loadButton.setFocusPainted(false);\n loadButton.setOpaque(false);\n loadButton.setText(\"Cargar\");\n panel3.add(loadButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(100, 40), new Dimension(100, 40), new Dimension(100, 40), 0, false));\n newButton = new JButton();\n newButton.setBorderPainted(false);\n newButton.setContentAreaFilled(false);\n newButton.setFocusPainted(false);\n newButton.setOpaque(false);\n newButton.setText(\"Nueva\");\n panel3.add(newButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(100, 40), new Dimension(100, 40), new Dimension(100, 40), 0, false));\n volverButton = new JButton();\n volverButton.setBorderPainted(false);\n volverButton.setContentAreaFilled(false);\n volverButton.setFocusPainted(false);\n volverButton.setOpaque(false);\n volverButton.setText(\"Volver\");\n panel2.add(volverButton, new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(252, 40), new Dimension(252, 40), new Dimension(252, 40), 0, false));\n final Spacer spacer1 = new Spacer();\n panel2.add(spacer1, new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 80), new Dimension(-1, 80), new Dimension(-1, 80), 0, false));\n final Spacer spacer2 = new Spacer();\n panel2.add(spacer2, new GridConstraints(10, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, new Dimension(-1, 70), new Dimension(-1, 70), new Dimension(-1, 70), 0, false));\n final Spacer spacer3 = new Spacer();\n panel2.add(spacer3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, new Dimension(-1, 80), new Dimension(-1, 80), new Dimension(-1, 80), 0, false));\n final Spacer spacer4 = new Spacer();\n panel2.add(spacer4, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, new Dimension(-1, 15), new Dimension(-1, 15), new Dimension(-1, 15), 0, false));\n final Spacer spacer5 = new Spacer();\n panel2.add(spacer5, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, new Dimension(-1, 35), new Dimension(-1, 35), null, 0, false));\n training = new JButton();\n training.setBorderPainted(false);\n training.setContentAreaFilled(false);\n training.setFocusPainted(false);\n training.setText(\"Modo Entrenamiento\");\n panel2.add(training, new GridConstraints(3, 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 final Spacer spacer6 = new Spacer();\n panel2.add(spacer6, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, new Dimension(-1, 50), new Dimension(-1, 50), new Dimension(-1, 50), 0, false));\n logo = new JLabel();\n logo.setText(\"\");\n panel2.add(logo, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(252, 200), new Dimension(252, 200), new Dimension(252, 200), 1, false));\n final Spacer spacer7 = new Spacer();\n panel1.add(spacer7, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(42, -1), new Dimension(42, -1), null, 0, false));\n photo.setAlignmentY(0.5f);\n photo.setText(\"\");\n panel1.add(photo, new GridConstraints(0, 0, 2, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(800, 800), new Dimension(800, 800), new Dimension(800, 800), 0, false));\n final Spacer spacer8 = new Spacer();\n panel1.add(spacer8, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_FIXED, 1, new Dimension(50, -1), new Dimension(50, -1), null, 0, false));\n config = new JButton();\n config.setBorderPainted(false);\n config.setContentAreaFilled(false);\n config.setFocusPainted(false);\n config.setHorizontalAlignment(0);\n config.setHorizontalTextPosition(0);\n config.setText(\"\\uF013\");\n panel1.add(config, new GridConstraints(0, 2, 1, 2, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(40, 40), null, 0, false));\n }", "private void $$$setupUI$$$() {\r\n createUIComponents();\r\n pnlMain = new JPanel();\r\n pnlMain.setLayout(new FormLayout(\"fill:d:grow\", \"fill:38dlu:noGrow,top:4dlu:noGrow,fill:225dlu:noGrow,top:4dlu:noGrow,fill:16dlu:noGrow\"));\r\n pnlMain.setMinimumSize(new Dimension(400, 480));\r\n pnlMain.setPreferredSize(new Dimension(500, 480));\r\n pnlForm.setLayout(new FormLayout(\"fill:50dlu:noGrow,left:4dlu:noGrow,fill:100dlu:noGrow,left:4dlu:noGrow,fill:50dlu:noGrow\", \"fill:12dlu:noGrow\"));\r\n CellConstraints cc = new CellConstraints();\r\n pnlMain.add(pnlForm, cc.xy(1, 1));\r\n lblBuscar = new JLabel();\r\n lblBuscar.setText(\"Buscar \");\r\n pnlForm.add(lblBuscar, cc.xy(1, 1));\r\n txtBuscar = new JTextField();\r\n pnlForm.add(txtBuscar, cc.xy(3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n btnSearch = new JButton();\r\n btnSearch.setText(\"Buscar\");\r\n pnlForm.add(btnSearch, cc.xy(5, 1));\r\n pnlGrid.setLayout(new FormLayout(\"fill:d:grow\", \"center:max(d;4px):noGrow,top:4dlu:noGrow,fill:14dlu:noGrow,top:4dlu:noGrow,fill:d:grow\"));\r\n pnlGrid.setMinimumSize(new Dimension(400, 333));\r\n pnlGrid.setPreferredSize(new Dimension(500, 333));\r\n pnlMain.add(pnlGrid, cc.xy(1, 3));\r\n pnlTitGrid = new JPanel();\r\n pnlTitGrid.setLayout(new FormLayout(\"fill:16dlu:noGrow,left:4dlu:noGrow,fill:100dlu:noGrow\", \"fill:16dlu:noGrow\"));\r\n pnlGrid.add(pnlTitGrid, cc.xy(1, 1));\r\n chkSel = new JCheckBox();\r\n chkSel.setText(\"\");\r\n pnlTitGrid.add(chkSel, cc.xy(1, 1));\r\n lblTitGrid = new JLabel();\r\n lblTitGrid.setText(\"Lista de Laboratorios\");\r\n pnlTitGrid.add(lblTitGrid, cc.xy(3, 1));\r\n pnlResult = new JScrollPane();\r\n pnlResult.setMinimumSize(new Dimension(400, 300));\r\n pnlResult.setPreferredSize(new Dimension(500, 300));\r\n pnlGrid.add(pnlResult, cc.xy(1, 5, CellConstraints.FILL, CellConstraints.FILL));\r\n tblGrid = new JTable();\r\n pnlResult.setViewportView(tblGrid);\r\n pnlToolBarGrid = new JPanel();\r\n pnlToolBarGrid.setLayout(new FormLayout(\"\", \"\"));\r\n pnlGrid.add(pnlToolBarGrid, cc.xy(1, 3));\r\n footerPanel = new JPanel();\r\n footerPanel.setLayout(new FormLayout(\"fill:d:noGrow,left:4dlu:noGrow,right:d:grow\", \"fill:d:grow\"));\r\n pnlMain.add(footerPanel, cc.xy(1, 5));\r\n lblEnter = new JLabel();\r\n lblEnter.setText(\"F2 = Seleccionar\");\r\n footerPanel.add(lblEnter, cc.xy(1, 1));\r\n lblEsc = new JLabel();\r\n lblEsc.setText(\"Esc = Salir\");\r\n footerPanel.add(lblEsc, cc.xy(3, 1));\r\n }", "public void init() {\n\tGridBagLayout gbag = new GridBagLayout();\r\n\tGridBagConstraints gbc = new GridBagConstraints();\r\n\tsetLayout(gbag);\r\n\tLabel heading = new\r\n\tLabel(\"Future Value of an Investment\");\r\n\tLabel amountLab = new Label(\"Principal\");\r\n\tLabel periodLab = new Label(\"Years\");\r\n\tLabel rateLab = new Label(\"Rate of Return\");\r\n\tLabel futvalLab =\r\n\tnew Label(\"Future Value of Investment\");\r\n\tLabel compLab =\r\n\tnew Label(\"Compounding Periods per Year \");\r\n\tamountText = new TextField(16);\r\n\tperiodText = new TextField(16);\r\n\tfutvalText = new TextField(16);\r\n\trateText = new TextField(16);\r\n\tcompText = new TextField(16);\r\n\t// Future value field for display only.\r\n\tfutvalText.setEditable(false);\r\n\tdoIt = new Button(\"Compute\");\r\n\t// Define the grid bag.\r\n\tgbc.weighty = 1.0; // use a row weight of 1\r\n\tgbc.gridwidth = GridBagConstraints.REMAINDER;\r\n\tgbc.anchor = GridBagConstraints.NORTH;\r\n\tgbag.setConstraints(heading, gbc);\r\n\t// Anchor most components to the right.\r\n\tgbc.anchor = GridBagConstraints.EAST;\r\n\tgbc.gridwidth = GridBagConstraints.RELATIVE;\r\n\tgbag.setConstraints(amountLab, gbc);\r\n\tgbc.gridwidth = GridBagConstraints.REMAINDER;\r\n\tgbag.setConstraints(amountText, gbc);\r\n\tgbc.gridwidth = GridBagConstraints.RELATIVE;\r\n\tgbag.setConstraints(periodLab, gbc);\r\n\tgbc.gridwidth = GridBagConstraints.REMAINDER;\r\n\tgbag.setConstraints(periodText, gbc);\r\n\tgbc.gridwidth = GridBagConstraints.RELATIVE;\r\n\tgbag.setConstraints(rateLab, gbc);\r\n\tgbc.gridwidth = GridBagConstraints.REMAINDER;\r\n\tgbag.setConstraints(rateText, gbc);\r\n\tgbc.gridwidth = GridBagConstraints.RELATIVE;\r\n\tgbag.setConstraints(compLab, gbc);\r\n\tgbc.gridwidth = GridBagConstraints.REMAINDER;\r\n\tgbag.setConstraints(compText, gbc);\r\n\tgbc.gridwidth = GridBagConstraints.RELATIVE;\r\n\tgbag.setConstraints(futvalLab, gbc);\r\n\tgbc.gridwidth = GridBagConstraints.REMAINDER;\r\n\tgbag.setConstraints(futvalText, gbc);\r\n\tgbc.anchor = GridBagConstraints.CENTER;\r\n\tgbag.setConstraints(doIt, gbc);\r\n\tadd(heading);\r\n\tadd(amountLab);\r\n\tadd(amountText);\r\n\tadd(periodLab);\r\n\tadd(periodText);\r\n\tadd(rateLab);\r\n\tadd(rateText);\r\n\tadd(compLab);\r\n\tadd(compText);\r\n\tadd(futvalLab);\r\n\tadd(futvalText);\r\n\tadd(doIt);\r\n\t// Register to receive action events.\r\n\tamountText.addActionListener(this);\r\n\tperiodText.addActionListener(this);\r\n\trateText.addActionListener(this);\r\n\tcompText.addActionListener(this);\r\n\tdoIt.addActionListener(this);\r\n\tnf = NumberFormat.getInstance();\r\n\tnf.setMinimumFractionDigits(2);\r\n\tnf.setMaximumFractionDigits(2);\r\n\t}", "private void initComponents() {\n label1 = new JLabel();\n version = new JLabel();\n initializeButton = new JRadioButton();\n upgradeButton = new JRadioButton();\n utilitiesButton = new JRadioButton();\n CellConstraints cc = new CellConstraints();\n\n //======== this ========\n setLayout(new FormLayout(\n ColumnSpec.decodeSpecs(\"default:grow\"),\n new RowSpec[] {\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC\n }));\n\n //---- label1 ----\n label1.setText(\"<html><center>Welcome to the<br>ATReference<br>Maintenance Program</center></html>\");\n label1.setFont(new Font(\"Lucida Grande\", Font.BOLD, 16));\n add(label1, cc.xywh(1, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n\n //---- version ----\n version.setText(\"version\");\n version.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n add(version, cc.xywh(1, 3, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n\n //---- initializeButton ----\n initializeButton.setText(\"Initialize a blank database\");\n initializeButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n initializeButtonActionPerformed();\n }\n });\n add(initializeButton, cc.xywh(1, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));\n\n //---- upgradeButton ----\n upgradeButton.setText(\"Upgrade an existing database\");\n upgradeButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n upgradeButtonActionPerformed();\n }\n });\n add(upgradeButton, cc.xywh(1, 7, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));\n\n //---- utilitiesButton ----\n utilitiesButton.setText(\"Utilities\");\n utilitiesButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n utilitiesButtonActionPerformed();\n }\n });\n add(utilitiesButton, cc.xywh(1, 9, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));\n\n //---- buttonGroup1 ----\n ButtonGroup buttonGroup1 = new ButtonGroup();\n buttonGroup1.add(initializeButton);\n buttonGroup1.add(upgradeButton);\n buttonGroup1.add(utilitiesButton);\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t}", "private void configuraTela() {\n\n Container container = getContentPane();\n container.setLayout(new GridBagLayout());\n\n //Configuracao constraints\n this.constraints = new GridBagConstraints();\n constraints.fill = GridBagConstraints.CENTER;\n constraints.insets = new Insets(10, 0, 0, 0);\n constraints.gridx = 0;\n constraints.gridy = 1;\n\n //Configuracao lbNome\n lbNome = new JLabel(Constantes.GERENCIAR_FUNCIONARIO_NOME);\n\n //Configuracao tfNome\n tfNome = new JTextField(25);\n\n //Configuracao painelNome\n this.painelNome = new JPanel();\n painelNome.setLayout(new BoxLayout(painelNome, BoxLayout.LINE_AXIS));\n this.painelNome.setVisible(true);\n painelNome.add(lbNome);\n painelNome.add(tfNome);\n\n //Configuracao lbMatricula\n lbMatricula = new JLabel(Constantes.GERENCIAR_FUNCIONARIO_MATRICULA);\n\n //Configuracao tfMatricula\n tfMatricula = new JTextField(23);\n\n //Configuracao painelMatricula\n this.painelMatricula = new JPanel();\n painelMatricula.setLayout(new BoxLayout(painelMatricula, BoxLayout.LINE_AXIS));\n this.painelMatricula.setVisible(true);\n painelMatricula.add(lbMatricula);\n painelMatricula.add(tfMatricula);\n\n //Configuracao lbDataNascimento\n lbDataNascimento = new JLabel(Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO);\n\n //Configuracao tfDataNascimento\n tfDataNascimento = new JTextField(18);\n\n //Configuracao painelDataNascimento\n this.painelDataNascimento = new JPanel();\n painelDataNascimento.setLayout(new BoxLayout(painelDataNascimento, BoxLayout.LINE_AXIS));\n this.painelDataNascimento.setVisible(true);\n painelDataNascimento.add(lbDataNascimento);\n painelDataNascimento.add(tfDataNascimento);\n\n //Configuracao lbFormatoDataNascimento\n lbFormatoDataNascimento = new JLabel(Constantes.GERENCIAR_FUNCIONARIO_FORMATO_DATA_NASCIMENTO);\n\n //Configuracao painelFormatoDataNascimento\n this.painelFormatoDataNascimento = new JPanel();\n painelFormatoDataNascimento.setLayout(new BoxLayout(painelFormatoDataNascimento, BoxLayout.LINE_AXIS));\n this.painelFormatoDataNascimento.setVisible(true);\n painelFormatoDataNascimento.add(lbFormatoDataNascimento);\n\n //Configuracao lbTelefone\n lbTelefone = new JLabel(Constantes.GERENCIAR_FUNCIONARIO_TELEFONE);\n\n //Configuracao tfTelefone\n tfTelefone = new JTextField(24);\n\n //Configuracao painelTelefone\n this.painelTelefone = new JPanel();\n painelTelefone.setLayout(new BoxLayout(painelTelefone, BoxLayout.LINE_AXIS));\n this.painelTelefone.setVisible(true);\n painelTelefone.add(lbTelefone);\n painelTelefone.add(tfTelefone);\n\n // Configuracao lbSalario\n lbSalario = new JLabel(Constantes.GERENCIAR_FUNCIONARIO_SALARIO);\n\n //Configuracao tfSalario\n tfSalario = new JTextField(25);\n\n //Configuracao painelSalario\n this.painelSalario = new JPanel();\n painelSalario.setLayout(new BoxLayout(painelSalario, BoxLayout.LINE_AXIS));\n this.painelSalario.setVisible(true);\n painelSalario.add(lbSalario);\n painelSalario.add(tfSalario);\n\n //Configuracao comboCargos\n this.cargos = new ArrayList<>();\n this.cargosNomes = new ArrayList<>();\n comboCargos = new JComboBox(cargosNomes.toArray());\n\n //Configuracao painelCargo\n this.painelCargo = new JPanel();\n painelCargo.setLayout(new BoxLayout(painelCargo, BoxLayout.LINE_AXIS));\n this.painelCargo.setVisible(true);\n painelCargo.add(comboCargos);\n\n //Configura btCancelar\n btCancelar = new JButton();\n btCancelar.setText(Constantes.COMUM_BOTAO_CANCELAR);\n btCancelar.addActionListener(btManager);\n\n //Configura btCadastrar\n btCadastrar = new JButton();\n btCadastrar.setText(Constantes.COMUM_BOTAO_CADASTRAR);\n btCadastrar.addActionListener(btManager);\n container.add(btCadastrar);\n\n //Configuracao painelBotoes\n painelBotoes = new JPanel();\n painelBotoes.setLayout(new BoxLayout(painelBotoes, BoxLayout.LINE_AXIS));\n this.painelBotoes.setVisible(true);\n painelBotoes.add(btCancelar);\n painelBotoes.add(btCadastrar);\n\n //Configuracao painelPrincipal\n painelPrincipal = new JPanel();\n painelPrincipal.setLayout(new GridBagLayout());\n painelPrincipal.setVisible(true);\n painelPrincipal.add(painelNome);\n constraints.gridy = 2;\n painelPrincipal.add(painelMatricula, constraints);\n constraints.gridy = 3;\n painelPrincipal.add(painelDataNascimento, constraints);\n constraints.gridy = 4;\n painelPrincipal.add(painelFormatoDataNascimento, constraints);\n constraints.gridy = 5;\n painelPrincipal.add(painelTelefone, constraints);\n constraints.gridy = 6;\n painelPrincipal.add(painelSalario, constraints);\n constraints.gridy = 7;\n painelPrincipal.add(painelCargo, constraints);\n constraints.gridy = 8;\n painelPrincipal.add(painelBotoes, constraints);\n constraints.gridy = 9;\n\n container.add(painelPrincipal, constraints);\n\n setSize(550, 350);\n setLocationRelativeTo(null);\n }", "private void $$$setupUI$$$() {\n zakupioneBiletyFrame = new JPanel();\n zakupioneBiletyFrame.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n zakupioneLabel = new JLabel();\n zakupioneLabel.setText(\"Zakupione Bilety\");\n zakupioneBiletyFrame.add(zakupioneLabel, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n zakupioneBiletyTable = new JTable();\n zakupioneBiletyTable.setAutoCreateRowSorter(false);\n zakupioneBiletyTable.setAutoResizeMode(4);\n zakupioneBiletyFrame.add(zakupioneBiletyTable, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n scroll1 = new JScrollPane();\n zakupioneBiletyFrame.add(scroll1, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel1.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n table1.setAutoscrolls(true);\n table1.setColumnSelectionAllowed(false);\n scrollPane1.setViewportView(table1);\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(13, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JLabel label1 = new JLabel();\n label1.setText(\"Connection re-express probability when crossed.\");\n contentPane.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n contentPane.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(12, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n contentPane.add(connectionReexpressSlider, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Mutation probability when crossed.\");\n contentPane.add(label2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPane.add(mutationWhenCrossedSlider, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Diff excess gene count factor.\");\n contentPane.add(label3, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(195, 22), null, 0, false));\n diffExcessFactorField = new FloatTextField();\n contentPane.add(diffExcessFactorField, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Diff disjoint gene count factor.\");\n contentPane.add(label4, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffDisjointFactorField = new FloatTextField();\n contentPane.add(diffDisjointFactorField, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Diff weight factor.\");\n contentPane.add(label5, new com.intellij.uiDesigner.core.GridConstraints(8, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffWeightFactorField = new FloatTextField();\n contentPane.add(diffWeightFactorField, new com.intellij.uiDesigner.core.GridConstraints(9, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Diff normalize gene count threshold.\");\n contentPane.add(label6, new com.intellij.uiDesigner.core.GridConstraints(10, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffNormalizeThresholdField = new IntTextField();\n contentPane.add(diffNormalizeThresholdField, new com.intellij.uiDesigner.core.GridConstraints(11, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, 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 scrollPane1.setViewportView(table);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, 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 buttonRegister = new JButton();\n buttonRegister.setText(\"Track\");\n panel1.add(buttonRegister, 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 buttonMenu = new JButton();\n buttonMenu.setText(\"Menu\");\n panel1.add(buttonMenu, new GridConstraints(0, 2, 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 Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(5, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel1, 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, null, null, 0, false));\n servicesButton = new JButton();\n servicesButton.setText(\"Services management\");\n panel1.add(servicesButton, new GridConstraints(1, 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 surveysManagementButton = new JButton();\n surveysManagementButton.setText(\"Surveys management\");\n panel1.add(surveysManagementButton, new GridConstraints(2, 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 connectingAndResultsButton = new JButton();\n connectingAndResultsButton.setText(\"Conecting surveys to services\");\n panel1.add(connectingAndResultsButton, new GridConstraints(3, 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 final JLabel label1 = new JLabel();\n label1.setText(\"Choose option below\");\n panel1.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 results = new JButton();\n results.setText(\"Browse the results\");\n panel1.add(results, new GridConstraints(4, 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 }", "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 mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(8, 4, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(mainPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n mainPanel.setBorder(BorderFactory.createTitledBorder(\"New Mapper Pattern Keywords\"));\n final JLabel label1 = new JLabel();\n label1.setText(\"Insert\");\n mainPanel.add(label1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n insertPatternTextField = new JTextField();\n mainPanel.add(insertPatternTextField, new GridConstraints(2, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150,\n -1), null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Delete\");\n mainPanel.add(label2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n deletePatternTextField = new JTextField();\n mainPanel.add(deletePatternTextField, new GridConstraints(3, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150,\n -1), null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Update\");\n mainPanel.add(label3, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n updatePatternTextField = new JTextField();\n mainPanel.add(updatePatternTextField, new GridConstraints(4, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150,\n -1), null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Select\");\n mainPanel.add(label4, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n selectPatternTextField = new JTextField();\n mainPanel.add(selectPatternTextField, new GridConstraints(5, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150,\n -1), null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Patterns should be separated with \\\";\\\"\");\n mainPanel.add(label5, new GridConstraints(0, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n modelComboBox = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"startWith\");\n defaultComboBoxModel1.addElement(\"endWith\");\n defaultComboBoxModel1.addElement(\"contain\");\n modelComboBox.setModel(defaultComboBoxModel1);\n mainPanel.add(modelComboBox, new GridConstraints(1, 1, 1, 3, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n mainPanel.add(spacer1, new GridConstraints(7, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Model\");\n mainPanel.add(label6, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n openNaviButton = new JRadioButton();\n openNaviButton.setText(\"开\");\n mainPanel.add(openNaviButton, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED\n , null, null, null, 0, false));\n openNaviLabel = new JLabel();\n openNaviLabel.setText(\"导航开关\");\n mainPanel.add(openNaviLabel, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n closeNaviRadioButton = new JRadioButton();\n closeNaviRadioButton.setText(\"关\");\n mainPanel.add(closeNaviRadioButton, new GridConstraints(6, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void createContents()\n\t{\n\t\tGridLayout clayout = new GridLayout();\n\t\tclayout.marginHeight = 2;\n\t\tclayout.marginWidth = 2;\n\t\tclayout.marginTop = 2;\n\t\tclayout.marginBottom = 2;\n\t\tclayout.marginLeft = 2;\n\t\tclayout.marginRight = 2;\n\t\tclayout.numColumns = 1;\n\t\tsetLayout(clayout);\n\t\t\n\t\t\n\t\tm_executorsTable = new ExecutorsTable(this);\n\t\tGridData tableLayoutData = new GridData(GridData.FILL_BOTH);\n\t\ttableLayoutData.grabExcessHorizontalSpace = true;\n\t\ttableLayoutData.widthHint = 700;\n\t\ttableLayoutData.heightHint = 200;\n\t\tm_executorsTable.getGrid().setLayoutData(tableLayoutData);\n\t\tm_executorsTable.addDoubleClickListener(this);\n\t\tm_executorsTable.addSelectionChangedListener( new ISelectionChangedListener(){\n\n\t\t\t@Override\n public void selectionChanged(SelectionChangedEvent arg0)\n {\n\t\t\t\tupdateButtons();\n }\n\t\t\t\n\t\t});\n\n\t\tComposite buttonBar = new Composite(this, SWT.BORDER);\n\t\tbuttonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\tbuttonBar.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\t\t\n\t\tm_btnTakeControl = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnTakeControl.setText(BTN_TAKE_CONTROL);\n\t\tm_btnTakeControl.addSelectionListener(this);\n\t\t\n\t\tm_btnReleaseControl = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnReleaseControl.setText(BTN_RELEASE_CONTROL);\n\t\tm_btnReleaseControl.addSelectionListener(this);\n\t\t\n\t\tm_btnBackground = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnBackground.setText(BTN_BACKGROUND);\n\t\tm_btnBackground.addSelectionListener(this);\n\n\t\tm_btnStartMonitor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnStartMonitor.setText(BTN_START_MONITOR);\n\t\tm_btnStartMonitor.addSelectionListener(this);\n\t\t\n\t\tm_btnStopMonitor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnStopMonitor.setText(BTN_STOP_MONITOR);\n\t\tm_btnStopMonitor.addSelectionListener(this);\n\t\t\n\t\tm_btnStopExecutor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnStopExecutor.setText(BTN_STOP_EXECUTOR);\n\t\tm_btnStopExecutor.addSelectionListener(this);\n\n\t\tm_btnKillExecutor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnKillExecutor.setText(BTN_KILL_EXECUTOR);\n\t\tm_btnKillExecutor.addSelectionListener(this);\n\t\t\n\t\tm_btnRefresh = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnRefresh.setText(BTN_REFRESH);\n\t\tm_btnRefresh.addSelectionListener(this);\n\t\t\n\t\tapplyFonts();\n\t\tdisableButtons();\n\t}", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setBackground(new Color(-1184275));\n panel1.setForeground(new Color(-4473925));\n mainPanel.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setBackground(new Color(-12828863));\n Font label1Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 16, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n label1.setForeground(new Color(-12828863));\n label1.setText(\"Scheduler\");\n panel1.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n Font label2Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label2.getFont());\n if (label2Font != null) label2.setFont(label2Font);\n label2.setText(\"Select the Type of Scheduler \");\n panel1.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n dropDown = new JComboBox();\n Font dropDownFont = this.$$$getFont$$$(\"Georgia\", -1, 14, dropDown.getFont());\n if (dropDownFont != null) dropDown.setFont(dropDownFont);\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"Shortest Remaining Process Time\");\n defaultComboBoxModel1.addElement(\"Earliest Deadline First\");\n defaultComboBoxModel1.addElement(\"Deadline Monotonic\");\n dropDown.setModel(defaultComboBoxModel1);\n panel1.add(dropDown, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n Font label3Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label3.getFont());\n if (label3Font != null) label3.setFont(label3Font);\n label3.setText(\"Current Task\");\n panel1.add(label3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n currentField = new JTextField();\n currentField.setBackground(new Color(-3873281));\n currentField.setEditable(false);\n Font currentFieldFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, currentField.getFont());\n if (currentFieldFont != null) currentField.setFont(currentFieldFont);\n panel1.add(currentField, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n Font label4Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label4.getFont());\n if (label4Font != null) label4.setFont(label4Font);\n label4.setText(\"Current Task Progress \");\n panel2.add(label4, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n progressBar1 = new JProgressBar();\n panel2.add(progressBar1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskList = new JList();\n taskList.setBackground(new Color(-5186305));\n Font taskListFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskList.getFont());\n if (taskListFont != null) taskList.setFont(taskListFont);\n final DefaultListModel defaultListModel1 = new DefaultListModel();\n taskList.setModel(defaultListModel1);\n taskList.setSelectionBackground(new Color(-13220097));\n taskList.setSelectionForeground(new Color(-1));\n taskList.setSelectionMode(0);\n panel2.add(taskList, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 3, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n tickButton = new JButton();\n Font tickButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, tickButton.getFont());\n if (tickButtonFont != null) tickButton.setFont(tickButtonFont);\n tickButton.setText(\"Tick\");\n panel2.add(tickButton, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n switchButton = new JButton();\n Font switchButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, switchButton.getFont());\n if (switchButtonFont != null) switchButton.setFont(switchButtonFont);\n switchButton.setText(\"Switch\");\n panel2.add(switchButton, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n delButton = new JButton();\n Font delButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, delButton.getFont());\n if (delButtonFont != null) delButton.setFont(delButtonFont);\n delButton.setText(\"Delete\");\n panel2.add(delButton, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(8, 2, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel3, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n Font label5Font = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, label5.getFont());\n if (label5Font != null) label5.setFont(label5Font);\n label5.setText(\"Add New Tasks\");\n panel3.add(label5, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n Font label6Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label6.getFont());\n if (label6Font != null) label6.setFont(label6Font);\n label6.setText(\"Task\");\n panel3.add(label6, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n taskName = new JTextField();\n Font taskNameFont = this.$$$getFont$$$(\"Georgia\", -1, 14, taskName.getFont());\n if (taskNameFont != null) taskName.setFont(taskNameFont);\n panel3.add(taskName, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label7 = new JLabel();\n Font label7Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label7.getFont());\n if (label7Font != null) label7.setFont(label7Font);\n label7.setText(\"Estimated Completion Time (hours) \");\n panel3.add(label7, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n RemTime = new JTextField();\n Font RemTimeFont = this.$$$getFont$$$(\"Georgia\", -1, 14, RemTime.getFont());\n if (RemTimeFont != null) RemTime.setFont(RemTimeFont);\n panel3.add(RemTime, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label8 = new JLabel();\n Font label8Font = this.$$$getFont$$$(\"Georgia\", -1, 14, label8.getFont());\n if (label8Font != null) label8.setFont(label8Font);\n label8.setText(\"Time Till Task is Due (hours)\");\n panel3.add(label8, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n relDeadline = new JTextField();\n Font relDeadlineFont = this.$$$getFont$$$(\"Georgia\", -1, 14, relDeadline.getFont());\n if (relDeadlineFont != null) relDeadline.setFont(relDeadlineFont);\n panel3.add(relDeadline, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n saveNewButton = new JButton();\n Font saveNewButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveNewButton.getFont());\n if (saveNewButtonFont != null) saveNewButton.setFont(saveNewButtonFont);\n saveNewButton.setText(\"Save New\");\n panel3.add(saveNewButton, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveExistingButton = new JButton();\n Font saveExistingButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, saveExistingButton.getFont());\n if (saveExistingButtonFont != null) saveExistingButton.setFont(saveExistingButtonFont);\n saveExistingButton.setText(\"Save Existing\");\n panel3.add(saveExistingButton, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearButton = new JButton();\n Font clearButtonFont = this.$$$getFont$$$(\"Georgia\", Font.BOLD, 14, clearButton.getFont());\n if (clearButtonFont != null) clearButton.setFont(clearButtonFont);\n clearButton.setText(\"Clear Form\");\n panel3.add(clearButton, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\r\n createUIComponents();\r\n pnlMain = new JPanel();\r\n pnlMain.setLayout(new FormLayout(\"fill:d:grow\", \"fill:145dlu:noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\r\n pnlMain.setMinimumSize(new Dimension(560, 270));\r\n pnlMain.setPreferredSize(new Dimension(560, 270));\r\n pnlForm.setLayout(new FormLayout(\"fill:40dlu:noGrow,left:4dlu:noGrow,fill:40dlu:noGrow,left:4dlu:noGrow,fill:40dlu:noGrow,left:4dlu:noGrow,fill:40dlu:noGrow,left:4dlu:noGrow,fill:40dlu:noGrow,left:4dlu:noGrow,fill:40dlu:noGrow\", \"fill:12dlu:noGrow,top:4dlu:noGrow,fill:12dlu:noGrow,top:5dlu:noGrow,fill:12dlu:noGrow,top:4dlu:noGrow,fill:12dlu:noGrow,top:4dlu:noGrow,fill:12dlu:noGrow,top:4dlu:noGrow,center:12dlu:noGrow,top:4dlu:noGrow,center:12dlu:noGrow\"));\r\n CellConstraints cc = new CellConstraints();\r\n pnlMain.add(pnlForm, cc.xy(1, 1));\r\n lblDscto1 = new JLabel();\r\n lblDscto1.setText(\"Dscto 1\");\r\n pnlForm.add(lblDscto1, cc.xy(1, 9));\r\n txtpcDsto1 = new JTextField();\r\n pnlForm.add(txtpcDsto1, cc.xy(3, 9, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n lblDeProducto = new JLabel();\r\n lblDeProducto.setText(\"Producto\");\r\n pnlForm.add(lblDeProducto, cc.xy(1, 1));\r\n txtDeProducto = new JTextField();\r\n pnlForm.add(txtDeProducto, cc.xyw(5, 1, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n lblUnidadProducto = new JLabel();\r\n lblUnidadProducto.setText(\"Unidad\");\r\n pnlForm.add(lblUnidadProducto, cc.xy(1, 3));\r\n txtUnidadProducto = new JTextField();\r\n pnlForm.add(txtUnidadProducto, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n txtDeLaboratorio = new JTextField();\r\n pnlForm.add(txtDeLaboratorio, cc.xyw(7, 3, 5, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n lblLaboratorio = new JLabel();\r\n lblLaboratorio.setText(\"Laboratorio\");\r\n pnlForm.add(lblLaboratorio, cc.xy(5, 3));\r\n lblCantidad = new JLabel();\r\n lblCantidad.setText(\"Cantidad\");\r\n pnlForm.add(lblCantidad, cc.xy(1, 7));\r\n txtCaRecibida = new JTextField();\r\n pnlForm.add(txtCaRecibida, cc.xy(3, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n final JSeparator separator1 = new JSeparator();\r\n pnlForm.add(separator1, cc.xyw(1, 5, 11, CellConstraints.FILL, CellConstraints.FILL));\r\n lblPrecio = new JLabel();\r\n lblPrecio.setText(\"Precio\");\r\n pnlForm.add(lblPrecio, cc.xy(5, 7));\r\n txtPrecio = new JTextField();\r\n pnlForm.add(txtPrecio, cc.xy(7, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n lblDscto2 = new JLabel();\r\n lblDscto2.setText(\"Dscto 2\");\r\n pnlForm.add(lblDscto2, cc.xy(5, 9));\r\n txtpcDsto2 = new JTextField();\r\n pnlForm.add(txtpcDsto2, cc.xy(7, 9, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n final JSeparator separator2 = new JSeparator();\r\n pnlForm.add(separator2, cc.xyw(1, 11, 11, CellConstraints.FILL, CellConstraints.FILL));\r\n lblGlosa = new JLabel();\r\n lblGlosa.setText(\"Glosa\");\r\n pnlForm.add(lblGlosa, cc.xy(1, 13));\r\n txtGlosa = new JTextField();\r\n pnlForm.add(txtGlosa, cc.xyw(3, 13, 9, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n lblDscto3 = new JLabel();\r\n lblDscto3.setText(\"Dscto 3\");\r\n pnlForm.add(lblDscto3, cc.xy(9, 9));\r\n txtpcDsto3 = new JTextField();\r\n pnlForm.add(txtpcDsto3, cc.xy(11, 9, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n txtCoProducto = new JTextField();\r\n pnlForm.add(txtCoProducto, cc.xy(3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));\r\n footerPanel = new JPanel();\r\n footerPanel.setLayout(new FormLayout(\"fill:50dlu:noGrow,left:4dlu:noGrow,fill:d:grow\", \"fill:15dlu:noGrow\"));\r\n pnlMain.add(footerPanel, cc.xy(1, 3));\r\n lblF10 = new JLabel();\r\n lblF10.setText(\"F10 = Aceptar\");\r\n footerPanel.add(lblF10, cc.xy(1, 1));\r\n lblEsc = new JLabel();\r\n lblEsc.setHorizontalAlignment(4);\r\n lblEsc.setText(\"Esc = Cancelar\");\r\n footerPanel.add(lblEsc, cc.xy(3, 1));\r\n }", "@Override\n public void layoutControls() {\n labelArea.setPrefHeight(100);\n labelArea.setMinHeight(70);\n labelArea.setVgrow(nameLabel, Priority.ALWAYS);\n labelArea.setVgrow(powerLabel, Priority.ALWAYS);\n labelArea.setVgrow(titleLabel, Priority.ALWAYS);\n labelArea.setVgrow(startOfOperationFirstLabel, Priority.ALWAYS);\n\n labelArea.getChildren().addAll(titleLabel, nameLabel, powerLabel, startOfOperationFirstLabel);\n HBox.setHgrow(spacer, Priority.ALWAYS);\n\n\n getChildren().addAll(labelArea, spacer, waterControl);\n\n }", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n panel1.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel2.add(buttonCancel, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n contentPane.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 4, new Insets(0, 0, 0, 0), 5, 5));\n scrollPane1.setViewportView(panel3);\n final JLabel label1 = new JLabel();\n label1.setFont(new Font(label1.getFont().getName(), Font.BOLD, label1.getFont().getSize()));\n label1.setText(\"mlocarna:\");\n panel3.add(label1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 4, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setBackground(new Color(-65485));\n label2.setFont(new Font(label2.getFont().getName(), Font.BOLD, label2.getFont().getSize()));\n label2.setOpaque(false);\n label2.setText(\"RNAsubopt:\");\n panel3.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n random_sample = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"5\");\n defaultComboBoxModel1.addElement(\"10\");\n defaultComboBoxModel1.addElement(\"15\");\n defaultComboBoxModel1.addElement(\"20\");\n random_sample.setModel(defaultComboBoxModel1);\n panel3.add(random_sample, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n useMlocarna = new JCheckBox();\n useMlocarna.setSelected(true);\n useMlocarna.setText(\"\");\n panel3.add(useMlocarna, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"suboptimal structures computed\");\n panel3.add(label3, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"use to compute the folding landscape \");\n panel3.add(label4, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n panel3.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(1, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n myContentPanel = new JPanel();\n myContentPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n myContentPanel.add(panel1, new GridConstraints(0, 1, 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 myAcceptYoursButton = new JButton();\n myAcceptYoursButton.setEnabled(false);\n myAcceptYoursButton.setText(\"Accept Yours\");\n myAcceptYoursButton.setMnemonic('Y');\n myAcceptYoursButton.setDisplayedMnemonicIndex(7);\n panel1.add(myAcceptYoursButton, 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 final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n myAcceptTheirsButton = new JButton();\n myAcceptTheirsButton.setEnabled(false);\n myAcceptTheirsButton.setText(\"Accept Theirs\");\n myAcceptTheirsButton.setMnemonic('T');\n myAcceptTheirsButton.setDisplayedMnemonicIndex(7);\n panel1.add(myAcceptTheirsButton, new GridConstraints(1, 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 myMergeButton = new JButton();\n myMergeButton.setEnabled(false);\n myMergeButton.setText(\"Merge\");\n myMergeButton.setMnemonic('M');\n myMergeButton.setDisplayedMnemonicIndex(0);\n panel1.add(myMergeButton, new GridConstraints(2, 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 final JBScrollPane jBScrollPane1 = new JBScrollPane();\n myContentPanel.add(jBScrollPane1, 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 myItemsTable = new JBTable();\n myItemsTable.putClientProperty(\"Table.isFileList\", Boolean.FALSE);\n jBScrollPane1.setViewportView(myItemsTable);\n }", "private void setupConstraints() {\n\t\tcTitleField = new GridBagConstraints();\n\t\tcTitleField.fill = GridBagConstraints.HORIZONTAL;\n\t\tcTitleField.weightx = 0.6;\n\n\t\tcAuthorField = (GridBagConstraints) cTitleField.clone();\n\t\tcAuthorField.insets = new Insets(0, 2 * I_PADDING, 0, 0);\n\t\tcAuthorField.weightx = 1 - cTitleField.weightx;\n\n\t\tseparator.setBorder(new EmptyBorder(0, 0, 2 * I_PADDING, 0));\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tGridBagLayout gridBagLayout = new GridBagLayout();\r\n\t\tgridBagLayout.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\r\n\t\tgridBagLayout.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\r\n\t\tgridBagLayout.columnWeights = new double[]{0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};\r\n\t\tgridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};\r\n\t\tframe.getContentPane().setLayout(gridBagLayout);\r\n\t\t\r\n\t\tJLabel lblNum01 = new JLabel(\"N\\u00FAmero 1\");\r\n\t\tGridBagConstraints gbc_lblNum01 = new GridBagConstraints();\r\n\t\tgbc_lblNum01.anchor = GridBagConstraints.EAST;\r\n\t\tgbc_lblNum01.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_lblNum01.gridx = 0;\r\n\t\tgbc_lblNum01.gridy = 0;\r\n\t\tframe.getContentPane().add(lblNum01, gbc_lblNum01);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\tGridBagConstraints gbc_textField = new GridBagConstraints();\r\n\t\tgbc_textField.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_textField.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_textField.gridx = 1;\r\n\t\tgbc_textField.gridy = 0;\r\n\t\tframe.getContentPane().add(textField, gbc_textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\ttxtNum01 = new JTextField();\r\n\t\tGridBagConstraints gbc_txtNum01 = new GridBagConstraints();\r\n\t\tgbc_txtNum01.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_txtNum01.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_txtNum01.gridx = 2;\r\n\t\tgbc_txtNum01.gridy = 0;\r\n\t\tframe.getContentPane().add(txtNum01, gbc_txtNum01);\r\n\t\ttxtNum01.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblNum02 = new JLabel(\"N\\u00FAmero 2\");\r\n\t\tGridBagConstraints gbc_lblNum02 = new GridBagConstraints();\r\n\t\tgbc_lblNum02.anchor = GridBagConstraints.EAST;\r\n\t\tgbc_lblNum02.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_lblNum02.gridx = 0;\r\n\t\tgbc_lblNum02.gridy = 1;\r\n\t\tframe.getContentPane().add(lblNum02, gbc_lblNum02);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\tGridBagConstraints gbc_textField_1 = new GridBagConstraints();\r\n\t\tgbc_textField_1.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_textField_1.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_textField_1.gridx = 1;\r\n\t\tgbc_textField_1.gridy = 1;\r\n\t\tframe.getContentPane().add(textField_1, gbc_textField_1);\r\n\t\ttextField_1.setColumns(10);\r\n\t\t\r\n\t\ttxtNum02 = new JTextField();\r\n\t\tGridBagConstraints gbc_txtNum02 = new GridBagConstraints();\r\n\t\tgbc_txtNum02.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_txtNum02.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_txtNum02.gridx = 2;\r\n\t\tgbc_txtNum02.gridy = 1;\r\n\t\tframe.getContentPane().add(txtNum02, gbc_txtNum02);\r\n\t\ttxtNum02.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblNum03 = new JLabel(\"N\\u00FAmero 3\");\r\n\t\tGridBagConstraints gbc_lblNum03 = new GridBagConstraints();\r\n\t\tgbc_lblNum03.anchor = GridBagConstraints.EAST;\r\n\t\tgbc_lblNum03.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_lblNum03.gridx = 0;\r\n\t\tgbc_lblNum03.gridy = 2;\r\n\t\tframe.getContentPane().add(lblNum03, gbc_lblNum03);\r\n\t\t\r\n\t\ttextField_2 = new JTextField();\r\n\t\tGridBagConstraints gbc_textField_2 = new GridBagConstraints();\r\n\t\tgbc_textField_2.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_textField_2.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_textField_2.gridx = 1;\r\n\t\tgbc_textField_2.gridy = 2;\r\n\t\tframe.getContentPane().add(textField_2, gbc_textField_2);\r\n\t\ttextField_2.setColumns(10);\r\n\t\t\r\n\t\ttxtNum03 = new JTextField();\r\n\t\tGridBagConstraints gbc_txtNum03 = new GridBagConstraints();\r\n\t\tgbc_txtNum03.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_txtNum03.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_txtNum03.gridx = 2;\r\n\t\tgbc_txtNum03.gridy = 2;\r\n\t\tframe.getContentPane().add(txtNum03, gbc_txtNum03);\r\n\t\ttxtNum03.setColumns(10);\r\n\t\t\r\n\t\tJButton btnToSum = new JButton(\"Sumar\");\r\n\t\tbtnToSum.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfloat n1 = Float.parseFloat( txtNum01.getText());\r\n\t\t\t\t\tfloat n2 = Float.parseFloat(txtNum02.getText());\r\n\t\t\t\t\tfloat n3 = Float.parseFloat(txtNum03.getText());\r\n\t\t\t\t\tFloat result = n1+n2+n3;\r\n\t\t\t\t\tlblResult.setText(result+\"\");\t}\r\n\t\t\t\t\t\tcatch (NumberFormatException ex){\r\n\t\t\t\t\t\t\tlblResult.setText(\"Erro medio grave\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridBagConstraints gbc_btnToSum = new GridBagConstraints();\r\n\t\tgbc_btnToSum.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_btnToSum.gridx = 0;\r\n\t\tgbc_btnToSum.gridy = 3;\r\n\t\tframe.getContentPane().add(btnToSum, gbc_btnToSum);\r\n\t\t\r\n\t\tlblResult = new JLabel(\"New label\");\r\n\t\tGridBagConstraints gbc_lblResult = new GridBagConstraints();\r\n\t\tgbc_lblResult.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_lblResult.gridx = 2;\r\n\t\tgbc_lblResult.gridy = 3;\r\n\t\tframe.getContentPane().add(lblResult, gbc_lblResult);\r\n\t\t\r\n\t\tJButton btnClear = new JButton(\"Limpar\");\r\n\t\tGridBagConstraints gbc_btnClear = new GridBagConstraints();\r\n\t\tgbc_btnClear.gridwidth = 3;\r\n\t\tgbc_btnClear.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_btnClear.gridx = 0;\r\n\t\tgbc_btnClear.gridy = 4;\r\n\t\tframe.getContentPane().add(btnClear, gbc_btnClear);\r\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n panel1 = new JPanel();\n panel1.setLayout(new BorderLayout(0, 0));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridBagLayout());\n panel1.add(panel2, BorderLayout.CENTER);\n titelPanel = new JPanel();\n titelPanel.setLayout(new GridBagLayout());\n GridBagConstraints gbc;\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.NORTH;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.insets = new Insets(10, 10, 20, 10);\n panel2.add(titelPanel, gbc);\n lblNachnameVorname = new JLabel();\n Font lblNachnameVornameFont = this.$$$getFont$$$(null, -1, 36, lblNachnameVorname.getFont());\n if (lblNachnameVornameFont != null) lblNachnameVorname.setFont(lblNachnameVornameFont);\n lblNachnameVorname.setText(\"Nachname Vorname\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.WEST;\n titelPanel.add(lblNachnameVorname, gbc);\n final JPanel spacer1 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n titelPanel.add(spacer1, gbc);\n datenPanel = new JPanel();\n datenPanel.setLayout(new GridBagLayout());\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.BOTH;\n panel2.add(datenPanel, gbc);\n final JScrollPane scrollPane1 = new JScrollPane();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.BOTH;\n datenPanel.add(scrollPane1, gbc);\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridBagLayout());\n scrollPane1.setViewportView(panel3);\n rechnungsempfaengerPanel = new JPanel();\n rechnungsempfaengerPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.NORTH;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.insets = new Insets(10, 10, 10, 10);\n panel3.add(rechnungsempfaengerPanel, gbc);\n rechnungsempfaengerPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Rechungsempfänger\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$(null, Font.BOLD, -1, rechnungsempfaengerPanel.getFont()), null));\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new GridBagLayout());\n rechnungsempfaengerPanel.add(panel4, 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, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Name:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel4.add(label1, gbc);\n final JPanel spacer2 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel4.add(spacer2, gbc);\n final JPanel spacer3 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel4.add(spacer3, gbc);\n final JPanel spacer4 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel4.add(spacer4, gbc);\n final JPanel spacer5 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel4.add(spacer5, gbc);\n final JPanel spacer6 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel4.add(spacer6, gbc);\n final JPanel spacer7 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel4.add(spacer7, gbc);\n lblName = new JLabel();\n lblName.setText(\"lblName\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel4.add(lblName, gbc);\n final JLabel label2 = new JLabel();\n label2.setText(\"Strasse / Nr.:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel4.add(label2, gbc);\n lblStrasseNr = new JLabel();\n lblStrasseNr.setText(\"lblStrasseNr\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel4.add(lblStrasseNr, gbc);\n final JPanel spacer8 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel4.add(spacer8, gbc);\n final JLabel label3 = new JLabel();\n label3.setText(\"PLZ / Ort:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.anchor = GridBagConstraints.WEST;\n panel4.add(label3, gbc);\n lblPlzOrt = new JLabel();\n lblPlzOrt.setText(\"lblPlzOrt\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 5;\n gbc.anchor = GridBagConstraints.WEST;\n panel4.add(lblPlzOrt, gbc);\n final JPanel spacer9 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 6;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel4.add(spacer9, gbc);\n final JPanel panel5 = new JPanel();\n panel5.setLayout(new GridBagLayout());\n rechnungsempfaengerPanel.add(panel5, new GridConstraints(0, 1, 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 final JLabel label4 = new JLabel();\n label4.setText(\"Festnetz:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel5.add(label4, gbc);\n final JPanel spacer10 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel5.add(spacer10, gbc);\n final JPanel spacer11 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel5.add(spacer11, gbc);\n final JPanel spacer12 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel5.add(spacer12, gbc);\n lblFestnetz = new JLabel();\n lblFestnetz.setText(\"lblFestnetz\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel5.add(lblFestnetz, gbc);\n final JPanel spacer13 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel5.add(spacer13, gbc);\n final JPanel spacer14 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel5.add(spacer14, gbc);\n final JPanel spacer15 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel5.add(spacer15, gbc);\n final JLabel label5 = new JLabel();\n label5.setText(\"Natel:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel5.add(label5, gbc);\n lblNatel = new JLabel();\n lblNatel.setText(\"lblNatel\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel5.add(lblNatel, gbc);\n final JPanel spacer16 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel5.add(spacer16, gbc);\n final JLabel label6 = new JLabel();\n label6.setText(\"E-Mail:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.anchor = GridBagConstraints.WEST;\n panel5.add(label6, gbc);\n final JPanel spacer17 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 6;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel5.add(spacer17, gbc);\n final JPanel panel6 = new JPanel();\n panel6.setLayout(new GridBagLayout());\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 6;\n gbc.fill = GridBagConstraints.BOTH;\n panel5.add(panel6, gbc);\n final JPanel spacer18 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel6.add(spacer18, gbc);\n lblEmail = new JLabel();\n lblEmail.setText(\"lblEmail\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 5;\n gbc.anchor = GridBagConstraints.WEST;\n panel5.add(lblEmail, gbc);\n final JPanel panel7 = new JPanel();\n panel7.setLayout(new GridBagLayout());\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.gridheight = 7;\n gbc.fill = GridBagConstraints.BOTH;\n panel5.add(panel7, gbc);\n btnEmail = new JButton();\n btnEmail.setText(\"E-Mail\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel7.add(btnEmail, gbc);\n final JPanel spacer19 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel7.add(spacer19, gbc);\n final JPanel spacer20 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel7.add(spacer20, gbc);\n schuelerKurseVorrechnungPanel = new JPanel();\n schuelerKurseVorrechnungPanel.setLayout(new GridBagLayout());\n schuelerKurseVorrechnungPanel.setForeground(new Color(-16776961));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.NORTH;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.insets = new Insets(0, 10, 10, 10);\n panel3.add(schuelerKurseVorrechnungPanel, gbc);\n schuelerKurseVorrechnungPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Schüler / Kurse vorhergehendes Semester (ohne Abmeldungen)\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$(null, Font.BOLD, -1, schuelerKurseVorrechnungPanel.getFont()), null));\n lblSchuelersVorrechnung = new JLabel();\n lblSchuelersVorrechnung.setText(\"lblSchuelersVorrechnung\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n schuelerKurseVorrechnungPanel.add(lblSchuelersVorrechnung, gbc);\n final JPanel spacer21 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n schuelerKurseVorrechnungPanel.add(spacer21, gbc);\n final JPanel spacer22 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.VERTICAL;\n schuelerKurseVorrechnungPanel.add(spacer22, gbc);\n final JPanel spacer23 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n schuelerKurseVorrechnungPanel.add(spacer23, gbc);\n final JPanel spacer24 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 350;\n schuelerKurseVorrechnungPanel.add(spacer24, gbc);\n final JPanel spacer25 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n schuelerKurseVorrechnungPanel.add(spacer25, gbc);\n lblKurseVorrechnung = new JLabel();\n lblKurseVorrechnung.setText(\"lblKurseVorrechnung\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n schuelerKurseVorrechnungPanel.add(lblKurseVorrechnung, gbc);\n final JPanel spacer26 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n schuelerKurseVorrechnungPanel.add(spacer26, gbc);\n vorrechnungPanel = new JPanel();\n vorrechnungPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.insets = new Insets(0, 10, 10, 10);\n panel3.add(vorrechnungPanel, gbc);\n vorrechnungPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Vorrechnung\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$(null, Font.BOLD, -1, vorrechnungPanel.getFont()), null));\n final JPanel panel8 = new JPanel();\n panel8.setLayout(new GridBagLayout());\n vorrechnungPanel.add(panel8, 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, null, null, 0, false));\n final JPanel spacer27 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel8.add(spacer27, gbc);\n final JPanel spacer28 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 60;\n panel8.add(spacer28, gbc);\n final JLabel label7 = new JLabel();\n label7.setText(\"Ermässigung:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n panel8.add(label7, gbc);\n txtErmaessigungVorrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel8.add(txtErmaessigungVorrechnung, gbc);\n final JPanel spacer29 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel8.add(spacer29, gbc);\n final JPanel spacer30 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 0;\n gbc.gridwidth = 4;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel8.add(spacer30, gbc);\n final JPanel spacer31 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 8;\n gbc.gridy = 4;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel8.add(spacer31, gbc);\n final JPanel spacer32 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 4;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel8.add(spacer32, gbc);\n errLblErmaessigungVorrechnung = new JLabel();\n errLblErmaessigungVorrechnung.setText(\"errErmaessV\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.gridwidth = 6;\n gbc.anchor = GridBagConstraints.WEST;\n panel8.add(errLblErmaessigungVorrechnung, gbc);\n final JLabel label8 = new JLabel();\n label8.setText(\"Zuschlag:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 6;\n gbc.anchor = GridBagConstraints.WEST;\n panel8.add(label8, gbc);\n txtZuschlagVorrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 6;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel8.add(txtZuschlagVorrechnung, gbc);\n errLblZuschlagVorrechnung = new JLabel();\n errLblZuschlagVorrechnung.setText(\"errZuschlV\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 5;\n gbc.gridwidth = 6;\n gbc.anchor = GridBagConstraints.WEST;\n panel8.add(errLblZuschlagVorrechnung, gbc);\n final JPanel spacer33 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel8.add(spacer33, gbc);\n final JPanel panel9 = new JPanel();\n panel9.setLayout(new GridBagLayout());\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 7;\n gbc.gridwidth = 7;\n gbc.gridheight = 2;\n gbc.fill = GridBagConstraints.BOTH;\n panel8.add(panel9, gbc);\n final JPanel spacer34 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 30;\n panel9.add(spacer34, gbc);\n txtAnzahlWochenVorrechnung = new JTextField();\n txtAnzahlWochenVorrechnung.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel9.add(txtAnzahlWochenVorrechnung, gbc);\n final JLabel label9 = new JLabel();\n label9.setText(\"x\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 10, 0, 10);\n panel9.add(label9, gbc);\n final JPanel spacer35 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 60;\n panel9.add(spacer35, gbc);\n txtWochenbetragVorrechnung = new JTextField();\n txtWochenbetragVorrechnung.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel9.add(txtWochenbetragVorrechnung, gbc);\n lblMalRabattFaktorVorrechnung = new JLabel();\n lblMalRabattFaktorVorrechnung.setText(\"x\");\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 10, 0, 10);\n panel9.add(lblMalRabattFaktorVorrechnung, gbc);\n lblRabattFaktorVorrechnung = new JLabel();\n lblRabattFaktorVorrechnung.setText(\"Rabatt\");\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel9.add(lblRabattFaktorVorrechnung, gbc);\n final JLabel label10 = new JLabel();\n label10.setText(\"=\");\n gbc = new GridBagConstraints();\n gbc.gridx = 10;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 10, 0, 10);\n panel9.add(label10, gbc);\n lblRechnungsbetragVorrechnung = new JLabel();\n Font lblRechnungsbetragVorrechnungFont = this.$$$getFont$$$(null, Font.BOLD, -1, lblRechnungsbetragVorrechnung.getFont());\n if (lblRechnungsbetragVorrechnungFont != null)\n lblRechnungsbetragVorrechnung.setFont(lblRechnungsbetragVorrechnungFont);\n lblRechnungsbetragVorrechnung.setForeground(new Color(-16776961));\n lblRechnungsbetragVorrechnung.setText(\"Rechnungsbetrag\");\n gbc = new GridBagConstraints();\n gbc.gridx = 11;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel9.add(lblRechnungsbetragVorrechnung, gbc);\n final JPanel spacer36 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 12;\n gbc.gridy = 1;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel9.add(spacer36, gbc);\n final JPanel spacer37 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel9.add(spacer37, gbc);\n errLblAnzahlWochenVorrechnung = new JLabel();\n errLblAnzahlWochenVorrechnung.setText(\"errAnz\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel9.add(errLblAnzahlWochenVorrechnung, gbc);\n final JLabel label11 = new JLabel();\n Font label11Font = this.$$$getFont$$$(null, Font.BOLD, -1, label11.getFont());\n if (label11Font != null) label11.setFont(label11Font);\n label11.setForeground(new Color(-16776961));\n label11.setText(\"Rechnungsbetrag:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel9.add(label11, gbc);\n final JPanel spacer38 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel9.add(spacer38, gbc);\n final JPanel spacer39 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel9.add(spacer39, gbc);\n errLblWochenbetragVorrechnung = new JLabel();\n errLblWochenbetragVorrechnung.setText(\"errWochenb\");\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.gridwidth = 10;\n gbc.anchor = GridBagConstraints.WEST;\n panel9.add(errLblWochenbetragVorrechnung, gbc);\n final JLabel label12 = new JLabel();\n label12.setText(\"Anz.\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel9.add(label12, gbc);\n final JLabel label13 = new JLabel();\n label13.setText(\"Wochenb.\");\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel9.add(label13, gbc);\n final JLabel label14 = new JLabel();\n label14.setText(\"-\");\n gbc = new GridBagConstraints();\n gbc.gridx = 6;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 10, 0, 10);\n panel9.add(label14, gbc);\n lblErmaessigungVorrechnung = new JLabel();\n lblErmaessigungVorrechnung.setText(\"Erm\");\n gbc = new GridBagConstraints();\n gbc.gridx = 7;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel9.add(lblErmaessigungVorrechnung, gbc);\n final JLabel label15 = new JLabel();\n label15.setText(\"+\");\n gbc = new GridBagConstraints();\n gbc.gridx = 8;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 10, 0, 10);\n panel9.add(label15, gbc);\n lblZuschlagVorrechnung = new JLabel();\n lblZuschlagVorrechnung.setText(\"Zus\");\n gbc = new GridBagConstraints();\n gbc.gridx = 9;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel9.add(lblZuschlagVorrechnung, gbc);\n final JLabel label16 = new JLabel();\n label16.setText(\"Zuschl.\");\n gbc = new GridBagConstraints();\n gbc.gridx = 9;\n gbc.gridy = 2;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel9.add(label16, gbc);\n final JLabel label17 = new JLabel();\n label17.setText(\"Ermäss.\");\n gbc = new GridBagConstraints();\n gbc.gridx = 7;\n gbc.gridy = 2;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel9.add(label17, gbc);\n final JPanel spacer40 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 7;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 40;\n panel9.add(spacer40, gbc);\n final JPanel spacer41 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 9;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 40;\n panel9.add(spacer41, gbc);\n final JLabel label18 = new JLabel();\n label18.setText(\"Rechnungsdatum:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel8.add(label18, gbc);\n txtRechnungsdatumVorrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 2;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel8.add(txtRechnungsdatumVorrechnung, gbc);\n errLblRechnungsdatumVorrechnung = new JLabel();\n errLblRechnungsdatumVorrechnung.setText(\"errDatumV\\n\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.gridwidth = 6;\n gbc.anchor = GridBagConstraints.WEST;\n panel8.add(errLblRechnungsdatumVorrechnung, gbc);\n final JPanel spacer42 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel8.add(spacer42, gbc);\n final JPanel spacer43 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 30;\n panel8.add(spacer43, gbc);\n final JPanel panel10 = new JPanel();\n panel10.setLayout(new GridBagLayout());\n vorrechnungPanel.add(panel10, new GridConstraints(0, 1, 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 final JPanel spacer44 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 8;\n gbc.gridy = 6;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel10.add(spacer44, gbc);\n final JPanel spacer45 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel10.add(spacer45, gbc);\n final JPanel spacer46 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel10.add(spacer46, gbc);\n final JPanel spacer47 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel10.add(spacer47, gbc);\n final JPanel spacer48 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 6;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel10.add(spacer48, gbc);\n final JPanel panel11 = new JPanel();\n panel11.setLayout(new GridBagLayout());\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 7;\n gbc.gridwidth = 7;\n gbc.fill = GridBagConstraints.BOTH;\n panel10.add(panel11, gbc);\n btnWochenbetragVorrechnung = new JButton();\n btnWochenbetragVorrechnung.setMaximumSize(new Dimension(222, 29));\n btnWochenbetragVorrechnung.setMinimumSize(new Dimension(222, 29));\n btnWochenbetragVorrechnung.setPreferredSize(new Dimension(222, 29));\n btnWochenbetragVorrechnung.setText(\"Wochenbetrag berechnen\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel11.add(btnWochenbetragVorrechnung, gbc);\n final JPanel spacer49 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel11.add(spacer49, gbc);\n final JPanel spacer50 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel11.add(spacer50, gbc);\n final JLabel label19 = new JLabel();\n label19.setText(\"Grund:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 0, 15);\n panel10.add(label19, gbc);\n txtErmaessigungsgrundVorrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.gridwidth = 6;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel10.add(txtErmaessigungsgrundVorrechnung, gbc);\n final JLabel label20 = new JLabel();\n label20.setText(\"Grund:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 0, 0, 15);\n panel10.add(label20, gbc);\n errLblErmaessigungsgrundVorrechnung = new JLabel();\n errLblErmaessigungsgrundVorrechnung.setText(\"errLblErmaessigungsgrundVorrechnung\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 2;\n gbc.gridwidth = 6;\n gbc.anchor = GridBagConstraints.WEST;\n panel10.add(errLblErmaessigungsgrundVorrechnung, gbc);\n final JLabel label21 = new JLabel();\n label21.setText(\"6-Jahres-Rabatt:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel10.add(label21, gbc);\n final JPanel spacer51 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.VERTICAL;\n gbc.ipady = 6;\n panel10.add(spacer51, gbc);\n lblSechsJahresRabattVorrechnung = new JLabel();\n lblSechsJahresRabattVorrechnung.setText(\"lblSechsJahresRabattVorrechnung\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.gridwidth = 6;\n gbc.anchor = GridBagConstraints.WEST;\n panel10.add(lblSechsJahresRabattVorrechnung, gbc);\n final JPanel spacer52 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 6;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel10.add(spacer52, gbc);\n txtZuschlagsgrundVorrechnung = new JTextField();\n txtZuschlagsgrundVorrechnung.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 5;\n gbc.gridwidth = 6;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel10.add(txtZuschlagsgrundVorrechnung, gbc);\n errLblZuschlagsgrundVorrechnung = new JLabel();\n errLblZuschlagsgrundVorrechnung.setText(\"errLblZuschlagsgrundVorrechnung\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 4;\n gbc.gridwidth = 6;\n gbc.anchor = GridBagConstraints.WEST;\n panel10.add(errLblZuschlagsgrundVorrechnung, gbc);\n final JPanel spacer53 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.gridwidth = 6;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel10.add(spacer53, gbc);\n schuelerKurseNachrechnungPanel = new JPanel();\n schuelerKurseNachrechnungPanel.setLayout(new GridBagLayout());\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 4;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.insets = new Insets(0, 10, 10, 10);\n panel3.add(schuelerKurseNachrechnungPanel, gbc);\n schuelerKurseNachrechnungPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Schüler / Kurse aktuelles Semester\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$(null, Font.BOLD, -1, schuelerKurseNachrechnungPanel.getFont()), null));\n lblSchuelersNachrechnung = new JLabel();\n lblSchuelersNachrechnung.setText(\"lblSchuelersNachrechnung\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n schuelerKurseNachrechnungPanel.add(lblSchuelersNachrechnung, gbc);\n final JPanel spacer54 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.VERTICAL;\n schuelerKurseNachrechnungPanel.add(spacer54, gbc);\n final JPanel spacer55 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n schuelerKurseNachrechnungPanel.add(spacer55, gbc);\n final JPanel spacer56 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n schuelerKurseNachrechnungPanel.add(spacer56, gbc);\n final JPanel spacer57 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 350;\n schuelerKurseNachrechnungPanel.add(spacer57, gbc);\n final JPanel spacer58 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n schuelerKurseNachrechnungPanel.add(spacer58, gbc);\n final JPanel spacer59 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n schuelerKurseNachrechnungPanel.add(spacer59, gbc);\n lblKurseNachrechnung = new JLabel();\n lblKurseNachrechnung.setText(\"lblKurseNachrechnung\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n schuelerKurseNachrechnungPanel.add(lblKurseNachrechnung, gbc);\n nachrechnungPanel = new JPanel();\n nachrechnungPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 5;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.insets = new Insets(0, 10, 10, 10);\n panel3.add(nachrechnungPanel, gbc);\n nachrechnungPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Nachrechnung\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$(null, Font.BOLD, -1, nachrechnungPanel.getFont()), null));\n final JPanel panel12 = new JPanel();\n panel12.setLayout(new GridBagLayout());\n nachrechnungPanel.add(panel12, 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, null, null, 0, false));\n final JLabel label22 = new JLabel();\n label22.setText(\"Rechnungsdatum:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel12.add(label22, gbc);\n final JPanel spacer60 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel12.add(spacer60, gbc);\n final JPanel spacer61 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel12.add(spacer61, gbc);\n final JPanel spacer62 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel12.add(spacer62, gbc);\n final JPanel spacer63 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel12.add(spacer63, gbc);\n final JPanel spacer64 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel12.add(spacer64, gbc);\n final JPanel spacer65 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 60;\n panel12.add(spacer65, gbc);\n final JPanel spacer66 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel12.add(spacer66, gbc);\n txtRechnungsdatumNachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 2;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel12.add(txtRechnungsdatumNachrechnung, gbc);\n errLblRechnungsdatumNachrechnung = new JLabel();\n errLblRechnungsdatumNachrechnung.setText(\"errDatumN\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.gridwidth = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel12.add(errLblRechnungsdatumNachrechnung, gbc);\n final JLabel label23 = new JLabel();\n label23.setText(\"Ermässigung:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n panel12.add(label23, gbc);\n txtErmaessigungNachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel12.add(txtErmaessigungNachrechnung, gbc);\n errLblErmaessigungNachrechnung = new JLabel();\n errLblErmaessigungNachrechnung.setText(\"errErmaessN\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.gridwidth = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel12.add(errLblErmaessigungNachrechnung, gbc);\n final JPanel spacer67 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel12.add(spacer67, gbc);\n final JLabel label24 = new JLabel();\n label24.setText(\"Zuschlag:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 6;\n gbc.anchor = GridBagConstraints.WEST;\n panel12.add(label24, gbc);\n txtZuschlagNachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 6;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel12.add(txtZuschlagNachrechnung, gbc);\n errLblZuschlagNachrechnung = new JLabel();\n errLblZuschlagNachrechnung.setText(\"errZuschlagN\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 5;\n gbc.gridwidth = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel12.add(errLblZuschlagNachrechnung, gbc);\n final JPanel panel13 = new JPanel();\n panel13.setLayout(new GridBagLayout());\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 7;\n gbc.gridwidth = 4;\n gbc.fill = GridBagConstraints.BOTH;\n panel12.add(panel13, gbc);\n final JLabel label25 = new JLabel();\n Font label25Font = this.$$$getFont$$$(null, Font.BOLD, -1, label25.getFont());\n if (label25Font != null) label25.setFont(label25Font);\n label25.setForeground(new Color(-65536));\n label25.setText(\"Rechnungsbetrag:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel13.add(label25, gbc);\n final JPanel spacer68 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 12;\n gbc.gridy = 1;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel13.add(spacer68, gbc);\n final JPanel spacer69 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel13.add(spacer69, gbc);\n final JPanel spacer70 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 30;\n panel13.add(spacer70, gbc);\n txtAnzahlWochenNachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel13.add(txtAnzahlWochenNachrechnung, gbc);\n final JLabel label26 = new JLabel();\n label26.setText(\"Anz.\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel13.add(label26, gbc);\n errLblAnzahlWochenNachrechnung = new JLabel();\n errLblAnzahlWochenNachrechnung.setText(\"errAnz\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel13.add(errLblAnzahlWochenNachrechnung, gbc);\n final JLabel label27 = new JLabel();\n label27.setText(\"x\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 10, 0, 10);\n panel13.add(label27, gbc);\n txtWochenbetragNachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel13.add(txtWochenbetragNachrechnung, gbc);\n errLblWochenbetragNachrechnung = new JLabel();\n errLblWochenbetragNachrechnung.setText(\"errWochenb\");\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.gridwidth = 10;\n gbc.anchor = GridBagConstraints.WEST;\n panel13.add(errLblWochenbetragNachrechnung, gbc);\n lblMalRabattFaktorNachrechnung = new JLabel();\n lblMalRabattFaktorNachrechnung.setText(\"x\");\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 10, 0, 10);\n panel13.add(lblMalRabattFaktorNachrechnung, gbc);\n lblRabattFaktorNachrechnung = new JLabel();\n lblRabattFaktorNachrechnung.setText(\"Rabatt\");\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel13.add(lblRabattFaktorNachrechnung, gbc);\n final JPanel spacer71 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 60;\n panel13.add(spacer71, gbc);\n final JLabel label28 = new JLabel();\n label28.setText(\"Wochenb.\");\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel13.add(label28, gbc);\n final JLabel label29 = new JLabel();\n label29.setText(\"=\");\n gbc = new GridBagConstraints();\n gbc.gridx = 10;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 10, 0, 10);\n panel13.add(label29, gbc);\n lblRechnungsbetragNachrechnung = new JLabel();\n Font lblRechnungsbetragNachrechnungFont = this.$$$getFont$$$(null, Font.BOLD, -1, lblRechnungsbetragNachrechnung.getFont());\n if (lblRechnungsbetragNachrechnungFont != null)\n lblRechnungsbetragNachrechnung.setFont(lblRechnungsbetragNachrechnungFont);\n lblRechnungsbetragNachrechnung.setForeground(new Color(-65536));\n lblRechnungsbetragNachrechnung.setText(\"Rechnungsbetrag\");\n gbc = new GridBagConstraints();\n gbc.gridx = 11;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel13.add(lblRechnungsbetragNachrechnung, gbc);\n final JPanel spacer72 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel13.add(spacer72, gbc);\n final JPanel spacer73 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel13.add(spacer73, gbc);\n final JLabel label30 = new JLabel();\n label30.setText(\"-\");\n gbc = new GridBagConstraints();\n gbc.gridx = 6;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 10, 0, 10);\n panel13.add(label30, gbc);\n lblErmaessigungNachrechnung = new JLabel();\n lblErmaessigungNachrechnung.setText(\"Erm\");\n gbc = new GridBagConstraints();\n gbc.gridx = 7;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel13.add(lblErmaessigungNachrechnung, gbc);\n final JLabel label31 = new JLabel();\n label31.setText(\"+\");\n gbc = new GridBagConstraints();\n gbc.gridx = 8;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.insets = new Insets(0, 10, 0, 10);\n panel13.add(label31, gbc);\n lblZuschlagNachrechnung = new JLabel();\n lblZuschlagNachrechnung.setText(\"Zus\");\n gbc = new GridBagConstraints();\n gbc.gridx = 9;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel13.add(lblZuschlagNachrechnung, gbc);\n final JLabel label32 = new JLabel();\n label32.setText(\"Ermäss.\");\n gbc = new GridBagConstraints();\n gbc.gridx = 7;\n gbc.gridy = 2;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel13.add(label32, gbc);\n final JLabel label33 = new JLabel();\n label33.setText(\"Zuschl.\");\n gbc = new GridBagConstraints();\n gbc.gridx = 9;\n gbc.gridy = 2;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel13.add(label33, gbc);\n final JPanel spacer74 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 7;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 40;\n panel13.add(spacer74, gbc);\n final JPanel spacer75 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 9;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 40;\n panel13.add(spacer75, gbc);\n final JPanel spacer76 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 30;\n panel12.add(spacer76, gbc);\n final JPanel panel14 = new JPanel();\n panel14.setLayout(new GridBagLayout());\n nachrechnungPanel.add(panel14, new GridConstraints(0, 1, 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 final JLabel label34 = new JLabel();\n label34.setText(\"6-Jahres-Rabatt:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel14.add(label34, gbc);\n final JPanel spacer77 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel14.add(spacer77, gbc);\n final JPanel spacer78 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.VERTICAL;\n gbc.ipady = 6;\n panel14.add(spacer78, gbc);\n final JPanel spacer79 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel14.add(spacer79, gbc);\n final JPanel spacer80 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel14.add(spacer80, gbc);\n final JPanel spacer81 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel14.add(spacer81, gbc);\n final JPanel spacer82 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel14.add(spacer82, gbc);\n lblSechsJahresRabattNachrechnung = new JLabel();\n lblSechsJahresRabattNachrechnung.setText(\"lblSechsJahresRabattNachrechnung\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel14.add(lblSechsJahresRabattNachrechnung, gbc);\n final JLabel label35 = new JLabel();\n label35.setText(\"Grund:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel14.add(label35, gbc);\n txtErmaessigungsgrundNachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel14.add(txtErmaessigungsgrundNachrechnung, gbc);\n errLblErmaessigungsgrundNachrechnung = new JLabel();\n errLblErmaessigungsgrundNachrechnung.setText(\"errLblErmaessigungsgrundNachrechnung\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel14.add(errLblErmaessigungsgrundNachrechnung, gbc);\n final JPanel spacer83 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel14.add(spacer83, gbc);\n final JLabel label36 = new JLabel();\n label36.setText(\"Grund:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.anchor = GridBagConstraints.WEST;\n panel14.add(label36, gbc);\n txtZuschlagsgrundNachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 5;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel14.add(txtZuschlagsgrundNachrechnung, gbc);\n errLblZuschlagsgrundNachrechnung = new JLabel();\n errLblZuschlagsgrundNachrechnung.setText(\"errLblZuschlagsgrundNachrechnung\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n panel14.add(errLblZuschlagsgrundNachrechnung, gbc);\n final JPanel panel15 = new JPanel();\n panel15.setLayout(new GridBagLayout());\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 7;\n gbc.gridwidth = 2;\n gbc.fill = GridBagConstraints.BOTH;\n panel14.add(panel15, gbc);\n btnWochenbetragNachrechnung = new JButton();\n btnWochenbetragNachrechnung.setMaximumSize(new Dimension(222, 29));\n btnWochenbetragNachrechnung.setMinimumSize(new Dimension(222, 29));\n btnWochenbetragNachrechnung.setPreferredSize(new Dimension(222, 29));\n btnWochenbetragNachrechnung.setText(\"Wochenbetrag berechnen\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel15.add(btnWochenbetragNachrechnung, gbc);\n final JPanel spacer84 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel15.add(spacer84, gbc);\n final JPanel spacer85 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel15.add(spacer85, gbc);\n final JPanel spacer86 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 6;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel14.add(spacer86, gbc);\n zahlungenNachrechnungPanel = new JPanel();\n zahlungenNachrechnungPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 6;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.insets = new Insets(0, 10, 10, 10);\n panel3.add(zahlungenNachrechnungPanel, gbc);\n zahlungenNachrechnungPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Zahlungen Nachrechnung\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$(null, Font.BOLD, -1, zahlungenNachrechnungPanel.getFont()), null));\n final JPanel panel16 = new JPanel();\n panel16.setLayout(new GridBagLayout());\n zahlungenNachrechnungPanel.add(panel16, 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, null, null, 0, false));\n final JLabel label37 = new JLabel();\n label37.setText(\"1. Zahlung:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel16.add(label37, gbc);\n final JPanel spacer87 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 7;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel16.add(spacer87, gbc);\n final JPanel spacer88 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel16.add(spacer88, gbc);\n final JPanel spacer89 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel16.add(spacer89, gbc);\n final JPanel spacer90 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel16.add(spacer90, gbc);\n final JPanel spacer91 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel16.add(spacer91, gbc);\n final JPanel spacer92 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 60;\n panel16.add(spacer92, gbc);\n txtBetragZahlung1Nachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel16.add(txtBetragZahlung1Nachrechnung, gbc);\n final JLabel label38 = new JLabel();\n label38.setText(\"Datum:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel16.add(label38, gbc);\n final JPanel spacer93 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 90;\n panel16.add(spacer93, gbc);\n final JPanel spacer94 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 6;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel16.add(spacer94, gbc);\n final JPanel spacer95 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 40;\n panel16.add(spacer95, gbc);\n final JPanel spacer96 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 70;\n panel16.add(spacer96, gbc);\n txtDatumZahlung1Nachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel16.add(txtDatumZahlung1Nachrechnung, gbc);\n errLblBetragZahlung1Nachrechnung = new JLabel();\n errLblBetragZahlung1Nachrechnung.setText(\"errLblBetragZahlung1N\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.gridwidth = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel16.add(errLblBetragZahlung1Nachrechnung, gbc);\n errLblDatumZahlung1Nachrechnung = new JLabel();\n errLblDatumZahlung1Nachrechnung.setText(\"errLblDatumZahlung1N\");\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 1;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel16.add(errLblDatumZahlung1Nachrechnung, gbc);\n final JLabel label39 = new JLabel();\n label39.setText(\"2. Zahlung:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n panel16.add(label39, gbc);\n final JPanel spacer97 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel16.add(spacer97, gbc);\n txtBetragZahlung2Nachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel16.add(txtBetragZahlung2Nachrechnung, gbc);\n errLblBetragZahlung2Nachrechnung = new JLabel();\n errLblBetragZahlung2Nachrechnung.setText(\"errLblBetragZahlung2N\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.gridwidth = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel16.add(errLblBetragZahlung2Nachrechnung, gbc);\n final JLabel label40 = new JLabel();\n label40.setText(\"Datum:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n panel16.add(label40, gbc);\n txtDatumZahlung2Nachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel16.add(txtDatumZahlung2Nachrechnung, gbc);\n errLblDatumZahlung2Nachrechnung = new JLabel();\n errLblDatumZahlung2Nachrechnung.setText(\"errLblDatumZahlung2N\");\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 3;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel16.add(errLblDatumZahlung2Nachrechnung, gbc);\n final JPanel panel17 = new JPanel();\n panel17.setLayout(new GridBagLayout());\n zahlungenNachrechnungPanel.add(panel17, new GridConstraints(0, 1, 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 final JLabel label41 = new JLabel();\n label41.setText(\"3. Zahlung:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel17.add(label41, gbc);\n final JPanel spacer98 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 7;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel17.add(spacer98, gbc);\n final JPanel spacer99 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.VERTICAL;\n gbc.ipady = 6;\n panel17.add(spacer99, gbc);\n final JPanel spacer100 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel17.add(spacer100, gbc);\n final JPanel spacer101 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel17.add(spacer101, gbc);\n final JPanel spacer102 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel17.add(spacer102, gbc);\n final JPanel spacer103 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 60;\n panel17.add(spacer103, gbc);\n final JPanel spacer104 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 40;\n panel17.add(spacer104, gbc);\n final JPanel spacer105 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 90;\n panel17.add(spacer105, gbc);\n txtBetragZahlung3Nachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel17.add(txtBetragZahlung3Nachrechnung, gbc);\n errLblBetragZahlung3Nachrechnung = new JLabel();\n errLblBetragZahlung3Nachrechnung.setText(\"errLblBetragZahlung3N\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.gridwidth = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel17.add(errLblBetragZahlung3Nachrechnung, gbc);\n final JPanel spacer106 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 70;\n panel17.add(spacer106, gbc);\n final JLabel label42 = new JLabel();\n label42.setText(\"Datum:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel17.add(label42, gbc);\n txtDatumZahlung3Nachrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel17.add(txtDatumZahlung3Nachrechnung, gbc);\n errLblDatumZahlung3Nachrechnung = new JLabel();\n errLblDatumZahlung3Nachrechnung.setText(\"errLblDatumZahlung3N\");\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 1;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel17.add(errLblDatumZahlung3Nachrechnung, gbc);\n final JPanel spacer107 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 6;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel17.add(spacer107, gbc);\n final JLabel label43 = new JLabel();\n Font label43Font = this.$$$getFont$$$(null, Font.BOLD, -1, label43.getFont());\n if (label43Font != null) label43.setFont(label43Font);\n label43.setForeground(new Color(-65536));\n label43.setText(\"Restbetrag:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n panel17.add(label43, gbc);\n lblRestbetragNachrechnung = new JLabel();\n Font lblRestbetragNachrechnungFont = this.$$$getFont$$$(null, Font.BOLD, -1, lblRestbetragNachrechnung.getFont());\n if (lblRestbetragNachrechnungFont != null) lblRestbetragNachrechnung.setFont(lblRestbetragNachrechnungFont);\n lblRestbetragNachrechnung.setForeground(new Color(-65536));\n lblRestbetragNachrechnung.setText(\"Restbetrag\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 4;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel17.add(lblRestbetragNachrechnung, gbc);\n final JPanel spacer108 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel17.add(spacer108, gbc);\n stipendiumGratiskindPanel = new JPanel();\n stipendiumGratiskindPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 7;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.insets = new Insets(0, 10, 10, 10);\n panel3.add(stipendiumGratiskindPanel, gbc);\n stipendiumGratiskindPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Code / Bemerkungen / Stipendium / Gratiskinder\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$(null, Font.BOLD, -1, stipendiumGratiskindPanel.getFont()), null));\n final JPanel panel18 = new JPanel();\n panel18.setLayout(new GridBagLayout());\n stipendiumGratiskindPanel.add(panel18, 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, null, null, 0, false));\n final JPanel spacer109 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel18.add(spacer109, gbc);\n final JPanel spacer110 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel18.add(spacer110, gbc);\n final JPanel spacer111 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel18.add(spacer111, gbc);\n final JPanel spacer112 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel18.add(spacer112, gbc);\n final JPanel spacer113 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel18.add(spacer113, gbc);\n final JPanel spacer114 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel18.add(spacer114, gbc);\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel18.add(comboBoxSemesterrechnungCode, gbc);\n final JLabel label44 = new JLabel();\n label44.setText(\"Code:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel18.add(label44, gbc);\n final JLabel label45 = new JLabel();\n label45.setText(\"Bemerkungen:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel18.add(label45, gbc);\n errLblBemerkungen = new JLabel();\n errLblBemerkungen.setText(\"errLblBemerkungen\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel18.add(errLblBemerkungen, gbc);\n final JScrollPane scrollPane2 = new JScrollPane();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipady = 20;\n panel18.add(scrollPane2, gbc);\n textAreaBemerkungen = new JTextArea();\n textAreaBemerkungen.setLineWrap(true);\n textAreaBemerkungen.setWrapStyleWord(true);\n scrollPane2.setViewportView(textAreaBemerkungen);\n final JPanel panel19 = new JPanel();\n panel19.setLayout(new GridBagLayout());\n stipendiumGratiskindPanel.add(panel19, new GridConstraints(0, 1, 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 gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel19.add(comboBoxStipendium, gbc);\n final JPanel spacer115 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel19.add(spacer115, gbc);\n final JLabel label46 = new JLabel();\n label46.setText(\"Stipendium:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel19.add(label46, gbc);\n final JPanel spacer116 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel19.add(spacer116, gbc);\n final JPanel spacer117 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel19.add(spacer117, gbc);\n final JPanel spacer118 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel19.add(spacer118, gbc);\n final JLabel label47 = new JLabel();\n label47.setText(\"Gratiskinder:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel19.add(label47, gbc);\n checkBoxGratiskinder = new JCheckBox();\n checkBoxGratiskinder.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n panel19.add(checkBoxGratiskinder, gbc);\n final JPanel spacer119 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel19.add(spacer119, gbc);\n final JPanel spacer120 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel19.add(spacer120, gbc);\n errLblStipendium = new JLabel();\n errLblStipendium.setText(\"errLblStipendium\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.WEST;\n panel19.add(errLblStipendium, gbc);\n final JPanel spacer121 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 8;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(spacer121, gbc);\n zahlungenVorrechnungPanel = new JPanel();\n zahlungenVorrechnungPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.insets = new Insets(0, 10, 10, 10);\n panel3.add(zahlungenVorrechnungPanel, gbc);\n zahlungenVorrechnungPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Zahlungen Vorrechnung\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, this.$$$getFont$$$(null, Font.BOLD, -1, zahlungenVorrechnungPanel.getFont()), null));\n final JPanel panel20 = new JPanel();\n panel20.setLayout(new GridBagLayout());\n zahlungenVorrechnungPanel.add(panel20, 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, null, null, 0, false));\n final JLabel label48 = new JLabel();\n label48.setText(\"1. Zahlung:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel20.add(label48, gbc);\n final JPanel spacer122 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel20.add(spacer122, gbc);\n final JPanel spacer123 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel20.add(spacer123, gbc);\n txtBetragZahlung1Vorrechnung = new JTextField();\n txtBetragZahlung1Vorrechnung.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel20.add(txtBetragZahlung1Vorrechnung, gbc);\n final JPanel spacer124 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel20.add(spacer124, gbc);\n final JPanel spacer125 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel20.add(spacer125, gbc);\n final JPanel spacer126 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 60;\n panel20.add(spacer126, gbc);\n final JPanel spacer127 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 40;\n panel20.add(spacer127, gbc);\n final JLabel label49 = new JLabel();\n label49.setText(\"Datum:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel20.add(label49, gbc);\n txtDatumZahlung1Vorrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel20.add(txtDatumZahlung1Vorrechnung, gbc);\n final JPanel spacer128 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 70;\n panel20.add(spacer128, gbc);\n final JPanel spacer129 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 90;\n panel20.add(spacer129, gbc);\n final JPanel spacer130 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 6;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel20.add(spacer130, gbc);\n errLblBetragZahlung1Vorrechnung = new JLabel();\n errLblBetragZahlung1Vorrechnung.setText(\"errLblBetragZahlung1V\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel20.add(errLblBetragZahlung1Vorrechnung, gbc);\n errLblDatumZahlung1Vorrechnung = new JLabel();\n errLblDatumZahlung1Vorrechnung.setText(\"errLblDatumZahlung1V\");\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 1;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel20.add(errLblDatumZahlung1Vorrechnung, gbc);\n final JLabel label50 = new JLabel();\n label50.setText(\"2. Zahlung:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n panel20.add(label50, gbc);\n final JPanel spacer131 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel20.add(spacer131, gbc);\n txtBetragZahlung2Vorrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel20.add(txtBetragZahlung2Vorrechnung, gbc);\n errLblBetragZahlung2Vorrechnung = new JLabel();\n errLblBetragZahlung2Vorrechnung.setText(\"errLblBetragZahlung2V\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 3;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel20.add(errLblBetragZahlung2Vorrechnung, gbc);\n final JLabel label51 = new JLabel();\n label51.setText(\"Datum:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n panel20.add(label51, gbc);\n txtDatumZahlung2Vorrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel20.add(txtDatumZahlung2Vorrechnung, gbc);\n errLblDatumZahlung2Vorrechnung = new JLabel();\n errLblDatumZahlung2Vorrechnung.setText(\"errLblDatumZahlung2V\");\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 3;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel20.add(errLblDatumZahlung2Vorrechnung, gbc);\n final JPanel panel21 = new JPanel();\n panel21.setLayout(new GridBagLayout());\n zahlungenVorrechnungPanel.add(panel21, new GridConstraints(0, 1, 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 final JLabel label52 = new JLabel();\n label52.setText(\"3. Zahlung:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel21.add(label52, gbc);\n final JPanel spacer132 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.fill = GridBagConstraints.VERTICAL;\n gbc.ipady = 6;\n panel21.add(spacer132, gbc);\n txtBetragZahlung3Vorrechnung = new JTextField();\n txtBetragZahlung3Vorrechnung.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel21.add(txtBetragZahlung3Vorrechnung, gbc);\n final JPanel spacer133 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel21.add(spacer133, gbc);\n final JPanel spacer134 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel21.add(spacer134, gbc);\n final JPanel spacer135 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 150;\n panel21.add(spacer135, gbc);\n final JPanel spacer136 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 60;\n panel21.add(spacer136, gbc);\n final JPanel spacer137 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 40;\n panel21.add(spacer137, gbc);\n errLblBetragZahlung3Vorrechnung = new JLabel();\n errLblBetragZahlung3Vorrechnung.setText(\"errLblBetragZahlung3V\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel21.add(errLblBetragZahlung3Vorrechnung, gbc);\n final JPanel spacer138 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 70;\n panel21.add(spacer138, gbc);\n final JPanel spacer139 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.ipadx = 90;\n panel21.add(spacer139, gbc);\n final JPanel spacer140 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 6;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel21.add(spacer140, gbc);\n final JLabel label53 = new JLabel();\n label53.setText(\"Datum:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel21.add(label53, gbc);\n txtDatumZahlung3Vorrechnung = new JTextField();\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel21.add(txtDatumZahlung3Vorrechnung, gbc);\n errLblDatumZahlung3Vorrechnung = new JLabel();\n errLblDatumZahlung3Vorrechnung.setText(\"errLblDatumZahlung3V\");\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 1;\n gbc.gridwidth = 2;\n gbc.anchor = GridBagConstraints.WEST;\n panel21.add(errLblDatumZahlung3Vorrechnung, gbc);\n final JLabel label54 = new JLabel();\n Font label54Font = this.$$$getFont$$$(null, Font.BOLD, -1, label54.getFont());\n if (label54Font != null) label54.setFont(label54Font);\n label54.setForeground(new Color(-16776961));\n label54.setText(\"Restbetrag:\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n panel21.add(label54, gbc);\n lblRestbetragVorrechnung = new JLabel();\n Font lblRestbetragVorrechnungFont = this.$$$getFont$$$(null, Font.BOLD, -1, lblRestbetragVorrechnung.getFont());\n if (lblRestbetragVorrechnungFont != null) lblRestbetragVorrechnung.setFont(lblRestbetragVorrechnungFont);\n lblRestbetragVorrechnung.setForeground(new Color(-16776961));\n lblRestbetragVorrechnung.setText(\"Restbetrag\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 4;\n gbc.anchor = GridBagConstraints.WEST;\n panel21.add(lblRestbetragVorrechnung, gbc);\n final JPanel spacer141 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel21.add(spacer141, gbc);\n final JPanel spacer142 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 7;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel21.add(spacer142, gbc);\n buttonPanel = new JPanel();\n buttonPanel.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.BOTH;\n panel2.add(buttonPanel, gbc);\n final JPanel panel22 = new JPanel();\n panel22.setLayout(new GridBagLayout());\n buttonPanel.add(panel22, 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, null, null, 0, false));\n lblScrollPosition = new JLabel();\n lblScrollPosition.setText(\"Scroll-Position\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n panel22.add(lblScrollPosition, gbc);\n final JPanel spacer143 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel22.add(spacer143, gbc);\n final JPanel spacer144 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel22.add(spacer144, gbc);\n final JPanel spacer145 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 6;\n gbc.gridy = 1;\n gbc.gridwidth = 2;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel22.add(spacer145, gbc);\n btnErster = new JButton();\n btnErster.setMaximumSize(new Dimension(143, 29));\n btnErster.setMinimumSize(new Dimension(143, 29));\n btnErster.setPreferredSize(new Dimension(143, 29));\n btnErster.setText(\"Erster\");\n btnErster.setMnemonic('E');\n btnErster.setDisplayedMnemonicIndex(0);\n gbc = new GridBagConstraints();\n gbc.gridx = 8;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel22.add(btnErster, gbc);\n final JPanel spacer146 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 9;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel22.add(spacer146, gbc);\n btnVorheriger = new JButton();\n btnVorheriger.setMaximumSize(new Dimension(143, 29));\n btnVorheriger.setMinimumSize(new Dimension(143, 29));\n btnVorheriger.setPreferredSize(new Dimension(143, 29));\n btnVorheriger.setText(\"Vorheriger\");\n btnVorheriger.setMnemonic('V');\n btnVorheriger.setDisplayedMnemonicIndex(0);\n gbc = new GridBagConstraints();\n gbc.gridx = 10;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel22.add(btnVorheriger, gbc);\n btnSpeichern = new JButton();\n btnSpeichern.setMaximumSize(new Dimension(114, 29));\n btnSpeichern.setMinimumSize(new Dimension(114, 29));\n btnSpeichern.setPreferredSize(new Dimension(114, 29));\n btnSpeichern.setText(\"Speichern\");\n btnSpeichern.setMnemonic('S');\n btnSpeichern.setDisplayedMnemonicIndex(0);\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel22.add(btnSpeichern, gbc);\n btnVerwerfen = new JButton();\n btnVerwerfen.setMaximumSize(new Dimension(114, 29));\n btnVerwerfen.setMinimumSize(new Dimension(114, 29));\n btnVerwerfen.setPreferredSize(new Dimension(114, 29));\n btnVerwerfen.setText(\"Verwerfen\");\n btnVerwerfen.setMnemonic('W');\n btnVerwerfen.setDisplayedMnemonicIndex(3);\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel22.add(btnVerwerfen, gbc);\n final JPanel spacer147 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel22.add(spacer147, gbc);\n final JPanel spacer148 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel22.add(spacer148, gbc);\n final JPanel spacer149 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel22.add(spacer149, gbc);\n final JPanel panel23 = new JPanel();\n panel23.setLayout(new GridBagLayout());\n buttonPanel.add(panel23, new GridConstraints(0, 1, 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 btnNachfolgender = new JButton();\n btnNachfolgender.setMaximumSize(new Dimension(143, 29));\n btnNachfolgender.setMinimumSize(new Dimension(143, 29));\n btnNachfolgender.setPreferredSize(new Dimension(143, 29));\n btnNachfolgender.setText(\"Nachfolgender\");\n btnNachfolgender.setMnemonic('N');\n btnNachfolgender.setDisplayedMnemonicIndex(0);\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel23.add(btnNachfolgender, gbc);\n final JPanel spacer150 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel23.add(spacer150, gbc);\n final JPanel spacer151 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel23.add(spacer151, gbc);\n final JPanel spacer152 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel23.add(spacer152, gbc);\n btnLetzter = new JButton();\n btnLetzter.setMaximumSize(new Dimension(143, 29));\n btnLetzter.setMinimumSize(new Dimension(143, 29));\n btnLetzter.setPreferredSize(new Dimension(143, 29));\n btnLetzter.setText(\"Letzter\");\n btnLetzter.setMnemonic('L');\n btnLetzter.setDisplayedMnemonicIndex(0);\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel23.add(btnLetzter, gbc);\n final JPanel spacer153 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel23.add(spacer153, gbc);\n final JPanel spacer154 = new JPanel();\n gbc = new GridBagConstraints();\n gbc.gridx = 5;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel23.add(spacer154, gbc);\n btnZurueck = new JButton();\n btnZurueck.setMaximumSize(new Dimension(114, 29));\n btnZurueck.setMinimumSize(new Dimension(114, 29));\n btnZurueck.setPreferredSize(new Dimension(114, 29));\n btnZurueck.setText(\"Zurück\");\n btnZurueck.setMnemonic('Z');\n btnZurueck.setDisplayedMnemonicIndex(0);\n gbc = new GridBagConstraints();\n gbc.gridx = 4;\n gbc.gridy = 1;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n panel23.add(btnZurueck, gbc);\n label7.setLabelFor(txtErmaessigungVorrechnung);\n label8.setLabelFor(txtZuschlagVorrechnung);\n errLblWochenbetragVorrechnung.setLabelFor(txtWochenbetragVorrechnung);\n label18.setLabelFor(txtRechnungsdatumVorrechnung);\n label19.setLabelFor(txtErmaessigungsgrundVorrechnung);\n label22.setLabelFor(txtRechnungsdatumNachrechnung);\n label23.setLabelFor(txtErmaessigungNachrechnung);\n label24.setLabelFor(txtZuschlagNachrechnung);\n label25.setLabelFor(txtAnzahlWochenNachrechnung);\n label35.setLabelFor(txtErmaessigungsgrundNachrechnung);\n label36.setLabelFor(txtZuschlagsgrundNachrechnung);\n label37.setLabelFor(txtBetragZahlung1Nachrechnung);\n label38.setLabelFor(txtDatumZahlung1Nachrechnung);\n label39.setLabelFor(txtBetragZahlung2Nachrechnung);\n label40.setLabelFor(txtDatumZahlung2Nachrechnung);\n label41.setLabelFor(txtBetragZahlung3Nachrechnung);\n label42.setLabelFor(txtDatumZahlung3Nachrechnung);\n label46.setLabelFor(comboBoxStipendium);\n label48.setLabelFor(txtBetragZahlung1Vorrechnung);\n label49.setLabelFor(txtDatumZahlung1Vorrechnung);\n label50.setLabelFor(txtBetragZahlung2Vorrechnung);\n label51.setLabelFor(txtDatumZahlung2Vorrechnung);\n label52.setLabelFor(txtBetragZahlung3Vorrechnung);\n label53.setLabelFor(txtDatumZahlung3Vorrechnung);\n }", "private void tablesice() {\n //Modificamos los tamaños de las columnas.\n tablastock.getColumnModel().getColumn(0).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(1).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(2).setMinWidth(100);\n tablastock.getColumnModel().getColumn(3).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(4).setMaxWidth(70);\n tablastock.getColumnModel().getColumn(5).setMaxWidth(70);\n }", "@Override\r\n public void start(Stage primaryStage) {\n pane.setAlignment(Pos.TOP_LEFT);\r\n pane.setHgap(2);\r\n pane.setVgap(15);\r\n pane.setPadding(new Insets(10));\r\n ColumnConstraints column1 = new ColumnConstraints(100);\r\n ColumnConstraints column2 = new ColumnConstraints(50, 150, 300);\r\n column2.setHgrow(Priority.ALWAYS);\r\n pane.getColumnConstraints().addAll(column1, column2);\r\n\r\n pane.add(new Label(\"USER1:\"), 0, 0);\r\n pane.add(new Label(\"USER2:\"), 0, 1);\r\n pane.add(new Label(\"USER3:\"), 0, 2);\r\n pane.add(new Label(\"USER4:\"), 0, 3);\r\n\r\n pane.add(new Label(\"DISK1:\"), 0, 4);\r\n pane.add(new Label(\"DISK2:\"), 0, 5);\r\n\r\n pane.add(new Label(\"PRINTER1:\"), 0, 6);\r\n pane.add(new Label(\"PRINTER2:\"), 0, 7);\r\n pane.add(new Label(\"PRINTER3:\"), 0, 8);\r\n\r\n Scene scene = new Scene(pane, 380, 450);\r\n\r\n primaryStage.setTitle(\"141OS\");\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n }", "protected void CreateWindow(){\n\t\tdouble[] colWeight = {1,1,1,1,1,1};\n\t\tdouble[] rowWeight = {5,1,1,1,1};\n\t\tint[] colWidth = {1,1,1,1,1,1};\n\t\tint[] rowHeight = {5,1,1,1,1};\n\t\t\n\t\t//creates new GridBagLayout and the Constraints for it\n\t\tGridBagLayout normal = new GridBagLayout();\n\t\t\n\t\tGridBagConstraints constrain = new GridBagConstraints();\n\t\t\n\t\tnormal.rowHeights = rowHeight;\n\t\tnormal.columnWidths = colWidth;\n\t\tnormal.columnWeights = colWeight;\n\t\tnormal.rowWeights = rowWeight;\n\t\t\n\t\tsetBounds(100,100,400,600);\n\t\tsetLayout(normal);\n\t\t\n\t\t//create messagefield. set the Grid Layout for it.\n\t\tchatDisplay.messageField.setSize(300, 500);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 5;\n\t\tconstrain.gridheight = 18;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 0;\n\t\tconstrain.gridy = 0;\n\t\tnormal.setConstraints(chatDisplay.messageField, constrain);\n\t\t\n\t\t//create input. set the Grid Layout for it.\n\t\tthis.input.setSize(450, 20);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 4;\n\t\tconstrain.gridheight = 2;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 0;\n\t\tconstrain.gridy = 18;\n\t\tnormal.setConstraints(this.input, constrain);\n\t\t\n\t\t//create send button. set the Grid Layout for it.\n\t\tthis.send.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 18;\n\t\tnormal.setConstraints(this.send, constrain);\n\t\t\n\t\tthis.quit.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 19;\n\t\tnormal.setConstraints(this.quit, constrain);\n\t\t\n\t\tthis.server.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 20;\n\t\tnormal.setConstraints(this.server, constrain);\n\t\t\n\t\tthis.client.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 21;\n\t\tnormal.setConstraints(this.client, constrain);\n\t\t\n\t\t//add the fields...\n\t\tadd(this.input);\n\t\tadd(chatDisplay.messageField);\n\t\tadd(this.send);\n\t\tadd(this.quit);\n\t\tadd(this.server);\n\t\tadd(this.client);\n\t\t\n\t\t//set windowlistener and set the window resizability to true\n\t\taddWindowListener(this);\n\t\tsetResizable(true);\n\t\t\n\t\t//adds action listeners for use later on.\n\t\tinput.addActionListener(this);\n\t\tsend.addActionListener(this);\n\t\tquit.addActionListener(this);\n\t\tserver.addActionListener(this);\n\t\tclient.addActionListener(this);\n\t\t\n\t\tthis.setVisible(true);\n\t\t\n\t\trun();\n\t}", "private void $$$setupUI$$$ ()\n {\n contentPane = new JPanel();\n contentPane.setLayout(new BorderLayout(0, 0));\n contentPane.setBackground(new Color(-16777216));\n contentPane.setPreferredSize(new Dimension(300, 100));\n contentPane.setRequestFocusEnabled(false);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n panel1.setBackground(new Color(-16777216));\n panel1.setPreferredSize(new Dimension(200, 50));\n contentPane.add(panel1, BorderLayout.SOUTH);\n buttonOK = new JButton();\n buttonOK.setPreferredSize(new Dimension(100, 31));\n buttonOK.setText(\"OK\");\n panel1.add(buttonOK);\n final JLabel label1 = new JLabel();\n label1.setPreferredSize(new Dimension(30, 10));\n label1.setText(\"\");\n panel1.add(label1);\n buttonCancel = new JButton();\n buttonCancel.setPreferredSize(new Dimension(100, 31));\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel);\n textField1 = new JTextField();\n textField1.setBackground(new Color(-15987184));\n Font textField1Font = Tools.getFont(\"Arial\", -1, 20, textField1.getFont());\n if (textField1Font != null)\n {\n textField1.setFont(textField1Font);\n }\n textField1.setForeground(new Color(-1));\n textField1.setHorizontalAlignment(0);\n textField1.setOpaque(false);\n textField1.setPreferredSize(new Dimension(300, 50));\n contentPane.add(textField1, BorderLayout.CENTER);\n final JLabel label2 = new JLabel();\n label2.setPreferredSize(new Dimension(11, 11));\n label2.setText(\" \");\n contentPane.add(label2, BorderLayout.WEST);\n final JLabel label3 = new JLabel();\n label3.setPreferredSize(new Dimension(11, 11));\n label3.setText(\" \");\n contentPane.add(label3, BorderLayout.EAST);\n final JLabel label4 = new JLabel();\n label4.setPreferredSize(new Dimension(11, 11));\n label4.setText(\"\");\n contentPane.add(label4, BorderLayout.NORTH);\n }", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(5, 5, new Insets(5, 5, 5, 5), -1, -1));\n final JLabel label1 = new JLabel();\n label1.setText(\"Client\");\n panel1.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 JLabel label2 = new JLabel();\n label2.setText(\"Server\");\n panel1.add(label2, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel1.add(scrollPane1, new GridConstraints(1, 0, 1, 5, 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 textArea1 = new JTextArea();\n textArea1.setText(\"\");\n scrollPane1.setViewportView(textArea1);\n final JScrollPane scrollPane2 = new JScrollPane();\n panel1.add(scrollPane2, new GridConstraints(3, 0, 1, 5, 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 textArea2 = new JTextArea();\n scrollPane2.setViewportView(textArea2);\n closeButton = new JButton();\n closeButton.setText(\"Close\");\n panel1.add(closeButton, new GridConstraints(4, 4, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public dodaj1() {\n\t\tsetTitle(\"DODAJ KLIENTA\");\n\t\tsetBounds(100, 100, 450, 321);\n\t\tGridBagLayout gridBagLayout = new GridBagLayout();\n\t\tgridBagLayout.columnWidths = new int[]{434, 0};\n\t\tgridBagLayout.rowHeights = new int[]{155, 33, 0};\n\t\tgridBagLayout.columnWeights = new double[]{1.0, Double.MIN_VALUE};\n\t\tgridBagLayout.rowWeights = new double[]{1.0, 1.0, Double.MIN_VALUE};\n\t\tgetContentPane().setLayout(gridBagLayout);\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tGridBagConstraints gbc_contentPanel = new GridBagConstraints();\n\t\tgbc_contentPanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_contentPanel.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_contentPanel.gridx = 0;\n\t\tgbc_contentPanel.gridy = 0;\n\t\tgetContentPane().add(contentPanel, gbc_contentPanel);\n\t\tGridBagLayout gbl_contentPanel = new GridBagLayout();\n\t\tgbl_contentPanel.columnWidths = new int[]{0, 0, 0};\n\t\tgbl_contentPanel.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tgbl_contentPanel.columnWeights = new double[]{0.0, 1.0, Double.MIN_VALUE};\n\t\tgbl_contentPanel.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};\n\t\tcontentPanel.setLayout(gbl_contentPanel);\n\t\t{\n\t\t\tJLabel lblImie = new JLabel(\"imie\");\n\t\t\tGridBagConstraints gbc_lblImie = new GridBagConstraints();\n\t\t\tgbc_lblImie.anchor = GridBagConstraints.WEST;\n\t\t\tgbc_lblImie.insets = new Insets(0, 0, 5, 5);\n\t\t\tgbc_lblImie.gridx = 0;\n\t\t\tgbc_lblImie.gridy = 0;\n\t\t\tcontentPanel.add(lblImie, gbc_lblImie);\n\t\t}\n\t\t{\n\t\t\ttextField = new JTextField();\n\t\t\tGridBagConstraints gbc_textField = new GridBagConstraints();\n\t\t\tgbc_textField.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tgbc_textField.insets = new Insets(0, 0, 5, 0);\n\t\t\tgbc_textField.gridx = 1;\n\t\t\tgbc_textField.gridy = 0;\n\t\t\tcontentPanel.add(textField, gbc_textField);\n\t\t\ttextField.setColumns(10);\n\t\t}\n\t\t{\n\t\t\tJLabel lblNazwisko = new JLabel(\"nazwisko\");\n\t\t\tGridBagConstraints gbc_lblNazwisko = new GridBagConstraints();\n\t\t\tgbc_lblNazwisko.anchor = GridBagConstraints.WEST;\n\t\t\tgbc_lblNazwisko.insets = new Insets(0, 0, 5, 5);\n\t\t\tgbc_lblNazwisko.gridx = 0;\n\t\t\tgbc_lblNazwisko.gridy = 1;\n\t\t\tcontentPanel.add(lblNazwisko, gbc_lblNazwisko);\n\t\t}\n\t\t{\n\t\t\ttextField_1 = new JTextField();\n\t\t\tGridBagConstraints gbc_textField_1 = new GridBagConstraints();\n\t\t\tgbc_textField_1.insets = new Insets(0, 0, 5, 0);\n\t\t\tgbc_textField_1.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tgbc_textField_1.gridx = 1;\n\t\t\tgbc_textField_1.gridy = 1;\n\t\t\tcontentPanel.add(textField_1, gbc_textField_1);\n\t\t\ttextField_1.setColumns(10);\n\t\t}\n\t\t{\n\t\t\tJLabel lblPesel = new JLabel(\"pesel\");\n\t\t\tGridBagConstraints gbc_lblPesel = new GridBagConstraints();\n\t\t\tgbc_lblPesel.insets = new Insets(0, 0, 5, 5);\n\t\t\tgbc_lblPesel.anchor = GridBagConstraints.WEST;\n\t\t\tgbc_lblPesel.gridx = 0;\n\t\t\tgbc_lblPesel.gridy = 2;\n\t\t\tcontentPanel.add(lblPesel, gbc_lblPesel);\n\t\t}\n\t\t{\n\t\t\ttextField_2 = new JTextField();\n\t\t\tGridBagConstraints gbc_textField_2 = new GridBagConstraints();\n\t\t\tgbc_textField_2.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tgbc_textField_2.insets = new Insets(0, 0, 5, 0);\n\t\t\tgbc_textField_2.gridx = 1;\n\t\t\tgbc_textField_2.gridy = 2;\n\t\t\tcontentPanel.add(textField_2, gbc_textField_2);\n\t\t\ttextField_2.setColumns(10);\n\t\t}\n\t\t{\n\t\t\tJLabel lblUlica = new JLabel(\"ulica\");\n\t\t\tGridBagConstraints gbc_lblUlica = new GridBagConstraints();\n\t\t\tgbc_lblUlica.insets = new Insets(0, 0, 5, 5);\n\t\t\tgbc_lblUlica.anchor = GridBagConstraints.WEST;\n\t\t\tgbc_lblUlica.gridx = 0;\n\t\t\tgbc_lblUlica.gridy = 3;\n\t\t\tcontentPanel.add(lblUlica, gbc_lblUlica);\n\t\t}\n\t\t{\n\t\t\ttextField_3 = new JTextField();\n\t\t\tGridBagConstraints gbc_textField_3 = new GridBagConstraints();\n\t\t\tgbc_textField_3.insets = new Insets(0, 0, 5, 0);\n\t\t\tgbc_textField_3.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tgbc_textField_3.gridx = 1;\n\t\t\tgbc_textField_3.gridy = 3;\n\t\t\tcontentPanel.add(textField_3, gbc_textField_3);\n\t\t\ttextField_3.setColumns(10);\n\t\t}\n\t\t{\n\t\t\tJLabel lblNrDomu = new JLabel(\"nr domu\");\n\t\t\tGridBagConstraints gbc_lblNrDomu = new GridBagConstraints();\n\t\t\tgbc_lblNrDomu.insets = new Insets(0, 0, 5, 5);\n\t\t\tgbc_lblNrDomu.anchor = GridBagConstraints.WEST;\n\t\t\tgbc_lblNrDomu.gridx = 0;\n\t\t\tgbc_lblNrDomu.gridy = 4;\n\t\t\tcontentPanel.add(lblNrDomu, gbc_lblNrDomu);\n\t\t}\n\t\t{\n\t\t\ttextField_4 = new JTextField();\n\t\t\tGridBagConstraints gbc_textField_4 = new GridBagConstraints();\n\t\t\tgbc_textField_4.insets = new Insets(0, 0, 5, 0);\n\t\t\tgbc_textField_4.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tgbc_textField_4.gridx = 1;\n\t\t\tgbc_textField_4.gridy = 4;\n\t\t\tcontentPanel.add(textField_4, gbc_textField_4);\n\t\t\ttextField_4.setColumns(10);\n\t\t}\n\t\t{\n\t\t\tJLabel lblKodPocztowy = new JLabel(\"kod pocztowy\");\n\t\t\tGridBagConstraints gbc_lblKodPocztowy = new GridBagConstraints();\n\t\t\tgbc_lblKodPocztowy.insets = new Insets(0, 0, 5, 5);\n\t\t\tgbc_lblKodPocztowy.anchor = GridBagConstraints.WEST;\n\t\t\tgbc_lblKodPocztowy.gridx = 0;\n\t\t\tgbc_lblKodPocztowy.gridy = 5;\n\t\t\tcontentPanel.add(lblKodPocztowy, gbc_lblKodPocztowy);\n\t\t}\n\t\t{\n\t\t\ttextField_5 = new JTextField();\n\t\t\tGridBagConstraints gbc_textField_5 = new GridBagConstraints();\n\t\t\tgbc_textField_5.insets = new Insets(0, 0, 5, 0);\n\t\t\tgbc_textField_5.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tgbc_textField_5.gridx = 1;\n\t\t\tgbc_textField_5.gridy = 5;\n\t\t\tcontentPanel.add(textField_5, gbc_textField_5);\n\t\t\ttextField_5.setColumns(10);\n\t\t}\n\t\t{\n\t\t\tJLabel lblMiasto = new JLabel(\"miasto\");\n\t\t\tGridBagConstraints gbc_lblMiasto = new GridBagConstraints();\n\t\t\tgbc_lblMiasto.insets = new Insets(0, 0, 5, 5);\n\t\t\tgbc_lblMiasto.anchor = GridBagConstraints.WEST;\n\t\t\tgbc_lblMiasto.gridx = 0;\n\t\t\tgbc_lblMiasto.gridy = 6;\n\t\t\tcontentPanel.add(lblMiasto, gbc_lblMiasto);\n\t\t}\n\t\t{\n\t\t\ttextField_6 = new JTextField();\n\t\t\tGridBagConstraints gbc_textField_6 = new GridBagConstraints();\n\t\t\tgbc_textField_6.insets = new Insets(0, 0, 5, 0);\n\t\t\tgbc_textField_6.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tgbc_textField_6.gridx = 1;\n\t\t\tgbc_textField_6.gridy = 6;\n\t\t\tcontentPanel.add(textField_6, gbc_textField_6);\n\t\t\ttextField_6.setColumns(10);\n\t\t}\n\t\t{\n\t\t\tJLabel lblKraj = new JLabel(\"kraj\");\n\t\t\tGridBagConstraints gbc_lblKraj = new GridBagConstraints();\n\t\t\tgbc_lblKraj.anchor = GridBagConstraints.WEST;\n\t\t\tgbc_lblKraj.insets = new Insets(0, 0, 0, 5);\n\t\t\tgbc_lblKraj.gridx = 0;\n\t\t\tgbc_lblKraj.gridy = 7;\n\t\t\tcontentPanel.add(lblKraj, gbc_lblKraj);\n\t\t}\n\t\t{\n\t\t\ttextField_7 = new JTextField();\n\t\t\tGridBagConstraints gbc_textField_7 = new GridBagConstraints();\n\t\t\tgbc_textField_7.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tgbc_textField_7.gridx = 1;\n\t\t\tgbc_textField_7.gridy = 7;\n\t\t\tcontentPanel.add(textField_7, gbc_textField_7);\n\t\t\ttextField_7.setColumns(10);\n\t\t}\n\t\t{\n\t\t\tJPanel buttonPane = new JPanel();\n\t\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\t\tGridBagConstraints gbc_buttonPane = new GridBagConstraints();\n\t\t\tgbc_buttonPane.anchor = GridBagConstraints.SOUTH;\n\t\t\tgbc_buttonPane.fill = GridBagConstraints.HORIZONTAL;\n\t\t\tgbc_buttonPane.gridx = 0;\n\t\t\tgbc_buttonPane.gridy = 1;\n\t\t\tgetContentPane().add(buttonPane, gbc_buttonPane);\n\t\t\t{\n\t\t\t\tJButton okButton = new JButton(\"OK\");\n\t\t\t\tokButton.setActionCommand(\"OK\");\n\t\t\t\tokButton.addActionListener(new ClickListener());\n\t\t\t\tbuttonPane.add(okButton);\n\t\t\t\tgetRootPane().setDefaultButton(okButton);\n\t\t\t}\n\t\t\t{\n\t\t\t\tJButton cancelButton = new JButton(\"Cancel\");\n\t\t\t\tcancelButton.setActionCommand(\"Cancel\");\n\t\t\t\tcancelButton.addActionListener(new ClickListener());\n\t\t\t\tbuttonPane.add(cancelButton);\n\t\t\t}\n\t\t}\n\t}", "private void $$$setupUI$$$()\n {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(6, 1, new Insets(20, 20, 20, 20), -1, -1));\n panel.setAutoscrolls(true);\n buttonSettings = new JButton();\n buttonSettings.setEnabled(true);\n buttonSettings.setText(\"Open Application Settings\");\n panel.add(buttonSettings,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonStartGit = new JButton();\n buttonStartGit.setEnabled(true);\n buttonStartGit.setText(\"Start Git Management\");\n panel.add(buttonStartGit,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n null, new Dimension(500, 500), null, 0, false));\n textPaneConsole = new JTextPane();\n textPaneConsole.setEditable(false);\n scrollPane1.setViewportView(textPaneConsole);\n buttonOpenBenchmarkDialog = new JButton();\n buttonOpenBenchmarkDialog.setText(\"Open YCSB Benchmark Dialog\");\n panel.add(buttonOpenBenchmarkDialog,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonShowGitSettings = new JButton();\n buttonShowGitSettings.setEnabled(true);\n buttonShowGitSettings.setText(\"Open Git Management\");\n panel.add(buttonShowGitSettings,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Console Output\");\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null,\n null, null, 0, false));\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(new MigLayout(\"\", \"[grow,left][grow 20][grow,right]\", \"[][][][][][]\"));\r\n\t\t\r\n\t\tlblJoueur_1 = new JLabel(\"Joueur 1 :\");\r\n\t\tframe.getContentPane().add(lblJoueur_1, \"cell 0 1,alignx right\");\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\tframe.getContentPane().add(textField_1, \"cell 2 1,growx\");\r\n\t\ttextField_1.setColumns(10);\r\n\t\t\r\n\t\tlblJoueur_2 = new JLabel(\"Joueur 2 :\");\r\n\t\tframe.getContentPane().add(lblJoueur_2, \"cell 0 3,alignx right\");\r\n\t\t\r\n\t\ttextField_2 = new JTextField();\r\n\t\tframe.getContentPane().add(textField_2, \"cell 2 3,growx\");\r\n\t\ttextField_2.setColumns(10);\r\n\t\t\r\n\t\tJButton btnOk = new JButton(\"OK\");\r\n\t\tframe.getContentPane().add(btnOk, \"cell 1 5,alignx center\");\r\n\t\t\r\n\t\tbtnOk.addActionListener(actionOK);\r\n\t\t\r\n\t\t\r\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshell.setSize(750, 450);\n\t\tshell.setText(\"Sensitivity Analysis for: \" + parentNode.getName());\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tsashForm = new SashForm(shell, SWT.NONE);\n\n\t\tscrolledComposite = new ScrolledComposite(sashForm, SWT.BORDER\n\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\n\t\tSaCriterionListComp = new Composite(scrolledComposite, SWT.NONE);\n\t\tSaCriterionListComp.setLayout(new RowLayout(SWT.VERTICAL));\n\n\t\t// Create a criterion weighting SaCriterionListComp for every criterion\n\t\tweightingSelectComponents = new SaCriterionWeightingSelectComp[c.length];\n\n\t\tArrayList<Criterion> criteria = parentNode.getCriteria();\n\t\tfor (int i = 0; i < c.length; i++) {\n\n\t\t\tSaCriterionWeightingSelectComp scwsc = new SaCriterionWeightingSelectComp(\n\t\t\t\t\tSaCriterionListComp, SWT.None, criteria.get(i), c[i], i);\n\n\t\t\tscwsc.addWeightingChangedListener(new SaCriterionWeightingChangedListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void doCriterionWeightingChanged(\n\t\t\t\t\t\tSaCriterionWeightingChangedEvent e) {\n\t\t\t\t\tupdateCriteriaWeightings(e.getCriterionIndex(),\n\t\t\t\t\t\t\te.getNewValue());\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tweightingSelectComponents[i] = scwsc;\n\t\t}\n\n\t\tscrolledComposite.setContent(SaCriterionListComp);\n\t\tscrolledComposite.setMinSize(SaCriterionListComp.computeSize(\n\t\t\t\tSWT.DEFAULT, SWT.DEFAULT));\n\n\t\tscrolledComposite_1 = new ScrolledComposite(sashForm, SWT.BORDER\n\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tscrolledComposite_1.setExpandHorizontal(true);\n\t\tscrolledComposite_1.setExpandVertical(true);\n\n\t\tSaAlternativeWeighingComp = new Composite(scrolledComposite_1, SWT.NONE);\n\t\tSaAlternativeWeighingComp.setLayout(new RowLayout(SWT.VERTICAL));\n\n\t\t// Create a bar component for every alternative\n\t\talternativeBarComponents = new SaAlternativeWeightingBarComp[a.length];\n\n\t\tfor (int i = 0; i < alternatives.size(); i++) {\n\t\t\tSaAlternativeWeightingBarComp sawc = new SaAlternativeWeightingBarComp(\n\t\t\t\t\tSaAlternativeWeighingComp, SWT.NONE, alternatives.get(i)\n\t\t\t\t\t\t\t.getName(), a[i]);\n\n\t\t\talternativeBarComponents[i] = sawc;\n\t\t}\n\n\t\tscrolledComposite_1.setContent(SaAlternativeWeighingComp);\n\t\tscrolledComposite_1.setMinSize(SaAlternativeWeighingComp.computeSize(\n\t\t\t\tSWT.DEFAULT, SWT.DEFAULT));\n\n\t\tsashForm.setWeights(new int[] { 1, 1 });\n\n\t\tsetBarValues();\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(new FormLayout(new ColumnSpec[] {\r\n\t\t\t\tColumnSpec.decode(\"8dlu\"),\r\n\t\t\t\tColumnSpec.decode(\"15dlu\"),\r\n\t\t\t\tColumnSpec.decode(\"80dlu\"),\r\n\t\t\t\tColumnSpec.decode(\"35dlu\"),\r\n\t\t\t\tColumnSpec.decode(\"15dlu\"),\r\n\t\t\t\tFormSpecs.BUTTON_COLSPEC,\r\n\t\t\t\tColumnSpec.decode(\"12dlu\"),\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tColumnSpec.decode(\"100dlu\"),\r\n\t\t\t\tFormSpecs.BUTTON_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tColumnSpec.decode(\"8dlu\"),},\r\n\t\t\tnew RowSpec[] {\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tRowSpec.decode(\"50dlu\"),\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tRowSpec.decode(\"53dlu\"),\r\n\t\t\t\tFormSpecs.UNRELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.PARAGRAPH_GAP_ROWSPEC,}));\r\n\t\t\r\n\t\tJLabel uxAddCourseLabel = new JLabel(\"Add Course\");\r\n\t\tuxAddCourseLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\r\n\t\tframe.getContentPane().add(uxAddCourseLabel, \"2, 2, 6, 1\");\r\n\t\t\r\n\t\tJLabel uxSearchByLabel = new JLabel(\"Search by\");\r\n\t\tuxSearchByLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\r\n\t\tframe.getContentPane().add(uxSearchByLabel, \"3, 4, 7, 1\");\r\n\t\t\r\n\t\tJLabel uxClickCourseLabel = new JLabel(\"Double Click a Course to Add It\");\r\n\t\tuxClickCourseLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxClickCourseLabel, \"8, 4, 3, 1, left, bottom\");\r\n\t\t\r\n\t\tJLabel uxCourseNumberLabel = new JLabel(\"Course number\");\r\n\t\tuxCourseNumberLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCourseNumberLabel, \"3, 6, 8, 1\");\r\n\t\t\r\n\t\tsearchResults = new DefaultListModel<Course>();\r\n\t\tuxSearchResultsList = new JList<Course>(searchResults);\r\n\t\tuxSearchResultsList.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tuxSearchResultsList.addMouseListener(manager.new ResultsDoubleClickListener());\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane(uxSearchResultsList);\r\n\t\tframe.getContentPane().add(scrollPane, \"8, 6, 3, 24, fill, fill\");\r\n\t\t\r\n\t\tuxCourseNumberField = new JTextField();\r\n\t\tuxCourseNumberField.setText(courseNumberDefaultText);\r\n\t\tuxCourseNumberField.setForeground(Color.GRAY);\r\n\t\tuxCourseNumberField.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCourseNumberField, \"3, 8, 4, 1, fill, default\");\r\n\t\tuxCourseNumberField.setColumns(10);\r\n\t\tuxCourseNumberField.addFocusListener(manager.new TextFieldDefaultHandler());\r\n\t\t\r\n\t\tJLabel uxCourseNameLabel = new JLabel(\"Course name\");\r\n\t\tuxCourseNameLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCourseNameLabel, \"3, 10, 7, 1\");\r\n\t\t\r\n\t\tuxCourseNameField = new JTextField();\r\n\t\tuxCourseNameField.setText(courseNameDefaultText);\r\n\t\tuxCourseNameField.setForeground(Color.GRAY);\r\n\t\tuxCourseNameField.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCourseNameField, \"3, 12, 4, 1, fill, default\");\r\n\t\tuxCourseNameField.setColumns(10);\r\n\t\tuxCourseNameField.addFocusListener(manager.new TextFieldDefaultHandler());\r\n\t\t\r\n\t\tJCheckBox uxCheckBox = new JCheckBox(\"Show Global Campus\");\r\n\t\tuxCheckBox.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCheckBox, \"3, 13, 2, 2\");\r\n\t\tuxCheckBox.addActionListener(manager.new GlobalCampusListener());\r\n\t\t\r\n\t\tJButton uxSearchButton = new JButton(\"Search\");\r\n\t\tuxSearchButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxSearchButton, \"6, 14, 1, 1\");\r\n\t\tuxSearchButton.addActionListener(manager.new SearchButtonListener());\r\n\t\t\r\n\t\tselectedCourses = new DefaultListModel<Course>();\r\n\t\tuxSelectedCoursesList = new JList<Course>(selectedCourses);\r\n\t\tuxSelectedCoursesList.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\t\r\n\t\tJScrollPane scrollPane2 = new JScrollPane(uxSelectedCoursesList);\r\n\t\tframe.getContentPane().add(scrollPane2, \"3, 16, 4, 14, default, fill\");\r\n\t\t\r\n\t\tJButton uxRemoveCourseButton = new JButton(\"Remove Course\");\r\n\t\tuxRemoveCourseButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxRemoveCourseButton, \"4, 31, 3, 1\");\r\n\t\tuxRemoveCourseButton.addActionListener(manager.new RemoveItemButtonListener());\r\n\t\t\r\n\t\tJButton uxCreateScheduleButton = new JButton(\"Create Schedule\");\r\n\t\tuxCreateScheduleButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.getContentPane().add(uxCreateScheduleButton, \"10, 31, 1, 1\");\r\n\t\tuxCreateScheduleButton.addActionListener(manager.new CreateScheduleListener());\r\n\t\t\r\n\t\tframe.getRootPane().setDefaultButton(uxSearchButton);\r\n\t\t\t\t\r\n\t\tframe.pack();\r\n\t\t\r\n\t\tDimension frameSize = frame.getSize();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\r\n\t\tframe.setLocation((int) (0.5 * (screenSize.getWidth() - frameSize.getWidth())), (int) (0.5 * (screenSize.getHeight() - frameSize.getHeight())));\r\n\t}", "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\tGridBagLayout gridBagLayout = new GridBagLayout();\n\t\tgridBagLayout.columnWidths = new int[]{48, 80, 162, 80, 48};\n\t\tgridBagLayout.rowHeights = new int[]{36, 0, 0, 0, 0, 0, 0};\n\t\tgridBagLayout.columnWeights = new double[]{0.0, 1.0, 0.0, 0.0, Double.MIN_VALUE};\n\t\tgridBagLayout.rowWeights = new double[]{0.0, 1.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};\n\t\tframe.getContentPane().setLayout(gridBagLayout);\n\t\t\n\t\tJButton btnAnalysis = new JButton(\"Analysis\");\n\t\tbtnAnalysis.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tStepChoose stepChoose = new StepChoose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tJLabel lblWelcomeTitle = new JLabel(\"welcome title\");\n\t\tlblWelcomeTitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tGridBagConstraints gbc_lblWelcomeTitle = new GridBagConstraints();\n\t\tgbc_lblWelcomeTitle.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblWelcomeTitle.anchor = GridBagConstraints.NORTHWEST;\n\t\tgbc_lblWelcomeTitle.gridx = 2;\n\t\tgbc_lblWelcomeTitle.gridy = 1;\n\t\tframe.getContentPane().add(lblWelcomeTitle, gbc_lblWelcomeTitle);\n\t\tGridBagConstraints gbc_btnAnalysisBtn = new GridBagConstraints();\n\t\tgbc_btnAnalysisBtn.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnAnalysisBtn.gridx = 1;\n\t\tgbc_btnAnalysisBtn.gridy = 4;\n\t\tframe.getContentPane().add(btnAnalysis, gbc_btnAnalysisBtn);\n\t\t\n\t\tJButton btnDecision = new JButton(\"Decision\");\n\t\tGridBagConstraints gbc_btnDecision= new GridBagConstraints();\n\t\tgbc_btnDecision.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_btnDecision.gridx = 3;\n\t\tgbc_btnDecision.gridy = 4;\n\t\tframe.getContentPane().add(btnDecision, gbc_btnDecision);\n\t}", "private void $$$setupUI$$$() {\n adminSelectFunctionPanel = new JPanel();\n adminSelectFunctionPanel.setLayout(new GridLayoutManager(4, 3, new Insets(30, 30, 30, 30), 10, 30, true, false));\n adminSelectFunctionPanel.setBackground(new Color(-1));\n adminSelectFunctionPanel.setForeground(new Color(-1));\n adminSelectFunctionPanel.setMinimumSize(new Dimension(800, 600));\n adminSelectFunctionPanel.setPreferredSize(new Dimension(800, 600));\n changeATMBalanceButton = new JButton();\n changeATMBalanceButton.setBackground(new Color(-10592674));\n Font changeATMBalanceButtonFont = this.$$$getFont$$$(null, -1, 20, changeATMBalanceButton.getFont());\n if (changeATMBalanceButtonFont != null) changeATMBalanceButton.setFont(changeATMBalanceButtonFont);\n changeATMBalanceButton.setForeground(new Color(-1));\n changeATMBalanceButton.setText(\"Change ATM Balance\");\n adminSelectFunctionPanel.add(changeATMBalanceButton, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n changeLocaleButton = new JButton();\n changeLocaleButton.setBackground(new Color(-10592674));\n Font changeLocaleButtonFont = this.$$$getFont$$$(null, -1, 20, changeLocaleButton.getFont());\n if (changeLocaleButtonFont != null) changeLocaleButton.setFont(changeLocaleButtonFont);\n changeLocaleButton.setForeground(new Color(-1));\n changeLocaleButton.setText(\"Change Locale\");\n adminSelectFunctionPanel.add(changeLocaleButton, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n addAdminButton = new JButton();\n addAdminButton.setBackground(new Color(-10592674));\n Font addAdminButtonFont = this.$$$getFont$$$(null, -1, 20, addAdminButton.getFont());\n if (addAdminButtonFont != null) addAdminButton.setFont(addAdminButtonFont);\n addAdminButton.setForeground(new Color(-1));\n addAdminButton.setText(\"Add Admin\");\n adminSelectFunctionPanel.add(addAdminButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n atmStateLabel = new JLabel();\n atmStateLabel.setBackground(new Color(-15024996));\n Font atmStateLabelFont = this.$$$getFont$$$(null, -1, 24, atmStateLabel.getFont());\n if (atmStateLabelFont != null) atmStateLabel.setFont(atmStateLabelFont);\n atmStateLabel.setForeground(new Color(-1));\n atmStateLabel.setHorizontalAlignment(0);\n atmStateLabel.setHorizontalTextPosition(0);\n atmStateLabel.setOpaque(true);\n atmStateLabel.setText(\"\");\n adminSelectFunctionPanel.add(atmStateLabel, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(100, -1), null, 0, false));\n removeAdminButton = new JButton();\n removeAdminButton.setBackground(new Color(-10592674));\n Font removeAdminButtonFont = this.$$$getFont$$$(null, -1, 20, removeAdminButton.getFont());\n if (removeAdminButtonFont != null) removeAdminButton.setFont(removeAdminButtonFont);\n removeAdminButton.setForeground(new Color(-1));\n removeAdminButton.setText(\"Remove Admin\");\n adminSelectFunctionPanel.add(removeAdminButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n queryATMBalanceButton = new JButton();\n queryATMBalanceButton.setBackground(new Color(-10592674));\n Font queryATMBalanceButtonFont = this.$$$getFont$$$(null, -1, 20, queryATMBalanceButton.getFont());\n if (queryATMBalanceButtonFont != null) queryATMBalanceButton.setFont(queryATMBalanceButtonFont);\n queryATMBalanceButton.setForeground(new Color(-1));\n queryATMBalanceButton.setText(\"Query ATM Balance\");\n adminSelectFunctionPanel.add(queryATMBalanceButton, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n toggleStateButton = new JButton();\n toggleStateButton.setBackground(new Color(-10592674));\n Font toggleStateButtonFont = this.$$$getFont$$$(null, -1, 20, toggleStateButton.getFont());\n if (toggleStateButtonFont != null) toggleStateButton.setFont(toggleStateButtonFont);\n toggleStateButton.setForeground(new Color(-1));\n toggleStateButton.setText(\"Toggle State\");\n adminSelectFunctionPanel.add(toggleStateButton, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 100), null, 0, false));\n logoutButton = new JButton();\n logoutButton.setBackground(new Color(-10592674));\n Font logoutButtonFont = this.$$$getFont$$$(null, -1, 20, logoutButton.getFont());\n if (logoutButtonFont != null) logoutButton.setFont(logoutButtonFont);\n logoutButton.setForeground(new Color(-1));\n logoutButton.setText(\"Logout\");\n adminSelectFunctionPanel.add(logoutButton, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(150, 50), null, 0, false));\n }", "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 createContents() {\r\n\t\tshlAjouterNouvelleEquation = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);\r\n\t\tshlAjouterNouvelleEquation.setSize(363, 334);\r\n\t\tif(modification)\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Modifier Equation\");\r\n\t\telse\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Ajouter Nouvelle Equation\");\r\n\t\tshlAjouterNouvelleEquation.setLayout(new FormLayout());\r\n\r\n\r\n\t\tLabel lblContenuEquation = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblContenuEquation = new FormData();\r\n\t\tfd_lblContenuEquation.top = new FormAttachment(0, 5);\r\n\t\tfd_lblContenuEquation.left = new FormAttachment(0, 5);\r\n\t\tlblContenuEquation.setLayoutData(fd_lblContenuEquation);\r\n\t\tlblContenuEquation.setText(\"Contenu Equation\");\r\n\r\n\r\n\t\tcontrainteButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnContrainte = new FormData();\r\n\t\tfd_btnContrainte.top = new FormAttachment(0, 27);\r\n\t\tfd_btnContrainte.right = new FormAttachment(100, -10);\r\n\t\tcontrainteButton.setLayoutData(fd_btnContrainte);\r\n\t\tcontrainteButton.setText(\"Contrainte\");\r\n\r\n\t\torientationButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnOrinet = new FormData();\r\n\t\tfd_btnOrinet.top = new FormAttachment(0, 27);\r\n\t\tfd_btnOrinet.right = new FormAttachment(contrainteButton, -10);\r\n\r\n\t\torientationButton.setLayoutData(fd_btnOrinet);\r\n\t\t\r\n\t\torientationButton.setText(\"Orient\\u00E9\");\r\n\r\n\t\tcontenuEquation = new Text(shlAjouterNouvelleEquation, SWT.BORDER|SWT.SINGLE);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.right = new FormAttachment(orientationButton, -10, SWT.LEFT);\r\n\t\tfd_text.top = new FormAttachment(0, 25);\r\n\t\tfd_text.left = new FormAttachment(0, 5);\r\n\t\tcontenuEquation.setLayoutData(fd_text);\r\n\r\n\t\tcontenuEquation.addListener(SWT.FocusOut, out->{\r\n\t\t\tSystem.out.println(\"Making list...\");\r\n\t\t\ttry {\r\n\t\t\t\tequation.getListeDeParametresEqn_DYNAMIC();\r\n\t\t\t\tif(!btnTerminer.isDisposed()){\r\n\t\t\t\t\tif(!btnTerminer.getEnabled())\r\n\t\t\t\t\t\t btnTerminer.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\tthis.showError(shlAjouterNouvelleEquation, e1.toString());\r\n\t\t\t\t btnTerminer.setEnabled(false);\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\t\r\n\t\t});\r\n\r\n\t\tLabel lblNewLabel = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tfd_lblNewLabel.top = new FormAttachment(0, 51);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 5);\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Param\\u00E8tre de Sortie\");\r\n\r\n\t\tparametreDeSortieCombo = new Combo(shlAjouterNouvelleEquation, SWT.DROP_DOWN |SWT.READ_ONLY);\r\n\t\tparametreDeSortieCombo.setEnabled(false);\r\n\r\n\t\tFormData fd_combo = new FormData();\r\n\t\tfd_combo.top = new FormAttachment(0, 71);\r\n\t\tfd_combo.left = new FormAttachment(0, 5);\r\n\t\tparametreDeSortieCombo.setLayoutData(fd_combo);\r\n\t\tparametreDeSortieCombo.addListener(SWT.FocusIn, in->{\r\n\t\t\tparametreDeSortieCombo.setItems(makeItems.apply(equation.getListeDeParametresEqn()));\r\n\t\t\tparametreDeSortieCombo.pack();\r\n\t\t\tparametreDeSortieCombo.update();\r\n\t\t});\r\n\r\n\t\tSashForm sashForm = new SashForm(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_sashForm = new FormData();\r\n\t\tfd_sashForm.top = new FormAttachment(parametreDeSortieCombo, 6);\r\n\t\tfd_sashForm.bottom = new FormAttachment(100, -50);\r\n\t\tfd_sashForm.right = new FormAttachment(100);\r\n\t\tfd_sashForm.left = new FormAttachment(0, 5);\r\n\t\tsashForm.setLayoutData(fd_sashForm);\r\n\r\n\r\n\r\n\r\n\t\tGroup propertiesGroup = new Group(sashForm, SWT.NONE);\r\n\t\tpropertiesGroup.setLayout(new FormLayout());\r\n\r\n\t\tpropertiesGroup.setText(\"Propri\\u00E9t\\u00E9s\");\r\n\t\tFormData fd_propertiesGroup = new FormData();\r\n\t\tfd_propertiesGroup.top = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.left = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.bottom = new FormAttachment(100, 0);\r\n\t\tfd_propertiesGroup.right = new FormAttachment(100, 0);\r\n\t\tpropertiesGroup.setLayoutData(fd_propertiesGroup);\r\n\r\n\r\n\r\n\r\n\r\n\t\tproperties = new Text(propertiesGroup, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tFormData fd_grouptext = new FormData();\r\n\t\tfd_grouptext.top = new FormAttachment(0,0);\r\n\t\tfd_grouptext.left = new FormAttachment(0, 0);\r\n\t\tfd_grouptext.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grouptext.right = new FormAttachment(100, 0);\r\n\t\tproperties.setLayoutData(fd_grouptext);\r\n\r\n\r\n\r\n\t\tGroup grpDescription = new Group(sashForm, SWT.NONE);\r\n\t\tgrpDescription.setText(\"Description\");\r\n\t\tgrpDescription.setLayout(new FormLayout());\r\n\t\tFormData fd_grpDescription = new FormData();\r\n\t\tfd_grpDescription.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grpDescription.right = new FormAttachment(100,0);\r\n\t\tfd_grpDescription.top = new FormAttachment(0);\r\n\t\tfd_grpDescription.left = new FormAttachment(0);\r\n\t\tgrpDescription.setLayoutData(fd_grpDescription);\r\n\r\n\t\tdescription = new Text(grpDescription, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tdescription.setParent(grpDescription);\r\n\r\n\t\tFormData fd_description = new FormData();\r\n\t\tfd_description.top = new FormAttachment(0,0);\r\n\t\tfd_description.left = new FormAttachment(0, 0);\r\n\t\tfd_description.bottom = new FormAttachment(100, 0);\r\n\t\tfd_description.right = new FormAttachment(100, 0);\r\n\r\n\t\tdescription.setLayoutData(fd_description);\r\n\r\n\r\n\t\tsashForm.setWeights(new int[] {50,50});\r\n\r\n\t\tbtnTerminer = new Button(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tbtnTerminer.setEnabled(false);\r\n\t\tFormData fd_btnTerminer = new FormData();\r\n\t\tfd_btnTerminer.top = new FormAttachment(sashForm, 6);\r\n\t\tfd_btnTerminer.left = new FormAttachment(sashForm,0, SWT.CENTER);\r\n\t\tbtnTerminer.setLayoutData(fd_btnTerminer);\r\n\t\tbtnTerminer.setText(\"Terminer\");\r\n\t\tbtnTerminer.addListener(SWT.Selection, e->{\r\n\t\t\t\r\n\t\t\tboolean go = true;\r\n\t\t\tresult = null;\r\n\t\t\tif (status.equals(ValidationStatus.ok())) {\r\n\t\t\t\t//perform all the neccessary tests before validating the equation\t\t\t\t\t\r\n\t\t\t\tif(equation.isOriented()){\r\n\t\t\t\t\tif(!equation.getListeDeParametresEqn().contains(equation.getParametreDeSortie()) || equation.getParametreDeSortie() == null){\t\t\t\t\t\t\r\n\t\t\t\t\t\tString error = \"Erreur sur l'équation \"+equation.getContenuEqn();\r\n\t\t\t\t\t\tgo = false;\r\n\t\t\t\t\t\tshowError(shlAjouterNouvelleEquation, error);\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (go) {\r\n\t\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tequation.setParametreDeSortie(null);\r\n\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t//Just some cleanup\r\n\t\t\t\t\tfor (Parametre par : equation.getListeDeParametresEqn()) {\r\n\t\t\t\t\t\tif (par.getTypeP().equals(TypeParametre.OUTPUT)) {\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpar.setTypeP(TypeParametre.UNDETERMINED);\r\n\t\t\t\t\t\t\t\tpar.setSousTypeP(SousTypeParametre.FREE);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t//\tSystem.out.println(equation.getContenuEqn() +\"\\n\"+equation.isConstraint()+\"\\n\"+equation.isOriented()+\"\\n\"+equation.getParametreDeSortie());\r\n\t\t});\r\n\r\n\t\t//In this sub routine I bind the values to the respective controls in order to observe changes \r\n\t\t//and verify the data insertion\r\n\t\tbindValues();\r\n\t}", "@Test\n public void testSetSize_1()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n int size = 1;\n\n fixture.setSize(size);\n\n }", "private void $$$setupUI$$$() {\r\n panel1 = new BackGroundPanel();\r\n panel1.setOpaque(false);\r\n panel1.setLayout(new GridLayoutManager(4, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n final Spacer spacer1 = new Spacer();\r\n panel1.add(spacer1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n textPane1 = new JTextArea();\r\n textPane1.setFont(new Font(\"HGMinchoL\", textPane1.getFont().getStyle(), 22));\r\n textPane1.setText(\"\");\r\n textPane1.setEditable(false);\r\n textPane1.setOpaque(false);\r\n panel1.add(textPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"Answer:\");\r\n panel1.add(label1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n textField1 = new JTextField();\r\n panel1.add(textField1, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n SWINGButton = createButton(\"bat\", \"SWING!\");\r\n //SWINGButton.setText(\"SWING\");\r\n panel1.add(SWINGButton, new GridConstraints(3, 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));\r\n formattedTextField1 = new JFormattedTextField();\r\n formattedTextField1.setEditable(false);\r\n formattedTextField1.setFont(new Font(\"HGMinchol\", formattedTextField1.getFont().getStyle(), 22));\r\n panel1.add(formattedTextField1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(4, 4, new Insets(10, 10, 10, 10), -1, -1));\n mainPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null));\n final JLabel label1 = new JLabel();\n label1.setText(\"Title\");\n mainPanel.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 textFieldTitle = new JTextField();\n textFieldTitle.setEditable(false);\n mainPanel.add(textFieldTitle, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Owner\");\n mainPanel.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 textFieldOwner = new JTextField();\n textFieldOwner.setEditable(false);\n mainPanel.add(textFieldOwner, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Last edition\");\n mainPanel.add(label3, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"By\");\n label4.setVerifyInputWhenFocusTarget(true);\n mainPanel.add(label4, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textFieldTimestamp = new JTextField();\n textFieldTimestamp.setEditable(false);\n mainPanel.add(textFieldTimestamp, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n textFieldLastEditor = new JTextField();\n textFieldLastEditor.setEditable(false);\n mainPanel.add(textFieldLastEditor, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n PanelButtons = new JPanel();\n PanelButtons.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(PanelButtons, new GridConstraints(3, 0, 1, 4, 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 shareButton = new JButton();\n shareButton.setText(\"Share\");\n PanelButtons.add(shareButton, 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 closeButton = new JButton();\n closeButton.setText(\"Close\");\n PanelButtons.add(closeButton, new GridConstraints(0, 2, 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 saveButton = new JButton();\n saveButton.setText(\"Save\");\n PanelButtons.add(saveButton, 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 JScrollPane scrollPane1 = new JScrollPane();\n mainPanel.add(scrollPane1, new GridConstraints(2, 0, 1, 4, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 300), null, 0, false));\n textAreaContent = new JTextArea();\n textAreaContent.setLineWrap(true);\n scrollPane1.setViewportView(textAreaContent);\n }", "private void initialize() {\r\n\t\t\r\n\t\tthis.setBounds(100, 100, 500, 350);\r\n\t\tGridBagLayout gridBagLayout = new GridBagLayout();\r\n\t\tgridBagLayout.columnWidths = new int[]{71, 132, 111, 0, 101, 79, 0};\r\n\t\tgridBagLayout.rowHeights = new int[]{-5, 49, 38, 28, 25, 0, 1, 37, 44, 8, 0};\r\n\t\tgridBagLayout.columnWeights = new double[]{1.0, 0.0, 0.0, 0.0, 0.0, 1.0, Double.MIN_VALUE};\r\n\t\tgridBagLayout.rowWeights = new double[]{1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, Double.MIN_VALUE};\r\n\t\tsetLayout(gridBagLayout);\r\n\t\t\r\n\t\tImageIcon icon = new ImageIcon(\"Img/Logo80x80.png\", \"Pródigo\");\r\n\t\tlblTitulo = new JLabel(\"Apofenia\", icon, JLabel.RIGHT);\r\n\t\tGridBagConstraints gbc_lblTitulo = new GridBagConstraints();\r\n\t\tgbc_lblTitulo.gridwidth = 2;\r\n\t\tgbc_lblTitulo.anchor = GridBagConstraints.WEST;\r\n\t\tgbc_lblTitulo.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_lblTitulo.gridx = 1;\r\n\t\tgbc_lblTitulo.gridy = 1;\r\n\t\tadd(lblTitulo, gbc_lblTitulo);\r\n\t\t\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Ingrese el numero\");\r\n\t\tGridBagConstraints gbc_lblNewLabel = new GridBagConstraints();\r\n\t\tgbc_lblNewLabel.anchor = GridBagConstraints.WEST;\r\n\t\tgbc_lblNewLabel.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_lblNewLabel.gridx = 1;\r\n\t\tgbc_lblNewLabel.gridy = 2;\r\n\t\tadd(lblNewLabel, gbc_lblNewLabel);\r\n\t\t\r\n\t\ttextIngreso = new JTextField();\r\n\t\ttextIngreso.setEnabled(false);\r\n\t\ttextIngreso.setColumns(10);\r\n\t\tGridBagConstraints gbc_textIngreso = new GridBagConstraints();\r\n\t\tgbc_textIngreso.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_textIngreso.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_textIngreso.gridx = 2;\r\n\t\tgbc_textIngreso.gridy = 2;\r\n\t\tadd(textIngreso, gbc_textIngreso);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tbtnIntento = new JButton(\"Intentar\");\r\n\t\tGridBagConstraints gbc_btnIntento = new GridBagConstraints();\r\n\t\tgbc_btnIntento.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_btnIntento.gridx = 3;\r\n\t\tgbc_btnIntento.gridy = 2;\r\n\t\tadd(btnIntento, gbc_btnIntento);\r\n\t\tbtnIntento.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint num = Integer.parseInt(textIngreso.getText());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(num>0 && num<=1000) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tResultadoIntento res = controlador.realizarIntento(num);\r\n\t\t\t\t\r\n\t\t\t\t\t\t//Registro la cantidad de intentos\r\n\t\t\t\t\t\tcontador+=1;\r\n\t\t\t\t\t\tlblNroIntentos.setText(Integer.toString(contador));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Registro el puntaje de la partida\r\n\t\t\t\t\t\tInfoLogin j = vInicio.getJugador();\r\n\t\t\t\t\t\tString codigo = j.getCodigo();\r\n\t\t\t\t\t\tString nombre = j.getUsuario();\r\n\t\t\t\t\t\tVOJugador jugador= new VOJugador(nombre, codigo);\r\n\t\t\t\t\t\tint puntaje = controlador.devolverpuntajePartida(contador);\r\n\t\t\t\t\t\tlblNroPuntaje.setText(Integer.toString(puntaje));\r\n\t\t\t\t\t\tbtnNuevaPartida.setEnabled(false);\r\n\t\t\t\t\t\tif (res== ResultadoIntento.IGUAL) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tbtnNuevaPartida.setEnabled(true);\r\n\t\t\t\t\t\t\tbtnIntento.setEnabled(false);\r\n\t\t\t\t\t\t\tbtnAbandonar.setEnabled(false);\r\n\t\t\t\t\t\t\ttextIngreso.setEnabled(false);\r\n\t\t\t\t\t\t\tsetMensaje(\"Acertó !!\");\r\n\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t//Despliego JSOptionPane\r\n\t\t\t\t\t\t\tif(res!=ResultadoIntento.ERROR)\r\n\t\t\t\t\t\t\t\tsetMensaje(\"El numero secreto es \"+res + \" al ingresado\");\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tsetMensaje(\"Hubo un error al ingresar el intento!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tsetMensaje(\"El numero debe ser entre 1 y 1000\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(NumberFormatException e) {\r\n\t\t\t\t\tsetMensaje(\"Debe ingresar un número\");\r\n\t\t\t\t}catch(Exception e) {\r\n\t\t\t\t\tSystem.out.print(e);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJLabel lblPuntaje = new JLabel(\"Puntaje\");\r\n\t\tGridBagConstraints gbc_lblPuntaje = new GridBagConstraints();\r\n\t\tgbc_lblPuntaje.anchor = GridBagConstraints.EAST;\r\n\t\tgbc_lblPuntaje.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_lblPuntaje.gridx = 1;\r\n\t\tgbc_lblPuntaje.gridy = 4;\r\n\t\tadd(lblPuntaje, gbc_lblPuntaje);\r\n\t\t\r\n\t\tlblNroPuntaje = new JLabel(\"\");\r\n\t\tlblNroPuntaje.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tGridBagConstraints gbc_lblNroPuntaje = new GridBagConstraints();\r\n\t\tgbc_lblNroPuntaje.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_lblNroPuntaje.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_lblNroPuntaje.gridx = 2;\r\n\t\tgbc_lblNroPuntaje.gridy = 4;\r\n\t\tadd(lblNroPuntaje, gbc_lblNroPuntaje);\r\n\t\t\r\n\t\tJLabel lblCantIntentos = new JLabel(\"#Intentos\");\r\n\t\tGridBagConstraints gbc_lblCantIntentos = new GridBagConstraints();\r\n\t\tgbc_lblCantIntentos.anchor = GridBagConstraints.EAST;\r\n\t\tgbc_lblCantIntentos.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_lblCantIntentos.gridx = 1;\r\n\t\tgbc_lblCantIntentos.gridy = 5;\r\n\t\tadd(lblCantIntentos, gbc_lblCantIntentos);\r\n\t\t\r\n\t\tbtnNuevaPartida = new JButton(\"Nueva Partida\");\r\n\t\tbtnNuevaPartida.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tInfoLogin j = vInicio.getJugador();\r\n\t\t\t\tString codigo = j.getCodigo();\r\n\t\t\t\tString nombre = j.getUsuario();\r\n\t\t\t\tVOJugador jugador= new VOJugador(nombre, codigo);\r\n\r\n\t\t\t\tcontrolador.nuevaPartida(jugador);\r\n\t\t\t\tbtnNuevaPartida.setEnabled(false);\r\n\t\t\t\tbtnAbandonar.setEnabled(true);\r\n\t\t\t\tbtnIntento.setEnabled(true);\r\n\t\t\t\ttextIngreso.setEnabled(true);\r\n\t\t\t\ttextIngreso.setText(\"\");\r\n\t\t\t\tlblNroPuntaje.setText(\"1000\");\r\n\t\t\t\tlblNroIntentos.setText(\"0\");\r\n\t\t\t\tcontador = 0;\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tlblNroIntentos = new JLabel(\"\");\r\n\t\tlblNroIntentos.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tGridBagConstraints gbc_lblNroIntentos = new GridBagConstraints();\r\n\t\tgbc_lblNroIntentos.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tgbc_lblNroIntentos.anchor = GridBagConstraints.EAST;\r\n\t\tgbc_lblNroIntentos.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_lblNroIntentos.gridx = 2;\r\n\t\tgbc_lblNroIntentos.gridy = 5;\r\n\t\tadd(lblNroIntentos, gbc_lblNroIntentos);\r\n\t\tGridBagConstraints gbc_btnNuevaPartida = new GridBagConstraints();\r\n\t\tgbc_btnNuevaPartida.anchor = GridBagConstraints.EAST;\r\n\t\tgbc_btnNuevaPartida.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_btnNuevaPartida.gridx = 1;\r\n\t\tgbc_btnNuevaPartida.gridy = 8;\r\n\t\tadd(btnNuevaPartida, gbc_btnNuevaPartida);\r\n\t\t\r\n\t\tbtnAbandonar = new JButton(\"Abandonar\");\r\n\t\tbtnAbandonar.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tInfoLogin j = vInicio.getJugador();\r\n\t\t\t\tString codigo = j.getCodigo();\r\n\t\t\t\tString nombre = j.getUsuario();\r\n\t\t\t\tVOJugador jugador= new VOJugador(nombre, codigo);\r\n\t\t\t\tcontrolador.abandonarPartidaEnCurso(jugador);\r\n\t\t\t\t\r\n\t\t\t\tbtnAbandonar.setEnabled(false);\r\n\t\t\t\tbtnIntento.setEnabled(false);\r\n\r\n\t\t\t\tbtnNuevaPartida.setEnabled(true);\r\n\t\t\t\ttextIngreso.setEnabled(false);\r\n\r\n\t\t\t\ttextIngreso.setText(null);\r\n\t\t\t\tlblNroIntentos.setText(null);\r\n\t\t\t\tlblNroPuntaje.setText(null);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridBagConstraints gbc_btnAbandonar = new GridBagConstraints();\r\n\t\tgbc_btnAbandonar.insets = new Insets(0, 0, 5, 5);\r\n\t\tgbc_btnAbandonar.anchor = GridBagConstraints.WEST;\r\n\t\tgbc_btnAbandonar.gridx = 4;\r\n\t\tgbc_btnAbandonar.gridy = 8;\r\n\t\tadd(btnAbandonar, gbc_btnAbandonar);\r\n\t}", "private void $$$setupUI$$$() {\n linea = new JPanel();\n linea.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n addLineaButton = new JButton();\n addLineaButton.setText(\"addLinea\");\n linea.add(addLineaButton, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n numLinea = new JTextField();\n linea.add(numLinea, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }", "private void initComponents() {\n dialogPane = new JPanel();\n contentPanel = new JPanel();\n label1 = new JLabel();\n buttonBar = new JPanel();\n compareDesc = new JCheckBox();\n compareUnits = new JCheckBox();\n compareNames = new JCheckBox();\n cancelButton = new JButton();\n okButton = new JButton();\n table1 = new JTextField();\n showMissing = new JCheckBox();\n table2 = new JTextField();\n label2 = new JLabel();\n cleanUnits = new JCheckBox();\n udUnits = new JCheckBox();\n\n // ======== this ========\n setTitle(\"Compare Grib1 tables\");\n Container contentPane = getContentPane();\n contentPane.setLayout(new BorderLayout());\n\n // ======== dialogPane ========\n {\n dialogPane.setBorder(new EmptyBorder(12, 12, 12, 12));\n dialogPane.setLayout(new BorderLayout());\n\n // ======== contentPanel ========\n {\n\n // ---- label1 ----\n label1.setText(\"table1:\");\n label1.setFont(new Font(\"Dialog\", Font.BOLD, 12));\n\n // ======== buttonBar ========\n {\n buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0));\n buttonBar.setLayout(new GridBagLayout());\n ((GridBagLayout) buttonBar.getLayout()).columnWidths = new int[] {0, 85, 80};\n ((GridBagLayout) buttonBar.getLayout()).columnWeights = new double[] {1.0, 0.0, 0.0};\n }\n\n // ---- compareDesc ----\n compareDesc.setText(\"compare Desc\");\n compareDesc.setSelected(true);\n\n // ---- compareUnits ----\n compareUnits.setText(\"compareUnits\");\n\n // ---- compareNames ----\n compareNames.setText(\"compareNames\");\n\n // ---- cancelButton ----\n cancelButton.setText(\"Cancel\");\n cancelButton.addActionListener(this::cancelButtonActionPerformed);\n\n // ---- okButton ----\n okButton.setText(\"OK\");\n okButton.addActionListener(this::okButtonActionPerformed);\n\n // ---- table1 ----\n table1.setEditable(false);\n\n // ---- showMissing ----\n showMissing.setText(\"showMissing\");\n\n // ---- table2 ----\n table2.setEditable(false);\n\n // ---- label2 ----\n label2.setText(\"table2:\");\n label2.setFont(new Font(\"Dialog\", Font.BOLD, 12));\n\n // ---- cleanUnits ----\n cleanUnits.setText(\"cleanUnits\");\n\n // ---- udUnits ----\n udUnits.setText(\"udUnits\");\n udUnits.setSelected(true);\n\n GroupLayout contentPanelLayout = new GroupLayout(contentPanel);\n contentPanel.setLayout(contentPanelLayout);\n contentPanelLayout.setHorizontalGroup(contentPanelLayout.createParallelGroup()\n .addGroup(contentPanelLayout.createSequentialGroup().addContainerGap().addGroup(contentPanelLayout\n .createParallelGroup(GroupLayout.Alignment.LEADING,\n false)\n .addGroup(contentPanelLayout\n .createSequentialGroup().addGroup(contentPanelLayout\n .createParallelGroup().addComponent(label2).addComponent(label1))\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(contentPanelLayout.createParallelGroup().addGroup(contentPanelLayout\n .createSequentialGroup()\n .addGroup(contentPanelLayout.createParallelGroup().addGroup(contentPanelLayout\n .createSequentialGroup()\n .addGroup(contentPanelLayout\n .createParallelGroup().addComponent(compareUnits).addComponent(compareDesc))\n .addGap(26, 26, 26)\n .addGroup(contentPanelLayout.createParallelGroup().addComponent(showMissing)\n .addComponent(cleanUnits))\n .addGroup(contentPanelLayout.createParallelGroup()\n .addGroup(contentPanelLayout.createSequentialGroup().addGap(15, 15, 15)\n .addComponent(udUnits)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE,\n Short.MAX_VALUE)\n .addComponent(okButton, GroupLayout.PREFERRED_SIZE, 80, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(cancelButton,\n GroupLayout.PREFERRED_SIZE, 80, GroupLayout.PREFERRED_SIZE))\n .addGroup(contentPanelLayout.createSequentialGroup().addGap(18, 18, 18)\n .addComponent(compareNames))))\n .addComponent(table1, GroupLayout.PREFERRED_SIZE, 611, GroupLayout.PREFERRED_SIZE))\n .addGap(111, 111, 111))\n .addComponent(table2, GroupLayout.PREFERRED_SIZE, 611, GroupLayout.PREFERRED_SIZE)))\n .addComponent(buttonBar, GroupLayout.Alignment.TRAILING, GroupLayout.PREFERRED_SIZE, 779,\n GroupLayout.PREFERRED_SIZE))\n .addContainerGap()));\n contentPanelLayout.setVerticalGroup(contentPanelLayout.createParallelGroup()\n .addGroup(contentPanelLayout.createSequentialGroup().addGap(11, 11, 11)\n .addGroup(contentPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(table1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n GroupLayout.PREFERRED_SIZE)\n .addComponent(label1))\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(contentPanelLayout\n .createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(label2).addComponent(table2,\n GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(contentPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(compareDesc).addComponent(showMissing).addComponent(compareNames))\n .addGroup(contentPanelLayout\n .createParallelGroup()\n .addGroup(contentPanelLayout.createSequentialGroup().addGap(22, 22, 22)\n .addGroup(contentPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(cancelButton).addComponent(okButton)))\n .addGroup(contentPanelLayout.createSequentialGroup()\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(contentPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(compareUnits).addComponent(cleanUnits).addComponent(udUnits))))\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE).addComponent(buttonBar,\n GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n .addContainerGap()));\n }\n dialogPane.add(contentPanel, BorderLayout.SOUTH);\n }\n contentPane.add(dialogPane, BorderLayout.CENTER);\n pack();\n setLocationRelativeTo(getOwner());\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "private void initTopPanel()\r\n {\r\n GridBagConstraints TopPanelConstraints = new GridBagConstraints();\r\n GridBagLayout TopPanelLayout = new GridBagLayout();\r\n JPanel TopPanel = new JPanel();\r\n TopPanel.setLayout(TopPanelLayout);\r\n\r\n TopPanelConstraints.insets = new Insets(4, 4, 4, 4);\r\n TopPanelConstraints.anchor = GridBagConstraints.WEST;\r\n TopPanelConstraints.gridwidth = 1;\r\n TopPanelConstraints.gridheight = 1;\r\n TopPanelConstraints.fill = GridBagConstraints.HORIZONTAL;\r\n TopPanelConstraints.weighty = 0.0;\r\n\r\n // The first line.\r\n TopPanelConstraints.gridy = 0;\r\n TopPanelConstraints.gridx = 0;\r\n TopPanelConstraints.weightx = 1.0;\r\n Container FirstLineContainer = buildFirstLine();\r\n TopPanel.add(FirstLineContainer, TopPanelConstraints);\r\n\r\n TopPanelConstraints.gridx = 1;\r\n TopPanelConstraints.weightx = 0.0;\r\n // TopPanel.add(AboutButton, TopPanelConstraints);\r\n\r\n TopPanelConstraints.gridx = 2;\r\n TopPanelConstraints.weightx = 0.0;\r\n // TopPanel.add(ExitButton, TopPanelConstraints);\r\n\r\n // The second line.\r\n TopPanelConstraints.gridy = 1;\r\n TopPanelConstraints.gridx = 0;\r\n TopPanelConstraints.weightx = 1.0;\r\n Container SecondLineContainer = buildSecondLine();\r\n TopPanel.add(SecondLineContainer, TopPanelConstraints);\r\n\r\n TopPanelConstraints.gridx = 1;\r\n TopPanelConstraints.weightx = 0.0;\r\n TopPanelConstraints.gridwidth = 2;\r\n TopPanel.add(SaveResultsButton, TopPanelConstraints);\r\n\r\n \tBrowseButton.addActionListener(new BrowseButtonListener() );\r\n \tSearchButton.addActionListener(new SearchButtonListener() );\r\n \t//ExitButton.addActionListener(new ExitButtonListener() );\r\n \t//AboutButton.addActionListener(new AboutButtonListener() );\r\n \tSaveResultsButton.addActionListener(new SaveButtonListener() );\r\n\r\n\t getContentPane().add(\"North\", TopPanel);\r\n }", "private void $$$setupUI$$$() {\r\n final JPanel panel1 = new JPanel();\r\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel = new JPanel();\r\n mMainPanel.setLayout(new GridLayoutManager(15, 3, new Insets(0, 0, 0, 0), -1, -1));\r\n panel1.add(mMainPanel, 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, null, null, 0, false));\r\n label = new JLabel();\r\n Font labelFont = this.$$$getFont$$$(null, -1, 28, label.getFont());\r\n if (labelFont != null) label.setFont(labelFont);\r\n label.setText(\"CodeRecommender\");\r\n mMainPanel.add(label, new GridConstraints(0, 0, 2, 1, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer1 = new Spacer();\r\n mMainPanel.add(spacer1, new GridConstraints(5, 2, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final JPanel panel2 = new JPanel();\r\n panel2.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel2, new GridConstraints(4, 0, 6, 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));\r\n final JPanel panel3 = new JPanel();\r\n panel3.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel2.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n statement = new JTextArea();\r\n statement.setBackground(new Color(-12434103));\r\n statement.setColumns(0);\r\n statement.setEditable(false);\r\n statement.setEnabled(true);\r\n Font statementFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 15, statement.getFont());\r\n if (statementFont != null) statement.setFont(statementFont);\r\n statement.setText(\" In the current ai craze, we want to use neural network-related technology to grab a large amount of source code from the open source community to achieve the recommendation of the N+1 line of code from the known N lines of code, and package this function into a practical plug-in on the IDE.\");\r\n panel3.add(statement, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, 70), null, 1, false));\r\n final JPanel panel4 = new JPanel();\r\n panel4.setLayout(new GridLayoutManager(12, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.setBackground(new Color(-12828863));\r\n panel3.add(panel4, 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));\r\n Download = new JButton();\r\n Font DownloadFont = this.$$$getFont$$$(null, -1, 12, Download.getFont());\r\n if (DownloadFont != null) Download.setFont(DownloadFont);\r\n Download.setText(\"Find\");\r\n panel4.add(Download, new GridConstraints(4, 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));\r\n final JPanel panel5 = new JPanel();\r\n panel5.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel5, new GridConstraints(11, 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));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"See the guide on the https://github.com/huangjihui511/java-code-recommand-IDEA-plugin \");\r\n panel5.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer2 = new Spacer();\r\n panel5.add(spacer2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n pathTextField = new JTextField();\r\n pathTextField.setEditable(false);\r\n Font pathTextFieldFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 12, pathTextField.getFont());\r\n if (pathTextFieldFont != null) pathTextField.setFont(pathTextFieldFont);\r\n pathTextField.setText(\"/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 \");\r\n panel4.add(pathTextField, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n SetPath = new JButton();\r\n Font SetPathFont = this.$$$getFont$$$(null, -1, 12, SetPath.getFont());\r\n if (SetPathFont != null) SetPath.setFont(SetPathFont);\r\n SetPath.setText(\"Set\");\r\n panel4.add(SetPath, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n Help = new JButton();\r\n Help.setText(\"Help\");\r\n panel4.add(Help, new GridConstraints(11, 1, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel6 = new JPanel();\r\n panel6.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel6.setFocusTraversalPolicyProvider(false);\r\n panel6.setFocusable(false);\r\n panel4.add(panel6, new GridConstraints(10, 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));\r\n final JPanel panel7 = new JPanel();\r\n panel7.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel7, 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));\r\n final JLabel label2 = new JLabel();\r\n label2.setIcon(new ImageIcon(getClass().getResource(\"/timg (1) - 副本.jpg\")));\r\n label2.setText(\"\");\r\n panel7.add(label2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label3 = new JLabel();\r\n label3.setIcon(new ImageIcon(getClass().getResource(\"/微信图片_20190328224952 (2) - 副本.jpg\")));\r\n label3.setText(\"\");\r\n panel7.add(label3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel8 = new JPanel();\r\n panel8.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel7.add(panel8, 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));\r\n final JPanel panel9 = new JPanel();\r\n panel9.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel9, 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, null, null, 0, false));\r\n webaddressTextField = new JTextField();\r\n webaddressTextField.setEditable(false);\r\n Font webaddressTextFieldFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 12, webaddressTextField.getFont());\r\n if (webaddressTextFieldFont != null) webaddressTextField.setFont(webaddressTextFieldFont);\r\n webaddressTextField.setText(\"/Volumes/PythonSupporting\");\r\n panel4.add(webaddressTextField, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n final JPanel panel10 = new JPanel();\r\n panel10.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel10, new GridConstraints(3, 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));\r\n final JLabel label4 = new JLabel();\r\n Font label4Font = this.$$$getFont$$$(\"Consolas\", Font.BOLD, 14, label4.getFont());\r\n if (label4Font != null) label4.setFont(label4Font);\r\n label4.setText(\"Find the package\");\r\n panel10.add(label4, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer3 = new Spacer();\r\n panel10.add(spacer3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final JPanel panel11 = new JPanel();\r\n panel11.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel11.setToolTipText(\"\");\r\n panel4.add(panel11, new GridConstraints(6, 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));\r\n final JLabel label5 = new JLabel();\r\n Font label5Font = this.$$$getFont$$$(\"Consolas\", Font.BOLD, 14, label5.getFont());\r\n if (label5Font != null) label5.setFont(label5Font);\r\n label5.setText(\"Set the path\");\r\n panel11.add(label5, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer4 = new Spacer();\r\n panel11.add(spacer4, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final JPanel panel12 = new JPanel();\r\n panel12.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel12, new GridConstraints(9, 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));\r\n final JPanel panel13 = new JPanel();\r\n panel13.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel13, 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));\r\n final JPanel panel14 = new JPanel();\r\n panel14.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel14, new GridConstraints(5, 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));\r\n final JPanel panel15 = new JPanel();\r\n panel15.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel15, new GridConstraints(8, 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));\r\n pic = new JPanel();\r\n pic.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.putClientProperty(\"html.disable\", Boolean.FALSE);\r\n panel3.add(pic, 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));\r\n a = new JLabel();\r\n a.setText(\"\");\r\n pic.add(a, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel16 = new JPanel();\r\n panel16.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.add(panel16, 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));\r\n final JPanel panel17 = new JPanel();\r\n panel17.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.add(panel17, 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));\r\n final JPanel panel18 = new JPanel();\r\n panel18.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel2.add(panel18, 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));\r\n final Spacer spacer5 = new Spacer();\r\n mMainPanel.add(spacer5, new GridConstraints(5, 1, 10, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final JPanel panel19 = new JPanel();\r\n panel19.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel19, 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));\r\n final JPanel panel20 = new JPanel();\r\n panel20.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel20, new GridConstraints(3, 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));\r\n final Spacer spacer6 = new Spacer();\r\n panel1.add(spacer6, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer7 = new Spacer();\r\n panel1.add(spacer7, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer8 = new Spacer();\r\n panel1.add(spacer8, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n }", "private void setConstraints( int gx, int gy, int width, int height ) {\n\tconstraints.gridx = gx;\n\tconstraints.gridy = gy;\n\tconstraints.gridwidth = width;\n\tconstraints.gridheight = height;\n\tconstraints.insets = new Insets( 10, 10, 10, 10 );\n\tconstraints.fill = GridBagConstraints.HORIZONTAL;\n }", "private void createContents() {\r\n\t\tshlAboutGoko = new Shell(getParent(), getStyle());\r\n\t\tshlAboutGoko.setSize(376, 248);\r\n\t\tshlAboutGoko.setText(\"About Goko\");\r\n\t\tshlAboutGoko.setLayout(new GridLayout(1, false));\r\n\r\n\t\tComposite composite_1 = new Composite(shlAboutGoko, SWT.NONE);\r\n\t\tcomposite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\r\n\t\tcomposite_1.setLayout(new GridLayout(1, false));\r\n\r\n\t\tLabel lblGokoIsA = new Label(composite_1, SWT.WRAP);\r\n\t\tGridData gd_lblGokoIsA = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblGokoIsA.widthHint = 350;\r\n\t\tlblGokoIsA.setLayoutData(gd_lblGokoIsA);\r\n\t\tlblGokoIsA.setText(\"Goko is an open source desktop application for CNC control and operation\");\r\n\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblAlphaVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblAlphaVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblAlphaVersion.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblAlphaVersion.setText(\"Version\");\r\n\r\n\t\tLabel lblVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblVersion.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(composite_1, SWT.NONE);\r\n\r\n\t\tLabel lblDate = new Label(composite_2, SWT.NONE);\r\n\t\tlblDate.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblDate.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblDate.setText(\"Build\");\r\n\t\t\r\n\t\tLabel lblBuild = new Label(composite_2, SWT.NONE);\r\n\t\tlblBuild.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\t\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader(); \r\n\t\tInputStream stream = loader.getResourceAsStream(\"/version.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(stream);\r\n\t\t\tString version = prop.getProperty(\"goko.version\");\r\n\t\t\tString build = prop.getProperty(\"goko.build.timestamp\");\r\n\t\t\tlblVersion.setText(version);\r\n\t\t\tlblBuild.setText(build);\t\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tLOG.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tComposite composite = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblMoreInformationOn = new Label(composite, SWT.NONE);\r\n\t\tGridData gd_lblMoreInformationOn = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblMoreInformationOn.widthHint = 60;\r\n\t\tlblMoreInformationOn.setLayoutData(gd_lblMoreInformationOn);\r\n\t\tlblMoreInformationOn.setText(\"Website :\");\r\n\r\n\t\tLink link = new Link(composite, SWT.NONE);\r\n\t\tlink.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://www.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tlink.setText(\"<a>http://www.goko.fr</a>\");\r\n\t\t\r\n\t\tComposite composite_3 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_3.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblForum = new Label(composite_3, SWT.NONE);\r\n\t\tGridData gd_lblForum = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblForum.widthHint = 60;\r\n\t\tlblForum.setLayoutData(gd_lblForum);\r\n\t\tlblForum.setText(\"Forum :\");\r\n\t\t\r\n\t\tLink link_1 = new Link(composite_3, 0);\r\n\t\tlink_1.setText(\"<a>http://discuss.goko.fr</a>\");\r\n\t\tlink_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://discuss.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tComposite composite_4 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_4.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblContact = new Label(composite_4, SWT.NONE);\r\n\t\tGridData gd_lblContact = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblContact.widthHint = 60;\r\n\t\tlblContact.setLayoutData(gd_lblContact);\r\n\t\tlblContact.setText(\"Contact :\");\r\n\t\t\t \r\n\t\tLink link_2 = new Link(composite_4, 0);\r\n\t\tlink_2.setText(\"<a>\"+toAscii(\"636f6e7461637440676f6b6f2e6672\")+\"</a>\");\r\n\r\n\t}", "private void $$$setupUI$$$() {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n targetClassesTextField = new JTextField();\n panel.add(targetClassesTextField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel.add(spacer1, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n targetClassesLabel = new JLabel();\n targetClassesLabel.setText(\"Target classes\");\n panel.add(targetClassesLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n sourceDirTextField = new JTextField();\n panel.add(sourceDirTextField, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n sourceDirLabel = new JLabel();\n sourceDirLabel.setText(\"Source dir\");\n panel.add(sourceDirLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n reportDirTextField = new JTextField();\n panel.add(reportDirTextField, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n reportDirLabel = new JLabel();\n reportDirLabel.setText(\"Report dir\");\n panel.add(reportDirLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n otherParamsTextField = new JTextField();\n panel.add(otherParamsTextField, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n otherParamsLabel = new JLabel();\n otherParamsLabel.setText(\"Other params\");\n panel.add(otherParamsLabel, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.getContentPane().setBackground(Color.WHITE);\r\n\t\tframe.setBounds(100, 100, 1036, 627);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tSpringLayout springLayout = new SpringLayout();\r\n\t\tframe.getContentPane().setLayout(springLayout);\r\n\t\t\r\n\r\n\t\tmenuvc = new Vector<>(); // J테이블에 들어갈 벡터\r\n\r\n\t\tinsertDB = new Vector<>(); // DB에 들어갈 벡터\r\n\r\n\t\tcolumnName = new Vector<>(); // J테이블에 들어갈 인덱스\r\n\t\tcolumnName.add(\"메뉴\");\r\n\t\tcolumnName.add(\"수량\");\r\n\r\n\t\t// JPanel pan_bell = new JPanel();\r\n\t\t// tabp.addTab(\"Coffee & Latte\", null, pan_bell, null);\r\n\t\t// pan_bell.setLayout(new GridLayout(4, 5, 0, 0));\r\n\r\n\t\tJPanel panel = new JPanel();\r\n\t\tspringLayout.putConstraint(SpringLayout.WEST, panel, 10, SpringLayout.WEST, frame.getContentPane());\r\n\t\tpanel.setBackground(Color.WHITE);\r\n\t\tspringLayout.putConstraint(SpringLayout.NORTH, panel, 10, SpringLayout.NORTH, frame.getContentPane());\r\n\t\tspringLayout.putConstraint(SpringLayout.SOUTH, panel, -10, SpringLayout.SOUTH, frame.getContentPane());\r\n\t\tframe.getContentPane().add(panel);\r\n\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tspringLayout.putConstraint(SpringLayout.EAST, panel, -6, SpringLayout.WEST, panel_1);\r\n\t\tpanel_1.setBackground(new Color(245, 245, 245));\r\n\t\tspringLayout.putConstraint(SpringLayout.WEST, panel_1, 798, SpringLayout.WEST, frame.getContentPane());\r\n\t\tspringLayout.putConstraint(SpringLayout.EAST, panel_1, -10, SpringLayout.EAST, frame.getContentPane());\r\n\t\tframe.getContentPane().add(panel_1);\r\n\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\tspringLayout.putConstraint(SpringLayout.SOUTH, panel_1, -61, SpringLayout.NORTH, panel_2);\r\n\t\tspringLayout.putConstraint(SpringLayout.NORTH, panel_2, 393, SpringLayout.NORTH, frame.getContentPane());\r\n\t\tspringLayout.putConstraint(SpringLayout.WEST, panel_2, 6, SpringLayout.EAST, panel);\r\n\t\tspringLayout.putConstraint(SpringLayout.EAST, panel_2, -10, SpringLayout.EAST, frame.getContentPane());\r\n\t\tpanel_2.setBackground(SystemColor.inactiveCaptionBorder);\r\n\t\tframe.getContentPane().add(panel_2);\r\n\t\tpanel_2.setLayout(new GridLayout(0, 2, 0, 0));\r\n\r\n\t\tJPanel panel_3 = new JPanel();\r\n\t\tspringLayout.putConstraint(SpringLayout.NORTH, panel_1, 9, SpringLayout.SOUTH, panel_3);\r\n\t\tspringLayout.putConstraint(SpringLayout.SOUTH, panel_3, -504, SpringLayout.SOUTH, frame.getContentPane());\r\n\t\tspringLayout.putConstraint(SpringLayout.NORTH, panel_3, 10, SpringLayout.NORTH, frame.getContentPane());\r\n\t\tpanel_3.setBackground(Color.WHITE);\r\n\t\tspringLayout.putConstraint(SpringLayout.WEST, panel_3, 6, SpringLayout.EAST, panel);\r\n\t\tspringLayout.putConstraint(SpringLayout.EAST, panel_3, -10, SpringLayout.EAST, frame.getContentPane());\r\n\t\tSpringLayout sl_panel = new SpringLayout();\r\n\t\tpanel.setLayout(sl_panel);\r\n\r\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\ttabbedPane.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tsl_panel.putConstraint(SpringLayout.NORTH, tabbedPane, 0, SpringLayout.NORTH, panel);\r\n\t\tsl_panel.putConstraint(SpringLayout.WEST, tabbedPane, 0, SpringLayout.WEST, panel);\r\n\t\tsl_panel.putConstraint(SpringLayout.SOUTH, tabbedPane, 569, SpringLayout.NORTH, panel);\r\n\t\tsl_panel.putConstraint(SpringLayout.EAST, tabbedPane, 782, SpringLayout.WEST, panel);\r\n\t\ttabbedPane.setBackground(Color.WHITE);\r\n\t\tpanel.add(tabbedPane);\r\n\r\n\t\tJPanel panel_4 = new JPanel();\r\n\t\tpanel_4.setBackground(Color.WHITE);\r\n\t\ttabbedPane.addTab(\"한 솥\", null, panel_4, null);\r\n\t\tpanel_4.setLayout(new GridLayout(4, 5, 0, 0));\r\n\r\n\t\tJPanel panel_8 = new JPanel();\r\n\t\tpanel_8.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_8);\r\n\t\tpanel_8.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_24 = new JButton(\"New button\");\r\n\t\tpath = a.class.getResource(\"\").getPath(); // 현재 클래스의 절대 경로를 가져온다.\r\n\t\t// System.out.println(path); // --> 절대 경로가 출력됨\r\n\r\n\t\tbtnNewButton_24.setIcon(new ImageIcon(((new ImageIcon(path + \"abc.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_24.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tupdateMenu(\"고기고기도시락\");\r\n\t\t\t\tprice.setText(\"3600\");\r\n\t\t\t\tminusPrice = 3600;\r\n\t\t\t\ttotalPriced+=3600;\r\n\t\t\t\ttotalPrice.setText(totalPriced + \"\");\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\tpanel_8.add(btnNewButton_24);\r\n\r\n\t\tJLabel lblNewLabel_5 = new JLabel(\r\n\t\t\t\t\"<html>\\uACE0\\uAE30\\uACE0\\uAE30\\uB3C4\\uC2DC\\uB77D<br> 3,600\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_5.setBackground(Color.WHITE);\r\n\t\tlblNewLabel_5.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_5.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_8.add(lblNewLabel_5, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_9 = new JPanel();\r\n\t\tpanel_9.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_9);\r\n\t\tpanel_9.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton = new JButton(\"New button\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tupdateMenu(\"칠리포크도시락\");\r\n\t\t\t\tprice.setText(\"3600\");\r\n\t\t\t\tminusPrice = 3600;\r\n\t\t\t\ttotalPriced+=3600;\r\n\t\t\t\ttotalPrice.setText(totalPriced + \"\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tpath = a.class.getResource(\"\").getPath(); // 현재 클래스의 절대 경로를 가져온다.\r\n\t\t// System.out.println(path); // --> 절대 경로가 출력됨\r\n\r\n\t\tbtnNewButton.setIcon(new ImageIcon(((new ImageIcon(path + \"two.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_9.add(btnNewButton);\r\n\r\n\t\tJLabel lblNewLabel_6 = new JLabel(\r\n\t\t\t\t\"<html>\\uCE60\\uB9AC\\uD3EC\\uD06C\\uB3C4\\uC2DC\\uB77D<br> 3,600\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_6.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_6.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_9.add(lblNewLabel_6, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_10 = new JPanel();\r\n\t\tpanel_10.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_10);\r\n\t\tpanel_10.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_1 = new JButton(\"New button\");\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tupdateMenu(\"돈까스도련님\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tpath = a.class.getResource(\"\").getPath(); // 현재 클래스의 절대 경로를 가져온다.\r\n\t\t// System.out.println(path); // --> 절대 경로가 출력됨\r\n\r\n\t\tbtnNewButton_1.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"c.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_10.add(btnNewButton_1);\r\n\r\n\t\tJLabel lblNewLabel_7 = new JLabel(\"<html>\\uB3C8\\uAE4C\\uC2A4\\uB3C4\\uB828\\uB2D8<br> 3,600\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_7.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_7.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_10.add(lblNewLabel_7, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_11 = new JPanel();\r\n\t\tpanel_11.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_11);\r\n\t\tpanel_11.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_2 = new JButton(\"New button\");\r\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tupdateMenu(\"디럭스제육볶음\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnNewButton_2.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"d.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_11.add(btnNewButton_2);\r\n\r\n\t\tJLabel lblNewLabel_8 = new JLabel(\r\n\t\t\t\t\"<html>\\uB514\\uB7ED\\uC2A4\\uC81C\\uC721\\uBCF6\\uC74C<br> 3,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_8.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_8.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_11.add(lblNewLabel_8, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_14 = new JPanel();\r\n\t\tpanel_14.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_14);\r\n\t\tpanel_14.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_3 = new JButton(\"New button\");\r\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"깐풍기도시락\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_3.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"e.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_14.add(btnNewButton_3);\r\n\r\n\t\tJLabel lblNewLabel_9 = new JLabel(\"<html>\\uAE50\\uD48D\\uAE30\\uB3C4\\uC2DC\\uB77D<br> 4,300\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_9.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_9.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_14.add(lblNewLabel_9, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_12 = new JPanel();\r\n\t\tpanel_12.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_12);\r\n\t\tpanel_12.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_4 = new JButton(\"New button\");\r\n\t\tbtnNewButton_4.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"치킨제육도시락\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_4.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"f.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_12.add(btnNewButton_4);\r\n\r\n\t\tJLabel lblNewLabel_10 = new JLabel(\r\n\t\t\t\t\"<html>\\uCE58\\uD0A8\\uC81C\\uC721\\uB3C4\\uC2DC\\uB77D<br> 4,300\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_10.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_10.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_12.add(lblNewLabel_10, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_26 = new JPanel();\r\n\t\tpanel_26.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_26);\r\n\t\tpanel_26.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_5 = new JButton(\"New button\");\r\n\t\tbtnNewButton_5.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"g.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_5.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"불고기김치볶음밥\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tpanel_26.add(btnNewButton_5);\r\n\r\n\t\tJLabel lblNewLabel_11 = new JLabel(\r\n\t\t\t\t\"<html>\\uBD88\\uACE0\\uAE30\\uAE40\\uCE58\\uBCF6\\uC74C\\uBC25<br> 3,700\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_11.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_11.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_26.add(lblNewLabel_11, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_20 = new JPanel();\r\n\t\tpanel_20.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_20);\r\n\t\tpanel_20.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_6 = new JButton(\"New button\");\r\n\t\tbtnNewButton_6.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"강된장비빔밥\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_6.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"h.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_20.add(btnNewButton_6);\r\n\r\n\t\tJLabel lblNewLabel_12 = new JLabel(\"<html>\\uAC15\\uB41C\\uC7A5\\uBE44\\uBE54\\uBC25<br> 4,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_12.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_12.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_20.add(lblNewLabel_12, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_13 = new JPanel();\r\n\t\tpanel_13.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_13);\r\n\t\tpanel_13.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_7 = new JButton(\"New button\");\r\n\t\tbtnNewButton_7.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"진달래도시락\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_7.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"i.jpg\")).getImage()).getScaledInstance(180, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_13.add(btnNewButton_7);\r\n\r\n\t\tJLabel lblNewLabel_13 = new JLabel(\"<html>\\uC9C4\\uB2EC\\uB798\\uB3C4\\uC2DC\\uB77D<br> 7,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_13.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_13.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_13.add(lblNewLabel_13, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_15 = new JPanel();\r\n\t\tpanel_15.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_15);\r\n\t\tpanel_15.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_8 = new JButton(\"New button\");\r\n\t\tbtnNewButton_8.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"매화도시락\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_8.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"j.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_15.add(btnNewButton_8);\r\n\r\n\t\tJLabel lblNewLabel_14 = new JLabel(\"<html>\\uB9E4\\uD654\\uB3C4\\uC2DC\\uB77D<br> 10,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_14.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_14.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_15.add(lblNewLabel_14, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_16 = new JPanel();\r\n\t\tpanel_16.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_16);\r\n\t\tpanel_16.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_9 = new JButton(\"New button\");\r\n\t\tbtnNewButton_9.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"돈까스덮밥\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_9.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"k.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_16.add(btnNewButton_9);\r\n\r\n\t\tJLabel lblNewLabel_15 = new JLabel(\"<html>\\uB3C8\\uAE4C\\uC2A4\\uB36E\\uBC25<br> 3,400\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_15.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_15.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_16.add(lblNewLabel_15, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_17 = new JPanel();\r\n\t\tpanel_17.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_17);\r\n\t\tpanel_17.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_10 = new JButton(\"New button\");\r\n\t\tbtnNewButton_10.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"돈까스카레\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_10.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"l.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_17.add(btnNewButton_10);\r\n\r\n\t\tJLabel lblNewLabel_16 = new JLabel(\"<html>\\uB3C8\\uAE4C\\uC2A4\\uCE74\\uB808<br> 3,800\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_16.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_16.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_17.add(lblNewLabel_16, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_18 = new JPanel();\r\n\t\tpanel_18.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_18);\r\n\t\tpanel_18.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_11 = new JButton(\"New button\");\r\n\t\tbtnNewButton_11.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"참치마요\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_11.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"m.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_18.add(btnNewButton_11);\r\n\r\n\t\tJLabel lblNewLabel_17 = new JLabel(\"<html>\\uCC38\\uCE58\\uB9C8\\uC694<br> 2,700\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_17.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_17.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_18.add(lblNewLabel_17, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_19 = new JPanel();\r\n\t\tpanel_19.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_19);\r\n\t\tpanel_19.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_12 = new JButton(\"New button\");\r\n\t\tbtnNewButton_12.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"빅치킨마요\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_12.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"n.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_19.add(btnNewButton_12);\r\n\r\n\t\tJLabel lblNewLabel_18 = new JLabel(\"<html>\\uBE45\\uCE58\\uD0A8\\uB9C8\\uC694<br> 3,300\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_18.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_18.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_19.add(lblNewLabel_18, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_21 = new JPanel();\r\n\t\tpanel_21.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_21);\r\n\t\tpanel_21.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_13 = new JButton(\"New button\");\r\n\t\tbtnNewButton_13.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"돈치마요\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_13.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"o.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_21.add(btnNewButton_13);\r\n\r\n\t\tJLabel lblNewLabel_19 = new JLabel(\"<html>\\uB3C8\\uCE58\\uB9C8\\uC694<br> 3,300\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_19.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_19.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_21.add(lblNewLabel_19, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_22 = new JPanel();\r\n\t\tpanel_22.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_22);\r\n\t\tpanel_22.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_14 = new JButton(\"New button\");\r\n\t\tbtnNewButton_14.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"김치찌개\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_14.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"p.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_22.add(btnNewButton_14);\r\n\r\n\t\tJLabel lblNewLabel_20 = new JLabel(\"<html>\\uAE40\\uCE58\\uCC0C\\uAC1C<br> 3,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_20.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_20.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_22.add(lblNewLabel_20, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_23 = new JPanel();\r\n\t\tpanel_23.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_23);\r\n\t\tpanel_23.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_15 = new JButton(\"New button\");\r\n\t\tbtnNewButton_15.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"육개장\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_15.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"q.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_23.add(btnNewButton_15);\r\n\r\n\t\tJLabel lblNewLabel_21 = new JLabel(\"<html>\\uC721\\uAC1C\\uC7A5<br> 3,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_21.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_21.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_23.add(lblNewLabel_21, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_24 = new JPanel();\r\n\t\tpanel_24.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_24);\r\n\t\tpanel_24.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_16 = new JButton(\"New button\");\r\n\t\tbtnNewButton_16.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"치킨샐러드\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_16.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"r.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_24.add(btnNewButton_16);\r\n\r\n\t\tJLabel lblNewLabel_22 = new JLabel(\"<html>\\uCE58\\uD0A8\\uC0D0\\uB7EC\\uB4DC<br> 3,600\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_22.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_22.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_24.add(lblNewLabel_22, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_25 = new JPanel();\r\n\t\tpanel_25.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_25);\r\n\t\tpanel_25.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_17 = new JButton(\"New button\");\r\n\t\tbtnNewButton_17.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"닭강정(소)\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_17.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"s.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_25.add(btnNewButton_17);\r\n\r\n\t\tJLabel lblNewLabel_23 = new JLabel(\"<html>\\uB2ED\\uAC15\\uC815(\\uC18C)<br> 2,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_23.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_23.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_25.add(lblNewLabel_23, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_27 = new JPanel();\r\n\t\tpanel_27.setBackground(Color.WHITE);\r\n\t\tpanel_4.add(panel_27);\r\n\t\tpanel_27.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_18 = new JButton(\"New button\");\r\n\t\tbtnNewButton_18.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"반달감자튀김\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_18.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"t.jpg\")).getImage()).getScaledInstance(170, 180, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_27.add(btnNewButton_18);\r\n\r\n\t\tJLabel lblNewLabel_24 = new JLabel(\"<html>\\uBC18\\uB2EC\\uAC10\\uC790\\uD280\\uAE40<br> 1,200\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_24.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_24.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_27.add(lblNewLabel_24, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_5 = new JPanel();\r\n\t\t// JLabel lblNewLabel = new JLabel(\"\");\r\n\t\t// lblNewLabel.setIcon(new ImageIcon(((new ImageIcon(path +\r\n\t\t// \"sinjun.jpg\")).getImage()).getScaledInstance(180, 70,\r\n\t\t// java.awt.Image.SCALE_SMOOTH)));\r\n\t\t// panel_3.add(lblNewLabel);\r\n\t\ttabbedPane.addTab(\"신전떡볶이\", null, panel_5, null);\r\n\r\n\t\tpanel_5.setLayout(new GridLayout(4, 05, 0, 0));\r\n\r\n\t\tJPanel panel_37 = new JPanel();\r\n\t\tpanel_37.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_37);\r\n\t\tpanel_37.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_21 = new JButton(\"\");\r\n\t\tbtnNewButton_21.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_21.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tupdateMenu(\"신전떡볶이\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_21.setIcon(new ImageIcon(((new ImageIcon(path + \"da.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_37.add(btnNewButton_21, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_25 = new JLabel(\"<html>\\uC2E0\\uC804\\uB5A1\\uBCF6\\uC774<br> 2,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_25.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_25.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_37.add(lblNewLabel_25, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_38 = new JPanel();\r\n\t\tpanel_38.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_38);\r\n\t\tpanel_38.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_22 = new JButton(\"New button\");\r\n\t\tbtnNewButton_22.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"치즈떡볶이\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_22.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_22.setIcon(new ImageIcon(((new ImageIcon(path + \"db.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_38.add(btnNewButton_22, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_26 = new JLabel(\"<html>\\uCE58\\uC988\\uB5A1\\uBCF6\\uC774<br> 3,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_26.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_26.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_38.add(lblNewLabel_26, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_39 = new JPanel();\r\n\t\tpanel_39.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_39);\r\n\t\tpanel_39.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_23 = new JButton(\"New button\");\r\n\t\tbtnNewButton_23.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"오뎅튀김\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_23.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_23.setIcon(new ImageIcon(((new ImageIcon(path + \"dc.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_39.add(btnNewButton_23, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_27 = new JLabel(\"<html>\\uC624\\uB385\\uD280\\uAE40<br> 1,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_27.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_27.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_39.add(lblNewLabel_27, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_40 = new JPanel();\r\n\t\tpanel_40.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_40);\r\n\t\tpanel_40.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_25 = new JButton(\"New button\");\r\n\t\tbtnNewButton_25.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"만두튀김\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_25.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_25.setIcon(new ImageIcon(((new ImageIcon(path + \"dd.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_40.add(btnNewButton_25, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_28 = new JLabel(\"<html>\\uB9CC\\uB450\\uD280\\uAE40<br> 1,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_28.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_28.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_40.add(lblNewLabel_28, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_41 = new JPanel();\r\n\t\tpanel_41.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_41);\r\n\t\tpanel_41.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_26 = new JButton(\"New button\");\r\n\t\tbtnNewButton_26.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"김말이튀김\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_26.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_26.setIcon(new ImageIcon(((new ImageIcon(path + \"de.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_41.add(btnNewButton_26, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_29 = new JLabel(\"<html>\\uAE40\\uB9D0\\uC774\\uD280\\uAE40<br> 1,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_29.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_29.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_41.add(lblNewLabel_29, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_42 = new JPanel();\r\n\t\tpanel_42.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_42);\r\n\t\tpanel_42.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_27 = new JButton(\"New button\");\r\n\t\tbtnNewButton_27.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"잡채말이튀김\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_27.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_27.setIcon(new ImageIcon(((new ImageIcon(path + \"df.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_42.add(btnNewButton_27, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_30 = new JLabel(\"<html>\\uC7A1\\uCC44\\uB9D0\\uC774\\uD280\\uAE40<br> 1,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_30.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_30.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_42.add(lblNewLabel_30, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_43 = new JPanel();\r\n\t\tpanel_43.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_43);\r\n\t\tpanel_43.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_28 = new JButton(\"New button\");\r\n\t\tbtnNewButton_28.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"치즈스틱\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_28.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_28.setIcon(new ImageIcon(((new ImageIcon(path + \"dg.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_43.add(btnNewButton_28, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_31 = new JLabel(\"<html>\\uCE58\\uC988\\uC2A4\\uD2F1<br> 1,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_31.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_31.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_43.add(lblNewLabel_31, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_44 = new JPanel();\r\n\t\tpanel_44.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_44);\r\n\t\tpanel_44.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_29 = new JButton(\"New button\");\r\n\t\tbtnNewButton_29.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"신전김밥\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_29.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_29.setIcon(new ImageIcon(((new ImageIcon(path + \"dh.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_44.add(btnNewButton_29, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_32 = new JLabel(\"<html>\\uC2E0\\uC804\\uAE40\\uBC25<br> 2,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_32.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_32.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_44.add(lblNewLabel_32, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_45 = new JPanel();\r\n\t\tpanel_45.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_45);\r\n\t\tpanel_45.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_30 = new JButton(\"New button\");\r\n\t\tbtnNewButton_30.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"스팸마요컵밥\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_30.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_30.setIcon(new ImageIcon(((new ImageIcon(path + \"di.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_45.add(btnNewButton_30, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_33 = new JLabel(\"<html>\\uC2A4\\uD338\\uB9C8\\uC694\\uCEF5\\uBC25<br> 3,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_33.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_33.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_45.add(lblNewLabel_33, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_46 = new JPanel();\r\n\t\tpanel_46.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_46);\r\n\t\tpanel_46.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_31 = new JButton(\"New button\");\r\n\t\tbtnNewButton_31.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"참치마요컵밥\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_31.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_31.setIcon(new ImageIcon(((new ImageIcon(path + \"dj.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_46.add(btnNewButton_31, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_34 = new JLabel(\"<html>\\uCC38\\uCE58\\uB9C8\\uC694\\uCEF5\\uBC25<br> 3,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_34.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_34.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_46.add(lblNewLabel_34, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_47 = new JPanel();\r\n\t\tpanel_47.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_47);\r\n\t\tpanel_47.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_32 = new JButton(\"New button\");\r\n\t\tbtnNewButton_32.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"계란찜\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_32.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_32.setIcon(new ImageIcon(((new ImageIcon(path + \"dk.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_47.add(btnNewButton_32, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_35 = new JLabel(\"<html>\\uACC4\\uB780\\uCC1C<br> 2,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_35.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_35.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_47.add(lblNewLabel_35, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_48 = new JPanel();\r\n\t\tpanel_48.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_48);\r\n\t\tpanel_48.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_33 = new JButton(\"New button\");\r\n\t\tbtnNewButton_33.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"오뎅탕\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_33.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_33.setIcon(new ImageIcon(((new ImageIcon(path + \"dl.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_48.add(btnNewButton_33, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_36 = new JLabel(\"<html>\\uC624\\uB385\\uD0D5<br> 3,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_36.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_36.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_48.add(lblNewLabel_36, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_49 = new JPanel();\r\n\t\tpanel_49.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_49);\r\n\t\tpanel_49.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_34 = new JButton(\"New button\");\r\n\t\tbtnNewButton_34.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"토스트\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_34.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_34.setIcon(new ImageIcon(((new ImageIcon(path + \"dm.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_49.add(btnNewButton_34, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_37 = new JLabel(\"<html>\\uD1A0\\uC2A4\\uD2B8<br> 2,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_37.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_37.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_49.add(lblNewLabel_37, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_50 = new JPanel();\r\n\t\tpanel_50.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_50);\r\n\t\tpanel_50.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_35 = new JButton(\"New button\");\r\n\t\tbtnNewButton_35.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"팥빙수\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_35.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_35.setIcon(new ImageIcon(((new ImageIcon(path + \"dn.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_50.add(btnNewButton_35, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_38 = new JLabel(\"<html>\\uD325\\uBE59\\uC218<br> 3,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_38.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_38.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_50.add(lblNewLabel_38, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_51 = new JPanel();\r\n\t\tpanel_51.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_51);\r\n\t\tpanel_51.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_36 = new JButton(\"New button\");\r\n\t\tbtnNewButton_36.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"쿨피스\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_36.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_36.setIcon(new ImageIcon(((new ImageIcon(path + \"do.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_51.add(btnNewButton_36, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_39 = new JLabel(\"<html>\\uCFE8\\uD53C\\uC2A4<br> 1,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_39.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_39.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_51.add(lblNewLabel_39, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_52 = new JPanel();\r\n\t\tpanel_52.setBackground(Color.WHITE);\r\n\t\tpanel_5.add(panel_52);\r\n\t\tpanel_52.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_37 = new JButton(\"New button\");\r\n\t\tbtnNewButton_37.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tupdateMenu(\"콜라\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_37.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_37.setIcon(new ImageIcon(((new ImageIcon(path + \"dp.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_52.add(btnNewButton_37, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_40 = new JLabel(\"<html>\\uCF5C\\uB77C<br> 1,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_40.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_40.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_52.add(lblNewLabel_40, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_6 = new JPanel();\r\n\t\ttabbedPane.addTab(\"중국집\", null, panel_6, null);\r\n\t\tpanel_6.setLayout(new GridLayout(4, 5, 0, 0));\r\n\r\n\t\tJPanel panel_54 = new JPanel();\r\n\t\tpanel_54.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_54);\r\n\t\tpanel_54.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_38 = new JButton(\"\");\r\n\t\tbtnNewButton_38.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_38.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_38.setIcon(new ImageIcon(((new ImageIcon(path + \"ja.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_54.add(btnNewButton_38, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_41 = new JLabel(\"<html>\\uC9DC\\uC7A5\\uBA74<br> 3,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_41.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_41.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_54.add(lblNewLabel_41, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_55 = new JPanel();\r\n\t\tpanel_55.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_55);\r\n\t\tpanel_55.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_39 = new JButton(\"\");\r\n\t\tbtnNewButton_39.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_39.setIcon(new ImageIcon(((new ImageIcon(path + \"jb.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_55.add(btnNewButton_39, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_42 = new JLabel(\"<html>\\uC6B0\\uB3D9<br> 6,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_42.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_42.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_55.add(lblNewLabel_42, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_56 = new JPanel();\r\n\t\tpanel_56.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_56);\r\n\t\tpanel_56.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_40 = new JButton(\"\");\r\n\t\tbtnNewButton_40.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_40.setIcon(new ImageIcon(((new ImageIcon(path + \"jc.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_56.add(btnNewButton_40, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_43 = new JLabel(\"<html>\\uC9EC\\uBF55<br> 6,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_43.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_43.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_56.add(lblNewLabel_43, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_57 = new JPanel();\r\n\t\tpanel_57.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_57);\r\n\t\tpanel_57.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_41 = new JButton(\"\");\r\n\t\tbtnNewButton_41.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_41.setIcon(new ImageIcon(((new ImageIcon(path + \"jd.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_57.add(btnNewButton_41, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_44 = new JLabel(\"<html>\\uAC04\\uC9DC\\uC7A5<br> 6,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_44.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_44.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_57.add(lblNewLabel_44, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_58 = new JPanel();\r\n\t\tpanel_58.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_58);\r\n\t\tpanel_58.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_42 = new JButton(\"\");\r\n\t\tbtnNewButton_42.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_42.setIcon(new ImageIcon(((new ImageIcon(path + \"je.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_58.add(btnNewButton_42, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_45 = new JLabel(\"<html>\\uC6B8 \\uBA74<br> 6,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_45.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_45.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_58.add(lblNewLabel_45, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_59 = new JPanel();\r\n\t\tpanel_59.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_59);\r\n\t\tpanel_59.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_43 = new JButton(\"\");\r\n\t\tbtnNewButton_43.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_43.setIcon(new ImageIcon(((new ImageIcon(path + \"jf.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_59.add(btnNewButton_43, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_46 = new JLabel(\"<html>\\uACE0\\uCD94\\uC9EC\\uBF55<br> 8,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_46.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_46.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_59.add(lblNewLabel_46, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_60 = new JPanel();\r\n\t\tpanel_60.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_60);\r\n\t\tpanel_60.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_44 = new JButton(\"\");\r\n\t\tbtnNewButton_44.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_44.setIcon(new ImageIcon(((new ImageIcon(path + \"jg.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_60.add(btnNewButton_44, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_47 = new JLabel(\"<html>\\uC0BC\\uC120\\uC9DC\\uC7A5\\uBA74<br> 8,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_47.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_47.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_60.add(lblNewLabel_47, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_61 = new JPanel();\r\n\t\tpanel_61.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_61);\r\n\t\tpanel_61.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_45 = new JButton(\"\");\r\n\t\tbtnNewButton_45.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_45.setIcon(new ImageIcon(((new ImageIcon(path + \"jh.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_61.add(btnNewButton_45, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_48 = new JLabel(\"<html>\\uAE30\\uC2A4\\uBA74<br> 8,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_48.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_48.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_61.add(lblNewLabel_48, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_62 = new JPanel();\r\n\t\tpanel_62.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_62);\r\n\t\tpanel_62.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_46 = new JButton(\"\");\r\n\t\tbtnNewButton_46.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_46.setIcon(new ImageIcon(((new ImageIcon(path + \"ji.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_62.add(btnNewButton_46, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_49 = new JLabel(\"<html>\\uC7C1\\uBC18\\uC9DC\\uC7A5<br> 13,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_49.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_49.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_62.add(lblNewLabel_49, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_63 = new JPanel();\r\n\t\tpanel_63.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_63);\r\n\t\tpanel_63.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_47 = new JButton(\"\");\r\n\t\tbtnNewButton_47.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_47.setIcon(new ImageIcon(((new ImageIcon(path + \"jj.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_63.add(btnNewButton_47, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_50 = new JLabel(\"<html>\\uC7C1\\uBC18\\uC9EC\\uBF55<br> 13,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_50.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_50.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_63.add(lblNewLabel_50, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_64 = new JPanel();\r\n\t\tpanel_64.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_64);\r\n\t\tpanel_64.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_48 = new JButton(\"\");\r\n\t\tbtnNewButton_48.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_48.setIcon(new ImageIcon(((new ImageIcon(path + \"jk.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_64.add(btnNewButton_48, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_51 = new JLabel(\"<html>\\uD0D5\\uC218\\uC721<br> 25,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_51.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_51.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_64.add(lblNewLabel_51, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_65 = new JPanel();\r\n\t\tpanel_65.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_65);\r\n\t\tpanel_65.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_49 = new JButton(\"\");\r\n\t\tbtnNewButton_49.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_49.setIcon(new ImageIcon(((new ImageIcon(path + \"jl.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_65.add(btnNewButton_49, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_52 = new JLabel(\"<html>\\uD314\\uBCF4\\uCC44<br> 30,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_52.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_52.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_65.add(lblNewLabel_52, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_66 = new JPanel();\r\n\t\tpanel_66.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_66);\r\n\t\tpanel_66.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_50 = new JButton(\"\");\r\n\t\tbtnNewButton_50.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_50.setIcon(new ImageIcon(((new ImageIcon(path + \"jm.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_66.add(btnNewButton_50, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_53 = new JLabel(\"<html>\\uB09C\\uC790\\uC644\\uC2A4<br> 30,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_53.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_53.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_66.add(lblNewLabel_53, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_67 = new JPanel();\r\n\t\tpanel_67.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_67);\r\n\t\tpanel_67.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_51 = new JButton(\"\");\r\n\t\tbtnNewButton_51.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_51.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_51.setIcon(new ImageIcon(((new ImageIcon(path + \"jn.png\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_67.add(btnNewButton_51, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_54 = new JLabel(\"<html>\\uAE50\\uD48D\\uAE30<br> 30,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_54.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_54.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_67.add(lblNewLabel_54, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_68 = new JPanel();\r\n\t\tpanel_68.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_68);\r\n\t\tpanel_68.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_52 = new JButton(\"\");\r\n\t\tbtnNewButton_52.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_52.setIcon(new ImageIcon(((new ImageIcon(path + \"jo.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_68.add(btnNewButton_52, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_55 = new JLabel(\"<html>\\uC591\\uC7A5\\uD53C<br> 25,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_55.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_55.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_68.add(lblNewLabel_55, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_69 = new JPanel();\r\n\t\tpanel_69.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_69);\r\n\t\tpanel_69.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_53 = new JButton(\"\");\r\n\t\tbtnNewButton_53.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_53.setIcon(new ImageIcon(((new ImageIcon(path + \"jp.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_69.add(btnNewButton_53, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_56 = new JLabel(\"<html>\\uC624\\uBBC0\\uB77C\\uC774\\uC2A4<br> 7,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_56.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_56.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_69.add(lblNewLabel_56, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_70 = new JPanel();\r\n\t\tpanel_70.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_70);\r\n\t\tpanel_70.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_54 = new JButton(\"\");\r\n\t\tbtnNewButton_54.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_54.setIcon(new ImageIcon(((new ImageIcon(path + \"jq.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_70.add(btnNewButton_54, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_57 = new JLabel(\"<html>\\uC7A1\\uCC44\\uBC25<br> 7,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_57.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_57.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_70.add(lblNewLabel_57, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_71 = new JPanel();\r\n\t\tpanel_71.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_71);\r\n\t\tpanel_71.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_55 = new JButton(\"\");\r\n\t\tbtnNewButton_55.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_55.setIcon(new ImageIcon(((new ImageIcon(path + \"jr.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_71.add(btnNewButton_55, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_58 = new JLabel(\"<html>\\uBCF6\\uC74C\\uBC25<br> 6,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_58.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_58.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_71.add(lblNewLabel_58, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_72 = new JPanel();\r\n\t\tpanel_72.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_72);\r\n\t\tpanel_72.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_56 = new JButton(\"\");\r\n\t\tbtnNewButton_56.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_56.setIcon(new ImageIcon(((new ImageIcon(path + \"js.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_72.add(btnNewButton_56, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_59 = new JLabel(\"<html>\\uC9DC\\uC7A5\\uBC25<br> 6,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_59.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_59.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_72.add(lblNewLabel_59, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_53 = new JPanel();\r\n\t\tpanel_53.setBackground(Color.WHITE);\r\n\t\tpanel_6.add(panel_53);\r\n\t\tpanel_53.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_57 = new JButton(\"\");\r\n\t\tbtnNewButton_57.setBackground(Color.WHITE);\r\n\t\tbtnNewButton_57.setIcon(new ImageIcon(((new ImageIcon(path + \"jt.jpg\")).getImage()).getScaledInstance(170, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_53.add(btnNewButton_57, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_60 = new JLabel(\"<html>\\uAD6D\\uBC25<br> 6,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_60.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_60.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_53.add(lblNewLabel_60, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_7 = new JPanel();\r\n\t\tpanel_7.setBackground(Color.WHITE);\r\n\t\ttabbedPane.addTab(\"맘스터치\", null, panel_7, null);\r\n\t\tpanel_7.setLayout(new GridLayout(4, 5, 0, 0));\r\n\r\n\t\tJPanel panel_35 = new JPanel();\r\n\t\tpanel_35.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_35);\r\n\t\tpanel_35.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_58 = new JButton(\"\");\r\n\t\tbtnNewButton_58.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_58.setIcon(new ImageIcon(((new ImageIcon(path + \"ma.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_58.setBackground(Color.WHITE);\r\n\t\tpanel_35.add(btnNewButton_58, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_61 = new JLabel(\"<html>\\uB525\\uCE58\\uC988\\uBC84\\uAC70<br> 5,900\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_61.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_61.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_35.add(lblNewLabel_61, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_73 = new JPanel();\r\n\t\tpanel_73.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_73);\r\n\t\tpanel_73.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_59 = new JButton(\"\");\r\n\t\tbtnNewButton_59.setIcon(new ImageIcon(((new ImageIcon(path + \"mb.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_59.setBackground(Color.WHITE);\r\n\t\tpanel_73.add(btnNewButton_59, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_62 = new JLabel(\"<html>\\uBD88\\uC2F8\\uC774\\uBC84\\uAC70<br> 5,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_62.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_62.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_73.add(lblNewLabel_62, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_74 = new JPanel();\r\n\t\tpanel_74.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_74);\r\n\t\tpanel_74.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_60 = new JButton(\"\");\r\n\t\tbtnNewButton_60.setIcon(new ImageIcon(((new ImageIcon(path + \"mc.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_60.setBackground(Color.WHITE);\r\n\t\tpanel_74.add(btnNewButton_60, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_63 = new JLabel(\r\n\t\t\t\t\"<html>\\uBD88\\uAC08\\uBE44\\uCE58\\uD0A8\\uBC84\\uAC70<br> 4,900\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_63.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_63.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_74.add(lblNewLabel_63, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_75 = new JPanel();\r\n\t\tpanel_75.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_75);\r\n\t\tpanel_75.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_61 = new JButton(\"\");\r\n\t\tbtnNewButton_61.setIcon(new ImageIcon(((new ImageIcon(path + \"md.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_61.setBackground(Color.WHITE);\r\n\t\tpanel_75.add(btnNewButton_61, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_64 = new JLabel(\"<html>\\uB9AC\\uC0D0\\uBC84\\uAC70<br> 5,900\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_64.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_64.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_75.add(lblNewLabel_64, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_76 = new JPanel();\r\n\t\tpanel_76.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_76);\r\n\t\tpanel_76.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_62 = new JButton(\"\");\r\n\t\tbtnNewButton_62.setIcon(new ImageIcon(((new ImageIcon(path + \"me.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_62.setBackground(Color.WHITE);\r\n\t\tpanel_76.add(btnNewButton_62, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_65 = new JLabel(\r\n\t\t\t\t\"<html>\\uD654\\uC774\\uD2B8\\uAC08\\uB9AD\\uBC84\\uAC70<br> 5,900\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_65.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_65.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_76.add(lblNewLabel_65, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_77 = new JPanel();\r\n\t\tpanel_77.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_77);\r\n\t\tpanel_77.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_63 = new JButton(\"New button\");\r\n\t\tbtnNewButton_63.setIcon(new ImageIcon(((new ImageIcon(path + \"mf.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_63.setBackground(Color.WHITE);\r\n\t\tpanel_77.add(btnNewButton_63, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_66 = new JLabel(\r\n\t\t\t\t\"<html>\\uCE7C\\uC298\\uD50C\\uB7EC\\uC2A4\\uBC84\\uAC70<br> 5,600\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_66.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_66.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_77.add(lblNewLabel_66, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_78 = new JPanel();\r\n\t\tpanel_78.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_78);\r\n\t\tpanel_78.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_64 = new JButton(\"\");\r\n\t\tbtnNewButton_64.setIcon(new ImageIcon(((new ImageIcon(path + \"mg.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_64.setBackground(Color.WHITE);\r\n\t\tpanel_78.add(btnNewButton_64, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_67 = new JLabel(\r\n\t\t\t\t\"<html>\\uC2A4\\uD30C\\uC774\\uC2A4\\uBD88\\uACE0\\uAE30\\uBC84\\uAC70<br> 5,200\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_67.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_67.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_78.add(lblNewLabel_67, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_79 = new JPanel();\r\n\t\tpanel_79.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_79);\r\n\t\tpanel_79.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_65 = new JButton(\"\");\r\n\t\tbtnNewButton_65.setIcon(new ImageIcon(((new ImageIcon(path + \"mh.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_65.setBackground(Color.WHITE);\r\n\t\tpanel_79.add(btnNewButton_65, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_68 = new JLabel(\r\n\t\t\t\t\"<html>\\uC2A4\\uD30C\\uC774\\uC2DC\\uB514\\uB7ED\\uC2A4\\uBD88\\uACE0\\uAE30<br> 6,200\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_68.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_68.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_79.add(lblNewLabel_68, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_80 = new JPanel();\r\n\t\tpanel_80.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_80);\r\n\t\tpanel_80.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_66 = new JButton(\"\");\r\n\t\tbtnNewButton_66.setIcon(new ImageIcon(((new ImageIcon(path + \"mi.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_66.setBackground(Color.WHITE);\r\n\t\tpanel_80.add(btnNewButton_66, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_69 = new JLabel(\r\n\t\t\t\t\"<html>\\uB514\\uB7ED\\uC2A4\\uBD88\\uACE0\\uAE30\\uBC84\\uAC70<br> 6,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_69.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_69.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_80.add(lblNewLabel_69, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_81 = new JPanel();\r\n\t\tpanel_81.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_81);\r\n\t\tpanel_81.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_67 = new JButton(\"\");\r\n\t\tbtnNewButton_67.setIcon(new ImageIcon(((new ImageIcon(path + \"mj.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_67.setBackground(Color.WHITE);\r\n\t\tpanel_81.add(btnNewButton_67, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_70 = new JLabel(\"<html>\\uC2F8\\uC774\\uBC84\\uAC70<br> 5,400\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_70.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_70.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_81.add(lblNewLabel_70, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_82 = new JPanel();\r\n\t\tpanel_82.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_82);\r\n\t\tpanel_82.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_68 = new JButton(\"\");\r\n\t\tbtnNewButton_68.setIcon(new ImageIcon(((new ImageIcon(path + \"mk.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_68.setBackground(Color.WHITE);\r\n\t\tpanel_82.add(btnNewButton_68, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_71 = new JLabel(\"<html>\\uD720\\uB81B\\uBC84\\uAC70<br> 5,600\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_71.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_71.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_82.add(lblNewLabel_71, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_83 = new JPanel();\r\n\t\tpanel_83.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_83);\r\n\t\tpanel_83.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_69 = new JButton(\"\");\r\n\t\tbtnNewButton_69.setIcon(new ImageIcon(((new ImageIcon(path + \"ml.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_69.setBackground(Color.WHITE);\r\n\t\tpanel_83.add(btnNewButton_69, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_72 = new JLabel(\r\n\t\t\t\t\"<html>\\uD584\\uCE58\\uC988\\uD720\\uB81B\\uBC84\\uAC70<br> 5,900\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_72.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_72.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_83.add(lblNewLabel_72, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_84 = new JPanel();\r\n\t\tpanel_84.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_84);\r\n\t\tpanel_84.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_70 = new JButton(\"\");\r\n\t\tbtnNewButton_70.setIcon(new ImageIcon(((new ImageIcon(path + \"mm.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_70.setBackground(Color.WHITE);\r\n\t\tpanel_84.add(btnNewButton_70, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_73 = new JLabel(\r\n\t\t\t\t\"<html>\\uD560\\uB77C\\uD53C\\uB1E8\\uD1B5\\uC0B4\\uBC84\\uAC70<br> 5,900\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_73.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_73.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_84.add(lblNewLabel_73, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_85 = new JPanel();\r\n\t\tpanel_85.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_85);\r\n\t\tpanel_85.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_71 = new JButton(\"\");\r\n\t\tbtnNewButton_71.setIcon(new ImageIcon(((new ImageIcon(path + \"mn.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_71.setBackground(Color.WHITE);\r\n\t\tpanel_85.add(btnNewButton_71, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_74 = new JLabel(\r\n\t\t\t\t\"<html>\\uD560\\uB77C\\uD53C\\uB1E8\\uD1B5\\uAC00\\uC2B4\\uC0B4\\uBC84\\uAC70<br> 5,900\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_74.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_74.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_85.add(lblNewLabel_74, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_86 = new JPanel();\r\n\t\tpanel_86.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_86);\r\n\t\tpanel_86.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_72 = new JButton(\"\");\r\n\t\tbtnNewButton_72.setIcon(new ImageIcon(((new ImageIcon(path + \"mo.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_72.setBackground(Color.WHITE);\r\n\t\tpanel_86.add(btnNewButton_72, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_75 = new JLabel(\r\n\t\t\t\t\"<html>\\uD56B\\uD50C\\uB7EC\\uC2A4\\uD1B5\\uC0B4\\uBC84\\uAC70<br> 6,200\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_75.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_75.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tpanel_86.add(lblNewLabel_75, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_87 = new JPanel();\r\n\t\tpanel_87.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_87);\r\n\t\tpanel_87.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_73 = new JButton(\"\");\r\n\t\tbtnNewButton_73.setIcon(new ImageIcon(((new ImageIcon(path + \"mp.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_73.setBackground(Color.WHITE);\r\n\t\tpanel_87.add(btnNewButton_73, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_76 = new JLabel(\r\n\t\t\t\t\"<html>\\uD56B\\uD50C\\uB7EC\\uC2A4\\uD1B5\\uAC00\\uC2B4\\uC0B4<br> 6,200\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_76.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_76.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_76.setBackground(Color.WHITE);\r\n\t\tpanel_87.add(lblNewLabel_76, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_88 = new JPanel();\r\n\t\tpanel_88.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_88);\r\n\t\tpanel_88.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_74 = new JButton(\"\");\r\n\t\tbtnNewButton_74.setIcon(new ImageIcon(((new ImageIcon(path + \"mq.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_74.setBackground(Color.WHITE);\r\n\t\tpanel_88.add(btnNewButton_74, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_77 = new JLabel(\"<html>\\uD1B5\\uC0C8\\uC6B0\\uBC84\\uAC70<br> 4,900\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_77.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_77.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_77.setBackground(Color.WHITE);\r\n\t\tpanel_88.add(lblNewLabel_77, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_89 = new JPanel();\r\n\t\tpanel_89.setBackground(Color.WHITE);\r\n\t\tpanel_7.add(panel_89);\r\n\t\tpanel_89.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_75 = new JButton(\"\");\r\n\t\tbtnNewButton_75.setIcon(new ImageIcon(((new ImageIcon(path + \"mr.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_75.setBackground(Color.WHITE);\r\n\t\tpanel_89.add(btnNewButton_75, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_78 = new JLabel(\"<html>\\uD1B5\\uC0C8\\uC6B0\\uBC84\\uAC70<br> 5,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_78.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_78.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_78.setBackground(Color.WHITE);\r\n\t\tpanel_89.add(lblNewLabel_78, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_34 = new JPanel();\r\n\t\tpanel_34.setBackground(Color.WHITE);\r\n\t\ttabbedPane.addTab(\"굽네치킨\", null, panel_34, null);\r\n\t\tpanel_34.setLayout(new GridLayout(4, 5, 0, 0));\r\n\r\n\t\tJPanel panel_90 = new JPanel();\r\n\t\tpanel_90.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_90);\r\n\t\tpanel_90.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_76 = new JButton(\"\");\r\n\t\tbtnNewButton_76.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_76.setIcon(new ImageIcon(((new ImageIcon(path + \"ca.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_76.setBackground(Color.WHITE);\r\n\t\tpanel_90.add(btnNewButton_76, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_79 = new JLabel(\"<html>\\uD56B\\uAC08\\uBE44\\uCC9C\\uC655<br> 17,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_79.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_79.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_90.add(lblNewLabel_79, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_91 = new JPanel();\r\n\t\tpanel_91.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_91);\r\n\t\tpanel_91.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_77 = new JButton(\"\");\r\n\t\tbtnNewButton_77.setIcon(new ImageIcon(((new ImageIcon(path + \"cb.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_77.setBackground(Color.WHITE);\r\n\t\tpanel_91.add(btnNewButton_77, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_80 = new JLabel(\r\n\t\t\t\t\"<html>\\uAC08\\uBE44\\uCC9C\\uC655\\uC2DC\\uB9AC\\uC988<br> 17,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_80.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_80.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_91.add(lblNewLabel_80, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_92 = new JPanel();\r\n\t\tpanel_92.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_92);\r\n\t\tpanel_92.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_84 = new JButton(\"\");\r\n\t\tbtnNewButton_84.setIcon(new ImageIcon(((new ImageIcon(path + \"cc.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_84.setBackground(Color.WHITE);\r\n\t\tpanel_92.add(btnNewButton_84, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_81 = new JLabel(\"<html>\\uC624\\uB9AC\\uC9C0\\uB110<br> 15,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_81.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_81.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_92.add(lblNewLabel_81, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_93 = new JPanel();\r\n\t\tpanel_93.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_93);\r\n\t\tpanel_93.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_88 = new JButton(\"\");\r\n\t\tbtnNewButton_88.setIcon(new ImageIcon(((new ImageIcon(path + \"cd.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_88.setBackground(Color.WHITE);\r\n\t\tpanel_93.add(btnNewButton_88, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_82 = new JLabel(\"<html>\\uBCFC\\uCF00\\uC774\\uB178<br> 17,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_82.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_82.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_93.add(lblNewLabel_82, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_94 = new JPanel();\r\n\t\tpanel_94.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_94);\r\n\t\tpanel_94.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_92 = new JButton(\"\");\r\n\t\tbtnNewButton_92.setIcon(new ImageIcon(((new ImageIcon(path + \"ce.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_92.setBackground(Color.WHITE);\r\n\t\tpanel_94.add(btnNewButton_92, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_83 = new JLabel(\r\n\t\t\t\t\"<html>\\uBCFC\\uCF00\\uC774\\uB178\\uBAA8\\uC9DC\\uB810\\uB77C<br> 19,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_83.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_83.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_94.add(lblNewLabel_83, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_95 = new JPanel();\r\n\t\tpanel_95.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_95);\r\n\t\tpanel_95.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_78 = new JButton(\" 17,000\\uC6D0<br></html>\");\r\n\t\tbtnNewButton_78.setIcon(new ImageIcon(((new ImageIcon(path + \"cf.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_78.setBackground(Color.WHITE);\r\n\t\tpanel_95.add(btnNewButton_78, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_84 = new JLabel(\r\n\t\t\t\t\"<html>\\uBCFC\\uCF00\\uC774\\uB178\\uC300\\uB5A1\\uBCF6\\uC774<br> 18,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_84.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_84.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_95.add(lblNewLabel_84, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_96 = new JPanel();\r\n\t\tpanel_96.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_96);\r\n\t\tpanel_96.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_81 = new JButton(\"\");\r\n\t\tbtnNewButton_81.setIcon(new ImageIcon(((new ImageIcon(path + \"cg.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_81.setBackground(Color.WHITE);\r\n\t\tpanel_96.add(btnNewButton_81, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_85 = new JLabel(\"<html>\\uAD7D\\uB124 \\uBC18\\uBC18<br> 17,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_85.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_85.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_96.add(lblNewLabel_85, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_97 = new JPanel();\r\n\t\tpanel_97.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_97);\r\n\t\tpanel_97.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_85 = new JButton(\"\");\r\n\t\tbtnNewButton_85.setIcon(new ImageIcon(((new ImageIcon(path + \"ch.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_85.setBackground(Color.WHITE);\r\n\t\tpanel_97.add(btnNewButton_85, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_86 = new JLabel(\"<html>\\uAD7D\\uB124 \\uBC18\\uBC18 B<br> 17,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_86.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_86.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_97.add(lblNewLabel_86, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_98 = new JPanel();\r\n\t\tpanel_98.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_98);\r\n\t\tpanel_98.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_89 = new JButton(\"\");\r\n\t\tbtnNewButton_89.setIcon(new ImageIcon(((new ImageIcon(path + \"ci.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_89.setBackground(Color.WHITE);\r\n\t\tpanel_98.add(btnNewButton_89, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_87 = new JLabel(\"<html>\\uACE0\\uCD94\\uBC14\\uC0AC\\uC0AD<br> 16,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_87.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_87.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_98.add(lblNewLabel_87, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_99 = new JPanel();\r\n\t\tpanel_99.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_99);\r\n\t\tpanel_99.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_93 = new JButton(\"\");\r\n\t\tbtnNewButton_93.setIcon(new ImageIcon(((new ImageIcon(path + \"cj.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_93.setBackground(Color.WHITE);\r\n\t\tpanel_99.add(btnNewButton_93, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_88 = new JLabel(\r\n\t\t\t\t\"<html>\\uD6C4\\uB974\\uCE04\\uC18C\\uC774\\uAC08\\uB9AD<br> 17,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_88.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_88.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_99.add(lblNewLabel_88, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_100 = new JPanel();\r\n\t\tpanel_100.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_100);\r\n\t\tpanel_100.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_79 = new JButton(\"\");\r\n\t\tbtnNewButton_79.setIcon(new ImageIcon(((new ImageIcon(path + \"ck.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_79.setBackground(Color.WHITE);\r\n\t\tpanel_100.add(btnNewButton_79, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_89 = new JLabel(\"<html>\\uC591\\uB150\\uCE58\\uD0A8<br> 17,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_89.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_89.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_100.add(lblNewLabel_89, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_101 = new JPanel();\r\n\t\tpanel_101.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_101);\r\n\t\tpanel_101.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_82 = new JButton(\"\");\r\n\t\tbtnNewButton_82.setIcon(new ImageIcon(((new ImageIcon(path + \"cl.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_82.setBackground(Color.WHITE);\r\n\t\tpanel_101.add(btnNewButton_82, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_90 = new JLabel(\r\n\t\t\t\t\"<html>\\uB525\\uCE58\\uC988\\uC2DC\\uB9AC\\uC988<br> 17,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_90.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_90.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_101.add(lblNewLabel_90, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_102 = new JPanel();\r\n\t\tpanel_102.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_102);\r\n\t\tpanel_102.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_86 = new JButton(\"\");\r\n\t\tbtnNewButton_86.setIcon(new ImageIcon(((new ImageIcon(path + \"cm.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_86.setBackground(Color.WHITE);\r\n\t\tpanel_102.add(btnNewButton_86, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_93 = new JLabel(\r\n\t\t\t\t\"<html>\\uC624\\uB9AC\\uC9C0\\uB110\\uCF64\\uBCF4<br> 17,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_93.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_93.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_102.add(lblNewLabel_93, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_103 = new JPanel();\r\n\t\tpanel_103.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_103);\r\n\t\tpanel_103.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_90 = new JButton(\"\");\r\n\t\tbtnNewButton_90.setIcon(new ImageIcon(((new ImageIcon(path + \"cn.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_90.setBackground(Color.WHITE);\r\n\t\tpanel_103.add(btnNewButton_90, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_95 = new JLabel(\"<html>\\uD3ED\\uB9BD \\uC138\\uD2B8<br> 30,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_95.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_95.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_103.add(lblNewLabel_95, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_104 = new JPanel();\r\n\t\tpanel_104.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_104);\r\n\t\tpanel_104.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_94 = new JButton(\"\");\r\n\t\tbtnNewButton_94.setIcon(new ImageIcon(((new ImageIcon(path + \"co.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_94.setBackground(Color.WHITE);\r\n\t\tpanel_104.add(btnNewButton_94, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_96 = new JLabel(\"<html>\\uB450\\uB9C8\\uB9AC\\uC138\\uD2B8<br> 26,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_96.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_96.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_104.add(lblNewLabel_96, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_105 = new JPanel();\r\n\t\tpanel_105.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_105);\r\n\t\tpanel_105.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_80 = new JButton(\"\");\r\n\t\tbtnNewButton_80.setIcon(new ImageIcon(((new ImageIcon(path + \"cp.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_80.setBackground(Color.WHITE);\r\n\t\tpanel_105.add(btnNewButton_80, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_91 = new JLabel(\"<html>\\uAD7D\\uB124 \\uD3ED\\uB9BD<br> 18,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_91.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_91.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_105.add(lblNewLabel_91, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_106 = new JPanel();\r\n\t\tpanel_106.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_106);\r\n\t\tpanel_106.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_83 = new JButton(\"\");\r\n\t\tbtnNewButton_83.setIcon(new ImageIcon(((new ImageIcon(path + \"cr.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_83.setBackground(Color.WHITE);\r\n\t\tpanel_106.add(btnNewButton_83, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_92 = new JLabel(\"<html>\\uCF00\\uC774\\uC900\\uAC10\\uC790<br> 3,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_92.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_92.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_106.add(lblNewLabel_92, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_107 = new JPanel();\r\n\t\tpanel_107.setBackground(Color.WHITE);\r\n\t\tpanel_34.add(panel_107);\r\n\t\tpanel_107.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_87 = new JButton(\"\");\r\n\t\tbtnNewButton_87.setIcon(new ImageIcon(((new ImageIcon(path + \"cs.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_87.setBackground(Color.WHITE);\r\n\t\tpanel_107.add(btnNewButton_87, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_94 = new JLabel(\"<html>\\uC6E8\\uC9C0\\uAC10\\uC790<br> 3,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_94.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_94.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_107.add(lblNewLabel_94, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_36 = new JPanel();\r\n\t\ttabbedPane.addTab(\"난타5000\", null, panel_36, null);\r\n\t\tpanel_36.setLayout(new GridLayout(4, 5, 0, 0));\r\n\r\n\t\tJPanel panel_108 = new JPanel();\r\n\t\tpanel_108.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_108);\r\n\t\tpanel_108.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_103 = new JButton(\"\");\r\n\t\tbtnNewButton_103.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_103.setIcon(new ImageIcon(((new ImageIcon(path + \"za.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_103.setBackground(Color.WHITE);\r\n\t\tpanel_108.add(btnNewButton_103, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_110 = new JLabel(\r\n\t\t\t\t\"<html>\\uACE8\\uB4DC\\uACE0\\uAD6C\\uB9C8\\uD53C\\uC790<br> 15,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_110.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_110.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_108.add(lblNewLabel_110, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_109 = new JPanel();\r\n\t\tpanel_109.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_109);\r\n\t\tpanel_109.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_104 = new JButton(\"\");\r\n\t\tbtnNewButton_104.setIcon(new ImageIcon(((new ImageIcon(path + \"zb.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_104.setBackground(Color.WHITE);\r\n\t\tpanel_109.add(btnNewButton_104, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_111 = new JLabel(\r\n\t\t\t\t\"<html>\\uD56B\\uACE8\\uB4DC\\uBC14\\uBCA0\\uD050\\uD544\\uB808\\uD53C\\uC790<br> 15,900\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_111.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_111.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_109.add(lblNewLabel_111, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_110 = new JPanel();\r\n\t\tpanel_110.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_110);\r\n\t\tpanel_110.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_107 = new JButton(\"\");\r\n\t\tbtnNewButton_107.setIcon(new ImageIcon(((new ImageIcon(path + \"zc.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_107.setBackground(Color.WHITE);\r\n\t\tpanel_110.add(btnNewButton_107, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_112 = new JLabel(\r\n\t\t\t\t\"<html>\\uD56B\\uACE8\\uB4DC\\uBCA0\\uC2A4\\uD2B8\\uD53C\\uC790<br> 15,900\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_112.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_112.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_110.add(lblNewLabel_112, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_111 = new JPanel();\r\n\t\tpanel_111.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_111);\r\n\t\tpanel_111.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_108 = new JButton(\"\");\r\n\t\tbtnNewButton_108.setIcon(new ImageIcon(((new ImageIcon(path + \"zd.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_108.setBackground(Color.WHITE);\r\n\t\tpanel_111.add(btnNewButton_108, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_113 = new JLabel(\r\n\t\t\t\t\"<html>\\uD56B\\uACE8\\uB4DC\\uBCA0\\uC774\\uCEE8\\uD53C\\uC790<br> 15,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_113.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_113.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_111.add(lblNewLabel_113, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_112 = new JPanel();\r\n\t\tpanel_112.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_112);\r\n\t\tpanel_112.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_110 = new JButton(\"\");\r\n\t\tbtnNewButton_110.setIcon(new ImageIcon(((new ImageIcon(path + \"ze.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_110.setBackground(Color.WHITE);\r\n\t\tpanel_112.add(btnNewButton_110, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_114 = new JLabel(\r\n\t\t\t\t\"<html>\\uD56B\\uACE8\\uB4DC\\uC0C8\\uC6B0\\uD53C\\uC790<br> 15,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_114.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_114.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_112.add(lblNewLabel_114, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_113 = new JPanel();\r\n\t\tpanel_113.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_113);\r\n\t\tpanel_113.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_102 = new JButton(\"\");\r\n\t\tbtnNewButton_102.setIcon(new ImageIcon(((new ImageIcon(path + \"zf.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_102.setBackground(Color.WHITE);\r\n\t\tpanel_113.add(btnNewButton_102, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_105 = new JLabel(\r\n\t\t\t\t\"<html>\\uD56B\\uACE8\\uB4DC\\uD3EC\\uD14C\\uC774\\uD1A0\\uD53C\\uC790<br> 15,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_105.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_105.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_113.add(lblNewLabel_105, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_114 = new JPanel();\r\n\t\tpanel_114.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_114);\r\n\t\tpanel_114.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_105 = new JButton(\"\");\r\n\t\tbtnNewButton_105.setIcon(new ImageIcon(((new ImageIcon(path + \"zg.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_105.setBackground(Color.WHITE);\r\n\t\tpanel_114.add(btnNewButton_105, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_106 = new JLabel(\r\n\t\t\t\t\"<html>\\uD56B\\uACE8\\uB4DC\\uD56B\\uCE58\\uD0A8\\uD53C\\uC790<br> 15,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_106.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_106.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_114.add(lblNewLabel_106, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_115 = new JPanel();\r\n\t\tpanel_115.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_115);\r\n\t\tpanel_115.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_106 = new JButton(\"\");\r\n\t\tbtnNewButton_106.setIcon(new ImageIcon(((new ImageIcon(path + \"zh.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_106.setBackground(Color.WHITE);\r\n\t\tpanel_115.add(btnNewButton_106, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_107 = new JLabel(\r\n\t\t\t\t\"<html>\\uD56B\\uB9AC\\uCE58\\uACE8\\uB4DC\\uD53C\\uC790<br> 11,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_107.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_107.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_115.add(lblNewLabel_107, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_116 = new JPanel();\r\n\t\tpanel_116.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_116);\r\n\t\tpanel_116.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_109 = new JButton(\"\");\r\n\t\tbtnNewButton_109.setIcon(new ImageIcon(((new ImageIcon(path + \"zi.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_109.setBackground(Color.WHITE);\r\n\t\tpanel_116.add(btnNewButton_109, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_108 = new JLabel(\"<html>\\uACE0\\uAD6C\\uB9C8\\uD53C\\uC790<br> 7,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_108.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_108.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_116.add(lblNewLabel_108, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_117 = new JPanel();\r\n\t\tpanel_117.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_117);\r\n\t\tpanel_117.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_111 = new JButton(\"\");\r\n\t\tbtnNewButton_111.setIcon(new ImageIcon(((new ImageIcon(path + \"zj.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_111.setBackground(Color.WHITE);\r\n\t\tpanel_117.add(btnNewButton_111, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_109 = new JLabel(\"<html>\\uBCA0\\uC774\\uCEE8\\uD53C\\uC790<br> 9,000\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_109.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_109.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_117.add(lblNewLabel_109, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_118 = new JPanel();\r\n\t\tpanel_118.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_118);\r\n\t\tpanel_118.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_97 = new JButton(\"\");\r\n\t\tbtnNewButton_97.setIcon(new ImageIcon(((new ImageIcon(path + \"zk.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_97.setBackground(Color.WHITE);\r\n\t\tpanel_118.add(btnNewButton_97, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_100 = new JLabel(\"<html>\\uBD88\\uACE0\\uAE30\\uD53C\\uC790<br> 7,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_100.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_100.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_118.add(lblNewLabel_100, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_119 = new JPanel();\r\n\t\tpanel_119.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_119);\r\n\t\tpanel_119.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_98 = new JButton(\"\");\r\n\t\tbtnNewButton_98.setIcon(new ImageIcon(((new ImageIcon(path + \"zl.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_98.setBackground(Color.WHITE);\r\n\t\tpanel_119.add(btnNewButton_98, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_101 = new JLabel(\"<html>\\uC57C\\uCC44\\uD53C\\uC790<br> 6,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_101.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_101.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_119.add(lblNewLabel_101, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_120 = new JPanel();\r\n\t\tpanel_120.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_120);\r\n\t\tpanel_120.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_99 = new JButton(\"\");\r\n\t\tbtnNewButton_99.setIcon(new ImageIcon(((new ImageIcon(path + \"zm.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_99.setBackground(Color.WHITE);\r\n\t\tpanel_120.add(btnNewButton_99, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_102 = new JLabel(\r\n\t\t\t\t\"<html>\\uCE58\\uC988\\uBC14\\uC774\\uD2B8\\uD53C\\uC790<br> 7,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_102.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_102.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_120.add(lblNewLabel_102, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_121 = new JPanel();\r\n\t\tpanel_121.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_121);\r\n\t\tpanel_121.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_100 = new JButton(\"\");\r\n\t\tbtnNewButton_100.setIcon(new ImageIcon(((new ImageIcon(path + \"zn.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_100.setBackground(Color.WHITE);\r\n\t\tpanel_121.add(btnNewButton_100, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_103 = new JLabel(\"<html>\\uCE58\\uC988\\uD53C\\uC790<br> 5,900\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_103.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_103.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_121.add(lblNewLabel_103, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_122 = new JPanel();\r\n\t\tpanel_122.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_122);\r\n\t\tpanel_122.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_101 = new JButton(\"\");\r\n\t\tbtnNewButton_101.setIcon(new ImageIcon(((new ImageIcon(path + \"zo.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_101.setBackground(Color.WHITE);\r\n\t\tpanel_122.add(btnNewButton_101, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_104 = new JLabel(\r\n\t\t\t\t\"<html>\\uCF64\\uBE44\\uB124\\uC774\\uC158\\uD53C\\uC790<br> 7,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_104.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_104.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_122.add(lblNewLabel_104, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_123 = new JPanel();\r\n\t\tpanel_123.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_123);\r\n\t\tpanel_123.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_91 = new JButton(\"\");\r\n\t\tbtnNewButton_91.setIcon(new ImageIcon(((new ImageIcon(path + \"zp.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_91.setBackground(Color.WHITE);\r\n\t\tpanel_123.add(btnNewButton_91, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_97 = new JLabel(\"<html>\\uD398\\uD30C\\uB85C\\uB2C8\\uD53C\\uC790<br> 7,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_97.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_97.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_123.add(lblNewLabel_97, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_124 = new JPanel();\r\n\t\tpanel_124.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_124);\r\n\t\tpanel_124.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_95 = new JButton(\"\");\r\n\t\tbtnNewButton_95.setIcon(new ImageIcon(((new ImageIcon(path + \"zq.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_95.setBackground(Color.WHITE);\r\n\t\tpanel_124.add(btnNewButton_95, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_98 = new JLabel(\"<html>\\uD3EC\\uD14C\\uC774\\uD1A0\\uD53C\\uC790<br> 7,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_98.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_98.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_124.add(lblNewLabel_98, BorderLayout.SOUTH);\r\n\r\n\t\tJPanel panel_125 = new JPanel();\r\n\t\tpanel_125.setBackground(Color.WHITE);\r\n\t\tpanel_36.add(panel_125);\r\n\t\tpanel_125.setLayout(new BorderLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_96 = new JButton(\"\");\r\n\t\tbtnNewButton_96.setIcon(new ImageIcon(((new ImageIcon(path + \"zr.jpg\")).getImage()).getScaledInstance(150, 180,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tbtnNewButton_96.setBackground(Color.WHITE);\r\n\t\tpanel_125.add(btnNewButton_96, BorderLayout.CENTER);\r\n\r\n\t\tJLabel lblNewLabel_99 = new JLabel(\"<html>\\uD56B\\uCE58\\uD0A8\\uD53C\\uC790<br> 8,500\\uC6D0<br></html>\");\r\n\t\tlblNewLabel_99.setFont(new Font(\"휴먼모음T\", Font.BOLD, 13));\r\n\t\tlblNewLabel_99.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tpanel_125.add(lblNewLabel_99, BorderLayout.SOUTH);\r\n\t\tframe.getContentPane().add(panel_3);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"\");\r\n\t\tlblNewLabel.setIcon(new ImageIcon(((new ImageIcon(path + \"hans.jpg\")).getImage()).getScaledInstance(180, 70,\r\n\t\t\t\tjava.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_3.add(lblNewLabel);\r\n\r\n\t\tJPanel panel_28 = new JPanel();\r\n\t\tspringLayout.putConstraint(SpringLayout.SOUTH, panel_2, -6, SpringLayout.NORTH, panel_28);\r\n\t\tspringLayout.putConstraint(SpringLayout.NORTH, panel_28, 481, SpringLayout.NORTH, frame.getContentPane());\r\n\r\n\t\tJPanel panel_30 = new JPanel();\r\n\t\tpanel_30.setBackground(new Color(255, 215, 0));\r\n\t\tpanel_2.add(panel_30);\r\n\t\tpanel_30.setLayout(new CardLayout(0, 0));\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"\\uAE08\\uC561\");\r\n\t\tpanel_30.add(lblNewLabel_1, \"name_22714984690603\");\r\n\t\tlblNewLabel_1.setFont(new Font(\"휴먼모음T\", Font.BOLD, 17));\r\n\t\tlblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);\r\n\r\n\t\tJPanel panel_31 = new JPanel();\r\n\t\tpanel_2.add(panel_31);\r\n\t\tpanel_31.setLayout(new CardLayout(0, 0));\r\n\r\n\t\tprice = new JLabel(\"-\");\r\n\t\tpanel_31.add(price, \"name_22718929763686\");\r\n\t\tprice.setFont(new Font(\"휴먼모음T\", Font.BOLD, 17));\r\n\t\tprice.setHorizontalAlignment(SwingConstants.CENTER);\r\n\r\n\t\tJPanel panel_32 = new JPanel();\r\n\t\tpanel_32.setBackground(new Color(255, 215, 0));\r\n\t\tpanel_2.add(panel_32);\r\n\t\tpanel_32.setLayout(new CardLayout(0, 0));\r\n\r\n\t\tJLabel lblNewLabel_3 = new JLabel(\"\\uCD1D \\uAE08 \\uC561\");\r\n\t\tpanel_32.add(lblNewLabel_3, \"name_22717258219175\");\r\n\t\tlblNewLabel_3.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_3.setFont(new Font(\"휴먼모음T\", Font.BOLD, 17));\r\n\r\n\t\tJPanel panel_33 = new JPanel();\r\n\t\tpanel_2.add(panel_33);\r\n\t\tpanel_33.setLayout(new CardLayout(0, 0));\r\n\r\n\t\ttotalPrice = new JLabel(\"-\");\r\n\t\tpanel_33.add(totalPrice, \"name_22720521911662\");\r\n\t\ttotalPrice.setFont(new Font(\"휴먼모음T\", Font.BOLD, 17));\r\n\t\ttotalPrice.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tspringLayout.putConstraint(SpringLayout.SOUTH, panel_28, -51, SpringLayout.SOUTH, frame.getContentPane());\r\n\t\tspringLayout.putConstraint(SpringLayout.WEST, panel_28, 6, SpringLayout.EAST, panel);\r\n\t\tspringLayout.putConstraint(SpringLayout.EAST, panel_28, 218, SpringLayout.EAST, panel);\r\n\t\tframe.getContentPane().add(panel_28);\r\n\t\tpanel_28.setLayout(new CardLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_19 = new JButton(\"\\uC8FC\\uBB38\\uD558\\uAE30\");\r\n\t\tbtnNewButton_19.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tisPay = true;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_19.setBackground(Color.ORANGE);\r\n\t\tbtnNewButton_19.setFont(new Font(\"휴먼모음T\", Font.BOLD, 25));\r\n\t\tpanel_28.add(btnNewButton_19, \"name_7319682871478\");\r\n\r\n\t\tJPanel panel_29 = new JPanel();\r\n\t\tspringLayout.putConstraint(SpringLayout.NORTH, panel_29, 6, SpringLayout.SOUTH, panel_28);\r\n\t\tspringLayout.putConstraint(SpringLayout.WEST, panel_29, -55, SpringLayout.EAST, panel_1);\r\n\t\tspringLayout.putConstraint(SpringLayout.SOUTH, panel_29, -10, SpringLayout.SOUTH, frame.getContentPane());\r\n\t\tpanel_29.setBackground(new Color(255, 255, 255));\r\n\t\tpanel_1.setLayout(new CardLayout(0, 0));\r\n\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\tpanel_1.add(scrollPane, \"name_22985429477222\");\r\n\r\n\t\ttable = new JTable(defaultTableModel);\r\n\t\ttable.setBackground(new Color(245, 245, 245));\r\n\t\tscrollPane.setViewportView(table);\r\n\t\tspringLayout.putConstraint(SpringLayout.EAST, panel_29, -10, SpringLayout.EAST, frame.getContentPane());\r\n\t\tframe.getContentPane().add(panel_29);\r\n\t\tpanel_29.setLayout(new CardLayout(0, 0));\r\n\r\n\t\tJButton btnNewButton_20 = new JButton(\"\");\r\n\t\tbtnNewButton_20.setBackground(new Color(255, 255, 255));\r\n\t\tbtnNewButton_20.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tframe.dispose();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_20.setIcon(new ImageIcon(\r\n\t\t\t\t((new ImageIcon(path + \"end.jpg\")).getImage()).getScaledInstance(50, 30, java.awt.Image.SCALE_SMOOTH)));\r\n\t\tpanel_29.add(btnNewButton_20, \"name_19255370222850\");\r\n\r\n\t\tJPanel panel_126 = new JPanel();\r\n\t\tspringLayout.putConstraint(SpringLayout.NORTH, panel_126, 6, SpringLayout.SOUTH, panel_1);\r\n\t\tspringLayout.putConstraint(SpringLayout.WEST, panel_126, 6, SpringLayout.EAST, panel);\r\n\t\tspringLayout.putConstraint(SpringLayout.SOUTH, panel_126, 53, SpringLayout.SOUTH, panel_1);\r\n\t\tspringLayout.putConstraint(SpringLayout.EAST, panel_126, 218, SpringLayout.EAST, panel);\r\n\t\tframe.getContentPane().add(panel_126);\r\n\t\tpanel_126.setLayout(new GridLayout(1, 0, 0, 0));\r\n\r\n\t\t\r\n\t\tJButton cancel = new JButton(\"\\uC120\\uD0DD\\uCDE8\\uC18C\");\r\n\t\tcancel.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdefaultTableModel.removeRow(defaultTableModel.getDataVector().size()-1);\r\n\t\t\t\tprice.setText(\"0\");\r\n\t\t\t\tVector<Object> obj = defaultTableModel.getDataVector();\r\n\t\t\t\ttotalPriced = totalPriced - minusPrice * (Integer)defaultTableModel.getValueAt(defaultTableModel.getRowCount()-1, 1);\r\n\t\t\t\tdeleteCount++;\r\n\t\t\t\ttotalPrice.setText(totalPriced+\"\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tcancel.setBackground(Color.ORANGE);\r\n\t\tcancel.setFont(new Font(\"휴먼모음T\", Font.BOLD, 25));\r\n\t\tpanel_126.add(cancel);\r\n\r\n\t\ttabbedPane.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\r\n\t\t\t\tint check = tabbedPane.getSelectedIndex();\r\n\t\t\t\tswitch (check) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tlblNewLabel.setIcon(new ImageIcon(((new ImageIcon(path + \"hans.jpg\")).getImage())\r\n\t\t\t\t\t\t\t.getScaledInstance(180, 70, java.awt.Image.SCALE_SMOOTH)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tlblNewLabel.setIcon(new ImageIcon(((new ImageIcon(path + \"sinjun.jpg\")).getImage())\r\n\t\t\t\t\t\t\t.getScaledInstance(180, 70, java.awt.Image.SCALE_SMOOTH)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tlblNewLabel.setIcon(new ImageIcon(((new ImageIcon(path + \"china.jpg\")).getImage())\r\n\t\t\t\t\t\t\t.getScaledInstance(180, 70, java.awt.Image.SCALE_SMOOTH)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tlblNewLabel.setIcon(new ImageIcon(((new ImageIcon(path + \"Moms.jpg\")).getImage())\r\n\t\t\t\t\t\t\t.getScaledInstance(180, 70, java.awt.Image.SCALE_SMOOTH)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tlblNewLabel.setIcon(new ImageIcon(((new ImageIcon(path + \"gubne.jpg\")).getImage())\r\n\t\t\t\t\t\t\t.getScaledInstance(180, 70, java.awt.Image.SCALE_SMOOTH)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tlblNewLabel.setIcon(new ImageIcon(((new ImageIcon(path + \"nanta.jpg\")).getImage())\r\n\t\t\t\t\t\t\t.getScaledInstance(180, 70, java.awt.Image.SCALE_SMOOTH)));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setOpaque(true);\n panel1.setPreferredSize(new Dimension(980, 660));\n LeftPane = new JPanel();\n LeftPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(LeftPane, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n LeftPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(new Color(-4473925)), null));\n Stats = new JPanel();\n Stats.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(5, 2, new Insets(0, 0, 0, 0), -1, -1));\n LeftPane.add(Stats, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n Font label1Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label1.getFont());\n if (label1Font != null) label1.setFont(label1Font);\n label1.setText(\"Player:\");\n Stats.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n Font label2Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label2.getFont());\n if (label2Font != null) label2.setFont(label2Font);\n label2.setText(\"Highscore:\");\n Stats.add(label2, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n highScore = new JTextField();\n highScore.setEditable(false);\n highScore.setHorizontalAlignment(0);\n Stats.add(highScore, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n playerName = new JTextField();\n playerName.setEditable(false);\n playerName.setHorizontalAlignment(0);\n playerName.setText(\"\");\n Stats.add(playerName, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label3 = new JLabel();\n Font label3Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label3.getFont());\n if (label3Font != null) label3.setFont(label3Font);\n label3.setText(\"Level:\");\n Stats.add(label3, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n levelId = new JTextField();\n levelId.setEditable(false);\n levelId.setHorizontalAlignment(0);\n Stats.add(levelId, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label4 = new JLabel();\n Font label4Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label4.getFont());\n if (label4Font != null) label4.setFont(label4Font);\n label4.setText(\"Time:\");\n Stats.add(label4, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n timeLeft = new JTextField();\n timeLeft.setEditable(false);\n timeLeft.setEnabled(true);\n timeLeft.setFocusable(true);\n timeLeft.setHorizontalAlignment(0);\n timeLeft.setOpaque(true);\n Stats.add(timeLeft, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label5 = new JLabel();\n Font label5Font = this.$$$getFont$$$(\"Stencil\", -1, 12, label5.getFont());\n if (label5Font != null) label5.setFont(label5Font);\n label5.setHorizontalAlignment(10);\n label5.setText(\"Score:\");\n Stats.add(label5, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n scoreField = new JTextField();\n scoreField.setEditable(false);\n scoreField.setHorizontalAlignment(0);\n Stats.add(scoreField, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label6 = new JLabel();\n Font label6Font = this.$$$getFont$$$(\"Stencil\", -1, 18, label6.getFont());\n if (label6Font != null) label6.setFont(label6Font);\n label6.setText(\"Molecule:\");\n LeftPane.add(label6, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n moleculeName = new JTextField();\n moleculeName.setEditable(false);\n moleculeName.setFocusable(true);\n Font moleculeNameFont = this.$$$getFont$$$(\"Stencil\", -1, 18, moleculeName.getFont());\n if (moleculeNameFont != null) moleculeName.setFont(moleculeNameFont);\n moleculeName.setHorizontalAlignment(0);\n moleculeName.setOpaque(true);\n moleculeName.setRequestFocusEnabled(true);\n moleculeName.setText(\"\");\n moleculeName.setVisible(true);\n moleculeName.putClientProperty(\"caretWidth\", new Integer(0));\n LeftPane.add(moleculeName, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n molPane = new JPanel();\n molPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n LeftPane.add(molPane, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n molPane.add(moleculePanel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(160, 96), null, null, 0, false));\n RightPane = new JPanel();\n RightPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(RightPane, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n RightPane.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n RightPane.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n gamePane = new JPanel();\n gamePane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n RightPane.add(gamePane, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(640, 600), null, new Dimension(800, 640), 0, false));\n gamePane.add(gamePanel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(640, 609), null, new Dimension(980, 680), 0, false));\n }", "public void GUISetup(){\n simTime.setText(\"50\");\n qMean.setText(\"24\");\n dMean.setText(\"45\");\n pMean.setText(\"55\");\n changeNorth.add(simTime2);\n changeNorth.add(simTime);\n changeNorth.add(pMean2);\n changeNorth.add(pMean);\n changeNorth.add(dMean2);\n changeNorth.add(dMean);\n changeNorth.add(qMean2);\n changeNorth.add(qMean);\n changeSouth.add(okay);\n \n resultDisplay.setEditable(false);\n descriptionDisplay.setEditable(false);\n \n changeFrame.add(changeNorth, BorderLayout.NORTH);\n changeFrame.add(changeSouth, BorderLayout.SOUTH);\n \n center.add(totalCus, BorderLayout.CENTER);\n center.add(doorCus, BorderLayout.CENTER);\n center.add(phoneCus, BorderLayout.CENTER);\n center.add(unhelped, BorderLayout.CENTER);\n\n help.add(programDescription);\n menuBar.add(help);\n north.add(menuBar);\n \n frame.setBounds(650, 400, 500, 200);\n changeFrame.setBounds(500, 400, 1100, 145);\n resultFrame.setBounds(500, 200, 600, 500);\n dFrame.setBounds(500, 200, 600, 500);\n frame.add(north, BorderLayout.NORTH);\n frame.add(south, BorderLayout.SOUTH);\n frame.add(center, BorderLayout.CENTER);\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n resultFrame.add(scroll);\n dFrame.add(dScroll);\n showDetails.setEnabled(false);\n \n south.add(runSim);\n south.add(showDetails);\n south.add(changeSimProp);\n \n time = simTime.getText();\n questionT = qMean.getText();\n phoneT = pMean.getText();\n doorT = dMean.getText();\n frame.setVisible(true);\n buttonFunctions();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 733, 481);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(new FormLayout(new ColumnSpec[] {\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tColumnSpec.decode(\"default:grow\"),\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,},\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\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\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(\"default:grow\"),}));\r\n\t\t\r\n\t\tJLabel lblScreen = new JLabel(\"Screen\");\r\n\t\tlblScreen.setBorder(new LineBorder(Color.RED));\r\n\t\tframe.getContentPane().add(lblScreen, \"1, 1, 59, 16\");\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tframe.getContentPane().add(panel, \"1, 17, 59, 20, fill, fill\");\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBorder(new LineBorder(Color.BLUE, 1, true));\r\n\t\tpanel_1.setBounds(114, 0, 457, 80);\r\n\t\tpanel.add(panel_1);\r\n\t\t\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\tpanel_2.setBounds(114, 81, 457, 106);\r\n\t\tpanel.add(panel_2);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.addWindowListener(new FrameWindowListener());\n\t\tframe.setBounds(100, 100, 552, 518);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t{\n\t\t\tpnlFicha = new JPanel();\n\t\t\tpnlFicha.setBorder(new TitledBorder(null, \"Ficha Alumno\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\t\tframe.getContentPane().add(pnlFicha, BorderLayout.CENTER);\n\t\t\tGridBagLayout gbl_pnlFicha = new GridBagLayout();\n\t\t\tgbl_pnlFicha.columnWidths = new int[]{0, 0, 0, 113, 0, 0};\n\t\t\tgbl_pnlFicha.rowHeights = new int[]{0, 0, 42, 41, 40, 46, 0, 0, 0, 0};\n\t\t\tgbl_pnlFicha.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 1.0, Double.MIN_VALUE};\n\t\t\tgbl_pnlFicha.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, Double.MIN_VALUE};\n\t\t\tpnlFicha.setLayout(gbl_pnlFicha);\n\t\t\t{\n\t\t\t\tlblExpediente = new JLabel(\"Núm. expediente:\");\n\t\t\t\tGridBagConstraints gbc_lblExpediente = new GridBagConstraints();\n\t\t\t\tgbc_lblExpediente.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tgbc_lblExpediente.anchor = GridBagConstraints.WEST;\n\t\t\t\tgbc_lblExpediente.gridx = 0;\n\t\t\t\tgbc_lblExpediente.gridy = 0;\n\t\t\t\tpnlFicha.add(lblExpediente, gbc_lblExpediente);\n\t\t\t}\n\t\t\t{\n\t\t\t\ttxtExpediente = new JTextField();\n\t\t\t\ttxtExpediente.addFocusListener(new MyFocusListener());\n\t\t\t\ttxtExpediente.addKeyListener(new TxtExpedienteKeyListener());\n\t\t\t\tGridBagConstraints gbc_txtExpediente = new GridBagConstraints();\n\t\t\t\tgbc_txtExpediente.gridwidth = 2;\n\t\t\t\tgbc_txtExpediente.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tgbc_txtExpediente.fill = GridBagConstraints.HORIZONTAL;\n\t\t\t\tgbc_txtExpediente.gridx = 1;\n\t\t\t\tgbc_txtExpediente.gridy = 0;\n\t\t\t\tpnlFicha.add(txtExpediente, gbc_txtExpediente);\n\t\t\t\ttxtExpediente.setColumns(10);\n\t\t\t}\n\t\t\t{\n\t\t\t\tbtncargarFoto = new JButton(\"Cargar Foto ...\");\n\t\t\t\tbtncargarFoto.setIcon(new ImageIcon(Seminario2.class.getResource(\"/recursos/cargarFoto.png\")));\n\t\t\t\tbtncargarFoto.addActionListener(new BtncargarFotoActionListener());\n\t\t\t\t{\n\t\t\t\t\tlblCheck = new JLabel(\"\");\n\t\t\t\t\tGridBagConstraints gbc_lblCheck = new GridBagConstraints();\n\t\t\t\t\tgbc_lblCheck.anchor = GridBagConstraints.WEST;\n\t\t\t\t\tgbc_lblCheck.insets = new Insets(0, 0, 5, 5);\n\t\t\t\t\tgbc_lblCheck.gridx = 3;\n\t\t\t\t\tgbc_lblCheck.gridy = 0;\n\t\t\t\t\tpnlFicha.add(lblCheck, gbc_lblCheck);\n\t\t\t\t}\n\t\t\t\tGridBagConstraints gbc_btncargarFoto = new GridBagConstraints();\n\t\t\t\tgbc_btncargarFoto.fill = GridBagConstraints.HORIZONTAL;\n\t\t\t\tgbc_btncargarFoto.gridwidth = 2;\n\t\t\t\tgbc_btncargarFoto.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tgbc_btncargarFoto.gridx = 0;\n\t\t\t\tgbc_btncargarFoto.gridy = 1;\n\t\t\t\tpnlFicha.add(btncargarFoto, gbc_btncargarFoto);\n\t\t\t}\n\t\t\t{\n\t\t\t\tscrollPane = new JScrollPane();\n\t\t\t\tscrollPane.setBorder(new TitledBorder(null, \"Foto\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\t\t\tGridBagConstraints gbc_scrollPane = new GridBagConstraints();\n\t\t\t\tgbc_scrollPane.gridwidth = 2;\n\t\t\t\tgbc_scrollPane.gridheight = 4;\n\t\t\t\tgbc_scrollPane.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tgbc_scrollPane.fill = GridBagConstraints.BOTH;\n\t\t\t\tgbc_scrollPane.gridx = 0;\n\t\t\t\tgbc_scrollPane.gridy = 2;\n\t\t\t\tpnlFicha.add(scrollPane, gbc_scrollPane);\n\t\t\t\t{\n\t\t\t\t\tlblFoto = new JLabel(\"\");\n\t\t\t\t\tlblFoto.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\t\t\t\tscrollPane.setViewportView(lblFoto);\n\t\t\t\t}\n\t\t\t}\n\t\t\t{\n\t\t\t\tlblNombre = new JLabel(\"Nombre:\");\n\t\t\t\tGridBagConstraints gbc_lblNombre = new GridBagConstraints();\n\t\t\t\tgbc_lblNombre.anchor = GridBagConstraints.WEST;\n\t\t\t\tgbc_lblNombre.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tgbc_lblNombre.gridx = 2;\n\t\t\t\tgbc_lblNombre.gridy = 2;\n\t\t\t\tpnlFicha.add(lblNombre, gbc_lblNombre);\n\t\t\t}\n\t\t\t{\n\t\t\t\ttxtNombre = new JTextField();\n\t\t\t\ttxtNombre.addFocusListener(new MyFocusListener());\n\t\t\t\tGridBagConstraints gbc_txtNombre = new GridBagConstraints();\n\t\t\t\tgbc_txtNombre.gridwidth = 2;\n\t\t\t\tgbc_txtNombre.insets = new Insets(0, 0, 5, 0);\n\t\t\t\tgbc_txtNombre.fill = GridBagConstraints.HORIZONTAL;\n\t\t\t\tgbc_txtNombre.gridx = 3;\n\t\t\t\tgbc_txtNombre.gridy = 2;\n\t\t\t\tpnlFicha.add(txtNombre, gbc_txtNombre);\n\t\t\t\ttxtNombre.setColumns(10);\n\t\t\t}\n\t\t\t{\n\t\t\t\tlblApellidos = new JLabel(\"Apellidos:\");\n\t\t\t\tGridBagConstraints gbc_lblApellidos = new GridBagConstraints();\n\t\t\t\tgbc_lblApellidos.anchor = GridBagConstraints.WEST;\n\t\t\t\tgbc_lblApellidos.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tgbc_lblApellidos.gridx = 2;\n\t\t\t\tgbc_lblApellidos.gridy = 3;\n\t\t\t\tpnlFicha.add(lblApellidos, gbc_lblApellidos);\n\t\t\t}\n\t\t\t{\n\t\t\t\ttxtApellidos = new JTextField();\n\t\t\t\ttxtApellidos.addFocusListener(new MyFocusListener());\n\t\t\t\tGridBagConstraints gbc_txtApellidos = new GridBagConstraints();\n\t\t\t\tgbc_txtApellidos.gridwidth = 2;\n\t\t\t\tgbc_txtApellidos.insets = new Insets(0, 0, 5, 0);\n\t\t\t\tgbc_txtApellidos.fill = GridBagConstraints.HORIZONTAL;\n\t\t\t\tgbc_txtApellidos.gridx = 3;\n\t\t\t\tgbc_txtApellidos.gridy = 3;\n\t\t\t\tpnlFicha.add(txtApellidos, gbc_txtApellidos);\n\t\t\t\ttxtApellidos.setColumns(10);\n\t\t\t}\n\t\t\t{\n\t\t\t\tlblDNI = new JLabel(\"DNI:\");\n\t\t\t\tGridBagConstraints gbc_lblDNI = new GridBagConstraints();\n\t\t\t\tgbc_lblDNI.anchor = GridBagConstraints.WEST;\n\t\t\t\tgbc_lblDNI.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tgbc_lblDNI.gridx = 2;\n\t\t\t\tgbc_lblDNI.gridy = 4;\n\t\t\t\tpnlFicha.add(lblDNI, gbc_lblDNI);\n\t\t\t}\n\t\t\t{\n\t\t\t\t//ftxtDNI = new JFormattedTextField();\n\t\t\t\tMaskFormatter formatoDNI;\n\t\t\t\ttry {\n\t\t\t\tformatoDNI = new MaskFormatter(\"########'-U\");\n\t\t\t\tformatoDNI.setPlaceholderCharacter('_');\n\t\t\t\tftxtDNI = new JFormattedTextField(formatoDNI);\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tftxtDNI.addFocusListener(new MyFocusListener());\n\t\t\t\tGridBagConstraints gbc_ftxtDNI = new GridBagConstraints();\n\t\t\t\tgbc_ftxtDNI.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tgbc_ftxtDNI.fill = GridBagConstraints.HORIZONTAL;\n\t\t\t\tgbc_ftxtDNI.gridx = 3;\n\t\t\t\tgbc_ftxtDNI.gridy = 4;\n\t\t\t\tpnlFicha.add(ftxtDNI, gbc_ftxtDNI);\n\t\t\t}\n\t\t\t{\n\t\t\t\tlblTelefono = new JLabel(\"Teléfono:\");\n\t\t\t\tGridBagConstraints gbc_lblTelefono = new GridBagConstraints();\n\t\t\t\tgbc_lblTelefono.anchor = GridBagConstraints.WEST;\n\t\t\t\tgbc_lblTelefono.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tgbc_lblTelefono.gridx = 2;\n\t\t\t\tgbc_lblTelefono.gridy = 5;\n\t\t\t\tpnlFicha.add(lblTelefono, gbc_lblTelefono);\n\t\t\t}\n\t\t\t{\n\t\t\t\t//ftxtTelefono = new JFormattedTextField();\n\t\t\t\tMaskFormatter formatoTlfno;\n\t\t\t\ttry {\n\t\t\t\tformatoTlfno = new MaskFormatter(\"'(###')' ###' ###' ###\");\n\t\t\t\tformatoTlfno.setPlaceholderCharacter('*');\n\t\t\t\tftxtTelefono = new JFormattedTextField(formatoTlfno);\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tftxtTelefono.addFocusListener(new MyFocusListener());\n\t\t\t\tGridBagConstraints gbc_ftxtTelefono = new GridBagConstraints();\n\t\t\t\tgbc_ftxtTelefono.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tgbc_ftxtTelefono.fill = GridBagConstraints.HORIZONTAL;\n\t\t\t\tgbc_ftxtTelefono.gridx = 3;\n\t\t\t\tgbc_ftxtTelefono.gridy = 5;\n\t\t\t\tpnlFicha.add(ftxtTelefono, gbc_ftxtTelefono);\n\t\t\t}\n\t\t\t{\n\t\t\t\tbtnCargarComentarios = new JButton(\"Cargar Comentarios\");\n\t\t\t\tbtnCargarComentarios.addActionListener(new BtnCargarComentariosActionListener());\n\t\t\t\tbtnCargarComentarios.setIcon(new ImageIcon(Seminario2.class.getResource(\"/Recursos/cargarComentarios.png\")));\n\t\t\t\tGridBagConstraints gbc_btnCargarComentarios = new GridBagConstraints();\n\t\t\t\tgbc_btnCargarComentarios.fill = GridBagConstraints.HORIZONTAL;\n\t\t\t\tgbc_btnCargarComentarios.gridwidth = 2;\n\t\t\t\tgbc_btnCargarComentarios.insets = new Insets(0, 0, 5, 5);\n\t\t\t\tgbc_btnCargarComentarios.gridx = 0;\n\t\t\t\tgbc_btnCargarComentarios.gridy = 6;\n\t\t\t\tpnlFicha.add(btnCargarComentarios, gbc_btnCargarComentarios);\n\t\t\t}\n\t\t\t{\n\t\t\t\tscrollPane_1 = new JScrollPane();\n\t\t\t\tGridBagConstraints gbc_scrollPane_1 = new GridBagConstraints();\n\t\t\t\tgbc_scrollPane_1.gridwidth = 5;\n\t\t\t\tgbc_scrollPane_1.insets = new Insets(0, 0, 5, 0);\n\t\t\t\tgbc_scrollPane_1.fill = GridBagConstraints.BOTH;\n\t\t\t\tgbc_scrollPane_1.gridx = 0;\n\t\t\t\tgbc_scrollPane_1.gridy = 7;\n\t\t\t\tpnlFicha.add(scrollPane_1, gbc_scrollPane_1);\n\t\t\t\t{\n\t\t\t\t\ttaComentarios = new JTextArea();\n\t\t\t\t\ttaComentarios.setLineWrap(true);\n\t\t\t\t\ttaComentarios.setBorder(new TitledBorder(null, \"Comentarios\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\t\t\t\tscrollPane_1.setViewportView(taComentarios);\n\t\t\t\t}\n\t\t\t}\n\t\t\t{\n\t\t\t\tbtnGuardar = new JButton(\"Guardar\");\n\t\t\t\tbtnGuardar.addActionListener(new BtnGuardarActionListener());\n\t\t\t\tbtnGuardar.setIcon(new ImageIcon(Seminario2.class.getResource(\"/recursos/guardar.png\")));\n\t\t\t\tGridBagConstraints gbc_btnGuardar = new GridBagConstraints();\n\t\t\t\tgbc_btnGuardar.anchor = GridBagConstraints.EAST;\n\t\t\t\tgbc_btnGuardar.gridx = 4;\n\t\t\t\tgbc_btnGuardar.gridy = 8;\n\t\t\t\tpnlFicha.add(btnGuardar, gbc_btnGuardar);\n\t\t\t}\n\t\t}\n\t\t{\n\t\t\tmenuBar = new JMenuBar();\n\t\t\tframe.setJMenuBar(menuBar);\n\t\t\t{\n\t\t\t\tmnArchivo = new JMenu(\"Archivo\");\n\t\t\t\tmnArchivo.addActionListener(new MnArchivoActionListener());\n\t\t\t\tmnArchivo.setMnemonic('A');\n\t\t\t\tmenuBar.add(mnArchivo);\n\t\t\t\t{\n\t\t\t\t\tmntmAbrir = new JMenuItem(\"Abrir\");\n\t\t\t\t\tmntmAbrir.addActionListener(new MntmAbrirActionListener());\n\t\t\t\t\tmntmAbrir.setIcon(new ImageIcon(Seminario2.class.getResource(\"/Recursos/abrir.png\")));\n\t\t\t\t\tmnArchivo.add(mntmAbrir);\n\t\t\t\t}\n\t\t\t\t{\n\t\t\t\t\tmntmCargarFoto = new JMenuItem(\"Cargar Foto\");\n\t\t\t\t\tmntmCargarFoto.addActionListener(new BtncargarFotoActionListener());\n\t\t\t\t\tmntmCargarFoto.setIcon(new ImageIcon(Seminario2.class.getResource(\"/Recursos/cargarFoto.png\")));\n\t\t\t\t\tmnArchivo.add(mntmCargarFoto);\n\t\t\t\t}\n\t\t\t\t{\n\t\t\t\t\tmntmCargarComentarios = new JMenuItem(\"Cargar Comentarios\");\n\t\t\t\t\tmntmCargarComentarios.addActionListener(new BtnCargarComentariosActionListener());\n\t\t\t\t\tmntmCargarComentarios.setIcon(new ImageIcon(Seminario2.class.getResource(\"/Recursos/cargarComentarios.png\")));\n\t\t\t\t\tmnArchivo.add(mntmCargarComentarios);\n\t\t\t\t}\n\t\t\t\t{\n\t\t\t\t\tseparator = new JSeparator();\n\t\t\t\t\tmnArchivo.add(separator);\n\t\t\t\t}\n\t\t\t\t{\n\t\t\t\t\tmntmGuardar = new JMenuItem(\"Guardar\");\n\t\t\t\t\tmntmGuardar.setIcon(new ImageIcon(Seminario2.class.getResource(\"/Recursos/guardar.png\")));\n\t\t\t\t\tmnArchivo.add(mntmGuardar);\n\t\t\t\t}\n\t\t\t\t{\n\t\t\t\t\tseparator_1 = new JSeparator();\n\t\t\t\t\tmnArchivo.add(separator_1);\n\t\t\t\t}\n\t\t\t\t{\n\t\t\t\t\tmntmSalir = new JMenuItem(\"Salir\");\n\t\t\t\t\tmntmSalir.addActionListener(new MntmSalirActionListener());\n\t\t\t\t\tmntmSalir.setIcon(new ImageIcon(Seminario2.class.getResource(\"/Recursos/salir.png\")));\n\t\t\t\t\tmnArchivo.add(mntmSalir);\n\t\t\t\t}\n\t\t\t}\n\t\t\t{\n\t\t\t\tmnEdicion = new JMenu(\"Edición\");\n\t\t\t\tmnEdicion.setMnemonic('E');\n\t\t\t\tmenuBar.add(mnEdicion);\n\t\t\t\t{\n\t\t\t\t\tmnTamaoFuente = new JMenu(\"Tamaño Fuente\");\n\t\t\t\t\tmnEdicion.add(mnTamaoFuente);\n\t\t\t\t\t{\n\t\t\t\t\t\trdbtnmntmPequea = new JRadioButtonMenuItem(\"Pequeña\");\n\t\t\t\t\t\trdbtnmntmPequea.addActionListener(new RdbtnmntmPequeaActionListener());\n\t\t\t\t\t\tbuttonGroup.add(rdbtnmntmPequea);\n\t\t\t\t\t\tmnTamaoFuente.add(rdbtnmntmPequea);\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\trdbtnmntmNormal = new JRadioButtonMenuItem(\"Normal\");\n\t\t\t\t\t\trdbtnmntmNormal.addActionListener(new RdbtnmntmNormalActionListener());\n\t\t\t\t\t\tbuttonGroup.add(rdbtnmntmNormal);\n\t\t\t\t\t\tmnTamaoFuente.add(rdbtnmntmNormal);\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\trdbtnmntmGrande = new JRadioButtonMenuItem(\"Grande\");\n\t\t\t\t\t\trdbtnmntmGrande.addActionListener(new RdbtnmntmGrandeActionListener());\n\t\t\t\t\t\tbuttonGroup.add(rdbtnmntmGrande);\n\t\t\t\t\t\tmnTamaoFuente.add(rdbtnmntmGrande);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t{\n\t\t\t\tmnAyuda = new JMenu(\"Ayuda\");\n\t\t\t\tmnAyuda.setMnemonic('H');\n\t\t\t\tmenuBar.add(mnAyuda);\n\t\t\t\t{\n\t\t\t\t\tmntmAyuda = new JMenuItem(\"Ayuda\");\n\t\t\t\t\tmnAyuda.add(mntmAyuda);\n\t\t\t\t}\n\t\t\t\t{\n\t\t\t\t\tmntmAcercaDe = new JMenuItem(\"Acerca de...\");\n\t\t\t\t\tmntmAcercaDe.addActionListener(new MntmAcercaDeActionListener());\n\t\t\t\t\tmnAyuda.add(mntmAcercaDe);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setUpPanel() {\n\t\tsetBorder(new CompoundBorder(new EtchedBorder(EtchedBorder.LOWERED,\n\t\t\t\tnull, null), new TitledBorder(null, \"Manage Auction Records\",\n\t\t\t\tTitledBorder.CENTER, TitledBorder.TOP, null, null)));\n\n\t\tgridBagLayout.columnWidths = new int[] { 48, 215, 228, 150, 0 };\n\t\tgridBagLayout.rowHeights = new int[] { 70, 15, 21, 57, 15, 21, 58, 15,\n\t\t\t\t21, 85, 39, 0 };\n\t\tgridBagLayout.columnWeights = new double[] { 0.0, 0.0, 0.0, 0.0,\n\t\t\t\tDouble.MIN_VALUE };\n\t\tgridBagLayout.rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,\n\t\t\t\t0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE };\n\t\tsetLayout(gridBagLayout);\n\n\t\tlblArtistFirstName.setFont(new Font(\"Century\", Font.PLAIN, 12));\n\t\tGridBagConstraints gbc_lblArtistFirstName = new GridBagConstraints();\n\t\tgbc_lblArtistFirstName.anchor = GridBagConstraints.NORTHWEST;\n\t\tgbc_lblArtistFirstName.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblArtistFirstName.gridx = 1;\n\t\tgbc_lblArtistFirstName.gridy = 1;\n\t\tadd(lblArtistFirstName, gbc_lblArtistFirstName);\n\n\t\tformattedFirstName.setFont(new Font(\"Century\", Font.PLAIN, 12));\n\t\tformattedFirstName.setColumns(20);\n\t\tGridBagConstraints gbc_formattedFirstName = new GridBagConstraints();\n\t\tgbc_formattedFirstName.anchor = GridBagConstraints.NORTH;\n\t\tgbc_formattedFirstName.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_formattedFirstName.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_formattedFirstName.gridx = 1;\n\t\tgbc_formattedFirstName.gridy = 2;\n\t\tadd(formattedFirstName, gbc_formattedFirstName);\n\n\t\tlblArtistLastName.setFont(new Font(\"Century\", Font.PLAIN, 12));\n\t\tGridBagConstraints gbc_lblArtistLastName = new GridBagConstraints();\n\t\tgbc_lblArtistLastName.anchor = GridBagConstraints.NORTHWEST;\n\t\tgbc_lblArtistLastName.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblArtistLastName.gridx = 1;\n\t\tgbc_lblArtistLastName.gridy = 4;\n\t\tadd(lblArtistLastName, gbc_lblArtistLastName);\n\n\t\tformattedLastName.setFont(new Font(\"Century\", Font.PLAIN, 12));\n\t\tformattedLastName.setColumns(20);\n\t\tGridBagConstraints gbc_formattedLastName = new GridBagConstraints();\n\t\tgbc_formattedLastName.anchor = GridBagConstraints.NORTH;\n\t\tgbc_formattedLastName.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_formattedLastName.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_formattedLastName.gridx = 1;\n\t\tgbc_formattedLastName.gridy = 5;\n\t\tadd(formattedLastName, gbc_formattedLastName);\n\t\tlblTitleOfWork = new JLabel(\"Title Of Work (max 40 characters)\");\n\n\t\tlblTitleOfWork.setFont(new Font(\"Century\", Font.PLAIN, 12));\n\t\tGridBagConstraints gbc_lblTitleOfWork = new GridBagConstraints();\n\t\tgbc_lblTitleOfWork.anchor = GridBagConstraints.NORTHWEST;\n\t\tgbc_lblTitleOfWork.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblTitleOfWork.gridx = 1;\n\t\tgbc_lblTitleOfWork.gridy = 7;\n\t\tadd(lblTitleOfWork, gbc_lblTitleOfWork);\n\n\t\tformattedTitleOfWork.setFont(new Font(\"Century\", Font.PLAIN, 12));\n\t\tformattedTitleOfWork.setColumns(40);\n\t\tGridBagConstraints gbc_formattedTitleOfWork = new GridBagConstraints();\n\t\tgbc_formattedTitleOfWork.anchor = GridBagConstraints.NORTHWEST;\n\t\tgbc_formattedTitleOfWork.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_formattedTitleOfWork.gridwidth = 3;\n\t\tgbc_formattedTitleOfWork.gridx = 1;\n\t\tgbc_formattedTitleOfWork.gridy = 8;\n\t\tadd(formattedTitleOfWork, gbc_formattedTitleOfWork);\n\n\t\tbtnSearch.setMnemonic('S');\n\t\tbtnSearch.setFont(new Font(\"Cambria\", Font.BOLD, 12));\n\t\tGridBagConstraints gbc_btnSearch = new GridBagConstraints();\n\t\tgbc_btnSearch.fill = GridBagConstraints.BOTH;\n\t\tgbc_btnSearch.insets = new Insets(0, 0, 0, 5);\n\t\tgbc_btnSearch.gridx = 1;\n\t\tgbc_btnSearch.gridy = 10;\n\t\tadd(btnSearch, gbc_btnSearch);\n\n\t\tbtnCancel.setMnemonic('C');\n btnCancel.setFont(new Font(\"Cambria\", Font.BOLD, 12));\n\t\tGridBagConstraints gbc_btnCancel = new GridBagConstraints();\n\t\tgbc_btnCancel.fill = GridBagConstraints.BOTH;\n\t\tgbc_btnCancel.gridx = 3;\n\t\tgbc_btnCancel.gridy = 10;\n\t\tadd(btnCancel, gbc_btnCancel);\n\n\t}", "private void initForm() {\r\n\t\t/**\r\n\t\t * Set the properties of this frame.\r\n\t\t */\r\n\t\tthis.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\r\n\t\tthis.setLayout(new GridLayout(1, 2));\r\n\t\tthis.setMinimumSize(new Dimension(800, 700));\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\t/**\r\n\t\t * Create the constraint object for the view.\r\n\t\t */\r\n\t\tContainer c = this.getContentPane();\r\n\t\tc.setLayout(new GridBagLayout());\r\n\t\tGridBagConstraints gbc = new GridBagConstraints();\r\n\t\t/**\r\n\t\t * Create panels for the top.\r\n\t\t */\r\n\t\tJPanel panelParse = new JPanel(new GridLayout(3, 2));\r\n\t\tpanelParse.setBorder(new TitledBorder(new EtchedBorder(), \"Parse\"));\r\n\t\tpanelParse.add(labelDelimiter);\r\n\t\tpanelParse.add(textfieldDelimSymbol);\r\n\t\tpanelParse.add(labelContainsHdr);\r\n\t\tpanelParse.add(cbContainsHeader);\r\n\t\tpanelParse.add(labelEmpty);\r\n\t\tpanelParse.add(labelEmpty);\r\n\t\tJPanel panelImport = new JPanel(new GridLayout(4, 2));\r\n\t\tpanelImport.setBorder(new TitledBorder(new EtchedBorder(), \"Import\"));\r\n\t\tpanelImport.add(labelDetectProfiles);\r\n\t\tpanelImport.add(labelValueDetectProfiles);\r\n\t\tpanelImport.add(labelSelectProfiles);\r\n\t\tpanelImport.add(labelValueSelectProfiles);\r\n\t\tpanelImport.add(labelLengthCorrecton);\r\n\t\tpanelImport.add(textfieldLenCorrection);\r\n\t\tpanelImport.add(labelEnableLenCorrect);\r\n\t\tpanelImport.add(cbEnableLenCorrect);\r\n\t\tJPanel panelControl = new JPanel(new GridLayout(2, 1));\r\n\t\tpanelControl.setBorder(new TitledBorder(new EtchedBorder(), \"Control\"));\r\n\t\tpanelControl.add(buttonImport);\r\n\t\tpanelControl.add(buttonCancel);\r\n\t\tJPanel panelTop = new JPanel(new GridLayout(1, 3));\r\n\t\tpanelTop.add(panelParse);\r\n\t\tpanelTop.add(panelImport);\r\n\t\tpanelTop.add(panelControl);\r\n\t\t/**\r\n\t\t * Create panel for the table at the bottom\r\n\t\t */\r\n\t\tpanelTable.add(tableSelectionPD);\r\n\t\t/**\r\n\t\t * Add the panels to the frame with constraints\r\n\t\t */\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 0;\r\n\t\tgbc.weightx = 1;\r\n\t\tgbc.weighty = 0.01;\r\n\t\tgbc.anchor = GridBagConstraints.FIRST_LINE_START;\r\n\t\tgbc.fill = GridBagConstraints.BOTH;\r\n\t\tc.add(panelTop, gbc);\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 1;\r\n\t\tgbc.weightx = 1;\r\n\t\tgbc.weighty = 0.99;\r\n\t\tgbc.anchor = GridBagConstraints.LAST_LINE_START;\r\n\t\tgbc.fill = GridBagConstraints.BOTH;\r\n\t\tc.add(panelTable, gbc);\r\n\t}", "private void initialize() {\n\n\n\t\tfrmTesis = new JFrame();\n\t\tfrmTesis.setModalExclusionType(ModalExclusionType.APPLICATION_EXCLUDE);\n\t\tfrmTesis.setTitle(\"CDSS-Workbench v1.0\");\n\t\tfrmTesis.setBounds(100, 100, 670, 797);\n\t\tfrmTesis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmTesis.getContentPane().setLayout(new BoxLayout(frmTesis.getContentPane(), BoxLayout.X_AXIS));\n\n\t\tExpresion.valores.setDefault(1.0);\n\t\tExpresion.valores.put(\"clorhidrato\",0.1);\t\n\t\tExpresion.valores.put(\"vitamina\",0.1);\t\n\t\tExpresion.valores.put(\"cloruro\",0.1);\n\t\tExpresion.valores.put(\"fosfato\",0.1);\n\n\n\t\tfinal JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\ttabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);\n\t\tfrmTesis.getContentPane().add(tabbedPane);\n\n\t\tJPanel panel = new JPanel();\n\t\ttabbedPane.addTab(\"1.Crear BD\", null, panel, null);\n\t\tGridBagLayout gbl_panel = new GridBagLayout();\n\t\tgbl_panel.columnWidths = new int[]{0, 203, 147, 0, 0};\n\t\tgbl_panel.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tgbl_panel.columnWeights = new double[]{1.0, 0.0, 0.0, 1.0, Double.MIN_VALUE};\n\t\tgbl_panel.rowWeights = new double[]{1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, Double.MIN_VALUE};\n\t\tpanel.setLayout(gbl_panel);\n\n\t\tbtn_tConceptos_crear = new JButton(\"1.1 - Instanciar tabla Conceptos\");\n\t\tbtn_tConceptos_crear.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tdoActionController(btn_tConceptos_crear, \"instanciarTablaConceptos\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tfinal JButton btn_1ClicConstructor = new JButton(\"1Click Constructor\");\n\t\tbtn_1ClicConstructor.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"instanciarEsquema\",false);\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"instanciarTablaConceptos\",false);\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"instanciarTablaDescripciones\",false);\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"instanciarTablaCalificadores\",false);\n\t\t\t\t\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"instanciarBDAleman\",false);\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"instanciarTablaAnmat\",false);\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"instanciarTablaExcepciones\",false);\n\t\t\t\t\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"instanciarTablaInteracciones\",false);\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"instanciarTablasDosificaciones\",false);\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"instanciarTablasInteraccionesCondiciones\",false);\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"instanciarTablasReportes\",false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"createProcesatedTableFromDrogasSnomed\",false);\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"createProcesatedTableFromCalificadoresSnomed\",false);\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"reProcesatedTableDrogasToCreateSimplefiedTableDrugs\",false);\n\t\t\t\t\n\t\t\t\tdoActionController(btn_1ClicConstructor, \"instanciarTablasCasoTesting\",false);\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnNewButton_3 = new GridBagConstraints();\n\t\tgbc_btnNewButton_3.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnNewButton_3.gridwidth = 2;\n\t\tgbc_btnNewButton_3.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnNewButton_3.gridx = 1;\n\t\tgbc_btnNewButton_3.gridy = 1;\n\t\tpanel.add(btn_1ClicConstructor, gbc_btnNewButton_3);\n\n\t\tComponent horizontalStrut_1 = Box.createHorizontalStrut(20);\n\t\tGridBagConstraints gbc_horizontalStrut_1 = new GridBagConstraints();\n\t\tgbc_horizontalStrut_1.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_horizontalStrut_1.gridx = 3;\n\t\tgbc_horizontalStrut_1.gridy = 2;\n\t\tpanel.add(horizontalStrut_1, gbc_horizontalStrut_1);\n\n\t\tComponent verticalGlue = Box.createVerticalGlue();\n\t\tGridBagConstraints gbc_verticalGlue = new GridBagConstraints();\n\t\tgbc_verticalGlue.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_verticalGlue.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_verticalGlue.gridx = 1;\n\t\tgbc_verticalGlue.gridy = 3;\n\t\tpanel.add(verticalGlue, gbc_verticalGlue);\n\n\t\tfinal JButton btnCrearEsquema = new JButton(\"1.0 - Crear esquema\");\n\t\tbtnCrearEsquema.setToolTipText(\"Crea un esquema donde se intancia todo el proyecto\");\n\t\tbtnCrearEsquema.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tdoActionController(btnCrearEsquema, \"instanciarEsquema\");\n\t\t\t}\n\t\t});\n\n\t\tGridBagConstraints gbc_btnCrearEsquema = new GridBagConstraints();\n\t\tgbc_btnCrearEsquema.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnCrearEsquema.gridwidth = 2;\n\t\tgbc_btnCrearEsquema.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnCrearEsquema.gridx = 1;\n\t\tgbc_btnCrearEsquema.gridy = 4;\n\t\tpanel.add(btnCrearEsquema, gbc_btnCrearEsquema);\n\n\t\tComponent horizontalStrut = Box.createHorizontalStrut(20);\n\t\tGridBagConstraints gbc_horizontalStrut = new GridBagConstraints();\n\t\tgbc_horizontalStrut.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_horizontalStrut.gridx = 0;\n\t\tgbc_horizontalStrut.gridy = 5;\n\t\tpanel.add(horizontalStrut, gbc_horizontalStrut);\n\t\tGridBagConstraints gbc_btn_tConceptos_crear = new GridBagConstraints();\n\t\tgbc_btn_tConceptos_crear.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btn_tConceptos_crear.gridwidth = 2;\n\t\tgbc_btn_tConceptos_crear.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btn_tConceptos_crear.gridx = 1;\n\t\tgbc_btn_tConceptos_crear.gridy = 5;\n\t\tpanel.add(btn_tConceptos_crear, gbc_btn_tConceptos_crear);\n\n\t\tbtn_tRelaciones_crear = new JButton(\"1.2 - Instanciar tabla Relaciones\");\n\t\tbtn_tRelaciones_crear.setEnabled(false);\n\t\tbtn_tRelaciones_crear.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtn_tRelaciones_crear.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\tString createStament= \"CREATE TABLE `\"+ txt_esquema.getText() +\"`.`relations` (\" +\n\t\t\t\t\t\t\" `id` VARCHAR(20) NOT NULL ,\" +\n\t\t\t\t\t\t\" `effectiveTime` VARCHAR(45) NOT NULL ,\" +\n\t\t\t\t\t\t\"\t`active` VARCHAR(45) NULL ,\" +\n\t\t\t\t\t\t\"\t`moduleId` VARCHAR(45) NULL ,\" +\n\t\t\t\t\t\t\" `sourceId` VARCHAR(45) NULL ,\" +\n\t\t\t\t\t\t\" `destinationId` VARCHAR(45) NULL ,\" +\n\t\t\t\t\t\t\" `relationshipGroup` VARCHAR(45) NULL ,\" +\n\t\t\t\t\t\t\" `typeId` VARCHAR(45) NULL ,\" +\n\t\t\t\t\t\t\" `characteristicTypeId` VARCHAR(45) NULL ,\" +\n\t\t\t\t\t\t\" `modifierId` VARCHAR(45) NULL ,\" +\n\t\t\t\t\t\t\" PRIMARY KEY (`id`, `effectiveTime`) );\",\n\t\t\t\t\t\tdropStament= \"DROP TABLE `\"+ txt_esquema.getText() +\"`.`relations`;\",\n\t\t\t\t\t\tinsertStament= \"INSERT INTO `\"+ txt_esquema.getText() +\"`.`relations` VALUES\";\n\t\t\t\tboolean[] string = {false,false,false,false,false,false,false,false,false,false};\t\t\t\t\n\n\t\t\t\tbtn_tRelaciones_crear.setText(\"En ejecucion...\");\t\n\t\t\t\tbtn_tRelaciones_crear.updateUI();\n\t\t\t\tJOptionPane.showMessageDialog(frmTesis, \"Esta acción puede demorar algunos minutos, por favor no cierre el programa.\");\t\t\t\t\t\t\n\n\t\t\t\tmakeSQL(dropStament, insertStament, createStament, string, getPathSnomed()+\"RF2Release/Snapshot/Terminology/\",\"sct2_Relationship_Snapshot_INT_\",\"\",2);\n\n\t\t\t\tJOptionPane.showMessageDialog(frmTesis, \"Se finalizó correctamente.\");\t\t\t\t\t\t\n\t\t\t\tbtn_tRelaciones_crear.setText(\"1.2 - Instanciar tabla Relaciones\");\t\n\t\t\t\tbtn_tRelaciones_crear.updateUI();\t\t\t\n\n\n\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btn_tRelaciones_crear = new GridBagConstraints();\n\t\tgbc_btn_tRelaciones_crear.gridwidth = 2;\n\t\tgbc_btn_tRelaciones_crear.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btn_tRelaciones_crear.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btn_tRelaciones_crear.gridx = 1;\n\t\tgbc_btn_tRelaciones_crear.gridy = 6;\n\t\tpanel.add(btn_tRelaciones_crear, gbc_btn_tRelaciones_crear);\n\n\t\tfinal JButton btn_filtro_activos = new JButton(\"2.0 - Creo drogas_snomed (Snomed + Manuales)\");\n\t\tbtn_filtro_activos.setToolTipText(\"Creo la tabla procesando los datos datos de drogas en la tabla snomed y las drogas manuales \");\n\n\t\tbtn_filtro_activos.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tbtn_filtro_activos.setText(\"En ejecucion...\");\t\n\t\t\t\tbtn_filtro_activos.updateUI();\n\t\t\t\tJOptionPane.showMessageDialog(frmTesis, \"Esta acción puede demorar algunos minutos, por favor no cierre el programa.\");\t\t\t\t\t\t\n\n\t\t\t\tcontroller.createProcesatedTableFromDrogasSnomed();\n\n\t\t\t\tJOptionPane.showMessageDialog(frmTesis, \"Se finalizó correctamente.\");\t\t\t\t\t\t\n\t\t\t\tbtn_filtro_activos.setText(\"2.1 - Realizar Filtrado por Actividad\");\t\n\t\t\t\tbtn_filtro_activos.updateUI();\t\t\t\n\n\n\t\t\t}\n\t\t});\n\n\t\tfinal JButton btnCargarTablaDescripciones = new JButton(\"1.3 - Instanciar tabla Descripcion (Drogas)\");\n\t\tbtnCargarTablaDescripciones.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\tbtnCargarTablaDescripciones.setText(\"En ejecucion...\");\t\n\t\t\t\tbtnCargarTablaDescripciones.updateUI();\n\t\t\t\tJOptionPane.showMessageDialog(frmTesis, \"Esta acción puede demorar algunos minutos, por favor no cierre el programa.\");\t\t\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.instanciarTablaDescripciones();\n\t\t\t\t} catch (Exception e2) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null,e2);\n\t\t\t\t\t// TODO: handle exception\n\n\t\t\t\t}\n\n\n\t\t\t\tJOptionPane.showMessageDialog(frmTesis, \"Se finalizó correctamente.\");\t\t\t\t\t\t\n\t\t\t\tbtnCargarTablaDescripciones.setText(\"1.3 - Instanciar tabla Descripcion\");\t\n\t\t\t\tbtnCargarTablaDescripciones.updateUI();\t\t\t\n\n\t\t\t}\n\n\t\t});\n\t\tGridBagConstraints gbc_btnCargarTablaDescripciones = new GridBagConstraints();\n\t\tgbc_btnCargarTablaDescripciones.gridwidth = 2;\n\t\tgbc_btnCargarTablaDescripciones.fill = GridBagConstraints.BOTH;\n\t\tgbc_btnCargarTablaDescripciones.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnCargarTablaDescripciones.gridx = 1;\n\t\tgbc_btnCargarTablaDescripciones.gridy = 7;\n\t\tpanel.add(btnCargarTablaDescripciones, gbc_btnCargarTablaDescripciones);\n\n\t\tfinal JButton btn_CrearAnmat = new JButton(\"1.4 - Instanciar tabla ANMAT\");\n\t\tbtn_CrearAnmat.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t\tbtn_CrearAnmat.setText(\"En ejecucion...\");\t\n\t\t\t\tbtn_CrearAnmat.updateUI();\n\t\t\t\tJOptionPane.showMessageDialog(frmTesis, \"Esta acción puede demorar algunos minutos, por favor no cierre el programa.\");\t\t\t\t\t\t\n\t\t\t\tcontroller.instanciarTablaAnmat();\t\n\t\t\t\tbtn_CrearAnmat.setText(\"1.4 - Instanciar tabla ANMAT\");\n\t\t\t\tbtn_CrearAnmat.updateUI();\n\t\t\t\tJOptionPane.showMessageDialog(frmTesis, \"Se finalizó correctamente.\");\n\n\t\t\t}\n\t\t});\n\n\t\tfinal JButton btnNewButton = new JButton(\"1.4 - Instanciar tabla Descripcion (Calificadores)\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdoActionController(btnNewButton, \"instanciarTablaCalificadores\");\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnNewButton = new GridBagConstraints();\n\t\tgbc_btnNewButton.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnNewButton.gridwidth = 2;\n\t\tgbc_btnNewButton.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnNewButton.gridx = 1;\n\t\tgbc_btnNewButton.gridy = 8;\n\t\tpanel.add(btnNewButton, gbc_btnNewButton);\n\t\tGridBagConstraints gbc_btn_CrearAnmat = new GridBagConstraints();\n\t\tgbc_btn_CrearAnmat.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btn_CrearAnmat.gridwidth = 2;\n\t\tgbc_btn_CrearAnmat.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btn_CrearAnmat.gridx = 1;\n\t\tgbc_btn_CrearAnmat.gridy = 9;\n\t\tpanel.add(btn_CrearAnmat, gbc_btn_CrearAnmat);\n\n\t\tfinal JButton btnNewButton_4 = new JButton(\"1.5 - Instanciar tabla de excepciones\");\n\t\tbtnNewButton_4.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tdoActionController(btnNewButton_4, \"instanciarTablaExcepciones\");\t\t\t\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnNewButton_4 = new GridBagConstraints();\n\t\tgbc_btnNewButton_4.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnNewButton_4.gridwidth = 2;\n\t\tgbc_btnNewButton_4.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnNewButton_4.gridx = 1;\n\t\tgbc_btnNewButton_4.gridy = 10;\n\t\tpanel.add(btnNewButton_4, gbc_btnNewButton_4);\n\n\t\tfinal JButton btnNewButton_6 = new JButton(\"1.6 - Instanciar tabla interacciones\");\n\t\tbtnNewButton_6.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tdoActionController(btnNewButton_6, \"instanciarTablaInteracciones\");\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnNewButton_6 = new GridBagConstraints();\n\t\tgbc_btnNewButton_6.gridwidth = 2;\n\t\tgbc_btnNewButton_6.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnNewButton_6.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnNewButton_6.gridx = 1;\n\t\tgbc_btnNewButton_6.gridy = 11;\n\t\tpanel.add(btnNewButton_6, gbc_btnNewButton_6);\n\n\t\tComponent verticalGlue_1 = Box.createVerticalGlue();\n\t\tGridBagConstraints gbc_verticalGlue_1 = new GridBagConstraints();\n\t\tgbc_verticalGlue_1.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_verticalGlue_1.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_verticalGlue_1.gridx = 1;\n\t\tgbc_verticalGlue_1.gridy = 12;\n\t\tpanel.add(verticalGlue_1, gbc_verticalGlue_1);\n\t\tGridBagConstraints gbc_btn_filtro_activos = new GridBagConstraints();\n\t\tgbc_btn_filtro_activos.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btn_filtro_activos.gridwidth = 2;\n\t\tgbc_btn_filtro_activos.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btn_filtro_activos.gridx = 1;\n\t\tgbc_btn_filtro_activos.gridy = 13;\n\t\tpanel.add(btn_filtro_activos, gbc_btn_filtro_activos);\n\t\t\n\n\t\t\n\t\tfinal JButton btn_instanciarBdAleman = new JButton(\"3. - Instanciar bdAleman\");\n\t\tbtn_instanciarBdAleman.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tdoActionController(btn_instanciarBdAleman, \"instanciarBDAleman\");\n\t\t\t}\n\t\t});\n\n\t\tfinal JButton btnAgregar = new JButton(\"2.5 - Agregar drogas padre en la tabla drogas\");\n\t\tbtnAgregar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdoActionController(btnAgregar, \"reProcesatedTableDrogasToCreateSimplefiedTableDrugs\");\n\t\t\t}\n\t\t});\n\n\t\tfinal JButton btnNewButton_2 = new JButton(\"2.1 - Creo calificadores_snomed (Snomed + Manuales)\");\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdoActionController(btnNewButton_2, \"createProcesatedTableFromCalificadoresSnomed\");\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnNewButton_2 = new GridBagConstraints();\n\t\tgbc_btnNewButton_2.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnNewButton_2.gridwidth = 2;\n\t\tgbc_btnNewButton_2.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnNewButton_2.gridx = 1;\n\t\tgbc_btnNewButton_2.gridy = 14;\n\t\tpanel.add(btnNewButton_2, gbc_btnNewButton_2);\n\t\tGridBagConstraints gbc_btnAgregar = new GridBagConstraints();\n\t\tgbc_btnAgregar.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnAgregar.gridwidth = 2;\n\t\tgbc_btnAgregar.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnAgregar.gridx = 1;\n\t\tgbc_btnAgregar.gridy = 15;\n\t\tpanel.add(btnAgregar, gbc_btnAgregar);\n\n\t\tComponent verticalGlue_3 = Box.createVerticalGlue();\n\t\tGridBagConstraints gbc_verticalGlue_3 = new GridBagConstraints();\n\t\tgbc_verticalGlue_3.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_verticalGlue_3.gridx = 1;\n\t\tgbc_verticalGlue_3.gridy = 16;\n\t\tpanel.add(verticalGlue_3, gbc_verticalGlue_3);\n\t\tGridBagConstraints gbc_btnNewButton_31 = new GridBagConstraints();\n\t\tgbc_btnNewButton_31.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnNewButton_31.gridwidth = 2;\n\t\tgbc_btnNewButton_31.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnNewButton_31.gridx = 1;\n\t\tgbc_btnNewButton_31.gridy = 17;\n\t\tpanel.add(btn_instanciarBdAleman, gbc_btnNewButton_31);\n\t\t\n\t\tfinal JButton btnInsertarTablasDosis = new JButton(\"Insertar tablas dosis\");\n\t\tbtnInsertarTablasDosis.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tdoActionController(btnInsertarTablasDosis, \"instanciarTablasDosificaciones\");\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnInsertarTablasDosis = new GridBagConstraints();\n\t\tgbc_btnInsertarTablasDosis.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnInsertarTablasDosis.gridwidth = 2;\n\t\tgbc_btnInsertarTablasDosis.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnInsertarTablasDosis.gridx = 1;\n\t\tgbc_btnInsertarTablasDosis.gridy = 18;\n\t\tpanel.add(btnInsertarTablasDosis, gbc_btnInsertarTablasDosis);\n\t\t\n\t\tfinal JButton btnInsertarTablasInteracciones = new JButton(\"Insertar tablas interacciones condicion\");\n\t\tbtnInsertarTablasInteracciones.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tdoActionController(btnInsertarTablasInteracciones, \"instanciarTablasInteraccionesCondiciones\");\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnInsertarTablasInteracciones = new GridBagConstraints();\n\t\tgbc_btnInsertarTablasInteracciones.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnInsertarTablasInteracciones.gridwidth = 2;\n\t\tgbc_btnInsertarTablasInteracciones.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnInsertarTablasInteracciones.gridx = 1;\n\t\tgbc_btnInsertarTablasInteracciones.gridy = 19;\n\t\tpanel.add(btnInsertarTablasInteracciones, gbc_btnInsertarTablasInteracciones);\n\t\t\n\t\tfinal JButton btnInsertarTablasTestreportes = new JButton(\"Insertar tablas test/reportes\");\n\t\tbtnInsertarTablasTestreportes.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdoActionController(btnInsertarTablasTestreportes, \"instanciarTablasReportes\");\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnInsertarTablasTestreportes = new GridBagConstraints();\n\t\tgbc_btnInsertarTablasTestreportes.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnInsertarTablasTestreportes.gridwidth = 2;\n\t\tgbc_btnInsertarTablasTestreportes.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnInsertarTablasTestreportes.gridx = 1;\n\t\tgbc_btnInsertarTablasTestreportes.gridy = 20;\n\t\tpanel.add(btnInsertarTablasTestreportes, gbc_btnInsertarTablasTestreportes);\n\t\t\n\t\tComponent verticalGlue_2 = Box.createVerticalGlue();\n\t\tGridBagConstraints gbc_verticalGlue_2 = new GridBagConstraints();\n\t\tgbc_verticalGlue_2.insets = new Insets(0, 0, 0, 5);\n\t\tgbc_verticalGlue_2.gridx = 1;\n\t\tgbc_verticalGlue_2.gridy = 22;\n\t\tpanel.add(verticalGlue_2, gbc_verticalGlue_2);\n\n\t\tJPanel panel_2 = new JPanel();\n\t\ttabbedPane.addTab(\"2.Buscar diccionario\", null, panel_2, null);\n\t\tGridBagLayout gbl_panel_2 = new GridBagLayout();\n\t\tgbl_panel_2.columnWidths = new int[]{0, 0, 0, 0, 0};\n\t\tgbl_panel_2.rowHeights = new int[]{0, 0, 0, 0};\n\t\tgbl_panel_2.columnWeights = new double[]{0.0, 1.0, 1.0, 0.0, Double.MIN_VALUE};\n\t\tgbl_panel_2.rowWeights = new double[]{1.0, 0.0, 0.0, Double.MIN_VALUE};\n\t\tpanel_2.setLayout(gbl_panel_2);\n\n\t\tfinal JScrollPane scrollPane_1 = new JScrollPane();\n\t\tscrollPane_1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane_1.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tGridBagConstraints gbc_scrollPane_1 = new GridBagConstraints();\n\t\tgbc_scrollPane_1.gridwidth = 2;\n\t\tgbc_scrollPane_1.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_scrollPane_1.fill = GridBagConstraints.BOTH;\n\t\tgbc_scrollPane_1.gridx = 1;\n\t\tgbc_scrollPane_1.gridy = 0;\n\t\tpanel_2.add(scrollPane_1, gbc_scrollPane_1);\n\n\t\tString[] titulos = {\"Certeza\",\"Termino no hallado\",\"Sugerencia\",\"Es equivaltente? SI\",\"Es equivaltente? NO\" };\n\t\tmodel = new TableModel_withClases(titulos);\n\t\ttable = new JTable(model);\n\n\t\tscrollPane_1.setViewportView(table);\n\t\tJButton btnNewButton_1 = new JButton(\"Buscar equiv Drogas\");\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\tList<Expresion> provi = new ArrayList<Expresion>();\n\n\n\t\t\t\tList<String> lista_med_faltan = managerDB.executeScript_Query(\t\t\t\"select distinct drug.droga_nombre \" +\n\t\t\t\t\t\t\"from \"+ txt_esquema.getText() +\".drogas_anmat as drug \" +\n\t\t\t\t\t\t\"where not exists ( \" +\n\t\t\t\t\t\t\"\tselect * \" +\n\t\t\t\t\t\t\"\tfrom \"+ txt_esquema.getText() +\".drogas_snomed as au \" +\n\t\t\t\t\t\t\"\twhere au.iddrogas_Anmat = drug.droga_nombre) \" +\n\t\t\t\t\t\t\"\t;\",\"droga_nombre\");\n\n\n\t\t\t\tList<String> valores = new ArrayList<String>(); valores.add(\"iddrogas_Anmat\"); valores.add(\"iddrogas_Snomed\");\t\t\t\n\t\t\t\tList<List<String>> lista_med_existen = managerDB.consultar(txt_esquema.getText() +\".drogas_snomed\", \"true\", valores);\n\n\t\t\t\tList<String> exclusion = new ArrayList<String>();\n\t\t\t\texclusion.add(\"de\");\n\t\t\t\texclusion.add(\"cloruro\");\n\t\t\t\texclusion.add(\"clorhidrato\");\n\t\t\t\texclusion.add(\"sulfato\");\n\t\t\t\texclusion.add(\"cloruro\");\n\n\n\t\t\t\tlista_med_existen=lista_med_existen.subList(0, lista_med_existen.size());\n\n\t\t\t\tint cant=0;\n\t\t\t\tfloat valor;\n\t\t\t\tfor (String string : lista_med_faltan) \n\t\t\t\t{\n\t\t\t\t\tcant++;\n\t\t\t\t\tSystem.out.println((float)cant/lista_med_faltan.size());\n\t\t\t\t\tfor (List<String> string2 : lista_med_existen) {\n\t\t\t\t\t\tvalor = Expresion.getCorrelacionT1(string, string2.get(0),exclusion, (float)0.9, (float)0.1);\n\t\t\t\t\t\tif (valor>0.2)\n\t\t\t\t\t\t\tprovi.add( new Expresion(string,string2.get(0),valor,\"\"));\n\n\n\t\t\t\t\t}\n\n\t\t\t\t}\t\n\n\n\t\t\t\tCollections.sort(provi);\n\n\n\t\t\t\tSystem.out.println(\"el tamaño es \" + provi.size());\n\n\t\t\t\tObject[] aux = {\"a\",\"e\",\"b\",\"c\",\"d\"};\n\t\t\t\tfor (Expresion string : provi) {\n\t\t\t\t\taux[0] = string.getCorrelacion()*100 + \"%\";\n\t\t\t\t\taux[1] = string.getTerminoSugerido();\n\t\t\t\t\taux[2] = string.getTerminoOriginal();\n\t\t\t\t\taux[3] = new Boolean(string.getCorrelacion()>0.9);\n\t\t\t\t\taux[4] = new Boolean(false);\n\t\t\t\t\tmodel.addRow(aux);\n\n\t\t\t\t}\n\t\t\t\t//\t\t\t\ttable.setModel(model);\t\t\t\t\n\t\t\t\ttable.updateUI();\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnNewButton_1 = new GridBagConstraints();\n\t\tgbc_btnNewButton_1.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnNewButton_1.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnNewButton_1.gridx = 1;\n\t\tgbc_btnNewButton_1.gridy = 1;\n\t\tpanel_2.add(btnNewButton_1, gbc_btnNewButton_1);\n\n\t\tJButton btnRegistrarEquivalencias = new JButton(\"Registrar equivalencias\");\n\t\tGridBagConstraints gbc_btnRegistrarEquivalencias = new GridBagConstraints();\n\t\tgbc_btnRegistrarEquivalencias.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnRegistrarEquivalencias.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_btnRegistrarEquivalencias.gridx = 2;\n\t\tgbc_btnRegistrarEquivalencias.gridy = 1;\n\t\tpanel_2.add(btnRegistrarEquivalencias, gbc_btnRegistrarEquivalencias);\n\n\t\tJButton btnBuscarEquivMedicamentos = new JButton(\"Buscar equiv Medicamentos\");\n\t\tbtnBuscarEquivMedicamentos.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\tcontroller.buscarMedicamentos(table);\n\n\t\t\t}});\n\t\tGridBagConstraints gbc_btnBuscarEquivMedicamentos = new GridBagConstraints();\n\t\tgbc_btnBuscarEquivMedicamentos.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnBuscarEquivMedicamentos.insets = new Insets(0, 0, 0, 5);\n\t\tgbc_btnBuscarEquivMedicamentos.gridx = 1;\n\t\tgbc_btnBuscarEquivMedicamentos.gridy = 2;\n\t\tpanel_2.add(btnBuscarEquivMedicamentos, gbc_btnBuscarEquivMedicamentos);\n\n\t\tJButton btnRegistrarMedic = new JButton(\"Registrar medic\");\n\t\tbtnRegistrarMedic.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t\tfor (int i=0; i<model.getRowCount();i++)\n\t\t\t\t\tif(model.getValueAt(i, 3).equals(true))\n\t\t\t\t\t{\n\t\t\t\t\t\tString ver = \"INSERT INTO `testapp`.`medicamentos_manfar` values (\" + model.getValueAt(i,5) + \",'\" + model.getValueAt(i,1) + \"','A');\";\n\t\t\t\t\t\tSystem.out.println(ver);\n\t\t\t\t\t\tmanagerDB.executeScript_Void(ver);\n\t\t\t\t\t}\n\n\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnRegistrarMedic = new GridBagConstraints();\n\t\tgbc_btnRegistrarMedic.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnRegistrarMedic.insets = new Insets(0, 0, 0, 5);\n\t\tgbc_btnRegistrarMedic.gridx = 2;\n\t\tgbc_btnRegistrarMedic.gridy = 2;\n\t\tpanel_2.add(btnRegistrarMedic, gbc_btnRegistrarMedic);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\ttabbedPane.addTab(\"3.Consultar\", null, panel_1, null);\n\t\tGridBagLayout gbl_panel_1 = new GridBagLayout();\n\t\tgbl_panel_1.columnWidths = new int[]{0, 0, 0, 0};\n\t\tgbl_panel_1.rowHeights = new int[]{0, 0, 0, 0};\n\t\tgbl_panel_1.columnWeights = new double[]{0.0, 1.0, 0.0, Double.MIN_VALUE};\n\t\tgbl_panel_1.rowWeights = new double[]{0.0, 1.0, 0.0, Double.MIN_VALUE};\n\t\tpanel_1.setLayout(gbl_panel_1);\n\n\t\tJLabel lblMedicamento = new JLabel(\"Nuevo medicamento\");\n\t\tGridBagConstraints gbc_lblMedicamento = new GridBagConstraints();\n\t\tgbc_lblMedicamento.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblMedicamento.anchor = GridBagConstraints.EAST;\n\t\tgbc_lblMedicamento.gridx = 0;\n\t\tgbc_lblMedicamento.gridy = 0;\n\t\tpanel_1.add(lblMedicamento, gbc_lblMedicamento);\n\n\t\tfinal JComboBox<String> lista_todos_medicamentos = new JComboBox<String>();\n\t\tGridBagConstraints gbc_lista_todos_medicamentos = new GridBagConstraints();\n\t\tgbc_lista_todos_medicamentos.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lista_todos_medicamentos.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_lista_todos_medicamentos.gridx = 1;\n\t\tgbc_lista_todos_medicamentos.gridy = 0;\n\t\tpanel_1.add(lista_todos_medicamentos, gbc_lista_todos_medicamentos);\n\n\t\tJButton btnAadir = new JButton(\"A\\u00F1adir\");\n\t\tbtnAadir.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\t\t\n\t\t\t\ttextPane.setText(textPane.getText() + lista_todos_medicamentos.getSelectedItem().toString() + \"\\n\");\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnAadir = new GridBagConstraints();\n\t\tgbc_btnAadir.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_btnAadir.gridx = 2;\n\t\tgbc_btnAadir.gridy = 0;\n\t\tpanel_1.add(btnAadir, gbc_btnAadir);\n\n\t\tJLabel lblMedicamentos = new JLabel(\"Medicamentos\");\n\t\tGridBagConstraints gbc_lblMedicamentos = new GridBagConstraints();\n\t\tgbc_lblMedicamentos.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblMedicamentos.gridx = 0;\n\t\tgbc_lblMedicamentos.gridy = 1;\n\t\tpanel_1.add(lblMedicamentos, gbc_lblMedicamentos);\n\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tGridBagConstraints gbc_scrollPane = new GridBagConstraints();\n\t\tgbc_scrollPane.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_scrollPane.gridwidth = 2;\n\t\tgbc_scrollPane.fill = GridBagConstraints.BOTH;\n\t\tgbc_scrollPane.gridx = 1;\n\t\tgbc_scrollPane.gridy = 1;\n\t\tpanel_1.add(scrollPane, gbc_scrollPane);\n\n\t\ttextPane = new JTextPane();\n\t\tscrollPane.setViewportView(textPane);\n\n\t\tJButton btnChequearInteracciones = new JButton(\"Chequear Interacciones\");\n\t\tGridBagConstraints gbc_btnChequearInteracciones = new GridBagConstraints();\n\t\tgbc_btnChequearInteracciones.insets = new Insets(0, 0, 0, 5);\n\t\tgbc_btnChequearInteracciones.gridx = 1;\n\t\tgbc_btnChequearInteracciones.gridy = 2;\n\t\tpanel_1.add(btnChequearInteracciones, gbc_btnChequearInteracciones);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\ttabbedPane.addTab(\"4.Contrasena\", null, panel_3, null);\n\t\tGridBagLayout gbl_panel_3 = new GridBagLayout();\n\t\tgbl_panel_3.columnWidths = new int[]{0, 52, 0, 0, 0};\n\t\tgbl_panel_3.rowHeights = new int[]{24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tgbl_panel_3.columnWeights = new double[]{0.0, 1.0, 1.0, 0.0, Double.MIN_VALUE};\n\t\tgbl_panel_3.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};\n\t\tpanel_3.setLayout(gbl_panel_3);\n\n\t\tJLabel lblPuerto = new JLabel(\"Usuario\");\n\t\tlblPuerto.setToolTipText(\"\");\n\t\tGridBagConstraints gbc_lblPuerto = new GridBagConstraints();\n\t\tgbc_lblPuerto.anchor = GridBagConstraints.EAST;\n\t\tgbc_lblPuerto.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblPuerto.gridx = 1;\n\t\tgbc_lblPuerto.gridy = 1;\n\t\tpanel_3.add(lblPuerto, gbc_lblPuerto);\n\n\t\ttxt_userBD = new JTextField();\n\t\ttxt_userBD.setText(getEnvirometValue(UI.USUARIO));\n\t\tGridBagConstraints gbc_txt_user = new GridBagConstraints();\n\t\tgbc_txt_user.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_txt_user.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_txt_user.gridx = 2;\n\t\tgbc_txt_user.gridy = 1;\n\t\tpanel_3.add(txt_userBD, gbc_txt_user);\n\t\ttxt_userBD.setColumns(10);\n\n\t\tJLabel lblPassword = new JLabel(\"Password\");\n\t\tGridBagConstraints gbc_lblPassword = new GridBagConstraints();\n\t\tgbc_lblPassword.anchor = GridBagConstraints.EAST;\n\t\tgbc_lblPassword.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblPassword.gridx = 1;\n\t\tgbc_lblPassword.gridy = 2;\n\t\tpanel_3.add(lblPassword, gbc_lblPassword);\n\n\t\ttxt_passwordBD = new JTextField();\n\t\ttxt_passwordBD.setText(getEnvirometValue(UI.PASSWORD));\n\t\tGridBagConstraints gbc_txt_password = new GridBagConstraints();\n\t\tgbc_txt_password.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_txt_password.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_txt_password.gridx = 2;\n\t\tgbc_txt_password.gridy = 2;\n\t\tpanel_3.add(txt_passwordBD, gbc_txt_password);\n\t\ttxt_passwordBD.setColumns(10);\n\n\t\tJLabel lblEsquema = new JLabel(\"Esquema\");\n\t\tGridBagConstraints gbc_lblEsquema = new GridBagConstraints();\n\t\tgbc_lblEsquema.anchor = GridBagConstraints.EAST;\n\t\tgbc_lblEsquema.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblEsquema.gridx = 1;\n\t\tgbc_lblEsquema.gridy = 3;\n\t\tpanel_3.add(lblEsquema, gbc_lblEsquema);\n\n\t\ttxt_esquema = new JTextField();\n\t\ttxt_esquema.setText(getEnvirometValue(UI.ESQUEMA));\n\t\tGridBagConstraints gbc_txt_esquema = new GridBagConstraints();\n\t\tgbc_txt_esquema.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_txt_esquema.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_txt_esquema.gridx = 2;\n\t\tgbc_txt_esquema.gridy = 3;\n\t\tpanel_3.add(txt_esquema, gbc_txt_esquema);\n\t\ttxt_esquema.setColumns(10);\n\n\t\tJLabel lblCarpetaArchivosSnomed = new JLabel(\"Carpeta Archivos Snomed\");\n\t\tGridBagConstraints gbc_lblCarpetaArchivosSnomed = new GridBagConstraints();\n\t\tgbc_lblCarpetaArchivosSnomed.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblCarpetaArchivosSnomed.anchor = GridBagConstraints.EAST;\n\t\tgbc_lblCarpetaArchivosSnomed.gridx = 1;\n\t\tgbc_lblCarpetaArchivosSnomed.gridy = 4;\n\t\tpanel_3.add(lblCarpetaArchivosSnomed, gbc_lblCarpetaArchivosSnomed);\n\n\t\ttxt_pathSnomed = new JTextField();\n\t\ttxt_pathSnomed.setText(getEnvirometValue(UI.CARPETA_SNOMED));\n\n\t\tGridBagConstraints gbc_txt_pathSnomed = new GridBagConstraints();\n\t\tgbc_txt_pathSnomed.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_txt_pathSnomed.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_txt_pathSnomed.gridx = 2;\n\t\tgbc_txt_pathSnomed.gridy = 4;\n\t\tpanel_3.add(txt_pathSnomed, gbc_txt_pathSnomed);\n\t\ttxt_pathSnomed.setColumns(10);\n\n\t\tJLabel lblCarpetaArchivoAnmat = new JLabel(\"Carpeta Archivo Anmat\");\n\t\tGridBagConstraints gbc_lblCarpetaArchivoAnmat = new GridBagConstraints();\n\t\tgbc_lblCarpetaArchivoAnmat.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblCarpetaArchivoAnmat.anchor = GridBagConstraints.EAST;\n\t\tgbc_lblCarpetaArchivoAnmat.gridx = 1;\n\t\tgbc_lblCarpetaArchivoAnmat.gridy = 5;\n\t\tpanel_3.add(lblCarpetaArchivoAnmat, gbc_lblCarpetaArchivoAnmat);\n\n\t\ttxt_pathFiles = new JTextField();\n\t\ttxt_pathFiles.setText(getEnvirometValue(UI.CARPETA_FILES));\n\t\tGridBagConstraints gbc_txt_pathAnmat = new GridBagConstraints();\n\t\tgbc_txt_pathAnmat.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_txt_pathAnmat.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_txt_pathAnmat.gridx = 2;\n\t\tgbc_txt_pathAnmat.gridy = 5;\n\t\tpanel_3.add(txt_pathFiles, gbc_txt_pathAnmat);\n\t\ttxt_pathFiles.setColumns(10);\n\t\t\n\t\tJLabel lblIpSoapWebservice = new JLabel(\"IP SOAP WebService\");\n\t\t\n\t\tGridBagConstraints gbc_lblIpSoapWebservice = new GridBagConstraints();\n\t\tgbc_lblIpSoapWebservice.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblIpSoapWebservice.anchor = GridBagConstraints.EAST;\n\t\tgbc_lblIpSoapWebservice.gridx = 1;\n\t\tgbc_lblIpSoapWebservice.gridy = 6;\n\t\tpanel_3.add(lblIpSoapWebservice, gbc_lblIpSoapWebservice);\n\t\t\n\t\ttxt_ipSoapWebService = new JTextField();\n\t\ttxt_ipSoapWebService.setText(getEnvirometValue(UI.IP_WEB_SERVICE));\n\t\tGridBagConstraints gbc_txt_ipSoapWebService = new GridBagConstraints();\n\t\tgbc_txt_ipSoapWebService.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_txt_ipSoapWebService.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_txt_ipSoapWebService.gridx = 2;\n\t\tgbc_txt_ipSoapWebService.gridy = 6;\n\t\tpanel_3.add(txt_ipSoapWebService, gbc_txt_ipSoapWebService);\n\t\ttxt_ipSoapWebService.setColumns(10);\n\n\t\tJLabel lblNewLabel = new JLabel(\"Funciones Adicionales\");\n\t\tGridBagConstraints gbc_lblNewLabel = new GridBagConstraints();\n\t\tgbc_lblNewLabel.gridwidth = 2;\n\t\tgbc_lblNewLabel.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblNewLabel.gridx = 1;\n\t\tgbc_lblNewLabel.gridy = 10;\n\t\tpanel_3.add(lblNewLabel, gbc_lblNewLabel);\n\n\t\ttxtCarpeta = new JTextField();\n\t\ttxtCarpeta.setText(\"C:\\\\Users\\\\ARGENTINA\\\\Google Drive\\\\PC\\\\Tesis\\\\SnomedCT_Release_INT_20140731\\\\\");\n\t\tGridBagConstraints gbc_txtCarpeta = new GridBagConstraints();\n\t\tgbc_txtCarpeta.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_txtCarpeta.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_txtCarpeta.gridx = 1;\n\t\tgbc_txtCarpeta.gridy = 11;\n\t\tpanel_3.add(txtCarpeta, gbc_txtCarpeta);\n\t\ttxtCarpeta.setColumns(10);\n\n\t\ttxtArchivo = new JTextField();\n\t\ttxtArchivo.setText(\"anmat.txt\");\n\t\tGridBagConstraints gbc_txtArchivo = new GridBagConstraints();\n\t\tgbc_txtArchivo.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_txtArchivo.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_txtArchivo.gridx = 2;\n\t\tgbc_txtArchivo.gridy = 11;\n\t\tpanel_3.add(txtArchivo, gbc_txtArchivo);\n\t\ttxtArchivo.setColumns(10);\n\n\t\tJButton btnNewButton_5 = new JButton(\"filtrar\");\n\t\tbtnNewButton_5.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tList<String> lista = SimpleFile.readFile(txtCarpeta.getText(), txtArchivo.getText());\n\t\t\t\tHashSet<String> a = new HashSet<String>();\n\t\t\t\ta.addAll(lista);\n\t\t\t\tlista.clear();\n\t\t\t\tlista.addAll(a);\n\t\t\t\tCollections.sort(lista);\n\t\t\t\tSimpleFile.writeFile(txtCarpeta.getText(), txtArchivo.getText(), lista);\n\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnNewButton_5 = new GridBagConstraints();\n\t\tgbc_btnNewButton_5.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnNewButton_5.gridwidth = 2;\n\t\tgbc_btnNewButton_5.insets = new Insets(0, 0, 0, 5);\n\t\tgbc_btnNewButton_5.gridx = 1;\n\t\tgbc_btnNewButton_5.gridy = 12;\n\t\tpanel_3.add(btnNewButton_5, gbc_btnNewButton_5);\n\n\t\tJPanel panel_4 = new JPanel();\n\t\ttabbedPane.addTab(\"5. Buscar Interacciones\", null, panel_4, null);\n\t\tGridBagLayout gbl_panel_4 = new GridBagLayout();\n\t\tgbl_panel_4.columnWidths = new int[]{0, 0};\n\t\tgbl_panel_4.rowHeights = new int[]{0, 0};\n\t\tgbl_panel_4.columnWeights = new double[]{0.0, Double.MIN_VALUE};\n\t\tgbl_panel_4.rowWeights = new double[]{0.0, Double.MIN_VALUE};\n\t\tpanel_4.setLayout(gbl_panel_4);\n\n\t\tJButton btnRastrearInteracciones = new JButton(\"Rastrear Interacciones\");\n\t\n\t\tGridBagConstraints gbc_btnRastrearInteracciones = new GridBagConstraints();\n\t\tgbc_btnRastrearInteracciones.gridx = 0;\n\t\tgbc_btnRastrearInteracciones.gridy = 0;\n\t\tpanel_4.add(btnRastrearInteracciones, gbc_btnRastrearInteracciones);\n\t\t\n\t\tJPanel panel_5 = new JPanel();\n\t\ttabbedPane.addTab(\"Testing\", null, panel_5, null);\n\t\tGridBagLayout gbl_panel_5 = new GridBagLayout();\n\t\tgbl_panel_5.columnWidths = new int[]{0, 0, 0, 0};\n\t\tgbl_panel_5.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tgbl_panel_5.columnWeights = new double[]{1.0, 1.0, 0.0, Double.MIN_VALUE};\n\t\tgbl_panel_5.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};\n\t\tpanel_5.setLayout(gbl_panel_5);\n\t\t\n\t\tfinal JComboBox<Test> comboBoxTextFiles = new JComboBox<Test>();\n\t\tGridBagConstraints gbc_comboBox = new GridBagConstraints();\n\t\tgbc_comboBox.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_comboBox.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_comboBox.gridx = 0;\n\t\tgbc_comboBox.gridy = 1;\n\t\tpanel_5.add(comboBoxTextFiles, gbc_comboBox);\n\t\t\n\t\tList<String> listFileTest = UI_Controller.loadTestFiles(getEnvirometValue(UI.CARPETA_FILES));\n\t\tfor (String string : listFileTest) {\n\t\t\tcomboBoxTextFiles.addItem(new Test(string));\n\t\t}\n\t\t\n\t\tJButton btnRunTest = new JButton(\"Run Test !\");\n\n\t\t\n\t\tfinal JLabel lblResultText = new JLabel(\"\");\n\t\tlblResultText.setOpaque(true);\n\t\tlblResultText.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\n\t\tGridBagConstraints gbc_lblNewLabel_1 = new GridBagConstraints();\n\t\tgbc_lblNewLabel_1.fill = GridBagConstraints.BOTH;\n\t\tgbc_lblNewLabel_1.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblNewLabel_1.gridx = 1;\n\t\tgbc_lblNewLabel_1.gridy = 1;\n\t\tpanel_5.add(lblResultText, gbc_lblNewLabel_1);\n\t\tGridBagConstraints gbc_btnRunTest = new GridBagConstraints();\n\t\tgbc_btnRunTest.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_btnRunTest.gridx = 2;\n\t\tgbc_btnRunTest.gridy = 1;\n\t\tpanel_5.add(btnRunTest, gbc_btnRunTest);\n\t\t\n\t\ttextField = new JTextField();\n\t\tGridBagConstraints gbc_textField = new GridBagConstraints();\n\t\tgbc_textField.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_textField.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_textField.gridx = 0;\n\t\tgbc_textField.gridy = 2;\n\t\tpanel_5.add(textField, gbc_textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\tGridBagConstraints gbc_textField_1 = new GridBagConstraints();\n\t\tgbc_textField_1.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_textField_1.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_textField_1.gridx = 1;\n\t\tgbc_textField_1.gridy = 2;\n\t\tpanel_5.add(textField_1, gbc_textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\tfinal JButton btnInstanciarcasostesting = new JButton(\"InstanciarCasosTesting\");\n\t\tbtnInstanciarcasostesting.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tdoActionController(btnInstanciarcasostesting, \"instanciarTablasCasoTesting\",false);\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnInstanciarcasostesting = new GridBagConstraints();\n\t\tgbc_btnInstanciarcasostesting.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_btnInstanciarcasostesting.gridwidth = 3;\n\t\tgbc_btnInstanciarcasostesting.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnInstanciarcasostesting.gridx = 0;\n\t\tgbc_btnInstanciarcasostesting.gridy = 4;\n\t\tpanel_5.add(btnInstanciarcasostesting, gbc_btnInstanciarcasostesting);\n\t\t\n\t\tfinal JButton btnTestingDosis = new JButton(\"Testing Dosis\");\n\t\tbtnTestingDosis.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tdoActionController(btnTestingDosis, \"runCasoTestingDosis\",false);\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnTestingDosis = new GridBagConstraints();\n\t\tgbc_btnTestingDosis.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_btnTestingDosis.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnTestingDosis.gridwidth = 3;\n\t\tgbc_btnTestingDosis.gridx = 0;\n\t\tgbc_btnTestingDosis.gridy = 5;\n\t\tpanel_5.add(btnTestingDosis, gbc_btnTestingDosis);\n\t\t\n\t\tJButton btnNewButton_3 = new JButton(\"Testing Med\");\n\t\tbtnNewButton_3.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tdoActionController(btnTestingDosis, \"runCasoTestingMed\",false);\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc_btnNewButton_63 = new GridBagConstraints();\n\t\tgbc_btnNewButton_63.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_btnNewButton_63.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnNewButton_63.gridwidth = 3;\n\t\tgbc_btnNewButton_63.gridx = 0;\n\t\tgbc_btnNewButton_63.gridy = 6;\n\t\tpanel_5.add(btnNewButton_3, gbc_btnNewButton_63);\n\t\t\n\t\tJButton btnNewButton_7 = new JButton(\"Test Masivo\");\n\t\tbtnNewButton_7.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcontroller.runCasoTestingMedFragmento();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_7.setToolTipText(\"Se ejecuta un test con 1000 consultas\");\n\t\tGridBagConstraints gbc_btnNewButton_7 = new GridBagConstraints();\n\t\tgbc_btnNewButton_7.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_btnNewButton_7.gridwidth = 3;\n\t\tgbc_btnNewButton_7.insets = new Insets(0, 0, 0, 5);\n\t\tgbc_btnNewButton_7.gridx = 0;\n\t\tgbc_btnNewButton_7.gridy = 7;\n\t\tpanel_5.add(btnNewButton_7, gbc_btnNewButton_7);\n\n\n\n\t\tGridBagConstraints gbc_chckbxNewCheckBox = new GridBagConstraints();\n\t\tgbc_chckbxNewCheckBox.insets = new Insets(0, 0, 0, 5);\n\t\tgbc_chckbxNewCheckBox.gridx = 0;\n\t\tgbc_chckbxNewCheckBox.gridy = 4;\n\n\t\tList<String> lista_med = managerDB.executeScript_Query(\"SELECT concat(man.id_manfar,\\\" - \\\" ,upper(man.nombre)) as nombre FROM \"+txt_esquema.getText()+\".medicamentos_manfar as man group by man.id_manfar;\", \"nombre\");\n\n\t\tif (lista_med!=null)\n\t\t\tfor (String string : lista_med) {\n\t\t\t\tlista_todos_medicamentos.addItem(string);\n\t\t\t}\n\n\n\n\t\tbtnRunTest.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif(((Test)comboBoxTextFiles.getSelectedItem()).runTest()){\n\t\t\t\t\t\tlblResultText.setBackground(Color.GREEN);\n\t\t\t\t\t\tlblResultText.setText(\"Successful\");\n\t\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tlblResultText.setBackground(Color.RED);\n\t\t\t\t\t\tlblResultText.setText(\"Fail\");\n\t\t\t\t\t\t}\n\t\t\t\t} catch (SOAPException 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 (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\n\n\t}", "private void buildDialogWindow(Ingredient aIng) {\n\t\t\n \t\tGridBagLayout layout = new GridBagLayout();\n GridBagConstraints lc = new GridBagConstraints();\n getContentPane().setLayout(layout);\n\n \n lc.anchor = GridBagConstraints.EAST;\n lc.insets = new Insets(5, 5, 5, 5);\n\n aLabel = new JLabel(\"Name\");\n lc.gridx = 0; lc.gridy = 0;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(aLabel, lc);\n getContentPane().add(aLabel);\n\n aLabel = new JLabel(\"Food Group\");\n lc.gridx = 0; lc.gridy = 1;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(aLabel, lc);\n getContentPane().add(aLabel);\n \n aLabel = new JLabel(\"Shelf Life\");\n lc.gridx = 0; lc.gridy = 2;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(aLabel, lc);\n getContentPane().add(aLabel);\n\n aLabel = new JLabel(\"Calories\");\n lc.gridx = 0; lc.gridy = 3;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(aLabel, lc);\n getContentPane().add(aLabel);\n\n \t\t// Add the name field\n\t\tnameField = new JTextField(aIng.getName());\n\t\tnameField.setFont(UIFont);\n lc.gridx = 1; lc.gridy = 0;\n lc.gridwidth = 3; lc.gridheight = 1;\n lc.fill = GridBagConstraints.BOTH;\n lc.weightx = 1.0; lc.weighty = 0.0;\n layout.setConstraints(nameField, lc);\n \t\tgetContentPane().add(nameField);\n\n\t\t// Add the address field\n\t\tfoodGroupField = new JTextField(aIng.getFoodGroup());\n\t\tfoodGroupField.setFont(UIFont);\n lc.gridx = 1; lc.gridy = 1;\n lc.gridwidth = 3; lc.gridheight = 1;\n lc.fill = GridBagConstraints.BOTH;\n lc.weightx = 1.0; lc.weighty = 0.0;\n layout.setConstraints(foodGroupField, lc);\n \t\tgetContentPane().add(foodGroupField);\n\n \t\tshelfLifeField = new JTextField(\"\"+aIng.getShelfLife());\n \t\tshelfLifeField.setFont(UIFont);\n lc.gridx = 1; lc.gridy = 2;\n lc.gridwidth = 3; lc.gridheight = 1;\n lc.fill = GridBagConstraints.BOTH;\n lc.weightx = 1.0; lc.weighty = 0.0;\n layout.setConstraints(shelfLifeField, lc);\n \t\tgetContentPane().add(shelfLifeField);\n \t\t\n \t\tcaloriesField = new JTextField(\"\"+aIng.getCalories());\n \t\tcaloriesField.setFont(UIFont);\n lc.gridx = 1; lc.gridy = 3;\n lc.gridwidth = 3; lc.gridheight = 1;\n lc.fill = GridBagConstraints.BOTH;\n lc.weightx = 1.0; lc.weighty = 0.0;\n layout.setConstraints(caloriesField, lc);\n \t\tgetContentPane().add(caloriesField);\n \t\t\n\t\t// Add the Update button\n\t\tupdateButton = new JButton(\"UPDATE\");\n lc.gridx = 1; lc.gridy = 6;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(updateButton, lc);\n \t\tgetContentPane().add(updateButton);\n \n\t\t// Add the Delete button\n\t\tdeleteButton = new JButton(\"DELETE\");\n lc.gridx = 2; lc.gridy = 6;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(deleteButton, lc);\n \t\tgetContentPane().add(deleteButton);\n\n \t\t// Add the Cancel button\n\t\tcancelButton = new JButton(\"CANCEL\");\n \n lc.gridx = 3; lc.gridy = 6;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(cancelButton, lc);\n \t\tgetContentPane().add(cancelButton);\n\t\t\n\t\t\n\t}", "private void init() {\r\n setTitle(\"Crop Boundary Pixels\");\r\n setSize(350, 230);\r\n setForeground(Color.black);\r\n\r\n Box contentBox = new Box(BoxLayout.Y_AXIS);\r\n JPanel optionPanel = new JPanel();\r\n\r\n // make border\r\n optionPanel.setBorder(buildTitledBorder(\"Pixels Around Image\"));\r\n contentBox.add(optionPanel);\r\n\r\n // set layout\r\n GridBagLayout gbl = new GridBagLayout();\r\n GridBagConstraints gbc = new GridBagConstraints();\r\n optionPanel.setLayout(gbl);\r\n\r\n gbc.anchor = GridBagConstraints.NORTHWEST;\r\n // make content, place into layout\r\n\r\n // left\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel leftSideLabel = new JLabel(\"Pixels on the left side:\");\r\n leftSideLabel.setFont(serif12);\r\n leftSideLabel.setForeground(Color.black);\r\n leftSideLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2;\r\n gbl.setConstraints(leftSideLabel, gbc);\r\n optionPanel.add(leftSideLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n leftSideInput = new JTextField(\"0\", 4);\r\n leftSideInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(leftSideInput, false);\r\n\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(leftSideInput, gbc);\r\n optionPanel.add(leftSideInput);\r\n\r\n // right\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel rightSideLabel = new JLabel(\"Pixels on the right side:\");\r\n rightSideLabel.setFont(serif12);\r\n rightSideLabel.setForeground(Color.black);\r\n rightSideLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2;\r\n gbl.setConstraints(rightSideLabel, gbc);\r\n optionPanel.add(rightSideLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n rightSideInput = new JTextField(\"0\", 4);\r\n rightSideInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(rightSideInput, false);\r\n\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(rightSideInput, gbc);\r\n optionPanel.add(rightSideInput);\r\n\r\n // top\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel topLabel = new JLabel(\"Pixels on top:\");\r\n topLabel.setFont(serif12);\r\n topLabel.setForeground(Color.black);\r\n topLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2;\r\n gbl.setConstraints(topLabel, gbc);\r\n optionPanel.add(topLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n topInput = new JTextField(\"0\", 4);\r\n topInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(topInput, false);\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(topInput, gbc);\r\n optionPanel.add(topInput);\r\n\r\n // bottom\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel bottomLabel = new JLabel(\"Pixels on bottom:\");\r\n bottomLabel.setFont(serif12);\r\n bottomLabel.setForeground(Color.black);\r\n bottomLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2;\r\n gbl.setConstraints(bottomLabel, gbc);\r\n optionPanel.add(bottomLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n bottomInput = new JTextField(\"0\", 4);\r\n bottomInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(bottomInput, false);\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(bottomInput, gbc);\r\n optionPanel.add(bottomInput);\r\n\r\n // front\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel frontLabel = new JLabel(\"Slices at the front of image:\");\r\n frontLabel.setFont(serif12);\r\n frontLabel.setForeground(Color.black);\r\n frontLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2; // GridBagConstraints.RELATIVE;\r\n gbl.setConstraints(frontLabel, gbc);\r\n optionPanel.add(frontLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n frontInput = new JTextField(\"0\", 4);\r\n frontInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(frontInput, false);\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(frontInput, gbc);\r\n optionPanel.add(frontInput);\r\n\r\n // back\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel backLabel = new JLabel(\"Slices at the back of image:\");\r\n backLabel.setFont(serif12);\r\n backLabel.setForeground(Color.black);\r\n backLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2; // GridBagConstraints.RELATIVE;\r\n gbl.setConstraints(backLabel, gbc);\r\n optionPanel.add(backLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n backInput = new JTextField(\"0\", 4);\r\n backInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(backInput, false);\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(backInput, gbc);\r\n optionPanel.add(backInput);\r\n\r\n // image destination select\r\n JPanel destPanel = new JPanel(); // panel carries no content but box & border\r\n destPanel.setBorder(buildTitledBorder(\"Select Destination\"));\r\n\r\n Box destinationBox = new Box(BoxLayout.Y_AXIS);\r\n\r\n destinationGroup = new ButtonGroup();\r\n newImage = new JRadioButton(\"New Image\", true);\r\n newImage.setFont(serif12);\r\n newImage.addActionListener(this);\r\n destinationGroup.add(newImage);\r\n destinationBox.add(newImage);\r\n newImage.setEnabled(true);\r\n\r\n replaceImage = new JRadioButton(\"Replace Image\", false);\r\n replaceImage.setFont(serif12);\r\n replaceImage.addActionListener(this);\r\n destinationGroup.add(replaceImage);\r\n destinationBox.add(replaceImage);\r\n replaceImage.setEnabled(true);\r\n destPanel.add(destinationBox);\r\n contentBox.add(destPanel);\r\n\r\n // test speed panel (choice 1: algo has personal buff, imported into img,\r\n // choice 2: algo calcs where to insert a row. methinks fewer loops)\r\n /*\r\n * JPanel loopingTestPanel = new JPanel(); loopingTestPanel.setBorder(buildTitledBorder(\"Looping test\")); Box\r\n * loopingTestBox = new Box(BoxLayout.Y_AXIS); loopingGroup = new ButtonGroup(); noBuffer = new JRadioButton(\"No\r\n * Buffer\", true); noBuffer.setFont(serif12); noBuffer.addActionListener(this); loopingGroup.add(noBuffer);\r\n * loopingTestBox.add(noBuffer); usingBuffer = new JRadioButton(\"Uses Buffer\", false);\r\n * usingBuffer.setFont(serif12); usingBuffer.addActionListener(this); loopingGroup.add(usingBuffer);\r\n * loopingTestBox.add(usingBuffer); loopingTestPanel.add(loopingTestBox); contentBox.add(loopingTestPanel);\r\n */\r\n // end looping test display\r\n\r\n /*\r\n * JPanel OKCancelPanel = new JPanel(new FlowLayout()); OKButton = buildOKButton(); OKCancelPanel.add(OKButton);\r\n *\r\n * cancelButton = buildCancelButton(); OKCancelPanel.add(cancelButton); contentBox.add(OKCancelPanel);\r\n */\r\n contentBox.add(buildButtons());\r\n\r\n // if this is a 2D image, turn off slice margins\r\n if (image.getNDims() == 2) {\r\n frontLabel.setEnabled(false);\r\n frontInput.setEnabled(false);\r\n backLabel.setEnabled(false);\r\n backInput.setEnabled(false);\r\n }\r\n\r\n mainDialogPanel.add(contentBox);\r\n getContentPane().add(mainDialogPanel);\r\n\r\n pack();\r\n setVisible(true);\r\n }", "void jbInit() throws Exception {\n this.getContentPane().setLayout(gridBagLayout1);\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n jLabel1.setText(\"key\");\n this.getContentPane().setBackground(Color.white);\n okButton.setBackground(Color.white);\n okButton.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n okButton.setText(\"ok\");\n okButton.addActionListener(\n new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n okButton_actionPerformed(e);\n }\n });\n cancelButton.setBackground(Color.white);\n cancelButton.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n cancelButton.setText(\"cancel\");\n cancelButton.addActionListener(\n new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n cancelButton_actionPerformed(e);\n }\n });\n jLabel2.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n jLabel2.setText(\"value\");\n this.getContentPane().add(keyTextField, new GridBagConstraints(1, 0, 2, 1, 1.0, 0.0\n , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));\n this.getContentPane().add(jLabel1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0\n , GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));\n this.getContentPane().add(jLabel2, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0\n , GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));\n this.getContentPane().add(cancelButton, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0\n , GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));\n this.getContentPane().add(valueTextField, new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0\n , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));\n this.getContentPane().add(okButton, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0\n , GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, -16, 0, 0), 0, 0));\n }", "public Test1UI() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setLayout(new BorderLayout());\n\t\tsetDefaultValues();\n\t\taddActionListeners();\n\n\t\tthis.add(pnlWest, BorderLayout.WEST);\n\t\tthis.add(pnlEast, BorderLayout.EAST);\n\t\tthis.add(pnlCenter, BorderLayout.CENTER);\n\t\tthis.add(pnlSouth, BorderLayout.SOUTH);\n\n\t\tfor (int row = 0; row < 7; row++) {\n\t\t\tpnlWest.add(tfWest[row]);\n\t\t\tpnlSouth.add(tfSouth[row]);\n\t\t\tfor (int col = 0; col < 7; col++) {\n\t\t\t\tpnlCenter.add(lblCenter[row][col]);\n\t\t\t}\n\t\t}\n\t\tpnlEast.add(pnlEastTop, BorderLayout.NORTH);\n\t\tpnlEast.add(pnlEastBottom, BorderLayout.SOUTH);\n\n\t\tpnlEastTop.add(pnlEastTopText);\n\t\tpnlEastTop.add(btnReadRow);\n\t\tpnlEastTop.add(btnPrintRow);\n\t\tpnlEastTopText.add(lblRow);\n\t\tpnlEastTopText.add(tfRow);\n\n\t\tpnlEastBottom.add(pnlEastBottomText);\n\t\tpnlEastBottom.add(btnReadCol);\n\t\tpnlEastBottom.add(btnPrintCol);\n\t\tpnlEastBottomText.add(lblCol);\n\t\tpnlEastBottomText.add(tfCol);\n\n\t\tpack();\n\t\tsetVisible(true);\n\t}", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(14, 6, new Insets(0, 0, 0, 0), -1, -1));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 20), new Dimension(20, -1), null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"EUID\");\n mainPanel.add(label1, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n EUIDText = new JLabel();\n EUIDText.setText(\"Label\");\n mainPanel.add(EUIDText, new com.intellij.uiDesigner.core.GridConstraints(2, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"x-coordinate\");\n mainPanel.add(label2, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n xPosSpinner = new JSpinner();\n mainPanel.add(xPosSpinner, new com.intellij.uiDesigner.core.GridConstraints(3, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(10, -1), new Dimension(10, -1), null, 0, false));\n longitudeLabel = new JLabel();\n longitudeLabel.setText(\"Label\");\n mainPanel.add(longitudeLabel, new com.intellij.uiDesigner.core.GridConstraints(3, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(3, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(10, -1), new Dimension(10, -1), null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"y-coordinate\");\n mainPanel.add(label3, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n yPosSpinner = new JSpinner();\n mainPanel.add(yPosSpinner, new com.intellij.uiDesigner.core.GridConstraints(4, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n latitudeLabel = new JLabel();\n latitudeLabel.setText(\"Label\");\n mainPanel.add(latitudeLabel, new com.intellij.uiDesigner.core.GridConstraints(4, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n powerSpinner = new JSpinner();\n mainPanel.add(powerSpinner, new com.intellij.uiDesigner.core.GridConstraints(5, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Powersetting\");\n mainPanel.add(label4, new com.intellij.uiDesigner.core.GridConstraints(5, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Spreading factor\");\n mainPanel.add(label5, new com.intellij.uiDesigner.core.GridConstraints(6, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n SFSpinner = new JSpinner();\n mainPanel.add(SFSpinner, new com.intellij.uiDesigner.core.GridConstraints(6, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n TPThresholdText = new JLabel();\n TPThresholdText.setText(\"Label\");\n mainPanel.add(TPThresholdText, new com.intellij.uiDesigner.core.GridConstraints(7, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Transmission power threshold\");\n mainPanel.add(label6, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveButton = new JButton();\n saveButton.setText(\"Save\");\n mainPanel.add(saveButton, new com.intellij.uiDesigner.core.GridConstraints(12, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n mainPanel.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(13, 1, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 20), new Dimension(-1, 20), null, 0, false));\n final JLabel label7 = new JLabel();\n label7.setText(\"Mote \");\n mainPanel.add(label7, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n moteNumberLabel = new JLabel();\n moteNumberLabel.setText(\"Label\");\n mainPanel.add(moteNumberLabel, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label8 = new JLabel();\n label8.setText(\"Sensors:\");\n mainPanel.add(label8, new com.intellij.uiDesigner.core.GridConstraints(10, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n addButton = new JButton();\n addButton.setText(\"Add\");\n mainPanel.add(addButton, new com.intellij.uiDesigner.core.GridConstraints(10, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n sensorSpinner = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n sensorSpinner.setModel(defaultComboBoxModel1);\n mainPanel.add(sensorSpinner, new com.intellij.uiDesigner.core.GridConstraints(10, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label9 = new JLabel();\n label9.setText(\"Sampling rate\");\n mainPanel.add(label9, new com.intellij.uiDesigner.core.GridConstraints(8, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label10 = new JLabel();\n label10.setText(\"Movement speed\");\n mainPanel.add(label10, new com.intellij.uiDesigner.core.GridConstraints(9, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n samplingSpinner = new JSpinner();\n mainPanel.add(samplingSpinner, new com.intellij.uiDesigner.core.GridConstraints(8, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n movementSpinner = new JSpinner();\n mainPanel.add(movementSpinner, new com.intellij.uiDesigner.core.GridConstraints(9, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label11 = new JLabel();\n label11.setText(\"m/s\");\n mainPanel.add(label11, new com.intellij.uiDesigner.core.GridConstraints(9, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label12 = new JLabel();\n label12.setText(\"m\");\n mainPanel.add(label12, new com.intellij.uiDesigner.core.GridConstraints(8, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n scrollPane1.setHorizontalScrollBarPolicy(31);\n mainPanel.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(11, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, new Dimension(-1, 90), 0, false));\n sensorList = new JList();\n scrollPane1.setViewportView(sensorList);\n }", "public GUI(String title, Dimension size) {\n\t\tthis.setTitle(title);\n\t\tthis.setPreferredSize(size);\n\t\tthis.setResizable(false);\n\t\tthis.setVisible(true);\n\t\t\n\t\tGridBagLayout gridBagLayout = new GridBagLayout();\n\t\tgridBagLayout.columnWidths = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tgridBagLayout.rowHeights = new int[]{0, 0};\n\t\tgridBagLayout.columnWeights = new double[]{1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, Double.MIN_VALUE};\n\t\tgridBagLayout.rowWeights = new double[]{1.0, Double.MIN_VALUE};\n\t\tthis.getContentPane().setLayout(gridBagLayout);\t\n\t\t\n\t\tgraphics = new GPanel(Config.TABLE_DIAMETER); \n\t\t\n\t\tGridBagConstraints gbc_panel_1 = new GridBagConstraints();\n\t\tgbc_panel_1.gridwidth = 10;\n\t\tgbc_panel_1.insets = new Insets(0, 0, 0, 5);\n\t\tgbc_panel_1.fill = GridBagConstraints.BOTH;\n\t\tgbc_panel_1.gridx = 0;\n\t\tgbc_panel_1.gridy = 0;\n\t\tthis.getContentPane().add(graphics, gbc_panel_1);\n\t\t\n\t\taddMenus(gridBagLayout);\n\t\taddRightPane(gridBagLayout);\n\t\t\n\t\tthis.pack();\n\t\tthis.addWindowListener(new java.awt.event.WindowAdapter() {\n\t\t @Override\n\t\t public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n\t\t \t//close threads\n\t\t System.exit(0);\n\t\t }\n\t\t});\n\t\t\n\t\tJOptionPane.showMessageDialog(this, \n\t\t\t\t\"Set the amount of Philosophers and then click start.\", \"Welcome\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t}", "private void $$$setupUI$$$() {\n topPanel = new JPanel();\n topPanel.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n headerLabel = new JLabel();\n headerLabel.setText(\"Header\");\n topPanel.add(headerLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPanel = new JPanel();\n contentPanel.setLayout(new BorderLayout(0, 0));\n topPanel.add(contentPanel, 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 final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel1, new GridConstraints(2, 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 final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n buttonBack = new JButton();\n buttonBack.setText(\"Back\");\n panel1.add(buttonBack, 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 buttonNext = new JButton();\n buttonNext.setText(\"Next\");\n panel1.add(buttonNext, new GridConstraints(0, 2, 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 buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel, new GridConstraints(0, 3, 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 JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel2, new GridConstraints(3, 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 statusLabel = new JLabel();\n statusLabel.setText(\"Status\");\n panel2.add(statusLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void createContents() {\n shell = new Shell(getParent(), getStyle());\n shell.setSize(540, 297);\n shell.setLayout(new GridLayout(1, false));\n\n Composite cmpTop = new Composite(shell, SWT.NONE);\n cmpTop.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n GridLayout gl_cmpTop = new GridLayout(4, false);\n gl_cmpTop.verticalSpacing = 0;\n cmpTop.setLayout(gl_cmpTop);\n\n Label lblBankAccountNumber = new Label(cmpTop, SWT.CENTER);\n lblBankAccountNumber.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBankAccountNumber.setBounds(0, 0, 59, 14);\n lblBankAccountNumber.setText(\"Bank Account\");\n Label lblBranch = new Label(cmpTop, SWT.CENTER);\n lblBranch.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBranch.setBounds(0, 0, 59, 14);\n lblBranch.setText(\"Branch\");\n\n Label lblBank = new Label(cmpTop, SWT.CENTER);\n lblBank.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBank.setText(\"Bank\");\n new Label(cmpTop, SWT.NONE);\n\n txtBankAccountNumber = new Text(cmpTop, SWT.BORDER);\n txtBankAccountNumber.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n txtBankAccountNumber.setBounds(0, 0, 64, 19);\n\n txtBranch = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBranch = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBranch.widthHint = 50;\n txtBranch.setLayoutData(gd_txtBranch);\n txtBranch.setBounds(0, 0, 64, 19);\n\n txtBank = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBank = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBank.widthHint = 50;\n txtBank.setLayoutData(gd_txtBank);\n btnSearch = new Button(cmpTop, SWT.NONE);\n btnSearch.setAlignment(SWT.RIGHT);\n btnSearch.setText(\"Search\");\n btnSearch.setEnabled(false);\n\n Composite cmpResults = new Composite(shell, SWT.NONE);\n cmpResults.setLayout(new GridLayout(1, false));\n GridData gd_cmpResults = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_cmpResults.heightHint = 129;\n cmpResults.setLayoutData(gd_cmpResults);\n\n tblAccounts = new Table(cmpResults, SWT.BORDER);\n GridData gd_tblAccounts = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_tblAccounts.heightHint = 71;\n tblAccounts.setLayoutData(gd_tblAccounts);\n tblAccounts.setHeaderVisible(true);\n tblAccounts.setLinesVisible(true);\n\n TableColumn tblclmnAccountNumber = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnAccountNumber.setWidth(120);\n tblclmnAccountNumber.setText(\"Player Account\");\n\n TableColumn tblclmsFirstName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmsFirstName.setWidth(100);\n tblclmsFirstName.setText(\"First Name\");\n\n TableColumn tblclmnLastName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnLastName.setWidth(100);\n tblclmnLastName.setText(\"Last Name\");\n\n TableColumn tblclmnActivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnActivated.setWidth(95);\n tblclmnActivated.setText(\"From\");\n\n TableColumn tblclmnDeactivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnDeactivated.setWidth(100);\n tblclmnDeactivated.setText(\"To\");\n\n Composite cmpFooter = new Composite(shell, SWT.NONE);\n cmpFooter.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n cmpFooter.setLayout(new GridLayout(2, false));\n\n lblResultsMessage = new Label(cmpFooter, SWT.NONE);\n lblResultsMessage.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\n Composite cmpButtons = new Composite(cmpFooter, SWT.NONE);\n cmpButtons.setLayout(new GridLayout(3, false));\n cmpButtons.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false, 1, 1));\n\n btnLoad = new Button(cmpButtons, SWT.NONE);\n btnLoad.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnLoad.setText(\"Load Account\");\n btnLoad.setEnabled(false);\n\n btnCancel = new Button(cmpButtons, SWT.NONE);\n btnCancel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnCancel.setText(\"Cancel\");\n new Label(cmpButtons, SWT.NONE);\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new FormLayout(\"fill:d:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow\", \"center:d:noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow\"));\n panel.add(panel1);\n panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10), null));\n final JLabel label1 = new JLabel();\n label1.setHorizontalAlignment(11);\n label1.setText(\"<html><b>Directory</b></html>\");\n label1.setToolTipText(\"The start directory containing child directories (or raw files directly) that will be processed\");\n CellConstraints cc = new CellConstraints();\n panel1.add(label1, cc.xy(1, 1));\n final JLabel label2 = new JLabel();\n label2.setHorizontalAlignment(11);\n label2.setText(\"<html><b>File name regex</b></html>\");\n label2.setDisplayedMnemonic('R');\n label2.setDisplayedMnemonicIndex(19);\n label2.setToolTipText(\"A regular expression used to match the file name of the raw files that need to be processed\");\n panel1.add(label2, cc.xy(1, 3));\n final JLabel label3 = new JLabel();\n label3.setHorizontalAlignment(11);\n label3.setText(\"Starting date\");\n label3.setToolTipText(\"Only files with a modification date later then the starting date will be processed\");\n panel1.add(label3, cc.xy(1, 5));\n final JLabel label4 = new JLabel();\n label4.setHorizontalAlignment(11);\n label4.setText(\"<html>Number of threads</html>\");\n label4.setDisplayedMnemonic('T');\n label4.setDisplayedMnemonicIndex(16);\n label4.setToolTipText(\"The number of worker threads used for collecting the raw files and processing them\");\n panel1.add(label4, cc.xy(1, 7));\n panel1.add(spinnerThreads, cc.xy(3, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new BorderLayout(1, 0));\n panel1.add(panel2, cc.xy(3, 1));\n labelDirectory = new JLabel();\n labelDirectory.setIcon(new ImageIcon(getClass().getResource(\"/images/nok.png\")));\n labelDirectory.setInheritsPopupMenu(false);\n labelDirectory.setMaximumSize(new Dimension(350, 16));\n labelDirectory.setMinimumSize(new Dimension(350, 16));\n labelDirectory.setPreferredSize(new Dimension(350, 16));\n labelDirectory.setText(\"<html><i>no directory configured</i></html>\");\n panel2.add(labelDirectory, BorderLayout.CENTER);\n buttonDirectory = new JButton();\n buttonDirectory.setHorizontalTextPosition(0);\n buttonDirectory.setIcon(new ImageIcon(getClass().getResource(\"/images/add.png\")));\n buttonDirectory.setMaximumSize(new Dimension(24, 24));\n buttonDirectory.setMinimumSize(new Dimension(24, 24));\n buttonDirectory.setPreferredSize(new Dimension(24, 24));\n buttonDirectory.setText(\"\");\n panel2.add(buttonDirectory, BorderLayout.EAST);\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new BorderLayout(1, 0));\n panel1.add(panel3, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\n textFieldRegex = new JTextField();\n textFieldRegex.setText(\"^.*\\\\.raw$\");\n panel3.add(textFieldRegex, BorderLayout.CENTER);\n buttonRegex = new JButton();\n buttonRegex.setHorizontalTextPosition(0);\n buttonRegex.setIcon(new ImageIcon(getClass().getResource(\"/images/search.png\")));\n buttonRegex.setMaximumSize(new Dimension(24, 24));\n buttonRegex.setMinimumSize(new Dimension(24, 24));\n buttonRegex.setPreferredSize(new Dimension(24, 24));\n buttonRegex.setText(\"\");\n panel3.add(buttonRegex, BorderLayout.EAST);\n panelDate = new JPanel();\n panelDate.setLayout(new BorderLayout(0, 0));\n panel1.add(panelDate, cc.xy(3, 5));\n checkBoxUnique = new JCheckBox();\n checkBoxUnique.setText(\"Enforce unique run names\");\n checkBoxUnique.setMnemonic('U');\n checkBoxUnique.setDisplayedMnemonicIndex(8);\n panel1.add(checkBoxUnique, cc.xyw(1, 9, 3, CellConstraints.CENTER, CellConstraints.DEFAULT));\n label2.setLabelFor(textFieldRegex);\n label4.setLabelFor(spinnerThreads);\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(6, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n scrollPane1.setVerticalScrollBarPolicy(22);\n scrollPane1.setVisible(true);\n mainPanel.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 mapTable = new MapTable();\n mapTable.setVisible(false);\n scrollPane1.setViewportView(mapTable);\n final JScrollPane scrollPane2 = new JScrollPane();\n scrollPane2.setVerticalScrollBarPolicy(22);\n mainPanel.add(scrollPane2, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(200, -1), null, 0, false));\n samplesList = new JList<>();\n samplesList.setSelectionMode(0);\n scrollPane2.setViewportView(samplesList);\n final JSeparator separator1 = new JSeparator();\n mainPanel.add(separator1, new GridConstraints(4, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n statusBox = new JComboBox<>();\n mainPanel.add(statusBox, new GridConstraints(5, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(2, 5, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel1, new GridConstraints(2, 0, 2, 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 currentSampleLabel = new JLabel();\n currentSampleLabel.setText(\"<текущий образец>\");\n panel1.add(currentSampleLabel, new GridConstraints(0, 1, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"от:\");\n panel1.add(label1, new GridConstraints(0, 2, 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(\"до:\");\n panel1.add(label2, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n fromPosLabel = new JLabel();\n fromPosLabel.setText(\"<from>\");\n panel1.add(fromPosLabel, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n toPosLabel = new JLabel();\n toPosLabel.setText(\"<to>\");\n panel1.add(toPosLabel, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n panel1.add(spacer2, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 6, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_SOUTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(372, 14), null, 0, false));\n boxesCountLabel = new JLabel();\n boxesCountLabel.setText(\"Кол-во коробок:\");\n panel2.add(boxesCountLabel, new GridConstraints(0, 5, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n currentPosLabel = new JLabel();\n currentPosLabel.setText(\"Позиция:\");\n panel2.add(currentPosLabel, 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 Spacer spacer3 = new Spacer();\n panel2.add(spacer3, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Номер отправки:\");\n panel2.add(label3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n shipmentNumberField = new JTextField();\n panel2.add(shipmentNumberField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_SOUTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(60, -1), null, 0, false));\n final Spacer spacer4 = new Spacer();\n panel2.add(spacer4, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridBagLayout());\n mainPanel.add(panel3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 28), null, 0, false));\n sampleDeleteButton = new JButton();\n sampleDeleteButton.setIcon(new ImageIcon(getClass().getResource(\"/delSample16.png\")));\n sampleDeleteButton.setMinimumSize(new Dimension(-1, -1));\n sampleDeleteButton.setPreferredSize(new Dimension(32, -1));\n sampleDeleteButton.setText(\"\");\n GridBagConstraints gbc;\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.gridheight = 2;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleDeleteButton, gbc);\n sampleEditButton = new JButton();\n sampleEditButton.setIcon(new ImageIcon(getClass().getResource(\"/change16.png\")));\n sampleEditButton.setMinimumSize(new Dimension(-1, -1));\n sampleEditButton.setPreferredSize(new Dimension(32, -1));\n sampleEditButton.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.gridheight = 2;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleEditButton, gbc);\n sampleMoveUpButton = new JButton();\n sampleMoveUpButton.setIcon(new ImageIcon(getClass().getResource(\"/upSample10.png\")));\n sampleMoveUpButton.setMinimumSize(new Dimension(-1, -1));\n sampleMoveUpButton.setPreferredSize(new Dimension(32, -1));\n sampleMoveUpButton.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleMoveUpButton, gbc);\n sampleMoveDownButton = new JButton();\n sampleMoveDownButton.setIcon(new ImageIcon(getClass().getResource(\"/downSample10.png\")));\n sampleMoveDownButton.setMinimumSize(new Dimension(-1, -1));\n sampleMoveDownButton.setPreferredSize(new Dimension(32, -1));\n sampleMoveDownButton.setText(\"\");\n sampleMoveDownButton.setVerticalAlignment(0);\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleMoveDownButton, gbc);\n sampleAddButton = new JButton();\n sampleAddButton.setIcon(new ImageIcon(getClass().getResource(\"/addSample16.png\")));\n sampleAddButton.setMinimumSize(new Dimension(-1, -1));\n sampleAddButton.setPreferredSize(new Dimension(32, -1));\n sampleAddButton.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.gridheight = 2;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleAddButton, gbc);\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel4, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(180, -1), null, 0, false));\n loadListButton = new JButton();\n loadListButton.setIcon(new ImageIcon(getClass().getResource(\"/import16.png\")));\n loadListButton.setText(\"\");\n panel4.add(loadListButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(48, -1), null, 0, false));\n startButton = new JButton();\n startButton.setText(\"Начать работу\");\n panel4.add(startButton, new GridConstraints(0, 2, 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 debugButton = new JButton();\n debugButton.setText(\"debug\");\n panel4.add(debugButton, new GridConstraints(1, 2, 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 saveMapButton = new JButton();\n saveMapButton.setIcon(new ImageIcon(getClass().getResource(\"/save16.png\")));\n saveMapButton.setText(\"\");\n panel4.add(saveMapButton, 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 }", "private void $$$setupUI$$$() {\n panel_ProfessorApp = new JPanel();\n panel_ProfessorApp.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel_ProfessorApp.add(panel1, 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, null, null, 0, false));\n questionNumberLabel = new JLabel();\n questionNumberLabel.setText(\"Question 1\");\n panel1.add(questionNumberLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n QuestionInput = new JTextArea();\n QuestionInput.setText(\"\");\n panel_ProfessorApp.add(QuestionInput, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(4, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel_ProfessorApp.add(panel2, 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 answerInput1 = new JTextField();\n answerInput1.setText(\"Answer Text\");\n panel2.add(answerInput1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n answerInput2 = new JTextField();\n answerInput2.setText(\"Answer Text\");\n panel2.add(answerInput2, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n answerInput3 = new JTextField();\n answerInput3.setText(\"Answer Text\");\n panel2.add(answerInput3, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n answerInput4 = new JTextField();\n answerInput4.setText(\"Answer Text\");\n panel2.add(answerInput4, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n OptionA = new JRadioButton();\n OptionA.setText(\"A\");\n panel2.add(OptionA, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n OptionB = new JRadioButton();\n OptionB.setText(\"B\");\n panel2.add(OptionB, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n OptionC = new JRadioButton();\n OptionC.setText(\"C\");\n panel2.add(OptionC, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n OptionD = new JRadioButton();\n OptionD.setText(\"D\");\n panel2.add(OptionD, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel_ProfessorApp.add(panel3, new GridConstraints(3, 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 nextButton = new JButton();\n nextButton.setText(\"Next\");\n panel3.add(nextButton, new GridConstraints(0, 2, 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 Spacer spacer1 = new Spacer();\n panel3.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n saveButton = new JButton();\n saveButton.setText(\"Save\");\n panel3.add(saveButton, 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 ButtonGroup buttonGroup;\n buttonGroup = new ButtonGroup();\n buttonGroup.add(OptionA);\n buttonGroup.add(OptionB);\n buttonGroup.add(OptionC);\n buttonGroup.add(OptionD);\n }", "private void $$$setupUI$$$() {\n RG = new JPanel();\n RG.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(6, 6, new Insets(0, 0, 0, 0), -1, -1));\n RG.setOpaque(true);\n RG.setPreferredSize(new Dimension(348, 136));\n enrereButton = new JButton();\n enrereButton.setText(\"Enrere\");\n RG.add(enrereButton, new com.intellij.uiDesigner.core.GridConstraints(4, 2, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Nombre d'usuaris registrats:\");\n RG.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Nombre de partides jugades totals:\");\n RG.add(label2, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Jocs = new JLabel();\n Jocs.setText(\"Label\");\n RG.add(Jocs, new com.intellij.uiDesigner.core.GridConstraints(2, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Eljoc = new JLabel();\n Eljoc.setText(\"Label\");\n RG.add(Eljoc, new com.intellij.uiDesigner.core.GridConstraints(3, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Partides = new JLabel();\n Partides.setText(\"Label\");\n RG.add(Partides, new com.intellij.uiDesigner.core.GridConstraints(1, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n Usuaris = new JLabel();\n Usuaris.setText(\"Label\");\n RG.add(Usuaris, new com.intellij.uiDesigner.core.GridConstraints(0, 3, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Joc més popular:\");\n RG.add(label3, new com.intellij.uiDesigner.core.GridConstraints(3, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Nombre de jocs totals:\");\n RG.add(label4, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(4, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(1, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(0, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(2, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(3, 4, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer7 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer7, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer8 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer8, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer9 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer9, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer10 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer10, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer11 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer11, new com.intellij.uiDesigner.core.GridConstraints(3, 5, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer12 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer12, new com.intellij.uiDesigner.core.GridConstraints(2, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer13 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer13, new com.intellij.uiDesigner.core.GridConstraints(1, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer14 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer14, new com.intellij.uiDesigner.core.GridConstraints(0, 5, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer15 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer15, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer16 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer16, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer17 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer17, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer18 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer18, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer19 = new com.intellij.uiDesigner.core.Spacer();\n RG.add(spacer19, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 6, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new BorderLayout(0, 0));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:grow,top:3dlu:noGrow,center:max(d;4px):noGrow\"));\n mainPanel.add(panel2, BorderLayout.SOUTH);\n postButton = new JButton();\n postButton.setText(\"Post\");\n CellConstraints cc = new CellConstraints();\n panel2.add(postButton, cc.xy(1, 3));\n final JSplitPane splitPane1 = new JSplitPane();\n splitPane1.setResizeWeight(0.5);\n mainPanel.add(splitPane1, BorderLayout.CENTER);\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:noGrow,top:3dlu:noGrow,center:d:grow\"));\n splitPane1.setRightComponent(panel3);\n final JLabel label1 = new JLabel();\n label1.setText(\"Query Result\");\n panel3.add(label1, cc.xy(1, 1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel3.add(scrollPane1, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.FILL));\n queryResult = new JTextArea();\n scrollPane1.setViewportView(queryResult);\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:noGrow,top:3dlu:noGrow,center:d:grow\"));\n splitPane1.setLeftComponent(panel4);\n final JLabel label2 = new JLabel();\n label2.setText(\"Cypher Query\");\n panel4.add(label2, cc.xy(1, 1));\n final JScrollPane scrollPane2 = new JScrollPane();\n panel4.add(scrollPane2, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.FILL));\n queryEditor = new JTextArea();\n scrollPane2.setViewportView(queryEditor);\n }", "GridBagLayoutCalc(){\n\n windowContent = new JPanel();\n\n // Set the layout manager for this panel\n GridBagLayout gblwc = new GridBagLayout();\n windowContent.setLayout(gblwc);\n\n\n // Create the display field and place it in the\n // North area of the window\n\n displayField = new JTextField(20);\n gblwc.setConstraints(displayField, constr);\n windowContent.add(\"0\",displayField);\n \n\n // Create buttons using constructor of the\n // class JButton that takes the label of the\n // button as a parameter\n\n JButton[] numbers = new JButton[10];\n JButton[] equals = new JButton[1];\n JButton[] controllers = new JButton[4];\n\n String[] numbers_name = {\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"0\"};\n String[] equals_name = {\"=\"};\n String[] controllers_name = {\"+\", \"-\", \"*\", \"/\"};\n\n // Create the panel with the GridBagLayout with 15 buttons\n //10 numeric ones, 4 controllers, and the equal sign\n\n p1 = new JPanel();\n GridBagLayout gbl =new GridBagLayout();\n p1.setLayout(gbl);\n\n // Add window controls to the panel p1\n panelMaker(numbers, numbers_name, p1, Color.BLUE);\n panelMaker(equals, equals_name, p1, Color.BLACK);\n panelMaker(controllers, controllers_name, p1, Color.BLACK);\n\n }", "private void jbInit() {\n sectionLabel.setFont(new java.awt.Font(\"Dialog\", 1, 12));\n sectionLabel.setBorder(BorderFactory.createEmptyBorder(5, 5, 0, 0));\n sectionLabel.setText(\"Sections\");\n\n columnsLabel.setFont(new java.awt.Font(\"Dialog\", 1, 12));\n columnsLabel.setBorder(BorderFactory.createEmptyBorder(5, 5, 0, 0));\n columnsLabel.setText(\"Colonnes\");\n\n // Add components to Frame\n this.getContentPane().setLayout(thisGridBagLayout);\n this.setMinimumSize(new Dimension(100, 100));\n this.getContentPane().setBackground(Color.lightGray);\n\n sectionPanel.setLayout(sectionBorderLayout);\n sectionPanel.add(sectionLabel, BorderLayout.NORTH);\n sectionPanel.add(sectionScrollPane, BorderLayout.CENTER);\n sectionPanel.add(sectionToolBar, BorderLayout.SOUTH);\n\n columnsPanel.setLayout(columnsBorderLayout);\n columnsPanel.add(columnsLabel, BorderLayout.NORTH);\n columnsPanel.add(columnsScrollPane, BorderLayout.CENTER);\n columnsPanel.add(columnsToolBar, BorderLayout.SOUTH);\n\n sectionScrollPane.getViewport().add(sectionTable);\n columnsScrollPane.getViewport().add(columnsTable);\n\n this.getContentPane().add(sectionPanel,\n new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER,\n GridBagConstraints.BOTH,\n new Insets(0, 5, 0, 4),\n -144,\n -309));\n this.getContentPane().add(columnsPanel,\n new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER,\n GridBagConstraints.BOTH,\n new Insets(0, 5, 5, 4),\n -144,\n -309));\n\n // Listener securityCodeTable\n SectionSelectionListener actionsSelection = new SectionSelectionListener();\n sectionTable.getSelectionModel().addListSelectionListener(actionsSelection);\n\n setSize(750, 550);\n }", "private VBox makeUIElements() {\r\n\t\t\r\n\t\tVBox vBox = new VBox();\r\n\t\tvBox.setPadding(new Insets(16));\r\n\t\tvBox.setSpacing(25);\r\n\t\tvBox.setAlignment(Pos.CENTER);\r\n\t\t\r\n\t\tHBox sortingAlgorithmHBox = new HBox();\r\n\t\tsortingAlgorithmHBox.setSpacing(5);\r\n\t\tsortingAlgorithmHBox.setAlignment(Pos.BASELINE_LEFT);\r\n\t\tLabel sortingAlgorithmLabel = new Label(\"Sorting Algorithm:\");\r\n\t\tComboBox<String> sortingAlgorithmComboBox = new ComboBox<>();\r\n\t\tfor (String s : Settings.algorithms) {\r\n\t\t\tsortingAlgorithmComboBox.getItems().add(s);\r\n\t\t}\r\n\t\tsortingAlgorithmComboBox.getSelectionModel().selectFirst();\r\n\t\tsortingAlgorithmHBox.getChildren().addAll(sortingAlgorithmLabel, sortingAlgorithmComboBox);\r\n\t\t\r\n\t\t\r\n\t\tHBox arraySizeHBox = new HBox();\r\n\t\tarraySizeHBox.setSpacing(5);\r\n\t\tarraySizeHBox.setAlignment(Pos.BASELINE_LEFT);\r\n\t\tLabel arraySizeLabel = new Label(\"Array Size:\");\r\n\t\tfinal TextField arraySizeInput = new TextField(\"100\");\r\n\t\tarraySizeInput.setPrefWidth(70);\r\n\t\tarraySizeInput.textProperty().addListener(new ChangeListener<String>() {\r\n\t\t @Override\r\n\t\t public void changed(ObservableValue<? extends String> observable, String oldValue, \r\n\t\t String newValue) {\r\n\t\t if (!newValue.matches(\"\\\\d*\")) {\r\n\t\t \tarraySizeInput.setText(newValue.replaceAll(\"[^\\\\d]\", \"\"));\r\n\t\t }\r\n\t\t }\r\n\t\t});\r\n\t\tarraySizeHBox.getChildren().addAll(arraySizeLabel, arraySizeInput);\r\n\t\t\r\n\t\t\r\n\t\tHBox delayHBox = new HBox();\r\n\t\tdelayHBox.setSpacing(5);\r\n\t\tdelayHBox.setAlignment(Pos.BASELINE_LEFT);\r\n\t\tLabel delayLabel = new Label(\"Step Delay:\");\r\n\t\tSlider delaySlider = new Slider(1, 1000, 1);\r\n\t\tdelaySlider.setPrefWidth(200);\r\n\t\tLabel delayValue = new Label(\"1\");\r\n\t\tdelayValue.setPrefWidth(45);\r\n\t\tdelaySlider.valueProperty().addListener(new ChangeListener<Number>() {\r\n\t public void changed(ObservableValue<? extends Number> ov,\r\n\t Number oldVal, Number newVal) {\r\n\t \tlong val = 5*(Math.round(newVal.doubleValue()/5));\r\n\t \t\r\n\t \tval = Math.max(val, 1);\r\n\t \t\r\n\t \tdelaySlider.setValue(val);\r\n\t \tdelayValue.setText(Long.toString(val) + \" ms\");\r\n\t \tif (CurrentSortStratergy.getInstance().getCurrentStratergy() != null)\r\n\t \t\tCurrentSortStratergy.getInstance().getCurrentStratergy().setDelay(val);\r\n\t }\r\n \t});\r\n\t\tdelayHBox.getChildren().addAll(delayLabel, delaySlider, delayValue);\r\n\t\t\r\n\t\t\r\n\t\tHBox showGenerationBox = new HBox();\r\n\t\tshowGenerationBox.setSpacing(5);\r\n\t\tshowGenerationBox.setAlignment(Pos.BASELINE_LEFT);\r\n\t\tLabel showGenerationLabel = new Label(\"Show Array Generation: \");\r\n\t\tCheckBox showGenerationCheckBox = new CheckBox();\r\n\t\tshowGenerationBox.getChildren().addAll(showGenerationLabel, showGenerationCheckBox);\r\n\t\t\r\n\t\tHBox buttonHBox = new HBox();\r\n\t\tbuttonHBox.setSpacing(5);\r\n\t\tbuttonHBox.setAlignment(Pos.CENTER);\r\n\t\tButton generateButton = new Button(\"Generate Array\");\r\n\t\tgenerateButton.setOnAction(new GenerateButtonHandler(this.canvasPanel, arraySizeInput, showGenerationCheckBox));\r\n\t\tButton sortButton = new Button(\"Start Sort\");\r\n\t\tsortButton.setOnAction(new SortButtonHandler(this.canvasPanel, sortingAlgorithmComboBox, arraySizeInput, delaySlider, showGenerationCheckBox));\r\n\t\tButton stopButton = new Button(\"Stop Sort\");\r\n\t\tstopButton.setOnAction(new StopButtonHandler());\r\n\t\tbuttonHBox.getChildren().addAll(generateButton, sortButton, stopButton);\r\n\t\t\r\n\t\tvBox.getChildren().addAll(sortingAlgorithmHBox, arraySizeHBox, delayHBox, showGenerationBox, buttonHBox);\r\n\t\treturn vBox;\r\n\t\t\r\n\t}", "private void jbInit() throws Exception {\n this.setLayout(gridBagLayout1);\n viewButton.setBackground(Color.white);\n viewButton.setFont(new java.awt.Font(\"Dialog\", 0, 11));\n viewButton.setForeground(new Color(0, 0, 83));\n viewButton.setMinimumSize(new Dimension(13, 5));\n viewButton.setPreferredSize(new Dimension(13, 11));\n viewButton.setToolTipText(\"edit/view property\");\n viewButton.setMargin(new Insets(0, 0, 0, 0));\n viewButton.setText(\"v\");\n viewButton.addActionListener(\n new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n viewButton_actionPerformed(e);\n }\n });\n addButton.setBackground(Color.white);\n addButton.setFont(new java.awt.Font(\"Dialog\", 0, 11));\n addButton.setForeground(new Color(0, 0, 83));\n addButton.setMinimumSize(new Dimension(13, 5));\n addButton.setPreferredSize(new Dimension(13, 11));\n addButton.setToolTipText(\"add property\");\n addButton.setMargin(new Insets(0, 0, 0, 0));\n addButton.setText(\"+\");\n addButton.addActionListener(\n new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n addButton_actionPerformed(e);\n }\n });\n deleteButton.setBackground(Color.white);\n deleteButton.setFont(new java.awt.Font(\"Dialog\", 0, 11));\n deleteButton.setForeground(new Color(0, 0, 83));\n deleteButton.setMinimumSize(new Dimension(13, 5));\n deleteButton.setPreferredSize(new Dimension(13, 11));\n deleteButton.setToolTipText(\"delete property\");\n deleteButton.setMargin(new Insets(0, 0, 0, 0));\n deleteButton.setText(\"x\");\n deleteButton.addActionListener(\n new java.awt.event.ActionListener() {\n public void actionPerformed(ActionEvent e) {\n deleteButton_actionPerformed(e);\n }\n });\n contentList.setCellRenderer(aclPropertyListCellRenderer);\n contentList.addKeyListener(\n new java.awt.event.KeyAdapter() {\n public void keyPressed(KeyEvent e) {\n contentList_keyPressed(e);\n }\n });\n contentList.addMouseListener(\n new java.awt.event.MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n contentList_mouseClicked(e);\n }\n });\n contentScrollPane.setBorder(BorderFactory.createLineBorder(Color.black));\n contentScrollPane.getViewport().add(contentList, null);\n\n this.add(contentScrollPane, new GridBagConstraints(0, 0, 1, 3, 1.0, 1.0\n , GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));\n this.add(addButton, new GridBagConstraints(1, 1, GridBagConstraints.REMAINDER, 1, 0.0, 1.0\n , GridBagConstraints.CENTER, GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));\n this.add(deleteButton, new GridBagConstraints(1, 2, GridBagConstraints.REMAINDER, 1, 0.0, 1.0\n , GridBagConstraints.CENTER, GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));\n this.add(viewButton, new GridBagConstraints(1, 0, GridBagConstraints.REMAINDER, 1, 0.0, 1.0\n , GridBagConstraints.CENTER, GridBagConstraints.VERTICAL, new Insets(0, 0, 0, 0), 0, 0));\n }", "private void initializeGrid() {\n // 50 pixel first row for banner\n addPercentRows(root, 5);\n // second row takes up 100% of the remaining space\n addPercentRows(root, 95);\n // One column at 100% width\n addPercentColumns(root, 100);\n\n Label title = new Label(\"Mission Control\");\n title.setFont(new Font(\"Arial\", 22));\n title.setTextFill(Color.WHITE);\n\n GridPane contentGrid = new GridPane();\n // Only need one row as content will fill the entire vertical space\n addPercentRows(contentGrid, 100);\n\n // Need three columns, 1/6 column for nav, 2/3 for main content, 1/6 for warnings\n double sidePanelPercent = (1d / 6d) * 100d;\n double centerPanelPercent = (2d / 3d) * 100d;\n addPercentColumns(contentGrid, sidePanelPercent, centerPanelPercent, sidePanelPercent);\n\n\n addNodeToGrid(title, root, 0, 0, Pos.CENTER, Colours.PRIMARY_COLOUR, Insets.EMPTY);\n // NOTE:: This assumes that it is the only child added to root by this point to set ID.\n // If this is changed DynamicGuiTests will break.\n root.getChildren().get(0).setId(\"pnBanner\");\n\n addNodeToGrid(contentGrid, root, 1, 0);\n\n setupCenterPanel(contentGrid);\n setupRightHandSidePanel(contentGrid);\n setupLeftHandSidePanel(contentGrid);\n\n // Assert they are created - mainly to bypass Spot bugs issues.\n assert this.navigationView != null;\n assert this.graphView != null;\n assert this.informationView != null;\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(720, 480);\n\t\tshell.setText(\"1FN Normalization\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tcomposite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));\n\t\tcomposite.setLayout(new GridLayout(5, false));\n\t\tlblSeparators = new Label(composite, SWT.NONE);\n\t\tlblSeparators.setText(\"Separators:\");\n\t\tcomposite_1 = new Composite(composite, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(5, false));\n\t\tcomposite_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));\n\t\tchk1 = new Button(composite_1, SWT.CHECK);\n\t\tchk1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk1widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk1.setSelection(true);\n\t\tchk1.setText(\";\");\n\t\tchk2 = new Button(composite_1, SWT.CHECK);\n\t\tchk2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk2widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk2.setSelection(true);\n\t\tchk2.setText(\"cr\");\n\t\tchk3 = new Button(composite_1, SWT.CHECK);\n\t\tchk3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk3widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk3.setText(\",\");\n\t\tchk4 = new Button(composite_1, SWT.CHECK);\n\t\tchk4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk4widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk4.setText(\"space\");\n\t\tchk5 = new Button(composite_1, SWT.CHECK);\n\t\tchk5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk5widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk5.setText(\".\");\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\t\tlblColumn = new Label(composite, SWT.NONE);\n\t\tlblColumn.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));\n\t\tlblColumn.setText(\"Column:\");\n\t\tlstColumn = new List(composite, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\n\t\tlstColumn.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdolstColumnwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tGridData gd_lstColumn = new GridData(SWT.LEFT, SWT.FILL, false, true, 4, 1);\n\t\tgd_lstColumn.widthHint = 150;\n\t\tgd_lstColumn.heightHint = 80;\n\t\tlstColumn.setLayoutData(gd_lstColumn);\n\t\tlblMethod = new Label(composite, SWT.NONE);\n\t\tlblMethod.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblMethod.setText(\"Method:\");\n\t\tcheckSingle = new Button(composite, SWT.RADIO);\n\t\tcheckSingle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdocheckSinglewidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tcheckSingle.setText(\"Single Table (Recommended)\");\n\t\tchkMulti = new Button(composite, SWT.RADIO);\n\t\tchkMulti.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochkMultiwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchkMulti.setText(\"Multi table\");\n\t\tlblNewTableName = new Label(composite, SWT.NONE);\n\t\tlblNewTableName.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblNewTableName.setText(\"New table name: \");\n\t\ttxtNewTableName = new Text(composite, SWT.BORDER);\n\t\ttxtNewTableName.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent arg0) {\n\t\t\t\tdotxtNewTableNamemodifyText(arg0);\n\t\t\t}\n\t\t});\n\t\ttxtNewTableName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tlblActual = new Label(shell, SWT.NONE);\n\t\tlblActual.setText(\"Actual\");\n\t\tlblRefatored = new Label(shell, SWT.NONE);\n\t\tlblRefatored.setText(\"Refator\");\n\t\tmodelEditor1 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tGridData gd_modelEditor1 = new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1);\n\t\tgd_modelEditor1.widthHint = 250;\n\t\tmodelEditor1.setLayoutData(gd_modelEditor1);\n\t\tmodelEditor2 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tmodelEditor2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tbtnConfirm = new Button(shell, SWT.NONE);\n\t\tbtnConfirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdobtnConfirmwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tbtnConfirm.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 2, 1));\n\t\tbtnConfirm.setText(\"Confirm\");\n\t\ttxtNewTableName.setEnabled(false);\n\t}", "private void setupLayout() {\n this.setLayout(new BorderLayout());\n\t\tthis.setupConstraints();\n\n\t\tJPanel titleAuthorFields = new JPanel(new GridBagLayout());\n\t\ttitleAuthorFields.add(Pirex.inputField(titleLabel, titleTextField, null), cTitleField);\n\t\ttitleAuthorFields.add(Pirex.inputField(authorLabel, authorTextField, null), cAuthorField);\n\n\t\tJPanel inputFields = new JPanel(new GridLayout(3, 0));\n\t\tinputFields.add(Pirex.inputField(fileLabel, fileTextField, fileBrowseButton));\n\t\tinputFields.add(Pirex.inputField(fileTypeLabel, fileTypeComboBox, null));\n\t\tinputFields.add(titleAuthorFields);\n\t\tinputFields = Pirex.borderLayoutWrap(null, null, inputFields, null, separator);\n\n\t\tJPanel leftAlignedProcessButton = Pirex.leftAlign(processButton);\n\t\tJPanel processPanel = Pirex.borderLayoutWrap(leftAlignedProcessButton, null, summaryScrollPanel, null, null);\n\t\tJPanel loadTabPanel = Pirex.borderLayoutWrap(inputFields, null, processPanel, null, null);\n\n\t\tthis.add(Pirex.withBorder(loadTabPanel), BorderLayout.CENTER);\n\n }", "private void createContents() {\r\n shell = new Shell(getParent(), getStyle());\r\n shell.setSize(650, 300);\r\n shell.setText(getText());\r\n\r\n shell.setLayout(new FormLayout());\r\n\r\n lblSOName = new Label(shell, SWT.CENTER);\r\n lblSOName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_lblSOName = new FormData();\r\n fd_lblSOName.bottom = new FormAttachment(0, 20);\r\n fd_lblSOName.right = new FormAttachment(100, -2);\r\n fd_lblSOName.top = new FormAttachment(0, 2);\r\n fd_lblSOName.left = new FormAttachment(0, 2);\r\n lblSOName.setLayoutData(fd_lblSOName);\r\n lblSOName.setText(soName);\r\n\r\n tableParams = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);\r\n tableParams.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_tableParams = new FormData();\r\n fd_tableParams.bottom = new FormAttachment(100, -40);\r\n fd_tableParams.right = new FormAttachment(100, -2);\r\n fd_tableParams.top = new FormAttachment(0, 22);\r\n fd_tableParams.left = new FormAttachment(0, 2);\r\n tableParams.setLayoutData(fd_tableParams);\r\n tableParams.setHeaderVisible(true);\r\n tableParams.setLinesVisible(true);\r\n fillInTable(tableParams);\r\n tableParams.addControlListener(new ControlAdapter() {\r\n\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Table table = (Table)e.getSource();\r\n table.getColumn(0).setWidth((int)(table.getClientArea().width*nameSpace));\r\n table.getColumn(1).setWidth((int)(table.getClientArea().width*valueSpace));\r\n table.getColumn(2).setWidth((int)(table.getClientArea().width*hintSpace));\r\n }\r\n });\r\n tableParams.pack();\r\n //paramName.pack();\r\n //paramValue.pack();\r\n\r\n final TableEditor editor = new TableEditor(tableParams);\r\n //The editor must have the same size as the cell and must\r\n //not be any smaller than 50 pixels.\r\n editor.horizontalAlignment = SWT.LEFT;\r\n editor.grabHorizontal = true;\r\n editor.minimumWidth = 50;\r\n // editing the second column\r\n tableParams.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n // Identify the selected row\r\n TableItem item = (TableItem) e.item;\r\n if (item == null) {\r\n return;\r\n }\r\n\r\n // The control that will be the editor must be a child of the Table\r\n IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM);\r\n if (editedParam != null) {\r\n // Clean up any previous editor control\r\n Control oldEditor = editor.getEditor();\r\n if (oldEditor != null) {\r\n oldEditor.dispose();\r\n }\r\n\r\n Control editControl = null;\r\n String cellText = item.getText(columnValueIndex);\r\n switch (editedParam.getType()) {\r\n case BOOLEAN:\r\n Combo cmb = new Combo(tableParams, SWT.READ_ONLY);\r\n String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)};\r\n cmb.setItems(booleanItems);\r\n cmb.select(1);\r\n if (Boolean.parseBoolean(cellText)) {\r\n cmb.select(0);\r\n }\r\n editControl = cmb;\r\n cmb.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n Combo text = (Combo) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n break;\r\n case DATE:\r\n IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam;\r\n LocalDateTime calToUse = calParam.getValue();\r\n Composite dateAndTime = new Composite(tableParams, SWT.NONE);\r\n RowLayout rl = new RowLayout();\r\n rl.wrap = false;\r\n dateAndTime.setLayout(rl);\r\n //Date cellDt;\r\n try {\r\n LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt);\r\n if (locDT != null) {\r\n calToUse = locDT;\r\n }\r\n /*cellDt = dateFmt.parse(cellText);\r\n if (cellDt != null) {\r\n calToUse.setTime(cellDt);\r\n }*/\r\n } catch (DateTimeParseException e1) {\r\n log.error(\"widgetSelected \", e1);\r\n }\r\n\r\n DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN);\r\n datePicker.setData(DATA_VALUE_PARAM, calParam);\r\n DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG);\r\n timePicker.setData(DATA_VALUE_PARAM, calParam);\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1,\r\n calToUse.getDayOfMonth());\r\n timePicker.setTime(calToUse.getHour(), calToUse.getMinute(),\r\n calToUse.getSecond());\r\n\r\n datePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n timePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n dateAndTime.layout();\r\n editControl = dateAndTime;\r\n break;\r\n case INTEGER:\r\n Text intEditor = new Text(tableParams, SWT.NONE);\r\n intEditor.setText(item.getText(columnValueIndex));\r\n intEditor.selectAll();\r\n intEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n Integer resultInt = null;\r\n try {\r\n resultInt = Integer.parseInt(text.getText());\r\n } catch (NumberFormatException nfe) {\r\n log.error(\"NFE \", nfe);\r\n }\r\n if (resultInt != null) {\r\n editor.getItem().setText(columnValueIndex, resultInt.toString());\r\n }\r\n }\r\n });\r\n editControl = intEditor;\r\n break;\r\n case STRING:\r\n default:\r\n Text newEditor = new Text(tableParams, SWT.NONE);\r\n newEditor.setText(item.getText(columnValueIndex));\r\n newEditor.setFont(tableParams.getFont());\r\n newEditor.selectAll();\r\n newEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n editControl = newEditor;\r\n break;\r\n }\r\n\r\n editControl.setFont(tableParams.getFont());\r\n editControl.setFocus();\r\n editor.setEditor(editControl, item, columnValueIndex);\r\n }\r\n }\r\n });\r\n\r\n\r\n btnOK = new Button(shell, SWT.NONE);\r\n btnOK.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnOK = new FormData();\r\n fd_btnOK.bottom = new FormAttachment(100, -7);\r\n fd_btnOK.right = new FormAttachment(40, 2);\r\n fd_btnOK.top = new FormAttachment(100, -35);\r\n fd_btnOK.left = new FormAttachment(15, 2);\r\n btnOK.setLayoutData(fd_btnOK);\r\n btnOK.setText(\"OK\");\r\n btnOK.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.OK, getParamMap());\r\n shell.close();\r\n }\r\n\r\n });\r\n shell.setDefaultButton(btnOK);\r\n\r\n btnCancel = new Button(shell, SWT.NONE);\r\n btnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnCancel = new FormData();\r\n fd_btnCancel.bottom = new FormAttachment(100, -7);\r\n fd_btnCancel.left = new FormAttachment(60, -2);\r\n fd_btnCancel.top = new FormAttachment(100, -35);\r\n fd_btnCancel.right = new FormAttachment(85, -2);\r\n btnCancel.setLayoutData(fd_btnCancel);\r\n btnCancel.setText(\"Cancel\");\r\n btnCancel.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.CANCEL, null);\r\n shell.close();\r\n }\r\n\r\n });\r\n tableParams.redraw();\r\n }", "private void setUpGui() {\n \n // make sure that the scroll panes are see-through\n qualityFiltersTableScrollPane.getViewport().setOpaque(false);\n\n // disable column reordering\n qualityFiltersTable.getTableHeader().setReorderingAllowed(false);\n\n // set the validation combo box\n validationLevelJComboBox.setRenderer(new AlignedListCellRenderer(SwingConstants.CENTER));\n validationLevelJComboBox.setEditable(false);\n\n // set up the table header tooltips\n validationTableToolTips = new ArrayList<>(3);\n validationTableToolTips.add(null);\n validationTableToolTips.add(\"Quality Test\");\n validationTableToolTips.add(\"Passed\");\n }", "private void buildUI()\n {\n GridBagConstraints c = new GridBagConstraints();\n c.fill = GridBagConstraints.HORIZONTAL;\n c.gridy = 0;\n\n // Adds the title to the panel, changes the font, and centers it\n c.gridwidth = 2;\n Font displayFont = new Font(\"Serif\", Font.BOLD, 18);\n JLabel cardTitle = new JLabel(\"Transition Options\");\n cardTitle.setFont(displayFont);\n cardTitle.setHorizontalAlignment(JLabel.CENTER);\n add(cardTitle, c);\n\n // Adds a separator between the title and the rules text field\n c.gridy++;\n JSeparator separator = new JSeparator();\n separator.setPreferredSize(new Dimension(0, 15));\n add(separator, c);\n\n // Adds a label for the rules field\n c.gridy++;\n c.gridwidth = 1;\n JLabel rulesLabel = new JLabel(\"Rules:\");\n add(rulesLabel, c);\n\n // Sets the insets to 3 on every side\n c.insets = new Insets(3, 3, 3, 3);\n\n // Creates the rules text field of size 100, sets the action command\n // to enter\n c.gridy++;\n c.ipadx = 100;\n ruleTextField = new JTextField();\n ruleTextField.setActionCommand(\"enter\");\n ruleTextField.addActionListener(this);\n add(ruleTextField, c);\n\n // Creates an enter button, resets padding to 0\n c.gridx = 1;\n c.ipadx = 0;\n enterButton = new JButton(\"Enter\");\n enterButton.setActionCommand(\"enter\");\n enterButton.addActionListener(this);\n add(enterButton, c);\n\n // Creates a button that adds an epsilon transition to the rule text field\n c.gridy++;\n c.gridx = 0;\n c.gridwidth = 2;\n epsilonButton = new JButton(\"Add Epsilon Transition\");\n epsilonButton.setActionCommand(\"epsilon\");\n epsilonButton.addActionListener(this);\n add(epsilonButton, c);\n\n // Adds a separator between the rule text field items and the delete button\n c.gridy++;\n separator = new JSeparator();\n separator.setPreferredSize(new Dimension(0, 15));\n add(separator, c);\n\n // Creates a delete button\n c.gridy++;\n deleteButton = new JButton(\"Delete Transition\");\n deleteButton.setVerticalTextPosition(AbstractButton.BOTTOM);\n deleteButton.setHorizontalTextPosition(AbstractButton.CENTER);\n deleteButton.setActionCommand(\"delete\");\n deleteButton.addActionListener(this);\n add(deleteButton, c);\n\n // I hate Alby for making this work.\n // Pushes the panel to the top\n c.gridy++;\n c.weighty = 1;\n JLabel blank = new JLabel();\n add(blank, c);\n }", "private void layoutComponents() {\n setLayout(new MigLayout(\"fill, wrap 1, hidemode 3, \"\n + (padding ? \"ins rel\" : \"ins 0\")));\n\n add(infoLabel, \"growx\");\n add(scrollPane, \"grow, pushy\");\n add(addOptionPanel, \"growx\");\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 setupForm() {\n\t\tlabelIp = new JLabel(\"IP Address:\");\n\t\tconstraints.gridx = 0;\n\t\tconstraints.gridy = 0;\n\t\tadd(labelIp, constraints);\t\n\t\tfieldIp = new JTextField(30);\n\t\tfieldIp.setText(DataStore.getInstance().getConfig().getIPAddr());\n\t\tconstraints.gridx = 1;\n\t\tconstraints.fill = GridBagConstraints.HORIZONTAL;\n\t\tadd(fieldIp, constraints);\n\t\t\n\t\tlabelPort = new JLabel(\"Port number: \");\n\t\tconstraints.gridx = 0;\n\t\tconstraints.gridy = 1;\n\t\tadd(labelPort, constraints);\t\n\t\tfieldPort = new JTextField(30);\n\t\tfieldPort.setText(DataStore.getInstance().getConfig().getPort());\n\t\tconstraints.gridx = 1;\n\t\tconstraints.fill = GridBagConstraints.HORIZONTAL;\n\t\tadd(fieldPort, constraints);\n\t\t\n\t\tlabelEmail = new JLabel(\"User Email:\");\n\t\tconstraints.gridx = 0;\n\t\tconstraints.gridy = 2;\n\t\tadd(labelEmail, constraints);\t\n\t\tfieldEmail = new JTextField(30);\n\t\tfieldEmail.setText(DataStore.getInstance().getConfig().getEAddr());\n\t\tconstraints.gridx = 1;\n\t\tconstraints.fill = GridBagConstraints.HORIZONTAL;\n\t\tadd(fieldEmail, constraints);\n\t\t\n\t\tlabelPass = new JLabel(\"Password: \");\n\t\tconstraints.gridx = 0;\n\t\tconstraints.gridy = 3;\n\t\tadd(labelPass, constraints);\n\t\tfieldPass = new JPasswordField(30);\n\t\tfieldPass.setText(DataStore.getInstance().getConfig().getpWrd());\n\t\tfieldPass.setEchoChar('*');\n\t\tconstraints.gridx = 1;\n\t\tconstraints.fill = GridBagConstraints.HORIZONTAL;\n\t\tadd(fieldPass, constraints);\n\t\t\n\t\tJPanel buttonPanel = new JPanel();\n\t\tsaveButton = new ConfigSave(al, med, this);\n\t\tsaveButton.setFont(new Font(\"Arial\", Font.BOLD, 16));\n\t\tconstraints.gridx = 0;\n\t\tconstraints.gridy = 4;\n\t\tconstraints.gridheight = 2;\n\t\tconstraints.gridwidth = 2;\n\t\t\n\t\tbuttonPanel.add(saveButton);\n\t\t\n\t\tcancelButton = new CancelButton(al, med, this);\n\t\tcancelButton.setFont(new Font(\"ariel\", Font.BOLD, 14));\n\t\tconstraints.gridx = 0;\n\t\tconstraints.gridy = 4;\n\t\tconstraints.gridwidth = 2;\n\t\tconstraints.gridheight = 2;\n\t\tbuttonPanel.add(cancelButton);\n\t\t\n\t\tadd(buttonPanel, constraints);\n\t}", "private void init(){\n\t\tbtn.setLabel(name);\n\t\tlbl.setText(\"\"+price+\" C\");\n\t\t\n\t\tlbl.setBackground(Color.lightGray);\n\t\tlbl.setFocusable(false);\n\t\tlbl.setPreferredSize(new Dimension(50,24));\n\t\tsetLayout(new GridBagLayout());\n\t\tadd(btn,new GridBagConstraints(0,0,1,1,1.0,0.0,\n\t\t\t GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL,\n\t\t\t new Insets(5,10,0,0),10,4));\n\t\tadd(lbl,new GridBagConstraints(1,0,1,1,0.0,0.0,\n\t\t\t GridBagConstraints.CENTER,GridBagConstraints.NONE,\n\t\t\t new Insets(5,15,0,0),50,0));\n\t\tadd(wnd,new GridBagConstraints(2,0,1,1,0.0,0.0,\n\t\t\t GridBagConstraints.WEST,GridBagConstraints.NONE,\n\t\t\t new Insets(5,4,0,0),10,0));\n\t}", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "private void $$$setupUI$$$() {\r\n EmployerPanel = new JPanel();\r\n EmployerPanel.setLayout(new GridLayoutManager(7, 5, new Insets(10, 10, 10, 10), -1, -1));\r\n saveButton = new JButton();\r\n saveButton.setBackground(new Color(-13793741));\r\n saveButton.setForeground(new Color(-2631721));\r\n saveButton.setIcon(new ImageIcon(getClass().getResource(\"/com/sun/deploy/resources/image/installapp24-d.png\")));\r\n saveButton.setText(\"Save\");\r\n EmployerPanel.add(saveButton, new GridConstraints(6, 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));\r\n final Spacer spacer1 = new Spacer();\r\n EmployerPanel.add(spacer1, new GridConstraints(6, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final Spacer spacer2 = new Spacer();\r\n EmployerPanel.add(spacer2, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n cancelButton = new JButton();\r\n cancelButton.setBackground(new Color(-5621447));\r\n cancelButton.setForeground(new Color(-2631721));\r\n cancelButton.setIcon(new ImageIcon(getClass().getResource(\"/com/sun/deploy/resources/image/delete24-d.png\")));\r\n cancelButton.setText(\"Cancel\");\r\n EmployerPanel.add(cancelButton, new GridConstraints(6, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"Name:\");\r\n EmployerPanel.add(label1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label2 = new JLabel();\r\n label2.setText(\"Last name:\");\r\n EmployerPanel.add(label2, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label3 = new JLabel();\r\n label3.setText(\"IC:\");\r\n EmployerPanel.add(label3, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label4 = new JLabel();\r\n label4.setText(\"Phone:\");\r\n EmployerPanel.add(label4, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n NametextField = new JTextField();\r\n EmployerPanel.add(NametextField, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n LNametextField = new JTextField();\r\n EmployerPanel.add(LNametextField, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n ICtextField = new JTextField();\r\n EmployerPanel.add(ICtextField, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n PhonetextField = new JTextField();\r\n EmployerPanel.add(PhonetextField, new GridConstraints(4, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n final Spacer spacer3 = new Spacer();\r\n EmployerPanel.add(spacer3, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer4 = new Spacer();\r\n EmployerPanel.add(spacer4, new GridConstraints(6, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer5 = new Spacer();\r\n EmployerPanel.add(spacer5, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n }", "private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n jScrollPane1 = new javax.swing.JScrollPane();\n headerTable = new javax.swing.JTable();\n buttonPanel = new javax.swing.JPanel();\n insertButton = new javax.swing.JButton();\n deleteButton = new javax.swing.JButton();\n\n setLayout(new java.awt.GridBagLayout());\n\n setPreferredSize(new java.awt.Dimension(402, 50));\n jScrollPane1.setMinimumSize(new java.awt.Dimension(200, 50));\n headerTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_ALL_COLUMNS);\n jScrollPane1.setViewportView(headerTable);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n add(jScrollPane1, gridBagConstraints);\n\n buttonPanel.setLayout(new java.awt.GridBagLayout());\n\n insertButton.setText(\"Insert\");\n insertButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n insertButtonActionPerformed(evt);\n }\n });\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTH;\n buttonPanel.add(insertButton, gridBagConstraints);\n\n deleteButton.setText(\"Delete\");\n deleteButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteButtonActionPerformed(evt);\n }\n });\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;\n buttonPanel.add(deleteButton, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;\n add(buttonPanel, gridBagConstraints);\n\n }", "private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}", "public Tests () {\r\n\t // Set up display panel\r\n\t Panel panelDisplay = new Panel(new FlowLayout());\r\n\t tfDisplay = new TextField(\"0\", 10);\r\n\t text = new Label(\"Questionnaire CLAN\");\r\n\t panelDisplay.add(text);\r\n\t Color c = new Color(51, 165, 156);\r\n\t Dimension d = new Dimension(180,180);\r\n\t //GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\r\n\t //ge.getAllFonts();\r\n\t Font myFont = new Font(\"Arial\", Font.BOLD, 15);\r\n\t \r\n\t addWindowListener(new WindowAdapter(){ \r\n\t public void windowClosing(WindowEvent e) { \r\n\t dispose(); \r\n\t } \r\n\t }); \r\n\t \r\n\t // Set up button panel\r\n\t Panel panelButtons = new Panel(new GridLayout(2, 2, 20, 20));\r\n\t btns = new Button[4]; // Construct an array of 10 numeric Buttons\r\n\t btns[0] = new Button(\"Create a Test\"); // Construct Button \"1\"\r\n\t panelButtons.add(btns[0]); // The Panel adds this Button\r\n\t btns[1] = new Button(\"Create a Survey\");\r\n\t panelButtons.add(btns[1]);\r\n\t btns[2] = new Button(\"Take a Test/Survey\");\r\n\t panelButtons.add(btns[2]);\r\n\t btns[3] = new Button(\"View my Tests/Surveys\");\r\n\t panelButtons.add(btns[3]);\r\n\t \r\n\t for(int i=0; i<btns.length; i++){\r\n\t \t btns[i].setPreferredSize(d);\r\n\t\t btns[i].setBackground(c);\r\n\t\t btns[i].setFont(myFont);\r\n\t }\t \r\n\t \r\n\t setLayout(new BorderLayout()); // \"super\" Frame sets to BorderLayout\r\n\t add(panelDisplay, BorderLayout.NORTH);\r\n\t add(panelButtons, BorderLayout.SOUTH);\r\n\t \r\n\t setTitle(\"BorderLayout Demo\"); // \"super\" Frame sets title\r\n\t //setSize(500, 500); // \"super\" Frame sets initial size\r\n\t pack();\r\n\t setVisible(true); // \"super\" Frame shows\r\n\t }" ]
[ "0.6836872", "0.6589898", "0.6559033", "0.65484947", "0.65200526", "0.6479848", "0.6477054", "0.64206606", "0.6416116", "0.64154255", "0.63921666", "0.6382986", "0.6354983", "0.63423336", "0.63407266", "0.63260347", "0.6307299", "0.6306208", "0.62774163", "0.626904", "0.6266827", "0.626677", "0.6263133", "0.625865", "0.62578094", "0.6236511", "0.6229449", "0.6201853", "0.6201174", "0.62006426", "0.61908174", "0.61834764", "0.6181748", "0.61633325", "0.6162599", "0.6153296", "0.61528856", "0.6146039", "0.6143908", "0.61438745", "0.6141304", "0.6140885", "0.6134877", "0.61160916", "0.61118126", "0.61072093", "0.6088311", "0.606506", "0.6061947", "0.6054505", "0.60471624", "0.60437787", "0.6031762", "0.6025375", "0.6017395", "0.600906", "0.5998685", "0.59948206", "0.5982693", "0.59739155", "0.59731686", "0.59710693", "0.59575886", "0.5949126", "0.59475505", "0.5939106", "0.5936247", "0.59337574", "0.5929911", "0.59270585", "0.592229", "0.5894928", "0.589419", "0.589289", "0.5889956", "0.5886322", "0.58821076", "0.58806324", "0.5880243", "0.58705896", "0.58678067", "0.58672255", "0.5861784", "0.5861643", "0.5855143", "0.5854914", "0.58517265", "0.58428043", "0.5833663", "0.5821207", "0.5820806", "0.5812689", "0.5811202", "0.5809507", "0.5807948", "0.58026475", "0.5801006", "0.579796", "0.57921124", "0.5788172", "0.5786846" ]
0.0
-1
Establish a couple connections with the service, binding by interface names, This allows other applications to be installed the replace the remote service by implementing the same interface
@Override public void onClick(View v) { Intent intent = new Intent(Server.this, RemoteService.class); // bind the same interface name intent.setAction(IRemoteService.class.getName()); bindService(intent, mConnection, Context.BIND_AUTO_CREATE); intent.setAction(ISecondary.class.getName()); bindService(intent, mSecondaryConnection, Context.BIND_AUTO_CREATE); mIsBound = true; mCallbackText.setText("Binding the Remote Service"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void connect() { \t\n \tbindService(IChatService.class, apiConnection);\n }", "public void connectWarehouses(){\n//\t\tWarehouseInterface wh1 = new WareHouseImpl(\"wh1\");\n//\n//\t\tWarehouseInterface wh2 = new WareHouseImpl(\"wh2\");\n//\t\twarehouseList.add(wh1);\n//\t\twarehouseList.add(wh2);\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tSystem.out.print(\"Please input the port number of the warehouse service to establish connection (q to finish):\");\n\t\t\t\n\t\t\tString port = in.nextLine();\n\t\t\tif(port.equals(\"q\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tString urlStr = \"http://localhost:\" + port + \"/ws/warehouse?wsdl\";\n\t\t\t\ttry {\n\t\t\t\t\tURL url = new URL(urlStr);\n\t\t\t\t\tQName qname = new QName(\"http://warehouse/\", \"WarehouseImplService\");\n\t\t\t\t\tWarehouseInterface warehouse;\n\t\t\t\t\tService service = Service.create(url, qname);\n\t\t\t\t\twarehouse = service.getPort(WarehouseInterface.class);\n\t\t\t\t\tSystem.out.println(\"Obtained a handle on server object: \" + warehouse.getName());\n\t\t\t\t\twarehouseList.add(warehouse);\n\t\t\t\t}catch (MalformedURLException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t//System.out.println(\"Failed to access the WSDL at:\" + urlStr);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\tin.close();\n\t}", "public static void main(String[] args) {\n\n try {\n MyRemote service = new MyRemoteImp1();\n Naming.rebind(\"Remote Hello\", service);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public interface IConnectService {\n\n\n}", "public interface InitConnectionService {\n void initConnection();\n\n void destroyConnection();\n\n void freeConnection();\n}", "public interface Provider {\n //Connection connect(String url, java.util.Properties info)\n Service newService();\n}", "public void connect() {\n try {\n // ghetto hardcode the parameters\n ORB orb = ORB.init(new String[]{\"-ORBInitialHost\", \"localhost\", \"-ORBInitialPort\", \"8989\"}, null);\n\n org.omg.CORBA.Object objRef = orb.resolve_initial_references(\"NameService\");\n NamingContext ncRef = NamingContextHelper.narrow(objRef);\n\n NameComponent nc = new NameComponent(station, \"\");\n NameComponent path[] = {nc};\n instance = StationInterfaceHelper.narrow(ncRef.resolve(path));\n\n this.log.log(\"Connected!\");\n } catch (Exception ex) {\n log.log(ex.toString() + ex.getMessage());\n }\n }", "@Override\n public void connecterFibreOptique() throws ConnecteurException, RemoteException, MalformedURLException, NotBoundException {\n Naming.rebind(url, (ConnecteurRemoteInterface) this);\n \n // Enregistrement de tous les autres connecteurs\n // et notification a tous les autres connecteurs\n for (String name : Naming.list(\"rmi://localhost:1099/\")) {\n name = \"rmi:\" + name;\n if (!name.equals(url)) {\n Remote o = Naming.lookup(name);\n if (o instanceof ConnecteurRemoteInterface) {\n // Enregistrement du connecteur courant\n System.out.println(url + \": \\tEnregistrement auprès de \" + name);\n ((ConnecteurRemoteInterface) o).enregistrerConnecteur(url, controleurUrl);\n // Enregistrement d'un connecteur distant\n enregistrerConnecteur(name, (ConnecteurRemoteInterface) o);\n }\n else if (o instanceof PrismeRemoteInterface) {\n if (prisme == null) {\n this.prismeUrl = name;\n prisme = (PrismeRemoteInterface) o;\n prisme.enregisterConnecteur(url);\n }\n else {\n throw new ConnecteurException(\"Plusieurs prismes semblent exister.\");\n }\n }\n }\n }\n connecteur.connecter();\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 bind(String name, Remote ref) throws RemoteException, AlreadyBoundException;", "public interface ServerIF extends RemoteIF{\n void RegisterClient(ClientIF client) throws RemoteException;\n void WelcomeScreen() throws RemoteException;\n ArrayList<ClientIF> getClients() throws RemoteException;\n}", "public abstract void connectSystem();", "public static void main(String[] args){\n try{\n // El servidor se registra en RMI\n IP = args[0];\n IPBroker = args[1];\n\n Registry registryA = LocateRegistry.getRegistry();\n\n ServerAInterface sA = new ServerA();\n\n ServerAInterface stub = (ServerAInterface) UnicastRemoteObject.exportObject(sA,0);\n\n System.setProperty(\"java.rmi.server.hostname\",IP);\n registryA.rebind(\"//\"+IP+\":ServerA\",stub);\n System.out.println(\"Servidor A registrado correctamente.\");\n\n // Obtenemos el Broker\n Registry registry = LocateRegistry.getRegistry(IPBroker);\n ServicesBrokerInterface s = (ServicesBrokerInterface) registry.lookup(\"//\"+IPBroker+\":ServicesBroker\");\n\t\n Scanner teclado = new Scanner(System.in);\n boolean finalizar = false;\n String entrada = \"\";\n\t\t\t\n while (!finalizar) {\n System.out.println(\"\\n--------------------------------------\\n\");\n System.out.println(\"LISTA DE SERVICIOS DEL SERVIDOR B:\\n\" +\n \" - Nombre: introducir_libro; Parametros: String nombreLibro; Return: Void \\n\" +\n \" - Nombre: lista_libros; Parametros: none; Return: ArrayList<String> \\n\");\n\n System.out.println(\"¿Que desea hacer? \\n\"+\n \" 1 - Introducir libro\\n\"+\n \" 2 - Obtener lista de libros\\n\");\n System.out.print(\"Accion: \");\n entrada = teclado.nextLine();\n\n if (entrada.equals(\"1\")) {\n System.out.println(\"Introduzca el titulo del libro que desea almacenar:\");\n System.out.print(\"Titulo:\");\n entrada = teclado.nextLine();\n System.out.println(s.ejecutar_servicio(\"introducir_libro\", entrada));\n } else if (entrada.equals(\"2\")) {\n System.out.println(s.ejecutar_servicio(\"lista_libros\",\"\"));\n } else System.out.println(\"Accion no existente.\");\n }\n\n }catch (RemoteException e){\n System.out.println(e);\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Es necesario pasar como parametro la IP del servidor donde se hostea el registro RMI y la IP del Broker.\");\n } catch (NotBoundException e) {\n e.printStackTrace();\n }\n }", "public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}", "public interface FingerService extends Remote {\n\n String connectedUsers() throws RemoteException;\n}", "public interface OnServiceConnectionListener {\n}", "public interface RMIInterface extends Remote {\n\n public String helloTo(String name) throws RemoteException;\n\n}", "public interface InterfaceService\n extends ListenerService<InterfaceEvent, InterfaceListener> {\n\n /**\n * Returns the set of all interfaces in the system.\n *\n * @return set of interfaces\n */\n Set<Interface> getInterfaces();\n\n /**\n * Returns the interface with the given name.\n *\n * @param connectPoint connect point of the interface\n * @param name name of the interface\n * @return interface if it exists, otherwise null\n */\n Interface getInterfaceByName(ConnectPoint connectPoint, String name);\n\n /**\n * Returns the set of interfaces configured on the given port.\n *\n * @param port connect point\n * @return set of interfaces\n */\n Set<Interface> getInterfacesByPort(ConnectPoint port);\n\n /**\n * Returns the set of interfaces with the given IP address.\n *\n * @param ip IP address\n * @return set of interfaces\n */\n Set<Interface> getInterfacesByIp(IpAddress ip);\n\n /**\n * Returns the set of interfaces in the given VLAN.\n *\n * @param vlan VLAN ID of the interfaces\n * @return set of interfaces\n */\n Set<Interface> getInterfacesByVlan(VlanId vlan);\n\n /**\n * Returns an interface that has an address that is in the same subnet as\n * the given IP address.\n *\n * @param ip IP address to find matching subnet interface for\n * @return interface\n */\n Interface getMatchingInterface(IpAddress ip);\n\n /**\n * Returns all interfaces that have an address that is in the same\n * subnet as the given IP address.\n *\n * @param ip IP address to find matching subnet interface for\n * @return a set of interfaces\n */\n Set<Interface> getMatchingInterfaces(IpAddress ip);\n\n /**\n * Returns untagged VLAN configured on given connect point.\n * <p>\n * Only returns the first match if there are multiple untagged VLAN configured\n * on the connect point.\n *\n * @param connectPoint connect point\n * @return untagged VLAN or null if not configured\n */\n default VlanId getUntaggedVlanId(ConnectPoint connectPoint) {\n return null;\n }\n\n /**\n * Returns tagged VLAN configured on given connect point.\n * <p>\n * Returns all matches if there are multiple tagged VLAN configured\n * on the connect point.\n *\n * @param connectPoint connect point\n * @return tagged VLAN or empty set if not configured\n */\n default Set<VlanId> getTaggedVlanId(ConnectPoint connectPoint) {\n return ImmutableSet.of();\n }\n\n /**\n * Returns native VLAN configured on given connect point.\n * <p>\n * Only returns the first match if there are multiple native VLAN configured\n * on the connect point.\n *\n * @param connectPoint connect point\n * @return native VLAN or null if not configured\n */\n default VlanId getNativeVlanId(ConnectPoint connectPoint) {\n return null;\n }\n\n /**\n * Returns true if given connectPoint has an IP address or vlan configured\n * on any of its interfaces.\n *\n * @param connectPoint the port on a device\n * @return true if connectpoint has a configured interface\n */\n default boolean isConfigured(ConnectPoint connectPoint) {\n throw new NotImplementedException(\"isConfigured is not implemented\");\n }\n\n /**\n * Returns true if given vlanId is in use due to configuration on any of the\n * interfaces in the system.\n *\n * @param vlanId the vlan id being queried\n * @return true if vlan is configured on any interface\n */\n default boolean inUse(VlanId vlanId) {\n throw new NotImplementedException(\"isConfigured is not implemented\");\n }\n}", "private void connectToNotary() throws RemoteException, InvalidSignatureException {\n\t\tfor (String notaryID : notaryServers.keySet()) {\n\t\t\tNotaryInterface notary = notaryServers.get(notaryID);\n\n\t\t\tString cnonce = cryptoUtils.generateCNonce();\n\t\t\tString toSign = notary.getNonce(this.id) + cnonce + this.id;\n\t\t\tX509Certificate res = notary\n\t\t\t\t.connectToNotary(this.id, cnonce, cryptoUtils.getStoredCert(),\n\t\t\t\t\tcryptoUtils.signMessage(toSign));\n\n\t\t\tcryptoUtils.addCertToList(notaryID, res);\n\t\t}\n\t}", "public synchronized void bindService(BehaviourInferenceAlgorithmRegistry registry) {\n \tthis.registry = registry;\n logger.info(\"BehaviourInferenceAlgorithmRegistry service connected.\");\n }", "private void establishConnection() {\n\n try {\n\n for(Clone clone:this.clones){\n ClearConnection connection = new ClearConnection();\n connection.connect(clone.getIp(), clone.getOffloadingPort(), 5 * 1000);\n this.connections.add(connection);\n }\n\n this.protocol = new ERAMProtocol();\n this.ode = new ERAMode();\n\n } catch (Exception e) {\n Log.e(TAG,\"Connection setup with the Remote Server failed - \" + e);\n }\n }", "public interface RemoteDBConnection extends Remote, DBConnection {\n\n\t/**\n\t * Key the database connection in registered with in RMI registry.\n\t */\n\tpublic static final String REGISTRY_KEY = \"DBConnection\";\n}", "public static void main(String args[]) {\n try {\n //Cria HelloImpl\n //Runtime.getRuntime().exec(\"rmiregistry 1010\");\n //Registry registry = LocateRegistry.getRegistry(2001);\n \tSystem.setProperty(\"java.rmi.server.hostname\",\"192.168.0.30\");\n Registry registry = LocateRegistry.createRegistry(2001);\n Implementation obj = new Implementation();\n registry.bind(\"HelloServer\", obj);\n System.out.println(\"Hello Server pronto.\");\n } catch (Exception e) {\n System.out.println(\"HelloServer erro \" + e.getMessage());\n }\n }", "public void bind(Interface i) {\n\t\t_interface = i;\n\t}", "public void connect() throws RemoteException, NotBoundException {\n\t\t//RMI starten & Binden\n\t\tRegistry registry = null;\n\t\tregistry = LocateRegistry.getRegistry(\"127.0.0.1\", Constant.RMI_PORT);\n\t\tserver = (ServerInterface) registry.lookup(Constant.RMI_ID);\n\t\tserver.login(client);\n\t\tSystem.out.println(\"[DEBUG] Spielernummer: \" + spielerNummer);\n\t\t//Mehr als 2 Spieler sind nicht zulaessig\n\t\tif(spielerNummer==-1) {\n\t\t\tSystem.out.println(\"[DEBUG] ungueltige Spielernummer!\");\n\t\t\tSystem.out.println(\"[DEBUG] Gute Nacht :(\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t}", "void connectServiceUnknownThread() {\n mMainHandler.post(() -> {\n try {\n final IAccessibilityServiceClient serviceInterface;\n final IBinder service;\n synchronized (mLock) {\n serviceInterface = mServiceInterface;\n mService = (serviceInterface == null) ? null : mServiceInterface.asBinder();\n service = mService;\n }\n // If the serviceInterface is null, the UiAutomation has been shut down on\n // another thread.\n if (serviceInterface != null) {\n service.linkToDeath(this, 0);\n serviceInterface.init(this, mId, mOverlayWindowToken);\n }\n } catch (RemoteException re) {\n Slog.w(LOG_TAG, \"Error initialized connection\", re);\n destroyUiAutomationService();\n }\n });\n }", "public void launch(int port) {\n try {\n Registry registry = LocateRegistry.createRegistry( port );\n\n EchoService service = new ReversedEchoServiceImpl();\n EchoService stub = (EchoService) UnicastRemoteObject.exportObject(service, 0);\n\n registry.bind(\"com.anotheria.strel.rmi.EchoService\", stub);\n\n log.info(String.format(\"Service is now accessible on port %d with name com.anotheria.strel.rmi.EchoService\", port));\n }\n catch (RemoteException ex) {\n log.fatal(\"Remote Exception: \" + ex.getMessage());\n }\n catch (AlreadyBoundException ex) {\n log.fatal(\"Echo service is already bound with given name: \" + ex.getMessage());\n }\n }", "@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n ConnectionService.ConnectionBinder binder = (ConnectionService.ConnectionBinder) service;\n mService = binder.getService();\n mBound = true;\n }", "@Activate\n public void activate(final BundleContext context) throws IOException\n {\n // set port, use default if not set\n int serverPort = DEFAULT_PORT;\n \n // set SSL flag, use default if not set\n boolean enableSsl = false;\n \n if (context.getProperty(PORT_PROP_KEY) != null)\n {\n serverPort = Integer.parseInt(context.getProperty(PORT_PROP_KEY));\n }\n \n if (context.getProperty(SSL_PROP_KEY) != null)\n {\n enableSsl = Boolean.parseBoolean(context.getProperty(SSL_PROP_KEY));\n }\n\n m_ServerSocket = m_ServerSocketFactory.createServerSocket(serverPort, enableSsl);\n\n m_Logging.info(\"Server socket listening on port %d for remote messages\", m_ServerSocket.getLocalPort());\n \n m_ServerSocketThread = new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n //run until the socket is closed\n while (true)\n {\n try\n {\n final Socket socket = m_ServerSocket.accept(); // NOFORTIFY: unreleased resource:\n //resources are managed by the remote channel lookup\n m_Logging.info(\"Connection made from %s for remote interface\", \n socket.getRemoteSocketAddress());\n \n m_RemoteChannelLookup.newServerSocketChannel(socket);\n }\n catch (final IOException e)\n {\n if (m_ServerSocket.isClosed())\n {\n m_Logging.info(\"Server socket has been closed, will stop accepting connections\");\n return;\n }\n }\n }\n }\n });\n \n m_ServerSocketThread.setName(\"RemoteInterfaceServerSocket\");\n m_ServerSocketThread.start();\n }", "private void initBinding() throws IOException {\n serverSocketChannel.bind(new InetSocketAddress(0));\n serverSocketChannel.configureBlocking(false);\n serverSocketChannel.register(selector, SelectionKey.OP_ACCEPT);\n\n sc.configureBlocking(false);\n var key = sc.register(selector, SelectionKey.OP_CONNECT);\n uniqueContext = new ClientContext(key, this);\n key.attach(uniqueContext);\n sc.connect(serverAddress);\n }", "@Override\n public void onServiceConnected(ComponentName componentName, IBinder iBinder) {\n remoteServiceMethodSolver = IRemoteServiceMethod.Stub.asInterface(iBinder);\n Log.d(\"BindLog\", \"bind远程服务连接已成功,并获取了代理\");\n }", "public void acceptConnection(SystemServiceConnection connection);", "public interface IMountService extends IInterface {\n /** Local-side IPC implementation stub class. */\n public static abstract class Stub extends Binder implements IMountService {\n private static class Proxy implements IMountService {\n private final IBinder mRemote;\n\n Proxy(IBinder remote) {\n mRemote = remote;\n }\n\n public IBinder asBinder() {\n return mRemote;\n }\n\n public String getInterfaceDescriptor() {\n return DESCRIPTOR;\n }\n\n /**\n * Registers an IMountServiceListener for receiving async\n * notifications.\n */\n 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 }\n\n /**\n * Unregisters an IMountServiceListener\n */\n public void unregisterListener(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_unregisterListener, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Returns true if a USB mass storage host is connected\n */\n public boolean isUsbMassStorageConnected() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isUsbMassStorageConnected, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Enables / disables USB mass storage. The caller should check\n * actual status of enabling/disabling USB mass storage via\n * StorageEventListener.\n */\n public void setUsbMassStorageEnabled(boolean enable) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt((enable ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_setUsbMassStorageEnabled, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Returns true if a USB mass storage host is enabled (media is\n * shared)\n */\n public boolean isUsbMassStorageEnabled() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isUsbMassStorageEnabled, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Mount external storage at given mount point. Returns an int\n * consistent with MountServiceResultCode\n */\n public int mountVolume(String mountPoint) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n mRemote.transact(Stub.TRANSACTION_mountVolume, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Safely unmount external storage at given mount point. The unmount\n * is an asynchronous operation. Applications should register\n * StorageEventListener for storage related status changes.\n */\n public void unmountVolume(String mountPoint, boolean force, boolean removeEncryption)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n _data.writeInt((force ? 1 : 0));\n _data.writeInt((removeEncryption ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_unmountVolume, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Format external storage given a mount point. Returns an int\n * consistent with MountServiceResultCode\n */\n public int formatVolume(String mountPoint) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n mRemote.transact(Stub.TRANSACTION_formatVolume, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Returns an array of pids with open files on the specified path.\n */\n public int[] getStorageUsers(String path) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(path);\n mRemote.transact(Stub.TRANSACTION_getStorageUsers, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createIntArray();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Gets the state of a volume via its mountpoint.\n */\n public String getVolumeState(String mountPoint) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(mountPoint);\n mRemote.transact(Stub.TRANSACTION_getVolumeState, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Creates a secure container with the specified parameters. Returns\n * an int consistent with MountServiceResultCode\n */\n public int createSecureContainer(String id, int sizeMb, String fstype, String key,\n int ownerUid, boolean external) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(sizeMb);\n _data.writeString(fstype);\n _data.writeString(key);\n _data.writeInt(ownerUid);\n _data.writeInt(external ? 1 : 0);\n mRemote.transact(Stub.TRANSACTION_createSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Destroy a secure container, and free up all resources associated\n * with it. NOTE: Ensure all references are released prior to\n * deleting. Returns an int consistent with MountServiceResultCode\n */\n public int destroySecureContainer(String id, boolean force) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt((force ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_destroySecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Finalize a container which has just been created and populated.\n * After finalization, the container is immutable. Returns an int\n * consistent with MountServiceResultCode\n */\n public int finalizeSecureContainer(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_finalizeSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Mount a secure container with the specified key and owner UID.\n * Returns an int consistent with MountServiceResultCode\n */\n public int mountSecureContainer(String id, String key, int ownerUid, boolean readOnly)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeString(key);\n _data.writeInt(ownerUid);\n _data.writeInt(readOnly ? 1 : 0);\n mRemote.transact(Stub.TRANSACTION_mountSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Unount a secure container. Returns an int consistent with\n * MountServiceResultCode\n */\n public int unmountSecureContainer(String id, boolean force) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt((force ? 1 : 0));\n mRemote.transact(Stub.TRANSACTION_unmountSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Returns true if the specified container is mounted\n */\n public boolean isSecureContainerMounted(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_isSecureContainerMounted, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Rename an unmounted secure container. Returns an int consistent\n * with MountServiceResultCode\n */\n public int renameSecureContainer(String oldId, String newId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(oldId);\n _data.writeString(newId);\n mRemote.transact(Stub.TRANSACTION_renameSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Returns the filesystem path of a mounted secure container.\n */\n public String getSecureContainerPath(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Gets an Array of currently known secure container IDs\n */\n public String[] getSecureContainerList() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerList, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createStringArray();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Shuts down the MountService and gracefully unmounts all external\n * media. Invokes call back once the shutdown is complete.\n */\n public void shutdown(IMountShutdownObserver observer)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeStrongBinder((observer != null ? observer.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_shutdown, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Call into MountService by PackageManager to notify that its done\n * processing the media status update request.\n */\n public void finishMediaUpdate() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_finishMediaUpdate, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Mounts an Opaque Binary Blob (OBB) with the specified decryption\n * key and only allows the calling process's UID access to the\n * contents. MountService will call back to the supplied\n * IObbActionListener to inform it of the terminal state of the\n * call.\n */\n public void mountObb(String rawPath, String canonicalPath, String key,\n IObbActionListener token, int nonce) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n _data.writeString(canonicalPath);\n _data.writeString(key);\n _data.writeStrongBinder((token != null ? token.asBinder() : null));\n _data.writeInt(nonce);\n mRemote.transact(Stub.TRANSACTION_mountObb, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Unmounts an Opaque Binary Blob (OBB). When the force flag is\n * specified, any program using it will be forcibly killed to\n * unmount the image. MountService will call back to the supplied\n * IObbActionListener to inform it of the terminal state of the\n * call.\n */\n public void unmountObb(\n String rawPath, boolean force, IObbActionListener token, int nonce)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n _data.writeInt((force ? 1 : 0));\n _data.writeStrongBinder((token != null ? token.asBinder() : null));\n _data.writeInt(nonce);\n mRemote.transact(Stub.TRANSACTION_unmountObb, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n /**\n * Checks whether the specified Opaque Binary Blob (OBB) is mounted\n * somewhere.\n */\n public boolean isObbMounted(String rawPath) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n mRemote.transact(Stub.TRANSACTION_isObbMounted, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Gets the path to the mounted Opaque Binary Blob (OBB).\n */\n public String getMountedObbPath(String rawPath) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n mRemote.transact(Stub.TRANSACTION_getMountedObbPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Returns whether the external storage is emulated.\n */\n public boolean isExternalStorageEmulated() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isExternalStorageEmulated, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int getEncryptionState() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getEncryptionState, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int decryptStorage(String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_decryptStorage, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int encryptStorage(int type, String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(type);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_encryptStorage, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int changeEncryptionPassword(int type, String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(type);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_changeEncryptionPassword, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public int verifyEncryptionPassword(String password) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(password);\n mRemote.transact(Stub.TRANSACTION_verifyEncryptionPassword, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public int getPasswordType() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getPasswordType, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public String getPassword() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getPassword, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public void clearPassword() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_clearPassword, _data, _reply, IBinder.FLAG_ONEWAY);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n public void setField(String field, String data) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(field);\n _data.writeString(data);\n mRemote.transact(Stub.TRANSACTION_setField, _data, _reply, IBinder.FLAG_ONEWAY);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n public String getField(String field) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(field);\n mRemote.transact(Stub.TRANSACTION_getField, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public boolean isConvertibleToFBE() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isConvertibleToFBE, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt() != 0;\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n public StorageVolume[] getVolumeList(int uid, String packageName, int flags)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n StorageVolume[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(uid);\n _data.writeString(packageName);\n _data.writeInt(flags);\n mRemote.transact(Stub.TRANSACTION_getVolumeList, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(StorageVolume.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /*\n * Returns the filesystem path of a mounted secure container.\n */\n public String getSecureContainerFilesystemPath(String id) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n mRemote.transact(Stub.TRANSACTION_getSecureContainerFilesystemPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n /**\n * Fix permissions in a container which has just been created and\n * populated. Returns an int consistent with MountServiceResultCode\n */\n public int fixPermissionsSecureContainer(String id, int gid, String filename)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(gid);\n _data.writeString(filename);\n mRemote.transact(Stub.TRANSACTION_fixPermissionsSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public int mkdirs(String callingPkg, String path) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(callingPkg);\n _data.writeString(path);\n mRemote.transact(Stub.TRANSACTION_mkdirs, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public int resizeSecureContainer(String id, int sizeMb, String key)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(id);\n _data.writeInt(sizeMb);\n _data.writeString(key);\n mRemote.transact(Stub.TRANSACTION_resizeSecureContainer, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public long lastMaintenance() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n long _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_lastMaintenance, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readLong();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void runMaintenance() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_runMaintenance, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return;\n }\n\n @Override\n public void waitForAsecScan() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_waitForAsecScan, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return;\n }\n\n @Override\n public DiskInfo[] getDisks() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n DiskInfo[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getDisks, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(DiskInfo.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public VolumeInfo[] getVolumes(int _flags) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n VolumeInfo[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(_flags);\n mRemote.transact(Stub.TRANSACTION_getVolumes, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(VolumeInfo.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public VolumeRecord[] getVolumeRecords(int _flags) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n VolumeRecord[] _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(_flags);\n mRemote.transact(Stub.TRANSACTION_getVolumeRecords, _data, _reply, 0);\n _reply.readException();\n _result = _reply.createTypedArray(VolumeRecord.CREATOR);\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void mount(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_mount, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void unmount(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_unmount, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void format(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_format, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public long benchmark(String volId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volId);\n mRemote.transact(Stub.TRANSACTION_benchmark, _data, _reply, 0);\n _reply.readException();\n return _reply.readLong();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void partitionPublic(String diskId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(diskId);\n mRemote.transact(Stub.TRANSACTION_partitionPublic, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void partitionPrivate(String diskId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(diskId);\n mRemote.transact(Stub.TRANSACTION_partitionPrivate, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void partitionMixed(String diskId, int ratio) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(diskId);\n _data.writeInt(ratio);\n mRemote.transact(Stub.TRANSACTION_partitionMixed, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void setVolumeNickname(String fsUuid, String nickname) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(fsUuid);\n _data.writeString(nickname);\n mRemote.transact(Stub.TRANSACTION_setVolumeNickname, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void setVolumeUserFlags(String fsUuid, int flags, int mask) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(fsUuid);\n _data.writeInt(flags);\n _data.writeInt(mask);\n mRemote.transact(Stub.TRANSACTION_setVolumeUserFlags, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void forgetVolume(String fsUuid) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(fsUuid);\n mRemote.transact(Stub.TRANSACTION_forgetVolume, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void forgetAllVolumes() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_forgetAllVolumes, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void setDebugFlags(int _flags, int _mask) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(_flags);\n _data.writeInt(_mask);\n mRemote.transact(Stub.TRANSACTION_setDebugFlags, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public String getPrimaryStorageUuid() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_getPrimaryStorageUuid, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volumeUuid);\n _data.writeStrongBinder((callback != null ? callback.asBinder() : null));\n mRemote.transact(Stub.TRANSACTION_setPrimaryStorageUuid, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void createUserKey(int userId, int serialNumber, boolean ephemeral)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeInt(ephemeral ? 1 : 0);\n mRemote.transact(Stub.TRANSACTION_createUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void destroyUserKey(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_destroyUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void addUserKeyAuth(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeByteArray(token);\n _data.writeByteArray(secret);\n mRemote.transact(Stub.TRANSACTION_addUserKeyAuth, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void fixateNewestUserKeyAuth(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_fixateNewestUserKeyAuth, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void unlockUserKey(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeByteArray(token);\n _data.writeByteArray(secret);\n mRemote.transact(Stub.TRANSACTION_unlockUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void lockUserKey(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_lockUserKey, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public boolean isUserKeyUnlocked(int userId) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeInt(userId);\n mRemote.transact(Stub.TRANSACTION_isUserKeyUnlocked, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n\n @Override\n public void prepareUserStorage(\n String volumeUuid, int userId, int serialNumber, int flags)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volumeUuid);\n _data.writeInt(userId);\n _data.writeInt(serialNumber);\n _data.writeInt(flags);\n mRemote.transact(Stub.TRANSACTION_prepareUserStorage, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public void destroyUserStorage(String volumeUuid, int userId, int flags)\n throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(volumeUuid);\n _data.writeInt(userId);\n _data.writeInt(flags);\n mRemote.transact(Stub.TRANSACTION_destroyUserStorage, _data, _reply, 0);\n _reply.readException();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n }\n\n @Override\n public ParcelFileDescriptor mountAppFuse(String name) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n ParcelFileDescriptor _result = null;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(name);\n mRemote.transact(Stub.TRANSACTION_mountAppFuse, _data, _reply, 0);\n _reply.readException();\n _result = _reply.<ParcelFileDescriptor>readParcelable(\n ClassLoader.getSystemClassLoader());\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }\n }\n\n private static final String DESCRIPTOR = \"IMountService\";\n\n static final int TRANSACTION_registerListener = IBinder.FIRST_CALL_TRANSACTION + 0;\n\n static final int TRANSACTION_unregisterListener = IBinder.FIRST_CALL_TRANSACTION + 1;\n\n static final int TRANSACTION_isUsbMassStorageConnected = IBinder.FIRST_CALL_TRANSACTION + 2;\n\n static final int TRANSACTION_setUsbMassStorageEnabled = IBinder.FIRST_CALL_TRANSACTION + 3;\n\n static final int TRANSACTION_isUsbMassStorageEnabled = IBinder.FIRST_CALL_TRANSACTION + 4;\n\n static final int TRANSACTION_mountVolume = IBinder.FIRST_CALL_TRANSACTION + 5;\n\n static final int TRANSACTION_unmountVolume = IBinder.FIRST_CALL_TRANSACTION + 6;\n\n static final int TRANSACTION_formatVolume = IBinder.FIRST_CALL_TRANSACTION + 7;\n\n static final int TRANSACTION_getStorageUsers = IBinder.FIRST_CALL_TRANSACTION + 8;\n\n static final int TRANSACTION_getVolumeState = IBinder.FIRST_CALL_TRANSACTION + 9;\n\n static final int TRANSACTION_createSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 10;\n\n static final int TRANSACTION_finalizeSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 11;\n\n static final int TRANSACTION_destroySecureContainer = IBinder.FIRST_CALL_TRANSACTION + 12;\n\n static final int TRANSACTION_mountSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 13;\n\n static final int TRANSACTION_unmountSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 14;\n\n static final int TRANSACTION_isSecureContainerMounted = IBinder.FIRST_CALL_TRANSACTION + 15;\n\n static final int TRANSACTION_renameSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 16;\n\n static final int TRANSACTION_getSecureContainerPath = IBinder.FIRST_CALL_TRANSACTION + 17;\n\n static final int TRANSACTION_getSecureContainerList = IBinder.FIRST_CALL_TRANSACTION + 18;\n\n static final int TRANSACTION_shutdown = IBinder.FIRST_CALL_TRANSACTION + 19;\n\n static final int TRANSACTION_finishMediaUpdate = IBinder.FIRST_CALL_TRANSACTION + 20;\n\n static final int TRANSACTION_mountObb = IBinder.FIRST_CALL_TRANSACTION + 21;\n\n static final int TRANSACTION_unmountObb = IBinder.FIRST_CALL_TRANSACTION + 22;\n\n static final int TRANSACTION_isObbMounted = IBinder.FIRST_CALL_TRANSACTION + 23;\n\n static final int TRANSACTION_getMountedObbPath = IBinder.FIRST_CALL_TRANSACTION + 24;\n\n static final int TRANSACTION_isExternalStorageEmulated = IBinder.FIRST_CALL_TRANSACTION + 25;\n\n static final int TRANSACTION_decryptStorage = IBinder.FIRST_CALL_TRANSACTION + 26;\n\n static final int TRANSACTION_encryptStorage = IBinder.FIRST_CALL_TRANSACTION + 27;\n\n static final int TRANSACTION_changeEncryptionPassword = IBinder.FIRST_CALL_TRANSACTION + 28;\n\n static final int TRANSACTION_getVolumeList = IBinder.FIRST_CALL_TRANSACTION + 29;\n\n static final int TRANSACTION_getSecureContainerFilesystemPath = IBinder.FIRST_CALL_TRANSACTION + 30;\n\n static final int TRANSACTION_getEncryptionState = IBinder.FIRST_CALL_TRANSACTION + 31;\n\n static final int TRANSACTION_verifyEncryptionPassword = IBinder.FIRST_CALL_TRANSACTION + 32;\n\n static final int TRANSACTION_fixPermissionsSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 33;\n\n static final int TRANSACTION_mkdirs = IBinder.FIRST_CALL_TRANSACTION + 34;\n\n static final int TRANSACTION_getPasswordType = IBinder.FIRST_CALL_TRANSACTION + 35;\n\n static final int TRANSACTION_getPassword = IBinder.FIRST_CALL_TRANSACTION + 36;\n\n static final int TRANSACTION_clearPassword = IBinder.FIRST_CALL_TRANSACTION + 37;\n\n static final int TRANSACTION_setField = IBinder.FIRST_CALL_TRANSACTION + 38;\n\n static final int TRANSACTION_getField = IBinder.FIRST_CALL_TRANSACTION + 39;\n\n static final int TRANSACTION_resizeSecureContainer = IBinder.FIRST_CALL_TRANSACTION + 40;\n\n static final int TRANSACTION_lastMaintenance = IBinder.FIRST_CALL_TRANSACTION + 41;\n\n static final int TRANSACTION_runMaintenance = IBinder.FIRST_CALL_TRANSACTION + 42;\n\n static final int TRANSACTION_waitForAsecScan = IBinder.FIRST_CALL_TRANSACTION + 43;\n\n static final int TRANSACTION_getDisks = IBinder.FIRST_CALL_TRANSACTION + 44;\n static final int TRANSACTION_getVolumes = IBinder.FIRST_CALL_TRANSACTION + 45;\n static final int TRANSACTION_getVolumeRecords = IBinder.FIRST_CALL_TRANSACTION + 46;\n\n static final int TRANSACTION_mount = IBinder.FIRST_CALL_TRANSACTION + 47;\n static final int TRANSACTION_unmount = IBinder.FIRST_CALL_TRANSACTION + 48;\n static final int TRANSACTION_format = IBinder.FIRST_CALL_TRANSACTION + 49;\n\n static final int TRANSACTION_partitionPublic = IBinder.FIRST_CALL_TRANSACTION + 50;\n static final int TRANSACTION_partitionPrivate = IBinder.FIRST_CALL_TRANSACTION + 51;\n static final int TRANSACTION_partitionMixed = IBinder.FIRST_CALL_TRANSACTION + 52;\n\n static final int TRANSACTION_setVolumeNickname = IBinder.FIRST_CALL_TRANSACTION + 53;\n static final int TRANSACTION_setVolumeUserFlags = IBinder.FIRST_CALL_TRANSACTION + 54;\n static final int TRANSACTION_forgetVolume = IBinder.FIRST_CALL_TRANSACTION + 55;\n static final int TRANSACTION_forgetAllVolumes = IBinder.FIRST_CALL_TRANSACTION + 56;\n\n static final int TRANSACTION_getPrimaryStorageUuid = IBinder.FIRST_CALL_TRANSACTION + 57;\n static final int TRANSACTION_setPrimaryStorageUuid = IBinder.FIRST_CALL_TRANSACTION + 58;\n\n static final int TRANSACTION_benchmark = IBinder.FIRST_CALL_TRANSACTION + 59;\n static final int TRANSACTION_setDebugFlags = IBinder.FIRST_CALL_TRANSACTION + 60;\n\n static final int TRANSACTION_createUserKey = IBinder.FIRST_CALL_TRANSACTION + 61;\n static final int TRANSACTION_destroyUserKey = IBinder.FIRST_CALL_TRANSACTION + 62;\n\n static final int TRANSACTION_unlockUserKey = IBinder.FIRST_CALL_TRANSACTION + 63;\n static final int TRANSACTION_lockUserKey = IBinder.FIRST_CALL_TRANSACTION + 64;\n static final int TRANSACTION_isUserKeyUnlocked = IBinder.FIRST_CALL_TRANSACTION + 65;\n\n static final int TRANSACTION_prepareUserStorage = IBinder.FIRST_CALL_TRANSACTION + 66;\n static final int TRANSACTION_destroyUserStorage = IBinder.FIRST_CALL_TRANSACTION + 67;\n\n static final int TRANSACTION_isConvertibleToFBE = IBinder.FIRST_CALL_TRANSACTION + 68;\n\n static final int TRANSACTION_mountAppFuse = IBinder.FIRST_CALL_TRANSACTION + 69;\n\n static final int TRANSACTION_addUserKeyAuth = IBinder.FIRST_CALL_TRANSACTION + 70;\n\n static final int TRANSACTION_fixateNewestUserKeyAuth = IBinder.FIRST_CALL_TRANSACTION + 71;\n\n /**\n * Cast an IBinder object into an IMountService interface, generating a\n * proxy if needed.\n */\n public static IMountService asInterface(IBinder obj) {\n if (obj == null) {\n return null;\n }\n IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\n if (iin != null && iin instanceof IMountService) {\n return (IMountService) iin;\n }\n return new IMountService.Stub.Proxy(obj);\n }\n\n /** Construct the stub at attach it to the interface. */\n public Stub() {\n attachInterface(this, DESCRIPTOR);\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n @Override\n public boolean onTransact(int code, Parcel data, Parcel reply,\n int flags) throws RemoteException {\n switch (code) {\n case INTERFACE_TRANSACTION: {\n reply.writeString(DESCRIPTOR);\n return true;\n }\n case TRANSACTION_registerListener: {\n data.enforceInterface(DESCRIPTOR);\n IMountServiceListener listener;\n listener = IMountServiceListener.Stub.asInterface(data.readStrongBinder());\n registerListener(listener);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unregisterListener: {\n data.enforceInterface(DESCRIPTOR);\n IMountServiceListener listener;\n listener = IMountServiceListener.Stub.asInterface(data.readStrongBinder());\n unregisterListener(listener);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isUsbMassStorageConnected: {\n data.enforceInterface(DESCRIPTOR);\n boolean result = isUsbMassStorageConnected();\n reply.writeNoException();\n reply.writeInt((result ? 1 : 0));\n return true;\n }\n case TRANSACTION_setUsbMassStorageEnabled: {\n data.enforceInterface(DESCRIPTOR);\n boolean enable;\n enable = 0 != data.readInt();\n setUsbMassStorageEnabled(enable);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isUsbMassStorageEnabled: {\n data.enforceInterface(DESCRIPTOR);\n boolean result = isUsbMassStorageEnabled();\n reply.writeNoException();\n reply.writeInt((result ? 1 : 0));\n return true;\n }\n case TRANSACTION_mountVolume: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n int resultCode = mountVolume(mountPoint);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_unmountVolume: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n boolean force = 0 != data.readInt();\n boolean removeEncrypt = 0 != data.readInt();\n unmountVolume(mountPoint, force, removeEncrypt);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_formatVolume: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n int result = formatVolume(mountPoint);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getStorageUsers: {\n data.enforceInterface(DESCRIPTOR);\n String path;\n path = data.readString();\n int[] pids = getStorageUsers(path);\n reply.writeNoException();\n reply.writeIntArray(pids);\n return true;\n }\n case TRANSACTION_getVolumeState: {\n data.enforceInterface(DESCRIPTOR);\n String mountPoint;\n mountPoint = data.readString();\n String state = getVolumeState(mountPoint);\n reply.writeNoException();\n reply.writeString(state);\n return true;\n }\n case TRANSACTION_createSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int sizeMb;\n sizeMb = data.readInt();\n String fstype;\n fstype = data.readString();\n String key;\n key = data.readString();\n int ownerUid;\n ownerUid = data.readInt();\n boolean external;\n external = 0 != data.readInt();\n int resultCode = createSecureContainer(id, sizeMb, fstype, key, ownerUid,\n external);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_finalizeSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int resultCode = finalizeSecureContainer(id);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_destroySecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n boolean force;\n force = 0 != data.readInt();\n int resultCode = destroySecureContainer(id, force);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_mountSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n String key;\n key = data.readString();\n int ownerUid;\n ownerUid = data.readInt();\n boolean readOnly;\n readOnly = data.readInt() != 0;\n int resultCode = mountSecureContainer(id, key, ownerUid, readOnly);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_unmountSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n boolean force;\n force = 0 != data.readInt();\n int resultCode = unmountSecureContainer(id, force);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_isSecureContainerMounted: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n boolean status = isSecureContainerMounted(id);\n reply.writeNoException();\n reply.writeInt((status ? 1 : 0));\n return true;\n }\n case TRANSACTION_renameSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String oldId;\n oldId = data.readString();\n String newId;\n newId = data.readString();\n int resultCode = renameSecureContainer(oldId, newId);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_getSecureContainerPath: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n String path = getSecureContainerPath(id);\n reply.writeNoException();\n reply.writeString(path);\n return true;\n }\n case TRANSACTION_getSecureContainerList: {\n data.enforceInterface(DESCRIPTOR);\n String[] ids = getSecureContainerList();\n reply.writeNoException();\n reply.writeStringArray(ids);\n return true;\n }\n case TRANSACTION_shutdown: {\n data.enforceInterface(DESCRIPTOR);\n IMountShutdownObserver observer;\n observer = IMountShutdownObserver.Stub.asInterface(data\n .readStrongBinder());\n shutdown(observer);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_finishMediaUpdate: {\n data.enforceInterface(DESCRIPTOR);\n finishMediaUpdate();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_mountObb: {\n data.enforceInterface(DESCRIPTOR);\n final String rawPath = data.readString();\n final String canonicalPath = data.readString();\n final String key = data.readString();\n IObbActionListener observer;\n observer = IObbActionListener.Stub.asInterface(data.readStrongBinder());\n int nonce;\n nonce = data.readInt();\n mountObb(rawPath, canonicalPath, key, observer, nonce);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unmountObb: {\n data.enforceInterface(DESCRIPTOR);\n String filename;\n filename = data.readString();\n boolean force;\n force = 0 != data.readInt();\n IObbActionListener observer;\n observer = IObbActionListener.Stub.asInterface(data.readStrongBinder());\n int nonce;\n nonce = data.readInt();\n unmountObb(filename, force, observer, nonce);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isObbMounted: {\n data.enforceInterface(DESCRIPTOR);\n String filename;\n filename = data.readString();\n boolean status = isObbMounted(filename);\n reply.writeNoException();\n reply.writeInt((status ? 1 : 0));\n return true;\n }\n case TRANSACTION_getMountedObbPath: {\n data.enforceInterface(DESCRIPTOR);\n String filename;\n filename = data.readString();\n String mountedPath = getMountedObbPath(filename);\n reply.writeNoException();\n reply.writeString(mountedPath);\n return true;\n }\n case TRANSACTION_isExternalStorageEmulated: {\n data.enforceInterface(DESCRIPTOR);\n boolean emulated = isExternalStorageEmulated();\n reply.writeNoException();\n reply.writeInt(emulated ? 1 : 0);\n return true;\n }\n case TRANSACTION_decryptStorage: {\n data.enforceInterface(DESCRIPTOR);\n String password = data.readString();\n int result = decryptStorage(password);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_encryptStorage: {\n data.enforceInterface(DESCRIPTOR);\n int type = data.readInt();\n String password = data.readString();\n int result = encryptStorage(type, password);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_changeEncryptionPassword: {\n data.enforceInterface(DESCRIPTOR);\n int type = data.readInt();\n String password = data.readString();\n int result = changeEncryptionPassword(type, password);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getVolumeList: {\n data.enforceInterface(DESCRIPTOR);\n int uid = data.readInt();\n String packageName = data.readString();\n int _flags = data.readInt();\n StorageVolume[] result = getVolumeList(uid, packageName, _flags);\n reply.writeNoException();\n reply.writeTypedArray(result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_getSecureContainerFilesystemPath: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n String path = getSecureContainerFilesystemPath(id);\n reply.writeNoException();\n reply.writeString(path);\n return true;\n }\n case TRANSACTION_getEncryptionState: {\n data.enforceInterface(DESCRIPTOR);\n int result = getEncryptionState();\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_fixPermissionsSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int gid;\n gid = data.readInt();\n String filename;\n filename = data.readString();\n int resultCode = fixPermissionsSecureContainer(id, gid, filename);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_mkdirs: {\n data.enforceInterface(DESCRIPTOR);\n String callingPkg = data.readString();\n String path = data.readString();\n int result = mkdirs(callingPkg, path);\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getPasswordType: {\n data.enforceInterface(DESCRIPTOR);\n int result = getPasswordType();\n reply.writeNoException();\n reply.writeInt(result);\n return true;\n }\n case TRANSACTION_getPassword: {\n data.enforceInterface(DESCRIPTOR);\n String result = getPassword();\n reply.writeNoException();\n reply.writeString(result);\n return true;\n }\n case TRANSACTION_clearPassword: {\n data.enforceInterface(DESCRIPTOR);\n clearPassword();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setField: {\n data.enforceInterface(DESCRIPTOR);\n String field = data.readString();\n String contents = data.readString();\n setField(field, contents);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_getField: {\n data.enforceInterface(DESCRIPTOR);\n String field = data.readString();\n String contents = getField(field);\n reply.writeNoException();\n reply.writeString(contents);\n return true;\n }\n case TRANSACTION_isConvertibleToFBE: {\n data.enforceInterface(DESCRIPTOR);\n int resultCode = isConvertibleToFBE() ? 1 : 0;\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_resizeSecureContainer: {\n data.enforceInterface(DESCRIPTOR);\n String id;\n id = data.readString();\n int sizeMb;\n sizeMb = data.readInt();\n String key;\n key = data.readString();\n int resultCode = resizeSecureContainer(id, sizeMb, key);\n reply.writeNoException();\n reply.writeInt(resultCode);\n return true;\n }\n case TRANSACTION_lastMaintenance: {\n data.enforceInterface(DESCRIPTOR);\n long lastMaintenance = lastMaintenance();\n reply.writeNoException();\n reply.writeLong(lastMaintenance);\n return true;\n }\n case TRANSACTION_runMaintenance: {\n data.enforceInterface(DESCRIPTOR);\n runMaintenance();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_waitForAsecScan: {\n data.enforceInterface(DESCRIPTOR);\n waitForAsecScan();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_getDisks: {\n data.enforceInterface(DESCRIPTOR);\n DiskInfo[] disks = getDisks();\n reply.writeNoException();\n reply.writeTypedArray(disks, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_getVolumes: {\n data.enforceInterface(DESCRIPTOR);\n int _flags = data.readInt();\n VolumeInfo[] volumes = getVolumes(_flags);\n reply.writeNoException();\n reply.writeTypedArray(volumes, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_getVolumeRecords: {\n data.enforceInterface(DESCRIPTOR);\n int _flags = data.readInt();\n VolumeRecord[] volumes = getVolumeRecords(_flags);\n reply.writeNoException();\n reply.writeTypedArray(volumes, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n case TRANSACTION_mount: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n mount(volId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unmount: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n unmount(volId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_format: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n format(volId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_benchmark: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n long res = benchmark(volId);\n reply.writeNoException();\n reply.writeLong(res);\n return true;\n }\n case TRANSACTION_partitionPublic: {\n data.enforceInterface(DESCRIPTOR);\n String diskId = data.readString();\n partitionPublic(diskId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_partitionPrivate: {\n data.enforceInterface(DESCRIPTOR);\n String diskId = data.readString();\n partitionPrivate(diskId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_partitionMixed: {\n data.enforceInterface(DESCRIPTOR);\n String diskId = data.readString();\n int ratio = data.readInt();\n partitionMixed(diskId, ratio);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setVolumeNickname: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n String nickname = data.readString();\n setVolumeNickname(volId, nickname);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setVolumeUserFlags: {\n data.enforceInterface(DESCRIPTOR);\n String volId = data.readString();\n int _flags = data.readInt();\n int _mask = data.readInt();\n setVolumeUserFlags(volId, _flags, _mask);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_forgetVolume: {\n data.enforceInterface(DESCRIPTOR);\n String fsUuid = data.readString();\n forgetVolume(fsUuid);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_forgetAllVolumes: {\n data.enforceInterface(DESCRIPTOR);\n forgetAllVolumes();\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_setDebugFlags: {\n data.enforceInterface(DESCRIPTOR);\n int _flags = data.readInt();\n int _mask = data.readInt();\n setDebugFlags(_flags, _mask);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_getPrimaryStorageUuid: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = getPrimaryStorageUuid();\n reply.writeNoException();\n reply.writeString(volumeUuid);\n return true;\n }\n case TRANSACTION_setPrimaryStorageUuid: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = data.readString();\n IPackageMoveObserver listener = IPackageMoveObserver.Stub.asInterface(\n data.readStrongBinder());\n setPrimaryStorageUuid(volumeUuid, listener);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_createUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n int serialNumber = data.readInt();\n boolean ephemeral = data.readInt() != 0;\n createUserKey(userId, serialNumber, ephemeral);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_destroyUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n destroyUserKey(userId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_addUserKeyAuth: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n int serialNumber = data.readInt();\n byte[] token = data.createByteArray();\n byte[] secret = data.createByteArray();\n addUserKeyAuth(userId, serialNumber, token, secret);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_fixateNewestUserKeyAuth: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n fixateNewestUserKeyAuth(userId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_unlockUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n int serialNumber = data.readInt();\n byte[] token = data.createByteArray();\n byte[] secret = data.createByteArray();\n unlockUserKey(userId, serialNumber, token, secret);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_lockUserKey: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n lockUserKey(userId);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_isUserKeyUnlocked: {\n data.enforceInterface(DESCRIPTOR);\n int userId = data.readInt();\n boolean result = isUserKeyUnlocked(userId);\n reply.writeNoException();\n reply.writeInt(result ? 1 : 0);\n return true;\n }\n case TRANSACTION_prepareUserStorage: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = data.readString();\n int userId = data.readInt();\n int serialNumber = data.readInt();\n int _flags = data.readInt();\n prepareUserStorage(volumeUuid, userId, serialNumber, _flags);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_destroyUserStorage: {\n data.enforceInterface(DESCRIPTOR);\n String volumeUuid = data.readString();\n int userId = data.readInt();\n int _flags = data.readInt();\n destroyUserStorage(volumeUuid, userId, _flags);\n reply.writeNoException();\n return true;\n }\n case TRANSACTION_mountAppFuse: {\n data.enforceInterface(DESCRIPTOR);\n String name = data.readString();\n ParcelFileDescriptor fd = mountAppFuse(name);\n reply.writeNoException();\n reply.writeParcelable(fd, Parcelable.PARCELABLE_WRITE_RETURN_VALUE);\n return true;\n }\n }\n return super.onTransact(code, data, reply, flags);\n }\n }\n\n /*\n * Creates a secure container with the specified parameters. Returns an int\n * consistent with MountServiceResultCode\n */\n public int createSecureContainer(String id, int sizeMb, String fstype, String key,\n int ownerUid, boolean external) throws RemoteException;\n\n /*\n * Destroy a secure container, and free up all resources associated with it.\n * NOTE: Ensure all references are released prior to deleting. Returns an\n * int consistent with MountServiceResultCode\n */\n public int destroySecureContainer(String id, boolean force) throws RemoteException;\n\n /*\n * Finalize a container which has just been created and populated. After\n * finalization, the container is immutable. Returns an int consistent with\n * MountServiceResultCode\n */\n public int finalizeSecureContainer(String id) throws RemoteException;\n\n /**\n * Call into MountService by PackageManager to notify that its done\n * processing the media status update request.\n */\n public void finishMediaUpdate() throws RemoteException;\n\n /**\n * Format external storage given a mount point. Returns an int consistent\n * with MountServiceResultCode\n */\n public int formatVolume(String mountPoint) throws RemoteException;\n\n /**\n * Gets the path to the mounted Opaque Binary Blob (OBB).\n */\n public String getMountedObbPath(String rawPath) throws RemoteException;\n\n /**\n * Gets an Array of currently known secure container IDs\n */\n public String[] getSecureContainerList() throws RemoteException;\n\n /*\n * Returns the filesystem path of a mounted secure container.\n */\n public String getSecureContainerPath(String id) throws RemoteException;\n\n /**\n * Returns an array of pids with open files on the specified path.\n */\n public int[] getStorageUsers(String path) throws RemoteException;\n\n /**\n * Gets the state of a volume via its mountpoint.\n */\n public String getVolumeState(String mountPoint) throws RemoteException;\n\n /**\n * Checks whether the specified Opaque Binary Blob (OBB) is mounted\n * somewhere.\n */\n public boolean isObbMounted(String rawPath) throws RemoteException;\n\n /*\n * Returns true if the specified container is mounted\n */\n public boolean isSecureContainerMounted(String id) throws RemoteException;\n\n /**\n * Returns true if a USB mass storage host is connected\n */\n public boolean isUsbMassStorageConnected() throws RemoteException;\n\n /**\n * Returns true if a USB mass storage host is enabled (media is shared)\n */\n public boolean isUsbMassStorageEnabled() throws RemoteException;\n\n /**\n * Mounts an Opaque Binary Blob (OBB) with the specified decryption key and\n * only allows the calling process's UID access to the contents.\n * MountService will call back to the supplied IObbActionListener to inform\n * it of the terminal state of the call.\n */\n public void mountObb(String rawPath, String canonicalPath, String key,\n IObbActionListener token, int nonce) throws RemoteException;\n\n /*\n * Mount a secure container with the specified key and owner UID. Returns an\n * int consistent with MountServiceResultCode\n */\n public int mountSecureContainer(String id, String key, int ownerUid, boolean readOnly)\n throws RemoteException;\n\n /**\n * Mount external storage at given mount point. Returns an int consistent\n * with MountServiceResultCode\n */\n public int mountVolume(String mountPoint) throws RemoteException;\n\n /**\n * Registers an IMountServiceListener for receiving async notifications.\n */\n public void registerListener(IMountServiceListener listener) throws RemoteException;\n\n /*\n * Rename an unmounted secure container. Returns an int consistent with\n * MountServiceResultCode\n */\n public int renameSecureContainer(String oldId, String newId) throws RemoteException;\n\n /**\n * Enables / disables USB mass storage. The caller should check actual\n * status of enabling/disabling USB mass storage via StorageEventListener.\n */\n public void setUsbMassStorageEnabled(boolean enable) throws RemoteException;\n\n /**\n * Shuts down the MountService and gracefully unmounts all external media.\n * Invokes call back once the shutdown is complete.\n */\n public void shutdown(IMountShutdownObserver observer) throws RemoteException;\n\n /**\n * Unmounts an Opaque Binary Blob (OBB). When the force flag is specified,\n * any program using it will be forcibly killed to unmount the image.\n * MountService will call back to the supplied IObbActionListener to inform\n * it of the terminal state of the call.\n */\n public void unmountObb(String rawPath, boolean force, IObbActionListener token, int nonce)\n throws RemoteException;\n\n /*\n * Unount a secure container. Returns an int consistent with\n * MountServiceResultCode\n */\n public int unmountSecureContainer(String id, boolean force) throws RemoteException;\n\n /**\n * Safely unmount external storage at given mount point. The unmount is an\n * asynchronous operation. Applications should register StorageEventListener\n * for storage related status changes.\n * @param mountPoint the mount point\n * @param force whether or not to forcefully unmount it (e.g. even if programs are using this\n * data currently)\n * @param removeEncryption whether or not encryption mapping should be removed from the volume.\n * This value implies {@code force}.\n */\n public void unmountVolume(String mountPoint, boolean force, boolean removeEncryption)\n throws RemoteException;\n\n /**\n * Unregisters an IMountServiceListener\n */\n public void unregisterListener(IMountServiceListener listener) throws RemoteException;\n\n /**\n * Returns whether or not the external storage is emulated.\n */\n public boolean isExternalStorageEmulated() throws RemoteException;\n\n /** The volume is not encrypted. */\n static final int ENCRYPTION_STATE_NONE = 1;\n /** The volume has been encrypted succesfully. */\n static final int ENCRYPTION_STATE_OK = 0;\n /** The volume is in a bad state.*/\n static final int ENCRYPTION_STATE_ERROR_UNKNOWN = -1;\n /** Encryption is incomplete */\n static final int ENCRYPTION_STATE_ERROR_INCOMPLETE = -2;\n /** Encryption is incomplete and irrecoverable */\n static final int ENCRYPTION_STATE_ERROR_INCONSISTENT = -3;\n /** Underlying data is corrupt */\n static final int ENCRYPTION_STATE_ERROR_CORRUPT = -4;\n\n /**\n * Determines the encryption state of the volume.\n * @return a numerical value. See {@code ENCRYPTION_STATE_*} for possible\n * values.\n * Note that this has been replaced in most cases by the APIs in\n * StorageManager (see isEncryptable and below)\n * This is still useful to get the error state when encryption has failed\n * and CryptKeeper needs to throw up a screen advising the user what to do\n */\n public int getEncryptionState() throws RemoteException;\n\n /**\n * Decrypts any encrypted volumes.\n */\n public int decryptStorage(String password) throws RemoteException;\n\n /**\n * Encrypts storage.\n */\n public int encryptStorage(int type, String password) throws RemoteException;\n\n /**\n * Changes the encryption password.\n */\n public int changeEncryptionPassword(int type, String password)\n throws RemoteException;\n\n /**\n * Verify the encryption password against the stored volume. This method\n * may only be called by the system process.\n */\n public int verifyEncryptionPassword(String password) throws RemoteException;\n\n /**\n * Returns list of all mountable volumes.\n */\n public StorageVolume[] getVolumeList(int uid, String packageName, int flags) throws RemoteException;\n\n /**\n * Gets the path on the filesystem for the ASEC container itself.\n *\n * @param cid ASEC container ID\n * @return path to filesystem or {@code null} if it's not found\n * @throws RemoteException\n */\n public String getSecureContainerFilesystemPath(String cid) throws RemoteException;\n\n /*\n * Fix permissions in a container which has just been created and populated.\n * Returns an int consistent with MountServiceResultCode\n */\n public int fixPermissionsSecureContainer(String id, int gid, String filename)\n throws RemoteException;\n\n /**\n * Ensure that all directories along given path exist, creating parent\n * directories as needed. Validates that given path is absolute and that it\n * contains no relative \".\" or \"..\" paths or symlinks. Also ensures that\n * path belongs to a volume managed by vold, and that path is either\n * external storage data or OBB directory belonging to calling app.\n */\n public int mkdirs(String callingPkg, String path) throws RemoteException;\n\n /**\n * Determines the type of the encryption password\n * @return PasswordType\n */\n public int getPasswordType() throws RemoteException;\n\n /**\n * Get password from vold\n * @return password or empty string\n */\n public String getPassword() throws RemoteException;\n\n /**\n * Securely clear password from vold\n */\n public void clearPassword() throws RemoteException;\n\n /**\n * Set a field in the crypto header.\n * @param field field to set\n * @param contents contents to set in field\n */\n public void setField(String field, String contents) throws RemoteException;\n\n /**\n * Gets a field from the crypto header.\n * @param field field to get\n * @return contents of field\n */\n public String getField(String field) throws RemoteException;\n\n public boolean isConvertibleToFBE() throws RemoteException;\n\n public int resizeSecureContainer(String id, int sizeMb, String key) throws RemoteException;\n\n /**\n * Report the time of the last maintenance operation such as fstrim.\n * @return Timestamp of the last maintenance operation, in the\n * System.currentTimeMillis() time base\n * @throws RemoteException\n */\n public long lastMaintenance() throws RemoteException;\n\n /**\n * Kick off an immediate maintenance operation\n * @throws RemoteException\n */\n public void runMaintenance() throws RemoteException;\n\n public void waitForAsecScan() throws RemoteException;\n\n public DiskInfo[] getDisks() throws RemoteException;\n public VolumeInfo[] getVolumes(int flags) throws RemoteException;\n public VolumeRecord[] getVolumeRecords(int flags) throws RemoteException;\n\n public void mount(String volId) throws RemoteException;\n public void unmount(String volId) throws RemoteException;\n public void format(String volId) throws RemoteException;\n public long benchmark(String volId) throws RemoteException;\n\n public void partitionPublic(String diskId) throws RemoteException;\n public void partitionPrivate(String diskId) throws RemoteException;\n public void partitionMixed(String diskId, int ratio) throws RemoteException;\n\n public void setVolumeNickname(String fsUuid, String nickname) throws RemoteException;\n public void setVolumeUserFlags(String fsUuid, int flags, int mask) throws RemoteException;\n public void forgetVolume(String fsUuid) throws RemoteException;\n public void forgetAllVolumes() throws RemoteException;\n public void setDebugFlags(int flags, int mask) throws RemoteException;\n\n public String getPrimaryStorageUuid() throws RemoteException;\n public void setPrimaryStorageUuid(String volumeUuid, IPackageMoveObserver callback)\n throws RemoteException;\n\n public void createUserKey(int userId, int serialNumber, boolean ephemeral)\n throws RemoteException;\n public void destroyUserKey(int userId) throws RemoteException;\n public void addUserKeyAuth(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException;\n public void fixateNewestUserKeyAuth(int userId) throws RemoteException;\n\n public void unlockUserKey(int userId, int serialNumber,\n byte[] token, byte[] secret) throws RemoteException;\n public void lockUserKey(int userId) throws RemoteException;\n public boolean isUserKeyUnlocked(int userId) throws RemoteException;\n\n public void prepareUserStorage(String volumeUuid, int userId, int serialNumber,\n int flags) throws RemoteException;\n public void destroyUserStorage(String volumeUuid, int userId, int flags) throws RemoteException;\n\n public ParcelFileDescriptor mountAppFuse(String name) throws RemoteException;\n}", "public interface ILamportServer extends Remote {\n public String SERVICE_NAME = \"LAMPORT_RMI\"; // Nom du service\n \n /**\n * Envoie un Message REQUEST aux autres serveurs pour annoncer le fait de \n * vouloir rentrer dans la section critique\n * @param message Le message envoyé avec une requête\n * @throws RemoteException \n */\n public void request(Message message) throws RemoteException;\n \n /**\n * Envoi du Message RESPONSE après avoir Reçu le Message REQUEST\n * @param message Le message envoyé avec une réponse\n * @throws RemoteException \n */\n public void response(Message message) throws RemoteException;\n \n /**\n * Envoie du message FREE pour indiquer aux autres serveur que l'on sort de\n * la section critique\n * @param message Le message envoyé pour libérer la section critique\n * @throws RemoteException \n */\n public void freeSC(Message message) throws RemoteException;\n \n /**\n * Métode pour modifier la variable globalle dans tous les serveurs\n * @param newValue La nouvelle valeur de la variable\n * @throws RemoteException \n */\n public void setVariableGlobally(int newValue) throws RemoteException;\n}", "private void connectToUsers() {\n\n\t\tlookUpUsers();\n\t\ttry {\n\t\t\tfor (Map.Entry<String, UserInterface> e : remoteUsers.entrySet()) {\n\t\t\t\tcryptoUtils.addCertToList(e.getKey(), e.getValue().getCertificate());\n\t\t\t\te.getValue().connectUser(this.id, getCertificate());\n\t\t\t}\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setup_servers()\n {\n // get ServerInfo\n ServerInfo t = new ServerInfo();\n // all 3 servers\n for(int i=0;i<3;i++)\n {\n // get the server IP and port info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n public void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl true and rx_hdl false as this is the socket initiator\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,true,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n }\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Server\"+i);\n x.start(); \t\t\t// start the thread\n }\n }", "private void setInterfaces() {\n\t\tif (interfaceNames == null) {\n\t\t\treturn;\n\t\t}\n\t\tif (interfaces != null) {\n\t\t\treturn;\n\t\t}\n\t\tinterfaces = new HashMap();\n\t\tfor (int i = 0; i < interfaceNames.length; i++) {\n\t\t\tBCClass _interface =\n\t\t\t\tJavaApplication.Application.getClass(interfaceNames[i]);\n\t\t\tinterfaces.put(interfaceNames[i], _interface);\n\t\t}\n\t}", "@RemoteServiceClient(SimpleHttpService.class)\npublic interface ISimpleHttpServiceClient extends IServiceClient {\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_START)\n void bootup(int port);\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_STOP)\n void shutdown();\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_INFO)\n void info(int port);\n}", "public void connect(int id) throws RemoteException {\n\t\t\ttry {\n\t\t\t\t// get info\n\t\t\t\tServiceInfo info = m_services.get(id);\n\t\t\t\tif (info == null)\n\t\t\t\t\tthrow new Throwable();\n\t\t\t\t\n\t\t\t\t// connect and create (fake) sound manager\n\t\t\t\tSocket socket = new Socket(info.getHostAddresses()[0], info.getPort());\n\t\t\t\tm_soundManager.stopManager();\n\t\t\t\tm_soundManager = new RemoteSoundManager(InstrumentService.this, m_handler, socket);\n\t\t\t\tshowToast(R.string.client_connected);\n\t\t\t} catch (Throwable e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tshowToast(R.string.client_error_connecting);\n\t\t\t}\n\t\t}", "public interface IConnectionService{\n boolean isConnectionAvailable();\n}", "public boolean connect() throws RemoteException {\n\t\ttry {\n\t\t\t// Get remote object reference\n\t\t\tthis.registry = LocateRegistry.getRegistry(host, port);\n\t\t\tthis.server = (ServerInterface) registry.lookup(\"Server\");\n\t\t\tid = this.server.getNewClientId();\n\t\t\tClientInterface c_strub = (ClientInterface) UnicastRemoteObject.exportObject(this, 0);\n\t\t\tregistry.bind(id, c_strub);\n\t\t\treturn this.server.addClient(username, password, id);\n\t\t}\n\t\tcatch (AlreadyBoundException | NotBoundException e) {\n\t\t\tSystem.err.println(\"Error on client :\" + e);\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "Set<Interface> getInterfacesByPort(ConnectPoint port);", "private void init()\n {\n SystrayActivator.bundleContext\n .addServiceListener(new ProtocolProviderServiceListener());\n \n ServiceReference[] protocolProviderRefs = null;\n try\n {\n protocolProviderRefs\n = SystrayActivator.bundleContext.getServiceReferences(\n ProtocolProviderService.class.getName(),null);\n }\n catch (InvalidSyntaxException ex)\n {\n // this shouldn't happen since we're providing no parameter string\n // but let's log just in case.\n logger .error(\"Error while retrieving service refs\", ex);\n return;\n }\n \n // in case we found any\n if (protocolProviderRefs != null)\n {\n \n for (int i = 0; i < protocolProviderRefs.length; i++)\n {\n ProtocolProviderService provider\n = (ProtocolProviderService) SystrayActivator.bundleContext\n .getService(protocolProviderRefs[i]);\n \n this.addAccount(provider);\n }\n }\n }", "@Override\n public abstract void connect();", "public interface Connector {\n}", "public interface ICommunicationService\n extends IInterface\n{\n public static abstract class Stub extends Binder\n implements ICommunicationService\n {\n\n static final int TRANSACTION_acquireConnection = 1;\n static final int TRANSACTION_acquireConnectionEx = 8;\n static final int TRANSACTION_deregisterMessageHandler = 3;\n static final int TRANSACTION_getGatewayConnectivity = 9;\n static final int TRANSACTION_getIdentityResolver = 6;\n static final int TRANSACTION_isInitialized = 7;\n static final int TRANSACTION_registerMessageHandler = 2;\n static final int TRANSACTION_removeAckHandler = 11;\n static final int TRANSACTION_routeMessage = 4;\n static final int TRANSACTION_routeMessageFragment = 5;\n static final int TRANSACTION_setAckHandler = 10;\n\n public static ICommunicationService asInterface(IBinder ibinder)\n {\n if (ibinder == null)\n {\n return null;\n }\n IInterface iinterface = ibinder.queryLocalInterface(\"com.amazon.communication.ICommunicationService\");\n if (iinterface != null && (iinterface instanceof ICommunicationService))\n {\n return (ICommunicationService)iinterface;\n } else\n {\n return new Proxy(ibinder);\n }\n }\n\n public IBinder asBinder()\n {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)\n throws RemoteException\n {\n Object obj1 = null;\n ParcelableStatus parcelablestatus2 = null;\n Object obj = null;\n Object obj2 = null;\n boolean flag = false;\n switch (i)\n {\n default:\n return super.onTransact(i, parcel, parcel1, j);\n\n case 1598968902: \n parcel1.writeString(\"com.amazon.communication.ICommunicationService\");\n return true;\n\n case 1: // '\\001'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n obj1 = (ParcelableConnectionPolicy)ParcelableConnectionPolicy.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n parcelablestatus2 = new ParcelableStatus();\n obj = acquireConnection(((ParcelableEndpointIdentity) (obj)), ((ParcelableConnectionPolicy) (obj1)), parcel, parcelablestatus2);\n parcel1.writeNoException();\n parcel = obj2;\n if (obj != null)\n {\n parcel = ((IConnection) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus2 != null)\n {\n parcel1.writeInt(1);\n parcelablestatus2.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 2: // '\\002'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n i = registerMessageHandler(parcel.readInt(), IMessageHandler.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n parcel1.writeInt(i);\n return true;\n\n case 3: // '\\003'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n deregisterMessageHandler(parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 4: // '\\004'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n obj1 = (MessageEnvelope)MessageEnvelope.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n routeMessage(((ParcelableEndpointIdentity) (obj)), ((MessageEnvelope) (obj1)), parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 5: // '\\005'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n boolean flag1;\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n i = parcel.readInt();\n if (parcel.readInt() != 0)\n {\n obj1 = (MessageEnvelope)MessageEnvelope.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n if (parcel.readInt() != 0)\n {\n flag1 = true;\n } else\n {\n flag1 = false;\n }\n routeMessageFragment(((ParcelableEndpointIdentity) (obj)), i, ((MessageEnvelope) (obj1)), flag1, parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 6: // '\\006'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n obj = getIdentityResolver();\n parcel1.writeNoException();\n parcel = ((Parcel) (obj1));\n if (obj != null)\n {\n parcel = ((IIdentityResolver) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n return true;\n\n case 7: // '\\007'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n boolean flag2 = isInitialized();\n parcel1.writeNoException();\n i = ((flag) ? 1 : 0);\n if (flag2)\n {\n i = 1;\n }\n parcel1.writeInt(i);\n return true;\n\n case 8: // '\\b'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n ParcelablePolicy parcelablepolicy;\n ParcelableStatus parcelablestatus1;\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n parcelablepolicy = (ParcelablePolicy)ParcelablePolicy.CREATOR.createFromParcel(parcel);\n } else\n {\n parcelablepolicy = null;\n }\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n parcelablestatus1 = new ParcelableStatus();\n obj = acquireConnectionEx(((ParcelableEndpointIdentity) (obj)), parcelablepolicy, parcel, parcelablestatus1);\n parcel1.writeNoException();\n parcel = parcelablestatus2;\n if (obj != null)\n {\n parcel = ((IConnection) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus1 != null)\n {\n parcel1.writeInt(1);\n parcelablestatus1.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 9: // '\\t'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n ParcelableStatus parcelablestatus = new ParcelableStatus();\n IGatewayConnectivity igatewayconnectivity = getGatewayConnectivity(parcel, parcelablestatus);\n parcel1.writeNoException();\n parcel = ((Parcel) (obj));\n if (igatewayconnectivity != null)\n {\n parcel = igatewayconnectivity.asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus != null)\n {\n parcel1.writeInt(1);\n parcelablestatus.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 10: // '\\n'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n i = setAckHandler(com.amazon.communication.rlm.IAckHandler.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n parcel1.writeInt(i);\n return true;\n\n case 11: // '\\013'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n removeAckHandler();\n parcel1.writeNoException();\n return true;\n }\n }\n\n public Stub()\n {\n attachInterface(this, \"com.amazon.communication.ICommunicationService\");\n }\n }\n\n private static class Stub.Proxy\n implements ICommunicationService\n {\n\n private IBinder mRemote;\n\n public IConnection acquireConnection(ParcelableEndpointIdentity parcelableendpointidentity, ParcelableConnectionPolicy parcelableconnectionpolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L5:\n if (parcelableconnectionpolicy == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n parcelableconnectionpolicy.writeToParcel(parcel, 0);\n_L6:\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_156;\n }\n parcelableendpointidentity = iconnectionlistener.asBinder();\n_L7:\n parcel.writeStrongBinder(parcelableendpointidentity);\n mRemote.transact(1, parcel, parcel1, 0);\n parcel1.readException();\n parcelableendpointidentity = IConnection.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return parcelableendpointidentity;\n_L2:\n parcel.writeInt(0);\n goto _L5\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity = null;\n goto _L7\n }\n\n public IConnection acquireConnectionEx(ParcelableEndpointIdentity parcelableendpointidentity, ParcelablePolicy parcelablepolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L5:\n if (parcelablepolicy == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n parcelablepolicy.writeToParcel(parcel, 0);\n_L6:\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_157;\n }\n parcelableendpointidentity = iconnectionlistener.asBinder();\n_L7:\n parcel.writeStrongBinder(parcelableendpointidentity);\n mRemote.transact(8, parcel, parcel1, 0);\n parcel1.readException();\n parcelableendpointidentity = IConnection.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return parcelableendpointidentity;\n_L2:\n parcel.writeInt(0);\n goto _L5\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity = null;\n goto _L7\n }\n\n public IBinder asBinder()\n {\n return mRemote;\n }\n\n public void deregisterMessageHandler(int i)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n parcel.writeInt(i);\n mRemote.transact(3, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public IGatewayConnectivity getGatewayConnectivity(IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_86;\n }\n iconnectionlistener = iconnectionlistener.asBinder();\n_L1:\n parcel.writeStrongBinder(iconnectionlistener);\n mRemote.transact(9, parcel, parcel1, 0);\n parcel1.readException();\n iconnectionlistener = IGatewayConnectivity.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return iconnectionlistener;\n iconnectionlistener = null;\n goto _L1\n iconnectionlistener;\n parcel1.recycle();\n parcel.recycle();\n throw iconnectionlistener;\n }\n\n public IIdentityResolver getIdentityResolver()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n IIdentityResolver iidentityresolver;\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(6, parcel, parcel1, 0);\n parcel1.readException();\n iidentityresolver = com.amazon.communication.ir.IIdentityResolver.Stub.asInterface(parcel1.readStrongBinder());\n parcel1.recycle();\n parcel.recycle();\n return iidentityresolver;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public String getInterfaceDescriptor()\n {\n return \"com.amazon.communication.ICommunicationService\";\n }\n\n public boolean isInitialized()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n boolean flag;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(7, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if (i != 0)\n {\n flag = true;\n }\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int registerMessageHandler(int i, IMessageHandler imessagehandler)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n parcel.writeInt(i);\n if (imessagehandler == null)\n {\n break MISSING_BLOCK_LABEL_73;\n }\n imessagehandler = imessagehandler.asBinder();\n_L1:\n parcel.writeStrongBinder(imessagehandler);\n mRemote.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n imessagehandler = null;\n goto _L1\n imessagehandler;\n parcel1.recycle();\n parcel.recycle();\n throw imessagehandler;\n }\n\n public void removeAckHandler()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(11, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public void routeMessage(ParcelableEndpointIdentity parcelableendpointidentity, MessageEnvelope messageenvelope, int i)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L3:\n if (messageenvelope == null)\n {\n break MISSING_BLOCK_LABEL_111;\n }\n parcel.writeInt(1);\n messageenvelope.writeToParcel(parcel, 0);\n_L4:\n parcel.writeInt(i);\n mRemote.transact(4, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n parcel.writeInt(0);\n goto _L3\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n parcel.writeInt(0);\n goto _L4\n }\n\n public void routeMessageFragment(ParcelableEndpointIdentity parcelableendpointidentity, int i, MessageEnvelope messageenvelope, boolean flag, int j)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n boolean flag1;\n flag1 = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L6:\n parcel.writeInt(i);\n if (messageenvelope == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n messageenvelope.writeToParcel(parcel, 0);\n goto _L5\n_L7:\n parcel.writeInt(i);\n parcel.writeInt(j);\n mRemote.transact(5, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L5\n_L9:\n i = 0;\n goto _L7\n_L5:\n if (!flag) goto _L9; else goto _L8\n_L8:\n i = ((flag1) ? 1 : 0);\n goto _L7\n }\n\n public int setAckHandler(IAckHandler iackhandler)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (iackhandler == null)\n {\n break MISSING_BLOCK_LABEL_66;\n }\n iackhandler = iackhandler.asBinder();\n_L1:\n int i;\n parcel.writeStrongBinder(iackhandler);\n mRemote.transact(10, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n iackhandler = null;\n goto _L1\n iackhandler;\n parcel1.recycle();\n parcel.recycle();\n throw iackhandler;\n }\n\n Stub.Proxy(IBinder ibinder)\n {\n mRemote = ibinder;\n }\n }\n\n\n public abstract IConnection acquireConnection(ParcelableEndpointIdentity parcelableendpointidentity, ParcelableConnectionPolicy parcelableconnectionpolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract IConnection acquireConnectionEx(ParcelableEndpointIdentity parcelableendpointidentity, ParcelablePolicy parcelablepolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract void deregisterMessageHandler(int i)\n throws RemoteException;\n\n public abstract IGatewayConnectivity getGatewayConnectivity(IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract IIdentityResolver getIdentityResolver()\n throws RemoteException;\n\n public abstract boolean isInitialized()\n throws RemoteException;\n\n public abstract int registerMessageHandler(int i, IMessageHandler imessagehandler)\n throws RemoteException;\n\n public abstract void removeAckHandler()\n throws RemoteException;\n\n public abstract void routeMessage(ParcelableEndpointIdentity parcelableendpointidentity, MessageEnvelope messageenvelope, int i)\n throws RemoteException;\n\n public abstract void routeMessageFragment(ParcelableEndpointIdentity parcelableendpointidentity, int i, MessageEnvelope messageenvelope, boolean flag, int j)\n throws RemoteException;\n\n public abstract int setAckHandler(IAckHandler iackhandler)\n throws RemoteException;\n}", "public void startClient() throws RemoteException {\n\t\t\n\t\t// object to be passed to server\n\t\tString[] details = { name, dob, country, clientServiceName, hostName };\n\n\t\t// creating server stub \n\t\ttry {\n\t\t\tNaming.rebind(\"rmi://\" + hostName + \"/\" + clientServiceName, this);\n\t\t\tIServer = (IChatServer) Naming.lookup(\"rmi://\" + hostName + \"/\" + serviceName);\n\t\t} catch (ConnectException e) {\n\t\t\tJOptionPane.showMessageDialog(chatGUI.frame, \"The server seems to be unavailable\\nPlease try later\",\n\t\t\t\t\t\"Connection problem\", JOptionPane.ERROR_MESSAGE);\n\t\t\tconnectionProblem = true;\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException | MalformedURLException me) {\n\t\t\tconnectionProblem = true;\n\t\t\tme.printStackTrace();\n\t\t}\n\t\t// if no problem sends details object to the server to be processed\n\t\tif (!connectionProblem) {\n\t\t\tIServer.initiateRegister(details);\n\n\t\t}\n\t\t// print this if it was able to reach this point\n\t\tSystem.out.println(\"Client Listen RMI Server is running...\\n\");\n\t}", "public interface TCNetworkManageInterface {\n\n public String serviceIdentifier();\n\n public String apiClassPath();\n\n public String apiMethodName();\n}", "public static void main(String[] args) {\n System.out.println(\"Begin Server...\");\n\n\n\n try {\n Remote r = Naming.lookup(\"UniversalRegistry\");\n IUniversalRegistry iur = (IUniversalRegistry)r;\n\n //on ajoute des voitures dans le registre universel\n Voiture v1 = new Voiture(1);\n iur.bind(\"v1\",v1);\n Voiture v2 = new Voiture(2);\n iur.bind(\"v2\",v2);\n\n\n //On ajoute des voitures electrique dans le registre universel\n VoitureElectrique ve = new VoitureElectrique(4,0);\n iur.bind(\"ve\",ve);\n VoitureElectrique ve1 = new VoitureElectrique(4,1);\n iur.bind(\"ve1\",ve1);\n\n VoitureElectrique ve3 = new VoitureElectrique(4,1);\n iur.bind(\"ve3\",ve3);\n\n ClassTest classTest = new ClassTest();\n iur.bind(\"cl\",classTest);\n\n\n }\n\n catch(Exception e){\n e.printStackTrace();\n }\n\n\n\n }", "@Override\r\n\tpublic ServerBean connect() throws RemoteException {\n\t\tSystem.out.println(\"coming from DealServerImp\");\r\n\t\treturn null;\r\n\t}", "public void doBindService() {\n\r\n\t\tIntent serviceIntent = new Intent(MainActivity.this, LocalService.class);\r\n\r\n\t\tstartService(serviceIntent);\r\n\t\t// bindService(serviceIntent, mServiceConnection, 0);\r\n\t\tbindService(serviceIntent, mServiceConnection, BIND_AUTO_CREATE);\r\n\r\n\t\tmIsBound = true;\r\n\t}", "@Override\n\t\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\t\t\t\t\n\t\t\t\tmyAIDLService = IMyAidlInterface.Stub.asInterface(service);\n\t\t\t}", "public interface DsViaListenInterface extends DsListenInterface {\n\n /** @return port to be used as the source port of outgoing requests */\n public int getSourcePort();\n\n /** @return the interface to be used as the source port of outgoing requests */\n public InetAddress getSourceAddress();\n}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n mSecondService = ISecondary.Stub.asInterface(service);\n mKillBtn.setEnabled(true);\n }", "@Override\n public void onServiceConnected(ComponentName classname, IBinder obj) {\n Log.i(this.getClass().getName(), \"ServiceConnection\");\n mService = IAisinoService.Stub.asInterface(obj);\n }", "public void connect()\n {\n \tLog.d(TAG, \"connect\");\n \t\n \tif(!this.isConnected ) {\n mContext.bindService(new Intent(\"com.google.tungsten.LedService\"), mServiceConnection, \n \t\tContext.BIND_AUTO_CREATE);\n \t}\n }", "public interface InterfaceClient extends Remote {\n\n double seConnecter(Client client) throws RemoteException;\n\n \n\n boolean peutReserver(Reservation rv) throws RemoteException;\n\n void visualiser(Vehicule voiture) throws RemoteException;\n\n \n \n \n void deconnexion() throws RemoteException;\n\n boolean sinscrire(Client client) throws RemoteException;\n\n void inscriptionReussite(Client client) throws RemoteException;\n}", "public interface AnalyticalServiceOperationsRemoteInterface extends AnalyticalServiceOperationsBusinessInterface, EJBObject {\r\n\r\n}", "public void setup_connections()\n {\n setup_servers();\n setup_clients();\n }", "Interface getInterfaceByName(ConnectPoint connectPoint, String name);", "@Override\n\t\t\t\tpublic void onServiceConnected(ComponentName p1, IBinder p2)\n\t\t\t\t{\n\t\t\t\t}", "public interface PumaClientConnectService {\n\n int update(String clientName, ClientConnect clientConnect);\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 void initRMIBindings() {\n\tString name = null;\n\ttry {\n Configuration configuration=proxy.getConfiguration();\n if (configuration.accessLogViaRMI) {\n SipStack sipStack=proxy.getSipStack();\n Iterator it =sipStack.getListeningPoints();\n ListeningPoint lp = (ListeningPoint) it.next();\n String stackIPAddress = sipStack.getIPAddress();\n name = \"//\" + stackIPAddress + \":\" + 0 + \"/\" +\n sipStack.getStackName()\n + \"/\" + \"test.jainproxy.Registrar\";\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Exporting Registration Table \" + name);\n }\n Naming.rebind(name,this);\n }\n else {\n if (ProxyDebug.debug)\n ProxyDebug.println\n (\"We don't export the registrations because RMI is disabled.\");\n }\n } \n catch (Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Problem trying to export the Registration Table: \" + name);\n }\n\t ex.printStackTrace();\n\t}\n }", "public void StartAllServices()\n\t{\n\t\tm_oCommServ.StartCmdService(m_oConfig.CmdPort()); //Giving introducer port here\n\t\t// bring up the heartbeat receiver\n\t\tm_oCommServ.StartHeartBeatRecvr();\n\t\t//breing up the file report recvr\n\t\tm_oCommServ.StartFileReportRecvr();\n\t}", "public void connect();", "public void connect();", "public void connect();", "@Remote\r\npublic interface RappelManagerRemote\r\n extends RappelManager\r\n{\r\n\r\n\r\n}", "public void start() throws RemoteException, AlreadyBoundException\n {\n start(DEFAULT_PORT);\n }", "@Override\n public void connect(String name) throws Exception {\n }", "public interface ServiceCallListener extends ServiceInstanceCallListener, RemoteServiceCallListener {\r\n\r\n}", "public void addServiceEntriesToDD(String serviceName, String serviceEndpointInterface, String serviceEndpoint);", "public void establishConnection() {\n httpNetworkService = new HTTPNetworkService(handler);\n }", "public interface ISocketEchoServer extends ISocketServer\r\n{\r\n\r\n}", "public void connect() {}", "public interface ExportableServiceConduit\r\n{\r\n /**\r\n * Register a service as added.\r\n * \r\n * @param serviceID an identifier for the service which should be unique within the meem server.\r\n * @param service the object providing the service.\r\n * @param itemList a list of Jini Entry objects.\r\n */\r\n public void serviceAdded(String serviceID, Remote service, List<?> itemList);\r\n\r\n /**\r\n * Register a service as removed.\r\n * \r\n * @param serviceID an identifier for the service which should be unique within the meem server.\r\n */\r\n public void serviceRemoved(String serviceID);\r\n}", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tib = service;\n\t\t\tSystem.out.println(\"DEBUG>>>ServiceConnection.\");\n\t\t}", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\n\t\t\tYC_SERVICE_BINDER = IYCService.Stub.asInterface(service);\n\n\t\t}", "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}", "@RemoteServiceRelativePath(\"greet\")\npublic interface GreetingService extends RemoteService {\n\tString greetServer(String name) throws IllegalArgumentException;\n\tString registrazione(String nome, String nick, String password, String mail) throws IllegalArgumentException;\n\tString login(String nick, String passw) throws IllegalArgumentException;\n\tString caricaevento(String nome, String luogo, String descs,String dal,String al,String idKey, int check, String cause) throws IllegalArgumentException;\n\tString cancellaevento(String id,String idKey) throws IllegalArgumentException;\n\tString chiudievento(String id,String idKey) throws IllegalArgumentException;\n\tString insertJoin(String idEvento, String nome, String nick, String commento,int disp) throws IllegalArgumentException;\n\tLinkedList<Partecipa> getAllUsersJoin(String idEvento) throws IllegalArgumentException;\n\tLinkedList<Evento> getAllUserEvents(String id) throws IllegalArgumentException;\n\tLinkedList<Evento> getAllEvents() throws IllegalArgumentException;\n}", "private void connectDevices() {\n Set<DeviceId> deviceSubjects =\n cfgRegistry.getSubjects(DeviceId.class, Tl1DeviceConfig.class);\n deviceSubjects.forEach(deviceId -> {\n Tl1DeviceConfig config =\n cfgRegistry.getConfig(deviceId, Tl1DeviceConfig.class);\n connectDevice(new DefaultTl1Device(config.ip(), config.port(), config.username(),\n config.password()));\n });\n }", "public interface Client extends Endpoint, Channel, Resetable {\n\n /**\n * reconnect.\n */\n void reconnect() throws RemotingException;\n\n\n}", "public void bind() {\n\n Intent startintent = new Intent(context, MafService.class);\n startintent.setAction(\"com.baidu.maf.service\");\n\n if(ServiceControlUtil.showInSeperateProcess(context)) {\n try {\n context.startService(startintent);\n } catch (Exception e) {\n LogUtil.e(TAG, \"fail to startService\", e);\n }\n }\n\n //Intent intent = new Intent(InAppApplication.getInstance().getContext(), OutAppService.class);\n\n\n boolean result =\n context.bindService(startintent, mConnection, Context.BIND_AUTO_CREATE);\n\n LogUtil.printMainProcess(\"Service bind. reslut = \" + result);\n LogUtil.printMainProcess(\"bind. serverMessenger = \" + serverMessenger);\n mIsBound = result;\n }", "public interface IRegisteredDiscoveryServer extends IDiscoveryServer {\r\n\t\r\n \r\n\t\r\n\t/**\r\n\t * Get the local end point associated with this IRegisteredDiscoveryServer\r\n\t * @return an IEndPointData instance made from the registration information used to generate this IRegisteredDiscoveryServer.\r\n\t */\r\n\tpublic IEndPointData getLocalEndPoint();\r\n\t\r\n\t/**\r\n\t * In addition to disconnecting from the remote discovery server machine, \r\n\t * de-registers the associated end point (name/category/boundName) and\r\n\t * terminates the associated heart beat.\t \r\n\t * This method should be called when the system exists to properly de-register the end point.\r\n\t */\r\n\t@Override\r\n\tpublic void disconnect(); \t\r\n}", "public interface IServer extends Remote {\n /**\n * @param auction\n * @throws RemoteException\n */\n void placeAuction(AuctionBean auction) throws RemoteException;\n\n /**\n * @param client\n * @throws RemoteException\n * @throws InterruptedException\n */\n void register(IClient client) throws RemoteException, InterruptedException;\n\n void disconnect(IClient client) throws RemoteException;\n\n /**\n * @param client\n * @param newBid\n * @throws RemoteException\n */\n void raiseBid(IClient client, int newBid) throws RemoteException;\n\n /**\n * @param client\n * @throws RemoteException\n * @throws InterruptedException\n */\n void timeElapsed(IClient client) throws RemoteException, InterruptedException;\n\n\tvoid registerCredentials(String username, String password) throws RemoteException, InterruptedException;\n\n\tboolean verifyCredentials(String username, String password) throws RemoteException, InterruptedException;\n\t\n}", "public void testEJBBinding()\n throws Exception\n {\n getLog().debug(\"HAJndiTestCase.testEJBBinding()\");\n validateUrls();\n \n // CalledHome EJB is contained in cross-server.jar and bound during deployment\n \n // lookup binding locally on Node0 - should succeed\n Context naming = getContext(NODE0_JNDI);\n CalledHome home = (CalledHome)lookup(naming, CALLED_HOME_KEY);\n if (home != null)\n { // ensure that EJB is operational \n CalledRemote remote = home.create();\n remote.remove();\n }\n closeContext(naming);\n assertNotNull(\"lookup EJB binding on same server using local JNDI\", home);\n \n // lookup binding locally on Node1 - should succeed\n naming = getContext(NODE1_JNDI);\n home = (CalledHome)lookup(naming, CALLED_HOME_KEY);\n if (home != null)\n { // ensure that EJB is operational \n CalledRemote remote = home.create();\n remote.remove();\n }\n closeContext(naming);\n assertNotNull(\"lookup EJB binding on different server in cluster using local JNDI\", home);\n \n // lookup binding using HA-JNDI on Node0 - should succeed\n naming = getContext(NODE0_HAJNDI);\n home = (CalledHome)lookup(naming, CALLED_HOME_KEY);\n if (home != null)\n { // ensure that EJB is operational \n CalledRemote remote = home.create();\n remote.remove();\n }\n closeContext(naming);\n assertNotNull(\"lookup EJB binding on same server using HA-JNDI\", home);\n \n // lookup binding using HA-JNDI on Node1 - should succeed\n naming = getContext(NODE1_HAJNDI);\n home = (CalledHome)lookup(naming, CALLED_HOME_KEY);\n if (home != null)\n { // ensure that EJB is operational \n CalledRemote remote = home.create();\n remote.remove();\n }\n closeContext(naming);\n assertNotNull(\"lookup EJB binding on different server in cluster using HA-JNDI\", home);\n\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void onServiceConnected(ComponentName name, IBinder service)\n\t{\n\t\tLog.d(\"GenericServiceConnection\", \"Connected to ComponentName \" + name);\n\t\ttry\n\t\t{\n\t\t\tmInterface = (AIDLInterface) mAsInterface.invoke(mStub,\n\t\t\t\t\tnew Object[] { service });\n\t\t}\n\t\tcatch (IllegalArgumentException e)\n\t\t{ // Should not be possible\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IllegalAccessException e)\n\t\t{ // Should not be possible\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (InvocationTargetException e)\n\t\t{ // Should not be possible\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface IBluetoothHeadset\n extends IInterface {\n public static abstract class Stub extends Binder\n implements IBluetoothHeadset {\n private static class Proxy\n implements IBluetoothHeadset {\n\n public boolean acceptIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(13, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public IBinder asBinder() {\n return mRemote;\n }\n\n public boolean cancelConnectThread() throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n mRemote.transact(15, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if(i != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean connect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_75;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(1, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean connectHeadsetInternal(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(16, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean createIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(12, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean disconnect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_75;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean disconnectHeadsetInternal(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(17, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int getAudioState(BluetoothDevice bluetoothdevice) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_65;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(19, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int getBatteryUsageHint(BluetoothDevice bluetoothdevice) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_65;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(11, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public List getConnectedDevices() throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n java.util.ArrayList arraylist;\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n mRemote.transact(3, parcel, parcel1, 0);\n parcel1.readException();\n arraylist = parcel1.createTypedArrayList(BluetoothDevice.CREATOR);\n parcel1.recycle();\n parcel.recycle();\n return arraylist;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int getConnectionState(BluetoothDevice bluetoothdevice) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_64;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(5, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public List getDevicesMatchingConnectionStates(int ai[]) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n java.util.ArrayList arraylist;\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n parcel.writeIntArray(ai);\n mRemote.transact(4, parcel, parcel1, 0);\n parcel1.readException();\n arraylist = parcel1.createTypedArrayList(BluetoothDevice.CREATOR);\n parcel1.recycle();\n parcel.recycle();\n return arraylist;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public String getInterfaceDescriptor() {\n return \"android.bluetooth.IBluetoothHeadset\";\n }\n\n public int getPriority(BluetoothDevice bluetoothdevice) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_65;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(7, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean isAudioConnected(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(10, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean rejectIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(14, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean setAudioState(BluetoothDevice bluetoothdevice, int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_88;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int j;\n parcel.writeInt(i);\n mRemote.transact(18, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n Exception exception;\n if(j == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean setPriority(BluetoothDevice bluetoothdevice, int i) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_88;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int j;\n parcel.writeInt(i);\n mRemote.transact(6, parcel, parcel1, 0);\n parcel1.readException();\n j = parcel1.readInt();\n Exception exception;\n if(j == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean startScoUsingVirtualVoiceCall(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(20, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean startVoiceRecognition(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(8, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean stopScoUsingVirtualVoiceCall(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(21, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean stopVoiceRecognition(BluetoothDevice bluetoothdevice) throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.bluetooth.IBluetoothHeadset\");\n if(bluetoothdevice == null)\n break MISSING_BLOCK_LABEL_76;\n parcel.writeInt(1);\n bluetoothdevice.writeToParcel(parcel, 0);\n_L1:\n int i;\n mRemote.transact(9, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n Exception exception;\n if(i == 0)\n flag = false;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n parcel.writeInt(0);\n goto _L1\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n private IBinder mRemote;\n\n Proxy(IBinder ibinder) {\n mRemote = ibinder;\n }\n }\n\n\n public static IBluetoothHeadset asInterface(IBinder ibinder) {\n Object obj;\n if(ibinder == null) {\n obj = null;\n } else {\n IInterface iinterface = ibinder.queryLocalInterface(\"android.bluetooth.IBluetoothHeadset\");\n if(iinterface != null && (iinterface instanceof IBluetoothHeadset))\n obj = (IBluetoothHeadset)iinterface;\n else\n obj = new Proxy(ibinder);\n }\n return ((IBluetoothHeadset) (obj));\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j) throws RemoteException {\n int k;\n boolean flag;\n k = 0;\n flag = true;\n i;\n JVM INSTR lookupswitch 22: default 192\n // 1: 215\n // 2: 278\n // 3: 341\n // 4: 366\n // 5: 395\n // 6: 449\n // 7: 516\n // 8: 570\n // 9: 633\n // 10: 696\n // 11: 759\n // 12: 813\n // 13: 876\n // 14: 939\n // 15: 1002\n // 16: 1036\n // 17: 1099\n // 18: 1162\n // 19: 1229\n // 20: 1283\n // 21: 1346\n // 1598968902: 206;\n goto _L1 _L2 _L3 _L4 _L5 _L6 _L7 _L8 _L9 _L10 _L11 _L12 _L13 _L14 _L15 _L16 _L17 _L18 _L19 _L20 _L21 _L22 _L23\n_L1:\n flag = super.onTransact(i, parcel, parcel1, j);\n_L25:\n return flag;\n_L23:\n parcel1.writeString(\"android.bluetooth.IBluetoothHeadset\");\n continue; /* Loop/switch isn't completed */\n_L2:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice17;\n boolean flag15;\n if(parcel.readInt() != 0)\n bluetoothdevice17 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice17 = null;\n flag15 = connect(bluetoothdevice17);\n parcel1.writeNoException();\n if(flag15)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L3:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice16;\n boolean flag14;\n if(parcel.readInt() != 0)\n bluetoothdevice16 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice16 = null;\n flag14 = disconnect(bluetoothdevice16);\n parcel1.writeNoException();\n if(flag14)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L4:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n List list1 = getConnectedDevices();\n parcel1.writeNoException();\n parcel1.writeTypedList(list1);\n continue; /* Loop/switch isn't completed */\n_L5:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n List list = getDevicesMatchingConnectionStates(parcel.createIntArray());\n parcel1.writeNoException();\n parcel1.writeTypedList(list);\n continue; /* Loop/switch isn't completed */\n_L6:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice15;\n int k1;\n if(parcel.readInt() != 0)\n bluetoothdevice15 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice15 = null;\n k1 = getConnectionState(bluetoothdevice15);\n parcel1.writeNoException();\n parcel1.writeInt(k1);\n continue; /* Loop/switch isn't completed */\n_L7:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice14;\n boolean flag13;\n if(parcel.readInt() != 0)\n bluetoothdevice14 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice14 = null;\n flag13 = setPriority(bluetoothdevice14, parcel.readInt());\n parcel1.writeNoException();\n if(flag13)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L8:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice13;\n int j1;\n if(parcel.readInt() != 0)\n bluetoothdevice13 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice13 = null;\n j1 = getPriority(bluetoothdevice13);\n parcel1.writeNoException();\n parcel1.writeInt(j1);\n continue; /* Loop/switch isn't completed */\n_L9:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice12;\n boolean flag12;\n if(parcel.readInt() != 0)\n bluetoothdevice12 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice12 = null;\n flag12 = startVoiceRecognition(bluetoothdevice12);\n parcel1.writeNoException();\n if(flag12)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L10:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice11;\n boolean flag11;\n if(parcel.readInt() != 0)\n bluetoothdevice11 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice11 = null;\n flag11 = stopVoiceRecognition(bluetoothdevice11);\n parcel1.writeNoException();\n if(flag11)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L11:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice10;\n boolean flag10;\n if(parcel.readInt() != 0)\n bluetoothdevice10 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice10 = null;\n flag10 = isAudioConnected(bluetoothdevice10);\n parcel1.writeNoException();\n if(flag10)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L12:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice9;\n int i1;\n if(parcel.readInt() != 0)\n bluetoothdevice9 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice9 = null;\n i1 = getBatteryUsageHint(bluetoothdevice9);\n parcel1.writeNoException();\n parcel1.writeInt(i1);\n continue; /* Loop/switch isn't completed */\n_L13:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice8;\n boolean flag9;\n if(parcel.readInt() != 0)\n bluetoothdevice8 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice8 = null;\n flag9 = createIncomingConnect(bluetoothdevice8);\n parcel1.writeNoException();\n if(flag9)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L14:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice7;\n boolean flag8;\n if(parcel.readInt() != 0)\n bluetoothdevice7 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice7 = null;\n flag8 = acceptIncomingConnect(bluetoothdevice7);\n parcel1.writeNoException();\n if(flag8)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L15:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice6;\n boolean flag7;\n if(parcel.readInt() != 0)\n bluetoothdevice6 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice6 = null;\n flag7 = rejectIncomingConnect(bluetoothdevice6);\n parcel1.writeNoException();\n if(flag7)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L16:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n boolean flag6 = cancelConnectThread();\n parcel1.writeNoException();\n if(flag6)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L17:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice5;\n boolean flag5;\n if(parcel.readInt() != 0)\n bluetoothdevice5 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice5 = null;\n flag5 = connectHeadsetInternal(bluetoothdevice5);\n parcel1.writeNoException();\n if(flag5)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L18:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice4;\n boolean flag4;\n if(parcel.readInt() != 0)\n bluetoothdevice4 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice4 = null;\n flag4 = disconnectHeadsetInternal(bluetoothdevice4);\n parcel1.writeNoException();\n if(flag4)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L19:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice3;\n boolean flag3;\n if(parcel.readInt() != 0)\n bluetoothdevice3 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice3 = null;\n flag3 = setAudioState(bluetoothdevice3, parcel.readInt());\n parcel1.writeNoException();\n if(flag3)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L20:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice2;\n int l;\n if(parcel.readInt() != 0)\n bluetoothdevice2 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice2 = null;\n l = getAudioState(bluetoothdevice2);\n parcel1.writeNoException();\n parcel1.writeInt(l);\n continue; /* Loop/switch isn't completed */\n_L21:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice1;\n boolean flag2;\n if(parcel.readInt() != 0)\n bluetoothdevice1 = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice1 = null;\n flag2 = startScoUsingVirtualVoiceCall(bluetoothdevice1);\n parcel1.writeNoException();\n if(flag2)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L22:\n parcel.enforceInterface(\"android.bluetooth.IBluetoothHeadset\");\n BluetoothDevice bluetoothdevice;\n boolean flag1;\n if(parcel.readInt() != 0)\n bluetoothdevice = (BluetoothDevice)BluetoothDevice.CREATOR.createFromParcel(parcel);\n else\n bluetoothdevice = null;\n flag1 = stopScoUsingVirtualVoiceCall(bluetoothdevice);\n parcel1.writeNoException();\n if(flag1)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n if(true) goto _L25; else goto _L24\n_L24:\n }\n\n private static final String DESCRIPTOR = \"android.bluetooth.IBluetoothHeadset\";\n static final int TRANSACTION_acceptIncomingConnect = 13;\n static final int TRANSACTION_cancelConnectThread = 15;\n static final int TRANSACTION_connect = 1;\n static final int TRANSACTION_connectHeadsetInternal = 16;\n static final int TRANSACTION_createIncomingConnect = 12;\n static final int TRANSACTION_disconnect = 2;\n static final int TRANSACTION_disconnectHeadsetInternal = 17;\n static final int TRANSACTION_getAudioState = 19;\n static final int TRANSACTION_getBatteryUsageHint = 11;\n static final int TRANSACTION_getConnectedDevices = 3;\n static final int TRANSACTION_getConnectionState = 5;\n static final int TRANSACTION_getDevicesMatchingConnectionStates = 4;\n static final int TRANSACTION_getPriority = 7;\n static final int TRANSACTION_isAudioConnected = 10;\n static final int TRANSACTION_rejectIncomingConnect = 14;\n static final int TRANSACTION_setAudioState = 18;\n static final int TRANSACTION_setPriority = 6;\n static final int TRANSACTION_startScoUsingVirtualVoiceCall = 20;\n static final int TRANSACTION_startVoiceRecognition = 8;\n static final int TRANSACTION_stopScoUsingVirtualVoiceCall = 21;\n static final int TRANSACTION_stopVoiceRecognition = 9;\n\n public Stub() {\n attachInterface(this, \"android.bluetooth.IBluetoothHeadset\");\n }\n }\n\n\n public abstract boolean acceptIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean cancelConnectThread() throws RemoteException;\n\n public abstract boolean connect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean connectHeadsetInternal(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean createIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean disconnect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean disconnectHeadsetInternal(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract int getAudioState(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract int getBatteryUsageHint(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract List getConnectedDevices() throws RemoteException;\n\n public abstract int getConnectionState(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract List getDevicesMatchingConnectionStates(int ai[]) throws RemoteException;\n\n public abstract int getPriority(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean isAudioConnected(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean rejectIncomingConnect(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean setAudioState(BluetoothDevice bluetoothdevice, int i) throws RemoteException;\n\n public abstract boolean setPriority(BluetoothDevice bluetoothdevice, int i) throws RemoteException;\n\n public abstract boolean startScoUsingVirtualVoiceCall(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean startVoiceRecognition(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean stopScoUsingVirtualVoiceCall(BluetoothDevice bluetoothdevice) throws RemoteException;\n\n public abstract boolean stopVoiceRecognition(BluetoothDevice bluetoothdevice) throws RemoteException;\n}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tMyRemote service = (MyRemote) Naming.lookup(\"rmi://127.0.0.1:6600/remoteTest\");\r\n\t\t\tString s = service.sayHello();\r\n\t\t\tSystem.out.println(s);\r\n\t\t} catch (MalformedURLException | RemoteException | NotBoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public interface DictionaryService extends Remote {\n\t\n\tpublic String search(String Word) throws RemoteException, IOException;\n\tpublic void populate() throws RemoteException, IOException;\n\n}", "public void addPorts(){\n\t\t\n\t}", "public abstract void connect(JMXServiceURL url, Map<String, Object> env) throws IOException;", "public interface IConnectionManager {\n void dial(String phoneNumber);\n\n void hangup();\n}", "private void connectClient(String clientName) {\n for(String client : ports.keySet()) {\n if(client != clientName) {\n for(int i = 0; i < 2; i++) {\n //outputs of this go to inputs of others\n String out = ports.get(clientName)[1].get(i);\n String otherIn = ports.get(client)[0].get(i);\n //all outputs of other clients go to this client\n if(out != null && otherIn != null) {\n makeConnection(clientName + \":\" + out, client + \":\" + otherIn);\n }\n //outputs of others go to inputs of this\n String in = ports.get(clientName)[0].get(i);\n String otherOut = ports.get(client)[1].get(i);\n if(in != null && otherOut != null) {\n //this client's outputs go to all other clients\n makeConnection(client + \":\" + otherOut, clientName + \":\" + in);\n }\n }\n }\n }\n\t}", "public interface Service extends AsyncRunnable, Remote {\n\n\tint registryPort() throws RemoteException;\n\n\tString name() throws RemoteException;\n}", "public interface Connector {\n Object send(String serviceName, Object... params) throws Exception;\n Object send(String serviceName, List params) throws Exception;\n}", "public void connect() {\n aiConfiguration = new AIConfiguration(getClientAccessToken(),\n AIConfiguration.SupportedLanguages.English,\n AIConfiguration.RecognitionEngine.System);\n aiService = AIService.getService(context, aiConfiguration);\n aiService.setListener(this);\n aiDataService = new AIDataService(context, aiConfiguration);\n }", "public void connectService() {\n log_d( \"connectService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) {\n\t\t\ttoast_short( \"No Action in debug\" );\n \treturn;\n }\n\t\t// connect the BT device at once\n\t\t// if there is a device address. \n\t\tString address = getPrefAddress();\n\t\tif ( isPrefUseDevice() && ( address != null) && !address.equals(\"\") ) {\n\t \tBluetoothDevice device = mBluetoothAdapter.getRemoteDevice( address );\n\t \tif ( mBluetoothService != null ) {\n\t \t log_d( \"connect \" + address );\n\t \tmBluetoothService.connect( device );\n\t }\n\t\t// otherwise\n\t\t// send message for the intent of the BT device list\n\t\t} else {\n\t\t\tnotifyDeviceList();\n\t\t}\n\t}", "public interface OperationServiceService extends javax.xml.rpc.Service {\n public java.lang.String getOperationServiceAddress();\n\n public fr.uphf.service.OperationService getOperationService() throws javax.xml.rpc.ServiceException;\n\n public fr.uphf.service.OperationService getOperationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;\n}" ]
[ "0.67630124", "0.6455511", "0.62645155", "0.61737645", "0.61593574", "0.61478245", "0.6127625", "0.6011785", "0.59699565", "0.5931664", "0.58849406", "0.5812276", "0.57382476", "0.5727975", "0.5714461", "0.5709346", "0.5700631", "0.5683637", "0.56820124", "0.5674117", "0.56532264", "0.5645576", "0.563969", "0.56233495", "0.56132996", "0.56074524", "0.5605631", "0.55941594", "0.5560375", "0.55498683", "0.55330765", "0.552707", "0.5526962", "0.5525569", "0.5524043", "0.5519007", "0.5518867", "0.54970986", "0.5493885", "0.54936785", "0.54880285", "0.5487926", "0.5485132", "0.54772997", "0.54761225", "0.5475032", "0.54688066", "0.5465056", "0.54638135", "0.5461549", "0.54596907", "0.5455768", "0.5454168", "0.54489845", "0.544535", "0.544284", "0.54227", "0.540414", "0.5403345", "0.5401228", "0.53932416", "0.539018", "0.5388752", "0.53873426", "0.5387159", "0.5376674", "0.5376674", "0.5376674", "0.53739434", "0.5368142", "0.5366843", "0.53595394", "0.5352489", "0.53495675", "0.53413475", "0.53410614", "0.5335265", "0.53339934", "0.5323694", "0.53219676", "0.53184605", "0.5315136", "0.53149533", "0.531082", "0.5304261", "0.52989495", "0.5296512", "0.529577", "0.52916926", "0.5286751", "0.52838355", "0.5281737", "0.52773124", "0.5275099", "0.5272664", "0.526698", "0.5259017", "0.5258423", "0.525647", "0.52557296" ]
0.5848266
11
To kill the process hosting our service , We need to know its PID, Conveniently our service has a call that will return to us that information
@Override public void onClick(View v) { if (mSecondService != null) { try { int pid = mSecondService.getPid(); // Note that, though this api allows us to request // to kill any process based on its pid, the kernel // will still impose standard restrictions on which // PID you actually able to kill. typically this means // only the process running your application and any additional // processes created by that app as shown here; packages sharing // a common UID will also be able to kill each other's processes Process.killProcess(pid); mCallbackText.setText("Killed service process"); } catch (RemoteException e) { e.printStackTrace(); //Recover gracefully from the process hosting the server dying // Just for purposes of the sample, put up a notification Log.i(TAG, "Failure calling RemoteService"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void kill(long procid);", "public Map killServerProcess(String id) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"kill\"));\n\t}", "String getPid();", "@DELETE\n @ApiOperation(\"Forcefully stops a process\")\n @javax.ws.rs.Path(\"/{id}\")\n @WithTimer\n public void kill(@ApiParam @PathParam(\"id\") UUID instanceId) {\n ProcessKey processKey = assertProcessKey(instanceId);\n processManager.kill(processKey);\n }", "void abortProcess(Long processInstanceId);", "private void nativeKill()\n {\n if (process == null)\n {\n return;\n }\n for (Field f : process.getClass().getDeclaredFields())\n {\n if (\"pid\".equals(f.getName()))\n {\n if (makeFieldAccessible(f))\n {\n try\n {\n int pid = f.getInt(process);\n Runtime.getRuntime().exec(\n new String[] {\"kill\", \"-9\", Integer.toString(pid)});\n }\n catch (Throwable e)\n {\n // Ignore, we tried our best\n }\n }\n break;\n }\n else if (\"handle\".equals(f.getName()))\n {\n if (makeFieldAccessible(f))\n {\n try\n {\n long handleId = f.getLong(process);\n\n Kernel32 kernel = Kernel32.INSTANCE;\n HANDLE handle = new HANDLE();\n handle.setPointer(Pointer.createConstant(handleId));\n int pid = kernel.GetProcessId(handle);\n Runtime.getRuntime().exec(\n new String[] {\"taskkill\", \"/PID\", Integer.toString(pid), \"/F\"});\n }\n catch (Throwable e)\n {\n // Ignore, we tried our best\n }\n }\n break;\n }\n }\n }", "public static int killProcess(Process process)\n\t{\n\t\t// process.destroy();\n\t\tString os = System.getProperty(\"os.name\");\n\t\t\n\t\tint pid = -1;\n\t\tif (os.startsWith(\"Windows\")) {\n\t\t\tpid = getPidForWindows(process);\n\t\t\tString[] commondArray =\n\t\t\t{ \"taskkill\", \"/PID\", String.valueOf(pid), \"/F\", \"/T\" };\n\t\t\tif (pid != -1) {\n\t\t\t\ttry {\n\t\t\t\t\tProcess killProcess = Runtime.getRuntime().exec(commondArray);\n\t\t\t\t\tkillProcess.getOutputStream().close();\n\t\t\t\t\tkillProcess.getInputStream().close();\n\t\t\t\t\tkillProcess.getErrorStream().close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tprocess.destroy();\n\t\t\t\t\tLOGGER.equals(\"cannot kill process, pid [ \" + pid + \" ]\");\n\t\t\t\t\treturn -1; // cannot kill process\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tLOGGER.error(\"failed to get pid for process [ \" + process.toString() + \" ]\");\n\t\t\t\tprocess.destroy();\n\t\t\t\treturn -2; // cannot get pid\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tpid = getPidForUnix(process);\n\t\t\tString[] commondArray =\n\t\t\t{ \"kill\", \"-9\", String.valueOf(pid) };\n\t\t\tif (pid != -1) {\n\t\t\t\ttry {\n\t\t\t\t\tProcess killProcess = Runtime.getRuntime().exec(commondArray);\n\t\t\t\t\tkillProcess.getOutputStream().close();\n\t\t\t\t\tkillProcess.getInputStream().close();\n\t\t\t\t\tkillProcess.getErrorStream().close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tprocess.destroy();\n\t\t\t\t\tLOGGER.equals(\"cannot kill process, pid [ \" + pid + \" ]\");\n\t\t\t\t\treturn -1; // cannot kill process\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tLOGGER.error(\"failed to get pid for process [ \" + process.toString() + \" ]\");\n\t\t\t\tprocess.destroy();\n\t\t\t\treturn -2; // cannot get pid\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "@Override \n public void commandKill(int id) {\n\n }", "public static String getPid() {\n\t\tString name = ManagementFactory.getRuntimeMXBean().getName(); \n\t\t// get pid \n\t\treturn name.split(\"@\")[0];\n\t}", "void instanceKilled(String pid, IKilledResult result);", "java.lang.String getProcessId();", "int getpid();", "@Override\n\tpublic void kill() {\n\n\t}", "public InternalServiceProcess getInternalServiceProcess();", "IPID getPID();", "public void kill();", "public void kill();", "@Override\n public void onKill() {\n }", "@Override\n public void kill()\n {\n }", "public List<Integer> killProcess(List<Integer> pid, List<Integer> ppid, int kill) {\n List<Integer> res = new LinkedList<>();\n Map<Integer, List<Integer>> map = buildMap(pid, ppid);\n res = bfsIteration(map, kill);\n return res;\n }", "protected abstract void doKill();", "public native int stopService(long nativeHandle);", "public int getPid() {\n return pid;\n }", "static String getMyPid() {\n String pid = \"0\";\n try {\n final String nameStr = ManagementFactory.getRuntimeMXBean().getName();\n\n // XXX (bjorn): Really stupid parsing assuming that nameStr will be of the form\n // \"pid@hostname\", which is probably not guaranteed.\n pid = nameStr.split(\"@\")[0];\n } catch (RuntimeException e) {\n // Fall through.\n }\n return pid;\n }", "public Map stopServerProcess(String id) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"stop\"));\n\t}", "public static int getPID() {\n return Integer.parseInt(ManagementFactory.getRuntimeMXBean().getName().split(\"@\")[0]);\n }", "public String getPid() {\r\n return pid;\r\n }", "public KillProcResponse killProc(String runId, Map<String, String> options) throws GPUdbException {\n KillProcRequest actualRequest_ = new KillProcRequest(runId, options);\n KillProcResponse actualResponse_ = new KillProcResponse();\n submitRequest(\"/kill/proc\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }", "public static void kill(long id) throws IOException {\n String command = \"kill -9\";\n if (isSoWindows()) {\n command = \"taskkill /F /PID\";\n }\n runCommandInSo(command + \" \" + id);\n }", "public String getPid() {\n return pid;\n }", "public abstract String killClient() throws ServiceManagerException;", "public void unsetProcessPidValue() throws JNCException {\n delete(\"process-pid\");\n }", "public static boolean kill(@NonNull TaskExecutionContext request) {\n try {\n logger.info(\"Begin kill task instance, processId: {}\", request.getProcessId());\n int processId = request.getProcessId();\n if (processId == 0) {\n logger.error(\"Task instance kill failed, processId is not exist\");\n return false;\n }\n\n String cmd = String.format(\"kill -9 %s\", getPidsStr(processId));\n cmd = OSUtils.getSudoCmd(request.getTenantCode(), cmd);\n logger.info(\"process id:{}, cmd:{}\", processId, cmd);\n\n OSUtils.exeCmd(cmd);\n logger.info(\"Success kill task instance, processId: {}\", request.getProcessId());\n return true;\n } catch (Exception e) {\n logger.error(\"Kill task instance error, processId: {}\", request.getProcessId(), e);\n return false;\n }\n }", "public void Kill();", "@Override\r\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tinfos = packageInfo.getRunningProcess();\r\n\t\tLog.v(\"serry\", \"2\");\r\n\t\treturn super.onStartCommand(intent, flags, START_STICKY);\r\n\t}", "public KillProcResponse killProc(KillProcRequest request) throws GPUdbException {\n KillProcResponse actualResponse_ = new KillProcResponse();\n submitRequest(\"/kill/proc\", request, actualResponse_, false);\n return actualResponse_;\n }", "public final void kill() {\n doKill();\n }", "@NativeType(\"pid_t\")\n public static long getpid() {\n long __functionAddress = Functions.getpid;\n return invokeP(__functionAddress);\n }", "@Override\n public int detener(){\n \n try {\n Process proceso;\n proceso = Runtime.getRuntime().exec(\"/etc/init.d/\"+nombreServicio+\" stop\");\n InputStream is = proceso.getInputStream(); \n BufferedReader buffer = new BufferedReader (new InputStreamReader (is));\n String resultado = buffer.readLine();\n \n if(resultado.contains(\"Stopping \"+nombreServicio)){\n return 1;\n }\n } \n catch (IOException ex) {\n Logger.getLogger(Servicio.class.getName()).log(Level.SEVERE, null, ex);\n }\n return 0;\n }", "protected String getProcessId() {\n return getClass().getName();\n }", "public static Long getPid() {\n String name = ManagementFactory.getRuntimeMXBean().getName();\n List<String> nameParts = Splitter.on('@').splitToList(name);\n if (nameParts.size() == 2) { // 12345@somewhere\n try {\n return Long.parseLong(Iterators.get(nameParts.iterator(), 0));\n } catch (NumberFormatException ex) {\n LOG.warn(\"Failed to get PID from [\" + name + \"]\", ex);\n }\n } else {\n LOG.warn(\"Don't know how to get PID from [\" + name + \"]\");\n }\n return null;\n }", "@Override\n public ReturnT<String> kill(String jobId) {\n JobThread jobThread = CcbJobExecutor.loadJobThread(jobId);\n if (jobThread != null) {\n \tCcbJobExecutor.removeJobThread(jobId, \"人工手动终止\");\n return ReturnT.SUCCESS;\n }\n\n return new ReturnT<String>(ReturnT.SUCCESS_CODE, \"job thread aleady killed.\");\n }", "public String getPid() {\r\n return this.pid;\r\n }", "public String getProcessId()\r\n\t{\r\n\t\treturn processId;\r\n\t}", "process finishService ();", "public native int getProcess();", "public String getPid() {\n\t\treturn pid;\n\t}", "public abstract long getProcessID();", "public void stopService();", "public final int getProcessId() {\n \treturn m_pid;\n }", "public void kill()\n\t{\n\t\tisKilled = true;\n\t}", "static public void killApp(Context context,String packageName){ \n\t\tLog.e(\"Killing app......\",packageName);\n\t\tActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n\t\tmanager.killBackgroundProcesses(packageName);\n\t\t\n\t\tLog.e(\"done\",packageName);\n\t}", "public void killIt() {\n isRunning = false;\n killed = true;\n hardKill = true;\n\n dumpState();\n if (UIMAFramework.getLogger().isLoggable(Level.INFO)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_killing_cpm__INFO\",\n new Object[] { Thread.currentThread().getName() });\n }\n if (workQueue != null) {\n while (workQueue.getCurrentSize() > 0) {\n workQueue.dequeue();\n }\n }\n if (outputQueue != null) {\n while (outputQueue.getCurrentSize() > 0) {\n outputQueue.dequeue();\n }\n }\n if (casPool != null) {\n synchronized (casPool) {\n casPool.notifyAll();\n }\n }\n if (workQueue != null) {\n Object[] eofToken = new Object[1];\n // only need one member in the array\n eofToken[0] = new EOFToken();\n workQueue.enqueue(eofToken);\n UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_terminate_pipelines__INFO\",\n new Object[] { Thread.currentThread().getName(), String.valueOf(killed) });\n // synchronized (workQueue) { // redundant - enqueue call above does this\n // workQueue.notifyAll();\n // }\n }\n\n }", "public Integer getPid() {\n return pid;\n }", "public Integer getPid() {\n return pid;\n }", "public Integer getPid() {\n return pid;\n }", "public Integer getPid() {\n return pid;\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "@Override\n\tpublic void destroyProcess() {\n\t\tsuper.destroyProcess();\n\t\tDataDirRemoverHandler ddhHandler = \n\t\t\tnew DataDirRemoverHandler(getLogHandler());\n\t\tddhHandler.setRetryLimitInMillis(2000);\n\t\tddhHandler.execute();\n\t\tportsInUse.remove(port);\n\t}", "public Long getPid() {\n return pid;\n }", "private String createPID() {\n return \"7777\";\n }", "public void stopProcess() {\r\n\t\tprocess = false;\r\n\t}", "public String getProcessName() throws RemoteException;", "public java.lang.String getProcessId() {\n return processId;\n }", "public java.lang.String getProcessId() {\n return processId;\n }", "public void kill(String jobId) throws NotBoundException, RemoteException {\n\t\tRegistry registry = LocateRegistry.getRegistry(registryHost,\n\t\t\t\tregistryPort);\n\t\tJobTracker jobTracker = (JobTracker) registry.lookup(\"JobTracker\");\n\t\tjobTracker.kill(jobId);\n\t}", "public static String getPid() {\n String retVal = \"-\";\n Vector<String> commands = new Vector<String>();\n commands.add(\"/bin/bash\");\n commands.add(\"-c\");\n commands.add(\"echo $PPID\");\n ProcessBuilder pb = new ProcessBuilder(commands);\n try {\n Process pr = pb.start();\n pr.waitFor();\n if (pr.exitValue() == 0) {\n BufferedReader outReader = new BufferedReader(\n new InputStreamReader(pr.getInputStream()));\n retVal = outReader.readLine().trim();\n }\n } catch (Exception e) {\n }\n return retVal;\n }", "String getProcessInstanceID();", "public static void TerminateServer() {\n System.out.println(\"Killing server...\");\n ProcessBuilder builder = new ProcessBuilder();\n builder.command(\"bash\", \"-c\", \"sudo shutdown -h now\");\n\n try {\n // Start the process and get the output\n Process process = builder.start();\n StringBuilder output = new StringBuilder();\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(process.getInputStream()));\n\n // Read the output line by line\n String line;\n while ((line = reader.readLine()) != null) {\n output.append(line + \"\\n\");\n }\n\n // Wait for the process to end, respond accordingly\n int exitVal = process.waitFor();\n if (exitVal == 0) {\n System.out.println(\"Success!\");\n System.out.println(output);\n System.exit(0);\n }\n else {\n System.out.println(\"Failed to kill server\");\n }\n }\n catch (IOException | InterruptedException e) {\n System.out.println(\"Failed to kill server\");\n }\n }", "public void release_pid(int pid)\n {\n pid_map[pid-MIN_PID] = false;\n }", "protected void processDestroy()\n {\n }", "private Long unixLikeProcessId(Process process) {\n Class<?> clazz = process.getClass();\n try {\n if (clazz.getName().equals(\"java.lang.UNIXProcess\")) {\n Field pidField = clazz.getDeclaredField(\"pid\");\n pidField.setAccessible(true);\n Object value = pidField.get(process);\n if (value instanceof Integer) {\n log.debug(\"Detected pid: \" + value);\n return ((Integer) value).longValue();\n }\n }\n } catch (SecurityException sx) {\n log.error(\"SecurityException: \", sx);\n } catch (NoSuchFieldException e) {\n log.error(\"NoSuchFieldException: \", e);\n } catch (IllegalArgumentException e) {\n log.error(\"IllegalArgumentException: \", e);\n } catch (IllegalAccessException e) {\n log.error(\"IllegalAccessException: \", e);\n }\n return null;\n }", "public static synchronized void stop() {\n\n if (proc != null) {\n proc.destroy();\n try {\n // wait for the process to really stop\n proc.waitFor();\n } catch (InterruptedException e) {\n // ignore\n }\n try {\n // leeway since sometimes the unbind happens after\n Thread.sleep(500);\n } catch (InterruptedException e) {\n // ignore\n }\n proc = null;\n }\n }", "private synchronized static void killNBDModule() {\n String command = \"sudo killall qemu-nbd\";\n LOG.debug(\"ics.core.io.FileUtils.killNBDModule():\");\n ProcessResult result = ShellUtil.executeShellCommand(command);\n if (result.getExitCode() != 0) {\n LOG.error(\"ics.core.io.FileUtils.killNBDModule(): Error - exit code: \"\n + result.getExitCode());\n //LOG.error(\"ics.core.io.FileUtils.killNBDModule(): Standard output:\\n\"\n // + result.getStandardOut());\n //LOG.error(\"ics.core.io.FileUtils.killNBDModule(): Standard error:\\n\"\n // + result.getStandardError());\n }\n }", "public void stopPropose(int instanceId);", "pb4server.KillPrisonAskReq getKillPrisonAskReq();", "private long determinePID(final Process p)\n {\n long pid = -1;\n\n try\n {\n // Unix variants incl. OSX\n if (p.getClass().getSimpleName().equals(\"UNIXProcess\"))\n {\n final Class<?> clazz = p.getClass();\n final Field pidF = clazz.getDeclaredField(\"pid\");\n\n pidF.setAccessible(true);\n\n Object oPid = pidF.get(p);\n\n if (oPid instanceof Number)\n {\n pid = ((Number) oPid).longValue();\n }\n else if (oPid instanceof String)\n {\n pid = Long.parseLong((String) oPid);\n }\n }\n\n // Windows processes, i.e. Win32Process or ProcessImpl\n else\n {\n RuntimeMXBean rtb = ManagementFactory.getRuntimeMXBean();\n final String sProcess = rtb.getName();\n final int iPID = sProcess.indexOf('@');\n\n if (iPID > 0)\n {\n String sPID = sProcess.substring(0, iPID);\n\n pid = Long.parseLong(sPID);\n }\n }\n }\n catch (SecurityException e)\n {\n }\n catch (NoSuchFieldException e)\n {\n }\n catch (IllegalArgumentException e)\n {\n }\n catch (IllegalAccessException e)\n {\n }\n\n return pid;\n }", "public final int getProcessId() {\n\t\treturn this.processId;\n\t}", "public void kill() {\n this.server.stop();\n }", "public String getProcessID()\n {\n return processID;\n }", "private static String m29548a(Context context) {\n ActivityManager activityManager = (ActivityManager) context.getSystemService(\"activity\");\n int myPid = Process.myPid();\n for (RunningAppProcessInfo runningAppProcessInfo : activityManager.getRunningAppProcesses()) {\n if (runningAppProcessInfo.pid == myPid) {\n return runningAppProcessInfo.processName;\n }\n }\n return null;\n }", "public boolean stopProgram(String progamId);", "@DeleteMapping(value = \"/{processId}\")\n\tpublic ResponseEntity<HttpStatus> deleteProcess(@PathVariable long processId) {\n\t\tservice.deleteProcess(processId);\n\t\treturn new ResponseEntity<>(HttpStatus.OK);\n\t}", "public static String _service_destroy() throws Exception{\nreturn \"\";\n}", "String process_name () throws BaseException;", "Process getProcess();", "@Nullable\n public String readProcessName(int pid) throws IOException, InterruptedException, TimeoutException {\n // Debug\n String tag = TAG + \": readProcessName()\";\n Log.d(tag, \"Called\");\n\n // Start process with root\n Process proc = Runtime.getRuntime().exec(\"su\");\n\n // Input commands:\n // cat \"/proc/$PID/status\n // exit\n OutputStream stdin = proc.getOutputStream();\n stdin.write(String.format(\"cat /proc/%s/status\\n\", Integer.toString(pid)).getBytes());\n stdin.write(\"exit\\n\".getBytes());\n stdin.flush();\n stdin.close();\n\n // Create regular expression patter for looking for process name in it's status\n Pattern namePattern = Pattern.compile(\"^Name:\\\\s+(.+)$\");\n\n // Gather and parse status from the stdout\n BufferedReader stdout = new BufferedReader(new InputStreamReader(proc.getInputStream()));\n String line;\n while ((line = stdout.readLine()) != null) {\n Matcher result = namePattern.matcher(line);\n if (line == null) continue;\n\n Boolean matches = result.matches();\n Log.d(tag, line + \": \" + matches.toString()); // Debug\n if (!result.matches()) continue;\n\n String processName = result.group();\n Log.d(tag, \"Return: \" + processName); // Debug\n return result.group();\n\n }\n stdout.close();\n\n // Handle timing out execution\n if (Build.VERSION.SDK_INT >= 26) {\n boolean exited = proc.waitFor(1L, TimeUnit.SECONDS);\n if (!exited) {\n proc.destroy();\n throw new TimeoutException();\n }\n } else {\n proc.waitFor();\n }\n Log.d(tag, \"Exited with: \" + Integer.toString(proc.exitValue())); // Debug\n\n return null;\n }", "public abstract void stopService();", "public void run() {\n\t\t\t\t\t\tcmd.killProcess(deviceId, \"monkey\");\n\t\t\t\t\t}", "public void run() {\n\t\t\t\t\t\tcmd.killProcess(deviceId, \"monkey\");\n\t\t\t\t\t}", "public void killIEServer() {\n\t\ttry {\n\n\t\t\tTestUtil.pause(5);\n\n\t\t\tString[] cmd = new String[3];\n\t\t\tcmd[0] = \"cmd.exe\";\n\t\t\tcmd[1] = \"/C\";\n\t\t\tcmd[2] = \"taskkill /F /IM iexplore.exe\";\n\n\t\t\tProcess process = Runtime.getRuntime().exec(cmd);\n\n\t\t\tProcess process1 = Runtime.getRuntime().exec(\"taskkill /F /IM IEDriverServer.exe\");\n\n\t\t\tSystem.err.println(process + \"\" + process1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@ResponseBody\n @ResponseStatus(HttpStatus.NO_CONTENT)\n @DeleteMapping(path = ProcessesApi.BASE_URL + \"/{id:.+}\")\n void undeployProcess(@PathVariable(\"id\") String id)\n throws ProcessNotFoundException, UndeletableProcessException;", "public static final int getProcessId() {\n\t\treturn ID;\n\t}", "public void abort()\n\t{\n\t\tif(process != null)\n\t\t\tprocess.destroy();\n\t}", "public static void cancelProcess() {\r\n\r\n if (m_Proc != null) {\r\n if (m_bProcInterruptible) {\r\n m_Proc.destroy();\r\n m_Proc = null;\r\n m_bProcCanceled = true;\r\n }\r\n }\r\n\r\n }", "public void markProcessPidDelete() throws JNCException {\n markLeafDelete(\"processPid\");\n }", "public void stopZapServer() {\n if (process == null) return; //ZAP not running\n try {\n LogManager.suitLogger.info(\"Stopping ZAP\");\n api.core.shutdown();\n Thread.sleep(2000);\n process.destroy();\n } catch (final Exception e) {\n LogManager.suitLogger.error(\"Error shutting down ZAP.\", e);\n }\n }", "public YangUInt32 getProcessPidValue() throws JNCException {\n return (YangUInt32)getValue(\"process-pid\");\n }", "public void kill() { _isAlive = false; }" ]
[ "0.762113", "0.7029089", "0.68580574", "0.6751603", "0.6751384", "0.6749166", "0.65780014", "0.64482504", "0.6430835", "0.6374353", "0.63536876", "0.6265393", "0.62520355", "0.62501466", "0.62193024", "0.6203333", "0.6203333", "0.61977565", "0.61580056", "0.6156856", "0.6143569", "0.611499", "0.6070354", "0.6058942", "0.60508245", "0.601837", "0.6007621", "0.6003135", "0.59875417", "0.5957713", "0.595152", "0.5939486", "0.5924486", "0.5912734", "0.5899033", "0.5895835", "0.58785117", "0.5876601", "0.587203", "0.58491445", "0.5839414", "0.58321255", "0.5830271", "0.582471", "0.58184797", "0.5803626", "0.57912403", "0.5779197", "0.57507306", "0.5744849", "0.5728896", "0.57169175", "0.5714098", "0.5706086", "0.5706086", "0.5706086", "0.5706086", "0.57026", "0.57026", "0.5692523", "0.563667", "0.5636433", "0.56360865", "0.56357497", "0.56187713", "0.56187713", "0.5608653", "0.5603206", "0.56002325", "0.5584622", "0.5581381", "0.5580989", "0.5577987", "0.55744725", "0.55623025", "0.555471", "0.55542904", "0.5553186", "0.5550521", "0.55288774", "0.5520236", "0.5519477", "0.55027175", "0.55011773", "0.5498943", "0.5483836", "0.5479506", "0.5469079", "0.5466924", "0.5466364", "0.5466364", "0.5452736", "0.5429612", "0.54289263", "0.5401927", "0.53993565", "0.5350714", "0.5344109", "0.5313814", "0.53121644" ]
0.61108917
22
This is called when the connection with the service has been unexpectedly disconnected that is ,its process crashed.
@Override public void onServiceDisconnected(ComponentName name) { mService = null; mKillBtn.setEnabled(false); mCallbackText.setText("Disconnected"); Log.i(TAG, "Disconnected form remote service"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onServiceDisconnected(ComponentName className) {\n\t\t Log.e(MainActivity.ACTIVITY_TAG, \"Service has unexpectedly disconnected\");\n\t\t mIRemoteService = null;\n\t\t // 注意只有在极端的服务端crash的情况下,该函数才会被调用\n\t \t Log.v(MainActivity.ACTIVITY_TAG,\"kevin ---> client:ServiceDisconnect\"); \n\t }", "private void signalError() {\n Connection connection = connectionRef.get();\n if (connection != null && connection.isDefunct()) {\n Host host = cluster.metadata.getHost(connection.address);\n // Host might be null in the case the host has been removed, but it means this has\n // been reported already so it's fine.\n if (host != null) {\n cluster.signalConnectionFailure(host, connection.lastException());\n return;\n }\n }\n\n // If the connection is not defunct, or the host has left, just reconnect manually\n reconnect();\n }", "@Override\n public void connectionLost(Throwable thrwbl) {\n System.out.println(\"服务器的连接丢失\");\n }", "@Override\r\n\t\t\tpublic void onServiceDisconnected(ComponentName name)\r\n\t\t\t{\n\t\t\t\tSystem.out.println(\"disconnect\");\r\n\t\t\t}", "protected void processDisconnection(){}", "@Override\n public void connectionLost(Throwable arg0) {\n\n }", "public void onServiceDisconnected(ComponentName className) {\n Log.e(\"Activity\", \"Service has unexpectedly disconnected\");\n wsService = null;\n }", "void onDisconnectFailure();", "@Override\n\t\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\t\n\t\t\t}", "public void onServiceDisconnected(ComponentName className) {\n\t\t\t\tservice = null;\n\t\t\t\tLog.d(\"OpenXC binding\", \"openXC service disconnected\");\n\t\t\t}", "public void onDisconnected() {\n\t\t\r\n\t}", "@Override public void onDisconnected() {\n }", "private void connectionLost() {\n // Send a failure message back to the Activity\n Message msg = handler.obtainMessage(SdlRouterService.MESSAGE_LOG);\n Bundle bundle = new Bundle();\n bundle.putString(LOG, \"Device connection was lost\");\n msg.setData(bundle);\n handler.sendMessage(msg);\n handler.postDelayed(new Runnable() { //sends this stop back to the main thread to exit the reader thread\n @Override\n public void run() {\n stop();\n }\n }, 250);\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n \n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n }", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\n\t\t}", "@Override\n public void onDisconnected() {\n }", "@Override\n public void connectionLost(Throwable cause) {\n }", "protected void onConnectionError() {\n\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n\n }", "@Override\r\n\tpublic void connectionLost(Throwable cause) {\n\t\t\r\n\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n }", "@Override\r\n\tpublic void connectionLost(Throwable t) {\n\t}", "private void connectionFailed() {\n // Send a failure message back to the Activity\n Message msg = handler.obtainMessage(SdlRouterService.MESSAGE_LOG);\n Bundle bundle = new Bundle();\n bundle.putString(LOG, \"Unable to connect device\");\n msg.setData(bundle);\n handler.sendMessage(msg);\n\n // Start the service over to restart listening mode\n // BluetoothSerialServer.this.start();\n }", "@Override\n\t\t\t\tpublic void onServiceDisconnected(ComponentName p1)\n\t\t\t\t{\n\t\t\t\t}", "public void disconnected(String reason) {}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t}", "@Override\n public void connectionLost(Throwable cause) {\n\n }", "@Override\n @MainThread\n public void onServiceDisconnected(ComponentName name) {\n Slog.i(TAG, \"Explicit health check service is disconnected \" + name);\n synchronized (mLock) {\n mRemoteService = null;\n }\n }", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "public void onServiceDisconnected();", "@Override\n public void connectionLost(Throwable cause) {\n Log.d(TAG, \"Connection lost\");\n }", "private void connectionLost() {\n Log.d(TAG, \"BluetoothManager :: connectionLost()\");\n setState(STATE_LISTEN); //추가됨\n\n // Send a failure message back to the Activity\n // WARNING: This makes too many toast.\n //이것도 어차피 연결잃었다고하는거 알려주는거라 안해도 상관 없다.\n /*\n Message msg = mHandler.obtainMessage(MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(SERVICE_HANDLER_MSG_KEY_TOAST, \"연결되있던장치와 연결을 잃었어요\");\n msg.setData(bundle);\n mHandler.sendMessage(msg);\n */\n // Reserve re-connect timer\n reserveRetryConnect(); //수정됨\n }", "@Override\n public void onDisconnected() {\n }", "@Override\n\tpublic void onDisconnected() {\n\n\t}", "@Override\n public void onConnectFailed()\n {\n Log.e(\"Dudu_SDK\",\n \"获取NS 业务服务器失败...onConnectFailed ... reconnect()...5 seconds later ...\");\n reconnect();\n if (connectCallBack != null)\n connectCallBack.onConnectFailed();\n }", "@Override\n\t\t\tpublic void connectionLost(Throwable throwable) {\n\t\t\t\tSystem.out.println(\"connectionLost\");\n\t\t\t}", "@Override\r\n\t\tpublic void onServiceDisconnected(ComponentName arg0) {\n\r\n\t\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\n\t\t}", "public void onConnectionError()\n\t\t{\n\t\t}", "public void onDisconnected() {\n\n }", "public void onDisconnected() {\n\n }", "private void connectionClosed() {\n if (this.state != SessionState.DISCONNECTING) {\n // this came unexpected\n connectionClosed(new VertxException(\"Connection closed\"));\n }\n }", "public void onServiceDisconnected(ComponentName className) {\n serverMessenger = null;\n ToastUtil.toast(\"Remote service disconnected\");\n\n IDGenerator.reset();\n\n //通知上层连接变化\n try {\n mafContext.networkChange(NetChannelStatus.Disconnected);\n } catch (RuntimeException e) {\n LogUtil.e(TAG, e);\n }\n\n GlobalTimerTasks.getInstance().removeAllTask();\n bind();\n }", "public void onServiceDisconnected(ComponentName className) {\n\t\t\tmBoundService = null;\r\n\t\t\t// Toast.makeText(MainActivity.this, \"Service disconnected.\", Toast.LENGTH_SHORT).show();\r\n\t\t}", "@Override\n \tpublic void reconnectionFailed(Exception arg0) {\n \t}", "protected void connectionClosed() {}", "abstract protected void onDisconnection();", "public void onServiceDisconnected(ComponentName name) {\n Log.d(TAG, \"###onServiceDisconnected\" );\n\n JSONObject json = new JSONObject();\n try {\n json.put( \"type\", \"onServiceDisconnected\" );\n } catch (JSONException e) {\n e.printStackTrace();\n }\n sendJsonDataToCallback( json );\n\n mStreamingService = null;\n mStreamingServiceBound = false;\n }", "@Override\n\tpublic void connectionLost(Throwable cause) {\n\t\t\n\t}", "@Override\r\n public void onServiceDisconnected(ComponentName name) {\n Log.i(TAG, \"onServiceDisconnected in CardEmulation\");\r\n }", "@Override\n\tpublic void onServiceDisconnected(int profile) {\n\t\t\n\t}", "protected void onDisconnect() {}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n Log.d(\"service\", \"onServiceDisconnected()\" + name.getClassName());\n }", "protected void onDisconnected(long hconv)\n {\n }", "@Override\n\tpublic void onDisconnected() {\n\t\tToast.makeText(context, \"Disconnected. Please re-connect.\",Toast.LENGTH_SHORT).show();\n\t}", "private void gestioneDisconnessione(Exception e) {\n\t\tLOG.info(\"Client disconnesso\");\n\t\tthis.completeWithError(e);\n\t\tthis.running=false;\n\t}", "public void processLiveCallWhenServiceDisconnected(ComponentName componentName) {\n if (hasLiveCalls()) {\n HiLog.info(LOG_LABEL, \"processLiveCallWhenServiceDisconnected, reconnect.\", new Object[0]);\n connect();\n }\n }", "public void onServiceDisconnected(ComponentName className) {\n mBoundService = null;\n Log.i(TAG,\"Service DISconnected\");\n }", "@Override\n public void onConnectionTerminated(Connection connection, String reason) {\n System.err.println(\"onConnectionTerminated \" + connection.getPid() + \" Reason \" + reason);\n }", "public void onServiceDisconnected(ComponentName className) {\n \timService = null;\r\n \r\n }", "@Override\r\n public void onServiceDisconnected(ComponentName className) {\r\n isObdServiceBound = false;\r\n }", "private void connectionFailed() {\n if (debugging)\n Log.d(TAG, \"connection Failed\");\n setState(EBluetoothStates.DISCONNECTED);\n if (mConnectionManager != null) {\n mConnectionManager.closeSocket();\n }\n }", "@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n bleService.disconnect();\n bleService = null;\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n binder = null;\n if (connections.get(jobId) == this) {\n stopJob(this, false);\n }\n }", "void onDisconnected();", "public void onServiceDisconnected(ComponentName className) {\n \t\t\tmService = null;\n \t\t}", "@Override\n public void onServiceDisconnected(ComponentName componentName) {\n //Log.e(\"SERVICE_DISCONNECTED\", \"Disconnecting service\");\n boundNewsService = null;\n }", "public void onServiceDisconnected(ComponentName className) {\n\t\t\tLog.i(LOG_TAG, \"onService connected......method\");\n\t\t\tmBoundService = null;\n\t\t\t// Toast.makeText(ChatActivity.this, \"Disconnected to service\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t}", "public void onServiceDisconnected(ComponentName className) {\n\t mBoundAutopilotService = null;\n\t //mCallbackText.setText(\"Disconnected.\");\n\t }", "@Override\n\tpublic void onServiceDisconnected(ComponentName name) {\n\t\tLog.d(\"qwe\", \"StatsActivity.onServiceDisconnected()\");\n\t\tserviceMessenger = null;\n\t\tisServiceBinded = false;\n\t}", "public void onServiceDisconnected(ComponentName name) {\n \t\tlocalMonitor = null;\n \t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n messengerService = null;\n messengerServiceBound = false;\n }", "public void communicationChannelBroken() {\n\n }", "public void onServiceDisconnected(ComponentName className) {\n _boundService = null; \n Toast.makeText(TestServiceHolder.this, \"Service connected\", \n Toast.LENGTH_SHORT).show(); \n }", "public void onServiceDisconnected(ComponentName className) {\n \tmServiceMessenger = null;\r\n setIsBound(false);\r\n }", "private void connectionLost() {\n setState(EBluetoothStates.CONNECTING);\n // Send a failure message back to the Activity\n // updateActivity(General.MessageType.ERROR, General.OnDeviceConnectionLost);\n }", "@Override\n public void connectionLost() {\n }", "public void onServiceDisconnected(ComponentName arg0) {\n\t\t\tmServiceBind = false;\n\t\t}", "@Override\n public void connectionLost(Throwable cause) {\n System.out.println(\"MQTT Connection Lost\");\n }", "@Override\n\tprotected void onDestroy() {\n\t\n\t\t\tLog.d(\"collectData\", \"onDestroy\");\n\t\t\t((MyApp)getApplicationContext()).stopTryToConnect();\n\t\t\t\n\t\t\n\t\t\n\t\tsuper.onDestroy();\n\t}", "@Override\n public void connectionLost(Throwable t) {\n System.out.println(\"Connection lost!\");\n // code to reconnect to the broker would go here if desired\n }", "@Override\n public void connectionLost(Throwable t) {\n System.out.println(\"Connection lost!\");\n }", "@Override\n public void disconnected(final OfficeConnectionEvent event) {\n\n // Make the task executor unavailable.\n taskExecutor.setAvailable(false);\n\n // When it comes from an expected behavior (we have put\n // the field to true before calling a function), just reset\n // the disconnectExpected value to false. When we didn't expect\n // the disconnection, we must restart the office process, which\n // will cancel any task that may be running.\n if (!disconnectExpected.compareAndSet(true, false)) {\n\n // Here, we didn't expect this disconnection. We must restart\n // the office process, canceling any task that may be running.\n LOGGER.warn(\"Connection lost unexpectedly; attempting restart\");\n if (currentFuture != null) {\n currentFuture.cancel(true);\n }\n officeProcessManager.restartDueToLostConnection();\n }\n }", "@Override\n\t\t\tpublic void onNetworkDisconnected() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\n\t\t\tYC_SERVICE_BINDER = null;\n\n\t\t\tbindService();\n\n\t\t}", "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tSC.say(\"服务器连接已中断,请重新登录!\");\n\t\t\t}", "public void onServiceDisconnected(ComponentName className) {\n mService = null;\n mBound = false;\n }", "public void onServiceDisconnected(ComponentName className) {\n mService = null;\n mBound = false;\n }", "public void connectionLost(Throwable cause) {\n\t}", "@Override\n\tpublic void onServiceDisconnected(ComponentName name)\n\t{\n\t\tmInterface = null;\n\t}", "public void handleDisconnectedState() {\n\n setProgressBarVisible(false);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Failed to connect to \" + tallyDeviceName);\n\n }", "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n return;\n }" ]
[ "0.7376152", "0.7162639", "0.707017", "0.700034", "0.6934333", "0.68640214", "0.68524605", "0.684654", "0.6840401", "0.68330216", "0.6803266", "0.6794399", "0.6788466", "0.6787728", "0.6780206", "0.6780206", "0.6775316", "0.6775316", "0.67501533", "0.6742381", "0.67264795", "0.6713703", "0.6711511", "0.67066306", "0.67066306", "0.66949934", "0.6690786", "0.6690564", "0.6683406", "0.66812176", "0.66812176", "0.6676821", "0.6655495", "0.66443753", "0.66443753", "0.66443753", "0.66280687", "0.6627586", "0.6619922", "0.6615566", "0.66155326", "0.66073424", "0.6600365", "0.6592153", "0.65902776", "0.6585218", "0.6566805", "0.6566805", "0.6559911", "0.6551714", "0.65381396", "0.6527895", "0.65218997", "0.6520145", "0.65174615", "0.650946", "0.65076524", "0.6501365", "0.65000623", "0.6483239", "0.6479962", "0.6479734", "0.6475713", "0.6464357", "0.64504695", "0.6443037", "0.6438738", "0.64234704", "0.6422521", "0.6408348", "0.6404085", "0.64010125", "0.6399412", "0.6394139", "0.6385415", "0.6383258", "0.63800395", "0.63765424", "0.6373029", "0.63694555", "0.6359655", "0.6355002", "0.635284", "0.6351143", "0.63393545", "0.6334194", "0.633267", "0.6328702", "0.6313279", "0.63024145", "0.62985796", "0.62982464", "0.6296469", "0.62876016", "0.6286323", "0.6286323", "0.6278071", "0.62766546", "0.62717265", "0.6270641" ]
0.67058146
25