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
main class of the system
public static void main(String[] args) { InsertNumber insertNumber = new InsertNumber(); insertNumber.Number(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public Main() {\n\t\tsuper();\n\t}", "private Main() {\n\n super();\n }", "public static void main(){\n\t}", "public static void main() {\n \n }", "public static void main()\n\t{\n\t}", "private Main ()\n {\n super ();\n }", "public Main() {\r\n\t}", "public Main() {\n \n \n }", "public void main(){\n }", "public Main() {}", "public static void main(String[] args) {\n\t\tMachine mach1 = new Machine();\n\t\t\n\t\tmach1.start();\n\t\tmach1.stop();\n\t\t\n\t\tCar car1 = new Car();\n\t\t\n\t\t//Using 'extends' in the Car class we made it inherit all the methods of Machine class\n\t\tcar1.start();\n\t\tcar1.stop();\n\t\t//We can also add methods that aren't included in the 'parent' class\n\t\tcar1.wipe();\n\t\t//\n\t\tcar1.showInfo();\n\t}", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "public static void main() {\n }", "private Main() {}", "public Main() {\r\n }", "public Main() {\r\n }", "public static void main(String[] args){\n var system = VacSys.getInstance();\n system.main();\n }", "public static void main(String[] args) {\n\t \t\n\t \t\n\t }", "private Main() {\n }", "public static void main(String[] args) {\n\n\t\tSystem.out.println();\n\t\t//object of Sun\n\t\tSun s1 = Sun.getInstance();\n\t\ts1.givesLight();\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"*************************************\");\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t//object of Earth\n\t\tEarth e1 = Earth.getInstance();\n\t\te1.createLife();\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"*************************************\");\n\t\tSystem.out.println();\n\t\t\n\t\t//object of Prime\n\t\tPrimeMinister pm1 = PrimeMinister.getInstance();\n\t\tpm1.serveNation();\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"*************************************\");\n\t\tSystem.out.println();\n\t\t\n\t\tPresident p1 = President.getInstance();\n\t\tp1.representNation();\n\t}", "public static void main(String[] args) {\n \r\n\t}", "public static void main(String[] args) {\n \n \n \n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"HW\");\n\t\tSingle1.getInstance();\n\t\tSingle2.getInstance();\n\t}", "public Main() {\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tSystem.out.println(\"This is my class \");\n\t}", "public static void main(String[] args) {\n\t \t\n\t \t\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}", "public void Main(){\n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public Main() {\n }", "public Main() {\n }", "System createSystem();", "public static void main(String[] args) {\n\t\t\n\t\tSystemCheck syscheck = new SystemCheck(SensorPort.S1, \n\t\t\t\tSensorPort.S2, SensorPort.S3, 6.5f);\n\t\tsyscheck.preform();\n\t\t\n\t\t\n\t\tWarningLight wLight = new WarningLight(2);\n\t\twLight.start();\n\t\t\n\t\tSensor sensor = new Sensor(true, 60, 40);\n\t\tsensor.calibrateLight();\n\n\t\tDifferentialPilot pilot = new DifferentialPilot(5.6F, 5.6F, 14F,\n\t\t\t\tMotor.A, Motor.C, false);\n\n\t\tNavigator navigator = new Navigator(pilot);\n\n\t\tRobot robot = new Robot(sensor, pilot, navigator);\n\t\t\n\t\tContinousCheck cCheck = new ContinousCheck(SensorPort.S1,\n\t\t\t\t2, 6.5f, robot);\n\t\tcCheck.start();\n\n\t\tnavigator.getPoseProvider().getPose().setLocation(0, 0);\n\n\t\tMain main = new Main(robot);\n\t}", "public static void main(String[] args) {\r\n// Use for unit testing\r\n }", "public static void main(String[] args)\r\t{", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args){\n\t\t\n\t\t\n \t}", "public static void main(String [] args){\n SmartPhone sm = new SmartPhone();\n sm.run();\n // System.out.println(sm.run());\n }", "public static void main (String []args){\n }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"Access from inside Mexico class \");\n\t\t\n\t\t//System.out.println(us2.mainState);\n\t\t//System.out.println(us2.school); error because it is protected\n\t\t//System.out.println(us2.capitalCity);error because it is private\n\t\t\n\t\t//when USA is default \n\t\t//i can not access USA class\n\t\t//USA us3=new USA();\n\t\t// System.out.println(us3.mainState);\n\t\t\n\t\t\n\t\tMySonMath son=new MySonMath();\n\t\tson.add1();\n\t\t\n\t\t\n\t}", "public static void main (String[] args) {\r\n\t\t \r\n\t\t}", "public static void main(String[] args)\r\n {\n \r\n \r\n }", "public static void main(String[] args)\r\n {\r\n \r\n \r\n \r\n }", "public static void main(String[] args) {\nDesktop desk=new Desktop();\r\ndesk.hardWareResources();\r\ndesk.softwareWareResources();\r\ndesk.deskTopModel();\r\n\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String []args){\n\n }", "public static void main (String args[]) {\n\t\t\n }", "public static void main(String[] args) {\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\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tTestST st2 = TestST.getInstance();\r\n\t}", "public static void main(String[] args) {\n MainIntrence mainintrence = new MainIntrence();\r\n\r\n\r\n\r\n }", "public static void main(String[] args) {\n\t\tDormitorySystem2 dorm = new DormitorySystem2(new GUI());\n\t}", "public static void main(String[] args) {\n \n \n \n \n }", "public static void main(String[] args) {\nBasePotencia pot=new BasePotencia();\r\npot.calculaPot();\r\n\t}", "void startup();", "void startup();", "public static void main(String[] args) {\n \n\t}", "public static void main(String[] args) {// we can create psvm method but cannot create objects in abstract class\n\t\tSchool.bonus();// as bonus method is static we can print it without create class name so we can use\n\t\t\t\t\t\t// with classname.mthdname hence it is accepted in abstract class\n\t\tSystem.out.println(\"i am from main method\");// we can write anything in main mthd it prints automatically without\n\t\t\t\t\t\t\t\t\t\t\t\t\t// creating obj\n\t}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n \n\t\t}", "public static void main(String[] args) {\n System.out.println(\"Class 1\");\n }", "public static void main(String[] args) {\n \n\n }", "public static void main(String []args){\n }", "public static void main(String []args){\n }", "public static void main(String[] args) {\n \n\t}", "public static void main(String[] args) {\n\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\t}", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\t}", "public static void main (String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \r\n}", "public static void main(String[] args){\n\n MyApp myApp = new MyApp(); //1\n myApp.runMyApp(); //2\n System.out.println(\"End of Program\"); //3\n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tJFrame window = new JFrame(\"HORSE RACE!\");\n\t\twindow.add(new ManageSystem());\n\t\twindow.setSize(new Dimension(ManageSystem.WINDOW_WIDTH, ManageSystem.WINDOW_HEIGHT));\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\twindow.setVisible(true);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Start main\");\r\n\t\tSystem.out.println(\"sum of two num :\"+ new AppManager().sum(5,10));\r\n\t\tSystem.out.println(\"End main\");\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t \n\t}", "public static void main(String[] args) {\n \t\tnew CoreEngine();\n \t}", "public static void main(String[] args) {\t\n\t\t\n\t}", "private TetrisMain() {\r\n //ensure uninstantiability\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}" ]
[ "0.74115235", "0.7304427", "0.7261376", "0.7147826", "0.71149987", "0.71068287", "0.7086911", "0.70735955", "0.7035673", "0.6869944", "0.68689364", "0.6862269", "0.68566597", "0.68534935", "0.6833229", "0.6819667", "0.6819667", "0.6819666", "0.67521596", "0.6733827", "0.67336", "0.6726116", "0.6710698", "0.66978383", "0.6692311", "0.6672507", "0.66704947", "0.66694593", "0.66666067", "0.6665664", "0.66567624", "0.66567624", "0.6652699", "0.6647693", "0.6645609", "0.6645523", "0.664248", "0.664248", "0.6635488", "0.6632737", "0.66218334", "0.6619339", "0.6618706", "0.65945745", "0.65864295", "0.65686864", "0.6561203", "0.6561203", "0.6561203", "0.6561203", "0.6553545", "0.6549423", "0.6548607", "0.6548607", "0.6547255", "0.65464157", "0.653336", "0.65256387", "0.65237933", "0.6521003", "0.6521003", "0.65130717", "0.65118617", "0.6506158", "0.65004057", "0.64962995", "0.6496164", "0.6495774", "0.6495774", "0.6492237", "0.6482439", "0.64813364", "0.6477203", "0.6476501", "0.6475122", "0.6473262", "0.6473262", "0.6473262", "0.6473262", "0.6473262", "0.6473262", "0.646869", "0.64685285", "0.64635634", "0.64635634", "0.6462577", "0.64612406", "0.6458515", "0.6453979", "0.6453979", "0.6453979", "0.6453979", "0.64535785", "0.6450259", "0.64493525", "0.6448826", "0.6441988", "0.6441988", "0.6441988", "0.6441988", "0.6441988" ]
0.0
-1
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException { response.setContentType("text/html;charset=UTF-8"); //PrintWriter out = response.getWriter(); RequestDispatcher rd = null; String dataInicial = request.getParameter("dataI"); String dataFinal = request.getParameter("dataF"); String conCodigo = request.getParameter("concodigo"); String conSaldo = request.getParameter("consaldo"); ExtratoDAO extratoDAO = new ExtratoDAO(); ContaDAO contaDAO = new ContaDAO(); List<ExtratoTransiente> extrato; Contas conta = null; try { extrato = extratoDAO.exibeExtrato(dataInicial, dataFinal, conCodigo, conSaldo); conta = contaDAO.buscarConta(Integer.parseInt(conCodigo)); } catch (ParseException ex) { throw new ServletException(ex); } JasperReport report; byte[] byteStream = null; try { URL resourceUrl = request.getSession().getServletContext().getResource("/WEB-INF/report/extrato.jasper"); report = (JasperReport) JRLoader.loadObject(resourceUrl); HashMap<String, Object> parametros = new HashMap<String, Object>(); parametros.put("conta", conta.getConDescricao()); parametros.put("saldo", conta.getConSaldo()); byteStream = JasperRunManager.runReportToPdf(report, parametros, new JRBeanCollectionDataSource(extrato)); } catch (JRException ex) { Logger.getLogger(Extrato.class.getName()).log(Level.SEVERE, null, ex); } OutputStream outStream = response.getOutputStream(); response.setHeader("Content-Disposition", "inline, filename=extrato.pdf"); response.setContentType("application/pdf"); response.setContentLength(byteStream.length); outStream.write(byteStream, 0, byteStream.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@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) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\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 }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\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 }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}", "@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 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 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 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 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 }" ]
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.639271", "0.63919044", "0.63919044", "0.63903785", "0.63903785", "0.63903785", "0.63903785", "0.63887113", "0.63887113", "0.6380285", "0.63783026", "0.63781637", "0.637677", "0.63761306", "0.6370491", "0.63626", "0.63626", "0.63614637", "0.6355308", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896" ]
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(Extrato.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(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 protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "public Result get(Get get) throws IOException;", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}", "@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\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\npublic void get(String url) {\n\t\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}", "@NonNull\n public String getAction() {\n return \"GET\";\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}", "@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 }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }", "@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\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 System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }", "public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return 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\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}", "@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) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}", "public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }", "public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n protected 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}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}" ]
[ "0.7589819", "0.71670026", "0.71134603", "0.7056349", "0.7030202", "0.70289457", "0.6996126", "0.6975816", "0.6888662", "0.6873633", "0.6853793", "0.6843488", "0.6843488", "0.68354696", "0.68354696", "0.68354696", "0.6819225", "0.6818393", "0.6797782", "0.6780766", "0.6761152", "0.67546815", "0.67546815", "0.67403847", "0.67188615", "0.67158395", "0.67054987", "0.67054987", "0.6701152", "0.6684633", "0.66776204", "0.6675632", "0.6675632", "0.6674378", "0.6674378", "0.6668488", "0.66617364", "0.66617364", "0.66477805", "0.6636472", "0.66167665", "0.66129434", "0.6603993", "0.6570445", "0.6551127", "0.6538683", "0.6536589", "0.6535939", "0.6496197", "0.64664567", "0.64521563", "0.64508563", "0.64114493", "0.64114493", "0.64114493", "0.64114493", "0.64114493", "0.64114493", "0.64114493", "0.64114493", "0.64114493", "0.64114493", "0.64114493", "0.64114493", "0.64072937", "0.6396223", "0.63798064", "0.63737595", "0.6359885", "0.63581914", "0.6341077", "0.6309777", "0.6306383", "0.630272", "0.63026774", "0.6283587", "0.6275156", "0.62678796", "0.62581164", "0.6255567", "0.62503594", "0.6245187", "0.6239602", "0.6239602", "0.6238581", "0.6235405", "0.6215722", "0.6212377", "0.6206887", "0.6206634", "0.6204746", "0.6200539", "0.6199529", "0.6188366", "0.6182832", "0.61764896", "0.6175472", "0.6173032", "0.6171852", "0.61701643", "0.61690634" ]
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(Extrato.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public String post();", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "public void postData() {\n\n\t}", "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public abstract boolean handlePost(FORM form, BindException errors) throws Exception;", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\r\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n ModelAndView modelAndView) throws Exception {\n }" ]
[ "0.73294103", "0.7138126", "0.7116576", "0.710616", "0.71015716", "0.7024015", "0.70174396", "0.6965203", "0.6889627", "0.67854464", "0.67737514", "0.6748673", "0.66681933", "0.6559071", "0.6558368", "0.6525704", "0.6525704", "0.6525704", "0.65253997", "0.65229475", "0.6520729", "0.6516201", "0.6513524", "0.65130347", "0.6491859", "0.64817023", "0.64775264", "0.64725816", "0.64719903", "0.6469119", "0.6457155", "0.6452766", "0.6452766", "0.6452766", "0.64500505", "0.64500505", "0.64388245", "0.643725", "0.64337826", "0.64252067", "0.6422843", "0.64211357", "0.64211357", "0.64211357", "0.64077514", "0.64043754", "0.64043754", "0.63972867", "0.63969654", "0.6354821", "0.6334261", "0.6324716", "0.62961406", "0.62892026", "0.62892026", "0.62892026", "0.62892026", "0.62892026", "0.62892026", "0.62892026", "0.62892026", "0.62892026", "0.62892026", "0.62892026", "0.62808084", "0.62726015", "0.62726015", "0.6271653", "0.626188", "0.6253688", "0.62509966", "0.62272936", "0.6215066", "0.62139964", "0.6212887", "0.6209549", "0.62022954", "0.61779356", "0.61779356", "0.61779356", "0.61779356", "0.61779356", "0.61779356", "0.61779356", "0.61641943", "0.6160455", "0.61481494", "0.61481494", "0.6147314", "0.61470103", "0.61423194", "0.6137019", "0.61317796", "0.61304414", "0.61254", "0.6118944", "0.6118664", "0.61071354", "0.6099588", "0.6099124", "0.6096804" ]
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }" ]
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", "0.85282224", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8527433", "0.8516995", "0.8512296", "0.8511239", "0.8510324", "0.84964365", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599", "0.8492599" ]
0.0
-1
How many xp points it brings to the tower that killed it
@Override public int howManyXp() { return 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getVictoryPoints() {\n \t\treturn getPublicVictoryPoints() + victory;\n \t}", "public int getPointsHealthy()\n {\n return pointsHealthy;\n }", "private double enemyKills()\n {\n return (double)enemyResult.shipsLost();\n }", "public int xp(){\n return this.xp;\n }", "public int numAlivePokemon() {\r\n\t\tint count = 0;\r\n\t\tfor (Pokemon p : ownedPokemon) {\r\n\t\t\tif (p.getCurrentHP() > 0) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "int getFaintedPokemonCount();", "public int getPoints(){\n\t\t//add the player socres(including monster killing, powerUp points and winning points\n\t\tint points = this.player.getScore() + 200*this.player.getHealth();\n\t\t\n\t\t//since the better the less time used, we use 600 seconds to minus the total seconds being used\n\t\t//and add it to the points\n\t\t//600 seconds is 10 minutes, which is definity long enough\n\t\t//if exceeds 10 minutes, we will subtract total score\n\t\tif(this.player.win()){\t//only if the player wins will we calculate the time\n\t\t\tpoints += (int)(3600 - (this.time / 1000000000));\n\t\t}\n\t\t\n\t\tthis.totalLabel.setText(String.valueOf(points));\t//set the value of the JLabel\n\t\t\n\t\treturn points;\n\t\t\n\t}", "public int getVictoryPoints() {\n\t\treturn this.totalVictoryPoints;\n\t}", "public int getKillboardpoints() {\n return killboardpoints;\n }", "public int getKillPoints() {\n\n return m_killPoints;\n }", "int getUsedPoints();", "int getUsedPoints();", "int getUsedPoints();", "public int getPublicVictoryPoints() {\n \t\tint points = towns + 2 * cities;\n \n \t\tif (board.hasLongestRoad(this))\n \t\t\tpoints += 2;\n \n \t\tif (board.hasLargestArmy(this))\n \t\t\tpoints += 2;\n \n \t\treturn points;\n \t}", "public int getEatPoints() {\n return localEatPoints;\n }", "public int checkNoOfExplosivesPlayerHolds () { return noOfExplosives; }", "public int getPoints()\n {\n return (10000 - this.points);\n }", "public int nbEnemiesAlive(){\n return state.getPlayers().size()-1;\n }", "int getReservePokemonCount();", "public int getDeathPoints() {\n return deathPoints;\n }", "public void CalculateXP(ArrayList<Pokemon> team, Pokemon loser){\n \tdouble a, b, L,Lp,s,t,e;\n \tint xp;\n \ta=1;\n \tif(loser.getInfo().getIsWild()==true)a=1.5;\n \tb=loser.getStats().getBaseXP();\n \tL=loser.getInfo().getLvl();\n \ts=0;\n \tfor(int i=0;i<team.size();i++){\n \t\tif(team.get(i).getInfo().getUsedInBattle()==true)s+=2;\n \t}\n \tfor(int i=0;i<team.size();i++){\n \t\tLp=team.get(i).getInfo().getLvl();\n \t\tif (user.getPlayerID()==team.get(i).getInfo().getPlayerID()) t=1;\n \t\telse t=1.5;\n \t\ts=2;\n \t\te=1;\n \t\tif(team.get(i).getInfo().getUsedInBattle()==true){\n \t\t\txp=(int)((a*t*b*e*L)/(5*s)*(L+2)/(Lp+2)+1);\n \t\t\tteam.get(i).getInfo().setXp(xp+team.get(i).getInfo().getXp());\n \t\t\tbattleMessage.add(team.get(i).getInfo().getNickname()+\" has gained \"+xp+\" experience points. \");\n \t\t\tteam.get(i).CheckLevelUp();\n \t\t}\n \t\tteam.get(i).getInfo().setUsedInBattle(false);\n \t}\n }", "public static String getXP(){\n\t\treturn (String) \"\" + String.valueOf((int) Math.ceil(mc.thePlayer.experience * mc.thePlayer.xpBarCap())) + \"/\" + mc.thePlayer.xpBarCap();\n\t}", "public int getVictoryPoints() {\n\t\treturn victoryPoints;\n\t}", "public int getNumCaught() {\r\n\t\tint count = 0;\r\n\t\tfor (int poke : caughtPokemon.values()) {\r\n\t\t\tcount += poke;\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public void getBonusPoints(){\n\t\tif((this.player[Dominoes.getPlayerIndex()].hand.size() == 0) && (Dominoes.missedRounds == 0)){\n\t\t\tshort bonusScore = 0;\n\t\t\tfor(byte i = 0; i < this.player.length; i++){\n\t\t\t\tif(i != Dominoes.getPlayerIndex()){\n\t\t\t\t\tbonusScore += (this.player[i].hand.size() * 5);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.player[Dominoes.getPlayerIndex()].score += bonusScore;\n\t\t}\n\t}", "@Override\n public int getBattleForcePoints() {\n double bv = this.calculateBattleValue(true, true);\n int points = (int) Math.round(bv / 100);\n return Math.max(1, points);\n }", "public int getNumAttacked() {\n return this.numAttacked;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getNumNotHit()\n {\n return shipCoordinates.size() - hitCoordinates.size();\n }", "protected int getExperiencePoints(EntityPlayer player)\n {\n return super.getExperiencePoints(player);\n }", "public int getPointsP() {\r\n\r\n pointsP = getPointsPlayer() + getPointsPlayer2();\r\n\r\n if (pointsP >= 10) {\r\n pointsP -= 10;\r\n }\r\n return pointsP;\r\n }", "@java.lang.Override\n public int getFaintedPokemonCount() {\n return faintedPokemon_.size();\n }", "public int getPointsFor() {\n int pointsFor = 0;\n for (Game g : gameList) {\n pointsFor += g.getTeamScore(this);\n }\n return pointsFor;\n }", "public double pointsEarned();", "protected int getExperiencePoints(PlayerEntity player) {\n return super.getExperiencePoints(player);\n }", "public int points() {\n\t\treturn cards[0].points() + cards[1].points() + cards[2].points();\n\t}", "public int getFighterPoints() {\n\n return this.fighterPoints;\n }", "int getRemainPoints();", "int getPointsCount();", "public int getPointsAgainst() {\n int pointsAgainst = 0;\n for (Game g : gameList) {\n pointsAgainst += g.getOtherTeamScore(this);\n }\n return pointsAgainst;\n }", "public static int GetPlayersLeft () {\n int players_left = 0;\r\n\r\n // LOOK AT EACH PLAYER AND CHECK IF THEY HAVEN'T LOST\r\n for (int i = 0; i < player_count; i++) {\r\n if (!player[i].lost)\r\n players_left++;\r\n }\r\n\r\n // RETURN THE RESULTS\r\n return players_left;\r\n }", "@Override\n public int howManyActivatedExceptBaseProduction(){\n return (gameboardPanel.howManyActivatedExceptBaseProduction() + leaderCardsPanel.howManyActivated());\n }", "public double getLikelinessToGetKilled() {\n return likelinessToGetKilled;\n }", "public int getXWins() {\n return xWins;\n }", "int getNeedPoints();", "public int getPoints() {\r\n\t\treturn levelManager.getPoints();\r\n\t}", "public int getRemainingEnemies(){\n return mNumberOfEnemies - (mEnemyIndex + 1);\n }", "public int getPoints() {\n return this.difficulty;\n }", "private static int experienceTally(int playerExperience, int monsterExperience){\r\n int totalExperience;\r\n totalExperience = playerExperience + monsterExperience;\r\n return totalExperience;\r\n }", "public int numPoints() {\n\t\treturn divided ? -1 : points.size();\n\t}", "public int getPoints ( Player player );", "public int getShipsAlive() {\n return this.numberOfShips;\n }", "int getHungerPoints(ItemStack stack);", "public int getSpins() {\n return spinsLeft;\n }", "public int countUsedPowers (Power p) {\n return countPowers(p, 2);\n }", "public static int deadWoodPoints(ArrayList<int[]> hand) {\n\t\tint deadwood = 0;\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t// Check if each card in player's hand is deadwood and add points\n\t\t\tint[] card = hand.get(i);\n\t\t\tif (Helper.isDeadwood(card, hand)) {\n\t\t\t\t// Add points (10 for face cards, otherwise rank)\n\t\t\t\tdeadwood += Math.min(10, card[0]);\n\t\t\t}\n\t\t}\n\t\treturn deadwood;\n\t}", "public int getTreasurePoints(){\n return treasurePoints;\n }", "public int calculateLevel(double xp) {\n int level = 0;\n double maxXp = calculateXpForLevel(1);\n do {\n maxXp += calculateXpForLevel(level++);\n } while (maxXp < xp);\n\n return level;\n }", "public int getHitsLeft(){\n return hitsLeft;\n }", "public int getExperiencePoints() {\n return experiencePoints;\n }", "@Override\n\tpublic int getMaxSafePointTries() {\n\t\treturn this.getAttackTarget() == null ? 3\n\t\t\t\t: 3 + (int) (this.getHealth() - 1.0F);\n\t}", "public int bonusScore(Player p){\n int score = p.getBombRange() + p.getNumberBombRemaining() + p.getNumberMoveRemaining();\n return score;\n }", "@Override\r\n\tpublic int getPegCount() {\r\n\t\tint shipSize = 3;\r\n\t\treturn shipSize;\r\n\t}", "int getMaxHungerPoints(ItemStack stack);", "public int getRemainPoints() {\n return remainPoints_;\n }", "public void score(){\r\n\t\tint playerLocation = player.getLocationX();\r\n\t\tint obstacleX = obstacle.getLocationX();\r\n\t\tint obstacleY = obstacle.getLocationY();\r\n\r\n\r\n\t\tstr =\"\" + countCoins;\r\n\r\n\t\t//if you hit a coin, the number of points goes up by one.\r\n\t\tif(obstacleY == 280 && obstacleX==300 && playerLocation == 250){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\t\tif(obstacleY== 450 && obstacleX==300 && playerLocation ==450){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\r\n\t\t//if you hit the green monster, you lose one point.\r\n\t\tif((obstacleX-50) == 250 && (obstacleY-240) == 250 && playerLocation ==250){\r\n\t\t\tcountCoins--;\r\n\t\t}\r\n\r\n\t\t//if you hit the blue monster, you lose 3 points.\r\n\t\tif((obstacleX+180) == 480 && (obstacleY+180) == 250 && playerLocation ==450){\r\n\t\t\tcountCoins-=3;\r\n\t\t}\r\n\t}", "public int getGoalTally(Player player){\r\n return player.getGoal();\r\n }", "public int getPoints(){\r\n\t\treturn this.points;\r\n\t}", "public int getPoints(){\r\n\t\treturn this.points;\r\n\t}", "public void countPoints() {\n points = 0;\n checkAnswerOne();\n checkAnswerTwo();\n checkAnswerThree();\n checkAnswerFour();\n checkAnswerFive();\n checkAnswerSix();\n checkAnswerSeven();\n checkAnswerEight();\n checkAnswerNine();\n checkAnswerTen();\n }", "public int getFaintedPokemonCount() {\n if (faintedPokemonBuilder_ == null) {\n return faintedPokemon_.size();\n } else {\n return faintedPokemonBuilder_.getCount();\n }\n }", "public int getTotalPoint() {\n int totalPoint = 0;\n\n for (Card card : personHand) {\n totalPoint += card.getRank().getValue();\n\n if (card.getRank().equals(Rank.ACE) && totalPoint <= 11) {\n totalPoint += 10;\n }\n }\n\n return totalPoint;\n\n // TESTING ALL BLACKJACK\n// return 21;\n // TESTING ALL BUST\n// return 99;\n // TESTING ALL PUSH\n// return 10;\n }", "public int countAvailablePowers (Power p) {\n return countPowers(p, 1);\n }", "public int getAvengersHp() {\n\t\tint avengersHp = Battleground.captainAmerica.getHp()\n\t\t\t\t\t\t+ Battleground.hawkeye.getHp()\n\t\t\t\t\t\t+ Battleground.blackWidow.getHp()\n\t\t\t\t\t\t+ Battleground.hulk.getHp()\n\t\t\t\t\t\t+ Battleground.thor.getHp();\n\t\treturn avengersHp;\n\t}", "public int getNeedPoints() {\n return needPoints_;\n }", "public int calculateExtraPoints() {\n if (rank.equals(Rank.JACK)) {\n return JACK_EXTRA_POINT;\n } else if (rank.equals(Rank.ACE)) {\n return ACE_EXTRA_POINT;\n } else if (rank.equals(Rank.TWO) && suit.equals(Suit.CLUBS)) {\n return TWO_CLUBS_EXTRA_POINT;\n } else if (rank.equals(Rank.TEN) && suit.equals(Suit.DIAMONDS)) {\n return TEN_DIAMONDS_EXTRA_POINT;\n } else {\n return NO_EXTRA_POINT;\n }\n }", "public int getPoints() {\n\t\treturn oxygenPoints;\n\t}", "public int getEngineerPoints() {\n\n return this.engineerPoints;\n }", "@Override\n public int howManyActivated(){\n return (gameboardPanel.howManyActivated() + leaderCardsPanel.howManyActivated());\n }", "public int getNeedPoints() {\n return needPoints_;\n }", "public static int getEnemyLives(){\n return 1 + currentLvl * 2;\n\n }", "public int applyNutrientCoefficient() {\n int deadGuppyCount = 0;\n\n Iterator<Guppy> it = guppiesInPool.iterator();\n while (it.hasNext()) {\n Guppy currentGuppy = it.next();\n\n randomNumberGenerator = new Random();\n double generatedDouble = randomNumberGenerator.nextDouble();\n\n if (generatedDouble > this.getNutrientCoefficient()) {\n currentGuppy.setIsAlive(false);\n deadGuppyCount++;\n }\n }\n return deadGuppyCount;\n }", "protected int getCivilPoints(Player player) {\n\t\tint sum = 0;\n\t\tfor (Card card : player.getBoard().getCivil())\n\t\t\tsum += card.getvPoints();\n\t\treturn sum;\n\t}", "public int getRemainPoints() {\n return remainPoints_;\n }", "public int getLifePoints(){\n return this.lifePoints;\n }", "public int getNbPoints() {\n return nbPoints;\n }", "public int adjustForCrowding() {\n int deadGuppyCount = 0;\n\n Collections.sort(this.guppiesInPool, new Comparator<Guppy>() {\n @Override\n public int compare(Guppy g1, Guppy g2) {\n return Double.compare(g1.getHealthCoefficient(), g2.getHealthCoefficient());\n }\n });\n\n Guppy weakestGuppy;\n Iterator<Guppy> it = guppiesInPool.iterator();\n double volumeNeeded = this.getGuppyVolumeRequirementInLitres();\n\n while (it.hasNext() && volumeNeeded > this.getVolumeLitres()) {\n weakestGuppy = it.next();\n volumeNeeded -= (weakestGuppy.getVolumeNeeded() / ML_TO_L_CONVERSION);\n\n weakestGuppy.setIsAlive(false);\n\n\n deadGuppyCount++;\n\n }\n return deadGuppyCount;\n }", "public int getBaseXp() {\n\t\treturn 0;\n\t}", "public int getPlayerOnePoints() {\n if (gameStatus == null) return -1;\n return gameStatus.getPlayerOnePoints();\n }", "public int isSafe(){\n int nbEnnemies = 0;\n List<Player> players = state.getPlayers();\n Player currentPlayer = state.getCurrentPlayer();\n for(Player p : players){\n if(!p.equals(currentPlayer)) {\n nbEnnemies += currentPlayerReachable(state.getCurrentPlayer(), p);\n //nbEnnemies += manhattan(currentPlayer, p); //naive version\n }\n }\n return nbEnnemies;\n }", "public int getHitPoints() {\n return this.counter;\n }", "public int getPointsP2() {\r\n\r\n pointsP2 = pointsP + getPointsPlayer3();\r\n\r\n if (pointsP2 >= 10) {\r\n pointsP2 -= 10;\r\n }\r\n return pointsP2;\r\n }", "public void gainExpHonors(int exp){\r\n\t\tSystem.out.println(this.getName() + \"'s XP: \" + this.getExperiencePoints() + \" ---> \" + (this.getExperiencePoints()+exp));\r\n\r\n\t\t//this.experiencePoints += exp;\r\n\t\t\t//parameters 1 == count, 0 is being used as the xp start point to evaluate\r\n\t\t\t//the intervals in the helper method\r\n\t\twhile(exp >= calcLevel(1,0)){\r\n\t\t\t//System.out.println(calcLevel(1,0));\r\n\t\t\tthis.experiencePoints = calcLevel(1,0);\r\n\t\t\t//System.out.println(this.getExperiencePoints());\r\n\t\t\tthis.levelUp();\r\n\t\t}\r\n\t\t\r\n\t\tthis.experiencePoints += (exp-this.experiencePoints);\r\n\t}", "public long getLifePoints()\n {\n return this.lifePoints;\n }", "public int getHitPoints() {\n return hitPoints;\n }" ]
[ "0.7078577", "0.7069442", "0.69755995", "0.69452465", "0.6913721", "0.6883979", "0.6764281", "0.6763185", "0.67528546", "0.67225796", "0.67220336", "0.67220336", "0.67220336", "0.67112166", "0.6704484", "0.6685139", "0.6678976", "0.6613204", "0.6546126", "0.65391684", "0.6503316", "0.64816415", "0.6467767", "0.64290303", "0.64127636", "0.64127636", "0.64127636", "0.6410044", "0.6388788", "0.6387331", "0.6379273", "0.6379273", "0.6379273", "0.63655645", "0.6361787", "0.6351557", "0.63488257", "0.6345241", "0.63382924", "0.6335518", "0.63261855", "0.6308642", "0.62881", "0.62834454", "0.627165", "0.62678045", "0.6264057", "0.6258718", "0.6253065", "0.6246113", "0.6239904", "0.62253755", "0.62081873", "0.6186317", "0.61769825", "0.6175504", "0.61521906", "0.6144395", "0.6143", "0.61317337", "0.61266464", "0.6096655", "0.60755265", "0.606698", "0.6059517", "0.6058335", "0.60519195", "0.60474175", "0.6047284", "0.60411197", "0.60354686", "0.6034937", "0.6030283", "0.6030283", "0.6029419", "0.6026194", "0.6020201", "0.601435", "0.60107964", "0.601004", "0.6007803", "0.60013056", "0.59958124", "0.5993975", "0.59914774", "0.59890723", "0.59727114", "0.5971519", "0.59712285", "0.59710056", "0.59706", "0.59700346", "0.5963372", "0.59586394", "0.59531194", "0.59445024", "0.5928359", "0.5921671", "0.5919497", "0.59160405" ]
0.6547814
18
How many coins it brings when killed
@Override public int howManyCoins() { return 7; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumberOfCoins() {\n return coins;\n }", "public int getCoinCount() {\n return coinCount;\n }", "public int getCoinCount() {\r\n\t\treturn this.coinCount;\r\n\t}", "public void countCoins() {\r\n\t\tthis.coinCount = 0;\r\n\t\tfor (int x = 0; x < WIDTH; x++) {\r\n\t\t\tfor (int y = 0; y < HEIGHT; y++) {\r\n\t\t\t\tif (this.accessType(x, y) == 'C')\r\n\t\t\t\t\tthis.coinCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int getToalCoins()\n\t{\n\t\treturn CoinCount;\n\t}", "public int getCoins() {\n return coins; //XXX-CHANGE-XXX\n }", "public int giveChange(Coin coinType)\n {\n numberofcoins = 0;\n while(balance> coinType.getValue()-1E-12){\n numberofcoins++;\n balance = balance - coinType.getValue();\n }\n System.out.println(balance);\n System.out.println(numberofcoins);\n return numberofcoins;\n }", "public int getCoinsNum();", "private double calculateMoneyInserted() {\r\n double amount = 0.0;\r\n\r\n for(VendingMachine.Coin coin : coins) {\r\n amount += coin.amount();\r\n }\r\n return amount;\r\n }", "public int getTotalCoins() {\r\n\t\treturn goods.get(Resource.COIN);\r\n\t}", "public void warningCoins(int coins);", "public int applyNutrientCoefficient() {\n int deadGuppyCount = 0;\n\n Iterator<Guppy> it = guppiesInPool.iterator();\n while (it.hasNext()) {\n Guppy currentGuppy = it.next();\n\n randomNumberGenerator = new Random();\n double generatedDouble = randomNumberGenerator.nextDouble();\n\n if (generatedDouble > this.getNutrientCoefficient()) {\n currentGuppy.setIsAlive(false);\n deadGuppyCount++;\n }\n }\n return deadGuppyCount;\n }", "private double enemyKills()\n {\n return (double)enemyResult.shipsLost();\n }", "@Override\n public int tonKho() {\n return getAmount() - amountBorrow;\n }", "public int getCoinsPickedUp() {\n return coinsPickedUp;\n }", "public int adjustForCrowding() {\n int deadGuppyCount = 0;\n\n Collections.sort(this.guppiesInPool, new Comparator<Guppy>() {\n @Override\n public int compare(Guppy g1, Guppy g2) {\n return Double.compare(g1.getHealthCoefficient(), g2.getHealthCoefficient());\n }\n });\n\n Guppy weakestGuppy;\n Iterator<Guppy> it = guppiesInPool.iterator();\n double volumeNeeded = this.getGuppyVolumeRequirementInLitres();\n\n while (it.hasNext() && volumeNeeded > this.getVolumeLitres()) {\n weakestGuppy = it.next();\n volumeNeeded -= (weakestGuppy.getVolumeNeeded() / ML_TO_L_CONVERSION);\n\n weakestGuppy.setIsAlive(false);\n\n\n deadGuppyCount++;\n\n }\n return deadGuppyCount;\n }", "public int getCoins() {\r\n\t\treturn collectionManager.getCoins();\r\n\t}", "public void setCoinCount(int coins){\n coinCount = coins;\n }", "public int checkNoOfExplosivesPlayerHolds () { return noOfExplosives; }", "private int calculateTotalHeads() { //kept a separate method with a specific purpose instead of writing code in main\n\t\t//no need to static method, althouth static won't hurt in such a small code\n\t\tint headsCount = 0;\n\t\tfor (int currentCoinNo = 1; currentCoinNo <= noCoins; currentCoinNo++) { \n\t\t\tif(isHead(currentCoinNo)) {\n\t\t\t\theadsCount++;\n\t\t\t}\n\t\t}\n\t\treturn headsCount;\n\t}", "public void score(){\r\n\t\tint playerLocation = player.getLocationX();\r\n\t\tint obstacleX = obstacle.getLocationX();\r\n\t\tint obstacleY = obstacle.getLocationY();\r\n\r\n\r\n\t\tstr =\"\" + countCoins;\r\n\r\n\t\t//if you hit a coin, the number of points goes up by one.\r\n\t\tif(obstacleY == 280 && obstacleX==300 && playerLocation == 250){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\t\tif(obstacleY== 450 && obstacleX==300 && playerLocation ==450){\r\n\t\t\tcountCoins++;\r\n\t\t}\r\n\r\n\t\t//if you hit the green monster, you lose one point.\r\n\t\tif((obstacleX-50) == 250 && (obstacleY-240) == 250 && playerLocation ==250){\r\n\t\t\tcountCoins--;\r\n\t\t}\r\n\r\n\t\t//if you hit the blue monster, you lose 3 points.\r\n\t\tif((obstacleX+180) == 480 && (obstacleY+180) == 250 && playerLocation ==450){\r\n\t\t\tcountCoins-=3;\r\n\t\t}\r\n\t}", "public int computeDamageTo(Combatant opponent) { return 0; }", "public static int numPennies(double money) {\n // REPLACE THIS WITH YOUR CODE\n return 0;\n }", "int getChestsAmount();", "public int numAlivePokemon() {\r\n\t\tint count = 0;\r\n\t\tfor (Pokemon p : ownedPokemon) {\r\n\t\t\tif (p.getCurrentHP() > 0) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public BigDecimal getCoins() {\n return coins;\n }", "BigInteger getTotalDifficulty();", "private void countChange() {\n /* To make 0.00, we use 0 coins. */\n myIndices[0] = 0;\n \n /* \n * Work from subproblem $0.01 to target. \n * Because subproblems overlap, we will\n * store them and use them dynamically.\n */\n for (int curr = 1; curr <= myTarget; curr++) {\n /* \n * Adds one coin (current-next used) to\n * the preemptive minimum coins needed.\n */\n myIndices[curr] = getMinPrior(curr) + 1;\n }\n \n myMinCoins = myIndices[myTarget];\n }", "public int getCoin() {\n return getStat(coin);\n }", "public double getExitingCosts(){\r\n\t\t\r\n\t\treturn exitingCosts;\r\n\t\t\r\n\t}", "int getFaintedPokemonCount();", "public int getNumCaught() {\r\n\t\tint count = 0;\r\n\t\tfor (int poke : caughtPokemon.values()) {\r\n\t\t\tcount += poke;\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public int nbEnemiesAlive(){\n return state.getPlayers().size()-1;\n }", "private BigInteger computeTotalWays(){\n Map<BigInteger, Integer> sumdices = new ConcurrentHashMap<>();\n dice.stream()\n .map( die -> new BigInteger(die.getSides().toString()) )\n .forEach((c) -> {\n sumdices.compute(c, (k,v) -> {return v == null ? 1 : v + 1; });\n });\n \n // How many ways to roll a die are in total.\n return sumdices.entrySet().stream()\n .map(e -> { return e.getKey().pow(e.getValue()); })\n .reduce(BigInteger.ZERO, (a,b) -> a.add(b) );\n \n }", "private void calcCoins() {\n\t\tint changeDueRemaining = (int) Math.round((this.changeDue - (int) this.changeDue) * 100);\n\n\t\tif (changeDueRemaining >= 25) {\n\t\t\tthis.quarter += changeDueRemaining / 25;\n\t\t\tchangeDueRemaining = changeDueRemaining % 25;\n\t\t}\n\t\tif (changeDueRemaining >= 10) {\n\t\t\tthis.dime += changeDueRemaining / 10;\n\t\t\tchangeDueRemaining = changeDueRemaining % 10;\n\t\t}\n\t\tif (changeDueRemaining >= 5) {\n\t\t\tthis.nickel += changeDueRemaining / 5;\n\t\t\tchangeDueRemaining = changeDueRemaining % 5;\n\t\t}\n\t\tif (changeDueRemaining >= 1) {\n\t\t\tthis.penny += changeDueRemaining / 1;\n\t\t}\n\t}", "public static int numNickels(double money) {\n // REPLACE THIS WITH YOUR CODE\n return 0;\n }", "int getKills(UUID player);", "public double getLikelinessToGetKilled() {\n return likelinessToGetKilled;\n }", "void calculateSpawnAmount();", "public int generateCoins() {\n\t\n Entity e = new Coin();\n\t\n int c = rand.nextInt(6) + 1;\n int r = rand.nextInt(c) + 1;\n\n int w = e.getWidth();\n int h = e.getHeight();\n\t\n int y = rand.nextInt(mMap.getBottomBound() - r * h);\n int x = 1000;\n\n e.setRelativeVelocity(mGame.getPlayer().getVelocity());\n e.setPosition(x, y);\n mGame.addEntity(e);\n\n // Generates a group of coins\n for(int i = 0; i < r; i++) {\n for(int j = 0; j < c; j++) {\n if(i == 0 && j == 0) continue;\n\n e = new Coin();\n e.setRelativeVelocity(mGame.getPlayer().getVelocity());\n e.setPosition(x + w * j, y + h * i);\n mGame.addEntity(e);\n }\n }\n\n return w * c;\n }", "public int getTotalGoldenCards() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getGoldCardsByWins());\n }", "public int totalWorth() {\n\t\tint val = 0;\n\t\tfor (Card c : cards) {\n\t\t\tval += c.value();\n\t\t}\n\t\treturn val;\n\t}", "public double countBalance() {\n return countIncome() - countExpenses();\n }", "public void getBonusPoints(){\n\t\tif((this.player[Dominoes.getPlayerIndex()].hand.size() == 0) && (Dominoes.missedRounds == 0)){\n\t\t\tshort bonusScore = 0;\n\t\t\tfor(byte i = 0; i < this.player.length; i++){\n\t\t\t\tif(i != Dominoes.getPlayerIndex()){\n\t\t\t\t\tbonusScore += (this.player[i].hand.size() * 5);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.player[Dominoes.getPlayerIndex()].score += bonusScore;\n\t\t}\n\t}", "public void returncoins(){\r\n\t\tDS1 d= (DS1) ds;\r\n\t\tSystem.out.println(\"Coins returned : \" + d.cp + \"\\n\");\r\n\t\td.cp=0;\r\n\t}", "int getReservePokemonCount();", "int getMinigameDefenseChancesLeft();", "public void subtractCoins (int n) {\n this.coinCount = Math.max(0, this.coinCount - n);\n this.save();\n }", "public int getTotalKills() {\n\t\treturn _nTotalKills;\n\t}", "private int getNumberOfFreeChairs() {\n return this.numberOfChairs - waitingStudents.size();\n }", "public void coinDisbursed() {\r\n float coinsHandOut = this.balance; // coinsHandOut ---> balance to get the number of coins while keeping the amount entered\r\n // 100 Namibian Dollar\r\n int hundredDollar = (int)(coinsHandOut / 100.0F);\r\n float remainder = coinsHandOut % 100.0F;\r\n // 50 Namibian Dollar\r\n int fiftyDollar = (int)(remainder / 50.0F);\r\n remainder %= 50.0F;\r\n // 20 Namibian Dollar //\r\n int twentyDollar = (int)(remainder / 20.0F);\r\n remainder %= 20.0F;\r\n // 10 Namibian Dollar //\r\n int tenDollar = (int)(remainder / 10.0F);\r\n remainder %= 10.0F;\r\n // 5 Namibian Dollar //\r\n int fiveDollar = (int)(remainder / 5.0F);\r\n remainder %= 5.0F;\r\n // 1 Namibian Dollar //\r\n int oneDollar = (int)remainder;\r\n remainder %= 1.0F;\r\n // 50 cent --> 50 /100 //\r\n int fiftyCents = (int)((double)remainder / 0.5D);\r\n remainder = (float)((double)remainder % 0.5D);\r\n // 10 cent --> 10 /100\r\n int tenCents = (int)((double)remainder / 0.1D);\r\n remainder = (float)((double)remainder % 0.1D);\r\n // 5 cent --> 5 /100 //\r\n int fiveCents = (int)((double)remainder / 0.05D);\r\n System.out.println(\"\\nDisbursed :\\n\" + hundredDollar + \" x N$100\\n\" + fiftyDollar + \" x N$50\\n\" + twentyDollar + \" x N$20\\n\" + tenDollar + \" x N$10\\n\" + fiveDollar + \" x N$5\\n\" + oneDollar + \" x N$1\\n\" + fiftyCents + \" x 50c\\n\" + tenCents + \" x 10c\\n\" + fiveCents + \" x 5c\");\r\n }", "public int getKillCount(){\n return killCount;\n }", "public int isSafe(){\n int nbEnnemies = 0;\n List<Player> players = state.getPlayers();\n Player currentPlayer = state.getCurrentPlayer();\n for(Player p : players){\n if(!p.equals(currentPlayer)) {\n nbEnnemies += currentPlayerReachable(state.getCurrentPlayer(), p);\n //nbEnnemies += manhattan(currentPlayer, p); //naive version\n }\n }\n return nbEnnemies;\n }", "int getTotalLeased();", "public int getTotalRegularCards() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getCardsByWins());\n }", "static long getWays(int amount, int[] coins){\n long[] dp = new long[amount + 1];\n \n //ways to pay amount 0 is only 1 i.e. not to give any coin\n dp[0] = 1;\n \n //outer loop works on coin array\n for(int coin : coins){\n\n //inner loop works on dp array\n for(int i = 1; i < dp.length; i++){\n if(i >= coin){\n\n //adding the number ways to pay i-coin \n dp[i] += dp[i - coin];\n }\n }\n }\n\n //returning no of ways to pay amount. \n return dp[amount];\n }", "int getSuperEffectiveChargeAttacksUsed();", "public int getMasteredSkills() {\r\n int count = 0;\r\n for (int i = 0; i < getTotalSkills(); i++) {\r\n if (getStaticLevel(i) >= 99) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "public int losses(String team) {\n\n return 0;\n }", "int getNewlyAvailableQuestsCount();", "@Override\n public int howManyActivatedExceptBaseProduction(){\n return (gameboardPanel.howManyActivatedExceptBaseProduction() + leaderCardsPanel.howManyActivated());\n }", "public static int coins(int n) {\n int[] coins = {1,5,10,25};\n int[] s = new int[n+1];\n for(int i=1; i<=n; i++) {\n for(int j=0; j<coins.length && j<=i; j++) {\n if(i-coins[j] == 0) {\n s[i]++;\n }\n if(i-coins[j] > 0) {\n s[i] += s[i-coins[j]];\n }\n }\n }\n return s[n];\n }", "public int countHandShakes(){\n\t\tif (this.getNCouples() < 1) {\n\t\t\treturn 0;\n\t\t}else if (this.getNCouples() == 1) {\n\t\t\treturn 1;\n\t\t}else{\n\t\t\tthis.setNCouples(this.getNCouples() - 1);\n\t\t\treturn (this.getNCouples() + 1) * 3 - 2 + countHandShakes();\n\t\t}\n\t}", "public int computeRangedDamageTo(Combatant opponent) { return 0; }", "public int getTotalWins() {\n int sum = 0;\n for (int i = 0; i < 13; i++) {\n sum += i * this.statistics.getDecksByWins().get(i);\n }\n return sum;\n }", "public int getReceivedBitcoins()\r\n {\r\n return this.receivedBitcoins;\r\n }", "@Override\n public int finalScore() {\n if (isBust()) {\n return 0;\n }\n if (isBlackjack()) {\n return 22;\n }\n return higherScore();\n }", "public int howManyHeroDead() {\r\n int count;\r\n count = 0;\r\n for (Hero h: team) {\r\n if (h.isDead()) {\r\n count = count + 1;\r\n }\r\n }\r\n return count;\r\n }", "public int getLivesRemaining();", "int getQuestCount();", "public int getNumExits() {\n return mySize.getNumExits();\n }", "public int getTotalProfit() {\n\t\tif (game.countProfit() >= 0) {\n\t\t\treturn 0;\n\t\t}\n\t\telse {\n\t\t\treturn game.countProfit();\n\t\t}\n\t}", "public int awardTriviaCoins (double pct) {\n Random r = new Random();\n int min = 1;\n if (pct > 0.75) {\n min = 15;\n } else if (pct > 0.5) {\n min = 10;\n } else if (pct > 0.25) {\n min = 5;\n }\n int winnings = min + (int)(Math.ceil(r.nextInt(10) * pct));\n this.coinCount += winnings;\n this.save();\n \n UserEvent.NewCoins message = new UserEvent.NewCoins(this.id, winnings);\n notifyMe(message);\n \n return winnings;\t \n\t}", "public double rebuild_bricks_and_determine_percent_killed() throws Exception{\n blocker.rebuildBricks(true);\n List list=blocker.getKillList();\n double n=0;\n double d=0;\n for(int i=0;i<list.size();i++){\n //System.out.println(list.get(i));\n if((boolean)list.get(i))\n n+=1;\n d+=1;\n }\n //System.out.println();\n Brick[] brick=blocker.getBricks();\n return n/d;\n }", "public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }", "public int totalEffetInventaire() {\n\t\tint limiteInventaire = 0;\n\t\tif (bonusForce >0) limiteInventaire+= bonusForce;\n\t\tif (bonusDefense >0) limiteInventaire+= bonusDefense;\n\t\tif (bonusVie >0) limiteInventaire+= bonusVie;\n\t\tif (bonusEsquive >0) limiteInventaire+= bonusEsquive;\n\t\tif (bonusInventaire >0) limiteInventaire+= bonusInventaire;\n\t\treturn limiteInventaire*3/4;\n\t}", "public int getTotalCollisions(){\r\n return totalCollisions;\r\n }", "public int getKills() {\n return kills;\n }", "public int getNumDeaths() {\n\t\treturn this.numDeaths;\n\t}", "public void takeoutMoney (double amount) {\n if(amount >= 2.0) {\n int numberToRemove = (int) Math.min(getToonie(), amount / 2.0);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 2.0) {\n coins.remove(j);\n break;\n }\n }\n }\n NToonie -= numberToRemove;\n amount -= 2.0 * numberToRemove;\n }\n if(amount >= 1.0) {\n int numberToRemove = (int) Math.min(getLoonie(), amount / 1.0);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 1.0) {\n coins.remove(j);\n break;\n }\n }\n }\n NLoonie -= numberToRemove;\n amount -= 1.0 * numberToRemove;\n }\n if(amount >= 0.25) {\n int numberToRemove = (int) Math.min(getQuarter(), amount / 0.25);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 0.25) {\n coins.remove(j);\n break;\n }\n }\n }\n NQuarter -= numberToRemove;\n amount -= 0.25 * numberToRemove;\n }\n if(amount >= 0.1) {\n int numberToRemove = (int) Math.min(getDime(), amount / 0.1);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 0.1) {\n coins.remove(j);\n break;\n }\n }\n }\n NDime -= numberToRemove;\n amount -= 0.1 * numberToRemove;\n }\n if(amount >= 0.05) {\n int numberToRemove = (int) Math.min(getNickel(), amount / 0.05);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 0.05) {\n coins.remove(j);\n break;\n }\n }\n }\n NNickel -= numberToRemove;\n amount -= 0.05 * numberToRemove;\n }\n }", "public void incrementCoinCount() {\n coinCount++;\n System.out.println(\"Rich! Coin count = \" + coinCount);\n }", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "public int getRemainingPcs()\n\t{\n\t\treturn pieces.length - existing.cardinality();\n\t}", "public int getDeathPoints() {\n return deathPoints;\n }", "public int raiseMoney()\r\n {\r\n int total = super.raiseMoney();\r\n getCandidate().setMoneyMod(getCandidate().getMoneyMod() - .05);\r\n return total;\r\n }", "public int checkChasingPlayer()\n {\n if(stunCountdown > 0)\n {\n chasingPlayer = false;\n return stunCountdown;\n }\n if(Game.getInstance().getPlayer().getCurrentRoom().isControlRoom())\n {\n chasingPlayer = false;\n return(-1);\n }\n else\n {\n List<Exit> neighbors = getCurrentRoom().getCollectionOfExits();\n for(Exit neighbor : neighbors)\n {\n if(getCurrentRoom().getExit(neighbor).equals(Game.getInstance().getPlayer().getCurrentRoom()) && neighbor.isOperating())\n {\n chasingPlayer = true;\n return(5 + (int) Math.floor(Math.random() * 6));\n }\n }\n chasingPlayer = false;\n return(-1);\n }\n }", "int getBlocksAmount();", "@Override\n\tpublic int howmuch() {\n\t\treturn price;\n\t}", "protected int numberRemainingTickets()\n\t{\n\t\treturn tickets.size();\n\t}", "@Override\n\tpublic long procount() {\n\t\treturn 0;\n\t}", "public int getDeaths()\n\t{\n \treturn currentDeath;\n\t}", "private int totalInfeasibility(int[] chromosome) {\n\t\tint infeasibility = 0;\n\t\tint[] bins = new int[binCount];\n\t\tfor (int i = 0; i < chromosome.length; i++) {\n\t\t\tif (chromosome[i] >= bins.length) {\n\t\t\t\tinfeasibility += 10;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tbins[chromosome[i]] += packageWeights[i]; //put package into bin\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"noooo\");\n\t\t\t}\n\n\t\t}\n\n\t\tfor (int i = 0; i < bins.length; i++) {\n\t\t\tif (bins[i] > binSize)\n\t\t\t\tinfeasibility += bins[i] - binSize;\n\t\t}\n\t\treturn infeasibility;\n\t}", "public static int sumCoins(int quarters, int dimes, int nickels, int pennies){\n \n return (quarters * 25) + (dimes * 10) + (nickels * 5) + (pennies) * 1;\n }", "public int coinChange(int[] coins, int amount) {\n Arrays.sort(coins); // greedy. Iterate from largest value\n \n int[] ans = new int[]{Integer.MAX_VALUE};\n helper(coins.length - 1, coins, amount, 0, ans);\n \n return ans[0] == Integer.MAX_VALUE ? -1 : ans[0];\n }", "@Override\n public void checkWonLost(Entity entity) {\n if (entity instanceof Player) {\n\n if (overallCoinsInGame <= 0) {\n world.won();\n }\n }\n }", "@External(readonly = true)\t\n\tpublic BigInteger get_excess() {\n\t\t\n\t\tBigInteger positive_excess = BigInteger.ZERO;\n\t\tBigInteger game_developers_amount = BigInteger.ZERO;\n\n\t\tfor(int i= 0; i< this.get_approved_games().size(); i++) {\n\t\t\tAddress game = this.get_approved_games().get(i);\n\t\t\tBigInteger game_excess = this.todays_games_excess.get(game);\n\t\t\tif (game_excess!= null && \n\t\t\t\t\tgame_excess.compareTo(BigInteger.ZERO)>= 0) {\n\t\t\t\tpositive_excess = positive_excess.add(game_excess);\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tgame_developers_amount = this.game_developers_share.get().multiply(positive_excess);\n\t\tgame_developers_amount = game_developers_amount.divide(BigInteger.valueOf(100L));\n\t\t\n\t\treturn game_developers_amount;\n\t}", "@Override\n public int dues(Person person) {\n List<TransactionInformation> statement = person.statement();\n if (statement.size() == 0){\n return -1 * expensePerPerson();\n }\n TransactionInformation total = statement.get(statement.size() - 1);\n\n return total.balance - expensePerPerson();\n }", "public int getNumActiveCashUnits() {\n int numActiveUnits = 0 ;\n for( final Trade buyTrade : this.posHldCashTrades ) {\n numActiveUnits += buyTrade.getNumActiveUnits() ;\n }\n return numActiveUnits ;\n }", "private double culcSystemProfit(BetsMap bets, Car winner) {\n\t\tdouble sumBets = bets.getSumBets();\n\t\tif (bets.forCar(winner).isEmpty()) {\n\t\t\treturn sumBets;\n\t\t}\n\t\treturn sumBets * PERCENT / 100;\n\t}", "public int getTotalOfdefeats() {\n return statistics.get(TypeOfGames.SIMGAME).getNumberOfDefeats()\n + statistics.get(TypeOfGames.EASYCOMPUTERGAME).getNumberOfDefeats()\n + statistics.get(TypeOfGames.HARDCOMPUTERGAME).getNumberOfDefeats();\n }" ]
[ "0.7400529", "0.67099535", "0.6642426", "0.6628037", "0.66029453", "0.65618074", "0.65529215", "0.64679813", "0.6452185", "0.6442991", "0.6415334", "0.64153105", "0.6348727", "0.6340794", "0.6280919", "0.6279418", "0.6257765", "0.6239104", "0.6183116", "0.6180754", "0.61681294", "0.61153835", "0.61124766", "0.610307", "0.6088328", "0.6063835", "0.60513234", "0.60481566", "0.6032598", "0.5988377", "0.5967538", "0.5944377", "0.5926555", "0.59131455", "0.5909491", "0.58970374", "0.5886134", "0.58847994", "0.58671546", "0.58522683", "0.5838465", "0.58382195", "0.58281696", "0.58196443", "0.58165973", "0.58091986", "0.5806759", "0.579149", "0.5790257", "0.5786951", "0.5786757", "0.5776895", "0.57759386", "0.5771781", "0.57690775", "0.57650435", "0.5747273", "0.5746403", "0.5715998", "0.5704105", "0.56917006", "0.56740624", "0.5667579", "0.5657166", "0.5645686", "0.56449264", "0.56402373", "0.56263506", "0.560707", "0.56070215", "0.5600237", "0.559421", "0.5589828", "0.55893373", "0.55764866", "0.55661756", "0.55566776", "0.555527", "0.55523044", "0.5548591", "0.55457795", "0.5542845", "0.5539905", "0.55356383", "0.55253506", "0.552497", "0.5520604", "0.5515122", "0.5512492", "0.55122966", "0.5503512", "0.55003357", "0.54972297", "0.5496823", "0.5494558", "0.5483439", "0.54799026", "0.5478654", "0.5476368", "0.54734254" ]
0.7356737
1
defines the reaction of this enemy when it is attacked by a tower
@Override public void getAttacked(Tower t) { if(t.getAttackPower() > this._defencePower){ int damage = t.getAttackPower() - this._defencePower; this._health -= damage; _image=t.getAttackImage(); _BlinkTimer.start(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int attack( ){\n\t\treturn enemy.attack();\n\t}", "public void setTowerAttackDamage() {\n\t\tTowerDisplayEntity tower = new TowerDisplayEntity();\n\t\ttower.setAttackDamage(10);\n\t}", "private void enemyAttack() {\n\t\t\n\t\tRandom rand = new Random();\t\n\t\t\n\t\tint roll = rand.nextInt(101);\n\t\t\n\t\tint sroll = rand.nextInt(101);\n\t\t\n\t\tevents.appendText(e.getName() + \" attacks!\\n\");\n\t\t\n\t\tif(roll <= p.getEV()) { // Player evades\n\t\t\t\n\t\t\tevents.appendText(\"You evaded \"+e.getName()+\"\\'s Attack!\\n\");\n\t\t\t\n\t\t}else if(roll > p.getEV()) { // Player is hit and dies if HP is 0 or less\n\t\t\t\n\t\t\tp.setHP(p.getHP() - e.getDMG());\n\t\t\t\n\t\t\tString newHp = p.getHP()+\"/\"+p.getMaxHP();\n\t\t\t\n\t\t\tString effect = e.getSpecial(); // Stats are afflicted\n\t\t\t\n\t\t\tif(sroll < 51){\n\t\t\t\t\n\t\t\tif(effect == \"Bleed\") { // Bleed Special\n\t\t\t\t\n\t\t\t\tp.setHP(p.getHP() - 100);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You bleed profusely. - 100 HP\\n\");\n\t\t\t\t\n\t\t\t\tnewHp = String.valueOf(p.getHP()+\"/\"+p.getMaxHP());\n\t\t\t}\n\t\t\tif(effect == \"Break\") { // Break Special \n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You feel a bone break restricting movement. - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Fear\") { // Fear Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-40>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 40);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"A crippling fear rattles your resolve. - 40 DMG\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Rend\") { // Rend Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-30>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 30);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"Morthar unleashes a pillar of flame! - 30 DMG and - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\tif(p.getHP() <= 0) {\n\t\t\t\t\n\t\t\t\tp.setDead(true);\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(0+\"/\"+e.getMaxHP());\n\t\t\t\tplayerHPBar.setProgress((double)0);\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(newHp);\n\t\t\t\tplayerHPBar.setProgress((double)p.getHP()/p.getMaxHP());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(p.isDead()) { // Game over if player dies\n\t\t\t\n\t\t\ttry {\n\t\t\t\tLoadGO();\n\t\t\t} catch (IOException e1) {\n\t\t\t\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcombat = false;\n\t\t}\n\t}", "public void attackTargetCharacter() {\n }", "public abstract boolean attack(Enemy w);", "public void attack() {\n energy = 2;\n redBull = 0;\n gun = 0;\n target = 1;\n // if Player is in range take off a life.\n if (CharacterTask.ghostLocation == GameWindow.playerLocation) {\n playerLives = playerLives - 1;\n System.out.println(\"Player Lives: \" + playerLives);\n }\n }", "public void playerAttack() {\n if (playerTurn==true) {\n myMonster.enemHealth=myMonster.enemHealth-battlePlayer.str;\n }\n playerTurn=false;\n enemyMove();\n }", "public String attack() {\r\n\t\t\tthis.getCurrentEnemy().setHealth(this.getCurrentEnemy().getHealth()-this.getPlayer().getWeapon().getAttack());\r\n\t\t\tif(this.getCurrentEnemy().isDefeated()) {\r\n\t\t\t\tthis.setInBattle(false);\r\n\t\t\t\t\r\n\t\t\t\tthis.handleQuestrelatedEnemy(this.getCurrentEnemy());\r\n\t\t\t\t\r\n\t\t\t\tif(this.getCurrentEnemy().getLoot() != null) {\r\n\t\t\t\t\tthis.getPlayer().getCurrentLocation().addItem(this.getCurrentEnemy().getLoot());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthis.getPlayer().gainXp(this.getCurrentEnemy().getXpYield());\r\n\t\t\t\tthis.getPlayer().getCurrentLocation().removeNpc(this.getCurrentEnemy().getName());\r\n\t\t\t\tif(this.getCurrentEnemy().getClass().getName().equals(\"game.EnemyGuardian\")) {\r\n\t\t\t\t\t// adds paths between current location and location in the guardian, path names are specified in the guardian construction\r\n\t\t\t\t\tthis.getPlayer().getCurrentLocation().addPaths(this.getPlayer().getCurrentLocation(), ((EnemyGuardian)this.getCurrentEnemy()).getPathTo(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((EnemyGuardian)this.getCurrentEnemy()).getGuardedLocation(), ((EnemyGuardian)this.getCurrentEnemy()).getPathFrom());\r\n\t\t\t\t\treturn \"You defeated \" + this.getCurrentEnemy().getName() + \". \\n\"\r\n\t\t\t\t\t\t\t+ ((EnemyGuardian)this.getCurrentEnemy()).getRevelationMessage() + \"\\n\";\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn \"You defeated \" + this.getCurrentEnemy().getName() + \".\";\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.triggerEnemyAttack();\r\n\t\t\t\t\tif(this.getPlayer().getHealth() <= 0) {\r\n\r\n\t\t\t\t\t\tthis.gameOver();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn \"You attacked \" + this.getCurrentEnemy().getName() + \" for \" + this.getPlayer().getWeapon().getAttack() + \" damage. \\n You DIED.\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\treturn \"You attacked \" + this.getCurrentEnemy().getName() + \" for \" + this.getPlayer().getWeapon().getAttack() + \" damage. \\n\"\r\n\t\t\t\t\t\t\t\t+ this.getCurrentEnemy().getName() + \" attacked you for \" + this.getCurrentEnemy().getAttack() + \" damage.\\n\"\r\n\t\t\t\t\t\t\t\t\t\t+ this.getCurrentEnemy().printHealth();\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public void battleEnemyAttack() {\n if(battleEnemy != null){ // If all enemies have attacked, they cannot attack anymore for this round\n\n MovingEntity target = battleEnemy.getAttackPreference(targetAllies);\n if(target == null){\n target = targetAlly;\n }\n\n battleEnemy.attack(target, targetEnemies, targetAllies);\n //System.out.println(battleEnemy.getID() + \" is attacking \" + target.getID() + \" remaining hp: \" + target.getCurrHP());\n if (updateTarget(target) == false) {\n // if target still alive, check if its still friendly incase of zombify\n targetAlly = checkSideSwap(targetAlly, false, battleEnemies, targetEnemies, battleAllies, targetAllies);\n }\n\n battleEnemy = nextAttacker(battleEnemy, battleEnemies);\n\n }\n }", "@Override\n\t\t\tpublic void attack(Base enemy) {\n\t\t\t}", "public void attack() {\n this.attacked = true;\n }", "@Override\r\n\tpublic void attack(DungeonCharacter that)\r\n\t{\n\t}", "public void attack() {\n\t\t\n\t\tint row = getPosition().getRow();\n\t\tint column = getPosition().getColumn();\n\t\t\n\t\tgetPosition().setCoordinates(row + 1, column);\n\t\tsetPosition(getPosition()) ;\n\t\t// restore health\n\t\tsetHealth(100);\n\t\t// end hunter mode\n\t\tthis.hunter = false;\n\t\t\n\t}", "public abstract String forceAttack(Humanoid enemy);", "public void attack() {\n if (activeWeapon == null) {\n return;\n }\n attacking = true;\n }", "@Override\n public void onTypeAttack(Entity target) {\n if (target instanceof EntityLivingBase) {\n int time;\n switch (target.worldObj.difficultySetting) {\n case PEACEFUL:\n return;\n case EASY:\n time = 15;\n break;\n case NORMAL:\n time = 35;\n break;\n default:\n time = 75;\n }\n time *= 20;\n ((EntityLivingBase)target).addPotionEffect(new PotionEffect(Potion.resistance.id, time, -3));\n }\n }", "public void attack(){\n activity = CreatureActivity.ATTACK;\n createWeapon();\n endAttack = new CountDown(20); //100\n endAnimationAttack = new CountDown(100);\n }", "private void attack(int player){\n //grabs a random number\n int monster = monsterAttack();\n \n //monsters strength and modifier against the player\n double monAttack;\n double monMod;\n //players strength and modifier against the monster\n double playerAttack;\n double playerMod;\n //resets the buttons\n btnFire.setEnabled(true);\n btnWater.setEnabled(true);\n btnIce.setEnabled(true);\n btnEarth.setEnabled(true);\n //holds the types of attacks the player and monster will have\n Element mType;\n Element pType;\n \n //sets the monsters type of attack\n switch(monster){\n case 0:\n mType = new Earth();\n break;\n case 1:\n mType = new Fire();\n break;\n case 2:\n mType = new Water();\n break;\n case 3:\n mType = new Ice();\n break;\n default:\n mType = new Earth();\n System.out.println(\"Something went wrong with monster attack selection - given number\" + monster);\n break;\n }\n //sets the players attack type, and monsters modifier\n switch(player){\n case 0:\n pType = new Earth();\n playerAttack = c.getEarth();\n monMod = 1.0;\n btnEarth.setEnabled(false);\n break;\n case 1:\n pType = new Fire();\n playerAttack = c.getFire();\n monMod = mType.getFM();\n btnFire.setEnabled(false);\n break;\n case 2:\n pType = new Water();\n playerAttack = c.getWater();\n monMod = mType.getWM();\n btnWater.setEnabled(false);\n break;\n case 3:\n pType = new Ice();\n playerAttack = c.getIce();\n monMod = mType.getIM();\n btnIce.setEnabled(false);\n break;\n default:\n pType = new Earth();\n playerAttack = c.getEarth();\n monMod = 1.0;\n btnEarth.setEnabled(false);\n System.out.println(\"Something went wrong with player attack selection - given number\" + player);\n break;\n }\n //sets the monster's attack type, and player's modifier\n switch(monster){\n case 0:\n monAttack = m.getEarth();\n playerMod = 1.0;\n break;\n case 1:\n monAttack = m.getFire();\n playerMod = pType.getFM();\n break;\n case 2:\n monAttack = m.getWater();\n playerMod = pType.getWM();\n break;\n case 3:\n monAttack = m.getIce();\n playerMod = pType.getIM();\n break;\n default:\n System.out.println(\"Monster attack comparison error\");\n monAttack = m.getEarth();\n playerMod = 1.0;\n break;\n }\n //decide who won the Attack\n decide(playerAttack, playerMod, monAttack, monMod, pType, mType);\n \n }", "public abstract boolean attack(Warrior w);", "@Override\n\t\tpublic void hit(Npc attacker, Mob defender, Hit hit) {\n\t\t}", "@Override\n public void attack(Entity e) {\n e.hit(atk);\n }", "public abstract void attack(Monster mon);", "private void penguinStormReaction(){\n if(obstacle.getUserData().getAssetId().equals(OBSTACLE_CLOUD_ASSETS_ID)){\n if(penguin.isFrightStopped()){\n obstacle.setStormRaining(false);\n }else{\n obstacle.setStormRaining(true);\n }\n }\n }", "private void enemyturn() {\n if (enemy.getHealth() == 0) { // check if the enemy is still alive\n enemy.setAlive(false);\n }\n\n if (enemy.getAlive()) { // if he is alive\n // time to fuck the players day up\n System.out.println(\"\");//formatting\n System.out.println(enemy.getName() + \" attacks you!\");\n\n // calculate the damage this enemy will do\n int differenceHit = enemy.getMaxHit() - enemy.getMinHit(); // difference will be 0-3. But plus 1 (as the result will ALWAYS be +1 in the randomizer so a \"0\" will not happen.\n int minimumDamage = randomize.getRandomDamage(differenceHit); // for example, will return 0-4 if the min and max hit was 4-7. Then do a -1. Making it a 0-3 chance.\n int damage = differenceHit + minimumDamage; // add the minimum damage, to random hit damage.\n\n // calculate the players armor\n damage = damage - player.getPlayerArmorRating();\n if (damage <= 0){\n System.out.println(\"... but you dont take any damage because of your armor!\");\n } else {\n\n System.out.println(\"You take \" + damage + \" damage!\");\n player.removeHealth(damage);\n }\n\n } else { // when ded\n System.out.println(\"The enemy has no chance to fight back. As your final blow killed the enemy.\");\n }\n }", "public int attack(Character target){ //hw3E#0 //hw46#moreThinking\n lowerHP((int)(strength * attack / 10)); //hw3E#0 //hw46#moreThinking\n return super.attack(target); //hw3E#0 //hw44#3,4 //hw46#moreThinking\n }", "@InvokeEvent\n public void onAttack(PlayerAttackEntityEvent event) {\n int multiplier = Configuration.INSTANCE.getMultiplier();\n // Create a variable for the entity.\n Entity entity = event.getEntity();\n // Create a variable for Minecraft#thePlayer\n EntityPlayer player = Minecraft.getMinecraft().thePlayer;\n // Check if the player is null, multiplier is 1 or Configuration#isMultiplyOnAnimals() is false.\n if (player == null || multiplier == 1 || !Configuration.INSTANCE.isMultiplyOnAnimals()) return;\n // Check if the attack was critical.\n boolean critical = player.fallDistance > 0.0f && !player.onGround && !player.isOnLadder() && !player.isInWater() && !player.isPotionActive(Potion.blindness) && player.ridingEntity == null;\n // Create a float to get the EMD (Enchantment Modifier Damage).\n float enchantment = EnchantmentHelper.getEnchantmentModifierDamage(new ItemStack[]{player.getHeldItem()}, new EntityDamageSource(\"player\", player));\n // Create a for statement which loops for the length of the multiplier and runs the code inside.\n for (int i = 1; i < multiplier; ++i) {\n // Checks if enabled.\n if (Configuration.INSTANCE.isEnabled()) {\n // Check if its a critical hit or the multiply without critical hits option is enabled run Minecraft#onCriticalHit(entity) to show the critical marks\n if (critical || Configuration.INSTANCE.isMultiplyWithoutCrits()) Minecraft.getMinecraft().thePlayer.onCriticalHit(entity);\n // Check if the enchantment float is over 0.0f run Minecraft#onEnchantmentCritical(entity) instead.\n if (enchantment > 0.0f) Minecraft.getMinecraft().thePlayer.onEnchantmentCritical(entity);\n }\n }\n }", "public String attackTo(PlayerToken trg){\n\t\tString outcome = super.attackTo(trg);\n\t\t//if attack on Trap, lose:\n\t\tif(trg instanceof Trap){\n\t\t\toutcome = new String(\"won\");\n\t\t}\n\t\treturn outcome;\n\t}", "private void reactToEnemyDefeat(BasicEnemy enemy) {\n // react to character defeating an enemy\n // item rewards\n triggerDropItem(0.5);\n triggerDropPotion(0.1);\n triggerDropTheOneRing(0.002);\n\n // gold & exp rewards\n triggerGainGold(10, 0.2);\n triggerGainExp(5, 1);\n\n // card rewards\n triggerDropCard(0.4); // 0.08 actual, 0.5 for test\n }", "@Override\n protected void onTypeAttack(Entity target) {\n if (target instanceof EntityLivingBase) {\n int time;\n switch (target.worldObj.difficultySetting) {\n case PEACEFUL:\n return;\n case EASY:\n time = 20;\n break;\n case NORMAL:\n time = 50;\n break;\n default:\n time = 120;\n }\n time *= 20;\n EffectHelper.stackEffect((EntityLivingBase)target, Potion.weakness, time, 0, 4);\n EffectHelper.stackEffect((EntityLivingBase)target, Potion.digSlowdown, time, 0, 4);\n }\n }", "void basicAttack(Character attacked);", "public void applyReaction(Reaction reaction) {\n }", "void defendAttack(IUnit attacker, int incomingDamage);", "public void gettingAttacked(HitByBulletEvent e) {\r\n\t\tif (gotTarget) {\r\n\t\t\tfor (int i = 0; i < enemyTracker.getEnemyList().size(); i++) {\r\n\t\t\t\tif (enemyTracker.getEnemyList().get(i).getName().equals(e.getName()) && (!e.getName().equals(radarTarget.getName()))) {\r\n\t\t\t\t\t\tmrRobot.sendMessage(5, \"2\");\r\n\t\t\t\t\t\tradarTarget = enemyTracker.getEnemyList().get(getIndexForEnemy(e.getName()));\r\n\t\t\t\t\t\ttargetTracking.get(getIndexForName(mrRobot.getName())).updateTarget(radarTarget);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void addEnemySheild() {\n this.enemyShield += 1;\n }", "public void chase() throws GameActionException {\n\t\tRobotInfo closestEnemy = dc.getClosestEnemy();\n\t\tif (closestEnemy == null) {\n\t\t\tcurrState = RobotState.RUSH;\n\t\t\treturn;\n\t\t}\n\t\t// attack closest enemy\n\t\tmi.setObjective(closestEnemy.location);\n\t\tmi.setChargeMode();\n\t\tmi.attackMove();\n\t\t// send dead enemy archon IDs\n\t\tsendDeadEnemyArchonIDs();\n\t}", "@EventHandler\n\tpublic void attackMobs(EntityDamageByEntityEvent e) {\n\t\tMessages messagesConfig = plugin.getMsgs();\n\n\t\tif (e.getCause().equals(EntityDamageEvent.DamageCause.PROJECTILE)) { //Just my magic code w(o.o)w\n\t\t\treturn;\n\t\t}else if (e.getDamager() instanceof Player) {\n\t\t\tPlayer p = (Player) e.getDamager();\n\t\t\tItemStack pInv = p.getInventory().getItemInMainHand();\n\n\t\t\tif (!pInv.getType().name().contains(\"SWORD\") && !pInv.getType().name().contains(\"AXE\")) {\n\t\t\t\tif (!(e.getEntity() instanceof Chicken)) {\n\t\t\t\t\te.setCancelled(true);\n\n\t\t\t\t\tif (canSendMessage(p.getUniqueId()))\n\t\t\t\t\t\tp.sendMessage(StringUtil.inColor(messagesConfig.getCantHitWithoutSword()));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void evadeAttack(IUnit attacker, int incomingDamage);", "public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }", "public void attack(Entity entity) {\n\t}", "public void attack(Player player) {\n this.damage = 18 - player.getfPoint(); // the higher the Fighter skill,\n // the lower the damage. change the math.\n int newHealth = player.getShip().getHealth() - damage;\n player.getShip().setHealth(newHealth);\n }", "public void attack() { \n db.attack(creatures.get(creatureId), players.get(playerId));\n creatures.set(creatureId, db.getCreature(creatures.get(creatureId).getId()));\n players.set(playerId, db.getPlayer(players.get(playerId).getId()));\n setTextFields();\n }", "public void fight(String enemy)\n\t{\n\t\tScanner kbAlpha = new Scanner(System.in);\n\t\t\n\t\tString strInput;\t\t\t\t\t\t//player input\n\t\tchar cAttack;\t\t\t\t\t\t\t//player input attack button\n\t\trandom = new Random();\n\t\t\n\t\tcAttack = 'x';\n\t\t\n\t\tif (strEquippedWeapon.equals(\"Dagger\"))\n\t\t{\n\t\t\tthis.iMaxDmg = 5; \t\t\t\t\t//exclusive\n\t\t\tthis.iMinDmg = 2;\t\t\t\t\t//inclusive\n\t\t}\n\t\telse if (strEquippedWeapon.equals(\"Steampunk 4-Barrel Pistol\"))\n\t\t{\n\t\t\tthis.iMaxDmg = 8; \t\t\t\t\t//exclusive\n\t\t\tthis.iMinDmg = 3;\t\t\t\t\t//inclusive\t\t\t\n\t\t}\n\t\telse if (strEquippedWeapon.equals(\"Steampunk Mach. II Riflesword\"))\n\t\t{\n\t\t\tthis.iMaxDmg = 16; \t\t\t\t\t//exclusive\n\t\t\tthis.iMinDmg = 6;\t\t\t\t\t//inclusive\n\t\t}\n\t\t\n\t\tif (enemy.equals(\"alien1\"))\n\t\t{\n\t\t\tthis.iAlienHP = 15;\n\t\t\tthis.iAlienMaxDmg = 3;\t\t\t\t//exclusive\n\t\t\tthis.iAlienMinDmg = 1;\t\t\t\t//inclusive\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.inventory.add(\"Steampunk 4-Barrel Pistol\");\n\t\t\t\t\tsetEquippedWeapon(\"Steampunk 4-Barrel Pistol\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \", but you have killed\"\n\t\t\t\t\t\t+ \" the alien!\\nThe alien dropped his \" +\n\t\t\t\t\t\t\"weapon! You pick it up an examine it. It looks like\\nit is a \" +\n\t\t\t\t\t\t\"Steampunk 4-Barrel Pistol. This might be a better option than \" +\n\t\t\t\t\t\t\"the\\n\" + getEquippedWeapon() + \". You equip it.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you have killed\"\n\t\t\t\t\t\t\t+ \" the alien!\\nThe alien dropped his \" +\n\t\t\t\t\t\t\t\"weapon! You pick it up an examine it. It looks like\\nit is a \" +\n\t\t\t\t\t\t\t\"Steampunk 4-Barrel Pistol. This might be a better option than \" +\n\t\t\t\t\t\t\t\"the\\n\" + getEquippedWeapon() + \". You equip it.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (enemy.equals(\"alien2\"))\n\t\t{\n\t\t\tthis.iAlienHP = 18;\n\t\t\tthis.iAlienMaxDmg = 5;\t\t\t\t//exclusive\n\t\t\tthis.iAlienMinDmg = 1;\t\t\t\t//inclusive\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.iHP += 10;\n\t\t\t\t\tthis.inventory.add(\"Manhole Cover Shield\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damge, but you \" +\n\t\t\t\t\t\t\"killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t+ \"you find a health pack that increases your health by 10. \" +\n\t\t\t\t\t\t\"Fantastic!\\nSearching the alien's corpse, you find a Manhole Cover\"\n\t\t\t\t\t\t+ \" Shield! This will\\nprotect you from some damage.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \"\n\t\t\t\t\t\t\t+ \"killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t\t+ \"you find a health pack that increases your health by 10. \" +\n\t\t\t\t\t\t\t\"Fantastic!\\nSearching the alien's corpse, you find a Manhole Cover\"\n\t\t\t\t\t\t\t+ \" Shield! This will\\nprotect you from some damage.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (enemy.equals(\"alien3\"))\n\t\t{\n\t\t\tif (evaluateInventory(\"Manhole Cover Shield\"))\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 22;\n\t\t\t\tthis.iAlienMaxDmg = 7;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 2;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 22;\n\t\t\t\tthis.iAlienMaxDmg = 9;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 3;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.iHP += 15;\n\t\t\t\t\tthis.inventory.add(\"Edison Grenade\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \" +\n\t\t\t\t\t\t\"killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t+ \"you find a health pack that increases your health by 15. The \"\n\t\t\t\t\t\t+ \"alien also\\ndropped an Edison Grenade! It looks like a bulb but \"\n\t\t\t\t\t\t+ \"probably does more\\nthan light up a room!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \" +\n\t\t\t\t\t\t\t\"killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t\t+ \"you find a health pack that increases your health by 15. The \"\n\t\t\t\t\t\t\t+ \"alien also\\ndropped an Edison Grenade! It looks like a bulb but \"\n\t\t\t\t\t\t\t+ \"probably does more\\nthan light up a room!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (enemy.equals(\"alien4\"))\n\t\t{\n\t\t\tif(evaluateInventory(\"Manhole Cover Shield\"))\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 18;\n\t\t\t\tthis.iAlienMaxDmg = 6;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 1;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 18;\n\t\t\t\tthis.iAlienMaxDmg = 8;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 2;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.iHP += 10;\n\t\t\t\t\tthis.inventory.add(\"Steampunk Mach. II Riflesword\");\n\t\t\t\t\tsetEquippedWeapon(\"Steampunk Mach. II Riflesword\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you\"\n\t\t\t\t\t\t+ \" killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t+ \"you find a health pack that increases your health by 10. The \"\n\t\t\t\t\t\t+ \"alien also\\ndropped a Steampunk Mach. II Riflesword! This weapon\"\n\t\t\t\t\t\t+ \" looks quite menacing.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you\"\n\t\t\t\t\t\t\t+ \" killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t\t+ \"you find a health pack that increases your health by 10. The \"\n\t\t\t\t\t\t\t+ \"alien also\\ndropped a Steampunk Mach. II Riflesword! This weapon\"\n\t\t\t\t\t\t\t+ \" looks quite menacing.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (enemy.equals(\"boss\"))\n\t\t{\n\t\t\tif(evaluateInventory(\"Manhole Cover Shield\"))\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 50;\n\t\t\t\tthis.iAlienMaxDmg = 10;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 2;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 50;\n\t\t\t\tthis.iAlienMaxDmg = 12;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 4;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\n\t\t\t\n\t\t\tif (evaluateInventory(\"Edison Grenade\"))\n\t\t\t{\n\t\t\t\tthis.inventory.remove(\"Edison Grenade\");\n\t\t\t\tthis.iAlienHP -= 20;\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You lob the Edison Grenade to start the battle and hide \"\n\t\t\t\t\t+ \"behind a cluster\\nof stalagmite. A few seconds later, the grenade\"\n\t\t\t\t\t+ \" explodes dealing 20\\ndamage to the boss alien!\\n\\nBoss Alien HP \" +\n\t\t\t\t\t\"left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You lob the Edison Grenade to start the battle and hide \"\n\t\t\t\t\t\t+ \"behind a cluster\\nof stalagmite. A few seconds later, the grenade\"\n\t\t\t\t\t\t+ \" explodes dealing 20 damage to the boss alien!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.inventory.add(\"Platinum Key\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \"\n\t\t\t\t\t\t+ \"have killed the boss alien! He drops the\\n\" +\n\t\t\t\t\t\t\"Platinum Key!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Pick up Platinum Key\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \"\n\t\t\t\t\t\t\t+ \"have killed the boss alien! He drops the\\n\" +\n\t\t\t\t\t\t\t\"Platinum Key!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Pick up Platinum Key\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nBoss Alien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nBoss Alien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void attack(ItemWeapon w, Monster target) {\n\t\ttarget.takeDamage(w.getDamage()+level*20);\n\t}", "public void ExecuteAction()\n {\n ActionTarget oTarget = mVecTargets.get( 0 );\n\n // Check if attack lands: compute chance of hitting the target\n if ( RandomGenerator.GetInstance().GetRandom( 1, 100 ) <=\n mSourceUnit.GetHitChance( oTarget.mCell.GetUnit() ) )\n {\n // Get the attack information from the attacking unit\n double dFinalDamage = Math.max(\n 1,\n mSourceUnit.GetUnit().GetResultingAttributes().GetStrength() -\n oTarget.mCell.GetUnit().GetUnit().GetResultingAttributes().GetPhysicalDef() );\n\n // Check critical chance\n if ( RandomGenerator.GetInstance().GetRandom( 1, 100 ) <=\n mSourceUnit.GetCritChance() )\n {\n dFinalDamage *= 1.5;\n oTarget.mActionStatus = ActionStatus.STATUS_CRITICAL;\n }\n else\n {\n oTarget.mActionStatus = ActionStatus.STATUS_SUCCESS;\n }\n\n // Add random portion to damage (10% of base damage)\n dFinalDamage = RandomGenerator.GetInstance().GetRandom(\n dFinalDamage - ( dFinalDamage / 10 ),\n dFinalDamage + ( dFinalDamage / 10 ) );\n mDamage = oTarget.mCell.GetUnit().ApplyDamage( dFinalDamage );\n\n // Add Slow status to target\n oTarget.mCell.GetUnit().SetStatus( new UnitStatusSlow(\n SLOW_TURN_DURATION,\n oTarget.mCell.GetUnit(),\n SLOW_PERCENTAGE ) );\n\n }\n else\n {\n mDamage = 0;\n oTarget.mActionStatus = ActionStatus.STATUS_MISS;\n }\n\n NotifyActionUpdate();\n ResetAttackArray();\n mSourceUnit.SetActionPerformed();\n }", "public void attack() {\n //Grab an attacker.\n Territory attacker = potentialAttackers.remove(0);\n \n //Find the weakest adjacent territory\n int victimStrength = Integer.MAX_VALUE;\n Territory victim = null;\n List<Territory> adjs = gameController.getBoard().getAdjacentTerritories(attacker);\n for(Territory adj : adjs){\n \n //Verify that our odds are good enough for this attack to consider it.\n int aTroops = attacker.getNumTroops() - 1;\n int dTroops = adj.getNumTroops();\n double odds = MarkovLookupTable.getOddsOfSuccessfulAttack(aTroops, dTroops);\n boolean yes = Double.compare(odds, ACCEPTABLE_RISK) >= 0;\n \n //If we have a chance of winning this fight and its the weakest opponent.\n if(yes && adj.getNumTroops() < victimStrength && !adj.getOwner().equals(this)){\n victim = adj;\n victimStrength = adj.getNumTroops();\n }\n }\n \n //Resolve the Attack by building forces and settle the winner in Victim's land\n Force atkForce = attacker.buildForce(attacker.getNumTroops() - 1);\n Force defForce = victim.buildForce(victimStrength); //Guaranteed not null\n Force winner = atkForce.attack(defForce);\n victim.settleForce(winner);\n }", "public abstract boolean attack(TemporaryCharm i);", "public void weaken(float hit) {\n if (!isInvincible()) {\n hp -= hit;\n invincible = true;\n if (hp < 0) {\n hp = 0;\n }\n\n if(isWeak()){ //Play the death animation\n currentAnimation = deathAnimation;\n }\n }\n }", "public void attack(Person victim)\r\n { \r\n int victimDef = 0;\r\n int hits = 0;\r\n String weaponName = \"bare hands\";\r\n \r\n victimDef = victim.getDef();\r\n \r\n //1/4 chance of critical or twice damage \r\n hits = (attack - victimDef) + (int)((Math.random()*(attack*.3))-(attack*.15));\r\n if (hits < 0)\r\n hits = 0;\r\n \r\n if (weapon!=null)\r\n weaponName = weapon.getName();\r\n \r\n //1/6 chance of missing when attacking\r\n if (!victim.equals(this))\r\n {\r\n if(Game.random(6)!=0)\r\n {\r\n //1/4 chance of double damage\r\n if (Game.random(8)!=0)\r\n say(\"I attack \" + victim.getName() + \" with my \" + weaponName);\r\n else \r\n {\r\n say(\"I inflict critical damage on \" + victim.getName() + \" with my \" + weaponName);\r\n hits += hits;\r\n }\r\n victim.suffer(hits);\r\n }\r\n else\r\n say(\"AHHH I attacked, but \" + victim.getName() + \" dodged my attack!\");\r\n }\r\n \r\n //if victim dies, hero's maxHealth increases\r\n if (victim.getHealth()<=0)\r\n {\r\n maxHealth += 10;\r\n attack += 2;\r\n defense += 1;\r\n }\r\n }", "@Override\n\tpublic void attack() {\n\n\t}", "@Override\n public void attack() {\n\n }", "public void act() \n {\n moveEnemy();\n checkHealth();\n attacked();\n }", "@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\r\n public void onPlayerDamagedByPlayer(final EntityDamageByEntityEvent event) {\n if (!(event.getEntity() instanceof Player)) {\r\n return;\r\n }\r\n if (!(event.getDamager() instanceof Player)) {\r\n return;\r\n }\r\n \r\n final Player target = (Player)event.getEntity();\r\n final Player attacker = (Player)event.getDamager();\r\n final ItemStack is = attacker.getItemInHand();\r\n \r\n if (is != null){\r\n switch (is.getType()){\r\n case EMERALD:\r\n attacker.setItemInHand(ItemUtil.decrementItem(is, 1));\r\n \r\n // 体力・空腹回復、燃えてたら消化\r\n target.setHealth(target.getMaxHealth());\r\n target.setFoodLevel(20);\r\n target.setFireTicks(0);\r\n \r\n // ポーション効果付与\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 45 * 20, 0)); // 45 secs\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 7 * 60 * 20, 0)); // 7 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 9 * 60 * 20, 1)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 9 * 60 * 20, 0)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 5 * 60 * 20, 1)); // 5 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 3 * 60 * 20, 0)); // 3 mins\r\n \r\n // effect, messaging\r\n target.getWorld().playEffect(target.getLocation(), Effect.ENDER_SIGNAL, 0, 10);\r\n Util.message(target, PlayerManager.getPlayer(attacker).getName() + \" &aから特殊効果を与えられました!\");\r\n Util.message(attacker, PlayerManager.getPlayer(target).getName() + \" &aに特殊効果を与えました!\");\r\n \r\n event.setCancelled(true);\r\n event.setDamage(0);\r\n break;\r\n default: break;\r\n }\r\n }\r\n }", "@Override\n\tpublic void setAttack(double attack) {\n\n\t}", "private void eat(Person victim)\r\n { \r\n int defense = 0;\r\n if (victim.getEquip(Equip.ARMOR)!=null)\r\n defense = victim.getEquip(Equip.ARMOR).getRating();\r\n \r\n int hits = weapon.getRating() - defense;\r\n if (hits < 0)\r\n hits = 0;\r\n \r\n if (victim != this) //don't eat yourself\r\n {\r\n say(\"Grrr! I eat tasty \" + victim.getName() + \"!\");\r\n victim.suffer(hits);\r\n }\r\n }", "public boolean handleAttack(Action action) {\n ActorState a = action.getActor();\n if (a.getActor() == actor) {\n // Attacks on oneself always succeed, and we don't want to add ourselves as an enemy\n return true;\n }\n \n //maybeCounter(Augmentation.Type.ATTACK, a, combatants);\n enemies.add(a);\n \n double weaponAccuracy = 1.0; //source.getWeaponAccuracy(action);\n double chance = a.getAccuracy() * weaponAccuracy * (1.0 - getDefense());\n boolean success = Math.random() < chance;\n return success;\n }", "@Override\r\n\tpublic int monsterFight(IFighter attacker, IFighter defencer, ISkill skill) {\n\t\t\r\n\t\tSkillTemplatePojo stPojo = skill.getSkillTemplatePojo();\r\n\t\tfor (SkillUnitPojo hurtPojo : stPojo.getSkillUnitPojo()) {\r\n\t\t\tBattleHurtUpdateResponse.Builder hurtBuilder = createBattleHurtUpdateResponse();\r\n\t\t\thurtBuilder.setAttackerId(attacker.getId());\r\n\t\t\thurtBuilder.setAttackerType(PbAoiEntityType.valueOf(attacker.getType()));\r\n\t\t\thurtBuilder.setSkillUnitId(hurtPojo.getId());\r\n\t\t\thurtBuilder.setSkillId(stPojo.getId());\r\n\t\t\t\r\n\t\t\t// 选 择目标\r\n\t\t\tList<IFighter> targetList = fightAoe.selectTarget(attacker, defencer, hurtPojo, stPojo);\r\n\t\t\tif (targetList.size() <= 0) {\r\n\t\t\t\ttargetList.add(defencer);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (IFighter attacted : targetList) {\r\n\t\t\t\tif (!attacted.isDie()) {\r\n\t\t\t\t\tfight(attacted, attacker, hurtPojo, hurtBuilder);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// 如果有移位加移位\r\n\t\t\tif (hurtPojo.getAttakerMove() > 0) {\r\n\t\t\t\tPosition3D hitback = fightCalculate.calHitMove(attacker, hurtPojo.getAttakerMove(), defencer);\r\n\t\t\t\tif (hitback != null) {\r\n\t\t\t\t\tattacker.setX(hitback.getX());\r\n\t\t\t\t\tattacker.setY(hitback.getY());\r\n\t\t\t\t\tattacker.setZ(hitback.getZ());\r\n\t\t\t\t\tSystem.err.println(attacker.getName() + \"战斗::\" + hitback.getX() + \":::\" + hitback.getZ());\r\n\t\t\t\t\t\r\n\t\t\t\t\tPbPosition3D pbPos = PbPosition3D.newBuilder().setX(hitback.getX()).setY(hitback.getY()).setZ(hitback.getZ()).build();\r\n\t\t\t\t\thurtBuilder.setAttackerMovePos(pbPos);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.sendHurtMsg(hurtBuilder.build(), attacker);\r\n\t\t\tthis.sendUpdateHp(targetList);\r\n\t\t\t\r\n\t\t\t// System.err.println(\"当前打斗时间::\"+(System.currentTimeMillis() - fighTime));\r\n\t\t\tfighTime = System.currentTimeMillis();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "void fire(WarParticipant target, WarParticipant attacker, int noOfShooters);", "@Override\n\tpublic void attack() {\n\t\t\n\t}", "public void attack();", "public InitiateAttackNonCreatureAction() {\n super(new CreatureAttacksNonCreatureRule());\n }", "private void setEnemy(){\n depths.setEnemy(scorpion);\n throne.setEnemy(rusch);\n ossuary.setEnemy(skeleton);\n graveyard.setEnemy(zombie);\n ramparts.setEnemy(ghoul);\n bridge.setEnemy(concierge);\n deathRoom1.setEnemy(ghost);\n deathRoom2.setEnemy(cthulu);\n deathRoom3.setEnemy(wookie); \n }", "public void familiarTick() {\n\t\tattacked = false;\n\t\tif (summonedFamiliar != null && c.getInstance().summoned != null) {\n\t\t\tif (!c.goodDistance(c.getX(), c.getY(), c.getInstance().summoned.getX(), c.getInstance().summoned.getY(),\n\t\t\t\t\t8)) {\n\t\t\t\tcallOnTeleport();\n\t\t\t}\n\t\t\tif (!c.goodDistance(c.getX(), c.getY(), c.getInstance().summoned.getX(), c.getInstance().summoned.getY(),\n\t\t\t\t\t8)) {\n\t\t\t\tc.getSummoning().callFamiliar();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (c.getInstance().playerIndex != 0\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackingAPerson = true;\n\t\t\t} else if (c.getInstance().playerIndex == 0\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackingAPerson = false;\n\t\t\t}\n\t\t\tif (c.getInstance().underAttackBy != 0\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackedByPerson = true;\n\t\t\t} else if (c.getInstance().underAttackBy == 0\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackedByPerson = false;\n\t\t\t}\n\t\t\tif (c.getInstance().npcIndex != 0\n\t\t\t\t\t&& !NPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackingAPerson\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC = true;\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].facePlayer(0);\n\t\t\t} else if (NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tif (NPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC == true)\n\t\t\t\t\tcallFamiliar();\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC = false;\n\t\t\t}\n\t\t\tif (c.getInstance().summoned.killerId != 0 && c.getInstance().summoned.underAttackBy == 0) {\n\t\t\t\tc.getInstance().summoned.killerId = 0;\n\t\t\t\tc.getInstance().summoned.underAttackBy = 0;\n\t\t\t\tc.getSummoning().callFamiliar();\n\t\t\t}\n\t\t\tif (attacked != true) {\n\t\t\t\tif (NPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackedByPerson == true) {\n\t\t\t\t\tattacked = true;\n\t\t\t\t\tPlayer o = PlayerHandler.players[c.getInstance().underAttackBy];\n\t\t\t\t\tif (o != null) {\n\t\t\t\t\t\tif (o.getInstance().inMulti()) {\n\t\t\t\t\t\t\tif (actionTimer == 0) {\n\t\t\t\t\t\t\t\tServer.npcHandler.followPlayer(c.getInstance().summoningMonsterId, o.playerId,\n\t\t\t\t\t\t\t\t\t\tc.playerId);\n\t\t\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].facePlayer(o.playerId);\n\t\t\t\t\t\t\t\tServer.npcHandler.attackPlayer(o, c.getInstance().summoningMonsterId);\n\t\t\t\t\t\t\t\tc.getInstance().summoned.updateRequired = true;\n\t\t\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].index = o.playerId;\n\t\t\t\t\t\t\t\tactionTimer = 7;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tactionTimer--;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (attacked != true) {\n\t\t\t\tif (NPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackingAPerson == true) {\n\t\t\t\t\tattacked = true;\n\t\t\t\t\tPlayer o = PlayerHandler.players[c.getInstance().playerIndex];\n\t\t\t\t\tif (o != null) {\n\t\t\t\t\t\tif (o.getInstance().inMulti()) {\n\t\t\t\t\t\t\tif (actionTimer == 0) {\n\t\t\t\t\t\t\t\tServer.npcHandler.followPlayer(c.getInstance().summoningMonsterId, o.playerId,\n\t\t\t\t\t\t\t\t\t\tc.playerId);\n\t\t\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].facePlayer(o.playerId);\n\t\t\t\t\t\t\t\tServer.npcHandler.attackPlayer(o, c.getInstance().summoningMonsterId);\n\t\t\t\t\t\t\t\tc.getInstance().summoned.updateRequired = true;\n\t\t\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].index = o.playerId;\n\t\t\t\t\t\t\t\tactionTimer = 7;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tactionTimer--;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (attacked != true) {\n\t\t\t\tif (NPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC == true) {\n\t\t\t\t\tattacked = true;\n\t\t\t\t\tNPC n = NPCHandler.npcs[c.getInstance().npcIndex];\n\t\t\t\t\tif (n != null) {\n\t\t\t\t\t\t// if(n.inMulti()) {\n\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC = true;\n\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().npcIndex].IsUnderAttackNpc = true;\n\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().npcIndex].randomWalk = false;\n\t\t\t\t\t\t// GameEngine.npcHandler.attackNPC(c.npcIndex,\n\t\t\t\t\t\t// c.getVariables().summoningMonsterId, c);\n\t\t\t\t\t\tServer.npcHandler.NpcVersusNpc(c.getInstance().summoningMonsterId,\n\t\t\t\t\t\t\t\tc.getInstance().npcIndex, c);\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}\n\t\t\t}\n\t\t\tspeakTimer++;\n\t\t\tif (speakTimer == 100) {\n\t\t\t\tc.getInstance().summoned.forceChat(summonedFamiliar.speakText);\n\t\t\t\tspeakTimer = 0;\n\t\t\t}\n\t\t\tc.getInstance().specRestoreTimer -= 1;\n\t\t\tint hours = (c.getInstance().specRestoreTimer / 2) / 3600;\n\t\t\tint minutes = ((c.getInstance().specRestoreTimer / 2) - hours * 3600) / 60;\n\t\t\tint seconds = ((c.getInstance().specRestoreTimer / 2) - (hours * 3600 + minutes * 60));\n\n\t\t\tString timer = String.format(\"%02d:%02d\", minutes, seconds);\n\t\t\tc.getPA().sendString(timer, 17021);\n\t\t\tif (c.getInstance().specRestoreTimer == 100) {\n\t\t\t\tc.sendMessage(\"@red@Your familiar will run out in approximately 1 minute.\");\n\t\t\t\tc.sendMessage(\"@red@Warning! Item's stored in familiar will be dropped upon death!\");\n\t\t\t} else if (c.getInstance().specRestoreTimer == 50) {\n\t\t\t\tc.sendMessage(\"@red@Your familiar will run out in approximately 30 seconds.\");\n\t\t\t\tc.sendMessage(\"@red@Warning! Item's stored in familiar will be dropped upon death!\");\n\t\t\t} else if (c.getInstance().specRestoreTimer == 25) {\n\t\t\t\tc.sendMessage(\"@red@Your familiar will run out in approximately 15 seconds.\");\n\t\t\t\tc.sendMessage(\"@blu@ You can renew your familiar with a new pouch by clicking @red@ Renew pouch\");\n\t\t\t\tc.sendMessage(\"@red@Warning! Item's stored in familiar will be dropped upon death!\");\n\t\t\t} else if (c.getInstance().specRestoreTimer <= 0) {\n\t\t\t\tdismissFamiliar(false);\n\t\t\t}\n\t\t\tif (familiarSpecialEnergy != 60) {\n\t\t\t\tspecialRestoreCycle++;\n\t\t\t\tif (specialRestoreCycle == 50) {\n\t\t\t\t\tif (familiarSpecialEnergy != 60) {\n\t\t\t\t\t\tfamiliarSpecialEnergy += 15;\n\t\t\t\t\t\tif (familiarSpecialEnergy >= 60) {\n\t\t\t\t\t\t\tfamiliarSpecialEnergy = 60;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tspecialRestoreCycle = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tspecialTimer--;\n\t\t}\n\t\tif (renewTimer > 0) {\n\t\t\trenewTimer--;\n\t\t\tif (renewTimer == 0 && c.getInstance().summoned == null && summonedFamiliar != null) {\n\t\t\t\tc.getInstance().summoned = Server.npcHandler.summonNPC(c, summonedFamiliar.npcId, c.getX(),\n\t\t\t\t\t\tc.getY() + (summonedFamiliar.large ? 2 : 1), c.heightLevel, 0,\n\t\t\t\t\t\tSummoningData.getSummonHealth(summonedFamiliar.npcId), 1, 1, 1);\n\t\t\t\tcallFamiliar();\n\t\t\t}\n\t\t}\n\t\tif (loginCycle > 0) {\n\t\t\tloginCycle--;\n\t\t\tif (loginCycle == 0 && c.getInstance().summoned == null && summonedFamiliar != null) {\n\t\t\t\tc.getInstance().summoned = Server.npcHandler.summonNPC(c, summonedFamiliar.npcId, c.getX(),\n\t\t\t\t\t\tc.getY() + (summonedFamiliar.large ? 2 : 1), c.heightLevel, 0,\n\t\t\t\t\t\tSummoningData.getSummonHealth(summonedFamiliar.npcId), 1, 1, 1);\n\t\t\t\tcallFamiliar();\n\t\t\t}\n\t\t}\n\t}", "public int attack(boolean weakness){\r\n\t\tint damage = 0;\r\n\t\t\r\n\t\tif (energy <= 0) {\r\n\t\t\tSystem.out.println(\"no energy to attack\");\r\n\t\t\tenergy = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (weakness == true) {\r\n\t\t\t\tenergy -= 2;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tenergy -= 1;\r\n\t\t\t}\r\n\t\t\texp += 1;\r\n\t\t\tdamage = 1;\r\n\t\t}\r\n\t\treturn damage;\r\n\t}", "@Override\n\tvoid attack() {\n\n\t}", "public boolean whatNow (String action, player friday, player you){ // Method which will allow the ia to choose his action\n\t\tString testAction = \"Tank\"; // Create a String we will use a lot to test other string\n\t\tint actionIa; // If the ia is a Tank, forbid him to use his special attack. The purpose is to prevent him from useless turns\n\t\tif (friday.getName().equals(testAction)){ // If the name of the ia's class is Tank\n\t\t\t actionIa = (int)(Math.random() * 2); // His random will be between 0 or 1\n\t\t}\n\t\t\n\t\telse {\n\t\t\t actionIa = (int)(Math.random() * 3); // Else, his random will be between 0, 1 and 2\n\t\t}\n\t\t\n\t\ttestAction = \"attack\"; // Will be use to test if you attacked\n\t\t\n\t\t\n\t\tswitch (actionIa){ // Test ia's action\n\t\t\tcase 0: // 0, the enemy attack\n\t\t\t\tfriday.setSprite(\"attack\");\n\t\t\t\tSystem.out.println(\"The enemy attack\\n\"); // Warns the user\n\t\t\t\ttestAction = \"block\"; // Will be use to test if you block\n\t\t\t\tif (action.equals(testAction)){ // If you block\n\t\t\t\t\tSystem.out.println(\"You blocked the enemy's attack.\"); // Warns the user\n\t\t\t\t\tyou.setHp(you.getHp() - you.getDp()); // You loose as much hp as your dp\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\tyou.setHp(you.getHp() - friday.getAp()); // Else, you loose as much hp as your enemy's ap\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 1: // 1, the enemy block\n\t\t\t\tfriday.setSprite(\"block\");\n\t\t\t\tif (action.equals(testAction)){ // If you attacked\n\t\t\t\t\tfriday.setHp(friday.getHp() - friday.getDp()); // The enemy loose as much hp as his dp\n\t\t\t\t\taction = \"\"; // Prevent you from attack a second time\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"The enemy blocked your attack\\n\"); // Warns the user\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 2: // 2, the enemy use his special power if he isn't a tank\n\t\t\t\tfriday.setSprite(\"special\");\n\t\t\t\tSystem.out.println(\"The enemy uses his special power.\"); // Warns the user\n\t\t\t\tfriday.special(); // Execute ia's special attack\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t\t\n\t\ttestAction = \"attack\"; // Reset testAction\n\t\t\n\t\tif (action.equals(testAction)){ // If you attacked\n\t\t\tfriday.setHp(friday.getHp() - you.getAp()); // The enemy loose as much hp as your ap\n\t\t} // Nota Bene : if the enemy blocked your attack, this won't be executed because 'action = \"\";'\n\t\t\n\t\tSystem.out.println(\"You have \" + you.getHp() + \" HP left.\"); // Warns the user\n\t\tSystem.out.println(\"The ennemy have \" + friday.getHp() + \" HP left.\\n\"); // Warns the user\n\t\t\n\t\tif(you.getHp() <= 0){ // If you or the ia has no hp left, warn the system that the fight is over by setting 'end' on true and tell who died\n\t\t\tend = true;\n\t\t\tSystem.out.println(\"You died!\");\n\t\t\tyou.setSprite(\"dead\");\n\t\t}\n\t\t\n\t\telse if(friday.getHp() <= 0){\n\t\t\tend = true;\n\t\t\tSystem.out.println(\"You killed the ennemy!\");\n\t\t\tfriday.setSprite(\"dead\");\n\t\t}\n\t\t\n\t\telse { // Else, it just asks you what you want to do\n\t\t\tSystem.out.println(\"What do you want to do, attack, block or use your special power ?\"); // Asks what you want to do\n\t\t}\n\t\treturn end;\n\t}", "@Override\n\tpublic void attack() {\n\t}", "@Override\n public void interact(Object obj) {\n // TODO: Cave Code - Add additional Agility to the player while on this Tile\n }", "int attack(Unit unit, Unit enemy);", "@Override\n\tpublic int calculateAttackType(Entity attacker, Entity defender) {\n\t\tif (attacker.getType() != EntityType.NPC || defender.getType() != EntityType.PLAYER) {\n\t\t\treturn ServerConstants.MELEE_ICON;\n\t\t}\n\t\tNpc attackerAsNpc = (Npc) attacker;\n\n\t\tint randomChanceOfAttack = ThreadLocalRandom.current().nextInt(0, 100);\n\n\t\tif (phase == AbyssalSirePhase.AWAKE) {\n\t\t\tif (randomChanceOfAttack <= 80 || spawns.stream().filter(n -> n != null && !n.isDead()).count() >= 2) {\n\t\t\t\tattack = AbyssalSireAttack.POISON;\n\t\t\t} else {\n\t\t\t\tattack = AbyssalSireAttack.SPAWN;\n\t\t\t}\n\t\t} else if (phase == AbyssalSirePhase.MELEE_COMBAT) {\n\t\t\tif (randomChanceOfAttack <= 50) {\n\t\t\t\tattack = AbyssalSireAttack.SWIPE;\n\t\t\t} else if (randomChanceOfAttack <= 85) {\n\t\t\t\tattack = AbyssalSireAttack.TENDRIL_SWIPE;\n\t\t\t} else {\n\t\t\t\tattack = AbyssalSireAttack.DOUBLE_TENDRIL_SWIPE;\n\t\t\t}\n\t\t} else if (phase == AbyssalSirePhase.MAGIC_COMBAT) {\n\t\t\tif (explosionState == AbyssalSireExplosionState.NONE && attackerAsNpc.getCurrentHitPoints() <= 139) {\n\t\t\t\tattack = AbyssalSireAttack.PORTAL;\n\t\t\t} else {\n\t\t\t\tattack = AbyssalSireAttack.POISON;\n\t\t\t}\n\t\t}\n\t\treturn ServerConstants.MELEE_ICON;\n\t}", "@Override\n public void attack(){\n\n }", "public abstract boolean attack(PermanentCharm i);", "public void update(float delta) {\n\t\tfor(DefenseTower tower : world.getDefenseTowers()) {\n\t\t for(Enemy enemy : world.getEnemies()) {\n\t\t\t if(tower.isPowered() == true && tower.inRange(enemy)) {\n\t\t\t\t\ttower.fireBullets(enemy, delta);\n\t\t\t\t\t//enemy.takeHit(tower.POWER*delta);\n\t\t\t\t\tif(!enemy.isAlive()) {\n\t\t\t\t\t world.getEnemies().removeValue(enemy, false);\n\t\t\t\t\t}\n\t\t\t } \n\t\t\t}\n\t\t}\n\t\n\t\t// Towncentre actions goes here. It shoots enemies here.\n\t\tTownCentre tCentre = world.getTownCentre();\n\t for(Enemy enemy : world.getEnemies()) {\n\t\t if(tCentre.inRange(enemy)) {\n\t\t\t\ttCentre.fireBullets(enemy, delta);\n\t\t\t\t//enemy.takeHit(tCentre.POWER*delta);\n\t\t\t\tif(!enemy.isAlive()) {\n\t\t\t\t world.getEnemies().removeValue(enemy, false);\n\t\t\t\t}\n\t\t } \n\t\t}\n\t \n\t // Soldiers attack enemies here.\n\t for(Soldier s: InstanceManager.getInstance().getSoldiers()) {\n\t \t//s.attackEveryEnemy(delta, InstanceManager.getInstance().getDefenseTowers());\n\t }\n\t\n\t /*for(Enemy enemy : world.getEnemies()) {\n\t\t\tfor(Tower tower : world.getTowers()) {\n\t\t\t if(enemy.inRange(tower)) {\n\t\t\t\t tower.takeHit(enemy.STRENGTH*delta);\n\t\t\t\t //System.out.println(\"tower \" + tower.UID + \"strength is \" + tower.STRENGTH);\n\t\t\t\t if(!tower.isAlive) {\n\t\t\t\t\t \tif(world.getTowers().indexOf(tower, false) !=-1)\n\t\t\t\t\t \t\tactiveTower=-1;\n\t\t\t\t\t world.getTowers().removeValue(tower, false);\n\t\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t\t// This makes townCentre take the hit.\n\t\t\tif(enemy.inRange(tCentre) && tCentre.isAlive) {\n\t\t\t\ttCentre.takeHit(enemy.STRENGTH*delta);\n\t\t\t\t //System.out.println(\"TownCenter \" + tCentre.UID + \"strength is \" + tCentre.STRENGTH);\n\t\t\t}\n\t }*/\n\t\t\n\t // Steams attackers attack towers and links here\n\t sAttackers.AttackTowersAndLinks(delta);\n\t\t\n\t\tfor(Tower tower : world.getTowers()) {\n\t\t tower.update(delta);\n\t\t}\n\t\t\n\t\tfor(Enemy enemy : world.getEnemies()) {\n\t\t enemy.update(delta);\n\t\t if(enemy.getPosition().x > 21 && enemy.getPosition().y > 14)\n\t\t \tworld.getEnemies().removeValue(enemy, false);\n\t\t}\n\t\t\n\t\tfor(Person p: InstanceManager.getInstance().getPeople()) {\n\t\t\tp.update(delta);\n\t\t}\n\t\t\n\t\tfor(Soldier s : InstanceManager.getInstance().getSoldiers()) {\n\t\t\ts.update(delta);\n\t\t}\n\t\t\n\t\t// A lot happens here.\n\t\tInstanceManager.getInstance().update(delta);\n\t\t\n\t\tfor(DefenseTower tower : world.getDefenseTowers()) {\n\t\t\ttower.update(delta);\n\t\t}\n\t\t// If game slows down you can limit updation timing here.\n\t\ttCentre.update(delta);\n\t\tgManager.update(delta);\n\t\tworld.update(delta);\n\t\tsController.update();\n\t\t\n }", "@Override public void takeAction(Player[] players, Enemy[] enemies, char action)\n {\n \n if (action == 'a') //ATTACK!!!!\n {\n if(gun.isEmpty())\n { \n System.out.println(name+\"'s weapon is empty!\");\n gun.reload();\n }\n else\n {\n Enemy target = target(this, enemies, gun.getAccuracy());\n Attack(target);\n }\n } \n else if (action == 'd')//Hold this position!\n {\n this.defend();\n System.out.println(name+\" hunkers down!\");\n }\n else if (action == 'r')//Reloading! Cover me!\n {\n gun.reload();\n }\n else if (action == 'm')//Fall back! There's too many of them!\n {\n run();\n }\n else\n {\n System.out.println(\"Invalid command.\");\n }\n }", "public void attack() {\n\n }", "@Override\r\n public int actionDelayTime(Entity attacker) {\n return 4000;\r\n }", "private static void attack(RobotInfo target) throws GameActionException {\n if (SOLDIER_DEBUG) {\n System.out.println(\"attacking\");\n }\n BulletInfo[] bullets = rc.senseNearbyBullets(EvasiveSoldier.BULLET_DETECT_RADIUS);\n RobotInfo[] robots = rc.senseNearbyRobots(EvasiveSoldier.ENEMY_DETECT_RADIUS);\n MapLocation targetLocation = target.getLocation();\n move(bullets, robots, targetLocation);\n //RobotUtils.tryMoveDestination(targetLocation);\n if (TargetingUtils.clearShot(here, target) || (rc.getType() == RobotType.GARDENER && rc.getOpponentVictoryPoints() > 10)) {\n if (SOLDIER_DEBUG) {\n System.out.println(\"clearShot to target\");\n }\n Direction towardsEnemy = here.directionTo(targetLocation);\n float distanceEnemy = here.distanceTo(targetLocation);\n if (distanceEnemy <= 3.5 && rc.canFirePentadShot() && rc.getTeamBullets() > 200) {\n rc.firePentadShot(towardsEnemy);\n }\n else {\n if (rc.canFireTriadShot() && rc.getTeamBullets() > 50) {\n rc.fireTriadShot(towardsEnemy);\n }\n else if (rc.canFireSingleShot()) {\n rc.fireSingleShot(towardsEnemy);\n }\n }\n }\n }", "public static void enemyWonInc(){\r\n\t\t_enemyWon++;\r\n\t}", "public void setAttack(double attack) {\n this.attack = attack;\n }", "@Override\r\n\tpublic int attack() {\r\n\t\treturn rnd.nextInt(MAX_MONSTER_ATTACK_DAMAGE);\r\n\t}", "public void act()\n {\n \n //move();\n //if(canSee(Worm.class))\n //{\n // eat(Worm.class);\n //}\n //else if( atWorldEdge() )\n //{\n // turn(15);\n //}\n\n }", "public void actionCombat(Party p1) {\n System.out.println(\"______________________________________________________________________________\\n\");\n System.out.println(this.Name + \" is attacking ...\");\n int choice = (int)(Math.random() * p1.getTeam().size());\n Character target = p1.getTeam().get(choice);\n System.out.println(this.Name + \" attacks \" + target.getName() + \"!\");\n\n if (this.SPEED - target.getSPEED() < 5) {\n int damage = Math.max(this.ATK - target.getDEF(), 0);\n System.out.println(this.Name + \" has inflicted \" + damage + \" damages to \" + target.getName() + \"!\");\n target.setActualHP(Math.max(0, target.getActualHP() - damage));\n if (target.getActualHP() == 0) {\n System.out.println(\"\\n\" + target.getName() + \" is down!\\n\");\n target.setIsDead(true);\n }\n }\n else {\n int n = 0;\n while ((target.actualHP != 0) && (n < 2)) {\n if (n == 1) {\n choice = (int)(Math.random() * p1.getTeam().size() + 1);\n target = p1.getTeam().get(choice);\n System.out.println(this.Name + \" attacks \" + target.getName() + \"!\");\n }\n int damage = Math.max(this.ATK - target.getDEF(), 0);\n System.out.println(this.Name + \" has inflicted \" + damage + \" damages to \" + target.getName() + \"!\");\n target.setActualHP(Math.max(0, target.getActualHP() - damage));\n if (target.getActualHP() == 0) {\n System.out.println(\"\\n\" + target.getName() + \" is down!\\n\");\n target.setIsDead(true);\n }\n if (n == 0) System.out.println(this.Name + \" attacks again ...\");\n n++;\n }\n }\n }", "@Override\r\n\tpublic boolean action(L2PcInstance activeChar, L2Object target, boolean interact)\r\n\t{\n\t\tfinal int castleId = MercTicketManager.getInstance().getTicketCastleId(((L2ItemInstance) target).getItemId());\r\n\t\t\r\n\t\tif ((castleId > 0) && (!activeChar.isCastleLord(castleId) || activeChar.isInParty()))\r\n\t\t{\r\n\t\t\tif (activeChar.isInParty())\r\n\t\t\t{\r\n\t\t\t\tactiveChar.sendMessage(\"Voce nao pode pegar mercenarios enquanto estiver em party.\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tactiveChar.sendMessage(\"Somente o lord do castelo pode melhorar os mercenarios.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tactiveChar.setTarget(target);\r\n\t\t\tactiveChar.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);\r\n\t\t}\r\n\t\telse if (!activeChar.isFlying())\r\n\t\t{\r\n\t\t\tactiveChar.getAI().setIntention(CtrlIntention.AI_INTENTION_PICK_UP, target);\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic double getAttack() {\n return attack;\n\t}", "public void effect() {\n if (course == 2) {\n //RIGHT\n x += fac;\n } else if (course == 5) {\n //LEFT\n x -= fac;\n } else {\n y = (int)(origY + fac * f * Math.tan(angle)) + offsetY;\n x = (int)(origX + fac * f) + offsetX;\n }\n boolean b = computeCell();\n\n if (b) {\n //Detect ennemy\n if (current != null) {\n Player p = current.getOccupied();\n if (p != null && p != thrower) {\n p.makeHimWait((Params.howLongBlockingMagician * 1000) / 2);\n this.destroy();\n }\n }\n }\n //Detect ennemy's cell\n if (current != null) {\n Team te = current.getOwner();\n if (te != thrower.getTeam() && current.getType() == 1) {\n current.setHp(current.getHp() - Params.archerDammage);\n if (current.getHp() <= 0) {\n current.setOwner(thrower.getTeam());\n current.setHp(thrower.getInitHP());\n }\n }\n if (current.isHeight()) {\n this.destroy();\n }\n } else {\n int bound = 10;\n //System.out.println(game.getWidth());\n if (this.x < -bound || this.x > game.getWidth() + bound || this.y < -bound ||\n this.y > game.getHeight() + bound) {\n this.destroy();\n }\n }\n\n f++;\n }", "public void attack(Character character) {\r\n\t\tint damageDealt = this.atk - character.def;\r\n\t\tif(damageDealt <= 0) {\r\n\t\t\tdamageDealt = 1;\r\n\t\t}\r\n\t\tcharacter.setHp(character.hp - damageDealt);\r\n\t\tSystem.out.println(\"[\" + this.getName().toUpperCase() + \"] strikes [\" + character.getName()\r\n\t\t\t\t+ \"] for \" + damageDealt + \" damage!\");\r\n\t}", "public void attack(Entity entity, boolean aoe) {\n if(aoe) entity.damaged((int) (this.damage*0.6));\n else entity.damaged(this.damage);\n if(entity.isDead()){\n incExp(entity.getLevel()*9);\n if(entity instanceof Boss) {\n this.bossesDefeated++;\n }\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n if(magicStoneGame.getBattlefield().getPlayer().untappedCreatures()) {\n magicStoneGame.getBattlefield().setAttackPhase(true);\n clicker.startAttackPhase();\n }\n else magicStoneGame.getBattlefield().setPlayerTurn(false);\n }", "public int getAttack() { return this.attack; }", "public void setAttack(int attack) {\n base.setAttack(attack);\n }", "public void attackMonster(World world){\n\t\tif ((UnitManager.unitNearPlayer(world.getPlayer(),this,PLAYER_RANGE) == true \n\t\t\t\t\t&& RPG.isAttacking()) && world.getPlayer().isAttack()) {\n\t\t\tthis.getUnitStats().reduceHP(world.getPlayer().damageAmount());\n\t\t\t\n\t\t}else{\n\t\t\t\n\t\t}\n\t}", "public static Action attackEP(final int energy) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.getGrid().isValid(a.getLocation().getAdjacentLocation(a.getDirection()))) {\n Actor b = a.getGrid().get(a.getLocation().getAdjacentLocation(a.getDirection()));\n if(b instanceof DestructibleActor) {\n if(a.getHealth() * 10 + a.getEnergy() >= energy) {\n ((DestructibleActor) b).damage((int) (Math.pow(energy + 4, .5) - 2), a);\n\n a.energy -= getCost();\n }\n }\n }\n }\n\n @Override\n public int getCost() {\n return energy;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return energy;\n }\n\n @Override\n public String toString() {\n return \"AttackEP(\" + energy + \")\";\n }\n };\n }", "public InaccurateAttackEffect() {\n\t\tsuper(Effect.Target.OPPONENT, Effect.FLIP_COIN);\n\t\tthis.numberOfHits = 1;\n\t\tthis.hitsPerEnergy = Effect.BOOL_NOT_USED;\n\t\tthis.hitsIndefinitely = Effect.BOOL_NOT_USED;\n\t}", "public void eat() {\n if (!isTired()) {\n hunger -= 3;\n fatigue += 2;\n\n if (!muted) {\n System.out.println(\"eat\\t\\t|\\tYummy this is tasty!\");\n }\n }\n }", "@FXML\n\tpublic void attack(ActionEvent event) {\n\t\tif(!combat)\n\t\t\treturn;\n\t\n\tRandom rand = new Random();\t\t\n\t\t\n\tif(combat == true) {\n\t\t\n\tevents.appendText(p.getName() + \" attacks!\\n\");\t\n\t\n\tint eEV = e.getEV(); \n\t\n\tint roll = rand.nextInt(101);\n\t\n\tif(roll <= eEV) { // Enemy evades\n\t\t\n\t\tevents.appendText(\"Your was attack evaded!\\n\");\n\t\t\n\t\t}\t\t\n\telse if(roll > eEV) { // Enemy is damaged\n\t\t\n\t\te.setHP(e.getHP() - p.getDMG());\n\t\t\n\t\tString ehealth = e.getHP()+\"/\"+e.getMaxHP();\n\t\t\n\t\tif(e.getHP()<1) {\n\t\t\te.setDead(true);\n\t\t\tecurrentHp.setText(\"\"+0);\n\t\t\tenemyHPBar.setProgress((double)0);\n\t\t}else {\n\t\t\tecurrentHp.setText(ehealth);\n\t\t\tenemyHPBar.setProgress((double)e.getHP()/e.getMaxHP());\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t}\n\t}\n\t\n\tif(e.isDead() && currentPos != finishCircle) { // Game proceeds if monster dies and is not the final boss\n\t\t\n\t\tevents.clear();\n\t\t\n\t\tevents.appendText(\"The monster lies dead! Onward!\\n\");\n\t\t\n\t\trollCombatDrop();\n\t\t\n\t\tcombat = false;\n\t}\n\telse if(e.isDead() && currentPos == finishCircle){\n\t\t\n\t\ttry {\n\t\t\tLoadWin();\n\t\t} catch (IOException e1) {\n\t\t\n\t\t\te1.printStackTrace();\n\t\t}\t\n\t\n\t}\n\telse {\n\t\tenemyAttack();\n\t}\n\t\n\t\n\t}", "public void attack(User p)\n\t{\n\t\tint damage = getAttack() - p.getDefense();\n\t\tint evade = 0;\n\t\tif(damage <= 0)\n\t\t{\n\t\t\tevade = p.getDefense() - getAttack();\n\t\t\tdamage = 1;\n\t\t}\n\t\t\n\t\tif(Math.random() * 100 < evade * 5)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"Miss\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tp.reduce(damage);\n JOptionPane.showMessageDialog(null,\"Enemy attacked you! User's health = \" + p.getHealth() + \"\\n\" + \"Damage dealt = \" + damage); \n\t}", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tfor (Damage damage : actionAttack.damages) {\r\n\t\t\t\t\t\t\t\tBattlerSprite attacked = damage.target.getTag();\r\n\t\t\t\t\t\t\t\tattacked.takeHit(damage.damage);\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "public void getBattlecryEffect(Board b, Minion own, Minion target)\n\t {\n\t\t \t//own.addToHandAfterDead=true;//we have to check the energy...(done in doDeathrattles2\n\t return;\n\t }", "public void setAttack(int attack) {\r\n\t\tthis.attack = attack;\r\n\t}", "public int getAttack() {\r\n\t\treturn attack;\r\n\t}", "private void subtractEnemySheild(int damage) {\n this.enemyShield -= damage;\n }" ]
[ "0.6903796", "0.6620618", "0.65555704", "0.65489215", "0.6498635", "0.6402271", "0.6401463", "0.6394578", "0.6391373", "0.6345562", "0.6329707", "0.6317799", "0.6281169", "0.62795925", "0.6269913", "0.62290305", "0.6207118", "0.61776257", "0.61692005", "0.6167586", "0.6152736", "0.61461425", "0.61164546", "0.61077636", "0.60886073", "0.60806024", "0.6062309", "0.60473746", "0.604347", "0.60380584", "0.60305005", "0.60136515", "0.59837306", "0.59669924", "0.59641504", "0.595807", "0.5957299", "0.5953416", "0.5951241", "0.5948833", "0.59412736", "0.5934991", "0.5931468", "0.5920643", "0.5917204", "0.5901363", "0.589314", "0.58920896", "0.5891224", "0.5878734", "0.5873896", "0.5866955", "0.58588403", "0.5858613", "0.5855776", "0.5852196", "0.5850395", "0.58488834", "0.58429426", "0.58367586", "0.5834889", "0.58341634", "0.5832125", "0.5827733", "0.5827566", "0.5821839", "0.5811599", "0.58069515", "0.5795135", "0.579356", "0.5777138", "0.5771764", "0.5764789", "0.57581645", "0.5756297", "0.5753759", "0.57530606", "0.57482934", "0.57435817", "0.5740308", "0.5730311", "0.5729303", "0.5728489", "0.57239455", "0.5715211", "0.5711722", "0.5693506", "0.56853807", "0.56767815", "0.56691945", "0.5669023", "0.56663525", "0.5664295", "0.5662144", "0.5662069", "0.56617254", "0.56573623", "0.5657101", "0.5654588", "0.56478804" ]
0.63624173
9
Determines if a phrase received from the user is a raw command. A raw command is a command in the shape /command [arguments].
public boolean isARawCommand(String input) { return input.startsWith("/"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isCommand(String command) {\n for(int i = 0; i < commandWords.length; i++) {\n if(commandWords[i].equalsIgnoreCase(command))\n return true;\n }\n return false;\n }", "public boolean containsCommand(TokenizedCommand tc);", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n if(command.isUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\"))\n printHelp();\n else if (commandWord.equals(\"go\"))\n goRoom(command);\n else if (commandWord.equals(\"quit\"))\n wantToQuit = quit(command);\n\n return wantToQuit;\n }", "private boolean processCommand(String line) {\n if (line.length() == 0) {\n return true;\n }\n Matcher command = COMMAND_PATN.matcher(line);\n if (command.matches()) {\n switch (command.group(1).toLowerCase()) {\n case \"#\":\n return true;\n case \"manual\":\n manualCommand(command.group(2).toLowerCase());\n return true;\n case \"auto\":\n autoCommand(command.group(2).toLowerCase());\n return true;\n case \"seed\":\n seedCommand(command.group(2));\n return true;\n case \"board\": case \"b\":\n System.out.println(_board.toString2());\n return true;\n case \"autoprint\":\n autoPrintCommand();\n return true;\n case \"set\":\n setCommand(command.group(2), command.group(3));\n return true;\n case \"dump\":\n System.out.println(_board.toString());\n return true;\n case \"start\":\n _playing = true;\n return true;\n case \"clear\":\n _playing = false;\n _board.clear();\n return true;\n case \"quit\":\n quit();\n return true;\n case \"help\": case \"?\":\n help();\n return true;\n default:\n return false;\n }\n }\n return false;\n }", "public boolean checkIfHasCorrectFormat(String command, String commandType) {\r\n\t\t//begin\r\n\t\tboolean isCorrect = true;\r\n\t\tint i = 0;\r\n\t\tint counter = 0;\r\n\t\twhile(i < command.length()) {\r\n\t\t\tif(command.charAt(i) == ',') {\r\n\t\t\t\tcounter++;\r\n\t\t\t\tif( i < command.length() - 2) {\r\n\t\t\t\t\tif(command.charAt(i + 1) == ',' || command.charAt(i + 2) == ',') {\r\n\t\t\t\t\t\tisCorrect = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\tif(commandType.compareTo(\"publish\") == 0) {\r\n\t\t\tif(counter != 3) {\r\n\t\t\t\tisCorrect = false;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(commandType.compareTo(\"subscribe\") == 0) {\r\n\t\t\tif(counter != 2) {\r\n\t\t\t\tisCorrect = false;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(commandType.compareTo(\"unsubscribe\") == 0) {\r\n\t\t\tif(counter != 2) {\r\n\t\t\t\tisCorrect = false;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn isCorrect;\r\n\t\t//end\r\n\t\t//return false;\r\n\t}", "private boolean processCommand(Command command)//Method was given\n {\n if(command.isUnknown())\n {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\"))\n printHelp();\n else if (commandWord.equals(\"go\"))\n goRoom(command);\n else if (commandWord.equals(\"talk\"))\n talkToCharacter(currentRoom);\n else if (commandWord.equals(\"grab\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Grab what?\");\n }\n else\n {\n grabItem(secondWord);\n }\n }\n else if (commandWord.equals(\"eat\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Eat what?\");\n }\n else\n {\n eatItem(secondWord);\n }\n }\n else if (commandWord.equals(\"inventory\")) \n player.getInventory();\n else if (commandWord.equals(\"drop\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Drop what?\");\n }\n else\n {\n dropItem(secondWord);\n }\n }\n else if (commandWord.equals(\"inspect\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Inspect what?\");\n }\n else\n {\n inspectItem(secondWord);\n }\n }\n else if (commandWord.equals(\"quit\"))\n {\n if(command.hasSecondWord())\n System.out.println(\"Quit what?\");\n else\n return true; // signal that we want to quit\n }\n else if (commandWord.equals(\"look\"))\n {\n System.out.println(currentRoom.longDescription());\n }\n return false;\n }", "boolean hasCommand();", "boolean hasCommand();", "private static boolean grabCommand() {\n\t\tif (input.hasNextLine()) {\n\t\t\tString temp = input.nextLine();\n\t\t\tcommand = temp.substring(0, 2);\n\t\t\tif (command.equals(\"SC\"))\n\t\t\t\tcode = temp.substring(3, temp.length()).trim();\n\t\t\treturn true;\n\t\t} else return false;\n\t}", "public boolean isCommandString(String word, boolean isActive);", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n if(command.isUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\")) {\n printHelp();\n }\n else if (commandWord.equals(\"go\")) {\n player.goRoom(command); \n }\n else if (commandWord.equals(\"look\")) { \n player.look();\n }\n else if (commandWord.equals(\"eat\")) {\n player.eat();\n }\n else if (commandWord.equals(\"quit\")) {\n wantToQuit = quit(command);\n }\n else if (commandWord.equals(\"back\")) {\n player.goBack(); \n }\n else if (commandWord.equals(\"take\")) {\n player.take(command);\n }\n else if (commandWord.equals(\"drop\")) {\n player.drop(command);\n }\n else if (commandWord.equals(\"items\")) {\n player.getItems();\n }\n else if (commandWord.equals(\"equipar\")) {\n player.equipar(command);\n }\n return wantToQuit;\n }", "ACommand CheckCommand(String NameCommand);", "public boolean specialCommand(String userinput){\n return (userinput.equals(\"get\")) || (userinput.equals(\"dir\"));\n }", "abstract public boolean isTurtleCommand();", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n switch (commandWord) {\n case UNKNOWN:\n System.out.println(\"I don't know what you mean...\");\n break;\n\n case HELP:\n printHelp();\n break;\n\n case GO:\n goRoom(command);\n break;\n\n case QUIT:\n wantToQuit = quit(command);\n break;\n \n case LOOK:\n look();\n break;\n \n case RELAX:\n relax();\n break;\n \n case BACK:\n back();\n break;\n }\n return wantToQuit;\n }", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n if(commandWord == CommandWord.UNKNOWN) {\n Logger.Log(\"I don't know what you mean...\");\n return false;\n }\n \n if (commandWord == CommandWord.HELP) {\n printHelp();\n }\n else if (commandWord == CommandWord.GO) {\n goRoom(command);\n }\n \n else if (commandWord == CommandWord.TAKE) {\n takeItem(command);\n }\n \n else if (commandWord == CommandWord.USE) {\n useItem(command);\n }\n \n else if (commandWord == CommandWord.LOOK) {\n Logger.Log(currentRoom.getLongDescription());\n }\n \n else if (commandWord == CommandWord.VIEW) {\n viewPlayer(command);\n }\n \n else if (commandWord == CommandWord.QUIT) {\n wantToQuit = quit(command);\n }\n // else command not recognised.\n return wantToQuit;\n }", "private static boolean validCommand(String line) {\n if (line.equals(\"GET\") || line.equals(\"BOARD\")) {\n return true;\n } else if (line.matches(\"PUT .*\")) {\n if (line.matches(\"PUT [1234]\")) {\n return true;\n } else {\n System.out.println(INVALID_PUT_COLUMN_ERROR_MESSAGE);\n return false;\n }\n } else {\n System.out.println(INVALID_COMMAND_ERROR_MESSAGE);\n return false;\n }\n }", "public static boolean isCommand(String s) {\n \treturn commands.containsKey(s.toLowerCase());\n }", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n switch (commandWord) \n {\n case UNKNOWN:\n System.out.println(\"I don't know what you mean...\");\n break;\n\n case HELP:\n printHelp();\n break;\n\n case GO:\n goRoom(command);\n break;\n\n //my command expect when i Quit\n case PICK:\n pickItem();\n break;\n \n //drink the redbull\n case DRINK:\n drink();\n break;\n \n //show inventory\n case SHOW:\n showInventory();\n break;\n \n //show objective\n case GOAL:\n remindGoal();\n break;\n\n case QUIT:\n wantToQuit = quit(command);\n break;\n }\n return wantToQuit;\n }", "public static boolean commands(String userInput) {\n\t\tboolean isCmdValid = false;\n\t\tList<String> validCommands = new ArrayList<>();\n\t\tvalidCommands.add(\"rules\");\n\t\tvalidCommands.add(\"giveall\");\n\t\t\n\t\t// Find if command is valid\n\t\tfor (String cmd: validCommands) {\n\t\t\tif (userInput.equalsIgnoreCase(cmd.trim())) {\n\t\t\t\tisCmdValid = true;\n\t\t\t\t// If cmd valid, execute the command\n\t\t\t\tswitch (validCommands.indexOf(cmd)) {\n\t\t\t\t\n\t\t\t\tcase 0:\n\t\t\t\t\tGameLauncher.showGameRules();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tGameLauncher.giveAll();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isCmdValid;\n\t}", "private boolean analyzeCommand(String line, PrintWriter outputStream)\n\t{\n\t\t\n\t\t\n\t\tint periodIndex =line.indexOf('.');\n\t\tthis.adjustPing(System.currentTimeMillis());\n\t\t\n\t\tif (periodIndex <= 0 || periodIndex == line.length() - 1)\n\t\t{\n\t\t\toutputStream.println(\"Invalid Command: \" + line);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tString command = line.substring(0, periodIndex);\n\t\tString subCommand = line.substring(periodIndex + 1);\n\t\t\n\t\tif (command.equals(\"UID\"))\n\t\t{\n\t\t\tif(verifyUID(subCommand))\n\t\t\t{\n\t\t\t\t//System.out.println(\"Valid uid\");\n\t\t\t\toutputStream.println(\"Valid UID. Accepting client connection.\");\n\t\t\t\treturn true;\n\t\t\t} else\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(command.equals(\"A\"))\n\t\t{\n\t\t\toutputStream.println(\"Thank you for the audio bytes! (Old TCP implementation)\");\n\t\t\t\n\t\t\t//if the number of buffers is > than the ping ratio, play the audio from one buffer\n\t\t\t\n\t\t\t//if the ping is greater than the audio rate, then create a buffer of twice the size and play from there.\n\t\t\treturn true;\n\t\t\t \n\t\t\n\t\t}\n\n\t\tif (command.equals(\"F\"))\n\t\t{\n\t\t\t\n\t\t\tString[] specifications = subCommand.split(this.regex);\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tfloat sampleRate = Float.parseFloat(specifications[0]);\n\t\t\t\tint sampleSizeInBits = Integer.parseInt(specifications[1]);\n\t\t\t\tint channels = Integer.parseInt(specifications[2]);\n\t\t\t\tint frameSize = Integer.parseInt(specifications[3]);\n\t\t\t\tfloat frameRate = Float.parseFloat(specifications[4]);\n\t\t\t\tclientAudioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, sampleRate, sampleSizeInBits, channels, frameSize, frameRate, false);\n\t\t\t\n\t\t\t} catch (NumberFormatException e)\n\t\t\t{\n\t\t\t\t\n\t\t\t\toutputStream.println(\"Invalid number format for one or more audio format specifications\");\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t} catch(ArrayIndexOutOfBoundsException e)\n\t\t\t{\n\t\t\t\t\n\t\t\t\toutputStream.println(\"Invalid number of audio format specifications\");\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (command.equals(\"S\"))\n\t\t{\n\t\t\tString[] specifications = subCommand.split(this.regex);\n\n\t\t\tif (!specifications[0].equals(\"clumpSize\")) {\n\t\t\t\tif (subCommand.equals(\"disconnect\")) {\n\t\t\t\t\t//reset client stuff\n\t\t\t\t\t//System.out.println(\"Closing client connection.\");\n\t\t\t\t\tthis.closeClientConnection();\n\t\t\t\t}\n\n\t\t\t\tif (subCommand.equals(\"close\")) {\n\t\t\t\t\t//closes the server.\n\t\t\t\t\t//System.out.println(\"Closing server.\");\n\t\t\t\t\tthis.closeServer();\n\t\t\t\t}\n\n\t\t\t\tif (subCommand.equals(\"udp\")) {\n\t\t\t\t\t//System.out.println(\"Beginning UDP transition.\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetupUDP(this.portNumber);\n\t\t\t\t\t} catch (SocketException e) {\n\t\t\t\t\t\t//System.out.println(\"Could not open socket\");\n\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (specifications[0].equals(\"clumpSize\")) {\n\t\t\t\t\tint clumpSize = Integer.parseInt(specifications[1]);\n\t\t\t\t\t//System.out.println(\"Setting clump size to : \" + clumpSize);\n\t\t\t\t\tthis.clumpSize = clumpSize;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public static boolean isSpecialCommand(FtpCommandCode command) {\r\n \t\treturn ((command == QUIT) || (command == ABOR) || (command == NOOP) || (command == STAT));\r\n \t}", "public static boolean handle(String arguments) {\n String[] args = arguments.split(\" \");\n if (args.length == 0 || arguments.length() == 0) {\n System.out.println(\"No commands are given.\");\n return false;\n }\n switch (args[0]) {\n case \"C\":\n if (args.length != 2) {\n System.out.println(\"Wrong usage for C <Name>.\");\n return false;\n }\n CCommand(args[1]);\n return true;\n case \"S\":\n if (args.length <= 2) {\n System.out.println(\"Wrong usage for S <Name> <Song>.\");\n return false;\n }\n SCommand(args[1], arguments.replace(args[0] + \" \" + args[1] + \" \", \"\"));\n return true;\n case \"E\":\n if (args.length <= 2) {\n System.out.println(\"Wrong usage for E <Name> <Song>.\");\n return false;\n }\n ECommand(args[1], arguments.replace(args[0] + \" \" + args[1] + \" \", \"\"));\n return true;\n case \"L\":\n if (args.length != 2) {\n System.out.println(\"Wrong usage for L <Name>.\");\n return false;\n }\n LCommand(args[1]);\n return true;\n case \"N\":\n if (args.length != 1) {\n System.out.println(\"Wrong usage for N.\");\n return false;\n }\n NCommand();\n return true;\n case \"M\":\n if (args.length != 1) {\n System.out.println(\"Wrong usage for M.\");\n return false;\n }\n MCommand();\n return true;\n case \"R\":\n if (args.length != 1) {\n System.out.println(\"Wrong usage for R.\");\n return false;\n }\n RCommand();\n return true;\n default:\n System.out.println(\"Given argument is not suitable.\");\n return false;\n }\n }", "public boolean isValidCommandWord(String commandWord) {\n if (commandWord.equals(\"\")) {\n return false;\n } else {\n return true;\n }\n }", "public static boolean isCommand(String aString)\n {\n boolean isCommand = false;\n \n for(CommandWord command : CommandWord.values()) {\n if(command.toString().equalsIgnoreCase(aString)) {\n isCommand = true;\n }\n }\n return isCommand;\n }", "public boolean isCommandValid(Character character, String command)\n\n {\n\n \n\n if(command.length() > 4 && isKill(command))\n { \n HandleKill(character, command);\n return true;\n }\n if(isPossess(command))\n {\n HandlePossess(character);\n return true;\n }\n if(isDontPossess(command))\n {\n HandleDontPossess(character);\n return true;\n }\n if(isJump(command))\n\n {\n\n HandleJump();\n\n return true;\n\n }\n\n if(isSit(command))\n\n {\n\n HandleSit();\n\n return true;\n\n }\n\n if(isSing(command))\n\n {\n\n HandleSing();\n\n return true;\n\n }\n\n if(isDance(command))\n\n {\n\n HandleDance();\n\n return true;\n\n }\n\n if(isDirections(command))\n\n {\n\n HandleDirections(character.currentArea);\n\n return true;\n\n }\n\n if(isExit(command))\n\n {\n\n HandleExit();\n\n return true;\n\n }\n \n if(isHeal(command))\n\n {\n\n HandleHeal(character);\n\n return true;\n\n }\n\n if(isStats(command))\n\n {\n\n HandleStats(character);\n\n return true;\n\n }\n\n \n\n switch(character.currentArea.paths)\n\n {\n\n case Constants.North:\n\n if(isNorth(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.South:\n\n if(isSouth(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.East:\n\n if(isEast(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.West:\n\n if(isWest(command))\n\n return true;\n\n else\n\n return false;\n\n \n\n case Constants.NorthAndSouth:\n\n if(isNorth(command) || isSouth(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.NorthAndEast:\n\n if(isNorth(command) || isEast(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.NorthAndWest:\n\n if(isNorth(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.SouthAndEast:\n\n if(isSouth(command) || isEast(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.SouthAndWest:\n\n if(isSouth(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.EastAndWest:\n\n if(isEast(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n \n\n case Constants.NorthSouthAndEast:\n\n if(isNorth(command) || isSouth(command) || isEast(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.NorthSouthAndWest:\n\n if(isNorth(command) || isSouth(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.NorthEastAndWest:\n\n if(isNorth(command) || isEast(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n case Constants.SouthEastAndWest:\n\n if(isSouth(command) || isEast(command) || isWest(command))\n\n return true;\n\n else\n\n return false;\n\n \n\n case Constants.NorthSouthEastAndWest:\n\n if(isNorth(command) || isSouth(command) || isWest(command) || isEast(command))\n\n return true;\n\n else\n\n return false;\n\n default:\n\n break;\n\n \n\n }\n\n \n character.canPossess = false;\n return false;\n\n \n\n }", "String[] checkIfLegalCommand(String strToChck);", "private boolean readCommand() {\r\n String s = null;\r\n try {\r\n s = (String) is.readObject();\r\n } \r\n catch (Exception e){ // catch a general exception\r\n \tthis.closeSocket();\r\n return false;\r\n }\r\n System.out.println(\"01. <- Received a String object from the client (\" + s + \").\");\r\n \r\n // At this point there is a valid String object\r\n // invoke the appropriate function based on the command \r\n if (s.equalsIgnoreCase(\"GetDate\")){ \r\n this.getDate(); \r\n } else if (s.equalsIgnoreCase(\"GetTemperature\")) {\r\n \t\r\n \tthis.getTemperature();\r\n \t\r\n }\r\n \r\n else { \r\n this.sendError(\"Invalid command: \" + s); \r\n }\r\n return true;\r\n }", "protected boolean isCommand(String string) {\n\t\treturn myLanguages.containsKey(string);\n\t}", "public static boolean isRetrLikeCommand(FtpCommandCode command) {\r\n \t\treturn (command == RETR);\r\n \t}", "public static boolean isKairos(String command) {\r\n\t\tassert command != null;\r\n\t\tcommandType = Logic.determineCommandType(command);\r\n\t\tswitch (commandType) {\r\n\t\tcase KAIROS:\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static boolean isCommand(String str) {\n for (UserCommand command : UserCommand.values()) {\n if (str.contains(command.getCommand())) {\n return true;\n }\n }\n\n return false;\n }", "private boolean readCommand() {\n\n\t\ttry {\n\t\t\ttab = (String[]) is.readObject();\n\t\t} \n\t\tcatch (Exception e){ // catch a general exception\n\t\t\tthis.closeSocket();\n\t\t\treturn false;\n\t\t}\n\t\tSystem.out.println(\"01. <- Received a String object from the client (\" + tab + \").\");\n\n\t\t// At this point there is a valid String object\n\t\t// invoke the appropriate function based on the command \n\n\t\tString s=tab[0];\n\n\t\t// Connexion of the Client to the Server\n\t\tif (s.equalsIgnoreCase(\"connexion\")){ \n\t\t\tthis.connexion(); \n\t\t} \n\n\t\t// Case of Send New Message\n\t\tif (s.equalsIgnoreCase(\"remplirTabNewMess\")){\n\t\t\tthis.remplirTabNewMess();\n\t\t}\n\n\t\t// Recuperation of all messages\n\t\tif (s.equalsIgnoreCase(\"RecupArray\")){\n\t\t\tthis.RecupArray();\n\t\t}\n\n\n\t\treturn true;\n\t}", "default boolean onCommand(CommandSender sender, ConnectionCommand connectionCommand) {\n String[] split = connectionCommand.getCommand().split(\" \");\n\n return onCommand(sender, split[0], Arrays.copyOfRange(split, 1, split.length), connectionCommand.getArgs());\n }", "public static boolean isCommand(String aString) {\n // if we get here, the string was not found in the commands\n return validCommands.containsKey(aString);\n }", "boolean processCommand() throws IOException\n\t{\n\t\tString[] commands = in.readLine().split(\" \");\n\t\tif (commands[0].equalsIgnoreCase(\"F\") && isNum(commands[1]) && isNum(commands[2])) {\n\t\t\tprocessFireCmd(new String[] {commands[1], commands[2]});\n\t\t} else if (commands[0].equalsIgnoreCase(\"C\")) {\n\t\t\tprocessChatCmd (Arrays.copyOfRange(commands, 1, commands.length).toString());\n\t\t} else if (commands[0].equalsIgnoreCase(\"D\")) {\n\t\t\tout.println(\"My board: \\n\");\n\t\t\tboard.draw();\n\t\t\tout.println(\"Target's board: \\n\");\n\t\t\ttargets.draw();\n\t\t\tout.flush();\n\t\t} else {\n\t\t\tout.println(\"Unknown command.\");\n\t\t\tout.flush();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private boolean commandAnalyzerLR(List<Token> lineLexTokens) {\r\n\t\tToken cmdToken = lineLexTokens.get(0);\r\n\t\t// command declaration must have NUM_PARAM_CMD parameters\r\n\t\tif (lineLexTokens.size()!= NUM_PARAMS_CMD) {\r\n\t\t\tlog.error(\"Command '\" + cmdToken.value + \"' must contain \" \r\n\t\t\t\t\t+ NUM_PARAMS_CMD + \" parameters.\", new ParserException());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tToken valToken = lineLexTokens.get(1);\r\n\t\tString lineLex = cmdToken.lexSymbol + \r\n\t\t\t\t valToken.lexSymbol;\r\n\t\tString regex = \"\"; // regular expression\r\n\r\n\t\t// Check the syntax of this command declaration \r\n\t\tKeywords cmdKeyword = Keywords.lookup(cmdToken.value);\r\n\t\t\r\n\t\t// default error message\r\n\t\tfinal String errMsg = \"Command declaration '\" + cmdToken.value + \r\n\t\t \t\t\t \t\"' is in a wrong format.\";\r\n\t\t\r\n\t\tswitch(cmdKeyword){\r\n\t\t\tcase _COORD_SYSTEM:\r\n\t\t\t\t// \"\\\\$cmd$space\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol +\r\n\t\t\t\t\t \"\\\\\"+Symbols.CoordinateSysSymbol;\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg + \" Check coordinates system types \"\r\n\t\t\t\t\t\t\t+ \"definition.\", new ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase _SPATIAL_DIM:\r\n\t\t\t\t// \"\\\\$cmd[1-3]\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol + \"[1-3]\";\r\n\t\t\t\tString dimCmd = cmdToken.lexSymbol + valToken.value;\r\n\t\t\t\tif (!dimCmd.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg + \" Dimensions must be 1, 2 or 3.\", \r\n\t\t\t\t\t\t\tnew ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase _IGNORE_LINES:\r\n\t\t\t\t// \"\\\\$cmd[1-9,15,18]\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol + \r\n\t\t\t\t \"\\\\[[^,]{0}(,{0,1}[0-9]|,{0,1}[0-9]\\\\-[0-9])+\\\\]\";\r\n\t\t\t\tString ignoreCmd = cmdToken.lexSymbol + valToken.value;\r\n\t\t\t\tif (!ignoreCmd.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg, new ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\tcase _AUTO_ID:\r\n\t\t\t\t// \"\\\\$cmd\\\\$str\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol +\r\n\t\t\t\t\t \"\\\\\"+Symbols.StringSymbol;\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg + \" Check ID prefix declaration.\", \r\n\t\t\t\t\t\t\tnew ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase _IGNORE_ATTR:\r\n\t\t\t\t// \"\\\\$cmd\\\\$delim\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol +\r\n\t\t\t\t\t \"\\\\\"+Symbols.DelimiterSymbol;\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg + \" Check attribute delimiter.\", \r\n\t\t\t\t\t\t\tnew ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase _RECORDS_DELIM:\t\r\n\t\t\t\t// \"\\\\$cmd\\\\$delim\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol +\r\n\t\t\t\t\t \"\\\\\"+Symbols.DelimiterSymbol;\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg + \" Check records delimiter.\", \r\n\t\t\t\t\t\t\tnew ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase _DECIMAL_PREC:\r\n\t\t\t\t// \"\\\\$cmd\\\\d+\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol + \"\\\\d+\";\r\n\t\t\t\tString precisionCmd = cmdToken.lexSymbol + valToken.value;\r\n\t\t\t\tif (!precisionCmd.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg + \" Decimal precision must be an \"\r\n\t\t\t\t\t\t\t+ \"integer number.\", new ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\t// default format for commands\r\n\t\t\t\t// \"\\\\$cmd(\\\\$str|\\\\$delim)\"\r\n\t\t\t\tregex = \"\\\\\"+Symbols.CommandSymbol + \r\n\t\t\t\t\t \"(\\\\\"+Symbols.StringSymbol + \"|\" +\r\n\t\t\t\t\t \"\\\\\"+Symbols.DelimiterSymbol + \")\";\r\n\t\t\t\tif (!lineLex.matches(regex)) {\r\n\t\t\t\t\tlog.error(errMsg, new ParserException());\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// no syntax error in this command declaration\r\n\t\treturn true;\r\n\t}", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "private boolean isArithmeticCmd() {\r\n for (String cmd : ARITHMETIC_CMDS) {\r\n if (command.equals(cmd)) return true;\r\n }\r\n return false;\r\n }", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public void handleCommand(String command);", "java.lang.String getCommand();", "public boolean isFactionsCommand(String check)\n \t{\n \t\tif (check == null || check.isEmpty()) return false;\n \t\treturn this.handleCommand(null, check, true);\n \t}", "private boolean promptCommand() {}", "public Boolean whichCmd(String s){\n if (s.charAt(0) == '!' || s.charAt(0) == '?'){\n return cmd.get(s.substring(0,1)).apply(s.substring(1));\n }\n else return histOrPile(s);\n }", "public boolean isValidCommand(String cmd) {\r\n\t\tboolean isValidCmd = false;\r\n\t\tList validOtherCmd = Arrays.asList(\"MOVE\", \"LEFT\", \"RIGHT\", \"REPORT\");\r\n\r\n\t\tif (validOtherCmd.contains(cmd.toUpperCase())) {\r\n\t\t\tisValidCmd = true;\r\n\t\t}\r\n\r\n\t\tif (isValidPlaceCommand(cmd)) {\r\n\t\t\tisValidCmd = true;\r\n\t\t}\r\n\t\treturn isValidCmd;\r\n\t}", "private boolean canSend() {\n\n if (StringUtils.isEmpty(constructedCommand())) return false;\n\n int beginIndex = constructedCommand()\n .indexOf(serialProperties.getCmdBeginMarker());\n int endIndex = constructedCommand()\n .indexOf(serialProperties.getCmdEndMarker());\n\n return beginIndex != -1 && endIndex != -1 && beginIndex < endIndex;\n }", "private static boolean isDescriptionCommand(String string){\n return stringStartsWith(string, GeneralInfo.PREFIX_COMMAND_DESCRIPTION);\n }", "public String[] readCommand();", "@Override\npublic boolean hasCommands() {\n\treturn false;\n}", "public String getUserCommand();", "public boolean isRaw() {\n\t\treturn opcode == -1;\n\t}", "public boolean hasCommand() {\n return this.command != null;\n }", "protected boolean ValidateCommand()\n {\n //Create a new ArrayList object and add the valid commands\n ArrayList<String> validCommands = new ArrayList<>();\n validCommands.add(\"^\");\n validCommands.add(\"$\");\n validCommands.add(\"-\");\n validCommands.add(\"+\");\n validCommands.add(\"a\");\n validCommands.add(\"t\");\n validCommands.add(\"d\");\n validCommands.add(\"l\");\n validCommands.add(\"n\");\n validCommands.add(\"p\");\n validCommands.add(\"q\");\n validCommands.add(\"w\");\n validCommands.add(\"x\");\n validCommands.add(\"=\");\n validCommands.add(\"#\");\n validCommands.add(\"c\");\n validCommands.add(\"v\");\n validCommands.add(\"s\");\n validCommands.add(\"b\");\n \n //Check if the inserted command is valid\n return validCommands.contains(this.Command);\n }", "public boolean parseCommand(String [] clargs){\n\t\tif (clargs.length < 1 || !this.command_name.equals(clargs[0])){\n\t\t\treturn false;\n\t\t}\n\t\t// Otherwise we can parse the remainder of the flags and arguments\n\t\tint index = 1;\n\t\targuments = new LinkedList<String>();\n\t\tflags = new LinkedList<String[]>();\n\t\terrors = new LinkedList<String>();\n\t\twhile (index < clargs.length){\n\t\t\tif (is_flag(clargs[index])){\n\t\t\t boolean recognised = false;\n\t\t\t for (CLOption clopt : options){\n\t\t\t\t // Should check that the arguments are not flags.\n\t\t\t\t if (clopt.is_matching_flag(clargs[index]) &&\n\t\t\t\t\t \tindex + clopt.getNumberOfArgs() < clargs.length){\n\t\t\t\t\t String[] flag = new String[1 + clopt.getNumberOfArgs()];\n\t\t\t\t\t flag[0] = clopt.getName();\n\t\t\t\t\t index++;\n\t\t\t\t\t for (int i = 1; i < clopt.getNumberOfArgs(); i++){\n\t\t\t\t\t\t flag[i] = clargs[index];\n\t\t\t\t\t\t index++;\n\t\t\t\t\t }\n\t\t\t\t\t flags.addLast(flag);\n\t\t\t\t\t recognised = true;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t }\n\t\t\t if (!recognised){\n\t\t\t\t errors.addLast(\"Unrecognised flag: \" + clargs[index]);\n\t\t\t }\n\t\t\t} else {\n\t\t\t\targuments.addLast(clargs[index]);\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\t// Eventually if we get to here and we haven't reported an\n\t\t// error then we are good to go\n\t\treturn true;\n\t}", "public boolean areCommandsAllowed()\n {\n return allowCommands;\n }", "@Override\n public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {\n\n // If the sender is a PLAYER\n if (sender instanceof Player) {\n final Player p = (Player) sender;\n\n // If there are arguments and not the main command alone\n if (args.length > 0) {\n boolean cont = false;\n CmdProperties cmdClass = null;\n\n // Assign all commands to their name in the hashmap\n for (final Map.Entry<String, CmdProperties> entry : commandClasses.entrySet()) {\n if (!cont) {\n if (entry.getKey().equalsIgnoreCase(args[0])) {\n cont = true;\n cmdClass = entry.getValue();\n }\n }\n }\n\n // check for permission i think? idk whats entirely going on here, review later\n if (cont) {\n final int argsNeeded = cmdClass.getLength();\n if (args.length - 1 >= argsNeeded) {\n if (p.hasPermission(cmdClass.getPermission())) {\n if (args[argsNeeded] == null) {\n args[argsNeeded] = \"Nothing\";\n }\n final StringBuilder sb = new StringBuilder();\n for (int i = argsNeeded; i < args.length; i++) {\n sb.append(args[i]).append(\" \");\n }\n\n final String allArgs = sb.toString().trim();\n if (cmdClass.isAlias())\n cmdClass.getAlias().perform(p, allArgs, args);\n else\n cmdClass.perform(p, allArgs, args);\n return true;\n } else {\n // D: no permission!\n MsgUtils.error (sender, \"(no permission)\");\n return true;\n }\n } else {\n // Not the right amount of arguments for the command. Maybe put something like cmdClass.getUsage() here to show the player how to use the command\n MsgUtils.error (sender, cmdClass.getUsage());\n return true;\n }\n } else {\n // The argument doesn't exist.\n MsgUtils.error (sender, \"/ca \" + MsgUtils.Colors.VARIABLE + args[0] + MsgUtils.Colors.ERROR + \" is not a command\");\n return true;\n }\n } else {\n // Not enough arguments (show help here)\n MsgUtils.raw(p, \"&e-=-=-=- &7Availible &bClanArena &7Commands: &e-=-=-=-\");\n for (final Map.Entry<String, CmdProperties> entry : commandClasses.entrySet()) {\n if (p.hasPermission(entry.getValue().getPermission())) {\n MsgUtils.sendMessage(p, \"/ca \" + MsgUtils.Colors.VARIABLE + entry.getKey() + MsgUtils.Colors.INFO + \": \" + entry.getValue().getHelpMessage());\n }\n }\n return true;\n }\n } else {\n // Sender isn't a player\n MsgUtils.error (sender, \"Sorry! No console commands are available yet :(\");\n return true;\n }\n }", "public String processCommand(Command command) //refactored\n {\n boolean wantToQuit = false;\n //System.out.println(\"hitter boolean\");\n commandWord = command.getAction();//fehler\n //System.out.println(command);\n //System.out.println(\"enum == null\" + (commandWord == null));\n String result = \"\";\n //System.out.println(\"heyho\");\n //System.out.println(result);\n switch(commandWord){\n //case UNKNOWN: return \"I don't know what you mean...\"; break;\n \n case HELP: result += printHelp(); break;\n case GO: result += goRoom(command); break;\n case QUIT: return quit(command);//refactored from refactoring\n default: result += \"I don't know what you mean...\";\n }\n return result;\n }", "public String getUserCommand() {\n out.print(\"Enter command: \");\n String fullInputLine = in.nextLine();\n\n return fullInputLine;\n }", "public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n\t\tif (label.equalsIgnoreCase(\"truth\")) {\n\t\t\tif (sender instanceof Player) {\n\t\t\t\t//player (not console)\n\t\t\t\tPlayer player = (Player) sender;\n\t\t\t\tif (player.hasPermission(\"stinky.use\")) { \n\t\t\t\t\tplayer.sendMessage(ChatColor.LIGHT_PURPLE+\"\"+ChatColor.BOLD+\"Alex Stinks\");\n\t\t\t\t\tplayer.sendMessage(ChatColor.translateAlternateColorCodes('&', \"&ehe really Does\"));\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tplayer.sendMessage(ChatColor.DARK_RED+\"\"+ChatColor.BOLD+\"You don't Have permission to use this!\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//console (not player)\n\t\t\t\tsender.sendMessage(\"hey Console\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isAutocompleteable(String command) {\r\n\t\tassert command != null;\r\n\t\tcommandType = Logic.determineCommandType(command);\r\n\t\tswitch (commandType) {\r\n\t\tcase EDIT:\r\n\t\tcase DELETE:\r\n\t\tcase DONE:\r\n\t\tcase UNDONE:\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private void extractCommand() throws IllegalCommandException {\n if (userInput.contentEquals(COMMAND_WORD_BYE)) {\n commandType = CommandType.BYE;\n } else if (userInput.startsWith(COMMAND_WORD_LIST)) {\n commandType = CommandType.LIST;\n } else if (userInput.startsWith(COMMAND_WORD_DONE)) {\n commandType = CommandType.DONE;\n } else if (userInput.startsWith(COMMAND_WORD_TODO)) {\n commandType = CommandType.TODO;\n } else if (userInput.startsWith(COMMAND_WORD_DEADLINE)) {\n commandType = CommandType.DEADLINE;\n } else if (userInput.startsWith(COMMAND_WORD_EVENT)) {\n commandType = CommandType.EVENT;\n } else if (userInput.startsWith(COMMAND_WORD_DELETE)) {\n commandType = CommandType.DELETE;\n } else if (userInput.startsWith(COMMAND_WORD_FIND)) {\n commandType = CommandType.FIND;\n } else if (userInput.contentEquals(COMMAND_WORD_HELP)) {\n commandType = CommandType.HELP;\n } else {\n throw new IllegalCommandException();\n }\n }", "public boolean isCommand()\n {\n return aCommands.containsKey(this);\n }", "private boolean isValid(String structure, String command) {\n\t\t// checks to see if the provided structure matches the\n\t\t// command\n\t\t// 'c' = char\n\t\t// 'n' = number (can take up more than one character, and\n\t\t// can be\n\t\t// negative\n\t\t// ' ' = space\n\t\t// 's' = string (that has to go till the end of the command\n\t\t// with no\n\t\t// spaces\n\t\tString[] format = structure.split(\"|\");\n\t\tboolean valid = true;\n\t\tint curIndex = 0;\n\t\tforloop: for (String str : format) {\n\t\t\tswitch (str.charAt(0)) {\n\t\t\tcase 'c':\n\t\t\t\tif (command.length() > curIndex) {\n\t\t\t\t\tif (!Character\n\t\t\t\t\t\t\t.isAlphabetic(command.charAt(curIndex))\n\t\t\t\t\t\t\t&& !Character.isWhitespace(\n\t\t\t\t\t\t\t\t\tcommand.charAt(curIndex))) {\n\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\tbreak forloop;\n\t\t\t\t\t}\n\t\t\t\t\tcurIndex++;\n\t\t\t\t} else {\n\t\t\t\t\tvalid = false;\n\t\t\t\t\tbreak forloop;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\t\tif (command.length() > curIndex) {\n\t\t\t\t\tboolean wait = false;\n\t\t\t\t\tif (!Character.isDigit(command.charAt(curIndex))\n\t\t\t\t\t\t\t&& command.charAt(curIndex) != '-') {\n\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\tbreak forloop;\n\t\t\t\t\t}\n\t\t\t\t\tif (command.charAt(curIndex) == '-') {\n\t\t\t\t\t\twait = true;\n\t\t\t\t\t}\n\t\t\t\t\tcurIndex++;\n\t\t\t\t\twhile (command.length() > curIndex && Character\n\t\t\t\t\t\t\t.isDigit(command.charAt(curIndex))) {\n\t\t\t\t\t\twait = false;\n\t\t\t\t\t\tcurIndex++;\n\t\t\t\t\t}\n\t\t\t\t\tif (wait) {\n\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\tbreak forloop;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvalid = false;\n\t\t\t\t\tbreak forloop;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase ' ':\n\t\t\t\tif (command.length() > curIndex) {\n\t\t\t\t\tif (!Character.isWhitespace(\n\t\t\t\t\t\t\tcommand.charAt(curIndex))) {\n\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\tbreak forloop;\n\t\t\t\t\t}\n\t\t\t\t\tcurIndex++;\n\t\t\t\t} else {\n\t\t\t\t\tvalid = false;\n\t\t\t\t\tbreak forloop;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tif (command.length() > curIndex) {\n\t\t\t\t\twhile (command.length() > curIndex) {\n\t\t\t\t\t\tif (!Character.isAlphabetic(\n\t\t\t\t\t\t\t\tcommand.charAt(curIndex))\n\t\t\t\t\t\t\t\t&& command\n\t\t\t\t\t\t\t\t\t\t.charAt(curIndex) != '.') {\n\t\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\t\tbreak forloop;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurIndex++;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvalid = false;\n\t\t\t\t\tbreak forloop;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (curIndex != command.length()) {\n\t\t\tvalid = false;\n\t\t}\n\t\treturn valid;\n\t}", "private DecoderState readCommand(ByteBuf in) {\n\n DecoderState nextState = DecoderState.READ_COMMAND;\n String line = readLine(in);\n\n if (line != null) {\n command = Command.valueOf(line);\n nextState = DecoderState.READ_HEADERS;\n }\n\n return nextState;\n }", "private boolean runCommand( String command ) throws SQLException, NoDatabaseConnectionException, InputValidationException{\r\n\t\t\r\n\t\tif(command.length() == 0)\r\n\t\t\treturn true;\r\n\t\t\r\n\t\tboolean syntaxProblems = false;\r\n\t\t//String[] input = StringUtils.split(command);\r\n\t\tString[] input;\r\n\t\t\r\n\t\ttry{\r\n\t\t\tinput = parseCommand( command );\r\n\t\t}catch( QuoteSequenceException e){\r\n\t\t\tSystem.out.println( e.getDescription() );\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t// 1 -- Try to execute the desired command\r\n\t\t\r\n\t\tfor( int c = 0; c < consoleCommands.length; c++){\r\n\t\t\t\r\n\t\t\tif( consoleCommands[c].matchesName( input[0] )){\r\n\t\t\t\tSystem.out.println();//Inserts a space before the command to make easier for the user to parse the output\r\n\t\t\t\tCommandResult result = consoleCommands[c].run(input);\r\n\t\t\t\tsyntaxProblems = (result == CommandResult.ERROR);\r\n\t\t\t\t\r\n\t\t\t\tif( result == CommandResult.TERMINATE_CONSOLE )\r\n\t\t\t\t\treturn false;\r\n\t\t\t\telse\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// 2 -- Show a message if the command was not recognized (execution will not get to this point unless the command failed). \r\n\t\tSystem.out.println(\"Command not recognized\");\r\n\t\tsyntaxProblems = true;\r\n\t\t\r\n\t\t// 3 -- Show the help if the syntax used was incorrect\r\n\t\tif( syntaxProblems ){\r\n\t\t\tdefaultCommand.run(input);\r\n\t\t\t/*System.out.println(\"Type \\\"help\\\" to see the available commands\");\r\n\t\t\t//boolean firstPrinted = false;\r\n\t\t\tVector<String[]> commands = new Vector<String[]>();\r\n\t\t\tcommands.add(new String[]{\"Similar Command\", \"Usage\"});\r\n\t\t\t\r\n\t\t\tfor( int c = 0; c < consoleCommands.length; c++){\r\n\t\t\t\t\r\n\t\t\t\tif( consoleCommands[c].getName().toLowerCase().startsWith( input[0].toLowerCase() ) ){\r\n\t\t\t\t\tcommands.add(new String[]{consoleCommands[c].getName(), consoleCommands[c].description});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif( commands.size() > 1 ){\r\n\t\t\t\tString[][] commandsArray = new String[commands.size()][];\r\n\t\t\t\tcommands.toArray(commandsArray);\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(ConsoleCommand.getTableFromString(commandsArray, true));\r\n\t\t\t}*/\r\n\t\t}\r\n\t\t\r\n\t\t// 4 -- Return true, noting that the console listener should not shutdown\r\n\t\treturn true;\r\n\t\t\r\n\t}", "abstract public boolean doCommand(String[] line, Inventory inv);", "public boolean isKnownCommand(String string) {\n\t\treturn myVarMap.containsKey(string) || myLanguages.containsKey(string) || myFuncMap.containsKey(string);\n\t}", "public abstract boolean commandExecution(CommandSender sender, String label, String[] args);", "@Override\n\tpublic String processCommand(String command) {\n\t\tif (this.isValid(\"c\", command)) {\n\t\t\t// structure matches the quit command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 'Q') {\n\t\t\t\trunning = false;\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |c| |n\", command)) {\n\t\t\t// structure matches the insert command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 'a') {\n\t\t\t\tchar insertChar = command.charAt(2);\n\t\t\t\tint index = Integer.parseInt(command.substring(4));\n\t\t\t\tif (linkedList.insert(insertChar, index)) {\n\t\t\t\t\tunMixCode = \"r\" + (index + 1) + unMixCode;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Invalid index!\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |c\", command)) {\n\t\t\t// structure matches the remove command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 'r') {\n\t\t\t\tchar removeChar = command.charAt(2);\n\t\t\t\tlinkedList.remove(removeChar);\n\t\t\t\tfor (int i = curMessage.length() - 1; i >= 0; i--) {\n\t\t\t\t\tif (removeChar == curMessage.charAt(i)) {\n\t\t\t\t\t\tunMixCode = \"a\" + removeChar + (i - 1)\n\t\t\t\t\t\t\t\t+ unMixCode;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |n| |n| |n\", command)) {\n\t\t\t// structure matches the cut command, check to see if\n\t\t\t// the first char\n\t\t\t// is right\n\t\t\tif (command.charAt(0) == 'c') {\n\t\t\t\tcommand = command.substring(2);\n\t\t\t\tint space1 = command.indexOf(\" \");\n\t\t\t\tint space2 = command.indexOf(\" \", space1 + 1);\n\t\t\t\tint startIndex = Integer\n\t\t\t\t\t\t.parseInt(command.substring(0, space1));\n\t\t\t\tint endIndex = Integer.parseInt(\n\t\t\t\t\t\tcommand.substring(space1 + 1, space2));\n\t\t\t\tint clipboardIndex = Integer\n\t\t\t\t\t\t.parseInt(command.substring(space2 + 1));\n\t\t\t\tboolean ok = true;\n\t\t\t\tif (startIndex < 0\n\t\t\t\t\t\t|| startIndex >= curMessage.length()) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tif (endIndex < startIndex || endIndex < 0\n\t\t\t\t\t\t|| endIndex >= curMessage.length()) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tif (clipboardIndex < 0 || clipboardIndex >= 1000) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tif (ok) {\n\t\t\t\t\tLinkedList temp = new LinkedList();\n\t\t\t\t\ttemp.setToString(linkedList.toString()\n\t\t\t\t\t\t\t.substring(startIndex, endIndex + 1));\n\t\t\t\t\tclipboards.add(clipboardIndex, temp.getTop());\n\t\t\t\t\tfor (int i = endIndex; i >= startIndex; i--) {\n\t\t\t\t\t\tunMixCode = \"a\"\n\t\t\t\t\t\t\t\t+ curMessage.toString().charAt(i)\n\t\t\t\t\t\t\t\t+ (i - 1) + unMixCode;\n\t\t\t\t\t\tlinkedList.removeAt(i);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t\t(testing) ? \"\" : \"Invalid command!\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |n| |n\", command)) {\n\t\t\t// structure matches the paste command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 'p') {\n\t\t\t\tcommand = command.substring(2);\n\t\t\t\tint spc1 = command.indexOf(' ');\n\t\t\t\tint startIndex = Integer\n\t\t\t\t\t\t.parseInt(command.substring(0, spc1));\n\t\t\t\tint clipboardIndex = Integer\n\t\t\t\t\t\t.parseInt(command.substring(spc1 + 1));\n\t\t\t\tboolean ok = true;\n\t\t\t\tif (startIndex < 0\n\t\t\t\t\t\t|| startIndex >= curMessage.length()) {\n\t\t\t\t\tif (startIndex != -1) {\n\t\t\t\t\t\tok = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (clipboardIndex < 0 || clipboardIndex >= 1000) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tLinkedList temp = new LinkedList();\n\t\t\t\ttemp.setTop(clipboards.get(clipboardIndex));\n\t\t\t\tif (temp.getTop() == null) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tif (ok) {\n\t\t\t\t\tfor (char c : temp.toString().toCharArray()) {\n\t\t\t\t\t\tif (linkedList.insert(c, startIndex)) {\n\t\t\t\t\t\t\tunMixCode = \"r\" + (startIndex + 1)\n\t\t\t\t\t\t\t\t\t+ unMixCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstartIndex++;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t\t(testing) ? \"\" : \"Invalid command!\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |s\", command)) {\n\t\t\t// structure matches the save command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 's') {\n\t\t\t\tString fileName = command.substring(2,\n\t\t\t\t\t\tcommand.length());\n\t\t\t\ttry {\n\t\t\t\t\tPrintWriter saver = new PrintWriter(\n\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\tnew FileWriter(fileName)));\n\t\t\t\t\tsaver.print(unMixCode);\n\t\t\t\t\tsaver.close();\n\t\t\t\t\tif (!testing) {\n\t\t\t\t\t\tSystem.out.println(\"Saved successfully\");\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.print((testing) ? \"\" : \"Invalid command!\");\n\t\t}\n\t\tcurMessage = linkedList.toString();\n\t\treturn curMessage;\n\t}", "public boolean send(String command, Component owner, boolean askContinue)\n {\n assert(SwingUtilities.isEventDispatchThread());\n String c = command.trim();\n if (c.equals(\"\"))\n return true;\n if (c.startsWith(\"#\"))\n {\n m_gtpShellText.appendComment(command + \"\\n\");\n }\n else\n {\n if (c.startsWith(\"boardsize \")\n || c.startsWith(\"black \")\n || c.equals(\"clear_board\")\n || c.startsWith(\"genmove \")\n || c.startsWith(\"genmove_black \")\n || c.startsWith(\"genmove_cleanup \")\n || c.startsWith(\"genmove_white \")\n || c.startsWith(\"kgs-genmove_cleanup \")\n || c.startsWith(\"loadsgf \")\n || c.startsWith(\"play \")\n || c.startsWith(\"play_sequence \")\n || c.startsWith(\"white \")\n || c.startsWith(\"quit\"))\n {\n if (m_modifyWarning == null)\n m_modifyWarning = new OptionalMessage(this);\n String message = \n \"The command '\" + command + \"' \" +\n \"will modify the board state \" +\n \"and cause the graphical board to be out of sync. \" +\n \"You should start a new game before using \" +\n \"the graphical board again.\";\n if (! m_modifyWarning.showWarning(message))\n return true;\n }\n try\n {\n m_callback.sendGtpCommand(command, owner != null);\n }\n catch (GtpError e)\n {\n Util.showError(owner, m_programName, e);\n if (askContinue)\n return ! SimpleDialogs.showQuestion(owner, \"Abort?\");\n }\n }\n return true;\n }", "public static boolean isUndoOrRedo(String command) {\r\n\t\tassert command != null;\r\n\t\tcommandType = Logic.determineCommandType(command);\r\n\t\tswitch (commandType) {\r\n\t\tcase UNDO:\r\n\t\t\treturn true;\r\n\t\tcase REDO:\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean containsDotCommand(String firstCommand) {\n\t\tswitch(this) {\n\t\t\n\t\tcase ADDRSS -> \t{return true;}\n\t\tcase ASCII -> \t{return true;}\n\t\tcase BLOCK -> \t{return true;}\n\t\tcase BURN -> \t{return true;}\n\t\tcase BYTE -> \t{return true;}\n\t\tcase END -> \t{return true;}\n\t\tcase EQUATE -> {return true;}\n\t\tcase WORD -> \t{return true;}\n\t\t\n\t\tdefault -> {return false;}\n\t\t\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic boolean validCommand(CommandStack stack) {\r\n\t\treturn true;\r\n\t}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "public Command parse(String fullCommand) throws InvalidInputException, UnknownException {\n checkDelimiters(fullCommand);\n String[] tokens = fullCommand.split(\"\\\\s+\");\n\n // If tokenized command returns an empty array (entered a string with only white spaces),\n // raise an exception\n if (tokens.length == 0) {\n throw new InvalidInputException(InvalidInputException.Type.EMPTY_STRING);\n }\n // If first token (command) is empty, there are empty spaces typed in at the front - so we remove it\n if (tokens[0].isEmpty()) {\n tokens = Arrays.copyOfRange(tokens, 1, tokens.length);\n // Check again to make sure it is not empty after removing first element\n if (tokens.length == 0) {\n throw new InvalidInputException(InvalidInputException.Type.EMPTY_STRING);\n }\n }\n\n HashMap<String, String> arguments = new HashMap<>();\n // Conver input command to lowercase to make it case insensitive\n String command = tokens[0].toLowerCase();\n arguments.put(\"command\", command);\n\n // Default key is \"payload\"\n String key = \"payload\";\n ArrayList<String> values = new ArrayList<>();\n for (int i = 1; i < tokens.length; ++i) {\n String token = tokens[i];\n // Check whether this token is a new key\n if (!token.isEmpty() && token.charAt(0) == '/') {\n // If it is, save current value into the map and start a new k-v pair\n arguments.put(key, String.join(DELIMITER, values));\n key = token.substring(1);\n values.clear();\n } else {\n // If not, append this token to the end of the value\n values.add(token);\n }\n }\n\n // Store the last k-v pair\n // Store even when `values` is empty, as that indicates an empty string\n arguments.put(key, String.join(DELIMITER, values));\n\n // Initialize a respective class from the command (by capitalize first character)\n String className = command + \"Command\";\n className = className.substring(0, 1).toUpperCase() + className.substring(1);\n className = Constants.COMMAND_CLASS_PREFIX + className;\n try {\n Class<?> cls = Class.forName(className);\n Constructor<?> constructor = cls.getDeclaredConstructor(Ui.class, Data.class, HashMap.class);\n Object obj = constructor.newInstance(ui, data, arguments);\n return (Command) obj;\n } catch (ClassNotFoundException classNotFoundException) {\n // *Command class cannot be found!\n throw new InvalidInputException(InvalidInputException.Type.UNKNOWN_COMMAND, classNotFoundException);\n } catch (Exception exception) {\n // Some other weird error occurred here (e.g. dev bugs)\n // We should NEVER reach this block, if we do, log under the highest level\n throw new UnknownException(exception);\n }\n }", "public boolean isSpecialCharacter(String enteredCmd) {\n Pattern regex = Pattern.compile(\"[%@#€]+\");\n Matcher m = regex.matcher(enteredCmd);\n return m.matches();\n }", "public String readCommand() {\n String input = in.nextLine();\n while (input.trim().isEmpty()) {\n input = in.nextLine();\n }\n return input;\n }", "int commandFor(String s) throws AmbiguousException\t\t\t{ return determineCommand(g_commandArray, s, CMD_UNKNOWN);\t}", "abstract public boolean isVariableCommand();", "public boolean test(CommandSender sender, MCommand command);", "public boolean parse(String input) {\n\t\tif (input.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tString[] sp = input.split(\" \");\n\t\tthis.command = sp[0];\n\t\tif (sp.length > 1) {\n\t\t\tthis.arguments = Arrays.copyOfRange(sp, 1, sp.length);\n\t\t}\n\t\treturn true;\n\t}", "public String readCommand() {\n return scanner.nextLine();\n }", "@Override\n public Command parseCommand(String commandText, ViewController viewController, Cli cli) throws InvalidCommandException {\n\n System.out.println(this+\": \"+commandText);\n String word = \"\";\n Resource resource;\n String prefix = \"\";\n String suffix = \"\";\n boolean found = false;\n ArrayList<Resource> resources = new ArrayList<>();\n\n if (commandText.length() == 0)\n throw new InvalidCommandException();\n\n commandText = Command.deleteInitSpaces(commandText);\n\n for (int i = 0;i<commandText.length();i++){\n if (commandText.charAt(i) != ' '){\n prefix = prefix + commandText.charAt(i);\n } else {\n for (i++;i<commandText.length();i++)\n suffix = suffix + commandText.charAt(i);\n }\n }\n\n if (prefix.equals(\"coin\") || prefix.equals(\"rock\") || prefix.equals(\"shield\") || prefix.equals(\"servant\")){\n\n resource = Command.fromStringToResource(prefix);\n resources.add(resource);\n\n for (int i = 0;i<suffix.length();i++){\n if (suffix.charAt(i) != ' '){\n word = word + suffix.charAt(i);\n } else {\n resource = Command.fromStringToResource(word);\n if(resource != null )\n for(Resource r : possibleResources)\n if (r == resource)\n resources.add(resource);\n word = \"\";\n }\n }\n resource = Command.fromStringToResource(word);\n if(resource != null )\n for(Resource r : possibleResources)\n if (r == resource)\n resources.add(resource);\n\n if (resources.size() != numberOfWhiteMarbles){\n throw new InvalidCommandException();\n }\n return new WhiteMarbleCommand(resources,cli);\n } else {\n switch (prefix) {\n case \"exit\": {\n return new ExitCommand();\n }\n case \"help\": {\n return new HelpCommand();\n }\n case \"showGameboard\": {\n return new ShowGameBoardCommand(cli);\n }\n case \"showMarket\": {\n return new ShowMarketCommand(cli);\n }\n case \"showPlayer\": {\n\n int n = 0;\n int temp;\n found = false;\n\n for (int i = 0; i < suffix.length() && !found; i++) {\n if (suffix.charAt(i) != ' ') {\n temp = suffix.charAt(i) - '0';\n if (temp < 0 || temp > 9)\n throw new InvalidCommandException();\n n = temp;\n found = true;\n }\n\n }\n if (n < 1 || n > 4)\n throw new InvalidCommandException();\n return new ShowPlayerCommand(n, viewController);\n\n }\n case \"showProductionDecks\": {\n return new ShowProductionDeckCommand(cli);\n }\n case \"showReserve\": {\n return new ShowReserveCommand(cli);\n }\n default: {\n throw new InvalidCommandException();\n }\n }\n }\n }", "public boolean handleCommand(LocalPlayer player, String[] split) {\n try {\n split[0] = split[0].substring(1);\n\n // No command found!\n if (!commandManager.hasCommand(split[0])) {\n return false;\n }\n\n try {\n commandManager.execute(split, player, player);\n } catch (CommandPermissionsException e) {\n player.sendMessage(ChatColor.RED + \"You don't have permission to do this.\");\n } catch (MissingNestedCommandException e) {\n player.sendMessage(ChatColor.RED + e.getUsage());\n } catch (CommandUsageException e) {\n player.sendMessage(ChatColor.RED + e.getMessage());\n player.sendMessage(ChatColor.RED + e.getUsage());\n } catch (UnhandledCommandException e) {\n return false;\n } catch (WrappedCommandException e) {\n throw e.getCause();\n } catch (CommandException e) {\n player.sendMessage(ChatColor.RED + e.getMessage());\n } catch (NumberFormatException e) {\n player.sendMessage(ChatColor.RED + \"Number expected; string given.\");\n }\n } catch (Throwable e) {\n player.sendMessage(ChatColor.RED + \"Please report this error: [See console]\");\n player.sendMessage(ChatColor.RED + e.getClass().getName() + \": \" + e.getMessage());\n e.printStackTrace();\n }\n\n return true;\n }", "@Override\n public void onMessageReceived(@NotNull MessageReceivedEvent event) {\n String message = event.getMessage().getContentRaw().toLowerCase();\n Commands commands = Main.getBOT().getCommands();\n\n // When message is intended for bob, check it\n if (message.startsWith(\"!bob\")) {\n commands.evaluateCommand(message.replace(\"!bob \", \"\"), event);\n } else if (message.contains(\"#blamekall\")) {\n event.getChannel().sendMessage(\"NO! BE NICE! GO TO NAUGHTY JAIL!\").queue();\n event.getChannel().sendMessage(\"https://tenor.com/view/bonk-gif-18805247\").queue();\n }\n\n }", "static String getCommand() {\n\t\tString command;\n\t\twhile (true) {\n\t\t\tScanner sca = new Scanner(System.in);\n\t\t\tSystem.out.print(\"Enter Command: \");\n\t\t\tcommand = sca.next();\n\t\t\tif (command.equals(\"ac\") || command.equals(\"dc\") || command.equals(\"as\") || command.equals(\"ds\") || command.equals(\"p\") || command.equals(\"q\"))\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Invalid command: \" + command);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t// System.out.println(command);\n\t\treturn command;\n\t}", "@Override\n\tpublic void processCommand(String s)\n\t{\n\t\tif (s.contentEquals(\"atStart\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t\tSystem.out.println(isAtStart());\n\t\t}\n\t\telse if (s.contentEquals(\"atEnd\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t\tSystem.out.println(isAtEnd());\n\t\t}\n\t\telse if (s.contentEquals(\"moveToStart\"))\n\t\t{\n\t\t\tmoveToStart();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"moveToEnd\"))\n\t\t{\n\t\t\tmoveToEnd();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"toString\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.startsWith(\"toStringCursor\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"moveLeft\"))\n\t\t{\n\t\t\tmoveLeft();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"moveRight\"))\n\t\t{\n\t\t\tmoveRight();\n\t\t\tprinttest(s);\n\t\t}\n\t\t\n\t\t//ERROR CHECKING\n\t\telse if(left.isEmpty() && right.isEmpty())\n\t\t{\n\t\t\t//we have no inputted characters\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Now executing the command \" + s + \"...\");\n\t\t\tSystem.out.println(\"The Results of this command are:\");\n\t\t\tSystem.out.println(\"Sorry but you need to input something before using that command...\");\n\t\t}\n\t\telse if (s.startsWith(\"insertChar\"))\n\t\t{\n\t\t\tinsertChar(s.charAt(s.length() - 1));\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"backspace\"))\n\t\t{\n\t\t\tbackspace();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"delete\"))\n\t\t{\n\t\t\tdelete();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.startsWith(\"search\"))\n\t\t{\n\t\t\tsearch(s.charAt(s.length() - 1));\n\t\t\tprinttest(s);\n\t\t}\n\t\t\n\t\t//ERORR CHECKING\n\t\telse\n\t\t{\n\t\t\t//it is an unaccepted command, doing it this way since we cant pass two strings to printtest\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Now executing the command \" + s + \"...\");\n\t\t\tSystem.out.println(\"The Results of this command are:\");\n\t\t\tSystem.out.println(\"Sorry but this is not valid command...\");\n\t\t}\n\n\t}", "public String getValidCommand(String msg) {\n String enteredCmd = getCommand(msg);\n while (enteredCmd.isEmpty()||isSpecialCharacter(enteredCmd)) {\n enteredCmd = getCommand(ANSI_RED+\"Not a valid input. Please enter again\"+ANSI_RESET);\n }\n return enteredCmd;\n }", "public boolean execute(CommandSender sender, Command command, String string, String[] args) {\n\n\t\treturn true;\n\t}", "public boolean execute(ChatClient sender, String[] args) {\n\t\t\n\t\tif (args.length < 2) {\n\t\t\tsender.serverChat(usage());\n\t\t\treturn true;\n\t\t}\n\t\t\t\n\t\tString[] snoopArgs = args[1].split(\" \");\n\t\n\t\tif (snoopArgs.length < 2) {\n\t\t\tsender.serverChat(usage());\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tString command = snoopArgs[0].toLowerCase();\n\t\t\t\t\n\t\tChatClient target = ChatServer.getClientByName(snoopArgs[1]);\n\t\t\n\t\tif (target == null) {\n\t\t\tsender.sendChat(\"I could not locate anyone by that name\");\n\t\t}\n\t\t\n\t\tif (command.compareTo(\"start\") == 0) {\n\t\t\ttarget.startSnoop(sender);\n\t\t\t\n\t\t} else if (command.compareTo(\"stop\") == 0) {\n\t\t\ttarget.stopSnoop(sender);\n\t\t//} else if (command.compareTo(\"enable\") == 0) {\n\t\t\t\n\t\t} else\n\t\t\tsender.serverChat(usage());\n\t\t\n\t\treturn true;\n\t}", "protected boolean isCommandExecuting() {\n // long start = System.nanoTime();\n // boolean inCommand = false;\n // for (StackTraceElement e : Thread.currentThread().getStackTrace()) {\n // if (e.getMethodName().equals(\"handleCommand\")) {\n // inCommand = true;\n // break;\n // }\n // }\n // long now = System.nanoTime();\n // double elapsedMillis = (now - start) * 1e-6;\n // getLogger().info(\"handleCommand: \" + inCommand + \" elapsed ms: \" +\n // elapsedMillis);\n\n try {\n Field playerCommandState = Bukkit.getServer().getClass().getField(\"playerCommandState\");\n return playerCommandState.getBoolean(Bukkit.getServer());\n } catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException ex) {\n getLogger().severe(\"This plugin needs to be updated for the current server (EasyRider.isCommandExecuting()).\");\n return false;\n }\n }", "String getCommand();", "public boolean runCommand(String command, Vector pars) throws Throwable {\n \n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"command=\" + command);\n }\n if (Log.isLoggable(Log.TRACE)) {\n Log.trace(TAG_LOG, \"pars=\" + pars);\n }\n \n if (INCLUDE_COMMAND.equals(command)) {\n includeScript(command, pars);\n } else {\n boolean ok = false;\n for (int i = 0; i < commandRunners.size(); i++) {\n CommandRunner runner = (CommandRunner) commandRunners.elementAt(i);\n if (runner.runCommand(command, pars)) {\n ok = true;\n break;\n }\n }\n if (!ok) {\n throw new IllegalArgumentException(\"Unknown command \" + command);\n }\n }\n return true;\n }", "public boolean getReplyCondition(byte[] receivedData) {\r\n return new String(receivedData).equals(\"FIND\");\r\n }", "void parseCommand(String command){\n\t\tif(command!=null && command.length()>0){\n\t\t\tif(!subMenuFlag){\n\t\t\t\tmainMenuCommand(command);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tsubMenuCommand(command);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Please enter a valid command.\");\n\t\t}\n\t}", "public boolean isReservedCommand(final String command) {\n for (String reservedCommand : reservedCommands) {\n if (command.contentEquals(reservedCommand)) {\n return true;\n }\n }\n return false;\n }", "@Override\n public void onMessageReceived(MessageReceivedEvent event) {\n if(event.getAuthor().isBot())\n return;\n\n Message msg = event.getMessage();\n String content = msg.getContentRaw();\n\n if(content.charAt(0) == PREFIX) {\n handleCommand(msg, content.substring(1));\n }\n }" ]
[ "0.66212744", "0.6078391", "0.6059277", "0.60081834", "0.59714866", "0.5967249", "0.59342295", "0.59342295", "0.5904661", "0.58872175", "0.5872797", "0.58720595", "0.58616084", "0.5860936", "0.58369815", "0.58227676", "0.58137095", "0.5752695", "0.5747801", "0.57404816", "0.57349455", "0.57248497", "0.5718442", "0.5676628", "0.56750643", "0.5668645", "0.5611103", "0.5591061", "0.5567736", "0.5551691", "0.55444366", "0.55214804", "0.55029273", "0.5489338", "0.5471149", "0.5464136", "0.54636186", "0.5459208", "0.545809", "0.5451548", "0.54488915", "0.54459006", "0.54233056", "0.53829885", "0.53642994", "0.5361093", "0.53490007", "0.534256", "0.5341093", "0.5339753", "0.53354514", "0.5334877", "0.53196526", "0.53121656", "0.5310121", "0.5305865", "0.530445", "0.5299012", "0.5290606", "0.5281882", "0.5270322", "0.52617645", "0.525916", "0.5259007", "0.52524215", "0.52477884", "0.52314055", "0.5225705", "0.52128017", "0.52026165", "0.5198317", "0.5193363", "0.51797885", "0.51626015", "0.51548177", "0.5153174", "0.51220924", "0.5117824", "0.5110801", "0.5109384", "0.51076394", "0.510682", "0.50983524", "0.5097952", "0.50923395", "0.5087677", "0.50831807", "0.50824624", "0.5070343", "0.5064605", "0.5061644", "0.50530183", "0.5045878", "0.50425935", "0.50386035", "0.5037339", "0.5023685", "0.50225973", "0.50213075", "0.50207204" ]
0.66402924
0
Receives a command, processes it and responds it.
public String respondCommand(String input, long chatId) { logInfo("CommandProcessor " + threadId + ": Command received, processing"); return processCommand(input, chatId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleCommand(String command);", "void processCommand (String command, ZMsg msg);", "protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);", "public void\n\t\t\thandleCommand(/*@ non_null */ String command);", "protected void mainTask() {\n\t logger.log(1, CLASS, \"-\", \"impl\",\n\t\t \"About to read command\");\n\t try { \n\t\tcommand = (COMMAND)connection.receive();\n\t\tlogger.log(1,CLASS, \"-\", \"impl\",\n\t\t\t \"Received command: \"+(command == null ? \"no-command\" : command.getClass().getName()));\n\t } catch (IOException e) {\n\t\tinitError(\"I/O error while reading command:[\"+e+\"]\",command);\n\t\treturn;\n\t } catch (ClassCastException ce) {\n\t\tinitError(\"Garbled command:[\"+ce+\"]\", command);\n\t\treturn;\n\t } \n\t \n\t // 2. Create a handler.\n\t if (command == null) {\n\t\tinitError(\"No command set\", null);\n\t\treturn;\n\t }\n\n\t if (handlerFactory != null) {\n\t\thandler = handlerFactory.createHandler(connection, command);\n\t\tif (handler == null) {\n\t\t initError(\"Unable to process command [\"+command.getClass().getName()+\"]: No known handler\", command);\n\t\t return;\n\t\t}\n\t \n\t\t// 3. Handle the request - handler may send multiple updates to client over long period\n\t\thandler.handleRequest();\n\t }\t \n\t}", "public void processCommand(String command, MessageReceivedEvent event){\n command = command.toLowerCase();\n String[] parsing = command.split(\" \");\n switch(parsing[1]){\n case \"new\":\n validateNewCraftEntry(parsing, event);\n break;\n case \"list\":\n generateCraftingList(event);\n break;\n case \"help\":\n showHelp(event);\n break;\n case \"listall\":\n listall(event);\n break;\n case \"cancel\":\n cancelCraft(event);\n break;\n }\n }", "public void handleResponse(byte[] result, Command originalCommand);", "public Object handleCommandResponse(Object response) throws RayoProtocolException;", "public abstract void doCommand(String command);", "public interface CommandHandler {\n\n\t/**\n\t * Receive and handle the given Command.\n\t * @param c The Command to be handled.\n\t */\n\tpublic void handleCommand(String command);\n}", "public static void processCommand(String command) {\n instance.doCommand(command);\n }", "@RequestMapping(value = \"/command\", method = RequestMethod.POST)\n public @ResponseBody void command(@RequestBody String cmd, HttpServletRequest request) {\n commandHandler.handle(cmd);\n }", "private void processCommand(String command) {\n switch (command) {\n case \"reserve\":\n doReserve();\n break;\n case \"view\":\n doView();\n break;\n case \"deposit\":\n doDeposit();\n break;\n }\n }", "protected void channelRead0(ChannelHandlerContext channelHandlerContext, CommandMessage command) throws Exception {\r\n\r\n final Op cmd = command.op;\r\n\r\n // now do the real work\r\n if (this.verbose) {\r\n final StringBuilder log = new StringBuilder(1024);\r\n log.append(cmd);\r\n if (command.element != null) {\r\n log.append(\" \").append(command.element.getKey());\r\n }\r\n log.append(\" \").append(command.key);\r\n logger.info(log.toString());\r\n }\r\n\r\n final Channel channel = channelHandlerContext.channel();\r\n if (cmd == null) {\r\n handleNoOp(command, channel);\r\n } else {\r\n switch (cmd) {\r\n case GET:\r\n handleGet(command, channel);\r\n break;\r\n case GETS:\r\n handleGets(command, channel);\r\n break;\r\n case APPEND:\r\n handleAppend(command, channel);\r\n break;\r\n case PREPEND:\r\n handlePrepend(command, channel);\r\n break;\r\n case DELETE:\r\n handleDelete(command, channel);\r\n break;\r\n case DECR:\r\n handleDecr(command, channel);\r\n break;\r\n case INCR:\r\n handleIncr(command, channel);\r\n break;\r\n case REPLACE:\r\n handleReplace(command, channel);\r\n break;\r\n case ADD:\r\n handleAdd(command, channel);\r\n break;\r\n case SET:\r\n handleSet(command, channel);\r\n break;\r\n case CAS:\r\n handleCas(command, channel);\r\n break;\r\n case STATS:\r\n handleStats(command, channel);\r\n break;\r\n case VERSION:\r\n handleVersion(command, channel);\r\n break;\r\n case QUIT:\r\n handleQuit(channel);\r\n break;\r\n case FLUSH_ALL:\r\n handleFlush(command, channel);\r\n break;\r\n case VERBOSITY:\r\n handleVerbosity(command, channel);\r\n break;\r\n default:\r\n throw new UnknownCommandException(\"unknown command\");\r\n }\r\n }\r\n }", "void readCommand(String command) throws IOException, ClassNotFoundException, InterruptedException;", "private void handleCommand(String command, Update update){\r\n\t\tSendMessage message= new SendMessage();\t\t\r\n\t\tLong chatId = update.getMessage().getChatId();\r\n\t\tswitch (command){\r\n\t\tcase BotConfig.START_COMMAND:\t\t\t\t\r\n\t\t\tmessage.setText(BotConfig.WELCOME_STRING);\r\n\t\t\tbreak;\r\n\t\tcase BotConfig.HELP_COMMAND:\t\t\t\r\n\t\t\tmessage.setText(BotConfig.HELP_STRING);\r\n\t\t\tbreak;\r\n\t\tcase BotConfig.POLL_COMMAND:\t\t\t\r\n\t\t\tmessage.setText(BotConfig.POLL_STRING);\r\n\t\t\tpoll = new Poll();//Iniciamos la clase...\r\n\t\t\tisPolling = true;//\"Encendemos\" el modo encuesta.\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase BotConfig.POLL_COMMAND_DONE:\r\n\t\t\tisPolling = false;//Reiniciamos la variable al finalizar el comando.\r\n\t\t\thaveQuestion = false;//Reiniciamos la variable para la pregunta.\r\n\t\t\tsendSurvey = true;//Marcamos para enviar la encuesta.\t\t\t\t\r\n\t\t\tmessage.setText(BotConfig.POLL_DONE_STRING);\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\t\t\r\n\t\ttry {\r\n\t\t\tmessage.setChatId(chatId);\r\n\t\t\texecute(message);//Enviamos el mensaje... \r\n if (sendSurvey == true){ \t\r\n \t\r\n \texecute(poll.sendFinishedSurvey(chatId, poll.createSurveyString(poll.createSurvey())));//Enviamos encuesta antes de compartir.\r\n \tsendSurvey = false;//Marcamos como no enviada despues de haberlo hecho.\r\n }\r\n } catch (TelegramApiException e) {\r\n \tBotLogger.error(LOGTAG, e);//Guardamos mensaje y lo mostramos en pantalla de la consola.\r\n e.printStackTrace();\r\n }\r\n\t}", "private void processCommand(Command command) {\n if (command.commandIsUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n } else {\n String commandWord = command.getCommandWord();\n // process all possible commands\n if (commandWord.equals(\"help\")) {\n printHelp();\n } else if (commandWord.equals(\"go\")) {\n if (!command.hasSecondWord()) {\n System.out.println(\"Go where?\");\n } else {\n goDirection(command);\n }\n } else if (commandWord.equals(\"quit\")) {\n if (command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n } else {\n finished = true;\n }\n }\n }\n }", "public void sendCommand(Command cmd);", "private void chimeraCommandRead(String command) throws IOException {\n\t\tList<String> reply = new ArrayList<String>();\n\t\tboolean updateModels = false;\n\t\tboolean updateSelection = false;\n\t\tString line = null;\n\n\t\tsynchronized (replyLog) {\n\t\t\twhile ((line = lineReader.readLine()) != null) {\n\t\t\t\t// System.out.println(\"From Chimera (\"+command+\") -->\"+line);\n\t\t\t\tif (line.startsWith(\"CMD\")) {\n\t\t\t\t\tlogger.error(\"Got unexpected command from Chimera: \"+line);\n\n\t\t\t\t} else if (line.startsWith(\"END\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (line.startsWith(\"ModelChanged: \")) {\n\t\t\t\t\tupdateModels = true;\n\t\t\t\t} else if (line.startsWith(\"SelectionChanged: \")) {\n\t\t\t\t\tupdateSelection = true;\n\t\t\t\t} else if (line.length() == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (!line.startsWith(\"CMD\")) {\n\t\t\t\t\treply.add(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\treplyLog.put(command, reply);\n\t\t}\n\t\tif (updateModels)\n\t\t\t(new ModelUpdater()).start();\n\t\tif (updateSelection)\n\t\t\t(new SelectionUpdater()).start();\n\n\t\treturn;\n\t}", "public String receiveMessage(){\n try{\n response = inFromServer.readLine();\n }catch(IOException e){\n System.err.println(\"Caught IOException in inFromServer.readLine(): \" + e.getMessage());\n }\n if(response.equals(\"\\\\quit\")){\n System.out.println(\"Server quit command received.\"); \n return \"SERVERQUIT\";\n }\n System.out.println(response);\n return \"SENT\";\n }", "private void handleCommand(Message msg, String commands) {\n String[] tokens = commands.split(\" \");\n String command = tokens[0];\n\n switch(command) {\n case \"query\":\n queryProblems(msg, tokens);\n break;\n case \"help\":\n printHelpMessage(msg, tokens);\n break;\n default:\n // Implement more commands later\n break;\n }\n }", "protected String processCommand(String command)\n {\n switch (command)\n {\n case \"HELLO\":\n return \"h\";\n case \"MOVE N\":\n return \"mn\";\n case \"MOVE S\":\n return \"ms\";\n case \"MOVE E\":\n return \"me\";\n case \"MOVE W\":\n return \"mw\";\n case \"PICKUP\":\n return \"p\";\n case \"LOOK\":\n return \"l\";\n case \"QUIT\":\n return \"q\";\n default:\n return \"i\";\n }\n }", "public String sendCommand(String command) {\n try {\n write(command);\n return readUntil(prompt + \"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "@Override\n public void execute() {\n if(state.getState()!=1) {\n client.printParseMessage();\n return;\n } else if(inputArgs.length < 1) {\n System.out.println(client.strings.getString(\"manage_command_message\"));\n return;\n }\n try {\n client.setDraftTag(inputArgs[0]);\n channel.send(new ReadRequest(client.getDraftTag()));\n ReadReply reply = (ReadReply) channel.receive();\n if(!reply.lines.isEmpty()) {\n String replyLine = reply.lines.get(reply.lines.size() - 1);\n if(Push.CLOSE_LINE.equals(replyLine)) {\n System.out.println(client.strings.getString(\"manage_close_command_message\"));\n return;\n }\n }\n } catch (IOException | ClassNotFoundException ex) {\n Logger.getLogger(ReadCommand.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n state.setState(2);\n }", "@Override\n public void run() {\n try {\n Request command = (Request) cmdInStream.readObject();\n while (!\"EXIT\".equalsIgnoreCase(command.getContent())) {\n log.info(String.format(\"Received command: %s\", command.getContent()));\n\n // Searching for appropriate handler for received request\n RequestHandler request = handlers.get(command.getContent());\n if (request != null) {\n // Processing request and writing response\n Response response = request.handle(command);\n cmdOutStream.writeObject(response);\n }\n else {\n cmdOutStream.writeObject(new Response(\"Incorrect request. Please try again.\"));\n }\n\n // Read next command\n command = (Request) cmdInStream.readObject();\n }\n\n cmdInStream.close();\n cmdOutStream.close();\n\n fileInStream.close();\n fileOutStream.close();\n\n cmdSocket.close();\n fileSocket.close();\n }\n catch (ClassNotFoundException ex) {\n log.error(\"Class can't be found! \" + ex.getMessage());\n }\n catch (IOException ex) {\n log.error(ex.getMessage());\n }\n }", "public synchronized void listen() {\n// synchronized (this) {\n try {\n String input;\n if ((input = in.readLine()) != null) {\n parseCommand(input);\n }\n } catch (IOException ex) {\n Logger.getLogger(ClientIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n// }\n }", "public interface CommandHandler {\n void handleInput(String msg, DataInputStream input, DataOutputStream output);\n}", "private void handleCommand(String commands) throws IOException {\n String[] command = commands.split(String.valueOf(Command.DELIMITER));\n String cmdResult;\n if (command[0].equalsIgnoreCase(String.valueOf(Command.PLAYER_JOINED))) {\n // handlePlayerJoined\n handlePlayerJoined(command[1]);\n } else if (command[0].equalsIgnoreCase(String.valueOf(Command.UPDATE_COLOR))) {\n // handleUpdateColor\n handleColorUpdate(Color.fromString(command[1]));\n } else if (command[0].equalsIgnoreCase(String.valueOf(Command.SYNC_BOARD))) {\n // handleSyncBoard\n updateBoard(command);\n } else if (command[0].equalsIgnoreCase(String.valueOf(Command.MAKE_MOVE))) {\n // handleMakeMove\n handleMove();\n\n\n// } else if (command.equals(Character.toString(ProtocolMessages.EXIT))) {\n// in.close();\n// out.close();\n// sock.close();\n } else {\n clientTUI.showMessage(\"Check your parameters\");\n try {\n sendMessage(\"Unknown Command\");\n } catch (ServerUnavailableException e) {\n e.printStackTrace();\n }\n }\n }", "private boolean processReply(int command_id) {\n String fromServer;\n try {\n\n int current_command_id = 0; // Variable to keep track of the command ID which is currently being processed\n boolean success = false; // Variable to keep track of whether the command_id parameter succeeded\n\n while ((fromServer = in.readLine()) != null){\n\n RawPacket rawPacket = new RawPacket(fromServer);\n APINetworkPacketType APINetworkPacketType = rawPacket.type();\n\n switch(APINetworkPacketType){\n case BEGIN:\n current_command_id = Integer.parseInt(rawPacket.getValue(\"id\"));\n break;\n case END:\n if(command_id == Integer.parseInt(rawPacket.getValue(\"id\")))\n return success;\n else\n current_command_id = 0;\n break;\n case OK:\n if(current_command_id==command_id)\n success = true;\n break;\n default:\n try {\n\n APINetworkPacket packet = deserializer.deserialize(rawPacket);\n packetReceived.invoke(packet);\n\n } catch (InvalidArgumentException e) {\n e.printStackTrace();\n }\n }\n\n if(command_id == 0)\n break;\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return false;\n }", "public interface CommandSender \n{\n /**\n * Handle a respond from the robot.\n * @param result The result.\n * @param originalCommand The command which was sent to the robot.\n */\n public void handleResponse(byte[] result, Command originalCommand);\n \n /**\n * Handle an error that occured when communicating to the robot.\n * @param code The error code that was sent by the robot.\n */\n public void handleError(int code);\n \n /**\n * Needed when sending a command repetitively to the robot.\n * @return The command string that should be used.\n */\n public Command getCurrentCommand();\n \n}", "public void processMessage()\n {\n \tif(messageContents.getMessage().containsCommand())\n {\n \tCommand command = new Command(messageContents);\n CommandProcessor commandProcessor = new CommandProcessor(joeBot, command);\n commandProcessor.processCommand();\n }\n else\n {\n Speech speech = new Speech(messageContents);\n SpeechProcessor speechProcessor = new SpeechProcessor(joeBot, speech);\n speechProcessor.processSpeech();\n }\n }", "private String parseAndRespond() {\n\t\tList<String> commands = new ArrayList<String>();\n\t\twhile (input.hasNext()) {\n\t\t\tString inputToken = input.next();\n\t\t\tcommands.add(inputToken);\n\t\t\tcommands.get(commands.size()-1).chars().forEach(p -> System.out.println(p));\n\t\t\t\n\t\t\t/* trap telnet control c */\n\t\t\tString telnetControlC = IntStream.of(65533,65533,65533,65533,6).collect(StringBuilder::new,\n\t\t\t\t\tStringBuilder::appendCodePoint, StringBuilder::append).toString();\n\t\t\tif (inputToken.contains(telnetControlC)) { \n\t\t\t\tSystem.out.println(\"Caught you CTRL+C evil!\");\n\t\t\t\treturn EXIT;\n\t\t\t}\n\t\t\tif (commands.get(commands.size()-1).equals(\".\")) {\n\t\t\t\tcommands.remove(commands.size()-1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif (commands.get(commands.size()-1).equals(EXIT)) return EXIT;\n\t\t\t\n\t\t}\n\t\t\n\t\tString response = \"\";\n\t\t/* I'm not sure if I want to trap an error or let it percolate up yet */\n\t\t\n//\t\ttry {\n\t\t\tresponse = commandInterpreter.interpretCommands(commands);\n//\t\t} catch (IOException e) {\n//\t\t\tlogger.log(Level.WARNING, \"Error interpreting commands\", e);\n//\t\t\tresponse = \"Error occured!\";\n//\t\t}\n\t\toutput.format(\"%s\\n>\",response);\n\t\toutput.flush();\n\t\t\n\n\t\treturn \"\";\n\n\t}", "<C, R> void dispatch( CommandMessage<C> command, CommandCallback<? super C, ? super R> callback );", "private void processCommand(String command) {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"c\")) {\n doMarkTaskAsCompleted();\n } else if (command.equals(\"m\")) {\n doModifyTask();\n } else if (command.equals(\"v\")) {\n doViewAllTasks();\n } else if (command.equals(\"ct\")) {\n doViewAllCompletedTasks();\n } else if (command.equals(\"s\")) {\n saveTasks();\n } else {\n System.out.println(\"Invalid selection, kindly select from the options available.\");\n }\n }", "@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 onCmd(String cmd) \n {\n \tString split[] = cmd.split(\" \");\n \tif (split.length <= 1)\n \t{\n \t\tacm(\"No command was typed. Use \\\"help\\\" for a list of commands\");\n \t\treturn;\n \t}\n \telse\n \t{\n \t\tfor (ICommand command : commands)\n \t\t{\n \t\t\tif (command.getCommand().equalsIgnoreCase(split[1]))\n \t\t\t{\n \t\t\t\tcommand.onCmd(split);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t\tacm(\"\\\"\" + split[1] + \"\\\" Unknown command. Use \\\"help\\\" for a list of commands\");\n \t}\n }", "@Override\n\tpublic String processCommand(String command) {\n\t\tif (this.isValid(\"c\", command)) {\n\t\t\t// structure matches the quit command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 'Q') {\n\t\t\t\trunning = false;\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |c| |n\", command)) {\n\t\t\t// structure matches the insert command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 'a') {\n\t\t\t\tchar insertChar = command.charAt(2);\n\t\t\t\tint index = Integer.parseInt(command.substring(4));\n\t\t\t\tif (linkedList.insert(insertChar, index)) {\n\t\t\t\t\tunMixCode = \"r\" + (index + 1) + unMixCode;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Invalid index!\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |c\", command)) {\n\t\t\t// structure matches the remove command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 'r') {\n\t\t\t\tchar removeChar = command.charAt(2);\n\t\t\t\tlinkedList.remove(removeChar);\n\t\t\t\tfor (int i = curMessage.length() - 1; i >= 0; i--) {\n\t\t\t\t\tif (removeChar == curMessage.charAt(i)) {\n\t\t\t\t\t\tunMixCode = \"a\" + removeChar + (i - 1)\n\t\t\t\t\t\t\t\t+ unMixCode;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |n| |n| |n\", command)) {\n\t\t\t// structure matches the cut command, check to see if\n\t\t\t// the first char\n\t\t\t// is right\n\t\t\tif (command.charAt(0) == 'c') {\n\t\t\t\tcommand = command.substring(2);\n\t\t\t\tint space1 = command.indexOf(\" \");\n\t\t\t\tint space2 = command.indexOf(\" \", space1 + 1);\n\t\t\t\tint startIndex = Integer\n\t\t\t\t\t\t.parseInt(command.substring(0, space1));\n\t\t\t\tint endIndex = Integer.parseInt(\n\t\t\t\t\t\tcommand.substring(space1 + 1, space2));\n\t\t\t\tint clipboardIndex = Integer\n\t\t\t\t\t\t.parseInt(command.substring(space2 + 1));\n\t\t\t\tboolean ok = true;\n\t\t\t\tif (startIndex < 0\n\t\t\t\t\t\t|| startIndex >= curMessage.length()) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tif (endIndex < startIndex || endIndex < 0\n\t\t\t\t\t\t|| endIndex >= curMessage.length()) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tif (clipboardIndex < 0 || clipboardIndex >= 1000) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tif (ok) {\n\t\t\t\t\tLinkedList temp = new LinkedList();\n\t\t\t\t\ttemp.setToString(linkedList.toString()\n\t\t\t\t\t\t\t.substring(startIndex, endIndex + 1));\n\t\t\t\t\tclipboards.add(clipboardIndex, temp.getTop());\n\t\t\t\t\tfor (int i = endIndex; i >= startIndex; i--) {\n\t\t\t\t\t\tunMixCode = \"a\"\n\t\t\t\t\t\t\t\t+ curMessage.toString().charAt(i)\n\t\t\t\t\t\t\t\t+ (i - 1) + unMixCode;\n\t\t\t\t\t\tlinkedList.removeAt(i);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t\t(testing) ? \"\" : \"Invalid command!\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |n| |n\", command)) {\n\t\t\t// structure matches the paste command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 'p') {\n\t\t\t\tcommand = command.substring(2);\n\t\t\t\tint spc1 = command.indexOf(' ');\n\t\t\t\tint startIndex = Integer\n\t\t\t\t\t\t.parseInt(command.substring(0, spc1));\n\t\t\t\tint clipboardIndex = Integer\n\t\t\t\t\t\t.parseInt(command.substring(spc1 + 1));\n\t\t\t\tboolean ok = true;\n\t\t\t\tif (startIndex < 0\n\t\t\t\t\t\t|| startIndex >= curMessage.length()) {\n\t\t\t\t\tif (startIndex != -1) {\n\t\t\t\t\t\tok = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (clipboardIndex < 0 || clipboardIndex >= 1000) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tLinkedList temp = new LinkedList();\n\t\t\t\ttemp.setTop(clipboards.get(clipboardIndex));\n\t\t\t\tif (temp.getTop() == null) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tif (ok) {\n\t\t\t\t\tfor (char c : temp.toString().toCharArray()) {\n\t\t\t\t\t\tif (linkedList.insert(c, startIndex)) {\n\t\t\t\t\t\t\tunMixCode = \"r\" + (startIndex + 1)\n\t\t\t\t\t\t\t\t\t+ unMixCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstartIndex++;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t\t(testing) ? \"\" : \"Invalid command!\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |s\", command)) {\n\t\t\t// structure matches the save command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 's') {\n\t\t\t\tString fileName = command.substring(2,\n\t\t\t\t\t\tcommand.length());\n\t\t\t\ttry {\n\t\t\t\t\tPrintWriter saver = new PrintWriter(\n\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\tnew FileWriter(fileName)));\n\t\t\t\t\tsaver.print(unMixCode);\n\t\t\t\t\tsaver.close();\n\t\t\t\t\tif (!testing) {\n\t\t\t\t\t\tSystem.out.println(\"Saved successfully\");\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.print((testing) ? \"\" : \"Invalid command!\");\n\t\t}\n\t\tcurMessage = linkedList.toString();\n\t\treturn curMessage;\n\t}", "public synchronized String sendCommand(String command) {\n\n\t\tlog.debug(\"Send command \" + command);\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t//Send the bytes and flush the output stream\n\t\t\tbyte[] commandByteArray = new String(command + \"\\r\").getBytes(\"ASCII\");\n\t\t\tlog.info(\"Sending bytes: \" + byteArrayToHexString(commandByteArray));\n\t\t\t\n\t\t\t//Flush the output stream\n\t\t\tthis.outputStream.write(commandByteArray);\n\t\t\tthis.outputStream.flush();\n\t\t\t\n\t\t} catch (UnsupportedEncodingException uee) {\n\t\t\tlog.error(\"Error sending \" + command + \" command.\", uee);\n\t\t} catch (IOException ioe) {\n\t\t\tlog.error(\"Error sending \" + command + \" command.\", ioe);\n\t\t}\n\t\t\n\t\t//Set the last command and return the response\n\t\tthis.lastCommand = command + \"\\r\";\n\t\treturn receiveResponse();\n\n\t}", "void onReceive( String response );", "public static void processCommand(String command) {\n\n\t\tString commandType = command.substring(0, command.indexOf(\" \"));\n\n\t\tswitch (commandType) {\n\t\t\n\t\tcase COMMAND_ADD:\n\t\t\tFileStorage.addEvent(command);\n\t\t\tbreak;\n\n\t\tcase COMMAND_DELETE:\n\t\t\tFileStorage.deleteEvent(command);\n\t\t\tbreak;\n\n\t\tcase COMMAND_EDIT:\n\t\t\tFileStorage.editEvent(command);\n\t\t\tbreak;\n\t\t\n\t\tcase COMMAND_RECUR:\n\t\t\tFileStorage.recurEvent(command);\n\t\t\tbreak;\n\t\t\t\n\t\tcase COMMAND_NAVIGATE:\n\t\t\tFileStorage.navigateDay(command);\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tSystem.out.println(MESSAGE_INVALID);\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t}", "@Override\r\n\tpublic void handle(I_ConnectionHandler connection, String command) throws Exception {\n\t}", "private void handleCommand(String input) throws ClientOfflineException, ServerException {\n String[] params = input.split(\" \");\n Command command = this.availableCommandMap.get(params[0]);\n String argument = (params.length <= 1) ? null : params[1];\n command.execute(this, argument);\n }", "public void process () {\n consoleListenerAndSender.execute(() -> {\n String message = null;\n DataInputStream reader = null;\n try {\n reader = new DataInputStream(new BufferedInputStream(console.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n while (!isServerAvailable()) {\n message = reader.readUTF();\n\n if (Objects.equals(message, \"/quit\")){\n close();\n setQuitCommandAppear(true);\n break;\n }\n\n sender.sendMessage(message);\n message = null;\n\n }\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n serverListenerAndConsoleWriter.execute(() -> {\n try {\n while (!isServerAvailable()) {\n System.out.println(getter.getInputMessage());\n }\n } catch (IOException e) {\n if (!isQuitCommandAppear()) {\n System.out.println(\"[SERVER ISSUE] server is down.\");\n close();\n setServerAvailable(true);\n }\n else {\n System.out.println(\"Quit...\");\n }\n }\n });\n }", "@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}", "private boolean processCommand(Command command)//Method was given\n {\n if(command.isUnknown())\n {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\"))\n printHelp();\n else if (commandWord.equals(\"go\"))\n goRoom(command);\n else if (commandWord.equals(\"talk\"))\n talkToCharacter(currentRoom);\n else if (commandWord.equals(\"grab\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Grab what?\");\n }\n else\n {\n grabItem(secondWord);\n }\n }\n else if (commandWord.equals(\"eat\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Eat what?\");\n }\n else\n {\n eatItem(secondWord);\n }\n }\n else if (commandWord.equals(\"inventory\")) \n player.getInventory();\n else if (commandWord.equals(\"drop\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Drop what?\");\n }\n else\n {\n dropItem(secondWord);\n }\n }\n else if (commandWord.equals(\"inspect\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Inspect what?\");\n }\n else\n {\n inspectItem(secondWord);\n }\n }\n else if (commandWord.equals(\"quit\"))\n {\n if(command.hasSecondWord())\n System.out.println(\"Quit what?\");\n else\n return true; // signal that we want to quit\n }\n else if (commandWord.equals(\"look\"))\n {\n System.out.println(currentRoom.longDescription());\n }\n return false;\n }", "public String processCommand(Command command) //refactored\n {\n boolean wantToQuit = false;\n //System.out.println(\"hitter boolean\");\n commandWord = command.getAction();//fehler\n //System.out.println(command);\n //System.out.println(\"enum == null\" + (commandWord == null));\n String result = \"\";\n //System.out.println(\"heyho\");\n //System.out.println(result);\n switch(commandWord){\n //case UNKNOWN: return \"I don't know what you mean...\"; break;\n \n case HELP: result += printHelp(); break;\n case GO: result += goRoom(command); break;\n case QUIT: return quit(command);//refactored from refactoring\n default: result += \"I don't know what you mean...\";\n }\n return result;\n }", "private void processCommands() {\n while (!commandQueue.isEmpty()) {\n var msg = commandQueue.remove();\n treatCommand.parseCommand(msg);\n }\n }", "private void listen() {\n\t\tString message;\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tmessage = input.readLine();\n\t\t\t\tif (message == null) continue;\n\n\t\t\t\tif(message.equals(\"disconnect\")){\n\t\t\t\t\tThread t = new Thread(this::disconnect);\n\t\t\t\t\tt.start();\n\t\t\t\t\treturn;\n\t\t\t\t} else if(message.contains(\"PUSH\")) {\n\t\t\t\t\tparseMessage(message);\n\t\t\t\t} else if (message.equals(\"pong\")){\n\t\t\t\t\tponged = true;\n\t\t\t\t} else if(!validResponse) {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\tresponse = message;\n\t\t\t\t\t\tvalidResponse = true;\n\t\t\t\t\t\tnotifyAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tThread t = new Thread(this::disconnect);\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\tresponse = null;\n\t\t\t\t\tvalidResponse = true;\n\t\t\t\t\tnotifyAll();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "protected void processCommand(String command) throws EmptyException {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"p\")) {\n doViewList();\n } else if (command.equals(\"m\")) {\n //doMarkComplete();\n } else if (command.equals(\"n\")) {\n doCount();\n } else if (command.equals(\"s\")) {\n doSave();\n } else if (command.equals(\"c\")) {\n doClear();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }", "@Override\n public void dealWithCommand(MessageReceivedEvent event) {\n List<String> contentSplit = new ArrayList<>(Arrays.asList(event.getMessage().getContentStripped().split(\" \")));\n\n // remove the command part of the message\n contentSplit.remove(0);\n boolean isXpDesired = DetermineArguments.determineIsXpDesired(contentSplit);\n boolean isCollection = DetermineArguments.determineIsCollection(contentSplit);\n long timeToSpend = DetermineArguments.determineTimeToSpend(contentSplit, event.getTextChannel());\n int classLevel = DetermineArguments.determineClassLevel(contentSplit, event.getTextChannel());\n long amountDesired = DetermineArguments.determineAmountDesired(contentSplit, event.getTextChannel());\n\n // be done if something bad was found\n if (timeToSpend == -2 || classLevel == -2 || amountDesired == -2)\n return;\n\n if (contentSplit.isEmpty()) {\n // user did not specify what player they want\n event.getChannel().sendMessage(\"Specify what player you want to analyze.\").queue();\n return;\n }\n String username = contentSplit.get(0);\n WynncraftPlayer player = GetPlayerStats.get(username);\n if (player == null) {\n event.getChannel().sendMessage(\"Either the api is down, or '\" + username + \"' is not a player.\").queue();\n return;\n }\n\n // tell the user we're working on the answer\n event.getMessage().addReaction(\"\\uD83D\\uDEE0\").queue();\n\n List<String> classNames = new ArrayList<>();\n for (WynncraftClass playerClass : player.classes) {\n classNames.add(playerClass.name);\n }\n ChoiceArguments choiceArguments = new ChoiceArguments(\n isXpDesired, isCollection, timeToSpend, amountDesired, classLevel, classNames, player, true);\n\n\n long xpDesiredGivenPerc = 0;\n long emeraldDesiredGivenPerc = 0;\n for (WynncraftClass wynncraftClass : player.classes)\n for (Quest quest : wynncraftClass.questsNotCompleted) {\n if (quest.levelMinimum <= (classLevel == -1 ? wynncraftClass.combatLevel : classLevel)) {\n xpDesiredGivenPerc += quest.xp;\n emeraldDesiredGivenPerc += quest.emerald;\n }\n }\n xpDesiredGivenPerc *= GetAnswers.DEFAULT_PERCENTAGE_AMOUNT;\n emeraldDesiredGivenPerc *= GetAnswers.DEFAULT_PERCENTAGE_AMOUNT;\n\n FinalQuestOptionsAll finalQuestOptionsAll = GetAnswers.getAllFullAnswers(player, choiceArguments);\n String spreadsheetId = SheetsWrite.writeSheet(finalQuestOptionsAll, event.getAuthor().getIdLong(), player.name, true);\n if (spreadsheetId == null) return;\n new QuestRecommendationMessagePlayer(spreadsheetId, finalQuestOptionsAll, event.getChannel(), choiceArguments, xpDesiredGivenPerc, emeraldDesiredGivenPerc);\n\n event.getMessage().removeReaction(\"\\uD83D\\uDEE0\", DiscordBot.client.getSelfUser()).queue();\n }", "@Override\n\tpublic void run() {\n\t\t// Get object streams.\n\t\ttry{\n\t\t\toutput = new ObjectOutputStream(socket.getOutputStream());\n\t\t\toutput.flush();\n\t\t\tinput = new ObjectInputStream(socket.getInputStream());\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"ERROR: could not create streams \" + e.getMessage());\n\t\t\ttry {\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\tcatch (IOException e1) {\n\t\t\t\tSystem.out.println(\"ERROR: Could not close connection - \" + e.getMessage());\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Receive commands until EOFException thrown\n\t\ttry{\n\t\t\t// The delay after a command is processed in milliseconds. Increase this value to test the client's command queuing.\n\t\t\tlong serverDelayPerCommand = 100;\n\t\t\t\n\t\t\t// Create the command verifier.\n\t\t\tPattern validCommandPattern = Pattern.compile(\"-(end|echo|time|date|help|cls)(-.+)?\");\n\t\t\t\n\t\t\t// Create the time and date formatters.\n\t\t\tDateFormat timeFormat = new SimpleDateFormat(\"hh:mm:ss a\");\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"d MMMM yyyy\");\n\t\t\t\n\t\t\t// Main loop\n\t\t\twhile(true){\n\t\t\t\tString command = (String)input.readObject();\n\t\t\t\tString response = \"ERROR: Unrecognized command.\";\n\t\t\t\t\n\t\t\t\t// Make sure that the string is in a valid format.\n\t\t\t\tif(validCommandPattern.matcher(command).matches()){\n\t\t\t\t\tif(command.startsWith(\"-echo-\")){\n\t\t\t\t\t\tresponse = \"ECHO:\" + command.substring(6);\n\t\t\t\t\t}\n\t\t\t\t\telse if(command.startsWith(\"-echo\")){\n\t\t\t\t\t\tresponse = \"ECHO:\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(command.startsWith(\"-time\")){\n\t\t\t\t\t\tresponse = \"TIME: \" + timeFormat.format(new Date());\n\t\t\t\t\t}\n\t\t\t\t\telse if(command.startsWith(\"-date\")){\n\t\t\t\t\t\tresponse = \"DATE: \" + dateFormat.format(new Date());\n\t\t\t\t\t}\n\t\t\t\t\telse if(command.startsWith(\"-help\")){\n\t\t\t\t\t\tresponse = \"Available Services:\\nend\\necho\\ntime\\ndate\\nhelp\\ncls\\n\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(command.startsWith(\"-cls\")){\n\t\t\t\t\t\tresponse = Server.SR_CLS;\n\t\t\t\t\t}\n\t\t\t\t\t// If the response is an end command, break from the loop.\n\t\t\t\t\telse if(command.startsWith(\"-end\")){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Write the response\n\t\t\t\toutput.writeObject(response);\n\t\t\t\t\n\t\t\t\t// Sleep.\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(serverDelayPerCommand);\n\t\t\t\t}\n\t\t\t\tcatch(InterruptedException e){\n\t\t\t\t\t// Do nothing.\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\toutput.writeObject(Server.SR_END);\n\t\t}\n\t\tcatch(EOFException e){\n\t\t\t// Connection closed on client side.\n\t\t}\n\t\tcatch(ClassNotFoundException e){\n\t\t\tSystem.out.println(\"ERROR: Unknown object type recieved.\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"ERROR: \" + e.getMessage());\n\t\t}\n\t\t\n\t\t// Close the connection\n\t\tSystem.out.println(\"Server Socket: Closing client connection...\");\n\t\ttry {\n\t\t\toutput.close();\n\t\t\tinput.close();\n\t\t\tsocket.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR: Could not close connection. \" + e.getMessage());\n\t\t}\n\t}", "private DecoderState readCommand(ByteBuf in) {\n\n DecoderState nextState = DecoderState.READ_COMMAND;\n String line = readLine(in);\n\n if (line != null) {\n command = Command.valueOf(line);\n nextState = DecoderState.READ_HEADERS;\n }\n\n return nextState;\n }", "private void cmdHandler(JSONArray parameter, String cmd) {\n switch (cmd) {\n case \"login\":\n signIn(parameter);\n break;\n case \"time\":\n Date d = new GregorianCalendar().getTime();\n clientResponse(d.toString());\n break;\n case \"ls\":\n listFiles(parameter);\n break;\n case \"who\":\n clientResponse(MailboxServer.getUsersAsString());\n break;\n case \"msg\":\n sendMessage(parameter);\n break;\n case \"exit\":\n signOut();\n break;\n }\n }", "private void handleCompleteCommand(Command command) {\n if (command.getCommandStatus() == CommandStatus.COMPLETE) {\n List<Frame> frames = commandToFrames(command);\n frames.forEach(frame -> connection.addFrameToSend(frame));\n } else {\n //throw exception\n }\n }", "public void handleCommand(\n String command, HttpServletRequest request, HttpServletResponse response) {\n JSONObject retValue = null;\n response.setContentType(\"application/json\");\n boolean isPost = \"POST\".equals(request.getMethod());\n try {\n if (command.equals(UPLOAD_TOKEN_PATH)) {\n \t \n \t // Generate an upload path\n \t BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();\n \t retValue = new JSONObject();\n \t // TODO: URL should be based on current env (e.g., mapreduce path may not be consistent)\n \t retValue.put(\"url\", blobstoreService.createUploadUrl(\"/mapreduce/command/upload\"));\n \t \n } else if (command.equals(LIST_CONFIGS_PATH) && !isPost) {\n \n MapReduceXml xml;\n try {\n xml = MapReduceXml.getMapReduceXmlFromFile();\n retValue = handleListConfigs(xml);\n } catch (FileNotFoundException e) {\n retValue = new JSONObject();\n retValue.put(\"status\", \"Couldn't find mapreduce.xml file\");\n }\n } else if (command.equals(LIST_JOBS_PATH) && !isPost) {\n String cursor = request.getParameter(\"cursor\");\n String countString = request.getParameter(\"count\");\n int count = DEFAULT_JOBS_PER_PAGE_COUNT;\n if (countString != null) {\n count = Integer.parseInt(countString);\n }\n \n retValue = handleListJobs(cursor, count);\n } else if (command.equals(CLEANUP_JOB_PATH) && isPost) {\n retValue = handleCleanupJob(request.getParameter(\"mapreduce_id\"));\n } else if (command.equals(ABORT_JOB_PATH) && isPost) {\n retValue = handleAbortJob(request.getParameter(\"mapreduce_id\"));\n } else if (command.equals(GET_JOB_DETAIL_PATH) && !isPost) {\n retValue = handleGetJobDetail(request.getParameter(\"mapreduce_id\"));\n } else if (command.equals(START_JOB_PATH) && isPost) {\n Map<String, String> templateParams = new TreeMap<String, String>();\n Map httpParams = request.getParameterMap();\n for (Object paramObject : httpParams.keySet()) {\n String param = (String) paramObject;\n if (param.startsWith(\"mapper_params.\")) {\n templateParams.put(param.substring(\"mapper_params.\".length()),\n ((String[]) httpParams.get(param))[0]);\n }\n }\n retValue = handleStartJob(templateParams, ((String []) httpParams.get(\"name\"))[0], request);\n } else {\n response.sendError(404);\n return;\n }\n } catch (Throwable t) {\n log.log(Level.SEVERE, \"Got exception while running command\", t); \n try {\n retValue = new JSONObject(); \n retValue.put(\"error_class\", t.getClass().getName());\n retValue.put(\"error_message\",\n \"Full stack trace is available in the server logs. Message: \"\n + t.getMessage());\n } catch (JSONException e) {\n throw new RuntimeException(\"Couldn't create error JSON object\", e);\n }\n }\n try {\n retValue.write(response.getWriter());\n response.getWriter().flush();\n } catch (JSONException e) {\n throw new RuntimeException(\"Couldn't write command response\", e);\n } catch (IOException e) {\n throw new RuntimeException(\"Couldn't write command response\", e);\n }\n }", "private void processCommand(Command command) {\n // Switch construct\n System.out.println(); // formatting\n CommandWord commandWord = command.getCommandWord();\n switch (commandWord) {\n case ATTACK:\n System.out.println(\"You attack the monster!\");\n\n // calculate the damage this enemy will do\n int playerDifferenceHit = player.getMaxHit() - player.getMinHit(); // 5 - 3 = 2. \n int playerMinimumDamage = randomize.getRandomDamage(playerDifferenceHit); // returns 1-3\n int damage = playerDifferenceHit + playerMinimumDamage; // add the minimum damage, to random hit damage.\n\n System.out.println(\"You deal \" +damage+ \" damage!\");\n enemy.removeHealth(damage);\n\n enemyturn(); // let the enemy attack\n break;\n\n case EAT: // reach out to the main game again, then parse the command as usual\n int tempHealth = player.getHealth();\n eatItem(command);\n\n if (tempHealth == player.getHealth()) {\n // The player failed to eat something. Decrease the round\n round--;\n } else {\n // The player succesfully ate and recovered some HP.\n enemyturn(); // let the enemy attack\n }\n break;\n\n case INSPECT:\n System.out.println(\"You have a good look at the enemy:\");\n System.out.println(enemy.getDescription() + \" The enemy has \" + enemy.getHealth() + \" health left.\");\n System.out.println(\"You have a good look at yourself:\");\n System.out.println(\"You have \" + player.getHealth() + \" health left.\");\n round--;\n break;\n\n case RUN:\n System.out.println(\"You try to run...\");\n int canRun = randomize.getRandomNumber(4); // gets back 1 -4\n if (canRun == 4) {\n System.out.println(\".. but fail!\");\n enemyturn(); // let the enemy attack\n } else {\n System.out.println(\".. and succeed!\");\n succeededrun = true;\n }\n break;\n\n default:\n System.out.println(\"That option does not exist! Please try again.\");\n System.out.println(\"Your battle options are: Attack, Eat, Inspect, Run\");\n System.out.println(\"\");\n round--;\n break;\n }\n }", "private void command(){\n out.println(\"Enter command: \");\n String comInput = in.nextLine();\n\n if (comInput.toLowerCase().equals(\"vote\")) {\n voteCommand();\n }else if (comInput.toLowerCase().equals(\"trade\")){\n tradeCommand();\n }else if (comInput.toLowerCase().equals(\"next\")){\n out.println(waitPrint());\n await();\n// nextRound();\n }else if(comInput.toLowerCase().equals(\"logout\")){\n// login = false;\n logout();\n }\n }", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n switch (commandWord) \n {\n case UNKNOWN:\n System.out.println(\"I don't know what you mean...\");\n break;\n\n case HELP:\n printHelp();\n break;\n\n case GO:\n goRoom(command);\n break;\n\n //my command expect when i Quit\n case PICK:\n pickItem();\n break;\n \n //drink the redbull\n case DRINK:\n drink();\n break;\n \n //show inventory\n case SHOW:\n showInventory();\n break;\n \n //show objective\n case GOAL:\n remindGoal();\n break;\n\n case QUIT:\n wantToQuit = quit(command);\n break;\n }\n return wantToQuit;\n }", "private void processInput(String command) {\r\n\r\n if (command.equals(\"1\")) {\r\n displayListings();\r\n } else if (command.equals(\"2\")) {\r\n listYourCar();\r\n } else if (command.equals(\"3\")) {\r\n removeYourCar(user);\r\n } else if (command.equals(\"4\")) {\r\n checkIfWon();\r\n } else if (command.equals(\"5\")) {\r\n saveCarListings();\r\n } else if (command.equals(\"6\")) {\r\n exitApp = true;\r\n } else {\r\n System.out.println(\"Invalid selection\");\r\n }\r\n }", "public abstract void onCommand(MessageEvent context) throws Exception;", "public void doCommand(String command) {\n Command c;\n try {\n c = Parser.commandLine(command);\n c.execute(tasks, members, storage);\n if (c.isExit()) {\n System.exit(0);\n }\n } catch (DukeException e) {\n Ui.print(e.getMessage());\n }\n }", "@Override\n public void onEvent(Event event) {\n if (event.getClass() != MessageReceivedEvent.class)\n return;\n MessageReceivedEvent msgEvent = (MessageReceivedEvent) event;\n\n String threadName = Thread.currentThread().getName();\n\n for (Command command : commands) {\n if (!command.match(msgEvent))\n continue;\n\n LOG.info(\"Dispatching event to command {}\", command);\n\n // Metrics\n METRICS_RUNNING.labels(command.toString(), threadName)\n .inc();\n Histogram.Timer timer = METRICS_LATENCY.labels(command.toString(), threadName)\n .startTimer();\n\n // Invoke\n Object ret = null;\n try {\n ret = command.getMethod().invoke(command.getInstance(), event);\n } catch (InvocationTargetException ex) {\n // Exception in listener's code\n //todo better logging\n LOG.error(ex.getTargetException());\n continue;\n } catch (IllegalAccessException ex) {\n // Should never happen\n throw new RuntimeException(ex);\n } finally {\n // Metrics\n Runnable endMetrics = () -> {\n LOG.debug(\"Finished dispatching event for {}\", command);\n METRICS_RUNNING.labels(command.toString(), threadName)\n .dec();\n timer.observeDuration();\n };\n\n if (ret instanceof CompletionStage) {\n CompletionStage<?> future = (CompletionStage<?>) ret;\n future.thenRunAsync(endMetrics);\n } else {\n endMetrics.run();\n }\n }\n }\n }", "public void command(byte[] cmdMessage) throws SAPIException{\r\n\t\t\t\t//sends command to RBNB\r\n\t\t\t\t\r\n\t\t\t\tsrcMap.PutDataAsByteArray(srcMap.GetIndex(getParameterToStringById(\"sourceChannelCommandName\")), cmdMessage); //cmds channel\t \t\r\n\t \tsrc.Flush(srcMap); \t\r\n\t\t}", "protected String executeCommand(String line)\n throws IOException\n {\n String[] command = line.split(\" \");\n if (command.length == 0)\n {\n command = new String[1];\n command[0] = line;\n }\n \n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bout);\n\n // repeat last command?\n if (command[0].equals(\"r\"))\n {\n if (lastCommand == null)\n {\n return \"No command entered yet.\";\n }\n \n if (command.length > 1 && command[1].equals(\"show\"))\n {\n return lastCommand + \"\\n\\n\";\n }\n else\n {\n return \"repeating command \" + lastCommand + \"\\n\\n\" + interpretCommand(lastCommand);\n }\n }\n \n // remember last command\n lastCommand = line;\n\n // execute command\n if (command[0].equals(\"help\"))\n {\n String helpFile = m_messages.getMessage(\"testserver.help\", null, null);\n ClassPathResource helpResource = new ClassPathResource(helpFile);\n byte[] helpBytes = new byte[500];\n InputStream helpStream = helpResource.getInputStream();\n try\n {\n int read = helpStream.read(helpBytes);\n while (read != -1)\n {\n bout.write(helpBytes, 0, read);\n read = helpStream.read(helpBytes);\n }\n }\n finally\n {\n helpStream.close();\n }\n }\n \n else if (command[0].equals(\"user\"))\n {\n if (command.length == 2)\n {\n username = command[1];\n }\n out.println(\"using user \" + username);\n }\n \n else if (command[0].equals(\"get\") ||\n command[0].equals(\"delete\"))\n {\n String uri = (command.length > 1) ? command[1] : null;\n Response res = submitRequest(command[0], uri, headers, null, null, null);\n bout.write((\"Response status: \" + res.getStatus()).getBytes());\n out.println();\n bout.write(res.getContentAsByteArray());\n out.println();\n }\n\n else if (command[0].equals(\"post\"))\n {\n String uri = (command.length > 1) ? command[1] : null;\n String contentType = (command.length > 2) ? command[2] : null;\n String body = \"\";\n for (int i = 3; i < command.length; i++)\n {\n body += command[i] + \" \";\n }\n Response res = submitRequest(command[0], uri, headers, body.getBytes(), null, contentType);\n bout.write((\"Response status: \" + res.getStatus()).getBytes());\n out.println();\n bout.write(res.getContentAsByteArray());\n out.println();\n }\n\n else if (command[0].equals(\"put\"))\n {\n String uri = (command.length > 1) ? command[1] : null;\n String contentType = (command.length > 2) ? command[2] : null;\n String body = \"\";\n for (int i = 3; i < command.length; i++)\n {\n body += command[i] + \" \";\n }\n Response res = submitRequest(command[0], uri, headers, body.getBytes(), null, contentType);\n bout.write((\"Response status: \" + res.getStatus()).getBytes());\n out.println();\n bout.write(res.getContentAsByteArray());\n out.println();\n }\n \n else if (command[0].equals(\"tunnel\"))\n {\n if (command.length < 4)\n {\n return \"Syntax Error.\\n\";\n }\n \n if (command[1].equals(\"param\"))\n {\n String uri = command[3];\n if (uri.indexOf('?') == -1)\n {\n uri += \"?alf:method=\" + command[2];\n }\n else\n {\n uri += \"&alf:method=\" + command[2];\n }\n Response res = submitRequest(\"post\", uri, headers, null, null, null);\n bout.write(res.getContentAsByteArray());\n out.println();\n }\n \n else if (command[1].equals(\"header\"))\n {\n Map<String, String> tunnelheaders = new HashMap<String, String>();\n tunnelheaders.putAll(headers);\n tunnelheaders.put(\"X-HTTP-Method-Override\", command[2]);\n Response res = submitRequest(\"post\", command[3], tunnelheaders, null, null, null);\n bout.write(res.getContentAsByteArray());\n out.println();\n }\n \n else\n {\n return \"Syntax Error.\\n\";\n }\n }\n\n else if (command[0].equals(\"header\"))\n {\n if (command.length == 1)\n {\n for (Map.Entry<String, String> entry : headers.entrySet())\n {\n out.println(entry.getKey() + \" = \" + entry.getValue());\n }\n }\n else if (command.length == 2)\n {\n String[] param = command[1].split(\"=\");\n if (param.length == 0)\n {\n return \"Syntax Error.\\n\";\n }\n if (param.length == 1)\n {\n headers.remove(param[0]);\n out.println(\"deleted header \" + param[0]);\n }\n else if (param.length == 2)\n {\n headers.put(param[0], param[1]);\n out.println(\"set header \" + param[0] + \" = \" + headers.get(param[0]));\n }\n else\n {\n return \"Syntax Error.\\n\";\n }\n }\n else\n {\n return \"Syntax Error.\\n\";\n }\n } \n\n else if (command[0].equals(\"reset\"))\n {\n container.reset();\n out.println(\"Runtime context '\" + container.getName() + \"' reset.\");\n }\n \n else\n {\n return \"Syntax Error.\\n\";\n }\n \n out.flush();\n String retVal = new String(bout.toByteArray());\n out.close();\n return retVal;\n }", "public void onCommandReceived(AbstractCommand command) {\n\t\t\t\t\t\tif (command instanceof GrantedSessionCommand) {\n\t\t\t\t\t\t\t// Print our our unique key, this will be used for\n\t\t\t\t\t\t\t// subsequent connections\n\t\t\t\t\t\t\tUtilities.log(\"Your instanceId is \" + ((GrantedSessionCommand) command).getInstanceId());\n\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t//let's make the dock show up on the TV\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_yahoo\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(2000); //sleep for 2 seconds so the animation to dock finishes\n\n\t\t\t\t\t\t\t\t// Lets do something cool, like tell the TV to navigate to the right. Then do a little dance\n\t\t\t\t\t\t\t\t// This is the same as pressing \"right\" on your remote\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_right\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t// slide to the left\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_left\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t//slide to the right\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_right\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t//take it back now, y'all\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_left\"));\n\n\t\t\t\t\t\t\t\t//cha cha cha\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_up\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_down\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_up\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_down\"));\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\tUtilities.log(\"Problem writing to the network connection\");\n\t\t\t\t\t\t\t\tconn.close();\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Notify the main thread that everything we wanted to\n\t\t\t\t\t\t\t// do is done.\n\t\t\t\t\t\t\tsynchronized (conn) {\n\t\t\t\t\t\t\t\tconn.notifyAll();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else { // print out the others for educational purposes\n\t\t\t\t\t\t\tUtilities.log(\"Received: \" + command.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) pong = true;\n else if (buffer.getPing()) send(\"<pong/>\");\n else {\n try {\n clientController.onReceivedMessage(buffer.get());\n } catch (EmptyBufferException e) {\n System.out.println(\"[CLIENT] The buffer is empty!\");\n }\n }\n }\n\n }", "protected void handleVerbosity(final CommandMessage command, final Channel channel) {\n commandQueue.enqueueFutureResponse(new SimpleCommand(command, channel));\r\n }", "public int sendCommand(String command) throws IOException\n {\n return sendCommand(command, null);\n }", "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "public interface CommandResponse {\n void onSuccess(String response);\n void onFailure(Exception e);\n void onCompleted(int id,int exitCode);\n}", "public interface Command {\n\t public String execute(String[] request);\n}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tthis.sendMessage(Response.WELCOME_MESSAGE);\n\t\t\t// Get new command from client\n\t\t\twhile (true) {\n\t\t\t\tthis.executeCommand();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// If a exception is catch we just close the client connection\n\t\t\ttry {\n\t\t\t\tthis.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\t/// just throw the exception of the close\n\t\t\t\tthrow new RuntimeException(e1);\n\t\t\t}\n\t\t}\n\t}", "boolean processCommand() throws IOException\n\t{\n\t\tString[] commands = in.readLine().split(\" \");\n\t\tif (commands[0].equalsIgnoreCase(\"F\") && isNum(commands[1]) && isNum(commands[2])) {\n\t\t\tprocessFireCmd(new String[] {commands[1], commands[2]});\n\t\t} else if (commands[0].equalsIgnoreCase(\"C\")) {\n\t\t\tprocessChatCmd (Arrays.copyOfRange(commands, 1, commands.length).toString());\n\t\t} else if (commands[0].equalsIgnoreCase(\"D\")) {\n\t\t\tout.println(\"My board: \\n\");\n\t\t\tboard.draw();\n\t\t\tout.println(\"Target's board: \\n\");\n\t\t\ttargets.draw();\n\t\t\tout.flush();\n\t\t} else {\n\t\t\tout.println(\"Unknown command.\");\n\t\t\tout.flush();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public interface Commander {\r\n\t\r\n\t/**\r\n\t * This will issue a command. It returns a receipt for the issuance, not for the other all interaction.\r\n\t * @param commandToIssue The command to issue.\r\n\t * @throws things.thinger.SystemException\r\n\t */\r\n\tpublic Receipt issueCommand(Command\t\tcommandToIssue) throws SystemException;\r\n\t\r\n\t/**\r\n\t * Query the reponse progress a command. It is up to the implementation as to when responses are handled. If they\r\n\t * are not handled in a separate thread, it is possible this call with take time to handle responses. The implementation will\r\n\t * make a best-effort to keep InterruptedExceptions from fouling the process. If it successful, the interruption will propagate\r\n\t * as a simple WARNING level SystemException. If not, you could see anything up to a PANIC.\r\n\t * @param commandReceipt The issuance receipt. \r\n\t * @return A response object.\r\n\t * @throws things.thinger.SystemException\r\n\t */\r\n\tpublic CommandResponse queryResponse(Receipt\tcommandReceipt) throws SystemException;\r\n\t\r\n\t\r\n\t/**\r\n\t * Allow the disposal procecure to run. It is safe to call this any time. It will sweep any DISPOSED responses\r\n\t * from the system, which may build up over time. The CommandResponse implementations may or may not call it.\r\n\t * @throws things.thinger.SystemException\r\n\t */\r\n\tpublic void disposal() throws SystemException;\r\n\t\r\n}", "@Override\n\tpublic void onReceive(Object message) throws Exception {\n\t\tif(message instanceof String){\n\t\t\tSystem.out.println(\"Worker receive: \"+message);\n\n\t\t\tString cmd = (String)message;\n\t\t\t\n\t\t\tString result = Executor.exec(cmd);\n\t\t\tSystem.out.println(\"exec result:\"+result);\n\t\t\t\n\t\t\tActorRef tellActor = getContext().actorOf(Props.create(WorkerTell.class));\n\t\t\ttellActor.tell(cmd, getSelf());\n\t\t\t\n\t\t//\tActorRef sender = getSender();\n\t\t//\tsender.tell(\"result:\"+result, ActorRef.noSender());\n\t\t\t\n\t\t}\n\t}", "public static Command processCommand(final Channel channel, final Command command, long timeout, TimeUnit timeoutTimeUnit) throws IOException, InterruptedException, TimeoutException {\n if (channel == null) {\n throw new IllegalArgumentException(\"channel\");\n }\n\n if (channel.getState() != Session.SessionState.ESTABLISHED) {\n throw new IllegalStateException(\"The channel state must be established\");\n }\n\n if (command == null) {\n throw new IllegalArgumentException(\"command\");\n }\n\n if (command.getId() == null) {\n throw new IllegalArgumentException(\"The command id is mandatory\");\n }\n\n if (command.getStatus() != null) {\n throw new IllegalArgumentException(\"The command status should not be defined\");\n }\n\n final Command[] responseCommand = new Command[1];\n final Semaphore clientChannelSemaphore = new Semaphore(1);\n clientChannelSemaphore.acquire();\n\n CommandChannel.CommandChannelListener listener = new CommandChannel.CommandChannelListener() {\n @Override\n public void onReceiveCommand(Command c) {\n if (command.getId().equals(c.getId())) {\n responseCommand[0] = c;\n clientChannelSemaphore.release();\n }\n }\n };\n channel.addCommandListener(listener, false);\n\n try {\n channel.sendCommand(command);\n if (!clientChannelSemaphore.tryAcquire(1, timeout, timeoutTimeUnit)) {\n throw new TimeoutException(\"The request has timed out\");\n }\n return responseCommand[0];\n } finally {\n channel.removeCommandListener(listener);\n }\n }", "private void standByForMessages() throws IOException {\n if (reader.readLine() != null) {\n try {\n JSONObject j = (JSONObject) jps.parse(reader.readLine());\n sequence = Integer.valueOf(j.get(\"sequence\").toString());\n String cmd = (String) j.get(\"command\");\n JSONArray parameter = (JSONArray) j.get(\"parameter\");\n cmdHandler(parameter, cmd);\n } catch (ParseException ex) {\n }\n }\n }", "public void sendCommands(String command) {\n try {\n printStream.print(command);\n }\n catch (Exception e){\n\n }\n\n\n }", "private void receiveAndDispatchMessage() {\n String response = null;\n try {\n while((response = bufferedReader.readLine()) != null) {\n System.out.println(\"received message from server: \" + response);\n String messageKind = \"\";\n if(response.contains(\":\")) {\n messageKind = response.substring(0, response.indexOf(\":\"));\n } else {\n messageKind = response;\n }\n Bundle bundle = new Bundle();\n bundle.putString(\"response\", response);\n switch (messageKind) {\n case ClientMessageKind.SIGNUPDENIED:\n case ClientMessageKind.SIGNUPOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNUPACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNUPACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.SIGNINDENIED:\n case ClientMessageKind.SIGNINOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNINACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNINACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMDRIVER:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMPASSENGER:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERDEST:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.STARTRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n } else if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.ENDRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERENDSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERENDSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEPASSENGERPROFILEDENIED:\n case ClientMessageKind.UPDATEPASSENGERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEDRIVERPROFILEDENIED:\n case ClientMessageKind.UPDATEDRIVERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n default:\n break;\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void parseCommand(byte command) throws Exception {\r\n\r\n\t switch(command){\r\n\t case Constants.ROTATE_LEFT:\r\n\t rotateLeft();\r\n\t break;\r\n\t case Constants.ROTATE_RIGHT:\r\n\t rotateRight();\r\n\t break;\r\n\t case Constants.MOVE:\r\n\t move();\r\n\t break;\r\n\t default:\r\n\t throw new Exception(\"Invalid signal\");\r\n\t }\r\n\t }", "private void runCmd(String input) {\n CommandDetails cmd = cmdParser.parse(input);\n if (cmd != null) {\n switch (cmd.getAction()) {\n case LIST:\n listAll(cmd.getType());\n break;\n case SEARCH:\n search(cmd);\n break;\n case SEND_HELP:\n sendHelp(cmd);\n break;\n case SEND_USAGE:\n sendUsage(cmd.getType());\n break;\n case EXIT:\n closeStreams();\n break;\n }\n }\n sendMsgToClient(END_TRANSMISSION);\n }", "private synchronized String receiveResponse() {\n\t\t\n\t\tlog.debug(\"Waiting for response from the device.\");\n\t\t\n\t\t//Initialize the buffers\n\t\tStringBuffer recievedData = new StringBuffer();\n\t\tchar currentChar = ' ';\n\n\t\ttry {\n\t\t\tdo {\n\t\t\t\t\n\t\t\t\t//If there are bytes available, read them\n\t\t\t\tif (this.inputStream.available() > 0) {\n\t\t\t\t\t\n\t\t\t\t\t//Append the read byte to the buffer\n\t\t\t\t\tcurrentChar = (char)this.inputStream.read();\n\t\t\t\t\trecievedData.append(currentChar);\n\t\t\t\t}\n\t\t\t} while (currentChar != ASCII_COMMAND_PROMPT); //Continue until we reach a prompt character\n\n\t\t} catch (IOException ioe) {\n\t\t\tlog.error(\"Exception when receiving data from the device:\", ioe);\n\t\t}\n\n\t\tString recievedString = recievedData.toString();\n\t\t\n\t\t//Remove the echoed command if ECHO_COMMAND is true\n\t\tif (echoCommand) {\n\t\t\trecievedString = recievedString.replace(this.lastCommand, \"\");\n\t\t}\n\t\t\n\t\t//Remove extra characters and trim the string\n\t\trecievedString = recievedString.replace(\"\\r\", \"\");\n\t\trecievedString = recievedString.replace(\">\", \"\");\n\t\trecievedString = recievedString.trim();\n\t\n\t\tlog.info(\"Received string from device: \" + recievedString);\n\t\t\n\t\t//Return the received data\n\t\treturn recievedString;\n\t\n\t}", "@Override\n\tpublic void run() {\n\t\twhile (receivingCommands) {\n\t\t\ttry {\n\t\t\t\tCommandHandler commandHandler = new CommandHandler(readNextLine());\n\t\t\t\tswitch (commandHandler.getCommand()) {\n\t\t\t\tcase REGISTER:\n\t\t\t\t\tString username = commandHandler.getParam(1);\n\t\t\t\t\tString password = commandHandler.getParam(2);\n\t\t\t\t\tfileCatalog.register(username, password);\n\t\t\t\t\tbreak;\n\t\t\t\tcase LOGIN:\n\t\t\t\t\tString username1 = commandHandler.getParam(1);\n\t\t\t\t\tString password1 = commandHandler.getParam(2);\n\t\t\t\t\tjwtToken = fileCatalog.login(username1, password1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase LIST:\n\t\t\t\t\tList<? extends FileDTO> files = fileCatalog.list(jwtToken);\n\t\t\t\t\tfor (FileDTO file : files) {\n\t\t\t\t\t\tprintDetails(file);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DETAILS:\n\t\t\t\t\tString fileName = commandHandler.getParam(1);\n\t\t\t\t\tFileDTO file = fileCatalog.details(jwtToken, fileName);\n\t\t\t\t\tprintDetails(file);\n\t\t\t\t\tbreak;\n\t\t\t\tcase UPR:\n\t\t\t\t\tString pathFileToUploadReadOnly = commandHandler.getParam(1);\n\t\t\t\t\tString newFileNameOnServerReadOnly = commandHandler.getParam(2);\n\t\t\t\t\tfileCatalog.upload(jwtToken, newFileNameOnServerReadOnly, false);\n\t\t\t\t\t// TODO\n\t\t\t\t\tbreak;\n\t\t\t\tcase UPW:\n\t\t\t\t\tString pathFileToUpload = commandHandler.getParam(1);\n\t\t\t\t\tString newFileNameOnServer = commandHandler.getParam(2);\n\t\t\t\t\tfileCatalog.upload(jwtToken, newFileNameOnServer, true);\n\t\t\t\t\t// TODO\n\t\t\t\t\tbreak;\n\t\t\t\tcase DOWN:\n\t\t\t\t\tString fileNameToDL = commandHandler.getParam(1);\n\t\t\t\t\tString targetDirectory = commandHandler.getParam(2);\n\t\t\t\t\tString newNameDL = commandHandler.getParam(3);\n\t\t\t\t\tfileCatalog.download(jwtToken, fileNameToDL, targetDirectory, newNameDL);\n\t\t\t\t\t// TODO\n\t\t\t\t\tbreak;\n\t\t\t\tcase DELETE:\n\t\t\t\t\tString fileNameToDelete = commandHandler.getParam(1);\n\t\t\t\t\tfileCatalog.delete(jwtToken, fileNameToDelete);\n\t\t\t\t\t// TODO\n\t\t\t\t\tbreak;\n\t\t\t\tcase LOGOUT:\n\t\t\t\t\tjwtToken = null;\n\t\t\t\t\tsafePrintln(\"You have been logged out.\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase QUIT:\n\t\t\t\t\treceivingCommands = false;\n\t\t\t\t\tsafePrintln(\"Good bye!\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase HELP:\n\t\t\t\t\tfor (Command command : Command.values()) {\n\t\t\t\t\t\tif (command == Command.UNKNOWN) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsafePrintln(command.toString().toLowerCase());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tsafePrintln(\"Unrecognized command.\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tniceErrorPrint(e);\n\t\t\t}\n\t\t}\n\t}", "public String receiveResponse()\n\t{\n\t\t\n\t}", "private boolean analyzeCommand(String line, PrintWriter outputStream)\n\t{\n\t\t\n\t\t\n\t\tint periodIndex =line.indexOf('.');\n\t\tthis.adjustPing(System.currentTimeMillis());\n\t\t\n\t\tif (periodIndex <= 0 || periodIndex == line.length() - 1)\n\t\t{\n\t\t\toutputStream.println(\"Invalid Command: \" + line);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tString command = line.substring(0, periodIndex);\n\t\tString subCommand = line.substring(periodIndex + 1);\n\t\t\n\t\tif (command.equals(\"UID\"))\n\t\t{\n\t\t\tif(verifyUID(subCommand))\n\t\t\t{\n\t\t\t\t//System.out.println(\"Valid uid\");\n\t\t\t\toutputStream.println(\"Valid UID. Accepting client connection.\");\n\t\t\t\treturn true;\n\t\t\t} else\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(command.equals(\"A\"))\n\t\t{\n\t\t\toutputStream.println(\"Thank you for the audio bytes! (Old TCP implementation)\");\n\t\t\t\n\t\t\t//if the number of buffers is > than the ping ratio, play the audio from one buffer\n\t\t\t\n\t\t\t//if the ping is greater than the audio rate, then create a buffer of twice the size and play from there.\n\t\t\treturn true;\n\t\t\t \n\t\t\n\t\t}\n\n\t\tif (command.equals(\"F\"))\n\t\t{\n\t\t\t\n\t\t\tString[] specifications = subCommand.split(this.regex);\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tfloat sampleRate = Float.parseFloat(specifications[0]);\n\t\t\t\tint sampleSizeInBits = Integer.parseInt(specifications[1]);\n\t\t\t\tint channels = Integer.parseInt(specifications[2]);\n\t\t\t\tint frameSize = Integer.parseInt(specifications[3]);\n\t\t\t\tfloat frameRate = Float.parseFloat(specifications[4]);\n\t\t\t\tclientAudioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, sampleRate, sampleSizeInBits, channels, frameSize, frameRate, false);\n\t\t\t\n\t\t\t} catch (NumberFormatException e)\n\t\t\t{\n\t\t\t\t\n\t\t\t\toutputStream.println(\"Invalid number format for one or more audio format specifications\");\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t} catch(ArrayIndexOutOfBoundsException e)\n\t\t\t{\n\t\t\t\t\n\t\t\t\toutputStream.println(\"Invalid number of audio format specifications\");\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (command.equals(\"S\"))\n\t\t{\n\t\t\tString[] specifications = subCommand.split(this.regex);\n\n\t\t\tif (!specifications[0].equals(\"clumpSize\")) {\n\t\t\t\tif (subCommand.equals(\"disconnect\")) {\n\t\t\t\t\t//reset client stuff\n\t\t\t\t\t//System.out.println(\"Closing client connection.\");\n\t\t\t\t\tthis.closeClientConnection();\n\t\t\t\t}\n\n\t\t\t\tif (subCommand.equals(\"close\")) {\n\t\t\t\t\t//closes the server.\n\t\t\t\t\t//System.out.println(\"Closing server.\");\n\t\t\t\t\tthis.closeServer();\n\t\t\t\t}\n\n\t\t\t\tif (subCommand.equals(\"udp\")) {\n\t\t\t\t\t//System.out.println(\"Beginning UDP transition.\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetupUDP(this.portNumber);\n\t\t\t\t\t} catch (SocketException e) {\n\t\t\t\t\t\t//System.out.println(\"Could not open socket\");\n\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (specifications[0].equals(\"clumpSize\")) {\n\t\t\t\t\tint clumpSize = Integer.parseInt(specifications[1]);\n\t\t\t\t\t//System.out.println(\"Setting clump size to : \" + clumpSize);\n\t\t\t\t\tthis.clumpSize = clumpSize;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "@Override\n public void onMessageReceived(@NotNull MessageReceivedEvent event) {\n String message = event.getMessage().getContentRaw().toLowerCase();\n Commands commands = Main.getBOT().getCommands();\n\n // When message is intended for bob, check it\n if (message.startsWith(\"!bob\")) {\n commands.evaluateCommand(message.replace(\"!bob \", \"\"), event);\n } else if (message.contains(\"#blamekall\")) {\n event.getChannel().sendMessage(\"NO! BE NICE! GO TO NAUGHTY JAIL!\").queue();\n event.getChannel().sendMessage(\"https://tenor.com/view/bonk-gif-18805247\").queue();\n }\n\n }", "private void executeCommand(String c) {\n // split command and arguments\n int index = c.indexOf(' ');\n String command = ((index == -1) ? c.toUpperCase() : (c.substring(0, index)).toUpperCase());\n String args = ((index == -1) ? null : c.substring(index + 1));\n\n debugOutput(\"Command: \" + command + \" Args: \" + args);\n\n // dispatcher mechanism for different commands\n switch (command) {\n case \"USER\":\n handleUser(args);\n break;\n\n case \"PASS\":\n handlePass(args);\n break;\n\n case \"CWD\":\n handleCwd(args);\n break;\n\n case \"LIST\":\n handleNlst(args);\n break;\n\n case \"NLST\":\n handleNlst(args);\n break;\n\n case \"PWD\":\n case \"XPWD\":\n handlePwd();\n break;\n\n case \"QUIT\":\n handleQuit();\n break;\n\n case \"PASV\":\n handlePasv();\n break;\n\n case \"EPSV\":\n handleEpsv();\n break;\n\n case \"SYST\":\n handleSyst();\n break;\n\n case \"FEAT\":\n handleFeat();\n break;\n\n case \"PORT\":\n handlePort(args);\n break;\n\n case \"EPRT\":\n handleEPort(args);\n break;\n\n case \"RETR\":\n handleRetr(args);\n break;\n\n case \"MKD\":\n case \"XMKD\":\n handleMkd(args);\n break;\n\n case \"RMD\":\n case \"XRMD\":\n handleRmd(args);\n break;\n\n case \"TYPE\":\n handleType(args);\n break;\n\n case \"STOR\":\n handleStor(args);\n break;\n\n default:\n sendMsgToClient(\"501 Unknown command\");\n break;\n\n }\n\n }", "public Map consoleCommand(String id, String cmd) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"msg\"), new AbstractMap.SimpleEntry<>(\"msg\", cmd));\n\t}", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n if(command.isUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\"))\n printHelp();\n else if (commandWord.equals(\"go\"))\n goRoom(command);\n else if (commandWord.equals(\"quit\"))\n wantToQuit = quit(command);\n\n return wantToQuit;\n }", "private void processCommand(String command) {\n if (command.equals(\"1\")) {\n insertItem();\n } else if (command.equals(\"2\")) {\n removeItem();\n } else if (command.equals(\"3\")) {\n viewList();\n } else if (command.equals(\"4\")) {\n saveToDoList();\n } else if (command.equals(\"5\")) {\n loadToDoList();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }", "@Override\n\tpublic Command handle(Command command) {\n\t\tcommand.getSession().alive();\n\t\tmaster.acceptStatistics(SlaveState.fromByteBuffer(command.getPayLoad()));\n\t\tByteBuffer buffer = ((MasterState)master.gatherStatistics()).toByteBuffer();\n\t\t//logger.info(\"MasterState to bytebuffer size: \" + buffer.limit());\n\t\treturn CommandFactory.createHeartbeatCommand(buffer);\n\t}", "public int sendCommand(IMAPCommand command) throws IOException\n {\n return sendCommand(command, null);\n }", "public void parseCommand(CommandType command) throws ExecutionException, InterruptedException {\n try {\r\n if (lock.isLocked(new UserSingleType(command.event().getMessageAuthor().asUser().get(), command.event().getServer().get()))) {\r\n command.event().getMessage().delete();\r\n return;\r\n } else if(lock.isChLocked(new UserChannelLockType(new UserSingleType(command.event().getMessageAuthor().asUser().get(), command.event().getServer().get()), command.event().getChannel()))){\r\n command.event().getMessage().delete();\r\n return;\r\n }\r\n }catch (Exception ignored){}\r\n if(command.command().startsWith(prefix)) { // to prevent expressions for unrelated messages\r\n command.api().getServerById(command.event().getServer().get().getId()).get();\r\n if (!command.event().getServer().get().hasPermission(command.api().getYourself(), PermissionType.ADMINISTRATOR)) {// Bot permissions check, without administrator access our bot should be not work\r\n command.event().getMessage().reply(\"This bot cannot be work without Administrator permission.\");\r\n return;\r\n }\r\n if (command.command().equals(prefix + commands[0])) commandAction.commandPing(command);\r\n else if (command.command().equals(prefix + commands[1])) commandAction.commandServer(command);\r\n else if (command.command().equals(prefix + commands[2])) commandAction.commandInf(command);\r\n else if (command.command().equals(prefix + commands[3])) commandAction.commandInvite(command);\r\n else if (command.command().equals(prefix + commands[4])) commandAction.commandKick(command);\r\n else if (command.command().equals(prefix + commands[5])) commandAction.commandBan(command);\r\n else if (command.command().equals(prefix + commands[6])) commandAction.commandMute(command);\r\n else if (command.command().equals(prefix + commands[7])) commandAction.commandUnMute(command);\r\n else if (command.command().equals(prefix + commands[8])) commandAction.commandDef(command);\r\n else if (command.command().equals(prefix + commands[9])) commandAction.commandUnDef(command);\r\n else if (command.command().equals(prefix + commands[10])) commandAction.commandWarn(command);\r\n else if (command.command().equals(prefix + commands[11])) commandAction.commandUnWarn(command);\r\n else if (command.command().equals(prefix + commands[12])) commandAction.commandClear(command);\r\n else if (command.command().equals(prefix + commands[13])) commandAction.commandLock(command, lock);\r\n else if (command.command().equals(prefix + commands[14])) commandAction.commandUnlock(command, lock);\r\n else if (command.command().equals(prefix + commands[15])) commandAction.commandDelete(command);\r\n else if (command.command().equals(prefix + commands[16])) commandAction.commandChLock(command, lock);\r\n else if (command.command().equals(prefix + commands[17])) commandAction.commandChUnlock(command, lock);\r\n else if (command.command().equals(prefix + commands[18])) commandAction.commandUnBanAll(command);\r\n else if (command.command().equals(prefix + commands[19])) commandAction.commandUnlockAll(command, lock);\r\n else if (command.command().equals(prefix + commands[20])) commandAction.commandSet(command);\r\n else if (command.command().equals(prefix + commands[21])) commandAction.commandHelp(command);\r\n }\r\n }", "public String exec(String cmd) throws IOException {\n\t\tSocket socket = null;\n\t\ttry {\n\t\t\tsocket = new Socket(host, port);\n\t\t\tInputStream in = socket.getInputStream();\n\t\t\tOutputStream out = socket.getOutputStream();\n\t\t\tProtocolSupport.send(\"host:transport:\" + serial, in, out);\n\n\t\t\tProtocolSupport.send(\"shell:\" + cmd, in, out);\n\t\t\tint i = -1;\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\twhile ((i = in.read()) != -1) {\n\t\t\t\tsb.append((char) i);\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\ttry {\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\tcatch (IOException e1) {\n\t\t\t}\n\t\t\tthrow e;\n\t\t}\n\t}", "public void getCommand() {\n\t\t\n\t\tSystem.out.println(\"Enter a command:\");\n\t\tString Input = reader.nextLine(); //takes the user's input and places it in String Input\n\t\t\n\t\t//in the collection of commands, will run loop once for each item in that collection and \n\t\t//stores the item it is looking in the variable created\n\t\tfor (Commandable command : Commands) { \n\t\t\t\n\t\t\tif (command.matchCommand(Input)) {\n\t\t\t\t\n\t\t\t\tcommand.doCommand();\n\t\t\t\treturn;\t//this ends the method to break out of the loop\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Command not recognized\");\n\t}", "void receive(String watcher) throws ProtocolExecutionException;", "void handle(S state, C command);", "public static Command parseCommand(String response) {\n String[] command = response.split(\" \", 10);\n switch (command[0]) {\n case \"list\":\n return new ListCommand(command);\n case \"done\":\n case \"undo\":\n return new DoneUndoCommand(command);\n case \"remove\":\n return new RemoveCommand(command);\n case \"add\":\n return new AddCommand(command, response);\n case \"bye\":\n return new ByeCommand();\n case \"help\":\n return new HelpCommand();\n case \"find\":\n return new FindCommand(command, response);\n case \"update\":\n return new UpdateCommand(command);\n default:\n System.out.println(\"Im sorry i did not catch that maybe these instructions below will help\"\n + System.lineSeparator() + Interface.lineBreak);\n return new HelpCommand();\n }\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "public void setCommand(String command) {\n this.command = command;\n }" ]
[ "0.69144684", "0.67845315", "0.6592271", "0.65789235", "0.6566341", "0.64904803", "0.64770186", "0.6403634", "0.6336245", "0.63007146", "0.62963897", "0.62372905", "0.6206148", "0.6197626", "0.6167247", "0.6160145", "0.6150256", "0.61293095", "0.61250526", "0.60647994", "0.60581046", "0.60550576", "0.60367686", "0.60244733", "0.5994548", "0.59938943", "0.59575766", "0.5955619", "0.5955372", "0.59468424", "0.5922404", "0.5894649", "0.5882735", "0.587773", "0.5865735", "0.58559966", "0.58545387", "0.58463335", "0.5838675", "0.58255124", "0.58091956", "0.5786877", "0.5786398", "0.5785141", "0.57839054", "0.57811934", "0.57777566", "0.5766526", "0.57606983", "0.5756981", "0.57528293", "0.5749571", "0.5749284", "0.5743848", "0.5733605", "0.57161444", "0.5714393", "0.570423", "0.56975603", "0.5669152", "0.5666826", "0.56381166", "0.56357276", "0.5614351", "0.5613101", "0.5594784", "0.5594627", "0.5591712", "0.55905116", "0.55860555", "0.55802995", "0.55751157", "0.5570999", "0.55619824", "0.55570173", "0.5556306", "0.5544346", "0.5534386", "0.551628", "0.5513447", "0.5507789", "0.5504568", "0.5500623", "0.5494791", "0.54927933", "0.5484658", "0.54835", "0.5483186", "0.54760194", "0.54724187", "0.54718107", "0.54662746", "0.54648215", "0.54644454", "0.546418", "0.5459112", "0.5454064", "0.5451524", "0.54472697", "0.544717" ]
0.6071125
19
Deze methode bevat de cronjob om elke nacht opnieuw uitgevoerd te worden. Deze methode spreekt alle onderliggen methodes aan om de volledige sync uit te voeren Deze methode gaat ook verschillende statistieken naar de databank pushen
public void fullSync() { if (checkboxRepository.findOne(1).isCheckboxState()) { now = LocalDateTime.now(); logger.info("De sync start"); long startTime = System.nanoTime(); try { fillLocalDB.fillDb(); smartschoolSync.ssSync(); } catch (IOException e) { e.getStackTrace(); logger.error("Error bij het uitvoeren van de sync"); } catch (MessagingException e) { logger.error("Error bij het verzenden van een mail tijdens de sync"); } logger.info("De sync is voltooid"); Statistic statistic = statisticRepository.findOne(1); statistic.setAantal(informatService.getTotaalAantalServerErrors()); statisticRepository.save(statistic); informatService.setTotaalAantalServerErrors(0L); long endTime = System.nanoTime(); long duration = (endTime - startTime) / 1000000; //milliseconds Statistic statisticDuration = statisticRepository.findOne(3); statisticDuration.setAantal(duration); statisticRepository.save(statisticDuration); Statistic statisticLastSync = statisticRepository.findOne(4); statisticLastSync.setError(String.valueOf(now)); statisticRepository.save(statisticLastSync); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void cronScheduledProcesses();", "private synchronized void syncData() {\n try {\n // pulling data from server\n pullData();\n\n // pushing local changes to server\n// recordStatus=2\n pushData();\n// recordStatus=1\n// pushData1();\n } catch (Throwable throwable) {\n Log.d(TAG, \"doWork: \" + throwable.getMessage());\n }\n // Toast.makeText(getApplicationContext(), \".\", Toast.LENGTH_SHORT).show();\n }", "void sendScheduledNotifications(JobProgress progress);", "private void scheduleJob() {\n\n }", "public void scheduleJobs();", "@Scheduled(cron = \"0 0 0 * * *\") //for 30 seconds trigger -> 0,30 * * * * * for 12am fires every day -> 0 0 0 * * *\n\tpublic void cronJob() {\n\t\tList<TodayBalance> tb = balanceService.findTodaysBalance();\n\t\tList<TodayBalance> alltb = new ArrayList<TodayBalance>();\n\t\talltb.addAll(tb);\n\t\t\n\t\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.DATE, -1);\n\t\n\t\tif(!alltb.isEmpty()) {\n\t\t\tfor (TodayBalance tbal : alltb ) {\n\t\t\t \n\t\t\t\tClosingBalance c = new ClosingBalance();\n\t\t\t\tc.setCbalance(tbal.getBalance());\n\t\t\t\tc.setDate((cal.getTime()).toString());\n\t\t \n\t\t\t\tclosingRepository.save(c);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }", "public void sync()\n {\n setAutoSync(false);\n // simply send sync command\n super.executionSync(Option.SYNC);\n }", "@Override\npublic void run() {\n\tCalendar oFecha = Calendar.getInstance();\n \n\tint minuto = 25;\n\t\n\tSystem.out.println(\n\t\t\toFecha.getTime().toLocaleString() + \n\t\t\t\" MinJob trigged by scheduler - \" + minuto );\n\t\n\ttry {\n\t\tSystem.out.println(Configuracion.getInstance().getProperty(\"clave\") );\n\t} catch(Exception e) {\n\t\te.printStackTrace();\n\t}\n\t\n\tif (oFecha.get(Calendar.MINUTE) == minuto)\t\n\t\tHourlyJob.realizarBackup();\n \n }", "@Scheduled(fixedRateString = \"PT120M\")\n\tvoid someJob(){\n//\t\tString s = \"Testing message.\\nNow time is : \"+new Date();\n////\t\tSystem.out.println(s);\n//\t\tPushNotificationOptions.sendMessageToAllUsers(s);\n//\n\t\t//get all schedules in current dayOfWeek\n\t\tCollection<Notification> notifications = notificationService.findAllByDayOfWeekAndTime();\n\t\tfor(Notification notification : notifications){\n//\t\t\tSystem.out.println(notification.toString());\n//\t\t\tSystem.out.println(!notification.getStatus());\n////\t\t\tSystem.out.println(check(notification.getStartTime()));\n//\t\t\t//check for already not sent notifications , also check for time difference < TIME_CONSTANT\n//\t\t\tif(!notification.getStatus() && check(notification.getStartTime())){\n//\t\t\t\t//send push notification\n//\t\t\t\tPushNotificationOptions.sendMessageToAllUsers(notification.getMessage());\n//\t\t\t\t//mark the notification as sent\n//\t\t\t\tnotificationService.setStatus(notification.getNotificationId());\n//\t\t\t}\n\t\t\tif(checkForDayTime()){\n\t\t\t\tPushNotificationOptions.sendMessageToAllUsers(notification.getMessage());\n\t\t\t\tnotificationService.setStatus(notification.getNotificationId());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n if(switchesSubsystem.readyToFire()) {\n \t\tSmartDashboard.putString(\"DB/String \"+0, \"ready to fire\");\n \t} else {\n \t\tSmartDashboard.putString(\"DB/String \"+0, \"reloading\");\n \t}\n \n SmartDashboard.putString(\"DB/String \"+1, \"Wound switch: \" + switchesSubsystem.isBarDown());\n \tSmartDashboard.putString(\"DB/String \"+2, \"Taut switch: \" + switchesSubsystem.isTaut());\n \tSmartDashboard.putString(\"DB/String \"+3, \"Fired switch: \" + switchesSubsystem.isLauncherFired());\n }", "public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tOI.refreshAll();\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "public void run() {\n String query = \"INSERT INTO CustomData (Server, Plugin, ColumnID, DataPoint, Updated) VALUES\";\n int currentSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // Iterate through each column\n for (Map.Entry<Column, Integer> entry : customData.entrySet()) {\n Column column = entry.getKey();\n int value = entry.getValue();\n\n // append the query\n query += \" (\" + server.getId() + \", \" + plugin.getId() + \", \" + column.getId() + \", \" + value + \", \" + currentSeconds + \"),\";\n }\n\n // Remove the last comma\n query = query.substring(0, query.length() - 1);\n\n // add the duplicate key entry\n query += \" ON DUPLICATE KEY UPDATE DataPoint = VALUES(DataPoint) , Updated = VALUES(Updated)\";\n\n // queue the query\n new RawQuery(mcstats, query).save();\n }", "@Scheduled\n\tpublic void executeNotification();", "@Override\r\n public void syncExecute(String script)\r\n {\n\r\n }", "public static void dispatchSyncNow(Context context) {\n FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(context));\n Job syncJob = dispatcher.newJobBuilder()\n .setTag(SYNC_TAG)\n .setService(FirebaseSyncJobService.class)\n .setTrigger(Trigger.NOW)\n .setRecurring(false)\n .setReplaceCurrent(true)\n .setLifetime(Lifetime.UNTIL_NEXT_BOOT)\n .addConstraint(Constraint.ON_ANY_NETWORK)\n .build();\n dispatcher.mustSchedule(syncJob);\n Log.d(LOG_TAG, \"Sync job dispatched\");\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }", "static void scheduleWeatherSync(@NonNull final Context context) {\n Driver driver = new GooglePlayDriver(context);\n FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(driver);\n\n Job syncJob = dispatcher.newJobBuilder()\n .setService(FirebaseJobService.class)\n .setTag(SYNC_TAG)\n .setConstraints(Constraint.ON_ANY_NETWORK)\n .setLifetime(Lifetime.FOREVER) // set how long this sync job persists\n .setRecurring(true)\n .setTrigger(Trigger.executionWindow(\n SYNC_INTERVAL_SEC,\n SYNC_INTERVAL_SEC + SYNC_FLEXTIME_SEC\n ))\n .setReplaceCurrent(true)\n .build();\n\n dispatcher.schedule(syncJob);\n\n }", "@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }", "public static void rosterSync() {\n\n Connection con = null; // init DB objects\n Connection con2 = null; // init DB objects\n PreparedStatement pstmt2 = null;\n Statement stmt = null;\n Statement stmt2 = null;\n ResultSet rs = null;\n ResultSet rs2 = null;\n\n String errorMsg = \"Error in Common_sync.rosterSync: \";\n\n String emailMsgAll = \"Roster Sync Results: \\n\\n\";\n\n\n boolean failed = false;\n boolean changed = false;\n boolean skip = false;\n\n int result = 0;\n int clubCount = 0;\n\n //\n // This must be the master server!!! If not, let the timer run in case master goes down.\n //\n if (Common_Server.SERVER_ID == TIMER_SERVER) {\n\n //\n // Load the JDBC Driver and connect to DB\n //\n String club = rev; // get v_ db name\n\n try {\n con2 = dbConn.Connect(club);\n\n }\n catch (Exception exc) {\n return;\n }\n\n try {\n //\n // Search through each club in the system and look for a corresponding file\n //\n stmt2 = con2.createStatement(); // create a statement\n\n rs2 = stmt2.executeQuery(\"SELECT clubname FROM clubs\");\n\n while (rs2.next()) {\n\n club = rs2.getString(1); // get a club name\n\n con = dbConn.Connect(club); // get a connection to this club's db\n\n //\n // Init the rsync flag for ALL clubs so only those that actually still use RSync will be set.\n //\n try {\n\n stmt = con.createStatement(); // create a statement\n\n stmt.executeUpdate(\"UPDATE club5 SET rsync = 0\");\n\n stmt.close();\n\n }\n catch (Exception exc) {\n }\n\n //\n // Do custom processing for clubs that do not use RS\n //\n if (club.equals(\"tualatincc\")) { // Tualatin CC\n\n checkTualatin(con); // check birth dates for mtypes (Juniors) - no rsoter sync\n\n } else if (club.equals(\"interlachen\")) { // Interlachen CC\n\n checkInterlachen(con); // check birth dates for mtypes (Juniors) - no roster sync\n\n } else if (club.equals(\"mountvernoncc\")) { // Mount Vernon CC\n\n checkMountVernon(con); // check birth dates for mtypes (Juniors) - no roster sync\n\n } else if (club.equals(\"hyperion\")) { // Hyperion Field Club\n\n checkHyperion(con); // check birth dates for mtypes (Juniors) - no roster sync\n\n } else if (club.equals(\"tahoedonner\")) {\n\n checkTahoeDonner(con); // check birth dates for mtypes (Juniors) - no roster sync\n\n } else {\n\n //\n // Go process this club\n //\n result = clubSync(club, con);\n\n if (result == 0) {\n //emailMsgAll = emailMsgAll + \"Roster Not Found for: \" + club + \"\\n\\n\";\n } else if (result == 1) {\n emailMsgAll += \"Roster Found for: \" + club + \"\\n\\n\";\n clubCount++;\n } else if (result == -1) {\n //emailMsgAll += \"Roster Sync Failed for: \" + club + \"\\n\\n\";\n }\n\n }\n\n con.close(); // return/close the connection\n\n } // end of WHILE clubs\n\n stmt2.close(); // close the stmt\n\n }\n catch (Exception exc) {\n\n errorMsg = errorMsg + \" Error getting club db for \" +club+ \", \" + exc.getMessage(); // build msg\n SystemUtils.logError(errorMsg); // log it\n }\n\n }\n\n //\n // Reset the Roster Sync Timer for next night\n //\n TimerSync sync_timer = new TimerSync();\n\n try {\n\n if (con != null) {\n\n con.close(); // return/close the connection\n }\n }\n catch (SQLException e) {\n }\n\n try {\n\n if (con2 != null) {\n\n con2.close(); // return/close the connection\n }\n }\n catch (SQLException e) {\n }\n\n //\n // Send an email to our support if any clubs were processed\n //\n if (Common_Server.SERVER_ID == TIMER_SERVER && clubCount > 0) {\n\n try {\n\n Properties properties = new Properties();\n properties.put(\"mail.smtp.host\", host); // set outbound host address\n properties.put(\"mail.smtp.port\", port); // set outbound port\n properties.put(\"mail.smtp.auth\", \"true\"); // set 'use authentication'\n\n Session mailSess = Session.getInstance(properties, SystemUtils.getAuthenticator()); // get session properties\n\n MimeMessage message = new MimeMessage(mailSess);\n\n message.setFrom(new InternetAddress(efrom)); // set from addr\n\n message.setSubject( \"ForeTees Roster Sync Report: \" +clubCount+ \" Clubs\" ); // set subject line\n message.setSentDate(new java.util.Date()); // set date/time sent\n\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(emailFT)); // set our support email addr\n\n message.setText( emailMsgAll ); // put msg in email text area\n\n Transport.send(message); // send it!!\n\n }\n catch (Exception ignore) {\n }\n }\n\n }", "void cronTrimActivityQueue();", "@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "public void sync() {\n new Thread(new Runnable() {\n public void run() {\n\n try {\n syncWeatherData();\n } catch (IOException e) {\n Log.i(\"sync\", \"error syncing weather data\");\n e.printStackTrace();\n }\n try {\n syncEnergyData();\n } catch (IOException e) {\n Log.i(\"sync\", \"error syncing energy data\");\n e.printStackTrace();\n }\n\n Date now = new Date();\n lastUpdated = now.getTime();\n SharedPreferences sharedPref = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor e = sharedPref.edit();\n e.putLong(\"lastUpdated\", lastUpdated);\n e.commit();\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n df.setTimeZone(SimpleTimeZone.getTimeZone(\"US/Central\"));\n\n Log.i(\"sync\", \"consumption \" + getLiveDemand());\n Log.i(\"sync\", \"windmill1 \" + getLiveProduction(1));\n Log.i(\"sync\", \"temp \" + getCurrentTemperature());\n Log.i(\"sync\", \"wind \" + getCurrentWindSpeed());\n }\n }).start();\n\n }", "public static void dispatchScheduledSync(Context context) {\n FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(context));\n Job syncJob = dispatcher.newJobBuilder()\n .setTag(SYNC_TAG_SCHEDULED)\n .setService(FirebaseSyncJobService.class)\n .setTrigger(Trigger.NOW)\n .setRecurring(false)\n .setReplaceCurrent(true)\n .setLifetime(Lifetime.UNTIL_NEXT_BOOT)\n .addConstraint(Constraint.ON_ANY_NETWORK)\n .build();\n dispatcher.mustSchedule(syncJob);\n Log.d(LOG_TAG, \"Recurring sync job dispatched\");\n }", "public static void scheduleJob() {\n Set<JobRequest> jobRequests = JobManager.instance().getAllJobRequestsForTag(MobssJob.TAG);\n if (!jobRequests.isEmpty()) {\n return;\n }\n\n new JobRequest.Builder(MobssJob.TAG)\n .setPeriodic(AlarmManager.INTERVAL_DAY)\n .setUpdateCurrent(true) // cancel any preexisting job with the same tag while being scheduled.\n// .setRequiredNetworkType(JobRequest.NetworkType.CONNECTED) // since the sync service needs network connection\n// .setRequirementsEnforced(true) // makes sure that all the requirements are met before starting the sync service, if at least one of the requirements is not met then the sync service will be rescheduled and not run\n .build()\n .schedule();\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n log();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void teleopPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "@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 }", "@Scheduled(cron = \"0 * * * * *\")\r\n\tpublic void run() {\r\n\r\n\t\tString[] emailArray = new String[emailRecipientList.size()];\r\n\t\temailArray = emailRecipientList.toArray(emailArray);\r\n\t\tLOGGER.debug(\"Sending a email to \" + emailArray);\r\n //Current time\r\n\t\tLocalDateTime now = LocalDateTime.now();\r\n\t\t//Current time - 1 hour\r\n\t\tLocalDateTime after = LocalDateTime.now().minusHours(1);\r\n\r\n\t\tTimestamp dateCreatedBefore = Timestamp.valueOf(now);\r\n\t\tTimestamp dateCreatedAfter = Timestamp.valueOf(after);\r\n\t\t// Search for file id's added for the last hour \r\n\t\tList<Long> ids = infoDataService.searchFileId(null, null, \r\n\t\t\t\tdateCreatedBefore, dateCreatedAfter, null, null,null);\r\n\t\t// Create a email body \r\n\t\tStringBuffer emailBody =new StringBuffer();\r\n\t\temailBody.append(\"New Files Uploaded:\");\r\n for(Long id : ids) {\r\n \ttry {\r\n \t FileInfo metaData = infoDataService.findRecordById(id);\r\n \t emailBody.append(System.lineSeparator());\r\n \t emailBody.append(\"*******************************************************\");\r\n \t emailBody.append(System.lineSeparator());\r\n \t emailBody.append(\"ID:\"+metaData.getId());\r\n \t emailBody.append(\", ORIGINAL NAME: \"+metaData.getFileName());\r\n \t Long size = metaData.getSize()/1000;\r\n \t emailBody.append(\", SIZE (KB):\"+size);\r\n \t emailBody.append((metaData.getPublicAccess())?\", PUBLIC ACCESS: true\":\" , PUBLIC ACCESS: false\");\r\n \t emailBody.append(\", TIME UPLOADED:\"+metaData.getUploadedTs().toLocalDateTime());\r\n \t emailBody.append(System.lineSeparator());\r\n \t}\r\n \tcatch(Exception e) {\r\n \t\temailBody.append(Utilities.NO_DATA_FOR_ID+id); \t\t\r\n \t}\r\n }\r\n // Sending a scheduled email \r\n SimpleMailMessage msg = new SimpleMailMessage();\r\n\t\tmsg.setTo(emailArray);\r\n\t\tmsg.setSubject(Utilities.SCHEDULER_SUBJECT);\r\n\t\tmsg.setText(emailBody.toString());\r\n\t\tmsg.setFrom(emailSender);\r\n\r\n\t\t// TODO\r\n\t\t// Uncomment the next line after adding a correct credentials to the\r\n\t\t// application.properies file\r\n\t\t// javaMailSender.send(msg);\r\n\r\n\t}", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }", "@Override\n public void callSync() {\n\n }", "void event(long t) {\n\r\n \r\n\r\n Job temp;\r\n if (this.TempListMigrating.front != null) { //if there are any new migrating tasks\r\n TempListMigrating.insertionSortIdentifier(this.TempListMigrating.front); //order the TempList, from smallest-largest\r\n\r\n while (this.TempListMigrating.front != null) {\r\n //TempList.calculateD(t);\r\n temp = TempListMigrating.remove();\r\n int assignedProcessor = this.getNextProcessor(temp);\r\n\r\n //add this task to the processor\r\n this.servers[this.Tasks[temp.identifier].index[assignedProcessor]].addToMigratingPool(temp);\r\n\r\n }\r\n }\r\n\r\n while (this.TempListFixed.front != null) {\r\n\r\n temp = TempListFixed.remove();\r\n this.servers[this.Tasks[temp.identifier].index[0]].pool.insertionSortDeadline(temp, t);\r\n\r\n }\r\n\r\n //add things to the processor now\r\n for (int i = 0; i < numProcessors; i++) {\r\n\r\n if (this.servers[i].executing.top != null) { //not empty, there is a job present\r\n //check for migrating tasks\r\n if (this.servers[i].migratingPool.front != null) {\r\n //there are migrating Tasks, and something on the stack\r\n if (this.Tasks[this.servers[i].executing.top.identifier].numMigrations < 2 || this.Tasks[this.servers[i].executing.top.identifier].fixed == true) { //executing is a fixed task\r\n if (servers[i].migratingPool.front != null) {\r\n //switch\r\n temp = servers[i].executing.top;\r\n servers[i].executing.top = servers[i].migratingPool.remove();\r\n servers[i].pool.insertionSortDeadline(temp, t);\r\n this.preemptions++;\r\n\r\n }\r\n } //if both migrating tasks\r\n else if (this.servers[i].migratingPool.front.identifier < servers[i].executing.top.identifier) {\r\n temp = servers[i].migratingPool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n this.preemptions++;\r\n }\r\n } else if (this.servers[i].pool.front != null)//check for fixed tasks\r\n {\r\n if (this.servers[i].pool.front.deadline < servers[i].executing.top.deadline) {\r\n temp = servers[i].pool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n this.preemptions++;\r\n }\r\n }\r\n\r\n } else if (this.servers[i].migratingPool.front != null) //it was empty, add now migrating\r\n {\r\n temp = servers[i].migratingPool.remove();\r\n servers[i].executing.top=temp;\r\n \r\n \r\n\r\n } else if (this.servers[i].pool.front != null) //executing was empty, and migratingPool was empty, add from fixed list\r\n {\r\n\r\n temp = servers[i].pool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n }\r\n\r\n }\r\n }", "@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "public void teleopPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n public void autonomousPeriodic() {\n teleopPeriodic();\n //Scheduler.getInstance().run();\n }", "@Override\n public void execute(JobExecutionContext context) {\n\n JobDataMap dataMap = context.getJobDetail().getJobDataMap();\n\n Long dataSourceId = dataMap.getLong(DataVinesConstants.DATASOURCE_ID);\n\n LocalDateTime scheduleTime = DateUtils.date2LocalDateTime(context.getScheduledFireTime());\n LocalDateTime fireTime = DateUtils.date2LocalDateTime(context.getFireTime());\n\n logger.info(\"scheduled fire time :{}, fire time :{}, dataSource id :{}\", scheduleTime, fireTime, dataSourceId);\n logger.info(\"scheduled start work , dataSource id :{} \", dataSourceId);\n\n CatalogMetaDataFetchTaskService catalogMetaDataFetchTaskService = getJobExternalService().getCatalogTaskService();\n CatalogRefresh catalogRefresh = new CatalogRefresh();\n catalogRefresh.setDatasourceId(dataSourceId);\n\n DataSource dataSource = getJobExternalService().getDataSourceService().getDataSourceById(dataSourceId);\n if (dataSource == null) {\n logger.warn(\"dataSource {} is null\", dataSourceId);\n return;\n }\n\n catalogMetaDataFetchTaskService.refreshCatalog(catalogRefresh);\n }", "@Override\n public void run() {\n ShellResponse response =\n getNodeManager().nodeCommand(NodeManager.NodeCommandType.Configure, taskParams());\n processShellResponse(response);\n\n if (taskParams().type == UpgradeUniverse.UpgradeTaskType.Everything\n && !taskParams().updateMasterAddrsOnly) {\n // Check cronjob status if installing software.\n response = getNodeManager().nodeCommand(NodeManager.NodeCommandType.CronCheck, taskParams());\n\n // Create an alert if the cronjobs failed to be created on this node.\n if (response.code != 0) {\n Universe universe = Universe.getOrBadRequest(taskParams().universeUUID);\n Customer cust = Customer.get(universe.customerId);\n String alertErrCode = \"CRON_CREATION_FAILURE\";\n String nodeName = taskParams().nodeName;\n String alertMsg =\n \"Universe %s was successfully created but failed to \"\n + \"create cronjobs on some nodes (%s)\";\n\n // Persist node cronjob status into the DB.\n UniverseUpdater updater =\n new UniverseUpdater() {\n @Override\n public void run(Universe universe) {\n UniverseDefinitionTaskParams universeDetails = universe.getUniverseDetails();\n NodeDetails node = universe.getNode(nodeName);\n node.cronsActive = false;\n LOG.info(\n \"Updated \"\n + nodeName\n + \" cronjob status to inactive from universe \"\n + taskParams().universeUUID);\n }\n };\n saveUniverseDetails(updater);\n\n // Create new alert or update existing alert with current node name if alert already exists.\n if (Alert.exists(alertErrCode, universe.universeUUID)) {\n Alert cronAlert = Alert.list(cust.uuid, alertErrCode, universe.universeUUID).get(0);\n List<String> failedNodesList =\n universe\n .getNodes()\n .stream()\n .map(nodeDetail -> nodeDetail.nodeName)\n .collect(Collectors.toList());\n String failedNodesString = String.join(\", \", failedNodesList);\n cronAlert.update(String.format(alertMsg, universe.name, failedNodesString));\n } else {\n Alert.create(\n cust.uuid,\n universe.universeUUID,\n Alert.TargetType.UniverseType,\n alertErrCode,\n \"Warning\",\n String.format(alertMsg, universe.name, nodeName));\n }\n }\n\n // We set the node state to SoftwareInstalled when configuration type is Everything.\n // TODO: Why is upgrade task type used to map to node state update?\n setNodeState(NodeDetails.NodeState.SoftwareInstalled);\n }\n }", "private static \tvoid schedule(IMirror mirror) throws SchedulerException, ParseException {\n\n String mirrorID = \"none\";\n\t\ttry {\n\t\t\tmirrorID = mirror.getMirrorID();\n\t \n\t\t} catch (ConfigException e) {\n\t\t\tlogger.error(\"At this point the mirror must have a mirrorID which it has not: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tString jobNameAKAMirrorID = mirrorID;\n\t\tString downloaderGroupName = DOWNLOADER;\n\t\tString diffGeneratorGroupName = DIFF_GENERATOR;\n\t\tString deltaGeneratorGroupName = DELTA_GENERATOR;\n\t\t\n\t\t/*\n\t\t * DELTA job\n\t\t */\n\t\tJobDetail deltaJobDetail = new JobDetail(jobNameAKAMirrorID,\n\t\t\t\t\t\t\t\tdeltaGeneratorGroupName, // default group\n\t\t\t\t\t\t\t\tDOMDeltaGeneratorJob.class); // the diff job\n\t\t\n\t\t/*\n\t\t * DIFF job\n\t\t */\n\t\tJobDetail diffJobDetail = new JobDetail(jobNameAKAMirrorID,\n\t\t\t\t\t\t\t\tdiffGeneratorGroupName, // default group\n\t\t\t\t\t\t\t\tDOMDiffGeneratorJob.class); // the diff job\n\t\t\n\t\t/*\n\t\t * DOWNLOADER job\n\t\t * This job is the point of entry in the workflow.\n\t\t * It needs to know about the 2 jobs which are next (see above).\n\t\t */\n\t\tJobDetail jobDetail = new JobDetail(jobNameAKAMirrorID, downloaderGroupName,\n\t\t\t\t\t\t\t\t\tDownloaderJob.class); // the job\n\t\t\n\t\tjobDetail.getJobDataMap().put(MIRROR, mirror);\n\t\tjobDetail.getJobDataMap().put(DELTA_GENERATOR, deltaJobDetail);\n\t\tjobDetail.getJobDataMap().put(DIFF_GENERATOR, diffJobDetail);\n\t\t\n\t\tCronTrigger trigger = new CronTrigger(\"CronTrigger for \" + mirror,\n\t\t\t\t\t\t\t\t\tdownloaderGroupName, jobNameAKAMirrorID, downloaderGroupName,\n\t\t\t\t\t\t\t\t\tmirror.getCronExpression() );\n\t\t// TODO remove below!\n\t\t//Trigger trigger = TriggerUtils.makeMinutelyTrigger(intervalHours);\n\t\t//Trigger trigger = TriggerUtils.makeHourlyTrigger(intervalHours);\n\t\ttrigger.setStartTime(new java.util.Date());\n\t\ttrigger.setName(\"Download Job for \" + mirror);\n\t\tsched.scheduleJob(jobDetail, trigger);\n\t\t\n\t\tlogger.info(\"Scheduled job for \" + mirror \n\t\t\t\t+ \" with cron expression '\" + mirror.getCronExpression() + \"'\");\n\t\t\n\t}", "protected void beforeJobExecution() {\n\t}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "private synchronized void performOperations() {\r\n\t\ttry {\r\n\t\t\tswitch (operationStatus) {\r\n\t\t\tcase TRUNCATE_DATA:\r\n\t\t\t\tHibernateUtil.rawQuery(\"TRUNCATE csv;\");\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\tcase APPEND_DATA:\r\n\t\t\t\tparseData(false);\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase UPDATE_DATA:\r\n\t\t\t\tparseData(true);\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase ARRANGE_DATA:\r\n\t\t\t\tarrangeData();\r\n\t\t\t\tif (DEBUG) {\r\n\t\t\t\t\tUtil.writeLog(toString());\r\n\t\t\t\t\tLogger.getLogger(Scheduler.class.getName()).log(Level.INFO, toString());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\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}", "@Override\n public void teleopPeriodic() {\n }", "@Override\n public void teleopPeriodic() {\n }", "@Override\r\n\tpublic void processWorkload() {\n this.spawnUser(periods.get(0).getPeriodStartTimePoint());\t\r\n\t}", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n drive.updateTeleop();\n sensor.updateTeleop();\n }", "Boolean autoSync();", "public void initAlgorithm() {\n executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 1, 5,TimeUnit.MINUTES);\n// executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 2, 10,TimeUnit.SECONDS);\n\n // every day perform random thought dice roll\n // also roll for random time: 10am - 9pm\n Cron4j.scheduler.schedule(Cron4j.EVERY_DAY_AT_10_AM, () -> {\n int produceThoughtDice = (int) (Math.random() * 3); // 66% yes, 33% no\n if (produceThoughtDice < 2) {\n int timeShift = (int) (Math.random() * 12); // 0-11\n executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, timeShift, TimeUnit.HOURS);\n } else {\n System.out.println(\"Thought not produced today because of the dice: \" + produceThoughtDice);\n }\n });\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n// executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, 0, TimeUnit.SECONDS);\n// });\n\n // every week perform a statistical overview\n // should be not very long and with a lot of variations\n Cron4j.scheduler.schedule(Cron4j.EVERY_WEEK_SUNDAY_18_PM, () -> {\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n executor.schedule(scheduledThoughtsProducer::periodicalWeeklyThoughts, 0, TimeUnit.SECONDS);\n });\n\n // start the scheduler\n Cron4j.scheduler.start();\n }", "@Scheduled(cron = \"0 0 0 * * ?\")\n\tpublic void callPurger() {\n\t\tlogger.info(\"Planner::callPurger [START]\");\n\n\t\t//call purger\n\t\tpurger.purgeDatabase();\n\n\t\tlogger.info(\"Planner::callPurger [END]\");\n\t}", "public static void sync(Run runnable) {\n\t\tnew BukkitRunnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\trunnable.run();\n\t\t\t}\n\t\t}.runTask(AreaShop.getInstance());\n\t}", "@Scheduled(cron = \"0 0 9-17 * * MON-FRI\")\n\tpublic void scheduleTaskWeekly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 9 - 17 O'clock Every Weekdays - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "private void startSubmitting() {\n final Runnable submitTask = () -> {\n if (!plugin.isEnabled()) { // Plugin was disabled\n scheduler.shutdown();\n return;\n }\n // Nevertheless we want our code to run in the Nukkit main thread, so we have to use the Nukkit scheduler\n // Don't be afraid! The connection to the bStats server is still async, only the stats collection is sync ;)\n Server.getInstance().getScheduler().scheduleTask(plugin, this::submitData);\n };\n \n // Many servers tend to restart at a fixed time at xx:00 which causes an uneven distribution of requests on the\n // bStats backend. To circumvent this problem, we introduce some randomness into the initial and second delay.\n // WARNING: You must not modify and part of this Metrics class, including the submit delay or frequency!\n // WARNING: Modifying this code will get your plugin banned on bStats. Just don't do it!\n long initialDelay = (long) (1000 * 60 * (3 + Math.random() * 3));\n long secondDelay = (long) (1000 * 60 * (Math.random() * 30));\n scheduler.schedule(submitTask, initialDelay, TimeUnit.MILLISECONDS);\n scheduler.scheduleAtFixedRate(submitTask, initialDelay + secondDelay, 1000 * 60 * 30, TimeUnit.MILLISECONDS);\n }", "@Scheduled(cron = \"0 0/30 8-9 * * *\")\n\tpublic void scheduleTaskCustomHourly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 8:00, 8:30, 9:00, 9:30 O'clock Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Override\n public void addTasksToRun() {\n //gets the tasks that are ready for execution from the list with new tasks\n List<Task> collect = tasks.stream().filter((task) -> (task.getDate() == TIME))\n .collect(Collectors.toList());\n //sort the tasks inserted. The sort is based in \"priority\" value for all the tasks.\n collect.sort(new Comparator<Task>() {\n @Override\n public int compare(Task o1, Task o2) {\n return o1.getPriority() - o2.getPriority();\n }\n });\n //Change the status of tasks for READY\n collect.stream().forEach((task) -> {\n task.setStatus(Task.STATUS_READY);\n });\n //Adds the tasks to the queue of execution\n tasksScheduler.addAll(collect);\n\n //Removes it from list of new tasks\n tasks.removeAll(collect);\n }", "public static void main(String[] args) {\n\t SimpleDateFormat DateFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\"); \n\t Date d = new Date(); \n\t String returnstr = DateFormat.format(d); \n\t \n\t QuartzPush job = new QuartzPush(); \n\t String job_name =\"11\"; \n\t try {\n\t\t\t\tSystem.out.println(\"★★★★★★★★★★★ \"+\"The QuartzPush Strat,Date is \" +returnstr +\" ★★★★★★★★★★★\");\n\t\t\t\tClass jobClass = Class.forName(\"com.tinytree.job.QuartzPush\");\n\t\t\t\tMap<String ,Object> map = new HashMap<>();\n\t\t\t\tmap.put(\"name\",\"testname\");\n\t\t\t\tmap.put(\"jobName\",\"testname\");\n\t\t\t\tmap.put(\"jobGroup\",\"group\");\n\t\t\t\tmap.put(\"group\",\"group\");\n\t\t\t\tmap.put(\"jobClass\",\"com.tinytree.job.QuartzPush\");\n\t\t\t\t//String cronExpression = \"0 37 16 ? * *\";\n\t\t\t\tString cronExpression = \"0/10 * * * * ?\";//\"0 37 16 ? * *\"\n\t\t\t\tmap.put(\"cronExpression\",cronExpression);\n\n\t QuartzManager.addJob(map);\n\n\t \n\t } catch (Exception e) { \n\t e.printStackTrace(); \n\t } \n\t }", "@Override\n\tpublic void teleopPeriodic() {\n\t}", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "@Override\r\n\tpublic void startCron() {\n\t\tlog.info(\"Start Schedule Manager.\");\r\n\t\tmainThread = new Thread(new Runnable() {\r\n\t\t\t\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tmainThread.start();\r\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic void execute() throws BuildException {\n // Create a new build listener for parsing events\n Connection conn = getConnection();\n DbProgressListener listener = new DbProgressListener(conn, buildId, getProgressTargets(), dbTable);\n\n // Add the event listeners to the project\n project.addBuildListener(listener);\n\n // Add a thread to poll the database\n if (pollingEnabled) {\n polling = new DbStatusThread(conn);\n polling.setInterval(pollingInterval * 1000);\n polling.start();\n }\n }", "SyncStart createSyncStart();", "@Scheduled(cron = \"0 05 12 ? * 1-7\")\n @Async\n protected void updateLaPrimeraQuinelaResults() throws IOException {\n LotteryResult lotteryResult = laPrimeraService.updateLaPrimeraQuinielaResults(null);\n String result = lotteryResult == null ? \"failed\" : lotteryResult.toString();\n String msj = \"updateLaPrimeraQuinelaResults job executed with result: \".concat(result);\n if (result.equals(\"failed\")) {\n LOGGER.error(msj);\n } else {\n LOGGER.info(msj);\n }\n }", "protected void runEachMinute() {\n \n }", "private void runPeriodic() {\n boolean ok = ScheduledFutureTask.super.runAndReset();\n boolean down = isShutdown();\n // Reschedule if not cancelled and not shutdown or policy allows\n if (ok && !down) {\n updateNextExecutionTime();\n MeasurableScheduler.super.getQueue().add(this);\n }\n // This might have been the final executed delayed\n // task. Wake up threads to check.\n else if (down)\n interruptIdleWorkers();\n }", "@Override\n public void run() {\n addDelay();\n\n AppDatabase appDatabase = AppDatabase.getInstance(appContext, executors);\n\n List<WeatherEntry> weathers = DataGenerator.generateWeathers();\n\n Log.d(TAG, \"Codelab AppDatabase insertAll - begin\");\n\n insertAll(appDatabase, weathers);\n\n // notify that the database was created and it's ready to be used\n appDatabase.setDatabaseCreated();\n }", "public void doExecute(JobExecutionContext context) {\n\t\tSimpleDateFormat format=new SimpleDateFormat(\"yyyy-MM-dd\");\n String endDate=DateHelper.upDate(new Date(), DateHelper.CONST_PARSE_DATETIME).substring(0, 10);\n String beginDate=\"\";\n Map timeMap=null;\n List gsclist=DbUp.upTable(\"gc_subordinate_count\").dataQuery(\"create_time\", \" create_time desc \",\"\", null,0,1);\n if(gsclist!=null&&gsclist.size()>0){\n \ttimeMap=(Map) gsclist.get(0);\n }\n\n if(timeMap==null||timeMap.get(\"create_time\")==null){\n \tMap map=DbUp.upTable(\"gc_member_relation\").dataQuery(\"create_time\", \" create_time \", \"\", null,0,1).get(0);\n \tif(map!=null&&map.get(\"create_time\")!=null){\n \t\tbeginDate=map.get(\"create_time\").toString();\n \t\t\n \t}\n }\n else{\n \tbeginDate=timeMap.get(\"create_time\").toString();\n \tCalendar begin=Calendar.getInstance();\n \t\ttry {\n\t\t\t\tbegin.setTime(format.parse(beginDate));\n\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}\n \t\tbegin.add(Calendar.DAY_OF_MONTH, 1);\n \t\tbeginDate=DateHelper.upDate(begin.getTime());\n }\n beginDate=beginDate.substring(0, 10);\n \n Calendar start = Calendar.getInstance();\n Calendar end = Calendar.getInstance();\n try {\n\t\t\tstart.setTime(format.parse(beginDate));\n\t\t\tend.setTime(format.parse(endDate));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n while(start.before(end))\n {\n \tMDataMap mDataMap=new MDataMap();\n \tString dateString=DateHelper.upDate(start.getTime()).substring(0,10);\n \tmDataMap.put(\"dateString\", dateString);\n \tList<MDataMap> list=DbUp.upTable(\"gc_member_relation\").queryAll(\"parent_code,count(parent_code) as number \", \"\", \" left(create_time,10)=:dateString group by parent_code\", mDataMap);\n for(MDataMap map:list){\n \tDbUp.upTable(\"gc_subordinate_count\").insert(\"date\",dateString,\"account_code\",map.get(\"parent_code\"),\n \t\t\t\"number\",map.get(\"number\"),\"create_time\",FormatHelper.upDateTime());\n }\n \tstart.add(Calendar.DAY_OF_MONTH,1);\n }\n\t}", "@Scheduled(cron=\"0 0 * * * *\")\r\n\tpublic void task(){\r\n\t\t\r\n\t\ttry{\r\n\t\t\tloginUsers();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void teleopPeriodic() \r\n {\r\n Watchdog.getInstance().feed();\r\n Scheduler.getInstance().run();\r\n \r\n //Polls the buttons to see if they are active, if they are, it adds the\r\n //command to the Scheduler.\r\n if (mecanumDriveTrigger.get()) \r\n Scheduler.getInstance().add(new MechanumDrive());\r\n \r\n else if (tankDriveTrigger.get())\r\n Scheduler.getInstance().add(new TankDrive());\r\n \r\n else if (OI.rightJoystick.getRawButton(2))\r\n Scheduler.getInstance().add(new PolarMechanumDrive());\r\n \r\n resetGyro.get();\r\n \r\n //Puts the current command being run by DriveTrain into the SmartDashboard\r\n SmartDashboard.putData(DriveTrain.getInstance().getCurrentCommand());\r\n \r\n SmartDashboard.putString(ERRORS_TO_DRIVERSTATION_PROP, \"Test String\");\r\n \r\n \r\n }", "@Override\n\tpublic void execute(JobExecutionContext arg0) throws JobExecutionException {\n\t\tCommonJdbcDao commonDao = (CommonJdbcDao)arg0.getJobDetail().getJobDataMap().get(\"CommonJdbcDao\");\n\t\tScriptManager.getScriptManager().loadInnerServers(commonDao);\n\t\tScriptManager.getScriptManager().loadAccount(commonDao);\n\t\tSystem.out.println(\"CronTriggerJob = \" + System.currentTimeMillis());\n\t}", "@Override\n\tprotected void onRegistered(Context context, String registrationId) {\n\t\tnew GCMAsyncTask().execute(registrationId);\n\t}", "@Scheduled(cron = \"0 0 8-10 * * *\")\n\tpublic void scheduleTaskHourly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 8 - 10 O'clock Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Override\n public void sync(){\n }", "private void async(Runnable runnable) {\n Bukkit.getScheduler().runTaskAsynchronously(KitSQL.getInstance(), runnable);\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tisAutonomous = false;\n\t\tisTeleoperated = true;\n\t\tisEnabled = true;\n\t\tupdateLedState();\n\t\t//SmartDashboard.putNumber(\"Gyro\", Robot.drivebase.driveGyro.getAngle());\n\t\tSmartDashboard.putNumber(\"Climber Current Motor 1\", Robot.climber.climberTalon.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"Climber Current motor 2\", Robot.climber.climberTalon2.getOutputCurrent());\n\t\t//visionNetworkTable.getGearData();\n\t//\tvisionNetworkTable.showGearData();\n\t\tSmartDashboard.putNumber(\"GM ACTUAL POSITION\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\n\t\tif(Robot.debugging){\t\t\t\n\t\t\tSmartDashboard.putNumber(\"Shooter1RPM Setpoint\", shooter.shooter1.getSetpoint());\n\t \tSmartDashboard.putNumber(\"Intake Pivot Encoder Position\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\t\n\t\t\tSmartDashboard.putNumber(\"Gear Manipulator Setpoint\", gearManipulator.gearManipulatorPivot.getSetpoint());\n\t\t}\n\t\t//\tvisionNetworkTable.getGearData();\n\t\t//visionNetworkTable.getHighData();\n\t}", "@Scheduled(cron = \"0 0 18 * * SUN\")\n\tvoid refreshNotifications(){\n\t\tnotificationService.refreshAll();\n\t}", "public BotTaskExecutor(SlackSession session) {\n LOG.info(\"Start time: {}\", String.format(\"%1$-2d:%2$-2d\", START_HOUR, START_MIN));\n\n SlackChannel channelBotMain = session.findChannelByName(Constants.BOT_MAIN_CHANNEL);\n\n // Enable/disabe the Meetup bot\n if (PropertiesUtil.getBooleanProperty(Constants.MEETUP_ENABLE, true)) {\n if (channelBotMain == null) {\n LOG.warn(\"Failed to start MEETUP task\");\n SlackBot.messageAdmins(session, \"Failed to start MEETUP task\");\n } else {\n TASKS.add(new MeetupBotTask(EXECUTOR_SERVICE, \"MEETUP\", START_HOUR, START_MIN, session, channelBotMain));\n }\n }\n\n if (PropertiesUtil.getBooleanProperty(Constants.BOT_TEST, false)) {\n channelBotMain = session.findChannelByName(\"random\");\n } else {\n channelBotMain = session.findChannelById(PropertiesUtil.getProperty(Constants.WBB_CHANNEL_ID));\n }\n if (channelBotMain == null) {\n LOG.warn(\"Failed to start WBB task\");\n SlackBot.messageAdmins(session, \"Failed to start WBB task\");\n } else {\n TASKS.add(new WbbBotTask(EXECUTOR_SERVICE, \"WBB\", START_HOUR, START_MIN, session, channelBotMain));\n }\n\n channelBotMain = session.findChannelByName(Constants.BOT_MAIN_CHANNEL);\n if (channelBotMain == null) {\n LOG.warn(\"Failed to start UPGRADE task\");\n SlackBot.messageAdmins(session, \"Failed to start UPGRADE task\");\n } else {\n // Start the upgrade task at 0600\n TASKS.add(new UpgradeTask(EXECUTOR_SERVICE, \"UPGRADE\", 6, 0, session, channelBotMain));\n }\n\n startAll();\n }", "@Scheduled(cron = \"0 0 15 ? * SUN,MON,TUE,WED,THU,FRI,SAT\")\n @Async\n protected void updateJuegaMasGanaMasResults() throws IOException {\n LotteryResult lotteryResult = nacionalService.updateJuegaMasGanaMasResults(null);\n String result = lotteryResult == null ? \"failed\" : lotteryResult.toString();\n String msj = \"updateJuegaMasGanaMasResults job executed with result: \".concat(result);\n if (result.equals(\"failed\")) {\n LOGGER.error(msj);\n } else {\n LOGGER.info(msj);\n }\n\n }", "public void updateTask() {}", "@Override\n public void teleopPeriodic()\n {\n commonPeriodic();\n }", "public void updateData() {\n\n ProgramWorker pw = new ProgramWorker();\n pw.execute();\n\n }", "@Scheduled(cron = \"0 5 21 ? * MON,TUE,WED,THU,FRI,SAT\")\n @Scheduled(cron = \"0 5 18 ? * SUN\")\n @Async\n protected void updateSuperKinoTVResults() throws IOException {\n LotteryResult lotteryResult = leidsaService.updateSuperKinoResults(null);\n String result = lotteryResult == null ? \"failed\" : lotteryResult.toString();\n String msj = \"updateSuperKinoTVResults job executed with result: \".concat(result);\n if (result.equals(\"failed\")) {\n LOGGER.error(msj);\n } else {\n LOGGER.info(msj);\n }\n }", "public void submitSyncAppsTrafficTask() {\n\t\tL.i(this.getClass(), \"SyncAppsTrafficTask()...\");\n\t\taddTask(new SyncAppsTrafficTask());\n\t}", "@Override\n public void run() {\n mAllBudgets.clear();\n mAllBudgets = DBManger.getInstance(getContext()).getAllBudgetData();\n refresListByMonth(DateUtil.getCurrentMonthStr());\n refreshDataByMonth(DateUtil.getCurrentMonthStr());\n }", "@Override\n public void periodic() {\n UpdateDashboard();\n }", "@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }", "public void teleopPeriodic() {\r\n }", "@Override\n public void run() {\n syncToServer();\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tif(dbHelper.InsertItem(listResult))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSharedPreferences sharedPrefer = getSharedPreferences(getResources().getString(R.string.information_string), Context.MODE_PRIVATE);\r\n\t\t\t\t\t\t \tSharedPreferences.Editor sharedEditor = sharedPrefer.edit();\r\n\t\t\t\t\t\t \tsharedEditor.putString(getResources().getString(R.string.masterversion), Common.serverTime);\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \tsharedEditor.commit();\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\t\t\t\t\tmsg.obj = \"ProductItemSave\";\r\n\t\t\t\t\t\t\t\thandler.sendMessage(msg);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "@Scheduled(cron = \"${toil1.schedule1}\")\n\tpublic void toiL1Schedule1() {\n\t\tlog.info(\"Running toiL1Schedule1\");\n\t\trunToiL1Schedule();\n\t\trunToiBlogsL1Schedule();\n\t}", "public void execute(JobExecutionContext context) throws JobExecutionException {\n\t\t\n\t\tint scheduler_id=(Integer)context.getJobDetail().getJobDataMap().get(\"scheduler_id\");\t\t\n \tString taskuid=(String)context.getJobDetail().getJobDataMap().get(\"taskuid\");\n \tString invoked_by=(String)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_INVOKED_BY);\n \tString updatedtime=(String)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_UPDATED_TIME);\n \tNumber trigger_row_id=(Number)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_TRIGGER_ROW_ID);\n \t//System.out.println(\"ScheduledTaskJob.execute() 2be removed later:taskuid:\"+taskuid+\" scheduler_id:\"+scheduler_id);\n \t\n \t\n \t\n \ttry{\n \t\t\n\t \t//Map data=getSchedulerData(scheduler_id);\n \t\tSchedulerDB sdb=SchedulerDB.getSchedulerDB();\n \t\tMap data=null;\n \t\tString inject_code=null;\n \t\ttry{\n \t\t\tsdb.connectDB();\n \t\t\tdata=sdb.getScheduler(scheduler_id); \n \t\t\tif(trigger_row_id!=null){\n \t\t\t\tMap trig=sdb.getOneRowTriggerData(trigger_row_id.longValue());\n \t\t\t\tinject_code=(String)trig.get(\"inject_code\");\n \t\t\t}\n \t\t}catch(Exception e){\n \t\t\tthrow e;\n \t\t}finally {\n \t\t\tsdb.closeDB();\n \t\t}\n \t\t\n \t\tif(data.get(\"deleted\")!=null && ((Number)data.get(\"deleted\")).intValue()==1){\n \t\t\tthrow new Exception(\"Deleted Task can't be executed\");\n \t\t}\n \t\t\n \t\tlog.debug(\"trigger_row_id:\"+trigger_row_id+\" inject_code:\"+inject_code);\n\t \t\n\t \tScheduledTask task=new ScheduledTaskFactory().getTask(taskuid);\n\t \tif(task==null) {\n\t \t\tthrow new Exception(\"Task Group not found for the task:\"+scheduler_id);\n\t \t}\n\t \tStackFrame sframe=new StackFrame(task,data);\n\t \tif(invoked_by!=null && !invoked_by.equals(\"\")) {\n\t \t\tsframe.setInvokedby(invoked_by);\n\t \t}else{\n\t \t\tif(updatedtime!=null){\n\t \t\t\tsframe.setInvokedby(\"Scheduler (\"+updatedtime+\")\");\n\t \t\t}else{\n\t \t\t\tsframe.setInvokedby(\"Scheduler\");\n\t \t\t}\n\t \t}\n\t\t\t\n\t\t\tif(context.getTrigger().getPreviousFireTime()!=null){\n\t\t\t\tsframe.setTrigger_time(context.getTrigger().getPreviousFireTime().getTime());\n\t\t\t}else{\n\t\t\t\tsframe.setTrigger_time(new Date().getTime());\n\t\t\t}\n\t\t\t\n\t\t\tif(context.getTrigger().getNextFireTime()!=null){\n\t\t\t\tsframe.setNexttrigger_time(context.getTrigger().getNextFireTime().getTime());\n\t\t\t}\t\t\t\n\t\t\n\t\t\t\n\t\t\tif(Config.getValue(\"load_balancing_server\")!=null && Config.getValue(\"load_balancing_server\").equals(P2PService.getComputerName())){\n\t\t\t\tLoadBalancingQueueItem li=new LoadBalancingQueueItem();\n\t\t\t\tli.setSf(sframe);\n\t\t\t\tInteger id=(Integer)data.get(\"id\");\n\t\t\t\tli.setInject_code(inject_code);\n\t\t\t\tli.setSchedulerid(id);\n\t\t\t\tLoadBalancingQueue.getDefault().add(li);\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t/*ScheduledTaskQueue.add(sframe);*/\n\t\t\t}\n\t\t\t\n\t\t\tlog.debug(\"adding task to queue: task:\"+data.get(\"name\"));\n \t}catch(Exception e){\n \t\te.printStackTrace(); \t\t\n \t\t//ClientErrorMgmt.reportError(e, \"Error while triggering task\");\n \t} \n\t\t \n\t\t//String status=null;\n\t\t//try{\t\t\n\t\t\t//task.execute();\n\t\t\t//status=task.EXCECUTION_SUCCESS;\n\t\t//}catch(Exception e){\n\t\t//\tstatus=task.EXCECUTION_FAIL;\t\t\t\n\t\t//\tClientErrorMgmt.reportError(e, null);\n\t\t//}finally{\n\t\t//\ttry{\n\t\t//\t\taddLog(sdate,data,status);\n\t\t//\t}catch(Exception e){\n\t\t//\t\tClientErrorMgmt.reportError(e, null);\n\t\t//\t}\t\t\t\n\t\t//}\n\t\t\n \t\n \t\n\t}", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "@Override\n\tpublic void teleopPeriodic() //runs the teleOp part of the code, repeats every 20 ms\n\t{\n\t\tScheduler.getInstance().run(); //has to be here, I think that this is looping the method\n\t\tSmartDashboard.putNumber(\"Encoder Left: \", RobotMap.encoderLeft.getRaw()); //putting the value of the left encoder to the SmartDashboard\n\t\tSmartDashboard.putNumber(\"Encoder Right: \", RobotMap.encoderRight.getRaw()); //putting the value of the right encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Ultrasonic sensor\", ultrasonic.getDistanceIn()); //putting the value of the ultrasonic sensor to the smartDashboard\n//\t\tSmartDashboard.putBoolean(\"allOK\", Robot.driveFar.ultrasonicOK);\n\t\tdriveExecutor.execute(); //running the execute method in driveExecutor\n\t\tgrab.execute(); //running the execute() method in GearGrab_Command (should run without this but this is ensuring us that it is on)\n\t}" ]
[ "0.64335996", "0.6420597", "0.6155879", "0.6120164", "0.59507483", "0.5884775", "0.57983804", "0.57864517", "0.57582223", "0.57328016", "0.57203066", "0.57172", "0.5680124", "0.567133", "0.5670274", "0.5661675", "0.56432253", "0.56432086", "0.56426424", "0.56278825", "0.561669", "0.55956143", "0.55846506", "0.5548658", "0.55443347", "0.55258024", "0.5514538", "0.5503333", "0.5495066", "0.5495066", "0.5495066", "0.5495066", "0.54699767", "0.54538983", "0.5435307", "0.5432705", "0.541011", "0.5397951", "0.53897417", "0.5385488", "0.5385488", "0.5385488", "0.537368", "0.5363149", "0.53584653", "0.5349641", "0.5338132", "0.5336395", "0.53251046", "0.53131217", "0.5312508", "0.5307937", "0.5307937", "0.5306988", "0.53045726", "0.53019816", "0.5300675", "0.5298449", "0.52872956", "0.52859974", "0.52854854", "0.5285126", "0.52802163", "0.52796286", "0.5272485", "0.52646285", "0.52627504", "0.5260437", "0.5256576", "0.52526295", "0.5249833", "0.5249555", "0.5247512", "0.5240741", "0.52406657", "0.5238463", "0.5238203", "0.5228126", "0.5220378", "0.52153146", "0.5214329", "0.5211202", "0.5207413", "0.520569", "0.5205534", "0.5203183", "0.5202012", "0.5201841", "0.52014494", "0.51905036", "0.51843613", "0.51791275", "0.51763135", "0.51751894", "0.51706845", "0.51697516", "0.5167451", "0.5166567", "0.5166409", "0.51653224" ]
0.57494885
9
write your code here
public static void main(String[] args) throws IOException, InterruptedException { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.title = "Catch It - Game"; config.height = 720; config.width = 1080; new LwjglApplication(new Chansey_Game(), config); ServerSocket serverSocket = new ServerSocket(9655); while( true) { System.out.println("Server Open"); Socket clientSocket = serverSocket.accept(); PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true); BufferedReader in = new BufferedReader( new InputStreamReader(clientSocket.getInputStream())); String line = in.readLine(); System.out.println(line); if ( line != null && !line.equals( "") ) { PrintWriter fileOut = new PrintWriter(new BufferedWriter(new FileWriter("Server/globalScores.txt", true))); fileOut.println(line); fileOut.close(); } Thread.sleep(1000); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void ganar() {\n // TODO implement here\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "CD withCode();", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void baocun() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void furyo ()\t{\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void themesa()\n {\n \n \n \n \n }", "Programming(){\n\t}", "@Override\n\tvoid output() {\n\t\t\n\t}", "private void yy() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "private void kk12() {\n\n\t}", "public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}", "public static void main(String[] args) {\n\t// write your code here\n }", "private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}", "@Override\r\n\t\tpublic void doDomething() {\r\n\t\t\tSystem.out.println(\"I am here\");\r\n\t\t\t\r\n\t\t}", "protected void mo6255a() {\n }", "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void working()\n {\n \n \n }", "@Override\n\tprotected void postRun() {\n\n\t}", "public void perder() {\n // TODO implement here\n }", "public void smell() {\n\t\t\n\t}", "protected void execute() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void orgasm() {\n\t\t\n\t}", "public void cocinar(){\n\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "protected void execute() {\n\n\n \n }", "@Override\n public void execute() {\n \n \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "protected void display() {\n\r\n\t}", "private void sout() {\n\t\t\n\t}", "private static void oneUserExample()\t{\n\t}", "public void nhapdltextlh(){\n\n }", "public void miseAJour();", "protected void additionalProcessing() {\n\t}", "private void sub() {\n\n\t}", "@Override\n\tpublic void view() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}", "void mo67924c();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n public void run() {\n basicEditor.createEdge(); // replaced Bibianas method with Moritz Roidl, Orthodoxos Kipouridis\r\n }", "public void mo5382o() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public static void main(String[] args)\r\n {\n System.out.println(\"Mehedi Hasan Nirob\");\r\n //multiple line comment\r\n /*\r\n At first printing my phone number\r\n then print my address \r\n then print my university name\r\n */\r\n System.out.println(\"01736121659\\nJamalpur\\nDhaka International University\");\r\n \r\n }", "void kiemTraThangHopLi() {\n }", "public void skystonePos5() {\n }", "public final void cpp() {\n }", "public final void mo51373a() {\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is the main class of this project\");\r\n\t\tSystem.out.println(\"how about this\");\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"new push\");\r\n\r\n\t\t//how to update this line\r\n\t\t\r\n\t\tSystem.out.println(\"hello there\");\r\n\r\n\t\tSystem.out.println(\"zen me shuoXXXXXXXXXXXKKKKkKKKKKKXXXXXXXX\");\r\n\r\n\t\tSystem.out.println(\"eventually we succeeded!\");\r\n\t\t//wa!!!\r\n\t\t\r\n\r\n\r\n\t\t//hen shu fu !\r\n\t\t\r\n\t\t//it is a good day\r\n\t\t\r\n\t\t//testing\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"hope it works\");\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}" ]
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.55133164", "0.55123806", "0.55114794", "0.5500045", "0.5489272", "0.5482718", "0.5482718", "0.5477585", "0.5477585", "0.54645246", "0.5461012", "0.54548836", "0.5442613", "0.5430592", "0.5423748", "0.5419415", "0.5407118", "0.54048806", "0.5399331", "0.539896", "0.5389593", "0.5386248", "0.5378453", "0.53751254", "0.5360644", "0.5357343", "0.5345515", "0.53441405", "0.5322276", "0.5318302", "0.53118485", "0.53118485", "0.53085434", "0.530508", "0.53038436", "0.5301922", "0.5296964", "0.52920514", "0.52903354", "0.5289583", "0.5287506", "0.52869135", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.52859664", "0.52849185", "0.52817136", "0.52791214", "0.5278664", "0.5278048", "0.5276269", "0.52728665", "0.5265451", "0.526483", "0.526005", "0.5259683", "0.52577406", "0.5257731", "0.5257731", "0.52560073", "0.5255759", "0.5255707", "0.5250705", "0.5246863", "0.5243053", "0.52429926", "0.5242727", "0.52396125", "0.5239378", "0.5232576", "0.5224529", "0.52240705", "0.52210563", "0.52203166", "0.521787", "0.52172214" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onTestStart(ITestResult result) { test=extent.createTest(result.getMethod().getMethodName()); }
{ "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 onTestSuccess(ITestResult result) { System.out.println("THE TEST CASE HAS PASSED SUCCESSFULLY"); test.log(Status.PASS, "test passed"); WebDriver driver=null; try { driver=(WebDriver)result.getTestClass().getRealClass().getDeclaredField("driver").get(result.getInstance()); } catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException e1) { e1.printStackTrace(); } String testMethodName=result.getMethod().getMethodName(); captureScreenshot(driver,testMethodName); try { test.addScreenCaptureFromPath(System.getProperty("user.dir")+"\\Output\\Screenshots\\"+testMethodName+".png"); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onTestSkipped(ITestResult result) { System.out.println("THE TEST CASE HAS BEEN SKIPPED"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onTestFailedButWithinSuccessPercentage(ITestResult result) { }
{ "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 onTestFailedWithTimeout(ITestResult result) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onStart(ITestContext context) { }
{ "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 onFinish(ITestContext context) { extent.flush(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override protected Object clone() throws CloneNotSupportedException { return super.clone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean equals(Object obj) { return super.equals(obj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void finalize() throws Throwable { super.finalize(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int hashCode() { return super.hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { return super.toString(); }
{ "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
/ Four columns layout (Width = 48dots) |item Name 38/scale | QTY 10/scale |
private String GetThreeColHeader(String col1Title, String col2Title, String col3Title) { StringBuffer ret = new StringBuffer(); EntItemReportPrint.COL3_ITEMNAME = this.charSize - EntItemReportPrint.FIXED_COL3_QTY - EntItemReportPrint.FIXED_COL3_TOTAL; String title1 = StringUtil.padRight(col1Title, EntItemReportPrint.COL3_ITEMNAME); String title2 = StringUtil.padRight(col2Title, EntItemReportPrint.FIXED_COL3_QTY); String title3 = StringUtil.padLeft(col3Title, EntItemReportPrint.FIXED_COL3_TOTAL); ret.append(title1).append(title2).append(title3).append(reNext); return ret.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int testItemWidth(ArrayList<Object> arrayInfo){\n\t\tlong time=System.currentTimeMillis();\n\t\tint minLeft=mContext.getResources().getDimensionPixelSize(R.dimen.default_start_position_x);\n\t\tfor(Object info:arrayInfo){\n\t\t\tView view = null;\n\t\t\tif(info instanceof EcgInfo){\n\t\t\t\tEcgInfo ecgInfo=(EcgInfo)info;\n\t\t\t\tif(ecgInfo.measureType==EcgTable.TYPE_HEARTRATE){\n\t\t\t\t\tview=mInflater.inflate(R.layout.daily_info_heart_rate_layout, null);\n\t\t\t\t\tTextView tv=(TextView)view.findViewById(R.id.heart_rate_bpm);\n\t\t\t\t\tTextView tvLevel=(TextView)view.findViewById(R.id.heart_rate_level);\n\t\t\t\t\ttvLevel.setText(Utility.getIntensityLevel(mContext, ecgInfo.measureValue));\n\t\t\t\t\tString value = Utility.getFormatStr(String.valueOf(ecgInfo.measureValue), mContext.getString(R.string.daily_info_heart_rate_unit), mContext).toString();\n\t\t\t\t\ttv.setText(value);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tview=mInflater.inflate(R.layout.daily_info_stress_energy_layout, null);\n\t\t\t\t\tTextView titleText=(TextView)view.findViewById(R.id.measure_energy_title);\n\t\t\t\t\tTextView valueText=(TextView)view.findViewById(R.id.measure_energy_value);\n\t\t\t\t\tImageView image=(ImageView)view.findViewById(R.id.energy_or_stress_icon);\n\t\t\t\t\tif(ecgInfo.measureType==EcgTable.TYPE_RELAX){\n\t\t\t\t\t\ttitleText.setText(mContext.getString(R.string.daily_info_energy_title));\n\t\t\t\t\t\tvalueText.setText(Utility.intToStr(ecgInfo.measureValue));\n\t\t\t\t\t\timage.setImageResource(Utility.getRelaxDrawableId(ecgInfo.measureValue));\n\t\t\t\t\t}\n\t\t\t\t\telse if(ecgInfo.measureType==EcgTable.TYPE_STRESS){\n\t\t\t\t\t\ttitleText.setText(mContext.getString(R.string.daily_info_stress_title));\n\t\t\t\t\t\tvalueText.setText(Utility.intToStr(ecgInfo.measureValue));\n\t\t\t\t\t\tvalueText.setTextColor(0xffc14343);\n\t\t\t\t\t\timage.setImageResource(Utility.getStressDrawableId(ecgInfo.measureValue));\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\telse if(info instanceof ActivityInfo){\n\t\t\t\tActivityInfo activityInfo=(ActivityInfo)info;\n\t\t\t\tview=mInflater.inflate(R.layout.daily_info_walk_bike_layout, null);\n\t\t\t\tTextView tvDistance=(TextView) view.findViewById(R.id.tv_step_or_bike_distance);\n\t\t\t\tTextView tvType=(TextView) view.findViewById(R.id.tv_step_or_bike_type);\n\t\t\t\tTextView tvTime=(TextView) view.findViewById(R.id.tv_step_or_bike_time);\n\t\t\t\tTextView tvUnit=(TextView) view.findViewById(R.id.tv_step_or_bike_unit);\n\t\t\t\tImageView img=(ImageView)view.findViewById(R.id.img_step_or_bike_icon);\n\t\t\t\tif(activityInfo.activityType==ActivityStateTable.TYPE_WALK){\n\t\t\t\t\ttvDistance.setText(String.valueOf(activityInfo.stepCounts));\n\t\t\t\t\ttvType.setText(R.string.daily_info_walk_type);\n\t\t\t\t\t\n\t\t\t\t\ttvTime.setText(calculateTimeInterval(activityInfo.startTime, activityInfo.endTime));\n\t\t\t\t\ttvUnit.setText(R.string.daily_info_walk_unit);\n\t\t\t\t\timg.setImageResource(R.drawable.asus_wellness_ic_walk);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttvDistance.setText(Utility.getOneDigitFloatString((float)activityInfo.distance/1000));\n\t\t\t\t\ttvDistance.setTextColor(0xff327abd);\n\t\t\t\t\ttvType.setText(R.string.daily_info_transport_type);\n\t\t\t\t\ttvTime.setText(calculateTimeInterval(activityInfo.startTime, activityInfo.endTime));\n\t\t\t\t\ttvUnit.setText(R.string.distance_unit);\n\t\t\t\t\timg.setImageResource(R.drawable.asus_wellness_ic_traffic);\n\t\t\t\t}\n\t\t\t}\n\t\t\tview.measure(MeasureSpec.makeMeasureSpec(LayoutParams.WRAP_CONTENT, MeasureSpec.UNSPECIFIED), \n\t\t\t\t\tMeasureSpec.makeMeasureSpec(LayoutParams.WRAP_CONTENT, MeasureSpec.UNSPECIFIED));\n\t\t\tint left=minLeft-view.getMeasuredWidth()-15;\n\t\t\tif(left<0){\n\t\t\t\tminLeft=minLeft-left;\n\t\t\t}\n\t\t}\n\t\tLog.e(\"circle\",\"testItemWidth time:\"+(System.currentTimeMillis()-time));\n\t\treturn minLeft;\n\t}", "public int getItemSize() {\n \t\tPointerSizes sizes = getSizes();\n \t\treturn sizes.getMapSize() + 2 + 2 + 3;\n \t}", "private void updateItemDisplay(){\n String[] columnNames = new String[model.getColumns()];\n for(int i = 0; i<columnNames.length; i++){\n columnNames[i] = String.valueOf(i);\n }\n view.updateItemsDisplay(model.itemMapTo2DArray(model.getVendMacItemMap()), columnNames);\n }", "private Rect LayoutTemplet5(int index, Rect rect, int overIndex, int times) {\n int x, y;\n\n int frontHeight = getFrontHeight(5);\n overIndex = overIndex - getFrontItemCount(5);\n\n if (overIndex == 0) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 1) {\n x = mHorizontalPadding + mItemWidth;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mItemWidth + mSlotWidth, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 2) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 3) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 2;\n rect.set(x, y, x + mSlotWidth + mItemWidth / 2, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 4) {\n x = mHorizontalPadding + mItemWidth * 3 / 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 2;\n rect.set(x, y, x + mSlotWidth + mItemWidth / 2, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 5) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 4;\n rect.set(x, y, x + mItemWidth + mSlotWidth, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 6) {\n x = mHorizontalPadding + mItemWidth * 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 4;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 7) {\n x = mHorizontalPadding + mItemWidth * 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 5;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n }\n\n return rect;\n }", "public void renderItemTileGeneralPanel()\n\t{\n\t\t\t\tpanGeneral = new JPanel();\n\t\t\t\tpanGeneral.setBorder(new LineBorder(new Color(30, 144, 255), 3, true));\n\t\t\t\tpanGeneral.setBackground(Color.WHITE);\n\t\t\t\t/* Layout */\n\t\t\t\t\n\t\t\t\tpanGeneral.setLayout(new MigLayout(\"\", \"[46.00][38.00][38.00][][38.00][][38.00,grow][100,grow][100][100][31.00]\", \"[][][17.00][][9.00][39.00][11.00][grow][17][][]\"));\n\t\t\t\t\n\t\t\t\tString typeStrings[] = {\"IT Assets\",\"Non-IT Assets\",\"Software\",\"Others\"};\n\t\t\t\t\n\t\t\t\t/* Labels */\n\t\t\t\tlblType = new JLabel(\"Type:\");\n\t\t\t\tpanGeneral.add(lblType, \"cell 1 1 2 1,alignx left\");\n\t\t\t\t\n\t\t\t\tlblTypeText = new JLabel(\"Other\");\n\t\t\t\tpanGeneral.add(lblTypeText, \"cell 3 1 7 1\");\n\t\t\t\t\n\t\t\t\tlblAssignee = new JLabel(\"Assignee:\");\n\t\t\t\tpanGeneral.add(lblAssignee, \"flowx,cell 1 5 4 1\");\n\t\t\t\taddItemPanelReference.assignToQuad(panGeneral, 1);\n\t\t\t\t\n\t\t\t\tlblAssigneeText = new JLabel(\"\");\n\t\t\t\tpanGeneral.add(lblAssigneeText, \"cell 5 5 5 1\");\n\t\taddItemPanelReference.assignToQuad(panGeneral, 1);\n\n\t}", "public ItemSummeryLVUI() {\n super();\n List<PTableColumn> tblCols = new ArrayList();\n// tblCols.add(new PTableColumn(String.class, \"empty\"));\n tblCols.add(new PTableColumn(String.class, \"SKU\"));\n tblCols.add(new PTableColumn(String.class, \"UOM\"));\n tblCols.add(new PTableColumn(String.class, \"QTY\"));\n\n getTable().init(InventoryJournalLine.class, tblCols);\n \n }", "public void a() {\n this.f25458d.a(this.f25457c);\n this.f25457c.a(this);\n Context context = getContext();\n LinearLayout linearLayout = new LinearLayout(context);\n linearLayout.setOrientation(1);\n addView(linearLayout, new ViewGroup.LayoutParams(-1, -2));\n d a2 = ShopAssistantItemView_.a(context);\n a2.a(R.drawable.ic_myproducts, R.string.sp_my_products, 0);\n a2.setTag(\"PRODUCT\");\n a2.setMinimumHeight(this.f25455a);\n linearLayout.addView(a2, new FrameLayout.LayoutParams(-1, -2));\n d a3 = ShopAssistantItemView_.a(context);\n a3.a(R.drawable.ic_mycustomers, R.string.sp_my_customers, 2);\n linearLayout.addView(a3, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a4 = ShopAssistantItemView_.a(context);\n a4.a(R.drawable.ic_shopprofile, R.string.sp_label_shop_profile, 6);\n linearLayout.addView(a4, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a5 = ShopAssistantItemView_.a(context);\n a5.a(R.drawable.img_shopsettings, R.string.sp_shop_settings, 4);\n linearLayout.addView(a5, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a6 = ShopAssistantItemView_.a(context);\n a6.a(R.drawable.ic_categories, R.string.sp_my_shop_categories, 8);\n a6.setSubtitle(this.f25461g.getCategoriesPath());\n linearLayout.addView(a6, new FrameLayout.LayoutParams(-1, this.f25455a));\n View view = new View(context);\n view.setBackgroundColor(b.a(R.color.background));\n linearLayout.addView(view, new FrameLayout.LayoutParams(-1, b.a.k));\n View view2 = new View(context);\n view2.setBackgroundColor(com.garena.android.appkit.tools.b.a(R.color.black06));\n linearLayout.addView(view2, new FrameLayout.LayoutParams(-1, b.a.f7690a));\n View inflate = ((LayoutInflater) context.getSystemService(\"layout_inflater\")).inflate(R.layout.seller_center, (ViewGroup) null);\n ((TextView) inflate.findViewById(R.id.url)).setText(\"http://seller\" + i.f7042e);\n int b2 = com.garena.android.appkit.tools.b.b() - b.a.m;\n w.a(getContext()).a((int) R.drawable.sellercentre_banner).b(b2, (int) (((float) b2) / 1.886f)).e().f().a((ImageView) inflate.findViewById(R.id.banner));\n FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -2);\n inflate.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n g.this.f25459e.V();\n }\n });\n linearLayout.addView(inflate, layoutParams);\n this.f25457c.e();\n this.f25457c.f();\n }", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 4;\n\t\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 4;\n\t\t}", "private Rect LayoutTemplet4(int index, Rect rect, int overIndex, int times) {\n int x, y;\n\n int frontHeight = getFrontHeight(4);\n overIndex = overIndex - getFrontItemCount(4);\n\n if (overIndex == 0) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mItemWidth + mSlotWidth, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 1) {\n x = mHorizontalPadding + mItemWidth * 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 2) {\n x = mHorizontalPadding + mItemWidth * 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 3) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 2;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 4) {\n x = mHorizontalPadding + mItemWidth;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 2;\n rect.set(x, y, x + mItemWidth + mSlotWidth, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 5) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 3;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n }\n\n return rect;\n }", "private void createItemPanel() {\r\n\t\r\n TableColumn newColumnTableColumn;\r\n GridLayout gridLayout;\r\n\r\n TabItem partTabItem;\r\n TabItem servTabItem;\r\n TabItem paintTabItem;\r\n \r\n GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 2);\r\n gridData.heightHint = 120;\r\n itemPanel = new Composite(this, SWT.NONE);\r\n gridLayout = new GridLayout();\r\n gridLayout.verticalSpacing = 0;\r\n gridLayout.marginWidth = 0;\r\n gridLayout.marginHeight = 0;\r\n gridLayout.horizontalSpacing = 0;\r\n itemPanel.setLayout(gridLayout);\r\n itemPanel.setLayoutData(gridData);\r\n \r\n\r\n \r\n tabFolder = new TabFolder(itemPanel, SWT.NONE);\r\n tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n\r\n // PART TABLE\r\n \r\n partTabItem = new TabItem(tabFolder, SWT.NONE);\r\n partTabItem.setText(Messages.getString(\"CarDetailVariantEditForm.partTabItem.text\")); //$NON-NLS-1$\r\n\r\n \r\n partTable = new Table(tabFolder, SWT.MULTI | SWT.FULL_SELECTION);\r\n partTable.setHeaderVisible(true);\r\n partTable.setLinesVisible(true);\r\n partTabItem.setControl(partTable);\r\n \r\n newColumnTableColumn = new TableColumn(partTable, SWT.NONE);\r\n newColumnTableColumn.setWidth(300);\r\n newColumnTableColumn.setText(Messages.getString(\"CarDetailVariantEditForm.nameTableColumn.text\")); //$NON-NLS-1$\r\n\r\n \r\n \r\n \r\n // SERV TABLE\r\n \r\n servTabItem = new TabItem(tabFolder, SWT.NONE);\r\n servTabItem.setText(Messages.getString(\"CarDetailVariantEditForm.servTabItem.text\")); //$NON-NLS-1$\r\n\r\n \r\n servTable = new Table(tabFolder, SWT.MULTI | SWT.FULL_SELECTION);\r\n servTable.setHeaderVisible(true);\r\n servTable.setLinesVisible(true);\r\n servTabItem.setControl(servTable);\r\n \r\n TableColumn carClassColumn = new TableColumn(servTable, SWT.NONE);\r\n carClassColumn.setWidth(150);\r\n carClassColumn.setText(Messages.getString(\"CarDetailVariantEditForm.carClassColumn.text\"));\r\n\r\n newColumnTableColumn = new TableColumn(servTable, SWT.NONE);\r\n newColumnTableColumn.setWidth(300);\r\n newColumnTableColumn.setText(Messages.getString(\"CarDetailVariantEditForm.nameTableColumn.text\")); //$NON-NLS-1$\r\n\r\n newColumnTableColumn = new TableColumn(servTable, SWT.RIGHT);\r\n newColumnTableColumn.setWidth(70);\r\n newColumnTableColumn.setText(Messages.getString(\"CarDetailVariantEditForm.workHourTableColumn.text\")); //$NON-NLS-1$\r\n \r\n \r\n\r\n // PAINT TABLE\r\n paintTabItem = new TabItem(tabFolder, SWT.NONE);\r\n paintTabItem.setText(Messages.getString(\"CarDetailVariantEditForm.paintTabItem.text\")); //$NON-NLS-1$\r\n\r\n \r\n paintTable = new Table(tabFolder, SWT.MULTI | SWT.FULL_SELECTION);\r\n paintTable.setHeaderVisible(true);\r\n paintTable.setLinesVisible(true);\r\n paintTabItem.setControl(paintTable);\r\n \r\n newColumnTableColumn = new TableColumn(paintTable, SWT.NONE);\r\n newColumnTableColumn.setWidth(300);\r\n newColumnTableColumn.setText(Messages.getString(\"CarDetailVariantEditForm.nameTableColumn.text\")); //$NON-NLS-1$\r\n\r\n TableColumn carPaintDetailTypeColumn = new TableColumn(paintTable, SWT.NONE);\r\n carPaintDetailTypeColumn.setWidth(200);\r\n carPaintDetailTypeColumn.setText(Messages.getString(\"CarDetailVariantEditForm.carPaintDetailTypeTableColumn.text\")); //$NON-NLS-1$\r\n \r\n }", "public String getItem()\n {\n // put your code here\n return \"This item weighs: \" + weight + \"\\n\" + description + \"\\n\";\n }", "private String GetFourColContent(String col1Content, String col2Content,\n\t\t\t\t\t\t\t\t\t String col3Content, String col4Content,int charScale) {\n\n\t\tStringBuffer result = new StringBuffer();\n\n\t\tint col1Lines = 1;\n\t\tint col2Lines = 1;\n\t\tint col3Lines = 1;\n\t\tint col4Lines = 1;\n\n\t\tBillPrint.COL4_ITEMNAME = (this.charSize -BillPrint.FIXED_COL4_TOTAL - BillPrint.FIXED_COL4_QTY - BillPrint.FIXED_COL4_PRICE)/charScale - 3*BillPrint.FIXED_COL4_SPACE;\n\n\t\tdouble ln1 = col1Content.length();\n\t\ttry {\n\t\t\tln1 = (col1Content.getBytes(\"GBK\").length)/(BillPrint.COL4_ITEMNAME*1.0);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcol1Lines = StringUtil.nearestTen(ln1);\n\t\tString col1PadContent = StringUtil.padRight(col1Content, col1Lines*BillPrint.COL4_ITEMNAME);\n\t\tArrayList<String> splittedCol1Content = StringUtil.splitEqually(col1PadContent, BillPrint.COL4_ITEMNAME);\n\n\t\tdouble ln2 = (col2Content.length())/(BillPrint.FIXED_COL4_PRICE*1.0/charScale);\n\t\tcol2Lines = StringUtil.nearestTen(ln2);\n\t\tString col2PadContent = StringUtil.padLeft(col2Content, col2Lines*BillPrint.FIXED_COL4_PRICE/charScale);\n\t\tArrayList<String> splittedCol2Content = StringUtil.splitEqually(col2PadContent, BillPrint.FIXED_COL4_PRICE/charScale);\n\n\t\tdouble ln3 = (col3Content.length())/(BillPrint.FIXED_COL4_QTY*1.0/charScale);\n\t\tcol3Lines = StringUtil.nearestTen(ln3);\n\t\tString col3PadContent = StringUtil.padLeft(col3Content, col3Lines*BillPrint.FIXED_COL4_QTY/charScale);\n\t\tArrayList<String> splittedCol3Content = StringUtil.splitEqually(col3PadContent, BillPrint.FIXED_COL4_QTY/charScale);\n\n\t\tdouble ln4 = (col4Content.length())/(BillPrint.FIXED_COL4_TOTAL*1.0/charScale);\n\t\tcol4Lines = StringUtil.nearestTen(ln4);\n\t\tString col4PadContent = StringUtil.padLeft(col4Content, col4Lines*BillPrint.FIXED_COL4_PRICE/charScale);\n\t\tArrayList<String> splittedCol4Content = StringUtil.splitEqually(col4PadContent, BillPrint.FIXED_COL4_PRICE/charScale);\n\n\n\t\tfor (int i=0; i< Math.max(Math.max(col1Lines, col2Lines), Math.max(col3Lines, col4Lines)); i++) {\n\t\t\tif (i<col1Lines) {\n\t\t\t\tresult.append(splittedCol1Content.get(i));\n\t\t\t}else{\n\t\t\t\tresult.append(StringUtil.padRight(\" \", BillPrint.COL4_ITEMNAME));\n\t\t\t}\n\t\t\t//padding\n\t\t\tresult.append(StringUtil.padRight(\" \", BillPrint.FIXED_COL4_SPACE));\n\n\t\t\tif (i<col2Lines) {\n\t\t\t\tresult.append(splittedCol2Content.get(i));\n\t\t\t}else {\n\t\t\t\tresult.append(StringUtil.padLeft(\" \", (BillPrint.FIXED_COL4_PRICE)/charScale));\n\t\t\t}\n\n\t\t\t//padding\n\t\t\tresult.append(StringUtil.padRight(\" \", BillPrint.FIXED_COL4_SPACE));\n\n\t\t\tif (i<col3Lines) {\n\t\t\t\tresult.append(splittedCol3Content.get(i));\n\t\t\t}else {\n\t\t\t\tresult.append(StringUtil.padLeft(\" \", (BillPrint.FIXED_COL4_QTY)/charScale));\n\t\t\t}\n\n\t\t\t//padding\n\t\t\tresult.append(StringUtil.padRight(\" \", BillPrint.FIXED_COL4_SPACE));\n\n\t\t\tif (i<col4Lines) {\n\t\t\t\tresult.append(splittedCol4Content.get(i));\n\t\t\t}else {\n\t\t\t\tresult.append(StringUtil.padLeft(\" \", (BillPrint.FIXED_COL4_PRICE)/charScale));\n\t\t\t}\n\t\t\tresult.append(reNext);\n\t\t}\n\t\treturn result.toString();\n\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn 4;\r\n\t}", "@Override\n\t\t\tprotected void populateItem(final ListItem<ComponentData> listItem)\n\t\t\t{\n\t\t\t\tfinal ComponentData componentData = listItem.getModelObject();\n\n\t\t\t\tlistItem.add(new Label(\"row\", Long.toString(listItem.getIndex() + 1)));\n\t\t\t\tlistItem.add(new Label(\"path\", componentData.path));\n\t\t\t\tlistItem.add(new Label(\"size\", Bytes.bytes(componentData.size).toString()));\n\t\t\t\tlistItem.add(new Label(\"type\", componentData.type));\n\t\t\t\tlistItem.add(new Label(\"model\", componentData.value));\n\t\t\t\tlistItem.add(new Label(\"renderDuration\", componentData.renderDuration != null\n\t\t\t\t\t? componentData.renderDuration.toString() : \"n/a\"));\n\t\t\t}", "int layout(ArrayList<ImageCell> images, int totalWidth);", "@Override\n public int getCount() {\n return jArrayQty.length();\n }", "private void prepareListData(Set<String> cartItems, Map<String, List<OrderColourSize.ColourSizeItem>> cartItemMap) {\n // заполняем коллекцию групп из массива с названиями групп\n groupData = new ArrayList<Map<String, String>>();\n childData = new ArrayList<ArrayList<Map<String, String>>>();\n\n int sarea = 0;\n\n\n for (String group : cartItems) {\n // заполняем список аттрибутов для каждой группы\n m = new HashMap<String, String>();\n m.put(\"groupName\", group); // имя компании\n groupData.add(m);\n\n childDataItem = new ArrayList<Map<String, String>>();\n // заполняем список аттрибутов для каждого элемента\n for (OrderColourSize.ColourSizeItem item : cartItemMap.get(group)) {\n String phone = item.content;\n sarea += DatabaseOpenHelper.getInstance(null).getSizeAreaById(item.size_id) * item.quantity / 10000;\n m = new HashMap<String, String>();\n m.put(\"phoneName\", phone); // название телефона\n childDataItem.add(m);\n }\n // добавляем в коллекцию коллекций\n childData.add(childDataItem);\n }\n\n TOTAL_AREA = sarea;\n mTotalAreaView.setText(String.valueOf(TOTAL_AREA));\n // список аттрибутов групп для чтения\n String groupFrom[] = new String[]{\"groupName\"};\n // список ID view-элементов, в которые будет помещены аттрибуты групп\n int groupTo[] = new int[]{android.R.id.text1};\n\n // список аттрибутов элементов для чтения\n String childFrom[] = new String[]{\"phoneName\"};\n // список ID view-элементов, в которые будет помещены аттрибуты элементов\n int childTo[] = new int[]{android.R.id.text1};\n\n seAdapter = new SimpleExpandableListAdapter(\n this,\n groupData,\n android.R.layout.simple_expandable_list_item_1,\n groupFrom,\n groupTo,\n childData,\n android.R.layout.simple_list_item_1,\n childFrom,\n childTo);\n// listDataHeader = new ArrayList<String>();\n// listDataChild = new HashMap<String, List<String>>();\n//\n// // Adding child data\n// listDataHeader.add(\"Top 250\");\n// listDataHeader.add(\"Now Showing\");\n// listDataHeader.add(\"Coming Soon..\");\n//\n// // Adding child data\n// List<String> top250 = new ArrayList<String>();\n// top250.add(\"The Shawshank Redemption\");\n// top250.add(\"The Godfather\");\n// top250.add(\"The Godfather: Part II\");\n// top250.add(\"Pulp Fiction\");\n// top250.add(\"The Good, the Bad and the Ugly\");\n// top250.add(\"The Dark Knight\");\n// top250.add(\"12 Angry Men\");\n//\n// List<String> nowShowing = new ArrayList<String>();\n// nowShowing.add(\"The Conjuring\");\n// nowShowing.add(\"Despicable Me 2\");\n// nowShowing.add(\"Turbo\");\n// nowShowing.add(\"Grown Ups 2\");\n// nowShowing.add(\"Red 2\");\n// nowShowing.add(\"The Wolverine\");\n//\n// List<String> comingSoon = new ArrayList<String>();\n// comingSoon.add(\"2 Guns\");\n// comingSoon.add(\"The Smurfs 2\");\n// comingSoon.add(\"The Spectacular Now\");\n// comingSoon.add(\"The Canyons\");\n// comingSoon.add(\"Europa Report\");\n//\n// listDataChild.put(listDataHeader.get(0), top250); // Header, Child data\n// listDataChild.put(listDataHeader.get(1), nowShowing);\n// listDataChild.put(listDataHeader.get(2), comingSoon);\n }", "private void RptStockItem() {\n try {\n pnUmum.removeAll();\n pnUmum.repaint();\n pnUmum.revalidate();\n String sql = \"SELECT `ProdName`,`SellPrice`,`CostPrice`,`Netto`,`Stock`,ProdUnit.UnitName AS Unit FROM `Products` \"\n + \"INNER JOIN ProdUnit ON Products.UnitID = ProdUnit.UnitID ORDER BY Products.ProductID ASC\";\n JRDesignQuery jQuery = new JRDesignQuery();\n jQuery.setText(sql);\n JasperDesign jDesign = JRXmlLoader.load(System.getProperty(\"user.dir\") + \"/src/com/resources/jrxml/RptStokBarang.jrxml\");\n jDesign.setQuery(jQuery);\n JasperReport jReport = JasperCompileManager.compileReport(jDesign);\n JasperPrint jPrint = JasperFillManager.fillReport(jReport, null, new ConfigDB().getConnection());\n JRViewer jView = new JRViewer(jPrint);\n pnUmum.setLayout(new BorderLayout());\n jView.setFitPageZoomRatio();\n jView.setFont(new java.awt.Font(\"Arial\", 0, 14));\n pnUmum.add(jView);\n } catch (JRException ex) {\n JOptionPane.showMessageDialog(null, \"Terjadi Error Pada:\\n\" + ex.toString(), \"Kesalahan\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void positionItems()\n\t{\n\t\t// Log.v(TAG, \".positionItems\");\n\n\t\tint left = 0;\n\n\t\t// Find what should be the \"left\" value of the first child displayed.\n\t\t// This is needed in order to know how much to offset the first item\n\t\t// to the left when it started before the grid's starting time.\n\t\t// So, we find the time difference from the start in minutes,\n\t\t// and convert it to pixels.\n\t\tTimeBasedRelativeLayout firstChild = (TimeBasedRelativeLayout) getChildAt(0);\n\t\tif (firstChild != null)\n\t\t{\n\t\t\tProgram firstProgram = (Program) _adapter.getItem(_firstItemPosition);\n\n\t\t\tint firstChildWidth = firstChild.getMeasuredWidth();\n\t\t\tint thisWidth = getWidth();\n\n\t\t\tif (firstChildWidth > thisWidth)\n\t\t\t{\n\t\t\t\t// This is needed so that programs that are too long to fit the\n\t\t\t\t// visible area of the grid are resized to the grid's width.\n\t\t\t\t// Thus, the program title remains visible to the user at all\n\t\t\t\t// times even during horizontal pagination.\n\n\t\t\t\tfirstChild.setDesiredWidth(thisWidth);\n\t\t\t\tfirstChild.measure(MeasureSpec.AT_MOST, MeasureSpec.EXACTLY);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlong deltaMillis = _gridStartTimeMillis - firstProgram.getStartTime().getTimeInMillis();\n\t\t\t\tdouble roundingOffset = deltaMillis > 0 ? 0.5 : -0.5;\n\t\t\t\tlong deltaMin = (long) (deltaMillis / 60000.0 + roundingOffset);\n\t\t\t\tleft = -(int) (deltaMin * firstChild.getPixelsPerOneMinute());\n\t\t\t}\n\t\t}\n\n\t\tint top = 0;\n\n\t\tint childCount = getChildCount();\n\t\tfor (int index = 0; index < childCount; index++)\n\t\t{\n\t\t\tView child = getChildAt(index);\n\n\t\t\tint width = child.getMeasuredWidth();\n\t\t\tint height = child.getMeasuredHeight();\n\n\t\t\tchild.layout(left, top, left + width, top + height);\n\t\t\tleft += width;\n\t\t}\n\t}", "@Override\n public int getCount() {\n if(gameIdentifier.equals(\"SlidingTiles\")){\n return 9;\n }\n else if(gameIdentifier.equals(\"MemoryMatrix\")){\n return 2;\n }\n return 1;\n }", "@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n View v = convertView;\n if (v == null) {\n LayoutInflater vi = context.getLayoutInflater();\n v = vi.inflate(R.layout.qitem, null);\n }\n TextView tt = (TextView) v.findViewById(R.id.text1);\n TextView bt = (TextView) v.findViewById(R.id.textdesc);\n DataItem dtItem = datalist.get(position);\n if (tt != null) {\n tt.setText(\"Data ID: \"+dIDlist.get(position)+\" Children No: \"+dtItem.getChildNo()); }\n if(bt != null){\n\t\t\t\t\tString data = \" q5: \"+dtItem.getQ5()+\n\t\t\t\t\t\t\t\" q6: \"+dtItem.getQ6()+\n\t\t\t\t\t\t\t\" q7s1: \"+dtItem.getQ7s1()+\n\t\t\t\t\t\t\t\" q7s2: \"+dtItem.getQ7s2()+\n\t\t\t\t\t\t\t\" q7s3: \"+dtItem.getQ7s3()+\n\t\t\t\t\t\t\t\" q7s4: \"+dtItem.getQ7s4()+\n\t\t\t\t\t\t\t\" q7s5: \"+dtItem.getQ7s5()+\n\t\t\t\t\t\t\t\" q8s1: \"+dtItem.getQ8s1()+\n\t\t\t\t\t\t\t\" q8s2: \"+dtItem.getQ8s2()+\n\t\t\t\t\t\t\t\" q8s3: \"+dtItem.getQ8s3()+\n\t\t\t\t\t\t\t\" q8s4: \"+dtItem.getQ8s4()+\n\t\t\t\t\t\t\t\" q8s5: \"+dtItem.getQ8s5()+\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\" q10s1: \"+dtItem.getQ10s1()+\n\t\t\t\t\t\t\t\" q10s2: \"+dtItem.getQ10s2()+\n\t\t\t\t\t\t\t\" q10s3: \"+dtItem.getQ10s3()+\n\t\t\t\t\t\t\t\" q10s4: \"+dtItem.getQ10s4()+\n\t\t\t\t\t\t\t\" q10s5: \"+dtItem.getQ10s5()+\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\" q11: \"+dtItem.getQ11()+\n\t\t\t\t\t\t\t\" q11_Other: \"+dtItem.getQ11_other()+\n\t\t\t\t\t\t\t\" q12: \"+dtItem.getQ12()+\n\t\t\t\t\t\t\t\" q13: \"+dtItem.getQ13()+\n\t\t\t\t\t\t\t\" q14: \"+dtItem.getQ14()+\n\t\t\t\t\t\t\t\" q15: \"+dtItem.getQ15()+\n\t\t\t\t\t\t\t\" q16: \"+dtItem.getQ16()+\n\t\t\t\t\t\t\t\" q17: \"+dtItem.getQ17()+\n\t\t\t\t\t\t\t\" q17_other: \"+dtItem.getQ17_other()+\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\" q18: \"+dtItem.getQ18()+\n\t\t\t\t\t\t\t\" q18_other: \"+dtItem.getQ18_other()+\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\" q19: \"+dtItem.getQ19()+\n\t\t\t\t\t\t\t\" q20: \"+dtItem.getQ20()+\n\t\t\t\t\t\t\t\" q21: \"+dtItem.getQ21()+\n\t\t\t\t\t\t\t\" q22: \"+dtItem.getQ22()+\n\t\t\t\t\t\t\t\" q23: \"+dtItem.getQ23()+\n\t\t\t\t\t\t\t\" q23_other: \"+dtItem.getQ23_other()+\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\" EntryBy: \"+dtItem.getEntryBy()+\n\t\t\t\t\t\t\t\" EntryDate: \"+dtItem.getEntryDate()+\n\t\t\t\t\t\t\t\" EditBy: \"+dtItem.getEditBy()+\n\t\t\t\t\t\t\t\" EditDate: \"+dtItem.getEditDate();\t\n bt.setText(\"Data Collected: \"+ data);\n }\n\n return v;\n\t}", "com.google.monitoring.dashboard.v1.ColumnLayout getColumnLayout();", "void LienaDivisoria(){\r\n \t\r\n VerticalLayout LayoutLineaDivisoria = new VerticalLayout();\r\n LayoutLineaDivisoria.setWidth(\"1024px\");\r\n LayoutLineaDivisoria.setHeight(\"5px\");\r\n LayoutLineaDivisoria.setStyleName(EstiloCSS + \"LayoutLineaDicisoria\");\r\n layout.addComponent(LayoutLineaDivisoria, \"left: 0px; top: 450px;\"); \r\n\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton2 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n txtItemQty = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtItemQty1 = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n lblitem = new javax.swing.JLabel();\n lbliQty = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jButton2.setText(\"Close\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Quintity\");\n\n jLabel4.setText(\"Price\");\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 .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addGap(30, 30, 30)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtItemQty1, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE)\n .addComponent(txtItemQty))\n .addGap(12, 12, 12))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtItemQty, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtItemQty1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n jButton4.setText(\"Save\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n lblitem.setText(\"jLabel1\");\n\n lbliQty.setText(\"jLabel1\");\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 .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton4)))\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(lblitem, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lbliQty, javax.swing.GroupLayout.Alignment.TRAILING, 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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblitem)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lbliQty)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton4))\n .addContainerGap())\n );\n\n pack();\n }", "public void layoutView()\n\t{\n\t\tthis.setLayout(new GridLayout(2,5));\n\t\tthis.add(expression);\n\t\tthis.add(var);\n\t\tthis.add(start);\n\t\tthis.add(end);\n\t\tthis.add(this.plot);\n\t\tthis.add(InputView.coords);\n\t\tthis.add(this.in);\n\t\tthis.add(this.out);\n\t}", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 3;\n\t\t}", "protected abstract int getItemLayoutId();", "@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }", "public static void inventoryListHeader() {\n System.out.println(\n UI.prettyPrint(\"Items Name\", 15) + \" | \"\n + UI.prettyPrint(\"Price\", 10) + \" | \"\n + UI.prettyPrint(\"Quantity\", 5));\n }", "int getItemSize();", "public TableRow build_row(String item_name, String quantity, String price){\n\n //Converts pixel to dp\n int padding_in_dp = 10;\n final float scale = getResources().getDisplayMetrics().density;\n int padd_bottom = (int) (padding_in_dp * scale + 0.5f);\n\n TableRow row = new TableRow(getContext());\n\n TextView item_view = build_view(item_name, 6, false, true, row);\n TextView quantity_view = build_view(quantity, 3,true, false, row);\n TextView price_view = build_view(price,3,true, false, row);\n TextView delete_view = build_view(\"x\",1, true, true, row);\n\n row.addView(item_view);\n row.addView(quantity_view);\n row.addView(price_view);\n row.addView(delete_view);\n\n row.setPadding(0,0,0,padd_bottom);\n\n return row;\n }", "com.google.monitoring.dashboard.v1.RowLayout getRowLayout();", "private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }", "@Override\r\n\tpublic int getCount() {\n\t\treturn 6;\r\n\t}", "private void viewBackpack() {\n Item[] inventory = GameControl.getSortedInventoryList();\r\n \r\n System.out.println(\"\\n List of inventory Items\");\r\n System.out.println(\"Description\" + \"\\t\" + \r\n \"Required\" + \"\\t\" +\r\n \"In Stock\");\r\n \r\n // For each inventory item\r\n for (Item inventoryItem : inventory){\r\n // Display the description, the required amount and amount in stock\r\n System.out.println(InventoryItem.getType + \"\\t \" +\r\n InventoryItem.requiredAmount + \"\\t \" +\r\n InventoryItem.getQuantity);\r\n }\r\n \r\n }", "private VerticalLayout buildGridInfo() {\n\t\tgridInfo = new VerticalLayout();\r\n\t\tgridInfo.setImmediate(false);\r\n\t\tgridInfo.setWidth(\"100%\");\r\n\t\tgridInfo.setHeight(\"100.0%\");\r\n\t\tgridInfo.setMargin(false);\r\n\t\tgridInfo.setSpacing(true);\r\n\t\t\r\n\t\t// gridTitle\r\n\t\tgridTitle = buildGridTitle();\r\n\t\tgridInfo.addComponent(gridTitle);\r\n\t\tgridInfo.setExpandRatio(gridTitle, 1.0f);\r\n\t\t\r\n\t\t// gridData\r\n\t\tgridData = buildGridData();\r\n\t\tgridInfo.addComponent(gridData);\r\n\t\tgridInfo.setExpandRatio(gridData, 1.0f);\r\n\t\t\r\n\t\treturn gridInfo;\r\n\t}", "public static void main(String[] args) {\n\t\tDecimalFormat k_10df = new DecimalFormat(\"###,###,###,###,###\");\n //숫자 5 이름 32 가격 15 수량 2 총가격 15\n\t\tString[] k_10itemname = { // item이름을 위한 배열이다\n\t\t\t\t\"01 테스트라면555 3,000 1 3,000\", \n\t\t\t\t\"02* 맛asdadad포카칩 1,000 2 2,000\",\n\t\t\t\t\"03 ddd초코센드위치ss위치 1,000 2 2,000\", \n\t\t\t\t\"04 피시방햄버거는맛없어 1,000 12 13,000\",//틀린거 \n\t\t\t\t\"05* 치즈없는피자 111,000 2 223,000\", \n\t\t\t\t\"06 맛있는포카칩 1,000 2 2,000\", \n\t\t\t\t\"07 뉴질랜드산항이 11,000 2 2,000\", \n\t\t\t\t\"08* 오늘의커피아이스 7,000 2 12,000\", //틀린거 \n\t\t\t\t\"09 시티위아아 1,000 2 2,000\", \n\t\t\t\t\"10 가나가맛있어 1,000 2 2,000\", \n\t\t\t\t\"11 스물두번째과자 800 2 1,600\", \n\t\t\t\t\"12 (싸이버버세트라지 4,000 2 8,000\", \n\t\t\t\t\"13 aaa프링클스오리지널 1,000 2 2,000\",\n\t\t\t\t\"14 55포카칩어니언맛 1,000 2 2,000\", \n\t\t\t\t\"15 떡없는떡볶이 1,000 6 6,000\", \n\t\t\t\t\"16* 호식이두마리치킨 1,000 2 2,000\", \n\t\t\t\t\"17* 땅땅치킨매운맛 3,000 2 6,000\", \n\t\t\t\t\"18 라면은역시매고랭 1,000 2 2,000\", \n\t\t\t\t\"19 된장찌개맛사탕 1,000 2 2,000\", \n\t\t\t\t\"20 삼겹살맛치토스 1,000 2 2,000\", \n\t\t\t\t\"21* 나홀로집에세트 1,000 2 2,000\", \n\t\t\t\t\"22 자바칩세트는맛없다 1,000 2 2,000\",\n\t\t\t\t\"23* 오레오레오레오 1,000 2 2,000\", \n\t\t\t\t\"24 자바에이드 1,000 2 2,000\", \n\t\t\t\t\"25 자이언트자바 1,000 2 2,000\", \n\t\t\t\t\"26 이건오떡오떡 2,000 10 20,100\", // 틀린거 \n\t\t\t\t\"27 마지막과자세트 1,000 11 11,000\", \n\t\t\t\t\"28* 차가운삼각김밥 1,000 2 2,000\", \n\t\t\t\t\"29 신라면짜장맛 1,000 2 2,000\", \n\t\t\t\t\"30 맛탕과김치 1,000 2 2,000\" }; \n\t\t\n\t\tfor (int k_10_i = 0; k_10_i < k_10itemname.length; k_10_i++) {\n\t\t\tString k_10_ToString = k_10itemname[k_10_i].toString();\n\t\t\tbyte [] k_10_bb = k_10_ToString.getBytes();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tString k_10_number = new String (k_10_bb,0,5);\t\t\t\t\t\t\t\t\t\t// 1번째부터 5바이트만큼 크기로 정의\n\t\t\tString k_10_name = new String (k_10_bb,5,33);\t\t\t\t\t\t\t\t\t\t// 6번째부터 33바이트만큼 크기로 정의\n\t\t\tString k_10_price1 = new String (k_10_bb,35,15);\t\t\t\t\t\t\t\t\t// 36번째부터 15바이트만큼 크기로 정의\n\t\t\tString k_10_units1 = new String (k_10_bb,55,10);\t\t\t\t\t\t\t\t\t// 56번째부터 10바이트만큼 크기로 정의\n\t\t\tString k_10_totalprice1 = new String (k_10_bb,60,14);\t\t\t\t\t\t\t\t// 61번째부터 14바이트만큼 크기로 정의\n\t\t\t\n\t\t\tint k_10_price = Integer.parseInt(k_10_price1.replace(\",\", \"\").trim());\t\t\t\t// int로 바꾸고 , 제거 후 공백도 제거\n\t\t\tint k_10_units = Integer.parseInt(k_10_units1.replace(\",\", \"\").trim());\t\t\t\t// int로 바꾸고 , 제거 후 공백도 제거\n\t\t\t\n\t\t\t//String price1 = k_10itemname[i].substring(33, 48);\n\t\t\t\n\t\t\t//String units1 = k_10itemname[i].substring(45, 58);\n\n\t\t\tint k_10_totalprice = Integer.parseInt(k_10_totalprice1.replace(\",\", \"\").trim()); // int로 바꾸고 , 제거 후 공백도 제거\n\t\t\t\n\t\t\tif(k_10_price * k_10_units != k_10_totalprice) {\n\t\t\t\tSystem.out.println(\"******************************\");\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\tSystem.out.printf(\"오류[%s%s%10s%10s%10s]\\n\", k_10_number, k_10_name, k_10_price1, k_10_units1, k_10df.format(k_10_totalprice));\t\t\t// ( ) 출력\n\t\t\t\tSystem.out.printf(\"수정[%s%s%10s%10s%10s]\\n\", k_10_number, k_10_name, k_10_price1, k_10_units1, k_10df.format(k_10_price * k_10_units));\t// ( ) 출력\n\t\t\t\tSystem.out.println(\"******************************\");\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}\n\t\t\t\t\n\t\t}\n\t\n\t\t\n\t}", "public VerticalLayout() {\n setWidth(\"100%\");\n setSpacing(true);\n setMargin(true);\n }", "private JPanel getCollectionSizePanel() {\n\t\tif (collectionSizePanel == null) {\n\t\t\tFlowLayout flowLayout1 = new FlowLayout();\n\t\t\tflowLayout1.setAlignment(FlowLayout.RIGHT);\n\t\t\tcollectionSizeLabel = new JLabel();\n\t\t\tcollectionSizeLabel.setText(\"Размер набора\");\n\t\t\tcollectionSizePanel = new JPanel();\n\t\t\tcollectionSizePanel.setLayout(flowLayout1);\n\t\t\tcollectionSizePanel.add(collectionSizeLabel, null);\n\t\t\tcollectionSizePanel.add(getNabor(), null);\n\t\t}\n\t\treturn collectionSizePanel;\n\t}", "private void printDecreaseItemQuantityMenu(Shop shop, FileManager fileManager) {\n ArrayList<Tool> toolList = new ArrayList<Tool>();\n String selection = \"Y\";\n toolList = sellTools(shop, toolList, selection);\n createAutoOrder(shop, fileManager, toolList);\n }", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 7;\n\t\t}", "protected interface DockItemsColumns {\n\n /** The item title */\n public static final String TITLE = \"title\";\n\n /** The item intent */\n public static final String INTENT = \"intent\";\n\n /** The item type */\n public static final String ITEM_TYPE = \"itemType\";\n\n /** The icon type */\n public static final String ICON_TYPE = \"iconType\";\n\n /** The icon package */\n public static final String ICON_PACKAGE = \"iconPackage\";\n\n /** The icon resource */\n public static final String ICON_RESOURCE = \"iconResource\";\n\n /** The icon */\n public static final String ICON = \"icon\";\n\n /** The item position in the dock */\n public static final String POSITION = \"position\";\n\n /** Wether the dock should automatically close after the item is being pressed */\n public static final String STICKY = \"sticky\";\n }", "@Override\r\n\tpublic int getCount() {\n\t\treturn 3;\r\n\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 }", "private int numberOfColumns() {\n DisplayMetrics displayMetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n // You can change this divider to adjust the size of the recipe cards\n int widthDivider = 300;\n int width = displayMetrics.widthPixels;\n int numOfColumns = width / widthDivider;\n if (numOfColumns < 2) {\n return 2;\n }\n return numOfColumns;\n }", "@Override\n\t\t\tpublic int getItemType(int realPosition) {\n\n\t\t\t\treturn realPosition % 5;\n\t\t\t}", "public int getItemQty() {\n return itemQty;\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 }", "@AutoGenerated\r\n\tprivate GridLayout buildGridLayout_4() {\n\t\tgridLayout_4 = new GridLayout();\r\n\t\tgridLayout_4.setWidth(\"100.0%\");\r\n\t\tgridLayout_4.setHeight(\"100.0%\");\r\n\t\tgridLayout_4.setImmediate(false);\r\n\t\tgridLayout_4.setMargin(false);\r\n\t\tgridLayout_4.setSpacing(true);\r\n\t\tgridLayout_4.setColumns(5);\r\n\t\tgridLayout_4.setRows(7);\r\n\t\t\r\n\t\t// frmtLbl\r\n\t\tfrmtLbl = new Label();\r\n\t\tfrmtLbl.setWidth(\"-1px\");\r\n\t\tfrmtLbl.setHeight(\"-1px\");\r\n\t\tfrmtLbl.setValue(\"Format\");\r\n\t\tfrmtLbl.setImmediate(false);\r\n\t\tgridLayout_4.addComponent(frmtLbl, 0, 1);\r\n\t\t\r\n\t\t// slctFrmt\r\n\t\tslctFrmt = new NativeSelect();\r\n\t\tslctFrmt.setWidth(\"-1px\");\r\n\t\tslctFrmt.setHeight(\"-1px\");\r\n\t\tslctFrmt.setImmediate(false);\r\n\t\tslctFrmt.addItem(\"mp4\");\r\n\t\tslctFrmt.addItem(\"avi\");\r\n\t\tslctFrmt.addItem(\"mov\");\r\n\t\tslctFrmt.addItem(\"flv\");\r\n\t\tslctFrmt.setValue(\"mp4\"); //set default video format\r\n\t\tgridLayout_4.addComponent(slctFrmt, 1, 1);\r\n\t\t\r\n\t\t// cdcLbl\r\n\t\tcdcLbl = new Label();\r\n\t\tcdcLbl.setWidth(\"-1px\");\r\n\t\tcdcLbl.setHeight(\"-1px\");\r\n\t\tcdcLbl.setValue(\"Codec\");\r\n\t\tcdcLbl.setImmediate(false);\r\n\t\tgridLayout_4.addComponent(cdcLbl, 0, 2);\r\n\t\t\r\n\t\t// slctCdc\r\n\t\tslctCdc = new NativeSelect();\r\n\t\tslctCdc.setWidth(\"-1px\");\r\n\t\tslctCdc.setHeight(\"-1px\");\r\n\t\tslctCdc.setImmediate(false);\r\n\t\tgridLayout_4.addComponent(slctCdc, 1, 2);\r\n\t\t\r\n\t\treturn gridLayout_4;\r\n\t}", "@Override\n public int itemLayoutRes()\n {\n return R.layout.recommendlist_item;\n }", "public int getSlots() {\n\t\treturn this.rows * 9;\n\t}", "private Rect LayoutTemplet1(int index, Rect rect, int overIndex, int times) {\n int x, y;\n\n int frontHeight = getFrontHeight(1);\n overIndex = overIndex - getFrontItemCount(1);\n\n if (overIndex == 0) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 1) {\n x = mHorizontalPadding + mItemWidth;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 2) {\n x = mHorizontalPadding + mItemWidth * 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 3) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 4) {\n x = mHorizontalPadding + mItemWidth;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 5) {\n x = mHorizontalPadding + mItemWidth * 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n }\n\n return rect;\n }", "public void distributeSelectedFurnitureHorizontally() {\n distributeSelectedFurniture(true);\n }", "public int getListWidth()\n {\n return 375;\n }", "@AutoGenerated\r\n\tprivate VerticalLayout buildVerticalLayout_4() {\n\t\tverticalLayout_4 = new VerticalLayout();\r\n\t\tverticalLayout_4.setWidth(\"100.0%\");\r\n\t\tverticalLayout_4.setHeight(\"100.0%\");\r\n\t\tverticalLayout_4.setImmediate(false);\r\n\t\tverticalLayout_4.setMargin(false);\r\n\t\t\r\n\t\t// gridLayout_5\r\n\t\tgridLayout_5 = buildGridLayout_5();\r\n\t\tverticalLayout_4.addComponent(gridLayout_5);\r\n\t\t\r\n\t\treturn verticalLayout_4;\r\n\t}", "private Rect LayoutTemplet3(int index, Rect rect, int overIndex, int times) {\n int x, y;\n\n int frontHeight = getFrontHeight(3);\n overIndex = overIndex - getFrontItemCount(3);\n\n if (overIndex == 0) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mSlotWidth + mItemWidth / 2, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 1) {\n x = mHorizontalPadding + mItemWidth * 3 / 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mSlotWidth + mItemWidth / 2, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 2) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 2;\n rect.set(x, y, x + mSlotWidth + mItemWidth / 2, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 3) {\n x = mHorizontalPadding + mItemWidth * 3 / 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 2;\n rect.set(x, y, x + mSlotWidth + mItemWidth / 2, y + mItemHeight + mSlotHeight);\n }\n\n return rect;\n }", "@Override\r\n\t\t\tpublic int getCount() {\n\t\t\t\treturn 2;\r\n\t\t\t}", "Items(int quantidade,Produto produto){\n\t\tqntd = quantidade;\n\t\tthis.produto = produto;\n\t\t\n\t}", "private TileGrid createItemsTileGrid() {\n\t\titemsTileGrid.setBorder(\"1px solid #C0C3C7\");\r\n\t\titemsTileGrid.setTileWidth(100);\r\n\t\titemsTileGrid.setTileHeight(140);\r\n\t\titemsTileGrid.setTileValueAlign(\"left\");\r\n\t\titemsTileGrid.setWidth100();\r\n\t\titemsTileGrid.setHeight100();\r\n\t\titemsTileGrid.setAnimateTileChange(true);\r\n\t\t\r\n\t\titemsTileGrid.setShowAllRecords(true);\r\n\t\titemsTileGrid.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\titemsTileGrid.setAutoFetchData(false);\r\n\r\n\t\tDetailViewerField imageField = new DetailViewerField(\"imageKey\");\r\n\t\tDetailViewerField name = new DetailViewerField(\"name\");\r\n\t\tDetailViewerField company = new DetailViewerField(\"company\");\r\n\t\tDetailViewerField ownerNickName = new DetailViewerField(\"ownerNickName\");\r\n\t\tDetailViewerField averageRating = new DetailViewerField(\"averageRating\");\r\n\t\t//show star images for the average rating\r\n\t\taverageRating.setDetailFormatter(new DetailFormatter() {\r\n\t\t\tpublic String format(Object value, DetailViewerRecord record,\r\n\t\t\t\t\tDetailViewerField field) {\r\n\t\t\t\t\tint averageRating = record.getAttributeAsInt(\"averageRating\");\r\n\t\t\t\t\tint numberOfRatings = record.getAttributeAsInt(\"numberOfRatings\");\r\n\t\t\t\treturn createStarsHTMLString(averageRating) + \" / \" + numberOfRatings;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tDetailViewerField lastUpdated = new DetailViewerField(\"lastUpdated\");\r\n\t\tlastUpdated.setDetailFormatter(new DetailFormatter() {\r\n\t\t\tpublic String format(Object value, DetailViewerRecord record,\r\n\t\t\t\t\tDetailViewerField field) {\r\n\t\t\t\t\tDate lastUpdated = record.getAttributeAsDate(\"lastUpdated\");\r\n\t\t\t if(lastUpdated == null) return null; \r\n\t\t\t return dateFormatter.format(lastUpdated);\r\n\t\t\t}\r\n\t\t}\r\n\t\t);\r\n\t\titemsTileGrid.setFields(imageField, name, company ,ownerNickName, \r\n\t\t\t\taverageRating, lastUpdated);\r\n\t\titemsTileGrid.addRecordClickHandler(new RecordClickHandler() {\r\n\t\t\tpublic void onRecordClick(RecordClickEvent event) {\r\n\t\t\t\tSwagItemGWTDTO dto = new SwagItemGWTDTO();\r\n\t\t\t\tSmartGWTRPCDataSource.copyValues(event.getRecord(),dto);\r\n\t\t\t\tprepareAndShowEditForm(event.getRecord());\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn itemsTileGrid;\r\n\t}", "@Override\r\n\tpublic int getCount() {\n\t\treturn 5;\r\n\t}", "final void layoutChildren(final boolean queryAdapter) {\n final int paddingLeft = getPaddingLeft();\n final int paddingRight = getPaddingRight();\n final int itemMargin = mItemMargin;\n final int colWidth =\n (getWidth() - paddingLeft - paddingRight - itemMargin * (mColCount - 1)) / mColCount;\n int rebuildLayoutRecordsBefore = -1;\n int rebuildLayoutRecordsAfter = -1;\n\n Arrays.fill(mItemBottoms, Integer.MIN_VALUE);\n\n final int childCount = getChildCount();\n for (int i = 0; i < childCount; i++) {\n View child = getChildAt(i);\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n int col = lp.column;\n final int[] margins = lp.margins;\n final int position = mFirstPosition + i;\n final boolean needsLayout = queryAdapter || child.isLayoutRequested();\n boolean newChild = false;\n if (position >= mItemCount) {\n // Sometimes it happens...\n final View toDelete = getSpannedChildAt(i);\n removeViewAt(i);\n if (toDelete != null) {\n // Offset children in case our last child was max spanned\n final int height = toDelete.getHeight();\n offsetChildren(height);\n }\n continue;\n }\n\n if (queryAdapter) {\n View newView = obtainView(position, child);\n if (newView != child) {\n removeViewAt(i);\n addView(newView, i);\n child = newView;\n newChild = true;\n }\n lp = (LayoutParams) child.getLayoutParams(); // Might have changed\n\n lp.column = col; // XXX Initial version of StaggeredGridView actually forgets to correct columns which is a nasty bug\n lp.margins = margins;\n }\n\n final int span = Math.min(mColCount, lp.span);\n final int widthSize = colWidth * span + itemMargin * (span - 1);\n\n if (needsLayout) {\n final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY);\n\n final int heightSpec;\n if (lp.height == LayoutParams.WRAP_CONTENT) {\n heightSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);\n } else if (lp.height == LayoutParams.MATCH_PARENT) {\n /*heightSpec = getChildMeasureSpec(\n MeasureSpec.makeMeasureSpec(getMeasuredHeight(), MeasureSpec.AT_MOST),\n getPaddingTop() + getPaddingBottom(),\n lp.height\n );*/\n // XXX HACK\n heightSpec = MeasureSpec.makeMeasureSpec(getMeasuredHeight() - getPaddingTop() - getPaddingBottom(),\n MeasureSpec.EXACTLY);\n } else {\n heightSpec = MeasureSpec.makeMeasureSpec(lp.height, MeasureSpec.EXACTLY);\n }\n\n child.measure(widthSpec, heightSpec);\n }\n\n int childTop = mItemBottoms[col] > Integer.MIN_VALUE ? mItemBottoms[col] + mItemMargin\n : /*child.getTop() + (*/newChild ? mItemMargin + getPaddingTop() : child.getTop()/*0)*/;\n if (span > 1) {\n int lowest = childTop;\n for (int j = col + 1; j < col + span; j++) {\n final int bottom = mItemBottoms[j] + mItemMargin;\n if (bottom > lowest) {\n lowest = bottom;\n }\n }\n childTop = lowest;\n }\n final int childHeight = child.getMeasuredHeight();\n final int childBottom = childTop + childHeight;\n final int childLeft = paddingLeft + col * (colWidth + itemMargin);\n final int childRight = childLeft + child.getMeasuredWidth();\n child.layout(childLeft, childTop, childRight, childBottom);\n\n for (int j = col; j < col + span; j++) {\n mItemBottoms[j] = childBottom;\n }\n\n final LayoutRecord rec = mLayoutRecords.get(position);\n if (rec != null && rec.height != childHeight) {\n // Invalidate our layout records for everything before this.\n rec.height = childHeight;\n /*\n * XXX was \"rebuildLayoutRecordsBefore\" previously\n * Rebuilding layout records \"before\" this position\n * leads to a nasty bug - margins for spanned children disappear\n * and the grid layouts children incorrectly\n * I DON'T REALLY KNOW WHY THIS IS SO....\n */\n rebuildLayoutRecordsAfter = position;\n }\n\n if (rec != null && rec.span != span) {\n // Invalidate our layout records for everything after this.\n rec.span = span;\n rebuildLayoutRecordsAfter = position;\n }\n\n }\n\n // Update mItemBottoms for any empty columns\n for (int i = 0; i < mColCount; i++) {\n if (mItemBottoms[i] == Integer.MIN_VALUE) {\n mItemBottoms[i] = mItemTops[i];\n }\n }\n\n if (rebuildLayoutRecordsBefore >= 0 || rebuildLayoutRecordsAfter >= 0) {\n if (rebuildLayoutRecordsBefore >= 0) {\n invalidateLayoutRecordsBeforePosition(rebuildLayoutRecordsBefore);\n }\n if (rebuildLayoutRecordsAfter >= 0) {\n invalidateLayoutRecordsAfterPosition(rebuildLayoutRecordsAfter);\n }\n for (int i = 0; i < childCount; i++) {\n final int position = mFirstPosition + i;\n final View child = getChildAt(i);\n final LayoutParams lp = (LayoutParams) child.getLayoutParams();\n LayoutRecord rec = mLayoutRecords.get(position);\n if (rec == null) {\n rec = new LayoutRecord();\n mLayoutRecords.put(position, rec);\n }\n rec.column = lp.column;\n rec.height = child.getHeight();\n rec.id = lp.id;\n final int span = Math.min(mColCount, lp.span);\n rec.span = span;\n rec.mMargins = lp.margins;\n }\n }\n }", "public abstract int layoutWidth();", "@Override\n\tpublic int getCount() {\n\t\treturn 3;\n\t}", "@Override\n\tpublic int getCount() {\n\t\treturn 3;\n\t}", "public void show(){\n\n \t//Declaring all the variables. Will be using Text Fields\n \tJFrame frame = new JFrame(\"IIITD Fruit Stall\");\n \t\n \t//Setting up the Header Panel\n \tJLabel inven = new JLabel(\"Inventory\",SwingConstants.CENTER);\t\n \tJLabel user = new JLabel(\"User\",SwingConstants.CENTER);\n \tJTextField i1 = new JTextField(\"Items\",SwingConstants.CENTER);\n \ti1.setEnabled(false);\n \tJTextField q1 = new JTextField(\"Quantity\",SwingConstants.CENTER);\n \tq1.setEnabled(false);\n \tJTextField i2 = new JTextField(\"Items\",SwingConstants.CENTER);\n \ti2.setEnabled(false);\n \tJTextField q2 = new JTextField(\"Quantity\",SwingConstants.CENTER);\n \tq2.setEnabled(false);\n \t\n \t\n \t//Making the grid\n \t\n \tJPanel panel = new JPanel(new GridBagLayout());\n GridBagConstraints cst = new GridBagConstraints();\n \n \n \n \n /* ----------------------------------------------------------\n * MAKING THE HEADER PANELS\n * ----------------------------------------------------------\n */\n \n \n //Adding the Inventory and the User Grids\n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=0;\n cst.gridwidth=2;\n panel.add(inven,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=0;\n cst.gridwidth=2;\n panel.add(user, cst);\n \n \n //Adding the Items and Quantity tags\n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=2;\n cst.gridwidth=1;\n panel.add(i1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=2;\n cst.gridwidth=1;\n panel.add(q1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=2;\n cst.gridwidth=1;\n panel.add(i2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=2;\n cst.gridwidth=1;\n panel.add(q2,cst);\n \n \n /* ----------------------------------------------------------\n * FOR THE INVENTORY\n * ----------------------------------------------------------\n */\n \n //Fruit and Quantity list \n JTextField a1 = new JTextField(\"Apple\",SwingConstants.CENTER);\t\n a1.setEnabled(false);\n \t\n \tJTextField m1 = new JTextField(\"Mango\",SwingConstants.CENTER);\t\n \tm1.setEnabled(false);\n \t\n \tJTextField o1 = new JTextField(\"Orange\",SwingConstants.CENTER);\t\n \to1.setEnabled(false);\n \t\n \tJTextField p1 = new JTextField(\"Pineapple\",SwingConstants.CENTER);\t\n \tp1.setEnabled(false);\n \t\n \tJTextField b1 = new JTextField(\"Banana\",SwingConstants.CENTER);\t\n \tb1.setEnabled(false);\n \t\n \tJTextField aq1 = new JTextField(\"10\");\t\n \taq1.setEnabled(false);\n \t\n \tJTextField mq1 = new JTextField(\"6\");\t\n \tmq1.setEnabled(false);\n \t\n \tJTextField oq1 = new JTextField(\"8\");\t\n \toq1.setEnabled(false);\n \t\n \tJTextField pq1 = new JTextField(\"2\");\t\n \tpq1.setEnabled(false);\n \t\n \tJTextField bq1 = new JTextField(\"4\");\t\n \tbq1.setEnabled(false);\n \t\n \t//Displaying the inventory lists\n \t\n \tcst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=4;\n cst.gridwidth=1;\n panel.add(a1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=5;\n cst.gridwidth=1;\n panel.add(m1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=6;\n cst.gridwidth=1;\n panel.add(o1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=7;\n cst.gridwidth=1;\n panel.add(p1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=8;\n cst.gridwidth=1;\n panel.add(b1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=4;\n cst.gridwidth=1;\n panel.add(aq1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=5;\n cst.gridwidth=1;\n panel.add(mq1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=6;\n cst.gridwidth=1;\n panel.add(oq1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=7;\n cst.gridwidth=1;\n panel.add(pq1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=8;\n cst.gridwidth=1;\n panel.add(bq1,cst);\n \t\n /* ----------------------------------------------------------\n * FOR THE USER\n * ----------------------------------------------------------\n */\n \n JTextField a2 = new JTextField(\"Apple\");\t\n a2.setEnabled(false);\n \t\n \tJTextField m2 = new JTextField(\"Mango\");\t\n \tm2.setEnabled(false);\n \t\n \tJTextField o2 = new JTextField(\"Orange\");\t\n \to2.setEnabled(false);\n \t\n \tJTextField p2 = new JTextField(\"Pineapple\");\t\n \tp2.setEnabled(false);\n \t\n \tJTextField b2 = new JTextField(\"Banana\");\t\n \tb2.setEnabled(false);\n \t\n \tJTextField aq2 = new JTextField(\"0\");\t\n \t\n \t\n \tJTextField mq2 = new JTextField(\"0\");\t\n \t\n \t\n \tJTextField oq2 = new JTextField(\"0\");\t\n \t\n \t\n \tJTextField pq2 = new JTextField(\"0\");\t\n \t\n \n \tJTextField bq2 = new JTextField(\"0\");\t\n \n \n \t\n \t//Displaying the user lists\n \t\n \t\n \tcst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=4;\n cst.gridwidth=1;\n panel.add(a2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=5;\n cst.gridwidth=1;\n panel.add(m2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=6;\n cst.gridwidth=1;\n panel.add(o2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=7;\n cst.gridwidth=1;\n panel.add(p2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=8;\n cst.gridwidth=1;\n panel.add(b2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=4;\n cst.gridwidth=1;\n panel.add(aq2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=5;\n cst.gridwidth=1;\n panel.add(mq2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=6;\n cst.gridwidth=1;\n panel.add(oq2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=7;\n cst.gridwidth=1;\n panel.add(pq2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=8;\n cst.gridwidth=1;\n panel.add(bq2,cst);\n \n /* ----------------------------------------------------------\n * Total Fields\n * ----------------------------------------------------------\n */\n \n JTextField t1 = new JTextField(\"Total\");\t\n t1.setEnabled(false);\n \t\n \tJTextField tq1 = new JTextField(\"30\");\t\n \ttq1.setEnabled(false);\n \t\n \tJTextField t2 = new JTextField(\"Total\");\t\n \tt2.setEnabled(false);\n \t\n \tfinal JTextField tq2 = new JTextField(\"0\");\t\n \ttq2.setEditable(false);\n \n \t//Displaying the total cells \n \t\n \t cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=9;\n cst.gridwidth=1;\n panel.add(t1,cst);\n \n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=9;\n cst.gridwidth=1;\n panel.add(tq1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=9;\n cst.gridwidth=1;\n panel.add(t2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=9;\n cst.gridwidth=1;\n panel.add(tq2,cst);\n \n /*\n * The following commented code was written in order to change the \"Total\" field dynamically.\n * Changed after a query raised on BackPack.\n */\n \n /*DocumentFilter df = new DocumentFilter() {\n @Override\n public void insertString(FilterBypass fb, int i, String string, AttributeSet as) throws BadLocationException {\n\n if (isDigit(string)) {\n super.insertString(fb, i, string, as);\n calcAndSetTotal();\n }\n }\n\n @Override\n public void remove(FilterBypass fb, int i, int i1) throws BadLocationException {\n super.remove(fb, i, i1);\n calcAndSetTotal();\n }\n\n @Override\n public void replace(FilterBypass fb, int i, int i1, String string, AttributeSet as) throws BadLocationException {\n if (isDigit(string)) {\n super.replace(fb, i, i1, string, as);\n calcAndSetTotal();\n\n }\n }\n\n private boolean isDigit(String string) {\n for (int n = 0; n < string.length(); n++) {\n char c = string.charAt(n); \n if (!Character.isDigit(c)) {\n return false;\n }\n }\n return true;\n }\n\n void calcAndSetTotal() {\n int sum = 0;\n\n if (!aq2.getText().isEmpty()) {\n sum += Integer.parseInt(aq2.getText());//we must add this\n }\n if (!mq2.getText().isEmpty()) {\n sum += Integer.parseInt(mq2.getText());//we must add this\n }\n if (!oq2.getText().isEmpty()) {\n sum += Integer.parseInt(oq2.getText());//we must add this\n }\n if (!pq2.getText().isEmpty()) {\n sum += Integer.parseInt(pq2.getText());//we must add this\n }\n if (!bq2.getText().isEmpty()) {\n sum += Integer.parseInt(bq2.getText());//we must add this\n }\n \n tq2.setText(String.valueOf(sum));\n }\n };\n \n ((AbstractDocument) (aq2.getDocument())).setDocumentFilter(df);\n ((AbstractDocument) (mq2.getDocument())).setDocumentFilter(df);\n ((AbstractDocument) (oq2.getDocument())).setDocumentFilter(df);\n ((AbstractDocument) (pq2.getDocument())).setDocumentFilter(df);\n ((AbstractDocument) (bq2.getDocument())).setDocumentFilter(df);\n \n \t*/\n \n \n /* ----------------------------------------------------------\n * MAKING THE SUBMIT BUTTON\n * ----------------------------------------------------------\n */\n \t\n JButton b = new JButton(\"Submit\");\n \n /*\n * Adding the Action listener on the Button --------------------\n * \n */\n \n b.addActionListener(new ActionListener(){\n \t public void actionPerformed(ActionEvent e){\n \t \tint sum=0;\n \t int v1=Integer.parseInt(aq2.getText());\n \t int v2=Integer.parseInt(mq2.getText());\n \t int v3=Integer.parseInt(oq2.getText());\n \t int v4=Integer.parseInt(pq2.getText());\n \t int v5=Integer.parseInt(bq2.getText());\n \t \n \t int a= Integer.parseInt(aq1.getText());\n \t int m=Integer.parseInt(mq1.getText());\n \t int o=Integer.parseInt(oq1.getText());\n \t int p=Integer.parseInt(pq1.getText());\n \t int b=Integer.parseInt(bq1.getText());\n \t \n \t if (v1<=a){\n \t \tsum+=v1;\n \t \ta=a-v1;\n \t \tif (a==0){\n \t \t\taq2.setEnabled(false);\n \t \t}\n \t \taq1.setText(Integer.toString(a));\n \t }\n \t if (v2<=m){\n \t \tsum+=v2;\n \t \tm=m-v2;\n \t \tif (m==0){\n \t \t\tmq2.setEnabled(false);\n \t \t}\n \t \tmq1.setText(Integer.toString(m));\n \t }\n \t if (v3<=o){\n \t \tsum+=v3;\n \t \to=o-v3;\n \t \tif (o==0){\n \t \t\toq2.setEnabled(false);\n \t \t}\n \t \toq1.setText(Integer.toString(o));\n \t }\n \t if (v4<=p){\n \t \tsum+=v4;\n \t \tp=p-v4;\n \t \tif (p==0){\n \t \t\tpq2.setEnabled(false);\n \t \t}\n \t \tpq1.setText(Integer.toString(p));\n \t }\n \t if (v5<=b){\n \t \tsum+=v5;\n \t \tb=b-v5;\n \t \tif (b==0){\n \t \t\tbq2.setEnabled(false);\n \t \t}\n \t \tbq1.setText(Integer.toString(b));\n \t }\n \t aq2.setText(\"0\");\n \t mq2.setText(\"0\");\n \t oq2.setText(\"0\");\n \t pq2.setText(\"0\");\n \t bq2.setText(\"0\");\n \t \n \t tq1.setText(Integer.toString(a+m+o+p+b));\n \t tq2.setText(Integer.toString(sum));\n \t }\n\n });\n \n // Displaying the Button\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=13;\n cst.gridwidth=1;\n panel.add(b,cst);\n\n \n //Displaying the Whole Frame\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.getContentPane().add(panel);\n frame.pack();\n frame.setVisible(true);\n \n \n \n\t}", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, final int arg2,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\tTableLayout tl=(TableLayout)arg1;\r\n\t\t\t\tTableRow tr=(TableRow)tl.getChildAt(0);\r\n\t\t\t\tfor(int i=0;i<4;i++){\r\n\t\t\t\t\tfinal TextView tv=(TextView)tr.getChildAt(i);\r\n\t\t\t\t\tTextPaint mTextPaint=tv.getPaint();\r\n\t\t\t\t\tfinal float textWidth=mTextPaint.measureText(bl.get(arg2)[i]);\r\n\t\t\t\t\tif(i==1){\r\n\t\t\t\t\t\tif(textWidth>84.0){\r\n\t\t\t\t\t\t\ttv.setOnClickListener(new View.OnClickListener() {\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\tisubject=bl.get(arg2)[0];\r\n\t\t\t\t\t\t\t\t\tiamount=bl.get(arg2)[1];\r\n\t\t\t\t\t\t\t\t\timode=bl.get(arg2)[2];\r\n\t\t\t\t\t\t\t\t\tidate=bl.get(arg2)[3];\r\n\t\t\t\t\t\t\t\t\tshowDialog(DETAIL_DIALOG);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(i==0||i==2){\r\n\t\t\t\t\t\tif(textWidth>100.0){\r\n\t\t\t\t\t\t tv.setOnClickListener(new View.OnClickListener() {\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t\t\t\tisubject=bl.get(arg2)[0];\r\n\t\t\t\t\t\t\t\tiamount=bl.get(arg2)[1];\r\n\t\t\t\t\t\t\t\timode=bl.get(arg2)[2];\r\n\t\t\t\t\t\t\t\tidate=bl.get(arg2)[3];\r\n\t\t\t\t\t\t\t\tshowDialog(DETAIL_DIALOG);\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\t}\r\n\t\t\t\t}\r\n\t\t\t}", "public void item(){\r\n\r\n\t\titemF = new JFrame(); \r\n\t\titemF.setTitle(\"MavBay\");\r\n\t\titemF.setSize(1000,800);\r\n\t\titemF.setLocation(150,150);\r\n\t\titemF.setVisible(true);\r\n\t\titemF.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t JPanel pan = new JPanel();\r\n\t pan.setLayout(new GridBagLayout());\r\n\t pan.setBackground(new Color(100,100,100));\r\n\t GridBagConstraints c = new GridBagConstraints();\r\n\t JPanel pan2 = new JPanel();\r\n\t pan2.setBackground(new Color(100,100,100));\r\n\t JPanel pan3 = new JPanel();\r\n\t pan3.setBackground(new Color(100,100,100));\r\n\t JLabel empL= new JLabel(\"Items Not Sold\");\r\n\t empL.setForeground(Color.BLUE);\r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 10; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1; \r\n\t c.gridx = 2;\r\n\t c.gridy = 1;\t \r\n\t pan.add(empL,c);\r\n\t itemL= new JList(myEnt.convertItem(myEnt.getItems()));\r\n\t itemL.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t empS= new JScrollPane(itemL);\t \r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 80; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1; \r\n\t c.gridx = 2;\r\n\t c.gridy = 2;\r\n\t pan.add(empS, c);\r\n\t JButton but;\r\n\t but = new JButton(\"Not Sold Item Details\");\r\n\t but.setForeground(Color.BLUE);\r\n\t but.setBackground(Color.GRAY);\r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 20; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1;\r\n\t c.gridheight= 1;\t \t\t \r\n\t c.gridx = 2;\r\n\t c.gridy = 3;\r\n\t but.addActionListener(this);\r\n\t pan.add(but, c);\r\n\t JLabel empL1= new JLabel(\"Items Sold\");\r\n\t empL1.setForeground(Color.BLUE);\r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 10; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1; \r\n\t c.gridx = 2;\r\n\t c.gridy = 4;\t \r\n\t pan.add(empL1,c);\r\n\t unsoldItemL= new JList(myEnt.convertItem(myEnt.getItemsSold()));\r\n\t unsoldItemL.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t empS= new JScrollPane(unsoldItemL);\t \r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 80; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1; \r\n\t c.gridx = 2;\r\n\t c.gridy = 5;\r\n\t pan.add(empS, c);\r\n\t JButton but1;\r\n\t but1 = new JButton(\"Sold Item Details\");\r\n\t but1.setForeground(Color.BLUE);\r\n\t but1.setBackground(Color.GRAY);\r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 20; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1;\r\n\t c.gridheight= 1;\t \t\t \r\n\t c.gridx = 2;\r\n\t c.gridy = 6;\r\n\t but1.addActionListener(this);\r\n\t pan.add(but1, c);\r\n\t itemT= new JTextArea();\r\n\t itemT.setEditable(false);\r\n\t empS= new JScrollPane(itemT);\r\n\t c.fill=GridBagConstraints.HORIZONTAL;\r\n\t\tc.gridx=0;\r\n\t\tc.gridy=0;\r\n\t\tc.ipady=480;\r\n\t\tc.ipadx=480;\r\n\t\tc.gridwidth = 2;\r\n\t\tc.gridheight=8;\r\n\t\tpan.add(empS,c);\t \r\n\t JButton butStart = new JButton(\"Main\");\r\n\t butStart = new JButton(\"Main\");\r\n\t butStart.setForeground(Color.BLUE);\r\n\t butStart.setBackground(Color.GRAY);\r\n\t butStart.setActionCommand(\"Main\");\r\n butStart.addActionListener(this);\r\n\t pan3.add(butStart);\r\n\t JButton butOk=new JButton(\"Employees\");\r\n\t butOk.setForeground(Color.BLUE);\r\n\t butOk.setBackground(Color.GRAY);\r\n\t butOk.setActionCommand(\"Employees\");\r\n\t butOk.addActionListener(this);\r\n\t pan3.add(butOk);\r\n\t JButton butCust = new JButton(\"Customers\");\r\n\t butCust = new JButton(\"Customers\");\r\n\t butCust.setForeground(Color.BLUE);\r\n\t butCust.setBackground(Color.GRAY);\r\n\t butCust.setActionCommand(\"Customers\");\r\n\t butCust.addActionListener(this);\r\n\t pan3.add(butCust);\r\n\t JButton butItem = new JButton(\"Items\");\r\n\t butItem = new JButton(\"Items\");\r\n\t butItem.setForeground(Color.BLUE);\r\n\t butItem.setBackground(Color.GRAY);\r\n\t butItem.setActionCommand(\"Items\");\r\n\t butItem.addActionListener(this);\r\n\t pan3.add(butItem);\r\n\t itemF.add(pan,BorderLayout.CENTER);\r\n\t lockedL = new JLabel(\"Items\");\r\n\t lockedL.setFont(myF); \r\n\t lockedL.setForeground(Color.BLUE);\r\n\t lockedL.setBackground(Color.GRAY);\r\n\t pan2.add(lockedL);\r\n\t itemF.add(pan2,BorderLayout.NORTH);\r\n\t itemF.add(pan3,BorderLayout.SOUTH);\r\n\t}", "public ItemsControl() {\t\t\t\t\n\t\tlistListener = new SourceListChangeListener();\n\n\t\tBoxLayout boxLayout = new BoxLayout(this, BoxLayout.Y_AXIS);\n\t\tsetLayout(boxLayout);\t\t\t\t\n\t\tif (Beans.isDesignTime()) {\t\t\t\n\t\t\tJLabel designTimeCaptionLbl = new JLabel(\"<ItemsControl>\");\t\t\t\t\t\t\n\t\t\tthis.add(designTimeCaptionLbl);\n\t\t}\n\t}", "@Override\n public void bindHorizontalList(SpacingSpecData<Integer> data) {\n Context context = mRoot.getContext();\n int contentSizePx = mSpacingSpec.getContentSizePx(context, data);\n LinearLayout.LayoutParams rootParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, contentSizePx);\n rootParams.setMargins(0, mSpacingSpec.getPaddingPx(context), 0, mSpacingSpec.getPaddingPx(context));\n mRoot.setLayoutParams(rootParams);\n RecyclerView horizontalList = new RecyclerView(context);\n horizontalList.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, contentSizePx));\n horizontalList.setClipToPadding(false);\n horizontalList.setPadding(mSpacingSpec.getMarginPx(context), 0, mSpacingSpec.getMarginPx(context), 0);\n horizontalList.setLayoutManager(new LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false));\n horizontalList.setAdapter(new HorizontalSquareViewAdapter(data, contentSizePx, mSpacingSpec.getPaddingPx(context)));\n mRoot.addView(horizontalList);\n }", "public void generateStockListTable() {\n\t\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\t\t\tscreenWidth = dm.widthPixels;\n\t\t\tscreenHeight = dm.heightPixels;\n\n\t\t\ttableLayout = (TableLayout) this.findViewById(R.id.tablelayout);\n\t\t\ttableLayout.setStretchAllColumns(true);\n//\t\t\ttableLayout.setBackgroundResource(R.drawable.shape_nzx50);\n\t//\n//\t\t\tTextView textview = (TextView) this.findViewById(R.id.textview);\n//\t\t\ttextview.setVisibility(View.INVISIBLE);\n\t\t\tStockCodeToNameMapper mapper = new StockCodeToNameMapper();\n\t\t\tfor (int i = 0; i < stockList.size(); i++) {\n\t\t\t\tfinal Stock stock = stockList.get(i);\n\n\t\t\t\tTableRow tableRow = new TableRow(this);\n\t\t\t\ttableRow.setBackgroundColor(Color.rgb(255, 255, 255));\n\t\t\t\t\n\n\t\t\t\tTextView textView1 = new TextView(this);\n\t\t\t\ttextView1.setText(stock.getStockCode());\n\t\t\t\ttextView1.setSingleLine(true);\n\t\t\t\ttextView1.setGravity(Gravity.CENTER);\n\t\t\t\ttextView1.setBackgroundResource(R.drawable.shape_nzx50);\n\t\t\t\ttextView1.setHeight((int) (screenHeight * 0.088));\n\n\t\t\t\tTextView textView2 = new TextView(this);\n\t\t\t\ttextView2.setText(mapper.getStockName(stock.getStockCode()));\n\t\t\t\ttextView2.setWidth((int) (screenWidth * 0.5));\n\t\t\t\ttextView2.setSingleLine(true);\n\t\t\t\ttextView2.setEllipsize(TruncateAt.END);\n\t\t\t\ttextView2.setGravity(Gravity.CENTER_VERTICAL);\n\t\t\t\ttextView2.setBackgroundResource(R.drawable.shape_nzx50);\n\t\t\t\ttextView2.setHeight((int) (screenHeight * 0.088));\n\t\t\t\t\n\n\t\t\t\tTextView textView3 = new TextView(this);\n\t\t\t\tif (stock.getStockVariation().contains(\"+\")) {\n\t\t\t\t\tdrawable = getResources().getDrawable(R.drawable.up);\n\t\t\t\t} else if (stock.getStockVariation().contains(\"-\")) {\n\t\t\t\t\tdrawable = getResources().getDrawable(R.drawable.down);\n\t\t\t\t} else {\n\t\t\t\t\tdrawable = getResources().getDrawable(R.drawable.unchanged);\n\t\t\t\t}\n\t\t\t\ttextView3.setCompoundDrawables(setDrawbleBound(drawable), null,\n\t\t\t\t\t\tnull, null);\n\t\t\t\ttextView3.setSingleLine(true);\n\t\t\t\ttextView3.setGravity(Gravity.CENTER);\n\t\t\t\ttextView3.setBackgroundResource(R.drawable.shape_nzx50);\n\t\t\t\ttextView3.setHeight((int) (screenHeight * 0.088));\n\t\t\t\t\n\n\n\t\t\t\tfinal ImageButton iButton=new ImageButton(this,null,android.R.attr.buttonStyleSmall);\n\t\t\t\tiButton.setVisibility(View.VISIBLE);\n//\t\t\t\tiButton.setBackgroundColor(Color.rgb(255, 255, 255));\n\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\n\t\t\t\t\n\t\t\t\tIterator<Stock> stockIterator=watchlistStocks.iterator();\n\t\t\t\twhile(stockIterator.hasNext()){\n\t\t\t\t\tStock s=stockIterator.next();\n\t\t\t\t\tString sCode=s.getStockCode();\n\t\t\t\t\t\n\t\t\t\t\tif(sCode.equalsIgnoreCase(stock.getStockCode())){\n\t\t\t\t\t\tstock.setBookmarked(true);\n\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_yes);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tstock.setBookmarked(false);\n\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\n//\t\t\t\tiButton.setImageResource(R.drawable.bookmark_yes);\n\t\t\t\tiButton.setBackgroundResource(R.drawable.shape_nzx50);\n\t\t\t\t\n\t\t\t\tiButton.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif(!stock.isBookmarked()){\n\t\t\t\t\t\t\tToast.makeText(StockListActivity.this, stock.getStockCode().toString()+\" added to Watchlist \",Toast.LENGTH_SHORT).show\n\n\t();\n\t\t\t\t\t\t\tstock.setBookmarked(true);\n\t\t\t\t\t\t\taddToWatchlist(stock);\n\t\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_yes);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tToast.makeText(StockListActivity.this, stock.getStockCode().toString()+\" removed from Watchlist \",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tstock.setBookmarked(false);\n\t\t\t\t\t\t\tremoveFromWatchlist(stock);\n\t\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\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}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ttableRow.addView(textView1);\n\t\t\t\ttableRow.addView(textView2);\n\t\t\t\ttableRow.addView(textView3);\n\t\t\t\ttableRow.addView(iButton);\n\n\t\t\t\t//tableRow.setBackgroundResource(R.drawable.shape_nzx50);\n\n\n\t\t\t\ttableLayout.addView(tableRow);// adding rows to table\n\t\t\t}\n\t\t}", "protected void layoutComponents() {\n double xOffset = 0;\n double yOffset = 0;\n\n final int numberOfColumns = 3;\n final int gap = 10;\n\n // add children\n int index = 0;\n while (index < operators.length) {\n for (int col = 0; col < numberOfColumns && index < operators.length; col++, index++) {\n final OperatorNode each = operators[index];\n if (each != null) {\n each.setOffset(xOffset + ((cellDim.width - each.getWidth()) / 2), yOffset + (cellDim.height - each.getHeight()) / 2);\n }\n xOffset += (cellDim.width + gap);\n }\n xOffset = 0;\n yOffset += cellDim.height + gap;\n }\n }", "@Override\n\t\t\tpublic int getCount() {\n\t\t\t\treturn 2;\n\t\t\t}", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }", "@Override\n public int getCount() {\n return 3;\n }" ]
[ "0.5990679", "0.57130677", "0.56583035", "0.55738056", "0.55318314", "0.5505331", "0.5475714", "0.5462836", "0.5462836", "0.5417061", "0.5373529", "0.53672874", "0.5360032", "0.5347975", "0.53414446", "0.53069675", "0.5279564", "0.5263213", "0.52604806", "0.52595294", "0.52534586", "0.5246665", "0.5237659", "0.520366", "0.5202882", "0.52006847", "0.5198973", "0.5198973", "0.5198973", "0.5198973", "0.5198973", "0.5198973", "0.5198973", "0.5191859", "0.51860845", "0.51742685", "0.51701003", "0.51501673", "0.5144297", "0.5141753", "0.51345736", "0.51252705", "0.51212716", "0.5120397", "0.5103731", "0.51006645", "0.50990796", "0.5091343", "0.50870323", "0.5085025", "0.5084452", "0.5071676", "0.5071258", "0.50705576", "0.5060217", "0.5055039", "0.50512844", "0.5047098", "0.50366783", "0.50281847", "0.50280327", "0.5025002", "0.50198424", "0.5014961", "0.5003954", "0.500141", "0.49945098", "0.499417", "0.4991616", "0.4987521", "0.49873978", "0.49873978", "0.49788028", "0.49755672", "0.4974404", "0.49729353", "0.49726528", "0.49716926", "0.49672136", "0.49672106", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928", "0.49577928" ]
0.0
-1
/ Four columns layout (Width = 48dots) |item Name Dynamical |2| QTY scale | Total|
private String GetThreeColContent(String col1Content, String col2Content, String col3Content, int charScale) { StringBuffer result = new StringBuffer(); int col1Lines = 1; int col2Lines = 1; int col3Lines = 1; EntItemReportPrint.COL3_ITEMNAME = (this.charSize -EntItemReportPrint.FIXED_COL3_TOTAL - EntItemReportPrint.FIXED_COL3_QTY)/charScale - 2*EntItemReportPrint.FIXED_COL3_SPACE; double ln1 = col1Content.length(); try { ln1 = (col1Content.getBytes("GBK").length)/(EntItemReportPrint.COL3_ITEMNAME*1.0); } catch (UnsupportedEncodingException e) { e.printStackTrace(); ln1 = col1Content.length(); } col1Lines = StringUtil.nearestTen(ln1); String col1PadContent = StringUtil.padRight(col1Content, col1Lines*EntItemReportPrint.COL3_ITEMNAME); ArrayList<String> splittedCol1Content = StringUtil.splitEqually(col1PadContent, EntItemReportPrint.COL3_ITEMNAME); double ln2 = (col2Content.length())/(EntItemReportPrint.FIXED_COL3_QTY*1.0/charScale); col2Lines = StringUtil.nearestTen(ln2); String col2PadContent = StringUtil.padLeft(col2Content, col2Lines*EntItemReportPrint.FIXED_COL3_QTY/charScale); ArrayList<String> splittedCol2Content = StringUtil.splitEqually(col2PadContent, EntItemReportPrint.FIXED_COL3_QTY/charScale); double ln3 = (col3Content.length())/(EntItemReportPrint.FIXED_COL3_TOTAL*1.0/charScale); col3Lines = StringUtil.nearestTen(ln3); String col3PadContent = StringUtil.padLeft(col3Content, col3Lines*EntItemReportPrint.FIXED_COL3_TOTAL/charScale); ArrayList<String> splittedCol3Content = StringUtil.splitEqually(col3PadContent, EntItemReportPrint.FIXED_COL3_TOTAL/charScale); for (int i=0; i< Math.max(Math.max(col1Lines, col2Lines),col3Lines); i++) { if (i<col1Lines) { result.append(splittedCol1Content.get(i)); }else{ result.append(StringUtil.padRight(" ", EntItemReportPrint.COL3_ITEMNAME)); } //padding result.append(StringUtil.padRight(" ", EntItemReportPrint.FIXED_COL3_SPACE)); if (i<col2Lines) { result.append(splittedCol2Content.get(i)); }else { result.append(StringUtil.padLeft(" ", (EntItemReportPrint.FIXED_COL3_QTY)/charScale)); } //padding result.append(StringUtil.padRight(" ", EntItemReportPrint.FIXED_COL3_SPACE)); if (i<col3Lines) { result.append(splittedCol3Content.get(i)); }else { result.append(StringUtil.padLeft(" ", (EntItemReportPrint.FIXED_COL3_TOTAL)/charScale)); } result.append(reNext); } return result.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ItemSummeryLVUI() {\n super();\n List<PTableColumn> tblCols = new ArrayList();\n// tblCols.add(new PTableColumn(String.class, \"empty\"));\n tblCols.add(new PTableColumn(String.class, \"SKU\"));\n tblCols.add(new PTableColumn(String.class, \"UOM\"));\n tblCols.add(new PTableColumn(String.class, \"QTY\"));\n\n getTable().init(InventoryJournalLine.class, tblCols);\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton2 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n txtItemQty = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtItemQty1 = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n lblitem = new javax.swing.JLabel();\n lbliQty = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jButton2.setText(\"Close\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Quintity\");\n\n jLabel4.setText(\"Price\");\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 .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addGap(30, 30, 30)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtItemQty1, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE)\n .addComponent(txtItemQty))\n .addGap(12, 12, 12))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtItemQty, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtItemQty1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n jButton4.setText(\"Save\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n lblitem.setText(\"jLabel1\");\n\n lbliQty.setText(\"jLabel1\");\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 .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton4)))\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(lblitem, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lbliQty, javax.swing.GroupLayout.Alignment.TRAILING, 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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblitem)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lbliQty)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton4))\n .addContainerGap())\n );\n\n pack();\n }", "@Override\n public int getCount() {\n return jArrayQty.length();\n }", "private void RptStockItem() {\n try {\n pnUmum.removeAll();\n pnUmum.repaint();\n pnUmum.revalidate();\n String sql = \"SELECT `ProdName`,`SellPrice`,`CostPrice`,`Netto`,`Stock`,ProdUnit.UnitName AS Unit FROM `Products` \"\n + \"INNER JOIN ProdUnit ON Products.UnitID = ProdUnit.UnitID ORDER BY Products.ProductID ASC\";\n JRDesignQuery jQuery = new JRDesignQuery();\n jQuery.setText(sql);\n JasperDesign jDesign = JRXmlLoader.load(System.getProperty(\"user.dir\") + \"/src/com/resources/jrxml/RptStokBarang.jrxml\");\n jDesign.setQuery(jQuery);\n JasperReport jReport = JasperCompileManager.compileReport(jDesign);\n JasperPrint jPrint = JasperFillManager.fillReport(jReport, null, new ConfigDB().getConnection());\n JRViewer jView = new JRViewer(jPrint);\n pnUmum.setLayout(new BorderLayout());\n jView.setFitPageZoomRatio();\n jView.setFont(new java.awt.Font(\"Arial\", 0, 14));\n pnUmum.add(jView);\n } catch (JRException ex) {\n JOptionPane.showMessageDialog(null, \"Terjadi Error Pada:\\n\" + ex.toString(), \"Kesalahan\", JOptionPane.ERROR_MESSAGE);\n }\n }", "@Override\r\n public int getItemQuantity() {\n return this.quantity;\r\n }", "public int getItemSize() {\n \t\tPointerSizes sizes = getSizes();\n \t\treturn sizes.getMapSize() + 2 + 2 + 3;\n \t}", "public ScGridColumn<AcAirportProgressSummaryVo> newTotalItemKilogramsColumn()\n {\n return newTotalItemKilogramsColumn(\"Total Item Kilograms\");\n }", "Items(int quantidade,Produto produto){\n\t\tqntd = quantidade;\n\t\tthis.produto = produto;\n\t\t\n\t}", "private int testItemWidth(ArrayList<Object> arrayInfo){\n\t\tlong time=System.currentTimeMillis();\n\t\tint minLeft=mContext.getResources().getDimensionPixelSize(R.dimen.default_start_position_x);\n\t\tfor(Object info:arrayInfo){\n\t\t\tView view = null;\n\t\t\tif(info instanceof EcgInfo){\n\t\t\t\tEcgInfo ecgInfo=(EcgInfo)info;\n\t\t\t\tif(ecgInfo.measureType==EcgTable.TYPE_HEARTRATE){\n\t\t\t\t\tview=mInflater.inflate(R.layout.daily_info_heart_rate_layout, null);\n\t\t\t\t\tTextView tv=(TextView)view.findViewById(R.id.heart_rate_bpm);\n\t\t\t\t\tTextView tvLevel=(TextView)view.findViewById(R.id.heart_rate_level);\n\t\t\t\t\ttvLevel.setText(Utility.getIntensityLevel(mContext, ecgInfo.measureValue));\n\t\t\t\t\tString value = Utility.getFormatStr(String.valueOf(ecgInfo.measureValue), mContext.getString(R.string.daily_info_heart_rate_unit), mContext).toString();\n\t\t\t\t\ttv.setText(value);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tview=mInflater.inflate(R.layout.daily_info_stress_energy_layout, null);\n\t\t\t\t\tTextView titleText=(TextView)view.findViewById(R.id.measure_energy_title);\n\t\t\t\t\tTextView valueText=(TextView)view.findViewById(R.id.measure_energy_value);\n\t\t\t\t\tImageView image=(ImageView)view.findViewById(R.id.energy_or_stress_icon);\n\t\t\t\t\tif(ecgInfo.measureType==EcgTable.TYPE_RELAX){\n\t\t\t\t\t\ttitleText.setText(mContext.getString(R.string.daily_info_energy_title));\n\t\t\t\t\t\tvalueText.setText(Utility.intToStr(ecgInfo.measureValue));\n\t\t\t\t\t\timage.setImageResource(Utility.getRelaxDrawableId(ecgInfo.measureValue));\n\t\t\t\t\t}\n\t\t\t\t\telse if(ecgInfo.measureType==EcgTable.TYPE_STRESS){\n\t\t\t\t\t\ttitleText.setText(mContext.getString(R.string.daily_info_stress_title));\n\t\t\t\t\t\tvalueText.setText(Utility.intToStr(ecgInfo.measureValue));\n\t\t\t\t\t\tvalueText.setTextColor(0xffc14343);\n\t\t\t\t\t\timage.setImageResource(Utility.getStressDrawableId(ecgInfo.measureValue));\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\telse if(info instanceof ActivityInfo){\n\t\t\t\tActivityInfo activityInfo=(ActivityInfo)info;\n\t\t\t\tview=mInflater.inflate(R.layout.daily_info_walk_bike_layout, null);\n\t\t\t\tTextView tvDistance=(TextView) view.findViewById(R.id.tv_step_or_bike_distance);\n\t\t\t\tTextView tvType=(TextView) view.findViewById(R.id.tv_step_or_bike_type);\n\t\t\t\tTextView tvTime=(TextView) view.findViewById(R.id.tv_step_or_bike_time);\n\t\t\t\tTextView tvUnit=(TextView) view.findViewById(R.id.tv_step_or_bike_unit);\n\t\t\t\tImageView img=(ImageView)view.findViewById(R.id.img_step_or_bike_icon);\n\t\t\t\tif(activityInfo.activityType==ActivityStateTable.TYPE_WALK){\n\t\t\t\t\ttvDistance.setText(String.valueOf(activityInfo.stepCounts));\n\t\t\t\t\ttvType.setText(R.string.daily_info_walk_type);\n\t\t\t\t\t\n\t\t\t\t\ttvTime.setText(calculateTimeInterval(activityInfo.startTime, activityInfo.endTime));\n\t\t\t\t\ttvUnit.setText(R.string.daily_info_walk_unit);\n\t\t\t\t\timg.setImageResource(R.drawable.asus_wellness_ic_walk);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttvDistance.setText(Utility.getOneDigitFloatString((float)activityInfo.distance/1000));\n\t\t\t\t\ttvDistance.setTextColor(0xff327abd);\n\t\t\t\t\ttvType.setText(R.string.daily_info_transport_type);\n\t\t\t\t\ttvTime.setText(calculateTimeInterval(activityInfo.startTime, activityInfo.endTime));\n\t\t\t\t\ttvUnit.setText(R.string.distance_unit);\n\t\t\t\t\timg.setImageResource(R.drawable.asus_wellness_ic_traffic);\n\t\t\t\t}\n\t\t\t}\n\t\t\tview.measure(MeasureSpec.makeMeasureSpec(LayoutParams.WRAP_CONTENT, MeasureSpec.UNSPECIFIED), \n\t\t\t\t\tMeasureSpec.makeMeasureSpec(LayoutParams.WRAP_CONTENT, MeasureSpec.UNSPECIFIED));\n\t\t\tint left=minLeft-view.getMeasuredWidth()-15;\n\t\t\tif(left<0){\n\t\t\t\tminLeft=minLeft-left;\n\t\t\t}\n\t\t}\n\t\tLog.e(\"circle\",\"testItemWidth time:\"+(System.currentTimeMillis()-time));\n\t\treturn minLeft;\n\t}", "private static String getTotal(ArrayList<CatalogItem> items) {\n double dTotal = 0.0;\n for (CatalogItem item : items) {\n dTotal += item.getPrice();\n }\n\n dTotal += dTotal*0.0825;\n return \"$\" + df.format(dTotal);\n }", "void printTotalQuantity();", "public static void calculateTotal(){\n int i=0;\n total=0;\n while(i<CustomAdapter.selecteditems.size()){\n total+= CustomAdapter.selecteditems.get(i).getPrice() * CustomAdapter.selecteditems.get(i).getQuantity();\n i++;\n }\n String s=\"Rs \"+String.valueOf(total);\n tv_total.setText(s);\n }", "public int getItemQty() {\n return itemQty;\n }", "public String getItem()\n {\n // put your code here\n return \"This item weighs: \" + weight + \"\\n\" + description + \"\\n\";\n }", "private void updateItemDisplay(){\n String[] columnNames = new String[model.getColumns()];\n for(int i = 0; i<columnNames.length; i++){\n columnNames[i] = String.valueOf(i);\n }\n view.updateItemsDisplay(model.itemMapTo2DArray(model.getVendMacItemMap()), columnNames);\n }", "public static void inventoryListHeader() {\n System.out.println(\n UI.prettyPrint(\"Items Name\", 15) + \" | \"\n + UI.prettyPrint(\"Price\", 10) + \" | \"\n + UI.prettyPrint(\"Quantity\", 5));\n }", "@Override\n public void onClick(View view) {\n helper.increaseQty(item);\n holder.mQuantity.setText(String.valueOf(String.valueOf(helper.getQuantityFromTable(item))));\n holder.mPrice.setText(\"$\" + getNewPrice(item, holder));\n// holder.mTotal.setText(\"$\"+total);\n\n }", "private void prepareListData(Set<String> cartItems, Map<String, List<OrderColourSize.ColourSizeItem>> cartItemMap) {\n // заполняем коллекцию групп из массива с названиями групп\n groupData = new ArrayList<Map<String, String>>();\n childData = new ArrayList<ArrayList<Map<String, String>>>();\n\n int sarea = 0;\n\n\n for (String group : cartItems) {\n // заполняем список аттрибутов для каждой группы\n m = new HashMap<String, String>();\n m.put(\"groupName\", group); // имя компании\n groupData.add(m);\n\n childDataItem = new ArrayList<Map<String, String>>();\n // заполняем список аттрибутов для каждого элемента\n for (OrderColourSize.ColourSizeItem item : cartItemMap.get(group)) {\n String phone = item.content;\n sarea += DatabaseOpenHelper.getInstance(null).getSizeAreaById(item.size_id) * item.quantity / 10000;\n m = new HashMap<String, String>();\n m.put(\"phoneName\", phone); // название телефона\n childDataItem.add(m);\n }\n // добавляем в коллекцию коллекций\n childData.add(childDataItem);\n }\n\n TOTAL_AREA = sarea;\n mTotalAreaView.setText(String.valueOf(TOTAL_AREA));\n // список аттрибутов групп для чтения\n String groupFrom[] = new String[]{\"groupName\"};\n // список ID view-элементов, в которые будет помещены аттрибуты групп\n int groupTo[] = new int[]{android.R.id.text1};\n\n // список аттрибутов элементов для чтения\n String childFrom[] = new String[]{\"phoneName\"};\n // список ID view-элементов, в которые будет помещены аттрибуты элементов\n int childTo[] = new int[]{android.R.id.text1};\n\n seAdapter = new SimpleExpandableListAdapter(\n this,\n groupData,\n android.R.layout.simple_expandable_list_item_1,\n groupFrom,\n groupTo,\n childData,\n android.R.layout.simple_list_item_1,\n childFrom,\n childTo);\n// listDataHeader = new ArrayList<String>();\n// listDataChild = new HashMap<String, List<String>>();\n//\n// // Adding child data\n// listDataHeader.add(\"Top 250\");\n// listDataHeader.add(\"Now Showing\");\n// listDataHeader.add(\"Coming Soon..\");\n//\n// // Adding child data\n// List<String> top250 = new ArrayList<String>();\n// top250.add(\"The Shawshank Redemption\");\n// top250.add(\"The Godfather\");\n// top250.add(\"The Godfather: Part II\");\n// top250.add(\"Pulp Fiction\");\n// top250.add(\"The Good, the Bad and the Ugly\");\n// top250.add(\"The Dark Knight\");\n// top250.add(\"12 Angry Men\");\n//\n// List<String> nowShowing = new ArrayList<String>();\n// nowShowing.add(\"The Conjuring\");\n// nowShowing.add(\"Despicable Me 2\");\n// nowShowing.add(\"Turbo\");\n// nowShowing.add(\"Grown Ups 2\");\n// nowShowing.add(\"Red 2\");\n// nowShowing.add(\"The Wolverine\");\n//\n// List<String> comingSoon = new ArrayList<String>();\n// comingSoon.add(\"2 Guns\");\n// comingSoon.add(\"The Smurfs 2\");\n// comingSoon.add(\"The Spectacular Now\");\n// comingSoon.add(\"The Canyons\");\n// comingSoon.add(\"Europa Report\");\n//\n// listDataChild.put(listDataHeader.get(0), top250); // Header, Child data\n// listDataChild.put(listDataHeader.get(1), nowShowing);\n// listDataChild.put(listDataHeader.get(2), comingSoon);\n }", "public void renderItemTileGeneralPanel()\n\t{\n\t\t\t\tpanGeneral = new JPanel();\n\t\t\t\tpanGeneral.setBorder(new LineBorder(new Color(30, 144, 255), 3, true));\n\t\t\t\tpanGeneral.setBackground(Color.WHITE);\n\t\t\t\t/* Layout */\n\t\t\t\t\n\t\t\t\tpanGeneral.setLayout(new MigLayout(\"\", \"[46.00][38.00][38.00][][38.00][][38.00,grow][100,grow][100][100][31.00]\", \"[][][17.00][][9.00][39.00][11.00][grow][17][][]\"));\n\t\t\t\t\n\t\t\t\tString typeStrings[] = {\"IT Assets\",\"Non-IT Assets\",\"Software\",\"Others\"};\n\t\t\t\t\n\t\t\t\t/* Labels */\n\t\t\t\tlblType = new JLabel(\"Type:\");\n\t\t\t\tpanGeneral.add(lblType, \"cell 1 1 2 1,alignx left\");\n\t\t\t\t\n\t\t\t\tlblTypeText = new JLabel(\"Other\");\n\t\t\t\tpanGeneral.add(lblTypeText, \"cell 3 1 7 1\");\n\t\t\t\t\n\t\t\t\tlblAssignee = new JLabel(\"Assignee:\");\n\t\t\t\tpanGeneral.add(lblAssignee, \"flowx,cell 1 5 4 1\");\n\t\t\t\taddItemPanelReference.assignToQuad(panGeneral, 1);\n\t\t\t\t\n\t\t\t\tlblAssigneeText = new JLabel(\"\");\n\t\t\t\tpanGeneral.add(lblAssigneeText, \"cell 5 5 5 1\");\n\t\taddItemPanelReference.assignToQuad(panGeneral, 1);\n\n\t}", "private void printDecreaseItemQuantityMenu(Shop shop, FileManager fileManager) {\n ArrayList<Tool> toolList = new ArrayList<Tool>();\n String selection = \"Y\";\n toolList = sellTools(shop, toolList, selection);\n createAutoOrder(shop, fileManager, toolList);\n }", "public TableRow build_row(String item_name, String quantity, String price){\n\n //Converts pixel to dp\n int padding_in_dp = 10;\n final float scale = getResources().getDisplayMetrics().density;\n int padd_bottom = (int) (padding_in_dp * scale + 0.5f);\n\n TableRow row = new TableRow(getContext());\n\n TextView item_view = build_view(item_name, 6, false, true, row);\n TextView quantity_view = build_view(quantity, 3,true, false, row);\n TextView price_view = build_view(price,3,true, false, row);\n TextView delete_view = build_view(\"x\",1, true, true, row);\n\n row.addView(item_view);\n row.addView(quantity_view);\n row.addView(price_view);\n row.addView(delete_view);\n\n row.setPadding(0,0,0,padd_bottom);\n\n return row;\n }", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 4;\n\t\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 4;\n\t\t}", "BigDecimal getDisplayQuantity();", "@Override\n protected void populateViewHolder(CartListHolder viewHolder, CartListGetData model, final int position) {\n itemid.add(model.getItemid());\n itemname.add(model.getItemname());\n itemprice.add(model.getItemprice());\n itmeimage.add(model.getImageid());\n viewHolder.setTitleName(model.getItemname());\n viewHolder.setPrice(model.getItemprice());\n //viewHolder.setPrice(model.getPrice());\n viewHolder.setImage(getApplicationContext(), model.getImageid());\n total = total + Float.parseFloat(model.getItemprice());\n tax = (total/100)*10;\n taxtext.setText(tax+\"\");\n pricetext.setText(total+\"\");\n totalcarttext.setText(String.valueOf(tax+total));\n System.out.println(\"count : \"+count++);\n }", "public void showData(){\n listName.setText(this.listName);\n listDescription.setText(this.description);\n Double Total = Lists.getInstance().getLists(this.listName).getTotal();\n listTotal.setText(pending.toString());\n\n this.data = FXCollections.observableArrayList(Lists.getInstance().getLists(this.listName).getItems());\n articleColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"name\")\n );\n quantityColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"quantity\")\n );\n priceColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"price\")\n );\n totalColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"total\")\n );\n stateColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"state\")\n );\n this.itemsTable.setItems(data);\n\n }", "private JPanel getJPanel3() {\n\t\tif (cardQuantityPanel == null) {\n\t\t\tcardQuantityLabel = new JLabel();\n\t\t\tcardQuantityLabel.setText(\"Количество\");\n\t\t\tFlowLayout flowLayout2 = new FlowLayout();\n\t\t\tflowLayout2.setAlignment(FlowLayout.RIGHT);\n\t\t\tcardQuantityPanel = new JPanel();\n\t\t\tcardQuantityPanel.setLayout(flowLayout2);\n\t\t\tcardQuantityPanel.add(cardQuantityLabel, null);\n\t\t\tcardQuantityPanel.add(getCardType(), null);\n\t\t\tcardQuantityPanel.add(getCondition(), null);\n\t\t\tcardQuantityPanel.add(getValue(), null);\n\t\t\tcardQuantityPanel.add(getAddQuantityCardButton(), null);\n\t\t}\n\t\treturn cardQuantityPanel;\n\t}", "public void a() {\n this.f25458d.a(this.f25457c);\n this.f25457c.a(this);\n Context context = getContext();\n LinearLayout linearLayout = new LinearLayout(context);\n linearLayout.setOrientation(1);\n addView(linearLayout, new ViewGroup.LayoutParams(-1, -2));\n d a2 = ShopAssistantItemView_.a(context);\n a2.a(R.drawable.ic_myproducts, R.string.sp_my_products, 0);\n a2.setTag(\"PRODUCT\");\n a2.setMinimumHeight(this.f25455a);\n linearLayout.addView(a2, new FrameLayout.LayoutParams(-1, -2));\n d a3 = ShopAssistantItemView_.a(context);\n a3.a(R.drawable.ic_mycustomers, R.string.sp_my_customers, 2);\n linearLayout.addView(a3, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a4 = ShopAssistantItemView_.a(context);\n a4.a(R.drawable.ic_shopprofile, R.string.sp_label_shop_profile, 6);\n linearLayout.addView(a4, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a5 = ShopAssistantItemView_.a(context);\n a5.a(R.drawable.img_shopsettings, R.string.sp_shop_settings, 4);\n linearLayout.addView(a5, new FrameLayout.LayoutParams(-1, this.f25455a));\n d a6 = ShopAssistantItemView_.a(context);\n a6.a(R.drawable.ic_categories, R.string.sp_my_shop_categories, 8);\n a6.setSubtitle(this.f25461g.getCategoriesPath());\n linearLayout.addView(a6, new FrameLayout.LayoutParams(-1, this.f25455a));\n View view = new View(context);\n view.setBackgroundColor(b.a(R.color.background));\n linearLayout.addView(view, new FrameLayout.LayoutParams(-1, b.a.k));\n View view2 = new View(context);\n view2.setBackgroundColor(com.garena.android.appkit.tools.b.a(R.color.black06));\n linearLayout.addView(view2, new FrameLayout.LayoutParams(-1, b.a.f7690a));\n View inflate = ((LayoutInflater) context.getSystemService(\"layout_inflater\")).inflate(R.layout.seller_center, (ViewGroup) null);\n ((TextView) inflate.findViewById(R.id.url)).setText(\"http://seller\" + i.f7042e);\n int b2 = com.garena.android.appkit.tools.b.b() - b.a.m;\n w.a(getContext()).a((int) R.drawable.sellercentre_banner).b(b2, (int) (((float) b2) / 1.886f)).e().f().a((ImageView) inflate.findViewById(R.id.banner));\n FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -2);\n inflate.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n g.this.f25459e.V();\n }\n });\n linearLayout.addView(inflate, layoutParams);\n this.f25457c.e();\n this.f25457c.f();\n }", "@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }", "@Override\n\t\t\tprotected void populateItem(final ListItem<ComponentData> listItem)\n\t\t\t{\n\t\t\t\tfinal ComponentData componentData = listItem.getModelObject();\n\n\t\t\t\tlistItem.add(new Label(\"row\", Long.toString(listItem.getIndex() + 1)));\n\t\t\t\tlistItem.add(new Label(\"path\", componentData.path));\n\t\t\t\tlistItem.add(new Label(\"size\", Bytes.bytes(componentData.size).toString()));\n\t\t\t\tlistItem.add(new Label(\"type\", componentData.type));\n\t\t\t\tlistItem.add(new Label(\"model\", componentData.value));\n\t\t\t\tlistItem.add(new Label(\"renderDuration\", componentData.renderDuration != null\n\t\t\t\t\t? componentData.renderDuration.toString() : \"n/a\"));\n\t\t\t}", "private void createItemPanel() {\r\n\t\r\n TableColumn newColumnTableColumn;\r\n GridLayout gridLayout;\r\n\r\n TabItem partTabItem;\r\n TabItem servTabItem;\r\n TabItem paintTabItem;\r\n \r\n GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 2);\r\n gridData.heightHint = 120;\r\n itemPanel = new Composite(this, SWT.NONE);\r\n gridLayout = new GridLayout();\r\n gridLayout.verticalSpacing = 0;\r\n gridLayout.marginWidth = 0;\r\n gridLayout.marginHeight = 0;\r\n gridLayout.horizontalSpacing = 0;\r\n itemPanel.setLayout(gridLayout);\r\n itemPanel.setLayoutData(gridData);\r\n \r\n\r\n \r\n tabFolder = new TabFolder(itemPanel, SWT.NONE);\r\n tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n\r\n // PART TABLE\r\n \r\n partTabItem = new TabItem(tabFolder, SWT.NONE);\r\n partTabItem.setText(Messages.getString(\"CarDetailVariantEditForm.partTabItem.text\")); //$NON-NLS-1$\r\n\r\n \r\n partTable = new Table(tabFolder, SWT.MULTI | SWT.FULL_SELECTION);\r\n partTable.setHeaderVisible(true);\r\n partTable.setLinesVisible(true);\r\n partTabItem.setControl(partTable);\r\n \r\n newColumnTableColumn = new TableColumn(partTable, SWT.NONE);\r\n newColumnTableColumn.setWidth(300);\r\n newColumnTableColumn.setText(Messages.getString(\"CarDetailVariantEditForm.nameTableColumn.text\")); //$NON-NLS-1$\r\n\r\n \r\n \r\n \r\n // SERV TABLE\r\n \r\n servTabItem = new TabItem(tabFolder, SWT.NONE);\r\n servTabItem.setText(Messages.getString(\"CarDetailVariantEditForm.servTabItem.text\")); //$NON-NLS-1$\r\n\r\n \r\n servTable = new Table(tabFolder, SWT.MULTI | SWT.FULL_SELECTION);\r\n servTable.setHeaderVisible(true);\r\n servTable.setLinesVisible(true);\r\n servTabItem.setControl(servTable);\r\n \r\n TableColumn carClassColumn = new TableColumn(servTable, SWT.NONE);\r\n carClassColumn.setWidth(150);\r\n carClassColumn.setText(Messages.getString(\"CarDetailVariantEditForm.carClassColumn.text\"));\r\n\r\n newColumnTableColumn = new TableColumn(servTable, SWT.NONE);\r\n newColumnTableColumn.setWidth(300);\r\n newColumnTableColumn.setText(Messages.getString(\"CarDetailVariantEditForm.nameTableColumn.text\")); //$NON-NLS-1$\r\n\r\n newColumnTableColumn = new TableColumn(servTable, SWT.RIGHT);\r\n newColumnTableColumn.setWidth(70);\r\n newColumnTableColumn.setText(Messages.getString(\"CarDetailVariantEditForm.workHourTableColumn.text\")); //$NON-NLS-1$\r\n \r\n \r\n\r\n // PAINT TABLE\r\n paintTabItem = new TabItem(tabFolder, SWT.NONE);\r\n paintTabItem.setText(Messages.getString(\"CarDetailVariantEditForm.paintTabItem.text\")); //$NON-NLS-1$\r\n\r\n \r\n paintTable = new Table(tabFolder, SWT.MULTI | SWT.FULL_SELECTION);\r\n paintTable.setHeaderVisible(true);\r\n paintTable.setLinesVisible(true);\r\n paintTabItem.setControl(paintTable);\r\n \r\n newColumnTableColumn = new TableColumn(paintTable, SWT.NONE);\r\n newColumnTableColumn.setWidth(300);\r\n newColumnTableColumn.setText(Messages.getString(\"CarDetailVariantEditForm.nameTableColumn.text\")); //$NON-NLS-1$\r\n\r\n TableColumn carPaintDetailTypeColumn = new TableColumn(paintTable, SWT.NONE);\r\n carPaintDetailTypeColumn.setWidth(200);\r\n carPaintDetailTypeColumn.setText(Messages.getString(\"CarDetailVariantEditForm.carPaintDetailTypeTableColumn.text\")); //$NON-NLS-1$\r\n \r\n }", "private String GetFourColContent(String col1Content, String col2Content,\n\t\t\t\t\t\t\t\t\t String col3Content, String col4Content,int charScale) {\n\n\t\tStringBuffer result = new StringBuffer();\n\n\t\tint col1Lines = 1;\n\t\tint col2Lines = 1;\n\t\tint col3Lines = 1;\n\t\tint col4Lines = 1;\n\n\t\tBillPrint.COL4_ITEMNAME = (this.charSize -BillPrint.FIXED_COL4_TOTAL - BillPrint.FIXED_COL4_QTY - BillPrint.FIXED_COL4_PRICE)/charScale - 3*BillPrint.FIXED_COL4_SPACE;\n\n\t\tdouble ln1 = col1Content.length();\n\t\ttry {\n\t\t\tln1 = (col1Content.getBytes(\"GBK\").length)/(BillPrint.COL4_ITEMNAME*1.0);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcol1Lines = StringUtil.nearestTen(ln1);\n\t\tString col1PadContent = StringUtil.padRight(col1Content, col1Lines*BillPrint.COL4_ITEMNAME);\n\t\tArrayList<String> splittedCol1Content = StringUtil.splitEqually(col1PadContent, BillPrint.COL4_ITEMNAME);\n\n\t\tdouble ln2 = (col2Content.length())/(BillPrint.FIXED_COL4_PRICE*1.0/charScale);\n\t\tcol2Lines = StringUtil.nearestTen(ln2);\n\t\tString col2PadContent = StringUtil.padLeft(col2Content, col2Lines*BillPrint.FIXED_COL4_PRICE/charScale);\n\t\tArrayList<String> splittedCol2Content = StringUtil.splitEqually(col2PadContent, BillPrint.FIXED_COL4_PRICE/charScale);\n\n\t\tdouble ln3 = (col3Content.length())/(BillPrint.FIXED_COL4_QTY*1.0/charScale);\n\t\tcol3Lines = StringUtil.nearestTen(ln3);\n\t\tString col3PadContent = StringUtil.padLeft(col3Content, col3Lines*BillPrint.FIXED_COL4_QTY/charScale);\n\t\tArrayList<String> splittedCol3Content = StringUtil.splitEqually(col3PadContent, BillPrint.FIXED_COL4_QTY/charScale);\n\n\t\tdouble ln4 = (col4Content.length())/(BillPrint.FIXED_COL4_TOTAL*1.0/charScale);\n\t\tcol4Lines = StringUtil.nearestTen(ln4);\n\t\tString col4PadContent = StringUtil.padLeft(col4Content, col4Lines*BillPrint.FIXED_COL4_PRICE/charScale);\n\t\tArrayList<String> splittedCol4Content = StringUtil.splitEqually(col4PadContent, BillPrint.FIXED_COL4_PRICE/charScale);\n\n\n\t\tfor (int i=0; i< Math.max(Math.max(col1Lines, col2Lines), Math.max(col3Lines, col4Lines)); i++) {\n\t\t\tif (i<col1Lines) {\n\t\t\t\tresult.append(splittedCol1Content.get(i));\n\t\t\t}else{\n\t\t\t\tresult.append(StringUtil.padRight(\" \", BillPrint.COL4_ITEMNAME));\n\t\t\t}\n\t\t\t//padding\n\t\t\tresult.append(StringUtil.padRight(\" \", BillPrint.FIXED_COL4_SPACE));\n\n\t\t\tif (i<col2Lines) {\n\t\t\t\tresult.append(splittedCol2Content.get(i));\n\t\t\t}else {\n\t\t\t\tresult.append(StringUtil.padLeft(\" \", (BillPrint.FIXED_COL4_PRICE)/charScale));\n\t\t\t}\n\n\t\t\t//padding\n\t\t\tresult.append(StringUtil.padRight(\" \", BillPrint.FIXED_COL4_SPACE));\n\n\t\t\tif (i<col3Lines) {\n\t\t\t\tresult.append(splittedCol3Content.get(i));\n\t\t\t}else {\n\t\t\t\tresult.append(StringUtil.padLeft(\" \", (BillPrint.FIXED_COL4_QTY)/charScale));\n\t\t\t}\n\n\t\t\t//padding\n\t\t\tresult.append(StringUtil.padRight(\" \", BillPrint.FIXED_COL4_SPACE));\n\n\t\t\tif (i<col4Lines) {\n\t\t\t\tresult.append(splittedCol4Content.get(i));\n\t\t\t}else {\n\t\t\t\tresult.append(StringUtil.padLeft(\" \", (BillPrint.FIXED_COL4_PRICE)/charScale));\n\t\t\t}\n\t\t\tresult.append(reNext);\n\t\t}\n\t\treturn result.toString();\n\t}", "Items(int quantidade,String nome,double preco){\n\t\tthis.qntd=quantidade;\n\t\tthis.produto = new Produto(nome,preco);\n\t}", "public void printBill(){\r\n\t\tint numOfItems = ItemsList.size();\r\n\t\tfor(int i = 0;i<numOfItems;i++){\r\n\t\t\tSystem.out.println(\"1\" + ItemsList.get(i).getName() + \"at \" + ItemsList.get(i).getPrice());\r\n\t\t}\r\n\t\tSystem.out.printf(\"Sales Tax: %.2f\\n\", taxTotal);\r\n\t\tSystem.out.println(\"Total: \" + total);\r\n\t}", "private void querySumMenu()\n\t{\n\t\tclearPanel(getPanel1());\n\t\t\n\t\tJLabel label1=new JLabel(\"This is the total numbers\\nFor:\"+getValue1()+\"and\"+getValue2());\n\t\t\n\t\t//get table from sumQuery and put it in table\n\t\tJTable table=getQuery1().sumQuery(); \n\t\t\n\t\tJScrollPane scrolltable = new JScrollPane(table);\n\t\tlabel1.setBounds(100,10,400,40);\n\t\tscrolltable.setBounds(500,10,500,500);\n\t\tgetPanel1().add(scrolltable);\n\t\tgetPanel1().add(getButton3());\n\t\tgetPanel1().add(getButton4());\n\t\tgetButton3().setBounds(260,10,180,60);\n\t\tgetButton4().setBounds(80,10,180,60);\n\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 3;\n\t\t}", "private Rect LayoutTemplet5(int index, Rect rect, int overIndex, int times) {\n int x, y;\n\n int frontHeight = getFrontHeight(5);\n overIndex = overIndex - getFrontItemCount(5);\n\n if (overIndex == 0) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 1) {\n x = mHorizontalPadding + mItemWidth;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mItemWidth + mSlotWidth, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 2) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 3) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 2;\n rect.set(x, y, x + mSlotWidth + mItemWidth / 2, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 4) {\n x = mHorizontalPadding + mItemWidth * 3 / 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 2;\n rect.set(x, y, x + mSlotWidth + mItemWidth / 2, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 5) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 4;\n rect.set(x, y, x + mItemWidth + mSlotWidth, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 6) {\n x = mHorizontalPadding + mItemWidth * 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 4;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 7) {\n x = mHorizontalPadding + mItemWidth * 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 5;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n }\n\n return rect;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPaneOI = new javax.swing.JScrollPane();\n jTableItemLists = new javax.swing.JTable();\n jLabelItemList = new javax.swing.JLabel();\n jLabelSearch = new javax.swing.JLabel();\n jTextFieldSearch = new javax.swing.JTextField();\n jButtonAdd = new javax.swing.JButton();\n jButtonDelete = new javax.swing.JButton();\n jButtonAddNewItem = new javax.swing.JButton();\n jLabelTotalProduct = new javax.swing.JLabel();\n jLabelTotal = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(255, 255, 255));\n setPreferredSize(new java.awt.Dimension(676, 0));\n\n jTableItemLists.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null}\n },\n new String [] {\n \"Code\", \"Name\", \"Category\", \"SalePrice\", \"Stock\", \"BuyPrice\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Double.class, java.lang.Integer.class, java.lang.Double.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jTableItemLists.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n jTableItemLists.setInheritsPopupMenu(true);\n jTableItemLists.setName(\"\"); // NOI18N\n jScrollPaneOI.setViewportView(jTableItemLists);\n\n jLabelItemList.setFont(new java.awt.Font(\"SansSerif\", 1, 18)); // NOI18N\n jLabelItemList.setText(\"Item Lists\");\n\n jLabelSearch.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n jLabelSearch.setText(\"Search\");\n\n jTextFieldSearch.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n jTextFieldSearchKeyReleased(evt);\n }\n });\n\n jButtonAdd.setText(\"Add / Edit\");\n jButtonAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAddActionPerformed(evt);\n }\n });\n\n jButtonDelete.setText(\"Delete\");\n jButtonDelete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonDeleteActionPerformed(evt);\n }\n });\n\n jButtonAddNewItem.setText(\"Add New Item\");\n jButtonAddNewItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAddNewItemActionPerformed(evt);\n }\n });\n\n jLabelTotalProduct.setText(\"Total Product : \");\n\n jLabelTotal.setText(\"0\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPaneOI)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelItemList)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelSearch)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButtonAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jTextFieldSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 307, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonAddNewItem, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 482, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabelTotalProduct)\n .addGap(18, 18, 18)\n .addComponent(jLabelTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelItemList)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelSearch)\n .addComponent(jTextFieldSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jButtonAddNewItem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelTotalProduct)\n .addComponent(jLabelTotal)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPaneOI, javax.swing.GroupLayout.DEFAULT_SIZE, 473, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "@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 table = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Item - ROL\");\n setResizable(false);\n\n table.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n table.setForeground(new java.awt.Color(0, 0, 51));\n table.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Item Code\", \"Description\", \"ROL\", \"Available Qty\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n table.setRowHeight(25);\n table.setSelectionBackground(new java.awt.Color(0, 153, 102));\n table.setSelectionForeground(new java.awt.Color(255, 255, 204));\n table.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n table.getTableHeader().setReorderingAllowed(false);\n jScrollPane1.setViewportView(table);\n if (table.getColumnModel().getColumnCount() > 0) {\n table.getColumnModel().getColumn(0).setResizable(false);\n table.getColumnModel().getColumn(1).setResizable(false);\n table.getColumnModel().getColumn(3).setResizable(false);\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 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 607, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n );\n\n pack();\n }", "@Override\r\n\tpublic int getCount() {\n\t\treturn 4;\r\n\t}", "public void addRow(String itemName, String itemPrice, String username) {\n LinearLayout parentLayout = findViewById(R.id.itemList);\n\n // Create layout for new item\n LinearLayout l = new LinearLayout(this);\n l.setOrientation(LinearLayout.HORIZONTAL);\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 100);\n layoutParams.bottomMargin = 10;\n l.setBackgroundResource(R.drawable.customborder);\n l.setLayoutParams(layoutParams);\n\n // Create item_name textview\n TextView name_textview = new TextView(this);\n name_textview.setText(itemName);\n name_textview.setTextSize(24);\n LinearLayout.LayoutParams nameParams = new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.MATCH_PARENT);\n nameParams.weight = 1;\n name_textview.setLayoutParams(nameParams);\n\n // Create price textview\n TextView price_textview = new TextView(this);\n price_textview.setText(\"$\"+itemPrice);\n price_textview.setTextSize(24);\n LinearLayout.LayoutParams priceParams = new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.MATCH_PARENT);\n priceParams.weight = 1;\n price_textview.setLayoutParams(priceParams);\n\n // Create username textview\n TextView username_textview = new TextView(this);\n username_textview.setText(username);\n username_textview.setTextSize(24);\n LinearLayout.LayoutParams usernameParams = new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.MATCH_PARENT);\n usernameParams.weight = 1;\n username_textview.setLayoutParams(usernameParams);\n\n // Add views to layout\n l.addView(name_textview);\n l.addView(price_textview);\n l.addView(username_textview);\n parentLayout.addView(l);\n\n }", "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 printOrderItem(){\r\n\t\tSystem.out.print(this.quantity+\" x \"+this.menuItem.getName()+\" ---- \");\r\n\t\tSystem.out.printf(\"$%.2f\\n\",this.calculatePrice());\r\n\t}", "com.google.monitoring.dashboard.v1.RowLayout getRowLayout();", "com.google.monitoring.dashboard.v1.ColumnLayout getColumnLayout();", "private void getAllItems() {\n\n try {\n double sellingPrice = 0;\n ArrayList<Item> allItems = ItemController.getAllItems();\n for (Item item : allItems) {\n double selling_margin = item.getSelling_margin();\n if (selling_margin > 0) {\n sellingPrice = item.getSellingPrice() - (item.getSellingPrice() * selling_margin / 100);\n } else {\n sellingPrice = item.getSellingPrice();\n }\n Object row[] = {item.getItemCode(), item.getDescription(), Validator.BuildTwoDecimals(item.getQuantity()), Validator.BuildTwoDecimals(sellingPrice)};\n tableModel.addRow(row);\n }\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(FormItemSearch.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(FormItemSearch.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\r\n protected void\r\n onBindViewHolder(@NonNull itemsViewholder holder,\r\n int position, @NonNull item model)\r\n {\r\n\r\n // Add Nom from model class (here\r\n // \"item.class\")to appropriate view in Card\r\n // view (here \"item.xml\")\r\n holder.Nom.setText(model.getNom());\r\n holder.Quantite.setText(String.valueOf(model.getStock()));\r\n\r\n double Totall= model.getPrix()*model.getStock();\r\n DecimalFormat df = new DecimalFormat(\"#0.00\");\r\n String STotall= String.valueOf(df.format(Totall));\r\n holder.Total.setText(STotall+\"€\");\r\n\r\n toto += Totall;\r\n // PanierActivity.total_cart=model.getPrix()*model.getStock();\r\n\r\n PanierActivity.total_panier.setText(String.valueOf(toto)+\"€\");\r\n hello+=Totall;\r\n\r\n\r\n\r\n\r\n\r\n }", "public void item(){\r\n\r\n\t\titemF = new JFrame(); \r\n\t\titemF.setTitle(\"MavBay\");\r\n\t\titemF.setSize(1000,800);\r\n\t\titemF.setLocation(150,150);\r\n\t\titemF.setVisible(true);\r\n\t\titemF.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t JPanel pan = new JPanel();\r\n\t pan.setLayout(new GridBagLayout());\r\n\t pan.setBackground(new Color(100,100,100));\r\n\t GridBagConstraints c = new GridBagConstraints();\r\n\t JPanel pan2 = new JPanel();\r\n\t pan2.setBackground(new Color(100,100,100));\r\n\t JPanel pan3 = new JPanel();\r\n\t pan3.setBackground(new Color(100,100,100));\r\n\t JLabel empL= new JLabel(\"Items Not Sold\");\r\n\t empL.setForeground(Color.BLUE);\r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 10; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1; \r\n\t c.gridx = 2;\r\n\t c.gridy = 1;\t \r\n\t pan.add(empL,c);\r\n\t itemL= new JList(myEnt.convertItem(myEnt.getItems()));\r\n\t itemL.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t empS= new JScrollPane(itemL);\t \r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 80; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1; \r\n\t c.gridx = 2;\r\n\t c.gridy = 2;\r\n\t pan.add(empS, c);\r\n\t JButton but;\r\n\t but = new JButton(\"Not Sold Item Details\");\r\n\t but.setForeground(Color.BLUE);\r\n\t but.setBackground(Color.GRAY);\r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 20; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1;\r\n\t c.gridheight= 1;\t \t\t \r\n\t c.gridx = 2;\r\n\t c.gridy = 3;\r\n\t but.addActionListener(this);\r\n\t pan.add(but, c);\r\n\t JLabel empL1= new JLabel(\"Items Sold\");\r\n\t empL1.setForeground(Color.BLUE);\r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 10; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1; \r\n\t c.gridx = 2;\r\n\t c.gridy = 4;\t \r\n\t pan.add(empL1,c);\r\n\t unsoldItemL= new JList(myEnt.convertItem(myEnt.getItemsSold()));\r\n\t unsoldItemL.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t empS= new JScrollPane(unsoldItemL);\t \r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 80; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1; \r\n\t c.gridx = 2;\r\n\t c.gridy = 5;\r\n\t pan.add(empS, c);\r\n\t JButton but1;\r\n\t but1 = new JButton(\"Sold Item Details\");\r\n\t but1.setForeground(Color.BLUE);\r\n\t but1.setBackground(Color.GRAY);\r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 20; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1;\r\n\t c.gridheight= 1;\t \t\t \r\n\t c.gridx = 2;\r\n\t c.gridy = 6;\r\n\t but1.addActionListener(this);\r\n\t pan.add(but1, c);\r\n\t itemT= new JTextArea();\r\n\t itemT.setEditable(false);\r\n\t empS= new JScrollPane(itemT);\r\n\t c.fill=GridBagConstraints.HORIZONTAL;\r\n\t\tc.gridx=0;\r\n\t\tc.gridy=0;\r\n\t\tc.ipady=480;\r\n\t\tc.ipadx=480;\r\n\t\tc.gridwidth = 2;\r\n\t\tc.gridheight=8;\r\n\t\tpan.add(empS,c);\t \r\n\t JButton butStart = new JButton(\"Main\");\r\n\t butStart = new JButton(\"Main\");\r\n\t butStart.setForeground(Color.BLUE);\r\n\t butStart.setBackground(Color.GRAY);\r\n\t butStart.setActionCommand(\"Main\");\r\n butStart.addActionListener(this);\r\n\t pan3.add(butStart);\r\n\t JButton butOk=new JButton(\"Employees\");\r\n\t butOk.setForeground(Color.BLUE);\r\n\t butOk.setBackground(Color.GRAY);\r\n\t butOk.setActionCommand(\"Employees\");\r\n\t butOk.addActionListener(this);\r\n\t pan3.add(butOk);\r\n\t JButton butCust = new JButton(\"Customers\");\r\n\t butCust = new JButton(\"Customers\");\r\n\t butCust.setForeground(Color.BLUE);\r\n\t butCust.setBackground(Color.GRAY);\r\n\t butCust.setActionCommand(\"Customers\");\r\n\t butCust.addActionListener(this);\r\n\t pan3.add(butCust);\r\n\t JButton butItem = new JButton(\"Items\");\r\n\t butItem = new JButton(\"Items\");\r\n\t butItem.setForeground(Color.BLUE);\r\n\t butItem.setBackground(Color.GRAY);\r\n\t butItem.setActionCommand(\"Items\");\r\n\t butItem.addActionListener(this);\r\n\t pan3.add(butItem);\r\n\t itemF.add(pan,BorderLayout.CENTER);\r\n\t lockedL = new JLabel(\"Items\");\r\n\t lockedL.setFont(myF); \r\n\t lockedL.setForeground(Color.BLUE);\r\n\t lockedL.setBackground(Color.GRAY);\r\n\t pan2.add(lockedL);\r\n\t itemF.add(pan2,BorderLayout.NORTH);\r\n\t itemF.add(pan3,BorderLayout.SOUTH);\r\n\t}", "private int numberOfColumns() {\n DisplayMetrics displayMetrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n // You can change this divider to adjust the size of the recipe cards\n int widthDivider = 300;\n int width = displayMetrics.widthPixels;\n int numOfColumns = width / widthDivider;\n if (numOfColumns < 2) {\n return 2;\n }\n return numOfColumns;\n }", "public void show(){\n\n \t//Declaring all the variables. Will be using Text Fields\n \tJFrame frame = new JFrame(\"IIITD Fruit Stall\");\n \t\n \t//Setting up the Header Panel\n \tJLabel inven = new JLabel(\"Inventory\",SwingConstants.CENTER);\t\n \tJLabel user = new JLabel(\"User\",SwingConstants.CENTER);\n \tJTextField i1 = new JTextField(\"Items\",SwingConstants.CENTER);\n \ti1.setEnabled(false);\n \tJTextField q1 = new JTextField(\"Quantity\",SwingConstants.CENTER);\n \tq1.setEnabled(false);\n \tJTextField i2 = new JTextField(\"Items\",SwingConstants.CENTER);\n \ti2.setEnabled(false);\n \tJTextField q2 = new JTextField(\"Quantity\",SwingConstants.CENTER);\n \tq2.setEnabled(false);\n \t\n \t\n \t//Making the grid\n \t\n \tJPanel panel = new JPanel(new GridBagLayout());\n GridBagConstraints cst = new GridBagConstraints();\n \n \n \n \n /* ----------------------------------------------------------\n * MAKING THE HEADER PANELS\n * ----------------------------------------------------------\n */\n \n \n //Adding the Inventory and the User Grids\n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=0;\n cst.gridwidth=2;\n panel.add(inven,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=0;\n cst.gridwidth=2;\n panel.add(user, cst);\n \n \n //Adding the Items and Quantity tags\n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=2;\n cst.gridwidth=1;\n panel.add(i1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=2;\n cst.gridwidth=1;\n panel.add(q1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=2;\n cst.gridwidth=1;\n panel.add(i2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=2;\n cst.gridwidth=1;\n panel.add(q2,cst);\n \n \n /* ----------------------------------------------------------\n * FOR THE INVENTORY\n * ----------------------------------------------------------\n */\n \n //Fruit and Quantity list \n JTextField a1 = new JTextField(\"Apple\",SwingConstants.CENTER);\t\n a1.setEnabled(false);\n \t\n \tJTextField m1 = new JTextField(\"Mango\",SwingConstants.CENTER);\t\n \tm1.setEnabled(false);\n \t\n \tJTextField o1 = new JTextField(\"Orange\",SwingConstants.CENTER);\t\n \to1.setEnabled(false);\n \t\n \tJTextField p1 = new JTextField(\"Pineapple\",SwingConstants.CENTER);\t\n \tp1.setEnabled(false);\n \t\n \tJTextField b1 = new JTextField(\"Banana\",SwingConstants.CENTER);\t\n \tb1.setEnabled(false);\n \t\n \tJTextField aq1 = new JTextField(\"10\");\t\n \taq1.setEnabled(false);\n \t\n \tJTextField mq1 = new JTextField(\"6\");\t\n \tmq1.setEnabled(false);\n \t\n \tJTextField oq1 = new JTextField(\"8\");\t\n \toq1.setEnabled(false);\n \t\n \tJTextField pq1 = new JTextField(\"2\");\t\n \tpq1.setEnabled(false);\n \t\n \tJTextField bq1 = new JTextField(\"4\");\t\n \tbq1.setEnabled(false);\n \t\n \t//Displaying the inventory lists\n \t\n \tcst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=4;\n cst.gridwidth=1;\n panel.add(a1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=5;\n cst.gridwidth=1;\n panel.add(m1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=6;\n cst.gridwidth=1;\n panel.add(o1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=7;\n cst.gridwidth=1;\n panel.add(p1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=8;\n cst.gridwidth=1;\n panel.add(b1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=4;\n cst.gridwidth=1;\n panel.add(aq1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=5;\n cst.gridwidth=1;\n panel.add(mq1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=6;\n cst.gridwidth=1;\n panel.add(oq1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=7;\n cst.gridwidth=1;\n panel.add(pq1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=8;\n cst.gridwidth=1;\n panel.add(bq1,cst);\n \t\n /* ----------------------------------------------------------\n * FOR THE USER\n * ----------------------------------------------------------\n */\n \n JTextField a2 = new JTextField(\"Apple\");\t\n a2.setEnabled(false);\n \t\n \tJTextField m2 = new JTextField(\"Mango\");\t\n \tm2.setEnabled(false);\n \t\n \tJTextField o2 = new JTextField(\"Orange\");\t\n \to2.setEnabled(false);\n \t\n \tJTextField p2 = new JTextField(\"Pineapple\");\t\n \tp2.setEnabled(false);\n \t\n \tJTextField b2 = new JTextField(\"Banana\");\t\n \tb2.setEnabled(false);\n \t\n \tJTextField aq2 = new JTextField(\"0\");\t\n \t\n \t\n \tJTextField mq2 = new JTextField(\"0\");\t\n \t\n \t\n \tJTextField oq2 = new JTextField(\"0\");\t\n \t\n \t\n \tJTextField pq2 = new JTextField(\"0\");\t\n \t\n \n \tJTextField bq2 = new JTextField(\"0\");\t\n \n \n \t\n \t//Displaying the user lists\n \t\n \t\n \tcst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=4;\n cst.gridwidth=1;\n panel.add(a2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=5;\n cst.gridwidth=1;\n panel.add(m2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=6;\n cst.gridwidth=1;\n panel.add(o2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=7;\n cst.gridwidth=1;\n panel.add(p2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=8;\n cst.gridwidth=1;\n panel.add(b2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=4;\n cst.gridwidth=1;\n panel.add(aq2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=5;\n cst.gridwidth=1;\n panel.add(mq2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=6;\n cst.gridwidth=1;\n panel.add(oq2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=7;\n cst.gridwidth=1;\n panel.add(pq2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=8;\n cst.gridwidth=1;\n panel.add(bq2,cst);\n \n /* ----------------------------------------------------------\n * Total Fields\n * ----------------------------------------------------------\n */\n \n JTextField t1 = new JTextField(\"Total\");\t\n t1.setEnabled(false);\n \t\n \tJTextField tq1 = new JTextField(\"30\");\t\n \ttq1.setEnabled(false);\n \t\n \tJTextField t2 = new JTextField(\"Total\");\t\n \tt2.setEnabled(false);\n \t\n \tfinal JTextField tq2 = new JTextField(\"0\");\t\n \ttq2.setEditable(false);\n \n \t//Displaying the total cells \n \t\n \t cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=0;\n cst.gridy=9;\n cst.gridwidth=1;\n panel.add(t1,cst);\n \n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=1;\n cst.gridy=9;\n cst.gridwidth=1;\n panel.add(tq1,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=2;\n cst.gridy=9;\n cst.gridwidth=1;\n panel.add(t2,cst);\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=9;\n cst.gridwidth=1;\n panel.add(tq2,cst);\n \n /*\n * The following commented code was written in order to change the \"Total\" field dynamically.\n * Changed after a query raised on BackPack.\n */\n \n /*DocumentFilter df = new DocumentFilter() {\n @Override\n public void insertString(FilterBypass fb, int i, String string, AttributeSet as) throws BadLocationException {\n\n if (isDigit(string)) {\n super.insertString(fb, i, string, as);\n calcAndSetTotal();\n }\n }\n\n @Override\n public void remove(FilterBypass fb, int i, int i1) throws BadLocationException {\n super.remove(fb, i, i1);\n calcAndSetTotal();\n }\n\n @Override\n public void replace(FilterBypass fb, int i, int i1, String string, AttributeSet as) throws BadLocationException {\n if (isDigit(string)) {\n super.replace(fb, i, i1, string, as);\n calcAndSetTotal();\n\n }\n }\n\n private boolean isDigit(String string) {\n for (int n = 0; n < string.length(); n++) {\n char c = string.charAt(n); \n if (!Character.isDigit(c)) {\n return false;\n }\n }\n return true;\n }\n\n void calcAndSetTotal() {\n int sum = 0;\n\n if (!aq2.getText().isEmpty()) {\n sum += Integer.parseInt(aq2.getText());//we must add this\n }\n if (!mq2.getText().isEmpty()) {\n sum += Integer.parseInt(mq2.getText());//we must add this\n }\n if (!oq2.getText().isEmpty()) {\n sum += Integer.parseInt(oq2.getText());//we must add this\n }\n if (!pq2.getText().isEmpty()) {\n sum += Integer.parseInt(pq2.getText());//we must add this\n }\n if (!bq2.getText().isEmpty()) {\n sum += Integer.parseInt(bq2.getText());//we must add this\n }\n \n tq2.setText(String.valueOf(sum));\n }\n };\n \n ((AbstractDocument) (aq2.getDocument())).setDocumentFilter(df);\n ((AbstractDocument) (mq2.getDocument())).setDocumentFilter(df);\n ((AbstractDocument) (oq2.getDocument())).setDocumentFilter(df);\n ((AbstractDocument) (pq2.getDocument())).setDocumentFilter(df);\n ((AbstractDocument) (bq2.getDocument())).setDocumentFilter(df);\n \n \t*/\n \n \n /* ----------------------------------------------------------\n * MAKING THE SUBMIT BUTTON\n * ----------------------------------------------------------\n */\n \t\n JButton b = new JButton(\"Submit\");\n \n /*\n * Adding the Action listener on the Button --------------------\n * \n */\n \n b.addActionListener(new ActionListener(){\n \t public void actionPerformed(ActionEvent e){\n \t \tint sum=0;\n \t int v1=Integer.parseInt(aq2.getText());\n \t int v2=Integer.parseInt(mq2.getText());\n \t int v3=Integer.parseInt(oq2.getText());\n \t int v4=Integer.parseInt(pq2.getText());\n \t int v5=Integer.parseInt(bq2.getText());\n \t \n \t int a= Integer.parseInt(aq1.getText());\n \t int m=Integer.parseInt(mq1.getText());\n \t int o=Integer.parseInt(oq1.getText());\n \t int p=Integer.parseInt(pq1.getText());\n \t int b=Integer.parseInt(bq1.getText());\n \t \n \t if (v1<=a){\n \t \tsum+=v1;\n \t \ta=a-v1;\n \t \tif (a==0){\n \t \t\taq2.setEnabled(false);\n \t \t}\n \t \taq1.setText(Integer.toString(a));\n \t }\n \t if (v2<=m){\n \t \tsum+=v2;\n \t \tm=m-v2;\n \t \tif (m==0){\n \t \t\tmq2.setEnabled(false);\n \t \t}\n \t \tmq1.setText(Integer.toString(m));\n \t }\n \t if (v3<=o){\n \t \tsum+=v3;\n \t \to=o-v3;\n \t \tif (o==0){\n \t \t\toq2.setEnabled(false);\n \t \t}\n \t \toq1.setText(Integer.toString(o));\n \t }\n \t if (v4<=p){\n \t \tsum+=v4;\n \t \tp=p-v4;\n \t \tif (p==0){\n \t \t\tpq2.setEnabled(false);\n \t \t}\n \t \tpq1.setText(Integer.toString(p));\n \t }\n \t if (v5<=b){\n \t \tsum+=v5;\n \t \tb=b-v5;\n \t \tif (b==0){\n \t \t\tbq2.setEnabled(false);\n \t \t}\n \t \tbq1.setText(Integer.toString(b));\n \t }\n \t aq2.setText(\"0\");\n \t mq2.setText(\"0\");\n \t oq2.setText(\"0\");\n \t pq2.setText(\"0\");\n \t bq2.setText(\"0\");\n \t \n \t tq1.setText(Integer.toString(a+m+o+p+b));\n \t tq2.setText(Integer.toString(sum));\n \t }\n\n });\n \n // Displaying the Button\n \n cst.fill = GridBagConstraints.HORIZONTAL;\n cst.gridx=3;\n cst.gridy=13;\n cst.gridwidth=1;\n panel.add(b,cst);\n\n \n //Displaying the Whole Frame\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.getContentPane().add(panel);\n frame.pack();\n frame.setVisible(true);\n \n \n \n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n txtsku = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n txtname = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n txtprice = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n txtqty = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n txtdiscount = new javax.swing.JTextField();\n lblbillno = new javax.swing.JLabel();\n lbldate = new javax.swing.JLabel();\n lbltime = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jButton1 = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n lblgrandtot = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n lblsubtot = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n btnbill = new javax.swing.JButton();\n btnhome = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n txtpara = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n jLabel1.setText(\"Bill #\"); // NOI18N\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 110, 50, 20));\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n jLabel2.setText(\"Time\"); // NOI18N\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 110, 50, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n jLabel3.setText(\"Date\"); // NOI18N\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 110, 50, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n jLabel4.setText(\"Product SKU\"); // NOI18N\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 160, -1, -1));\n\n txtsku.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n txtsku.setText(\"jTextField1\"); // NOI18N\n txtsku.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtskuActionPerformed(evt);\n }\n });\n getContentPane().add(txtsku, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 160, 160, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n jLabel5.setText(\"Name\"); // NOI18N\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 160, -1, -1));\n\n txtname.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n txtname.setText(\"jTextField1\"); // NOI18N\n getContentPane().add(txtname, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 160, 160, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n jLabel6.setText(\"Price\"); // NOI18N\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 160, -1, -1));\n\n txtprice.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n txtprice.setText(\"jTextField1\"); // NOI18N\n getContentPane().add(txtprice, new org.netbeans.lib.awtextra.AbsoluteConstraints(660, 160, 130, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n jLabel7.setText(\"Qty\"); // NOI18N\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 210, -1, -1));\n\n txtqty.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n txtqty.setText(\"jTextField1\"); // NOI18N\n txtqty.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtqtyActionPerformed(evt);\n }\n });\n getContentPane().add(txtqty, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 210, 160, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n jLabel8.setText(\"Discount\"); // NOI18N\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 210, -1, -1));\n\n txtdiscount.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n txtdiscount.setText(\"jTextField1\"); // NOI18N\n txtdiscount.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtdiscountActionPerformed(evt);\n }\n });\n getContentPane().add(txtdiscount, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 210, 160, -1));\n\n lblbillno.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n lblbillno.setText(\"jLabel2\"); // NOI18N\n getContentPane().add(lblbillno, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 110, 140, 20));\n\n lbldate.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n lbldate.setText(\"jLabel2\"); // NOI18N\n getContentPane().add(lbldate, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 110, 140, -1));\n\n lbltime.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n lbltime.setText(\"jLabel2\"); // NOI18N\n getContentPane().add(lbltime, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 110, 90, -1));\n\n jTable1.setFont(new java.awt.Font(\"Arial Black\", 0, 14)); // NOI18N\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Product SKU\", \"Name\", \"Qty\", \"Price\", \"Discount\"\n }\n ));\n jScrollPane1.setViewportView(jTable1);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 250, 550, 210));\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton1.setText(\"PRINT BILL\"); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 360, 210, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Times New Roman\", 1, 36)); // NOI18N\n jLabel9.setText(\"BILLING SYSTEM\"); // NOI18N\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 24, 370, 50));\n\n lblgrandtot.setFont(new java.awt.Font(\"Arial Black\", 0, 18)); // NOI18N\n lblgrandtot.setText(\"00.00\"); // NOI18N\n getContentPane().add(lblgrandtot, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 320, 170, -1));\n\n jLabel15.setFont(new java.awt.Font(\"Times New Roman\", 0, 18)); // NOI18N\n jLabel15.setText(\"Sub Total\"); // NOI18N\n getContentPane().add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 290, 130, 30));\n\n lblsubtot.setFont(new java.awt.Font(\"Arial Black\", 0, 18)); // NOI18N\n lblsubtot.setText(\"00.00\"); // NOI18N\n getContentPane().add(lblsubtot, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 290, 170, -1));\n\n jLabel17.setFont(new java.awt.Font(\"Times New Roman\", 0, 18)); // NOI18N\n jLabel17.setText(\"Grand Total\"); // NOI18N\n getContentPane().add(jLabel17, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 320, 150, 30));\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jButton2.setText(\"PRINT PARA BILL\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 420, 200, 40));\n\n btnbill.setFont(new java.awt.Font(\"Arial Black\", 0, 18)); // NOI18N\n btnbill.setText(\"Print Bill\"); // NOI18N\n btnbill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnbillActionPerformed(evt);\n }\n });\n getContentPane().add(btnbill, new org.netbeans.lib.awtextra.AbsoluteConstraints(980, 500, 180, 40));\n\n btnhome.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n btnhome.setText(\"LOGOUT\"); // NOI18N\n btnhome.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnhomeActionPerformed(evt);\n }\n });\n getContentPane().add(btnhome, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 30, 130, 20));\n\n jButton3.setText(\" Back\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 480, 130, 20));\n getContentPane().add(txtpara, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 470, 180, -1));\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/solid_colors_stains_light_18571_1920x1200.jpg\"))); // NOI18N\n getContentPane().add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -70, 1250, 710));\n\n setSize(new java.awt.Dimension(811, 579));\n setLocationRelativeTo(null);\n }", "int layout(ArrayList<ImageCell> images, int totalWidth);", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTable2 = new javax.swing.JTable();\n jComboBox1 = new javax.swing.JComboBox();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTable3 = new javax.swing.JTable();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTable4 = new javax.swing.JTable();\n jComboBox2 = new javax.swing.JComboBox();\n jScrollPane5 = new javax.swing.JScrollPane();\n jTable5 = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jButton1.setText(\"New Sale\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Add itme\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Item ID\");\n\n jLabel2.setText(\"Quantity\");\n\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField2ActionPerformed(evt);\n }\n });\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"SL#\", \"Item Name\", \"Unit Price\", \"Qunatity\", \"Sub Total\"\n }\n ));\n jScrollPane1.setViewportView(jTable1);\n\n jTable2.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Total\", \"\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.Integer.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n jScrollPane2.setViewportView(jTable2);\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" }));\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jTable3.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"VAT\", \"\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.Integer.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n jScrollPane3.setViewportView(jTable3);\n\n jTable4.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Grand Total\", \"\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.Integer.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n jScrollPane4.setViewportView(jTable4);\n\n jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Select\", \"Senior\", \"Junior\" }));\n\n jTable5.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Discount\", \"\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.Integer.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n jScrollPane5.setViewportView(jTable5);\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 .addGap(99, 99, 99)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jComboBox2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(67, 67, 67)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField2)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addContainerGap(1350, Short.MAX_VALUE))\n );\n\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton1, jButton2});\n\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(52, 52, 52)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel2)\n .addGap(18, 18, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jComboBox1, jLabel1, jLabel2, jTextField2});\n\n layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jButton1, jButton2});\n\n pack();\n }", "@Override\r\n\tpublic int getCount() {\n\t\treturn 6;\r\n\t}", "private JPanel getCollectionSizePanel() {\n\t\tif (collectionSizePanel == null) {\n\t\t\tFlowLayout flowLayout1 = new FlowLayout();\n\t\t\tflowLayout1.setAlignment(FlowLayout.RIGHT);\n\t\t\tcollectionSizeLabel = new JLabel();\n\t\t\tcollectionSizeLabel.setText(\"Размер набора\");\n\t\t\tcollectionSizePanel = new JPanel();\n\t\t\tcollectionSizePanel.setLayout(flowLayout1);\n\t\t\tcollectionSizePanel.add(collectionSizeLabel, null);\n\t\t\tcollectionSizePanel.add(getNabor(), null);\n\t\t}\n\t\treturn collectionSizePanel;\n\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 7;\n\t\t}", "public void ShowOrderDetailInJTable(){\n ArrayList<OrderDetail> list = getOrderDetailList();\n \n Object[] row = new Object[5];\n for (int i = 0; i < list.size(); i++) {\n row[0] = list.get(i).getOrderNumber();\n row[1] = list.get(i).getProductID();\n row[2] = \"Rp. \" + list.get(i).getUnitPrice();\n row[3] = list.get(i).getQuantity();\n row[4] = list.get(i).getDiscount()==0.05 ? \"5%\" : \"30%\";\n //total price\n double tempDiscount = list.get(i).getUnitPrice()*list.get(i).getQuantity()*list.get(i).getDiscount();\n// System.out.println(String.format(\"%.2f\",tempDiscount));\n double tempTotal = list.get(i).getUnitPrice()*list.get(i).getQuantity() - tempDiscount;\n// System.out.println(String.format(\"%.2f\", tempTotal));\n total=tempTotal+total;\n \n \n model2.addRow(row);\n }\n }", "int getItemSize();", "public void makeOrder(Order order) {\n for(Order_Item x : order.getOrdered()){\n TableRow item_row = build_row(x.getItem().getName(), String.valueOf(x.getQuantity()), (x.getPrice()*x.getQuantity()) + \"€\");\n orderLayout.addView(item_row);\n }\n\n refreshPriceView();\n }", "private void viewBackpack() {\n Item[] inventory = GameControl.getSortedInventoryList();\r\n \r\n System.out.println(\"\\n List of inventory Items\");\r\n System.out.println(\"Description\" + \"\\t\" + \r\n \"Required\" + \"\\t\" +\r\n \"In Stock\");\r\n \r\n // For each inventory item\r\n for (Item inventoryItem : inventory){\r\n // Display the description, the required amount and amount in stock\r\n System.out.println(InventoryItem.getType + \"\\t \" +\r\n InventoryItem.requiredAmount + \"\\t \" +\r\n InventoryItem.getQuantity);\r\n }\r\n \r\n }", "@Override\r\n\tpublic int getCount() {\n\t\treturn 3;\r\n\t}", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@Override\n public int getCount() {\n return 4;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n tId = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n tQty = new javax.swing.JTextField();\n btnTambah = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblData = new javax.swing.JTable();\n tBayar = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n btnSimpan = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n tBeli = new javax.swing.JTextField();\n tNama = new javax.swing.JTextField();\n tJual = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n tKode = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n tTanggal = new javax.swing.JTextField();\n tSupplier = new javax.swing.JComboBox<>();\n jPanel3 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n tTotal = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formKeyPressed(evt);\n }\n });\n getContentPane().setLayout(new java.awt.CardLayout());\n\n jPanel1.setBackground(new java.awt.Color(254, 241, 230));\n\n jPanel2.setBackground(new java.awt.Color(249, 213, 167));\n jPanel2.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jPanel2MouseDragged(evt);\n }\n });\n jPanel2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jPanel2MousePressed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Poppins SemiBold\", 0, 16)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Form Pembelian\");\n\n jLabel10.setFont(new java.awt.Font(\"Poppins ExtraBold\", 0, 16)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(144, 170, 203));\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"X\");\n jLabel10.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel10MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel2.setFont(new java.awt.Font(\"Poppins Medium\", 0, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(102, 102, 102));\n jLabel2.setText(\"ID\");\n\n tId.setEditable(false);\n tId.setFont(new java.awt.Font(\"Poppins SemiBold\", 0, 12)); // NOI18N\n tId.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tIdActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Poppins Medium\", 0, 12)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(102, 102, 102));\n jLabel3.setText(\"Nama Obat\");\n\n jLabel5.setFont(new java.awt.Font(\"Poppins Medium\", 0, 12)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(102, 102, 102));\n jLabel5.setText(\"Qty\");\n\n tQty.setFont(new java.awt.Font(\"Poppins SemiBold\", 0, 12)); // NOI18N\n tQty.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tQtyKeyPressed(evt);\n }\n });\n\n btnTambah.setBackground(new java.awt.Color(52, 91, 99));\n btnTambah.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btnTambahMouseClicked(evt);\n }\n });\n btnTambah.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n btnTambahKeyPressed(evt);\n }\n });\n btnTambah.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel6.setFont(new java.awt.Font(\"Poppins SemiBold\", 0, 12)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(212, 236, 221));\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setText(\"Tambah\");\n btnTambah.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 30));\n\n tblData.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tblData.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tblDataMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(tblData);\n\n tBayar.setFont(new java.awt.Font(\"Poppins SemiBold\", 0, 12)); // NOI18N\n tBayar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tBayarKeyPressed(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Poppins Medium\", 0, 12)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(102, 102, 102));\n jLabel8.setText(\"Bayar\");\n\n btnSimpan.setBackground(new java.awt.Color(52, 91, 99));\n btnSimpan.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btnSimpanMouseClicked(evt);\n }\n });\n btnSimpan.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel9.setFont(new java.awt.Font(\"Poppins SemiBold\", 0, 12)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(212, 236, 221));\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setText(\"Simpan\");\n btnSimpan.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 150, 32));\n\n jLabel11.setFont(new java.awt.Font(\"Poppins Medium\", 0, 12)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(102, 102, 102));\n jLabel11.setText(\"Harga Beli\");\n\n tBeli.setFont(new java.awt.Font(\"Poppins SemiBold\", 0, 12)); // NOI18N\n tBeli.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tBeliKeyPressed(evt);\n }\n });\n\n tNama.setFont(new java.awt.Font(\"Poppins SemiBold\", 0, 12)); // NOI18N\n tNama.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tNamaKeyPressed(evt);\n }\n });\n\n tJual.setFont(new java.awt.Font(\"Poppins SemiBold\", 0, 12)); // NOI18N\n tJual.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tJualKeyPressed(evt);\n }\n });\n\n jLabel12.setFont(new java.awt.Font(\"Poppins Medium\", 0, 12)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(102, 102, 102));\n jLabel12.setText(\"Harga Jual\");\n\n tKode.setEditable(false);\n tKode.setFont(new java.awt.Font(\"Poppins SemiBold\", 0, 12)); // NOI18N\n\n jLabel4.setFont(new java.awt.Font(\"Poppins Medium\", 0, 12)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(102, 102, 102));\n jLabel4.setText(\"Kode Pembelian\");\n\n jLabel13.setFont(new java.awt.Font(\"Poppins Medium\", 0, 12)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(102, 102, 102));\n jLabel13.setText(\"Tanggal\");\n\n jLabel14.setFont(new java.awt.Font(\"Poppins Medium\", 0, 12)); // NOI18N\n jLabel14.setForeground(new java.awt.Color(102, 102, 102));\n jLabel14.setText(\"Supplier\");\n\n tTanggal.setEditable(false);\n tTanggal.setFont(new java.awt.Font(\"Poppins SemiBold\", 0, 12)); // NOI18N\n\n tSupplier.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jPanel3.setBackground(new java.awt.Color(249, 213, 167));\n jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 0));\n\n jLabel7.setFont(new java.awt.Font(\"Poppins Medium\", 0, 12)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(102, 102, 102));\n jLabel7.setText(\"Total\");\n\n tTotal.setFont(new java.awt.Font(\"Poppins Medium\", 0, 24)); // NOI18N\n tTotal.setForeground(new java.awt.Color(102, 102, 102));\n tTotal.setText(\"Total\");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 105, Short.MAX_VALUE))\n .addComponent(tTotal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tTotal, javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)\n .addContainerGap())\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 .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tBayar)\n .addComponent(btnSimpan, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tId, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(tNama, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tBeli, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(60, 60, 60)\n .addComponent(jLabel11)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel12)\n .addComponent(tJual, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tSupplier, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tTanggal, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tKode, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)\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.LEADING)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tQty, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnTambah, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)))))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tKode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tTanggal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tSupplier, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14)))\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel11)\n .addComponent(jLabel12))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tNama, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(btnTambah, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tBeli, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tJual, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(tQty, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tBayar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnSimpan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n getContentPane().add(jPanel1, \"card2\");\n\n pack();\n setLocationRelativeTo(null);\n }", "private Rect LayoutTemplet4(int index, Rect rect, int overIndex, int times) {\n int x, y;\n\n int frontHeight = getFrontHeight(4);\n overIndex = overIndex - getFrontItemCount(4);\n\n if (overIndex == 0) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mItemWidth + mSlotWidth, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 1) {\n x = mHorizontalPadding + mItemWidth * 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 2) {\n x = mHorizontalPadding + mItemWidth * 2;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 3) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 2;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n } else if (overIndex == 4) {\n x = mHorizontalPadding + mItemWidth;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 2;\n rect.set(x, y, x + mItemWidth + mSlotWidth, y + mItemHeight + mSlotHeight);\n } else if (overIndex == 5) {\n x = mHorizontalPadding;\n y = mVerticalPadding + times * mTempletTotalHeight + frontHeight + mItemHeight * 3;\n rect.set(x, y, x + mSlotWidth, y + mSlotHeight);\n }\n\n return rect;\n }", "public int getSlots() {\n\t\treturn this.rows * 9;\n\t}", "@Override\r\n\t\t\tpublic int getCount() {\n\t\t\t\treturn 2;\r\n\t\t\t}", "public ItemsControl() {\t\t\t\t\n\t\tlistListener = new SourceListChangeListener();\n\n\t\tBoxLayout boxLayout = new BoxLayout(this, BoxLayout.Y_AXIS);\n\t\tsetLayout(boxLayout);\t\t\t\t\n\t\tif (Beans.isDesignTime()) {\t\t\t\n\t\t\tJLabel designTimeCaptionLbl = new JLabel(\"<ItemsControl>\");\t\t\t\t\t\t\n\t\t\tthis.add(designTimeCaptionLbl);\n\t\t}\n\t}", "@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n View v = convertView;\n if (v == null) {\n LayoutInflater vi = context.getLayoutInflater();\n v = vi.inflate(R.layout.qitem, null);\n }\n TextView tt = (TextView) v.findViewById(R.id.text1);\n TextView bt = (TextView) v.findViewById(R.id.textdesc);\n DataItem dtItem = datalist.get(position);\n if (tt != null) {\n tt.setText(\"Data ID: \"+dIDlist.get(position)+\" Children No: \"+dtItem.getChildNo()); }\n if(bt != null){\n\t\t\t\t\tString data = \" q5: \"+dtItem.getQ5()+\n\t\t\t\t\t\t\t\" q6: \"+dtItem.getQ6()+\n\t\t\t\t\t\t\t\" q7s1: \"+dtItem.getQ7s1()+\n\t\t\t\t\t\t\t\" q7s2: \"+dtItem.getQ7s2()+\n\t\t\t\t\t\t\t\" q7s3: \"+dtItem.getQ7s3()+\n\t\t\t\t\t\t\t\" q7s4: \"+dtItem.getQ7s4()+\n\t\t\t\t\t\t\t\" q7s5: \"+dtItem.getQ7s5()+\n\t\t\t\t\t\t\t\" q8s1: \"+dtItem.getQ8s1()+\n\t\t\t\t\t\t\t\" q8s2: \"+dtItem.getQ8s2()+\n\t\t\t\t\t\t\t\" q8s3: \"+dtItem.getQ8s3()+\n\t\t\t\t\t\t\t\" q8s4: \"+dtItem.getQ8s4()+\n\t\t\t\t\t\t\t\" q8s5: \"+dtItem.getQ8s5()+\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\" q10s1: \"+dtItem.getQ10s1()+\n\t\t\t\t\t\t\t\" q10s2: \"+dtItem.getQ10s2()+\n\t\t\t\t\t\t\t\" q10s3: \"+dtItem.getQ10s3()+\n\t\t\t\t\t\t\t\" q10s4: \"+dtItem.getQ10s4()+\n\t\t\t\t\t\t\t\" q10s5: \"+dtItem.getQ10s5()+\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\" q11: \"+dtItem.getQ11()+\n\t\t\t\t\t\t\t\" q11_Other: \"+dtItem.getQ11_other()+\n\t\t\t\t\t\t\t\" q12: \"+dtItem.getQ12()+\n\t\t\t\t\t\t\t\" q13: \"+dtItem.getQ13()+\n\t\t\t\t\t\t\t\" q14: \"+dtItem.getQ14()+\n\t\t\t\t\t\t\t\" q15: \"+dtItem.getQ15()+\n\t\t\t\t\t\t\t\" q16: \"+dtItem.getQ16()+\n\t\t\t\t\t\t\t\" q17: \"+dtItem.getQ17()+\n\t\t\t\t\t\t\t\" q17_other: \"+dtItem.getQ17_other()+\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\" q18: \"+dtItem.getQ18()+\n\t\t\t\t\t\t\t\" q18_other: \"+dtItem.getQ18_other()+\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\" q19: \"+dtItem.getQ19()+\n\t\t\t\t\t\t\t\" q20: \"+dtItem.getQ20()+\n\t\t\t\t\t\t\t\" q21: \"+dtItem.getQ21()+\n\t\t\t\t\t\t\t\" q22: \"+dtItem.getQ22()+\n\t\t\t\t\t\t\t\" q23: \"+dtItem.getQ23()+\n\t\t\t\t\t\t\t\" q23_other: \"+dtItem.getQ23_other()+\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\" EntryBy: \"+dtItem.getEntryBy()+\n\t\t\t\t\t\t\t\" EntryDate: \"+dtItem.getEntryDate()+\n\t\t\t\t\t\t\t\" EditBy: \"+dtItem.getEditBy()+\n\t\t\t\t\t\t\t\" EditDate: \"+dtItem.getEditDate();\t\n bt.setText(\"Data Collected: \"+ data);\n }\n\n return v;\n\t}", "private VerticalLayout buildGridInfo() {\n\t\tgridInfo = new VerticalLayout();\r\n\t\tgridInfo.setImmediate(false);\r\n\t\tgridInfo.setWidth(\"100%\");\r\n\t\tgridInfo.setHeight(\"100.0%\");\r\n\t\tgridInfo.setMargin(false);\r\n\t\tgridInfo.setSpacing(true);\r\n\t\t\r\n\t\t// gridTitle\r\n\t\tgridTitle = buildGridTitle();\r\n\t\tgridInfo.addComponent(gridTitle);\r\n\t\tgridInfo.setExpandRatio(gridTitle, 1.0f);\r\n\t\t\r\n\t\t// gridData\r\n\t\tgridData = buildGridData();\r\n\t\tgridInfo.addComponent(gridData);\r\n\t\tgridInfo.setExpandRatio(gridData, 1.0f);\r\n\t\t\r\n\t\treturn gridInfo;\r\n\t}", "private void createAndAddViews() {\n \t\t// Create the layout parameters for each field\n \t\tfinal LinearLayout.LayoutParams labelParams = new LinearLayout.LayoutParams(\n \t\t\t\t0, LayoutParams.WRAP_CONTENT, 0.3f);\n \t\tlabelParams.gravity = Gravity.RIGHT;\n \t\tlabelParams.setMargins(0, 25, 0, 0);\n \t\tfinal LinearLayout.LayoutParams valueParams = new LinearLayout.LayoutParams(\n \t\t\t\t0, LayoutParams.WRAP_CONTENT, 0.7f);\n \t\tvalueParams.gravity = Gravity.LEFT;\n \t\tvalueParams.setMargins(0, 25, 0, 0);\n \n \t\t// Add a layout and text views for each property\n \t\tfor (final StockProperty property : m_propertyList) {\n \t\t\tLog.d(TAG, \"Adding row for property: \" + property.getPropertyName());\n \n \t\t\t// Create a horizontal layout for the label and value\n \t\t\tfinal LinearLayout layout = new LinearLayout(this);\n \t\t\tlayout.setLayoutParams(new LinearLayout.LayoutParams(\n \t\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));\n \n \t\t\t// Create a TextView for the label\n \t\t\tfinal TextView label = new TextView(this);\n \t\t\tlabel.setLayoutParams(labelParams);\n \t\t\tlabel.setText(property.getLabelText());\n \t\t\tlabel.setTextAppearance(this, android.R.style.TextAppearance_Medium);\n \t\t\tlayout.addView(label);\n \n \t\t\t// Configure and add the value TextView (created when the property\n \t\t\t// was constructed)\n \t\t\tfinal TextView value = property.getView();\n \t\t\tvalue.setLayoutParams(valueParams);\n \t\t\tvalue.setHint(\"None\");\n \t\t\tvalue.setTextAppearance(this, android.R.style.TextAppearance_Medium);\n \t\t\tvalue.setTypeface(null, Typeface.BOLD);\n \t\t\tlayout.addView(value);\n \n \t\t\t// Add the row to the main layout\n \t\t\tm_resultsLayout.addView(layout);\n \t\t}\n \t}", "@Override\n\tpublic int totalItem() {\n\t\treturn 0;\n\t}", "@Override\n\t\t\tpublic int getCount() {\n\t\t\t\treturn 2;\n\t\t\t}", "public static Data<String> weaponMunitionQuantity(){\n\t\tData<String> res = new Data<String>();\n\t\tres.add(new Tuple<String, Integer>(\"2d10\", 10));\n\t\tres.add(new Tuple<String, Integer>(\"4d10\", 10));\n\t\tres.add(new Tuple<String, Integer>(\"1\", 60));\n\t\tres.add(new Tuple<String, Integer>(\"2d10\", 10));\n\t\tres.add(new Tuple<String, Integer>(\"4d10\", 10));\n\t\t\n\t\treturn res;\n\t}", "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}", "@Override\n\tpublic int getTotalItem() {\n\t\treturn 0;\n\t}", "private void Qty_Rate_Edit() {\r\n\r\n double dblQty = 0;\r\n double dTaxPercent = 0,dServiceTaxPercent = 0, dDiscPercent = 0, dDiscAmt = 0, dTempAmt = 0, dTaxAmt = 0,dServiceTaxAmt =0;\r\n double dRate,dIGSTAmt=0, dcessAmt=0,dcessAmtPerUnit=0,dcessRate=0,dCessAmountPerUnit=0;\r\n double dCessAdditionalAmount =0,dTotalCessAmount=0;\r\n try {\r\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\r\n\r\n TableRow Row = (TableRow) tblOrderItems.getChildAt(iRow);\r\n\r\n // Check against item number present in table\r\n if (Row.getChildAt(0) != null) {\r\n\r\n CheckBox Number = (CheckBox) Row.getChildAt(0);\r\n TextView ItemName = (TextView) Row.getChildAt(1);\r\n\r\n\r\n // Quantity\r\n EditText Qty = (EditText) Row.getChildAt(3);\r\n //Qty.setSelectAllOnFocus(true);\r\n dblQty = Double.parseDouble(\r\n Qty.getText().toString().equalsIgnoreCase(\"\") ? \"0\" : Qty.getText().toString()); // Temp\r\n if (BillwithStock == 1) {\r\n Cursor ItemCrsr = db.getItemDetail(ItemName.getText().toString());\r\n if(ItemCrsr!=null && ItemCrsr.moveToFirst())\r\n {\r\n double availableStock = ItemCrsr.getDouble(ItemCrsr.getColumnIndex(\"Quantity\"));\r\n if ( availableStock < dblQty) {\r\n MsgBox.Show(\"Warning\", \"Stock is less, present stock quantity is \"\r\n + String.valueOf(availableStock));\r\n Qty.setText(String.format(\"%.2f\", availableStock));\r\n\r\n return;\r\n }\r\n }\r\n\r\n }\r\n // Amount\r\n EditText Rate = (EditText) Row.getChildAt(4);\r\n //Rate.setSelectAllOnFocus(true);\r\n TextView Amount = (TextView) Row.getChildAt(5);\r\n dRate = Double.parseDouble(\r\n Rate.getText().toString().equalsIgnoreCase(\"\") ? \"0\" : Rate.getText().toString()); // Temp\r\n\r\n\r\n // Tax and Discount Amount\r\n TextView TaxPer = (TextView) Row.getChildAt(6);\r\n TextView TaxAmt = (TextView) Row.getChildAt(7);\r\n TextView DiscPer = (TextView) Row.getChildAt(8);\r\n TextView DiscAmt = (TextView) Row.getChildAt(9);\r\n TextView ServiceTax = (TextView) Row.getChildAt(15);\r\n TextView ServiceTaxAmt = (TextView) Row.getChildAt(16);\r\n TextView IGSTRate = (TextView) Row.getChildAt(23);\r\n TextView IGSTAmt = (TextView) Row.getChildAt(24);\r\n TextView cessRate = (TextView) Row.getChildAt(25);\r\n TextView cessAmtPerUnit = (TextView) Row.getChildAt(26);\r\n TextView tvTaxableValue = (TextView) Row.getChildAt(28);\r\n TextView tvOriginalRate = (TextView) Row.getChildAt(27);\r\n TextView additionalCessAmount = (TextView) Row.getChildAt(29);\r\n TextView tvTotalCessAmount = (TextView) Row.getChildAt(30);\r\n\r\n dTaxPercent = Double.parseDouble(TaxPer.getText().toString().equalsIgnoreCase(\"\") ? \"0\"\r\n : TaxPer.getText().toString()); // Temp\r\n dServiceTaxPercent = Double.parseDouble(ServiceTax.getText().toString().equalsIgnoreCase(\"\") ? \"0\"\r\n : ServiceTax.getText().toString()); // Temp\r\n double dIGSTRate = Double.parseDouble(IGSTRate.getText().toString().equalsIgnoreCase(\"\") ? \"0\"\r\n : IGSTRate.getText().toString()); // Temp\r\n dcessRate = Double.parseDouble(cessRate.getText().toString().equalsIgnoreCase(\"\") ? \"0\"\r\n : cessRate.getText().toString()); // Temp\r\n dCessAmountPerUnit = Double.parseDouble(cessAmtPerUnit.getText().toString().equalsIgnoreCase(\"\") ? \"0\"\r\n : cessAmtPerUnit.getText().toString()); // Temp\r\n dCessAdditionalAmount = Double.parseDouble(additionalCessAmount.getText().toString().equalsIgnoreCase(\"\") ? \"0\"\r\n : additionalCessAmount.getText().toString()); // Temp\r\n dTotalCessAmount = Double.parseDouble(tvTotalCessAmount.getText().toString().equalsIgnoreCase(\"\") ? \"0\"\r\n : tvTotalCessAmount.getText().toString()); // Temp\r\n dDiscPercent = Double.parseDouble(DiscPer.getText().toString().equalsIgnoreCase(\"\") ? \"0\"\r\n : DiscPer.getText().toString()); // Temp\r\n\r\n if (crsrSettings.getInt(crsrSettings.getColumnIndex(\"Tax\")) == 1) { // forward tax\r\n // Discount\r\n dDiscAmt = dRate * (dDiscPercent / 100);\r\n dTempAmt = dDiscAmt;\r\n dDiscAmt = dDiscAmt * dblQty;\r\n\r\n // Tax\r\n dTaxAmt = (dRate - dTempAmt) * (dTaxPercent / 100);\r\n dTaxAmt = dTaxAmt * dblQty;\r\n\r\n dServiceTaxAmt = (dRate - dTempAmt) * (dServiceTaxPercent / 100);\r\n dServiceTaxAmt = dServiceTaxAmt * dblQty;\r\n\r\n dIGSTAmt = (dRate - dTempAmt) * (dIGSTRate / 100);\r\n dIGSTAmt = dIGSTAmt * dblQty;\r\n\r\n if (dcessRate > 0)\r\n dcessAmtPerUnit = (dRate - dTempAmt) * (dcessRate / 100) * dblQty;\r\n else\r\n dcessAmtPerUnit = dCessAmountPerUnit * dblQty;\r\n\r\n dCessAdditionalAmount = dCessAdditionalAmount * dblQty;\r\n\r\n dTotalCessAmount = dcessAmtPerUnit + dCessAdditionalAmount;\r\n\r\n TaxAmt.setText(String.format(\"%.2f\", dTaxAmt));\r\n DiscAmt.setText(String.format(\"%.2f\", dDiscAmt));\r\n ServiceTaxAmt.setText(String.format(\"%.2f\", dServiceTaxAmt));\r\n// cessAmtPerUnit.setText(String.format(\"%.2f\", dcessAmtPerUnit));\r\n// additionalCessAmount.setText(String.format(\"%.2f\", dCessAdditionalAmount));\r\n tvTotalCessAmount.setText(String.format(\"%.2f\", dTotalCessAmount));\r\n IGSTAmt.setText(String.format(\"%.2f\", dIGSTAmt));\r\n Amount.setText(String.format(\"%.2f\", (dblQty * (dRate-dTempAmt))));\r\n tvTaxableValue.setText(String.format(\"%.2f\", (dblQty * (dRate-dTempAmt))));\r\n tvOriginalRate.setText(String.format(\"%.2f\", (dRate)));\r\n\r\n } else {// reverse tax\r\n\r\n TextView originalRate = (TextView) Row.getChildAt(27);\r\n dRate = Double.parseDouble(originalRate.getText().toString().equalsIgnoreCase(\"\") ? \"0\"\r\n : originalRate.getText().toString()); //\r\n // Discount\r\n dDiscAmt = dRate * (dDiscPercent / 100);\r\n dTempAmt = dDiscAmt;\r\n dDiscAmt = dDiscAmt * dblQty;\r\n\r\n double dBasePrice = 0;\r\n dBasePrice = (dRate-dTempAmt) / (1 + (dTaxPercent / 100)+(dServiceTaxPercent/100)+ (dcessRate/100));\r\n\r\n // Tax\r\n dTaxAmt = (dBasePrice ) * (dTaxPercent / 100);\r\n dTaxAmt = dTaxAmt *dblQty;;\r\n\r\n dIGSTAmt = (dBasePrice ) * (dIGSTRate/ 100);\r\n dIGSTAmt = dIGSTAmt * dblQty;\r\n\r\n// dcessAmt = (dBasePrice ) * (dcessRate / 100);\r\n// dcessAmt = dcessAmt * dblQty;;\r\n\r\n dCessAmountPerUnit = 0.00;\r\n dCessAdditionalAmount = 0.00;\r\n dTotalCessAmount = dCessAmountPerUnit + dCessAdditionalAmount;\r\n\r\n //Service tax\r\n dServiceTaxAmt = (dBasePrice) * (dServiceTaxPercent / 100);\r\n dServiceTaxAmt = dServiceTaxAmt * dblQty;\r\n\r\n double amount = (dblQty * (dRate-dTempAmt));\r\n double taxVal = (dblQty * dBasePrice);\r\n\r\n dServiceTaxAmt = Double.parseDouble(df_3.format(dServiceTaxAmt));\r\n dTaxAmt = Double.parseDouble(df_3.format(dTaxAmt));\r\n dDiscAmt = Double.parseDouble(df_3.format(dDiscAmt));\r\n// dcessAmt = Double.parseDouble(df_3.format(dcessAmt));\r\n dIGSTAmt = Double.parseDouble(df_3.format(dIGSTAmt));\r\n amount = Double.parseDouble(df_2.format(amount));\r\n taxVal = Double.parseDouble(df_2.format(taxVal));\r\n\r\n Pattern p = Pattern.compile(\"^(-?[0-9]+[\\\\.\\\\,][0-9]{1,2})?[0-9]*$\");\r\n Matcher m = p.matcher(String.valueOf(taxVal));\r\n boolean matchFound = m.find();\r\n if (matchFound) {\r\n System.out.println(Double.valueOf(m.group(1)));\r\n }\r\n\r\n\r\n ServiceTaxAmt.setText(String.format(\"%.2f\", dServiceTaxAmt));\r\n TaxAmt.setText(String.format(\"%.2f\", dTaxAmt));\r\n DiscAmt.setText(String.format(\"%.2f\", dDiscAmt));\r\n// cessAmtPerUnit.setText(String.format(\"%.2f\", dcessAmtPerUnit));\r\n// additionalCessAmount.setText(String.format(\"%.2f\", dCessAdditionalAmount));\r\n tvTotalCessAmount.setText(String.format(\"%.2f\", dTotalCessAmount));\r\n IGSTAmt.setText(String.format(\"%.2f\", dIGSTAmt));\r\n Amount.setText(String.format(\"%.2f\",amount ));\r\n tvTaxableValue.setText(String.format(\"%.2f\",taxVal ));\r\n }\r\n // // delete\r\n // Delete.setText(\"Hi\");\r\n\r\n // Clear all variables and set ItemExists to TRUE\r\n // and break from the loop\r\n dRate = 0;\r\n dTaxPercent = 0;\r\n dDiscPercent = 0;\r\n dTaxAmt = 0;\r\n dDiscAmt = 0;\r\n dTempAmt = 0;\r\n //bItemExists = true;\r\n\r\n }\r\n\r\n }\r\n CalculateTotalAmount();\r\n } catch (Exception e) {\r\n MsgBox.setMessage(\"Error while changing quantity directly :\" + e.getMessage()).setPositiveButton(\"OK\", null).show();\r\n e.printStackTrace();\r\n }\r\n }", "public void distributeSelectedFurnitureHorizontally() {\n distributeSelectedFurniture(true);\n }", "public ShowProductListLimited() {\n initComponents();\n List<Product> products = WinkelApplication.getQueryManager().getProductList();\n DefaultTableModel model = (DefaultTableModel) this.jTable1.getModel();\n for (Product product : products) {\n model.addRow(new Object[]{new Integer(product.getProductId()),\n product.getCategorieId(),\n product.getName(),\n product.getPrice(),\n product.getDescription()});\n }\n }", "@Override\n public String toString()\n {\n \treturn getName() + \" (\" + numItem + \")\";\n }", "public String toString() {\n return (\"Item: \" + itemCode + \" \" + itemName + \" \" + itemQuantityInStock + \" price: $\" + df.format(itemPrice) +\" cost: $\"+ df.format(itemCost) + \" farm supplier: \" + farmName);\n }", "public ScGridColumn<AcAirportProgressSummaryVo> newTotalItemCountColumn()\n {\n return newTotalItemCountColumn(\"Total Item Count\");\n }", "public void printTest(){\n\r\n p.resetAll();\r\n p.initialize();\r\n p.feedBack((byte)2);\r\n// p.color(1);\r\n p.alignCenter();\r\n p.setText(\"The Dum Dum Name\");\r\n p.newLine();\r\n p.setText(\"Restaurant Dining\");\r\n p.newLine();\r\n p.addLineSeperator();\r\n p.newLine();\r\n p.setText(\"Bling Bling\");\r\n p.newLine();\r\n p.addLineSeperator();\r\n p.newLine();\r\n\r\n p.alignLeft();\r\n p.setText(\"POD No \\t\\t: 2001 \\t\\t Table \\t: E511\");\r\n p.newLine(); \r\n\r\n p.setText(\"Res Date \\t: \" + \"01/01/1801 22:59\");\r\n\r\n p.newLine();\r\n p.setText(\"Session \\t: Evening Session\");\r\n p.newLine();\r\n p.setText(\"Staff \\t\\t: Bum Dale\");\r\n p.newLine();\r\n p.addLineSeperator();\r\n p.newLine();\r\n p.alignCenter();\r\n p.setText(\" - Some Items - \");\r\n p.newLine();\r\n p.alignLeft();\r\n p.addLineSeperator();\r\n\r\n p.newLine();\r\n\r\n p.setText(\"No \\tItem\\t\\tUnit\\tQty\");\r\n p.newLine();\r\n p.addLineSeperator();\r\n \r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n p.setText(\"1\" + \"\\t\" + \"Aliens Everywhere\" + \"\\t\" + \"Rats\" + \"\\t\" + \"500\");\r\n p.newLine();\r\n \r\n p.addLineSeperator();\r\n p.feed((byte)3);\r\n p.finit();\r\n\r\n p.feedPrinter(p.finalCommandSet().getBytes());\r\n \r\n }", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 2;\n\t\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 2;\n\t\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 2;\n\t\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 2;\n\t\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 2;\n\t\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn 2;\n\t\t}", "public static void main(String[] args) {\n\t\tDecimalFormat k_10df = new DecimalFormat(\"###,###,###,###,###\");\n //숫자 5 이름 32 가격 15 수량 2 총가격 15\n\t\tString[] k_10itemname = { // item이름을 위한 배열이다\n\t\t\t\t\"01 테스트라면555 3,000 1 3,000\", \n\t\t\t\t\"02* 맛asdadad포카칩 1,000 2 2,000\",\n\t\t\t\t\"03 ddd초코센드위치ss위치 1,000 2 2,000\", \n\t\t\t\t\"04 피시방햄버거는맛없어 1,000 12 13,000\",//틀린거 \n\t\t\t\t\"05* 치즈없는피자 111,000 2 223,000\", \n\t\t\t\t\"06 맛있는포카칩 1,000 2 2,000\", \n\t\t\t\t\"07 뉴질랜드산항이 11,000 2 2,000\", \n\t\t\t\t\"08* 오늘의커피아이스 7,000 2 12,000\", //틀린거 \n\t\t\t\t\"09 시티위아아 1,000 2 2,000\", \n\t\t\t\t\"10 가나가맛있어 1,000 2 2,000\", \n\t\t\t\t\"11 스물두번째과자 800 2 1,600\", \n\t\t\t\t\"12 (싸이버버세트라지 4,000 2 8,000\", \n\t\t\t\t\"13 aaa프링클스오리지널 1,000 2 2,000\",\n\t\t\t\t\"14 55포카칩어니언맛 1,000 2 2,000\", \n\t\t\t\t\"15 떡없는떡볶이 1,000 6 6,000\", \n\t\t\t\t\"16* 호식이두마리치킨 1,000 2 2,000\", \n\t\t\t\t\"17* 땅땅치킨매운맛 3,000 2 6,000\", \n\t\t\t\t\"18 라면은역시매고랭 1,000 2 2,000\", \n\t\t\t\t\"19 된장찌개맛사탕 1,000 2 2,000\", \n\t\t\t\t\"20 삼겹살맛치토스 1,000 2 2,000\", \n\t\t\t\t\"21* 나홀로집에세트 1,000 2 2,000\", \n\t\t\t\t\"22 자바칩세트는맛없다 1,000 2 2,000\",\n\t\t\t\t\"23* 오레오레오레오 1,000 2 2,000\", \n\t\t\t\t\"24 자바에이드 1,000 2 2,000\", \n\t\t\t\t\"25 자이언트자바 1,000 2 2,000\", \n\t\t\t\t\"26 이건오떡오떡 2,000 10 20,100\", // 틀린거 \n\t\t\t\t\"27 마지막과자세트 1,000 11 11,000\", \n\t\t\t\t\"28* 차가운삼각김밥 1,000 2 2,000\", \n\t\t\t\t\"29 신라면짜장맛 1,000 2 2,000\", \n\t\t\t\t\"30 맛탕과김치 1,000 2 2,000\" }; \n\t\t\n\t\tfor (int k_10_i = 0; k_10_i < k_10itemname.length; k_10_i++) {\n\t\t\tString k_10_ToString = k_10itemname[k_10_i].toString();\n\t\t\tbyte [] k_10_bb = k_10_ToString.getBytes();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tString k_10_number = new String (k_10_bb,0,5);\t\t\t\t\t\t\t\t\t\t// 1번째부터 5바이트만큼 크기로 정의\n\t\t\tString k_10_name = new String (k_10_bb,5,33);\t\t\t\t\t\t\t\t\t\t// 6번째부터 33바이트만큼 크기로 정의\n\t\t\tString k_10_price1 = new String (k_10_bb,35,15);\t\t\t\t\t\t\t\t\t// 36번째부터 15바이트만큼 크기로 정의\n\t\t\tString k_10_units1 = new String (k_10_bb,55,10);\t\t\t\t\t\t\t\t\t// 56번째부터 10바이트만큼 크기로 정의\n\t\t\tString k_10_totalprice1 = new String (k_10_bb,60,14);\t\t\t\t\t\t\t\t// 61번째부터 14바이트만큼 크기로 정의\n\t\t\t\n\t\t\tint k_10_price = Integer.parseInt(k_10_price1.replace(\",\", \"\").trim());\t\t\t\t// int로 바꾸고 , 제거 후 공백도 제거\n\t\t\tint k_10_units = Integer.parseInt(k_10_units1.replace(\",\", \"\").trim());\t\t\t\t// int로 바꾸고 , 제거 후 공백도 제거\n\t\t\t\n\t\t\t//String price1 = k_10itemname[i].substring(33, 48);\n\t\t\t\n\t\t\t//String units1 = k_10itemname[i].substring(45, 58);\n\n\t\t\tint k_10_totalprice = Integer.parseInt(k_10_totalprice1.replace(\",\", \"\").trim()); // int로 바꾸고 , 제거 후 공백도 제거\n\t\t\t\n\t\t\tif(k_10_price * k_10_units != k_10_totalprice) {\n\t\t\t\tSystem.out.println(\"******************************\");\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\tSystem.out.printf(\"오류[%s%s%10s%10s%10s]\\n\", k_10_number, k_10_name, k_10_price1, k_10_units1, k_10df.format(k_10_totalprice));\t\t\t// ( ) 출력\n\t\t\t\tSystem.out.printf(\"수정[%s%s%10s%10s%10s]\\n\", k_10_number, k_10_name, k_10_price1, k_10_units1, k_10df.format(k_10_price * k_10_units));\t// ( ) 출력\n\t\t\t\tSystem.out.println(\"******************************\");\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}\n\t\t\t\t\n\t\t}\n\t\n\t\t\n\t}", "@Override\r\n\t\tpublic int getCount() {\n\t\t\treturn 2;\r\n\t\t}", "public void setItemsQuantity(Integer itemsQuantity) {\r\n this.itemsQuantity = itemsQuantity;\r\n }", "@Override\n public int getCount() {\n if(gameIdentifier.equals(\"SlidingTiles\")){\n return 9;\n }\n else if(gameIdentifier.equals(\"MemoryMatrix\")){\n return 2;\n }\n return 1;\n }", "@Override\r\n\tpublic int getCount() {\n\t\treturn 5;\r\n\t}", "public void generateStockListTable() {\n\t\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\t\t\tscreenWidth = dm.widthPixels;\n\t\t\tscreenHeight = dm.heightPixels;\n\n\t\t\ttableLayout = (TableLayout) this.findViewById(R.id.tablelayout);\n\t\t\ttableLayout.setStretchAllColumns(true);\n//\t\t\ttableLayout.setBackgroundResource(R.drawable.shape_nzx50);\n\t//\n//\t\t\tTextView textview = (TextView) this.findViewById(R.id.textview);\n//\t\t\ttextview.setVisibility(View.INVISIBLE);\n\t\t\tStockCodeToNameMapper mapper = new StockCodeToNameMapper();\n\t\t\tfor (int i = 0; i < stockList.size(); i++) {\n\t\t\t\tfinal Stock stock = stockList.get(i);\n\n\t\t\t\tTableRow tableRow = new TableRow(this);\n\t\t\t\ttableRow.setBackgroundColor(Color.rgb(255, 255, 255));\n\t\t\t\t\n\n\t\t\t\tTextView textView1 = new TextView(this);\n\t\t\t\ttextView1.setText(stock.getStockCode());\n\t\t\t\ttextView1.setSingleLine(true);\n\t\t\t\ttextView1.setGravity(Gravity.CENTER);\n\t\t\t\ttextView1.setBackgroundResource(R.drawable.shape_nzx50);\n\t\t\t\ttextView1.setHeight((int) (screenHeight * 0.088));\n\n\t\t\t\tTextView textView2 = new TextView(this);\n\t\t\t\ttextView2.setText(mapper.getStockName(stock.getStockCode()));\n\t\t\t\ttextView2.setWidth((int) (screenWidth * 0.5));\n\t\t\t\ttextView2.setSingleLine(true);\n\t\t\t\ttextView2.setEllipsize(TruncateAt.END);\n\t\t\t\ttextView2.setGravity(Gravity.CENTER_VERTICAL);\n\t\t\t\ttextView2.setBackgroundResource(R.drawable.shape_nzx50);\n\t\t\t\ttextView2.setHeight((int) (screenHeight * 0.088));\n\t\t\t\t\n\n\t\t\t\tTextView textView3 = new TextView(this);\n\t\t\t\tif (stock.getStockVariation().contains(\"+\")) {\n\t\t\t\t\tdrawable = getResources().getDrawable(R.drawable.up);\n\t\t\t\t} else if (stock.getStockVariation().contains(\"-\")) {\n\t\t\t\t\tdrawable = getResources().getDrawable(R.drawable.down);\n\t\t\t\t} else {\n\t\t\t\t\tdrawable = getResources().getDrawable(R.drawable.unchanged);\n\t\t\t\t}\n\t\t\t\ttextView3.setCompoundDrawables(setDrawbleBound(drawable), null,\n\t\t\t\t\t\tnull, null);\n\t\t\t\ttextView3.setSingleLine(true);\n\t\t\t\ttextView3.setGravity(Gravity.CENTER);\n\t\t\t\ttextView3.setBackgroundResource(R.drawable.shape_nzx50);\n\t\t\t\ttextView3.setHeight((int) (screenHeight * 0.088));\n\t\t\t\t\n\n\n\t\t\t\tfinal ImageButton iButton=new ImageButton(this,null,android.R.attr.buttonStyleSmall);\n\t\t\t\tiButton.setVisibility(View.VISIBLE);\n//\t\t\t\tiButton.setBackgroundColor(Color.rgb(255, 255, 255));\n\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\n\t\t\t\t\n\t\t\t\tIterator<Stock> stockIterator=watchlistStocks.iterator();\n\t\t\t\twhile(stockIterator.hasNext()){\n\t\t\t\t\tStock s=stockIterator.next();\n\t\t\t\t\tString sCode=s.getStockCode();\n\t\t\t\t\t\n\t\t\t\t\tif(sCode.equalsIgnoreCase(stock.getStockCode())){\n\t\t\t\t\t\tstock.setBookmarked(true);\n\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_yes);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tstock.setBookmarked(false);\n\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\n//\t\t\t\tiButton.setImageResource(R.drawable.bookmark_yes);\n\t\t\t\tiButton.setBackgroundResource(R.drawable.shape_nzx50);\n\t\t\t\t\n\t\t\t\tiButton.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif(!stock.isBookmarked()){\n\t\t\t\t\t\t\tToast.makeText(StockListActivity.this, stock.getStockCode().toString()+\" added to Watchlist \",Toast.LENGTH_SHORT).show\n\n\t();\n\t\t\t\t\t\t\tstock.setBookmarked(true);\n\t\t\t\t\t\t\taddToWatchlist(stock);\n\t\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_yes);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tToast.makeText(StockListActivity.this, stock.getStockCode().toString()+\" removed from Watchlist \",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tstock.setBookmarked(false);\n\t\t\t\t\t\t\tremoveFromWatchlist(stock);\n\t\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\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}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ttableRow.addView(textView1);\n\t\t\t\ttableRow.addView(textView2);\n\t\t\t\ttableRow.addView(textView3);\n\t\t\t\ttableRow.addView(iButton);\n\n\t\t\t\t//tableRow.setBackgroundResource(R.drawable.shape_nzx50);\n\n\n\t\t\t\ttableLayout.addView(tableRow);// adding rows to table\n\t\t\t}\n\t\t}", "private void updateItemQuantityAndTotal(Item item){\r\n\t\tItem oldItem = items.get(item.getItemIdentifier());\r\n\t\toldItem.increaseQuantity(new Amount(1));\r\n\t\titems.put(oldItem.getItemIdentifier(), oldItem);\r\n\t\ttotal.updateTotal(item);\r\n\t}" ]
[ "0.58931154", "0.5655084", "0.55963546", "0.55499655", "0.5546499", "0.553842", "0.5530748", "0.55058295", "0.5503468", "0.5461776", "0.5461503", "0.5459277", "0.54559743", "0.5445816", "0.5431961", "0.5419819", "0.53947467", "0.53903276", "0.53861403", "0.5351958", "0.5342627", "0.53256065", "0.53256065", "0.5300503", "0.52774644", "0.52744406", "0.52355266", "0.52222717", "0.5221092", "0.5212949", "0.5206707", "0.5206167", "0.51997614", "0.51966834", "0.51836807", "0.51789147", "0.51731277", "0.51687676", "0.51652825", "0.5164741", "0.51613766", "0.51476693", "0.51404566", "0.51404047", "0.5136445", "0.5120445", "0.51186067", "0.5115951", "0.51132166", "0.51075715", "0.5104257", "0.5093535", "0.5090713", "0.50799173", "0.5073402", "0.50706106", "0.50704736", "0.50596154", "0.50568235", "0.50460505", "0.5021692", "0.5021116", "0.5021116", "0.5021116", "0.5021116", "0.5021116", "0.5021116", "0.5021116", "0.5012641", "0.501134", "0.5011245", "0.5006728", "0.49940598", "0.49869627", "0.49860108", "0.49854043", "0.49819303", "0.49799275", "0.49770728", "0.49747807", "0.49744877", "0.4972617", "0.49705115", "0.49575162", "0.49558464", "0.49443662", "0.49443042", "0.4940838", "0.49403003", "0.49403003", "0.49403003", "0.49403003", "0.49403003", "0.49403003", "0.49402842", "0.4939864", "0.49386832", "0.49379396", "0.49364826", "0.49349552", "0.49348372" ]
0.0
-1
Return the best guess for the given image
public static String getBestGuess(BufferedImage image) { INDArray output = getOutput(image); Pair<String, Float> bestGuess = null; for (int i = 0; i < output.length(); i++) { if (bestGuess == null || output.getFloat(i) > bestGuess.getValue()) { bestGuess = new Pair<>(labels[i], output.getFloat(i)); } } return bestGuess == null ? "bamboozled" : bestGuess.getKey(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getBestGuess(BufferedImage image, String... options) {\n return getBestGuess(image, new HashSet<>(Arrays.asList(options)));\n }", "public static String getBestGuess(BufferedImage image, Set<String> options) {\n INDArray output = getOutput(image);\n Pair<String, Float> setBest = null;\n Pair<String, Float> globalBest = null;\n\n for (int i = 0; i < output.length(); i++) {\n if (globalBest == null || output.getFloat(i) > globalBest.getValue()) {\n globalBest = new Pair<>(labels[i], output.getFloat(i));\n }\n\n if (options.contains(labels[i])) {\n if (output.getFloat(i) > threshold) {\n if (setBest == null || output.getFloat(i) > setBest.getValue()) {\n setBest = new Pair<>(labels[i], output.getFloat(i));\n }\n }\n }\n }\n\n return (setBest == null ? globalBest.getKey() : setBest.getKey()).replace(\"_\", \" \");\n }", "public static int makeGuess(BufferedImage subImage) {\n\t\tdouble bestOverlap = -1;\r\n\t\tint bestGuess = -1;\r\n\r\n\t\tfor (int i=0; i<templates.length; i++) { // for each possible character\r\n\r\n\t\t\tint totalCount = 0;\r\n\t\t\tint matchCount = 0;\r\n\r\n\t\t\tfor (int x=0; x<subImage.getWidth(); x++) {\r\n\t\t\t\tfor (int y=0; y<subImage.getHeight(); y++) {\r\n\r\n\t\t\t\t\tint pixelVal = subImage.getRGB(x, y);\r\n\r\n\t\t\t\t\tif (!isBlack(pixelVal)) continue;\r\n\t\t\t\t\tif (isBlack(templates[i].getRGB(x, y))) matchCount++;\r\n\t\t\t\t\ttotalCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (debug) \r\n\t\t\t\tSystem.out.println(i + \": matched \" + matchCount + \" / \" + totalCount);\r\n\r\n\t\t\tdouble overlap = matchCount / (double) totalCount;\r\n\t\t\tif (overlap > bestOverlap) {\r\n\t\t\t\tbestOverlap = overlap;\r\n\t\t\t\tbestGuess = i;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn bestGuess;\r\n\t}", "public HerbierPic getBestPic() {\n\t\tHerbierPic result = null;\n\t\t\n\t\tif (!pics.isEmpty()) {\n\t\t\tVector<HerbierPic> vPics = new Vector<>();\n\t\t\tvPics.addAll(pics);\n\t\t\tCollections.sort(vPics, new Comparator<HerbierPic>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(HerbierPic pic1, HerbierPic pic2) {\n\t\t\t\t\treturn pic2.getRating() - pic1.getRating();\n\t\t\t\t}\n\t\t\t});\n\t\t\tresult = vPics.firstElement();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public int judgeFitness(BufferedImage target) {\n int fit = 0;\n\n // compare images pixel by pixel\n for (int i = 0; i < ImagePanel.WIDTH; i++) {\n for (int j = 0; j < ImagePanel.HEIGHT; j++) {\n Color indv = new Color(img.getRGB(i, j));\n Color targ = new Color(target.getRGB(i, j));\n\n int deltaR = targ.getRed() - indv.getRed();\n int deltaG = targ.getGreen() - indv.getGreen();\n int deltaB = targ.getBlue() - indv.getBlue();\n\n int pixelFitness = (int)Math.sqrt(deltaR * deltaR +\n deltaG * deltaG +\n deltaB * deltaB);\n // lower fitness is better\n fit += pixelFitness;\n }\n }\n\n fitness = fit;\n return fit;\n }", "private TargetInformation findHighGoal(Mat image) {\r\n\t\tTargetInformation ret = new TargetInformation();\r\n\t\tret.targetingPeg = false;\r\n\t\t\r\n long[] xsums = sums(image, true);\r\n long[] ysums = sums(image, false);\r\n \r\n\t List<PeakLoc> xpeaks = findPeaks(xsums, 10);\r\n\t List<PeakLoc> ypeaks = findPeaks(ysums, 10);\r\n\r\n\t if (ypeaks.size() == 2 && xpeaks.size() > 0) {\r\n\t \tret.targetFound = true;\r\n\t \tret.x = (xpeaks.get(0).getStop() - xpeaks.get(0).getStart()) / 2;\r\n\t \tret.gap = ypeaks.get(1).getStart() - ypeaks.get(0).getStop();\r\n\t \tret.width = xpeaks.get(0).getStop() - xpeaks.get(0).getStart();\r\n\t \tret.height = ypeaks.get(1).getStop() - ypeaks.get(0).getStart();\r\n\t \tret.y = (ypeaks.get(0).getStop() + ypeaks.get(1).getStart())/2;\r\n\t \t\r\n\t \tdouble pixelsPerInch = ret.gap / highGoalGapInches;\r\n\t \tif (xpeaks.get(0).isTruePeak() && xpeaks.get(1).isTruePeak())\r\n\t \t{\r\n\t \t\tpixelsPerInch = (pixelsPerInch + ret.width / highGoalWidthInches) / 2;\r\n\t \t}\r\n\t \tif (ypeaks.get(0).isTruePeak())\r\n\t \t{\r\n\t \t\tif (xpeaks.get(0).isTruePeak() && xpeaks.get(1).isTruePeak())\r\n\t \t\t{\r\n\t \t\t\tpixelsPerInch = (pixelsPerInch * 2 + ret.width / highGoalHeightInches) / 3;\r\n\t \t\t}\r\n\t \t\telse\r\n\t \t\t{\r\n\t \t\t\tpixelsPerInch = (pixelsPerInch + ret.width / highGoalHeightInches) / 2;\r\n\t \t\t}\r\n\t \t} \t\r\n\t \t\r\n\t \tret.aimX = ret.x + (cameraOffsetInches - shooterOffsetInches) * pixelsPerInch;\r\n\t \t\r\n\t \tret.correctionAngle = (double)((ret.aimX - image.cols() / 2)) / pixelsPerXDegree;\r\n\t }\r\n\t else\r\n\t {\r\n\t \tret.targetFound = false;\r\n\t }\r\n\t \r\n\t return ret;\r\n\t}", "public Code guess(){\n int minimumEliminated = -1;\n Code bestGuess = null;\n //Create a list of all codes in sample space (including both impossible and possible codes)\n List<Code> unusedCodes = new LinkedList<>(possibleCodes);\n unusedCodes.addAll(impossibleCodes);\n\n //MinMax part\n //For each code in the sample space\n for (Code arbitraryCode : unusedCodes) {\n //Create a new 2D miniMax table\n int[][] scoreTable = new int[Code.CODE_LENGTH + 1][Code.CODE_LENGTH + 1];\n //For each possibleCode\n for (Code possibleCode : possibleCodes) {\n Response response = arbitraryCode.getResponse(possibleCode); //Compare with the temporary arbitrary code and get response\n scoreTable[response.getStrikes()][response.getHits()]++; //Increase number of codes which have this response\n }\n //Find max in the table\n int maxScoreHits = -1;\n for (int[] row : scoreTable) {\n for (int i : row) {\n maxScoreHits = Integer.max(i, maxScoreHits);\n }\n }\n int score = possibleCodes.size() - maxScoreHits; //Evaluate score\n //Update minimumEliminated and bestGuess\n if (score > minimumEliminated) {\n minimumEliminated = score;\n bestGuess = arbitraryCode;\n }\n }\n\n //Update guess\n guess = bestGuess;\n\n return bestGuess;\n }", "DetectionResult getObjInImage(Mat image);", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "public Point findImage(BufferedImage image, int index) {\n int smallWidth = image.getWidth();\n int smallHeight = image.getHeight();\n int[][] smallPixels = new int[smallWidth][smallHeight];\n for(int x = 0; x < smallWidth; x++) {\n for(int y = 0; y < smallHeight; y++) {\n smallPixels[x][y] = image.getRGB(x, y);\n }\n }\n boolean good;\n int count = 0;\n for(int X = 0; X <= bigWidth - smallWidth; X++) {\n for(int Y = 0; Y <= bigHeight - smallHeight; Y++) {\n good = true;\n for(int x = 0; x < smallWidth; x++) {\n for(int y = 0; y < smallHeight; y++) {\n if(smallPixels[x][y] != bigPixels[X + x][Y + y]) {\n good = false;\n break;\n }\n }\n if(!good) {\n break;\n }\n }\n if(good) {\n if(count == index) {\n return(new Point(X, Y));\n }\n count++;\n }\n }\n }\n return(null);\n }", "public boolean calculateFocus(Mat img) {\n\t\tImgproc.cvtColor(img, img, Imgproc.COLOR_BGR2GRAY);\n\t\tImgproc.blur(img, img, BLUR);\n\t\tImgproc.Canny(img, img, EDGE_LOWER_THRESHOLD, EDGE_LOWER_THRESHOLD * EDGE_THRESHOLD_RATIO);\n\t\tint score = Core.countNonZero(img);\n\t\t\n\t\tSystem.out.println(\"[score=\" + score + \", high=\" + bestScore + \", best=\" + bestNetScore + \", low=\" + lowestNetScore + \", direction=\" + direction);\n\t\t\n\t\tif (score == 0)\n\t\t\treturn false;\n\t\t\n\t\tif (lowestNetScore > score || lowestNetScore == 0) {\n\t\t\tlowestNetScore = score;\n\t\t\tif (lowestNetScore < unfocusedScore || unfocusedScore == 0)\n\t\t\t\tunfocusedScore = lowestNetScore;\n\t\t}\n\t\tif (score > bestScore || bestScore == 0) {\n\t\t\tbestScore = score;\n\t\t\tif (bestNetScore < bestScore)\n\t\t\t\tbestNetScore = bestScore;\n\t\t}\n\t\tif (passedPeak && score < bestScore) {\n\t\t\t//if (stepSize != INITIAL_STEP || stepsTaken == Z_RANGE) {\n\t\t\t\tcalculationComplete();\n\t\t\t\treturn true;\n\t\t\t//}\n\t\t}\n\t\telse if (bestScore > lowestNetScore * SCORE_PEAK_SIZE && score >= bestNetScore * STRICTNESS /*&& stepSize != INITIAL_STEP*/) {\n\t\t\tif (strideSize <= MINIMUM_STRIDE && score <= bestScore) {\n\t\t\t\tSystem.out.println(\"quick complete\");\n\t\t\t\tcalculationComplete();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tpassedPeak = true;\n\t\t}\n\t\t//else if (stepSize == INITIAL_STEP && stepsTaken == Z_RANGE)\n\t\t//\tpassedPeak = true;\n\t\t/*else if (stepSize <= MINIMUM_STEP && score < bestScore) {\n\t\t\tSystem.out.println(\"quick complete\");\n\t\t\tcalculationComplete();\n\t\t\treturn true;\n\t\t}*/\n\t\treturn false;\n\t}", "Object getBest();", "@SuppressWarnings({ \"unchecked\", \"null\" })\n public List<String> calcSimilarity(String imgPath) {\n\n FileInputStream imageFile;\n double minDistance = Double.MAX_VALUE;\n\n // 返回查询结果\n List<String> matchUrls = new ArrayList<String>();\n\n\n try {\n\n imageFile = new FileInputStream(imgPath);\n BufferedImage bufferImage;\n\n bufferImage = ImageIO.read(imageFile);\n LTxXORP.setRotaIvaPats();//设定旋转模式值\n\n //得到图片的纹理一维数组特征向量(各颜色分量频率(统计量))\n double[] lbpSourceFecture = LTxXORP.getLBPFeature(imgPath);\n\n // 提取数据库数据\n List<Object> list = DBHelper.fetchALLCloth();\n\n // long startTime = System.currentTimeMillis();\n\n // 把每个条数据的路径和最短距离特征提取出来并存储在lbpResultMap的键值对中。\n Map<String, Double> lbpResultMap = new HashMap<String, Double>();\n\n for (int i = 0; i < list.size(); i++) {\n\n Map<String, Object> map = (Map<String, Object>) list.get(i);\n\n Object candidatePath = map.get(\"path\");\n Object candidateLBP = map.get(\"lbpFeature\");\n\n // 从快速搜索中选取TOP N结果,继续进行纹理特征匹配\n //获取当前由颜色匹配相似度排序的结果并提取其LBP纹理特征\n\n double[] lbpTargetFeature = MatchUtil.jsonToArr((String) candidateLBP);\n double lbpDistance = textureStrategy.similarity(lbpTargetFeature, lbpSourceFecture);\n lbpResultMap.put((String) candidatePath, lbpDistance);\n\n // 判断衡量标准选取距离还是相似度\n if (lbpDistance < minDistance)\n minDistance = lbpDistance;\n\n }\n\n Map<String, Double> tempResultMap;\n\n System.out.println(\"Min Distance : \" + (float) minDistance);\n\n\n\n System.out.println(\"============== finish Texture =================\");\n\n Map<String, Double> finalResult = MatchUtil.sortByValueAsc(lbpResultMap);\n\n int counter = 0;\n for (Map.Entry<String, Double> map : finalResult.entrySet()) {\n if (counter >= Config.finalResultNumber)\n break;\n //matchUrls截取只存储finalResultNumber数量的查询结果\n matchUrls.add(map.getKey());\n counter ++;\n double TSimilarity=Math.pow(Math.E,-map.getValue());\n System.out.println(TSimilarity + \" 图片路径 \" + map.getKey());\n\n }\n\n System.out.println();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return matchUrls;\n }", "public double getBestScore();", "private int findBestFit(Color c, int[][] tileArray, int x, int y) {\n int radiusTiles = 10; // The number of radius tiles... this WILL be user-configurable.\n int closestSoFar = 0; // Index of the tile that best matches the color so far.\n int redDiff, greenDiff, blueDiff, totalDiff = 0;\n totalDiff = (256*3); // Initialize the total difference to the largest reasonable number.\n if (c==null) { // assume that the color is black...\n c = new Color(0,0,0);\n }\n for (int count = 0; count < tileLibrary.getSize(); count++) { // Cycle through all of the library tiles.\n if (tileLibrary.get(count).getColor() != null) {\n\n/********* UNCOMMENT THE FOLLOWING TO USE THE NO-REP ALGORITHM ***********/\n /* // This is the no-rep algorithm.\n redDiff = Math.abs(c.getRed() - images.get(count).getColor().getRed());\n blueDiff = Math.abs(c.getBlue() - images.get(count).getColor().getBlue());\n greenDiff = Math.abs(c.getGreen() - images.get(count).getColor().getGreen());\n if (((redDiff + blueDiff + greenDiff) < totalDiff) && (used[count] == false)) {\n totalDiff = redDiff + blueDiff + greenDiff;\n closestSoFar = count;\n }\n */\n/**************************************************************************/\n\n/********** COMMENT OUT TO USE NO-REP ALGORITHM INSTEAD *******************/\n // Is this image in our no-dice radius?\n boolean inRadius = false;\n for (int newX = (x - radiusTiles); newX < (x+radiusTiles); newX++) { // Cycle through the width of the box...\n for (int newY = (y - radiusTiles); newY < (y+radiusTiles); newY++) { // Cycle through the height of the box...\n // If we are still within the bounds of the image....\n if ((newX >= 0) && (newY >= 00) && (newX < hTiles) && (newY < vTiles)) { // && !((newX >= x) && (newY >= y))) {\n try {\n if (tileArray[newX][newY] == count) { // If that tile is already in the box...\n inRadius = true;\n }\n } catch (Exception e) {System.out.println(e);}\n }\n }\n }\n if (inRadius == false) { // If this tile isn't in the box, find the difference in color.\n redDiff = Math.abs(c.getRed() - tileLibrary.get(count).getColor().getRed());\n blueDiff = Math.abs(c.getBlue() - tileLibrary.get(count).getColor().getBlue());\n greenDiff = Math.abs(c.getGreen() - tileLibrary.get(count).getColor().getGreen());\n if (((redDiff + blueDiff + greenDiff) < totalDiff)) { // if this is closer than the previous closest...\n totalDiff = redDiff + blueDiff + greenDiff;\n closestSoFar = count; // Keep track of this tile.\n }\n }\n }\n }\n return closestSoFar; // return the tile we chose.\n }", "public double getBestHeight() { return getBestHeight(-1); }", "public SolutionType getBestSolution();", "public Image getMinimRest();", "public abstract OptimisationSolution getBestSolution();", "private int getBestGuess(double values[]){\n int maxIndex=0;\n double max=0;\n for(int i=0;i<4;i++){\n if(values[i]>max) {\n max = values[i];\n maxIndex=i;\n }\n }\n return maxIndex+1;\n }", "public List<Result> recognize(IplImage image);", "public FITSImage(String url) throws Exception {\n\n // access the FITS file\n Fits fits = new Fits(url);\n\n // get basic information from file\n BasicHDU hdu = (ImageHDU) fits.readHDU();\n int bitsPerPixel = hdu.getBitPix();\n header = hdu.getHeader();\n\n if (bitsPerPixel == BasicHDU.BITPIX_BYTE) {\n\n // get image row data\n byte[][] data2D = (byte[][]) ((hdu).getKernel());\n\n // get width and height of image\n int width = data2D[0].length;\n int height = data2D.length;\n\n // transform image row data into 1D image row data\n byte[] data = new byte[width * height];\n\n int counter = 0;\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n data[counter] = data2D[h][w];\n counter++;\n }\n }\n\n // create buffered image from row data\n SingleChannelByte8ImageData imageData = new SingleChannelByte8ImageData(width, height, data, new ColorMask());\n image = imageData.getBufferedImage();\n\n } else if (bitsPerPixel == BasicHDU.BITPIX_SHORT) {\n\n // get image row data\n short[][] data2D = (short[][]) ((hdu).getKernel());\n\n // get width and height of image\n int width = data2D[0].length;\n int height = data2D.length;\n\n // transform image row data into 1D image row data and\n // analyze the highest value when transfering the data\n short[] data = new short[width * height];\n\n int highestValue = Integer.MIN_VALUE;\n int counter = 0;\n boolean hasNegativValue = false;\n\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n\n if (!hasNegativValue)\n hasNegativValue = data2D[h][w] < 0;\n\n highestValue = data2D[h][w] > highestValue ? data2D[h][w] : highestValue;\n data[counter] = data2D[h][w];\n counter++;\n }\n }\n\n // if first bit is not set, shift bits\n if (!hasNegativValue) {\n // compute number of bits to shift\n int shiftBits = BasicHDU.BITPIX_SHORT - ((int) Math.ceil(Math.log(highestValue) / Math.log(2)));\n\n // shift bits of all values\n for (int i = 0; i < data.length; i++) {\n data[i] = (short) (data[i] << shiftBits);\n }\n }\n\n // create buffered image from row data\n SingleChannelShortImageData imageData = new SingleChannelShortImageData(width, height, bitsPerPixel, data, new ColorMask());\n image = imageData.getBufferedImage();\n\n } else if (bitsPerPixel == BasicHDU.BITPIX_INT) {\n\n // get image row data\n int[][] data2D = (int[][]) ((hdu).getKernel());\n\n // get width and height of image\n int width = data2D[0].length;\n int height = data2D.length;\n\n // transform image row data into 1D image row data\n int[] data = new int[width * height];\n\n int counter = 0;\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n data[counter] = data2D[h][w];\n counter++;\n }\n }\n\n // create buffered image from row data\n JavaBufferedImageData imageData = new ARGBInt32ImageData(width, height, data, new ColorMask());\n image = imageData.getBufferedImage();\n\n } else if (bitsPerPixel == BasicHDU.BITPIX_FLOAT) {\n\n // get image row data\n float[][] data2D = (float[][]) ((hdu).getKernel());\n\n // get width and height of image\n int width = data2D[0].length;\n int height = data2D.length;\n\n // transform image row data into 1D image row data\n short[] data = new short[width * height];\n\n // if it is an MDI magnetogram image use threshold when converting\n // the data\n // otherwise set minimum value to zero and maximum value to 2^16 and\n // scale values between\n String instrument = header.getStringValue(\"INSTRUME\");\n String measurement = header.getStringValue(\"DPC_OBSR\");\n\n if (instrument != null && measurement != null && instrument.equals(\"MDI\") && measurement.equals(\"FD_Magnetogram_Sum\")) {\n\n int counter = 0;\n float doubleThreshold = MDI_THRESHOLD * 2.0f;\n\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n\n float value = data2D[h][w] + MDI_THRESHOLD;\n value = value < 0.0f ? 0.0f : value > doubleThreshold ? doubleThreshold : value;\n data[counter] = (short) ((value * 65535) / doubleThreshold);\n counter++;\n }\n }\n\n } else {\n\n // get the minimum and maximum value from current data\n float minValue = Float.MAX_VALUE;\n float maxValue = Float.MIN_VALUE;\n\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n\n minValue = data2D[h][w] < minValue ? data2D[h][w] : minValue;\n maxValue = data2D[h][w] > maxValue ? data2D[h][w] : maxValue;\n }\n }\n\n // transform image row data into 1D image row data\n int counter = 0;\n float difference = maxValue - minValue;\n\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n data[counter] = (short) (((data2D[h][w] - minValue) / difference) * 65536.0f);\n counter++;\n }\n }\n }\n\n // create buffered image from row data\n SingleChannelShortImageData imageData = new SingleChannelShortImageData(width, height, 16, data, new ColorMask());\n image = imageData.getBufferedImage();\n }\n }", "public static Point locate(BufferedImage source, BufferedImage search) {\n\t\tPoint location = null;\n\t\t\n\t\tdouble minTax = Double.MAX_VALUE;\n\t\t\n\t\t//double higherDifference = 3 * 255 * (search.getWidth() * search.getHeight());\n\t\t\n\t\tfor (int y = 0; y < source.getHeight() - (search.getHeight() - 1); y++) {\n\t\t\tfor (int x = 0; x < source.getWidth() - (search.getWidth() - 1); x++) {\n\t\t\t\t\n\t\t\t\tdouble newTax = checkSimilarity(x, y, source, search, minTax);\n\t\t\t\t\n\t\t\t\tif (newTax < minTax) {\n\t\t\t\t\tminTax = newTax;\n\t\t\t\t\t// console.info(\"New minTax (%d, %d) %1.6f\\\\%\", x, y, (minTax / higherDifference));\n\t\t\t\t\tlocation = new Point(x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn location;\n\t\t\n\t}", "private void findBest()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_current;//index of a currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tdouble min_error;//smallest error among the oldest genotypes\r\n\t\tVector<Integer> idx_oldest;\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\r\n\t\t//find all oldest genotypes\r\n\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t{\r\n\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t{\r\n\t\t\t\tidx_oldest.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//find the best oldest gentypes with a span above a threshold\r\n\t\t_best_idx = -1;\r\n\t\tif(idx_oldest.size() > 0)\r\n\t\t{\r\n\t\t\t_best_idx = idx_oldest.get(0);\r\n\t\t\tmin_error = _pool_of_bests.get(_best_idx)._error.getAverageError();\r\n\t\t\tfor(i=1; i<idx_oldest.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\tif(min_error > _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t{\r\n\t\t\t\t\t_best_idx = idx_current;\r\n\t\t\t\t\tmin_error = _pool_of_bests.get(_best_idx)._error.getAverageError();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List<Image> parseBestOfImagesResult(Document doc) {\n\n ArrayList<Image> bestOfImages = new ArrayList<>();\n Elements htmlImages = doc.select(CSS_BEST_OF_IMAGE_QUERY);\n Timber.i(\"Best OfImages: %s\", htmlImages.toString());\n String href;\n Image bestOfImage;\n for (Element image : htmlImages) {\n href = image.attr(\"src\");\n Timber.i(\"Image src: %s\", href);\n bestOfImage = new Image(href);\n bestOfImages.add(bestOfImage);\n }\n return bestOfImages;\n }", "private Move getBestMove() {\r\n\t\tSystem.out.println(\"getting best move\");\r\n\t\tChessConsole.printCurrentGameState(this.chessGame);\r\n\t\tSystem.out.println(\"thinking...\");\r\n\t\t\r\n\t\tList<Move> validMoves = generateMoves(false);\r\n\t\tint bestResult = Integer.MIN_VALUE;\r\n\t\tMove bestMove = null;\r\n\t\t\r\n\t\tfor (Move move : validMoves) {\r\n\t\t\texecuteMove(move);\r\n\t\t\t//System.out.println(\"evaluate move: \"+move+\" =========================================\");\r\n\t\t\tint evaluationResult = -1 * negaMax(this.maxDepth,\"\");\r\n\t\t\t//System.out.println(\"result: \"+evaluationResult);\r\n\t\t\tundoMove(move);\r\n\t\t\tif( evaluationResult > bestResult){\r\n\t\t\t\tbestResult = evaluationResult;\r\n\t\t\t\tbestMove = move;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"done thinking! best move is: \"+bestMove);\r\n\t\treturn bestMove;\r\n\t}", "public double getBestSolutionEvaluation();", "public abstract double getHeuristic(State state);", "static int hireAssistant(int tab[]) {\n int best = 0;\n for(int i = 0; i<tab.length; i++) {\n if(tab[i] > best)\n best = tab[i];\n }\n return best;\n }", "private double[] chooseBestMove(List<double[]> possibleMoves) {\n double bestScore = 0;\n int indexBest = 0;\n for (int i = 0; i < possibleMoves.size(); i++) {\n if (possibleMoves.get(i)[4] > bestScore) {\n bestScore = possibleMoves.get(i)[4];\n indexBest = i;\n }\n }\n return possibleMoves.get(indexBest);\n }", "public List<Recognition> recognizeImage(Mat img) {\n frameToCropTransform =\n ImageUtil.getTransformationMatrix(\n img.cols(), img.rows(),\n cropSize, cropSize,\n 0, MAINTAIN_ASPECT);\n cropToFrameTransform = new Matrix();\n frameToCropTransform.invert(cropToFrameTransform);\n Bitmap tBM = Bitmap.createBitmap(img.cols(), img.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(img, tBM);\n return recognizeImage(tBM);\n }", "public int getOptimalNumNearest();", "FetchedImage getFujimiyaUrl(String query,int maxRankOfResult){\n try{\n //Get SearchResult\n Search search = getSearchResult(query, maxRankOfResult);\n List<Result> items = search.getItems();\n for(Result result: items){\n int i = items.indexOf(result);\n logger.log(Level.INFO,\"query: \" + query + \" URL: \"+result.getLink());\n logger.log(Level.INFO,\"page URL: \"+result.getImage().getContextLink());\n if(result.getImage().getWidth()+result.getImage().getHeight()<600){\n logger.log(Level.INFO,\"Result No.\"+i+\" is too small image. next.\");\n continue;\n }\n if(DBConnection.isInBlackList(result.getLink())){\n logger.log(Level.INFO,\"Result No.\"+i+\" is included in the blacklist. next.\");\n continue;\n }\n HttpURLConnection connection = (HttpURLConnection)(new URL(result.getLink())).openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setInstanceFollowRedirects(false);\n connection.connect();\n if(connection.getResponseCode()==200){\n return new FetchedImage(connection.getInputStream(),result.getLink());\n }else{\n logger.log(Level.INFO,\"Result No.\"+i+\" occurs error while fetching the image. next.\");\n continue;\n }\n }\n //If execution comes here, connection has failed 10 times.\n throw new ConnectException(\"Connection failed 10 times\");\n\n } catch (IOException e) {\n // TODO Auto-generated catch block\n logger.log(Level.SEVERE,e.toString());\n e.printStackTrace();\n }\n return null;\n}", "public int displayRandomImage() {\n\n int randomImageIndex;\n\n do\n { // making sure that the same images aren't repeated & images of the same car makes aren't shown together\n\n randomCarMake = allCarMakes[getRandomBreed()]; // get a random breed\n randomImageIndex = getRandomImage(); // get a random image of a particular breed\n\n randomImageOfChosenCarMake = displayRelevantImage(randomCarMake, randomImageIndex);\n\n } while (displayingCarMakes.contains(randomCarMake) || allDisplayedImages.contains(randomImageOfChosenCarMake));\n\n allDisplayedImages.add(randomImageOfChosenCarMake); // to make sure that the image isn't repeated\n displayingCarMakes.add(randomCarMake); // to make sure that images of the same breed aren't shown at once\n displayingImageIndexes.add(randomImageIndex); // to recall indexes when the device is rotated\n\n // return chosen random image\n return getResources().getIdentifier(randomImageOfChosenCarMake, \"drawable\", \"com.example.car_match_game_app\");\n }", "@GET\n\t@Path(\"/{param}\")\n\tpublic Response printMessage(@PathParam(\"param\") String msg) {\n\n String filename = \"D:\\\\1Downloads\\\\Firefox downloads\\\\stock.jpg\";\n Mat img;\n img = Imgcodecs.imread(filename);\n int width = img.width();\n int height = img.height();\n System.out.println(\"w= \" + width + \" h= \" + height);\n \n Analyzer analyzer = new Analyzer(filename);\n analyzer.setFrame(0, 0, width, height);\n \n Individual ind = new Individual(analyzer);\n ind.generateIndividual(width, height);\n double originalScore = analyzer.calcCombinedAestheticScore();\n System.out.println(\"\\n\\nTHE RESULT: \" + analyzer.calcCombinedAestheticScore());\n \n Population myPop = new Population(200, true, width, height, analyzer);\n \n long startTime = System.currentTimeMillis();\n \n int generationCount = 0;\n while (generationCount < 500) {\n generationCount++;\n System.out.println(\"Generation: \" + generationCount + \" Fittest: \" + myPop.getFittest().getAestheticScore());\n //myPop = CropAlgorithm.evolvePopulation(myPop);\n CropAlgorithm cropAlg = new CropAlgorithm(analyzer);\n myPop = cropAlg.evolvePopulation(myPop, width, height);\n System.out.println(\"-------------------------------------------------ACTUAL BEST: \" + myPop.getFittest().getAestheticScore() + \" \" + myPop.getFittest().toString());\n }\n System.out.println(\"Solution found!\");\n System.out.println(\"Generation: \" + generationCount);\n System.out.println(\"Genes:\");\n Individual fittest = myPop.getFittest();\n System.out.println(fittest);\n double score = fittest.getAestheticScore();\n System.out.println(fittest.getAestheticScore());\n \n \n \n int x = (int)fittest.getX();\n int y = (int)fittest.getY();\n int w = (int)fittest.getWidth();\n int h = (int)fittest.getHeight();\n \n Rect roi = new Rect(x, y, w, h);\n Mat cropped = new Mat(img, roi);\n \n Imgcodecs.imwrite(\"D:\\\\1Downloads\\\\Firefox downloads\\\\cropped\\\\torocko.jpg\",cropped);\n \n long estimatedTime = System.currentTimeMillis() - startTime;\n System.out.println(\"IDOOO==== \" + estimatedTime );\n \n \n CropInfo bestCrop = new CropInfo();\n bestCrop.setOriginalScore(originalScore);\n bestCrop.setX(x);\n bestCrop.setY(y);\n bestCrop.setWidth(w);\n bestCrop.setHeight(h);\n bestCrop.setBestScore(fittest.getAestheticScore());\n \n String result = \"Record entered: \"+ bestCrop;\n\n return Response.status(201).entity(result).build();\n\n\n\t}", "public int findLonelyPixel(char[][] picture) {\n return 0;\n }", "private void findBestPath(){\n\t\t// The method will try to find the best path for every starting point and will use the minimum\n\t\tfor(int start = 0; start < this.getDimension(); start++){\n\t\t\tfindBestPath(start);\t\n\t\t}\t\n\t}", "private static ImageFile mostTaggedImage()\n {\n ImageFile currentMostTaggedImage;\n currentMostTaggedImage = Log.allImages.get(0);\n for (ImageFile i : Log.allImages)\n {\n if (i.tagList.size() > currentMostTaggedImage.tagList.size())\n {\n currentMostTaggedImage = i;\n }\n }\n return currentMostTaggedImage;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }", "@Override\n\tprotected double[] calculateNeighbourhoodBest(int i) {\n\t\t\t//System.out.println(\"Gbest particle from local typology!\");\n\t\t\tint indexBestParticle = i;\n\t\t\tint indexLeftNeighbour = (i > 0) ? i - 1 : swarmSize - 1;\n\t\t\tint indexRightNeighbour = (i < swarmSize - 1) ? i + 1 : 0;\t\t\n\t\t\t\t\t\n\t\t\tdouble nBestFitness = swarm.get(i).getPBestFitness();\n\t\t\tdouble leftNeighborParticlePBestFitness = swarm.get(indexLeftNeighbour).getPBestFitness();\n\t\t\tdouble rightNeighborParticlePBestFitness = swarm.get(indexRightNeighbour).getPBestFitness();\n\t\t\t\t\t\n\t\t\tif (leftNeighborParticlePBestFitness < nBestFitness) {\n\t\t\t\tindexBestParticle = indexLeftNeighbour;\n\t\t\t\tnBestFitness = leftNeighborParticlePBestFitness;\n\t\t\t}\n\t\t\tif (rightNeighborParticlePBestFitness < nBestFitness) {\n\t\t\t\tindexBestParticle = indexRightNeighbour;\n\t\t\t\tnBestFitness = rightNeighborParticlePBestFitness;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn swarm.get(indexBestParticle).getPBest();\n\t\t\t//return swarm.get(indexBestParticle);\n\t\t\t\n\t}", "Move getBestMove() {\n //System.out.println(\"AI chooses: \" + m.toString());\n return moves.get((int) (Math.random() * moves.size()));\n }", "public int getBestSolnIndex(populationI arch1){\n int index = 0;\n double bestobj = Double.MAX_VALUE;\n for(int k = 0 ; k < GaMain.getArchieve().getPopulationSize() ; k ++ ){\n if(bestobj > GaMain.getArchieve().getObjectiveValues(k)[0]){\n bestobj = GaMain.getArchieve().getObjectiveValues(k)[0];\n index = k;\n }\n }\n return index;\n }", "Object getWorst();", "@SuppressWarnings(\"static-method\")\n\tprivate int getYmax(BufferedImage img) {\n\t\tint width = img.getWidth();\n\t\tint height = img.getHeight();\n\t\tint trimmedHeight = 0;\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = height - 1; j >= 0; j--) {\n\t\t\t\tif (img.getRGB(i, j) != Color.WHITE.getRGB() && j > trimmedHeight) {\n\t\t\t\t\ttrimmedHeight = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn trimmedHeight;\n\t}", "abstract int nextTry(String guess);", "@SuppressWarnings(\"static-method\")\n\tprivate int getYmin(BufferedImage img) {\n\t\tint width = img.getWidth();\n\t\tint height = img.getHeight();\n\t\tint trimmedHeight = height;\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\tif (img.getRGB(i, j) != Color.WHITE.getRGB() && j < trimmedHeight) {\n\t\t\t\t\ttrimmedHeight = j;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn trimmedHeight;\n\t}", "public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }", "int getMaxRawImages();", "public int getBestScore() {\n\t\tInteger score = this.hand.countValue().lower(22);\n\t\tif(score!=null) {\n\t\t\treturn score;\n\t\t}\n\t\telse {\n\t\t\treturn this.hand.countValue().higher(21);\n\t\t}\n\t}", "private Color getMedianPixel(BufferedImage image){\n Color[] pixels = imageToArray(image);\n return orderStat.findColor(pixels, pixels.length/2);\n }", "private void classifyTestImages() throws FileNotFoundException, UnsupportedEncodingException {\n PrintWriter writer = new PrintWriter(\"result.txt\", \"UTF-8\");\n writer.println(\"#Authors: Thomas Sarlin & Petter Poucette\");\n\n ArrayList<Image> images = testReader.getImages();\n double activationResult[]=new double[4];\n int bestGuess;\n for (Image image : images) {\n for (int j = 0; j < 4; j++)\n activationResult[j] = activationFunction\n .apply(sumWeights(j, image));\n\n bestGuess = getBestGuess(activationResult);\n writer.println(image.getName() + \" \" + bestGuess);\n }\n writer.close();\n }", "public float getBestScore(GameModel startingState) {\n\n float bestScore = 0;\n for (int i = 0; i < NUM_SIMULATIONS; i++) {\n bestScore = max(bestScore, simulateAndGetScore(GameModel.copyOf(startingState)));\n }\n\n return bestScore;\n }", "public String findBestMatch()\n\t{\t\t\n\t\tif (robot.containsUserAgent(\"cis455crawler\"))\n\t\t{\n\t\t\tbest_match = \"cis455crawler\";\n\t\t}\n\t\telse if (robot.containsUserAgent(\"*\"))\n\t\t{\n\t\t\tbest_match = \"*\";\n\t\t}\n\t\treturn best_match;\n\t}", "SearchResult getBestResult(List<SearchResult> results, SearchQuery query);", "public BufferedImage getThresh(BufferedImage img, int left, int right, int top, int bottom) { // Method to get thresholded image \n\t\t//Vision.logger.debug(\"Starting thresholding\");\n\n\t\t//stops it fucking up the locations before we've given it the thresholds\n\t\tif (worldState.isClickingDone()){\n\n\t\t\tnewBluePixels = new ArrayList<Point>();\n\t\t\tnewYellowPixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> bluePixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> yellowPixels = new ArrayList<Point>();\n\t\t\t/*pitch = worldState.getRoom();\n\t\t\twidth = right-left;\n\t\t\theight = top-bottom;*/\n\n\t\t\t/*\n Initialising to one to stop java dividing by 0 when it shouldn't\n\t\t\t */\n\t\t\tredCountA = 0;\n\t\t\tredCountB = 0;\n\t\t\tredCountC = 0;\n\t\t\tredCountD = 0;\n\t\t\tredCountE = 0;\n\t\t\tredCentroidA.setLocation(0,0);\n\t\t\tredCentroidB.setLocation(0,0);\n\t\t\tredCentroidC.setLocation(0,0);\n\t\t\tredCentroidD.setLocation(0,0);\n\t\t\tredCentroidE.setLocation(0,0);\n\n\t\t\tblueCountA = 0;\n\t\t\tblueCountB = 0;\n\t\t\tblueCountC = 0;\n\t\t\tblueCountD = 0;\n\t\t\tblueCountE = 0;\n\t\t\tblueCentroidA.setLocation(0,0);\n\t\t\tblueCentroidB.setLocation(0,0);\n\t\t\tblueCentroidC.setLocation(0,0);\n\t\t\tblueCentroidD.setLocation(0,0);\n\t\t\tblueCentroidE.setLocation(0,0);\n\n\t\t\tyellowCountA = 0;\n\t\t\tyellowCountB = 0;\n\t\t\tyellowCountC = 0;\n\t\t\tyellowCountD = 0;\n\t\t\tyellowCountE = 0;\n\t\t\tyellowCentroidA.setLocation(0,0);\n\t\t\tyellowCentroidB.setLocation(0,0);\n\t\t\tyellowCentroidC.setLocation(0,0);\n\t\t\tyellowCentroidD.setLocation(0,0);\n\t\t\tyellowCentroidE.setLocation(0,0);\n\n\t\t\t//Vision.logger.debug(\"Iterating image\");\n\t\t\tfor (int i = left; i < right; i++) {\n\t\t\t\tfor (int j = top; j < bottom; j++) {\n\t\t\t\t\t//Vision.logger.debug(\"Oh dear (i,j) = \" + Integer.toString(i) + \",\" + Integer.toString(j) + \")\");\n\t\t\t\t\tc = new Color(img.getRGB(i,j));\n\n\t\t\t\t\tGB = Math.abs((c.getBlue() - c.getGreen()));\n\t\t\t\t\tRG = Math.abs((c.getRed() - c.getGreen()));\n\t\t\t\t\t//RB = Math.abs((c.getRed() - c.getBlue()));\n\n\t\t\t\t\tif(isRed(c, GB)){ // was inside RB > 50 && RG > 50\n\t\t\t\t\t\timg.setRGB(i, j, Color.red.getRGB()); //Red Ball\n\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\tredCountA++;\n\t\t\t\t\t\t\tredCentroidA.setLocation(redCentroidA.getX() + i, redCentroidA.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\tredCountB++;\n\t\t\t\t\t\t\tredCentroidB.setLocation(redCentroidB.getX() + i, redCentroidB.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\tredCountC++;\n\t\t\t\t\t\t\tredCentroidC.setLocation(redCentroidC.getX() + i, redCentroidC.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\tredCountD++;\n\t\t\t\t\t\t\tredCentroidD.setLocation(redCentroidD.getX() + i, redCentroidD.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\tredCountE++;\n\t\t\t\t\t\t\tredCentroidE.setLocation(redCentroidE.getX() + i, redCentroidE.getY() + j);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (isYellow(c)) {\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isYellow(cS) && isYellow(cE) && isYellow(cEE) && isYellow(cEN) && isYellow(cSS) && isYellow(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.yellow.getRGB()); // Yellow robot\n\t\t\t\t\t\t\tyellowRobotX.add(i);\n\t\t\t\t\t\t\tyellowRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tyellowCountA++;\n\t\t\t\t\t\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX() + i, yellowCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tyellowCountB++;\n\t\t\t\t\t\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX() + i, yellowCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tyellowCountC++;\n\t\t\t\t\t\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX() + i, yellowCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tyellowCountD++;\n\t\t\t\t\t\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX() + i, yellowCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tyellowCountE++;\n\t\t\t\t\t\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX() + i, yellowCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tyellowPixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (isBlue(c)){\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isBlue(cS) && isBlue(cE) && isBlue(cEE) && isBlue(cEN) && isBlue(cSS) && isBlue(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.blue.getRGB()); // Blue robot \n\t\t\t\t\t\t\tblueRobotX.add(i);\n\t\t\t\t\t\t\tblueRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tblueCountA++;\n\t\t\t\t\t\t\t\tblueCentroidA.setLocation(blueCentroidA.getX() + i, blueCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tblueCountB++;\n\t\t\t\t\t\t\t\tblueCentroidB.setLocation(blueCentroidB.getX() + i, blueCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tblueCountC++;\n\t\t\t\t\t\t\t\tblueCentroidC.setLocation(blueCentroidC.getX() + i, blueCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tblueCountD++;\n\t\t\t\t\t\t\t\tblueCentroidD.setLocation(blueCentroidD.getX() + i, blueCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tblueCountE++;\n\t\t\t\t\t\t\t\tblueCentroidE.setLocation(blueCentroidE.getX() + i, blueCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbluePixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//make blue thresholds for the different pitches in that [pitch][x] style\n\t\t\t\t\t}\n\t\t\t\t\telse if (isGreen(c,GB,RG)) {\n\t\t\t\t\t\timg.setRGB(i,j, Color.green.getRGB()); // GreenPlates \n\t\t\t\t\t\tif (Point.distance(\tworldState.getBlueRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getBlueRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34) {\n\t\t\t\t\t\t\tblueGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tif (Point.distance(\tworldState.getYellowRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getYellowRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34){\n\t\t\t\t\t\t\tyellowGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (redCountA == 0) redCountA++;\n\t\t\tif (redCountB == 0) redCountB++;\n\t\t\tif (redCountC == 0) redCountC++;\n\t\t\tif (redCountD == 0) redCountD++;\n\t\t\tif (redCountE == 0) redCountE++;\n\t\t\tif (blueCountA == 0) blueCountA++;\n\t\t\tif (blueCountB == 0) blueCountB++;\n\t\t\tif (blueCountC == 0) blueCountC++;\n\t\t\tif (blueCountD == 0) blueCountD++;\n\t\t\tif (blueCountE == 0) blueCountE++;\n\t\t\tif (yellowCountA == 0) yellowCountA++;\n\t\t\tif (yellowCountB == 0) yellowCountB++;\n\t\t\tif (yellowCountC == 0) yellowCountC++;\n\t\t\tif (yellowCountD == 0) yellowCountD++;\n\t\t\tif (yellowCountE == 0) yellowCountE++;\n\n\n\t\t\t//TODO: Run these points through the parralax fix\n\t\t\ttotalRedX = 0;\n\t\t\ttotalRedY = 0;\n\t\t\tnumRedCentroids = 0;\n\n\n\t\t\tredCentroidA.setLocation(redCentroidA.getX()/redCountA, redCentroidA.getY()/redCountA);\n\t\t\tredCentroidB.setLocation(redCentroidB.getX()/redCountB, redCentroidB.getY()/redCountB);\n\t\t\tredCentroidC.setLocation(redCentroidC.getX()/redCountC, redCentroidC.getY()/redCountC);\n\t\t\tredCentroidD.setLocation(redCentroidD.getX()/redCountD, redCentroidD.getY()/redCountD);\n\t\t\tredCentroidE.setLocation(redCentroidE.getX()/redCountE, redCentroidE.getY()/redCountE);\n\n\t\t\ttotalYellowX = 0;\n\t\t\ttotalYellowY = 0;\n\t\t\tnumYellowCentroids = 0;\n\n\n\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX()/yellowCountA, yellowCentroidA.getY()/yellowCountA);\n\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX()/yellowCountB, yellowCentroidB.getY()/yellowCountB);\n\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX()/yellowCountC, yellowCentroidC.getY()/yellowCountC);\n\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX()/yellowCountD, yellowCentroidD.getY()/yellowCountD);\n\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX()/yellowCountE, yellowCentroidE.getY()/yellowCountE);\n\n\t\t\ttotalBlueX = 0;\n\t\t\ttotalBlueY = 0;\n\t\t\tnumBlueCentroids = 0;\n\n\n\t\t\tblueCentroidA.setLocation(blueCentroidA.getX()/blueCountA, blueCentroidA.getY()/blueCountA);\n\t\t\tblueCentroidB.setLocation(blueCentroidB.getX()/blueCountB, blueCentroidB.getY()/blueCountB);\n\t\t\tblueCentroidC.setLocation(blueCentroidC.getX()/blueCountC, blueCentroidC.getY()/blueCountC);\n\t\t\tblueCentroidD.setLocation(blueCentroidD.getX()/blueCountD, blueCentroidD.getY()/blueCountD);\n\t\t\tblueCentroidE.setLocation(blueCentroidE.getX()/blueCountE, blueCentroidE.getY()/blueCountE);\n\n\t\t\tc = new Color(img.getRGB((int)redCentroidA.getX(), (int)redCentroidA.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidA.getX();\n\t\t\t\ttotalRedY += redCentroidA.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidB.getX(), (int)redCentroidB.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidB.getX();\n\t\t\t\ttotalRedY += redCentroidB.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidC.getX(), (int)redCentroidC.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidC.getX();\n\t\t\t\ttotalRedY += redCentroidC.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidD.getX(), (int)redCentroidD.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidD.getX();\n\t\t\t\ttotalRedY += redCentroidD.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidE.getX(), (int)redCentroidE.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidE.getX();\n\t\t\t\ttotalRedY += redCentroidE.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tif (numRedCentroids == 0){\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tredX = (int)(totalRedX/numRedCentroids);\n\t\t\tredY = (int)(totalRedY/numRedCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidA.getX(), (int)yellowCentroidA.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidA.getX();\n\t\t\t\ttotalYellowY += yellowCentroidA.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidB.getX(), (int)yellowCentroidB.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidB.getX();\n\t\t\t\ttotalYellowY += yellowCentroidB.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidC.getX(), (int)yellowCentroidC.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidC.getX();\n\t\t\t\ttotalYellowY += yellowCentroidC.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidD.getX(), (int)yellowCentroidD.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidD.getX();\n\t\t\t\ttotalYellowY += yellowCentroidD.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidE.getX(), (int)yellowCentroidE.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidE.getX();\n\t\t\t\ttotalYellowY += yellowCentroidE.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tif (numYellowCentroids == 0){\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tyellowX = (int)(totalYellowX/numYellowCentroids);\n\t\t\tyellowY = (int)(totalYellowY/numYellowCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)blueCentroidA.getX(), (int)blueCentroidA.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidA.getX();\n\t\t\t\ttotalBlueY += blueCentroidA.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidB.getX(), (int)blueCentroidB.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidB.getX();\n\t\t\t\ttotalBlueY += blueCentroidB.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidC.getX(), (int)blueCentroidC.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidC.getX();\n\t\t\t\ttotalBlueY += blueCentroidC.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidD.getX(), (int)blueCentroidD.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidD.getX();\n\t\t\t\ttotalBlueY += blueCentroidD.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidE.getX(), (int)blueCentroidE.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidE.getX();\n\t\t\t\ttotalBlueY += blueCentroidE.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tif (numBlueCentroids == 0){\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tblueX = (int)(totalBlueX/numBlueCentroids);\n\t\t\tblueY = (int)(totalBlueY/numBlueCentroids);\n\n\t\t\tblueGreenPlate4Points = plate.getCorners(blueGreenPlate);\n\t\t\tyellowGreenPlate4Points = plate.getCorners(yellowGreenPlate);\n\n\t\t\tworldState.getBlueRobot().getPosition().setCorners(blueGreenPlate4Points);\n\t\t\tworldState.getYellowRobot().getPosition().setCorners(yellowGreenPlate4Points);\n\n\t\t\tPoint fixBall = new Point(redX,redY);\n\t\t\tif ((redX != 0) && (redY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBallPosition(fixBall);\n\t\t\t\t}else{ \n\t\t\t\t\tworldState.setBallPosition(DistortionFix.barrelCorrected(fixBall));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixBlue = new Point(blueX,blueY);\n\t\t\tif ((blueX != 0) && (blueY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(fixBlue,worldState.getBlueRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixBlue),worldState.getBlueRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixYell = new Point(yellowX,yellowY);\n\t\t\tif ((yellowX != 0) && (yellowY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(fixYell,worldState.getYellowRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixYell),worldState.getYellowRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Point p : bluePixels){\n\n\t\t\t\tif( plate.isInRectangle(p,blueGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(p,worldState.getBlueRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getBlueRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Point p : yellowPixels){\n\n\t\t\t\tif( plate.isInRectangle(p,yellowGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(p,worldState.getYellowRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getYellowRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tworldState.setBluePixels(newBluePixels);\n\t\t\tworldState.setYellowPixels(newYellowPixels);\n\n\t\t\t//The above is supposed to filter the pixels and pick up only the T pixels, but the orientation then is always with the (0,0) point \n\n\n\t\t\tblueGreenPlate.clear();\n\t\t\tyellowGreenPlate.clear();\n\n\t\t}\n\n\t\treturn img;\n\n\t}", "public static double takeMaximumGrayLevel(BufferedImage image) {\n int maxLevel = (new Color(image.getRGB(0, 0))).getBlue();\n\n for (int i = 0; i < image.getWidth(); i ++) {\n for (int j = 0; j < image.getHeight(); j++) {\n int temp = (new Color(image.getRGB(i, j))).getBlue();\n if (maxLevel < temp) {\n maxLevel = temp;\n }\n }\n }\n\n return maxLevel;\n }", "public void GetBestScore() {\r\n\t\ttry {\r\n\t\t\t// Leemos el nivel seleccionado y luego lo pasamos a integer\r\n\t\t\tif (Menu.dificultad == \"facil\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\EasyScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}else if (Menu.dificultad == \"normal\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\NormalScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}else if (Menu.dificultad == \"dificil\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\HardScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}else if (Menu.dificultad == \"Invertido\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\InvertidoScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}\r\n\t\t\t// Cerramos el Buffered Reader\r\n\t\t\tbr.close();\r\n\t\t// Capturamos las distintas exceptions\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"File can't open\");\r\n\t\t} \r\n\t}", "public static rk getBestSolutionMax(ArrayList<rk> Sched) {\n\n rk best = Sched.get(0).copyOf();\n for (int i = 1; i < Sched.size(); i++) {\n rk S = Sched.get(i).copyOf();\n if (S.getFitness() > best.getFitness()) {\n\n best = S;\n }\n }\n return best;\n }", "int match(ArrayList<ImageCell> images);", "public List<Recognition> recognizeImage(Bitmap bitmap) {\n Bitmap croppedBitmap = Bitmap.createScaledBitmap(bitmap, cropSize, cropSize, true);\n// Bitmap croppedBitmap = Bitmap.createBitmap(cropSize, cropSize, Bitmap.Config.ARGB_8888);\n// final Canvas canvas = new Canvas(croppedBitmap);\n// canvas.drawBitmap(bitmap, frameToCropTransform, null);\n final List<Recognition> ret = new LinkedList<>();\n List<Recognition> recognitions = detector.recognizeImage(croppedBitmap);\n// long before=System.currentTimeMillis();\n// for (int k=0; k<100; k++) {\n// recognitions = detector.recognizeImage(croppedBitmap);\n// int a = 0;\n// }\n// long after=System.currentTimeMillis();\n// String log = String.format(\"tensorflow takes %.03f s\\n\", ((float)(after-before)/1000/100));\n// Log.d(\"MATCH TEST\", log);\n for (Recognition r : recognitions) {\n if (r.getConfidence() < minConfidence)\n continue;\n// RectF location = r.getLocation();\n// cropToFrameTransform.mapRect(location);\n// r.setOriginalLoc(location);\n// Bitmap cropped = Bitmap.createBitmap(bitmap, (int)location.left, (int)location.top, (int)location.width(), (int)location.height());\n// r.setObjectImage(cropped);\n BoxPosition bp = r.getLocation();\n// r.rectF = new RectF(bp.getLeft(), bp.getTop(), bp.getRight(), bp.getBottom());\n// cropToFrameTransform.mapRect(r.rectF);\n ret.add(r);\n }\n\n return ret;\n }", "public int getBestMove(ModelInterface field, List<IRatingMechanism> ratingMechanisms, Token owner) {\n tree = new Tree(field, ratingMechanisms, owner);\n // minimize or maximize each level\n for (int i = Tree.MAXDEPTH - 1; i > 0; i--) {\n //System.out.println(\"max/min level \" + i);\n List<Node> currLevel = tree.getLevel(i);\n if (!currLevel.isEmpty()) {\n \n if (currLevel.get(0).getCurrentOwner() == owner) {\n \n for (Node node : currLevel) {\n maximize(node);\n }\n \n } else {\n \n for (Node node : currLevel) {\n minimize(node);\n }\n }\n }\n }\n\n // debug\n for (int i = 0; i < tree.getLevel(1).size(); i++) {\n System.out.println(tree.getLevel(1).get(i).getMove().toString());\n }\n\n PossibleMove minMove = tree.getLevel(1).get(0).getMove();\n for (int i = 0; i < tree.getLevel(1).size(); i++) {\n if (tree.getLevel(1).get(i).getMove().getRating() < minMove.getRating()) {\n minMove = tree.getLevel(1).get(i).getMove();\n }\n }\n return minMove.getMove();\n }", "private TargetInformation findPeg(Mat image) {\r\n\t\tTargetInformation ret = new TargetInformation();\r\n\t\tret.targetingPeg = true;\r\n\t\t\r\n\t long[] xsums = sums(image, true);\r\n\t long[] ysums = sums(image, false);\r\n\t \r\n\t List<PeakLoc> ypeaks = findPeaks(ysums);\r\n\t List<PeakLoc> xpeaks = findPeaks(xsums);\r\n\t\t\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//vvvvvvvvvvvvvvvvvvv FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE vvvvvvvvvvvvvvvvvvv//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t \r\n\t // Target is only found if we have exactly 2 x peaks, representing both of the pieces of tape\r\n\t if ((xpeaks.size() == 2) && (ypeaks.size() > 0)){\r\n\t \tret.targetFound = true;\r\n\t \tret.x = (xpeaks.get(1).getStart() + xpeaks.get(0).getStop()) / 2;\r\n\t \tret.gap = xpeaks.get(1).getStart() - xpeaks.get(0).getStop();\r\n\t \tret.width = xpeaks.get(1).getStop() - xpeaks.get(0).getStart();\r\n\t \tret.height = ypeaks.get(0).getStop() - ypeaks.get(0).getStart();\r\n\t \tret.y = ypeaks.get(0).getStart() + ret.height/2;\r\n\t \tret.rightOfTarget = xpeaks.get(0).maxValue < xpeaks.get(1).maxValue;\r\n\t \t\r\n \t\tret.pixelsPerInch = ret.height / pegHeightInches;\r\n \t\t\r\n\t \tret.aimX = ret.x + cameraOffsetInches * ret.pixelsPerInch;\r\n\t \t\r\n\t \tret.correctionAngle = (double)((ret.aimX - image.cols() / 2)) / pixelsPerXDegree;\r\n\t }\r\n\t else\r\n\t {\r\n\t \tret.targetFound = false;\r\n\t }\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//^^^^^^^^^^^^^^^^^^^ FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE ^^^^^^^^^^^^^^^^^^^//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t \r\n\t return ret;\r\n\t}", "public int guess(int i) {\n return 1;\n }", "public TemplateState getBestTemplate( ArrayList<TemplateState> states )\r\n {\r\n TemplateState bestState = null;\r\n double quality = Double.MIN_VALUE;\r\n for( TemplateState state : states ) {\r\n if( state.getQuality() > quality ) {\r\n quality = state.getQuality();\r\n bestState = state;\r\n }\r\n }\r\n return bestState;\r\n }", "public double getBestWidth() { return getBestWidth(-1); }", "private Pair<Integer, Pair<Integer, Integer>> analyze(GameField gf, boolean isHuman) {\n ArrayList<Pair<Integer, Integer>> freeBoxes = gf.getEmptyFields();\n\n if (freeBoxes.isEmpty()) {\n return new Pair<>(0, null);\n }\n\n if (Game.updateStatus(gf) == WIN_O) {\n return new Pair<>(SITUATION_SCORE, null);\n }\n\n if (Game.updateStatus(gf) == WIN_X) {\n return new Pair<>(-SITUATION_SCORE, null);\n }\n\n\n ArrayList<Pair<Integer, Pair<Integer, Integer>>> moves = new ArrayList<>();\n\n for (Pair move : freeBoxes) {\n if (isHuman) {\n moves.add(analyze(new GameField(gf, (int)move.getKey(), (int)move.getValue(), HUMAN_MARK), false));\n } else {\n moves.add(analyze(new GameField(gf, (int)move.getKey(), (int)move.getValue(), AI_MARK), true));\n }\n }\n\n int bestMove = 0;\n int best;\n if (isHuman) {\n best = INF;\n for (int i = 0; i < moves.size(); i++) {\n if (moves.get(i).getKey() < best) {\n best = moves.get(i).getKey();\n bestMove = i;\n }\n }\n } else {\n best = -INF;\n for (int i = 0; i < moves.size(); i++) {\n if (moves.get(i).getKey() > best) {\n best = moves.get(i).getKey();\n bestMove = i;\n }\n }\n }\n\n return new Pair<>(best, freeBoxes.get(bestMove));\n }", "public abstract void nextGuessResult(ResultPegs resultPegs);", "public Integer guess(Integer g)\n {\n if (chosenNum == g){\n return 0;\n } else if (chosenNum > g){\n return -1;\n } else if (chosenNum < g){\n return 1;\n }\n return chosenNum;\n }", "public double heuristic(game Game){\n // int l[] = {0,1};\n // board b = Game.getBoard();\n // tic smallBoard = b.getState(l); \n \n /* if O wins the game */\n if(Game.getState() == 2){return 99;}\n \n /* X wins the game */\n if(Game.getState() == 1){return -99;}\n \n return 0;\n }", "public int heuristic() {\n if (heuristic == -1)\r\n heuristic = Puzzle.this.heuristic(this);\r\n return heuristic;\r\n }", "boolean isBlurred(String imageLocation) {\n\t\t\tBitmapFactory.Options opt = new BitmapFactory.Options();\n\t\t\topt.inDither = true;\n\t\t\topt.inPreferredConfig = Bitmap.Config.ARGB_8888;\n\t\t\tFile f = new File(imageLocation);\n\t\t\tFile f1 = new File(Environment.getExternalStorageDirectory(),\n\t\t\t\t\t\"Flash/raw/raw01.jpg/\");\n\n\t\t\tBitmap image = BitmapFactory.decodeFile(f.getAbsolutePath());\n\t\t\tBitmap image1 = BitmapFactory.decodeFile(f.getAbsolutePath());\n\t\t\tint l = CvType.CV_8UC1; // 8-bit grey scale image\n\t\t\tMat matImage = new Mat();\n\t\t\tUtils.bitmapToMat(image, matImage);\n\t\t\tMat matImageGrey = new Mat();\n\t\t\tImgproc.cvtColor(matImage, matImageGrey, Imgproc.COLOR_BGR2GRAY);\n\n\t\t\tBitmap destImage;\n\t\t\tdestImage = Bitmap.createBitmap(image);\n\t\t\tMat dst2 = new Mat();\n\t\t\tUtils.bitmapToMat(destImage, dst2);\n\t\t\tMat laplacianImage = new Mat();\n\t\t\tdst2.convertTo(laplacianImage, l);\n\t\t\tImgproc.Laplacian(matImageGrey, laplacianImage, CvType.CV_8U);\n\t\t\tMat laplacianImage8bit = new Mat();\n\t\t\tlaplacianImage.convertTo(laplacianImage8bit, l);\n\n\t\t\tBitmap bmp = Bitmap.createBitmap(laplacianImage8bit.cols(),\n\t\t\t\t\tlaplacianImage8bit.rows(), Bitmap.Config.ARGB_8888);\n\n\t\t\tUtils.matToBitmap(laplacianImage8bit, bmp);\n\t\t\tint[] pixels = new int[bmp.getHeight() * bmp.getWidth()];\n\t\t\tbmp.getPixels(pixels, 0, bmp.getWidth(), 0, 0, bmp.getWidth(),\n\t\t\t\t\tbmp.getHeight());\n\n\t\t\tint maxLap = -16777216;\n\n\t\t\tfor (int i = 0; i < pixels.length; i++) {\n\t\t\t\tif (pixels[i] > maxLap)\n\t\t\t\t\tmaxLap = pixels[i];\n\t\t\t}\n\n\t\t\tint soglia = -8500000;// -6118750; -93492394; //\n\t\t\t// blurred: -12500671\n\t\t\t// nonblurred: -8487298\n\t\t\t// medium blurred: -8947849\n\t\t\tif (maxLap < soglia || maxLap == soglia) {\n\t\t\t\tString result = \"Blurred\";\n\t\t\t\tSystem.out.println(\"img is: \" + maxLap + \" blurred\");\n\t\t\t\tLog.d(\"DEBUG\", \"\" + maxLap);\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tString result = \"Not blurred\";\n\t\t\t\tLog.d(\"DEBUG\", \"\" + maxLap);\n\t\t\t\tSystem.out.println(\"img is: \" + maxLap + \" not blurred\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public long getBestSolutionTime();", "private Outfit getBestWithJacket(double desired_clo) {\n Cursor jacketCursor = mOuterLoaderListener.getCursor();\n Outfit best_outfit = new Outfit();\n Outfit temp_top_bottom;\n Outfit temp_dress;\n double diff = Double.MAX_VALUE;\n double jacket_clo = 0;\n int result_jacket_position = 0;\n if (jacketCursor.moveToFirst()) {\n while (!jacketCursor.isAfterLast()) {\n jacket_clo = jacketCursor.getDouble(jacketCursor.getColumnIndex(ClothesEntry.COLUMN_ARTICLE_CLO_VALUE));\n temp_top_bottom = getBestTopBottom(desired_clo - jacket_clo);\n temp_dress = getBestDress(desired_clo - jacket_clo);\n\n if (Math.abs(temp_top_bottom.getCloValue() + jacket_clo - desired_clo) < diff) {\n diff = Math.abs(temp_top_bottom.getCloValue() + jacket_clo - desired_clo);\n result_jacket_position = jacketCursor.getPosition();\n best_outfit = temp_top_bottom;\n }\n if (Math.abs(temp_dress.getCloValue() + jacket_clo - desired_clo) < diff) {\n diff = Math.abs(temp_dress.getCloValue() + jacket_clo - desired_clo);\n result_jacket_position = jacketCursor.getPosition();\n best_outfit = temp_dress;\n }\n\n jacketCursor.moveToNext();\n }\n\n if (!best_outfit.isEmpty() && jacketCursor.moveToPosition(result_jacket_position)) {\n byte[] imageByteArray = jacketCursor.getBlob(jacketCursor.getColumnIndex(ClothesEntry.COLUMN_ARTICLE_IMAGE));\n double clo = jacketCursor.getDouble(jacketCursor.getColumnIndex(ClothesEntry.COLUMN_ARTICLE_CLO_VALUE));\n\n if (imageByteArray != null && imageByteArray.length > 0)\n {\n ByteArrayInputStream imageStream = new ByteArrayInputStream(imageByteArray);\n best_outfit.addItem(new ClothingItem(Outfit.OUTER1, BitmapFactory.decodeStream(imageStream), clo));\n } else {\n best_outfit.addItem(new ClothingItem(Outfit.OUTER1, null, clo));\n }\n }\n }\n return best_outfit;\n }", "private static int getMainColor(BufferedImage image)\n {\n // Counts how many time each colors appear\n ColorOccurence co[] = new ColorOccurence[10000];\n\n // For every pixel of the image\n for(int x = 0; x < image.getWidth(null) / 2; x++)\n {\n for(int y = 0; y < image.getHeight(null) / 2; y++)\n {\n // Get the pixel\n int pixel = image.getRGB(x, y);\n\n // Parse every element initialized of the array\n for(int i = 0; i < 10000; i++)\n {\n // If the element is null, a new color has been found\n if(co[i] == null)\n {\n // Creates a new color and sets its occurence to 1\n co[i] = new ColorOccurence(pixel, 1);\n break;\n }\n\n // If the color is already is already in the array, add one\n if(co[i].color == pixel){\n co[i].occurence += 1;\n break;\n }\n }\n }\n }\n\n // Maximum number of occurence\n int max = 0;\n\n // The color that appeared the most so far\n int maxVal = 0;\n\n // For every color\n for(ColorOccurence c : co)\n {\n // If null, the whole array has been parsed\n if(c == null)\n {\n break;\n }\n\n // If this color occurs more times than the previous most appearing\n // color, set it as the new most appearing color\n if(c.occurence > max)\n {\n max = c.occurence;\n maxVal = c.color;\n }\n }\n return maxVal;\n }", "static public AppImage browseForImage() {\n // If there is no image ask the user to choose image from file:\n JFileChooser file_chooser = new JFileChooser();\n file_chooser.setAcceptAllFileFilterUsed(false);\n file_chooser.addChoosableFileFilter(new FileFilter() {\n public boolean accept(File file) {\n if (file.isDirectory()) return true;\n String extension = FileUtils.getFileExtension(file);\n return extension.equals(\"png\");\n }\n\n public String getDescription() {\n return \"Portable Network Graphics (PNG)\";\n }\n });\n int ret_value = file_chooser.showOpenDialog(App.instance);\n AppImage app_image = null;\n if (ret_value == JFileChooser.APPROVE_OPTION) {\n // Read the selected file and do scaling on it:\n File file = file_chooser.getSelectedFile();\n String path = file.getAbsolutePath();\n\n // Create the image and add it to cache:\n app_image = Resources.loadAppImage(path);\n addImage(app_image);\n writeRepository();\n }\n\n return app_image;\n }", "public Move pickBestMove(Board board) {\n\t\treturn null;\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 Mat extractBiggestObject(Mat source, boolean detectGlare) {\n Mat mat = getCornerMat(source, detectGlare);\n if (mat == null) {\n return null;\n }\n return skew(source, mat);\n }", "private Move guessBestMove(Piece player, Board board, double cutoff) {\n Board newBoard = new Board(board);\n Move bestSoFar;\n Iterator<Move> moveIterator = board.iterator();\n bestSoFar = moveIterator.next();\n newBoard.retract();\n while (moveIterator.hasNext()) {\n Move nextMove = moveIterator.next();\n int val = eval(newBoard);\n newBoard.makeMove(nextMove);\n if (eval(newBoard) > val) {\n bestSoFar = nextMove;\n val = eval(newBoard);\n if (val >= cutoff) {\n break;\n }\n }\n newBoard.retract();\n }\n return bestSoFar;\n }", "public short[] findSeed(ImageProcessor input) {\n int bx = 0, by = 0;\n if (bounds != null) {\n bounds = checkBounds(bounds);\n input.setRoi(bounds);\n bx = bounds.x;\n by = bounds.y;\n }\n ImageProcessor mask = input.crop();\n mask.invert();\n EDM edm = new EDM();\n edm.toEDM(mask);\n int[] max = Utils.findImageMaxima(mask);\n// IJ.saveAs((new ImagePlus(\"\", mask)), \"PNG\", \"C:/users/barryd/adapt_debug/edm.png\");\n if (!(max[0] < 0.0 || max[1] < 0.0)) {\n return new short[]{(short) (max[0] + bx), (short) (max[1] + by)};\n } else {\n return null;\n }\n }", "public Image getNatural();", "private Outcome minMax(PossibleBoard posBoard, Icon icon, int depth) {\n Outcome outcome = new Outcome();\n Result result = posBoard.determineOutcome();\n boolean maximiseWin = icon == getIcon();\n\n // BASE CASE\n if (result.gameComplete()) {\n outcome.score = result.getBonus();\n outcome.moveToMake = posBoard.coor;\n outcome.depth = depth;\n return outcome;\n }\n\n ArrayList<PossibleBoard> posNextBoards = getPossibleNextBoards(posBoard, icon);\n int optimalScore = (maximiseWin ? Integer.MIN_VALUE : Integer.MAX_VALUE);\n Coordinate optimalCoor = new Coordinate(0,0);\n int optimalDepth = Integer.MAX_VALUE;\n\n for (PossibleBoard posNextBoard : posNextBoards) {\n Outcome nextOutcome = minMax(posNextBoard, (icon == Icon.CROSSES ? Icon.NOUGHTS : Icon.CROSSES), depth + 1);\n\n if (maximiseWin && nextOutcome.score >= optimalScore) {\n if (nextOutcome.score == optimalScore && nextOutcome.depth < optimalDepth) continue;\n optimalScore = nextOutcome.score;\n optimalCoor = posNextBoard.coor;\n optimalDepth = nextOutcome.depth;\n\n } else if (!maximiseWin && nextOutcome.score <= optimalScore){\n if (nextOutcome.score == optimalScore && nextOutcome.depth < optimalDepth) continue;\n optimalScore = nextOutcome.score;\n optimalCoor = posNextBoard.coor;\n optimalDepth = nextOutcome.depth;\n\n }\n }\n\n outcome.moveToMake = optimalCoor;\n outcome.score = optimalScore;\n outcome.depth = optimalDepth;\n return outcome;\n }", "public int getWorstScore()\n {\n return -1;\n }", "private double getHeuristic(MapLocation current, MapLocation goal) {\n\t\treturn Math.max(Math.abs(current.x - goal.x), Math.abs(current.y - goal.y));\n\t}", "public Solution createSuggestion(Board board) {\n\t\t\n\t\t// use the room that the computer is currently in\n\t\tBoardCell currentLocation = board.getCell(this.getLocation()[1], this.getLocation()[0]);\n\t\tRoom currentRoom = board.getRoom(currentLocation);\n\t\troomCard = board.getCard(currentRoom.getName());\n\t\t\n\t\t// find possible people and weapons\n\t\tallCards = board.getCards();\n\t\tfor(Card card : allCards) {\n\t\t\tif(!this.getHand().contains(card) && !getSeen().contains(card)) {\n\t\t\t\tif(card.getType() == CardType.PERSON) {\n\t\t\t\t\tpossiblePeople.add(card);\n\t\t\t\t\t\n\t\t\t\t} else if(card.getType() == CardType.WEAPON) {\n\t\t\t\t\tpossibleWeapons.add(card);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// pick a person that isn't the computer's hand and hasn't been seen by the computer\n\t\t//TODO change this (iterating through a HashSet seams like a bad idea)\n\t\t// this code is awful, I know\n\t\t// thats what I get for procrastinating\n\t\tCard personGuess = null;\n\t\tint pos = rand.nextInt(possiblePeople.size());\n\t\tint iterator = 0;\n\t\tfor(Card card : possiblePeople) {\n\t\t\tif(iterator == pos) {\n\t\t\t\tpersonGuess = card;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\titerator++;\n\t\t}\n\t\t// pick a weapon that isn't the computer's hand and hasn't been seen by the computer\n\t\tCard weaponGuess = null;\n\t\tpos = rand.nextInt(possibleWeapons.size());\n\t\titerator = 0;\n\t\tfor(Card card : possibleWeapons) {\n\t\t\tif(iterator == pos) {\n\t\t\t\tweaponGuess = card;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\titerator++;\n\t\t}\n\n\t\t(board.getPlayer(personGuess.getName())).move(currentLocation.getLocation());\n\t\tboard.repaint();\n\n\t\treturn new Solution(roomCard, personGuess, weaponGuess);\n\t}", "public OptionalDouble getBestScore()\n {\n if (scores.size() > 0)\n {\n return OptionalDouble.of(scores.lastKey());\n }\n else\n {\n return OptionalDouble.empty();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == 1) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n String txt = getTextFromImage(bitmap);\n searchByPhoto(txt);\n }else if(requestCode == 2){\n Bitmap bm=null;\n if (data != null) {\n try {\n bm = MediaStore.Images.Media.getBitmap(getApplicationContext().getContentResolver(), data.getData());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n String txt = getTextFromImage(bm);\n searchByPhoto(txt);\n }\n }\n }", "public Detections recognizeImage(Image image, int rotation) {\n\n Bitmap rgbFrameBitmap = Transform.convertYUVtoRGB(image);\n\n\n if (image.getFormat() != ImageFormat.YUV_420_888) {\n // unsupported image format\n Logger.addln(\"\\nWARN YoloHTTP.recognizeImage() unsupported image format\");\n return new Detections();\n }\n //return recognize(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkMaxAreaRectangle(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkNineBoxes(Transform.yuvBytes(image), image.getWidth(),image.getHeight(),rotation, rgbFrameBitmap,image.getHeight()/3,image.getWidth()/3,image.getHeight()/3,image.getWidth()/3);\n //return frameworkQuadrant(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n return frameworkMaxAreaRectBD(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n\n }", "public static Image getSearchInfoAppropriateImage() {\n return ImageUtil\n .getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_SEARCH_APPROPRIATE_ICON));\n }", "private Map.Entry<Activity, Prediction> chooseBestPrediction(Map<Activity, Prediction> predictions) {\n \n Map.Entry<Activity, Prediction> prediction = null;\n int result1, result2, lastIndex;\n double probability1, probability2;\n \n \n for (Map.Entry<Activity, Prediction> entry : predictions.entrySet()) {\n \n if (prediction == null) {\n prediction = entry;\n } else {\n lastIndex = prediction.getValue().getObservations().length - 1;\n \n result1 = prediction.getValue().getPredictions()[lastIndex];\n probability1 = prediction.getValue().getProbability();\n result2 = entry.getValue().getPredictions()[lastIndex];\n probability2 = entry.getValue().getProbability();\n \n /*a result 1 means that an activity has been detected,\n * thus we prefer a result that predicts an activity*/\n if (result2 == 1 && result1 == 0)\n prediction = entry;\n \n /* if both predict an activity, or don't predict anything then\n * we take the probability into consideration */\n if (result1 == result2) {\n if (probability2 > probability1)\n prediction = entry;\n }\n \n }\n \n }\n \n return prediction;\n \n }", "public static double compareImage(BufferedImage myImage, BufferedImage otherImage) {\n\t\tif (otherImage.getWidth() != myImage.getWidth()) {\n\t\t\tLOG.info(\"图片宽度不一致\");\n\t\t\treturn 0; \n\t\t}\n\t\tif (otherImage.getHeight() != myImage.getHeight()) {\n\t\t\tLOG.info(\"图片高度不一致\");\n\t\t\treturn 0; \n\t\t}\n\t\tint width = myImage.getWidth();\n\t\tint height = myImage.getHeight();\n\t\tint numDiffPixels = 0;\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tif (myImage.getRGB(x, y) != otherImage.getRGB(x, y)) {\n\t\t\t\t\tnumDiffPixels++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdouble numberPixels = height * width;\n\t\tdouble samePixels = numberPixels - numDiffPixels;\n\t\tdouble samePercent = samePixels / numberPixels * 100;\n\t\tLOG.info(\"相似像素数量:\" + samePixels + \" 不相似像素数量:\" + numDiffPixels + \" 相似率:\" + String.format(\"%.1f\", samePercent) + \"%\");\n\t\treturn samePercent;\n\t}", "public int getBestValue() {\n return bestValue;\n }", "public FishingRod getBestRod();", "public static rk getBestSolutionMin(ArrayList<rk> Sched) {\n\n rk best = Sched.get(0).copyOf();\n for (int i = 1; i < Sched.size(); i++) {\n rk S = Sched.get(i).copyOf();\n if (S.getFitness() < best.getFitness()) {\n\n best = S;\n }\n }\n return best;\n }", "private Pair<Integer, Double> getBestLocalCandidateAndScore(TIntDoubleHashMap entityCandidates) {\n if (entityCandidates.size() == 0) {\n return new Pair<Integer, Double>(-100, 0.0);\n }\n double bestScore = -1.0;\n int bestCandidate = -10;\n for (TIntDoubleIterator itr = entityCandidates.iterator(); itr.hasNext(); ) {\n itr.advance();\n int entityId = itr.key();\n double score = itr.value();\n if (score > bestScore) {\n bestScore = score;\n bestCandidate = entityId;\n }\n }\n\n if (computeConfidence) {\n TIntDoubleHashMap normalizedScores = CollectionUtils.normalizeValuesToSum(entityCandidates);\n bestScore = normalizedScores.get(bestCandidate);\n }\n\n return new Pair<>(new Integer(bestCandidate), new Double(bestScore));\n }", "private static int getHeuristic(MazeState current, HashSet<MazeState> goals) {\n\t\tint lowestCost = Integer.MAX_VALUE;\n\t\tint currentCost = 0;\n\t\tfor (MazeState goal : goals) {\n\t\t\tcurrentCost = Math.abs(current.col - goal.col) + Math.abs(current.row - goal.row);\n\t\t\tif (currentCost <= lowestCost) {\n\t\t\t\tlowestCost = currentCost;\n\t\t\t}\n\t\t}\n\t\treturn currentCost;\n\t}", "static int getPixValue(int x, int y) {\n return pgmInf.img[y][x];\n }", "public static Size chooseOptimalSize(Size[] choices,\n int width,\n int height) {\n\n List<Size> bigEnough = new ArrayList<Size>();\n for (Size option : choices) {\n if (option.getWidth() >= width && option.getHeight() >= height) {\n bigEnough.add(option);\n }\n }\n\n // Pick the smallest of those, assuming we found any\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else {\n Log.e(TAG, \"Couldn't find any suitable preview size\");\n return choices[0];\n }\n }", "public static int closest( List<Camera.Size> sizes , int width , int height ) {\n\t\tint best = -1;\n\t\tint bestScore = Integer.MAX_VALUE;\n\n\t\tfor( int i = 0; i < sizes.size(); i++ ) {\n\t\t\tCamera.Size s = sizes.get(i);\n\n\t\t\tint dx = s.width-width;\n\t\t\tint dy = s.height-height;\n\n\t\t\tint score = dx*dx + dy*dy;\n\t\t\tif( score < bestScore ) {\n\t\t\t\tbest = i;\n\t\t\t\tbestScore = score;\n\t\t\t}\n\t\t}\n\n\t\treturn best;\n\t}", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }" ]
[ "0.7034706", "0.6832249", "0.6377921", "0.6368611", "0.61069036", "0.60204524", "0.59297854", "0.591403", "0.58939713", "0.5876247", "0.58456254", "0.5822009", "0.5702952", "0.56429935", "0.5588044", "0.5495396", "0.54849154", "0.5340391", "0.530175", "0.5288093", "0.5270197", "0.5236301", "0.5231098", "0.51954323", "0.5184381", "0.5178078", "0.51779234", "0.517534", "0.51692384", "0.5152471", "0.5146817", "0.5145849", "0.51425695", "0.513845", "0.5134735", "0.5128243", "0.5127862", "0.51241016", "0.5116846", "0.50994873", "0.50982976", "0.5091151", "0.5088397", "0.50823003", "0.5081381", "0.5079008", "0.5072413", "0.5065911", "0.50649047", "0.5062621", "0.5048599", "0.5038795", "0.5027929", "0.5017016", "0.50127876", "0.4988669", "0.49844182", "0.4983322", "0.49832377", "0.497994", "0.49773937", "0.4974516", "0.49723294", "0.49650264", "0.49475363", "0.4945381", "0.49433878", "0.49380165", "0.49352735", "0.49285626", "0.4914919", "0.4898947", "0.48948842", "0.48923633", "0.48808706", "0.48715279", "0.48707828", "0.48552546", "0.4852792", "0.48492017", "0.48484966", "0.48470956", "0.48355904", "0.48352584", "0.48338392", "0.48292336", "0.4826141", "0.48229086", "0.48142612", "0.48098835", "0.4800448", "0.4798307", "0.47980836", "0.47937083", "0.47862223", "0.47800013", "0.47765836", "0.47717103", "0.47655505", "0.47596425" ]
0.7596457
0
Return the best guess for the given image from the given options
public static String getBestGuess(BufferedImage image, String... options) { return getBestGuess(image, new HashSet<>(Arrays.asList(options))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getBestGuess(BufferedImage image, Set<String> options) {\n INDArray output = getOutput(image);\n Pair<String, Float> setBest = null;\n Pair<String, Float> globalBest = null;\n\n for (int i = 0; i < output.length(); i++) {\n if (globalBest == null || output.getFloat(i) > globalBest.getValue()) {\n globalBest = new Pair<>(labels[i], output.getFloat(i));\n }\n\n if (options.contains(labels[i])) {\n if (output.getFloat(i) > threshold) {\n if (setBest == null || output.getFloat(i) > setBest.getValue()) {\n setBest = new Pair<>(labels[i], output.getFloat(i));\n }\n }\n }\n }\n\n return (setBest == null ? globalBest.getKey() : setBest.getKey()).replace(\"_\", \" \");\n }", "public static String getBestGuess(BufferedImage image) {\n INDArray output = getOutput(image);\n\n Pair<String, Float> bestGuess = null;\n\n for (int i = 0; i < output.length(); i++) {\n if (bestGuess == null || output.getFloat(i) > bestGuess.getValue()) {\n bestGuess = new Pair<>(labels[i], output.getFloat(i));\n }\n }\n\n return bestGuess == null ? \"bamboozled\" : bestGuess.getKey();\n }", "public static Size chooseOptimalSize(Size[] choices,\n int width,\n int height) {\n\n List<Size> bigEnough = new ArrayList<Size>();\n for (Size option : choices) {\n if (option.getWidth() >= width && option.getHeight() >= height) {\n bigEnough.add(option);\n }\n }\n\n // Pick the smallest of those, assuming we found any\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else {\n Log.e(TAG, \"Couldn't find any suitable preview size\");\n return choices[0];\n }\n }", "private static Size chooseOptimalSize(Size[] choices, int width, int height, Size aspectRatio) {\n ArrayList<Size> bigEnough = new ArrayList<>();\n int w = aspectRatio.getWidth();\n int h = aspectRatio.getHeight();\n for (Size option : choices) {\n if (option.getHeight() == option.getWidth() * h / w &&\n option.getWidth() >= width && option.getHeight() >= height) {\n bigEnough.add(option);\n }\n }\n\n // Pick the smallest of those, assuming we found any\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else {\n Log.e(TAG, \"Couldn't find any suitable preview size\");\n return choices[0];\n }\n }", "private static Size chooseOptimalSize(Size[] choices, int width, int height, Size aspectRatio) {\n List<Size> bigEnough = new ArrayList<Size>();\n int w = aspectRatio.getWidth();\n int h = aspectRatio.getHeight();\n for (Size option : choices) {\n if (option.getHeight() == option.getWidth() * h / w &&\n option.getWidth() >= width && option.getHeight() >= height) {\n bigEnough.add(option);\n }\n }\n\n // Pick the smallest of those, assuming we found any\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else {\n Log.e(TAG, \"Couldn't find any suitable preview size\");\n return choices[0];\n }\n }", "private static Camera.Size chooseOptimalSize(List<Camera.Size> choices, int width, int height, Camera.Size aspectRatio) {\n List<Camera.Size> bigEnough = new ArrayList<>();\n int w = aspectRatio.width;\n int h = aspectRatio.height;\n for (Camera.Size option : choices) {\n if (option.height == width * h / w &&\n option.width >= width && option.height >= height) {\n bigEnough.add(option);\n }\n }\n\n // Pick the smallest of those, assuming we found any\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else {\n LOG(CameraFragment.class, \"Couldn't find any suitable preview size\");\n return choices.get(0);\n }\n }", "Object getBest();", "private static Size chooseOptimalSize(Size[] choices, int textureViewWidth, int\n textureViewHeight, int maxWidth, int maxHeight, Size aspectRatio) {\n List<Size> bigEnough = new ArrayList<>();\n // Collect the supported resolutions that are smaller than the preview Surface\n List<Size> notBigEnough = new ArrayList<>();\n int w = aspectRatio.getWidth();\n int h = aspectRatio.getHeight();\n for (Size option : choices) {\n if (option.getWidth() <= maxWidth && option.getHeight() <= maxHeight && option\n .getHeight() == option.getWidth() * h / w) {\n if (option.getWidth() >= textureViewWidth && option.getHeight() >=\n textureViewHeight) {\n bigEnough.add(option);\n } else {\n notBigEnough.add(option);\n }\n }\n }\n\n // Pick the smallest of those big enough. If there is no one big enough, pick the\n // largest of those not big enough.\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else if (notBigEnough.size() > 0) {\n return Collections.max(notBigEnough, new CompareSizesByArea());\n } else {\n Log.e(\"CameraFragment\", \"Couldn't find any suitable preview size\");\n return choices[0];\n }\n }", "private static Size chooseOptimalSize(Size[] choices, int textureViewWidth,\n int textureViewHeight, int maxWidth, int maxHeight, Size aspectRatio) {\n List<Size> bigEnough = new ArrayList<>();\n // Collect the supported resolutions that are smaller than the preview Surface\n List<Size> notBigEnough = new ArrayList<>();\n int w = aspectRatio.getWidth();\n int h = aspectRatio.getHeight();\n for (Size option : choices) {\n if (option.getWidth() <= maxWidth && option.getHeight() <= maxHeight &&\n option.getHeight() == option.getWidth() * h / w) {\n if (option.getWidth() >= textureViewWidth &&\n option.getHeight() >= textureViewHeight) {\n bigEnough.add(option);\n } else {\n notBigEnough.add(option);\n }\n }\n }\n\n // Pick the smallest of those big enough. If there is no one big enough, pick the\n // largest of those not big enough.\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else if (notBigEnough.size() > 0) {\n return Collections.max(notBigEnough, new CompareSizesByArea());\n } else {\n Log.e(\"CameraRenderView\", \"Couldn't find any suitable preview size\");\n return choices[0];\n }\n }", "public VariantInfo getCanvasBestFitVariant(FitMode mode, Integer width, Integer height) {\n VariantInfo bestVariant = null;\n // OPTIMIZATION: check if we have an exact match (this could happen frequently in some cases)\n if (width != null && height != null) {\n bestVariant = getExactDimVariantMap().get(VariantInfo.getDimString(width, height));\n if (bestVariant != null) return bestVariant;\n }\n\n if (mode == null || mode == FitMode.MINIMUM) {\n // here we get the smallest variant that is larger than the canvas dimensions (so that we\n // make the browser resize it DOWN instead of up, making less detail loss)\n // NOTE: if there is no best, then we'll return null and just use the original.\n if (height == null) {\n // only width\n for(VariantInfo variant : getVariantList()) {\n if (variant.getWidth() >= width) {\n if (bestVariant == null) bestVariant = variant;\n else {\n int widthDiff = variant.getWidth() - bestVariant.getWidth();\n if (widthDiff < 0) bestVariant = variant;\n }\n }\n }\n } else if (width == null) {\n // only height\n for(VariantInfo variant : getVariantList()) {\n if (variant.getHeight() >= height) {\n if (bestVariant == null) bestVariant = variant;\n else {\n int heightDiff = variant.getHeight() - bestVariant.getHeight();\n if (heightDiff < 0) bestVariant = variant;\n }\n }\n }\n } else {\n // have both\n for(VariantInfo variant : getVariantList()) {\n if (variant.getWidth() >= width && variant.getHeight() >= height) {\n if (bestVariant == null) bestVariant = variant;\n else {\n int pixelNumDiff = variant.getNumPixels() - bestVariant.getNumPixels();\n if (pixelNumDiff < 0) bestVariant = variant;\n else if (pixelNumDiff == 0 && variant.getWidth() < bestVariant.getWidth()) bestVariant = variant;\n }\n }\n }\n }\n } else if (mode == FitMode.MAXIMUM) {\n // here we get the largest variant that is smaller that the canvas dimensions\n if (height == null) {\n // only width specified, so try to get closest to width\n for(VariantInfo variant : getVariantList()) {\n if (variant.getWidth() <= width) {\n if (bestVariant == null) bestVariant = variant;\n else {\n int widthDiff = variant.getWidth() - bestVariant.getWidth();\n if (widthDiff > 0) bestVariant = variant;\n }\n }\n }\n } else if (width == null) {\n // only height specified, so try to get closest to height\n for(VariantInfo variant : getVariantList()) {\n if (variant.getHeight() <= height) {\n if (bestVariant == null) bestVariant = variant;\n else {\n int heightDiff = variant.getHeight() - bestVariant.getHeight();\n if (heightDiff > 0) bestVariant = variant;\n }\n }\n }\n } else {\n // have both - return one with most pixels, but prefer width in rare case of same pixels\n for(VariantInfo variant : getVariantList()) {\n if (variant.getWidth() <= width && variant.getHeight() <= height) {\n if (bestVariant == null) bestVariant = variant;\n else {\n int pixelNumDiff = variant.getNumPixels() - bestVariant.getNumPixels();\n if (pixelNumDiff > 0) bestVariant = variant;\n else if (pixelNumDiff == 0 && variant.getWidth() > bestVariant.getWidth()) bestVariant = variant;\n }\n }\n }\n }\n } else {\n throw new UnsupportedOperationException(\"best-variant selection fit mode '\" + mode.getStrName() + \"' not yet supported\");\n }\n return bestVariant;\n }", "private TargetInformation findHighGoal(Mat image) {\r\n\t\tTargetInformation ret = new TargetInformation();\r\n\t\tret.targetingPeg = false;\r\n\t\t\r\n long[] xsums = sums(image, true);\r\n long[] ysums = sums(image, false);\r\n \r\n\t List<PeakLoc> xpeaks = findPeaks(xsums, 10);\r\n\t List<PeakLoc> ypeaks = findPeaks(ysums, 10);\r\n\r\n\t if (ypeaks.size() == 2 && xpeaks.size() > 0) {\r\n\t \tret.targetFound = true;\r\n\t \tret.x = (xpeaks.get(0).getStop() - xpeaks.get(0).getStart()) / 2;\r\n\t \tret.gap = ypeaks.get(1).getStart() - ypeaks.get(0).getStop();\r\n\t \tret.width = xpeaks.get(0).getStop() - xpeaks.get(0).getStart();\r\n\t \tret.height = ypeaks.get(1).getStop() - ypeaks.get(0).getStart();\r\n\t \tret.y = (ypeaks.get(0).getStop() + ypeaks.get(1).getStart())/2;\r\n\t \t\r\n\t \tdouble pixelsPerInch = ret.gap / highGoalGapInches;\r\n\t \tif (xpeaks.get(0).isTruePeak() && xpeaks.get(1).isTruePeak())\r\n\t \t{\r\n\t \t\tpixelsPerInch = (pixelsPerInch + ret.width / highGoalWidthInches) / 2;\r\n\t \t}\r\n\t \tif (ypeaks.get(0).isTruePeak())\r\n\t \t{\r\n\t \t\tif (xpeaks.get(0).isTruePeak() && xpeaks.get(1).isTruePeak())\r\n\t \t\t{\r\n\t \t\t\tpixelsPerInch = (pixelsPerInch * 2 + ret.width / highGoalHeightInches) / 3;\r\n\t \t\t}\r\n\t \t\telse\r\n\t \t\t{\r\n\t \t\t\tpixelsPerInch = (pixelsPerInch + ret.width / highGoalHeightInches) / 2;\r\n\t \t\t}\r\n\t \t} \t\r\n\t \t\r\n\t \tret.aimX = ret.x + (cameraOffsetInches - shooterOffsetInches) * pixelsPerInch;\r\n\t \t\r\n\t \tret.correctionAngle = (double)((ret.aimX - image.cols() / 2)) / pixelsPerXDegree;\r\n\t }\r\n\t else\r\n\t {\r\n\t \tret.targetFound = false;\r\n\t }\r\n\t \r\n\t return ret;\r\n\t}", "public SolutionType getBestSolution();", "static public AppImage browseForImage() {\n // If there is no image ask the user to choose image from file:\n JFileChooser file_chooser = new JFileChooser();\n file_chooser.setAcceptAllFileFilterUsed(false);\n file_chooser.addChoosableFileFilter(new FileFilter() {\n public boolean accept(File file) {\n if (file.isDirectory()) return true;\n String extension = FileUtils.getFileExtension(file);\n return extension.equals(\"png\");\n }\n\n public String getDescription() {\n return \"Portable Network Graphics (PNG)\";\n }\n });\n int ret_value = file_chooser.showOpenDialog(App.instance);\n AppImage app_image = null;\n if (ret_value == JFileChooser.APPROVE_OPTION) {\n // Read the selected file and do scaling on it:\n File file = file_chooser.getSelectedFile();\n String path = file.getAbsolutePath();\n\n // Create the image and add it to cache:\n app_image = Resources.loadAppImage(path);\n addImage(app_image);\n writeRepository();\n }\n\n return app_image;\n }", "public HerbierPic getBestPic() {\n\t\tHerbierPic result = null;\n\t\t\n\t\tif (!pics.isEmpty()) {\n\t\t\tVector<HerbierPic> vPics = new Vector<>();\n\t\t\tvPics.addAll(pics);\n\t\t\tCollections.sort(vPics, new Comparator<HerbierPic>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(HerbierPic pic1, HerbierPic pic2) {\n\t\t\t\t\treturn pic2.getRating() - pic1.getRating();\n\t\t\t\t}\n\t\t\t});\n\t\t\tresult = vPics.firstElement();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public ImageIcon FretImagePrompt() {\r\n\t\t\tImageIcon promptImage = null;\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tImageIcon EfImage = new ImageIcon(\"E1f.jpg\");\r\n\t\t\tImageIcon EfsImage = new ImageIcon(\"E2f#.jpg\");\r\n\t\t\tImageIcon EgImage = new ImageIcon(\"E3g.jpg\");\r\n\t\t\tImageIcon EgsImage = new ImageIcon(\"E4g#.jpg\");\r\n\t\t\tImageIcon EaImage = new ImageIcon(\"E5a.jpg\");\r\n\t\t\tImageIcon EasImage = new ImageIcon(\"E6a#.jpg\");\r\n\t\t\tImageIcon EbImage = new ImageIcon(\"E7b.jpg\");\r\n\t\t\tImageIcon EcImage = new ImageIcon(\"E8c.jpg\");\r\n\t\t\tImageIcon EcsImage = new ImageIcon(\"E9c#.jpg\");\r\n\t\t\tImageIcon EdImage = new ImageIcon(\"E10d.jpg\");\r\n\t\t\tImageIcon EdsImage = new ImageIcon(\"E11d#.jpg\");\r\n\t\t\tImageIcon EeImage = new ImageIcon(\"E12e.jpg\");\r\n\t\t\t\r\n\t\t\tImageIcon AasImage = new ImageIcon(\"A1a#.jpg\");\r\n\t\t\tImageIcon AbImage = new ImageIcon(\"A2b.jpg\");\r\n\t\t\tImageIcon AcImage = new ImageIcon(\"A3c.jpg\");\r\n\t\t\tImageIcon AcsImage = new ImageIcon(\"A4c#.jpg\");\r\n\t\t\tImageIcon AdImage = new ImageIcon(\"A5d.jpg\");\r\n\t\t\tImageIcon AdsImage = new ImageIcon(\"A6d#.jpg\");\r\n\t\t\tImageIcon AeImage = new ImageIcon(\"A7e.jpg\");\r\n\t\t\tImageIcon AfImage = new ImageIcon(\"A8f.jpg\");\r\n\t\t\tImageIcon AfsImage = new ImageIcon(\"A9f#.jpg\");\r\n\t\t\tImageIcon AgImage = new ImageIcon(\"A10g.jpg\");\r\n\t\t\tImageIcon AgsImage = new ImageIcon(\"A11g#.jpg\");\r\n\t\t\tImageIcon AaImage = new ImageIcon(\"A12a#.jpg\");\r\n\t\t\t\r\n\t\t\tImageIcon DdsImage = new ImageIcon(\"D1d#.jpg\");\r\n\t\t\tImageIcon DeImage = new ImageIcon(\"D2e.jpg\");\r\n\t\t\tImageIcon DfImage = new ImageIcon(\"D3f.jpg\");\r\n\t\t\tImageIcon DfsImage = new ImageIcon(\"D4f#.jpg\");\r\n\t\t\tImageIcon DgImage = new ImageIcon(\"D5g.jpg\");\r\n\t\t\tImageIcon DgsImage = new ImageIcon(\"D6g#.jpg\");\r\n\t\t\tImageIcon DaImage = new ImageIcon(\"D7a.jpg\");\r\n\t\t\tImageIcon DasImage = new ImageIcon(\"D8a#.jpg\");\r\n\t\t\tImageIcon DbImage = new ImageIcon(\"D9b.jpg\");\r\n\t\t\tImageIcon DcImage = new ImageIcon(\"D10c.jpg\");\r\n\t\t\tImageIcon DcsImage = new ImageIcon(\"D11c#.jpg\");\r\n\t\t\tImageIcon DdImage = new ImageIcon(\"D12d.jpg\");\r\n\t\t\t\r\n\t\t\tImageIcon GgsImage = new ImageIcon(\"G1g#.jpg\");\r\n\t\t\tImageIcon GaImage = new ImageIcon(\"G2a.jpg\");\r\n\t\t\tImageIcon GasImage = new ImageIcon(\"G3a#.jpg\");\r\n\t\t\tImageIcon GbImage = new ImageIcon(\"G4b.jpg\");\r\n\t\t\tImageIcon GcImage = new ImageIcon(\"G5c.jpg\");\r\n\t\t\tImageIcon GcsImage = new ImageIcon(\"G6c#.jpg\");\r\n\t\t\tImageIcon GdImage = new ImageIcon(\"G7d.jpg\");\r\n\t\t\tImageIcon GdsImage = new ImageIcon(\"G8d#.jpg\");\r\n\t\t\tImageIcon GeImage = new ImageIcon(\"G9e.jpg\");\r\n\t\t\tImageIcon GfImage = new ImageIcon(\"G10f.jpg\");\r\n\t\t\tImageIcon GfsImage = new ImageIcon(\"G11f#.jpg\");\r\n\t\t\tImageIcon GgImage = new ImageIcon(\"G12g.jpg\");\r\n\t\t\t\r\n\t\t\tImageIcon BcImage = new ImageIcon(\"B1c.jpg\");\r\n\t\t\tImageIcon BcsImage = new ImageIcon(\"B2c#.jpg\");\r\n\t\t\tImageIcon BdImage = new ImageIcon(\"B3d.jpg\");\r\n\t\t\tImageIcon BdsImage = new ImageIcon(\"B4d#.jpg\");\r\n\t\t\tImageIcon BeImage = new ImageIcon(\"B5e.jpg\");\r\n\t\t\tImageIcon BfImage = new ImageIcon(\"B6f.jpg\");\r\n\t\t\tImageIcon BfsImage = new ImageIcon(\"B7f#.jpg\");\r\n\t\t\tImageIcon BgImage = new ImageIcon(\"B8g.jpg\");\r\n\t\t\tImageIcon BgsImage = new ImageIcon(\"B9g#.jpg\");\r\n\t\t\tImageIcon BaImage = new ImageIcon(\"B10a.jpg\");\r\n\t\t\tImageIcon BasImage = new ImageIcon(\"B11a#.jpg\");\r\n\t\t\tImageIcon BbImage = new ImageIcon(\"B12b.jpg\");\r\n\t\t\t\r\n\t\t\t//I is used to mean High E (as in High E string)\r\n\t\t\tImageIcon IfImage = new ImageIcon(\"HighE1f.jpg\");\r\n\t\t\tImageIcon IfsImage = new ImageIcon(\"HighE2f#.jpg\");\r\n\t\t\tImageIcon IgImage = new ImageIcon(\"HighE3g.jpg\");\r\n\t\t\tImageIcon IgsImage = new ImageIcon(\"HighE4g#.jpg\");\r\n\t\t\tImageIcon IaImage = new ImageIcon(\"HighE5a.jpg\");\r\n\t\t\tImageIcon IasImage = new ImageIcon(\"HighE6a#.jpg\");\r\n\t\t\tImageIcon IbImage = new ImageIcon(\"HighE7b.jpg\");\r\n\t\t\tImageIcon IcImage = new ImageIcon(\"HighE8c.jpg\");\r\n\t\t\tImageIcon IcsImage = new ImageIcon(\"HighE9c#.jpg\");\r\n\t\t\tImageIcon IdImage = new ImageIcon(\"HighE10d.jpg\");\r\n\t\t\tImageIcon IdsImage = new ImageIcon(\"HighE11d#.jpg\");\r\n\t\t\tImageIcon IeImage = new ImageIcon(\"HighE12e.jpg\");\r\n\t\t\t\r\n\t\t\tImageIcon[] note = {EfImage, EfsImage, EgImage, EgsImage, EaImage, EasImage, EbImage, EcImage, EcsImage, EdImage, EdsImage, EeImage,\r\n\t\t\t\t\t\t\t AasImage, AbImage, AcImage, AcsImage, AdImage, AdsImage, AeImage, AfImage, AfsImage, AgImage, AgsImage, AaImage,\r\n\t\t\t\t\t\t\t DdsImage, DeImage, DfImage, DfsImage, DgImage, DgsImage, DaImage, DasImage, DbImage, DcImage, DcsImage, DdImage,\r\n\t\t\t\t\t\t\t GgsImage, GaImage, GasImage, GbImage, GcImage, GcsImage, GdImage, GdsImage, GeImage, GfImage, GfsImage, GgImage,\r\n\t\t\t\t\t\t\t BcImage, BcsImage, BdImage, BdsImage, BeImage, BfImage, BfsImage, BgImage, BgsImage, BaImage, BasImage, BbImage,\r\n\t\t\t\t\t\t\t IfImage, IfsImage, IgImage, IgsImage, IaImage, IasImage, IbImage, IcImage, IcsImage, IdImage, IdsImage, IeImage};\r\n\t\t\t\r\n\t\t\tint noteIndex = rand.nextInt(note.length);\r\n\t\t\tpromptImage = note[noteIndex];\r\n\t\t\t\r\n\t\t\treturn promptImage;\r\n\t\t\t\r\n\t\t}", "public int displayRandomImage() {\n\n int randomImageIndex;\n\n do\n { // making sure that the same images aren't repeated & images of the same car makes aren't shown together\n\n randomCarMake = allCarMakes[getRandomBreed()]; // get a random breed\n randomImageIndex = getRandomImage(); // get a random image of a particular breed\n\n randomImageOfChosenCarMake = displayRelevantImage(randomCarMake, randomImageIndex);\n\n } while (displayingCarMakes.contains(randomCarMake) || allDisplayedImages.contains(randomImageOfChosenCarMake));\n\n allDisplayedImages.add(randomImageOfChosenCarMake); // to make sure that the image isn't repeated\n displayingCarMakes.add(randomCarMake); // to make sure that images of the same breed aren't shown at once\n displayingImageIndexes.add(randomImageIndex); // to recall indexes when the device is rotated\n\n // return chosen random image\n return getResources().getIdentifier(randomImageOfChosenCarMake, \"drawable\", \"com.example.car_match_game_app\");\n }", "private int findBestFit(Color c, int[][] tileArray, int x, int y) {\n int radiusTiles = 10; // The number of radius tiles... this WILL be user-configurable.\n int closestSoFar = 0; // Index of the tile that best matches the color so far.\n int redDiff, greenDiff, blueDiff, totalDiff = 0;\n totalDiff = (256*3); // Initialize the total difference to the largest reasonable number.\n if (c==null) { // assume that the color is black...\n c = new Color(0,0,0);\n }\n for (int count = 0; count < tileLibrary.getSize(); count++) { // Cycle through all of the library tiles.\n if (tileLibrary.get(count).getColor() != null) {\n\n/********* UNCOMMENT THE FOLLOWING TO USE THE NO-REP ALGORITHM ***********/\n /* // This is the no-rep algorithm.\n redDiff = Math.abs(c.getRed() - images.get(count).getColor().getRed());\n blueDiff = Math.abs(c.getBlue() - images.get(count).getColor().getBlue());\n greenDiff = Math.abs(c.getGreen() - images.get(count).getColor().getGreen());\n if (((redDiff + blueDiff + greenDiff) < totalDiff) && (used[count] == false)) {\n totalDiff = redDiff + blueDiff + greenDiff;\n closestSoFar = count;\n }\n */\n/**************************************************************************/\n\n/********** COMMENT OUT TO USE NO-REP ALGORITHM INSTEAD *******************/\n // Is this image in our no-dice radius?\n boolean inRadius = false;\n for (int newX = (x - radiusTiles); newX < (x+radiusTiles); newX++) { // Cycle through the width of the box...\n for (int newY = (y - radiusTiles); newY < (y+radiusTiles); newY++) { // Cycle through the height of the box...\n // If we are still within the bounds of the image....\n if ((newX >= 0) && (newY >= 00) && (newX < hTiles) && (newY < vTiles)) { // && !((newX >= x) && (newY >= y))) {\n try {\n if (tileArray[newX][newY] == count) { // If that tile is already in the box...\n inRadius = true;\n }\n } catch (Exception e) {System.out.println(e);}\n }\n }\n }\n if (inRadius == false) { // If this tile isn't in the box, find the difference in color.\n redDiff = Math.abs(c.getRed() - tileLibrary.get(count).getColor().getRed());\n blueDiff = Math.abs(c.getBlue() - tileLibrary.get(count).getColor().getBlue());\n greenDiff = Math.abs(c.getGreen() - tileLibrary.get(count).getColor().getGreen());\n if (((redDiff + blueDiff + greenDiff) < totalDiff)) { // if this is closer than the previous closest...\n totalDiff = redDiff + blueDiff + greenDiff;\n closestSoFar = count; // Keep track of this tile.\n }\n }\n }\n }\n return closestSoFar; // return the tile we chose.\n }", "@SuppressWarnings({ \"unchecked\", \"null\" })\n public List<String> calcSimilarity(String imgPath) {\n\n FileInputStream imageFile;\n double minDistance = Double.MAX_VALUE;\n\n // 返回查询结果\n List<String> matchUrls = new ArrayList<String>();\n\n\n try {\n\n imageFile = new FileInputStream(imgPath);\n BufferedImage bufferImage;\n\n bufferImage = ImageIO.read(imageFile);\n LTxXORP.setRotaIvaPats();//设定旋转模式值\n\n //得到图片的纹理一维数组特征向量(各颜色分量频率(统计量))\n double[] lbpSourceFecture = LTxXORP.getLBPFeature(imgPath);\n\n // 提取数据库数据\n List<Object> list = DBHelper.fetchALLCloth();\n\n // long startTime = System.currentTimeMillis();\n\n // 把每个条数据的路径和最短距离特征提取出来并存储在lbpResultMap的键值对中。\n Map<String, Double> lbpResultMap = new HashMap<String, Double>();\n\n for (int i = 0; i < list.size(); i++) {\n\n Map<String, Object> map = (Map<String, Object>) list.get(i);\n\n Object candidatePath = map.get(\"path\");\n Object candidateLBP = map.get(\"lbpFeature\");\n\n // 从快速搜索中选取TOP N结果,继续进行纹理特征匹配\n //获取当前由颜色匹配相似度排序的结果并提取其LBP纹理特征\n\n double[] lbpTargetFeature = MatchUtil.jsonToArr((String) candidateLBP);\n double lbpDistance = textureStrategy.similarity(lbpTargetFeature, lbpSourceFecture);\n lbpResultMap.put((String) candidatePath, lbpDistance);\n\n // 判断衡量标准选取距离还是相似度\n if (lbpDistance < minDistance)\n minDistance = lbpDistance;\n\n }\n\n Map<String, Double> tempResultMap;\n\n System.out.println(\"Min Distance : \" + (float) minDistance);\n\n\n\n System.out.println(\"============== finish Texture =================\");\n\n Map<String, Double> finalResult = MatchUtil.sortByValueAsc(lbpResultMap);\n\n int counter = 0;\n for (Map.Entry<String, Double> map : finalResult.entrySet()) {\n if (counter >= Config.finalResultNumber)\n break;\n //matchUrls截取只存储finalResultNumber数量的查询结果\n matchUrls.add(map.getKey());\n counter ++;\n double TSimilarity=Math.pow(Math.E,-map.getValue());\n System.out.println(TSimilarity + \" 图片路径 \" + map.getKey());\n\n }\n\n System.out.println();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return matchUrls;\n }", "void imageChooser() {\n\n // create an instance of the\n // intent of the type image\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n // pass the constant to compare it\n // with the returned requestCode\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n switch (requestCode) {\n case REQUEST_SELECT_IMAGE_1:\n if (resultCode == RESULT_OK) {\n // If image is selected successfully, set the image URI and bitmap.\n mImageUri1 = null;\n mBitmap1 = null;\n mImageUri1 = data.getData();\n mBitmap1 = ImageHelper.loadSizeLimitedBitmapFromUri(\n mImageUri1, getContentResolver());\n if (mBitmap1 != null) {\n // Show the image on screen.\n ImageView imageView = (ImageView) findViewById(R.id.image_0);\n imageView.setImageBitmap(mBitmap1);\n\n }\n // Clear the information panel.\n setInfo(\"\");\n\n // Enable button \"show baby\" as the image to detect is not selected.\n setShowButtonsEnabledStatus(true);\n }\n break;\n case REQUEST_SELECT_IMAGE_2:\n if (resultCode == RESULT_OK) {\n // If image is selected successfully, set the image URI and bitmap.\n mImageUri2 = null;\n mBitmap2 = null;\n mImageUri2 = data.getData();\n mBitmap2 = ImageHelper.loadSizeLimitedBitmapFromUri(\n mImageUri2, getContentResolver());\n if (mBitmap2 != null) {\n // Show the image on screen.\n ImageView imageView = (ImageView) findViewById(R.id.image_1);\n imageView.setImageBitmap(mBitmap2);\n\n }\n // Clear the information panel.\n setInfo(\"\");\n\n // Enable button \"show baby\" as the image to detect is not selected.\n setShowButtonsEnabledStatus(true);\n }\n break;\n default:\n break;\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n // choose a image\n if (requestCode == RequestCode.CHOOSE_IMAGE) {\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Uri dataUri = data.getData();\n if (dataUri != null) {\n // get a random name\n File imgFile = SpaceUtils.newUsableFile();\n mSelectPath = imgFile.getPath();\n Log.v(\"path\",mSelectPath);\n // the image intent just return a simple image\n // the Ucrop(裁剪) is solved after the image intent\n UCrop.Options options = new UCrop.Options();\n options.setCompressionQuality(100);\n UCrop.of(dataUri, Uri.fromFile(imgFile))\n .withOptions(options)\n .withMaxResultSize(mImageSize.x, mImageSize.y)\n .withAspectRatio(3, 4)\n .start(this, RequestCode.CROP_IMAGE);\n }\n }\n }\n } else if (requestCode == RequestCode.CROP_IMAGE) {\n // crop a image\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Glide.with(this).load(mSelectPath).into(mImageViews.get(mCurrentIndex));\n startDetectFaceInfo();\n }\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == 1) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n String txt = getTextFromImage(bitmap);\n searchByPhoto(txt);\n }else if(requestCode == 2){\n Bitmap bm=null;\n if (data != null) {\n try {\n bm = MediaStore.Images.Media.getBitmap(getApplicationContext().getContentResolver(), data.getData());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n String txt = getTextFromImage(bm);\n searchByPhoto(txt);\n }\n }\n }", "public Code guess(){\n int minimumEliminated = -1;\n Code bestGuess = null;\n //Create a list of all codes in sample space (including both impossible and possible codes)\n List<Code> unusedCodes = new LinkedList<>(possibleCodes);\n unusedCodes.addAll(impossibleCodes);\n\n //MinMax part\n //For each code in the sample space\n for (Code arbitraryCode : unusedCodes) {\n //Create a new 2D miniMax table\n int[][] scoreTable = new int[Code.CODE_LENGTH + 1][Code.CODE_LENGTH + 1];\n //For each possibleCode\n for (Code possibleCode : possibleCodes) {\n Response response = arbitraryCode.getResponse(possibleCode); //Compare with the temporary arbitrary code and get response\n scoreTable[response.getStrikes()][response.getHits()]++; //Increase number of codes which have this response\n }\n //Find max in the table\n int maxScoreHits = -1;\n for (int[] row : scoreTable) {\n for (int i : row) {\n maxScoreHits = Integer.max(i, maxScoreHits);\n }\n }\n int score = possibleCodes.size() - maxScoreHits; //Evaluate score\n //Update minimumEliminated and bestGuess\n if (score > minimumEliminated) {\n minimumEliminated = score;\n bestGuess = arbitraryCode;\n }\n }\n\n //Update guess\n guess = bestGuess;\n\n return bestGuess;\n }", "public static int makeGuess(BufferedImage subImage) {\n\t\tdouble bestOverlap = -1;\r\n\t\tint bestGuess = -1;\r\n\r\n\t\tfor (int i=0; i<templates.length; i++) { // for each possible character\r\n\r\n\t\t\tint totalCount = 0;\r\n\t\t\tint matchCount = 0;\r\n\r\n\t\t\tfor (int x=0; x<subImage.getWidth(); x++) {\r\n\t\t\t\tfor (int y=0; y<subImage.getHeight(); y++) {\r\n\r\n\t\t\t\t\tint pixelVal = subImage.getRGB(x, y);\r\n\r\n\t\t\t\t\tif (!isBlack(pixelVal)) continue;\r\n\t\t\t\t\tif (isBlack(templates[i].getRGB(x, y))) matchCount++;\r\n\t\t\t\t\ttotalCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (debug) \r\n\t\t\t\tSystem.out.println(i + \": matched \" + matchCount + \" / \" + totalCount);\r\n\r\n\t\t\tdouble overlap = matchCount / (double) totalCount;\r\n\t\t\tif (overlap > bestOverlap) {\r\n\t\t\t\tbestOverlap = overlap;\r\n\t\t\t\tbestGuess = i;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn bestGuess;\r\n\t}", "public abstract OptimisationSolution getBestSolution();", "public static Image getSearchInfoAppropriateImage() {\n return ImageUtil\n .getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_SEARCH_APPROPRIATE_ICON));\n }", "public static Size chooseOptimalSize(Size[] choices, int textureViewWidth,\r\n int textureViewHeight, int maxWidth, int maxHeight, Size aspectRatio) {\n List<Size> bigEnough = new ArrayList<>();\r\n // Collect the supported resolutions that are smaller than the preview Surface\r\n List<Size> notBigEnough = new ArrayList<>();\r\n int w = aspectRatio.getWidth();\r\n int h = aspectRatio.getHeight();\r\n for (Size option : choices) {\r\n if (option.getWidth() <= maxWidth && option.getHeight() <= maxHeight &&\r\n option.getHeight() == option.getWidth() * h / w) {\r\n if (option.getWidth() >= textureViewWidth &&\r\n option.getHeight() >= textureViewHeight) {\r\n bigEnough.add(option);\r\n } else {\r\n notBigEnough.add(option);\r\n }\r\n }\r\n }\r\n\r\n // Pick the smallest of those big enough. If there is no one big enough, pick the\r\n // largest of those not big enough.\r\n if (bigEnough.size() > 0) {\r\n return Collections.min(bigEnough, new CompareSizesByArea());\r\n } else if (notBigEnough.size() > 0) {\r\n return Collections.max(notBigEnough, new CompareSizesByArea());\r\n } else {\r\n Log.e(TAG, \"Couldn't find any suitable preview size\");\r\n return choices[0];\r\n }\r\n }", "DetectionResult getObjInImage(Mat image);", "public int getOptimalNumNearest();", "private static Option chooseWinner(Option op1, Option op2) {\n\t\tif(op1 == op2) {\n\t\t\treturn null;\n\t\t}else if(op1 == Option.ROCK) {\n\t\t\tif(op2 == Option.PAPER) {\n\t\t\t\treturn Option.PAPER;\n\t\t\t}\n\t\t\treturn Option.ROCK;\n\t\t}else if(op1 == Option.SCISSORS) {\n\t\t\tif(op2 == Option.ROCK) {\n\t\t\t\treturn Option.ROCK;\n\t\t\t}\n\t\t\treturn Option.SCISSORS;\n\t\t}else if(op1 == Option.PAPER) {\n\t\t\tif(op2 == Option.SCISSORS) {\n\t\t\t\treturn Option.SCISSORS;\n\t\t\t}\n\t\t\treturn Option.PAPER;\n\t\t}\n\t\treturn null;\n\t}", "public int judgeFitness(BufferedImage target) {\n int fit = 0;\n\n // compare images pixel by pixel\n for (int i = 0; i < ImagePanel.WIDTH; i++) {\n for (int j = 0; j < ImagePanel.HEIGHT; j++) {\n Color indv = new Color(img.getRGB(i, j));\n Color targ = new Color(target.getRGB(i, j));\n\n int deltaR = targ.getRed() - indv.getRed();\n int deltaG = targ.getGreen() - indv.getGreen();\n int deltaB = targ.getBlue() - indv.getBlue();\n\n int pixelFitness = (int)Math.sqrt(deltaR * deltaR +\n deltaG * deltaG +\n deltaB * deltaB);\n // lower fitness is better\n fit += pixelFitness;\n }\n }\n\n fitness = fit;\n return fit;\n }", "public abstract void nextGuessResult(ResultPegs resultPegs);", "public Point findImage(BufferedImage image, int index) {\n int smallWidth = image.getWidth();\n int smallHeight = image.getHeight();\n int[][] smallPixels = new int[smallWidth][smallHeight];\n for(int x = 0; x < smallWidth; x++) {\n for(int y = 0; y < smallHeight; y++) {\n smallPixels[x][y] = image.getRGB(x, y);\n }\n }\n boolean good;\n int count = 0;\n for(int X = 0; X <= bigWidth - smallWidth; X++) {\n for(int Y = 0; Y <= bigHeight - smallHeight; Y++) {\n good = true;\n for(int x = 0; x < smallWidth; x++) {\n for(int y = 0; y < smallHeight; y++) {\n if(smallPixels[x][y] != bigPixels[X + x][Y + y]) {\n good = false;\n break;\n }\n }\n if(!good) {\n break;\n }\n }\n if(good) {\n if(count == index) {\n return(new Point(X, Y));\n }\n count++;\n }\n }\n }\n return(null);\n }", "public static Options getOptions(final File file, final int reqWidth, \n final int reqHeight) {\n BitmapFactory.Options options = new Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(file.getPath(), options);\n options.inJustDecodeBounds = false;\n\n int inSampleSize = 1;\n int height = options.outHeight;\n int width = options.outWidth;\n\n if (height > reqHeight || width > reqWidth) {\n // Calculate ratios of height and width to requested height and width\n final int heightRatio = Math.round((float) height / (float) reqHeight);\n final int widthRatio = Math.round((float) width / (float) reqWidth);\n\n // Choose the smallest ratio as inSampleSize value, this will guarantee\n // a final image with both dimensions larger than or equal to the\n // requested height and width.\n inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;\n\n // This offers some additional logic in case the image has a strange\n // aspect ratio. For example, a panorama may have a much larger\n // width than height. In these cases the total pixels might still\n // end up being too large to fit comfortably in memory, so we should\n // be more aggressive with sample down the image (=larger\n // inSampleSize).\n final float totalPixels = width * height;\n\n // Anything more than 2x the requested pixels we'll sample down\n // further.\n final float totalReqPixelsCap = reqWidth * reqHeight * 2;\n\n while (totalPixels / (inSampleSize * inSampleSize) > totalReqPixelsCap) {\n inSampleSize++;\n }\n }\n\n options.inSampleSize = inSampleSize;\n return options;\n }", "FetchedImage getFujimiyaUrl(String query,int maxRankOfResult){\n try{\n //Get SearchResult\n Search search = getSearchResult(query, maxRankOfResult);\n List<Result> items = search.getItems();\n for(Result result: items){\n int i = items.indexOf(result);\n logger.log(Level.INFO,\"query: \" + query + \" URL: \"+result.getLink());\n logger.log(Level.INFO,\"page URL: \"+result.getImage().getContextLink());\n if(result.getImage().getWidth()+result.getImage().getHeight()<600){\n logger.log(Level.INFO,\"Result No.\"+i+\" is too small image. next.\");\n continue;\n }\n if(DBConnection.isInBlackList(result.getLink())){\n logger.log(Level.INFO,\"Result No.\"+i+\" is included in the blacklist. next.\");\n continue;\n }\n HttpURLConnection connection = (HttpURLConnection)(new URL(result.getLink())).openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setInstanceFollowRedirects(false);\n connection.connect();\n if(connection.getResponseCode()==200){\n return new FetchedImage(connection.getInputStream(),result.getLink());\n }else{\n logger.log(Level.INFO,\"Result No.\"+i+\" occurs error while fetching the image. next.\");\n continue;\n }\n }\n //If execution comes here, connection has failed 10 times.\n throw new ConnectException(\"Connection failed 10 times\");\n\n } catch (IOException e) {\n // TODO Auto-generated catch block\n logger.log(Level.SEVERE,e.toString());\n e.printStackTrace();\n }\n return null;\n}", "private Camera.Size getOptimalPreviewSize(List<Camera.Size> sizes, int w, int h) {\n final double ASPECT_TOLERANCE = 0.05;\n double targetRatio = (double) w / h;\n if (sizes == null) return null;\n \n Camera.Size optimalSize = null;\n double minDiff = Double.MAX_VALUE;\n \n int targetHeight = h;\n \n // Try to find an size match aspect ratio and size\n for (Camera.Size size : sizes) {\n double ratio = (double) size.width / size.height;\n if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue;\n if (Math.abs(size.height - targetHeight) < minDiff) {\n optimalSize = size;\n minDiff = Math.abs(size.height - targetHeight);\n }\n }\n \n // Cannot find the one match the aspect ratio, ignore the requirement\n if (optimalSize == null) {\n minDiff = Double.MAX_VALUE;\n for (Camera.Size size : sizes) {\n if (Math.abs(size.height - targetHeight) < minDiff) {\n optimalSize = size;\n minDiff = Math.abs(size.height - targetHeight);\n }\n }\n }\n \n return optimalSize;\n }", "public Image getDefault(int player, boolean ep) {if (player==1) return defaultImg1; else return defaultImg2;}", "public boolean calculateFocus(Mat img) {\n\t\tImgproc.cvtColor(img, img, Imgproc.COLOR_BGR2GRAY);\n\t\tImgproc.blur(img, img, BLUR);\n\t\tImgproc.Canny(img, img, EDGE_LOWER_THRESHOLD, EDGE_LOWER_THRESHOLD * EDGE_THRESHOLD_RATIO);\n\t\tint score = Core.countNonZero(img);\n\t\t\n\t\tSystem.out.println(\"[score=\" + score + \", high=\" + bestScore + \", best=\" + bestNetScore + \", low=\" + lowestNetScore + \", direction=\" + direction);\n\t\t\n\t\tif (score == 0)\n\t\t\treturn false;\n\t\t\n\t\tif (lowestNetScore > score || lowestNetScore == 0) {\n\t\t\tlowestNetScore = score;\n\t\t\tif (lowestNetScore < unfocusedScore || unfocusedScore == 0)\n\t\t\t\tunfocusedScore = lowestNetScore;\n\t\t}\n\t\tif (score > bestScore || bestScore == 0) {\n\t\t\tbestScore = score;\n\t\t\tif (bestNetScore < bestScore)\n\t\t\t\tbestNetScore = bestScore;\n\t\t}\n\t\tif (passedPeak && score < bestScore) {\n\t\t\t//if (stepSize != INITIAL_STEP || stepsTaken == Z_RANGE) {\n\t\t\t\tcalculationComplete();\n\t\t\t\treturn true;\n\t\t\t//}\n\t\t}\n\t\telse if (bestScore > lowestNetScore * SCORE_PEAK_SIZE && score >= bestNetScore * STRICTNESS /*&& stepSize != INITIAL_STEP*/) {\n\t\t\tif (strideSize <= MINIMUM_STRIDE && score <= bestScore) {\n\t\t\t\tSystem.out.println(\"quick complete\");\n\t\t\t\tcalculationComplete();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tpassedPeak = true;\n\t\t}\n\t\t//else if (stepSize == INITIAL_STEP && stepsTaken == Z_RANGE)\n\t\t//\tpassedPeak = true;\n\t\t/*else if (stepSize <= MINIMUM_STEP && score < bestScore) {\n\t\t\tSystem.out.println(\"quick complete\");\n\t\t\tcalculationComplete();\n\t\t\treturn true;\n\t\t}*/\n\t\treturn false;\n\t}", "public static Image findImage(Settings settings) throws IOException {\n\n for (int i = 0; i < ATTEMPTS; i++) {\n try {\n char[] ranName = new char[NAMELEN];\n Random ran = new Random(System.currentTimeMillis());\n for (int c = 0; c < NAMELEN; c++) {\n ranName[c] = (char)('A' + ran.nextInt(26));\n }\n\n return findImageAt(MessageFormat.format(URL, new String(ranName)), settings);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }\n\n throw new IOException(\"Failed to find an inspiration to draw\");\n }", "public Image execute(ImageInfo info, Image originalImage, Map hints, ImageSessionContext context) throws ImageException, IOException {\n/* 118 */ if (hints == null) {\n/* 119 */ hints = Collections.EMPTY_MAP;\n/* */ }\n/* 121 */ long start = System.currentTimeMillis();\n/* 122 */ Image img = null;\n/* */ \n/* */ \n/* 125 */ Image lastCacheableImage = null;\n/* */ \n/* 127 */ int converterCount = this.converters.size();\n/* 128 */ int startingPoint = 0;\n/* 129 */ if (this.cache != null) {\n/* 130 */ for (int i = converterCount - 1; i >= 0; i--) {\n/* 131 */ ImageConverter converter = getConverter(i);\n/* 132 */ ImageFlavor flavor = converter.getTargetFlavor();\n/* 133 */ img = this.cache.getImage(info, flavor);\n/* 134 */ if (img != null) {\n/* 135 */ startingPoint = i + 1;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 140 */ if (img == null && this.loader != null) {\n/* */ \n/* 142 */ ImageFlavor flavor = this.loader.getTargetFlavor();\n/* 143 */ img = this.cache.getImage(info, flavor);\n/* */ } \n/* */ } \n/* 146 */ if (img == null && originalImage != null) {\n/* 147 */ img = originalImage;\n/* */ }\n/* */ \n/* 150 */ boolean entirelyInCache = true;\n/* */ \n/* 152 */ if (img == null && this.loader != null) {\n/* */ \n/* 154 */ img = this.loader.loadImage(info, hints, context);\n/* 155 */ if (log.isTraceEnabled()) {\n/* 156 */ long duration = System.currentTimeMillis() - start;\n/* 157 */ log.trace(\"Image loading using \" + this.loader + \" took \" + duration + \" ms.\");\n/* */ } \n/* */ \n/* */ \n/* 161 */ entirelyInCache = false;\n/* 162 */ if (img.isCacheable()) {\n/* 163 */ lastCacheableImage = img;\n/* */ }\n/* */ } \n/* 166 */ if (img == null) {\n/* 167 */ throw new ImageException(\"Pipeline fails. No ImageLoader and no original Image available.\");\n/* */ }\n/* */ \n/* */ \n/* 171 */ if (converterCount > 0) {\n/* 172 */ for (int i = startingPoint; i < converterCount; i++) {\n/* 173 */ ImageConverter converter = getConverter(i);\n/* 174 */ start = System.currentTimeMillis();\n/* 175 */ img = converter.convert(img, hints);\n/* 176 */ if (log.isTraceEnabled()) {\n/* 177 */ long duration = System.currentTimeMillis() - start;\n/* 178 */ log.trace(\"Image conversion using \" + converter + \" took \" + duration + \" ms.\");\n/* */ } \n/* */ \n/* */ \n/* 182 */ entirelyInCache = false;\n/* 183 */ if (img.isCacheable()) {\n/* 184 */ lastCacheableImage = img;\n/* */ }\n/* */ } \n/* */ }\n/* */ \n/* */ \n/* */ \n/* 191 */ if (this.cache != null && !entirelyInCache) {\n/* 192 */ if (lastCacheableImage == null)\n/* */ {\n/* 194 */ lastCacheableImage = forceCaching(img);\n/* */ }\n/* 196 */ if (lastCacheableImage != null) {\n/* 197 */ if (log.isTraceEnabled()) {\n/* 198 */ log.trace(\"Caching image: \" + lastCacheableImage);\n/* */ }\n/* 200 */ this.cache.putImage(lastCacheableImage);\n/* */ } \n/* */ } \n/* 203 */ return img;\n/* */ }", "public Result getResult(IMatch m) {\n if (m.getHomeTeam().equals(\"Sporting\")) return Result.AWAY;\n if (m.getAwayTeam().equals(\"Sporting\")) return Result.HOME;\n \n return gen.getRandomResult();\n }", "private int computeInSmallSize(Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n // Calculate ratios of height and width to requested height and\n // width\n final int heightRatio = Math.round((float) height / (float) reqHeight);\n final int widthRatio = Math.round((float) width / (float) reqWidth);\n\n // Choose the smallest ratio as inSampleSize value,\n // this will guarantee a final image\n // with both dimensions larger than or equal to the requested\n // height and width.\n inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;\n\n // This offers some additional logic in case the image has a strange\n // aspect ratio. For example, a panorama may have a much larger\n // width than height. In these cases the total pixels might still\n // end up being too large to fit comfortably in memory, so we should\n // be more aggressive with sample down the image (=larger\n // inSampleSize).\n\n final float totalPixels = width * height;\n\n // Anything more than 2x the requested pixels we'll sample down\n // further\n final float totalReqPixelsCap = reqWidth * reqHeight * 2;\n\n while (totalPixels / (inSampleSize * inSampleSize) > totalReqPixelsCap) {\n inSampleSize++;\n }\n }\n return inSampleSize;\n }", "public List<Image> parseBestOfImagesResult(Document doc) {\n\n ArrayList<Image> bestOfImages = new ArrayList<>();\n Elements htmlImages = doc.select(CSS_BEST_OF_IMAGE_QUERY);\n Timber.i(\"Best OfImages: %s\", htmlImages.toString());\n String href;\n Image bestOfImage;\n for (Element image : htmlImages) {\n href = image.attr(\"src\");\n Timber.i(\"Image src: %s\", href);\n bestOfImage = new Image(href);\n bestOfImages.add(bestOfImage);\n }\n return bestOfImages;\n }", "public static ImageInfo getPickedImageInfo(Context context, int resultCode, Intent intentWithImage) {\r\n if (context == null || resultCode != Activity.RESULT_OK) {\r\n return null;\r\n }\r\n\r\n return new ImageInfo(intentWithImage.getData(), false);\r\n }", "private double[] chooseBestMove(List<double[]> possibleMoves) {\n double bestScore = 0;\n int indexBest = 0;\n for (int i = 0; i < possibleMoves.size(); i++) {\n if (possibleMoves.get(i)[4] > bestScore) {\n bestScore = possibleMoves.get(i)[4];\n indexBest = i;\n }\n }\n return possibleMoves.get(indexBest);\n }", "private void getClosestSupportedQuality(Camera.Parameters parameters) {\n\n\t\t// Resolutions\n\t\tString supportedSizesStr = \"Supported resolutions: \";\n\t\tList<Size> supportedSizes = parameters.getSupportedPreviewSizes();\n\t\tfor (Iterator<Size> it = supportedSizes.iterator(); it.hasNext();) {\n\t\t\tSize size = it.next();\n\t\t\tsupportedSizesStr += size.width+\"x\"+size.height+(it.hasNext()?\", \":\"\");\n\t\t}\n\t\tLog.v(TAG,supportedSizesStr);\n\n\t\t// Frame rates\n\t\tString supportedFrameRatesStr = \"Supported frame rates: \";\n\t\tList<Integer> supportedFrameRates = parameters.getSupportedPreviewFrameRates();\n\t\tfor (Iterator<Integer> it = supportedFrameRates.iterator(); it.hasNext();) {\n\t\t\tsupportedFrameRatesStr += it.next()+\"fps\"+(it.hasNext()?\", \":\"\");\n\t\t}\n\t\t//Log.v(TAG,supportedFrameRatesStr);\n\n\t\tint minDist = Integer.MAX_VALUE, newFps = mQuality.framerate;\n\t\tif (!supportedFrameRates.contains(mQuality.framerate)) {\n\t\t\tfor (Iterator<Integer> it = supportedFrameRates.iterator(); it.hasNext();) {\n\t\t\t\tint fps = it.next();\n\t\t\t\tint dist = Math.abs(fps - mQuality.framerate);\n\t\t\t\tif (dist<minDist) {\n\t\t\t\t\tminDist = dist;\n\t\t\t\t\tnewFps = fps;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLog.v(TAG,\"Frame rate modified: \"+mQuality.framerate+\"->\"+newFps);\n\t\t\t//mQuality.framerate = newFps;\n\t\t}\n\n\t}", "public Classifier selectBestOneR(Instances data) throws Exception{\r\n\t\tSystem.out.println(\"Build OneR\");\r\n\r\n\t\tCVParameterSelection ps = new CVParameterSelection();\r\n\t\tps.setClassifier(new OneR());\r\n\t\tps.setNumFolds(2);\r\n\t\tps.addCVParameter(\"B 1 5 10\");\r\n\r\n\t\t// build and output best options\r\n\t\tps.buildClassifier(data);\r\n\r\n\r\n\t\treturn ps;\r\n\t}", "static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n || (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }", "public Decision bestFor(Context context);", "protected void mProfileImageSelection() {\n\n final CharSequence[] options = {\"Camera\", \"Gallery\", \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper\n (ApplicationActivity.this, R.style.AlertDialogCustom));\n\n builder.setIcon(R.mipmap.profile_icon);\n builder.setTitle(\"Profile Picture\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n\n //Camera Option\n if (options[item].equals(\"Camera\")) {\n Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, CAMERA_REQUEST);\n }\n\n //Gallery Option\n else if (options[item].equals(\"Gallery\")) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(intent, GALLERY_REQUEST);\n }\n\n //Cancel Option\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n\n builder.show();\n }", "@Override\n public DRFLPSolution algorithm(DRFLPInstance instance) {\n try {\n List<Future<DRFLPSolution>> futures = new ArrayList<>();\n RandomManager.reinitialize(RandomType.LEGACY, 0, this.n);\n for (int i = 0; i < n; i++) {\n int _i = i;\n futures.add(executor.submit(() -> {\n RandomManager.reset(_i);\n return alg.algorithm(instance);\n }));\n }\n var results = ConcurrencyUtil.awaitAll(futures);\n DRFLPSolution best = null;\n for(var solution: results){\n if(solution.isBetterThan(best)){\n best = solution;\n }\n }\n return best;\n } finally {\n executor.shutdown();\n }\n }", "public Image getMinimRest();", "private void selectOptionOfPicture() {\n final CharSequence[] options = { \"Take Photo\", \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(view.getContext());\n builder.setTitle(\"Add Photo!\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Take Photo\"))\n {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, 1);\n }\n else if (options[item].equals(\"Choose from Gallery\"))\n {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(intent, 2);\n }\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }", "private Image getImage(Proposal proposal, boolean selected) {\n\t\tif (proposal == null)\n\t\t\treturn null;\n\t\t// return labelProvider.getImage(proposal);\n\t\tif (proposal.isPartial() && partialContentImage != null)\n\t\t\treturn selected ? partialContentImageSelected : partialContentImage;\n\t\tif (proposal.isFunction() && functionContentImage != null)\n\t\t\treturn selected ? functionContentImageSelected : functionContentImage;\n\t\treturn null;\n\t}", "public String GetCameraModel(String img){\n String console = null;\n String c_arg = null;\n String command = null;\n\n if( this.OS.contains(\"Windows\") ){\n console = \"cmd\";\n c_arg = \"/c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\\"\"+img+\"\\\"\";\n }else{\n console = \"sh\";\n c_arg = \"-c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\'\"+img+\"\\'\";\n }\n\n\n String line = null;\n try{\n IJ.log(PATH_TO_EXIFTOOL);\n IJ.log(command);\n IJ.log(this.OS);\n ProcessBuilder bob = new ProcessBuilder(console, c_arg, command);\n bob.redirectErrorStream(true);\n final Process proc = bob.start();\n\n BufferedReader proc_out = new BufferedReader( new InputStreamReader(proc.getInputStream()));\n\n do{\n line = proc_out.readLine();\n //IJ.log(line);\n\n\n if( line != null ){\n if( line.matches( \".*Survey2_(BLUE|RED|GREEN|RGB|IR|NDVI)\" )){\n break;\n }\n }\n\n //IJ.log(line);\n }while( line != null );\n\n }catch( IOException e){\n e.printStackTrace();\n }\n\n\n if( line.matches(\".*Survey2_BLUE\") ){\n return \"Survey2_BLUE\";\n }else if( line.matches(\".*Survey2_RED\") ){\n return \"Survey2_RED\";\n }else if( line.matches(\".*Survey2_GREEN\") ){\n return \"Survey2_GREEN\";\n }else if( line.matches(\".*Survey2_RGB\") ){\n return \"Survey2_RGB\";\n }else if( line.matches(\".*Survey2_IR\") ){\n return \"Survery2_IR\";\n }else if( line.matches(\".*Survery2_NDVI\") ){\n return \"Survey2_NDVI\";\n }else{\n return \"CAMERA_NOT_SUPPORTED\";\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == CommenString.TAKE_PHOTO) {\n cameraUtil.photoZoomFromTake(CropperImageScale.square);\n } else if (requestCode == CommenString.LOCAL_PHOTO) {\n List<String> selectedImage = data.getStringArrayListExtra(\"paths\");\n cameraUtil.photoZoomFromMapStorage(selectedImage.get(0),\n CropperImageScale.square);\n } else if (requestCode == CommenString.PHOTO_RESULT) {\n Bundle extras = data.getExtras();\n if (extras != null) {\n headBitmap = extras.getParcelable(\"data\");\n image_up.setImageBitmap(headBitmap);\n }\n } else {\n }\n }\n }", "public Solution createSuggestion(Board board) {\n\t\t\n\t\t// use the room that the computer is currently in\n\t\tBoardCell currentLocation = board.getCell(this.getLocation()[1], this.getLocation()[0]);\n\t\tRoom currentRoom = board.getRoom(currentLocation);\n\t\troomCard = board.getCard(currentRoom.getName());\n\t\t\n\t\t// find possible people and weapons\n\t\tallCards = board.getCards();\n\t\tfor(Card card : allCards) {\n\t\t\tif(!this.getHand().contains(card) && !getSeen().contains(card)) {\n\t\t\t\tif(card.getType() == CardType.PERSON) {\n\t\t\t\t\tpossiblePeople.add(card);\n\t\t\t\t\t\n\t\t\t\t} else if(card.getType() == CardType.WEAPON) {\n\t\t\t\t\tpossibleWeapons.add(card);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// pick a person that isn't the computer's hand and hasn't been seen by the computer\n\t\t//TODO change this (iterating through a HashSet seams like a bad idea)\n\t\t// this code is awful, I know\n\t\t// thats what I get for procrastinating\n\t\tCard personGuess = null;\n\t\tint pos = rand.nextInt(possiblePeople.size());\n\t\tint iterator = 0;\n\t\tfor(Card card : possiblePeople) {\n\t\t\tif(iterator == pos) {\n\t\t\t\tpersonGuess = card;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\titerator++;\n\t\t}\n\t\t// pick a weapon that isn't the computer's hand and hasn't been seen by the computer\n\t\tCard weaponGuess = null;\n\t\tpos = rand.nextInt(possibleWeapons.size());\n\t\titerator = 0;\n\t\tfor(Card card : possibleWeapons) {\n\t\t\tif(iterator == pos) {\n\t\t\t\tweaponGuess = card;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\titerator++;\n\t\t}\n\n\t\t(board.getPlayer(personGuess.getName())).move(currentLocation.getLocation());\n\t\tboard.repaint();\n\n\t\treturn new Solution(roomCard, personGuess, weaponGuess);\n\t}", "private void choseImage() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(intent, GALLERY_REQ_CODE);\n } else {\n Toast.makeText(this, R.string.no_image_picker, Toast.LENGTH_SHORT).show();\n }\n }", "SearchResult getBestResult(List<SearchResult> results, SearchQuery query);", "public void actionPerformed(ActionEvent event) {\r\n Object source = event.getSource();\r\n String tmpStr;\r\n int i, j;\r\n int VOIindex = -1;\r\n int nVOIs = 0;\r\n double minTx, maxTx, minTy, maxTy, minRz, maxRz, step;\r\n int boxIndex = 0;\r\n int opt = 0;\r\n int costFunc = 0;\r\n\r\n if (source == OKButton) {\r\n\r\n if (image.getNDims() != 3) {\r\n MipavUtil.displayError(\"This algorithm only works for 2.5D kidney datasets.\");\r\n\r\n return;\r\n }\r\n\r\n // get input from scalePanel\r\n tmpStr = textGaussX.getText();\r\n\r\n if (testParameter(tmpStr, 0.5, 5.0)) {\r\n scaleX = Float.valueOf(tmpStr).floatValue();\r\n } else {\r\n textGaussX.requestFocus();\r\n textGaussX.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textGaussY.getText();\r\n\r\n if (testParameter(tmpStr, 0.5, 5.0)) {\r\n scaleY = Float.valueOf(tmpStr).floatValue();\r\n } else {\r\n textGaussY.requestFocus();\r\n textGaussY.selectAll();\r\n\r\n return;\r\n }\r\n\r\n int[] destExtents = new int[3];\r\n destExtents[0] = image.getExtents()[0];\r\n destExtents[1] = image.getExtents()[1];\r\n destExtents[2] = image.getExtents()[2];\r\n\r\n float[] sigmas = new float[2];\r\n sigmas[0] = scaleX;\r\n sigmas[1] = scaleY;\r\n setVisible(false); // Hide dialog\r\n\r\n // get input from optionPanel\r\n boxIndex = comboBoxOpt.getSelectedIndex();\r\n\r\n if (boxIndex == 0) {\r\n opt = AlgorithmRegVOILandmark.EXHAUSTIVEOPT;\r\n } else if (boxIndex == 1) {\r\n opt = AlgorithmRegVOILandmark.SIMPLEXOPT;\r\n }\r\n\r\n //if (minDiff.isSelected()) {\r\n // costFunc = AlgorithmRegVOILandmark.MINDIFF;\r\n //} else {\r\n // costFunc = AlgorithmRegVOILandmark.MAXSUM;\r\n //}\r\n\r\n tmpStr = textStep.getText();\r\n\r\n if (testParameter(tmpStr, -5, 5)) {\r\n step = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textStep.requestFocus();\r\n textStep.selectAll();\r\n\r\n return;\r\n }\r\n\r\n // get input from RangePanel\r\n tmpStr = textminTx.getText();\r\n\r\n if (testParameter(tmpStr, -2048, 2048)) {\r\n minTx = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textminTx.requestFocus();\r\n textminTx.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textmaxTx.getText();\r\n\r\n if (testParameter(tmpStr, -2048, 2048)) {\r\n maxTx = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textmaxTx.requestFocus();\r\n textmaxTx.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textminTy.getText();\r\n\r\n if (testParameter(tmpStr, -2048, 2048)) {\r\n minTy = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textminTy.requestFocus();\r\n textminTy.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textmaxTy.getText();\r\n\r\n if (testParameter(tmpStr, -2048, 2048)) {\r\n maxTy = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textmaxTy.requestFocus();\r\n textmaxTy.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textminRz.getText();\r\n\r\n if (testParameter(tmpStr, -360, 360)) {\r\n minRz = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textminRz.requestFocus();\r\n textminRz.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textmaxRz.getText();\r\n\r\n if (testParameter(tmpStr, -360, 360)) {\r\n maxRz = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textmaxRz.requestFocus();\r\n textmaxRz.selectAll();\r\n\r\n return;\r\n }\r\n\r\n try {\r\n Preferences.debug(minTx + \",\" + maxTx + \",\" + minTy + \",\" + maxTy + \",\" + minRz + \",\" + maxRz + \",\" +\r\n step + \"\\n\",Preferences.DEBUG_ALGORITHM);\r\n nVOIs = image.getVOIs().size();\r\n Preferences.debug(\"nVOIs = \" + nVOIs + \"\\n\",Preferences.DEBUG_ALGORITHM);\r\n\r\n ViewVOIVector VOIs = image.getVOIs();\r\n\r\n if (nVOIs == 0) {\r\n MipavUtil.displayError(\"Trace contour using one polygon VOI on first slice.\");\r\n\r\n return;\r\n }\r\n\r\n for (i = 0; i < nVOIs; i++) {\r\n\r\n if ((VOIs.VOIAt(i).isActive() == true) &&\r\n ((VOIs.VOIAt(i).getCurveType() == VOI.CONTOUR) ||\r\n (VOIs.VOIAt(i).getCurveType() == VOI.POLYLINE))) {\r\n VOIindex = i;\r\n\r\n break;\r\n }\r\n }\r\n\r\n if (i == nVOIs) {\r\n MipavUtil.displayError(\"Please select VOI\");\r\n\r\n return;\r\n }\r\n\r\n Vector<VOIBase> curves = VOIs.VOIAt(VOIindex).getCurves();\r\n int nCurves = curves.size();\r\n\r\n if (nCurves == 0) {\r\n MipavUtil.displayError(\"Please select VOI from the first image slice.\");\r\n\r\n return;\r\n }\r\n\r\n for (j = 0; j < nCurves; j++) {\r\n\r\n if (((VOIContour) (curves.elementAt(j))).isActive()) {\r\n break;\r\n }\r\n }\r\n\r\n if (j == nCurves) {\r\n MipavUtil.displayError(\"Please select VOI\");\r\n\r\n return;\r\n }\r\n\r\n int xdim = destExtents[0];\r\n int ydim = destExtents[1];\r\n int tdim = destExtents[2];\r\n float[] resolutions = new float[] { 1, 1, 1 };\r\n\r\n for (i = 0; i < tdim; i++) {\r\n image.getFileInfo(i).setResolutions(resolutions);\r\n }\r\n\r\n float[] volBuffer = null;\r\n int sliceSize = xdim * ydim;\r\n int volLength = sliceSize * tdim;\r\n volBuffer = new float[volLength];\r\n image.exportData(0, volLength, volBuffer); // copy image into 1D array\r\n\r\n int length = (int)\r\n Math.round(((VOIContour) (curves.elementAt(j))).getLengthPtToPt(resolutions) /\r\n resolutions[0]);\r\n\r\n tmpPosition = new Vector3f[2 * length];\r\n tmpIntensity = new float[2 * length];\r\n\r\n Preferences.debug(\"VOI predicted array length = \" + length + \"\\n\",Preferences.DEBUG_ALGORITHM);\r\n\r\n length = image.getVOIs().VOIAt(VOIindex).getPositionAndIntensity(0, j, tmpPosition, tmpIntensity,\r\n volBuffer, xdim);\r\n\r\n Preferences.debug(\"actual VOI length = \" + length + \"\\n\",Preferences.DEBUG_ALGORITHM);\r\n\r\n position = new VOIContour(false, true);\r\n\r\n for (i = 0; i < length; i++) {\r\n position.add( new Vector3f(tmpPosition[i].X, tmpPosition[i].Y, tmpPosition[i].Z) );\r\n }\r\n\r\n // Hide dialog\r\n setVisible(false);\r\n\r\n String name = makeImageName(image.getImageName(), \"_result\");\r\n \r\n clonedImage = (ModelImage)image.clone(image.getImageName() + \"_result\");\r\n\r\n // Make NEW result image of float type\r\n resultImage = new ModelImage(ModelImage.FLOAT, destExtents, name);\r\n\r\n // call algoRegKidney here\r\n algoRegVOILankmark = new AlgorithmRegVOILandmark(clonedImage, resultImage, sigmas, true, position, minTx,\r\n maxTx, minTy, maxTy, minRz, maxRz, step, opt,\r\n costFunc);\r\n algoRegVOILankmark.addListener(this);\r\n\r\n createProgressBar(image.getImageName(), algoRegVOILankmark);\r\n\r\n // Start the thread as a low priority because we wish to still have user interface work fast\r\n if (algoRegVOILankmark.startMethod(Thread.MIN_PRIORITY) == false) {\r\n MipavUtil.displayError(\"A thread is already running on this object\");\r\n }\r\n } catch (IOException error) {\r\n MipavUtil.displayError(\"Registration Kidney: IO Exception\");\r\n\r\n return;\r\n } catch (OutOfMemoryError x) {\r\n\r\n if (resultImage != null) {\r\n resultImage.disposeLocal(); // Clean up image memory\r\n resultImage = null;\r\n }\r\n\r\n MipavUtil.displayError(\"Dialog Register Kidney: unable to allocate enough memory\");\r\n\r\n return;\r\n }\r\n } else if (source == cancelButton) {\r\n dispose();\r\n } else {\r\n super.actionPerformed(event);\r\n }\r\n }", "public static Bitmap getPickedImageFromResult(Context context, int resultCode, Intent intentWithImage) {\r\n if (context == null || resultCode != Activity.RESULT_OK) {\r\n return null;\r\n }\r\n\r\n Log.d(\"Result Code\", String.valueOf(resultCode));\r\n\r\n ImageInfo pickedImageInfo = getPickedImageInfo(context, resultCode, intentWithImage);\r\n if (pickedImageInfo.getImageUri() == null) {\r\n return null;\r\n }\r\n\r\n Log.d(\"Selected Image\", pickedImageInfo.getImageUri().getPath());\r\n\r\n Bitmap bitmap = getImageResized(context, pickedImageInfo.getImageUri());\r\n int rotation = getRotation(context, pickedImageInfo.getImageUri());\r\n bitmap = rotate(bitmap, rotation);\r\n\r\n return bitmap;\r\n }", "private void selectImage() {\n final CharSequence[] options = { \"Take Photo\", \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(EventsActivity.this);\n\n builder.setTitle(\"Search Events By Photo\");\n\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if(options[item].equals(\"Take Photo\")){\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if (intent.resolveActivity(getPackageManager()) != null) {\n File photoFile = null;\n try {\n photoFile = createImageFile();\n } catch (IOException ex) {\n\n }\n if (photoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(context,\n \"com.example.android.fileprovider\",\n photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(intent, 1);\n }\n }\n }\n else if(options[item].equals(\"Choose from Gallery\")) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select File\"),2);\n }\n else if(options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }", "public static Bitmap decodeBitmapSize(Bitmap bm, int IMAGE_BIGGER_SIDE_SIZE) {\n Bitmap b = null;\r\n\r\n\r\n //convert Bitmap to byte[]\r\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);\r\n byte[] byteArray = stream.toByteArray();\r\n\r\n //We need to know image width and height, \r\n //for it we create BitmapFactory.Options object and do BitmapFactory.decodeByteArray\r\n //inJustDecodeBounds = true - means that we do not need load Bitmap to memory\r\n //but we need just know width and height of it\r\n BitmapFactory.Options opt = new BitmapFactory.Options();\r\n opt.inJustDecodeBounds = true;\r\n BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt);\r\n int CurrentWidth = opt.outWidth;\r\n int CurrentHeight = opt.outHeight;\r\n\r\n\r\n //there is function that can quick scale images\r\n //but we need to give in scale parameter, and scale - it is power of 2\r\n //for example 0,1,2,4,8,16...\r\n //what scale we need? for example our image 1000x1000 and we want it will be 100x100\r\n //we need scale image as match as possible but should leave it more then required size\r\n //in our case scale=8, we receive image 1000/8 = 125 so 125x125, \r\n //scale = 16 is incorrect in our case, because we receive 1000/16 = 63 so 63x63 image \r\n //and it is less then 100X100\r\n //this block of code calculate scale(we can do it another way, but this way it more clear to read)\r\n int scale = 1;\r\n int PowerOf2 = 0;\r\n int ResW = CurrentWidth;\r\n int ResH = CurrentHeight;\r\n if (ResW > IMAGE_BIGGER_SIDE_SIZE || ResH > IMAGE_BIGGER_SIDE_SIZE) {\r\n while (1 == 1) {\r\n PowerOf2++;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n if (Math.max(ResW, ResH) < IMAGE_BIGGER_SIDE_SIZE) {\r\n PowerOf2--;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n break;\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n //Decode our image using scale that we calculated\r\n BitmapFactory.Options opt2 = new BitmapFactory.Options();\r\n opt2.inSampleSize = scale;\r\n //opt2.inScaled = false;\r\n b = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt2);\r\n\r\n\r\n //calculating new width and height\r\n int w = b.getWidth();\r\n int h = b.getHeight();\r\n if (w >= h) {\r\n w = IMAGE_BIGGER_SIDE_SIZE;\r\n h = (int) ((double) b.getHeight() * ((double) w / b.getWidth()));\r\n } else {\r\n h = IMAGE_BIGGER_SIDE_SIZE;\r\n w = (int) ((double) b.getWidth() * ((double) h / b.getHeight()));\r\n }\r\n\r\n\r\n //if we lucky and image already has correct sizes after quick scaling - return result\r\n if (opt2.outHeight == h && opt2.outWidth == w) {\r\n return b;\r\n }\r\n\r\n\r\n //we scaled our image as match as possible using quick method\r\n //and now we need to scale image to exactly size\r\n b = Bitmap.createScaledBitmap(b, w, h, true);\r\n\r\n\r\n return b;\r\n }", "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }", "private void showImageChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Profile Image\"), CHOOSE_IMAGE);\n }", "@Test void selectBestRegionsFern_larger() {\n\t\tTldDetection<GrayU8> alg = new TldDetection<>();\n\t\talg.config = new ConfigTld();\n\t\talg.config.maximumCascadeConsider = 20;\n\n\t\t// all 10 should be accepted\n\t\tfor( int i = 0; i < 30; i++ ) {\n\t\t\talg.fernInfo.grow();\n\t\t\talg.fernInfo.get(i).r = new ImageRectangle(i,i,i,i);\n\t\t\talg.fernInfo.get(i).sumP = 50-i;\n\t\t\talg.fernInfo.get(i).sumN = 6;\n\t\t}\n\t\talg.selectBestRegionsFern(200,200);\n\n\t\tassertEquals(20,alg.fernRegions.size());\n\t\t// should contain all the best ones\n\t\tfor( int i = 0; i < 20; i++ ) {\n\t\t\tassertTrue(alg.fernRegions.contains(alg.fernInfo.get(i).r));\n\t\t}\n\t}", "private void findBest()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_current;//index of a currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tdouble min_error;//smallest error among the oldest genotypes\r\n\t\tVector<Integer> idx_oldest;\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\r\n\t\t//find all oldest genotypes\r\n\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t{\r\n\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t{\r\n\t\t\t\tidx_oldest.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//find the best oldest gentypes with a span above a threshold\r\n\t\t_best_idx = -1;\r\n\t\tif(idx_oldest.size() > 0)\r\n\t\t{\r\n\t\t\t_best_idx = idx_oldest.get(0);\r\n\t\t\tmin_error = _pool_of_bests.get(_best_idx)._error.getAverageError();\r\n\t\t\tfor(i=1; i<idx_oldest.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\tif(min_error > _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t{\r\n\t\t\t\t\t_best_idx = idx_current;\r\n\t\t\t\t\tmin_error = _pool_of_bests.get(_best_idx)._error.getAverageError();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "String avatarImageSelected();", "private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n}", "private static void readOptimals(Instance inst) throws IOException {\n\t\tFile file = new File(\"data/results.txt\");\r\n\t\tScanner s = new Scanner(file);\r\n\t\tboolean found = false;\r\n\t\twhile(s.hasNextLine() && !found) {\r\n\t\t\tboolean isOptimal = false;\r\n\t\t\tString instName = s.next();\r\n\t\t\tint objective = s.nextInt();\r\n\t\t\t//System.out.println(instName +\", \"+objective);\r\n\t\t\tif(s.next().equals(\"Optimal\")) {\r\n\t\t\t\tisOptimal = true;\r\n\t\t\t}\r\n\t\t\tif(inst.getName().equals(instName + \".txt\")) {\r\n\t\t\t\t//System.out.println(\"Nombre:\"+instName+\" Objective:\"+objective+\" Optimal:\"+isOptimal);\r\n\t\t\t\tfound = true;\r\n\t\t\t\tif(isOptimal) {\r\n\t\t\t\t\tinst.setOptimal(objective);\r\n\t\t\t\t\tinst.setOptimalKnown(true);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tinst.setFeasible(objective);\r\n\t\t\t\t\tinst.setOptimalKnown(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\ts.close();\r\n\t}", "public double getBestScore();", "int getImageQualityPref();", "@Override\n\tpublic void run(String arg) {\n\t\tint[] ids = WindowManager.getIDList();\n\t\tif (null == ids) {\n\t\t\tneed2Images();\n\t\t\treturn;\n\t\t}\n\t\tArrayList all = new ArrayList();\n\t\tfor (int i=0; i<ids.length; i++) {\n\t\t\tImagePlus imp = WindowManager.getImage(ids[i]);\n\t\t\tRoi roi = imp.getRoi();\n\t\t\tif (null != roi && roi instanceof PointRoi)\n\t\t\t\tall.add(imp);\n\t\t}\n\t\tif (all.size() < 2) {\n\t\t\tneed2Images();\n\t\t\treturn;\n\t\t}\n\n\t\t// create choice arrays\n\t\tString[] titles = new String[all.size()];\n\t\tint i=0;\n\t\tfor (Iterator it = all.iterator(); it.hasNext(); )\n\t\t\ttitles[i++] = ((ImagePlus)it.next()).getTitle();\n\n\t\tString[] methods = {\"Affine\", \"Similarity\", \"Rigid\"};\n\t\tGenericDialog gd = new GenericDialog(\"Align Images\");\n\t\tString current = WindowManager.getCurrentImage().getTitle();\n\t\tgd.addChoice(\"source image\", titles, current.equals(titles[0]) ? titles[1] : titles[0]);\n\t\tgd.addChoice(\"target image\", titles, current);\n\t\tgd.addChoice(\"method\", methods, methods[2]);\n\t\tgd.addNumericField(\"alpha\", 1.0, 3);\n\t\tgd.addNumericField(\"gridSize\", 0.0, 3);\n\t\tgd.addCheckbox(\"forward\", true);\n\t\tgd.addCheckbox(\"merged result\", true);\n\t\tgd.showDialog();\n\t\tif (gd.wasCanceled())\n\t\t\treturn;\n\n\t\tImagePlus source = (ImagePlus)all.get(gd.getNextChoiceIndex());\n\t\tImagePlus target = (ImagePlus)all.get(gd.getNextChoiceIndex());\n\t\tMethod method = getMethod(gd.getNextChoiceIndex());\n\t\tmethod.alpha = (float)gd.getNextNumber();\n\t\tfloat gridSize = (float)gd.getNextNumber();\n\t\tboolean useForward = gd.getNextBoolean();\n\t\tboolean merge = gd.getNextBoolean();\n\n\n\t\tPointRoi points1 = (PointRoi)source.getRoi();\n\t\tPointRoi points2 = (PointRoi)target.getRoi();\n\n\t\tif (points1.getNCoordinates() != points2.getNCoordinates()) {\n\t\t\tIJ.showMessage(\"Unequal number of points!\");\n\t\t\treturn;\n\t\t}\n\n\t\t// ready\n\t\tImageProcessor ip = process(source, points1, target, points2, method, gridSize, useForward, merge);\n\t\tif (null != ip) new ImagePlus(\"warped\" + (useForward ? \" forward\" : \"\"), ip).show();\n\t}", "private Map.Entry<Activity, Prediction> chooseBestPrediction(Map<Activity, Prediction> predictions) {\n \n Map.Entry<Activity, Prediction> prediction = null;\n int result1, result2, lastIndex;\n double probability1, probability2;\n \n \n for (Map.Entry<Activity, Prediction> entry : predictions.entrySet()) {\n \n if (prediction == null) {\n prediction = entry;\n } else {\n lastIndex = prediction.getValue().getObservations().length - 1;\n \n result1 = prediction.getValue().getPredictions()[lastIndex];\n probability1 = prediction.getValue().getProbability();\n result2 = entry.getValue().getPredictions()[lastIndex];\n probability2 = entry.getValue().getProbability();\n \n /*a result 1 means that an activity has been detected,\n * thus we prefer a result that predicts an activity*/\n if (result2 == 1 && result1 == 0)\n prediction = entry;\n \n /* if both predict an activity, or don't predict anything then\n * we take the probability into consideration */\n if (result1 == result2) {\n if (probability2 > probability1)\n prediction = entry;\n }\n \n }\n \n }\n \n return prediction;\n \n }", "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is selector_not_selected power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "public Direction optimalChoice(int left, int right) {\n\n\t\tint x = ((left + 2) <= right) ? board.getOptionTable()[left + 2][right] : 0; // x gets max value from left+2 to right.\n\t\tint y = ((left + 1) <= (right - 1)) ? board.getOptionTable()[left + 1][right - 1] : 0; // y gets max value from left+1 to right-1.\n\t\tint z = (left <= (right - 2)) ? board.getOptionTable()[left][right - 2] : 0; // z gets max value from left to right-2.\n\t\t\n\t\tint maxLeft = board.getCards()[left] + Math.min(x, y); // gets the max value if player chose the left card.\n\t\tint maxRight = board.getCards()[right] + Math.min(y, z); // gets the max value if player chose the right card.\n\t\t\n\t\tif(maxRight > maxLeft) {\n\t\t\treturn Direction.RIGHT;\n\t\t} else {\n\t\t\treturn Direction.LEFT;\n\t\t}\n\t\t\n\n\t}", "public void runAlgorithm() {\r\n if (srcImage == null) {\r\n MipavUtil.displayError(\"AlgorithmRegularizedIsotropicDiffusion.run() Source Image is null\");\r\n return;\r\n }\r\n\r\n if (srcImage.getNDims() == 2 || do25D) {\r\n timeStep = 0.2f;\r\n }\r\n else {\r\n timeStep = 0.15f;\r\n }\r\n\r\n if (srcImage.isColorImage()) {\r\n if (srcImage.getNDims() == 2) {run2DC(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2DC(srcImage.getExtents()[2]); }\r\n else run3DC();\r\n }\r\n else {\r\n if (srcImage.getNDims() == 2) { run2D(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2D(srcImage.getExtents()[2]); }\r\n else run3D();\r\n }\r\n }", "public void compareImageAction() {\n\t\tif (selectedAnimalModel == null) {\n\t\t\tshowDialog(ERROR_MESSAGE, \"Animal needs to be saved first.\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (selectedAnimalModel.getId() == 0L || isImageChangedFlag) {\n\t\t\tshowDialog(ERROR_MESSAGE, \"Animal needs to be saved first.\");\n\t\t\treturn;\n\t\t}\n\n\t\tAsyncTask asyncTask = new AsyncTask() {\n\t\t\tAnimalModel animal1 = null;\n\t\t\tAnimalModel animal2 = null;\n\t\t\tAnimalModel animal3 = null;\n\n\t\t\t@Override\n\t\t\tprotected void onDone(boolean success) {\n\t\t\t\tif (!success) {\n\t\t\t\t\tshowDialog(ERROR_MESSAGE, \"Cannot compare images.\");\n\t\t\t\t} else {\n\t\t\t\t\tCompareImagesDialog dialog = new CompareImagesDialog(multimediaPanel, selectedAnimalModel, animal1, animal2, animal3);\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected Boolean doInBackground() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tArrayList<AnimalModel> models;\n\n\t\t\t\t\tmodels = DataManager.getInstance().getThreeSimilarImages(selectedAnimalModel);\n\n\t\t\t\t\tif (models.size() > 0) {\n\t\t\t\t\t\tanimal1 = models.get(0);\n\t\t\t\t\t}\n\t\t\t\t\tif (models.size() > 1) {\n\t\t\t\t\t\tanimal2 = models.get(1);\n\t\t\t\t\t}\n\t\t\t\t\tif (models.size() > 2) {\n\t\t\t\t\t\tanimal3 = models.get(2);\n\t\t\t\t\t}\n\n\t\t\t\t} catch (DataManagerException e1) {\n\t\t\t\t\tLogger.createLog(Logger.ERROR_LOG, e1.getMessage());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t\tasyncTask.start();\n\n\t}", "void imageChooser() {\n\n\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }", "private void getSampleImage() {\n\t\t_helpingImgPath = \"Media\\\\\"+_camType.toString()+_downStream.toString()+_camProfile.toString()+\".bmp\";\n//\t\tswitch( _downStream ){\n//\t\tcase DownstreamPage.LEVER_NO_DOWNSTREAM:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.LEVER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_OUTER_CAM:\n//\t\t\t\tbreak;\t\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_CRANK:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_FOUR_JOIN:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_PUSHER_TUGS:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_CRANK:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.SLIDER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_OUTER_CAM:\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_DOUBLE_SLIDE:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_NO_DOWNSTREAM:\n//\t\t\tbreak;\n//\t\t}\n\t\t\n\t}", "private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent returnedIntent) {\r\n super.onActivityResult(requestCode, resultCode, returnedIntent);\r\n try {\r\n // When an Image is picked\r\n if (resultCode == RESULT_OK && null != returnedIntent) {\r\n // Get the Image from data\r\n Uri imageLocation = returnedIntent.getData();\r\n InputStream imageStream = getContentResolver().openInputStream(imageLocation);\r\n Bitmap selectedImage = BitmapFactory.decodeStream(imageStream);\r\n selectedImage = getResizedBitmap(selectedImage,1080/4,1920/4);\r\n currentUserEdit.setImageBitmap(selectedImage);\r\n currentSaveCharacter.setImage(selectedImage);\r\n saveCharacters(context);\r\n }\r\n } catch (Exception e) {\r\n Toast.makeText(this, \"ImageGet ERROR\", Toast.LENGTH_LONG)\r\n .show();\r\n Log.d(\"ImageGet ERROR\", e.toString());\r\n }\r\n\r\n }", "BufferedImage getSelectedImage();", "public static int closest( List<Camera.Size> sizes , int width , int height ) {\n\t\tint best = -1;\n\t\tint bestScore = Integer.MAX_VALUE;\n\n\t\tfor( int i = 0; i < sizes.size(); i++ ) {\n\t\t\tCamera.Size s = sizes.get(i);\n\n\t\t\tint dx = s.width-width;\n\t\t\tint dy = s.height-height;\n\n\t\t\tint score = dx*dx + dy*dy;\n\t\t\tif( score < bestScore ) {\n\t\t\t\tbest = i;\n\t\t\t\tbestScore = score;\n\t\t\t}\n\t\t}\n\n\t\treturn best;\n\t}", "private void selectImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(\n Intent.createChooser(\n intent,\n \"Select Image from here...\"),\n PICK_IMAGE_REQUEST);\n }", "private SocialPractice chooseOnIntentions(\n\t\t\tArrayList<SocialPractice> candidateSocialPractices) {\n\t\tSocialPractice chosenAction = null; //temp\n\t\tHashMap<SocialPractice, Double> needs=new HashMap<SocialPractice, Double>();\n\t\tfor(SocialPractice sp: candidateSocialPractices){\n\t\t\tneeds.put(sp, myValues.get(sp.getPurpose()).getNeed(myContext)); \n\t\t}\n\t\tdouble totalNeed = Helper.sumDouble(needs.values()); //satisfaction can get <0, so need as well, so maybe not getting in while loop\n\t\tdouble randomDeterminer = RandomHelper.nextDoubleFromTo(0, totalNeed);\n\t\t//System.out.println(myContext);\n\t\t//System.out.println(\"Needs:\" + needs);\n\t\t\n\t\tIterator it = needs.entrySet().iterator();\n\t\twhile(randomDeterminer > 0) {\n\t\t\tHashMap.Entry pair = (HashMap.Entry) it.next();\n\t\t\tchosenAction = (SocialPractice) pair.getKey();\n\t\t\trandomDeterminer = randomDeterminer - (double) pair.getValue();\n\t\t}\n\t\treturn chosenAction;\n\t}", "@GET\n\t@Path(\"/{param}\")\n\tpublic Response printMessage(@PathParam(\"param\") String msg) {\n\n String filename = \"D:\\\\1Downloads\\\\Firefox downloads\\\\stock.jpg\";\n Mat img;\n img = Imgcodecs.imread(filename);\n int width = img.width();\n int height = img.height();\n System.out.println(\"w= \" + width + \" h= \" + height);\n \n Analyzer analyzer = new Analyzer(filename);\n analyzer.setFrame(0, 0, width, height);\n \n Individual ind = new Individual(analyzer);\n ind.generateIndividual(width, height);\n double originalScore = analyzer.calcCombinedAestheticScore();\n System.out.println(\"\\n\\nTHE RESULT: \" + analyzer.calcCombinedAestheticScore());\n \n Population myPop = new Population(200, true, width, height, analyzer);\n \n long startTime = System.currentTimeMillis();\n \n int generationCount = 0;\n while (generationCount < 500) {\n generationCount++;\n System.out.println(\"Generation: \" + generationCount + \" Fittest: \" + myPop.getFittest().getAestheticScore());\n //myPop = CropAlgorithm.evolvePopulation(myPop);\n CropAlgorithm cropAlg = new CropAlgorithm(analyzer);\n myPop = cropAlg.evolvePopulation(myPop, width, height);\n System.out.println(\"-------------------------------------------------ACTUAL BEST: \" + myPop.getFittest().getAestheticScore() + \" \" + myPop.getFittest().toString());\n }\n System.out.println(\"Solution found!\");\n System.out.println(\"Generation: \" + generationCount);\n System.out.println(\"Genes:\");\n Individual fittest = myPop.getFittest();\n System.out.println(fittest);\n double score = fittest.getAestheticScore();\n System.out.println(fittest.getAestheticScore());\n \n \n \n int x = (int)fittest.getX();\n int y = (int)fittest.getY();\n int w = (int)fittest.getWidth();\n int h = (int)fittest.getHeight();\n \n Rect roi = new Rect(x, y, w, h);\n Mat cropped = new Mat(img, roi);\n \n Imgcodecs.imwrite(\"D:\\\\1Downloads\\\\Firefox downloads\\\\cropped\\\\torocko.jpg\",cropped);\n \n long estimatedTime = System.currentTimeMillis() - startTime;\n System.out.println(\"IDOOO==== \" + estimatedTime );\n \n \n CropInfo bestCrop = new CropInfo();\n bestCrop.setOriginalScore(originalScore);\n bestCrop.setX(x);\n bestCrop.setY(y);\n bestCrop.setWidth(w);\n bestCrop.setHeight(h);\n bestCrop.setBestScore(fittest.getAestheticScore());\n \n String result = \"Record entered: \"+ bestCrop;\n\n return Response.status(201).entity(result).build();\n\n\n\t}", "public Move chooseMove(TablutBoardState boardState) {\n \n \tList<TablutMove> options = boardState.getAllLegalMoves();\n\n \n bestMove = options.get(((int) MyTools.getSomething())% (options.size()));\n\n int depth = DEPTH;\n int opponent = boardState.getOpponent();\n boolean isMax;\n if(opponent==1){\n \tisMax = true;\n \t//System.out.println(\"I'm max\");\n }\n else{\n \tisMax = false;\n \t//System.out.println(\"I'm min\");\n }\n //bestMove = \n \n int bestvalue = minimax(boardState,isMax, depth,-10000,10000);\n \n \n //int minNumberOfOpponentPieces = boardState.getNumberPlayerPieces(opponent);\n //boolean moveCaptures = false;\n //System.out.println(\"minimax return value: \"+bestvalue);\n \n \n \n \n return bestMove;\n }", "private TargetInformation findPeg(Mat image) {\r\n\t\tTargetInformation ret = new TargetInformation();\r\n\t\tret.targetingPeg = true;\r\n\t\t\r\n\t long[] xsums = sums(image, true);\r\n\t long[] ysums = sums(image, false);\r\n\t \r\n\t List<PeakLoc> ypeaks = findPeaks(ysums);\r\n\t List<PeakLoc> xpeaks = findPeaks(xsums);\r\n\t\t\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//vvvvvvvvvvvvvvvvvvv FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE vvvvvvvvvvvvvvvvvvv//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t \r\n\t // Target is only found if we have exactly 2 x peaks, representing both of the pieces of tape\r\n\t if ((xpeaks.size() == 2) && (ypeaks.size() > 0)){\r\n\t \tret.targetFound = true;\r\n\t \tret.x = (xpeaks.get(1).getStart() + xpeaks.get(0).getStop()) / 2;\r\n\t \tret.gap = xpeaks.get(1).getStart() - xpeaks.get(0).getStop();\r\n\t \tret.width = xpeaks.get(1).getStop() - xpeaks.get(0).getStart();\r\n\t \tret.height = ypeaks.get(0).getStop() - ypeaks.get(0).getStart();\r\n\t \tret.y = ypeaks.get(0).getStart() + ret.height/2;\r\n\t \tret.rightOfTarget = xpeaks.get(0).maxValue < xpeaks.get(1).maxValue;\r\n\t \t\r\n \t\tret.pixelsPerInch = ret.height / pegHeightInches;\r\n \t\t\r\n\t \tret.aimX = ret.x + cameraOffsetInches * ret.pixelsPerInch;\r\n\t \t\r\n\t \tret.correctionAngle = (double)((ret.aimX - image.cols() / 2)) / pixelsPerXDegree;\r\n\t }\r\n\t else\r\n\t {\r\n\t \tret.targetFound = false;\r\n\t }\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//^^^^^^^^^^^^^^^^^^^ FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE ^^^^^^^^^^^^^^^^^^^//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t \r\n\t return ret;\r\n\t}", "public static int getStrategyChoice() {\r\n\t\tint strategy = -1;\r\n\t\tgetStrategyScanner = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Choose the strategy of your opponent:\" +\r\n\t\t\t\t\"\\n\\t(\" + RANDOM + \") - Random player\" +\r\n\t\t\t\t\"\\n\\t(\" + DEFENSIVE + \") - Defensive player\" +\r\n\t\t\t\t\"\\n\\t(\" + SIDES + \") - To-the-Sides player player\");\r\n\t\twhile (strategy != RANDOM & strategy != DEFENSIVE\r\n\t\t\t\t& strategy != SIDES) {\r\n\t\t\tstrategy=getStrategyScanner.nextInt();\r\n\t\t}\r\n\t\treturn strategy;\r\n\t}", "public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n // Tamaño original del mapa de bits (width 3300 x height 1650).\n // Tamaño deseado (reqWidth 330 x reqHeight 200).\n\n if (height > reqHeight || width > reqWidth) {\n\n // Calculate ratios of height and width to requested height and width\n final int heightRatio = Math.round((float) height / (float) reqHeight); // Res: 8\n final int widthRatio = Math.round((float) width / (float) reqWidth); // Res: 10.\n\n // Choose the smallest ratio as inSampleSize value, this will guarantee\n // a final image with both dimensions larger than or equal to the\n // requested height and width.\n inSampleSize = Math.max(heightRatio, widthRatio);\n }\n return inSampleSize;\n }", "public void GetBestScore() {\r\n\t\ttry {\r\n\t\t\t// Leemos el nivel seleccionado y luego lo pasamos a integer\r\n\t\t\tif (Menu.dificultad == \"facil\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\EasyScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}else if (Menu.dificultad == \"normal\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\NormalScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}else if (Menu.dificultad == \"dificil\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\HardScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}else if (Menu.dificultad == \"Invertido\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\InvertidoScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}\r\n\t\t\t// Cerramos el Buffered Reader\r\n\t\t\tbr.close();\r\n\t\t// Capturamos las distintas exceptions\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"File can't open\");\r\n\t\t} \r\n\t}", "public double getBestSolutionEvaluation();", "public BufferedImage open() {\n\t\tJFileChooser choose = new JFileChooser(); //Removed path from the chooser!\n\n\t\tif (choose.showOpenDialog(null) != JFileChooser.APPROVE_OPTION)\n\t\t\treturn null;\n\t\tString file = choose.getSelectedFile().getAbsolutePath();\n\t\ttry {\n\t\t\tthis.x = 0;\n\t\t\tthis.y = 0;\n\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\tString iden = \"\";\n\t\t\tiden += ois.readChar();\n\t\t\tiden += ois.readChar();\n\t\t\tiden += ois.readChar();\n\t\t\t\n\t\t\tif (iden.compareTo(\"PPL\") != 0)\treturn null;\n\t\t\tbyte by = ois.readByte();\n\t\t\tSystem.out.println(by);\n\t\t\t\n\t\t\tswitch (by) {\n\t\t\t\tcase 0:\n\t\t\t\t\tthis.image = loadRGB(ois);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tthis.image = loadCMY(ois);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tthis.image = loadGS(ois);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tthis.image = loadBW(ois);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tthis.image = loadLT(ois);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tois.close();\n\t\t\t//int b = ois.readByte(); //lee 8 bits, lee -16, y no 240\n\t\t\t//si el bit mas significativo del byte antes de introducirse fue 1, el numero leido se interpreta como negativo\n\t\t\t//if(b < 0) b += 256; //para leer bytes sin signo\n\t\t\t//int i = ois.readInt(); //lee 32 bits, lee 3500\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn image;\n\t}", "@Test\n public void test1() {\n System.out.println(\"A* Test i1\"); \n \n Solver solver = new Solver(new TileWorld(\"i1.png\"), SearchStrategy.A_STAR);\n AlgorithmResults expResult = new AlgorithmResults(580, 967);\n AlgorithmResults result = solver.solve();\n \n print(result, expResult);\n \n assertEquals(\"BestPathCost does not match!\", expResult.getBestPathCost(), result.getBestPathCost());\n }", "public static Size getOptimalVideoSnapshotPictureSize(List<Size> sizes,\n\t\t\tdouble targetRatio) {\n\t\t// Use a very small tolerance because we want an exact match.\n\t\tfinal double ASPECT_TOLERANCE = 0.001;\n\t\tif (sizes == null)\n\t\t\treturn null;\n\n\t\tSize optimalSize = null;\n\n\t\t// Try to find a size matches aspect ratio and has the largest width\n\t\tfor (Size size : sizes) {\n\t\t\tdouble ratio = (double) size.width / size.height;\n\t\t\tif (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE)\n\t\t\t\tcontinue;\n\t\t\tif (optimalSize == null || size.width > optimalSize.width) {\n\t\t\t\toptimalSize = size;\n\t\t\t}\n\t\t}\n\n\t\t// Cannot find one that matches the aspect ratio. This should not\n\t\t// happen.\n\t\t// Ignore the requirement.\n\t\tif (optimalSize == null) {\n\t\t\tLog.w(TAG, \"No picture size match the aspect ratio\");\n\t\t\tfor (Size size : sizes) {\n\t\t\t\tif (optimalSize == null || size.width > optimalSize.width) {\n\t\t\t\t\toptimalSize = size;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn optimalSize;\n\t}", "@Override\n public AlgorithmResult chooseBestMove(MinMaxEnum currentMinMax, List<AlgorithmResult> algorithmResults) {\n AlgorithmResult bestResult;\n if (currentMinMax == MinMaxEnum.MAX)\n bestResult = Collections.max(algorithmResults, Comparator.comparing(AlgorithmResult::getScore));\n else bestResult = Collections.min(algorithmResults, Comparator.comparing(AlgorithmResult::getScore));\n\n return bestResult;\n }", "private Value chooseSuggestion(PermissionOutcome outcome) {\n Value suggestedValue;\n if (outcome.highestAcceptedValue != null) {\n suggestedValue = outcome.highestAcceptedValue;\n } else {\n try {\n suggestedValue = queue.peek();\n } catch (NoSuchElementException e) {\n suggestedValue = new Value();\n }\n }\n return suggestedValue;\n }" ]
[ "0.7711088", "0.6253629", "0.57097596", "0.56796485", "0.5646763", "0.5593397", "0.55431676", "0.55290204", "0.55254114", "0.54745585", "0.53930664", "0.5331091", "0.5261616", "0.5252735", "0.52444685", "0.5234217", "0.52145773", "0.52114344", "0.52001417", "0.5193003", "0.51821893", "0.5158755", "0.51065487", "0.51007336", "0.5072675", "0.5045399", "0.50448954", "0.5044167", "0.5033202", "0.5025513", "0.5014853", "0.5006186", "0.4998104", "0.49881276", "0.4962208", "0.49616605", "0.49569836", "0.49502274", "0.49394402", "0.48971483", "0.4893369", "0.48919883", "0.48717245", "0.48656926", "0.4844554", "0.4843284", "0.48113748", "0.47949162", "0.47892502", "0.47854263", "0.4784692", "0.47818065", "0.47792217", "0.4772786", "0.47715148", "0.47588247", "0.47561723", "0.47492102", "0.47388148", "0.47382227", "0.47363234", "0.47289863", "0.47269395", "0.47196725", "0.4716711", "0.47145036", "0.4709268", "0.47089496", "0.47083396", "0.47022963", "0.46995953", "0.46933165", "0.4689735", "0.4689522", "0.468224", "0.46811005", "0.46795207", "0.4669689", "0.46585816", "0.46551573", "0.46503016", "0.4646634", "0.46436635", "0.46418586", "0.46396592", "0.46353534", "0.46311006", "0.46301398", "0.46285376", "0.46280146", "0.46241578", "0.462291", "0.4622788", "0.46227682", "0.4617978", "0.46122044", "0.46093395", "0.46069998", "0.4606229", "0.46019325" ]
0.8036052
0
Return the best guess for the given image from the given options
public static String getBestGuess(BufferedImage image, Set<String> options) { INDArray output = getOutput(image); Pair<String, Float> setBest = null; Pair<String, Float> globalBest = null; for (int i = 0; i < output.length(); i++) { if (globalBest == null || output.getFloat(i) > globalBest.getValue()) { globalBest = new Pair<>(labels[i], output.getFloat(i)); } if (options.contains(labels[i])) { if (output.getFloat(i) > threshold) { if (setBest == null || output.getFloat(i) > setBest.getValue()) { setBest = new Pair<>(labels[i], output.getFloat(i)); } } } } return (setBest == null ? globalBest.getKey() : setBest.getKey()).replace("_", " "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getBestGuess(BufferedImage image, String... options) {\n return getBestGuess(image, new HashSet<>(Arrays.asList(options)));\n }", "public static String getBestGuess(BufferedImage image) {\n INDArray output = getOutput(image);\n\n Pair<String, Float> bestGuess = null;\n\n for (int i = 0; i < output.length(); i++) {\n if (bestGuess == null || output.getFloat(i) > bestGuess.getValue()) {\n bestGuess = new Pair<>(labels[i], output.getFloat(i));\n }\n }\n\n return bestGuess == null ? \"bamboozled\" : bestGuess.getKey();\n }", "public static Size chooseOptimalSize(Size[] choices,\n int width,\n int height) {\n\n List<Size> bigEnough = new ArrayList<Size>();\n for (Size option : choices) {\n if (option.getWidth() >= width && option.getHeight() >= height) {\n bigEnough.add(option);\n }\n }\n\n // Pick the smallest of those, assuming we found any\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else {\n Log.e(TAG, \"Couldn't find any suitable preview size\");\n return choices[0];\n }\n }", "private static Size chooseOptimalSize(Size[] choices, int width, int height, Size aspectRatio) {\n ArrayList<Size> bigEnough = new ArrayList<>();\n int w = aspectRatio.getWidth();\n int h = aspectRatio.getHeight();\n for (Size option : choices) {\n if (option.getHeight() == option.getWidth() * h / w &&\n option.getWidth() >= width && option.getHeight() >= height) {\n bigEnough.add(option);\n }\n }\n\n // Pick the smallest of those, assuming we found any\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else {\n Log.e(TAG, \"Couldn't find any suitable preview size\");\n return choices[0];\n }\n }", "private static Size chooseOptimalSize(Size[] choices, int width, int height, Size aspectRatio) {\n List<Size> bigEnough = new ArrayList<Size>();\n int w = aspectRatio.getWidth();\n int h = aspectRatio.getHeight();\n for (Size option : choices) {\n if (option.getHeight() == option.getWidth() * h / w &&\n option.getWidth() >= width && option.getHeight() >= height) {\n bigEnough.add(option);\n }\n }\n\n // Pick the smallest of those, assuming we found any\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else {\n Log.e(TAG, \"Couldn't find any suitable preview size\");\n return choices[0];\n }\n }", "private static Camera.Size chooseOptimalSize(List<Camera.Size> choices, int width, int height, Camera.Size aspectRatio) {\n List<Camera.Size> bigEnough = new ArrayList<>();\n int w = aspectRatio.width;\n int h = aspectRatio.height;\n for (Camera.Size option : choices) {\n if (option.height == width * h / w &&\n option.width >= width && option.height >= height) {\n bigEnough.add(option);\n }\n }\n\n // Pick the smallest of those, assuming we found any\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else {\n LOG(CameraFragment.class, \"Couldn't find any suitable preview size\");\n return choices.get(0);\n }\n }", "Object getBest();", "private static Size chooseOptimalSize(Size[] choices, int textureViewWidth, int\n textureViewHeight, int maxWidth, int maxHeight, Size aspectRatio) {\n List<Size> bigEnough = new ArrayList<>();\n // Collect the supported resolutions that are smaller than the preview Surface\n List<Size> notBigEnough = new ArrayList<>();\n int w = aspectRatio.getWidth();\n int h = aspectRatio.getHeight();\n for (Size option : choices) {\n if (option.getWidth() <= maxWidth && option.getHeight() <= maxHeight && option\n .getHeight() == option.getWidth() * h / w) {\n if (option.getWidth() >= textureViewWidth && option.getHeight() >=\n textureViewHeight) {\n bigEnough.add(option);\n } else {\n notBigEnough.add(option);\n }\n }\n }\n\n // Pick the smallest of those big enough. If there is no one big enough, pick the\n // largest of those not big enough.\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else if (notBigEnough.size() > 0) {\n return Collections.max(notBigEnough, new CompareSizesByArea());\n } else {\n Log.e(\"CameraFragment\", \"Couldn't find any suitable preview size\");\n return choices[0];\n }\n }", "private static Size chooseOptimalSize(Size[] choices, int textureViewWidth,\n int textureViewHeight, int maxWidth, int maxHeight, Size aspectRatio) {\n List<Size> bigEnough = new ArrayList<>();\n // Collect the supported resolutions that are smaller than the preview Surface\n List<Size> notBigEnough = new ArrayList<>();\n int w = aspectRatio.getWidth();\n int h = aspectRatio.getHeight();\n for (Size option : choices) {\n if (option.getWidth() <= maxWidth && option.getHeight() <= maxHeight &&\n option.getHeight() == option.getWidth() * h / w) {\n if (option.getWidth() >= textureViewWidth &&\n option.getHeight() >= textureViewHeight) {\n bigEnough.add(option);\n } else {\n notBigEnough.add(option);\n }\n }\n }\n\n // Pick the smallest of those big enough. If there is no one big enough, pick the\n // largest of those not big enough.\n if (bigEnough.size() > 0) {\n return Collections.min(bigEnough, new CompareSizesByArea());\n } else if (notBigEnough.size() > 0) {\n return Collections.max(notBigEnough, new CompareSizesByArea());\n } else {\n Log.e(\"CameraRenderView\", \"Couldn't find any suitable preview size\");\n return choices[0];\n }\n }", "public VariantInfo getCanvasBestFitVariant(FitMode mode, Integer width, Integer height) {\n VariantInfo bestVariant = null;\n // OPTIMIZATION: check if we have an exact match (this could happen frequently in some cases)\n if (width != null && height != null) {\n bestVariant = getExactDimVariantMap().get(VariantInfo.getDimString(width, height));\n if (bestVariant != null) return bestVariant;\n }\n\n if (mode == null || mode == FitMode.MINIMUM) {\n // here we get the smallest variant that is larger than the canvas dimensions (so that we\n // make the browser resize it DOWN instead of up, making less detail loss)\n // NOTE: if there is no best, then we'll return null and just use the original.\n if (height == null) {\n // only width\n for(VariantInfo variant : getVariantList()) {\n if (variant.getWidth() >= width) {\n if (bestVariant == null) bestVariant = variant;\n else {\n int widthDiff = variant.getWidth() - bestVariant.getWidth();\n if (widthDiff < 0) bestVariant = variant;\n }\n }\n }\n } else if (width == null) {\n // only height\n for(VariantInfo variant : getVariantList()) {\n if (variant.getHeight() >= height) {\n if (bestVariant == null) bestVariant = variant;\n else {\n int heightDiff = variant.getHeight() - bestVariant.getHeight();\n if (heightDiff < 0) bestVariant = variant;\n }\n }\n }\n } else {\n // have both\n for(VariantInfo variant : getVariantList()) {\n if (variant.getWidth() >= width && variant.getHeight() >= height) {\n if (bestVariant == null) bestVariant = variant;\n else {\n int pixelNumDiff = variant.getNumPixels() - bestVariant.getNumPixels();\n if (pixelNumDiff < 0) bestVariant = variant;\n else if (pixelNumDiff == 0 && variant.getWidth() < bestVariant.getWidth()) bestVariant = variant;\n }\n }\n }\n }\n } else if (mode == FitMode.MAXIMUM) {\n // here we get the largest variant that is smaller that the canvas dimensions\n if (height == null) {\n // only width specified, so try to get closest to width\n for(VariantInfo variant : getVariantList()) {\n if (variant.getWidth() <= width) {\n if (bestVariant == null) bestVariant = variant;\n else {\n int widthDiff = variant.getWidth() - bestVariant.getWidth();\n if (widthDiff > 0) bestVariant = variant;\n }\n }\n }\n } else if (width == null) {\n // only height specified, so try to get closest to height\n for(VariantInfo variant : getVariantList()) {\n if (variant.getHeight() <= height) {\n if (bestVariant == null) bestVariant = variant;\n else {\n int heightDiff = variant.getHeight() - bestVariant.getHeight();\n if (heightDiff > 0) bestVariant = variant;\n }\n }\n }\n } else {\n // have both - return one with most pixels, but prefer width in rare case of same pixels\n for(VariantInfo variant : getVariantList()) {\n if (variant.getWidth() <= width && variant.getHeight() <= height) {\n if (bestVariant == null) bestVariant = variant;\n else {\n int pixelNumDiff = variant.getNumPixels() - bestVariant.getNumPixels();\n if (pixelNumDiff > 0) bestVariant = variant;\n else if (pixelNumDiff == 0 && variant.getWidth() > bestVariant.getWidth()) bestVariant = variant;\n }\n }\n }\n }\n } else {\n throw new UnsupportedOperationException(\"best-variant selection fit mode '\" + mode.getStrName() + \"' not yet supported\");\n }\n return bestVariant;\n }", "private TargetInformation findHighGoal(Mat image) {\r\n\t\tTargetInformation ret = new TargetInformation();\r\n\t\tret.targetingPeg = false;\r\n\t\t\r\n long[] xsums = sums(image, true);\r\n long[] ysums = sums(image, false);\r\n \r\n\t List<PeakLoc> xpeaks = findPeaks(xsums, 10);\r\n\t List<PeakLoc> ypeaks = findPeaks(ysums, 10);\r\n\r\n\t if (ypeaks.size() == 2 && xpeaks.size() > 0) {\r\n\t \tret.targetFound = true;\r\n\t \tret.x = (xpeaks.get(0).getStop() - xpeaks.get(0).getStart()) / 2;\r\n\t \tret.gap = ypeaks.get(1).getStart() - ypeaks.get(0).getStop();\r\n\t \tret.width = xpeaks.get(0).getStop() - xpeaks.get(0).getStart();\r\n\t \tret.height = ypeaks.get(1).getStop() - ypeaks.get(0).getStart();\r\n\t \tret.y = (ypeaks.get(0).getStop() + ypeaks.get(1).getStart())/2;\r\n\t \t\r\n\t \tdouble pixelsPerInch = ret.gap / highGoalGapInches;\r\n\t \tif (xpeaks.get(0).isTruePeak() && xpeaks.get(1).isTruePeak())\r\n\t \t{\r\n\t \t\tpixelsPerInch = (pixelsPerInch + ret.width / highGoalWidthInches) / 2;\r\n\t \t}\r\n\t \tif (ypeaks.get(0).isTruePeak())\r\n\t \t{\r\n\t \t\tif (xpeaks.get(0).isTruePeak() && xpeaks.get(1).isTruePeak())\r\n\t \t\t{\r\n\t \t\t\tpixelsPerInch = (pixelsPerInch * 2 + ret.width / highGoalHeightInches) / 3;\r\n\t \t\t}\r\n\t \t\telse\r\n\t \t\t{\r\n\t \t\t\tpixelsPerInch = (pixelsPerInch + ret.width / highGoalHeightInches) / 2;\r\n\t \t\t}\r\n\t \t} \t\r\n\t \t\r\n\t \tret.aimX = ret.x + (cameraOffsetInches - shooterOffsetInches) * pixelsPerInch;\r\n\t \t\r\n\t \tret.correctionAngle = (double)((ret.aimX - image.cols() / 2)) / pixelsPerXDegree;\r\n\t }\r\n\t else\r\n\t {\r\n\t \tret.targetFound = false;\r\n\t }\r\n\t \r\n\t return ret;\r\n\t}", "public SolutionType getBestSolution();", "static public AppImage browseForImage() {\n // If there is no image ask the user to choose image from file:\n JFileChooser file_chooser = new JFileChooser();\n file_chooser.setAcceptAllFileFilterUsed(false);\n file_chooser.addChoosableFileFilter(new FileFilter() {\n public boolean accept(File file) {\n if (file.isDirectory()) return true;\n String extension = FileUtils.getFileExtension(file);\n return extension.equals(\"png\");\n }\n\n public String getDescription() {\n return \"Portable Network Graphics (PNG)\";\n }\n });\n int ret_value = file_chooser.showOpenDialog(App.instance);\n AppImage app_image = null;\n if (ret_value == JFileChooser.APPROVE_OPTION) {\n // Read the selected file and do scaling on it:\n File file = file_chooser.getSelectedFile();\n String path = file.getAbsolutePath();\n\n // Create the image and add it to cache:\n app_image = Resources.loadAppImage(path);\n addImage(app_image);\n writeRepository();\n }\n\n return app_image;\n }", "public HerbierPic getBestPic() {\n\t\tHerbierPic result = null;\n\t\t\n\t\tif (!pics.isEmpty()) {\n\t\t\tVector<HerbierPic> vPics = new Vector<>();\n\t\t\tvPics.addAll(pics);\n\t\t\tCollections.sort(vPics, new Comparator<HerbierPic>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(HerbierPic pic1, HerbierPic pic2) {\n\t\t\t\t\treturn pic2.getRating() - pic1.getRating();\n\t\t\t\t}\n\t\t\t});\n\t\t\tresult = vPics.firstElement();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public ImageIcon FretImagePrompt() {\r\n\t\t\tImageIcon promptImage = null;\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tImageIcon EfImage = new ImageIcon(\"E1f.jpg\");\r\n\t\t\tImageIcon EfsImage = new ImageIcon(\"E2f#.jpg\");\r\n\t\t\tImageIcon EgImage = new ImageIcon(\"E3g.jpg\");\r\n\t\t\tImageIcon EgsImage = new ImageIcon(\"E4g#.jpg\");\r\n\t\t\tImageIcon EaImage = new ImageIcon(\"E5a.jpg\");\r\n\t\t\tImageIcon EasImage = new ImageIcon(\"E6a#.jpg\");\r\n\t\t\tImageIcon EbImage = new ImageIcon(\"E7b.jpg\");\r\n\t\t\tImageIcon EcImage = new ImageIcon(\"E8c.jpg\");\r\n\t\t\tImageIcon EcsImage = new ImageIcon(\"E9c#.jpg\");\r\n\t\t\tImageIcon EdImage = new ImageIcon(\"E10d.jpg\");\r\n\t\t\tImageIcon EdsImage = new ImageIcon(\"E11d#.jpg\");\r\n\t\t\tImageIcon EeImage = new ImageIcon(\"E12e.jpg\");\r\n\t\t\t\r\n\t\t\tImageIcon AasImage = new ImageIcon(\"A1a#.jpg\");\r\n\t\t\tImageIcon AbImage = new ImageIcon(\"A2b.jpg\");\r\n\t\t\tImageIcon AcImage = new ImageIcon(\"A3c.jpg\");\r\n\t\t\tImageIcon AcsImage = new ImageIcon(\"A4c#.jpg\");\r\n\t\t\tImageIcon AdImage = new ImageIcon(\"A5d.jpg\");\r\n\t\t\tImageIcon AdsImage = new ImageIcon(\"A6d#.jpg\");\r\n\t\t\tImageIcon AeImage = new ImageIcon(\"A7e.jpg\");\r\n\t\t\tImageIcon AfImage = new ImageIcon(\"A8f.jpg\");\r\n\t\t\tImageIcon AfsImage = new ImageIcon(\"A9f#.jpg\");\r\n\t\t\tImageIcon AgImage = new ImageIcon(\"A10g.jpg\");\r\n\t\t\tImageIcon AgsImage = new ImageIcon(\"A11g#.jpg\");\r\n\t\t\tImageIcon AaImage = new ImageIcon(\"A12a#.jpg\");\r\n\t\t\t\r\n\t\t\tImageIcon DdsImage = new ImageIcon(\"D1d#.jpg\");\r\n\t\t\tImageIcon DeImage = new ImageIcon(\"D2e.jpg\");\r\n\t\t\tImageIcon DfImage = new ImageIcon(\"D3f.jpg\");\r\n\t\t\tImageIcon DfsImage = new ImageIcon(\"D4f#.jpg\");\r\n\t\t\tImageIcon DgImage = new ImageIcon(\"D5g.jpg\");\r\n\t\t\tImageIcon DgsImage = new ImageIcon(\"D6g#.jpg\");\r\n\t\t\tImageIcon DaImage = new ImageIcon(\"D7a.jpg\");\r\n\t\t\tImageIcon DasImage = new ImageIcon(\"D8a#.jpg\");\r\n\t\t\tImageIcon DbImage = new ImageIcon(\"D9b.jpg\");\r\n\t\t\tImageIcon DcImage = new ImageIcon(\"D10c.jpg\");\r\n\t\t\tImageIcon DcsImage = new ImageIcon(\"D11c#.jpg\");\r\n\t\t\tImageIcon DdImage = new ImageIcon(\"D12d.jpg\");\r\n\t\t\t\r\n\t\t\tImageIcon GgsImage = new ImageIcon(\"G1g#.jpg\");\r\n\t\t\tImageIcon GaImage = new ImageIcon(\"G2a.jpg\");\r\n\t\t\tImageIcon GasImage = new ImageIcon(\"G3a#.jpg\");\r\n\t\t\tImageIcon GbImage = new ImageIcon(\"G4b.jpg\");\r\n\t\t\tImageIcon GcImage = new ImageIcon(\"G5c.jpg\");\r\n\t\t\tImageIcon GcsImage = new ImageIcon(\"G6c#.jpg\");\r\n\t\t\tImageIcon GdImage = new ImageIcon(\"G7d.jpg\");\r\n\t\t\tImageIcon GdsImage = new ImageIcon(\"G8d#.jpg\");\r\n\t\t\tImageIcon GeImage = new ImageIcon(\"G9e.jpg\");\r\n\t\t\tImageIcon GfImage = new ImageIcon(\"G10f.jpg\");\r\n\t\t\tImageIcon GfsImage = new ImageIcon(\"G11f#.jpg\");\r\n\t\t\tImageIcon GgImage = new ImageIcon(\"G12g.jpg\");\r\n\t\t\t\r\n\t\t\tImageIcon BcImage = new ImageIcon(\"B1c.jpg\");\r\n\t\t\tImageIcon BcsImage = new ImageIcon(\"B2c#.jpg\");\r\n\t\t\tImageIcon BdImage = new ImageIcon(\"B3d.jpg\");\r\n\t\t\tImageIcon BdsImage = new ImageIcon(\"B4d#.jpg\");\r\n\t\t\tImageIcon BeImage = new ImageIcon(\"B5e.jpg\");\r\n\t\t\tImageIcon BfImage = new ImageIcon(\"B6f.jpg\");\r\n\t\t\tImageIcon BfsImage = new ImageIcon(\"B7f#.jpg\");\r\n\t\t\tImageIcon BgImage = new ImageIcon(\"B8g.jpg\");\r\n\t\t\tImageIcon BgsImage = new ImageIcon(\"B9g#.jpg\");\r\n\t\t\tImageIcon BaImage = new ImageIcon(\"B10a.jpg\");\r\n\t\t\tImageIcon BasImage = new ImageIcon(\"B11a#.jpg\");\r\n\t\t\tImageIcon BbImage = new ImageIcon(\"B12b.jpg\");\r\n\t\t\t\r\n\t\t\t//I is used to mean High E (as in High E string)\r\n\t\t\tImageIcon IfImage = new ImageIcon(\"HighE1f.jpg\");\r\n\t\t\tImageIcon IfsImage = new ImageIcon(\"HighE2f#.jpg\");\r\n\t\t\tImageIcon IgImage = new ImageIcon(\"HighE3g.jpg\");\r\n\t\t\tImageIcon IgsImage = new ImageIcon(\"HighE4g#.jpg\");\r\n\t\t\tImageIcon IaImage = new ImageIcon(\"HighE5a.jpg\");\r\n\t\t\tImageIcon IasImage = new ImageIcon(\"HighE6a#.jpg\");\r\n\t\t\tImageIcon IbImage = new ImageIcon(\"HighE7b.jpg\");\r\n\t\t\tImageIcon IcImage = new ImageIcon(\"HighE8c.jpg\");\r\n\t\t\tImageIcon IcsImage = new ImageIcon(\"HighE9c#.jpg\");\r\n\t\t\tImageIcon IdImage = new ImageIcon(\"HighE10d.jpg\");\r\n\t\t\tImageIcon IdsImage = new ImageIcon(\"HighE11d#.jpg\");\r\n\t\t\tImageIcon IeImage = new ImageIcon(\"HighE12e.jpg\");\r\n\t\t\t\r\n\t\t\tImageIcon[] note = {EfImage, EfsImage, EgImage, EgsImage, EaImage, EasImage, EbImage, EcImage, EcsImage, EdImage, EdsImage, EeImage,\r\n\t\t\t\t\t\t\t AasImage, AbImage, AcImage, AcsImage, AdImage, AdsImage, AeImage, AfImage, AfsImage, AgImage, AgsImage, AaImage,\r\n\t\t\t\t\t\t\t DdsImage, DeImage, DfImage, DfsImage, DgImage, DgsImage, DaImage, DasImage, DbImage, DcImage, DcsImage, DdImage,\r\n\t\t\t\t\t\t\t GgsImage, GaImage, GasImage, GbImage, GcImage, GcsImage, GdImage, GdsImage, GeImage, GfImage, GfsImage, GgImage,\r\n\t\t\t\t\t\t\t BcImage, BcsImage, BdImage, BdsImage, BeImage, BfImage, BfsImage, BgImage, BgsImage, BaImage, BasImage, BbImage,\r\n\t\t\t\t\t\t\t IfImage, IfsImage, IgImage, IgsImage, IaImage, IasImage, IbImage, IcImage, IcsImage, IdImage, IdsImage, IeImage};\r\n\t\t\t\r\n\t\t\tint noteIndex = rand.nextInt(note.length);\r\n\t\t\tpromptImage = note[noteIndex];\r\n\t\t\t\r\n\t\t\treturn promptImage;\r\n\t\t\t\r\n\t\t}", "public int displayRandomImage() {\n\n int randomImageIndex;\n\n do\n { // making sure that the same images aren't repeated & images of the same car makes aren't shown together\n\n randomCarMake = allCarMakes[getRandomBreed()]; // get a random breed\n randomImageIndex = getRandomImage(); // get a random image of a particular breed\n\n randomImageOfChosenCarMake = displayRelevantImage(randomCarMake, randomImageIndex);\n\n } while (displayingCarMakes.contains(randomCarMake) || allDisplayedImages.contains(randomImageOfChosenCarMake));\n\n allDisplayedImages.add(randomImageOfChosenCarMake); // to make sure that the image isn't repeated\n displayingCarMakes.add(randomCarMake); // to make sure that images of the same breed aren't shown at once\n displayingImageIndexes.add(randomImageIndex); // to recall indexes when the device is rotated\n\n // return chosen random image\n return getResources().getIdentifier(randomImageOfChosenCarMake, \"drawable\", \"com.example.car_match_game_app\");\n }", "private int findBestFit(Color c, int[][] tileArray, int x, int y) {\n int radiusTiles = 10; // The number of radius tiles... this WILL be user-configurable.\n int closestSoFar = 0; // Index of the tile that best matches the color so far.\n int redDiff, greenDiff, blueDiff, totalDiff = 0;\n totalDiff = (256*3); // Initialize the total difference to the largest reasonable number.\n if (c==null) { // assume that the color is black...\n c = new Color(0,0,0);\n }\n for (int count = 0; count < tileLibrary.getSize(); count++) { // Cycle through all of the library tiles.\n if (tileLibrary.get(count).getColor() != null) {\n\n/********* UNCOMMENT THE FOLLOWING TO USE THE NO-REP ALGORITHM ***********/\n /* // This is the no-rep algorithm.\n redDiff = Math.abs(c.getRed() - images.get(count).getColor().getRed());\n blueDiff = Math.abs(c.getBlue() - images.get(count).getColor().getBlue());\n greenDiff = Math.abs(c.getGreen() - images.get(count).getColor().getGreen());\n if (((redDiff + blueDiff + greenDiff) < totalDiff) && (used[count] == false)) {\n totalDiff = redDiff + blueDiff + greenDiff;\n closestSoFar = count;\n }\n */\n/**************************************************************************/\n\n/********** COMMENT OUT TO USE NO-REP ALGORITHM INSTEAD *******************/\n // Is this image in our no-dice radius?\n boolean inRadius = false;\n for (int newX = (x - radiusTiles); newX < (x+radiusTiles); newX++) { // Cycle through the width of the box...\n for (int newY = (y - radiusTiles); newY < (y+radiusTiles); newY++) { // Cycle through the height of the box...\n // If we are still within the bounds of the image....\n if ((newX >= 0) && (newY >= 00) && (newX < hTiles) && (newY < vTiles)) { // && !((newX >= x) && (newY >= y))) {\n try {\n if (tileArray[newX][newY] == count) { // If that tile is already in the box...\n inRadius = true;\n }\n } catch (Exception e) {System.out.println(e);}\n }\n }\n }\n if (inRadius == false) { // If this tile isn't in the box, find the difference in color.\n redDiff = Math.abs(c.getRed() - tileLibrary.get(count).getColor().getRed());\n blueDiff = Math.abs(c.getBlue() - tileLibrary.get(count).getColor().getBlue());\n greenDiff = Math.abs(c.getGreen() - tileLibrary.get(count).getColor().getGreen());\n if (((redDiff + blueDiff + greenDiff) < totalDiff)) { // if this is closer than the previous closest...\n totalDiff = redDiff + blueDiff + greenDiff;\n closestSoFar = count; // Keep track of this tile.\n }\n }\n }\n }\n return closestSoFar; // return the tile we chose.\n }", "@SuppressWarnings({ \"unchecked\", \"null\" })\n public List<String> calcSimilarity(String imgPath) {\n\n FileInputStream imageFile;\n double minDistance = Double.MAX_VALUE;\n\n // 返回查询结果\n List<String> matchUrls = new ArrayList<String>();\n\n\n try {\n\n imageFile = new FileInputStream(imgPath);\n BufferedImage bufferImage;\n\n bufferImage = ImageIO.read(imageFile);\n LTxXORP.setRotaIvaPats();//设定旋转模式值\n\n //得到图片的纹理一维数组特征向量(各颜色分量频率(统计量))\n double[] lbpSourceFecture = LTxXORP.getLBPFeature(imgPath);\n\n // 提取数据库数据\n List<Object> list = DBHelper.fetchALLCloth();\n\n // long startTime = System.currentTimeMillis();\n\n // 把每个条数据的路径和最短距离特征提取出来并存储在lbpResultMap的键值对中。\n Map<String, Double> lbpResultMap = new HashMap<String, Double>();\n\n for (int i = 0; i < list.size(); i++) {\n\n Map<String, Object> map = (Map<String, Object>) list.get(i);\n\n Object candidatePath = map.get(\"path\");\n Object candidateLBP = map.get(\"lbpFeature\");\n\n // 从快速搜索中选取TOP N结果,继续进行纹理特征匹配\n //获取当前由颜色匹配相似度排序的结果并提取其LBP纹理特征\n\n double[] lbpTargetFeature = MatchUtil.jsonToArr((String) candidateLBP);\n double lbpDistance = textureStrategy.similarity(lbpTargetFeature, lbpSourceFecture);\n lbpResultMap.put((String) candidatePath, lbpDistance);\n\n // 判断衡量标准选取距离还是相似度\n if (lbpDistance < minDistance)\n minDistance = lbpDistance;\n\n }\n\n Map<String, Double> tempResultMap;\n\n System.out.println(\"Min Distance : \" + (float) minDistance);\n\n\n\n System.out.println(\"============== finish Texture =================\");\n\n Map<String, Double> finalResult = MatchUtil.sortByValueAsc(lbpResultMap);\n\n int counter = 0;\n for (Map.Entry<String, Double> map : finalResult.entrySet()) {\n if (counter >= Config.finalResultNumber)\n break;\n //matchUrls截取只存储finalResultNumber数量的查询结果\n matchUrls.add(map.getKey());\n counter ++;\n double TSimilarity=Math.pow(Math.E,-map.getValue());\n System.out.println(TSimilarity + \" 图片路径 \" + map.getKey());\n\n }\n\n System.out.println();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return matchUrls;\n }", "void imageChooser() {\n\n // create an instance of the\n // intent of the type image\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n // pass the constant to compare it\n // with the returned requestCode\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n switch (requestCode) {\n case REQUEST_SELECT_IMAGE_1:\n if (resultCode == RESULT_OK) {\n // If image is selected successfully, set the image URI and bitmap.\n mImageUri1 = null;\n mBitmap1 = null;\n mImageUri1 = data.getData();\n mBitmap1 = ImageHelper.loadSizeLimitedBitmapFromUri(\n mImageUri1, getContentResolver());\n if (mBitmap1 != null) {\n // Show the image on screen.\n ImageView imageView = (ImageView) findViewById(R.id.image_0);\n imageView.setImageBitmap(mBitmap1);\n\n }\n // Clear the information panel.\n setInfo(\"\");\n\n // Enable button \"show baby\" as the image to detect is not selected.\n setShowButtonsEnabledStatus(true);\n }\n break;\n case REQUEST_SELECT_IMAGE_2:\n if (resultCode == RESULT_OK) {\n // If image is selected successfully, set the image URI and bitmap.\n mImageUri2 = null;\n mBitmap2 = null;\n mImageUri2 = data.getData();\n mBitmap2 = ImageHelper.loadSizeLimitedBitmapFromUri(\n mImageUri2, getContentResolver());\n if (mBitmap2 != null) {\n // Show the image on screen.\n ImageView imageView = (ImageView) findViewById(R.id.image_1);\n imageView.setImageBitmap(mBitmap2);\n\n }\n // Clear the information panel.\n setInfo(\"\");\n\n // Enable button \"show baby\" as the image to detect is not selected.\n setShowButtonsEnabledStatus(true);\n }\n break;\n default:\n break;\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n // choose a image\n if (requestCode == RequestCode.CHOOSE_IMAGE) {\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Uri dataUri = data.getData();\n if (dataUri != null) {\n // get a random name\n File imgFile = SpaceUtils.newUsableFile();\n mSelectPath = imgFile.getPath();\n Log.v(\"path\",mSelectPath);\n // the image intent just return a simple image\n // the Ucrop(裁剪) is solved after the image intent\n UCrop.Options options = new UCrop.Options();\n options.setCompressionQuality(100);\n UCrop.of(dataUri, Uri.fromFile(imgFile))\n .withOptions(options)\n .withMaxResultSize(mImageSize.x, mImageSize.y)\n .withAspectRatio(3, 4)\n .start(this, RequestCode.CROP_IMAGE);\n }\n }\n }\n } else if (requestCode == RequestCode.CROP_IMAGE) {\n // crop a image\n if (resultCode == RESULT_OK) {\n if (data != null) {\n Glide.with(this).load(mSelectPath).into(mImageViews.get(mCurrentIndex));\n startDetectFaceInfo();\n }\n }\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == 1) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n String txt = getTextFromImage(bitmap);\n searchByPhoto(txt);\n }else if(requestCode == 2){\n Bitmap bm=null;\n if (data != null) {\n try {\n bm = MediaStore.Images.Media.getBitmap(getApplicationContext().getContentResolver(), data.getData());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n String txt = getTextFromImage(bm);\n searchByPhoto(txt);\n }\n }\n }", "public Code guess(){\n int minimumEliminated = -1;\n Code bestGuess = null;\n //Create a list of all codes in sample space (including both impossible and possible codes)\n List<Code> unusedCodes = new LinkedList<>(possibleCodes);\n unusedCodes.addAll(impossibleCodes);\n\n //MinMax part\n //For each code in the sample space\n for (Code arbitraryCode : unusedCodes) {\n //Create a new 2D miniMax table\n int[][] scoreTable = new int[Code.CODE_LENGTH + 1][Code.CODE_LENGTH + 1];\n //For each possibleCode\n for (Code possibleCode : possibleCodes) {\n Response response = arbitraryCode.getResponse(possibleCode); //Compare with the temporary arbitrary code and get response\n scoreTable[response.getStrikes()][response.getHits()]++; //Increase number of codes which have this response\n }\n //Find max in the table\n int maxScoreHits = -1;\n for (int[] row : scoreTable) {\n for (int i : row) {\n maxScoreHits = Integer.max(i, maxScoreHits);\n }\n }\n int score = possibleCodes.size() - maxScoreHits; //Evaluate score\n //Update minimumEliminated and bestGuess\n if (score > minimumEliminated) {\n minimumEliminated = score;\n bestGuess = arbitraryCode;\n }\n }\n\n //Update guess\n guess = bestGuess;\n\n return bestGuess;\n }", "public static int makeGuess(BufferedImage subImage) {\n\t\tdouble bestOverlap = -1;\r\n\t\tint bestGuess = -1;\r\n\r\n\t\tfor (int i=0; i<templates.length; i++) { // for each possible character\r\n\r\n\t\t\tint totalCount = 0;\r\n\t\t\tint matchCount = 0;\r\n\r\n\t\t\tfor (int x=0; x<subImage.getWidth(); x++) {\r\n\t\t\t\tfor (int y=0; y<subImage.getHeight(); y++) {\r\n\r\n\t\t\t\t\tint pixelVal = subImage.getRGB(x, y);\r\n\r\n\t\t\t\t\tif (!isBlack(pixelVal)) continue;\r\n\t\t\t\t\tif (isBlack(templates[i].getRGB(x, y))) matchCount++;\r\n\t\t\t\t\ttotalCount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (debug) \r\n\t\t\t\tSystem.out.println(i + \": matched \" + matchCount + \" / \" + totalCount);\r\n\r\n\t\t\tdouble overlap = matchCount / (double) totalCount;\r\n\t\t\tif (overlap > bestOverlap) {\r\n\t\t\t\tbestOverlap = overlap;\r\n\t\t\t\tbestGuess = i;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn bestGuess;\r\n\t}", "public static Image getSearchInfoAppropriateImage() {\n return ImageUtil\n .getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_SEARCH_APPROPRIATE_ICON));\n }", "public static Size chooseOptimalSize(Size[] choices, int textureViewWidth,\r\n int textureViewHeight, int maxWidth, int maxHeight, Size aspectRatio) {\n List<Size> bigEnough = new ArrayList<>();\r\n // Collect the supported resolutions that are smaller than the preview Surface\r\n List<Size> notBigEnough = new ArrayList<>();\r\n int w = aspectRatio.getWidth();\r\n int h = aspectRatio.getHeight();\r\n for (Size option : choices) {\r\n if (option.getWidth() <= maxWidth && option.getHeight() <= maxHeight &&\r\n option.getHeight() == option.getWidth() * h / w) {\r\n if (option.getWidth() >= textureViewWidth &&\r\n option.getHeight() >= textureViewHeight) {\r\n bigEnough.add(option);\r\n } else {\r\n notBigEnough.add(option);\r\n }\r\n }\r\n }\r\n\r\n // Pick the smallest of those big enough. If there is no one big enough, pick the\r\n // largest of those not big enough.\r\n if (bigEnough.size() > 0) {\r\n return Collections.min(bigEnough, new CompareSizesByArea());\r\n } else if (notBigEnough.size() > 0) {\r\n return Collections.max(notBigEnough, new CompareSizesByArea());\r\n } else {\r\n Log.e(TAG, \"Couldn't find any suitable preview size\");\r\n return choices[0];\r\n }\r\n }", "public abstract OptimisationSolution getBestSolution();", "DetectionResult getObjInImage(Mat image);", "public int getOptimalNumNearest();", "private static Option chooseWinner(Option op1, Option op2) {\n\t\tif(op1 == op2) {\n\t\t\treturn null;\n\t\t}else if(op1 == Option.ROCK) {\n\t\t\tif(op2 == Option.PAPER) {\n\t\t\t\treturn Option.PAPER;\n\t\t\t}\n\t\t\treturn Option.ROCK;\n\t\t}else if(op1 == Option.SCISSORS) {\n\t\t\tif(op2 == Option.ROCK) {\n\t\t\t\treturn Option.ROCK;\n\t\t\t}\n\t\t\treturn Option.SCISSORS;\n\t\t}else if(op1 == Option.PAPER) {\n\t\t\tif(op2 == Option.SCISSORS) {\n\t\t\t\treturn Option.SCISSORS;\n\t\t\t}\n\t\t\treturn Option.PAPER;\n\t\t}\n\t\treturn null;\n\t}", "public int judgeFitness(BufferedImage target) {\n int fit = 0;\n\n // compare images pixel by pixel\n for (int i = 0; i < ImagePanel.WIDTH; i++) {\n for (int j = 0; j < ImagePanel.HEIGHT; j++) {\n Color indv = new Color(img.getRGB(i, j));\n Color targ = new Color(target.getRGB(i, j));\n\n int deltaR = targ.getRed() - indv.getRed();\n int deltaG = targ.getGreen() - indv.getGreen();\n int deltaB = targ.getBlue() - indv.getBlue();\n\n int pixelFitness = (int)Math.sqrt(deltaR * deltaR +\n deltaG * deltaG +\n deltaB * deltaB);\n // lower fitness is better\n fit += pixelFitness;\n }\n }\n\n fitness = fit;\n return fit;\n }", "public abstract void nextGuessResult(ResultPegs resultPegs);", "public Point findImage(BufferedImage image, int index) {\n int smallWidth = image.getWidth();\n int smallHeight = image.getHeight();\n int[][] smallPixels = new int[smallWidth][smallHeight];\n for(int x = 0; x < smallWidth; x++) {\n for(int y = 0; y < smallHeight; y++) {\n smallPixels[x][y] = image.getRGB(x, y);\n }\n }\n boolean good;\n int count = 0;\n for(int X = 0; X <= bigWidth - smallWidth; X++) {\n for(int Y = 0; Y <= bigHeight - smallHeight; Y++) {\n good = true;\n for(int x = 0; x < smallWidth; x++) {\n for(int y = 0; y < smallHeight; y++) {\n if(smallPixels[x][y] != bigPixels[X + x][Y + y]) {\n good = false;\n break;\n }\n }\n if(!good) {\n break;\n }\n }\n if(good) {\n if(count == index) {\n return(new Point(X, Y));\n }\n count++;\n }\n }\n }\n return(null);\n }", "public static Options getOptions(final File file, final int reqWidth, \n final int reqHeight) {\n BitmapFactory.Options options = new Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(file.getPath(), options);\n options.inJustDecodeBounds = false;\n\n int inSampleSize = 1;\n int height = options.outHeight;\n int width = options.outWidth;\n\n if (height > reqHeight || width > reqWidth) {\n // Calculate ratios of height and width to requested height and width\n final int heightRatio = Math.round((float) height / (float) reqHeight);\n final int widthRatio = Math.round((float) width / (float) reqWidth);\n\n // Choose the smallest ratio as inSampleSize value, this will guarantee\n // a final image with both dimensions larger than or equal to the\n // requested height and width.\n inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;\n\n // This offers some additional logic in case the image has a strange\n // aspect ratio. For example, a panorama may have a much larger\n // width than height. In these cases the total pixels might still\n // end up being too large to fit comfortably in memory, so we should\n // be more aggressive with sample down the image (=larger\n // inSampleSize).\n final float totalPixels = width * height;\n\n // Anything more than 2x the requested pixels we'll sample down\n // further.\n final float totalReqPixelsCap = reqWidth * reqHeight * 2;\n\n while (totalPixels / (inSampleSize * inSampleSize) > totalReqPixelsCap) {\n inSampleSize++;\n }\n }\n\n options.inSampleSize = inSampleSize;\n return options;\n }", "FetchedImage getFujimiyaUrl(String query,int maxRankOfResult){\n try{\n //Get SearchResult\n Search search = getSearchResult(query, maxRankOfResult);\n List<Result> items = search.getItems();\n for(Result result: items){\n int i = items.indexOf(result);\n logger.log(Level.INFO,\"query: \" + query + \" URL: \"+result.getLink());\n logger.log(Level.INFO,\"page URL: \"+result.getImage().getContextLink());\n if(result.getImage().getWidth()+result.getImage().getHeight()<600){\n logger.log(Level.INFO,\"Result No.\"+i+\" is too small image. next.\");\n continue;\n }\n if(DBConnection.isInBlackList(result.getLink())){\n logger.log(Level.INFO,\"Result No.\"+i+\" is included in the blacklist. next.\");\n continue;\n }\n HttpURLConnection connection = (HttpURLConnection)(new URL(result.getLink())).openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setInstanceFollowRedirects(false);\n connection.connect();\n if(connection.getResponseCode()==200){\n return new FetchedImage(connection.getInputStream(),result.getLink());\n }else{\n logger.log(Level.INFO,\"Result No.\"+i+\" occurs error while fetching the image. next.\");\n continue;\n }\n }\n //If execution comes here, connection has failed 10 times.\n throw new ConnectException(\"Connection failed 10 times\");\n\n } catch (IOException e) {\n // TODO Auto-generated catch block\n logger.log(Level.SEVERE,e.toString());\n e.printStackTrace();\n }\n return null;\n}", "private Camera.Size getOptimalPreviewSize(List<Camera.Size> sizes, int w, int h) {\n final double ASPECT_TOLERANCE = 0.05;\n double targetRatio = (double) w / h;\n if (sizes == null) return null;\n \n Camera.Size optimalSize = null;\n double minDiff = Double.MAX_VALUE;\n \n int targetHeight = h;\n \n // Try to find an size match aspect ratio and size\n for (Camera.Size size : sizes) {\n double ratio = (double) size.width / size.height;\n if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue;\n if (Math.abs(size.height - targetHeight) < minDiff) {\n optimalSize = size;\n minDiff = Math.abs(size.height - targetHeight);\n }\n }\n \n // Cannot find the one match the aspect ratio, ignore the requirement\n if (optimalSize == null) {\n minDiff = Double.MAX_VALUE;\n for (Camera.Size size : sizes) {\n if (Math.abs(size.height - targetHeight) < minDiff) {\n optimalSize = size;\n minDiff = Math.abs(size.height - targetHeight);\n }\n }\n }\n \n return optimalSize;\n }", "public Image getDefault(int player, boolean ep) {if (player==1) return defaultImg1; else return defaultImg2;}", "public boolean calculateFocus(Mat img) {\n\t\tImgproc.cvtColor(img, img, Imgproc.COLOR_BGR2GRAY);\n\t\tImgproc.blur(img, img, BLUR);\n\t\tImgproc.Canny(img, img, EDGE_LOWER_THRESHOLD, EDGE_LOWER_THRESHOLD * EDGE_THRESHOLD_RATIO);\n\t\tint score = Core.countNonZero(img);\n\t\t\n\t\tSystem.out.println(\"[score=\" + score + \", high=\" + bestScore + \", best=\" + bestNetScore + \", low=\" + lowestNetScore + \", direction=\" + direction);\n\t\t\n\t\tif (score == 0)\n\t\t\treturn false;\n\t\t\n\t\tif (lowestNetScore > score || lowestNetScore == 0) {\n\t\t\tlowestNetScore = score;\n\t\t\tif (lowestNetScore < unfocusedScore || unfocusedScore == 0)\n\t\t\t\tunfocusedScore = lowestNetScore;\n\t\t}\n\t\tif (score > bestScore || bestScore == 0) {\n\t\t\tbestScore = score;\n\t\t\tif (bestNetScore < bestScore)\n\t\t\t\tbestNetScore = bestScore;\n\t\t}\n\t\tif (passedPeak && score < bestScore) {\n\t\t\t//if (stepSize != INITIAL_STEP || stepsTaken == Z_RANGE) {\n\t\t\t\tcalculationComplete();\n\t\t\t\treturn true;\n\t\t\t//}\n\t\t}\n\t\telse if (bestScore > lowestNetScore * SCORE_PEAK_SIZE && score >= bestNetScore * STRICTNESS /*&& stepSize != INITIAL_STEP*/) {\n\t\t\tif (strideSize <= MINIMUM_STRIDE && score <= bestScore) {\n\t\t\t\tSystem.out.println(\"quick complete\");\n\t\t\t\tcalculationComplete();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tpassedPeak = true;\n\t\t}\n\t\t//else if (stepSize == INITIAL_STEP && stepsTaken == Z_RANGE)\n\t\t//\tpassedPeak = true;\n\t\t/*else if (stepSize <= MINIMUM_STEP && score < bestScore) {\n\t\t\tSystem.out.println(\"quick complete\");\n\t\t\tcalculationComplete();\n\t\t\treturn true;\n\t\t}*/\n\t\treturn false;\n\t}", "public static Image findImage(Settings settings) throws IOException {\n\n for (int i = 0; i < ATTEMPTS; i++) {\n try {\n char[] ranName = new char[NAMELEN];\n Random ran = new Random(System.currentTimeMillis());\n for (int c = 0; c < NAMELEN; c++) {\n ranName[c] = (char)('A' + ran.nextInt(26));\n }\n\n return findImageAt(MessageFormat.format(URL, new String(ranName)), settings);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }\n\n throw new IOException(\"Failed to find an inspiration to draw\");\n }", "public Image execute(ImageInfo info, Image originalImage, Map hints, ImageSessionContext context) throws ImageException, IOException {\n/* 118 */ if (hints == null) {\n/* 119 */ hints = Collections.EMPTY_MAP;\n/* */ }\n/* 121 */ long start = System.currentTimeMillis();\n/* 122 */ Image img = null;\n/* */ \n/* */ \n/* 125 */ Image lastCacheableImage = null;\n/* */ \n/* 127 */ int converterCount = this.converters.size();\n/* 128 */ int startingPoint = 0;\n/* 129 */ if (this.cache != null) {\n/* 130 */ for (int i = converterCount - 1; i >= 0; i--) {\n/* 131 */ ImageConverter converter = getConverter(i);\n/* 132 */ ImageFlavor flavor = converter.getTargetFlavor();\n/* 133 */ img = this.cache.getImage(info, flavor);\n/* 134 */ if (img != null) {\n/* 135 */ startingPoint = i + 1;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 140 */ if (img == null && this.loader != null) {\n/* */ \n/* 142 */ ImageFlavor flavor = this.loader.getTargetFlavor();\n/* 143 */ img = this.cache.getImage(info, flavor);\n/* */ } \n/* */ } \n/* 146 */ if (img == null && originalImage != null) {\n/* 147 */ img = originalImage;\n/* */ }\n/* */ \n/* 150 */ boolean entirelyInCache = true;\n/* */ \n/* 152 */ if (img == null && this.loader != null) {\n/* */ \n/* 154 */ img = this.loader.loadImage(info, hints, context);\n/* 155 */ if (log.isTraceEnabled()) {\n/* 156 */ long duration = System.currentTimeMillis() - start;\n/* 157 */ log.trace(\"Image loading using \" + this.loader + \" took \" + duration + \" ms.\");\n/* */ } \n/* */ \n/* */ \n/* 161 */ entirelyInCache = false;\n/* 162 */ if (img.isCacheable()) {\n/* 163 */ lastCacheableImage = img;\n/* */ }\n/* */ } \n/* 166 */ if (img == null) {\n/* 167 */ throw new ImageException(\"Pipeline fails. No ImageLoader and no original Image available.\");\n/* */ }\n/* */ \n/* */ \n/* 171 */ if (converterCount > 0) {\n/* 172 */ for (int i = startingPoint; i < converterCount; i++) {\n/* 173 */ ImageConverter converter = getConverter(i);\n/* 174 */ start = System.currentTimeMillis();\n/* 175 */ img = converter.convert(img, hints);\n/* 176 */ if (log.isTraceEnabled()) {\n/* 177 */ long duration = System.currentTimeMillis() - start;\n/* 178 */ log.trace(\"Image conversion using \" + converter + \" took \" + duration + \" ms.\");\n/* */ } \n/* */ \n/* */ \n/* 182 */ entirelyInCache = false;\n/* 183 */ if (img.isCacheable()) {\n/* 184 */ lastCacheableImage = img;\n/* */ }\n/* */ } \n/* */ }\n/* */ \n/* */ \n/* */ \n/* 191 */ if (this.cache != null && !entirelyInCache) {\n/* 192 */ if (lastCacheableImage == null)\n/* */ {\n/* 194 */ lastCacheableImage = forceCaching(img);\n/* */ }\n/* 196 */ if (lastCacheableImage != null) {\n/* 197 */ if (log.isTraceEnabled()) {\n/* 198 */ log.trace(\"Caching image: \" + lastCacheableImage);\n/* */ }\n/* 200 */ this.cache.putImage(lastCacheableImage);\n/* */ } \n/* */ } \n/* 203 */ return img;\n/* */ }", "public Result getResult(IMatch m) {\n if (m.getHomeTeam().equals(\"Sporting\")) return Result.AWAY;\n if (m.getAwayTeam().equals(\"Sporting\")) return Result.HOME;\n \n return gen.getRandomResult();\n }", "private int computeInSmallSize(Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n // Calculate ratios of height and width to requested height and\n // width\n final int heightRatio = Math.round((float) height / (float) reqHeight);\n final int widthRatio = Math.round((float) width / (float) reqWidth);\n\n // Choose the smallest ratio as inSampleSize value,\n // this will guarantee a final image\n // with both dimensions larger than or equal to the requested\n // height and width.\n inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;\n\n // This offers some additional logic in case the image has a strange\n // aspect ratio. For example, a panorama may have a much larger\n // width than height. In these cases the total pixels might still\n // end up being too large to fit comfortably in memory, so we should\n // be more aggressive with sample down the image (=larger\n // inSampleSize).\n\n final float totalPixels = width * height;\n\n // Anything more than 2x the requested pixels we'll sample down\n // further\n final float totalReqPixelsCap = reqWidth * reqHeight * 2;\n\n while (totalPixels / (inSampleSize * inSampleSize) > totalReqPixelsCap) {\n inSampleSize++;\n }\n }\n return inSampleSize;\n }", "public List<Image> parseBestOfImagesResult(Document doc) {\n\n ArrayList<Image> bestOfImages = new ArrayList<>();\n Elements htmlImages = doc.select(CSS_BEST_OF_IMAGE_QUERY);\n Timber.i(\"Best OfImages: %s\", htmlImages.toString());\n String href;\n Image bestOfImage;\n for (Element image : htmlImages) {\n href = image.attr(\"src\");\n Timber.i(\"Image src: %s\", href);\n bestOfImage = new Image(href);\n bestOfImages.add(bestOfImage);\n }\n return bestOfImages;\n }", "public static ImageInfo getPickedImageInfo(Context context, int resultCode, Intent intentWithImage) {\r\n if (context == null || resultCode != Activity.RESULT_OK) {\r\n return null;\r\n }\r\n\r\n return new ImageInfo(intentWithImage.getData(), false);\r\n }", "private double[] chooseBestMove(List<double[]> possibleMoves) {\n double bestScore = 0;\n int indexBest = 0;\n for (int i = 0; i < possibleMoves.size(); i++) {\n if (possibleMoves.get(i)[4] > bestScore) {\n bestScore = possibleMoves.get(i)[4];\n indexBest = i;\n }\n }\n return possibleMoves.get(indexBest);\n }", "private void getClosestSupportedQuality(Camera.Parameters parameters) {\n\n\t\t// Resolutions\n\t\tString supportedSizesStr = \"Supported resolutions: \";\n\t\tList<Size> supportedSizes = parameters.getSupportedPreviewSizes();\n\t\tfor (Iterator<Size> it = supportedSizes.iterator(); it.hasNext();) {\n\t\t\tSize size = it.next();\n\t\t\tsupportedSizesStr += size.width+\"x\"+size.height+(it.hasNext()?\", \":\"\");\n\t\t}\n\t\tLog.v(TAG,supportedSizesStr);\n\n\t\t// Frame rates\n\t\tString supportedFrameRatesStr = \"Supported frame rates: \";\n\t\tList<Integer> supportedFrameRates = parameters.getSupportedPreviewFrameRates();\n\t\tfor (Iterator<Integer> it = supportedFrameRates.iterator(); it.hasNext();) {\n\t\t\tsupportedFrameRatesStr += it.next()+\"fps\"+(it.hasNext()?\", \":\"\");\n\t\t}\n\t\t//Log.v(TAG,supportedFrameRatesStr);\n\n\t\tint minDist = Integer.MAX_VALUE, newFps = mQuality.framerate;\n\t\tif (!supportedFrameRates.contains(mQuality.framerate)) {\n\t\t\tfor (Iterator<Integer> it = supportedFrameRates.iterator(); it.hasNext();) {\n\t\t\t\tint fps = it.next();\n\t\t\t\tint dist = Math.abs(fps - mQuality.framerate);\n\t\t\t\tif (dist<minDist) {\n\t\t\t\t\tminDist = dist;\n\t\t\t\t\tnewFps = fps;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLog.v(TAG,\"Frame rate modified: \"+mQuality.framerate+\"->\"+newFps);\n\t\t\t//mQuality.framerate = newFps;\n\t\t}\n\n\t}", "public Classifier selectBestOneR(Instances data) throws Exception{\r\n\t\tSystem.out.println(\"Build OneR\");\r\n\r\n\t\tCVParameterSelection ps = new CVParameterSelection();\r\n\t\tps.setClassifier(new OneR());\r\n\t\tps.setNumFolds(2);\r\n\t\tps.addCVParameter(\"B 1 5 10\");\r\n\r\n\t\t// build and output best options\r\n\t\tps.buildClassifier(data);\r\n\r\n\r\n\t\treturn ps;\r\n\t}", "static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n || (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }", "protected void mProfileImageSelection() {\n\n final CharSequence[] options = {\"Camera\", \"Gallery\", \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper\n (ApplicationActivity.this, R.style.AlertDialogCustom));\n\n builder.setIcon(R.mipmap.profile_icon);\n builder.setTitle(\"Profile Picture\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n\n //Camera Option\n if (options[item].equals(\"Camera\")) {\n Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, CAMERA_REQUEST);\n }\n\n //Gallery Option\n else if (options[item].equals(\"Gallery\")) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(intent, GALLERY_REQUEST);\n }\n\n //Cancel Option\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n\n builder.show();\n }", "public Decision bestFor(Context context);", "public Image getMinimRest();", "@Override\n public DRFLPSolution algorithm(DRFLPInstance instance) {\n try {\n List<Future<DRFLPSolution>> futures = new ArrayList<>();\n RandomManager.reinitialize(RandomType.LEGACY, 0, this.n);\n for (int i = 0; i < n; i++) {\n int _i = i;\n futures.add(executor.submit(() -> {\n RandomManager.reset(_i);\n return alg.algorithm(instance);\n }));\n }\n var results = ConcurrencyUtil.awaitAll(futures);\n DRFLPSolution best = null;\n for(var solution: results){\n if(solution.isBetterThan(best)){\n best = solution;\n }\n }\n return best;\n } finally {\n executor.shutdown();\n }\n }", "private Image getImage(Proposal proposal, boolean selected) {\n\t\tif (proposal == null)\n\t\t\treturn null;\n\t\t// return labelProvider.getImage(proposal);\n\t\tif (proposal.isPartial() && partialContentImage != null)\n\t\t\treturn selected ? partialContentImageSelected : partialContentImage;\n\t\tif (proposal.isFunction() && functionContentImage != null)\n\t\t\treturn selected ? functionContentImageSelected : functionContentImage;\n\t\treturn null;\n\t}", "private void selectOptionOfPicture() {\n final CharSequence[] options = { \"Take Photo\", \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(view.getContext());\n builder.setTitle(\"Add Photo!\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Take Photo\"))\n {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, 1);\n }\n else if (options[item].equals(\"Choose from Gallery\"))\n {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI);\n startActivityForResult(intent, 2);\n }\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }", "public String GetCameraModel(String img){\n String console = null;\n String c_arg = null;\n String command = null;\n\n if( this.OS.contains(\"Windows\") ){\n console = \"cmd\";\n c_arg = \"/c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\\"\"+img+\"\\\"\";\n }else{\n console = \"sh\";\n c_arg = \"-c\";\n command = PATH_TO_EXIFTOOL + \" \" + \"\\'\"+img+\"\\'\";\n }\n\n\n String line = null;\n try{\n IJ.log(PATH_TO_EXIFTOOL);\n IJ.log(command);\n IJ.log(this.OS);\n ProcessBuilder bob = new ProcessBuilder(console, c_arg, command);\n bob.redirectErrorStream(true);\n final Process proc = bob.start();\n\n BufferedReader proc_out = new BufferedReader( new InputStreamReader(proc.getInputStream()));\n\n do{\n line = proc_out.readLine();\n //IJ.log(line);\n\n\n if( line != null ){\n if( line.matches( \".*Survey2_(BLUE|RED|GREEN|RGB|IR|NDVI)\" )){\n break;\n }\n }\n\n //IJ.log(line);\n }while( line != null );\n\n }catch( IOException e){\n e.printStackTrace();\n }\n\n\n if( line.matches(\".*Survey2_BLUE\") ){\n return \"Survey2_BLUE\";\n }else if( line.matches(\".*Survey2_RED\") ){\n return \"Survey2_RED\";\n }else if( line.matches(\".*Survey2_GREEN\") ){\n return \"Survey2_GREEN\";\n }else if( line.matches(\".*Survey2_RGB\") ){\n return \"Survey2_RGB\";\n }else if( line.matches(\".*Survey2_IR\") ){\n return \"Survery2_IR\";\n }else if( line.matches(\".*Survery2_NDVI\") ){\n return \"Survey2_NDVI\";\n }else{\n return \"CAMERA_NOT_SUPPORTED\";\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n if (requestCode == CommenString.TAKE_PHOTO) {\n cameraUtil.photoZoomFromTake(CropperImageScale.square);\n } else if (requestCode == CommenString.LOCAL_PHOTO) {\n List<String> selectedImage = data.getStringArrayListExtra(\"paths\");\n cameraUtil.photoZoomFromMapStorage(selectedImage.get(0),\n CropperImageScale.square);\n } else if (requestCode == CommenString.PHOTO_RESULT) {\n Bundle extras = data.getExtras();\n if (extras != null) {\n headBitmap = extras.getParcelable(\"data\");\n image_up.setImageBitmap(headBitmap);\n }\n } else {\n }\n }\n }", "public Solution createSuggestion(Board board) {\n\t\t\n\t\t// use the room that the computer is currently in\n\t\tBoardCell currentLocation = board.getCell(this.getLocation()[1], this.getLocation()[0]);\n\t\tRoom currentRoom = board.getRoom(currentLocation);\n\t\troomCard = board.getCard(currentRoom.getName());\n\t\t\n\t\t// find possible people and weapons\n\t\tallCards = board.getCards();\n\t\tfor(Card card : allCards) {\n\t\t\tif(!this.getHand().contains(card) && !getSeen().contains(card)) {\n\t\t\t\tif(card.getType() == CardType.PERSON) {\n\t\t\t\t\tpossiblePeople.add(card);\n\t\t\t\t\t\n\t\t\t\t} else if(card.getType() == CardType.WEAPON) {\n\t\t\t\t\tpossibleWeapons.add(card);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// pick a person that isn't the computer's hand and hasn't been seen by the computer\n\t\t//TODO change this (iterating through a HashSet seams like a bad idea)\n\t\t// this code is awful, I know\n\t\t// thats what I get for procrastinating\n\t\tCard personGuess = null;\n\t\tint pos = rand.nextInt(possiblePeople.size());\n\t\tint iterator = 0;\n\t\tfor(Card card : possiblePeople) {\n\t\t\tif(iterator == pos) {\n\t\t\t\tpersonGuess = card;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\titerator++;\n\t\t}\n\t\t// pick a weapon that isn't the computer's hand and hasn't been seen by the computer\n\t\tCard weaponGuess = null;\n\t\tpos = rand.nextInt(possibleWeapons.size());\n\t\titerator = 0;\n\t\tfor(Card card : possibleWeapons) {\n\t\t\tif(iterator == pos) {\n\t\t\t\tweaponGuess = card;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\titerator++;\n\t\t}\n\n\t\t(board.getPlayer(personGuess.getName())).move(currentLocation.getLocation());\n\t\tboard.repaint();\n\n\t\treturn new Solution(roomCard, personGuess, weaponGuess);\n\t}", "private void choseImage() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(intent, GALLERY_REQ_CODE);\n } else {\n Toast.makeText(this, R.string.no_image_picker, Toast.LENGTH_SHORT).show();\n }\n }", "public void actionPerformed(ActionEvent event) {\r\n Object source = event.getSource();\r\n String tmpStr;\r\n int i, j;\r\n int VOIindex = -1;\r\n int nVOIs = 0;\r\n double minTx, maxTx, minTy, maxTy, minRz, maxRz, step;\r\n int boxIndex = 0;\r\n int opt = 0;\r\n int costFunc = 0;\r\n\r\n if (source == OKButton) {\r\n\r\n if (image.getNDims() != 3) {\r\n MipavUtil.displayError(\"This algorithm only works for 2.5D kidney datasets.\");\r\n\r\n return;\r\n }\r\n\r\n // get input from scalePanel\r\n tmpStr = textGaussX.getText();\r\n\r\n if (testParameter(tmpStr, 0.5, 5.0)) {\r\n scaleX = Float.valueOf(tmpStr).floatValue();\r\n } else {\r\n textGaussX.requestFocus();\r\n textGaussX.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textGaussY.getText();\r\n\r\n if (testParameter(tmpStr, 0.5, 5.0)) {\r\n scaleY = Float.valueOf(tmpStr).floatValue();\r\n } else {\r\n textGaussY.requestFocus();\r\n textGaussY.selectAll();\r\n\r\n return;\r\n }\r\n\r\n int[] destExtents = new int[3];\r\n destExtents[0] = image.getExtents()[0];\r\n destExtents[1] = image.getExtents()[1];\r\n destExtents[2] = image.getExtents()[2];\r\n\r\n float[] sigmas = new float[2];\r\n sigmas[0] = scaleX;\r\n sigmas[1] = scaleY;\r\n setVisible(false); // Hide dialog\r\n\r\n // get input from optionPanel\r\n boxIndex = comboBoxOpt.getSelectedIndex();\r\n\r\n if (boxIndex == 0) {\r\n opt = AlgorithmRegVOILandmark.EXHAUSTIVEOPT;\r\n } else if (boxIndex == 1) {\r\n opt = AlgorithmRegVOILandmark.SIMPLEXOPT;\r\n }\r\n\r\n //if (minDiff.isSelected()) {\r\n // costFunc = AlgorithmRegVOILandmark.MINDIFF;\r\n //} else {\r\n // costFunc = AlgorithmRegVOILandmark.MAXSUM;\r\n //}\r\n\r\n tmpStr = textStep.getText();\r\n\r\n if (testParameter(tmpStr, -5, 5)) {\r\n step = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textStep.requestFocus();\r\n textStep.selectAll();\r\n\r\n return;\r\n }\r\n\r\n // get input from RangePanel\r\n tmpStr = textminTx.getText();\r\n\r\n if (testParameter(tmpStr, -2048, 2048)) {\r\n minTx = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textminTx.requestFocus();\r\n textminTx.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textmaxTx.getText();\r\n\r\n if (testParameter(tmpStr, -2048, 2048)) {\r\n maxTx = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textmaxTx.requestFocus();\r\n textmaxTx.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textminTy.getText();\r\n\r\n if (testParameter(tmpStr, -2048, 2048)) {\r\n minTy = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textminTy.requestFocus();\r\n textminTy.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textmaxTy.getText();\r\n\r\n if (testParameter(tmpStr, -2048, 2048)) {\r\n maxTy = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textmaxTy.requestFocus();\r\n textmaxTy.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textminRz.getText();\r\n\r\n if (testParameter(tmpStr, -360, 360)) {\r\n minRz = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textminRz.requestFocus();\r\n textminRz.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textmaxRz.getText();\r\n\r\n if (testParameter(tmpStr, -360, 360)) {\r\n maxRz = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textmaxRz.requestFocus();\r\n textmaxRz.selectAll();\r\n\r\n return;\r\n }\r\n\r\n try {\r\n Preferences.debug(minTx + \",\" + maxTx + \",\" + minTy + \",\" + maxTy + \",\" + minRz + \",\" + maxRz + \",\" +\r\n step + \"\\n\",Preferences.DEBUG_ALGORITHM);\r\n nVOIs = image.getVOIs().size();\r\n Preferences.debug(\"nVOIs = \" + nVOIs + \"\\n\",Preferences.DEBUG_ALGORITHM);\r\n\r\n ViewVOIVector VOIs = image.getVOIs();\r\n\r\n if (nVOIs == 0) {\r\n MipavUtil.displayError(\"Trace contour using one polygon VOI on first slice.\");\r\n\r\n return;\r\n }\r\n\r\n for (i = 0; i < nVOIs; i++) {\r\n\r\n if ((VOIs.VOIAt(i).isActive() == true) &&\r\n ((VOIs.VOIAt(i).getCurveType() == VOI.CONTOUR) ||\r\n (VOIs.VOIAt(i).getCurveType() == VOI.POLYLINE))) {\r\n VOIindex = i;\r\n\r\n break;\r\n }\r\n }\r\n\r\n if (i == nVOIs) {\r\n MipavUtil.displayError(\"Please select VOI\");\r\n\r\n return;\r\n }\r\n\r\n Vector<VOIBase> curves = VOIs.VOIAt(VOIindex).getCurves();\r\n int nCurves = curves.size();\r\n\r\n if (nCurves == 0) {\r\n MipavUtil.displayError(\"Please select VOI from the first image slice.\");\r\n\r\n return;\r\n }\r\n\r\n for (j = 0; j < nCurves; j++) {\r\n\r\n if (((VOIContour) (curves.elementAt(j))).isActive()) {\r\n break;\r\n }\r\n }\r\n\r\n if (j == nCurves) {\r\n MipavUtil.displayError(\"Please select VOI\");\r\n\r\n return;\r\n }\r\n\r\n int xdim = destExtents[0];\r\n int ydim = destExtents[1];\r\n int tdim = destExtents[2];\r\n float[] resolutions = new float[] { 1, 1, 1 };\r\n\r\n for (i = 0; i < tdim; i++) {\r\n image.getFileInfo(i).setResolutions(resolutions);\r\n }\r\n\r\n float[] volBuffer = null;\r\n int sliceSize = xdim * ydim;\r\n int volLength = sliceSize * tdim;\r\n volBuffer = new float[volLength];\r\n image.exportData(0, volLength, volBuffer); // copy image into 1D array\r\n\r\n int length = (int)\r\n Math.round(((VOIContour) (curves.elementAt(j))).getLengthPtToPt(resolutions) /\r\n resolutions[0]);\r\n\r\n tmpPosition = new Vector3f[2 * length];\r\n tmpIntensity = new float[2 * length];\r\n\r\n Preferences.debug(\"VOI predicted array length = \" + length + \"\\n\",Preferences.DEBUG_ALGORITHM);\r\n\r\n length = image.getVOIs().VOIAt(VOIindex).getPositionAndIntensity(0, j, tmpPosition, tmpIntensity,\r\n volBuffer, xdim);\r\n\r\n Preferences.debug(\"actual VOI length = \" + length + \"\\n\",Preferences.DEBUG_ALGORITHM);\r\n\r\n position = new VOIContour(false, true);\r\n\r\n for (i = 0; i < length; i++) {\r\n position.add( new Vector3f(tmpPosition[i].X, tmpPosition[i].Y, tmpPosition[i].Z) );\r\n }\r\n\r\n // Hide dialog\r\n setVisible(false);\r\n\r\n String name = makeImageName(image.getImageName(), \"_result\");\r\n \r\n clonedImage = (ModelImage)image.clone(image.getImageName() + \"_result\");\r\n\r\n // Make NEW result image of float type\r\n resultImage = new ModelImage(ModelImage.FLOAT, destExtents, name);\r\n\r\n // call algoRegKidney here\r\n algoRegVOILankmark = new AlgorithmRegVOILandmark(clonedImage, resultImage, sigmas, true, position, minTx,\r\n maxTx, minTy, maxTy, minRz, maxRz, step, opt,\r\n costFunc);\r\n algoRegVOILankmark.addListener(this);\r\n\r\n createProgressBar(image.getImageName(), algoRegVOILankmark);\r\n\r\n // Start the thread as a low priority because we wish to still have user interface work fast\r\n if (algoRegVOILankmark.startMethod(Thread.MIN_PRIORITY) == false) {\r\n MipavUtil.displayError(\"A thread is already running on this object\");\r\n }\r\n } catch (IOException error) {\r\n MipavUtil.displayError(\"Registration Kidney: IO Exception\");\r\n\r\n return;\r\n } catch (OutOfMemoryError x) {\r\n\r\n if (resultImage != null) {\r\n resultImage.disposeLocal(); // Clean up image memory\r\n resultImage = null;\r\n }\r\n\r\n MipavUtil.displayError(\"Dialog Register Kidney: unable to allocate enough memory\");\r\n\r\n return;\r\n }\r\n } else if (source == cancelButton) {\r\n dispose();\r\n } else {\r\n super.actionPerformed(event);\r\n }\r\n }", "SearchResult getBestResult(List<SearchResult> results, SearchQuery query);", "public static Bitmap getPickedImageFromResult(Context context, int resultCode, Intent intentWithImage) {\r\n if (context == null || resultCode != Activity.RESULT_OK) {\r\n return null;\r\n }\r\n\r\n Log.d(\"Result Code\", String.valueOf(resultCode));\r\n\r\n ImageInfo pickedImageInfo = getPickedImageInfo(context, resultCode, intentWithImage);\r\n if (pickedImageInfo.getImageUri() == null) {\r\n return null;\r\n }\r\n\r\n Log.d(\"Selected Image\", pickedImageInfo.getImageUri().getPath());\r\n\r\n Bitmap bitmap = getImageResized(context, pickedImageInfo.getImageUri());\r\n int rotation = getRotation(context, pickedImageInfo.getImageUri());\r\n bitmap = rotate(bitmap, rotation);\r\n\r\n return bitmap;\r\n }", "private void selectImage() {\n final CharSequence[] options = { \"Take Photo\", \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(EventsActivity.this);\n\n builder.setTitle(\"Search Events By Photo\");\n\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if(options[item].equals(\"Take Photo\")){\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if (intent.resolveActivity(getPackageManager()) != null) {\n File photoFile = null;\n try {\n photoFile = createImageFile();\n } catch (IOException ex) {\n\n }\n if (photoFile != null) {\n Uri photoURI = FileProvider.getUriForFile(context,\n \"com.example.android.fileprovider\",\n photoFile);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(intent, 1);\n }\n }\n }\n else if(options[item].equals(\"Choose from Gallery\")) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select File\"),2);\n }\n else if(options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }", "public static Bitmap decodeBitmapSize(Bitmap bm, int IMAGE_BIGGER_SIDE_SIZE) {\n Bitmap b = null;\r\n\r\n\r\n //convert Bitmap to byte[]\r\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);\r\n byte[] byteArray = stream.toByteArray();\r\n\r\n //We need to know image width and height, \r\n //for it we create BitmapFactory.Options object and do BitmapFactory.decodeByteArray\r\n //inJustDecodeBounds = true - means that we do not need load Bitmap to memory\r\n //but we need just know width and height of it\r\n BitmapFactory.Options opt = new BitmapFactory.Options();\r\n opt.inJustDecodeBounds = true;\r\n BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt);\r\n int CurrentWidth = opt.outWidth;\r\n int CurrentHeight = opt.outHeight;\r\n\r\n\r\n //there is function that can quick scale images\r\n //but we need to give in scale parameter, and scale - it is power of 2\r\n //for example 0,1,2,4,8,16...\r\n //what scale we need? for example our image 1000x1000 and we want it will be 100x100\r\n //we need scale image as match as possible but should leave it more then required size\r\n //in our case scale=8, we receive image 1000/8 = 125 so 125x125, \r\n //scale = 16 is incorrect in our case, because we receive 1000/16 = 63 so 63x63 image \r\n //and it is less then 100X100\r\n //this block of code calculate scale(we can do it another way, but this way it more clear to read)\r\n int scale = 1;\r\n int PowerOf2 = 0;\r\n int ResW = CurrentWidth;\r\n int ResH = CurrentHeight;\r\n if (ResW > IMAGE_BIGGER_SIDE_SIZE || ResH > IMAGE_BIGGER_SIDE_SIZE) {\r\n while (1 == 1) {\r\n PowerOf2++;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n if (Math.max(ResW, ResH) < IMAGE_BIGGER_SIDE_SIZE) {\r\n PowerOf2--;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n break;\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n //Decode our image using scale that we calculated\r\n BitmapFactory.Options opt2 = new BitmapFactory.Options();\r\n opt2.inSampleSize = scale;\r\n //opt2.inScaled = false;\r\n b = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt2);\r\n\r\n\r\n //calculating new width and height\r\n int w = b.getWidth();\r\n int h = b.getHeight();\r\n if (w >= h) {\r\n w = IMAGE_BIGGER_SIDE_SIZE;\r\n h = (int) ((double) b.getHeight() * ((double) w / b.getWidth()));\r\n } else {\r\n h = IMAGE_BIGGER_SIDE_SIZE;\r\n w = (int) ((double) b.getWidth() * ((double) h / b.getHeight()));\r\n }\r\n\r\n\r\n //if we lucky and image already has correct sizes after quick scaling - return result\r\n if (opt2.outHeight == h && opt2.outWidth == w) {\r\n return b;\r\n }\r\n\r\n\r\n //we scaled our image as match as possible using quick method\r\n //and now we need to scale image to exactly size\r\n b = Bitmap.createScaledBitmap(b, w, h, true);\r\n\r\n\r\n return b;\r\n }", "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }", "private void showImageChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Profile Image\"), CHOOSE_IMAGE);\n }", "@Test void selectBestRegionsFern_larger() {\n\t\tTldDetection<GrayU8> alg = new TldDetection<>();\n\t\talg.config = new ConfigTld();\n\t\talg.config.maximumCascadeConsider = 20;\n\n\t\t// all 10 should be accepted\n\t\tfor( int i = 0; i < 30; i++ ) {\n\t\t\talg.fernInfo.grow();\n\t\t\talg.fernInfo.get(i).r = new ImageRectangle(i,i,i,i);\n\t\t\talg.fernInfo.get(i).sumP = 50-i;\n\t\t\talg.fernInfo.get(i).sumN = 6;\n\t\t}\n\t\talg.selectBestRegionsFern(200,200);\n\n\t\tassertEquals(20,alg.fernRegions.size());\n\t\t// should contain all the best ones\n\t\tfor( int i = 0; i < 20; i++ ) {\n\t\t\tassertTrue(alg.fernRegions.contains(alg.fernInfo.get(i).r));\n\t\t}\n\t}", "private void findBest()\r\n\t{\r\n\t\tint i;\r\n\t\tint size_mature_pool;\r\n\t\tint idx_current;//index of a currently checked genotype\r\n\t\tint num_errors;//number of errors of the current chromosome\r\n\t\tdouble min_error;//smallest error among the oldest genotypes\r\n\t\tVector<Integer> idx_oldest;\r\n\t\t\r\n\t\tsize_mature_pool = _pool_of_bests.size();\r\n\t\t\r\n\t\tidx_oldest = new Vector<Integer>(0, 1);\r\n\t\t\r\n\t\t//find all oldest genotypes\r\n\t\tfor(i=0; i<size_mature_pool; i++)\r\n\t\t{\r\n\t\t\tnum_errors = _pool_of_bests.get(i)._error.all_single_squares.size();\r\n\t\t\tif(num_errors>=_min_life_span)\r\n\t\t\t{\r\n\t\t\t\tidx_oldest.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//find the best oldest gentypes with a span above a threshold\r\n\t\t_best_idx = -1;\r\n\t\tif(idx_oldest.size() > 0)\r\n\t\t{\r\n\t\t\t_best_idx = idx_oldest.get(0);\r\n\t\t\tmin_error = _pool_of_bests.get(_best_idx)._error.getAverageError();\r\n\t\t\tfor(i=1; i<idx_oldest.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tidx_current = idx_oldest.get(i);\r\n\t\t\t\tif(min_error > _pool_of_bests.get(idx_current)._error.getAverageError())\r\n\t\t\t\t{\r\n\t\t\t\t\t_best_idx = idx_current;\r\n\t\t\t\t\tmin_error = _pool_of_bests.get(_best_idx)._error.getAverageError();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "String avatarImageSelected();", "private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n}", "private static void readOptimals(Instance inst) throws IOException {\n\t\tFile file = new File(\"data/results.txt\");\r\n\t\tScanner s = new Scanner(file);\r\n\t\tboolean found = false;\r\n\t\twhile(s.hasNextLine() && !found) {\r\n\t\t\tboolean isOptimal = false;\r\n\t\t\tString instName = s.next();\r\n\t\t\tint objective = s.nextInt();\r\n\t\t\t//System.out.println(instName +\", \"+objective);\r\n\t\t\tif(s.next().equals(\"Optimal\")) {\r\n\t\t\t\tisOptimal = true;\r\n\t\t\t}\r\n\t\t\tif(inst.getName().equals(instName + \".txt\")) {\r\n\t\t\t\t//System.out.println(\"Nombre:\"+instName+\" Objective:\"+objective+\" Optimal:\"+isOptimal);\r\n\t\t\t\tfound = true;\r\n\t\t\t\tif(isOptimal) {\r\n\t\t\t\t\tinst.setOptimal(objective);\r\n\t\t\t\t\tinst.setOptimalKnown(true);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tinst.setFeasible(objective);\r\n\t\t\t\t\tinst.setOptimalKnown(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\ts.close();\r\n\t}", "int getImageQualityPref();", "public double getBestScore();", "@Override\n\tpublic void run(String arg) {\n\t\tint[] ids = WindowManager.getIDList();\n\t\tif (null == ids) {\n\t\t\tneed2Images();\n\t\t\treturn;\n\t\t}\n\t\tArrayList all = new ArrayList();\n\t\tfor (int i=0; i<ids.length; i++) {\n\t\t\tImagePlus imp = WindowManager.getImage(ids[i]);\n\t\t\tRoi roi = imp.getRoi();\n\t\t\tif (null != roi && roi instanceof PointRoi)\n\t\t\t\tall.add(imp);\n\t\t}\n\t\tif (all.size() < 2) {\n\t\t\tneed2Images();\n\t\t\treturn;\n\t\t}\n\n\t\t// create choice arrays\n\t\tString[] titles = new String[all.size()];\n\t\tint i=0;\n\t\tfor (Iterator it = all.iterator(); it.hasNext(); )\n\t\t\ttitles[i++] = ((ImagePlus)it.next()).getTitle();\n\n\t\tString[] methods = {\"Affine\", \"Similarity\", \"Rigid\"};\n\t\tGenericDialog gd = new GenericDialog(\"Align Images\");\n\t\tString current = WindowManager.getCurrentImage().getTitle();\n\t\tgd.addChoice(\"source image\", titles, current.equals(titles[0]) ? titles[1] : titles[0]);\n\t\tgd.addChoice(\"target image\", titles, current);\n\t\tgd.addChoice(\"method\", methods, methods[2]);\n\t\tgd.addNumericField(\"alpha\", 1.0, 3);\n\t\tgd.addNumericField(\"gridSize\", 0.0, 3);\n\t\tgd.addCheckbox(\"forward\", true);\n\t\tgd.addCheckbox(\"merged result\", true);\n\t\tgd.showDialog();\n\t\tif (gd.wasCanceled())\n\t\t\treturn;\n\n\t\tImagePlus source = (ImagePlus)all.get(gd.getNextChoiceIndex());\n\t\tImagePlus target = (ImagePlus)all.get(gd.getNextChoiceIndex());\n\t\tMethod method = getMethod(gd.getNextChoiceIndex());\n\t\tmethod.alpha = (float)gd.getNextNumber();\n\t\tfloat gridSize = (float)gd.getNextNumber();\n\t\tboolean useForward = gd.getNextBoolean();\n\t\tboolean merge = gd.getNextBoolean();\n\n\n\t\tPointRoi points1 = (PointRoi)source.getRoi();\n\t\tPointRoi points2 = (PointRoi)target.getRoi();\n\n\t\tif (points1.getNCoordinates() != points2.getNCoordinates()) {\n\t\t\tIJ.showMessage(\"Unequal number of points!\");\n\t\t\treturn;\n\t\t}\n\n\t\t// ready\n\t\tImageProcessor ip = process(source, points1, target, points2, method, gridSize, useForward, merge);\n\t\tif (null != ip) new ImagePlus(\"warped\" + (useForward ? \" forward\" : \"\"), ip).show();\n\t}", "private Map.Entry<Activity, Prediction> chooseBestPrediction(Map<Activity, Prediction> predictions) {\n \n Map.Entry<Activity, Prediction> prediction = null;\n int result1, result2, lastIndex;\n double probability1, probability2;\n \n \n for (Map.Entry<Activity, Prediction> entry : predictions.entrySet()) {\n \n if (prediction == null) {\n prediction = entry;\n } else {\n lastIndex = prediction.getValue().getObservations().length - 1;\n \n result1 = prediction.getValue().getPredictions()[lastIndex];\n probability1 = prediction.getValue().getProbability();\n result2 = entry.getValue().getPredictions()[lastIndex];\n probability2 = entry.getValue().getProbability();\n \n /*a result 1 means that an activity has been detected,\n * thus we prefer a result that predicts an activity*/\n if (result2 == 1 && result1 == 0)\n prediction = entry;\n \n /* if both predict an activity, or don't predict anything then\n * we take the probability into consideration */\n if (result1 == result2) {\n if (probability2 > probability1)\n prediction = entry;\n }\n \n }\n \n }\n \n return prediction;\n \n }", "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is selector_not_selected power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "public Direction optimalChoice(int left, int right) {\n\n\t\tint x = ((left + 2) <= right) ? board.getOptionTable()[left + 2][right] : 0; // x gets max value from left+2 to right.\n\t\tint y = ((left + 1) <= (right - 1)) ? board.getOptionTable()[left + 1][right - 1] : 0; // y gets max value from left+1 to right-1.\n\t\tint z = (left <= (right - 2)) ? board.getOptionTable()[left][right - 2] : 0; // z gets max value from left to right-2.\n\t\t\n\t\tint maxLeft = board.getCards()[left] + Math.min(x, y); // gets the max value if player chose the left card.\n\t\tint maxRight = board.getCards()[right] + Math.min(y, z); // gets the max value if player chose the right card.\n\t\t\n\t\tif(maxRight > maxLeft) {\n\t\t\treturn Direction.RIGHT;\n\t\t} else {\n\t\t\treturn Direction.LEFT;\n\t\t}\n\t\t\n\n\t}", "public void runAlgorithm() {\r\n if (srcImage == null) {\r\n MipavUtil.displayError(\"AlgorithmRegularizedIsotropicDiffusion.run() Source Image is null\");\r\n return;\r\n }\r\n\r\n if (srcImage.getNDims() == 2 || do25D) {\r\n timeStep = 0.2f;\r\n }\r\n else {\r\n timeStep = 0.15f;\r\n }\r\n\r\n if (srcImage.isColorImage()) {\r\n if (srcImage.getNDims() == 2) {run2DC(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2DC(srcImage.getExtents()[2]); }\r\n else run3DC();\r\n }\r\n else {\r\n if (srcImage.getNDims() == 2) { run2D(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2D(srcImage.getExtents()[2]); }\r\n else run3D();\r\n }\r\n }", "public void compareImageAction() {\n\t\tif (selectedAnimalModel == null) {\n\t\t\tshowDialog(ERROR_MESSAGE, \"Animal needs to be saved first.\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (selectedAnimalModel.getId() == 0L || isImageChangedFlag) {\n\t\t\tshowDialog(ERROR_MESSAGE, \"Animal needs to be saved first.\");\n\t\t\treturn;\n\t\t}\n\n\t\tAsyncTask asyncTask = new AsyncTask() {\n\t\t\tAnimalModel animal1 = null;\n\t\t\tAnimalModel animal2 = null;\n\t\t\tAnimalModel animal3 = null;\n\n\t\t\t@Override\n\t\t\tprotected void onDone(boolean success) {\n\t\t\t\tif (!success) {\n\t\t\t\t\tshowDialog(ERROR_MESSAGE, \"Cannot compare images.\");\n\t\t\t\t} else {\n\t\t\t\t\tCompareImagesDialog dialog = new CompareImagesDialog(multimediaPanel, selectedAnimalModel, animal1, animal2, animal3);\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected Boolean doInBackground() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tArrayList<AnimalModel> models;\n\n\t\t\t\t\tmodels = DataManager.getInstance().getThreeSimilarImages(selectedAnimalModel);\n\n\t\t\t\t\tif (models.size() > 0) {\n\t\t\t\t\t\tanimal1 = models.get(0);\n\t\t\t\t\t}\n\t\t\t\t\tif (models.size() > 1) {\n\t\t\t\t\t\tanimal2 = models.get(1);\n\t\t\t\t\t}\n\t\t\t\t\tif (models.size() > 2) {\n\t\t\t\t\t\tanimal3 = models.get(2);\n\t\t\t\t\t}\n\n\t\t\t\t} catch (DataManagerException e1) {\n\t\t\t\t\tLogger.createLog(Logger.ERROR_LOG, e1.getMessage());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t\tasyncTask.start();\n\n\t}", "void imageChooser() {\n\n\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }", "private void getSampleImage() {\n\t\t_helpingImgPath = \"Media\\\\\"+_camType.toString()+_downStream.toString()+_camProfile.toString()+\".bmp\";\n//\t\tswitch( _downStream ){\n//\t\tcase DownstreamPage.LEVER_NO_DOWNSTREAM:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.LEVER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_OUTER_CAM:\n//\t\t\t\tbreak;\t\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_CRANK:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_FOUR_JOIN:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_PUSHER_TUGS:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_CRANK:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.SLIDER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_OUTER_CAM:\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_DOUBLE_SLIDE:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_NO_DOWNSTREAM:\n//\t\t\tbreak;\n//\t\t}\n\t\t\n\t}", "BufferedImage getSelectedImage();", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent returnedIntent) {\r\n super.onActivityResult(requestCode, resultCode, returnedIntent);\r\n try {\r\n // When an Image is picked\r\n if (resultCode == RESULT_OK && null != returnedIntent) {\r\n // Get the Image from data\r\n Uri imageLocation = returnedIntent.getData();\r\n InputStream imageStream = getContentResolver().openInputStream(imageLocation);\r\n Bitmap selectedImage = BitmapFactory.decodeStream(imageStream);\r\n selectedImage = getResizedBitmap(selectedImage,1080/4,1920/4);\r\n currentUserEdit.setImageBitmap(selectedImage);\r\n currentSaveCharacter.setImage(selectedImage);\r\n saveCharacters(context);\r\n }\r\n } catch (Exception e) {\r\n Toast.makeText(this, \"ImageGet ERROR\", Toast.LENGTH_LONG)\r\n .show();\r\n Log.d(\"ImageGet ERROR\", e.toString());\r\n }\r\n\r\n }", "private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }", "public static int closest( List<Camera.Size> sizes , int width , int height ) {\n\t\tint best = -1;\n\t\tint bestScore = Integer.MAX_VALUE;\n\n\t\tfor( int i = 0; i < sizes.size(); i++ ) {\n\t\t\tCamera.Size s = sizes.get(i);\n\n\t\t\tint dx = s.width-width;\n\t\t\tint dy = s.height-height;\n\n\t\t\tint score = dx*dx + dy*dy;\n\t\t\tif( score < bestScore ) {\n\t\t\t\tbest = i;\n\t\t\t\tbestScore = score;\n\t\t\t}\n\t\t}\n\n\t\treturn best;\n\t}", "private void selectImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(\n Intent.createChooser(\n intent,\n \"Select Image from here...\"),\n PICK_IMAGE_REQUEST);\n }", "@GET\n\t@Path(\"/{param}\")\n\tpublic Response printMessage(@PathParam(\"param\") String msg) {\n\n String filename = \"D:\\\\1Downloads\\\\Firefox downloads\\\\stock.jpg\";\n Mat img;\n img = Imgcodecs.imread(filename);\n int width = img.width();\n int height = img.height();\n System.out.println(\"w= \" + width + \" h= \" + height);\n \n Analyzer analyzer = new Analyzer(filename);\n analyzer.setFrame(0, 0, width, height);\n \n Individual ind = new Individual(analyzer);\n ind.generateIndividual(width, height);\n double originalScore = analyzer.calcCombinedAestheticScore();\n System.out.println(\"\\n\\nTHE RESULT: \" + analyzer.calcCombinedAestheticScore());\n \n Population myPop = new Population(200, true, width, height, analyzer);\n \n long startTime = System.currentTimeMillis();\n \n int generationCount = 0;\n while (generationCount < 500) {\n generationCount++;\n System.out.println(\"Generation: \" + generationCount + \" Fittest: \" + myPop.getFittest().getAestheticScore());\n //myPop = CropAlgorithm.evolvePopulation(myPop);\n CropAlgorithm cropAlg = new CropAlgorithm(analyzer);\n myPop = cropAlg.evolvePopulation(myPop, width, height);\n System.out.println(\"-------------------------------------------------ACTUAL BEST: \" + myPop.getFittest().getAestheticScore() + \" \" + myPop.getFittest().toString());\n }\n System.out.println(\"Solution found!\");\n System.out.println(\"Generation: \" + generationCount);\n System.out.println(\"Genes:\");\n Individual fittest = myPop.getFittest();\n System.out.println(fittest);\n double score = fittest.getAestheticScore();\n System.out.println(fittest.getAestheticScore());\n \n \n \n int x = (int)fittest.getX();\n int y = (int)fittest.getY();\n int w = (int)fittest.getWidth();\n int h = (int)fittest.getHeight();\n \n Rect roi = new Rect(x, y, w, h);\n Mat cropped = new Mat(img, roi);\n \n Imgcodecs.imwrite(\"D:\\\\1Downloads\\\\Firefox downloads\\\\cropped\\\\torocko.jpg\",cropped);\n \n long estimatedTime = System.currentTimeMillis() - startTime;\n System.out.println(\"IDOOO==== \" + estimatedTime );\n \n \n CropInfo bestCrop = new CropInfo();\n bestCrop.setOriginalScore(originalScore);\n bestCrop.setX(x);\n bestCrop.setY(y);\n bestCrop.setWidth(w);\n bestCrop.setHeight(h);\n bestCrop.setBestScore(fittest.getAestheticScore());\n \n String result = \"Record entered: \"+ bestCrop;\n\n return Response.status(201).entity(result).build();\n\n\n\t}", "private SocialPractice chooseOnIntentions(\n\t\t\tArrayList<SocialPractice> candidateSocialPractices) {\n\t\tSocialPractice chosenAction = null; //temp\n\t\tHashMap<SocialPractice, Double> needs=new HashMap<SocialPractice, Double>();\n\t\tfor(SocialPractice sp: candidateSocialPractices){\n\t\t\tneeds.put(sp, myValues.get(sp.getPurpose()).getNeed(myContext)); \n\t\t}\n\t\tdouble totalNeed = Helper.sumDouble(needs.values()); //satisfaction can get <0, so need as well, so maybe not getting in while loop\n\t\tdouble randomDeterminer = RandomHelper.nextDoubleFromTo(0, totalNeed);\n\t\t//System.out.println(myContext);\n\t\t//System.out.println(\"Needs:\" + needs);\n\t\t\n\t\tIterator it = needs.entrySet().iterator();\n\t\twhile(randomDeterminer > 0) {\n\t\t\tHashMap.Entry pair = (HashMap.Entry) it.next();\n\t\t\tchosenAction = (SocialPractice) pair.getKey();\n\t\t\trandomDeterminer = randomDeterminer - (double) pair.getValue();\n\t\t}\n\t\treturn chosenAction;\n\t}", "public Move chooseMove(TablutBoardState boardState) {\n \n \tList<TablutMove> options = boardState.getAllLegalMoves();\n\n \n bestMove = options.get(((int) MyTools.getSomething())% (options.size()));\n\n int depth = DEPTH;\n int opponent = boardState.getOpponent();\n boolean isMax;\n if(opponent==1){\n \tisMax = true;\n \t//System.out.println(\"I'm max\");\n }\n else{\n \tisMax = false;\n \t//System.out.println(\"I'm min\");\n }\n //bestMove = \n \n int bestvalue = minimax(boardState,isMax, depth,-10000,10000);\n \n \n //int minNumberOfOpponentPieces = boardState.getNumberPlayerPieces(opponent);\n //boolean moveCaptures = false;\n //System.out.println(\"minimax return value: \"+bestvalue);\n \n \n \n \n return bestMove;\n }", "private TargetInformation findPeg(Mat image) {\r\n\t\tTargetInformation ret = new TargetInformation();\r\n\t\tret.targetingPeg = true;\r\n\t\t\r\n\t long[] xsums = sums(image, true);\r\n\t long[] ysums = sums(image, false);\r\n\t \r\n\t List<PeakLoc> ypeaks = findPeaks(ysums);\r\n\t List<PeakLoc> xpeaks = findPeaks(xsums);\r\n\t\t\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//vvvvvvvvvvvvvvvvvvv FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE vvvvvvvvvvvvvvvvvvv//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t \r\n\t // Target is only found if we have exactly 2 x peaks, representing both of the pieces of tape\r\n\t if ((xpeaks.size() == 2) && (ypeaks.size() > 0)){\r\n\t \tret.targetFound = true;\r\n\t \tret.x = (xpeaks.get(1).getStart() + xpeaks.get(0).getStop()) / 2;\r\n\t \tret.gap = xpeaks.get(1).getStart() - xpeaks.get(0).getStop();\r\n\t \tret.width = xpeaks.get(1).getStop() - xpeaks.get(0).getStart();\r\n\t \tret.height = ypeaks.get(0).getStop() - ypeaks.get(0).getStart();\r\n\t \tret.y = ypeaks.get(0).getStart() + ret.height/2;\r\n\t \tret.rightOfTarget = xpeaks.get(0).maxValue < xpeaks.get(1).maxValue;\r\n\t \t\r\n \t\tret.pixelsPerInch = ret.height / pegHeightInches;\r\n \t\t\r\n\t \tret.aimX = ret.x + cameraOffsetInches * ret.pixelsPerInch;\r\n\t \t\r\n\t \tret.correctionAngle = (double)((ret.aimX - image.cols() / 2)) / pixelsPerXDegree;\r\n\t }\r\n\t else\r\n\t {\r\n\t \tret.targetFound = false;\r\n\t }\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//^^^^^^^^^^^^^^^^^^^ FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE ^^^^^^^^^^^^^^^^^^^//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t \r\n\t return ret;\r\n\t}", "public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n // Tamaño original del mapa de bits (width 3300 x height 1650).\n // Tamaño deseado (reqWidth 330 x reqHeight 200).\n\n if (height > reqHeight || width > reqWidth) {\n\n // Calculate ratios of height and width to requested height and width\n final int heightRatio = Math.round((float) height / (float) reqHeight); // Res: 8\n final int widthRatio = Math.round((float) width / (float) reqWidth); // Res: 10.\n\n // Choose the smallest ratio as inSampleSize value, this will guarantee\n // a final image with both dimensions larger than or equal to the\n // requested height and width.\n inSampleSize = Math.max(heightRatio, widthRatio);\n }\n return inSampleSize;\n }", "public void GetBestScore() {\r\n\t\ttry {\r\n\t\t\t// Leemos el nivel seleccionado y luego lo pasamos a integer\r\n\t\t\tif (Menu.dificultad == \"facil\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\EasyScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}else if (Menu.dificultad == \"normal\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\NormalScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}else if (Menu.dificultad == \"dificil\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\HardScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}else if (Menu.dificultad == \"Invertido\") {\r\n\t\t\t\tbr=new BufferedReader(new FileReader(\"C:\\\\Temp\\\\InvertidoScore.txt\"));\r\n\t\t\t\tBestScore=Integer.parseInt(br.readLine());\r\n\t\t\t}\r\n\t\t\t// Cerramos el Buffered Reader\r\n\t\t\tbr.close();\r\n\t\t// Capturamos las distintas exceptions\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"File can't open\");\r\n\t\t} \r\n\t}", "public static int getStrategyChoice() {\r\n\t\tint strategy = -1;\r\n\t\tgetStrategyScanner = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Choose the strategy of your opponent:\" +\r\n\t\t\t\t\"\\n\\t(\" + RANDOM + \") - Random player\" +\r\n\t\t\t\t\"\\n\\t(\" + DEFENSIVE + \") - Defensive player\" +\r\n\t\t\t\t\"\\n\\t(\" + SIDES + \") - To-the-Sides player player\");\r\n\t\twhile (strategy != RANDOM & strategy != DEFENSIVE\r\n\t\t\t\t& strategy != SIDES) {\r\n\t\t\tstrategy=getStrategyScanner.nextInt();\r\n\t\t}\r\n\t\treturn strategy;\r\n\t}", "public BufferedImage open() {\n\t\tJFileChooser choose = new JFileChooser(); //Removed path from the chooser!\n\n\t\tif (choose.showOpenDialog(null) != JFileChooser.APPROVE_OPTION)\n\t\t\treturn null;\n\t\tString file = choose.getSelectedFile().getAbsolutePath();\n\t\ttry {\n\t\t\tthis.x = 0;\n\t\t\tthis.y = 0;\n\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\tString iden = \"\";\n\t\t\tiden += ois.readChar();\n\t\t\tiden += ois.readChar();\n\t\t\tiden += ois.readChar();\n\t\t\t\n\t\t\tif (iden.compareTo(\"PPL\") != 0)\treturn null;\n\t\t\tbyte by = ois.readByte();\n\t\t\tSystem.out.println(by);\n\t\t\t\n\t\t\tswitch (by) {\n\t\t\t\tcase 0:\n\t\t\t\t\tthis.image = loadRGB(ois);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tthis.image = loadCMY(ois);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tthis.image = loadGS(ois);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tthis.image = loadBW(ois);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tthis.image = loadLT(ois);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tois.close();\n\t\t\t//int b = ois.readByte(); //lee 8 bits, lee -16, y no 240\n\t\t\t//si el bit mas significativo del byte antes de introducirse fue 1, el numero leido se interpreta como negativo\n\t\t\t//if(b < 0) b += 256; //para leer bytes sin signo\n\t\t\t//int i = ois.readInt(); //lee 32 bits, lee 3500\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn image;\n\t}", "public double getBestSolutionEvaluation();", "@Test\n public void test1() {\n System.out.println(\"A* Test i1\"); \n \n Solver solver = new Solver(new TileWorld(\"i1.png\"), SearchStrategy.A_STAR);\n AlgorithmResults expResult = new AlgorithmResults(580, 967);\n AlgorithmResults result = solver.solve();\n \n print(result, expResult);\n \n assertEquals(\"BestPathCost does not match!\", expResult.getBestPathCost(), result.getBestPathCost());\n }", "public static Size getOptimalVideoSnapshotPictureSize(List<Size> sizes,\n\t\t\tdouble targetRatio) {\n\t\t// Use a very small tolerance because we want an exact match.\n\t\tfinal double ASPECT_TOLERANCE = 0.001;\n\t\tif (sizes == null)\n\t\t\treturn null;\n\n\t\tSize optimalSize = null;\n\n\t\t// Try to find a size matches aspect ratio and has the largest width\n\t\tfor (Size size : sizes) {\n\t\t\tdouble ratio = (double) size.width / size.height;\n\t\t\tif (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE)\n\t\t\t\tcontinue;\n\t\t\tif (optimalSize == null || size.width > optimalSize.width) {\n\t\t\t\toptimalSize = size;\n\t\t\t}\n\t\t}\n\n\t\t// Cannot find one that matches the aspect ratio. This should not\n\t\t// happen.\n\t\t// Ignore the requirement.\n\t\tif (optimalSize == null) {\n\t\t\tLog.w(TAG, \"No picture size match the aspect ratio\");\n\t\t\tfor (Size size : sizes) {\n\t\t\t\tif (optimalSize == null || size.width > optimalSize.width) {\n\t\t\t\t\toptimalSize = size;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn optimalSize;\n\t}", "@Override\n public AlgorithmResult chooseBestMove(MinMaxEnum currentMinMax, List<AlgorithmResult> algorithmResults) {\n AlgorithmResult bestResult;\n if (currentMinMax == MinMaxEnum.MAX)\n bestResult = Collections.max(algorithmResults, Comparator.comparing(AlgorithmResult::getScore));\n else bestResult = Collections.min(algorithmResults, Comparator.comparing(AlgorithmResult::getScore));\n\n return bestResult;\n }", "private Value chooseSuggestion(PermissionOutcome outcome) {\n Value suggestedValue;\n if (outcome.highestAcceptedValue != null) {\n suggestedValue = outcome.highestAcceptedValue;\n } else {\n try {\n suggestedValue = queue.peek();\n } catch (NoSuchElementException e) {\n suggestedValue = new Value();\n }\n }\n return suggestedValue;\n }" ]
[ "0.80354524", "0.6254125", "0.5710959", "0.56807995", "0.5647917", "0.55942976", "0.55427194", "0.5530033", "0.5526464", "0.54753417", "0.5394372", "0.5329613", "0.5265428", "0.52540094", "0.5246813", "0.5236881", "0.5214845", "0.5212176", "0.52025616", "0.519576", "0.5184033", "0.51619804", "0.5108553", "0.5098541", "0.507329", "0.50473547", "0.50451607", "0.5043855", "0.5036029", "0.5024086", "0.5014147", "0.50058585", "0.49960172", "0.49911726", "0.49627933", "0.49625957", "0.49576935", "0.4953341", "0.49379504", "0.4900544", "0.489597", "0.48898268", "0.487238", "0.48676583", "0.48464495", "0.48417398", "0.4812044", "0.47952735", "0.47895256", "0.47864482", "0.47838488", "0.47827756", "0.4780525", "0.47749975", "0.47742748", "0.47612232", "0.47591373", "0.47488204", "0.4741692", "0.47374934", "0.47364983", "0.4730962", "0.47285345", "0.47222337", "0.47170392", "0.47132215", "0.471198", "0.47092912", "0.47072825", "0.47054216", "0.47001684", "0.46928817", "0.46926597", "0.46864069", "0.46849796", "0.46805224", "0.46795392", "0.46681798", "0.4657868", "0.46571562", "0.46529406", "0.4650496", "0.46447667", "0.46440044", "0.4644", "0.46354014", "0.46339947", "0.46298596", "0.4629045", "0.46271938", "0.46245757", "0.4623141", "0.462121", "0.46209374", "0.4615892", "0.46155635", "0.46090087", "0.46081895", "0.46042487", "0.4601609" ]
0.7709975
1
Gets the result of the network based on the image
public static Map<String, Float> getResult(BufferedImage image) { INDArray output = getOutput(image); Map<String, Float> result = new HashMap<>(); for (int i = 0; i < output.length(); i++) { result.put(labels[i], output.getFloat(i)); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ModelImage getResultImage() {\r\n return resultImage;\r\n }", "public ModelImage getResultImage() {\r\n return resultImage;\r\n }", "public ModelImage getResultImage() {\r\n return resultImage;\r\n }", "@Override\n\tpublic double[] getResoult(String networkName, WritableImage example) {\n\t\tif(neuronNetworkMap.containsKey(networkName))\n\t\t\treturn neuronNetworkMap.get(networkName).calculateNetwork(learnMenager.getInputFromBufferImage(example));\n\t\telse \n\t\t\treturn null;\n\t}", "public List<Result> recognize(IplImage image);", "public Image getMinimRest();", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "public void gettingImageInput(){\n Bitmap bm = getYourInputImage();\n int z;\n if(res==2) { z=50; }\n else { z=224; }\n Bitmap bitmap = Bitmap.createScaledBitmap(bm, z, z, true);\n input = ByteBuffer.allocateDirect(z * z * 3 * 4).order(ByteOrder.nativeOrder());\n for (int y = 0; y < z; y++) {\n for (int x = 0; x < z; x++) {\n int px = bitmap.getPixel(x, y);\n\n // Get channel values from the pixel value.\n int r = Color.red(px);\n int g = Color.green(px);\n int b = Color.blue(px);\n\n // Normalize channel values to [-1.0, 1.0]. This requirement depends\n // on the model. For example, some models might require values to be\n // normalized to the range [0.0, 1.0] instead.\n float rf = (r) / 255.0f;\n float gf = (g) / 255.0f;\n float bf = (b) / 255.0f;\n\n input.putFloat(rf);\n input.putFloat(gf);\n input.putFloat(bf);\n }\n }\n }", "DetectionResult getObjInImage(Mat image);", "@Override\n public void calculate() {\n State outputState = State.ZERO;\n for(Input i: inputs){\n if(i.getState() == State.ONE) {\n outputState = State.ONE;\n break;\n }\n else if (i.getState() == State.NOT_CONNECTED) {\n state = State.NOT_CONNECTED;\n setImage();\n System.out.println(\"Invalid connection detected\");\n return;\n }\n }\n state = outputState;\n setImage();\n }", "private float get_steering_prediction(Mat frame){\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGB2YUV);\n Imgproc.GaussianBlur(frame, frame, new Size(3, 3), 0, 0);\n\n Mat f = new Mat();\n Imgproc.resize(frame,f,new Size(200, 66));\n // f = Dnn.blobFromImage(f, 0.00392, new Size(200, 66) , new Scalar(0,0 ,0), false,false);\n f.convertTo(f,CV_32F);\n StringBuilder sb = new StringBuilder();\n String s = new String();\n System.out.println(\"hei \"+ f.height()+\", wit\" + f.width() + \"ch \" + f.channels());\n System.out.println(\"col \"+ f.cols()+\", row\" + f.rows() + \"ch \" + f.channels());\n\n float[][][][] inputs = new float[1][200][66][3];\n float fs[] = new float[3];\n for( int r=0 ; r<f.rows() ; r++ ) {\n //sb.append(\"\"+r+\") \");\n for( int c=0 ; c<f.cols() ; c++ ) {\n f.get(r, c, fs);\n //sb.append( \"{\");\n inputs[0][c][r][0]=fs[0]/255;\n inputs[0][c][r][1]=fs[1]/255;\n inputs[0][c][r][2]=fs[2]/255;\n //sb.append( String.valueOf(fs[0]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[1]));\n //sb.append( ' ' );\n //sb.append( String.valueOf(fs[2]));\n //sb.append( \"}\");\n //sb.append( ' ' );\n }\n //sb.append( '\\n' );\n }\n //System.out.println(sb);\n\n\n\n\n float[][] outputs = new float[1][1];\n interperter.run(inputs ,outputs);\n System.out.println(\"output: \" + outputs[0][0]);\n return outputs[0][0];\n }", "public interface ImageSegmentationResultListner {\n void getSegmentationImage(Bitmap bitmap);\n}", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder();", "public final ImageProcessor getImage() {\r\n return image;\r\n }", "public int getImage();", "List<List<Pixel>> transform(Image img, String operation);", "private byte[] evalToImage(Object obj, int width, int height, int dpi, boolean useFE) {\n byte[] imageData;\n imageData = null;\n this.lastError = null;\n try {\n this.putFunction(\"EvaluatePacket\", 1);\n this.putFunction(\"Needs\", 1);\n this.put(\"JLink`\");\n this.flush();\n this.discardAnswerNoPacketListeners();\n Utils.writeEvalToImageExpression(this, obj, width, height, dpi, useFE);\n this.flush();\n this.waitForAnswer();\n }\n catch (MathLinkException e) {\n String dbg = System.getProperty(\"JLINK_SHOW_INTERNAL_EXCEPTIONS\");\n if (dbg != null && dbg.equals(\"true\")) {\n System.err.println(\"Exception in evaluateToImage: \" + e.toString());\n }\n this.clearError();\n this.lastError = e;\n this.newPacket();\n return null;\n }\n try {\n if (this.getNext() == 34) {\n imageData = this.getByteString(0);\n }\n }\n catch (Throwable t) {\n String dbg = System.getProperty(\"JLINK_SHOW_INTERNAL_EXCEPTIONS\");\n if (dbg != null && dbg.equals(\"true\")) {\n System.err.println(\"Exception in evaluateToImage: \" + t.toString());\n }\n this.clearError();\n this.lastError = t;\n }\n finally {\n this.newPacket();\n }\n return imageData;\n }", "public Image getNatural();", "String getImage();", "public Image getCrotchetRest();", "public void execute()\r\n/* 31: */ throws GlobalException\r\n/* 32: */ {\r\n/* 33: 37 */ if (this.input.getCDim() != 1) {\r\n/* 34: 37 */ throw new GlobalException(\"Sorry, only mono-channel images for now...\");\r\n/* 35: */ }\r\n/* 36: 39 */ this.xdim = this.input.getXDim();\r\n/* 37: 40 */ this.ydim = this.input.getYDim();\r\n/* 38: */ \r\n/* 39: 42 */ this.output = new ArrayList();\r\n/* 40: */ \r\n/* 41: 44 */ this.temp = new BooleanImage(this.input, false);\r\n/* 42: 45 */ this.temp.fill(false);\r\n/* 43: */ \r\n/* 44: 47 */ this.temp2 = new BooleanImage(this.input, false);\r\n/* 45: 48 */ this.temp2.fill(false);\r\n/* 46: */ \r\n/* 47: 50 */ this.s = new Stack();\r\n/* 48: */ \r\n/* 49: 52 */ this.list2 = new ArrayList();\r\n/* 50: */ \r\n/* 51: 54 */ this.output = extractCC(this.seed, this.input);\r\n/* 52: */ }", "@Override\n public String recognizeImage(final Bitmap bitmap) {\n Trace.beginSection(\"recognizeImage\");\n\n Trace.beginSection(\"preprocessBitmap\");\n // Preprocess the image data from 0-255 int to normalized float based\n // on the provided parameters.\n bitmapToInputData(bitmap);\n Trace.endSection(); // preprocessBitmap\n\n // Run the inference call.\n Trace.beginSection(\"run\");\n\n tfLite.run(imgData, tfoutput_recognize);\n\n Trace.endSection();\n postPro = new Postprocessing(tfoutput_recognize);\n predictClass = postPro.postRecognize();\n Trace.endSection(); // \"recognizeImage\"\n\n //LOGGER.w(\"\"+(System.currentTimeMillis()-startTime));\n return labels.get(predictClass);\n }", "java.lang.String getImage();", "@SuppressWarnings({ \"unchecked\", \"null\" })\n public List<String> calcSimilarity(String imgPath) {\n\n FileInputStream imageFile;\n double minDistance = Double.MAX_VALUE;\n\n // 返回查询结果\n List<String> matchUrls = new ArrayList<String>();\n\n\n try {\n\n imageFile = new FileInputStream(imgPath);\n BufferedImage bufferImage;\n\n bufferImage = ImageIO.read(imageFile);\n LTxXORP.setRotaIvaPats();//设定旋转模式值\n\n //得到图片的纹理一维数组特征向量(各颜色分量频率(统计量))\n double[] lbpSourceFecture = LTxXORP.getLBPFeature(imgPath);\n\n // 提取数据库数据\n List<Object> list = DBHelper.fetchALLCloth();\n\n // long startTime = System.currentTimeMillis();\n\n // 把每个条数据的路径和最短距离特征提取出来并存储在lbpResultMap的键值对中。\n Map<String, Double> lbpResultMap = new HashMap<String, Double>();\n\n for (int i = 0; i < list.size(); i++) {\n\n Map<String, Object> map = (Map<String, Object>) list.get(i);\n\n Object candidatePath = map.get(\"path\");\n Object candidateLBP = map.get(\"lbpFeature\");\n\n // 从快速搜索中选取TOP N结果,继续进行纹理特征匹配\n //获取当前由颜色匹配相似度排序的结果并提取其LBP纹理特征\n\n double[] lbpTargetFeature = MatchUtil.jsonToArr((String) candidateLBP);\n double lbpDistance = textureStrategy.similarity(lbpTargetFeature, lbpSourceFecture);\n lbpResultMap.put((String) candidatePath, lbpDistance);\n\n // 判断衡量标准选取距离还是相似度\n if (lbpDistance < minDistance)\n minDistance = lbpDistance;\n\n }\n\n Map<String, Double> tempResultMap;\n\n System.out.println(\"Min Distance : \" + (float) minDistance);\n\n\n\n System.out.println(\"============== finish Texture =================\");\n\n Map<String, Double> finalResult = MatchUtil.sortByValueAsc(lbpResultMap);\n\n int counter = 0;\n for (Map.Entry<String, Double> map : finalResult.entrySet()) {\n if (counter >= Config.finalResultNumber)\n break;\n //matchUrls截取只存储finalResultNumber数量的查询结果\n matchUrls.add(map.getKey());\n counter ++;\n double TSimilarity=Math.pow(Math.E,-map.getValue());\n System.out.println(TSimilarity + \" 图片路径 \" + map.getKey());\n\n }\n\n System.out.println();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return matchUrls;\n }", "@Output(\"image\")\n public Image getImage() {\n return image;\n }", "private void getBinaryImage() {\n //apply gaussianfilter\n Imgproc.GaussianBlur(currentGray, currentGray, new Size(gauss,gauss), 0);\n\n // subtract backgroundGray from current image and store in currentGray\n Core.subtract(currentGray, backgroundGray, currentGray);\n\n //get Binary image using Otsu\n Imgproc.threshold(currentGray, binary, 0, 255, Imgproc.THRESH_BINARY + Imgproc.THRESH_OTSU);\n }", "public void testGetImage() {\n CLImage instance = new CLImage();\n byte[] expResult = new byte[] {1, 2, 3};\n instance.image = new byte[] {1, 2, 3};\n byte[] result = instance.getImage();\n assertEquals(expResult.length, result.length);\n for (int i = 0; i < expResult.length; ++i)\n {\n assertEquals(expResult[i], result[i]);\n }\n }", "public String getImg(){\n switch(image){\n case 0: // Case 0: Ant looks up/north\n return \"imgs/ant_n.png\";\n case 1: // Case 1: Ant looks right/east\n return \"imgs/ant_e.png\";\n case 2: // Case 2: Ant looks down/south\n return \"imgs/ant_s.png\";\n case 3: // Case 3: Ant looks left/west\n return \"imgs/ant_w.png\";\n default: // Default: This shouldn't happen on a normal run. It returns an empty string and prints an error.\n System.err.println(\"Something went wrong while the ant was trying change direction\");\n return \"\";\n }\n }", "BufferedImage outputImage();", "public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform() {\n if (imageByTransformBuilder_ == null) {\n return imageByTransform_;\n } else {\n return imageByTransformBuilder_.getMessage();\n }\n }", "public BufferedImage Operation(boolean showStatus, int nImage) {\n\t\tif(showStatus == false) {\n\t\t\treturn Operation();\n\t\t}\n\t\telse {\n\t\t\tString status1;\n\t\t\tif(nImage < 0) {\n\t\t\t\tstatus1 = \"Image Inputted\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tstatus1 = \"Image \" + Integer.toString(nImage) + \" Inputted\";\n\t\t\t}\n\t\t\tSystem.out.println(status1);\n\t\t\tBufferedImage NR = new NoiseRemoval(input).getOutput();\n\t\t\tBufferedImage Edge = new EdgeDetection(NR).getOutput();\n\t\t\tBufferedImage shrp = new UnsharpMasking(Edge).getOutput();\n\t\t\t\tedge = shrp;\n\t\t\tSystem.out.println(\"Edge Detection Complete\");\n\t\t\tBufferedImage avg = new Average(input, shrp).getOutput();\n\t\t\tSystem.out.println(\"Overlay Complete\");\n\t\t\tBufferedImage norm = new Normalize(avg).getOutput();\n\t\t\tSystem.out.println(\"Constrast Enhancing Normalization Complete\");\n\t\t\tBufferedImage renorm = new Normalize(norm, renormval).getOutput();\n\t\t\tSystem.out.println(\"Brightness Enhancing Normalization Complete\");\n\t\t\t//BufferedImage thres = new Threshold(renorm, thresval, true).getOutput();\n\t\t\t//System.out.println(\"Thresholding Complete\");\n\t\t\t\n\t\t\toutput = renorm;\n\t\t\t\n\t\t\treturn output;\n\t\t}\n\t\t\n\t}", "@Override protected ClarifaiResponse<List<ClarifaiOutput<Concept>>> doInBackground(Void... params) {\n final ConceptModel generalModel = App.get().clarifaiClient().getDefaultModels().foodModel();\n\n // Use this model to predict, with the image that the user just selected as the input\n return generalModel.predict()\n .withInputs(ClarifaiInput.forImage(ClarifaiImage.of(imageBytes)))\n .executeSync();\n }", "WorldImage getImage();", "FetchedImage getFujimiyaUrl(String query,int maxRankOfResult){\n try{\n //Get SearchResult\n Search search = getSearchResult(query, maxRankOfResult);\n List<Result> items = search.getItems();\n for(Result result: items){\n int i = items.indexOf(result);\n logger.log(Level.INFO,\"query: \" + query + \" URL: \"+result.getLink());\n logger.log(Level.INFO,\"page URL: \"+result.getImage().getContextLink());\n if(result.getImage().getWidth()+result.getImage().getHeight()<600){\n logger.log(Level.INFO,\"Result No.\"+i+\" is too small image. next.\");\n continue;\n }\n if(DBConnection.isInBlackList(result.getLink())){\n logger.log(Level.INFO,\"Result No.\"+i+\" is included in the blacklist. next.\");\n continue;\n }\n HttpURLConnection connection = (HttpURLConnection)(new URL(result.getLink())).openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setInstanceFollowRedirects(false);\n connection.connect();\n if(connection.getResponseCode()==200){\n return new FetchedImage(connection.getInputStream(),result.getLink());\n }else{\n logger.log(Level.INFO,\"Result No.\"+i+\" occurs error while fetching the image. next.\");\n continue;\n }\n }\n //If execution comes here, connection has failed 10 times.\n throw new ConnectException(\"Connection failed 10 times\");\n\n } catch (IOException e) {\n // TODO Auto-generated catch block\n logger.log(Level.SEVERE,e.toString());\n e.printStackTrace();\n }\n return null;\n}", "byte[] getResult();", "private double processImg() {\n\n\t\ttry {\n\t\t\timgPreview.setVisibility(View.VISIBLE);\n\n\t\t\t// bitmap factory\n\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\n\t\t\t// downsizing image as it throws OutOfMemory Exception for larger\n\t\t\t// images\n\t\t\toptions.inSampleSize = 8;\n\n\t\t\tbitmap_ref = BitmapFactory.decodeFile(fileUriSafe.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\tbitmap_sample = BitmapFactory.decodeFile(fileUriMole.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\t//convert from bitmap to Mat\n\t\t\tMat ref = new Mat(bitmap_ref.getHeight(), bitmap_ref.getWidth(), CvType.CV_8UC4);\n\t\t\tMat sample = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\t\t\tMat mask = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC4);\n\t\t\tMat sample2calcgrad = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\n\t\t\tUtils.bitmapToMat(bitmap_ref, ref);\n\t\t\tUtils.bitmapToMat(bitmap_sample, sample);\n\t\t\tUtils.bitmapToMat(bitmap_sample,sample2calcgrad);\n\n\t\t\t//normalize image based on reference\t\t\t\n\t\t\t//sample = normalizeImg(sample, ref);\n\n\t\t\t//Using Sobel filter to calculate gradient\n\t\t\tMat grad_x = new Mat();\n\t\t\tMat grad_y = new Mat();\n\t\t\tMat abs_grad_x = new Mat();\n\t\t\tMat abs_grad_y = new Mat();\n\t\t\tMat gradVals = new Mat();\n\t\t\tMat sample_gray = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC1);\n\t\t\tImgproc.cvtColor(sample2calcgrad, sample_gray, Imgproc.COLOR_BGRA2GRAY);\n\t\t\tImgproc.GaussianBlur(sample_gray, sample_gray, new Size(5,5), 0);\n\n\t\t\t//Gradient X\n\t\t\tImgproc.Sobel(sample_gray, grad_x, CvType.CV_8UC1, 1, 0);\n\t\t\tCore.convertScaleAbs(grad_x, abs_grad_x,10,0);\n\n\t\t\t//Gradient Y\n\t\t\tImgproc.Sobel(sample_gray, grad_y, CvType.CV_8UC1, 0, 1);\n\t\t\tCore.convertScaleAbs(grad_y,abs_grad_y, 10, 0);\n\n\t\t\t//combine with grad = sqrt(gx^2 + gy^2)\n\t\t\tCore.addWeighted(abs_grad_x, .5, abs_grad_y, .5, 0, gradVals);\n\n\n\t\t\t//Using CANNY to further smooth Gaussian blurred image; extract contours\n\t\t\tImgproc.Canny(sample_gray, mIntermediateMat, 80, 90);\n\n\t\t\t//find contours of filtered image\n\t\t\tList <MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\t\tImgproc.findContours(mIntermediateMat, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t\t// Find max contour area\n\t\t\tdouble maxArea = 0;\n\t\t\tIterator<MatOfPoint> each = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint wrapper = each.next();\n\t\t\t\tdouble area = Imgproc.contourArea(wrapper);\n\t\t\t\tif (area > maxArea)\n\t\t\t\t\tmaxArea = area;\n\t\t\t}\n\n\t\t\t// Filter contours by area and only keep those above thresh value\n\t\t\tmContours.clear();\n\t\t\teach = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint contour = each.next();\n\t\t\t\tif (Imgproc.contourArea(contour) > mMinContourArea*maxArea) {\n\t\t\t\t\tmContours.add(contour);\n\t\t\t\t\tborder.addAll(contour.toList());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//segment border into 8 parts \n\t\t\t//calc gradient along contour segment & normalize based on number of points in border\n\t\t\t//upto 7 points at end of border list ignored\n\t\t\tdouble [] seg_val = new double [8];\n\t\t\tint seg_len = border.size()/8;\n\t\t\tfor(int i = 0; i<8; i++){\n\t\t\t\tdouble contourGradientSum = 0;\n\t\t\t\tfor(int j=i*seg_len; j<(i+1)*seg_len;j++){\n\t\t\t\t\tPoint pt = border.get(j);\n\t\t\t\t\tint x = (int) pt.x;\n\t\t\t\t\tint y = (int) pt.y;\t\t\t\n\t\t\t\t\tcontourGradientSum += Core.mean(gradVals.submat(y-1, y+1, x-1, x+1)).val[0];\n\t\t\t\t}\n\t\t\t\tseg_val[i]=contourGradientSum/seg_len;\n\t\t\t}\n\n\n\t\t\tLog.v(TAG, \"grad vals: [\" + seg_val[0] + \",\" + seg_val[1] + \",\" \n\t\t\t\t\t+ seg_val[2] + \",\"+ seg_val[3] + \",\"\n\t\t\t\t\t+ seg_val[4] + \",\"+ seg_val[5] + \",\"\n\t\t\t\t\t+ seg_val[6] + \",\"+ seg_val[7] + \"]\");\n\t\t\t\n\t\t\tdouble thresh = 140;\n\t\t\tdouble score = 0;\n\n\t\t\tfor(double val:seg_val){\n\t\t\t\tif (val<=thresh){\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(score<8){\n\t\t\t\tscore += mContours.size()/7;\n\t\t\t\tscore = Math.min(8,score);\n\t\t\t}\n\n\n\n\t\t\tLog.v(TAG, \"score: \" +score);\n\t\t\tLog.v(TAG, \"Contours count: \" + mContours.size());\n\t\t\tLog.v(TAG, \"Border size: \" + border.size());\n\t\t\tImgproc.drawContours(sample, mContours, -1, CONTOUR_COLOR);\n\t\t\tImgproc.drawContours(mask, mContours, -1, COLOR_WHITE, -1);\n\t\t\tborders = mask;\n\n\t\t\t//display image with contours\n\t\t\tUtils.matToBitmap(sample, bitmap_sample);\n\t\t\timgPreview.setImageBitmap(bitmap_sample);\n\t\t\timgPreview.setFocusable(true);\n\n\t\t\treturn score;\n\n\t\t\t//\t\t\t\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn -1;\n\t}", "public Bitmap getFinalShapesImage();", "private void classifyTestImages() throws FileNotFoundException, UnsupportedEncodingException {\n PrintWriter writer = new PrintWriter(\"result.txt\", \"UTF-8\");\n writer.println(\"#Authors: Thomas Sarlin & Petter Poucette\");\n\n ArrayList<Image> images = testReader.getImages();\n double activationResult[]=new double[4];\n int bestGuess;\n for (Image image : images) {\n for (int j = 0; j < 4; j++)\n activationResult[j] = activationFunction\n .apply(sumWeights(j, image));\n\n bestGuess = getBestGuess(activationResult);\n writer.println(image.getName() + \" \" + bestGuess);\n }\n writer.close();\n }", "public ArrayList<Double> calculateOutput(){\n for(int i = 0; i < inputSize; i++){\n network.get(0).get(i).setInput(inputs.get(i));\n }\n //Make it go through each node in the network and calculate output for each of them top down\n for(int i = 0; i < numOutputs; i++){\n output.set(i, network.get(layers-1).get(i).calculateOutput());\n }\n return output;\n }", "public String getImage() { return image; }", "@Override\n\n protected Integer doInBackground(Integer... params) {\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5f, 1.0f);\n\n //Pass input into the tensorflow\n tf.feed(INPUT_NAME, floatValues, 1, 224, 224, 3);\n\n //compute predictions\n tf.run(new String[]{OUTPUT_NAME});\n\n //copy the output into the PREDICTIONS array\n tf.fetch(OUTPUT_NAME, PREDICTIONS);\n\n //Obtained highest prediction\n Object[] results = argmax(PREDICTIONS);\n\n\n int class_index = (Integer) results[0];\n float confidence = (Float) results[1];\n\n\n try {\n\n final String conf = String.valueOf(confidence * 100).substring(0, 5);\n\n //Convert predicted class index into actual label name\n final String label = ImageUtils.getLabel(getAssets().open(\"labels.json\"), class_index);\n\n\n //Display result on UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n progressBar.dismiss();\n resultView.setText(label + \" : \" + conf + \"%\");\n\n }\n });\n\n } catch (Exception e) {\n\n\n }\n\n\n return 0;\n }", "public Mat getConvertedImage() {\n return this.convertedImage;\n }", "public byte[] getImageBytes()\n {\n byte[] buff = null;\n \n try\n {\n ByteArrayOutputStream bos = new ByteArrayOutputStream() ;\n ImageIO.write(img, \"jpg\", bos);\n buff = bos.toByteArray();\n bos.flush();\n bos.close();\n }\n catch(Exception ex)\n {\n System.out.println(\"Problem Serializeing PicNode\");\n ex.printStackTrace();\n }\n return buff;\n }", "public ImageContainer getImage(String username, String imageName) {\r\n\t\tImageContainer ic;\r\n\t\tPoint p = StaticFunctions.hashToPoint(username, imageName);\r\n\t\t//If the image is saved on the bootstrap, loadImageContainer, otherwise start routing to the destinationPeer \r\n\t\tif(lookup(p)) {\r\n\t\t\ttry {\r\n\t\t\t\tic = loadImageContainer(username, imageName);\r\n\t\t\t\treturn ic;\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tString destinationPeerIP = routing(p).getIp_adresse();\r\n\t\t\tImage img = new PeerClient().getImage(destinationPeerIP, username, imageName);\r\n\t\t if(img != null) {\r\n\t\t \t ic = RestUtils.convertImgToIc(img);\r\n\t\t \t return ic;\r\n\t\t }\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\r\n\t}", "static WGraphP4<Pixel> imageToGraph(BufferedImage image,\r\n Distance<Pixel> pd) {\r\n WGraphP4<Pixel> g = new WGraphP4<Pixel>();\r\n ArrayList<Pixel> pix = new ArrayList<Pixel>();\r\n int height = image.getHeight();\r\n int width = image.getWidth();\r\n for (int row = 0; row < height; row++) {\r\n for (int col = 0; col < width; col++) {\r\n Pixel v2 = new Pixel(col, row, image.getRGB(col, row));\r\n pix.add(v2);\r\n GVertex<Pixel> g2 = new GVertex<Pixel>(v2, g.nextID());\r\n g.addVertex(g2);\r\n if (col > 0) {\r\n Pixel v1 = pix.get(pix.size() - 2);\r\n double d = pd.distance(v1, v2);\r\n GVertex<Pixel> g1 = new GVertex<Pixel>(v1, g.id() - 2);\r\n g.addEdge(g1, g2, d);\r\n // System.out.println(g1.data().row() + \" \" +\r\n // g1.data().col());\r\n // System.out.println(g2.data().row() + \" \" +\r\n // g2.data().col());\r\n }\r\n if (row > 0) {\r\n Pixel v1 = pix.get(pix.size() - width - 1);\r\n double d = pd.distance(v1, v2);\r\n GVertex<Pixel> g1 = new GVertex<Pixel>(v1,\r\n g.id() - width - 1);\r\n g.addEdge(g1, g2, d);\r\n }\r\n }\r\n }\r\n\r\n /*\r\n * for (WEdge<Pixel> i : g.allEdges()) { Pixel d = i.source().data();\r\n * Pixel e = i.end().data(); // System.out.println(d.col() + \" \" +\r\n * d.row()); System.out.println(d.row() + \" \" + d.col());\r\n * System.out.println(e.row() + \" \" + e.col()); }\r\n */\r\n\r\n return g;\r\n }", "public void run(ImageProcessor ip) {\n ImagePlus impDark = WindowManager.getImage(DarkiD);\n ImageStack DarkStack = impDark.getStack();\n int width = DarkStack.getProcessor(1).getWidth();\n int height = DarkStack.getProcessor(1).getHeight();\n int dim = width * height;\n \n // Let's assign & declare all the local variables. \n //The pix-by-pix sum of the stack\n double[] sum;\n sum = new double[dim];\n \n //The pix-by-pix average of the stack\n double[] average;\n average = new double[dim];\n \n //The DARK signal pixel array\n double[] DARKpixels;\n DARKpixels = new double[dim];\n \n /* Scan the stack to weed out pics w/ pixel > saturation, then sum \n pix-by-pix through the stack. */\n int k = 0;\n for(int i=1; i<=DarkStack.getSize(); i++){\n double imgMax = DarkStack.getProcessor(i).getStatistics().max;\n if (imgMax < saturation){\n short[] pixels = (short[]) (DarkStack.getPixels(i));\n for (int j=0; j<dim; j++){\n sum[j] += (double)(pixels[j] & 0xffff);\n }\n } else \n k++;\n } \n \n // Average pix-by-pix\n for(int i=0; i<dim; i++){\n average[i] = (double) (sum[i]/(DarkStack.getSize() - k ));\n }\n \n /* Subtract off READ signal and normalize per exposure time. If \n a pixel has a value less than 0, then set it to zero.\n */\n ImagePlus impREAD = WindowManager.getImage(READiD);\n ImageProcessor READ_ip = impREAD.getProcessor();\n float[] READpixels = (float[]) ( READ_ip.getPixels() ); \n for(int i =0; i<dim; i++){\n DARKpixels[i] = (double)( (average[i] - READpixels[i])\n /(DarkTime - READTime) );\n if (DARKpixels[i]< 0)\n DARKpixels[i]=0; \n }\n \n // Make DARK image from pixels then show it. \n ImageProcessor DARK_ip = new FloatProcessor(width, \n height,DARKpixels); \n ImagePlus impDARK = new ImagePlus(\"DARK\",DARK_ip);\n impDARK.show();\n impDARK.draw();\n IJ.run(impDARK, \"Enhance Contrast\", \"saturated=0.35\");\n \n //Print out specs of the DARK image.\n ResultsTable rt = new ResultsTable();\n rt.incrementCounter();\n rt.addValue(\"Mean\",DARK_ip.getStatistics().mean);\n rt.addValue(\"Max\",DARK_ip.getStatistics().max);\n rt.addValue(\"Min\",DARK_ip.getStatistics().min);\n rt.addValue(\"Std.Dev.\",DARK_ip.getStatistics().stdDev);\n rt.showRowNumbers(false);\n rt.show(\"Results\");\n \n\t}", "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "public ImageInfo getImage() {\n return image;\n }", "public abstract Image getImage();", "public abstract Image getImage();", "public Image getTwo();", "public float getIMG(){\n return profile.getImg();\n }", "public Image getOne();", "public void printResult(String image, String value) {\n\t\ttry {\n\t\t\t// Read in the image.\n\t\t\tBufferedImage img = new BufferedImage(I1.getRowDimension(), \n\t\t\t\t\tI1.getColumnDimension(),\n\t\t\t\t BufferedImage.TYPE_INT_RGB);\n\t\t\tdouble n[][] = new double[I1.getRowDimension()][I1.getRowDimension()];\n\t\t\tif (value.equals(\"X\"))\n\t\t\t\tn = normalize255(this.Nx);\n\t\t\telse if (value.equals(\"Y\"))\n\t\t\t\tn = normalize255(this.Ny);\n\t\t\telse if (value.equals(\"Z\"))\n\t\t\t\tn = normalize255(this.Nz);\n\t\t\telse if (value.equals(\"D\"))\n\t\t\t\tn = normalize255(this.D);\n\t\t\t// Transform the image into a grayscale image.\n\t\t\tfor (int i=0; i < I1.getRowDimension(); i++) {\n\t\t\t\tfor (int j=0; j < I1.getColumnDimension(); j++) {\n\t\t\t\t\tint albedo = (int) n[i][j];\n\t\t\t\t\timg.setRGB(i, j, new Color(albedo, albedo, albedo).getRGB());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tImageIO.write(img, \"png\", new File(image));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error reading \" + \"yeah\");\n\t\t}\n\t}", "public com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform() {\n return imageByTransform_;\n }", "public void predict(final Bitmap bitmap) {\n new AsyncTask<Integer, Integer, Integer>() {\n\n @Override\n\n protected Integer doInBackground(Integer... params) {\n\n //Resize the image into 224 x 224\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5f, 1.0f);\n\n //Pass input into the tensorflow\n tf.feed(INPUT_NAME, floatValues, 1, 224, 224, 3);\n\n //compute predictions\n tf.run(new String[]{OUTPUT_NAME});\n\n //copy the output into the PREDICTIONS array\n tf.fetch(OUTPUT_NAME, PREDICTIONS);\n\n //Obtained highest prediction\n Object[] results = argmax(PREDICTIONS);\n\n\n int class_index = (Integer) results[0];\n float confidence = (Float) results[1];\n\n\n try {\n\n final String conf = String.valueOf(confidence * 100).substring(0, 5);\n\n //Convert predicted class index into actual label name\n final String label = ImageUtils.getLabel(getAssets().open(\"labels.json\"), class_index);\n\n\n //Display result on UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n progressBar.dismiss();\n resultView.setText(label + \" : \" + conf + \"%\");\n\n }\n });\n\n } catch (Exception e) {\n\n\n }\n\n\n return 0;\n }\n\n\n }.execute(0);\n\n }", "static void processPicture(byte[][] img) {\n\t\tcontrastImage(img);\n\t\t//generateDebugImage(img);\n\t\t\n\t\t\n\t\tPoint[] ergs = raster(img);\n\t\tprintPoints(ergs);\n\t\tergs = Cluster.cluster(ergs);\n\t\tprintPoints(ergs);\n\t\tBlume[] blumen = Radiuserkennung.erkennen(img, ergs);\n\t\t\n\t\t//Blumen veröffentlichen!\n\t\tDaten.setNewBlumen(blumen);\n\t\t\n\t\tprintBlumen(blumen);\n\t}", "public Image getTrebleClef();", "public RecognitionResult recognize(Mat inputImage){\n return recoApp.recognition(inputImage);\n }", "public Image getThree();", "public synchronized byte[] computeImage(MessageComputeImage message) {\n\t\tBufferedImage image = new BufferedImage(message.width, message.height,\n\t\t\t\tBufferedImage.TYPE_INT_RGB);\n\n\t\tif (generators.isEmpty()) {\n\t\t\timage.getGraphics().drawString(\n\t\t\t\t\t\"Nici un sclav nu gandeste imaginea.\", 10, 20);\n\t\t}\n\n\t\tfor (int i = 0; i < generators.size(); ++i) {\n\t\t\ttry {\n\t\t\t\tif (i + 1 < generators.size())\n\t\t\t\t\tgenerators\n\t\t\t\t\t\t\t.get(i)\n\t\t\t\t\t\t\t.getOutput()\n\t\t\t\t\t\t\t.writeObject(\n\t\t\t\t\t\t\t\t\tnew MessageComputeImageLine(message, i\n\t\t\t\t\t\t\t\t\t\t\t* (message.height / generators\n\t\t\t\t\t\t\t\t\t\t\t\t\t.size()), (i + 1)\n\t\t\t\t\t\t\t\t\t\t\t* (message.height / generators\n\t\t\t\t\t\t\t\t\t\t\t\t\t.size())));\n\t\t\t\telse\n\t\t\t\t\tgenerators\n\t\t\t\t\t\t\t.get(i)\n\t\t\t\t\t\t\t.getOutput()\n\t\t\t\t\t\t\t.writeObject(\n\t\t\t\t\t\t\t\t\tnew MessageComputeImageLine(message, i\n\t\t\t\t\t\t\t\t\t\t\t* (message.height / generators\n\t\t\t\t\t\t\t\t\t\t\t\t\t.size()), message.height));\n\t\t\t} catch (IOException ex) {\n\t\t\t\tSystem.err\n\t\t\t\t\t\t.println(\"Eroare la trimiterea mesajelor catre sclavi. IO : \"\n\t\t\t\t\t\t\t\t+ ex);\n\t\t\t}\n\t\t}\n\t\tGraphics canvas = image.getGraphics();\n\t\tfor (int i = 0; i < generators.size(); ++i) {\n\t\t\tMessageComputeImageLine computed_line = null;\n\t\t\ttry {\n\t\t\t\tcomputed_line = (MessageComputeImageLine) pipe.readObject();\n\t\t\t} catch (Exception ex) {\n\t\t\t\tSystem.err\n\t\t\t\t\t\t.println(\"Eroare la primirea raspunsului din RMIThread. \"\n\t\t\t\t\t\t\t\t+ ex);\n\t\t\t}\n\t\t\tBufferedImage computed_image = null;\n\t\t\ttry {\n\t\t\t\tcomputed_image = ImageIO.read(new ByteArrayInputStream(\n\t\t\t\t\t\tcomputed_line.rez));\n\t\t\t} catch (IOException ex) {\n\t\t\t\tLogger.getLogger(ImageGenerator.class.getName()).log(\n\t\t\t\t\t\tLevel.SEVERE, null, ex);\n\t\t\t}\n\t\t\tcanvas.drawImage(computed_image, 0, computed_line.line_begin, null);\n\t\t\ttry {\n\t\t\t\tImageIO.write(computed_image, \"png\", new File(\n\t\t\t\t\t\t\"/Users/rhasna/manimag/imageGen\" + i + \".png\"));\n\t\t\t} catch (IOException ex) {\n\t\t\t\tLogger.getLogger(ImageGenerator.class.getName()).log(\n\t\t\t\t\t\tLevel.SEVERE, null, ex);\n\t\t\t}\n\t\t}\n\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\ttry {\n\t\t\tImageIO.write(image, \"png\", baos);\n\t\t} catch (IOException ex) {\n\t\t\tLogger.getLogger(ImageGenerator.class.getName()).log(Level.SEVERE,\n\t\t\t\t\tnull, ex);\n\t\t}\n\t\treturn baos.toByteArray();\n\t}", "public BufferedImage getImage() {\n\t\t return img;\n\t}", "public PImage getImage() {\n return this.image;\n }", "public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}", "void process(Mat image);", "Imagem getImagem();", "public String getImageUrl();", "public BufferedImage getImage() {\t\r\n\t\treturn this.image;\t\t\t\r\n\t}", "public Image getQuaverRest();", "private Mat processFrame(Mat frame) {\n Imgproc.cvtColor(frame, frame, Imgproc.COLOR_RGBA2RGB);\n // Forward image through network.\n Mat blob = Dnn.blobFromImage(frame, IN_SCALE_FACTOR,\n new Size(IN_WIDTH, IN_HEIGHT),\n new Scalar(MEAN_VAL, MEAN_VAL, MEAN_VAL), false, false);\n net.setInput(blob);\n Mat detections = net.forward();\n int cols = frame.cols();\n int rows = frame.rows();\n Size cropSize;\n if ((float)cols / rows > WH_RATIO) {\n cropSize = new Size(rows * WH_RATIO, rows);\n } else {\n cropSize = new Size(cols, cols / WH_RATIO);\n }\n int y1 = (int)(rows - cropSize.height) / 2;\n int y2 = (int)(y1 + cropSize.height);\n int x1 = (int)(cols - cropSize.width) / 2;\n int x2 = (int)(x1 + cropSize.width);\n Mat subFrame = frame.submat(y1, y2, x1, x2);\n cols = subFrame.cols();\n rows = subFrame.rows();\n detections = detections.reshape(1, (int)detections.total() / 7);\n for (int i = 0; i < detections.rows(); ++i) {\n double confidence = detections.get(i, 2)[0];\n if (confidence > THRESHOLD) {\n int classId = (int)detections.get(i, 1)[0];\n int xLeftBottom = (int)(detections.get(i, 3)[0] * cols);\n int yLeftBottom = (int)(detections.get(i, 4)[0] * rows);\n int xRightTop = (int)(detections.get(i, 5)[0] * cols);\n int yRightTop = (int)(detections.get(i, 6)[0] * rows);\n // Draw rectangle around detected object.\n Imgproc.rectangle(subFrame, new Point(xLeftBottom, yLeftBottom),\n new Point(xRightTop, yRightTop),\n new Scalar(0, 255, 0));\n String label = classNames[classId] + \": \" + confidence;\n int[] baseLine = new int[1];\n Size labelSize = Imgproc.getTextSize(label, Core.FONT_HERSHEY_SIMPLEX, 0.5, 1, baseLine);\n // Draw background for label.\n Imgproc.rectangle(subFrame, new Point(xLeftBottom, yLeftBottom - labelSize.height),\n new Point(xLeftBottom + labelSize.width, yLeftBottom + baseLine[0]),\n new Scalar(255, 255, 255), Core.FILLED);\n // Write class name and confidence.\n Imgproc.putText(subFrame, label, new Point(xLeftBottom, yLeftBottom),\n Core.FONT_HERSHEY_SIMPLEX, 0.5, new Scalar(0, 0, 0));\n }\n }\n\n return frame;\n }", "public String detectAndDecode(Mat img) {\n return detectAndDecode_2(nativeObj, img.nativeObj);\n }", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "public void testConvolution2() {\n ConvolutionLayer cl1 = new ConvolutionLayer(28, 28, 32, 5, 1, 1,ActivationFunction.LEAKYRELU);\r\n cl1.setName(\"Conv1\");\r\n PoolLayer pl1 = new PoolLayer(28, 28, 32, 2, 2,1);\r\n pl1.setName(\"Pool1\");\r\n\r\n FuzzyficationLayer fl = new FuzzyficationLayer(pl1.getNrOfOutputs(), 10, 1);\r\n\r\n Layer full = new Layer(fl.getNrOfOutputs(), 0, 10, ActivationFunction.CESIGMOID);\r\n full.setName(\"full\");\r\n full.setDropRate(.003f);\r\n\r\n DeepLayer dl = new DeepLayer(new LearningRateConst(LEARNING_RATE), cl1, pl1, fl, full);\r\n dl.setCostFunction(new CrossEntropyCostFunction());\r\n\r\n BinImageReader bir = new BinImageReader(\"/data/train-images.idx3-ubyte.bin\");\r\n fmatrix images = bir.getResult();\r\n System.out.println(images.getSizeAsString());\r\n\r\n BinLabelReader blr = new BinLabelReader(\"/data/train-labels.idx1-ubyte.bin\");\r\n fmatrix trainSetLabels = blr.getResult();\r\n System.out.println(trainSetLabels.getSizeAsString());\r\n\r\n Random r = new Random(System.currentTimeMillis());\r\n dl.randomizeWeights(r, -.1f, .1f);\r\n\r\n int maxImage = images.getNrOfColumns();\r\n fmatrix image = new fmatrix(1, images.getNrOfColumns());\r\n fmatrix target = new fmatrix(1, 10);\r\n\r\n System.out.println(image.getSizeAsString());\r\n String weightFolder = \"weights/\" + dl.getTrainingStartTimeAsFolder();\r\n for (int i = 0; i < TRAIN_ITERATIONS; ++i) {\r\n target.reset();\r\n for (int b = 0; b < 1; ++b) {\r\n int nextImage = r.nextInt(maxImage);\r\n images.getRow(nextImage, b, image);\r\n\r\n int digit = (int) trainSetLabels.get(0, nextImage);\r\n target.set(b, digit, 1);\r\n }\r\n dl.train(i, image, target, TrainingMode.BATCH);\r\n// if (i == 0) {\r\n// dl.writeOutputImages();\r\n// }\r\n if (i % BATCH_SIZE == 0) {\r\n dl.adaptWeights(i, BATCH_SIZE);\r\n }\r\n\r\n if (i % WEIGHT_DEBUG_CYCLE == 0) {\r\n dl.writeWeightImages(weightFolder, i);\r\n }\r\n }\r\n dl.writeWeightImages(weightFolder, TRAIN_ITERATIONS);\r\n\r\n DeepLayerWriter dlw = new DeepLayerWriter();\r\n Path export = Paths.get(System.getProperty(\"user.home\"), \".nn\", weightFolder, \"final.nn\");\r\n dlw.writeDeepLayer(export, dl);\r\n testDigitRecognition(dl, 1, r);\r\n }", "public void testConvolution() {\n ConvolutionLayer cl1 = new ConvolutionLayer(28, 28, 32, 5, 1, 1, ActivationFunction.RELU);\r\n cl1.setName(\"Conv1\");\r\n PoolLayer pl1 = new PoolLayer(28, 28, 32, 2, 2, 1);\r\n pl1.setName(\"Pool1\");\r\n ConvolutionLayer cl2 = new ConvolutionLayer(14, 14, 32, 64, 5, 1, 1, ActivationFunction.LEAKYRELU);\r\n cl2.setName(\"Conv2\");\r\n PoolLayer pl2 = new PoolLayer(14, 14, 64, 2, 2, 1);\r\n pl2.setName(\"Pool2\");\r\n Layer full = new Layer(pl2.getNrOfOutputs(), 1, 10, ActivationFunction.CESIGMOID);\r\n full.setName(\"full\");\r\n full.setDropRate(.3f);\r\n\r\n DeepLayer dl = new DeepLayer(new LearningRateConst(LEARNING_RATE), cl1, pl1, cl2, pl2, full);\r\n dl.setCostFunction(new CrossEntropyCostFunction());\r\n\r\n BinImageReader bir = new BinImageReader(\"/data/train-images.idx3-ubyte.bin\");\r\n fmatrix images = bir.getResult();\r\n System.out.println(images.getSizeAsString());\r\n\r\n BinLabelReader blr = new BinLabelReader(\"/data/train-labels.idx1-ubyte.bin\");\r\n fmatrix trainSetLabels = blr.getResult();\r\n System.out.println(trainSetLabels.getSizeAsString());\r\n\r\n Random r = new Random(System.currentTimeMillis());\r\n dl.randomizeWeights(r, -.1f, .1f);\r\n\r\n int maxImage = images.getNrOfColumns();\r\n fmatrix image = new fmatrix(1, images.getNrOfColumns());\r\n fmatrix target = new fmatrix(1, 10);\r\n\r\n System.out.println(image.getSizeAsString());\r\n String weightFolder = \"weights/\" + dl.getTrainingStartTimeAsFolder();\r\n for (int i = 0; i < TRAIN_ITERATIONS; ++i) {\r\n target.reset();\r\n for (int b = 0; b < 1; ++b) {\r\n int nextImage = r.nextInt(maxImage);\r\n images.getRow(nextImage, b, image);\r\n\r\n int digit = (int) trainSetLabels.get(0, nextImage);\r\n target.set(b, digit, 1);\r\n }\r\n dl.train(i, image, target, TrainingMode.BATCH);\r\n// if (i == 0) {\r\n// dl.writeOutputImages();\r\n// }\r\n if (i % BATCH_SIZE == 0) {\r\n dl.adaptWeights(i, BATCH_SIZE);\r\n }\r\n\r\n if (i % WEIGHT_DEBUG_CYCLE == 0) {\r\n dl.writeWeightImages(weightFolder, i);\r\n }\r\n }\r\n\r\n dl.writeWeightImages(weightFolder, TRAIN_ITERATIONS);\r\n testDigitRecognition(dl, 1, r);\r\n }", "public interface Recognition {\n\n /**\n * Recognition class to implement. Should do the image recognition on the image and return the found classes.\n *\n * @param image image to process.\n * @return List of Result objects.\n */\n public List<Result> recognize(IplImage image);\n\n}", "private double[][] getInputData(BufferedImage picture) {\n\t\t\n\t\tArrayData image = ImageProcess.loadImageDataFromBI(picture);\n\t\t\n\t\tdouble[][] result = new double[image.getH()*image.getW()][3];\n\n\t\tfor(int h = 0; h < image.getH(); h++)\n\t\t\tfor(int w = 0; w < image.getW(); w++) {\n\t\t\t\tdouble R = image.get(0, h, w);\n\t\t\t\tdouble G = image.get(1, h, w);\n\t\t\t\tdouble B = image.get(2, h, w);\n//\t\t\t\t// R\n\t\t\t\tresult[ h*image.getW() + w ][0] = (double) R/255.0;\n//\t\t\t\t// G\n\t\t\t\tresult[ h*image.getW() + w ][1] = (double) G/255.0;\n\t\t\t\t// B\n\t\t\t\tresult[ h*image.getW() + w ][2] = (double) B/255.0;\n\t\t\t\tdouble Lumi = 0.299*R + 0.587*G + 0.114*B;\n//\t\t\t\tresult[ h*image.getW() + w ][0] = Lumi/255; \t// Luminancja\n\t\t\t\tdouble Odc = Math.atan2(Math.sqrt(3)*(G-B), 2*R-G-B);\n//\t\t\t\tresult[ h*image.getW() + w ][0] = Odc;\t\t\t// Odcień\n\t\t\t\tdouble maks = Math.max(R,G);\n\t\t\t\tmaks = Math.max(maks,B);\n\t\t\t\tdouble min = Math.min(R, G);\n\t\t\t\tmin = Math.min(min, B);\n\t\t\t\tdouble Nas = (maks-min)/maks;\n\t\t\t\tif(Nas > 1.0 || Nas < 0.0)\n\t\t\t\t\tNas = 0.0;\n//\t\t\t\tresult[ h*image.getW() + w ][1] = Nas; \t\t\t// Nasycenie\n\t\t\t}\n\t\t\n\t\treturn result;\n\t}", "public Image getImage() {\r\n return image;\r\n }", "public Detections recognizeImage(Image image, int rotation) {\n\n Bitmap rgbFrameBitmap = Transform.convertYUVtoRGB(image);\n\n\n if (image.getFormat() != ImageFormat.YUV_420_888) {\n // unsupported image format\n Logger.addln(\"\\nWARN YoloHTTP.recognizeImage() unsupported image format\");\n return new Detections();\n }\n //return recognize(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkMaxAreaRectangle(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n //return frameworkNineBoxes(Transform.yuvBytes(image), image.getWidth(),image.getHeight(),rotation, rgbFrameBitmap,image.getHeight()/3,image.getWidth()/3,image.getHeight()/3,image.getWidth()/3);\n //return frameworkQuadrant(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n return frameworkMaxAreaRectBD(Transform.yuvBytes(image), image.getWidth(),image.getHeight(), rotation, rgbFrameBitmap);\n\n }", "public String getImage()\n {\n return image;\n }", "private void KirimImage(){\n try {\n DatagramSocket clientsocket=new DatagramSocket(portimage);\n byte[] receivedata = new byte[92024];\n DatagramPacket kirim = new DatagramPacket(receivedata, receivedata.length);\n clientsocket.receive(kirim); \n byte[] buff = kirim.getData();\n \n String pesan = new String(buff, 0, buff.length);\n pesan=pesan.trim();\n// System.out.println(\"pesan = \" + pesan);\n \n if (pesan.equalsIgnoreCase(\"stop\")) {\n clientsocket.close();\n System.exit(0);\n } else {\n InputStream in = new ByteArrayInputStream(buff);\n BufferedImage img = ImageIO.read(in);\n ImageIO.write(img, \"jpg\", new File(\"D:\\\\NikokMenerima.jpg\"));\n ImageIcon set = new ImageIcon(img);\n Images.setIcon(set);\n clientsocket.close(); }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void deriveImage()\n\t{\n\n\t\t//img = new BufferedImage(dimx, dimy, BufferedImage.TYPE_INT_ARGB);\n\t\timg = null;\n\t\ttry{\n\t\t\timg = ImageIO.read(new File(\"src/input/World.png\"));\n\n\t\t}catch (IOException e){\n\t\t\tSystem.out.println(\"world image file error\");\n\t\t}\n\t\t//System.out.println(img.getHeight());\n\t\t//System.out.println(img.getWidth());\n//\t\tfloat maxh = -10000.0f, minh = 10000.0f;\n//\n//\t\t// determine range of tempVals s\n//\t\tfor(int x=0; x < dimx; x++)\n//\t\t\tfor(int y=0; y < dimy; y++) {\n//\t\t\t\tfloat h = tempVals [x][y];\n//\t\t\t\tif(h > maxh)\n//\t\t\t\t\tmaxh = h;\n//\t\t\t\tif(h < minh)\n//\t\t\t\t\tminh = h;\n//\t\t\t}\n\t\t\n\t\tfor(int x=0; x < dimx; x++)\n\t\t\tfor(int y=0; y < dimy; y++) {\n\t\t\t\t \t\n\t\t\t\t// find normalized tempVals value in range\n\t\t\t\t//float val = (tempVals [x][y] - minh) / (maxh - minh);\n\t\t\t\tfloat val = tempVals[x][y];\n\n\t\t\t\t//System.out.println(val);\n\n\t\t\t\tColor c = new Color(img.getRGB(x,y));\n\n\t\t\t\tif((c.getRed() > 50 && c.getGreen() > 100 && c.getBlue() < 200)) {\n\n\t\t\t\t\tif (val != 0.0f) {\n\t\t\t\t\t\tColor col = new Color(val, 0, 0);\n\t\t\t\t\t\timg.setRGB(x, y, col.getRGB());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\t\n\t}", "public void calculateOutput() {\n inputSum = 0.0;\n //for output (linear) neuron\n if (layer == 0) {\n for (int i = 0; i < inputs; ++i) {\n inputSum += weights[i] * network.getInput()[i];\n }\n }\n //for Sigmoidal neurons\n else {\n for(int i = 0; i < inputs; ++i) {\n inputSum += weights[i] * network.getNeurons()[layer - 1][i].output;\n }\n }\n if (enableConstAddend) {\n inputSum += weights[inputs];\n }\n output = activate(inputSum);\n }", "public String getImage() {\n return this.Image;\n }", "public Image getImage() {\n return image;\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public Image getFlat();", "public Image getImage() {\n\t\treturn image;\r\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "public double[] feedForward(BufferedImage img) {\n\n double[] out = new double[3];\n try {\n double[][][] input = MathTools.mapArray(ImageManager.convertRGB2D(ImageManager.getSquaredImage(img, imageSize)), 0, 255, 0, 1);\n\n Matrix[] in = new Matrix[3];\n\n for (int i = 0; i < in.length; i++) {\n in[i] = new Matrix(input[i]);\n }\n\n cnn.setInputs(in);\n\n out = cnn.feedForward();\n } catch (IOException e) {\n System.out.println(\"Erreur lors du chargement de l'image\");\n }\n\n repaint();\n\n return out;\n\n }", "public String getImage() {\n return image;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult recognize = mFacePlus.recognize(groupid_long, fileSrc);\n\t\t\t\tLog.e(TAG,fileSrc);\n//\t\t\t\t\tRecognizeReturn result = (RecognizeReturn) recognize.data;\n\t\t\t\tif(recognize.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + recognize.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tRecognizeReturn data = (RecognizeReturn) recognize.data;\n\t\t\t\t//一张图片里有几张脸\n\t\t\t\tint size = data.faceList.size();\n\t\t\t\tif(size==0){\n\t\t\t\t\tLog.e(TAG,\"图片没能识别出脸\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,\"识别出\"+size+\"张脸\");\n\t\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\t//第i张脸在group中的置信度 ,第0个置信度最高\n\t\t\t\t\tList<Person> personList = data.faceList.get(i).getCandidatePersonList();\n\t\t\t\t\tPerson person = personList.get(0);\n\t\t\t\t\tLog.e(TAG,\"该图片第\"+i+\"张脸最有可能是\"+person.getName());\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,data.toString());\n\t\t\t}", "public Image getImage() {\n\t\treturn image;\n\t}", "public Image getImage() {\n\t\treturn image;\n\t}", "public Image getImage() {\r\n\t\treturn image;\r\n\t}", "public java.lang.String getImage() {\n java.lang.Object ref = image_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n image_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getImage() {\n return image;\n }" ]
[ "0.6527052", "0.6527052", "0.6527052", "0.6383963", "0.6196859", "0.59612197", "0.5959726", "0.58410865", "0.5831646", "0.5745354", "0.57338554", "0.5637266", "0.5607247", "0.55943316", "0.55928636", "0.5587588", "0.5541302", "0.5538091", "0.5529124", "0.54893816", "0.5488112", "0.5483117", "0.54719824", "0.54667", "0.544997", "0.5431273", "0.5417789", "0.5409795", "0.5406722", "0.53922385", "0.53866357", "0.53783435", "0.53642726", "0.53624386", "0.5336347", "0.53284687", "0.53029263", "0.5290375", "0.5287186", "0.5269202", "0.5261004", "0.525623", "0.5250997", "0.5250969", "0.5234698", "0.521756", "0.5217016", "0.5217016", "0.5217016", "0.5210242", "0.52052915", "0.52052915", "0.5204981", "0.5202602", "0.519362", "0.5191216", "0.5187796", "0.5186896", "0.51801354", "0.517952", "0.51773554", "0.51711303", "0.51693356", "0.5164131", "0.5127509", "0.51263374", "0.5124685", "0.5122463", "0.51179576", "0.51165533", "0.51096237", "0.51033175", "0.50978345", "0.50954515", "0.50846535", "0.5084534", "0.50844115", "0.5081484", "0.5078557", "0.5074755", "0.50700015", "0.5069439", "0.50639665", "0.50581145", "0.50565857", "0.5050499", "0.50464743", "0.5046037", "0.5037718", "0.50363106", "0.50363106", "0.5035189", "0.5034766", "0.50318795", "0.50308913", "0.50307804", "0.50307804", "0.5027896", "0.502692", "0.5023287" ]
0.57712215
9
Transforms the image into a 28 by 28 image. It also boosts the black colours a bit to make the image the same as the data set.
private static BufferedImage transformImage(BufferedImage image) { // Scale image to desired dimension (28 x 28) Image tmp = image.getScaledInstance(28, 28, Image.SCALE_SMOOTH); BufferedImage scaledImage = new BufferedImage(28, 28, BufferedImage.TYPE_INT_ARGB); Graphics2D g2d = scaledImage.createGraphics(); g2d.drawImage(tmp, 0, 0, null); // Loop through each pixel of the new image for (int x = 0; x < 28; x++) { for (int y = 0; y < 28; y++) { // Get original color Color color = new Color(scaledImage.getRGB(x, y)); // Ignore white values if (color.getRGB() == -1) { continue; } // 'Boost' the grey values so they become more black float[] hsv = new float[3]; Color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), hsv); hsv[2] = (float) 0.5 * hsv[2]; int newColor = Color.HSBtoRGB(hsv[0], hsv[1], hsv[2]); // Save new color scaledImage.setRGB(x, y, newColor); } } // Free resources g2d.dispose(); return scaledImage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeGrayscale() {\n PixelReader pr = img.getPixelReader();\n WritableImage gray = new WritableImage((int) w, (int) h);\n PixelWriter pw = gray.getPixelWriter();\n int count = 0;\n for (int i = 0; i < (int) h; i++) {\n for (int j = 0; j < (int) w; j++) {\n count += 1;\n Color color = pr.getColor(j, i);\n //Reading each pixel and converting to Grayscale\n pw.setColor(j, i, new Color((color.getRed() * 0.3 + color.getGreen() * 0.59 + color.getBlue() * 0.11),\n (color.getRed() * 0.3 + color.getGreen() * 0.59 + color.getBlue() * 0.11),\n (color.getRed() * 0.3 + color.getGreen() * 0.59 + color.getBlue() * 0.11),\n 1.0));\n holderImg = gray;\n }\n }\n }", "public BufferedImage RescaleImage(BufferedImage timg) {\n int width = timg.getWidth();\n int height = timg.getHeight();\n\n int[][][] ImageArray = convertToArray(timg); // convert to array\n\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n ImageArray[x][y][1] = (int) (1.3 * ImageArray[x][y][1]); //r\n ImageArray[x][y][2] = (int) (1.3 * ImageArray[x][y][2]); //g\n ImageArray[x][y][3] = (int) (1.3 * ImageArray[x][y][3]); //b\n }\n }\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n if (ImageArray[x][y][1] < 0)\n ImageArray[x][y][1] = 0;\n if (ImageArray[x][y][2] < 0)\n ImageArray[x][y][2] = 0;\n if (ImageArray[x][y][3] < 0)\n ImageArray[x][y][3] = 0;\n if (ImageArray[x][y][1] > 255)\n ImageArray[x][y][1] = 255;\n if (ImageArray[x][y][2] > 255)\n ImageArray[x][y][2] = 255;\n if (ImageArray[x][y][3] > 255)\n ImageArray[x][y][3] = 255;\n }\n }\n return convertToBimage(ImageArray); //convert the array to BufferedImage\n }", "public void ConvertToGray()\n {\n int in_imgWidth = image.getWidth();\n int in_imgHeight = image.getHeight();\n int i,j;\n Raster in_raster = image.getRaster();\n BufferedImage out_img = new BufferedImage(in_imgWidth, in_imgHeight, \n BufferedImage.TYPE_BYTE_GRAY);\n WritableRaster out_raster = (WritableRaster)out_img.getRaster();\n for(j = 0; j < in_imgHeight; j++)\n {\n for(i = 0; i < in_imgWidth; i++)\n {\n /*int rgb = image.getRGB(i, j);\n int alpha = (rgb >> 24) & 0xFF;\n int red = (rgb >> 16) & 0xFF;\n int green = (rgb >> 8) & 0xFF;\n int blue = (rgb & 0xFF);\n int grayLevel = (red + green + blue)/3;\n int gray = (alpha << 24)|(grayLevel << 16)|(grayLevel << 8)|grayLevel; \n System.out.println(gray);\n out_img.setRGB(i, j, gray);*/\n float gray = (in_raster.getSample(i, j, 0)+\n in_raster.getSample(i, j, 1)+\n in_raster.getSample(i, j, 2))/3;\n out_raster.setSample(i, j, 0, gray);\n }\n }\n out_img.setData(out_raster);\n image = out_img;\n //SaveImage(out_img,\"color\");\n }", "public RGBImage makeRGBImage()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n \r\n\tshort[][] red = new short[rows][cols]; \r\n\tshort[][] green = new short[rows][cols]; \r\n\tshort[][] blue = new short[getHeight()][getWidth()]; \r\n \r\n\t@SuppressWarnings(\"unused\")\r\n\tdouble H, S, I;\r\n\tshort v1, v2, v3, h, h0, sat, intens;\r\n\tint sector;\r\n\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\r\n\t\tif (saturation[row][col] == 0)\r\n\t\t{\r\n\t\t red[row][col] = intensity[row][col];\r\n\t\t green[row][col] = intensity[row][col];\r\n\t\t blue[row][col] = intensity[row][col];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t h0 = hue[row][col];\r\n\r\n\t\t if (h0 <= (L-1)/3)\r\n\t\t {\r\n\t\t\th = (short)h0;\r\n\t\t\tsector = 1;\r\n\t\t }\r\n\t\t else if (h0 <= 2*(L-1)/3)\r\n\t\t {\r\n\t\t\th = (short)(h0 - (L-1)/3);\r\n\t\t\tsector = 2;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\th = (short)(h0 - 2*(L-1)/3);\r\n\t\t\tsector = 3;\r\n\t\t }\r\n\r\n\t\t H = h * 2 * Math.PI / (L-1);\r\n\r\n\t\t sat = saturation[row][col];\r\n\t\t S = (double)sat / (L-1);\r\n\r\n\t\t intens = intensity[row][col]; \r\n\t\t I = (double)intens / (L-1);\r\n\r\n\t\t v1 = (short)Math.round(intens * (1 - S));\r\n\t\t v1 = checkInterval (v1);\r\n\r\n\t\t v2 = (short)Math.round(intens * (1 + S * Math.cos(H)/\r\n\t\t\t\t\t\t Math.cos(Math.PI/3 - H) ));\r\n\t\t v2 = checkInterval (v2);\r\n \r\n\t\t v3 = (short)Math.round(3 * intens - (v1 + v2));\r\n\t\t v3 = checkInterval (v3);\r\n \r\n\t\t if (sector == 1)\r\n\t\t {\r\n\t\t\tblue[row][col] = v1;\r\n\t\t\tred[row][col] = v2;\r\n\t\t\tgreen[row][col] = v3;\r\n\t\t }\r\n\t\t else if (sector == 2)\r\n\t\t {\r\n\t\t\tred[row][col] = v1;\r\n\t\t\tgreen[row][col] = v2;\r\n\t\t\tblue[row][col] = v3;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\tgreen[row][col] = v1;\r\n\t\t\tblue[row][col] = v2;\r\n\t\t\tred[row][col] = v3;\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\t}\r\n \r\n\treturn new RGBImage (red, green, blue);\r\n }", "@Test\n public void testGray8BitIntoRGB() {\n BufferedImage im8bit = new BufferedImage(100, 100, BufferedImage.TYPE_BYTE_GRAY);\n WritableRaster raster8bit = im8bit.getRaster();\n int[] fill = new int[50 * 100];\n Arrays.fill(fill, 10);\n raster8bit.setSamples(0, 0, 50, 100, 0, fill);\n Arrays.fill(fill, 50);\n raster8bit.setSamples(50, 0, 50, 100, 0, fill);\n\n BufferedImage yellow = buildBGR(Color.YELLOW);\n\n // mosaic setting the nodata\n Range noData10 = RangeFactory.create((byte) 10, (byte) 10);\n RenderedOp mosaic = MosaicDescriptor.create(new RenderedImage[] { im8bit, yellow },\n javax.media.jai.operator.MosaicDescriptor.MOSAIC_TYPE_OVERLAY, null, null, null,\n new double[] { 0 }, new Range[] { noData10, null }, null);\n\n assertRGB(mosaic, false);\n\n // check top left quadrant, should be yellow\n int[] pixel = new int[3];\n mosaic.getData().getPixel(10, 10, pixel);\n assertArrayEquals(new int[] { 255, 255, 0 }, pixel);\n // check top right quadrant, should be 50 expanded to RGB\n mosaic.getData().getPixel(75, 10, pixel);\n assertArrayEquals(new int[] { 50, 50, 50 }, pixel);\n // check bottom left quadrant, should be yellow\n mosaic.getData().getPixel(25, 75, pixel);\n assertArrayEquals(new int[] { 255, 255, 0 }, pixel);\n // check bottom right quadrant, should be 50 expanded to RGB\n mosaic.getData().getPixel(75, 75, pixel);\n assertArrayEquals(new int[] { 50, 50, 50 }, pixel);\n }", "@Test\n public void testGray16BitIntoRGB() {\n BufferedImage im16bit = new BufferedImage(100, 100, BufferedImage.TYPE_USHORT_GRAY);\n WritableRaster raster16bit = im16bit.getRaster();\n int[] fill = new int[50 * 100];\n Arrays.fill(fill, 1000);\n raster16bit.setSamples(0, 0, 100, 50, 0, fill);\n Arrays.fill(fill, 30000);\n raster16bit.setSamples(0, 50, 100, 50, 0, fill);\n\n // mosaic setting the nodata\n\n BufferedImage yellow = buildBGR(Color.YELLOW);\n\n // mosaic setting the nodata\n Range noData1000 = RangeFactory.create(1000, 1000);\n RenderedOp mosaic = MosaicDescriptor.create(new RenderedImage[] { im16bit, yellow },\n javax.media.jai.operator.MosaicDescriptor.MOSAIC_TYPE_OVERLAY, null, null, null,\n new double[] { 0 }, new Range[] { noData1000, null }, null);\n\n // RenderedImageBrowser.showChain(mosaic);\n\n assertRGB(mosaic, false);\n\n // check top left quadrant, should be yellow (nodata in the gray one)\n int[] pixel = new int[3];\n mosaic.getData().getPixel(10, 10, pixel);\n assertArrayEquals(new int[] { 255, 255, 0 }, pixel);\n // check top right quadrant, should be yellow (nodata in the gray one)\n mosaic.getData().getPixel(75, 10, pixel);\n assertArrayEquals(new int[] { 255, 255, 0 }, pixel);\n // check bottom left quadrant, should be 30000 scaled down to byte\n mosaic.getData().getPixel(25, 75, pixel);\n assertArrayEquals(new int[] { 117, 117, 117 }, pixel);\n // check bottom right quadrant, should be 30000 scaled down to byte\n mosaic.getData().getPixel(75, 75, pixel);\n assertArrayEquals(new int[] { 117, 117, 117 }, pixel);\n }", "public void runDarken() {\n BufferedImage transformedImage = new BufferedImage(this.image.getWidth(), this.image.getHeight(), this.image.getType());\n\n try {\n for(int i = 0; i < this.image.getWidth(); i++) {\n for(int j = 0; j < this.image.getHeight(); j++) {\n transformedImage.setRGB(i, j, image.getRGB(i,j));\n }\n }\n float scaleFactor = 0.5f;\n RescaleOp op = new RescaleOp(scaleFactor, 0, null);\n transformedImage = op.filter(transformedImage, null);\n\n File outputImageFileLocation = new File(this.exportLocation);\n ImageIO.write(transformedImage, Files.getFileExtension(this.imageLocation), outputImageFileLocation);\n System.out.println(\"Success\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public BufferedImage toImage(){\n // turn it into a png\n int scale = 8;\n int w = 16;\n int h = 16;\n BufferedImage image = new BufferedImage(w * scale, h * scale, BufferedImage.TYPE_INT_ARGB);\n Color background = new Color(240, 240, 240);\n java.awt.Graphics gr = image.getGraphics();\n gr.setColor(background);\n gr.fillRect(0, 0, w * scale, h * scale);\n\n // so each 3 bytes describes 1 color?\n for(int i = 0; i < 256; ++i){\n\n // int r = palette.get(i * 3);\n // int g = palette.get(i * 3 + 1);\n // int b = palette.get(i * 3 + 2);\n\n // the Color() constructor that takes ints does values 0..255\n // but it has a float constructor, so why not divide\n //Color awtColor = new Color(r/64.0f, g/64.0f, b/64.0f);\n Color awtColor = getAwtColor(i);\n\n int row = i / 16;\n int col = i % 16;\n int y = row * scale;\n int x = col * scale;\n gr.setColor(awtColor);\n gr.fillRect(x, y, x + scale, y + scale);\n }\n\n return image;\n }", "private Bitmap processBitmap(Bitmap bitmap) {\n Bitmap pic = bitmap.copy(Bitmap.Config.ARGB_8888, true);\n\n // Get dimensions to base the following work off of.\n int picHeight = pic.getHeight();\n int picWidth = pic.getWidth();\n\n // In this block we're go to change every pixel to the closest 3-bit value. Then we're\n // going to \"dither\", or randomize, the adjacent, further pixels as to make the image\n // look more cleaner... for a 3-bit looking image that is... Ha!\n int x, y, oldPixel, newPixel;\n int quantError, rightPixel, bottomRightPixel, bottomPixel, bottomLeftPixel;\n for(y=0; y<picHeight; y++) {\n for(x=0; x<picWidth; x++) {\n oldPixel = pic.getPixel(x, y);\n newPixel = colorPicker(oldPixel);\n pic.setPixel(x, y, newPixel);\n\n quantError = computeQuantizationError(oldPixel, newPixel);\n\n if(x+1 < picWidth) { // Right pixel\n rightPixel = pic.getPixel(x+1, y);\n pic.setPixel(x+1, y, ditherPixel(rightPixel, quantError, 7.0/16.0));\n\n if (y+1 < picHeight) { // Right bottom pixel\n bottomRightPixel = pic.getPixel(x+1, y+1);\n pic.setPixel(x + 1, y+1, ditherPixel(bottomRightPixel, quantError, 1.0/16.0));\n }\n }\n if(y+1 < picHeight) { // Bottom pixel\n bottomPixel = pic.getPixel(x, y+1);\n pic.setPixel(x, y+1, ditherPixel(bottomPixel, quantError, 5.0/16.0));\n\n if (x-1 >= 0) { // Left bottom pixel\n bottomLeftPixel = pic.getPixel(x-1, y+1);\n pic.setPixel(x-1, y+1, ditherPixel(bottomLeftPixel, quantError, 3.0/16.0));\n }\n }\n }\n }\n\n return pic;\n }", "private static void normalizeColor(BufferedImage image) {\n\t\tHashMap<Integer, Integer> counts = colorHistogram(image);\r\n\t\tInteger[] a=sortmap(counts); // sorting the map\r\n\t\tInteger minFreq = 1000;\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\tif (counts.get(i) < minFreq) {\r\n\t\t\t\tminFreq = counts.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*\r\n\t\t*\r\n\t\t*Main logic to normalise the code\r\n\t\t* Assumption: all the colors which start from edges are the noise to the captcha or background.\r\n\t\t*/\r\n\t\tArrayList<Integer> topValues = new ArrayList<>();\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\ttopValues.add(i); // adding all the colors into the the array list topValues without any condition\r\n\t\t}\r\n\t\tInteger[] out=findEdgecolors(image); // findEdgecolors function returns the array of RGB values of colors which are at the edges of the picture\r\n\t\tfor(int i=0;i<out.length;i++)\r\n\t\t{\r\n\t\t\tif(out[i]!=null)\r\n\t\t\t\ttopValues.remove(out[i]); // remove the colours from topValues list if the color exist in the array returned by the findEdgecolors funciton (removing the colors which start from edges)\r\n\t\t}\r\n\t\t/*\r\n\t\t*Now topvalues consists of colors which are not in the edges of the clipped image\r\n\t\t*/\r\n\t\tint white_rgb = Color.YELLOW.getRGB();\r\n\t\tint black_rgb = Color.BLACK.getRGB();\r\n\r\n\t\tfor (int x=0; x<image.getWidth(); x++) {\r\n\t\t\tfor (int y=0; y<image.getHeight(); y++) {\r\n\t\t\t\tint pixelVal = image.getRGB(x, y);\r\n\r\n\t\t\t\tif (!topValues.contains(pixelVal)) {\r\n\t\t\t\t\timage.setRGB(x, y, white_rgb); //replacing the colors in topvalue with black\r\n\t\t\t\t} else {\r\n\t\t\t\t\timage.setRGB(x, y, black_rgb); // rest is colored with yellow (background)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (debug) {\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.write(image, \"gif\", new File(\"colorNormalized.gif\"));\r\n\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t}\r\n\t}", "public static Image toGreyscale(Image image) {\n\t\tWritableImage processedImage = new WritableImage(\n\t\t\t\t(int) image.getWidth(), (int) image.getHeight());\n\t\t\n\t\tPixelReader pr = image.getPixelReader();\n\t\tPixelWriter pw = processedImage.getPixelWriter();\n\t\t\n\t\t// Iterates through every pixel in the image\n\t\tfor (int y = 0; y < image.getHeight(); y++) {\n\t\t\tfor (int x = 0; x < image.getWidth(); x++) {\n\t\t\t\t\n\t\t\t\t// Gets the average red, green, and blue values of the pixel\n\t\t\t\tColor pixelColor = pr.getColor(x, y);\n\t\t\t\tdouble pixelRed = pixelColor.getRed();\n\t\t\t\tdouble pixelGreen = pixelColor.getGreen();\n\t\t\t\tdouble pixelBlue = pixelColor.getBlue();\n\t\t\t\tdouble pixelGrey = (pixelRed + pixelGreen + pixelBlue) / 3;\n\t\t\t\t\n\t\t\t\t// Sets the pixel's red, green, and blue values to the same average value.\n\t\t\t\tColor greyColor = new Color(pixelGrey,\n\t\t\t\t\t\t\t\t\t\t\tpixelGrey,\n\t\t\t\t\t\t\t\t\t\t\tpixelGrey,\n\t\t\t\t\t\t\t\t\t\t\tpixelColor.getOpacity());\n\t\t\t\t\n\t\t\t\tpw.setColor(x, y, greyColor);\n\t\t\t}\n\t\t}\n\t\treturn processedImage;\n\t}", "private Bitmap convertToGrayscale(Bitmap bmpOriginal) {\n int height = bmpOriginal.getHeight();\n int width = bmpOriginal.getWidth();\n Log.e(TAG, \"width=\" + width + \" height=\" + height);//default size is 640*480 px\n Bitmap bmpGrayscale = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);//\n Canvas c = new Canvas(bmpGrayscale);\n Paint paint = new Paint();\n ColorMatrix cm = new ColorMatrix();\n cm.setSaturation(0);\n ColorMatrixColorFilter f = new ColorMatrixColorFilter(cm);\n paint.setColorFilter(f);\n c.drawBitmap(bmpOriginal, 0, 0, paint);\n return bmpGrayscale;\n }", "private static BufferedImage getGrayScale(BufferedImage inputImage) {\n BufferedImage img = new BufferedImage(inputImage.getWidth(), inputImage.getHeight(),\n BufferedImage.TYPE_BYTE_GRAY);\n Graphics g = img.getGraphics();\n g.drawImage(inputImage, 0, 0, null);\n g.dispose();\n return img;\n }", "public void runLighten() {\n BufferedImage transformedImage = new BufferedImage(this.image.getWidth(), this.image.getHeight(), this.image.getType());\n\n try {\n for(int i = 0; i < this.image.getWidth(); i++) {\n for(int j = 0; j < this.image.getHeight(); j++) {\n transformedImage.setRGB(i, j, image.getRGB(i,j));\n }\n }\n float scaleFactor = 5.3f;\n RescaleOp op = new RescaleOp(scaleFactor, 0, null);\n transformedImage = op.filter(transformedImage, null);\n\n File outputImageFileLocation = new File(this.exportLocation);\n ImageIO.write(transformedImage, Files.getFileExtension(this.imageLocation), outputImageFileLocation);\n System.out.println(\"Success\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static Image filtroGris(Image img){\n WritableImage resultImg = new WritableImage((int)img.getWidth(),(int)img.getHeight());\n PixelReader pixelr = img.getPixelReader();\n PixelWriter pixelw = resultImg.getPixelWriter();\n \n for (int i = 0; i < img.getHeight(); i++) {\n for (int j = 0; j < img.getWidth(); j++) {\n Color color = pixelr.getColor(j, i);\n double red, green, blue;\n red = color.getRed();\n green = color.getGreen();\n blue = color.getBlue();\n red *= 255;\n green *= 255;\n blue *= 255;\n double gris = (red + green + blue)/3;\n pixelw.setColor(j, i, Color.rgb((int)gris, (int)gris, (int)gris));\n }\n }\n \n return resultImg;\n }", "public static BufferedImage convertRGBtoGray(Image image)\n {\n // Converts the Image to a Buffered image\n BufferedImage bfImage = convertImageToBufferedImage(image);\n\n // Gets the main color of the image\n int mainColor = getMainColor(bfImage);\n\n // For every pixels of the image\n for(int x = 0; x < bfImage.getWidth(null); x++)\n {\n for(int y = 0; y < bfImage.getHeight(null); y++)\n {\n // get the pixel\n int pixel = bfImage.getRGB(x, y);\n\n // If the pixel is not the main color, compute its gray value\n if(pixel != mainColor)\n {\n int gray = getGray(pixel);\n bfImage.setRGB(x, y, gray);\n }\n\n // If the pixel is the main color, set it to black\n else\n {\n bfImage.setRGB(x, y, 0xFF000000);\n }\n }\n }\n return bfImage;\n }", "public static BufferedImage convertG16ToRGB24(BufferedImage source) {\n int width = source.getWidth();\n int height = source.getHeight();\n BufferedImage retVal = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n\n Raster raster = source.getData();\n for (int x = 0; x < width; x++) {\n for (int y = 0; y < height; y++) {\n int original = raster.getSample(x, y, 0);\n //fixed addition of 1000m to get out of negative numbers everywhere\n //multiply by 100 to get the value in centimeters\n //this should comfortably fit in 24 bits considering lowest point\n //-418m and highest point 8800m give or take.\n //four bit left shift is for better visual representation of small\n //values (now they are represented with higher values of blue and\n //green)\n int replacement = ((original + 1000) * 100) << 4;\n\n retVal.setRGB(x, y, replacement);\n }\n }\n\n return retVal;\n }", "public static Image filtroGrisVerde(Image img){\n WritableImage resultImg = new WritableImage((int)img.getWidth(),(int)img.getHeight());\n PixelReader pixelr = img.getPixelReader();\n PixelWriter pixelw = resultImg.getPixelWriter();\n \n for (int i = 0; i < img.getHeight(); i++) {\n for (int j = 0; j < img.getWidth(); j++) {\n Color color = pixelr.getColor(j, i);\n double green;\n green = color.getGreen();\n green *= 255;\n pixelw.setColor(j, i, Color.rgb((int)green, (int)green, (int)green));\n }\n }\n \n return resultImg;\n }", "private void bufferImageGrey()\n {\n int col = 0;\n int[][] heightmap = parent.normaliseMap(parent.getPreviewMap(), 255);\n \n bufferedImage = createImage(heightmap.length, heightmap[0].length);\n Graphics bg = bufferedImage.getGraphics();\n for(int i = 0; i < heightmap.length; i ++) {\n for(int j = 0; j < heightmap[i].length - 1; j++) {\n col = heightmap[i][j];\n if(col > 255)\n col = 255;\n bg.setColor(new Color(col, col, col));\n bg.drawLine(i, j, i, j);\n }\n }\n }", "public BufferedImage RGB2GRAYSCALE() {\r\n\t\t\r\n\t\tdestImg = new BufferedImage(W, H, BufferedImage.TYPE_BYTE_GRAY);\r\n\t\tdestRaster = destImg.getRaster();\r\n\t\t\r\n\t\tfor(int row=0; row < H; row++) {\r\n\t\t\tfor(int col=0; col < W; col++) {\r\n\t\t\t\tfloat gray = 0;\r\n\t\t\t\tfor(int band=0; band<srcRaster.getNumBands(); band++) {\r\n\t\t\t\t\tint sample = srcRaster.getSample(col, row, band);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (band == 0) { //red\r\n\t\t\t\t\t\tgray += 0.299 * sample;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (band == 1) {\t//green\r\n\t\t\t\t\t\tgray += 0.587 * sample;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\telse if (band == 2) {\t//blue\r\n\t\t\t\t\t\tgray += 0.114 * sample;\r\n\t\t\t\t\t\tgray = Math.round(gray);\r\n\t\t\t\t\t\tdestRaster.setSample(col, row, 0, gray);\t//gray\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn destImg;\r\n\t}", "public void fromRGBImage(RGBImage image)\r\n {\r\n\tshort[][] red = image.getRed();\r\n\tshort[][] green = image.getGreen();\r\n\tshort[][] blue = image.getBlue();\r\n\r\n\tint rows = image.getHeight();\r\n\tint cols = image.getWidth();\r\n\r\n\tthis.hue = new short[rows][cols];\r\n\tthis.saturation = new short[rows][cols];\r\n\tthis.intensity = new short[rows][cols];\r\n \r\n\t@SuppressWarnings(\"unused\")\r\n\tdouble H, S, I;\r\n\t@SuppressWarnings(\"unused\")\r\n\tshort sector, r, g, b, h, t;\r\n\tdouble sum, t1, t2, theta, minrgb;\r\n\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\t\tr = red[row][col];\r\n\t\tg = green[row][col];\r\n\t\tb = blue[row][col];\r\n\t\tsum = r + g + b;\r\n\r\n\t\tif (r == g && r == b)\r\n\t\t{\r\n\t\t // black, gray or white\r\n\t\t hue[row][col] = (short)0;\r\n\t\t saturation[row][col] = (short)0;\r\n\t\t intensity[row][col] = (short)((r + g + b)/3);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n \r\n\t\t if (g == 0 && b == 0)\r\n\t\t {\r\n\t\t\t// only red\r\n\t\t\tt = 0;\r\n\t\t }\r\n\t\t else if ((r == 0 && b == 0) || (b == 0 && g == 0))\r\n\t\t {\r\n\t\t\t// only green or blue\r\n\t\t\tt = (L-1)/3;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\tt1 = 0.5 * ((r-g) + (r-b));\r\n\t\t\tt2 = Math.sqrt((r-g)*(r-g) + (r-b)*(g-b));\r\n\t\t\ttheta = Math.acos (t1/t2);\r\n\t\t\tt = (short)((L-1) * theta/(2*Math.PI));\r\n\t\t }\r\n\r\n\t\t if (b <= g)\r\n\t\t\thue[row][col] = t;\r\n\t\t else\r\n\t\t\thue[row][col] = (short)((L-1) - t);\r\n\r\n\t\t minrgb = r;\r\n\t\t if (g < minrgb)\r\n\t\t\tminrgb = g;\r\n\t\t if (b < minrgb)\r\n\t\t\tminrgb = b;\r\n \r\n\t\t saturation[row][col] = (short)\r\n\t\t\t((L-1)*(1 - minrgb*3.0/sum));\r\n\t\t intensity[row][col] = (short)(sum / 3.0);\r\n\t\t}\r\n\t }\r\n\t}\r\n\r\n }", "public void image_toGrey(int my_id) {\n int y1;\n //int offset = size;\n int myInitRow = (int)(((float)my_id/(float)nThreads)*((float)height/2.0f));\n int nextThreadRow = (int)(((float)(my_id+1)/(float)nThreads)*((float)height/2.0f));\n int myEnd, myOff;\n myOff = 2*width*myInitRow;\n myEnd = 2*width*nextThreadRow;\n for(int i=myOff; i < myEnd;i++) {\n y1 = data[i]&0xff;\n image[i] = 0xff000000 | (y1<<16) | (y1<<8) | y1;\n }\n }", "private void grayscale(){\n int len= currentIm.getRows() * currentIm.getCols();\n \n for (int p= 0; p < len; p= p+1) {\n int rgb= currentIm.getPixel(p);\n int red= DM.getRed(rgb);\n int blue= DM.getBlue(rgb);\n int green= DM.getGreen(rgb);\n int alpha= DM.getAlpha(rgb);\n \n double brightness = 0.3 * red + 0.6 * green + 0.1 * blue;\n \n currentIm.setPixel(p,\n (alpha << 24) | ((int)brightness << 16) | ((int)brightness << 8) | (int)brightness);\n \n }\n }", "@Test\n public void testGrayExpandNoData() {\n BufferedImage im8bit = new BufferedImage(100, 100, BufferedImage.TYPE_BYTE_GRAY);\n WritableRaster raster8bit = im8bit.getRaster();\n int[] fill = new int[50 * 100];\n Arrays.fill(fill, 10);\n raster8bit.setSamples(0, 0, 50, 100, 0, fill);\n Arrays.fill(fill, 50);\n raster8bit.setSamples(50, 0, 50, 100, 0, fill);\n\n // and now a ushort one, top half 1000, bottom half 30000\n BufferedImage im16bit = new BufferedImage(100, 100, BufferedImage.TYPE_USHORT_GRAY);\n WritableRaster raster16bit = im16bit.getRaster();\n Arrays.fill(fill, 1000);\n raster16bit.setSamples(0, 0, 100, 50, 0, fill);\n Arrays.fill(fill, 30000);\n raster16bit.setSamples(0, 50, 100, 50, 0, fill);\n\n // mosaic setting the nodata\n Range noData10 = RangeFactory.create((byte) 10, (byte) 10);\n Range noData1000 = RangeFactory.create(1000, 1000);\n RenderedOp mosaic = MosaicDescriptor.create(new RenderedImage[] { im8bit, im16bit },\n javax.media.jai.operator.MosaicDescriptor.MOSAIC_TYPE_OVERLAY, null, null, null,\n new double[] { 0 }, new Range[] { noData10, noData1000 }, null);\n\n // RenderedImageBrowser.showChain(mosaic);\n\n assertGray(mosaic, DataBuffer.TYPE_USHORT);\n\n // check top left quadrant, should 0, the output nodata\n int[] pixel = new int[1];\n mosaic.getData().getPixel(10, 10, pixel);\n assertArrayEquals(new int[] { 0 }, pixel);\n // check top right quadrant, should be 50 expanded to ushort\n mosaic.getData().getPixel(75, 10, pixel);\n assertArrayEquals(new int[] { 12850 }, pixel);\n // check bottom left quadrant, should be 30000\n mosaic.getData().getPixel(25, 75, pixel);\n assertArrayEquals(new int[] { 30000 }, pixel);\n // check bottom right quadrant, should be 50 expanded to ushort\n mosaic.getData().getPixel(75, 75, pixel);\n assertArrayEquals(new int[] { 12850 }, pixel);\n }", "public void filterImage() {\n\n if (opIndex == lastOp) {\n return;\n }\n\n lastOp = opIndex;\n switch (opIndex) {\n case 0:\n biFiltered = bi; /* original */\n return;\n case 1:\n biFiltered = ImageNegative(bi); /* Image Negative */\n return;\n\n case 2:\n biFiltered = RescaleImage(bi);\n return;\n\n case 3:\n biFiltered = ShiftImage(bi);\n return;\n\n case 4:\n biFiltered = RescaleShiftImage(bi);\n return;\n\n case 5:\n biFiltered = Add(bi, bi1);\n return;\n\n case 6:\n biFiltered = Subtract(bi, bi1);\n return;\n\n case 7:\n biFiltered = Multiply(bi, bi1);\n return;\n\n case 8:\n biFiltered = Divide(bi, bi1);\n return;\n\n case 9:\n biFiltered = NOT(bi);\n return;\n\n case 10:\n biFiltered = AND(bi, bi1);\n return;\n\n case 11:\n biFiltered = OR(bi, bi1);\n return;\n\n case 12:\n biFiltered = XOR(bi, bi1);\n return;\n\n case 13:\n biFiltered = ROI(bi);\n return;\n\n case 14:\n biFiltered = Negative_Linear(bi);\n return;\n\n case 15:\n biFiltered= Logarithmic_function(bi);\n return;\n\n case 16:\n biFiltered = Power_Law(bi);\n return;\n\n case 17:\n biFiltered = LUT(bi);\n return;\n\n case 18:\n biFiltered = Bit_planeSlicing(bi);\n return;\n\n case 19:\n biFiltered = Histogram(bi1,bi2);\n return;\n\n case 20:\n biFiltered = HistogramEqualisation(bi,bi3);\n return;\n\n case 21:\n biFiltered = Averaging(bi1);\n return;\n\n case 22:\n biFiltered = WeightedAveraging(bi1);\n return;\n\n case 23:\n biFiltered = fourNeighbourLaplacian(bi1);\n return;\n\n case 24:\n biFiltered= eightNeighbourLaplacian(bi1);\n return;\n\n case 25:\n biFiltered = fourNeighbourLaplacianEnhancement(bi1);\n return;\n\n case 26:\n biFiltered = eightNeighbourLaplacianEnhancement(bi1);\n return;\n\n case 27:\n biFiltered = Roberts(bi1);\n return;\n\n case 28:\n biFiltered = SobelX(bi1);\n return;\n\n case 29:\n biFiltered = SobelY(bi1);\n return;\n\n case 30:\n biFiltered = Gaussian(bi1);\n return;\n\n case 31:\n biFiltered = LoG (bi1);\n return;\n\n case 32:\n biFiltered = saltnpepper(bi4);\n return;\n\n case 33:\n biFiltered = minFiltering(bi4);\n return;\n\n case 34:\n biFiltered = maxFiltering(bi4);\n return;\n\n case 35:\n biFiltered = maidpointFiltering(bi4);\n return;\n\n case 36:\n biFiltered = medianFiltering(bi4);\n return;\n\n case 37:\n biFiltered = simpleThresholding(bi5);\n return;\n\n case 38:\n biFiltered = automatedThresholding(bi6);\n return;\n\n case 39:\n biFiltered = adaptiveThresholding(bi7);\n return;\n }\n }", "public static BufferedImage brighten(BufferedImage image) {\n short brighten[] = new short[256];\n for (int i = 0; i < 256; i++) {\n short pixelValue = (short) (Math.sqrt((double) i * 255.0));\n if (pixelValue > 255) {\n pixelValue = 255;\n } else if (pixelValue < 0) {\n pixelValue = 0;\n }\n brighten[i] = pixelValue;\n }\n LookupTable lookupTable = new ShortLookupTable(0, brighten);\n LookupOp lop = new LookupOp(lookupTable, null);\n return lop.filter(image, image);\n }", "static void processPicture(byte[][] img) {\n\t\tcontrastImage(img);\n\t\t//generateDebugImage(img);\n\t\t\n\t\t\n\t\tPoint[] ergs = raster(img);\n\t\tprintPoints(ergs);\n\t\tergs = Cluster.cluster(ergs);\n\t\tprintPoints(ergs);\n\t\tBlume[] blumen = Radiuserkennung.erkennen(img, ergs);\n\t\t\n\t\t//Blumen veröffentlichen!\n\t\tDaten.setNewBlumen(blumen);\n\t\t\n\t\tprintBlumen(blumen);\n\t}", "public void apply(OFImage image)\n {\n int height = image.getHeight();\n int width = image.getWidth();\n OFImage original = new OFImage(image);\n \n for(int y = 0; y < height; y++) {\n for(int x = 0; x < width; x++) {\n Color currentPixel = original.getPixel(x,y);\n int grn,blu,red;\n grn = 255 - currentPixel.getGreen();\n red = 255 - currentPixel.getRed();\n blu = 255 - currentPixel.getBlue();\n image.setPixel(x, y, new Color(red,blu,grn));\n }\n }\n }", "public static int[][][] rescaleShift(int[][][] ImageArray1) {\n\n int width = ImageArray1.length;\n int height = ImageArray1[0].length;\n\n int[][][] ImageArray2 = ImageArray1;\n\n float s = randFloat(0, 2);\n int t = (int) (Math.random());\n //float s = 2;\n //int t = 20;\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n\n ImageArray1[x][y][1] = (int) (t + ImageArray1[x][y][1]); //r\n ImageArray1[x][y][2] = (int) (t + ImageArray1[x][y][2]); //g\n ImageArray1[x][y][3] = (int) (t + ImageArray1[x][y][3]); //b\n }\n }\n int rmin = (int) (s * (ImageArray1[0][0][1] + t));\n int rmax = rmin;\n int gmin = (int) (s * (ImageArray1[0][0][2] + t));\n int gmax = gmin;\n int bmin = (int) (s * (ImageArray1[0][0][3] + t));\n int bmax = bmin;\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n ImageArray2[x][y][1] = (int) (s * ImageArray1[x][y][1]); //r\n ImageArray2[x][y][2] = (int) (s * ImageArray1[x][y][2]); //g\n ImageArray2[x][y][3] = (int) (s * ImageArray1[x][y][3]); //b\n\n if (rmin > ImageArray2[x][y][1]) {\n rmin = ImageArray2[x][y][1];\n }\n if (gmin > ImageArray2[x][y][2]) {\n gmin = ImageArray2[x][y][2];\n }\n if (bmin > ImageArray2[x][y][3]) {\n bmin = ImageArray2[x][y][3];\n }\n if (rmax < ImageArray2[x][y][1]) {\n rmax = ImageArray2[x][y][1];\n }\n if (gmax < ImageArray2[x][y][2]) {\n gmax = ImageArray2[x][y][2];\n }\n if (bmax < ImageArray2[x][y][3]) {\n bmax = ImageArray2[x][y][3];\n }\n }\n }\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n ImageArray2[x][y][1] = 255 * (ImageArray2[x][y][1] - rmin) / (rmax - rmin);\n ImageArray2[x][y][2] = 255 * (ImageArray2[x][y][2] - gmin) / (gmax - gmin);\n ImageArray2[x][y][3] = 255 * (ImageArray2[x][y][3] - bmin) / (bmax - bmin);\n }\n }\n return (ImageArray2);\n }", "public native MagickImage enhanceImage() throws MagickException;", "public BufferedImage transform(BufferedImage image) {\n\t\tpoint.setFuzziness(10);\r\n\t\treturn point.filter(image, null);\r\n\t}", "public void filterImage()\r\n {\r\n\t if (!isInverted && !isBlured )\r\n {\r\n cropedEdited = cropedPart;\r\n }\r\n\t float[] elements = {0.0f, 1.0f, 0.0f, -1.0f,brightnessLevel,1.0f,0.0f,0.0f,0.0f}; \r\n\t Kernel kernel = new Kernel(3, 3, elements); \r\n\t BufferedImageOp change = new ConvolveOp(kernel); \r\n\t cropedEdited = change.filter(cropedEdited, null);\r\n repaint();\r\n }", "private void traverseBayeredPatternFullSizeRGB() {\n\n for (int x = 0; x < originalImageHeight -1; x++){\n for (int y = 1; y < originalImageWidth -1; y++){\n Point position = new Point(x,y);\n int absolutePosition = getAbsolutPixelPosition(position);\n\n PixelType pixelType = null;\n\n if (x%2 == 0 && y%2 == 0) pixelType = PixelType.GREEN_TOPRED;\n if (x%2 == 0 && y%2 == 1) pixelType = PixelType.BLUE;\n if (x%2 == 1 && y%2 == 0) pixelType = PixelType.RED;\n if (x%2 == 1 && y%2 == 1) pixelType = PixelType.GREEN_TOPBLUE;\n\n fullSizePixRGB[absolutePosition] = getFullSizeRGB(new Point(x,y),pixelType);\n }\n }\n }", "void greyscale();", "void greyscale();", "public static Integer[][] preformRGBMaxPooling(Integer[][][] img, int w, int h) {\n Integer[][] r = operationMaxPooling(img[0], w, h);\n Integer[][] g = operationMaxPooling(img[1], w, h);\n Integer[][] b = operationMaxPooling(img[2], w, h);\n Integer[][] output = new Integer[r.length][r[0].length];\n for (int y = 0; y < output.length; y++) {\n for (int x = 0; x < output[0].length; x++) {\n output[y][x] = r[y][x] + g[y][x] + b[y][x];\n }\n }\n return output;\n }", "public static final int[] convert2grey_fast(DataBuffer bim) {\n if (bim.getDataType() == DataBuffer.TYPE_BYTE) {\n DataBufferByte dbi = (DataBufferByte) bim;\n byte[] data = dbi.getData();\n int[] copy = new int[data.length / 3];\n int z=0;\n final int l=data.length;\n for (int i = 1; i < l; i += 3) {\n copy[z] = data[i] & 0x000000FF; //just take green component\n z++; //cheaper than i/3\n\n }\n return copy;\n } else {\n DataBufferInt dbi = (DataBufferInt) bim;\n int[] data = dbi.getData();\n int[] copy = new int[data.length / 3];\n int z=0;\n final int l=data.length;\n for (int i = 1; i < l; i += 3) {\n copy[z] = data[i]; //just take green component\n z++; //cheaper than i/3\n }\n return copy;\n }\n }", "private static int[] initFloydSteinberg24To8(ColorCube colorCube) {\n // Allocate memory for the dither table.\n int[] ditherTable = new int[NBANDS * TOTALGRAYS];\n\n float[] thresh = new float[NGRAYS];\n\n //\n // Get the colorcube parameters\n //\n int[] multipliers = colorCube.getMultipliers();\n int[] dimsLessOne = colorCube.getDimsLessOne();\n int offset = colorCube.getAdjustedOffset();\n\n //\n // Construct tables for each band\n //\n for (int band = 0; band < NBANDS; band++) {\n int pTab = band * TOTALGRAYS;\n\n //\n // Calculate the binwidth for this band, i.e. the gray level step\n // from one quantization level to the next. Do this in scaled\n // integer to maintain precision.\n //\n float binWidth = 255.0F / dimsLessOne[band];\n\n //\n // Pre-calculate the thresholds, so we don't have to do\n // it in the inner loops. The threshold is always the\n // midpoint of each bin, since, in error diffusion, the dithering\n // is done by the error distribution process, not by varying\n // the dither threshold as in ordered dither.\n //\n for (int i = 0; i < dimsLessOne[band]; i++) {\n thresh[i] = (i + 0.5F) * binWidth;\n }\n thresh[dimsLessOne[band]] = 256.0F;\n\n //\n // Populate the range below gray level zero with the same entry\n // as that for zero. The error distribution can cause undershoots\n // of as much as 255.\n //\n int tableInc = 1 << ERR_SHIFT;\n int tableValue = (-UNDERSHOOT) << ERR_SHIFT;\n for (int gray = -UNDERSHOOT; gray < 0; gray++) {\n ditherTable[pTab++] = tableValue;\n tableValue += tableInc;\n }\n\n //\n // Populate the main range of 0...255.\n //\n int indexContrib = 0;\n float frepValue = 0.0F;\n int repValue;\n int binNum = 0;\n float threshold = thresh[0];\n int gray = 0;\n while (gray < 256) {\n //\n // Populate all the table values up to the next threshold.\n // Since the only thing which changes is the error,\n // and it changes by one scaled gray level, we can\n // just add the increment at each iteration.\n //\n int tableBase = indexContrib;\n repValue = (int) (frepValue + 0.5F);\n while ((float) gray < threshold) {\n ditherTable[pTab++] = ((gray - repValue) << ERR_SHIFT) + tableBase;\n gray++;\n }\n\n //\n // Once the gray level crosses a threshold,\n // move to the next bin threshold. Also update\n // the color contribution index step and the\n // representative value, needed to compute the error.\n //\n threshold = thresh[++binNum];\n indexContrib += multipliers[band];\n frepValue += binWidth;\n }\n\n //\n // Populate the range above gray level 255 with the same entry\n // as that for 255. As in the under-range case, the error\n // distribution can cause overshoots as high as 255 over max.\n //\n indexContrib -= multipliers[band];\n repValue = 255;\n tableValue = ((256 - repValue) << ERR_SHIFT) | indexContrib;\n\n for (gray = 256; gray < (256 + OVERSHOOT); gray++) {\n ditherTable[pTab++] = tableValue;\n tableValue += tableInc;\n }\n\n } // End band loop\n\n //\n // Add in the colormap offset value to the index contribution\n // for the first band. This eliminates the need to add it in\n // when we do the error diffusion.\n //\n int pTab = 0;\n for (int count = TOTALGRAYS; count != 0; count--) {\n ditherTable[pTab] += offset;\n pTab++;\n }\n\n return ditherTable;\n }", "@Override\n public BufferedImage filter(BufferedImage image) {\n int width = image.getWidth();\n int height = image.getHeight();\n int imageType = image.getType();\n BufferedImage newImage = new BufferedImage(width, height, imageType);\n \n // Process each pixel in column-major order\n for (int column = 0; column < newImage.getWidth(); column++) {\n for (int row = 0; row < newImage.getHeight(); row++) {\n \n try {\n // Compare the pixel at (column, row) in this image to the pixel\n // at (column, row) in the other image, and visualize the results\n // accordingly.\n int thisRGB = image.getRGB(column, row);\n int otherRGB = this.other.getRGB(column, row);\n int difference = otherRGB - thisRGB;\n if (difference == 0) {\n newImage.setRGB(column, row, MATCH_COLOR);\n } else {\n newImage.setRGB(column, row, NO_MATCH_COLOR);\n }\n } \n \n // If the other image is narrower or shorter than this one, and this \n // pixel lies out of the range of the smaller image, then visualize\n // this pixel as \"out of bounds\"\n catch (IndexOutOfBoundsException e) {\n newImage.setRGB(column, row, OUT_OF_BOUNDS_COLOR);\n } \n }\n }\n \n return newImage;\n }", "public Pic blackAndWhite() {\n Pic output = image.deepCopy();\n Pixel[][] outputPixels = output.getPixels();\n for (int row = 0; row < output.getHeight(); row++) {\n for (int col = 0; col < output.getWidth(); col++) {\n Pixel current = outputPixels[row][col];\n int average = (current.getRed() + current.getGreen()\n + current.getBlue()) / 3;\n if (average > 127) {\n current.setRed(255);\n current.setGreen(255);\n current.setBlue(255);\n } else {\n current.setRed(0);\n current.setGreen(0);\n current.setBlue(0);\n }\n }\n }\n return output;\n }", "private TailoredImage doProcess(BufferedImage sourceImg) throws IOException {\n\t\tint width = sourceImg.getWidth();\n\t\tint height = sourceImg.getHeight();\n\t\t// Check maximum effective width height\n\t\tisTrue((width <= sourceMaxWidth && height <= sourceMaxHeight),\n\t\t\t\tString.format(\"Source image is too big, max limits: %d*%d\", sourceMaxWidth, sourceMaxHeight));\n\t\tisTrue((width >= sourceMinWidth && height >= sourceMinHeight),\n\t\t\t\tString.format(\"Source image is too small, min limits: %d*%d\", sourceMinWidth, sourceMinHeight));\n\n\t\t// 创建背景图,TYPE_4BYTE_ABGR表示具有8位RGBA颜色分量的图像(支持透明的BufferedImage),正常取bufImg.getType()\n\t\tBufferedImage primaryImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);\n\t\t// 创建滑块图\n\t\tBufferedImage blockImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);\n\t\t// 随机截取的坐标\n\t\tint maxX0 = width - blockWidth - (circleR + circleOffset);\n\t\tint maxY0 = height - blockHeight;\n\t\tint blockX0 = current().nextInt((int) (maxX0 * 0.25), maxX0); // *0.25防止x坐标太靠左\n\t\tint blockY0 = current().nextInt(circleR, maxY0); // 从circleR开始是为了防止上边的耳朵显示不全\n\t\t// Setup block borders position.\n\t\tinitBorderPositions(blockX0, blockY0, blockWidth, blockHeight);\n\n\t\t// 绘制生成新图(图片大小是固定,位置是随机)\n\t\tdrawing(sourceImg, blockImg, primaryImg, blockX0, blockY0, blockWidth, blockHeight);\n\t\t// 裁剪可用区\n\t\tint cutX0 = blockX0;\n\t\tint cutY0 = Math.max((blockY0 - circleR - circleOffset), 0);\n\t\tint cutWidth = blockWidth + circleR + circleOffset;\n\t\tint cutHeight = blockHeight + circleR + circleOffset;\n\t\tblockImg = blockImg.getSubimage(cutX0, cutY0, cutWidth, cutHeight);\n\n\t\t// Add watermark string.\n\t\taddWatermarkIfNecessary(primaryImg);\n\n\t\t// 输出图像数据\n\t\tTailoredImage img = new TailoredImage();\n\t\t// Primary image.\n\t\tByteArrayOutputStream primaryData = new ByteArrayOutputStream();\n\t\tImageIO.write(primaryImg, \"PNG\", primaryData);\n\t\timg.setPrimaryImg(primaryData.toByteArray());\n\n\t\t// Block image.\n\t\tByteArrayOutputStream blockData = new ByteArrayOutputStream();\n\t\tImageIO.write(blockImg, \"PNG\", blockData);\n\t\timg.setBlockImg(blockData.toByteArray());\n\n\t\t// Position\n\t\timg.setX(blockX0);\n\t\timg.setY(blockY0 - circleR >= 0 ? blockY0 - circleR : 0);\n\t\treturn img;\n\t}", "public static GrayImage toGray(GrayImage img) {\n\t\tint X = img.X();\n\t\tint Y = img.Y();\n\t\tGrayImage newimg = new GrayImage(X, Y);\n\t\tfor (int y = 0; y < Y; y++) {\n\t\t\tfor (int x = 0; x < X; x++) {\n\t\t\t\tnewimg.set(x, y, img.get(x, y));\n\t\t\t}\n\t\t}\n\t\treturn newimg;\n\t}", "public void setBfImageByData(int [][][] data){\r\n\t\tBfImage = new BufferedImage(width,height,BufferedImage.TYPE_INT_ARGB);\r\n\t\tfor (int i = 0; i < width; i++) {\r\n\t\t\tfor (int j = 0; j < height; j++) {\r\n\t\t\t\tint [] rgb = data[j][i];\r\n\t\t\t\tif (rgb[0] == -1){\t//is transparent\r\n\t\t\t\t\tBfImage.setRGB(i, j, Transparency.TRANSLUCENT);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tBfImage.setRGB(i, j, Utils.getRGB(rgb[0], rgb[1], rgb[2]));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void setImageData(BufferedImage img) {\n \t\tif (format == null || format == Format.TEXT || format == Format.COLOR16_8x8)\n \t\t\treturn;\n \t\n \t\tequalize(img);\n \t\t\n \t\t//denoise(img);\n \t\t\n \t\tupdatePaletteMapping();\n \t\n \t\tflatten(img);\n \t\t\n \t\tif (!importDirectMappedImage(img)) {\n \t\t\tconvertImageToColorMap(img);\n \t\t}\n \t\n \t\treplaceImageData(img);\n \t}", "@Override\npublic Image operate (Image source)\n{\n final Image thresholdImage = NIVision\n .imaqCreateImage(ImageType.IMAGE_U8, 0);\n\n // @TODO: Store NIVision.Range instead of integers so we don't make a\n // new one every time.\n NIVision.imaqColorThreshold(thresholdImage, source, 255,\n NIVision.ColorMode.HSL, this.hueRange, this.satRange,\n this.lumRange);\n source.free();\n return thresholdImage;\n}", "public static Integer[][] preformRGBConvolution(Integer[][][] img, Double[][] filter) {\n Integer[][] r = operationConvolution(img[0], filter);\n Integer[][] g = operationConvolution(img[1], filter);\n Integer[][] b = operationConvolution(img[2], filter);\n Integer[][] output = new Integer[r.length][r[0].length];\n for (int y = 0; y < output.length; y++) {\n for (int x = 0; x < output[0].length; x++) {\n output[y][x] = r[y][x] + g[y][x] + b[y][x];\n }\n }\n return output;\n }", "protected void reduceBitmapMode(BufferedImage img, int xoffs, int yoffs) {\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tMap<Integer, Integer>[] histograms = new Map[(img.getWidth() + 7) / 8];\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tMap<Integer, Integer>[] histogramSides = new Map[(img.getWidth() + 7) / 8];\n \t\t\n \t\t// be sure we select the 8 pixel groups sensibly\n \t\tif ((xoffs & 7) > 3)\n \t\t\txoffs = (xoffs + 7) & ~7;\n \t\telse\n \t\t\txoffs = xoffs & ~7;\n \t\t\n \t\tint width = img.getWidth();\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\t// first scan: get histogram for each range\n \t\t\t\n \t\t\tfor (int x = 0; x < width; x += 8) {\n \t\t\t\tMap<Integer, Integer> histogram = new HashMap<Integer, Integer>();\n \t\t\t\tMap<Integer, Integer> histogramSide = new HashMap<Integer, Integer>();\n \t\t\t\t\n \t\t\t\thistograms[x / 8] = histogram;\n \t\t\t\thistogramSides[x / 8] = histogramSide;\n \t\t\t\t\n \t\t\t\tint maxx = x + 8 < width ? x + 8 : width;\n \t\t\t\t\n \t\t\t\tint scmx;\n \t\t\t\tint scmn;\n \t\t\t\t\n \t\t\t\t// scan outside the 8 pixels to get a broader\n \t\t\t\t// idea of what colors are important\n \t\t\t\tscmn = Math.max(0, x - 4);\n \t\t\t\tscmx = Math.min(width, maxx + 4);\n \t\t\t\t\n \t\t\t\tint pixel = 0;\n \t\t\t\tfor (int xd = scmn; xd < scmx; xd++) {\n \t\t\t\t\tif (xd < width)\n \t\t\t\t\t\tpixel = img.getRGB(xd, y);\n \t\t\t\t\t\n \t\t\t\t\tMap<Integer, Integer> hist = (xd >= x && xd < maxx) ? histogram : histogramSide;\n \t\t\t\t\t\n \t\t\t\t\tInteger cnt = hist.get(pixel);\n \t\t\t\t\tif (cnt == null)\n \t\t\t\t\t\tcnt = 1;\n \t\t\t\t\telse\n \t\t\t\t\t\tcnt++;\n \t\t\t\t\t\n \t\t\t\t\thist.put(pixel, cnt);\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\n \t\t\tfor (int x = 0; x < width; x += 8) {\n \t\t\t\tMap<Integer, Integer> histogram = histograms[x / 8];\n \t\t\t\tMap<Integer, Integer> histogramSide = histogramSides[x / 8];\n \t\t\t\t\n \t\t\t\tint maxx = x + 8 < width ? x + 8 : width;\n \t\t\t\t\n \t\t\t\t// get prominent colors, weighing colors that also\n \t\t\t\t// appear in surrounding pixels higher \n \t\t\t\tList<Pair<Integer, Integer>> sorted = new ArrayList<Pair<Integer,Integer>>();\n \t\t\t\tfor (Map.Entry<Integer, Integer> entry : histogram.entrySet()) {\n \t\t\t\t\tInteger c = entry.getKey();\n \t\t\t\t\tint cnt = entry.getValue() * 2;\n \t\t\t\t\tInteger scnt = histogramSide.get(c);\n \t\t\t\t\tif (scnt != null)\n \t\t\t\t\t\tcnt += scnt;\n \t\t\t\t\tsorted.add(new Pair<Integer, Integer>(c, cnt));\n \t\t\t\t}\n \t\t\t\tCollections.sort(sorted, new Comparator<Pair<Integer, Integer>>() {\n \t\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic int compare(Pair<Integer, Integer> o1,\n \t\t\t\t\t\t\tPair<Integer, Integer> o2) {\n \t\t\t\t\t\treturn o2.second - o1.second;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t});\n \t\n \t\t\t\tint fpixel, bpixel;\n \t\t\t\tif (sorted.size() >= 2) {\n \t\t\t\t\tfpixel = sorted.get(0).first;\n \t\t\t\t\tbpixel = sorted.get(1).first;\n \t\t\t\t} else {\n \t\t\t\t\tfpixel = bpixel = sorted.get(0).first;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tint newPixel = 0;\n \t\t\t\tfor (int xd = x; xd < maxx; xd++) {\n \t\t\t\t\tif (xd < width)\n \t\t\t\t\t\tnewPixel = img.getRGB(xd, y);\n \t\t\t\t\t\n \t\t\t\t\tif (newPixel != fpixel && newPixel != bpixel) {\n \t\t\t\t\t\tif (fpixel < bpixel) {\n \t\t\t\t\t\t\tnewPixel = newPixel <= fpixel ? fpixel : bpixel;\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tnewPixel = newPixel < bpixel ? fpixel : bpixel;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\timageData.setPixel(xd + xoffs, y + yoffs, newPixel);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "void deriveImage()\n\t{\n\n\t\t//img = new BufferedImage(dimx, dimy, BufferedImage.TYPE_INT_ARGB);\n\t\timg = null;\n\t\ttry{\n\t\t\timg = ImageIO.read(new File(\"src/input/World.png\"));\n\n\t\t}catch (IOException e){\n\t\t\tSystem.out.println(\"world image file error\");\n\t\t}\n\t\t//System.out.println(img.getHeight());\n\t\t//System.out.println(img.getWidth());\n//\t\tfloat maxh = -10000.0f, minh = 10000.0f;\n//\n//\t\t// determine range of tempVals s\n//\t\tfor(int x=0; x < dimx; x++)\n//\t\t\tfor(int y=0; y < dimy; y++) {\n//\t\t\t\tfloat h = tempVals [x][y];\n//\t\t\t\tif(h > maxh)\n//\t\t\t\t\tmaxh = h;\n//\t\t\t\tif(h < minh)\n//\t\t\t\t\tminh = h;\n//\t\t\t}\n\t\t\n\t\tfor(int x=0; x < dimx; x++)\n\t\t\tfor(int y=0; y < dimy; y++) {\n\t\t\t\t \t\n\t\t\t\t// find normalized tempVals value in range\n\t\t\t\t//float val = (tempVals [x][y] - minh) / (maxh - minh);\n\t\t\t\tfloat val = tempVals[x][y];\n\n\t\t\t\t//System.out.println(val);\n\n\t\t\t\tColor c = new Color(img.getRGB(x,y));\n\n\t\t\t\tif((c.getRed() > 50 && c.getGreen() > 100 && c.getBlue() < 200)) {\n\n\t\t\t\t\tif (val != 0.0f) {\n\t\t\t\t\t\tColor col = new Color(val, 0, 0);\n\t\t\t\t\t\timg.setRGB(x, y, col.getRGB());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\t\n\t}", "public static Integer[][] preformRGBConvolution(Integer[][][] img, Double[][][] filter) {\n Integer[][] r = operationConvolution(img[0], filter[0]);\n Integer[][] g = operationConvolution(img[1], filter[1]);\n Integer[][] b = operationConvolution(img[2], filter[2]);\n Integer[][] output = new Integer[r.length][r[0].length];\n for (int y = 0; y < output.length; y++) {\n for (int x = 0; x < output[0].length; x++) {\n output[y][x] = r[y][x] + g[y][x] + b[y][x];\n }\n }\n return output;\n }", "public void fillNewImage(){\n newImage = new BufferedImage(imageWidth, imageHeight, BufferedImage.TYPE_INT_RGB);\n\n // Fill the new image with the pixels\n for(int i = 0; i < imageHeight; i++)\n for(int j = 0; j < imageWidth; j++){\n //System.out.println(\"pixel[\" + i + \"][\" + j + \"]\");\n newImage.setRGB(j, i, kCenters[assignedCluster[i][j]].getRGB());\n //newImage.setRGB(j, i, kCenters[0].getRGB());\n }\n }", "private void pix2img() {\r\n int g;\r\n img = new BufferedImage(pixels[0].length, pixels.length, BufferedImage.TYPE_INT_ARGB);\r\n // copy the pixels values\r\n for (int row = 0; row < pixels.length; ++row) {\r\n for (int col = 0; col < pixels[row].length; ++col) {\r\n g = pixels[row][col];\r\n img.setRGB(col, row, ((255 << 24) | (g << 16) | (g << 8) | g));\r\n }\r\n }\r\n }", "private BufferedImage initImg() throws IOException {\n\t\tint h = 256, w = 256;\n\t\tBufferedImage img = new BufferedImage(h, w, BufferedImage.TYPE_INT_ARGB);\n\t\t\n\t\t//int red = 0xff000000 + 0x00ff0000 + 0x00000000 + 0x00000000;\n\t\tshort max = 0, min = 255, c = max;\n\t\tint color = SimpleImageViewer.getIntPixel(c, c, c);\n\t\t\n\t\tfor (int y = 0; y < h; y++) {\n\t\t\tfor (int x = 0; x < w; x++) {\n\t\t\t\timg.setRGB(x, y, color);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn img;\n\t}", "private int optimizeForNColorsAndRebuildPalette(BufferedImage img, IMapColor mapColor) {\n \t\t\n \t\tint maxDist = 0;\n \t\tmaxDist = mapColor.getMinimalPaletteDistance();\n \n \t\tHistogram hist = new Histogram(img);\n \t\tint interestingColors = 0;\n \t\tint mappedColors = 0;\n \t\t\n \t\tint mostInterestingColors = 0;\n \t\t\n \t\t//int total = img.getWidth() * img.getHeight();\n \t\t\n \t\t//for (int mask = 4; mask < 7; mask++) {\n \t\t\tmappedColors = hist.generate(mapColor, maxDist, 0);\n \t\t\tinterestingColors = hist.size();\n \t\t\tif (interestingColors > mostInterestingColors)\n \t\t\t\tmostInterestingColors = interestingColors;\n \t\t\tSystem.out.println(\"For mask \" + Integer.toHexString(0) \n \t\t\t\t\t+\"; # interesting = \" + interestingColors\n \t\t\t\t\t+\"; # mapped = \" + mappedColors);\n \t\t\t//if (interestingColors <= 256)\n \t\t\t//\tbreak;\n \t\t\t//if (mappedColors > total / 2)\n \t\t\t//\tbreak;\n \t\t//} \n \t\t\n \t\tint usedColors = Math.min(mapColor.getNumColors(), interestingColors);\n \t\t\n \t\tSystem.out.println(\"interestingColors=\"+interestingColors\n \t\t\t\t+\"; usedColors=\"+usedColors\n \t\t\t\t+\"; mappedColors=\" + mappedColors);\n \t\t\n \t\tint replaceDist = mapColor.getMaximalReplaceDistance(mostInterestingColors);\n \n \t\tint[] paletteSelections = new int[usedColors];\n \t\t\n \t\tif (mapColor.getNumColors() >= 16) {\n \t\t\tselectExponential(interestingColors, usedColors, paletteSelections);\n \t\t} else {\n \t\t\tselectNovelColors(mapColor, hist, interestingColors, usedColors, paletteSelections);\n \t\t}\n \t\t\n \t\tfor (int c = 0; c < usedColors; c++) {\n \t\t\tint idx = hist.getColorIndex(paletteSelections[c]);\n \t\t\tint r = (idx>>6) & 0x7;\n \t\t\tint g = (idx>>3) & 0x7;\n \t\t\tint b = (idx>>0) & 0x7;\n \t\t\tcanvas.setGRB333(c, g, r, b);\n \t\t\t\n \t\t\treplaceColor(img, hist, idx, rgb8ToPixel(thePalette[c]), replaceDist);\n \t\t}\n \t\t\n \t\t\n \t\treturn maxDist;\n \t}", "public @NotNull Image flipH()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n if (this.format != ColorFormat.RGBA)\n {\n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n long bytesPerLine = Integer.toUnsignedLong(this.width) * this.format.sizeof;\n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width; x++)\n {\n // OPTION 1: Move pixels with memCopy()\n long src = Integer.toUnsignedLong(y * this.width + this.width - 1 - x) * this.format.sizeof;\n long dst = Integer.toUnsignedLong(y * this.width + x) * this.format.sizeof;\n \n MemoryUtil.memCopy(srcPtr + src, dstPtr + dst, bytesPerLine);\n \n // OPTION 2: Just copy data pixel by pixel\n // output.put(y * this.width + x, this.data.getBytes(y * this.width + (this.width - 1 - x)));\n }\n }\n \n this.data.free();\n \n this.data = output;\n }\n else\n {\n // OPTION 3: Faster implementation (specific for 32bit pixels)\n // NOTE: It does not require additional allocations\n IntBuffer ptr = this.data.toBuffer().asIntBuffer();\n for (int y = 0; y < this.height; y++)\n {\n for (int x = 0; x < this.width / 2; x++)\n {\n int backup = ptr.get(y * this.width + x);\n ptr.put(y * this.width + x, ptr.get(y * this.width + this.width - 1 - x));\n ptr.put(y * this.width + this.width - 1 - x, backup);\n }\n }\n }\n this.mipmaps = 1;\n }\n \n return this;\n }", "public void fuzzify() {\n ImageArray newCopy = currentIm.copy();\n \n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n \n for(int rr = 1; rr < rows-1; rr++){\n \n for(int cc = 1; cc < cols-1; cc++){\n fuzPixel(rr,cc,newCopy);\n \n }\n \n }\n \n currentIm = newCopy.copy();\n \n \n }", "public void adjustIntensity()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n\tdouble dbL = (double)(L-1);\r\n\tshort maxI;\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\t\tmaxI = (short)Math.min(L-1, \r\n\t\t Math.round((L-1) * maxIntensity(hue[row][col]/dbL,\r\n\t\t saturation[row][col]/dbL)));\r\n\t\tintensity[row][col] =\r\n\t\t (short)Math.min(intensity[row][col], maxI);\r\n\t }\r\n\t}\r\n }", "public void grayScale(BufferedImage img, int startX, int startY, int endX, int endY) throws IOException{\r\n\r\n int pixels[] = new int[3];\r\n double ww[]=new double[3];\r\n WritableRaster raster = img.getRaster();\r\n \r\n \r\n for(int i=startX;i<endX;i++) {\r\n for(int j=startY;j<endY;j++){\r\n \r\n \r\n raster.getPixel(i, j, pixels);\r\n \r\n ww[0] = 0.299*pixels[0]+0.587*pixels[1]+0.114*pixels[2];\r\n ww[1] = 0.299*pixels[0]+0.587*pixels[1]+0.114*pixels[2];\r\n ww[2] = 0.299*pixels[0]+0.587*pixels[1]+0.114*pixels[2];\r\n \r\n raster.setPixel(i, j, ww);\r\n \r\n }\r\n \r\n }\r\n\r\n \r\n }", "public static Double[][] preformRGBMaxPooling(Double[][][] img, double w, double h) {\n Double[][] r = operationMaxPooling(img[0], w, h);\n Double[][] g = operationMaxPooling(img[1], w, h);\n Double[][] b = operationMaxPooling(img[2], w, h);\n Double[][] output = new Double[r.length][r[0].length];\n for (double y = 0; y < output.length; y++) {\n for (double x = 0; x < output[0].length; x++) {\n output[y][x] = r[y][x] + g[y][x] + b[y][x];\n }\n }\n return output;\n }", "public abstract BufferedImage applyTo(BufferedImage image);", "public static BufferedImage binaritzation(BufferedImage image, int thrs) {\n //3-position array where we store R,G,B values of every pixel\n int[] colors;\n int[] black = new int[3];\n int[] white = new int[3];\n for (int i = 0; i < 3; i++) {\n black[i] = 0;\n white[i] = 255;\n }\n //We create a tesela so we can modify the image pixels\n WritableRaster bitmap = (WritableRaster) image.getData();\n WritableRaster tesela = bitmap.createWritableChild(image.getMinX(), image.getMinY(), image.getWidth(), image.getHeight(), 0,0, null);\n //We compute the mean of every pixel so we can decide if its black or white\n double mean;\n //Image iteration pixel by pixel\n for (int x = 0; x < image.getWidth(); x++){\n for (int y = 0; y < image.getHeight(); y++) {\n colors = getPixelColor(image,x,y);\n mean = colors[0] + colors[1] + colors[2];\n mean = mean/3;\n if (mean <= thrs) {\n bitmap.setPixel(x,y,black);\n } else {\n bitmap.setPixel(x,y,white);\n }\n }\n }\n //Create the binarized image and return it\n BufferedImage subImage = new BufferedImage(image.getColorModel(),tesela,image.isAlphaPremultiplied(),null);\n return subImage;\n }", "int[][][] mosaicingImage(int[][][] imageArray, int height, int width, int seedNum);", "public static GrayImage toGray(ColorImage img) throws ColorModelNotSupportedException,\n\t\t\tColorModelUnknownException {\n\t\tint X = img.X();\n\t\tint Y = img.Y();\n\t\tint[] color = new int[3];\n\t\tint gray;\n\t\tGrayImage newimg = null;\n\t\tswitch (img.getColorModel()) {\n\t\tcase ColorImage.RGB:\n\t\t\tnewimg = new GrayImage(X, Y);\n\t\t\tfor (int y = 0; y < Y; y++) {\n\t\t\t\tfor (int x = 0; x < X; x++) {\n\t\t\t\t\tcolor = img.get(x, y);\n\t\t\t\t\tgray = (int) ((double) color[0] * 0.299 + (double) color[1] * 0.587 + (double) color[2] * 0.114);\n\t\t\t\t\tnewimg.set(x, y, gray);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase ColorImage.CMY:\n\t\tcase ColorImage.YIQ:\n\t\tcase ColorImage.HSV:\n\t\tcase ColorImage.HLS:\n\t\t\tthrow new ColorModelNotSupportedException();\n\t\tdefault:\n\t\t\tthrow new ColorModelUnknownException();\n\t\t}\n\t\treturn newimg;\n\t}", "int[][][] greyscaleImage(int[][][] imageArray, int height, int width);", "public static GrayImage toGray(RealGrayImage img) {\n\t\tint X = img.X();\n\t\tint Y = img.Y();\n\t\tGrayImage newimg = new GrayImage(X, Y);\n\t\tfor (int y = 0; y < Y; y++) {\n\t\t\tfor (int x = 0; x < X; x++) {\n\t\t\t\tnewimg.set(x, y, (short) img.get(x, y));\n\t\t\t}\n\t\t}\n\t\treturn newimg;\n\t}", "public static Image filtroGrisAzul(Image img){\n WritableImage resultImg = new WritableImage((int)img.getWidth(),(int)img.getHeight());\n PixelReader pixelr = img.getPixelReader();\n PixelWriter pixelw = resultImg.getPixelWriter();\n \n for (int i = 0; i < img.getHeight(); i++) {\n for (int j = 0; j < img.getWidth(); j++) {\n Color color = pixelr.getColor(j, i);\n double blue;\n blue = color.getBlue();\n blue *= 255;\n pixelw.setColor(j, i, Color.rgb((int)blue, (int)blue, (int)blue));\n }\n }\n \n return resultImg;\n }", "public Bitmap toGrayscale(Bitmap bmpOriginal)\n\t { \n\t int width, height;\n\t height = bmpOriginal.getHeight();\n\t width = bmpOriginal.getWidth(); \n\n\t Bitmap bmpGrayscale = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);\n\t Canvas c = new Canvas(bmpGrayscale);\n\t Paint paint = new Paint();\n\t ColorMatrix cm = new ColorMatrix();\n\t cm.setSaturation(0);\n\t ColorMatrixColorFilter f = new ColorMatrixColorFilter(cm);\n\t paint.setColorFilter(f);\n\t c.drawBitmap(bmpOriginal, 0, 0, paint);\n\t return bmpGrayscale;\n\t }", "private void doBlur(int times){\n \n int pixel, x,y;\n long s,r,g,b;\n //times the image will be blurred with the kernel\n for (int t = 0; t < times; t++) {\n //march pixels\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n //reset colors\n r = g = b = s = 0;\n //march pixels inside kernel\n for (int k = 0; k < kernelSize; k++) {\n for (int l = 0; l < kernelSize; l++) {\n //get rgb color from pixel\n x = j + l - kernelCenter; \n y = i + k - kernelCenter;\n try{\n if( x>=0 && x<512 && y>=0 && y<512 ){\n pixel = imageKerneled.getRGB(x,y);\n //multiply the rgb by the number in kernel\n r += ((pixel >> 16) & 0xff) * kernel[k][l];\n g += ((pixel >> 8) & 0xff) * kernel[k][l];\n b += ((pixel) & 0xff) * kernel[k][l];\n s += kernel[k][l];\n }\n }catch(ArrayIndexOutOfBoundsException e){\n System.out.println(\"Error en \"+x+\",\"+y);\n }\n }\n }\n //averages\n r = Math.round(r/s);\n if(r>255) {System.out.println(r+\" entro r > 255 en \"+j+\",\"+i); r=255; }\n else if(r<0) {System.out.println(r+\" entro r < 255 en \"+j+\",\"+i); r=0; }\n g = Math.round(g/s);\n if(g>255) {System.out.println(g+\" entro g > 255 en \"+j+\",\"+i); g=255; }\n else if(g<0) {System.out.println(g+\" entro g < 255 en \"+j+\",\"+i); g=0; }\n b = Math.round(b/s);\n if(b>255) {System.out.println(b+\" entro b > 255 en \"+j+\",\"+i); b=255; }\n else if(b<0) {System.out.println(b+\" entro b < 255 en \"+j+\",\"+i); b=0; }\n //set the new rgb\n imageKerneled2.setRGB(j,i,new Color((int)r,(int)g,(int)b).getRGB());\n }\n }\n copyKerneled2ToKerneled();\n System.out.println(\"Finished blur: \"+(t+1));\n }\n }", "private void toGray(Bitmap bmp) {\n int outH = bmp.getHeight();\n int outW = bmp.getWidth();\n\n int pixels[] = new int[outW*outH];\n bmp.getPixels(pixels, 0, outW, 0, 0, outW, outH);\n for (int i = 0; i < outW*outH; i++) {\n int gray = (int) (0.11 * Color.blue(pixels[i]) + 0.3 * Color.red(pixels[i]) + 0.59 * Color.green(pixels[i]));\n pixels[i] = Color.rgb(gray, gray, gray);\n }\n bmp.setPixels(pixels, 0, outW, 0, 0, outW, outH);\n }", "public BufferedImage LoG(BufferedImage timg) {\n int width = timg.getWidth();\n int height = timg.getHeight();\n\n BufferedImage timg3 = GreayscaleImg(timg);\n\n int [][][] ImageArray1 = convertToArray(timg3);\n int [][][] ImageArray2 = convertToArray(timg);\n int [][][] ImageArray3 = convertToArray(timg);\n\n // Mask for convolution = [0 0 -1 0 0; 0 -1 -2 -1 0; -1 -2 16 -2 -1; 0 -1 -2 -1 0; 0 0 -1 0 0]\n int[][] mask = {\n {0, 0, -1, 0, 0},\n {0, -1, -2, -1, 0},\n {-1, -2, 16, -2, -1},\n {0, -1, -2, -1, 0},\n {0, 0, -1, 0, 0},\n };\n System.out.println();\n System.out.println(\"Laplacian of Gaussian mask of 5*5 array\");\n for (int i = 0; i < mask.length; ++i) {\n for (int j = 0; j < mask[i].length; ++j) {\n System.out.print(mask[i][j] + \" \");\n }\n System.out.println();\n }\n\n //for Mask of size 5x5\n for(int y=2; y<height-2; y++){\n for(int x=2; x<width-2; x++){\n // //r = 0; g = 0; b = 0;\n // // int r = ImageArray1[x][y][1]; //r\n // int g = ImageArray1[x][y][2]; //g\n // int b = ImageArray1[x][y][3]; //b\n\n int r = 0; int g = 0; int b = 0;\n for(int s=0; s<=4; s++){\n for(int t=0; t<=4; t++){\n r = r + mask[s][t]*ImageArray1[x-s+2][y-t+2][1];\n g = g + mask[s][t]*ImageArray1[x-s+2][y-t+2][2];\n b = b + mask[s][t]*ImageArray1[x-s+2][y-t+2][3];\n }\n }\n ImageArray2[x][y][1] = r; //r\n ImageArray2[x][y][2] = g; //g\n ImageArray2[x][y][3] = b; //b\n }\n }\n for(int y=1; y<height-1; y++){\n for(int x=1; x<width-1; x++){\n ImageArray3[x][y][1] = Math.max(ImageArray2[x][y][1],0);\n ImageArray3[x][y][2] = Math.max(ImageArray2[x][y][2],0);\n ImageArray3[x][y][3] = Math.max(ImageArray2[x][y][3],0);\n }\n }\n return convertToBimage(ImageArray3);\n }", "public static BufferedImage buildRGB24(double[][] data) {\n int width = data.length;\n int height = data[0].length;\n BufferedImage retVal = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n\n for (int x = 0; x < width; x++) {\n for (int y = 0; y < height; y++) {\n //fixed addition of 1000m to get out of negative numbers everywhere\n //multiply by 100 to get the value in centimeters\n //this should comfortably fit in 24 bits considering lowest point\n //-418m and highest point 8800m give or take.\n //four bit left shift is for better visual representation of small\n //values (now they are represented with higher values of blue and\n //green)\n int value = (int) Math.round((data[x][y] + 1000) * 100) << 4;\n\n retVal.setRGB(x, y, value);\n }\n }\n\n return retVal;\n }", "public static Integer[][] preformRGBMaxPooling(Integer[][][] img, int w, int h, int s) {\n Integer[][] r = operationMaxPooling(img[0], w, h, s);\n Integer[][] g = operationMaxPooling(img[1], w, h, s);\n Integer[][] b = operationMaxPooling(img[2], w, h, s);\n Integer[][] output = new Integer[r.length][r[0].length];\n for (int y = 0; y < output.length; y++) {\n for (int x = 0; x < output[0].length; x++) {\n output[y][x] = r[y][x] + g[y][x] + b[y][x];\n }\n }\n return output;\n }", "public static final int[] convert2grey(Image img) {\n PixelGrabber grabber = new PixelGrabber(img, 0, 0, -1, -1, true);\n try {\n grabber.grabPixels();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n int[] data = (int[]) grabber.getPixels();\n int[] image = new int[data.length];\n\n for (int d = 0; d < data.length; d++) {\n image[d] = RGB2Grey(data[d]);\n\n }\n return image;\n }", "private static RenderedImage brigthen(final RenderedImage image,final int brightness) throws PortrayalException{\n final ColorModel model = image.getColorModel();\n\n if(model instanceof IndexColorModel){\n //no contrast enhance for indexed colormap\n return image;\n }else if(model instanceof ComponentColorModel){\n\n byte[][] lut = new byte[3][256];\n byte[][] newlut = new byte[3][256];\n\n // initialize lookup table\n for ( int i = 0; i < 256; i++ ) {\n lut[0][i] = (byte) i;\n lut[1][i] = (byte) i;\n lut[2][i] = (byte) i;\n }\n\n for (int i = 0; i < 256; i++ ) {\n int red = (int)lut[0][i]&0xFF;\n int green = (int)lut[1][i]&0xFF;\n int blue = (int)lut[2][i]&0xFF;\n newlut[0][i] = clamp(red + brightness);\n newlut[1][i] = clamp(green + brightness);\n newlut[2][i] = clamp(blue + brightness);\n }\n\n return colorize(image,newlut);\n\n }else{\n throw new PortrayalException(\"Unsupported image color model, found :\" + model.getClass());\n }\n\n }", "public BufferedImage getImage(int[][] data) {\n BufferedImage image = new BufferedImage(IMGSIZEX, IMGSIZEY,\n BufferedImage.TYPE_INT_RGB);\n for (int x = 0; x < IMGSIZEX; x++) {\n for (int y = 0; y < IMGSIZEY; y++) {\n int pixelColor = data[x][y];\n // Set Colors based on Binary Image value\n if (pixelColor == 0) {\n pixelColor = Color.ORANGE.getRGB();\n } else {\n pixelColor = Color.CYAN.getRGB();\n }\n image.setRGB(x, y, pixelColor);\n } // End for y.\n } // End for x.\n return image;\n }", "private static void reduceNoise(Mat image) {\n\n\t\t// create structuring element that will be used to \"dilate\" and \"erode\"\n\t\t// image. the element chosen here is a 3px by 3px rectangle\n\t\tMat erodeElement = Imgproc.getStructuringElement(Imgproc.MORPH_RECT,\n\t\t\t\tnew Size(1, 1));\n\n\t\t// dilate with larger element so make sure object is nicely visible\n\t\tMat dilateElement = Imgproc.getStructuringElement(Imgproc.MORPH_RECT,\n\t\t\t\tnew Size(12, 12));\n\n\t\t// Erode will shrink the grouping of pixels\n\t\tImgproc.erode(image, image, erodeElement);\n\t\tImgproc.erode(image, image, erodeElement);\n\t\tImgproc.erode(image, image, erodeElement);\n\n\t\t// // Dilate will expand the grouping of pixels\n\t\tImgproc.dilate(image, image, dilateElement);\n\t\tImgproc.dilate(image, image, dilateElement);\n\t\t// Imgproc.dilate(image, image, dilateElement);\n\n\t}", "public static BufferedImage toGrayScale(BufferedImage img) {\n BufferedImage grayscale = new BufferedImage(img.getWidth(), img.getHeight(), img.getType());\n for (int i = 0; i < img.getWidth(); ++i) {\n for (int j = 0; j < img.getHeight(); ++j) {\n int rgb = img.getRGB(i, j);\n int r = (rgb >> 16) & 255;\n int g = (rgb >> 8) & 255;\n int b = (rgb & 255);\n int graylevel = (int)(0.2125*r + 0.7154*g + 0.0721*b);\n int gray = (graylevel << 16) + (graylevel << 8) + graylevel;\n grayscale.setRGB(i, j, gray);\n }\n }\n return grayscale;\n }", "private void enhanceImage(){\n }", "public static Integer[][] preformRGBConvolutionPadded(Integer[][][] img, Double[][][] filter) {\n int p = (filter.length - 1) / 2;\n Integer[][][] m = new Integer[3][img[0].length][img[0][0].length];\n for (int i = 0; i < 3; i++) {\n m[i] = MatrixUtils.padMatrix(img[i], p);\n }\n return preformRGBConvolution(m, filter);\n }", "public abstract BufferedImage transform();", "public static Image convertToGray(Image imageObject) {\n\t\n\t\tint[] rgb = new int[3];\n\t\tfor(int y=0;y<imageObject.getH();y++){\n\t\t\tfor(int x=0;x<imageObject.getW();x++){\n\t\t\t\timageObject.getPixel(x, y, rgb);\n\t\t\t\tint gray = (int) Math.round((0.299 * (rgb[0])) + 0.587 * (rgb[1]) + 0.114 * (rgb[2]));\n\t\t\t\trgb[0] = (0xFF & gray);\n\t\t\t\trgb[1] = (0xFF & gray);\n\t\t\t\trgb[2] = (0xFF & gray);\n\t\t\t\timageObject.setPixel(x, y, rgb);\n\t\t\t}\n\t\t}\n\treturn imageObject;\n}", "public static Integer[][] preformRGBConvolutionPadded(Integer[][][] img, Double[][] filter) {\n int p = (filter.length - 1) / 2;\n p = 1;\n Integer[][][] m = new Integer[3][img[0].length][img[0][0].length];\n for (int i = 0; i < 3; i++) {\n m[i] = MatrixUtils.padMatrix(img[i], p);\n }\n return preformRGBConvolution(m, filter);\n }", "public static BufferedImage average(BufferedImage image, int value) {\n //3-position array where we store R,G,B values of every pixel\n int[] colors;\n //3-position array where we will store the mean value of every pixel of every channel\n int[] meanColor = new int[3];\n //mean values for every channel\n double meanRed, meanGreen, meanBlue;\n //Create a tessela form the original image so we can modify its pixels\n WritableRaster bitmap = (WritableRaster) image.getData();\n WritableRaster tesela = bitmap.createWritableChild(image.getMinX(), image.getMinY(), image.getWidth(), image.getHeight(), 0,0, null);\n //Image iteration\n for (int x = 0; x < image.getWidth()-1; x++){\n for (int y = 0; y < image.getHeight()-1; y++) {\n int red = 0, green=0, blue = 0;\n //Window iteration\n for (int f =-value; f <= value; f++) {\n for (int k = -value; k <= value; k++) {\n //Get every window coordinate, but first check if they actually exist (not out of bounds)\n if (y+(f)>=0 && x+(k)>=0 && y+(f) < image.getHeight() && x+(k)<image.getWidth()) {\n //Temporal store of the value of every channel so then we can compute the mean\n colors = getPixelColor(image,x+k,y+f);\n red += colors[0];\n green += colors[1];\n blue += colors[2];\n }\n }\n }\n //To compute the mean of every color we have to compute the 'distance'+1\n int distance = (value - (-value)+1)*(value - (-value)+1);\n //For every channel, compute the new pixel value\n meanRed = red / distance;\n meanColor[0] = (int) meanRed; \n meanGreen = green / distance;\n meanColor[1] = (int) meanGreen;\n meanBlue = blue / distance;\n meanColor[2] = (int) meanBlue;\n bitmap.setPixel(x,y,meanColor);\n }\n }\n //Create the averaged image and return it\n BufferedImage subImage = new BufferedImage(image.getColorModel(),tesela,image.isAlphaPremultiplied(),null);\n return subImage;\n }", "@SuppressWarnings(\"unused\")\n\tprivate void cloneImage() {\n//\t\tColorModel cm = offimg.getColorModel();\n//\t\t boolean isAlphaPremultiplied = cm.isAlphaPremultiplied();\n//\t\t WritableRaster raster = offimg.copyData(null);\n//\t\t offimg2 = new BufferedImage(cm, raster, isAlphaPremultiplied, null);\n//\t\t BufferedImage currentImage = new BufferedImage(width,height,BufferedImage.TYPE_3BYTE_BGR);\n\n\t//Fastest method to clone the image (DOES NOT WORK for MACOS)\n//\t\t int[] frame = ((DataBufferInt)offimg.getRaster().getDataBuffer()).getData();\n//\t\t int[] imgData = ((DataBufferInt)offimg2.getRaster().getDataBuffer()).getData();\n//\t\t System.arraycopy(frame,0,imgData,0,frame.length);\n\t}", "public Bitmap rgbAverageContrastAugmentation(Bitmap bmp) {\n\n\n int width, height, r, g, b;\n long acc = 0;\n width = bmp.getWidth();\n height = bmp.getHeight();\n //Alocate memory\n int[] hist = new int[256];\n int[] LUT = new int[256];\n int[] pixels = new int[height * width];\n bmp.getPixels(pixels, 0, width, 0, 0, width, height);\n for (int index = 0; index < width * height; ++index) {\n //Do general Histogram\n r = (pixels[index] >> 16) & 0xff;\n g = (pixels[index] >> 8) & 0xff;\n b = (pixels[index]) & 0xff;\n hist[r]++;\n hist[g]++;\n hist[b]++;\n }\n for (int ng = 0; ng < 256; ng++) {\n hist[ng] /= 3; //Getting average of three RGB channels\n acc += hist[ng]; //Cumulative function\n LUT[ng] = (int) ((acc * 255) / ((width * height))); //Histogram Equalization formula\n }\n //Setting new pixels to image.\n for (int index = 0; index < width * height; index++) {\n r = LUT[(pixels[index] >> 16) & 0xff];\n g = LUT[(pixels[index] >> 8) & 0xff];\n b = LUT[(pixels[index]) & 0xff];\n pixels[index] = ((0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff);\n }\n bmp.setPixels(pixels, 0, width, 0, 0, width, height);\n\n\n\n\n return bmp;\n }", "public BufferedImage ImageConvolution(BufferedImage image, String type) {\r\n int[][] template = getTemplate(type); //gets template we are using\r\n int[][] template1 = new int[3][3];\r\n if (type == \"Roberts\") {\r\n template1 = getTemplate(\"Roberts1\");\r\n }\r\n int height = image.getHeight();\r\n int width = image.getWidth();\r\n int sum = 0;\r\n for (int i = 0; i < template.length; i++) {\r\n for (int j = 0; j < template.length; j++) {\r\n sum += template[i][j]; //get sum of kernel for division\r\n }\r\n }\r\n if (sum == 0) {\r\n sum = 1; //if sum is 0 set to 1\r\n }\r\n\r\n int[][][] original = convertToArray(image);\r\n int[][][] padded = new int[width + 2][height + 2][4];\r\n int[][][] tempPadded = new int[width + 2][height + 2][4];\r\n //add padding\r\n for (int y = 0; y < height + 2; y++) {\r\n for (int x = 0; x < width + 2; x++) {\r\n for (int i = 0; i < 4; i++) {\r\n if (x == 0 || y == 0 || x == width + 1 || y == height + 1) { //if an edge pixel\r\n padded[x][y][i] = 0; //set edge to 0 for padding\r\n tempPadded[x][y][i] = 255;\r\n } else {\r\n padded[x][y][i] = original[x - 1][y - 1][i]; //-1 to ignore padding\r\n tempPadded[x][y][i] = original[x - 1][y - 1][i];\r\n }\r\n }\r\n }\r\n }\r\n\r\n //loop through all pixels ignoring edge pixels (padding)\r\n for (int y = 1; y < height + 1; y++) {\r\n for (int x = 1; x < width + 1; x++) {\r\n int count[] = new int[]{0, 0, 0};\r\n for (int i = 0; i < template.length; i++) //loop through 3x3 kernel, return count of multiplying by kernel.\r\n {\r\n for (int j = 0; j < template.length; j++) {\r\n count[0] += tempPadded[x + i - 1][y + j - 1][1] * template[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n count[1] += tempPadded[x + i - 1][y + j - 1][2] * template[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n count[2] += tempPadded[x + i - 1][y + j - 1][3] * template[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n }\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n if (type == \"Sobel X\" || type == \"Sobel Y\") {\r\n original[x - 1][y - 1][i + 1] = Math.abs(count[i] / sum); //sets colour value to count / sum of the kernel\r\n } else {\r\n original[x - 1][y - 1][i + 1] = count[i] / sum; //sets colour value to count / sum of the kernel\r\n }\r\n }\r\n }\r\n }\r\n //if roberts\r\n if (type == \"Roberts\") {\r\n for (int y = 1; y < height + 1; y++) {\r\n for (int x = 1; x < width + 1; x++) {\r\n int count[] = new int[]{0, 0, 0};\r\n for (int i = 0; i < template.length; i++) //loop through 3x3 kernel, return count of multiplying by kernel.\r\n {\r\n for (int j = 0; j < template.length; j++) {\r\n count[0] += tempPadded[x + i - 1][y + j - 1][1] * template1[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n count[1] += tempPadded[x + i - 1][y + j - 1][2] * template1[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n count[2] += tempPadded[x + i - 1][y + j - 1][3] * template1[i][j]; //multiply 0,0 by 0,0 in the kernel and add to count\r\n }\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n original[x - 1][y - 1][i + 1] = Math.abs(count[i] / sum); //sets colour value to count / sum of the kernel\r\n }\r\n }\r\n }\r\n }\r\n return convertToBimage(original);\r\n }", "private void equalize(BufferedImage img) {\n \t\tfloat minSat = Float.MAX_VALUE, maxSat = Float.MIN_VALUE;\n \t\tfloat minVal = Float.MAX_VALUE, maxVal = Float.MIN_VALUE;\n \t\t\n \t\tint[] prgb = { 0, 0, 0 };\n \t\tfloat[] hsv = { 0, 0, 0 };\n \t\t\n \t\tint[] valCount = new int[16];\n \t\t\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n \t\t\t\tint pixel = img.getRGB(x, y);\n \t\t\t\tpixelToRGB(pixel, prgb);\n \t\t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], hsv);\n \t\t\t\tminSat = Math.min(hsv[1], minSat);\n \t\t\t\tmaxSat = Math.max(hsv[1], maxSat);\n \t\t\t\tminVal = Math.min(hsv[2], minVal);\n \t\t\t\tmaxVal = Math.max(hsv[2], maxVal);\n \t\t\t\tvalCount[(int) (hsv[2] / 16)]++;\n \t\t\t}\n \t\t}\n \t\t\n \t\tint maxPt = -1;\n \t\tfor (int i = 1; i < 15; i++) {\n \t\t\tif (maxPt == -1 || valCount[i] >= valCount[maxPt]) {\n \t\t\t\tmaxPt = i;\n \t\t\t}\n \t\t}\n \t\t\n \t\tint valueMidpoint = maxPt * 16;\n \t\t\n \t\tSystem.out.println(\"Equalize: sat = \"+minSat+\" to \" +maxSat+\"; val = \" + minVal + \" to \" + maxVal+\"; value midpoint = \" + valueMidpoint);\n \t\tfloat satScale = 1.0f - minSat;\n \t\tfloat valScale = 255 - minVal;\n \t\tfloat satDiff = maxSat - minSat;\n \t\tfloat valDiff = maxVal - minVal;\n \t\t\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n \t\t\t\tint pixel = img.getRGB(x, y);\n \t\t\t\tpixelToRGB(pixel, prgb);\n \t\t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], hsv);\n \t\t\t\t\n \t\t\t\tif (satDiff < 0.5)\n \t\t\t\t\thsv[1] = ((hsv[1] - minSat) / satDiff) * satScale + minSat;\n \t\t\t\tif (valDiff < 128)\n \t\t\t\t\thsv[2] = ((hsv[2] - minVal) / valDiff) * valScale + minVal;\n \n \t\t\t\thsvToRgb(hsv[0], hsv[1], hsv[2], prgb);\n \t\t\t\t\n \t\t\t\timg.setRGB(x, y, rgb8ToPixel(prgb) | (pixel & 0xff000000));\n \t\t\t}\n \t\t}\n \t}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public Pic greyscale() {\n Pic output = image.deepCopy();\n Pixel[][] outputPixels = output.getPixels();\n for (int row = 0; row < output.getHeight(); row++) {\n for (int col = 0; col < output.getWidth(); col++) {\n Pixel current = outputPixels[row][col];\n //Gets average of red, green, and blue values\n int average = (current.getRed() + current.getGreen()\n + current.getBlue()) / 3;\n current.setRed(average);\n current.setGreen(average);\n current.setBlue(average);\n }\n }\n return output;\n }", "public void ToImage(){\n\t\tint row=SL.length;\n\t\tint col=SL[0].length;\n\t\tint cr=0;\n\t\tint cb=0;\n\t\t// System.out.println(row+\" \"+col);\n\t\tint[] intArray = new int[3*row*col];\n\t\tint w=row;\n\t int h=col;\n\t BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);\n\t\tint pixel = 0;\n\t\tfor(int x=0;x<row;x++){\n\t\t\tfor(int y=0;y<col;y++){\n\t\t\t\tint rByte = (int)(SL[x][y]);\n\t\t int gByte = (int)(SL[x][y]);\n\t\t int bByte = (int)(SL[x][y]);\n\t\t \n\t\t // int rByte = (int)(SL[x][y]+1.402*(cr-128));\n\t\t // int gByte = (int)(SL[x][y]-0.3414*(cb-128)-0.71414*(cr-128));\n\t\t // int bByte = (int)(SL[x][y]+1.772*(cb-128));\n\t\t int rgb = (rByte *65536) + (gByte * 256) + bByte;\n\t\t image.setRGB(x,y,rgb);\n\t \t}\n\t\t}\n\t try {\n\t ImageIO.write(image, \"bmp\", new File(\"\"+picture_num+\".png\"));\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t }\n\t}", "public void fade2black() {\n int var3 = this.field_723 * this.field_724;\n int var2 = 0;\n if(field_759 || var2 < var3) {\n do {\n int var1 = this.pixels[var2] & 16777215;\n this.pixels[var2] = (var1 >>> 1 & 8355711) + (var1 >>> 2 & 4144959) + (var1 >>> 3 & 2039583) + (var1 >>> 4 & 986895);\n ++var2;\n } while(var2 < var3);\n\n }\n }", "public static Image filtroGrisRojo(Image img){\n WritableImage resultImg = new WritableImage((int)img.getWidth(),(int)img.getHeight());\n PixelReader pixelr = img.getPixelReader();\n PixelWriter pixelw = resultImg.getPixelWriter();\n \n for (int i = 0; i < img.getHeight(); i++) {\n for (int j = 0; j < img.getWidth(); j++) {\n Color color = pixelr.getColor(j, i);\n double red;\n red = color.getRed();\n red *= 255;\n pixelw.setColor(j, i, Color.rgb((int)red, (int)red, (int)red));\n }\n }\n \n return resultImg;\n }", "public static Double[][] preformRGBMaxPooling(Double[][][] img, int w, int h, int s) {\n Double[][] r = operationMaxPooling(img[0], w, h, s);\n Double[][] g = operationMaxPooling(img[1], w, h, s);\n Double[][] b = operationMaxPooling(img[2], w, h, s);\n Double[][] output = new Double[r.length][r[0].length];\n for (double y = 0; y < output.length; y++) {\n for (double x = 0; x < output[0].length; x++) {\n output[y][x] = r[y][x] + g[y][x] + b[y][x];\n }\n }\n return output;\n }", "public BufferedImage ROI(BufferedImage timg) {\n\n int width = timg.getWidth();\n int height = timg.getHeight();\n\n int[][][] ImageArray = convertToArray(timg);\n int[][][] ImageArray1 = convertToArray(timg);\n int[][][] ImageArray3 = convertToArray(timg);\n // for region ogf interest 100 - 200 y-axis and 100 - 200 x -axis\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n ImageArray1[x][y][1] = 0; //r\n ImageArray1[x][y][2] = 0; //g\n ImageArray1[x][y][3] = 0; //b\n }\n }\n\n for (int y = 150; y < 400; y++) {\n for (int x = 150; x < 400; x++) {\n ImageArray1[x][y][1] = 1; //r\n ImageArray1[x][y][2] = 1; //g\n ImageArray1[x][y][3] = 1; //b\n }\n }\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n ImageArray1[x][y][1] = (int) (ImageArray1[x][y][1] * ImageArray[x][y][1]); //r\n ImageArray1[x][y][2] = (int) (ImageArray1[x][y][2] * ImageArray[x][y][2]); //g\n ImageArray1[x][y][3] = (int) (ImageArray1[x][y][3] * ImageArray[x][y][3]); //b\n }\n }\n ImageArray3 = rescaleShift(ImageArray1);\n\n return convertToBimage(ImageArray3);\n\n }", "public void invertImage()\r\n {\r\n BufferedImage toInvert;\r\n if (isChanged || isBlured )\r\n {\r\n toInvert = cropedEdited;\r\n }\r\n else\r\n {\r\n toInvert = cropedPart;\r\n }\r\n for (int x = 0; x < toInvert.getWidth(); x++) {\r\n for (int y = 0; y < toInvert.getHeight(); y++) {\r\n int rgba = toInvert.getRGB(x, y);\r\n Color col = new Color(rgba, true);\r\n col = new Color(255 - col.getRed(),\r\n 255 - col.getGreen(),\r\n 255 - col.getBlue());\r\n toInvert.setRGB(x, y, col.getRGB());\r\n }\r\n }\r\n repaint();\r\n }", "private static void filterNoise(BufferedImage image) {\n\t\tfor (int x=0; x<image.getWidth(); x++) {\r\n\t\t\tfor (int y=0; y<image.getHeight(); y++) {\r\n\t\t\t\t\r\n\t\t\t\tint pixelVal = image.getRGB(x, y);\r\n\r\n\t\t\t\t// check how many pixels in a 2 x 2 rectangle with this point \r\n\t\t\t\t// in the center have the same color as this point; if not \r\n\t\t\t\t// many, flip this pixel's color\r\n\t\t\t\tint startX = Math.max(x-2, 0);\r\n\t\t\t\tint startY = Math.max(y-2, 0);\r\n\t\t\t\tint endX = Math.min(x+2, image.getWidth()-1);\r\n\t\t\t\tint endY = Math.min(y+2, image.getHeight()-1);\r\n\r\n\t\t\t\tint matchCount = 0;\r\n\t\t\t\tint totalCount = 0;\r\n\t\t\t\tfor (int i=startX; i<=endX; i++) {\r\n\t\t\t\t\tfor (int j=startY; j<=endY; j++) {\r\n\t\t\t\t\t\tif (image.getRGB(i,j) == pixelVal) {\r\n\t\t\t\t\t\t\tmatchCount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttotalCount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ((matchCount / (double) totalCount) < .2) {\r\n\t\t\t\t\tif (pixelVal == Color.YELLOW.getRGB()) {\r\n\t\t\t\t\t\timage.setRGB(x, y, Color.BLACK.getRGB());\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\timage.setRGB(x, y, Color.YELLOW.getRGB());\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\r\n\t\tif (debug) {\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.write(image, \"gif\", new File(\"noiseFiltered.gif\"));\r\n\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t}\r\n\t}", "private Image scaleImage(Image image) { \n\t\treturn image.getScaledInstance(700, 500, Image.SCALE_SMOOTH); //Going to Scale the Image to the Size and Width Specified with the Highest Smoothness Possible \n\t}", "Compress(double[][][] Image){\n \n /** Step 1 */\n R1 = new Reduce(Image);\n A1 = R1.Nearest(2);\n // A1 = R1.Bilinear(2);\n \n /** Step 2 */ \n R2 = new Reduce(A1);\n A2 = R2.Nearest(2);\n //A2 = R2.Bilinear(2);\n \n /** Step 3 */\n R3 = new Reduce(A2);\n A3 = R3.Nearest(2);\n //A3 = R3.Bilinear(2);\n \n /** Step 4 */\n R4 = new Reduce(A3);\n A4 = R4.Nearest(2);\n //A4 = R4.Bilinear(2);\n\n }", "private void processImage(Mat image) {\t\t\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//vvvvvvvvvvvvvvvvvvv FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE vvvvvvvvvvvvvvvvvvv//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\tif (processingForPeg)\r\n\t\t{\r\n\t\t\tTargetInformation targetInfo;\r\n\t\t\tMat cleanedImage = getHSVThreshold(image);\r\n\t\t\ttargetInfo = findPeg(cleanedImage);\r\n\t\t\tinfoList.add(targetInfo);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tframesToProcess = 100; // So that the processing is continuous until found\r\n\t\t\tlookingAtGear = lookForGear(image);\r\n\t\t}\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t//^^^^^^^^^^^^^^^^^^^ FUTURE YEARS LOOK HERE, THIS IS WHAT YOU WILL WANT TO REPLACE ^^^^^^^^^^^^^^^^^^^//\r\n\t\t/////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t\r\n\t\treturn;\r\n }", "@Test\n public void testICCProfileCMYKClassOutputColors() throws IOException {\n // Make sure ICC profile with class output isn't converted to too bright values\n JPEGImageReader reader = createReader();\n reader.setInput(ImageIO.createImageInputStream(getClassLoaderResource(\"/jpeg/cmyk-sample-custom-icc-bright.jpg\")));\n\n ImageReadParam param = reader.getDefaultReadParam();\n param.setSourceRegion(new Rectangle(800, 800, 64, 8));\n param.setSourceSubsampling(8, 8, 1, 1);\n\n BufferedImage image = reader.read(0, param);\n assertNotNull(image);\n\n byte[] data = ((DataBufferByte) image.getRaster().getDataBuffer()).getData();\n byte[] expectedData = {34, 37, 34, 47, 47, 44, 22, 26, 28, 23, 26, 28, 20, 23, 26, 20, 22, 25, 22, 25, 27, 18, 21, 24};\n\n assertEquals(expectedData.length, data.length);\n\n assertJPEGPixelsEqual(expectedData, data, 0);\n\n reader.dispose();\n }", "public static GrayImage toGray(RealColorImage img) throws ColorModelNotSupportedException,\n\t\t\tColorModelUnknownException {\n\t\tint X = img.X();\n\t\tint Y = img.Y();\n\t\tfloat[] color = new float[3];\n\t\tint gray;\n\t\tGrayImage newimg = null;\n\t\tswitch (img.getColorModel()) {\n\t\tcase ColorImage.RGB:\n\t\t\tnewimg = new GrayImage(X, Y);\n\t\t\tfor (int y = 0; y < Y; y++) {\n\t\t\t\tfor (int x = 0; x < X; x++) {\n\t\t\t\t\tcolor = img.get(x, y);\n\t\t\t\t\tgray = (int) (color[0] * 0.299 + color[1] * 0.587 + color[2] * 0.114);\n\t\t\t\t\tnewimg.set(x, y, gray);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase ColorImage.CMY:\n\t\tcase ColorImage.YIQ:\n\t\tcase ColorImage.HSV:\n\t\tcase ColorImage.HLS:\n\t\t\tthrow new ColorModelNotSupportedException();\n\t\tdefault:\n\t\t\tthrow new ColorModelUnknownException();\n\t\t}\n\t\treturn newimg;\n\t}" ]
[ "0.6377207", "0.61269784", "0.6026321", "0.5982374", "0.5924272", "0.58530277", "0.5823806", "0.58028823", "0.5766622", "0.57450026", "0.5730263", "0.56187564", "0.5571055", "0.5557873", "0.55486065", "0.5545009", "0.5522578", "0.55189073", "0.5509168", "0.5499542", "0.5482674", "0.5480276", "0.5456542", "0.5433848", "0.5432945", "0.54083645", "0.5408156", "0.5407626", "0.5389136", "0.53673327", "0.5366447", "0.5358129", "0.5347527", "0.5327352", "0.5327352", "0.53250504", "0.53227615", "0.5319253", "0.5317455", "0.53166234", "0.53113", "0.5311015", "0.530037", "0.5295479", "0.5292546", "0.52890456", "0.5282601", "0.5275832", "0.5264332", "0.52638125", "0.52598315", "0.5253787", "0.52516055", "0.5229587", "0.5226055", "0.522428", "0.5212541", "0.52045244", "0.51969355", "0.5164037", "0.51567173", "0.5155919", "0.51422477", "0.51361966", "0.51360273", "0.5130917", "0.5121581", "0.5109091", "0.51089245", "0.50953764", "0.50943786", "0.5090064", "0.50860786", "0.5073244", "0.506265", "0.50523746", "0.50486606", "0.5041884", "0.50381064", "0.50277084", "0.50226396", "0.5021968", "0.5020671", "0.5018975", "0.50107974", "0.50073624", "0.4998257", "0.49965027", "0.4994391", "0.49934617", "0.49904388", "0.4989524", "0.4983031", "0.4982786", "0.4980473", "0.4975716", "0.49729508", "0.49717322", "0.49687427", "0.49654046" ]
0.77375776
0
Converts a buffered image into a NDArray.
private static INDArray imageToNDArray(BufferedImage image) { float[][][][] data = new float[1][1][image.getWidth()][image.getHeight()]; // Loop through each pixel of the image for (int x = 0; x < image.getWidth(); x++) { for (int y = 0; y < image.getHeight(); y++) { // Get color components (r, g, b) Color color = new Color(image.getRGB(x, y)); int red = color.getRed(); int green = color.getGreen(); int blue = color.getBlue(); // Calculate grey scale value and normalise float grey = (float) (red + green + blue) / 3; float normalised = 1 - grey / 255.0f; // Save value into array data[0][0][y][x] = normalised; } } // Convert java array to NDArray return Nd4j.create(data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] bufferedImageToByteArray(BufferedImage bufferedImage) {\n byte[] byteImage = null;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n try {\n ImageIO.write(bufferedImage, \"jpg\", baos);\n baos.flush();\n byteImage = baos.toByteArray();\n baos.close();\n } catch (IOException ex) {\n Logger.getLogger(ProcessImage.class.getName()).log(Level.SEVERE, null, ex);\n }\n return byteImage;\n }", "private static double [][][] convertToArray1(BufferedImage image) {\n int width = image.getWidth();\n int height = image.getHeight();\n\n double [][][] result = new double [width][height][4];\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n int p = image.getRGB(x, y);\n int a = (p >> 24) & 0xff;\n int r = (p >> 16) & 0xff;\n int g = (p >> 8) & 0xff;\n int b = p & 0xff;\n\n result[x][y][0] = a;\n result[x][y][1] = r;\n result[x][y][2] = g;\n result[x][y][3] = b;\n }\n }\n return result;\n }", "private static int[][][] convertToArray(BufferedImage image) {\n int width = image.getWidth();\n int height = image.getHeight();\n\n int[][][] result = new int[width][height][4];\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n int p = image.getRGB(x, y);\n int a = (p >> 24) & 0xff;\n int r = (p >> 16) & 0xff;\n int g = (p >> 8) & 0xff;\n int b = p & 0xff;\n\n result[x][y][0] = a;\n result[x][y][1] = r;\n result[x][y][2] = g;\n result[x][y][3] = b;\n }\n }\n return result;\n }", "public NioImageBuffer[] getNioImage() {\n\n \tthrow new UnsupportedOperationException();\n }", "public IntBuffer getData(BufferedImage img)\n\t{\n\t\tIntBuffer buf = IntBuffer.allocate(img.getWidth()*img.getHeight());\n\t\t//ByteBuffer b = ByteBuffer.allocate(buf.capacity()*4);\n\n\t\tfor(int i=0; i<img.getHeight(); i++)\n\t\t{\n\t\t\tfor(int j=0; j<img.getWidth(); j++)\n\t\t\t{\n\t\t\t\t// We need to shuffle the RGB values to pass them correctly to OpenGL. \n\t\t\t\tint in = img.getRGB(j,i);\n\t\t\t\tint out = ((in & 0x000000FF) << 16) | (in & 0x0000FF00) | ((in & 0x00FF0000) >> 16);\n\t\t\t\tbuf.put((img.getHeight()-i-1)*img.getWidth()+j, out);\n\t\t\t}\n\t\t}\n\t\t//b.asIntBuffer().put(buf);\n\t\treturn buf;\n\t}", "private Color[] imageToArray(BufferedImage image){\n Color[] pixels = new Color[image.getWidth() * image.getWidth()];\n for (int i = 0; i < image.getHeight(); i++) {\n for (int j = 0; j < image.getWidth(); j++) {\n Color color = new Color(image.getRGB(j,i));\n pixels[i*image.getWidth() + j] = color;\n }\n }\n return pixels;\n }", "public static Image toImage(BufferedImage bufferedImage) {\r\n return Toolkit.getDefaultToolkit().createImage(bufferedImage.getSource());\r\n }", "public static int[] convertImageToIntArray(Image image)\n {\n // Get byte array representing every pixels of the image\n return ((DataBufferInt)convertImageToBufferedImage(image).getRaster().getDataBuffer()).getData();\n }", "public byte[] get_byte_data(BufferedImage image) {\n WritableRaster raster = image.getRaster();\n DataBufferByte buffer = (DataBufferByte) raster.getDataBuffer();\n return buffer.getData();\n }", "public static byte[] imageToByteArray(BufferedImage image) {\n if (image != null) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n try {\n ImageIO.write(image, \"png\", baos);\n baos.flush();\n byte[] imageInByte = baos.toByteArray();\n baos.close();\n return imageInByte;\n } catch (IOException ex) {\n log.error(\"error while converting to byte array\", ex);\n }\n WritableRaster raster = image.getRaster();\n DataBufferByte data = (DataBufferByte) raster.getDataBuffer();\n return data.getData();\n }\n return new byte[0];\n }", "public NioImageBuffer getNioImage(int index) {\n\n \tthrow new UnsupportedOperationException();\n }", "public IplImage toIplImage(BufferedImage bufferedImage){\n IplImage iplImage = new IplImage();\n iplImage = IplImage.createFrom(bufferedImage);\n return iplImage;\n }", "@Override\n public Object getNDArray() {\n NDArray<?>[] arr = new NDArray[2];\n arr[0] = new NDArray<>(getMagGrid().getFloats(), getMagGrid().getYdim(),\n getMagGrid().getXdim());\n arr[1] = new NDArray<>(getDirGrid().getFloats(), getDirGrid().getYdim(),\n getDirGrid().getXdim());\n return arr;\n }", "public Image readImage() throws IOException\n {\n int width = readInt();\n int height = readInt();\n int[] rgbData = new int[width*height];\n for (int ii = 0; ii < rgbData.length; ii++)\n {\n rgbData[ii] = readInt();\n }\n return Image.createRGBImage(rgbData, width, height, true);\n }", "public BufferedImage toImage(BufferedImage image) throws FFTException {\r\n\t\treturn toImage(image, 0);\r\n\t}", "public static native int nativeRecoRawdat(byte []imgdata, int width, int height, int imgfmt, int lft, int rgt, int top, int btm, byte []bresult, int maxsize);", "private double[][] getInputData(BufferedImage picture) {\n\t\t\n\t\tArrayData image = ImageProcess.loadImageDataFromBI(picture);\n\t\t\n\t\tdouble[][] result = new double[image.getH()*image.getW()][3];\n\n\t\tfor(int h = 0; h < image.getH(); h++)\n\t\t\tfor(int w = 0; w < image.getW(); w++) {\n\t\t\t\tdouble R = image.get(0, h, w);\n\t\t\t\tdouble G = image.get(1, h, w);\n\t\t\t\tdouble B = image.get(2, h, w);\n//\t\t\t\t// R\n\t\t\t\tresult[ h*image.getW() + w ][0] = (double) R/255.0;\n//\t\t\t\t// G\n\t\t\t\tresult[ h*image.getW() + w ][1] = (double) G/255.0;\n\t\t\t\t// B\n\t\t\t\tresult[ h*image.getW() + w ][2] = (double) B/255.0;\n\t\t\t\tdouble Lumi = 0.299*R + 0.587*G + 0.114*B;\n//\t\t\t\tresult[ h*image.getW() + w ][0] = Lumi/255; \t// Luminancja\n\t\t\t\tdouble Odc = Math.atan2(Math.sqrt(3)*(G-B), 2*R-G-B);\n//\t\t\t\tresult[ h*image.getW() + w ][0] = Odc;\t\t\t// Odcień\n\t\t\t\tdouble maks = Math.max(R,G);\n\t\t\t\tmaks = Math.max(maks,B);\n\t\t\t\tdouble min = Math.min(R, G);\n\t\t\t\tmin = Math.min(min, B);\n\t\t\t\tdouble Nas = (maks-min)/maks;\n\t\t\t\tif(Nas > 1.0 || Nas < 0.0)\n\t\t\t\t\tNas = 0.0;\n//\t\t\t\tresult[ h*image.getW() + w ][1] = Nas; \t\t\t// Nasycenie\n\t\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Override\n public ImageData[] newArray(int size) {\n return new ImageData[size];\n }", "public static IntBuffer convertImage(BufferedImage temp)\t{\n\t\tint totalPixels = temp.getWidth() * temp.getHeight();\n\t\tint[] imgPixels = new int[totalPixels];\n\t\timgPixels = temp.getRGB(0, 0, temp.getWidth(), temp.getHeight(), null, 0, temp.getWidth());\n\t\t\n\t\t// Extract and rearrange the integer buffer in order to enable OpenGL \n\t\t// for further using the buffer data\n\t\tint[] buffer = new int[totalPixels];\n\t\tint i;\n\t\tfor(int y = 0; y < temp.getHeight(); y++)\t{\n\t\t\tfor(int x = 0; x < temp.getWidth(); x++)\t{\n\t\t\t\t// Isolate the bits and arrange them in the A-B-G-R order\n\t\t\t\t// Shift the binary digit to the right to get its value\n\t\t\t\ti = x + y * temp.getWidth();\n\t\t\t\tint a = (imgPixels[i] & 0xff000000) >> 24;\n\t\t\t\tint r = (imgPixels[i] & 0xff0000) >> 16;\n\t\t\t\tint g = (imgPixels[i] & 0xff00) >> 8;\n\t\t\t\tint b = (imgPixels[i] & 0xff);\n\t\t\t\t\n\t\t\t\tbuffer[temp.getWidth() * (temp.getHeight() - 1 - y) + x] = a << 24\n\t\t\t\t\t\t| b << 16 | g << 8 | r;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Convert the array to buffer then return\n\t\treturn convertInt(buffer);\n\t}", "private static BufferedImage toBufferedImage(final Image image) {\n final BufferedImage buffered = new BufferedImage(image.getWidth(null),\n image.getHeight(null), BufferedImage.TYPE_INT_ARGB);\n buffered.getGraphics().drawImage(image, 0, 0, null);\n return buffered;\n }", "private NDArray flattenForFullyConnected(final NDArray ndArray) {\n //Get the current shape of the ndArray\n final Shape shape = ndArray.getShape();\n //Get the batch size (the first dimension) of the shape\n final long batchSize = shape.get(0);\n //Get the remaining size\n final long dataSize = shape.size() / batchSize;\n //Reshape the array, so we have one batch dimension and only one for the data\n return ndArray.reshape(batchSize, dataSize);\n }", "public static BufferedImage bytes2RGB(int width, byte[] buffer) {\r\n int height = buffer.length / width / 3;\r\n ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_sRGB);\r\n ColorModel cm = new ComponentColorModel(cs, false, false,\r\n Transparency.OPAQUE, DataBuffer.TYPE_BYTE);\r\n SampleModel sm = cm.createCompatibleSampleModel(width, height);\r\n DataBufferByte db = new DataBufferByte(buffer, width * height);\r\n WritableRaster raster = Raster.createWritableRaster(sm, db, null);\r\n BufferedImage result = new BufferedImage(cm, raster, false, null);\r\n\r\n return result;\r\n }", "public static Mat bufferedImageToMat(BufferedImage bi) {\n\t\tMat mat = new Mat(bi.getHeight(), bi.getWidth(), CvType.CV_8UC3);\n\t\tbyte[] data = ((DataBufferByte) bi.getRaster().getDataBuffer()).getData();\n\t\tmat.put(0, 0, data);\n\t\treturn mat;\n\t}", "public int[][][] getdata(){\r\n\t\theight = BfImage.getHeight();\r\n\t\twidth = BfImage.getWidth();\r\n\t\tint[][][] data = new int[height][width][3];\r\n\t\t\r\n\t\tfor (int x = 0; x < width; x++)\t\t\t\t//store image's RGB data\r\n\t\t\tfor (int y = 0; y < height; y++) {\r\n\t\t\t\tint rgb = BfImage.getRGB(x, y);\r\n\t\t\t\tif (rgb == 0 || rgb == 3){\t//is transparent || Transparency.TRANSLUCENT\r\n\t\t\t\t\tdata[y][x][0] = -1;\r\n\t\t\t\t\tdata[y][x][1] = -1;\r\n\t\t\t\t\tdata[y][x][2] = -1;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tdata[y][x][0] = Utils.getR(rgb);\r\n\t\t\t\t\tdata[y][x][1] = Utils.getG(rgb);\r\n\t\t\t\t\tdata[y][x][2] = Utils.getB(rgb);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn data;\r\n\t}", "public native void readImage(ImageInfo imageInfo) throws MagickException;", "private static int[][][] getImagePixels(Image img) {\n\n // Get the raw pixel data \n iObserver observer = new iObserver();\n int width1 = img.getWidth(observer);\n int height1 = img.getHeight(observer);\n int[] rawPixels = utils.getPixels(img,width1,height1);\n\n // Each pixel is represented by 32 bits. Separate the tH32 bits into\n // four 8-bit values (red, green, blue, offset).\n int[][] rgbPixels = new int[rawPixels.length][4];\n for(int j=0; j<rawPixels.length; j++) {\n rgbPixels[j][0] = ((rawPixels[j]>>16)&0xff);\n rgbPixels[j][1] = ((rawPixels[j]>>8)&0xff);\n rgbPixels[j][2] = (rawPixels[j]&0xff);\n rgbPixels[j][3] =((rawPixels[j]>>24)&0xff);\n } // for j\n\n // Arrange the data by rows and columns\n int[][][] imagePixels = new int[height1][width1][4];\n int index=0;\n for(int row=0; row<imagePixels.length; row++) {\n for(int col=0; col<imagePixels[0].length; col++) {\n for(int rgbo=0; rgbo<4; rgbo++) {\n imagePixels[row][col][rgbo]=rgbPixels[index][rgbo];\n } // for rgbo\n index++;\n } // for col\n } // for row\n return imagePixels;\n }", "public BufferedImage imageToBuffered(Image img) {\n BufferedImage bfImg = new BufferedImage(\n img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_ARGB);\n\n // Copy image to buffered image.\n Graphics g = bfImg.createGraphics();\n\n // Clear background and paint the image.\n g.drawImage(img, 0, 0, null);\n g.dispose();\n\n return bfImg;\n }", "@Override\n \tpublic Object[] getImageArray() {\n \t\t// Release 3 times an RGB stack with this dimensions.\n \t\tlayers.get(0).getProject().getLoader().releaseToFit((long)(getSize() * getWidth() * getHeight() * 4 * 3));\n \t\tfinal Object[] ia = new Object[getSize()];\n \t\tfor (int i=0; i<ia.length; i++) {\n \t\t\tia[i] = getProcessor(i+1).getPixels(); // slices 1<=slice<=n_slices\n \t\t}\n \t\treturn ia;\n \t}", "public PngImageDataReader() {\n this(null);\n }", "@Override\n\tprotected float[] readEntireArray(InputStream in) throws IOException\n\t{\n\t\tArrayList<double[]> buffers = new ArrayList<double[]>();\n\n\t\tbyte[] buf = new byte[this.frameSize*2];\n\t\t\n\t\tint nBytesRead = 0;\n\n\t while (nBytesRead != -1)\n\t {\n\t nBytesRead = in.read(buf, 0, buf.length);\n\n\t double[] samples = new double[this.frameSize];\n\n\t for (int i = 0; i < this.frameSize; i++)\n\t\t\t{\n\t\t\t\tint hi = buf[(2 * i)];\n\t\t\t\tint low = buf[(2 * i + 1)] & 0xFF;\n\t\t\t\tint sampVal = hi << 8 | low;\n\t\t\t\tsamples[i] = (sampVal / this.spectralScale);\n\t\t\t}\n\n\t buffers.add( samples );\n\n\t }\n\n\t\tfloat[] totalBuffer = new float[buffers.size()*this.frameSize];\n\t\tint index = 0 ;\n\n\t\t//copy the entire thing over\n\t\tfor(double[] tempBuffer:buffers)\n\t\t{\n\t\t\tfor(int k=0;k<tempBuffer.length;k++)\n\t\t\t{\n\t\t\t\ttotalBuffer[index] = (float)tempBuffer[k];\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\tbuffers.clear();\n\t\tbuffers = null;\n\t\tSystem.gc();\n\t\treturn totalBuffer;\n\t}", "public BufferedImage toBufferedImage() {\n double[][] yData = decompress(yChannel);\n double[][] cBData = upsample(decompress(cBChannel));\n double[][] cRData = upsample(decompress(cRChannel));\n\n BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR);\n for (int x = 0; x < width; ++x) {\n for (int y = 0; y < height; ++y) {\n double[] aYCbCr = {alphaChannel[y][x], yData[y][x], cBData[y][x], cRData[y][x]};\n int aRGB = ImageUtils.channelInt(ImageUtils.toRGB(aYCbCr));\n image.setRGB(x, y, aRGB);\n }\n }\n return image;\n }", "com.google.protobuf.ByteString getImgData(int index);", "public synchronized native static int getLastImage(byte[] pImgBuffer, int nImgLength, int[] pRealImaLength,\n int[] pImgWidth, int[] pImgHeight);", "public Mat Convert(BufferedImage im) {\n\t\t// Convert INT to BYTE\n\t\t//im = new BufferedImage(im.getWidth(), im.getHeight(),BufferedImage.TYPE_3BYTE_BGR);\n\t\t// Convert bufferedimage to byte array\n\t\tbyte[] pixels = ((DataBufferByte) im.getRaster().getDataBuffer())\n\t\t\t\t.getData();\n\n\t\t// Create a Matrix the same size of image\n\t\tMat image = new Mat(im.getHeight(), im.getWidth(), CvType.CV_8UC3);\n\t\t// Fill Matrix with image values\n\t\timage.put(0, 0, pixels);\n\n\t\treturn image;\n\n\n\t}", "public static BufferedImage imageToBufferedImage(Image image) {\r\n BufferedImage bufImageARGB = SwingFXUtils.fromFXImage(image, null);\r\n BufferedImage bufImageRGB = new BufferedImage(bufImageARGB.getWidth(), \r\n bufImageARGB.getHeight(), BufferedImage.OPAQUE);\r\n\r\n Graphics2D graphics = bufImageRGB.createGraphics();\r\n graphics.drawImage(bufImageARGB, 0, 0, null);\r\n \r\n graphics.dispose();\r\n \r\n return bufImageRGB;\r\n }", "public static Integer[][][] getRGBMatrixFromImage(BufferedImage img) {\n int w = img.getWidth();\n int h = img.getHeight();\n Integer[][][] data = new Integer[3][h][w];\n for (int y = 0; y < h; y++) {\n for (int x = 0; x < w; x++) {\n Color c = new Color(img.getRGB(x, y));\n data[0][y][x] = c.getRed();\n data[1][y][x] = c.getGreen();\n data[2][y][x] = c.getBlue();\n }\n }\n return data;\n }", "public BufferedImage byteArrayToBufferedImage(byte[] byteImage) {\n BufferedImage image = null;\n InputStream in = new ByteArrayInputStream(byteImage);\n try {\n image = ImageIO.read(in);\n\n } catch (IOException ex) {\n Logger.getLogger(ProcessImage.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return image;\n }", "@Test\r\n public void testJnaMemory2Mat() {\n Memory buffer = new Memory(width * height * 4);\r\n for (long i = 0; i < width * height; i++) {\r\n long x = i % width, y = i / width;\r\n buffer.setInt(i * 4, pixelFunc(x, y));\r\n }\r\n\r\n // we use the frame only to calculate values:\r\n Frame f = new Frame(width, height, Frame.DEPTH_UBYTE, 4);\r\n Mat m = new Mat(f.imageHeight, f.imageWidth, CV_MAKETYPE(f.imageDepth, f.imageChannels),\r\n new Pointer(buffer.getByteBuffer(0, width * height * 4).position(0)),\r\n f.imageStride * Math.abs(f.imageDepth) / 8);\r\n\r\n LOG.info(\"stride = \" + f.imageStride);\r\n\r\n // remove alpha channel\r\n Mat m2 = new Mat();\r\n cvtColor(m, m2, COLOR_BGRA2BGR);\r\n\r\n imwrite(new File(TEMP_DIR, \"testJnaMemory2Mat.png\").getAbsolutePath(), m2);\r\n // @insert:image:testJnaMemory2Mat.png@\r\n f.close();\r\n }", "public BufferedImage fetch() throws IOException {\n if (!m_initialized) {\n init();\n }\n\n try {\n byte[] header = new byte[4];\n\n while (true) {\n blockingRead(m_sockistream, header, 4);\n\n // Look for header 1,0,0,0\n if (!((header[0] == 1) && ((header[1] + header[2] + header[3]) == 0))) {\n continue;\n }\n\n // wait for length integer (4 bytes)\n while (m_sockistream.available() < 4) {\n }\n\n // Read int length of data to follow\n int imgDataLen = m_daistream.readInt();\n //System.out.println(\" Data Len: \" + imgDataLen + \"Hex:\" + Integer.toHexString(imgDataLen));\n\n // Read in the expected number of bytes\n resizeBuffer(imgDataLen);\n blockingRead(m_sockistream, m_imgBuffer, imgDataLen);\n m_baistream.reset();\n\n // Read the image\n return ImageIO.read(m_baistream);\n }\n } catch (IOException ex) {\n m_sock.close();\n m_initialized = false;\n throw ex;\n }\n }", "public BufferedImgBase(byte[] byteimg) throws IOException{\n // convert byte[] back to a BufferedImage\n InputStream is = new ByteArrayInputStream(byteimg);\n BufferedImage newBi = ImageIO.read(is);\n //this.img --> BufferedImage\n this.img = newBi;\n }", "public byte[] getImageData() {\r\n return imageData;\r\n }", "@Test\r\n public void testJnaMemory2Mat2() {\n Memory buffer = new Memory(width * height * 4);\r\n\r\n // we use the frame only to calculate values:\r\n Frame f = new Frame(width, height, Frame.DEPTH_UBYTE, 4);\r\n Mat m = new Mat(f.imageHeight, f.imageWidth, CV_MAKETYPE(f.imageDepth, f.imageChannels),\r\n new Pointer(buffer.getByteBuffer(0, width * height * 4).position(0)),\r\n f.imageStride * Math.abs(f.imageDepth) / 8);\r\n\r\n LOG.info(\"stride = \" + f.imageStride);\r\n\r\n // write some image data\r\n ByteBuffer bb = m.createBuffer();\r\n for (long i = 0; i < width * height; i++) {\r\n long x = i % width, y = i / width;\r\n int pixel = pixelFunc(x, y);\r\n bb.put((byte) (pixel & 0xff));\r\n bb.put((byte) (pixel >> 8 & 0xff));\r\n bb.put((byte) (pixel >> 16 & 0xff));\r\n bb.put((byte) (pixel >> 24 & 0xff));\r\n }\r\n\r\n // remove alpha channel\r\n Mat m2 = new Mat();\r\n cvtColor(m, m2, COLOR_BGRA2BGR);\r\n\r\n imwrite(new File(TEMP_DIR, \"testJnaMemory2Mat2.png\").getAbsolutePath(), m2);\r\n // @insert:image:testJnaMemory2Mat2.png@\r\n f.close();\r\n }", "public int[][] load(File f) throws IOException {\n BufferedImage image = ImageIO.read(f);\n\n // image is n x m\n int n = image.getWidth();\n int m = image.getHeight();\n\n int[][] imageArray = new int[n][m];\n\n Raster raster = image.getData();\n\n // iterate over new array and populate grayscale values\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n\n // FIXME - a way to assert grayscale?\n // 0 is selected as third argument because image is assumed to be grayscale\n // imageArray[i][j] = raster.getSample(i, j, 0);\n\n imageArray[i][j] = image.getRGB(i, j) & 0xFF;\n }\n }\n\n return imageArray;\n }", "@Test\n\tpublic void testMatAndImgArraysAreSameShape() throws IOException {\n\t\tMat mat = imread( input, opencv_imgcodecs.IMREAD_GRAYSCALE );\n\t\tif ( mat.empty() )\n\t\t\tfail( \"Couldn't load image: \" + input );\n\n\t\tDataset dataset = getScifio().datasetIO().open( input );\n\t\tRandomAccessibleInterval< ByteType > image =\n\t\t\t\tRealTypeConverters.convert( ( RandomAccessibleInterval< ? extends RealType< ? > > ) dataset.getImgPlus().getImg(), new ByteType() );\n\t\tcheckData( image, mat );\n\n\t}", "public static final int[] convert2grey_fast(BufferedImage bim) {\n return convert2grey_fast(bim.getRaster().getDataBuffer());\n }", "@Override\r\n public int[] grabPixels(Object canvas, int width, int height, \r\n int[] pixels, int startRow, int nRows) {\r\n\t {}\r\n int[] buf = Image.grabPixels(Image.getGraphics(canvas), width, height); \r\n /**\r\n * @j2sNative\r\n * \r\n * canvas.buf32 = buf;\r\n * \r\n */\r\n {}\r\n return buf;\r\n\t}", "private static native boolean read_0(long nativeObj, long image_nativeObj);", "public static VImage toVImage(BufferedImage image) {\n if (image.getType() != BufferedImage.TYPE_3BYTE_BGR) {\n throw new IllegalArgumentException(\"Only BufferedImages of type TYPE_3BYTE_BGR can currently be converted to VImage\");\n }\n\n byte[] buffer = ((DataBufferByte) image.getRaster().getDataBuffer()).getData();\n return ValueFactory.newVImage(image.getHeight(), image.getWidth(), buffer);\n }", "public void bufferedImageToMat(BufferedImage bi, Mat mat) {\n \t byte[] data = ((DataBufferByte) bi.getRaster().getDataBuffer()).getData();\r\n \t mat.put(0, 0, data);\r\n \t return ;\r\n \t}", "public static BufferedImage toBufferedImage(final Image img) {\n if (img instanceof BufferedImage) {\n return (BufferedImage) img;\n }\n BufferedImage bimage = new BufferedImage(\n img.getWidth(null),\n img.getHeight(null),\n BufferedImage.TYPE_INT_ARGB);\n Graphics2D bGr = bimage.createGraphics();\n bGr.drawImage(img, 0, 0, null);\n bGr.dispose();\n return bimage;\n }", "public void read(ArrayDataInput in) throws FitsException, IOException;", "BufferedImage toBufferedImageUsingImageIO(byte[] bytes) throws IOException {\n\t\ttry (InputStream data = new ByteArrayInputStream(bytes)) {\n\t\t\treturn ImageIO.read(data);\n\t\t}\n\t}", "private native int grayToRgb(byte src[],int dst[]);", "public static IntegerVarArray make(int[] buffer) {\n\t\treturn new IntegerVarArray(buffer);\n\t}", "public float[] getData()\n {\n return this.pixels;\n }", "private int[][] readPixels() throws IOException {\n \t\tif (!imageFile.exists()) {\n \t\t\tSystem.err.println(\"No such image: \" + imageFile.getPath());\n \t\t\tSystem.exit(2);\n \t\t}\n \n \t\t// read and scale input image\n \t\tfinal BufferedImage image =\n \t\t\tscale(ImageIO.read(imageFile), CAL_WIDTH, CAL_HEIGHT);\n \n \t\t// convert to 2-bit grayscale data\n \t\tfinal int[][] pix = new int[CAL_HEIGHT][CAL_WIDTH];\n \t\tfor (int y = 0; y < CAL_HEIGHT; y++) {\n \t\t\tfor (int x = 0; x < CAL_WIDTH; x++) {\n \t\t\t\tfinal int rgb = image.getRGB(x, y);\n \t\t\t\t// CTR CHECK\n \t\t\t\tfinal int r = 0xff & rgb;\n \t\t\t\tfinal int g = 0xff & (rgb >> 8);\n \t\t\t\tfinal int b = 0xff & (rgb >> 16);\n \n \t\t\t\t// convert RGB to 8-bit grayscale\n \t\t\t\tfinal int gray = (int) Math.round(0.299 * r + 0.587 * g + 0.114 * b);\n \n \t\t\t\t// convert 8-bit to 2-bit (4 possible values)\n \t\t\t\tpix[y][x] = gray / 64;\n \t\t\t}\n \t\t}\n \t\treturn pix;\n \t}", "public static BufferedImage fromArray(float[] data, int width, int height) {\n int[] convertedData = new int[width * height];\n int colorValue;\n for (int i = 0; i < convertedData.length; i++) {\n colorValue = Math.round(data[i]);\n convertedData[i] = ((colorValue << 16) & 0xff0000)\n + ((colorValue << 8) & 0x00ff00) + (colorValue & 0xff);\n }\n BufferedImage image = new BufferedImage(width, height,\n BufferedImage.TYPE_INT_RGB);\n image.setRGB(0, 0, width, height, convertedData, 0, width);\n return image;\n }", "public int[][] cargarImagenDeFichero(String fileName) {\n int[][] img;\n try {\n BufferedImage imageRGB = ImageIO.read(new File(fileName));\n BufferedImage image = getGrayScale(imageRGB);\n int alto = image.getHeight();\n int ancho = image.getWidth();\n img = new int[alto][ancho];\n\n for (int i = 0; i < alto; i++) {\n for (int j = 0; j < ancho; j++) {\n int pix = image.getRGB(j, i);\n Color c = new Color(pix);\n int r = c.getRed(), g = c.getGreen(), b = c.getBlue();\n img[i][j] = (r + g + b) / 3;\n }\n }\n return img;\n }\n catch (IOException e) { return null; }\n }", "public int[] toArray() {\n return Arrays.copyOf(buffer, elementsCount);\n }", "protected abstract NDArray[] onMatrix(NDArray matrix);", "public ImageData getImageData() {\n\t\treturn this.data.getImageData();\n\t}", "public native byte[] imageToBlob(ImageInfo imageInfo);", "public static Try<BufferedImage> readBytes(byte[] data) {\n return Try.of(() -> Imaging.getBufferedImage(data))\n .logIfFailure(TAG, err -> String.format(\"failed to read image from data (%d bytes)\", data.length));\n }", "@SuppressWarnings( \"unchecked\" )\n\t@Test\n\tpublic void testMatToImgConversion() throws IOException {\n\t\tMat mat = imread( input, opencv_imgcodecs.IMREAD_GRAYSCALE );\n\t\tif ( mat.empty() )\n\t\t\tfail( \"Couldn't load image: \" + input );\n\t\tRandomAccessibleInterval< ByteType > convertedMat = ( RandomAccessibleInterval< ByteType > ) new MatToImgConverter().convert( mat, RandomAccessibleInterval.class );\n\t\tsaveImg( convertedMat, mat2img );\n\n\t\t//Read image with ImageJ\n\t\tDataset dataset = getScifio().datasetIO().open( input );\n\t\tRandomAccessibleInterval< ByteType > ijImage =\n\t\t\t\tRealTypeConverters.convert( ( RandomAccessibleInterval< ? extends RealType< ? > > ) dataset.getImgPlus().getImg(), new ByteType() );\n\n\t\t//Compare data\n\t\tcheckData( convertedMat, ijImage );\n\t}", "ArrayList<ArrayList<Integer>> convert2DArrayToList(int[][] image) {\n ArrayList<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>();\n for(int i=0;i < image.length;i++) {\n list.add(new ArrayList<Integer>());\n for(int j=0; j< image[0].length;j++) {\n list.get(i).add(image[i][j]);\n }\n }\n return list;\n }", "void imageData(int width, int height, int[] rgba);", "public int[] convertByteToInt(BufferedImage img) throws IOException {\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n ImageIO.write(img, \"png\", baos);\r\n byte[] byteArr = baos.toByteArray();\r\n int[] intArr = new int[byteArr.length];\r\n for(int i = 0; i < byteArr.length; i++) {\r\n intArr[i] = (int)byteArr[i] & 0xFF;\r\n }\r\n return intArr;\r\n }", "public byte[] convertImage(Image image) {\n BufferedImage bytesImage = SwingFXUtils.fromFXImage(image, null);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n byte[] bytesArray = null;\n try {\n ImageIO.write(bytesImage, \"png\", baos);\n //coloca los bytes de la imagen en un arreglo de bytes\n bytesArray = baos.toByteArray();\n baos.close();\n return bytesArray;\n } catch (IOException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "public static BufferedImage toBufferedImage(Image img)\n {\n if (img instanceof BufferedImage)\n {\n return (BufferedImage) img;\n }\n\n // Create a buffered image with transparency\n BufferedImage bimage = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_ARGB);\n\n // Draw the image on to the buffered image\n Graphics bGr = bimage.createGraphics();\n bGr.drawImage(img, 0, 0, null);\n bGr.dispose();\n\n // Return the buffered image\n return bimage;\n }", "public BufferedImage bufferedImage() {\n return buffered;\n }", "public static int[][] getMatrizBin(BufferedImage img){\n int largura = img.getWidth();\r\n int altura = img.getHeight();\r\n \r\n //Imagem de saida\r\n BufferedImage outImage = new BufferedImage(largura, altura, BufferedImage.TYPE_3BYTE_BGR);\r\n \r\n //matriz de saida\r\n int[][] output = new int[largura][altura];\r\n \r\n //calculando os valores do CIVE\r\n for (int x = 0; x < largura; x++) {\r\n for (int y = 0; y < altura; y++) {\r\n double red = Color.getColor(\"red\", img.getRGB(x, y)).getRed();\r\n double green = Color.getColor(\"green\", img.getRGB(x, y)).getGreen();\r\n \r\n if (green > red ) {\r\n output[x][y] = 1;\r\n } else {\r\n output[x][y] = 0;\r\n }\r\n \r\n }\r\n }\r\n\r\n return output;\r\n }", "private BufferedImage readImageDataFromClasspath(String fileName)\n\t\t\tthrows IOException {\n\t\tInputStream in = this.getClass().getClassLoader().getResourceAsStream(\n\t\t\t\tfileName);\n\n\t\treturn ImageIO.read(in);\n\t}", "public BufferedImage convertByteToImage(byte[] imageByteArr) throws IOException {\r\n return ImageIO.read(new ByteArrayInputStream(imageByteArr));\r\n }", "public void testNIO_float_array() throws Exception {\n float[] floatArray = new float[8];\n FloatBuffer fb = FloatBuffer.wrap(floatArray);\n floatBufferTest(fb);\n }", "double[][] asArray(){\n double[][] array_to_return = new double[this.rows][this.cols];\n for(int i=0; i<this.rows; i++){\n for(int j=0; j<this.cols; j++) array_to_return[i][j] = this.data[i*this.cols + j];\n }\n\n return array_to_return;\n }", "private byte[] getImageData(DatagramPacket receivedPacket) {\r\n final byte[] udpData = receivedPacket.getData();\r\n // The camera adds some kind of header to each packet, which we need to ignore\r\n int videoDataStart = getImageDataStart(receivedPacket, udpData);\r\n return Arrays.copyOfRange(udpData, videoDataStart, receivedPacket.getLength());\r\n }", "public NativeImageFormat(Object imgData, int nChannels, int nRows, int nCols) {\r\n if (imgData instanceof short[]) {\r\n cmmFormat |= bytesSh(2);\r\n }\r\n else if (imgData instanceof byte[]) {\r\n cmmFormat |= bytesSh(1);\r\n }\r\n else\r\n // awt.47=First argument should be byte or short array\r\n throw new IllegalArgumentException(Messages.getString(\"awt.47\")); //$NON-NLS-1$\r\n\r\n cmmFormat |= channelsSh(nChannels);\r\n\r\n rows = nRows;\r\n cols = nCols;\r\n\r\n imageData = imgData;\r\n\r\n dataOffset = 0;\r\n }", "public BufferedImage getImage()\r\n\t{\r\n\t\treturn mImageBuffer;\r\n\t}", "public static BufferedImage toBufferedImage(final Image img, final int type) {\n if (img == null || img instanceof BufferedImage) {\n return (BufferedImage) img;\n }\n\n // Create a buffered image with transparency\n final BufferedImage bimage = new BufferedImage(img.getWidth(null), img.getHeight(null), type);\n\n // Draw the image on to the buffered image\n final Graphics2D bGr = bimage.createGraphics();\n bGr.drawImage(img, 0, 0, null);\n bGr.dispose();\n\n // Return the buffered image\n return bimage;\n }", "public static Color[][] getImageC(Image img) {\n\n // Get the raw pixel data \n iObserver observer = new iObserver();\n int width1 = img.getWidth(observer);\n int height1 = img.getHeight(observer);\n int[] rawPixels = utils.getPixels(img,width1,height1);\n\n // Each pixel is represented by 32 bits. Separate the tH32 bits into\n // four 8-bit values (red, green, blue, offset).\n\n // Arrange the data by rows and columns\n //row-col has been reversed\n Color[][] imagePixels = new Color[height1][width1];\n int index=0;\n for(int row=0; row<imagePixels.length; row++) {\n for(int col=0; col<imagePixels[0].length; col++) {\n imagePixels[col][row] = new Color(rawPixels[index]);\n index++;\n } // for col\n } // for row\n return imagePixels;\n }", "public float[][] read( Envelope bbox )\n throws IOException {\n\n float[][] data = null;\n switch ( type ) {\n case BYTE:\n data = readByte( bbox );\n break;\n case SMALLINT:\n data = readSmallInt( bbox );\n break;\n case INT:\n data = readInt( bbox );\n break;\n case FLOAT:\n data = readFloat( bbox );\n break;\n case DOUBLE:\n data = readDouble( bbox );\n break;\n default:\n throw new IOException( \"not supported file format!\" );\n }\n\n return data;\n }", "private BufferedImage resizeBuffer(Image image)\r\n\t{\r\n\t\tif (image == null)\r\n\t\t\treturn mImageBuffer;\r\n\r\n\t\tint width = image.getWidth(null);\r\n\t\tint height = image.getHeight(null);\r\n\t\tif (width == mImageBuffer.getWidth() && height == mImageBuffer.getHeight())\r\n\t\t\treturn mImageBuffer;\r\n\t\telse\r\n\t\t\treturn new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\r\n\t}", "int[][][] greyscaleImage(int[][][] imageArray, int height, int width);", "public static native Bitmap nativeRecoNV21ST(byte []imgdata, int width, int height, int imgfmt, int lft, int rgt, int top, int btm, \n\t\t\t int direction, int bwantimg, int tryflip, byte []bresult, int maxsize, int []rets);", "public static byte[] uncompressInputLine(BufferedInputStream bufferedInputStream, int imageWidth) throws IOException{\r\n\t\tint pixelInLine = 0; // Zaehler für die Bytes der dekomprimierten Linie\r\n\t\tint controlByte = 0;\r\n\t\tbyte[] singlePixel = null;\r\n\t\tint repetitionCounter;\r\n\t\tint dataCounter;\r\n\t\tbyte[] byteArray = null;\r\n\t\tint pixelProLineUncompressed = imageWidth;\r\n\t\tbyte[] line = new byte[pixelProLineUncompressed*3];\r\n\t\twhile (pixelInLine < pixelProLineUncompressed) {\r\n\t\t\tcontrolByte = bufferedInputStream.read(); // erstes Steuerbyte in Zeile\r\n\t\t\tif (controlByte >>> 7 == 0) { // Datenzaehler\r\n\t\t\t\tdataCounter = (controlByte & 0x7f)+1;\r\n\t\t\t\tbyteArray = bufferedInputStream.readNBytes(dataCounter*3);\r\n\t\t\t\tfor (int i = 0; i < byteArray.length; i++) {\r\n\t\t\t\t\tline[pixelInLine*3 + i] = byteArray[i];\r\n\t\t\t\t}\r\n\t\t\t\tpixelInLine += dataCounter;\r\n\t\t\t}\r\n\t\t\tif (controlByte >>> 7 == 1) { // Wiederholungszaehler\r\n\t\t\t\trepetitionCounter = (controlByte & 0x7f)+1;\r\n\t\t\t\tsinglePixel = bufferedInputStream.readNBytes(3);\r\n\t\t\t\tfor (int i = 0; i < repetitionCounter; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\t\t\tline[pixelInLine*3 + i*3 + j] = singlePixel[j];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tpixelInLine += repetitionCounter;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn line;\r\n\t}", "public native float[][] __float2dArrayMethod( long __swiftObject, float[][] arg );", "public BufferedImage makeBufferedImage()\r\n {\r\n\treturn makeRGBImage().makeBufferedImage();\r\n }", "public double[][] toIntArray() {\r\n return matrix;\r\n }", "public static BufferedImage convertImageToBufferedImage(Image image)\n {\n // Convert Image to BufferedImage\n BufferedImage bImage = new BufferedImage(image.getWidth(null),\n image.getHeight(null),\n BufferedImage.TYPE_INT_ARGB);\n\n Graphics2D g2d = bImage.createGraphics();\n g2d.drawImage(image, 0, 0, null);\n g2d.dispose();\n\n return bImage;\n }", "public static RealGrayImage toRealGray(GrayImage img) {\n\t\tint X = img.X();\n\t\tint Y = img.Y();\n\t\tRealGrayImage newimg = new RealGrayImage(X, Y);\n\t\tfor (int y = 0; y < Y; y++) {\n\t\t\tfor (int x = 0; x < X; x++) {\n\t\t\t\tnewimg.set(x, y, (float) img.get(x, y));\n\t\t\t}\n\t\t}\n\t\treturn newimg;\n\t}", "public byte[] readImagePNG(BufferedImage bufferedimage) throws IOException{\n byte[] data = ImageUtil.toByteArray(bufferedimage);\r\n /* \r\n for (int i = 0; i < data.length; i++) {\r\n if(i!=0&&i%4==0)\r\n System.out.println();\r\n System.out.format(\"%02X \",data[i]);\r\n }\r\n */ \r\n \r\n \r\n \r\n \r\n byte[] stximage = getStximage();\r\n byte[] etximage = getEtximage();\r\n \r\n byte[] stxdata = new byte[stximage.length];\r\n byte[] etxdata = new byte[etximage.length];\r\n byte[] length = new byte[4];\r\n \r\n boolean stxsw=false;\r\n boolean etxsw=false;\r\n byte[] full_data=null;\r\n byte[] only_data=null;\r\n try{\r\n for (int i = 0; i < data.length; i++) {\r\n System.arraycopy(data, i, stxdata,0, stxdata.length);\r\n stxsw = ByteUtil.equals(stximage, stxdata);\r\n int subindex=i+stxdata.length;\r\n if(stxsw){\r\n System.arraycopy(data, subindex, length,0, length.length);\r\n int length_fulldata = ConversionUtil.toInt(length);\r\n // System.out.format(\"%02X %d subIndex[%d]\",data[subindex],length_fulldata,subindex);\r\n \r\n \r\n subindex+=i+length.length;\r\n int etx_index= subindex+ length_fulldata;\r\n // System.out.println(\"subindex : \"+subindex+\" etx_index : \"+etx_index);\r\n System.arraycopy(data, etx_index, etxdata,0, etxdata.length);\r\n \r\n// for (int j = 0; j < etxdata.length; j++) {\r\n// System.out.format(\"%02X \",etxdata[j]);\r\n// }\r\n \r\n etxsw = ByteUtil.equals(etximage, etxdata);\r\n if(etxsw){\r\n full_data = new byte[etx_index-subindex];\r\n System.arraycopy(data, subindex, full_data,0, full_data.length); //fulldata\r\n break;\r\n }else{\r\n continue;\r\n }\r\n }\r\n \r\n \r\n }\r\n \r\n /////only data search\r\n System.arraycopy(full_data, 0, length,0, length.length);\r\n int length_onlydata = ConversionUtil.toInt(length); \r\n only_data = new byte[length_onlydata];\r\n System.arraycopy(full_data, length.length, only_data,0, only_data.length);\r\n \r\n \r\n \r\n }catch (Exception e) {\r\n return null;\r\n }\r\n \r\n return only_data;\r\n \r\n }", "public static GVector imageData(final Image image) throws NotImageException\r\n\t{\r\n\t\tensureImage(image);\r\n\t\treturn getData(image, 0, 0, image.getWidth(null), image.getHeight(null));\r\n\t}", "private DataInputStream readBuffer( DataInputStream in, int count ) throws IOException{\n byte[] buffer = new byte[ count ];\n int read = 0;\n while( read < count ){\n int input = in.read( buffer, read, count-read );\n if( input < 0 )\n throw new EOFException();\n read += input;\n }\n \n ByteArrayInputStream bin = new ByteArrayInputStream( buffer );\n DataInputStream din = new DataInputStream( bin );\n return din;\n }", "BufferedImage toBufferedImageUsingToolkit(byte[] bytes) throws IOException {\n\t\tif (TOOLKIT == null) {\n\t\t\treturn null;\n\t\t}\n\t\tImage image = TOOLKIT.createImage(bytes);\n\t\tMediaTracker mediaTracker = new MediaTracker(new Component() {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t});\n\t\tmediaTracker.addImage(image, 0);\n\t\ttry {\n\t\t\tmediaTracker.waitForID(0, 0);\n\t\t} catch (InterruptedException e) {\n\t\t\treturn null;\n\t\t}\n\t\tif (mediaTracker.isErrorID(0)) { // error -> use ImageIO\n\t\t\tthrow new IOException(\"Failed to load toolkit image\");\n\t\t} else {\n\t\t\tBufferedImage bufferedImage =\n\t\t\t\t\tnew BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_RGB);\n Graphics2D g2d = bufferedImage.createGraphics();\n g2d.drawImage(image, 0, 0, null);\n g2d.dispose();\n image.flush();\n return bufferedImage;\n\t\t}\n\t}", "@Override\n public void feedRawData(Image data) {\n mARGSession.feedRawData(data);\n }", "public static final int[] convert2grey_fast(DataBuffer bim) {\n if (bim.getDataType() == DataBuffer.TYPE_BYTE) {\n DataBufferByte dbi = (DataBufferByte) bim;\n byte[] data = dbi.getData();\n int[] copy = new int[data.length / 3];\n int z=0;\n final int l=data.length;\n for (int i = 1; i < l; i += 3) {\n copy[z] = data[i] & 0x000000FF; //just take green component\n z++; //cheaper than i/3\n\n }\n return copy;\n } else {\n DataBufferInt dbi = (DataBufferInt) bim;\n int[] data = dbi.getData();\n int[] copy = new int[data.length / 3];\n int z=0;\n final int l=data.length;\n for (int i = 1; i < l; i += 3) {\n copy[z] = data[i]; //just take green component\n z++; //cheaper than i/3\n }\n return copy;\n }\n }", "@SuppressWarnings( \"unchecked\" )\n\t@Test\n\tpublic void testImgToMatConversion() throws IOException {\n\t\tDataset dataset = getScifio().datasetIO().open( input );\n\t\tMat convertedImg = new ImgToMatConverter().convert( ( RandomAccessibleInterval< UnsignedByteType > ) dataset.getImgPlus().getImg(), Mat.class );\n\t\topencv_imgcodecs.imwrite( img2mat, convertedImg );\n\n\t\t//Read image with OpenCV\n\t\tMat mat = imread( input, opencv_imgcodecs.IMREAD_GRAYSCALE );\n\t\tif ( mat.empty() )\n\t\t\tfail( \"Couldn't load image: \" + input );\n\n\t\t//Compare data\n\t\tcheckData( convertedImg, mat );\n\t}", "protected native MagickImage nextImage() throws MagickException;", "int getImgDataCount();", "@Override\n protected void putImageBuffer(BufferedImage input) \n {\n // Load data in. \n for (int y = 0; y < height; y++) \n {\n for (int x = 0; x < width; x++) \n {\n\t\tdouble h = getHeight(input, x, y);\n\t\tdouble du = 0;\n\t\tdouble dv = 0;\n\t\t\n\t\tif(x > 0)\n\t\t{\t\n\t\t du += h - getHeight(input, x-1, y);\n\t\t}\n\t\tif(x < width - 1)\n\t\t{\n\t\t du += getHeight(input, x+1, y) - h;\n\t\t}\n\t\tif(y > 0)\n\t\t{\n\t\t dv += h - getHeight(input, x , y-1);\n\t\t}\n\t\tif(y < height - 1)\n\t\t{\n\t\t dv += getHeight(input, x, y+1) - h;\n\t\t}\n\t\t\n\t\tdouble u = -du;\n\t\tdouble v = -dv;\n\t\tdouble w = 0.25;\n \n\t\tdouble n = Math.sqrt(u*u + v*v + w*w);\n\n byte a = (byte)(h * 255.0);\n byte r = (byte)((u / n + 1.0) / 2.0 * 255.0);\n byte g = (byte)((v / n + 1.0) / 2.0 * 255.0);\n byte b = (byte)((w / n + 1.0) / 2.0 * 255.0);\n \n int index = (x + y * allocatedWidth) * 4;\n pixelData.put(index++, r);\n pixelData.put(index++, g);\n pixelData.put(index++, b);\n pixelData.put(index , a);\n }\n }\n }" ]
[ "0.54201543", "0.54116315", "0.5344609", "0.52616006", "0.524099", "0.5238514", "0.5200962", "0.5164694", "0.5064115", "0.50488687", "0.5012491", "0.5005066", "0.49804685", "0.49538422", "0.49431393", "0.4937385", "0.4885662", "0.48818722", "0.48702604", "0.48524326", "0.4850616", "0.48408994", "0.4820705", "0.47901538", "0.4774485", "0.4758874", "0.4739624", "0.47363973", "0.47314793", "0.47185525", "0.46887603", "0.4669514", "0.46262", "0.46180895", "0.46104366", "0.45727718", "0.45680553", "0.45541546", "0.45528334", "0.45493093", "0.4528236", "0.45162034", "0.44868815", "0.44792262", "0.44752806", "0.44721663", "0.44432148", "0.44311956", "0.44301918", "0.44265693", "0.44214088", "0.44049627", "0.4382932", "0.4382407", "0.43770552", "0.43763375", "0.43755588", "0.43705562", "0.4366013", "0.43585646", "0.43581325", "0.43489355", "0.4340091", "0.43324432", "0.43290102", "0.43207562", "0.43185037", "0.43178898", "0.4315182", "0.43130806", "0.43106166", "0.43047386", "0.4303291", "0.43006966", "0.4294817", "0.42895025", "0.42789426", "0.42560112", "0.42455792", "0.42304158", "0.422649", "0.42219952", "0.42183825", "0.421187", "0.42080292", "0.42079505", "0.42056158", "0.42003423", "0.41896", "0.41849697", "0.41808444", "0.4177097", "0.41750103", "0.41723406", "0.41723168", "0.41723135", "0.41656724", "0.41412544", "0.41368237", "0.4127443" ]
0.6904088
0
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { }
{ "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
private void error(String string) { }
{ "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
private Object getState() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
No implemented by all subclasses, but we use it when we know it's there (for tests)
public abstract List<ColumnSpecification> metadata();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void checkSubclass() {\n }", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "Object getBase();", "@Override\n protected void prot() {\n }", "default boolean isSpecial() { return false; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "protected void checkSubclass() {\n }", "Object getClass_();", "Object getClass_();", "@Override\n public boolean isInterface() { return false; }", "public interface AbstractC1953c50 {\n}", "private static interface WithoutObjectOverrides {\n\n public boolean equals();\n\n public long hashCode(Object obj);\n\n public void toString(long foo);\n }", "public void method_6349() {\r\n super.method_6349();\r\n }", "public abstract Object mo26777y();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "abstract int pregnancy();", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic boolean isImplemented() {\n\t\treturn false;\n\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "default boolean isClass() {\n return false;\n }", "@Override\n void init() {\n }", "@Override\n public void get() {}", "@Override\n public void init() {}", "private static interface Base {\n\n public void foo();\n }", "abstract public Unit baseUnit();", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private Quantify()\n {\n throw new UnsupportedOperationException(\"Instantiation of utility classes is not supported.\");\n }", "@Override\n\tpublic Base getBase() {\n\t\treturn null;\n\t}", "@Override\n public void init() {\n }", "public abstract void mo70713b();", "protected void method_3848() {\r\n super.method_3848();\r\n }", "public void method_6191() {\r\n super.method_6191();\r\n }", "public abstract void mo56925d();", "@Override\n protected void init() {\n }", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "public abstract void MussBeDefined();", "public boolean isAbstract()\n/* */ {\n/* 146 */ return false;\n/* */ }", "@Override\r\n\tpublic void init() {}", "public abstract void mo30696a();", "@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}", "@Override\n public boolean isGeneric() { \n return false;\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 }", "boolean hasBase();", "public ULocale getFallback() {\n/* 314 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic void some() {\n\t\t\n\t}", "private DiffProperty() {\n\t\t// No implementation\n\t}", "protected void init() {\n // to override and use this method\n }", "private NativeSupport() {\n\t}", "public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }", "@Override\n public int retroceder() {\n return 0;\n }", "private static interface Derived extends Base {\n\n public void foo();\n }", "@Override\n public void init() {\n\n }", "public abstract void mo27386d();", "public abstract void mo6549b();", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public abstract Object mo1771a();" ]
[ "0.6498561", "0.639266", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6333278", "0.6325411", "0.6325411", "0.6325411", "0.6325411", "0.6325411", "0.6325411", "0.6325411", "0.6325411", "0.6325411", "0.6325411", "0.6325411", "0.6325411", "0.6325411", "0.6325411", "0.62721753", "0.62721753", "0.62721753", "0.61892813", "0.61892813", "0.61892813", "0.6038207", "0.60190874", "0.6010813", "0.59316117", "0.5926983", "0.58997643", "0.58997643", "0.58997643", "0.58033", "0.58033", "0.57014227", "0.56904", "0.5690315", "0.5687125", "0.56858", "0.56837034", "0.56776035", "0.5653121", "0.56431186", "0.56293", "0.56015843", "0.557684", "0.55717707", "0.5565587", "0.5563221", "0.5557905", "0.55567694", "0.5546512", "0.5543888", "0.554276", "0.5541335", "0.55402267", "0.55357665", "0.5535327", "0.55299485", "0.5527509", "0.5519457", "0.5511646", "0.55057365", "0.55054426", "0.550158", "0.54978216", "0.5497545", "0.5497545", "0.5497545", "0.5497545", "0.5497545", "0.5497545", "0.5492242", "0.54810125", "0.5462872", "0.54547596", "0.5447436", "0.54409516", "0.54344195", "0.5432863", "0.5425888", "0.5418689", "0.5406284", "0.5404592", "0.5404541", "0.539673" ]
0.0
-1
Note that containsKey won't work because we may have null values
public boolean has(String column) { return get(column) != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean containsKey(Key key) ;", "public boolean contains(Key key);", "boolean containsKey(Object key) throws NullPointerException;", "public abstract boolean containsKey(K key);", "@Override\n\tpublic boolean contains(K key) {\n\t\treturn false;\n\t}", "boolean contains(KeyType key);", "@Override\n\t\t\tpublic boolean containsKey(Object key) {\n\t\t\t\treturn false;\n\t\t\t}", "public boolean contains(K key);", "@Override\n\tpublic boolean containsKey(Object arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn false;\n\t}", "@Override\n\t\t\tpublic boolean contains(String key) {\n\t\t\t\treturn false;\n\t\t\t}", "@Request(id = 6, retryable = true, response = ResponseMessageConst.BOOLEAN)\n Object containsKey(String name, Data key);", "@Override\n public boolean containsKey(K key) {\n int index = Math.floorMod(key.hashCode(), entryArr.length);\n if(entryArr[index] == null) {\n return false;\n }\n for(Entry<K, V> entry: entryArr[index]) {\n if(entry.keyEquals(new Entry<K, V>(key, null))) {\n return true;\n }\n }\n return false;\n }", "public boolean contains(String key);", "boolean containsKey(K key);", "boolean containsKey(K key);", "public boolean containsKey(String key);", "boolean contains(KeyType key, ValueType value);", "public boolean contains(String key)\r\n { return get(key) != null; }", "boolean containsKey(long key);", "@Override\n public boolean containsKey(Object key) {\n LinkedList<Entry> tempBucket = chooseBucket(key);\n \n for(int i=0;i<tempBucket.size();i++) {\n \t\tEntry tempEntry = tempBucket.get(i);\n \t\t\n \t\tif(tempEntry.getKey() == key) {\n \t\t\treturn true;\n \t\t}\n \t}\n \n return false;\n }", "boolean contains(String key);", "boolean contains(String key);", "@Override\r\n\tpublic boolean containsKey(Object key) {\r\n\t\tif (key == null) throw new NullPointerException();\r\n\t\treturn get(key) != null;\r\n\t}", "@Override\n public boolean containsKey(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return false;\n }\n for (Entry<K,V> entry : table[index]) {\n if (entry.getKey().equals(key)) {\n return true;\n }\n }\n return false;\n }", "boolean containsKey(CoreLabel key);", "public abstract boolean lookup(Key key);", "public boolean contains(K key){\r\n int loc = find(key);\r\n if((hashTable[loc]!= null) && hashTable[loc].equals(key))\r\n return true;\r\n else\r\n return false;\r\n }", "boolean hasKey(String collection, String hkey);", "private boolean contains(TreeNode t, T key) {\n\t\tif (t == null) {\n\t\t\treturn false;\n\t\t} else if (t.myItem.compareTo(key) == 0) {\n\t\t\treturn true;\n\t\t} else if (t.myItem.compareTo(key) > 0) {\n\t\t\treturn contains(t.myLeft, key);\n\t\t} else {\n\t\t\treturn contains(t.myRight, key);\n\t\t}\n\t}", "public native Boolean has(K key);", "private boolean containsKeyHelper(Node n, K key) {\n // base case\n if (n == null) {\n return false;\n }\n\n int compareResult = key.compareTo(n.key);\n if (compareResult == 0) {\n return true;\n } else if (compareResult < 0) {\n return containsKeyHelper(n.leftChild, key);\n } else {\n return containsKeyHelper(n.rightChild, key);\n }\n }", "@Override\n public boolean containsKey(Object key) {\n return entries.containsKey(key);\n }", "public boolean existsKey(String inKey);", "@Override\n\tpublic boolean contains(String key) {\n\t\tint hashVal = hashFunc(key);\n\t\twhile (hashArray[hashVal] != null) {\n\t\t\tif (hashArray[hashVal].value.equals(key))\n\t\t\t\treturn true;\n\t\t\telse {\n\t\t\t\thashVal++;\n\t\t\t\thashVal = hashVal % size;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean containsKey(Object key) {\n String fieldName = key.toString();\n ScriptDocValues<?> scriptValues = localCacheFieldData.get(fieldName);\n if (scriptValues == null) {\n MappedFieldType fieldType = mapperService.fieldType(fieldName);\n if (fieldType == null) {\n return false;\n }\n }\n return true;\n }", "@Override\n\tpublic boolean containsKey(Key k) {\n\t\treturn bst.has(k);\n\t}", "@Deprecated\n/* */ default boolean contains(Object key) {\n/* 86 */ if (key == null)\n/* 87 */ return false; \n/* 88 */ return contains(((Long)key).longValue());\n/* */ }", "boolean containsKey(String keyLabel);", "boolean containsInfo(\n int key);", "public boolean contains( T key )\n {\n if (key == null) return false;\n for ( int i=0 ; i < size() ; ++i )\n if ( get(i).equals( key ) ) \n return true;\n \n return false;\n }", "public boolean containsKey(Object key) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean contains(K key) {\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(!isEmpty()){\n\t\t\twhile(currentNode.key != key){\n\t\t\t\tif(currentNode.getNextNode() == null){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean containsKey(Object key)\r\n/* 386: */ {\r\n/* 387:556 */ return this.headers.containsKey(key);\r\n/* 388: */ }", "public boolean contains(K key)\n\t{\n\t\tcheckForNulls(key);\n\t\tint n = Math.abs(key.hashCode() % entries.length);\n\t\t\n\t\treturn (entries[n] == null) ? false : entries[n].contains(new Entry(key, null));\n\t}", "@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 }", "@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn map.containsKey(key);\n\t}", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "public boolean containsKey(K key)\r\n\t{\r\n\t\treturn data.contains(new Entry(key,null));\r\n\t}", "public boolean contains(Key key) {\n return auxContains(root, key);\n }", "boolean containsKey(DocumentKey key) {\n DocumentReference reference = new DocumentReference(key, 0);\n\n Iterator<DocumentReference> iterator = batchesByDocumentKey.iteratorFrom(reference);\n if (!iterator.hasNext()) {\n return false;\n }\n\n DocumentKey firstKey = iterator.next().getKey();\n return firstKey.equals(key);\n }", "@Override\n public boolean containsKey(K key) {\n return containsKeyHelper(root, key);\n }", "public boolean contains(long key){\n for (int i = 0; i < numKeys; i++){\n if (keys[i].key == key){\n return true;\n }\n }\n return false;\n }", "boolean containsKey(int key) throws ContentStoreException;", "@Override\n public boolean contains(String key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to contains() is null\");\n }\n return get(root, key, 0) != null;\n }", "boolean containsField(\n java.lang.String key);", "public boolean contains(Key key) {\n return get(key) != null;\n }", "@Override\r\n\tpublic boolean exists(T key) {\r\n\t\treturn existsRec(raiz, key);\r\n\t}", "boolean has(String key);", "boolean hasCompoundKey();", "public boolean contains(Key key) {\n\t\treturn get(key) != null;\n\t}", "public boolean containsKey(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n Node targetNode = data[hash];\r\n while (targetNode != null) {\r\n if (targetNode.key == key || targetNode.key.equals(key)) {\r\n return true;\r\n }\r\n targetNode = targetNode.next;\r\n }\r\n return false;\r\n }", "public boolean contains(IdKey idKey) {\n return this.idKey.equals(idKey);\n }", "@Override\n public boolean containsKey(K key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to containsKey() is null\");\n }\n return get(key) != null;\n }", "public boolean containsKey(String key) {\n if (!index.containsKey(key)) return false;\n else if (index.get(key).isEmpty()) return false;\n else return true;\n }", "public boolean matchSameColumns(Key key);", "public boolean contains(String key) {\r\n\t\treturn getValue(key) != null;\r\n\t}", "public boolean contains(int key) {\n int hash1 = key % buckets;\n int hash2 = key / buckets;\n if(arr[hash1] == null)\n return false;\n return arr[hash1][hash2];\n }", "public boolean contains(String key) {\n\t \tNode node = get(key);\n\t return node!=null && node.value!=null;\n\t }", "public boolean containsKey(K key) {\n\t\t\n\t\t\n\t\treturn keySet.contains(key);\n }", "@Override\r\n public boolean containsKey(KeyType key) {\r\n\r\n int index = Math.abs(key.hashCode()) % this.capacity;\r\n\r\n // if the index is within the array of linked lists, the array of linked lists exists, and there\r\n // is a Linked list object at the specified index\r\n if (index < this.capacity && index >= 0 && array[index] != null && array != null) {\r\n\r\n \r\n for (int i = 0; i < array[index].size(); i++) {\r\n\r\n\r\n if (array[index].get(i).getTitle().equals(key)) {\r\n \r\n return true;\r\n \r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n return false;\r\n }", "public boolean definesKey( final String key ) {\n return values.containsKey( key );\n }", "public boolean containsKey(K key) {\r\n\t\tif (get(key) == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean contains(int key) {\n int index1 = hashfunc1(key);\n int index2 = hashfunc2(key);\n \n if(hset[index1] != null){\n return hset[index1][index2];\n }\n return false; \n }", "boolean exists(Integer key);", "public boolean containsKey(String s){\r\n return this.get(s) != 0;\r\n }", "public boolean contains (String key)\n {\n use (key);\n return map.containsKey (key);\n }", "public boolean containsKey(Comparable key) { return this.store.containsKey(key); }", "public boolean containsKey(DNA key){\n Node actual_node = this.getReference(key);\n\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> buscando cadena: \" + key.toString() + \", hashCode: \" + key.hashCode());\n\n int reference_page = actual_node.getReference(), hash = key.hashCode();\n ArrayList<Integer> content = this.fm.read(reference_page); this.in_counter++;\n\n boolean res = false;\n\n while(true) {\n int cant = content.get(0);\n\n for(int i=1; i<=cant; i++) {\n if(content.get(i) == hash) {\n res = true;\n }\n }\n\n if(res)\n break;\n\n if(content.size() != B)\n break;\n\n reference_page = content.get(B-1);\n content = this.fm.read(reference_page); this.in_counter++;\n\n }\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> cadena encontrada: \" + res);\n\n return res;\n }", "public boolean containsKey(K key) {\n int keyBucket = hash(key);\n \n HashMapEntry<K, V> temp = table[keyBucket];\n while (temp != null) {\n if ((temp.key == null && key == null) \n || (temp.key != null && temp.key.equals(key))) {\n return true;\n }\n temp = temp.next;\n }\n \n return false;\n }", "public boolean contains (String key) {\r\n int arrIndex = hash(key);\r\n\r\n if (hashTableArray[arrIndex] == null) {\r\n hashTableArray[arrIndex] = new LinkedList<>();\r\n }\r\n\r\n for (int i = 0; i < hashTableArray[arrIndex].size(); i++) {\r\n if (hashTableArray[arrIndex].get(i).key.equals(key)){\r\n return true; // returns true when a key already exists\r\n }\r\n }\r\n return false; // returns false when a key does not yet exist\r\n }", "boolean hasKey(String key);", "public boolean contains(String key){\r\n\t\treturn get(key) != null;\r\n\t}", "public boolean contains( AnyType x )\n {\n int currentPos = findPos( x );\n if (array[currentPos] != null && array[currentPos].key.equals(x))\n \treturn true;\t\t//TODO : Test this method\n else\n \treturn false;\n \n }", "@Override\n public boolean contains(Comparable k) {\n\n // Loop over items and check\n for (int i = 0; i < this.size; i++) {\n if (ls[i].key.equals(k)) {\n return true;\n }\n }\n\n // Return false if not found\n return false;\n }", "public boolean containsKey(int key) {\n return getElement(key) != null;\n }", "public boolean containsKey(K key) {\n synchronized(theLock) {\n return valueMap.containsKey(key) && ! isExpired(valueMap.get(key)); \n }\n }", "@Test\n public void testContainsKey() {\n System.out.println(\"containsKey\");\n \n // GIVEN\n SimpleStyleableMap instance = new SimpleStyleableMap();\n \n // WHEN getOrDefault and no value has been put\n Object key = \"dummyKey\";\n boolean result = instance.containsKey(key);\n \n // THEN must return false\n assertEquals(false, result);\n \n // WHEN getOrDefault and a value has been put\n Object putValue=\"putValue\";\n instance.put(key, putValue );\n result = instance.containsKey(key);\n \n // THEN must returnt rue\n assertEquals(true, result);\n \n // WHEN key is removed\n instance.remove(key);\n result = instance.containsKey(key);\n // THEN must return default value\n assertEquals(false, result);\n }", "@Override\r\n\tpublic boolean containsValue(Object value) {\r\n\t\tif (value == null) throw new NullPointerException();\r\n\t\tfor (K key : keySet()) {\r\n\t\t\tif (get(key).equals(value)) return true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean contains(int key) { return contains(root, key); }", "public boolean containsId(String key, Long userId) {\n if(index.containsKey(key)) {\n return index.get(key).contains(userId);\n }\n return false;\n }", "public boolean containsKey(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn false;\r\n\t}", "public static Boolean isContains(String key){\r\n return scenarioContext.containsKey(key.toString());\r\n }", "public boolean contains(int key) {\n int index = getIndex(key);\n int index2 = getIndex2(key);\n if(buckets[index] != null){\n return buckets[index][index2] == true; \n }\n return false;\n }", "boolean containsKeyLocalOnHeap(Object key);", "public boolean contains(int key) {\n int hash = key % 7919;\n if (table[hash] == null)\n {\n return false;\n }\n else\n {\n ArrayList<Integer> al = table[hash].al;\n int size = al.size();\n for (int i = 0; i < size; ++i)\n {\n if (al.get(i) == key)\n {\n return true;\n }\n }\n return false;\n }\n }", "@Override\n public boolean contains(String key) {\n if (key == null || key.length() == 0 || root == null)\n return false;\n Node p = root;\n for (int i = 0; i < key.length(); i++) {\n char current = key.charAt(i);\n Node next = p.next.get(current);\n if (next == null) {\n return false;\n }\n p = next;\n }\n return p.isKey;\n }" ]
[ "0.75893277", "0.74923384", "0.7279651", "0.69572544", "0.69343567", "0.69248044", "0.6891954", "0.6851962", "0.683906", "0.67917585", "0.671907", "0.6715462", "0.67019683", "0.6682155", "0.6631958", "0.6631958", "0.66295743", "0.6629294", "0.662472", "0.6597527", "0.6585034", "0.6564024", "0.6564024", "0.6557268", "0.6556844", "0.6546732", "0.6544514", "0.6528944", "0.6521497", "0.6508003", "0.650578", "0.6491309", "0.6491151", "0.64619726", "0.64609027", "0.6447626", "0.6439025", "0.64380723", "0.6435326", "0.6434744", "0.64107776", "0.64099306", "0.6403528", "0.6400504", "0.6390079", "0.6366663", "0.6359908", "0.63412434", "0.63412434", "0.63412434", "0.63412434", "0.63412434", "0.6336559", "0.6329106", "0.63182783", "0.6307185", "0.62959915", "0.6288401", "0.62851334", "0.6263334", "0.62609166", "0.6259531", "0.6235685", "0.62251145", "0.62142503", "0.6207333", "0.61654764", "0.616295", "0.6158588", "0.61498046", "0.6143987", "0.6137445", "0.613621", "0.61277753", "0.6127363", "0.6124202", "0.6122311", "0.6120156", "0.61145204", "0.61051744", "0.6104266", "0.6100523", "0.60971886", "0.6096435", "0.6087335", "0.6074475", "0.6074386", "0.6070908", "0.6066087", "0.6065467", "0.60538906", "0.60346985", "0.60303044", "0.6021877", "0.6019393", "0.6018573", "0.6016246", "0.6012814", "0.59804374", "0.596827", "0.5964419" ]
0.0
-1
Note that containsKey won't work because we may have null values
public boolean has(int i) { return colValues[i] != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean containsKey(Key key) ;", "public boolean contains(Key key);", "boolean containsKey(Object key) throws NullPointerException;", "public abstract boolean containsKey(K key);", "@Override\n\tpublic boolean contains(K key) {\n\t\treturn false;\n\t}", "boolean contains(KeyType key);", "@Override\n\t\t\tpublic boolean containsKey(Object key) {\n\t\t\t\treturn false;\n\t\t\t}", "public boolean contains(K key);", "@Override\n\tpublic boolean containsKey(Object arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn false;\n\t}", "@Override\n\t\t\tpublic boolean contains(String key) {\n\t\t\t\treturn false;\n\t\t\t}", "@Request(id = 6, retryable = true, response = ResponseMessageConst.BOOLEAN)\n Object containsKey(String name, Data key);", "@Override\n public boolean containsKey(K key) {\n int index = Math.floorMod(key.hashCode(), entryArr.length);\n if(entryArr[index] == null) {\n return false;\n }\n for(Entry<K, V> entry: entryArr[index]) {\n if(entry.keyEquals(new Entry<K, V>(key, null))) {\n return true;\n }\n }\n return false;\n }", "public boolean contains(String key);", "boolean containsKey(K key);", "boolean containsKey(K key);", "public boolean containsKey(String key);", "boolean contains(KeyType key, ValueType value);", "public boolean contains(String key)\r\n { return get(key) != null; }", "boolean containsKey(long key);", "@Override\n public boolean containsKey(Object key) {\n LinkedList<Entry> tempBucket = chooseBucket(key);\n \n for(int i=0;i<tempBucket.size();i++) {\n \t\tEntry tempEntry = tempBucket.get(i);\n \t\t\n \t\tif(tempEntry.getKey() == key) {\n \t\t\treturn true;\n \t\t}\n \t}\n \n return false;\n }", "boolean contains(String key);", "boolean contains(String key);", "@Override\r\n\tpublic boolean containsKey(Object key) {\r\n\t\tif (key == null) throw new NullPointerException();\r\n\t\treturn get(key) != null;\r\n\t}", "@Override\n public boolean containsKey(Object key) {\n int index = key.hashCode() % table.length;\n if (index < 0) {\n index += table.length;\n }\n if (table[index] == null) {\n return false;\n }\n for (Entry<K,V> entry : table[index]) {\n if (entry.getKey().equals(key)) {\n return true;\n }\n }\n return false;\n }", "boolean containsKey(CoreLabel key);", "public abstract boolean lookup(Key key);", "public boolean contains(K key){\r\n int loc = find(key);\r\n if((hashTable[loc]!= null) && hashTable[loc].equals(key))\r\n return true;\r\n else\r\n return false;\r\n }", "boolean hasKey(String collection, String hkey);", "private boolean contains(TreeNode t, T key) {\n\t\tif (t == null) {\n\t\t\treturn false;\n\t\t} else if (t.myItem.compareTo(key) == 0) {\n\t\t\treturn true;\n\t\t} else if (t.myItem.compareTo(key) > 0) {\n\t\t\treturn contains(t.myLeft, key);\n\t\t} else {\n\t\t\treturn contains(t.myRight, key);\n\t\t}\n\t}", "public native Boolean has(K key);", "private boolean containsKeyHelper(Node n, K key) {\n // base case\n if (n == null) {\n return false;\n }\n\n int compareResult = key.compareTo(n.key);\n if (compareResult == 0) {\n return true;\n } else if (compareResult < 0) {\n return containsKeyHelper(n.leftChild, key);\n } else {\n return containsKeyHelper(n.rightChild, key);\n }\n }", "@Override\n public boolean containsKey(Object key) {\n return entries.containsKey(key);\n }", "public boolean existsKey(String inKey);", "@Override\n\tpublic boolean contains(String key) {\n\t\tint hashVal = hashFunc(key);\n\t\twhile (hashArray[hashVal] != null) {\n\t\t\tif (hashArray[hashVal].value.equals(key))\n\t\t\t\treturn true;\n\t\t\telse {\n\t\t\t\thashVal++;\n\t\t\t\thashVal = hashVal % size;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean containsKey(Object key) {\n String fieldName = key.toString();\n ScriptDocValues<?> scriptValues = localCacheFieldData.get(fieldName);\n if (scriptValues == null) {\n MappedFieldType fieldType = mapperService.fieldType(fieldName);\n if (fieldType == null) {\n return false;\n }\n }\n return true;\n }", "@Override\n\tpublic boolean containsKey(Key k) {\n\t\treturn bst.has(k);\n\t}", "@Deprecated\n/* */ default boolean contains(Object key) {\n/* 86 */ if (key == null)\n/* 87 */ return false; \n/* 88 */ return contains(((Long)key).longValue());\n/* */ }", "boolean containsKey(String keyLabel);", "boolean containsInfo(\n int key);", "public boolean contains( T key )\n {\n if (key == null) return false;\n for ( int i=0 ; i < size() ; ++i )\n if ( get(i).equals( key ) ) \n return true;\n \n return false;\n }", "public boolean containsKey(Object key) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean contains(K key) {\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(!isEmpty()){\n\t\t\twhile(currentNode.key != key){\n\t\t\t\tif(currentNode.getNextNode() == null){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean containsKey(Object key)\r\n/* 386: */ {\r\n/* 387:556 */ return this.headers.containsKey(key);\r\n/* 388: */ }", "public boolean contains(K key)\n\t{\n\t\tcheckForNulls(key);\n\t\tint n = Math.abs(key.hashCode() % entries.length);\n\t\t\n\t\treturn (entries[n] == null) ? false : entries[n].contains(new Entry(key, null));\n\t}", "@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 }", "@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn map.containsKey(key);\n\t}", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "public boolean containsKey(K key)\r\n\t{\r\n\t\treturn data.contains(new Entry(key,null));\r\n\t}", "public boolean contains(Key key) {\n return auxContains(root, key);\n }", "boolean containsKey(DocumentKey key) {\n DocumentReference reference = new DocumentReference(key, 0);\n\n Iterator<DocumentReference> iterator = batchesByDocumentKey.iteratorFrom(reference);\n if (!iterator.hasNext()) {\n return false;\n }\n\n DocumentKey firstKey = iterator.next().getKey();\n return firstKey.equals(key);\n }", "@Override\n public boolean containsKey(K key) {\n return containsKeyHelper(root, key);\n }", "public boolean contains(long key){\n for (int i = 0; i < numKeys; i++){\n if (keys[i].key == key){\n return true;\n }\n }\n return false;\n }", "boolean containsKey(int key) throws ContentStoreException;", "@Override\n public boolean contains(String key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to contains() is null\");\n }\n return get(root, key, 0) != null;\n }", "boolean containsField(\n java.lang.String key);", "public boolean contains(Key key) {\n return get(key) != null;\n }", "@Override\r\n\tpublic boolean exists(T key) {\r\n\t\treturn existsRec(raiz, key);\r\n\t}", "boolean has(String key);", "boolean hasCompoundKey();", "public boolean contains(Key key) {\n\t\treturn get(key) != null;\n\t}", "public boolean containsKey(K key) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n Node targetNode = data[hash];\r\n while (targetNode != null) {\r\n if (targetNode.key == key || targetNode.key.equals(key)) {\r\n return true;\r\n }\r\n targetNode = targetNode.next;\r\n }\r\n return false;\r\n }", "public boolean contains(IdKey idKey) {\n return this.idKey.equals(idKey);\n }", "@Override\n public boolean containsKey(K key) {\n if (key == null) {\n throw new IllegalArgumentException(\"argument to containsKey() is null\");\n }\n return get(key) != null;\n }", "public boolean containsKey(String key) {\n if (!index.containsKey(key)) return false;\n else if (index.get(key).isEmpty()) return false;\n else return true;\n }", "public boolean matchSameColumns(Key key);", "public boolean contains(String key) {\r\n\t\treturn getValue(key) != null;\r\n\t}", "public boolean contains(int key) {\n int hash1 = key % buckets;\n int hash2 = key / buckets;\n if(arr[hash1] == null)\n return false;\n return arr[hash1][hash2];\n }", "public boolean contains(String key) {\n\t \tNode node = get(key);\n\t return node!=null && node.value!=null;\n\t }", "public boolean containsKey(K key) {\n\t\t\n\t\t\n\t\treturn keySet.contains(key);\n }", "@Override\r\n public boolean containsKey(KeyType key) {\r\n\r\n int index = Math.abs(key.hashCode()) % this.capacity;\r\n\r\n // if the index is within the array of linked lists, the array of linked lists exists, and there\r\n // is a Linked list object at the specified index\r\n if (index < this.capacity && index >= 0 && array[index] != null && array != null) {\r\n\r\n \r\n for (int i = 0; i < array[index].size(); i++) {\r\n\r\n\r\n if (array[index].get(i).getTitle().equals(key)) {\r\n \r\n return true;\r\n \r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n return false;\r\n }", "public boolean definesKey( final String key ) {\n return values.containsKey( key );\n }", "public boolean containsKey(K key) {\r\n\t\tif (get(key) == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean contains(int key) {\n int index1 = hashfunc1(key);\n int index2 = hashfunc2(key);\n \n if(hset[index1] != null){\n return hset[index1][index2];\n }\n return false; \n }", "boolean exists(Integer key);", "public boolean containsKey(String s){\r\n return this.get(s) != 0;\r\n }", "public boolean contains (String key)\n {\n use (key);\n return map.containsKey (key);\n }", "public boolean containsKey(Comparable key) { return this.store.containsKey(key); }", "public boolean containsKey(DNA key){\n Node actual_node = this.getReference(key);\n\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> buscando cadena: \" + key.toString() + \", hashCode: \" + key.hashCode());\n\n int reference_page = actual_node.getReference(), hash = key.hashCode();\n ArrayList<Integer> content = this.fm.read(reference_page); this.in_counter++;\n\n boolean res = false;\n\n while(true) {\n int cant = content.get(0);\n\n for(int i=1; i<=cant; i++) {\n if(content.get(i) == hash) {\n res = true;\n }\n }\n\n if(res)\n break;\n\n if(content.size() != B)\n break;\n\n reference_page = content.get(B-1);\n content = this.fm.read(reference_page); this.in_counter++;\n\n }\n if(this.debug)\n System.out.println(\"ExtHash::containsKey >> cadena encontrada: \" + res);\n\n return res;\n }", "public boolean containsKey(K key) {\n int keyBucket = hash(key);\n \n HashMapEntry<K, V> temp = table[keyBucket];\n while (temp != null) {\n if ((temp.key == null && key == null) \n || (temp.key != null && temp.key.equals(key))) {\n return true;\n }\n temp = temp.next;\n }\n \n return false;\n }", "public boolean contains (String key) {\r\n int arrIndex = hash(key);\r\n\r\n if (hashTableArray[arrIndex] == null) {\r\n hashTableArray[arrIndex] = new LinkedList<>();\r\n }\r\n\r\n for (int i = 0; i < hashTableArray[arrIndex].size(); i++) {\r\n if (hashTableArray[arrIndex].get(i).key.equals(key)){\r\n return true; // returns true when a key already exists\r\n }\r\n }\r\n return false; // returns false when a key does not yet exist\r\n }", "boolean hasKey(String key);", "public boolean contains(String key){\r\n\t\treturn get(key) != null;\r\n\t}", "public boolean contains( AnyType x )\n {\n int currentPos = findPos( x );\n if (array[currentPos] != null && array[currentPos].key.equals(x))\n \treturn true;\t\t//TODO : Test this method\n else\n \treturn false;\n \n }", "@Override\n public boolean contains(Comparable k) {\n\n // Loop over items and check\n for (int i = 0; i < this.size; i++) {\n if (ls[i].key.equals(k)) {\n return true;\n }\n }\n\n // Return false if not found\n return false;\n }", "public boolean containsKey(int key) {\n return getElement(key) != null;\n }", "public boolean containsKey(K key) {\n synchronized(theLock) {\n return valueMap.containsKey(key) && ! isExpired(valueMap.get(key)); \n }\n }", "@Test\n public void testContainsKey() {\n System.out.println(\"containsKey\");\n \n // GIVEN\n SimpleStyleableMap instance = new SimpleStyleableMap();\n \n // WHEN getOrDefault and no value has been put\n Object key = \"dummyKey\";\n boolean result = instance.containsKey(key);\n \n // THEN must return false\n assertEquals(false, result);\n \n // WHEN getOrDefault and a value has been put\n Object putValue=\"putValue\";\n instance.put(key, putValue );\n result = instance.containsKey(key);\n \n // THEN must returnt rue\n assertEquals(true, result);\n \n // WHEN key is removed\n instance.remove(key);\n result = instance.containsKey(key);\n // THEN must return default value\n assertEquals(false, result);\n }", "@Override\r\n\tpublic boolean containsValue(Object value) {\r\n\t\tif (value == null) throw new NullPointerException();\r\n\t\tfor (K key : keySet()) {\r\n\t\t\tif (get(key).equals(value)) return true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean contains(int key) { return contains(root, key); }", "public boolean containsId(String key, Long userId) {\n if(index.containsKey(key)) {\n return index.get(key).contains(userId);\n }\n return false;\n }", "public boolean containsKey(Object key) {\r\n\t\tif (key == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tint slotIndex = Math.abs(key.hashCode()) % table.length;\r\n\r\n\t\tif (table[slotIndex] == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tTableEntry<K, V> currentElement = table[slotIndex];\r\n\r\n\t\tdo {\r\n\t\t\tif (currentElement.key.equals(key)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = currentElement.next;\r\n\t\t} while (currentElement != null);\r\n\r\n\t\treturn false;\r\n\t}", "public static Boolean isContains(String key){\r\n return scenarioContext.containsKey(key.toString());\r\n }", "public boolean contains(int key) {\n int index = getIndex(key);\n int index2 = getIndex2(key);\n if(buckets[index] != null){\n return buckets[index][index2] == true; \n }\n return false;\n }", "boolean containsKeyLocalOnHeap(Object key);", "public boolean contains(int key) {\n int hash = key % 7919;\n if (table[hash] == null)\n {\n return false;\n }\n else\n {\n ArrayList<Integer> al = table[hash].al;\n int size = al.size();\n for (int i = 0; i < size; ++i)\n {\n if (al.get(i) == key)\n {\n return true;\n }\n }\n return false;\n }\n }", "@Override\n public boolean contains(String key) {\n if (key == null || key.length() == 0 || root == null)\n return false;\n Node p = root;\n for (int i = 0; i < key.length(); i++) {\n char current = key.charAt(i);\n Node next = p.next.get(current);\n if (next == null) {\n return false;\n }\n p = next;\n }\n return p.isKey;\n }" ]
[ "0.75893277", "0.74923384", "0.7279651", "0.69572544", "0.69343567", "0.69248044", "0.6891954", "0.6851962", "0.683906", "0.67917585", "0.671907", "0.6715462", "0.67019683", "0.6682155", "0.6631958", "0.6631958", "0.66295743", "0.6629294", "0.662472", "0.6597527", "0.6585034", "0.6564024", "0.6564024", "0.6557268", "0.6556844", "0.6546732", "0.6544514", "0.6528944", "0.6521497", "0.6508003", "0.650578", "0.6491309", "0.6491151", "0.64619726", "0.64609027", "0.6447626", "0.6439025", "0.64380723", "0.6435326", "0.6434744", "0.64107776", "0.64099306", "0.6403528", "0.6400504", "0.6390079", "0.6366663", "0.6359908", "0.63412434", "0.63412434", "0.63412434", "0.63412434", "0.63412434", "0.6336559", "0.6329106", "0.63182783", "0.6307185", "0.62959915", "0.6288401", "0.62851334", "0.6263334", "0.62609166", "0.6259531", "0.6235685", "0.62251145", "0.62142503", "0.6207333", "0.61654764", "0.616295", "0.6158588", "0.61498046", "0.6143987", "0.6137445", "0.613621", "0.61277753", "0.6127363", "0.6124202", "0.6122311", "0.6120156", "0.61145204", "0.61051744", "0.6104266", "0.6100523", "0.60971886", "0.6096435", "0.6087335", "0.6074475", "0.6074386", "0.6070908", "0.6066087", "0.6065467", "0.60538906", "0.60346985", "0.60303044", "0.6021877", "0.6019393", "0.6018573", "0.6016246", "0.6012814", "0.59804374", "0.596827", "0.5964419" ]
0.0
-1
add support for float (2016/05/10 vroyer)
public float getFloat(String column) { return FloatType.instance.compose(get(column)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static float leerFloat() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\r\n public Class getClassType() {\r\n return float.class;\r\n }", "float getEFloat();", "@Override\r\n\tpublic boolean isFloat() {\r\n\t\treturn isFloatType;\r\n\t}", "public boolean isAfloat(){\n \treturn afloat;\r\n }", "public abstract float read_float();", "public Flt(float f) {this.f = new Float(f);}", "public T caseFloat(org.uis.lenguajegrafico.lenguajegrafico.Float object)\n {\n return null;\n }", "@Test\n\tvoid testAddFloat() {\n\t\tfloat result = calculator.add(3.4F,1F);\n\t\tassertEquals(4.4,result,0.0000009536732);//delta\n\t}", "double getFloatingPointField();", "@Override\n public float nextFloat() {\n return super.nextFloat();\n }", "@Test\n\tpublic void float1() {\n\t\tfloat actualValue = Maximum.getmaximum1(12f,14f,15f);\n\t\tAssert.assertEquals(15,actualValue ,0);\n\t}", "public float evaluateAsFloat();", "float getValue();", "float getValue();", "float getValue();", "boolean hasFloat();", "private static void setValueFloat(float value)\n {\n Util.valueFloat = value;\n }", "@Override\n\tpublic void fishfloat()\n\t{\n\t\tSystem.out.println(super.getName() + \" is floating\");\n\n\t}", "public abstract float getValue();", "Double getTotalFloat();", "float readFloat();", "@Test\n public void floatInvalidType() throws Exception {\n String retVal = new SynapseHelper().serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.FLOAT, new TextNode(\"3.14\"));\n assertNull(retVal);\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"float\";\r\n\t}", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default float asFloat() {\n \n return notSupportedCast(BasicTypeID.FLOAT);\n }", "String getFloat_lit();", "Double getStartFloat();", "public void setAfloat(boolean x){\r\n \tafloat = x;\r\n }", "float applyAsFloat(T value);", "@Override\n\tpublic Type getType() {\n\t\treturn Type.FLOAT;\n\t}", "public boolean isFloat() {\n return this.data instanceof Float;\n }", "FloatValue createFloatValue();", "FloatValue createFloatValue();", "void mo56155a(float f);", "public static boolean floatType(FileInputStream f){\n if(observer != null){\n observer.parser.setCurrentRule(\"floatType\", true);\n }\n CToken t = new CToken();\n\n t = getUsePeek(f);\n \n if(!t.token.equals(\"float\") && !t.token.equals(\"double\")){\n return false;\n }\n \n CScanner.needToUsePeekedToken = false;\n if(observer != null){\n observer.parser.setCurrentRule(\"floatType\", false);\n }\n return true;\n }", "public static float getValueFloat()\n {\n return Util.valueFloat;\n }", "void mo84656a(float f);", "public float getMinValue();", "public void set_float(float param) {\n this.local_float = param;\n }", "@Override\r\n public float floatValue() {\r\n return (float) this.m_current;\r\n }", "public void setfVal(float value){\n this.fVal = value;\n }", "@Test\n public void test_TCM__float_getFloatValue() {\n Attribute attr = new Attribute(\"test\", \"1.00000009999e+10f\");\n float flt = 1.00000009999e+10f;\n try {\n assertTrue(\"incorrect float conversion\",\n attr.getFloatValue() == flt);\n } catch (DataConversionException e) {\n fail(\"couldn't convert to float\");\n }\n\n // test an invalid float\n\n attr.setValue(\"1.00000009999e\");\n try {\n attr.getFloatValue();\n fail(\"incorrect float conversion from non float\");\n } catch (DataConversionException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n }\n\n }", "public T caseFloat(sensorDeploymentLanguage.Float object) {\n\t\treturn null;\n\t}", "Double getFreeFloat();", "void mo72112a(float f);", "double floatField(String name, boolean isDefined, double value,\n FloatSpecification spec) throws NullField, InvalidFieldValue;", "public Value(float f) {\n aFloat = f;\n itemClass = Float.class;\n type = DataType.FLOAT;\n }", "public float getMinimumFloat() {\n/* 212 */ return (float)this.min;\n/* */ }", "public abstract void setFloatImpl(String str, double d, Resolver<Void> resolver);", "protected float method_4216() {\r\n return 5.0F;\r\n }", "public FloatBase(org.semanticwb.platform.SemanticObject base)\r\n {\r\n super(base);\r\n }", "public Float getFloatAttribute();", "public float floatValue()\n\t\t{\n\t\t\treturn (float) doubleValue();\n\t\t}", "String floatRead();", "public OCFloat(float val)\r\n {\r\n super(val, 4);\r\n }", "public static void main(String[] args)\n {\n\n double myDouble = 3.14;\n float myFloat = 3.14f; //Removing the f will cause an error due to lossy conversion\n double yourDouble = myFloat; //Widening/lossless conversions won't raise errors\n }", "public void setFloat(boolean value) {\r\n\t\tisFloatType = value;\r\n\t}", "@Test\n public void testFloatInRange() {\n int lowEnd = -10;\n int highEnd = 10;\n Optional<NumberValue> optRslt = floatService.floatInRange(lowEnd, highEnd);\n assertTrue(optRslt.isPresent());\n NumberValue numberValue = optRslt.get();\n assertTrue(lowEnd * 1.0 <= numberValue.getNumber().doubleValue());\n assertTrue(highEnd * 1.0 >= numberValue.getNumber().doubleValue());\n System.out.println(\"Number Value = \" + numberValue.toString());\n }", "@Override\n public boolean getPowerFloat() {\n return false;\n }", "public T caseURDFAttrFloat(URDFAttrFloat object) {\r\n\t\treturn null;\r\n\t}", "@Override\n public FloatType multiplyToFloat(FloatType multiplicand) {\n double floatMultiplier = this.asFloat().getValue();\n double floatMultiplicand = multiplicand.getValue();\n return TypeFactory.getFloatType(floatMultiplicand * floatMultiplier);\n }", "private void float_to_float_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get values of operands\r\n double x = getFloatOperand( nd, vms, 0 ) ;\r\n \r\n // Compute the value\r\n double value ;\r\n switch( op_code ) {\r\n case FABS :\r\n value = x < 0 ? -x : x ;\r\n break ;\r\n case SIN :\r\n value = Math.sin(x) ;\r\n break ;\r\n case COS :\r\n value = Math.cos(x) ;\r\n break ;\r\n case TAN :\r\n value = Math.tan(x) ;\r\n break ;\r\n case ASIN :\r\n value = Math.asin(x) ;\r\n break ;\r\n case ACOS :\r\n value = Math.acos(x) ;\r\n break ;\r\n case ATAN :\r\n value = Math.atan(x) ;\r\n break ;\r\n case EXP :\r\n value = Math.exp(x) ;\r\n break ;\r\n case EXPM1 :\r\n // This won't give as good a result as the real expm1\r\n // function.\r\n value = Math.exp(x-1.0) ;\r\n break ;\r\n case LOG :\r\n value = Math.log(x) ;\r\n break ;\r\n case LOG10 :\r\n value = Math.log(x) / Math.log( 10 ) ;\r\n break ;\r\n case LOG1P :\r\n // This won't give as good a result as the real log1p\r\n // function.\r\n value = Math.log(x+1.0);\r\n break ;\r\n case CEIL :\r\n value = Math.ceil(x) ;\r\n break ;\r\n case FLOOR :\r\n value = Math.floor(x) ;\r\n break ;\r\n case SIGNUM :\r\n if(x == Double.NaN ) {\r\n value = x ; }\r\n else if( x == 0.0 ) {\r\n value = x ; }\r\n else if( x < 0 ) {\r\n value = -1.0 ; }\r\n else {\r\n value = +1.0 ; }\r\n break ;\r\n case ROUND :\r\n value = Math.round(x) ;\r\n break ;\r\n case SQRT :\r\n value = Math.sqrt(x) ;\r\n break ;\r\n case SINH :\r\n value = (pow(Math.E, x) - pow(Math.E, -x)) / 2.0 ;\r\n break ;\r\n case COSH :\r\n value = (pow(Math.E, x) + pow(Math.E, -x)) / 2.0 ;\r\n break ;\r\n case TANH :\r\n value = (pow(Math.E, x) - pow(Math.E, -x))\r\n / (pow(Math.E, x) + pow(Math.E, -x)) ;\r\n break ;\r\n case TODEGS :\r\n value = x * 57.2957795 ;\r\n break ;\r\n case TORADS :\r\n value = x / 57.2957795 ;\r\n break ;\r\n case RINT :\r\n value = Math.rint(x) ;\r\n break ;\r\n case CBRT :\r\n if( x == Double.NaN ) value = Double.NaN ;\r\n else if( x < 0 ) value = -pow( -x, 1.0/3.0);\r\n else value = pow(x,1.0/3.0) ;\r\n break ;\r\n case ULP_DOUBLE :\r\n if( x == Double.NaN )\r\n value = Double.NaN ;\r\n else if( x == Double.NEGATIVE_INFINITY || x == Double.POSITIVE_INFINITY )\r\n value = Double.POSITIVE_INFINITY ;\r\n else if( x == 0.0 )\r\n value = Double.MIN_VALUE ;\r\n else {\r\n /* TODO\r\n * Fix this algorithm.\r\n */\r\n Assert.apology(\"ulp is not implemented\") ;\r\n value = 0.0 ; }\r\n break ;\r\n case ULP_FLOAT :\r\n // The assumption is that converting from a float\r\n // to a double loses nothing and is invertable.\r\n float xf = (float) x ; // Get back to the float.\r\n if( xf == Float.NaN )\r\n value = Float.NaN ;\r\n else if( xf == Float.NEGATIVE_INFINITY || xf == Float.POSITIVE_INFINITY )\r\n value = Float.POSITIVE_INFINITY ;\r\n else if( xf == 0.0 )\r\n value = Float.MIN_VALUE ;\r\n else {\r\n /* TODO\r\n * Fix this algorithm.\r\n */\r\n Assert.apology(\"ulp is not implemented\") ;\r\n value = 0.0 ; }\r\n break ;\r\n default: Assert.check(false) ; value = 0 ;\r\n }\r\n \r\n AbstractFloatDatum d = putFloatResult(nd, vms, value);\r\n \r\n // NOTE: mpbl May 2008 I believe this is superfluous\r\n \r\n vms.top().map(nd, d) ;\r\n }", "public final void mo8765a(float f) {\n }", "public static void main(String[] args){\n\t\tFloat f=new Float(12);\r\n\t}", "public float floatValue() {\r\n return (float) intValue();\r\n }", "public float readFloat()\r\n/* 447: */ {\r\n/* 448:460 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 449:461 */ return super.readFloat();\r\n/* 450: */ }", "public FloatType asFloat() {\n return TypeFactory.getIntType(toInt(this.getValue())).asFloat();\n }", "public float getFloat(String key)\n {\n return getFloat(key, 0);\n }", "String floatWrite();", "@Override\r\n\tpublic Buffer setFloat(int pos, float f) {\n\t\treturn null;\r\n\t}", "void mo9698a(String str, float f);", "@Override\r\n\tpublic void add(float var) {\n\t\t\r\n\t}", "@Override\n public float nextFloat() {\n nextState();\n return outputFloat();\n }", "public float floatValue() {\n return ( (Float) getAllele()).floatValue();\n }", "@Test\n public void test_column_type_detection_float() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"12.3e4\", XSDDatatype.XSDfloat), true, Types.FLOAT, Float.class.getCanonicalName());\n Assert.assertEquals(7, info.getScale());\n Assert.assertEquals(15, info.getPrecision());\n Assert.assertTrue(info.isSigned());\n }", "public abstract void setValue(double fltValue);", "public Float getFloat(String key)\n\t{\n\t\tDouble d = getDouble(key);\n\t\tif(d == null)\n\t\t\treturn null;\n\t\treturn d.floatValue();\n\t}", "public void setE(java.lang.Float value) {\n this.e = value;\n }", "public Float getFloat(String attr) {\n return (Float) super.get(attr);\n }", "public double value(){\n\t return (double) this.f;\n }", "public float toFloat() {\n return this.toFloatArray()[0];\n }", "@Test\n public void whenGivenFloat_ShouldReturnThirdPositionMax() {\n FindMaximum max = new FindMaximum();\n Float X= (Float) max.checkMaximum(10.3f,20.3f,30.3f);\n Float expected=30.3f;\n Assert.assertEquals(expected,X);\n }", "public Float getFloat(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Float) extGet(key);\n\t}", "public float floatValue() {\n\t\treturn (float) mDouble;\n\t}", "void writeFloat(float value);", "protected abstract float getValue(Entity e,FloatTrait t);", "public interface FloatProvider {\n float get();\n}", "@Test\n public void intFromFloat() throws Exception {\n String retVal = new SynapseHelper().serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.INT, new DecimalNode(new BigDecimal(\"-13.9\")));\n assertEquals(retVal, \"-13\");\n }", "public abstract void getFloatImpl(String str, double d, Resolver<Double> resolver);", "protected float toFloat(String s){\n return Float.parseFloat(s);\n }", "public static float datofloat(){\n try {\n return(Integer.parseInt(dato()));\n } catch (NumberFormatException error) {\n return(Integer.MIN_VALUE);\n }\n }", "@Test\n public void testMovieFloatVal() {\n Client client = new JaxWsClient();\n MovieService movieService =\n (MovieService) client.getClient(new ClientInfo(MovieService.class,\n \"http://localhost:9002/Movie\", false));\n float floatVal = 1;\n Assert.assertEquals(floatVal, movieService.testMovieFloatVal(floatVal), 0);\n }", "@Override\r\n public void updateValue(String s) {\r\n //Covert from string to float\r\n this.value = Float.valueOf(s);\r\n }", "public float floatValue() {\n return (float) value;\n }", "@Test\n public void testParseFloat() {\n FloatSpec floatSpec = new FloatSpec();\n floatSpec.setDefaultValue(0f);\n dataTypeParser.setDataTypeSpec(floatSpec);\n dataTypeParser.parse();\n FloatSpec parsedFloatSpec = (FloatSpec) dataTypeParser.getDataTypeSpec();\n\n assertNull(parsedFloatSpec.getMinValue());\n assertNull(parsedFloatSpec.getMaxValue());\n }", "protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }", "public static float fVal( Number n ){\n if ( n == null )\n return 0f;\n return n.floatValue();\n }", "float readFloat() {\n try {\n return in.readFloat();\n } catch (IOException ex) {\n return DisasmError();\n }\n }", "public float make_accurate(float a){//fixes floats\r\n\t\tint b = (int) (a * 1000000);\r\n\t\t\r\n\t\treturn (float)(b)/1000000f;\r\n\t\t\r\n\t}", "boolean mo61579as(float f);", "float expectFloatParameter(String strParamName);" ]
[ "0.72652215", "0.7008243", "0.69972074", "0.6956404", "0.69122523", "0.68895817", "0.68757993", "0.6850602", "0.6847952", "0.6845953", "0.6844076", "0.6821209", "0.6819489", "0.6818632", "0.6818632", "0.6818632", "0.6792764", "0.67635876", "0.675194", "0.67446077", "0.6714749", "0.6700395", "0.6680108", "0.6674079", "0.6673244", "0.6661884", "0.6635247", "0.65937054", "0.65836143", "0.65696687", "0.65466356", "0.65365356", "0.65365356", "0.6517909", "0.6503244", "0.6497292", "0.6492548", "0.64655495", "0.64572364", "0.6452803", "0.64515054", "0.6448721", "0.6436152", "0.64209646", "0.6417825", "0.64126647", "0.64078885", "0.63990366", "0.6388597", "0.6379582", "0.6351148", "0.63291776", "0.6312207", "0.6311041", "0.6257569", "0.62563837", "0.6246042", "0.623796", "0.62205917", "0.62185365", "0.6216864", "0.6212273", "0.62062323", "0.619469", "0.6193876", "0.61898917", "0.61833024", "0.61706865", "0.61696213", "0.61533076", "0.61512876", "0.61467206", "0.6140292", "0.61345124", "0.61229706", "0.6120944", "0.6116065", "0.61129034", "0.61099184", "0.61089116", "0.61027193", "0.609941", "0.6093515", "0.60849315", "0.6079749", "0.60742474", "0.6073303", "0.6073048", "0.60621357", "0.605632", "0.60428786", "0.60397154", "0.60381013", "0.6033742", "0.60329247", "0.60276115", "0.60252917", "0.60195065", "0.60133094", "0.6012959", "0.601131" ]
0.0
-1
A class representing a spatial indexer for features.
public interface FeatureIndexer extends Serializable { /** * Finds the IDs of features with the given spatio-temporal constraints. If * any constraint is <code>null</code> it is considered to be unconstrained * in that dimension. * * @param horizontalExtent * The {@link BoundingBox} which features must have positions in. * @param verticalExtent * The vertical range which features must have positions in. * @param timeExtent * The time range which features must have positions in. * @param variableIds * The variable IDs which features must contain * @return A {@link Collection} of IDs for features which match all of the * given constraints */ public Collection<String> findFeatureIds(BoundingBox horizontalExtent, Extent<Double> verticalExtent, Extent<DateTime> timeExtent, Collection<String> variableIds); /** * @return All feature IDs present in this {@link FeatureIndexer} */ public Set<String> getAllFeatureIds(); /** * Adds features to this indexer. Features are defined in terms of * {@link FeatureBounds} objects which define the spatial boundaries of * point features * * @param features */ public void addFeatures(List<FeatureBounds> features); /** * A class representing the spatial bounds of a feature with a single point. * This is used to index features. */ public static class FeatureBounds implements Serializable { private static final long serialVersionUID = 1L; String id; BoundingBox hBbox; Extent<Double> verticalExtent; Extent<Long> timeExtent; Collection<String> variableIds; public FeatureBounds(String id, HorizontalPosition horizontalPosition, Extent<Double> verticalExtent, Extent<DateTime> timeExtent, Collection<String> variableIds) { this(id, new BoundingBoxImpl(horizontalPosition.getX(), horizontalPosition.getY(), horizontalPosition.getX(), horizontalPosition.getY(), horizontalPosition.getCoordinateReferenceSystem()), verticalExtent, timeExtent, variableIds); } public FeatureBounds(String id, BoundingBox hBbox, Extent<Double> verticalExtent, Extent<DateTime> timeExtent, Collection<String> variableIds) { super(); /* * We need at least an ID and a horizontal position. * * If vertical position or time are missing (i.e. null), give them * the maximum possible extent so that they will always be included * in any query. */ if (id == null || hBbox == null) { throw new IllegalArgumentException( "Must provide a non-null ID and horizontal bounding box to index a feature"); } this.id = id; this.hBbox = hBbox; if (verticalExtent != null) { this.verticalExtent = verticalExtent; } else { this.verticalExtent = Extents.newExtent(-Double.MAX_VALUE, Double.MAX_VALUE); } if (timeExtent != null) { this.timeExtent = Extents.newExtent(timeExtent.getLow().getMillis(), timeExtent.getHigh().getMillis()); } else { this.timeExtent = Extents.newExtent(-Long.MAX_VALUE, Long.MAX_VALUE); } this.variableIds = variableIds; } /** * Convenience method to generate a {@link FeatureBounds} object from a * {@link ProfileFeature} * * @param feature * A {@link ProfileFeature} to calculate the bounds for * @return The appropriate {@link FeatureBounds} */ public static FeatureBounds fromProfileFeature(ProfileFeature feature) { return new FeatureBounds(feature.getId(), feature.getHorizontalPosition(), feature.getDomain().getCoordinateExtent(), Extents.newExtent(feature.getTime(), feature.getTime()), feature.getVariableIds()); } /** * Convenience method to generate a {@link FeatureBounds} object from a * {@link PointSeriesFeature} * * @param feature * A {@link PointSeriesFeature} to calculate the bounds for * @return The appropriate {@link FeatureBounds} */ public static FeatureBounds fromPointSeriesFeature(PointSeriesFeature feature) { VerticalPosition zPos = feature.getVerticalPosition(); Extent<Double> zExtent = null; if (zPos != null) { zExtent = Extents.newExtent(zPos.getZ(), zPos.getZ()); } return new FeatureBounds(feature.getId(), feature.getHorizontalPosition(), zExtent, feature.getDomain().getCoordinateExtent(), feature.getVariableIds()); } /** * Convenience method to generate a {@link FeatureBounds} object from a * {@link TrajectoryFeature} * * @param feature * A {@link TrajectoryFeature} to calculate the bounds for * @return The appropriate {@link FeatureBounds} */ public static FeatureBounds fromProfileFeature(TrajectoryFeature feature) { return new FeatureBounds(feature.getId(), feature.getDomain().getCoordinateBounds(), feature.getDomain().getVerticalExtent(), feature.getDomain().getTimeExtent(), feature.getVariableIds()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addFeature(int index, Feature feature);", "private void addToIndex(SimpleFeature feature) {\n\t\t// ID Index\n\t\tif (idIndex==null) idIndex = new HashMap<String, SimpleFeature>();\n\t\tidIndex.put(feature.getID(), feature);\n\t\t\n\t\t// Type name index\n\t\tif (typeNameIndex==null) typeNameIndex = new HashMap<Name, Set<SimpleFeature>>();\n\t\tName type = feature.getType().getName();\n\t\tSet<SimpleFeature> prev = typeNameIndex.get(type);\n\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\tprev.add(feature);\n\t\ttypeNameIndex.put(type, prev);\n\t\t\n\t\t// Tile Index\n\t\t// Image features are separated by - and last parts are xref-yref-zoom\n\t\tif (feature.getID().matches(\".*-[0-9]+-[0-9]+-[0-9]+\")) {\n\t\t\tOSMTile tile = new OSMTile(feature.getID());\n\t\t\tprev = tileIndex.get( tile );\n\t\t\tif (prev==null) prev = new HashSet<SimpleFeature>();\n\t\t\tprev.add(feature);\n\t\t\ttileIndex.put(tile, prev);\n\t\t\t\n\t\t} else {\n\t\t\t/* TODO Something for features..?\n\t\t\t * get geometry bounds, calculate tile and insert into relevant index positions?\n\t\t\t * This would then also work for removal...\t */\n\t\t}\n\t\t\n\t}", "interface CoordinateIndexUpdater {\n void updateIndex();\n }", "public void setFeatureIndex(int i) {\n featureIndex = i;\n }", "void setFeature(int index, Feature feature);", "public Iterator<Feature> featureIterator(){\n\t\treturn indexByFeature.keySet().iterator();\n\t}", "private void createIndex(Geography<T> geog, Class<T> clazz)\n\t{\n\t\tGeometry geom;\n\t\tEnvelope bounds;\n\t\tfor (T t : geog.getAllObjects( ))\n\t\t{\n\t\t\tgeom = (Geometry) geog.getGeometry(t);\n\t\t\tbounds = geom.getEnvelopeInternal( );\n\t\t\tthis.si.insert(bounds, geom);\n\t\t\tthis.featureLookup.put(geom, t);\n\t\t}\n\t}", "public IndexFeatureInfo(int iternalID) {\n\t\tthis.maxQueries = new ArrayList<QueryInfo>();\n\t\tthis.queries = new ArrayList<QueryInfo>();\n\t\tthis.stPointScore = -1;\n\t\tthis.avgGain = -1;\n\t\tthis.medianGain = -1;\n\t\tthis.quartiles = -1;\n\t}", "public Indexer() {\n }", "private Indexers()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public KmlGeometryFeature(){\r\n }", "public SimpleIndexFactory() {\n\t}", "public AutoIndexMap()\n\t\t{\n\t\t\t// Initialise instance variables\n\t\t\tindices = new IdentityHashMap<>();\n\t\t}", "protected interface ISearchIndex<T> extends Iterable<T> {\n List<T> radius(T center, double radius);\n }", "public interface Index {\n\t\n\tvoid index(AddOnInfoAndVersions infoAndVersions) throws Exception;\n\t\n\tCollection<AddOnInfoSummary> search(AddOnType type, String query) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getAllByType(AddOnType type) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getByTag(String tag) throws Exception;\n\t\n\tAddOnInfoAndVersions getByUid(String uid) throws Exception;\n}", "public interface IndexRegistry\n{\n void registerIndex(Index index);\n void unregisterIndex(Index index);\n\n Index getIndex(IndexMetadata indexMetadata);\n Collection<Index> listIndexes();\n}", "public interface FeatureBuilder {\r\n\t\r\n\tpublic SimpleFeatureType getType() ;\r\n\r\n\tpublic SimpleFeature buildFeature(Geometry geometry);\r\n\r\n\tpublic SimpleFeatureCollection buildFeatureCollection(Collection<Geometry> geometryCollection);\r\n\t\r\n\tpublic SimpleFeatureBuilder createFeatureBuilder();\r\n\t\r\n\tpublic SimpleFeatureTypeBuilder createFeatureTypeBuilder(SimpleFeatureType sft, String typeName);\r\n\t\t\r\n}", "public Features() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "@Override\n public Multimap<Index.Path, String> computeIndexValues()\n {\n Multimap<Index.Path, String> values = super.computeIndexValues();\n\n values.put(Index.Path.TYPES, m_featType.toString());\n\n return values;\n }", "indexSet createindexSet();", "@Unstable\npublic interface FeatureClusterView extends Feature\n{\n /**\n * Returns the reference features, if any.\n * \n * @return a potentially empty, unmodifiable collection of the features from the reference patient\n */\n Collection<Feature> getReference();\n\n /**\n * Returns the features matched by this feature, if any.\n * \n * @return a potentially empty, unmodifiable collection of the features from the reference patient, with\n * {@code null} values corresponding to undisclosed features\n */\n Collection<Feature> getMatch();\n\n /**\n * Returns the root/ancestor of the cluster.\n * \n * @return the root feature for the reference and match features\n */\n OntologyTerm getRoot();\n\n /**\n * How similar are the match and reference features.\n * \n * @return a similarity score, between {@code -1} for opposite features and {@code 1} for an exact match, with\n * {@code 0} for features with no similarities, and {@code NaN} if one of the collections of features is\n * empty\n */\n double getScore();\n\n /**\n * Retrieve all information about the cluster of features. For example:\n * \n * <pre>\n * {\n * \"id\": \"HP:0100247\",\n * \"name\": \"Recurrent singultus\",\n * \"type\": \"ancestor\",\n * \"reference\": [\n * \"HP:0001201\",\n * \"HP:0000100\"\n * ],\n * \"match\": [\n * \"HP:0001201\"\n * ]\n * }\n * </pre>\n * \n * @return the feature data, using the json-lib classes\n */\n JSONObject toJSON();\n}", "public interface IIndexer {\n /**\n * Returns the file types the <code>IIndexer</code> handles.\n */\n String[] getFileTypes();\n /**\n * Indexes the given document, adding the document name and the word references \n * to this document to the given <code>IIndex</code>.The caller should use \n * <code>shouldIndex()</code> first to determine whether this indexer handles \n * the given type of file, and only call this method if so. \n */\n void index(IDocument document, IIndexerOutput output) throws java.io.IOException;\n /**\n * Sets the document types the <code>IIndexer</code> handles.\n */\n public void setFileTypes(String[] fileTypes);\n /**\n * Returns whether the <code>IIndexer</code> can index the given document or not.\n */\n public boolean shouldIndex(IDocument document); }", "public Class getIndexedClass();", "public interface SpLocalFeatureList <T extends SpLocalFeature<?, ?>> extends SpRandomisableList<T>, Writeable {\n\n /** The header used when writing LocalFeatureLists to streams and files */\n public static final byte[] BINARY_HEADER = \"KPT\".getBytes();\n\n /**\n * Get the feature-vector data of the list as a two-dimensional array of\n * data. The number of rows will equal the number of features in the list,\n * and the type &lt;Q&gt;must be compatible with the data type of the features\n * themselves.\n *\n * @param <Q>\n * the data type\n * @param a\n * the array to fill\n * @return the array, filled with the feature-vector data.\n */\n public <Q> Q[] asDataArray(Q[] a);\n\n /**\n * Get the length of the feature-vectors of each local feature if they are\n * constant.\n *\n * This value is used as instantiate new local features in the case that the\n * local feature has a constructor that takes a single integer.\n *\n * @return the feature-vector length\n */\n public int vecLength();\n\n @Override\n public SpLocalFeatureList<T> subList(int fromIndex, int toIndex);\n\n}", "public interface GeoData{\r\n /**\r\n * Most geodata sets contain features for which there is no data, or the data is missing.<br>\r\n * In these cases a specific value is often used to represent these special cases.<p>\r\n * The static final value MISSING is the default value used by GeoDatas to represent\r\n * these cases.\r\n * @see #setMissingValueCode\r\n * @see #getMissingValueCode\r\n */\r\n public static final double MISSING = Double.NaN;\r\n\r\n\t\t/** \r\n\t\t * All geodata have a type - this is particularly important when\r\n\t\t * interfacing with other data sources/formats.\r\n\t\t * @see #setDataType\r\n\t\t * @see #getDataType\r\n\t\t */\r\n\t\tpublic static final int CHARACTER = 0;\r\n\t\tpublic static final int INTEGER = 1;\r\n\t\tpublic static final int FLOATING = 2;\r\n \r\n /**\r\n * All GeoData objects can have a name associated with them.<br>\r\n * Typicaly the name will match the Column heading from which the data came from.<br>\r\n * Names can be important when the GeoData is used in thematic maps as this is the\r\n * name that will be placed in the key by default.<br>\r\n * @author James Macgill JM\r\n * @return String The name associated with this GeoData.\r\n */\r\n String getName();\r\n /**\r\n * All GeoData objects can have a name associated with them.<br>\r\n * Typicaly the name will match the Column heading from which the data came from.<br>\r\n * Names can be important when the GeoData is used in thematic maps as this is the\r\n * name that will be placed in the key by default.<br>\r\n *\r\n * @author James Macgill JM\r\n * @param name_ The name to be associated with this GeoData.\r\n */\r\n void setName(String name_);\r\n \r\n \r\n /**\r\n * looks up and matches a value to the specifed feature id.<br>\r\n * Used for example by shaders to obtain vaules for thematic mapping.<br>\r\n *\r\n * @author James Macgill JM\r\n * @param id An int specifying the feature id to retreve a value for.\r\n * @return double The value for the specified id, if no id matches the one given then the value specifed by setMissingValue should be returned.\r\n * @see #setMissingValue\r\n */\r\n double getValue(int id);\r\n \r\n /**\r\n * Looks up and retreves a string for the specifed feature id.<br>\r\n * Used for example by the ToolTip feature in Themes to provide tool tip text for each feature.\r\n *\r\n * @author James Macgill JM\r\n * @param id An int specifying the feature to retreve the text for.\r\n * @return String A piece of text for the chosen feature id. If no id matches then an empty string should be returned \" \"\r\n */\r\n String getText(int id);\r\n \r\n /**\r\n * In order to allow systems to iterate through all of the data contained within the GeoData object this\r\n * method provides a list of all of the IDs which have associated values stored.\r\n *\r\n * @author James Macgill JM\r\n * @return Enumeration An enumeration of all of the IDs which can then be iterated through.\r\n */\r\n Enumeration getIds();\r\n \r\n /**\r\n * Not all posible ids will have a value stored in the GeoData object, so when a call is made to getValue with an id that is\r\n * not stored a special value is returned to signify that a value for this id is missing.<br>\r\n * By default that value is set to MISSING, however this behavoir can be changed by calling this method with a new value.<br>\r\n * \r\n * @see #getMissingValueCode\r\n * @author James Macgill JM\r\n * @param mv A double containing the new value to represent missing data.\r\n */\r\n public void setMissingValueCode(double mv);\r\n \r\n /**\r\n * Not all posible ids will have a value stored in the GeoData object, so when a call is made to getValue with an id that is\r\n * not stored a special value is returned to signify that a value for this id is missing.<br>\r\n * A call to this method will return the current code in use to represent that situation.<br>\r\n *\r\n * @see #setMissingValueCode\r\n * @author James Macgill JM\r\n * @return double The current value representing missing data.\r\n */ \r\n public double getMissingValueCode();\r\n \r\n /**\r\n * A quick statistic relating to the values stored in the GeoData object.<br>\r\n * \r\n * @author James Macgill JM\r\n * @return double The largest value currently stored in this GeoData. The missingValueCode is not included in this test.\r\n */\r\n double getMax();\r\n \r\n /**\r\n * A quick statistic relating to the values stored in the GeoData object.<br>\r\n * \r\n * @author James Macgill JM\r\n * @return double The smallest value currently stored in this GeoData. The missingValueCode is not included in this test.\r\n */\r\n double getMin();\r\n \r\n /**\r\n * The total number of stored id/value pairs stored in this GeoData.\r\n * @author James Macgill JM\r\n * @return int The number of values stored in this GeoData.\r\n */\r\n int getSize();\r\n \r\n /**\r\n * The total number of stored values stored in this GeoData which equal the missing value code.\r\n * @author James Macgill JM\r\n * @return int The number of missing values stored in this GeoData.\r\n */\r\n int getMissingCount();\r\n\r\n\t\t/** \r\n\t\t * Gets the type of data stored in the geodata<br>\r\n\t\t * <ul><li>String - GeoData.CHARACTER</li> \r\n\t\t * <li>Integer - GeoData.INTEGER</li>\r\n\t\t * <li>Double - GeoData.FLOATING</li></ul>\r\n\t\t */\r\n\t\t int getDataType();\r\n\t\t/** \r\n\t\t * Sets the type of data stored in the geodata<br>\r\n\t\t * <ul><li>String - GeoData.character</li> \r\n\t\t * <li>Integer - GeoData.integer</li>\r\n\t\t * <li>Double - GeoData.float</li></ul>\r\n\t\t */\r\n\t\t void setDataType(int type );\r\n}", "public interface IndexSearch {\n /**\n * Returns the index type.\n * @return type\n */\n IndexType type();\n\n /**\n * Returns the current token.\n * @return token\n */\n byte[] token();\n}", "private IndexOperations getIndexOperations() {\n return elasticsearchOperations.indexOps(itemClazz);\n }", "public LittleSearchEngine() {\n\t\tkeywordsIndex = new HashMap<String,ArrayList<Occurrence>>(1000,2.0f);\n\t\tnoiseWords = new HashSet<String>(100,2.0f);\n\t}", "public LittleSearchEngine() {\n\t\tkeywordsIndex = new HashMap<String,ArrayList<Occurrence>>(1000,2.0f);\n\t\tnoiseWords = new HashSet<String>(100,2.0f);\n\t}", "public static <T> void createIndex(Geography<T> geog, Class<T> clazz)\n\t{\n\t\tIndex<T> i = new Index<T>(geog, clazz);\n\t\tSpatialIndexManager.indices.put(geog, i);\n\t}", "public interface IIndexBuilder {\n\n public IIndex getIndex( Class<?> searchable ) throws BuilderException;\n\n public IFieldVisitor getFieldVisitor();\n\n public void setFieldVisitor( IFieldVisitor visitor );\n\n}", "public ATExpression base_indexExpression();", "private SolrIndexer()\n {\n fieldMap = new HashMap<String, String[]>();\n transMapMap = new HashMap<String, Map<String, String>>();\n customMethodMap = new HashMap<String, Method>();\n customMixinMap = new HashMap<String, SolrIndexerMixin>();\n indexDate = new Date();\n }", "public H_index() {\n\t\tsuper();\n\t}", "@Override\n public java.util.List<Index> getIndicesList() {\n return indices_;\n }", "public FactoryElementStorage<?> getIndices() {\n return mFactoryIndices;\n }", "public abstract void addFeatures(Collection<Integer> indices,Predicate pred,Word arg,Integer offset,boolean allWords);", "public ArrayIndexedCollection() {\n\t\tthis(DEFAULT_INITIAL_CAPACITY);\n\t}", "public ArrayIndexedCollection() {\n\t\tthis(defaultCapacity);\n\t}", "public interface IdentifierIndexIF extends IndexIF {\n \n /**\n * PUBLIC: Returns all the item identifiers of all the objects in the topicmap.\n * @return all the item identifiers of all the objects in the topicmap.\n * @since 5.4.0\n */\n Collection<LocatorIF> getItemIdentifiers();\n\n /**\n * PUBLIC: Returns all the item identifiers of all the objects in the topicmap that start with\n * the provided prefix.\n * @return all the matched item identifiers\n * @since 5.4.0\n */\n Collection<LocatorIF> getItemIdentifiersByPrefix(String prefix);\n \n /**\n * PUBLIC: Returns all the subject identifiers of all the topics in the topicmap.\n * @return all the subject identifiers of all the topics in the topicmap.\n * @since 5.4.0\n */\n Collection<LocatorIF> getSubjectIdentifiers();\n\n /**\n * PUBLIC: Returns all the subject identifiers of all the topics in the topicmap that start with\n * the provided prefix.\n * @return all the matched subject identifiers\n * @since 5.4.0\n */\n Collection<LocatorIF> getSubjectIdentifiersByPrefix(String prefix);\n \n}", "public interface Indexed {\n\n /**\n * index keyword and resource\n * @param resourceId keyword KAD id\n * @param entry published entry with keyword information\n * @param lastActivityTime current time from external system\n * @return percent of taken place in storage\n */\n int addKeyword(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n\n /**\n *\n * @param resourceId file KAD id\n * @param entry published entry with source information\n * @return true if source was indexed\n */\n int addSource(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n}", "public LittleSearchEngine() {\n keywordsIndex = new HashMap<String, ArrayList<Occurrence>>(1000, 2.0f);\n noiseWords = new HashMap<String, String>(100, 2.0f);\n }", "public static IndexExpression makeIndex(Expression instance, PropertyInfo indexer, Iterable<Expression> arguments) { throw Extensions.todo(); }", "public interface InvertedIndex extends Serializable {\n\n\n /**\n * Sampling for creating mini batches\n * @return the sampling for mini batches\n */\n double sample();\n\n /**\n * Iterates over mini batches\n * @return the mini batches created by this vectorizer\n */\n Iterator<List<VocabWord>> miniBatches();\n\n /**\n * Returns a list of words for a document\n * @param index\n * @return\n */\n List<VocabWord> document(int index);\n\n /**\n * Returns the list of documents a vocab word is in\n * @param vocabWord the vocab word to get documents for\n * @return the documents for a vocab word\n */\n int[] documents(VocabWord vocabWord);\n\n /**\n * Returns the number of documents\n * @return\n */\n int numDocuments();\n\n /**\n * Returns a list of all documents\n * @return the list of all documents\n */\n int[] allDocs();\n\n\n\n /**\n * Add word to a document\n * @param doc the document to add to\n * @param word the word to add\n */\n void addWordToDoc(int doc,VocabWord word);\n\n\n /**\n * Adds words to the given document\n * @param doc the document to add to\n * @param words the words to add\n */\n void addWordsToDoc(int doc,List<VocabWord> words);\n\n\n /**\n * Finishes saving data\n */\n void finish();\n\n /**\n * Total number of words in the index\n * @return the total number of words in the index\n */\n int totalWords();\n\n /**\n * For word vectors, this is the batch size for which to train on\n * @return the batch size for which to train on\n */\n int batchSize();\n\n /**\n * Iterate over each document\n * @param func the function to apply\n * @param exec exectuor service for execution\n */\n void eachDoc(Function<List<VocabWord>, Void> func, ExecutorService exec);\n}", "public static SolrIndexer indexerFromProperties(Properties indexingProperties, String searchPath[])\n {\n SolrIndexer indexer = new SolrIndexer();\n indexer.propertyFilePaths = searchPath;\n indexer.fillMapFromProperties(indexingProperties);\n\n return indexer;\n }", "public int getRowIndex(Feature f){\n return fc.indexOf(f);\n }", "public List<Index> getIndexes();", "public indexing() {\n initComponents();\n }", "public interface TextFeature extends Closeable {\n\n /**\n * Get an ID for the feature extractor\n * @return The ID\n */\n String id();\n \n /**\n * Extract features from a feature extractor\n * @param facet The facet to extract features for\n * @return The set of features\n */\n default Feature[] extractFeatures(LensResult facet) {\n return extractFeatures(facet, NaiscListener.DEFAULT);\n }\n \n /**\n * Extract features from a feature extractor\n * @param facet The facet to extract features for\n * @param log The listener\n * @return The set of features\n */\n Feature[] extractFeatures(LensResult facet, NaiscListener log);\n\n /**\n * Get the tags that this feature extractor accepts or null for all\n * @return The set of features accepted or null for all\n */\n Set<String> tags();\n}", "Feature createFeature();", "public MappedFeatureTypeReference( QualifiedName featureTypeName ) {\n this.featureTypeName = featureTypeName;\n }", "public IndexesImpl indexes() {\n return this.indexes;\n }", "public IndexersImpl indexers() {\n return this.indexers;\n }", "public interface BoostingIndexer {\r\n\t/**\r\n\t * Add a new {@link Document} to the Index or update an existing one.<br> \r\n\t * When adding a document, its dynamic boosts values must be set. Specifying the values is accomplished by\r\n\t * passing the dynamicBoosts parameter with a Map from the boost index (zero based) to the boost value (a <code>double</code>).\r\n\t * In this map, no index can be larger than the number of available boosts the {@link IndexEngine}'s {@link Scorer} has, minus one (since it is zero based).\r\n\t * The value for any available boost index not specified in the map is defaulted to zero. \r\n\t * \r\n\t * @param docId external (customer) identifier of the document to add\r\n\t * @param document the {@link Document} to add\r\n\t * @param timestampBoost a <code>float</code> representing the time of the document (the younger the document, the larger the boost should be)\r\n\t * @param dynamicBoosts a Map from the boost index (zero based) to the boost value (a <code>double</code>).\r\n\t * @throws {@link IllegalArgumentException} if an invalid index is passed for a boost \r\n\t */\r\n\tpublic void add(String docId, Document document, int timestampBoost, Map<Integer, Double> dynamicBoosts);\r\n\r\n\t/**\r\n\t * Remove a document from the index.\r\n\t * \r\n\t * @param docId external (customer) identifier of the document to remove\r\n\t */\r\n\tpublic void del(String docId);\r\n\t\r\n\t/**\r\n\t * Update the special boost for the timestamp\r\n\t * \r\n\t * @param docId external (customer) identifier of the document\r\n\t * @param timestampBoost a <code>float</code> representing the time of the document (the younger the document, the larger the boost should be)\r\n\t */\r\n\tpublic void updateTimestamp(String docId, int timestampBoost);\r\n\t\r\n\t/**\r\n\t * Update one or more of the dynamic boosts values.\r\n\t * \r\n\t * @param docId external (customer) identifier of the document\r\n\t * @param updatedBoosts a Map from the boost index (zero based) to the boost value (a <code>double</code>). No index can be larger than the available boosts the {@link IndexEngine}'s {@link Scorer} has, minus one (since it is zero based)\r\n\t * @throws {@link IllegalArgumentException} if an invalid index is passed for a boost \r\n\t */\r\n\tpublic void updateBoosts(String docId, Map<Integer, Double> updatedBoosts);\r\n\r\n public void updateCategories(String docId, Map<String, String> categories);\r\n\t/**\r\n\t * Promote a document to be the first result for a specific query.\r\n\t * \r\n\t * @param docId external (customer) identifier of the document\r\n\t * @param query the exact query the document must be promoted to the first result for\r\n\t */\r\n public void promoteResult(String docId, String query);\r\n\r\n /**\r\n * Dumps the current state to disk.\r\n */\r\n public void dump() throws IOException;\r\n\r\n public void addScoreFunction(int functionIndex, String definition) throws Exception;\r\n\r\n public void removeScoreFunction(int functionIndex);\r\n\r\n public Map<Integer,String> listScoreFunctions();\r\n \r\n public Map<String, String> getStats();\r\n\r\n}", "StorableIndexInfo getIndexInfo();", "LuceneMemoryIndex createLuceneMemoryIndex();", "public TinySearchEngine()\n {\n this.myIndex = new HashMap();\n this.documentData = new HashMap();\n this.sorted = false;\n this.sort = new Sort();\n this.search = new BinarySearch();\n }", "protected HashMap<String, BPTree<Double, FoodItem>> getIndexes(){\n \treturn this.indexes;\n }", "public interface IVectorLayerFilter {\n\n public boolean accept(IFeature feature,\n int iIndex);\n\n\n}", "public interface IndexMetadata extends Freezable<IndexMetadata> {\n\t\n\tAnnotatedFields annotatedFields();\n\t\n\tdefault AnnotatedField mainAnnotatedField() {\n\t return annotatedFields().main();\n\t}\n\t\n default AnnotatedField annotatedField(String name) {\n return annotatedFields().get(name);\n }\n \n\tMetadataFields metadataFields();\n\t\n\tdefault MetadataField metadataField(String name) {\n\t return metadataFields().get(name);\n\t}\n\n\t/**\n\t * Get the display name for the index.\n\t *\n\t * If no display name was specified, returns the name of the index directory.\n\t *\n\t * @return the display name\n\t */\n\tString displayName();\n\n\t/**\n\t * Get a description of the index, if specified\n\t * @return the description\n\t */\n\tString description();\n\n\t/**\n\t * Is the content freely viewable by all users, or is it restricted?\n\t * @return true if the full content may be retrieved by anyone\n\t */\n\tboolean contentViewable();\n\n /**\n * What's the text direction of this corpus?\n * @return text direction\n */\n\tTextDirection textDirection();\n\n\t/**\n\t * What format(s) is/are the documents in?\n\t *\n\t * This is in the form of a format identifier as understood\n\t * by the DocumentFormats class (either an abbreviation or a\n\t * (qualified) class name).\n\t *\n\t * @return the document format(s)\n\t */\n\tString documentFormat();\n\n\t/**\n\t * What version of the index format is this?\n\t * @return the index format version\n\t */\n\tString indexFormat();\n\n\t/**\n\t * When was this index created?\n\t * @return date/time\n\t */\n\tString timeCreated();\n\n\t/**\n\t * When was this index last modified?\n\t * @return date/time\n\t */\n\tString timeModified();\n\n\t/**\n\t * When was the BlackLab.jar used for indexing built?\n\t * @return date/time\n\t */\n\tString indexBlackLabBuildTime();\n\n\t/**\n\t * When was the BlackLab.jar used for indexing built?\n\t * @return date/time stamp\n\t */\n\tString indexBlackLabVersion();\n\n\t/**\n\t * How many tokens are in the index?\n\t * @return number of tokens\n\t */\n\tlong tokenCount();\n\n\t/**\n\t * Is this a new, empty index?\n\t *\n\t * An empty index is one that doesn't have a main contents field yet,\n\t * or has a main contents field but no indexed tokens yet.\n\t *\n\t * @return true if it is, false if not.\n\t */\n\tboolean isNewIndex();\n\n default boolean subannotationsStoredWithParent() {\n return false;\n }\n\t\n}", "org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);", "public DatasetIndex(Dataset data){\n\t\tthis();\n\t\tfor(Iterator<Example> i=data.iterator();i.hasNext();){\n\t\t\taddExample(i.next());\n\t\t}\n\t}", "public interface IndexDocsInES {\n\n void indexDocs(Client client, String index_name, String type_name, List<Pair> docs);\n}", "public SingleElasticIndexCsdlEdmProvider(MappingMetaDataProvider metaDataProvider,\r\n String index) {\r\n super(metaDataProvider);\r\n this.index = index;\r\n }", "public FeatureCollection() {\n//\t\tif (featureTypes!=null) {\n//\t\t\tavailableFeatureTypes = featureTypes;\n//\t\t}\n\t}", "public interface IExchangeDataIndexer {\n\t/**\n\t * Get the exchange indexed by this indexer.\n\t * \n\t * @return {@link Exchange}\n\t */\n\tpublic Exchange getExchange();\n\t\n\t/**\n\t * Get the list of indexes managed by this indexer.\n\t * \n\t * @return The list of names of indexes managed by this indexer.\n\t */\n\tpublic List<String> getExchangeIndexes();\n\t\n\t/**\n\t * Updates the list of stocks in this index, by fetching latest data from the source. \n\t * \n\t * @return Updated list of the stocks.\n\t */\n\tList<MarketData> getMarketDataItems(String index);\n\t\n\t/**\n\t * Synchronizes the recently fetched stock data(of a single index) to the data store.\n\t * \n\t * @param exchangeCode Code for this exchange.\n\t * @param items Recently fetched stock data.\n\t */\n\tpublic void syncToDataStore(String exchangeCode, Collection<MarketData> items);\n}", "public abstract void addFeatures(Collection<Double> indices,Predicate pred, Word arg,boolean allWords);", "java.lang.String getFeatures(int index);", "iet.distributed.telemetry.Feature getFeature(int index);", "public ISlideData getFeature(int index);", "public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return IntersectionImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { IntersectionImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }", "public abstract void updateIndex();", "int indexOfFeature(Feature feature);", "protected Vector getFeatureSet()\n {\n // get the superclass' vector\n Vector v = super.getFeatureSet();\n\n // add the features\n\n // return the vector\n return v;\n }", "boolean isIndexed();", "boolean isIndexed();", "public interface Locateable extends GeoElementND {\n\t/**\n\t * @param p\n\t * start point\n\t * @throws CircularDefinitionException\n\t * in case the start point depends on this object\n\t */\n\tpublic void setStartPoint(GeoPointND p) throws CircularDefinitionException;\n\n\t/**\n\t * Unregisters start point\n\t * \n\t * @param p\n\t * start point to remove\n\t */\n\tdefault void removeStartPoint(GeoPointND p) {\n\t\tif (p == getStartPoint()) {\n\t\t\tinitStartPoint(p.copy(), 0);\n\t\t}\n\t}\n\n\t/**\n\t * Returns (first) start point\n\t * \n\t * @return start point\n\t */\n\tpublic GeoPointND getStartPoint();\n\n\t/**\n\t * @param p\n\t * start point\n\t * @param number\n\t * index (GeoImage has three startPoints (i.e. corners))\n\t * @throws CircularDefinitionException\n\t * in case the start point depends on this object\n\t */\n\tpublic void setStartPoint(GeoPointND p, int number)\n\t\t\tthrows CircularDefinitionException;\n\n\tdefault int getStartPointCount() {\n\t\treturn 1;\n\t}\n\n\tdefault GeoElementND getStartPoint(int idx) {\n\t\treturn getStartPoint();\n\t}\n\n\t/**\n\t * Sets the startpoint without performing any checks. This is needed for\n\t * macros.\n\t * \n\t * @param p\n\t * start point\n\t * @param number\n\t * index\n\t */\n\tpublic void initStartPoint(GeoPointND p, int number);\n\n\t/**\n\t * @return true iff the location is absolute\n\t */\n\tpublic boolean hasStaticLocation();\n\n\t/**\n\t * @return true iff object is always fixed\n\t */\n\tpublic boolean isAlwaysFixed();\n\n\t/**\n\t * Use this method to tell the locateable that its startpoint will be set\n\t * soon. (This is needed during XML parsing, as startpoints are processed at\n\t * the end of a construction, @see geogebra.io.MyXMLHandler)\n\t */\n\tdefault void setWaitForStartPoint() {\n\t\t// only relevant for vectors\n\t}\n\n\t/**\n\t * Update that does not change value, but only location\n\t */\n\tpublic void updateLocation();\n\n}", "@Nullable\n public abstract Index getIndex();", "public TokenLocationSearchAnalyzer() {\n foundLocations = new LinkedHashMap<String, List<Integer>>();\n currentTokenLocation = -1;\n }", "@FunctionalInterface\npublic interface IIndexer<T extends IDocument> {\n\tList<T> getDocuments(String query, int limit);\n}", "public Example getExample(Feature f,int i){\n\t\treturn featureIndex(f).get(i);\n\t}", "public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "public Iterator<SimpleFeature> getFeatures() {\n \treturn this.iterator();\n }", "protected void setSpatialIndexes(String prefix, Properties p) {\n\n String listValue = p.getProperty(prefix + ShapeFileListProperty);\n\n if (Debug.debugging(\"shape\")) {\n Debug.output(getName() + \"| list = \\\"\" + listValue + \"\\\"\");\n }\n\n if (listValue == null) {\n Debug.error(\"No property \\\"\" + prefix + ShapeFileListProperty\n + \"\\\" found in application properties.\");\n return;\n }\n\n // Divide up the names ...\n StringTokenizer tokens = new StringTokenizer(listValue, \" \");\n Collection shapeFiles = new Vector();\n while (tokens.hasMoreTokens()) {\n shapeFiles.add(tokens.nextToken());\n }\n\n spatialIndexes = new Vector(shapeFiles.size());\n Iterator list = shapeFiles.iterator();\n\n while (list.hasNext()) {\n String listName = (String) list.next();\n SpatialIndexHandler sih = new SpatialIndexHandler(prefix + listName, p);\n spatialIndexes.add(sih);\n\n if (Debug.debugging(\"shape\")) {\n Debug.output(\"MultiShapeLayer adding: \" + sih);\n }\n }\n }", "public abstract T _withMapperFeatures(int i);", "public abstract int getIndex();", "public int index();", "public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$14, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "public FeatureExtraction() {\n\t}", "public SimpleFeature get(String featureID) {\n\t\treturn idIndex.get(featureID);\n\t}", "public interface RootFeature extends AbstractFeature {\n}", "InstAssignIndex createInstAssignIndex();", "iet.distributed.telemetry.FeatureOrBuilder getFeatureOrBuilder(\n int index);", "interface Feature <T> {\n /**\n * @return original source of data.\n */\n Source source();\n\n /**\n * @return feature's data.\n */\n T data();\n }", "public DefaultFeatureTable() {\n }", "public Set<SimpleFeature> getFeaturesForTile(OSMTile tileIdx) {\n\t\tsynchronized (tileIndex) {\n\t\t\treturn tileIndex.get( tileIdx );\n\t\t}\n\t}", "public interface FeatureService {\n /**\n * 添加\n */\n public Integer addFeature(WebParam map);\n\n /**\n * 根据主键查找\n */\n public WebResultMap getFeatureByKey(WebParam map);\n\n /**\n * 根据主键批量查找\n */\n public List<WebResultMap> getFeaturesByKeys(WebParam map);\n\n /**\n * 根据主键删除\n */\n public Integer deleteByKey(WebParam map);\n\n /**\n * 根据主键批量删除\n */\n public Integer deleteByKeys(WebParam map);\n\n /**\n * 根据主键更新\n */\n public Integer updateFeatureByKey(WebParam map);\n\n /**\n * 分页查询\n */\n public Pagination getFeatureListWithPage(WebParam map);\n\n /**\n * 集合查询\n */\n public List<WebResultMap> getFeatureList(WebParam map);\n\n /**\n * 总条数\n */\n public int getFeatureListCount(WebParam map);\n}", "@Override\n public java.util.List<? extends IndexOrBuilder>\n getIndicesOrBuilderList() {\n return indices_;\n }" ]
[ "0.57329154", "0.572865", "0.5718084", "0.5673546", "0.56674755", "0.5648296", "0.5637287", "0.5558528", "0.5553373", "0.5543959", "0.55435884", "0.55257", "0.5479645", "0.54554164", "0.54255354", "0.53784853", "0.53708935", "0.53669596", "0.5351874", "0.5298498", "0.52951163", "0.52916455", "0.5281379", "0.5273061", "0.52630067", "0.52588236", "0.5254639", "0.5238998", "0.5238998", "0.5196467", "0.5188033", "0.5180971", "0.5180523", "0.51653826", "0.5156672", "0.5147591", "0.5108939", "0.5097147", "0.50935495", "0.5092192", "0.50917155", "0.5083086", "0.5070355", "0.504895", "0.5044502", "0.501377", "0.5007488", "0.49993026", "0.49935198", "0.49918705", "0.49897423", "0.49822262", "0.4975043", "0.49728692", "0.49648958", "0.49637792", "0.4948809", "0.49480435", "0.49445567", "0.49423492", "0.49334136", "0.49334136", "0.4928632", "0.4918981", "0.4916234", "0.49020353", "0.4900051", "0.48959205", "0.48936015", "0.4891878", "0.48847336", "0.4880485", "0.4878943", "0.48657167", "0.48632655", "0.48584804", "0.48584804", "0.4854437", "0.48519513", "0.48281503", "0.4825831", "0.4816057", "0.48096782", "0.48096782", "0.4807095", "0.4806318", "0.4806129", "0.4804859", "0.48002788", "0.47982463", "0.47934118", "0.47852236", "0.47796115", "0.47765315", "0.47738427", "0.47714213", "0.4763653", "0.47520366", "0.47444746", "0.47417486" ]
0.67652506
0
olcay // Jun 25, 2020 /Write a program that asks user for the number of males and the number of females registered in a class. The program should display the percentage of males and females in the class.
public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Enter number of males and females: "); int numOfMales = scan.nextInt(); int numOfFemales = scan.nextInt(); double sumOfClass=numOfMales+numOfFemales; double percentageOfmales = (numOfMales/sumOfClass)*100; double percentageOffemales = (numOfFemales/sumOfClass)*100; System.out.println(percentageOfmales); System.out.println(percentageOffemales); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Scanner scanner= new Scanner(System.in);\n System.out.println(\"enter marks for english\");\n int english=scanner.nextInt();\n System.out.println(\"enter marks for telugu\");\n int telugu=scanner.nextInt();\n System.out.println(\"enter marks for hindi\");\n int hindi=scanner.nextInt();\n System.out.println(\"enter marks for social\");\n int social=scanner.nextInt();\n StudentA studenta= new StudentA(english,telugu,hindi );\n System.out.println(\"percentage of student A is : \"+ studenta.getPercentage());\n StudentB studentb =new StudentB(english,telugu,hindi,social);\n System.out.println(\"percentage of student B is: \"+ studentb.getPercentage());\n }", "public static void main(String[] args) {\n\t\t\n\n\t\tScanner myInput = new Scanner(System.in);\n\t\tString[] name = new String[100];\n\t\tint[] englishPoint = new int[100];\n\t\tint[] mathPiont = new int[100];\n\t\tint count = 0, type, engTotal = 0, mathTotal = 0, sumTotal = 0;\n\t\tfloat engAve = 0, mathAve = 0, classAve = 0;\n\t\t\n\t\tdo {\t\n\t\t\tSystem.out.print(\"이름을 입력하세요 : \");\n\t name[count] = myInput.next();\n\t System.out.print(\"영어점수는 몇점입니까? \");\n\t englishPoint[count] = myInput.nextInt();\n\t System.out.print(\"수학점수는 몇점입니까? \");\n\t mathPiont[count] = myInput.nextInt();\n\t System.out.print(\"추가 입력하시겠습니까? (1.추가 2.종료) : \");\n\t type = myInput.nextInt();\n\t engTotal = engTotal + englishPoint[count];\n\t mathTotal = mathTotal + mathPiont[count];\n\t count++;\n\t\t}while(type == 1);\n\t\t\tSystem.out.printf(\"%s \\t %s \\t %s \\t %s \\t %s\\n\", \"이름\", \"영어\", \"수학\", \"총점\", \"평균\");\t\t\n\t\t\n\t\tfor(int index = 0; index < count; index++) {\n\t\t\tint persnalSum = englishPoint[index] + mathPiont[index];\n\t\t\tfloat personalAverage = persnalSum / 2;\n\t\t\tSystem.out.printf(\"%s \\t %d \\t %d \\t %d \\t %.2f\\n\", name[index], englishPoint[index], mathPiont[index], persnalSum, personalAverage);\n\t\t\tsumTotal = sumTotal + englishPoint[index] + mathPiont[index];\n\t\t\tengAve = engTotal / count;\n\t\t\tmathAve = mathTotal / count;\n\t\t\tclassAve = (engAve + mathAve) / 2;\n\t\t}\n\n\t\tSystem.out.printf(\"%s \\t %d \\t %d \\n\", \"총점\", engTotal, mathTotal);\n\t\tSystem.out.printf(\"%s \\t %.2f \\t %.2f \\t\\t %.2f\\n\", \"학급평균\", engAve, mathAve, classAve);\n\t\t\t\n\t\tmyInput.close();\n\t}", "public static void main(String[] args) {\nScanner input=new Scanner(System.in);\nSystem.out.println(\"Please input the number of datus\");\nint n=input.nextInt();\nString[] name=new String[n];\nint[] data1=new int[n];\nint[] data2=new int[n];\nfor(int i=0;i<n;i++){\n\tname[i]=input.next();\n\tdata1[i]=input.nextInt();\n\tdata2[i]=input.nextInt();\n}\nfor(int i=0;i<n;i++)\nSystem.out.printf(\"|%4s|%4d|%4d|%6.3f|\\n\",name[i],data1[i],data2[i],(float)(data1[i]/data2[i]));\n\t}", "public static void main(String[] args) \r\n\t{\n\tString gender=args[0];\r\n\tint age=Integer.parseInt(args[1]);\r\n\tif(!gender.equals(\"male\")&&!gender.equals(\"female\"))\r\n\tSystem.out.println(\"invalid gender\");\r\n\telse if(age<1||age>=120)\r\n\tSystem.out.println(\"invalid age\");\r\n\telse if(gender.equals(\"female\")&&(age>=1&&age<=58))\r\n\t{\r\n\tSystem.out.println(\"interest==8.2%\");\r\n\t\t}\r\n\telse if(gender.equals(\"female\")&&(age>=59&&age<=120))\r\n\t{\r\n\tSystem.out.println(\"interest==7.6%\");\r\n\t\t}\r\n\telse if(gender.equals(\"male\")&&(age>=1&&age<=60))\r\n\t{\r\n\tSystem.out.println(\"interest==9.2%\");\r\n\t\t}\r\n\telse if(gender.equals(\"male\")&&(age>=61&&age<=120))\r\n\t{\r\n\tSystem.out.println(\"interest==8.3%\");\r\n\t\t\t}\r\n\t\t}", "public static void main(String[] arg) {\n\t\t\n\t\tSystem.out.println(\"Welcome. We're interested in how people are watching movies this year.\");\n\t\tSystem.out.println(\"Thanks for your time. - The WRITERS GUILD OF AMERICA.\");\n\t\tSystem.out.println(\"Please tell us about how you've watched movies in the last month.\");\n\t\t\n\t\tSystem.out.println(\"How many movies have you seen at the cinema?\");\n\t\tint cinemaMovies = TextIO.getlnInt();\n\t\t\n\t\tSystem.out.println(\"How many movies have you seen using a DVD or VHS player?\");\n\t\tint cinemaDvdVhsMovies = TextIO.getlnInt();\n\t\t\n\t\tSystem.out.println(\"How many movies have you seen using a Computer?\");\n\t\tint computerMovies = TextIO.getlnInt();\n\t\t\n\t\tint totalNumber = cinemaMovies + cinemaDvdVhsMovies + computerMovies;\n\t\t\n\t\tSystem.out.println(\"Summary: \" + cinemaMovies + \" Cinema movies, \" + cinemaDvdVhsMovies + \" DVD/VHS movies, \" + computerMovies + \" Computer movies\");\n\t\tSystem.out.println(\"Total: \" + totalNumber + \" movies\");\n\t\t//* Summary: 1 Cinema movies, 101 DVD/VHS movies, 98 Computer movies\n\t\t//Total: 200 movies\n\t\t\n\t\t//Fraction of movies seen at a cinema: 0.50%\n\t\t//Fraction of movies seen outside of a cinema: 99.50%\n\t\t\n\t\tdouble percentageCinema = (cinemaMovies * 100.00f) / totalNumber;\n System.out.print(\"Fraction of movies seen at a cinema: \");\n System.out.printf( \"%.2f\", percentageCinema);\n System.out.println(\"%\" );\n \n\t\tdouble percentageDvdVhs = (cinemaDvdVhsMovies * 100.00f) / totalNumber;\t\t\n double percentageComputer = (computerMovies * 100.00f) / totalNumber;\n double percentageOut = percentageDvdVhs + percentageComputer;\n\t\tSystem.out.print(\"Fraction of movies seen outside of a cinema: \");\n\t\tSystem.out.printf( \"%.2f\", percentageOut);\n\t\tSystem.out.println(\"%\");\n\n\t}", "public static double avgCalculator (String gender, int age, double bmi) {\n double avg = 0;\n\n // AGES: 5 , 6 , 7, 8 , 9 , 10 , 11, 12, 13, 14, 15, 16, 17, 18, 19\n double [] boyBMIavg = {15.3, 15.3, 15.5, 15.8, 16.1, 16.5, 17.0, 17.6, 18.3, 19.1, 19.8, 20.6, 21.2, 21.8, 22.2};\n double [] girlBMIavg = {15.2, 15.3, 15.4, 15.7, 16.1, 16.7, 17.3, 18.1, 18.9, 19.6, 20.3, 20.6, 21.1, 21.3, 21.4};\n \n // C H I L D R E N \n if (age < 19) { \n if (gender.equals(\"male\")) { \n avg = boyBMIavg [age -5]; // the bmi of an average boy based on age is retrieved from the array\n }\n else if (gender.equals(\"female\")) { \n avg = girlBMIavg [age -5]; // the bmi of an average girl based on age is retrieved from the array\n }\n else {\n System.out.println(\"error in gender value\"); // in case the gender value is not 'male' or 'female', sorry nonbinaries\n }\n }\n\n // A D U L T S \n else { \n if (gender.equals(\"male\")) {\n avg = 26.5; // the bmi of an average adult male is 26.5 \n }\n else if (gender.equals(\"female\")) {\n avg = 26.6; // the bmi of an average adult female is 26.6\n }\n else {\n System.out.println(\"error in gender value\"); // in case the gender value is not 'male' or 'female', sorry nonbinaries\n }\n }\n\n System.out.println(\"The average BMI for \" + gender + \"s at the age of \" + age + \" is about \" + avg ); // announces average\n \n //compares user to average\n double diff = 0; // the difference of user vs average is preset to zero\n\n // HIGHER BMI THAN AVERAGE\n if (bmi > avg) {\n diff = bmi - avg; // difference is calculated\n if (diff <= 0.5) { // if they are within .5 of the average, it is considered close enough\n System.out.println(\"Your BMI, \" + String.valueOf(bmi).substring(0, 2) + \", is only a little higher than the average, \" + avg );\n System.out.println(\"You're doing pretty well :)\");\n }\n else { // if the gap is large, it is announced\n System.out.println(\"Your BMI, \" + String.valueOf(bmi).substring(0, 2) + \", is much larger than the average, \" + avg + \", with a difference of \" + String.valueOf(diff).substring(0, 3));\n System.out.println(\"In comparison to the average, you're a little overweight.\");\n }\n }\n\n // LOWER BMI THAN AVERAGE\n else if (bmi < avg) {\n diff = avg - bmi; // difference is calculated\n if (diff <= 0.5) { // if they are within .5 of the average, it is considered close enough\n System.out.println(\"Your BMI, \" + String.valueOf(bmi).substring(0, 2) + \", is only a little lower than the average, \" + avg );\n System.out.println(\"You're doing pretty well :)\");\n }\n else { // if the gap is large, it is announced\n System.out.println(\"Your BMI, \" + String.valueOf(bmi).substring(0, 2) + \", is much smaller than the average, \" + avg + \", with a difference of \" + String.valueOf(diff).substring(0, 3));\n System.out.println(\"In comparison to the average, you're a little underweight.\");\n } \n }\n\n // SAME BMI AS AVERAGE\n else { // if the difference is zero\n System.out.println(\"Your BMI, \" + String.valueOf(bmi).substring(0, 2) + \", is the exact same as the average, \" + avg );\n System.out.println(\"You're doing great :)\");\n }\n return avg;\n }", "public static void main(String[]args){\n\t\tScanner s = new Scanner(System.in);\n\t\tint kor=0,eng=0,math=0,total=0,avg=0;\n\t\tString grade = \"\";\n\t\t\n\t\tSystem.out.print(\"name :\");\n\t\tString name = s.next();\n\t\tSystem.out.print(\"kor :\");\n\t\tkor = s.nextInt();\n\t\tSystem.out.print(\"eng :\");\n\t\teng = s.nextInt();\n\t\tSystem.out.print(\"math :\");\n\t\tmath = s.nextInt();\n\t\t\n\t\ttotal = kor+eng+math;\n\t\tavg = total/3;\n\t\t\n\t\tif(avg>89 && avg<=100){\n\t\t\tgrade = \"A\";\n\t\t}\n\t\telse if(avg>79 && avg<=89){\n\t\t\tgrade = \"B\";\n\t\t}\n\t\telse if(avg>69&& avg<=79){\n\t\t\tgrade = \"C\";\n\t\t}\n\t\telse if(avg>59&& avg<=69){\n\t\t\tgrade = \"D\";\n\t\t}\n\t\telse if(avg>0 && avg<=59){\n\t\t\tgrade = \"E\";\n\t\t}\n\t\telse{\n\t\t\tgrade = \"error\";\n\t\t}\n\t\tSystem.out.print(\"************************************\\n\");\n\t\tSystem.out.print(\" 이름 총점 평균 등급\\n\");\n\t\tSystem.out.print(\"------------------------------------\\n\");\n\t\tSystem.out.print(String.format(\"|%s | %d | %d | %s |\\n\",name,total,avg,grade));\n\t\tSystem.out.print(\"************************************\");\n\t\t//System.out.print(String.format(\"%s:%s\",name,grade));\n\t\t\n\t}", "public static void main(String args[]) {\n\n Scanner scanner = new Scanner (System.in);\n\n //PROMPT user for number of miles\n System.out.println(\"Please enter the number of miles traveled:\");\n double miles = scanner.nextDouble();\n\n //PROMPT user to enter the number of gallons used\n System.out.println(\"Please enter the number of gallons used:\");\n double gallons = scanner.nextInt();\n\n double mileage = miles/gallons;\n\n //PRINT mileage\n System.out.println(\"The mileage for this vehicle is \" + mileage + \".\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public double getFemalePercentage() {\n double numberOfFemales = 0;\n int population = this.getPopulation();\n Iterator<Guppy> it = guppiesInPool.iterator();\n\n while (it.hasNext()) {\n Guppy currentGuppy = it.next();\n if (currentGuppy.getIsFemale()) {\n numberOfFemales++;\n }\n }\n return (population == 0) ? population : numberOfFemales / population;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n //Reads ints from user\n int class1 = scanner.nextInt();\n int class2 = scanner.nextInt();\n int class3 = scanner.nextInt();\n\n //Your code goes here\n class1 = class1/2 + class1%2;\n class2 = class2/2 + class2%2;\n class3 = class3/2 + class3%2;\n int total = class1 + class2 + class3;\n System.out.print(total);\n\n // closing the scanner object\n scanner.close();\n }", "public void determineClassAvg(){//determineClassAvg body start\n\t\t\n\t\t//declaring variables\n\t\tint total \t\t\t= 0;\n\t\tint counter \t\t= 0;\n\t\tint grade;\n\t\tdouble avg;\n\t\t\n\t\t//Reference variables\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.printf(\"Enter First Grade or Enter -1 to quit: \");\n\t\tgrade = input.nextInt();\n\t\t\n\t\twhile(grade != -1){\n\t\t\ttotal \t\t= grade + total;\n\t\t\tcounter\t\t= counter + 1;\n\t\t\tSystem.out.printf(\"Enter Next Grade or enter -1 to quite: \");\n\t\t\tgrade \t\t= input.nextInt();\t\t\t\n\t\t}\n\t\t\n\t\tif(counter != 0){\n\t\t\tavg \t\t= (double) total/counter;\n\t\t\tSystem.out.printf(\"total number of student %d \\n\",counter);\n\t\t\tSystem.out.printf(\"Total Grade %d \\n\", total);\n\t\t\tSystem.out.printf(\"avrage = %.2f \\n\",avg);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.printf(\"No grade were entered\");\n\t\t}\n\t\tinput.close();\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.print(\"請輸入性別和身高:\");\n\t\tString sex=sc.next();\n\t\tfloat high=sc.nextInt();\n\t\tswitch (sex){\t\n\t\tcase \"男\":\n\t\t\tSystem.out.print(\"男:\"+((high-170)*0.6+62));\n\t\t\tbreak;\n\t\tcase \"女\":\n\t\t\tSystem.out.print(\"女:\"+((high-158)*0.5+52));\n\t\t\tbreak;\n\t}\n\n}", "public static void main(String[] args) {\n\n Scanner s = new Scanner(System.in);\n System.out.println(\"Provide a grade for Physics:\");\n int P = s.nextInt();\n System.out.println(\"Provide a grade for Chemistry:\");\n int C = s.nextInt();\n System.out.println(\"Provide a grade for Biology:\");\n int B = s.nextInt();\n System.out.println(\"Provide a grade for Mathematics:\");\n int M = s.nextInt();\n System.out.println(\"Provide a grade for Computer:\");\n int Com = s.nextInt();\n\n int percentage = (P+C+B+M+Com)/5;\nString grade = \"\";\n\n if (percentage>= 90) {\n grade = \"A\";\n }else if (percentage>= 80) {\n grade = \"B\";\n }else if (percentage>= 70) {\n grade = \"C\";\n }else if (percentage>= 60) {\n grade = \"D\";\n }else if (percentage>= 40) {\n grade = \"E\";\n }else if (percentage < 40) {\n grade = \"F\";\n }\n System.out.println(\"Percentage: \" +percentage);\n System.out.println(\"Grade is : \"+grade);\n\n\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the number of units consumed: \");\n\t\tint units = input.nextInt();\n\t\tdouble amount;\n\t\tdouble totalamt = 0;\n\t\tif (units < 0 || units == 0) {\n\t\t\tSystem.out.println(\"Error! Units consumed should be more than 0\");\n\t\t} else if (units > 0 && units <= 100) {\n\t\t\tamount = 1;\n\t\t\ttotalamt = amount * units;\n\t\t} else if (units > 100 && units <= 300) {\n\t\t\tamount = 0.75;\n\t\t\ttotalamt = 100 * 1 + (amount * (units - 100));\n\t\t} else if (units > 300 && units <= 500) {\n\t\t\tamount = 0.50;\n\t\t\ttotalamt = 100 * 1 + 200 * 0.75 + (amount * (units - 300));\n\t\t} else {\n\t\t\tamount = 0.25;\n\t\t\ttotalamt = 100 * 1 + 200 * 0.75 + 200 * 0.50\n\t\t\t\t\t+ (amount * (units - 500));\n\t\t}\n\n\t\tSystem.out.println(\"Your monthly bill is: $\" + totalamt);\n\t}", "public static void main(String[] args) {\n Scanner entrada = new Scanner(System.in);\n System.out.println(\" Vamos calucular estoque medio da peca! \");\n System.out.println(\" Insira nome da peca : \");\n String peca = entrada.nextLine();\n System.out.println(\" Qual quantidade minima da peca? \");\n double qtdminima = entrada.nextDouble();\n System.out.println(\" Por ultimo qual quantidade maxima? \");\n double qtdmaxima = entrada.nextDouble();\n\n double estoquemedio = (qtdminima+qtdmaxima)/2;\n\n System.out.println(\"O estoque medio da peca \"+ peca +\" e de \"+estoquemedio);\n\n entrada.close();\n }", "public static void main( String [] args )\r\n {\n \r\n \r\n Scanner scan = new Scanner( System.in );\r\n \r\n System.out.println( \"Enter your first name here > \" );\r\n String firstName = scan.next();\r\n System.out.println( \"Hello \" + firstName + \", how are you doing today?\" );\r\n int firstNameLength = firstName.length();\r\n System.out.println( \"By the way, your name consists of \" + firstNameLength + \" letters.\" );\r\n\r\n \r\n //*****\r\n // 3. Print an empty line\r\n \r\n \r\n System.out.println();\r\n \r\n \r\n //*****\r\n // 4. a. Using previously created Scanner object prompt the user for the year (s)he was born.\r\n // b. Calculate and print the age the user will be this year.\r\n // c. Declare a constant for average life expectancy,\r\n // set its value to 78.74\r\n // d. Print a message that tells the user the percentage\r\n // of their expected life they've lived.\r\n // Use the DecimalFormat class to format the percentage\r\n DecimalFormat percentPattern = new DecimalFormat( \"#0.0%\" );\r\n \r\n System.out.println( \"I know this is a bit rude, but what year were you born? > \" );\r\n int year = scan.nextInt();\r\n final int CURRENT_YEAR = 2015;\r\n int age = CURRENT_YEAR - year;\r\n final double LIFE_EXPECTANCY = 78.74;\r\n double lifeExpectancy = age/LIFE_EXPECTANCY;\r\n System.out.println( \"Based on your birth year you are \" + age + \" years old.\"\r\n + \"\\n Also your life expectancy is \" + percentPattern.format( lifeExpectancy ) );\r\n \r\n \r\n //*****\r\n // 5. a. Create a Random object\r\n // and generate a random integer between 1 and 20 inclusive\r\n // b. Using previously created Scanner object prompt the user for a guess.\r\n // c. Print a message that tells the user the number\r\n // and how far from the number the guess was (hint: use Math.abs)\r\n Random random = new Random();\r\n \r\n int ranRoll = random.nextInt( 20 ) + 1;\r\n System.out.println( \"\\nLet's play a game, guess a number between 1 and 20 > \");\r\n int guess = scan.nextInt( );\r\n int far = Math.abs( ranRoll - guess );\r\n System.out.println( \"The number you guessed was: \" + guess + \", and you were \"\r\n + far + \" away from the random number.\" );\r\n }", "public static void main(String[] args) {\n\t\tint pencils = 534;\n\t\tint students = 30;\n\t\t\n\t\t//학생 한 명이 가지는 연필 수\n\t\tString pencilsPerStudent = (pencils / students + \"개\");\n\t\tSystem.out.println(pencilsPerStudent);\n\t\t\n\t\t//남은 연필 수\n\t\tString pencilsLeft = (pencils % students + \"개\");\n\t\t// 1) 나머지 구하기 연산 (% --> mod)\n\t\t// 2) 전체연필 - (학생한명이 가지는 연필수*학생수)\n\t\tSystem.out.println(pencilsLeft);\n\t\t\n\t\t\n\t}", "public static void main(String[] args){\n int emp_id;\n String emp_name;\n float basic_salary,HRA ,DA,TA,PF,Gross;\n\n Scanner scanner = new Scanner(System.in);\n emp_id = scanner.nextInt();\n System.out.println(\"Input employee id : \");\n\n emp_name = scanner.next();\n System.out.println(\"Input employee name: \");\n\n basic_salary = scanner.nextFloat();\n System.out.println(\"Input employee basic salary\");\n HRA = (basic_salary*10)/100;\n DA = (basic_salary*8)/100;\n TA = (basic_salary*9)/100;\n PF = (basic_salary*20)/100;\n Gross = (basic_salary + HRA + TA + DA - PF);\n\n System.out.println(\"HRA 10% of basic salary:\" +HRA);\n System.out.println(\"DA 8% of basic salary:\" +DA);\n System.out.println(\"TA 9% of basic salary:\" +TA);\n System.out.println(\"PF 20% of basic salary:\" +PF);\n System.out.println(\"Gross basic salary + HRA + DA + TA - PF :\" + Gross);\n\n\n }", "public static void main(String[] args) {\n int work=6*5*17;\n System.out.println(work);\n\n // Print the percentage of the coding hours in the semester if the average\n // work hours weekly is 52\n float avrage=52;\n float all =17*24*7;\n float parcantage = (52*17)/all*100;\n System.out.println(parcantage+\"%\");\n\n\n\n }", "public static void main(String[]args) {\n\t\tScanner hi = new Scanner(System.in);\r\n\t\tString oof = hi.nextLine();\r\n\t\tSystem.out.println(oof);\r\n\t\t\r\n\t\t//Set the max number of grades input\r\n\t\tint numGrades = 3;\r\n\t\tint total = 0; int gradeCounter = 1;\r\n\t\twhile(gradeCounter <= numGrades) {\r\n\t\t\tSystem.out.println(\"Enter grades: \");\r\n\t\t\tScanner in = new Scanner(System.in);\r\n\t\t\tgradeCounter = gradeCounter + 1;\r\n\t\t\tint grade = in.nextInt();\r\n\t\t\ttotal = total + grade;\r\n\t\t}\r\n\t\tint average = total/numGrades;\r\n\t\tSystem.out.printf(\"Class average: %d%n\", average);\r\n\t\tdouble averageDouble = total / numGrades;\r\n\t\tSystem.out.printf(\"Class average: %f%n\", averageDouble);\r\n\t}", "private void calculateEarnings()\n {\n // get user input\n int items = Integer.parseInt( itemsSoldJTextField.getText() );\n double price = Double.parseDouble( priceJTextField.getText() );\n Integer integerObject = \n ( Integer ) commissionJSpinner.getValue();\n int commissionRate = integerObject.intValue();\n \n // calculate total sales and earnings\n double sales = items * price;\n double earnings = ( sales * commissionRate ) / 100;\n \n // display the results\n DecimalFormat dollars = new DecimalFormat( \"$0.00\" );\n grossSalesJTextField.setText( dollars.format( sales ) );\n earningsJTextField.setText( dollars.format( earnings ) );\n\n }", "public static void main(String[] args) {\n\n System.out.print(\"Input an annual interest rate: \");\n float annualInterestRate = getNumber();\n \n System.out.print(\"Input a starting principal: \");\n float principal = getNumber();\n \n System.out.print(\"Input total years in fund: \");\n float yearsInFund = getNumber();\n \n System.out.print(\"Quarterly, monthly or daily? \");\n String answer = getInput();\n \n System.out.println(\"\");\n \n \n \n float currentBalance = principal;\n int year = 2017;\n float quarterlyInterestMultiplier = (1 + (annualInterestRate/4) /100);\n System.out.println(\"q\" + quarterlyInterestMultiplier);\n float monthlyInterestMultiplier = (1 + (annualInterestRate/12) /100);\n System.out.println(\"q\" + monthlyInterestMultiplier);\n float dailyInterestMultiplier = (1 + (annualInterestRate/365) /100);\n System.out.println(\"q\" + dailyInterestMultiplier);\n // System.out.println(monthlyInterestMultiplier);\n \n \n for (int i = 0; i < yearsInFund; i++) {\n \n if (answer.equals(\"quarterly\")) {\n float pastBalance = currentBalance;\n System.out.println(\"The current year is: \" + year);\n System.out.println(\"Current principal is: \" + currentBalance);\n for (int j = 0; j < 4; j++) {\n currentBalance *= quarterlyInterestMultiplier;\n }\n System.out.println(\"Total anticipated interest is: \" + (currentBalance - pastBalance));\n System.out.println(\"Expected principal at the end of \" + year + \" is: \" + currentBalance);\n System.out.println(\"\");\n year++;\n } else if (answer.equals(\"monthly\")) {\n for (int k = 0; k < 12; k++) {\n switch (k) {\n case 0:\n System.out.println(\"The current month is January \" + year);\n break;\n case 1:\n System.out.println(\"The current month is February \" + year);\n break;\n case 2:\n System.out.println(\"The current month is March \" + year);\n break;\n case 3:\n System.out.println(\"The current month is April \" + year);\n break;\n case 4:\n System.out.println(\"The current month is May \" + year);\n break;\n case 5:\n System.out.println(\"The current month is June \" + year);\n break;\n case 6:\n System.out.println(\"The current month is July \" + year);\n break;\n case 7:\n System.out.println(\"The current month is August \" + year);\n break;\n case 8:\n System.out.println(\"The current month is September \" + year);\n break;\n case 9:\n System.out.println(\"The current month is October \" + year);\n break;\n case 10:\n System.out.println(\"The current month is November \" + year);\n break;\n case 11:\n System.out.println(\"The current month is December \" + year);\n break;\n default:\n }\n float pastBalance = currentBalance;\n System.out.println(\"The current principal is: \" + currentBalance);\n currentBalance *= monthlyInterestMultiplier;\n System.out.println(\"Total anticipated interest is: \" + (currentBalance - pastBalance));\n System.out.println(\"Expected principal at the end of this month is: \" + currentBalance);\n System.out.println(\"\");\n }\n year++;\n } else if (answer.equals(\"daily\")) {\n for (int l = 0; l < 365; l++) {\n System.out.println(\"Today is day \" + (l+1) + \", \" + year);\n float pastBalance = currentBalance;\n System.out.println(\"The current principal is: \" + currentBalance);\n currentBalance *= dailyInterestMultiplier;\n System.out.println(\"Total anticipated interest by the end of day is: \" + (currentBalance - pastBalance));\n System.out.println(\"Expected principal at the end of the day is: \" + currentBalance);\n System.out.println(\"\");\n }\n year++;\n }\n \n }\n \n System.out.println(currentBalance);\n \n }", "public static void main(String[] args) {\nString name= \"이말자\";\n\nint korean= 90;\nint english= 100;\nint math= 90;\n\ndouble sum= korean+english+math;\ndouble avg= sum/3;\n\nString grade;\n\n\tif(avg >= 90) { \n\t\tgrade =\"A\";\n\t}else if(avg >= 80){\n\t\tgrade =\"B\";\n\t}else if(avg >= 70){\n\t\tgrade= \"C\";\n\t}else if(avg >= 60){\n\t\tgrade=\"D\";\n\t}else {\n\t\tgrade=\"F\";\n\t}\n\t\tSystem.out.println(\"이름 국어 영어 수학 총점 평균 등급 \");\n\t\tSystem.out.printf(\"%s %d %d %d %.0f %.2f %s \\n\",\n\t\t\t\t name, korean,english,math,sum,avg,grade);\n\t\t\n\t\t\n\t}", "public static double getGenderAvgWage(String g) throws Exception\r\n\t{\r\n\t\tFile file=new File(\"Data/Peopledetails.txt\");\r\n\t\tfs=new Scanner(file);\r\n\t\tfs.useDelimiter(\",|\\\\r\\n\");\r\n\t\t\t\r\n\t\ttotalWage=0;\r\n\t\tcount=0;\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\twhile (fs.hasNext())\r\n\t\t{\r\n\t\t\tid=fs.nextInt();\r\n\t\t\tfname=fs.next();\r\n\t\t\tsname=fs.next();\r\n\t\t\tgen=fs.next();\r\n\t\t\thrate=fs.nextDouble();\r\n\t\t\thrs=fs.nextDouble();\r\n\t\t\t\r\n\t\t\tgross=hrs*hrate;\r\n\t\t\t\r\n\t\t\t//Calculates the overtime\r\n\t\t\tif(hrs>40)\r\n\t\t\t{\r\n\t\t\t\totime=hrs-40;\r\n\t\t\t\tstandard=40;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\totime=0;\r\n\t\t\t\tstandard=hrs;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgross=(standard*hrate+otime*hrate*1.5);\r\n\t\t\t\r\n\t\t\t/*if the gender is male, it takes the gross pay of that person, adds it to the total for male wages\r\n\t\t\tand also adds 1 to the male counter.*/\r\n\t\t\t//otherwise, adds it to the total for female wages and 1 to female counter.\r\n\t\t\tif(gen.equals(g))\r\n\t\t\t{\r\n\t\t\t\ttotalWage=gross+totalWage;\r\n\t\t\t\tcount+=1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfs.close();\r\n\t\treturn totalWage/count;\r\n\t}", "public static void promedio(int [] Grado1, int NNEstudent){\nint aux=0;\nfor(int i=0;i<NNEstudent;i++){\naux=Grado1[i]+aux;}\nint promedio;\npromedio=aux/NNEstudent;\nSystem.out.println(aux);\nSystem.out.println(\"el promedio de las edades es:\");\nSystem.out.println(promedio);\n}", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan;\n\t\tdouble salesAmount;\n\t\tdouble commission;\n\t\t\n\t\tscan= new Scanner(System.in);\n\t\tSystem.out.println(\" please enter your sales amount\");\n\t\tsalesAmount=scan.nextDouble();\n\t\t\n\t\tif(salesAmount>=1 && salesAmount<100) {\n\t\t\t//lets give user 10% commision of a sale\n\t\t\tcommission=salesAmount*0.1;\n\t\t}else if(salesAmount>=100 && salesAmount <200) {\n\t\t\t//lets give user 20% commision of a sale\n\t\t\tcommission=salesAmount*0.2;\n\t\t}else if(salesAmount>=200 && salesAmount<500) {\n\t\t\t// lets give user 30% commision of a sale\n\t\t\tcommission=salesAmount*0.3;\n\t\t}else if(salesAmount>=500) {\n\t\t\t//lets give user 50% commision of a sale\n\t\t\tcommission=salesAmount*0.5;\n\t\t}else {\n\t\t\tcommission=0;\n\t\t}\n\t\tSystem.out.println(\"Based on the sales your commision is \"+commission);\n\t}", "public static void main(String[] args)\r\n\t{\n\t\tfloat lbs, heightin, kg, heightm, BMI=0;\r\n\t\tint count;\r\n\t\t\r\n\t\tSystem.out.println(\"Metric or Imperial? \\n 1. Imperial\t2. Metric\");\r\n\t\tScanner scnr = new Scanner(System.in);\r\n\t\tcount = scnr.nextInt();\r\n\t\t\r\n\t\twhile(count != 1 || count != 2)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Metric or Imperial? \\n 1. Imperial\t2. Metric\");\r\n\t\t\tcount = scnr.nextInt();\r\n\t\t\tif(count == 1 || count == 2)\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\tif(count == 1)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter weight in pounds: \");\r\n\t\t\tlbs = scnr.nextFloat();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter height in inches: \");\r\n\t\t\theightin = scnr.nextFloat();\r\n\t\t\t\r\n\t\t\tBMI = 703*lbs / (heightin*heightin);\r\n\t\t}\r\n\t\t\r\n\t\telse if(count == 2)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter weight in kilograms: \");\r\n\t\t\tkg = scnr.nextFloat();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Enter height in meters: \");\r\n\t\t\theightm = scnr.nextFloat();\r\n\t\t\t\r\n\t\t\tscnr.close();\t\t\t\r\n\t\t\tBMI = kg / (heightm*heightm);\r\n\t\t}\r\n\t\t\r\n\t\t//Display BMI value for user\r\n\t\tSystem.out.println(\"Your BMI is: \" + BMI);\r\n\t\t\r\n\t\tif(BMI < 18.5)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"A BMI less than 18.5 indicates that you are underweight.\");\r\n\t\t}\r\n\t\telse if(BMI <= 24.9)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"A BMI between 18.5 and 24.9 is a healthy BMI\");\r\n\t\t}\r\n\t\telse if(BMI <= 29.9)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"A BMI between 25 and 29.9 indicates that you are overweight\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//Last case does not need an if statement\r\n\t\t\tSystem.out.println(\"A BMI greater than 30 indicates that you are obese.\");\r\n\t\t}\r\n\t\treturn;\r\n\t}", "public static void main(String[] args){\n int studentId = promptUserForInt(\"Please enter your Student EMPLID (0 - 999999): \");\n double quiz1Percent = promptUserForDouble(\"Please enter your quiz1 percentage score(0.0 - 100.0): \");\n double quiz2Percent = promptUserForDouble(\"Please enter your quiz2 percentage score(0.0 - 100.0): \");\n double quiz3Percent = promptUserForDouble(\"Please enter your quiz3 percentage score(0.0 - 100.0): \");\n int ageInMonths = promptUserForInt(\"Please enter your age in months (0 - 1440): \");\n double tempC = promptUserForDouble(\"Please enter the current temperature in degrees Celsius: \");\n\n // Output results\n System.out.println(\"\\n\");\n System.out.println(\"*** Thank You ***\");\n System.out.println(\"Student EMPLID: \" + studentId);\n System.out.println(\"Quiz 1 Score: \" + quiz1Percent);\n System.out.println(\"Quiz 2 Score: \" + quiz2Percent);\n System.out.println(\"Quiz 3 Score: \" + quiz3Percent);\n System.out.println(\"Average Quiz Score: \" + averageQuizScore(quiz1Percent, quiz2Percent, quiz3Percent));\n System.out.println(\"Age in Months: \" + ageInMonths);\n System.out.println(\"Age in years: \" + convertAgeToYears(ageInMonths));\n System.out.println(\"Temperature in Celsius \" + tempC + \"\\u00b0\");\n System.out.println(\"Temperature in Fahrenheit \" + convertCelcToFahr(tempC) + \"\\u00b0\");\n\n }", "public static void main(String[] args) {\n Scanner myScanner = new Scanner(System.in); //allows to prompt user for input\n System.out.print(\"Enter the original cost of the check in the form xx.xx \");\n //using method within Scanner class\n double checkCost = myScanner.nextDouble();\n System.out.print(\"Enter the percentage tip that you wish to pay as\"+\n \"a whole number (in the form xx): \" ); \n double tipPercent = myScanner.nextDouble(); //promt user to enter tip perecentage\n tipPercent /= 100; //We want to convert the percentage into a decimal value\n System.out.print(\"Enter the number of people who went out to dinner: \"); \n int numPeople = myScanner.nextInt(); //promt user to enter number of people\n double totalCost; \n double costPerPerson;\n int dollars, //whole dollar amount of cost \n dimes, pennies; //for storing digits\n //to the right of the decimal point \n //for the cost$ \n totalCost = checkCost * (1 + tipPercent);\n costPerPerson = totalCost / numPeople;\n //get the whole amount, dropping decimal fraction\n dollars=(int)costPerPerson;\n //get dimes amount, e.g., \n // (int)(6.73 * 10) % 10 -> 67 % 10 -> 7\n // where the % (mod) operator returns the remainder\n // after the division: 583%100 -> 83, 27%5 -> 2 \n dimes=(int)(costPerPerson * 10) % 10;\n pennies=(int)(costPerPerson / 100);\n System.out.println(\"Each person in the group owes $\" + dollars + \".\" + dimes + pennies);\n \n \n }", "public int numberOfFemale(){\n int female=0;\n for (int i=0;i<kangaroosInPoint.size();i++){\n if(kangaroosInPoint.get(i).getGender()=='F'){\n female++;\n } \n }\n return female;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint salary = sc.nextInt();\n\t\tint days = sc.nextInt();\n\t\tif(salary < 0 || salary > 10000) {\n\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\treturn;\n\t\t}if(days < 0 || days > 31 || days == 0) {\n\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\treturn;\n\t\t}\n\t System.out.format(\"%.2f\",calculateGross(salary, days));\n\t\tsc.close();\n\t}", "public static void main(String[] args) {\n float nuevo=0,suma=0,prom=0;\n System.out.println(\"programa para sacar promedio\");\n Scanner n = new Scanner(System.in);\n System.out.println(\"ingrese la contidad de nota\");\n int notas =n.nextInt();\n for (int i = 1; i <= notas; i++){\n Scanner o = new Scanner(System.in);\n System.out.println(\"ingrese la nota obtenida \" + \"{\"+i+\"}:\");\n nuevo = o.nextFloat();\n suma= suma+nuevo;\n prom= suma/notas;\n }\n System.out.println(\"la suma es: \" +suma);\n System.out.println(\"el promedio es: \" +prom);\n }", "public static void main(String[] args) {\n\n int div, num1 = 50, num2 = 3;\n div = num1/num2;\n System.out.println(\"Total \" + div );\n\n }", "public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader (\n new InputStreamReader(\n System.in\n )\n );\n\n int centuries = Integer.parseInt(reader.readLine());\n\n System.out.println(\n String.format(\n \"%d centuries = %d years = %s days = %s hours = %s minutes\",\n centuries,\n centuries * 100,\n Math.round(centuries * 100 * 365.2422),\n Math.round(centuries * 100 * 365.2422 * 24),\n Math.round(centuries * 100 * 365.2422 * 24 * 60)\n )\n );\n }", "public static void main(String[] args) {\n\n int offerCnt = 3 ;\n\n int corollaMileage ;\n corollaMileage = 5000;\n\n int TVsize = 67;\n System.out.println(TVsize);\n\n\n System.out.println(offerCnt);\n System.out.println( corollaMileage );\n\n\n // name your favorite number\n // name your classmate count\n\n\n int my$FavoriteNumber = 4;\n int myClassmate_Count =270;\n\n System.out.println(my$FavoriteNumber );\n System.out.println(myClassmate_Count );\n\n\n int my$FolderCount = 6;\n my$FolderCount = 10;\n my$FolderCount = 100; // the last value win\n\n System.out.println(my$FolderCount); // poluchitsya 100\n\n\n\n\n }", "static void diviser() throws IOException {\n\t Scanner clavier = new Scanner(System.in);\n\tdouble nb1, nb2, resultat;\n\tnb1 = lireNombreEntier();\n\tnb2 = lireNombreEntier();\n\tif (nb2 != 0) {\n\tresultat = nb1 / nb2;\n\tSystem.out.println(\"\\n\\t\" + nb1 + \" / \" + nb2 + \" = \" +\n\tresultat);\n\t} else\n\tSystem.out.println(\"\\n\\t le nombre 2 est nul, devision par 0 est impossible \");\n\t}", "private static void estadisticaClase() {\n int numeroAlumnos;\n int aprobados = 0, suspensos = 0; // definición e instanciación de varias a la vez\n int suficentes = 0, bienes = 0, notables = 0, sobresalientes = 0;\n float totalNotas = 0;\n float media;\n Scanner in = new Scanner(System.in);\n\n // Salismos del bucle sólo si nos introduce un número positivo\n do {\n System.out.println(\"Introduzca el número de alumnos/as: \");\n numeroAlumnos = in.nextInt();\n } while (numeroAlumnos <= 0);\n\n // Como sabemos el número de alumnos es un bucle definido\n for (int i = 1; i <= numeroAlumnos; i++) {\n float nota = 0;\n\n // nota solo existe dentro de este for, por eso la definimos aquí.\n do {\n System.out.println(\"Nota del alumno \" + i + \" [0-10]: \");\n nota = in.nextFloat();\n } while (nota < 0 || nota > 10);\n\n // Sumamos el total de notas\n totalNotas += nota;\n\n if (nota < 5) {\n suspensos++;\n } else if (nota >= 5 && nota < 6) {\n aprobados++;\n suficentes++;\n } else if (nota >= 6 && nota < 7) {\n aprobados++;\n bienes++;\n } else if (nota >= 7 && nota < 9) {\n aprobados++;\n notables++;\n } else if (nota >= 9) {\n aprobados++;\n sobresalientes++;\n }\n }\n // De esta manera redondeo a dos decimales. Tengo que hacer un casting porque de Double quiero float\n // Si no debería trabajar con double siempre.\n media = (float) (Math.round((totalNotas / numeroAlumnos) * 100.0) / 100.0);\n\n // Sacamos las estadísticas\n System.out.println(\"Número de alumnos/as: \" + numeroAlumnos);\n System.out.println(\"Número de aprobados/as: \" + aprobados);\n System.out.println(\"Número de suspensos: \" + suspensos);\n System.out.println(\"Nota media: \" + media);\n System.out.println(\"Nº Suficientes: \" + suficentes);\n System.out.println(\"Nº Bienes: \" + bienes);\n System.out.println(\"Nº Notables: \" + notables);\n System.out.println(\"Nº Sobresalientes: \" + sobresalientes);\n\n\n }", "public static double calculateEmployeePension(int employeeSalaryForBenefits) {\n double total = 0;\n try {\n Scanner stdin = new Scanner(System.in);\n\n System.out.println(\"Please enter start date in format (example: May,2015): \");\n String joiningDate = stdin.nextLine();\n System.out.println(\"Please enter today's date in format (example: August,2017): \");\n String todayDate = stdin.nextLine();\n String convertedJoiningDate = DateConversion.convertDate(joiningDate);\n String convertedTodayDate = DateConversion.convertDate(todayDate);\n stdin.close();\n String[] actualDateToday = convertedTodayDate.split(\"/\");\n String[] actualJoiningDate = convertedJoiningDate.split(\"/\");\n\n Integer yearsEmployed = Integer.valueOf(actualDateToday[1]) - Integer.valueOf(actualJoiningDate[1]);\n\n if ( Integer.valueOf(actualJoiningDate[0]) > Integer.valueOf(actualDateToday[0]) ) {\n yearsEmployed--;\n }\n\n total = (((employeeSalaryForBenefits * 12) * 0.05) * yearsEmployed);\n\n\n\n\n System.out.println(\"Total pension to receive by employee based on \" + yearsEmployed + \" years with the company \" +\n \"(5% of yearly salary for each year, based on employee's monthly salary of $\" + employeeSalaryForBenefits + \"): \" + total);\n\n }\n catch (NumberFormatException e) {\n e.printStackTrace();\n }\n return total;\n }", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\r\n\t\tDouble CSE1,CSE2,CSE3,CSE4,CSE5,SUM,AVG;\r\n\t\t\tString name;\r\n\t\t\tSystem.out.println(\"NAME: \");\r\n\t\t\tname=s.next();\r\n\t\tSystem.out.println(\"COMPUTER APPLICATION\");\r\n\t\tCSE1=s.nextDouble();\r\n\t\tSystem.out.println(\"COMPUTER SYSTEM\");\r\n\t\tCSE2=s.nextDouble();\r\n\t\tSystem.out.println(\"OOP2\");\r\n\t\tCSE3=s.nextDouble();\r\n\t\tSystem.out.println(\"COMMUNICATION SKIILS\");\r\n\t\tCSE4=s.nextDouble();\r\n\t\tSystem.out.println(\"WEB DESIGN\");\r\n\t\tCSE5=s.nextDouble();\r\n\t\tSUM = CSE1+CSE2+CSE3+CSE4+CSE5;\r\n\t\tSystem.out.println(\"SUM = \"+SUM);\r\n\t\tAVG = SUM/5;\r\n\t\tSystem.out.println(\"AVERAGE = \"+AVG);\r\n\t\t\r\n\t\tif(AVG>=85){\r\n\t\t\tSystem.out.println(\"GRADE = A\");\r\n\t\t}else{\r\n\t\t\tif(AVG>=75){\r\n\t\t\t\tSystem.out.println(\"GRADE = B\");\r\n\t\t\t}else{\r\n\t\t\t\tif(AVG>=65){\r\n\t\t\t\t\tSystem.out.println(\"GRADE = C\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(AVG>=50){\r\n\t\t\t\t\t\tSystem.out.println(\"GRADE = D\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tif(AVG<=49){\r\n\t\t\t\t\t\t\tSystem.out.println(\"GRADE = F\");\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 static void main(String[] args) {\n //ENTER CODE HERE\n Scanner scan =new Scanner(System.in);\n System.out.println(\"Enter price in cents:\");\n\n int itemPrice = scan.nextInt();\n\n if (itemPrice < 25 || itemPrice > 100 || (itemPrice % 5 != 0) ) {\n System.out.println(\"Invalid entry\");\n }\n else\n {\n int change=(100-itemPrice);\n int quarterCount = change / 25;\n int remainder1 = change % 25;\n int dimeCount = remainder1 / 10;\n int remainder2 = remainder1 % 10;\n int nickelCount = remainder2 / 5;\n\n System.out.println(\"When you give $1 for \" +itemPrice+ \"cents item. You will get back \"+\n quarterCount+ (quarterCount>1 ? \"quarters \" :\"quarter \")+\n dimeCount + (dimeCount > 1 ? \"dimes \" : \"dime \") +\n nickelCount+ (nickelCount > 1 ? \"nickels \" :\"nickel \") );\n\n }\n\n\n\n }", "public static int f_total_people(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"imput the total people do you need?\");\n int v_total_people= keyboard.nextInt();\n while(v_total_people<1 || v_total_people>1000){\n System.out.println(\"ERROR the value should be between 1 to 1000, imput again the total people do you want:\");\n v_total_people=keyboard.nextInt();\n }\n return v_total_people;\n }", "public static void main(String[] args) {\n\t\t\ndouble basicRent = 1500;\ndouble utility = 45.50;\ndouble parking = 25.44;\ndouble waterBill = 49.68;\n\ndouble totalRent;\n\nint roommates = 4;\n\ntotalRent = basicRent + utility + parking + waterBill;\n double rentshare = totalRent/roommates;\n \nString NM = \"RamanPaul2020\";\n\nSystem.out.println(totalRent);\nSystem.out.println(rentshare);\nSystem.out.println(NM);\n\n\t\t\n\t}", "void total() {\r\n t=m1+m2+m3;\r\n per=t/3;\r\n System.out.println(\"total :\"+t);\r\n System.out.println(\"persentage:\"+per);\r\n \r\n \r\n }", "int getCountOfFemaleUsers(List<User> users);", "@Test\n\tpublic void testCalculateBACFemale() \n\t{\n\t\tParticipant participant = new Participant(\"Taylor\", 100, Participant.GENDER.FEMALE, 1);\n\t\tparticipant.setCurrentBeers(2);\n\t\tparticipant.setCurrentWine(2);\n\t\tparticipant.setCurrentShots(3);\n\t\t\n\t\tassertEquals(0.3120, HealthCalculator.calculateBAC(participant), .001);\n\t}", "public static void main(String[] args) \n\t{\n\t\tint roll_number, Hindi, Eng, Maths, Science, Art;\n\t\tString name;\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner SC = new Scanner(System.in);\n\t\t\n\t\tSystem.out.print(\"Enter Name:\");\n\t\tname = SC.nextLine();\n\t\tSystem.out.print(\"Enter Roll Number:\");\n\t\troll_number = SC.nextInt();\n\t\tSystem.out.print(\"Enter Hindi, English, Maths, Science and Arts marks:\");\n\t\tHindi = SC.nextInt();\n\t\tEng = SC.nextInt();\n\t\tMaths = SC.nextInt();\n\t\tScience = SC.nextInt();\n\t\tArt = SC.nextInt();\n\t\t\n\t\tint total = Hindi+Eng+Maths+Science+Art;\n\t\tint avg = total/5;\n\t\tSystem.out.println(\"Student Roll Number is:\"+roll_number);\n\t\tSystem.out.println(\"Student Name is:\"+name);\n\t\tSystem.out.println(\"Student Totla Marks are:\"+total);\n\t\tSystem.out.println(\"Average marks are:\"+avg);\n\n\t}", "public static void main( String [] args )\n {\n Scanner input = new Scanner( System.in );\n\n int weightInput = 0; // Init weight input\n int heightInput = 0; // Init height input\n\n double weightKg = 0; // Init weight conversion\n double heightM = 0; // Init height conversion\n\n double actual = 0;\n float bmi = 0; // Init calculated bmi\n\n\n System.out.println(\"\\n\\n\");\n System.out.print( \"Enter body weight(lbs):\" ); // promt for weight\n weightInput = input.nextInt(); // Input weight value\n\n System.out.print( \"Enter body height(in):\" ); // promt for height\n heightInput = input.nextInt(); // Input height value\n\n weightKg = weightInput * .45349237 ; // convert weight\n heightM = heightInput * .0254 ; // convert height\n\n actual = weightKg / (heightM * heightM); // calculate BMI\n\n bmi = (float) actual; //simplify BMI\n\n // Output BMI and Chart\n System.out.println(\"\\n\");\n System.out.println(\"-------------------------------\");\n System.out.println(\"Your Body Mass Index: \" + bmi);\n System.out.println(\"-------------------------------\");\n System.out.println(\"\\n\");\n System.out.println(\"-------------------------------\");\n System.out.println(\"Underweight: less than 18.5\");\n System.out.println(\"Normal: 18.5 – 24.9\");\n System.out.println(\"Overweight: 25 – 29.9\");\n System.out.println(\"Obese: 30 or greater\");\n System.out.println(\"-------------------------------\");\n System.out.println(\"\\n\\n\");\n\n\n }", "public static void main()\n {\n float m= 0;\n Scanner sc= new Scanner(System.in);\n System.out.println(\"Enter name of the student\");\n String name= sc.nextLine();\n System.out.println(\"Enter the student's roll no.\");\n int roll= sc.nextInt();\n System.out.println(\"Enter the marks of 5 subjects(Press enter after each)\");\n for(int i=1;i<=5; i++)\n {\n float m1= sc.nextFloat();\n m= m+m1;\n }\n m= (m/5);\n System.out.println(\"Student's name: \"+ name);\n System.out.println(\"Roll no.: \"+ roll);\n String stream= \"\";\n if(m>=90)\n {\n stream= \"Science with Computers\";\n }\n else if(m>=80 && m<=89)\n {\n stream= \"Science without Computers\";\n }\n else if(m>=70 && m<=79)\n {\n stream= \"Commerce with Maths\";\n }\n else if(m>=60 && m<=69)\n {\n stream= \"Commerce without Maths\";\n }\n else\n {\n stream= \"Invalid Values\";\n }\n System.out.println(stream);\n System.out.println();\n }", "public static void main(String[] args) {\n final byte MONTHS_IN_YEAR = 12;\n final byte PRECENT = 100;\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Welcome to your mortgage calculator. \\nPlease type in the information...\");\n\n//// Method 1\n// System.out.print(\"principal ($1K - $1M): \");\n// int principal = scanner.nextInt();\n// while (principal < 1000 || principal > 1_000_000){\n// System.out.println(\"Enter a number between 1,000 and 1,000,000.\");\n// System.out.print(\"principal ($1K - $1M): \");\n// principal = scanner.nextInt();\n// // can use while true + a if break condition here\n// // notice you need to init principal either way.\n// // otherwise it will only be available inside the {} block\n// }\n//// Method 2\n int principal = 0;\n while(true){\n System.out.print(\"principal ($1K - $1M): \");\n principal = scanner.nextInt();\n if (principal >= 1_000 && principal <= 1_000_000)\n break;\n System.out.println(\"Enter a number between 1,000 and 1,000,000.\");\n }\n\n System.out.print(\"Annual Interest Rate (0-30) in percentage: \");\n float annualInterestRate = scanner.nextFloat();\n while (annualInterestRate<0 || annualInterestRate>30){\n System.out.println(\"Enter a value between 0 and 30\");\n System.out.print(\"Annual Interest Rate (0-30) in percentage: \");\n annualInterestRate = scanner.nextFloat();\n }\n float monthInterestRate = annualInterestRate / PRECENT / MONTHS_IN_YEAR;\n\n System.out.print(\"Period (years): \");\n int years = scanner.nextInt();\n while (years < 1 || years > 30){\n System.out.println(\"Enter a value between 1 and 30\");\n System.out.print(\"Period (years): \");\n years = scanner.nextInt();\n }\n int numberOfPayment = years * MONTHS_IN_YEAR;\n double mortgage = principal\n * (monthInterestRate * Math.pow(1+monthInterestRate, numberOfPayment))\n / (Math.pow(1+monthInterestRate, numberOfPayment) - 1);\n String mortgageFormatted = NumberFormat.getCurrencyInstance().format(mortgage);\n System.out.println(\"Mortgage: \" + mortgageFormatted);\n }", "public static void main(String[] args) {\n\n\n Student cory = new Student(\"Cory\");\n Student bethany = new Student(\"Bethany\");\n System.out.println(Student.studentCount);\n// System.out.println(sayHello(bethany, name));\n System.out.printf(\"Area of circle wih radius 3 is %f\");\n\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter marital status: (enter single or married)\");\n\t\tString answer = scan.nextLine();\n\t\tSystem.out.println(\"Enter taxable income: (don't use $ or ,)\");\n\t\tdouble income = scan.nextInt();\n\t\tTaxCalculator t = new TaxCalculator(answer, income);\n\t\tSystem.out.println(\"Your Federal tax = $\"+t.calculateTax());\n\t}", "public static void main(String[] args) \n\t{\n\t\tSystem.out.println(\"Enter the amount for the check:\");\n\t\t//Looks at what your input\n\t\tScanner sc = new Scanner(System.in);\n\t\t//Stores your input, (\"sc\") \n\t\tdouble checkAmount = sc.nextDouble();\n\t\t//These are the methods being called with the variable\n\t\tdouble tenPercent = tenpercent(checkAmount);\n\t\tdouble fifteenPercent = fifteenpercent(checkAmount);\n\t\tdouble twentyPercent = twentypercent(checkAmount);\n\t\tSystem.out.println(\"Your 10, 15, and 20 tips are \" + tenPercent + \" 15 percent \" + fifteenPercent + \" and 20 percent \" + twentyPercent);\n\n\t}", "public void benefitLayout() {\n Scanner stdin = new Scanner(System.in);\n System.out.println(\"Please state which benefit to check (Bonus or Pension): \");\n String benefitToCheck = stdin.next();\n\n while ((!benefitToCheck.equals(\"Pension\")) && (!benefitToCheck.equals(\"Bonus\"))) {\n System.out.println(\"Please state which benefit to check (Bonus or Pension): \");\n benefitToCheck = stdin.next();\n }\n\n if (benefitToCheck.equals(\"Pension\")) {\n System.out.println(\"Please state Name of Employee (format: \\\"FirstName_LastName\\\"): \");\n calculateEmployeePension(employeeSalaryForBenefits(stdin.next()));\n }\n if (benefitToCheck.equals(\"Bonus\")) {\n System.out.println(\"Please state Name of Employee (format: \\\"FirstName_LastName\\\"): \");\n calculateEmployeeBonus(employeeSalaryForBenefits(stdin.next()), 0, null);\n }\n stdin.close();\n }", "private double gradeQuiz() {\n int numCorrect = getNumberCorrect();\n double percentage = (numCorrect / numQuestions) * 100;\n return percentage;\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\r\n\r\n byte m1, m2, m3;\r\n\r\n System.out.print(\"Enter your marks in Physics:\");\r\n m1 = sc.nextByte();\r\n System.out.print(\"Enter your marks in Chemistry:\");\r\n m2 = sc.nextByte();\r\n System.out.print(\"Enter your marks in Mathematics:\");\r\n m3 = sc.nextByte();\r\n\r\n float total = (m1 + m2 + m3) / 3.0f;\r\n\r\n if (total >= 40 && m1 > 33 && m2 > 33 && m3 > 33) {\r\n System.out.println(\"you are pass in this examination\");\r\n } else {\r\n System.out.println(\"Sorry better luck next time :) :)\");\r\n }\r\n\r\n // wrt a program to calculate to tax\r\n System.out.print(\"enter your income : \");\r\n float income = sc.nextFloat();\r\n float tax = 0.0f;\r\n\r\n if (income <= 250000) {\r\n tax += 0;\r\n } else if (income > 250000 && income <= 500000) {\r\n tax = 0.05f * income;\r\n } else if (income > 500000 && income <= 100000) {\r\n tax = 0.2f * (income);\r\n } else {\r\n tax = 0.3f * (income);\r\n }\r\n\r\n System.out.println(\"tax pay by you will be \" + tax);\r\n\r\n\r\n\r\n\r\n // wrt a program which show day \r\n System.out.print(\"Enter day between 0,1,2,3,4,5,6 :\");\r\n int day=sc.nextInt();\r\n\r\n switch (day) {\r\n case 1:\r\n System.out.println(\"day is monday\");\r\n break;\r\n case 2:\r\n System.out.println(\"day is Tuesday\");\r\n break;\r\n case 3:\r\n System.out.println(\"day is wednesday\");\r\n break;\r\n case 4:\r\n System.out.println(\"day is thursday\");\r\n break;\r\n case 5:\r\n System.out.println(\"day is friday\");\r\n break;\r\n case 6:\r\n System.out.println(\"day is saturday\");\r\n break;\r\n case 7:\r\n System.out.println(\"day is sunday\");\r\n break;\r\n case 0:\r\n System.out.println(\"day is sunday\");\r\n break;\r\n \r\n default:\r\n System.out.println(\"you enter a wrong day plz choose between [0,1,2,3,4,5,6,7]\");\r\n break;\r\n }\r\n\r\n\r\n //wrt a program to check website type\r\n\r\n String web=\"www.google.com\";\r\n\r\n if(web.endsWith(\".com\")){\r\n System.out.print(\"website type is commercial\");\r\n\r\n }\r\n else if(web.endsWith(\".org\")){\r\n System.out.print(\"website type is organisation\");\r\n\r\n }\r\n else if(web.endsWith(\".in\")){\r\n System.out.print(\"website is indian\");\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tint dias, meses, anos, totalDias;\n\t\tScanner leia = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"\\nQuantos anos você tem? \");\n\t\tanos = leia.nextInt();\n\t\t\n\t\tSystem.out.println(\"\\nQuantos meses você tem? \");\n\t\tmeses = leia.nextInt();\n\t\t\n\t\tSystem.out.println(\"\\nQuantos dias você tem? \");\n\t\tdias = leia.nextInt();\n\t\t\n\t\ttotalDias = (anos * 365) + (meses * 30) + dias;\n\t\tSystem.out.println(\"\\nVocê viveu: \" +totalDias);\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\r\n\t\tScanner scan = new Scanner(System.in);\r\n\r\n\t\tSystem.out.println(\"Enter your weight in pounds:\");\r\n\t\tdouble pounds = scan.nextDouble();\r\n\t\t\r\n\t\tSystem.out.println(\"Enter your height in feet followed by a space then additional inches:\");\r\n\t\tdouble feets = scan.nextDouble();\r\n\t\tdouble inches = scan.nextDouble();\r\n\t\t\r\n\t\tdouble BMI = 0;\r\n\t\tdouble poundsToKgs = pounds/2.2;\r\n\t\tdouble heightToMeters = (feets*12 + inches)*0.0254;\r\n\t\t\r\n\t\tBMI=poundsToKgs/(heightToMeters*heightToMeters);\r\n\t\t\r\n\t\tSystem.out.println(\"Your BMI is \" + BMI );\r\n\r\n\t\tif(BMI<18.5) {\r\n\t\t\tSystem.out.println(\"Your risk factory is Underweight\");\r\n\t\t}else if(BMI>=25 && BMI<25) {\r\n\t\t\tSystem.out.println(\"Your risk factory is Normal Weight\");\r\n\t\t}else if(BMI>=25 && BMI<30) {\r\n\t\t\tSystem.out.println(\"Your risk factory is Overweight\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"Your risk factory is Obese\");\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tdouble miles;\n\t\tdouble gallons;\n\t\tScanner keyboard = new Scanner (System.in);\n\t\tSystem.out.println(\"Enter the miles driven:\");\n\t\tmiles = keyboard.nextInt();\n\t\tSystem.out.print(\"Enter the amount of gallons used:\\n\");\n\t\tgallons = keyboard.nextInt();\n\t\tdouble mpg = miles/gallons;\n\t\tSystem.out.println(\"The miles-per-gallon is: \"+mpg);\n\t\n\t}", "public static void main(String[] args){\n int bananas = 34;\n System.out.println(bananas);\n\n int students = 400;\n System.out.println(students);\n\n int phonebook=100, textbook=200, computers=300;\n System.out.println(phonebook+textbook+computers);\n\n int peopleInCity=1000, birdsOnTree=2000, fishInLake=3000;\n System.out.println(peopleInCity);\n System.out.println(birdsOnTree);\n System.out.println(fishInLake);\n\n int studentsInNY = 25, studentsInVA = 50, studentsInCO = 5;\n System.out.println(studentsInNY);\n System.out.println(studentsInVA);\n System.out.println(studentsInCO);\n\n\n\n }", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint input;\n\t\n\t\tint numExam = 0;\n\t\tint sum = 0;\n\t\tdouble average;\n\t\n\t\tSystem.out.println(\"Enter exam or -1 to quit:\");\n\t\tinput = scan.nextInt();\n\n\t\twhile (input != -1) {\n\t\t\tif (input >= 0 && input <= 100) {\n\t\t\t\tsum += input;\n\t\t\t\tnumExam++;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Invalid input. Enter value between 0 and 100\");\n\t\t\t}\n\n\t\tSystem.out.println(\"Enter exam or -1 to quit:\");\n\t\tinput = scan.nextInt();\n\t\t}\n\n\t\tSystem.out.println(\"sum=\" + sum + \" numExam=\" + numExam);\n\n\t\tif (numExam > 0) {\n\t\t\taverage = sum / (double)numExam;\n\t\t\tSystem.out.println(\"Average=\" + average);\n\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"No exam entered\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter the Mark:\");\r\n\t\tint Mark=s.nextInt();\r\n\t\tif(Mark>=90)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Grade A\");\r\n\t\t}\r\n\t\telse if(Mark<90 && Mark>=70)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Grade B\");\r\n\t\t}\r\n\t\telse if(Mark<70 && Mark>=50)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Grade C\");\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Fail\");\r\n\t\t}\r\n\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint codigo, n,categoria, cant1=0,cant2=0,cant3=0,sal1=0,sal2=0,sal3=0;\r\n\t\tint suma1=0 ,suma2=0,suma3=0;\r\n\t\t\r\n\t\tn=Integer.parseInt(JOptionPane.showInputDialog(\"la cantidad de empleado \"));\r\n\t\tfor (int i=1;i<=n;i++) {\r\n\t\t\tcodigo=Integer.parseInt(JOptionPane.showInputDialog(\"el codigo del empleado\"));\r\n\t\t\tcategoria=Integer.parseInt(JOptionPane.showInputDialog(\"ingrese categoria del empleado de 1 a 3 \"));\r\n\t\t\t\r\n\t\t\tif (categoria==1) {\r\n\t\t\t\tsal1=Integer.parseInt(JOptionPane.showInputDialog(\"ingrese salario \"));\r\n\t\t\t\tcant1=cant1+1;\r\n\t\t\t\tsuma1=suma1+sal1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(categoria==2) {\r\n\t\t\t\t\r\n\t\t\t\tsal2=Integer.parseInt(JOptionPane.showInputDialog(\"ingrese salario \"));\r\n\t\t\t\tcant2=cant2+1;\r\n\t\t\t\tsuma2=suma2+sal2;\r\n\t\t\t}\r\n\t\t\telse if(categoria==3) {\r\n\t\t\tsal3=Integer.parseInt(JOptionPane.showInputDialog(\"ingrese salario \"));\r\n\t\t\tcant3=cant3+1;\r\n\t\t\tsuma3=suma3+sal3;\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"la cantidad de empleados de la categoria 1 es:\"+ cant1);\r\n\t\tSystem.out.println(\"la cantidad de empleados de la categoria 2 es:\"+ cant2);\r\n\t\tSystem.out.println(\"la cantidad de empleados de la categoria 3 es:\"+ cant3);\r\n\t\tSystem.out.println(\"el promedio de salario de la categoria 1:\"+ suma1/cant1);\r\n\t\tSystem.out.println(\"el promedio de salario de la categoria 2:\"+ suma2/cant2);\r\n\t\tSystem.out.println(\"el promedio de salario de la categoria 3:\"+ suma3/cant3);\r\n\t\tSystem.out.println(\"la suma de todos los salarios es:\"+ suma1+suma2+suma3);\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"this is the division calculator\");\n\n\t\tScanner userInput = new Scanner(System.in);\n\n\n\n\t\tSystem.out.println(\"give me the first number\");\n\n\t\tint a = userInput.nextInt();\n\n\t\tSystem.out.println(\"give me the second number\");\n\t\t\t\n\t\t\tint b = userInput.nextInt();\n\t\t\t\n\t\t\tSystem.out.println(\"result: \" + a/b);\n\t\t\t\n\t\t\tint counter = 0;\n\t\t\tboolean flag = true;// true false value.memorie.concept clear koro.\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=a; i<=b; i++) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(i);\n\t\t\t\t\n\t\t\t\tif(i==0) {\n\t\t\t\t\tflag= false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(flag) {\n\t\t\t\t\t\n\t\t\t\t\tif(i%3==0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(\"divisible by 3\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tcounter++;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"total amount: \" + counter);\n\t\t\t\t\n\t\t\t}\n\t\t\t//divisible by 3 ,multiple of 3 like 15, 10,5//mod in jave mod sige is %.you can get a number without getting any reminder,\n\t\t\t\n\t\t}", "private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n//\t\tprompts users for all info needed\n\t\tSystem.out.println(\"Enter your name:\");\n\t\tString name = input.nextLine();\n\t\t\n\t\tSystem.out.println(name + \", enter your height in inches:\");\n\t\tdouble height = input.nextDouble();\n\t\tdouble heightCon = height * 0.0254;\n\t\t\n\t\tSystem.out.println(name + \", enter your weight in pounds:\");\n\t\tdouble weight = input.nextDouble();\n\t\tdouble weightCon = weight * 0.45359237;\n//\t\tchecks to see if value is valid, and if so it will continue to compute the BMI value\n\t\tdouble bmi = 0;\n\t\tif(weight > 0 && height > 0) {\n\t\t\tbmi = weightCon / (Math.pow(heightCon, 2));\n\t}\n//\t\tcompares the BMI result with the standards and determines which weighting class you belong in \n\t\tString bmiResult;\n\t\tif(bmi < 18.5 && bmi > 0) {\n\t\t\t bmiResult = \"Underweight\";\n\t\t}\n\t\telse if(bmi >= 18.5 && bmi < 25.0){\n\t\t\t bmiResult = \"Normal\";\n\t\t}\n\t\telse if(bmi >= 25.0 && bmi < 30.0) {\n\t\t\t bmiResult = \"Overweight\";\n\t\t}\n\t\telse { \n\t\t\t bmiResult = \"Obese\";\n\t\t}\n//\t\tprints out the final information\n\t\tSystem.out.println(name + \", your BMI is \" + bmi);\n\t\tSystem.out.println(\"You are \" + bmiResult);\n\t\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t\n\t\tinput.close();\n\t}", "public static void main(String[] args) {\n\t\tint totaldias,anos,meses,dias;\n\t\t\n\t\ttry (Scanner entrada = new Scanner(System.in)) {\n\t\t\tSystem.out.println(\"Entre com o total de dias: \");\n\t\t\ttotaldias = entrada.nextInt();\n\t\t}\n\t\t\n\t\tanos = totaldias / 365;\n\t\tmeses = (totaldias%365)/30;\n\t\tdias = (totaldias%365)%30;\n\t\t\n\t\tSystem.out.printf(\"\\nEu tenho: %d ano(s), %d mes(es) e %d dia(s)\",anos,meses,dias);\n\t}", "public double getVentureChecklistPercent(Member member1) {\n\t\tdouble mapSubclassCount;\r\n\t\tdouble mySubclassCount;\r\n\t\tdouble percentCount;\r\n\t\tSl1 = \"SELECT COUNT(*) AS count FROM map_subclass WHERE mapClassID=?\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tsmt = conn.prepareStatement(Sl1);\r\n\t\t\tsmt.setString(1, member1.getSetPercent());\r\n\t\t\tSystem.out.println(\"getSetPercent()=\"+member1.getSetPercent());\r\n\t\t\trs1 = smt.executeQuery();\r\n\t\t\tif(rs1.next()){\t\r\n\t\t\t\tmapSubclassCount=rs1.getInt(\"count\");\r\n\t\t\t\tSystem.out.println(\"mapSubclassCount=\"+mapSubclassCount);\t\t\t\t\r\n\t\t\t\tSl2 = \"SELECT COUNT(*) AS count FROM venture_checklist WHERE mapClassID=? AND memberAccount =? \";\r\n\t\t\t\tsmt = conn.prepareStatement(Sl2);\r\n\t\t\t\tsmt.setString(1, member1.getSetPercent());\r\n\t\t\t\tsmt.setString(2, member1.getAccount());\r\n\t\t\t\trs2 = smt.executeQuery();\r\n\t\t\t\tif(rs2.next()){\t\r\n\t\t\t\t\tmySubclassCount=rs2.getInt(\"count\");\r\n\t\t\t\t\t//System.out.println(\"mySubclassCount=\"+mySubclassCount);\t\r\n\t\t\t\t\tpercentCount = mySubclassCount/mapSubclassCount;\r\n\t\t\t\t\t//System.out.println(\"percentCount=\"+(mySubclassCount/mapSubclassCount));\r\n\t\t\t\t\treturn percentCount;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsmt.executeQuery();\r\n\t\t\trs1.close();\r\n\t\t\trs2.close();\r\n\t\t\tsmt.close();\r\n \r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n \r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public static void main(String[] args) {\n\t\tint anos,meses,dias;\n\t\tScanner leia = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"\\nDigite quantos anos tem: \");\n\t\tanos = leia.nextInt();\n\t\tSystem.out.println(\"\\nDigite quantos meses: \");\n\t\tmeses = leia.nextInt();\n\t\tSystem.out.println(\"\\nDigite quantos dias\");\n\t\tdias = leia.nextInt();\n\t\t\n\t\tanos = anos*365;\n\t\tmeses = meses*12;\n\t\tdias = anos+meses+dias;\n\t\t\n\t\tSystem.out.printf(\"O total de dias são: %d\", dias);\n\t}", "public static void main(String[] args) {\n Scanner kb = new Scanner(System.in);\n System.out.print(\"Enter investment amount: \");\n double amountInvested = kb.nextDouble();\n System.out.print(\"Enter the annual interest rate in percentage: \");\n double annualInterestRate = kb.nextDouble();\n double monthlyInterestRate = (annualInterestRate / 100) / 12;\n System.out.print(\"Enter the number of years: \");\n int numberOfYears = kb.nextInt();\n\n //Calculate future investment value w/ given formula\n double futureInvestmentValue = amountInvested \n * Math.pow(1 + monthlyInterestRate, numberOfYears * 12);\n\n //Display resulting future investment amount on the console\n System.out.println(\"Accumulated value is $\" \n + (int)(futureInvestmentValue * 100) / 100.0);\n\n }", "public static void runExercise2() {\n students.stream().filter(student -> student.getGender().equals(Gender.MALE)).forEach(y -> System.out.println(y.getFirstName()));\n }", "int main()\n{\n int fa,fd,fs,sa,sd,ss,aa,ad,as;\n float famt,samt,aamt;\n cin>>fa;\n cin>>fd;\n cin>>fs;\n cin>>sa;\n cin>>sd;\n cin>>ss;\n cin>>aa;\n cin>>ad;\n cin>>as;\n famt=fa-(fd*fa)/100+fs;\n samt=sa-(sd*sa)/100+ss;\n aamt=aa-(ad*aa)/100+as;\n cout<<\"In Flipkart Rs.\"<<famt<<\"\\n\";\n cout<<\"In Snapdeal Rs.\"<<samt<<\"\\n\";\n cout<<\"In Amazon Rs.\"<<aamt<<\"\\n\";\n if(famt<=samt && famt<aamt)\n cout<<\"He will prefer Flipkart\";\n else if(samt<aamt)\n cout<<\"He will prefer Snapdeal\";\n else\n cout<<\"He will prefer Amazon\";\n \n}", "public static void main(String[] args) {\n\n byte minAge = 21;\n short averageSalery = 8650;\n int distanceBEarthMoon = 238855;\n long nationalDebt = 23050442180309L;\n float interestRate = 3.725f;\n double itemPrice = 49.99;\n boolean genderFemale = true;\n char nameInitials = 'F';\n\n System.out.println(\"Minimum legal age to purchase alcholo in USA is: \" + minAge);\n System.out.println(\"Average monthly salary of an automation engineer in NYC is: \" + averageSalery);\n System.out.println(\"Distance between Earth and Moon in miles is: \" + distanceBEarthMoon);\n System.out.println(\"The national debt of the United States in US dollars is: \" + nationalDebt);\n System.out.println(\"The interest rate in Chase bank is: \" + interestRate);\n System.out.println(\"store item price is : \" + itemPrice );\n System.out.println(\"is your gender female : \" + genderFemale);\n System.out.println(\"name initials : \" + nameInitials);\n\n\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\tint gradeCounter = 0;\n\t\tint total = 0;\n\t\t\n\t\tSystem.out.print(\"Enter grade or -1 to quit: \");\n\t\tint grade = input.nextInt();\n\n\t\twhile(grade != -1) {\n\t\t\ttotal += grade;\n\t\t\tgradeCounter++;\n\t\t\t\n\t\t\tSystem.out.print(\"Enter grade or -1 to quit: \");\n\t\t\tgrade = input.nextInt();\n\t\t\t\n\t\t}// end of while loop\n\t\t\n\t\tif (gradeCounter != 0) {\n\t\t\tdouble average = (double) total / gradeCounter;\n\t\t\tSystem.out.printf(\"%nTotal of the %d grades entered is %d%n\",gradeCounter, total);\n\t\t\t\n\t\t\tSystem.out.printf(\"Class average is %.2f%n\", average);\n\t\t}//end of if\n\t\telse // no grades were entered, so output appropriate message\n\t\t\t System.out.println(\"No grades were entered\");\n\n\t}", "public static void main(String[] args) {\r\n\r\n\t\tScanner scan = new Scanner(System.in);\r\n\r\n\t\tSystem.out.print(\"You weight in pounds:\");\r\n\t\tint weight = scan.nextInt();\r\n\r\n\t\tSystem.out.print(\"Your height in feet and inches:\");\r\n\t\tdouble height = scan.nextFloat();\r\n\r\n\t\tdouble lbsInKg = weight / 2.2046; // lbs to kg\r\n\r\n\t\tdouble feetInInch = height * 12; // all the inches\r\n\r\n\t\tdouble heightInchToMeter = feetInInch * 0.0254; // all the meters\r\n\r\n\t\tdouble bmi = lbsInKg / (heightInchToMeter * heightInchToMeter);\r\n\r\n\t\tSystem.out.println(\"Your BMI is \" + bmi);\r\n\r\n\t\tif (bmi < 18.5) {\r\n\t\t\tSystem.out.println(\"Your risk factory Underweight\");\r\n\t\t} else if (bmi >= 18.5 && bmi < 25) {\r\n\t\t\tSystem.out.println(\"Normal Weight\");\r\n\t\t} else if (bmi >= 25 && bmi < 30) {\r\n\t\t\tSystem.out.println(\"Overweight\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Obese\");\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Teclea el numero de cm que deseas convertir a metros\");\r\n\t\tdouble metros =sc.nextDouble();\r\n\t\t\r\n\t\tdouble centimetros =metros*100;\r\n\t\t\r\n\t\tSystem.out.println(\"El numero total de centimetros son : \"+centimetros+\" \");\r\n\t}", "public void readGrades(){\n Scanner keyboard = new Scanner(System.in);\n\n System.out.println(\"Please, enter the program grade and exam grade for \"+ name + \":\");\n programGrade = keyboard.nextDouble();\n examGrade = keyboard.nextDouble();\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter your amount of money\");\n\t\tint money = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"Enter the price of a wing\");\n\t\tint wing = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"You can buy \" + money/wing + \" wings\");\n\n\t\t\n\t\t// System.out.println((int)(money/wing)+\" Wing you can buy\");\n\n\n\t}", "public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in).useLocale(Locale.ENGLISH)) {\n int progressionType = (int) scanNumber(scanner, \"type of progression\", 0, 0, 1);\n double firstElement = scanNumber(scanner, \"first element\", 1, -Double.MAX_VALUE, Double.MAX_VALUE);\n double commonDifOrRatio = scanNumber(scanner, \"common difference or ratio\", 1, -Double.MAX_VALUE, Double.MAX_VALUE);\n int memberCount = (int) scanNumber(scanner, \"member count\", 0, 1, Integer.MAX_VALUE);\n displayProgression(progressionType, firstElement, commonDifOrRatio, memberCount);\n }\n }", "public void prinRecaudacion()\n {\n System.out.println(\"La cantidad recaudada por la maquina1 es \" + maquina1.getTotal());\n System.out.println(\"La cantidad recaudada por la maquina2 es \" + maquina2.getTotal());\n System.out.println(\"La cantidad total es\" + ( maquina1.getTotal() + maquina2.getTotal()));\n}", "public static void main(String[] args) {\n\t\tList<Member> memberList = Arrays.asList(new Member(\"강\", 30), new Member(\"신\", 40), new Member(\"박\", 26));\n\n\t\tdouble avg = memberList.stream().mapToInt(a -> a.getAge()).average().getAsDouble();\n\t\tSystem.out.println(\"평균 나이: \" + avg);\n\t}", "public static void main(String[] args) {\n // Q1: number of hours in a day (byte)\n byte numberOfHoursInaDay =24;\n System.out.println(\"\\nnumberOfHoursInaDay:24 \");\n // Q2.Max.no of days in an year\n short maxNumberOfTheDayInaYear = 366;\n System.out.println(\"\\nmaxNumberOfTheDaysInaYear:366\");\n // Q3.Total number of employees in an organization\n int totalNumberOfEmployeesInIbm = 50000;\n System.out.println(\"\\ntotalNumberOfEmployeesInIbm:50000\");\n //Q4.Population in a country\n long numberOfPopulation = 2000000000L;\n System.out.println(\"\\nnumberOfPopulation : 2000000000L\");\n //Q5.Interest rate\n float interestRate = 1.9f;\n System.out.println(\"\\\\nCurrent interest rate:\\\" + interestRate\");\n //Q6. Balance in a bank account\n long accountBalance = 50000000L;\n System.out.println(\"\\naccountBalance = 50000000L\");\n boolean doesTheSunRiseFromTheWest = true;\n System.out.println(\"doesTheSunRiseFromTheWest? : \" + doesTheSunRiseFromTheWest);\n\n // Q7.Initials of your name\n char firstInitial = 'S';\n char lastInitial = 'M';\n System.out.println(\"My initials: \" +firstInitial + lastInitial);\n\n\n\n\n\n }", "public static void main(String[] args) {\n \tdouble num1 = 7.15;\n \tdouble num2 = 10.0;\n\t\t// 创建一个数值格式化对象\n\t\tNumberFormat numberFormat = NumberFormat.getInstance();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"#.00\");\n\t\t// 设置精确到小数点后2位\n\t\tnumberFormat.setMaximumFractionDigits(2);\n\t\tString result = numberFormat.format((num1 / num2 * 100));\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + result + \"%\");\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + decimalFormat.format(Double.valueOf(result)) + \"%\");\n\t}", "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "public static void main(String[] args) {\n Scanner in = new Scanner (System.in);\n System.out.print(\"Enter your final average [0-100]: \");\n double finalGrade;\n finalGrade = in.nextDouble();\n Grade finalLetter;\n if(finalGrade >= Grade.A.Min())\n {\n finalLetter = Grade.A;\n }\n else if (finalGrade >= Grade.B.Min())\n {\n finalLetter = Grade.B;\n }\n else if (finalGrade >= Grade.C.Min())\n {\n finalLetter = Grade.C;\n }\n else if(finalGrade >= Grade.D.Min())\n {\n finalLetter = Grade.D;\n }\n else\n {\n finalLetter = Grade.F;\n }\n System.out.printf (\"A final average of %f translates to a letter grade of %s\\n\", finalGrade, finalLetter);\n }", "public static void main (String []args) {\n\t\tSystem.out.println(\"What is your dog's name?\");\n\t\tScanner myScanner = new Scanner(System.in); \n\t\tString dogName = myScanner.nextLine(); // reads user input\n\t\tSystem.out.println(\"Well then, I have this highly reliable report on \" + dogName + \"'s prestigious background right here.\");\n\t\tSystem.out.println(dogName + \" is: \");\n\t\t\n\t\tint percentage = 100; //keeps track the current percentage left\n\t\t\n\t\tRandom rand = new Random(); //creates an instance of random class\n\t\t//generates a random integer in range 0 to 100\n\t\tint randPercentage = rand.nextInt(percentage + 1);\n\t\tSystem.out.println( randPercentage + \"% St. Bernard\");\n\t\t//updates the total and comes up with a random integer in new range\n\t\tpercentage -= randPercentage;\n\t\trandPercentage = rand.nextInt(percentage + 1);\n\t\tSystem.out.println( randPercentage + \"% Chihuahua\"); \n\t\tpercentage -= randPercentage;\n\t\trandPercentage = rand.nextInt(percentage + 1);\n\t\tSystem.out.println( randPercentage + \"% Dramatic RedNosed Asian Pug\");\n\t\tpercentage -= randPercentage;\n\t\trandPercentage = rand.nextInt(percentage + 1);\n\t\tSystem.out.println( randPercentage + \"% Common Cur\"); \n\t\t//last breed is however much that is left\n\t\tpercentage -= randPercentage;\n\t\tSystem.out.println(percentage + \"% King Doberman\");\n\t\tSystem.out.println(\"Wow, that's QUITE the dog!\");\n\t\tmyScanner.close();\n\t}", "public static void main(String[] args) {\n\r\n\t\tScanner teclado = new Scanner(System.in);\r\n\r\n\t\tfinal int DIA_ACTUAL = 9, MES_ACTUAL = 11, AÑO_ACTUAL = 2018;\r\n\r\n\t\tint dia = 0, año = 0, mes_numerico = 0, años_totales = 0;\r\n\r\n\t\tString mes = \" \";\r\n\r\n\t\tboolean bisiesto = false;\r\n\r\n\t\tSystem.out.println(\"Introduzca un mes valido \");\r\n\t\tmes = teclado.nextLine();\r\n\r\n\t\tSystem.out.println(\"Introduzca un dia valido \");\r\n\t\tdia = teclado.nextInt();\r\n\r\n\t\tSystem.out.println(\"Introduzca un año \");\r\n\t\taño = teclado.nextInt();\r\n\r\n\t\tif ((año % 4 == 0) && (año % 100 != 0) || (año % 400 == 0)) {\r\n\r\n\t\t\tbisiesto = true;\r\n\t\t}\r\n\r\n\t\tswitch (mes) {\r\n\r\n\t\tcase \"enero\":\r\n\r\n\t\t\tmes_numerico = 1;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"febrero\":\r\n\r\n\t\t\tmes_numerico = 2;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"marzo\":\r\n\r\n\t\t\tmes_numerico = 3;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"abril\":\r\n\r\n\t\t\tmes_numerico = 4;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mayo\":\r\n\r\n\t\t\tmes_numerico = 5;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"junio\":\r\n\r\n\t\t\tmes_numerico = 6;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"julio\":\r\n\r\n\t\t\tmes_numerico = 7;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"agosto\":\r\n\r\n\t\t\tmes_numerico = 8;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"septiembre\":\r\n\r\n\t\t\tmes_numerico = 9;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"octubre\":\r\n\r\n\t\t\tmes_numerico = 10;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"noviembre\":\r\n\r\n\t\t\tmes_numerico = 11;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"diciembre\":\r\n\r\n\t\t\tmes_numerico = 12;\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\r\n\t\t\tSystem.out.println(\"Introduzca un mes correcto \");\r\n\t\t\tmes = teclado.nextLine();\r\n\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\r\n\t\taños_totales = AÑO_ACTUAL - año;\r\n\r\n\t\tif ((mes_numerico == 1 || mes_numerico == 3 || mes_numerico == 5 || mes_numerico == 7 || mes_numerico == 8\r\n\t\t\t\t|| mes_numerico == 10 || mes_numerico == 12) && (dia <= 31)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 4 || mes_numerico == 6 || mes_numerico == 9 || mes_numerico == 11) && (dia <= 30)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 2 && bisiesto) && (dia <= 29)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else if ((mes_numerico == 2 && !bisiesto) && (dia <= 28)) {\r\n\r\n\t\t\tif ((mes_numerico > MES_ACTUAL) || (MES_ACTUAL == mes_numerico && dia > DIA_ACTUAL)) {\r\n\r\n\t\t\t\taños_totales--;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Tu cantidad de años es \" + años_totales);\r\n\r\n\t\t} else {\r\n\r\n\t\t\tSystem.out.println(\"La fecha introducida no es correcta \");\r\n\t\t}\r\n\r\n\t\tteclado.close();\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint p = sc.nextInt();\n\t\tint r = sc.nextInt();\n\t\tint y = 3;\n\t\t\n\t\tint amount = (p*r*y)/100;\n\t\t\n\t\tSystem.out.println(\"Amount: \"+amount);\n\t\t\n\n\t}", "public static void main(String[] args) {\n \r\n String nombre = JOptionPane.showInputDialog(\"Introduce el nombre del alumno: \");\r\n \r\n while (nombre.compareToIgnoreCase(\"fin\") != 0) {\r\n\r\n int totalNotasAlumno = solicitarNotas();\r\n int medioAlumno = totalNotasAlumno / numeroAsignaturas;\r\n JOptionPane.showMessageDialog(null, nombre + \" tiene \" + medioAlumno + \" de media\");\r\n\r\n calculosMediaAlumnos(medioAlumno);\r\n\r\n nombre = JOptionPane.showInputDialog(\"Introduce el nombre: \");\r\n\r\n }\r\n JOptionPane.showMessageDialog(null, \"La nota media de todos es: \" + (totalNotas / alumnos));\r\n\r\n }", "public void units() {\n //declaring input 1 by getting the data from answer (above) parsing the int to string and saving to input1\n int input1 = Integer.parseInt(Answer.getText().toString());\n //declaring input 1 by getting the data from answer (above) parsing the int to string and saving to input1\n int input2= Integer.parseInt(input.getText().toString());\n //creating an instance of the Drink Calculations class to link them and use the methods\n calcs = new DrinkCalculations(input1, input2);\n //setting final answer to the allocated object in the activity using the instance of calcs and this method to calculate\n //then displaying out the answer + the message in \"\"\n finalAnswer.setText(Integer.toString(calcs.units())+ \" Units.\" + \"\\n\" + \"Recommended daily Units for a woman 2-3 and man 3-4\");\n\n }", "public static Double gpaCalc() {\n\t\tdouble gpa = 0.0;\n\t\tSystem.out.println(\"How many classes has the student taken at school? \");\n\t\tint numberOfClasses = console.nextInt();\n\n\t\tdouble classGPA = 0.0;\n\t\tdouble sum = 0.0;\n\t\t\n\t\tfor (int i = 1; i <= numberOfClasses; i++) {\n\t\t\tSystem.out.println(\"What is the student's GPA in this class? \");\n\t\t\tclassGPA = console.nextInt();\n\t\t\tsum += classGPA;\n\t\t}\n\t\tgpa = sum / numberOfClasses;\n\t\treturn gpa;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter a minutes\");\n\t\t\n\t\tdouble min=scan.nextDouble();\n\t\t\n\t\tlong years=(long) (min/(60*24*365));\n\t\t\n\t\tlong days=(long) (min/60*24)%365;\n\t\t\n\t\tSystem.out.println(min + \" minutes is approximately \" + years + \" years and \" + days + \" days\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tfinal double apulgadas = 2.54;\n\t\t\t\t\n\t\tdouble cm = 6;\n\t\t\t\t\n\t\tdouble result = cm/apulgadas; \n\t\t\t\t\n\t\tSystem.out.println(\n\t\t\t\t\"En \" + cm + \" cm hay \"\n\t\t\t\t+ result + \" pulgadas\"\n\t\t);\n\t}", "public static void main(String[] args)\n\t{\n\t\tint sum, max = Integer.MIN_VALUE, maxId = Integer.MIN_VALUE, min = Integer.MAX_VALUE, minId = Integer.MAX_VALUE;\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tSystem.out.print(\"How many entries are there? \");\n\t\tint enteries = scan.nextInt();\n\t\tint[] sales = new int[enteries];\n\n\t\tfor (int i = 0; i < enteries; i++)\n\t\t{\n\t\t\tSystem.out.print(\"Enter sales for salesperson \" + (i + 1) + \": \");\n\t\t\tsales[i] = scan.nextInt();\n\t\t\t// max if\n\t\t\tif (sales[i] > max)\n\t\t\t{\n\t\t\t\tmax = sales[i];\n\t\t\t\tmaxId = i;\n\t\t\t}\n\t\t\t// min if\n\t\t\tif (sales[i] < min)\n\t\t\t{\n\t\t\t\tmin = sales[i];\n\t\t\t\tminId = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\\nSalesperson Sales\");\n\t\tSystem.out.println(\" ------------------ \");\n\t\tsum = 0;\n\t\tfor (int i = 0; i < sales.length; i++)\n\t\t{\n\t\t\tSystem.out.println(\" \" + (i + 1) + \" \" + sales[i]);\n\t\t\tsum += sales[i];\n\t\t}\n\t\tSystem.out.println(\"\\nTotal sales: \" + sum);\n\t\tSystem.out.println(\"Average sales: \" + (double) sum / 5);\n\t\tSystem.out.println(\"Salesperson \" + maxId + \" had the highest sale with \" + max);\n\t\tSystem.out.println(\"Salesperson \" + minId + \" had the lowest sale with \" + min);\n\t\tSystem.out.println(\"Enter a number: \");\n\t\tint excede = scan.nextInt();\n\t\tint peopleExceded = 0;\n\t\tfor (int i = 0; i < sales.length; i++)\n\t\t{\n\t\t\tif (sales[i] > excede)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Salesperson \" + (i + 1) + \" exceded \" + excede + \" by selling \" + sales[i]);\n\t\t\t\tpeopleExceded++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"A total of \" + peopleExceded + \" exceded \" + excede + \" sales.\");\n\t\tscan.close();\n\t}", "public static void main(String[] args)\n {\n Scanner s = new Scanner(System.in);\n System.out.println(\"Please enter the amount due\");\n double due = s.nextDouble();\n System.out.println(\"Please enter the amount recieved\");\n double pay = s.nextDouble();\n double change = (pay - due);\n int dollars = (int) change/ 1;\n change = change%1;\n int quarters = (int) (change/.25);\n change = change %.25;\n int dimes = (int) (change/.10);\n change = change% .10;\n int nickels = (int) (change /.05);\n change = change % .05;\n int pennies = (int) (change/.01);\n System.out.println(dollars + \" Dollars\\n\");\n System.out.println(quarters +\" Quarters\\n\");\n System.out.println(dimes + \" Dimes\\n\");\n System.out.println(nickels + \" Nickels\\n\");\n System.out.println(pennies + \" Pennies\\n\");\n}", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tScanner sc= new Scanner(System.in);\r\n\t\tint n=sc.nextInt();\r\n\t\tint likedPeople=2;\r\n\t\tint countLiked=2;\r\n\t\tfor(int j=1;j<n;j++) {\r\n\t\t\tlikedPeople=((3*likedPeople)/2);\r\n\t\t\t\r\n\t\t\tcountLiked+=likedPeople;\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(countLiked);\r\n\t}", "public static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.printf(\"Enter the initial deposit amount: \");\n\t\tdouble amount = input.nextDouble();\n\t\t\n\t\tSystem.out.printf(\"Enter annual percentage yield: \");\n\t\tdouble rate = input.nextDouble();\n\t\tdouble monthlyRate = rate / 1200.0;\n\t\t\n\t\tSystem.out.printf(\"Enter maturity period (number of months): \");\n\t\tint month = input.nextInt();\n\t\t\n\t\tdouble sum = 0.0;\n\t\tsum = amount;\n\t\t\n\t\tSystem.out.printf(\"\\nMonth\\t\\tCD Value\\n\");\n\t\tint i;\n\t\tfor (i = 1;i <= month;i++) {\n\t\t\tsum = sum * (1 + monthlyRate);\n\t\t\tSystem.out.printf(\"%d\\t\\t%.2f\\n\", i, sum);\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tint longest = 0;\r\n\t\tint smallest = 999;\r\n\t\tint sum = 0;\r\n\t\tString l = \"\";\r\n\t\tString s = \"\";\r\n\t\tSystem.out.println(\"How many friends do you know?\");\r\n\t\tLongAndShort[] friends = new LongAndShort[input.nextInt()];\r\n\t\tfor (int i = 0; i < friends.length; i++) {\r\n\t\t\tinput.nextLine();\r\n\t\t\tSystem.out.println(\"What is your friend's name?\");\r\n\t\t\tString name = input.nextLine();\r\n\t\t\tSystem.out.println(\"What is his age?\");\r\n\t\t\tint xAge = input.nextInt();\r\n\t\t\tfriends[i] = new LongAndShort(name, xAge);\r\n\t\t}\r\n\t\t// for longest smallest\r\n\t\tSystem.out.println(\"Friends:\");\r\n\t\tfor (int j = 0; j < friends.length; j++) {\r\n\t\t\tSystem.out.println(friends[j].getFull());\r\n\t\t\tString fullname = friends[j].getFull();\r\n\t\t\t// for the average\r\n\t\t\tsum += fullname.length() - 1;\r\n\t\t\t// for the average\r\n\t\t\tif (fullname.length() > longest) {\r\n\t\t\t\tlongest = fullname.length();\r\n\t\t\t\tl = fullname;\r\n\t\t\t}\r\n\t\t\tif (fullname.length() < smallest) {\r\n\t\t\t\tsmallest = fullname.length();\r\n\t\t\t\ts = fullname;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// for longest smallest\r\n\t\t// for search\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Input Search Parameter:\\n1. First Name\\n2. Last Name\\n3. Age\");\r\n\t\tint choice = input.nextInt();\r\n\t\tString comp = \"\";\r\n\t\tint xAge = 0;\r\n\t\tswitch (choice) {\r\n\t\tcase 1:\r\n\t\t\tinput.nextLine();\r\n\t\t\tSystem.out.println(\"What is the First name?\");\r\n\t\t\tcomp = input.nextLine();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tinput.nextLine();\r\n\t\t\tSystem.out.println(\"What is the Last name?\");\r\n\t\t\tcomp = input.nextLine();\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"What is the age?\");\r\n\t\t\txAge = input.nextInt();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tSystem.out.println(\"---------------\");\r\n\t\tfor (int k = 0; k < friends.length; k++) {\r\n\t\t\tif (friends[k].search(choice, comp, xAge)) {\r\n\t\t\t\tSystem.out.println(friends[k].getFull() + \", Age: \" + friends[k].getAge());\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"---------------\");\r\n\t\t// for search\r\n\t\tSystem.out.println(\"Longest Name: \" + l);\r\n\t\tSystem.out.println(\"Smallest Name: \" + s);\r\n\t\tSystem.out.println(\"Range of Length: \" + (l.length() - s.length()));\r\n\t\tSystem.out.println(\"Average Length: \" + (sum / friends.length));\r\n\t\tinput.close();\r\n\t}", "public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n FormattedDivision c = new FormattedDivision();\n System.out.print(c.FormattedDivision(2, 3));\n }", "public static void main(String[] args) {\n\r\n\t\t\t\tScanner Student_data = new Scanner(System.in);\r\n\t\t\t\tScanner Semester_Average = new Scanner(System.in);\r\n\r\n\t\t\t\tString name;\r\n\t\t\t\tString num;\r\n\t\t\t\tint age;\r\n\r\n\t\t\t\tfloat[] Material = new float[5];\r\n\t\t\t\tfloat SeAvg;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.out.print(\"أسمك أدخل : \");\r\n\t\t\t\t\tname = Student_data.nextLine();\r\n\r\n\t\t\t\t\tSystem.out.print(\"الأكاديمي رقمك أدخل : \");\r\n\t\t\t\t\tnum = Student_data.nextLine();\r\n\t\t\t\t\tSystem.out.print(\"عمرك أدخل : \");\r\n\t\t\t\t\tage = Student_data.nextInt();\r\n\r\n\t\t\t\t\tSystem.out.println(\"\\n الطالب معلومات \");\r\n\t\t\t\t\tSystem.out.println(\"الإسم : \" + name);\r\n\t\t\t\t\tSystem.out.println(\"الرقم : \" + num);\r\n\t\t\t\t\tSystem.out.println(\"العمر : \" + age);\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\r\n\t\t\t\t\tSystem.out.println(\"الفصلي معدلك لحساب التالية المواد في درجاتك أدخل : \");\r\n\t\t\t\t\tSystem.out.print(\"1 البرمجة أساسيات : \");\r\n\t\t\t\t\tMaterial[0] = Semester_Average.nextFloat();\r\n\t\t\t\t\tSystem.out.print(\"1 الإنترنت صفحات برمجة : \");\r\n\t\t\t\t\tMaterial[1] = Semester_Average.nextFloat();\r\n\t\t\t\t\tSystem.out.print(\"التعلم مهارات : \");\r\n\t\t\t\t\tMaterial[2] = Semester_Average.nextFloat();\r\n\t\t\t\t\tSystem.out.print(\"1 البيانات قواعد مبادئ : \");\r\n\t\t\t\t\tMaterial[3] = Semester_Average.nextFloat();\r\n\t\t\t\t\tSystem.out.print(\"1 الحاسب تتطبيقات في مقدمة : \");\r\n\t\t\t\t\tMaterial[4] = Semester_Average.nextFloat();\r\n\t\t\t\t\tSeAvg = (Material[0] + Material[1] + Material[2] + Material[3] + Material[4]) / 100;\r\n\r\n\t\t\t\t\tif (SeAvg >= 2.95) {\r\n\t\t\t\t\t\tfor (double i = 0; i <= 10; i++) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"هو معدلك ناجح أنت مبروك ألف : \" + SeAvg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.println(\"هو معدلك !راسب أنت عذرا: \" + SeAvg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tDate currentDate = new Date();\r\n\t\t\t\t\tString D = currentDate.toString();\r\n\t\t\t\t\tSystem.out.println(\"اليوم تاريخ : \" + D);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.out.print(e.toString());\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tStudent_data.close();\r\n\t\t\t\t\tSemester_Average.close();\r\n\r\n\t\t\t\t\tdoSomething();\r\n\t\t\t\t}\r\n\t\t\t}", "public static int boatFare(int age, Scanner console){\r\n int cents=0;\r\n String boatType;\r\n \r\n System.out.print(\"Enter the type of boat (I for Inner Harbor, B for Boston, L for Logan): \");\r\n boatType = console.next();\r\n console.nextLine(); // Consume the rest of the line\r\n \r\n if (boatType.equalsIgnoreCase(\"i\")){\r\n cents = 170;\r\n if((age >= 12 && age <= 18) ||(age >= 65)){ // Students and seniors get 50% off\r\n cents = cents / 2;\r\n }\r\n }\r\n else if (boatType.equalsIgnoreCase(\"b\")){\r\n cents = 600;\r\n if((age >= 12 && age <= 18) ||(age >= 65)){ // Students and seniors get 50% off\r\n cents = cents / 2;\r\n }\r\n }\r\n else if (boatType.equalsIgnoreCase(\"l\")){\r\n cents = 1200;\r\n if(age >= 12 && age <= 18){ // Students get 50% off\r\n cents = cents / 2;\r\n }\r\n else if(age >= 65){\r\n cents = cents - 1000; // Seniors get $10 off\r\n }\r\n }\r\n return cents;\r\n }" ]
[ "0.64519155", "0.61626655", "0.6111131", "0.6089301", "0.5975166", "0.59722376", "0.5915258", "0.59085184", "0.5894468", "0.5818558", "0.58082217", "0.580495", "0.579559", "0.579127", "0.57737476", "0.5760582", "0.57567126", "0.5729226", "0.57073754", "0.5697818", "0.5693909", "0.5687815", "0.5672325", "0.56612617", "0.5659618", "0.5656932", "0.56547415", "0.565291", "0.5641041", "0.56181455", "0.5611206", "0.560081", "0.5586393", "0.5582847", "0.5570653", "0.5561663", "0.5561216", "0.55536973", "0.55521196", "0.5551489", "0.55354637", "0.5529929", "0.5514853", "0.5502767", "0.5495911", "0.54929453", "0.54866755", "0.5478499", "0.54774", "0.54613745", "0.54564255", "0.5453435", "0.54464036", "0.54439163", "0.544107", "0.54409736", "0.5439812", "0.54393244", "0.54388404", "0.54351443", "0.5423715", "0.5423553", "0.5420815", "0.54164183", "0.5413806", "0.54089016", "0.5408133", "0.54056746", "0.5405372", "0.540334", "0.5402757", "0.53971034", "0.5391991", "0.53919506", "0.53895706", "0.5387206", "0.5385136", "0.53848785", "0.53823805", "0.5381901", "0.53813523", "0.5376722", "0.537619", "0.53750145", "0.53743625", "0.5369878", "0.5369235", "0.5363966", "0.5358601", "0.5352832", "0.53493375", "0.5349157", "0.53472155", "0.5338597", "0.53362006", "0.5335344", "0.5334656", "0.5334322", "0.53276247", "0.53226733" ]
0.81786156
0
/ A helper for a set of "show a toast" methods
private void showToast(final String message, final int toastLength) { post(new Runnable() { @Override public void run() { Toast.makeText(getActivity(), message, toastLength).show(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showToast(String message);", "void showToast(String message);", "void showToast(String value);", "protected void toast() {\n }", "void toast(CharSequence sequence);", "private void showErrorToast() {\n }", "void toast(int resId);", "private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }", "private void makeToast(String msg)\n {\n FinanceApp.serviceFactory.getUtil().makeAToast(this, msg);\n }", "static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }", "@Override\n\tpublic void createToast(String slogan, float duration) {\n\t\tif (Gdx.app.getType() == ApplicationType.Android) {\n\t\t\tgGame.iFunctions.createToast(slogan, duration);\n\t\t} else\n\t\tsuper.createToast(slogan, duration);\n\t}", "private void displayToast(CharSequence text){\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "protected void toastshow() {\n \n\t\tToast toast=new Toast(getApplicationContext());\n\t\tImageView imageView=new ImageView(getApplicationContext());\n\t\timageView.setImageResource(R.drawable.icon);\n\t\ttoast.setView(imageView);\n\t\ttoast.show();\t\n\t}", "public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}", "protected void showToast(CharSequence text) {\r\n\t Context context = getApplicationContext();\r\n\t int duration = Toast.LENGTH_SHORT;\r\n\t \r\n\t Toast toast = Toast.makeText(context, text, duration);\r\n\t toast.show();\r\n\t}", "protected void showToast(String message) {\n\tToast.makeText(this, message, Toast.LENGTH_SHORT).show();\n}", "public void showToast(String msg){\n Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n }", "private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }", "private void showToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();\n }", "void onMessageToast(String string);", "public void showToast(String string, int length) {\n System.out.println(\"toast:\" + string);\n }", "@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }", "private void toast(String string){\n Toast.makeText(this, string, Toast.LENGTH_SHORT).show();\n }", "private static void showToast(String stringToDisplay, Context context) {\n Toast.makeText(context, stringToDisplay, Toast.LENGTH_SHORT).show();\n }", "private void makeToast(String message, boolean longToast) {\n\t\tif (longToast)\t{ Toast.makeText(this, message, Toast.LENGTH_LONG).show(); }\n\t\telse\t\t\t{ Toast.makeText(this, message, Toast.LENGTH_SHORT).show(); }\n\t}", "private void showToast(String message){\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "private void showToast(final int resid) {\n\t\tm_toastHandler.post(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tToast.makeText(InstrumentService.this, resid, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t});\n\t}", "public static void showToast(Context context, String message, int duration) {\n\n if (message.contains(\"任务\") && !getTopActivity(context).contains(\"HomeActivity\")) {\n return;\n }\n\n if (sIsAllowShow) {\n Toast toast = new Toast(context);\n View view = LayoutInflater.from(context).inflate(R.layout.toast_universal, null);\n TextView messageText = view.findViewById(R.id.toast_universal_message_text);\n messageText.setText(message);\n toast.setDuration(duration);\n toast.setView(view);\n toast.setGravity(Gravity.CENTER, 0, 0);\n toast.show();\n }\n }", "private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "public void showToast(String text){\n Toast.makeText(this,text,Toast.LENGTH_SHORT).show();\n }", "@JavascriptInterface\r\n\t public void showToast(String toast) {\r\n\t Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();\r\n\t }", "public void DisplayToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_SHORT).show();\n }", "@JavascriptInterface\n public void showToast(String toast) {\n Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();\n }", "@JavascriptInterface\n public void showToast(String toast) {\n Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();\n }", "@JavascriptInterface\n public void showToast(String toast) {\n Toast.makeText(mContext, toast, Toast.LENGTH_LONG).show();\n }", "@JavascriptInterface\n public void showToast(String toast) {\n Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();\n }", "@JavascriptInterface\n public void showToast(String toast) {\n Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();\n }", "public static void displayToast(Context context, String msg) {\n Toast.makeText(context, msg, Toast.LENGTH_LONG).show();\n\n }", "private static void showToastText(String infoStr, int TOAST_LENGTH) {\n Context context = null;\n\t\ttoast = getToast(context);\n\t\tTextView textView = (TextView) toast.getView().findViewById(R.id.tv_toast);\n\t\ttextView.setText(infoStr);\n textView.setTypeface(Typeface.SANS_SERIF);\n\t\ttoast.setDuration(TOAST_LENGTH);\n\t\ttoast.show();\n\t}", "public void ToastMessage() {\n\n // create toast message object\n final Toast toast = Toast.makeText(Product_Details_Page_Type_4.this,\n \"Product added to cart\",Toast.LENGTH_LONG);\n // show method call to show Toast message\n toast.show();\n\n // create handler to set duration for toast message\n Handler handler = new Handler() {\n\n @Override\n public void close() {\n // set duration for toast message\n toast.setDuration(100);\n // cancel toast message\n toast.cancel();\n }\n @Override\n public void flush() {}\n\n @Override\n public void publish(LogRecord record) {}\n };\n }", "public void toast(String toast) {\n\t\t// TODO Auto-generated method stub\n\t\t Toast toast1 = Toast.makeText(getApplicationContext(), toast, \n Toast.LENGTH_LONG); \n\t\t toast1.setDuration(1);\n\t\t toast1.show();\n\t\t \n\t}", "static void displayToast(Handler handler, final Context con, final String text, final int toast_length){\n\t\thandler.post(new Runnable(){\n\t\t\tpublic void run(){\n\t\t\t\tToast.makeText(con, text, toast_length).show();\n\t\t\t}\n\t\t});\n\t}", "public static void toastText(Context context, String s)\n\t{\n\t\tif(Utils.ConstantVars.canToastDebugText) \n\t\t\tToast.makeText(context, s, 2 * Toast.LENGTH_LONG).show();\n\t}", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "public void showToast(View view) {\n // Initialize an object named 'toast' using the 'Toast' class\n Toast toast = Toast.makeText(this, R.string.toast_message, Toast.LENGTH_SHORT);\n\n // Use the method 'show()' under the 'Toast' class to show a message\n toast.show();\n }", "private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "private void makeToast(String string) {\n\t\tToast.makeText(this, string, Toast.LENGTH_SHORT).show();\r\n\r\n\t}", "private void doToast() {\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\t\r\n\t\t// Create and send toast\r\n\t\tContext context = getApplicationContext();\r\n\t\tint duration = Toast.LENGTH_SHORT;\r\n\t\tToast toast = Toast.makeText(context, message, duration);\r\n\t\ttoast.show();\r\n\t}", "public void notificacionToast(String mensaje){\n Toast toast = Toast.makeText(getApplicationContext(),mensaje,Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n }", "protected void showToast(String string)\r\n\t{\n\t\tToast.makeText(MainActivity.this, string, Toast.LENGTH_SHORT).show();\r\n\t}", "public static void toastIt(Context context, Toast toast, CharSequence msg) {\n if(toast !=null){\n toast.cancel();\n }\n\n //Make and display new toast\n toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);\n toast.show();\n }", "protected void toastshow1() {\n \n\t\tToast toast=Toast.makeText(this, \"image and text\", Toast.LENGTH_LONG);\n\t\t\n\t\tLinearLayout linearLayout=new LinearLayout(this);\n\t\tlinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tImageView imageView=new ImageView(this);\n\t\timageView.setImageResource(R.drawable.icon);\n\t\tButton button=new Button(this);\n\t\tbutton.setText(\"progress over\");\n\t\tView toastView=toast.getView();\n\t\tlinearLayout.addView(imageView);\n\t\tlinearLayout.addView(button);\n\t\tlinearLayout.addView(toastView);\n\t\t\n\t\ttoast.setView(linearLayout);\n\t\ttoast.show();\n\t\t\n\t}", "public static void showToast(Context context, String text) {\n //Toast.makeText(context, text, Toast.LENGTH_SHORT).show();\n showToastAtCenter(context, text);\n }", "public static void showToast(Context context, String msg) {\n Toast.makeText(context, \"\" + msg, Toast.LENGTH_LONG).show();\n\n }", "public void ToastPopper(String t){\n Context context = getApplicationContext();\n CharSequence text = t;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "private void showToast(String message) {\n\t\tToast toast = Toast.makeText(getApplicationContext(), message,\n\t\t\t\tToast.LENGTH_SHORT);\n\n\t\ttoast.setGravity(Gravity.CENTER | Gravity.CENTER_HORIZONTAL, 0, 0);\n\t\ttoast.show();\n\t}", "private void displayToast(String message) {\n Toast.makeText(getLayoutInflater().getContext(), message, Toast.LENGTH_SHORT).show();\n }", "private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }", "private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }", "private void showToast(String text, int length) {\r\n if (toast != null)\r\n toast.cancel();\r\n\r\n toast = Toast.makeText(this, text, length);\r\n toast.show();\r\n }", "private void showToast(String msg) {\r\n Toast.makeText(Imprimir.this, msg, Toast.LENGTH_LONG).show();\r\n }", "public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }", "public void showToastMessage(String str) {\n Toast.makeText(self, str, Toast.LENGTH_SHORT).show();\n }", "public static void showToast(@CheckForNull final String msg, final int duration) {\n showToast(msg, duration, false);\n }", "public void showToast(String text)\n {\n Text icon = GlyphsDude.createIcon(FontAwesomeIconName.CHECK_CIRCLE,\"1.5em\");\n icon.setFill(Color.WHITE);\n Label l = new Label(text) ;\n l.setTextFill(Color.WHITE);\n l.setGraphic(icon);\n snackbar = new JFXSnackbar(PrinciplePane);\n snackbar.enqueue( new JFXSnackbar.SnackbarEvent(l));\n }", "public void showToast(Boolean usernameTaken) {\n String action = \"\";\n if (usernameTaken) {\n action = \"Username is already taken\";\n } else {\n action = \"An error has occurred. Please try again.\";\n }\n Toast t = Toast.makeText(this, action,\n Toast.LENGTH_SHORT);\n t.setGravity(Gravity.TOP, Gravity.CENTER, 150);\n t.show();\n }", "public void showToast(View clickedButton) {\n String greetingText = getString(R.string.greeting_text);\n Toast tempMessage\n = Toast.makeText(this, greetingText,\n Toast.LENGTH_SHORT);\n tempMessage.show();\n }", "public void toast (String msg, boolean longLength)\n {\n Toast.makeText (getApplicationContext(), msg,\n (longLength ? Toast.LENGTH_LONG : Toast.LENGTH_SHORT)\n ).show ();\n }", "public void displayToastMessage(String msg) {\n\t\tToast toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);\n\t\ttoast.setGravity(Gravity.CENTER, 0, 0);\n\t\ttoast.show();\n\t}", "private void makeToast(String message){\n Toast.makeText(SettingsActivity.this, message, Toast.LENGTH_LONG).show();\n }", "public void displayToast(String message) {\n displayToast(message, true);\n }", "private void toastMessage(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n\n }", "public void showToastMessage(Context mContext, String msg, int duration) {\n\n //If the call wants to use the default time\n if(duration == -1) {\n duration = LONG;\n }\n\n Toast toast = Toast.makeText(mContext, msg, duration);\n toast.show();\n }", "public static void showToast(Context context, String msg) {\n Toast.makeText(context, msg, Toast.LENGTH_LONG).show();\n }", "public void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message,\n Toast.LENGTH_SHORT).show();\n }", "private void displayToast(String message) {\n\n //get the LayoutInflater and inflate the custom_toast layout\n LayoutInflater view = getLayoutInflater();\n View layout = view.inflate(R.layout.toast, null);\n\n //get the TextView from the custom_toast layout\n TextView text = layout.findViewById(R.id.txtMessage);\n text.setText(message);\n\n //create the toast object, set display duration,\n //set the view as layout that's inflated above and then call show()\n Toast toast = new Toast(getApplicationContext());\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setView(layout);\n toast.show();\n }", "public void makeToast(String string) {\n Toast.makeText(this, string, Toast.LENGTH_LONG).show();\n }", "private static void checkToast() {\n\t\tif (mToast == null) {\n\t\t\tmToast = Toast.makeText(GlobalApp.getApp(), null,\n\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t}\n\t}", "public interface IToast {\n void showToast(Context context, String txt);\n}", "public static void showToast(Context context, CharSequence message) {\n Toast.makeText(context, message, Toast.LENGTH_SHORT).show();\n }", "private void displayToast() {\n if(getActivity() != null && toast != null) {\n Toast.makeText(getActivity(), toast, Toast.LENGTH_LONG).show();\n toast = null;\n }\n }", "@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }", "public void showMessage(String text)\n {\n Toast.makeText(this, text, Toast.LENGTH_SHORT).show();\n }", "private void showToast(final String message) {\n main.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(main.getApplicationContext(), message, Toast.LENGTH_LONG).show();\n }\n });\n }", "public void showMessage(int i) {\n ToastHelper.showLongToast(getContext().getString(i));\n }", "public void ting(String msg) {\r\n\t\tToast.makeText(this, msg, Toast.LENGTH_SHORT).show();\r\n\t}", "private void messageToUser(CharSequence text)\n {\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "@SuppressLint(\"ShowToast\")\r\n\tpublic void createVrToast(String text) {\r\n\t\tif ( text == null ) {\r\n\t\t\ttext = \"null toast text!\";\r\n\t\t}\r\n\t\tLog.v(TAG, \"createVrToast \" + text);\r\n\r\n\t\t// If we haven't set up the surface / surfaceTexture yet,\r\n\t\t// do it now.\r\n\t\tif (toastTexture == null) {\r\n\t\t\ttoastTexture = nativeGetPopupSurfaceTexture(appPtr);\r\n\t\t\tif (toastTexture == null) {\r\n\t\t\t\tLog.e(TAG, \"nativePreparePopup returned NULL\");\r\n\t\t\t\treturn; // not set up yet\r\n\t\t\t}\r\n\t\t\ttoastSurface = new Surface(toastTexture);\r\n\t\t}\r\n\r\n\t\tToast toast = Toast.makeText(this.getApplicationContext(), text,\r\n\t\t\t\tToast.LENGTH_SHORT);\r\n\r\n\t\tthis.createVrToast( toast.getView() );\r\n\t}", "public void showToast(final String message, final int length) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(), message, length).show();\n }\n });\n }", "private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }", "public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }", "public void showToast(final String message){\n\t runOnUiThread(new Runnable() {\n\t public void run()\n\t {\n\t Toast.makeText(VisitMultiplayerGame.this, message, Toast.LENGTH_SHORT).show();\n\t }\n\t });\n\t}", "@SuppressLint(\"StringFormatMatches\")\n private String createToast(double grade) {\n String message;\n Resources res = getResources();\n message = res.getString(R.string.toast_message, grade);\n return message;\n }", "static public void show(String message, boolean isLongDuration) {\n new UNToast().showInternal(message, isLongDuration);\n }", "protected void showToastMessage(String message)\n {\n Toast messageToast = null;\n messageToast= Toast.makeText(this,message,Toast.LENGTH_SHORT);\n\n messageToast.show();\n }", "private void displayToast(String paintingDescription) {\n Toast.makeText(this, paintingDescription, Toast.LENGTH_SHORT).show();\n }" ]
[ "0.83337414", "0.83337414", "0.79352283", "0.78524554", "0.7812877", "0.77536577", "0.7683091", "0.7630768", "0.76019675", "0.7566505", "0.75301677", "0.745846", "0.74507344", "0.7404927", "0.7397405", "0.73857373", "0.7327923", "0.7318424", "0.72929084", "0.7280681", "0.72801113", "0.7260811", "0.7248133", "0.7242238", "0.7236094", "0.72313815", "0.72166467", "0.7216409", "0.72138065", "0.7203245", "0.71957874", "0.7191177", "0.71677136", "0.71677136", "0.7166896", "0.71533126", "0.71533126", "0.7152597", "0.71525717", "0.71390224", "0.7129164", "0.7128335", "0.71250045", "0.7119268", "0.7119268", "0.7119194", "0.7114142", "0.70980644", "0.7088762", "0.70759964", "0.70671356", "0.7056155", "0.70547396", "0.70493215", "0.70331407", "0.7027799", "0.70273", "0.70273", "0.70273", "0.7021723", "0.7020904", "0.70198363", "0.70198363", "0.7016931", "0.7014123", "0.70026326", "0.69903886", "0.69902503", "0.6973448", "0.69729346", "0.6968871", "0.69528186", "0.69480807", "0.6944132", "0.6938006", "0.6930255", "0.69286454", "0.6914803", "0.690365", "0.69001055", "0.68990374", "0.6885047", "0.68582904", "0.68361986", "0.68337345", "0.68279696", "0.6819922", "0.68133307", "0.67988956", "0.6795462", "0.67679423", "0.6766831", "0.6752813", "0.6752165", "0.6738729", "0.6725082", "0.67185134", "0.6711128", "0.6701638", "0.66983014" ]
0.7095325
48
FIXME: This is a hack. Fix the Handler madness!
public void networkError() { Context context = getActivity(); if (context == null) { return; } showToast(context.getString(R.string.status_network_error), Toast.LENGTH_LONG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHandler() {\n\t\treturn 1;\n\t}", "CreateHandler()\n {\n }", "protected void handlerAdded0(ChannelHandlerContext ctx) throws Exception {}", "protected abstract void runHandler();", "@Override\n\tpublic void handleResponse() {\n\t\t\n\t}", "protected Object getHandlerInternal(HttpServletRequest request) {\n String lookupPath = WebUtils.getLookupPathForRequest(request, this.alwaysUseFullPath);\n logger.debug(\"Looking up handler for: \" + lookupPath);\n return lookupHandler(lookupPath);\n }", "@Override\n\tpublic void dispatchHandler(Message msg) {\n\t\t\n\t}", "public Handler getHandler();", "@Override\n\tprotected void dispatch(CometResponseHandler handler) {\n\t\t\n\t}", "protected Object lookupHandler(String urlPath, HttpServletRequest request) throws Exception\r\n\t{\n\t\tObject handler = super.lookupHandler(urlPath, request);\r\n\t\tif (handler == null)\r\n\t\t{ // 800, 如果uri直接查找不到,则匹配前面一个\r\n\t\t\tString path = urlPath.substring(0, urlPath.indexOf('/', 2));\r\n\t\t\thandler = super.lookupHandler(path, request);\r\n//\t\t\tSystem.out.println(\"path: \" + path + \":\" + handler);\r\n\t\t}\r\n\t\thandler = handler == null ? getRootHandler() : handler;\r\n//\t\tSystem.out.println(\"urlPath: \" + urlPath + \":\" + handler);\r\n\t\treturn handler;\r\n\t}", "static String getHandler(HttpServletRequest request) {\n String requestURI = request.getRequestURI();\n return requestURI.substring(getDividingIndex(requestURI) + 1);\n }", "Handler<Q, R> handler();", "IHandler next();", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "public ContentHandler getContentHandler()\n {\n return (contentHandler == base) ? null : contentHandler;\n }", "EzyDecodeHandler nextHandler();", "protected void handleMessage(Message msg) {}", "default Handler asHandler() {\n return new HandlerBuffer(this);\n }", "@Override\n\tpublic void OnRequest() {\n\t\t\n\t}", "ByteHandler getByteHandler();", "Object handle(Object request);", "@Override\r\n\t\t\tpublic void onRequest() {\n\t\t\t\t\r\n\t\t\t}", "static Handler getCallbackHandler() {\n return sCallbackHandler;\n }", "@Override\r\n public void handleMessage(Message msg) {\n }", "public void handle() throws Exception {}", "@Override\n\t\t\t\t\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "protected void handlerRemoved0(ChannelHandlerContext ctx) throws Exception {}", "@Override\n public void handleMessage(Message message) {}", "@Override\n protected Handler createHandler(Looper looper) {\n return new CatchingWorkerHandler(looper);\n }", "DataHandler getDataHandler();", "@Override\n\tpublic void initiateHandling() {\n\t}", "@Override\n\tpublic void initiateHandling() {\n\t}", "@Override\n\tpublic void initiateHandling() {\n\t}", "@Override\r\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n throws Exception {\n \r\n }", "public Handler getHandler() {\r\n return handler;\r\n }", "public Handler getHandler() {\r\n return handler;\r\n }", "public Object handleRequest(P request) throws Exception;", "@Override\r\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n Exception ex) throws Exception {\n\r\n }", "@Override\n\t\t\t\t\tpublic void onReqStart() {\n\t\t\t\t\t}", "public GenericHandler() {\n\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public void run() {\n handler.post(Update);\n }", "private void eventhandler() {\n\r\n\t}", "public Handler getHandler() {\n return null;\n }", "@Override\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n throws Exception {\n\n }", "@Override\n public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n throws Exception {\n\n }", "private byte[] execHandlerWrite( Message msg ) {\n\t\tbyte[] bytes = (byte[]) msg.obj;\n \tString data = mByteUtility.bytesToHexString( bytes ); \n\t\tlog_d( \"EventWrite \" + data );\n\t\treturn bytes;\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void handle() {\n runHandler();\n }", "private Handler getHandler(Request request) {\n return resolver.get(request.getClass().getCanonicalName()).create();\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:47.205 -0500\", hash_original_method = \"7339E0A10658134ACC2105D49EF71E34\", hash_generated_method = \"A7DB82BE290D3AE425288F9384EFF5B5\")\n \npublic synchronized void createHandler() {\n if (mHandler == null) {\n mHandler = new Handler() {\n @DSSafe(DSCat.SAFE_LIST)\n @Override\n public void handleMessage(Message msg) {\n // Runs on the WebKit thread.\n switch (msg.what) {\n case GET_ORIGINS: {\n Set origins = nativeGetOrigins();\n ValueCallback callback = (ValueCallback) msg.obj;\n Map values = new HashMap<String, Object>();\n values.put(CALLBACK, callback);\n values.put(ORIGINS, origins);\n postUIMessage(Message.obtain(null, RETURN_ORIGINS, values));\n } break;\n case GET_ALLOWED: {\n Map values = (Map) msg.obj;\n String origin = (String) values.get(ORIGIN);\n ValueCallback callback = (ValueCallback) values.get(CALLBACK);\n boolean allowed = nativeGetAllowed(origin);\n Map retValues = new HashMap<String, Object>();\n retValues.put(CALLBACK, callback);\n retValues.put(ALLOWED, Boolean.valueOf(allowed));\n postUIMessage(Message.obtain(null, RETURN_ALLOWED, retValues));\n } break;\n case CLEAR:\n nativeClear((String) msg.obj);\n break;\n case ALLOW:\n nativeAllow((String) msg.obj);\n break;\n case CLEAR_ALL:\n nativeClearAll();\n break;\n }\n }\n };\n\n // Handle the queued messages\n if (mQueuedMessages != null) {\n while (!mQueuedMessages.isEmpty()) {\n mHandler.sendMessage(mQueuedMessages.remove(0));\n }\n mQueuedMessages = null;\n }\n }\n }", "@Override\n\tpublic Handler getHandler() {\n\t\treturn mHandler;\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void handleRequest(Request req) {\n\n }", "protected int addInboundHandler(InboundHandler handler) {\r\n int UID = handler.hashCode();\r\n l.logD(\"Adding Handler \" + handler.getName() + \"with UID \" + UID);\r\n handlers.putIfAbsent(UID, handler);\r\n return UID; \r\n }", "public void checkHandler()\n {\n ContextManager.checkHandlerIsRunning();\n }", "private void callHandlerAddedForAllHandlers() {\n /*\n r2 = this;\n monitor-enter(r2)\n r0 = 1\n r2.registered = r0 // Catch:{ all -> 0x0015 }\n io.netty.channel.DefaultChannelPipeline$PendingHandlerCallback r0 = r2.pendingHandlerCallbackHead // Catch:{ all -> 0x0015 }\n r1 = 0\n r2.pendingHandlerCallbackHead = r1 // Catch:{ all -> 0x0015 }\n monitor-exit(r2) // Catch:{ all -> 0x0015 }\n L_0x000a:\n if (r0 == 0) goto L_0x0012\n r0.execute()\n io.netty.channel.DefaultChannelPipeline$PendingHandlerCallback r0 = r0.next\n goto L_0x000a\n L_0x0012:\n return\n L_0x0013:\n monitor-exit(r2) // Catch:{ all -> 0x0015 }\n throw r0\n L_0x0015:\n r0 = move-exception\n goto L_0x0013\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p043io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers():void\");\n }", "@Override\n protected void prot() {\n }", "@Override\n\tpublic Handler getHandler() {\n\t\t// TODO Auto-generated method stub\n\t\treturn mHandler;\n\t}", "protected void h() {}", "@Override\n\tpublic void exceptionHandler(Handler<Exception> handler) {\n\t\t\n\t}", "@Override\r\n public void afterCompletion(HttpServletRequest request,\r\n HttpServletResponse response, Object handler, Exception ex)\r\n throws Exception \r\n {\n }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\n\t\t\t}", "public void handle(HttpExchange exch) {\n\n }", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "static synchronized Handler getHandler() {\n checkState();\n return sInstance.mHandler;\n }", "@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\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}", "private void requestHandler(Object context)\n {\n final String funcName = \"requestHandler\";\n @SuppressWarnings(\"unchecked\")\n TrcRequestQueue<Request>.RequestEntry entry = (TrcRequestQueue<Request>.RequestEntry) context;\n Request request = entry.getRequest();\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.TASK, \"request=%s\", request);\n }\n\n request.canceled = entry.isCanceled();\n if (!request.canceled)\n {\n if (request.readRequest)\n {\n request.buffer = readData(request.address, request.length);\n if (debugEnabled)\n {\n if (request.buffer != null)\n {\n dbgTrace.traceInfo(funcName, \"readData(addr=0x%x,len=%d)=%s\",\n request.address, request.length, Arrays.toString(request.buffer));\n \n }\n }\n }\n else\n {\n request.length = writeData(request.address, request.buffer, request.length);\n }\n }\n\n if (request.completionEvent != null)\n {\n request.completionEvent.set(true);\n }\n\n if (request.completionHandler != null)\n {\n request.completionHandler.notify(request);\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.TASK);\n }\n }", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\r\n\t}", "@Override\n\t\tpublic void onIOException(IOException e, Object state) {\n \n \t}", "@Override\n\t\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, WsClientMessage msg) throws Exception {\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void handle(String target, HttpServletRequest request, HttpServletResponse response, boolean[] isHandled) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest req, HttpServletResponse resp, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "protected synchronized ScriptHandler getScriptHandler(String request, String[] params) {\r\n \thandlerLock.lock();\r\n if (currentLoader != null || currentScriptHandler != null) {\r\n }\r\n if (params == null)\r\n currentScriptHandler = new ScriptHandler(request);\r\n else\r\n currentScriptHandler = new ScriptHandler(request, params);\r\n return currentScriptHandler;\r\n }", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tpublic Response handle(Request request) {\n\t\treturn null;\n\t}", "public HandlePiaoSvlt() {\n\t\tsuper();\n\t}", "private synchronized Handler getCustomHandler( ) {\n if( (customHandler != null ) \n ||(customHandlerError) ) \n {\n return customHandler;\n }\n LogService logService = getLogService( );\n if( logService == null ) {\n return null;\n }\n String customHandlerClassName = null;\n try {\n customHandlerClassName = logService.getLogHandler( );\n\n customHandler = (Handler) getInstance( customHandlerClassName );\n // We will plug in our UniformLogFormatter to the custom handler\n // to provide consistent results\n if( customHandler != null ) {\n customHandler.setFormatter( new UniformLogFormatter(componentManager.getComponent(Agent.class)) );\n }\n } catch( Exception e ) {\n customHandlerError = true; \n new ErrorManager().error( \"Error In Initializing Custom Handler \" +\n customHandlerClassName, e, ErrorManager.GENERIC_FAILURE );\n }\n return customHandler;\n }", "public void handler(AbstractRequest request) {\n\t\tSystem.out.println(\"===handle1\" + request.getContent());\n\t}", "@Override\r\n\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\r\n\t\t}", "public String getHandler() {\n return handler;\n }", "HandlerHelper getHandlerHelper() {\n return handlerHelper;\n }", "@Override\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\n\t\t\tthrows Exception {\n\n\t}", "@Override\n\tprotected void handleClose() {\n\t}", "void handleRequest();", "public void handleMeta () {\n\tstatus = \"Handling meta page\";\n\tMetaHandlerHandler mhh = new MetaHandlerHandler ();\n\ttry {\n\t mhh.handleMeta (this, request, tlh.getProxy (), tlh.getClient ());\n\t} catch (IOException ex) {\n\t logAndClose (null);\n\t}\n }" ]
[ "0.611931", "0.6058481", "0.60129255", "0.5968555", "0.5935589", "0.59033394", "0.5849194", "0.5837644", "0.5824154", "0.58201146", "0.58182955", "0.5801722", "0.576261", "0.57501423", "0.57501423", "0.57354164", "0.57037145", "0.56800807", "0.5680021", "0.5644254", "0.55862343", "0.5579922", "0.55695313", "0.5563305", "0.5562199", "0.5542541", "0.5533806", "0.5525035", "0.55211574", "0.55059844", "0.5500389", "0.5479004", "0.5479004", "0.5479004", "0.54787296", "0.5470515", "0.5470515", "0.5470085", "0.5469057", "0.54678565", "0.54650575", "0.5463765", "0.5460125", "0.5447703", "0.5444097", "0.5433461", "0.5433461", "0.5432512", "0.5428443", "0.5417558", "0.5417487", "0.5409939", "0.54085654", "0.54029185", "0.5401326", "0.53966326", "0.539623", "0.53678435", "0.5367176", "0.5360777", "0.5360005", "0.5349785", "0.5343528", "0.5336669", "0.5332715", "0.53320324", "0.53314584", "0.5330453", "0.53293794", "0.5327116", "0.5327116", "0.5319928", "0.5319043", "0.5319043", "0.5319043", "0.5319043", "0.5319043", "0.5319043", "0.5319043", "0.5315669", "0.5313313", "0.53115296", "0.53053504", "0.52998316", "0.52967405", "0.5290892", "0.528436", "0.528436", "0.528436", "0.528436", "0.5281911", "0.52787215", "0.5278571", "0.5275758", "0.527327", "0.52605873", "0.52584356", "0.5247885", "0.52431685", "0.5240668", "0.5235285" ]
0.0
-1
Called from UI thread when user select Delete
public void onDelete() { if (DEBUG) Log.e(Thread.currentThread().getStackTrace()[2].getClassName(), Thread.currentThread().getStackTrace()[2].getMethodName()); showDialog(R.id.dialog_confirm_delete); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void actionDelete() {\r\n showDeleteDialog();\r\n }", "void deleteButton_actionPerformed(ActionEvent e) {\n doDelete();\n }", "void onDeleteClicked();", "private void handleDeletePressed() {\n if (mCtx == Context.CREATE) {\n finish();\n return;\n }\n\n DialogFactory.deletion(this, getString(R.string.dialog_note), () -> {\n QueryService.awaitInstance(service -> deleteNote(service, mNote.id()));\n }).show();\n }", "void onDelete();", "@Override\n\tpublic void deleteSelected() {\n\n\t}", "public void pressOnDeleteBtn() {\n Network.sendMsg(\n new FileDeleteRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }", "private void delete(ActionEvent e){\r\n if (client != null){\r\n ConfirmBox.display(\"Confirm Deletion\", \"Are you sure you want to delete this entry?\");\r\n if (ConfirmBox.response){\r\n Client.deleteClient(client);\r\n AlertBox.display(\"Delete Client\", \"Client Deleted Successfully\");\r\n // Refresh view\r\n refresh();\r\n \r\n }\r\n }\r\n }", "public void handleDelete(ActionEvent event) throws InterruptedException{\r\n \t tempUser.removeUser(currentUser);\r\n \t feedback_Manage.setText(\"User Remove Successful!\");\r\n \t this.changeView(\"../view/Login.fxml\");\r\n }", "@Override\r\n\tpublic void onDelete() {\n\t\tsuper.onDelete();\r\n\t}", "@FXML\n\tprivate void handleDeleteTaxi() {\n\t\tint selectedIndex = TaxiTable.getSelectionModel().getSelectedIndex();\n\t\tif (selectedIndex >= 0) {\n\t\t\tTaxiTable.getItems().remove(selectedIndex);\n\t\t} else {\n\t\t\t// Nothing selected.\n\t\t}\n\t}", "@FXML public void deleteBT_handler(ActionEvent e) {\n\t\tif(list.getSelectionModel().getSelectedIndex() == -1) {\n\t\t\tAlert error = new Alert(AlertType.ERROR, \"Nothing Selected.\\nPlease select correctly or add new User\", ButtonType.OK);\n\t error.showAndWait();\n\t\t}\n\t\telse {\n\t\t\tAlert warning = new Alert(AlertType.WARNING,\"Delete this User from list?\", ButtonType.YES, ButtonType.NO);\n\t warning.showAndWait();\n\t if(warning.getResult() == ButtonType.NO){\n\t return;\n\t }\n\t\n\t int idx = list.getSelectionModel().getSelectedIndex();\n\t if(list.getSelectionModel().getSelectedItem().getUserName().equals(\"stock\")) {\n\t \tAlert error = new Alert(AlertType.ERROR, \"You can't delete stock username\", ButtonType.OK);\n\t error.showAndWait();\n\t \treturn;\n\t }\n\t obs.remove(idx);\n\t mgUsr.arrList.remove(idx);\n\t\t}\n\t}", "@Override\r\n\tpublic void adminSelectDelete() {\n\t\t\r\n\t}", "@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }", "private void deleteButtonClicked(){\n\t\tif (theDialogClient != null) theDialogClient.dialogFinished(DialogClient.operation.DELETEING);\n\t\tdispose();\n\t}", "@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}", "public void onDelete() {\n }", "@Override\n public void onClickDelete() {\n new DeleteDialog(this.getActivity(), this).show();\n }", "@Override\n\tpublic void deleteClick(int id) {\n\t\t\n\t}", "@FXML\r\n public void onDelete() {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Mensagem\");\r\n alert.setHeaderText(\"\");\r\n alert.setContentText(\"Deseja excluir?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n AlunoModel alunoModel = tabelaAluno.getItems().get(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n\r\n if (AlunoDAO.executeUpdates(alunoModel, AlunoDAO.DELETE)) {\r\n tabelaAluno.getItems().remove(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n alert(\"Excluido com sucesso!\");\r\n desabilitarCampos();\r\n } else {\r\n alert(\"Não foi possivel excluir\");\r\n }\r\n }\r\n }", "private boolean actionDelete()\n {\n Debug.enter();\n onDeleteListener.onDelete();\n dismiss();\n Debug.leave();\n return true;\n }", "@FXML\n private void handleDeletePerson() {\n //remove the client from the view\n int selectedIndex = informationsClients.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n //remove the client from the database\n ClientManager cManager = new ClientManager();\n cManager.deleteClient(informationsClients.getSelectionModel().getSelectedItem().getId());\n informationsClients.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"Erreur : Pas de selection\");\n alert.setHeaderText(\"Aucun client n'a été selectionné\");\n alert.setContentText(\"Veuillez selectionnez un client.\");\n alert.showAndWait();\n }\n }", "public void delete() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"deleteButton\").click();\n\t}", "@Override\r\n\tpublic void deleteObjectListener(ActionEvent e) {\n\t\t\r\n\t}", "@FXML\n private void deleteRow(ActionEvent event){\n if(facilitiesView.getSelectionModel().getSelectedItem()==null){\n errorBox(\"Feil\", \"Det er ingen rader som er markert\", \"Vennligst marker en rad i tabellen\");\n }\n else{\n Alert mb = new Alert(Alert.AlertType.CONFIRMATION);\n mb.setTitle(\"Bekreft\");\n mb.setHeaderText(\"Du har trykket slett på \"+ facilitiesView.getSelectionModel().getSelectedItem().getFacilityName());\n mb.setContentText(\"Ønsker du virkerlig å slette dette lokalet?\");\n mb.showAndWait().ifPresent(response -> {\n if(response== ButtonType.OK){\n observableList.remove(facilitiesView.getSelectionModel().getSelectedItem());\n\n File file = new File(EditedFiles.getActiveFacilityFile());\n file.delete();\n try {\n WriterThreadRunner.WriterThreadRunner(getFacilities(), EditedFiles.getActiveFacilityFile());\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }\n });\n }\n }", "@FXML\n\tprivate void handleDelete() {\n\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\talert.getButtonTypes().clear();\n\t\talert.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO);\n\t\talert.setHeaderText(lang.getString(\"deleteCustomerMessage\"));\n\t\talert.initOwner(stage);\n\t\talert.showAndWait()\n\t\t.filter(answer -> answer == ButtonType.YES)\n\t\t.ifPresent(answer -> {\n\t\t\tCustomer customer = customerTable.getSelectionModel().getSelectedItem();\n\t\t\tdeleteCustomer(customer);\n\t\t});\n\t}", "public void delete() {\n\t\tcmd = new DeleteCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "@Override\n public void onClick(View v) {\n delete();\n }", "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "@FXML\n\tprivate void deleteSelected(ActionEvent event) {\n\t\tint selectedIndex = taskList.getSelectionModel().getSelectedIndex();\n\t\tString task = taskList.getItems().get(selectedIndex);\n\t\ttaskList.getSelectionModel().clearSelection();\n\t\ttaskList.getItems().remove(task);\n\t\tchatView.setText(\"\");\n\t\ttaskList.getItems().removeAll();\n\t\tString task_split[] = task.split(\" \", 2);\n\t\tString removeTask = task_split[1];\n\t\tif (task.contains(\"due by\")) {\n\t\t\tString[] taskDate = task_split[1].split(\"\\\\s+\");\n\t\t\tSystem.out.println(taskDate);\n\t\t\tString end = taskDate[taskDate.length - 3];\n\t\t\tSystem.out.println(end);\n\t\t\tremoveTask = task_split[1].substring(0, task_split[1].indexOf(end)).trim();\n\t\t\tSystem.out.println(removeTask);\n\n\t\t}\n\t\tclient.removeTask(removeTask.replace(\"\\n\", \"\"));\n\t}", "@Override\n\tpublic void deleteClick(Object id) {\n\t\t\n\t}", "@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdelete();\n\t\t\t}", "private void cmd_deleteSelection(){\n\t\tm_frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\t\tif (ADialog.ask(getWindowNo(), m_frame.getContainer(), \"DeleteSelection\"))\n\t\t{\t\n\t\t\tint records = deleteSelection(detail);\n\t\t\tsetStatusLine(Msg.getMsg(Env.getCtx(), \"Deleted\") + records, false);\n\t\t}\t\n\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\tbDelete.setSelected(false);\n\t\texecuteQuery();\n\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdelete();\n\t\t\t}", "public void deleteButtonPushed() {\r\n ObservableList<Student> allStudents;\r\n Student selectedRow;\r\n allStudents = tableView.getItems();\r\n \r\n // This gives us the row that was selected\r\n selectedRow = tableView.getSelectionModel().getSelectedItems().get(0);\r\n \r\n\r\n try {\r\n covidMngrService.deleteStudent(selectedRow);\r\n \r\n // Remove the Student object from the table\r\n allStudents.remove(selectedRow);\r\n } catch (RemoteException ex) {\r\n Logger.getLogger(SecretaryStudentsTableCntrl.class.getName()).\r\n log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\n public void onDeleteButtonClick(int position) {\n UserDevicesDB selected_aube = userDevicesDBList.get(position);\n\n // TO DO --> action to delete this device by device address\n Toast.makeText(getContext(), R.string.coming_soon, Toast.LENGTH_SHORT ).show();\n }", "@FXML\n private void handleDeleteFilm() {\n int selectedIndex = filmTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n \tfilmTable.getItems().remove(selectedIndex);\n \tsave();\n } else {\n // Nothing selected.\n Dialogs.create()\n .title(\"No Selection\")\n .masthead(\"No Person Selected\")\n .message(\"Please select a person in the table.\")\n .showWarning();\n }\n }", "private void delete() {\n\n\t}", "void onDelete() {\n if (getText().equals(mResult) || mIsError) {\n clear();\n } else {\n mDisplay.dispatchKeyEvent(new KeyEvent(0, KeyEvent.KEYCODE_DEL));\n mResult = \"\";\n }\n }", "@FXML\n private void handleBookDeleteOption(ActionEvent event) {\n Book selectedItem = tableViewBook.getSelectionModel().getSelectedItem();\n if (selectedItem == null) {\n AlertMaker.showErrorMessage(\"No book selected\", \"Please select book for deletion.\");\n return;\n }\n if (DatabaseHandler.getInstance().isBookAlreadyIssued(selectedItem)) {\n AlertMaker.showErrorMessage(\"Cant be deleted\", \"This book is already issued and cant be deleted.\");\n return;\n }\n //confirm the opertion\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Deleting Book\");\n Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();\n UtilitiesBookLibrary.setStageIcon(stage);\n alert.setHeaderText(null);\n alert.setContentText(\"Are u sure u want to Delete the book ?\");\n Optional<ButtonType> response = alert.showAndWait();\n if (response.get() == ButtonType.OK) {\n \n boolean result = dbHandler.deleteBook(selectedItem);\n if (result == true) {\n AlertMaker.showSimpleAlert(\"Book delete\", selectedItem.getTitle() + \" was deleted successfully.\");\n observableListBook.remove(selectedItem);\n } else {\n AlertMaker.showSimpleAlert(\"Failed\", selectedItem.getTitle() + \" unable to delete.\");\n\n }\n } else {\n AlertMaker.showSimpleAlert(\"Deletion Canclled\", \"Deletion process canclled.\");\n\n }\n\n }", "private void buttonToDeleteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonToDeleteMouseClicked\n ActivityService activityService = new ActivityService();\n activityService\n .setId(this.id)\n .setUser(this.dashboard.user);\n try {\n activityService.delete();\n this.setVisible(false);\n this.dashboard.refreshUI();\n }catch (Exception err) {\n this.alert.showMessageDialog(null, \"gagal menghapus data\");\n }\n }", "void onItemDeleted();", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "@FXML\r\n\tprivate void deleteEmployee(ActionEvent event) {\r\n\t\teraseFieldsContent();\r\n\t\tEmployee e = listaStaff.getSelectionModel().getSelectedItem();\r\n\t\tservice.deleteEmployee(e);\r\n\t\tlistaStaff.getItems().remove(e);\r\n\t\tbtDelete.setDisable(true);\r\n\t\tbtEditar.setDisable(true);\r\n\t\tupdateList();\r\n\t}", "@FXML\r\n\r\n private void deleteFriend(){\r\n // Delete from GUI\r\n final int selectIndex = udb_FriendsListView.getSelectionModel().getSelectedIndex();\r\n if(selectIndex != -1){\r\n String itemToRemove = udb_FriendsListView.getSelectionModel().getSelectedItem();\r\n final int newSelectedIndex = (selectIndex == udb_FriendsListView.getItems().size() - 1) ? selectIndex - 1 : selectIndex;\r\n udb_FriendsListView.getItems().remove(selectIndex);\r\n udb_FriendsListView.getSelectionModel().select(newSelectedIndex);\r\n\r\n //Delete from DB\r\n try{\r\n FriendsDao.deleteFriend(userName, itemToRemove);\r\n }catch (Exception e){\r\n\r\n }\r\n }\r\n\r\n }", "public boolean deleteClicked() {\n AsyncTaskDelete databaseDeletion = new AsyncTaskDelete();\n databaseDeletion.execute((int) Id);\n finish();\n return true;\n }", "public void onClick(View v) {\n delete();\n }", "@Override\n public void onDelete() {\n mDialog.dismiss();\n ((FrameLayout) getParent()).removeView(this);\n }", "public void onDeleteList() {\n ListsManager listManager = ListsManager.getInstance(context);\n listManager.deleteTable(deletePosition,context);\n Toast.makeText(context, \"deleted TodoList\", Toast.LENGTH_SHORT).show();\n data.remove(deletePosition);\n notifyItemRemoved(deletePosition);\n }", "@Command(\"delete\")\n @NotifyChange({\"events\", \"selectedEvent\"})\n public void delete() {\n if(this.selectedEvent != null) {\n eventDao.delete(this.selectedEvent);\n this.selectedEvent = null;\n }\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tdelete();\n\t\t}", "void onDeleteSuccess(int position);", "public void execute() {\n if (DeleteTableCommand.confirmDeletion()) {\n\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().remove(topsoilTabPane.getSelectedTab());\n }\n\n }", "@FXML\n public void handleDeleteButton(ActionEvent event) {\n if (cList.getItems().size() == 0) {\n alert(\"Error\", \"Invalid selection.\", \"The list is already empty.\");\n return;\n }\n\n String s = (String) cList.getSelectionModel().getSelectedItem();\n\n if (cList.getSelectionModel().getSelectedIndex() == -1) {\n alert(\"Error\", \"Invalid selection.\", \"Please select an item to delete.\");\n return;\n }\n\n String parts[] = s.split(\"=\");\n Tag delete = null;\n for (Tag t : tags) {\n if (t.getType().equals(parts[0]) && t.getValue().equals(parts[1])) {\n obsList.remove(s);\n }\n }\n tags.remove(delete);\n cList.setItems(obsList);\n\n\n }", "private Delete() {}", "private Delete() {}", "public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "@FXML\n private void handleDeleteRecordButton(ActionEvent e) {\n deleteRecord();\n }", "@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n Log.i(TAG, \"Delete : Delete hit\");\n String path = getContext().getFilesDir().getPath();\n File f = new File(path);\n f.mkdirs();\n Boolean found = false;\n File[] file = f.listFiles();\n for (File fi : file) {\n if (fi.getName().contains(selection)) {\n Log.i(TAG, \"Delete : Deleting :\" + selection);\n found = true;\n fi.delete();\n }\n }\n if (!found) {\n Log.i(TAG, \"Delete : Not Found, so calling client\");\n new ClientTask().executeOnExecutor(AsyncTask.SERIAL_EXECUTOR, \"query\", \"delete\", selection);\n }\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return 0;\n }", "public void deleteClicked(View actionView)\n {\n \tif( taskId.getText().length() > 0 )\n \t{\n \t\tdeleteTask();\n \t}\n }", "protected abstract void doDelete();", "void onItemDelete(int position);", "public void onDeleteButtonClicked(MenuItem item){\n if(mEventId == DEFAULT_EVENT_ID){\n finish(); //closes activity\n }\n else {\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n mDatabase.eventDao().deleteEvent(mEvent);\n finish(); //deletes event then closes the activity\n }\n });\n }\n }", "protected void submitDeleteAct(ActionEvent ae) {\n\t\tint index = stuClassListTable.getSelectedRow();\r\n\t\tif (index == -1) {// 未选中时,为-1\r\n\t\t\tJOptionPane.showMessageDialog(this, \"请选中要删除的数据!!!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (JOptionPane.showConfirmDialog(this, \"确认要删除吗?\") == JOptionPane.OK_OPTION) {\r\n\t\t\tDefaultTableModel dft = (DefaultTableModel) stuClassListTable.getModel();\r\n\t\t\tint id = Integer.parseInt(dft.getValueAt(stuClassListTable.getSelectedRow(), 0).toString());\r\n\t\t\tStuClassDao<StuClass> stuClassDao = new StuClassDao<StuClass>();\r\n\t\t\tif (stuClassDao.delete(id)) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"删除成功!\");\r\n\t\t\t} else {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"删除失败!\");\r\n\t\t\t}\r\n\t\t\tstuClassDao.closeDao();\r\n\t\t\tsetTable(new StuClass());\r\n\t\t} else {\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "private void toDelete() {\n if(toCount()==0)\n {\n JOptionPane.showMessageDialog(rootPane,\"No paint detail has been currently added\");\n }\n else\n {\n String[] choices={\"Delete First Row\",\"Delete Last Row\",\"Delete With Index\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"How would you like to delete data?\", \"Delete Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n jtModel.removeRow(toCount()-toCount());\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted first row\");\n }\n else if(option==1)\n {\n jtModel.removeRow(toCount()-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted last row\");\n }\n else if(option==2)\n {\n toDeletIndex();\n }\n else\n {\n \n }\n }\n }", "public void deleteTask() {\r\n int selected = list.getSelectedIndex();\r\n if (selected >= 0) {\r\n Task task = myTodo.getTaskByIndex(selected + 1);\r\n myTodo.getTodo().remove(task.getHashKey());\r\n playSound(\"click.wav\");\r\n }\r\n todoListGui();\r\n }", "@Override\n public boolean onItemLongClick(AdapterView<?> parent, View v, int i, long id) {\n db.delete(id);\n\n // Notify the user\n Toast.makeText(MainActivity.this, \"entry deleted\", Toast.LENGTH_SHORT).show();\n loadEntryList();\n return true;\n }", "@Override\n public void onClick(View v) {\n\n CouSyncDb.getInstance(getApplicationContext()).deleteSync(bean1, new OnOperateFinish() {\n @Override\n public void onFinish(int operateType, Object result) {\n text.setText(\"delete row ID = \" + result.toString());\n }\n });\n }", "public void delete(){\r\n\r\n }", "private static void OnDelete(Object sender, ExecutedRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(sender); \r\n\r\n if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source)) \r\n {\r\n return;\r\n }\r\n\r\n TextEditorTyping._FlushPendingInputItems(This);\r\n\r\n // Note, that Delete and Backspace keys behave differently. \r\n ((TextSelection)This.Selection).ClearSpringloadFormatting();\r\n\r\n // Forget previously suggested horizontal position\r\n TextEditorSelection._ClearSuggestedX(This);\r\n\r\n using (This.Selection.DeclareChangeBlock()) \r\n {\r\n ITextPointer position = This.Selection.End; \r\n if (This.Selection.IsEmpty) \r\n {\r\n ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Forward); \r\n\r\n if (deletePosition == null)\r\n {\r\n // Nothing to delete. \r\n return;\r\n } \r\n\r\n if (TextPointerBase.IsAtRowEnd(deletePosition))\r\n { \r\n // Backspace and delete are a no-op at row end positions.\r\n return;\r\n }\r\n\r\n if (position is TextPointer && !IsAtListItemStart(deletePosition) &&\r\n HandleDeleteWhenStructuralBoundaryIsCrossed(This, (TextPointer)position, (TextPointer)deletePosition)) \r\n { \r\n // We are crossing structural boundary and\r\n // selection was updated in HandleDeleteWhenStructuralBoundaryIsCrossed. \r\n return;\r\n }\r\n\r\n // Selection is empty, extend selection forward to delete the following char. \r\n This.Selection.ExtendToNextInsertionPosition(LogicalDirection.Forward);\r\n } \r\n\r\n // Delete selected text.\r\n This.Selection.Text = String.Empty; \r\n }\r\n }", "@FXML\n private void handleDeletePerson() {\n int selectedIndex = personTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n personTable.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"No Selection\");\n alert.setHeaderText(\"No Shops Selected\");\n alert.setContentText(\"Please select a person in the table.\");\n \n alert.showAndWait();\n }\n }", "@Override\n\tpublic void deleteCB(CB cb) {\n\t\t\n\t}", "@Override\n\tpublic void delete() {\n\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAlertDialog.Builder alertDialog = new AlertDialog.Builder(mFragment.getActivity());\n\t\t\t\talertDialog.setTitle(mFragment.getResources().getString(R.string.confirm_deleting));\n\t\t\t\talertDialog.setMessage(mFragment.getResources().getString(R.string.are_you_sure_delete));\n\n\t\t\t\t// Setting Positive \"Yes\" Btn\n\t\t\t\talertDialog.setPositiveButton(mFragment.getResources().getString(R.string.yes),\n\t\t\t\t new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t \t\n\t\t\t\t \tTheMissApplication.getInstance().showProgressFullScreenDialog(mFragment.getActivity());\n\t\t\t\t \t\n\t\t\t\t\t\t\t\tpost.deleteInBackground(new DeleteCallback(){\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(ParseException arg0) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\tTheMissApplication.getInstance().hideProgressDialog();\n\t\t\t\t\t\t\t\t\t\tif(arg0 == null){\n\t\t\t\t\t\t\t\t\t\t\tmFlaggedPicturesList.remove(flaggedPicture);\n\t\t\t\t\t\t\t\t\t\t\tFlaggedPicturesListCellAdapter.this.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t });\n\t\t\t\t// Setting Negative \"NO\" Btn\n\t\t\t\talertDialog.setNegativeButton(\"NO\",\n\t\t\t\t new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t \t\t\t\t \n\t\t\t\t dialog.cancel();\n\t\t\t\t }\n\t\t\t\t });\n\n\t\t\t\t// Showing Alert Dialog\n\t\t\t\talertDialog.show();\n\t\t\t}", "@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "@Override\n public void delete()\n {\n }", "@Override\r\n\tpublic void k_delete(String MF_NO) {\n\t\t\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tItemType i = getSelectedItem();\n\t\t\t\tif(i != null)\n\t\t\t\t{\t\n\n\t\t\t\t\tfinal String msg = \"Delete \"+i.getName() + \"?\";\n\t\t\t\t\tif(!confirmDelete(msg))\n\t\t\t\t\t\treturn;\n\t\t\t\t\ti.removeContainer(GeneralItemList.this);\n\t\t\t\t\ti.destroy();\n\t\t\t\t}\n\t\t\t\titems.remove(i);\n\t\t\t\tlist.clearSelection();\n\t\t\t\tlist.repaint(100);\t\t\t\t\n\t\t\t}", "void onGroupeDelete();", "@OnClick(R.id.cancelButton)\n public void deleteUpload() {\n callback.deleteUpload(contribution);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdeleteListener.onDeleteListener(vo.id);\n\t\t\t}", "@FXML\r\n private void deletePartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n \r\n Alert message = new Alert(Alert.AlertType.CONFIRMATION);\r\n message.setTitle(\"Confirm delete\");\r\n message.setHeaderText(\" Are you sure you want to delete part ID: \" + selected.getId() + \", name: \" + selected.getName() + \"?\" );\r\n message.setContentText(\"Please confirm your selection\");\r\n \r\n Optional<ButtonType> response = message.showAndWait();\r\n if (response.get() == ButtonType.OK)\r\n {\r\n stock.deletePart(selected);\r\n partsTbl.setItems(stock.getAllParts());\r\n partsTbl.refresh();\r\n displayMessage(\"The part \" + selected.getName() + \" was successfully deleted\");\r\n }\r\n else {\r\n displayMessage(\"Deletion cancelled by user. Part not deleted.\");\r\n }\r\n }\r\n else {\r\n displayMessage(\"No part selected for deletion\");\r\n }\r\n }", "@FXML\n private void confirmDeletionOfRecords(){\n ObservableList<Record> recordsToBeDeleted = tbvRecords.getSelectionModel().getSelectedItems();\n\n DBhandler db = new DBhandler();\n String title =\"Confirm delete\";\n String HeaderText = \"Record(s) will be permanently deleted\";\n String ContentText = \"Are you sure you want to delete this data?\";\n AlertHandler ah = new AlertHandler();\n\n if(recordsToBeDeleted.isEmpty()){\n ah.getTableError();\n }\n else{\n if (ah.getConfirmation(title, HeaderText, ContentText) == ButtonType.OK) {\n System.out.println(\"Ok pressed\");\n db.deleteRecordsFromDatabase(recordsToBeDeleted);\n populateRecords();\n } else {\n System.out.println(\"Cancel pressed\");\n }\n }}", "@Override\n \t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\tpd = ProgressDialog.show(GoodDetailView.this.getContext(), \"提示\", \"请稍候...\");\n \t\t\t\t\tpd.setCancelable(true);\n \t\t\t\t\tnew Thread(new RequestThread(REQUEST_TYPE.REQUEST_TYPE_DELETE)).start();\t\t\t\n \t\t\t\t}", "@Override\n\tpublic void delete() {\n\t\t\n\t}", "@Override\n\tpublic void delete() {\n\t\t\n\t}", "@FXML\r\n\tpublic void deleteItem() {\r\n\t\tcontroller.deleteWishlistItem(listView.getSelectionModel().getSelectedItem().getId());\r\n\t\tlistView.setItems(controller.getWishlistWatchesForCurrentUser());\r\n\t\tlistView.getSelectionModel().select(-1);\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tint count = context.getContentResolver().delete(uri, selection,\n\t\t\t\t\t\tselectionArgs);\n\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\tif (count >= 0) {\n\t\t\t\t\tmsg.what = SUCCESS;\n\t\t\t\t} else {\n\t\t\t\t\tmsg.what = FAIL;\n\t\t\t\t}\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t}", "public void delete() {\n\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\treturn 0;\n\t}", "void onDeleteItem(E itemElementView);", "@Override\n public void onItemClickDelete(Machine machine) {\n machineViewmodel.delete(machine);\n }", "private void onDeleteConfirmed() {\n stopService();\n\n Intent intent = new Intent(this, StartRecordingActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n }", "private void deleteitem() {\n if (mCurrentItemInfoUri != null) {\n DialogInterface.OnClickListener yesButtonClickListener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n mProgressbarView.setVisibility(View.VISIBLE);\n ContentValues values = null;\n new updateDeleteItemToDbTask().execute(values);\n }\n };\n // Show dialog that there are unsaved changes\n showConfirmationDeleteDialog(yesButtonClickListener);\n }\n }", "public void doDelete() throws Exception {\r\n\t\t_ds.deleteRow();\r\n\t\tdoDataStoreUpdate();\r\n\t\tif (_mode == MODE_LIST_ON_PAGE) {\r\n\t\t\tif (_listForm != null && _listForm.getDataStore() != _ds) {\r\n\t\t\t\t//different datastores on list and detail\r\n\t\t\t\tDataStoreBuffer listDs = _listForm.getDataStore();\r\n\t\t\t\tif (_listSelectedRow != null) {\r\n\t\t\t\t\tfor (int i = 0; i < listDs.getRowCount(); i++) {\r\n\t\t\t\t\t\tif (listDs.getDataStoreRow(i, DataStoreBuffer.BUFFER_STANDARD).getDSDataRow() == _listSelectedRow.getDSDataRow()) {\r\n\t\t\t\t\t\t\tlistDs.removeRow(i);\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\tif (listDs.getRowCount() == 0)\r\n\t\t\t\t\tsetVisible(false);\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (listDs.getRow() == -1)\r\n\t\t\t\t\t\tlistDs.gotoRow(listDs.getRowCount() - 1);\r\n\t\t\t\t\t_listForm.setRowToEdit(listDs.getRow());\r\n\t\t\t\t\tdoEdit();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t//list and detail share the same datastore\r\n\t\t\t\tif (_ds.getRowCount() == 0)\r\n\t\t\t\t\tsetVisible(false);\r\n\t\t\t\telse\r\n\t\t\t\t\tscrollToMe();\r\n\t\t\t}\r\n\t\t\tsyncListFormPage();\r\n\t\t} else {\r\n\t\t\treturnToListPage(true);\r\n\t\t}\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n mAdapter.notifyItemRemoved(position); //item removed from recylcerview\n mAdapter.removeItem(position);\n dataList.remove(position); //then remove item\n mAdapter.notifyDataSetChanged();\n deleteEntry(dataList.get(position).getDocId());\n }" ]
[ "0.7831459", "0.7682861", "0.7611625", "0.7518785", "0.74609244", "0.74545777", "0.7415992", "0.7415971", "0.7368477", "0.7285229", "0.72539055", "0.7214357", "0.71887225", "0.71878344", "0.7186342", "0.7152283", "0.7147879", "0.71472985", "0.711576", "0.710495", "0.707922", "0.7060029", "0.7052341", "0.7045139", "0.7040586", "0.70275605", "0.70050937", "0.70017684", "0.6974444", "0.69654", "0.69177145", "0.69084007", "0.6889281", "0.6879054", "0.68764377", "0.68648297", "0.6853008", "0.684392", "0.6842388", "0.6834486", "0.6833026", "0.68124545", "0.68112653", "0.6810582", "0.68015385", "0.67989874", "0.6793986", "0.6789758", "0.6785796", "0.67812645", "0.6760079", "0.6752108", "0.67500585", "0.6735917", "0.6735054", "0.6726543", "0.6726543", "0.67152786", "0.66876954", "0.6685279", "0.6684953", "0.6675582", "0.6674405", "0.66704345", "0.66628873", "0.66623473", "0.6657498", "0.66347796", "0.66285586", "0.6624095", "0.6619074", "0.6616381", "0.66032416", "0.6591997", "0.6573135", "0.6567981", "0.6563861", "0.65606225", "0.6559792", "0.6556278", "0.65513307", "0.65505767", "0.65436435", "0.6540456", "0.6535868", "0.65294284", "0.65294284", "0.6525484", "0.65244675", "0.6519486", "0.6515636", "0.6515636", "0.6515636", "0.6515636", "0.6513863", "0.6509889", "0.6509349", "0.6507687", "0.65043443", "0.650144" ]
0.7729093
1
Takes care of AR1
public static String getStatus(Connection conn) { String status = "Current Status\n---------------\nRooms: "; if(RoomDB.exist(conn) == -1) { status += "No Database\n"; } else if(RoomDB.exist(conn) == 0) { status += "Empty\n"; } else { status += "Full\n"; } status += "Reservations: "; if(ResDB.exist(conn) == -1) { status += "No Database\n"; } else if(ResDB.exist(conn) == 0) { status += "Empty\n"; } else { status += "Full\n"; } return status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void abs1_m1() {\n\t\t\n\t}", "public void assemble1() {\n\t\t\r\n\t}", "Output1(Res1 r){\n this.r = r;\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void art() {\n arJ();\n }", "@Override\n\tpublic void anular() {\n\n\t}", "private void aretes_aR(){\n\t\tthis.cube[13] = this.cube[52]; \n\t\tthis.cube[52] = this.cube[19];\n\t\tthis.cube[19] = this.cube[1];\n\t\tthis.cube[1] = this.cube[28];\n\t\tthis.cube[28] = this.cube[13];\n\t}", "@Override\n\tpublic void abs2_m1() {\n\t\t\n\t}", "@Override\n\tpublic void abs3_m1() {\n\t\t\n\t}", "public void assemble2() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void makerear() {\n\t\t\r\n\t}", "public void create(Alien a1) {\n\t\t\r\n\t\taliens.add(a1);\r\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "public Arco(E r, Vertice<E> v1, Vertice<E> v2){\r\n\t\trotulo = r;\r\n\t\tpre = v1;\r\n\t\tsuc = v2;\r\n\t}", "private void doQual()\n \t{\n \t\tModel model = doc.getModel();\n \t\tQualitativeModel qualModel = (QualitativeModel)model.getExtension(QualConstant.namespaceURI);\n \t\tif (qualModel != null)\n \t\t{\n \t\t\tdoQualitativeSpecies(qualModel);\n \t\t\tdoTransitions(qualModel);\n \t\t}\n \t}", "public void ar() {\n Object object = this.li;\n synchronized (object) {\n if (this.ly) {\n this.av();\n this.aq();\n try {\n this.a(this.ax());\n }\n catch (JSONException var2_2) {\n dw.b(\"JSON Failure while processing active view data.\", var2_2);\n }\n this.ly = false;\n this.as();\n dw.x(\"Untracked ad unit: \" + this.lo.ao());\n }\n return;\n }\n }", "public HL7Group processNK1s_ToUFD() throws ICANException {\n\n HL7Segment aNK1SegIN = new HL7Segment(\"NK1\");\n HL7Segment aNK1SegOUT = new HL7Segment(\"NK1\");\n HL7Group aNK1GroupIN = new HL7Group();\n HL7Group aNK1GroupOUT = new HL7Group();\n CodeLookUp aRelationship = new CodeLookUp(\"NOK_Relationship.table\", mEnvironment);\n\n aNK1GroupIN = processGroup(HL7_23.Repeat_NK1);\n int i;\n for (i=1; i <= aNK1GroupIN.countSegments(); i++) {\n\n aNK1SegIN = new HL7Segment(aNK1GroupIN.getSegment(i));\n aNK1SegOUT = new HL7Segment(\"NK1\");\n aNK1SegOUT.linkTo(aNK1SegIN);\n aNK1SegOUT.copy(HL7_23.NK1_1_set_ID);\n aNK1SegOUT.copy(HL7_23.NK1_2_next_of_kin_name);\n if (mFacility.equalsIgnoreCase(\"BHH\") ||\n mFacility.equalsIgnoreCase(\"MAR\") ||\n mFacility.equalsIgnoreCase(\"ANG\") ||\n mFacility.equalsIgnoreCase(\"PJC\")) {\n //Perform no translation just copy NOK\n aNK1SegOUT.copy(HL7_23.NK1_3_next_of_kin_relationship);\n } else {\n aNK1SegOUT.set(HL7_23.NK1_3_next_of_kin_relationship,\n aRelationship.getValue(aNK1SegIN.getField(HL7_23.NK1_3_next_of_kin_relationship)));\n }\n aNK1SegOUT.copy(HL7_23.NK1_4_next_of_kin__address, HL7_23.XAD_street_1);\n aNK1SegOUT.copy(HL7_23.NK1_4_next_of_kin__address, HL7_23.XAD_street_2);\n aNK1SegOUT.copy(HL7_23.NK1_4_next_of_kin__address, HL7_23.XAD_city);\n aNK1SegOUT.copy(HL7_23.NK1_4_next_of_kin__address, HL7_23.XAD_state_or_province);\n aNK1SegOUT.copy(HL7_23.NK1_4_next_of_kin__address, HL7_23.XAD_zip);\n// aNK1SegOUT.copy(HL7_23.NK1_4_next_of_kin__address, HL7_23.XAD_type);\n aNK1SegOUT.copy(HL7_23.NK1_5_next_of_kin__phone, HL7_23.XTN_telephone_number);\n aNK1SegOUT.copy(HL7_23.NK1_5_next_of_kin__phone, HL7_23.XTN_telecom_use);\n aNK1SegOUT.copy(HL7_23.NK1_6_business_phone_num, HL7_23.XTN_telephone_number);\n aNK1SegOUT.copy(HL7_23.NK1_6_business_phone_num, HL7_23.XTN_telecom_use);\n aNK1SegOUT.copy(HL7_23.NK1_7_contact_role);\n\n aNK1GroupOUT.append(aNK1SegOUT);\n }\n\n return aNK1GroupOUT;\n }", "ArtefactModel getArtefactModel();", "static void perform_ral(String passed){\n\t\tint type = type_of_ral(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tral_with_car(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract Object mo1771a();", "private static void mapAwb(android.hardware.camera2.impl.CameraMetadataNative r1, android.hardware.Camera.Parameters r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.mapAwb(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.Camera$Parameters):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.mapAwb(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.Camera$Parameters):void\");\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override // com.google.android.play.core.internal.ci\n public final /* bridge */ /* synthetic */ y1 a() {\n return new y1(this.a.a(), cg.b(this.b));\n }", "public void setRazaP1(Raza razaP1) {\n this.razaP1 = razaP1;\n }", "public lj ax() {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public RVO_2_1() {\n super();\n orcaLines = new ArrayList<Line>();\n }", "private void arretes_fR(){\n\t\tthis.cube[13] = this.cube[10]; \n\t\tthis.cube[10] = this.cube[12];\n\t\tthis.cube[12] = this.cube[16];\n\t\tthis.cube[16] = this.cube[14];\n\t\tthis.cube[14] = this.cube[13];\n\t}", "public lj au() {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public void matarAPacman() {\n // TODO implement here\n }", "private Celda rastrearAPacman() {\n // TODO implement here\n return null;\n }", "private static void mapAe(android.hardware.camera2.impl.CameraMetadataNative r1, android.hardware.camera2.CameraCharacteristics r2, android.hardware.camera2.CaptureRequest r3, android.graphics.Rect r4, android.hardware.camera2.legacy.ParameterUtils.ZoomData r5, android.hardware.Camera.Parameters r6) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.mapAe(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.camera2.CameraCharacteristics, android.hardware.camera2.CaptureRequest, android.graphics.Rect, android.hardware.camera2.legacy.ParameterUtils$ZoomData, android.hardware.Camera$Parameters):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.mapAe(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.camera2.CameraCharacteristics, android.hardware.camera2.CaptureRequest, android.graphics.Rect, android.hardware.camera2.legacy.ParameterUtils$ZoomData, android.hardware.Camera$Parameters):void\");\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void onUpdate(FrameTime frameTime) {\n Frame frame = arFragment.getArSceneView().getArFrame();\n Collection<AugmentedImage> images = frame.getUpdatedTrackables(AugmentedImage.class);\n //Iterate through the image database\n for (AugmentedImage image : images) {\n // Check if scanned image existed in the image database\n if (image.getTrackingMethod() == AugmentedImage.TrackingMethod.FULL_TRACKING) {\n //Set the scene\n RelativeLayout gallery = findViewById(R.id.gallery);\n ArFragment arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.arFragment);\n String name = image.getName();\n //check which image was scanned\n switch (name) {\n case \"argon.png\":\n //Set string\n string = \"argon.sfb\";\n //Set the text that appears to the student\n text=getString(R.string.argon2);\n //call the 3D object\n callAR();\n break;\n case \"bromine.png\":\n string = \"bariumatom.sfb\";\n text=getString(R.string.bromine2);\n callAR();\n break;\n case \"calcium.png\":\n string = \"calcium.sfb\";\n text=getString(R.string.calcium2);\n callAR();\n break;\n case \"chlorine.png\":\n string = \"chlorineatom.sfb\";\n text=getString(R.string.chlorine2);\n callAR();\n break;\n case \"fluorine.png\":\n string = \"fluorineatom.sfb\";\n text=getString(R.string.fluorine2);\n callAR();\n break;\n case \"helium.png\":\n string = \"heliumatom.sfb\";\n text=getString(R.string.helium2);\n callAR();\n break;\n case \"hydrogen.png\":\n string = \"hydrogen.sfb\";\n text=getString(R.string.hydrogen2);\n callAR();\n break;\n case \"lithium.png\":\n string = \"Lithiumatom.sfb\";\n text=getString(R.string.lithium2);\n callAR();\n break;\n case \"magnesium.png\":\n string = \"magnesiumatomm.sfb\";\n text=getString(R.string.magnesium2);\n callAR();\n break;\n case \"neon.png\":\n string = \"neonn.sfb\";\n text=getString(R.string.neon2);\n callAR();\n break;\n case \"sodium.png\":\n string = \"sodium.sfb\";\n text=getString(R.string.sodium2);\n callAR();\n break;\n }\n\n\n }\n }\n }", "public abstract void mo2150a();", "B setM1(M1 m1);", "B setM1(M1 m1);", "public VectorN xref0 ();", "private Instruction decodeL1() {\n String subType = nullIsIllegal(json.get(InstructionCodec.SUBTYPE),\n InstructionCodec.SUBTYPE + InstructionCodec.ERROR_MESSAGE).asText();\n if (subType.equals(L1ModificationInstruction.L1SubType.ODU_SIGID.name())) {\n int tributaryPortNumber = nullIsIllegal(json.get(InstructionCodec.TRIBUTARY_PORT_NUMBER),\n InstructionCodec.TRIBUTARY_PORT_NUMBER + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt();\n int tributarySlotLen = nullIsIllegal(json.get(InstructionCodec.TRIBUTARY_SLOT_LEN),\n InstructionCodec.TRIBUTARY_SLOT_LEN + InstructionCodec.MISSING_MEMBER_MESSAGE).asInt();\n byte[] tributarySlotBitmap = null;\n tributarySlotBitmap = HexString.fromHexString(\n nullIsIllegal(json.get(InstructionCodec.TRIBUTARY_SLOT_BITMAP),\n InstructionCodec.TRIBUTARY_SLOT_BITMAP + InstructionCodec.MISSING_MEMBER_MESSAGE).asText());\n return Instructions.modL1OduSignalId(OduSignalId.oduSignalId(tributaryPortNumber, tributarySlotLen,\n tributarySlotBitmap));\n }\n throw new IllegalArgumentException(\"L1 Instruction subtype \"\n + subType + \" is not supported\");\n }", "protected void sequence_Source1(ISerializationContext context, Source1 semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "private void prepare()\n {\n AmbulanceToLeft ambulanceToLeft = new AmbulanceToLeft();\n addObject(ambulanceToLeft,717,579);\n Car2ToLeft car2ToLeft = new Car2ToLeft();\n addObject(car2ToLeft,291,579);\n Car3 car3 = new Car3();\n addObject(car3,45,502);\n CarToLeft carToLeft = new CarToLeft();\n addObject(carToLeft,710,262);\n Car car = new Car();\n addObject(car,37,190);\n AmbulanceToLeft ambulanceToLeft2 = new AmbulanceToLeft();\n addObject(ambulanceToLeft2,161,264);\n }", "public static ProbabilisticAutomata createTrace1AlergiaResult() {\n\t\tProbabilisticAutomata automata = PdfaFactory.eINSTANCE.createProbabilisticAutomata();\n\t\t\n\t\tProbabilisticState state1 = createState(1);\n\t\t\n\t\tstate1.getOutgoingTransitions().add(\n\t\t\tcreateTransition(automata, state1, state1, \"0\", 0.33));\n\t\tstate1.getOutgoingTransitions().add(\n\t\t\t\tcreateTransition(automata, state1, state1, \"1\", 0.44));\n\t\tstate1.setTerminatingProbability(0.33);\n\t\t\n\t\tautomata.getStates().add(state1);\n\t\t\n\t\tautomata.setStartState(state1);\n\t\t\n\t\treturn automata;\n\t}", "private void arretes_fO(){\n\t\tthis.cube[40] = this.cube[37]; \n\t\tthis.cube[37] = this.cube[39];\n\t\tthis.cube[39] = this.cube[43];\n\t\tthis.cube[43] = this.cube[41];\n\t\tthis.cube[41] = this.cube[40];\n\t}", "@Override\n public void buildArma() {\n this.personaje.setArma(new Arma(\"Lanza\", 'A', 9));\n }", "public void maullar() {\n }", "public com.introvd.template.sdk.model.editor.EffectInfoModel aqe() {\n /*\n r4 = this;\n java.util.List<com.introvd.template.sdk.model.editor.EffectInfoModel> r0 = r4.dcB\n int r0 = r0.size()\n if (r0 <= 0) goto L_0x0036\n java.util.List<com.introvd.template.sdk.model.editor.EffectInfoModel> r0 = r4.dcB\n int r0 = r0.size()\n int r0 = r0 + -1\n L_0x0010:\n if (r0 < 0) goto L_0x0036\n java.util.List<com.introvd.template.sdk.model.editor.EffectInfoModel> r1 = r4.dcB\n java.lang.Object r1 = r1.get(r0)\n com.introvd.template.sdk.model.editor.EffectInfoModel r1 = (com.introvd.template.sdk.model.editor.EffectInfoModel) r1\n if (r1 == 0) goto L_0x0033\n long r2 = r1.mTemplateId\n java.lang.String r2 = com.introvd.template.sdk.p391g.C8450a.m24469bn(r2)\n java.lang.String r2 = r2.toLowerCase()\n boolean r2 = com.introvd.template.editor.p266h.C6386d.m18377iL(r2)\n if (r2 != 0) goto L_0x0033\n boolean r2 = r1.isbNeedDownload()\n if (r2 != 0) goto L_0x0033\n goto L_0x0037\n L_0x0033:\n int r0 = r0 + -1\n goto L_0x0010\n L_0x0036:\n r1 = 0\n L_0x0037:\n if (r1 != 0) goto L_0x003d\n com.introvd.template.sdk.model.editor.EffectInfoModel r1 = r4.apZ()\n L_0x003d:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.introvd.template.editor.preview.fragment.p274a.C6638d.aqe():com.introvd.template.sdk.model.editor.EffectInfoModel\");\n }", "public lj az() {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "Type1Equivalent getType1Equivalent();", "public void setAdr1(String adr1) {\n this.adr1 = adr1;\n }", "private NodoBin<T> clonarAS(NodoBin<T> r){\t\t\t\t\n if(r==null)\n return r;\n else\n {\n NodoBin<T> aux=new NodoBin<T>(r.getInfo(), clonarAS(r.getIzq()), clonarAS(r.getDer()));\n return aux;\n }\n }", "void aprovarAnalise();", "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "@Override\n\tprotected void interr() {\n\t}", "private Proof faxm1Convert(Proof p) {\n Equals eq = (Equals) p.lastExpr();\n Expression s = eq.firstArgument;\n Expression t = eq.secondArgument;\n return mpBack(faxm1Gen(s, t), p);\n }", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "ORDecomposition createORDecomposition();", "public Phase1Edge action(Phase1Edge p1e){\n Phase1Edge r = new Phase1Edge();\n r.ep = ep.action(p1e.ep);\n r.eo = eo.times(ep.action(p1e.eo));\n return r;\n }", "@Override\r\n\t\tpublic void normalize()\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.sceneform_ux_fragment);\n\n setUpModel();\n\n bear = findViewById(R.id.bear);\n cat = findViewById(R.id.cat);\n koala = findViewById(R.id.koala);\n lion = findViewById(R.id.lion);\n\n setArrayView();\n\n setClickListener();\n\n arFragment.setOnTapArPlaneListener(new BaseArFragment.OnTapArPlaneListener() {\n @Override\n public void onTapPlane(HitResult hitResult, Plane plane, MotionEvent motionEvent) {\n if (selected == 1){\n Anchor anchor = hitResult.createAnchor();\n AnchorNode anchorNode = new AnchorNode(anchor);\n anchorNode.setParent(arFragment.getArSceneView().getScene());\n\n createModel(anchorNode, selected);\n }\n }\n });\n\n\n }", "public void prestamoLibro(libro lib1)\n {\n System.out.println(\"Bienvenido al sistema de prestamos\");\n System.out.println(\"El libro que desea prestar es: \");\n System.out.println(lib1);\n System.out.println(\"Realizaremos la transaccion!\");\n lib1.setDispoLibro(false);\n System.out.println(\"Transaccion realizada!! \");\n }", "public ResultsContainerI RCA1( final String[] _args ) {\n\t\t\n\t\tString[] rca1Args = new String[ 2 ];\n\t\trca1Args[ 0 ] = TDA.SETTING_TASKCHOICE + \"=\" + TDA.UI_TASK_M12;\n\t\trca1Args[ 1 ] = TDA.SETTING_APPLICATIONMODE + \"=\" + TDA.UI_APPLICATIONMODE_API;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tappTda_.assignData( _args );\n\t\t\tappTda_.assignData( rca1Args );\n\t\t\tappTda_.executeTda();\n\n\t\t\tresultsContainer_ = appTda_.getResults();\n\t\t}\n\t\tcatch ( Exception e ) {\n\t\t\t\n\t\t\tSystem.out.println( \"[ERROR RCA1_args] Exception encountered: \" + e.toString() );\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn resultsContainer_;\n\t}", "public String raiz1 (){\r\n //primero, invocamos el determiante\r\n float det=determinante(); //se asigna al determinante de arriba\r\n String sol=\"raiz 1\"; //la solucion la evuelve como string\r\n if (det<0){\r\n sol=\"Raiz imaginaria\";\r\n }else {\r\n float r1= (float)(-b+ Math.sqrt(det) )/(2*a); \r\n //tambien aplicamos casting pata Math, con (float)\r\n sol=\"Raiz 1: \"+r1; //texto + valor agregado\r\n }\r\n return sol;\r\n \r\n //Uno para R1 y otro para R2 \r\n }", "private static int convertLegacyAwbMode(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAwbMode(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAwbMode(java.lang.String):int\");\n }", "public Aliases( ) {\n\t}", "private void toRent() {\n }", "@Override\n public lj<ow> a(lj<ow> ox2, int n2, int n3) {\n lj<Bitmap> lj2 = ((ow)ox2.b()).b();\n lj<on> lj3 = ((ow)ox2.b()).c();\n if (lj2 != null && this.a != null) {\n lj<Bitmap> lj4 = this.a.a(lj2, n2, n3);\n if (lj2.equals(lj4)) return ox2;\n return new ox(new ow(lj4, ((ow)ox2.b()).c()));\n }\n if (lj3 == null) return ox2;\n if (this.b == null) return ox2;\n lj<on> lj5 = this.b.a(lj3, n2, n3);\n if (lj3.equals(lj5)) return ox2;\n return new ox(new ow(((ow)ox2.b()).b(), lj5));\n }", "private void coins_a1R(){\n\t\tthis.cube[13] = this.cube[51]; \n\t\tthis.cube[51] = this.cube[20];\n\t\tthis.cube[20] = this.cube[2];\n\t\tthis.cube[2] = this.cube[29];\n\t\tthis.cube[29] = this.cube[13];\n\t}", "protected void sequence_PrimaryExpr2(ISerializationContext context, PrimaryExpr2 semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public interface One extends RelationQuantifier\n{\n}", "private Op rewriteOp1(final Op1 op1) {\n final OpRewriter rewriter = new OpRewriter(securityEvaluator, graphIRI);\n op1.getSubOp().visit(rewriter);\n return rewriter.getResult();\n }", "@Override\n\tpublic void m1() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n public void buildConvert() throws LibrecException {\n super.buildConvert();\n }", "public ROVector2f getLocalAnchor1() {\r\n\t\treturn localAnchor1;\r\n\t}", "public interface arz\n\textends Comparable\n{\n\n\tpublic abstract int a();\n\n\tpublic abstract atw a(atw atw, atv atv);\n\n\tpublic abstract auc a(auc auc, auc auc1);\n\n\tpublic abstract avz b();\n\n\tpublic abstract awe c();\n\n\tpublic abstract boolean d();\n\n\tpublic abstract boolean e();\n}", "private void startARX() {\n if (mSurface != null && mSurfaceTex != null && sobelBmp != null) {\n createARX(mSurface, mSurfaceTex, sobelBmp);\n }\n }", "public abstract void mo1184a(Object obj);", "public static android.renderscript.AllocationAdapter create1D(android.renderscript.RenderScript r1, android.renderscript.Allocation r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.renderscript.AllocationAdapter.create1D(android.renderscript.RenderScript, android.renderscript.Allocation):android.renderscript.AllocationAdapter, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.renderscript.AllocationAdapter.create1D(android.renderscript.RenderScript, android.renderscript.Allocation):android.renderscript.AllocationAdapter\");\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "abstract B setM1(M1 m1);", "abstract B setM1(M1 m1);", "public String getName()\r\n {\n return \"arctan2\";\r\n }", "public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }", "public void mo4359a() {\n }", "public Archangel buscarName(String name){\n\tboolean val = false;\n Archangel angel = null;\n\tfor(int i =0;i<arch.length && !val;i++){\n\t\tif(arch[i]!=null){\n\t\tif(arch[i].getName().equalsIgnoreCase(name)){\n\t\t\tangel = arch[i];\n\t\t\tval = true;\n\t\t}\n\t}\n\t\telse{\n\t\t\tval=true;\n\t\t}\n\t\t}\n\t\nreturn angel;\n\n}", "static void perform_rar(String passed){\n\t\tint type = type_of_rar(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\trar_with_car(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "public RamasserArtefact(Joueur j) {\r\n\t\tsuper(j);\r\n\t}", "public void ovr() {\n\n\t}", "static void perform_ana(String passed){\n\t\tint type = type_of_ana(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tana_with_reg(passed);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tana_with_mem(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n\tdouble alan() {\n\t\tSystem.out.println(\"Ucgenin Alani : \");\r\n\t\treturn kenar1 * kenar2 /2;\r\n\t}", "private void handleRadioOn(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleRadioOn(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleRadioOn(int):void\");\n }", "private void normalizeLHS(OWLDescription super_class, OWLClass cls) {\n\t\t\n\t}", "private static void mapAf(android.hardware.camera2.impl.CameraMetadataNative r1, android.graphics.Rect r2, android.hardware.camera2.legacy.ParameterUtils.ZoomData r3, android.hardware.Camera.Parameters r4) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.mapAf(android.hardware.camera2.impl.CameraMetadataNative, android.graphics.Rect, android.hardware.camera2.legacy.ParameterUtils$ZoomData, android.hardware.Camera$Parameters):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.mapAf(android.hardware.camera2.impl.CameraMetadataNative, android.graphics.Rect, android.hardware.camera2.legacy.ParameterUtils$ZoomData, android.hardware.Camera$Parameters):void\");\n }", "abstract void m1();", "static void armStrongSeries(){\n\t}", "public abstract void afvuren();", "Object getROIs();", "@Test\n void load() {\n Assert.assertEquals(r1,arrayStorage.load(r1.getUuid()));\n Assert.assertEquals(r2,arrayStorage.load(r2.getUuid()));\n\n }", "public Shape modelToView(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) throws BadLocationException {\n if (view != null) {\n return view.modelToView(p0, b0, p1, b1, a);\n }\n return null;\n }", "private void aretes_aY(){\n\t\tthis.cube[49] = this.cube[43]; \n\t\tthis.cube[43] = this.cube[21];\n\t\tthis.cube[21] = this.cube[10];\n\t\tthis.cube[10] = this.cube[32];\n\t\tthis.cube[32] = this.cube[49];\n\t}", "public Raza getRazaP1() {\n razaP1.nombre1();\n System.out.println(razaP1.nombre1());\n return razaP1;\n }" ]
[ "0.5771096", "0.5607456", "0.5503058", "0.5450767", "0.5392576", "0.53684163", "0.53618824", "0.5355407", "0.5277822", "0.52725565", "0.5231356", "0.521027", "0.51640975", "0.51305985", "0.51222944", "0.51203936", "0.51154685", "0.5100535", "0.50967455", "0.5080891", "0.50410473", "0.5017783", "0.5013483", "0.50076073", "0.49979034", "0.49917606", "0.49835476", "0.49813816", "0.49578467", "0.49536785", "0.49454305", "0.49443638", "0.49387598", "0.4922273", "0.49155802", "0.49036515", "0.49036515", "0.4895146", "0.48921162", "0.48832795", "0.4877228", "0.48694256", "0.48593572", "0.48578462", "0.48514956", "0.48511714", "0.48468485", "0.48428282", "0.48423612", "0.4838573", "0.48377553", "0.48305815", "0.48285046", "0.4828279", "0.48235324", "0.4812824", "0.4809535", "0.47948095", "0.4792033", "0.4791504", "0.478825", "0.47830266", "0.4782761", "0.47821385", "0.47771788", "0.47757587", "0.4771631", "0.47698757", "0.47683424", "0.47542092", "0.47538942", "0.4751463", "0.47478187", "0.47423252", "0.4740443", "0.47403884", "0.47357813", "0.47354367", "0.47310925", "0.47194198", "0.47194198", "0.47081083", "0.47031367", "0.47024924", "0.47021064", "0.46973693", "0.46950218", "0.46909025", "0.46899146", "0.46891132", "0.46890333", "0.46869603", "0.46806568", "0.46794504", "0.46778312", "0.467439", "0.46729392", "0.4667711", "0.46651706", "0.46648538", "0.46647456" ]
0.0
-1
/ Shows a contextual dialog with actions for the selected recording
public void showContextMenu(final String fileName, final int position) { final CharSequence[] items = { context.getString(R.string.confirm_play), context.getString(R.string.confirm_send), context.getString(R.string.options_delete) }; new AlertDialog.Builder(context) .setTitle(R.string.options_title) .setItems(items, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int item) { if (item == 0) { startPlayExternal(fileName); } else if (item == 1) { sendMail(fileName); } else if (item == 2) { deleteRecord(fileName, position); } } }) .show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString contextText = (String) mController.getText();\r\n\t\t\t\t\r\n\t\t\t\tif (contextText.equals(\"開始轉播\")){\r\n\t\t\t\t\ttry {\r\n\t\t startRecording();\r\n\t\t } catch (Exception e) {\r\n\t\t \te.getStackTrace();\r\n\t\t String message = e.getMessage();\r\n\t\t Log.i(null, \"Problem \" + message);\r\n\t\t mrec.release();\r\n\t\t }\r\n\t\t\t\t}\r\n\t\t\t}", "public void showrecord(View v) {\n\t // Do something in response to button\n\t\tIntent intent = new Intent(this, SelectLevel2.class);\n\t startActivity(intent);\n\t\tLog.d(\"record\",\"clicked\");\n\t}", "public void confirmSelection() {\n\t\t//create and display an AlertDialog requesting a filename for the new capture\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\tbuilder.setTitle(\"What did you hear?\");\n\t\tfinal EditText inputText = new EditText(context);\n\t\tinputText.setInputType(InputType.TYPE_CLASS_TEXT|InputType.TYPE_TEXT_FLAG_CAP_SENTENCES|InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);\n\t\tbuilder.setView(inputText);\n\n\t\tbuilder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() { \n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// execute the capture operations:\n\t\t\t\tfilename = inputText.getText().toString().trim();\n\t\t\t\tnew CaptureTask(context).execute();\n\t\t\t}\n\t\t});\n\t\tbuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}\n\t\t});\n\t\tbuilder.show();\n\t}", "public void onClick(DialogInterface dialog,int id) {\n changeActionMode(NDEFEditorFragment.VIEW_NDEF_RECORD);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (isDetailed) {\n\t\t\t\t\tcloseDetail();\n\t\t\t\t} else {\n\t\t\t\t\tshowDetail();\n\t\t\t\t}\n\t\t\t}", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "private void selectRecord(final Record temp) {\n\t\tfinal CharSequence[] items = { \"Edit Record\", \"Delete Record\", \"Cancel\" };\n\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\t\tbuilder.setTitle(\"Choose Action\");\n\t\tbuilder.setItems(items, new DialogInterface.OnClickListener() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t * Goes to next page(userdata), stores values as well as putting this fragment on top of\n\t\t\t * the stack for later popback functionality if Edit Record selected\n\t\t\t * \n\t\t\t * if Delete Record is selected then the delete record method is run\n\t\t\t * \n\t\t\t * otherwise dismiss dialog window.\n\t\t\t * \n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int item) {\n\t\t\t\tif (items[item].equals(\"Edit Record\")) {\n\t\t\t\t\t//mCallback.saveOriginal(temp, item);\n\t\t\t\t\t\n\t\t\t\t\tBundle args1 = new Bundle();\n\t\t\t\t\targs1.putSerializable(\"RECORD\", temp);\n\t\t\t\t\targs1.putString(\"NAME\", name);\n\t\t\t\t\targs1.putString(\"EMAIL\", email);\n\t\t\t\t\targs1.putString(\"PHONE\", phone);\n\t\t\t\t\targs1.putInt(\"ID\", id);\n\n\t\t\t\t\tFragmentManager fm = getFragmentManager();\n\t\t\t\t\tFragmentTransaction transaction = fm.beginTransaction();\n\t\t\t\t\tfragment_userdata.setArguments(args1);\n\t\t\t\t\ttransaction.replace(id, fragment_userdata);\n\t\t\t\t\ttransaction.addToBackStack(null);\n\t\t\t\t\ttransaction.commit();\n\n\t\t\t\t} else if (items[item].equals(\"Delete Record\")) {\n\t\t\t\t\tDeleteRecord(temp);\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t} else if (items[item].equals(\"Cancel\")) {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbuilder.show();\n\t}", "private void showLoadDialog() {\n\t\tSet<String> entries = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getStringSet(RECORDED_ENTRIES, null);\n\t\tfinal String[] entriesArray = Arrays.copyOf(entries.toArray(), entries.toArray().length, String[].class);\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(R.string.pick_a_recording);\n\t\tbuilder.setItems(entriesArray, new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int item) {\n\t\t \t// Load the JSON\n\t\t \tnew LoadRecordingAsyncTask(entriesArray[item]).execute();\n\t\t }\n\t\t});\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}", "private void viewRecordButtonActionPerformed() {\n String uri = recordURIComboBox.getSelectedItem().toString();\n String recordJSON = \"\";\n\n try {\n if(aspaceClient == null) {\n String host = hostTextField.getText().trim();\n String admin = adminTextField.getText();\n String adminPassword = adminPasswordTextField.getText();\n\n aspaceClient = new ASpaceClient(host, admin, adminPassword);\n aspaceClient.getSession();\n }\n\n recordJSON = aspaceClient.getRecordAsJSON(uri, paramsTextField.getText());\n\n if(recordJSON == null || recordJSON.isEmpty()) {\n recordJSON = aspaceClient.getErrorMessages();\n }\n } catch (Exception e) {\n recordJSON = e.toString();\n }\n\n // see whether to display window with syntax highlighting\n if (mainFrame == null || mainFrame.getAtVersionNumber().contains(\"15\")) {\n CodeViewerDialog codeViewerDialog = new CodeViewerDialog(this, SyntaxConstants.SYNTAX_STYLE_JAVASCRIPT, recordJSON, true, true);\n codeViewerDialog.setTitle(\"REST ENDPOINT URI: \" + uri);\n codeViewerDialog.setASpaceClient(aspaceClient);\n codeViewerDialog.pack();\n codeViewerDialog.setVisible(true);\n } else {\n ImportExportLogDialog logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, recordJSON);\n logDialog.setTitle(\"REST ENDPOINT URI: \" + uri);\n logDialog.showDialog();\n }\n }", "private void showAudioFilebrowserDialog() {\n\t\tFragmentTransaction ft = getFragmentManager().beginTransaction();\n\t\tFilebrowserDialogFragment fbdf = new FilebrowserDialogFragment();\n\t\tfbdf.show(ft, \"dialog\");\n\t}", "public void showPatientMediaDialog(PDFContainer container) {\n\t\tdialogHandlerAction.getMediaDialog().initBean(globalEditViewHandler.getSelectedPatient(),\r\n\t\t\t\tnew HasDataList[] { globalEditViewHandler.getSelectedPatient() }, container, false);\r\n\r\n\t\t// enabeling upload to task\r\n\t\tdialogHandlerAction.getMediaDialog().enableUpload(\r\n\t\t\t\tnew HasDataList[] { globalEditViewHandler.getSelectedPatient() },\r\n\t\t\t\tnew DocumentType[] { DocumentType.U_REPORT, DocumentType.COUNCIL_REPLY,\r\n\t\t\t\t\t\tDocumentType.BIOBANK_INFORMED_CONSENT, DocumentType.OTHER });\r\n\r\n\t\t// setting info text\r\n\t\tdialogHandlerAction.getMediaDialog()\r\n\t\t\t\t.setActionDescription(resourceBundle.get(\"dialog.media.headline.info.patient\",\r\n\t\t\t\t\t\tglobalEditViewHandler.getSelectedPatient().getPerson().getFullName()));\r\n\r\n\t\t// show dialog\r\n\t\tdialogHandlerAction.getMediaDialog().prepareDialog();\r\n\t}", "DialogResult show();", "@Override\n\tpublic void showAction(int id) {\n\t\t\n\t}", "private void showOpenFileDialog() {\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.setType(\"*/*\");\n // We accept PDF files and images (for image documents).\n intent.putExtra(Intent.EXTRA_MIME_TYPES, new String[] {\"application/pdf\", \"image/*\"});\n\n // Set of the intent for result, so we can retrieve the Uri of the selected document.\n startActivityForResult(intent, REQUEST_OPEN_DOCUMENT);\n }", "public void showDialog(Context context) {\n \n }", "public void openScreenOverviewSmall() {\n/*Generated! Do not modify!*/ replyDTO.setScreenToOpen(\"overviewSmall\");\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.OPEN_SCREEN, \"openScreenOverviewSmall(\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void recordInProductHelpMenuItemClicked() {\n RecordUserAction.record(\"Android.ChromeHome.IPHMenuItemClicked\");\n }", "public void actionPerformed(ActionEvent e) {\n\t\t int returnVal = fc.showOpenDialog(GenerateWindow.this);\n\n\t\t if (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t File goodsoundfile = fc.getSelectedFile();\n\t\t goodSoundTF.setText(\"sounds/\"+goodsoundfile.getName());\n\t\t }}", "public void onClick(DialogInterface dialog,int id) {\n showRoboboDeviceSelectionDialog();\n\n }", "public OverviewSmallConfirmDialogOptions showConfirmDialog(String referenceID, String title, String textContent, String okText, String cancelText) {\n/*Generated! Do not modify!*/ ConfirmDialogParameters confirmDialogParameters = new ConfirmDialogParameters();\n/*Generated! Do not modify!*/ confirmDialogParameters.setReferenceID(referenceID);\n/*Generated! Do not modify!*/ confirmDialogParameters.setTitle(title);\n/*Generated! Do not modify!*/ confirmDialogParameters.setTextContent(textContent);\n/*Generated! Do not modify!*/ confirmDialogParameters.setOkText(okText);\n/*Generated! Do not modify!*/ confirmDialogParameters.setCancelText(cancelText);\n/*Generated! Do not modify!*/ replyDTO.setConfirmDialogParameters(confirmDialogParameters);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"showConfirmDialog(\" + escapeString(referenceID) + \", \" + escapeString(title) + \", \" + escapeString(textContent) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(okText) + \", \" + escapeString(cancelText)+ \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ return new OverviewSmallConfirmDialogOptions(this, confirmDialogParameters);\n/*Generated! Do not modify!*/ }", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardOptionsWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "public void openScreenOverviewLarge() {\n/*Generated! Do not modify!*/ replyDTO.setScreenToOpen(\"overviewLarge\");\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.OPEN_SCREEN, \"openScreenOverviewLarge(\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void showTaskMediaDialog() {\n\t\tdialogHandlerAction.getMediaDialog().initBean(globalEditViewHandler.getSelectedPatient(),\r\n\t\t\t\tnew HasDataList[] { globalEditViewHandler.getSelectedTask() }, false);\r\n\r\n\t\t// enabeling upload to task\r\n\t\tdialogHandlerAction.getMediaDialog().enableUpload(new HasDataList[] { globalEditViewHandler.getSelectedTask() },\r\n\t\t\t\tnew DocumentType[] { DocumentType.U_REPORT, DocumentType.COUNCIL_REPLY,\r\n\t\t\t\t\t\tDocumentType.BIOBANK_INFORMED_CONSENT, DocumentType.OTHER });\r\n\r\n\t\t// setting info text\r\n\t\tdialogHandlerAction.getMediaDialog().setActionDescription(resourceBundle.get(\"dialog.media.headline.info.task\",\r\n\t\t\t\tglobalEditViewHandler.getSelectedTask().getTaskID()));\r\n\r\n\t\t// show dialog\r\n\t\tdialogHandlerAction.getMediaDialog().prepareDialog();\r\n\t}", "@Override\n\t\t\tpublic void onChoiceAttachment(Context context,\n\t\t\t\t\tfinal ChoiceAttachmentItemClickCallBack choiceAttachmentItemClickCallBack) {\n\t\t\t\t\n\t\t\t\tnew ActionSheetDialog(context)\n\t\t\t\t.builder()\n\t\t\t\t.setCancelable(true)\n\t\t\t\t.setCanceledOnTouchOutside(true)\n\t\t\t\t.addSheetItem(\"相机\", ActionSheetDialog.SheetItemColor.Red,\n\t\t\t\t\t\tnew ActionSheetDialog.OnSheetItemClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(int which) {\n\t\t\t\t\t\tif (choiceAttachmentItemClickCallBack != null) {\n\t\t\t\t\t\t\tchoiceAttachmentItemClickCallBack.capturePictureFromCamera();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.addSheetItem(\"相册\", ActionSheetDialog.SheetItemColor.Red,\n\t\t\t\t\t\tnew ActionSheetDialog.OnSheetItemClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(int which) {\n\t\t\t\t\t\tif (choiceAttachmentItemClickCallBack != null) {\n\t\t\t\t\t\t\tchoiceAttachmentItemClickCallBack.choicePicturFromFile();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).show();\n\t\t\t\t\n\t\t\t}", "private void displayLessonSelectionDialog() {\n\t\tpauseMedia();\n\t\tint requestCode = onLargeScreen ? LessonSelectionDialog.SELECT_TO_CLASS\n\t\t\t\t: LessonSelectionDialog.SELECT_TO_LESSON;\n\t\tlessonSelectionDialog = LessonSelectionDialog.newInstance(\n\t\t\t\tLessonSelectionDialog.CLASS_LESSON_SELECT, requestCode);\n\t\tlessonSelectionDialog.setOnDialogResultListener(this, requestCode);\n\t\tlessonSelectionDialog.show(this.getSupportFragmentManager(),\n\t\t\t\t\"lessonSelectionDialog\");\n\t}", "public void ResultVoiceDialog(EventVoice event);", "public void showOptions() {\n this.popupWindow.showAtLocation(this.layout, 17, 0, 0);\n this.customview.findViewById(R.id.dialog).setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.pdf.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = \"pdf\";\n discussionActivity.showPdfChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.img.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity discussionActivity = DiscussionActivity.this;\n discussionActivity.type = ContentTypes.EXTENSION_JPG_1;\n discussionActivity.showImageChooser();\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n this.cancel.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n DiscussionActivity.this.popupWindow.dismiss();\n }\n });\n }", "public void showPerformedAction(int act);", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tnew BriefDialog(mContext, game.key).show();\n\t\t\t}", "public /* synthetic */ void lambda$onCreate$2$ScreenRecordDialog(AdapterView adapterView, View view, int i, long j) {\n this.mAudioSwitch.setChecked(true);\n }", "public void actionPerformed(ActionEvent oEvent) {\n if (oEvent.getActionCommand().equals(\"OK\") ||\n oEvent.getActionCommand().equals(\"Cancel\")) {\n //Close this window\n this.setVisible(false);\n this.dispose();\n }\n else if (oEvent.getActionCommand().equals(\"SummaryOptions\")) {\n ShortOutputFileSetup oOutputFrame = new ShortOutputFileSetup(this,\n m_oOutputBehaviors, m_oWindow);\n oOutputFrame.pack();\n oOutputFrame.setLocationRelativeTo(null);\n oOutputFrame.setVisible(true);\n }\n else if (oEvent.getActionCommand().equals(\"DetailedOutputOptions\")) {\n //Open detailed output file setup window\n DetailedOutputFileSetup outputFrame = new DetailedOutputFileSetup(this,\n m_oOutputBehaviors, m_oWindow);\n outputFrame.pack();\n outputFrame.setLocationRelativeTo(null);\n outputFrame.setVisible(true);\n }\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfireDetailEvent(new DetailEvent(this, 'R'));\r\n\t\t\t}", "public void show() {\r\n isOkPressed = false;\r\n\r\n dialog = RitDialog.create(context);\r\n dialog.setTitle(\"Inline Method\");\r\n dialog.setContentPane(contentPanel);\r\n\r\n buttonOk.requestFocus();\r\n\r\n HelpViewer.attachHelpToDialog(dialog, buttonHelp, \"refact.inline_method\");\r\n SwingUtil.initCommonDialogKeystrokes(dialog, buttonOk, buttonCancel, buttonHelp);\r\n\r\n dialog.show();\r\n }", "public void onClick(View v) {\n\t\t\tif(v == Print)\n\t\t\t{\n\t\t\t\tSaveFileDialog fileDialog = new SaveFileDialog(SeatDetailsbyAgentActivity.this);\n\t\t fileDialog.setCallbackListener(new SaveFileDialog.Callback() {\n\t\t\t\t\t\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onSave(String filename, boolean PDFChecked,\n\t\t\t\t\t\t\tboolean ExcelChecked) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif(PDFChecked){\n\t\t\t\t\t\t\tnew SeatbyAgentPDFUtility(seatReports).createPdf(filename);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(ExcelChecked){\n\t\t\t\t\t\t\tnew SeatbyAgentExcelUtility(seatReports, filename).write();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSKToastMessage.showMessage(SeatDetailsbyAgentActivity.this, \"သင္၏ Report PDF ဖုိင္ အာ External SD Card လမ္းေၾကာင္းသို႕ ထုတ္ ျပီးျပီး ျဖစ္ ပါသည္ \", SKToastMessage.SUCCESS);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t fileDialog.show();\n\t\t return;\n\t\t\t\t\n\t\t\t}\n\t\t}", "public void showTriggered();", "private void showChooser() {\n Intent target = FileUtils.createGetContentIntent();\n // Create the chooser Intent\n Intent intent = Intent.createChooser(\n target, getString(R.string.chooser_title));\n try {\n startActivityForResult(intent, REQUEST_CODE);\n } catch (ActivityNotFoundException e) {\n // The reason for the existence of aFileChooser\n }\n }", "@Override\n public void onClick(View v) {\n Intent returnToPressHelp = new Intent(getApplicationContext(), PressHelp.class);\n startActivity(returnToPressHelp);\n\n\n //Tell the phone that the medication was taken.\n\n }", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardSimulaneousLayerWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "void showAddParameterDialog();", "public /* synthetic */ void lambda$onCreate$1$ScreenRecordDialog(View view) {\n requestScreenCapture();\n finish();\n }", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }", "private void chooseDialog() {\n CharSequence menu[] = new CharSequence[]{\"Take From Galery\", \"Open Camera\"};\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Pick a Picture\");\n builder.setItems(menu, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n if (i == 0) {\n gallery();\n } else {\n takePicture();\n }\n }\n });\n builder.show();\n\n }", "public OverviewSmallStringInputDialogOptions showInputDialog(String referenceID, String title, String textContent, String label, String initialValueText, String okText, String cancelText) {\n/*Generated! Do not modify!*/ InputDialogParameters inputDialogParameters = new InputDialogParameters();\n/*Generated! Do not modify!*/ inputDialogParameters.setReferenceID(referenceID);\n/*Generated! Do not modify!*/ inputDialogParameters.setTitle(title);\n/*Generated! Do not modify!*/ inputDialogParameters.setTextContent(textContent);\n/*Generated! Do not modify!*/ inputDialogParameters.setLabel(label);\n/*Generated! Do not modify!*/ inputDialogParameters.setInitialValueText(initialValueText);\n/*Generated! Do not modify!*/ inputDialogParameters.setOkText(okText);\n/*Generated! Do not modify!*/ inputDialogParameters.setCancelText(cancelText);\n/*Generated! Do not modify!*/ replyDTO.setInputDialogParameters(inputDialogParameters);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ \taddRecordedAction(\"showInputDialog(\" + escapeString(referenceID) + \", \" + escapeString(title) + \", \" + escapeString(textContent) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(label) + \", \" + escapeString(initialValueText) + \", \" + escapeString(okText) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(cancelText)+ \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ return new OverviewSmallStringInputDialogOptions(this, inputDialogParameters);\n/*Generated! Do not modify!*/ }", "public void actionPerformed(ActionEvent e)\n {\n new AutoAnswerOptionsDialog(providerService, parentMenu)\n .setVisible(true);\n }", "@FXML\r\n void onActionTypeReport(ActionEvent event) throws IOException {\r\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/TypeReports.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }", "public void actionPerformed(ActionEvent evt) {\r\n super.actionPerformed(evt);\r\n createDialog().show();\r\n }", "@FXML\r\n\tvoid help_btn_clicked(MouseEvent event) {\r\n\t\tDialog<String> dia = new Dialog<>();\r\n\t\tStage stage = (Stage) dia.getDialogPane().getScene().getWindow();\r\n\t\tDialogPane dialogPane = dia.getDialogPane();\r\n\t\tdialogPane.getStylesheets().add(getClass().getResource(\"/client/boundry/dialog.css\").toExternalForm());\r\n\t\tdialogPane.getStyleClass().add(\"dialog\");\r\n\t\tdia.setTitle(\"Help Dialog\");\r\n\t\tdia.setHeaderText(\"Guide:\");\r\n\t\tdia.setGraphic(new ImageView(this.getClass().getResource(\"/icons8-info-48.png\").toString()));\r\n\t\t// Add a custom icon.\r\n\t\tstage.getIcons().add(new Image(this.getClass().getResource(\"/icons8-help-24.png\").toString()));\r\n\t\tdia.getDialogPane().getButtonTypes().addAll(ButtonType.OK);\r\n\t\tdia.setContentText(\r\n\t\t\t\t\"Main Sale Pattern Screen\\nIn this screen you can choose sale from table,add sale, delete and open\\n\"\r\n\t\t\t\t\t\t+ \"for full information, click on specific sale and choose an action, in addition you can click\"\r\n\t\t\t\t\t\t+ \"on \\\"Statistics\\\" for statistic inforamtion\");\r\n\t\tdia.show();\r\n\t}", "public String mo6833a() {\n return \"show_dialog\";\n }", "public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t// this will hide the dialog\n\n\t\t\t\t\t\t\tSharedPreferences preferences = getSharedPreferences(\n\t\t\t\t\t\t\t\t\t\"FANCY\", 0);\n\t\t\t\t\t\t\tSharedPreferences.Editor editor = preferences\n\t\t\t\t\t\t\t\t\t.edit();\n\t\t\t\t\t\t\teditor.putInt(\"current_mode_id\", voiceid);\n\t\t\t\t\t\t\teditor.putString(\"current_mode_name\", voicename);\n\t\t\t\t\t\t\teditor.commit();\n\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t int returnVal = fc.showOpenDialog(GenerateWindow.this);\n\n\t\t if (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t File badsoundfile = fc.getSelectedFile();\n\t\t badSoundTF.setText(\"sounds/\"+badsoundfile.getName());\n\t\t }}", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\topen(file);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\topenOptionsMenu();\n\t/*\t\t\t\t\t\t\t\t\tIntent intent = new Intent(MediaStore.INTENT_ACTION_MUSIC_PLAYER);\n\t\t\t\t\t\t\t\t\t\tstartActivity(intent);\n\t*/\t\t\t}", "private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 234);\n }", "@Override\r\n\t public void onClick(View v) {\n\t\tBundle bundle = new Bundle();\r\n\t\tbundle.putString(\"msgKind\", \"TRALOG\");\r\n\t\tbundle.putStringArray(\"msgValue\", traLogStr);\r\n\t\tIntent intent = new Intent(DisplayChoice.this, Display.class);\r\n\t\tintent.putExtras(bundle);\r\n\t\tstartActivity(intent);\r\n\t }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfireDetailEvent(new DetailEvent(this,'P'));\r\n\t\t\t}", "private void launchTextConfirmationDialog(final int storeId, Intent data) {\n final Bundle capturedArgs = data.getBundleExtra(\"data\");\n\n //get the keys and values and build a message\n StringBuilder message = new StringBuilder();\n if (capturedArgs != null) {\n for (String key: capturedArgs.keySet()) {\n String value = capturedArgs.get(key).toString();\n message.append(key.toUpperCase() + \": \" + value + \"\\n\");\n\n }\n }\n\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Are these values correct?\")\n .setMessage(message)\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Log.d(\"Dialog\", \"Captured values are correct\");\n dialog.dismiss();\n //Add store id to identify whose these fields are from\n capturedArgs.putInt(Store.KEY_FIELD_STORE_ID, storeId);\n submitSurvey(capturedArgs);\n\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Log.d(\"Dialog\", \"Captured values are NOT correct\");\n dialog.dismiss();\n startOcrCaptureActivity(storeId);\n\n\n }\n })\n .show();\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcd.show(jp, \"3\");\n\t\t\t}", "private void info(ActionEvent x) {\n\t\tProject p = this.list.getSelectedValue();\n\t\tif (p != null) {\n\t\t\tcontroller.moreinfo(p.getName());\n\t\t}\n\t}", "public void display() {\r\n subAwardDlgWindow.setVisible(true);\r\n }", "public void showDialogScreen(String appName, String typedText, String dateTime) {\n Intent i = new Intent(this, ShowTextDialog.class);\n i.putExtra(\"appName\", appName);\n i.putExtra(\"typedText\", typedText);\n i.putExtra(\"dateTime\", dateTime);\n startActivity(i);\n }", "private void display() {\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n// Start the activity, the intent will be populated with the speech text\n startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);\n }", "public void actionPerformed(ActionEvent e) {\r\n JTextField ownerTf;\r\n String mes;\r\n\r\n String record[] = getRecordOnPan();\r\n\r\n try {\r\n int match[] = data.find(record);\r\n \r\n if (match.length > 1) {\r\n updateStatus(\"More than one match record.\");\r\n return;\r\n } else if (match.length == 0) {\r\n updateStatus(\"Record not found.\");\r\n return;\r\n }\r\n \r\n ownerTf = new JTextField();\r\n ownerTf.setText(record[5]);\r\n mes = \"Enter customer id\";\r\n \r\n int result = JOptionPane.showOptionDialog(\r\n frame, new Object[] {mes, ownerTf},\r\n \"Booking\", JOptionPane.OK_CANCEL_OPTION,\r\n JOptionPane.PLAIN_MESSAGE,\r\n null, null, null);\r\n\r\n if (result == JOptionPane.OK_OPTION) {\r\n record[5] = ownerTf.getText();\r\n bc.handleUpdateGesture(match[0], record);\r\n updateStatus(\"Subcontractor booked.\");\r\n }\r\n } catch (Exception ex) {\r\n updateStatus(ex.getMessage());\r\n }\r\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), MacroEdit.class);\n\n if(macroHandler.getMacro(currentName)!= null) {\n Object[] info = macroHandler.getMacro(currentName);\n ArrayList<String> actions = (ArrayList<String>) info[0];\n ArrayList<Integer> hours = (ArrayList<Integer>) info[1];\n ArrayList<Integer> minutes = (ArrayList<Integer>) info[2];\n int MID = (Integer) info[3];\n intent.putExtra(\"macroToEdit\", currentName); //Optional parameters\n intent.putExtra(\"actions\", actions);\n intent.putExtra(\"hours\", hours);\n intent.putExtra(\"minutes\", minutes);\n intent.putExtra(\"MID\", MID);\n getApplicationContext().startActivity(intent);\n }\n }", "public void actionPerformed(ActionEvent e)\n {\n DBFieldInfo fi = dataObjFieldWrapper.getFormatterField().getFieldInfo();\n UIFormatterListEdtDlg dlg = new UIFormatterListEdtDlg((Frame) UIRegistry.getTopWindow(),\n fi, true, uiFieldFormatterMgrCache);\n dlg.setVisible(true);\n \n if (dlg.getBtnPressed() == CustomDialog.OK_BTN)\n {\n if (dlg.getSelectedFormat() != null)\n { \n setFormatter(dlg.getSelectedFormat());\n }\n }\n }", "public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t\t\tgetContext().fileList();\n\t\t\t\t\t\t\t\t}", "public static void editButtonAction(ActionContext actionContext){\n Table dataTable = actionContext.getObject(\"dataTable\");\n Shell shell = actionContext.getObject(\"shell\");\n Thing store = actionContext.getObject(\"store\");\n \n TableItem[] items = dataTable.getSelection();\n if(items == null || items.length == 0){\n MessageBox box = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK);\n box.setText(\"警告\");\n box.setMessage(\"请先选择一条记录!\");\n box.open();\n return;\n }\n \n store.doAction(\"openEditForm\", actionContext, \"record\", items[0].getData());\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t if (mDrawerToggle.onOptionsItemSelected(item)) {\n\t return true;\n\t }\n\t // Handle your other action bar items...\n\t switch(item.getItemId()){\n\t case R.id.menu_add: \n\t \t // Create the ACTION_GET_CONTENT Intent\n\t /*Intent getContentIntent = FileUtils.createGetContentIntent();\n\n\t Intent intent = Intent.createChooser(getContentIntent, \"Select a file\");\n\t startActivityForResult(intent, REQUEST_CHOOSER);\n\t \tbreak;*/\n\n break;\n case R.id.menu_record:\n Intent i = new Intent(this , AudioBookMaker.class);\n startActivity(i);\n break;\n\t }\n\t return super.onOptionsItemSelected(item);\n\t}", "public void showResultsWindow() {\r\n \t\tshowResults.setSelected(true);\r\n \t\tshowResultsWindow(true);\r\n \t}", "@Override\n \t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n \t\t\t\t\t\t\t\t\tint which) {\n \t\t\t\t\t\t\t\taudioView.stopRecord();\n \t\t\t\t\t\t\t\tString mRecordFile = audioView.getFile();\n \t\t\t\t\t\t\t\tNoteEditView.this.mNoteItemModel\n \t\t\t\t\t\t\t\t\t\t.setAudio(mRecordFile);\n \n \t\t\t\t\t\t\t\tContentValues cv = new ContentValues();\n \t\t\t\t\t\t\t\tcv.put(NoteItemModel.AUDIO, mRecordFile);\n \t\t\t\t\t\t\t\tDBHelper dbHelper = DBHelper\n \t\t\t\t\t\t\t\t\t\t.getInstance(NoteEditView.this\n \t\t\t\t\t\t\t\t\t\t\t\t.getContext());\n \t\t\t\t\t\t\t\tdbHelper.update(\n \t\t\t\t\t\t\t\t\t\tDBHelper.TABLE.NOTES,\n \t\t\t\t\t\t\t\t\t\tcv,\n \t\t\t\t\t\t\t\t\t\tNoteItemModel.ID\n \t\t\t\t\t\t\t\t\t\t\t\t+ \" = \"\n \t\t\t\t\t\t\t\t\t\t\t\t+ NoteEditView.this.mNoteItemModel\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t.getId(), null);\n \n \t\t\t\t\t\t\t\tNoteEditView.this.mAudioPlay\n \t\t\t\t\t\t\t\t\t\t.setVisibility(VISIBLE);\n \t\t\t\t\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n new VideoRecording(musePlayerRunner, videoPath, graph, dataTypes);\n }", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "public void selectPressed() {\n\t\tif (edit) {\n\t\t\tdisplayCardHelp = !displayCardHelp;\n\t\t} else {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t}", "private void ShowSavedGardens(){\n }", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\tif (mActionToPerform == \"showDialog\")\n\t\t{\n\t\t\tmDialog = new CartogramWizardConstrainedLayerWindow();\n\t\t\tmDialog.setVisible(true);\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithoutSaving\")\n\t\t{\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\telse if (mActionToPerform == \"closeDialogWithSaving\")\n\t\t{\n\t\t\tmDialog.saveChanges();\n\t\t\tmDialog.setVisible(false);\n\t\t\tmDialog.dispose();\n\t\t}\n\t\t\n\t\n\t}", "void showSelectedAgentView();", "public void confirmRecordingBox(String creationName, ListView listView) {\n //creating the stage for the alertbox, and modifying its properties\n Stage window = new Stage();\n window.initModality((Modality.APPLICATION_MODAL));\n window.setTitle(\"Confirm Recording\");\n window.centerOnScreen();\n\n //Creating the layout and making adjustments\n GridPane grid = new GridPane();\n grid.setPadding(new Insets(10, 10, 10, 10));\n grid.setVgap(8);\n grid.setHgap(10);\n\n HBox buttonContainer = new HBox();\n buttonContainer.setSpacing(10);\n buttonContainer.setAlignment(Pos.CENTER);\n\n //Creating the components\n Button redoButton = new Button(\"Redo\");\n Button listenButton = new Button(\"Listen\");\n Button keepButton = new Button(\"Keep\");\n Label messageLabel = new Label(\"Please Confirm you recording\");\n MediaView mv = new MediaView();\n\n //Adding components to Layout\n buttonContainer.getChildren().addAll(redoButton, listenButton, keepButton);\n GridPane.setConstraints(buttonContainer, 12, 6);\n GridPane.setConstraints(messageLabel, 12, 4);\n grid.getChildren().addAll(buttonContainer, messageLabel);\n\n\n //Event Handling\n keepButton.setOnAction(e -> {\n //Combines the audio and video into a single creation by calling combineVideoAndAudio method\n Creations creation = new Creations();\n creation.combineVideoAndAudio(creationName, listView);\n window.close();\n });\n\n redoButton.setOnAction(e -> {\n //Calling the recording box again to record new audio, recording automatically happens in the background thread\n //due to recordingBox calling recordingAudio\n boolean[] isCancel = recordingBox(\"Recording\", \"Clicking ok will start the recording \\nafter the recording is finished\\nthe window will close by its self\\n\", creationName + \"temp\", 580, 100);\n //In the case that the redo was done and not canceled\n if (!isCancel[0]) {\n //Seting up the process builder commands to delete and rename the creations\n String cmd = \"rm -r ./tempCreations/\" + \"\\\"\" + creationName + \"\\\"\" + \".wav\";\n String cmd2 = \"mv ./tempCreations/\" + \"\\\"\" + creationName + \"temp\" + \"\\\"\" + \".wav\" + \" \" + \"./tempCreations/\" + \"\\\"\" + creationName + \"\\\"\" + \".wav\";\n //Deleting old creations\n ProcessBuilder remover = new ProcessBuilder(\"/bin/bash\", \"-c\", cmd);\n //Renaming new creations in order to play and delete later on\n ProcessBuilder renamer = new ProcessBuilder(\"/bin/bash\", \"-c\", cmd2);\n try {\n Process process = remover.start();\n Process process2 = renamer.start();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n });\n\n listenButton.setOnAction(e -> {\n //Playing the creation in the background thread to ensure concurrency\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n PauseTransition delay = new PauseTransition(Duration.seconds(5));\n //Loading the media to the mediaPlayer to play the audio files\n String file = \"./tempCreations/\" + creationName + \".wav\";\n Media media = new Media(new File(file).toURI().toString());\n MediaPlayer mediaPlayer = new MediaPlayer(media);\n Platform.runLater(() -> {\n mv.setMediaPlayer(mediaPlayer);\n mediaPlayer.play();\n });\n //Disabling the buttons for 5 seconds while the audio file is being played back\n delay.play();\n listenButton.setDisable(true);\n redoButton.setDisable(true);\n keepButton.setDisable(true);\n //Re-enabling the buttons after the audio file finishing.\n delay.setOnFinished(event -> {\n listenButton.setDisable(false);\n redoButton.setDisable(false);\n keepButton.setDisable(false);\n });\n }\n });\n thread.start();\n\n });\n\n Scene scene = new Scene(grid, 480, 120);\n window.setScene(scene);\n window.setResizable(false);\n window.showAndWait();\n }", "private void btnSpeaker2ActionPerformed(java.awt.event.ActionEvent evt) {\n txtSpeaker2.setText(Dialog());\n \n }", "public void actionPerformed(ActionEvent e) {\n\t\t int returnVal = fc.showOpenDialog(GenerateWindow.this);\n\n\t\t if (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t File imagefile = fc.getSelectedFile();\n\t\t imageSelect.setText(\"images/\"+imagefile.getName());\n\t\t }}", "public void showOptions() {\n frame.showOptions();\n }", "void openDialog()\n {\n if(main.copyCmd.listEvCopy.size() >0){\n widgCopy.setBackColor(GralColor.getColor(\"rd\"), 0);\n } else {\n widgCopy.setBackColor(GralColor.getColor(\"wh\"), 0);\n }\n \n windStatus.setFocus(); //setWindowVisible(true);\n\n }", "public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Explorer\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tOpenWithDefaultViewer.open(GestionRepertoire.RecupRepTravail());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "private void showActionDialog(final int position) {\n CharSequence colors[] = new CharSequence[]{\"Edit\", \"Delete\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setTitle(\"Choose Option\");\n builder.setItems(colors, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (which == 0){\n showNoteDialog(true, noteList.get(position), position);\n }\n else if (which == 1){\n deleteNote(noteList.get(position),position);\n }\n }\n });\n builder.show();\n }", "@Override\n public void onClick(View v) {\n mFragment.setFadingEnabled(false);\n long programId = ((RecordedProgram) v.getTag()).getId();\n if (DEBUG) Log.d(TAG, \"Play Related Recording:\" + programId);\n Intent intent = new Intent(getContext(), DvrPlaybackActivity.class);\n intent.putExtra(Utils.EXTRA_KEY_RECORDED_PROGRAM_ID, programId);\n getContext().startActivity(intent);\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t if (e.getActionCommand().startsWith(\"show\")) {\r\n\t System.out.println(e.getActionCommand());\r\n\t String mystring = e.getActionCommand().substring(9);\r\n\t System.out.println(mystring);\r\n\t \r\n\t }\r\n\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String message = mCtx.getResources().getString(R.string.usb_audio_plug_in_message);\n toastPlugInNotification(message, AUDIO_OUT_NOTIFY);\n }", "private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "public void displaySaveGameView()\n {\n System.out.println(\"\\nSave Game View selected.\");\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, ApplicationSession.instance().getString(\"info\"), \"info\", JOptionPane.INFORMATION_MESSAGE, null);\t\n\t\t\t}", "void showFileManagerDialog();", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}", "private void showHelpDialog() {\n\n view.helpDialog();\n }", "public void showPdfChooser() {\n Intent intent2 = new Intent();\n intent2.setType(\"application/pdf\");\n intent2.setAction(\"android.intent.action.GET_CONTENT\");\n startActivityForResult(Intent.createChooser(intent2, \"Select Document\"), PICK_IMAGE_REQUEST);\n }", "public void openFileDialog() {\n\tswitch(buttonAction) {\n\t case SELECT_FILES:\n openFileDialog(fileUpload, true);\n break;\n\t case SELECT_FILE:\n default:\n openFileDialog(fileUpload, false);\n break;\n\t}\n }", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "public void openSaveSelection() {\n\t\ttry {\n\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/SaveSelectionView.fxml\"));\n\t\t\tfxmlLoader.setResources(bundle);\n\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\tStage stage = new Stage();\n\t\t\tSaveSelectionController ssc = fxmlLoader.getController();\n\t\t\tssc.setMainController(this);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\tstage.setTitle(bundle.getString(\"sSHeaderLabel\"));\n\t\t\tstage.setScene(new Scene(root1));\n\t\t\tstage.show();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Booked\", 500).show();\n\t\t\t}", "protected void do_mntmStudentIHelp_actionPerformed(ActionEvent arg0) {\n\t\tDelVecchioMCSRStudentHelpFrame studentHelpFrame = new DelVecchioMCSRStudentHelpFrame();\n\t\tstudentHelpFrame.setVisible(true);\n\t\t\n\t}", "public void showDialog() {\n mDialogInfoWithTwoButtons = new DialogInfoWithTwoButtons(mContext,\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n saveTemplate(mToastEdited);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mTemplateId = mDatabaseManager.getTemplateNewId();\n mPreferenceManager.setTemplateId(mTemplateId);\n saveTemplate(mToastCreated);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, mTitle, mMessage, mTitleButtonOne, mTitleButtonTwo);\n mDialogInfoWithTwoButtons.getDialog().show();\n }" ]
[ "0.60738415", "0.59145766", "0.5861267", "0.5852293", "0.5809512", "0.5808557", "0.5761715", "0.5743746", "0.5739812", "0.5725601", "0.5667606", "0.56436944", "0.56225395", "0.56116", "0.56073886", "0.55990887", "0.55846316", "0.5549275", "0.55456054", "0.5523681", "0.55122083", "0.5506652", "0.5484163", "0.5482748", "0.54772615", "0.5471718", "0.5465482", "0.54560775", "0.5454156", "0.54222554", "0.54141885", "0.5412026", "0.54103804", "0.5408164", "0.5406196", "0.5399782", "0.5397811", "0.5396793", "0.5390458", "0.5386405", "0.5377145", "0.5375047", "0.53734255", "0.5368507", "0.5362359", "0.5355999", "0.53530186", "0.53529686", "0.53525996", "0.535243", "0.53461057", "0.5342115", "0.53208596", "0.5310777", "0.5310684", "0.53089833", "0.53004754", "0.5291506", "0.5290852", "0.5286419", "0.5284289", "0.5282627", "0.5278886", "0.52762365", "0.5274357", "0.5264419", "0.52642137", "0.52526176", "0.5244327", "0.52440614", "0.52385986", "0.52385986", "0.52351534", "0.5233107", "0.52301496", "0.522857", "0.5226169", "0.52102715", "0.5203753", "0.5202405", "0.52013004", "0.51996714", "0.5197822", "0.5197359", "0.51891005", "0.51806766", "0.5178858", "0.51732546", "0.51729065", "0.51719075", "0.5166965", "0.51659226", "0.5162107", "0.51614916", "0.51595926", "0.51595926", "0.51595926", "0.5156399", "0.5153058", "0.51528716", "0.5151809" ]
0.0
-1
Get data from the osu v2 api
public static Object getOsuApiData(String endpoint, Class<?> returnClass, String token) { return WebClient .create(OSU_API_URL + endpoint) .get() .header("Authorization", token) .accept(MediaType.APPLICATION_JSON) .retrieve() .bodyToFlux(returnClass) .onErrorMap(e -> e) .blockLast(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doGetSobotInfo() {\n showProgress(\"\");\n RetrofitApiFactory.createApi(MineApi.class)\n .doGetSobotInfo(0, null, null)\n .compose(RxSchedulers.compose())\n .compose((this).bindUntilEvent(ActivityEvent.DESTROY))\n .subscribe(new FastObserver<BaseData<SobotSystemEntity>>(this) {\n\n @Override\n public void onSuccess(BaseData<SobotSystemEntity> data) {\n SobotApiUtils.getInstance().toCustomServicePage(getContext(), UserInfoCache.get(), null, data.getData());\n }\n });\n }", "@GET(\"/api/data/coinlist/\")\n Call<CoinsResponse> getCoins();", "private void getData() {\n ApiInterface apiInterface = ServiceGenerator.createService(ApiInterface.class);\n Call<TermsConditionApi> call = apiInterface.getTermsCondition();\n call.enqueue(new Callback<TermsConditionApi>() {\n @Override\n public void onResponse(Call<TermsConditionApi> call, Response<TermsConditionApi> response) {\n if (response.isSuccessful()) {\n if (response.body().getStatus().equals(200)) {\n data = response.body().getData();\n } else {\n }\n } else {\n\n }\n }\n\n @Override\n public void onFailure(Call<TermsConditionApi> call, Throwable t) {\n// Toast.makeText(HomeActivity.this, \"\" + t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "public interface ApiService {\n @GET(\"h5game/index/mixlist\")\n Flowable<DataInfo<List<ResultsBean>>> homeFeeds();\n//?app_channel=1000&&push_id=0e47900897c7481e2ec077612a0e1471&system=android&appid=60fa5580-06ca-4f5c-8d5c-0fa41a9d0c7e&phone_version=23&versionNum=213&gouzai_id=G-54e0a4f6ffd6caeac01087c88eb3bfdd&product_type=SM-G9006W&openid=&pno=1&net_stat=1&psize=20&gouzaiId=G-54e0a4f6ffd6caeac01087c88eb3bfdd&version=2.1.3-debug&manufacturer=samsung&channel=1000\n @GET(\"h5game/user/history/list\")\n Flowable<DataInfo<GameInfos>> playHistory();\n}", "public void getData(String platform, String epic_nickname){\n jobsRepository.getEpicInfo(platform,epic_nickname)\n .observeOn(AndroidSchedulers.mainThread())\n .subscribeOn(Schedulers.io())\n .subscribe(new Observer<EpicUser>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(EpicUser epicObject) {\n\n //si los datos del Usuario Consultado no están vacios se añaden a la lista\n if(epicObject!=null) {\n epicDataList.clear();\n StaticPlayer data = epicObject.getStats().getP2();\n epicDataList.add(data.getScore());\n epicDataList.add(data.getScorePerMatch());\n epicDataList.add(data.getMatches());\n epicDataList.add(data.getKills());\n epicUserData.postValue(epicDataList);\n }\n }\n\n //Métodos Autogenerados\n @Override\n public void onError(Throwable e) {\n Log.d(\"Service Fail\",\"err: \"+e.getLocalizedMessage());\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n }", "@Test\n\t \n\t public void getApi() {\n\t\t \n\t\t Response getIt=get(\"https://reqres.in/api/users?page=2\");\n\t\t getIt.prettyPrint();\n\t\t System.out.println(getIt.getStatusCode());\n\t\t System.out.println(getIt.getTime());\n\t\t \n\t\t //to validate\n\t\t int validGstatus=getIt.getStatusCode();\n\t\t Assert.assertEquals(validGstatus,200);\n\t\t \n\t }", "private void getData(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.getJSON();\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")) {\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls, getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else{\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "private JSONObject getWso2AllApi() throws Exception {\n\t\tHttpURLConnection c = null;\n\t\tJSONObject json = null;\n\t\tURL u = new URL(\"http://10.138.30.11:9846/WSO2GatewayPlugin/rest/WSO2PublisherService/getAllApis\");\n\t\tc = (HttpURLConnection) u.openConnection();\n\t\tc.setRequestMethod(\"GET\");\n\t\tc.setRequestProperty(\"Content-length\", \"0\");\n\t\tc.setUseCaches(false);\n\t\tc.setAllowUserInteraction(false);\n\t\tc.connect();\n\t\tint status = c.getResponseCode();\n\n\t\tswitch (status) {\n\t\tcase 200:\n\t\tcase 201:\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(c.getInputStream()));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tsb.append(line + \"\\n\");\n\t\t\t}\n\t\t\tbr.close();\n\t\t\tjson = (JSONObject) new JSONParser().parse(sb.toString());\n\t\t}\n\t\treturn json;\n\t}", "@GET(\"montaje/proyectos/ver/\")\n Call<List<clsProyecto>> getProyectos();", "private void getResultsFromApi() {\n if (! isGooglePlayServicesAvailable()) {\n acquireGooglePlayServices();\n } else if (mCredential.getSelectedAccountName() == null) {\n chooseAccount();\n } else if (! isDeviceOnline()) {\n\n Toast.makeText(getApplicationContext(), \"No Network Connection\",\n Toast.LENGTH_SHORT).show();\n mOutputText.setText(\"No network connection available.\");\n } else {\n new MakeRequestTask(mCredential).execute();\n }\n }", "private void fetchEverything() {\n ApiNewsMethods newsEverything = retrofit.create(ApiNewsMethods.class);\n newsEverything.getEverything(\"bitcoin\"/*topic input by user*/, newsApiKey).enqueue(new Callback<NewsModelClass>() {\n @Override\n public void onResponse(Call<NewsModelClass> call, Response<NewsModelClass> response) {\n if(response.isSuccessful()) {\n newsModelBody = response.body();\n Log.d(\"myBODY\", newsModelBody.getStatus());\n //text to speech object of the response fetched\n newsUIChanges();\n } else {\n Log.d(\"mySTRING\", \"DID NOT OCCUR\");\n }\n }\n\n @Override\n public void onFailure(Call<NewsModelClass> call, Throwable t) {\n }\n\n });\n }", "public String getPlayerInfo(String playerTag) throws IOException {\n\n URL url = new URL(\"https://api.clashroyale.com/v1/players/%23RRPG8LYL\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\n conn.setRequestProperty(\"Authorization\",\"Bearer \"+\" eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiIsImtpZCI6IjI4YTMxOGY3LTAwMDAtYTFlYi03ZmExLTJjNzQzM2M2Y2NhNSJ9.eyJpc3MiOiJzdXBlcmNlbGwiLCJhdWQiOiJzdXBlcmNlbGw6Z2FtZWFwaSIsImp0aSI6ImFhMTY2OWJjLWZlZDYtNGUwZC1hN2I3LWM3MDc1MWIzOTMyMCIsImlhdCI6MTYwNzAyOTkxNCwic3ViIjoiZGV2ZWxvcGVyLzBlZTY4MmJlLWU4YzAtZjczMC04ZjFkLTQ3NzIxMDkyOGY4ZCIsInNjb3BlcyI6WyJyb3lhbGUiXSwibGltaXRzIjpbeyJ0aWVyIjoiZGV2ZWxvcGVyL3NpbHZlciIsInR5cGUiOiJ0aHJvdHRsaW5nIn0seyJjaWRycyI6WyI5MS4xNjUuMjEzLjE3MCJdLCJ0eXBlIjoiY2xpZW50In1dfQ.RR6rOQqc6vG1C67ttHREOOS-973AcbEGHioN2Uk8N7kymDRYybif-BO9C0BJOFMaRJ3nQu0C2kQgTuBCmBM7Pg\");\n\n conn.setRequestProperty(\"Content-Type\",\"application/json\");\n conn.setRequestMethod(\"GET\");\n\n\n BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n String output;\n\n StringBuffer response = new StringBuffer();\n while ((output = in.readLine()) != null) {\n response.append(output);\n }\n\n in.close();\n\n return response.toString();\n }", "@GET(\"v1/competitions/\")\n Call<List<Leagues>> getAllData();", "public List<T2> getData() {\r\n\t\treturn convert.convert2VOes(page.getContent());\r\n\t}", "private void getResultsFromApi() {\r\n if (!isGooglePlayServicesAvailable()) {\r\n acquireGooglePlayServices();\r\n } else if (mCredential.getSelectedAccountName() == null) {\r\n chooseAccount();\r\n } else if (!isDeviceOnline()) {\r\n Toast.makeText(getActivity(), \"No network connection available.\", Toast.LENGTH_LONG).show();\r\n } else {\r\n new MakeRequestTask(mCredential).execute();\r\n }\r\n }", "@Override\n protected String doInBackground(Void... params) {\n if(myApiService == null) {\n MyApi.Builder builder = new MyApi.Builder(AndroidHttp.newCompatibleTransport(), new AndroidJsonFactory(), null)\n // Local testing url (emulator is 10.0.2.2 or use local machine ip)\n // .setRootUrl(\"http://10.0.2.2:8080/_ah/api/\")\n .setRootUrl(\"https://androidjokes-155120.appspot.com/_ah/api/\");\n\n myApiService = builder.build();\n }\n\n // Grab a joke\n try {\n return myApiService.getJoke().execute().getData();\n } catch (IOException e) {\n return e.getMessage();\n }\n }", "public static Dataclient GetData(){\n return RetrofitClient.getClient(Base_Url).create(Dataclient.class);\n }", "public void getResultsFromApi() {\n if (! isGooglePlayServicesAvailable()) {\n acquireGooglePlayServices();\n } else if (mCredential.getSelectedAccountName() == null) {\n mFragment.chooseAccount();\n } else if (! isDeviceOnline()) {\n // mOutputText.setText(\"No network connection available.\");\n } else if (mService == null){\n Log.d(Util.TAG_GOOGLE, mCredential.getSelectedAccountName());\n HttpTransport transport = AndroidHttp.newCompatibleTransport();\n JsonFactory jsonFactory = JacksonFactory.getDefaultInstance();\n mService = new com.google.api.services.gmail.Gmail.Builder(\n transport, jsonFactory, mCredential)\n .setApplicationName(\"Gmail API Android Quickstart\")\n .build();\n mFragment.readEmails();\n }\n }", "void getData() {\n api = retrofitClient.getClient().create(API.class);\n //Defining the method\n api.getBuys().enqueue(new Callback<Data>() {\n @Override\n public void onResponse(Call<Data> call, Response<Data> response) {\n if (response.isSuccessful()) {\n Data data = response.body();\n buyList = data.getData();\n adapterView = new Adapter_sp(getActivity(), buyList);\n rv.setAdapter(adapterView);\n }\n }\n\n @Override\n public void onFailure(Call<Data> call, Throwable t) {\n Log.d(\"loi\",t.toString());\n\n }\n });\n\n\n }", "private void getUserDetailApi() {\n RetrofitService.getOtpData(new Dialog(mContext), retrofitApiClient.getUserDetail(strUserId), new WebResponse() {\n @Override\n public void onResponseSuccess(Response<?> result) {\n UserDataMainModal mainModal = (UserDataMainModal) result.body();\n if (mainModal != null) {\n AppPreference.setBooleanPreference(mContext, Constant.IS_PROFILE_UPDATE, true);\n Gson gson = new GsonBuilder().setLenient().create();\n String data = gson.toJson(mainModal);\n AppPreference.setStringPreference(mContext, Constant.USER_DATA, data);\n User.setUser(mainModal);\n }\n }\n\n @Override\n public void onResponseFailed(String error) {\n Alerts.show(mContext, error);\n }\n });\n }", "public void getResultsFromApi() {\n// if (! isGooglePlayServicesAvailable()) {\n// acquireGooglePlayServices();\n// } else if (mCredential.getSelectedAccountName() == null) {\n// chooseAccount();\n// } else if (! isDeviceOnline()) {\n//// mOutputText.setText(\"No network connection available.\");\n// } else {\n MakeRequestTask req = new MakeRequestTask(mCredential);\n AsyncTaskCompat.executeParallel(req);\n// }\n }", "public interface DataKPU {\n @GET(\"open/v1/api.php?cmd=wilayah_browse&\")\n Call<RWilayah> wilayah_browse(@Query(\"wilayah_id\") String idWil);\n}", "public Apis getApi() {\n //logging requests and responses in verbose\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();\n //build retrofit object\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"http://srishti-systems.info/projects/ForteBank/api/\")\n .addConverterFactory(GsonConverterFactory.create())\n .client(client).build();\n\n //connect api class with this builder\n\n Apis apis = retrofit.create(Apis.class);\n return apis;\n }", "public EntityType2 get() throws ClientException {\n return send(HttpMethod.GET, null);\n }", "public interface PokeApiService {\n\n @GET(\"qvqk-dtmf.json\")\n Call<ArrayList<ViasRespuesta>> obtenerListaPokemon();\n}", "public void getSurprise() {\n Call<List<Chat>> call = jsonPlaceHolderApi.getSurprise();\n call.enqueue(new Callback<List<Chat>>() {\n @Override\n public void onResponse(Call<List<Chat>> call, Response<List<Chat>> response) {\n //not successful\n if (!response.isSuccessful()) {\n Toast.makeText(getContext().getApplicationContext(), response.code(), Toast.LENGTH_LONG).show();\n return;\n }\n //get data\n chat = response.body();\n //Toast.makeText(getContext().getApplicationContext(), chat.get(r).getText(), Toast.LENGTH_LONG).show();\n ai.setText(chat.get(r).getText());\n\n }\n @Override\n public void onFailure(Call<List<Chat>> call, Throwable t) {\n Toast.makeText(getContext().getApplicationContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "@GET(\"device\")\n Call<DevicesResponse> getDevice();", "@GET(\"planetary/apod\")\n Call<APOD> getApod(\n @Query(\"date\") String date,\n @Query(\"api_key\") String API_KEY\n );", "private void getDataFromApi() throws IOException {\n DateTime now = new DateTime(System.currentTimeMillis());\n Events events = mService.events().list(\"primary\")\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n ScheduledEvents scheduledEvents;\n EventsList.clear();\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n start = event.getStart().getDate();\n }\n DateTime end = event.getEnd().getDateTime();\n if (end == null) {\n end = event.getStart().getDate();\n }\n scheduledEvents = new ScheduledEvents();\n scheduledEvents.setEventId(event.getId());\n scheduledEvents.setDescription(event.getDescription());\n scheduledEvents.setEventSummery(event.getSummary());\n scheduledEvents.setLocation(event.getLocation());\n scheduledEvents.setStartDate(dateTimeToString(start));\n scheduledEvents.setEndDate(dateTimeToString(end));\n StringBuffer stringBuffer = new StringBuffer();\n if(event.getAttendees()!=null) {\n for (EventAttendee eventAttendee : event.getAttendees()) {\n if(eventAttendee.getEmail()!=null)\n stringBuffer.append(eventAttendee.getEmail() + \" \");\n }\n scheduledEvents.setAttendees(stringBuffer.toString());\n }\n else{\n scheduledEvents.setAttendees(\"\");\n }\n EventsList.add(scheduledEvents);\n }\n }", "public interface Api {\n /**{\"response\": {\"zbsVer\": 0, \"hostId\": \"001207C40173\", \"room\": [{\"type\": \"\\u603b\\u7ecf\\u7406\", \"roomId\": \"322\", \"name\": \"\\u603b\\u7ecf\\u7406\"}, {\"roomId\": \"350\", \"type\": \"\\u4e3b\\u5367\", \"name\": \"\\u4e3b\\u5367\"}, {\"type\": \"\\u53a8\\u623f\", \"roomId\": \"366\", \"name\": \"\\u5475\\u5475\"}, {\"roomId\": \"381\", \"type\": \"\\u53a8\\u623f\", \"name\": \"\\u53a8\\u623f\"}, {\"roomId\": \"382\", \"type\": \"\\u9910\\u5385\", \"name\": \"\\u9910\\u5385\"}], \"softver\": 104, \"timestamp\": 1501838857, \"zbhVer\": 0, \"lastbackup\": 1499826785, \"pandId\": 101, \"firmver\": 217, \"numbers\": \"15905214137,15252089063,18912345678,15263985632,15152208332\", \"channelNo\": \"f\", \"registerHost\": false, \"name\": \"40173\"}, \"ret\": 0, \"md5\": \"a92c08fdf3a4b4f9aef04b3ce102df32\"}\n\n * 云端接口\n */\n String wrapper_request = \"/wrapper/request\";\n //\n// CloudInterface.h\n// ihome\n//\n// Created by on 3/13/15.\n// Copyright (c) 2015 Co.ltd. All rights reserved.\n\n //测试\n String urlCloud = \"/https://api2.boericloud.com\";\n //正式\n// String urlCloud = \"/https://api.boericloud.com\";\n\n String urlResetMobile = \"/auth/resetMobile\"; //重置手机号码\n String urlNegotiate = \"/auth/negotiate\";\n String urlRegister = \"/auth/register\"; //注册\n String urlSignin = \"/auth/login\"; //登录\n String urlSignOff = \"/auth/logout\"; //登出\n\n String urlResetCloudPassword = \"/auth/resetCloudpassword\"; //重置密码\n String urlSmsVerify = \"/auth/sms_verify\"; //短信验证\n String urlResetPWD = \"/auth/reset_password\"; //忘记密码\n String urlMobileVerify = \"/auth/mobile_verify\"; //验证手机号\n\n String urlUserUpdate = \"/user/update\";\n String urlUserUpdateToken = \"/user/update_token\";\n\n String urlUserPermissions = \"/user/host_permissions\"; //查询用户权限\n String urlUserUpdateExtend = \"/user/update_extend\"; //更新铃声和震动\n String urlUserShowExtend = \"/user/show_extend\"; //获取铃声和震动\n\n String urlHostBind = \"/host/bind\";\n String urlHostShow = \"/host/show\";\n\n String urlHostverifyadminpassword = \"/host/verifyadminpassword\";\n String urlHostSwitch = \"/host/switch\";\n\n String urlWrapperRequest = \"/wrapper/request\";//透传接口,一键备份\n String urlHostRestoreproperty = \"/host/restoreproperty\";//透传接口,一键还原\n\n String urlHostUpgrade = \"/upgrade/latest\";\n String urlHostUpgradeSoftware = \"/host/software_upgrade\";\n\n String urlSystemMessageShow = \"/systemMessage/show\"; //请求某天某类型的系统消息\n\n String urlWarningShow = \"/alarm/show1\"; //请求某天某类型的历史告警\n String urlAlarmDelete = \"/alarm/delete1\";//删除单条或多条历史告警\n String urlAlarmBatchDelete = \"/alarm/batch_delete\";//删除某天某类型的所有告警\n\n String urlSystemMessageDelete = \"/systemMessage/remove\";//删除某天某类型的系统消息\n String urlSystemBatchDelete = \"/systemMessage/batch_delete\";//删除某天某类型的所有系统消息\n\n String urlAlarmRead = \"/alarm/confirm_read\";//确认某条系统告警\n String urlSystemMessageRead = \"/systemMessage/confirmRead\";//确认某条系统消息\n\n String urlAddBlackList = \"/user/add_black_list\";//加入黑名单\n String urlRemoveBlackList = \"/user/remove_black_list\";//移除黑名单\n String urlQueryBlackList = \"/user/query_in_black_list\";//查询用户是否在黑名单内\n\n /*****************************/\n//主机直连 -> 设备相关\n String urlQueryWiseMediaList = \"/device/queryWiseMediaList\";//查询华尔斯背景音乐的歌曲列表\n String urlDeviceScan = \"/device/scan\";//扫描设备\n String urlDeviceLink = \"/device/link\";//关联设备->(新增)\n String urlDeviceQuerylink = \"/device/querylink\";//查询关联设备->(新增)\n String urlDeviceCmd = \"/device/cmd\";//控制设备\n String urlDeviceRemove = \"/device/remove\";//删除设备\n String urlDeviceDismiss = \"/device/dismiss\";//解绑设备\n String urlDeviceUpdateProp = \"/device/updateprop\";//更新设备属性\n String urlDevicesProperties = \"/devices/properties\";//查询设备属性\n String urlDeviceStatus = \"/device/status\";//查询设备状态\n String urlDeviceQueryOneProp = \"/device/queryOneProp\";//查询某一设备的属性->(新增)\n String urlDeviceConfigHgc = \"/device/configHgc\";//配置中控->(新增)\n String urlDeviceDeleteHgcConfig = \"/device/deleteHgcConfig\";//删除中控配置->(新增)\n String urlDeviceQueryHgcConfig = \"/device/queryHgcConfig\";//查询中控配置->(新增)\n String urlDeviceQueryMeterAddr = \"/device/queryMeterAddr\";//查询水电表的地址->(新增)\n String urlDeviceModifyMeterName = \"/device/modifyMeterName\";//修改水电表的名称->(新增)\n String urlDeviceQueryAllDevices = \"/device/queryAllDevices\";//查询所有设备的属性和状态->(新增)\n String urlDeviceSetFloorHeatingTimeTask = \"/device/setFloorHeatingTimeTask\";//设置地暖的定时任务->(新增)\n String urlDeviceSwitchFloorHeatingTimeTask = \"/device/switchFloorHeatingTimeTask\";//开启或者关闭地暖的定时任务->(新增)\n\n //主机直连 -> 主机相关\n String urlHostShowProperty = \"/host/showproperty\";//查询主机信息\n String urlHostModifyProperty = \"/host/modifyproperty\";//修改主机信息\n String urlHostQueryglobaldata = \"/host/queryglobaldata\";//查询全局信息->(新增)\n String urlHostModifyHostName = \"/host/modifyHostName\";//修改主机名称->(新增)\n\n //主机直连 -> 联动模式相关\n String urlPlanShow = \"/plan/show\";//查询指定的联动预案或模式\n String urlPlanUpdate = \"/plan/update\";//更新联动预案或模式\n String urlPlanQueryGlobalModes = \"/plan/queryGlobalModes\";//查询全局模式->(新增)\n String urlPlanModifyModeName = \"/plan/modifyModeName\";//修改模式名称->(新增)\n String urlPlanSetTimeTask = \"/plan/setTimeTask\";//设置模式定时\n String urlPlanTimeTaskSwitch = \"/plan/switchTimeTask\";//开启或关闭模式定时\n String urlPlanAllModes = \"/plan/allModes\";//查询当前主机下所有模式\n\n //主机直连 -> 房间区域相关\n String urlRoomsRemove = \"/room/remove\";//删除房间\n String urlRoomsUpdate = \"/room/update\";//更新房间\n String urlRoomsShow = \"/room/show\";//查询房间\n String urlAreaRemove = \"/room/removearea\";//删除区域\n String urlAreaUpdate = \"/room/updatearea\";//更新区域\n String urlAreaShow = \"/room/showarea\";//查询区域\n String urlRoomsUpdateMode = \"/room/updatemode\";//更新房间模式\n String urlRoomsShowMode = \"/room/showmode\";//查询房间模式\n String urlRoomsActiveMode = \"/room/activemode\";//激活房间模式\n\n//主机直连 -> 告警相关\n\n\n //主机直连 -> 用户相关\n String urlUserLogin = \"/user/login\";//直连登录->(新增)\n String urlUserAuthorizedLogin = \"/user/authorizedLogin\";//授权后的直连登陆(已在云端登陆)->(新增)\n String urlUserLogout = \"/user/logout\";//退出登录->(新增)\n String urlUserSaveUserInfo = \"/user/saveUserInfo\";//直连登录->(新增)\n /*****************************/\n\n String urlReportBloodsugar = \"/health/report_bloodsugar\";//上报血糖值\n String urlDeleteBloodsugar = \"/health/delete_bloodsugar\";//删除血糖值\n String urlUpdateBloodsugar = \"/health/update_bloodsugar\";//修改血糖值\n\n String urlReportBloodPressure = \"/health/report_bloodpressure\";//上报血压值\n String urlDeleteBloodPressure = \"/health/delete_bloodpressure\";//删除血压值\n\n String urlReportBodyWeight = \"/health/report_bodyweight\";//上报体重值\n String urlDeleteBodyWeight = \"/health/delete_bodyweight\";//删除体重值\n\n String urlReportUrine = \"/health/report_urine\"; //上报尿检值\n String urlDeleteUrine = \"/health/delete_urine\";//删除某一条尿检记录\n\n String urlDownHealthCache = \"/data/health_down\";//下载缓存数据\n String urlUploadHealthCache = \"/data/health_upload\";//上传缓存数据\n String urlUploadBloodPressureCache = \"/data/health_upload_blood_pressure\";//上传血压缓存数据\n String urlUploadBloodGlucoseCache = \"/data/health_upload_blood_glucose\";//上传血糖缓存数据\n String urlUploadBodyWeightCache = \"/data/health_upload_body_weight\";//上传体重缓存数据\n String urlUploadUrineCache = \"/data/health_upload_urine\";//上传尿检缓存数据\n\n String urlQueryElec = \"/energy/query_elec\"; //查询电能数据\n String urlQuerySocket = \"/energy/query_socket\"; //查询插座数据\n String urlQueryWater = \"/energy/query_water\"; //查询水表数据\n String urlQueryGas = \"/energy/query_gas\"; //查询气表数据\n\n\n String urlHostShow1 = \"/host/show1\"; //家庭管理中的主机属性\n\n String urlUserInfo = \"/user/userInfo\"; //查找用户信息\n String urlShowInviteCode = \"/user/show_invitecode\"; //查看邀请码\n String urlInvitationConvert = \"/integral/exchange_integral\"; //兑换邀请码\n String urlFamilyAddUser = \"/family/add_user\"; //增加家庭成员\n String urlFamilyTransPermission = \"/family/admin_permission_transfer\"; //转让管理员权限\n String urlFamilyUpdateAlias = \"/family/update_alias\"; //更新主机别名或用户别名\n String urlFamilyDeleteUser = \"/family/delete_user\"; //主机删除用户\n String urlFamilyDeleteHost = \"/family/delete_host\"; //管理员删除主机\n String urlFamilyUserIsAdmin = \"/family/user_isAdmin\"; //当前用户是否为管理员\n String urlFamilyUpdatePermissaion = \"/family/update_permission\"; //更新用户权限\n String urlFamilyUpdateShare = \"/family/update_share\"; //家庭分享健康数据\n String urlFamilyHostAdmin = \"/family/host_admin\"; //查询主机管理员\n\n String urlApplyUserApply = \"/apply/user_apply\"; //主机用户申请\n\n String urlApplyUserApplyV1 = \"/apply/user_apply_v1\"; //主机用户申请接口V1(将判断和推送放在后台)\n String urlApplyUserShow = \"/apply/user_show\"; //查询主机用户申请\n String urlApplyUserDelete = \"/apply/user_delete\"; //删除用户申请\n String urlApplyUserUpdateStatus = \"/apply/user_update_state\"; //更新用户状态\n\n String urlApplyUserUpdateStatusV1 = \"/apply/update_status_v1\"; //更新用户申请状态(将当前状态发送给后台进行筛选)\n String urlApplyUserHost = \"/apply/host_show\"; //查询主机下申请用户\n String urlApplyUserApplyIsExists = \"/apply/user_applyuserid_exist\"; //判断当前用户是否已经申请过\n String urlApplyUserReapply = \"/family/user_reapply\"; //用户重新申请\n String urlApplyQueryUserApplyOrAdnimReject = \"/apply/query_user_apply_reject\"; //查询用户申请或管理员拒绝记录\n\n String urlQueryUserApplyOrShare = \"/apply/query_user_apply_share\"; //查询用户是否有未处理申请或分享\n\n String urlNotificationPush = \"/notification/notification_push\"; //推送通知\n\n String notification_updateMsg = \"/notification_updateMsg\"; //报警通知\n String notification_updateScence = \"/notification_updateScence\"; //场景更新\n String notification_startHomeTimer = \"/notification_startHomeTimer\"; //开启主页轮询\n String notification_stopHomeTimer = \"/notification_stopHomeTimer\"; //关闭主页轮询\n String notification_startDeviceTimer = \"/notification_startDeviceTimer\"; //开启设备轮询\n String notification_stopDeviceTimer = \"/notification_stopDeviceTimer\"; //关闭设备轮询\n String notification_changeHost = \"/notification_changeHost\"; //切换主机\n String notification_updateCity = \"/notification_updateCity\"; //更新城市信息\n String notification_updateFamilyMembers = \"/notification_updateFamilyMembers\"; //更新家庭成员信息\n String notification_removeHomeNotifications = \"/notification_removeHomeNotifications\"; //移除所有通知\n String notification_familyRefresh = \"/notification_familyRefresh\"; //家庭成员刷新\n\n String urlShareUser = \"/share/user_share\"; //查询家庭的接口\n String urlQueryHealth = \"/health/query_health\"; //查询选定日期区间健康数据接口\n String urlQueryRecentHealth = \"/health/query_recent_health\"; //查询最近的健康数据分享接口\n\n String urlQueryRecentNotification = \"/notification/query_recent_notification\"; //查询最近的通知消息\n\n String urlFeedback = \"/feedback/feedback_push\"; //客户端的意见反馈\n\n String urlHostGuard = \"/host/guard\";//门禁对讲接听推送请求\n\n\n String urlStartScanBatch = \"/device/startScanBatch\";//开始批量添加\n String urlStopScanBatch = \"/device/stopScanBatch\";//停止批量添加\n\n String urlQueryDeviceBatch = \"/device/queryDeviceBatch\";//查询设备\n String urlSaveDeviceBatch = \"/device/saveDeviceBatch\";//保存\n\n String urlCommonDevice = \"/device/commondevice\";//设置、取消常用设备\n\n String urlHostShowOnline = \"/host/showonline\"; // 主机是否在线\n String urlgetMsgSettings = \"/settings/find_message_settings_by_mobile\";//获取消息设置\n String urlsetMsgSettings = \"/settings/save_message_settings\";//设置消息设置\n String urlsetPushMsg = \"/notification/notification_push\";//消息推送\n\n String urlQueryAirFilter = \"/energy/query_airFilter\";// 查询 历史记录\n String urlQueryTableWaterFilter = \"/energy/query_tableWaterFilter\";//\n String urlQueryFloorWaterFilter = \"/energy/query_floorWaterFilter\";//\n\n\n}", "private void getUserData() {\n TwitterApiClient twitterApiClient = TwitterCore.getInstance().getApiClient();\n AccountService statusesService = twitterApiClient.getAccountService();\n Call<User> call = statusesService.verifyCredentials(true, true, true);\n call.enqueue(new Callback<User>() {\n @Override\n public void success(Result<User> userResult) {\n //Do something with result\n\n //parse the response\n String name = userResult.data.name;\n String email = userResult.data.email;\n String description = userResult.data.description;\n String pictureUrl = userResult.data.profileImageUrl;\n String bannerUrl = userResult.data.profileBannerUrl;\n String language = userResult.data.lang;\n long id = userResult.data.id;\n\n }\n\n public void failure(TwitterException exception) {\n //Do something on failure\n }\n });\n }", "@Test\n public void testGetCoinTypeDetail() throws Exception {\n WebApiBaseReq req = new WebApiBaseReq();\n req.setId(2l);\n String token = CacheHelper.buildTestToken(\"1\");\n req.setToken(token);\n LOG.d(this,req);\n String str = JsonHelper.obj2JsonStr(req);\n WebApiResponse response = virtualCoinCtrl.getCoinTypeDetail(str);\n LOG.d(this, response);\n }", "@Headers(\"Authorization:{WRITE_YOURS_TOKEN}\")\n @GET(\"/api/rest/issues?page_size=10&page=1\")\n Call<Issues> getData();", "@GET(\"iss-now.json/\")\n Call<ISStatus> GetLocation();", "void getData(){\n getListPlaceBody getListPlaceBody = new getListPlaceBody(0,0,\"\");\n Retrofit retrofit = new Retrofit\n .Builder()\n .addConverterFactory(GsonConverterFactory.create())\n .baseUrl(\"http://150.95.115.192/api/\")\n .build();\n retrofit.create(WonderVNAPIService.class)\n .getListPlace(getListPlaceBody)\n .enqueue(new Callback<ResponseBody>() {\n @Override\n public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {\n try {\n Log.e(\"onResponse\", \"Response\");\n String strJson = response.body().string();\n tvContent.setText(strJson);\n Gson gson = new Gson();\n placeData =gson.fromJson(strJson, PlaceData.class);\n }catch (IOException e){\n e.printStackTrace();\n }\n\n }\n\n @Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n Log.e(\"onFailure\", \"Failure\");\n }\n });\n\n }", "private void getProfil() {\n Call<FeedUser> call = baseApiService.getAllProfile(sessionManager.getSpContenttype(),\n sessionManager.getSpAccept(), sessionManager.getSpAuthorization());\n call.enqueue(new Callback<FeedUser>() {\n @Override\n public void onResponse(Call<FeedUser> call, Response<FeedUser> response) {\n if (response.isSuccessful()) {\n try {\n name = response.body().getDataProfil().getName().toString();\n email = response.body().getDataProfil().getEmail();\n initComponetNavHeader();\n } catch (Exception e) {\n Log.d(TAG, \" error :\" + e);\n }\n\n } else {\n Toast.makeText(SettingActivity.this, \"Response not success\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<FeedUser> call, Throwable t) {\n Toast.makeText(SettingActivity.this, \"Cek Connection\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public interface GetCountryDataService {\n\n\n\n @GET(\"country/get/all\")\n Call<Info> getResults();\n\n\n\n\n\n\n\n\n}", "public void get(Context context) {\n context.json(\n api.getByUuid(context.pathParam(\":uuid\"))\n );\n }", "public void retrieveInformation() {\n\n new GetYourJsonTask2().execute(new ApiConnector());\n\n// Retrieve Info from ThingSpeak\n// String lightApi = \"https://api.thingspeak.com/channels/595680/fields/1.json?results=2\";\n// JsonObjectRequest objectRequest =new JsonObjectRequest(Request.Method.GET, lightApi, null,\n// new Response.Listener<JSONObject>() {\n// @Override\n// public void onResponse(JSONObject response) {\n// textView.append(\"lala\");\n// try {\n// JSONArray feeds = response.getJSONArray(\"feeds\");\n// for(int i=0; i<feeds.length();i++){\n// JSONObject jo = feeds.getJSONObject(i);\n// String l=jo.getString(\"field1\");\n// Toast.makeText(getApplicationContext(),l,Toast.LENGTH_SHORT).show();\n// textView.append(l);\n//\n// }\n// } catch (JSONException e) {\n// textView.append(\"error\");\n// e.printStackTrace();\n// }\n// }\n// }, new Response.ErrorListener() {\n// @Override\n// public void onErrorResponse(VolleyError error) {\n//\n// }\n// });\n\n\n\n }", "public void getHappiness() {\n Call<List<Chat>> call = jsonPlaceHolderApi.getHappiness();\n call.enqueue(new Callback<List<Chat>>() {\n @Override\n public void onResponse(Call<List<Chat>> call, Response<List<Chat>> response) {\n //not successful\n if (!response.isSuccessful()) {\n Toast.makeText(getContext().getApplicationContext(), response.code(), Toast.LENGTH_LONG).show();\n return;\n }\n //get data\n chat = response.body();\n //Toast.makeText(getContext().getApplicationContext(), chat.get(r).getText(), Toast.LENGTH_LONG).show();\n ai.setText(chat.get(r).getText());\n\n }\n @Override\n public void onFailure(Call<List<Chat>> call, Throwable t) {\n Toast.makeText(getContext().getApplicationContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "@Test\n public void oTAUpdateGETTest() throws ApiException {\n //UUID id = null;\n //OTAUpdateResponse response = api.oTAUpdateGET(id);\n // TODO: test validations\n }", "@GET\n @Produces(\"application/json\")\n public List<OsData> listAllOs() {\n return osBO.getAllOs();\n }", "private void getDataBahasa(){\n\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_program_like(\"Bahasa\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1= response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "private void getVideo() {\n // create the url\n String temp = movie.getId().toString();\n String url = API_BASE_URL+\"/movie/\"+temp+\"/videos\";\n // set the request parameters\n RequestParams params = new RequestParams();\n params.put(API_KEY_PARAM, getString(R.string.api_key)); // Always needs API key\n // request a GET response expecting a JSON object response\n\n client.get(url,params, new JsonHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n // load the results into movies list\n\n try {\n JSONArray results = response.getJSONArray(\"results\");\n JSONObject curMovie = results.getJSONObject(0);\n key = curMovie.getString(\"key\");\n\n } catch (JSONException e) {\n logError(\"Failed to parse play_video endpoint\", e, true);\n }\n\n\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n logError(\"Failed to get data from Now_playing endpoint\", throwable, true);\n }\n });\n\n }", "private void getDataSalaf(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_jenis(\"Salaf\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "private void getDataModern(){\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_jenis(\"Modern\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1 = response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "@GET(\"characters/\")\n Call<PersonagemResponse> getTopRatedMovies(@Query(\"api_key\") String apiKey);", "public static void ObtenerDatosGustoVerdura(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/GustoVerdura\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }", "@GET\n @Path(\"location/Arovince\")\n @Produces(\"application/json\")\n public String getJson() throws IOException {\n FileWriter file = new FileWriter(\"/home/component/NetBeansProjects/ArovinceAndSchool/web/api/Arovince.json\");\n JSONObject jsonArray = null;\n\n try {\n URL url = new URL(\"https://opend.data.go.th/get-ckan/datastore_search?resource_id=df922923-e009-4dee-92fc-d963a86ce4b8\"); \n HttpURLConnection httpURLConnection = (HttpURLConnection)url.openConnection();\n httpURLConnection.setRequestMethod(\"GET\");\n httpURLConnection.setRequestProperty(\"api-key\", \"XOe9aVTolOhCbyTU103IqAKTNNNPX8b5\");\n String line = \"\";\n InputStreamReader inputStreamReader = new InputStreamReader(httpURLConnection.getInputStream());\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n StringBuilder response = new StringBuilder();\n\n try {\n while((line = bufferedReader.readLine()) != null) {\n file.write(line);\n response.append(line);\n }\n } catch (IOException var10) {\n }\n\n file.close();\n bufferedReader.close();\n jsonArray = new JSONObject(response.toString());\n return jsonArray.toString(4);\n } catch (Exception var11) {\n return \"\" + var11;\n }\n }", "public interface RestApi {\n\n @GET(\"/ride.asp\")\n Call<List<Model>> getData (@Query(\"userid\") int userId,\n @Query(\"from_name\") String fromName,\n @Query(\"from_lat\") double lat,\n @Query(\"from_lng\") double lng,\n @Query(\"to_name\") String toName,\n @Query(\"to_lat\") double toLat,\n @Query(\"to_lng\") double toLng,\n @Query(\"time\") long time);\n}", "private ApiInfo getApiInfo() {\n\t\treturn new ApiInfoBuilder().title(\"Online Salon Appointment API\").version(\"1.0\")\n\t\t\t\t.description(\"API for online salon appointment.\").contact(new Contact(\"TEAM 1\",\n\t\t\t\t\t\t\"http://localhost:8100/OnlineSalonAppointment/swagger-ui/\", \"salonservice.office@gmail.com\"))\n\t\t\t\t.license(\"Apache License Version 2.0\").build();\n\t}", "public ApiResponse<List<SystemPresence>> getSystempresences(ApiRequest<Void> request) throws IOException {\n try {\n return pcapiClient.invoke(request, new TypeReference<List<SystemPresence>>() {});\n }\n catch (ApiException exception) {\n @SuppressWarnings(\"unchecked\")\n ApiResponse<List<SystemPresence>> response = (ApiResponse<List<SystemPresence>>)(ApiResponse<?>)exception;\n return response;\n }\n catch (Throwable exception) {\n if (pcapiClient.getShouldThrowErrors()) {\n if (exception instanceof IOException) {\n throw (IOException)exception;\n }\n throw new RuntimeException(exception);\n }\n @SuppressWarnings(\"unchecked\")\n ApiResponse<List<SystemPresence>> response = (ApiResponse<List<SystemPresence>>)(ApiResponse<?>)(new ApiException(exception));\n return response;\n }\n }", "private void getDataLainya(){\n\n UserAPIService api = Config.getRetrofit().create(UserAPIService.class);\n Call<Value> call = api.lihat_jenis(\"Komprehensif\");\n call.enqueue(new Callback<Value>() {\n @Override\n public void onResponse(Call<Value> call, Response<Value> response) {\n// pDialog.dismiss();\n String value1= response.body().getStatus();\n if (value1.equals(\"1\")){\n Value value = response.body();\n resultAlls = new ArrayList<>(Arrays.asList(value.getResult()));\n adapter = new RecyclerAdapterListAll(resultAlls,getApplicationContext());\n recyclerView.setAdapter(adapter);\n }else {\n Toast.makeText(ListPonpesActivity.this,\"Maaf Data Tidak Ada\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Value> call, Throwable t) {\n // pDialog.dismiss();\n Toast.makeText(ListPonpesActivity.this,\"Respon gagal\",Toast.LENGTH_SHORT).show();\n Log.d(\"Hasil internet\",t.toString());\n }\n });\n }", "public List<Data> getAllDataFromService() {\n\t\t\n\t\tList<Data> data = new ArrayList<>();\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\t// get first page data\n\t\tResponse response = restTemplate.getForObject(\n\t\t\t\t\"https://jsonmock.hackerrank.com/api/article_users/search?page=1\",\n\t\t\t\tResponse.class);\n\t\tdata.addAll(response.getData());\n\t\t\n\t\t// get second page data\n\t\tResponse response2 = restTemplate.getForObject(\n\t\t\t\t\"https://jsonmock.hackerrank.com/api/article_users/search?page=2\",\n\t\t\t\tResponse.class);\n\t\tdata.addAll(response2.getData());\n\t\t\n\t\treturn data;\t\n\t}", "private static void readSteamAPI() throws IOException {\n URL oracle = new URL(\"http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=407CEDDFFC32EE02E865328245752A79&steamid=76561198129178478&include_appinfo=true&format=xml\");\n BufferedReader in = new BufferedReader(new InputStreamReader(oracle.openStream()));\n String inputLine;\n while ((inputLine = in.readLine()) != null){\n if (inputLine.contains(\"<name>\")) {\n String name;\n name = inputLine.replaceAll(\"<name>\", \"\");\n name = name.replaceAll(\"</name>\", \"\");\n if (name.contains(\"&apos;\"))\n name = name.replaceAll(\"&apos;\", \"'\");\n System.out.println(name.trim());\n }\n if (inputLine.contains(\"<playtime_forever>\")) {\n String playtime;\n playtime = inputLine.replaceAll(\"<playtime_forever>\", \"\");\n playtime = playtime.replaceAll(\"</playtime_forever>\", \"\");\n if (playtime.contains(\"&apos;\"))\n playtime = playtime.replaceAll(\"&apos;\", \"'\");\n System.out.println(playtime.trim());\n }\n }\n in.close();\n }", "java.lang.String getResponse();", "@GET(\"movie/{id}\")\n Call<PersonagemResponse> getMovieDetails(@Path(\"id\") int id, @Query(\"api_key\") String apiKey);", "public interface ApiService {\n @GET(\"api/timelines/users/918753190470619136\")\n Call<HeadPOJO> pojoGetter();\n}", "@Override\n\t\tprotected GetDeviceInfoRes doInBackground(Void... params) {\n\t\t\treturn JsonOA.getDeviceInfo();\n\t\t}", "public interface LooksoftMainApi {\n @GET(\"main\")\n Call<Data> loadData();\n}", "@GET(\"user\")\n Call<User> getUser();", "public ApiResponse<SourceEntityListing> getPresenceSources(ApiRequest<Void> request) throws IOException {\n try {\n return pcapiClient.invoke(request, new TypeReference<SourceEntityListing>() {});\n }\n catch (ApiException exception) {\n @SuppressWarnings(\"unchecked\")\n ApiResponse<SourceEntityListing> response = (ApiResponse<SourceEntityListing>)(ApiResponse<?>)exception;\n return response;\n }\n catch (Throwable exception) {\n if (pcapiClient.getShouldThrowErrors()) {\n if (exception instanceof IOException) {\n throw (IOException)exception;\n }\n throw new RuntimeException(exception);\n }\n @SuppressWarnings(\"unchecked\")\n ApiResponse<SourceEntityListing> response = (ApiResponse<SourceEntityListing>)(ApiResponse<?>)(new ApiException(exception));\n return response;\n }\n }", "public interface DatosAPI\n{\n @GET(\"kspt-6t6c.json\")\n Call<List<CentrosAyuda>> obtenerLista();\n}", "public void getData(Context context) {\n try{\n // Datos locales\n PackageInfo pckginfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0);\n currentVersionCode = pckginfo.versionCode;\n currentVersionName = pckginfo.versionName;\n\n // Datos remotos\n String data = downloadHttp(new URL(INFO_FILE));\n JSONObject json = new JSONObject(data);\n latestVersionCode = json.getInt(\"versionCode\");\n latestVersionName = json.getString(\"versionName\");\n downloadURL = json.getString(\"downloadURL\");\n Log.d ( \"AutoUpdate\" , \"Data obtained successfully\" );\n } catch (JSONException e) {\n Log.e ( \"AutoUpdate\" , \"There was an error with JSON\" , e);\n } catch (NameNotFoundException e) {\n Log.e ( \"AutoUpdate\" , \"There was an error with Packete: S\" , e);\n } catch (IOException e) {\n Log.e ( \"AutoUpdate\" , \"There was an error downloading\" , e);\n }\n }", "@Test\n public void getMeasurementUsingGETTest() throws ApiException {\n String date = null;\n String time = null;\n String place = null;\n String pollutant = null;\n MeasurementsDTO response = api.getMeasurementUsingGET(date, time, place, pollutant);\n\n // TODO: test validations\n }", "@Override\n public JsonObjectRequest fetchData(AppDatabase database) {\n // create the JSON request for courses offered by each school\n return new JsonObjectRequest\n (Request.Method.GET, \"https://data.gov.sg/api/action/datastore_search?resource_id=3bb9e6b0-6865-4a55-87ba-cc380bc4df39&limit=500000\", null, new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n try {\n // parse results as json array\n JSONArray allSchoolToCourseAsJSONArray = getResultsAsJSONArray(response);\n\n // get each entry in results and store in database\n parseJSONArrayAndStoreInDatabase(database, allSchoolToCourseAsJSONArray);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n // TODO: Handle error\n System.out.println(\"Rabak la bro: \" + error.toString());\n }\n });\n }", "public interface IPokeapiService {\n\n\n\n// @GET(\"lp_iem/result.json\")\n// Call<PokemonWs> listPokemon();\n\n @GET(\"?action=cardlist&\")\n Call<List<Pokemon>> listPokemon(@Query(\"user\")int user);\n //@Query(\"user\")int user\n\n @GET(\"?action=details&\")\n Call<Pokemon> getPokemon(@Query(\"card\")int id_card);\n\n @GET(\"?action=pokedex\")\n Call<List<Pokemon>> getPokedex();\n\n}", "public interface PokeApi {\n String POKEMON_API_ENDPOINT = \"http://pokeapi.co\";\n int POKEMONS_COUNT = 493;\n int MOVES_COUNT = 626;\n int ABILITIES_COUNT = 248;\n int TYPES_COUNT = 18;\n\n @GET(\"/api/v1/sprite/{id}\")\n rx.Observable<Response> getPokemonNameByID(@Path(\"id\") Integer id);\n\n @GET(\"/api/v1/pokemon/{id}\")\n rx.Observable<PokeID> getPokemonByID(@Path(\"id\") Integer id);\n\n //718 pokemons available, but we download only 493 due to limited sprites available\n @GET(\"/api/v1/pokemon/{id}/\")\n rx.Observable<PokeDetail> getPokemonDetail(@Path(\"id\") Integer id);\n\n //18 types available\n @GET(\"/api/v1/type/{id}/\")\n rx.Observable<PokeType> getPokemonType(@Path(\"id\") Integer id);\n\n //626 moves available\n @GET(\"/api/v1/move/{id}/\")\n rx.Observable<PokeMove> getPokemonMove(@Path(\"id\") Integer id);\n\n //248 abilitiess available\n @GET(\"/api/v1/ability/{id}/\")\n rx.Observable<PokeAbility> getPokemonAbility(@Path(\"id\") Integer id);\n}", "@Test(enabled=true)\npublic void getRequest() {\n\t\tString url = \"https://reqres.in/api/users?page=2\";\n\t\t\n\t\t//create an object of response class\n\t\t\n\t\t//Restassured will send get request to the url and store response in response object\n\t\tResponse response = RestAssured.get(url);\n\t\t\n\t\t//We have to put assertion in response code and response data\n\t\tAssert.assertEquals(response.getStatusCode(), 200 , \"Response code Mismatch\");\n\t\t\n\t\tint total_pages = response.jsonPath().get(\"total_pages\");\n\t\tAssert.assertEquals(total_pages, 2 , \"Total Pages value Mismatch\");\n \n}", "@Override\n public void onFailure(Call<statusNearby> call, Throwable t) {\n Log.d(\"Status : \",\"Failed Fetch API 2\");\n }", "public interface ApiService {\n @GET(\"questcms/floorplan\")\n Call<List<FloorPlan>> listFloorPlan();\n}", "@Test\n public void GetMEthod() {\n\n RestAssured.baseURI = \"http://www.omdbapi.com/\";\n\n RequestSpecification request = RestAssured\n\n .given()\n .config(RestAssured.config().sslConfig(new SSLConfig().allowAllHostnames()));\n\n Response response = request\n\n .when()\n\n .get(\"/?apikey=5148dbc1&s=Harry Potter\")\n .then()\n .statusCode(200)\n\n\n .extract().response();\n\n int responseCode = response.getStatusCode();\n ResponseBody responseBody = response.getBody();\n ArrayList<String> list=new ArrayList<String>();\n\n //System.out.println(response.asString());\n Gson gson=new Gson();\n String json=response.asString();\n Search obj=gson.fromJson(json,Search.class);\n String imdb=\"\";\n for (Element e:obj.Search\n ) {\n String title=e.getTitle();\n if (title.equals(\"Harry Potter and the Sorcerer's Stone\")){\n imdb=e.getimdbID();\n }\n }\n System.out.println(\"imdbID:\"+imdb);\n //http://www.omdbapi.com/?apikey=5148dbc1&i=tt0241527&type=movie\n RequestSpecification request1 = RestAssured\n\n .given()\n .config(RestAssured.config().sslConfig(new SSLConfig().allowAllHostnames()));\n\n Response response1 = request1\n\n .when()\n\n .get(\"/?apikey=5148dbc1&i=\"+imdb+\"&type=movie\")\n .then()\n .statusCode(200)\n\n\n .extract().response();\n\n String json1=response1.asString();\n Movie obj1=gson.fromJson(json1,Movie.class);\n\n System.out.println(\"Title:\" +obj1.getTitle() + \" Year: \" + obj1.getYear()+ \" Released: \"+obj1.getReleased());\n\n System.out.println(\"---------------------\");\n\n\n\n\n\n }", "public interface Service {\n @GET(\"/orama-media/json/fund_detail_full.json?limit=1000&offset=0&serializer=fund_detail_full\")\n Call<List<Example>> getExample();\n\n}", "@GET(\"match\")\n Call<Matches> getMatches();", "public GTData getDocument(String ID, Type type) throws Exception {\n Get request = new Get.Builder(INDEX_NAME, ID).build();\n\n JestResult result = client.execute(request);\n GTData data = null;\n if (type.equals(Bid.class)) {\n data = result.getSourceAsObject(Bid.class);\n } else if (type.equals(Task.class)) {\n data = result.getSourceAsObject(Task.class);\n } else if (type.equals(User.class)) {\n data = result.getSourceAsObject(User.class);\n } else if (type.equals(Photo.class)) {\n data = result.getSourceAsObject(Photo.class);\n }\n Log.i(\"checkget\",data.toString());\n return data;\n\n\n }", "public void fetchDatafromServer(String type) {\n final Home baseHomeActivity = (Home) getActivity();\r\n\r\n JsonArrayRequest jsonArrayRequest =\r\n new JsonArrayRequest(\r\n Request.Method.GET, serverURL + \"/\" + type + \"/\", null, this, this) {\r\n @Override\r\n public Map<String, String> getHeaders() throws AuthFailureError {\r\n HashMap<String, String> headers = new HashMap<String, String>();\r\n headers.put(\"Authorization\", \"Token \" + baseHomeActivity.mToken);\r\n return headers;\r\n }\r\n };\r\n baseHomeActivity.mQueue.add(jsonArrayRequest);\r\n }", "public interface PokemonService {\r\n\r\n @GET(\"pokemon/\")\r\n Call<Pokemons> getPokemons(@Query(\"offset\") int offset, @Query(\"limit\") int limit);\r\n\r\n @GET(\"pokemon/{id}/\")\r\n Call<Pokemon> getDetailPokemon(@Path(\"id\") int id);\r\n\r\n public static final Retrofit retrofit = new Retrofit.Builder()\r\n .baseUrl(\"https://pokeapi.co/api/v2/\")\r\n .addConverterFactory(GsonConverterFactory.create())\r\n .build();\r\n}", "public static List<String> getAllTeams() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder();\n //http://api.football-data.org/v2/teams/\n uriBuilder.setScheme(\"http\").setHost(\"api.football-data.org\").setPath(\"v2/teams/\");\n HttpGet httpGet = new HttpGet(uriBuilder.build());\n httpGet.setHeader(\"X-Auth-Token\",\"7cf82ca9d95e498793ac0d3179e1ec9f\");\n httpGet.setHeader(\"Accept\",\"application/json\");\n HttpResponse response = httpClient.execute(httpGet);\n ObjectMapper objectMapper = new ObjectMapper();\n TeamsPojo pojo = objectMapper.readValue(response.getEntity().getContent(),TeamsPojo.class);\n List<String> willBeReturned = new ArrayList<>();\n List<Teams> teams = pojo.getTeams();\n for (int i =0 ; i<teams.size();i++){\n willBeReturned.add(teams.get(i).getName());\n }\n\n\n return willBeReturned;\n }", "private ApiInfo apiInfo() {\n Contact contact = new Contact(\"Hanchuanjun\", \"\", \"han@inhand.com.cn\");\n ApiInfo apiInfo = new ApiInfo(\n \"GEHC SmartX SSO-OAuth模块api\",\n \"GEHC SmartX SSO-OAuth模块服务api\",\n \"v0.0.1\",\n \"初始化版本\",\n contact,\n \"\",\n \"\");\n return apiInfo;\n }", "public static void ObtenerDatosHistorial_Autoeficacia(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/HistorialAuto\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }", "public String getAPI()\n {\n ResponseEntity<String> person;\n\n /*\n\t\t * Headers for the response type if we want to return JSON response then we\n\t\t * require to add.\n */\n HttpHeaders headers = new HttpHeaders();\n\n /*\n\t\t * Adding of the response header with application/json type\n */\n headers.add(\"Accept\", \"application/json\");\n\n /*\n\t\t * Creation of the Entity object for the adding the headers into request.\n */\n entity = new HttpEntity<>(headers);\n\n /*\n\t\t * Creation of REST TEMPLET object for the executing of the REST calls.\n */\n restTemplate = new RestTemplate();\n\n /*\n\t\t * Adding the basic type of authentication on the REST TEMPLETE.\n */\n restTemplate.getInterceptors()\n .add(new BasicAuthorizationInterceptor(\"Administrator\", \"Oneeight@admin18\"));\n\n /*\n\t\t * Execution of the REST call with basic authentication and JSON response type\n */\n person = restTemplate.exchange(\"http://52.172.222.197:8080/versa/login?username=Administrator&password=Oneeight@admin18\", HttpMethod.POST, entity, String.class);\n System.out.println(\"\"+person.toString());\n //headers.add(\"Cookie\", \"JSESSIONID=0FC37952D64B545C46969EFEC0E4FD12\");\n headers.add(\"Cookie\", person.getHeaders().getFirst(HttpHeaders.SET_COOKIE));\n entity = new HttpEntity<>(headers);\n person = restTemplate.exchange(\"http://52.172.222.197:8080/versa/analytics/v1.0.0/data/provider/tenants/OneEight/features/SDWAN/?qt=summary&start-date=1daysAgo&end-date=today&q=linkusage(site)&metrics=volume-rx&metrics=volume-tx&metrics=volume-rx&metrics=volume-tx&metrics=bandwidth&ds=aggregate&count=10\", HttpMethod.GET, entity, String.class);\n\n /*\n\t\t * Returning the response body with string format that easily readable.\n */\n return person.getBody();\n }", "private void getData(){\r\n \tsetProgressBarIndeterminateVisibility(true);\r\n \t\r\n\t String url = \"HospitalInfo?hospital=\" + URLEncoder.encode(hospital) + \"&ssid=\" + UserInfo.getSSID();\r\n\t download = new HttpGetJSONConnection(url, mHandler, TASK_GETDATA);\r\n\t download.start();\r\n }", "public PersonajeVO getPersonaje(String url) {\n\t\tGson gson = new Gson();\n\t\tHttpClient httpClient = new DefaultHttpClient();\n\t\tPersonajeVO data = new PersonajeVO();\n\t\t java.lang.reflect.Type aType = new TypeToken<PersonajeVO>()\n\t\t{}.getType();\n\t\t gson = new Gson();\n\t\t httpClient = WebServiceUtils.getHttpClient();\n\t\t try {\n\t\t HttpResponse response = httpClient.execute(new HttpGet(url));\n\t\t HttpEntity entity = response.getEntity();\n\t\t Reader reader = new InputStreamReader(entity.getContent());\n\t\t data = gson.fromJson(reader, aType);\n\t\t } catch (Exception e) {\n\t\t Log.i(\"json array\",\"While getting server response server generate error. \");\n\t\t }\n\t\t return data;\n\t}", "public interface HeroesApi {\n String BASE_URL = \"https://www.simplifiedcoding.net/demos/\";\n\n @GET(\"marvel\")\n Call<List<Hero>> getAll();\n}", "public void getDisgust() {\n Call<List<Chat>> call = jsonPlaceHolderApi.getDisgust();\n call.enqueue(new Callback<List<Chat>>() {\n @Override\n public void onResponse(Call<List<Chat>> call, Response<List<Chat>> response) {\n //not successful\n if (!response.isSuccessful()) {\n Toast.makeText(getContext().getApplicationContext(), response.code(), Toast.LENGTH_LONG).show();\n return;\n }\n //get data\n chat = response.body();\n //Toast.makeText(getContext().getApplicationContext(), chat.get(r).getText(), Toast.LENGTH_LONG).show();\n ai.setText(chat.get(r).getText());\n\n }\n @Override\n public void onFailure(Call<List<Chat>> call, Throwable t) {\n Toast.makeText(getContext().getApplicationContext(), t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "public interface NearByInfoApi {\n @GET(\"home/get_single\")\n public Call<NearByInfo> getNearbyInfo(@QueryMap ArrayMap<String,String> params);\n}", "private void getData(String country_id , String type) {\n String url = getString(R.string.base_url)+\"properties?page=\"+1+\"?l=\"+country_id+\"&c=\"+type;\n// String url = getString(R.string.base_url)+\"properties/?page=\"+pagenumber;\n progressDialog = new ProgressDialog(getActivity());\n progressDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.WHITE));\n progressDialog.getWindow().setGravity(Gravity.CENTER);\n progressDialog.setMessage(\"Loading...\");\n progressDialog.show();\n\n StringRequest stringRequest = new StringRequest(url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n progressDialog.dismiss();\n showJSON(response);\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getActivity(), error.getMessage().toString(), Toast.LENGTH_LONG).show();\n }\n });\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(\n MY_SOCKET_TIMEOUT_MS,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n RequestQueue requestQueue = Volley.newRequestQueue(getActivity());\n requestQueue.add(stringRequest);\n }", "public ApiResponse<Source> getPresenceSource(ApiRequest<Void> request) throws IOException {\n try {\n return pcapiClient.invoke(request, new TypeReference<Source>() {});\n }\n catch (ApiException exception) {\n @SuppressWarnings(\"unchecked\")\n ApiResponse<Source> response = (ApiResponse<Source>)(ApiResponse<?>)exception;\n return response;\n }\n catch (Throwable exception) {\n if (pcapiClient.getShouldThrowErrors()) {\n if (exception instanceof IOException) {\n throw (IOException)exception;\n }\n throw new RuntimeException(exception);\n }\n @SuppressWarnings(\"unchecked\")\n ApiResponse<Source> response = (ApiResponse<Source>)(ApiResponse<?>)(new ApiException(exception));\n return response;\n }\n }", "public void getGames(ServiceHandler sh) {\n String jsonStr = sh.makeServiceCall(url, ServiceHandler.GET);\n\n Log.d(\"Response: \", \"> \" + jsonStr);\n\n if (jsonStr != null) {\n try {\n JSONObject jsonObj = new JSONObject(jsonStr);\n\n // Getting JSON Array node\n jsonArray = jsonObj.getJSONArray(\"Games\");\n resultList = new ArrayList<>();\n\n // looping through All results\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject c = jsonArray.getJSONObject(i);\n\n resultList.add(c.getString(\"gameName\"));\n\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n } else {\n Log.e(\"ServiceHandler\", \"Couldn't get any data from the url\");\n }\n }", "public static void ObtenerCanjeFi(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/CanjeFi\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }", "interface ApiService {\n\n @GET(\"users/{user}/repos\")\n Call<List<FlickR>> getFlickRItems(@Path(\"user\") String user);\n\n @GET(\"users/{user}\")\n Call<Owner> getFlickRMedia(@Path(\"user\") String user);\n\n }", "private void getData() {\n showDialog();\n Call<InfoMcWkMoldRes> call = apiInterface.getCompositeMaster(idActual);\n call.enqueue(new Callback<InfoMcWkMoldRes>() {\n @Override\n public void onResponse(Call<InfoMcWkMoldRes> call, Response<InfoMcWkMoldRes> response) {\n if(response.isSuccessful()){\n compositeMasterArrayList = new ArrayList<>();\n InfoMcWkMoldRes res = response.body();\n if (res!=null){\n compositeMasterArrayList = res.getCompositeMasterList();\n if (compositeMasterArrayList.isEmpty()) {\n dialog.dismiss();\n nodata.setVisibility(View.VISIBLE);\n mapping.setVisibility(View.GONE);\n return;\n }\n dialog.dismiss();\n buildRecycleView();\n }\n\n }else {\n nodata.setVisibility(View.VISIBLE);\n mapping.setVisibility(View.GONE);\n AlertError.alertError(\"The server response error\", CompositeActivity.this);\n dialog.dismiss();\n }\n }\n\n @Override\n public void onFailure(Call<InfoMcWkMoldRes> call, Throwable t) {\n call.cancel();\n nodata.setVisibility(View.VISIBLE);\n mapping.setVisibility(View.GONE);\n AlertError.alertError(t.getMessage(), CompositeActivity.this);\n dialog.dismiss();\n\n }\n });\n\n Log.e(\"getData\", webUrl + \"ActualWO/Getinfo_mc_wk_mold?id_actual=\" + idActual);\n }", "public void mongoAPI(String url, String type) {\n final String URL_BASE = \"https://api-rest-guia-miguelin-tfg.herokuapp.com/api\";\n // Local http://192.168.1.106:1234/\n switch (type) {\n case (\"GET\"):\n new Login.GetDataTask().execute(URL_BASE + url);\n break;\n }\n }", "@GET(\"rest/emprego\")\n Call<List<Posto>> callListPostoSINE();", "public static void ObtenerDatosRecompensas(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n\n String url = \"http://161.35.14.188/Persuhabit/recompensas\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n String descrip = jsonObject.getString(\"descrip\");\n System.out.println(descrip);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }", "void getDataFromServer();", "public static void ObtenerCuestionario_Nutricion(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/CuestionarioNutri\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }", "@Override\n public void downloadData() throws ApiException, BadRequestException, DataNotSetException, AuthRequiredException {\n\n try {\n result = Constructors.constructJSONArray(url);\n message = new String[result.length()];\n creator = new String[result.length()];\n created = new String[result.length()];\n for(int i = 0; i < result.length(); i++){\n String mes = result.getJSONObject(i).getString(\"message\");\n String user = result.getJSONObject(i).getString(\"creator\");\n String date = result.getJSONObject(i).getString(\"created\");\n message[i] = mes;\n creator[i] = user;\n created[i] = date;\n\n }\n } catch (Exception e) {\n throw new ApiException(\"API Error: \" + result.toString());\n }\n\n }", "@Path(\"device/stats/{deviceId}\")\n @GET\n @ApiOperation(\n consumes = MediaType.APPLICATION_JSON,\n httpMethod = \"GET\",\n value = \"Retrieve Sensor data for the device type\",\n notes = \"\",\n response = Response.class,\n tags = \"picavi\",\n extensions = {\n @Extension(properties = {\n @ExtensionProperty(name = PicaviConstants.SCOPE, value = \"perm:picavi:enroll\")\n })\n }\n )\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n Response getPicaviDeviceStats(@PathParam(\"deviceId\") String deviceId, @QueryParam(\"from\") long from,\n @QueryParam(\"to\") long to, @QueryParam(\"sensorType\") String sensorType);", "public Response getRequestForGetAPI(String endpoint) {\n response = given().contentType(ContentType.JSON)\n .when()\n .get(endpoint)\n .then()\n .extract().response();\n\n System.out.println(\"Response of API :\"+response.getBody().asString());\n\n String body = response.getBody().asString();\n JSONArray responseArray= new JSONArray(body);\n comment.setBody(responseArray);\n return response;\n\n }" ]
[ "0.62847143", "0.58708864", "0.5680669", "0.56700104", "0.5600287", "0.5598504", "0.5582243", "0.5562562", "0.55328244", "0.5529041", "0.5519932", "0.5443081", "0.5426798", "0.54132336", "0.53990495", "0.5389659", "0.53851414", "0.5377971", "0.5375991", "0.5368576", "0.53656495", "0.53370714", "0.5336575", "0.5330898", "0.531458", "0.53050506", "0.5291579", "0.5290052", "0.5256802", "0.52346885", "0.5227875", "0.52247757", "0.5221415", "0.5217304", "0.5199861", "0.5195994", "0.51935625", "0.5192963", "0.518279", "0.5181427", "0.51737833", "0.51698613", "0.51679873", "0.5167366", "0.51418746", "0.5140936", "0.5139889", "0.51353204", "0.51332396", "0.513288", "0.5130506", "0.5121113", "0.5119975", "0.5119186", "0.5115329", "0.51051813", "0.5101555", "0.5080334", "0.5079945", "0.50780416", "0.50779366", "0.5077795", "0.5072043", "0.50717366", "0.50710136", "0.5066677", "0.5059796", "0.50482726", "0.50465715", "0.50416607", "0.5036844", "0.50277585", "0.5022985", "0.50189424", "0.5015912", "0.50135374", "0.5009437", "0.50081146", "0.49996927", "0.49994493", "0.4994049", "0.49890035", "0.4985709", "0.4976845", "0.49731332", "0.49708825", "0.49638218", "0.4959661", "0.4959285", "0.49517506", "0.49482712", "0.4946246", "0.49458316", "0.49424598", "0.4940721", "0.49401623", "0.49388513", "0.49357632", "0.4932062", "0.49303988" ]
0.5177365
40
Initialiser Create the 'Release' directory if it does not exist
public PackageServer() { // Create the release folder LOGGER.debug("Creating directory: {}", RELEASE_FOLDER); if (PackageUtils.createDirectory(RELEASE_FOLDER)) { LOGGER.debug("Created: {}", RELEASE_FOLDER); } else { LOGGER.debug("Failed creating: {}", RELEASE_FOLDER); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createDirectory() {\r\n\t\tpath = env.getProperty(\"resources\") + \"/\" + Year.now().getValue() + \"/\";\r\n\t\tFile file = new File(path);\r\n\t\tif (!file.exists())\r\n\t\t\tfile.mkdirs();\r\n\t}", "public static void initializeOutputFolder() {\n\t\tString default_folder = PropertiesFile.getInstance().getProperty(\"default_folder\");\n\t\t\n\t\t// The file has to exist and is a directory (Not just a child file)\n\t\tString fullQualifiedFolderName = getFullyQualifiedFileName(default_folder);\n\t\tFile defaultDir = new File(fullQualifiedFolderName);\n\t\tif (!checkFolder(fullQualifiedFolderName)) {\n\t\t\tboolean dirCreated = defaultDir.mkdir();\n\t\t\tif(dirCreated == false) {\n\t\t\t\tlog.error(\"Could not create generation folder\");\n\t\t\t}\n\t\t} else\n\t\t\tdeleteFolderRecursively(defaultDir);\n\t}", "public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}", "private void setUpDirectories() {\r\n\t\tFile creation = new File(\"Creations\");\r\n\t\tFile audio = new File(\"Audio\");\r\n\t\tFile quiz = new File(\"Quiz\");\r\n\t\tFile temp = new File(\"Temp\");\r\n\r\n\t\tif (!creation.isDirectory()) {\r\n\t\t\tcreation.mkdir();\r\n\t\t}\r\n\t\tif (!audio.isDirectory()) {\r\n\t\t\taudio.mkdir();\r\n\t\t}\r\n\t\tif (!quiz.isDirectory()) {\r\n\t\t\tquiz.mkdir();\r\n\t\t}\r\n\t\tif (!temp.isDirectory()) {\r\n\t\t\ttemp.mkdir();\r\n\t\t}\r\n\r\n\t}", "public static void init() {\r\n if (MAIN_FOLDER.isDirectory()) {\r\n throw new GitletException(\"A Gitlet version-control system already \"\r\n + \"exists in the current directory.\");\r\n } else {\r\n MAIN_FOLDER.mkdirs();\r\n COMMIT_FOLDER.mkdirs();\r\n ADD_FOLDER.mkdirs();\r\n BLOB_FOLDER.mkdirs();\r\n Story story = new Story();\r\n story.saveStory();\r\n }\r\n }", "private void createDirectories()\r\n\t{\r\n\t\t// TODO: Do some checks here\r\n\t\tFile toCreate = new File(Lunar.OUT_DIR + Lunar.PIXEL_DIR\r\n\t\t\t\t\t\t\t\t\t+ Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t\ttoCreate = new File(Lunar.OUT_DIR + Lunar.ROW_DIR + Lunar.PROCESSED_DIR);\r\n\t\ttoCreate.mkdirs();\r\n\t\ttoCreate = null;\r\n\t}", "public void createSubDirCameraTaken() {\n\t\tFile f = new File(getPFCameraTakenPath());\n\t\tf.mkdirs();\n\t}", "private void createBuildVolume() {\n\n addVolume(shellScriptInfo.getBuild().getBuildDir());\n }", "public static String createDownloadDirectory() {\n \tvar downloadDirectory = Configuration.toString(\"downloadDirectory\");\n \tif (downloadDirectory == null) {\n \t\tdownloadDirectory = \"../../Downloads\";\n \t}\n return downloadDirectory;\n }", "@Override\n protected void createRootDir() {\n }", "@EventListener(ApplicationReadyEvent.class)\n private void createImageDirectory()\n {\n new File(productImageUpload).mkdir();\n }", "public IStatus prepareRuntimeDirectory(IPath baseDir);", "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static File fBuildDir() \r\n\t{\r\n\t\treturn new File(sBasePath() + File.separator + \"build\");\r\n\t}", "public static void createDirectories() \r\n\t{\r\n\t\tif(!fCertificatesDir().exists()) \r\n\t\t{\r\n\t\t\tfCertificatesDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fDbDir().exists()) \r\n\t\t{\r\n\t\t\tfDbDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsDir().exists())\r\n\t\t{\r\n\t\t\tfMibsDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsBinaryDir().exists()) \r\n\t\t{\r\n\t\t\tfMibsBinaryDir().mkdir();\r\n\t\t}\r\n\t\t\r\n\t\tif(!fMibsTextDir().exists()) \r\n\t\t{\r\n\t\t\tfMibsTextDir().mkdir();\r\n\t\t}\r\n\t}", "private static String createAppSpecificLocalDir(String baseDir, String applicationIdString,\n String user, int dagIdentifier) {\n return baseDir + File.separator + \"usercache\" + File.separator + user + File.separator +\n \"appcache\" + File.separator + applicationIdString + File.separator + dagIdentifier;\n }", "private void createDirectoryIfNeeded(String directoryName)\n\t{\n\t\tFile theDir = new File(directoryName);\n\n\t\t// if the directory does not exist, create it\n\t\tif (!theDir.exists())\n\t\t{\n\t\t\t//System.out.println(\"creating directory: \" + directoryName);\n\t\t\ttheDir.mkdir();\n\t\t}\n\t}", "private void initWorkSpace() {\n\t\ttry {\n\t\t\tString baseUrl = workspacePath + File.separator + this.RUNTIME_WORKSPACE_DIR;\n\t\t\t// create runtime base\n\t\t\tthis.runtimeBasePath = Paths.get(baseUrl);\n\t\t\tif (!Files.exists(runtimeBasePath)) { // init workspace directories\n\t\t\t\tFiles.createDirectories(runtimeBasePath);\n\t\t\t}\n\t\t\t// create log folder\n\t\t\tthis.wcpLogPath = Paths.get(baseUrl + File.separator + RUNTIME_WORKSPACE_LOG);\n\t\t\tif (!Files.exists(wcpLogPath)) {\n\t\t\t\tFiles.createDirectory(wcpLogPath);\n\t\t\t}\n\t\t\t// create output folder\n\t\t\tthis.wcpOutputPath = Paths.get(baseUrl + File.separator + RUNTIME_WORKSPACE_OUTPUT);\n\t\t\tif (!Files.exists(wcpOutputPath)) {\n\t\t\t\tFiles.createDirectory(wcpOutputPath);\n\t\t\t}\n\t\t\tlog.info(Logging.format(\"Workspace directories are initialized.\"));\n\t\t} catch (IOException e) {\n\t\t\tlog.error(Logging.format(\"Error when initializing configuration: {}\", e.getMessage()));\n\t\t}\n\t}", "private static void createSaveDirIfNotExisting() {\n\t\tFile dir = new File(\"save\");\n\t\tif (!dir.exists()) {\n\t\t\t// directory does not exist => create!\n\t\t\tdir.mkdir();\n\t\t}\n\t}", "private File createDirectoryIfNotExisting( String dirName ) throws HarvesterIOException\n {\n \tFile path = FileHandler.getFile( dirName );\n \tif ( !path.exists() )\n \t{\n \t log.info( String.format( \"Creating directory: %s\", dirName ) );\n \t // create path:\n \t if ( !path.mkdir() )\n \t {\n \t\tString errMsg = String.format( \"Could not create necessary directory: %s\", dirName );\n \t\tlog.error( errMsg );\n \t\tthrow new HarvesterIOException( errMsg );\n \t }\n \t}\n \t\n \treturn path;\n }", "private void makeDirectory() {\n String userHome = System.getProperty(\"user.home\");\n wnwData = new File(userHome + \"/.wnwdata\");\n wnwData.mkdirs();\n\n makeCampaignChallengesFile();\n makeCustomChallengesFile();\n makeProgressFile();\n makeSettingsFile();\n }", "private static void prepareLoggingSystemEnviroment() {\n\t\t// property configuration relies on this parameter\n\t\tSystem.setProperty(\"log.directory\", getLogFolder());\n\t\t//create the log directory if not yet existing:\n\t\t//removed code as log4j is now capable of doing that automatically\n\t}", "private static void initialization() {\n File installationDir = new File(Constants.INSTALL_DIRECTORY, \"docli\");\n if(installationDir.exists()) {\n // user file exists\n } else {\n String s = String.format(\"Installing files at %s\", Constants.INSTALL_DIRECTORY);\n display.display(s);\n installationDir.mkdir();\n try {\n File f = new File(installationDir, \"docli_database.db\");\n f.createNewFile();\n }catch (IOException e) {\n System.out.println(e.getMessage());\n }\n manager.executeDMLStatementSync(Constants.CREATE_TABLE_ITEM);\n }\n }", "private File createConfigDirIfNecessary(String configName) throws IOException {\n return createConfigDirIfNecessary(configDirPath.toFile(), configName);\n }", "private final void directory() {\n\t\tif (!this.plugin.getDataFolder().isDirectory()) {\n\t\t\tif (!this.plugin.getDataFolder().mkdirs()) {\n\t\t\t\tMain.SEVERE(\"Failed to create directory\");\n\t\t\t} else {\n\t\t\t\tMain.INFO(\"Created directory sucessfully!\");\n\t\t\t}\n\t\t}\n\t}", "private void createRequiredDirectory(String outdir, String className) throws IOException\r\n\t{\n\t\tString workingdirectory = System.getProperty(\"user.dir\");\r\n\t\t\r\n\t\t//used to create directory\r\n\t\tscreenshotDir = new File(workingdirectory +\"/custom-test-report\");\r\n\t\tscreenshotDir.mkdir();\r\n\t\t\r\n\t\tscreenshotDir = new File(workingdirectory +\"/custom-test-report/Failure_Screenshot\");\r\n\t\tscreenshotDir.mkdir();\r\n\t\t\r\n\t\tscreenshotDir = new File(workingdirectory + \"/custom-test-report\" + \"/\" + className);\r\n\t\tscreenshotDir.mkdir();\r\n\t}", "public static void main(String[] args) {\n doCreateDir();\n }", "public void init(){\n\t\ttry{\n\t\t\tFile file=new File(\"c:/EasyShare/setting/dir.es\");\n\t\t\tif(!file.exists()){\n\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\t\tfile.createNewFile();\n\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}catch (Exception e) {\n\t\t\t}\n\t}", "private static void doCreateDir() {\n String newDir = \"new_dir\";\n boolean success = (new File(newDir)).mkdir();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n // Create a directory; all non-existent ancestor directories are\n // automatically created.\n newDir = \"c:/export/home/jeffreyh/new_dir1/new_dir2/new_dir3\";\n success = (new File(newDir)).mkdirs();\n\n if (success) {\n System.out.println(\"Successfully created directory: \" + newDir);\n } else {\n System.out.println(\"Failed to create directory: \" + newDir);\n }\n\n }", "@Override\n\tpublic void createRelease(Version version) {\n\n\t}", "public IStatus prepareDeployDirectory(IPath deployPath);", "public static void CrearDirectorio (String args){\n File directorio = new File(args);\n \n if (!directorio.exists()) {\n if (directorio.mkdirs()) {\n //System.out.println(\"Directorio creado\\n\");\n } else {\n //System.out.println(\"Error al crear directorio\\n\");\n }\n }\n }", "private static void makeDirPath(String targetAddr) {\n\t\tString parentPath = PathUtil.getImgBasePath() + targetAddr;\r\n\t\tFile dirPath = new File(parentPath);\r\n\t\tif (!dirPath.exists()) {\r\n\t\t\tdirPath.mkdirs();\r\n\t\t}\r\n\t}", "private void createCatalogFileIfNoneExists(){\n\t\t\n\t\tinOut = new IOUtility();\n\t\t\n\t\tif (inOut.checkLocalCache()) {\n\t\t\tcatalog = inOut.readCatalogFromFile();\n\t\t}\n\n\t\telse {\n\n\t\t\ttry {\n\t\t\t\tinOut.createCatalogFile();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t} \n\t\t}\n\t\t\n\t}", "private void createJavaWebStartPath() {\n String[] onlyFolderNames = new String[] {\n mInstance.getJavaWebStartPath(),\n mModuleName\n };\n\n mJavaWebStartPath = StringUtils.makeFilePath (onlyFolderNames, false);\n }", "public void initializeImages() {\n\n File dir = new File(\"Images\");\n if (!dir.exists()) {\n boolean success = dir.mkdir();\n System.out.println(\"Images directory created!\");\n }\n }", "static LauncherDir maybeCreate(Options options) {\n if (options.getLauncherDir() == null) {\n return null;\n }\n return new LauncherDir(options);\n }", "private void createVideoFolder() {\n File movieFile = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES);\n mVideoFolder = new File(movieFile, \"Camera2_Video_Image\");\n //check to see if the folder is already created\n if (!mVideoFolder.exists()) {\n mVideoFolder.mkdirs();\n\n }\n\n }", "public void setup() {\n\t\tif (!new File(plugin.getDataFolder() + path).exists())\r\n\t\t\tnew File(plugin.getDataFolder() + path).mkdir();\r\n\r\n\t\tif (!new File(plugin.getDataFolder() + path, name + \".yml\").exists())\r\n\t\t\ttry {\r\n\t\t\t\tnew File(plugin.getDataFolder() + path, name + \".yml\").createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tplugin.getLogger().log(Level.SEVERE, \"Could not generate \" + name + \".yml\");\r\n\t\t\t}\r\n\t}", "public static File getRegistrationDirectory() {\n\t\t\n\t\tFile home = ApplicationRuntime.getInstance().getApplicationHomeDir();\n\n\t\tFile registrationDirectory = new File(home,REGISTRATION_DIRECTORY_NAME);\n\t\tif (!registrationDirectory.exists()) {\n\t\t\tregistrationDirectory.mkdir();\n\t\t}\n\t\treturn registrationDirectory;\n\t}", "public File getDefaultOutputDir() {\n File out = _mkdir(XPreferencesFactory.kDefaultReportsOutputDir.getDir(false));\r\n String dn = NamingConventions.createNiceEnglishDate_for_dirs();\r\n return _mkdir(new File(out, dn));\r\n }", "public static void createOutputDirectoryPath(String path){\n \n new File(path).mkdirs();\n \n }", "private void createEssentialDirs() throws TNotFoundEx{\n\t\tFileUtil fT = new FileUtil();\n\t\tfT.createDirOnDevice(TicklerVars.sdCardPath);\n\t\tif (!fT.isExistOnDevice(TicklerVars.sdCardPath))\n\t\t\tthrow new TNotFoundEx(\"Cannot create Tickler directory \"+TicklerVars.sdCardPath+\". Check your configurations in Tickler.conf file\");\n\t\tfT.createDirOnHost(TicklerVars.appTickDir);\n\t\tif (!fT.isExist(TicklerVars.appTickDir))\n\t\t\tthrow new TNotFoundEx(\"Cannot create Tickler directory \"+TicklerVars.appTickDir+\". Check your configurations in Tickler.conf file\");\n\t\t\n\t}", "private void SetupStoryLocation() {\n\n //Delete previous project directories\n deleteDirectories();\n //ensure that newStoryReady is set to false\n newStoryReady = false;\n //Give story name a unique identifier\n String name = UUID.randomUUID().toString();\n //Set the value of the tag data to be the unique identifier of the story\n tag_data = name;\n //Create new story folder based on the name of the new story - this will be home to the new stories as well as any additional stories recorded\n story_directory = new File (getFilesDir() + File.separator + \"Stories\" + File.separator + name);\n //Create new tag folder based on the name of the new story - this will be home to the stories recorded which are saved to the tags.\n //Currently only a single audio file and picture are associated with one story folder.\n tag_directory = new File (getFilesDir() + File.separator + \"Tag\" + File.separator + name);\n //Create new cover image folder based on the name of the story - this stores the image representing the object.\n cover_directory = new File (getFilesDir() + File.separator + \"Covers\" + File.separator + name);\n //A temporary storage directory for files which are being sent and downloaded from the cloud.\n cloud_directory = new File (getFilesDir() + File.separator + \"Cloud\" + File.separator + name);\n //Make the described directory folders\n story_directory.mkdir();\n tag_directory.mkdir();\n cover_directory.mkdir();\n cloud_directory.mkdir();\n\n /* Example of saving stories to external directories\n\n// String newDirectory = LocalStoryFolder + \"/\" + name;\n// String newDirectory2 = TagFolder + \"/\" + name;\n// String newDirectory3 = CoverFolder + \"/\" + name;\n// story_directory = getExternalFilesDir(newDirectory);\n// tag_directory = getExternalFilesDir(newDirectory2);\n// cover_directory = getExternalFilesDir(newDirectory3);\n\n */\n }", "@Override\n\tpublic void generateDirectories() {\n\t\tFile file = new File(\"Data/My Contacts/\");\n\n\t\tif (!file.exists()) {\n\t\t\tfile.mkdirs();\n\t\t}\n\t}", "private void setupWorkingDir(Execute exe) {\r\n if (dir == null) {\r\n dir = getProject().getBaseDir();\r\n }\r\n else if (!dir.exists() || !dir.isDirectory()) {\r\n throw new BuildException(dir.getAbsolutePath() + \" is not a valid directory\", getLocation());\r\n }\r\n exe.setWorkingDirectory(dir);\r\n }", "void createIndexDir(String indexDirPath) throws IOException {\n File indexDir = new File(indexDirPath);\n if (!indexDir.exists())\n indexDir.mkdir();\n else {\n removeIndexDir(indexDirPath);\n indexDir.mkdir(); \n }\n }", "private Directories() {\n\n\t}", "private void createTDenseDirectory() {\n File dense = new File(DenseLayerPath);\n dense.mkdir();\n }", "public static void init() {\n File dir = new File(\".gitlet\");\n if (dir.exists()) {\n System.out.println(\"a gitlet version-control system already exists in the current directory.\");\n return;\n } else {\n dir.mkdir();\n File next = new File(\".gitlet/heads/master.ser\");\n File currentBranch = new File(\".gitlet/current\");\n File heads = new File(\".gitlet/heads\");\n File currentname = new File(\".gitlet/current/master.ser\");\n File staged = new File(\".gitlet/staged\");\n File commits = new File(\".gitlet/commits\");\n File unstaged = new File(\".gitlet/unstaged\");\n File blobs = new File(\".gitlet/blobs\");\n try {\n heads.mkdir();\n staged.mkdir();\n commits.mkdir();\n unstaged.mkdir();\n currentBranch.mkdir();\n blobs.mkdir();\n Commit initial = new Commit(\"initial commit\", null, null);\n FileOutputStream fileOut = new FileOutputStream(next);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(initial);\n Files.copy(next.toPath(), currentname.toPath());\n } catch (IOException e) {\n return;\n }\n }}", "private static File createReserveDiskCacheDir(Context context) {\n\t\tFile cacheDir = StorageUtils.getCacheDirectory(context, false);\n\t\tFile individualDir = new File(cacheDir, \"lazy-cache\");\n\t\tif (individualDir.exists() || individualDir.mkdir()) {\n\t\t\tcacheDir = individualDir;\n\t\t}\n\t\treturn cacheDir;\n\t}", "public void createSubDirData() {\n\t\tFile f = new File(getPFDataPath());\n\t\tf.mkdirs();\n\t}", "@Override\n public void createDirectory(File storageName) throws IOException {\n }", "public static void initCacheFileByData(Context context) {\n\t\tfinal String imageDir = getAppFilesDirByData(context)+ CACHE_IMG_DIR_PATH;\n\t\tfinal File imageFileDir = new File(imageDir);\n\t\tif (!imageFileDir.exists()) {\n\t\t\timageFileDir.mkdirs();\n\t\t}\n\t}", "abstract protected void createWorkEnv(File outputDir)\n throws TaskRunException;", "private void createRootDirectory(String rootDirectoryPath) throws Exception {\n\t\tlogger.traceEntry();\n\n\t\trootDirectory = new Path(rootDirectoryPath);\n\t\tif (!hadoopFileSystem.exists(rootDirectory)) {\n\t\t\tlogger.warn(\"Directory \" + rootDirectoryPath + \" does not exist, creating\");\n\t\t\thadoopFileSystem.mkdirs(rootDirectory);\n\t\t}\n\t\tlogger.traceExit();\n\t}", "public void createDir(File file) {\n if (!file.exists()) {\n file.mkdir();\n }\n }", "public void setUp() {\n new File(TEST_FILE).getParentFile().mkdirs();\n }", "@BeforeClass\n public static void createOutputDir() throws OfficeException {\n\n // Ensure we start with a fresh output directory\n final File outputDir = new File(OUTPUT_DIR);\n FileUtils.deleteQuietly(outputDir);\n outputDir.mkdirs();\n }", "public void setAndCreateDirPath(String dirname) {\r\n\t File newPath = new File(dirname); \r\n\t \r\n\t if(!newPath.isDirectory()) {\r\n\t\t newPath.mkdirs();\r\n\t }\r\n\t \r\n\t directory = newPath;\r\n }", "private boolean createGitletDirectory(){\n File dir = new File(Utils.GITLET_DIR);\n\n if(!dir.exists()){\n dir.mkdir();\n\n } else {\n System.out.println(\"A gitlet version-control system already exists in the current directory.\");\n return false;\n }\n\n File commitDir = Utils.join(Utils.GITLET_DIR, Utils.COMMIT_DIR);\n\n if(!commitDir.exists()){\n commitDir.mkdir();\n }\n\n File blobDir = Utils.join(Utils.GITLET_DIR, Utils.BLOBS_DIR);\n\n if (!blobDir.exists()){\n blobDir.mkdir();\n }\n return true;\n }", "public static void createDirectory(String srcDir, String nameDir) {\n try {\n Path path = Paths.get(srcDir + \"/\" + nameDir);\n\n Files.createDirectories(path);\n System.out.println(\"Directory is created\");\n } catch (IOException e) {\n System.err.println(\"ERROR CREATION! \" + e.getMessage());\n }\n\n }", "public static boolean createDBDir() {\n return (new File(path)).mkdirs();\n }", "public void init() throws ConfigurationException {\n String iosCertificatePath = (new PropertiesConfiguration(\"push.properties\")).getString(PUSH_DIR);\n File appDirFile = new File(iosCertificatePath);\n if(!appDirFile.exists()){\n appDirFile.mkdir();\n }\n }", "static void createOutputStructure(final File dir) throws MojoExecutionException {\n if (!dir.exists() && !dir.mkdirs()) {\n throw new MojoExecutionException(\"could not create output directory \" + dir.getAbsolutePath());\n }\n }", "public void createDir(File file){\n\t\tif (!file.exists()) {\n\t\t\tif (file.mkdir()) {\n\t\t\t\tlogger.debug(\"Directory is created!\");\n\t\t\t} else {\n\t\t\t\tlogger.debug(\"Failed to create directory!\");\n\t\t\t}\n\t\t}\n\t}", "private String buildDeployFileName(final String originalFileName) {\n String tempDir = System.getProperty(\"java.io.tmpdir\");\n StringBuilder builder = new StringBuilder();\n builder.append(tempDir);\n builder.append(\"/\");\n builder.append(originalFileName);\n return builder.toString();\n }", "private static void createProjectsFolders() throws IOException {\n /*\n * .sagrada/\n * logs/\n */\n File logFolder = new File(Constants.Paths.LOG_FOLDER.getAbsolutePath());\n\n if (!logFolder.isDirectory() && !logFolder.mkdirs()) {\n throw new IOException(\"Could not directory structure: \" + (Constants.Paths.LOG_FOLDER.getAbsolutePath()));\n }\n }", "@Override\n public void Init() {\n strRemoteDownloadPath = strBasePath + (\"serialize/to/\");\n strRemoteUploadPath = strBasePath + (\"serialize/from/\");\n new File(strRemoteDownloadPath).mkdirs();\n new File(strRemoteUploadPath).mkdirs();\n }", "public static void fixMediaDir() {\n String appDirectoryName = PICTURES;\n File imageRoot = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES), appDirectoryName);\n imageRoot.mkdirs();\n }", "public static boolean createDirIfNotExists(SourceFile sourceFile) throws IOException {\n return createDirIfNotExists(sourceFile.getPath(), sourceFile.getSourceType());\n }", "public static void creator(Website websiteInfo){\n //creates folder using info on current directory\n File newFolder = new File(websiteInfo.currentPath);\n boolean websiteTest = newFolder.mkdir();\n\n if(websiteTest){\n System.out.println(\"Created ./website/\"+ websiteInfo.name);\n htmlFile(websiteInfo);\n createCSSJava(websiteInfo);\n }else{\n System.out.println(\"Could not create website\");\n }\n }", "public void initialize() throws ResourceInitializationException {\n\n String oPath = (String) getUimaContext().getConfigParameterValue(\"outputFile\");\n if (oPath == null) {\n throw new ResourceInitializationException(\n ResourceInitializationException.CONFIG_SETTING_ABSENT, new Object[] { \"outputFile\" });\n }\n outFile = new File(oPath.trim());\n \n try {\n if(outFile.exists()){\n outFile.delete();\n }\n outFile.createNewFile();\n fileWriter = new FileWriter(outFile,true);\n \n } catch (IOException e) {\n throw new ResourceInitializationException(e);\n }\n }", "Directory createAsDirectory() {\n return getParentAsExistingDirectory().findOrCreateChildDirectory(name);\n }", "private void createresultDir() throws IOException\n\t{\n\t\tString datepattern = \"yyyy-MM-dd\";\n\t\tSimpleDateFormat sdf =new SimpleDateFormat(datepattern);\n\t\t RESULTDIR = Parameters.RESULT_LOCAL_DIR+'/'+sdf.format(new Date());\n\t\t boolean exists = (new File(Parameters.RESULT_LOCAL_DIR)).exists();\n\t\t if (!exists)\n\t\t\t (new File(Parameters.RESULT_LOCAL_DIR)).mkdirs();\n\t\t exists = (new File(RESULTDIR)).exists();\n\t\t if (!exists)\n\t\t\t (new File(RESULTDIR)).mkdirs();\n\t\t boolean append = true;\n\t FileHandler fh = new FileHandler(RESULTDIR+\"/report.log\", append);\n\t fh.setFormatter(new LogFormatter());\n\t logfile.addHandler(fh);\n\t}", "private static void initDirectories() {\n String storeName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_STORE_NAME\n + \".dat\";\n File storeFile = new File(storeName);\n if (storeFile.exists()) {\n storeFile.delete();\n }\n deleteAuthenticationStore();\n initAuthenticationStore();\n\n deleteRoleProjectViewStore();\n initRoleProjectViewStore();\n\n initProjectProperties();\n }", "public void init() {\n\t\tfilePath = getServletContext().getInitParameter(\"file-upload\");\n\t\tcreateDirIfDoesntExist(filePath);\n\t\ttmpFilePath = getServletContext().getInitParameter(\"tmp-file-upload\");\n\t\tcreateDirIfDoesntExist(tmpFilePath);\n\t}", "public static void CreateFile(){\n try{\n new File(\"wipimages\").mkdir();\n logscommissions.createNewFile();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"CreateFile Failed\\n\");\n }\n }", "public void customRootDir() {\n //Be careful with case when res is false which means dir is not valid.\n boolean res = KOOM.getInstance().setRootDir(this.getCacheDir().getAbsolutePath());\n }", "static File getDistributionInstallationFolder() {\n return ProcessRunnerImpl.getDistRootPath();\n }", "private File createWorkingDir( final String path )\n {\n File workDir = new File( path );\n workDir.mkdirs();\n return workDir;\n }", "private void createScratchDirectory(Path rootpath) {\n\t\tprintMsg(\"running createScratchDirectory() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\t\n\t\tif (Files.isDirectory(rootpath)) {\n\t\t\tprintMsg(\"The \" + theRootPath + \" exists...\");\n\t\t} else {\n\t\t\tprintMsg(\"Creating \" + theRootPath);\n\t\t\ttry {\n\t\t\t\tFiles.createDirectories(rootpath);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void m20349g() {\n boolean z = true;\n if (this.f17414c.exists()) {\n if (!this.f17416e.exists()) {\n FileTree.m20516b(this.f17414c);\n } else {\n z = false;\n }\n }\n if (z) {\n try {\n C3945c.m20520a(this.f17416e);\n } catch (C3945c.C3946a unused) {\n CacheErrorLogger aVar = this.f17417f;\n CacheErrorLogger.EnumC3922a aVar2 = CacheErrorLogger.EnumC3922a.WRITE_CREATE_DIR;\n Class<?> cls = f17413b;\n aVar.mo27388a(aVar2, cls, \"version directory could not be created: \" + this.f17416e, null);\n }\n }\n }", "public interface Initialiser {\n\n /**\n * This is the method that prepare the environment.Any prerequisites are supposed to be downloaded and prepped\n */\n File prepareEnvironment();\n\n void writeBuildGradleTemplate(File projectRootDir);\n\n void writeWebXmlFile(File projectRootDir);\n\n void writeGitIgnoreFile( File projectRootDir);\n\n void writeServiceModuleClass(File projRootDir);\n\n void writeRootRouterClass(File projRootDir);\n\n void writeMetaRouterClass(File projectRootDir);\n\n void writePingResourceClass(File projectRootDir);\n}", "public void init() {\n // the config string contains just the asset store directory path\n //set baseDir?\n this.initialized = true;\n }", "private File createMultiBitRuntime() throws IOException {\n File multiBitDirectory = FileHandler.createTempDirectory(\"CreateAndDeleteWalletsTest\");\n String multiBitDirectoryPath = multiBitDirectory.getAbsolutePath();\n\n System.out.println(\"Building MultiBit runtime in : \" + multiBitDirectory.getAbsolutePath());\n\n // create an empty multibit.properties\n File multibitProperties = new File(multiBitDirectoryPath + File.separator + \"multibit.properties\");\n multibitProperties.createNewFile();\n multibitProperties.deleteOnExit();\n\n // copy in the blockchain stored in git - this is in source/main/resources/\n File multibitBlockchain = new File(multiBitDirectoryPath + File.separator + \"multibit.blockchain\");\n FileHandler.copyFile(new File(\"./src/main/resources/multibit.blockchain\"), multibitBlockchain);\n multibitBlockchain.deleteOnExit();\n\n return multiBitDirectory;\n }", "private static File createTempDir() {\n\t\tFile baseDir = new File(\"/opt/tomcat7/temp\");\r\n\t\tString baseName = \"omicseq-TempStorage\" + \"-\";\r\n\r\n\t\tfor (int counter = 0; counter < 10000; counter++) {\r\n\t\t\tFile tempDir = new File(baseDir, baseName + counter);\r\n\t\t\tif (!tempDir.exists()) {\r\n\t\t\t\tif (tempDir.mkdir())\r\n\t\t\t\t\treturn tempDir;\r\n\t\t\t} else\r\n\t\t\t\treturn tempDir;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private void makeDir(String targetDir){\n\t\tchar letter = 'A';\n\t\tnew File(targetDir + \"\\\\Sorted Music\").mkdir();\n\t\t\n\t\tfor (int i = 0; i < 26; i++){\n\t\t\tnew File(targetDir + \"\\\\Sorted Music\\\\\" + letter).mkdir();\n\t\t\tletter++;\n\t\t}\n\t}", "private void createConfig() {\n try {\n if (!getDataFolder().exists()) {\n getDataFolder().mkdirs();\n }\n File file = new File(getDataFolder(), \"config.yml\");\n if (!file.exists()) {\n getLogger().info(\"config.yml not found :( Creating one with default values...\");\n saveDefaultConfig();\n } else {\n getLogger().info(\"config.yml found :) Loading...\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n\n }", "@Test\n\tpublic void Directories() {\n\t\t\n\t\tString dirs = \"test/one/two/\";\n\t\tFile d = new File(dirs);\n\t\td.mkdirs();\n\t\tAssert.assertTrue(d.exists());\n\t\t\n\t\t//Cleanup\n\t\tif(d.delete()) {\n\t\t\td = new File(\"test/one\");\n\t\t\tif(d.delete()) {\n\t\t\t\td = new File(\"test\");\n\t\t\t\td.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void createRequiredDirectories()\n\t{\n\n\t\t/*Input_Files dir creation */\n\t\tFile inpDir = new File(INPUT_DIR_NAME);\n\n\t\t// if the directory does not exist, create it\n\t\tif (!inpDir.exists())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tinpDir.mkdir();\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tLOG_WRITER.write(DIR_CREATION_ERROR + INPUT_DIR_NAME + \"\\nError : \"\n\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\tSystem.out.println(DIR_CREATION_ERROR + INPUT_DIR_NAME + \"\\nError : \"\n\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t} catch (IOException e1)\n\t\t\t\t{\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\n\t\t/*Logs dir creation */\n\t\tFile logsDir = new File(LOGS_DIR_NAME);\n\n\t\t// if the directory does not exist, create it\n\t\tif (!logsDir.exists())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tlogsDir.mkdir();\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tLOG_WRITER.write(DIR_CREATION_ERROR + LOGS_DIR_NAME + \"\\nError : \"\n\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\tSystem.out.println(DIR_CREATION_ERROR + LOGS_DIR_NAME + \"\\nError : \"\n\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t} catch (IOException e1)\n\t\t\t\t{\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}", "private void init() {\n LoggerContext ctx = (LoggerContext) LogManager.getContext(false);\n Configuration config = ctx.getConfiguration();\n LoggerConfig loggerConfig = config.getLoggerConfig(LogManager.ROOT_LOGGER_NAME);\n loggerConfig.setLevel(DEBUG ? Level.DEBUG : Level.INFO);\n ctx.updateLoggers();\n\n // Check if Maven repo exists\n File f = new File(globalConfig.getMavenRepoPath());\n if (!f.exists()) {\n // If not then create\n f.mkdir();\n }\n }", "private void createServiceDirectory(String serviceID){\n \n String changedServiceID = serviceID.replaceAll(\"\\\\.\",\"&\");\n changedServiceID = changedServiceID.replaceAll(\":\",\"&\");\n \n //Create directory to store output files of service\n File dir = new File(sessionDirectory.getPath()+\"/\"+changedServiceID);\n dir.mkdir();\n \n //Add created directory to map \"servicesDirectories\"\n servicesDirectories.put(serviceID,dir);\n \n }", "private Path initFolder(String folder) throws IOException {\n return Files.createDirectory(Paths.get(uploadFolder + \"/\" + folder));\n }", "public void createModuleBackupPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleBackupRepositoryPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleBackupPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}", "public static File getStorageDir2(Context context) {\n File file = new File(Environment.getExternalStorageDirectory()+File.separator+\"ZhouImage\", OUTGOING_DATE_FORMAT.format(new Date())+\".jpg\");\n if (!file.exists()) {\n if (!file.mkdirs()) {\n Log.e(\"TAG\", \"Directory not created\");\n }\n }\n\n return file;\n }", "protected static void createDirectory(MasterProcedureEnv env, NamespaceDescriptor nsDescriptor)\n throws IOException {\n createDirectory(env.getMasterServices().getMasterFileSystem(), nsDescriptor);\n }", "public Runner() {\n this.config = ConfigUtils.getDefaultConfig();\n this.noSuchBaseDir = Files.createTempDir();\n this.noSuchBaseDir.deleteOnExit();\n }", "int setup(int files, int dirs, int depth) {\n try {\n Path tmp = Files.createTempDirectory(getClass().getSimpleName());\n tmp.toFile().deleteOnExit();\n Path root = tmp.resolve(ROOTNAME);\n root.toFile().deleteOnExit();\n Files.createDirectory(root);\n int n = makeDir(1, root, files, dirs, depth);\n this.root = root.toString();\n return n / 3;\n } catch (IOException e) {\n throw new ExceptionInInitializerError(\"UNABLE TO SETUP FILE STRUCTURE!\");\n }\n }", "protected File getAsinstalldir() throws ClassNotFoundException {\n\t\tif (asinstalldir == null) {\n\t\t\tString home = getProject().getProperty(\"asinstall.dir\");\n\t\t\tif (home != null) {\n asinstalldir = new File(home);\n\t\t\t}\n else {\n home = getProject().getProperty(\"sunone.home\");\n if (home != null)\n {\n final String msg = lsm.getString(\"DeprecatedProperty\", new Object[] {\"sunone.home\", \"asinstall.dir\"});\n log(msg, Project.MSG_WARN);\n asinstalldir = new File(home);\n }\n \n }\n\t\t}\n if (asinstalldir!=null) verifyAsinstalldir(asinstalldir);\n\t\treturn asinstalldir;\n\t}" ]
[ "0.6589616", "0.5930058", "0.5844996", "0.57151324", "0.5712154", "0.56895816", "0.56315243", "0.5629109", "0.5578755", "0.55291027", "0.55239", "0.54680985", "0.54573095", "0.5444729", "0.5424384", "0.5394268", "0.5394084", "0.53470445", "0.53327984", "0.5322561", "0.53123", "0.5292296", "0.52435255", "0.5236764", "0.52323043", "0.52299297", "0.52205837", "0.52143735", "0.52105916", "0.51935387", "0.51725376", "0.51472133", "0.5145785", "0.51358527", "0.51265496", "0.510654", "0.50694126", "0.5060408", "0.50422645", "0.5036714", "0.5035493", "0.50327796", "0.5032076", "0.5011451", "0.50060457", "0.5002334", "0.50022537", "0.5000683", "0.49966282", "0.4988527", "0.49815628", "0.4962606", "0.49546814", "0.49535373", "0.49475893", "0.49473387", "0.49389866", "0.49378812", "0.4932842", "0.4930944", "0.49295652", "0.4926455", "0.4919836", "0.49176532", "0.49141318", "0.49135518", "0.49120536", "0.49088216", "0.49055955", "0.49005875", "0.4897071", "0.48784637", "0.48764798", "0.48583627", "0.48502883", "0.48495528", "0.48483503", "0.4835829", "0.48281667", "0.4811967", "0.4811927", "0.4805937", "0.48019773", "0.47980514", "0.47896117", "0.4783212", "0.47790682", "0.47772107", "0.47687158", "0.47667676", "0.47632173", "0.4760345", "0.47586587", "0.47453475", "0.47387", "0.47352952", "0.47325182", "0.47289395", "0.47253665", "0.47174573" ]
0.606054
1
Print confirmation of successful connection by client to package server
public void printSuccess() { LOGGER.info("PACKMAN: Client connection success"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void sendOk() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_YES);\r\n\t\tendMessage();\r\n\t}", "public static void sendOK() {\n try {\n Server destServer = ServerState.getInstance().getServers().get(sourceID);\n MessageTransfer.sendServer(\n ServerMessage.getOk( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent OK to s\"+destServer.getServerID());\n }\n catch(Exception e) {\n System.out.println(\"INFO : Server s\"+sourceID+\" has failed. OK message cannot be sent\");\n }\n }", "public void serverSideOk();", "public synchronized void alertOK() {\n\t\ttry {\n\t\t\tvListen.sendOK();\n\t\t} catch (IOException exc) {\n\t\t\terrorIOError();\n\t\t}\n\t}", "private void showConnectionError() {\n String couldNotConnect = Localization.lang(\"Could not connect to the update server.\");\n String tryLater = Localization.lang(\"Please try again later and/or check your network connection.\");\n if (manualExecution) {\n JOptionPane.showMessageDialog(this.mainFrame, couldNotConnect + \"\\n\" + tryLater,\n couldNotConnect, JOptionPane.ERROR_MESSAGE);\n }\n this.mainFrame.output(couldNotConnect + \" \" + tryLater);\n }", "public String confirm()\n\t{\n\t\tconfirm = true;\n\t\treturn su();\n\t}", "@Override\n public void onSuccess() {\n System.out.println(\"pca connect: Successfully connected\");\n }", "public boolean testConnection() {\r\n boolean toReturn = true;\r\n\r\n String[] paramFields = {};\r\n SocketMessage request = new SocketMessage(\"admin\", \"ping\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\", paramFields);\r\n SocketMessage response = handleMessage(request);\r\n if (isSuccessful(response)) {\r\n toReturn = true;\r\n } else {\r\n toReturn = false;\r\n }\r\n\r\n return toReturn;\r\n }", "private void success() {\n showMessage(\"Congratulations!\", \"success\");\n }", "@Override\n\tpublic void connectionSucceeded(String message) {\n\t}", "public void Pedircarnet() {\n\t\tSystem.out.println(\"solicitar carnet para verificar si es cliente de ese consultorio\");\r\n\t}", "public void clientConnected(ServerConnection conn){\r\n System.out.println(\"Client Connected: \"+ conn.getIP());\r\n }", "private void askForAPizza() {\n\t\tconnectToServer();\n\t\tout.println(\"Give me a pizza\");\n\t\tout.flush();\n\t\tdisconnectFromServer();\n\t}", "@Override\n\tprotected String showConfirmation() {\n\t\treturn \"Payment is successful. Check your credit card statement for PetSitters, Inc.\";\n\t}", "void confirm();", "public void OnConnectSuccess();", "public void awaitConnection(){\n System.out.println(\"Waiting for connection from client\");\n\n try {\n socket = server.accept();\n System.out.println(\"Client Connected!\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void waitClient() {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"wait connect\");\n\t\t\t\tsocket = server.accept();\n\t\t\t\tSystem.out.println(\"Server connect successed\");\n\t\t\t\tSystem.out.println(\"gethost : InetAddress = \" + socket.getInetAddress());\n\t\t\t\tserver.close();\n\t\t\t} catch (java.io.IOException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}", "public void alertConnectionError(){\n\t\tthis.alert(\"ERROR\",\"Server Connection Error\\nTo adjust server settings go to:\\nGame->Settings\",AlertType.ERROR);\n\t}", "private void waitForConnection() throws IOException{\n\t\tshowMessage(\"\\n Waiting for a Punk Ass Bitch to connection... \\n \");\n\t\tConnection = server.accept();\n\t\tshowMessage(\"Now connected to \" + Connection.getInetAddress().getHostName() + \". Punk.\");\n\t\t//this is your own IP address, the machine running the the code\n\t\t//\n\t\t\n\t}", "@Override\n public void onConnect(boolean isSuccessful, String message) {\n if (isSuccessful) {\n Toast.makeText(applicationContext,\n String.format(getString(R.string.data_transfer_waiting),\n ROOM_NAME), Toast.LENGTH_LONG).show();\n } else {\n Log.d(TAG, \"Skylink failed to connect!\");\n Toast.makeText(parentActivity, \"Skylink failed to connect!\\nReason : \"\n + message, Toast.LENGTH_SHORT).show();\n }\n }", "void clientReady();", "public static void CONNECTED(PrintWriter out, String CK_A) {\n\t\tout.println(AES.encrypt(\"Connected!\", CK_A));\r\n\t}", "public void printTitleAndPrompt(){\n System.out.println(\"\\n\\nSimple Chat System (CLIENT)\");\n System.out.println(\"Programmed by Kelvin Watson, OSU ID 932540242, onid: watsokel)\");\n System.out.println(\"**************************************************************\");\n System.out.println(\"TCP Connection established. Welcome to Simple Chat.\");\n System.out.print(\"Enter a user name (max 10 characters): \");\n }", "private void connection() {\n boolean connect;\n try {\n connect = true;\n this.jTextArea1.setText(\"Server starts...\");\n server = new MultiAgentServer(this);\n String ip = \"\";\n int errorBit = 256;\n for (int i = 0; i < server.getIpAddr().length; i++) {\n int currentIP = server.getIpAddr()[i];\n if (currentIP < 0) {\n currentIP += errorBit;\n }\n ip += currentIP + \".\";\n }\n ip = ip.substring(0, ip.length() - 1);\n System.out.println(ip);\n Naming.rebind(\"//\" + ip + \"/server\", server);\n this.jTextArea1.setText(\"Servername: \" + ip);\n this.jTextArea1.append(\"\\nServer is online\");\n } catch (MalformedURLException | RemoteException e) {\n this.jTextArea1.append(\"\\nServer is offline, something goes wrong!!!\");\n connect = false;\n }\n if (dialog.getMusicBox().isSelected()) {\n sl = new SoundLoopExample();\n }\n reconnectBtn.setEnabled(!connect);\n }", "public void verifyServerCn(boolean yesno);", "public void alertTheWaiter(){\n Chef c = (Chef) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = c.getChefID();\n \tstate_fields[1] = c.getChefState();\n\n Message m_toServer = new Message(1, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n \t}\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n c.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }", "@Override\n public void serviceUser(Console scanner, Client client) throws IOException {\n String message = scanner.askForString(\"Ping content:\");\n long messageId = client.getMessageId();\n Pack ping = new Pack.Builder()\n .setValue(\"request\", new OneByteInt(Client.PING_REQUEST))\n .setValue(\"id\", messageId)\n .setValue(\"message\", message)\n .build();\n client.send(ping);\n\n Unpack.Result result = keepTryingUntilReceive(client, ping, messageId);\n if (isStatusOK(result)) {\n Console.println(String.format(\"Received : %s\", result.getString(DATA)));\n } else {\n Console.println(\"Failed\");\n }\n\n }", "private void sendUpdateConnectionInfo() {\n\n }", "public void talk() {\n\t try{\t\n\t \twhile(exit) {\n\t\t \t\t//Definizione stream per la comunicazione\n\t\t \t\ttastiera = new BufferedReader(new InputStreamReader(System.in));\n\t\t \t\tout = new DataOutputStream(connection.getOutputStream());\n\t\t\t\t in = new DataInputStream(connection.getInputStream());\n\t\t\t\t \n\t\t \t\t//Invio messaggio\n\t\t\t\t System.out.println(\"Inserisci il messaggio da mandare al server: \\n\");\n\t\t\t\t mess = tastiera.readLine();\n\t\t\t\t\tout.writeUTF(mess + \"\\n\");\n\t\t\t\t\t\n\t\t\t\t\t//Ricezione risposta server\n\t\t\t\t\tservermess = in.readUTF();\n\t\t\t System.out.println(\"Risposta dal server: \"+servermess);\n\t\t\t if(mess.equals(\"FINE\")) {\n\t\t\t \texit = false;\n\t\t\t }\n\t\t\t\t}\n\t\t }\n\t\t catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t }\n\t \tfinally {\n\t\t\t try {\n\t\t\t\t if (connection!=null)\n\t\t\t\t {\n\t\t\t\t connection.close();\n\t\t\t\t System.out.println(\"Connessione chiusa!\");\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t catch(IOException e){\n\t\t\t System.err.println(\"Errore nella chiusura della connessione!\");\n\t\t\t }\n\t \t}\t\n \t}", "public void invoke() throws Exception, IOException {\n java.io.PrintWriter out = response.getWriter();\n out.println(\"Welcome to ping\");\n return;\n}", "void responseSent( C conn ) ;", "@Override\r\n\t\t\tpublic void onSuccess() {\n\t\t\t\tLog.d(TAG, \"onSucess()\");\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"Peers Avaliable!\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\r\n\t\t\t}", "private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed\r\n log(\"GRAY\", \"[Client ] - Connecting to server ...\");\r\n\r\n try {\r\n String host = JOptionPane.showInputDialog(\"Address:\", \"137.30.209.204\");\r\n\r\n if (host != null && connection.connect(host)) {\r\n // Client connected to the Server\r\n setTitle(\"ChatRSA - Client\");\r\n jButton5.setEnabled(false);\r\n jButton4.setEnabled(false);\r\n jButton6.setEnabled(true);\r\n jButton1.setEnabled(true);\r\n jTextField1.setEnabled(true);\r\n log(\"GREEN\", \"[Status ] - Connected !\");\r\n\r\n } else {\r\n ChatWindow.log(\"GRAY\", \"[Client ] - Cancelled\");\r\n }\r\n\r\n } catch (UnknownHostException ex) {\r\n ChatWindow.log(\"GRAY\", \"[ Error] - connection can not be established in this host.\");\r\n } catch (IOException ex) {\r\n ChatWindow.log(\"GRAY\", \"[ Error] - connection can not be established in this host.\");\r\n }\r\n }", "protected abstract void showConnectError();", "boolean hasClientHello();", "@Override\n protected Void doInBackground(Void... args) {\n try{\n Socket echoSocket = SplashScreen.PrefetchData.getEchoSocket();\n PrintWriter out = new PrintWriter(echoSocket.getOutputStream(),true);\n //input stream of the socket\n BufferedReader in = new BufferedReader(new InputStreamReader(echoSocket.getInputStream()));\n\n out.println(\"Close Connection\");\n System.out.println(\"Client : Close Connection\");\n if(in.readLine().equals(\"Communication done!! Ciao...\")) {\n finish();\n }\n else\n {\n Context context = getApplicationContext();\n CharSequence text = \"There was an error closing the application!\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n System.exit(0);\n }\n\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return null;\n }", "@Override\r\n public void connectSuccess() {\n super.connectSuccess();\r\n }", "private void showSuccessDialog(){\n\n String successMsg = getString(R.string.msgDeviceRegistered);\n AlertDialog dialog = new AlertDialog.Builder(ValidationActivity.this).create();\n dialog.setMessage(successMsg);\n dialog.setCancelable(false);\n dialog.setButton(DialogInterface.BUTTON_POSITIVE, \"Fertig\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n publishCommand(\"AUTH_END\");\n\n // disconnect mqtt-client and go to main-activity\n try {\n IMqttToken disconToken = mqttClient.disconnect();\n disconToken.setActionCallback(new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n\n // Go to main-activity\n Intent intent = new Intent(ValidationActivity.this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); // clear activity back-stack\n startActivity(intent);\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n // something went wrong, but probably we are disconnected anyway\n }\n });\n } catch (MqttException e) {\n e.printStackTrace();\n }\n\n }\n });\n\n dialog.show();\n dialog.getButton(DialogInterface.BUTTON_POSITIVE).setTextColor(getResources().getColor(R.color.colorPrimary));\n }", "void onDisconnectSuccess();", "private static boolean AttemptConnect() {\n try {\n if (Connect()) {\n Log.Confirmation(\"Connected to server on: \" + socket);\n // send connection type\n dos.writeUTF(\"viewer\");\n return true;\n } else {\n return false;\n }\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }", "public void updateGIUnoResponse()\n {\n updateInfo.setText( \"Server is not up :(\" );\n }", "public static void serverConnected() {\r\n jButton5.setEnabled(false);\r\n jButton4.setEnabled(false);\r\n jButton6.setEnabled(true);\r\n jButton1.setEnabled(true);\r\n jTextField1.setEnabled(true);\r\n log(\"GREEN\", \"[Status] - Connected !\");\r\n }", "void clientConnected(Client client);", "private void showFinishMsg() {}", "private static void dealwithelp() {\r\n\t\tSystem.out.println(\"1 ) myip - to see your ip address.\");\r\n\t\tSystem.out.println(\"2 ) myport - to see your port number.\");\r\n\t\tSystem.out.println(\"3 ) connect <ip> <port> - connect to peer.\");\r\n\t\tSystem.out.println(\"4 ) list Command - list all the connected peer/peers.\");\r\n\t\tSystem.out.println(\"5 ) send <id> - to send message to peer.\");\r\n\t\tSystem.out.println(\"6 ) terminate <id> - terminate the connection\");\r\n\t\tSystem.out.println(\"7 ) exit - exit the program.\");\r\n\t}", "public void conectServer() {\n\n\t}", "public static void main(String[] args){\n String data = JOptionPane.showInputDialog(null,\"What is the IP Address of the server?\", \"Connect to Server\", JOptionPane.PLAIN_MESSAGE);\n if(data != null){\n CoronosClient c = new CoronosClient(data);\n }\n else{\n System.exit(0);\n }\n }", "void connectionBtnFunction() {\n\t\ttry {\n\t\t\tif (connectBtn.getLabel() == \"Connect\") {\n\n\t\t\t\ttoConnect();\n\t\t\t\tconnectBtn.setLabel(\"Disconnect\");\n\n\t\t\t} else if (connectBtn.getLabel() == \"Disconnect\") {\n\n\t\t\t\tdisconnectSignal();\n\t\t\t\tconnectBtn.setLabel(\"Connect\");\n\t\t\t\tsocketToServer.close();\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}\n\t\t} catch (Exception ee) {\n\t\t}\n\t}", "private void confirm() {\n\t\tcheckGlobalStatus();\n\n\t\tfinal Set<CyNetwork> networks = networkManager.getNetworkSet();\n\t\tfinal Iterator<CyNetwork> itr = networks.iterator();\n\t\tCyNetwork network = itr.next();\n\n\t\tcheckNetwork(network);\n\t}", "public void announcePeer() throws Exception{\n \n Socket socket = new Socket(connect, inPort);\n\n BufferedReader br = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())),true);\n //System.out.println(\"Sending \" + cmd); \n // Tells another peer what is given in cmd\n pw.println(cmd);\n //System.out.println(\"Command sent\");\n String answer = br.readLine();\n System.out.println(answer);\n PeerConfig.writeInLogs(answer);\n\n pw.close();\n //br.close();\n socket.close();\n\n return ;\n }", "protected boolean triggerAlert() throws Throwable {\n runSystemCommand(SSH_ROOT + adminVIP + \" hostname\");\n String master = stdout.readLine();\n int i = ((int)(Math.random() * nodes));\n String node = \"hcb\" + (i + 1 + NODE_NUM_OFFSET);\n while (node.equals(master)) {\n i = ((int)(Math.random() * nodes));\n node = \"hcb\"+(i + 1 + NODE_NUM_OFFSET);\n }\n int n = i + 1 + NODE_NUM_OFFSET;\n int d = (int)(Math.random() * DISKS_PER_NODE);\n diskString = \"DISK-\" + n + \":\" + d;\n cli.runCommand(\"hwcfg -F -D \" + diskString);\n pause(SLEEP_DISK_DOWN);\n cli.runCommand(\"hwcfg -F -E \" + diskString);\n pause(SLEEP_DISK_DOWN);\n waitForClusterToStart();\n return true;\n }", "@Override\n public void onFailure(int i) {\n System.out.println(\"pca connect: Failed to connect = \" + i);\n }", "public void pingToClient() {\n Thread t = new Thread(() -> {\n while (connected) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n try {\n socketOut.writeObject(\"\");\n } catch (IOException e) {\n //e.printStackTrace();\n }\n }\n });\n t.start();\n }", "public void handleConnectingState() {\n\n setProgressBarVisible(true);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Connecting to \" + tallyDeviceName);\n\n }", "public static void main(String[] args) throws IOException {\n\t\tInetAddress ip = InetAddress.getByAddress(new byte[] {(byte) 95, (byte) 215, (byte) 62, (byte) 5});\n\t\t\n\t\t// connection request\n\t\t// data : 00 00 04 17 27 10 19 80 00 00 00 00 c6 a2 92 eb\n\t\t// convert to byte[] array\n\t\tbyte[] buffer = new byte[] {0x00, 0x00, 0x04, 0x17, 0x27, 0x10, 0x19, (byte) 0x80, 0x00, 0x00, 0x00, 0x00, (byte) 0xc6, (byte) 0xa2, (byte) 0x92, (byte) 0xeb};\n\t\tint length = buffer.length;\n\t\t\n\t\t// DatagramPacket is used to send and received UDP packet \n\t\tDatagramPacket packet = new DatagramPacket(buffer, length, ip, 80);\n\t\tDatagramSocket socket = new DatagramSocket();\n\t\tsocket.send(packet);\n\t\t\n\t\tSystem.out.println(\"Already sent\");\n\t\t\n\t\tsocket.receive(packet);\n\t\t\n\t\tSystem.out.println(byteArray2Hex(packet.getData()));\n\t\tSystem.out.println(\"Connect response\");\n\t\tsocket.close();\n\t\t\n }", "protected void reply_ok() throws java.io.IOException {\n byte[] ok = PushCacheProtocol.instance().okPacket();\n _socket.getOutputStream().write(ok, 0, ok.length);\n }", "public boolean connect(){\r\n\r\n\t\t// Connect to server via TCP socket\r\n\t\ttry {\r\n\r\n\t\t\tclient = new Socket(host, port);\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"[EXCEPTION] connecting to server\");\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Connection to server could not be made. Try again later.\", \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn false;\r\n\t\t}\t\t\r\n\r\n\t\t// Get input and output Streams\r\n\t\ttry {\r\n\r\n\t\t\tpw = new PrintWriter(client.getOutputStream());\r\n\t\t\tbr = new BufferedReader(new InputStreamReader(client.getInputStream()));\r\n\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"[EXCEPTION] creating streams\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Connection to server SUCESSFULL\");\r\n\t\treturn true;\r\n\t}", "public void notifyExit()\r\n {\r\n if (isClientConnected)\r\n sendDisconnectTag();\r\n bs.close(); // Announce termination to client\r\n bs.cancel(); // Shut down waiting server\r\n System.exit(0);\r\n }", "void showSyncFailMessage();", "public boolean pingServer() {\n WifiMouseApplication.KnownServer selected = WifiMouseApplication.getSelectedServer();\n if(this.server.name != selected.name || this.server.bluetooth != selected.bluetooth)\n return false;\n\n sendStringOverNetwork(\"PING\", true);\n //Log.d(\"Waiting for ping...\", \"count: \"+(++count) +\", sessionIv: \"+sessionIV);\n String response = readStringFromNetwork(true);\n //Log.d(\"PingResponse\", \" \"+response);\n\n return response.equals(\"PING\");\n }", "@Override\n\tprotected void onPreExecute() {\n\t\tpd.setMessage(\"Wait Connecting\");\n\t\tpd.show();\n\t\tsuper.onPreExecute();\n\t}", "static private void printWelcome(String ip, int port) {\n System.out.println(\"--------\");\n System.out.println(\"ServerXmlSocket : By AngelStreet\");\n System.out.println(\"Copyright : 2008 - Angelstreetv2.free.fr\");\n System.out.println(\"--------\");\n System.out.println(\"Demarrarage du serveur sur l'ip : \" + ip + \" , port : \" + port);\n System.out.println(\"--------\");\n System.out.println(\"Quitter : tapez \\\"exit\\\"\");\n System.out.println(\"Nombre de connectes : tapez \\\"total\\\"\");\n System.out.println(\"Liste des connectes : tapez \\\"list\\\"\");\n System.out.println(\"Heure Virtuelle : tapez \\\"time\\\"\");\n System.out.println(\"--------\");\n }", "@Override\n public void actionPerformed(ActionEvent e)\n {\n String cmd = e.getActionCommand();\n if (cmd.equals(\"ok\"))\n {\n // communicate this info back to getdown\n if (_checkBox.isSelected())\n {\n _getdown.configureProxy(_host.getText(), _port.getText(), _username.getText(),\n _password.getPassword());\n }\n else\n {\n _getdown.configureProxy(_host.getText(), _port.getText());\n }\n }\n else\n {\n // they canceled, we're outta here\n System.exit(0);\n }\n }", "public abstract boolean confirm();", "void showSuccess(String message);", "public boolean wasOkay();", "static void confirmSubscribe_C(Messenger messenger, Response_e response)\n {\n sendToClient( messenger, Request_e.Request_Subscribe_Event_C_en.valueOf(), response, null );\n }", "public void sendResponse(){\n\n //DropItPacket dropPkt = new DropItPacket(Constants.PONG.toString());\n // Send out a dropit Packet\n Channel channel = e.getChannel();\n ChannelFuture channelFuture = Channels.future(e.getChannel());\n ChannelEvent responseEvent = new DownstreamMessageEvent(channel, channelFuture, packet, channel.getRemoteAddress());\n// System.out.println(\"===== sending to\" + channel.getRemoteAddress().toString());\n try{\n ctx.sendDownstream(responseEvent);\n }catch (Exception ex){\n System.out.println(\"Node: \" + fileServer.getNode().getPort() + \" sending to\"+\n channel.getRemoteAddress().toString() +\"failed! \" + ex.toString());\n }\n }", "public void confirmFlight();", "void sendFinishMessage();", "private void msgNoServerConnection() {\r\n\thandler.sendEmptyMessage(1); // enviar error al cargar\r\n }", "private void connected() {\n m_connectionLabel.setBackground(Color.GREEN);\n m_connectionLabel.setText(\"Connected\");\n }", "public void msgCycleFound()\n {\n Alert cycleFound; // message when cycle is detected\n cycleFound = new Alert(AlertType.INFORMATION);\n cycleFound.setTitle(\"Block editor\");\n cycleFound.setHeaderText(\"Connection was not made!\");\n cycleFound.setContentText(\"Connecting these blocks causes a cycle in scheme.\");\n cycleFound.showAndWait().ifPresent(rs -> {\n if (rs == ButtonType.OK) {}\n });\n }", "private void verifyAuthWithServer() {\n mRegisterModel.connect(binding.personFirstName.getText().toString(),\n binding.personLastName.getText().toString(),\n binding.registerEmail.getText().toString(),\n binding.registerPassword.getText().toString());\n //this is an Asynchronous call no statements after should rely on the result of connect\n }", "public boolean confirmConnection(){\n boolean connected = isConnectingToInternet();\n if(!connected){\n DialogFragment restartQuit = new ConnectionDialogueFragment();\n\n\n\n restartQuit.show(_activity.getFragmentManager(), \"NoInternetConnection\");\n\n\n }\n return connected;\n }", "public void toolAccepted()\n {\n printOut(cliToolsManager.simpleQuestionsMaker(\"Strumento accettato\", 40, true));\n }", "public void transmit()\n { \n try\n {\n JSch jsch=new JSch(); //object that allows for making ssh connections\n //Log into the pi\n Session session=jsch.getSession(USERNAME, HOSTNAME, 22); //pi defaults to using port 22 \n session.setPassword(PASSWORD);\n session.setConfig(\"StrictHostKeyChecking\", \"no\"); //necessary to access the command line easily\n \n session.connect(1000);//connect to the pi\n \n Channel channel = session.openChannel(\"exec\");//set session to be a command line \n ((ChannelExec)channel).setCommand(this.command); //send command to the pi\n \n channel.setInputStream(System.in); \n channel.setOutputStream(System.out);\n //connect to the pi so the command can go through\n channel.connect(1000);\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(frame, \"Error connecting to infrared light\", \"Error Message\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private static void esperarCliente() {\n try {\n socket = serverSocket.accept();\n System.out.println(\"Cliente conectado...\");\n } catch (IOException ex) {\n Logger.getLogger(ServidorUnicauca.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@FXML\n\tpublic void xButtonConnectar(ActionEvent event) {\n\t\ttry {\n\t\t\tsocket = new Socket(\"localhost\", PORT);\n\t\t\txButtonConnectar.setDisable(true);\n\t\t\txButtonCalcular.setDisable(false);\n\t\t\txLabelInfo.setVisible(true);\n\t\t\t\n\t\t\t//recibir id\n\t\t\tobjetInputStream = new ObjectInputStream(socket.getInputStream());\n\t\t\tthis.idClient = (Integer) objetInputStream.readObject();\n\t\t\tSystem.out.println(\"(CLIENTE) cliente conectado [ID asignada: \"+idClient+\"]\");\n\t\t\tthis.xLabelID.setText(idClient+\"\");\n\t\t\t\n\t\t\t//enviar confirmacion\n\t\t\tobjetOutputStream = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tobjetOutputStream.writeObject(new Boolean(true));\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"(CLIENTE) No se ha podido conectar\");\n\t\t}\n\t}", "public void emitirSaludoConGui()\n {\n JOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"<html><p style ='color: red'>Saludo en modo gráfico </p></html>\" + \n\t\t\t\t\t\"\\n\\nBienvenido/a al curso de programación orientada a objetos\\n en Java utilizando BlueJ\",\n\t\t\t\t\t\"Ejemplo de prueba\", JOptionPane.INFORMATION_MESSAGE);\n }", "public void printMsg() {\n System.out.println(\"This is an example RMI program\");\n }", "@Override\n public void confirm(CorrelationData correlationData, boolean isAck, String cause) {\n System.out.println(\"ack = \" + isAck);\n// System.out.println(\"cause = \" + cause);\n// System.out.println(\"=======ConfirmCallback=========\");\n }", "public void clientRun() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\ttry {\r\n\t\t\t\t InetAddress address = InetAddress.getLocalHost();\r\n\t\t\t\tSocket clientSocket = new Socket(address, this.localport);\r\n\t\t\t\tPrintStream output = new PrintStream(clientSocket.getOutputStream());\r\n\t\t\t\tString text = Integer.toString(this.compteur);\r\n\t\t\t\tScanner sc = new Scanner(clientSocket.getInputStream());\r\n\t\t\t\tPrintWriter printWrite= new PrintWriter(output);\r\n\t\t\t\tprintWrite.println(text);\r\n\t\t\t\tprintWrite.flush();// Nécessaire pour le bon fonctionnement.\r\n\t\t\t\tif (sc.hasNext()) {\r\n\t\t\t\t\tString texte2 = sc.nextLine();\r\n\t\t\t\t\tthis.result = Integer.parseInt(texte2);\r\n\t\t\t\t}\r\n\t\t\t\tclientSocket.close();\r\n\t\t\t\tsc.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}", "public void connectFinish(Client client) {\n dialog.dismiss();\n if (client != null) {\n game.setClient(client);\n showMessage(\"Connection established!\");\n EditText name = (EditText) findViewById(R.id.name);\n game.sendMessage(new PlayerDetailsMessage(name.getText().toString()));\n setupRoles();\n } else {\n showMessage(\"Connection failed...\");\n }\n }", "public void connecting() {\n\n }", "private void verifyAuthWithServer() {\n mResetModel.connect(\n myBinding.editResetEmail.getText().toString());\n //This is an Asynchronous call. No statements after should rely on the\n //result of connect().\n }", "public static void main(String[] args) throws Throwable {\n String address = JOptionPane.showInputDialog(\"Connect to?\");\n\n InetAddress inetAddress = InetAddress.getByName(address);\n Socket socket = new Socket(inetAddress, 1234);\n InputStream input = socket.getInputStream();\n FileOutputStream out = new FileOutputStream(\"output.txt\");\n System.out.println(\"Receiving to file output.txt\" );\n\n // simple variant\n int r = 0;\n while( (r=input.read())!=-1) {\n out.write(r);\n }\n\n // // buffered variant\n // int numRead = 0;\n // byte[] buffer = new byte[3*512];\n // while((numRead = input.read(buffer))>= 0) {\n // out.write(buffer, 0, numRead);\n // }\n out.flush(); out.close();\n input.close(); socket.close();\n System.out.println(\"Finished, please open file:\" );\n System.out.println(new File(\"output.txt\").getAbsoluteFile());\n }", "@Override\n public void connected() {\n jLabel5.setText(\"已连接\");\n }", "private void connect() {\n ftp.connect();\n if (ftp.goodReply()) sendResponse(\"Connected\");\n else sendResponse(\"Could not connect to server\");\n }", "@Override\n\tpublic String echo(String s) throws RemoteException {\n\t\tSystem.out.println(\"Replied to some client saying ’\" + s + \"’\");\n\t\treturn s;\n\t}", "void onDisconnect( String errorMsg );", "@Override\n public void onConnected(Bundle connectionHint) {\n\n Toast.makeText(getApplicationContext(), \"Connected\", Toast.LENGTH_LONG).show();\n }", "public static void main(String[] args) throws IOException {\n\t Socket client = new Socket(\"localhost\",5004);\n\t\n\t\tDataOutputStream dos = new DataOutputStream(client.getOutputStream());\n\t DataInputStream dis = new DataInputStream(client.getInputStream());\n\t\n\t String resp = dis.readUTF();\n\t System.out.println(resp);\n\t\n\t client.close();\n\t}", "public void printThankYou() {\r\n \r\n System.out.printf(\"Thank you for being a valued SA Cable Customer!%n%n\");\r\n }", "public void disconnect(){\n if(out != null) {\n out.println(\"IDisconnect:\" + username);\n }\n }", "public static void DisplayInfo(Boolean tConnection) {\r\n\t\tboolean connection = tConnection; \r\n\r\n\r\n\t\tif(connection == true) {\r\n\t\t\tif(serverConnector.getAllClients() != null) {\r\n\t\t\t\tclientListUpdater();\r\n\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"Server Client List is empty!!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (clientList.size() < 1) {\r\n\t\t\tSystem.out.println(\"\\nThere are no clients to display.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(\"\\r\\n Client's Name Service Selected \");\r\n\r\n\t\tfor(Client eachClient: clientList)\r\n\t\t\teachClient.printClientData();\r\n\t\t\r\n\t}", "public static String DeviceConnected(){\n StringBuilder outputDC = new StringBuilder();\n String cmd = \"route print\";\n try{\n outputDC.append(getCommand(cmd));\n }\n catch(Throwable se){\n se.printStackTrace();\n }\n return outputDC.toString();\n }", "protected static void test (String host, int port) {\r\n\r\n\t\ttry {\r\n\t\t\t// Create an SSL factory and use it to create an SSL socket\r\n\t\t\tSSLSocketFactory sslFactory = createSSLFactory ();\r\n\r\n\t\t\tSystem.out.println (\"4. Connecting to \" + host + \" port \" + port);\r\n\t\t\tSSLSocket socket = (SSLSocket) sslFactory.createSocket (host, port);\r\n\r\n\t\t\t// Connect\r\n\t\t\tsocket.startHandshake();\r\n\r\n\t\t\t// Send the XML request to the server\r\n\t\t\tOutputStream outputstream = socket.getOutputStream();\r\n\t\t\tOutputStreamWriter outputstreamwriter = new OutputStreamWriter(outputstream);\r\n\r\n\t\t\tBufferedWriter bufferedWriter = new BufferedWriter(outputstreamwriter);\r\n\r\n\t\t\tString testXML = \"<AprivaPosXml DeviceAddress=\\\"7771314\\\">\" + \r\n\t\t\t\t\t\t\t\t\t\t \"<Credit MessageType=\\\"Request\\\" Version=\\\"5.0\\\" ProcessingCode=\\\"Sale\\\">\" + \r\n\t\t\t\t\t\t\t\t\t\t \"<Stan>1</Stan>\"+\r\n\t\t\t\t\t\t\t\t\t\t \"<CardPresent>YES</CardPresent>\" + \r\n\t\t\t\t\t\t\t\t\t\t \"<EntryMode>Manual</EntryMode>\" + \r\n\t\t\t\t\t\t\t\t\t\t \"<EntryModeType>Standard</EntryModeType>\" + \r\n\t\t\t\t\t\t\t\t\t\t \"<ExpireDate>17/08</ExpireDate>\" + \r\n\t\t\t\t\t\t\t\t\t\t \"<Amount>1.00</Amount>\" + \r\n\t\t\t\t\t\t\t\t\t\t \"<AccountNumber>4111111111111111</AccountNumber>\" + \r\n\t\t\t\t\t\t\t\t\t\t \"</Credit>\" + \r\n\t\t\t\t\t\t\t\t\t\t \"</AprivaPosXml>\";\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println (\"5. Sending Request --->>>>>>\");\r\n\t\t\tSystem.out.println (formatPrettyXML(testXML));\r\n\t\t\t\r\n\t\t\tbufferedWriter.write (testXML);\r\n\t\t\tbufferedWriter.flush ();\r\n\r\n\t\t\tSystem.out.println (\"6. Waiting for Response <<<<<<--------\");\r\n\t\t\tInputStream inputstream = socket.getInputStream();\r\n\t\t\tInputStreamReader inputstreamreader = new InputStreamReader(inputstream);\r\n\t\t\tBufferedReader bufferedReader = new BufferedReader(inputstreamreader);\r\n\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\r\n\t\t\t\tSystem.out.println(formatPrettyXML(line));\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace ();\r\n\t\t}\r\n\t}", "public void showOption(Socket s , BufferedReader bof,String contact) throws IOException\n {\n clipRequestNotif.play();\n PrintWriter printWriter = new PrintWriter(s.getOutputStream(),true) ;\n Platform.runLater(() ->\n {\n\n BoxBlur boxBlur = new BoxBlur(3, 3, 3);\n JFXButton no = new JFXButton(\"Refuse\");\n JFXButton yes = new JFXButton(\"Accept\");\n JFXDialogLayout layout = new JFXDialogLayout();\n no.getStyleClass().add(\"dialogButtonNo\");\n yes.getStyleClass().add(\"dialogButtonYes\");\n layout.setActions(no, yes);\n layout.setHeading(new Text(contact+\" wants to chat with you?\"));\n JFXDialog dialog = new JFXDialog(rootStackPane, layout, JFXDialog.DialogTransition.TOP);\n dialog.show();\n rootAnchorPane.setEffect(boxBlur);\n\n no.addEventHandler(MouseEvent.MOUSE_CLICKED, (MouseEvent mouseevnt) ->\n {\n rootAnchorPane.setEffect(null);\n dialog.close();\n printWriter.println(\"false\");\n\n });\n yes.addEventHandler(MouseEvent.MOUSE_CLICKED, (MouseEvent mouseevnt) ->\n {\n rootAnchorPane.setEffect(null);\n dialog.close();\n printWriter.println(\"true\");\n addMessages(contact) ;\n });\n });\n\n }" ]
[ "0.6588879", "0.62592334", "0.6106953", "0.6002388", "0.5982129", "0.593722", "0.5930277", "0.5881229", "0.5805452", "0.5785465", "0.57819957", "0.5765203", "0.5731665", "0.5720321", "0.56699777", "0.5648373", "0.5621856", "0.5605903", "0.5588734", "0.5581332", "0.55805486", "0.55739623", "0.5566508", "0.5565617", "0.55594987", "0.55260247", "0.55223596", "0.55155337", "0.5511201", "0.55075", "0.549206", "0.54837626", "0.54772145", "0.5475239", "0.5472188", "0.5451822", "0.5447326", "0.5434303", "0.54152894", "0.53975576", "0.5394486", "0.5393112", "0.53919643", "0.5376709", "0.53716046", "0.53669643", "0.5364577", "0.5360158", "0.5353183", "0.53511894", "0.5346637", "0.5344321", "0.5338654", "0.5336131", "0.5335998", "0.5307304", "0.5306777", "0.5300692", "0.52909034", "0.52854145", "0.5284368", "0.5260849", "0.524719", "0.524669", "0.52452147", "0.5239334", "0.52359", "0.5233792", "0.5226542", "0.5223235", "0.5220291", "0.5216388", "0.52151436", "0.5213813", "0.5212859", "0.52052337", "0.52049315", "0.52043825", "0.5203853", "0.52034396", "0.5203131", "0.5202091", "0.5200976", "0.5199574", "0.5186199", "0.518493", "0.51808864", "0.5180881", "0.5179265", "0.5165697", "0.51622885", "0.5160074", "0.5156284", "0.5151355", "0.5145972", "0.5128992", "0.512629", "0.512276", "0.51106733", "0.5110203" ]
0.73721814
0
Prototype method for calling genMD5 method on a file Nathan: Change this so that it calls your MD5 method It should throw a DB exception so that it can be caught in the request listener and handled there (with a different response so the client knows the request failed) Can't currently throw a DatabaseException because that class is contained within ArcadeServer, which this class depends on creating a cyclic dependency. TODO possible abstract DatabaseException out of ArcadeServer so we can include it? Until then, this method should just return null if there was an error of any kind.
public String getMD5ForGame(String gameId) { return "TODO"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "String saveData(MultipartFile md5File) throws IOException;", "public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }", "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}", "public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException 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 byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }", "public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }", "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }", "public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}", "public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }", "@Override\n\tpublic ResultTO getFileInfoFromMd5(String md5String) {\n\t\tResultTO result = this.getAllFiles();\n\t\tif (result.isError()) {\n\t\t\tresult.setMessage(\"Some error occurred in getting the file for the given MD5\");\n\t\t\tresult.setFiles(new ArrayList<InfoFileTO>());\n\t\t\treturn result;\n\t\t}\n\t\tList<InfoFileTO> infoFileList = result.getFiles();\n\t\t// If it is void (when some error occurred) it is not executed\n\t\tfor (InfoFileTO infoFileTO : infoFileList) {\n\t\t\tif (infoFileTO.getHashMd5().equals(md5String)) {\n\t\t\t\tresult.setMessage(\"Monitor Operation successfully completed\");\n\t\t\t\tresult.setFiles(Arrays.asList(infoFileTO));\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.setMessage(\"No file has been found with the given Hash MD5!\");\n\t\t\t\tresult.setFiles(new ArrayList<InfoFileTO>());\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "void downloadNdwi5(File file, int id) throws IOException, SQLException;", "public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }", "public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }", "@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }", "public MD5(String texto) throws Exception {\n this.md5 = MessageDigest.getInstance(\"MD5\");\n this.texto = texto;\n this.byTexto = texto.getBytes();\n calcMD5();\n }", "public Md5HashFileSystemResolver() {\n\t\tsuper();\n\t}", "byte[] getFile(String sha) throws Exception;", "public String MD5(String md5) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }", "private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}", "private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }", "private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }", "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 try {\n String fileName = \"\";\n byte[] data = null;\n\n FileItemFactory factory = new DiskFileItemFactory();\n ServletFileUpload upload = new ServletFileUpload(factory);\n List /* FileItem */ items = upload.parseRequest(request);\n Iterator iterator = items.iterator();\n\n out.println(\"<html><head><style>body{ font-family: helvetica;</style></head><body><h1>MD5</h1><table border='1'>\");\n\n while(iterator.hasNext()) {\n FileItem fileItem = (FileItem) iterator.next();\n if (! fileItem.isFormField() /*&& fileItem.getName().length() > 0 */) {\n fileName = fileItem.getName();\n data = fileItem.get();\n out.println(\"<tr><td>\" + fileName + \"</td><td>\" + md5sum(data) + \"</td></tr>\");\n }\n }\n\n out.println(\"</table></body></html>\");\n }\n catch (FileUploadException ex) {\n throw new IOException(ex);\n }\n finally {\n out.close();\n }\n }", "public String md5(String md5StringInput) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5StringInput.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "public abstract File mo41087j();", "public abstract File mo41088k();", "void downloadEto(File file, int id) throws IOException, SQLException;", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}", "public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "public String uploadFile(String filename, InputStream is)\n {\n String url=null;\n try {\n \n FileMetadata metadata = client.files().uploadBuilder(\"/\"+filename).uploadAndFinish(is);\n SharedLinkMetadata sharedLinkMetadata = client.sharing().createSharedLinkWithSettings(\"/\"+filename);\n url=sharedLinkMetadata.getUrl();\n url=url.substring(0, url.length()-1)+\"1\";\n \n }\n// catch (FileNotFoundException fne)\n// {\n// System.out.println(\"96 : FileNotFoundException Caused By \"+fne.getLocalizedMessage());\n// }\n catch (IOException ioe)\n {\n System.out.println(\"100 : IOException Caused By \"+ioe.getLocalizedMessage());\n }\n// catch (DbxException dbxe)\n// {\n// \n// System.out.println(\"105 : DbxException Caused By \"+dbxe.getLocalizedMessage());\n// }\n catch(DbxException e)\n {\n System.out.println(\"--++--------+++++\");\n session = sfobj.openSession();\n tx = session.beginTransaction();\n\n System.out.println(\"line no= \"+e.getStackTrace()[2].getLineNumber());\n System.out.println(\"mathod name= \"+e.getStackTrace()[2].getMethodName());\n System.out.println(\"type= \"+e.toString());\n String nameofCurrMethod = new Throwable() \n .getStackTrace()[2] \n .getMethodName(); \n System.out.println(\"----method\"+nameofCurrMethod);\n // System.out.println(ea.getStackTrace().toString());\n System.out.println(\"class name= \"+e.getStackTrace()[2].getFileName());\n Errors ee=new Errors();\n ee.setGymid(gymid);\n ee.setError_name(\"line no= \"+e.getStackTrace()[2].getLineNumber()+\"type= \"+e.toString());\n ee.setMethod_name(e.getStackTrace()[2].getMethodName());\n session.save(ee);\n tx.commit();\n session.close();\n }\n return url;\n }", "@Operation(operationId = \"addNewFast5FileToSample\", summary = \"Add a new fast5 file to the given sample\",\n\t\t\tdescription = \"Add a new fast5 file to the given sample.\", tags = \"samples\")\n\t@RequestMapping(value = \"/api/samples/{sampleId}/fast5\", method = RequestMethod.POST,\n\t\t\tconsumes = MediaType.MULTIPART_FORM_DATA_VALUE)\n\tpublic ResponseResource<SequenceFile> addNewFast5FileToSample(@PathVariable Long sampleId,\n\t\t\t@RequestPart(\"file\") MultipartFile file,\n\t\t\t@RequestPart(value = \"parameters\", required = false) SequenceFileResource fileResource,\n\t\t\tHttpServletResponse response) throws IOException {\n\t\tResponseResource<SequenceFile> responseObject;\n\n\t\tlogger.debug(\"Adding sequence file to sample \" + sampleId);\n\t\tlogger.trace(\"Uploaded file size: \" + file.getSize() + \" bytes\");\n\t\t// load the sample from the database\n\t\tSample sample = sampleService.read(sampleId);\n\t\tlogger.trace(\"Read sample \" + sampleId);\n\t\t// prepare a new sequence file using the multipart file supplied by the caller\n\t\tPath temp = Files.createTempDirectory(null);\n\t\tPath target = temp.resolve(file.getOriginalFilename());\n\n\t\ttry {\n\t\t\t// Changed to MultipartFile.transerTo(File) because it was truncating\n\t\t\t// large files to 1039956336 bytes\n\t\t\t// target = Files.write(target, file.getBytes());\n\t\t\tfile.transferTo(target.toFile());\n\t\t\tlogger.trace(\"Wrote temp file to \" + target);\n\n\t\t\tSequenceFile sf;\n\t\t\tSequencingRun sequencingRun = null;\n\t\t\tif (fileResource != null) {\n\t\t\t\tsf = fileResource.getResource();\n\n\t\t\t\tLong sequencingRunId = fileResource.getMiseqRunId();\n\t\t\t\tif (sequencingRunId != null) {\n\t\t\t\t\tsequencingRun = sequencingRunService.read(sequencingRunId);\n\t\t\t\t\tlogger.trace(\"Read miseq run \" + sequencingRunId);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsf = new SequenceFile();\n\t\t\t}\n\n\t\t\tsf.setFile(target);\n\n\t\t\tFast5Object fast5Object = new Fast5Object(sf);\n\n\t\t\tif (sequencingRun != null) {\n\t\t\t\tif (sequencingRun.getUploadStatus() != SequencingRunUploadStatus.UPLOADING) {\n\t\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\t\"The sequencing run must be in the UPLOADING state to upload data.\");\n\t\t\t\t}\n\t\t\t\tfast5Object.setSequencingRun(sequencingRun);\n\t\t\t\tlogger.trace(\"Added seqfile to miseqrun\");\n\t\t\t}\n\n\t\t\t// save the seqobject and sample\n\t\t\tSampleSequencingObjectJoin createSequencingObjectInSample = sequencingObjectService.createSequencingObjectInSample(\n\t\t\t\t\tfast5Object, sample);\n\n\t\t\tfast5Object = (Fast5Object) createSequencingObjectInSample.getObject();\n\t\t\tlogger.trace(\"Created seqfile in sample \" + createSequencingObjectInSample.getObject().getId());\n\n\t\t\t// prepare a link to the sequence file itself (on the sequence file\n\t\t\t// controller)\n\t\t\tString objectType = objectLabels.get(Fast5Object.class);\n\t\t\tLong sequenceFileId = fast5Object.getFile().getId();\n\t\t\tLink selfRel = linkTo(\n\t\t\t\t\tmethodOn(RESTSampleSequenceFilesController.class).readSequenceFileForSequencingObject(sampleId,\n\t\t\t\t\t\t\tobjectType, fast5Object.getId(), sequenceFileId)).withSelfRel();\n\n\t\t\t// Changed, because sfr.setResource(sf)\n\t\t\t// and sfr.setResource(sampleSequenceFileRelationship.getObject())\n\t\t\t// both will not pass a GET-POST comparison integration test.\n\t\t\tfast5Object = (Fast5Object) sequencingObjectService.read(fast5Object.getId());\n\t\t\tSequenceFile sequenceFile = fast5Object.getFileWithId(sequenceFileId);\n\n\t\t\t// add links to the resource\n\t\t\tsequenceFile.add(\n\t\t\t\t\tlinkTo(methodOn(RESTSampleSequenceFilesController.class).getSampleSequenceFiles(sampleId)).withRel(\n\t\t\t\t\t\t\tREL_SAMPLE_SEQUENCE_FILES));\n\t\t\tsequenceFile.add(selfRel);\n\t\t\tsequenceFile.add(\n\t\t\t\t\tlinkTo(methodOn(RESTProjectSamplesController.class).getSample(sampleId)).withRel(REL_SAMPLE));\n\t\t\tsequenceFile.add(\n\t\t\t\t\tlinkTo(methodOn(RESTSampleSequenceFilesController.class).readSequencingObject(sampleId, objectType,\n\t\t\t\t\t\t\tfast5Object.getId())).withRel(REL_SEQ_OBJECT));\n\n\t\t\tresponseObject = new ResponseResource<>(sequenceFile);\n\t\t\t// add a location header.\n\t\t\tresponse.addHeader(HttpHeaders.LOCATION, selfRel.getHref());\n\t\t\t// set the response status.\n\t\t\tresponse.setStatus(HttpStatus.CREATED.value());\n\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tlogger.debug(\"Error 400 - Bad Request: \" + e.getMessage());\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\t// clean up the temporary files.\n\t\t\tlogger.trace(\"Deleted temp files\");\n\t\t\tFiles.deleteIfExists(target);\n\t\t\tFiles.deleteIfExists(temp);\n\t\t}\n\n\t\t// respond to the client\n\t\treturn responseObject;\n\t}", "protected static String md5(final String string) {\n try {\n final MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(string.getBytes(), 0, string.length());\n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n return \"\";\n }\n }", "public byte[] getMD5() {\n return MD5;\n }", "public static java.lang.String readFile(java.lang.String r5) {\n /*\n r0 = 0\n r1 = 0\n java.io.InputStreamReader r2 = new java.io.InputStreamReader // Catch:{ Exception -> 0x003b }\n java.io.FileInputStream r3 = new java.io.FileInputStream // Catch:{ Exception -> 0x003b }\n r3.<init>(r5) // Catch:{ Exception -> 0x003b }\n r2.<init>(r3) // Catch:{ Exception -> 0x003b }\n r5 = 100\n char[] r5 = new char[r5] // Catch:{ Exception -> 0x0036, all -> 0x0033 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0036, all -> 0x0033 }\n java.lang.String r3 = \"\"\n r1.<init>(r3) // Catch:{ Exception -> 0x0036, all -> 0x0033 }\n L_0x0017:\n int r3 = r2.read(r5) // Catch:{ Exception -> 0x0036, all -> 0x0033 }\n r4 = -1\n if (r3 == r4) goto L_0x0022\n r1.append(r5, r0, r3) // Catch:{ Exception -> 0x0036, all -> 0x0033 }\n goto L_0x0017\n L_0x0022:\n java.lang.String r5 = r1.toString() // Catch:{ Exception -> 0x0036, all -> 0x0033 }\n r2.close() // Catch:{ Exception -> 0x002a }\n goto L_0x0032\n L_0x002a:\n r1 = move-exception\n java.lang.String r2 = \"\"\n java.lang.Object[] r0 = new java.lang.Object[r0]\n com.ta.audid.utils.UtdidLogger.se(r2, r1, r0)\n L_0x0032:\n return r5\n L_0x0033:\n r5 = move-exception\n r1 = r2\n goto L_0x0054\n L_0x0036:\n r5 = move-exception\n r1 = r2\n goto L_0x003c\n L_0x0039:\n r5 = move-exception\n goto L_0x0054\n L_0x003b:\n r5 = move-exception\n L_0x003c:\n java.lang.String r2 = \"\"\n java.lang.Object[] r3 = new java.lang.Object[r0] // Catch:{ all -> 0x0039 }\n com.ta.audid.utils.UtdidLogger.se(r2, r5, r3) // Catch:{ all -> 0x0039 }\n if (r1 == 0) goto L_0x0051\n r1.close() // Catch:{ Exception -> 0x0049 }\n goto L_0x0051\n L_0x0049:\n r5 = move-exception\n java.lang.String r1 = \"\"\n java.lang.Object[] r0 = new java.lang.Object[r0]\n com.ta.audid.utils.UtdidLogger.se(r1, r5, r0)\n L_0x0051:\n java.lang.String r5 = \"\"\n return r5\n L_0x0054:\n if (r1 == 0) goto L_0x0062\n r1.close() // Catch:{ Exception -> 0x005a }\n goto L_0x0062\n L_0x005a:\n r1 = move-exception\n java.lang.Object[] r0 = new java.lang.Object[r0]\n java.lang.String r2 = \"\"\n com.ta.audid.utils.UtdidLogger.se(r2, r1, r0)\n L_0x0062:\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ta.audid.utils.FileUtils.readFile(java.lang.String):java.lang.String\");\n }", "public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }", "public MD5Util() {\n }", "public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }", "public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }", "public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }", "public File getHdf5File()\n\t{\n\t\treturn hdf5File;\n\t}", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }", "public static boolean saveFile(java.lang.String r4, java.lang.String r5) {\n /*\n r0 = 0\n r1 = 0\n java.io.FileWriter r2 = new java.io.FileWriter // Catch:{ Exception -> 0x003c, all -> 0x0039 }\n java.io.File r3 = new java.io.File // Catch:{ Exception -> 0x003c, all -> 0x0039 }\n r3.<init>(r4) // Catch:{ Exception -> 0x003c, all -> 0x0039 }\n r2.<init>(r3) // Catch:{ Exception -> 0x003c, all -> 0x0039 }\n java.io.BufferedWriter r4 = new java.io.BufferedWriter // Catch:{ Exception -> 0x0037 }\n r4.<init>(r2) // Catch:{ Exception -> 0x0037 }\n r4.write(r5) // Catch:{ Exception -> 0x0034, all -> 0x0031 }\n r4.flush() // Catch:{ Exception -> 0x0034, all -> 0x0031 }\n r5 = 1\n r4.close() // Catch:{ Exception -> 0x001c }\n goto L_0x0024\n L_0x001c:\n r4 = move-exception\n java.lang.String r0 = \"\"\n java.lang.Object[] r3 = new java.lang.Object[r1]\n com.ta.audid.utils.UtdidLogger.se(r0, r4, r3)\n L_0x0024:\n r2.close() // Catch:{ Exception -> 0x0028 }\n goto L_0x0030\n L_0x0028:\n r4 = move-exception\n java.lang.String r0 = \"\"\n java.lang.Object[] r1 = new java.lang.Object[r1]\n com.ta.audid.utils.UtdidLogger.se(r0, r4, r1)\n L_0x0030:\n return r5\n L_0x0031:\n r5 = move-exception\n r0 = r4\n goto L_0x0063\n L_0x0034:\n r5 = move-exception\n r0 = r4\n goto L_0x003e\n L_0x0037:\n r5 = move-exception\n goto L_0x003e\n L_0x0039:\n r5 = move-exception\n r2 = r0\n goto L_0x0063\n L_0x003c:\n r5 = move-exception\n r2 = r0\n L_0x003e:\n java.lang.String r4 = \"\"\n java.lang.Object[] r3 = new java.lang.Object[r1] // Catch:{ all -> 0x0062 }\n com.ta.audid.utils.UtdidLogger.se(r4, r5, r3) // Catch:{ all -> 0x0062 }\n if (r0 == 0) goto L_0x0053\n r0.close() // Catch:{ Exception -> 0x004b }\n goto L_0x0053\n L_0x004b:\n r4 = move-exception\n java.lang.String r5 = \"\"\n java.lang.Object[] r0 = new java.lang.Object[r1]\n com.ta.audid.utils.UtdidLogger.se(r5, r4, r0)\n L_0x0053:\n if (r2 == 0) goto L_0x0061\n r2.close() // Catch:{ Exception -> 0x0059 }\n goto L_0x0061\n L_0x0059:\n r4 = move-exception\n java.lang.String r5 = \"\"\n java.lang.Object[] r0 = new java.lang.Object[r1]\n com.ta.audid.utils.UtdidLogger.se(r5, r4, r0)\n L_0x0061:\n return r1\n L_0x0062:\n r5 = move-exception\n L_0x0063:\n if (r0 == 0) goto L_0x0071\n r0.close() // Catch:{ Exception -> 0x0069 }\n goto L_0x0071\n L_0x0069:\n r4 = move-exception\n java.lang.String r0 = \"\"\n java.lang.Object[] r3 = new java.lang.Object[r1]\n com.ta.audid.utils.UtdidLogger.se(r0, r4, r3)\n L_0x0071:\n if (r2 == 0) goto L_0x007f\n r2.close() // Catch:{ Exception -> 0x0077 }\n goto L_0x007f\n L_0x0077:\n r4 = move-exception\n java.lang.Object[] r0 = new java.lang.Object[r1]\n java.lang.String r1 = \"\"\n com.ta.audid.utils.UtdidLogger.se(r1, r4, r0)\n L_0x007f:\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ta.audid.utils.FileUtils.saveFile(java.lang.String, java.lang.String):boolean\");\n }", "public static byte[] MD5(String ran, String strKey){\n \n \tString clientSecretKey = ran + strKey;\n MessageDigest m = null;\n \n try {\n \t\n m = MessageDigest.getInstance(\"MD5\");\n \n } \n catch (NoSuchAlgorithmException ex) {\n \t\n ex.printStackTrace();\n \n }\n \n m.reset();\n m.update(clientSecretKey.getBytes());\n byte[] digest = m.digest();\n \n return digest;\n \n }", "public abstract WriteResult writeBlob(User user, Blob blob, byte[] oldDigest);", "public static String writeFileToCacheSecure(String fileName,Context context) {\n md5CheckResult = false;\n String path=null;\n for(int i=0;i<5;i++){\n Log.d(TAG,\"invoke writeFileToCache times:\"+i);\n path = writeFileToCache(fileName,context);\n if(md5CheckResult){\n Log.d(TAG,\"md5 check pass ,stop invoke writeFileToCache\");\n break;\n }\n }\n return path;\n }", "protected abstract File download(Exception previousException) throws Exception;", "public static MessageDigest getMessageDigest ()\n {\n try {\n return MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException nsae) {\n throw new RuntimeException(\"JVM does not support MD5. Gurp!\");\n }\n }", "public synchronized byte[] generateMd5Bytes(Item item) throws Exception {\n\t\tif(profile == null) {\n\t\t\tthrow new IllegalArgumentException(\"profile cannot be null, please provide a profile by calling setProfile(MetadataProfile profile) before calling this method\");\n\t\t}\n\t\t\n\t\tfor(MetadataItem field : profile.getMetadata()) {\n\t\t\tString fieldValue = field.evaluate(item);\n\t\t\tif(fieldValue != null) {\n\t\t\t\tmd5Digester.update(fieldValue.getBytes());\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(includeItemText) {\n\t\t\tmd5Digester.update(item.getTextObject().toString().getBytes(Charset.forName(\"utf8\")));\n\t\t}\n\t\t\n\t\t// Capture our result and then cleanup for the next call\n\t\tbyte[] result = md5Digester.digest();\n\t\tmd5Digester.reset();\n\t\t\n\t\treturn result;\n\t}", "private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}", "protected abstract E readFile() throws Exception;", "public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "public final void a(com.ss.android.socialbase.downloader.exception.BaseException r5) {\n /*\n r4 = this;\n com.ss.android.socialbase.downloader.model.DownloadInfo r0 = r4.f30922b\n r1 = 0\n r0.setFirstDownload(r1)\n if (r5 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n if (r0 == 0) goto L_0x0022\n java.lang.Throwable r0 = r5.getCause()\n boolean r0 = r0 instanceof android.database.sqlite.SQLiteFullException\n if (r0 == 0) goto L_0x0022\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n goto L_0x003f\n L_0x0022:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x0034 }\n com.ss.android.socialbase.downloader.model.DownloadInfo r2 = r4.f30922b // Catch:{ SQLiteException -> 0x0034 }\n long r2 = r2.getCurBytes() // Catch:{ SQLiteException -> 0x0034 }\n r0.b((int) r1, (long) r2) // Catch:{ SQLiteException -> 0x0034 }\n goto L_0x003f\n L_0x0034:\n com.ss.android.socialbase.downloader.downloader.i r0 = r4.f30923c // Catch:{ SQLiteException -> 0x003f }\n com.ss.android.socialbase.downloader.model.DownloadInfo r1 = r4.f30922b // Catch:{ SQLiteException -> 0x003f }\n int r1 = r1.getId() // Catch:{ SQLiteException -> 0x003f }\n r0.f(r1) // Catch:{ SQLiteException -> 0x003f }\n L_0x003f:\n r0 = -1\n r4.a((int) r0, (com.ss.android.socialbase.downloader.exception.BaseException) r5)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.socialbase.downloader.downloader.e.a(com.ss.android.socialbase.downloader.exception.BaseException):void\");\n }", "public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "int uploadNdwi5(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;", "void downloadNdwi6(File file, int id) throws IOException, SQLException;", "protected DigestMD5Base(Map props, String className, int firstStep, String digestUri, CallbackHandler cbh) throws SaslException {\n super(props, className);\n step = firstStep;\n this.digestUri = digestUri;\n this.cbh = cbh;\n }", "public void setMD5Result(String md5) throws FrameException {\n \tinfoElements.put(new Integer(InfoElement.MD5_RESULT), md5.getBytes());\n }", "public boolean carregarChaveMD5(final String idChaveMD5) throws Exception {\n \t\n boolean chave = false;\n\n final NativeSql nativeSql = new NativeSql(jdbcWrapper);\n nativeSql.appendSql(\"SELECT MD5\");\n nativeSql.appendSql(\" FROM AD_FACILITACONS \");\n nativeSql.appendSql(\" WHERE MD5 = '\" + idChaveMD5.toString() + \"'\");\n\n final ResultSet resultSet = nativeSql.executeQuery();\n if (resultSet.next()) {\n \tchave = resultSet.getString(\"MD5\") != null ? true: false;\n }\n return chave;\n }", "public String getMD5() {\n return hash;\n }", "private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "void perform(Transaction tx,\n String userPrincipal,\n FedoraId fedoraId,\n String filename,\n String contentType,\n Collection<URI> digests,\n InputStream contentBody,\n long size,\n ExternalContent externalContent);", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "private String toMD5(String password)\n {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n \n m.update(password.getBytes(),0,password.length());\n \n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException ex) {\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n }\n return \"\";\n }", "public Md5HashFileSystemResolver(ConfigManager configManager) {\n\t\tsuper();\n\t\tthis.configManager = configManager;\n\t}", "public static String getMD5(String string) throws NoSuchAlgorithmException, IOException {\n MessageDigest md5;\n md5 = MessageDigest.getInstance(\"MD5\");\n\n try (DigestInputStream stream = new DigestInputStream(new ByteArrayInputStream(string.getBytes()), md5)) {\n byte[] buffer = new byte[8192];\n while (true) {\n if ((stream.read(buffer) == -1)) break;\n }\n StringBuilder sb = new StringBuilder();\n for (byte b : md5.digest()) {\n sb.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }\n }", "public String encodeByMD5(String string) {\n\t\t\tif (string == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\t\t\r\n\t\t\t\t//使用平台的默认字符集将此 String 编码为 byte 序列,并将结果存储到一个新的 byte 数组中。\r\n\t\t\t\t//将byte数组给摘要\r\n\t\t\t\tmessageDigest.update(string.getBytes());\r\n\t\t\t\t//通过执行诸如填充之类的最终操作完成哈希计算。在调用此方法之后,摘要被重置。 \r\n\t\t\t\t//返回:\r\n\t\t\t\t//存放哈希值结果的 byte 数组。\r\n\t\t\t\t\r\n\t\t\t\treturn getFormattedText(messageDigest.digest());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t}\r\n\t\t}", "public byte[] MD5(String texto) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\"};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Mandamos el texto \n\t\tPrintWriter out = new PrintWriter(terminal.getOutputStream());\n\t\tout.print(texto);\n\t\tout.flush();\n\t\tout.close();\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.getBytes();\n\t}", "void downloadEvi(File file, int id) throws IOException, SQLException;", "void downloadTrmm(File file, int id) throws IOException, SQLException;", "public interface DatabaseManager {\r\n\r\n // NOTE: this is a draft of the interface. More methods will likely be\r\n // added.\r\n\r\n /**\r\n * Uploads the specified feature to the database.\r\n * \r\n * @param file the shapefile (*.shp) to upload\r\n * @param project the project to associate the shapefile with\r\n * @return the id of the feature in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadFeature(File file, String project) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified modis tile to the database.\r\n * \r\n * @param file the .hdf to upload\r\n * @param product the modis product\r\n * @param date the date the data was captured\r\n * @param downloaded the date the data was downloaded from the host\r\n * @param horz the horizontal tile number\r\n * @param vert the vertical tile number\r\n * @return the id of the Modis raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadModis(File file, ModisProduct product, DataDate date, DataDate updated, int horz, int vert) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified ETo file to the database.\r\n * \r\n * @param file the\r\n * @param date\r\n * @param updated\r\n * @return the id of the ETo raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEto(File file, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified TRMM file to the database.\r\n * \r\n * @param file\r\n * @param date\r\n * @param updated\r\n * @return the id of the TRMM raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadTrmm(File file, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified projected Modis product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param product\r\n * @param date\r\n * @param updated\r\n * @return the id of the projected Modis raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedModis(File file, String project, ModisProduct product, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified projected ETo product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the projected ETo raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedEto(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the projected TRMM product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the TRMM raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadProjectedTrmm(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified ETa product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the ETa raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEta(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified EVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the EVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadEvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDWI5 product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDWI5 raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdwi5(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified NDWI6 product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the NDWI6 raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadNdwi6(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Uploads the specified SAVI product to the database.\r\n * \r\n * @param file\r\n * @param project\r\n * @param date\r\n * @param updated\r\n * @return the id of the SAVI raster in the database\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n int uploadSavi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified feature and places it in the specified file in\r\n * the shapefile.\r\n * \r\n * @param file the location to save the feature\r\n * @param id the id of the feature\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadFeature(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified Modis tile from the database.\r\n * \r\n * @param file\r\n * @param product\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadModis(File file, ModisProduct product, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified ETo raster from the database and saves it to the\r\n * specified file.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEto(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified TRMM raster from the database and saves it to the\r\n * specified file.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadTrmm(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected Modis product from the database.\r\n * \r\n * @param file\r\n * @param product\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedModis(File file, ModisProduct product, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected ETo product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedEto(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified projected TRMM product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadProjectedTrmm(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified ETa product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEta(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified EVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadEvi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdvi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDWI5 product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdwi5(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified NDWI6 product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadNdwi6(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Downloads the specified SAVI product from the database.\r\n * \r\n * @param file\r\n * @param id\r\n * @throws IOException\r\n * @throws SQLException\r\n */\r\n void downloadSavi(File file, int id) throws IOException, SQLException;\r\n\r\n /**\r\n * Returns the id of the MODIS raster for the specified product and date.\r\n * \r\n * @param product\r\n * @param date\r\n * @param horz\r\n * @param vert\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getModisId(ModisProduct product, DataDate date, int horz, int vert) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the ETo for the specified date.\r\n * \r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEtoId(DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the TRMM for the specified date.\r\n * \r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getTrmmId(DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected Modis raster for the specified\r\n * project, product, and date.\r\n * \r\n * @param project\r\n * @param product\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedModisId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected ETo raster for the specified project\r\n * and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedEtoId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the reprojected TRMM raster for the specified project\r\n * and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getReprojectedTrmmId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the ETa raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEtaId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the EVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getEviId(String project, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdviId(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDWI5 raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdwi5Id(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the NDWI6 raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getNdwi6Id(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the SAVI raster for the specified project and date.\r\n * \r\n * @param project\r\n * @param date\r\n * @return the id of the raster or -1 if the raster isn't found\r\n * @throws SQLException\r\n */\r\n int getSaviId(String project, String feature, DataDate date) throws SQLException;\r\n\r\n /**\r\n * Uploads the specified zonal statistics.\r\n * \r\n * @param project\r\n * @param feature\r\n * @param zoneField\r\n * @param zone\r\n * @param date\r\n * @param index\r\n * @param zonalStatistics\r\n */\r\n void uploadZonalStatistic(String project, String feature, String zoneField,\r\n String zone, DataDate date, EnvironmentalIndex index,\r\n ZonalStatistic zonalStatistics) throws SQLException;\r\n\r\n /**\r\n * Returns the id of the zonal statistics for the specified parameters.\r\n * \r\n * @param project\r\n * @param feature\r\n * @param zoneField\r\n * @param zone\r\n * @param date\r\n * @param index\r\n * @return the id or -1 if it is not found\r\n */\r\n int getZonalStatisticId(String project, String feature, String zoneField,\r\n String zone, DataDate date, EnvironmentalIndex index)\r\n throws SQLException;\r\n\r\n /**\r\n * Returns zonal statistics for the specified zonal statistic id.\r\n * \r\n * @param id\r\n * @return zonal statistics\r\n * @throws SQLException\r\n */\r\n ZonalStatistic getZonalStatistic(int id) throws SQLException;\r\n}", "private String computeDigest(boolean paramBoolean, String paramString1, char[] paramArrayOfchar, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7) throws NoSuchAlgorithmException {\n/* 470 */ String str1, str3, str5, str2 = this.params.getAlgorithm();\n/* 471 */ boolean bool = str2.equalsIgnoreCase(\"MD5-sess\");\n/* */ \n/* 473 */ MessageDigest messageDigest = MessageDigest.getInstance(bool ? \"MD5\" : str2);\n/* */ \n/* 475 */ if (bool) {\n/* 476 */ if ((str1 = this.params.getCachedHA1()) == null) {\n/* 477 */ str3 = paramString1 + \":\" + paramString2 + \":\";\n/* 478 */ String str7 = encode(str3, paramArrayOfchar, messageDigest);\n/* 479 */ String str6 = str7 + \":\" + paramString5 + \":\" + paramString6;\n/* 480 */ str1 = encode(str6, (char[])null, messageDigest);\n/* 481 */ this.params.setCachedHA1(str1);\n/* */ } \n/* */ } else {\n/* 484 */ String str = paramString1 + \":\" + paramString2 + \":\";\n/* 485 */ str1 = encode(str, paramArrayOfchar, messageDigest);\n/* */ } \n/* */ \n/* */ \n/* 489 */ if (paramBoolean) {\n/* 490 */ str3 = paramString3 + \":\" + paramString4;\n/* */ } else {\n/* 492 */ str3 = \":\" + paramString4;\n/* */ } \n/* 494 */ String str4 = encode(str3, (char[])null, messageDigest);\n/* */ \n/* */ \n/* 497 */ if (this.params.authQop()) {\n/* 498 */ str5 = str1 + \":\" + paramString5 + \":\" + paramString7 + \":\" + paramString6 + \":auth:\" + str4;\n/* */ }\n/* */ else {\n/* */ \n/* 502 */ str5 = str1 + \":\" + paramString5 + \":\" + str4;\n/* */ } \n/* */ \n/* */ \n/* 506 */ return encode(str5, (char[])null, messageDigest);\n/* */ }", "public static String writeChecksum(File file) throws Exception {\n String chksum = Checksum.getMD5Checksum(file);\n File checksumFile = getChecksumFile(file);\n try (BufferedWriter bw = new BufferedWriter(\n new FileWriter(checksumFile))) {\n bw.write(chksum);\n } catch (IOException e) {\n logger.error(\"Failed to write checksum file for \" + file.getPath(),\n e);\n return chksum;\n }\n String owner = Files.getOwner(checksumFile.toPath()).getName();\n try {\n if (owner.equals(System.getProperty(\"user.name\"))) {\n Files.setPosixFilePermissions(checksumFile.toPath(),\n LocalizationFile.FILE_PERMISSIONS);\n } else {\n logger.info(\"Not changing permissions for \" + checksumFile\n + \" because it is owned by user \" + owner);\n }\n } catch (IOException e) {\n logger.handle(Priority.PROBLEM,\n \"Failed to set permissions on file: \"\n + checksumFile.getAbsolutePath(),\n e);\n }\n return chksum;\n }", "public static void main(String args[]) throws IOException {\n final InputStream is01 = new URL(\n \"http://www.fi.muni.cz/~xklinec/java/file_a.bin\"\n ).openStream();\n \n // 2. Obtain MessageDigest instances. \n // YOUR-CODE-GOES-HERE\n \n // 3. Read InputStream iterativelly.\n // In each iteration update the internal state of the MessageDigest\n // Allocate a temporary buffer to read data to.\n byte[] buffer = new byte[1024];\n\n // Read input stream by chunks.\n int bytesRead = -1;\n while ((bytesRead = is01.read(buffer)) >= 0){\n // buffer now contains bytesRead bytes of data, process it.\t\n // Pay attention to a fact that read() call does not necessarily \n // have to fill the whole buffer with a valid data!\n\n // TODO: do some work here.\n // e.g., update digest state, process with cipher, etc...\n }\n\n // Stream reading finished here.\n // Since bytesRead contains negative value it means there is no more data\n // in the stream.\n \n // 4. Compute final message digest and print it.\n // YOUR-CODE-GOES-HERE\n \n // 5. Find a difference between provided digests and computed.\n // YOUR-CODE-GOES-HERE or do manually ;)\n byte[] expectedMd5 = Hex.decode(\"e64db39c582fe33b35df742e8c23bd55\");\n }", "public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "private void doClickOnButton() {\n EditText et = (EditText) findViewById(R.id.editText);\n String url = et.getText().toString();\n MessageDigest mdEnc = null;\n try{\n mdEnc = MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n mdEnc.update(url.getBytes(), 0, url.length());\n String md5 = new BigInteger(1, mdEnc.digest()).toString(16);\n System.out.println(md5);\n\n try {\n Log.v(\"log1\", \"log1\");\n URL u = new URL(url);\n final URLConnection c = u.openConnection();\n File internal = getFilesDir();\n String test = internal.toString();\n Button b = (Button) findViewById(R.id.button);\n b.setText(test);\n final File f = new File(internal, md5);\n if (f.exists()){\n Log.v(\"log2\", \"log2\");\n FileInputStream is = new FileInputStream(f);\n\n InputStreamReader isr = new InputStreamReader(is);\n\n BufferedReader br = new BufferedReader(isr);\n\n\n StringBuilder sb = new StringBuilder();\n String line;\n while( (line = br.readLine()) != null) {\n sb.append(line);\n }\n String fileString = sb.toString();\n\n Log.v(\"log72\", \"log2\");\n TextView t = (TextView) findViewById(R.id.textView2);\n Log.v(sb.toString(), \"crash\");\n t.setText(Html.fromHtml(fileString));\n }\n else{\n Log.v(\"log3\", \"log3\");\n //Créer le fichier\n f.createNewFile();\n Log.v(\"log7\", \"log7\");\n //récupérer les données de la page via serveur\n //du coup Thread\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n Log.v(\"log4\", \"log4\");\n BufferedReader br = null;\n try {\n Log.v(\"log5\", \"log5\");\n InputStream is = c.getInputStream();\n InputStreamReader isr = new InputStreamReader(is);\n br = new BufferedReader(isr);\n final StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null){\n Log.v(\"log125\", \"log1\");\n sb.append(line);\n line = br.readLine();\n }\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // System.out.println(finalInputLine);\n FileOutputStream fos = null;\n try {\n TextView t = (TextView) findViewById(R.id.textView2);\n Log.v(\"crash\", sb.toString());\n t.setText(Html.fromHtml(sb.toString()));\n Log.v(\"log123\", \"log1\");\n fos = new FileOutputStream(f);\n OutputStreamWriter fosw = new OutputStreamWriter(fos);\n BufferedWriter wr = new BufferedWriter(fosw);\n wr.write(sb.toString());\n Log.v(\"log12\", \"log1\");\n\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n });\n\n\n }\n catch (IOException e) {\n Log.v(\"log6\", \"log6\");\n e.printStackTrace();\n }\n\n\n };\n });\n t.start();\n //paf on récupère\n //poof on met ça dans un fichier\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static String encryptMD5File2String(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File2String(file);\n }", "void downloadEta(File file, int id) throws IOException, SQLException;", "protected int DoLoadMissingFile(java.sql.Connection pConnection, ChannelSftp channelSftp, int pFtpID, String pReceiveFrom, String pDirReceive, int pRemoteFileSplitByDay, int pZipAfterDownload, int pRenameAfterDownload, int pSeqFrom, int pSeqTo, int pRenameType, String pNewPreFix, String pNewExt, String pCurrMissedDir) throws Exception\n {\n \tSimpleDateFormat sdf = new SimpleDateFormat(\"EEE MMM dd HH:mm:ss zzz yyyy\");\n \tSimpleDateFormat sdfComparator = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat sdf2 = new SimpleDateFormat(\"yyyyMMdd\");\n File file = null;\n File fileRename = null;\n String mSourceName = null;\n String mDestinationName = null;\n int mRetValue;\n String mReceiveFrom = null;\n String mNewFileName = null;\n IOUtils IOUtil = new IOUtils();\n ResultSet rs = null;\n Statement stmt1 = mConnection.createStatement();\n SmartZip zip = new SmartZip();\n Statement stmt = null;\n String mSQL = \"select distinct a.current_dir_missed,\" + \"to_char(sysdate-b.time_check,'yyyymmddhh24miss') min_date_check \" + \"from missed_file a,data_param b \" + \"where a.status=0 and a.switch_id=b.id and b.id=\" + pFtpID;\n ResultSet rs1 = stmt1.executeQuery(mSQL);\n try\n {\n mReceiveFrom = pReceiveFrom;\n \n channelSftp.cd(pReceiveFrom);\n\n //FTPFile[] listings = pFtp.dirDetails(\"\"); //Duyet cac thu muc tren ftp\n Vector<LsEntry> fileList = channelSftp.ls(pReceiveFrom);\n for (LsEntry contain : fileList)\n {\n if (contain.getAttrs().isDir())\n {\n if (!contain.getFilename().startsWith(\".\") )\n {\n if (pRemoteFileSplitByDay == 1)\n {\n\n if (Global.isNumeric(contain.getFilename()))\n {\n while (rs1.next() && miThreadCommand != THREAD_STOP)\n {\n if ((rs1.getString(\"current_dir_missed\") != null) && ((Integer.parseInt(rs1.getString(\"current_dir_missed\"))) == (Integer.parseInt(contain.getFilename()))))\n {\n if (\"/\".compareTo(pReceiveFrom.substring(pReceiveFrom.length() - 1)) != 0)\n {\n mReceiveFrom = pReceiveFrom + \"/\" + contain.getFilename();\n }\n else\n {\n mReceiveFrom = pReceiveFrom + contain.getFilename();\n }\n \n if (Long.parseLong(sdfComparator.format(sdf.parse(contain.getAttrs().getMtimeString()))) > Long.parseLong(rs1.getString(\"min_date_check\")))\n {\n writeLogFile(\" - Subdirectory listing: \" + contain.getFilename());\n if (DoLoadMissingFile(pConnection, channelSftp, pFtpID, mReceiveFrom, pDirReceive, pRemoteFileSplitByDay, pZipAfterDownload, pRenameAfterDownload, pSeqFrom, pSeqTo, pRenameType, pNewPreFix, pNewExt, contain.getFilename()) != 0)\n {\n return ( -1);\n }\n }\n }\n\n }\n\n }\n }\n }\n\n }\n else\n {\n if (pCurrMissedDir != null && !pCurrMissedDir.equals(\"\"))\n {\n mSQL = \"select a.id,a.file_name,a.current_dir_missed,\" + \"b.id,b.header_file_send,b.remote_getfile_dir,\" + \"b.local_getfile_dir,b.remote_split_file_by_day,\" + \"b.local_split_file_by_day,\" + \"to_char(sysdate-b.time_check,'yyyymmddhh24miss') min_date_check \" + \"from missed_file a,data_param b \" + \"where a.status=0 and a.switch_id=b.id and b.id=\" + pFtpID + \"and a.current_dir_missed='\" + pCurrMissedDir + \"'\";\n }\n else\n {\n mSQL = \"select a.id,a.file_name,a.current_dir_missed,\" + \"b.id,b.header_file_send,b.remote_getfile_dir,\" + \"b.local_getfile_dir,b.remote_split_file_by_day,\" + \"b.local_split_file_by_day,\" + \"to_char(sysdate-b.time_check,'yyyymmddhh24miss') min_date_check \" + \"from missed_file a,data_param b \" + \"where a.status=0 and a.switch_id=b.id and b.id=\" + pFtpID;\n }\n\n stmt = mConnection.createStatement();\n rs = stmt.executeQuery(mSQL);\n\n // Duyet cac file bao thieu\n while (rs.next() && miThreadCommand != THREAD_STOP)\n {\n\n // Kiem tra gia tri Seq cua file trong bang missed_file co trung voi gia tri Seq cua\n // mot file tren FTP server khong\n String seqFileStr = \"\";\n String seqMissedFileStr = \"\";\n if (pRenameAfterDownload == 1)\n {\n if (pRenameType == 1)\n {\n seqFileStr = contain.getFilename().substring(pSeqFrom - 1, pSeqTo - 1);\n seqMissedFileStr = rs.getString(\"file_name\").substring(pSeqFrom - 1, pSeqTo - 1);\n }\n else\n {\n seqFileStr = contain.getFilename().substring(pSeqFrom, pSeqTo);\n seqMissedFileStr = rs.getString(\"file_name\").substring(pSeqFrom, pSeqTo);\n }\n\n }\n else\n {\n if (pSeqFrom >= 0 && pSeqTo > 0)\n {\n try\n {\n seqFileStr = contain.getFilename().substring(pSeqFrom - 1, pSeqTo - 1);\n seqMissedFileStr = rs.getString(\"file_name\").substring(pSeqFrom - 1, pSeqTo - 1);\n }\n catch (Exception ex)\n {\n seqFileStr = \"\";\n seqMissedFileStr = \"\";\n }\n }\n }\n boolean isMissedFile = false;\n if (!seqFileStr.equals(\"\") && !seqMissedFileStr.equals(\"\") && seqFileStr.equalsIgnoreCase(seqMissedFileStr))\n {\n String currMissedDir = (rs.getString(\"current_dir_missed\") == null ? \"\" : rs.getString(\"current_dir_missed\"));\n if (currMissedDir.length() > 0 && Global.isNumeric(currMissedDir))\n {\n if (sdf2.format(sdf.parse(contain.getAttrs().getMtimeString())).equals(currMissedDir))\n {\n isMissedFile = true;\n }\n }\n }\n // Kiem tra hoac ten file, hoac gia tri Seq cua ten file tren FTP Server\n // co trung voi ten hoac gia tri Seq cua file trong bang missed_file.\n if ((rs.getString(\"file_name\").toLowerCase().compareTo(contain.getFilename().toLowerCase()) == 0) || isMissedFile)\n {\n if (sdf.parse(contain.getAttrs().getMtimeString()).compareTo(rs1.getDate(\"min_date_check\")) > 0)\n {\n mSourceName = IOUtil.FillPath(pReceiveFrom, Global.mSeparate) + contain.getFilename(); //+ rs.getString(\"file_name\");\n if (Global.mSeparate.compareTo(pDirReceive.substring(pDirReceive.length() - 1)) == 0)\n {\n if (rs.getInt(\"local_split_file_by_day\") == 0)\n {\n mDestinationName = pDirReceive;\n }\n else\n {\n mDestinationName = pDirReceive + rs.getString(\"current_dir_missed\") + Global.mSeparate;\n }\n }\n else if (rs.getInt(\"local_split_file_by_day\") == 0)\n {\n mDestinationName = pDirReceive + Global.mSeparate;\n }\n else\n {\n mDestinationName = pDirReceive + Global.mSeparate + rs.getString(\"current_dir_missed\") + Global.mSeparate;\n }\n\n IOUtil.forceFolderExist(mDestinationName);\n IOUtil.chmod(new File(mDestinationName), \"750\");\n file = new File(mDestinationName);\n if (file.exists() != true)\n {\n writeLogFile(\"The system cannot find the path specified : '\" + mDestinationName + \"'\");\n return ( -1);\n }\n writeLogFile(\" .Loading file \" + mSourceName + \" - Size : \" + contain.getAttrs().getSize() + \" bytes.\");\n channelSftp.get(mSourceName, mDestinationName + \"cdr.tmp\");\n file = new File(mDestinationName + \"cdr.tmp\");\n if (pRenameAfterDownload == 1)\n {\n if (pRenameType == 1) // HexToDec\n {\n mNewFileName = pNewPreFix + Global.Format(Global.Hex2Dec(contain.getFilename().substring(pSeqFrom - 1, pSeqTo - 1)), Global.rpad(\"\", pSeqTo - pSeqFrom + 1, \"0\")) + \".\" + pNewExt;\n }\n else\n {\n mNewFileName = pNewPreFix + Global.Format(Integer.parseInt(contain.getFilename().substring(pSeqFrom, pSeqTo)), Global.rpad(\"\", pSeqTo - pSeqFrom, \"0\")) + \".\" + pNewExt;\n }\n }\n else\n {\n mNewFileName = contain.getFilename();\n }\n\n fileRename = new File(mDestinationName + mNewFileName);\n file.renameTo(fileRename);\n fileRename.setLastModified(sdf.parse(contain.getAttrs().getMtimeString()).getTime());\n //.getFileDateLongTime());\n\n if (fileRename.length() != contain.getAttrs().getSize())\n {\n writeLogFile(\" .File downloaded error.Size of file downloaded (\" + fileRename.length() + \") not equal file origination.\");\n return (0);\n }\n IOUtil.chmod(fileRename, \"750\");\n if (pZipAfterDownload == 1)\n {\n\n zip.ZipFile(fileRename.getAbsolutePath(), fileRename.getAbsolutePath() + \".zip\");\n fileRename = new File(fileRename.getAbsolutePath() + \".zip\");\n //fileRename.setLastModified(listLoad\n //.getFileDateLongTime());\n fileRename.setLastModified(sdf.parse(contain.getAttrs().getMtimeString()).getTime());\n IOUtil.chmod(fileRename, \"750\");\n IOUtil.deleteFile(mDestinationName + mNewFileName);\n }\n\n mSQL = \"update import_header set current_dir = '\" + rs.getString(\"current_dir_missed\") + \"',status=\" + Global.StateFileFtpOK + \" where status in (\" + Global.StateFileFtpOK + \",\" + Global.StateConvertedError + \")\" + \" and file_name='\" + contain.getFilename() + \"' and ftp_id=\" + pFtpID; //+ rs.getString(\"file_name\")\n mRetValue = Global.ExecuteSQL(pConnection, mSQL);\n if (mRetValue == 0)\n {\n \t\n \tDate createDate = sdf.parse(contain.getAttrs().getMtimeString());\n \tString createDateStr = sdfComparator.format(createDate);\n mSQL = \"insert into import_header(status,ftp_id,\" + \"file_name,file_size,date_getfile,current_dir,\" + \"date_createfile) values(\" + Global.StateFileFtpOK + \",\" + pFtpID + \",'\" + contain.getFilename() + \"',\" + contain.getAttrs().getSize() + \",sysdate,'\" + (rs.getString(\"current_dir_missed\") == null ? \"\" : rs.getString(\"current_dir_missed\")) + \"','\" + createDateStr + \"')\"; //+ rs.getString(\"file_name\")\n Global.ExecuteSQL(pConnection, mSQL);\n }\n mSQL = \"update missed_file set status=1,date_getfile=sysdate \" + \"where id=\" + rs.getString(\"id\");\n Global.ExecuteSQL(pConnection, mSQL);\n pConnection.commit();\n writeLogFile(\" .File \" + contain.getFilename() + \" had been loaded again successful.\");\n \n \n }\n }\n\n }\n rs.close();\n stmt.close();\n }\n }\n fileList = null;\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n throw ex;\n }\n finally\n {\n try\n {\n IOUtil = null;\n rs1.close();\n rs1 = null;\n if (rs != null)\n {\n rs.close();\n }\n rs = null;\n stmt.close();\n stmt = null;\n stmt1.close();\n stmt1 = null;\n \n }\n catch (Exception e)\n {\n }\n }\n return (0);\n }", "private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }", "public String getMechanismName() {\n return \"DIGEST-MD5\";\n }", "public abstract long NewFileNumber();", "public Object invoke() {\n \t\tString plaintxt = plaintext;\n \t\treturn md5 != null ? md5.digest( plaintxt != null ? plaintxt.getBytes() : null ) : null;\n }" ]
[ "0.6212431", "0.60990036", "0.60974824", "0.6008163", "0.59467214", "0.5917201", "0.59007597", "0.58984834", "0.5815862", "0.5800848", "0.577037", "0.5753873", "0.57352155", "0.57084364", "0.5667523", "0.5596627", "0.55251116", "0.5517739", "0.54924494", "0.5477286", "0.54322124", "0.540637", "0.53656006", "0.5331421", "0.5307722", "0.52940524", "0.5279772", "0.5267703", "0.5255072", "0.51939803", "0.5135025", "0.5110462", "0.5105201", "0.50799507", "0.5075762", "0.50659925", "0.505374", "0.49911353", "0.49520218", "0.4950005", "0.4938478", "0.4922312", "0.49208283", "0.49154735", "0.49089998", "0.49065885", "0.48949003", "0.489382", "0.48860365", "0.48841354", "0.48781526", "0.4870503", "0.4850452", "0.4840234", "0.483107", "0.4822195", "0.4818701", "0.481722", "0.4813382", "0.48084623", "0.47877166", "0.47858763", "0.4778113", "0.4775503", "0.47746626", "0.4774237", "0.47722575", "0.47589928", "0.47589928", "0.47561532", "0.475319", "0.4752795", "0.4744042", "0.47404632", "0.47297043", "0.4715785", "0.47135174", "0.47078243", "0.46949053", "0.4693715", "0.46806827", "0.4668523", "0.46626282", "0.46493366", "0.4647914", "0.46467942", "0.46427923", "0.46370712", "0.46343723", "0.46275336", "0.46190715", "0.46079206", "0.4603627", "0.46011743", "0.46001616", "0.45925736", "0.45894742", "0.4579525", "0.4559108", "0.4554637" ]
0.52128446
29
Generated Interface for IHC_JobDataChange
public interface I_IHC_JobDataChange { /** TableName=IHC_JobDataChange */ public static final String Table_Name = "IHC_JobDataChange"; /** AD_Table_ID=1100135 */ public static final int Table_ID = MTable.getTable_ID(Table_Name); KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); /** AccessLevel = 3 - Client - Org */ BigDecimal accessLevel = BigDecimal.valueOf(3); /** Load Meta Data */ /** Column name AD_Client_ID */ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; /** Get Client. * Client/Tenant for this installation. */ public int getAD_Client_ID(); /** Column name AD_Org_ID */ public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; /** Set Organization. * Organizational entity within client */ public void setAD_Org_ID (int AD_Org_ID); /** Get Organization. * Organizational entity within client */ public int getAD_Org_ID(); /** Column name BPJSRegistrationDate */ public static final String COLUMNNAME_BPJSRegistrationDate = "BPJSRegistrationDate"; /** Set BPJS Registration Date */ public void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate); /** Get BPJS Registration Date */ public Timestamp getBPJSRegistrationDate(); /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; /** Get Created. * Date this record was created */ public Timestamp getCreated(); /** Column name CreatedBy */ public static final String COLUMNNAME_CreatedBy = "CreatedBy"; /** Get Created By. * User who created this records */ public int getCreatedBy(); /** Column name Description */ public static final String COLUMNNAME_Description = "Description"; /** Set Description. * Optional short description of the record */ public void setDescription (String Description); /** Get Description. * Optional short description of the record */ public String getDescription(); /** Column name DescriptionNew */ public static final String COLUMNNAME_DescriptionNew = "DescriptionNew"; /** Set Description New */ public void setDescriptionNew (String DescriptionNew); /** Get Description New */ public String getDescriptionNew(); /** Column name HC_Compensation1 */ public static final String COLUMNNAME_HC_Compensation1 = "HC_Compensation1"; /** Set Compensation 1 */ public void setHC_Compensation1 (BigDecimal HC_Compensation1); /** Get Compensation 1 */ public BigDecimal getHC_Compensation1(); /** Column name HC_Compensation2 */ public static final String COLUMNNAME_HC_Compensation2 = "HC_Compensation2"; /** Set Compensation 2 */ public void setHC_Compensation2 (BigDecimal HC_Compensation2); /** Get Compensation 2 */ public BigDecimal getHC_Compensation2(); /** Column name HC_Compensation3 */ public static final String COLUMNNAME_HC_Compensation3 = "HC_Compensation3"; /** Set Compensation 3 */ public void setHC_Compensation3 (BigDecimal HC_Compensation3); /** Get Compensation 3 */ public BigDecimal getHC_Compensation3(); /** Column name HC_Compensation4 */ public static final String COLUMNNAME_HC_Compensation4 = "HC_Compensation4"; /** Set Compensation 4 */ public void setHC_Compensation4 (BigDecimal HC_Compensation4); /** Get Compensation 4 */ public BigDecimal getHC_Compensation4(); /** Column name HC_EffectiveSeq */ public static final String COLUMNNAME_HC_EffectiveSeq = "HC_EffectiveSeq"; /** Set Effective Sequence */ public void setHC_EffectiveSeq (int HC_EffectiveSeq); /** Get Effective Sequence */ public int getHC_EffectiveSeq(); /** Column name HC_Employee_ID */ public static final String COLUMNNAME_HC_Employee_ID = "HC_Employee_ID"; /** Set Employee Data */ public void setHC_Employee_ID (int HC_Employee_ID); /** Get Employee Data */ public int getHC_Employee_ID(); public I_HC_Employee getHC_Employee() throws RuntimeException; /** Column name HC_EmployeeGrade_ID */ public static final String COLUMNNAME_HC_EmployeeGrade_ID = "HC_EmployeeGrade_ID"; /** Set Employee Grade */ public void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID); /** Get Employee Grade */ public int getHC_EmployeeGrade_ID(); public I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException; /** Column name HC_EmployeeGrade2_ID */ public static final String COLUMNNAME_HC_EmployeeGrade2_ID = "HC_EmployeeGrade2_ID"; /** Set Employee Grade To */ public void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID); /** Get Employee Grade To */ public int getHC_EmployeeGrade2_ID(); public I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException; /** Column name HC_EmployeeJob_ID */ public static final String COLUMNNAME_HC_EmployeeJob_ID = "HC_EmployeeJob_ID"; /** Set Employee Job Data */ public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID); /** Get Employee Job Data */ public int getHC_EmployeeJob_ID(); public I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException; /** Column name HC_Job_ID */ public static final String COLUMNNAME_HC_Job_ID = "HC_Job_ID"; /** Set Job */ public void setHC_Job_ID (int HC_Job_ID); /** Get Job */ public int getHC_Job_ID(); public I_HC_Job getHC_Job() throws RuntimeException; /** Column name HC_JobAction */ public static final String COLUMNNAME_HC_JobAction = "HC_JobAction"; /** Set Job Action */ public void setHC_JobAction (String HC_JobAction); /** Get Job Action */ public String getHC_JobAction(); /** Column name HC_JobDataChange_ID */ public static final String COLUMNNAME_HC_JobDataChange_ID = "HC_JobDataChange_ID"; /** Set Job Data Change */ public void setHC_JobDataChange_ID (int HC_JobDataChange_ID); /** Get Job Data Change */ public int getHC_JobDataChange_ID(); public I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException; /** Column name HC_Manager_ID */ public static final String COLUMNNAME_HC_Manager_ID = "HC_Manager_ID"; /** Set Manager Name */ public void setHC_Manager_ID (int HC_Manager_ID); /** Get Manager Name */ public int getHC_Manager_ID(); public I_HC_Employee getHC_Manager() throws RuntimeException; /** Column name HC_ManagerTo_ID */ public static final String COLUMNNAME_HC_ManagerTo_ID = "HC_ManagerTo_ID"; /** Set Manager To ID */ public void setHC_ManagerTo_ID (int HC_ManagerTo_ID); /** Get Manager To ID */ public int getHC_ManagerTo_ID(); public I_HC_Employee getHC_ManagerTo() throws RuntimeException; /** Column name HC_Org_ID */ public static final String COLUMNNAME_HC_Org_ID = "HC_Org_ID"; /** Set HC Organization */ public void setHC_Org_ID (int HC_Org_ID); /** Get HC Organization */ public int getHC_Org_ID(); public I_HC_Org getHC_Org() throws RuntimeException; /** Column name HC_Org2_ID */ public static final String COLUMNNAME_HC_Org2_ID = "HC_Org2_ID"; /** Set HC Organization To */ public void setHC_Org2_ID (int HC_Org2_ID); /** Get HC Organization To */ public int getHC_Org2_ID(); public I_HC_Org getHC_Org2() throws RuntimeException; /** Column name HC_PayGroup_ID */ public static final String COLUMNNAME_HC_PayGroup_ID = "HC_PayGroup_ID"; /** Set Payroll Group */ public void setHC_PayGroup_ID (int HC_PayGroup_ID); /** Get Payroll Group */ public int getHC_PayGroup_ID(); public I_HC_PayGroup getHC_PayGroup() throws RuntimeException; /** Column name HC_PreviousJob_ID */ public static final String COLUMNNAME_HC_PreviousJob_ID = "HC_PreviousJob_ID"; /** Set Job Sekarang */ public void setHC_PreviousJob_ID (int HC_PreviousJob_ID); /** Get Job Sekarang */ public int getHC_PreviousJob_ID(); public I_HC_Job getHC_PreviousJob() throws RuntimeException; /** Column name HC_Reason_ID */ public static final String COLUMNNAME_HC_Reason_ID = "HC_Reason_ID"; /** Set HC Reason */ public void setHC_Reason_ID (int HC_Reason_ID); /** Get HC Reason */ public int getHC_Reason_ID(); public I_HC_Reason getHC_Reason() throws RuntimeException; /** Column name HC_Status */ public static final String COLUMNNAME_HC_Status = "HC_Status"; /** Set HC Status */ public void setHC_Status (String HC_Status); /** Get HC Status */ public String getHC_Status(); /** Column name HC_WorkEndDate */ public static final String COLUMNNAME_HC_WorkEndDate = "HC_WorkEndDate"; /** Set Work End Date */ public void setHC_WorkEndDate (Timestamp HC_WorkEndDate); /** Get Work End Date */ public Timestamp getHC_WorkEndDate(); /** Column name HC_WorkPeriodDate */ public static final String COLUMNNAME_HC_WorkPeriodDate = "HC_WorkPeriodDate"; /** Set WorkPeriodDate */ public void setHC_WorkPeriodDate (String HC_WorkPeriodDate); /** Get WorkPeriodDate */ public String getHC_WorkPeriodDate(); /** Column name HC_WorkStartDate */ public static final String COLUMNNAME_HC_WorkStartDate = "HC_WorkStartDate"; /** Set WorkStartDate */ public void setHC_WorkStartDate (Timestamp HC_WorkStartDate); /** Get WorkStartDate */ public Timestamp getHC_WorkStartDate(); /** Column name HC_WorkStartDate2 */ public static final String COLUMNNAME_HC_WorkStartDate2 = "HC_WorkStartDate2"; /** Set Work Start Date Baru */ public void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2); /** Get Work Start Date Baru */ public Timestamp getHC_WorkStartDate2(); /** Column name IHC_JobDataChange_ID */ public static final String COLUMNNAME_IHC_JobDataChange_ID = "IHC_JobDataChange_ID"; /** Set IHC_JobDayaChange */ public void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID); /** Get IHC_JobDayaChange */ public int getIHC_JobDataChange_ID(); /** Column name IHC_JobDataChange_UU */ public static final String COLUMNNAME_IHC_JobDataChange_UU = "IHC_JobDataChange_UU"; /** Set IHC_JobDataChange_UU */ public void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU); /** Get IHC_JobDataChange_UU */ public String getIHC_JobDataChange_UU(); /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; /** Set Active. * The record is active in the system */ public void setIsActive (boolean IsActive); /** Get Active. * The record is active in the system */ public boolean isActive(); /** Column name IsCancelled */ public static final String COLUMNNAME_IsCancelled = "IsCancelled"; /** Set Cancelled. * The transaction was cancelled */ public void setIsCancelled (boolean IsCancelled); /** Get Cancelled. * The transaction was cancelled */ public boolean isCancelled(); /** Column name NomorSK */ public static final String COLUMNNAME_NomorSK = "NomorSK"; /** Set Nomor SK */ public void setNomorSK (String NomorSK); /** Get Nomor SK */ public String getNomorSK(); /** Column name NomorSK2 */ public static final String COLUMNNAME_NomorSK2 = "NomorSK2"; /** Set Nomor SK Baru */ public void setNomorSK2 (String NomorSK2); /** Get Nomor SK Baru */ public String getNomorSK2(); /** Column name OriginalServiceData */ public static final String COLUMNNAME_OriginalServiceData = "OriginalServiceData"; /** Set Original Service Date */ public void setOriginalServiceData (Timestamp OriginalServiceData); /** Get Original Service Date */ public Timestamp getOriginalServiceData(); /** Column name Processed */ public static final String COLUMNNAME_Processed = "Processed"; /** Set Processed. * The document has been processed */ public void setProcessed (boolean Processed); /** Get Processed. * The document has been processed */ public boolean isProcessed(); /** Column name SeqNo */ public static final String COLUMNNAME_SeqNo = "SeqNo"; /** Set Sequence. * Method of ordering records; lowest number comes first */ public void setSeqNo (int SeqNo); /** Get Sequence. * Method of ordering records; lowest number comes first */ public int getSeqNo(); /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; /** Get Updated. * Date this record was updated */ public Timestamp getUpdated(); /** Column name UpdatedBy */ public static final String COLUMNNAME_UpdatedBy = "UpdatedBy"; /** Get Updated By. * User who updated this records */ public int getUpdatedBy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHC_JobDataChange_ID (int HC_JobDataChange_ID);", "public interface IJobChangeEvent {\n \t/**\n \t * The amount of time in milliseconds to wait after scheduling the job before it \n \t * should be run, or <code>-1</code> if not applicable for this type of event. \n \t * This value is only applicable for the <code>scheduled</code> event.\n \t * \n \t * @return the delay time for this event\n \t */\n \tpublic long getDelay();\n \n \t/**\n \t * The job on which this event occurred.\n \t * \n \t * @return the job for this event\n \t */\n \tpublic Job getJob();\n \n \t/**\n \t * The result returned by the job's run method, or <code>null</code> if\n \t * not applicable. This value is only applicable for the <code>done</code> event.\n \t * \n \t * @return the status for this event\n \t */\n \tpublic IStatus getResult();\n }", "public int getHC_JobDataChange_ID();", "public interface WorkChangesHandler {\n\t\t/**\n\t\t * Called when new Jobs are detected during reconciliation. This method \n\t\t * is called once, when the reconciliation finishes. \n\t\t * \n\t\t * @param newJobsMap - map containing new jobs\n\t\t */\n\t\tpublic void onNewWork(Map<DuccId, IDuccWork> newWorkMap);\n\t\t/**\n\t\t * Called when removed Jobs are detected during reconciliation. This method \n\t\t * is called once, when the reconciliation finishes. \n\t\t * \n\t\t * @param removedJobsMap - map containing removed jobs\n\t\t */\n\t\tpublic void onRemovedWork(Map<DuccId, IDuccWork> removedWorkMap);\n\t\t\n\t\t/**\n\t\t * Called when a Job in both Job Maps has a different internal state. That\n\t\t * can be due to status change, etc. This method is called once per each\n\t\t * Job that has a different state in both Maps. \n\t\t * \n\t\t * @param left - Job with a new internal state\n\t\t * @param right - local Job which must be sync'ed with left\n\t\t */\n\t\tpublic void onWorkChanges(IDuccWork left, IDuccWork right);\n\t}", "public interface ViewOwn_Job_CV_Interface {\n void reloadChangedData(Object object);\n}", "public JobChangeDTO jobChange(final JobChangeDTO jobChangeDTO) throws ApplicationCustomException;", "public ChangeData()\r\n\t\t{\r\n\t\t}", "@DISPID(-2147412072)\n @PropPut\n void ondatasetchanged(\n java.lang.Object rhs);", "JobResponse.Update update();", "public interface JobInterface {\n\n public Integer getId();\n\n public void setId(Integer id);\n\n public String getType();\n\n public void setType(String type);\n\n public String getInformation();\n\n public void setInformation(String information);\n\n public Date getStartDate();\n\n public void setStartDate(Date startDate);\n\n public Date getEndDate();\n\n public void setEndDate(Date endDate);\n\n public String getName();\n\n public void setName(String name);\n\n public int getVersion();\n\n public void setVersion(int version);\n\n @Override\n public int hashCode();\n\n @Override\n public boolean equals(Object object);\n\n @Override\n public String toString();\n\n}", "public interface WorkProcessChangesHandler {\n\t\t/**\n\t\t * Called when new processes are added to existing Jobs. This method \n\t\t * can be called multiple times. It is called for each Job whose process(es)\n\t\t * were added. \n\t\t * \n\t\t * @param newJobProcessMap - Map containing new processes\n\t\t * @param newJobProcessMapToUpdate - local Process Map to update\n\t\t */\n\t\tpublic void onNewWorkProcesses(IDuccWork work, ICommandLine commandLine, Map<DuccId, IDuccProcess> newWorkProcessMap, Map<DuccId, IDuccProcess> newWorkProcessMapToUpdate);\n\t\t/**\n\t\t * Called when removed processes are detected. This method can be called \n\t\t * multiple times. It is called for each Job whose process(es) where removed.\n\t\t * \n\t\t * @param removedJobProcessMap - Map containing removed processes \n\t\t * @param newJobProcessMapToUpdate - local Process Map to update\n\t\t */\n\t\tpublic void onRemovedWorkProcesses(DuccId jobId, Map<DuccId, IDuccProcess> removedWorkProcessMap, Map<DuccId, IDuccProcess> newWorkProcessMapToUpdate);\n\t\t/**\n\t\t * Called when a Process in both Process Maps has a different internal state. That\n\t\t * can be due to assigned PID, status, etc. This method is called once per each\n\t\t * process that has a different state in both Maps. \n\t\t * \n\t\t * @param left - Process with a new internal state\n\t\t * @param right - local Process which must be sync'ed with left\n\t\t */\n\t\tpublic void onProcessChanges(IDuccWork job, IDuccProcess left, IDuccProcess right);\n\t}", "public interface Job {\n\n /** unique id for this job that is used as a reference in the service methods */\n String getId();\n\n /** job executor identification that has acquired this job and is going to execute it */\n String getLockOwner();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null. */\n Date getDueDate();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null.\n * @deprecated call {@link #getDueDate()} instead */\n @Deprecated\n Date getDuedate();\n\n /** exception that occurred during the last execution of this job. The transaction \n * of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n String getException();\n\n /** number of retries left. This is only decremented when an exception occurs during job \n * execution. The transaction of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n int getRetries();\n\n /** indicates if this job should be executed separate from any other job \n * in the same process instance */\n boolean isExclusive();\n\n /** the related execution */\n Execution getExecution();\n\n /** the related process instance */\n Execution getProcessInstance();\n\n Date getLockExpirationTime();\n\n}", "public void dataChanged(DataChangeEvent e) {\n\t\t\t}", "protected abstract void updateFaxJobFromInputDataImpl(T inputData,FaxJob faxJob);", "public void setJobObserver(JobObserver jO) {\n\r\n\t}", "public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);", "@Override\n public void onDataChanged() {\n\n }", "public ObservableList<Job> getJobData() {\n return jobData;\n }", "public void onDataChanged();", "public void onDataChanged(){}", "public void setJob_Customer(CustomerDataObject job_Customer) {\r\n this.job_Customer = job_Customer;\r\n }", "public static interface DataChangeObserver {\n /**\n * Called when data has been changed.\n */\n void onDataChanged();\n /**\n * Called when data has been cleared.\n */\n void onDataCleared();\n /**\n * Called when usage reports can be reported to local indexing service.\n */\n void startReportingTask();\n /**\n * Called when usage reports can't be reported to local indexing service any more.\n */\n void stopReportingTask();\n }", "public interface OnQueueDataChangedListener {\n\n void onQueueDataChanged();\n }", "@Override\n public void onDataChanged() {\n }", "@Override\n public void onDataChanged() {\n }", "public void onProcessChanges(IDuccWork job, IDuccProcess left, IDuccProcess right);", "@Override\n\tpublic void DataAcquisitionObjectEvent(Interface.DataAcquisitionObjectEvent e,String data) {\n\t\t\n\t}", "public void dataUpdateEvent();", "@Override\n protected void onDataChanged() {\n }", "public interface IUploadJobNeedReplyDataListener {\n public void finishAllJobNeedReplyUpload();\n public void finishJobNeedReplyUpload(int status);\n}", "public Dsjob getJobObject() { return job; }", "void onDataChanged();", "public interface IVersionUpdateListener extends IBaseDataListener {\n void onSuccess(VersionUpdateDataBean data);\n}", "public interface MemoryJobInstance<ID> extends JobInstance<ID> {\n\n /**\n * Sets the given id.\n *\n * @param id The id\n */\n void setId(ID id);\n\n /**\n * Returns the version.\n *\n * @return the version\n */\n long getVersion();\n\n /**\n * Sets the given version.\n *\n * @param version The version\n */\n void setVersion(long version);\n\n}", "public void setJob(Job jobNum){\n job = jobNum;\n }", "@Override\r\n\tpublic void addJobEventListener(JobEventListener eventListener) {\n\r\n\t}", "@Override\n public void changedData(final CModule module, final byte[] data) {\n }", "@Override\n\t@Transactional\n\tpublic Job updateJob(Job job) {\n\t\treturn null;\n\t}", "public interface OnModelDataChangeListener {\n public void onChange();\n}", "public interface BlobChangingCallback {\n\n /**\n * Informs the listener that a blob has changed and is ready to update and replace a localized blob that has been marked as tied to the\n * life cycle of the worker process.\n *\n * <p>If `go.getLatch()` is never called before the method completes it is assumed that the listener is good with the blob changing.\n *\n * @param assignment the assignment this resource and callback are registered with.\n * @param port the port that this resource and callback are registered with.\n * @param blob the blob that is going to change.\n * @param go a way to indicate if the listener is ready for the resource to change.\n */\n void blobChanging(LocalAssignment assignment, int port, LocallyCachedBlob blob, GoodToGo go);\n}", "public void onDataChanged(IData data) {\r\n\t this.data = data;\r\n\t repaint();\r\n\t}", "@DISPID(-2147412072)\n @PropGet\n java.lang.Object ondatasetchanged();", "public interface DataObserver {\n }", "public void updateJobCommand(JobCommand jobCommand) throws DatabaseException, IllegalArgumentException;", "@Override\n public void handleDataChange(String dataPath, Object data) throws Exception\n {\n System.out.println(\"TestZKPropertyStore.testZKPropertyStore().new IZkDataListener() {...}.handleDataChange()\");\n }", "@Override\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tmHandler.sendEmptyMessage(1);\n\t\t\tLog.i(\"message\", \"dataChange\");\n\t\t\tsuper.onChange(selfChange);\n\t\t}", "public void getData() {\n if ( jobEntry.getName() != null ) {\n wName.setText( jobEntry.getName() );\n }\n wIncType.setText(jobEntry.getIncType());\n wIncField.setText(jobEntry.getIncField());\n wDataFormat.setText(jobEntry.getDataFormat());\n wStartValue.setText(jobEntry.getStartValue());\n wEndValue.setText(jobEntry.getEndValue());\n\n wName.selectAll();\n wName.setFocus();\n }", "@Override\n public Job getJobPOJO() {\n return jobUnproxied;\n }", "public void onDataChanged(IData data) {\r\n setData(data);\r\n }", "@Override\n public void handleNotification(final Notification notification, final Object handback)\n {\n if (!(notification instanceof JobNotification)) return;\n JobNotification notif = (JobNotification) notification;\n if (traceEnabled) log.trace(\"driver \" + driverName + \" received notification: \" + notif);\n jobDataPanel.handleNotification(driverName, notif);\n }", "public void setJob_TypeOfWork(ComboBoxDataObject job_TypeOfWork) {\r\n this.job_TypeOfWork = job_TypeOfWork;\r\n }", "@Override\n public void onDataUpdatedCb(Object response_data) {\n \n }", "public void updateFaxJobFromInputData(T inputData,FaxJob faxJob)\n {\n if(!this.initialized)\n {\n throw new FaxException(\"Fax bridge not initialized.\");\n }\n \n //get fax job\n this.updateFaxJobFromInputDataImpl(inputData,faxJob);\n }", "public interface JungleDataKeeper {\n void keepData(String identifier, int iteration, double biomass);\n}", "@Override\n\t\t\t\t\tpublic void changed(ObservableValue arg0, Object arg1,\n\t\t\t\t\t\t\tObject arg2) {\n\t\t\t\t\t\tif (arg2.toString() == \"报溢单\") {// 报溢单\n\t\t\t\t\t\t\tOverflow de = new Overflow();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tde.display(Job, name, id);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (arg2.toString() == \"报损单\") {// 报损单\n\t\t\t\t\t\t\tloss l = new loss();\n\t\t\t\t\t\t\tl.display(Job, name, id);\n\t\t\t\t\t\t} else if (arg2.toString() == \"报警单\") {// 报警单\n\t\t\t\t\t\t\tAlarm a = new Alarm();\n\t\t\t\t\t\t\ta.display(Job, name, id);\n\t\t\t\t\t\t} else if (arg2.toString() == \"赠送单\") {// 赠送单\n\t\t\t\t\t\t\tGift g = new Gift();\n\t\t\t\t\t\t\tg.display(Job, name, id);\n\t\t\t\t\t\t} else if (arg2.toString() == \"草稿箱\") {// 草稿箱\n\t\t\t\t\t\t\tdrafts d = new drafts();\n\t\t\t\t\t\t\td.display(Job, name, id);\n\t\t\t\t\t\t} else if (arg2.toString() == \"查看单据\") {// 查看单据\n\t\t\t\t\t\t\tGetReceipt g = new GetReceipt();\n\t\t\t\t\t\t\tg.display(Job, name, id);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "interface DataListener\n{\n\tpublic void DataChanged(MDSplus.Data data);\n}", "public void setJob(String job) {\n this.job = job;\n }", "public interface Changed extends Editable.Changed\n {\n }", "@Override\n\t\t\tpublic void handleDataChange(String dataPath, Object data) throws Exception {\n\t\t\t\tString cmd = (String)data;\n\t\t\t\tSystem.out.println(\"执行的命令:\"+cmd);\n\t\t\t\texecCmd(cmd);\n\t\t\t}", "public interface ChangeHandling {\r\n}", "public JobData(Job job,\n JobContext jContext,\n TaskAttemptContext tContext,\n ManifestCommitter committer) {\n this.job = job;\n this.jContext = jContext;\n this.tContext = tContext;\n this.committer = committer;\n conf = job.getConfiguration();\n }", "@Override\n public String getTypeID() {\n return job_id;\n }", "public interface ITableModifiedListener {\n\t\t\n\t\t/**Called whenever the table content is modified. \n\t\t * @param content of the table.\n\t\t */\n\t\tpublic void modified(String[][] content);\n\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "public void setJOB_ID(BigDecimal JOB_ID) {\r\n this.JOB_ID = JOB_ID;\r\n }", "public void onDataChanged(IData data) {\r\n\tthis.canvas.onDataChanged(data);\r\n }", "public interface coumicater {\n public void makechange(String data);\n\n}", "public interface JobValues {\n\n void setValue(JobDependency jobDependency, Serializable value);\n\n Serializable getValue(JobDependency jobDependency);\n\n void clear();\n\n default Map<String, Serializable> getMap(Job<?> job) {\n Map<String, Serializable> result = new HashMap<>();\n for (JobDependency jobDependency : job.getUnsortedDependencies()) {\n result.put(jobDependency.getKey(), getValue(jobDependency));\n }\n return result;\n }\n}", "public interface ITalent {\n\n void newJob(String job);\n}", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public void update(Job job) throws DatabaseException, IllegalArgumentException;", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "JobResponse refresh();", "@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}", "public ComboBoxDataObject getJob_TypeOfWork() {\r\n return job_TypeOfWork;\r\n }", "public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}", "public void setJobDataMap(JobDataMap jobDataMap) {\n this.jobDataMap = jobDataMap;\n }", "private void updatejob() {\n\t\tString course = edt_course.getText().toString();\n\t\tString content = edt_content.getText().toString();\n\t\tjob.setCourseName(course);\n\t\tjob.setJobContent(content);\n\t\tjob.update(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"更新成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public interface Change {\n\n int getSortingNumber();\n\n @Nonnull\n List<String> getLabels();\n\n @Nonnull\n String getVersion();\n}", "@Override\n public String getType() {\n return Const.JOB;\n }", "public LogJobEventAttribute(TriggerJobDO job)\n {\n super(GenomeAttributeType.JobEvent, getEventString(buildEvent(job)));\n }", "public interface GoodChangeListener {\n\n public void goodchange(String scuid, String gooduid,String goods_ps_uid,String bussiness_uid ,String car_count );\n\n\n}", "public interface DataEvent\n\textends Freezable\n{\n\n\tpublic abstract DataItem getDataItem();\n\n\tpublic abstract int getType();\n\n\tpublic static final int TYPE_CHANGED = 1;\n\tpublic static final int TYPE_DELETED = 2;\n}", "public void valueChanged(IntegerStorageChange istoragech);", "public void updateData() {}", "ChangeData getChangeData(Project.NameKey projectName, Change.Id changeId);", "@Override\n\tpublic void resAuditJobEmployee(int je_id, String caller) {\n\n\t}", "public I getChangeInfo(int startSeqNum);", "public interface Job {\n\n public enum Status {\n IDLE,\n RUNNING,\n SUCCESS,\n ERROR,\n FAIL\n }\n\n /**\n * @return the job ID.\n */\n public default JobId getId() {\n return getContext().getId();\n }\n\n /**\n * @return the job status\n */\n public Status getStatus();\n\n /**\n * @return the job priority\n */\n public Priority getPriority();\n\n /**\n * @return The context of this job.\n */\n public JobContext getContext();\n\n /**\n * Run the job using the {@link XProcEngine}.\n */\n public void run(XProcEngine engine);\n\n}", "public JDK8TriggerBuilder <T> forJob (final JobKey keyOfJobToFire)\n {\n m_aJobKey = keyOfJobToFire;\n return this;\n }", "public void setJob_StatusCheck(StatusCheckDataObject job_StatusCheck) {\r\n this.job_StatusCheck = job_StatusCheck;\r\n }", "public interface OnDataChangedListener<T> {\n\tvoid onDataChanged(List<T> list);\n}", "public interface Change\n{\n String getDate();\n\n int getRevision();\n\n String getCommitLog();\n\n String getCommitter();\n}", "@Override\n\tprotected void getDataRefresh() {\n\t\t\n\t}", "@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\tgetData();\n\t\t\n\t}", "public interface OnGetJobItemsCallback {\n void onSuccess(JobResponse jobResponse);\n\n void onFailed(String errorString);\n}", "public void setWorkProcessChanges(WorkProcessChangesHandler callback);", "public JobInfo(Class<? extends Job> jobclass) {\n\t\tthis.jobclass = jobclass;\n\t}", "public void setWorkChangesHandler(WorkChangesHandler callback);", "public CustomerDataObject getJob_Customer() {\r\n return job_Customer;\r\n }" ]
[ "0.7896046", "0.71681255", "0.7112499", "0.6379665", "0.6350175", "0.60910916", "0.6027795", "0.5969397", "0.58779246", "0.5800618", "0.5778966", "0.5769048", "0.5764469", "0.5746582", "0.57299864", "0.56981915", "0.56964946", "0.5675509", "0.5638819", "0.5634173", "0.56146777", "0.5613521", "0.56081", "0.5605711", "0.5605711", "0.55990523", "0.5590588", "0.5575204", "0.5566622", "0.55345976", "0.55327815", "0.5519702", "0.55104727", "0.54907626", "0.5480868", "0.5476184", "0.5468997", "0.5458777", "0.5455208", "0.54520965", "0.5442168", "0.54260415", "0.54235774", "0.5414682", "0.5393713", "0.5368649", "0.53665465", "0.5366508", "0.5358676", "0.5356556", "0.5348974", "0.5344064", "0.5330549", "0.5322781", "0.53110206", "0.53104645", "0.5305521", "0.529973", "0.52934104", "0.5287081", "0.5281174", "0.52777714", "0.5276946", "0.5276583", "0.52738875", "0.5270788", "0.52689725", "0.52644086", "0.5262925", "0.52607965", "0.5258814", "0.52586746", "0.5258152", "0.5250319", "0.5248637", "0.5247397", "0.5238388", "0.5236002", "0.52174175", "0.5210746", "0.5202488", "0.5197373", "0.51908493", "0.518118", "0.5180601", "0.51720554", "0.516825", "0.5160078", "0.515463", "0.51533777", "0.51529247", "0.515228", "0.5149299", "0.51440316", "0.51438016", "0.51408416", "0.5138254", "0.51352674", "0.51319903", "0.51081645" ]
0.6529168
3
Get Client. Client/Tenant for this installation.
public int getAD_Client_ID();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Client getClient() {\n\t\tcheckInit();\n\t\tfinal Client cli = tenant.getContext().getBean(Client.class);\n\t\tif (cli.getEventMapper()==null) {\n\t\t\tcli.setEventMapper(getEventMapper());\n\t\t}\n\t\treturn cli;\n\t}", "public Client getClient() {\n\t\treturn client;\n\t}", "public Client getClient() {\n\t\treturn client;\n\t}", "public Client getClient() {\r\n\t\treturn this.client;\r\n\t}", "public Client getClient() {\n return client;\n }", "public Client getClient() {\n return client;\n }", "public ClientI getClient() {\n\t\treturn client;\n\t}", "public static Client getClient() {\n if (ClientHandler.client == null) {\n ClientHandler.client = new Client();\n }\n return ClientHandler.client;\n }", "public static DucktalesClient getClient() {\n \treturn client;\n }", "public static Client getClient(){\n // Create a new client if it hasn't been created yet\n if(client == null) client = new Client(60000,60000);\n return client;\n }", "public MailjetClient getClient() {\n return client;\n }", "protected Client getRealClient() {\n\t\treturn client;\n\t}", "default Client getClient(Long id) {\r\n return get(Client.class, id);\r\n }", "public static IClient clientAccessor() {\n return Application.getGame().getClientAccessor();\n }", "protected HeavyClient getClient() {\n\t\treturn client;\n\t}", "public JSONRPC2Session getClient()\n {\n return client;\n }", "public Client getSomeClient() {\n return new Client(3L, \"Yulian\", \"Tsvetkovskiy\", 20, null);\n }", "protected NuxeoClient getClient() {\n if (client == null) {\n initClient();\n }\n return client;\n }", "public static AuthenticatedClient getAuthenticatedClient() {\n\t\treturn getAuthenticatedClient(false);\n\t}", "protected HttpClient getClient() {\n if (client == null) {\n synchronized (this) {\n if (client == null) {\n client = new DefaultHttpClient(conman, params);\n }\n }\n }\n\n return client;\n }", "protected MqttAsyncClient getClient() {\n return client;\n }", "public SFTPv3Client getClient()\r\n\t{\r\n\t\treturn client;\r\n\t}", "private SOSCommunicationHandler getClient() {\r\n\t\treturn client;\r\n\t}", "public ClientIdentity getClientIdentity() {\n\t\treturn this.clientIdentity;\n\t}", "public static Client getInstance() {\n if(client == null) {\n client = new Client();\n }\n return client;\n }", "public MqttAndroidClient getClient() {\n return client;\n }", "private WebClient getWebClient() {\n\t\treturn ClientSecurityUtils.applySecurityToRest(\n\t\t\t\tWebClient.fromClient(customerRestWebClient, true),\n\t\t\t\tpropertyManager.getRemoteUsername(),\n\t\t\t\tpropertyManager.getRemotePassword());\n\t}", "com.google.ads.googleads.v6.resources.CustomerClient getCustomerClient();", "public ApiClient getApiClient() {\n return apiClient;\n }", "public ApiClient getApiClient() {\n return apiClient;\n }", "public Client getCurrentClient() {\n return currentClient;\n }", "public final String getClientId() {\n return clientId;\n }", "ICordysGatewayClient getGatewayClientInstance();", "public abstract Client getClient();", "public Client getClientCode() {\r\n\t\treturn this.client;\r\n\t}", "public Object getClientId()\n {\n return clientId; // Field is final; no need to sync.\n }", "@Override\r\n\tpublic Client consulterClient(Long codeClient) {\n\t\treturn dao.consulterClient(codeClient);\r\n\t}", "@Override\n\t\tpublic Client getClient(int idClient) {\n\t\t\treturn null;\n\t\t}", "public WebClient getWebClient() {\n if (this.webClient == null) {\n this.webClient = WebClient.builder().baseUrl(getServiceEndpoint()).build();\n }\n\n return this.webClient;\n }", "public ClientAuthorization getClientAuthorization() {\n return clientAuthorization;\n }", "public ClientCorporation getClientCorporation() {\n\t\tif (clientCorporation == null) {\n\t\t\tsetClientCorporation(findClientCorporation(getJob().getClientCorporation().getId()));\n\t\t}\n\t\treturn clientCorporation;\n\t}", "public PeerClient getClient() {\n return client;\n }", "@Override\r\n\tpublic Client getClient() {\n\t\treturn this.e2eValidationClient;\r\n\t}", "public String getClientAlias() {\n return clientAlias;\n }", "private String getClientId()\n {\n String clientId = null;\n try {\n clientId = IdentificationLoader.usingDefault().getClientId();\n } catch (IOException e) {\n System.out.println(\"Could not load client ID\");\n e.printStackTrace();\n System.exit(1);\n }\n return clientId;\n }", "public static Client getHttpClient() {\r\n return c;\r\n }", "public static AppClient getInstance() {\n return instance;\n }", "public static UserClient getUserClient() {\n if (USER_CLIENT == null) {\n USER_CLIENT =\n new NetworkUserClient(NetworkProvider.SERVER_URL, new DefaultNetworkProvider());\n }\n return USER_CLIENT;\n }", "public String getClientToken() {\n return this.clientToken;\n }", "public String getClientToken() {\n return this.clientToken;\n }", "public String getClientToken() {\n return this.clientToken;\n }", "public String getClientToken() {\n return this.clientToken;\n }", "public String getClientToken() {\n return clientToken;\n }", "public String getClientToken() {\n return clientToken;\n }", "public FlexClient getFlexClient()\n {\n return flexClient; // Field is final; no need to sync.\n }", "public String getClientId() {\n return clientId;\n }", "@Override\n public io.emqx.exhook.ClientInfo getClientinfo() {\n return clientinfo_ == null ? io.emqx.exhook.ClientInfo.getDefaultInstance() : clientinfo_;\n }", "public String getClientId() {\n return clientId;\n }", "public String getClientId() {\n return clientId;\n }", "protected FHIRClient getClient(Properties properties) throws Exception {\n return FHIRClientFactory.getClient(properties);\n }", "public HttpClient getHttpClient() {\n return appContext.getHttpClient();\n }", "public Object clientId() {\n return this.clientId;\n }", "public String getClientId() {\n\t\treturn clientId;\n\t}", "Client getClient();", "public String clientId() {\n return clientId;\n }", "AblyBase getAblyClient(final long handle) {\n AblyRealtime realtime = getRealtime(handle);\n return (realtime != null) ? realtime : getRest(handle);\n }", "public Map<String, Object> clientContext() {\n return clientContext;\n }", "public static Client getCurrentClient(){\r\n return currClient;\r\n }", "public Cliente getCliente() {\n return cliente;\n }", "public ClientContact getClientContact() {\n\t\tif (clientContact == null) {\n\t\t\tsetClientContact(findClientContact(getJob().getClientContact().getId()));\n\t\t}\n\t\treturn clientContact;\n\t}", "public UUID clientId() {\n return clientId;\n }", "public int getIdClient() {\r\n return idClient;\r\n }", "public ClientID getClientID() {\n return clientID;\n }", "@Override\n public Cassandra.Client getAPI() {\n return client;\n }", "public Cliente getCliente() {\n return objCliente;\n }", "public Client create() {\n RequestProvider provider = RequestProviders.lookup();\n return provider.newClient(this);\n }", "public okhttp3.OkHttpClient getHttpClientInstance() {\r\n return configuration.getHttpClientInstance();\r\n }", "protected RunDataClient getCurrentClient() {\r\n\t\tif (!(calcSystem instanceof ExpressionCalc)) return null;\r\n\t\treturn ((ExpressionCalc)calcSystem).getCurrentClient();\r\n\t}", "public String getClientName() {\n return clientName;\n }", "public String getClientId() {\n \treturn clientId;\n }", "@Override\n public int getClientId() {\n return _entityCustomer.getClientId();\n }", "@Nullable\n public String getClientId() {\n return this.clientId;\n }", "public ServerInfo clientInterface()\n {\n return client_stub;\n }", "String getTargetClient();", "public String getTenant()\n {\n return tenant;\n }", "@RequestMapping(value=\"/client/{clientId}\", method = RequestMethod.GET)\n\tpublic OauthClientDetails getClient(@PathVariable(\"clientId\") String clientId) {\n\t\tlogger.debug(\"Query a client by the client ID {}\", clientId);\n\t\treturn authService.getClient(clientId);\n\t}", "public ClientConfiguration getConfiguration() {\r\n return this.configuration;\r\n }", "@Bean(name = \"stormpathClient\")\n @Autowired\n public Client getStormpathClient(BridgeConfig bridgeConfig) {\n ApiKey apiKey = ApiKeys.builder()\n .setId(bridgeConfig.getStormpathId().trim())\n .setSecret(bridgeConfig.getStormpathSecret().trim()).build();\n \n ClientBuilder clientBuilder = Clients.builder().setApiKey(apiKey);\n ((DefaultClientBuilder)clientBuilder).setBaseUrl(bridgeConfig.getStormpathBaseUrl());\n return clientBuilder.build(); \n }", "public java.lang.StringBuilder getClientId()\n {\n return client_id_;\n }", "@Override\n\tpublic Player getClient() {\n\t\treturn client;\n\t}", "public static Client getClient(int clientId, TransactionType transactionType) {\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tfinal String GET_CLIENT;\r\n\t\tif (transactionType == TransactionType.PURCHASE) {\r\n\t\t\tGET_CLIENT = \"SELECT * FROM purchase_client WHERE purchase_client_id = \" + clientId;\r\n\t\t} else {\r\n\t\t\tGET_CLIENT = \"SELECT * FROM sales_client WHERE sales_client_id = \" + clientId;\r\n\t\t}\r\n\t\tClient client = null;\r\n\t\ttry {\r\n\t\t\tstmt = conn.createStatement();\r\n\t\t\trs = stmt.executeQuery(GET_CLIENT);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tclient = new Client(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4));\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn client;\r\n\t}", "protected int getClientType() {\n\n return clientType;\n\n }", "public String getClientName() {\r\n return clientName;\r\n }", "public Integer getClientId() {\r\n\t\treturn clientId;\r\n\t}", "public ClientTracker getClientTracker() {\n return _clientTracker;\n }", "java.lang.String getClientId();", "public ClientInfo getClientInfo() {\n // Lazy initialization with double-check.\n ClientInfo c = this.clientInfo;\n if (c == null) {\n synchronized (this) {\n c = this.clientInfo;\n if (c == null) {\n this.clientInfo = c = new ClientInfo();\n }\n }\n }\n return c;\n }", "public String getClientHost() {\n return clientHost;\n }", "Client getClient(int id) throws ClientNotFoundException;", "@Path(\"{id}\")\n public RealmClientResource getClient(final @PathParam(\"id\") String id) {\n ClientModel clientModel = realm.getClientById(id);\n if (clientModel == null) {\n throw new NotFoundException(\"Could not find client\");\n }\n\n session.getContext().setClient(clientModel);\n\n RealmClientResource clientResource = new RealmClientResource(realm, clientModel);\n ResteasyProviderFactory.getInstance().injectProperties(clientResource);\n return clientResource;\n }", "public Class<? extends ClientService> getObjectType() {\n\t\treturn ClientService.class;\r\n\t}" ]
[ "0.78783476", "0.74945104", "0.74945104", "0.7437473", "0.7434094", "0.7434094", "0.7243051", "0.7088004", "0.7073994", "0.7060156", "0.67452824", "0.67439175", "0.6694201", "0.66622716", "0.66373086", "0.6594176", "0.65777874", "0.6576916", "0.6568932", "0.6556792", "0.6449966", "0.64381045", "0.6437087", "0.6406866", "0.63508064", "0.6339709", "0.63195175", "0.6305141", "0.62925804", "0.62925804", "0.62869644", "0.6265987", "0.62659", "0.62215596", "0.62205064", "0.6204191", "0.62034595", "0.6199988", "0.6192921", "0.6178632", "0.6121023", "0.60951596", "0.6087845", "0.6074445", "0.60641813", "0.6063945", "0.6063252", "0.6059628", "0.6053456", "0.6053456", "0.6053456", "0.6053456", "0.6028356", "0.6028356", "0.6027431", "0.6024634", "0.6004271", "0.60038364", "0.600353", "0.59960705", "0.5968519", "0.59548354", "0.5953228", "0.5952506", "0.59423536", "0.59367764", "0.59238696", "0.59175986", "0.59065425", "0.5868413", "0.5860073", "0.5839656", "0.5833778", "0.5828935", "0.58205885", "0.58176315", "0.5815066", "0.58062804", "0.57907605", "0.5787704", "0.5787283", "0.5786159", "0.5782077", "0.57773304", "0.5774889", "0.5767611", "0.57615554", "0.5755657", "0.57546806", "0.57493615", "0.5748077", "0.5747455", "0.5744421", "0.5743794", "0.5742392", "0.5740902", "0.57407415", "0.57205784", "0.57134455", "0.57104313", "0.56967086" ]
0.0
-1
Set Organization. Organizational entity within client
public void setAD_Org_ID (int AD_Org_ID);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOrganization(arg0);\n }", "public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setOrganization(String organization);", "public void secondarySetOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOrganization(arg0);\n }", "public void setOrganization(Organization organization){\r\n\t\tthis.organization = organization;\r\n\t}", "public void setOrganization(Organization organization) {\n this.organization = organization;\n }", "public void setOrganization(Organization organization) {\n this.organization = organization;\n }", "public void setOrganizationId(long organizationId);", "protected void setOrganization(String organization) {\n this.organization = organization;\n }", "public void setEntity(org.openejb.config.ejb11.Entity entity) {\n this._entity = entity;\n }", "public void setEntity(String entity)\n\t\t{\n\t\t\tif (entity == null || entity.equals(\"\"))\n\t\t\t\tendpointElement.removeAttribute(ENTITY_ATTR_NAME);\n\t\t\telse\n\t\t\t\tendpointElement.setAttribute(ENTITY_ATTR_NAME, entity);\n\t\t}", "public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }", "public void setEntity(String entity)\n\t{\n\t\tif (entity == null || entity.equals(\"\"))\n\t\t\tconferenceInfo.removeAttribute(ENTITY_ATTR_NAME);\n\t\telse\n\t\t\tconferenceInfo.setAttribute(ENTITY_ATTR_NAME, entity);\n\t}", "void setOwner(Entity owner);", "public void setContactOrganization(String contactOrganization) {\n this.contactOrganization = contactOrganization;\n }", "public void setId_Organization(java.lang.String id_Organization) {\n this.id_Organization = id_Organization;\n }", "public void setUWCompany(entity.UWCompany value);", "public void xsetOrganizationId(com.microsoft.schemas._2003._10.serialization.Guid organizationId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.set(organizationId);\r\n }\r\n }", "public void setOwner(com.hps.july.persistence.OrganizationAccessBean newOwner) {\n\towner = newOwner;\n}", "@Override\r\n public void setCorporation(String corporation) {\n }", "Builder addSourceOrganization(Organization value);", "void privateSetOrganizationKey(com.hps.july.persistence.OrganizationKey inKey) throws java.rmi.RemoteException;", "public void privateSetOrganizationKey(com.hps.july.persistence.OrganizationKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().privateSetOrganizationKey(arg0);\n }", "public final void setEntity(final String cEntity) {\n\t\tthis.entity = cEntity;\n\t}", "public void setOrganizationId(java.lang.String organizationId)\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_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.setStringValue(organizationId);\r\n }\r\n }", "public void setEntity(String entity) {\n\t\tthis.setEntity(entity, false);\n\t}", "public void setEntity(String entity)\n\t\t{\n\t\t\tif (entity == null || entity.equals(\"\"))\n\t\t\t\tuserElement.removeAttribute(ENTITY_ATTR_NAME);\n\t\t\telse\n\t\t\t\tuserElement.setAttribute(ENTITY_ATTR_NAME, entity);\n\t\t}", "public void setCompany(Company aCompany) {\n company = aCompany;\n }", "Builder addSourceOrganization(Organization.Builder value);", "public void setEntityHere(Entity setThis) {\n \n entityHere_ = setThis;\n \n }", "public void setEntity(String parName, Object parVal) throws HibException;", "public void setEm(EntityManager em) {\n\t\tthis.entity = em;\n\t}", "public abstract void setEntityManager(EntityManager em);", "Builder addSourceOrganization(String value);", "@Override\n public void setOrganizationId(long organizationId) {\n _usersCatastropheOrgs.setOrganizationId(organizationId);\n }", "@Test\n public void testUpdateOrg() {\n Organization org = new Organization();\n org.setOrgId(1);\n org.setOrgName(\"Avenger\");\n org.setDescription(\"blah blah\");\n org.setAddress(ad);\n dao.addOrg(org);\n org.setOrgName(\"X-Men\");\n assertNotEquals(org, dao.getOrg(org.getOrgId()));\n Organization fromDao = dao.updateOrg(org);\n assertEquals(org, fromDao);\n }", "public final void setOrganisation(String value) {\n organisation = value;\n }", "public void setOrganization(String organization) {\n\t\tthis.organization = organization;\n\t}", "public void setEntityId(long entityId);", "private void setOrganizationFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\n\t\t//\n\t\t// Get Organizations fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Organization.COMPANY);\n\t\tString company = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TITLE);\n\t\tString title = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TYPE);\n\t\tint orgType = cur.getInt(selectedColumn);\n\n\t\tString customLabel = null;\n\t\tif (orgType == Organization.TYPE_CUSTOM) {\n\t\t\tselectedColumn = cur.getColumnIndex(Organization.LABEL);\n\t\t\tcustomLabel = cur.getString(selectedColumn);\n\t\t}\n\n\t\torgs.add(new OrgData(orgType, title, company, customLabel));\n\t}", "public void setEntity(Entity entity) {\n\t\tthis.entity = entity;\n\t\tString s = entity.getClass().toString();\n\t\t// trim \"Class \" from the above String\n\t\tentityType = s.substring(s.lastIndexOf(\" \") + 1);\n\t}", "public void setABContact(entity.ABContact value);", "Party getOrganizationParty();", "@Test\n public void testSetHospedaje() {\n HospedajeEntity hospedaje = new HospedajeEntity();\n hospedaje.setId(new Long(23));\n HospedajeLugarEntity hospedajeL = new HospedajeLugarEntity();\n hospedajeL.setHospedaje(hospedaje);\n Assert.assertTrue(hospedajeL.getHospedaje().getId().equals(hospedaje.getId()));\n }", "public interface Organization {\n\n void setName(String name);\n\n String getName();\n\n SubordinatesContainer getHead();\n\n void setHead(SubordinatesContainer head);\n}", "IPayerEntry setPayerEntity(IPayerEntity value);", "public Organization getOrganization(){\r\n\t\treturn organization;\r\n\t}", "public void setOrgId(String orgId);", "@Override\n public void updateEntity(String entitySetName, OEntity entity) {\n super.updateEntity(entitySetName, entity);\n }", "public boolean setOrganization(String organize)\n {\n this.organization = organize;\n System.out.print(\"Publishing organization information written successfully\\n\");\n return true;\n }", "void setAssociatedObject(IEntityObject relatedObj);", "public void setOwner(Person person) \n {\n owner = person;\n }", "public void setOrganizationId(String organizationId) {\r\n this.organizationId = organizationId;\r\n }", "public String getOrganization ()\n {\n return this.organization;\n }", "@Test\n public void setTutor() {\n Employee em = employeeService.findById(5);\n System.out.println(\"=======\" + em.getName());\n Student student1 = studentService.findById(22);\n System.out.println(\"*********\" + student1.getName());\n student1.setTutor(em);\n studentService.update(student1);\n studentService.saveOrUpdate(student1);\n }", "Builder addProvider(Organization value);", "public void setOrganizationText(String organizationText) {\n this.organizationText = organizationText;\n }", "public void setEntity(EntityBase entity) {\n if (((entity != null) && !entity.equals(this.entity)) ||\n ((this.entity != null) && !this.entity.equals(entity))) {\n reset();\n }\n this.entity = entity;\n }", "Builder addAuthor(Organization value);", "Builder addCreator(Organization value);", "int updateByPrimaryKey(SysOrganization record);", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "Builder addCreator(Organization.Builder value);", "public void setHC_Org2_ID (int HC_Org2_ID);", "Builder addProvider(Organization.Builder value);", "@Override\n\tpublic void setEsfOrganization(java.lang.String esfOrganization) {\n\t\t_esfShooterAffiliationChrono.setEsfOrganization(esfOrganization);\n\t}", "public String getOrganization() {\n return organization;\n }", "public long getOrganizationId();", "public void setOrganizationAddress(String organizationAddress) {\n \n this.organizationAddress = organizationAddress;\n\n }", "public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }", "public void setEntityManager(EntityManager em) {\n this.em = em;\n }", "public void setEntityManager(EntityManager em) {\n\t\tthis.em = em;\n\t}", "public void setOwner( String owner ){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t_owner = owner;\r\n \t_itDepartment.setDirector(_owner);\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "public void setConsortium(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONSORTIUM_PROP.get(), value);\n }", "public void setOrgCustomer(java.lang.String newOrgCustomer) {\n\torgCustomer = newOrgCustomer;\n}", "Builder addAuthor(Organization.Builder value);", "public Organization getOrganization() {\n return organization;\n }", "public Organization getOrganization() {\n return organization;\n }", "@Override\n public void setDepartmentEmployee(Employee employee, int departmentId) {\n\n }", "public void setEntidade(final E entidade) {\n\n\t\tthis.entidade = entidade;\n\t}", "public String getOrganizationId() {\r\n return organizationId;\r\n }", "public void setConsortium(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONSORTIUM_PROP.get(), value);\n }", "public void setOrganizationId(String organizationId) {\n this.organizationId = organizationId;\n }", "public void setOrganizationId(Long organizationId) {\n this.organizationId = organizationId;\n }", "public void setOrganizationId(Long organizationId) {\n this.organizationId = organizationId;\n }", "public void setCompany(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, COMPANY,value);\n\t}" ]
[ "0.7741941", "0.71711665", "0.7043519", "0.6944561", "0.6825645", "0.66138935", "0.6601917", "0.6601917", "0.64588904", "0.64308894", "0.62056464", "0.6199688", "0.6184409", "0.6143588", "0.61350137", "0.61114395", "0.6081073", "0.6078416", "0.6074909", "0.6032938", "0.5989153", "0.5981888", "0.5978865", "0.5969034", "0.5951615", "0.5949171", "0.59229076", "0.59052515", "0.5901012", "0.59007114", "0.5900248", "0.5881523", "0.58768696", "0.5874464", "0.5858057", "0.5857527", "0.58227986", "0.57759243", "0.57675827", "0.57517505", "0.5732549", "0.5730792", "0.5720538", "0.5705774", "0.570181", "0.56712073", "0.5661586", "0.5625844", "0.56183565", "0.561525", "0.56056666", "0.55991465", "0.55924493", "0.5580431", "0.55787283", "0.55756783", "0.55752164", "0.5572108", "0.5568738", "0.55635995", "0.55557257", "0.5548443", "0.55431867", "0.55431867", "0.55410427", "0.5533751", "0.55329585", "0.5523993", "0.55152714", "0.55141354", "0.54889596", "0.54714", "0.5467465", "0.546082", "0.5460391", "0.5458051", "0.54528695", "0.54518217", "0.544916", "0.544916", "0.54484266", "0.5422903", "0.54207283", "0.54133755", "0.54111665", "0.54101306", "0.54101306", "0.540216" ]
0.6309354
20
Get Organization. Organizational entity within client
public int getAD_Org_ID();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.hps.july.persistence.Organization getOrganization() throws java.rmi.RemoteException, javax.ejb.FinderException;", "Party getOrganizationParty();", "OrganizationMaster getOrganization(Long uniqueId);", "String getOrganization();", "public Organization getOrganization() {\n return organization;\n }", "public Organization getOrganization() {\n return organization;\n }", "public com.hps.july.persistence.OrganizationAccessBean getOrganization() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n instantiateEJB();\n com.hps.july.persistence.Organization localEJBRef = ejbRef().getOrganization();\n if ( localEJBRef != null )\n return new com.hps.july.persistence.OrganizationAccessBean(localEJBRef);\n else\n return null;\n }", "public String getOrganization ()\n {\n return this.organization;\n }", "public Organization getOrganization(){\r\n\t\treturn organization;\r\n\t}", "public long getOrganizationId();", "public String getOrganization() {\n return organization;\n }", "@Override\n\tpublic OrganizationVO getOrganization(String name) throws RemoteException {\n\t\treturn new OrganizationVO(\"1\",Organizationtype.hall);\n\t}", "SysOrganization selectByPrimaryKey(Long id);", "String getOrganizationPartyId();", "@AutoEscape\n\tpublic String getOrganization();", "EntityType getEntity();", "public VOOrganization getOrganization() {\n\n if (organization == null) {\n organization = new VOOrganization();\n FacesContext fc = FacesContext.getCurrentInstance();\n Locale locale = fc.getViewRoot().getLocale();\n organization.setLocale(locale.toString());\n }\n return organization;\n }", "public OrgDo getOrg(Integer id);", "com.hps.july.persistence.OrganizationKey getOrganizationKey() throws java.rmi.RemoteException;", "public\t Organization getOrganizationHeader()\n { return (Organization) this.getHeader(OrganizationHeader.NAME); }", "String organizationId();", "public String getOrganization() {\n\t\treturn organization;\n\t}", "public String getOrganizationId() {\n return organizationId;\n }", "public String getOrganizationId() {\r\n return organizationId;\r\n }", "public Account getOrganizationOwnerAccount() {\n return organizationOwnerAccount;\n }", "public String organization() {\n return this.organization;\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "Organization selectByPrimaryKey(Integer id);", "public String getOrganizationName() {\n\n \n return organizationName;\n\n }", "public E getEntity();", "List<Organization> findOrgByUser(String userId);", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "public String getOrganizationAddress() {\n\n \n return organizationAddress;\n\n }", "public CustomerEOImpl getCustomerEO() {\r\n return (CustomerEOImpl) getEntity(2);\r\n }", "OrganizationResourceInner innerModel();", "@Test\n public void convertToEntity_WhenOrg() {\n application = getApplicationBuilder().addBaseApplication().setOrganisation().build();\n\n // When converting\n converter.convertToEntity(application, entity);\n\n // Nothing happens\n assertNull(entity.getDob());\n }", "public com.hps.july.persistence.OrganizationKey getOrganizationKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((com.hps.july.persistence.OrganizationKey) __getCache(\"organizationKey\")));\n }", "public java.lang.String getId_Organization() {\n return id_Organization;\n }", "public interface OrganizationResource {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the organizationId property: organization id.\n *\n * @return the organizationId value.\n */\n String organizationId();\n\n /**\n * Gets the organizationName property: organization name.\n *\n * @return the organizationName value.\n */\n String organizationName();\n\n /**\n * Gets the billingSource property: Billing source.\n *\n * @return the billingSource value.\n */\n BillingSource billingSource();\n\n /**\n * Gets the inner com.azure.resourcemanager.newrelicobservability.fluent.models.OrganizationResourceInner object.\n *\n * @return the inner object.\n */\n OrganizationResourceInner innerModel();\n}", "public OrganisationUnit getOrganisationUnit(long id) throws PersistenceFailureException;", "com.google.ads.googleads.v14.services.AudienceInsightsEntity getEntity();", "String getEntity();", "String getEntity();", "@Override\n public long getOrganizationId() {\n return _usersCatastropheOrgs.getOrganizationId();\n }", "public String getOrganizationEmail() {\n\n \n return organizationEmail;\n\n }", "public RepresentedOrganization getRepresentedOrganization() {\n\t\treturn representedOrganization;\n\t}", "List<OrganizationMaster> getOrganizationList();", "@JsonIgnore public Organization getAuthenticator() {\n return (Organization) getValue(\"authenticator\");\n }", "Account getAccount();", "public E getEntity() {\n return this.entity;\n }", "public String getOrganizationText() {\n return organizationText;\n }", "public String getOrganizationName() {\n return (orgName);\n }", "public Enterprise getOwnerEnterprise() {\n if (!isReserved()) {\n return null;\n }\n\n EnterpriseDto enterprise = context.getApi().getEnterpriseApi()\n .getEnterprise(target.getIdFromLink(ParentLinkName.ENTERPRISE));\n\n return wrap(context, Enterprise.class, enterprise);\n }", "public String getOrganizationCode() {\n return organizationCode;\n }", "@Override\n\tpublic TbOrg getOwnOrg() {\n\t\treturn tbOrgMapper.getOwnOrg();\n\t}", "public String getOrganizationUrl() {\n\n \n return organizationUrl;\n\n }", "public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.entityID);\n }", "@Schema(example = \"Passbase Inc.\", description = \"Name of the organization that owns this project\")\n public String getOrganization() {\n return organization;\n }", "IPayerEntity getPayerEntity();", "public com.microsoft.schemas._2003._10.serialization.Guid xgetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n return target;\r\n }\r\n }", "public java.lang.String getOrganizationId()\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_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public CompanyTO getCompany() {\n\t\t\r\n\t\treturn CompanyService.getInstance().getCompany();\r\n\t}", "@Override\n public Banking_organization getBanking_organization(\n long banking_organizationID) throws PortalException, SystemException {\n return banking_organizationPersistence.findByPrimaryKey(banking_organizationID);\n }", "public String getEntity()\n\t{\n\t\treturn conferenceInfo.getAttribute(ENTITY_ATTR_NAME);\n\t}", "@AutoEscape\n\tpublic String getOrgId();", "public LegalEntitySource getLegalEntitySource() {\n return (LegalEntitySource) get(ORGANIZATION_SOURCE_NAME);\n }", "public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.entityID);\n }", "public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.entityID);\n }", "public Entity getEntity() {\n if (entity != null) {\n return entity;\n }\n return entity = NMSUtils.getEntityById(this.entityID);\n }", "public Entity getEntity() {\n\t\treturn DodgeBlawk.getDataManager().getEntity(getId());\n\t}", "String organizationName();", "public EntityType2 get() throws ClientException {\n return send(HttpMethod.GET, null);\n }", "public interface Organization {\n\n void setName(String name);\n\n String getName();\n\n SubordinatesContainer getHead();\n\n void setHead(SubordinatesContainer head);\n}", "public Organization get(Integer parseInt) throws SQLException {\n\t\tlogger.info(\"[Organization] get({})\", parseInt);\n\t\treturn organizationDao.queryForId(parseInt);\n\t}", "public String getType() {\n\t\t\treturn \"organization\";\n\t\t}", "Company getCompany(int id);", "public Entity getEntity() {\n\t\treturn entity;\n\t}", "@ApiModelProperty(example = \"org.acme\", required = true, value = \"Originator of the history item\")\n public String getOrganizationId() {\n return organizationId;\n }", "public ZEntity getEntity() {\r\n return entity;\r\n }", "abstract E getEntityManager();", "public String getOrganId() {\n return organId;\n }", "public abstract String getEntityId();", "public com.hps.july.persistence.Company getCompany() throws Exception {\n\tif (getDivision() == null) {\n\t\tCompanyAccessBean bean = constructCompanies();\n\t\tif (bean != null)\n\t\t return (Company)bean.getEJBRef();\n\t\telse\n\t\t return null;\n\t}\n\telse\n\t\treturn null;\n\t\t\n}", "public com.hps.july.persistence.OrganizationAccessBean getOwner() {\n\treturn owner;\n}", "public final String getOrganisation() {\n return organisation;\n }", "@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}", "public Resolution linkToOrganization() {\r\n Organization o = this.myIsern.getSingleOrganization(this.linkItem);\r\n if (o == null) {\r\n this.name = this.linkItem;\r\n this.added = false;\r\n return new RedirectResolution(ADD_ORG_PAGE).flash(this);\r\n }\r\n else {\r\n this.name = this.linkItem;\r\n this.type = o.getType();\r\n this.contact = o.getContact();\r\n \r\n this.affiliatedResearchers = \r\n this.converter.listToString(o.getAffiliatedResearchers().getAffiliatedResearcher());\r\n \r\n this.country = o.getCountry();\r\n \r\n this.researchKeywords = \r\n this.converter.listToString(o.getResearchKeywords().getResearchKeyword());\r\n \r\n this.researchDescription = o.getResearchDescription();\r\n this.homePage = o.getHomePage();\r\n \r\n this.edited = false;\r\n this.editing = true;\r\n return new RedirectResolution(EDIT_ORG_PAGE).flash(this);\r\n }\r\n }" ]
[ "0.74697036", "0.7268005", "0.723469", "0.698375", "0.69425726", "0.69425726", "0.67926216", "0.6730626", "0.6727341", "0.67242235", "0.66025126", "0.6584965", "0.6448623", "0.64393336", "0.64362466", "0.64225245", "0.64089143", "0.6270373", "0.6260543", "0.6252699", "0.6248247", "0.6235768", "0.62319225", "0.6228535", "0.6223294", "0.6150835", "0.6149181", "0.6149181", "0.6134315", "0.6123837", "0.6089782", "0.60726357", "0.6051784", "0.5955388", "0.59367424", "0.59317625", "0.59313357", "0.5879446", "0.58559436", "0.5855745", "0.58537793", "0.583533", "0.5820033", "0.5820033", "0.5796326", "0.5775925", "0.57649094", "0.5762149", "0.57607156", "0.57605237", "0.5755072", "0.5750909", "0.57292503", "0.5722437", "0.5715081", "0.5699125", "0.56933486", "0.5690511", "0.56891614", "0.56878084", "0.5681964", "0.56608135", "0.56600374", "0.5657636", "0.56472003", "0.56348044", "0.5634476", "0.56295836", "0.56295836", "0.56295836", "0.56214875", "0.561942", "0.5619074", "0.56120497", "0.55924106", "0.5584384", "0.55811846", "0.5567168", "0.5554401", "0.55442435", "0.5543041", "0.5537469", "0.55298966", "0.5517278", "0.5510404", "0.55092853", "0.5507925", "0.55053324" ]
0.5948978
45
Set BPJS Registration Date
public void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Timestamp getBPJSRegistrationDate();", "public void setRegistrationDate(Date registrationDate)\n {\n this.registrationDate = registrationDate;\n }", "public void setRegisterDateTime(Date dateTime) { this.registerDateTime = dateTime; }", "public void setRegDate(Date regDate) {\r\n\t\tthis.regDate = regDate;\r\n\t}", "@Override\n public Date getRegistrationDate() {\n return null;\n }", "public registration() {\n initComponents();\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\n Date d = new Date();\n String dt = df.format(d);\n tdate.setText(dt);\n \n }", "public void setRegistDt(Date registDt) {\n this.registDt = registDt;\n }", "public void setRegisterDate(Date registerDate) {\n this.registerDate = registerDate;\n }", "@Override\n public void setRegistrationDate(java.util.Date registrationDate) {\n _entityCustomer.setRegistrationDate(registrationDate);\n }", "void setCreateDate(Date date);", "void setCreationDate(Date val)\n throws RemoteException;", "@JsonIgnore\n @Override\n public Date getRegistrationDate()\n {\n return registrationDate;\n }", "long getContactRegistrationDate();", "@Test\n public void testSetRegistrationDate1() {\n LocalDateTime now = LocalDateTime.now();\n user1.setRegistrationDate(now);\n assertEquals(\"RegistrationDate should be \" + now.toString(), user1.getRegistrationDate(), now);\n }", "public void setCreationDate(Date value)\n {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setRegisterDatime(Date registerDatime) {\r\n this.registerDatime = registerDatime;\r\n }", "public void setRegisterDatime(Date registerDatime) {\r\n this.registerDatime = registerDatime;\r\n }", "public void setRegdate(long newVal) {\n setRegdate(new java.sql.Timestamp(newVal));\n }", "void setBirthDate(Date birthDate);", "public void setRegtime(Date regtime) {\n this.regtime = regtime;\n }", "public Date getRegDate() {\r\n\t\treturn regDate;\r\n\t}", "public Date getRegisterDate() {\n return registerDate;\n }", "@Override\n public java.util.Date getRegistrationDate() {\n return _entityCustomer.getRegistrationDate();\n }", "public void setJP_AcctDate (String JP_AcctDate);", "public void setRegtime(Date regtime) {\r\n\t\tthis.regtime = regtime;\r\n\t}", "public void setCreationDate(Date creationDate);", "public void setDateStart_CouponsTab_Marketing() {\r\n\t\tthis.dateStart_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tString today1 = (String) (formattedDate.format(c.getTime()));\r\n\t\tthis.dateStart_CouponsTab_Marketing.sendKeys(today1);\r\n\t}", "public String getREGN_DATE() {\r\n return REGN_DATE;\r\n }", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public Date getRegisterDateTime() { return registerDateTime; }", "void setDate(Date data);", "public void setRegdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.regdate != null && (newVal.compareTo(this.regdate) == 0)) || \n (newVal == null && this.regdate == null && regdate_is_initialized)) {\n return; \n } \n this.regdate = newVal; \n regdate_is_modified = true; \n regdate_is_initialized = true; \n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "@Override\n\tprotected void setDate() {\n\n\t}", "private void setCurrentDateOnButton() {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t//set current date to registration button\n\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t\t//set current date to FCRA registration button\n\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t}", "public void setCreationDate(Date creationDate) {\n }", "public void setBirthDate(Date birthDate);", "public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }", "void setCreateDate(final Date creationDate);", "public void setGmtCreate(Date gmtCreate) {\r\n this.gmtCreate = gmtCreate;\r\n }", "public void setCreationDateLocal(Date date) {\r\n\t\toCreationDate = date ;\r\n\t}", "public void setBirthday(Date birthday);", "public void setBirthDate(Date inBirthDate)\n {\n birthdate = inBirthDate;\n }", "public void setSupEntRegdate(Date supEntRegdate) {\n this.supEntRegdate = supEntRegdate;\n }", "public void SetDate(Date date);", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "public void setSysDate()\r\n\t{\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\r\n txtPDate.setText(sdf.format(new java.util.Date()));\r\n\t}", "public void setDateEnd_CouponsTab_Marketing() {\r\n\t\tthis.dateEnd_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.add(Calendar.DATE, 1);\r\n\t\tString tomorrow = (String) (formattedDate.format(c.getTime()));\r\n\t\tSystem.out.println(\"tomorrows date is \"+tomorrow);\r\n\t\tthis.dateEnd_CouponsTab_Marketing.sendKeys(tomorrow);\r\n\t}", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "public void expiredate() {\n\t\tdr.findElement(By.xpath(\"//input[@id='expiryDate']\")).sendKeys(\"05/2028\");\r\n\t\t\r\n\t\t\r\n\t\t}", "public void setRegisterTime(Date registerTime) {\r\n this.registerTime = registerTime;\r\n }", "Calendar registeredAt();", "public void setGmtLogin(Date gmtLogin) {\n this.gmtLogin = gmtLogin;\n }", "public void setCreationDate(Calendar creationDate) {\n/* 248 */ getCOSObject().setDate(COSName.CREATION_DATE, creationDate);\n/* */ }", "void setCreatedDate(Date createdDate);", "public void setCreationDate(\n @Nullable\n final LocalDateTime creationDate) {\n rememberChangedField(\"CreationDate\", this.creationDate);\n this.creationDate = creationDate;\n }", "public void setBirthdate(Date birthdate)\n {\n this.birthdate = birthdate;\n }", "public Date getRegistDt() {\n return registDt;\n }", "public LicenseExpiryDateValidator(DriverRegistration registration) {\n super(registration);\n }", "@Test(expected = IllegalArgumentException.class)\n public void testSetRegistrationDate2() {\n user1.setRegistrationDate(LocalDateTime.now().plusHours(1));\n }", "private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }", "public void setGrnDate (java.util.Date grnDate) {\n\t\tthis.grnDate = grnDate;\n\t}", "public void setBirth_date(Date birth_date) {\n this.birth_date = birth_date;\n }", "public void setBirth_date(Date birth_date) {\n this.birth_date = birth_date;\n }", "@Override\n\tpublic void setCreateDate(Date createDate);", "@Override\n\tpublic void setCreateDate(Date createDate);", "public void setCreateDate(String value) {\n this.createDate = value;\n }", "public void setBirthdate(Date birthdate) {\r\n this.birthdate = birthdate;\r\n }", "public UserBuilder setDateOfRegistration(Date dateOfRegistration) {\n user.setDateOfRegistration(dateOfRegistration);\n return this;\n }", "public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }", "public void setRequestDate(Date requestDate);", "public void setDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}", "public void setBegDate(java.lang.String value) {\n this.begDate = value;\n }", "public void setGioBatDau(Date gioBatDau);", "public Date getRegisterDatime() {\r\n return registerDatime;\r\n }", "public Date getRegisterDatime() {\r\n return registerDatime;\r\n }", "public void setDateCreated(Date dateCreated);" ]
[ "0.7751743", "0.764669", "0.7479075", "0.70596784", "0.70056003", "0.6996616", "0.6944324", "0.69443077", "0.6931478", "0.68417543", "0.6644003", "0.66141415", "0.65366966", "0.65225756", "0.651433", "0.65135056", "0.65135056", "0.6471592", "0.6458561", "0.64332145", "0.6427883", "0.64221317", "0.6415417", "0.639123", "0.63753766", "0.63741904", "0.6354327", "0.63307333", "0.63209456", "0.63209456", "0.63209456", "0.63187915", "0.63181347", "0.6294492", "0.6293688", "0.6293688", "0.6293688", "0.6293688", "0.6293688", "0.6293688", "0.6293688", "0.6293688", "0.62642324", "0.62584835", "0.62489444", "0.6246202", "0.6240621", "0.622339", "0.6215363", "0.6201326", "0.61953723", "0.618218", "0.61656445", "0.61552256", "0.61551267", "0.6148991", "0.6147048", "0.61238694", "0.6121859", "0.6121859", "0.6121859", "0.6121859", "0.6121859", "0.6121859", "0.6121859", "0.6121859", "0.6121859", "0.6121859", "0.6121859", "0.6121859", "0.6121859", "0.6121859", "0.6117203", "0.6107658", "0.6099464", "0.60871935", "0.6053976", "0.60474026", "0.6044717", "0.6044365", "0.6039047", "0.6035907", "0.6032773", "0.6031519", "0.602608", "0.602297", "0.602297", "0.60098684", "0.60098684", "0.6004857", "0.6003167", "0.59785277", "0.5968472", "0.5968339", "0.5963131", "0.5961041", "0.5959699", "0.59578127", "0.59578127", "0.5946809" ]
0.8658798
0
Get BPJS Registration Date
public Timestamp getBPJSRegistrationDate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getContactRegistrationDate();", "public void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);", "public String getREGN_DATE() {\r\n return REGN_DATE;\r\n }", "@Override\n public Date getRegistrationDate() {\n return null;\n }", "@Override\n public java.util.Date getRegistrationDate() {\n return _entityCustomer.getRegistrationDate();\n }", "public Date getRegDate() {\r\n\t\treturn regDate;\r\n\t}", "@JsonIgnore\n @Override\n public Date getRegistrationDate()\n {\n return registrationDate;\n }", "public Date getRegisterDate() {\n return registerDate;\n }", "public Date getRegisterDateTime() { return registerDateTime; }", "public String getRegisteredAt() {\n return registeredAt;\n }", "public java.sql.Timestamp getRegdate()\n {\n return regdate; \n }", "public Date getRegisterDatime() {\r\n return registerDatime;\r\n }", "public Date getRegisterDatime() {\r\n return registerDatime;\r\n }", "public registration() {\n initComponents();\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\n Date d = new Date();\n String dt = df.format(d);\n tdate.setText(dt);\n \n }", "public void setRegistrationDate(Date registrationDate)\n {\n this.registrationDate = registrationDate;\n }", "Date getCreationDate();", "public Date getRegistDt() {\n return registDt;\n }", "public Date getCreationDate() {\n return m_module.getConfiguration().getCreationDate();\n }", "public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}", "Calendar registeredAt();", "public java.util.Date getCertificateOfRegistryDate() {\n\t\treturn _tempNoTiceShipMessage.getCertificateOfRegistryDate();\n\t}", "@Override\r\n\tpublic Date getAttr_reg_dt() {\n\t\treturn super.getAttr_reg_dt();\r\n\t}", "public Date getRegtime() {\n return regtime;\n }", "public String getRebillCreationDate()\n\t{\n\t\tif(response.containsKey(\"creation_date\")) {\n\t\t\treturn response.get(\"creation_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public java.lang.String getPOSTNG_DATE() {\r\n return POSTNG_DATE;\r\n }", "public Date getGmtLogin() {\n return gmtLogin;\n }", "public Date getRegtime() {\r\n\t\treturn regtime;\r\n\t}", "public void setRegisterDateTime(Date dateTime) { this.registerDateTime = dateTime; }", "Date getCreateDate();", "Date getCreateDate();", "public String getJP_AcctDate();", "public Date getCreationDate()\n {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\r\n return gmtCreate;\r\n }", "public Date getRegisterTime() {\r\n return registerTime;\r\n }", "public Date getCreationDate();", "public Date getSupEntRegdate() {\n return supEntRegdate;\n }", "public java.util.Date getGrnDate () {\n\t\treturn grnDate;\n\t}", "public String getDate_of_Birth() {\n\t\treturn Date_of_Birth;\n\t}", "public String Get_date() \n {\n \n return date;\n }", "public static String getUserPassDate() {\n return getUserPassDate(user);\n }", "public java.util.Date getDeliveryDateOfTradeRegister() {\n return deliveryDateOfTradeRegister;\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "private String getActivationDate(String csStatChng) {\r\n\t\t\r\n\t\tString activationDate = \"\";\r\n\t\t\r\n\t\tif (csStatChng != null) {\r\n\t\t\tint lastIndexOf = csStatChng.lastIndexOf(ACTIVATE_STATE);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tactivationDate = DateFormat.format(csStatChng.substring(lastIndexOf-6, lastIndexOf), \"yymmdd\", \"dd/mm/yyyy\");\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn activationDate;\t\r\n\t}", "String getDate();", "String getDate();", "Date getCreationDate()\n throws RemoteException;", "LocalDateTime getCreationDate();", "public SweDate() {\n\t\tCalendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n\t\tsetFields(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DAY_OF_MONTH),\n\t\t\t\tcal.get(Calendar.HOUR_OF_DAY) + cal.get(Calendar.MINUTE) / 60. + cal.get(Calendar.SECOND) / 3600.\n\t\t\t\t\t\t+ cal.get(Calendar.MILLISECOND) / 3600000.,\n\t\t\t\tSE_GREG_CAL);\n\t}", "public String getDateOfBirth() {\r\n\t\tString year = Integer.toString(datePicker.getModel().getYear());\r\n\t\tString month = Integer.toString(datePicker.getModel().getMonth()+1);\r\n\t\tString day = Integer.toString(datePicker.getModel().getDay());\r\n\t\tString date = year+\"-\"+month+\"-\"+day;\r\n\t\treturn date;\r\n\t}", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "com.google.type.Date getAcquireDate();", "Date getBirthDate();", "@Override\n public String getCreationDate() {\n return creationDate;\n }", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "public String getRegtime() {\n return regtime;\n }", "public RegistrationInfo getRegistrationInfo();", "public Date generarFechaSolicitudGarantia() {\r\n return new Date();\r\n }", "@Override\n\tpublic java.util.Date getPaymentDate() {\n\t\treturn _esfShooterAffiliationChrono.getPaymentDate();\n\t}", "public String getRegisterDueDate(TransferNORInPSTBean registrationDueData){\r\n\t\t\r\n\t\tString registerDueDate=\"\";\r\n\t\ttry{\r\n//\t\t\tSystem.out.println(registrationDueData.getProgramCourseKey()+\" and \"+registrationDueData.getSemesterStartDate()+\"\"\r\n//\t\t\t\t\t+\" and \"+registrationDueData.getSemesterEndDate());\r\n\t\t\tList<TransferNORInPSTBean> dueDateList=(List<TransferNORInPSTBean>)sqlMapClient.queryForList(\"TransferNORInPSTBean.getRegisterDueDate\", registrationDueData);\r\n\t\t\tfor(TransferNORInPSTBean registrationDueDateValue: dueDateList){\r\n\t\t\t\tregisterDueDate=registrationDueDateValue.getRegisterDueDate();\r\n\t\t\t\t//System.out.println(registerDueDate+\"inside coming\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\t//System.out.println(\"Exception in register due date: \"+e);\r\n\t\t\tlogger.info(\"Exception in register due date\"+e.getMessage());\r\n\t\t}\r\n\t\treturn registerDueDate;\r\n\t}", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "public Date getEXPIRY_DATE() {\r\n return EXPIRY_DATE;\r\n }", "public LocalDate getGenDate() {\n\t\treturn genDate;\n\t}", "public String getBirthDate() {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tif (jPanelFormClient.birthdayDateChooser.getDate() != null)\r\n\t\t\treturn sdf.format(jPanelFormClient.birthdayDateChooser.getDate());\r\n\t\treturn null;\r\n\t}", "@Override\n protected String getCreationDate() {\n try {\n if (exists() && ((Node) item).hasProperty(JcrConstants.JCR_CREATED)) {\n long creationTime = ((Node) item).getProperty(JcrConstants.JCR_CREATED).getValue().getLong();\n return HttpDateFormat.creationDateFormat().format(new Date(creationTime));\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:created property\");\n }\n\n // fallback\n return super.getCreationDate();\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _candidate.getCreateDate();\n\t}", "public java.lang.String getCreateDate() {\n java.lang.Object ref = createDate_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createDate_ = s;\n return s;\n }\n }", "public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }", "public Date getPAYMENT_DATE() {\r\n return PAYMENT_DATE;\r\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _scienceApp.getCreateDate();\n\t}", "public java.lang.String getCreateDate() {\n java.lang.Object ref = createDate_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createDate_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getBirth_date() {\n return birth_date;\n }", "public ZonedDateTime getDateCreation() {\n\t\treturn this.dateCreation;\n\t}", "public String getEventDate()\n {\n EventDate = createEvent.getText();\n return EventDate;\n }" ]
[ "0.75162727", "0.74655205", "0.7276136", "0.7195176", "0.71216047", "0.6943214", "0.6938821", "0.68330693", "0.6713341", "0.66773117", "0.6653851", "0.6545444", "0.6545444", "0.65020066", "0.6456254", "0.645266", "0.6446593", "0.6438887", "0.6416449", "0.63710773", "0.6360381", "0.6354242", "0.6340477", "0.6336339", "0.6330486", "0.6330486", "0.6330486", "0.6330486", "0.6320791", "0.63137984", "0.62962294", "0.6276758", "0.6269565", "0.6269565", "0.6267498", "0.62588155", "0.62447417", "0.62447417", "0.62447417", "0.62447417", "0.62447417", "0.62447417", "0.62447417", "0.62447417", "0.62447417", "0.62447417", "0.62447417", "0.62447417", "0.62447417", "0.62447417", "0.62396693", "0.6218386", "0.61984456", "0.6189868", "0.6189205", "0.61546516", "0.61126596", "0.6110082", "0.610597", "0.60791", "0.60791", "0.60791", "0.60791", "0.60791", "0.60791", "0.60641545", "0.6054662", "0.6054662", "0.6050375", "0.6036927", "0.60290515", "0.6019653", "0.6016009", "0.6016009", "0.6016009", "0.6009524", "0.5989103", "0.59724516", "0.5961031", "0.5961031", "0.5961031", "0.5955792", "0.5946675", "0.594325", "0.5937929", "0.5918146", "0.591766", "0.5912537", "0.59101486", "0.590841", "0.5906238", "0.59024596", "0.5899689", "0.58982545", "0.58982545", "0.589563", "0.58947664", "0.5893722", "0.5888775", "0.58866644" ]
0.894665
0
Get Created. Date this record was created
public Timestamp getCreated();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getCreatedDate() {\n return Utils.parseDateTimeUtc(created_on);\n }", "Date getCreatedDate();", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "public Date getCreated() {\r\n\t\treturn created;\r\n\t}", "Date getDateCreated();", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }", "public Date getDateCreated();", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Long getCreatedDate() {\r\n\t\treturn createdDate;\r\n\t}", "public Date getCreatedDate();", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "public Date getCreatedDate() {\n return (Date) getAttributeInternal(CREATEDDATE);\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\r\n return createdDate;\r\n }", "public Timestamp getCreatedDate() {\n return createdDate;\n }", "public Date getCreatedDate() {\n\t\treturn createdDate;\n\t}", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "public Date getDateCreated() {\r\n\t\treturn dateCreated;\r\n\t}", "public Date getDateCreated() {\n\t\treturn dateCreated;\n\t}", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getDateCreated() {\r\n\t\t\r\n\t\t\tDate date= new Date(System.currentTimeMillis());\r\n\t\treturn date;\r\n\t}", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "public Date getCreatedDt() {\n\t\treturn createdDt;\n\t}", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\n return createdDate;\n }", "public Date getCreatedDate() {\n return createdDate;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getCreated() {\n return mCreated;\n }", "public Date getDateCreated()\n {\n return dateCreated;\n }", "public DateTime getCreatedTimestamp() {\n\t\treturn getDateTime(\"sys_created_on\");\n\t}", "public java.lang.String getCreatedDate() {\r\n return createdDate;\r\n }", "public java.util.Date getCreated() {\n return this.created;\n }", "public Date getDateCreated() {\n\t\treturn parseDate(getProperty(DATE_CREATED_PROPERTY));\n\t}", "public String getDatecreated() {\n\t\treturn datecreated;\n\t}", "public Timestamp getCreated() {\n return created;\n }", "public java.util.Date getDateCreated(){\r\n\t\treturn dateCreated;\r\n\t}", "public final Date getCreatedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"createdAt\" ) );\n\t}", "public java.util.Date getDateCreated() {\n return dateCreated;\n }", "@Override\n public Date getCreated() {\n return created;\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public String getDatecreated() {\n return datecreated;\n }", "public Date getCreateddate() {\n return createddate;\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Timestamp getCreatedOn() {\r\n\t\treturn createdOn;\r\n\t}", "public Date getDateCreated(){return DATE_CREATED;}", "public DateTime getCreated();", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public java.util.Calendar getCreatedDate() {\n return createdDate;\n }", "public java.util.Calendar getCreatedDate() {\n return createdDate;\n }", "public Timestamp getCreateDate() {\n return createDate;\n }", "public DateTime getCreatedTimestamp() {\n\t\treturn this.createdTimestamp;\n\t}", "public Date getCreateTimestamp() {\n return createTimestamp;\n }", "public java.util.Calendar getCreatedDate() {\r\n return createdDate;\r\n }", "public java.lang.Long getCreated() {\n return created;\n }", "@Override\r\n\tpublic Date getCreated_date() {\n\t\treturn super.getCreated_date();\r\n\t}", "public String getDateCreated(){\n return dateCreated.toString();\n }", "public Date getCreateTimestamp() {\r\n return createTimestamp;\r\n }", "public java.lang.Long getCreated() {\n return created;\n }", "public DateTime getCreatedOn();", "public java.util.Date getCreated_date() {\n\t\treturn _primarySchoolStudent.getCreated_date();\n\t}", "public java.sql.Timestamp getCreated() {\n\treturn created;\n}", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public java.util.Date getCreated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_created);\r\n }", "public DateTime createdDateTime() {\n return this.createdDateTime;\n }", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}" ]
[ "0.8498181", "0.84489805", "0.8423021", "0.8423021", "0.839571", "0.8394575", "0.8331101", "0.8299834", "0.8298717", "0.8298717", "0.8295246", "0.8294074", "0.82884294", "0.82884294", "0.82869494", "0.82821983", "0.8276917", "0.8276917", "0.8276917", "0.8276917", "0.8266917", "0.8247329", "0.8244922", "0.82401586", "0.82158893", "0.8201176", "0.8199791", "0.8199791", "0.8182199", "0.8182199", "0.81789684", "0.8177135", "0.8165057", "0.8164382", "0.8164382", "0.8161556", "0.8161556", "0.81548023", "0.81548023", "0.81548023", "0.81548023", "0.81235003", "0.81059843", "0.80609965", "0.80587083", "0.8056064", "0.8049118", "0.8015999", "0.8014389", "0.8010409", "0.800142", "0.79790413", "0.7966267", "0.79564846", "0.79564846", "0.79564846", "0.79563355", "0.7939435", "0.7928227", "0.7928227", "0.7917612", "0.7912088", "0.78881127", "0.7882664", "0.7882664", "0.7882664", "0.7882664", "0.7882369", "0.7882369", "0.787252", "0.7868973", "0.78553385", "0.785229", "0.78453076", "0.78447896", "0.7844533", "0.7841111", "0.7839758", "0.7828166", "0.7827363", "0.7825747", "0.78232914", "0.78232914", "0.78232914", "0.78187567", "0.7809233", "0.7809233", "0.7809233" ]
0.79081243
72
Get Created By. User who created this records
public int getCreatedBy();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public Long getCreatedBy() {\n return createdBy;\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n return createdBy;\r\n }", "public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}", "public String getCreatedBy() {\n return createdBy;\n }", "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "public String getCreatedBy() {\n return this.createdBy;\n }", "public String createdBy() {\n return this.createdBy;\n }", "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "public String getCreatedby() {\n return createdby;\n }", "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "@Override\r\n\tpublic FaqUser getCreatedBy() {\n\t\treturn this.createdBy;\r\n\t}", "public Timestamp getCreatedByTimestamp() {\n\t\treturn new Timestamp(this.createdByTimestamp.getTime());\n\t}", "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public Number getCreatedBy()\n {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public Number getCreatedBy() {\n return (Number) getAttributeInternal(CREATEDBY);\n }", "public BoxUser.Info getCreatedBy() {\n return this.createdBy;\n }", "public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createdBy_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n createdBy_ = s;\n return s;\n }\n }", "public long getCreatedByUser();", "@AutoEscape\n\tpublic String getCreatedByUser();", "public StringFilter getCreatedBy() {\n\t\treturn createdBy;\n\t}", "int getCreatedBy();", "public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public java.lang.Integer getCreatedby() {\n\treturn createdby;\n}", "public long getCreatorUserId() {\n return creatorUserId;\n }", "public String getCreatedUser() {\r\n return this.createdUser;\r\n }", "@ApiModelProperty(value = \"A string containing the universal identifier DN of the subject that created the policy\")\n public String getCreatedBy() {\n return createdBy;\n }", "public String getCreateBy() {\r\n return createBy;\r\n }", "public Long getCreateduser() {\n return createduser;\n }", "public Integer getCreatedUser() {\n\t\treturn createdUser;\n\t}", "public String getCreateBy() {\r\n\t\treturn createBy;\r\n\t}", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public Long getCreateBy() {\n return createBy;\n }", "public String getCreateBy() {\n\t\treturn createBy;\n\t}", "public int getDoc_User_ID() {\n return getCreatedBy();\n }", "public String getTicketCreatedBy() {\n\t\treturn TicketCreatedBy;\n\t}", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "public Integer getCreatedUserId() {\n return this.createdUserId;\n }", "@Override\n\tpublic long getCreateBy() {\n\t\treturn _candidate.getCreateBy();\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tpublic java.lang.String getCreatedBy() {\n\t\treturn _locMstLocation.getCreatedBy();\n\t}", "public Date getCreateBy() {\n return createBy;\n }", "public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public User getCreator() {\n\t\treturn creatorId != null ? (User) User.findById(creatorId) : null;\n\t}", "public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "public Integer getCreateby() {\n return createby;\n }", "public native final String getCreatedBy() /*-{\n return this[\"@CreatedBy\"];\n }-*/;", "public Long getCreator() {\n return creator;\n }", "public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }", "public String getCreatedUserName() {\n return createdUserName;\n }", "public User getCreator() {\n return this.creator;\n }" ]
[ "0.8388564", "0.8372427", "0.8372427", "0.8372427", "0.8372427", "0.83650607", "0.83650607", "0.83650607", "0.83637947", "0.83608896", "0.83410734", "0.8329122", "0.83220255", "0.8304156", "0.83000773", "0.8295542", "0.82746536", "0.8185017", "0.81811935", "0.817898", "0.80402267", "0.80014724", "0.80014724", "0.79251087", "0.79251087", "0.79251087", "0.79163843", "0.79163843", "0.79163843", "0.79163843", "0.7824531", "0.7817831", "0.78166413", "0.78122413", "0.78122413", "0.78122413", "0.78122413", "0.78122413", "0.78122413", "0.780455", "0.780455", "0.780455", "0.780455", "0.7777895", "0.7769387", "0.7769387", "0.77442384", "0.76982224", "0.76855814", "0.7577752", "0.75466037", "0.7537167", "0.75314224", "0.75098586", "0.7480587", "0.74724454", "0.7464307", "0.742938", "0.7411258", "0.74036574", "0.7376236", "0.73564786", "0.73329943", "0.73329943", "0.73329943", "0.73329943", "0.73128307", "0.73128307", "0.73128307", "0.73128307", "0.72950166", "0.71821886", "0.7174378", "0.717349", "0.717349", "0.7165376", "0.71534956", "0.71508265", "0.709762", "0.7051198", "0.69965345", "0.69611263", "0.69085085", "0.6907312", "0.69033474", "0.6893603", "0.6891253", "0.68868965" ]
0.7420574
69
Set Description. Optional short description of the record
public void setDescription (String Description);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescription(String Description) {\n this.Description = Description;\n }", "public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }", "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void setDescription(String value) {\n this.description = value;\n }", "public void setDescription(java.lang.String value) {\n this.description = value;\n }", "public void setDescription(String description) { this.description = description; }", "public void setDescription(String sDescription);", "public void setDescription(String desc) {\n sdesc = desc;\n }", "void setDesc(java.lang.String desc);", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n mDescription = description;\n }", "public void setDescription (String description);", "public void setDescription(String desc) {\n this.desc = desc;\n }", "public void setDescription(CharSequence value) {\n this.description = value;\n }", "public void setDescription(String description) {\n this.description = description;\n this.updated = new Date();\n }", "void setDescription(java.lang.String description);", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description){this.description=description;}", "public void setDescription(String desc) {\n description = desc;\n }", "public void setDescription(String desc)\r\n {\r\n\tthis.desc = desc;\r\n }", "public void setDescription(String des){\n description = des;\n }", "public void setDescription(String description){\n this.description = description;\n }", "public void setDescription(String description) {\n \tthis.description = description;\n }", "private void setDescription(String description)\n {\n if (null == description)\n m_description = \"\";\n else\n m_description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String desc);", "public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String newVal) {\n if ((newVal != null && this.description != null && (newVal.compareTo(this.description) == 0)) || \n (newVal == null && this.description == null && description_is_initialized)) {\n return; \n } \n this.description = newVal; \n\n description_is_modified = true; \n description_is_initialized = true; \n }", "public Builder setDescription(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n description_ = value;\n onChanged();\n return this;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "protected void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String descr);", "public void setDescription(final String description);", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String Description) {\n\t\tif (Description != null && Description.length() > 255) {\n\t\t\tlog.warning(\"Length > 255 - truncated\");\n\t\t\tDescription = Description.substring(0, 254);\n\t\t}\n\t\tset_Value(\"Description\", Description);\n\t}", "public void setDescription(String Description) {\n\t\tif (Description != null && Description.length() > 255) {\n\t\t\tlog.warning(\"Length > 255 - truncated\");\n\t\t\tDescription = Description.substring(0, 254);\n\t\t}\n\t\tset_Value(\"Description\", Description);\n\t}", "public void setDescription(String Description) {\n\t\tif (Description != null && Description.length() > 255) {\n\t\t\tlog.warning(\"Length > 255 - truncated\");\n\t\t\tDescription = Description.substring(0, 254);\n\t\t}\n\t\tset_Value(\"Description\", Description);\n\t}", "public void setDescription(java.lang.Object description) {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description.trim();\n }", "public void setDescription(String _description) {\n this._description = _description;\n }", "void setDescription(final String description);", "public void setDescription(String description) {\n _description = description;\n }", "public void setDescription(String description )\n {\n this.description = description;\n }", "void setDescription(String description);", "public Builder setDescription(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n description_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }" ]
[ "0.8033716", "0.8011738", "0.7942151", "0.7912887", "0.7876575", "0.7754035", "0.7720524", "0.77038586", "0.7670345", "0.7667109", "0.7667109", "0.7662092", "0.76585776", "0.76495636", "0.76393336", "0.7637736", "0.7636571", "0.76344943", "0.7630802", "0.7630802", "0.7630802", "0.7630802", "0.7630802", "0.7622823", "0.7612714", "0.7608843", "0.76086146", "0.7605782", "0.7598681", "0.7595828", "0.75946945", "0.75935256", "0.7591495", "0.7591265", "0.7589211", "0.75853294", "0.7578644", "0.75743914", "0.75743914", "0.75743914", "0.75720346", "0.75720346", "0.75720346", "0.75720346", "0.75720346", "0.75654507", "0.75640565", "0.75640565", "0.75640565", "0.75640565", "0.75640565", "0.7557966", "0.7552696", "0.7545709", "0.7545709", "0.7545709", "0.75411725", "0.75411725", "0.75411725", "0.7540553", "0.7529702", "0.75282294", "0.7527422", "0.75219256", "0.75179654", "0.75167257", "0.7512596", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253", "0.7502253" ]
0.7858051
10
Get Description. Optional short description of the record
public String getDescription();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDesc();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "public String getDescription() {\n return (desc);\n }", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }", "public String getDescription() {\n return getGenericFieldValue(\"Description\");\n }", "public String getDesc()\r\n {\r\n return description;\r\n }", "String getDesc();", "public String getShortDescription() {\n return (String) getValue(SHORT_DESCRIPTION);\n }", "public String getDescription()\r\n {\r\n\treturn desc;\r\n }", "public String getDescription() {\n return desc;\n }", "public String getDesc(){\r\n\t\treturn this.desc;\r\n\t}", "public String getDescription() {\n return desc;\n }", "public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDesc() {\n return desc;\n }", "public String getDescription() {\n return sdesc;\n }", "public String getFieldDescription()\n {\n return m_strDescription;\n }", "public String getDescription() {\r\n return Description; \r\n }", "public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }", "public String shortDescription() {\n return this.shortDescription;\n }", "public String description();", "public String getDesc() {\r\n\t\treturn desc;\r\n\t}", "public String getDesc() {\r\n\t\treturn desc;\r\n\t}", "final public String getShortDesc()\n {\n return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));\n }", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "@Override\r\n\tpublic String getDescription() {\n\t\treturn this.description;\r\n\t}", "public CharSequence getDescription() {\n return description;\n }", "public String getDescr() {\r\n return descr;\r\n }", "public CharSequence getDescription() {\n return description;\n }", "public String getDescription() {\n return getString(KEY_DESCRIPTION);\n }", "public String getHumanReadableDescription();", "public java.lang.String getDesc() {\r\n return desc;\r\n }", "public String getDescription() {\r\n return _description;\r\n }", "public String getDescription() { return description; }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn description;\r\n\t}", "public String getDescription()\n {\n return description;\n }", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "@NonNull\n public String getShortDescription() {\n return shortDescription;\n }", "@Override\n\t@Column(name = \"leadTypeDescription\", length = 128, nullable = true)\n\tpublic String getDescription()\n\t{\n\t\treturn super.getDescription();\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDesc() {\n\t return desc;\n\t }", "public String getDescription()\r\n\t{\treturn this.description;\t}", "public String getShortDescription() {\r\n\t\treturn shortDescription;\r\n\t}", "public String getDescription() {\n return description; \n }", "public String getDescription() {\n return this.Description;\n }", "public String getDescription()\n\t{\n\t\treturn description;\n\t}", "public String getDescription() {\n if (description == null) {\n description = Description.getDescription(this);\n }\n return description;\n }", "public String description() {\n return this.descr;\n }", "public java.lang.String getDescription(){\r\n return this.description;\r\n }", "@Override\n\tpublic String getDescription() {\n\t\treturn description;\n\t}" ]
[ "0.7976286", "0.7735792", "0.7735792", "0.7735792", "0.7735792", "0.7735792", "0.7735792", "0.7735792", "0.7735792", "0.7735792", "0.76662385", "0.76548916", "0.7629031", "0.7620996", "0.75949645", "0.7560966", "0.7547323", "0.7531662", "0.75108933", "0.7503443", "0.74737924", "0.74593", "0.7457978", "0.7457978", "0.7457978", "0.7457978", "0.7457978", "0.7457023", "0.7454564", "0.7451154", "0.7444303", "0.7442537", "0.74324787", "0.7396365", "0.7396365", "0.7390935", "0.73766226", "0.73757833", "0.7375538", "0.7370349", "0.7370268", "0.73653376", "0.7352912", "0.734465", "0.7328233", "0.73281515", "0.73265934", "0.73262846", "0.7326122", "0.7326122", "0.7326122", "0.7326122", "0.7326122", "0.7326122", "0.7326122", "0.7326122", "0.7326122", "0.7326122", "0.7326122", "0.7326122", "0.7325503", "0.73251563", "0.73202455", "0.73202455", "0.73202455", "0.73202455", "0.73167884", "0.7309209", "0.73044294", "0.73006517", "0.7294594", "0.7291128", "0.72889614", "0.72825545", "0.7275469", "0.7275233", "0.72744495" ]
0.7361666
65
Set Employee Grade To
public void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGrade(int grade){ ///update com.company.students grade\n this.grade = grade;\n }", "private void assignIntoGrade() {\n }", "public void setGrade (double grade){\n this.grade = grade;\n }", "public void setGrade(int grade)\n {\n this.grade = grade;\n }", "public static void setGrade(Student std) {\n std = new Student(std.getName(), std.getGrade() * 2 );\n std.setGrade( std.getGrade() * 2 );\n }", "public void setGrade(int grade) {\n this.grade = grade;\n }", "public void setGrade(int grade) {\n this.grade = grade;\n }", "public void setGrade(int grade) {\n this.grade = grade;\n }", "public void setGrade(int grade) {\n this.grade = grade;\n }", "public void setGrade() {\n \tthis.grade = trkMdl.getBlock(this.lineColor,this.currentBlock).getGrade();\n \t//int currentBlockID = position.getCurrentBlock();\n \t//Block current = trackModel.getBlock(curentBlockID);\n \t//grade = currentBlock.getGrade();\n }", "public void setExamGrade()\n {\n examGrade = gradeCalculator();\n }", "@Test\n\tpublic void testAssignGrade() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertTrue(grade.equals(new Integer(90)));\n\t}", "@Override\n\tpublic void setGrade(int grade) {\n\t\tmodel.setGrade(grade);\n\t}", "public void setGrade(String grade) {\n this.grade = grade;\n }", "public void setaGrade(Byte aGrade) {\n this.aGrade = aGrade;\n }", "public void setGrade(String grade) {\n\t\tGrade = grade;\n\t}", "protected void setGrades()\n\t{\n\t\tgradeNomes \t\t= new String[ this.getNumeroMaximoDeAluno() ];\n\t\tgradeNotas \t\t= new int[ this.getNumeroMaximoDeAluno() ];\n\t\tgradeConceitos \t= new int[ this.getNumeroMaximoDeAluno() ];\n\t}", "public void setName(String grade) {\r\n\t\tname = grade;\r\n\t\t\r\n\t}", "public void grade() {\n System.out.print(\"\\nEnter a grade: \");\n double numberGrade = in.nextDouble();\n final double A_MAX = 100;\n final double A_MIN = 90;\n final double B_MIN = 80;\n final double C_MIN = 70;\n final double D_MIN = 60;\n final double F_MIN = 0;\n if (numberGrade >= A_MIN && numberGrade <= A_MAX) {\n System.out.println(\"\\nYou receive an A.\\n\");\n } else if (numberGrade >= B_MIN && numberGrade <= A_MIN) {\n System.out.println(\"\\nYou receive a B.\\n\");\n } else if (numberGrade >= C_MIN && numberGrade <= B_MIN) {\n System.out.println(\"\\nYou receive a C.\\n\");\n } else if (numberGrade >= D_MIN && numberGrade <= C_MIN) {\n System.out.println(\"\\nYou receive a D.\\n\");\n } else if (numberGrade >= F_MIN && numberGrade <= D_MIN) {\n System.out.println(\"\\nYou receive a F.\\n\");\n } else if (numberGrade > 100) {\n System.out.println(\"\\nGrades above 100 are invalid.\\n\");\n } else if (numberGrade < 0) {\n System.out.println(\"\\nGrades below 0 are invalid.\\n\");\n }\n }", "@Test\n\tpublic void testAssignGrade4() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertFalse(grade.equals(new Integer(90)));\n\t}", "public int getGrade();", "@Test\n\tpublic void testAssignGrade2() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor2\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertFalse(grade.equals(new Integer(90)));\n\t}", "public void setGradeName(String gradeName) {\n this.gradeName = gradeName;\n }", "@Test\n void modifyGrade()\n throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {\n Result result = ClassMgmtSysUtils.getCourseResult(db.S_JACKY_JUNIOR, db.C_NUMERICAL);\n assert (result != null);\n assertEquals(\"3\", result.getGrade());\n ModifyGradeController mgc = new ModifyGradeController();\n Method modifyGrade = ModifyGradeController.class\n .getDeclaredMethod(\"changeGrade\", EntityManager.class, String.class, Result.class);\n modifyGrade.setAccessible(true);\n modifyGrade.invoke(mgc, TestMain.entityManager, \"5\", result);\n result = ClassMgmtSysUtils.getCourseResult(db.S_JACKY_JUNIOR, db.C_NUMERICAL);\n assert (result != null);\n assertEquals(\"5\", result.getGrade());\n }", "public boolean setGrade (int index, double newGrade){\r\n\r\n\t\tif ((index >= 0 && index <= 2) && (newGrade >= 0 && newGrade <=100)){\r\n\r\n\t\t\tgrades[index] = newGrade;\r\n\t\t\tif (grades[index] == newGrade)\r\n\t\t\t\treturn true;\r\n\t\t\telse \r\n\t\t\t\treturn false;\r\n\t\t}else{ \r\n\t\t\tSystem.out.println(\"Please enter a valid index and grade.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "public CourseGrade(LetterGrade lettergrade) {\r\n\t\t\r\n\t\t// Set the private instance variable\r\n\t\tprivateLetterGrade = lettergrade;\r\n\t\t\r\n\t\tswitch(lettergrade)\r\n\t\t{\r\n\t\t\tcase A:\r\n\t\t\tcase A_PLUS:\r\n\t\t\tcase A_MINUS:\r\n\t\t\tcase B:\r\n\t\t\tcase B_PLUS:\r\n\t\t\tcase B_MINUS:\r\n\t\t\tcase C:\r\n\t\t\tcase C_PLUS:\r\n\t\t\tcase C_MINUS:\r\n\t\t\t\tpassing = true;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public int getGrade() { return grade; }", "public int setEducationalGrade(String education) {\n return Integer.parseInt(education.split(\"\\\\s+\")[1]);\n }", "public Grades convertToGrade(int mark)\n {\n if((mark >= 0) && (mark < 40))\n {\n System.out.print(\"Unlucky, you failed with an F.\");\n return Grades.F;\n }\n else if((mark >= 40) && (mark < 50))\n {\n System.out.print(\"You barely passed with a D.\");\n return Grades.D;\n }\n else if((mark >= 50) && (mark < 60))\n {\n System.out.print(\"Not bad. You got a C.\");\n return Grades.C;\n }\n else if((mark >= 60) && (mark < 70))\n {\n System.out.print(\"Good job, You got a B.\");\n return Grades.B;\n }\n else if((mark >=70) && (mark <= 100))\n {\n System.out.print(\"Congratulations, You got an A.\");\n return Grades.A;\n }\n\n return Grades.X;\n }", "@Override\n\tpublic int updateOrgEmployee(Org_employee orgEmloyee) {\n\t\treturn 0;\n\t}", "public void updateGrades(Grades grade_value) {\n\t\t\n\t}", "protected void beforeUpdateSalaryGrade(\n RetailscmUserContext userContext,\n SalaryGrade existed,\n String retailStoreCountryCenterId,\n String salaryGradeId,\n int salaryGradeVersion,\n String property,\n String newValueExpr,\n String[] tokensExpr)\n throws Exception {}", "public char getGrade() {\n if (super.getGrade() == 'F') return 'F';\n else return 'P';\n }", "public int getGrade(){\n return grade;\n }", "public static void editScore(int assignmentID, int studentID, String score) {\n gradesMap.put(assignmentID, new HashMap(){{put(studentID, score);}});\n }", "public String getGrade() {\n\t\treturn Grade;\n\t}", "public int getGrade() {\n return grade;\n }", "public EmployeeSeller(String name, int age, float sallary, float quantityHours, float percentage) {\n super(name, age, sallary, quantityHours);\n this.percentage = percentage;\n }", "public Grade getGrade() {\n return this.grade;\n }", "public grade(){}", "@Override\n\tpublic int getGrade() {\n\t\treturn model.getGrade();\n\t}", "public void setGPA(double newGPA)throws Exception{\n\t\t\n\t\tif ((newGPA >= 0) && (newGPA <= 4.0)){\n\t\t\tthis.gpa = newGPA;\n\t\t\tString txt = Double.toString(newGPA);\n\t\t\toverWriteLine(\"GPA\", txt);\n\t\t}\n\n\t}", "@Override\n\tpublic void upgradeUserGrade(String id) throws Exception {\n\t\t\n\t}", "public static void examGrade(Double mark) {\n if (mark < 50) {\r\n System.out.println(\"F\");\r\n }\r\n if (mark > 50 && mark < 59) {\r\n System.out.println(\"D\");\r\n }\r\n if (mark > 60 && mark < 69) {\r\n System.out.println(\"C\");\r\n }\r\n if (mark > 70 && mark < 79) {\r\n System.out.println(\"B\");\r\n }\r\n if (mark > 80) {\r\n System.out.println(\"A\");\r\n }\r\n }", "@Test\n\tpublic void testAssignGrade3() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW2\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertNull(grade);\n\t}", "public void setAssignee(double assignee) {\n this.assignee = assignee;\n }", "public static void printGrade(int mark){\n \n if (mark <50){\n System.out.println(\"FAIL\");\n }\n else {\n System.out.println(\"PASS\");\n }\n }", "public void gpaConverter() {\r\n\t\tdouble numGPA = this.getNumGrade();\r\n\t\ttry {\r\n\t\t\tif (numGPA >= 4.0) {\r\n\t\t\t\tthis.letterGrade = \"A\"; }\r\n\t\t\tif (3.7 <= numGPA && numGPA < 4.0) {\r\n\t\t\t\tthis.letterGrade = \"A-\"; \r\n\t\t\t}\r\n\t\t\tif (3.3 <= numGPA && numGPA < 3.7) {\r\n\t\t\t\tthis.letterGrade = \"B+\";\r\n\t\t\t}\r\n\t\t\tif (3.0 <= numGPA && numGPA < 3.3) {\r\n\t\t\t\tthis.letterGrade = \"B\";\r\n\t\t\t}\r\n\t\t\tif (2.7 <= numGPA && numGPA < 3.0) {\r\n\t\t\t\tthis.letterGrade = \"B-\";\r\n\t\t\t}\r\n\t\t\tif (2.3 <= numGPA && numGPA < 2.7) {\r\n\t\t\t\tthis.letterGrade = \"C+\";\r\n\t\t\t}\r\n\t\t\tif (2.0 <= numGPA && numGPA < 2.3) {\r\n\t\t\t\tthis.letterGrade = \"C\";\r\n\t\t\t}\r\n\t\t\tif (1.7 <= numGPA && numGPA < 2.0) {\r\n\t\t\t\tthis.letterGrade = \"C-\";\r\n\t\t\t}\r\n\t\t\tif (1.3 <= numGPA && numGPA < 1.7) {\r\n\t\t\t\tthis.letterGrade = \"D+\";\r\n\t\t\t}\r\n\t\t\tif (1.0 <= numGPA && numGPA < 1.3) {\r\n\t\t\t\tthis.letterGrade = \"D\";\r\n\t\t\t}\r\n\t\t\tif (0.7 <= numGPA && numGPA < 1.0) {\r\n\t\t\t\tthis.letterGrade = \"D-\";\r\n\t\t\t}\r\n\t\t\tif (0.0 <= numGPA && numGPA < 0.7) {\r\n\t\t\t\tthis.letterGrade = \"F\";\r\n\t\t\t} \r\n\t\t}\r\n\t\tcatch (InputMismatchException e) {\r\n\t\t\tSystem.out.print(\"Input Mismatch Exception \");\r\n\t\t}\r\n\t\tcatch (NumberFormatException e) {\r\n\t\t\tSystem.out.print(\"Number Format Exception \");\r\n\t\t}\r\n\t\tcatch (Exception e) {}\r\n\t}", "public void grade() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// grade Method initialized\t\t\t\t\t\t\t\t\t\t\t\t\r\n System.out.print(\"Average Marks of a Student is \"+ average+\" and \");\t\t\t\t\t\t\t\t\t\t\t// This will print out the argument and ends the line\r\n if(average>81)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if loop expression, to check the condition\r\n {System.out.print(\"Grade is A : Pass\");}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then print GRADE A\r\n else if(average>=61 && average<=80)\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t// nested else if loop expression, to check the condition\r\n {System.out.print(\"Grade is B : Pass\");}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then print GRADE B\r\n else if (average>41 && average<=60)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t// nested else if loop expression, to check the condition\r\n {System.out.print(\"Grade is C : Pass\");}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then print GRADE C\r\n else if (average>21 && average <=40)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// nested else if loop expression, to check the condition\r\n {System.out.println(\"Grade is D : Fail\"); }\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then print GRADE D\r\n else if (average<20)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// nested else if loop expression, to check the condition\r\n {System.out.println(\"Fail\"); }\t}", "public void setExperience(int e) {\n\t\texperience += e;\n\t\twhile(experience >= getExperienceToNextLevel()) {\n\t\t\texperience -= getExperienceToNextLevel();\n\t\t\tlevel++;\n\t\t}\n\t\tMAX_LIFE+= level*100;\n\t\tlife = MAX_LIFE;\n\t}", "@Override\n public void editGrade(CourseDetails courseDetails) throws DBActionsException{\n dbActions.editGrade(courseDetails);\n }", "public int getEducationalGrade() {\n return educationalGrade;\n }", "public String getGrade() {\n return grade;\n }", "public void setSalary(double fromage)\r\n {\r\n mySalary = fromage;\r\n }", "public double calcGrade(){\r\n\r\n /*The grade is calculated using numbers between 0 and 1 so any number greater than 1 will\r\n * be converted into a number between 0 and 1\r\n * */\r\n if (grade.getFinPercent() > 1){\r\n grade.setFinPercent(grade.getFinPercent() / 100);\r\n }\r\n if (grade.getCurrent() > 1){\r\n grade.setCurrent(grade.getCurrent() / 100);\r\n }\r\n if (grade.getGoal() > 1){\r\n grade.setGoal(grade.getGoal() / 100);\r\n }\r\n\r\n\r\n double gradeReq = (grade.getGoal() -( ( 1 - grade.getFinPercent()) * grade.getCurrent())) / grade.getFinPercent();\r\n return gradeReq;\r\n }", "public void addGrade(int grade){\n //array list has a method to add().\n this.grades.add(grade);\n }", "public static void addGrade(int assignmentID, int studentID, String score) {\n gradesMap.put(assignmentID, new HashMap(){{put(studentID, score);}});\n }", "@Override\n public void addGrade(String firstName, String lastName, int pID, String grade) {\n Student s = new Student(firstName, lastName, pID);\n Grade g = new Grade(grade);\n\n for (Student key : map.keySet()) {\n if (key.compareTo(s) == 0) {\n map.replace(key, g);\n return;\n }\n }\n\n map.put(s, g);\n\n }", "public static void main(String[] args) {\n\n Scanner s = new Scanner(System.in);\n System.out.println(\"Provide a grade for Physics:\");\n int P = s.nextInt();\n System.out.println(\"Provide a grade for Chemistry:\");\n int C = s.nextInt();\n System.out.println(\"Provide a grade for Biology:\");\n int B = s.nextInt();\n System.out.println(\"Provide a grade for Mathematics:\");\n int M = s.nextInt();\n System.out.println(\"Provide a grade for Computer:\");\n int Com = s.nextInt();\n\n int percentage = (P+C+B+M+Com)/5;\nString grade = \"\";\n\n if (percentage>= 90) {\n grade = \"A\";\n }else if (percentage>= 80) {\n grade = \"B\";\n }else if (percentage>= 70) {\n grade = \"C\";\n }else if (percentage>= 60) {\n grade = \"D\";\n }else if (percentage>= 40) {\n grade = \"E\";\n }else if (percentage < 40) {\n grade = \"F\";\n }\n System.out.println(\"Percentage: \" +percentage);\n System.out.println(\"Grade is : \"+grade);\n\n\n }", "private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "String grade(int marks);", "public int getFinalGrade() {\n return finalGrade;\n }", "private String updateGrade(String[] letterGrade) {\n return (String) this.displayOptionsPanel(\"Choose grade:\", letterGrade);\n }", "@Override\n public void setDepartmentEmployee(Employee employee, int departmentId) {\n\n }", "private Grade( int high, int low, boolean pass) {\n\t\tthis.high = high;\n\t\tthis.low = low;\n\t\tthis.pass = pass;\n\t}", "public void addGrade(int grade) {\n this.grades.add(grade);\n }", "public final void setSalary(float salary){\n if(salary>=0){\n this.salary=salary;\n }\n else{\n JOptionPane.showMessageDialog(null,\"Incorrect amount of salary \");\n }\n }", "public char getLetterGrade()\n\t{\n\t\tdouble grade;\n\t\t\n\t\tgrade = ((((((this.quiz1/QUIZ_MAX) + (this.quiz2/QUIZ_MAX) + (this.quiz3/QUIZ_MAX)) / 3) * QUIZ_WEIGHT) + ((this.midtermExam / MIDTERM_MAX) * MIDTERM_WEIGHT) + ((this.finalExam / FINAL_MAX) * FINAL_WEIGHT)) * 100);\n\t\t\n\t\tif (grade > 100 || grade < 0)\n\t\t{\n\t\t\tSystem.out.println(\"Not a valid grade\");\n\t\t}\n\t\telse if (grade >= 90)\n\t\t{\n\t\t\tfinalGrade = 'A';\n\t\t}\n\t\telse if (grade >= 80)\n\t\t{\n\t\t\tfinalGrade = 'B';\n\t\t}\n\t\telse if (grade >= 70)\n\t\t{\n\t\t\tfinalGrade = 'C';\n\t\t}\n\t\telse if (grade >= 60)\n\t\t{\n\t\t\tfinalGrade = 'D';\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinalGrade = 'F';\n\t\t}\n\t\t\n\t\treturn finalGrade;\n\t\t\t\n\t\t}", "@Override\n\tpublic void view(int intGrade) {\n\n\t}", "public double grade() {\n\n return -1;\n }", "Employee(String empId, String name, int roleId, double basic, double allowancePercentage, double hra){\r\n\t\tthis.empId = empId;\r\n\t\tthis.name = name;\r\n\t\tthis.role.setRoleId(roleId);\r\n\t\tthis.basic = basic;\r\n\t\tthis.allowancePercentage = allowancePercentage;\r\n\t\tthis.hra = hra;\r\n\t}", "@Override\r\n public void setShape (Shape shape,\r\n double grade)\r\n {\r\n// // Check status\r\n// if (glyph.isTransient()) {\r\n// logger.error(\"Setting shape of a transient glyph\");\r\n// }\r\n\r\n // Blacklist the old shape if any\r\n Shape oldShape = getShape();\r\n\r\n if ((oldShape != null) && (oldShape != shape)\r\n && (oldShape != Shape.GLYPH_PART)) {\r\n forbidShape(oldShape);\r\n\r\n if (glyph.isVip()) {\r\n logger.info(\"Shape {} forbidden for {}\",\r\n oldShape, glyph.idString());\r\n }\r\n }\r\n\r\n if (shape != null) {\r\n // Remove the new shape from the blacklist if any\r\n allowShape(shape);\r\n }\r\n\r\n // Remember the new shape\r\n evaluation = new Evaluation(shape, grade);\r\n\r\n if (glyph.isVip()) {\r\n logger.info(\"{} assigned {}\", glyph.idString(), evaluation);\r\n }\r\n }", "public String setLetraDaGrade()\r\n\t{\r\n\t\tString letraDaGrade = \"\";\r\n\t\t\r\n\t\tif(media >= 90.0)\r\n\t\t\tletraDaGrade = \"A\";\r\n\t\telse if (media >= 80.0)\r\n\t\t\tletraDaGrade = \"B\";\r\n\t\telse if (media >= 70.0)\r\n\t\t\tletraDaGrade = \"C\";\r\n\t\telse if (media >= 60.0)\r\n\t\t\tletraDaGrade = \"D\";\r\n\t\telse\r\n\t\t\tletraDaGrade = \"F\";\r\n\t\t\r\n\t\treturn letraDaGrade;\r\n\t}", "public void setSalary (int newSalary) {\n if (joined == false) {\n this.salary = newSalary;\n }else{\n System.out.println(\"It is not possible to change the salary.\");\n }\n }", "public static void main(String[] args) {\n Scanner in = new Scanner (System.in);\n System.out.print(\"Enter your final average [0-100]: \");\n double finalGrade;\n finalGrade = in.nextDouble();\n Grade finalLetter;\n if(finalGrade >= Grade.A.Min())\n {\n finalLetter = Grade.A;\n }\n else if (finalGrade >= Grade.B.Min())\n {\n finalLetter = Grade.B;\n }\n else if (finalGrade >= Grade.C.Min())\n {\n finalLetter = Grade.C;\n }\n else if(finalGrade >= Grade.D.Min())\n {\n finalLetter = Grade.D;\n }\n else\n {\n finalLetter = Grade.F;\n }\n System.out.printf (\"A final average of %f translates to a letter grade of %s\\n\", finalGrade, finalLetter);\n }", "public void setEmployeeID(int employeeID)\n {\n if(employeeID<=9999&&employeeID>=1000)\n {\n this.employeeID = employeeID;\n }else\n {\n System.out.println(\"The Employee ID should be of 4 digits only.\");\n \n }\n }", "char getGrade(int score) {\n\t\t\n\t\tchar letterGrade;\n\t\t\n\t\tif(score>90) {\n\t\t\treturn 'A';\n\t\t}else if(score>80 && score<=90) {\n\t\t\treturn 'B';\n\t\t}else if(score>70 && score<=80) {\n\t\t\treturn 'C';\n\t\t}else if(score>50 && score<=70) {\n\t\t\treturn 'D';\n\t\t}else {\n\t\t\treturn 'F';\n\t\t}\n\t\t\n\t\n\t\t\n\t}", "@Override\n\tpublic void setEmpno(Integer empno) {\n\t\tsuper.setEmpno(empno);\n\t}", "public void setEmployee(String employee)\r\n/* 43: */ {\r\n/* 44:47 */ this.employee = employee;\r\n/* 45: */ }", "@Override\n\tpublic void updateEmployee(int empid, int empNewSalary) {\n\t\t\n\t}", "private void validateGrade(int grade) throws invalidGradeException{\n\t\tif (grade > 20 || grade < 0){\n\t\t\t\tthrow new invalidGradeException(\"Invalid grade input!Grade must be between 0~20.\");\n\t\t}\n\t}", "public Grades convertToGradeChar(int mark)\n {\n if ((mark>=0) && (mark <40))\n { \n return Grades.F;\n } else if ((mark >= 40) && (mark <= 49))\n {\n return Grades.D;\n } else if ((mark >= 50) && (mark <= 59))\n {\n return Grades.C;\n } else if ((mark >= 60) && (mark <= 69))\n {\n return Grades.B;\n } else if ((mark >= 70) && (mark <= 100))\n {\n return Grades.A;\n } \n \n return Grades.X;\n }", "public void setEmployeeID(int employeeID) { this.employeeID = employeeID; }", "public void setExamGradeId(int examGradeId) {\n this.examGradeId = examGradeId;\n }", "private float getGrade(ExamPerformance examPerformance) {\n if (examPerformance.isReexamination()) {\n return (examPerformance.getGrade() <= 3) ? 4 : 5;\n } else {\n return examPerformance.getGrade();\n }\n }", "public void setGradeInfo(GradeInfo[] gradeInfo) {\n this.gradeInfo = gradeInfo;\n }", "public Grade grade() {\n ////\n return Grade.average(grades.values());\n }", "public void setEmployee (jkt.hms.masters.business.MasEmployee employee) {\n\t\tthis.employee = employee;\n\t}", "public int changeGrade(char type, int grade, int numGrade)\n\t{\n\t\tint iVal;\n\t\tswitch(type)\n\t\t{\t\n\t\t\tcase 'q':\n\t\t\tcase 'Q':\n\t\t\t\tiVal=0;\n\t\t\t\tif(quizzesGraded>0 && numGrade<=quizzesGraded)\n\t\t\t\t{\n\t\t\t\t\tswitch(numGrade)\n\t\t\t\t\t{\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tquiz1=grade;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tquiz2=grade;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tquiz3=grade;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\tquiz4=grade;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\tquiz5=grade;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tiVal=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tiVal=-1;\n\t\t\t\t}\t\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\tcase 'T': \n\t\t\t\tiVal=0;\n\t\t\t\tif(testGraded>0 && numGrade<=testGraded)\n\t\t\t\t{\n\t\t\t\t\tswitch(numGrade)\n\t\t\t\t\t{\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\ttest1=grade;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\ttest2=grade;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\ttest3=grade;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tiVal=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tiVal=-1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'F': \n\t\t\tcase 'f': \n\t\t\t\tiVal=0;\n\t\t\t\tif(recordedFinalExam==false)\n\t\t\t\t{\n\t\t\t\t\tiVal=-1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfinalExam=grade;\n\t\t\t\t\trecordedFinalExam=true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'p':\t \n\t\t\tcase 'P': \n\t\t\t\tiVal=0;\n\t\t\t\tif(projGraded>0 && numGrade<=projGraded)\n\t\t\t\t{\n\t\t\t\t\tswitch(numGrade)\n\t\t\t\t\t{\t\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tproj1=grade;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tproj2=grade;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tproj3=grade;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tproj4=grade;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tiVal=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tiVal=-1;\n\t\t}\t\t\n\t\n\t\t\t\t\n\treturn iVal;\n\t}", "public void setSalary(double salary){\r\n this.salary = salary;\r\n }", "private String getLetterGrade(double score) {\n int i = (int) score;\n switch (i) {\n case 100:\n case 90:\n return \"A\";\n case 80:\n return \"B\";\n case 70:\n return \"C\";\n case 60:\n return \"D\";\n default:\n return \"F\";\n }\n }", "@Override\n\tpublic void ModifyEmployee() {\n\t\t\n\t}", "public void updateEmployee(Employe employee) {\n\t\t\n\t}", "char getGrade(int score) {\n\tchar grade;\n\tif(score>90) {\n\t\tgrade='A';\n\t}else if (score>80) {\n\t\t\tgrade='B';\n\t}else if(score>70) {\n\t\t\t\tgrade='C';\n\t}else if(score>50) {\n\t\tgrade='D';\n\t}else {\n\t\tgrade='F';\n\t}\n\treturn grade;\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void modifyGradeById(Grade grade) {\n\t\tGradeDAO gradeDAO= (GradeDAO)ObjectFactory.getObject(\"gradeDAO\");\n\t\tgradeDAO.updateGradeById(grade);\n\t}", "public static void main(String[] args) {\n\n int grade = 100;\n\n if (grade >= 90 && grade <= 100){\n System.out.println(\"Excellent\");\n }\n if (grade >= 70 && grade < 90 ){\n System.out.println(\"Good\");\n }\n if (grade >= 60 && grade < 70){\n System.out.println(\"Pass\");\n }\n if (grade < 60 && grade >= 0){\n System.out.println(\"Fail\");\n }\n if (grade > 100 || grade < 0){\n System.out.println(\"Invalid grade. Please write your grade between 1-100\");\n }\n\n\n\n\n\n\n }", "public Byte getaGrade() {\n return aGrade;\n }", "@Override\r\n\tpublic int addGrade(int gid, String name) {\n\t\tGradeDao gDao = new GradeDaoImpl();\r\n\t\treturn gDao.addGrade(gid, name);\r\n\t}", "public String getGradeName() {\n return gradeName;\n }", "public void editStudentGPA(Student tempStudent, float fGPA)\n\t{\n\t\ttempStudent.setfGPA(fGPA);\n\t\tthis.saveNeed = true;\n\n\n\t}" ]
[ "0.7215222", "0.7076894", "0.6978553", "0.68861806", "0.6856321", "0.67652", "0.67652", "0.67652", "0.67652", "0.65341836", "0.6512135", "0.6508431", "0.6440372", "0.62914354", "0.6220457", "0.6181002", "0.60444224", "0.5981951", "0.5897834", "0.5874725", "0.5834555", "0.5824567", "0.5808985", "0.57950455", "0.5788529", "0.57681245", "0.57640636", "0.57623875", "0.5760813", "0.57297087", "0.57112765", "0.5695156", "0.5680775", "0.5671136", "0.5667906", "0.56599337", "0.5653526", "0.5639169", "0.5623266", "0.56134826", "0.56114745", "0.5608828", "0.55959344", "0.5590909", "0.5590329", "0.55535084", "0.55460066", "0.5529826", "0.5527363", "0.5517536", "0.5479242", "0.5461367", "0.5452414", "0.54487675", "0.54425913", "0.54414284", "0.5418698", "0.5416818", "0.5395932", "0.5391399", "0.5389995", "0.53839654", "0.53697807", "0.5349245", "0.5343419", "0.53305805", "0.53242993", "0.5321227", "0.5318766", "0.5316457", "0.5312676", "0.5310102", "0.530362", "0.5300445", "0.5288031", "0.52879816", "0.528004", "0.52792245", "0.5273237", "0.52726644", "0.5272565", "0.52677083", "0.526741", "0.5266476", "0.52519375", "0.5248474", "0.5245426", "0.52402574", "0.52378684", "0.52362186", "0.5228885", "0.5226834", "0.5223736", "0.5222837", "0.5222208", "0.5213657", "0.52123564", "0.5212231", "0.52079993", "0.5205189" ]
0.67619544
9
Get Employee Grade To
public int getHC_EmployeeGrade2_ID();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getGrade();", "@Override\n\tpublic int getGrade() {\n\t\treturn model.getGrade();\n\t}", "public int getGrade() { return grade; }", "public int getGrade() {\n return grade;\n }", "public Grade grade() {\n ////\n return Grade.average(grades.values());\n }", "String grade(int marks);", "public Grade getGrade() {\n return this.grade;\n }", "public int getGrade(){\n return grade;\n }", "public double getStudentGrade() \n {\n Set<String> cc = courses.keySet();\n for (String c: cc) \n {\n if (courses.get(c).getActive() == false) \n {\n return courses.get(c).getGrade(); \n }\n }\n return 0; \n }", "public char getGrade() {\n if (super.getGrade() == 'F') return 'F';\n else return 'P';\n }", "char getGrade(int score) {\n\t\t\n\t\tchar letterGrade;\n\t\t\n\t\tif(score>90) {\n\t\t\treturn 'A';\n\t\t}else if(score>80 && score<=90) {\n\t\t\treturn 'B';\n\t\t}else if(score>70 && score<=80) {\n\t\t\treturn 'C';\n\t\t}else if(score>50 && score<=70) {\n\t\t\treturn 'D';\n\t\t}else {\n\t\t\treturn 'F';\n\t\t}\n\t\t\n\t\n\t\t\n\t}", "public String getGrade() {\n\t\treturn Grade;\n\t}", "public String getGrade() {\n return grade;\n }", "public double calcGrade(){\r\n\r\n /*The grade is calculated using numbers between 0 and 1 so any number greater than 1 will\r\n * be converted into a number between 0 and 1\r\n * */\r\n if (grade.getFinPercent() > 1){\r\n grade.setFinPercent(grade.getFinPercent() / 100);\r\n }\r\n if (grade.getCurrent() > 1){\r\n grade.setCurrent(grade.getCurrent() / 100);\r\n }\r\n if (grade.getGoal() > 1){\r\n grade.setGoal(grade.getGoal() / 100);\r\n }\r\n\r\n\r\n double gradeReq = (grade.getGoal() -( ( 1 - grade.getFinPercent()) * grade.getCurrent())) / grade.getFinPercent();\r\n return gradeReq;\r\n }", "public Grades convertToGrade(int mark)\n {\n if((mark >= 0) && (mark < 40))\n {\n System.out.print(\"Unlucky, you failed with an F.\");\n return Grades.F;\n }\n else if((mark >= 40) && (mark < 50))\n {\n System.out.print(\"You barely passed with a D.\");\n return Grades.D;\n }\n else if((mark >= 50) && (mark < 60))\n {\n System.out.print(\"Not bad. You got a C.\");\n return Grades.C;\n }\n else if((mark >= 60) && (mark < 70))\n {\n System.out.print(\"Good job, You got a B.\");\n return Grades.B;\n }\n else if((mark >=70) && (mark <= 100))\n {\n System.out.print(\"Congratulations, You got an A.\");\n return Grades.A;\n }\n\n return Grades.X;\n }", "public double grade() {\n\n return -1;\n }", "private float getGrade(ExamPerformance examPerformance) {\n if (examPerformance.isReexamination()) {\n return (examPerformance.getGrade() <= 3) ? 4 : 5;\n } else {\n return examPerformance.getGrade();\n }\n }", "private String getLetterGrade(double score) {\n int i = (int) score;\n switch (i) {\n case 100:\n case 90:\n return \"A\";\n case 80:\n return \"B\";\n case 70:\n return \"C\";\n case 60:\n return \"D\";\n default:\n return \"F\";\n }\n }", "public String getGradeRange() {\n\t\treturn this.gradeRange;\n\t}", "char getGrade(int score) {\n\tchar grade;\n\tif(score>90) {\n\t\tgrade='A';\n\t}else if (score>80) {\n\t\t\tgrade='B';\n\t}else if(score>70) {\n\t\t\t\tgrade='C';\n\t}else if(score>50) {\n\t\tgrade='D';\n\t}else {\n\t\tgrade='F';\n\t}\n\treturn grade;\n\t\t\t\t\n\t\t\t}", "public String getOverallGrade(Student student) {\n\t\treturn null;\n\t}", "public int getEducationalGrade() {\n return educationalGrade;\n }", "public char getGradeLetter() {\n\t\t\n\t\t// get the current overall grade\n\t\tdouble overallAverage = averages[OVERALL];\n\t\t\n\t\t// check its value and return the correct letter\n\t\tif (overallAverage < 60) \n\t\t\treturn 'F';\n\t\telse if (overallAverage < 70) \n\t\t\treturn 'D';\n\t\telse if (overallAverage < 80) \n\t\t\treturn 'C';\n\t\telse if (overallAverage < 90) \n\t\t\treturn 'B';\n\t\telse\n\t\t\treturn 'A';\n\t}", "public int getFinalGrade() {\n return finalGrade;\n }", "public Byte getaGrade() {\n return aGrade;\n }", "public double getGPA(){\n if (grade == \"F-\")\n gpa =0.0 ;\n else if (grade == \"D\")\n gpa =1.0 ;\n else if (grade == \"C\")\n gpa =2.0 ;\n else if (grade == \"C+\")\n gpa =2.5 ;\n else if (grade == \"B\")\n gpa =3.0 ;\n else if (grade == \"B\")\n gpa =3.5 ;\n else if (grade == \"A\")\n gpa =4.0 ;\n return gpa;\n}", "public double getHighestGrade(){\n double highestGrade = 0;\n for (int i = 0; i<students.size(); i++){\n if (students.get(i).getGrades()> highestGrade)\n highestGrade = students.get(i).getGrades();\n }// end for\n return highestGrade;\n }", "public String getGrade(String id) {\n\t\treturn sqlSessionTemplate.selectOne(\"memberInfo.getGrade\", id);\r\n\t}", "public char getLetterGrade()\n\t{\n\t\tdouble grade;\n\t\t\n\t\tgrade = ((((((this.quiz1/QUIZ_MAX) + (this.quiz2/QUIZ_MAX) + (this.quiz3/QUIZ_MAX)) / 3) * QUIZ_WEIGHT) + ((this.midtermExam / MIDTERM_MAX) * MIDTERM_WEIGHT) + ((this.finalExam / FINAL_MAX) * FINAL_WEIGHT)) * 100);\n\t\t\n\t\tif (grade > 100 || grade < 0)\n\t\t{\n\t\t\tSystem.out.println(\"Not a valid grade\");\n\t\t}\n\t\telse if (grade >= 90)\n\t\t{\n\t\t\tfinalGrade = 'A';\n\t\t}\n\t\telse if (grade >= 80)\n\t\t{\n\t\t\tfinalGrade = 'B';\n\t\t}\n\t\telse if (grade >= 70)\n\t\t{\n\t\t\tfinalGrade = 'C';\n\t\t}\n\t\telse if (grade >= 60)\n\t\t{\n\t\t\tfinalGrade = 'D';\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinalGrade = 'F';\n\t\t}\n\t\t\n\t\treturn finalGrade;\n\t\t\t\n\t\t}", "private String getGradeForSubjectTotal(int subjectTotalInt , String standardValue) {\n\t \t\n\t\tStudent student = new Student();\n\t\tstudent.setStandard(standardValue);\n\t\tstudent.setStudentTotal(subjectTotalInt);\n\t\tString grade = null;\n\t\tList<StudentResult>gradeList = reportDAO.selectGradeForSubjectTotal(student);\n\t\tfor(StudentResult gradeValue : gradeList){\n\t\t\tString[] gradeArr = gradeValue.getStatus().split(\"-\");\n\t\t\tint minGradeRange = Integer.parseInt(gradeArr[0]);\n\t\t\tint maxRange = Integer.parseInt(gradeArr[1]);\n\t\t\tif(subjectTotalInt >= minGradeRange && subjectTotalInt <= maxRange){\n\t\t\t\tgrade = gradeValue.getGrade();\n\t\t\t}\n\t \t}\n\t\treturn grade;\n\t}", "public double getGrade(int index) {\r\n\r\n\t\tif (index >= 0 && index <= 2 ){\r\n\t\t\treturn grades[index];\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Index must be positive and less than 3\");\r\n\t\t\treturn index;\r\n\t\t}\t\t\r\n\r\n\t}", "public static double getOverAllGrade() {\n\t\t\n\t\tDecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.US);\n\t\tDecimalFormat grade = new DecimalFormat(\"##.0\", symbols);\n\t\t\n\t\tdouble overAllGrade = 0;\n\t\t\n\t\tfor (double d: Interface.allGrades) {\n\t\t\toverAllGrade += d;\n\t\t}\n\t\t\n\t\treturn Double.parseDouble(grade.format(overAllGrade));\n\t}", "@Override\r\n public double getGrade ()\r\n {\r\n if (evaluation != null) {\r\n return evaluation.grade;\r\n } else {\r\n // No real interest\r\n return Evaluation.ALGORITHM;\r\n }\r\n }", "public int getGrade() {\n\n float x = filterX.filter(this.getSensorValueX());\n float y = filterY.filter(this.getSensorValueY());\n float z = filterZ.filter(this.getSensorValueZ());\n\n this.setGrade((int) Math.toDegrees(Math.atan2(z, y)));\n\n this.setPrevX(x);\n this.setPrevY(y);\n this.setPrevZ(z);\n\n return grade;\n }", "public String getGradeName() {\n return gradeName;\n }", "public Grades convertToGradeChar(int mark)\n {\n if ((mark>=0) && (mark <40))\n { \n return Grades.F;\n } else if ((mark >= 40) && (mark <= 49))\n {\n return Grades.D;\n } else if ((mark >= 50) && (mark <= 59))\n {\n return Grades.C;\n } else if ((mark >= 60) && (mark <= 69))\n {\n return Grades.B;\n } else if ((mark >= 70) && (mark <= 100))\n {\n return Grades.A;\n } \n \n return Grades.X;\n }", "public String toString(Grade grade) {\n String Value = String.valueOf(grade.getValue());\n String final_value = teachingUnitName+\" : \" + Value + \"/20\";\n return final_value;\n }", "public String calculateGrade(double marks) {\n\t\tif (marks >= 90)\n\t\t\treturn \"A+\";\n\t\telse if (marks >= 85)\n\t\t\treturn \"A\";\n\t\telse if (marks >= 80)\n\t\t\treturn \"A-\";\n\t\telse if (marks >= 75)\n\t\t\treturn \"B+\";\n\t\telse if (marks >= 70)\n\t\t\treturn \"B\";\n\t\telse if (marks >= 65)\n\t\t\treturn \"B-\";\n\t\telse if (marks >= 60)\n\t\t\treturn \"C+\";\n\t\telse if (marks >= 55)\n\t\t\treturn \"C\";\n\t\telse if (marks >= 50)\n\t\t\treturn \"C-\";\n\t\telse if (marks >= 45)\n\t\t\treturn \"D+\";\n\t\telse if (marks >= 40)\n\t\t\treturn \"D\";\n\t\telse\n\t\t\treturn \"F\";\n\t}", "public void grade() {\n System.out.print(\"\\nEnter a grade: \");\n double numberGrade = in.nextDouble();\n final double A_MAX = 100;\n final double A_MIN = 90;\n final double B_MIN = 80;\n final double C_MIN = 70;\n final double D_MIN = 60;\n final double F_MIN = 0;\n if (numberGrade >= A_MIN && numberGrade <= A_MAX) {\n System.out.println(\"\\nYou receive an A.\\n\");\n } else if (numberGrade >= B_MIN && numberGrade <= A_MIN) {\n System.out.println(\"\\nYou receive a B.\\n\");\n } else if (numberGrade >= C_MIN && numberGrade <= B_MIN) {\n System.out.println(\"\\nYou receive a C.\\n\");\n } else if (numberGrade >= D_MIN && numberGrade <= C_MIN) {\n System.out.println(\"\\nYou receive a D.\\n\");\n } else if (numberGrade >= F_MIN && numberGrade <= D_MIN) {\n System.out.println(\"\\nYou receive a F.\\n\");\n } else if (numberGrade > 100) {\n System.out.println(\"\\nGrades above 100 are invalid.\\n\");\n } else if (numberGrade < 0) {\n System.out.println(\"\\nGrades below 0 are invalid.\\n\");\n }\n }", "private String calcFinalGrade() {\n\t\tString finalGrade;\n\t\t\n\t\tif (scorePercent >= .895)\n\t\t\tfinalGrade = \"A\";\n\t\telse if(scorePercent >= .795 && scorePercent < .895)\n\t\t\tfinalGrade = \"B\";\n\t\telse if(scorePercent >= .685 && scorePercent < .795)\n\t\t\tfinalGrade = \"C\";\n\t\telse if (scorePercent > .585 && scorePercent < .685)\n\t\t\tfinalGrade = \"D\";\n\t\telse\n\t\t\tfinalGrade = \"F\";\n\n\t\treturn finalGrade;\n\t}", "public String obtemGrade(Integer idJogador) throws RemoteException;", "public String getGrade(){\n if (avgQuizzes <= 59.49)\n grade = \"F-\";\n else if (avgQuizzes <= 69.49)\n grade = \"D\";\n else if (avgQuizzes <= 74.49)\n grade = \"C\";\n else if (avgQuizzes <= 79.49)\n grade = \"C+\";\n else if (avgQuizzes <= 84.49)\n grade = \"B\";\n else if (avgQuizzes <= 89.49)\n grade = \"B\";\n else if (avgQuizzes <= 100.59)\n grade = \"A\";\n return grade;\n}", "private String convertNumericToLetter (float grade) {\r\n\r\n // letter grades are indexed by grade point\r\n // the letter grade is added (+1) to the gradeCount array\r\n if(grade >= 93 && grade <= 100) { gradeCount[13] += 1; return grades[13]; } // [13] is A+\r\n if(grade >= 86 && grade < 93) { gradeCount[12] += 1; return grades[12]; } // [12] is A\r\n if(grade >= 80 && grade < 86) { gradeCount[11] += 1; return grades[11]; } // .\r\n if(grade >= 77 && grade < 80) { gradeCount[10] += 1; return grades[10]; } // .\r\n if(grade >= 73 && grade < 77) { gradeCount[9] += 1; return grades[9]; } // .\r\n if(grade >= 70 && grade < 73) { gradeCount[8] += 1; return grades[8]; } // .\r\n if(grade >= 67 && grade < 70) { gradeCount[7] += 1; return grades[7]; } // .\r\n if(grade >= 63 && grade < 67) { gradeCount[6] += 1; return grades[6]; } // .\r\n if(grade >= 60 && grade < 63) { gradeCount[5] += 1; return grades[5]; } // .\r\n if(grade >= 57 && grade < 60) { gradeCount[4] += 1; return grades[4]; } // .\r\n if(grade >= 53 && grade < 57) { gradeCount[3] += 1; return grades[3]; } // .\r\n if(grade >= 50 && grade < 53) { gradeCount[2] += 1; return grades[2]; } // .\r\n if(grade >= 35 && grade < 50) { gradeCount[1] += 1; return grades[1]; } // [1] is F\r\n else { gradeCount[0] += 1; return grades[0]; } // [0] is F-\r\n }", "public static String getGrade(SalaryGrade[] salaryGrades, int salary) {\n\t\treturn null;\n\t}", "Grade grade(\n final Student student) {\n ////\n return Optional.of(student).map(grades::get).orElseThrow(() -> new NoSuchElementException(student.toString()));\n }", "public char calculate() {\n int average = average();\n\n if (average >= 90) {\n return Grade.O;\n } else if (average >= 80) {\n return Grade.E;\n } else if (average >= 70) {\n return Grade.A;\n } else if (average >= 55) {\n return Grade.P;\n } else if (average >= 40) {\n return Grade.D;\n } else {\n return Grade.T;\n }\n }", "public char calculate(){\n int total = 0;\n char grade;\n for(int i = 0; i<this.testScores.length; i++){\n total += this.testScores[i];\n }\n total = (total/this.testScores.length);\n \n if(total>=90 && total<=100)\n grade = 'O';\n else if(total<90 && total>=80)\n grade = 'E';\n else if(total<80 && total>=70)\n grade = 'A';\n else if(total<70 && total>=55)\n grade = 'P';\n else if(total<55 && total>=40)\n grade = 'D';\n else\n grade = 'T';\n \n return grade;\n }", "public GradeInfo[] getGradeInfo() {\n return gradeInfo;\n }", "public int getEndGrade(String gradeRange) {\n\t\tGradeRangeHelper grh = (GradeRangeHelper) gradeRangeMap.get(gradeRange);\n\t\tif (grh == null) {\n\t\t\treturn -1;\n\t\t}\n\t\t// prtln (\"getEndGrade for \" + grh.label + \": \" + grh.maxGrade);\n\t\treturn grh.maxGrade;\n\t}", "private String calcGrade(String perc)\r\n\t {\r\n\t\t float percentage = Float.parseFloat(perc);\r\n\t\t if (percentage > 75) return \"A\";\r\n\t\t else if (percentage>=60 && percentage < 75) return \"B\";\r\n\t\t else if (percentage>=45 && percentage < 60) return \"c\";\r\n\t\t else if (percentage>=35 && percentage < 45) return \"D\";\r\n\t\t else \r\n\t\t\t return \"F\";\r\n\t }", "public double getLowestGrade(){\n double lowestGrade = 100;\n for (int i = 0; i<students.size(); i++){\n if (students.get(i).getGrades()< lowestGrade)\n lowestGrade = students.get(i).getGrades();\n } // end for\n return lowestGrade;\n }", "public double computeHeuristicGrade();", "public Employee getHRhead();", "public float calculateGrade() {\r\n\t\t// Creating variables for correct answers, total questions and the grade itself.\r\n\t\tint correct = 0;\r\n\t\tint total = correctAnswers.size();\r\n\t\tfloat grade = 0;\r\n\t\t// Loop that goes around the list with user's answers and correct answers.\r\n\t\tfor (int i = 0; i < correctAnswers.size(); i++) {\r\n\t\t\t// Creating variable result which compare the elements from the two list index\r\n\t\t\t// by index.\r\n\t\t\tint result = (userAnswers.get(i).compareTo(correctAnswers.get(i)));\r\n\t\t\t// Condition that increments the variable correct with one every time when there\r\n\t\t\t// is match between the lists' elements by index.\r\n\t\t\tif (result == 0) {\r\n\t\t\t\tcorrect++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Calculating the grade of the student.\r\n\t\tgrade = (float) ((double) correct / total * 100);\r\n\t\treturn grade;\r\n\t}", "public Employee getStudentOnId(int id);", "java.lang.String getEmployeeName();", "public int getExamGradeId() {\n return examGradeId;\n }", "public void setGrade (double grade){\n this.grade = grade;\n }", "@Override\r\n\tpublic OaJybChronicle GetgradeStudent(int student_id) {\n\t\treturn oaJybChronicleMapper.GetgradeStudent(student_id);\r\n\t}", "@Override\r\n\tpublic Grade findGradeDetails(Long gradeId) {\r\n\t\treturn gradeRepository.findOne(gradeId);\r\n\t}", "private HashMap getGradeRangeMap() {\n\t\tHashMap map = new HashMap();\n\t\tGradeRangeHelper grh;\n\t\tgrh = new GradeRangeHelper(\"Primary elementary\", \"DLESE:Primary elementary\", 0, 2);\n\t\tmap.put(grh.value, grh);\n\t\tgrh = new GradeRangeHelper(\"Intermediate elementary\", \"DLESE:Intermediate elementary\", 3, 5);\n\t\tmap.put(grh.value, grh);\n\t\tgrh = new GradeRangeHelper(\"Middle school\", \"DLESE:Middle school\", 6, 8);\n\t\tmap.put(grh.value, grh);\n\t\tgrh = new GradeRangeHelper(\"High school\", \"DLESE:High school\", 9, 12);\n\t\tmap.put(grh.value, grh);\n\t\treturn map;\n\t}", "private void assignIntoGrade() {\n }", "public int getEnergy(){\n\t\tEnumeration students = table.keys(); \n\t\tint totalEnergy=0;\n\t\tHashtable<String,String> assignedProjects= new Hashtable<String,String>();\n\t\tint totalpenalties =0;\n\t while(students.hasMoreElements()) {\n\t CandidateAssignment cand = table.get((String) students.nextElement()); \n\t totalEnergy+=cand.getEnergy();\n\t \n\t String project = cand.getAssignedProject(); \n\t if(!assignedProjects.containsKey(project)){\n\t \t assignedProjects.put(project, project);\n\t }else{\n\t \t totalpenalties+=penalty; \n\t }\n\t }\n\t\treturn totalEnergy+ totalpenalties;\n\t}", "public char getLetterGrade() {\r\n\t\treturn letter;\r\n\t}", "public void gpaConverter() {\r\n\t\tdouble numGPA = this.getNumGrade();\r\n\t\ttry {\r\n\t\t\tif (numGPA >= 4.0) {\r\n\t\t\t\tthis.letterGrade = \"A\"; }\r\n\t\t\tif (3.7 <= numGPA && numGPA < 4.0) {\r\n\t\t\t\tthis.letterGrade = \"A-\"; \r\n\t\t\t}\r\n\t\t\tif (3.3 <= numGPA && numGPA < 3.7) {\r\n\t\t\t\tthis.letterGrade = \"B+\";\r\n\t\t\t}\r\n\t\t\tif (3.0 <= numGPA && numGPA < 3.3) {\r\n\t\t\t\tthis.letterGrade = \"B\";\r\n\t\t\t}\r\n\t\t\tif (2.7 <= numGPA && numGPA < 3.0) {\r\n\t\t\t\tthis.letterGrade = \"B-\";\r\n\t\t\t}\r\n\t\t\tif (2.3 <= numGPA && numGPA < 2.7) {\r\n\t\t\t\tthis.letterGrade = \"C+\";\r\n\t\t\t}\r\n\t\t\tif (2.0 <= numGPA && numGPA < 2.3) {\r\n\t\t\t\tthis.letterGrade = \"C\";\r\n\t\t\t}\r\n\t\t\tif (1.7 <= numGPA && numGPA < 2.0) {\r\n\t\t\t\tthis.letterGrade = \"C-\";\r\n\t\t\t}\r\n\t\t\tif (1.3 <= numGPA && numGPA < 1.7) {\r\n\t\t\t\tthis.letterGrade = \"D+\";\r\n\t\t\t}\r\n\t\t\tif (1.0 <= numGPA && numGPA < 1.3) {\r\n\t\t\t\tthis.letterGrade = \"D\";\r\n\t\t\t}\r\n\t\t\tif (0.7 <= numGPA && numGPA < 1.0) {\r\n\t\t\t\tthis.letterGrade = \"D-\";\r\n\t\t\t}\r\n\t\t\tif (0.0 <= numGPA && numGPA < 0.7) {\r\n\t\t\t\tthis.letterGrade = \"F\";\r\n\t\t\t} \r\n\t\t}\r\n\t\tcatch (InputMismatchException e) {\r\n\t\t\tSystem.out.print(\"Input Mismatch Exception \");\r\n\t\t}\r\n\t\tcatch (NumberFormatException e) {\r\n\t\t\tSystem.out.print(\"Number Format Exception \");\r\n\t\t}\r\n\t\tcatch (Exception e) {}\r\n\t}", "public static int grading(int a){\n if (a<=60) {\n System.out.println (\"F\");\n }\n else if (a<=70) {\n System.out.println (\"D\");\n }\n else if (a<=80) {\n System.out.println (\"C\");\n }\n else if (a<=90) {\n System.out.println (\"B\");\n }\n else if (a<=100) {\n System.out.println (\"A\");\n }\n else {\n System.out.println (\"You have gotten a grade greater than 100, you are a true ling ling\");\n }\n\n return a;\n\n }", "public char calculate() {\n int average = java.util.stream.IntStream.of(testScores).sum() / testScores.length;\n return Grades.getGrade(average);\n }", "public double getAverageGrade(){\n double totalGrade = 0;\n double averageGrade = 0;\n // for loop to iterate over the array\n for(int i = 0; i<students.size(); i++){\n totalGrade += students.get(i).getGrades();\n } // end for\n \n averageGrade = totalGrade / students.size();\n return averageGrade;\n }", "@Override\n\tpublic List<Road_grade> getAllRoadGrade() {\n\t\treturn this.roadDao.getAllRoadGrade();\n\t}", "public String getLetterGrade(double average){\r\n\r\n\t\tif (average >= 93){\r\n\t\t\treturn \"A\";\r\n\t\t}else if(average >= 90 && average <= 92.9){\r\n\t\t\treturn \"A-\";\r\n\t\t}else if(average >= 87 && average <= 89.9){\r\n\t\t\treturn \"B+\";\r\n\r\n\t\t}else if(average >= 83 && average <= 86.9){\r\n\t\t\treturn \"B\";\r\n\t\t}else if(average >= 80 && average <= 82.9){\r\n\t\t\treturn \"B-\";\r\n\r\n\t\t}else if(average >= 77 && average <= 79.9){\r\n\t\t\treturn \"C+\";\r\n\t\t}else if(average >= 73 && average <= 76.9){\r\n\t\t\treturn \"C\";\r\n\r\n\t\t}else if(average >= 70 && average <= 72.9){\r\n\t\t\treturn \"C-\";\r\n\t\t}else if(average >= 67 && average <= 69.9){\r\n\t\t\treturn \"D+\";\r\n\r\n\r\n\t\t}else if(average >= 63 && average <= 66.9){\r\n\t\t\treturn \"D\";\r\n\r\n\t\t}else if(average >= 60 && average <= 62.9){\r\n\t\t\treturn \"D-\";\r\n\r\n\t\t}else if ( average >= 0 && average < 60){\r\n\r\n\t\t\treturn \"F\";\r\n\t\t}\r\n\t\treturn \"I\";\t // I for incomplete\t\r\n\t}", "public String toString() { return \"Name: \" + firstName + ' ' + lastName + \"\\tGrade: \" + grade; }", "public void setGrade(int grade)\n {\n this.grade = grade;\n }", "public String toString(){\n\t\treturn \"The student \"+Student.getFirstName()+\" \"+Student.getFamilyName()+\" has average of \"+averageGrade();\r\n\t}", "public static void main(String[] args) {\n\n Scanner s = new Scanner(System.in);\n System.out.println(\"Provide a grade for Physics:\");\n int P = s.nextInt();\n System.out.println(\"Provide a grade for Chemistry:\");\n int C = s.nextInt();\n System.out.println(\"Provide a grade for Biology:\");\n int B = s.nextInt();\n System.out.println(\"Provide a grade for Mathematics:\");\n int M = s.nextInt();\n System.out.println(\"Provide a grade for Computer:\");\n int Com = s.nextInt();\n\n int percentage = (P+C+B+M+Com)/5;\nString grade = \"\";\n\n if (percentage>= 90) {\n grade = \"A\";\n }else if (percentage>= 80) {\n grade = \"B\";\n }else if (percentage>= 70) {\n grade = \"C\";\n }else if (percentage>= 60) {\n grade = \"D\";\n }else if (percentage>= 40) {\n grade = \"E\";\n }else if (percentage < 40) {\n grade = \"F\";\n }\n System.out.println(\"Percentage: \" +percentage);\n System.out.println(\"Grade is : \"+grade);\n\n\n }", "public int getGrade(char type, int num)\n\t{\n\t\tint iGrade;\n\t\tswitch(type)\n\t\t{\n\t\t\tcase 'q':\n\t\t\tcase 'Q':\n\t\t\t\tif(quizzesGraded>=num)\n\t\t\t\t{\n\t\t\t\t\tswitch(num)\n\t\t\t\t\t{\n\t\t\t\t\tcase 1:\n\t\t\t\t\tiGrade=quiz1;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\tiGrade=quiz2;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\tiGrade=quiz3;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\tiGrade=quiz4;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 5:\n\t\t\t\t\tiGrade=quiz5;\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\tiGrade=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tiGrade=-1;\n\t\t\t\t}\n\t\t\t\tbreak;\t\n\t\t\tcase 'p':\n\t\t\tcase 'P':\n\t\t\t\tif(projGraded>=num)\n\t\t\t\t{\n\t\t\t\t\tswitch(num)\n\t\t\t\t\t{\n\t\t\t\t\tcase 1:\n\t\t\t\t\tiGrade=proj1;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\tiGrade=proj2;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\tiGrade=proj3;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\tiGrade=proj4;\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\tiGrade=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tiGrade=-1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\tcase 'T':\n\t\t\t\tif(testGraded>=num)\n\t\t\t\t{\n\t\t\t\t\tswitch(num)\n\t\t\t\t\t{\n\t\t\t\t\tcase 1:\n\t\t\t\t\tiGrade=test1;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\tiGrade=test2;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\tiGrade=test3;\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\tiGrade=-1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tiGrade=-1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'f':\n\t\t\tcase 'F':\n\t\t\t\tif(recordedFinalExam==true)\n\t\t\t\t{\n\t\t\t\tiGrade=finalExam;\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tiGrade=-1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tiGrade= -1;\n\t\t\t\t\n\t\t}\n\t\t\n\t\treturn iGrade;\n\t}", "int getStudentAge();", "public void setGrade(int grade) {\n this.grade = grade;\n }", "public void setGrade(int grade) {\n this.grade = grade;\n }", "public void setGrade(int grade) {\n this.grade = grade;\n }", "public void setGrade(int grade) {\n this.grade = grade;\n }", "@Override\r\n\tpublic String employeeRole() {\n\t\treturn ((WebUserRole) webContext.get()).getEmployee();\r\n\t}", "public static char findLetterGrade(double average) {\n\t\tchar letterGrade = 0; // letter corresponding to the average number\n\t\t\n\t\tif (average >= 90) {\n\t\t\tletterGrade = 'A';\n\t\t}else if (average >= 80) {\n\t\t\tletterGrade = 'B';\n\t\t}else if (average >= 70) {\n\t\t\tletterGrade = 'C';\n\t\t}else if (average >= 60) {\n\t\t\tletterGrade = 'D';\n\t\t}else {\n\t\t\tletterGrade = 'F';\n\t\t}\n\t\t\n\t\treturn letterGrade; // returns a lettergrade\n\t}", "public String findGradeFormatByID (int gradeID);", "public String getEmployeeDepartment(){\n return profile.getDepartment();\n }", "public void grade() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// grade Method initialized\t\t\t\t\t\t\t\t\t\t\t\t\r\n System.out.print(\"Average Marks of a Student is \"+ average+\" and \");\t\t\t\t\t\t\t\t\t\t\t// This will print out the argument and ends the line\r\n if(average>81)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if loop expression, to check the condition\r\n {System.out.print(\"Grade is A : Pass\");}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then print GRADE A\r\n else if(average>=61 && average<=80)\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t// nested else if loop expression, to check the condition\r\n {System.out.print(\"Grade is B : Pass\");}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then print GRADE B\r\n else if (average>41 && average<=60)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t// nested else if loop expression, to check the condition\r\n {System.out.print(\"Grade is C : Pass\");}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then print GRADE C\r\n else if (average>21 && average <=40)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// nested else if loop expression, to check the condition\r\n {System.out.println(\"Grade is D : Fail\"); }\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then print GRADE D\r\n else if (average<20)\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// nested else if loop expression, to check the condition\r\n {System.out.println(\"Fail\"); }\t}", "@Test\n\tpublic void testAssignGrade() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertTrue(grade.equals(new Integer(90)));\n\t}", "public double getGradeAverage() {\n int gradesTotal = 0;\n for (int grade : grades) {\n gradesTotal += grade;\n }\n return gradesTotal / grades.size();\n }", "public String checkGrade(String name,int year){\n \n String checkVar = new String();\n \n try{\n \n //Retriving value form 'grade' table\n String query = \"SELECT * from grade WHERE studentName = '\"+ name +\"' AND stuYear = '\"+year+\"'\";\n rs = st.executeQuery(query);\n \n while (rs.next()){\n \n if(rs.getString(\"grade\").equals(\"Choose Achievement\")){\n checkVar = \"Not Graded\";\n }else{\n checkVar = \"Graded\";\n }\n }\n }catch(Exception ex){\n System.out.println(\"Error in display grade \"+ ex);\n }\n \n return checkVar;\n }", "public static void main(String[] args) {\n\n int grade = 100;\n\n if (grade >= 90 && grade <= 100){\n System.out.println(\"Excellent\");\n }\n if (grade >= 70 && grade < 90 ){\n System.out.println(\"Good\");\n }\n if (grade >= 60 && grade < 70){\n System.out.println(\"Pass\");\n }\n if (grade < 60 && grade >= 0){\n System.out.println(\"Fail\");\n }\n if (grade > 100 || grade < 0){\n System.out.println(\"Invalid grade. Please write your grade between 1-100\");\n }\n\n\n\n\n\n\n }", "public static void examGrade(Double mark) {\n if (mark < 50) {\r\n System.out.println(\"F\");\r\n }\r\n if (mark > 50 && mark < 59) {\r\n System.out.println(\"D\");\r\n }\r\n if (mark > 60 && mark < 69) {\r\n System.out.println(\"C\");\r\n }\r\n if (mark > 70 && mark < 79) {\r\n System.out.println(\"B\");\r\n }\r\n if (mark > 80) {\r\n System.out.println(\"A\");\r\n }\r\n }", "int fetchLevelOfStudent(Student student , Subject subject);", "public static int convertLetterGradeToNumber(char letter) {\n int value = -1;\n\n if (letter >= 'A' && letter <= 'D') {\n // Subtract 1 from F because there is no grade 'E'\n value = ('F' - 1) - letter;\n } else if (letter == 'F') {\n value = 0;\n }\n\n return value;\n }", "public void setGrade(int grade){ ///update com.company.students grade\n this.grade = grade;\n }", "public double getGPA(){\r\n \tif ( numCredits == 0 ){\r\n \t\tSystem.out.println( \" Student has not earned any credit yet \");\r\n \t\treturn 0 ;\r\n \t}\r\n double GPA = totalGradePoints/numCredits;\r\n GPA *= 100;\r\n GPA = Math.round(GPA);\r\n \tGPA /= 100;\r\n \treturn GPA;\r\n }", "public double getAssignee() {\n return assignee;\n }", "public Integer getSlQltGradeCode() {\n return slQltGradeCode;\n }", "@Override\r\n\tpublic Grade findGradeByName(String grade, Long companyId) {\r\n\t\treturn gradeRepository.findGradeByName(grade, companyId);\r\n\t}", "public void setExamGrade()\n {\n examGrade = gradeCalculator();\n }", "public static void main(String[] args) {\n Scanner in = new Scanner (System.in);\n System.out.print(\"Enter your final average [0-100]: \");\n double finalGrade;\n finalGrade = in.nextDouble();\n Grade finalLetter;\n if(finalGrade >= Grade.A.Min())\n {\n finalLetter = Grade.A;\n }\n else if (finalGrade >= Grade.B.Min())\n {\n finalLetter = Grade.B;\n }\n else if (finalGrade >= Grade.C.Min())\n {\n finalLetter = Grade.C;\n }\n else if(finalGrade >= Grade.D.Min())\n {\n finalLetter = Grade.D;\n }\n else\n {\n finalLetter = Grade.F;\n }\n System.out.printf (\"A final average of %f translates to a letter grade of %s\\n\", finalGrade, finalLetter);\n }", "public double introJava(double ass1,double ass2,double ass3,double ass4,double ass5){\n double a = ((5%100)*ass1)/100;\n double b = ((20%100)*ass2)/100;\n double c = ((20%100)*ass3)/100;\n double d = ((25%100)*ass4)/100;\n double e = ((30%100)*ass5)/100;\n double grade = ((a+b+c+d+e)/8);//*100; \n return grade;\n }" ]
[ "0.7071678", "0.654725", "0.640718", "0.6365599", "0.63357234", "0.6328229", "0.63001865", "0.62714934", "0.6243021", "0.6230514", "0.6194265", "0.61561626", "0.6152966", "0.6132034", "0.6129283", "0.60766506", "0.60675234", "0.6035738", "0.6029521", "0.5935364", "0.59123015", "0.5880508", "0.58752453", "0.58720636", "0.5865506", "0.5859633", "0.58563256", "0.58466786", "0.5844604", "0.5841335", "0.58331686", "0.5822489", "0.5815378", "0.5810806", "0.58060807", "0.5787463", "0.5766326", "0.5756265", "0.5753071", "0.5735971", "0.5729328", "0.57243115", "0.5711245", "0.570633", "0.5685441", "0.5592563", "0.5590509", "0.5587197", "0.55757564", "0.55542123", "0.55345684", "0.55204356", "0.5511291", "0.5507743", "0.5493092", "0.5447082", "0.54110676", "0.5406484", "0.5400998", "0.5400448", "0.5399572", "0.5371909", "0.5369586", "0.53611666", "0.5354922", "0.53426015", "0.53338736", "0.53330415", "0.531808", "0.5300103", "0.52855486", "0.5266705", "0.5266433", "0.52550495", "0.52506036", "0.52459633", "0.5244114", "0.5244114", "0.5244114", "0.5244114", "0.5224316", "0.5221853", "0.5220139", "0.5215716", "0.52089345", "0.52066743", "0.52008873", "0.51909935", "0.5185513", "0.5175322", "0.5169745", "0.5167937", "0.5164698", "0.51560986", "0.5153776", "0.5151997", "0.5140395", "0.51391405", "0.51382154", "0.5137131" ]
0.6284306
7
Set Employee Job Data
public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setJob(Job jobNum){\n job = jobNum;\n }", "public void setJob_Customer(CustomerDataObject job_Customer) {\r\n this.job_Customer = job_Customer;\r\n }", "public void setEmployee(String employee)\r\n/* 43: */ {\r\n/* 44:47 */ this.employee = employee;\r\n/* 45: */ }", "void setJobName(String jobName);", "public void setJobId( int jobId ) ;", "public void setHC_JobDataChange_ID (int HC_JobDataChange_ID);", "public static void doStuff(){\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\n\t\t//As we omitted the argument, this will just create a new numeric ID\n\t\tEntity employee = new Entity(\"Employee\");\n\n\t\temployee.setProperty(\"firstName\", \"Patrick\");\n\t\temployee.setProperty(\"lastName\", \"MacDowell\");\n\n\t\tDate hireDate = new Date();\n\t\temployee.setProperty(\"hireDate\", hireDate);\n\n\t\temployee.setProperty(\"attendedHrTraining\", true);\n\n\t\tdatastore.put(employee);\n\t}", "public void setEmployee (jkt.hms.masters.business.MasEmployee employee) {\n\t\tthis.employee = employee;\n\t}", "@Override\n public void setEmployees() throws EmployeeCreationException {\n\n }", "public void setJob(String job) {\n this.job = job;\n }", "public ZooEmployee(String name, String job) {\n this.name = name;\n this.job = job;\n this.arrived = false;\n }", "public void setEmployees(Employee[] employees) {\n\t\tthis.employees = employees;\n\t}", "protected void setDataInForm(Long jobID) {\n if (jobID == null) {\n this.stepsValues = NewTaskService.getInitList();\n this.jobName = null;\n pickListBean.initDualList();\n } else {\n Job job = jobService.getByIdWithCollections(jobID);\n this.stepsValues = NewTaskService.getJobStepValuesList(job); \n this.jobName = job.getJobName(); \n pickListBean.setDualListByJob(job);\n }\n }", "@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}", "public void setJob(Job job) throws JobEvent, InterruptedException {\n this.job = job;\n\n try {\n\n job.run();\n\n }\n catch (JobEvent | InterruptedException rethrow)\n {\n this.job = null;\n throw rethrow;\n }\n\n }", "public void updateEmployee(Employe employee) {\n\t\t\n\t}", "public void SetJobByFileLine(String[] jobInfo) {\r\n this.setJobID(Integer.parseInt(jobInfo[0]));\r\n this.setJobPriority(Integer.parseInt(jobInfo[1]));\r\n this.setJobInTime(Integer.parseInt(jobInfo[2]));\r\n this.setJobInstructionNum(Integer.parseInt(jobInfo[3]));\r\n Log.Info(\"检测后备作业\", String.format(\"正在加载后备作业:%d,优先级:%d,进入时间:%d,指令数:%d\", jobID, jobPriority, jobInTime, jobInstructionNum));\r\n instructions = new ArrayList<>(jobInstructionNum);\r\n this.data = new short[jobInstructionNum];\r\n }", "public void setEmployeeId(long employeeId);", "public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}", "public void setJob(Job job) throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(jobChannel, job.ordinal(), 2);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to set JOB for the robot\", e);\n \t\t}\n \t}", "private void setEmployeeID() {\n try {\n employeeID = userModel.getEmployeeID(Main.getCurrentUser());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public JobData(Job job,\n JobContext jContext,\n TaskAttemptContext tContext,\n ManifestCommitter committer) {\n this.job = job;\n this.jContext = jContext;\n this.tContext = tContext;\n this.committer = committer;\n conf = job.getConfiguration();\n }", "public void setEmployee(Employee employee) {\r\n this.employee = employee;\r\n\r\n idLabel.setText(Integer.toString(employee.getId()));\r\n firstNameField.setText(employee.getFirstName());\r\n lastNameField.setText(employee.getLastName());\r\n industryField.setText(employee.getIndustry());\r\n workTypeField.setText(employee.getWorkType());\r\n addressField.setText(employee.getAddress());\r\n }", "@Override\n\tpublic void updateEmployee() {\n\n\t}", "public void setEmployees(int _employees){\n employees = _employees;\n }", "public void updateemployee(Employeee em) {\n\t\temployeerepo.save(em);\n\t}", "public void setEmployeeid(long employeeid)\n {\n this.employeeid = employeeid;\n }", "public void setEmployees(ArrayList<Employee> employees) { \r\n this.employees = employees;\r\n }", "@Override\n\tpublic void submitJobEmployee(int je_id, String caller) {\n\n\t}", "@Override\n public void setDepartmentEmployee(Employee employee, int departmentId) {\n\n }", "public getEmployee_args(getEmployee_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.userId = other.userId;\n this.companyId = other.companyId;\n }", "public void setJobProgress(JobProgress jobProgress) {\n this.jobProgress = jobProgress;\n }", "public void setEmployeeID(int employeeID) { this.employeeID = employeeID; }", "public Large_Employee(\n String mex_code,\n String givenName,\n String surName,\n int employeeID,\n String jobName) {\n this.employeeID = employeeID;\n this.mex_code = mex_code;\n this.givenName = givenName;\n this.surName = surName;\n this.name = givenName +\" \"+surName;\n this.jobName = jobName;\n }", "public void setEmployeeId(long employeeId) {\n this.employeeId = employeeId;\n }", "public void assignTask(String employee, String taskName) {\n \tSystem.out.println(\"Inside assignDeadline()\");\n \t//Task t = new Task();\n \tint count = 0;\n \tfor(Task task : toDoList) {\n \t\tif(task.getTaskName().equals(taskName)) {\n \t\t\t//t = task;\n \t\t\ttask.setEmployee(employee);\n \t\t\ttoDoList.set(count, task);\n \t\t}\n \t\tcount++;\n \t}\n \tSystem.out.println(\"Task Assigned to Employee Sucessfully\");\n \t\n \tdisplay();\n }", "public static void EmployeeJob() {\r\n\t\t\r\n\t\tJLabel e4 = new JLabel(\"Employee's Job:\");\r\n\t\te4.setFont(f);\r\n\t\tGUI1Panel.add(e4);\r\n\t\tGUI1Panel.add(employeeJobType);\r\n\t\te4.setHorizontalAlignment(JLabel.LEFT);\r\n\t\tGUI1Panel.add(Box.createHorizontalStrut(5));\r\n\t}", "public void setEmployee(int index, Person emp) {\n if (index >= 0 && index < employees.length) {\n employees[index] = emp;\n }\n }", "public void setEmpleado(Empleado empleado)\r\n/* 188: */ {\r\n/* 189:347 */ this.empleado = empleado;\r\n/* 190: */ }", "public void updateEmployees(List<Employe> employees) {\n\t\t\n\t}", "public void setHadoopJob( Job currJob ) ;", "protected void setupJob(JobData jobData) throws IOException {\n ManifestCommitter committer = jobData.committer;\n JobContext jContext = jobData.jContext;\n TaskAttemptContext tContext = jobData.tContext;\n describe(\"\\nsetup job\");\n try (DurationInfo d = new DurationInfo(LOG,\n \"setup job %s\", jContext.getJobID())) {\n committer.setupJob(jContext);\n }\n setupCommitter(committer, tContext);\n describe(\"setup complete\");\n }", "public void update(Employee e) {\n\t\t\r\n\t}", "public void assignData( final String _arg ) throws Exception {\n\t\t\t\n\t\t\tthis.appTda_.assignData( _arg );\n\t\t}", "@Override\n\tpublic void ModifyEmployee() {\n\t\t\n\t}", "@Override\n\tpublic void updateEmployee(Employee employee) {\n\t\tEmployee updateEmployee = em.find(Employee.class, employee.getId());\n\t\t\n\t\tem.getTransaction().begin();\n\t\tem.merge(employee);\n\t\tem.getTransaction().commit();\n\t\tSystem.out.println(\"Data Updated successfully\");\n\t\tlogger.log(Level.INFO, \"Data Updated successfully\");\n\n\t}", "@Override\n\tpublic void setJobId(long jobId) {\n\t\tmodel.setJobId(jobId);\n\t}", "public void setJob_Designer(EmployerDataObject job_Designer) {\r\n this.job_Designer = job_Designer;\r\n }", "public void setJob_StatusCheck(StatusCheckDataObject job_StatusCheck) {\r\n this.job_StatusCheck = job_StatusCheck;\r\n }", "public EmployeeSet()\n\t{\n\t\tnumOfEmployees = 0;\n\t\temployeeData = new Employee[10];\n\t}", "public Builder setEmployee(grpc.messages.Messages.Employee value) {\n if (employeeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n employee_ = value;\n onChanged();\n } else {\n employeeBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setEmployee(grpc.messages.Messages.Employee value) {\n if (employeeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n employee_ = value;\n onChanged();\n } else {\n employeeBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void updateEmp(Emp emp) {\n\t\t\n\t}", "@Override\r\n\tpublic void updateEmployee(Employee t) {\n\t\t\r\n\t}", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "@Override\n\tpublic void resAuditJobEmployee(int je_id, String caller) {\n\n\t}", "private void initData() {\n\t\tIntent intent = getIntent();\n\t\tjob = (Job) intent.getSerializableExtra(\"job\");\n\t\tedt_content.setText(job.getJobContent());\n\t\tedt_course.setText(job.getCourseName());\n\t}", "@Override\n\tpublic void resSubmitJobEmployee(int je_id, String caller) {\n\n\t}", "private void saveEmployee(Employee employee) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(ReportContract.EmployeeEntry.COLUMN_KEY, employee.getKey());\n contentValues.put(ReportContract.EmployeeEntry.COLUMN_VALUE, employee.getValue());\n\n getContext().getContentResolver().insert(\n ReportContract.EmployeeEntry.CONTENT_URI,\n contentValues\n );\n\n }", "@Override\n\tpublic void setEmpId(long empId) {\n\t\t_employee.setEmpId(empId);\n\t}", "void assign (int departmentId, AssignEmployeeRequest empList);", "public ManageBranchEmployee(Data data,PrintData printData){\n this.data = data;\n this.printData = printData;\n trackingNumbers = new ArrayList<>();\n }", "public void createemployee(Employeee em) {\n\t\temployeerepo.save(em);\n\t}", "private void DataCreator() {\n\t\t// Creation of employees\n\t\tEmployee emp1 = new Employee(\"Akos\", \"Toth\", true);\n\t\tEmployee emp2 = new Employee(\"Gabor\", \"Kovacs\", true);\n\t\tEmployee emp3 = new Employee(\"Adam\", \"Ciceri\", true);\n\n\t\tempRep.save(emp1);\n\t\tempRep.save(emp2);\n\t\tempRep.save(emp3);\n\t\tLOGGER.info(\"TEST DATA: Employees saved!\");\n\n\t\t// creation of tasks\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t\n\t\ttry {\n\t\t\tTaskStates task1State = new TaskStates(\"CLOSED\");\n\t\t\tProjectTask task1 = new ProjectTask(\n\t\t\t\t\t\"Modelling of system\",\n\t\t\t\t\t\"Engineering Systems Analyst\",\n\t\t\t\t\t\"Engineering Systems Analyst Dorking Surrey Salary ****K Our client is located in Dorking, Surrey and are looking for Engineering Systems Analyst our client provides specialist software development Keywords Mathematical Modelling, Risk Analysis, System Modelling, Optimisation, MISER, PIONEEER Engineering Systems Analyst Dorking Surrey Salary ****K\",\n\t\t\t\t\ttask1State,\n\t\t\t\t\tsdf.parse(\"20-01-2015\"),\n\t\t\t\t\tsdf.parse(\"25-01-2015\"),\n\t\t\t\t\t0.9);\n\t\t\tTaskStates task2State = new TaskStates(\"OPEN\");\n\t\t\tProjectTask task2 = new ProjectTask(\n\t\t\t\t\t\"Material performance design\",\n\t\t\t\t\t\"Stress Engineer Glasgow\",\n\t\t\t\t\t\"Stress Engineer Glasgow Salary **** to **** We re currently looking for talented engineers to join our growing Glasgow team at a variety of levels. The roles are ideally suited to high calibre engineering graduates with any level of appropriate experience, so that we can give you the opportunity to use your technical skills to provide high quality input to our aerospace projects, spanning both aerostructures and aeroengines. In return, you can expect good career opportunities and the chance for advancement and personal and professional development, support while you gain Chartership and some opportunities to possibly travel or work in other offices, in or outside of the UK. The Requirements You will need to have a good engineering degree that includes structural analysis (such as aeronautical, mechanical, automotive, civil) with some experience in a professional engineering environment relevant to (but not limited to) the aerospace sector. You will need to demonstrate experience in at least one or more of the following areas: Structural/stress analysis Composite stress analysis (any industry) Linear and nonlinear finite element analysis Fatigue and damage tolerance Structural dynamics Thermal analysis Aerostructures experience You will also be expected to demonstrate the following qualities: A strong desire to progress quickly to a position of leadership Professional approach Strong communication skills, written and verbal Commercial awareness Team working, being comfortable working in international teams and self managing PLEASE NOTE SECURITY CLEARANCE IS REQUIRED FOR THIS ROLE Stress Engineer Glasgow Salary **** to ****\",\n\t\t\t\t\ttask2State,\n\t\t\t\t\tsdf.parse(\"20-06-2015\"),\n\t\t\t\t\tnull,\n\t\t\t\t\t0.0);\n\t\t\tTaskStates task3State = new TaskStates(\"IN_PROGRESS\");\n\t\t\tProjectTask task3 = new ProjectTask(\n\t\t\t\t\t\"Implementation embedded system\",\n\t\t\t\t\t\"CNC Programmer\",\n\t\t\t\t\t\"Working within a small but busy sub contract ISO accredited sub contract machine shop. Must be able to programme straight from drawings programming and operating a Bridgeport VMC or a Haas VMC with Heidenhain controls. Machining 1 off,s to small batch work. Hours of work are Mon Thurs 8am 5.00pm and 3.00pm finish on a Friday\",\n\t\t\t\t\ttask3State,\n\t\t\t\t\tsdf.parse(\"20-03-2015\"),\n\t\t\t\t\tnull,\n\t\t\t\t\t0.0);\n\n\t\t\ttaskStatesRep.save(task1State);\n\t\t\ttaskStatesRep.save(task2State);\n\t\t\ttaskStatesRep.save(task3State);\n\t\t\t\n\t\t\tprjTaskRep.save(task1);\n\t\t\tprjTaskRep.save(task2);\n\t\t\tprjTaskRep.save(task3);\n\t\t\tLOGGER.info(\"TEST DATA: Tasks and task statuses saved!\");\n\t\t\t\n\t\t\t// creation of project\n\t\t\tProject prj1 = new Project(\"Building modernization\", sdf.parse(\"01-01-2015\"), sdf.parse(\"01-09-2015\"), 0.9, 0.1, true);\n\t\t\tTaskSet tskSet1 = prj1.assignTaskToEmployee(emp1, task1);\n\t\t\tTaskSet tskSet2 = prj1.assignTaskToEmployee(emp2, task2);\n\t\t\tTaskSet tskSet3 = prj1.assignTaskToEmployee(emp3, task3);\n\t\n\t\t\ttaskSetRep.save(tskSet1);\n\t\t\ttaskSetRep.save(tskSet2);\n\t\t\ttaskSetRep.save(tskSet3);\n\t\t\tLOGGER.info(\"TEST DATA: Task sets are saved!\");\n\t\n\t\t\tprjRep.save(prj1);\n\t\t\tLOGGER.info(\"TEST DATA: Projects are saved!\");\n\t\t\t\n\t\t\t//creation of Performance statistics\n\t\t\tPerfStat emp1PerfStat = new PerfStat(prj1, emp1, 10, 5, 0, 100);\n\t\t\tPerfStat emp2PerfStat = new PerfStat(prj1, emp2, 5, 15, 6, 170);\n\t\t\tPerfStat emp3PerfStat = new PerfStat(prj1, emp3, 0, 6, 3, 20);\n\t\t\t\n\t\t\tperfStatRep.save(emp1PerfStat);\n\t\t\tperfStatRep.save(emp2PerfStat);\n\t\t\tperfStatRep.save(emp3PerfStat);\n\t\t\tLOGGER.info(\"TEST DATA: Project and employee assignments are saved!\");\n\n\t\t\t\n\t\t\tLOGGER.info(\"TEST DATA: Upload of TEST employee, task and project data is FINISHED!\");\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void saveEmployee(Employe employee) {\n\t\t\n\t}", "@Override\n\tpublic void updateEmployee(Employee e) {\n\t\t\n\t}", "private void setStates(HttpServletRequest p_request)\n {\n String reportOn = (String) p_request.getParameter(\"reportOn\");\n data.reportOnJobIds = \"jobIds\".equals(reportOn);\n\n if (data.reportOnJobIds)\n {\n // Report on Job IDs\n data.jobIds.clear();\n String jobIdsStr = p_request.getParameter(\"jobIds\");\n if (jobIdsStr != null && jobIdsStr.length() != 0)\n {\n String[] jobIds = jobIdsStr.split(\",\");\n long jobId = 0;\n for (int i = 0; i < jobIds.length; i++)\n {\n try\n {\n jobId = Long.valueOf(jobIds[i].trim());\n }\n catch (Exception e)\n {\n continue;\n }\n if (!data.jobIds.contains(jobId))\n {\n data.jobIds.add(jobId);\n }\n }\n }\n data.needSearchJob = false;\n }\n else\n {\n String[] jobIds = p_request.getParameterValues(\"jobNameList\");\n data.needSearchJob = (jobIds == null);\n if (!data.needSearchJob)\n {\n data.jobIds.clear();\n long jobId = 0;\n for (int i = 0; i < jobIds.length; i++)\n {\n jobId = Long.valueOf(jobIds[i]);\n if (!data.jobIds.contains(jobId))\n {\n data.jobIds.add(jobId);\n }\n }\n }\n else\n {\n data.jobStateList.clear();\n data.workflowStateList.clear();\n String[] states = p_request.getParameterValues(\"jobStatus\");\n List<String> lst = new ArrayList<String>();\n if (states != null)\n {\n lst = Arrays.asList(states);\n }\n if (lst.contains(\"*\"))\n {\n data.jobStateList.add(Job.DISPATCHED);\n data.workflowStateList.add(Workflow.DISPATCHED);\n data.jobStateList.add(Job.LOCALIZED);\n data.workflowStateList.add(Workflow.LOCALIZED);\n data.jobStateList.add(Job.EXPORTED);\n data.jobStateList.add(Job.EXPORT_FAIL);\n data.workflowStateList.add(Workflow.EXPORTED);\n data.workflowStateList.add(Workflow.EXPORT_FAILED);\n data.jobStateList.add(Job.ARCHIVED);\n data.workflowStateList.add(Workflow.ARCHIVED);\n }\n else\n {\n if (lst.contains(Job.DISPATCHED))\n {\n data.jobStateList.add(Job.DISPATCHED);\n data.workflowStateList.add(Workflow.DISPATCHED);\n }\n if (lst.contains(Job.LOCALIZED))\n {\n data.jobStateList.add(Job.LOCALIZED);\n data.workflowStateList.add(Workflow.LOCALIZED);\n }\n if (lst.contains(Job.EXPORTED))\n {\n data.jobStateList.add(Job.EXPORTED);\n data.workflowStateList.add(Workflow.EXPORTED);\n }\n if (lst.contains(Job.EXPORT_FAIL))\n {\n data.jobStateList.add(Job.EXPORT_FAIL);\n data.workflowStateList.add(Workflow.EXPORT_FAILED);\n }\n if (lst.contains(Job.ARCHIVED))\n {\n data.jobStateList.add(Job.ARCHIVED);\n data.workflowStateList.add(Workflow.ARCHIVED);\n }\n }\n }\n }\n }", "private void doCreateEmployee() {\n Scanner sc = new Scanner(System.in);\n Employee newEmployee = new Employee();\n int response;\n\n System.out.println(\"*** Hors Management System::System Administration::Create New Employee ***\");\n System.out.print(\"Enter First name>\");\n newEmployee.setFirstName(sc.nextLine().trim());\n System.out.print(\"Enter Last name>\");\n newEmployee.setLastName(sc.nextLine().trim());\n\n while (true) {\n System.out.println(\"Select Job Role:\");\n System.out.println(\"1. System Administrator\");\n System.out.println(\"2. Operation Manager\");\n System.out.println(\"3. Sales Manager\");\n System.out.println(\"4. Guest Officer\\n\");\n\n response = sc.nextInt();\n\n //set job role\n if (response >= 1 && response <= 4) {\n newEmployee.setJobRole(JobRoleEnum.values()[response - 1]);\n break;\n } else {\n System.out.println(\"Invalid option, please try again \\n\");\n }\n }\n sc.nextLine();\n System.out.print(\"Enter Username\");\n newEmployee.setUserName(sc.nextLine().trim());\n System.out.println(\"Enter Password\");\n newEmployee.setPassword(sc.nextLine().trim());\n\n Set<ConstraintViolation<Employee>> constraintViolations = validator.validate(newEmployee);\n\n if (constraintViolations.isEmpty()) {\n newEmployee = employeeControllerRemote.createNewEmployee(newEmployee);\n System.out.println(\"New Staff created successfully, employee ID is: \"+newEmployee.getEmployeeId());\n }else{\n showInputDataValidationErrorsForEmployee(constraintViolations);\n }\n\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_employee.setUserId(userId);\n\t}", "public void setJobId(int jobId) {\r\n\t\tthis.jobId = jobId;\r\n\t}", "@Override\n\tpublic void setEmployeeId(long employeeId) {\n\t\t_userSync.setEmployeeId(employeeId);\n\t}", "public void assignAsset(String name, int empID) {\n asset asset = getAssetById(empID);\n asset.setAssignmentStatus(\"Assigned\");\n asset.setAssignedEmployeeId(empID);\n saveOrUpdate(asset);\n }", "public DataCaseWorker(String firstName, String middleName, String lastName, IAddress address, String phone, String email) {\n super(firstName, middleName, lastName, address, phone, email);\n this.id = 0;\n }", "public void setJob_title(String job_title) {\r\n this.job_title = job_title;\r\n }", "@Override\n\tpublic void updateEmployee(List<Employee> employees) {\n\t\t\n\t}", "public void setJobDataMap(JobDataMap jobDataMap) {\n this.jobDataMap = jobDataMap;\n }", "@Bean\n\tpublic void jobOneDetail() throws SchedulerException {\n\t\tJobDataMap jobDataMap = new JobDataMap();\n\t\tjobDataMap.put(\"jobLauncher\", jobLauncher);\n\t\tjobDataMap.put(\"jobLocator\", jobLocator);\n\n\t\tJobDetail job = JobBuilder.newJob(SimpleJob.class).withIdentity(\"demoJobOne\").setJobData(jobDataMap)\n\t\t\t\t.storeDurably().build();\n\t\tTrigger trigger = TriggerBuilder.newTrigger().forJob(job).withIdentity(\"jobOneTrigger\")\n\t\t\t\t.withSchedule(SimpleScheduleBuilder.simpleSchedule().withIntervalInHours(5).repeatForever()).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(job, trigger);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Regular employees\n\t\t * on monthly basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Regular = new JobDataMap();\n\t\tpayrollJobParam4Regular.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Regular.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Regular.put(\"empType\", \"Regular\");\n\t\tJobDetail payrollJob4Regular = JobBuilder.newJob(PayrollCalculationJob.class).withIdentity(\"payrollJob4Regular\")\n\t\t\t\t.setJobData(payrollJobParam4Regular).storeDurably().build();\n\t\tTrigger payrollTrigger4Regular = TriggerBuilder.newTrigger().forJob(payrollJob4Regular)\n\t\t\t\t.withIdentity(\"payrollTrigger4Regular\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 1 1/1 ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Regular, payrollTrigger4Regular);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Internship\n\t\t * employees on weekly[Saturday] basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Internship = new JobDataMap();\n\t\tpayrollJobParam4Internship.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Internship.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Internship.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Internship = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Internship\").setJobData(payrollJobParam4Internship).storeDurably().build();\n\t\tTrigger payrollTrigger4Internship = TriggerBuilder.newTrigger().forJob(payrollJob4Internship)\n\t\t\t\t.withIdentity(\"payrollTrigger4Internship\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 ? * SAT *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Internship, payrollTrigger4Internship);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Contract employees\n\t\t * on daily basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Contract = new JobDataMap();\n\t\tpayrollJobParam4Contract.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Contract.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Contract.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Contract = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Contract\").setJobData(payrollJobParam4Contract).storeDurably().build();\n\t\tTrigger payrollTrigger4Contract = TriggerBuilder.newTrigger().forJob(payrollJob4Contract)\n\t\t\t\t.withIdentity(\"payrollTrigger4Contract\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0 1/1 * ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Contract, payrollTrigger4Contract);\n\n\t\t/*\n\t\t * Payroll calculation job scheduled to calculate salary for Freelancer\n\t\t * employees on hourly basis\n\t\t */\n\t\tJobDataMap payrollJobParam4Freelancer = new JobDataMap();\n\t\tpayrollJobParam4Freelancer.put(\"jobLauncher\", jobLauncher);\n\t\tpayrollJobParam4Freelancer.put(\"jobLocator\", jobLocator);\n\t\tpayrollJobParam4Freelancer.put(\"empType\", \"Internship\");\n\t\tJobDetail payrollJob4Freelancer = JobBuilder.newJob(PayrollCalculationJob.class)\n\t\t\t\t.withIdentity(\"payrollJob4Freelancer\").setJobData(payrollJobParam4Freelancer).storeDurably().build();\n\t\tTrigger payrollTrigger4Freelancer = TriggerBuilder.newTrigger().forJob(payrollJob4Freelancer)\n\t\t\t\t.withIdentity(\"payrollTrigger4Freelancer\")\n\t\t\t\t.withSchedule(CronScheduleBuilder.cronSchedule(\"0 0 0/1 1/1 * ? *\")).build();\n\t\tschedulerFactoryBean.getScheduler().scheduleJob(payrollJob4Freelancer, payrollTrigger4Freelancer);\n\n\t}", "public Large_Employee(\n String quarantineLocation,\n int employeeID,\n String covidDose1Attach,\n String covidDose2Attach,\n String covidDoseDate1,\n String covidDoseDate2\n ){\n this.quarantineLocation = quarantineLocation;\n this.covidDose1Attach = covidDose1Attach;\n this.covidDose2Attach = covidDose2Attach;\n this.covidDoseDate1 = covidDoseDate1;\n this.covidDoseDate2 = covidDoseDate2;\n this.employeeID = employeeID;\n }", "@Test\n public void manyToOne_setJobExecution() {\n BatchStepExecution many = new BatchStepExecution();\n\n // init\n BatchJobExecution one = new BatchJobExecution();\n one.setId(ValueGenerator.getUniqueLong());\n many.setJobExecution(one);\n\n // make sure it is propagated properly\n assertThat(many.getJobExecution()).isEqualTo(one);\n\n // now set it to back to null\n many.setJobExecution(null);\n\n // make sure null is propagated properly\n assertThat(many.getJobExecution()).isNull();\n }", "public void setEmployeeDataSource(final EmployeeDataSource employeeDataSource) {\r\n this.employeeDataSource = employeeDataSource;\r\n }", "public void setEmpID(String _empID) {\r\n this.empID = _empID;\r\n }", "private void updatejob() {\n\t\tString course = edt_course.getText().toString();\n\t\tString content = edt_content.getText().toString();\n\t\tjob.setCourseName(course);\n\t\tjob.setJobContent(content);\n\t\tjob.update(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"更新成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tpublic Result update(Employees employees) {\n\t\treturn null;\r\n\t}", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void getData() {\n if ( jobEntry.getName() != null ) {\n wName.setText( jobEntry.getName() );\n }\n wIncType.setText(jobEntry.getIncType());\n wIncField.setText(jobEntry.getIncField());\n wDataFormat.setText(jobEntry.getDataFormat());\n wStartValue.setText(jobEntry.getStartValue());\n wEndValue.setText(jobEntry.getEndValue());\n\n wName.selectAll();\n wName.setFocus();\n }", "@Override\n public Employee process(Employee employee) throws Exception {\n try {\n if (employee.getId() % 13 == 0) {\n throw new Exception(\"unable to create account for employee with id \" + employee.getId());\n }\n employee.setUserId(\"userId\" + employee.getId());\n } catch (Exception e) {\n // otherwise the job halts!\n LOG.error(\"error \", e);\n }\n return employee;\n }", "public Employee(String username,String password,String firstname,String lastname,Date DoB,\n String contactNamber,String email,float salary,String positionStatus,String name,\n String buildingName, String street, Integer buildingNo, String area,\n String city, String country, String postcode){\n\n super(username, password,firstname, lastname,DoB, contactNamber, email,\n name, buildingName, street, buildingNo, area, city, country, postcode);\n setSalary(salary);\n setPositionStatus(positionStatus);\n }", "Employee setFirstname(String firstname);", "@Override\n public void setEmployeeDepartment(int employeeId, int departmentId) {\n\n }", "public void setEmployeeId(String employeeId) {\n this.employeeId = employeeId;\n }", "public void setJobInfo(String jobInfo) {\n this.jobInfo = jobInfo;\n }", "@Override\r\n\tpublic int updateEmployee(Connection con, Employee employee) {\n\t\treturn 0;\r\n\t}", "public void setJobObserver(JobObserver jO) {\n\r\n\t}", "public setEmployeeCustomInfo_args(setEmployeeCustomInfo_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.employeeId = other.employeeId;\n if (other.isSetCustomValues()) {\n this.customValues = other.customValues;\n }\n }", "public void setJobStartDate(java.util.Calendar jobStartDate)\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_element_user(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(JOBSTARTDATE$0);\r\n }\r\n target.setCalendarValue(jobStartDate);\r\n }\r\n }", "public void setJOB_ID(BigDecimal JOB_ID) {\r\n this.JOB_ID = JOB_ID;\r\n }", "@Override\n\tpublic void preparedUpdateEmployee(Employee e) {\n\t\t\n\t}", "JobResponse.Update update();", "public void execute(JobExecutionContext arg0) throws JobExecutionException {\n\t\tSession sakaiSession = sessionManager.getCurrentSession();\n\t\tsakaiSession.setUserId(ADMIN);\n\t\tsakaiSession.setUserEid(ADMIN);\n\t\t\n\t\t//we need to get all active courses in a course set\n\t\tString sql = \"select CM_MEMBER_CONTAINER_T.enterprise_id, CM_MEMBER_CONTAINER_T.end_date from CM_MEMBER_CONTAINER_T join CM_ACADEMIC_SESSION_T on CM_MEMBER_CONTAINER_T.academic_session=CM_ACADEMIC_SESSION_T.ACADEMIC_SESSION_ID where CM_ACADEMIC_SESSION_T.ENTERPRISE_ID = '2010' and CM_MEMBER_CONTAINER_T.end_Date > '2010-12-30'\";\n\t\t\n\t\tList<String> vals = sqlService.dbRead(sql);\n\t\tfor (int i = 0; i < vals.size(); i++) {\n\t\t\tString courseEid = vals.get(i);\n\t\t\tlog.info(\"going to synch \" + courseEid);\n\t\t\tSet<Membership> members = courseManagementService.getSectionMemberships(courseEid);\n\t\t\tIterator<Membership> mit = members.iterator();\n\t\t\t\n\t\t\t//each of these needs to be added to the exivelent 2011 course\n\t\t\tString nextCourseEid = courseEid.replace(\",2010\", \",2011\");\n\t\t\tlog.info(\"going to add \" + members.size() + \" members to \" + nextCourseEid + \" from \" + courseEid);\n\t\t\twhile (mit.hasNext()) {\n\t\t\t\tMembership membership = mit.next();\n\t\t\t\ttry {\n\t\t\t\tcourseAdmin.addOrUpdateSectionMembership(membership.getUserId(), membership.getRole(), nextCourseEid, membership.getRole());\n\t\t\t\t}\n\t\t\t\tcatch (IdNotFoundException e) {\n\t\t\t\t\tlog.warn(\"could not find course: \" + nextCourseEid);\n\t\t\t\t\t//TODO should we clear the course?\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\r\n System.out.println(\"* * * * * Welcome to the employee inform * * * * * \");\r\n\r\n Employee_Company Jane = new Employee_Company();\r\n Employee_Company Lucas = new Employee_Company();\r\n Employee_Company Intern_Sophia = new Employee_Company();\r\n Employee_Company Intern_Ava = new Employee_Company();\r\n Employee_Company Intern_James = new Employee_Company();\r\n Employee_Company Intern_Nicholas = new Employee_Company();\r\n\r\n\r\n Lucas.Set_name_employee(\"Lucas Smith\");\r\n Lucas.Set_Email_employee(\"Lucas_Smith@TechCompany.org\");\r\n Lucas.Set_role_employee(\"Software Engineer\");\r\n Lucas.setSalary_employee(103438);\r\n\r\n\r\n Jane.Set_name_employee(\"Jane charlotte\");\r\n Jane.Set_Email_employee(\"Jane_Charlotte@TechCompany.org\");\r\n Jane.setSalary_employee(623100);\r\n Jane.Set_role_employee(\"CEO Tech Company\");\r\n\r\n\r\n Intern_Sophia.Set_name_employee(\"Sophia Wood\");\r\n Intern_Sophia.Set_Intern_application('A');\r\n Intern_Sophia.Set_role_employee(\"Intern Artificial Intelligence \");\r\n\r\n\r\n Intern_Ava.Set_name_employee(\"Ava Richardson\");\r\n Intern_Ava.Set_Intern_application('B');\r\n Intern_Ava.Set_role_employee(\"Intern Computer Science\");\r\n\r\n\r\n Intern_James.Set_name_employee(\"James Benjamin\");\r\n Intern_James.Set_Intern_application('B');\r\n Intern_James.Set_role_employee(\"Intern Business Analyst\");\r\n\r\n\r\n Intern_Nicholas.Set_name_employee(\"Nicholas Miller\");\r\n Intern_Nicholas.Set_Intern_application('C');\r\n Intern_Nicholas.Set_role_employee(\"Intern Systems Integration Engineering\");\r\n\r\n\r\n\r\n System.out.println(\"\\n\\t*** Tech Company employee information ***\");\r\n System.out.println(\"1. View Salary\");\r\n System.out.println(\"2. View Name of the Employee\");\r\n System.out.println(\"3. View Email Address\");\r\n System.out.println(\"4. View Employee Role\");\r\n System.out.println(\"5. View Intern Application grade\");\r\n\r\n\r\n\r\n Scanner input = new Scanner(System.in);\r\n System.out.println(\"Direction: Input the number is addressed in Tech Company employee information\");\r\n int input_user = input.nextInt();\r\n\r\n switch (input_user){\r\n case 1 -> {\r\n System.out.println(\"Here is the salary of the employee of Tech Company\");\r\n System.out.println(\"Salary of Software engineering: \"+Lucas.getSalary_employee());\r\n System.out.println(\"Salary of CEO: \"+Jane.getSalary_employee());\r\n }\r\n case 2 ->{\r\n System.out.println(\"Here is the name of the employee of Tech Company\");\r\n System.out.println(\"The software engineering of Tech Company name of the employee is: \"+Jane.Get_name_employee());\r\n System.out.println(\"The CEO Tech Company name of the employee is: \"+Lucas.Get_name_employee());\r\n }\r\n case 3 ->{\r\n System.out.println(\"Here is the Email Address of employee of Tech Company\");\r\n System.out.println(\"Jane Charlotte is CEO of Tech company Email Address its : \"+Jane.Get_Email_employee());\r\n System.out.println(\"Lucas Smith is Software Engineering of Tech Company Email Address its: \"+Lucas.Get_Email_employee());\r\n }\r\n case 4 ->{\r\n System.out.println(\"Here is the Employee Role of Tech Company\");\r\n System.out.println(Jane.Get_role_employee());\r\n System.out.println(Lucas.Get_role_employee());\r\n }\r\n case 5 ->{\r\n System.out.println(\"Here is all the Intern get accepted to Tech Company \");\r\n System.out.println(\"1.\"+Intern_Ava.Get_name_employee()+\" GPA college: \"+Intern_Ava.Get_Intern_application()+\"- \"+\" Application: Accepted \"+Intern_Ava.Get_role_employee());\r\n System.out.println(\"2.\"+Intern_Sophia.Get_name_employee()+\" GPA college: \"+Intern_Sophia.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_Sophia.Get_role_employee());\r\n System.out.println(\"3.\"+Intern_James.Get_name_employee()+\" GPA college: \"+Intern_James.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_James.Get_role_employee());\r\n System.out.println(\"4.\"+Intern_Nicholas.Get_name_employee()+\"GPA college: \"+Intern_Nicholas.Get_Intern_application()+\"+ \"+\" Application: Accepted \"+Intern_Nicholas.Get_role_employee());\r\n }\r\n }\r\n\r\n\r\n\r\n }" ]
[ "0.6394183", "0.6334534", "0.61359215", "0.6123973", "0.6100578", "0.6090322", "0.6082578", "0.6056882", "0.6036739", "0.6022654", "0.600737", "0.5982705", "0.59826875", "0.59815776", "0.5977031", "0.59658986", "0.5959615", "0.5959132", "0.592217", "0.59062874", "0.58961356", "0.5892061", "0.58518344", "0.58441263", "0.58384675", "0.5824972", "0.5824298", "0.5818079", "0.5799139", "0.5785691", "0.5778933", "0.57729566", "0.57529086", "0.57358617", "0.5733642", "0.57250994", "0.57017726", "0.5684397", "0.5668895", "0.56659675", "0.56655455", "0.56557405", "0.56486046", "0.56402457", "0.5634347", "0.562962", "0.5617762", "0.56117564", "0.5598525", "0.5587082", "0.5583613", "0.5583613", "0.5569234", "0.55601895", "0.5555305", "0.55538595", "0.5542801", "0.55082923", "0.55075586", "0.5503556", "0.5501014", "0.54982895", "0.54953635", "0.5493474", "0.54880804", "0.5480322", "0.5462038", "0.54419774", "0.5435116", "0.54319495", "0.54308814", "0.5430565", "0.54291725", "0.5427862", "0.54224944", "0.5412231", "0.54113793", "0.5409189", "0.540913", "0.5401484", "0.53937656", "0.5383917", "0.53772837", "0.53718895", "0.5370918", "0.53657544", "0.53646547", "0.53593874", "0.5358424", "0.5350129", "0.5327713", "0.53273576", "0.532007", "0.53155756", "0.5311697", "0.530006", "0.5295436", "0.5290498", "0.5284652", "0.5274023" ]
0.6915556
0
Get Employee Job Data
public int getHC_EmployeeJob_ID();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Job getJob();", "public Dsjob getJobObject() { return job; }", "public String[] getAllJobs();", "java.lang.String getJobId();", "public String getJobId();", "@Override\r\n\tpublic List<IncomingJobResponse> getJobList() {\n\t\tList<IncomingJobs> js = (List<IncomingJobs>)incomingRepository.fetchincomingJobs();\r\n\t\tList<IncomingJobResponse> joblist = new ArrayList<IncomingJobResponse>();\r\n\t\tfor(IncomingJobs job :js){\r\n\t\t\tIncomingJobResponse jobs = new IncomingJobResponse();\r\n\t\t\tSystem.out.println(\"ATA:\"+job.getAta()+\"ETA:\"+job.getEta());\r\n\t\t\tjobs.setJobid(job.getID());\r\n\t\t\t\r\n\t\t\tif(job.getEta()!=null){\r\n\t\t\tjobs.setEta(job.getEta().toString());\r\n\t\t\t}\r\n\t\t\tif(job.getAta()!=null){\r\n\t\t\tjobs.setAta(job.getAta().toString());\r\n\t\t\t}\r\n\t\t\tjobs.setBroker(job.getBroker());\r\n\t\t\tjobs.setClear(job.getClear());\r\n\t\t\tjobs.setConsignee(job.getConsignee());\r\n\t\t\tjobs.setDestination(job.getDestination());\r\n\t\t\tjobs.setFlight(job.getFlight());\r\n\t\t\tjobs.setHawb(job.getHawb());\r\n\t\t\tjobs.setHeld(job.getHeld());\r\n\t\t\tjobs.setMawb(job.getMawb());\r\n\t\t\tjobs.setMLID(job.getMLID());\r\n\t\t\tjobs.setNote(job.getNote());\r\n\t\t\tjobs.setOutturn(job.getOutturn());\r\n\t\t\tjobs.setPiece(job.getPiece());\r\n\t\t\tjobs.setWeight(job.getWeight());\r\n\t\t\tif(job.getInjectionDate()!=null){\r\n\t\t\t\tjobs.setInjectionDate(job.getInjectionDate().toString());\r\n\t\t\t\t}\r\n\t\t\tif(job.getClearanceDate()!=null){\r\n\t\t\t\tjobs.setClearanceDate(job.getClearanceDate().toString());\r\n\t\t\t\t}\r\n\t\t\tjobs.setDamage(job.getDamageNotes());\r\n\t\t\tjobs.setSurplus(job.getSurplusShortage());\r\n\t\t\tjoblist.add(jobs);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn joblist;\r\n\t}", "public int getJobId() ;", "public static ArrayList<Job> getJob()\n {\n conn = DatabaseConnectionPostgre.connection();\n try {\n ArrayList<Job> returnValue = new ArrayList<>();\n\n stmt = conn.createStatement();\n String sql = \"SELECT * FROM job NATURAL JOIN recruiter NATURAL JOIN location;\";\n ResultSet rs = stmt.executeQuery(sql);\n while(rs.next()) {\n returnValue.add(new Job(\n rs.getInt(\"job_id\"),\n rs.getString(\"job_name\"),\n new Recruiter(\n rs.getInt(\"recruiter_id\"),\n rs.getString(\"name\"),\n rs.getString(\"email\"),\n rs.getString(\"phone_number\"),\n new Location(\n rs.getString(\"province\"),\n rs.getString(\"city\"),\n rs.getString(\"description\")\n )\n ),\n rs.getInt(\"fee\"),\n JobCategory.valueOf(rs.getString(\"category\"))\n ));\n }\n rs.close();\n stmt.close();\n conn.close();\n return returnValue;\n } catch (Exception e) {\n System.err.println(e.getClass().getName()+\": \"+ e.getMessage());\n return null;\n }\n }", "public String getJob() {\n return job;\n }", "DataResult<List<Job>> getAll();", "public String getJobInfo() {\n return jobInfo;\n }", "java.util.List<cb.Careerbuilder.Job> \n getJobsList();", "public ObservableList<Job> getJobData() {\n return jobData;\n }", "public Job getJob(){\n return job;\n }", "public List<RequestJob> getAllJob() {\n List<RequestJob> allJob = null;\n if (allJob == null) {\n allJob = requestJobMapper.selectByExample(new RequestJobExample());\n }\n MemCacheUtil.set(\"job-list\", allJob);\n return allJob;\n }", "public String getJobName() {\n return this.jobName;\n }", "public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}", "public JobDetail getJob(int jobId) \r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tSession session = sessionfactory.openSession();\r\n\t\t\tJobDetail jobDetail = (JobDetail) session.get(JobDetail.class, jobId);\r\n\t\t\tsession.close();\r\n\t\t\treturn jobDetail;\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception Info: \"+e);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public JobEntry getJob(String jobId)\n {\n JobEntry je = null;\n\n try\n {\n je = schedulerService.getJob(Integer.parseInt(jobId));\n }\n catch (TurbineException e)\n {\n log.error(\"Could not retreive job id #{}\", jobId, e);\n }\n\n return je;\n }", "@RequestMapping(value = \"/getJobsList\", method = RequestMethod.GET, produces = \"application/json\")\n\t@ResponseBody\n\tpublic List<GetJobsResponse> getJobsList(@RequestParam String jobType, \n\t\t\t@RequestParam String jobTitle,@RequestParam String emailId) {\n \tList<GetJobsResponse> getJobsResponseList = null;\n\t\ttry {\n\t\t\t\n\t\t\tgetJobsResponseList = this.econnectService.getJobsList(jobType,jobTitle,emailId);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn getJobsResponseList;\n\t}", "@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}", "public String getJobName() {\n return this.JobName;\n }", "public String getJobName() {\n return this.mJob;\n }", "public CustomerDataObject getJob_Customer() {\r\n return job_Customer;\r\n }", "public void listJobExecutions() {\r\n\t\tRestCall caller = new RestCall();\r\n\t\tHttpURLConnection connection = caller.connect(endpoint + tenantId\r\n\t\t\t\t+ \"/job-executions\", null, \"GET\", token);\r\n\t\ttry {\r\n\t\t\tconnection.connect();\r\n\t\t\tSystem.out.println(caller.getResponse(connection));\r\n\t\t\tconnection.disconnect();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic String getJobName() {\n\t\treturn model.getJobName();\n\t}", "cb.Careerbuilder.Job getJobs(int index);", "public String getJobName() {\n return jobName;\n }", "public String getJobName() {\n return jobName;\n }", "@GetMapping(value=\"/searchEmpData\")\n\tpublic List<Employee> getAllEmployees()\n\t{\n\t\treturn this.integrationClient.getAllEmployees();\n\t}", "public static List<Employee> getAllEmployees(){\n\t\t// Get the Datastore Service\n\t\tlog.severe(\"datastoremanager-\" + 366);\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tlog.severe(\"datastoremanager-\" + 368);\n\t\tQuery q = buildAQuery(null);\n\t\tlog.severe(\"datastoremanager-\" + 370);\n\t\t// Use PreparedQuery interface to retrieve results\n\t\tPreparedQuery pq = datastore.prepare(q);\n\t\tlog.severe(\"datastoremanager-\" + 373);\n\t\t//List for returning\n\t\tList<Employee> returnedList = new ArrayList<>();\n\t\tlog.severe(\"datastoremanager-\" + 376);\n\t\t//Loops through all results and add them to the returning list \n\t\tfor (Entity result : pq.asIterable()) {\n\t\t\tlog.severe(\"datastoremanager-\" + 379);\n\t\t\t//Vars to use\n\t\t\tString actualFirstName = null;\n\t\t\tString actualLastName = null;\n\t\t\tBoolean attendedHrTraining = null;\n\t\t\tDate hireDate = null;\n\t\t\tBlob blob = null;\n\t\t\tbyte[] photo = null;\n\t\t\t\n\t\t\t//Get results via the properties\n\t\t\ttry {\n\t\t\t\tactualFirstName = (String) result.getProperty(\"firstName\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tactualLastName = (String) result.getProperty(\"lastName\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tattendedHrTraining = (Boolean) result.getProperty(\"attendedHrTraining\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\thireDate = (Date) result.getProperty(\"hireDate\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tblob = (Blob) result.getProperty(\"picture\");\n\t\t\t} catch (Exception e){}\n\t\t\ttry {\n\t\t\t\tphoto = blob.getBytes();\n\t\t\t} catch (Exception e){}\n\t\t\tlog.severe(\"datastoremanager-\" + 387);\n\t\t\t\n\t\t\t//Build an employee (If conditionals for nulls)\n\t\t\tEmployee emp = new Employee();\n\t\t \temp.setFirstName((actualFirstName != null) ? actualFirstName : null);\n\t\t \temp.setLastName((actualLastName != null) ? actualLastName : null);\n\t\t \temp.setAttendedHrTraining((attendedHrTraining != null) ? attendedHrTraining : null);\n\t\t \temp.setHireDate((hireDate != null) ? hireDate : null);\n\t\t \temp.setPicture((photo != null) ? photo : null);\n\t\t \tlog.severe(\"datastoremanager-\" + 395);\n\t\t \treturnedList.add(emp);\n\t\t}\n\t\tlog.severe(\"datastoremanager-\" + 398);\n\t\treturn returnedList;\n\t}", "public String getJobId() {\n return this.jobId;\n }", "public String getJobId() {\n return this.jobId;\n }", "public String getJobId() {\n return this.jobId;\n }", "private static List<Employee> readWorkers(int arg) {\r\n\t\treturn WorkersLoader.readAllEmployyes(arg);\r\n\t}", "@Override\r\n\tpublic List<JobDTO> getAllJobs() {\n\t\treturn accountDao.getAllJobs();\r\n\t}", "@java.lang.Override\n public grpc.messages.Messages.Employee getEmployee() {\n return employee_ == null ? grpc.messages.Messages.Employee.getDefaultInstance() : employee_;\n }", "@java.lang.Override\n public grpc.messages.Messages.Employee getEmployee() {\n return employee_ == null ? grpc.messages.Messages.Employee.getDefaultInstance() : employee_;\n }", "public Employee getHRhead();", "public grpc.messages.Messages.Employee getEmployee() {\n if (employeeBuilder_ == null) {\n return employee_ == null ? grpc.messages.Messages.Employee.getDefaultInstance() : employee_;\n } else {\n return employeeBuilder_.getMessage();\n }\n }", "public grpc.messages.Messages.Employee getEmployee() {\n if (employeeBuilder_ == null) {\n return employee_ == null ? grpc.messages.Messages.Employee.getDefaultInstance() : employee_;\n } else {\n return employeeBuilder_.getMessage();\n }\n }", "public Employeedetails getEmployeeDetailByName(String employeeId);", "@GetMapping(value=\"/employes\")\n\tpublic List<Employee> getEmployeeDetails(){\n\t\t\n\t\tList<Employee> employeeList = employeeService.fetchEmployeeDetails();\n\t\treturn employeeList;\t\t\t\t\t\t\n\t}", "public GetJobs() {\r\n\t\tsuper();\r\n\t}", "public static void jobReadTest() {\n String fl = \"/tmp/basic-aurora/basic-aurora3354891958097304472/twister2-core/basic-aurora.job\";\n JobAPI.Job job = JobUtils.readJobFile(fl);\n System.out.println(\"job name: \" + job.getJobName());\n System.out.println(\"job worker class name: \" + job.getWorkerClassName());\n System.out.println(\"job workers: \" + job.getNumberOfWorkers());\n System.out.println(\"CPUs: \" + job.getComputeResource(0).getCpu());\n System.out.println(\"RAM: \" + job.getComputeResource(0).getRamMegaBytes());\n System.out.println(\"Disk: \" + job.getComputeResource(0).getDiskGigaBytes());\n JobAPI.Config conf = job.getConfig();\n System.out.println(\"number of key-values in job conf: \" + conf.getKvsCount());\n\n for (JobAPI.Config.KeyValue kv : conf.getKvsList()) {\n System.out.println(kv.getKey() + \": \" + kv.getValue());\n }\n\n }", "public List<Employee> getEmployees() {\n\n\t\tList<Employee> employees = new ArrayList<Employee>();\n\t\t\n\t\t/*Sample data begins\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tEmployee employee = new Employee();\n\t\t\temployee.setEmail(\"shiyong@cs.sunysb.edu\");\n\t\t\temployee.setFirstName(\"Shiyong\");\n\t\t\temployee.setLastName(\"Lu\");\n\t\t\temployee.setAddress(\"123 Success Street\");\n\t\t\temployee.setCity(\"Stony Brook\");\n\t\t\temployee.setStartDate(\"2006-10-17\");\n\t\t\temployee.setState(\"NY\");\n\t\t\temployee.setZipCode(11790);\n\t\t\temployee.setTelephone(\"5166328959\");\n\t\t\temployee.setEmployeeID(\"631-413-5555\");\n\t\t\temployee.setHourlyRate(100);\n\t\t\temployees.add(employee);\n\t\t}\n\t\tSample data ends*/\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT P.*, E.StartDate, E.HourlyRate, E.Email, E.ID, L.* \"\n\t\t\t\t\t+ \"FROM Employee E, Person P, Location L\"\n\t\t\t\t\t+ \" WHERE P.SSN = E.SSN AND L.ZipCode = P.ZipCode\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tEmployee employee = new Employee();\n\t\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\t\temployee.setAddress(rs.getString(\"Address\"));\n\t\t\t\temployee.setCity(rs.getString(\"City\"));\n\t\t\t\temployee.setStartDate(String.valueOf(rs.getDate(\"StartDate\")));\n\t\t\t\temployee.setState(rs.getString(\"State\"));\n\t\t\t\temployee.setZipCode(rs.getInt(\"ZipCode\"));\n\t\t\t\temployee.setTelephone(String.valueOf(rs.getLong(\"Telephone\")));\n\t\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"SSN\")));\n\t\t\t\temployee.setHourlyRate(rs.getInt(\"HourlyRate\"));\n\t\t\t\temployees.add(employee);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\treturn employees;\n\t}", "@Override\n\tpublic List<Job> finddemandEducation(Job job) throws Exception {\n\t\treturn jobDao.finddemandEducation(job);\n\t}", "@Override\r\n\tpublic T getJob() {\n\t\treturn super.getJob();\r\n\t}", "public String getEmployees(){\n return employees;\n }", "public ZooEmployee(String name, String job) {\n this.name = name;\n this.job = job;\n this.arrived = false;\n }", "JobDetails properties();", "@GET\n @Path(\"/job/{id}/tasks\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getJobTasks(@PathParam(\"id\") String jobId) {\n LGJob lg = Utils.getJobManager().getJob(jobId);\n if (null == lg) {\n return Response.status(404).entity(\"Not found\").build();\n }\n JSONObject result = new JSONObject();\n result.put(\"tasks\",getTasksHelper(lg));\n return Response.status(200).entity(result.toString(1)).build();\n }", "public Map<UUID, T> getJobs(UUID agentId) throws RemoteException;", "List<Employee> allEmpInfo();", "@Test\n public void _03getJob() throws ApiException {\n OCRJobResponse response = api.getJob(ocrJob.getJobId());\n Assert.assertNotNull(response);\n Assert.assertTrue(response.getStatus() == OCRJobResponse.StatusEnum.PROCESSING || response.getStatus() == OCRJobResponse.StatusEnum.DONE);\n }", "@RequestLine(\"GET /show\")\n List<Bucket> getAllEmployeesList();", "private String getEmployees() {\n\n String uri = new String(\"http://\" + mRESTServer.getHost() +\n mRESTServer.getContextPath());\n try {\n String result = restTemplate.getForObject(uri, String.class);\n\n System.out.println(result);\n return result+\": (\"+uri+\")\";\n\n } catch (HttpClientErrorException e) {\n /**\n *\n * If we get a HTTP Exception display the error message\n */\n log.error(\"error: \" + e.getResponseBodyAsString());\n\n ObjectMapper mapper = new ObjectMapper();\n ErrorHolder eh = null;\n try {\n eh = mapper.readValue(e.getResponseBodyAsString(), ErrorHolder.class);\n } catch (IOException ignored) {\n }\n\n log.error(\"error: \" + eh.getErrorMessage());\n\n } catch (Exception e) {\n log.error(\"error: \" + e.getMessage());\n\n }\n\n return null;\n }", "public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}", "public JobDataMap getJobDataMap() {\n if (jobDataMap == null) {\n jobDataMap = new JobDataMap();\n }\n return jobDataMap;\n }", "public List<EmployeeEntity> retrieveAllEmployeeData(StorageContext context) throws PragmaticBookSelfException {\n\t\tList<EmployeeEntity> listOfEmployeeData = null;\n\n\t\tSession hibernateSession = context.getHibernateSession();\n\n\t\tString queryString = \"FROM EmployeeEntity\"; // select * from employee;//\n\t\ttry {\n\t\t\tQuery query = hibernateSession.createQuery(queryString);\n\t\t\tlistOfEmployeeData = query.list();\n\t\t} catch (HibernateException he) {\n\t\t\tthrow new PragmaticBookSelfException(he);\n\t\t}\n\t\treturn listOfEmployeeData;\n\t}", "void fetchEmployeeJobRelations(int selectedJobId, AsyncCallback<ArrayList<JobEmployeeRelation>> asyncCallback);", "public String getJob_title() {\r\n return job_title;\r\n }", "public JSONObject handleGetJobDetail(String jobId) {\n MapReduceState state;\n try {\n state = MapReduceState.getMapReduceStateFromJobID(ds, JobID.forName(jobId));\n } catch (EntityNotFoundException e) {\n throw new IllegalArgumentException(\"Couldn't find MapReduce for id:\" + jobId, e);\n }\n return state.toJson(true);\n }", "public String getJobId() {\n\t\treturn this.jobId;\n\t}", "java.lang.String getEmployeeName();", "public Long getJobID() {\n return jobID;\n }", "@Override\n\tpublic List<Job> findpriceEducation(Job job) throws Exception {\n\t\treturn jobDao.findpriceEducation(job);\n\t}", "public void getEmployee() {\r\n //what needs to be returned?\r\n }", "@GET\n @Deprecated\n @Path(\"jobs\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response jobGet(@QueryParam(\"created_before\") String createdBefore,\n @QueryParam(\"created_after\") String createdAfter) throws Exception {\n //List<LGJob> jobs;\n boolean doCreatedBefore = false;\n boolean doCreatedAfter = false;\n Date beforeDate = null;\n Date afterDate = null;\n\n // Parse created_before if present\n if ((createdBefore != null) && (!createdBefore.equals(\"\"))) {\n Instant beforeInstant = null;\n try {\n beforeInstant = Instant.parse(createdBefore);\n } catch (DateTimeParseException e) {\n return Response.status(201).entity(\"Invalid created_on Date format [\" + createdBefore + \"]\").build();\n }\n beforeDate = Date.from(beforeInstant);\n doCreatedBefore = true;\n }\n\n // Parse created_after if present\n if ((createdAfter != null) && (!createdAfter.equals(\"\"))) {\n Instant afterInstant = null;\n try {\n afterInstant = Instant.parse(createdAfter);\n } catch (DateTimeParseException e) {\n return Response.status(201).entity(\"Invalid created_after Date format [\" + createdAfter + \"]\").build();\n }\n afterDate = Date.from(afterInstant);\n doCreatedAfter = true;\n }\n\n\n JSONObject graphJobs = new JSONObject();\n try {\n graphJobs = Utils.getLemongraphJob(request, \"\", null);//this considers createdBefore/createdAfter params\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n JSONArray ids = new JSONArray();\n Iterator<String> idIterator = graphJobs.keys();\n while (idIterator.hasNext()) {\n String id = idIterator.next();\n ids.put(id);\n }\n\n JSONObject ob = new JSONObject();\n if(ids.length() > 0) {\n // Build response\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMM dd,yyyy HH:mm:ss\");\n JSONObject mongoJobs = Utils.getMongoJobs(ids);\n Iterator iterator = mongoJobs.keySet().iterator();\n while (iterator.hasNext()) {\n String id = iterator.next().toString();\n try {\n JSONObject mongoJob = mongoJobs.getJSONObject(id);\n JSONObject job = new JSONObject();\n\n //Default value checks\n if (!mongoJob.has(\"reason\")) {\n mongoJob.put(\"reason\", \"\");\n }\n if (!mongoJob.has(\"endTime\")) {\n mongoJob.put(\"endTime\", 0);\n }\n if (!mongoJob.has(\"totalRunningTimeSeconds\")) {\n mongoJob.put(\"totalRunningTimeSeconds\", 0);\n }\n if (!mongoJob.has(\"approvedAdapterNames\")) {\n mongoJob.put(\"approvedAdapterNames\", new JSONArray());\n }\n if (!mongoJob.has(\"startTime\")) {\n mongoJob.put(\"startTime\", 0);\n }\n if (!mongoJob.has(\"jobErrors\")) {\n mongoJob.put(\"jobErrors\", new JSONArray());\n }\n if (!mongoJob.has(\"taskMap\")) {\n mongoJob.put(\"taskMap\", new JSONObject());\n }\n if (!mongoJob.has(\"jobConfig\")) {\n mongoJob.put(\"jobConfig\", new JSONObject());\n }\n if (!mongoJob.has(\"expireDate\")) {\n mongoJob.put(\"expireDate\", 0);\n }\n if (!mongoJob.has(\"graphActivity\")) {\n mongoJob.put(\"graphActivity\", 0);\n }\n if (!mongoJob.has(\"createDate\")) {\n mongoJob.put(\"createDate\", 0);\n }\n if (!mongoJob.has(\"status\")) {\n mongoJob.put(\"status\", 0);\n }\n\n job.put(\"reason\", mongoJob.get(\"reason\"));\n job.put(\"endtime\", sdf.format(mongoJob.get(\"endTime\")));\n job.put(\"runtime\", mongoJob.get(\"totalRunningTimeSeconds\"));\n job.put(\"approvedadapters\", mongoJob.getJSONArray(\"approvedAdapterNames\"));\n job.put(\"starttime\", sdf.format(mongoJob.get(\"startTime\")));\n job.put(\"error_count\", mongoJob.getJSONArray(\"jobErrors\").length());\n job.put(\"task_count\", mongoJob.getJSONObject(\"taskMap\").length());\n job.put(\"job_config\", new JSONObject(mongoJob.get(\"jobConfig\").toString()));\n job.put(\"expire_date\", sdf.format(mongoJob.get(\"expireDate\")));\n job.put(\"job_id\", id);\n job.put(\"graph_activity\", mongoJob.get(\"graphActivity\"));\n job.put(\"create_date\", sdf.format(mongoJob.get(\"createDate\")));\n int status = mongoJob.getInt(\"status\");\n job.put(\"status\", LGJob.getStatusString(status));\n\n int active = 0;\n try {\n if (status == LGJob.STATUS_PROCESSING) { //only processing jobs have non-zero active_task_count\n ArrayList<Document> docs = new MongoDBStore().getTasksFromJob(id);\n JSONObject tasks = MongoDBStore.toJSON(docs);\n active = LGJob.getActiveTaskCount(tasks);\n }\n } catch (Exception e) {\n log.debug(\"Couldn't fetch active task count for job:\" + id + \" Error:\" + e.getMessage());\n }\n\n job.put(\"active_task_count\", active);\n ob.put(id, job);\n } catch (Exception e) {\n log.info(\"Invalid job:\" + id + \" Error:\" + e.getMessage());\n }\n }\n }\n return Response.status(200).entity(ob.toString()).build();\n }", "public String getJob_description() {\r\n return job_description;\r\n }", "com.google.cloud.talent.v4.Job getJobs(int index);", "@RequestMapping(value = \"/listEmployees\", method = RequestMethod.GET)\r\n\tpublic Employee employees() {\r\n System.out.println(\"---BEGIN\");\r\n List<Employee> allEmployees = employeeData.findAll();\r\n \r\n System.out.println(\"size of emp == \"+allEmployees.size());\r\n System.out.println(\"---END\");\r\n Employee oneEmployee = allEmployees.get(0);\r\n\t\treturn oneEmployee;\r\n }", "public String toString()\n\t//return employee values\n\t{\n\t\treturn \"Id \" + id + \" Start date \" + start + \" Salary \" + salary + super.toString() + \" Job Title \" + jobTitle;\n\t}", "@Override\r\n\tpublic List<Job> ShowAllJobs() {\n\t\treturn null;\r\n\t}", "@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}", "@Override\n\tpublic List<Map<String, String>> employeeList() throws Exception {\n\t\treturn null;\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getJobId() != null)\n sb.append(\"JobId: \").append(getJobId()).append(\",\");\n if (getJobStatus() != null)\n sb.append(\"JobStatus: \").append(getJobStatus());\n sb.append(\"}\");\n return sb.toString();\n }", "public String getJobDescription() {\r\n return jobDescription;\r\n }", "@Override\n\tpublic List<Job> finddemandExp(Job job) throws Exception {\n\t\treturn jobDao.finddemandExp(job);\n\t}", "public String[] getJobArr() {\n String[] jobArr;\n jobArr = new String[jobList.size()];\n\n for(int i=0;i<jobList.size();i++) {\n Log.w(\"MA\", \"\"+jobList.get(i).listString(jobType));\n jobArr[i] = (jobList.get(i)).listString(jobType);\n }\n return jobArr;\n }", "public List<String> retrieveJobId(String userId) throws DatabaseException, IllegalArgumentException;", "@RequestMapping(value = \"/list/{pjobId}\",\n method = RequestMethod.GET,\n produces = { MediaType.APPLICATION_JSON_VALUE })\n @ResponseBody\n public List<Job> getJobList1(@PathVariable(\"pjobId\") Integer pjobId) {\n ProfessionJob professionJob = professionJobService.getProfessionJob(pjobId).get();\n List<JobRequireProfessionJob> list = jobService.findAllByProfessionJob(professionJob);\n List<Job> jobsAfterFilterByProfession = new ArrayList<>();\n for(JobRequireProfessionJob jrpj : list) {\n jobsAfterFilterByProfession.add(jrpj.getJob());\n }\n return jobsAfterFilterByProfession;\n }", "public static void EmployeeJob() {\r\n\t\t\r\n\t\tJLabel e4 = new JLabel(\"Employee's Job:\");\r\n\t\te4.setFont(f);\r\n\t\tGUI1Panel.add(e4);\r\n\t\tGUI1Panel.add(employeeJobType);\r\n\t\te4.setHorizontalAlignment(JLabel.LEFT);\r\n\t\tGUI1Panel.add(Box.createHorizontalStrut(5));\r\n\t}", "public void listEmployees()\n\t{\n\t\tString str = \"Name\\tSurname\\tMail\\tPassword\\tBranchId\\tId\\n\";\n\t\t\n\t\tList<Employee> employees = this.company.getEmployees();\n\n\t\tfor(int i=0; i<employees.length(); i++)\n\t\t{\n\t\t\tstr += employees.get(i).getName() + \"\\t\" + employees.get(i).getSurname() + \"\\t\" + employees.get(i).getMail() + \"\\t\" + employees.get(i).getPassword() + \"\\t\\t\" + employees.get(i).getBranchId() + \"\\t\\t\" + employees.get(i).getId() + \"\\n\";\n\t\t}\n\n\t\tSystem.out.println(str);\n\n\t}", "public String getEmployeeName();", "public String getJobId() {\n return jobId;\n }", "private void getLinkDetailsForJob() throws IGCException {\n final String methodName = \"getLinkDetailsForJob\";\n String jobRid = job.getId();\n log.debug(\"Retrieving link details for job: {}\", jobRid);\n IGCSearch igcSearch = new IGCSearch(\"link\");\n igcSearch.addProperties(DataStageConstants.getLinkSearchProperties());\n IGCSearchCondition condition = new IGCSearchCondition(\"job_or_container\", \"=\", jobRid);\n IGCSearchConditionSet conditionSet = new IGCSearchConditionSet(condition);\n igcSearch.addConditions(conditionSet);\n ItemList<Link> links = igcRestClient.search(igcSearch);\n buildMap(linkMap, igcRestClient.getAllPages(null, links));\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The identifier of the job\")\n\n public String getJob() {\n return job;\n }", "public String execute() {\n\t\t\n\t\tjobs = new ArrayList<Map<String, String>>();\n\t\tMap<String, String> job = new HashMap<String, String>();\n\t\tjob.put(\"title\", \"Java Developer\");\n\t\tjob.put(\"description\", \"Java Developer 1\");\n\t\tjob.put(\"location\", \"london\");\n\t\tjobs.add(job);\n\t\t\n\t\tjob = new HashMap<String, String>();\n\t\tjob.put(\"title\", \"Java Developer\");\n\t\tjob.put(\"description\", \"Java Developer 1\");\n\t\tjob.put(\"location\", \"london\");\n\t\tjobs.add(job);\n\t\t\n \n\t\treturn \"SUCCESS\";\n \n\t}", "public int getHC_JobDataChange_ID();", "public String enameGet(String emp_id) throws Exception;", "@RequestMapping(value = \"/v2/employees\", method = RequestMethod.GET)\r\n\tpublic List<Employee> employeev2() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QEmployee qemployee = QEmployee.employee;\r\n List<Employee> employees = (List<Employee>) query.from(qemployee).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn employees;\r\n }", "public JobId job() { return Objects.requireNonNull(job, \"production revisions have no associated job\"); }", "public String getJobTitle() {\r\n return jobTitle;\r\n }", "@Override\r\n\tpublic List<EmployeeBean> getAllData() {\n\r\n\t\tEntityManager manager = entityManagerFactory.createEntityManager();\r\n\r\n\t\tString query = \"from EmployeeBean\";\r\n\r\n\t\tjavax.persistence.Query query2 = manager.createQuery(query);\r\n\r\n\t\tList<EmployeeBean> list = query2.getResultList();\r\n\t\tif (list != null) {\r\n\t\t\treturn list;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private void getStageDetailsForJob() throws IGCException {\n final String methodName = \"getStageDetailsForJob\";\n String jobRid = job.getId();\n log.debug(\"Retrieving stage details for job: {}\", jobRid);\n IGCSearch igcSearch = new IGCSearch(\"stage\");\n igcSearch.addProperties(DataStageConstants.getStageSearchProperties());\n IGCSearchCondition condition = new IGCSearchCondition(\"job_or_container\", \"=\", jobRid);\n IGCSearchConditionSet conditionSet = new IGCSearchConditionSet(condition);\n igcSearch.addConditions(conditionSet);\n ItemList<Stage> stages = igcRestClient.search(igcSearch);\n List<Stage> allStages = igcRestClient.getAllPages(null, stages);\n for (Stage stage : allStages) {\n stageToVarsMap.put(stage.getId(), new TreeSet<>());\n }\n buildMap(stageMap, allStages);\n }", "List<MiniJobForUser> getMiniJobForUserId( String userId );", "@GetMapping(\"/runPesertaJob\")\n public String pesertaBatchJob() {\n try {\n JobParameters parameters = new JobParametersBuilder()\n .addString(\"JobId\", \"60\") //mengirim parameter ke job\n .toJobParameters();\n jobLauncher.run(importDataPesertaFromCsv, parameters);\n\n } catch (Exception ex) {\n logger.error(\"ERROR LAUNCH importDataPesertaFromCsvJob : \", ex.getMessage(), ex);\n return \"ERROR LAUNCH importDataPesertaFromCsvJob : \" + ex.getMessage();\n }\n return \"JOB DONE !!\";\n }", "@Override\r\n\tpublic Vector<Log> get(Employee employee, Timestamp begin, Timestamp end) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tVector<Log> ret = new Vector<Log>();\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetE);\r\n\t\t\tps.setInt(1, employee.getId());\r\n\t\t\tps.setTimestamp(2, begin);\r\n\t\t\tps.setTimestamp(3, end);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tret.add(generate(rs));\r\n\t\t\t}\r\n\t\t\tcon.close();\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 ret;\r\n\t}", "public void setJob(String job) {\n this.job = job;\n }" ]
[ "0.66173744", "0.64844394", "0.6480435", "0.63694125", "0.63307047", "0.6296249", "0.62736386", "0.62705004", "0.6256992", "0.6210574", "0.62092465", "0.61913913", "0.6183596", "0.61470824", "0.6110664", "0.61014956", "0.6099668", "0.60677296", "0.6067016", "0.60640633", "0.60526603", "0.60405433", "0.6018796", "0.5992247", "0.59841883", "0.59802175", "0.59791535", "0.59752196", "0.59752196", "0.5965593", "0.59620583", "0.59546125", "0.59546125", "0.59546125", "0.594925", "0.5933367", "0.59324014", "0.59324014", "0.59071654", "0.5899411", "0.5899411", "0.5883743", "0.5877406", "0.5868856", "0.5855367", "0.5844009", "0.5841114", "0.58410716", "0.5835219", "0.58328366", "0.5832274", "0.5831434", "0.5828782", "0.581939", "0.5809981", "0.57986116", "0.5790284", "0.5778741", "0.5770554", "0.57649976", "0.5763169", "0.57617825", "0.5753416", "0.5751137", "0.5747654", "0.57463056", "0.57366043", "0.5735424", "0.5734284", "0.572689", "0.57241607", "0.571092", "0.57058114", "0.5692806", "0.5690558", "0.56882024", "0.5685947", "0.56567585", "0.5654993", "0.56535167", "0.5651355", "0.5649612", "0.5644625", "0.5639879", "0.5638652", "0.5632433", "0.56220394", "0.56158227", "0.5607809", "0.5601562", "0.5600885", "0.5595919", "0.55899435", "0.55891114", "0.5586801", "0.55844957", "0.5581213", "0.5579253", "0.55762154", "0.5569969" ]
0.64027375
3
Set Job Data Change
public void setHC_JobDataChange_ID (int HC_JobDataChange_ID);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setJob(Job jobNum){\n job = jobNum;\n }", "public ChangeData()\r\n\t\t{\r\n\t\t}", "public void setHadoopJob( Job currJob ) ;", "public void updateData() {\n\n ProgramWorker pw = new ProgramWorker();\n pw.execute();\n\n }", "public void setJob(Job job) throws JobEvent, InterruptedException {\n this.job = job;\n\n try {\n\n job.run();\n\n }\n catch (JobEvent | InterruptedException rethrow)\n {\n this.job = null;\n throw rethrow;\n }\n\n }", "JobResponse.Update update();", "public void updateData() {}", "public void setJob(Job job) throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(jobChannel, job.ordinal(), 2);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to set JOB for the robot\", e);\n \t\t}\n \t}", "@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}", "void setData (Object newData) { /* package access */ \n\t\tdata = newData;\n\t}", "void resetDoneData(ReadOnlyTaskManager newData);", "public void setJob(String job) {\n this.job = job;\n }", "private void updatejob() {\n\t\tString course = edt_course.getText().toString();\n\t\tString content = edt_content.getText().toString();\n\t\tjob.setCourseName(course);\n\t\tjob.setJobContent(content);\n\t\tjob.update(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"更新成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}", "@DISPID(-2147412072)\n @PropPut\n void ondatasetchanged(\n java.lang.Object rhs);", "@Override\n\tpublic void setAutomataChanges() {\n\t\t\n\t}", "public void setJob_Customer(CustomerDataObject job_Customer) {\r\n this.job_Customer = job_Customer;\r\n }", "public void setJobProgress(JobProgress jobProgress) {\n this.jobProgress = jobProgress;\n }", "public void setJob_StatusCheck(StatusCheckDataObject job_StatusCheck) {\r\n this.job_StatusCheck = job_StatusCheck;\r\n }", "void resetData(ReadOnlyTaskManager newData);", "public void setJobObserver(JobObserver jO) {\n\r\n\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "private void setData() {\n\n }", "public void onProcessChanges(IDuccWork job, IDuccProcess left, IDuccProcess right);", "public JobChangeDTO jobChange(final JobChangeDTO jobChangeDTO) throws ApplicationCustomException;", "public void setJobId( int jobId ) ;", "void setJobName(String jobName);", "public void setOldData(String oldData) {\r\n this.oldData = oldData;\r\n }", "protected void beforeJobExecution() {\n\t}", "public void setWorkProcessChanges(WorkProcessChangesHandler callback);", "JobResponse refresh();", "public void updateJobCommand(JobCommand jobCommand) throws DatabaseException, IllegalArgumentException;", "public void SetJobByFileLine(String[] jobInfo) {\r\n this.setJobID(Integer.parseInt(jobInfo[0]));\r\n this.setJobPriority(Integer.parseInt(jobInfo[1]));\r\n this.setJobInTime(Integer.parseInt(jobInfo[2]));\r\n this.setJobInstructionNum(Integer.parseInt(jobInfo[3]));\r\n Log.Info(\"检测后备作业\", String.format(\"正在加载后备作业:%d,优先级:%d,进入时间:%d,指令数:%d\", jobID, jobPriority, jobInTime, jobInstructionNum));\r\n instructions = new ArrayList<>(jobInstructionNum);\r\n this.data = new short[jobInstructionNum];\r\n }", "protected void setDataInForm(Long jobID) {\n if (jobID == null) {\n this.stepsValues = NewTaskService.getInitList();\n this.jobName = null;\n pickListBean.initDualList();\n } else {\n Job job = jobService.getByIdWithCollections(jobID);\n this.stepsValues = NewTaskService.getJobStepValuesList(job); \n this.jobName = job.getJobName(); \n pickListBean.setDualListByJob(job);\n }\n }", "public void setData(Data data) {\n this.data = data;\n }", "@Override\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tmHandler.sendEmptyMessage(1);\n\t\t\tLog.i(\"message\", \"dataChange\");\n\t\t\tsuper.onChange(selfChange);\n\t\t}", "public void chg() {\n currentChangeStep = 3;\n }", "public void setData(E data)\n {\n this.data = data;\n }", "public void updateDataSet(ArrayList<JobSpecBean> dataList) {\n\t\tthis.dataList = dataList;\n\t\tnotifyDataSetChanged();\n\t}", "void resetData(ReadOnlyTaskList newData);", "public void setData( E data ) {\n\t\tthis.data = data;\n\t}", "public JobData(Job job,\n JobContext jContext,\n TaskAttemptContext tContext,\n ManifestCommitter committer) {\n this.job = job;\n this.jContext = jContext;\n this.tContext = tContext;\n this.committer = committer;\n conf = job.getConfiguration();\n }", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}", "void setChangeSet(ChangeSet changeSet);", "public void setData(E data){\n\t\t\tthis.data = data;\n\t\t}", "public void assignData( final String _arg ) throws Exception {\n\t\t\t\n\t\t\tthis.appTda_.assignData( _arg );\n\t\t}", "public void setData(Object data) {\r\n this.data = data;\r\n }", "public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);", "void setData(T data) {\n\t\tthis.data = data;\n\t}", "public void setData(E data) {\r\n\t\tthis.data = data;\r\n\t}", "public void updateJob(int numeroticket, int chunkjustdone) {\n\t\tif (this.ticket == numeroticket)\n\t\t{\n\t\t\t//System.out.println(\"moi worker \" + id + \" ne doit plus faire \" + chunkjustdone);\n\t\t\tthis.chunkDone[chunkjustdone] = true;\n\t\t\t\n\t\t}\n\t}", "@Override\r\n\tpublic void setData(E data) {\n\t\tthis.data=data;\r\n\t}", "public void dataWasSet();", "public void onDataChanged(IData data) {\r\n setData(data);\r\n }", "void resetUndoneData(ReadOnlyTaskManager newData);", "@Override\r\n\tpublic void doBeforeJob() {\n\r\n\t}", "public int getHC_JobDataChange_ID();", "@Override\n\t\t\tpublic void handleDataChange(String dataPath, Object data) throws Exception {\n\t\t\t\tString cmd = (String)data;\n\t\t\t\tSystem.out.println(\"执行的命令:\"+cmd);\n\t\t\t\texecCmd(cmd);\n\t\t\t}", "void updateData();", "public void setData(Object data) {\n this.data = data;\n }", "protected void updateLocalData(Building[] data){\n new DBHandler(cx).updateBuildings(data);\n }", "private void change(AvgData data,String ... args){\n String pos=args[2];\n String statename=args[3];\n data.getDataMap().replace(pos+\"-state\",statename);\n }", "void setData(Object data);", "public void setData(Object data) {\n\t\tthis.data = data;\n\t}", "public void setJobProperty(String jobProperty) {\r\n this.jobProperty = jobProperty;\r\n }", "public void setOriginalServiceData (Timestamp OriginalServiceData);", "@Override\n\t@Transactional\n\tpublic Job updateJob(Job job) {\n\t\treturn null;\n\t}", "public void setdat()\n {\n }", "@Override\n\tpublic void setData() {\n\n\t}", "void setData (Object data);", "@Override\r\n\tpublic void update(String[] getdata) {\n\r\n\t}", "public void update(Job job) throws DatabaseException, IllegalArgumentException;", "public void saveAndUpdateJobStatus(AbstractPersistedAnalysisJob job) {\r\n job.setLastUpdateDate(new Date());\r\n getWorkspaceService().savePersistedAnalysisJob(job);\r\n updateJobStatus(job);\r\n }", "public void set(Object[] newContents) {\r\n\t\tAssert.isNotNull(newContents);\r\n\t\tdata.clear();\r\n\t\tdata.addAll(Arrays.asList(newContents));\r\n\r\n\t\tIConcurrentModelListener[] listeners = getListeners();\r\n\t\tfor (IConcurrentModelListener listener : listeners) {\r\n\t\t\tlistener.setContents(newContents);\r\n\t\t}\r\n\t}", "public void updateFaxJobFromInputData(T inputData,FaxJob faxJob)\n {\n if(!this.initialized)\n {\n throw new FaxException(\"Fax bridge not initialized.\");\n }\n \n //get fax job\n this.updateFaxJobFromInputDataImpl(inputData,faxJob);\n }", "@Override\n\tpublic void changementMap(String dataName) {\n\t\talgo.setDataName(dataName);\n\t}", "public void setDataModifica(Date dataModifica) {\n\t\tthis.dataModifica = dataModifica;\n\t}", "protected abstract void updateFaxJobFromInputDataImpl(T inputData,FaxJob faxJob);", "public void setData(V data){\n\t\tthis.data = data;\n\t}", "public static void writeNewJob(Job job) {\n DatabaseReference database = FirebaseDatabase.getInstance().getReference();\n database.child(\"jobs\").push().setValue(job);\n }", "@Override\n\t\t\tpublic void beforeJob(JobExecution jobExecution) {\n\t\t\t\t\n\t\t\t}", "public void editDataInWorkUnit(String alias, ArrayList<Integer> progress, ArrayList<Integer> progressIndicator, List<String> nameForManipulator, List<String> description, List<String> categoryForManipulator,\n ArrayList<Integer> assigneIndex, ArrayList<Integer> authorIndex, ArrayList<Integer> priorityIndex, ArrayList<Integer> severityIndex,\n ArrayList<Integer> typeIndex, ArrayList<Integer> resolutionIndex, ArrayList<Integer> statusIndex,\n ArrayList<Double> estimateForDataManipulator, List<Integer> nameIndicator, List<Integer> descriptionIndicator, List<Integer> categoryIndicator,\n ArrayList<Integer> assigneIndicator, ArrayList<Integer> authorIndicator, ArrayList<Integer> priorityIndicator, ArrayList<Integer> severityIndicator,\n ArrayList<Integer> typeIndicator, ArrayList<Integer> resolutionIndicator, ArrayList<Integer> statusIndicator,\n ArrayList<Integer> estimateIndicator, ArrayList<LocalDate> createDate, ArrayList<Integer> createIndicator, boolean isExist, ArrayList<Integer> relations, ArrayList<ArrayList<Integer>> workUnits, int id) {\n WorkUnit workUnit = dataModel.getWorkUnit(id);\n dataModel.addDataToWorkUnit(workUnit, alias, progress, progressIndicator, nameForManipulator, description, categoryForManipulator,\n assigneIndex, authorIndex, priorityIndex, severityIndex,\n typeIndex, resolutionIndex, statusIndex,\n estimateForDataManipulator, nameIndicator, descriptionIndicator, categoryIndicator,\n assigneIndicator, authorIndicator, priorityIndicator, severityIndicator,\n typeIndicator, resolutionIndicator, statusIndicator,\n estimateIndicator, createDate, createIndicator, isExist, relations, workUnits);\n }", "public void setData(T data){\n this.data = data;\n }", "public void setJobDataMap(JobDataMap jobDataMap) {\n this.jobDataMap = jobDataMap;\n }", "public void setData(long value) {\n this.data = value;\n }", "public void setWork(Duration work)\r\n {\r\n m_work = work;\r\n }", "@Override\n public void onChanged(PainRecord painRecord) {\n\n if(painRecord == null)\n return;\n\n\n SharedPreferences.Editor editor = sharedPreferencesDashboard.edit();\n Gson gson = new Gson();\n String json = gson.toJson(painRecord);\n\n editor.putString(\"painRecord\", json);\n editor.commit();\n\n Calendar dueDate = Calendar.getInstance();\n\n // Set Execution around 05:00:00 AM\n dueDate.set(Calendar.HOUR_OF_DAY, 22);\n dueDate.set(Calendar.MINUTE, 00);\n dueDate.set(Calendar.SECOND, 0);\n\n if (dueDate.before(Calendar.getInstance().getTime())) {\n dueDate.add(Calendar.HOUR_OF_DAY, 24);\n }\n\n long timeDiff = dueDate.getTimeInMillis() - Calendar.getInstance().getTimeInMillis();\n\n WorkRequest uploadWorkRequest =\n new OneTimeWorkRequest.Builder(PushPainRecordToFirebaseWorker.class).setInitialDelay(timeDiff, TimeUnit.MILLISECONDS)\n .build();\n WorkManager\n .getInstance(getApplicationContext())\n .enqueue(uploadWorkRequest);\n }", "protected void afterJobExecution() {\n\t}", "void committed() {\n\t\t\tfor (Entry<Integer, Object> entry : newData.entrySet())\n\t\t\t\toriginalData.put(entry.getKey(), entry.getValue());\n\t\t\treset();\n\t\t\taction = RowAction.UPDATE;\n\t\t}", "public void updateDataModel() {\n //this.dataModel = new TelemetryChartDataModel();\n this.dataModel.\n setModel(getStartDate(), getEndDate(), selectedProjects, telemetryName, parameters);\n Thread thread = new Thread() {\n @Override\n public void run() {\n dataModel.loadData();\n }\n };\n thread.start();\n }", "public void reAssign(DataRecord data) throws ProcessManagerException {\r\n Actor[] oldUsers = null;\r\n Vector<Actor> oldActors = new Vector<Actor>();\r\n Vector<Actor> newActors = new Vector<Actor>();\r\n \r\n try {\r\n WorkflowEngine wfEngine = Workflow.getWorkflowEngine();\r\n String[] activeStates = currentProcessInstance.getActiveStates();\r\n \r\n for (int i = 0; activeStates != null && i < activeStates.length; i++) {\r\n // unassign old working users\r\n oldUsers = currentProcessInstance.getWorkingUsers(activeStates[i]);\r\n \r\n for (int j = 0; j < oldUsers.length; j++) {\r\n oldActors.add(oldUsers[j]);\r\n }\r\n \r\n // assign new working users\r\n for (int j = 0; oldUsers != null && j < oldUsers.length; j++) {\r\n Field field = data.getField(activeStates[i] + \"_\"\r\n + oldUsers[j].getUserRoleName() + \"_\" + j);\r\n String userId = field.getStringValue();\r\n User user = Workflow.getUserManager().getUser(userId);\r\n Actor newActor = Workflow.getProcessInstanceManager().createActor(\r\n user, oldUsers[j].getUserRoleName(), oldUsers[j].getState());\r\n newActors.add(newActor);\r\n }\r\n }\r\n \r\n wfEngine.reAssignActors(\r\n (UpdatableProcessInstance) currentProcessInstance,\r\n (Actor[]) oldActors.toArray(new Actor[0]), (Actor[]) newActors\r\n .toArray(new Actor[0]), currentUser);\r\n } catch (WorkflowException we) {\r\n throw new ProcessManagerException(\"ProcessManagerSessionController\",\r\n \"processManager.EX_ERR_RE_ASSIGN\", we);\r\n } catch (FormException fe) {\r\n throw new ProcessManagerException(\"ProcessManagerSessionController\",\r\n \"processManager.EX_ERR_RE_ASSIGN\", fe);\r\n }\r\n }", "@Override\n\tpublic void beforeJob(JobExecution arg0) {\n\t\t\n\t}", "public void dataSetChanged() {\n\n\t\tif (!isPackValid())\n\t\t\treturn;\n\n\t\t// update charts:\n\t\tupdateCharts();\n\n\t}", "public void setJobState(int jobState) {\n this.jobState = jobState;\n }", "public void setWork(long work, FieldContext fieldContext) {\n\t\t\n\t}", "public void updateData(Trick completedTrick);", "public void setJob_Difficulty(ComboBoxDataObject job_Difficulty) {\r\n this.job_Difficulty = job_Difficulty;\r\n }", "private void scheduleJob() {\n\n }", "@Override\n\tpublic void setJobId(long jobId) {\n\t\tmodel.setJobId(jobId);\n\t}", "public abstract void setCustomData(Object data);" ]
[ "0.6274038", "0.60849524", "0.60651", "0.6041138", "0.59980303", "0.5997419", "0.59921426", "0.598362", "0.59336907", "0.5829594", "0.5802886", "0.57786715", "0.57726705", "0.5762571", "0.57436126", "0.57419866", "0.57369316", "0.57148916", "0.56997424", "0.56954443", "0.56681603", "0.56519955", "0.5643383", "0.5631557", "0.561108", "0.55845255", "0.5570391", "0.5567226", "0.55477166", "0.55471456", "0.5532879", "0.5529609", "0.552665", "0.5524863", "0.55201596", "0.55092895", "0.55038875", "0.54949814", "0.54927313", "0.54927075", "0.5484834", "0.5484484", "0.54754084", "0.5473722", "0.54730225", "0.54635054", "0.5460509", "0.5455086", "0.54545754", "0.5453742", "0.5447364", "0.54455554", "0.54329604", "0.5429971", "0.5428843", "0.5427892", "0.54258436", "0.5422809", "0.5422698", "0.5406688", "0.53883684", "0.53795487", "0.53745043", "0.5364385", "0.5362549", "0.53476846", "0.53412783", "0.5338682", "0.53337497", "0.5331969", "0.53227425", "0.5312937", "0.53121865", "0.5307986", "0.5307191", "0.53056484", "0.5299836", "0.5281068", "0.52769035", "0.52676857", "0.5266395", "0.52609587", "0.525051", "0.5249711", "0.5245732", "0.52451307", "0.5244757", "0.5242328", "0.52376604", "0.52340716", "0.5233589", "0.52316123", "0.52164704", "0.5211725", "0.52089554", "0.5192288", "0.51905143", "0.5181807", "0.5174455", "0.51625896" ]
0.74357796
0
Get Job Data Change
public int getHC_JobDataChange_ID();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ChangeData getChangeData(Project.NameKey projectName, Change.Id changeId);", "public ObservableList<Job> getJobData() {\n return jobData;\n }", "public interface IJobChangeEvent {\n \t/**\n \t * The amount of time in milliseconds to wait after scheduling the job before it \n \t * should be run, or <code>-1</code> if not applicable for this type of event. \n \t * This value is only applicable for the <code>scheduled</code> event.\n \t * \n \t * @return the delay time for this event\n \t */\n \tpublic long getDelay();\n \n \t/**\n \t * The job on which this event occurred.\n \t * \n \t * @return the job for this event\n \t */\n \tpublic Job getJob();\n \n \t/**\n \t * The result returned by the job's run method, or <code>null</code> if\n \t * not applicable. This value is only applicable for the <code>done</code> event.\n \t * \n \t * @return the status for this event\n \t */\n \tpublic IStatus getResult();\n }", "private Changelist[] getChanges() {\n String depot = parent.getDepot();\n String counterName = parent.getCounter();\n Client client = Client.getClient();\n\n // Obtain the most recent changelist available on the client\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Obtain the lower boundary for the changelist results\n Counter counter = Counter.getCounter(counterName);\n int counterVal = 0;\n if (counter != null) {\n counterVal = counter.getValue();\n } else {\n counterVal = toChange.getNumber();\n }\n\n return Changelist.getChanges(depot, counterVal, toChange.getNumber());\n }", "public void setHC_JobDataChange_ID (int HC_JobDataChange_ID);", "public Job getJob();", "long getChangeset();", "public I getChangeInfo(int startSeqNum);", "@Override\n\tpublic int[] getJob() throws RemoteException {\n\t\treturn (Server.jobs.size() > 0)? Server.jobs.remove(0) : null;\n\t}", "public Dsjob getJobObject() { return job; }", "public JobChangeDTO jobChange(final JobChangeDTO jobChangeDTO) throws ApplicationCustomException;", "JobResponse.Update update();", "ChangeSet getChangeSet();", "@Override\r\n\tpublic T getJob() {\n\t\treturn super.getJob();\r\n\t}", "public Job getJob(){\n return job;\n }", "public StatusCheckDataObject getJob_StatusCheck() {\r\n return job_StatusCheck;\r\n }", "public String getJob() {\n return job;\n }", "JobResponse refresh();", "public int getJobId() ;", "cn.infinivision.dataforce.busybee.pb.meta.Execution getExecution();", "public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}", "public java.lang.String getChangeOperation() {\r\n return changeOperation;\r\n }", "@javax.annotation.Nullable\n public String getChange() {\n return change;\n }", "public Double getChange();", "Object getCurrentData();", "public Long getChangeNum() {\n return changeNum;\n }", "SolutionChange getPreviousChange();", "@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}", "public void onProcessChanges(IDuccWork job, IDuccProcess left, IDuccProcess right);", "public String getLastChange() {\n return lastChange;\n }", "@Override\n public Job getJobPOJO() {\n return jobUnproxied;\n }", "ChangeData getData(SubjectType subjectType, ChangeType changeType, Object majorSubject,\r\n\t\tObject minorSubject, Object data1, Object data2, Object preValue)\r\n\t\tthrows PrismsRecordException;", "JobResponse refresh(Context context);", "public long getTimeOfLastValuesChanged();", "public interface Job {\n\n /** unique id for this job that is used as a reference in the service methods */\n String getId();\n\n /** job executor identification that has acquired this job and is going to execute it */\n String getLockOwner();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null. */\n Date getDueDate();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null.\n * @deprecated call {@link #getDueDate()} instead */\n @Deprecated\n Date getDuedate();\n\n /** exception that occurred during the last execution of this job. The transaction \n * of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n String getException();\n\n /** number of retries left. This is only decremented when an exception occurs during job \n * execution. The transaction of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n int getRetries();\n\n /** indicates if this job should be executed separate from any other job \n * in the same process instance */\n boolean isExclusive();\n\n /** the related execution */\n Execution getExecution();\n\n /** the related process instance */\n Execution getProcessInstance();\n\n Date getLockExpirationTime();\n\n}", "long getUpdated();", "public Double getChange(int in);", "public long getStateChange() {\n return stateChange_;\n }", "public Timestamp getOriginalServiceData();", "@com.matrixone.apps.framework.ui.ProgramCallable\r\n\tpublic MapList getLegacyChanges(Context context, String args[]) throws Exception\r\n\t{\r\n\t\tMapList sTableData \t\t\t= new MapList();\r\n\t\tMapList sResultList \t\t= new MapList();\r\n\t\tStringList s1 \t\t\t\t= new StringList();\r\n\t\tHashMap programMap = (HashMap)JPO.unpackArgs(args);\r\n\t\tString strObjectId\t\t\t= (String)programMap.get(\"objectId\");\r\n\t\tHashMap requestMap = (HashMap)programMap.get(\"requestMap\");\r\n\t\tString filterToolbar \t\t= (String)programMap.get(\"toolbar\");\r\n\t\tMap tmpMap \t\t\t\t\t= UICache.getMenu(context, filterToolbar);\r\n\t\tMapList filterCmdsList \t\t= (MapList)tmpMap.get(\"children\");\r\n\t\tMap filterOptCmdMap \t\t= (Map)filterCmdsList.get(0);\r\n\t\tString filterOptCmd \t\t= (String)filterOptCmdMap.get(\"name\");\r\n\r\n\t\tMap commandInfoMap \t\t\t= (Map)UICache.getCommand(context, filterOptCmd);\r\n\t\tMap commandSetting \t\t\t= (Map)commandInfoMap.get(\"settings\");\r\n\t\tString sRangeProgram \t\t= (String)commandSetting.get(\"Range Program\");\r\n\t\tString sRangeFunction \t\t= (String)commandSetting.get(\"Range Function\");\r\n\t\tHashMap sRangeProgramResultMap = (HashMap)JPO.invoke(context, sRangeProgram, null,\r\n\t\t\t\tsRangeFunction, JPO.packArgs(new HashMap()), HashMap.class);\r\n\r\n\t\tStringList choicesList \t\t\t= null;\r\n\t\tString singleSearchType \t\t=\"\";\r\n\t\tString cmdLabel \t\t\t\t= \"\";\r\n\t\tString commandName \t\t\t\t= \"\";\r\n\t\tString sDisplayValue \t\t\t= \"\";\r\n\t\tString sActualValue \t\t\t= \"\";\r\n\t\tString sRegisteredSuite \t\t= \"\";\r\n\t\tString strStringResourceFile \t= \"\";\r\n\t\tString sRequiredCommand \t\t= \"\";\r\n\t\tString searchType \t\t\t= \"\";\r\n\t\tString sLegacytype \t\t\t\t= \"\";\r\n\r\n\t\tStringList strList = new StringList();\r\n\t\tstrList.add(SELECT_NAME);\r\n\t\tstrList.add(SELECT_TYPE);\r\n\t\tstrList.add(SELECT_ID);\r\n\t\tString wherClause = SELECT_CURRENT + \"== 'Active' \";\r\n\t\tStringBuffer sbSearchType = new StringBuffer();\r\n\r\n\t\tif(sRangeProgramResultMap!=null){\r\n\t\t\tchoicesList \t\t= (StringList)sRangeProgramResultMap.get(\"field_display_choices\");\r\n\t\t\tif(choicesList!=null)\r\n\t\t\t\tsingleSearchType \t= (String)choicesList.get(0);\r\n\t\t}\r\n\t\t//Getting the ECM Menu details and its commands\r\n\t\tHashMap menuMap \t= UICache.getMenu(context, \"ECMChangeLegacyMenu\");\r\n\t\tString sECMMenu \t= (String)menuMap.get(\"name\");\r\n\t\tMapList commandMap \t= (MapList)menuMap.get(\"children\");\r\n\t\tif(commandMap!=null){\r\n\t\t\tIterator cmdItr = commandMap.iterator();\r\n\t\t\twhile(cmdItr.hasNext())\t{\r\n\t\t\t\tMap tempMap = (Map)cmdItr.next();\r\n\t\t\t\tcommandName = (String)tempMap.get(\"name\");\r\n\t\t\t\tHashMap cmdMap = UICache.getCommand(context, commandName);\r\n\t\t\t\tHashMap settingMap = (HashMap)cmdMap.get(\"settings\");\r\n\t\t\t\tcmdLabel = (String)cmdMap.get(\"label\");\r\n\t\t\t\tsRegisteredSuite = (String)settingMap.get(\"Registered Suite\");\r\n\r\n\r\n\t\t\t\t//strStringResourceFile = UINavigatorUtil.getStringResourceFileId(sRegisteredSuite);\r\n\r\n\r\n\t\t\t\tStringBuffer strBuf = new StringBuffer(\"emx\");\r\n\t\t\t\tstrBuf.append(sRegisteredSuite);\r\n\t\t\t\tstrBuf.append(\"StringResource\");\r\n\r\n\t\t\t\tsDisplayValue =EnoviaResourceBundle.getProperty(context, strBuf.toString(), context.getLocale(),cmdLabel);\r\n\t\t\t\tif(sDisplayValue.equals(singleSearchType)){\r\n\t\t\t\t\tsRequiredCommand = commandName;\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\tif(!UIUtil.isNullOrEmpty(sRequiredCommand)){\r\n\t\t\tHashMap cmdMap = UICache.getCommand(context, sRequiredCommand);\r\n\t\t\tString cmdHref = (String)cmdMap.get(\"href\");\r\n\t\t\tHashMap settingsMap = (HashMap)cmdMap.get(\"settings\");\r\n\t\t\tsearchType = (String)settingsMap.get(\"searchType\");\r\n\t\t}\r\n\t\t//Getting ECM details\r\n\r\n\t\tif(!UIUtil.isNullOrEmpty(searchType)){\r\n\t\t\tStringList sTypeList = FrameworkUtil.split(searchType, \",\");\r\n\t\t\tfor(int i= 0; i<sTypeList.size(); i++){\r\n\t\t\t\tString single = (String)sTypeList.get(i);\r\n\t\t\t\tsLegacytype = PropertyUtil.getSchemaProperty(context,single);\r\n\t\t\t\tsbSearchType.append(sLegacytype);\r\n\t\t\t\tif(i!=sTypeList.size()-1)\r\n\t\t\t\t\tsbSearchType.append(\",\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry{\r\n\t\t\tif(!UIUtil.isNullOrEmpty(sbSearchType.toString()))\r\n\t\t\t\tif(UIUtil.isNullOrEmpty(strObjectId))\r\n\t\t\t\tsTableData = DomainObject.findObjects(context, sbSearchType.toString(), \"*\", null, strList);\r\n\t\t\t\telse{\r\n\t\t\t\t\tDomainObject partObject=new DomainObject(strObjectId);\r\n\t\t\t\t\tsResultList= partObject.getRelatedObjects(context, \r\n\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\tQUERY_WILDCARD, \r\n\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\tsbSearchType.toString(), \r\n\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\tstrList, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \tnull, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \ttrue, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \tfalse, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t(short)1, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \tnull, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\tnull,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t0);\r\n\t\t\t\t\t\r\n\t\t\t\t\tIterator itr = sResultList.iterator();\r\n\t\t\t\t\twhile (itr.hasNext())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tMap sChangeObject = (Map) itr.next();\r\n\t\t\t\t\t\tString sChangeId = (String) sChangeObject.get(SELECT_ID);\r\n\t\t\t\t\t\tif(!s1.contains(sChangeId)){\r\n\t\t\t\t\t\t\ts1.add(sChangeId);\r\n\t\t\t\t\t\t\tsTableData.add(sChangeObject);\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}\r\n\t\tcatch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tthrow new FrameworkException(ex.getMessage());\r\n\t\t}\r\n\t\tif(sTableData!=null)\r\n\t\t\treturn sTableData;\r\n\t\telse\r\n\t\t\treturn new MapList();\r\n\r\n\r\n\r\n\t}", "public long getStateChange() {\n return stateChange_;\n }", "@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}", "public JobDataMap getJobDataMap() {\n if (jobDataMap == null) {\n jobDataMap = new JobDataMap();\n }\n return jobDataMap;\n }", "java.lang.String getJobId();", "private List<DataRecord> loadRefTableChanges() {\n \n final DataSource changesDataSource =\n ProjectUpdateWizardUtilities\n .createDataSourceForTable(ProjectUpdateWizardConstants.AFM_FLDS_TRANS);\n changesDataSource.addRestriction(Restrictions.in(\n ProjectUpdateWizardConstants.AFM_FLDS_TRANS, CHANGE_TYPE, DifferenceMessage.NEW.name()\n + \",\" + DifferenceMessage.REF_TABLE.name()));\n changesDataSource.addRestriction(Restrictions.eq(\n ProjectUpdateWizardConstants.AFM_FLDS_TRANS, CHOSEN_ACTION,\n Actions.APPLY_CHANGE.getMessage()));\n\n return changesDataSource.getRecords();\n }", "@Override\n\tpublic String getJobName() {\n\t\treturn model.getJobName();\n\t}", "public String getJobInfo() {\n return jobInfo;\n }", "public abstract Date getChanged(int lineNumber);", "@ApiModelProperty(value = \"Data related to the last job run for this Flow\")\n public Object getLatestJob() {\n return latestJob;\n }", "public int getJobState() {\n return jobState;\n }", "public UpdateJobDetails details() {\n return this.details;\n }", "long getLastChanged();", "long getJobIDTarget();", "String getUpdated();", "public CustomerDataObject getJob_Customer() {\r\n return job_Customer;\r\n }", "public String getJobId();", "public JobId job() { return Objects.requireNonNull(job, \"production revisions have no associated job\"); }", "long getStateChange();", "public interface Change\n{\n String getDate();\n\n int getRevision();\n\n String getCommitLog();\n\n String getCommitter();\n}", "public int getChangeType() {\r\n return changeType;\r\n }", "public String[] getJobsWaiting();", "public String fetchRecentChange(){\n\t\treturn recentChange;\n\t}", "public String getJobName() {\n return this.mJob;\n }", "@Override\n public AsyncJob getJob() {\n final AsyncJob job = s_jobMgr.getAsyncJob(_job.getId());\n return job;\n }", "public ChangeDate getChangeDate() {\n return changeDate;\n }", "public ChangeDate getChangeDate() {\n return changeDate;\n }", "public Job currentJob() {\n \t\treturn currentJob;\n \t}", "com.google.ads.googleads.v6.resources.ChangeEvent getChangeEvent();", "@Override\n protected double getServiceTimeForJob (final J job)\n {\n return super.getServiceTimeForJob (job);\n }", "public JobStatus getStatus();", "public List<byte[]> getAllJobInfo() {\n // Fetch a job list with protobuf bytes format from GCS.\n synchronized (GlobalStateAccessor.class) {\n validateGlobalStateAccessorPointer();\n return this.nativeGetAllJobInfo(globalStateAccessorNativePointer);\n }\n }", "public List<IJob> getDependentJobs();", "public String getJobName() {\n return this.jobName;\n }", "public List<String> getDataChangeTaskIdsToObserve() {\n return null;\n }", "@NotNull\n @JsonProperty(\"change\")\n public String getChange();", "@NotNull\n @JsonProperty(\"change\")\n public String getChange();", "@NotNull\n @JsonProperty(\"change\")\n public String getChange();", "public String getJobName() {\n return this.JobName;\n }", "public void getData() {\n if ( jobEntry.getName() != null ) {\n wName.setText( jobEntry.getName() );\n }\n wIncType.setText(jobEntry.getIncType());\n wIncField.setText(jobEntry.getIncField());\n wDataFormat.setText(jobEntry.getDataFormat());\n wStartValue.setText(jobEntry.getStartValue());\n wEndValue.setText(jobEntry.getEndValue());\n\n wName.selectAll();\n wName.setFocus();\n }", "@Override\r\n\tpublic List<IncomingJobResponse> getJobList() {\n\t\tList<IncomingJobs> js = (List<IncomingJobs>)incomingRepository.fetchincomingJobs();\r\n\t\tList<IncomingJobResponse> joblist = new ArrayList<IncomingJobResponse>();\r\n\t\tfor(IncomingJobs job :js){\r\n\t\t\tIncomingJobResponse jobs = new IncomingJobResponse();\r\n\t\t\tSystem.out.println(\"ATA:\"+job.getAta()+\"ETA:\"+job.getEta());\r\n\t\t\tjobs.setJobid(job.getID());\r\n\t\t\t\r\n\t\t\tif(job.getEta()!=null){\r\n\t\t\tjobs.setEta(job.getEta().toString());\r\n\t\t\t}\r\n\t\t\tif(job.getAta()!=null){\r\n\t\t\tjobs.setAta(job.getAta().toString());\r\n\t\t\t}\r\n\t\t\tjobs.setBroker(job.getBroker());\r\n\t\t\tjobs.setClear(job.getClear());\r\n\t\t\tjobs.setConsignee(job.getConsignee());\r\n\t\t\tjobs.setDestination(job.getDestination());\r\n\t\t\tjobs.setFlight(job.getFlight());\r\n\t\t\tjobs.setHawb(job.getHawb());\r\n\t\t\tjobs.setHeld(job.getHeld());\r\n\t\t\tjobs.setMawb(job.getMawb());\r\n\t\t\tjobs.setMLID(job.getMLID());\r\n\t\t\tjobs.setNote(job.getNote());\r\n\t\t\tjobs.setOutturn(job.getOutturn());\r\n\t\t\tjobs.setPiece(job.getPiece());\r\n\t\t\tjobs.setWeight(job.getWeight());\r\n\t\t\tif(job.getInjectionDate()!=null){\r\n\t\t\t\tjobs.setInjectionDate(job.getInjectionDate().toString());\r\n\t\t\t\t}\r\n\t\t\tif(job.getClearanceDate()!=null){\r\n\t\t\t\tjobs.setClearanceDate(job.getClearanceDate().toString());\r\n\t\t\t\t}\r\n\t\t\tjobs.setDamage(job.getDamageNotes());\r\n\t\t\tjobs.setSurplus(job.getSurplusShortage());\r\n\t\t\tjoblist.add(jobs);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn joblist;\r\n\t}", "public void getData()\n\t{\n\t\tif (jobEntry.getName() != null) wName.setText( jobEntry.getName() );\n\t\twName.selectAll();\n\t\tif (jobEntry.getZipFilename()!= null) wZipFilename.setText( jobEntry.getZipFilename() );\n\t\tif (jobEntry.getWildcardSource()!= null) wWildcardSource.setText( jobEntry.getWildcardSource() );\n\n\t\tif (jobEntry.getWildcard()!= null) wWildcard.setText( jobEntry.getWildcard() );\n\t\tif (jobEntry.getWildcardExclude()!= null) wWildcardExclude.setText( jobEntry.getWildcardExclude() );\n\t\tif (jobEntry.getSourceDirectory()!= null) wTargetDirectory.setText( jobEntry.getSourceDirectory() );\n\t\tif (jobEntry.getMoveToDirectory()!= null) wMovetoDirectory.setText( jobEntry.getMoveToDirectory() );\n\n\t\tif (jobEntry.afterunzip>=0)\n\t\t{\n\t\t\twAfterUnZip.select(jobEntry.afterunzip );\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\twAfterUnZip.select(0 ); // NOTHING\n\t\t}\n\t\t\n\t\twAddFileToResult.setSelection(jobEntry.isAddFileToResult());\n\t\twArgsPrevious.setSelection(jobEntry.getDatafromprevious());\n\t\twAddDate.setSelection(jobEntry.isDateInFilename());\n\t\twAddTime.setSelection(jobEntry.isTimeInFilename());\n\t\t\n\t\tif (jobEntry.getDateTimeFormat()!= null) wDateTimeFormat.setText( jobEntry.getDateTimeFormat() );\n\t\twSpecifyFormat.setSelection(jobEntry.isSpecifyFormat());\n\t\t\n\t\twRootZip.setSelection(jobEntry.isCreateRootFolder());\n\t\twCreateFolder.setSelection(jobEntry.isCreateFolder());\n\t\t\n \tif (jobEntry.getLimit()!= null) \n\t\t\twNrErrorsLessThan.setText( jobEntry.getLimit());\n\t\telse\n\t\t\twNrErrorsLessThan.setText(\"10\");\n \t\n\t\tif(jobEntry.getSuccessCondition()!=null)\n\t\t{\n\t\t\tif(jobEntry.getSuccessCondition().equals(jobEntry.SUCCESS_IF_AT_LEAST_X_FILES_UN_ZIPPED))\n\t\t\t\twSuccessCondition.select(1);\n\t\t\telse if(jobEntry.getSuccessCondition().equals(jobEntry.SUCCESS_IF_ERRORS_LESS))\n\t\t\t\twSuccessCondition.select(2);\n\t\t\telse\n\t\t\t\twSuccessCondition.select(0);\t\n\t\t}else wSuccessCondition.select(0);\n\t\t\n\t\twAddOriginalTimestamp.setSelection(jobEntry.isOriginalTimestamp());\n\t\twSetModificationDateToOriginal.setSelection(jobEntry.isOriginalModificationDate());\n\t\twIfFileExists.select(jobEntry.getIfFileExist());\n\t\twcreateMoveToDirectory.setSelection(jobEntry.isCreateMoveToDirectory());\n\t}", "com.google.ads.googleads.v6.resources.ChangeStatus getChangeStatus();", "@Override\n\tpublic int getJobStatus() {\n\t\treturn model.getJobStatus();\n\t}", "public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "public List<DatastreamVersion> listChangedDatastreams();", "private void getSleepData() {\n\n }", "public List<RequestJob> getAllJob() {\n List<RequestJob> allJob = null;\n if (allJob == null) {\n allJob = requestJobMapper.selectByExample(new RequestJobExample());\n }\n MemCacheUtil.set(\"job-list\", allJob);\n return allJob;\n }", "public JobProgress getJobProgress() {\n return this.jobProgress;\n }", "public int getJobStatus(int jNo);", "public ComboBoxDataObject getJob_Difficulty() {\r\n return job_Difficulty;\r\n }", "public String getJobProperty() {\r\n return jobProperty;\r\n }", "public ChangeData()\r\n\t\t{\r\n\t\t}", "public interface WorkChangesHandler {\n\t\t/**\n\t\t * Called when new Jobs are detected during reconciliation. This method \n\t\t * is called once, when the reconciliation finishes. \n\t\t * \n\t\t * @param newJobsMap - map containing new jobs\n\t\t */\n\t\tpublic void onNewWork(Map<DuccId, IDuccWork> newWorkMap);\n\t\t/**\n\t\t * Called when removed Jobs are detected during reconciliation. This method \n\t\t * is called once, when the reconciliation finishes. \n\t\t * \n\t\t * @param removedJobsMap - map containing removed jobs\n\t\t */\n\t\tpublic void onRemovedWork(Map<DuccId, IDuccWork> removedWorkMap);\n\t\t\n\t\t/**\n\t\t * Called when a Job in both Job Maps has a different internal state. That\n\t\t * can be due to status change, etc. This method is called once per each\n\t\t * Job that has a different state in both Maps. \n\t\t * \n\t\t * @param left - Job with a new internal state\n\t\t * @param right - local Job which must be sync'ed with left\n\t\t */\n\t\tpublic void onWorkChanges(IDuccWork left, IDuccWork right);\n\t}", "public ComboBoxDataObject getJob_TypeOfWork() {\r\n return job_TypeOfWork;\r\n }", "public ObjectChangeSet getChangeSet() {\n return changeSet;\n }", "@Override\n public String getJobName() {\n return operate_name;\n }", "public final long getChangeDateTime() {\n \treturn m_changeDate;\n }", "private JobInfo getJobInfo\n\t\t(JobFrontendRef frontend)\n\t\t{\n\t\tfinal JobFrontendRef fe = frontend;\n\t\tJobInfo jobinfo = myFrontendToJobMap.get (frontend);\n\t\tif (jobinfo == null)\n\t\t\t{\n\t\t\tjobinfo = new JobInfo\n\t\t\t\t(/*jobnum */ myNextJobNumber ++,\n\t\t\t\t /*state */ JobInfo.State.WAITING,\n\t\t\t\t /*stateTime*/ System.currentTimeMillis(),\n\t\t\t\t /*username */ null,\n\t\t\t\t /*Nn */ 0,\n\t\t\t\t /*Np */ 0,\n\t\t\t\t /*Nt */ 0,\n\t\t\t\t /*count */ 0,\n\t\t\t\t /*backend */ null,\n\t\t\t\t /*cpus */ null,\n\t\t\t\t /*nodeCount*/ 0,\n\t\t\t\t /*frontend */ fe,\n\t\t\t\t /*renewTimer*/\n\t\t\t\t\tmyLeaseTimerThread.createTimer (new TimerTask()\n\t\t\t\t\t\t{\n\t\t\t\t\t\tpublic void action (Timer theTimer)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\trenewTimeout (theTimer, fe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable exc)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tmyLog.log (exc);\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 /*expireTimer*/\n\t\t\t\t\tmyLeaseTimerThread.createTimer (new TimerTask()\n\t\t\t\t\t\t{\n\t\t\t\t\t\tpublic void action (Timer theTimer)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\texpireTimeout (theTimer, fe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable exc)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tmyLog.log (exc);\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 /*jobTimer*/\n\t\t\t\t\tmyLeaseTimerThread.createTimer (new TimerTask()\n\t\t\t\t\t\t{\n\t\t\t\t\t\tpublic void action (Timer theTimer)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tjobTimeout (theTimer, fe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable exc)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tmyLog.log (exc);\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\tmyFrontendToJobMap.put (frontend, jobinfo);\n\t\t\t}\n\t\treturn jobinfo;\n\t\t}", "long getJobIDSource();", "JobResponse apply();" ]
[ "0.65575016", "0.6296278", "0.6269439", "0.62375295", "0.6116263", "0.6085393", "0.60298055", "0.6029533", "0.5968818", "0.59642446", "0.5929432", "0.58716995", "0.58657956", "0.5814006", "0.5812089", "0.57840985", "0.57610923", "0.57476324", "0.5736638", "0.57357115", "0.5730262", "0.5716885", "0.5665819", "0.56617594", "0.5635719", "0.56257266", "0.56181604", "0.55852497", "0.55683786", "0.5552427", "0.5550238", "0.5548654", "0.54945225", "0.5491894", "0.5485292", "0.5470555", "0.54173636", "0.54139537", "0.54094654", "0.5403489", "0.539411", "0.5386807", "0.5386181", "0.5377", "0.5374639", "0.53710645", "0.5370954", "0.53652287", "0.53342235", "0.5327805", "0.53276706", "0.5325982", "0.53225124", "0.5313421", "0.5307147", "0.5304327", "0.5289641", "0.5278119", "0.5272924", "0.5245717", "0.52406806", "0.5240586", "0.52401036", "0.5225373", "0.5216904", "0.5216904", "0.52159804", "0.520585", "0.5201375", "0.5197899", "0.5183115", "0.5182396", "0.51780653", "0.5164579", "0.51633734", "0.51633734", "0.51633734", "0.51458657", "0.5134588", "0.51298785", "0.5129608", "0.5126536", "0.5120854", "0.51203305", "0.5120061", "0.51175934", "0.5107006", "0.5103951", "0.51002985", "0.509486", "0.5094789", "0.5080188", "0.50772905", "0.50720334", "0.50691986", "0.506383", "0.50416785", "0.5040016", "0.5037311", "0.503443" ]
0.7268149
0
Set Manager To ID
public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdManager(IdMgr idMgr);", "public void setManagerID(int managerID) { this.managerID = managerID; }", "public void setID(int managerID) {\n\n\t\tmanager_id = managerID;\n\t}", "public void setManagerId(Integer managerId) {\n this.managerId = managerId;\n }", "@Override\n\tpublic void setMgr(Integer mgr) {\n\t\tsuper.setMgr(mgr);\n\t}", "public int getManagerID() { return managerID; }", "public void setManager(String manager) {\n this.manager = manager;\n }", "public void setManager(String manager)\r\n {\r\n m_manager = manager;\r\n }", "public int getID() {\n\t\treturn manager_id;\n\t}", "public Integer getManagerId() {\n return managerId;\n }", "public void setManagerIdFk(Number value) {\r\n setAttributeInternal(MANAGERIDFK, value);\r\n }", "public void setManager(String manager) {\n\n if (manager.isEmpty()) {\n\n System.out.println(\"Manager must not be empty\");\n /**\n * If Owner manager is ever an empty String, a NullPointerException will be thrown when the\n * listings are loaded in from the JSON file. I believe this is because the JSON parser we're\n * using stores empty Strings as \"null\" in the .json file. TODO this fix is fine for now, but\n * I want to make it safer in the future.\n */\n this.manager = \" \";\n } else {\n\n this.manager = manager;\n }\n }", "@PutMapping(\"/{id}\")\n public ResponseEntity<MessageResponse> updateManagerByID(@PathVariable(\"id\") Long id, @RequestBody Manager manager) throws EmailAlreadyUsedException {\n String message = this.managerService.updateManagerByID(id,manager);\n return new ResponseEntity<>(new MessageResponse(message), HttpStatus.OK);\n }", "@Test\n public void testSetManagerId() {\n System.out.println(\"setManagerId\");\n int manager_id = 0;\n Manager instance = new Manager();\n instance.setManagerId(manager_id);\n \n fail(\"The test case is a prototype.\");\n }", "public void setId(int id)\r\n {\r\n this.mId = id;\r\n }", "public void setManagerEmpId(String managerEmpId) {\n _managerEmpId = managerEmpId;\n }", "Identification getManagerIdentification();", "public void setManagerRefId(String managerRefId) {\n this.managerRefId = managerRefId;\n }", "public void setID(Object caller, int id)\n\t{\n\t\tif (caller instanceof DriverManager)\n\t\t{\n\t\t\tdriverID = id;\n\t\t}\n\t}", "void setId(int val);", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "public void setManager(ActivityManager manager) {\r\n this.manager = manager;\r\n manager.add(this);\r\n }", "public abstract void setId(int id);", "void setId(int id);", "void setId(ID id);", "public void assignId(int id);", "public manager() {\n initComponents();\n autoID();\n table_update();\n }", "public void setManager(OtmModelManager modelManager) {\n this.modelManager = modelManager;\n }", "private MAID(int maID){\n\t\t\n\t\t\n\t\tthis.id = maID;\n\t}", "public void setID(int id);", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(int newId) {\n roomId = newId;\n }", "public int getHC_ManagerTo_ID();", "public void setObjectManager(ObjectManager objectManager) {\n\tthis.objectManager = (ClientObjectManager) objectManager;\n }", "public void setId(int value) {\r\n this.id = value;\r\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(long id);", "public void setId(long id);", "public void setId(long id);", "public void setId(long id);", "public int getGameManagerID() {\n return ID;\n }", "void setId(int id) {\n this.id = id;\n }", "Pair<String, String> addManager() {\n if (getManagerRefId() != null && !getManagerRefId().equals(\"\")) {\n Actor foundManager = ActorDao.getActorByRefId(getManagerRefId());\n if (foundManager != null) {\n Actor currentActor = ActorDao.getActorByRefId(getRefId());\n currentActor.manager = foundManager;\n currentActor.save();\n } else {\n return Pair.of(getRefId(), getManagerRefId());\n }\n }\n return null;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "public void setId(int id);", "public void setId(int id);", "public abstract void setEntityManager(EntityManager em);", "public void setID(long id);", "public void setId(int id){ this.id = id; }", "public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}", "public Object setID(int iD)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setId : \" + \"Agent\");\r\n/* 51 */ \tthis.myID = iD;\r\n/* 52 */ \treturn this;\r\n/* */ }", "void setId(Long id);", "public void setManager(ActivityManager manager) {\n this.manager = manager;\n }", "@PutMapping(\"/etat/{id}\")\n public ResponseEntity<MessageResponse> changeEtatManagerByID(@PathVariable(\"id\") Long id)\n {\n String message = this.managerService.changeEtatManagerByID(id);\n return new ResponseEntity<>(new MessageResponse(message), HttpStatus.OK);\n }", "void setIdNumber(String idNumber);", "void setId(String id);", "void setId(String id);", "void setId(String id);", "public void setId(ID id)\n {\n this.id = id;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(int value) {\n this.id = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }", "public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }", "public DisplayManager(Object manager) {\n this.manager = manager;\n }", "public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }", "@Override\n\tpublic void registerManager(ManagerAppInterface ma) throws RemoteException {\n\t\t\n\t\tthis.ma = ma;\n\t}", "public void setId(long param) {\n localIdTracker = param != java.lang.Long.MIN_VALUE;\r\n\r\n this.localId = param;\r\n }", "public void setId(int id)\n {\n this.id=id;\n }", "public void set_id(int ID)\n {\n id =ID;\n }", "void setId(Integer id);", "final public void setId(int idp) {\n\t\tid = idp;\n\t\tidSet = true;\n\t}", "public void setId(int newId) {\n\tid = newId;\n}", "public void setId(final int id);", "public void setId(int tmp) {\n this.id = tmp;\n }", "public void setId(int tmp) {\n this.id = tmp;\n }", "public void setID(String newID)\r\n {\r\n id=newID;\r\n }", "public String getManager() {\n return manager;\n }", "public void setJoinManager( JoinManager mgr ) {\n\t\tthis.mgr = mgr;\n\t}", "public void setId(String id) {\n }", "public void setId(String newValue);", "protected abstract void setId(P object, Long id);" ]
[ "0.818155", "0.8071075", "0.7478391", "0.73819906", "0.70521295", "0.7010779", "0.6891702", "0.68884045", "0.6859666", "0.66290694", "0.6445108", "0.6294897", "0.6227799", "0.61728835", "0.60921675", "0.60884243", "0.6074604", "0.6061919", "0.60213673", "0.60196024", "0.60107684", "0.6008014", "0.5992756", "0.5988152", "0.598356", "0.5965491", "0.5950738", "0.5925826", "0.5917373", "0.59071314", "0.58969086", "0.58790743", "0.58663213", "0.58476746", "0.5841365", "0.58312756", "0.5830589", "0.5830589", "0.5830589", "0.5830589", "0.5819021", "0.58183557", "0.5811067", "0.58007133", "0.5791261", "0.5791261", "0.5783781", "0.57728237", "0.5764243", "0.5762935", "0.57628185", "0.576227", "0.5762128", "0.5760153", "0.57559454", "0.5749789", "0.5749789", "0.5749789", "0.57493854", "0.5737662", "0.5737662", "0.5737662", "0.5737662", "0.5737662", "0.5737662", "0.5737662", "0.5737662", "0.5737662", "0.5729894", "0.5729894", "0.57298446", "0.57298446", "0.57290846", "0.5722255", "0.5722255", "0.5722255", "0.5722255", "0.5722255", "0.5722255", "0.5722255", "0.5721242", "0.5721242", "0.57203174", "0.57192427", "0.5710173", "0.5699135", "0.569822", "0.5683291", "0.5677654", "0.5677533", "0.5667629", "0.5666826", "0.5665307", "0.5665307", "0.5660403", "0.56600696", "0.5659019", "0.56563455", "0.56553686", "0.565483" ]
0.76420504
2
Get Manager To ID
public int getHC_ManagerTo_ID();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getManagerId() {\n return managerId;\n }", "public int getManagerID() { return managerID; }", "public int getID() {\n\t\treturn manager_id;\n\t}", "Identification getManagerIdentification();", "public Number getManagerIdFk() {\r\n return (Number) getAttributeInternal(MANAGERIDFK);\r\n }", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "public void setManagerID(int managerID) { this.managerID = managerID; }", "public Actor getManager() {\n return ActorDao.getActorByRefId(getManagerRefId());\n }", "Pair<String, String> addManager() {\n if (getManagerRefId() != null && !getManagerRefId().equals(\"\")) {\n Actor foundManager = ActorDao.getActorByRefId(getManagerRefId());\n if (foundManager != null) {\n Actor currentActor = ActorDao.getActorByRefId(getRefId());\n currentActor.manager = foundManager;\n currentActor.save();\n } else {\n return Pair.of(getRefId(), getManagerRefId());\n }\n }\n return null;\n }", "public int getGameManagerID() {\n return ID;\n }", "public String getManagerEmpId() {\n return _managerEmpId;\n }", "public void setIdManager(IdMgr idMgr);", "public String getManager()\n {\n return (String) getProperty(PropertyIDMap.PID_MANAGER);\n }", "public String getManager() {\n\n return this.manager;\n }", "public String getmanager() {\n\t\treturn _manager;\n\t}", "public int getMakerId();", "public void setManagerId(Integer managerId) {\n this.managerId = managerId;\n }", "public String getManager() {\n return manager;\n }", "String getManagerName();", "@Override\r\n\tpublic String managerIdUnderHimById(String category, int himId) {\n\t\treturn projectDAO.managerIdUnderHimById(category, himId);\r\n\t}", "public String getManager()\r\n {\r\n return (m_manager);\r\n }", "String getCreatorId();", "protected String getManagerJid()\n {\n return _managerJid;\n }", "public ViewLinkImpl getEmpManagerFkLink1() {\n return (ViewLinkImpl)findViewLink(\"EmpManagerFkLink1\");\n }", "public String getMaternalID();", "public void setID(int managerID) {\n\n\t\tmanager_id = managerID;\n\t}", "public synchronized String getManager()\r\n {\r\n return manager;\r\n }", "@XmlElement\n public String getManagerRefId() {\n return managerRefId;\n }", "public int getIdTo() {\n return idTo;\n }", "@GetMapping(\"/getById/{id}\")\n\t@ApiOperation(value = \"fetch manager by id\", response = Manager.class, tags = \"ManagerControllerClass\")\n\tpublic Manager getManagerById(@PathVariable(value=\"id\") int managerId) {\n\t\t\n\t\treturn managerService.getManagerById(managerId);\n\t}", "int getOwnerID();", "MatchmakingManager getManager(String matchmakingId);", "private void testManagerDAO(){\n System.out.println(\"==========================\");\n System.out.println(\"test finding managerID by userID\");\n int managerID = managerDAO.getIdManager(1);\n System.out.println(managerID);\n System.out.println(\"\\n\");\n \n }", "Integer getRealmId();", "public String getManagerName() {\n return managerName;\n }", "@Override\n\tpublic String getId() {\n\t\tString pName = ctx.getCallerPrincipal().getName();\n\t\tPerson p = userEJB.findPerson(pName);\n\t\tString id = p.getId()+\"\";\n\t\treturn id;\n\t\t\n\t}", "String getChildId();", "long getOwnerIdLong();", "public String getSalesManId() {\n return salesManId;\n }", "Object getId();", "String getRootId();", "String getRootId();", "private long getOwnID(){\n return authenticationController.getMember() == null ? -1 :authenticationController.getMember().getID();\n }", "int getOtherId();", "public String getToStoreId();", "public Long getAuditingManId() {\r\n return auditingManId;\r\n }", "public Manager getManager() {\n return this.manager;\n }", "String getDest_id();", "public int getModuleId();", "private String getMyNodeId() {\n TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);\n String nodeId = tel.getLine1Number().substring(tel.getLine1Number().length() - 4);\n return nodeId;\n }", "java.lang.String getID();", "public String getPaternalID();", "String managedBy();", "FundManagerDo selectByPrimaryKey(String managerId);", "@Override\n public GenericManager<Societe, Long> getManager() {\n return manager;\n }", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "long getDestinationId();", "@Override\n\tpublic int getId() {\n\t\treturn delegate.getId();\n\t}", "public Integer getTargetID()\r\n\t\t{ return mapping.getTargetId(); }", "public Integer getToId() {\n return toId;\n }", "@Override\n public TableUserManager getEntityItem(Object id) {\n TableUserManager manager=null;\n for (TableUserManager tableUserManager : getListDataFromDB()) {\n if(tableUserManager.getId()==(int)id){\n manager=tableUserManager;\n break;\n }\n }\n return manager;\n }", "String getModuleId();", "@Override\n public AppEntity getByManagerId(int managerId) {\n return (AppEntity) appDao.getByManagerId(managerId);\n }", "@Size(max=4)\n\t@Override\n\tpublic Integer getMgr() {\n\t\treturn super.getMgr();\n\t}", "int getReceiverid();", "String getID();", "String getID();", "String getID();", "String getID();", "public java.lang.Long getUsua_id();", "public void setManagerEmpId(String managerEmpId) {\n _managerEmpId = managerEmpId;\n }", "public String getManagerName() {\n return \"r\";\n }", "int getEnterId();", "int getEnterId();", "int getEnterId();", "int getEnterId();", "ActorId getActorId();", "public final T getManager() {\n return this.manager;\n }", "public int getId(){\r\n return localId;\r\n }", "private String getIdioma()\n throws MareException\n {\n\t\tLong idioma = UtilidadesSession.getIdioma(this);\n\t\treturn idioma.toString();\n }", "public long getId();", "public long getId();" ]
[ "0.75969255", "0.7588573", "0.7559732", "0.75453955", "0.6876968", "0.6861697", "0.6843305", "0.65983987", "0.6597927", "0.6570227", "0.6503453", "0.64914435", "0.6480069", "0.64642566", "0.6444356", "0.64392054", "0.6435946", "0.6339319", "0.6321319", "0.63197505", "0.6308188", "0.63011086", "0.6296855", "0.62481725", "0.6208566", "0.61991674", "0.61342114", "0.6103056", "0.6056424", "0.6036922", "0.6019214", "0.5982194", "0.59709895", "0.5959545", "0.5957909", "0.59239185", "0.5889202", "0.58725286", "0.5871927", "0.58443254", "0.58356416", "0.58356416", "0.58294785", "0.58264935", "0.5817042", "0.5788747", "0.5778661", "0.5741957", "0.5732462", "0.5731435", "0.5719361", "0.57103723", "0.56934166", "0.5684875", "0.56795", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.5678398", "0.56774414", "0.5671373", "0.5666227", "0.56616145", "0.5656606", "0.5650814", "0.5634786", "0.56290305", "0.5612109", "0.5606016", "0.5606016", "0.5606016", "0.5606016", "0.5599858", "0.55995464", "0.55994004", "0.55956125", "0.55956125", "0.55956125", "0.55956125", "0.5583087", "0.5576174", "0.55718386", "0.55716044", "0.55590063", "0.55590063" ]
0.81570464
0
Set HC Organization To
public void setHC_Org2_ID (int HC_Org2_ID);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setOrganization(String organization);", "public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setOrganization(Organization organization){\r\n\t\tthis.organization = organization;\r\n\t}", "public void setOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOrganization(arg0);\n }", "public void secondarySetOrganization(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOrganization(arg0);\n }", "protected void setOrganization(String organization) {\n this.organization = organization;\n }", "public void setOrganization(Organization organization) {\n this.organization = organization;\n }", "public void setOrganization(Organization organization) {\n this.organization = organization;\n }", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "public void setAD_Org_ID (int AD_Org_ID);", "Builder addSourceOrganization(String value);", "private void setOrganizationFields(Cursor cur) {\n\n\t\tint selectedColumn;\n\n\t\t//\n\t\t// Get Organizations fields\n\t\t//\n\t\tselectedColumn = cur.getColumnIndex(Organization.COMPANY);\n\t\tString company = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TITLE);\n\t\tString title = cur.getString(selectedColumn);\n\n\t\tselectedColumn = cur.getColumnIndex(Organization.TYPE);\n\t\tint orgType = cur.getInt(selectedColumn);\n\n\t\tString customLabel = null;\n\t\tif (orgType == Organization.TYPE_CUSTOM) {\n\t\t\tselectedColumn = cur.getColumnIndex(Organization.LABEL);\n\t\t\tcustomLabel = cur.getString(selectedColumn);\n\t\t}\n\n\t\torgs.add(new OrgData(orgType, title, company, customLabel));\n\t}", "Builder addSourceOrganization(Organization value);", "public void setOrganizationId(Number value) {\n setAttributeInternal(ORGANIZATIONID, value);\n }", "public void setOrganizationId(long organizationId);", "Builder addSourceOrganization(Organization.Builder value);", "public final void setOrganisation(String value) {\n organisation = value;\n }", "Builder addCopyrightHolder(Organization value);", "public void setOrganization(String organization) {\n\t\tthis.organization = organization;\n\t}", "public void setContactOrganization(String contactOrganization) {\n this.contactOrganization = contactOrganization;\n }", "public String getOrganization ()\n {\n return this.organization;\n }", "public boolean setOrganization(String organize)\n {\n this.organization = organize;\n System.out.print(\"Publishing organization information written successfully\\n\");\n return true;\n }", "String getOrganization();", "public String getOrganization() {\n return organization;\n }", "public Value.Builder setKdOrg(java.lang.CharSequence value) {\n validate(fields()[12], value);\n this.kd_org = value;\n fieldSetFlags()[12] = true;\n return this;\n }", "public Organization getOrganization(){\r\n\t\treturn organization;\r\n\t}", "@Override\r\n public void setCorporation(String corporation) {\n }", "public void setId_Organization(java.lang.String id_Organization) {\n this.id_Organization = id_Organization;\n }", "public interface Organization {\n\n void setName(String name);\n\n String getName();\n\n SubordinatesContainer getHead();\n\n void setHead(SubordinatesContainer head);\n}", "@AutoEscape\n\tpublic String getOrganization();", "public void setOrganizationText(String organizationText) {\n this.organizationText = organizationText;\n }", "public void xsetOrganizationId(com.microsoft.schemas._2003._10.serialization.Guid organizationId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.set(organizationId);\r\n }\r\n }", "@Override\n public void setOrganizationId(long organizationId) {\n _usersCatastropheOrgs.setOrganizationId(organizationId);\n }", "Builder addCopyrightHolder(Organization.Builder value);", "public void setOrganizationId(java.lang.String organizationId)\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_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ORGANIZATIONID$4);\r\n }\r\n target.setStringValue(organizationId);\r\n }\r\n }", "public String getOrganization() {\n\t\treturn organization;\n\t}", "Party getOrganizationParty();", "@Override\n\tpublic void setEsfOrganization(java.lang.String esfOrganization) {\n\t\t_esfShooterAffiliationChrono.setEsfOrganization(esfOrganization);\n\t}", "public String organization() {\n return this.organization;\n }", "public void setConsortium(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONSORTIUM_PROP.get(), value);\n }", "Builder addCreator(Organization value);", "public void setOrgId(String orgId);", "public void setConsortium(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONSORTIUM_PROP.get(), value);\n }", "Builder addAuthor(Organization value);", "Builder addCreator(Organization.Builder value);", "public Organization getOrganization() {\n return organization;\n }", "public Organization getOrganization() {\n return organization;\n }", "public String getOrganizationName() {\n\n \n return organizationName;\n\n }", "public void setOrganizationAddress(String organizationAddress) {\n \n this.organizationAddress = organizationAddress;\n\n }", "Builder addProvider(Organization value);", "public void setKdOrg(java.lang.CharSequence value) {\n this.kd_org = value;\n }", "public void setAuthority (\r\n String strAuthority) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void setOrgan(String organ) {\n\t\tthis.organ = organ;\n\t}", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "Builder addProvider(Organization.Builder value);", "public void setOwner(com.hps.july.persistence.OrganizationAccessBean newOwner) {\n\towner = newOwner;\n}", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "public\t Organization getOrganizationHeader()\n { return (Organization) this.getHeader(OrganizationHeader.NAME); }", "void privateSetOrganizationKey(com.hps.july.persistence.OrganizationKey inKey) throws java.rmi.RemoteException;", "Builder addAuthor(Organization.Builder value);", "public void setOrgNo(String orgNo) {\r\n this.orgNo = orgNo;\r\n }", "public void setCompany(Company aCompany) {\n company = aCompany;\n }", "public void setUWCompany(entity.UWCompany value);", "@Override\n\tpublic OrganizationVO getOrganization(String name) throws RemoteException {\n\t\treturn new OrganizationVO(\"1\",Organizationtype.hall);\n\t}", "public void setOrganizationId(String organizationId) {\r\n this.organizationId = organizationId;\r\n }", "Builder addProducer(Organization value);", "public String getOrganizationId() {\r\n return organizationId;\r\n }", "public String getOrganizationText() {\n return organizationText;\n }", "public void unsetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ORGANIZATIONID$4, 0);\r\n }\r\n }", "public Resolution linkToOrganization() {\r\n Organization o = this.myIsern.getSingleOrganization(this.linkItem);\r\n if (o == null) {\r\n this.name = this.linkItem;\r\n this.added = false;\r\n return new RedirectResolution(ADD_ORG_PAGE).flash(this);\r\n }\r\n else {\r\n this.name = this.linkItem;\r\n this.type = o.getType();\r\n this.contact = o.getContact();\r\n \r\n this.affiliatedResearchers = \r\n this.converter.listToString(o.getAffiliatedResearchers().getAffiliatedResearcher());\r\n \r\n this.country = o.getCountry();\r\n \r\n this.researchKeywords = \r\n this.converter.listToString(o.getResearchKeywords().getResearchKeyword());\r\n \r\n this.researchDescription = o.getResearchDescription();\r\n this.homePage = o.getHomePage();\r\n \r\n this.edited = false;\r\n this.editing = true;\r\n return new RedirectResolution(EDIT_ORG_PAGE).flash(this);\r\n }\r\n }", "public void setCompany(final String value)\n\t{\n\t\tsetCompany( getSession().getSessionContext(), value );\n\t}", "public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }", "Builder addPublisher(Organization value);", "void setOrganizationsMap(Map<String, Result> organizationsMap);", "public void setCoor(Account coor) {\r\n this.coor = coor;\r\n }", "public void setCompany(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, COMPANY,value);\n\t}", "public void privateSetOrganizationKey(com.hps.july.persistence.OrganizationKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().privateSetOrganizationKey(arg0);\n }", "public void setIdOrganizacion(int idOrganizacion)\r\n/* 99: */ {\r\n/* 100:160 */ this.idOrganizacion = idOrganizacion;\r\n/* 101: */ }", "protected void addOrganizationPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_JuristType_organization_feature\"),\n\t\t\t\t getString(\"_UI_JuristType_organization_description\"),\n\t\t\t\t ContestPackage.Literals.JURIST_TYPE__ORGANIZATION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t true,\n\t\t\t\t null,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public String getOrganizationId() {\n return organizationId;\n }", "private void fixOrg(NameInfo nameInfo){\n\t\tString type = nameInfo.getType();\n\t\tif (type.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\tString name = nameInfo.getName();\n\t\t\tif (orgMan.isValidOrg(name))\n\t\t\t\tnameInfo.setType(\"ORG\");\n\t\t}\n\t}", "public void setOrgCustomer(java.lang.String newOrgCustomer) {\n\torgCustomer = newOrgCustomer;\n}", "private void populateOrganizations() {\n\t\tMatContext.get().getAdminService().getAllOrganizations(new AsyncCallback<ManageOrganizationSearchModel>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void onSuccess(ManageOrganizationSearchModel model) {\n\t\t\t\tList<Result> results = model.getData();\n\t\t\t\tdetailDisplay.populateOrganizations(results);\n\t\t\t\t\n\t\t\t\tMap<String, Result> orgMap = new HashMap<String, Result>();\n\t\t\t\tfor(Result organization : results) {\n\t\t\t\t\torgMap.put(organization.getId(), organization);\n\t\t\t\t}\n\t\t\t\tdetailDisplay.setOrganizationsMap(orgMap);\n\t\t\t\t\n\t\t\t\tsetUserDetailsToView();\n\t\t\t}\n\t\t});\n\t}", "@Schema(example = \"Passbase Inc.\", description = \"Name of the organization that owns this project\")\n public String getOrganization() {\n return organization;\n }", "public void newOrg()\r\n {\r\n\t\tint[] genes={1,1,1,1,1,1,1,1,1,1,1}; //Setting the gene values to the basic, default values\r\n\t\tOrganism parent=new Organism(genes,1); //Creating the organism with the specified set of genes, and as the first generation\r\n\t\te.setParent(parent); //Setting the curent parent organism to the default starting organism\r\n\t\tArrayList<Organism> treeTemp=new ArrayList<Organism>(); \r\n\t\te.setTree(treeTemp); //Setting new succession tree to an empty tree\r\n\t\trepaint();\r\n }", "Builder addProducer(Organization.Builder value);" ]
[ "0.7462174", "0.73668486", "0.71518975", "0.67997855", "0.6797863", "0.6785564", "0.66333395", "0.66305524", "0.66305524", "0.6405927", "0.6405927", "0.6405927", "0.6405927", "0.6405927", "0.6405927", "0.6405927", "0.6405927", "0.6405927", "0.6405927", "0.6405927", "0.6405927", "0.6405927", "0.63522214", "0.6293918", "0.62308", "0.62303466", "0.6215137", "0.6214546", "0.6179992", "0.61778116", "0.61449695", "0.6137568", "0.610577", "0.6103813", "0.60964453", "0.6083839", "0.6059881", "0.6053725", "0.6002543", "0.60022736", "0.59965646", "0.59934944", "0.5919811", "0.5914439", "0.59129226", "0.590205", "0.59001136", "0.5874443", "0.58679104", "0.5859452", "0.58422023", "0.5747149", "0.57339996", "0.5719374", "0.57097065", "0.57073194", "0.570611", "0.5687458", "0.5687458", "0.566541", "0.5656386", "0.56544", "0.56420255", "0.5634361", "0.5634067", "0.5630562", "0.5630562", "0.5628988", "0.55866754", "0.5560704", "0.5560704", "0.5543322", "0.5541767", "0.5517569", "0.5514397", "0.5506242", "0.5504785", "0.55037045", "0.5502785", "0.5493653", "0.5480845", "0.5477718", "0.5456731", "0.54510665", "0.544554", "0.54414594", "0.5439981", "0.5436704", "0.5431487", "0.54100335", "0.5404884", "0.5399155", "0.53964037", "0.5382091", "0.53756154", "0.5368883", "0.53629684", "0.5360612", "0.5350432", "0.5347988" ]
0.65438306
9
Get HC Organization To
public int getHC_Org2_ID();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getOrganization();", "public String getOrganization ()\n {\n return this.organization;\n }", "Party getOrganizationParty();", "public String getOrganization() {\n return organization;\n }", "@AutoEscape\n\tpublic String getOrganization();", "public String organization() {\n return this.organization;\n }", "public\t Organization getOrganizationHeader()\n { return (Organization) this.getHeader(OrganizationHeader.NAME); }", "String organizationName();", "public String getOrganization() {\n\t\treturn organization;\n\t}", "String organizationId();", "public Organization getOrganization(){\r\n\t\treturn organization;\r\n\t}", "public Organization getOrganization() {\n return organization;\n }", "public Organization getOrganization() {\n return organization;\n }", "public com.hps.july.persistence.Organization getOrganization() throws java.rmi.RemoteException, javax.ejb.FinderException;", "String getOrganizationPartyId();", "public\t ToHeader getTo()\n { return (ToHeader) toHeader ; }", "public long getOrganizationId();", "public String getOrganizationName() {\n\n \n return organizationName;\n\n }", "public String getOrganizationAddress() {\n\n \n return organizationAddress;\n\n }", "public String getOrganizationText() {\n return organizationText;\n }", "public String getOrgan() {\n\t\treturn this.organ;\n\t}", "public String getOrganizationId() {\r\n return organizationId;\r\n }", "@Override\n\tpublic java.lang.String getEsfOrganization() {\n\t\treturn _esfShooterAffiliationChrono.getEsfOrganization();\n\t}", "public String getOrganizationId() {\n return organizationId;\n }", "public String getOrganizationName() {\n return (orgName);\n }", "public java.lang.String getOrganizationId()\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_element_user(ORGANIZATIONID$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getOrganizationUrl() {\n\n \n return organizationUrl;\n\n }", "public String getOrganizationEmail() {\n\n \n return organizationEmail;\n\n }", "public AddressList getTo() {\n return getAddressList(FieldName.TO);\n }", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public int getAD_Org_ID();", "public Account getOrganizationOwnerAccount() {\n return organizationOwnerAccount;\n }", "public Number getOrganizationId() {\n return (Number)getAttributeInternal(ORGANIZATIONID);\n }", "@Override\n public long getOrganizationId() {\n return _usersCatastropheOrgs.getOrganizationId();\n }", "@Override\n\tpublic TbOrg getOwnOrg() {\n\t\treturn tbOrgMapper.getOwnOrg();\n\t}", "@Override\n\tpublic OrganizationVO getOrganization(String name) throws RemoteException {\n\t\treturn new OrganizationVO(\"1\",Organizationtype.hall);\n\t}", "String getTo();", "public java.lang.String getId_Organization() {\n return id_Organization;\n }", "public Long createOrganization(OrganizationTo orgTo) {\n\t\torgTo = new OrganizationTo();\n\t\torgTo.setName(\"Menlo\");\n\t\torgTo.setAddress1(\"Pioneer Towers\");\n\t\torgTo.setAddress2(\"Madhapur\");\n\t\torgTo.setCity(\"Hyderabad\");\n\t\torgTo.setState(\"AP\");\n\t\torgTo.setPostal_code(\"AP001\");\n\t\torgTo.setCountry(\"AE\");\n\n\t\ttry {\n\t\t\tWebResource webResource = getJerseyClient(userOptixURL + \"CreateOrganization\");\n\t\t\torgTo = webResource.type(MediaType.APPLICATION_JSON).post(OrganizationTo.class, orgTo);\n\t\t\tif(orgTo != null && orgTo.getOrg_id() != null) {\n\t\t\t\treturn orgTo.getOrg_id() ;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in getting the response from REST call CreateOrganization : \"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public String getTo(){\r\n\t\tString output = \"\";\r\n\t\tfor(int i = 0; i < to.size(); i++){\r\n\t\t\tif(i > 0){\r\n\t\t\t\toutput += \";\";\r\n\t\t\t}\r\n\t\t\toutput += to.get(i);\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public String getOrganId() {\n return organId;\n }", "public String getOrganizationCode() {\n return organizationCode;\n }", "@AutoEscape\n\tpublic String getOrgId();", "@Override\n public String toString() {\n return \"RelatedOrg {\"\n + \"}\";\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public Long getOrganizationId() {\n return organizationId;\n }", "public String getTo()\r\n {\r\n return to;\r\n }", "public OrgDo getOrg(Integer id);", "public String getOrgNo() {\r\n return orgNo;\r\n }", "@Schema(example = \"Passbase Inc.\", description = \"Name of the organization that owns this project\")\n public String getOrganization() {\n return organization;\n }", "public Resolution linkToOrganization() {\r\n Organization o = this.myIsern.getSingleOrganization(this.linkItem);\r\n if (o == null) {\r\n this.name = this.linkItem;\r\n this.added = false;\r\n return new RedirectResolution(ADD_ORG_PAGE).flash(this);\r\n }\r\n else {\r\n this.name = this.linkItem;\r\n this.type = o.getType();\r\n this.contact = o.getContact();\r\n \r\n this.affiliatedResearchers = \r\n this.converter.listToString(o.getAffiliatedResearchers().getAffiliatedResearcher());\r\n \r\n this.country = o.getCountry();\r\n \r\n this.researchKeywords = \r\n this.converter.listToString(o.getResearchKeywords().getResearchKeyword());\r\n \r\n this.researchDescription = o.getResearchDescription();\r\n this.homePage = o.getHomePage();\r\n \r\n this.edited = false;\r\n this.editing = true;\r\n return new RedirectResolution(EDIT_ORG_PAGE).flash(this);\r\n }\r\n }", "public String getTo() {\n return to;\n }", "List<OrganizationMaster> getOrganizationList();", "OrganizationMaster getOrganization(Long uniqueId);", "@ApiModelProperty(example = \"org.acme\", required = true, value = \"Originator of the history item\")\n public String getOrganizationId() {\n return organizationId;\n }", "List<Organization> findOrgByUser(String userId);", "String getCompany();", "public String gettOrganizationCode() {\n\t\treturn tOrganizationCode;\n\t}", "public StrColumn getOrganisation() {\n return delegate.getColumn(\"organisation\", DelegatingStrColumn::new);\n }", "public String getType() {\n\t\t\treturn \"organization\";\n\t\t}", "public final String getOrganisation() {\n return organisation;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getConsortium() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONSORTIUM_PROP.get());\n }", "public void getOrganizations() {\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor results = db.rawQuery(\"SELECT * FROM Organization\", null);\n if (results.moveToFirst()) {\n Log.e(\"ID\", results.getString(0));\n Log.e(\"Name\", results.getString(1));\n while (results.move(1)) {\n Log.e(\"ID\", results.getString(0));\n Log.e(\"Name\", results.getString(1));\n }\n results.close();\n }\n db.close();\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getConsortium() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONSORTIUM_PROP.get());\n }", "public OrganizationHistory organizationHistory() {\n return this.organizationHistory;\n }", "public java.lang.String getToId() {\n return toId;\n }", "@Override\n public CharSequence getDeviceOwnerOrganizationName() {\n if (!mHasFeature) {\n return null;\n }\n final CallerIdentity caller = getCallerIdentity();\n Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)\n || canManageUsers(caller) || isFinancedDeviceOwner(caller));\n synchronized (getLockObject()) {\n final ActiveAdmin deviceOwnerAdmin = getDeviceOwnerAdminLocked();\n return deviceOwnerAdmin == null ? null : deviceOwnerAdmin.organizationName;\n }\n }", "public void setOrganization(String organization);", "ImmutableList<SchemaOrgType> getSourceOrganizationList();", "public VOOrganization getOrganization() {\n\n if (organization == null) {\n organization = new VOOrganization();\n FacesContext fc = FacesContext.getCurrentInstance();\n Locale locale = fc.getViewRoot().getLocale();\n organization.setLocale(locale.toString());\n }\n return organization;\n }", "protected String getTo()\n {\n Object[] msgOptions =\n {\n \"Standard\", \"Broadcast\"\n };\n\n int n = JOptionPane.showOptionDialog(null,\n \"What message type are you sending?\",\n \"Send Message\",\n JOptionPane.DEFAULT_OPTION,\n JOptionPane.INFORMATION_MESSAGE, null,\n msgOptions, msgOptions[0]);\n\n String handle = \"\";\n\n if (n == 0)\n {\n List<String> contacts = new ArrayList();\n agent.getContacts().forEach((c) ->\n {\n contacts.add(c);\n });\n\n while (handle.isEmpty())\n {\n handle = JOptionPane.showInputDialog(null, \"Current Contacts\\n\" + contacts + \"\\n\\nWho would you like to message?\", \"Send Message\");\n if (handle == null)\n {\n setVisible(false);\n //Doesn't error now, but immediately exiting program isn't useful\n System.exit(0);\n }\n if (!handle.matches(\"^[^\\\\d\\\\s]+$\"))\n {\n handle = \"\";\n }\n }\n }\n else\n {\n handle = \"all\";\n }\n\n return handle;\n }", "public String buyOrgOrRet();", "public String getOrganizationNamesList() {\r\n this.organizationNamesList = myIsern.getOrganizationNamesList();\r\n return this.organizationNamesList;\r\n }", "public String getOrgName() {\r\n return orgName;\r\n }", "@Override\n\tprotected UserTO getTo() {\n\t\treturn userTO;\n\t}", "public int getAD_OrgTrx_ID();", "public int getAD_OrgTrx_ID();", "@ApiModelProperty(value = \"A reference to fourth party organisation resource on the OB Directory if the registering TPP is acting on behalf of another\")\n\n@Size(max=40) \n public String getOnBehalfOfObOrganisation() {\n return onBehalfOfObOrganisation;\n }", "public String getOrgname() {\n return orgname;\n }", "public com.microsoft.schemas._2003._10.serialization.Guid xgetOrganizationId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas._2003._10.serialization.Guid target = null;\r\n target = (com.microsoft.schemas._2003._10.serialization.Guid)get_store().find_element_user(ORGANIZATIONID$4, 0);\r\n return target;\r\n }\r\n }", "public com.hps.july.persistence.OrganizationAccessBean getOrganization() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n instantiateEJB();\n com.hps.july.persistence.Organization localEJBRef = ejbRef().getOrganization();\n if ( localEJBRef != null )\n return new com.hps.july.persistence.OrganizationAccessBean(localEJBRef);\n else\n return null;\n }", "public CompanyTO getCompany() {\n\t\t\r\n\t\treturn CompanyService.getInstance().getCompany();\r\n\t}", "@JsonIgnore public Organization getAuthenticator() {\n return (Organization) getValue(\"authenticator\");\n }", "public java.lang.String getOrgName() {\n return OrgName;\n }", "public java.lang.String getOrgCustomer() {\n\treturn orgCustomer;\n}", "public String getOrgName() {\n return orgName;\n }", "public String getCompany()\n\t{\n\t\treturn getCompany( getSession().getSessionContext() );\n\t}", "String managedBy();", "private JComboBox getOrgCmb() {\r\n cmbOrganization = new JComboBox();\r\n \r\n vOrganizations = getProposalSubOrgs();\r\n\r\n CoeusVector cvOrgs = new CoeusVector();\r\n \tcvOrgs.add(0, \"\");\r\n\r\n HashMap mapRow = new HashMap();\r\n \tfor (int c=0;c<vOrganizations.size();c++) {\r\n mapRow = (HashMap) vOrganizations.elementAt(c);\r\n \tcvOrgs.add(c+1,(String)mapRow.get(\"LOCATION_NAME\"));\r\n \t}\r\n \t\r\n \tcmbOrganization.setModel(new DefaultComboBoxModel(cvOrgs));\r\n return cmbOrganization;\r\n }" ]
[ "0.7549086", "0.6960167", "0.6850662", "0.68044716", "0.67754287", "0.67678237", "0.65985394", "0.65787786", "0.6516794", "0.64926356", "0.64744985", "0.6390591", "0.6390591", "0.63886136", "0.6384135", "0.62978905", "0.6286167", "0.62633723", "0.62075776", "0.61668587", "0.6158207", "0.6124554", "0.6096836", "0.60874295", "0.6076579", "0.606964", "0.60577375", "0.60258746", "0.6024984", "0.60201806", "0.60201806", "0.60201806", "0.60201806", "0.60201806", "0.60201806", "0.60201806", "0.60201806", "0.60201806", "0.60201806", "0.60201806", "0.60201806", "0.60201806", "0.59703165", "0.59674895", "0.5961852", "0.59430766", "0.5906829", "0.59038395", "0.58838326", "0.5878209", "0.5872691", "0.5862302", "0.58622783", "0.58540833", "0.58416814", "0.581917", "0.581917", "0.57838035", "0.5729463", "0.57209885", "0.57197285", "0.57070184", "0.57025194", "0.5663409", "0.5662206", "0.56450427", "0.5631315", "0.5620905", "0.56205845", "0.56156987", "0.5586622", "0.5577304", "0.55709875", "0.55484253", "0.5542717", "0.552411", "0.5522311", "0.55206555", "0.55114555", "0.5505617", "0.54954153", "0.5474387", "0.54730076", "0.5467959", "0.5443455", "0.54402626", "0.54366606", "0.54366606", "0.54347885", "0.543096", "0.54140323", "0.5412241", "0.5410368", "0.5407174", "0.54043967", "0.5392781", "0.5390007", "0.53744686", "0.53715515", "0.5362534" ]
0.6057484
27
Set Work End Date
public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEndDate(Date end)\r\n {\r\n this.endDate = end;\r\n }", "void setEndDate(Date endDate);", "public void setEndDate(java.util.Date value);", "public void setDtEnd(Date dtEnd) {\r\n this.dtEnd = dtEnd;\r\n }", "public void setEndDate(Date value) {\r\n this.endDate = value;\r\n }", "public void setEND_DATE(Date END_DATE) {\n this.END_DATE = END_DATE;\n }", "public abstract void setEndTime(Date endTime);", "void setEventEndDate(Date endEventDate);", "public void setEndExecDate(java.util.Calendar endExecDate)\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(ENDEXECDATE$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENDEXECDATE$10);\n }\n target.setCalendarValue(endExecDate);\n }\n }", "public void setEndtime(Date endtime) {\n this.endtime = endtime;\n }", "public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }", "public void setEndDate(Date endDate) {\r\n this.endDate = endDate;\r\n }", "public void setEndDate(Date value)\n {\n\n validateEndDate(value);\n setAttributeInternal(ENDDATE, value);\n \n }", "public void setEndDay(java.lang.String param) {\r\n localEndDayTracker = param != null;\r\n\r\n this.localEndDay = param;\r\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "public void setEndDate(Date endDate) {\n this.endDate = endDate;\n }", "Date getEndDate();", "Date getEndDate();", "public void setEnddate(Date enddate) {\r\n this.enddate = enddate;\r\n }", "@Override\n\tpublic void setEndDate(java.util.Date endDate) {\n\t\t_esfTournament.setEndDate(endDate);\n\t}", "public void setEndTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(ENDTIME_PROP.get(), value);\n }", "public void setEndTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(ENDTIME_PROP.get(), value);\n }", "public void setREQ_END_DATE(java.sql.Date value)\n {\n if ((__REQ_END_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_END_DATE)))\n {\n _isDirty = true;\n }\n __REQ_END_DATE = value;\n }", "public void setEndTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(ENDTIME_PROP.get(), value);\n }", "public void setEndTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(ENDTIME_PROP.get(), value);\n }", "public void setEndDate(java.sql.Date newEndDate) {\n\tendDate = newEndDate;\n}", "public void xsetEndExecDate(org.apache.xmlbeans.XmlDate endExecDate)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDate target = null;\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(ENDEXECDATE$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(ENDEXECDATE$10);\n }\n target.set(endExecDate);\n }\n }", "@Test\n\tpublic void testSetEndDate() {\n\t\tassertNotEquals(calTest, initialJob.getEndDate());\n\t\tinitialJob.setEndDate(calTest.get(Calendar.YEAR), calTest.get(Calendar.MONTH), \n\t\t\t\tcalTest.get(Calendar.DATE), calTest.get(Calendar.HOUR), \n\t\t\t\tcalTest.get(Calendar.MINUTE));\n\t\tassertEquals(calTest, initialJob.getEndDate());\n\t}", "public void setEndDateTime(java.util.Date endDateTime) {\n this.endDateTime = endDateTime;\n }", "public void setjEndtime(Date jEndtime) {\n this.jEndtime = jEndtime;\n }", "public void setEndDate(Date endDate) {\n\t\tthis.endDate = endDate;\n\t}", "public void setEndDate(Date endDate) {\n\t\tthis.endDate = endDate;\n\t}", "void setEndTime(java.util.Calendar endTime);", "public CommonAlert dateEnd(Date dateEnd) {\n this.dateEnd = dateEnd;\n return this;\n }", "public void setActualFinish(Date actualFinishDate)\r\n {\r\n m_actualFinish = actualFinishDate;\r\n }", "public void setEndTime(Date endTime) {\r\n this.endTime = endTime;\r\n }", "public void setEndDate(String date){\n\t\tthis.endDate = date;\n\t}", "long getEndDate();", "long getEndDate();", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Date getEndDate() {\r\n return this.endDate;\r\n }", "Date getEndDay();", "public Date getEndDate();", "public Date getEndDate();", "public Date getDtEnd() {\r\n return dtEnd;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndDate();", "public Date getEndDate()\r\n {\r\n return this.endDate;\r\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(Date endTime) {\n this.endTime = endTime;\n }", "public Builder setEndDate(long value) {\n bitField0_ |= 0x00000080;\n endDate_ = value;\n\n return this;\n }", "@Override\n\tpublic void setFinishDate(Calendar finishDate) {\n\n\t}", "@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}", "public void setWorkDay(Date workDay) {\n\t\tthis.workDay = workDay;\n\t}", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public void setEndTime( Date endTime ) {\n this.endTime = endTime;\n }", "public void setEndDate(LocalDateTime endDate) {\n this.endDate = endDate;\n }", "@Test\n\tpublic void testChangeReservationEndExtendEnd() throws Exception {\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\tDate start = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate end = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +1);\n\t\tDate newEnd = cal.getTime();\n\n\t\tReservation res1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(), start, end);\n\n\t\tbookingManagement.changeReservationEnd(res1.getId(), newEnd);\n\n\t\tres1 = bookingManagement.getReservation(res1.getId());\n\t\tassertNotNull(res1);\n\t\t// check if reservation is changed successfully\n\t\tassertEquals(newEnd, res1.getEndTime());\n\t\tassertEquals(start, res1.getStartTime());\n\t}", "public void setEndDate(@Nullable DateWithOffset endDate) {\r\n this.endDate = endDate;\r\n }", "public Builder setEndDate(long value) {\n \n endDate_ = value;\n onChanged();\n return this;\n }", "public Date get_end() {\n\t\treturn this.end;\n\t}", "public void setEndDate(Long endDate) {\n\t\tthis.endDate = endDate;\n\t}", "public java.util.Date getEndDateTime() {\n return this.endDateTime;\n }", "public void setEndDate (java.util.Date endDate) {\r\n\t\tthis.endDate = endDate;\r\n\t}", "public void setEndServiceDate(Date value) {\n setAttributeInternal(ENDSERVICEDATE, value);\n }", "public void setEndDate(java.util.Calendar endDate) {\n this.endDate = endDate;\n }", "public void setEnd(int y, int mo, int d, int h, int mi) {\n if (y < 0)\n throw new DateTimeException(\"Invalid value for year. \" +\n \"Years must be non-negative.\");\n // Make sure e comes after s\n if (start != null)\n if (!LocalDateTime.of(y, mo, d, h, mi).isAfter(start))\n throw new IllegalArgumentException(END_BEFORE_START);\n\n end = LocalDateTime.of(y, mo, d, h, mi);\n }", "public void setFinishDate(Date finishDate)\r\n {\r\n m_finishDate = finishDate;\r\n }", "public Timestamp getHC_WorkEndDate();", "public Date getEND_DATE() {\n return END_DATE;\n }", "@Override\n\tpublic java.util.Date getEndDate() {\n\t\treturn _esfTournament.getEndDate();\n\t}", "@Test\n\tpublic void testChangeReservationEndReduceEnd() throws Exception {\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\tDate start = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 4);\n\t\tDate end = cal.getTime();\n\t\tcal.add(Calendar.HOUR, -1);\n\t\tDate newEnd = cal.getTime();\n\n\t\tReservation res1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(), start, end);\n\n\t\tbookingManagement.changeReservationEnd(res1.getId(), newEnd);\n\n\t\tres1 = bookingManagement.getReservation(res1.getId());\n\t\tassertNotNull(res1);\n\t\t// check if reservation is changed successfully\n\t\tassertEquals(newEnd, res1.getEndTime());\n\t\tassertEquals(start, res1.getStartTime());\n\t}", "public M csseAddTimeEnd(Object end){this.put(\"csseAddTimeEnd\", end);return this;}", "public void setEndDateTime(String s) {\n this.setEndDateTime(AppUtility.getUTCTimestamp(s));\n }", "public void setEndTime(Date endTime) {\n\t\tthis.endTime = endTime;\n\t}", "public void setEndDate(Date eDate) throws IllegalArgumentException {\n\t\tif (eDate == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tendDate = eDate;\n\t\tupdateAvailability(\"\");\n\t}", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "public Date getEndDate() {\n\t\treturn this.endDate;\n\t}", "public void setEndDate(String endDate) {\n this.endDate = endDate;\n }", "void xsetEndTime(org.apache.xmlbeans.XmlDateTime endTime);", "public long getEndDate() {\n return endDate_;\n }", "public void setEnd_time(long end_time) {\n this.end_time = end_time;\n }", "public M csmiBirthdayEnd(Object end){this.put(\"csmiBirthdayEnd\", end);return this;}", "public void setEndTime(Calendar endTime) {\r\n\t\tthis.endTime = endTime;\r\n\t}", "public final void setWishDateEnd(java.util.Date wishdateend)\r\n\t{\r\n\t\tsetWishDateEnd(getContext(), wishdateend);\r\n\t}", "public void setEndTimeDate(Date endTimeDate) {\n this.endTimeDate = endTimeDate;\n }", "@Test\n public void testSetEndDate() {\n System.out.println(\"setEndDate\");\n Calendar newEnd = new GregorianCalendar(2000, 01, 01);\n String endDate = newEnd.toString();\n DTO_Ride instance = dtoRide;\n instance.setEndDate(endDate);\n \n String result = endDate.toString();\n assertEquals(newEnd, newEnd);\n }", "public Date getEnddate() {\r\n return enddate;\r\n }", "public M csolAddTimeEnd(Object end){this.put(\"csolAddTimeEnd\", end);return this;}", "public void setEndTime(java.util.Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(java.util.Date endTime) {\n this.endTime = endTime;\n }", "public void setEndTime(java.util.Date endTime) {\n this.endTime = endTime;\n }", "public void setEndDate(java.lang.String value) {\n this.endDate = value;\n }" ]
[ "0.74036413", "0.72739595", "0.71502537", "0.7129253", "0.7084781", "0.7025426", "0.6999154", "0.69922453", "0.69196516", "0.690186", "0.6859501", "0.6859501", "0.68575066", "0.68124413", "0.67851007", "0.67851007", "0.67851007", "0.6777221", "0.6777221", "0.67666745", "0.6753815", "0.67467827", "0.67467827", "0.6712101", "0.6707266", "0.6707266", "0.6705933", "0.6696077", "0.6653383", "0.6614878", "0.66146827", "0.65792096", "0.65792096", "0.6576574", "0.6557799", "0.65153575", "0.65126014", "0.65093386", "0.6492407", "0.6492407", "0.6486072", "0.6486072", "0.64819753", "0.6470333", "0.64668596", "0.64668596", "0.64662576", "0.64636475", "0.64520293", "0.64509696", "0.64509696", "0.64509696", "0.64509696", "0.64399517", "0.6437718", "0.6434176", "0.6408501", "0.6381657", "0.6381657", "0.6381657", "0.6381657", "0.6380285", "0.63733727", "0.6361418", "0.63471997", "0.63426596", "0.634159", "0.63400936", "0.63371843", "0.6331008", "0.63309443", "0.6314329", "0.6305774", "0.63008046", "0.6296539", "0.62919843", "0.6287855", "0.6283115", "0.62756085", "0.6268775", "0.62658834", "0.62650764", "0.6264704", "0.6264704", "0.6245263", "0.62447554", "0.6239102", "0.6229859", "0.62155634", "0.6205904", "0.6202788", "0.6199047", "0.61957383", "0.6187024", "0.6177317", "0.6174541", "0.61507726", "0.61507726", "0.61507726", "0.61501455" ]
0.75403565
0
Get Work End Date
public Timestamp getHC_WorkEndDate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getEndDay();", "Date getEndDate();", "Date getEndDate();", "Integer getEndDay();", "long getEndDate();", "long getEndDate();", "public Date getEndDate();", "public Date getEndDate();", "String getEndDate();", "public Date get_end() {\n\t\treturn this.end;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndDate();", "WeekdaySpec getEnd();", "public Date getEND_DATE() {\n return END_DATE;\n }", "public String getEndDate();", "@Override\n\tpublic java.util.Date getEndDate() {\n\t\treturn _esfTournament.getEndDate();\n\t}", "public Date getEndDate()\r\n {\r\n return this.endDate;\r\n }", "public java.util.Date getEndDateTime() {\n return this.endDateTime;\n }", "public Date getEndDate() {\r\n return this.endDate;\r\n }", "public java.lang.String getEndDay() {\r\n return localEndDay;\r\n }", "public LocalDate getEndDate () {\n\t\treturn DateUtils.toLocalDate(this.end);\n\t}", "public Date getDtEnd() {\r\n return dtEnd;\r\n }", "public Date getEndDate() {\n\t\treturn this.endDate;\n\t}", "public Date getEnd() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.End);\n\t}", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Date getEndDate() {\r\n return endDate;\r\n }", "public Calendar getEndDate() {\n\t\tCalendar cal = Calendar.getInstance();\n \t\tcal.setTimeInMillis(startTime);\n \t\t\n\t\treturn cal;\n\t}", "public java.util.Date getEndDate () {\r\n\t\treturn endDate;\r\n\t}", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n return endDate;\n }", "public Date getEndDate()\n {\n return (Date)getAttributeInternal(ENDDATE);\n }", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "public Date getEndDate() {\n\t\treturn endDate;\n\t}", "@Override\n\tpublic Calendar getFinishDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public String getEndDate(){\n\t\treturn this.endDate;\n\t}", "public String getEndDate() {\n\t\treturn endDate.getText();\n\t}", "public java.util.Calendar getEndDate() {\n return endDate;\n }", "java.util.Calendar getEndTime();", "public TimeDateComponents getEventEndDate() {\n return getEventDates().getEndDate();\n }", "public java.util.Calendar getEndExecDate()\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(ENDEXECDATE$10, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }", "public Date getEnddate() {\r\n return enddate;\r\n }", "public Calendar getLastAppendedEndDate(ReadOnlyTask task) {\n Calendar cal = new GregorianCalendar();\n cal.setTime(task.getLastAppendedComponent().getEndDate().getDate());\n return cal;\n }", "public long getEndDate() {\n return endDate_;\n }", "public Long getEndDate() {\n\t\treturn endDate;\n\t}", "public String getEndDate() {\n return endDate;\n }", "public long getEndDate() {\n return endDate_;\n }", "public long getEndDate() {\n return endDate_;\n }", "public java.sql.Date getREQ_END_DATE()\n {\n \n return __REQ_END_DATE;\n }", "public long getEndDate() {\n return endDate_;\n }", "public LocalDate getEnd_date(){\n return this.end_date;\n }", "public Date getEndtime() {\n return endtime;\n }", "public java.lang.String getEndDate() {\n return endDate;\n }", "public String getResearchenddate() {\r\n\t\treturn researchenddate;\r\n\t}", "public String getEndDateString() {\n SimpleDateFormat format = new SimpleDateFormat(DpdInputForm.DATA_FORMAT, Locale.ENGLISH);\n return format.format(new Date(this.endDate));\n }", "public String eventEndString() {\n return DateUtils.formatExtDate(this.endDate);\n }", "public Date getActualFinish()\r\n {\r\n return (m_actualFinish);\r\n }", "public java.sql.Date getEndDate() {\n\treturn endDate;\n}", "public String getEndOfWeek() {\n Calendar c = new GregorianCalendar();\n int currentDay = c.get(Calendar.DAY_OF_WEEK) != DAYS_IN_WEEK ? c.get(Calendar.DAY_OF_WEEK) : 0;\n int leftDays = Calendar.FRIDAY - currentDay;\n c.add(Calendar.DATE, leftDays);\n Date endWeek = c.getTime();\n Calendar cal = Calendar.getInstance();\n cal.setTime(endWeek);\n int year = cal.get(Calendar.YEAR);\n String month = String.format(\"%02d\", cal.get(Calendar.MONTH) + 1);\n String day = String.format(\"%02d\", cal.get(Calendar.DAY_OF_MONTH));\n\n return year + month + day;\n }", "public java.lang.String getEndDate() {\n return endDate;\n }", "public Date getEndDate() {\n\n String[] dateParts = description.split(\"<br />\");\n String end = dateParts[1];\n SimpleDateFormat sdf = new SimpleDateFormat(\"E, dd MMMMM yyyy - HH:mm\");\n\n //Split first part of Description and transform to Date\n //Exaample first part = \"Start Date: Tues 18 March 2017\"\n try {\n EndDate = sdf.parse(end.split(\": \")[1]);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return EndDate;\n }", "@ApiModelProperty(value = \"End of the range\")\n public String getDateEnd() {\n return dateEnd;\n }", "public Date getWorkDay() {\n\t\treturn workDay;\n\t}", "public java.util.Date getEndTime() {\n return this.endTime;\n }", "public java.util.Date getEndTime() {\n return this.endTime;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "public LocalDateTime getEndDate();", "public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);", "public void setEndDate(Date end)\r\n {\r\n this.endDate = end;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEndTime() {\n return (java.util.Date)__getInternalInterface().getFieldValue(ENDTIME_PROP.get());\n }", "public Date getEndServiceDate() {\n return (Date) getAttributeInternal(ENDSERVICEDATE);\n }", "public abstract Date getEndTime();", "public java.util.Date getEndTime() {\n return endTime;\n }", "public Date getEndTimeDate() {\n return endTimeDate;\n }", "public DateTime getEnd() {\r\n return new DateTime(getEndMillis(), getChronology());\r\n }", "public Date getjEndtime() {\n return jEndtime;\n }", "LocalDate getCollectionEndDate();", "public LocalDate getEndDate() { return this.endDate; }", "public final String getEnddate() {\n\t\treturn enddate;\n\t}", "public Date getEndTime() {\r\n return this.endTime;\r\n }", "public Date getEndTime() {\n return this.endTime;\n }", "@Override\n public Date getEndTime() {\n return endTime;\n }", "public LocalDateTime getEndDate() {\n return endDate;\n }", "public Date getEndTime() {\n\t\treturn endTime;\n\t}", "@Nullable\r\n public DateWithOffset getEndDate() {\r\n return endDate;\r\n }", "public Calendar getEndTime() {\r\n\t\treturn endTime;\r\n\t}", "public org.apache.xmlbeans.XmlDate xgetEndExecDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDate target = null;\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(ENDEXECDATE$10, 0);\n return target;\n }\n }", "public Date getEndTime() {\n return endTime;\n }", "public Date getEndTime() {\n return endTime;\n }", "public Date getEndTime() {\n return endTime;\n }", "public Date getFinishDate() {\n if (this.finishDate == null) {\n return null;\n }\n return new Date(this.finishDate.getTime());\n }", "public Date getServiceEndDate() {\n return (Date) getAttributeInternal(SERVICEENDDATE);\n }", "public long getTimeEnd()\n {\n return this.timeEnd;\n }", "public java.lang.String getTime_end() {\r\n return time_end;\r\n }", "public long getEndTimestamp();", "Date getEndedOn();", "public Date getEndTimestamp() {\r\n return endTimestamp;\r\n }", "public Date getExpEndDate() {\n\t\treturn this.expEndDate;\n\t}" ]
[ "0.77342767", "0.7507079", "0.7507079", "0.7355478", "0.7275849", "0.7275849", "0.7188442", "0.7188442", "0.7153773", "0.71075267", "0.704209", "0.70398057", "0.7023068", "0.7006545", "0.6916054", "0.6891909", "0.68855065", "0.6876929", "0.68699586", "0.6868896", "0.6847313", "0.6845171", "0.6825135", "0.6794308", "0.6794308", "0.6779318", "0.6734964", "0.6733267", "0.6733267", "0.6733267", "0.6733267", "0.6723325", "0.671769", "0.671769", "0.6709656", "0.66936696", "0.668274", "0.6665235", "0.66020095", "0.6600125", "0.65977085", "0.65901554", "0.6569512", "0.6565454", "0.6558829", "0.6541835", "0.65266955", "0.6518378", "0.6492394", "0.64907", "0.6480628", "0.6480221", "0.64792955", "0.64777935", "0.6473249", "0.64712167", "0.6469775", "0.64572126", "0.6451399", "0.64483833", "0.6432541", "0.6371636", "0.63713765", "0.6363543", "0.6363543", "0.63506746", "0.63506746", "0.63408923", "0.63333386", "0.63316935", "0.6318578", "0.6318578", "0.6306453", "0.6292373", "0.6288535", "0.62809396", "0.62694275", "0.62437266", "0.62423503", "0.6214296", "0.6212345", "0.62102824", "0.61793745", "0.6178163", "0.61718804", "0.6162087", "0.61576355", "0.61501247", "0.6127022", "0.6099549", "0.6099549", "0.6099549", "0.6069227", "0.6053275", "0.60435927", "0.60415626", "0.6022198", "0.60086083", "0.6005565", "0.59910226" ]
0.7646563
1
Set Work Start Date Baru
public void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStartDate(Date s);", "public void setStart( Calendar start );", "public void setStartWorkTime(Date startWorkTime) {\n this.startWorkTime = startWorkTime;\n }", "public void setStartDate(Date start)\r\n {\r\n this.startDate = start;\r\n }", "void setStartDate(Date startDate);", "public void setStartDate(java.util.Date value);", "public void setDateStart (Timestamp DateStart);", "public void setStartedDate(Date value) {\n this.startedDate = value;\n }", "public void setDtStart(Date dtStart) {\r\n this.dtStart = dtStart;\r\n }", "public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}", "public void setStartDate(Date value)\n {\n validateStartDate(value);\n setAttributeInternal(STARTDATE, value);\n \n }", "public void setDateStart_CouponsTab_Marketing() {\r\n\t\tthis.dateStart_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tString today1 = (String) (formattedDate.format(c.getTime()));\r\n\t\tthis.dateStart_CouponsTab_Marketing.sendKeys(today1);\r\n\t}", "public void setStartDate(Date startDate) {\r\n this.startDate = startDate;\r\n }", "public void setStartDate(Date startDate) {\r\n this.startDate = startDate;\r\n }", "public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);", "public void setREQ_START_DATE(java.sql.Date value)\n {\n if ((__REQ_START_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_START_DATE)))\n {\n _isDirty = true;\n }\n __REQ_START_DATE = value;\n }", "@Override\n\tpublic void setStartDate(Date startDate) {\n\t\tmodel.setStartDate(startDate);\n\t}", "public void setBeginnDate(Date beginnDate) {\n\t\tthis.beginnDate = beginnDate;\n\t}", "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "public void setBegDate(java.lang.String value) {\n this.begDate = value;\n }", "@Test\n\tpublic void testSetStartDate() {\n\t\tassertNotEquals(calTest, initialJob.getStartDate());\n\t\tinitialJob.setStartDate(calTest.get(Calendar.YEAR), calTest.get(Calendar.MONTH), \n\t\t\t\tcalTest.get(Calendar.DATE), calTest.get(Calendar.HOUR), \n\t\t\t\tcalTest.get(Calendar.MINUTE));\n\t\tassertEquals(calTest, initialJob.getStartDate());\n\t\t\n\t\t// check different dates are not equivalent\n\t\tinitialJob.setStartDate(calTest.get(Calendar.YEAR) + 1, calTest.get(Calendar.MONTH), \n\t\t\t\tcalTest.get(Calendar.DATE), calTest.get(Calendar.HOUR), \n\t\t\t\tcalTest.get(Calendar.MINUTE));\n\t\tassertNotEquals(calTest, initialJob.getStartDate());\n\t}", "@Override\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.DTSTART,\n presenceField = \"dtval\",\n required = true,\n reschedule = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.INDEX_START,\n jname = \"indexStart\",\n presenceField = \"dtval\",\n required = true,\n reschedule = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)}\n )\n @NoProxy\n public void setDtstart(final BwDateTime val) {\n dtstart = val;\n }", "public void setStartExecDate(java.util.Calendar startExecDate)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STARTEXECDATE$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STARTEXECDATE$8);\n }\n target.setCalendarValue(startExecDate);\n }\n }", "public void setStartDate(String date){\n\t\tthis.startDate = date;\n\t}", "@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}", "public Builder setBeginDate(long value) {\n bitField0_ |= 0x00000040;\n beginDate_ = value;\n\n return this;\n }", "public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }", "public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }", "public void setStartDate(Date startDate)\r\n {\r\n m_startDate = startDate;\r\n }", "public Date getStartWorkTime() {\n return startWorkTime;\n }", "public void xsetStartExecDate(org.apache.xmlbeans.XmlDate startExecDate)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDate target = null;\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(STARTEXECDATE$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(STARTEXECDATE$8);\n }\n target.set(startExecDate);\n }\n }", "public abstract void setStartTime(Date startTime);", "void setBoardStart(int month, int day, int year) throws IllegalDateException;", "public void changeStartDate(DateToken startToken) {\r\n\t\tDateTime now = new DateTime();\r\n\t\tif (Interval.nowStub != null) now = Interval.nowStub;\r\n\t\t\r\n\t\tstartDateExplicitlySet = true;\r\n\t\t\r\n\t\tif (this.start == null) {\r\n\t\t\tDateTime start = startToken.mergeInto(now).withTime(0, 0, 0, 0);\r\n\r\n\t\t\t// not leaping forward a year here; date should be taken as is\r\n\t\t\t\r\n\t\t\tthis.start = start;\r\n\t\t\tend = start.withTime(23, 59, 0, 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// a time has already been set\r\n\t\t\tDateTime start = startToken.mergeInto(this.start);\r\n\t\t\tthis.start = start;\r\n\t\t\tif (end.isBefore(this.start)) {\r\n\t\t\t\tend = this.start.plusHours(1);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tend = startToken.mergeInto(end);\r\n\t\t\t\tif (end.isBefore(start)) {\r\n\t\t\t\t\tend = start.plusHours(1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "long getBeginDate();", "@Test\n public void testSetStartDate() {\n System.out.println(\"setStartDate\");\n Calendar newStart = new GregorianCalendar(2000, 01, 01);\n String startDate = newStart.toString();\n DTO_Ride instance = dtoRide;\n instance.setStartDate(startDate);\n \n String result = instance.getStartDate();\n assertEquals(newStart, newStart);\n }", "public M csmiBirthdayStart(Object start){this.put(\"csmiBirthdayStart\", start);return this;}", "public void setJobStartDate(java.util.Calendar jobStartDate)\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_element_user(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(JOBSTARTDATE$0);\r\n }\r\n target.setCalendarValue(jobStartDate);\r\n }\r\n }", "public Date getStart() {\n return start;\n }", "void setEventStartDate(Date startEventDate);", "Date getStartDate();", "Date getStartDate();", "Date getStartDate();", "public void setStartdate(Date startdate) {\r\n this.startdate = startdate;\r\n }", "public Builder setStartDate(long value) {\n \n startDate_ = value;\n onChanged();\n return this;\n }", "public void setStartDay(java.lang.String param) {\r\n localStartDayTracker = param != null;\r\n\r\n this.localStartDay = param;\r\n }", "public void setStartDate(Date startDate) {\n\t\tthis.startDate = startDate;\n\t}", "public void setStartDate(Date startDate) {\n\t\tthis.startDate = startDate;\n\t}", "@Override\n\tpublic Date getStartDate() {\n\t\treturn model.getStartDate();\n\t}", "public void setBeginDate(Date beginDate) {\n this.beginDate = beginDate;\n if(this.beginDate.before(DateUtils.getToday())){\n this.beginDate = DateUtils.getToday();\n }\n //For new event or event with beginDate after endDate, set endDate after 30 minutes when beginDate change\n if(this.endDate == null || (this.endDate != null && !this.endDate.after(beginDate)))\n this.endDate = new Date(beginDate.getTime() + TimeUnit.MINUTES.toMillis(30));\n }", "private void setDate() {\n\t\tthis.date = Integer.parseInt(this.year + String.format(\"%02d\", this.calenderWeek));\n\n\t}", "public Date getStartDate();", "public Date getStartDate();", "public Date getStartDate() {\r\n return startDate;\r\n }", "public Date getStartDate() {\r\n return startDate;\r\n }", "public void setStartDate(String startDate) {\n this.startDate = startDate;\n }", "public String getDate(){ return this.start_date;}", "public void setStartdate(Date startdate) {\n this.startdate = startdate;\n }", "public void setBEGIN_DATE(Date BEGIN_DATE) {\n this.BEGIN_DATE = BEGIN_DATE;\n }", "public Date getDtStart() {\r\n return dtStart;\r\n }", "void xsetStartTime(org.apache.xmlbeans.XmlDateTime startTime);", "@Override\n\tprotected void setDate() {\n\n\t}", "void xsetSearchWindowStart(org.apache.xmlbeans.XmlDateTime searchWindowStart);", "Date getStartDay();", "@Override\n\tpublic void setStartDate(java.util.Date startDate) {\n\t\t_esfTournament.setStartDate(startDate);\n\t}", "public Date getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n return startDate;\n }", "public Date getStartDate()\r\n {\r\n return this.startDate;\r\n }", "public void xsetJobStartDate(org.apache.xmlbeans.XmlDate jobStartDate)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDate target = null;\r\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(JOBSTARTDATE$0);\r\n }\r\n target.set(jobStartDate);\r\n }\r\n }", "public CommonAlert dateStart(Date dateStart) {\n this.dateStart = dateStart;\n return this;\n }", "@Override\n\tpublic Long updateStartDate() {\n\t\treturn null;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartDate();", "public void setActualStart(Date actualStartDate)\r\n {\r\n m_actualStart = actualStartDate;\r\n }", "public void setStartDateTime(String s) {\n this.setStartDateTime(AppUtility.getUTCTimestamp(s));\n }", "public void setStart(Date newStart) {\n if (!newStart.before(_end)) {\n throw new IllegalArgumentException(ERR_START_AFTER_END);\n }\n _start = (Date) newStart.clone();\n }", "public void setGioBatDau(Date gioBatDau);", "long getStartDate();", "public void setDayStart(Integer dayStart) {\n this.dayStart = dayStart;\n }", "public void setStartServiceDate(Date value) {\n setAttributeInternal(STARTSERVICEDATE, value);\n }", "protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }", "java.lang.String getStartDate();", "public final void setWishDateStart(java.util.Date wishdatestart)\r\n\t{\r\n\t\tsetWishDateStart(getContext(), wishdatestart);\r\n\t}", "public void setStartDate(LocalDateTime startDate) {\n this.startDate = startDate;\n }", "public long getBeginDate() {\n return beginDate_;\n }", "@ApiModelProperty(value = \"Start of the range\")\n public String getDateStart() {\n return dateStart;\n }", "public String getStartDate();", "public void setDateEnd_CouponsTab_Marketing() {\r\n\t\tthis.dateEnd_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.add(Calendar.DATE, 1);\r\n\t\tString tomorrow = (String) (formattedDate.format(c.getTime()));\r\n\t\tSystem.out.println(\"tomorrows date is \"+tomorrow);\r\n\t\tthis.dateEnd_CouponsTab_Marketing.sendKeys(tomorrow);\r\n\t}", "public void setPaperMediumStartTime(Date value) {\n setAttributeInternal(PAPERMEDIUMSTARTTIME, value);\n }", "public void setStartTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(STARTTIME_PROP.get(), value);\n }", "public void setStartTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(STARTTIME_PROP.get(), value);\n }", "public String getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n\t\treturn startDate;\n\t}", "public Date getStartDate() {\n\t\treturn startDate;\n\t}", "public void setStart(final GregorianCalendar start) {\n if (start == null)\n throw new NullPointerException(\n \"Start date/time not properly specified.\");\n this._start = start;\n }", "public Date getStartDate() {\r\n\t\treturn new Date(startDateText.getDay(), startDateText.getMonth()+1, startDateText.getYear());\r\n\t}", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "public LocalDate getStart_date(){\n return this.start_date;\n }" ]
[ "0.73560953", "0.7298779", "0.7269583", "0.71163136", "0.70760614", "0.69616455", "0.68512434", "0.6835523", "0.6656853", "0.6625573", "0.66228706", "0.6568784", "0.65613407", "0.65613407", "0.6538782", "0.652262", "0.65103924", "0.6481541", "0.6475587", "0.6475587", "0.6475587", "0.6438681", "0.6426291", "0.64207506", "0.64115083", "0.64052826", "0.6404614", "0.6392149", "0.634018", "0.634018", "0.6332148", "0.63073987", "0.63054675", "0.6302955", "0.6302496", "0.62779933", "0.62733155", "0.6264975", "0.6259678", "0.62594724", "0.6244225", "0.6242908", "0.624161", "0.624161", "0.624161", "0.6238326", "0.6237034", "0.62357146", "0.6232756", "0.6232756", "0.62108856", "0.6194762", "0.61935085", "0.61822873", "0.61822873", "0.61781526", "0.61781526", "0.6172437", "0.6156207", "0.61522734", "0.61522573", "0.61519885", "0.61434567", "0.6131146", "0.6121372", "0.6106541", "0.60988635", "0.6098786", "0.6098786", "0.6098786", "0.60904187", "0.60607654", "0.6048218", "0.60439533", "0.6017475", "0.60092276", "0.6005058", "0.60020703", "0.60015297", "0.5999155", "0.5997675", "0.5988757", "0.5971931", "0.5956873", "0.59545094", "0.5953878", "0.59515965", "0.59363806", "0.5936328", "0.5925117", "0.5923222", "0.59183764", "0.59183764", "0.5913827", "0.59117705", "0.59117705", "0.59109056", "0.5910733", "0.58920145", "0.5876943" ]
0.710475
4
Get Work Start Date Baru
public Timestamp getHC_WorkStartDate2();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getStartDate();", "Date getStartDay();", "Date getStartDate();", "Date getStartDate();", "Date getStartDate();", "String getStartDate();", "long getBeginDate();", "public Date getStartWorkTime() {\n return startWorkTime;\n }", "public String getStartDate();", "@Override\n\tpublic Date getStartDate() {\n\t\treturn model.getStartDate();\n\t}", "public Date getStartDate();", "public Date getStartDate();", "Integer getStartDay();", "long getStartDate();", "public Date getStart() {\n return start;\n }", "WeekdaySpec getStart();", "public Date getStartDate() {\r\n\t\treturn new Date(startDateText.getDay(), startDateText.getMonth()+1, startDateText.getYear());\r\n\t}", "java.lang.String getStartDateYYYYMMDD();", "public String getDate(){ return this.start_date;}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartDate();", "public Date getEarliestFinishingDate();", "public String getStartDate() {\n\t\treturn startDate.getText();\n\t}", "Date getStartedOn();", "public Date getDtStart() {\r\n return dtStart;\r\n }", "public Date getStartDate() {\r\n return startDate;\r\n }", "public Date getStartDate() {\r\n return startDate;\r\n }", "public Date getStart() {\n return (Date) _start.clone();\n }", "public Date getStartDate()\r\n {\r\n return this.startDate;\r\n }", "@Override\n\tpublic java.util.Date getStartDate() {\n\t\treturn _esfTournament.getStartDate();\n\t}", "public String getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n return startDate;\n }", "public Date getStartDate() {\n return startDate;\n }", "public String getStartDate(){\n\t\treturn this.startDate;\n\t}", "org.apache.xmlbeans.XmlDateTime xgetSearchRecurrenceStart();", "public Date getActualStart()\r\n {\r\n return (m_actualStart);\r\n }", "public String getStartDate() {\n return startDate;\n }", "LocalDate getCollectionBeginDate();", "private Date getPreviosDayStartTime() {\n\t\treturn null;\n\t}", "public Date getStartDate()\n {\n return (Date)getAttributeInternal(STARTDATE);\n }", "public org.apache.xmlbeans.XmlDate xgetJobStartDate()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDate target = null;\r\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(JOBSTARTDATE$0, 0);\r\n return target;\r\n }\r\n }", "public Timestamp getDateStart();", "public String getStartDate() {\n SimpleDateFormat formatDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatDate.format(fecha);\n }", "public Date getStartDate() {\n\t\treturn startDate;\n\t}", "public Date getStartDate() {\n\t\treturn startDate;\n\t}", "public Date getStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.Start);\n\t}", "public long getBeginDate() {\n return beginDate_;\n }", "protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }", "java.util.Calendar getSearchRecurrenceStart();", "@Override\n public String getWorkBeginYear() {\n Calendar calendar = Calendar.getInstance();\n if (!work_beginyear.equals(\"\") && work_beginyear != null) {\n return String.valueOf(calendar.get(Calendar.YEAR) - Integer.parseInt(work_beginyear));\n }\n return \"\";\n }", "public void setStartWorkTime(Date startWorkTime) {\n this.startWorkTime = startWorkTime;\n }", "@ApiModelProperty(value = \"Start of the range\")\n public String getDateStart() {\n return dateStart;\n }", "public LocalDate getStart_date(){\n return this.start_date;\n }", "java.lang.String getStartDateYYYY();", "public Date getStartDate() {\n\t\treturn this.startDate;\n\t}", "public long getBeginDate() {\n return beginDate_;\n }", "public DateTime getStartDateTime() {\r\n\t\treturn start;\r\n\t}", "public long getStartDate() {\n return startDate_;\n }", "public TimeDateComponents getEventStartDate() {\n return getEventDates().getStartDate();\n }", "public Timestamp getHC_WorkEndDate();", "public Date getBeginnDate() {\n\t\treturn beginnDate;\n\t}", "public Date getEarliestStartDate();", "public Date getStartDate()\r\n {\r\n Date result = m_startDate;\r\n if (result == null)\r\n {\r\n result = getParentFile().getStartDate();\r\n }\r\n return (result);\r\n }", "java.util.Calendar getSearchWindowStart();", "public java.util.Calendar getJobStartDate()\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_element_user(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getCalendarValue();\r\n }\r\n }", "private static Date dateToString(Date start) {\n\t\treturn start;\n\t}", "public String getStartDateString() {\n SimpleDateFormat format = new SimpleDateFormat(DpdInputForm.DATA_FORMAT, Locale.ENGLISH);\n return format.format(new Date(this.startDate));\n }", "public GregorianCalendar getStart() {\n return _start;\n }", "public Date getBEGIN_DATE() {\n return BEGIN_DATE;\n }", "public long getStartDate() {\n return startDate_;\n }", "public Calendar getStartDate() {\n \t\tCalendar cal = Calendar.getInstance();\n \t\tcal.setTimeInMillis(startTime);\n \t\t\n\t\treturn cal;\n\t}", "OffsetDateTime startDateTime();", "public java.lang.String getStartDay() {\r\n return localStartDay;\r\n }", "public org.apache.xmlbeans.XmlDate xgetStartExecDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDate target = null;\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(STARTEXECDATE$8, 0);\n return target;\n }\n }", "public Date getStartedDate() {\n return this.startedDate;\n }", "public java.lang.String getBegDate() {\n return begDate;\n }", "public java.util.Date getStartDateTime() {\n return this.startDateTime;\n }", "public java.lang.String getBegDate() {\n return begDate;\n }", "protected AbsoluteDate getStartDate() {\n return startDate;\n }", "public java.util.Calendar getStartDate() {\n return startDate;\n }", "public final DtStart getStartDate() {\n return getProperty(Property.DTSTART);\n }", "public java.util.Calendar getStartExecDate()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STARTEXECDATE$8, 0);\n if (target == null)\n {\n return null;\n }\n return target.getCalendarValue();\n }\n }", "public java.util.Date startSnap()\n\t{\n\t\treturn _dtBegin;\n\t}", "public Timestamp getDateStart() {\n\t\treturn (Timestamp) get_Value(\"DateStart\");\n\t}", "public static Date todayStart() {\n return dayStart(new Date());\n }", "public Date getTimeEntryStartDate()\n throws RedmineException\n {\n // update number of time entries, start date\n updateTimeEntryData();\n\n return timeEntryStartDate;\n }", "@Override\n public Date getTransactionStartDate() {\n return traxStartDate;\n }", "long getStartTimestamp();", "java.util.Calendar getStartTime();", "public LocalDate getDate () {\n\t\treturn DateUtils.toLocalDate(this.start);\n\t}", "public LocalDateTime getStartDate();", "private Date determineBeginDate(Employee employee){\n\t\tList<PtoPeriod> ptoPeriods = ptoPeriodRepository.findPtoPeriodForEmployee(employee.getId());\n\t\tfor(PtoPeriod p : ptoPeriods){\n\t\t\tlog.info(\"Pto Period Found: End Date: \" + p.getEndDate());\n\t\t}\n\t\t\n\t\t//If more than one period found, select the second latest date as the start date\n\t\t//Otherwise return the employee hire date\n\t\t\n\t\treturn ZonedDateTimeToDateConverter.INSTANCE.convert(employee.getHireDate());\n\t}", "public java.sql.Date getStartDate() {\n\treturn startDate;\n}", "public StrColumn getDateBeginProcessing() {\n return delegate.getColumn(\"date_begin_processing\", DelegatingStrColumn::new);\n }", "public abstract Date getStartTime();", "public Date getStarttime() {\n return starttime;\n }", "public Date getStarttime() {\n return starttime;\n }", "org.apache.xmlbeans.XmlDateTime xgetStartTime();", "public LocalDateTime getStartDate() {\n return startDate;\n }", "public Date getCurrentWeekStart() {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, 0); // ! clear would not reset the hour of day !\n cal.clear(Calendar.MINUTE);\n cal.clear(Calendar.SECOND);\n cal.clear(Calendar.MILLISECOND);\n\n cal.setFirstDayOfWeek(Calendar.MONDAY);\n cal.set(Calendar.DAY_OF_WEEK, cal.getFirstDayOfWeek());\n\n Date currentWeekStart = cal.getTime();\n\n return currentWeekStart;\n }" ]
[ "0.726459", "0.7228653", "0.7228192", "0.7228192", "0.7228192", "0.71595937", "0.7113962", "0.70676345", "0.7045869", "0.70401496", "0.70346004", "0.70346004", "0.69942486", "0.6935711", "0.68946064", "0.6888771", "0.68458676", "0.68452144", "0.68042314", "0.67886317", "0.67462796", "0.6602937", "0.6596473", "0.6567469", "0.6540498", "0.6540498", "0.6535437", "0.6531186", "0.6521613", "0.6519015", "0.6507665", "0.6507665", "0.6507665", "0.64995015", "0.6497908", "0.6465651", "0.6451713", "0.64439493", "0.64404285", "0.6431595", "0.64193285", "0.64044", "0.6395627", "0.6393744", "0.6393744", "0.6388387", "0.63863665", "0.6365091", "0.6363511", "0.635785", "0.6333865", "0.6328624", "0.6324923", "0.63248795", "0.6323808", "0.632315", "0.63088953", "0.6295987", "0.62896615", "0.6287533", "0.62803644", "0.62800807", "0.62740237", "0.62577885", "0.625186", "0.6244698", "0.62409955", "0.6223611", "0.62220496", "0.62148964", "0.62122697", "0.6209874", "0.6203412", "0.62012905", "0.61797315", "0.6164257", "0.61620796", "0.6138418", "0.6137626", "0.6134999", "0.61316735", "0.61276484", "0.6117757", "0.61075", "0.610229", "0.6100092", "0.6097834", "0.6086308", "0.6076208", "0.606185", "0.60432637", "0.60346586", "0.6033509", "0.60208386", "0.6014874", "0.6014152", "0.6014152", "0.60113025", "0.6003002", "0.59958446" ]
0.72513187
1
Set Active. The record is active in the system
public void setIsActive (boolean IsActive);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setActive() {\n\t\tactive = true;\n\t}", "public void activate(){\r\n\t\tactive=true;\r\n\t}", "public void setActive(boolean active) {\r\n this.active = active;\r\n }", "public void setActive(Boolean active) {\n\t\tthis.Active = active;\n\t}", "public void setActive(boolean active){\r\n\t\tactive_ = active;\r\n\t}", "public void setActive(boolean active) { \n this.active = active;\n }", "public void setActive(){\n paycheckController.setActive();\n }", "public void setActive(boolean active) {\r\n this.active = active;\r\n }", "public void setActive(boolean active)\n {\n this.active = active;\n }", "public void setActive(boolean active) {\n _isActive = active;\n }", "public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive(boolean value) {\n this.active = value;\n }", "public void setActive(Boolean active) {\n this.active = active;\n }", "protected synchronized void setActive(final boolean b) {\n active = b;\n }", "public void setIsActive(boolean param) {\n // setting primitive attribute tracker to true\n localIsActiveTracker = true;\n\n this.localIsActive = param;\n }", "public void setActive(boolean active);", "public void setActive(boolean active);", "public void setActive(boolean active);", "public void setActive(boolean active)\r\n\t{\r\n\t\tif (this.active != active)\r\n\t\t{\r\n\t\t\tthis.active = active;\r\n\t\t\tapply();\r\n\t\t}\r\n\t}", "public abstract boolean setActive(boolean active);", "@Override\n public void setActive(boolean active) {\n this.active = active;\n }", "public void setActive( boolean tof ) {\n\t\tthis.active = tof;\n\t}", "public static void setActive(profile p){\n active = p;\n }", "public void active(boolean value) {\n\t\tactive = value;\n\t}", "public void setActive(boolean isActive) {\r\n\t\tthis.isActive = isActive;\r\n\t}", "public boolean activate(){\n mIsActive = true;\n return mIsActive;\n }", "public void setActive(java.lang.Boolean active) {\n this.active = active;\n }", "@Override\n\tpublic void setActive(Boolean active) {\n\t\tthis.active = active;\n\t}", "public void setIsActive(boolean value) {\r\n this.isActive = value;\r\n }", "public void setIsActive(Integer isActive) {\n this.isActive = isActive;\n }", "public void active() {\n createClassIfNotExists();\n\n globalHook = new OAuditingHook(security);\n\n retainTask =\n new TimerTask() {\n public void run() {\n retainLogs();\n }\n };\n\n long delay = 1000L;\n long period = 1000L * 60L * 60L * 24L;\n\n timer.scheduleAtFixedRate(retainTask, delay, period);\n\n Orient.instance().addDbLifecycleListener(this);\n if (context instanceof OServerAware) {\n if (((OServerAware) context).getDistributedManager() != null) {\n ((OServerAware) context).getDistributedManager().registerLifecycleListener(this);\n }\n }\n\n if (systemDbImporter != null && systemDbImporter.isEnabled()) {\n systemDbImporter.start();\n }\n }", "@Accessor(qualifier = \"active\", type = Accessor.Type.SETTER)\n\tpublic void setActive(final Boolean value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(ACTIVE, value);\n\t}", "public void setConnectionActive(boolean connectionActive){\n this.connectionActive = connectionActive;\n }", "public boolean isActive() {\n return (this == RecordStatusEnum.ACTIVE);\n }", "@Override\n public void setActive(boolean active) {\n if (book != null) {\n book.getCurrencies().removeCurrencyListener(currencyTableCallback); // At most one listener\n book.removeAccountListener(allAccountsCallback);\n if (active) {\n book.getCurrencies().addCurrencyListener(currencyTableCallback);\n book.addAccountListener(allAccountsCallback);\n }\n }\n }", "public void setActiveflag(Boolean activeflag) {\n this.activeflag = activeflag;\n }", "public void setIsActive( Boolean isActive ) {\n this.isActive = isActive;\n }", "public void setActiveStatus(Boolean active){ this.status = active; }", "protected void setActive(boolean activate) {\n\t\tif (this.active ^ activate) {\r\n\t\t\tthis.active = activate;\r\n\t\t\t\r\n\t\t\tthis.img = AbstractRelicModRelic.getRelicTexture(this.relicId, activate);\r\n\t\t}\r\n\t}", "public void setIsActive(Boolean isActive) {\r\n this.isActive = isActive;\r\n }", "public void setIsActive(boolean isActive) {\n this.isActive = isActive;\n }", "public void setIsActive( boolean isActive )\n\t{\n\t\tthis.isActive\t= isActive;\n\t}", "public Active getActive() {\n return _active;\n }", "public static profile getActive(){\n return active;\n }", "public boolean active(){\r\n\t\treturn active;\r\n\t}", "public void activate() {\n\t\tactivated = true;\n\t}", "public void setActive(boolean active) {\n\t\tactiveProperty().setValue(active);\n\t}", "public void setActive(boolean active)\n {\n this.active = active;\n\n if(!this.active)\n {\n INDirector.setProjection(ProjectionFormat.DirectorProjection2D);\n }\n }", "public void setIsActive(Boolean isActive) {\n this.isActive = isActive;\n }", "public void setIsActive(Boolean isActive) {\n this.isActive = isActive;\n }", "protected void setInactive() {\r\n\t\tactive = false;\r\n\t}", "public void setActive(Boolean active)\r\n/* */ {\r\n/* 207 */ this.active = active;\r\n/* */ }", "public void setIsActive(Byte isActive) {\n this.isActive = isActive;\n }", "private void activate(final Object object) {\n\t\tdatabase.activate(object, Integer.MAX_VALUE);\n\t}", "public void activate() {\n\tif (canBeActive()) {\n\t\tmActive = true;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be activated\");\n\t}\n}", "public java.lang.Boolean getActive() {\n return active;\n }", "public void setIsActive(boolean isActive) {\n\t\tthis.isActive = isActive;\n\t}", "public boolean isActive()\r\n\t{\r\n\t\treturn active;\r\n\t}", "public void setActive() {\n setState(true);\n }", "public boolean isActive(){\n\t\treturn active;\n\t}", "public void activate(){\n active = true;\n state = State.cleaving;\n }", "public void activate(){\r\n\r\n\t}", "public DateActive getDateActive(){\n\t\treturn dateActive;\n\t}", "public void setActive(Boolean active) {\n Boolean oldValue = this.active;\n this.active = active;\n forecast.updateForecastFromYr();\n firePropertyChange(\"active\", oldValue, active);\n }", "protected void activeActivity() {\n\t\tLog.i(STARTUP, \"active activity\");\n\t\tcheckActiveActivity();\n\t}", "public Boolean getActive() {\n\t\treturn this.Active;\n\t}", "public boolean isActive(){\n return active;\n }", "public boolean isActive(){\n return active;\n }", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "public void setActive(boolean active) {\n this.active = active;\n notifyViews();\n }", "public void setActive(boolean active) {\n isActive = active;\n this.refreshDrawable();\n }", "public void setActiveClass ( String activeClass ) {\r\n\t\tgetStateHelper().put(PropertyKeys.activeClass, activeClass);\r\n\t\thandleAttribute(\"activeClass\", activeClass);\r\n\t}", "@Override\n @Transactional\n public void setActiveByCardNumber(Boolean active, String cardNumber) {\n logger.info(\"set active \" + active + \" by \" + cardNumber);\n cardRepository.setActiveByCardNumber(active, cardNumber);\n }", "public boolean isActive()\n {\n return active;\n }", "public void activate() {\n if (!isResumed) {\n isToBeActivated = true;\n return;\n }\n\n if (isLocked) {\n return;\n }\n\n if (!isActive) {\n isActive = true;\n onActivate();\n }\n\n if (isFirstUse) {\n isFirstUse = false;\n settings.edit()\n .putBoolean(\"isFirstUse\", false)\n .commit();\n onFirstUse();\n }\n }", "public boolean isActive( ) {\n\t\treturn active;\n\t}", "public boolean getActive()\n {\n return this.active;\n }", "private void setActiveHistory(History activeHistory) {\n\t\tthis.activeHistory = activeHistory;\n\t\tactiveHistory.activate();\n\t}", "public void setActiveFlag(Boolean activeFlag) {\n\t\tthis.activeFlag = activeFlag;\n\t}", "public boolean isActive(){\r\n\t\treturn active_;\r\n\t}", "public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }", "public void setActiveStatus( String activeStatus ) {\n this.activeStatus = activeStatus;\n }", "public void setActiveflag(String value) {\n setAttributeInternal(ACTIVEFLAG, value);\n }", "public Boolean getActive() {\n return this.active;\n }", "public Boolean getActive() {\n return this.active;\n }", "public boolean isActive() {\r\n\t\treturn active;\r\n\t}", "public boolean isActive() {\n return active;\n }" ]
[ "0.68325806", "0.6789161", "0.6566562", "0.6564865", "0.65571624", "0.6553915", "0.65521485", "0.6527114", "0.65230453", "0.64922696", "0.64769316", "0.64769316", "0.64769316", "0.64546484", "0.644766", "0.6423025", "0.6392121", "0.6354967", "0.6354967", "0.6354967", "0.6327965", "0.6308274", "0.62955403", "0.62663454", "0.62506706", "0.6244868", "0.62056977", "0.61973256", "0.6189028", "0.6153767", "0.6153006", "0.6140324", "0.6136431", "0.6114884", "0.60878354", "0.60721666", "0.60617685", "0.60260826", "0.598762", "0.5985478", "0.5978902", "0.5964605", "0.595102", "0.5946947", "0.5942985", "0.59409", "0.5929727", "0.59155184", "0.5908068", "0.5902193", "0.58935934", "0.58935934", "0.5856406", "0.5855594", "0.5853868", "0.5852082", "0.5844815", "0.58328336", "0.5826116", "0.5825294", "0.5823995", "0.5821853", "0.5817585", "0.58153296", "0.5812808", "0.5806729", "0.58050203", "0.5780075", "0.5778065", "0.5778065", "0.57769907", "0.5764492", "0.57455325", "0.5745438", "0.5736244", "0.5734682", "0.57332265", "0.57281566", "0.5703896", "0.56993866", "0.56934035", "0.568749", "0.5678359", "0.5678359", "0.5671076", "0.5669693", "0.5669693", "0.5664418", "0.56560516" ]
0.60466367
47
Get Active. The record is active in the system
public boolean isActive();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Active getActive() {\n return _active;\n }", "public Boolean getActive() {\n\t\treturn this.Active;\n\t}", "@Accessor(qualifier = \"active\", type = Accessor.Type.GETTER)\n\tpublic Boolean getActive()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ACTIVE);\n\t}", "public boolean isActive() {\n return (this == RecordStatusEnum.ACTIVE);\n }", "public java.lang.Boolean getActive() {\n return active;\n }", "public static profile getActive(){\n return active;\n }", "public Boolean getActive() {\n return this.active;\n }", "public Boolean getActive() {\n return this.active;\n }", "public boolean getActive()\n {\n return this.active;\n }", "public boolean getActive();", "public boolean getActive();", "public int active() {\n return this.active;\n }", "public Integer getIsActive() {\n return isActive;\n }", "public boolean getIsActive() {\n return localIsActive;\n }", "public boolean isActive() {\n\t\treturn (active_status);\n\t}", "public boolean isActive()\n {\n return active;\n }", "public boolean active(){\r\n\t\treturn active;\r\n\t}", "public Boolean getActiveflag() {\n return activeflag;\n }", "public int isActive() {\n return isActive;\n }", "public DateActive getDateActive(){\n\t\treturn dateActive;\n\t}", "public boolean isActive()\r\n\t{\r\n\t\treturn active;\r\n\t}", "public boolean isActive(){\n\t\treturn active;\n\t}", "public Boolean isActive() {\n return this.active;\n }", "public boolean getIsActive()\n\t{\n\t\treturn isActive;\n\t}", "public boolean isActive() \n {\n return this.active;\n }", "public io.dstore.values.IntegerValue getActive() {\n return active_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : active_;\n }", "public boolean getIsActive() {\n return isActive_;\n }", "public boolean isActive(){\n return active;\n }", "public boolean isActive(){\n return active;\n }", "public static boolean isActive(){\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\n return active;\n }", "public boolean isActive() {\r\n return active;\r\n }", "public boolean isActive() {\r\n return active;\r\n }", "public Boolean getActive()\r\n/* */ {\r\n/* 200 */ return this.active;\r\n/* */ }", "public boolean isActive() {\r\n return active;\r\n }", "public boolean isActive() \n {\n return mIsActive;\n }", "public boolean getIsActive() {\n return isActive_;\n }", "public boolean isActive( ) {\n\t\treturn active;\n\t}", "public LiveData<NacAlarm> getActiveAlarm()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarm();\n\t}", "public boolean isActive() {\n\t\treturn active;\n\t}", "public boolean isActive() {\r\n\t\treturn active;\r\n\t}", "public boolean getIsActive() {\n\t\treturn isActive;\n\t}", "public boolean isActive() {\n return this.active;\n }", "public boolean isActive() {\n return this.active;\n }", "public Boolean getIsActive() {\r\n return isActive;\r\n }", "public Boolean getIsActive() {\n return isActive;\n }", "public Boolean getIsActive() {\n return isActive;\n }", "public boolean isActive(){\r\n\t\treturn active_;\r\n\t}", "public boolean isActive() {\n return this.active;\n }", "public boolean isIsActive() {\r\n return isActive;\r\n }", "public boolean isIsActive() {\n return isActive;\n }", "@Override\r\n public List<ActiveStatusModel> listActiveStatus() {\r\n return jdbcTemplate.query(SQL_SELECT, new ActiveStatusHelper());\r\n }", "@java.lang.Override\n public boolean getIsActive() {\n return isActive_;\n }", "public Boolean getActiveFlag() {\n\t\treturn activeFlag;\n\t}", "@Override\n\tpublic boolean getIsActive();", "public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }", "public Long get_activelist() throws Exception {\n\t\treturn this.activelist;\n\t}", "@java.lang.Override\n public boolean getIsActive() {\n return isActive_;\n }", "public boolean isActive()\r\n {\r\n return isActive;\r\n }", "public boolean activate(){\n mIsActive = true;\n return mIsActive;\n }", "public int getActiveCount() {\n return activeCount;\n }", "public boolean checkActive() {\n\t\treturn active;\n\t}", "public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }", "public boolean isActive() {\n\t\treturn activeProperty().getValue();\n\t}", "public boolean isActive() {\n return isActive;\n }", "public boolean isActive() {\n return isActive;\n }", "public boolean isActive() {\n return isActive;\n }", "public Byte getIsActive() {\n return isActive;\n }", "public boolean isActive() { return true; }", "public boolean isActiv(){\r\n\t\treturn this.activ;\r\n\t}", "boolean isActive();", "boolean isActive();", "boolean isActive();", "public io.dstore.values.IntegerValue getActive() {\n if (activeBuilder_ == null) {\n return active_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : active_;\n } else {\n return activeBuilder_.getMessage();\n }\n }", "int isActive();", "public boolean isActive() {\n\t\treturn this.state;\n\t}", "public Boolean isActive();", "public final boolean isActive() {\n return isActive;\n }", "public boolean hasActive() {\n return active_ != null;\n }", "public static boolean isActive() {\n\t\treturn activated;\n\t}", "public boolean getActiveNull() {\n return activeNull_;\n }" ]
[ "0.7534892", "0.7485982", "0.74654007", "0.73841727", "0.73775905", "0.73673874", "0.7362135", "0.7362135", "0.73496914", "0.707902", "0.707902", "0.6902034", "0.68903583", "0.6889761", "0.6858302", "0.6841338", "0.6835788", "0.6834229", "0.6833923", "0.683331", "0.6822436", "0.6801586", "0.67928874", "0.67640084", "0.67632616", "0.6756808", "0.6743925", "0.67414236", "0.67414236", "0.67229915", "0.6721872", "0.6721872", "0.6721872", "0.6721872", "0.6721872", "0.6721872", "0.67138326", "0.67138326", "0.67050844", "0.67021376", "0.669854", "0.66831267", "0.66803014", "0.6680082", "0.6679958", "0.6673629", "0.6673462", "0.6662586", "0.6662586", "0.6648257", "0.66475683", "0.66475683", "0.6625156", "0.66227525", "0.66085094", "0.6588272", "0.6579069", "0.6560821", "0.6524329", "0.6496777", "0.6479328", "0.6475167", "0.6470247", "0.64442134", "0.6438243", "0.64264417", "0.6390107", "0.638385", "0.6378978", "0.6374957", "0.6374957", "0.6374957", "0.63599354", "0.6356135", "0.6337807", "0.63329536", "0.63329536", "0.63329536", "0.63113064", "0.6310411", "0.63032496", "0.6292795", "0.6276971", "0.6266728", "0.62664866", "0.62546366" ]
0.641708
80
Set Cancelled. The transaction was cancelled
public void setIsCancelled (boolean IsCancelled);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setCancelled(boolean cancelled) {\n\t\tthis.cancelled = cancelled;\n\t}", "@Override\n\tpublic void setCancelled(boolean cancel) {\n\t\tthis.cancelled = cancel;\n\t}", "public void setCancelled(boolean cancelled) {\n\t\tthis.cancelled = cancelled;\n\t}", "@Override\n public void setCancelled(boolean cancel) { this.cancel = cancel;\n }", "public final void setCancelled(final boolean cancel){\n this.cancel = cancel;\n }", "public void cancel(){\n cancelled = true;\n }", "public void cancel() {\n\t\tcancelled = true;\n\t}", "@Override\n\t\t\tpublic void setCanceled(boolean value) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void setCanceled(boolean value) {\n\r\n\t}", "@Override\n\t\tpublic void setCanceled(boolean arg0) {\n\n\t\t}", "public void onCancelled() {\n this.cancelled = true;\n }", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "@Override\n public void setCancelOp(boolean cancel) {\n cancelOp = cancel;\n }", "@Override\n public void setCancelOp(boolean cancel) {\n cancelOp = cancel;\n }", "@Override\n\tpublic void cancelTransaction() {\n\t\t\n\t}", "public synchronized void cancel() {\n this.executionState = JobExecutionState.CANCELLED;\n this.finished = Instant.now();\n }", "public void setCancelNext(boolean canceled) {\n this.mNotifyCanceled = canceled;\n }", "@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }", "Update withCancelRequested(Boolean cancelRequested);", "void cancel()\n {\n cancelled = true;\n subjobComplete = true;\n result = null;\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }", "private void cancel() {\n recoTransaction.cancel();\n }", "public void cancel()\n\t{\n\t}", "public void cancelTransaction() {\n\t\t//Cancel the transaction\n\t\tregister[registerSelected].cancelTransaction();\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}", "public Builder setCancel(Boolean b) {\r\n this.cancel = b;\r\n return this;\r\n }", "public void cancel() {\r\n\t\tbStop = true;\r\n\t}", "public synchronized void cancel() {\n }", "@Override\n public boolean isCancelled() { return this.cancel; }", "@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\n\tpublic void eventCancelled() {\n\t\tstatus=EventCancelled;\n\t}", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "@Override\n\tpublic void cancel() {\n\t\t\n\t}", "@Override\n\tpublic boolean isCancelled() {\n\t\treturn cancelled;\n\t}", "public final void setCancelToken(ICancelToken cancelToken) {\n synchronized (this.zzWb) {\n this.zzWh = cancelToken;\n }\n }", "public void cancelar() {\n setCancelado(true);\n }", "public void cancel() {\n\t}", "@Action\n public void acCancel() {\n setChangeObj(false);\n }", "@Action\n public void acCancel() {\n setChangeObj(false);\n }", "boolean isCancelled(){\n\t\treturn cancelled;\n\t}", "public void onCancel() {\n\t\t\t\t\t}", "protected void cancel() {\n abort();\n if(cancelAction != null) {\n cancelAction.accept(getObject());\n }\n }", "public void cancel() {\n btCancel().push();\n }", "public boolean isCancelled() {\n return cancelled;\n }", "private Cancellable(T element) {\n\t\t\tthis.element = element;\n\t\t\tthis.isCancelled = false;\n\t\t}", "public void setCancelActivity(Boolean value) {\n }", "public void onCancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "public void setCancelReason(String cancelReason) {\n this.cancelReason = cancelReason;\n }", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "public void cancel() {\n\t\tcancel(false);\n\t}", "public final boolean isCancelled(){\n return cancel;\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "public boolean wasCancelled() {\n\t\treturn wasCancelled;\n\t}", "@Override\r\n\t\tpublic void onCancel() {\n\t\t}", "@Override\n public void cancel() {\n }", "public void setCancelAnimator(boolean canceled){\n mCancelAnim = canceled;\n }", "public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public DraggableBehavior setCancel(String cancel)\n\t{\n\t\tthis.options.putLiteral(\"cancel\", cancel);\n\t\treturn this;\n\t}", "public void onCancel();", "@Override\n\tpublic void CancelOrder(Order order) {\n\t\t\n\t}", "protected void cancelChanges() {\n }", "public boolean isCancelled() {\n return isCancelled;\n }", "@Override\n public void cancel() {\n }", "@Override\n public void cancel() {\n\n }", "public boolean isCancelled();", "public boolean isCancelled();", "public boolean isCancelled();", "public void cancelBooking(Booking b)\r\n {\r\n b.setCancelled(true);\r\n }", "@Override\n public void onCancel() {\n }", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}", "@Override\n public void cancel() {\n\n }", "public String getCancelReason() {\n return cancelReason;\n }", "@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\t\tpublic void onCancel() {\n \n \t}", "@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}", "@Override\n public final void cancel(Status reason) {\n checkArgument(!reason.isOk(), \"Should not cancel with OK status\");\n cancelled = true;\n sendCancel(reason);\n dispose();\n }", "void onCancel();", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}", "public void setCancelAction(Consumer<T> cancelAction) {\n this.cancelAction = cancelAction;\n }", "public void setCanceledByName(String val) {\n // ProtectBlock setCanceledByName\n // ProtectBlock End\n this.canceledByName = val;\n }", "public synchronized boolean isCancelled() {\n return mIsCancelled;\n }", "public boolean isCancel() {\n return cancel;\n }", "protected abstract void onCancel();", "@Override\n public int cancelTransaction() {\n System.out.println(\"Please make a selection first\");\n return 0;\n }", "public void cancel( String reason );", "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 }", "@Override\n protected void onCancel(@CancelReason int cancelReason, @Nullable Throwable throwable) {\n }", "@Override\n protected void onCancel(@CancelReason int cancelReason, @Nullable Throwable throwable) {\n }", "public boolean cancel();", "@Override\n\t\t\t\tpublic boolean onCancel() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }", "public void cancel() throws SQLException {\n\r\n }" ]
[ "0.77189827", "0.7665497", "0.76175743", "0.75031525", "0.73989636", "0.72653157", "0.7220516", "0.7211389", "0.7189476", "0.7047067", "0.6930907", "0.6828953", "0.66669494", "0.66669494", "0.6622447", "0.66103053", "0.6564021", "0.6431432", "0.6420189", "0.63630193", "0.6334343", "0.6325057", "0.62857926", "0.62440854", "0.6239344", "0.62390196", "0.6237894", "0.6226586", "0.62237686", "0.62126493", "0.619849", "0.6188764", "0.6188764", "0.6188764", "0.618601", "0.618363", "0.6183555", "0.61794597", "0.61748254", "0.6156469", "0.6146435", "0.61422735", "0.61422735", "0.6128571", "0.61156523", "0.6114592", "0.611435", "0.6112757", "0.6109698", "0.61063373", "0.61018074", "0.60808516", "0.60625535", "0.60625535", "0.6057143", "0.6055633", "0.605283", "0.605283", "0.605283", "0.6051223", "0.604801", "0.6047685", "0.60339516", "0.6030972", "0.60175514", "0.6013796", "0.5996854", "0.59888005", "0.597419", "0.5960573", "0.594938", "0.59468824", "0.59468824", "0.59468824", "0.5944386", "0.59326774", "0.59288657", "0.59253174", "0.5920621", "0.5913777", "0.5908507", "0.59071857", "0.5906475", "0.58888894", "0.5877471", "0.5875806", "0.5867929", "0.5861295", "0.585523", "0.5852134", "0.58261734", "0.5821317", "0.5816315", "0.5807877", "0.5807877", "0.58072716", "0.5801941", "0.57904696", "0.57877445" ]
0.6807578
13
Get Cancelled. The transaction was cancelled
public boolean isCancelled();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCancelReason() {\n return cancelReason;\n }", "public boolean wasCancelled() {\n\t\treturn wasCancelled;\n\t}", "boolean isCancelled(){\n\t\treturn cancelled;\n\t}", "public boolean isCancelled() {\n return cancelled;\n }", "public boolean isCancelled() {\n return isCancelled;\n }", "boolean isCancelled();", "public final boolean isCancelled(){\n return cancel;\n }", "public synchronized boolean isCancelled() {\n return mIsCancelled;\n }", "public boolean isCancelled()\r\n/* 54: */ {\r\n/* 55: 92 */ return isCancelled0(this.result);\r\n/* 56: */ }", "protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}", "public String getCanceledByName() {\n return this.canceledByName;\n }", "public boolean isCancel() {\n return cancel;\n }", "@Override\n\tpublic boolean isCancelled() {\n\t\treturn cancelled;\n\t}", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}", "public boolean isCancelled() {\n\t\treturn false;\n\t}", "@Override\n public boolean isCancelled() { return this.cancel; }", "public static int cancel() {\n\t\tUIManager.put(\"OptionPane.warningIcon\", icon);\n\t\tJOptionPane.showMessageDialog(null, \"Transaction Canceled.\", \"Cancel\", JOptionPane.WARNING_MESSAGE, null);\n\t\treturn 1;\n\t}", "public boolean isCanceled() {\n\t\treturn this.isCanceled;\n\t}", "public boolean getIsCancelled() throws ServiceLocalException {\n\t\treturn this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.IsCancelled) != null;\n\t}", "public void checkCancel() throws CancellationException;", "public void cancel(){\n cancelled = true;\n }", "public boolean getCancelled(Booking b)\r\n {\r\n if(b == null)\r\n return false;\r\n \r\n return b.getCancelled();\r\n }", "@ApiModelProperty(value = \"The reason this auto order was canceled by either merchant or customer\")\r\n public String getCancelReason() {\r\n return cancelReason;\r\n }", "public String cancel() {\n endConversation();\n return CANCEL_OUTCOME_ID;\n }", "CancelAction getCancelAction();", "public CancelledOrder getCancelledOrder(int iID){\n\t\treturn hmCancelledOrder.get(iID);\n\t}", "public void cancel() {\n\t\tcancelled = true;\n\t}", "@Override\n public byte getSubtype() {\n return SUBTYPE_COLORED_COINS_ASK_ORDER_CANCELLATION;\n }", "public Date getCancelDate() {\n return this.getAdvanceTravelPayment().getCancelDate();\n }", "public final boolean wasInterrupted() {\n Object localValue = this.value;\n return (localValue instanceof Cancellation) && ((Cancellation) localValue).wasInterrupted;\n }", "@Array({9}) \n\t@Field(18) \n\tpublic Pointer<Byte > CancelTime() {\n\t\treturn this.io.getPointerField(this, 18);\n\t}", "public void setCancelled(boolean cancelled) {\n\t\tthis.cancelled = cancelled;\n\t}", "@Override\n\tpublic void cancelTransaction() {\n\t\t\n\t}", "public void onCancelled() {\n this.cancelled = true;\n }", "@Override\n\tpublic boolean isEventCancelled() {\n\t\treturn status==EventCancelled;\n\t}", "public Object getBtnCancel() {\n return btnCancel;\n }", "public boolean isInterruptOnCancel()\r\n\t{\r\n\t\treturn interruptOnCancel;\r\n\t}", "@Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }", "public javax.swing.JButton getBtnCancel() {\n return btnCancel;\n }", "public boolean hasUserCancelled() {\n return myIsDialogCancelled;\n }", "public void setIsCancelled (boolean IsCancelled);", "public void setIsCancelled (boolean IsCancelled);", "public synchronized void cancel() {\n this.executionState = JobExecutionState.CANCELLED;\n this.finished = Instant.now();\n }", "public int cancelTranTx(TrantrnInput trantrn) {\n\t\tString companyID = trantrn.getCompanyID();\n\t\tString jobcd = trantrn.getTrantrn().getJob_cd();\n\t\tString inputno = trantrn.getTrantrn().getInput_no();\n\t\tString status = TrantrnMapper.getstatus(jobcd,inputno,companyID);\n\t\tif(!status.equals(\"1\")){\n\t\t\treturn 0;\n\t\t}\n\t\tint locknum = trantrn.getTrantrn().getLock_flg();\n\t\tint locknumnow=TrantrnMapper.queryLock(jobcd,companyID,inputno);\n\t\tif(locknumnow>locknum){\n\t\t\t return -1; \n\t\t }\n\t\tTrantrn tran = trantrn.getTrantrn();\n\t\ttran.setCancelconfirmdate(DateUtil.getNowTime());\n\t\ttran.setCancelconfirmemp(trantrn.getUserID());\n\t\ttran.setCompany_cd(trantrn.getCompanyID());\n\t\tList<JobLableTrn> jltrn = trantrn.getLableList();\n\t\tjobLandMapper.deleteByJobCd(null, trantrn.getTrantrn().getInput_no(), Integer.valueOf(companyID),\n\t\t\t\t\"orderlabeltrn\");\n\t\t if(jltrn==null||jltrn.size()==0) {\n\t\t \tjltrn = null;\n\t\t }else {\n\t\t \tfor(int i=0;i<jltrn.size();i++) {\n\t\t\t\t\tjltrn.get(i).setCostno(trantrn.getTrantrn().getInput_no());\n\t\t\t\t\tjltrn.get(i).setLablelevel(3);\n\t\t\t\t\tjltrn.get(i).setCompanycd(Integer.valueOf(trantrn.getCompanyID()));\n\t\t\t\t\tjltrn.get(i).setUpdDate(DateUtil.getNowTime());\n\t\t\t\t\tjltrn.get(i).setUpUsercd(trantrn.getUserID());\n\t\t\t\t\tjltrn.get(i).setAddDate(DateUtil.getNowTime());\n\t\t\t\t\tjltrn.get(i).setAddUsercd(trantrn.getUserID());\n\t\t \t}\n\t\t \t\n\t\t \tcostMapper.insertCostLable(jltrn);\n\t\t \t}\n\t\t TrantrnMapper.updateLock(jobcd,companyID,inputno);\n\t\treturn TrantrnMapper.cancelTran(tran);\n\t}", "@Override\n\tpublic void setCancelled(boolean cancelled) {\n\t\tthis.cancelled = cancelled;\n\t}", "@Override\n\t\tpublic boolean isCanceled() {\n\t\t\treturn false;\n\t\t}", "public boolean cancel(boolean mayInterruptIfRunning)\r\n/* 351: */ {\r\n/* 352:433 */ Object result = this.result;\r\n/* 353:434 */ if ((isDone0(result)) || (result == UNCANCELLABLE)) {\r\n/* 354:435 */ return false;\r\n/* 355: */ }\r\n/* 356:438 */ synchronized (this)\r\n/* 357: */ {\r\n/* 358:440 */ result = this.result;\r\n/* 359:441 */ if ((isDone0(result)) || (result == UNCANCELLABLE)) {\r\n/* 360:442 */ return false;\r\n/* 361: */ }\r\n/* 362:445 */ this.result = CANCELLATION_CAUSE_HOLDER;\r\n/* 363:446 */ if (hasWaiters()) {\r\n/* 364:447 */ notifyAll();\r\n/* 365: */ }\r\n/* 366: */ }\r\n/* 367:451 */ notifyListeners();\r\n/* 368:452 */ return true;\r\n/* 369: */ }", "public void onCancel();", "public boolean isCancelled()\n\t{\n\t\treturn _buttonHit;\n\t}", "public boolean cancel();", "@Override\n public byte getSubtype() {\n return SUBTYPE_COLORED_COINS_BID_ORDER_CANCELLATION;\n }", "@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }", "public String getCancelAuth()\n\t{\n\t\treturn cancelAuth;\n\t}", "public String getCanceledCountryName() {\n return this.canceledCountryName;\n }", "void cancel()\n {\n cancelled = true;\n subjobComplete = true;\n result = null;\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-06 12:50:58.290 -0400\", hash_original_method = \"5EC14A17195390EB5D2C4083E78D410E\", hash_generated_method = \"A5CD27BC92246F30166293B30E841E57\")\n \npublic boolean isCancelled() {\n return getInfo().getState() == PrintJobInfo.STATE_CANCELED;\n }", "@Override\r\n\tpublic boolean isCanceled() {\n\t\treturn false;\r\n\t}", "HasClickHandlers getCancelButton();", "@Override\n public void setCancelled(boolean cancel) { this.cancel = cancel;\n }", "@Override\r\n public void cancelMsg() {\n System.out.println(\"Transaction has been cancelled for gas pump #1..\");\r\n }", "@Override\n\t\t\tpublic boolean isCanceled() {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\tpublic void setCancelled(boolean cancel) {\n\t\tthis.cancelled = cancel;\n\t}", "private void cancel() {\n recoTransaction.cancel();\n }", "public abstract boolean cancel();", "public boolean isCancelSupported();", "public javax.swing.JButton getCancelBtn() {\n\t\treturn cancelBtn;\n\t}", "public HashMap<Integer, CancelledOrder> getCancelledOrders(){\n\t\treturn hmCancelledOrder;\n\t}", "public void onCancelled();", "@Override\n\t\t\tpublic void setCanceled(boolean value) {\n\t\t\t\t\n\t\t\t}", "public int getAbortReason() {\n\t\treturn mAbortReason;\n\t}", "public boolean cancel(String requestId);", "public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }", "Update withCancelRequested(Boolean cancelRequested);", "TransactionResponseDTO cancelTransaction(TransactionRequestDTO transactionRequestDTO);", "public abstract void isCancel(long ms);", "public void cancel();", "@Override\n\tpublic boolean hasCancelBeenRequested() {\n\t\treturn false;\n\t}", "pb4server.CancelCureSoliderAskReq getCancelCureSoliderAskReq();", "protected abstract boolean isCancelEnabled();", "public void cancel( String reason );", "public String getCancelButtonCaption() {\r\n\t\tif (_cancelButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _cancelButton.getDisplayName();\r\n\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "public String getCanceledCountryCode() {\n return this.canceledCountryCode;\n }", "public void cancel()\n\t{\n\t}", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "protected abstract void onCancel();", "protected abstract void sendCancel(Status reason);", "void onCancel();", "@ApiModelProperty(value = \"The date/time that the auto order was canceled\")\r\n public String getCanceledDts() {\r\n return canceledDts;\r\n }", "public boolean orderCanceled() {\n\t\tordered = false;\n\t\tSystem.out.println(\"Ok your \" + name + \" order has been canceled.\");\n\t\treturn ordered;\n\t}", "public void onCancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "void cancel(long inId);", "public boolean isExecutionCanceled() {\n return executionCanceled;\n }", "@Override\r\n\tpublic void setCanceled(boolean value) {\n\r\n\t}", "int getCancelledVolume();", "public String transaction_cancel(int reservationId)\n\t{\n\t\tif (this.username == null) {\n\t\t\treturn \"Cannot cancel reservations, not logged in\\n\";\n\t\t}\n\t\ttry {\n\t\t\tbeginTransaction();\n\t\t\tif (checkNotCanceledReservation(reservationId)){\n\t\t\t\t//canceling Reservation, set cancel = 1\n\t\t\t\tcancelReservation(reservationId);\n\t\t\t\t//refund for canceled Reservation\n\t\t\t\tgetReservationStatement.clearParameters();\n\t\t\t\tgetReservationStatement.setString(1, this.username);\n\t\t\t\tgetReservationStatement.setInt(2, reservationId);\n\t\t\t\tResultSet result = getReservationStatement.executeQuery();\n\t\t\t\tresult.next();\n\t\t\t\tupdateBalance(getBalance() + result.getInt(7));\n\t\t\t\tresult.close();\n\t\t\t\tcommitTransaction();\n\t\t\t\treturn \"Canceled reservation \" + reservationId + \"\\n\";\n\t\t\t} \n\t\t\trollbackTransaction();\n\t\t\treturn \"Failed to cancel reservation \" + reservationId + \"\\n\" + (DEBUG ? \"1\\n\" : \"\");\n\t\t} catch (Exception e) {\n\t\t\tif (DEBUG) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\trollbackTransaction();\n\t\t\treturn \"Failed to cancel reservation \" + reservationId + \"\\n\" + (DEBUG ? \"2\\n\" : \"\");\n\t\t}\n\t}" ]
[ "0.7290781", "0.7208928", "0.7186192", "0.71207327", "0.7102619", "0.70630026", "0.6972756", "0.6853748", "0.68004143", "0.6760252", "0.6742748", "0.67149377", "0.6673676", "0.6655922", "0.66134953", "0.6610302", "0.6605333", "0.655754", "0.6476661", "0.6476185", "0.63858926", "0.6365947", "0.63644516", "0.63016105", "0.62915593", "0.62607014", "0.62564385", "0.61988544", "0.616858", "0.6166668", "0.6129457", "0.61114484", "0.60997695", "0.6090425", "0.60889095", "0.60736763", "0.60706806", "0.60180295", "0.60079885", "0.600405", "0.5998011", "0.5991866", "0.5991866", "0.59797907", "0.597908", "0.5975712", "0.59462994", "0.5946145", "0.59397984", "0.59383434", "0.59352773", "0.59351516", "0.59346414", "0.5931801", "0.5928494", "0.5921189", "0.5920137", "0.591743", "0.5911828", "0.59065187", "0.58978623", "0.5890627", "0.58815086", "0.5881196", "0.58734465", "0.5862856", "0.58614546", "0.5853418", "0.58481324", "0.5829018", "0.58255666", "0.5824058", "0.5813465", "0.58055586", "0.58031815", "0.57754034", "0.5774673", "0.57689446", "0.5757521", "0.5754611", "0.5750534", "0.57500035", "0.5741664", "0.57380855", "0.5731279", "0.5729401", "0.57273275", "0.57193583", "0.5711577", "0.57094455", "0.57056403", "0.57009643", "0.5699498", "0.5684934", "0.56756485", "0.5672745", "0.56718135", "0.56608653" ]
0.710711
6
Set Nomor SK Baru
public void setNomorSK2 (String NomorSK2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNomorSK2();", "public void setSku(String sku) {\n this.sku = sku;\n }", "@Override\n public String setName(int numSat, SatelliteSystem sys) {\n return super.setName(numSat, sys);\n }", "public void srediFormuPremaSK(){\n int aktivanSK = Komunikacija.getInstance().getAktivan_sk();\n \n if(aktivanSK == Konstante.SK_DODAVANJE){\n srediFormu();\n this.setTitle(\"Unos nove vezbe\");\n }\n if(aktivanSK == Konstante.SK_IZMENA){\n srediFormu();\n prikaziPodatkeVezbi(Komunikacija.getInstance().getVezbe());\n this.setTitle(\"Izmena vezbe\");\n } \n \n if(aktivanSK == Konstante.SK_PRIKAZ){\n jTextFieldNaziv.setEnabled(false);\n jTextFieldFokus.setEnabled(false);\n jTextFieldVremeTrajanja.setEnabled(false);\n prikaziPodatkeVezbi(Komunikacija.getInstance().getVezbe());\n this.setTitle(\"Detalji vezbe\");\n }\n}", "Sku sku();", "public void setSku(java.lang.String sku) {\n this.sku = sku;\n }", "public void setSku(String sku) {\r\n this.sku = sku == null ? null : sku.trim();\r\n }", "public String sku() {\n return this.sku;\n }", "public String getSku(){\n return sku;\n }", "public void setSku(String sku) {\n this.sku = sku == null ? null : sku.trim();\n }", "String sku();", "String sku();", "public void setBunga(int tipeBunga){\n }", "public void setName(String n);", "public String getSku() {\r\n return sku;\r\n }", "@Override\n public void setSuitNum(int total, int normal, int taobao, int imgs) {\n }", "void setSzerokosc(double szerokosc) {\n this.szerokosc = szerokosc;\r\n }", "public void setNomDistrito(String nomDistrito);", "public String getSku() {\n return sku;\n }", "public String getSku() {\n return sku;\n }", "void setShapeLabel(String Label);", "public void setPskuId(Number value) {\n\t\tsetNumber(PSKU_ID, value);\n\t}", "void setName(String s);", "protected abstract void setSpl();", "public void setName(String n){ name=n; }", "public Sku() {\n\t}", "public void setNom(String p_onom);", "@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_lineaGastoCategoria.setName(name);\n\t}", "public void setSimbolo(String simbolo) {\r\n this.simbolo = simbolo;\r\n }", "public void setName (Product product) {\n\t\tproductNameLbl.setText(product.getName());\n\t\tproductNameLbl.repaint();\n\t}", "public void setKelas(String sekolah){\n\t\ttempat = sekolah;\n\t}", "private void tampil_kereta() {\n kereta_combo.addItem (\"Argo Parahyangan\");\n kereta_combo.addItem (\"Argo Jati\");\n kereta_combo.addItem (\"Bangun Karta\");\n kereta_combo.addItem (\"Bima\");\n kereta_combo.addItem (\"Kahuripan\");\n kereta_combo.addItem (\"Lodaya\"); \n kereta_combo.addItem (\"Sembari\");\n kereta_combo.addItem (\"Turangga\");\n \n }", "void setName(String name_);", "void setPosNr(String posNr);", "public void setBSCA_PrintPrice2 (String BSCA_PrintPrice2);", "public void setSPART(java.lang.String SPART) {\n this.SPART = SPART;\n }", "private void setupSpalteSaz() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteSaz.setCellValueFactory(new PropertyValueFactory<>(\"saz\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteSaz.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteSaz.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setSaz(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "private void asetaAlaTeksti(String uusiteksti)\n\t{\n\t\talapaneeliteksti.setText(uusiteksti);\n\t}", "@Test\n public void testSetNumSoin() {\n \n assertNull(soin3.getNumSoin());\n soin3.setNumSoin(\"200\");\n assertNotNull(soin3.getNumSoin());\n assertEquals(\"200\", soin3.getNumSoin());\n \n }", "public void setSn(Short sn) {\n\t\tthis.sn = sn;\n\t}", "public void SetBrand(String br) {\n Brand = br;\n }", "@Override\r\n\tpublic void setDefault(String oletus) {\r\n\t\ttextVastaus.setText(oletus);\r\n\t}", "public SKIN_SPECIALIST() {\n initComponents();\n }", "public void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);", "public void actualizarNombrePoder(){\n\t\tString name = ( game.getCurrentSorpresa() == null )?\"No hay sorpresa\":game.getCurrentSorpresa().getClass().getName();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t}", "void setName(String strName);", "private void MostrarSombra()\n {\n // Si tiene el valor por defecto\n if (EsDefecto())\n {\n // Si tenemos establecida la sombra \"defecto\"\n if (m_SombraD.m_nShadowColor != Color.TRANSPARENT)\n {\n setShadowLayer(m_SombraD.m_nShadowRadius, m_SombraD.m_nShadowDx,\n m_SombraD.m_nShadowDy, m_SombraD.m_nShadowColor);\n }\n else setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n }\n else\n {\n // Si tenemos establecida la sombra \"normal\"\n if (m_SombraN.m_nShadowColor != Color.TRANSPARENT)\n {\n setShadowLayer(m_SombraN.m_nShadowRadius, m_SombraN.m_nShadowDx,\n m_SombraN.m_nShadowDy, m_SombraN.m_nShadowColor);\n }\n else setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n }\n }", "public void setlbr_Barcode2 (String lbr_Barcode2);", "public void setName (String Name);", "public void setName (String Name);", "public void setName (String Name);", "public void setBorneSup() { \n\t\tif(profondeur < ListObjet.size())borneSup = borneInf + ((poids_maximal - poidsActuelle)*ListObjet.get(profondeur).getRapport());\n\t\telse borneSup = borneInf + ((poids_maximal - poidsActuelle)*0);\n\t}", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "public Sku name() {\n return this.name;\n }", "public MenuUtamaPenyedia() {\n initComponents();\n tabPenyedia.setTitleAt(0, \"View Profile\");\n tabPenyedia.setTitleAt(1, \"Edit Profile\");\n tabPenyedia.setTitleAt(2, \"Create Barang\");\n tglSpinner.setValue(0);\n blnSpinner.setValue(0);\n thnSpinner.setValue(2016);\n kbComboBox.setMaximumRowCount(2);\n kbComboBox.removeAllItems();\n kbComboBox.insertItemAt(\"Bagus\", 0);\n kbComboBox.insertItemAt(\"Tidak Bagus\", 1);\n }", "public void setNombres(String nombres);", "public void setName (String n){\n\t\tname = n;\n\t}", "public void setRua(String rua) {// Altera o nome da rua.\r\n\t\tthis.rua = rua;\r\n\t}", "void setName(String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "void setName(String name);", "public void setNombre(String nombre)\r\n/* 118: */ {\r\n/* 119:214 */ this.nombre = nombre;\r\n/* 120: */ }", "public void setName (String name){\n \n boyName = name;\n }", "public void pedirCantidadProducto(String codBarra){\n this.productoSeleccionado = codBarra;\n }", "TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }", "public java.lang.String getSku() {\n return sku;\n }", "void setCodiceFiscale(String codiceFiscale);", "public void setBloqueado(java.lang.String param){\n \n this.localBloqueado=param;\n \n\n }", "public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }", "public void setCodDistrito(String codDistrito);", "public void setBgSno(String bgSno) {\n this.bgSno = bgSno;\n }", "private void CargaInicial() {\r\n this.setTitle(\"\" + gui.getTitle().concat(\"\").concat(\" - [Modulo: Precio por Producto/Servicio]\"));\r\n }", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "public void setName (String n) {\n name = n;\n }", "public void setRua(String rua) {this.rua = rua;}", "private void setNameAutomatic(){\n\t}", "private void setName() {\n\t\t//MAKE SURE NOT TO GET ACCIDENTAL RECURSION HERE\n\t\t//DO NOT JUST MAKE A NEW TRIAD AND COMPARE TO CURRENT TRIAD\n\t\t//UNLESS ??? MAYBEDON\"T PUT SET NAME IN THE CONSTRUCTOR?\n\t\t//SIMILAR PROBLEM TO SETINVERSION\n\t\t\n\t\t//major, minor, diminished, augmented\n\t\t//this.name = name;\n\t}", "public static void setName(String n){\n\t\tname = n;\n\t}", "public void title(){\n textFont(select,30);\n fill(150);\n text(\"PLANE SELECT\",482,72);\n fill(0);\n text(\"PLANE SELECT\",480,70);\n}", "public void setProducto (String nombreProducto, int stockProducto, double precioProducto) {\r\n\t\tthis.nombre = nombreProducto;\r\n\t\tthis.stock = stockProducto;\r\n\t\tthis.precio = precioProducto;\r\n\t}", "public void setShiirekbn(String shiirekbn) {\r\n this.shiirekbn = shiirekbn;\r\n }", "public void setNamePro(String namePro) {\n this.namePro = namePro;\n }", "private void setSpnAlunosTurma(){\n ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, listaNomesUsuarios);\n spnAlunosTurma.setAdapter(arrayAdapter);\n spnAlunosTurma.setSelection(0);\n }", "public void setName(String name)\r\n\t{\r\n\t\tthis.nome = nome;\r\n\t}", "public void setName(String n) {\n this.name = n;\n }", "public void setBet(int id, String s){\n\t\tallBets[id].setText(s);\t\t\n\t}", "public void setNombreArea(String p) { this.nombreArea = p; }", "public void setName(String name) {\n fName= name;\n }", "public void setFsk(int fsk) throws FilmDatenException \r\n\t{\r\n\t\tif(fsk == 0) this.fsk = fsk;\r\n\t\telse if (fsk == 6) this.fsk = fsk;\r\n\t\telse if (fsk == 12) this.fsk = fsk;\r\n\t\telse if (fsk == 16) this.fsk = fsk;\r\n\t\telse if (fsk == 18) this.fsk = fsk;\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Fehler!!! in setFSK \"+\"Der Wert: \"+fsk+\" ist kein Gültigerwert\");\r\n\t\t\tthrow new FilmDatenException();\r\n\t\t}\r\n\t}", "public void setName(String n) {\r\n name = n;\r\n }", "public void setNombreLibro(String nombreNuevoLibro)\n {\n this.nombre = nombreNuevoLibro;\n }", "@Override\n\tpublic void setNam(int nam) {\n\t\t_keHoachKiemDemNuoc.setNam(nam);\n\t}", "void setOsU( String osU );", "public void setThisClassQuantity() {\n quantity = spinnerValue + \" pieces\";\n }", "void setAnzahlVerkauft(String anzahlVerkauft);", "void setLabel(String label);" ]
[ "0.6222683", "0.6030057", "0.60221076", "0.5982918", "0.59590584", "0.5911923", "0.58443654", "0.57851315", "0.5779398", "0.57736206", "0.57384735", "0.57384735", "0.5683001", "0.5667389", "0.5633579", "0.5626152", "0.5600374", "0.5596677", "0.5583271", "0.5528587", "0.55254877", "0.5513235", "0.5511571", "0.5492737", "0.5489019", "0.54845196", "0.5477037", "0.54766315", "0.54736453", "0.5455694", "0.5441538", "0.5439356", "0.54379016", "0.54267126", "0.54248166", "0.5423647", "0.5420161", "0.5416836", "0.5411035", "0.5401184", "0.539983", "0.5399627", "0.53993165", "0.5397711", "0.53974646", "0.5397281", "0.5388837", "0.5382639", "0.5375314", "0.5375314", "0.5375314", "0.53713113", "0.5369746", "0.5369746", "0.535401", "0.53400093", "0.53371054", "0.5334934", "0.53342867", "0.5324446", "0.5324446", "0.5324446", "0.5324446", "0.5324446", "0.5324446", "0.5321475", "0.53191805", "0.5311268", "0.5299456", "0.5291751", "0.52902746", "0.5289306", "0.52846706", "0.52828044", "0.5278386", "0.5276736", "0.5276322", "0.5269749", "0.5269088", "0.52675515", "0.52592796", "0.52587205", "0.5252286", "0.5249621", "0.52489835", "0.524828", "0.52460486", "0.5243566", "0.52403367", "0.5238212", "0.5236263", "0.52355057", "0.52346003", "0.5233621", "0.52335644", "0.52332693", "0.5231631", "0.5222463", "0.5221795", "0.522051" ]
0.75887734
0
Get Nomor SK Baru
public String getNomorSK2();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String sku();", "String sku();", "public String sku() {\n return this.sku;\n }", "Sku sku();", "public String getSku(){\n return sku;\n }", "public String getSku() {\r\n return sku;\r\n }", "public String getSku() {\n return sku;\n }", "public java.lang.String getSku() {\n return sku;\n }", "public String getSku() {\n return sku;\n }", "public void setNomorSK2 (String NomorSK2);", "java.lang.String getNume();", "java.lang.String getNume();", "String getNombreProducto();", "public Sku name() {\n return this.name;\n }", "public String getFnSKU() {\n return fnSKU;\n }", "String getStockName();", "public String getNombre(){\r\n return beneficiario[1].toString();\r\n }", "public String getSkuCode() {\n return skuCode;\n }", "public String balar() {\r\n return this.SONIDO;\r\n }", "java.lang.String getCouponVendor();", "String getVorlesungKennung();", "public StringBuffer getSkuDetail() {\n List<CheckoutCommerceItemBean> commerceItems;\n productsInfo.append(\"\");\n if (null != reviewOrderBean) {\n if (null != reviewOrderBean.getComponent()) {\n if (null != reviewOrderBean.getComponent()\n .getPaymentDetails()) {\n if (null != reviewOrderBean.getComponent()\n .getPaymentDetails().getCommerceItems()) {\n commerceItems = reviewOrderBean.getComponent()\n .getPaymentDetails().getCommerceItems();\n for (int i = 0; i < commerceItems.size(); i++) {\n\n productsInfo.append(commerceItems.get(i)\n .getCatalogRefId());\n productsInfo.append(\";\");\n /* sku quantity\n productsInfo.append(commerceItems.get(i)\n .getQuantity());\n productsInfo.append(\";\");*/\n productsInfo.append(String.format(\n \"%.2f\", Double.valueOf(commerceItems.get(i)\n .getAmount())));\n if (i != commerceItems.size() - 1) //avoid adding \"|\" at last product\n productsInfo.append(\"|\");\n\n }\n\n\n }\n }\n }\n }\n return productsInfo;\n }", "java.lang.String getBunho();", "java.lang.String getBunho();", "public String getProductLabel(){\n return productLabel.getText().trim();\n }", "public String getBSCA_PrintPrice2();", "public String getCusBak() {\r\n return cusBak;\r\n }", "public String getGoodsSn() {\n return goodsSn;\n }", "public String getBgSno() {\n return bgSno;\n }", "public String getBusniessSn() {\n return busniessSn;\n }", "String getProduct();", "public static int getLicznikTur() { return LicznikTur; }", "public String getSumShopJkn() {\n return sumShopJkn;\n }", "public String getQuantProduto() {\r\n\t\treturn quantProduto;\r\n\t}", "private Generic getCheckoutPageSKUNumber(String chkoutSKU) throws Exception {\n\t\treturn new Generic(driver, By.xpath(\".//*[@class='product-line-sku-container']//span[text()='\" + chkoutSKU + \"']\"), \"Product SKU on Checkout page\");\n\t}", "public java.lang.String getSPART() {\n return SPART;\n }", "@Override\r\n\tpublic String getNombrePrograma() {\n\t\treturn this.getObjectZulCode();\r\n\t}", "public String getCurp(){\r\n return beneficiario[0].toString();\r\n }", "@Override\n\tpublic int getQuantidade() {\n\t\treturn hamburguer.getQuantidade();\n\t}", "String getSupName();", "public String getShopNm() {\n return shopNm;\n }", "java.lang.String getProductCode();", "public String getShopNmR() {\n return shopNmR;\n }", "public String getShopNmKana() {\n return shopNmKana;\n }", "String getStationBand();", "public String getRazaN(){\n return razaP1.nombre1();\n }", "java.lang.String getBankNo();", "public String getGenus() {\n return genus;\n }", "public String getSumShopKb() {\n return sumShopKb;\n }", "public String getNombre() {\n\t\treturn producto.getNombre();\n\t}", "public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}", "public String getShiirekbn() {\r\n return shiirekbn;\r\n }", "String getSlingName();", "java.lang.String getCouponName();", "java.lang.String getCouponName();", "java.lang.String getCouponName();", "float getMonatl_kosten();", "java.lang.String getBankName();", "@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}", "public String getCodigoDeBarras() {\n\t\treturn producto.getCodigoDeBarras();\n\t}", "public String getJP_BankName_Kana_Line();", "public String tegevuseSuvalineSoovitus(){\n int listiSuurus = tegevused.size();\n return tegevused.get((int)(Math.random()*listiSuurus));\n }", "protected String getZKasseId() {\n return bc.Z_KASSE_ID;\n }", "public Short getSn() {\n\t\treturn sn;\n\t}", "String getPrecio();", "public String getRua() {// Retorna o nome da rua.\r\n\t\treturn rua;\r\n\t}", "public String getNamaKlinik() {\n return namaKlinik;\r\n }", "@Override\r\n\tpublic String getNomeRisorsa() {\r\n\t\treturn Costanti.FXML_GESTISCI_CLIENTI;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn namaBulan;\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "private String getSuitName() {\n String result;\n if (this.suit == 0) {\n result = \"Clubs\";\n } else if (this.suit == 1) {\n result = \"Diamonds\";\n } else if (this.suit == 2) {\n result = \"Hearts\";\n } else {\n result = \"Spades\";\n }\n return result;\n }", "int getNombreLignesPlateau();", "public String getSIunit() {\n\t\tStringBuffer b = new StringBuffer(64);\n\t\ttoSI(b, 0);\n\t\treturn(\"\"+b);\n\t}", "public String getName(){\n\t\treturn Name; // Return the product's name\n\t}", "String getBillString();", "public String getName() {\n return isWhite() ? \"WN\" : \"BN\";\n }", "public String Name() {\t\t\r\n\t\treturn BrickFinder.getDefault().getName();\r\n\t}", "public String readDeviceSN(){\r\n return mFactoryBurnUtil.readDeviceSN();\r\n }", "public GiftCardProductQuery sku() {\n startField(\"sku\");\n\n return this;\n }", "@ApiModelProperty(value = \"A text value for sku.\")\n public String getSku() {\n return sku;\n }", "public String getName()\r\n/* 91: */ {\r\n/* 92:112 */ return k_() ? aL() : \"container.minecart\";\r\n/* 93: */ }", "@Override\n\tpublic int getNam() {\n\t\treturn _keHoachKiemDemNuoc.getNam();\n\t}", "public String getTxt_Nif() {\r\n\t\treturn cb_nifCliente.getSelectedItem().toString();\r\n\t}", "@AutoEscape\n\tpublic String getNomDistrito();", "public StorageSku storagesku() {\n return this.storagesku;\n }", "public String getCUSU_NOMBRES(){\n\t\treturn this.myCusu_nombres;\n\t}", "public abstract String getBeschreibung();", "public String getNombreLibro()\n {\n return nombre;\n }", "public java.lang.String getNume() {\n java.lang.Object ref = nume_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n nume_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getNume() {\n java.lang.Object ref = nume_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n nume_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n\tpublic java.lang.String getName() {\n\t\treturn _lineaGastoCategoria.getName();\n\t}", "public String getSifra() {\r\n\t\treturn sifra;\r\n\t}", "public String getFilmselskap() {\n\t\treturn filmselskap;\n\t}", "public Salle getBureau() {\n return bureau;\n }", "public String getName() {\n return stid.trim() + std2.trim();\n }", "public String getSellerSKU() {\n return sellerSKU;\n }", "private String getVendorString(String forUk, String forUs) {;\r\n\t\treturn forUk;\r\n\t}", "@Override public String getMasa(){\n return \"gruesa \";\n }", "@Override\n\tpublic java.lang.String getNeedQuantity() {\n\t\treturn _lineaGastoCategoria.getNeedQuantity();\n\t}", "public String getScbt() {\n return scbt;\n }" ]
[ "0.7300349", "0.7300349", "0.68415296", "0.6710591", "0.6632002", "0.6551655", "0.6547796", "0.65464914", "0.64930856", "0.6409449", "0.6401865", "0.6401865", "0.6310443", "0.6292033", "0.6194865", "0.60785043", "0.59782016", "0.5967383", "0.5920017", "0.59198093", "0.5918534", "0.5909642", "0.58401746", "0.58401746", "0.58378243", "0.58261275", "0.58195627", "0.5790235", "0.5780896", "0.5775024", "0.5768471", "0.5764204", "0.5758553", "0.57492346", "0.57144785", "0.5713491", "0.57045573", "0.5685149", "0.56804", "0.56629086", "0.5654714", "0.5643921", "0.56207055", "0.5620285", "0.56196886", "0.56164145", "0.56156605", "0.56058973", "0.56055444", "0.55976707", "0.55935556", "0.5583654", "0.5574041", "0.55739325", "0.55739325", "0.55739325", "0.55628085", "0.555358", "0.5552427", "0.55494016", "0.5537022", "0.55328274", "0.5531113", "0.5525697", "0.552055", "0.5517856", "0.551359", "0.55085814", "0.5505878", "0.5502869", "0.5492362", "0.5491391", "0.54861903", "0.5482535", "0.5480431", "0.5473997", "0.54721344", "0.5463224", "0.5454885", "0.54487616", "0.54484946", "0.5448191", "0.54465514", "0.5443727", "0.5440815", "0.5438132", "0.54316354", "0.54296184", "0.5424355", "0.5424355", "0.54218245", "0.5421633", "0.5420186", "0.5418128", "0.5415667", "0.5411025", "0.54106724", "0.5407492", "0.5398234", "0.5394865" ]
0.78901416
0
Set Original Service Date
public void setOriginalServiceData (Timestamp OriginalServiceData);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setServiceDate(java.util.Date value);", "abstract public void setServiceAppointment(Date serviceAppointment);", "@Override\n\tprotected void setDate() {\n\n\t}", "public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }", "public void SetDate(Date date);", "void setDate(Date data);", "public void setServiceStartDate(Date value) {\n setAttributeInternal(SERVICESTARTDATE, value);\n }", "public void setDate() {\n this.date = new Date();\n }", "public void setRequestDate(Date requestDate);", "public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}", "@Override\n\tpublic void setLastServiced(Date lastServiced) {\n\t\tthis.lastServiced = lastServiced;\n\t}", "public void setDate(Date newDate) {\n this.currentDate = newDate;\n }", "public void setDate(Date date) {\r\n this.date = date;\r\n }", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "protected void setReturnDate(Date d){ this.returnDate = d; }", "public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n Logger.d(TAG, \"The date is null\");\n }\n }", "public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}", "public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n this.mDate = null;\n }\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(DateTime \n date) {\n this.date = date;\n }", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "@Override\n public void setDateTimeService(DateTimeService dateTimeService) {\n this.dateTimeService = dateTimeService;\n }", "public void setStartDate(Date s);", "public void setRequestDate(Date requestDate) { this.requestDate = requestDate; }", "public void setDate(Date date) {\n mDate = date;\n }", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "public void setDate(Calendar currentDate) {\r\n this.currentDate = currentDate;\r\n }", "public void setDate(Date date) {\n\t\t\n\t\tdate_ = date;\n\t}", "public void setToDate(Date toDate)\r\n/* 33: */ {\r\n/* 34:39 */ this.toDate = toDate;\r\n/* 35: */ }", "public void setStartServiceDate(Date value) {\n setAttributeInternal(STARTSERVICEDATE, value);\n }", "void setCreateDate(Date date);", "@Override\n\tpublic Long updateStartDate() {\n\t\treturn null;\n\t}", "public void setDate(int dt) {\n date = dt;\n }", "public void setDate(Date date) {\n\t\tthis.date = date;\n\t}", "public void setDate(Date date) {\n\t\tthis.date = date;\n\t}", "public void setDate(Date date) {\n\t\tthis.date = date;\n\t}", "public void setDate(Date date) {\n\t\tthis._date = date;\n\t}", "public void setDate(Calendar date)\n {\n this.date = date;\n }", "@Override\n public void setModifiedDate(java.util.Date modifiedDate) {\n _partido.setModifiedDate(modifiedDate);\n }", "public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }", "public abstract void setDate(Timestamp uneDate);", "public void setDate(String newDate)\n\t{\n\t\tthis.date = newDate;\n\t}", "public void setDate(long date)\r\n/* 199: */ {\r\n/* 200:299 */ setDate(\"Date\", date);\r\n/* 201: */ }", "public void setEditDate(Date editDate)\r\n/* */ {\r\n/* 193 */ this.editDate = editDate;\r\n/* */ }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getServiceDate();", "void setUpdatedDate(Date updatedDate);", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public void setDate(Calendar date) {\n\tthis.date = date;\n }", "public void setDate(final Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n setDate(date, null);\n }", "void setCreatedDate(Date createdDate);", "private void setDate() {\n\t\tthis.date = Integer.parseInt(this.year + String.format(\"%02d\", this.calenderWeek));\n\n\t}", "public void setDate (String s) {\n date = s;\n }", "public void setCreateDate(java.util.Date newVal) {\n if ((newVal != null && this.createDate != null && (newVal.compareTo(this.createDate) == 0)) || \n (newVal == null && this.createDate == null && createDate_is_initialized)) {\n return; \n } \n try {\n this.createDate = (java.util.Date)newVal.clone();\n } catch (Exception e) {\n // do nothing\n }\n\n createDate_is_modified = true; \n createDate_is_initialized = true; \n }", "public void setFechaSolicitud(java.util.Calendar param){\n \n this.localFechaSolicitud=param;\n \n\n }", "void setStartDate(Date startDate);", "public void setDate(String date){\n this.date = date;\n }", "public void setCurrentDate(String d) {\n currentDate = d;\n }", "public void setDate(java.util.Calendar date) {\n this.date = date;\n }", "public void setDate(java.util.Calendar date) {\n this.date = date;\n }", "@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}", "public void setCurrentDate(CurrentDate pCurrentDate) { \n mCurrentDate = pCurrentDate; \n }", "public void setDate(Calendar date) {\r\n\t\tthis.date = date;\r\n\t}", "@Test\r\n\tpublic void testSetDate() {\n\t\tfail(\"Not yet implemented\");\r\n\t}", "void setModifiedDate(Date p_date)\n {\n throw new UnsupportedOperationException(\n \"This method is not supported. Use addHistory()\");\n }", "public void setDateassemb( java.sql.Date newValue ) {\n __setCache(\"dateassemb\", newValue);\n }", "protected void setTimeStamp(Date date) {\n\t\tsetPurchaseDate(date);\n\t}", "public static void setDate() {\r\n\t\tDate.set(DateFormat.getDateTimeInstance(DateFormat.SHORT,\r\n\t\t\t\tDateFormat.LONG, Locale.getDefault()).format(\r\n\t\t\t\tnew java.util.Date()));\r\n\t}", "void setDate(java.lang.String date);", "public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }", "void setInvoicedDate(Date invoicedDate);", "public void setDateCreated(Date dateCreated);", "public void setDATE_SETTLED(Date DATE_SETTLED) {\r\n this.DATE_SETTLED = DATE_SETTLED;\r\n }", "public void setFechaFacturado(java.util.Calendar param){\n \n this.localFechaFacturado=param;\n \n\n }", "public void setDate(String date) {\r\n this.date = date;\r\n }", "@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_scienceApp.setModifiedDate(modifiedDate);\n\t}", "public void setDateModified(Date dateModified);", "public void setDateTimeService(DateTimeService dateTimeService) {\r\n this.dateTimeService = dateTimeService;\r\n }", "public void setDateTimeService(DateTimeService dateTimeService) {\r\n this.dateTimeService = dateTimeService;\r\n }", "public void setCurrentDate(Date currentDate)\r\n {\r\n m_currentDate = currentDate;\r\n }", "public void setDate(String date){\n this.date = date;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setCurrentDate(String currentDate) {\n this.currentDate = currentDate;\n }", "public void setEffectiveDate(java.util.Date value);", "public void setSysDate()\r\n\t{\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\r\n txtPDate.setText(sdf.format(new java.util.Date()));\r\n\t}", "public void updateBDate() {\n bDate = new Date();\n }", "@Override\n\tpublic void setCreatedDate(java.util.Date CreatedDate) {\n\t\t_locMstLocation.setCreatedDate(CreatedDate);\n\t}" ]
[ "0.7912967", "0.6891976", "0.6858138", "0.68310785", "0.66987747", "0.6656567", "0.6643984", "0.65236384", "0.65190893", "0.65130407", "0.64884937", "0.6487761", "0.645487", "0.64199257", "0.64082015", "0.63946754", "0.63899416", "0.6386744", "0.63796103", "0.63796103", "0.63796103", "0.63796103", "0.63796103", "0.63796103", "0.63796103", "0.63796103", "0.63796103", "0.6374907", "0.6364373", "0.6364373", "0.6364373", "0.6345461", "0.6327989", "0.6323373", "0.6309398", "0.63033265", "0.6297518", "0.6281698", "0.62811685", "0.62809104", "0.6274953", "0.62728065", "0.625558", "0.62472856", "0.62472856", "0.62472856", "0.62469715", "0.6231909", "0.6229581", "0.6226253", "0.6220071", "0.621511", "0.62118226", "0.62083036", "0.62046134", "0.619653", "0.6191453", "0.6191453", "0.6191453", "0.6189744", "0.61803055", "0.6169929", "0.61618894", "0.6156535", "0.6149119", "0.61391515", "0.6136139", "0.61346895", "0.6120716", "0.6119706", "0.61162794", "0.61162794", "0.61138475", "0.6108058", "0.6097347", "0.6092195", "0.60861635", "0.6085985", "0.6082474", "0.608081", "0.6076323", "0.60728115", "0.60669607", "0.60641223", "0.6063046", "0.605274", "0.6051883", "0.6045359", "0.604144", "0.6038848", "0.6038848", "0.60311806", "0.60183305", "0.60182637", "0.60182637", "0.6011178", "0.60017544", "0.5994131", "0.5989647", "0.59853077" ]
0.7260772
1
Get Original Service Date
public Timestamp getOriginalServiceData();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getServiceDate();", "public Date getOriginalStart() throws ServiceLocalException {\n\t\treturn (Date) this.getPropertyBag().getObjectFromPropertyDefinition(\n\t\t\t\tAppointmentSchema.OriginalStart);\n\t}", "public Date getServiceStartDate() {\n return (Date) getAttributeInternal(SERVICESTARTDATE);\n }", "java.lang.String getFoundingDate();", "public DTM getProductServiceEffectiveDate() { \r\n\t\tDTM retVal = this.getTypedField(10, 0);\r\n\t\treturn retVal;\r\n }", "public Date getStartServiceDate() {\n return (Date) getAttributeInternal(STARTSERVICEDATE);\n }", "@Override\n public final Date getDocumentDate() {\n return this.manufacture.getItsDate();\n }", "java.lang.String getDate();", "@Override\n\tpublic Date getLastServiced() {\n\t\treturn lastServiced;\n\t}", "public String getReturnDate();", "public DTM getPsl10_ProductServiceEffectiveDate() { \r\n\t\tDTM retVal = this.getTypedField(10, 0);\r\n\t\treturn retVal;\r\n }", "String getDate();", "String getDate();", "java.lang.String getToDate();", "public void getOriginalDate(\n\t\t\t\t\tint seqid, String siteid, String ptid,\n\t\t\t\t\tString tag, String date, String base);", "public String getSystemDate() {\n\t\tDate date = new Date();\n\t\treturn date.toString();\n\t}", "com.google.type.Date getAcquireDate();", "public Date getRequestDate();", "private String getDate()\r\n\t{\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\treturn sdf.format(cal.getTime());\r\n\t}", "@Override\r\n\tpublic Date getApp_first_logon_dt() {\n\t\treturn super.getApp_first_logon_dt();\r\n\t}", "public DTM getProductServiceExpirationDate() { \r\n\t\tDTM retVal = this.getTypedField(11, 0);\r\n\t\treturn retVal;\r\n }", "public String Get_date() \n {\n \n return date;\n }", "private static String getDate() {\n return new SimpleDateFormat(\"yyyyMMddHHmmss\").format\n (new Date(System.currentTimeMillis()));\n }", "java.lang.String getOrderDate();", "public long getDate()\r\n/* 204: */ {\r\n/* 205:309 */ return getFirstDate(\"Date\");\r\n/* 206: */ }", "private void getDate() {\t// use the date service to get the date\r\n String currentDateTimeText = theDateService.getDateAndTime();\r\n this.send(currentDateTimeText);\r\n }", "@Override\r\n\tpublic Date getApp_latest_logon_dt() {\n\t\treturn super.getApp_latest_logon_dt();\r\n\t}", "private String currentDateTime() {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\");\n String date = df.format(Calendar.getInstance().getTime());\n return date;\n }", "public static Date getNowUtilDate()\n {\n return new Date();\n }", "public java.util.Date getDate(){\n return localDate;\n }", "public Date getSystemDateTime(){\n\t\tDate systemDate = new Date();\t\t\n\t\treturn systemDate;\n\t}", "public static String getDate() {\n return getDate(System.currentTimeMillis());\n }", "java.lang.String getFromDate();", "static String getRefreshDate(){\n if (updateTime == null){\n updateTime = \"ERROR RETRIEVING CURRENT RATES\";\n }\n return conversionRates.get(\"date\").getAsString() + \" \" + updateTime;\n\n }", "public Date getDateResponsed();", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _scienceApp.getModifiedDate();\n\t}", "public String getEventDate() {\n\t\treturn date;\n\t}", "public java.util.Date getRevocationDate() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.getRevocationDate():java.util.Date, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.getRevocationDate():java.util.Date\");\n }", "Date getRequestedAt();", "Date getInvoicedDate();", "public java.util.Date getSystemlogdate () {\n\t\treturn systemlogdate;\n\t}", "private static String getDate()\n\t{\n\t\tString dateString = null;\n\t\tDate sysDate = new Date( System.currentTimeMillis() );\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yy HH:mm:ss\");\n\t\tdateString = sdf.format(sysDate);\n\t\treturn dateString;\n\t}", "String getSpokenDateString(Context context) {\n int flags = DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE;\n return DateUtils.formatDateTime(context, mDeliveryTime, flags);\n }", "public static String getSystemDate()\n {\n\t DateFormat dateFormat= new SimpleDateFormat(\"_ddMMyyyy_HHmmss\");\n\t Date date = new Date();\n\t return dateFormat.format(date);\n }", "protected String getDateString() {\n String result = null;\n if (!suppressDate) {\n result = currentDateStr;\n }\n return result;\n }", "public Date getUseDate() {\n return DateUtils.clone(this.useDate);\n }", "String getSourceUsageDateTime();", "String getStartDate();", "public String getDateString(){\n return Utilities.dateToString(date);\n }", "long getTradeDate();", "Date getEDate();", "public String getEventDate() {\n return eventDate.format(INPUT_FORMATTER);\n }", "public Date GetDate();", "public String getFormatDate() {\n String formatDate = servletRequest.getHeader(ConstantsCustomers.CUSTOMER_FORMAT_DATE);\n if (StringUtil.isEmpty(formatDate)) {\n formatDate = jwtTokenUtil.getFormatDateFromToken();\n }\n if (StringUtil.isEmpty(formatDate)) {\n formatDate = ConstantsCustomers.APP_DATE_FORMAT_ES;\n }\n return formatDate;\n }", "@Override\n\tpublic java.util.Date getStatusDate() {\n\t\treturn _scienceApp.getStatusDate();\n\t}", "public Date getEffectivedateFrom() {\n return (Date) getAttributeInternal(EFFECTIVEDATEFROM);\n }", "long getDate();", "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public String getDate() {\n\t\treturn logInfoSplit[0] + \"_\" + logInfoSplit[1];\n\t}", "public Date getInitialActivityDate(String siteId) {\n\t\tDate date = null;\n\t\ttry{\n\t\t\tdate = siteService.getSite(siteId).getCreatedDate();\n\t\t}catch(Exception e){\n\t\t\treturn new Date(0);\n\t\t}\n\t\treturn date;\n\t}", "public Timestamp getHC_WorkStartDate2();", "Date getDate();", "Date getDate();", "Date getDate();", "public long getDate() {\n return date_;\n }", "private String getCurrentDate() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Calendar cal = Calendar.getInstance();\n return dateFormat.format(cal.getTime());\n }", "org.apache.xmlbeans.XmlString xgetFoundingDate();", "private Date getCurrentDate() {\n return Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());\n }", "public String getVersionDate();", "long getStartDate();", "public java.util.Date getAdjustedDate() {\n\t}", "public Date getdate() {\n\t\treturn new Date(date.getTime());\n\t}", "private String getDateTime() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\", Locale.GERMANY);\n Date date = new Date();\n return dateFormat.format(date);\n }", "private Date getPreviosDayStartTime() {\n\t\treturn null;\n\t}", "XMLGregorianCalendar getSystemEntryDate();", "public String getDate() {\n return date;\n }", "public void setServiceDate(java.util.Date value);", "public static String getCurrentDate()\n\t{\n\t\treturn getDate(new Date());\n\t}", "DateFormat getSourceDateFormat();", "Date getUpdatedDate();", "public String getDate() {\r\n return date;\r\n }", "public String getStartDate();", "public Date getActualRepayDate() {\n return actualRepayDate;\n }", "public Long getRequestDate() {\n return requestDate;\n }", "Date getForDate();", "public Date getVersionDate ();", "public void setOriginalServiceData (Timestamp OriginalServiceData);", "public Date getMessageDate();", "public Date getRequestDate() { return requestDate; }", "public String getEventDate()\n {\n EventDate = createEvent.getText();\n return EventDate;\n }", "public java.util.Date getCertificateOfRegistryDate() {\n\t\treturn _tempNoTiceShipMessage.getCertificateOfRegistryDate();\n\t}", "protected final static String getDateStamp() {\n\n\t\treturn\n\n\t\tnew SimpleDateFormat(\"MMM d, yyyy h:mm:ss a zzz\").format(new Date());\n\n\t}", "public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return d;\n }", "public Date getEndServiceDate() {\n return (Date) getAttributeInternal(ENDSERVICEDATE);\n }", "public Date getDate() {\n if ( expiryDate.isSIPDate() ) {\n Calendar c=( (SIPDate)expiryDate ).getJavaCal();\n return c.getTime();\n }\n else return null; \n }", "public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}", "public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}", "public static String getDate()\r\n {\r\n Date now = new Date();\r\n DateFormat df = new SimpleDateFormat (\"yyyy-MM-dd'T'hh-mm-ss\");\r\n String currentTime = df.format(now);\r\n return currentTime; \r\n \r\n }", "public String getDate(){\n return date;\n }", "public long getDate() {\n return date_;\n }" ]
[ "0.7373685", "0.7040842", "0.6816838", "0.66815794", "0.6597123", "0.6536664", "0.64649814", "0.64347035", "0.64001244", "0.6354875", "0.6323783", "0.63186157", "0.63186157", "0.62939864", "0.6277574", "0.62686896", "0.62205803", "0.62152785", "0.61963105", "0.61951774", "0.61939543", "0.61873794", "0.61863023", "0.6161825", "0.61610025", "0.6158086", "0.6154494", "0.6145699", "0.61382324", "0.6136564", "0.6134639", "0.61319554", "0.61060077", "0.61030495", "0.60876507", "0.6082292", "0.60760224", "0.6073022", "0.60522634", "0.6043925", "0.60405487", "0.6028813", "0.6028454", "0.60251844", "0.6021691", "0.60204524", "0.6018078", "0.60056835", "0.6005661", "0.60018414", "0.5994581", "0.59917", "0.5979367", "0.596812", "0.5965843", "0.5959725", "0.59555423", "0.5953993", "0.59470975", "0.59337956", "0.59269", "0.59256387", "0.59256387", "0.59256387", "0.59228474", "0.5916522", "0.5910184", "0.59076494", "0.59060293", "0.59036267", "0.5899635", "0.5899247", "0.5896554", "0.5890747", "0.5889244", "0.5880908", "0.58785635", "0.58747095", "0.5867181", "0.58653754", "0.5859417", "0.58588123", "0.58575803", "0.58526635", "0.58429974", "0.584169", "0.5837574", "0.5837208", "0.5828929", "0.5821245", "0.582107", "0.58206266", "0.58166355", "0.58139086", "0.58123475", "0.5812329", "0.5812329", "0.58121556", "0.5810957", "0.58089787" ]
0.70031375
2
Set Processed. The document has been processed
public void setProcessed (boolean Processed);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProcessed(boolean Processed) {\n\t\tset_Value(\"Processed\", new Boolean(Processed));\n\t}", "public void setProcessed(boolean Processed) {\n\t\tset_Value(\"Processed\", new Boolean(Processed));\n\t}", "public void setProcessedOn(Timestamp processedOn) {\r\n\t\tthis.processedOn = processedOn;\r\n\t}", "public void setProcessed (boolean processed)\r\n {\r\n super.setProcessed (processed);\r\n if (get_ID() == 0)\r\n return;\r\n String set = \"SET Processed='\"\r\n + (processed ? \"Y\" : \"N\")\r\n + \"' WHERE C_Hes_ID=\" + getC_Hes_ID();\r\n int noLine = DB.executeUpdate(\"UPDATE C_HesLine \" + set, get_TrxName());\r\n \r\n \r\n log.fine(processed + \" - Lines=\" + noLine);\r\n }", "public void setProcessedOn (BigDecimal ProcessedOn);", "public void setIsCurrentlyProcessed(boolean isCurrentlyProcessed) {\n this.isCurrentlyProcessed = isCurrentlyProcessed;\n }", "public Timestamp getProcessedOn() {\r\n\t\treturn processedOn;\r\n\t}", "public void setWorkitemsProcessed(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(WORKITEMSPROCESSED_PROP.get(), value);\n }", "public void setWorkitemsProcessed(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(WORKITEMSPROCESSED_PROP.get(), value);\n }", "public boolean isProcessed() {\n\t\tObject oo = get_Value(\"Processed\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}", "public boolean isProcessed() {\n\t\tObject oo = get_Value(\"Processed\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}", "public boolean isProcessed();", "public boolean isProcessed();", "public boolean isProcessed();", "public boolean isProcessed();", "public boolean isProcessed();", "public boolean isProcessed();", "public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}", "public void setDatumProcessed(Date datumProcessed) {\n this.datumProcessed = null;\n if (datumProcessed != null) {\n this.datumProcessed = (Date) datumProcessed.clone();\n }\n }", "public void setSsoAccessed(long ssoAccessed) {\r\n this.ssoAccessed = ssoAccessed;\r\n }", "public Date getProcessedDate() {\n return this.processedDate;\n }", "public void setProcessedItemCount(Long processedItemCount) {\n this.processedItemCount = processedItemCount;\n }", "public boolean isIsCurrentlyProcessed() {\n return isCurrentlyProcessed;\n }", "public void setProcessedId(String processedId) {\n\t\tthis.processedId = processedId;\n\t}", "public void setGlProcessed(boolean glProcessed) {\r\n this.glProcessed = glProcessed;\r\n }", "public void setProcessCompleted(String processCompleted)\r\n\t{\r\n\t\tthis.processCompleted = processCompleted;\r\n\t}", "private void eventProcessingStarted() {\n\t\tsynchronized(processingCounterMutex) {\n\t\t\tprocessingCounter++;\n\t\t}\n\t}", "public boolean isProcessing (){\n\t\treturn this._processing>0;\n\t}", "public void setProcessing (boolean processing, final String message){\n\t\tif (processing){\n\t\t\tthis._processing++;\n\t\t\tthis._processingMessages.push (message);\n\t\t} else {\n\t\t\tthis._processing--;\n\t\t\tthis._processingMessages.pop ();\n\t\t\tif (this._processing==0){\n\t\t\t\tif (Application.getOptions ().beepOnEvents ()){\n\t\t\t\t\tjava.awt.Toolkit.getDefaultToolkit().beep();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tsynchronized (this){\n\t\t\tthis.setChanged ();\n\t\t\tthis.notifyObservers (ObserverCodes.PROCESSINGCHANGE);\n\t\t}\n\t}", "public synchronized void setProcessingActivity(ProcessingActivity processingActivity){\n\t\tthis.processingActivity=processingActivity;\n\t}", "public String getProcessedId() {\n\t\treturn processedId;\n\t}", "public void setComplete(boolean param){\n \n // setting primitive attribute tracker to true\n localCompleteTracker =\n true;\n \n this.localComplete=param;\n \n\n }", "@Override\r\n\tpublic void doProcessing() throws InterruptedException {\r\n\t\tMelody.getContext().handleProcessorStateUpdates();\r\n\r\n\t\tsynchronized (getTargetElement().getOwnerDocument()) {\r\n\t\t\tgetTargetElement().setAttribute(\r\n\t\t\t\t\tgetTargetAttributeName().getValue(), getNewValue());\r\n\t\t}\r\n\t}", "@Override\n\tpublic void processing() {\n\n\t}", "public void setComplete(boolean isComplete) { \n this.isComplete = isComplete; \n }", "@Override\n\tpublic void startProcessing() {\n\n\t}", "public void setProcessedSizeBytes(Long processedSizeBytes) {\n this.processedSizeBytes = processedSizeBytes;\n }", "public static void updateStatusProcessed(ComputationContext context, String commandId, long processed,\n Map<String, Serializable> result) {\n BulkStatus delta = BulkStatus.deltaOf(commandId);\n delta.setProcessed(processed);\n if (result != null) {\n delta.setResult(result);\n }\n context.produceRecord(OUTPUT_1, commandId, BulkCodecs.getStatusCodec().encode(delta));\n }", "public void startProcess() {\r\n\t\tprocess = true;\r\n\t}", "public void markAsProcessed(final Object id) {\r\n _processed.add(id);\r\n }", "public void setProcessing (boolean processing){\n\t\tthis.setProcessing (processing, ResourceSupplier.getString (ResourceClass.UI, \"controls\", \"processing\"));\n\t}", "@Override\n\t\tpublic void processPropertyDocument(PropertyDocument propertyDocument) {\n\t\t}", "public void setStarted(boolean started){\n \tthis.started = started;\n }", "public void setCompleted() {\n this.completed = true;\n }", "public void setPrimHasRun(Boolean bool){\n primHasRun = bool;\n }", "protected void setProcess(Process rNewProcess)\n\t{\n\t\trProcess = rNewProcess;\n\t\tfragmentParam().annotate(PROCESS, rProcess);\n\t}", "public void set_completed();", "public void setCompleted(){\r\n\t\tisCompleted = true;\r\n\t}", "protected void setLoadedForThisRequest() {\r\n\t\tContextUtils.setRequestAttribute(getRequestLoadedMarker(), Boolean.TRUE);\r\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public static void updateStatusProcessed(ComputationContext context, String commandId, long processed) {\n updateStatusProcessed(context, commandId, processed, null);\n }", "public boolean process() /// Returns true if it has finished processing\r\n {\r\n return true;\r\n }", "public void setCompleted(boolean flag) {\r\n completed = flag;\r\n }", "@Override\n public int getCurrentRecordsProcessed() {\n return 0;\n }", "public void setWorkitemsProcessedAfterCdc(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(WORKITEMSPROCESSEDAFTERCDC_PROP.get(), value);\n }", "public final void setProcessed(final int x, final int y) {\r\n maskDone[x][y] = true;\r\n }", "public BigDecimal getProcessedOn();", "public void setDocument(Document value) {\n document = value;\n }", "public Long getProcessedItemCount() {\n return this.processedItemCount;\n }", "public void setComplete(Boolean complete){\n this.complete = complete;\n }", "public void setComplete(boolean complete) {\n }", "protected long requestProcessingStarted() {\n\t\trequestsInProcessing++;\n\t\treturn System.currentTimeMillis();\n\t}", "public void onStartPage(PdfWriter writer, Document document){}", "public void markRunStart(){\r\n runStart = stepCount;\r\n }", "public void setWorkitemsProcessedAfterCdc(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(WORKITEMSPROCESSEDAFTERCDC_PROP.get(), value);\n }", "protected void setMarked() {\n\t\tPDDocumentCatalog catalog = doc.getDocumentCatalog();\n\t\tif (catalog.getMarkInfo() == null) {\n\t\t\tcatalog.setMarkInfo(new PDMarkInfo(doc.getPages().getCOSObject()));\n\t\t}\n\t\tcatalog.getMarkInfo().setMarked(true);\n\t}", "public void setAnnounced(Boolean newValue);", "public void process() {\n\t}", "public OffsetDateTime processingStartTime() {\n return this.processingStartTime;\n }", "public void postProcessing() {\n //empty\n }", "public void setStarted(boolean started){\n\t\tthis.started = started;\n\t}", "public void setDocument(boolean document) {\n\n this.document = document;\n }", "@Override\n public void setProcessProgress(String processName, int progressValue) {\n String sqlStatement = \"select system.process_progress_set(#{process_name}, #{progress_value}) as vl\";\n Map params = new HashMap();\n params.put(CommonSqlProvider.PARAM_QUERY, sqlStatement);\n params.put(PROCESS_NAME, processName);\n params.put(\"progress_value\", progressValue);\n getRepository().getScalar(Void.class, params);\n }", "public Builder setAlwaysProcess(boolean value) {\n \n alwaysProcess_ = value;\n onChanged();\n return this;\n }", "public void set()\r\n {\r\n isSet = true;\r\n }", "@Override\n public boolean isDocumentState() {\n return true;\n }", "public void processDocument() {\n\n\t\t// compact concepts\n\t\tprocessConcepts(concepts);\n\t}", "void setStarted(boolean started) {\n hasStarted = started;\n }", "protected void setLoaded(boolean loaded) {\n\tthis.loaded = loaded;\n }", "public void setProcessCompletedIn(String processCompletedIn)\r\n\t{\r\n\t\tthis.processCompletedIn = processCompletedIn;\r\n\t}", "public synchronized void setComplete() {\n status = Status.COMPLETE;\n }", "public void enableCasProcessor(String aCasProcessorName) {\n for (int i = 0; i < annotatorList.size(); i++) {\n ProcessingContainer pc = ((ProcessingContainer) annotatorList.get(i));\n if (pc.getName().equals(aCasProcessorName)) {\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_enabled_cp__FINEST\",\n new Object[] { Thread.currentThread().getName(), aCasProcessorName });\n }\n pc.setStatus(Constants.CAS_PROCESSOR_RUNNING);\n }\n }\n }", "protected synchronized void setChanged() {\n changed = true;\n }", "public void setCompleted (boolean isCompleted) {\n this.isCompleted = isCompleted;\n }", "public void setModified(boolean state) {\n //System.out.println(\"setting modified to \" + state);\n //new Exception().printStackTrace();\n current.setModified(state);\n calcModified();\n }", "public void setComplete(boolean complete) {\n\t\t\n\t}", "public boolean isProcessed() \n{\nObject oo = get_Value(\"Processed\");\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}", "@Override\n\t\t\tpublic void onProcess(int process) {\n\t\t\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "public void setStarted(Boolean started) {\n\t\tthis.started = started;\n\t}", "public boolean getAlwaysProcess() {\n return alwaysProcess_;\n }", "@Override\n\tpublic void collectionProcessComplete(ProcessTrace aTrace)\n\t\t\tthrows ResourceProcessException, IOException {\n\t\tSystem.out.println(\"Average precision \" + totalScore / documentCount);\n\t}", "public void setStart(){\n\t\tthis.isStart=true;\n\t}", "public void setRunning(boolean run) {\n _run = run;\r\n }", "public void setRead(){\n \tthis.isRead = true;\n }" ]
[ "0.83072233", "0.83072233", "0.713053", "0.71072155", "0.6981779", "0.6820398", "0.63420844", "0.6289716", "0.62572694", "0.6222687", "0.6222687", "0.6185049", "0.6185049", "0.6185049", "0.6185049", "0.6185049", "0.6185049", "0.61805356", "0.61779016", "0.61538106", "0.60931486", "0.6080044", "0.6038816", "0.5768926", "0.5742071", "0.56091195", "0.55952245", "0.5552215", "0.551044", "0.549162", "0.54564553", "0.54482746", "0.5413607", "0.540341", "0.540053", "0.53935516", "0.5378443", "0.5360136", "0.5359343", "0.53561544", "0.5349409", "0.5337018", "0.532963", "0.53204495", "0.5298277", "0.5296777", "0.52814776", "0.52810407", "0.5276202", "0.5255255", "0.52268285", "0.52114004", "0.5200612", "0.51885957", "0.5170383", "0.51666504", "0.515377", "0.5141266", "0.514112", "0.5141014", "0.51344395", "0.51244", "0.51162297", "0.51129746", "0.511128", "0.51073337", "0.51028633", "0.50811964", "0.5079875", "0.50764394", "0.50747365", "0.5074255", "0.5061379", "0.5052236", "0.5039254", "0.50226855", "0.5008885", "0.49759609", "0.49697024", "0.49652895", "0.49579403", "0.49355614", "0.493335", "0.49312726", "0.49241367", "0.49186987", "0.4918344", "0.49153453", "0.49111184", "0.49005008", "0.48955223", "0.48910558", "0.48849654", "0.48839396", "0.48816767" ]
0.84419876
5
Get Processed. The document has been processed
public boolean isProcessed();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Timestamp getProcessedOn() {\r\n\t\treturn processedOn;\r\n\t}", "public boolean isIsCurrentlyProcessed() {\n return isCurrentlyProcessed;\n }", "public boolean isProcessed() {\n\t\tObject oo = get_Value(\"Processed\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}", "public boolean isProcessed() {\n\t\tObject oo = get_Value(\"Processed\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}", "public Date getProcessedDate() {\n return this.processedDate;\n }", "public void setProcessed (boolean Processed);", "public void setProcessed (boolean Processed);", "public void setProcessed (boolean Processed);", "public void setProcessed (boolean Processed);", "public void setProcessed (boolean Processed);", "public void setProcessed (boolean Processed);", "public void setProcessed(boolean Processed) {\n\t\tset_Value(\"Processed\", new Boolean(Processed));\n\t}", "public void setProcessed(boolean Processed) {\n\t\tset_Value(\"Processed\", new Boolean(Processed));\n\t}", "public boolean isProcessing (){\n\t\treturn this._processing>0;\n\t}", "public Long getProcessedItemCount() {\n return this.processedItemCount;\n }", "public String getProcessedId() {\n\t\treturn processedId;\n\t}", "public BigDecimal getProcessedOn();", "public OffsetDateTime processingStartTime() {\n return this.processingStartTime;\n }", "public String getProcessCompleted()\r\n\t{\r\n\t\treturn processCompleted;\r\n\t}", "public final interfaceshared.proxies.ProcessingStatus getProcessingStatus()\r\n\t{\r\n\t\treturn getProcessingStatus(getContext());\r\n\t}", "public String getLastProcessedDocId() {\n return producer.getLastDocId();\n }", "public boolean process() /// Returns true if it has finished processing\r\n {\r\n return true;\r\n }", "public long getSsoAccessed() {\r\n return ssoAccessed;\r\n }", "public int resultsProcessed() {\n return resultCount;\n }", "protected long requestProcessingStarted() {\n\t\trequestsInProcessing++;\n\t\treturn System.currentTimeMillis();\n\t}", "public long getStarted () {\n\treturn started;\n }", "public void setIsCurrentlyProcessed(boolean isCurrentlyProcessed) {\n this.isCurrentlyProcessed = isCurrentlyProcessed;\n }", "public String getDocStatus();", "public String getDocStatus();", "public String getDocStatus();", "@Override\n\tpublic IBasicObject getAccessedObject() {\n\t\treturn heldObj.getAccessedObject();\n\t}", "public boolean isProcessed() \n{\nObject oo = get_Value(\"Processed\");\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}", "public int getThroughPut() {\n\t\treturn completed;\n\t}", "public String getProcessCompletedIn()\r\n\t{\r\n\t\treturn processCompletedIn;\r\n\t}", "public Boolean getStarted() {\n\t\treturn this.started;\n\t}", "public synchronized ProcessingActivity getPorcessingActivity(){\n\t\treturn processingActivity;\n\t}", "public void setProcessedOn(Timestamp processedOn) {\r\n\t\tthis.processedOn = processedOn;\r\n\t}", "public int getDocumentCount() {\n return this.documentCount;\n }", "public int getLinesProcessed() {\n return linesProcessed;\n }", "public boolean getPrimHasRun(){\n return primHasRun;\n }", "public long getRunning() { return running; }", "public boolean isGlProcessed() {\r\n return this.glProcessed;\r\n }", "public boolean getIsComplete() {\n return isComplete_;\n }", "public boolean getIsComplete() {\n return isComplete_;\n }", "public long getCompleted() { return completed; }", "public boolean isComplete() { \n return isComplete; \n }", "@Override\n public int getCurrentRecordsProcessed() {\n return 0;\n }", "public boolean isInProgress()\r\n\t{\r\n\t\treturn this.inProgress;\r\n\t}", "public boolean isDocument() {\n\n return this.document;\n }", "public Date getProcessDt() {\n return _processDt;\n }", "public boolean processed(final Object id) {\r\n return _processed.contains(id);\r\n }", "public boolean isStillProcessing() {\r\n\tif(logger.isDebugEnabled())\r\n\t\tlogger.debug(\"BytesnotReadChangedCount is: \" + bytesReadNotChangedCount);\r\n\tif (bytesReadNotChangedCount > 3) {\r\n\t //Abort processing\r\n\t return false;\r\n\t} else {\r\n\t return true;\r\n\t}\r\n }", "public int getProcessedCount()\r\n {\r\n return myFeatureCount;\r\n }", "public ProcessingResult getResult() {\n return new ProcessingResultImpl(documentationMap, configFilesList);\n }", "public boolean getComplete(){\n return localComplete;\n }", "public Date getDatumProcessed() {\n if (datumProcessed != null) {\n return (Date) datumProcessed.clone();\n }\n return null;\n }", "public void setProcessedOn (BigDecimal ProcessedOn);", "com.google.firestore.v1beta1.Precondition getCurrentDocument();", "@Override\n\tpublic IBasicObject getAccessedAtIdx() {\n\t\treturn heldObj.getAccessedAtIdx();\n\t}", "public int getPagesCrawled() {\n return pagesCrawled;\n }", "public Object currentEvent() {\n\t\treturn processingState.currentEvent();\n\t}", "public long documentCount() {\n return this.documentCount;\n }", "public int getProcessedDataOffset() { return 0; }", "public boolean completed() {\n return completed;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsProcessed() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSPROCESSED_PROP.get());\n }", "public Long getProcessedSizeBytes() {\n return this.processedSizeBytes;\n }", "public Boolean getComplete(){\n return complete;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsProcessed() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSPROCESSED_PROP.get());\n }", "public long getProccesTime() {\n\t\tlong processTime = 0;\n\t\tfor (Client client : queue) {\n\t\t\tprocessTime += client.getProcessedTime();\n\t\t}\n\t\treturn processTime;\n\t}", "@Override\n public boolean isDocumentState() {\n return true;\n }", "public ProcessModelStatus getStatus() {\r\n return this.status;\r\n }", "public int completed() {\n return this.completed;\n }", "public boolean payloadRetrieved() {\n\t\treturn payloadRetrieved;\n\t}", "boolean getIsComplete();", "public Boolean shouldRead() {\n return this.isComplete();\n }", "public boolean isFileStartHit() {\n return pageRequest.getStart() == 0;\n }", "public boolean getAlwaysProcess() {\n return alwaysProcess_;\n }", "public boolean isPageComplete();", "public Integer getPROCESS_STATUS() {\n return PROCESS_STATUS;\n }", "public boolean getCompleteCPAOfConcurrency() {\r\n\t\treturn this.completeCPA;\r\n\t}", "public boolean wasConsumed() {\n return(_consumed);\n }", "public OffsetDateTime processingEndTime() {\n return this.processingEndTime;\n }", "public Document getDocument()\n\t{\n\t\treturn document;\n\t}", "public boolean hasStarted() {\n return mStarted;\n }", "private boolean readingHasStarted()\n {\n return readingHasStarted;\n }", "public Object getProductProcessingUpdateActionTaskRecord() {\n return productProcessingUpdateActionTaskRecord;\n }", "public boolean isOperationExecuted() {\n return currentItemState == ItemProcessingState.EXECUTED;\n }", "public boolean isCompleted() {\r\n return completed;\r\n }", "public Process getProcess() {\n return this.process;\n }", "public boolean isCompleted() {\r\n return completed;\r\n }", "public Boolean getHasRequestorSeen() {\n return hasRequestorSeen;\n }", "public Process getProcess(){\n\t\treturn p;\n\t}" ]
[ "0.71404666", "0.7016085", "0.6979523", "0.6979523", "0.6893233", "0.6803499", "0.6803499", "0.6803499", "0.6803499", "0.6803499", "0.6803499", "0.6274827", "0.6274827", "0.6245586", "0.61697876", "0.61411405", "0.6083683", "0.6053833", "0.60361713", "0.59572", "0.59029067", "0.5885977", "0.5812948", "0.5812565", "0.5810262", "0.5802317", "0.5793687", "0.5780129", "0.5780129", "0.5780129", "0.5768546", "0.5750033", "0.574048", "0.5739992", "0.5687642", "0.56823313", "0.56622213", "0.5628024", "0.5627627", "0.5625404", "0.56037533", "0.55991006", "0.55955863", "0.5589807", "0.55894667", "0.5567465", "0.5558087", "0.5555432", "0.5529853", "0.5526771", "0.55252725", "0.551915", "0.55186105", "0.5505035", "0.55038404", "0.5498611", "0.5493504", "0.54905486", "0.5489496", "0.5488006", "0.5487213", "0.5484148", "0.54831684", "0.5465013", "0.5463071", "0.5463071", "0.5463071", "0.54594356", "0.545905", "0.5452207", "0.5448878", "0.54396236", "0.5432996", "0.5428601", "0.5417333", "0.5413172", "0.5403266", "0.5396706", "0.5390811", "0.5382353", "0.5376486", "0.53733194", "0.53574365", "0.53472805", "0.53428495", "0.53389883", "0.53344727", "0.5324715", "0.5321544", "0.5318693", "0.53162855", "0.5314076", "0.5312792", "0.5311967", "0.5311911" ]
0.71065754
6
Set Sequence. Method of ordering records; lowest number comes first
public void setSeqNo (int SeqNo);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSequenceNumber(int sequenceNumber);", "public void setSequence(Integer sequence) {\n this.sequence = sequence;\n }", "public void setSeq(Integer seq) {\n this.seq = seq;\n }", "public void setSeq(Integer seq) {\n this.seq = seq;\n }", "public void setSeq(Integer seq) {\n this.seq = seq;\n }", "@Override\n\tpublic int sequence() {\n\t\treturn 0;\n\t}", "void setSeq(long seq) {\n this.seq = seq;\n }", "protected void incrementSeqNum() {\n intToNetworkByteOrder(mySeqNum++, sequenceNum, 0, 4);\n }", "public int getSequence() {\n return sequence;\n }", "public void setSequence(Integer sequence)\n {\n if (sequence == null)\n sequence = 0;\n \n if (sequence < 0)\n throw new IllegalArgumentException(\"sortrank must be >= 0\");\n \n this.sequence = sequence;\n }", "public void setSequenceNumber(int sequence) {\n\t\tfSequenceNumber= sequence;\n\t}", "public void setSequenceNo(long n) {\n\tsequenceNo = n;\n }", "int getSeq();", "int getSeq();", "int getSeq();", "int getSequenceNumber();", "public Integer getSequence()\n {\n return sequence;\n }", "public int getSequenceNumber();", "public Integer getSequence() {\n return sequence;\n }", "long getSequenceNumber();", "public int getSeq() {\n return -1;\n }", "public long getSequenceNumber();", "public Builder setSeq(int value) {\n\n seq_ = value;\n onChanged();\n return this;\n }", "public Builder setSeq(int value) {\n\n seq_ = value;\n onChanged();\n return this;\n }", "public int getSeqNo();", "public int getSeqNo();", "@IcalProperty(pindex = PropertyInfoIndex.SEQUENCE,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setSequence(final int val) {\n sequence = val;\n }", "public int getSeq() {\n return seq_;\n }", "public int getSeq() {\n return seq_;\n }", "public INT getSequenceNumber() { return _sequenceNumber; }", "public int getSeq() {\n return seq_;\n }", "public int getSeq() {\n return seq_;\n }", "public void setSequenceNumber(long value) {\n this.sequenceNumber = value;\n }", "public Integer getSeq() {\n return seq;\n }", "public Integer getSeq() {\n return seq;\n }", "public Integer getSeq() {\n return seq;\n }", "void resetSequential() {\n seq = nextLong(PRAND, maxSeq);\n inc = minInc + nextLong(PRAND, maxInc - minInc);\n }", "public long getSequence() {\n\t\tif (order != null){\n\t\t\treturn order.getSequence();\n\t\t}\n\t\treturn sequence;\n\t}", "public int getSequenceNumber(){\n return sequenceNumber;\n }", "long getNextSequenceNumber();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "public final void setSequence(java.lang.Integer sequence)\r\n\t{\r\n\t\tsetSequence(getContext(), sequence);\r\n\t}", "public void incrementOrder() {\n mOrder++;\n }", "public int getSequenceNumber() {\r\n return sequenceNumber;\r\n }", "public void setSequenceNo(Number value) {\n setAttributeInternal(SEQUENCENO, value);\n }", "public int getSequenceNumber() {\n return sequenceNumber;\n }", "public void getInteger(int seqid);", "static synchronized long getNextSeqNumber() {\n return seqNumber++;\n }", "Sequence createSequence();", "public long sequenceNumber() {\n return sequenceNumber;\n }", "@Override\n\tpublic String getNextOrderNumber() {\n\t\t// TODO Auto-generated method stub\n\t\treturn \"ORD\"+sequenceNumberDao.findNextSequenceType(ESequenceType.ORDER);\n\t}", "protected void resetSequence() {\n doQuery(\"ALTER SEQUENCE feedentryqueue_id_seq RESTART\");\n }", "public int getSequenceNumber() {\r\n\t\treturn sequenceNumber;\r\n\t}", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "void requestSequenceNumber() {\r\n\t\t// 부모가 가지고있는 메시지의 순서번호(시작 ~ 끝)를 요청 \r\n\t}", "public int getSequenceNumber() {\n return this.sequenceNumber;\n }", "protected int getSeqIndex()\n {\n return seqIndex;\n }", "long getSeq() {\n return seq;\n }", "public long getSequenceNum() {\n return sequenceNum;\n }", "public int getSequenceNum() {\n\t\treturn sequenceNumber;\n\t}", "private Integer getSequence() {\r\n\t\t\tInteger seq;\r\n\t\t\tString sql = \"select MAX(vendorid)from vendorTable\";\r\n\t\t\tseq = template.queryForObject(sql, new Object[] {}, Integer.class);\r\n\t\t\treturn seq;\r\n\t\t}", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}", "public void set_seqnum(byte value) {\n setSIntElement(offsetBits_seqnum(), 8, value);\n }", "@Override\r\n\t\tpublic String seq(ColumnRecord record) {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic String seq(ColumnRecord record) {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic String seq(ColumnRecord record) {\n\t\t\treturn null;\r\n\t\t}", "public long getSequenceNumber() {\n return sequenceNumber;\n }", "private String generateOrderNumber() {\n return OBJ_PREFIX + ID_GENERATOR.getAndIncrement();\n }", "public void doneOrder(){\n setId(++count);\n }", "public interface Sequence {\n\n public String getValue();\n\n public void setCounter(long counter);\n\n public String getName();\n\n public int getStartsWith();\n\n public int getIncrementBy();\n\n}", "public String getSequence()\r\n\t{\r\n\t\treturn sequence;\r\n\t}", "public long getSequenceNumber() {\n return sequenceNumber_;\n }", "@Override\r\n\tpublic int getSeq() {\n\t\treturn pdsdao.getSeq();\r\n\t}", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public int getSequenceNumber() {\n\t\treturn fSequenceNumber;\n\t}", "public long getSequenceNo() {\n\treturn sequenceNo;\n }", "public Sequence(int id) {\n this.id = id;\n }", "public void setOrder(int value) {\n this.order = value;\n }", "@Field(3) \n\tpublic int SequenceNo() {\n\t\treturn this.io.getIntField(this, 3);\n\t}", "public long getSeqNo() {\n return seqNo;\n }", "long getSequenceNum() {\n return sequenceNum;\n }", "public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n onChanged();\n return this;\n }", "public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n onChanged();\n return this;\n }", "public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n onChanged();\n return this;\n }", "public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n onChanged();\n return this;\n }", "Order(int t, int l) {\n this.t = t;\n this.l = l;\n }", "public Builder setSequenceNumber(long value) {\n bitField0_ |= 0x00000001;\n sequenceNumber_ = value;\n onChanged();\n return this;\n }" ]
[ "0.6710976", "0.66966736", "0.6615673", "0.6615673", "0.6615673", "0.6591722", "0.6531094", "0.6511471", "0.6474808", "0.640805", "0.6398829", "0.6361063", "0.6349471", "0.6349471", "0.6349471", "0.63381886", "0.63341063", "0.6284456", "0.6226004", "0.62253916", "0.621751", "0.6193195", "0.61742026", "0.61742026", "0.6173804", "0.6173804", "0.6145265", "0.61420214", "0.61420214", "0.61359143", "0.6133853", "0.6133853", "0.6126483", "0.6105649", "0.6105649", "0.6105649", "0.6101003", "0.6079815", "0.6076446", "0.606867", "0.60527045", "0.60527045", "0.60527045", "0.60527045", "0.60527045", "0.60527045", "0.60527045", "0.6008559", "0.5996323", "0.59933", "0.5902471", "0.58976257", "0.58919257", "0.5888632", "0.58848876", "0.58759046", "0.5872398", "0.58411986", "0.5829395", "0.58187294", "0.5812692", "0.578981", "0.5779946", "0.57783145", "0.57769245", "0.57716423", "0.57612485", "0.5752362", "0.5746822", "0.5745248", "0.5745248", "0.5745248", "0.57425094", "0.57349676", "0.57335454", "0.5717528", "0.5710479", "0.5707741", "0.5703757", "0.56992036", "0.56992036", "0.56992036", "0.56992036", "0.56992036", "0.56992036", "0.56992036", "0.56988555", "0.5690781", "0.5686655", "0.56774", "0.56686777", "0.5666639", "0.5666602", "0.56664324", "0.56664324", "0.56664324", "0.56664324", "0.56621647", "0.5658415" ]
0.6261833
18
Get Sequence. Method of ordering records; lowest number comes first
public int getSeqNo();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getSequenceNumber();", "public int getSequenceNumber();", "public long getSequenceNumber();", "long getSequenceNumber();", "int getSeq();", "int getSeq();", "int getSeq();", "public long getSequence() {\n\t\tif (order != null){\n\t\t\treturn order.getSequence();\n\t\t}\n\t\treturn sequence;\n\t}", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "public int getSequence() {\n return sequence;\n }", "private Integer getSequence() {\r\n\t\t\tInteger seq;\r\n\t\t\tString sql = \"select MAX(vendorid)from vendorTable\";\r\n\t\t\tseq = template.queryForObject(sql, new Object[] {}, Integer.class);\r\n\t\t\treturn seq;\r\n\t\t}", "public int getSeq() {\n return -1;\n }", "long getNextSequenceNumber();", "public Integer getSequence()\n {\n return sequence;\n }", "public int getSeq() {\n return seq_;\n }", "public int getSeq() {\n return seq_;\n }", "public Integer getSequence() {\n return sequence;\n }", "public int getSeq() {\n return seq_;\n }", "public int getSeq() {\n return seq_;\n }", "static synchronized long getNextSeqNumber() {\n return seqNumber++;\n }", "public Integer getSeq() {\n return seq;\n }", "public Integer getSeq() {\n return seq;\n }", "public Integer getSeq() {\n return seq;\n }", "public INT getSequenceNumber() { return _sequenceNumber; }", "@Override\n\tpublic int sequence() {\n\t\treturn 0;\n\t}", "public long sequenceNumber() {\n return sequenceNumber;\n }", "@Override\n\tpublic String getNextOrderNumber() {\n\t\t// TODO Auto-generated method stub\n\t\treturn \"ORD\"+sequenceNumberDao.findNextSequenceType(ESequenceType.ORDER);\n\t}", "public int getSequenceNumber(){\n return sequenceNumber;\n }", "Long getNextSequence(String seqName);", "public int getSequenceNumber() {\r\n return sequenceNumber;\r\n }", "@Field(3) \n\tpublic int SequenceNo() {\n\t\treturn this.io.getIntField(this, 3);\n\t}", "long getOriginseqnum();", "public int getSequenceNumber() {\n return sequenceNumber;\n }", "public int getCurSeq() {\n\t\t\n\t\tint seq_read_book = readBookDao.getCurSeq();\n\t\treturn seq_read_book;\n\t}", "long getSeq() {\n return seq;\n }", "private long getNextSequenceNumber() {\n return System.nanoTime();\n }", "@Override\n \tpublic long getLatestSequenceNumber() {\n \t\tsharedLock.lock();\n \t\ttry {\n \t\t\treturn sequenceNumber;\n \t\t} finally {\n \t\t\tsharedLock.unlock();\n \t\t}\n \t}", "public int getSequenceNumber() {\n return this.sequenceNumber;\n }", "public long getSequenceNum() {\n return sequenceNum;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSequenceNumber() {\n return sequenceNumber;\n }", "public int getSequenceNumber() {\n\t\treturn fSequenceNumber;\n\t}", "@Override\r\n\tpublic int getSeq() {\n\t\treturn pdsdao.getSeq();\r\n\t}", "private String sequenceNumberGenerator() {\n\t\tint sequenceId = 0;\n\t\tRid entity = null;\n\t\ttry {\n\t\t\tentity = ridRepository.findLastRid();\n\t\t} catch (DataAccessException | DataAccessLayerException e) {\n\t\t\tthrow new RidException(RidGeneratorExceptionConstant.RID_FETCH_EXCEPTION.getErrorCode(),\n\t\t\t\t\tRidGeneratorExceptionConstant.RID_FETCH_EXCEPTION.errorMessage, e);\n\t\t}\n\t\ttry {\n\t\t\tif (entity == null) {\n\t\t\t\tentity = new Rid();\n\t\t\t\tsequenceId = sequenceInitialValue;\n\t\t\t\tentity.setCurrentSequenceNo(sequenceInitialValue);\n\t\t\t\tridRepository.save(entity);\n\t\t\t} else {\n\t\t\t\tif (entity.getCurrentSequenceNo() == sequenceEndvalue) {\n\t\t\t\t\tsequenceId = sequenceInitialValue;\n\t\t\t\t\tridRepository.updateRid(sequenceInitialValue, entity.getCurrentSequenceNo());\n\t\t\t\t} else {\n\t\t\t\t\tsequenceId = entity.getCurrentSequenceNo() + 1;\n\t\t\t\t\tridRepository.updateRid(sequenceId, entity.getCurrentSequenceNo());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (DataAccessException | DataAccessLayerException e) {\n\t\t\tthrow new RidException(RidGeneratorExceptionConstant.RID_UPDATE_EXCEPTION.getErrorCode(),\n\t\t\t\t\tRidGeneratorExceptionConstant.RID_UPDATE_EXCEPTION.errorMessage, e);\n\t\t}\n\t\treturn String.format(sequenceFormat, sequenceId);\n\t}", "private long getSeqNum() throws Exception {\n\t\tSystem.out.println(\"seq: \" + seq);\n\t\tif (seq == 256) {\n\t\t\tseq = 0;\n\t\t}\n\t\treturn seq++;\n\t}", "public long getSequenceNumber() {\n return sequenceNumber_;\n }", "public long getSeqNo() {\n return seqNo;\n }", "public int getSequenceNumber() {\r\n\t\treturn sequenceNumber;\r\n\t}", "public long getSequenceNo() {\n\treturn sequenceNo;\n }", "public Integer getOrder();", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public long getSeqnum() {\n return seqnum_;\n }", "public int getSequenceNum() {\n\t\treturn sequenceNumber;\n\t}", "private String generateOrderNumber() {\n return OBJ_PREFIX + ID_GENERATOR.getAndIncrement();\n }", "private static Integer getSeq()throws SQLException{\r\n String selectSql = \"SELECT max(idArt) from Artigo\";\r\n Statement statement = dbConnection.createStatement();\r\n ResultSet rs = statement.executeQuery(selectSql);\r\n int seqIdPe = -1;\r\n if(rs.next()){\r\n seqIdPe = rs.getInt(1);\r\n }\r\n return seqIdPe + 1; \r\n }", "@Override\r\n\t\tpublic String seq(ColumnRecord record) {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic String seq(ColumnRecord record) {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic String seq(ColumnRecord record) {\n\t\t\treturn null;\r\n\t\t}", "long getSequenceNum() {\n return sequenceNum;\n }", "protected int getSeqIndex()\n {\n return seqIndex;\n }", "public int getSequenceNumber() {\n return mSequenceGenerator.incrementAndGet();\n }", "public String getMinSeqNo() throws Exception {\n return \"-1\";\n }", "public String getSequence()\r\n\t{\r\n\t\treturn sequence;\r\n\t}", "public void getInteger(int seqid);", "public long getSequenceNumber() {\n return sequenceNumber_;\n }", "public java.lang.Integer getSeqNo () {\n\t\treturn seqNo;\n\t}", "public String getSequence()\n\t{\n\t\treturn this.sequence;\n\t}", "public static int offset_seqnum() {\n return (264 / 8);\n }", "public int getPosition()\n {\n return m_sequence;\n }", "public int getOrder();", "@Override\n public Long nextSequenceValue() {\n return (Long)getHibernateTemplate().execute(\n new HibernateCallback() {\n @Override\n public Object doInHibernate(Session session) throws HibernateException {\n //return (Long) session.createSQLQuery(\"select SGSWEB.SEQ_CUESTIONARIO.NEXTVAL as id from dual\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }\n });\n }", "public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }", "public byte get_seqnum() {\n return (byte)getSIntElement(offsetBits_seqnum(), 8);\n }", "public int getNextUnSafeSequence(){ return value++;}", "public String getSequence() {\r\n return sequence;\r\n }", "public int getCSeqNumber() {\n return cSeqHeader.getSequenceNumber();\n }", "public String getSequence() \n\t{\n\t\treturn sequence;\n\t\t\n\t}", "protected void incrementSeqNum() {\n intToNetworkByteOrder(mySeqNum++, sequenceNum, 0, 4);\n }", "public Number getSequenceNo() {\n return (Number)getAttributeInternal(SEQUENCENO);\n }", "@Override\n\tpublic int getOrder() {\n\t\treturn Ordered.HIGHEST_PRECEDENCE + 10000;\n\t}", "public String getOrderSeqNo() {\n return orderSeqNo;\n }", "Sequence createSequence();" ]
[ "0.71942466", "0.7161861", "0.7124889", "0.7112802", "0.7058309", "0.7058309", "0.7058309", "0.7048254", "0.696162", "0.696162", "0.696162", "0.696162", "0.696162", "0.696162", "0.696162", "0.69477093", "0.6933509", "0.6888386", "0.6886415", "0.68315995", "0.67466134", "0.67466134", "0.66949594", "0.6692705", "0.6692705", "0.6655504", "0.6644475", "0.6644475", "0.6644475", "0.662922", "0.66028225", "0.65786433", "0.65497196", "0.6532178", "0.65251666", "0.6500893", "0.6462787", "0.6441204", "0.6427902", "0.64066947", "0.6405575", "0.6390516", "0.63596594", "0.6358073", "0.6337249", "0.63323677", "0.63323677", "0.63323677", "0.63323677", "0.63323677", "0.63323677", "0.63323677", "0.632436", "0.6323324", "0.63106126", "0.6307172", "0.63019556", "0.6300729", "0.62933683", "0.6290813", "0.6274148", "0.62638694", "0.6237443", "0.6237443", "0.6237443", "0.6237443", "0.6237443", "0.6237443", "0.6237443", "0.6236188", "0.6231586", "0.62162566", "0.6207928", "0.6207928", "0.6207928", "0.62055534", "0.62017053", "0.61880994", "0.6182923", "0.61792374", "0.61714876", "0.6166076", "0.61616075", "0.6152981", "0.61483014", "0.61466265", "0.6118294", "0.6115423", "0.6105123", "0.60855854", "0.60823494", "0.6079927", "0.6071026", "0.6066131", "0.60480577", "0.6042036", "0.60079706", "0.60043484", "0.5998554" ]
0.69702333
9
Get Updated. Date this record was updated
public Timestamp getUpdated();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getUpdatedDate();", "public Date getUpdated() {\r\n\t\treturn updated;\r\n\t}", "public Date getUpdated() {\r\n return updated;\r\n }", "public Date getUpdated() {\r\n return updated;\r\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdatedDate() {\n return (Date) getAttributeInternal(UPDATEDDATE);\n }", "public Date getUpdated() {\n return mUpdated;\n }", "public Date getUpdatedDt() {\n\t\treturn updatedDt;\n\t}", "public Date getDateUpdated() {\n\t\treturn parseDate(getProperty(DATE_UPDATED_PROPERTY));\n\t}", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public Date getDATE_UPDATED() {\r\n return DATE_UPDATED;\r\n }", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "public Date getUpdatedDate() {\n return updatedDate;\n }", "public Date getUpdatedOn();", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "Date getDateUpdated();", "public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }", "public java.util.Date getDateUpdated() {\n return dateUpdated;\n }", "public Date getUpdatedate() {\r\n return updatedate;\r\n }", "public Date getUpdateDatetime();", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public Date getUpdateDt() {\n return updateDt;\n }", "public Date getUpdateDt() {\n return updateDt;\n }", "public Timestamp getUpdateDate() {\n return updateDate;\n }", "public java.util.Calendar getUpdatedDate() {\n return updatedDate;\n }", "@Schema(description = \"The datetime on which the worklog was last updated.\")\n public OffsetDateTime getUpdated() {\n return updated;\n }", "@Basic( optional = false )\r\n\t@Column( name = \"updated_date\", nullable = false )\r\n\tpublic Date getUpdatedDate() {\r\n\t\treturn this.updatedDate;\r\n\t\t\r\n\t}", "public Date getUpdateDatetime() {\r\n\t\treturn updateDatetime;\r\n\t}", "public Date getUpdateTime() {\r\n\t\treturn this.updatedTime;\r\n\t}", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdateDate() {\n\t\treturn updateDate;\n\t}", "public Date getUpdateDate() {\n\t\treturn updateDate;\n\t}", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "public Date getUpdateDate() {\n return updateDate;\n }", "Date getForLastUpdate();", "public String getUpdateDate() {\r\n return updateDate;\r\n }", "public Date getUpdateDate() {\r\n return updateDate;\r\n }", "@ApiModelProperty(value = \"The date/time this resource was last updated in seconds since unix epoch\")\n public Long getUpdatedDate() {\n return updatedDate;\n }", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn this.updatedTimestamp;\n\t}", "public Date getUpdatedAt() {\r\n\t\treturn updatedAt;\r\n\t}", "public Date getUpdatedAt() {\n\t\treturn updatedAt;\n\t}", "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "@ApiModelProperty(required = true, value = \"last update timestamp in ISO-8601 format, see http://en.wikipedia.org/wiki/ISO_8601\")\n @JsonProperty(\"updated\")\n public Date getUpdated() {\n return updated;\n }", "public Date getUpdateTime()\n {\n return data.updateTime;\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdateDatime() {\r\n return updateDatime;\r\n }", "public Date getUpdateDatime() {\r\n return updateDatime;\r\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDt() {\n\t\treturn this.lastUpdateDt;\n\t}" ]
[ "0.8365463", "0.83072543", "0.82800215", "0.82800215", "0.82484853", "0.82484853", "0.8224716", "0.8224716", "0.8208377", "0.8197378", "0.8180749", "0.81659895", "0.81140625", "0.81140625", "0.8109007", "0.81011343", "0.80592734", "0.8055292", "0.8055292", "0.8055292", "0.7998323", "0.79942703", "0.79929584", "0.7988749", "0.79492736", "0.79199797", "0.7919811", "0.7919811", "0.7886495", "0.7878304", "0.7878304", "0.78715396", "0.7849478", "0.7843435", "0.7832346", "0.7832198", "0.78081894", "0.77999735", "0.77999735", "0.77999735", "0.7799757", "0.7799757", "0.77655166", "0.77655166", "0.77655166", "0.77655166", "0.77655166", "0.77655166", "0.77655166", "0.77655166", "0.77655166", "0.77655166", "0.7762515", "0.77622694", "0.77547085", "0.7718296", "0.76939696", "0.7691728", "0.7677491", "0.76759064", "0.7673241", "0.76695496", "0.7669065", "0.7667294", "0.7667294", "0.7667294", "0.7667294", "0.7667294", "0.7667294", "0.7667294", "0.7665194", "0.7665194", "0.7665194", "0.7663004", "0.7663004", "0.76358116", "0.76358116", "0.76358116", "0.76358116", "0.76358116", "0.76358116", "0.76358116", "0.762863", "0.762863", "0.762863", "0.7621965", "0.7621965", "0.75998634" ]
0.77443403
67
Get Updated By. User who updated this records
public int getUpdatedBy();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUpdatedBy() {\r\n return updatedBy;\r\n }", "public String updatedBy() {\n return this.updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public Long getUpdatedBy() {\n return updatedBy;\n }", "public String getUpdatedBy() {\r\n\t\treturn updatedBy;\r\n\t}", "public Long getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public String getUpdatedBy() {\n\t\treturn updatedBy;\n\t}", "public UserItem getUpdatedBy() {\n return updatedBy;\n }", "public User getModifiedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Modified_By\");\n\n\t}", "public String getUpdatedBy() {\n return (String) getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getUpdatedBy() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return lastUpdatedBy;\n }", "public String getUpdatedby() {\n return (String)getAttributeInternal(UPDATEDBY);\n }", "public Long getUpdateUser() {\n return updateUser;\n }", "public User getChangedBy() {\n\t\treturn null;\n\t}", "@Override\n\tpublic long getModifiedBy() {\n\t\treturn _candidate.getModifiedBy();\n\t}", "public String getUpdateBy() {\r\n return updateBy;\r\n }", "@ApiModelProperty(value = \"The user name of the person performing the action.\")\n public String getUpdatedBy() {\n return updatedBy;\n }", "public Long getModifiedBy() {\n return modifiedBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n return updateBy;\n }", "public String getUpdateBy() {\n\t\treturn updateBy;\n\t}", "public String getUpdateUser () {\r\n\t\treturn updateUser;\r\n\t}", "public String getUpdateUser() {\r\n\t\treturn updateUser;\r\n\t}", "public String getUpdateUser() {\r\n\t\treturn updateUser;\r\n\t}", "public Long getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public Long getUpdateBy() {\n return updateBy;\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getUpdateUserId() {\r\n return updateUserId;\r\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public String getUpdateUser() {\r\n return updateUser;\r\n }", "public String getUpdateUser() {\r\n return updateUser;\r\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public String getUpdateUser() {\n return updateUser;\n }", "public int getModifiedBy() {\n return modifiedBy;\n }", "public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}", "public String getModifiedBy(){\r\n\t\treturn modifiedBy;\r\n\t}", "public java.lang.String getModifiedBy() {\r\n return modifiedBy;\r\n }", "public Integer getUpdateUser() {\n return updateUser;\n }", "@Override\n\tpublic java.lang.String getModifiedBy() {\n\t\treturn _locMstLocation.getModifiedBy();\n\t}", "public Date getModifiedBy() {\n return modifiedBy;\n }", "@Schema(description = \"Details of the user who last updated the worklog.\")\n public AllOfWorklogUpdateAuthor getUpdateAuthor() {\n return updateAuthor;\n }", "public long getModifiedByUser();", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Integer getUpdateby() {\n return updateby;\n }", "public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\r\n return (Number) getAttributeInternal(LASTUPDATEDBY);\r\n }", "@AutoEscape\n\tpublic String getModifiedByUser();", "public String getUpdateUser() {\n return updateUser; \n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy() {\n return (Number) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastupdateby() {\n return lastupdateby;\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\n return lastModifiedBy;\n }", "public com.sforce.soap.enterprise.sobject.User getLastModifiedBy() {\r\n return lastModifiedBy;\r\n }", "public User getCreatedBy()\n\t{\n\t\treturn (User) this.getKeyValue(\"Created_By\");\n\n\t}", "U getUpdateby();", "public PersonAndOrganization getLastModifyingUser()\r\n\t{\r\n\t\treturn lastModifyingUser;\r\n\t}", "@ApiModelProperty(value = \"Id of the user who last modified the record.\")\n public Long getLastModifiedBy() {\n return lastModifiedBy;\n }", "public String getModifiedBy() {\n return (String) getAttributeInternal(MODIFIEDBY);\n }", "public String getModifiedBy() {\r\n return (String) getAttributeInternal(MODIFIEDBY);\r\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public String getLastUpdateUser() {\n return lastUpdateUser;\n }", "public java.lang.Integer getModifiedby() {\n\treturn modifiedby;\n}", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "public Integer getModifiedUser() {\n\t\treturn modifiedUser;\n\t}", "public Long getModifieduser() {\n return modifieduser;\n }", "public java.lang.String getLastChangedBy() {\n\t\treturn lastChangedBy;\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getUpdateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(UPDATEUSER_PROP.get());\n }", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }", "public String getCreateModifiedBy() {\n return createModifiedBy;\n }" ]
[ "0.8237952", "0.822408", "0.8213577", "0.8213577", "0.8213577", "0.8213577", "0.8186506", "0.8184692", "0.8161984", "0.8010233", "0.78921443", "0.7821007", "0.7794496", "0.7794496", "0.76113015", "0.74796665", "0.7372431", "0.7372368", "0.7312468", "0.73036265", "0.73006946", "0.72716635", "0.7265815", "0.7265815", "0.7265815", "0.72653633", "0.7244102", "0.72378355", "0.72378355", "0.72188085", "0.72188085", "0.72188085", "0.7187895", "0.7187895", "0.7184017", "0.7154207", "0.7154207", "0.7149147", "0.7149147", "0.7146703", "0.7146703", "0.7146703", "0.7146703", "0.7146703", "0.7146703", "0.71255094", "0.7090118", "0.7077855", "0.70154345", "0.7013018", "0.70085746", "0.69998574", "0.6985524", "0.6968923", "0.6965785", "0.6965785", "0.6965785", "0.6965785", "0.6965785", "0.6965785", "0.6965785", "0.69576645", "0.6941656", "0.6938188", "0.6933399", "0.6929698", "0.69273853", "0.69273853", "0.6889606", "0.68658596", "0.68603694", "0.68409234", "0.6820971", "0.67635834", "0.67591864", "0.67564", "0.67524", "0.67131525", "0.67131525", "0.6668939", "0.6658409", "0.66547227", "0.66538465", "0.6646323", "0.66057295", "0.6588107", "0.65838176", "0.65838176" ]
0.79154915
22
blinks currently selected menu item
private void changeFrame() { selected.setVisible(!selected.isVisible()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\tpublic void menuSelected(MenuItem selectedItem)\n\t\t\t{\n\n\t\t\t}", "public void menuClicked(MenuItem menuItemSelected);", "public void act() \n {\n if(Greenfoot.mouseClicked(this)){\n storeMenu.getLastPressed(this,item,cost);\n changeImage();\n } \n }", "@Override\r\n\tpublic void onMenuItemSelected(MenuItem item) {\n\r\n\t}", "public void click() {\n this.lastActive = System.nanoTime();\n }", "public void mousePressed(MouseEvent e) {\n JMenu menu = (JMenu)menuItem;\n if (!menu.isEnabled())\n return;\n MenuSelectionManager manager = \n MenuSelectionManager.defaultManager();\n if(menu.isTopLevelMenu()) {\n if(menu.isSelected()) {\n manager.clearSelectedPath();\n } else {\n Container cnt = menu.getParent();\n if(cnt != null && cnt instanceof JMenuBar) {\n MenuElement me[] = new MenuElement[2];\n me[0]=(MenuElement)cnt;\n me[1]=menu;\n manager.setSelectedPath(me); } } }\n MenuElement selectedPath[] = manager.getSelectedPath();\n if (selectedPath.length > 0 && \n selectedPath[selectedPath.length-1] != menu.getPopupMenu()) {\n if(menu.isTopLevelMenu() || \n menu.getDelay() == 0) {\n appendPath(selectedPath, menu.getPopupMenu());\n } else {\n setupPostTimer(menu); } } }", "void clickAmFromMenu();", "public void menu() {\n\t\tstate.menu();\n\t}", "@Override\n public void setCurrentItem(int item) {\n super.setCurrentItem(item, false);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n \tif (item.getItemId() == R.id.gotoNotes) {\r\n \t\tIntent i = new Intent(this, NotepadList.class);\r\n \t\ti.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\r\n\t\t\tstartActivity(i);\r\n\t\t\treturn true;\r\n \t}\r\n \tif (onMenuIndexSelected(item.getItemId())) return true;\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "void onMenuItemClicked();", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenu.setMouseClick(true);\n\t\t\t}", "void clickFmFromMenu();", "@Override\n public boolean onMenuItemClick(MenuItem item) {\n return true;\n }", "@Override\n public void menuSelected(MenuEvent e) {\n \n }", "public void returnToMenu()\n\t{\n\t\tchangePanels(menu);\n\t}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n if (menuItems.get(i).getMenuIndex() == 1){\n addBaby();\n }\n else {\n onBackPressed();\n }\n }", "public void update(){\n\t\tif(JudokaComponent.input.up) selectedItem --;\n\t\tif(JudokaComponent.input.down) selectedItem ++;\n\t\tif(selectedItem > items.length - 1) selectedItem = items.length - 1;\n\t\tif(selectedItem < 0) selectedItem = 0;\n\t\tif(JudokaComponent.input.enter){\n\t\t\tif(selectedItem == 0) JudokaComponent.changeMenu(JudokaComponent.CREATE_JUDOKA);\n\t\t\telse if(selectedItem == 1) JudokaComponent.changeMenu(JudokaComponent.SINGLEPLAYER);\n\t\t\telse if(selectedItem == 2) JudokaComponent.changeMenu(JudokaComponent.MULTIPLAYER);\n\t\t\telse if(selectedItem == 3) JudokaComponent.changeMenu(JudokaComponent.ABOUT);\n\t\t\telse if(selectedItem == 4) JudokaComponent.changeMenu(JudokaComponent.EXIT);\n\t\t}\n\t}", "default public void clickMenu() {\n\t\tremoteControlAction(RemoteControlKeyword.MENU);\n\t}", "@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}", "@Override\r\npublic void menuSelected(MenuEvent arg0) {\n\t\r\n}", "public void menuItemClicked( Menu2DEvent e );", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.okay:\n if(mFragment.index < 2){\n mFragment.getNewSentence();\n }else{\n if(current_state < 2){\n Intent intent = new Intent();\n intent.setClass(this, TestConditionOrder.TESTCASE.get(testcase % 6).get(current_state+1));\n intent.putExtra(\"testcase\", testcase);\n intent.putExtra(\"current_state\", current_state + 1);\n startActivity(intent);\n }else{\n Intent intent = new Intent();\n intent.setClass(this, EndActivity.class);\n startActivity(intent);\n }\n }\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic void menuSelected(MenuEvent e) {\n\n\t}", "default public void clickBack() {\n\t\tclickMenu();\n\t}", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint itemId = item.getItemId();\r\n\t\tif (itemId == android.R.id.home) {\r\n\t\t\tfinish();\r\n\t\t\toverridePendingTransition(R.anim.in_leftright, R.anim.out_leftright);\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n\tpublic BarberMenu advance() {\n\t\treturn barberNextMenu;\n\t}", "private static void returnMenu() {\n\t\t\r\n\t}", "public void menuClicked()\r\n {\r\n listening = true;\r\n\ta = b = null;\r\n\trepaint();\r\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tshowIndicator();\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\r\n\t}", "abstract public boolean cabOnMenuItemClicked(ActionMode mode, MenuItem item);", "public void act() \n {\n super.checkClick();\n active(isActive);\n }", "@Override\n public void itemClick(int pos) {\n }", "private void backToMenu() {\n game.setScreen(new StartScreen(game));\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "public void pressMainMenu() {\n }", "private void goToMenu() {\n\t\tgame.setScreen(new MainMenuScreen(game));\n\n\t}", "private void backToMenu()\n\t{\n\t\t//switch to menu screen\n\t\tgame.setScreen(new MenuScreen(game));\n\t}", "@Override\r\npublic void menuDeselected(MenuEvent arg0) {\n\t\r\n}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n Intent myIntent = new Intent(ItemPlayActivity.this, LibraryItemActivity.class);\n myIntent.putExtra(\"selectedItem\",mSelectedItem);\n setResult(RESULT_OK,myIntent);\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\n\t\tcase android.R.id.home:\n\t\t\tIntent intent = new Intent(MultiListActivity.this,\n\t\t\t\t\tedu.usc.Tutorial.Start.class);\n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP\n\t\t\t\t\t| Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\tintent.putExtra(\"dialog\", \"stop\");\n\t\t\tstartActivity(intent);\n\t\t\toverridePendingTransition(android.R.anim.fade_in,\n\t\t\t\t\tandroid.R.anim.fade_out);\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.action_settings :\n return true;\n\n case R.id.historic:\n vibe.vibrate(60); // 60 is time in ms\n Intent historicIntent = new Intent(MainActivity.this,HistoricActivity.class);\n historicIntent.setAction(BaseUtils.HISTORIC_INTENT);\n startActivityForResult(historicIntent, 1);\n\n break;\n case R.id.action_left:\n\n if(wV.canGoBack()){\n vibe.vibrate(60); // 60 is time in ms\n wV.goBack();\n }else{\n Toast.makeText(this,\"Nothing to load\",Toast.LENGTH_SHORT).show();\n }\n break;\n case R.id.action_right:\n if(wV.canGoForward()){\n vibe.vibrate(60); // 60 is time in ms\n wV.goForward();\n }else{\n Toast.makeText(this,\"Nothing to load\",Toast.LENGTH_SHORT).show();\n }\n break;\n case R.id.bookmarks:\n vibe.vibrate(60); // 60 is time in ms\n //Insert into bookmarks the active URL\n dao.insertBookmark(this,wV.getUrl());\n break;\n case R.id.seeBookmarks:\n Intent bookmarkIntent = new Intent(MainActivity.this,HistoricActivity.class);\n bookmarkIntent.setAction(BaseUtils.BOOKMARKS_INTENT);\n startActivityForResult(bookmarkIntent,1);\n break;\n\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t\treturn onMenuItemSelected(item.getItemId());\r\n\t}", "@Override\r\n\tpublic void clicked(ItemMenuIcon icon, Player p) {\n\t\t\r\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.badges) {\n\t\t\tgoToBadges(item.getActionView());\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n //select back button\n finish();\n Intent intent2 = new Intent(this, MainActivity.class);\n intent2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n this.startActivity(intent2);\n overridePendingTransition(0, 0); // 액티비티 전환 애니메이션 제거\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "void itemSelected(OutlineItem item);", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item){\n super.onOptionsItemSelected(item);\n return true;\n }", "@Override\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tOptionsMenu.selectItem(item,getApplicationContext());\n\t\treturn super.onMenuItemSelected(featureId, item);\n\t}", "public void raise()\n {\n dock_item.select();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n onBackPressed();\n overridePendingTransition(R.anim.slide_from_left, R.anim.slide_to_right);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n\n\n return true;\n }", "@Override\n public boolean onContextItemSelected(@NonNull MenuItem item) {\n switch (item.getItemId()) {\n case R.id.iteReset:\n sbrRed.setProgress(0);\n sbrGreen.setProgress(0);\n sbrBlue.setProgress(0);\n sbrAlpha.setProgress(0);\n break;\n\n case R.id.iteHelp :\n Intent intent = new Intent(this, HelpActivity.class);\n startActivity(intent);\n break;\n }\n\n return super.onContextItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == GOTO_FRONT)\n\t\t\tgotoFrontActivity();\n\t\telse\n\t\t\tsoundEffect = item.getItemId();\n\n\t\treturn true;\n\t}", "@Override\n public boolean onMenuItemClick(MenuItem item) {\n Block_Dialog();\n return false;\n }", "public void onSetNewCurrentItem() {\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item)\n\t{\n\t\tsuper.onOptionsItemSelected(item);\n\t\treturn visitor.handleMenuItemSelection(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tmMenuListView.setItemChecked(position, true);\n\t // setTitle(mMenuTitles[position]);\n mDrawerLayout.closeDrawer(mMenuListView);\n drawerlayout=0;\n selectItem(position);\n\t\t\t}", "public void itemStateChanged (ItemEvent event)\n {\n ((GroupItem)gbox.getSelectedItem()).activate();\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\treturn super.onContextItemSelected(item);\n\t}", "@Override\n public void backToMainMenu() {\n try {\n Thread.sleep((long)480000);\n }\n catch (InterruptedException var1_1) {\n var1_1.printStackTrace();\n }\n if (this.activityActive && !this.getClass().equals((Object)SampleActivity.class)) {\n AudioDemo.Sound().playSound(\"a9\");\n try {\n Thread.sleep((long)10000);\n }\n catch (InterruptedException var2_2) {\n var2_2.printStackTrace();\n }\n this.finishInputMoney(false);\n }\n }", "@Override\r\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\tswitch(item.getItemId()){\r\n\t\tcase android.R.id.home:\r\n\t\t\tfinish();\r\n\t\t}\r\n\t\treturn super.onMenuItemSelected(featureId, item);\r\n\t}", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\r\n\t\tcase 0:\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tInitRefresh();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\n\t\tswitch (item.getItemId()) {\n\t\t\n\t\tdefault:\n\t\t\t\n\t\t\tbreak;\n\n\t\t}//switch (item.getItemId())\n\n\t\t\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@TargetApi(Build.VERSION_CODES.HONEYCOMB)\n @Override\n public void jumpToCurrentState() {\n patternDrawable.jumpToCurrentState();\n super.jumpToCurrentState();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n\n\n return super.onOptionsItemSelected(item);\n }", "public void downPressed() {\n System.out.println(\"downPressed()\");\n current.translate(1, 0);\n display.showBlocks();\n }", "@Override\r\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\r\n // TODO Auto-generated method stub\r\n return false;\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.now_playing:\n startActivity(new Intent(libraryActivity.this, NowPlayingActivity.class));\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "private void updateMenuItems(){\n String awayState = mStructure.getAway();\n MenuItem menuAway = menu.findItem(R.id.menu_away);\n if (KEY_AUTO_AWAY.equals(awayState) || KEY_AWAY.equals(awayState)) {\n menuAway.setTitle(R.string.away_state_home);\n } else if (KEY_HOME.equals(awayState)) {\n menuAway.setTitle(R.string.away_state_away);\n }\n }", "@Override\n public void onClick(View v) {\n actionBar.setClickable(false);\n ((HomeActivity) mParent).setMealKey(mConversationKey);\n ((HomeActivity) mParent).selectDrawerItem(((HomeActivity) mParent).getNvDrawer().getMenu().findItem(R.id.nav_meal_detail), getString(R.string.update_meal));\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.reset_game:\n mBricksView.resetGame();\n mBricksView.level.resetLevel();\n return true;\n case R.id.stop_music:\n mBricksView.level.muteMusic();\n return true;\n case R.id.play_music:\n mBricksView.level.unMuteMusic();\n return true;\n case R.id.next_track:\n Log.v(null, \"Change Tracks Not Working!\");\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "public void menuItemHasChanged(Object sender, MenuItem item) {\n // Called every time any menu item changes\n }", "public void returnToMenu(){\n client.moveToState(ClientState.WELCOME_SCREEN);\n }", "public void actionPerformed(ActionEvent ae) {\n rb_selection = ae.getActionCommand(); \t \n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.item1:\n finish();\n break;\n }\n return true;\n }", "void onChamaItemClicked(int position);", "@Override\n public void actionPerformed(ActionEvent e) {\n setCurrentPanel(e.getActionCommand());\n menuContainer.repaint();\n }", "public void menu(){\n super.goToMenuScreen();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n\n update_status = \"false\";\n Intent intent = new Intent();\n intent.putExtra(\"status\",update_status);\n setResult(6, intent);\n finish();\n //finish();\n }\n\n return super.onOptionsItemSelected(item);\n }" ]
[ "0.6939553", "0.6939553", "0.6846282", "0.66211236", "0.6573528", "0.65574104", "0.6546474", "0.6530416", "0.6521828", "0.6484943", "0.6403344", "0.63788694", "0.63660246", "0.6364277", "0.6348449", "0.63306475", "0.6317675", "0.63111424", "0.62286943", "0.6186258", "0.6184506", "0.6177324", "0.6175758", "0.6171849", "0.61715764", "0.6143742", "0.61298263", "0.61074", "0.6075222", "0.6067864", "0.60665536", "0.6063386", "0.60543036", "0.6052749", "0.60405105", "0.60341597", "0.60341597", "0.6014701", "0.6011757", "0.60037655", "0.6000685", "0.59898216", "0.5988626", "0.59852165", "0.59807444", "0.59804296", "0.5973701", "0.59717786", "0.5964448", "0.5960217", "0.5960217", "0.5959649", "0.5935083", "0.5931247", "0.5928324", "0.592828", "0.592828", "0.592828", "0.592828", "0.5927932", "0.59261626", "0.59201074", "0.59133565", "0.59120333", "0.59118325", "0.59105176", "0.5906393", "0.5903278", "0.5897292", "0.5896764", "0.5894729", "0.5894076", "0.58939654", "0.5889848", "0.58845097", "0.5880876", "0.5880876", "0.5880876", "0.5880782", "0.58783615", "0.5875657", "0.58739984", "0.5872902", "0.5866947", "0.58644456", "0.5863118", "0.58620816", "0.58554554", "0.5852584", "0.5848957", "0.5847659", "0.5840533", "0.5840332", "0.58402205", "0.58392006", "0.58392006", "0.58392006", "0.58392006", "0.58392006", "0.58392006", "0.58391035" ]
0.0
-1
makes the tamagotchi a meal, animated a meal, calls the eatMeal controller function
private void makeMeal() { eating = true; tama.setLayoutX(200); meal = new Sprite(3, 3, 27, 24, new Image("file:./res/images/meal.png"), 1, 2100); meal.setLayoutX(150); meal.setLayoutY(150); meal.setScaleX(0.5); meal.setScaleY(0.5); grid.getChildren().addAll(meal); PauseTransition pause = new PauseTransition(Duration.millis(2100)); pause.setOnFinished(e -> { grid.getChildren().remove(meal); tama.setLayoutX(190); eating = false; model.getController().eatMeal(); // if(!model.isHealthy()){ // setSickImg(); // } }); pause.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eatMealKit(MealKit mealkit) {\n raiseFoodLevel(100);\n }", "public void addMeal(Meal meal) {\n meals.add(meal);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tRotateAnimation rotateAnim = null;\n\t\t\t\ttemp = ((int) (Math.random() * 6)) * 60 + 1080;\n\t\t\t\trotateAnim = new RotateAnimation(0, -temp,\n\t\t\t\t\t\tAnimation.RELATIVE_TO_SELF, 0.5f,\n\t\t\t\t\t\tAnimation.RELATIVE_TO_SELF, 0.5f);// 以自身为中心\n\t\t\t\trotateAnim.setFillAfter(true);// 保持动画结束后的样式\n\t\t\t\trotateAnim.setDuration(2000);// 动画持续时间\n\t\t\t\trotateAnim.setAnimationListener(new AnimationListener() {\n\t\t\t\t\tString meal;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\torderCicle.setClickable(false);// 转动时不可被点击\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onAnimationEnd(Animation arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\tswitch (eatWhat(temp - 1080)) {\n\t\t\t\t\t\tcase 0: {\n\t\t\t\t\t\t\tmeal = \"快餐\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 1: {\n\t\t\t\t\t\t\tmeal = \"炒菜\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 2: {\n\t\t\t\t\t\t\tmeal = \"凉皮\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 3: {\n\t\t\t\t\t\t\tmeal = \"面条\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 4: {\n\t\t\t\t\t\t\tmeal = \"饺子\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 5: {\n\t\t\t\t\t\t\tmeal = \"其他\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\teatWhat.setText(meal);// 显示结果\n\t\t\t\t\t\torderCicle.setClickable(true);// 转动后可以被点击\n\t\t\t\t\t\teatWhat.setClickable(true);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\torderCicle.startAnimation(rotateAnim);\n\n\t\t\t}", "public void eat(){\n\t\tSystem.out.println(\"I am the eat methods\");\t\t\t\t\r\n\t}", "@Override\r\n\tpublic void eat(Food food) {\n\r\n\t}", "public void eat()\n {\n System.out.println(\"You have eaten now and you are not hungry any more\");\n }", "private void eatCookedMeal(double eatingTime) {\n\t\t// Obtain the dry mass of the dessert\n\t\tdouble dryMass = cookedMeal.getDryMass();\n\t\t// Proportion of meal being eaten over this time period.\n\t\tdouble proportion = person.getEatingSpeed() * eatingTime;\n\n\t\tif (cumulativeProportion > dryMass) {\n\t\t\tdouble excess = cumulativeProportion - dryMass;\n\t\t\tcumulativeProportion = cumulativeProportion - excess;\n\t\t\tproportion = proportion - excess;\n\t\t}\n\n\t\tif (proportion > MIN) {\n\t\t\t// Add to cumulativeProportion\n\t\t\tcumulativeProportion += proportion;\n\t\t\t// Food amount eaten over this period of time.\n\t\t\tdouble hungerRelieved = RATIO * proportion / dryMass;\n\t\t\t\t\t\n//\t\t\tlogger.info(person + \" ate '\" + cookedMeal.getName()\n//\t\t\t\t\t+ \" currentHunger \" + Math.round(currentHunger*100.0)/100.0\n//\t\t\t\t\t+ \" hungerRelieved \" + Math.round(hungerRelieved*100.0)/100.0\n//\t\t\t\t\t+ \" proportion \" + Math.round(proportion*1000.0)/1000.0\n//\t\t\t\t\t+ \" EatingSpeed \" + Math.round(person.getEatingSpeed()*1000.0)/1000.0\n//\t\t\t\t\t+ \" foodConsumptionRate \" + Math.round(foodConsumptionRate*1000.0)/1000.0);\n\t\t\t\n\t\t\t// Change the hunger level after eating\n\t\t\treduceHunger(hungerRelieved);\n\t\n\t\t\t// Reduce person's stress over time from eating a cooked meal.\n\t\t\t// This is in addition to normal stress reduction from eating task.\n\t\t\tdouble stressModifier = STRESS_MODIFIER * (cookedMeal.getQuality() + 1D);\n\t\t\tdouble newStress = condition.getStress() + (stressModifier * eatingTime);\n\t\t\tcondition.setStress(newStress);\n\t\n\t\t\t// Add caloric energy from meal.\n\t\t\tdouble caloricEnergyFoodAmount = proportion / dryMass * PhysicalCondition.FOOD_COMPOSITION_ENERGY_RATIO;\n\t\t\tcondition.addEnergy(caloricEnergyFoodAmount);\n\t\t}\n\t}", "public void eat() {\n\t\tSystem.out.println(this.name + \" the \" + this.type + \" ate their rabbit meat.\");\n\t}", "public void eat() {\n if (!isTired()) {\n hunger -= 3;\n fatigue += 2;\n\n if (!muted) {\n System.out.println(\"eat\\t\\t|\\tYummy this is tasty!\");\n }\n }\n }", "@Override\n\t\t\t\t\tpublic void onAnimationEnd(Animation arg0) {\n\n\t\t\t\t\t\tswitch (eatWhat(temp - 1080)) {\n\t\t\t\t\t\tcase 0: {\n\t\t\t\t\t\t\tmeal = \"快餐\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 1: {\n\t\t\t\t\t\t\tmeal = \"炒菜\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 2: {\n\t\t\t\t\t\t\tmeal = \"凉皮\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 3: {\n\t\t\t\t\t\t\tmeal = \"面条\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 4: {\n\t\t\t\t\t\t\tmeal = \"饺子\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 5: {\n\t\t\t\t\t\t\tmeal = \"其他\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\teatWhat.setText(meal);// 显示结果\n\t\t\t\t\t\torderCicle.setClickable(true);// 转动后可以被点击\n\t\t\t\t\t\teatWhat.setClickable(true);\n\t\t\t\t\t}", "public void eat() {\n\t\tSystem.out.println(\"Ape eating\");\n\t}", "@Override\n\tpublic void msgFinishEating(Food food) {\n\t\t\n\t}", "public void eat(String foodName, int amount) {\n\t\tSystem.out.println(\"another eat method\");\n\n\t}", "void eat(Edible anEdible, int amount);", "@Override\n public void feedingMeat() {\n\n }", "public void act()\n {\n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Cabbage(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Eggplant(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Onion(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(300) < 3)\n {\n addObject(new Pizza(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Cake(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Icecream(), Greenfoot.getRandomNumber(600), 0);\n }\n countTime();\n }", "@Override\r\n\t\t \t public void eat(String item) {\n\t\t \t\t System.out.println(\"Penguin eats fish\");\r\n\t\t \t\t\r\n\t\t }", "public void eat() {\n\t\tSystem.out.println(\"They eat...\");\n\t}", "public void eat () {\n System.out.println(\"He's eating everything\" );\n }", "public void eat() {\n int index;\n Cell selectedCell;\n if (getFoodArray() != null) {\n \n if (getFoodCount() > 0) {\n dayCountDown = getMaxHunger();\n index = RandomGenerator.nextNumber(getFoodCount());\n selectedCell = getFoodArray().get(index);\n \n if (getLocation().hasNotMove()) {\n new Holdable(getLocation()).init();\n this.setCell(selectedCell);\n \n getLocation().setMoved(false);\n }\n } else if (getLocation().getEmptyCount() != 0) {\n index = RandomGenerator.nextNumber(getLocation()\n .getEmptyCount());\n selectedCell = getLocation().getEmptyArray().get(index);\n \n if (getLocation().hasNotMove()) {\n dayCountDown--;\n new Holdable(getLocation()).init();\n this.setCell(selectedCell);\n \n \n getLocation().setMoved(false);\n }\n } else {\n dayCountDown--;\n getLocation().setMoved(false);\n }\n }\n \n }", "public void eat( ) // Start eating\r\n {\r\n isEating = true; // Change the state\r\n isSleeping = false;\r\n return;\r\n }", "public void eat();", "void eat() {\n\t\tSystem.out.println(\"eating...\");\n\t}", "@Override\n public void eat() {\n System.out.println(\"Now doggo is eating\");\n chew();\n super.eat();\n }", "private void makeMedicine() {\n\t\teating = true;\n\t\ttama.setLayoutX(200);\n\n\t\tmedicine = new Sprite(3, 3, 540, 478, new Image(\"file:./res/images/hearts.png\"), 1, 2100);\n\t\tmedicine.setLayoutX(150);\n\t\tmedicine.setLayoutY(150);\n\t\tmedicine.setScaleX(0.3);\n\t\tmedicine.setScaleY(0.3);\n\t\tgrid.getChildren().addAll(medicine);\n\t\tPauseTransition pause = new PauseTransition(Duration.millis(2100));\n\t\tpause.setOnFinished(e -> {\n\t\t\tgrid.getChildren().remove(medicine);\n\t\t\ttama.setLayoutX(190);\n\t\t\teating = false;\n\t\t\tmodel.getController().feedMedicine();\n\t\t});\n\t\tpause.play();\n\n\t}", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "public void act() \n {\n EggFactory eggFactory = new EggFactory();\n \n move(4);\n int random = Greenfoot.getRandomNumber(5000);\n if((random>200 & random<300) || ((Farm)getWorld()).atWorldEdge(this))\n {\n turn(180);\n getImage().mirrorVertically();\n move(4);\n \n }\n\n if( Greenfoot.getRandomNumber(100) ==0)\n {\n\n Farm farm = (Farm)getWorld();\n Egg egg = null; \n int eggPicker = Greenfoot.getRandomNumber(80);\n //DropEggStrategy dropEgg = new DropEggStrategy(); //Strategy pattern\n\n IEggStrategy whiteStrategy = new WhiteEggStrategy(eggFactory);\n IEggStrategy blackStrategy = new BlackEggStrategy(eggFactory);\n IEggStrategy goldenStrategy = new GoldenEggStrategy(eggFactory);\n \n DropEggContext context = new DropEggContext();\n \n if(eggPicker >= 50 && eggPicker <= 60){\n \n context.setIEggStrategy(goldenStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n else if(eggPicker >= 60 && eggPicker <= 70){\n\n context.setIEggStrategy(blackStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n else{\n context.setIEggStrategy(whiteStrategy);\n egg = context.dropEgg();\n getWorld().addObject(egg, this.getX(), this.getY()+45);\n }\n \n egg.register(farm.getLifeObserver());//register life creator observer into egg subject \n\n \n\n }\n\n }", "public void eat(){\n System.out.println(\"Bat Eatz\");\n }", "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(getName()+\"is eating\");\n\t}", "@Override\n\tpublic void eatFood(Food f) {\n\t\t\n\t}", "public void eatCorpse(Corpse corpse) {\n if (corpse.getSpecies().equals(\"Agilisaurus\")) {\n raiseFoodLevel(20);\n } else {\n raiseFoodLevel(50);\n }\n }", "@Override\n\tpublic void eat() {\n\t\t\n\t}", "private void eat3(){\n System.out.println(\"Fried Chicken\");\r\n }", "public void eatHay(Hay hay) {\n raiseFoodLevel(20);\n }", "private double eatingMealPhase(double time) {\n\t\tdouble remainingTime = 0D;\n\t\tdouble eatingTime = time;\n\t\t\n\t\tif ((totalEatingTime + eatingTime) >= eatingDuration) {\n\t\t\teatingTime = eatingDuration - totalEatingTime;\n\t\t}\n\n\t\tif (!person.isInVehicle()) {\n\t\n\t\t\tif (eatingTime > 0D) {\n\t\n\t\t\t\tif (cookedMeal != null) {\n\t\t\t\t\t// Set descriptoin for eating cooked meal.\n\t\t\t\t\tsetDescription(Msg.getString(\"Task.description.eatDrink.cooked.eating.detail\", cookedMeal.getName())); //$NON-NLS-1$\n\t\t\t\t\t// Eat cooked meal.\n\t\t\t\t\teatCookedMeal(eatingTime);\n\t\t\t\t\t\n\t\t\t\t\tif (cumulativeProportion > cookedMeal.getDryMass()) {\n\t\t\t\t\t\tendTask();\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// If finished eating, change to dessert phase.\n\t\t\t\t\tif (eatingTime < time) {\n//\t\t\t\t\t\tsetPhase(PICK_UP_DESSERT);// EATING_DESSERT);\n\t\t\t\t\t\tremainingTime = time - eatingTime;\n\t\t\t\t\t}\n\n\t\t\t\t\ttotalEatingTime += eatingTime;\n\n\t\t\t\t\tif (totalEatingTime > getDuration())\n\t\t\t\t\t\tendTask();\n\t\t\t\t\t\n\t\t\t\t\tconsumeWater(false);\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t// Eat preserved food if available\n\t\t\t\t\tboolean enoughFood = eatPreservedFood(eatingTime);\n\t\n\t\t\t\t\t// If not enough preserved food available, change to dessert phase.\n\t\t\t\t\tif (!enoughFood) {\n\t\t\t\t\t\tsetPhase(PICK_UP_DESSERT);\n\t\t\t\t\t\tremainingTime = time * .75;\n\t\t\t\t\t\treturn remainingTime;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Report eating preserved food.\n\t\t\t\t\t\tsetDescription(Msg.getString(\"Task.description.eatDrink.preserved\")); //$NON-NLS-1$\n\n\t\t\t\t\t\tremainingTime = time * .75;\n\t\t\t\t\t\treturn remainingTime;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn remainingTime;\n\t}", "@Override\n public void eatMeat()\n {\n setEatText(\"nomnomnom oink thx\");\n System.out.println(getEatText());\n }", "protected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.fancy_select_food);\n\t\tfindView();\n\t\tsetListener();\n\t\tinitActionbar();\n\n\t\torderCicle.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tRotateAnimation rotateAnim = null;\n\t\t\t\ttemp = ((int) (Math.random() * 6)) * 60 + 1080;\n\t\t\t\trotateAnim = new RotateAnimation(0, -temp,\n\t\t\t\t\t\tAnimation.RELATIVE_TO_SELF, 0.5f,\n\t\t\t\t\t\tAnimation.RELATIVE_TO_SELF, 0.5f);// 以自身为中心\n\t\t\t\trotateAnim.setFillAfter(true);// 保持动画结束后的样式\n\t\t\t\trotateAnim.setDuration(2000);// 动画持续时间\n\t\t\t\trotateAnim.setAnimationListener(new AnimationListener() {\n\t\t\t\t\tString meal;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\torderCicle.setClickable(false);// 转动时不可被点击\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onAnimationEnd(Animation arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\tswitch (eatWhat(temp - 1080)) {\n\t\t\t\t\t\tcase 0: {\n\t\t\t\t\t\t\tmeal = \"快餐\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 1: {\n\t\t\t\t\t\t\tmeal = \"炒菜\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 2: {\n\t\t\t\t\t\t\tmeal = \"凉皮\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 3: {\n\t\t\t\t\t\t\tmeal = \"面条\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 4: {\n\t\t\t\t\t\t\tmeal = \"饺子\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 5: {\n\t\t\t\t\t\t\tmeal = \"其他\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\teatWhat.setText(meal);// 显示结果\n\t\t\t\t\t\torderCicle.setClickable(true);// 转动后可以被点击\n\t\t\t\t\t\teatWhat.setClickable(true);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\torderCicle.startAnimation(rotateAnim);\n\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n public void eat(Puppy puppy) {\n System.out.println(\"The puppy awakens from its slumber and runs to the food ready to eat.\");\n puppy.setState(new EatState());\n puppy.incrementEatCount();\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 asignJustMeat() {\n\t\tpizza = new JustMeat();\n\t\tBaguette pz = new PizzaAdapter(pizza);\n\t\tSystem.out.println(pz.getDescription() + \". Total: $\" + pz.cost());\t}", "@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) {\n HttpSession session = request.getSession();\n String page = ConfigurationManager.getProperty(\"path.page.main\");\n logger.info(\"Chosen meal type: '\" + request.getParameter(REQUEST_PARAM_MEAL_TYPE_ID));\n\n Meal mealEntry = new Meal(\n ((User) session.getAttribute(SESSION_ATTR_NAME_USER)).getUserId(),\n Integer.parseInt(request.getParameter(REQUEST_PARAM_MEAL_TYPE_ID)),\n Integer.parseInt(request.getParameter(REQUEST_PARAM_PRODUCT_ID)),\n Integer.parseInt(request.getParameter(REQUEST_PARAM_WEIGHT)),\n (LocalDate) session.getAttribute(SESSION_ATTR_NAME_DATE)\n );\n logger.info(\"Meal entry to add: \" + mealEntry);\n\n if (menuService.addMeal(mealEntry)) {\n logger.info(\"Meal successfully added!\");\n pageService.updateMainPageData(session, mealEntry.getUserId());\n } else {\n logger.info(\"Meal adding error!\");\n session.setAttribute(\"errorAddMealMessage\", MessageManager.getProperty(\"message.addmealerror\"));\n }\n return page;\n }", "public abstract void eat(String foodName);", "public void eat(){\r\n System.out.println(this.animalName + \" eats\");\r\n }", "public void setMealCode(String mealCode) {\n this.mealCode = mealCode;\n }", "public void attack(){\n activity = CreatureActivity.ATTACK;\n createWeapon();\n endAttack = new CountDown(20); //100\n endAnimationAttack = new CountDown(100);\n }", "public void act()\r\n {\n if (Greenfoot.getRandomNumber(1000)< flyRate)\r\n {\r\n addObject(new Fly(), getWidth(), Greenfoot.getRandomNumber(300));\r\n //flyRate++;\r\n }\r\n }", "static String start(Item drink)\n {\n State.setConversation(true);\n Conversation. drink = drink;\n String drinkName = drink.getName();\n stateDependentAnswer = Conversation::waitingForTheAge;\n return Texts.mTAKES_ALCOHOL + drinkName + \".\" + Texts.mHOW_OLD;\n// \"You try to take from an intelligent ice-box \" + drinkName +\n// \"This ice-box does not enable serving of alcoholic drinks \" +\n// \"to under-agers.\\nWhat is your age?\");\n }", "static void SampleItinerary()\n {\n System.out.println(\"\\n ***Everyone piles on the boat and goes to Molokai***\");\n\n bg.AdultRowToMolokai();\n bg.ChildRideToMolokai();\n bg.AdultRideToMolokai();\n bg.ChildRideToMolokai();\n }", "protected abstract void addMeat();", "@Override //this is optional\n public void eat(int amount) {\n\n }", "@FXML\n public void MealAddBtnClicked(){\n //display the correct panes\n subMenuDisplay(MealSubMenuPane);\n MealsAddPane.toFront();\n MenuPane.toFront();\n //load ingredients from the database ingredients that will be set to the ingredients All ingredients cupboard\n //ListView\n loadIngredients();\n searchIngredient.setText(\"\");\n quantityNameLabel.setText(\"\");\n }", "@Override\n\tpublic void eatfood() {\n\t\tSystem.out.println(\"==pig : 잡식 ==\");\n\t}", "private void eat() {\r\n\t\tthis.energy = this.baseEnergy;\r\n\t\tArrayList<Block> foodNeighbors = (ArrayList<Block>)this.getBlock().getAdjacent(prey, \"2457\");\r\n\t\twhile (foodNeighbors.size() > 0) {\r\n\t\t\tint randomNeighbor = r.nextInt(foodNeighbors.size());\r\n\t\t\tBlock b = this.getBlock();\r\n\t\t\tBlock t = foodNeighbors.get(randomNeighbor);\r\n\t\t\tif (!t.getNextCell().getNextState().equals(predator)) {\r\n\t\t\t\tmoveCell(this, b, t, new WaTorCell(this.getBlock(), new WaTorState(State.EMPTY_STATE),\r\n\t\t\t\t\t\tthis.ageToReproduce, this.baseEnergy));\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tfoodNeighbors.remove(t);\r\n\t\t}\r\n\t\tcellPreyRules(new WaTorState(WaTorState.WATOR_PREDATOR));\r\n\t}", "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"狗吃肉\");\n\t}", "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"eat grass\");\n\t}", "public void serveFood() {\r\n System.out.println(\"Serving food from \" + name + \" is a \" + type + \" restaurant\");\r\n }", "public void eatFruit(Fruit fruit) {\n raiseFoodLevel(30);\n }", "public static void main(String[] args) {\n\t\tMealBuilder mealBuilder = new MealBuilder();\r\n\r\n\t\tMeal vegMeal = mealBuilder.prepareVegMeal();\r\n\t\tSystem.out.println(\"Veg Meal\");\r\n\t\tvegMeal.showItems();\r\n\t\tSystem.out.println(\"Total Cost: \" + vegMeal.getCost());\r\n\r\n\t\tMeal nonVegMeal = mealBuilder.prepareNonVegMeal();\r\n\t\tSystem.out.println(\"\\n\\nNon-Veg Meal\");\r\n\t\tnonVegMeal.showItems();\r\n\t\tSystem.out.println(\"Total Cost: \" + nonVegMeal.getCost());\r\n\r\n\t\tOrderBuilder orderBuilder = new OrderBuilder();\r\n\t\torderBuilder.burger(new VegBurger(), 1);\r\n\t\torderBuilder.burger(new ChickenBurger(), 2);\r\n\t\torderBuilder.suit(mealBuilder.prepareVegMeal(), 1);\r\n\t\torderBuilder.suit(mealBuilder.prepareNonVegMeal(), 2);\r\n\t\tOrder order = orderBuilder.build();\r\n\r\n\t\tSystem.out.println(\"\\n\\nMeal--µã²Í£¨µ¥µã¡¢Ìײͣ©\");\r\n\t\tfloat cost = 0.0f, cost1 = 0.0f, cost2 = 0.0f;\r\n\t\tMeal meal = new Meal();\r\n\t\tfor (Item item : order.getBurger()) {\r\n\t\t\tmeal.addItem(item);\r\n\t\t}\r\n\t\tmeal.showItems();\r\n\t\tcost1 = meal.getCost();\r\n\t\tSystem.out.println(\"====================================\");\r\n\t\tSystem.out.println(\"Burger subtotal Cost: \" + cost1);\r\n\t\tSystem.out.println(\"====================================\");\r\n\t\tfor (Meal meal1 : order.getSuit()) {\r\n\t\t\tmeal1.showItems();\r\n\t\t\tcost2 += meal1.getCost();\r\n\t\t}\r\n\t\tcost = cost1 + cost2;\r\n\t\tSystem.out.println(\"====================================\");\r\n\t\tSystem.out.println(\"Meal subtotal Cost: \" + cost2);\r\n\t\tSystem.out.println(\"====================================\");\r\n\t\tSystem.out.println(\"Total Cost: \" + cost);\r\n\t}", "private void giveFoodToCustomer(MyCustomer customer) {\n\tDo(\"Giving finished order of \" + customer.choice +\" to \" + customer.cmr);\n\tPosition inFrontOfGrill = new Position(customer.food.getX()-1,customer.food.getY());\n\tguiMoveFromCurrentPostionTo(inFrontOfGrill);//in front of grill\n\twaiter.pickUpFood(customer.food);\n\tPosition tablePos = new Position(tables[customer.tableNum].getX()-1,\n\t\t\t\t\t tables[customer.tableNum].getY()+1);\n\tguiMoveFromCurrentPostionTo(tablePos);\n\twaiter.serveFood(tables[customer.tableNum]);\n\tcustomer.state = CustomerState.NO_ACTION;\n\tcustomer.cmr.msgHereIsYourFood(customer.choice);\n\tstateChanged();\n }", "@Override\n\tpublic void showBeveragesMenu(int selectedPerson) {\n\t\ttry{\n System.out.println(\"Please place your order\");\n randomNum=transactionService.createRandomOrderNumber();\n OrderNum=initialOrderNum+randomNum;\n do {\n \t\n showCoffeeType();\n showCoffeeSize();\n System.out.println(\"Do you want Add-ons?\");\n subChoice=input.next();\n if(subChoice.equalsIgnoreCase(\"yes\"))\n {\n showCoffeeAddon();\n \n }\n else\n {\n \ttransactionService.createCoffeeOrder(selectedPerson,OrderNum,selectedCoffeeType,selectedCoffeeSize,selectedAddon);\n }\n System.out.println(\"Do you want to order more coffee?\");\n subChoice = input.next();\n \n \n\n }while(subChoice.equalsIgnoreCase(\"yes\"));\n showVoucher();\n\n printBill(selectedPerson,OrderNum,selectedVoucher);\n System.out.println(\"Happy Drink! Have a good day.\");\n System.out.println(\"================================\");\n\n\n\n }\n \n catch (InputMismatchException e)\n {\n System.out.println(\"Please provide a correct input\");\n }\n catch (NullPointerException en)\n {\n System.out.println(en.getMessage());\n }\n\t\t\n\t}", "public void makeTea() {\n\t\tboil();\n\t\taddSugar();\n\t\taddTea();\n\t\tserve();\n\t}", "MealDto addMeal(MealDto meal, int restaurantId);", "public void startHealing()\n\t{\n\t\ttimerList.clear();\n\t\tinHospitalTimer = new PlayPauseTimer(10, new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tworld.heal();\n\t\t\t\tx = random.nextInt(world.getSIMULATION_WIDTH() - individualSize);\n\t\t\t\ty = random.nextInt(world.getSIMULATION_HEIGHT() - individualSize); \n\t\t\t\tmoveInPopulation();\n\t\t\t\texitHospital();\n\t\t\t\thealthStatus = HealthStatus.HEALTHY;\n\t\t\t\ttimerList.remove(inHospitalTimer);\n\t\t\t}\n\t\t\t\n\t\t}, world.getRefreshTime());\n\t\ttimerList.add(inHospitalTimer);\n\t}", "public void eatEgg(Egg egg) {\n raiseFoodLevel(10);\n }", "@Override\n public void eat(int i)\n {\n // Set fuel levels\n fuel = fuel + i;\n }", "public void paint(Graphics g) {\n\t\t \n\t\tmyMeal[0] = new Cake(0, 0, Color.yellow);\n\t\tmyMeal[1] = new Pie(0, 100, Color.blue);\n\t\tmyMeal[2] = new Donut();\n\t\t\n\t\t// call the bake() in ALL of the Cake and Pie objects\n\t\tfor (int x = 0; x < myMeal.length; x++) {\n\t\t\tmyMeal[x].bake(g);\n\t\t}\n\t\t\n\t\tg.drawString(myMeal[2].whatAmI(), 125, 125);\n\t\t\n\t}", "private void goAdventure() {\n\n\t\tint experience = playern.getExp();\n\t\tint random = randomHelper.randomten();\n\n\t\t/**\n\t\t * Random part that starts with 10% occurance when user chooses goAdventuring()\n\t\t */\n\t\tif (random == 0) {\n\t\t\tSystem.out.println(\"You see nothing but unicorns running in the swaying grass..\");\n\t\t\tSystem.out.println(\"[press enter to continue]\");\n\t\t\tsc.nextLine();\n\t\t}\n\n\t\t/**\n\t\t * Chooses storyboard and battle depending on experience level\n\t\t */\n\t\tif (experience >= 40) {\n\t\t\tStoryboardTwo.leveltwo();\n\t\t\tbattleSpider();\n\t\t}else {\n\t\t\tStoryboard.intro();\n\t\t\tbattleVampire();\n\t\t}\n\t\t}", "public void createFood() {\n }", "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"eat\");\n\t}", "private void asignWholemealSandwich() {\n\t\tbaguette = new WholemealSandwich();\n\t\tSystem.out.println(\"\\nYou have selected wholemeal bread.\\n\" +\n\t\t\t\"Now, choose the ingredientes you want:\\n\" +\n\t\t\tbaguette.ingredients());\n\t}", "public void doTask(Entity e) {\r\n\t\tif (getTask().equals(\"heal\")) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tint healing = rand.nextInt(50) + 1;\r\n\t\t\tif (getNumTasks() > 0) {\r\n\t\t\t\tuseTask();\r\n\t\t\t\tif (Jedi.class.isInstance(e)) {\r\n\t\t\t\t\tJedi healMe = (Jedi) e;\r\n\t\t\t\t\thealMe.heal(healing);\r\n\t\t\t\t} else if (Rebel.class.isInstance(e)) {\r\n\t\t\t\t\tRebel healMe = (Rebel) e;\r\n\t\t\t\t\thealMe.heal(healing);\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Medical droid heals \" + e.getName()\r\n\t\t\t\t\t\t+ \" with \" + healing + \" hp.\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out\r\n\t\t\t\t\t\t.println(\"Medical Droid \"\r\n\t\t\t\t\t\t\t\t+ getName()\r\n\t\t\t\t\t\t\t\t+ \" has run out of number of tasks available to perform.\");\r\n\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Medical Droid \" + getName()\r\n\t\t\t\t\t+ \" has no tasks upon which to perform.\");\r\n\t\t}\r\n\t}", "public Meal(Date date, Dish dish, String category) {\n this.date = date;\n this.dish = dish;\n this.category = category;\n this.done = 0;\n }", "static void SampleItinerary() {\n\t\tSystem.out.println(\"\\n ***Everyone piles on the boat and goes to Molokai***\");\n\t\tbg.AdultRowToMolokai();\n\t\tbg.ChildRideToMolokai();\n\t\tbg.AdultRideToMolokai();\n\t\tbg.ChildRideToMolokai();\n\t}", "@Override\n public void action(Jugador jugador) {\n\n }", "public static void main(String[] args) {\nScanner sca = new Scanner(System.in);\t\nCachorrO dog = new CachorrO();\nCavalO hor = new CavalO();\nPreguiÇa per = new PreguiÇa();\nAnimaL anim= null;\nint ani;\ndo {\nSystem.out.println(\"Escolha um animal\\n1-Cachorro\\n2-Cavalo\\n3-Preguiça\");\nani = sca.nextInt();\nSystem.out.println(\"Fazenda Dourado\");\nSystem.out.println(\"Seja bem-vindo\");\nSystem.out.println(\"------------------------------------------------------\");\nif(ani==1)\n{\n\tanim = dog;\n\tSystem.out.println(\"\\nQual o nome do seu cachorro?\");\n\tString nome = sca.next();\n\tSystem.out.println(\"\\nQuantos anos seu cachorro tem?\");\n\tint idade = sca.nextInt();\n\tSystem.out.println(\"\\nEssa é legal!!!Qual o som que seu cachorro emite?\");\n\tString som = sca.next();\n\tSystem.out.println(\"------------------------------------------------------\");\n\tdog.Nome(nome);\n\tdog.Idade(idade);\n\tdog.Som(som);\n}\nelse if(ani==2)\n{\n\tanim=hor;\n\tSystem.out.println(\"\\nQual o nome do seu cavalo?\");\n\tString nome = sca.next();\n\tSystem.out.println(\"\\nQuantos anos seu cavalo tem?\");\n\tint idade = sca.nextInt();\n\tSystem.out.println(\"\\nEssa é legal!!!Qual o som que seu cavalo emite?\");\n\tString som = sca.next();\n\tSystem.out.println(\"------------------------------------------------------\");\n\thor.Nome(nome);\n\thor.Idade(idade);\n\thor.Som(som);\n\t\n}\nelse if(ani==3)\n{\n\tanim=per;\n\tSystem.out.println(\"\\nQual o nome da sua preguiça?\");\n\tString nome = sca.next();\n\tSystem.out.println(\"\\nQuantos anos sua preguiça tem?\");\n\tint idade = sca.nextInt();\n\tSystem.out.println(\"\\nEssa é legal!!!Qual o som que sua preguiça emite?\");\n\tString som = sca.next();\n\tSystem.out.println(\"------------------------------------------------------\");\n\tper.Nome(nome);\n\tper.Idade(idade);\n\tper.Som(som);\n}\nelse\n{\n\tSystem.out.println(\"\\nInformação Inválida!!!\");\n}\n}\nwhile(ani<=0 || ani>=4);\n}", "private void MealAddPaneSetUp(){\n //When a ingredient in the ingredient list is selected (Meals Add Pane) Retrieve the standard quantity name\n //and amount for that ingredient. e.g if bread is selected display slice in the quantity label\n dynamicQuantityLabelSetUp(ingredientsList, quantityNameLabel );\n //bind the listView with a list of ingredients\n ingredientsForMeal.setItems(newIngredients);\n //setup the cell format for the two ListViews in this pane\n //ListView displays Ingredients name and quantity\n styleIngredientAddedListCell(ingredientsForMeal);\n //listview displays ingredient name\n styleIngredientListCell(ingredientsList);\n }", "@FXML\n public void mealsBtnClicked(){\n subMenuDisplay(MealSubMenuPane);\n MealsBrowsePane.toFront();\n MenuPane.toFront();\n //style the main menu to the meals color\n styleApp(\"-fx-background-color: #\" + mealColor);\n //goto the meal Browser Pane\n MealBrowseBtnClicked();\n }", "private void follow() {\n\t\t// calculate distance back to hive\n\t\tdouble distToHive = grid.getDistance(grid.getLocation(this),grid.getLocation(hive));\n\t\t// if close to flower from dance information, start scouting\n\t\tif(distToHive > followDist - 5) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// otherwise keep flying in direction of dance\n\t\telse{\n\t\t\t// deviate slightly from correct angle because bee's aren't perfect (I don't think)\n\t\t\tcurrentAngle += RandomHelper.nextDoubleFromTo(-Math.PI/50, Math.PI/50);\n\t\t\tspace.moveByVector(this, 4, currentAngle,0);\n\t\t\tNdPoint myPoint = space.getLocation(this);\n\t\t\tgrid.moveTo(this, (int) myPoint.getX(), (int) myPoint.getY());\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}", "public void eatApple() {\n\t\teaten = peeled && !eaten ? true : false;\n\t}", "private static void fish(ArrayList<Item> a, ItemManager im) {\n\t\t\n\t\tdouble ph = Math.random();\n\t\tSystem.out.println(\"you rolled a \" + ph);\n\t\tif( ph > 0.7) {\n\t\t\tprintItem(im,1);\n\t\t\ta.add(im.allItems[1]);\n\t\t} else if(ph > 0.03) {\n\t\t\tprintItem(im,2);\n\t\t\ta.add(im.allItems[2]);\n\t\t} else {\n\t\t\tSystem.out.println(\"Bummer! No luck!\");\n\t\t}\t\n\t}", "public void act() \n {\n if (canGiveTestimony()) {\n giveTestimony();\n }\n }", "void cook(Food food) {\n //cook in pressure cooker\n }", "@Override\n\tpublic void msgDoneCooking(Food food) {\n\t\t\n\t}", "public static void main(String[] args) {\n\r\n Ingredient ingredient=new Ingredient();\r\n\r\n Food pasta=new Pasta();\r\n String pastaItems=ingredient.getPastaItems();\r\n pasta.prepareFood(pastaItems);\r\n System.out.println(pasta.deliverFood());\r\n\r\n\r\n System.out.println(\"------------FACADE---------------\");\r\n\r\n System.out.println(Waiter.deliveryFood(FoodType.PASTA));\r\n\r\n\r\n\r\n\r\n\r\n\r\n }", "public void eat(double amount) {\n\t\t_weight = _weight + amount / 100;\r\n\t\tSystem.out.println(_fullname + \" is finished to eat, his weight is: \" + _weight);\r\n\t}", "private void startMealToDatabaseAlert() {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);\n TextView dialogTitle = new TextView(this);\n int blackValue = Color.parseColor(\"#000000\");\n dialogTitle.setText(R.string.title_dialog_meal);\n dialogTitle.setGravity(Gravity.CENTER_HORIZONTAL);\n dialogTitle.setPadding(0, 30, 0, 0);\n dialogTitle.setTextSize(25);\n dialogTitle.setTextColor(blackValue);\n dialogBuilder.setCustomTitle(dialogTitle);\n View dialogView = getLayoutInflater().inflate(R.layout.dialog_add_meal, null);\n\n this.startEditTexts(dialogView);\n this.startLocationSpinner(dialogView);\n this.startAddPhotoButton(dialogView);\n this.startMealDialogButtonListeners(dialogBuilder);\n\n dialogBuilder.setView(dialogView);\n AlertDialog permission_dialog = dialogBuilder.create();\n permission_dialog.show();\n }", "public void act() \n {\n gravity();\n animate();\n }", "public void orderMeal(ArrayList<Item> mealItems) {\r\n\r\n\r\n\r\n this.o.orderItem(new Meal(mealItems));\r\n }", "@NotNull public Builder mealService(@NotNull String mealService) {\n putValue(\"mealService\", mealService);\n return this;\n }", "@FXML\n public void saveMeal(){\n String mealName = mealNameField.getText().trim();\n String method = methodField.getText();\n\n //if any of the information is not available then throw an error\n if (mealName.trim().equals(\"\") || method.trim().equals(\"\") || (newIngredients.size() == 0)){\n //no ingredients, or methods or meal name then display error box\n mealBox.errorDiaglogBox(\"Incomplete meal\", \"Please ensure that there is a meal name, \" +\n \" meal ingredients and meal method entered\");\n } else {\n //create a recipe instance\n Recipe newRecipe = new Recipe(1, mealName, method, newIngredients);\n\n //create a new servcie to save the new meal to the database in a background thread\n CreateMealService service = new CreateMealService(newRecipe);\n if (service.getState() == Service.State.SUCCEEDED){\n service.reset();\n service.start();\n } else if (service.getState() == Service.State.READY){\n service.start();\n }\n\n //get the ID of the newly saved meal in the database and set it to the new Recipe\n service.setOnSucceeded(new EventHandler<WorkerStateEvent>() {\n @Override\n public void handle(WorkerStateEvent workerStateEvent) {\n int recipeId = service.getValue();\n //if the ID is -1 then there has been an issue saving the meal\n if (recipeId < 0) {\n System.out.println(\"Problem saving meal to database\");\n mealBox.errorDiaglogBox(\"Saving Meal\", \"Problem saving meal to database,\" +\n \"please contact program administrator\");\n }\n newRecipe.setId(recipeId);\n }\n });\n\n //clear the text areas\n mealNameField.clear();\n methodField.clear();\n newIngredients.clear();\n searchIngredient.clear();\n ingredientQuantityInput.clear();\n //this will unfilter the ingredients to add list\n ingredientsList.setItems(ingredientsFromDatabase);\n\n //Add the new meal / Recipe to the recipes List (no need to reloaded from database)\n recipesFromDatabase.add(newRecipe);\n }\n }", "private void createMeal(final String meal_id, final String recipe_id, final int count) {\n String url = \"http://proj-309-yt-8.cs.iastate.edu/create_meal.php\";\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"AddCalendarMealActivity/createMeal\", response);\n if(!response.contains(\"success\")) {\n Toast.makeText(getApplicationContext(),\"Error adding meal component to database.\", Toast.LENGTH_SHORT).show();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"AddCalendarMealActivity/createMeal\", error.toString());\n Toast.makeText(getApplicationContext(),\"Error connecting to database.\",Toast.LENGTH_SHORT).show();\n }\n }) {\n /*This is string data POSTed to server file with key-string format*/\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n @SuppressWarnings(\"Convert2Diamond\") Map<String,String> params = new HashMap<String, String>();\n params.put(\"meal_id\",meal_id);\n params.put(\"recipe_id\",recipe_id);\n return params;\n }\n };\n AppController.getInstance().addToRequestQueue(stringRequest, \"string_req_create_meal\" + count);\n }", "public static void main(String[] args) throws Exception {\n\t\tgetMeal();\r\n\t}", "public Meal(int id, Date date, Dish dish, String category, int done) {\n this.id = id;\n this.date = date;\n this.dish = dish;\n this.category = category;\n this.done = done;\n }", "public void eat() {\r\n System.out.println(\"ORANGES\");\r\n }", "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"사료를 먹다\");\n\t}", "public void addFood(View view) {\n\t\tContext context = getApplicationContext();\n\t\tif (foodName.isEmpty()) {\n\t\t\tCharSequence text = \"Select a food\";\n\t\t\tint duration = Toast.LENGTH_SHORT;\n\n\t\t\tToast toast = Toast.makeText(context, text, duration);\n\t\t\ttoast.show();\n\t\t} else if (location.isEmpty()) {\n\t\t\tCharSequence text = \"Select a location\";\n\t\t\tint duration = Toast.LENGTH_SHORT;\n\n\t\t\tToast toast = Toast.makeText(context, text, duration);\n\t\t\ttoast.show();\n\t\t} else {\n\t\t\t// Valid input, package name and location and send back array to\n\t\t\t// stockactivity\n\t\t\tIntent resultIntent = new Intent();\n\t\t\tresultIntent.putExtra(\"foodName\", foodName);\n\t\t\tresultIntent.putExtra(\"location\", location);\n\t\t\tsetResult(Activity.RESULT_OK, resultIntent);\n\t\t\tfinish();\n\t\t overridePendingTransition(R.anim.fade_in, R.anim.fade_out);\n\t\t}\n\t}", "private void haveFun() {\n\t\tint action = inputPrompt.funActivities(money);\r\n\t\tthis.money -= action;\r\n\t\t//has better effect depending on how much money you have spent\r\n\t\tthis.mentalHealth += FUNHEALTH + action;\r\n\t\tdailyTime--;\r\n\t\tinputPrompt.mainInfo(energy, physHealth, mentalHealth, money);\r\n\t\t\r\n\t}", "public void act() \n {\n if(s == 0)\n {\n lead();\n lookForFood();\n lookForEdge();\n lookForTail();\n }\n else\n {\n follow();\n }\n }", "private void updateAgilisaurusState() {\n this.age++;\n\n if (this.age == 30 && this.hasCapability(LifeStage.BABY)) {\n // grow up\n this.removeCapability(LifeStage.BABY);\n this.addCapability(LifeStage.ADULT);\n this.displayChar = 'D';\n }\n\n if (this.foodLevel > 0) {\n this.foodLevel--;\n }\n\n if (this.waterLevel > 0) {\n this.waterLevel--;\n }\n\n if (this.foodLevel < 30) {\n this.behaviour = new HungryBehaviour();\n }\n\n if (this.foodLevel > 50) {\n this.behaviour = new BreedBehaviour();\n }\n\n if (this.foodLevel == 0) {\n this.Starving();\n } else {\n this.starvationLevel = 0;\n }\n\n if (this.waterLevel < 30) {\n this.behaviour = new ThirstBehaviour();\n }\n\n if (this.waterLevel == 0) {\n this.Thirsting();\n } else {\n this.thirstLevel = 0;\n }\n }", "@Override\n public void mature(Farm farm, Animal animal) {\n }" ]
[ "0.70589906", "0.62464124", "0.6179925", "0.6135819", "0.6118217", "0.6092517", "0.60348815", "0.6002388", "0.59574693", "0.5946483", "0.5929316", "0.5897074", "0.5887631", "0.5840123", "0.5834832", "0.5800577", "0.5772736", "0.5770191", "0.57503885", "0.5740829", "0.573837", "0.57307506", "0.5729633", "0.57090443", "0.5702392", "0.56965494", "0.5664294", "0.5646453", "0.5618009", "0.5591983", "0.5586827", "0.5581065", "0.55729264", "0.55719584", "0.55539", "0.555173", "0.554548", "0.5525761", "0.55128974", "0.55116916", "0.5504797", "0.5483002", "0.5470609", "0.5453052", "0.5434117", "0.54326063", "0.5430751", "0.5427051", "0.5421207", "0.54128784", "0.54113436", "0.5403378", "0.5400977", "0.537249", "0.5366924", "0.53567696", "0.5348738", "0.5341169", "0.5330055", "0.5327265", "0.53179765", "0.53098416", "0.5306075", "0.5299174", "0.52908903", "0.5290488", "0.5290107", "0.5289751", "0.52872986", "0.5286614", "0.5277174", "0.5276921", "0.52764577", "0.5276362", "0.5268645", "0.52631843", "0.5252692", "0.5252662", "0.5251562", "0.5244739", "0.5239157", "0.52302754", "0.5227746", "0.52269757", "0.5225517", "0.52215177", "0.52162886", "0.5210029", "0.52094966", "0.5209039", "0.5208198", "0.52071416", "0.51881844", "0.51841056", "0.5178475", "0.5167846", "0.5157029", "0.5150987", "0.51489604", "0.5147428" ]
0.74682367
0
makes the tamagotchi a snack, animated a snack, calls the eatSnack controller function
private void makeSnack() { eating = true; tama.setLayoutX(200); snack = new Sprite(3, 3, 22, 25, new Image("file:./res/images/snack.png"), 1, 1000); snack.setLayoutX(150); snack.setLayoutY(150); snack.setScaleX(0.3); snack.setScaleY(0.3); grid.getChildren().addAll(snack); PauseTransition pause = new PauseTransition(Duration.millis(1500)); pause.setOnFinished(e -> { grid.getChildren().remove(snack); tama.setLayoutX(190); eating = false; model.getController().eatSnack(); // if(!model.isHealthy()){ // setSickImg(); // } }); pause.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createSnack() {\n }", "private void snack() {\n\t\t\tsynchronized (left) {\n\t\t\t\tsynchronized (right) {\n\t\t\t\t\tSystem.out.println(this.name + \" start to snack\");\n\t\t\t\t\tUtils.pause(1_000);\n\t\t\t\t\t// System.out.println(this.name + \" finished to snack\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// System.out.println(this.name + \" is not hungry\");\n\t\t}", "@Override\r\n public void handle(ActionEvent event) {\n rawsimpan();\r\n }", "private void showSnackBar(String message) {\n }", "private void action() {\r\n moveSnake();\r\n if (hasEatenPowerUp() == false) checkForCollisionWithSelf();\r\n if (hasHitBoundry() == false) redraw();\r\n }", "@Override\r\n\t//Event handler for the Timer action\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tmoveSnake();\r\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tif (this.world.countSnakes() == 0)\n\t\t{\n\t\t\tDebug.log(\"Game.actionP: Game closing due to lack of snakes alive\");\n\t\t\tDialog.nonBlockingMessage(\"Snak\", \"Game over!\");\n\t\t\tclose();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Keep the amount of eggs\n\t\tint numEatables = this.world.countSnakes();\n\t\tfor (int i = this.world.countEatables(); i < numEatables; i++)\n\t\t\tthis.world.add(new Egg(this.world.findEmptyCell()));\n\t\t\n\t\t// Makes moves and paint\n\t\tSet<Snake> dead = this.world.move();\n\t\t\n\t\tif (this.server != null)\n\t\t{\n\t\t\tList<Element> elements = new ArrayList<Element>(this.world.getSnakes());\n\t\t\telements.addAll(this.world.getEatables());\n\t\t\n\t\t\tDebug.log(\"HostG.actionP: Elements: \" + elements);\n\t\t\tthis.server.sendFrame(elements.toArray(new Element[0]));\n\t\t\t\n\t\t\tfor (Snake snake : dead)\n\t\t\t\tthis.server.notifyDeath(snake);\n\t\t}\n\t\t\n\t\tthis.world.repaint();\n\t\t\n\t\t// Turn off keyboard listener if player's snake is dead\n\t\tif (dead.contains(this.player))\n\t\t{\n\t\t\tthis.frame.removeKeyListener(this);\n\t\t\t\n\t\t\tif (this.world.countSnakes() > 0)\n\t\t\t\tDialog.nonBlockingMessage(\"Snak\",\n\t\t\t\t\t\tnew MessagePanel()\n\t\t\t\t\t\t\t.add(\"Your snake is dead! :(\")\n\t\t\t\t\t\t\t.add(\"But allow the players to finish! :)\")\n\t\t\t\t\t);\n\t\t}\n\t\t\n\t\t// Remove dead bots and genereate their next movements\n\t\tIterator<Bot> botIt = this.bots.iterator();\n\t\twhile (botIt.hasNext())\n\t\t{\n\t\t\tBot bot = botIt.next();\n\t\t\tif (dead.contains(bot))\n\t\t\t\tbotIt.remove();\n\t\t\telse\n\t\t\t\tbot.generateNextMovement();\n\t\t}\n\t}", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "public void actionPerformed(ActionEvent evt){\n SnakeActions act = SnakeActions.valueOf(evt.getActionCommand());\n switch(act){\n case getAndLoad:\n snake_model.getAndLoadImage();\n break;\n case addSnake:\n snake_model.addSnake();\n break;\n case deformSnake:\n snake_model.deformSnake();\n break;\n case setAlpha:\n snake_frame.setAlpha();\n break;\n case setBeta:\n snake_frame.setBeta();\n break;\n case setGamma:\n snake_frame.setGamma();\n break;\n case setWeight:\n snake_frame.setWeight();\n break;\n case getForeground:\n snake_model.getForegroundIntensity();\n break;\n case setForeground:\n snake_frame.setForegroundIntensity();\n break;\n case setStretch:\n snake_frame.setStretch();\n break;\n case stretchFix:\n snake_model.setFixSnakePoints();\n break;\n case getBackground:\n snake_model.getBackgroundIntensity();\n break;\n case setBackground:\n snake_frame.setBackgroundIntensity();\n break;\n case clearScreen:\n snake_model.clearScreen();\n break;\n case setIterations:\n snake_frame.setDeformIterations();\n break;\n case saveSnakes:\n snake_model.saveSnake();\n break;\n case loadSnakes:\n snake_model.loadSnake();\n break;\n case deleteSnake:\n snake_model.deleteSnake();\n break;\n case initializeZoom:\n snake_model.initializeZoomIn();\n break;\n case zoomOut:\n snake_model.zoomOut();\n break;\n case nextImage:\n snake_model.nextImage();\n break;\n case previousImage:\n snake_model.previousImage();\n break;\n case deleteEnd:\n snake_model.deleteEndFix();\n break;\n case deleteMiddle:\n snake_model.deleteMiddleFix();\n break;\n case trackSnake:\n snake_model.trackSnake();\n break;\n case saveData:\n snake_model.saveElongationData();\n break;\n case setResolution:\n snake_frame.setResolution();\n break;\n case setSigma:\n snake_frame.setImageSmoothing();\n break;\n case setZResolution:\n snake_frame.setZResolution();\n break;\n case nextFrame:\n snake_model.nextFrame();\n break;\n case previousFrame:\n snake_model.previousFrame();\n break;\n case pMax:\n snake_model.increaseMax();\n break;\n case mMax:\n snake_model.decreaseMax();\n break;\n case pMin:\n snake_model.increaseMin();\n break;\n case mMin:\n snake_model.decreaseMin();\n break;\n case viewSelected:\n snake_frame.setView();\n break;\n case showHelp:\n HelpMessages.showHelp();\n break;\n case showAbout:\n HelpMessages.showAbout();\n break;\n case reduce3d:\n try{\n JCheckBoxMenuItem s = (JCheckBoxMenuItem)evt.getSource();\n snake_model.reduce3D(s.getState());\n }catch(ClassCastException e){\n System.out.println(\"not happy\");\n }\n\n break;\n case trackSnakeback:\n snake_model.trackSnakeBackwards();\n break;\n case clearSnake:\n snake_model.clearCurrentSnake();\n break;\n case setMaxLength:\n snake_model.setMaxLength();\n break;\n case deformUpdate:\n snake_frame.setDeformType();\n break;\n }\n }", "public void startSnake() {\n createBoard();\n generateFirstSnake();\n generateEnemy();\n spawnApples();\n printBoard();\n keepMoving();\n }", "public void act() \n {\n movegas();\n \n atingido2(); \n \n }", "@Override\n\tpublic void swim() {\n\t\tSystem.out.println(\"Pawan started swimming\");\n\t}", "@Override\n public void chooseAction(){\n healthDecay = getHealth() - 5;\n //now scan for Nazguls\n\n if(healthDecay == 0){\n death(this);\n }\n int scan_result = scan();\n\n if(scan_result == 1){\n move();\n }\n\n if(scan_result == 0 && healthDecay < 75){\n stay();\n }\n\n if(scan_result == 0 && hobbitCounter == 15){\n replicate();\n hobbitCounter = 0;\n }\n\n else{\n move();\n \n }\n hobbitCounter = hobbitCounter + 1;\n }", "public void eat();", "@Override\r\n public void onClick(View v)\r\n {\n DJIDrone.getDjiMainController().getAircraftSn(new DJIExecuteStringResultCallback(){\r\n\r\n @Override\r\n public void onResult(String result)\r\n {\r\n // TODO Auto-generated method stub\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"SN = \"+result));\r\n }\r\n \r\n });\r\n }", "@FXML\n\tprivate void enterPressedChat(ActionEvent event) throws InterruptedException {\n\t\tString message = chatBox.getText();\n\t\tif (botCheckBox.isSelected()){\n\t\t\tAnswers sassiAnswer = new Answers();\n\t\t\tif (message.toLowerCase().contains(\"why\")){\n\t\t\t\tappend(message, client.username);\n\t\t\t\tappend(sassiAnswer.getWhy(), \"SASSIBOT\");\n\t\t\t}\n\t\t\telse if (message.toLowerCase().contains(\"how\")){\n\t\t\t\tappend(message, client.username);\n\t\t\t\tappend(sassiAnswer.getHow(), \"SASSIBOT\");\n\t\t\t}\n\t\t\telse if (message.toLowerCase().contains(\"what\")){\n\t\t\t\tappend(message, client.username);\n\t\t\t\tappend(sassiAnswer.getWhat(), \"SASSIBOT\");\n\t\t\t}\n else if (message.toLowerCase().contains(\"where\")){\n\t\t\t\tappend(message, client.username);\n\t\t\t\tappend(sassiAnswer.getWhere(), \"SASSIBOT\");\n\t\t\t}\n else if (message.toLowerCase().contains(\"who\")){\n\t\t\t\tappend(message, client.username);\n\t\t\t\tappend(sassiAnswer.getWho(), \"SASSIBOT\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tappend(message, client.username);\n\t\t\t\tappend(sassiAnswer.getOther(), \"SASSIBOT\");\n\t\t\t}\n\t\t} else {\n\t\t\tString catchPhrase = \"@task \";\n\t\t\tif (message.contains(catchPhrase)) {\n\t\t\t\tString task = message.replace(\"@task \", \"\");\n\t\t\t\tString task_split[] = task.split(\" \", 2);\n\t\t\t\ttaskList.getItems().add(\"@\" + task_split[0] + \": \" + task_split[1] + \"\\n\");\n\t\t\t\tchatBox.setText(\"\");\n\t\t\t\tclient.sendTaskToGroup(task_split[1], task_split[0]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tclient.sendMessageToGroup(message);\n\t\t\t\tappend(chatBox.getText(), client.username);\n\t\t\t}\n\n\t\t\tchatBox.setText(\"\");\n\n\t\t}\n\t}", "@Override\n\tpublic void eat() {\n\t\t\n\t}", "@Override\r\n\t\t \t public void eat(String item) {\n\t\t \t\t System.out.println(\"Penguin eats fish\");\r\n\t\t \t\t\r\n\t\t }", "public void playTopHat() {\n\t\tSystem.out.println(\"ding ding da-ding\");\n\t\t\n\t}", "public void doAi(){\n\t\t\tif(MathHelper.getRandom(0, Game.FRAMERATE * 5) == 5){\n\t\t\t\tsetScared(true);\n\t\t\t}\n\t\t\n\t\t//Update rectangle\n\t\tsetRectangle(getX(), getY(), getTexture().getWidth(), getTexture().getHeight());\n\t\t\n\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\n\t\tif(rect.intersects(getRectangle())){\n\t\t\t\n\t\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\t\t\n\t\t\t\t\tsetDestinationX(StateGame.player.getX());\n\t\t\t\t\t\n\t\t\t\t\tsetDestinationY(StateGame.player.getY());\n\t\t\t\t\t\n\t\t\t\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\t\t\treachedDestination = (true);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check for collision with jelly\n\t\tint checkedJelly = (0);\n\t\twhile(checkedJelly < EntityJelly.JELLY.size() && EntityJelly.JELLY.get(checkedJelly) != null){\n\t\t\tif(EntityJelly.JELLY.get(checkedJelly).getDead() == false){\n\t\t\t\tif(getRectangle().intersects(EntityJelly.JELLY.get(checkedJelly).getRectangle())){\n\t\t\t\t\tsetHealth(getHealth() - 2);\n\t\t\t\t\tif(MathHelper.getRandom(1, 10) == 10){\n\t\t\t\t\tAnnouncer.addAnnouncement(\"-2\", 60, EntityJelly.JELLY.get(checkedJelly).getX(), EntityJelly.JELLY.get(checkedJelly).getY());\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tcheckedJelly++;\n\t\t}\n\t\t\n\t\t//If we're out of health, kill the entity\n\t\tif(getHealth() < 0){\n\t\t\tsetDead(true);\n\t\t}\n\t\t\n\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\tif(reachedDestination == true){\n\t\t\t\tif(getScared() == false){\n\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(getScared() == false){\n\t\t\t\tif(getX() < getDestinationX())\n\t\t\t\t\tsetX(getX() + getSpeed());\n\t\t\t\tif(getX() > getDestinationX())\n\t\t\t\t\tsetX(getX() - getSpeed());\n\t\t\t\tif(getY() < getDestinationY())\n\t\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\tif(getY() > getDestinationY())\n\t\t\t\t\tsetY(getY() - getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void ack() {\n }", "public void eat()\n {\n System.out.println(\"You have eaten now and you are not hungry any more\");\n }", "@Override\n\tpublic void eat() {\n\t\tsuper.eat();\n\t\tSystem.out.println(\"喝奶.......\");\n\t}", "public void eat(){\n\t\tSystem.out.println(\"I am the eat methods\");\t\t\t\t\r\n\t}", "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"狗吃肉\");\n\t}", "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"eat grass\");\n\t}", "private void startSailing(){\n\t\t\n\t\tgame.setOnKeyPressed(new EventHandler<KeyEvent>(){\n\t\t\n\t\t\t@Override\n\t\t\tpublic void handle(KeyEvent ke) {\n\t\t\t\tswitch(ke.getCode()){\n\t\t\t\tcase RIGHT:\n\t\t\t\t\tgameFactory.getShip().goEast();\n\t\t\t\t\tbreak;\n\t\t\t\tcase LEFT:\n\t\t\t\t\tgameFactory.getShip().goWest();\n\t\t\t\t\tbreak;\n\t\t\t\tcase UP:\n\t\t\t\t\tgameFactory.getShip().goNorth();\n\t\t\t\t\tbreak;\n\t\t\t\tcase DOWN:\n\t\t\t\t\tgameFactory.getShip().goSouth();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//call gameFactory to update all the ship locations, check treasures left\n\t\t\t\tgameFactory.updateScreen(gameplayPane);\n\t\t\t\tif(OceanMap.getInstance().getGameWin() && !gameOver){\n\t\t\t\t\tgameOver = true;\n\t\t\t\t\tgameFactory.gameWonAnim(gameplayPane, menu, window);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(OceanMap.getInstance().getGameLose() && !gameOver){\n\t\t\t\t\tgameOver = true;\n\t\t\t\t\tgameFactory.gameLostAnim(gameplayPane, menu, window);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void handle(long now) {\n if (attackCD > 0) {\n attackCD--;\n }\n if (input.contains(\"J\") && attackCD <= 0) {\n currSpeed = 0;\n attackCD = 50;\n int temp = attack();\n damageWindow = temp;\n moveCD = temp;\n } else if (input.size() > 1) {\n currSpeed = speed * speedWeaponModifier * speedBuffModifier / Math.sqrt(2);\n } else {\n currSpeed = speed * speedWeaponModifier * speedBuffModifier;\n }\n if (damageWindow > 0) {\n for (Monster monster : GameLoop.getMonsters()) {\n if (Controller.getPlayer().intersects(monster) && !(weapon instanceof Bow)) {\n System.out.println(\"Player damaged monster for \" + damage * damageWeaponModifier * damageBuffModifier);\n monster.takeDamage(damage * damageWeaponModifier * damageBuffModifier);\n damageWindow = 0;\n }\n }\n damageWindow--;\n }\n if (damageCooldown > 0 && damageCooldown % 15 == 0) { // got hit\n invisibilityCd = 5; // set invis frames\n }\n damageCooldown--; // so dmgcd triggers for first frame (60 % 15)\n\n if (moveCD > 0) {\n moveCD--;\n } else {\n if (input.contains(\"A\") && positionX > 10) {\n imageView.setScaleX(1);\n moveRelative(-currSpeed, 0);\n direction = 0;\n }\n if (input.contains(\"D\") && positionX + width < (scene.getWidth() - 25)) {\n imageView.setScaleX(-1);\n moveRelative(currSpeed, 0);\n direction = 1;\n }\n if (input.contains(\"W\") && positionY > 10) {\n moveRelative(0, -currSpeed);\n }\n if (input.contains(\"S\") && positionY + height < (scene.getHeight() - 55)) {\n moveRelative(0, currSpeed);\n }\n }\n\n if (invisibilityCd > 0) { // Overwrite setScale if invis frames\n imageView.setScaleX(0);\n } else if (imageView.getScaleX() == 0) { // If player didn't move\n if (direction == 0) { // same direction\n imageView.setScaleX(1);\n } else if (direction == 1) {\n imageView.setScaleX(-1);\n }\n }\n invisibilityCd--;\n\n\n //Keyboard transitions to screens\n if (input.contains(\"I\")) {\n containedI = true;\n }\n if (containedI && !input.contains(\"I\")) { //Go to inventory if I was released.\n Controller.goToInventory();\n input.remove(\"I\");\n containedI = false;\n }\n\n }", "@Override\n public void onShake(int count) {\n boardstate.scramble();\n resetBoard = new Board(boardstate);\n change(0);\n gb.notifyDataSetChanged();\n\n }", "public void ActonCard() {\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n client.sendMessage(new BuzzInMessage(teamIndex));\n }", "public void hungry()\r\n {\r\n \tSystem.out.println(\"I'm hungry!! Feed me!!\");\r\n \tbarking();\r\n }", "public void showHintAtWaypoint(final int instruction){\n\n LayoutInflater inflater = getLayoutInflater();\n View layout = inflater.inflate(R.layout.toast, (ViewGroup) findViewById(R.id.toast_layout));\n ImageView image = (ImageView) layout.findViewById(R.id.toast_image);\n //image.setImageResource(R.drawable.img_compass);\n String turnDirection = null;\n Vibrator myVibrator = (Vibrator) getApplication().getSystemService(Service.VIBRATOR_SERVICE);\n\n Toast toast = new Toast(getApplicationContext());\n toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);\n toast.setDuration(Toast.LENGTH_SHORT);\n toast.setView(layout);\n\n if(instruction== ARRIVED_NOTIFIER){\n\n turnDirection = YOU_HAVE_ARRIVE;\n image.setImageResource(R.drawable.arrived_image);\n tts.speak(turnDirection, TextToSpeech.QUEUE_ADD, null);\n toast.show();\n myVibrator.vibrate(800);\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n finish();\n\n }\n else if(instruction== WRONGWAY_NOTIFIER){\n turnDirection = \"正在幫您重新規劃路線\";\n tts.speak(turnDirection, TextToSpeech.QUEUE_ADD, null);\n image.setImageResource(R.drawable.rerouting_image);\n toast.show();\n myVibrator.vibrate(1000);\n }\n else if(instruction== MAKETURN_NOTIFIER) {\n\n switch (turnNotificationForPopup) {\n\n case RIGHT:\n turnDirection = PLEASE_TURN_RIGHT;\n image.setImageResource(R.drawable.right_arrow);\n break;\n case LEFT:\n turnDirection = PLEASE_TURN_LEFT;\n image.setImageResource(R.drawable.left_arrow);\n break;\n case FRONT_RIGHT:\n turnDirection = PLEASE_TURN__FRONT_RIGHT;\n image.setImageResource(R.drawable.frontright_arrow);\n break;\n case FRONT_LEFT:\n turnDirection = PLEASE_TURN_FRONT_LEFT;\n image.setImageResource(R.drawable.frontleft_arrow);\n break;\n case REAR_RIGHT:\n turnDirection = PLEASE_TURN__REAR_RIGHT;\n image.setImageResource(R.drawable.rearright_arrow);\n break;\n case REAR_LEFT:\n turnDirection = PLEASE_TURN_REAR_LEFT;\n image.setImageResource(R.drawable.rearleft_arrow);\n break;\n case FRONT:\n turnDirection = PLEASE_GO_STRAIGHT;\n image.setImageResource(R.drawable.up_arrow);\n break;\n case ELEVATOR:\n turnDirection = PLEASE_TAKE_ELEVATOR;\n image.setImageResource(R.drawable.elevator);\n break;\n case STAIR:\n turnDirection = PLEASE_WALK_UP_STAIR;\n image.setImageResource(R.drawable.stair);\n break;\n case \"goback\":\n turnDirection = \" \";\n image.setImageResource(R.drawable.turn_back);\n break;\n\n\n }\n\n tts.speak(turnDirection, TextToSpeech.QUEUE_ADD, null);\n\n Log.i(\"showHint\", \"showHint\");\n if(turnNotificationForPopup != null){\n toast.show();\n Log.i(\"showHint\", \"show\");\n\n }\n\n\n myVibrator.vibrate(new long[]{50, 100, 50}, -1);\n }\n\n }", "private void snackBar(String msg) {\n MySnackBar.createSnackBar(Objects.requireNonNull(getContext()), Objects.requireNonNull(getView()), msg);\n }", "private void gotoSTK(){\n\t short buf_length = (short) MyText.length;\n\t short i = buf_length;\n\t initDisplay(MyText, (short) 0, (short) buf_length, (byte) 0x81,(byte) 0x04);\n}", "@Override\n public void handleMessage(Message msg) {\n switch (msg.what){\n case 0:\n //Bitmap b = (Bitmap) msg.obj;\n //image2Photo.setImageBitmap(bitmap);\n for (int i=0;i < nFace;i++){\n if (eyesDistance.get(i) != 0){\n setStickers(i);\n }\n }\n\n System.out.println(\"检测完毕\");\n break;\n case 1:\n //showProcessBar();\n break;\n case 2:\n //progressBar.setVisibility(View.GONE);\n //detectFaceBtn.setClickable(false);\n break;\n case SHOW_RESPONSE:\n String response = (String) msg.obj;\n Log.d(\"reponse\",response);\n // 在这里进行UI操作,将结果显示到界面上\n //text = (TextView)findViewById(R.id.text);\n //text.setText(response);\n if (ferresponse.equals(\"0\")){\n //happiness\n setFerSticker(0);\n }\n else if (ferresponse.equals(\"1\")){\n //calm\n setFerSticker(1);\n }\n else if (ferresponse.equals(\"2\")){\n //angry\n setFerSticker(2);\n }\n break;\n default:\n break;\n }\n }", "private void busquets() {\n\t\ttry {\n\t\t\tThread.sleep(5000); // espera, para dar tempo de ver as mensagens iniciais\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint xInit = -25;\n\t\tint yInit = -10;\n\t\tplayerDeafaultPosition = new Vector2D(xInit*selfPerception.getSide().value(), yInit *selfPerception.getSide().value());\n\t\t\n\t\twhile (commander.isActive()) {\n\t\t\tupdatePerceptions(); // deixar aqui, no começo do loop, para ler o resultado do 'move'\n\t\t\tswitch (matchPerception.getState()) {\n\t\t\tcase BEFORE_KICK_OFF:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase PLAY_ON:\n\t\t\t\tstate = State.ATTACKING;\n\t\t\t\texecuteStateMachine();\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\t//if(closer)\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_LEFT: // escanteio time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_RIGHT: // escanteio time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_IN_LEFT: // lateral time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\tcase KICK_IN_RIGHT: // lateal time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_LEFT: // Tiro livre time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_RIGHT: // Tiro Livre time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_LEFT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_RIGHT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void msgGotHungry() {\n\t\t\n\t}", "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 }", "public void handStarted(int position, GameState gs, Card[] cards) {\r\n }", "public void action() {\n MessageTemplate template = MessageTemplate.MatchPerformative(CommunicationHelper.GUI_MESSAGE);\n ACLMessage msg = myAgent.receive(template);\n\n if (msg != null) {\n\n /*-------- DISPLAYING MESSAGE -------*/\n try {\n\n String message = (String) msg.getContentObject();\n\n // TODO temporary\n if (message.equals(\"DistributorAgent - NEXT_SIMSTEP\")) {\n \tguiAgent.nextAutoSimStep();\n // wykorzystywane do sim GOD\n // startuje timer, zeby ten zrobil nextSimstep i statystyki\n // zaraz potem timer trzeba zatrzymac\n }\n\n guiAgent.displayMessage(message);\n\n } catch (UnreadableException e) {\n logger.error(this.guiAgent.getLocalName() + \" - UnreadableException \" + e.getMessage());\n }\n } else {\n\n block();\n }\n }", "private static void scoutCode() throws GameActionException {\n\t\tSignal[] incomingSignals = rc.emptySignalQueue();\n\t\tSignal[] signals;\n\t\tif (incomingSignals.length>125) {\n\t\t\tsignals = new Signal[125];\n\t\t\tfor(int i=0; i<125; i++) {\n\t\t\t\tsignals[i]=incomingSignals[i];\n\t\t\t}\n\t\t} else {\n\t\t\tsignals = incomingSignals;\n\t\t}\n\t\tfor(Signal s: signals){\t\n\t\t\tint[] message = s.getMessage();\n\t\t\tif(s.getTeam()==rc.getTeam()){\n\t\t\t\tif(message!=null){\n\t\t\t\t\tif(message[0]%10==0){\n\t\t\t\t\t\tcenter= s.getLocation();\n\t\t\t\t\t\tint r = message[0]/10;\n\t\t\t\t\t\tr = (int) Math.pow(r,.5);\n\t\t\t\t\t\tradius=(int) Math.pow(r,2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Broadcast Enemies\n\t\tRobotInfo[] enemyArray = rc.senseHostileRobots(rc.getLocation(), 1000000);\n\t\tfor(RobotInfo r: enemyArray) {\n\t\t\tMapLocation l = r.location;\n\t\t\tint m2=l.x*100000+l.y;\n\t\t\tint m1=(int)(r.health)*10+1;\n\t\t\tm1 += Utility.castType(r)*100000;\n\t\t\trc.broadcastMessageSignal(m1, m2, 53);\n\t\t}\n\t\tMapLocation travel=scoutFind();\n\t\tif(rc.getLocation()!=travel){\n\t\t\tturretMove(travel);\n\t\t}\n\t}", "private void SnackShowTop(String message, View view) {\n Snackbar snack = Snackbar.make(view, message, Snackbar.LENGTH_LONG);\n View view_layout = snack.getView();\n FrameLayout.LayoutParams params = (FrameLayout.LayoutParams) view_layout.getLayoutParams();\n params.gravity = Gravity.TOP;\n view_layout.setLayoutParams(params);\n snack.show();\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tsuper.run();\n\t\t\t\t\twhile (isonshow) {\n\t\t\t\t\t\tfor (int i = 0; i<(0.0416*scrrenHeight); i++) {\n\t\t\t\t\t\t\t//Log.i(\"thread\", i+\"\");\n\t\t\t\t\t\t\tsc.scrollTo(0, i);\n\t\t\t\t\t\t\t//handler11.sendEmptyMessage(i);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsleep(20);\n\n\t\t\t\t\t\t\t\tif(!isonshow){\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}else{}\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\tfor (int i = 0; i < 20; i++) {\n\n\t\t\t\t\t\t\t\tsleep(40);\n\t\t\t\t\t\t\t\tif(!isonshow){\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}else{}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tsc.scrollTo(0, 0);\n\n\t\t\t\t\t\thandler11.sendEmptyMessage(0);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsleep(80);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}", "private void sendSignal(){\n\t\tSystem.out.println(inputLine + \"test\");\n\t\tMessageContent messageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_RANDOM);\n\t\tif(inputLine.equals(Constants.BUTTON_1_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_BEDROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_1_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_BEDROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_2_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_KITCHEN, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_2_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_KITCHEN, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_3_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_LIVINGROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_3_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_LIVINGROOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_4_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_RANDOM, \"0\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_4_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.REMOTE_CONTROL_AGENT, Constants.PLACE_RANDOM, \"0\");\n\t\t\tSystem.out.println(\"oh yeah\");\n\t\t}else if(inputLine.equals(Constants.BUTTON_5_ON)){\n\t\t\tmessageContent = new MessageContent(1, Constants.SHUTTER, Constants.PLACE_LIVINGROOM);\n\t\t}else if(inputLine.equals(Constants.BUTTON_5_OFF)){\n\t\t\tmessageContent = new MessageContent(0, Constants.SHUTTER, Constants.PLACE_LIVINGROOM);\n\t\t}\n\t\t\t\t\n\t\tString json = messageContent.toJSON();\n\t\tDFAgentDescription template = new DFAgentDescription();\n ServiceDescription sd = new ServiceDescription();\n if (inputLine.equals(Constants.BUTTON_5_ON) || inputLine.equals(Constants.BUTTON_5_OFF)) {\n\t\tsd.setType(Constants.SHUTTER);\n\t\tsd.setName(Constants.PLACE_LIVINGROOM);\n } else {\n\t\tsd.setType(Constants.AUTO_SWITCH);\n\t\tsd.setName(Constants.AUTO_SWITCH_AGENT);\n }\n template.addServices(sd);\n try {\n DFAgentDescription[] result = DFService.search(myAgent, template);\n if (result.length > 0) {\n ACLMessage request = new ACLMessage(ACLMessage.REQUEST);\n if (inputLine.equals(Constants.BUTTON_5_ON) || inputLine.equals(Constants.BUTTON_5_OFF)) {\n\t\t\t\trequest.setPerformative(ACLMessage.INFORM);\n }\n for (DFAgentDescription receiver : result) {\n if (!receiver.getName().equals(myAgent.getAID())) {\n request.addReceiver(receiver.getName());\n \n }\n }\n request.setContent(json);\n myAgent.send(request);\n }\n } catch(FIPAException fe) {\n fe.printStackTrace();\n }\n\n\n\t}", "public void actionPerformed(ActionEvent e){\r\n\t\tif(e.getActionCommand().equals(\"Start\")){\r\n\t\t\ttitleImage();\r\n\t\t}\r\n\t\tif(e.getActionCommand().equals(\"Hint\")){\r\n\t\t\t//guessed = false, the user did not guess all values\r\n\t\t\tguessed = false;\r\n\t\t\t//executed = true, the hint was used\r\n\t\t\texecuted = true;\r\n\t\t\trandom();\r\n\t\t\thint(a,b,c,d,f,g);\r\n\t\t}\r\n\t\tif (e.getSource() == numberField){\r\n\t\t\t//guessed = true, the user guessed all values\r\n\t\t\tguessed = true;\r\n\t\t\tcanvas.add(matrix);\r\n\t\t\tscanTicket();\r\n\t\t\tprintArray(a,b,c,d,f,g);\r\n\t\t\tcompareArray(chArray, randArray);\r\n\t\t\tpointsImage(points);\r\n\t\t\tnumberImage();\r\n\t\t\tstringImage(ch1,ch2,ch3,ch4,ch5,ch6);\r\n\t\t\t//executed = false, the hint was not used\r\n\t\t\texecuted = false;\r\n\t\t\tmatch1 = false;\r\n\t\t\tmatch2 = false;\r\n\t\t\tmatch3 = false;\r\n\t\t\tmatch4 = false;\r\n\t\t\tmatch5 = false;\r\n\t\t\tmatch6 = false;\r\n\t\t}\r\n\t}", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "public void catchCard(){\r\n changePlace(deck);\r\n changePlace(hand);\r\n }", "public void snare();", "public void act() \n {\n move(3);\n turnAtEdge(); \n StrikeSeaHorse();\n }", "@Override\n public void run() {\n snackbar.setVisibility(View.GONE); //This will remove the View. and free s the space occupied by the View\n }", "@Override\n public void askForTagBackGrenade() throws RemoteException {\n mainPage.setRemoteController(senderRemoteController);\n mainPage.setMatch(match);\n Platform.runLater(\n () -> {\n try {\n mainPage.askForTagBackPopup();\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n }", "static void SetUpScadaAndControllers() {\n pumpForSolutionOn.setVisible(false);\n pumpForTitrationOn.setVisible(false);\n mixerOn.setVisible(false);\n valveTitrationOpened.setVisible(false);\n valveSolutionOpened.setVisible(false);\n valveWaterOpened.setVisible(false);\n valveOutOpened.setVisible(false);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n System.out.println(\"connection closed\");\n InitialClass.arduino.closeConnection();\n }\n });\n\n\n log.setFont(fontMarker);\n log.setRows(10);\n log.setPreferredSize(new Dimension(200, 400));\n log.setBackground(new Color(19, 28, 48));\n log.setForeground(Color.WHITE);\n\n\n visualPH.setBounds(460, 90, 150, 30);\n visualPH.setText(\"_.__pH\");\n visualPH.setForeground(Color.WHITE);\n visualPH.setFont(new Font(\"Montserrat\", Font.PLAIN, 32));\n\n\n JToggleButton titrationStart = new JToggleButton();\n titrationStart.setPreferredSize(new Dimension(200, 30));\n titrationStart.setText(\"Автоматическое измерение\");\n\n titrationStart.addItemListener(ev -> {\n if (ev.getStateChange() == ItemEvent.SELECTED) {\n Chart.series.clear();\n Chart.secondSeries.clear();\n Chart.dot.clear();\n titrationStart.setText(\"В процессе\");\n new Thread(auto).start();\n\n } else if (ev.getStateChange() == ItemEvent.DESELECTED) {\n forScanner = false;\n log.append(\"Завершение\" + \"\\n\");\n\n }\n });\n\n JButton washing = new JButton();\n washing.setPreferredSize(new Dimension(200, 30));\n washing.setText(\"Промывка\");\n\n washing.addActionListener(e -> {\n washing.setText(\"В процессе\");\n new Thread(new Flushing()).start();\n washing.setText(\"Промывка\");\n });\n\n JButton handMode = new JButton();\n handMode.setPreferredSize(new Dimension(200, 30));\n handMode.setText(\"Начать ручной режим\");\n\n handMode.addActionListener(e -> {\n if (handMode.getText().equals(\"Начать ручной режим\")) {\n handMode.setText(\"Включен ручной режим !\");\n titrationStart.setEnabled(false);\n washing.setEnabled(false);\n Chart.series.clear();\n Chart.secondSeries.clear();\n Chart.dot.clear();\n forScanner = true;\n new Thread(listeningThe_pH).start();\n } else if (handMode.getText().equals(\"Включен ручной режим !\")) {\n forScanner = false;\n titrationStart.setEnabled(true);\n washing.setEnabled(true);\n log.append(\"Ручной режим отключен\\n\");\n handMode.setText(\"Начать ручной режим\");\n }\n });\n\n\n JPanel flaskLevel = new JPanel();\n flaskLevel.setBounds(225, 200, 200, 200);\n flaskLevel.setBackground(Color.orange);\n\n /*\n *Setting SCADA layered window\n */\n scada.setPreferredSize(new Dimension(620, 400));\n\n scada.add(flaskLevel, 1);\n scada.add(mixerLayer, 2);\n scada.add(waterTube, 3);\n scada.add(pumpForTitration, 4);\n scada.add(pumpForSolution, 5);\n scada.add(pumpForTitrationOn, 6);\n scada.add(pumpForSolutionOn, 7);\n scada.add(mixerOn, 8);\n scada.add(valveTitrationClosed, 9);\n scada.add(valveTitrationOpened, 10);\n scada.add(valveSolutionClosed, 11);\n scada.add(valveSolutionOpened, 12);\n scada.add(valveOutClosed, 13);\n scada.add(valveOutOpened, 14);\n scada.add(valveWaterClosed, 15);\n scada.add(valveWaterOpened, 16);\n scada.add(visualPH, 17);\n\n result.setPreferredSize(new Dimension(200, 50));\n result.setText(\"0.00 ml\");\n result.setFont(new Font(\"Montserrat\", Font.PLAIN, 32));\n result.setForeground(Color.WHITE);\n\n panelRightTop.setPreferredSize(new Dimension(200, 75));\n panelRightTop.add(titrationStart);\n panelRightTop.add(washing);\n panelRightTop.setBackground(new Color(10, 70, 90));\n\n JLabel mode = new JLabel(\"Ручной режим\");\n mode.setForeground(Color.WHITE);\n mode.setFont(fontMarker);\n\n panelRightBot.setLayout(new FlowLayout());\n panelRightBot.setPreferredSize(new Dimension(200, 325));\n panelRightBot.setBackground(new Color(19, 28, 48));\n panelRightBot.add(mode);\n panelRightBot.add(handMode);\n panelRightBot.add(addToggle(\"Помпа раствора\", '5', '4', pumpForSolutionOn));\n panelRightBot.add(addToggle(\"Помпа титранта\", '3', '2', pumpForTitrationOn));\n panelRightBot.add(addToggle(\"Клапан для воды\", 'D', 'C', valveWaterOpened));\n panelRightBot.add(addToggle(\"Клапан для раствора\", '9', '8', valveSolutionOpened));\n panelRightBot.add(addToggle(\"Клапан для титранта\", 'B', 'A', valveTitrationOpened));\n panelRightBot.add(addToggle(\"Клапан для слива\", '1', '0', valveOutOpened));\n panelRightBot.add(addToggle(\"Мешалка\", '7', '6', mixerOn));\n panelRightBot.add(addToggle(\"Датчик\", 'Y', 'X'));\n panelRightBot.add(result);\n\n panelRight.setLayout(new BorderLayout());\n panelRight.setPreferredSize(new Dimension(200, 400));\n panelRight.add(panelRightBot, BorderLayout.CENTER);\n panelRight.add(panelRightTop, BorderLayout.NORTH);\n panelRight.setBackground(new Color(19, 28, 48));\n\n panel.setLayout(new BorderLayout());\n panel.setBackground(new Color(19, 28, 48));\n panel.add(scada, BorderLayout.WEST);\n panel.add(panelRight, BorderLayout.CENTER);\n panel.add(log, BorderLayout.EAST);\n\n panelRightTop.setLayout(new FlowLayout());\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setMinimumSize(new Dimension(850, 500));\n frame.add(panel);\n frame.pack();\n frame.setVisible(true);\n frame.setLocationRelativeTo(null);\n }", "public void act() \n {\n // Add your action code here.\n contaP++;\n if(contaP == 25)\n {\n baja();\n contaP=0;\n }\n }", "public boolean My_Turn(BattleshipServer server, BattleshipClient client) {\r\n\t\t\tdisplay.putStaticLine(\"\");\t\r\n\t\t\tdisplay.putStaticLine(\"Enter the position you want to Attack (i.e. A2) \");\r\n\t\t\tdisplay.printScreen();\r\n\t\t\tdisplay.printPrompt(\"user> \");\r\n\t\t\ttry{\r\n\t\t\tattack_coord=Get_Input();\r\n\t\t\t}catch(IOException ioe){\r\n\t\t\t\tattack_coord=\"INVALID COMMAND\";\r\n\t\t\t}\r\n\t\twhile(!Validate_Input(attack_coord)){\r\n\t\t\tdisplay.printPrompt(\"user> \");\r\n\t//\t\tdisplay.putStaticLine(\"\");\t\r\n\t//\t\tdisplay.putStaticLine(\"Enter the position you want to Attack (i.e. A2) \");\r\n\t\t\ttry{\r\n\t\t\t\tattack_coord=Get_Input();\r\n\t\t\t\t}catch(IOException ioe){\r\n\t\t\t\t\tattack_coord=\"INVALID COMMAND\";\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\t * send coordinates with C in front to indicate they are coordinate\r\n\t\t\t */\r\n\t\t\tif(server!=null)\r\n\t\t\t\tserver.Send(\"C\" + attack_coord); \r\n\t\t\telse if(client!=null)\r\n\t\t\t\tclient.Send(\"C\" + attack_coord);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"Error with connection\");\r\n\t\t\treturn false;\r\n\t\t}\t\t\r\n\t\t/*\r\n\t\t * We now have a valid guess and have sent it to the opponent. Update the Display\r\n\t\t */\r\n\t\t\r\n\t\tboolean hit=false;\r\n\t\t\r\n\t\t/*\r\n\t\t * update hit_history\r\n\t\t */\r\n\t\thisBoard.hit_history[xcoor][ycoor]=1; \r\n\t\t\t// Check for sunk ships and update the board accordingly.\r\n\r\n\t\t\r\n\t\tif(hisBoard.hit_or_miss(xcoor, ycoor)){\r\n\t\t\thit=true;\r\n\t\t\tSound.playSound(\"res/explosion.wav\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSound.playSound(\"res/Missile_Incoming_FlyBy.wav\");\r\n\t\t}\r\n\t\t\r\n\t\tString sunk=hisBoard.check_sunk();\r\n\t\tif(sunk!=\"nothing\"){\r\n\t\t\tSound.playSound(\"res/bubbles.wav\");\r\n\t\t\tif(hisBoard.check_all_sunk()){\r\n\t\t\t\tvictory=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t// Now that all the calculations are done, print the display.\r\n\t\tdisplay.clearScreen();\r\n\t\tthis.Display_Boards();\r\n\t\tdisplay.putStaticLine(\"\");\r\n\t\tif(hit)\r\n\t\t\tdisplay.putStaticLine(attack_coord + \"... Hit!\");\r\n\t\telse\r\n\t\t\tdisplay.putStaticLine(attack_coord + \"... Miss\");\r\n\t\tdisplay.putStaticLine(\"\");\r\n\t\tif(sunk!=\"nothing\")\r\n\t\t\tdisplay.putStaticLine(\"You sunk his \" + sunk); //not sure of syntax on this\r\n\t\tdisplay.putStaticLine(\"\");\r\n\t\tif(victory)\r\n\t\t\tdisplay.putStaticLine(\"You WIN!!!!!!\");\r\n\t\t\r\n\t\t\r\n\t\t\t// It's not my turn anymore\r\n\t\thit=false;\r\n\t\tthis.isTurn=false;\r\n\t\treturn true;\r\n}", "private void startOpeningAnimation(){\n new Timer(8, new ActionListener() {\n double cardDist;\n\n @Override\n public void actionPerformed(ActionEvent event) {\n\n cardDist = (getHeight()-MARGIN*2) - cardHeight;\n cardHeight += cardDist / 4;\n\n backOpacity += 10;\n\n if (Math.abs(cardDist) <= 5){\n cut(event);\n }\n }\n private void cut(ActionEvent event){\n ((Timer)event.getSource()).stop();\n requestFocus();\n firstTime = false;\n }\n }).start();\n }", "@Override\n public void userRequestedAction()\n {\n inComm = true;\n view.disableAction();\n\n // switch to loading ui\n view.setActionText(\"Loading...\");\n view.setStatusText(loadingMessages[rand.nextInt(loadingMessages.length)]);\n view.setStatusColor(COLOR_WAITING);\n view.loadingAnimation();\n\n // switch the status of the system\n if (isArmed) disarmSystem();\n else armSystem();\n isArmed = !isArmed;\n\n // notify PubNub\n }", "void eat() {\n\t\tSystem.out.println(\"eating...\");\n\t}", "@Override\n\tpublic void msgAtCook() {\n\t\t\n\t}", "public void eatApple(){\n int rowsOld = snakePartList.get(SnakePartMaxID).getSnakePartRowsOld();\n int collsOld = snakePartList.get(SnakePartMaxID).getSnakePartCollsOld();\n\n snakePartList.add(new SnakePart(rowsOld, collsOld, SnakePartMaxID));\n board[rowsOld][collsOld] = 'S';\n SnakePartMaxID++;\n appleCount++;\n generateNewBoardAfterWin();\n spawnApples();\n }", "public void standBJ() {\n\t\tif (blackjack.isOkBet()) {\n\t\t\t((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)).standAction();\n\n\t\t\twhile (blackjack.getCount(2, false, 17)) {\n\t\t\t\t((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)).addCard(blackjack.giveCard(2), 2);\n\t\t\t}\n\n\t\t\tif (blackjack.getCount(2, true, 21)) {\n\t\t\t\tJOptionPane.showMessageDialog(((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)), \"You win!\",\n\t\t\t\t\t\t\"DEALER BUSTS\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\tblackjack.stand(true);\n\t\t\t} else {\n\t\t\t\tif (blackjack.getCount(1, true, blackjack.getCardCount(2))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)),\n\t\t\t\t\t\t\t\"You win!\", \"YOU WIN\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\t\tblackjack.stand(true);\n\t\t\t\t} else if (blackjack.getCount(1, false, blackjack.getCardCount(2))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)),\n\t\t\t\t\t\t\t\"You lose!\", \"YOU LOSE\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\t\tblackjack.stand(false);\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)),\n\t\t\t\t\t\t\t\"You push.\", \"PUSH\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresetBJTable();\n\t\t} else\n\t\t\tJOptionPane.showMessageDialog(manager.getPanel(Constants.BJ_VIEW_NAME), \"You must bet something\", \"ERROR\",\n\t\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t}", "void bake() {\n\t\tSystem.out.println(\"Bake for 25 mins at 350\\u00b0\");\n\t}", "@Override\n public void receiveInfo(GameInfo info) {\n\n //only update the state if info is a game state\n if (info instanceof ShogiState) {\n\n // update our state, then display\n this.state = (ShogiState) info;\n this.myPieces = state.getBoard();\n\n if (usingRulesScreen) return;\n if (usingDropsScreen) return;\n if (usingHistoryScreen) return;\n\n\n gui = myActivity.findViewById(R.id.shogiBoard);\n gui.myPieces = this.myPieces;\n\n //finds the player's king\n int kingRow = 0;\n int kingCol = 0;\n for(int i = 0; i < 9; i++){\n for(int j = 0; j < 9; j++){\n if (myPieces[i][j] != null){\n Piece possKing = myPieces[i][j];\n if(possKing.getPlayer() == 0 &&\n possKing.getType() == Piece.PieceType.KING){\n kingRow = i;\n kingCol = j;\n }\n }\n }\n }\n\n //if the king is in check, notify the player\n if(state.determinePlayerInCheck(0, this.myPieces, kingRow, kingCol)){\n new AlertDialog.Builder(getTopView().getContext())\n .setTitle(\"You are in check!\")\n .setMessage(\"Your king is in danger. You should move it.\")\n\n // A null listener allows the button to dismiss the dialog and take no further action.\n .setNegativeButton(\"Ok\", null)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }\n\n\n if (info instanceof IllegalMoveInfo) {\n\n Log.d(\"ShogiHP\", \"illegal move\");\n\n\n\n if (super.getflash()) {\n\n try {\n flashButton();\n } catch (InterruptedException ignored) {\n\n\n }\n }\n\n gui.invalidate();\n }\n\n gui.invalidate();\n\n }\n }", "private void placeKitOnInspection(MyKit mk)\n\t{\n\t\tmyStand.setSlotThreeTaken();\n\t\tif(guiEnable){\n\t\t\tthis.kitRobotGUI.DoMoveKitToCameraInspection(mk.kit.guikit, mk.kit.position);\n\t\t\tprint(\"Moving Kit to Inspection Slot\");\n\t\t\ttry {\n\t\t\t\t//guiControl = new Semaphore(0,true);//TODO: take away after gui fixes it\n\t\t\t\tguiControl.acquireUninterruptibly();\n\t\t\t} catch (Exception e) {\n\t\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tprint(\"GUI moving Kit to Camera Inspection. Finished moving. Telling Agent.\");\n\n\n\t\tmyStand.setSlotAvilable(mk.slot);\n\t\tmk.kit.position = KitPosition.POSITION3;\n\t\tprint(\"Kit Slot number : \"+mk.slot+\" is Available but slot 3 is taken\");\n\t\tmk.status = KitStatus.On_CameraInspection;\n\t\tkitCamera.msgInspectKit(mk.kit);\n\t\tstateChanged();\n\t}", "public void actionPerformed (ActionEvent event) {\n RainRunGUI.c1.show(RainRunGUI.cards, RainRunGUI.MENUPANEL);\n }", "public static void switchCard(String s){cl.show(cards,s);}", "public void playSnare() {\n\t\tSystem.out.println(\"bang bang ba-bang\");\n\t\t\n\t}", "public void handle(ActionEvent event) {\n if (timer==null){\r\n startTimer();\r\n }\r\n riderAni.setImage(image2);\r\n if (beginningQueueSize==1 || offset==0||(! Controller.floorDirectionCalled.get(startFloor-1).equals(direction)&&!Controller.floorDirectionCalled.get(startFloor-1).equals(\"BOTH\"))){\r\n Controller.getElevator(startFloor,direction);\r\n }\r\n }", "public void finishPassing() {\n\t\n\tmyGlass = null;\n controller.donePass();\n // System.out.println(\"done animating\");\n}", "@Override\n public void run() {\n ElapsedTime time = new ElapsedTime();\n time.reset();\n sleep(3000);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n //sh.pivotStop.setPosition(.55);\n sh.hitRing();\n sleep(500);\n //sh.pivotDown();\n sh.hitRing();\n sleep(500);\n sh.withdraw();\n sh.lift.setPower(0);\n sh.lift.setPower(0);\n wobble.wobbleUp();\n sh.pivotStop.setPosition(1);\n loop.end();\n\n\n }", "@Override\n\tpublic void nhanTinNhan() {\n\n\t}", "@Override\r\n\tpublic void actionFly() {\n\t\tSystem.out.println(\"날 수 있다.\");\r\n\t}", "void onSnackBarActionClicked(int uniqueId, View view);", "public void snakeUp(){\r\n\t\tspeedUp();\r\n\t\tpoints += 100;\r\n\t}", "public void DisplaySnackBarAboveBar(String message, Boolean setAction) {\n int marginSide = 0;\n int marginBottom = 150;\n Snackbar snackbar = Snackbar.make(\n coordinatorLayout,\n message,\n Snackbar.LENGTH_LONG\n );\n\n if (setAction) {\n snackbar.setAction(\"Share Now\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent sendIntent = new Intent();\n sendIntent.setAction(Intent.ACTION_SEND);\n sendIntent.putExtra(Intent.EXTRA_TEXT, \"please visit https://www.noobsplanet.com\");\n sendIntent.setType(\"text/plain\");\n startActivity(Intent.createChooser(sendIntent, \"Send to \"));\n }\n });\n }\n\n View snackbarView = snackbar.getView();\n CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) snackbarView.getLayoutParams();\n params.setMargins(\n params.leftMargin + marginSide,\n params.topMargin,\n params.rightMargin + marginSide,\n params.bottomMargin + marginBottom + 100\n );\n\n snackbarView.setLayoutParams(params);\n snackbar.show();\n }", "public void eat(){\n System.out.println(\"Bat Eatz\");\n }", "public Action play() {\n\t MobileDevice mobileDevice = MobileDevice.getInstance();\r\n\t\tUiDevice uiDevice = UiDevice.getInstance();\r\n\t\tint i = 0;\r\n\t\twhile (i < 5 && uiDevice.swipe(340, 180, 340, 660, 10)) i++;\r\n\t\ttry {\r\n\t\t\tThread.sleep(1000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t ApplicationInfor.errorLogging(\"user tweet process: sleep exception, msg=\" + e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\tQQMessage qqMessage = null;\r\n ArrayList<QQMessage> messageList = new ArrayList<QQMessage>();\r\n\t\t// get the first picture.\r\n\t\tqqMessage = this.getMessageItem();\r\n\t\tint errorTimes = 0;\r\n\t\t\r\n\t\twhile (null != qqMessage.uiItemObj && qqMessage.uiItemObj.exists()) {\r\n\t\t boolean isValidMessage = false;\r\n\t\t\tif (QQMessage.QQMessageType.PICTURE == qqMessage.messageType) {\r\n\t\t\t try {\r\n\t\t // get the image info.\r\n\t\t\t\t qqMessage.uiItemObj.click();\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\tint retryTime = 0;\r\n\t\t\t\t\tfor (retryTime = 0; retryTime < 3; retryTime++) {\r\n \t\t\t\t\tUiObject imgFullObj = new UiObject(new UiSelector().className(\"android.widget.ImageButton\"));\r\n \t\t\t\t\tif (!imgFullObj.exists()) {\r\n \t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: image full object not exist!\");\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\timgFullObj.click();\r\n \t\t\t\t\t\tUiObject saveButton = new UiObject(new UiSelector().text(\"保存到手机\"));\r\n \t\t\t\t\t\tif (!saveButton.exists()) {\r\n \t\t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: save button not found.\");\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tsaveButton.click();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tUiObject replaceButton = new UiObject(new UiSelector().text(\"替换\"));\r\n \t\t\t\t\t\tif (replaceButton.exists()) {\r\n \t\t\t\t\t\t\treplaceButton.click();\r\n \t\t\t\t\t\t}\r\n \t\t uiDevice.pressBack();\r\n \t\t isValidMessage = true;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (isValidMessage) {\r\n \t\t\t\t\t break;\r\n \t\t\t\t\t}\r\n \t Thread.sleep(1000);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!isValidMessage) {\r\n\t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: get imsage all retry failed!!!\");\r\n\t\t\t\t\t}\r\n\t\t\t } catch (UiObjectNotFoundException | InterruptedException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"message picture: save the picture exception, msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t} else if (QQMessage.QQMessageType.VOICE == qqMessage.messageType) {\r\n\t\t\t try {\r\n\t\t\t\t // get the voice info.\r\n\t\t\t\t qqMessage.text = qqMessage.uiItemObj.getText().trim();\r\n\t\t\t\t qqMessage.uiItemObj.dragTo(qqMessage.uiItemObj, 50);\r\n\t\t\t\t UiObject collectionButtonObj = new UiObject(new UiSelector().text(\"收藏\"));\r\n\t\t\t\t if (!collectionButtonObj.exists()) {\r\n\t\t\t\t ApplicationInfor.errorLogging(\"collect audios: collection button not found.\");\r\n\t\t\t\t uiDevice.pressBack();\r\n\t\t\t\t } else {\r\n\t\t\t\t collectionButtonObj.click();\r\n UiObject collectButtonObj = new UiObject(new UiSelector().text(\"收藏\"));\r\n if (!collectionButtonObj.exists()) {\r\n ApplicationInfor.errorLogging(\"collect audios: collectionButton edit not exist.\");\r\n } else {\r\n collectButtonObj.click();\r\n File collectionDir = new File(sCollectionPrefixPath);\r\n if (!collectionDir.isDirectory()) {\r\n ApplicationInfor.errorLogging(\"Collection directory not exist.\");\r\n } else {\r\n File[] audios = collectionDir.listFiles(new FileFilter() {\r\n public boolean accept(File file) {\r\n if (file.getName().startsWith(\"collection_\")) {\r\n return false;\r\n }\r\n if (file.getName().endsWith(\".slk\")) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n });\r\n if (1 != audios.length) {\r\n ApplicationInfor.warningLogging(\"autios length not 1, length = \" + String.valueOf(audios.length));\r\n }\r\n if (0 < audios.length) {\r\n File curAudiosFile = audios[0];\r\n UUID uuid = UUID.randomUUID();\r\n String newFileName = uuid.toString() + \".slk\";\r\n File newFile = new File(curAudiosFile.getParent(), newFileName);\r\n if (!curAudiosFile.renameTo(newFile)) {\r\n ApplicationInfor.errorLogging(\"audios process: rename file failed!\");\r\n } else {\r\n qqMessage.messageFile = newFile;\r\n isValidMessage = true;\r\n }\r\n }\r\n }\r\n }\r\n \r\n\t\t\t\t }\r\n\t\t\t } catch (UiObjectNotFoundException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"collect audios: exception! msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t} else if (QQMessage.QQMessageType.TEXT == qqMessage.messageType) {\r\n\t\t\t try {\r\n \t\t\t // get the text info.\r\n \t\t\t qqMessage.text= qqMessage.uiItemObj.getText().trim();\r\n \t\t\t isValidMessage = true;\r\n\t\t\t } catch (UiObjectNotFoundException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"message text: exception! msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\tif (isValidMessage) {\r\n\t\t\t messageList.add(qqMessage);\r\n\t\t\t errorTimes = 0;\r\n\t\t\t} else {\r\n\t errorTimes += 1;\r\n\t\t\t if (errorTimes < 5) {\r\n\t\t\t i = 0;\r\n\t\t\t while (i < 5 && uiDevice.swipe(340, 180, 340, 660, 10)) i++;\r\n\t\t\t try {\r\n\t\t\t Thread.sleep(1000);\r\n\t\t\t } catch (InterruptedException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"user tweet process: sleep exception, msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t } else {\r\n\t\t\t errorTimes = 0;\r\n\t\t\t ApplicationInfor.errorLogging(\"Pull up 5 times but not work.\");\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\t// delete the user item.\r\n\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t try {\r\n \t\t\t qqMessage.uiItemObj.dragTo(qqMessage.uiItemObj, 50);\r\n \t\t\t UiObject rightButton = new UiObject(new UiSelector().description(\"right\"));\r\n \t\t\t if (rightButton.exists()) {\r\n \t\t\t rightButton.click();\r\n \t\t\t }\r\n \t\t\t\tUiObject delButton = new UiObject(new UiSelector().text(\"删除\"));\r\n \t\t\t\tif (!delButton.exists()) {\r\n \t\t\t\t ApplicationInfor.warningLogging(\"user tweet process: delete button not found.\");\r\n \t\t\t\t} else {\r\n \t\t\t\t\tdelButton.click();\r\n \t\t\t\t\tdelButton = new UiObject(new UiSelector().text(\"删除\"));\r\n \t\t\t\t\tif (delButton.exists()) {\r\n \t\t\t\t\t\tdelButton.click();\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: delete button accept not found.\");\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tif (QQMessage.QQMessageType.PICTURE == qqMessage.messageType) {\r\n \t\t\t\t UiObject imgFullObj = new UiObject(new UiSelector().className(\"android.widget.ImageButton\"));\r\n \t\t\t\t if (imgFullObj.exists()) {\r\n \t\t\t\t uiDevice.pressBack();\r\n \t\t\t\t }\r\n \t\t\t\t}\r\n \t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (UiObjectNotFoundException | InterruptedException e) {\r\n\t ApplicationInfor.errorLogging(\"user tweet process: get the img exception, msg=\" + e.getMessage());\r\n\t } \r\n\t\t\t} \r\n\t\t\tqqMessage = this.getMessageItem();\r\n\t\t}\r\n\t\t\r\n\t\t// get the QQ number\r\n\t\tString qqNum = \"\";\r\n\t\tUiObject qqObj = new UiObject(new UiSelector().resourceId(\"com.tencent.mobileqq:id/title\"));\r\n try {\r\n\t\t if (qqObj.exists()) {\r\n qqNum = qqObj.getText();\r\n uploadFiles(qqNum, messageList);\r\n\t\t } else {\r\n\t\t ApplicationInfor.errorLogging(\"user tweet process: QQ number not found.\");\r\n\t\t }\r\n\t } catch (UiObjectNotFoundException e) {\r\n\t ApplicationInfor.errorLogging(\"user tweet process: post the server exception, msg = \" + e.getMessage());\r\n }\r\n \r\n // clear gray column.\r\n UiObject grayColumnObj = new UiObject(new UiSelector().className(\"android.widget.AbsListView\").childSelector(\r\n new UiSelector().className(\"android.widget.LinearLayout\")));\r\n boolean isGrayColumnExists = grayColumnObj.exists(); \r\n UiObject titleTextObj = new UiObject(new UiSelector().resourceId(\"com.tencent.mobileqq:id/ivTitleName\"));\r\n String title = \"\";\r\n if (titleTextObj.exists()) {\r\n try {\r\n title = titleTextObj.getText();\r\n } catch (UiObjectNotFoundException e) {\r\n ApplicationInfor.errorLogging(\"title text get text exception, msg=\" + e.getMessage());\r\n }\r\n }\r\n\t\t// back to the normal.\r\n\t\tuiDevice.pressBack();\r\n\r\n\t\tif (title.equals(\"新朋友\")) {\r\n\t\t return this._actionMngr.getAddNewFriendsAction();\r\n\t\t} else if (isGrayColumnExists) {\r\n\t\t return this._actionMngr.getClearAllChatAction();\r\n\t\t}\r\n\t\t\r\n\t\treturn this._actionMngr.getMsglistDispatchAction();\r\n\t}", "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"사료를 먹다\");\n\t}", "private void aimlessScout() {\n\t\ttargetFlower = null;\n\t\t// if bee is sufficiently far from flower, look for other flowers\n\t\tif((clock.time - tempTime) > 0.15) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// otherwise keep flying\n\t\telse{\n\t\t\tcurrentAngle += RandomHelper.nextDoubleFromTo(-Math.PI/8, Math.PI/8);\n\t\t\tspace.moveByVector(this, 4, currentAngle,0);\n\t\t\tNdPoint myPoint = space.getLocation(this);\n\t\t\tgrid.moveTo(this, (int) myPoint.getX(), (int) myPoint.getY());\n\t\t\t//energy -= exhaustionRate;\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}", "public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }", "@Override\n public void handle(ActionEvent event) {\n if (event.getSource()==gomb){\n Controller.Segitseg();\n }\n\n /**\n * User input helyenek megszerzese\n */\n if (event.getSource() == Kajatipus) {\n\n Receptek.clear();\n Receptek.setPromptText(\"Kérem válasszon ételt a recept megjelenítéséhez!\");\n if(Kajatipus.getValue() == \"magyaros\")\n {\n /**\n * Osszes eddigi elem kitorlese a korabbi keresesek miatt\n */\n Kajanev.getItems().clear();\n /**\n * Uj elemekkel valo feltoltes\n */\n Kajanev.getItems().addAll(\n \"Gulyasleves\",\n \"Sertesporkolt\",\n \"Toltott kaposzta\",\n \"Finomfozelek\",\n \"Turos csusza\"\n );\n }\n\n if(Kajatipus.getValue() == \"olasz\")\n {\n Kajanev.getItems().clear();\n Kajanev.getItems().addAll(\n \"Pizza\",\n \"Lasagne\",\n \"Ravioli\",\n \"Bolognai spagetti\",\n \"Carbonara\"\n );\n }\n\n if(Kajatipus.getValue() == \"kinai\")\n {\n Kajanev.getItems().clear();\n Kajanev.getItems().addAll(\n \"Piritott teszta\",\n \"Mezes csirke\",\n \"Eros-savanyu leves\",\n \"Tavaszi tekercs\",\n \"Csirke chow-mein\"\n\n );\n }\n\n else if(Kajatipus.getValue() == \"indiai\")\n {\n Kajanev.getItems().clear();\n Kajanev.getItems().addAll(\n \"Currys csirke ananasszal\",\n \"Chana masala\",\n \"Naan\",\n \"Lencses-borsos dahl\",\n \"Khir\"\n\n );\n }\n }\n\n\n try {\n if (event.getSource() == Kajanev) {\n try {\n Controller.TipusBetoltes(main.kaja, Kajanev.getValue().toString());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n }catch (NullPointerException e)\n {Controller.semmi();}\n\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlevel.addAction(GeneralHelper.shakeSprite(getSprite(), -5));\n\t\t\t\t}", "@FXML\n public void goRentBikeScreen(ActionEvent e) throws IOException {\n String barCode = textField.getText();\n BarcodeController barcodeController = new BarcodeController();\n boolean check = barcodeController.validateBarcode(barCode);\n if(check == false) {\n invalidBarcode.setText(\"Invalid Barcode\");\n }\n else {\n RentBikeController rentBikeController = new RentBikeController();\n Bike bike = rentBikeController.requestBike(barCode);\n if (bike == null) {\n invalidBarcode.setText(\"Invalid Barcode\");\n }\n else {\n App.getInstance().display_RentBikeScreen(bike);\n }\n\n }\n\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n dispose();\n new MineClient(660,460,99);\n }", "public void act() \n {\n if(s == 0)\n {\n lead();\n lookForFood();\n lookForEdge();\n lookForTail();\n }\n else\n {\n follow();\n }\n }", "@Override\n public void show() {\n mHandler.obtainMessage(0).sendToTarget();\n }", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE); \n\t\t\n\t\tthis.setContentView(R.layout.snake);\n\t\tstatusButton = (ImageButton)findViewById(R.id.status_button);\n\t\tstatusButton.setBackgroundColor(Color.argb(0, 0, 0, 0));\n//\t\tstatusButton.setImageResource(R.drawable.start);\n\t\tstatusButton.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(snake.getstatus() == snake.READY)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(snake.getstatus() == snake.RUNNING)\n\t\t\t\t{\n//\t\t\t\t\tstatusButton.setText(\"start\");\n\t\t\t\t\tstatusButton.setImageResource(R.drawable.start);\n\t\t\t\t\tsnake.pause();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n//\t\t\t\t\tstatusButton.setText(\"pause\");\n\t\t\t\t\tstatusButton.setImageResource(R.drawable.pause);\n\t\t\t\t\tsnake.start();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tsnake = (SnakeView)findViewById(R.id.snake);\n\t\tsnake.scoreTextView = (TextView)findViewById(R.id.scoreTextView);\n\t\tsnake.restTimeTextView = (TextView)findViewById(R.id.restTimeTextView);\n\t\t\n\t\tgestureDetector = new BuileGestureExt(this,new BuileGestureExt.OnGestureResult() {\n @Override\n public void onGestureResult(int direction) {\n \t\n \tif (snake.getstatus() == snake.READY)\n \t{\n \t\tsnake.initNewGame();\n \t\tstatusButton.setImageResource(R.drawable.pause);\n \t\treturn;\n \t}\n \tif(snake.getstatus() != snake.RUNNING)\n \t{\n \t\treturn;\n \t}\n \t\n \t\n \tif (direction == BuileGestureExt.GESTURE_UP)\n \t{\n \t\tsnake.addDirToQue(new Integer(snake.UP));\n \t}\n \telse if (direction == BuileGestureExt.GESTURE_DOWN)\n \t{\n \t\tsnake.addDirToQue(new Integer(snake.DOWN));\n \t}\n \telse if (direction == BuileGestureExt.GESTURE_LEFT)\n \t{\n \t\tsnake.addDirToQue(new Integer(snake.LEFT));\n \t}\n \telse if (direction == BuileGestureExt.GESTURE_RIGHT)\n \t{\n \t\tsnake.addDirToQue(new Integer(snake.RIGHT));\n \t}\n }\n }\n ).Buile();\n\n\t}", "public void execute(View view)\n {\n \tview.InformFrame(\"Unfortunatelly. You lost, sir.\", \"Defeat\");\n }", "public void eat(){\n if (threshold<=0 && !lapar) revLapar();\n if (lapar && Common.gamemap.get(getX()).get(getY()).showSymbol()=='@'){\n Common.gamemap.get(getX()).get(getY()).ungrowGrass();\n revLapar();\n threshold = 12;\n }\n }", "public void oscEvent( OscMessage msg ) {\n\tif ( msg.checkAddrPattern( \"/hmusicon\" ) ) {\n\t parent.turnon();\n\t}\n\telse if ( msg.checkAddrPattern( \"/hmusicoff\" ) ) {\n\t parent.turnoff();\n\t}\n\telse if ( msg.checkAddrPattern( \"/controlpos\" ) ) {\n\t int x = (int)((Float)msg.arguments()[0] * HMusic.WIDTH);\n\t int y = (int)((Float)msg.arguments()[1] * HMusic.HEIGHT);\n\t parent.setWandererLocation( x, y );\n\t}\n\telse if ( msg.addrPattern().startsWith( \"/faders/\" ) ) {\n\t switch ( msg.addrPattern().substring(8).charAt(0) ) {\n\t case '1':\t// Star density\n\t\t{\n\t\t float val = (Float)msg.arguments()[0];\n\t\t adjustSlider( caeliScroll, val );\n\t\t refreshControls();\n\t\t}\n\t\tbreak;\n\t case '2':\t// Num planets\n\t\t{\n\t\t float val = (Float)msg.arguments()[0];\n\t\t adjustSlider( planetScroll, val );\n\t\t refreshControls();\n\t\t}\n\t\tbreak;\n\t case '3':\t// Coarse triangle size\n\t\t{\n\t\t float val = (Float)msg.arguments()[0];\n\t\t adjustSlider( triSizeScroll, val );\n\t\t refreshControls();\n\t\t}\n\t\tbreak;\n\t case '4':\t// Fine triangle size\n\t\t{\n\t\t float val = (Float)msg.arguments()[0];\n\t\t adjustSlider( triFineSizeScroll, val );\n\t\t refreshControls();\n\t\t}\n\t\tbreak;\n\t case '5':\t// Attraction distance\n\t\t{\n\t\t float val = (Float)msg.arguments()[0];\n\t\t adjustSlider( attDistanceScroll, val );\n\t\t refreshControls();\n\t\t}\n\t\tbreak;\n\t case '6':\t// Attraction strength\n\t\t{\n\t\t float val = (Float)msg.arguments()[0];\n\t\t adjustSlider( attStrengthScroll, val );\n\t\t refreshControls();\n\t\t}\n\t\tbreak;\n\t default:\n\t\tbreak;\n\t }\n\t}\n\telse if ( msg.checkAddrPattern( \"/active\" ) ) {\n\t parent.setUserAttraction( ((Float)msg.arguments()[0]) == 1 );\n\t}\n\telse if ( msg.addrPattern().startsWith(\"/ipad\") ) {\n\t int conversion = (int)(1000 * (Float)msg.arguments()[0]);\n\n\t // Check for preset\n\t if ( msg.addrPattern().startsWith( \"/ipad/presets\" ) ) {\n\t\tswitch ( msg.addrPattern().charAt( 14 ) ) {\n\t\tcase '1':\n\t\t /*\n\t\t * The beginning: black triangles, sparsely populating the screen.\n\t\t * Only a single planet, barely making any sound at all.\n\t\t *\n\t\t *\n\t\t *\n\t\t *\n\t\t **/ \n\t\t /* old, but pretty and sonically pleasing, preset */\n\t\t // adjustSlider( caeliScroll, 0.6f );\n\t\t // adjustSlider( planetScroll, 0.0f );\n\t\t // adjustSlider( triSizeScroll, 0.0f );\n\t\t // adjustSlider( triFineSizeScroll, 0.2f );\n\t\t // adjustSlider( attDistanceScroll, 0.2f );\n\t\t // adjustSlider( attStrengthScroll, 0.2f );\n\n\t\t adjustSlider( caeliScroll, 0.480000f );\n\t\t adjustSlider( planetScroll, 0.050000f );\n\t\t adjustSlider( triSizeScroll, 0.000500f );\n\t\t adjustSlider( triFineSizeScroll, 0.200000f );\n\t\t adjustSlider( attDistanceScroll, 0.225641f );\n\t\t adjustSlider( attStrengthScroll, 0.210101f );\n\n\n\t\t parent.setTriangulationColor( new Color( 0, 0, 0 ),\n\t\t\t\t\t\t new Color( 10, 10, 10 ) );\n\n\t\t refreshControls();\n\t\t break;\n\t\tcase '2':\n\t\t /*\n\t\t * Part 2 ------\n\t\t * Red triangles, lower tones.\n\t\t *\n\t\t *\n\t\t *\n\t\t *\n\t\t **/ \n\t\t adjustSlider( caeliScroll, 0.2f );\n\t\t adjustSlider( planetScroll, 0.1f );\n\t\t adjustSlider( triSizeScroll, 0.25f );\n\t\t adjustSlider( triFineSizeScroll, 0.9f );\n\t\t adjustSlider( attDistanceScroll, 0.2f );\n\t\t adjustSlider( attStrengthScroll, 0.2f );\n\n\t\t parent.setTriangulationColor( new Color( 0, 0, 0 ),\n\t\t\t\t\t\t new Color( 255, 0, 0 ) );\n\n\t\t refreshControls();\n\t\t break;\n\t\tcase '3':\n\t\t adjustSlider( caeliScroll, 0.3f );\n\t\t adjustSlider( planetScroll, 0.4f );\n\t\t adjustSlider( triSizeScroll, 0.9f );\n\t\t adjustSlider( triFineSizeScroll, 0.5f );\n// \t\t adjustSlider( attDistanceScroll, 0.2f );\n// \t\t adjustSlider( attStrengthScroll, 0.2f );\n\n\t\t parent.setTriangulationColor( new Color( 0, 0, 0 ),\n\t\t\t\t\t\t new Color( 50, 0, 50 ) );\n\n\t\t refreshControls();\n\t\t break;\n\t\tcase '4':\n\t\t adjustSlider( caeliScroll, 0.5f );\n\t\t adjustSlider( planetScroll, 0.0f );\n\t\t adjustSlider( triSizeScroll, 1.0f );\n\t\t adjustSlider( triFineSizeScroll, 1.0f );\n// \t\t adjustSlider( attDistanceScroll, 0.2f );\n// \t\t adjustSlider( attStrengthScroll, 0.2f );\n\n\t\t parent.setTriangulationColor( new Color( 0, 0, 0 ),\n\t\t\t\t\t\t new Color( 0, 100, 100 ) );\n\n\t\t refreshControls();\n\t\t break;\n\t\tcase '5':\n\t\t adjustSlider( caeliScroll, 0.200000f );\n\t\t adjustSlider( planetScroll, 0.050000f );\n\t\t adjustSlider( triSizeScroll, 1.000000f );\n\t\t adjustSlider( triFineSizeScroll, 1.000000f );\n\t\t adjustSlider( attDistanceScroll, 0.838205f );\n\t\t adjustSlider( attStrengthScroll, 0.816030f );\n\n\t\t parent.setTriangulationColor( new Color( 10, 100, 100 ),\n\t\t\t\t\t\t new Color( 100, 100, 255 ) );\n\n\t\t refreshControls();\n\t\t break;\n\t\tcase '6':\n\t\t adjustSlider( caeliScroll, 0.120000f );\n\t\t adjustSlider( planetScroll, 0.050000f );\n\t\t adjustSlider( triSizeScroll, 0.908399f );\n\t\t adjustSlider( triFineSizeScroll, 0.010000f );\n\t\t adjustSlider( attDistanceScroll, 0.235128f );\n\t\t adjustSlider( attStrengthScroll, 0.188202f );\n\n\t\t parent.setTriangulationColor( new Color( 255, 100, 0 ),\n\t\t\t\t\t\t new Color( 255, 255, 0 ) );\n\n\t\t refreshControls();\n\t\t break;\n\t\tcase '7':\n\t\t break;\n\t\tcase '8':\n\t\t break;\n\t\tdefault:\n\t\t break;\n\t\t}\n\t }\n\t // Check for note spacing/gating\n\t else if ( msg.checkAddrPattern( \"/ipad/maxcontrols/7\" ) ) {\n\t\t// This packet carries a float in the range [0,1]\n\t\t// The current Max patch allows a note space up to 1 second (1000 ms)\n\t\tlong howLongMs = (long)(1000 * (Float)msg.arguments()[0]);\n\t\tparent.setNoteSpace( howLongMs );\n\t }\n\n\t // Forward the message to Max.\n\t parent.sendToMax( msg );\n\t}\n\telse if ( msg.checkAddrPattern(\"/1\") || msg.checkAddrPattern(\"/2\") ) {\t// Messages from flipping pages\n\t // Do nothing.\n\t}\n\telse {\n\t System.out.println( \"Unrecognized address pattern: \"+msg.addrPattern() );\n\t System.out.println( msg );\n\t}\n }", "@Override\n\tpublic void msgAtBed() {\n\t\t\n\t}", "@Override\r\n\tvoid eat() {\n\t\tSystem.out.println(\"grass\");\r\n\t}", "public void act() { \n check = borde(flag);\n if(check == true )\n restaura();\n moveRandom(move);\n if(animationE % 3 == 0){\n checkanimation();\n } \n animationE++; \n alive=checkfire();\n if(alive == true){\n enemyoff();\n } \n \n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == bt1) {\n\t\t\ttry {\n\t\t\t\tString s = tfnhap.getText();\n\t\t\t\tsenddata = new byte[s.length()];\n\t\t\t\treceivedata = new byte[1024];\n\t\t\t\tsenddata = s.getBytes();\n\t\t\t\tDatagramPacket send = new DatagramPacket(senddata, senddata.length, inet, 8892);\n\t\t\t\tmoi.send(send);\n\t\t\t\tDatagramPacket receive = new DatagramPacket(receivedata, receivedata.length);\n\t\t\t\tmoi.receive(receive);\n\t\t\t\tString kq = new String(receive.getData());\n\t\t\t\ttfkq.setText(kq);\n\n\t\t\t} catch (UnknownHostException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t} catch (IOException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\tif (e.getSource() == bt2)\n\t\t\tSystem.exit(0);\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n dispose();\n new MineClient(380,460,44);\n }", "public void showCastMiniController() {\n }", "@FXML\n\tpublic void attack(ActionEvent event) {\n\t\tif(!combat)\n\t\t\treturn;\n\t\n\tRandom rand = new Random();\t\t\n\t\t\n\tif(combat == true) {\n\t\t\n\tevents.appendText(p.getName() + \" attacks!\\n\");\t\n\t\n\tint eEV = e.getEV(); \n\t\n\tint roll = rand.nextInt(101);\n\t\n\tif(roll <= eEV) { // Enemy evades\n\t\t\n\t\tevents.appendText(\"Your was attack evaded!\\n\");\n\t\t\n\t\t}\t\t\n\telse if(roll > eEV) { // Enemy is damaged\n\t\t\n\t\te.setHP(e.getHP() - p.getDMG());\n\t\t\n\t\tString ehealth = e.getHP()+\"/\"+e.getMaxHP();\n\t\t\n\t\tif(e.getHP()<1) {\n\t\t\te.setDead(true);\n\t\t\tecurrentHp.setText(\"\"+0);\n\t\t\tenemyHPBar.setProgress((double)0);\n\t\t}else {\n\t\t\tecurrentHp.setText(ehealth);\n\t\t\tenemyHPBar.setProgress((double)e.getHP()/e.getMaxHP());\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t}\n\t}\n\t\n\tif(e.isDead() && currentPos != finishCircle) { // Game proceeds if monster dies and is not the final boss\n\t\t\n\t\tevents.clear();\n\t\t\n\t\tevents.appendText(\"The monster lies dead! Onward!\\n\");\n\t\t\n\t\trollCombatDrop();\n\t\t\n\t\tcombat = false;\n\t}\n\telse if(e.isDead() && currentPos == finishCircle){\n\t\t\n\t\ttry {\n\t\t\tLoadWin();\n\t\t} catch (IOException e1) {\n\t\t\n\t\t\te1.printStackTrace();\n\t\t}\t\n\t\n\t}\n\telse {\n\t\tenemyAttack();\n\t}\n\t\n\t\n\t}", "public void actionPerformed(ActionEvent e){\n\t\t\tt.rotateStick(mx, my);\n\t\t\tfor (int i = 0; i < bombers.size(); i ++){ //manages the dropping of the bombs of the bombers\n\t\t\t\t if (bombers.get(i).exists) bombers.get(i).moveBomber();\n\t\t\t\t bombers.get(i).manageDropping(t);\n\t\t \t}\n\t\t\tfor(int i = 0; i < bombers.size(); i ++){ //manages the removing of the bombers from the array\n\t\t\t\tif (bombers.get(i).exists == false && bombers.get(i).startboomtimer == false) bombers.remove(i);\n\t\t\t}\n\t\t\t\n\t\t\tif (bombers.isEmpty()){ //manages what happens after waveclear is complete\n\t\t\t\tnumplanes ++;\n\t\t\t\t\n\t\t\t\tif (numplanes <= 4){ //if the waves have not maxed out and you have not beat the game, crete question panel to move on\n\t\t\t\t\tmoveframe = new JFrame (\"Move on\");\n\t\t\t\t\t\n\t\t\t\t\tRandom rand = new Random();\n\t\t\t\t\tmoveframe.setSize(500,320);\n\t\t\t\t\tQuestion question1 = questions.get(rand.nextInt(questions.size()));\n\t\t\t\t\tQuestion question2;\n\t\t\t\t\tdo {\n\t\t\t\t\t\tquestion2 = questions.get(rand.nextInt(questions.size()));\n\t\t\t\t\t} while(question2.equals(question1));\n\t\t\t\t\tmoveframe.getContentPane().add(new QuestionPanelLoss(question1, question2, 1), BorderLayout.CENTER);\n\t\t\t\t\tmoveframe.setLocationRelativeTo(null);\n\t\t\t\t\tmoveframe.setVisible(true);\n\n\t\t\t\t\t\n\t\t\t\t\ttime.stop();\n\t\t\t\t}\n\t\t\t\telse{ //make a congragulatory frame if you clear all the waves\n\t\t\t\t\tmoveframe = new JFrame (\"gratz u won\");\n\t\t\t\t\tmoveframe.setSize(300,200);\n\t\t\t\t\tmoveframe.getContentPane().add(new JLabel(\"YAYYY U WON\"), BorderLayout.CENTER);\n\t\t\t\t\tmoveframe.setLocationRelativeTo(null);\n\t\t\t\t\tmoveframe.setVisible(true);\n\t\t\t\t\tJButton exit = new JButton(\"exit\");\n\t\t\t\t\texit.addActionListener(new TwoTime());\n\t\t\t\t\tmoveframe.getContentPane().add(exit, BorderLayout.SOUTH);\n\t\t\t\t\ttime.stop();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\trepaint();\n\t\t\t \n\t\t}", "@Override\n public void run() {\n setToast(recvInput);\n }" ]
[ "0.6613317", "0.61828786", "0.60239017", "0.6002206", "0.57899654", "0.5691934", "0.5538844", "0.553343", "0.5526009", "0.55196434", "0.54973334", "0.54767656", "0.54597926", "0.541819", "0.54106224", "0.5408903", "0.5399401", "0.53650147", "0.5350936", "0.53507364", "0.5346342", "0.534552", "0.5342701", "0.53385395", "0.5322941", "0.5317197", "0.53168845", "0.53084964", "0.5299757", "0.52903336", "0.52839017", "0.52836686", "0.5269336", "0.5267323", "0.5260683", "0.5258384", "0.52552074", "0.5254514", "0.5249548", "0.5244979", "0.5229344", "0.5228882", "0.52265203", "0.5223067", "0.521302", "0.520218", "0.51943475", "0.5193232", "0.5184908", "0.51813537", "0.51811516", "0.51735276", "0.5159944", "0.51543117", "0.5150342", "0.51437825", "0.51346546", "0.51346457", "0.5134272", "0.5129597", "0.5128858", "0.5118559", "0.51166296", "0.5115849", "0.5113843", "0.5109829", "0.5106513", "0.5106403", "0.51048946", "0.5099755", "0.5098372", "0.50969857", "0.50937974", "0.5091386", "0.5082495", "0.50823", "0.50785", "0.5076247", "0.50752425", "0.5067967", "0.50677544", "0.50668925", "0.5064881", "0.5061302", "0.5060431", "0.5056099", "0.5055163", "0.5053191", "0.50531846", "0.50522447", "0.5048536", "0.50448817", "0.5042076", "0.5040022", "0.5038887", "0.50385827", "0.50368536", "0.50366294", "0.5029639", "0.50288886" ]
0.7491975
0
makes the tamagotchi some medicine, animated a medicine, calls the feedMedicine controller function
private void makeMedicine() { eating = true; tama.setLayoutX(200); medicine = new Sprite(3, 3, 540, 478, new Image("file:./res/images/hearts.png"), 1, 2100); medicine.setLayoutX(150); medicine.setLayoutY(150); medicine.setScaleX(0.3); medicine.setScaleY(0.3); grid.getChildren().addAll(medicine); PauseTransition pause = new PauseTransition(Duration.millis(2100)); pause.setOnFinished(e -> { grid.getChildren().remove(medicine); tama.setLayoutX(190); eating = false; model.getController().feedMedicine(); }); pause.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "@Override\n public void feedingMeat() {\n\n }", "@Override\n\tpublic void run() {\n\t\tfinal MapOptions options = MapOptions.create(); //Dhmiourgeia antikeimenou me Factory (xwris constructor)\n\t\t//Default na fenetai xarths apo doruforo (Hybrid)\n\t\toptions.setMapTypeId(MapTypeId.HYBRID);\n\t\toptions.setZoom(Map.GOOGLE_MAPS_ZOOM);\n\t\t//Dhmiourgei ton xarth me tis panw ruthmiseis kai to vazei sto mapDiv\n\t\tgoogleMap = GoogleMap.create(map, options);\n\t\t//Otan o xrhsths kanei click epanw ston xarth\n\t\tfinal MarkerOptions markerOptions = MarkerOptions.create();\n\t\tmarkerOptions.setMap(googleMap);\n\t\tmarker = Marker.create(markerOptions);\n\t\t//psaxnei antikeimeno gia na kentrarei o xarths kai na fortwsei h forma\n\t\tfinal String id = Window.Location.getParameter(\"id\");\n\t\tif (id == null) {\n\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorRetrievingMedium(\n\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.noMediaIdSpecified()));\n\t\t\t//redirect sto map\n\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t} else {\n\t\t\t//Klhsh tou MEDIA_SERVICE gia na paroume to antikeimeno (metadedomena)\n\t\t\tMEDIA_SERVICE.getMedia(id, new AsyncCallback<Media>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(final Throwable throwable) {\n\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorRetrievingMedium(throwable.getMessage()));\n\t\t\t\t\t//redirect sto map\n\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(final Media media) {\n\t\t\t\t\tif (media == null) {\n\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(\n\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.mediaNotFound()));\n\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t//o xrhsths vlepei to media giati einai diko tou 'h einai diaxeirisths 'h to media einai public\n\t\t\t\t\t} else if (currentUser.equals(media.getUser()) || (currentUser.getStatus() == UserStatus.ADMIN) || media.isPublic()) {\n\t\t\t\t\t\t//Gemisma tou div content analoga ton tupo\n\t\t\t\t\t\tswitch (MediaType.getMediaType(media.getType())) {\n\t\t\t\t\t\tcase APPLICATION:\n\t\t\t\t\t\t\tfinal ImageElement application = Document.get().createImageElement();\n\t\t\t\t\t\t\tapplication.setSrc(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), MediaType.APPLICATION.name().toLowerCase()));\n\t\t\t\t\t\t\tapplication.setAlt(media.getTitle());\n\t\t\t\t\t\t\tapplication.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\tapplication.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\tcontent.appendChild(application);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase AUDIO:\n\t\t\t\t\t\t\tfinal AudioElement audio = Document.get().createAudioElement();\n\t\t\t\t\t\t\taudio.setControls(true);\n\t\t\t\t\t\t\taudio.setPreload(AudioElement.PRELOAD_AUTO);\n\t\t\t\t\t\t\t//url sto opoio vriskontai ta dedomena tou antikeimenou. Ta travaei o browser\n\t\t\t\t\t\t\t//me xrhsh tou media servlet\n\t\t\t\t\t\t\tfinal SourceElement audioSource = Document.get().createSourceElement();\n\t\t\t\t\t\t\taudioSource.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\taudioSource.setType(media.getType());\n\t\t\t\t\t\t\taudio.appendChild(audioSource);\n\t\t\t\t\t\t\tcontent.appendChild(audio);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase IMAGE:\n\t\t\t\t\t\t\tfinal ImageElement image = Document.get().createImageElement();\n\t\t\t\t\t\t\timage.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\timage.setAlt(media.getTitle());\n\t\t\t\t\t\t\timage.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\timage.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\tcontent.appendChild(image);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TEXT:\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * @see http://www.gwtproject.org/doc/latest/tutorial/JSON.html#http\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tfinal ParagraphElement text = Document.get().createPElement();\n\t\t\t\t\t\t\ttext.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\ttext.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\t//scrollbar gia to text\n\t\t\t\t\t\t\ttext.getStyle().setOverflow(Style.Overflow.SCROLL);\n\t\t\t\t\t\t\tcontent.appendChild(text);\n\t\t\t\t\t\t\t//Zhtaei asugxrona to periexomeno enos url\n\t\t\t\t\t\t\tfinal RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET,\n\t\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\trequestBuilder.sendRequest(null, new RequestCallback() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onError(final Request request, final Throwable throwable) {\n\t\t\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(throwable.getMessage()));\n\t\t\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\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@Override\n\t\t\t\t\t\t\t\t\tpublic void onResponseReceived(final Request request, final Response response) {\n\t\t\t\t\t\t\t\t\t\tif (response.getStatusCode() == Response.SC_OK) {\n\t\t\t\t\t\t\t\t\t\t\t//selida pou fernei to response se me to keimeno pros anazhthsh\n\t\t\t\t\t\t\t\t\t\t\ttext.setInnerText(response.getText());\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t//selida pou efere to response se periptwsh sfalmatos (getText())\n\t\t\t\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(response.getText()));\n\t\t\t\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} catch (final RequestException e) {\n\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(e.getMessage()));\n\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase VIDEO:\n\t\t\t\t\t\t\tfinal VideoElement video = Document.get().createVideoElement();\n\t\t\t\t\t\t\tvideo.setPoster(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), MediaType.VIDEO.name().toLowerCase()));\n\t\t\t\t\t\t\tvideo.setControls(true);\n\t\t\t\t\t\t\tvideo.setPreload(VideoElement.PRELOAD_AUTO);\n\t\t\t\t\t\t\tvideo.setWidth(Double.valueOf(CONTENT_WIDTH).intValue());\n\t\t\t\t\t\t\tvideo.setHeight(Double.valueOf(CONTENT_HEIGHT).intValue());\n\t\t\t\t\t\t\tfinal SourceElement videoSource = Document.get().createSourceElement();\n\t\t\t\t\t\t\tvideoSource.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\tvideoSource.setType(media.getType());\n\t\t\t\t\t\t\tvideo.appendChild(videoSource);\n\t\t\t\t\t\t\tcontent.appendChild(video);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//O current user peirazei to media an einai diko tou 'h an einai diaxeirisths\n\t\t\t\t\t\tif (currentUser.equals(media.getUser()) || (currentUser.getStatus() == UserStatus.ADMIN)) {\n\t\t\t\t\t\t\tedit.setEnabled(true);\n\t\t\t\t\t\t\tdelete.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttitle.setText(media.getTitle());\n\t\t\t\t\t\t//prosthikh html (keimeno kai eikona) stin selida\n\t\t\t\t\t\ttype.setHTML(List.TYPE.getValue(media));\n\t\t\t\t\t\t//analoga ton tupo dialegetai to katallhlo eikonidio\n\t\t\t\t\t\tmarker.setIcon(MarkerImage.create(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), \n\t\t\t\t\t\t\t\tMediaType.getMediaType(media.getType()).name().toLowerCase())));\n\t\t\t\t\t\tsize.setText(List.SIZE.getValue(media));\n\t\t\t\t\t\tduration.setText(List.DURATION.getValue(media));\n\t\t\t\t\t\tuser.setText(List.USER.getValue(media));\n\t\t\t\t\t\tcreated.setText(List.CREATED.getValue(media));\n\t\t\t\t\t\tedited.setText(List.EDITED.getValue(media));\n\t\t\t\t\t\tpublik.setHTML(List.PUBLIC.getValue(media));\n\t\t\t\t\t\tlatitudeLongitude.setText(\"(\" + List.LATITUDE.getValue(media) + \", \" + List.LONGITUDE.getValue(media) + \")\");\n\t\t\t\t\t\tfinal LatLng latLng = LatLng.create(media.getLatitude().doubleValue(), media.getLongitude().doubleValue());\n\t\t\t\t\t\tgoogleMap.setCenter(latLng);\n\t\t\t\t\t\tmarker.setPosition(latLng);\n\t\t\t\t\t} else { //Vrethike to media alla einai private allounou\n\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(\n\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.accessDenied()));\n\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), \n\t\t\t\t\t\t\t\tURL.encodeQueryString(LocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public void run() {\n GRectangle mida = new GRectangle(0, 0, MIDAPANTALLA, MIDAPANTALLA);\n\n // Preparar el cassador\n GImage imatge = new GImage(\"cireraire.png\");\n add(imatge);\n CassadorDeCireres cassador = new CassadorDeCireres(imatge);\n\n camp = new Camp(mida, cassador);\n\n for(int i=0; i<10; i++) { \n camp.afegirCirera(generaCirera());\n }\n\n clicaPerComencar();\n\n }", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t fimjson = null;\n\t\t \t try {\n\t\t\t\t\t\tString s=Login.readFileSdcardFile(\"/sdcard/json.txt\");\n\t\t\t\t\t\t//Log.i(\"\",s);\n\t\t\t\t\t\tfimjson=new JSONObject(s);\n\t\t\t\t\t} catch (JSONException 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} catch (IOException 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 \n\t\t \t int a = 0;\n\t\t\t\ttry {\n\t\t\t\t\ta = fimjson.getInt(\"totalResults\");\n\t\t\t\t} catch (JSONException 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 if (a>20) a=20;\n\t\t \t filmimg=new String[a];\n\t\t \t for(int i=0;i<a;i++){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfilmimg[i]=fimjson.getJSONArray(\"items\").getJSONObject(i).getString(\"imageUrl120\");\n\t\t\t\t\t} catch (JSONException 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 \n\t\t \t }\n\t\t \t \n\t\t\t\t Message msglv= new Message();\n\t\t msglv.what=1;\n\t\t handlerpupwindow.sendMessage(msglv);\n\t\t\t}", "public void run()\n {\n \t if (_messageWindow != null)\n \t {\n \t\t _messageWindow.append(\"Generating single artery image. \");\n \t }\n \t ImagePlus singleArteryImage = _singleArtery.setStartPosition(_selectedPos, _inputImage.getShortTitle()+_count);\n \t if (singleArteryImage != null)\n \t {\n \t\t _count++;\n \t\t singleArteryImage.show();\n \t\t singleArteryImage.updateAndDraw();\n \t\t DFMFromPointListener dfmp = new DFMFromPointListener(singleArteryImage, _singleArtery.getSingleCenterlineGraph(), \n \t \t\t_xRes, _yRes, _zRes, _width, _height, _zSize); \n \t dfmp.setThickenOutput(false);\n \t \n \t if (_messageWindow != null)\n \t {\n \t \tdfmp.setMessageWindow(_messageWindow);\n \t }\n \t }\n \t else\n \t {\n \t\t _messageWindow.append(\"Singe Artery Image is null\");\n \t }\n \t \n \t \n \t \n }", "private void meditate() {\n\t\t\tUtils.pause(10_000);\n\t\t\t// System.out.println(this.name + \" is finished meditate\");\n\t\t}", "public void montarTela(){\n ControllerListener listener = new BaseControllerListener(){\n @Override\n public void onFinalImageSet(String id, Object imageInfo, Animatable animatable) {\n super.onFinalImageSet(id, imageInfo, animatable);\n }\n\n @Override\n public void onFailure(String id, Throwable throwable) {\n super.onFailure(id, throwable);\n }\n\n @Override\n public void onIntermediateImageFailed(String id, Throwable throwable) {\n super.onIntermediateImageFailed(id, throwable);\n }\n\n @Override\n public void onIntermediateImageSet(String id, Object imageInfo) {\n super.onIntermediateImageSet(id, imageInfo);\n }\n\n @Override\n public void onRelease(String id) {\n super.onRelease(id);\n }\n\n @Override\n public void onSubmit(String id, Object callerContext) {\n super.onSubmit(id, callerContext);\n }\n };\n\n String urlImagem = DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\");\n\n Uri uri = null;\n DraweeController dc = null;\n\n if(urlImagem.contains(\"https\")){\n uri = Uri.parse(DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\"));\n dc = Fresco.newDraweeControllerBuilder()\n .setUri(uri)\n .setControllerListener(listener)\n .setOldController(ivFotoPerfil.getController())\n .build();\n } else {\n uri = Uri.parse(\"https://tocaredev.azurewebsites.net\"+DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\"));\n dc = Fresco.newDraweeControllerBuilder()\n .setUri(uri)\n .setControllerListener(listener)\n .setOldController(ivFotoPerfil.getController())\n .build();\n }\n ivFotoPerfil.setController(dc);\n\n tvUsername.setText(DetalhesPaciente.paciente.getNome() + \" \" + DetalhesPaciente.paciente.getSobrenome());\n\n int idade = Util.retornaIdade(DetalhesPaciente.paciente.getDataNascimento());\n\n tvDataNascimento.setText(DetalhesPaciente.paciente.getDataNascimento() + \" (\" + idade + \")\");\n \n etAnamnese.setText(DetalhesPaciente.paciente.getProntuario().getAnamnese());\n etExameFisico.setText(DetalhesPaciente.paciente.getProntuario().getExameFisico());\n etPlanoTerapeutico.setText(DetalhesPaciente.paciente.getProntuario().getPlanoTerapeutico());\n etHipoteseDiagnostica.setText(DetalhesPaciente.paciente.getProntuario().getHipoteseDiagnostica());\n \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 }", "public void opretMedlem(KassererController kassererController, Hold hold) {\n Scanner scan = new Scanner(System.in);\n Motionist motionist;\n KonkurrenceSvømmer konkurrenceSvømmer;\n\n //Alle medlemmer\n System.out.println(\"Opret det nye medlem herunder: \");\n System.out.print(\"Skal det nye medlem registreres som konkurrencesvømmer, 'ja' eller 'nej': \");\n String svømmeType = scan.nextLine();\n\n System.out.print(\"Fulde navn: \");\n String navn = scan.nextLine();\n System.out.print(\"Alder: \");\n int alder = scan.nextInt();\n System.out.print(\"Har medlemmet en aktiv aktivitetsform? (true eller false): \");\n boolean aktivitetsform = scan.nextBoolean();\n System.out.print(\"Har medlemmet betalt? (true eller false): \");\n boolean betalt = scan.nextBoolean();\n\n //Motionist\n if (svømmeType.equals(\"nej\")) {\n motionist = new Motionist(navn, alder, aktivitetsform, betalt);\n if (motionist.getAlder() < 18) {\n System.out.println(\"Medlemmet er motionist og i kategorien juniormedlem.\");\n } else if (motionist.getAlder() >= 18) {\n System.out.println(\"Medlemmet er motionist og i kategorien seniormedlem.\");\n }\n System.out.println();\n System.out.print(motionist.toString());\n medlemmer.add(motionist);\n kassererController.kontingentBetaling(motionist);\n filHåndtering.filSkrivning(motionist);\n\n //Konkurrencesvømmer\n } else if (svømmeType.equals(\"ja\")) {\n konkurrenceSvømmer = new KonkurrenceSvømmer(navn, alder, aktivitetsform, betalt);\n if (konkurrenceSvømmer.getAlder() < 18) {\n hold.tilføjJuniorKonkurrencesvømmere(konkurrenceSvømmer);\n System.out.println(\"Medlemmet er konkurrencesvømmer i kategorien juniormedlem, og dermed tildelt ungdomsholdet.\");\n } else if (konkurrenceSvømmer.getAlder() >= 18) {\n hold.tilføjSeniorKonkurrencesvømmere(konkurrenceSvømmer);\n System.out.println(\"Medlemmet er konkurrencesvømmer i kategorien seniormedlem, og dermed tildelt seniorholdet.\");\n }\n konkurrenceSvømmer.svømmeDisciplin(konkurrenceSvømmer);\n System.out.println();\n System.out.print(konkurrenceSvømmer.toString());\n medlemmer.add(konkurrenceSvømmer);\n kassererController.kontingentBetaling(konkurrenceSvømmer);\n filHåndtering.filSkrivning(konkurrenceSvømmer);\n }\n }", "public static void main(String[] args) {\nScanner sca = new Scanner(System.in);\t\nCachorrO dog = new CachorrO();\nCavalO hor = new CavalO();\nPreguiÇa per = new PreguiÇa();\nAnimaL anim= null;\nint ani;\ndo {\nSystem.out.println(\"Escolha um animal\\n1-Cachorro\\n2-Cavalo\\n3-Preguiça\");\nani = sca.nextInt();\nSystem.out.println(\"Fazenda Dourado\");\nSystem.out.println(\"Seja bem-vindo\");\nSystem.out.println(\"------------------------------------------------------\");\nif(ani==1)\n{\n\tanim = dog;\n\tSystem.out.println(\"\\nQual o nome do seu cachorro?\");\n\tString nome = sca.next();\n\tSystem.out.println(\"\\nQuantos anos seu cachorro tem?\");\n\tint idade = sca.nextInt();\n\tSystem.out.println(\"\\nEssa é legal!!!Qual o som que seu cachorro emite?\");\n\tString som = sca.next();\n\tSystem.out.println(\"------------------------------------------------------\");\n\tdog.Nome(nome);\n\tdog.Idade(idade);\n\tdog.Som(som);\n}\nelse if(ani==2)\n{\n\tanim=hor;\n\tSystem.out.println(\"\\nQual o nome do seu cavalo?\");\n\tString nome = sca.next();\n\tSystem.out.println(\"\\nQuantos anos seu cavalo tem?\");\n\tint idade = sca.nextInt();\n\tSystem.out.println(\"\\nEssa é legal!!!Qual o som que seu cavalo emite?\");\n\tString som = sca.next();\n\tSystem.out.println(\"------------------------------------------------------\");\n\thor.Nome(nome);\n\thor.Idade(idade);\n\thor.Som(som);\n\t\n}\nelse if(ani==3)\n{\n\tanim=per;\n\tSystem.out.println(\"\\nQual o nome da sua preguiça?\");\n\tString nome = sca.next();\n\tSystem.out.println(\"\\nQuantos anos sua preguiça tem?\");\n\tint idade = sca.nextInt();\n\tSystem.out.println(\"\\nEssa é legal!!!Qual o som que sua preguiça emite?\");\n\tString som = sca.next();\n\tSystem.out.println(\"------------------------------------------------------\");\n\tper.Nome(nome);\n\tper.Idade(idade);\n\tper.Som(som);\n}\nelse\n{\n\tSystem.out.println(\"\\nInformação Inválida!!!\");\n}\n}\nwhile(ani<=0 || ani>=4);\n}", "@Override\n\tpublic void finMusica() {\n\t}", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\t\t\t\t\t\t\t\t\t\t}", "public void act() \n {\n movegas();\n \n atingido2(); \n \n }", "public void showCastMiniController() {\n }", "public void ektypwsiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR MEDICINE No.\" + (i+1) + \":\");\n\t\t\t\tmedicine[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMA FARMAKA PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override\n public void run() {\n\n queryForRoutingManager();\n File f = IMbuffer.fetchFromIMInputBuffer();\n if (f.getName().startsWith(\"Responseto\")) {\n transfertopurge(f);\n }\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\t\n\t\ttry {\n\t\t\tMusiikki.rajahdysaani = new Sound(\"res/shell1.ogg\");\n\t\t\tMusiikki.tykkiaani = new Sound(\"res/gun.ogg\");\n\t\t\tMusiikki.musiikki = new Music(\"res/sendme.ogg\");\n\t\t} catch (SlickException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tMusiikki.musiikki.setVolume(1/2);\n\t\tMusiikki.musiikki.loop();\n\t\t\n\t}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\twhile(!gpt.done);\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\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}", "public void run() {\n System.out.println(nomeDaCamada);\n try {\n\n Painel.CAMADAS_RECEPTORAS.expandirCamadaEnlace();\n\n //quadro = camadaEnlaceReceptoraControleDeFluxo(quadro);\n //quadro = camadaEnlaceReceptoraControleDeErro(quadro);\n quadro = camadaEnlaceReceptoraEnquadramento(quadro);\n\n chamarProximaCamada(quadro);\n Painel.CONFIGURACOES.setDisable(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\tif(change_tempo){\r\n\t\t\t\t\t\t\t\t\t\t\tPatternMaker.changeSpeed(pattern, ratio);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tgotoPractice(pattern);\r\n\t\t\t\t\t\t\t\t\t}", "public void run() {\n\t\t// TODO Auto-generated method stub\n\t\tmostrarMensaje(\"Incia el dealer ...\");\n\n\t\tdatosEnviar = new DatosBlackJack();\n\t\tdatosEnviar.setJugador(\"dealer\");\n\t\tdatosEnviar.setJugadorEstado(\"apuesta\");\n\t\tdatosEnviar.setMensaje(\"El dealer aposto 10\");\n\t\tdatosEnviar.setEstadoJuego(true);\n\t\tdatosEnviar.setApuestas(apuestasJugadores);\n\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\t\tdatosEnviar.setEstadoJuego(false);\n\t\tdatosEnviar.setMensaje(\"\");\n\t\tdatosEnviar.setApuestas(apuestasJugadores);\n\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\n\t\tboolean pedir = true;\n\n\t\twhile (pedir) {\n\t\t\tCarta carta = mazo.getCarta();\n\t\t\t// adicionar la carta a la mano del dealer\n\t\t\tmanosJugadores.get(3).add(carta);\n\t\t\tcalcularValorMano(carta, 3);\n\n\t\t\tmostrarMensaje(\"El dealer recibe \" + carta.toString() + \" suma \" + valorManos[3]);\n\n\t\t\tdatosEnviar = new DatosBlackJack();\n\t\t\tdatosEnviar.setCarta(carta);\n\t\t\tdatosEnviar.setJugador(\"dealer\");\n\n\t\t\tif (valorManos[3] <= 16) {\n\t\t\t\tdatosEnviar.setJugadorEstado(\"sigue\");\n\t\t\t\tdatosEnviar.setMensaje(\"Dealer ahora tiene \" + valorManos[3]);\n\t\t\t\tmostrarMensaje(\"El dealer sigue jugando\");\n\t\t\t} else {\n\t\t\t\tif (valorManos[3] > 21) {\n\t\t\t\t\tsaberSiVolo=1;\n\t\t\t\t\tdatosEnviar.setJugadorEstado(\"voló\");\n\t\t\t\t\tdatosEnviar.setMensaje(\"Dealer ahora tiene \" + valorManos[3] + \" voló :(\");\n\t\t\t\t\tpedir = false;\n\t\t\t\t\tmostrarMensaje(\"El dealer voló\"); \n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tsaberSiPlanto=1;\n\t\t\t\t\tdatosEnviar.setJugadorEstado(\"plantó\");\n\t\t\t\t\tdatosEnviar.setMensaje(\"Dealer ahora tiene \" + valorManos[3] + \" plantó\");\n\t\t\t\t\tpedir = false;\n\t\t\t\t\tmostrarMensaje(\"El dealer plantó\");\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t// envia la jugada a los otros jugadores\n\t\t\tdatosEnviar.setCarta(carta);\n\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\t\t} // fin while\n\t\tif(saberSiPlanto==1 || saberSiVolo==1) {\n\t\t\tSystem.out.println(\"Entro al if despues del while\");\n\t\t\tdeterminarGanador();\n\t\t\trepartirGanancias();\n\t\t\trepartirGananciasDealer();\n\t\t\tdatosEnviar.setGanadores(ganador);\n\t\t\tdatosEnviar.setParejas(parejaNombreGanancia);\n\t\t\tdatosEnviar.setMensaje(\"El ganador es \"+ganador);\n\t\t\tif(parejaNombreGanancia.size() == 1 && parejaNombreGanancia.get(0).getKey().equals(\"null\")) {\n\t\t\t\tdatosEnviar.setMensajeGanancias(\"Nadie ha ganado, las apuestas han sido devueltas!\");\n\t\t\t}else {\n\t\t\t\tdatosEnviar.setMensajeGanancias(\"Se han dado las ganancias, revisa las tuyas!! \"+parejaNombreGanancia.get(0).getValue());\n\t\t\t}\n\t\t\tSystem.out.println(\"DESPUÉS DEL IF\");\n\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\t\t\n\t\t}\n\t\t\n\t\t\t\n\t}", "public void act() \n {\n frameCount++;\n animateFlying();\n if (getWorld() instanceof DreamWorld)\n {\n dream();\n }\n else if (getWorld() instanceof FinishScreen)\n {\n runEnd();\n }\n }", "public abstract void onMedInfoLoaded(Medication med);", "@Override\n public void run() {\n headerText.startAnimation(AnimationUtils.loadAnimation(Home.this, R.anim.view_fallingfromsky));\n headerText.setVisibility(View.VISIBLE);\n\n spaconIcon.startAnimation(AnimationUtils.loadAnimation(Home.this, R.anim.view_fadein_long));\n spaconIcon.setVisibility(View.VISIBLE);\n\n if (fillableLoader.getVisibility() == View.GONE) {\n fillableLoader.setVisibility(View.VISIBLE);\n }\n fillableLoader.start();\n }", "public void run() {\n\n\t\t\t\tgetHelmetDetails().material = getRandomMaterial();\n\t\t\t\tgetHelmetMoreDetails().material = getRandomMaterial();\n\n\t\t\t\t// bonus points:\n\t\t\t\t// randomly change the material of the helmet base to a texture\n\t\t\t\t// from the files aloha.png and camouflage.png (or add your own!)\n\t\t\t\tgetHelmetBase().material = getRandomMaterial();\n\t\t\t\tsetRandomLight();\n\n\t\t\t}", "public void run() {\n\t\t\t\tString patient_id = Statics.patientdesc.getPatient_id();\r\n\t\t\t\tString zid = Statics.patientdesc.getZy_id();\r\n\r\n\t\t\t\tdata = MyUntils.getMRPinggu(patient_id, zid, itemid,date);\r\n\t\t\t\tMessage msg = new Message();\r\n\t\t\t\tmsg.what = 101;\r\n\t\t\t\tmhandler.sendMessage(msg);\r\n\t\t\t}", "@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"SHOWWWW_ACCUEIL\");\n\t\tMusicManager.playLoop(typeSong.accueil);\n\t\tfond = new Texture(Gdx.files.internal(LauncherScreen.accueil));\n\t\tbatch = new SpriteBatch();\n\t\tGdx.input.setInputProcessor(this.inputHandler());\n\t}", "private void makeMeal() {\n\t\teating = true;\n\t\ttama.setLayoutX(200);\n\t\t\n\t\tmeal = new Sprite(3, 3, 27, 24, new Image(\"file:./res/images/meal.png\"), 1, 2100);\n\t\tmeal.setLayoutX(150);\n\t\tmeal.setLayoutY(150);\n\t\tmeal.setScaleX(0.5);\n\t\tmeal.setScaleY(0.5);\n\t\tgrid.getChildren().addAll(meal);\n\t\tPauseTransition pause = new PauseTransition(Duration.millis(2100));\n\t\tpause.setOnFinished(e -> {\n\t\t\tgrid.getChildren().remove(meal);\n\t\t\ttama.setLayoutX(190);\n\t\t\teating = false;\n\t\t\tmodel.getController().eatMeal();\n//\t\t\tif(!model.isHealthy()){\n//\t\t\t\tsetSickImg();\n//\t\t\t}\n\t\t});\n\t\tpause.play();\n\t}", "public void cargarMedicamento() {\n if (medicamentoSeleccionadoTabla == null) {\r\n imprimirMensaje(\"Error\", \"No se ha seleccionado ningún medicamento de la tabla\", FacesMessage.SEVERITY_ERROR);\r\n return;\r\n }\r\n limpiarFormularioMedicamentos();\r\n medicamentoSeleccionado = medicamentoFacade.find(medicamentoSeleccionadoTabla.getIdMedicamento());\r\n codigoMedicamento = medicamentoSeleccionado.getCodigoMedicamento();\r\n codigoCums = medicamentoSeleccionado.getCodigoCums();\r\n codigoCups = medicamentoSeleccionado.getCodigoCups();\r\n nombreMedicamento = medicamentoSeleccionado.getNombreMedicamento();\r\n nombreGenerico = medicamentoSeleccionado.getNombreGenerico();\r\n nombreComercial = medicamentoSeleccionado.getNombreComercial();\r\n formaMedicamento = medicamentoSeleccionado.getFormaMedicamento();\r\n pos = medicamentoSeleccionado.getPos();\r\n concentracion = medicamentoSeleccionado.getConcentracion();\r\n unidadMedida = medicamentoSeleccionado.getUnidadMedida();\r\n controlMedico = medicamentoSeleccionado.getControlMedico();\r\n registroSanitario = medicamentoSeleccionado.getRegistroSanitario();\r\n modAdmin = medicamentoSeleccionado.getModAdmin();\r\n if (medicamentoSeleccionado.getValor() != null) {\r\n valor = medicamentoSeleccionado.getValor();\r\n }\r\n tituloTabMedicamentos = \"Datos Medicamento: \" + nombreMedicamento;\r\n RequestContext.getCurrentInstance().execute(\"PF('dialogoBuscarMedicamentos').hide();\");\r\n }", "@Override\n public void run() {\n MaterialAnimator.animate(Transition.ZOOMOUT, btnFAB, 1000);\n btnFAB.setVisibility(Style.Visibility.HIDDEN);\n btnFAB.setOpacity(0);\n\n // Setting the visibility of the music panel\n musicPanel.setVisibility(Style.Visibility.VISIBLE);\n musicPanel.setOpacity(1);\n\n // Setting the music label with Bounce up animation\n lblMusic.setText(\"Pharell Williams / Love Yourself to Dance\");\n MaterialAnimator.animate(Transition.BOUNCEINUP, lblMusic, 1000);\n\n // Setting the image of the artist\n imgMusic.setUrl(\"http://thatgrapejuice.net/wp-content/uploads/2013/08/pharrell-williams-that-grape-juice.png\");\n }", "@FXML\n public void newMedico() {\n new MedicoPaneCadastroController().abrirJanela(\"./View/MedicoPaneCadastro.fxml\", \"Novo Médico\", null);\n populaTabela();\n\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry{\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tanimDraw.stop();\n\t\t\t\t\tanimDraw2.stop();\n\t\t\t\t\thandler.sendMessage(handler.obtainMessage());\n\t\t\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\n\t\t\t\t\t\tnew UriFactory().getHeadPortraitUrl());\n\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\n\t\t\t\tconnection.setRequestMethod(\"POST\");\n\t\t\t\tconnection.setConnectTimeout(8000);\n\t\t\t\tconnection.setReadTimeout(8000);\n\t\t\t\tconnection.setDoOutput(true);\n\t\t\t\tconnection.setDoInput(true);\n\t\t\t\tInputStream in = connection.getInputStream();\n\t\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\t\tresponse = new StringBuilder();\n\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\tresponse.append(line);\n\t\t\t\t}\n\t\t\t\tString msg = JSONAnalysis(response.toString().trim());\n\t\t\t\tSystem.out.println(\"=======================\" + msg);\n\t\t\t\tUserDao user = new UserDao(context);\n\t\t\t\tString imgutl = user.detailImgUrl();\n\t\t\t\tString imageurl = msg + imgutl;\n\t\t\t\tSystem.out.println(imageurl);\n\t\t\t\tMessage message = new Message();\n\t\t\t\tBundle data = new Bundle();\n\t\t\t\tdata.putString(\"imgurl\", imageurl);\n\t\t\t\tmessage.what = 1;\n\t\t\t\tmessage.setData(data);\n\t\t\t\thandler1.sendMessage(message);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tif (reader != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treader.close();\n\t\t\t\t\t} catch (IOException 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 (connection != null) {\n\t\t\t\t\tconnection.disconnect();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "GameResult start(Player uno , Player due , Model model ,Controller controller , ViewInterface view , gestioneInput io) throws IOException;", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry{\t\t\t\t\t\t\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tanimDraw.stop();\n\t\t\t\t\tanimDraw2.stop();\t\t\t\t\n\t\t\t\t\thandler2.sendMessage(handler2.obtainMessage());\n\t\t\t\t}", "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 }", "private void moveMehran() {\r\n\t\tif(count == 300 && dragon2 == null && mehran != null) {\r\n\t\t\tdouble x = mehran.getX();\r\n\t\t\tdouble y = mehran.getY();\r\n\t\t\tfor(int i = 1; i < animationArr.length; i++) {\r\n\t\t\t\tremove(mehran);\r\n\t\t\t\tmehran = animationArr[i];\r\n\t\t\t\tadd(mehran, x, y);\r\n\t\t\t\tmoveBullet();\r\n\t\t\t\tpause(DELAY);\r\n\t\t\t}\r\n\t\t\tlaser = new GRect(mehran.getX() - 1, mehran.getY() + 100, LASER_WIDTH, LASER_HEIGHT);\r\n\t\t\tlaser.setFilled(true);\r\n\t\t\tlaser.setColor(Color.RED);\r\n\t\t\tadd(laser);\r\n\t\t\tfor(int i = animationArr.length - 1; i > 0; i--) {\r\n\t\t\t\tremove(mehran);\r\n\t\t\t\tmehran = animationArr[i];\r\n\t\t\t\tadd(mehran, x, y);\r\n\t\t\t\tmoveBullet();\r\n\t\t\t\tpause(DELAY);\r\n\t\t\t}\r\n\t\t\tcount = 0;\r\n\t\t}\r\n\t}", "public void orderMedicine(MedicineOrder order)\n {\n OrderRequestSingleton orderRequests = OrderRequestSingleton.getInstance();\n orderRequests.processRequest(order);\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry{\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tanimDraw.stop();\n\t\t\t\t\tanimDraw2.stop();\t\t\t\t\n\t\t\t\t\thandler3.sendMessage(handler3.obtainMessage());\n\t\t\t\t}", "public void run() {\n\n renderingForce = true;\n //file.play();\n\n\n if (haplyBoard.data_available()) {\n /* GET END-EFFECTOR STATE (TASK SPACE) */\n widgetOne.device_read_data();\n\n angles.set(widgetOne.get_device_angles()); \n posEE.set(widgetOne.get_device_position(angles.array()));\n posEE.set(posEE.copy().mult(200));\n }\n\n s.setToolPosition(edgeTopLeftX+worldWidth/2-(posEE).x, edgeTopLeftY+(posEE).y-7); \n\n\n s.updateCouplingForce();\n fEE.set(-s.getVirtualCouplingForceX(), s.getVirtualCouplingForceY());\n fEE.div(100000); //dynes to newtons\n\n torques.set(widgetOne.set_device_torques(fEE.array()));\n widgetOne.device_write_torques();\n\n world.step(1.0f/1000.0f);\n\n\n checkSplat();\n\n renderingForce = false;\n }", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public void run() {\n\t\trichiediProdotti();\n\t}", "private void drawMedal(){\n image.clear();\n \n // Determine what type of medal to draw (bronze, silver, gold, or diamond)\n if(achieved){\n if(type.equals(\"bronze\")) image.drawImage(bronzeMedal, WIDTH / 2 - 34, 0);\n else if(type.equals(\"silver\")) image.drawImage(silverMedal, WIDTH / 2 - 34, 0);\n else if(type.equals(\"gold\")) image.drawImage(goldMedal, WIDTH / 2 - 37, 0);\n else if(type.equals(\"diamond\")) image.drawImage(diamondMedal, WIDTH / 2 - 34, 0);\n }\n else{ // Set medal to black if the user hasn't achieved it yet\n if(type.equals(\"bronze\")) image.drawImage(noBronzeMedal, WIDTH / 2 - 34, 0);\n else if(type.equals(\"silver\")) image.drawImage(noSilverMedal, WIDTH / 2 - 34, 0);\n else if(type.equals(\"gold\")) image.drawImage(noGoldMedal, WIDTH / 2 - 37, 0);\n else if(type.equals(\"diamond\")) image.drawImage(noDiamondMedal, WIDTH / 2 - 34, 0);\n }\n \n image.setColor(NAME_COLOR);\n image.setFont(NAME_FONT);\n image.drawString(name, (image.getWidth() - (int)(name.length() * NAME_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 9 / 10));\n setImage(image);\n }", "void startAnimation();", "public void run() {\n\t\t\t\tVerticalPanel panelCompteRendu = new VerticalPanel();\r\n\t\t\t\thtmlCompteRendu = new HTML();\r\n\t\t\t\tpanelCompteRendu.add(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"compteRendu\").add(panelCompteRendu);\r\n\t\t\t\t\r\n\t\t\t\tVerticalPanel panelLegende = new VerticalPanel();\r\n\t\t\t\thtmlLegende = new HTML();\r\n\t\t\t\tpanelLegende.add(htmlLegende);\r\n\t\t\t\tRootPanel.get(\"legende\").add(htmlLegende);\r\n\t\t\t\t\r\n\t\t\t\t// temps d'intˇgration restant\r\n\t\t\t\tLabel tempsDIntegrationRestant = new Label();\r\n\t\t\t\tRootPanel.get(\"tempsDIntegrationRestant\").add(tempsDIntegrationRestant);\r\n\t\t\t\t\r\n\t\t\t\t// ajout de la carte\r\n\t\t\t\twMap = new MapFaWidget2(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"carte\").add(wMap);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// ajout du bouton reset\r\n\t\t\t\tButton boutonReset = new Button(\"Nettoyer la carte\");\r\n\t\t\t\tboutonReset.addClickHandler(actionBoutonReset());\r\n\t\t\t\tRootPanel.get(\"boutonReset\").add(boutonReset);\r\n\r\n\t\t\t\t// ajout du formulaire d'intˇgration\r\n\t\t\t\tnew FileUploadView(wMap,htmlLegende, htmlCompteRendu,tempsDIntegrationRestant);\r\n\r\n\t\t\t}", "public void crearmedico(Medico medicoSelec) {\n\t\tmedicoMapper.crearmedico(medicoSelec);\n\t}", "public void show(int delayTime) {\n\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n switch (mType) {\n case TYPE_First:\n mNewbieGuide.addIndicateImg(R.mipmap.guide_right,\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity, 110))\n .addMessage(mActivity.getString(R.string.switch_map),\n ScreenUtils.dpToPx(mActivity, -40)\n ,ScreenUtils.dpToPx(mActivity, 130))\n .addIndicateImg(R.mipmap.guide_left,\n ScreenUtils.dpToPx(mActivity,60),\n ScreenUtils.dpToPx(mActivity,40))\n .addMessage(mActivity.getString(R.string.open_menu),\n ScreenUtils.dpToPx(mActivity,85),\n ScreenUtils.dpToPx(mActivity,60)).show();\n\n break;\n\n case TYPE_TWICE:\n mNewbieGuide.addIndicateImg(R.mipmap.guide_right2,\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity, -170))\n\n .addMessage(mActivity.getString(R.string.see_the_history),\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity,-185)).\n\n addIndicateImg(R.mipmap.guide_down,\n ScreenUtils.dpToPx(mActivity,-105),\n ScreenUtils.dpToPx(mActivity,-135))\n\n .addMessage(mActivity.getString(R.string.navigate_to_the_watch),\n ScreenUtils.dpToPx(mActivity,-115),\n ScreenUtils.dpToPx(mActivity,-160)).show();\n break;\n\n case TYPE_THIRD:\n mNewbieGuide.addIndicateImg(R.mipmap.guide_right2,\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity,-230))\n .addMessage(\"设置安全区域\",\n ScreenUtils.dpToPx(mActivity,-50),\n ScreenUtils.dpToPx(mActivity,-250))\n .addIndicateImg(R.mipmap.guide_down,\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity, -130))\n .addMessage(\"立即刷新位置\",\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity,-155))\n .show();\n }\n }\n }, delayTime);\n }", "private void start(){\n character.fillEnergy();\n piles.getDrawPile().shuffle();\n for(int i = 1 ; i <= 5 ; i++ ){\n piles.drawCard();\n }\n effectHandler.startFight();\n\n }", "@Override\n protected void animStart() {\n }", "public void d() {\n MiTalkiApp.n().postDelayed(new Runnable() {\n public void run() {\n SetMyOtherInfoActivity.this.k();\n }\n }, 500);\n }", "public static void start() {\n \t\tMainGame.display.disp(\"What type of monster do you want to fight?:\");\r\n \t\t//Display the buttons for the choice of monster\r\n \t\tMainGame.display.Enable(MainGame.display.warriorM, MainGame.display.fighterM);\r\n \t}", "public void run() {\n TextView tempTextView = (TextView) findViewById(R.id.humonNameTextView);\n tempTextView.setText(humon.getName());\n tempTextView = (TextView) findViewById(R.id.humonDescriptionTextView);\n tempTextView.setText(humon.getDescription());\n tempTextView = (TextView) findViewById(R.id.healthValue);\n tempTextView.setText(\"\" + humon.getHealth());\n tempTextView = (TextView) findViewById(R.id.attackValue);\n tempTextView.setText(\"\" + humon.getAttack());\n tempTextView = (TextView) findViewById(R.id.defenseValue);\n tempTextView.setText(\"\" + humon.getDefense());\n tempTextView = (TextView) findViewById(R.id.speedValue);\n tempTextView.setText(\"\" + humon.getSpeed());\n tempTextView = (TextView) findViewById(R.id.luckValue);\n tempTextView.setText(\"\" + humon.getLuck());\n\n //load moves into grid\n ArrayList<Move> humonMoves = humon.getMoves();\n moveList.clear();\n for(int i = 0; i < humonMoves.size(); i++) {\n moveList.add(humonMoves.get(i));\n }\n moveAdapter.notifyDataSetChanged();\n\n //load humon image\n if(humon.getImagePath() != null) {\n if(humon.getImagePath().length() != 0) {\n Bitmap humonImage = BitmapFactory.decodeFile(humon.getImagePath());\n ImageView humonImageView = (ImageView) findViewById(R.id.humonImageView);\n humonImageView.setImageBitmap(humonImage);\n }\n }\n\n }", "private void showAnimation() {\n // play voice, and start animation\n if (message.getDirect() == HTMessage.Direct.RECEIVE) {\n voiceIconView.setImageResource(+R.anim.voice_from_icon);\n } else {\n voiceIconView.setImageResource(+R.anim.voice_to_icon);\n }\n voiceAnimation = (AnimationDrawable) voiceIconView.getDrawable();\n voiceAnimation.start();\n }", "private void startMapCreater() {\n\t\tNavigator navi = new Navigator(pilot);\n\t\tnavi.addWaypoint(0,0);\n\t\tnavi.addWaypoint(0,5000);\n\t\tBehavior forward = new Forward(navi);\n\t\tBehavior ultrasonic = new UltrasonicSensor(ultrasonicSensorAdaptor,pilot, sonicWheel,dis,dos,navi);\n\t\tBehavior stopEverything = new StopRobot(Button.ESCAPE);\n\t\tBehavior[] behaiverArray = {forward, ultrasonic, stopEverything};\n\t\tarb = new Arbitrator(behaiverArray);\n\t\t\n\t arb.go();\n\t\t\n\t}", "private void showSpam(){\n getSpam();\n //display persons\n MainActivity.instance().displayPersonsRunnable = new DisplayPersonsRunnable(MainActivity.instance());\n this.thread = new Thread(MainActivity.instance().displayPersonsRunnable);\n this.thread.start();\n }", "private void fahre(int aufzugNummer, int stockwerkAenderung){\n\t\tSystem.out.println();\r\n\t\t//Animation der Aufzüge\r\n\t\tTranslateTransition anpassung = new TranslateTransition(Duration.seconds(Aufzug.DAUER_PRO_STOCK*Math.abs(stockwerkAenderung)), aufzuge[aufzugNummer]);\r\n\t\tanpassung.setByY(stockwerkAenderung*stockwerkHohe);\r\n\t\tanpassung.play();\r\n\t}", "private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}", "public void startFeeding() {\n motor.set(FEED_SPEED);\n }", "@Override\n public void run() {\n Toast.makeText(DirectorsCut.this, \"Camera Animation\",\n Toast.LENGTH_SHORT).show();\n animateYaw(0.0f, 2000);\n\n }", "public MangKaib(Main game){\n super(game);\n taust = new Taust(0,0,600,400);\n taust.checkLevel();// checkime, mis areaga tegu on peale uue tausta loomist\n mobSpawner.lisaMobInfo(); // laeme mob info.\n //game, width height draw x draw y, elud, damage, nimi, exp\n mangija = new Player(game, 97,174,50,370,100,10);\n mspawner = new mobSpawner(game, Mobid[13].getWidth(), Mobid[13].getHeight(), 450, 370, km[13].elud, km[13].dpsMin, km[13].dpsMax, km[13].mobSpeed, km[13].nimi, km[13].mobXp, km[13].mobGold,km[13].mobGold);\n magicAttack = new magicAttack(game,(mangija.x+mangija.width-15),(mangija.y-(mangija.height/2)),40,20,1,mangija.damage);\n kLiides = new uiBox(0,400,600,200);\n kLiides2 = new uiSide(600,0,200,600);\n uusRida = new Tekstid(0,420);//420 v 590\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,gst.resultFile);\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n public void run() {\n mPresenter.loadCameras();\n Log.d(\"Handlers\", \"Refresh lists\");\n // Repeat this the same runnable code block again another 2 seconds\n handler.postDelayed(runnableCode, 5000);\n }", "public void crawl() {\n\t\tOOSpider.create(Site.me().setSleepTime(3000).setRetryTimes(3).setDomain(\"movie.douban.com\")//.setHttpProxy(httpProxy)\n .setUserAgent(\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36\"),\n filmInfoDaoPipeline, DoubanFilm.class)\n .addUrl(\"https://movie.douban.com/top250\")//entry url\n .thread(1)\n .run();\n }", "public void diagrafiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka sto farmakeio\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA FARMAKWN\");\n\t\t\t// Emfanizw ola ta famraka tou farmakeiou\n\t\t\tfor(int j = 0; j < numOfMedicine; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA FARMAKOU: \");\n\t\t\t\tSystem.out.println();\n\t \t \tmedicine[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO TOU FARMAKOU POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfMedicine)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO FARMAKOU: \");\n\t\t\t}\n\t\t\t// Metakinw ta epomena farmaka mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfMedicine - 1; k++)\n\t\t\t{\n\t\t\t\tmedicine[k] = medicine[k+1]; // Metakinw to farmako sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfMedicine--; // Meiwse ton ari8mo twn farmakwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMA FARMAKA PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override\n\tpublic void action() {\n\t\t_agj.addBehaviour(new RecibirDistritos(_agj));\n\t\t_agj.addBehaviour(new RecibirMonedas(_agj));\n\t}", "void run() {\n System.out.println(\"PC Visual application run\");\n data = new Data(this);\n window = new Window(this);\n window.setup();\n mote = new MoteIF(PrintStreamMessenger.err);\n mote.registerListener(new OscilloscopeMsg(), this);\n }", "public void mo5968e() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{-((float) C1413m.f5711i.getHeight()), 0.0f}).setDuration(240);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{0.0f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}).setDuration(240);\n duration.start();\n duration2.start();\n long j = (long) 160;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.6f, 0.5f, 0.4f, 0.3f, 0.2f, 0.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5438qa, \"alpha\", new float[]{1.0f, 0.0f}).setDuration(j).start();\n duration.addListener(new C1302Xa(this));\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tif (Mascota.get_hambre() > 0 && Mascota.get_hambre() != 5) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n try {\r\n \t Mascota.set_alimentar();\r\n\t\t\t\t\t\tmostrar_hambre.setText(\"Nivel de hambre : \" + Mascota.get_hambre());\r\n\t\t\t\t\t\teti_actividad.setText(\"Ñam...ñam...Estoy comiendo\");\r\n\t\t\t\t\t\teti_actividad.setVisible(true);\r\n\t\t\t\t\t\tThread.sleep(6000);\r\n\t\t\t\t\t\teti_actividad.setVisible(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t }\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}else {\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\teti_actividad.setText(\"No tengo hambre\");\r\n\t\t\t\t\t\teti_actividad.setVisible(true);\r\n\t\t\t\t\t\tThread.sleep(6000);\r\n\t\t\t\t\t\teti_actividad.setVisible(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\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}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tsuper.run();\n\t\t\t\t\twhile (isonshow) {\n\t\t\t\t\t\tfor (int i = 0; i<(0.0416*scrrenHeight); i++) {\n\t\t\t\t\t\t\t//Log.i(\"thread\", i+\"\");\n\t\t\t\t\t\t\tsc.scrollTo(0, i);\n\t\t\t\t\t\t\t//handler11.sendEmptyMessage(i);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsleep(20);\n\n\t\t\t\t\t\t\t\tif(!isonshow){\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}else{}\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\tfor (int i = 0; i < 20; i++) {\n\n\t\t\t\t\t\t\t\tsleep(40);\n\t\t\t\t\t\t\t\tif(!isonshow){\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}else{}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tsc.scrollTo(0, 0);\n\n\t\t\t\t\t\thandler11.sendEmptyMessage(0);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsleep(80);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}", "public void limparTextoCamadas() {\n Platform.runLater(() -> {\n camadaAplicacao.limpar();\n camadaEnlace.limpar();\n camadaFisica.limpar();\n });\n }", "@Override\n public void animate() {\n }", "public void run() {\n mImageView.animate().setDuration(duration).scaleX(mWidthScale)\n .scaleY(mHeightScale).translationX(mLeftDelta)\n .translationY(mTopDelta).withEndAction(endAction);\n if (fadeOut) {\n mImageView.animate().alpha(0);\n }\n // Fade out background\n ObjectAnimator bgAnim = ObjectAnimator.ofInt(mBackground, \"alpha\", 0);\n bgAnim.setDuration(duration);\n bgAnim.start();\n\n // Animate the shadow of the image\n ObjectAnimator shadowAnim = ObjectAnimator.ofFloat(mShadowLayout,\n \"shadowDepth\", 1, 0);\n shadowAnim.setDuration(duration);\n shadowAnim.start();\n\n // Animate a color filter to take the image back to\n // grayscale,\n // in parallel with the image scaling and moving into\n // place.\n ObjectAnimator colorizer = ObjectAnimator.ofFloat(FullImageActivity.this,\n \"saturation\", 1, 0);\n colorizer.setDuration(duration);\n colorizer.start();\n }", "private void doLine()\n\t{\n\t\tubisenseData = new UbisenseMockupData();\n\t\tDecimalFormat df = new DecimalFormat(\"#0,00\");\n\n\t\telapsedTime = 0;\n\t\t\n\t\tubisenseData.setTagID(Helper.DEFAULT_TAG_ID);\n\t\tubisenseData.setUnit(Helper.UBISENSE_UNIT);\n\t\tubisenseData.setOntology(Helper.LP_ONTOLOGY_URL);\n\t\tubisenseData.setVersion(Helper.UBISENSE_VERSION);\n\t\tubisenseData.setId(\"\");\n\t\tubisenseData.setSendTime(sendTime);\n\t\t\n\t\tlong millis = startDate.getMillis();\n\t\tmillis += offset.toStandardDuration().getMillis();\n//\t\tmillis += parentOffset.toStandardDuration().getMillis();\n\t\t\n\t\t// Steigung m und Achsenabschnitt b berechnen\n//\t\tdouble m = 0.;\n//\t\tif ((x2-x1)!=0)\n//\t\t\tm = (y2-y1)/(x2-x1);\n//\t\tdouble b = y1 - (m * x1);\n\t\t\n\t\t// Abstand zwischen beiden Koordinaten d\n\t\tdouble dsquare = Math.pow((x2-x1),2) + Math.pow((y2-y1),2);\n\t\tdouble d = Math.sqrt(dsquare);\n\n\t\t// Zeit t [s] berechnen, die für die Distanz d unter gegebener Geschwindigkeit benötigt wird.\n\t\tdouble t = d / toolSpeed;\n\t\tdouble steps = Math.ceil(t) +1;\n\t\t\n\t\twhile (steps>0 && !terminate)\n\t\t{\n\t\t\tdouble x,y, currentTime=0;\n\t\t\tif (t != 0)\n\t\t\tcurrentTime = elapsedTime / t;\n\t\t\t\n\t\t\tx = (x2-x1) * currentTime + x1;\n\t\t\ty = (y2-y1) * currentTime + y1;\n\t\t\tubisenseData.setPosition(new Point3D(\tDouble.parseDouble(df.format(x)),\n\t\t\t \tDouble.parseDouble(df.format(y)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t1.6));\n\t\t\tubisenseData.setId(String.valueOf(Helper.getRandomInt()));\n\t\t\tubisenseData.setTime(millis + (long)(elapsedTime*SLEEP_INTERVAL));\n\t\t\tEntryEvent event = new EntryEvent(this);\n\t\t\tnotifyListeners(event);\n\t\t\telapsedTime++;\n\t\t\tif (elapsedTime > t)\n\t\t\t\telapsedTime = t;\n\t\t\t\n\t\t\tsteps--;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (speed > 0)\n\t\t\t\t\tThread.sleep(SLEEP_INTERVAL/speed);\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_enregistrement);\n\n recorder.setListener(processor);\n\n ImageButton okBtn = (ImageButton) findViewById(R.id.enregistrementStop);\n okBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n recorder.stopRec();\n processor.waitEnd();// attend la fin des traitements\n startActivity(new Intent(EnregistrementActivity.this, NameActivity.class));\n finish();\n }\n });\n\n //Code for the metronome switching\n final int[] imageArray = {R.drawable.metronome, R.drawable.metronome};// TODO metronome_flip};\n\n\n final Handler handler = new Handler();\n\n final ImageView imageView = (ImageView) findViewById(R.id.imageView);\n\n Runnable runnable = new Runnable() {\n int i = 0;\n\n public void run() {\n imageView.setImageResource(imageArray[i]);\n /*\n i++;\n if(i>imageArray.length-1)\n {\n i=0;\n }\n */\n i = (i + 1) % imageArray.length;\n\n handler.postDelayed(this, 500); //for interval...\n }\n };\n handler.postDelayed(runnable, 20); //for initial delay..\n\n\n //TO DO : put the record function\n\n processor.startRecProcessing();\n\n }", "public static Result reportMetermaidSighting(){\n \tForm<MeterMaid> filledForm = Form.form(MeterMaid.class).bindFromRequest();\n \tMeterMaid maid = filledForm.get();\n \t\n \t// handle new information\n// \tMeterMaid.acceptReport(maid);\n \t\n \t// render the splash page again \t\n \treturn ok(index.render(byline, maidForm, parkingForm));\n \t\n }", "public void start() {\n\tanimator = new Thread(this);\n\tanimator.setName(\"erly_boid:::swarm intelligence\");\n\terlang =new Thread(co);\n\terlang.start();\n\tanimator.start();\n \n \n \t\n }", "@Override\n public void onServerResponse(Object json) {\n runOnUiThread(() -> {\n loadRaters();\n ((TextView) findViewById(R.id.labelmenos1)).setText(\"Seleccione un evaluador de la lista a continuación\");\n });\n scrollDown();\n }", "public void run() {\n\t RecordApplication app = ((RecordApplication)getApplicationContext());\n\t \t\t mWaveformView = app.mDisplayView;\n\t \t\t float x = mWaveformView.getMeasuredWidth()>>1;\n\t \t\t float y = app.getLogoButton().getY()+ (app.getLogoButton().getHeight()/2);\n\t \t\t mWaveformView.stampSound(x, y-25);\n\t }", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "public PostMedicineController(PostMedicineGUI gui, Registry r)\n {\n this.gui = gui;\n this.r = r;\n // This registers the button with our action listener below (the inner class)\n \n\n gui.getjButton1().addActionListener(new postMedicineClass() );\n }", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void mostrarMusicaPorArtista() {\r\n\t\t\r\n\t\t//Instanciar view solicitar artista\r\n\t\tViewSolicitaArtista vsa = new ViewSolicitaArtista();\r\n\t\t\r\n\t\t//Obter artistas\r\n\t\tvsa.obterArtista();\r\n\t\t\r\n\t\t//Guarda artista\r\n\t\tString artista = vsa.getArtista();\r\n\t\t\r\n\t\tif (this.bd.naoExisteArtista(artista)) {\r\n\r\n\t\t\t//Metodo musica por artista\r\n\t\t\tArrayList<String> musicas = this.bd.getMusicasPorArtista(artista);\r\n\t\t\t\r\n\t\t\t//Instancia view para mostrar musicas\r\n\t\t\tViewExibeMusicas vem = new ViewExibeMusicas();\r\n\t\t\t\r\n\t\t\t//Exibe musicas\r\n\t\t\tvem.exibeMusicas(musicas);\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\r\n\t\t//Instanciar view informa\r\n\t\tViewInformacaoExiste vie = new ViewInformacaoExiste();\r\n\t\t\r\n\t\t//Exibir mensagem artista não existe\r\n\t\tvie.mensagemArtistaNaoExiste();\r\n\t\t}\r\n\t}", "public void run() {\n int x = m.getCurrentMouse().getX();\n int y = m.getCurrentMouse().getY();\n int scrollX = view.getScroll().getHorizontalScrollBar().getValue();\n int scrollY = view.getScroll().getVerticalScrollBar().getValue();\n\n int clickX = x + scrollX - 40;\n\n int clickY = y + scrollY - 30;\n\n int fromTheTop = clickY / 21;\n int fromTheLeft = clickX / 21;\n\n\n Note n = model.getHighestPitch();\n\n for (int i = 0; i < fromTheTop; i++) {\n n = Note.prevNote(n);\n }\n this.model.setNoteToBeAdded(new Note(n.getPitchLetter(), n.getOctave(),\n fromTheLeft, fromTheLeft));\n\n view.setAllNotes(model.getMusic());\n view.setLength(model.getDuration());\n view.setTone(model.getTone(model.getNotes()));\n view.setTempo(model.getTempo());\n\n\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\twhile(!gpt.done);\r\n\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\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 run() {\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\tif(change_tempo){\r\n\t\t\t\t\t\t\t\t\t\t\tPatternMaker.changeSpeed(pattern, ratio);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tgotoPractice(pattern);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}", "public void act() \n {\n gravity();\n animate();\n }", "public void run() {\n\t\tLooper.prepare();\n\t\tThread.currentThread().setName(\"Guidance\");\n\t\tThread.currentThread().setPriority(Thread.MAX_PRIORITY);\n\t\tcreateHandler();\n\t\t//mHandler.sendEmptyMessage(EVAL_MOTOR_SPEED);\n\t\treceiveMessage(\"DIRECT:0:0:0:0\", null);\n\t\tLooper.loop();\n\t}", "public void mostrar() {\n\t\t\n\t\tdibujarFondo();\n\t\tdibujarMarcador();\n\t\t\n\t\tScene escena = new Scene(panel, panel.getPrefWidth(), panel.getPrefHeight());\n\n\t\tescenario.setScene(escena);\n\t\tescenario.setResizable(false);\n\t\tescenario.setTitle(Aplicacion.TITULO);\n\t\t\n\t\tdibujar();\n\n\t\tescenario.show();\n\t}", "public void startpager() {\n\t\thandlers.postDelayed(runnable, 2000);\n// \t final Timer timer = new Timer();\n//\t TimerTask task = new TimerTask(){\n//\t public void run(){\n//\t\n//\t }\n//\t };\n//\t timer.schedule(task, 0,2000);\n\t}", "static void SampleItinerary()\n {\n System.out.println(\"\\n ***Everyone piles on the boat and goes to Molokai***\");\n\n bg.AdultRowToMolokai();\n bg.ChildRideToMolokai();\n bg.AdultRideToMolokai();\n bg.ChildRideToMolokai();\n }", "private void cargarRegistroMedicamentos() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"admision_seleccionada\", admision_seleccionada);\r\n\t\tparametros.put(\"rol_medico\", \"S\");\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\"/pages/registro_medicamentos.zul\", \"REGISTRO DE MEDICAMENTOS\",\r\n\t\t\t\tparametros);\r\n\t}", "public void daiMedicina() {\n System.out.println(\"Vuoi curare \" + nome + \" per 200 Tam? S/N\");\n String temp = creaturaIn.next();\n if (temp.equals(\"s\") || temp.equals(\"S\")) {\n puntiVita += 60;\n soldiTam -= 200;\n }\n checkStato();\n }", "public Action play() {\n\t MobileDevice mobileDevice = MobileDevice.getInstance();\r\n\t\tUiDevice uiDevice = UiDevice.getInstance();\r\n\t\tint i = 0;\r\n\t\twhile (i < 5 && uiDevice.swipe(340, 180, 340, 660, 10)) i++;\r\n\t\ttry {\r\n\t\t\tThread.sleep(1000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t ApplicationInfor.errorLogging(\"user tweet process: sleep exception, msg=\" + e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\tQQMessage qqMessage = null;\r\n ArrayList<QQMessage> messageList = new ArrayList<QQMessage>();\r\n\t\t// get the first picture.\r\n\t\tqqMessage = this.getMessageItem();\r\n\t\tint errorTimes = 0;\r\n\t\t\r\n\t\twhile (null != qqMessage.uiItemObj && qqMessage.uiItemObj.exists()) {\r\n\t\t boolean isValidMessage = false;\r\n\t\t\tif (QQMessage.QQMessageType.PICTURE == qqMessage.messageType) {\r\n\t\t\t try {\r\n\t\t // get the image info.\r\n\t\t\t\t qqMessage.uiItemObj.click();\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\tint retryTime = 0;\r\n\t\t\t\t\tfor (retryTime = 0; retryTime < 3; retryTime++) {\r\n \t\t\t\t\tUiObject imgFullObj = new UiObject(new UiSelector().className(\"android.widget.ImageButton\"));\r\n \t\t\t\t\tif (!imgFullObj.exists()) {\r\n \t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: image full object not exist!\");\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\timgFullObj.click();\r\n \t\t\t\t\t\tUiObject saveButton = new UiObject(new UiSelector().text(\"保存到手机\"));\r\n \t\t\t\t\t\tif (!saveButton.exists()) {\r\n \t\t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: save button not found.\");\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tsaveButton.click();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tUiObject replaceButton = new UiObject(new UiSelector().text(\"替换\"));\r\n \t\t\t\t\t\tif (replaceButton.exists()) {\r\n \t\t\t\t\t\t\treplaceButton.click();\r\n \t\t\t\t\t\t}\r\n \t\t uiDevice.pressBack();\r\n \t\t isValidMessage = true;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (isValidMessage) {\r\n \t\t\t\t\t break;\r\n \t\t\t\t\t}\r\n \t Thread.sleep(1000);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!isValidMessage) {\r\n\t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: get imsage all retry failed!!!\");\r\n\t\t\t\t\t}\r\n\t\t\t } catch (UiObjectNotFoundException | InterruptedException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"message picture: save the picture exception, msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t} else if (QQMessage.QQMessageType.VOICE == qqMessage.messageType) {\r\n\t\t\t try {\r\n\t\t\t\t // get the voice info.\r\n\t\t\t\t qqMessage.text = qqMessage.uiItemObj.getText().trim();\r\n\t\t\t\t qqMessage.uiItemObj.dragTo(qqMessage.uiItemObj, 50);\r\n\t\t\t\t UiObject collectionButtonObj = new UiObject(new UiSelector().text(\"收藏\"));\r\n\t\t\t\t if (!collectionButtonObj.exists()) {\r\n\t\t\t\t ApplicationInfor.errorLogging(\"collect audios: collection button not found.\");\r\n\t\t\t\t uiDevice.pressBack();\r\n\t\t\t\t } else {\r\n\t\t\t\t collectionButtonObj.click();\r\n UiObject collectButtonObj = new UiObject(new UiSelector().text(\"收藏\"));\r\n if (!collectionButtonObj.exists()) {\r\n ApplicationInfor.errorLogging(\"collect audios: collectionButton edit not exist.\");\r\n } else {\r\n collectButtonObj.click();\r\n File collectionDir = new File(sCollectionPrefixPath);\r\n if (!collectionDir.isDirectory()) {\r\n ApplicationInfor.errorLogging(\"Collection directory not exist.\");\r\n } else {\r\n File[] audios = collectionDir.listFiles(new FileFilter() {\r\n public boolean accept(File file) {\r\n if (file.getName().startsWith(\"collection_\")) {\r\n return false;\r\n }\r\n if (file.getName().endsWith(\".slk\")) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n });\r\n if (1 != audios.length) {\r\n ApplicationInfor.warningLogging(\"autios length not 1, length = \" + String.valueOf(audios.length));\r\n }\r\n if (0 < audios.length) {\r\n File curAudiosFile = audios[0];\r\n UUID uuid = UUID.randomUUID();\r\n String newFileName = uuid.toString() + \".slk\";\r\n File newFile = new File(curAudiosFile.getParent(), newFileName);\r\n if (!curAudiosFile.renameTo(newFile)) {\r\n ApplicationInfor.errorLogging(\"audios process: rename file failed!\");\r\n } else {\r\n qqMessage.messageFile = newFile;\r\n isValidMessage = true;\r\n }\r\n }\r\n }\r\n }\r\n \r\n\t\t\t\t }\r\n\t\t\t } catch (UiObjectNotFoundException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"collect audios: exception! msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t} else if (QQMessage.QQMessageType.TEXT == qqMessage.messageType) {\r\n\t\t\t try {\r\n \t\t\t // get the text info.\r\n \t\t\t qqMessage.text= qqMessage.uiItemObj.getText().trim();\r\n \t\t\t isValidMessage = true;\r\n\t\t\t } catch (UiObjectNotFoundException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"message text: exception! msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\tif (isValidMessage) {\r\n\t\t\t messageList.add(qqMessage);\r\n\t\t\t errorTimes = 0;\r\n\t\t\t} else {\r\n\t errorTimes += 1;\r\n\t\t\t if (errorTimes < 5) {\r\n\t\t\t i = 0;\r\n\t\t\t while (i < 5 && uiDevice.swipe(340, 180, 340, 660, 10)) i++;\r\n\t\t\t try {\r\n\t\t\t Thread.sleep(1000);\r\n\t\t\t } catch (InterruptedException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"user tweet process: sleep exception, msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t } else {\r\n\t\t\t errorTimes = 0;\r\n\t\t\t ApplicationInfor.errorLogging(\"Pull up 5 times but not work.\");\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\t// delete the user item.\r\n\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t try {\r\n \t\t\t qqMessage.uiItemObj.dragTo(qqMessage.uiItemObj, 50);\r\n \t\t\t UiObject rightButton = new UiObject(new UiSelector().description(\"right\"));\r\n \t\t\t if (rightButton.exists()) {\r\n \t\t\t rightButton.click();\r\n \t\t\t }\r\n \t\t\t\tUiObject delButton = new UiObject(new UiSelector().text(\"删除\"));\r\n \t\t\t\tif (!delButton.exists()) {\r\n \t\t\t\t ApplicationInfor.warningLogging(\"user tweet process: delete button not found.\");\r\n \t\t\t\t} else {\r\n \t\t\t\t\tdelButton.click();\r\n \t\t\t\t\tdelButton = new UiObject(new UiSelector().text(\"删除\"));\r\n \t\t\t\t\tif (delButton.exists()) {\r\n \t\t\t\t\t\tdelButton.click();\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: delete button accept not found.\");\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tif (QQMessage.QQMessageType.PICTURE == qqMessage.messageType) {\r\n \t\t\t\t UiObject imgFullObj = new UiObject(new UiSelector().className(\"android.widget.ImageButton\"));\r\n \t\t\t\t if (imgFullObj.exists()) {\r\n \t\t\t\t uiDevice.pressBack();\r\n \t\t\t\t }\r\n \t\t\t\t}\r\n \t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (UiObjectNotFoundException | InterruptedException e) {\r\n\t ApplicationInfor.errorLogging(\"user tweet process: get the img exception, msg=\" + e.getMessage());\r\n\t } \r\n\t\t\t} \r\n\t\t\tqqMessage = this.getMessageItem();\r\n\t\t}\r\n\t\t\r\n\t\t// get the QQ number\r\n\t\tString qqNum = \"\";\r\n\t\tUiObject qqObj = new UiObject(new UiSelector().resourceId(\"com.tencent.mobileqq:id/title\"));\r\n try {\r\n\t\t if (qqObj.exists()) {\r\n qqNum = qqObj.getText();\r\n uploadFiles(qqNum, messageList);\r\n\t\t } else {\r\n\t\t ApplicationInfor.errorLogging(\"user tweet process: QQ number not found.\");\r\n\t\t }\r\n\t } catch (UiObjectNotFoundException e) {\r\n\t ApplicationInfor.errorLogging(\"user tweet process: post the server exception, msg = \" + e.getMessage());\r\n }\r\n \r\n // clear gray column.\r\n UiObject grayColumnObj = new UiObject(new UiSelector().className(\"android.widget.AbsListView\").childSelector(\r\n new UiSelector().className(\"android.widget.LinearLayout\")));\r\n boolean isGrayColumnExists = grayColumnObj.exists(); \r\n UiObject titleTextObj = new UiObject(new UiSelector().resourceId(\"com.tencent.mobileqq:id/ivTitleName\"));\r\n String title = \"\";\r\n if (titleTextObj.exists()) {\r\n try {\r\n title = titleTextObj.getText();\r\n } catch (UiObjectNotFoundException e) {\r\n ApplicationInfor.errorLogging(\"title text get text exception, msg=\" + e.getMessage());\r\n }\r\n }\r\n\t\t// back to the normal.\r\n\t\tuiDevice.pressBack();\r\n\r\n\t\tif (title.equals(\"新朋友\")) {\r\n\t\t return this._actionMngr.getAddNewFriendsAction();\r\n\t\t} else if (isGrayColumnExists) {\r\n\t\t return this._actionMngr.getClearAllChatAction();\r\n\t\t}\r\n\t\t\r\n\t\treturn this._actionMngr.getMsglistDispatchAction();\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000*20);\r\n\t\t\t\t\t\tas.generateDiagModel(dataset);\r\n\t\t\t\t\t\tRDFReasoning.output(dataset);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\temotionLayout.setVisibility(View.VISIBLE);\n\t\t\t\t}", "protected void consume(MonitorItem monItem) {\n BackgroundStatus bgStat= monItem.getStatus();\n for(PushItem item= getNextItem(bgStat); (item!=null); item= getNextItem(bgStat) ) {\n TitleFlasher.flashTitle(\"!! New Image !!\");\n CatalogPanel.setDefaultSearchMethod(CatalogRequest.Method.POLYGON);\n AllPlots.getInstance().getActionReporter().setMonitorItem(monItem);\n String fileName;\n switch (item.pushType) {\n case WEB_PLOT_REQUEST:\n WebPlotRequest wpr= WebPlotRequest.parse(item.data);\n String id;\n if (wpr.getPlotId()!=null) {\n id= wpr.getPlotId();\n }\n else {\n id=IMAGE_CMD_PLOT_ID+idCnt;\n idCnt++;\n wpr.setPlotId(id);\n }\n prepareRequest(wpr);\n break;\n case REGION_FILE_NAME:\n fileName= item.data;\n DS9RegionLoadDialog.loadRegFile(fileName,null,monItem);\n break;\n case TABLE_FILE_NAME:\n fileName= item.data;\n loadTable(fileName,monItem);\n //\n break;\n case FITS_COMMAND_EXT:\n PlotCmdExtension ext= parsePlotCmdExtension(item.data);\n List<PlotCmdExtension> list= AllPlots.getInstance().getExtensionList(null);\n list.add(ext);\n for(MiniPlotWidget mpw : AllPlots.getInstance().getAll()) {\n if (mpw.getPlotView()!=null) {\n mpw.recomputeUserExtensionOptions();\n }\n }\n\n break;\n }\n }\n }", "public void run() {\n \tif (counter == POP_SIZE){\n \t\ttemp_wallpapers.clear();\n \t\tadView.requestFreshAd();\n \t\tsaveToDB();\n \t\tcrossover();\n \t\tmutation();\n \t\tcounter = 0;\n \t}\n \t// Make two thumbnails. \n \t// Set nodes that were choose to universal variables to keep track of which ones were selected.\n for (int r = 0; r < 2; r++){\n \tnodes[r] = getNode();\n \tbMap[r] = makeBitmap(nodes[r], r, 50, 50, height, width); \t\n }\n Message msg = mHandler.obtainMessage();\n Bundle b = new Bundle();\n b.putInt(\"total\", 100);\n msg.setData(b);\n mHandler.sendMessage(msg);\n\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tservicio();\r\n\t\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}" ]
[ "0.5928301", "0.5872916", "0.5803151", "0.5792646", "0.567279", "0.5568553", "0.5530538", "0.5529757", "0.5516887", "0.5514151", "0.55139244", "0.54797155", "0.5417541", "0.53890294", "0.5369413", "0.53631467", "0.5344723", "0.52974945", "0.52922726", "0.5289306", "0.5288938", "0.5276943", "0.5269535", "0.5263332", "0.5250972", "0.52169603", "0.5216237", "0.5215783", "0.52040935", "0.5183478", "0.51708746", "0.5167001", "0.51653534", "0.51599514", "0.5145065", "0.5142984", "0.5136172", "0.51268363", "0.5119559", "0.5110257", "0.51096153", "0.5102149", "0.510138", "0.50915635", "0.5086182", "0.5083903", "0.5072121", "0.5064125", "0.50614864", "0.5055459", "0.50498414", "0.5046653", "0.50450873", "0.5037233", "0.503632", "0.5034354", "0.50299835", "0.50283587", "0.5028252", "0.5027721", "0.50274855", "0.5026775", "0.50218993", "0.50207806", "0.5017947", "0.5008447", "0.4992045", "0.499175", "0.49871665", "0.49869448", "0.49866524", "0.49795234", "0.4979391", "0.49773288", "0.4971028", "0.49668017", "0.49644178", "0.49629188", "0.49616334", "0.49609813", "0.49588928", "0.49544895", "0.4951888", "0.49472296", "0.49414575", "0.49410242", "0.49397862", "0.49352068", "0.49332353", "0.49288738", "0.49284756", "0.4927939", "0.4924294", "0.49214336", "0.4919511", "0.49193397", "0.49147224", "0.49106196", "0.49098575", "0.49092633" ]
0.68555635
0
makes the tamagotchi some medicine, animated a medicine, calls the feedMedicine controller function
private void makePlay() { eating = true; tama.setLayoutX(200); play = new Sprite(6, 6, 360, 379, new Image("file:./res/images/basketball.png"), 1, 1000); play.setLayoutX(140); play.setLayoutY(190); play.setScaleX(0.5); play.setScaleY(0.5); grid.getChildren().addAll(play); PauseTransition pause = new PauseTransition(Duration.millis(1000)); pause.setOnFinished(e -> { grid.getChildren().remove(play); tama.setLayoutX(190); eating = false; model.getController().playWith(); }); pause.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void makeMedicine() {\n\t\teating = true;\n\t\ttama.setLayoutX(200);\n\n\t\tmedicine = new Sprite(3, 3, 540, 478, new Image(\"file:./res/images/hearts.png\"), 1, 2100);\n\t\tmedicine.setLayoutX(150);\n\t\tmedicine.setLayoutY(150);\n\t\tmedicine.setScaleX(0.3);\n\t\tmedicine.setScaleY(0.3);\n\t\tgrid.getChildren().addAll(medicine);\n\t\tPauseTransition pause = new PauseTransition(Duration.millis(2100));\n\t\tpause.setOnFinished(e -> {\n\t\t\tgrid.getChildren().remove(medicine);\n\t\t\ttama.setLayoutX(190);\n\t\t\teating = false;\n\t\t\tmodel.getController().feedMedicine();\n\t\t});\n\t\tpause.play();\n\n\t}", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "@Override\n public void feedingMeat() {\n\n }", "@Override\n\tpublic void run() {\n\t\tfinal MapOptions options = MapOptions.create(); //Dhmiourgeia antikeimenou me Factory (xwris constructor)\n\t\t//Default na fenetai xarths apo doruforo (Hybrid)\n\t\toptions.setMapTypeId(MapTypeId.HYBRID);\n\t\toptions.setZoom(Map.GOOGLE_MAPS_ZOOM);\n\t\t//Dhmiourgei ton xarth me tis panw ruthmiseis kai to vazei sto mapDiv\n\t\tgoogleMap = GoogleMap.create(map, options);\n\t\t//Otan o xrhsths kanei click epanw ston xarth\n\t\tfinal MarkerOptions markerOptions = MarkerOptions.create();\n\t\tmarkerOptions.setMap(googleMap);\n\t\tmarker = Marker.create(markerOptions);\n\t\t//psaxnei antikeimeno gia na kentrarei o xarths kai na fortwsei h forma\n\t\tfinal String id = Window.Location.getParameter(\"id\");\n\t\tif (id == null) {\n\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorRetrievingMedium(\n\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.noMediaIdSpecified()));\n\t\t\t//redirect sto map\n\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t} else {\n\t\t\t//Klhsh tou MEDIA_SERVICE gia na paroume to antikeimeno (metadedomena)\n\t\t\tMEDIA_SERVICE.getMedia(id, new AsyncCallback<Media>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(final Throwable throwable) {\n\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorRetrievingMedium(throwable.getMessage()));\n\t\t\t\t\t//redirect sto map\n\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(final Media media) {\n\t\t\t\t\tif (media == null) {\n\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(\n\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.mediaNotFound()));\n\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t//o xrhsths vlepei to media giati einai diko tou 'h einai diaxeirisths 'h to media einai public\n\t\t\t\t\t} else if (currentUser.equals(media.getUser()) || (currentUser.getStatus() == UserStatus.ADMIN) || media.isPublic()) {\n\t\t\t\t\t\t//Gemisma tou div content analoga ton tupo\n\t\t\t\t\t\tswitch (MediaType.getMediaType(media.getType())) {\n\t\t\t\t\t\tcase APPLICATION:\n\t\t\t\t\t\t\tfinal ImageElement application = Document.get().createImageElement();\n\t\t\t\t\t\t\tapplication.setSrc(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), MediaType.APPLICATION.name().toLowerCase()));\n\t\t\t\t\t\t\tapplication.setAlt(media.getTitle());\n\t\t\t\t\t\t\tapplication.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\tapplication.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\tcontent.appendChild(application);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase AUDIO:\n\t\t\t\t\t\t\tfinal AudioElement audio = Document.get().createAudioElement();\n\t\t\t\t\t\t\taudio.setControls(true);\n\t\t\t\t\t\t\taudio.setPreload(AudioElement.PRELOAD_AUTO);\n\t\t\t\t\t\t\t//url sto opoio vriskontai ta dedomena tou antikeimenou. Ta travaei o browser\n\t\t\t\t\t\t\t//me xrhsh tou media servlet\n\t\t\t\t\t\t\tfinal SourceElement audioSource = Document.get().createSourceElement();\n\t\t\t\t\t\t\taudioSource.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\taudioSource.setType(media.getType());\n\t\t\t\t\t\t\taudio.appendChild(audioSource);\n\t\t\t\t\t\t\tcontent.appendChild(audio);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase IMAGE:\n\t\t\t\t\t\t\tfinal ImageElement image = Document.get().createImageElement();\n\t\t\t\t\t\t\timage.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\timage.setAlt(media.getTitle());\n\t\t\t\t\t\t\timage.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\timage.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\tcontent.appendChild(image);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TEXT:\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * @see http://www.gwtproject.org/doc/latest/tutorial/JSON.html#http\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tfinal ParagraphElement text = Document.get().createPElement();\n\t\t\t\t\t\t\ttext.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\ttext.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\t//scrollbar gia to text\n\t\t\t\t\t\t\ttext.getStyle().setOverflow(Style.Overflow.SCROLL);\n\t\t\t\t\t\t\tcontent.appendChild(text);\n\t\t\t\t\t\t\t//Zhtaei asugxrona to periexomeno enos url\n\t\t\t\t\t\t\tfinal RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET,\n\t\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\trequestBuilder.sendRequest(null, new RequestCallback() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onError(final Request request, final Throwable throwable) {\n\t\t\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(throwable.getMessage()));\n\t\t\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\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@Override\n\t\t\t\t\t\t\t\t\tpublic void onResponseReceived(final Request request, final Response response) {\n\t\t\t\t\t\t\t\t\t\tif (response.getStatusCode() == Response.SC_OK) {\n\t\t\t\t\t\t\t\t\t\t\t//selida pou fernei to response se me to keimeno pros anazhthsh\n\t\t\t\t\t\t\t\t\t\t\ttext.setInnerText(response.getText());\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t//selida pou efere to response se periptwsh sfalmatos (getText())\n\t\t\t\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(response.getText()));\n\t\t\t\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} catch (final RequestException e) {\n\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(e.getMessage()));\n\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase VIDEO:\n\t\t\t\t\t\t\tfinal VideoElement video = Document.get().createVideoElement();\n\t\t\t\t\t\t\tvideo.setPoster(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), MediaType.VIDEO.name().toLowerCase()));\n\t\t\t\t\t\t\tvideo.setControls(true);\n\t\t\t\t\t\t\tvideo.setPreload(VideoElement.PRELOAD_AUTO);\n\t\t\t\t\t\t\tvideo.setWidth(Double.valueOf(CONTENT_WIDTH).intValue());\n\t\t\t\t\t\t\tvideo.setHeight(Double.valueOf(CONTENT_HEIGHT).intValue());\n\t\t\t\t\t\t\tfinal SourceElement videoSource = Document.get().createSourceElement();\n\t\t\t\t\t\t\tvideoSource.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\tvideoSource.setType(media.getType());\n\t\t\t\t\t\t\tvideo.appendChild(videoSource);\n\t\t\t\t\t\t\tcontent.appendChild(video);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//O current user peirazei to media an einai diko tou 'h an einai diaxeirisths\n\t\t\t\t\t\tif (currentUser.equals(media.getUser()) || (currentUser.getStatus() == UserStatus.ADMIN)) {\n\t\t\t\t\t\t\tedit.setEnabled(true);\n\t\t\t\t\t\t\tdelete.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttitle.setText(media.getTitle());\n\t\t\t\t\t\t//prosthikh html (keimeno kai eikona) stin selida\n\t\t\t\t\t\ttype.setHTML(List.TYPE.getValue(media));\n\t\t\t\t\t\t//analoga ton tupo dialegetai to katallhlo eikonidio\n\t\t\t\t\t\tmarker.setIcon(MarkerImage.create(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), \n\t\t\t\t\t\t\t\tMediaType.getMediaType(media.getType()).name().toLowerCase())));\n\t\t\t\t\t\tsize.setText(List.SIZE.getValue(media));\n\t\t\t\t\t\tduration.setText(List.DURATION.getValue(media));\n\t\t\t\t\t\tuser.setText(List.USER.getValue(media));\n\t\t\t\t\t\tcreated.setText(List.CREATED.getValue(media));\n\t\t\t\t\t\tedited.setText(List.EDITED.getValue(media));\n\t\t\t\t\t\tpublik.setHTML(List.PUBLIC.getValue(media));\n\t\t\t\t\t\tlatitudeLongitude.setText(\"(\" + List.LATITUDE.getValue(media) + \", \" + List.LONGITUDE.getValue(media) + \")\");\n\t\t\t\t\t\tfinal LatLng latLng = LatLng.create(media.getLatitude().doubleValue(), media.getLongitude().doubleValue());\n\t\t\t\t\t\tgoogleMap.setCenter(latLng);\n\t\t\t\t\t\tmarker.setPosition(latLng);\n\t\t\t\t\t} else { //Vrethike to media alla einai private allounou\n\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(\n\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.accessDenied()));\n\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), \n\t\t\t\t\t\t\t\tURL.encodeQueryString(LocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public void run() {\n GRectangle mida = new GRectangle(0, 0, MIDAPANTALLA, MIDAPANTALLA);\n\n // Preparar el cassador\n GImage imatge = new GImage(\"cireraire.png\");\n add(imatge);\n CassadorDeCireres cassador = new CassadorDeCireres(imatge);\n\n camp = new Camp(mida, cassador);\n\n for(int i=0; i<10; i++) { \n camp.afegirCirera(generaCirera());\n }\n\n clicaPerComencar();\n\n }", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t fimjson = null;\n\t\t \t try {\n\t\t\t\t\t\tString s=Login.readFileSdcardFile(\"/sdcard/json.txt\");\n\t\t\t\t\t\t//Log.i(\"\",s);\n\t\t\t\t\t\tfimjson=new JSONObject(s);\n\t\t\t\t\t} catch (JSONException 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} catch (IOException 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 \n\t\t \t int a = 0;\n\t\t\t\ttry {\n\t\t\t\t\ta = fimjson.getInt(\"totalResults\");\n\t\t\t\t} catch (JSONException 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 if (a>20) a=20;\n\t\t \t filmimg=new String[a];\n\t\t \t for(int i=0;i<a;i++){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfilmimg[i]=fimjson.getJSONArray(\"items\").getJSONObject(i).getString(\"imageUrl120\");\n\t\t\t\t\t} catch (JSONException 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 \n\t\t \t }\n\t\t \t \n\t\t\t\t Message msglv= new Message();\n\t\t msglv.what=1;\n\t\t handlerpupwindow.sendMessage(msglv);\n\t\t\t}", "public void run()\n {\n \t if (_messageWindow != null)\n \t {\n \t\t _messageWindow.append(\"Generating single artery image. \");\n \t }\n \t ImagePlus singleArteryImage = _singleArtery.setStartPosition(_selectedPos, _inputImage.getShortTitle()+_count);\n \t if (singleArteryImage != null)\n \t {\n \t\t _count++;\n \t\t singleArteryImage.show();\n \t\t singleArteryImage.updateAndDraw();\n \t\t DFMFromPointListener dfmp = new DFMFromPointListener(singleArteryImage, _singleArtery.getSingleCenterlineGraph(), \n \t \t\t_xRes, _yRes, _zRes, _width, _height, _zSize); \n \t dfmp.setThickenOutput(false);\n \t \n \t if (_messageWindow != null)\n \t {\n \t \tdfmp.setMessageWindow(_messageWindow);\n \t }\n \t }\n \t else\n \t {\n \t\t _messageWindow.append(\"Singe Artery Image is null\");\n \t }\n \t \n \t \n \t \n }", "private void meditate() {\n\t\t\tUtils.pause(10_000);\n\t\t\t// System.out.println(this.name + \" is finished meditate\");\n\t\t}", "public void montarTela(){\n ControllerListener listener = new BaseControllerListener(){\n @Override\n public void onFinalImageSet(String id, Object imageInfo, Animatable animatable) {\n super.onFinalImageSet(id, imageInfo, animatable);\n }\n\n @Override\n public void onFailure(String id, Throwable throwable) {\n super.onFailure(id, throwable);\n }\n\n @Override\n public void onIntermediateImageFailed(String id, Throwable throwable) {\n super.onIntermediateImageFailed(id, throwable);\n }\n\n @Override\n public void onIntermediateImageSet(String id, Object imageInfo) {\n super.onIntermediateImageSet(id, imageInfo);\n }\n\n @Override\n public void onRelease(String id) {\n super.onRelease(id);\n }\n\n @Override\n public void onSubmit(String id, Object callerContext) {\n super.onSubmit(id, callerContext);\n }\n };\n\n String urlImagem = DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\");\n\n Uri uri = null;\n DraweeController dc = null;\n\n if(urlImagem.contains(\"https\")){\n uri = Uri.parse(DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\"));\n dc = Fresco.newDraweeControllerBuilder()\n .setUri(uri)\n .setControllerListener(listener)\n .setOldController(ivFotoPerfil.getController())\n .build();\n } else {\n uri = Uri.parse(\"https://tocaredev.azurewebsites.net\"+DetalhesPaciente.paciente.getFoto().replace(\" \", \"%20\"));\n dc = Fresco.newDraweeControllerBuilder()\n .setUri(uri)\n .setControllerListener(listener)\n .setOldController(ivFotoPerfil.getController())\n .build();\n }\n ivFotoPerfil.setController(dc);\n\n tvUsername.setText(DetalhesPaciente.paciente.getNome() + \" \" + DetalhesPaciente.paciente.getSobrenome());\n\n int idade = Util.retornaIdade(DetalhesPaciente.paciente.getDataNascimento());\n\n tvDataNascimento.setText(DetalhesPaciente.paciente.getDataNascimento() + \" (\" + idade + \")\");\n \n etAnamnese.setText(DetalhesPaciente.paciente.getProntuario().getAnamnese());\n etExameFisico.setText(DetalhesPaciente.paciente.getProntuario().getExameFisico());\n etPlanoTerapeutico.setText(DetalhesPaciente.paciente.getProntuario().getPlanoTerapeutico());\n etHipoteseDiagnostica.setText(DetalhesPaciente.paciente.getProntuario().getHipoteseDiagnostica());\n \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 }", "public void opretMedlem(KassererController kassererController, Hold hold) {\n Scanner scan = new Scanner(System.in);\n Motionist motionist;\n KonkurrenceSvømmer konkurrenceSvømmer;\n\n //Alle medlemmer\n System.out.println(\"Opret det nye medlem herunder: \");\n System.out.print(\"Skal det nye medlem registreres som konkurrencesvømmer, 'ja' eller 'nej': \");\n String svømmeType = scan.nextLine();\n\n System.out.print(\"Fulde navn: \");\n String navn = scan.nextLine();\n System.out.print(\"Alder: \");\n int alder = scan.nextInt();\n System.out.print(\"Har medlemmet en aktiv aktivitetsform? (true eller false): \");\n boolean aktivitetsform = scan.nextBoolean();\n System.out.print(\"Har medlemmet betalt? (true eller false): \");\n boolean betalt = scan.nextBoolean();\n\n //Motionist\n if (svømmeType.equals(\"nej\")) {\n motionist = new Motionist(navn, alder, aktivitetsform, betalt);\n if (motionist.getAlder() < 18) {\n System.out.println(\"Medlemmet er motionist og i kategorien juniormedlem.\");\n } else if (motionist.getAlder() >= 18) {\n System.out.println(\"Medlemmet er motionist og i kategorien seniormedlem.\");\n }\n System.out.println();\n System.out.print(motionist.toString());\n medlemmer.add(motionist);\n kassererController.kontingentBetaling(motionist);\n filHåndtering.filSkrivning(motionist);\n\n //Konkurrencesvømmer\n } else if (svømmeType.equals(\"ja\")) {\n konkurrenceSvømmer = new KonkurrenceSvømmer(navn, alder, aktivitetsform, betalt);\n if (konkurrenceSvømmer.getAlder() < 18) {\n hold.tilføjJuniorKonkurrencesvømmere(konkurrenceSvømmer);\n System.out.println(\"Medlemmet er konkurrencesvømmer i kategorien juniormedlem, og dermed tildelt ungdomsholdet.\");\n } else if (konkurrenceSvømmer.getAlder() >= 18) {\n hold.tilføjSeniorKonkurrencesvømmere(konkurrenceSvømmer);\n System.out.println(\"Medlemmet er konkurrencesvømmer i kategorien seniormedlem, og dermed tildelt seniorholdet.\");\n }\n konkurrenceSvømmer.svømmeDisciplin(konkurrenceSvømmer);\n System.out.println();\n System.out.print(konkurrenceSvømmer.toString());\n medlemmer.add(konkurrenceSvømmer);\n kassererController.kontingentBetaling(konkurrenceSvømmer);\n filHåndtering.filSkrivning(konkurrenceSvømmer);\n }\n }", "public static void main(String[] args) {\nScanner sca = new Scanner(System.in);\t\nCachorrO dog = new CachorrO();\nCavalO hor = new CavalO();\nPreguiÇa per = new PreguiÇa();\nAnimaL anim= null;\nint ani;\ndo {\nSystem.out.println(\"Escolha um animal\\n1-Cachorro\\n2-Cavalo\\n3-Preguiça\");\nani = sca.nextInt();\nSystem.out.println(\"Fazenda Dourado\");\nSystem.out.println(\"Seja bem-vindo\");\nSystem.out.println(\"------------------------------------------------------\");\nif(ani==1)\n{\n\tanim = dog;\n\tSystem.out.println(\"\\nQual o nome do seu cachorro?\");\n\tString nome = sca.next();\n\tSystem.out.println(\"\\nQuantos anos seu cachorro tem?\");\n\tint idade = sca.nextInt();\n\tSystem.out.println(\"\\nEssa é legal!!!Qual o som que seu cachorro emite?\");\n\tString som = sca.next();\n\tSystem.out.println(\"------------------------------------------------------\");\n\tdog.Nome(nome);\n\tdog.Idade(idade);\n\tdog.Som(som);\n}\nelse if(ani==2)\n{\n\tanim=hor;\n\tSystem.out.println(\"\\nQual o nome do seu cavalo?\");\n\tString nome = sca.next();\n\tSystem.out.println(\"\\nQuantos anos seu cavalo tem?\");\n\tint idade = sca.nextInt();\n\tSystem.out.println(\"\\nEssa é legal!!!Qual o som que seu cavalo emite?\");\n\tString som = sca.next();\n\tSystem.out.println(\"------------------------------------------------------\");\n\thor.Nome(nome);\n\thor.Idade(idade);\n\thor.Som(som);\n\t\n}\nelse if(ani==3)\n{\n\tanim=per;\n\tSystem.out.println(\"\\nQual o nome da sua preguiça?\");\n\tString nome = sca.next();\n\tSystem.out.println(\"\\nQuantos anos sua preguiça tem?\");\n\tint idade = sca.nextInt();\n\tSystem.out.println(\"\\nEssa é legal!!!Qual o som que sua preguiça emite?\");\n\tString som = sca.next();\n\tSystem.out.println(\"------------------------------------------------------\");\n\tper.Nome(nome);\n\tper.Idade(idade);\n\tper.Som(som);\n}\nelse\n{\n\tSystem.out.println(\"\\nInformação Inválida!!!\");\n}\n}\nwhile(ani<=0 || ani>=4);\n}", "@Override\n\tpublic void finMusica() {\n\t}", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\t\t\t\t\t\t\t\t\t\t}", "public void act() \n {\n movegas();\n \n atingido2(); \n \n }", "public void showCastMiniController() {\n }", "public void ektypwsiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR MEDICINE No.\" + (i+1) + \":\");\n\t\t\t\tmedicine[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMA FARMAKA PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override\n public void run() {\n\n queryForRoutingManager();\n File f = IMbuffer.fetchFromIMInputBuffer();\n if (f.getName().startsWith(\"Responseto\")) {\n transfertopurge(f);\n }\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\t\n\t\ttry {\n\t\t\tMusiikki.rajahdysaani = new Sound(\"res/shell1.ogg\");\n\t\t\tMusiikki.tykkiaani = new Sound(\"res/gun.ogg\");\n\t\t\tMusiikki.musiikki = new Music(\"res/sendme.ogg\");\n\t\t} catch (SlickException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tMusiikki.musiikki.setVolume(1/2);\n\t\tMusiikki.musiikki.loop();\n\t\t\n\t}", "public void run() {\n System.out.println(nomeDaCamada);\n try {\n\n Painel.CAMADAS_RECEPTORAS.expandirCamadaEnlace();\n\n //quadro = camadaEnlaceReceptoraControleDeFluxo(quadro);\n //quadro = camadaEnlaceReceptoraControleDeErro(quadro);\n quadro = camadaEnlaceReceptoraEnquadramento(quadro);\n\n chamarProximaCamada(quadro);\n Painel.CONFIGURACOES.setDisable(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\twhile(!gpt.done);\r\n\t\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\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}", "@Override\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\tif(change_tempo){\r\n\t\t\t\t\t\t\t\t\t\t\tPatternMaker.changeSpeed(pattern, ratio);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tgotoPractice(pattern);\r\n\t\t\t\t\t\t\t\t\t}", "public void run() {\n\t\t// TODO Auto-generated method stub\n\t\tmostrarMensaje(\"Incia el dealer ...\");\n\n\t\tdatosEnviar = new DatosBlackJack();\n\t\tdatosEnviar.setJugador(\"dealer\");\n\t\tdatosEnviar.setJugadorEstado(\"apuesta\");\n\t\tdatosEnviar.setMensaje(\"El dealer aposto 10\");\n\t\tdatosEnviar.setEstadoJuego(true);\n\t\tdatosEnviar.setApuestas(apuestasJugadores);\n\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\t\tdatosEnviar.setEstadoJuego(false);\n\t\tdatosEnviar.setMensaje(\"\");\n\t\tdatosEnviar.setApuestas(apuestasJugadores);\n\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\n\t\tboolean pedir = true;\n\n\t\twhile (pedir) {\n\t\t\tCarta carta = mazo.getCarta();\n\t\t\t// adicionar la carta a la mano del dealer\n\t\t\tmanosJugadores.get(3).add(carta);\n\t\t\tcalcularValorMano(carta, 3);\n\n\t\t\tmostrarMensaje(\"El dealer recibe \" + carta.toString() + \" suma \" + valorManos[3]);\n\n\t\t\tdatosEnviar = new DatosBlackJack();\n\t\t\tdatosEnviar.setCarta(carta);\n\t\t\tdatosEnviar.setJugador(\"dealer\");\n\n\t\t\tif (valorManos[3] <= 16) {\n\t\t\t\tdatosEnviar.setJugadorEstado(\"sigue\");\n\t\t\t\tdatosEnviar.setMensaje(\"Dealer ahora tiene \" + valorManos[3]);\n\t\t\t\tmostrarMensaje(\"El dealer sigue jugando\");\n\t\t\t} else {\n\t\t\t\tif (valorManos[3] > 21) {\n\t\t\t\t\tsaberSiVolo=1;\n\t\t\t\t\tdatosEnviar.setJugadorEstado(\"voló\");\n\t\t\t\t\tdatosEnviar.setMensaje(\"Dealer ahora tiene \" + valorManos[3] + \" voló :(\");\n\t\t\t\t\tpedir = false;\n\t\t\t\t\tmostrarMensaje(\"El dealer voló\"); \n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tsaberSiPlanto=1;\n\t\t\t\t\tdatosEnviar.setJugadorEstado(\"plantó\");\n\t\t\t\t\tdatosEnviar.setMensaje(\"Dealer ahora tiene \" + valorManos[3] + \" plantó\");\n\t\t\t\t\tpedir = false;\n\t\t\t\t\tmostrarMensaje(\"El dealer plantó\");\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t// envia la jugada a los otros jugadores\n\t\t\tdatosEnviar.setCarta(carta);\n\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\t\t} // fin while\n\t\tif(saberSiPlanto==1 || saberSiVolo==1) {\n\t\t\tSystem.out.println(\"Entro al if despues del while\");\n\t\t\tdeterminarGanador();\n\t\t\trepartirGanancias();\n\t\t\trepartirGananciasDealer();\n\t\t\tdatosEnviar.setGanadores(ganador);\n\t\t\tdatosEnviar.setParejas(parejaNombreGanancia);\n\t\t\tdatosEnviar.setMensaje(\"El ganador es \"+ganador);\n\t\t\tif(parejaNombreGanancia.size() == 1 && parejaNombreGanancia.get(0).getKey().equals(\"null\")) {\n\t\t\t\tdatosEnviar.setMensajeGanancias(\"Nadie ha ganado, las apuestas han sido devueltas!\");\n\t\t\t}else {\n\t\t\t\tdatosEnviar.setMensajeGanancias(\"Se han dado las ganancias, revisa las tuyas!! \"+parejaNombreGanancia.get(0).getValue());\n\t\t\t}\n\t\t\tSystem.out.println(\"DESPUÉS DEL IF\");\n\t\t\tjugadores[0].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[1].enviarMensajeCliente(datosEnviar);\n\t\t\tjugadores[2].enviarMensajeCliente(datosEnviar);\n\t\t\n\t\t}\n\t\t\n\t\t\t\n\t}", "public void act() \n {\n frameCount++;\n animateFlying();\n if (getWorld() instanceof DreamWorld)\n {\n dream();\n }\n else if (getWorld() instanceof FinishScreen)\n {\n runEnd();\n }\n }", "public abstract void onMedInfoLoaded(Medication med);", "public void run() {\n\n\t\t\t\tgetHelmetDetails().material = getRandomMaterial();\n\t\t\t\tgetHelmetMoreDetails().material = getRandomMaterial();\n\n\t\t\t\t// bonus points:\n\t\t\t\t// randomly change the material of the helmet base to a texture\n\t\t\t\t// from the files aloha.png and camouflage.png (or add your own!)\n\t\t\t\tgetHelmetBase().material = getRandomMaterial();\n\t\t\t\tsetRandomLight();\n\n\t\t\t}", "@Override\n public void run() {\n headerText.startAnimation(AnimationUtils.loadAnimation(Home.this, R.anim.view_fallingfromsky));\n headerText.setVisibility(View.VISIBLE);\n\n spaconIcon.startAnimation(AnimationUtils.loadAnimation(Home.this, R.anim.view_fadein_long));\n spaconIcon.setVisibility(View.VISIBLE);\n\n if (fillableLoader.getVisibility() == View.GONE) {\n fillableLoader.setVisibility(View.VISIBLE);\n }\n fillableLoader.start();\n }", "public void run() {\n\t\t\t\tString patient_id = Statics.patientdesc.getPatient_id();\r\n\t\t\t\tString zid = Statics.patientdesc.getZy_id();\r\n\r\n\t\t\t\tdata = MyUntils.getMRPinggu(patient_id, zid, itemid,date);\r\n\t\t\t\tMessage msg = new Message();\r\n\t\t\t\tmsg.what = 101;\r\n\t\t\t\tmhandler.sendMessage(msg);\r\n\t\t\t}", "@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"SHOWWWW_ACCUEIL\");\n\t\tMusicManager.playLoop(typeSong.accueil);\n\t\tfond = new Texture(Gdx.files.internal(LauncherScreen.accueil));\n\t\tbatch = new SpriteBatch();\n\t\tGdx.input.setInputProcessor(this.inputHandler());\n\t}", "private void makeMeal() {\n\t\teating = true;\n\t\ttama.setLayoutX(200);\n\t\t\n\t\tmeal = new Sprite(3, 3, 27, 24, new Image(\"file:./res/images/meal.png\"), 1, 2100);\n\t\tmeal.setLayoutX(150);\n\t\tmeal.setLayoutY(150);\n\t\tmeal.setScaleX(0.5);\n\t\tmeal.setScaleY(0.5);\n\t\tgrid.getChildren().addAll(meal);\n\t\tPauseTransition pause = new PauseTransition(Duration.millis(2100));\n\t\tpause.setOnFinished(e -> {\n\t\t\tgrid.getChildren().remove(meal);\n\t\t\ttama.setLayoutX(190);\n\t\t\teating = false;\n\t\t\tmodel.getController().eatMeal();\n//\t\t\tif(!model.isHealthy()){\n//\t\t\t\tsetSickImg();\n//\t\t\t}\n\t\t});\n\t\tpause.play();\n\t}", "public void cargarMedicamento() {\n if (medicamentoSeleccionadoTabla == null) {\r\n imprimirMensaje(\"Error\", \"No se ha seleccionado ningún medicamento de la tabla\", FacesMessage.SEVERITY_ERROR);\r\n return;\r\n }\r\n limpiarFormularioMedicamentos();\r\n medicamentoSeleccionado = medicamentoFacade.find(medicamentoSeleccionadoTabla.getIdMedicamento());\r\n codigoMedicamento = medicamentoSeleccionado.getCodigoMedicamento();\r\n codigoCums = medicamentoSeleccionado.getCodigoCums();\r\n codigoCups = medicamentoSeleccionado.getCodigoCups();\r\n nombreMedicamento = medicamentoSeleccionado.getNombreMedicamento();\r\n nombreGenerico = medicamentoSeleccionado.getNombreGenerico();\r\n nombreComercial = medicamentoSeleccionado.getNombreComercial();\r\n formaMedicamento = medicamentoSeleccionado.getFormaMedicamento();\r\n pos = medicamentoSeleccionado.getPos();\r\n concentracion = medicamentoSeleccionado.getConcentracion();\r\n unidadMedida = medicamentoSeleccionado.getUnidadMedida();\r\n controlMedico = medicamentoSeleccionado.getControlMedico();\r\n registroSanitario = medicamentoSeleccionado.getRegistroSanitario();\r\n modAdmin = medicamentoSeleccionado.getModAdmin();\r\n if (medicamentoSeleccionado.getValor() != null) {\r\n valor = medicamentoSeleccionado.getValor();\r\n }\r\n tituloTabMedicamentos = \"Datos Medicamento: \" + nombreMedicamento;\r\n RequestContext.getCurrentInstance().execute(\"PF('dialogoBuscarMedicamentos').hide();\");\r\n }", "@Override\n public void run() {\n MaterialAnimator.animate(Transition.ZOOMOUT, btnFAB, 1000);\n btnFAB.setVisibility(Style.Visibility.HIDDEN);\n btnFAB.setOpacity(0);\n\n // Setting the visibility of the music panel\n musicPanel.setVisibility(Style.Visibility.VISIBLE);\n musicPanel.setOpacity(1);\n\n // Setting the music label with Bounce up animation\n lblMusic.setText(\"Pharell Williams / Love Yourself to Dance\");\n MaterialAnimator.animate(Transition.BOUNCEINUP, lblMusic, 1000);\n\n // Setting the image of the artist\n imgMusic.setUrl(\"http://thatgrapejuice.net/wp-content/uploads/2013/08/pharrell-williams-that-grape-juice.png\");\n }", "@FXML\n public void newMedico() {\n new MedicoPaneCadastroController().abrirJanela(\"./View/MedicoPaneCadastro.fxml\", \"Novo Médico\", null);\n populaTabela();\n\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry{\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tanimDraw.stop();\n\t\t\t\t\tanimDraw2.stop();\n\t\t\t\t\thandler.sendMessage(handler.obtainMessage());\n\t\t\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\n\t\t\t\t\t\tnew UriFactory().getHeadPortraitUrl());\n\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\n\t\t\t\tconnection.setRequestMethod(\"POST\");\n\t\t\t\tconnection.setConnectTimeout(8000);\n\t\t\t\tconnection.setReadTimeout(8000);\n\t\t\t\tconnection.setDoOutput(true);\n\t\t\t\tconnection.setDoInput(true);\n\t\t\t\tInputStream in = connection.getInputStream();\n\t\t\t\treader = new BufferedReader(new InputStreamReader(in));\n\t\t\t\tresponse = new StringBuilder();\n\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\tresponse.append(line);\n\t\t\t\t}\n\t\t\t\tString msg = JSONAnalysis(response.toString().trim());\n\t\t\t\tSystem.out.println(\"=======================\" + msg);\n\t\t\t\tUserDao user = new UserDao(context);\n\t\t\t\tString imgutl = user.detailImgUrl();\n\t\t\t\tString imageurl = msg + imgutl;\n\t\t\t\tSystem.out.println(imageurl);\n\t\t\t\tMessage message = new Message();\n\t\t\t\tBundle data = new Bundle();\n\t\t\t\tdata.putString(\"imgurl\", imageurl);\n\t\t\t\tmessage.what = 1;\n\t\t\t\tmessage.setData(data);\n\t\t\t\thandler1.sendMessage(message);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tif (reader != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treader.close();\n\t\t\t\t\t} catch (IOException 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 (connection != null) {\n\t\t\t\t\tconnection.disconnect();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "GameResult start(Player uno , Player due , Model model ,Controller controller , ViewInterface view , gestioneInput io) throws IOException;", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry{\t\t\t\t\t\t\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tanimDraw.stop();\n\t\t\t\t\tanimDraw2.stop();\t\t\t\t\n\t\t\t\t\thandler2.sendMessage(handler2.obtainMessage());\n\t\t\t\t}", "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 }", "private void moveMehran() {\r\n\t\tif(count == 300 && dragon2 == null && mehran != null) {\r\n\t\t\tdouble x = mehran.getX();\r\n\t\t\tdouble y = mehran.getY();\r\n\t\t\tfor(int i = 1; i < animationArr.length; i++) {\r\n\t\t\t\tremove(mehran);\r\n\t\t\t\tmehran = animationArr[i];\r\n\t\t\t\tadd(mehran, x, y);\r\n\t\t\t\tmoveBullet();\r\n\t\t\t\tpause(DELAY);\r\n\t\t\t}\r\n\t\t\tlaser = new GRect(mehran.getX() - 1, mehran.getY() + 100, LASER_WIDTH, LASER_HEIGHT);\r\n\t\t\tlaser.setFilled(true);\r\n\t\t\tlaser.setColor(Color.RED);\r\n\t\t\tadd(laser);\r\n\t\t\tfor(int i = animationArr.length - 1; i > 0; i--) {\r\n\t\t\t\tremove(mehran);\r\n\t\t\t\tmehran = animationArr[i];\r\n\t\t\t\tadd(mehran, x, y);\r\n\t\t\t\tmoveBullet();\r\n\t\t\t\tpause(DELAY);\r\n\t\t\t}\r\n\t\t\tcount = 0;\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry{\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tanimDraw.stop();\n\t\t\t\t\tanimDraw2.stop();\t\t\t\t\n\t\t\t\t\thandler3.sendMessage(handler3.obtainMessage());\n\t\t\t\t}", "public void orderMedicine(MedicineOrder order)\n {\n OrderRequestSingleton orderRequests = OrderRequestSingleton.getInstance();\n orderRequests.processRequest(order);\n }", "public void run() {\n\n renderingForce = true;\n //file.play();\n\n\n if (haplyBoard.data_available()) {\n /* GET END-EFFECTOR STATE (TASK SPACE) */\n widgetOne.device_read_data();\n\n angles.set(widgetOne.get_device_angles()); \n posEE.set(widgetOne.get_device_position(angles.array()));\n posEE.set(posEE.copy().mult(200));\n }\n\n s.setToolPosition(edgeTopLeftX+worldWidth/2-(posEE).x, edgeTopLeftY+(posEE).y-7); \n\n\n s.updateCouplingForce();\n fEE.set(-s.getVirtualCouplingForceX(), s.getVirtualCouplingForceY());\n fEE.div(100000); //dynes to newtons\n\n torques.set(widgetOne.set_device_torques(fEE.array()));\n widgetOne.device_write_torques();\n\n world.step(1.0f/1000.0f);\n\n\n checkSplat();\n\n renderingForce = false;\n }", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public void run() {\n\t\trichiediProdotti();\n\t}", "private void drawMedal(){\n image.clear();\n \n // Determine what type of medal to draw (bronze, silver, gold, or diamond)\n if(achieved){\n if(type.equals(\"bronze\")) image.drawImage(bronzeMedal, WIDTH / 2 - 34, 0);\n else if(type.equals(\"silver\")) image.drawImage(silverMedal, WIDTH / 2 - 34, 0);\n else if(type.equals(\"gold\")) image.drawImage(goldMedal, WIDTH / 2 - 37, 0);\n else if(type.equals(\"diamond\")) image.drawImage(diamondMedal, WIDTH / 2 - 34, 0);\n }\n else{ // Set medal to black if the user hasn't achieved it yet\n if(type.equals(\"bronze\")) image.drawImage(noBronzeMedal, WIDTH / 2 - 34, 0);\n else if(type.equals(\"silver\")) image.drawImage(noSilverMedal, WIDTH / 2 - 34, 0);\n else if(type.equals(\"gold\")) image.drawImage(noGoldMedal, WIDTH / 2 - 37, 0);\n else if(type.equals(\"diamond\")) image.drawImage(noDiamondMedal, WIDTH / 2 - 34, 0);\n }\n \n image.setColor(NAME_COLOR);\n image.setFont(NAME_FONT);\n image.drawString(name, (image.getWidth() - (int)(name.length() * NAME_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 9 / 10));\n setImage(image);\n }", "void startAnimation();", "public void run() {\n\t\t\t\tVerticalPanel panelCompteRendu = new VerticalPanel();\r\n\t\t\t\thtmlCompteRendu = new HTML();\r\n\t\t\t\tpanelCompteRendu.add(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"compteRendu\").add(panelCompteRendu);\r\n\t\t\t\t\r\n\t\t\t\tVerticalPanel panelLegende = new VerticalPanel();\r\n\t\t\t\thtmlLegende = new HTML();\r\n\t\t\t\tpanelLegende.add(htmlLegende);\r\n\t\t\t\tRootPanel.get(\"legende\").add(htmlLegende);\r\n\t\t\t\t\r\n\t\t\t\t// temps d'intˇgration restant\r\n\t\t\t\tLabel tempsDIntegrationRestant = new Label();\r\n\t\t\t\tRootPanel.get(\"tempsDIntegrationRestant\").add(tempsDIntegrationRestant);\r\n\t\t\t\t\r\n\t\t\t\t// ajout de la carte\r\n\t\t\t\twMap = new MapFaWidget2(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"carte\").add(wMap);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// ajout du bouton reset\r\n\t\t\t\tButton boutonReset = new Button(\"Nettoyer la carte\");\r\n\t\t\t\tboutonReset.addClickHandler(actionBoutonReset());\r\n\t\t\t\tRootPanel.get(\"boutonReset\").add(boutonReset);\r\n\r\n\t\t\t\t// ajout du formulaire d'intˇgration\r\n\t\t\t\tnew FileUploadView(wMap,htmlLegende, htmlCompteRendu,tempsDIntegrationRestant);\r\n\r\n\t\t\t}", "public void crearmedico(Medico medicoSelec) {\n\t\tmedicoMapper.crearmedico(medicoSelec);\n\t}", "public void show(int delayTime) {\n\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n switch (mType) {\n case TYPE_First:\n mNewbieGuide.addIndicateImg(R.mipmap.guide_right,\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity, 110))\n .addMessage(mActivity.getString(R.string.switch_map),\n ScreenUtils.dpToPx(mActivity, -40)\n ,ScreenUtils.dpToPx(mActivity, 130))\n .addIndicateImg(R.mipmap.guide_left,\n ScreenUtils.dpToPx(mActivity,60),\n ScreenUtils.dpToPx(mActivity,40))\n .addMessage(mActivity.getString(R.string.open_menu),\n ScreenUtils.dpToPx(mActivity,85),\n ScreenUtils.dpToPx(mActivity,60)).show();\n\n break;\n\n case TYPE_TWICE:\n mNewbieGuide.addIndicateImg(R.mipmap.guide_right2,\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity, -170))\n\n .addMessage(mActivity.getString(R.string.see_the_history),\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity,-185)).\n\n addIndicateImg(R.mipmap.guide_down,\n ScreenUtils.dpToPx(mActivity,-105),\n ScreenUtils.dpToPx(mActivity,-135))\n\n .addMessage(mActivity.getString(R.string.navigate_to_the_watch),\n ScreenUtils.dpToPx(mActivity,-115),\n ScreenUtils.dpToPx(mActivity,-160)).show();\n break;\n\n case TYPE_THIRD:\n mNewbieGuide.addIndicateImg(R.mipmap.guide_right2,\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity,-230))\n .addMessage(\"设置安全区域\",\n ScreenUtils.dpToPx(mActivity,-50),\n ScreenUtils.dpToPx(mActivity,-250))\n .addIndicateImg(R.mipmap.guide_down,\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity, -130))\n .addMessage(\"立即刷新位置\",\n ScreenUtils.dpToPx(mActivity, -50),\n ScreenUtils.dpToPx(mActivity,-155))\n .show();\n }\n }\n }, delayTime);\n }", "private void start(){\n character.fillEnergy();\n piles.getDrawPile().shuffle();\n for(int i = 1 ; i <= 5 ; i++ ){\n piles.drawCard();\n }\n effectHandler.startFight();\n\n }", "@Override\n protected void animStart() {\n }", "public void d() {\n MiTalkiApp.n().postDelayed(new Runnable() {\n public void run() {\n SetMyOtherInfoActivity.this.k();\n }\n }, 500);\n }", "public static void start() {\n \t\tMainGame.display.disp(\"What type of monster do you want to fight?:\");\r\n \t\t//Display the buttons for the choice of monster\r\n \t\tMainGame.display.Enable(MainGame.display.warriorM, MainGame.display.fighterM);\r\n \t}", "private void showAnimation() {\n // play voice, and start animation\n if (message.getDirect() == HTMessage.Direct.RECEIVE) {\n voiceIconView.setImageResource(+R.anim.voice_from_icon);\n } else {\n voiceIconView.setImageResource(+R.anim.voice_to_icon);\n }\n voiceAnimation = (AnimationDrawable) voiceIconView.getDrawable();\n voiceAnimation.start();\n }", "public void run() {\n TextView tempTextView = (TextView) findViewById(R.id.humonNameTextView);\n tempTextView.setText(humon.getName());\n tempTextView = (TextView) findViewById(R.id.humonDescriptionTextView);\n tempTextView.setText(humon.getDescription());\n tempTextView = (TextView) findViewById(R.id.healthValue);\n tempTextView.setText(\"\" + humon.getHealth());\n tempTextView = (TextView) findViewById(R.id.attackValue);\n tempTextView.setText(\"\" + humon.getAttack());\n tempTextView = (TextView) findViewById(R.id.defenseValue);\n tempTextView.setText(\"\" + humon.getDefense());\n tempTextView = (TextView) findViewById(R.id.speedValue);\n tempTextView.setText(\"\" + humon.getSpeed());\n tempTextView = (TextView) findViewById(R.id.luckValue);\n tempTextView.setText(\"\" + humon.getLuck());\n\n //load moves into grid\n ArrayList<Move> humonMoves = humon.getMoves();\n moveList.clear();\n for(int i = 0; i < humonMoves.size(); i++) {\n moveList.add(humonMoves.get(i));\n }\n moveAdapter.notifyDataSetChanged();\n\n //load humon image\n if(humon.getImagePath() != null) {\n if(humon.getImagePath().length() != 0) {\n Bitmap humonImage = BitmapFactory.decodeFile(humon.getImagePath());\n ImageView humonImageView = (ImageView) findViewById(R.id.humonImageView);\n humonImageView.setImageBitmap(humonImage);\n }\n }\n\n }", "private void startMapCreater() {\n\t\tNavigator navi = new Navigator(pilot);\n\t\tnavi.addWaypoint(0,0);\n\t\tnavi.addWaypoint(0,5000);\n\t\tBehavior forward = new Forward(navi);\n\t\tBehavior ultrasonic = new UltrasonicSensor(ultrasonicSensorAdaptor,pilot, sonicWheel,dis,dos,navi);\n\t\tBehavior stopEverything = new StopRobot(Button.ESCAPE);\n\t\tBehavior[] behaiverArray = {forward, ultrasonic, stopEverything};\n\t\tarb = new Arbitrator(behaiverArray);\n\t\t\n\t arb.go();\n\t\t\n\t}", "private void fahre(int aufzugNummer, int stockwerkAenderung){\n\t\tSystem.out.println();\r\n\t\t//Animation der Aufzüge\r\n\t\tTranslateTransition anpassung = new TranslateTransition(Duration.seconds(Aufzug.DAUER_PRO_STOCK*Math.abs(stockwerkAenderung)), aufzuge[aufzugNummer]);\r\n\t\tanpassung.setByY(stockwerkAenderung*stockwerkHohe);\r\n\t\tanpassung.play();\r\n\t}", "private void showSpam(){\n getSpam();\n //display persons\n MainActivity.instance().displayPersonsRunnable = new DisplayPersonsRunnable(MainActivity.instance());\n this.thread = new Thread(MainActivity.instance().displayPersonsRunnable);\n this.thread.start();\n }", "private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}", "@Override\n public void run() {\n Toast.makeText(DirectorsCut.this, \"Camera Animation\",\n Toast.LENGTH_SHORT).show();\n animateYaw(0.0f, 2000);\n\n }", "public MangKaib(Main game){\n super(game);\n taust = new Taust(0,0,600,400);\n taust.checkLevel();// checkime, mis areaga tegu on peale uue tausta loomist\n mobSpawner.lisaMobInfo(); // laeme mob info.\n //game, width height draw x draw y, elud, damage, nimi, exp\n mangija = new Player(game, 97,174,50,370,100,10);\n mspawner = new mobSpawner(game, Mobid[13].getWidth(), Mobid[13].getHeight(), 450, 370, km[13].elud, km[13].dpsMin, km[13].dpsMax, km[13].mobSpeed, km[13].nimi, km[13].mobXp, km[13].mobGold,km[13].mobGold);\n magicAttack = new magicAttack(game,(mangija.x+mangija.width-15),(mangija.y-(mangija.height/2)),40,20,1,mangija.damage);\n kLiides = new uiBox(0,400,600,200);\n kLiides2 = new uiSide(600,0,200,600);\n uusRida = new Tekstid(0,420);//420 v 590\n }", "public void startFeeding() {\n motor.set(FEED_SPEED);\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,gst.resultFile);\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n public void run() {\n mPresenter.loadCameras();\n Log.d(\"Handlers\", \"Refresh lists\");\n // Repeat this the same runnable code block again another 2 seconds\n handler.postDelayed(runnableCode, 5000);\n }", "public void crawl() {\n\t\tOOSpider.create(Site.me().setSleepTime(3000).setRetryTimes(3).setDomain(\"movie.douban.com\")//.setHttpProxy(httpProxy)\n .setUserAgent(\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36\"),\n filmInfoDaoPipeline, DoubanFilm.class)\n .addUrl(\"https://movie.douban.com/top250\")//entry url\n .thread(1)\n .run();\n }", "public void diagrafiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka sto farmakeio\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA FARMAKWN\");\n\t\t\t// Emfanizw ola ta famraka tou farmakeiou\n\t\t\tfor(int j = 0; j < numOfMedicine; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA FARMAKOU: \");\n\t\t\t\tSystem.out.println();\n\t \t \tmedicine[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\ttmp_1 = sir.readPositiveInt(\"DWSTE TON ARITHMO TOU FARMAKOU POU THELETAI NA DIAGRAFEI: \");\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos egkyrotitas tou ari8mou pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfMedicine)\n\t\t\t{\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"KSANAEISAGETAI ARITHMO FARMAKOU: \");\n\t\t\t}\n\t\t\t// Metakinw ta epomena farmaka mia 8esi pio aristera\n\t\t\tfor(int k = tmp_1; k < numOfMedicine - 1; k++)\n\t\t\t{\n\t\t\t\tmedicine[k] = medicine[k+1]; // Metakinw to farmako sti 8esi k+1 pio aristera\n\t\t\t}\n\t\t\tnumOfMedicine--; // Meiwse ton ari8mo twn farmakwn\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print(\"\\nDEN YPARXOUN DIATHESIMA FARMAKA PROS DIAGRAFH!\\n\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override\n\tpublic void action() {\n\t\t_agj.addBehaviour(new RecibirDistritos(_agj));\n\t\t_agj.addBehaviour(new RecibirMonedas(_agj));\n\t}", "void run() {\n System.out.println(\"PC Visual application run\");\n data = new Data(this);\n window = new Window(this);\n window.setup();\n mote = new MoteIF(PrintStreamMessenger.err);\n mote.registerListener(new OscilloscopeMsg(), this);\n }", "public void mo5968e() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{-((float) C1413m.f5711i.getHeight()), 0.0f}).setDuration(240);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{0.0f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}).setDuration(240);\n duration.start();\n duration2.start();\n long j = (long) 160;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.6f, 0.5f, 0.4f, 0.3f, 0.2f, 0.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5438qa, \"alpha\", new float[]{1.0f, 0.0f}).setDuration(j).start();\n duration.addListener(new C1302Xa(this));\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\tif (Mascota.get_hambre() > 0 && Mascota.get_hambre() != 5) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n try {\r\n \t Mascota.set_alimentar();\r\n\t\t\t\t\t\tmostrar_hambre.setText(\"Nivel de hambre : \" + Mascota.get_hambre());\r\n\t\t\t\t\t\teti_actividad.setText(\"Ñam...ñam...Estoy comiendo\");\r\n\t\t\t\t\t\teti_actividad.setVisible(true);\r\n\t\t\t\t\t\tThread.sleep(6000);\r\n\t\t\t\t\t\teti_actividad.setVisible(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t }\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}else {\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\teti_actividad.setText(\"No tengo hambre\");\r\n\t\t\t\t\t\teti_actividad.setVisible(true);\r\n\t\t\t\t\t\tThread.sleep(6000);\r\n\t\t\t\t\t\teti_actividad.setVisible(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\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}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tsuper.run();\n\t\t\t\t\twhile (isonshow) {\n\t\t\t\t\t\tfor (int i = 0; i<(0.0416*scrrenHeight); i++) {\n\t\t\t\t\t\t\t//Log.i(\"thread\", i+\"\");\n\t\t\t\t\t\t\tsc.scrollTo(0, i);\n\t\t\t\t\t\t\t//handler11.sendEmptyMessage(i);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsleep(20);\n\n\t\t\t\t\t\t\t\tif(!isonshow){\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}else{}\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\tfor (int i = 0; i < 20; i++) {\n\n\t\t\t\t\t\t\t\tsleep(40);\n\t\t\t\t\t\t\t\tif(!isonshow){\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}else{}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tsc.scrollTo(0, 0);\n\n\t\t\t\t\t\thandler11.sendEmptyMessage(0);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsleep(80);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}", "public void limparTextoCamadas() {\n Platform.runLater(() -> {\n camadaAplicacao.limpar();\n camadaEnlace.limpar();\n camadaFisica.limpar();\n });\n }", "@Override\n public void animate() {\n }", "public void run() {\n mImageView.animate().setDuration(duration).scaleX(mWidthScale)\n .scaleY(mHeightScale).translationX(mLeftDelta)\n .translationY(mTopDelta).withEndAction(endAction);\n if (fadeOut) {\n mImageView.animate().alpha(0);\n }\n // Fade out background\n ObjectAnimator bgAnim = ObjectAnimator.ofInt(mBackground, \"alpha\", 0);\n bgAnim.setDuration(duration);\n bgAnim.start();\n\n // Animate the shadow of the image\n ObjectAnimator shadowAnim = ObjectAnimator.ofFloat(mShadowLayout,\n \"shadowDepth\", 1, 0);\n shadowAnim.setDuration(duration);\n shadowAnim.start();\n\n // Animate a color filter to take the image back to\n // grayscale,\n // in parallel with the image scaling and moving into\n // place.\n ObjectAnimator colorizer = ObjectAnimator.ofFloat(FullImageActivity.this,\n \"saturation\", 1, 0);\n colorizer.setDuration(duration);\n colorizer.start();\n }", "private void doLine()\n\t{\n\t\tubisenseData = new UbisenseMockupData();\n\t\tDecimalFormat df = new DecimalFormat(\"#0,00\");\n\n\t\telapsedTime = 0;\n\t\t\n\t\tubisenseData.setTagID(Helper.DEFAULT_TAG_ID);\n\t\tubisenseData.setUnit(Helper.UBISENSE_UNIT);\n\t\tubisenseData.setOntology(Helper.LP_ONTOLOGY_URL);\n\t\tubisenseData.setVersion(Helper.UBISENSE_VERSION);\n\t\tubisenseData.setId(\"\");\n\t\tubisenseData.setSendTime(sendTime);\n\t\t\n\t\tlong millis = startDate.getMillis();\n\t\tmillis += offset.toStandardDuration().getMillis();\n//\t\tmillis += parentOffset.toStandardDuration().getMillis();\n\t\t\n\t\t// Steigung m und Achsenabschnitt b berechnen\n//\t\tdouble m = 0.;\n//\t\tif ((x2-x1)!=0)\n//\t\t\tm = (y2-y1)/(x2-x1);\n//\t\tdouble b = y1 - (m * x1);\n\t\t\n\t\t// Abstand zwischen beiden Koordinaten d\n\t\tdouble dsquare = Math.pow((x2-x1),2) + Math.pow((y2-y1),2);\n\t\tdouble d = Math.sqrt(dsquare);\n\n\t\t// Zeit t [s] berechnen, die für die Distanz d unter gegebener Geschwindigkeit benötigt wird.\n\t\tdouble t = d / toolSpeed;\n\t\tdouble steps = Math.ceil(t) +1;\n\t\t\n\t\twhile (steps>0 && !terminate)\n\t\t{\n\t\t\tdouble x,y, currentTime=0;\n\t\t\tif (t != 0)\n\t\t\tcurrentTime = elapsedTime / t;\n\t\t\t\n\t\t\tx = (x2-x1) * currentTime + x1;\n\t\t\ty = (y2-y1) * currentTime + y1;\n\t\t\tubisenseData.setPosition(new Point3D(\tDouble.parseDouble(df.format(x)),\n\t\t\t \tDouble.parseDouble(df.format(y)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t1.6));\n\t\t\tubisenseData.setId(String.valueOf(Helper.getRandomInt()));\n\t\t\tubisenseData.setTime(millis + (long)(elapsedTime*SLEEP_INTERVAL));\n\t\t\tEntryEvent event = new EntryEvent(this);\n\t\t\tnotifyListeners(event);\n\t\t\telapsedTime++;\n\t\t\tif (elapsedTime > t)\n\t\t\t\telapsedTime = t;\n\t\t\t\n\t\t\tsteps--;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (speed > 0)\n\t\t\t\t\tThread.sleep(SLEEP_INTERVAL/speed);\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_enregistrement);\n\n recorder.setListener(processor);\n\n ImageButton okBtn = (ImageButton) findViewById(R.id.enregistrementStop);\n okBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n recorder.stopRec();\n processor.waitEnd();// attend la fin des traitements\n startActivity(new Intent(EnregistrementActivity.this, NameActivity.class));\n finish();\n }\n });\n\n //Code for the metronome switching\n final int[] imageArray = {R.drawable.metronome, R.drawable.metronome};// TODO metronome_flip};\n\n\n final Handler handler = new Handler();\n\n final ImageView imageView = (ImageView) findViewById(R.id.imageView);\n\n Runnable runnable = new Runnable() {\n int i = 0;\n\n public void run() {\n imageView.setImageResource(imageArray[i]);\n /*\n i++;\n if(i>imageArray.length-1)\n {\n i=0;\n }\n */\n i = (i + 1) % imageArray.length;\n\n handler.postDelayed(this, 500); //for interval...\n }\n };\n handler.postDelayed(runnable, 20); //for initial delay..\n\n\n //TO DO : put the record function\n\n processor.startRecProcessing();\n\n }", "public static Result reportMetermaidSighting(){\n \tForm<MeterMaid> filledForm = Form.form(MeterMaid.class).bindFromRequest();\n \tMeterMaid maid = filledForm.get();\n \t\n \t// handle new information\n// \tMeterMaid.acceptReport(maid);\n \t\n \t// render the splash page again \t\n \treturn ok(index.render(byline, maidForm, parkingForm));\n \t\n }", "public void start() {\n\tanimator = new Thread(this);\n\tanimator.setName(\"erly_boid:::swarm intelligence\");\n\terlang =new Thread(co);\n\terlang.start();\n\tanimator.start();\n \n \n \t\n }", "public void run() {\n\t RecordApplication app = ((RecordApplication)getApplicationContext());\n\t \t\t mWaveformView = app.mDisplayView;\n\t \t\t float x = mWaveformView.getMeasuredWidth()>>1;\n\t \t\t float y = app.getLogoButton().getY()+ (app.getLogoButton().getHeight()/2);\n\t \t\t mWaveformView.stampSound(x, y-25);\n\t }", "@Override\n public void onServerResponse(Object json) {\n runOnUiThread(() -> {\n loadRaters();\n ((TextView) findViewById(R.id.labelmenos1)).setText(\"Seleccione un evaluador de la lista a continuación\");\n });\n scrollDown();\n }", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "public PostMedicineController(PostMedicineGUI gui, Registry r)\n {\n this.gui = gui;\n this.r = r;\n // This registers the button with our action listener below (the inner class)\n \n\n gui.getjButton1().addActionListener(new postMedicineClass() );\n }", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "public void mostrarMusicaPorArtista() {\r\n\t\t\r\n\t\t//Instanciar view solicitar artista\r\n\t\tViewSolicitaArtista vsa = new ViewSolicitaArtista();\r\n\t\t\r\n\t\t//Obter artistas\r\n\t\tvsa.obterArtista();\r\n\t\t\r\n\t\t//Guarda artista\r\n\t\tString artista = vsa.getArtista();\r\n\t\t\r\n\t\tif (this.bd.naoExisteArtista(artista)) {\r\n\r\n\t\t\t//Metodo musica por artista\r\n\t\t\tArrayList<String> musicas = this.bd.getMusicasPorArtista(artista);\r\n\t\t\t\r\n\t\t\t//Instancia view para mostrar musicas\r\n\t\t\tViewExibeMusicas vem = new ViewExibeMusicas();\r\n\t\t\t\r\n\t\t\t//Exibe musicas\r\n\t\t\tvem.exibeMusicas(musicas);\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\r\n\t\t//Instanciar view informa\r\n\t\tViewInformacaoExiste vie = new ViewInformacaoExiste();\r\n\t\t\r\n\t\t//Exibir mensagem artista não existe\r\n\t\tvie.mensagemArtistaNaoExiste();\r\n\t\t}\r\n\t}", "public void run() {\n int x = m.getCurrentMouse().getX();\n int y = m.getCurrentMouse().getY();\n int scrollX = view.getScroll().getHorizontalScrollBar().getValue();\n int scrollY = view.getScroll().getVerticalScrollBar().getValue();\n\n int clickX = x + scrollX - 40;\n\n int clickY = y + scrollY - 30;\n\n int fromTheTop = clickY / 21;\n int fromTheLeft = clickX / 21;\n\n\n Note n = model.getHighestPitch();\n\n for (int i = 0; i < fromTheTop; i++) {\n n = Note.prevNote(n);\n }\n this.model.setNoteToBeAdded(new Note(n.getPitchLetter(), n.getOctave(),\n fromTheLeft, fromTheLeft));\n\n view.setAllNotes(model.getMusic());\n view.setLength(model.getDuration());\n view.setTone(model.getTone(model.getNotes()));\n view.setTempo(model.getTempo());\n\n\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\twhile(!gpt.done);\r\n\t\t\t\t\t\t\t\tx.task().post(new Runnable(){\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 run() {\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\tif(change_tempo){\r\n\t\t\t\t\t\t\t\t\t\t\tPatternMaker.changeSpeed(pattern, ratio);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tgotoPractice(pattern);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}", "public void act() \n {\n gravity();\n animate();\n }", "public void run() {\n\t\tLooper.prepare();\n\t\tThread.currentThread().setName(\"Guidance\");\n\t\tThread.currentThread().setPriority(Thread.MAX_PRIORITY);\n\t\tcreateHandler();\n\t\t//mHandler.sendEmptyMessage(EVAL_MOTOR_SPEED);\n\t\treceiveMessage(\"DIRECT:0:0:0:0\", null);\n\t\tLooper.loop();\n\t}", "public void mostrar() {\n\t\t\n\t\tdibujarFondo();\n\t\tdibujarMarcador();\n\t\t\n\t\tScene escena = new Scene(panel, panel.getPrefWidth(), panel.getPrefHeight());\n\n\t\tescenario.setScene(escena);\n\t\tescenario.setResizable(false);\n\t\tescenario.setTitle(Aplicacion.TITULO);\n\t\t\n\t\tdibujar();\n\n\t\tescenario.show();\n\t}", "static void SampleItinerary()\n {\n System.out.println(\"\\n ***Everyone piles on the boat and goes to Molokai***\");\n\n bg.AdultRowToMolokai();\n bg.ChildRideToMolokai();\n bg.AdultRideToMolokai();\n bg.ChildRideToMolokai();\n }", "public void startpager() {\n\t\thandlers.postDelayed(runnable, 2000);\n// \t final Timer timer = new Timer();\n//\t TimerTask task = new TimerTask(){\n//\t public void run(){\n//\t\n//\t }\n//\t };\n//\t timer.schedule(task, 0,2000);\n\t}", "private void cargarRegistroMedicamentos() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"admision_seleccionada\", admision_seleccionada);\r\n\t\tparametros.put(\"rol_medico\", \"S\");\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\"/pages/registro_medicamentos.zul\", \"REGISTRO DE MEDICAMENTOS\",\r\n\t\t\t\tparametros);\r\n\t}", "public void daiMedicina() {\n System.out.println(\"Vuoi curare \" + nome + \" per 200 Tam? S/N\");\n String temp = creaturaIn.next();\n if (temp.equals(\"s\") || temp.equals(\"S\")) {\n puntiVita += 60;\n soldiTam -= 200;\n }\n checkStato();\n }", "public Action play() {\n\t MobileDevice mobileDevice = MobileDevice.getInstance();\r\n\t\tUiDevice uiDevice = UiDevice.getInstance();\r\n\t\tint i = 0;\r\n\t\twhile (i < 5 && uiDevice.swipe(340, 180, 340, 660, 10)) i++;\r\n\t\ttry {\r\n\t\t\tThread.sleep(1000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t ApplicationInfor.errorLogging(\"user tweet process: sleep exception, msg=\" + e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\tQQMessage qqMessage = null;\r\n ArrayList<QQMessage> messageList = new ArrayList<QQMessage>();\r\n\t\t// get the first picture.\r\n\t\tqqMessage = this.getMessageItem();\r\n\t\tint errorTimes = 0;\r\n\t\t\r\n\t\twhile (null != qqMessage.uiItemObj && qqMessage.uiItemObj.exists()) {\r\n\t\t boolean isValidMessage = false;\r\n\t\t\tif (QQMessage.QQMessageType.PICTURE == qqMessage.messageType) {\r\n\t\t\t try {\r\n\t\t // get the image info.\r\n\t\t\t\t qqMessage.uiItemObj.click();\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\tint retryTime = 0;\r\n\t\t\t\t\tfor (retryTime = 0; retryTime < 3; retryTime++) {\r\n \t\t\t\t\tUiObject imgFullObj = new UiObject(new UiSelector().className(\"android.widget.ImageButton\"));\r\n \t\t\t\t\tif (!imgFullObj.exists()) {\r\n \t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: image full object not exist!\");\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\timgFullObj.click();\r\n \t\t\t\t\t\tUiObject saveButton = new UiObject(new UiSelector().text(\"保存到手机\"));\r\n \t\t\t\t\t\tif (!saveButton.exists()) {\r\n \t\t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: save button not found.\");\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tsaveButton.click();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tUiObject replaceButton = new UiObject(new UiSelector().text(\"替换\"));\r\n \t\t\t\t\t\tif (replaceButton.exists()) {\r\n \t\t\t\t\t\t\treplaceButton.click();\r\n \t\t\t\t\t\t}\r\n \t\t uiDevice.pressBack();\r\n \t\t isValidMessage = true;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (isValidMessage) {\r\n \t\t\t\t\t break;\r\n \t\t\t\t\t}\r\n \t Thread.sleep(1000);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!isValidMessage) {\r\n\t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: get imsage all retry failed!!!\");\r\n\t\t\t\t\t}\r\n\t\t\t } catch (UiObjectNotFoundException | InterruptedException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"message picture: save the picture exception, msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t} else if (QQMessage.QQMessageType.VOICE == qqMessage.messageType) {\r\n\t\t\t try {\r\n\t\t\t\t // get the voice info.\r\n\t\t\t\t qqMessage.text = qqMessage.uiItemObj.getText().trim();\r\n\t\t\t\t qqMessage.uiItemObj.dragTo(qqMessage.uiItemObj, 50);\r\n\t\t\t\t UiObject collectionButtonObj = new UiObject(new UiSelector().text(\"收藏\"));\r\n\t\t\t\t if (!collectionButtonObj.exists()) {\r\n\t\t\t\t ApplicationInfor.errorLogging(\"collect audios: collection button not found.\");\r\n\t\t\t\t uiDevice.pressBack();\r\n\t\t\t\t } else {\r\n\t\t\t\t collectionButtonObj.click();\r\n UiObject collectButtonObj = new UiObject(new UiSelector().text(\"收藏\"));\r\n if (!collectionButtonObj.exists()) {\r\n ApplicationInfor.errorLogging(\"collect audios: collectionButton edit not exist.\");\r\n } else {\r\n collectButtonObj.click();\r\n File collectionDir = new File(sCollectionPrefixPath);\r\n if (!collectionDir.isDirectory()) {\r\n ApplicationInfor.errorLogging(\"Collection directory not exist.\");\r\n } else {\r\n File[] audios = collectionDir.listFiles(new FileFilter() {\r\n public boolean accept(File file) {\r\n if (file.getName().startsWith(\"collection_\")) {\r\n return false;\r\n }\r\n if (file.getName().endsWith(\".slk\")) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n });\r\n if (1 != audios.length) {\r\n ApplicationInfor.warningLogging(\"autios length not 1, length = \" + String.valueOf(audios.length));\r\n }\r\n if (0 < audios.length) {\r\n File curAudiosFile = audios[0];\r\n UUID uuid = UUID.randomUUID();\r\n String newFileName = uuid.toString() + \".slk\";\r\n File newFile = new File(curAudiosFile.getParent(), newFileName);\r\n if (!curAudiosFile.renameTo(newFile)) {\r\n ApplicationInfor.errorLogging(\"audios process: rename file failed!\");\r\n } else {\r\n qqMessage.messageFile = newFile;\r\n isValidMessage = true;\r\n }\r\n }\r\n }\r\n }\r\n \r\n\t\t\t\t }\r\n\t\t\t } catch (UiObjectNotFoundException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"collect audios: exception! msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t} else if (QQMessage.QQMessageType.TEXT == qqMessage.messageType) {\r\n\t\t\t try {\r\n \t\t\t // get the text info.\r\n \t\t\t qqMessage.text= qqMessage.uiItemObj.getText().trim();\r\n \t\t\t isValidMessage = true;\r\n\t\t\t } catch (UiObjectNotFoundException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"message text: exception! msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\tif (isValidMessage) {\r\n\t\t\t messageList.add(qqMessage);\r\n\t\t\t errorTimes = 0;\r\n\t\t\t} else {\r\n\t errorTimes += 1;\r\n\t\t\t if (errorTimes < 5) {\r\n\t\t\t i = 0;\r\n\t\t\t while (i < 5 && uiDevice.swipe(340, 180, 340, 660, 10)) i++;\r\n\t\t\t try {\r\n\t\t\t Thread.sleep(1000);\r\n\t\t\t } catch (InterruptedException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"user tweet process: sleep exception, msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t } else {\r\n\t\t\t errorTimes = 0;\r\n\t\t\t ApplicationInfor.errorLogging(\"Pull up 5 times but not work.\");\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\t// delete the user item.\r\n\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t try {\r\n \t\t\t qqMessage.uiItemObj.dragTo(qqMessage.uiItemObj, 50);\r\n \t\t\t UiObject rightButton = new UiObject(new UiSelector().description(\"right\"));\r\n \t\t\t if (rightButton.exists()) {\r\n \t\t\t rightButton.click();\r\n \t\t\t }\r\n \t\t\t\tUiObject delButton = new UiObject(new UiSelector().text(\"删除\"));\r\n \t\t\t\tif (!delButton.exists()) {\r\n \t\t\t\t ApplicationInfor.warningLogging(\"user tweet process: delete button not found.\");\r\n \t\t\t\t} else {\r\n \t\t\t\t\tdelButton.click();\r\n \t\t\t\t\tdelButton = new UiObject(new UiSelector().text(\"删除\"));\r\n \t\t\t\t\tif (delButton.exists()) {\r\n \t\t\t\t\t\tdelButton.click();\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: delete button accept not found.\");\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tif (QQMessage.QQMessageType.PICTURE == qqMessage.messageType) {\r\n \t\t\t\t UiObject imgFullObj = new UiObject(new UiSelector().className(\"android.widget.ImageButton\"));\r\n \t\t\t\t if (imgFullObj.exists()) {\r\n \t\t\t\t uiDevice.pressBack();\r\n \t\t\t\t }\r\n \t\t\t\t}\r\n \t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (UiObjectNotFoundException | InterruptedException e) {\r\n\t ApplicationInfor.errorLogging(\"user tweet process: get the img exception, msg=\" + e.getMessage());\r\n\t } \r\n\t\t\t} \r\n\t\t\tqqMessage = this.getMessageItem();\r\n\t\t}\r\n\t\t\r\n\t\t// get the QQ number\r\n\t\tString qqNum = \"\";\r\n\t\tUiObject qqObj = new UiObject(new UiSelector().resourceId(\"com.tencent.mobileqq:id/title\"));\r\n try {\r\n\t\t if (qqObj.exists()) {\r\n qqNum = qqObj.getText();\r\n uploadFiles(qqNum, messageList);\r\n\t\t } else {\r\n\t\t ApplicationInfor.errorLogging(\"user tweet process: QQ number not found.\");\r\n\t\t }\r\n\t } catch (UiObjectNotFoundException e) {\r\n\t ApplicationInfor.errorLogging(\"user tweet process: post the server exception, msg = \" + e.getMessage());\r\n }\r\n \r\n // clear gray column.\r\n UiObject grayColumnObj = new UiObject(new UiSelector().className(\"android.widget.AbsListView\").childSelector(\r\n new UiSelector().className(\"android.widget.LinearLayout\")));\r\n boolean isGrayColumnExists = grayColumnObj.exists(); \r\n UiObject titleTextObj = new UiObject(new UiSelector().resourceId(\"com.tencent.mobileqq:id/ivTitleName\"));\r\n String title = \"\";\r\n if (titleTextObj.exists()) {\r\n try {\r\n title = titleTextObj.getText();\r\n } catch (UiObjectNotFoundException e) {\r\n ApplicationInfor.errorLogging(\"title text get text exception, msg=\" + e.getMessage());\r\n }\r\n }\r\n\t\t// back to the normal.\r\n\t\tuiDevice.pressBack();\r\n\r\n\t\tif (title.equals(\"新朋友\")) {\r\n\t\t return this._actionMngr.getAddNewFriendsAction();\r\n\t\t} else if (isGrayColumnExists) {\r\n\t\t return this._actionMngr.getClearAllChatAction();\r\n\t\t}\r\n\t\t\r\n\t\treturn this._actionMngr.getMsglistDispatchAction();\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile(true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(1000*20);\r\n\t\t\t\t\t\tas.generateDiagModel(dataset);\r\n\t\t\t\t\t\tRDFReasoning.output(dataset);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\temotionLayout.setVisibility(View.VISIBLE);\n\t\t\t\t}", "protected void consume(MonitorItem monItem) {\n BackgroundStatus bgStat= monItem.getStatus();\n for(PushItem item= getNextItem(bgStat); (item!=null); item= getNextItem(bgStat) ) {\n TitleFlasher.flashTitle(\"!! New Image !!\");\n CatalogPanel.setDefaultSearchMethod(CatalogRequest.Method.POLYGON);\n AllPlots.getInstance().getActionReporter().setMonitorItem(monItem);\n String fileName;\n switch (item.pushType) {\n case WEB_PLOT_REQUEST:\n WebPlotRequest wpr= WebPlotRequest.parse(item.data);\n String id;\n if (wpr.getPlotId()!=null) {\n id= wpr.getPlotId();\n }\n else {\n id=IMAGE_CMD_PLOT_ID+idCnt;\n idCnt++;\n wpr.setPlotId(id);\n }\n prepareRequest(wpr);\n break;\n case REGION_FILE_NAME:\n fileName= item.data;\n DS9RegionLoadDialog.loadRegFile(fileName,null,monItem);\n break;\n case TABLE_FILE_NAME:\n fileName= item.data;\n loadTable(fileName,monItem);\n //\n break;\n case FITS_COMMAND_EXT:\n PlotCmdExtension ext= parsePlotCmdExtension(item.data);\n List<PlotCmdExtension> list= AllPlots.getInstance().getExtensionList(null);\n list.add(ext);\n for(MiniPlotWidget mpw : AllPlots.getInstance().getAll()) {\n if (mpw.getPlotView()!=null) {\n mpw.recomputeUserExtensionOptions();\n }\n }\n\n break;\n }\n }\n }", "public void run() {\n \tif (counter == POP_SIZE){\n \t\ttemp_wallpapers.clear();\n \t\tadView.requestFreshAd();\n \t\tsaveToDB();\n \t\tcrossover();\n \t\tmutation();\n \t\tcounter = 0;\n \t}\n \t// Make two thumbnails. \n \t// Set nodes that were choose to universal variables to keep track of which ones were selected.\n for (int r = 0; r < 2; r++){\n \tnodes[r] = getNode();\n \tbMap[r] = makeBitmap(nodes[r], r, 50, 50, height, width); \t\n }\n Message msg = mHandler.obtainMessage();\n Bundle b = new Bundle();\n b.putInt(\"total\", 100);\n msg.setData(b);\n mHandler.sendMessage(msg);\n\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tservicio();\r\n\t\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}" ]
[ "0.6855966", "0.59293586", "0.5872026", "0.58025074", "0.57936716", "0.5674308", "0.55680656", "0.55317074", "0.553162", "0.5517079", "0.55151874", "0.55144334", "0.54802746", "0.5419063", "0.53896886", "0.5371488", "0.5363275", "0.5345973", "0.5297011", "0.5294013", "0.5290232", "0.52895415", "0.5278425", "0.52699023", "0.52645564", "0.5250761", "0.52177316", "0.5217269", "0.52153397", "0.5205724", "0.51845026", "0.51709193", "0.5168081", "0.516589", "0.5160413", "0.5145077", "0.5143501", "0.5136794", "0.51279974", "0.51200175", "0.51104385", "0.5109794", "0.5102937", "0.5102269", "0.5091797", "0.5087268", "0.5084952", "0.50731343", "0.5064989", "0.5062443", "0.5057051", "0.50507957", "0.5047371", "0.50464594", "0.5037454", "0.50367135", "0.5036022", "0.5029814", "0.5029645", "0.50292987", "0.5029265", "0.5028348", "0.5027972", "0.50225824", "0.5021275", "0.5017551", "0.50101984", "0.49935102", "0.4992851", "0.49886993", "0.49879524", "0.49874663", "0.49805316", "0.4980426", "0.49786457", "0.4970892", "0.49683797", "0.49644884", "0.49641487", "0.49630105", "0.49606138", "0.49599367", "0.4954735", "0.49526283", "0.4949122", "0.49418658", "0.49416843", "0.49415085", "0.493643", "0.49347913", "0.4930163", "0.49288973", "0.49286553", "0.49245566", "0.49210018", "0.49204767", "0.49197486", "0.49141186", "0.49103752", "0.49102405", "0.4910223" ]
0.0
-1
Plays selected animation, then calls the correct controller function to handle it.
private void select() { if (selected.equals(mealSelect) && !eating) { makeMeal(); } else if (selected.equals(snackSelect) && !eating) { makeSnack(); } else if (selected.equals(medicineSelect) && !eating){ makeMedicine(); } else if (selected.equals(playSelect) && !eating){ makePlay(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void animationStarted();", "protected abstract void animate(int anim);", "protected abstract void animationLogicTemplate();", "private void play() {\n play(Animation.INDEFINITE);\n }", "public abstract void animation(double seconds);", "private void rerunAnimation() {\n transition.playFromStart();\r\n}", "public android.animation.AnimatorSet.Builder play(android.animation.Animator anim) { throw new RuntimeException(\"Stub!\"); }", "void startAnimation();", "@Override\n public void run() {\n runAnimation();\n }", "private void showAnimation() {\n // play voice, and start animation\n if (message.getDirect() == HTMessage.Direct.RECEIVE) {\n voiceIconView.setImageResource(+R.anim.voice_from_icon);\n } else {\n voiceIconView.setImageResource(+R.anim.voice_to_icon);\n }\n voiceAnimation = (AnimationDrawable) voiceIconView.getDrawable();\n voiceAnimation.start();\n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "public void PlayAnimation(Animation animation) {\r\n // If this animation is already running, do not restart it.\r\n if (Animation() == animation)\r\n return;\r\n\r\n // Start the new animation.\r\n this.animation = animation;\r\n this.frameIndex = 0;\r\n this.time = 0.0f;\r\n }", "private void playAction(){\n\n if (stopBeforeCall.isSelected()) { execEndAction(execOnEnd.getText()); }\n execStartAction(execOnStart.getText());\n\n //if timer was inicializated\n if (timer != null) {\n if (pto == null) {\n pto = new PlayerTimerOnly(displayTimer);\n pto.play();\n } else {\n pto.stop();\n pto.play();\n }\n }\n //check if play is needed\n SolverProcess sp = solverChoices.getSelectionModel().getSelectedItem();\n if (sp == null || sp.isDummyProcess()){\n return;\n }\n\n Solution s = sp.getSolution();\n\n s = mfd.transofrmSolutionTimeIfChecked(s);\n\n List<List<AgentActionPair>> aapList = Simulator.getAAPfromSolution(s);\n rmp = new RealMapPlayer(aapList,smFront);\n rmp.play();\n\n\n }", "public abstract void nextAnimationStep();", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\r\n\t\t\t}", "public void animate()\n\t{\n\t\tanimation.read();\n\t}", "@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}", "public interface IAnimationController {\n\n /**\n * This method should start the animation using the provided model.\n */\n void start();\n\n /**\n * Retrieve the log from this controller.\n *\n * @return The log of this controller\n * @throws UnsupportedOperationException Throws exception if the controller does not support the\n * functionality\n */\n Appendable getLog();\n\n /**\n * Retrieve the timer from this controller.\n * @return The timer of this controller\n * @throws UnsupportedOperationException Throws exception if the controller does not support the\n * functionality\n */\n Timer getTimer();\n\n /**\n * Retrieves the tempo of the controller.\n * @return tempo used by controller\n * @throws UnsupportedOperationException Throws exception if the controller does not support the\n * functionality\n */\n double getTempo();\n\n\n}", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t}", "public void playSequentially(android.animation.Animator... items) { throw new RuntimeException(\"Stub!\"); }", "@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}", "@Override\n public void animate() {\n }", "public void play() {\n Selection selection;\n if ((selection = master.getWindowManager().getMain().getSelection()) == null) {\n startPlay();\n playShow(nextStartTime, -1 / 1000.0);\n } else {\n playSelection(selection);\n playShow(selection.start, selection.duration);\n }\n }", "@Override\n public void onAnimationStart(Animator arg0) {\n\n }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override public void onAnimationStart(Animator arg0) {\n\n }", "public void act() \n {\n frameCount++;\n animateFlying();\n if (getWorld() instanceof DreamWorld)\n {\n dream();\n }\n else if (getWorld() instanceof FinishScreen)\n {\n runEnd();\n }\n }", "public void Play();", "public void actionPerformed(ActionEvent arg0) {\r\n\t\tif (play == arg0.getSource())\r\n\t\t\tm.changePanel(\"2\");\r\n\t\tif(instructions == arg0.getSource()) {\r\n\t\t\tm.changePanel(\"3\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void play() {\n\t\tSystem.out.println(\"Play Movie\");\r\n\t\t\r\n\t}", "void animationFinished();", "public interface AnimationView {\n\n /**\n * Displays the specific view's output. For instance, visual will produce a visual representation\n * of the data, SVG will represent SVG output of the data, and the textual will produce a text\n * output of the data.\n *\n * @throws InterruptedException if the visual view is closed early\n * @throws IOException if the txt or svg file is unable to be written \n */\n void display() throws InterruptedException, IOException;\n}", "@Override\n public void onAnimationStart(Animator arg0) {\n\n }", "public void onAnimationStart(Animation arg0) {\n\t}", "@Override\n\tpublic void draw() {\n\t\tdouble t = System.currentTimeMillis();\n\t\tdouble dt = t - currentTime;\n\t\tcurrentTime = t;\n\n\t\t// Fetch current animation\n\t\tBaseAnimation animation = AnimationManager.getInstance().getCurrentAnimation();\n\t\tif (animation == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Draw animation frame with delta time\n\t\tanimation.draw(dt);\n\n\t\t// Send image to driver\n\t\tdriver.displayImage(animation.getImage());\n\n\t\t// Display previews\n\t\tbackground(0);\n\t\tif (ledPreviewEnabled) {\n\t\t\timage(preview.renderPreview(animation.getImage()), 0, 0);\n\t\t} else {\n\t\t\ttextAlign(CENTER);\n\t\t\ttextSize(16);\n\t\t\ttext(\"Press W to preview the animation.\", previewRect.width/2, previewRect.height/2);\n\t\t}\n\t\t\n\t\tif (sourcePreviewEnabled && BaseCanvasAnimation.class.isAssignableFrom(animation.getClass())) {\n\t\t\timage(((BaseCanvasAnimation) animation).getCanvasImage(), 0, 0);\n\t\t} else if (sourcePreviewEnabled) {\n\n\t\t\t// Copy animation image (else the animation image gets resized)\n\t\t\t// and scale it for better visibility\n\t\t\tPImage sourcePreview = animation.getImage().get();\n\t\t\tsourcePreview.resize(130, 405);\n\n\t\t\timage(sourcePreview, 0, 0);\n\t\t}\n\n\t}", "@Override\n public void onAnimationStart(Animator animation) {\n }", "public void playerAnimation(){\r\n \r\n switch (gif) {\r\n case 5:\r\n j= new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_1.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n ;\r\n break;\r\n case 15:\r\n j = new ImageIcon(getClass().getResource(\"/\"+ Character.choosen_char + \"_2.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n break;\r\n case 20:\r\n j = new ImageIcon(getClass().getResource(\"/\"+ Character.choosen_char + \"_3.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n\r\n break;\r\n case 35:\r\n j = new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_4.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n\r\n break;\r\n case 45:\r\n j = new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_5.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n\r\n break;\r\n case 55:\r\n j = new ImageIcon(getClass().getResource(\"/\" + Character.choosen_char + \"_6.png\"));\r\n img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n\r\n break;\r\n case 65:\r\n // j= new ImageIcon(\"D:\\\\Netbeans\\\\Projects\\\\ProjectZ\\\\src\\\\shi_1.png\");\r\n // img = j.getImage().getScaledInstance(200, 200, Image.SCALE_DEFAULT);\r\n // \r\n gif = 0;\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n }", "public void doAnimateStep () {\n\t\tadvanceSimulation();\n\t\tpaint();\n\t}", "@Override\n public void onAnimationStart(Animation arg0) {\n \n }", "public void startAnimation() {\r\n\t\tani.start();\r\n\t}", "public PlayAnimation(MasterView m, String eventType, GameType gt, HuntTheWumpus htw) {\r\n\t\tsuper(m);\r\n\t\tthis.gameType = gt;\r\n\t\tthis.game = htw;\r\n\t\tsetupLayout();\r\n\t\tevent = eventType;\r\n\t\t\r\n\t\t// if the user clicks the mouse, change the view\r\n\t\tanimeLabel.addMouseListener(new MouseAdapter() {\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\tchangeView();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// if the user releases a key, change the view\r\n\t\tanimeLabel.addKeyListener(new KeyListener() {\r\n\t\t\tpublic void keyPressed(KeyEvent arg0) {}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\r\n\t\t\t\tchangeView();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void keyTyped(KeyEvent arg0) {}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tplayAnime();\r\n\t}", "@Override\n\tpublic void perform() {\n\t\tSystem.out.println(\"Playing \" + song);\n\t\tinstrument.play();\n\t}", "public void replay() {\n if (currentAnimation == null) play();\n else currentAnimation.playFromStart();\n }", "private void handleAnimations() {\n pendingLoop:\n for (Animation pending : new ArrayList<>(pendingAnimations)) {\n for (Animation a : new ArrayList<>(animations)) {\n if (a.getClass().equals(pending.getClass())) {\n continue pendingLoop;\n }\n }\n pendingAnimations.remove(pending);\n addAnimation(pending);\n }\n\n for (Animation animation : new ArrayList<>(animations)) {\n animation.doAnimation(this);\n }\n }", "public void playSequentially(java.util.List<android.animation.Animator> items) { throw new RuntimeException(\"Stub!\"); }", "@Override\n public void activateView(String outFile, int animationFrameRate) throws IOException {\n }", "public void act() \n {\n if(images != null)\n {\n if(animationState == AnimationState.ANIMATING)\n {\n if(animationCounter++ > delay)\n {\n animationCounter = 0;\n currentImage = (currentImage + 1) % images.length;\n setImage(images[currentImage]);\n }\n }\n else if(animationState == AnimationState.SPECIAL)\n {\n setImage(specialImage);\n }\n else if(animationState == AnimationState.RESTING)\n {\n animationState = AnimationState.FROZEN;\n animationCounter = 0;\n currentImage = 0;\n setImage(images[currentImage]);\n }\n }\n }", "public interface IController {\n /**\n * Begins the animation.\n */\n public void animate();\n\n /**\n * Collection of the actions the controller can perform.\n */\n public void actionPerformed(ActionEvent e);\n\n\n}", "@Override\n\t\tpublic void play(int index) {\n\t\t\tif (mServicePlayerEngine != null) {\n\t\t\t\tplaylistCheck();\n\t\t\t\tmServicePlayerEngine.play(index);\n\t\t\t}\n\t\t\t// else {\n\t\t\t// startAction(PlayerService.ACTION_PLAY_SELECTION_SONG);\n\t\t\t// }\n\t\t}", "public abstract void animationStopped();", "public void play(){\n\t\t\n\t}", "public void e()\n/* */ {\n/* 193 */ if (!this.g) {\n/* 194 */ AnimatorSet localAnimatorSet = new AnimatorSet();\n/* 195 */ localAnimatorSet.play(a(this.b)).with(b(this.c));\n/* 196 */ localAnimatorSet.setDuration(this.f).start();\n/* 197 */ this.c.setVisibility(View.VISIBLE);\n/* 198 */ this.g = true;\n/* */ }\n/* */ }", "@Override\n\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\n\t\t}", "public void play() {\n\t\t\r\n\t}", "public interface EditorAnimationView extends AnimationView {\n /**\n * Reset the display to reflect the current tick.\n */\n void drawCurrentTick();\n\n /**\n * Change whether the animation is currently playing or not.\n */\n void togglePlay();\n\n /**\n * Set the animation to not playing.\n */\n void pause();\n\n /**\n * Set the current tick to the given tick.\n * @param tick the new tick.\n */\n void setTick(int tick);\n\n /**\n * Set the current time to the earliest possible time for a tick.\n */\n void rewind();\n\n /**\n * Add one tick to the current time.\n */\n void incrementTick();\n\n /**\n * remove one tick from the current time.\n */\n void decrementTick();\n\n /**\n * Switch whether the animation loops or not.\n */\n void toggleLoop();\n\n /**\n * Recalculate the last tick in the animation.\n */\n void updateMaxTick();\n\n /**\n * Displays an interactive list of shapes in the order that they are\n * stored in the currently selected layer.\n * @param shapes the list of shape names to display.\n */\n void setShapeList(List<String> shapes);\n\n /**\n * Displays an interactive list of layers, with the background layer first and the top layer last.\n * @param shapes the list of layer names to display.\n */\n void setLayerList(List<String> shapes);\n\n /**\n * Write the representation of the given model's animation to this view's output in the format\n * determined by another view's type.\n * @param output the string to be written to the view's output.\n * @throws IllegalArgumentException if the text type is incorrect\n * @throws IllegalStateException if the output has not been set or is invalid (ie unwritable)\n */\n void save(String output);\n\n /**\n * Tie the commands given by the Controller to the buttons/control scheme of this view.\n * @param features the interface containing all the necessary commands\n */\n void addFeatures(Features features);\n\n /**\n * Shows the user a given error message.\n * @param message the message to be displayed\n */\n void displayErrorMessage(String message);\n\n /**\n * Reset focus onto the view instead of any of its components (like buttons or text fields).\n */\n void resetFocus();\n\n /**\n * Reset all text fields to their default state.\n */\n void resetTextFields();\n\n /**\n * Enter a screen from which a shape's Motions can be edited.\n * @param layer the layer of the shape to be edited\n * @param shape the shape to be edited\n */\n void enterShapeEditor(String layer, String shape);\n\n /**\n * Return to the default screen from the shape editor screen.\n */\n void exitShapeEditor();\n\n /**\n * Set the text boxes for creating a new frame to the given Motion.\n * @param m the motion to set the text boxes to\n */\n void setNewFrameText(Motion m);\n\n /**\n * Set the text boxes for editing an existing frame to the given Motion.\n * @param m the motion to set the text boxes to\n */\n void setEditFrameText(Motion m);\n}", "public void animateButtons ()\r\n\t{\r\n\t\tGraphics g = getGraphics ();\r\n\t\t\r\n\t\tif (display == true){\r\n\t\t\tdelay (1000);\r\n\t\t\tdisplayCode(g);\r\n\t\t}\r\n\t\telse if (display == false){\r\n\t\t\thandleAction(g);\r\n\t\t}\r\n\t}", "void play ();", "public void act() \n {\n //plays animation with a delay between frames\n explosionSound.play();\n i = (i+1)%(frames.length); \n setImage(frames[i]);\n if(i == 0) getWorld().removeObject(this);\n }", "protected void playStepSound(int par1, int par2, int par3, int par4)\n {\n this.playSound(\"mob.spider.step\", 0.15F, 1.0F);\n }", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t}", "void recordButtonAnimationController() {\n\n //Initialize a new handler to handle animation control\n animationHandler = new Handler();\n\n //Runnable to handle idle trove animation\n RecordButtonRunnable = new Runnable() {\n\n //Run record button animation\n @Override\n public void run() {\n recordButtonAnim.start();\n\n //If record button active variable is true, repeat animation once per second - orange animation\n if(recordButtonRunning) {\n animationHandler.postDelayed(this, 1000);\n }\n\n //If the record button active variable is false, cancel the animation handler call back and set image to be the default green record button\n else {\n animationHandler.removeCallbacks(RecordButtonRunnable);\n recordButton.setImageDrawable(recordButtonNonAnim);\n }\n }\n };\n\n //Begin runnable\n animationHandler.post(RecordButtonRunnable);\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\r\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "protected abstract void internalPlay();", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "void play();", "void play(){\n\n\t\tnew X.PlayXicon().root.setOnClickListener(Play_TestsPresenter::cc);\n\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void onClick(View v) {\n\n\t Resources res = getResources();\n\t final AnimationDrawable animDraw = (AnimationDrawable) res.getDrawable(R.drawable.anim_drawble);\n\t final AnimationDrawable animDraw2 = (AnimationDrawable) res.getDrawable(R.drawable.anim_drawble);\n\t img1.setImageDrawable(animDraw);\n\t img2.setImageDrawable(animDraw2);\n\t animDraw.start();\n\t animDraw2.start();\n\t play();\n\t \n\t new Thread(new Runnable(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\ttry{\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tanimDraw.stop();\n\t\t\t\t\tanimDraw2.stop();\n\t\t\t\t\thandler.sendMessage(handler.obtainMessage());\n\t\t\t\t}\n\t \t\n\t }).start();\n\n\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\r\n\t\t\t}", "public void playSelection(Selection selection) {\n nextStartTime = selection.start;\n startPlay();\n }", "public void play()\n{\n // If timer is null, create it\n if(_timer==null)\n _timer = new javax.swing.Timer(getInterval(), new ActionListener() {\n public void actionPerformed(ActionEvent e) { update(); }});\n\n // If animator not running, start timer\n if(!isRunning()) {\n \n // Record time animator was at and time started\n _playStartTime = getTime();\n _startTime = System.currentTimeMillis();\n \n // Start timer\n _timer.start();\n \n // Send animatorStarted notification\n for(Listener listener : getListeners(Listener.class)) listener.animatorStarted(this);\n }\n}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\t\n\t Resources res = getResources();\n\t final AnimationDrawable animDraw = (AnimationDrawable) res.getDrawable(R.drawable.anim_drawble);\n\t final AnimationDrawable animDraw2 = (AnimationDrawable) res.getDrawable(R.drawable.anim_drawble);\n\t img1.setImageDrawable(animDraw);\n\t img2.setImageDrawable(animDraw2);\n\t animDraw.start();\n\t animDraw2.start();\n\t play();\n\t \n\t new Thread(new Runnable(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\ttry{\n\t\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tanimDraw.stop();\n\t\t\t\t\tanimDraw2.stop();\t\t\t\t\n\t\t\t\t\thandler3.sendMessage(handler3.obtainMessage());\n\t\t\t\t}\n\t \t\n\t }).start();\t\t\t\n\t\t}", "@Override\n\t public void onAnimationStart(Animation animation) {\n\t \n\t }", "@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public static void main(String[] args) throws IOException {\n AnimationModel model;\n IView view = null;\n Readable file;\n Appendable output;\n\n\n HashMap<String, String> cla = argsToHM(args);\n\n if (checkValidArgs(cla)) {\n showError(\"Invalid command line args\");\n return;\n }\n\n try {\n file = new FileReader(setFile(cla));\n } catch (FileNotFoundException e) {\n showError(\"File not found\");\n return;\n }\n\n\n model = AnimationReader.parseFile(file,\n new AnimationModelImpl.Builder(\n new AnimationModelImpl()));\n\n\n switch (cla.get(\"-view\")) {\n case \"text\":\n output = System.out;\n view = new TextRepresentation(\n model.getShapes(),\n model.getMaxX(),\n model.getMaxY(),\n model.getWidth(),\n model.getHeight());\n view.createAnimOutput();\n output.append(view.getOutput().toString());\n return;\n\n case \"svg\":\n try {\n File f = new File(cla.get(\"-out\"));\n FileWriter fw = new FileWriter(f);\n BufferedWriter bw = new BufferedWriter(fw);\n view = new SVGRepresentation(model.getShapes(),\n model.getWidth(),\n model.getHeight(),\n Integer.valueOf(cla.get(\"-speed\")));\n view.createAnimOutput();\n System.out.println(view.getOutput().toString());\n bw.append(view.getOutput().toString());\n bw.close();\n return;\n }\n catch (IOException e) {\n showError(\"File unable to be written\");\n }\n break;\n\n case \"visual\":\n IView visPanel = new AnimationPanelView(model.getShapes(),\n Integer.valueOf(cla.get(\"-speed\")));\n\n view = new AnimationGraphicsView(visPanel, model.getMaxX(), model.getMaxY(),\n model.getWidth(),\n model.getHeight());\n break;\n\n case \"edit\":\n AnimationPanelView editPanel = new EditorView(model.getShapes(),\n Integer.valueOf(cla.get(\"-speed\")), true);\n view = new AnimationGraphicsView(editPanel, model.getMaxX(), model.getMaxY(),\n model.getWidth(),\n model.getHeight());\n break;\n default:\n showError(\"unrecognized/incorrect animation type specified\");\n break;\n }\n\n ExcellenceController controller = new ExcellenceController(model, view);\n controller.makeVisible();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tmv.getController().animateTo(myLocationOverlay.getMyLocation());\n\t\t\t}", "public static void main(String[] args) {\n boolean hasI = false;\n boolean hasV = false;\n String in = \"\";\n String view = \"\";\n int speed = 1;\n\n if (Arrays.asList(args).contains(\"-view\")) {\n int ind = Arrays.asList(args).indexOf(\"-view\") + 1;\n view = Arrays.asList(args).get(ind++);\n hasV = true;\n }\n\n if (Arrays.asList(args).contains(\"-in\")) {\n int ind = Arrays.asList(args).indexOf(\"-in\") + 1;\n in = Arrays.asList(args).get(ind++);\n hasI = true;\n }\n if (!(hasV && hasI)) {\n throw new IllegalArgumentException(\"Must input an in and a view type\");\n }\n\n // Instantiate the correct view & set FileReader object\n ViewFactory factory = new ViewFactory();\n IView v = factory.getView(view);\n\n AnimationBuilder<AnimationModelImpl> builder = AnimationModelImpl.builder();\n Readable rn = null;\n try {\n rn = new FileReader(in);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n // Parse animation input file\n AnimationReader.parseFile(rn, builder);\n AnimationModel model = builder.build();\n if (Arrays.asList(args).contains(\"-out\")) {\n int ind = Arrays.asList(args).indexOf(\"-out\") + 1;\n String out = Arrays.asList(args).get(ind++);\n Appendable ap = null;\n try {\n ap = new FileWriter(out);\n } catch (IOException e) {\n e.printStackTrace();\n }\n v.setOutput(ap);\n }\n\n if (Arrays.asList(args).contains(\"-speed\")) {\n int speedIndex = Arrays.asList(args).indexOf(\"-speed\") + 1;\n speed = Integer.parseInt(Arrays.asList(args).get(speedIndex));\n }\n v.setSpeed(speed);\n IController controller = new Controller(model, v);\n if (v instanceof VisualAnimationView || v instanceof EditorView) {\n controller.playAnimation();\n }\n if (v.getOut() instanceof FileWriter) {\n try {\n ((FileWriter) v.getOut()).close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "static void perform_ani(String passed){\n\t\tint type = type_of_ani(passed);\n\t\tif(type==1)\n\t\t\tani_with_acc(passed);\n\t}", "public abstract void animationReelFinished();", "public abstract void play();", "public abstract void play();", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tplay();\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}" ]
[ "0.6291415", "0.61820376", "0.6023924", "0.58237773", "0.58145934", "0.57910013", "0.576562", "0.5746717", "0.57116723", "0.5640679", "0.5626551", "0.560856", "0.5604519", "0.5604519", "0.5599552", "0.5597795", "0.5592285", "0.55922055", "0.5576934", "0.5561782", "0.55556667", "0.5548427", "0.55194545", "0.5504991", "0.5504991", "0.5503924", "0.5496727", "0.54830766", "0.5480205", "0.5480205", "0.5475856", "0.54742134", "0.54735", "0.5471987", "0.546386", "0.5463816", "0.5461948", "0.54606897", "0.5458535", "0.5457528", "0.5443759", "0.5441997", "0.5436653", "0.54218835", "0.541718", "0.54150236", "0.5406939", "0.5402796", "0.5401517", "0.5392791", "0.53889906", "0.5388931", "0.53723043", "0.5371535", "0.53711593", "0.5368226", "0.53680205", "0.5367087", "0.5362865", "0.53547317", "0.5352958", "0.5348778", "0.53452307", "0.5329094", "0.53268856", "0.53253764", "0.5324481", "0.5316993", "0.5316993", "0.5316993", "0.5316993", "0.5311391", "0.5306576", "0.5305613", "0.5305613", "0.5305613", "0.5305613", "0.5302976", "0.530286", "0.5302222", "0.5302222", "0.5299481", "0.52963024", "0.5292825", "0.5291719", "0.5275609", "0.5274807", "0.52682155", "0.52682155", "0.5268215", "0.5261967", "0.5257883", "0.52542555", "0.5253935", "0.5236648", "0.52289397", "0.52289397", "0.52238214", "0.521422", "0.521422", "0.521422" ]
0.0
-1
Selects the next available menu item.
private void nextSelect() { if (selectionIndex + 1 > selections.size() - 1) { selectionIndex = 0; } else { selectionIndex++; } selected.setVisible(true); selected = selections.get(selectionIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void nextOption() {\n\t\tif (!running)\t//User may have already made selection \n\t\t\treturn;\n\t\t\n\t\tmenuTimer.cancel();\n\t\tcurrSelection++;\n\t\tif (currSelection >= menuOptions.size()) {\n\t\t\tcurrSelection = 0;\n\t\t\tcallback.menuTimeout();\n\t\t} else {\n\t\t\tString message = menuOptions.get(currSelection);\n\t\t\toutputProc.sayText(message, menuTimerListener, objID);\n\t\t}\n\t}", "public void selectItem() throws Exception {\n\t\tQTiumAutomation.sleep(5);\n\t\tthis.removeHeader();\n\t\tSystem.out.println(\"select an item at RankingPage...\");\n\t\tQTiumAutomation.clickRandomItem(RankingPageEntity.ITEM_LINK, 10);\n\t}", "@Override\n\tpublic BarberMenu advance() {\n\t\treturn barberNextMenu;\n\t}", "public void goToNextPage() {\n nextPageButton.click();\n }", "public SelectGradableItemsPage clickNextButton() throws Exception {\n try {\n logInstruction(\"LOG INSTRUCTION:clicking the next button\");\n frameSwitch.switchToFrameContent();\n uiDriver.waitToBeDisplayed(btnNextButton, waitTime);\n btnNextButton.click();\n } catch (Exception e) {\n throw new Exception(\"ISSUE IN CLICKING THE 'Next' BUTTON\" + \"clickNextButton\" + e\n .getLocalizedMessage());\n }\n return new SelectGradableItemsPage(uiDriver);\n }", "private static MenuItem createPlaySongNextMenuItem(MusicPlayerManager musicPlayerManager, Item selectedItem) {\n MenuItem playSongNext = new MenuItem(PLAY_SONG_NEXT);\n\n playSongNext.setOnAction((event) -> {\n if (selectedItem != null && selectedItem instanceof Song) {\n Song song = (Song) selectedItem;\n musicPlayerManager.placeSongAtStartOfQueue(song);\n }\n });\n\n return playSongNext;\n }", "public void switchNextTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i + 1 <= tabItems.length - 1)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(0);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void selectCurrentToken() {\r\n setCurrentItem(currentTextItem);\r\n setPosition(currentTextItem.getEndPosition());\r\n }", "public void selectItem(int i) {\n checkIndex(i);\n selectedItem = i;\n }", "public void nextTurn(){\n\t\tthis.setCurrentElement(this.getCurrentElement().getNext());\n\t}", "private void nextLevel()\n\t{\n\t\tMapInstance.getInstance().setSelectedLevel(MapInstance.getInstance().getSelectedLevel() + 1);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_next) {\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "protected void selectNextAction() throws IOException\n {\n HumanPlayer humanPlayer = new HumanPlayer();\n GameLogic gameLogic = new GameLogic();\n Map mapClass = new Map();\n\n System.out.println(\"Please input your next move: \");\n String response = humanPlayer.processCommand(humanPlayer.getInputFromConsole());\n\n switch (response)\n {\n case \"h\":\n System.out.println(gameLogic.hello());\n break;\n case \"mn\":\n System.out.println(gameLogic.move('n'));\n break;\n case \"ms\":\n System.out.println(gameLogic.move('s'));\n break;\n case \"me\":\n System.out.println(gameLogic.move('e'));\n break;\n case \"mw\":\n System.out.println(gameLogic.move('w'));\n break;\n case \"p\":\n System.out.println(gameLogic.pickup());\n break;\n case \"l\":\n System.out.println(gameLogic.look(mapClass.getMap(), mapClass.getPlayersPosition()));\n selectNextAction();\n break;\n case \"q\":\n gameLogic.gameFlick();\n break;\n case \"i\":\n System.out.println(\"Invalid input, please try again.\");\n default:\n selectNextAction();\n break;\n }\n }", "public native MenuItem getSelectedItem();", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgoNext();\r\n\t\t\t\t}", "public void select() {\n \t\t\tString sinput = \"\";\r\n \t\t\tOption selected = null;\r\n \t\t\tErrorLog.debug(name + \" selected.\");\r\n \t\t\t\r\n \t\t\twhile (true) {\r\n \t\t\t\tSystem.out.println(toString()); //Print menu.\r\n \t\t\t\tsinput = read(); //Get user selection.\r\n \t\t\t\tif (!sinput.equalsIgnoreCase(\"exit\")) {\r\n \t\t\t\t\tselected = options.get(sinput); //Find corresponding option.\r\n \r\n \t\t\t\t\tif (selected != null) //Sinput corresponds to an extant option.\r\n \t\t\t\t\t\tselected.select(); //Select the selected.\r\n \t\t\t\t\telse\r\n \t\t\t\t\t\tprint(sinput + \" is not a valid option\");\r\n \t\t\t\t} else\r\n \t\t\t\t\t{print(\"Returning to previous menu.\"); break;}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tErrorLog.debug (\"Quitting \" + name + \". Sinput:\"+sinput);\r\n \t\t\t\r\n \t\t\treturn;\r\n \t\t}", "public T getNextItem();", "public void selectItem(String itemName) {\t\t\n\t\tQTiumAutomation.click(BrandPageEntity.DYNAMIC_ITEM, itemName);\n\t}", "public void getMenuChoice()\n {\n boolean finished = false;\n \n while(!finished)\n {\n printHeading();\n String choice = Menu.getMenuChoice(menuChoices);\n executeMenuChoice(choice);\n \n if(choice.startsWith(\"quit\"))\n {\n finished = true;\n }\n }\n }", "public void nextNodeSize() { \n String str = findSelected(node_sizes); int i;\n for (i=0;i<NODE_SZ_STRS.length;i++) if (str.equals(NODE_SZ_STRS[i])) break;\n i = (i+1)%NODE_SZ_STRS.length;\n node_sizes[i].setSelected(true);\n }", "@FXML\n private void handlePreviousCommandTextNext() {\n commandBox.selectPreviousCommandTextNext();\n }", "public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }", "private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }", "private void nextButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextButtonActionPerformed\n projectTree.setSelectionRow(projectTree.getSelectionRows()[0] + 1);\n }", "boolean nextItem();", "public IWizardPage getNextPage();", "private void selectNextPath(boolean inc) {\n\t\tif (this.allPathsList.size() < 1)\n\t\t\treturn;\n\t\tList<GraphPath<PathwayVertexRep, DefaultEdge>> paths = this.allPathsList.get(this.allPathsList.size() - 1)\n\t\t\t\t.getFirst();\n\t\tif (paths.size() > 1) {\n\t\t\t// System.out.println(\"allPaths.size() > 1\");\n\n\t\t\tif (inc)\n\t\t\t\tselectedPathID++;\n\t\t\telse\n\t\t\t\tselectedPathID--;\n\n\t\t\tif (selectedPathID < 0)\n\t\t\t\tselectedPathID = paths.size() - 1;\n\t\t\tif (selectedPathID > paths.size() - 1)\n\t\t\t\tselectedPathID = 0;\n\n\t\t\tif (allPaths.size() > 0) {\n\t\t\t\tselectedPath = paths.get(selectedPathID);\n\t\t\t\t// System.out.println(\"selectedPathID\"+selectedPathID);\n\t\t\t\tif (selectedPath.getEdgeList().size() > 0 && !isShiftKeyDown) {\n\t\t\t\t\tPathwayVertexRep startPrevVertex = selectedPath.getStartVertex();\n\t\t\t\t\tPathwayVertexRep endPrevVertex = selectedPath.getEndVertex();\n\t\t\t\t\tList<DefaultEdge> edgePrevList = selectedPath.getEdgeList();\n\t\t\t\t\tpreviousSelectedPath = new GraphPathImpl<PathwayVertexRep, DefaultEdge>(pathway, startPrevVertex,\n\t\t\t\t\t\t\tendPrevVertex, edgePrevList, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tselectedPathID = 0;\n\t\t}\n\n\t\t// System.out.println(\"selectedPathID=\"+selectedPathID);\n\t\tthis.allPathsList.get(this.allPathsList.size() - 1).setSecond(selectedPathID);\n\t\tisBubbleTextureDirty = true;\n\t\tsetDisplayListDirty();\n\t\ttriggerPathUpdate();\n\t}", "public void pgr_D_Next(ActionEvent e) throws Exception\n\t{\n\t\t//#CM5132\n\t\t// Store listbox to the Session\n\t\tSessionDeadStockListRet listbox =\n\t\t\t(SessionDeadStockListRet) this.getSession().getAttribute(\"LISTBOX\");\n\t\tsetList(listbox, \"next\");\n\t}", "@Override\n public void onClick(View view) {\n ((Page) Page.activity).selectPage(list.get(position) + 1);\n ((BookmarksActivity) context).finish();\n }", "public void selectAProduct() {\n specificProduct.click();\n }", "public void selectItem(int index) {\n for (int i = 0; i < getWidgetCount(); i++) {\n Widget item = getWidget(i);\n\n if (item instanceof AbstractListItem) {\n ((AbstractListItem) item).setActive(i == index);\n }\n }\n }", "B scrollToSelectedItem(boolean scrollToSelectedItem);", "public MentorConnectRequestCompose nextTap()\n\t{\n\t\tmentorConnectRequestObjects.nextButtonHeader.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}", "private static MenuItem createPlaySongNextMenuItem(MusicPlayerManager musicPlayerManager, List<Song> selectedSongs) {\n MenuItem playSongNext = new MenuItem(PLAY_SONG_NEXT);\n\n playSongNext.setOnAction((event) -> {\n for (Song song : selectedSongs) {\n if (song != null) {\n musicPlayerManager.placeSongAtStartOfQueue(song);\n }\n }\n });\n\n return playSongNext;\n }", "private LoginPage clickOnNext() {\n if (waitForElementDisplayed(By.id(ID_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_NEXT)));\n return this;\n }\n return null;\n }", "public void nextSlide() {\n\t\tif (currentSlideNumber < (showList.size()-1)) {\n\t\t\tsetSlideNumber(currentSlideNumber + 1);\n\t\t}\n\t}", "public void gotoItem(T aData){\r\n ListNode temp = this.findNodeWith(aData);\r\n if(temp == null)\r\n return;\r\n this.resetCurrent();\r\n while(this.hasMore() && curr != temp){\r\n this.gotoNext();\r\n }\r\n }", "private void selectItem(int position) {\n if(position==0){\n Intent myIntent= new Intent(this, ConnectActivity.class);\n startActivity(myIntent);}\n if(position==1){\n Intent myIntent= new Intent(this, ShowActivity.class);\n startActivity(myIntent);}\n if(position==2){\n Intent myIntent= new Intent(this, DiagnosisActivity.class);\n startActivity(myIntent);}\n if(position==3){\n Intent myIntent= new Intent(this, RemoteActivity.class);\n startActivity(myIntent);}\n if(position==4){\n Intent myIntent= new Intent(this, CommandActivity.class);\n startActivity(myIntent);}\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n setTitle(mPlanetTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n }", "private static void makeMenuChoice() {\r\n\t\tint value = Integer.MAX_VALUE;\r\n\t\twhile (value != 0) {\r\n\t\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\" Please make your choice, by entering the assigned number\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\" 1: Search for a specific item\");\r\n\t\t\tSystem.out.println(\" 2: View shops\");\r\n\t\t\tSystem.out.println(\" 3: View cart\");\r\n\t\t\tSystem.out.println(\" 4: Checkout cart\");\r\n\t\t\tSystem.out.println(\" 0: Quit\");\r\n\t\t\tvalue = getValidUserInput(scanner, 5);\r\n\t\t\tswitch (value) {\r\n\t\t\tcase 0: \r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\" Bye!\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tsearchForItem();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tviewItems();\r\n\t\t\t\tbreak; \r\n\t\t\tcase 3:\r\n\t\t\t\tviewCart();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\tcheckoutCart();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void next()\n\t{\n\t\tif(this.curseur < this.listeTapis.size() - 1)\n\t\t{\n\t\t\tthis.curseur++;\n\t\t}\n\t}", "@When(\"^I select the first item from Giphy grid$\")\n public void ISelectFirstItem() throws Exception {\n getGiphyPreviewPage().selectFirstItem();\n }", "public void selectPosition(String nextPosition){\r\n switch (nextPosition){\r\n case \"barn\": barn(); break;\r\n case \"turkeyTalk\": turkeyTalk(); break;\r\n case \"seeTheLight\": seeTheLight(); break;\r\n case \"pigginOut\": pigginOut(); break;\r\n case \"theGobbling\": theGobbling(); break;\r\n case \"farmHouseTurkey\": farmHouseTurkey(); break;\r\n case \"threeLittlePigs\": threeLittlePigs(); break;\r\n case \"forTheGreaterGood\": forTheGreaterGood(); break;\r\n case \"youDied1\": youDied1();break;\r\n case \"youWin\": youWin(); break;\r\n case \"thePond\": thePond();break;\r\n default: break;\r\n \r\n }\r\n }", "public static void next() {\n\t\tsendMessage(NEXT_COMMAND);\n\t}", "private void goToInputtedRow() {\n if (mGoToEditText.getText() != null && !mGoToEditText.getText().toString().isEmpty()) {\n int listPosition = Integer.parseInt(mGoToEditText.getText().toString()) - 1;\n\n if (listPosition <= mAdapter.getCount()) {\n mAdapter.setSelectedListItem(listPosition);\n mAdapter.notifyDataSetChanged();\n mPiListView.setSelection(listPosition);\n } else {\n Toast toast = Toast.makeText(getApplicationContext(), String.format(getString(R.string.only_d_rows_available_message), mAdapter.getCount()), Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n }", "public void ClickNext() {\r\n\t\tnext.click();\r\n\t\t\tLog(\"Clicked the \\\"Next\\\" button on the Birthdays page\");\r\n\t}", "public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}", "public void nextItem() {\n\t\tif(currentPlayingItem==null) {\n\t\t\treturn;\n\t\t}\n\n\t\tswitch (playMode) {\n\t\t\tcase PLAY_MODE_REPEAT_ONE:\n\t\t\t\tplayItem(currentPlayingItem);\n\t\t\t\treturn;\n\t\t\tcase PLAY_MODE_SHUFFLE:\n\t\t\t\trandomItem();\n\t\t\t\treturn;\n\t\t}\n\t\t\n\t\tPlayableItem nextItem = currentPlayingItem.getNext(playMode==PLAY_MODE_REPEAT_ALL);\n\t\tif(nextItem==null) {\n\t\t\tif(!isPlaying()) wakeLockRelease();\n sendBroadcast(new Intent(\"com.andreadec.musicplayer.newsong\")); // Notify the activity that there are no more songs to be played\n updateNotification();\n\t\t} else {\n\t\t\tplayItem(nextItem);\n\t\t}\n\t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int pos, long id) {\n choice=pos;\n }", "public void nextBtnClicked(View v) {\r\n//\t\tshowMsg(\"Next Button clicked: \"+ v);\r\n\t\tresetSelection();\r\n\t\tnextQuestion(1);\r\n\t\tshowQuesAndAnswers();\r\n\t}", "@FXML\n private void nextButtonAction() {\n int totalSong = listItems.size();\n if(isRepeatOne){\n songFile = currentSong;\n }\n else if(isRepeatAll){\n currentSongIndex = (currentSongIndex+1)%totalSong;\n songList.getSelectionModel().clearSelection();\n songList.getSelectionModel().select(currentSongIndex);\n songList.scrollTo(currentSongIndex);\n selectedSong();\n }\n else {\n Random random = new Random();\n int next = random.nextInt(totalSong);\n songList.getSelectionModel().clearSelection();\n songList.getSelectionModel().select(next);\n songList.scrollTo(next);\n selectedSong();\n }\n playButtonAction();\n }", "public static int selectMenuOption(String... options) {\n\n for (int i = 0; i < options.length; ++i) {\n c.writer().printf(\"%d. %s%n\", i + 1, options[i]);\n }\n \n for (;;) {\n final int choice;\n\n try {\n choice = Integer.parseInt(\n c.readLine(\"\\nSelect an option and press Enter: \\n\"\n + \">>\"));\n\n if (choice > 0 && choice < options.length + 1) {\n return choice;\n } else {\n c.printf(\"Your choice is not available! choose another.%n\");\n }\n } catch (NumberFormatException e) {\n c.printf(\n \"Enter a number that corresponds with a menu choice!%n\");\n }\n }\n }", "public static int getMenuChoice() {\n String line;\n int option = -1;\n\n System.out.print(\">\");\n if (Menus.reader.hasNext()) {\n line = Menus.reader.nextLine().strip();\n\n try {\n option = Integer.parseInt(line);\n } catch (NumberFormatException e) {\n option = -1;\n }\n }\n\n return option;\n }", "private void btnNext_click(ActionEvent e) {\n\t\tString stuAnswer = \"\";\r\n\t\tif (rdoItemA.isSelected()) {\r\n\t\t\tstuAnswer = \"A\";\r\n\t\t}\r\n\t\tif (rdoItemB.isSelected()) {\r\n\t\t\tstuAnswer = \"B\";\r\n\t\t}\r\n\t\tif (rdoItemC != null) {\r\n\t\t\tif (rdoItemC.isSelected()) {\r\n\t\t\t\tstuAnswer = \"C\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (rdoItemD != null) {\r\n\t\t\tif (rdoItemD.isSelected()) {\r\n\t\t\t\tstuAnswer = \"D\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!stuAnswer.isEmpty()) {\r\n\t\t\tExamItem bean = eiList.get(questionNO - 1);\r\n\r\n\t\t\tif (bean.getStuAnswer() == null || !bean.getStuAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\tbean.setStuAnswer(stuAnswer);\r\n\t\t\t\tif (bean.getStdAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\t\tbean.setMarkResult(1l);\r\n\t\t\t\t\tbean.setGainScore(bean.getStdScore());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbean.setMarkResult(0l);\r\n\t\t\t\t\tbean.setGainScore(0l);\r\n\t\t\t\t}\r\n\t\t\t\texamItemService.update(bean);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (questionNO == questionNum) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"这是最后一题。\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tquestionNO++;\r\n\t\tinitData();\r\n\t}", "private void prevSelect() {\n\t\tif (selectionIndex - 1 < 0) {\n\t\t\tselectionIndex = selections.size() - 1;\n\t\t} else {\n\t\tselectionIndex--;\n\t\t}\n\t\tselected.setVisible(true);\n\t\tselected = selections.get(selectionIndex);\n\t\t\n\t}", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "void clickNextStation();", "public PlayerChoicePick getNextPlayerChoicePick();", "@Test\r\n public void startNextOptionTest()\r\n {\r\n presenter.onClickNext();\r\n\r\n Assert.assertEquals(stub.getNextCounter(), 1);\r\n }", "public void selectProduct() {\n\t\tActions obj = new Actions(driver);\n\t\tobj.moveToElement(driver.findElements(By.xpath(\".//*[@id='center_column']/ul/li\")).get(0)).build().perform();\n\t\tdriver.findElement(By.xpath(\".//*[@id='center_column']/ul/li[1]/div/div[2]/div[2]/a[1]/span\")).click();\n\t}", "public void selectionRight() {\n\t\tselectedSlotPosX = (selectedSlotPosX == (C.MENU_INVENTORY_ITEM_SLOT_WIDTH - 1)) ? 0 : selectedSlotPosX+1;\n\t}", "public static void clickNextBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.id(\"nextquest\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Next button in Q&A submit doesnt work\");\n\t\t}\n\t}", "public void selectItem(int position) {\n Log.d(\"Debug-\", \"Click on item\" + position);\n Intent intent = new Intent(DisplayActivity.this, DisplayActivity.class);\n intent.putExtra(\"airportCode\", position);\n mDrawerList.setItemChecked(position, true);\n mDrawerList.setSelection(position);\n //setTitle(mNavigationDrawerItemIDs[position]);\n mDrawerLayout.closeDrawer(drawerContainer);\n //To prevent endless previous activities of display and instead return directly to homeActivity\n finish();\n startActivity(intent);\n }", "@Override\n public void setCurrentItem(int item) {\n super.setCurrentItem(item, false);\n }", "abstract protected Entity selectNextEntity();", "public void showSelection () {\n checkWidget();\n if( selectedIndex != -1 ) {\n showItem( getSelection() );\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_next) {\r\n networkCheck();\r\n\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "private void optionSelected(MenuActionDataItem action){\n \t\tString systemAction = action.getSystemAction();\n \t\tif(!systemAction.equals(\"\")){\n \t\t\t\n \t\t\tif(systemAction.equals(\"back\")){\n \t\t\t\tonBackPressed();\n \t\t\t}else if(systemAction.equals(\"home\")){\n \t\t\t\tIntent launchHome = new Intent(this, CoverActivity.class);\t\n \t\t\t\tstartActivity(launchHome);\n \t\t\t}else if(systemAction.equals(\"tts\")){\n \t\t\t\ttextToSearch();\n \t\t\t}else if(systemAction.equals(\"search\")){\n \t\t\t\tshowSearch();\n \t\t\t}else if(systemAction.equals(\"share\")){\n \t\t\t\tshowShare();\n \t\t\t}else if(systemAction.equals(\"map\")){\n \t\t\t\tshowMap();\n \t\t\t}else\n \t\t\t\tLog.e(\"CreateMenus\", \"No se encuentra el el tipo de menu: \" + systemAction);\n \t\t\t\n \t\t}else{\n \t\t\tNextLevel nextLevel = action.getNextLevel();\n \t\t\tshowNextLevel(this, nextLevel);\n \t\t\t\n \t\t}\n \t\t\n \t}", "private void selectItem(int position) {\n if (position == 0) {\n //joj\n Toast.makeText(this, \" clicked on planner \", Toast.LENGTH_SHORT).show();\n //Call the method, actions to take place when clicked on planner\n }\n //add code if clicked on Recipes\n else if (position == 1) {\n Toast.makeText(this, \"clicked on recipes\", Toast.LENGTH_SHORT).show();\n //Call the method, actions to take place when clicked on recipes\n Intent intent = new Intent(FrontPage.this, Recipepage.class);\n startActivity(intent);\n\n } else if (position == 2) {\n\n Toast.makeText(this, \"clicked on Grocery\", Toast.LENGTH_SHORT).show();\n //Call the method, actions to take place when clicked on grocery\n } else if (position == 3)\n\n {\n Toast.makeText(this, \"clicked on groups\", Toast.LENGTH_SHORT).show();\n\n }\n\n\n }", "@Override\n public BaseMenu execute() {\n\n printTitle(movie.getTitle());\n\n printMovieInfo();\n\n ArrayList<String> choices = new ArrayList<>();\n int c=0;\n if (!((movie.getShowingStatus().equals(Constant.ShowingStatus.END_SHOWING)) || (movie.getShowingStatus().equals(Constant.ShowingStatus.COMING_SOON))))\n choices.add(\"Buy Tickets\");\n else\n c=1;\n choices.add(\"Write a review\");\n choices.add(\"Back\");\n printMenuItems(choices, 0);\n c = c + readChoice(0, choices.size());\n\n BaseMenu nextMenu = this;\n switch (c) {\n case 0:\n nextMenu = new BuyTicketMenu(this, movie);\n break;\n case 1:\n nextMenu = new ReviewsMenu(this, movie);\n break;\n case 2:\n nextMenu = this.getPreviousMenu();\n break;\n }\n return nextMenu;\n }", "public void selectionDown() {\n\t\tselectedSlotPosY = (selectedSlotPosY == 0) ? C.MENU_INVENTORY_ITEM_SLOT_HEIGHT - 1 : selectedSlotPosY-1;\n\t}", "public void selectionUp() {\n\t\tselectedSlotPosY = (selectedSlotPosY == (C.MENU_INVENTORY_ITEM_SLOT_HEIGHT - 1)) ? 0 : selectedSlotPosY+1;\n\t}", "public void setSelection(int index) {\n checkWidget();\n int count = OS.SendMessage(handle, OS.TCM_GETITEMCOUNT, 0, 0);\n if (!(0 <= index && index < count))\n return;\n setSelection(index, false);\n }", "private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }", "public static void clickNextBtnGame() {\t\n\t\tdriver.findElement(By.id(\"btnnext\")).click();\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tcard.next(bootpanel);\n\t\t\tSystem.out.println(\"next\");\n\t\t}", "private int getMenuSelection() {\n return view.printMenuAndGetSelection();\n }", "public void setSelectedItem(int selectedItem) {\n setSelectedItem(selectedItem, true);\n }", "private void runMenu() {\n\t\tint selection;\n\t\tdo {\n\t\t\tdisplayMenu();\n\t\t\tselection = Integer.parseInt(sc.nextLine());\n\t\t\tprocessSelection(selection);\n\t\t} while (selection != 5);\n\t}", "private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }", "public void showNext()\n {\n String nexts = beanitems.get(position+1).getAddtime();\n\n String time = nexts.substring(0,10);\n\n switcher.setText(time);\n\n\n }", "@Test(priority =11)\n\t public void selectquestion() throws InterruptedException\n\t {\n\t\tdriver.findElement(By.xpath(\"//a[text()='Select the questions']\")).click();\n Thread.sleep(5000);\n\t }", "public void clickNext(View view) {\n Intent viewResultsActivityIntent = new Intent(this, ViewResultsActivity.class);\n Spinner select_transport = findViewById(R.id.select_transport);\n ElectricTransport selectedElectricTransport = (ElectricTransport) select_transport.getSelectedItem();\n // Send time, distance, and selected transport to next intent\n viewResultsActivityIntent.putExtra(DISTANCE, this.distance);\n viewResultsActivityIntent.putExtra(TIME, this.time);\n viewResultsActivityIntent.putExtra(SELECTED_TRANSPORT, selectedElectricTransport);\n viewResultsActivityIntent.putExtra(RESULTS_DESCRIPTION, this.results_description);\n\n startActivity(viewResultsActivityIntent); // Go to next screen\n }", "public void selectPressed() {\n\t\tif (edit) {\n\t\t\tdisplayCardHelp = !displayCardHelp;\n\t\t} else {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t}", "public void menuClicked(MenuItem menuItemSelected);", "public void selectSlot() {\n\t\t\r\n\t}", "public void goNextLevel(){\r\n setCurrentLevel(currentLevel.getNextLevel());\r\n }", "public void toNext(View view) {\n Intent intent = new Intent(this, BonusSpinner.class);\n intent.putExtra(\"player\", player);\n startActivity(intent);\n finish();\n }", "private void next()\r\n {\r\n if(currentCard != stack.getChildren().size()- 1) // if we are not at the last card\r\n {\r\n currentCard++; // make the next card the current card\r\n \r\n // move through the cards: show the current card, hide the others\r\n for(int i = 0; i <= stack.getChildren().size()- 1; i++)\r\n {\r\n if(i == currentCard)\r\n {\r\n stack.getChildren().get(i).setVisible(true);\r\n }\r\n else\r\n {\r\n stack.getChildren().get(i).setVisible(false);\r\n }\r\n }\r\n }\r\n }", "default public void clickSelect() {\n\t\tremoteControlAction(RemoteControlKeyword.SELECT);\n\t}", "public static void checkAndClickNextButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t}", "static void selectFirstOption(){\r\n\r\n WebDriverWait wait= new WebDriverWait(BrowserInitiation.driver, 5000);\r\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector(brandFromListCssSelector)));\r\n\r\n List<WebElement> brandOptionsList= BrowserInitiation.driver.findElements(By.cssSelector(brandFromListCssSelector));\r\n brandOptionsList.get(0).click();\r\n\r\n }", "private int getNextLeftItemNo()\n\t{\n\t\treturn getAdapterIndexNumber(mLeftViewIndex);\n\t}", "private int next(int index)\n\t{\n\t\tif (index == list.length - 1)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn index + 1;\n\t\t}\n\t}", "public void moveSelectionDown(){\n if(mACPanel.isShowing()) {\n mACPanel.moveDown();\n return;\n }\n Cursor c = getCursor();\n int line = c.getLeftLine();\n int column = c.getLeftColumn();\n int c_line = getText().getLineCount();\n if(line + 1 >= c_line){\n setSelection(line, getText().getColumnCount(line));\n }else{\n int c_column = getText().getColumnCount(line + 1);\n if(column > c_column){\n column = c_column;\n }\n setSelection(line + 1, column);\n }\n }", "public void inputNext() {\n ++this.currentIndex;\n this.currentUnit = getUnit(this.currentIndex);\n this.currentChName = this.currentUnit.chName;\n }", "public void moveToSelected() {\n if (selectionX != -1) {\n // This short circuits but if it's not multiplayer the second statement will do nothing\n if (map.moveEntity(map.getCurrentTurnHero(), selectionX, selectionY) && multiplayerGameManager\n .hookPlayerMove(selectionX, selectionY)) {\n map.updateVisibilityArray();\n visionChanged = true;\n // See if this hero has moved on a position that meets any movement objectives\n gameState.updateMovementGoal(selectionX, selectionY);\n }\n }\n\n if (map.getCurrentTurnHero().getActionPoints() < 2) {\n nextTurn();\n }\n }", "public abstract void goNext();", "private void nextQuestion() {\n mCurrentIndex = (mCurrentIndex + 1) % questions.length;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }", "public void selectAgent(int selected) {\n this.selected = selected;\n }", "public void select(int index) {\r\n\t\tindirect = true;\r\n\t\tcombo.select(index);\r\n\t\tindirect = false;\r\n\t}" ]
[ "0.72951263", "0.63646233", "0.6331563", "0.60394055", "0.5995684", "0.59624344", "0.59318984", "0.5921874", "0.5915806", "0.5907056", "0.5837416", "0.5817124", "0.58058786", "0.57981956", "0.57849103", "0.57721615", "0.57690555", "0.57600874", "0.5740223", "0.57401884", "0.57283366", "0.57217264", "0.5716443", "0.57088554", "0.5707403", "0.5684862", "0.56819385", "0.5659427", "0.5656796", "0.56548244", "0.56484705", "0.56349933", "0.56340027", "0.5619087", "0.56021345", "0.55982953", "0.55804896", "0.5579828", "0.5575086", "0.55572367", "0.55432206", "0.55418634", "0.5534681", "0.5532754", "0.55322367", "0.5517104", "0.5513591", "0.55119276", "0.5506404", "0.5501222", "0.5498345", "0.5491992", "0.54889375", "0.5480796", "0.54771376", "0.54769653", "0.547397", "0.546673", "0.54654765", "0.5463865", "0.54623723", "0.54613066", "0.5459243", "0.54566807", "0.5450483", "0.5447289", "0.5431999", "0.5415745", "0.5412385", "0.54088783", "0.5407261", "0.54031014", "0.5399399", "0.539819", "0.53958553", "0.53914434", "0.5388659", "0.538418", "0.53830326", "0.53794825", "0.53712505", "0.53696007", "0.5368775", "0.53681195", "0.5362807", "0.5359694", "0.5347097", "0.5345421", "0.5334284", "0.53325474", "0.53305715", "0.5316105", "0.5312903", "0.53128904", "0.53048784", "0.5300916", "0.52948546", "0.5291836", "0.5289405", "0.5286283" ]
0.7577161
0
/ Selects the previous menu item
private void prevSelect() { if (selectionIndex - 1 < 0) { selectionIndex = selections.size() - 1; } else { selectionIndex--; } selected.setVisible(true); selected = selections.get(selectionIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Menu previousMenu() {\n\t\treturn prevMenu;\n\t}", "public static void previous() {\n\t\tsendMessage(PREVIOUS_COMMAND);\n\t}", "public void previous() {\n if (hasPrevious()) {\n setPosition(position - 1);\n }\n }", "public void previous();", "public void previousBtnClicked(View v){\n\t\tresetSelection();\r\n\t\tnextQuestion(-1);\r\n\t\tshowQuesAndAnswers();\r\n\t}", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "public void previous()\n {\n if (size != 0)\n {\n current = current.previous();\n }\n\n }", "public void prev();", "private void prevButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prevButtonActionPerformed\n projectTree.setSelectionRow(projectTree.getSelectionRows()[0] + 1);\n }", "public void pgr_D_Prev(ActionEvent e) throws Exception\n\t{\n\t\t//#CM5134\n\t\t// Store listbox to the Session\n\t\tSessionDeadStockListRet listbox =\n\t\t\t(SessionDeadStockListRet) this.getSession().getAttribute(\"LISTBOX\");\n\t\tsetList(listbox, \"previous\");\n\t}", "default public void clickBack() {\n\t\tclickMenu();\n\t}", "@FXML\n private void handlePreviousCommandTextPrevious() {\n commandBox.selectPreviousCommandTextPrevious();\n }", "private void previousButtonMouseClicked(java.awt.event.MouseEvent evt) {\n if(previousButton.isEnabled() == false || checkUpdateInventoryError() == true) return;\n recordChanged();\n current --;\n displayCurrentStock();\n }", "public void prev()\n {\n if (mHistoryIdx == 0) {\n return;\n }\n\n mCommandList.get(--mHistoryIdx).undo();\n this.setChanged();\n this.notifyObservers(mHistoryIdx);\n }", "public void Prev();", "private void previous() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n\n Timeline.Window currentWindow = currentTimeline.getWindow(currentWindowIndex, new Timeline.Window());\n if (currentWindowIndex > 0 && (player.getCurrentPosition() <= MAX_POSITION_FOR_SEEK_TO_PREVIOUS\n || (currentWindow.isDynamic && !currentWindow.isSeekable))) {\n player.seekTo(currentWindowIndex - 1, C.TIME_UNSET);\n } else {\n player.seekTo(0);\n }\n }", "public void previousSlide() {\r\n\t\tpresentation.prevSlide();\r\n\t}", "public void prevSlide() {\n\t\tif (currentSlideNumber > 0) {\n\t\t\tsetSlideNumber(currentSlideNumber - 1);\n\t }\n\t}", "private void prevHistoryEntry()\n {\n if (this.historyPos > 0) {\n this.historyPos--;\n this.textInput.setText(this.history.get(this.historyPos));\n this.textInput.setSelection(this.history.get(this.historyPos).length());\n }\n }", "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "public void switchPreviousTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i - 1 >= 0)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i - 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(tabItems.length - 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void inputPrev() {\n --this.currentIndex;\n this.currentUnit = getUnit(this.currentIndex);\n this.currentChName = this.currentUnit.chName;\n }", "public void back()\r\n\t{\r\n\t\tparentPanel.setState(GameState.Menu);\r\n parentPanel.initScene(GameState.Menu);\r\n\t\t\t\r\n\t}", "private void prevPage()\n {\n if(currentPage - 1 >= 1)\n {\n nextPageButton.setEnabled(true);\n if(currentPage -2 < 1)\n prevPageButton.setEnabled(false);\n \n paginate(--currentPage, getResultsPerPage());\n updatePageLabel(currentPage, maxPage);\n }\n }", "public void previous() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getPreviousMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getPreviousModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }", "void clickPreviousStation();", "Object previous();", "public void movePrevious() throws CurrentNotSetException {\r\n\t\ttry {\r\n\t\t\taktu = aktu.getPrevious();\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new CurrentNotSetException();\r\n\t\t}\r\n\r\n\t}", "@Nonnull\n public Optional<ENTITY> previous()\n {\n currentItem = Optional.of(items.get(--index));\n update();\n return currentItem;\n }", "private void previous()\r\n {\r\n if(currentCard != 0) // if we are not at the first card\r\n {\r\n currentCard--; // make the previous card the current card\r\n \r\n // move through the cards: show the current card, hide the others\r\n for(int i = 0; i <= stack.getChildren().size()- 1; i++)\r\n {\r\n if(i == currentCard)\r\n {\r\n stack.getChildren().get(i).setVisible(true);\r\n }\r\n else\r\n {\r\n stack.getChildren().get(i).setVisible(false);\r\n }\r\n }\r\n }\r\n }", "public void setPrev(Level previous) {\n\t\tthis.prev = previous;\n\t}", "private void previousButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n if(this.page == 0){\n Warning.run(\"No previous page here.\");\n }\n else{\n this.page--;\n this.update();\n }\n }", "public void pgr_U_Prev(ActionEvent e) throws Exception\n\t{\n\t\tpgr_D_Prev(e);\n\t}", "public void returnToPrevious(View v) {\n }", "private void backToMenu() {\n game.setScreen(new StartScreen(game));\n }", "private void navigateToPreviousSearchState() {\n Logger.logMessage(TAG, \"Current adapter in nav back is\" + currentAdapter);\n switch (currentAdapter) {\n case \"R\":\n navToPreviousRegions();\n break;\n case \"S\":\n mRecyclerView.setAdapter(regionsAdapter);\n if (currentDisplayingParentId == 0) {\n displayingNowTextView.setText(\"Regions\");\n searchBack.setVisibility(View.GONE);\n } else {\n navToPreviousRegions();\n }\n currentAdapter = \"R\";\n break;\n }\n }", "@Override\n public Menu getPreviousMenu() {\n return new GrantDurationMenu(this.getPlayer(), this.target, rank);\n }", "public void goBackToPreviousScene() {\n\n scenesSeen.pop();\n currentScene = scenesSeen.peek();\n\n this.window.setScene(currentScene.createAndReturnScene());\n }", "public void back() {\n //noinspection ResultOfMethodCallIgnored\n previous();\n }", "private void previousQuestion() {\n if (mCurrentIndex > 0) {\n mCurrentIndex = (mCurrentIndex - 1) % questions.length;\n }\n else\n mCurrentIndex = questions.length - 1;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }", "private void previousBtnActionPerformed(java.awt.event.ActionEvent evt) {\n}", "void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}", "void previousPage() throws IndexOutOfBoundsException;", "@FXML\n private void handlePreviousCommandTextNext() {\n commandBox.selectPreviousCommandTextNext();\n }", "public void MovePrevious()\r\n {\r\n\r\n \t try{\r\n \t\t if(!rsTution.previous())rsTution.first();\r\n \t\t Display();\r\n\r\n\r\n \t }catch(SQLException sqle)\r\n \t {System.out.println(\"MovePrevious Error:\"+sqle);}\r\n }", "private void previousQuestion()\r\n {\r\n Intent question = new Intent(AnswerActivity.this, QuestionActivity.class);\r\n Bundle bundle = new Bundle();\r\n bundle.putIntArray(QuestionActivity.FLASH_CARD_ARRAY, intArray);\r\n bundle.putInt(QuestionActivity.NUMBER_OF_FLASH_CARDS, numberOfFlashCards);\n bundle.putBoolean(PREVIOUS_QUESTION, true); \r\n bundle.putInt(QuestionActivity.CURRENT_INDEX, currentIndex);\r\n question.putExtras(bundle);\r\n startActivity(question);\r\n overridePendingTransition(R.anim.fade, R.anim.hold);\n finish();\r\n }", "@Override\r\n\tpublic void showPrevious(){\r\n\t\tint currentNotification = this.getDisplayedChild();\r\n\t\tif(currentNotification > 0){\r\n\t\t\tsetInAnimation(inFromLeftAnimation());\r\n\t\t\tsetOutAnimation(outToRightAnimation());\r\n\t\t\t//Update the navigation information on the previous view before we switch to it.\r\n\t\t\tfinal View previousView = this.getChildAt(currentNotification - 1);\r\n\t\t\tupdateView(previousView, currentNotification - 1, 0);\r\n\t\t\t//Flip to previous View.\r\n\t\t\tsuper.showPrevious();\r\n\t\t}\r\n\t}", "public static Result prev() {\r\n\t\tMap<String, String> requestData = Form.form().bindFromRequest().data();\r\n\t\tString idCurrentNode = requestData.get(RequestParams.CURRENT_NODE);\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tString username = CMSSession.getEmployeeName();\r\n\r\n\t\tDecision previousDecision = CMSGuidedFormFill.getPreviousDecision(\r\n\t\t\t\tformName, username, idCurrentNode);\r\n\r\n\t\treturn ok(backdrop.render(previousDecision));\r\n\t}", "String getPrevious();", "private void previous() {\n if (position > 0) {\n Player.getInstance().stop();\n\n // Set a new position:w\n --position;\n\n ibSkipNextTrack.setImageDrawable(getResources()\n .getDrawable(R.drawable.ic_skip_next_track_on));\n\n try {\n Player.getInstance().play(tracks.get(position));\n } catch (IOException playerException) {\n playerException.printStackTrace();\n }\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_pause_track);\n setCover(Player.getInstance().getCover(tracks.get(position), this));\n\n tvTrack.setText(tracks.get(position).getName());\n tvTrackEndTime.setText(playerUtils.toMinutes(Player.getInstance().getTrackEndTime()));\n }\n\n if (position == 0) {\n setImageDrawable(ibSkipPreviousTrack, R.drawable.ic_skip_previous_track_off);\n }\n }", "private void backToMenu()\n\t{\n\t\t//switch to menu screen\n\t\tgame.setScreen(new MenuScreen(game));\n\t}", "public void goBack() {\n setEditor(currentEditor.getParentEditor());\n }", "public void setPreviousPage(IWizardPage page);", "private void displayPrevious() {\n SharedPreferences filterSetting = getSharedPreferences(\"filterSetting\",0);\n myMostRecentWeekCheckbox.setChecked(filterSetting.getBoolean(\"myMostRecent\",false));\n myDisplayAllCheckbox.setChecked(filterSetting.getBoolean(\"myDisplayAll\",false));\n foMostRecentWeekCheckbox.setChecked(filterSetting.getBoolean(\"foMostRecent\",false));\n foDisplayAllCheckbox.setChecked(filterSetting.getBoolean(\"foDisplayAll\",false));\n myReasonEditText.setText(filterSetting.getString(\"myReason\",null));\n foReasonEditText.setText(filterSetting.getString(\"foReason\",null));\n int mySpinner = filterSetting.getInt(\"mySpinner\",0);\n if (mySpinner != 0){\n myEmotionalStateSpinner.setSelection(mySpinner);\n }\n int foSpinner = filterSetting.getInt(\"foSpinner\",0);\n if (foSpinner != 0){\n foEmotionalStateSpinner.setSelection(foSpinner);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "protected JButton getPrevious()\n {\n return previous;\n }", "public int previousIndex() {\r\n \treturn index - 1; \r\n }", "public void setPrev(String prev){\n\t\tthis.prev = prev;\n\t}", "@Override\r\n\tpublic String prev() {\n\t\tString pre;\r\n\r\n\t\tpre = p.getPrev();\r\n\r\n\t\tif (pre != null) {\r\n\t\t\tthisPrevious = true;\r\n\t\t\tinput(pre);\r\n\t\t}\r\n\t\treturn pre;\r\n\t}", "private JMenuItem getMniBack() {\r\n\t\tif (mniBack == null) {\r\n\t\t\tmniBack = new JMenuItem();\r\n\t\t\tmniBack.setText(\"Back\");\r\n\t\t\tmniBack.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tbtnBack.doClick();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn mniBack;\r\n\t}", "private void moveToPreviousCard() {\r\n\t\t// This is simple enough: Move the card set to the previous\r\n\t\t// card and update the label and database. If we're now on\r\n\t\t// the first card, disable the Previous button and make sure\r\n\t\t// the Next button is always enabled. Then rebuild the card\r\n\t\t// itself so the correct passcodes are displayed.\r\n \tif (cardSet.getLastCard() != Cardset.FIRST_CARD) {\r\n\t\t\tcardSet.previousCard();\r\n\t btnNext.setEnabled(true);\r\n\t\t\tif (cardSet.getLastCard() == Cardset.FIRST_CARD)\r\n\t\t\t\tbtnPrevious.setEnabled(false);\r\n\t\t\t// Save the card set to the database:\r\n\t\t\tDBHelper.saveCardset(cardSet);\r\n\t\t\trebuildCard();\r\n\t lblCardNumber.setText(getResources().getString(R.string.cardview_card_num_prompt).replace(getResources().getString(R.string.meta_replace_token), String.valueOf(cardSet.getLastCard())));\r\n \t}\r\n }", "private void previousButtonActionPerformed() {//GEN-FIRST:event_previousButtonActionPerformed\r\n getPreviousPicture();\r\n }", "public Content getNavLinkPrevious() {\n Content li;\n if (prev != null) {\n Content prevLink = getLink(new LinkInfoImpl(configuration,\n LinkInfoImpl.Kind.CLASS, prev)\n .label(prevclassLabel).strong(true));\n li = HtmlTree.LI(prevLink);\n }\n else\n li = HtmlTree.LI(prevclassLabel);\n return li;\n }", "@Override\n\tpublic void goToBack() {\n\t\tif(uiHomePrestamo!=null){\n\t\tuiHomePrestamo.getHeader().getLblTitulo().setText(constants.prestamos());\n\t\tuiHomePrestamo.getHeader().setVisibleBtnMenu(true);\n\t\tuiHomePrestamo.getContainer().showWidget(1);\n\t\t}else if(uiHomeCobrador!=null){\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tuiHomeCobrador.getContainer().showWidget(2);\n\t\t\tuiHomeCobrador.getUiClienteImpl().cargarClientesAsignados();\n\t\t\tuiHomeCobrador.getUiClienteImpl().reloadTitleCobrador();\n\t\t}\n\t}", "public void setPrev(Position pos) {\n prev = pos;\n }", "public void back(){\n\t\tswitch(state){\n\t\tcase LOGINID:\n\t\t\tbreak; //do nothing, already at top menu\n\t\tcase LOGINPIN:\n\t\t\tloginMenu();\n\t\t\tbreak;\n\t\tcase TRANSACTION:\n\t\t\tbreak; //do nothing, user must enter the choice to log out\n\t\tcase DEPOSIT:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase DEPOSITNOTIFICATION:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAW:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase BALANCE:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAWALNOTIFICATION:\n\t\t\tbreak; //do onthing, user must press ok\n\t\t}\n\t\t\n\t\tcurrentInput = \"\";\n\t}", "public IWizardPage getPreviousPage();", "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "public int previousIndex()\n {\n // TODO: implement this method\n return -1;\n }", "@Nullable\n WizardPage flipToPrevious();", "public K prev();", "public void skipToPrevious() {\n try {\n mSessionBinder.previous(mContext.getPackageName(), mCbStub);\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling previous.\", e);\n }\n }", "public TeacherPage clickPreviousPageButton() {\n previousPage.click();\n return this;\n }", "private void displayPrevious() {\r\n\t\ti--;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "@Override\r\n\t\tpublic E previous() {\n\t\t\tcaret = caret.prev();\r\n\t\t\tif (caret == null)\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\tnextIndex--;\r\n\t\t\treturn caret.n.data[caret.idx];\r\n\t\t}", "public static void showPreviousOptions() {\r\n\t\tGameOptions.bagValue.select(Main.bagValue);\r\n\t\tGameOptions.nilValueTextField.setText(Main.nilValue);\r\n\t\tGameOptions.doubleNilValueTextField.setText(Main.doubleNilValue);\r\n\t\tGameOptions.winScoreTextField.setText(Main.winScore);\r\n\t\tGameOptions.loseScoreTextField.setText(Main.loseScore);\r\n\t}", "public void onClickPreviousNext(int which) {\n switch (which) {\n case 1://previous\n int previous = previousSong();\n playAudio(audioList.get(previous).getData());\n /*new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!isDestroyed()) {\n playAudio(audioList.get(previous).getData());\n }\n }\n }, DELAY_TIME);*/\n break;\n case 2://next\n int next = nextSong();\n playAudio(audioList.get(next).getData());\n /*new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!isDestroyed()) {\n playAudio(audioList.get(next).getData());\n }\n }\n }, DELAY_TIME);*/\n break;\n }\n }", "private Token previous() {\n return tokens.get(current-1);\n }", "public void clickBackButton() {\n\t\tbackButton.click();\n\n\t}", "public void returnToMenu()\n\t{\n\t\tchangePanels(menu);\n\t}", "private Tab getPrevTab() {\n int pos = mTabControl.getCurrentPosition() - 1;\n if (pos < 0) {\n pos = mTabControl.getTabCount() - 1;\n }\n return mTabControl.getTab(pos);\n }", "public void returnToPrev(){\r\n Stage stage = (Stage) exitButton.getScene().getWindow();\r\n stage.close();\r\n }", "public void setPrevious()\n {\n\tint currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex -1);\n\t\n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = lastObject;\n }", "public void prev() {\r\n\t\tif (curr == head)\r\n\t\t\treturn; // No previous element\r\n\t\tLink<E> temp = head;\r\n\t\t// March down list until we find the previous element\r\n\t\twhile (temp.next() != curr)\r\n\t\t\ttemp = temp.next();\r\n\t\tcurr = temp;\r\n\t}", "@Override\r\n\tpublic void onBackPressed()\r\n\t{\r\n\t\tif (flipper.getDisplayedChild() != 0)\r\n\t\t{\r\n\t\t\tflipper.showPrevious();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.onBackPressed();\r\n\t\t}\r\n\t}", "private int previousSong() {\n if (playListAdapter != null) {\n playListAdapter.clickPreviousNext(1);\n }\n serviceBound = false;\n player.stopMedia();\n if (currentSong > 0) {\n currentSong--;\n }\n return currentSong;\n }", "@Override\r\n public int previousIndex() {\r\n if (previous == null) {\r\n return -1;\r\n }\r\n return previousIndex;\r\n }", "protected void showPreviousPage() {\n\t\tshowPage(currPageIndex - 1, Direction.BACKWARD);\n\n\t}", "@Override\n public int previousIndex()\n {\n return idx-1;\n }", "public void back() {\n Views.goBack();\n }", "public void back() {\n\t\tstate.back();\n\t}", "public void navigateToBack() {\n WebDriverManager.getDriver().navigate().back();\n }", "@Override\n\t\tpublic int previousIndex() {\n\t\t\treturn 0;\n\t\t}", "public void backButtonClicked(ActionEvent actionEvent) {\n Stage current = (Stage) locationName.getScene().getWindow();\n\n current.setScene(getPreviousScreen());\n }", "public void prev() {\n\t\tsynchronized (this) {\n\t\t\tint pos = getPreShuffledPos();\n\t\t\tif (pos > 0) {\n\t\t\t\tmPlayPos = mPlayOrder[pos - 1];\n\t\t\t} else {\n\t\t\t\tmPlayPos = mPlayOrder[mPlayListLen - 1];\n\t\t\t}\n\t\t\tstop(false);\n\t\t\tprepareAndPlayCurrent();\n\t\t}\n\t}", "public void setPreviousScene(int scene){\n\t\t_previousScene = scene;\n\t}", "public static void showPreviousSelectedSkin() {\r\n\t\tGameOptions.iowaState.setState(Main.skinIsIowaState);\r\n\t\tGameOptions.iowa.setState(Main.skinIsIowa);\r\n\t\tGameOptions.northernIowa.setState(Main.skinIsNorthernIowa);\r\n\t}", "public void handlePrevCode() {\n int prev = currentIndex - 1;\n if (prev < 0) prev = codeCount-1;\n setCurrentCode(prev);\n }", "public void clickbtnBack() {\n\t\tdriver.findElement(btnBack).click();\n\t}", "public void focusPreviousComponent(Component paramComponent)\n/* */ {\n/* 1365 */ if (paramComponent != null) {\n/* 1366 */ paramComponent.transferFocusBackward();\n/* */ }\n/* */ }" ]
[ "0.7581967", "0.72460973", "0.7209315", "0.7096581", "0.7013322", "0.6989645", "0.695516", "0.6930551", "0.6899134", "0.688716", "0.6815155", "0.6804437", "0.6799682", "0.67931265", "0.67745644", "0.6772918", "0.67424065", "0.66479945", "0.66421807", "0.65914613", "0.65484524", "0.65389967", "0.6514644", "0.6480086", "0.6470148", "0.64643323", "0.64452296", "0.642039", "0.64015234", "0.6383584", "0.6379875", "0.63763887", "0.63606995", "0.6347587", "0.63378465", "0.63370883", "0.6331281", "0.63154936", "0.6314482", "0.6311145", "0.6286617", "0.627938", "0.6276674", "0.6260761", "0.6259628", "0.6255529", "0.6251492", "0.6250874", "0.6248571", "0.62363327", "0.6234475", "0.6231684", "0.62287194", "0.6200468", "0.61965334", "0.6161677", "0.6149072", "0.6147722", "0.6147692", "0.6142756", "0.61388886", "0.61292934", "0.6124287", "0.6118103", "0.611799", "0.61150694", "0.6111963", "0.61064094", "0.6105959", "0.6104894", "0.6096942", "0.6088124", "0.60764235", "0.6054304", "0.60503346", "0.60467786", "0.6036754", "0.6036552", "0.6035567", "0.60233074", "0.6019954", "0.6018823", "0.60176873", "0.59877986", "0.59839594", "0.5974723", "0.59732664", "0.59458894", "0.5939851", "0.59362227", "0.59353036", "0.5934791", "0.593344", "0.5930801", "0.59307295", "0.59214765", "0.5912083", "0.5907478", "0.59032273", "0.58936065" ]
0.75121385
1
Called from the model when its state is changed
public void update(Observable aPongModel, Object arg) { S_PongModel model = (S_PongModel) aPongModel; this.ball = model.getBall(); this.bats = model.getBats(); String s = String.format("%4.2f %4.2f %4.2f %4.2f", ball.getX(), ball.getY(), this.bats[0].getY(), this.bats[1].getY()); left.put(s); right.put(s); //TODO: Send the position of games objects to client. // Now need to send position of game objects to the client // as the model on the server has changed }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void stateChanged() {\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "@Override\n\tpublic void stateChanged() {\n\t\t\n\t}", "private void setModelToChanged() {\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "@Override\n public void stateChanged()\n {\n if (this.systemUpdated)\n {\n inputModelReady = true;\n }\n }", "public void stateChanged( ChangeEvent event )\n {\n \n }", "@Override\r\n public void stateChanged(ChangeEvent e) {\n }", "@Override\n\t\t\t\tpublic void modelStructureChanged() {\n\n\t\t\t\t}", "@Override\n public void cycleStarted(ModelEvent event)\n {\n checkForChange();\n }", "@Override\n\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\n\t}", "public abstract void modelStructureChanged();", "public void setState(State state) { model.setState(state); }", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t}", "private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}", "public abstract void stateChanged(STATE state);", "public synchronized void setChanged() {\n super.setChanged();\n }", "@Override\n public void setChanged() {\n set(getItem());\n }", "public void stateChanged(ChangeEvent e) {\n isChanged = true;\n refreshComponents();\n }", "@Override\n public void onChanged() {\n }", "@Override\n\t\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\t\tif (!updating && button.isSelected()) {\n\t\t\t\t\t\tmodel.set(db);\n\t\t\t\t\t}\n\t\t\t\t\tif (!useRadioButtons) {\n\t\t\t\t\t\tlabel.setForeground(button.isSelected() ? selectedForeground : unselectedForeground);\n\t\t\t\t\t}\n\t\t\t\t}", "public void stateChanged (ChangeEvent e)\n {\n }", "void onModelChange();", "public void itemStateChanged(ItemEvent e){\n model.setSolution();\n view.update();\n\n }", "@Override\n public void onChange(boolean selfChange) {\n mModel.resetLoadedState(false, true);\n mModel.startLoaderFromBackground();\n }", "@Override\n\tpublic void setChanged() {\n\t\tthis.changed = true;\n\t}", "@Override\r\n\t\tpublic void userModelChanged() \r\n\t\t{\n\t\t\t\r\n\t\t}", "public final synchronized void setChanged() {\n\t\tsuper.setChanged ();\n }", "protected synchronized void setChanged() {\n changed = true;\n }", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t\tlijst = imagemodel.getLijst();\n\t\trepaint();\n\t}", "@Override\n public void stateChanged(javax.swing.event.ChangeEvent e) {\n }", "public void stateChanged(ChangeEvent e) {\n }", "public void updateState();", "public void stateChanged (ChangeEvent event)\n {\n ((GroupItem)gbox.getSelectedItem()).configChanged();\n }", "abstract public void updateState();", "protected void handleModelChanged() {\n\t\t// refresh connections on the source edit part!\n\t\tif (isActive()) {\n//\t\t\tLink link = (Link)getModel();\n//\t\t\tEObject sourceActivity = FlowLinkUtil.getLinkSource(link); \n//\t\t\tif (sourceActivity != null) {\n//\t\t\t\tObject editPart = getViewer().getEditPartRegistry().get(sourceActivity);\n//\t\t\t\tif (editPart instanceof ActivityEditPart) {\n//\t\t\t\t\t((ActivityEditPart)editPart).refresh();\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tEObject targetActivity = FlowLinkUtil.getLinkTarget(link); \n//\t\t\tif (targetActivity != null) {\n//\t\t\t\tObject editPart = getViewer().getEditPartRegistry().get(targetActivity);\n//\t\t\t\tif (editPart instanceof ActivityEditPart) {\n//\t\t\t\t\t((ActivityEditPart)editPart).refresh();\n//\t\t\t\t}\n//\t\t\t}\n\t\t\t// If property name is children, refresh children.\n\t\t\t// If property name is size or location, refresh visuals.\n\t\t\trefreshVisuals();\n\t\t}\n\t}", "void updateModel() {\n updateModel(false);\n }", "@Override\n public void stateChanged(ChangeEvent e) {\n model.generateGridWithSpecifiedProblemDifficulty(view.getSpinnerValue());\n view.updateGridPanel(model.getGrid(), model.getAgentLocation());\n }", "public void update(){\n\t\tSystem.out.println(\"Return From Observer Pattern: \\n\" + theModel.getObserverState() \n\t\t+ \"\\n\");\n\t}", "public void markChanged()\n \t{\n \t\tbChanged=true;\n \t}", "public void stateChanged(ChangeEvent e) {\n\t\tupdatePits();\n\t\tSystem.out.println(\"Player 0 score: \" + model.getMancalas()[0]);\n\t\tSystem.out.println(\"Player 1 score: \" + model.getMancalas()[1]);\n\t\tleftScore.setText( Integer.toString(model.getMancalas()[1]));\n\t\trightScore.setText( Integer.toString(model.getMancalas()[0]));\n\t\tSystem.out.println(\"It is now player: \" + model.getPlayer() + \"'s turn\");\n\t\t\n\t}", "private void updateStateUiAfterSelection() {\n stageManager.updateStateUi();\n eventBus.publish(EventTopic.DEFAULT, EventType.SELECTED_OBJECT_CHANGED);\n eventManager.fireEvent(EngineEventType.SELECTED_OBJECT_CHANGED);\n }", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}", "public void modelPropertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}", "protected void updated() {\n if (state.isSynced()) {\n this.state.setState(ENodeState.Updated);\n }\n }", "public void changed() {\n this.fireContentsChanged(this, 0, this.getSize() - 1);\n }", "@Override\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tsuper.onChange(selfChange);\n\t\t}", "public void setMobHasChanged() {\r\n\t\t// method that informs the view(the observer) of the changes\r\n\t\tthis.setChanged();\r\n\t\tthis.notifyObservers();\r\n\t\r\n\t}", "public void notifyChange()\r\n {\r\n setChanged();\r\n notifyObservers();\r\n }", "public void notifyModelUpdated()\n {}", "@Override\n public void stateChanged(ChangeEvent ce) {\n refreshKeys();\n }", "@Override\n public void startup(Model model) {\n model.updateModelRep(stateID);\n }", "public void isChanged()\n\t{\n\t\tchange = true;\n\t}", "public void stateChanged(ChangeEvent e) {\n\n (model.getInterpol()).setBezierIterationen(((JSlider) e.getSource()).getValue());\n }", "void currentStateChanged();", "public void stateChanged(ChangeEvent event)\r\n {\r\n fireChangeEvent(event);\r\n }", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "public State getState() { return model.getState(); }", "void valueChanged(CalcModel model);", "void valueChanged(CalcModel model);", "protected void changeValue() {\n \tif(value == null)\n \t\tvalue = true;\n \telse if(!value) { \n \t\tif (mode == Mode.THREE_STATE)\n \t\t\tvalue = null;\n \t\telse\n \t\t\tvalue = true;\n \t}else\n \t\tvalue = false;\n \t\n \tsetStyle();\n \t\n \tValueChangeEvent.fire(this, value);\n }", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "@Override\n public void onChange(boolean selfChange) {\n onChange(selfChange, null);\n }", "@Override\r\n\tpublic void valuesChanged() {\r\n\t}", "@Override\n public void changed( Change change ) {\n if ( !( change.isSelected()\n && change.isForInstanceOf( Node.class )\n && change.isForProperty( \"other\" ) ) ) {\n if ( change.isUpdated() ) {\n setFlowUpdated( true );\n }\n super.changed( change );\n }\n }", "public void onChanged() {\n }", "@Override\n public void onRestate() {\n }", "public void getState();", "private void changed() {\n // Ok to have a race here, see the field javadoc.\n if (!changed)\n changed = true;\n }", "public void stateChanged(ChangeEvent e)\r\n\t\t\t\t\t{\n\t\t\t\t\t\ttheGridView.showWalkTiles(showWalkTilesButton.isSelected());\r\n\t\t\t\t\t}", "public void willbeUpdated() {\n\t\t\n\t}", "public void stateChanged() {\r\n if (nextBigStepButton != null) {\r\n nextBigStepButton.setEnabled(!automata.isAtEnd());\r\n }\r\n if (prevBigStepButton != null) {\r\n prevBigStepButton.setEnabled(!automata.isAtStart());\r\n }\r\n\r\n nextStepButton.setEnabled(!automata.isAtEnd());\r\n prevStepButton.setEnabled(!automata.isAtStart());\r\n restartButton.setEnabled(!automata.isAtStart());\r\n\r\n autoButton.setState(controller.getExecutionMode());\r\n autoButton.setEnabled(!automata.isAtEnd());\r\n }", "@Override\n public void propertyChange(PropertyChangeEvent evt) {\n modelToView(handle);\n }", "@Override\n\tpublic boolean valueChanged() {\n\t\treturn false;\n\t}", "public void update() {\n tableChanged(new TableModelEvent(this));\n }", "@Override\n\t\t\tpublic void notify(Notification n) {\n\t\t\t\tif (isActive()) handleModelChanged();\n\t\t\t\trefreshAdapters();\n\t\t\t}", "void instanceChanged();", "@Override\n\t\t\tpublic void onChanged(ListChangeListener.Change<? extends PR1Model.Shape> e) { \n\t\t\t\t\n\t\t\t\trepaint(); \n\t\t\t\treTable();\n\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\n\t\t\t}", "final void resetChanged() {\n this.changed = false;\n }", "@Override\n public void actionPerformed (ActionEvent e) {\n fireChanged();\n }", "public void changeState() {\n if (!isDead) {\n Bitmap temp = getBitmap();\n setBitmap(stateBitmap);\n stateBitmap = temp;\n }\n }", "@Override\n\tpublic void adjust() {\n\t\tstate = !state;\n\t}", "public void stateChanged(ChangeEvent e){\n\r\n if (fLastEdit!=this){ // just a precaution against stateChange getting called many times\r\n\r\n if (fLastEdit != null) // kill the previous one so there's only one undo\r\n fLastEdit.die(); // don't kill ourselves\r\n\r\n fLastEdit = this;\r\n // fUndoListener.undoableEditHappened(new UndoableEditEvent(TShapePanel.this, this)); // tell the listener.\r\n\r\n tellListeners(new UndoableEditEvent(TShapePanel.this,this)); // tell the listeners.\r\n\r\n }\r\n\r\n }", "public void stateChanged(ChangeEvent e)\n {\n simulation.setSpeed(speedSlider.getValue());\n }", "@Override\n protected void onDataChanged() {\n }", "private void refreshState() {\n exposureNotificationViewModel.refreshState();\n exposureNotificationViewModel.refreshNotificationsEnabledState(this);\n }", "protected void modelChanged() {\n // create a view hierarchy\n ViewFactory f = rootView.getViewFactory();\n Document doc = editor.getDocument();\n Element elem = doc.getDefaultRootElement();\n setView(f.create(elem));\n }", "@Override\n public void layoutStateChanged(LayoutStateChange.Event evt) {\n setActive(!evt.active);\n // if the layout model is finished, then rebuild the spatial data structure\n if (!evt.active) {\n recalculate();\n getLayoutModel().getModelChangeSupport().fireModelChanged(); // this will cause a repaint\n }\n }", "public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\t\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\t\tsize = (int) spinnerModel.getValue();\r\n\t\t\t\t\tcanvas.repaint();\r\n\t\t\t\t}", "@Override\n protected void incrementStates() {\n\n }", "public ConvergenceInputModelState()\n {\n this.inputModelReady = false;\n this.systemUpdated = false;\n }", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "@Override\n\t\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t\t\trealArrs.clear();\n\t\t\t\t\t// remove old temp\n\t\t\t\t\tif (icoTemp != null)\n\t\t\t\t\t\ticoTemp = null;\n\t\t\t\t\t// reborn\n\t\t\t\t\tif (tfModel.equals(\"\"))\n\t\t\t\t\t\ttfModel.setText(\"{}\");\n\t\t\t\t\treBorn(tfModel.getText());\n\t\t\t\t\t// hide dialog\n\t\t\t\t\tdialog.setVisible(false);\n\t\t\t\t}", "long getStateChange();", "@Override\n public void eventsChanged() {\n }", "@Override\n\t\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\t\tchange();\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t}", "void changed(State state, Exception e);", "@Override\n\tpublic void columnStateChanged(ColumnModel model) {\n\t\tvarManager.reloadIfRequired();\n\t}" ]
[ "0.7915317", "0.7783701", "0.7447435", "0.72595453", "0.7241447", "0.723312", "0.72169906", "0.7214289", "0.7202637", "0.7167521", "0.7123513", "0.7101616", "0.70500386", "0.6998576", "0.6997062", "0.699386", "0.6947495", "0.6930394", "0.69067425", "0.6894618", "0.68834996", "0.68760604", "0.6845937", "0.6839897", "0.6838027", "0.68351376", "0.6760089", "0.6734137", "0.67330086", "0.67161435", "0.66924006", "0.66702855", "0.6597022", "0.6595214", "0.65535456", "0.6547302", "0.65444875", "0.65428424", "0.654101", "0.64961445", "0.649123", "0.649123", "0.649123", "0.649123", "0.6469689", "0.6451194", "0.644381", "0.6425742", "0.64250284", "0.6418636", "0.64143026", "0.6396188", "0.63921976", "0.63917506", "0.63891786", "0.63869625", "0.63567185", "0.6345909", "0.63113713", "0.629779", "0.629779", "0.62949187", "0.62944674", "0.62842655", "0.6275786", "0.6274263", "0.6259946", "0.62505627", "0.62397534", "0.6239214", "0.62390924", "0.62306225", "0.6223799", "0.6219753", "0.621614", "0.6212585", "0.6212023", "0.6203379", "0.6198074", "0.6190995", "0.6171539", "0.61714214", "0.61601853", "0.61461854", "0.6141576", "0.6140807", "0.6136354", "0.6122338", "0.6118813", "0.61155456", "0.6113316", "0.61061585", "0.6102316", "0.61013013", "0.61009425", "0.6099558", "0.60978", "0.60954255", "0.6094535", "0.6083849", "0.6077975" ]
0.0
-1
NetConnectionListener invoke server method createMeeting
public static void invokeMethodFormRed5(String toUserId) { Date nowDate = new Date(); String time = nowDate.getTime() + "" + (int)((Math.random()*100)%100); message = time; connection.call("createMeeting", responder, "", toUserId, message); Log.d("DEBUG", "call createMeeting"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ConferenceScheduleBuilderService startNetworking();", "ConferenceScheduleBuilderService createEventsFromNetworkToEnd();", "ConferenceScheduleBuilderService startEvent();", "ConferenceScheduleBuilderService createEventsFromLunchToNetwork();", "void AddMeeting (Meeting m) throws Exception;", "public void onJoinMeetingButtonClick(android.view.View view) {\n // Hide keyboard\n InputMethodHelper.hideSoftKeyBoard(this.getApplication().getApplicationContext(),\n view.getWindowToken());\n\n if (meetingJoined) {\n // Leave the meeting.\n try {\n this.anonymousConversation.leave();\n this.meetingJoined = false;\n this.updateUiState();\n\n } catch (SFBException e) {\n e.printStackTrace();\n }\n } else {\n //Join the meeting.\n // Get the display name.\n final android.widget.TextView displayNameTextView =\n (android.widget.TextView) findViewById(R.id.displayNameEditTextId);\n\n // Get the meeting uri\n final android.widget.EditText joinMeetingEditText =\n (android.widget.EditText) findViewById(R.id.meetingUriEditTextId);\n String meetingUriString = joinMeetingEditText.getText().toString();\n URI meetingUri = URI.create(meetingUriString);\n\n // Join meeting and monitor conversation state to determine meeting join completion.\n try {\n\n // Set the default device to Speaker\n //this.devicesManager.setActiveEndpoint(DevicesManager.Endpoint.LOUDSPEAKER);\n\n // To join an Online meeting use the discover URL method. Please refer the documentation for\n // the overall procedure of getting the discover URL and authorization token for a meeting.\n //\n // final URL discoverUrl = new URL(\"https://meetings.lync.com/platformService/discover?...\");\n // final String authToken = \"psat=...\";\n // this.anonymousSession = this.application.joinMeetingAnonymously(\n // displayNameTextView.getText().toString(), discoverUrl, authToken);\n\n this.anonymousSession = this.application.joinMeetingAnonymously(\n displayNameTextView.getText().toString(), meetingUri);\n\n this.anonymousConversation = this.anonymousSession.getConversation();\n SFBDemoApplication application = (SFBDemoApplication)getApplication();\n application.setAnonymousConversation(this.anonymousConversation);\n\n // Conversation begins in Idle state. It will move from Idle->Establishing->InLobby/Established\n // depending on meeting configuration.\n // We will monitor property change notifications for State property.\n // Once the conversation is Established, we will move to the next activity.\n this.conversationPropertyChangeListener = new ConversationPropertyChangeListener();\n this.anonymousConversation.addOnPropertyChangedCallback(this.conversationPropertyChangeListener);\n } catch (SFBException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\r\n\t\tpublic void onResult(Object arg0) {\n\t\t\tSystem.out.println(\"Method createMeeting result: \" + arg0);\r\n\t\t\tcallback_createMeeting();\r\n\t\t}", "public void doCollectMeeting() {\n\t}", "public static void createEvent(String token){\n ensureGraphClient(token);\n\n LinkedList<Option> requestOptions = new LinkedList<Option>();\n //requestOptions.add(new HeaderOption(\"Authorization\", \"Bearer nupl9.C5rb]aO5:yvT:3L.TKcH7tB1Im\" ));\n\n // Participantes:\n LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();\n Attendee mentor = new Attendee();\n Attendee mentorado = new Attendee();\n\n EmailAddress mentorMail = new EmailAddress();\n mentorMail.address = \"dwlima@stefanini.com\";\n mentorMail.name = \"Daniell Wagner\";\n mentor.emailAddress = mentorMail;\n\n EmailAddress mentoradoMail = new EmailAddress();\n mentoradoMail.address = \"gmcarneiro@stefanini.com\";\n mentoradoMail.name = \"Guilherme Carneiro\";\n mentorado.emailAddress = mentoradoMail;\n\n mentor.type = AttendeeType.REQUIRED;\n mentorado.type = AttendeeType.REQUIRED;\n\n attendeesList.add(mentor);\n attendeesList.add(mentorado);\n\n // Evento:\n Event event = new Event();\n event.subject = \"Mentoria com \" + mentor.emailAddress.name;\n\n ItemBody body = new ItemBody();\n body.contentType = BodyType.HTML;\n body.content = \"\" +\n \"<b>Mentoria sobre SCRUM</b> <br>\" +\n \"Olá, \" + mentorado.emailAddress.name + \" <br> \" +\n \"Você tem uma mentoria marcada com o mentor \"\n + mentor.emailAddress.name + \"!!\";\n\n event.body = body;\n\n DateTimeTimeZone start = new DateTimeTimeZone();\n start.dateTime = \"2020-03-26T16:00:00\";\n start.timeZone = \"Bahia Standard Time\";\n event.start = start;\n\n DateTimeTimeZone end = new DateTimeTimeZone();\n end.dateTime = \"2020-03-26T18:00:00\";\n end.timeZone = \"Bahia Standard Time\";\n event.end = end;\n\n Location location = new Location();\n location.displayName = \"Stefanini Campina Grande\";\n event.location = location;\n\n event.attendees = attendeesList;\n\n try {\n graphClient.me().calendar().events()\n .buildRequest()\n .post(event);\n }catch(Exception e) {\n\n System.out.println(\"Deu águia: \");\n e.printStackTrace();\n }\n }", "ConferenceScheduleBuilderService startLunch();", "public void conectServer() {\n\n\t}", "ConferenceScheduleBuilderService createEventsFromStartToLunch();", "private void createAndListen() {\n\n\t\t\n\t}", "private void establishServerConnection() {\n int lb_port = Integer.parseInt(gui.getLBPort_Text().getText());\n gui.getLBPort_Text().setEnabled(false);\n String lb_ip = gui.getLBIP_Text().getText();\n gui.getLBIP_Text().setEnabled(false);\n int server_port = Integer.parseInt(gui.getServerPort_Text().getText());\n gui.getServerPort_Text().setEnabled(false);\n String server_ip = gui.getServerIP_Text().getText();\n gui.getServerIP_Text().setEnabled(false);\n obtainId(server_ip, server_port);\n lbInfo = new ConnectionInfo(lb_ip, lb_port, 3);\n\n if (connection.startServer(server_port)) {\n connectionHandler = new ServerConnections(connection, lbInfo, requestsAnswered, processingRequests, gui.getCompleted_Text(), gui.getProcessing_Text());\n new Thread(connectionHandler).start();\n\n requestServerId();\n scheduler.scheduleAtFixedRate(heartbeat, 10, 10, TimeUnit.SECONDS);\n } else {\n gui.getLBPort_Text().setEnabled(true);\n gui.getLBIP_Text().setEnabled(true);\n gui.getServerPort_Text().setEnabled(true);\n gui.getServerIP_Text().setEnabled(true);\n gui.getButton_Connect().setEnabled(true);\n }\n }", "public void enterConference();", "void connectionCreated();", "public void task() {\n try {\n Socket peerSocket = listeningSocket.accept(); // waits here until something tries to connect\n if (peerSocket != null) { addPeer(peerSocket); }\n } catch (IOException e) {\n throw new RuntimeException(\"Error accepting client connection\", e);\n }\n }", "void receiveTransaction(IMeeting meeting, String userId);", "public void connect() {\n BotConnector newBot = new BotConnector();\n newBot.setEmail(this.email);\n newBot.setAuthenticationKey(key);\n newBot.setBotName(name);\n newBot.setRoom(room);\n //Start Listener Thread\n this.serverListener = new Thread(newBot, \"serverListener\");\n this.serverListener.start();\n }", "public Meeting() {}", "public interface AnyRTCMeetEvents {\n /**Join meet OK\n * @param strAnyrtcId\n */\n public void OnRtcJoinMeetOK(String strAnyrtcId);\n\n /** Join meet Failed\n * @param strAnyrtcId\n * @param code\n * @param strReason\n */\n public void OnRtcJoinMeetFailed(String strAnyrtcId, AnyRTC.AnyRTCErrorCode code, String strReason);\n\n /** Leave meet\n * @param code\n */\n public void OnRtcLeaveMeet(int code);\n\n\n}", "AddFriend.AToServer getAddFriendAToServer();", "Notification createNewAppointmentNotification(Appointment appointment);", "Client join(Participant participant);", "public interface NogServer extends Remote {\n \n /**\n * getParticipants\n * @return list of participants\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public ArrayList<Participant> getParticipants() throws RemoteException;\n \n /**\n * putParticipants\n * @param tableParticipants list of participantDTO\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void putParticipants(ArrayList<ParticipantDTO> tableParticipants) throws RemoteException;\n \n /**\n * register a client\n * @param client remote client\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void registerClient(Client client) throws RemoteException;\n \n /**\n * deRegister client\n * @param client remote client\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void deRegisterClient(Client client) throws RemoteException;\n \n /**\n * Edit participant\n * @param p edited participant\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void editParticipant(ParticipantDTO p) throws RemoteException;\n \n /**\n * Add new participant\n * @param p participant to add\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void addParticipant(ParticipantDTO p) throws RemoteException;\n \n /**\n * Delete participant\n * @param p participant to delete\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void deleteParticipant(ParticipantDTO p) throws RemoteException;\n \n}", "@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n log.debug(START_COMMAND);\n MeetingService meetingService = new MeetingServiceImpl(new MeetingDaoImpl());\n //inserts meeting with new time and deletes previous\n if (Constant.POST_METHOD.equalsIgnoreCase(request.getMethod())) {\n log.debug(START_CASE_POST);\n long previousMeetingId = Long.parseLong(request.getParameter(MEETING_ID));\n log.debug(MEETING_ID + Constant.POINTER + previousMeetingId);\n Meeting previousMeeting = meetingService.getById(previousMeetingId);\n LocalDateTime dateTime = LocalDateTime.parse(request.getParameter(Constant.SLOT));\n log.debug(SLOT_DATETIME + Constant.POINTER + dateTime);\n //create meeting with new parameters\n Meeting newMeeting = new Meeting();\n newMeeting.setCondition(Condition.ACTIVE);\n newMeeting.setCatalog(previousMeeting.getCatalog());\n newMeeting.setClient(previousMeeting.getClient());\n newMeeting.setDateTime(dateTime);\n log.debug(String.format(NEW_MEETING_PARAMETERS,\n newMeeting.getCondition(),\n newMeeting.getCatalog(),\n newMeeting.getClient().getName(),\n newMeeting.getDateTime()));\n //delete old meeting\n if (meetingService.insert(newMeeting) != null) {\n meetingService.deleteById(previousMeetingId);\n }\n log.debug(END_CASE_POST);\n return Path.COMMAND_ADMIN_CABINET;\n\n } else {\n //create schedule\n log.debug(START_CASE_GET);\n long meetingId = Long.parseLong(request.getParameter(SLOT_ID));\n Meeting meeting = meetingService.getById(meetingId);\n List<Meeting> meetingList = meetingService.getAll();\n Master master = meeting.getCatalog().getMaster();\n long masterId = master.getId();\n meetingList.removeIf(nextMeeting -> nextMeeting.getCatalog().getMaster().getId() != masterId);\n List<LocalDateTime> emptySchedule = createEmptyFutureSchedule(Constant.MAX_DAYS_FOR_REGISTER);\n Iterator<LocalDateTime> timeIterator = emptySchedule.iterator();\n while (timeIterator.hasNext()) {\n LocalDateTime time = timeIterator.next();\n for (Meeting m : meetingList) {\n if (time.equals(m.getDateTime())) {\n log.debug(DELETED_TIME_SLOT + Constant.POINTER + time);\n timeIterator.remove();\n }\n }\n }\n\n request.setAttribute(Constant.SCHEDULE, emptySchedule);\n request.setAttribute(Constant.MEETING, meeting);\n log.debug(END_CASE_GET);\n log.debug(END_COMMAND);\n return Path.CHANGE_TS_PATH;\n }\n }", "public int addMeeting(Meeting meeting)\n throws Exception\n {\n Connection connection = null;\n int meetingId = -1;\n \n if(meeting == null)\n return -1;\n \n try\n {\n connection = ConnectionManager.getConnection();\n PreparedStatement pstmt = connection.prepareStatement(\"insert into meetings (project_id,title,start_time,end_time,meeting_notes,created_by,created_on) values (?,?,?,?,?,?,?)\", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n pstmt.setInt(1, meeting.getProjectId());\n pstmt.setString(2, meeting.getTitle());\n \n // start time\n if(meeting.getStartTime() != null)\n { \n pstmt.setTimestamp(3, new Timestamp(meeting.getStartTime().getTimeInMillis()));\n }\n else\n { \n pstmt.setDate(3, null);\n }\n \n // end time\n if(meeting.getEndTime() != null)\n { \n pstmt.setTimestamp(4, new Timestamp(meeting.getEndTime().getTimeInMillis()));\n }\n else\n { \n pstmt.setDate(4, null);\n }\n \n // TODO: Add meeting notes.\n pstmt.setString(5, null);//meeting.getMeetingNotes());\n pstmt.setInt(6, meeting.getCreatedBy());\n pstmt.setTimestamp(7, new Timestamp(Calendar.getInstance().getTimeInMillis()));\n \n pstmt.executeUpdate();\n \n pstmt = connection.prepareStatement(\"select IDENTITY_VAL_LOCAL() from meetings\", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet rs = pstmt.executeQuery();\n meetingId = -1;\n if(rs.first())\n {\n meetingId = rs.getInt(1);\n \n //\n // Meeting Attendees...\n //\n if(meeting.getAttendees() != null && meeting.getAttendees().length > 0)\n {\n \tint attendees[] = meeting.getAttendees();\n \tpstmt = connection.prepareStatement(\"insert into meeting_attendees (meeting_id, account_id) values (?,?)\");\n \tfor(int i = 0; i < attendees.length; i++)\n \t{\n pstmt.setInt(1, meetingId);\n \t\tpstmt.setInt(2, attendees[i]);\n \t\tpstmt.addBatch();\n \t}\n \tpstmt.executeBatch();\n }\n \n //\n // Agenda Items\n //\n if(meeting.getAgendaItems() != null && meeting.getAgendaItems().length > 0)\n {\n MeetingAgendaItem agendaItems[] = meeting.getAgendaItems();\n pstmt = connection.prepareStatement(\"insert into meeting_agenda_items (meeting_id, title, notes, ordinal) values (?,?,?,?)\");\n // just leave notes null until we figure out how to present it.\n for(int i = 0; i < agendaItems.length; i++)\n {\n pstmt.setInt(1, meetingId);\n pstmt.setString(2, agendaItems[i].getTitle());\n pstmt.setString(3, null);\n pstmt.setInt(4, i);\n \n pstmt.addBatch();\n }\n pstmt.executeBatch();\n }\n \n //\n // Followup Items\n //\n if(meeting.getFollowupItems() != null && meeting.getFollowupItems().length > 0)\n {\n MeetingFollowupItem followupItems[] = meeting.getFollowupItems();\n pstmt = connection.prepareStatement(\"insert into meeting_followup_items (meeting_id, title, text, ordinal) values (?, ?, ?, ?)\");\n \n for(int i = 0; i < followupItems.length; i++)\n {\n pstmt.setInt(1, meetingId);\n //pstmt.setString(2, followupItems[i]);\n pstmt.setString(3, null);\n pstmt.setInt(4, i);\n \n pstmt.addBatch();\n }\n pstmt.executeBatch();\n }\n }\n \n rs.close();\n pstmt.close();\n }\n catch(SQLException se)\n {\n se.printStackTrace();\n }\n catch(Exception e)\n {\n \te.printStackTrace();\n }\n finally\n {\n try\n {\n if(connection != null)\n {\n connection.close();\n }\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n \n return meetingId;\n }", "ConferenceScheduleBuilderService endLunch();", "void onConnect(IServerConnection<_ATTACHMENT> connection);", "void attach (ObservateurGenerateurAsync observateur);", "EndPoint createEndPoint();", "private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }", "void connectionActivity(ConnectionEvent ce);", "ChatServer (int port) throws IOException \n {\n\t//create new server socket \n ServerSocket server = new ServerSocket(port);\n \n //confirmation message that server is connected\n System.out.println(\"The Chat Server is now connected to port \" + port + \".\");\n System.out.println(\"Waiting for clients to connect...\");\n\n //looks for new clients and adds them to linkedList\n while (true) \n {\n client = server.accept();\n linkedList.add(client);\n \n //creates new participant(ChatClient) in discussion\n //with associated socket as argument\n ChatClient chatterer = new ChatClient(client);\n \n //starts the thread\n chatterer.start();\n \n //prints message on server console including # of the client is and\n //where they are connected from\n System.out.println(\"New client #\" + linkedList.size() + \" on client's port \" \n \t\t + client.getPort());\n }\n }", "private void sendEventToServer() throws UnknownHostException, IOException {\n \t\t\n \t\tSocket socket = null; \n \t\t\n \t\tsocket = new Socket(Constants.ServerIp, Constants.Port);\n \t\t\n \t\tObjectOutputStream serializer = null;\n \t\t\n \t\tserializer = new ObjectOutputStream(socket.getOutputStream());\n \t\t//TODO: Send a message to server for new Event\n \t\t\n \t\tMessageType t = MessageType.newPubEventMessage;\n \t\tserializer.writeObject(t);\n \t\tserializer.writeObject(event);\n \t\tserializer.flush();\n \t\t//TODO: Send the event\n \t\t//TODO: Send to Pending Screen\n \t}", "private void sendGroupInit() {\n \t\ttry {\n \t\t\tmyEndpt=new Endpt(serverName+\"@\"+vsAddress.toString());\n \n \t\t\tEndpt[] view=null;\n \t\t\tInetSocketAddress[] addrs=null;\n \n \t\t\taddrs=new InetSocketAddress[1];\n \t\t\taddrs[0]=vsAddress;\n \t\t\tview=new Endpt[1];\n \t\t\tview[0]=myEndpt;\n \n \t\t\tGroup myGroup = new Group(\"DEFAULT_SERVERS\");\n \t\t\tvs = new ViewState(\"1\", myGroup, new ViewID(0,view[0]), new ViewID[0], view, addrs);\n \n \t\t\tGroupInit gi =\n \t\t\t\tnew GroupInit(vs,myEndpt,null,gossipServers,vsChannel,Direction.DOWN,this);\n \t\t\tgi.go();\n \t\t} catch (AppiaEventException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} catch (NullPointerException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} catch (AppiaGroupException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} \n \t}", "public void waitingForPartner();", "public void onConnected() {\n userName = conn.getUsername();\n tellManagers(\"I have arrived.\");\n tellManagers(\"Running {0} version {1} built on {2}\", BOT_RELEASE_NAME, BOT_RELEASE_NUMBER, BOT_RELEASE_DATE);\n command.sendCommand(\"set noautologout 1\");\n command.sendCommand(\"set style 13\");\n command.sendCommand(\"-notify *\");\n Collection<Player> players = tournamentService.findScheduledPlayers();\n for (Player p : players) {\n command.sendCommand(\"+notify {0}\", p);\n }\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_ARRIVED);\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_LEFT);\n\n Runnable task = new SafeRunnable() {\n\n @Override\n public void safeRun() {\n onConnectSpamDone();\n }\n };\n //In 2 seconds, call onConnectSpamDone().\n scheduler.schedule(task, 4, TimeUnit.SECONDS);\n System.out.println();\n }", "public void appointmentPost(String patientId, String owner, String notes, String date,\n String appointmentType, String endTime, String startTime){\n Callback<Enrollment> callback = new Callback<Enrollment>() {\n @Override\n public void success(Enrollment serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEnrollmentServerEvent(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.postAppointments(patientId, owner, notes, date, appointmentType,\n endTime, startTime, callback);\n }", "public void triggerServerTask(TransferrableObject to) throws IOException {\n\t\tna.message(\"-------------------------------\");\n\t\tString ip = serverAddress.getHostAddress();\n\t\tMainWindow.mw.addConnection(UsefulMethods.getShortNameOfIP(ip), ip,\n\t\t\t\tportNumber);\n\t\tconnectToServer();\n\t\tprocessTransferrableObject(to);\n\t\tMainWindow.mw.removeConnection(ip, portNumber);\n\t}", "@Test\n public Conversation testSendChatInvitation() throws Exception\n {\n List<ParseUser> users = ASDPlaydateUser.getQuery().find();\n\n //get two results to use for test\n ASDPlaydateUser initiator = (ASDPlaydateUser) users.get(0);\n assertNotNull(initiator);\n\n ASDPlaydateUser receiver = (ASDPlaydateUser) users.get(1);\n assertNotNull(receiver);\n\n //start a test broadcast\n DateTime expireDate = DateTime.now().plusMinutes(60);\n ParseGeoPoint location = new ParseGeoPoint(TEST_LAT, TEST_LON);\n\n Broadcast broadcast = new Broadcast(initiator, location, expireDate);\n broadcast.save();\n\n Conversation convo = new Conversation(initiator, receiver, Conversation.Status.PENDING, broadcast.getExpireDate());\n convo.save();\n\n String lastID = convo.getObjectId();\n\n Conversation convoFromDb = getConversation(lastID);\n\n assertTrue(convoFromDb.getExpireDate().isAfterNow());\n assertTrue(convo.getExpireDate().equals(convoFromDb.getExpireDate()));\n assertTrue(convoFromDb.getInitiator().equals(convo.getInitiator()));\n assertTrue(convoFromDb.getReceiver().equals(convo.getReceiver()));\n return convo;\n }", "@Test(\tdescription = \"Create a basic appointment\",\n\t\t\tgroups = { \"sanity\" }\n\t)\n\tpublic void CheckApptCreatedOnServer() throws HarnessException {\n\t\tAppointmentItem appt = new AppointmentItem();\n\t\tappt.setSubject(\"appointment\" + ZimbraSeleniumProperties.getUniqueString());\n\t\tappt.setContent(\"content\" + ZimbraSeleniumProperties.getUniqueString());\n\t\tappt.setStartTime(new ZDate(2014, 12, 25, 12, 0, 0));\n\t\tappt.setEndTime(new ZDate(2014, 12, 25, 14, 0, 0));\n\n\n\t\t// Open the new mail form\n\t\tFormApptNew apptForm = (FormApptNew) app.zPageCalendar.zToolbarPressButton(Button.B_NEW);\n\t\tZAssert.assertNotNull(apptForm, \"Verify the new form opened\");\n\n\t\t// Fill out the form with the data\n\t\tapptForm.zFill(appt);\n\n\t\t// Send the message\n\t\tapptForm.zSubmit();\n\t\t\t\n\t\t//verify toasted message 'group created' \n String expectedMsg =\"Appointment Created\";\n ZAssert.assertStringContains(app.zPageMain.zGetToaster().zGetToastMessage(),\n \t\t expectedMsg , \"Verify toast message '\" + expectedMsg + \"'\");\n \n\t\t\n\t\tverifyApptCreatedOnServer(appt);\n\t}", "@Override\n public void setMeeting(Meeting meeting) {\n }", "public void addNotify()\n { \n super.addNotify(); // creates the peer\n startGame(); // start the thread\n }", "ConferenceScheduleBuilderService endEvent();", "public void sendeLobby();", "public void connectedTo(ServerDescriptor desc);", "RemoteEvent createRemoteEvent();", "private void createOffer() {\n// showToast(\"createOffer\");\n Log.d(TAG, \"createOffer: \");\n sdpConstraints = new MediaConstraints();\n sdpConstraints.mandatory.add(\n new MediaConstraints.KeyValuePair(\"OfferToReceiveAudio\", \"true\"));\n sdpConstraints.mandatory.add(\n new MediaConstraints.KeyValuePair(\"OfferToReceiveVideo\", \"true\"));\n localPeer.createOffer(new CustomSdpObserver(\"localCreateOffer\") {\n @Override\n public void onCreateSuccess(SessionDescription sessionDescription) {\n super.onCreateSuccess(sessionDescription);\n localPeer.setLocalDescription(new CustomSdpObserver(\"localSetLocalDesc\"), sessionDescription);\n Log.d(TAG, \"send offer sdp emit \");\n SignallingClient.getInstance().sendOfferSdp(sessionDescription);\n }\n }, sdpConstraints);\n }", "@Override\n \tpublic void connectionOpened(NetHandler netClientHandler, String server, int port, INetworkManager manager)\n \t{\n \t}", "void onServerBecomesAvailable(ServerBecomesAvailableEvent event);", "@Nullable\n public OnlineMeeting post(@Nonnull final OnlineMeeting newOnlineMeeting) throws ClientException {\n return send(HttpMethod.POST, newOnlineMeeting);\n }", "public void putMeeting(Meeting meeting) throws Exception;", "void onCreateNewNetSuccess();", "public static void m15836a() {\n C8443c.m25663a().mo21606a(\"guest_connection_open\", null, Room.class);\n }", "Notification createConnectionRequestNotification(Connection conn );", "@Override\n\tprotected void onConnect() {\n\t\tLogUtil.debug(\"server connect\");\n\n\t}", "public abstract void onConnect();", "protected abstract void onConnect();", "protected void onConnect() {}", "abstract void onConnect();", "@Test\n public void testServer() throws Exception{\n ServerMain s=new ServerMain(1,3,2,\"test\",InetAddress.getLocalHost(),null);\n uut=new ChatMessageRequest(\"test\",\"test2\",\"test\",MessageTypes.PM);\n uut.serverVisit(new Client(\"test\",s).getServerVisitor());\n\n uut=new ChatMessageRequest(\"test\",\"test2\",\"test\",MessageTypes.MATCH);\n uut.serverVisit(new Client(\"test\",s).getServerVisitor());\n\n uut=new ChatMessageRequest(\"test\",\"test2\",\"test\",MessageTypes.MATCH);\n uut.serverVisit(new Client(\"testInvalid\",s).getServerVisitor());\n }", "@Override\r\n\tpublic String addnewMeeting(String userID, String roomID, Date startDate, Date endDate) {\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"in addition\");\r\n\t\tSession session = factory.openSession();\r\n\t\tsession.beginTransaction();\r\n\t\t\r\n\t\t\r\n\t\tUser user=new User();\r\n\t\tuser.setUserID(userID);\r\n\r\n\t\tMeetingRoom meetingRoom=new MeetingRoom();\r\n\t\tmeetingRoom.setmRoomID(roomID);\r\n\t\t\r\n\t\tMeetingTimings meetingTimings=new MeetingTimings();\r\n\t\tmeetingTimings.setEndTime(endDate);\r\n\t\tmeetingTimings.setStartTime(startDate);\r\n\t\t\r\n\t\tmeetingTimings.setMeetingRoom(meetingRoom);\r\n\t\t\r\n\t\tBookedMeeting meeting=new BookedMeeting();\r\n\t\tmeeting.setEndTime(endDate);\r\n\t\tmeeting.setStartTime(startDate);\r\n\t\tmeeting.setBookingID(userID+\"-\"+roomID+\"-\"+meetingTimings.getStartTime().hashCode()+\"-\"+meetingTimings.getEndTime().hashCode());\r\n\t\tmeeting.setMeetingRoom(meetingRoom);\r\n\t\tmeeting.setUser(user);\r\n\t\t\r\n\t\t//uncomment to add new user or meeting room\r\n\t\t//session.save(user);\r\n\t\t//session.save(meetingRoom);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tsession.save(meetingTimings);\r\n\t\t}\r\n\t\tcatch(HibernateException E) {\r\n\t\t\tSystem.out.println(\"Exception caught while saving meeting timings\"+E);\r\n\t\t}\r\n\t\t\r\n\t\ttry{\r\n\t\t\tsession.save(meeting);\r\n\t\t}\r\n\t\tcatch(HibernateException E) {\r\n\t\t\tSystem.out.println(\"Exception caught while saving meeting booked\"+E);\r\n\t\t\t\r\n\t\t}\r\n\t\t// session.persist(entity);\r\n\t\ttry{\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tsession.close();\r\n\t\t}\r\n\t\tcatch(Exception E) {\r\n\t\t\tSystem.out.println(\"Exception caught while saving and closing session\"+E);\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t return \"success\";\r\n\r\n\t}", "public void start() throws LoginFailedException {\n\t\ttry {\n\t\t\tServerSocket socket = new ServerSocket(0, 0, InetAddress.getByName(\"192.168.1.122\"));\n\t\t\tInetAddress address = socket.getInetAddress();\n\t\t\tint port = socket.getLocalPort();\n\n\t\t\t/* ServerSocket opened just to get free port */\n\t\t\tsocket.close();\n\n\t\t\tBindings bindings = new Bindings().addAddress(address);\n\t\t\tpeer = new PeerBuilderDHT(new PeerBuilder(new Number160(random)).bindings(bindings).ports(port).start()).start();\n\t\t\tSystem.out.println(\"Created peer with ID: \" + peer.peerID().toString());\n\n\t\t\t/* Specifies what to do when message is received */\n\t\t\tpeer.peer().objectDataReply(new ObjectDataReply() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic Object reply(PeerAddress sender, Object request) throws Exception {\n\t\t\t\t\tif (request instanceof String) {\n\t\t\t\t\t\tString payload = (String) request;\n\t\t\t\t\t\tint notaryAndIDSeparatorIndex = payload.indexOf(\"_\");\n\t\t\t\t\t\tint idAndUsernameSeparatorIndex = payload.indexOf(\"_\", notaryAndIDSeparatorIndex+1);\n\t\t\t\t\t\tint usernameAndMessageSeparatorIndex = payload.lastIndexOf(\"_\");\n\t\t\t\t\t\tif (notaryAndIDSeparatorIndex > 0 && idAndUsernameSeparatorIndex > 0 && usernameAndMessageSeparatorIndex > 0) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tString notary = payload.substring(0, notaryAndIDSeparatorIndex);\n\t\t\t\t\t\t\t\tboolean isSigned = false;\n\t\t\t\t\t\t\t\tif(notary.compareTo(\"0\") == 0) {\n\t\t\t\t\t\t\t\t\tisSigned = false;\n\t\t\t\t\t\t\t\t} else if (notary.compareTo(\"1\") == 0) {\n\t\t\t\t\t\t\t\t\tisSigned = true;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tif(delegate != null) {\n\t\t\t\t\t\t\t\t\t\tdelegate.didReceiveMessage(null, null, null, P2PReceiveMessageError.INVALID_MESSAGE_FORMAT);\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\tString messageIDStr = payload.substring(notaryAndIDSeparatorIndex + 1, idAndUsernameSeparatorIndex);\n\t\t\t\t\t\t\t\tlong messageID = Long.parseLong(messageIDStr);\n\t\t\t\t\t\t\t\tString username = payload.substring(idAndUsernameSeparatorIndex+1, usernameAndMessageSeparatorIndex);\n\t\t\t\t\t\t\t\tString message = payload.substring(usernameAndMessageSeparatorIndex+1, payload.length());\n\n\t\t\t\t\t\t\t\tMessage messageObj = new Message();\n\t\t\t\t\t\t\t\tmessageObj.setMessage(message);\n\t\t\t\t\t\t\t\tmessageObj.setNotary(isSigned);\n\t\t\t\t\t\t\t\tContact contact = new Contact(username);\n\t\t\t\t\t\t\t\tMessageResult result = new MessageResult(messageID);\n\n\t\t\t\t\t\t\t\tFutureDirect ackMessage = peer.peer().sendDirect(sender).object(\"ack_\" + messageID).start();\n\t\t\t\t\t\t\t\tackMessage.addListener(new BaseFutureAdapter<FutureDirect>() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void operationComplete(FutureDirect future) throws Exception {\n\t\t\t\t\t\t\t\t\t\tif (future.isSuccess()) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Successfully acknowledged incoming message!\");\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.err.println(\"Failed to acknowledge incoming message!\");\n\t\t\t\t\t\t\t\t\t\t\tSystem.err.println(\"Reason is: \" + future.failedReason());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tif (delegate != null) {\n\t\t\t\t\t\t\t\t\tdelegate.didReceiveMessage(messageObj, contact, result, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\t\t\t\t\tSystem.err.println(\"Failed casting message ID to long!\");\n\t\t\t\t\t\t\t\tnfe.printStackTrace();\n\n\t\t\t\t\t\t\t\tif (delegate != null) {\n\t\t\t\t\t\t\t\t\tdelegate.didReceiveMessage(null, null, null, P2PReceiveMessageError.INVALID_MESSAGE_FORMAT);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (payload.startsWith(\"ack\") && payload.indexOf(\"_\") > 0) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tString messageIDStr = payload.substring(payload.indexOf(\"_\")+1, payload.length());\n\t\t\t\t\t\t\t\tlong messageID = Long.parseLong(messageIDStr);\n\t\t\t\t\t\t\t\tMessageResult result = new MessageResult(messageID);\n\t\t\t\t\t\t\t\tif (delegate != null) {\n\t\t\t\t\t\t\t\t\tdelegate.didReceiveAck(result, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\t\t\t\t\tSystem.err.println(\"Failed casting message ID to long!\");\n\t\t\t\t\t\t\t\tnfe.printStackTrace();\n\n\t\t\t\t\t\t\t\tif (delegate != null) {\n\t\t\t\t\t\t\t\t\tdelegate.didReceiveAck(null, P2PReceiveMessageError.INVALID_MESSAGE_FORMAT);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if(payload.compareTo(\"ping\") == 0) {\n\t\t\t\t\t\t\tFutureDirect pingACKMessage = peer.peer().sendDirect(sender).object(\"pingACK_\" + peerInfo.getUsername()).start();\n\t\t\t\t\t\t\tpingACKMessage.addListener(new BaseFutureAdapter<FutureDirect>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void operationComplete(FutureDirect future) throws Exception {\n\t\t\t\t\t\t\t\t\tif (future.isFailed()) {\n\t\t\t\t\t\t\t\t\t\tSystem.err.println(\"Failed to send ping ACK!\");\n\t\t\t\t\t\t\t\t\t\tSystem.err.println(\"Reason is: \" + future.failedReason());\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Successfully sent ping ACK message!\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else if(payload.startsWith(\"pingACK_\")) {\n\t\t\t\t\t\t\tString username = payload.substring(payload.indexOf(\"_\") + 1, payload.length());\n\t\t\t\t\t\t\tContact contact = new Contact(username);\n\t\t\t\t\t\t\tif (delegate != null) {\n\t\t\t\t\t\t\t\tdelegate.didUpdateOnlineStatus(contact, true, null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (delegate != null) {\n\t\t\t\t\t\t\t\tdelegate.didReceiveMessage(null, null, null, P2PReceiveMessageError.INVALID_MESSAGE_FORMAT);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (delegate != null) {\n\t\t\t\t\t\t\t delegate.didReceiveMessage(null, null, null, P2PReceiveMessageError.INVALID_MESSAGE_FORMAT);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tpeerInfo.setInetAddress(address);\n\t\t\tpeerInfo.setPort(port);\n\t\t\tpeerInfo.setPeerAddress(peer.peerAddress());\n\n\t\t\tSystem.out.println(\"Client peer started on IP \" + address + \" on port \" + port);\n\t\t\tSystem.out.println(\"Bootstrapping peer...\");\n\t\t\tbootstrap();\n\t\t} catch (IOException ie) {\n\t\t\tie.printStackTrace();\n\n\t\t\tif (delegate != null) {\n\t\t\t\tdelegate.didLogin(null, P2PLoginError.SOCKET_OPEN_ERROR);\n\t\t\t}\n\t\t}\n\t}", "private void doCreateWorkout(ExercisePlan exercisePlan) {\n if (getMobileClientService() == null) {\n Log.w(TAG, \"Service is still not bound\");\n creatingExercisePlanOperationResult(false, \"Not bound to the service\", null);\n return;\n }\n\n try {\n boolean isCreating = getMobileClientService().createWorkout(exercisePlan);\n if (!isCreating) {\n creatingExercisePlanOperationResult(false, \"No Network Connection\", null);\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n creatingExercisePlanOperationResult(false, \"Error sending message\", null);\n }\n }", "public void listen(){\n \ttry{ \t\t\n \t\twhile(true){\n \t \t\tSocket socket = server.accept();\n \t \t\tString nickname = new String(\"Guest_\" + String.valueOf(nextId));\n \t \t\t\n \t \t\t// Create a server connection and connect it to the appropriate user.\n \t \t\tServerConnection userConnection = new ServerConnection(nextId, socket, this);\n \t \t\tUser user = new User(nextId, nickname, userConnection);\n \t \t\tuserConnection.setUser(user);\n \t \t\t\n \t \t\tsynchronized(userMap){\n \t \t\t\tuserMap.put(nextId, user);\n \t \t\t}\n \t \t\t// Send a response that connection was successful;\n \t \t\tuserConnection.sendMessage(new Message(Command.REPLY_SUCCESS, \"\", Calendar.getInstance(), \"\"));\n \t \t\t\n \t \t\tnextId++;\n \t\t}\n \t}\n \tcatch(IOException e){\n \t\te.printStackTrace();\n \t}\n }", "public MeetingResponseListener(Socket socket) {\n super(socket) ;\n }", "public void startServer(View view) {\n Log.d(TAG, \"Server Starting........\");\n checkConnection();\n\n }", "Future<CreateListenerResponse> createListener(\n CreateListenerRequest request,\n AsyncHandler<CreateListenerRequest, CreateListenerResponse> handler);", "private void executeBookingTransaction(BankClient clientLoggedIn) throws ParseException {\n\t\t\n\t\tAppointment object = new Appointment(new SimpleDateFormat(\"dd/MM/yyyy\").parse(dateOfAppointment), employee, clientLoggedIn, false);\n\t\t\n\t\tSystem.out.println(\"Employee has been sent a notification. They will get back to you to confirm if appointment can be scheduled\");\n\t\t\n\t\t//employee.appointments.add(object);\n\t\ttry {\n\t\t\temployee.notify(object);\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.out.print(\"\");\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n public void run() {\n ApplicationInfo ai = null;\n try {\n ai = MainActivity.getAppContext().getPackageManager().getApplicationInfo(MainActivity.getAppContext().getPackageName(), PackageManager.GET_META_DATA);\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n }\n String brokerAddress = (String) ai.metaData.get(\"BROKER_ADDRESS\");\n int brokerPort = (int) ai.metaData.get(\"BROKER_PORT\");\n\n // configurazione delle proprietà del broker e avvio del server relativo\n Properties properties = new Properties();\n properties.setProperty(BrokerConstants.HOST_PROPERTY_NAME, brokerAddress);\n properties.setProperty(BrokerConstants.PORT_PROPERTY_NAME, String.valueOf(brokerPort));\n properties.setProperty(BrokerConstants.PERSISTENT_STORE_PROPERTY_NAME, Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + BrokerConstants.DEFAULT_MOQUETTE_STORE_MAP_DB_FILENAME);\n MemoryConfig memoryConfig = new MemoryConfig(properties);\n Server mqttBroker = new Server();\n try {\n mqttBroker.startServer(memoryConfig);\n } catch (IOException e) {\n e.printStackTrace();\n }\n Log.i(TAG, \"Server Started\");\n }", "public void createChatRoom(String name) throws RemoteException {\n\n\t\ttry {\n\t\t\tIChatServer chatStub;\n\t\t\t// make a new chatroom with supplied name\n\t\t\tIChatroom newRoom = new Chatroom(name);\n\t\t\tview.append(\"Make new ChatRoom: \" + newRoom.getName() + \"\\n\");\n\t\t\t// make a new chatserver stub for user in the newchatroom\n\t\t\tIChatServer newChatServer = new ChatServer(user, newRoom);\n\t\t\tview.append(\"Make new ChatServer: <User:\" + newChatServer.getUser().getName() + \", ChatServer: \"\n\t\t\t\t\t+ newChatServer.getChatroom().getName() + \">\\n\");\n\t\t\t//get a chatstub for new chatserver \n\t\t\tchatStub = (IChatServer) UnicastRemoteObject.exportObject(newChatServer, IChatServer.BOUND_PORT);\n\t\t\tregistry.rebind(IChatServer.BOUND_NAME + newRoom.hashCode(), chatStub);\n\t\t\tview.append(\"Make new ChatServer Stub for chatserver.\\n\");\n\t\t\t//add chatstub to newRoom\n\t\t\tnewRoom.addChatServer(chatStub);\n\t\t\tview.append(\"Add new ChatServer Stub to newRoom.\\n\");\n\t\t\t//add newchatroom to the user chatroom lists\n\t\t\tuser.addRoom(newRoom);\n\t\t\tview.append(\"Add new chatroom <\" + newRoom.getName() + \"> to user <\" + user.getName() + \">\\n\");\n\t\t\t//add all chatservers in that room to hashset\n\t\t\tHashSet<IChatServer> proxy = new HashSet<IChatServer>();\n\t\t\tfor (IChatServer item : newChatServer.getChatroom().getChatServers()) {\n\t\t\t\tIChatServer proxyChatServer = new ProxyIChatServer(item);\n\t\t\t\tproxy.add(proxyChatServer);\n\t\t\t}\n\t\t\tIMain2MiniAdpt miniMVCAdpt = view.makeMini(newChatServer, proxy);\n\t\t\tminiMVCAdpts.put(newRoom, miniMVCAdpt);\n\t\t\tcountRoom++;\n\t\t} catch (Exception e) {\n\t\t\tview.append(\"Error creating chatroom!\");\n\t\t}\n\n\t}", "public void testSendMessageEventRequestAndDisplayNotifications() {\n // Create a chat for each connection\n Chat chat1 = getConnection(0).getChatManager().createChat(getBareJID(1), null);\n\n MessageEventManager messageEventManager = new MessageEventManager(getConnection(0));\n messageEventManager\n .addMessageEventNotificationListener(new MessageEventNotificationListener() {\n public void deliveredNotification(String from, String packetID) {\n System.out.println(\"From: \" + from + \" PacketID: \" + packetID + \"(delivered)\");\n }\n\n public void displayedNotification(String from, String packetID) {\n System.out.println(\"From: \" + from + \" PacketID: \" + packetID + \"(displayed)\");\n }\n\n public void composingNotification(String from, String packetID) {\n System.out.println(\"From: \" + from + \" PacketID: \" + packetID + \"(composing)\");\n }\n\n public void offlineNotification(String from, String packetID) {\n System.out.println(\"From: \" + from + \" PacketID: \" + packetID + \"(offline)\");\n }\n\n public void cancelledNotification(String from, String packetID) {\n System.out.println(\"From: \" + from + \" PacketID: \" + packetID + \"(cancelled)\");\n }\n });\n\n // Create the message to send with the roster\n Message msg = new Message();\n msg.setSubject(\"Any subject you want\");\n msg.setBody(\"An interesting body comes here...\");\n // Add to the message all the notifications requests (offline, delivered, displayed,\n // composing)\n MessageEventManager.addNotificationsRequests(msg, true, true, true, true);\n\n // Send the message that contains the notifications request\n try {\n chat1.sendMessage(msg);\n // Wait a few seconds so that the XMPP client can send any event\n Thread.sleep(200);\n } catch (Exception e) {\n fail(\"An error occured sending the message\");\n }\n }", "public interface RoomListener {\n\n /**\n * Notification method names\n */\n public static final String METHOD_PARTICIPANT_JOINED = \"participantJoined\";\n public static final String METHOD_PARTICIPANT_PUBLISHED = \"participantPublished\";\n public static final String METHOD_PARTICIPANT_UNPUBLISHED = \"participantUnpublished\";\n public static final String METHOD_ICE_CANDIDATE = \"iceCandidate\";\n public static final String METHOD_PARTICIPANT_LEFT = \"participantLeft\";\n public static final String METHOD_SEND_MESSAGE = \"sendMessage\";\n public static final String METHOD_MEDIA_ERROR = \"mediaError\";\n\n //room 返回response\n void onRoomResponse(RoomResponse roomResponse);\n\n //当前房间发生错误\n void onRoomError(RoomError roomError);\n\n //接到房间中的notification\n void onRoomNotification(RoomNotification roomNotification);\n\n //与当前房间的连接已建立\n void onRoomConnected();\n\n //与当前房间的连接已断开\n void onRoomDisconnected();\n\n}", "@Override\n\tpublic IChatServer createNewRoomServer(IChatroom chatroom) throws RemoteException {\n\t\tChatServer chatServer = new ChatServer(this, chatroom);\n\t\tusr2MdlAdpt.createMiniMVC(chatServer);\n\t\tfor (IChatServer that : chatroom.getChatServers()) {\n\t\t\tthat.joinChatroom(chatServer);\n\t\t\tchatroom.addChatServer(that);\n\t\t}\n\t\taddRoom(chatroom);\n\t\tchatroom.addChatServer(chatServer);\n\t\treturn chatServer;\n\t}", "ST setArrivalConnection(ST connection);", "void createConnection();", "public void setUpNetworking() throws Exception {\n this.serverSock = new ServerSocket(4242);\n\n groupChats = new HashMap<String, ArrayList<String>>();\n groupMessages = new HashMap<String, ArrayList<String>>();\n groupMessages.put(\"Global\", new ArrayList<String>());\n\n int socketOn = 0;\n\n while (true) {\n\n Socket clientSocket = serverSock.accept();\n System.out.println(\"Received connection \" + clientSocket);\n\n ClientObserver writer = new ClientObserver(clientSocket.getOutputStream());\n\n Thread t = new Thread(new ClientHandler(clientSocket, writer));\n t.start();\n System.out.println(\"Connection Established\");\n socketOn = 1;\n }\n }", "Task<?> addInvitationForReceivingUser(Invitation invitation);", "public void markPdnconnEventsMmeCreate() throws JNCException {\n markLeafCreate(\"pdnconnEventsMme\");\n }", "public void enrollmentPost(String patient, String comment, String program, String date){\n Callback<Enrollment> callback = new Callback<Enrollment>() {\n\n @Override\n public void success(Enrollment serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEnrollmentServerEvent(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.postEnrollments(patient, comment, program, date, callback);\n }", "public void eventPost(String name, String description, String date, String startTime, String endTime){\n Callback<Events> callback = new Callback<Events>() {\n @Override\n public void success(Events serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceEventServerResponse(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.postEvent(name, description, date, startTime, endTime, callback);\n }", "public static Meeting createMeeting() {\n Meeting meeting = new Meeting(getNextNumber());\n meetings.put(meeting.getId(), meeting);\n return meeting.touch();\n }", "private void callEventListener(){\n //Listener for Button add service\n btn_Appointment.setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogCreateAppointment();\n }\n }\n );\n\n }", "@Override\n/**\n * Communication Tester method\n */\npublic String Communicate() throws RemoteException {\n\treturn \"Server Says Hi\";\n}", "Communicator createCommunicator();", "private void requestServerId() {\n connection.startClient(lbInfo.getIp(), lbInfo.getPort());\n System.out.println(\"Connected!\");\n connection.sendMessage(connectionInfo);\n }", "void onServerStarted();", "private void initServer() throws IOException {\r\n \t\tLogger.logMessage(\"Binding Server to \" + this.serverIpAddress + \":\" + this.serverPort);\r\n \r\n \t\tthis.isAlive = true;\r\n \t\tthis.serverSocket = new ServerSocket(this.serverPort, this.backLog, this.serverIpAddress);\r\n \t\tthis.dataLayer = DataLayerFactory.getDataLayer();\r\n \r\n \t\t// Generate the grouplist\r\n \t\tCollection<String> dbGroupList = this.dataLayer.getGroups();\r\n \r\n \t\tfor (String group : dbGroupList) {\r\n \t\t\tthis.groupList.addGroup(group);\r\n \t\t}\r\n \r\n \t\tLogger.logMessage(\"Server successfuly bound!\");\r\n \t}", "static void sendNotifications() {\n\t\testablishConnection();\n\t\tSystem.out.println(\"sending multiple notificatiosn\");\n\t}", "@Override\r\n\tpublic ServerBean connect() throws RemoteException {\n\t\tSystem.out.println(\"coming from DealServerImp\");\r\n\t\treturn null;\r\n\t}", "private static void startUDPServer(EnrollmentInterface instance, int portNo) {\n\t\tnew Thread(() -> {\n\t\t\t((EnrollmentImpl) instance).UDPServer(portNo);\n\t\t}).start();\n\t}", "public void hostMeeting(View view) {\n Intent myIntent = new Intent(WelcomeActivity.this, HostMeetingActivity.class);\n startActivityForResult(myIntent, HOST_MEETING);\n }", "private void manageAcceptedPacket(MeetingPacket packet) {\n Console.comment(\"=> Meeting response packet accepted from \" + packet.getSourceAddress()) ;\n\n if(this.callbackOnAccepted != null) {\n this.callbackOnAccepted.handle(packet.getSourceUser()) ;\n }\n }", "public void tellJoke(){\n new EndpointAsyncTask().execute(this);\n }", "public void onConnect(){\n\t\t String jsonstring = \"{'command': 'addUser','name': '\"+name+\"'}\";\n\t\t this.send(jsonstring);\n\t}", "public boolean conferenceServerEnabled();", "public void connectLobbyServer()\n {\n try {\n LobbyServerConnection.getInstance().connect();\n\n lobbymanager = LobbyServerConnection.getInstance().getLobbyManager();\n\n //verkrijgt alle lobbys\n List<Lobby> lobbyList = LobbyServerConnection.getInstance().getAllLobbys();\n LobbyManager.getInstance().addLobbys(lobbyList);\n update();\n subscribeTry();\n }\n catch (Exception e)\n {\n\n btnCreateLobby.setDisable(true);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Lobby server\");\n\n // Header Text: null\n alert.setHeaderText(\"connection error\");\n alert.setContentText(\"Couldn't connect to the lobbyserver. \\nGames cannot be played right now but you can still check your history\");\n\n alert.showAndWait();\n }\n }", "@Override\n public void onClick(View v) {\n mAndroidServer.listenForConnections(new AndroidServer.ConnectionCallback() {\n @Override\n public void connectionResult(boolean result) {\n if (result == true) {\n Toast.makeText(mActivity, \"SUCCESSFULLY CONNECTED TO A VIEWER\", Toast.LENGTH_LONG);\n }\n }\n });\n\n }", "public void registerWithServer();" ]
[ "0.6711135", "0.63310444", "0.6263082", "0.6252803", "0.61757284", "0.606236", "0.60076964", "0.5972231", "0.5809505", "0.5682455", "0.5670307", "0.55794996", "0.5548718", "0.5531104", "0.5507724", "0.54824424", "0.54738957", "0.5449505", "0.5435316", "0.54104435", "0.53839666", "0.53710973", "0.53405136", "0.53140914", "0.5289216", "0.5265802", "0.5250259", "0.52488756", "0.5248792", "0.5242836", "0.52396184", "0.5202387", "0.51874036", "0.5182329", "0.5181918", "0.51750565", "0.51457864", "0.51421726", "0.51379865", "0.5137618", "0.5136467", "0.51304585", "0.51295173", "0.51177925", "0.5109425", "0.5101118", "0.5085827", "0.5080915", "0.50760686", "0.50734025", "0.5069109", "0.5067679", "0.5062811", "0.50565064", "0.50421685", "0.5031315", "0.50075376", "0.5006003", "0.50020003", "0.49931458", "0.49918914", "0.4991505", "0.49914652", "0.49902168", "0.4987179", "0.49865055", "0.49836475", "0.4972663", "0.49658617", "0.49643072", "0.49633703", "0.49547234", "0.4949777", "0.4949121", "0.4948902", "0.49460307", "0.49364546", "0.49280843", "0.49256304", "0.49245965", "0.49194992", "0.4918279", "0.49085376", "0.49007425", "0.48998702", "0.48987618", "0.4896006", "0.4894864", "0.48902503", "0.48884442", "0.4885106", "0.4882236", "0.48792464", "0.48791656", "0.48746595", "0.4874523", "0.48619086", "0.4860175", "0.4856437", "0.48464185" ]
0.5341778
22
TODO Autogenerated method stub
@Override public void onResult(Object arg0) { System.out.println("Method createMeeting result: " + arg0); callback_createMeeting(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onStatus(Map<String, Object> arg0) { System.out.println("Method createMeetiong status: " + arg0); }
{ "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