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 |
|---|---|---|---|---|---|---|
MyRunnable r = new MyRunnable(); | public static void main(String[] args) {
Runnable r1=()->{for (int i = 0; i < 10; i++) {
System.out.println("Lambda thread");
}
};
Thread t = new Thread(r1);
t.start();
for (int i = 0; i < 10; i++) {
System.out.println("main thread");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyRunnable(){\t\n\t}",
"Runnable mk();",
"@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}",
"@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }",
"public interface RunnableFactory {\n\n\t/**\n\t * Yields a new instance of the runnable.\n\t */\n\n Runnable mk();\n}",
"public interface MainThread {\n void post(Runnable runnable);\n}",
"@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}",
"private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }",
"public interface Service extends Runnable {\n\n}",
"public void run()\n {\n\n }",
"public static OnRun onRun( Runnable run )\n\t{\n\t\treturn new OnRun( run );\n\t}",
"public void run() {\n\n\n }",
"public void run() {\n\n }",
"private interface CheckedRunnable {\n void run() throws Exception;\n }",
"public void run()\n {\n }",
"public void run()\n {\n }",
"public BattleRunnable() {\n\t\tdebug.i(\"BattleRunnable constructor\");\n\t}",
"public Runnable getRunnable() {\n return runnable;\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public Thread getThread(int type, String name, Runnable r);",
"@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}",
"interface Runnable {\n void execute() throws Throwable;\n default void run() {\n try {\n execute();\n } catch(Throwable t) {\n throw new RuntimeException(t);\n }\n }\n }",
"public interface Interactor extends Runnable {\n}",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public void run() {\r\n }",
"public void run(){\n\t}",
"@Override\n public void run()\n {\n\n }",
"public void run()\n\t{\n\t}",
"public static void run(){}",
"public Benchmark(Runnable runnable) {\n this.runnable = runnable;\n }",
"public interface Interactor extends Runnable {\n void run();\n}",
"protected interface DispatcherRunnable<LISTENER> {\n void run(LISTENER listener);\n }",
"ThreadStart createThreadStart();",
"public void run() {\n }",
"public abstract void runOnUiThread(Runnable runnable);",
"public abstract void run() ;",
"@Override\npublic void run() {\n perform();\t\n}",
"public static void main(String args[ ]){\r\nMythread rt = new Mythread(); /* main thread created the runnable object*/\r\nThread t = new Thread(rt); /*main thread creates child thread and passed the runnable object*/\r\nt.start();\r\nfor(int i=0; i<10; i++){\r\nSystem.out.println(\"Main Thread\");\r\n}\r\n}",
"@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }",
"@Override\n public void run(){\n }",
"public void detenerRunnable(){\n Log.d(\"RUNNABLE\",\"DETENIENDO RUNNABLE SONIDO + VIBRACION\");\n handler.removeCallbacksAndMessages(myRunnable);\n handler.removeCallbacks(myRunnable);\n\n }",
"public void run() {\n\t}",
"public void run() {\n\t}",
"@Override\n public void run() {\n\n }",
"public interface ShutdownManager extends Runnable {\n\n}",
"public void createThread() {\n }",
"public baseRunnableCondition() {\r\n }",
"@Override\n\tpublic void run()\n\t{\n\t}",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Test\n @DisplayName(\"Plain Runnable\")\n void testRunnable() {\n Runnable task = this::printThreadName;\n\n task.run();\n\n Thread thread = new Thread(task);\n thread.start();\n\n System.out.println(\"Done!\");\n }",
"@Override\r\n\tpublic void run() {\n\r\n\t}",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"public abstract void run();",
"public abstract void run();",
"public abstract void run();",
"@Override\n public void run() {\n System.out.println(\"Inside runnable 1\");\n }",
"@Override\n\tpublic void run() {\n\t}",
"public void run(){\n //logic to execute in a thread \n }",
"void run();",
"void run();",
"void run();",
"void run();",
"@Override\r\n public void run() {\n\r\n }",
"public void run() {\n\n\t}",
"public void run() {\n\n\t}",
"@Override\r\n\tpublic void run() {\n\t}",
"@Override\r\n\tpublic void run() {\n\t}",
"@Override\n\tpublic void run()\n\t{\n\n\t}",
"public void setRunnable(Runnable runnable) {\n this.runnable = runnable;\n }",
"public interface RunnableTask {\n ProcessResult run();\n}",
"private Timer() {\n myThread = new TimerThread();\n myThread.start();\n }",
"public interface IHttpThreadExecutor {\n public void addTask(Runnable runnable);\n}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"public void run() {\n\t\t\n\t}",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }"
] | [
"0.85642725",
"0.7307991",
"0.689781",
"0.6773779",
"0.6532388",
"0.65221304",
"0.6489312",
"0.6350733",
"0.62840796",
"0.62506497",
"0.6241212",
"0.6234589",
"0.6224945",
"0.62224823",
"0.62008643",
"0.62008643",
"0.61860025",
"0.6155119",
"0.6089311",
"0.6089311",
"0.6089311",
"0.6089311",
"0.60814613",
"0.60745883",
"0.6068997",
"0.6062108",
"0.6033828",
"0.6033828",
"0.6033828",
"0.6033828",
"0.6033828",
"0.60336155",
"0.6027021",
"0.60036165",
"0.59983563",
"0.59926426",
"0.59916973",
"0.59901017",
"0.5989037",
"0.59865904",
"0.59667075",
"0.59662694",
"0.596562",
"0.5944841",
"0.5944311",
"0.5940203",
"0.59353137",
"0.59268254",
"0.5893316",
"0.5893316",
"0.58756036",
"0.58730966",
"0.58628356",
"0.58483255",
"0.58453023",
"0.583342",
"0.583342",
"0.5818927",
"0.58115566",
"0.5801175",
"0.5801175",
"0.5801175",
"0.57888764",
"0.57888764",
"0.57888764",
"0.57850283",
"0.57821834",
"0.57781863",
"0.5769983",
"0.5769983",
"0.5769983",
"0.5769983",
"0.57590425",
"0.57530504",
"0.57530504",
"0.5749267",
"0.5749267",
"0.57481825",
"0.57348174",
"0.5726417",
"0.5719449",
"0.5719404",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5715151",
"0.5710914",
"0.5709305",
"0.5709305"
] | 0.0 | -1 |
/ access modifiers changed from: protected | public SimpleDraweeControllerBuilder getControllerBuilder() {
return this.mSimpleDraweeControllerBuilder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
] | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
] | 0.0 | -1 |
/ return new Greeting(counter.incrementAndGet(), String.format(template, name)); | @RequestMapping("/hello")
public String greeting(@RequestParam(value="name", defaultValue="World") String name) {
return name+" - TEST";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String greeting(final String inName);",
"@RequestMapping(\"/greeting\")\n public Greeting greeting(@RequestParam(value=\"name\", defaultValue=\"World\") String name) {\n return new Greeting(counter.incrementAndGet(),\n String.format(template, name));\n }",
"@GetMapping(\"/greeting\") // GetMapping derived from RequestMapping, so we can also use\r\n // @RequestMapping(method=GET)\r\n public Greeting greeting(@RequestParam(value = \"name\", defaultValue = \"World\") String name) {\n return new Greeting(counter.incrementAndGet(), String.format(template, name));\r\n }",
"public String sayHello(){\n return \"Hey how's it going \" + personName + \"?\";\n }",
"public String greeting() {\n String newline = System.lineSeparator();\n return \"Hello friend. Hello friend?\" + newline\n + \"That's lame. Maybe I should give you a name.\" + newline\n + \"But that's a slippery slope, you're only in my head,\" + newline\n + \"we have to remember that.\";\n }",
"public String hello()\n {\n return _greeting;\n }",
"private String greeting() {\n\t\tanswerUser = null;\n\t\tquestionBot.put(owner.id(), WELCOME);\n\n\t\treturn buildMessage(\"Olá, \" + owner.firstName() + \"! \" + WELCOME);\n\t}",
"public String getGreeting() {\n String greeting = \"Hola mundo bonito\";\r\n return greeting;\r\n \r\n }",
"public String helloName(String name) {\r\n return \"Hello \" + name + \"!\";\r\n }",
"public String getGreeting() {\n\t\t\n\t\treturn new String(\"Welcome to Java\");\n\t\t//System.out.println(\"Hi welcome to java training\");\n\t\t\n\t}",
"@Override\n\tpublic String sayHello() {\n\t\ti++;\n\t\treturn \"Hola mundo!!!:::\"+i;\n\t}",
"@ApiMethod(name = \"greetings.multiply\", httpMethod = \"post\")\n public HelloGreeting insertGreeting(@Named(\"times\") Integer times, HelloGreeting greeting) {\n HelloGreeting response = new HelloGreeting();\n StringBuilder responseBuilder = new StringBuilder();\n for (int i = 0; i < times; i++) {\n responseBuilder.append(greeting.getMessage());\n }\n response.setMessage(responseBuilder.toString());\n return response;\n }",
"public String getGreeting() {\n\t\treturn \"Hello, let's talk.\";\n\t}",
"public String greet() {\n return (\"\\n | | _ _ _| / \\\\ _ \\n\"\n + \" |/\\\\|(_)| (_| \\\\__/|_) \\n\"\n + \" | \\n\\n\"\n + \"Welcome, what would you like to do today?\");\n }",
"public String greeting() {\n ServiceInstance serviceInstance = loadBalancerClient.choose(EUREKA_AWARE_CLIENT_SERVICE_ID);\n LOGGER.info(\"Service instance picked up by load balancer: \");\n printServiceInstance(serviceInstance);\n String result = restTemplate.exchange(serviceInstance.getUri() + \"/greeting\", HttpMethod.GET, null, String.class).getBody();\n\n LOGGER.info(\"Service returns: \" + result);\n return result;\n }",
"com.rajni.grpc.greeting.Greeting getGreeting();",
"@GET\n @Produces(MediaType.TEXT_PLAIN)\n @Path(\"{name}\")\n public CompletionStage<String> greeting(@PathParam(\"name\") String name) {\n\n // When complete, return the content to the client\n CompletableFuture<String> future = new CompletableFuture<>();\n\n long start = System.nanoTime();\n\n // Asynchronous greeting\n\n LOGGER.info(\"##### Entering vertx.setTimer...\");\n\n // Delay reply by 1000ms\n vertx.setTimer(1000, l -> {\n\n // Compute elapsed time in milliseconds\n long duration = MILLISECONDS.convert(System.nanoTime() - start, NANOSECONDS);\n\n // Format message\n String message = String.format(\"Hello %s! (%d ms)%n\", name, duration);\n\n // Complete\n LOGGER.info(\">>>>> message = {}\", message);\n future.complete(message);\n });\n\n LOGGER.info(\"##### Left vertx.setTimer.\");\n\n return future;\n }",
"String getNewName();",
"public String generateFullName() {\n\n\t\tString fullName;\n\t\tfullName = firstNames.get(roll.nextInt(firstNames.size()));\n\t\tfullName += \" \" + lastNames.get(roll.nextInt(lastNames.size()));\n\t\treturn fullName;\n\t}",
"@Override\n\tpublic String getGreeting() {\n\t\treturn \"Welcome VietNam!\";\n\t}",
"public String sayHello(String name);",
"static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }",
"public String sayHello(String name) {\n\treturn \"hello\"+name;\n\t}",
"private String displayGreeting() {\n return Duke.getGreeting();\n }",
"StringTemplate createStringTemplate();",
"private static String testGetRandomInstance(int iterations)\n {\n String output = \"\";\n for (int i = 0; i < iterations; i++) \n {\n output += \"Saying hello to the random greeter: \" \n + Greeter.getRandomInstance().sayHello() + \"\\n\";\n }\n return output;\n }",
"public void Greet(String name)\n\t\t{\n\t\t\tSystem.out.println(\"Hello \", name);\t\t\t\n\t\t}",
"@Override\n\tpublic void greet() {\n\t\tSystem.out.println(greeting);\n\t}",
"public String sayHello(String name) {\n\t\treturn \"Hello,\"+name;\n\t}",
"public String displayGreeting() {\n\t\treturn \"Hello from MyClass\";\n\t}",
"public Countable(){\n counter++;\n objectName = \"Countable \" + counter;\n// System.out.println(objectName);\n }",
"void greet(String name) {\n\t\tSystem.out.println(\"Hello \"+name);\n\t}",
"String getNewPlayerName();",
"@Override\n\tpublic String sayHello(String name) {\n\t\treturn name+\":hello\";\n\t}",
"String template();",
"@Override\n\t\t\tpublic void onNext(GreetingRequest request) {\n\t\t\t\tSystem.out.println(\"GreetingsServiceImpl.greetForLong : greet requested by \"+request);\n\t\t\t\tif(responseMessages == null)\n\t\t\t\t\tresponseMessages = new ArrayList<>();\n\t\t\t\tHuman human = request.getHuman();\n\t\t\t\tresponseMessages.add(\"jai shree ram says \"+human.getFirstName()+\" \"+human.getLastName());\n\t\t\t}",
"public static String name () {\n return \"Random Walk by Ryan Stansifer\";\n }",
"public static String giveMeMyName(){\n return \"Okan\";\n }",
"public Builder setGreeting(\n java.lang.String value) {\n copyOnWrite();\n instance.setGreeting(value);\n return this;\n }",
"public Person(){\n count++;\n System.out.println(\"Creating an object\");\n }",
"@Override\r\n\tpublic String greeting() {\n\t\treturn null;\r\n\t}",
"public Greetings() {\n }",
"public NameGenerator() {\n this.rand = new Random();\n }",
"private String getRandomName(){\n return rndString.nextString();\n }",
"public String greet(String someone) {\n\t\treturn String.format(\"Hello How are you, %s!\", someone);\n\t}",
"public String saySomething(String name) {\n return name;\n }",
"@Override\n protected String execute(long currentTime) {\n String record = String.format(TEMPLATE, currentTime);\n return record;\n }",
"default String create(String... args) {\n String message = \"\";\n try {\n for (int i = 0; i < args.length; i++) {\n if (args[i] != null) {\n Matcher matcher = CRYPTO_PATTERN.matcher(args[i]);\n if (matcher.find()) {\n int start = args[i].indexOf(':') + 1;\n int end = args[i].indexOf('}');\n args[i] = StringUtils.replace(args[i], matcher.group(), StringUtils.repeat('*', end - start));\n }\n }\n }\n message = String.format(getPattern(), (Object[]) args);\n } catch (Exception e) {\n getLogger().error(\"Report message creation error!\", e);\n }\n return message;\n }",
"@GetMapping(\"/addsomenames\")\r\n public Greeting addsomenames(@RequestParam(value = \"last\", defaultValue = \"World\") String last) {\n Vector<Person> people = new Vector<Person>();\r\n for (String first : firstNames) {\r\n people.add(new Person(first, last));\r\n }\r\n repository.insert(people);\r\n return new Greeting(counter.incrementAndGet(), String.format(template, last));\r\n }",
"public String generateStarterName() {\n\t\treturn starterName.get(roll.nextInt(starterName.size()));\n\t}",
"public java.lang.String getGreeting() {\n return greeting_;\n }",
"public void sayHello(){\n System.out.println(\"This persons name is: \" + this.name);\n }",
"public String sayHiFromClientOne(String name) {\n\t\treturn \"sorry \"+name;\n\t}",
"public static String getGreeting() {\n return dayHourGreeting;\n }",
"public String getGreetingMessage() {\n return ui.printAndReturnGreetingsString();\n }",
"public Welcome() {\r\n name = askName();\r\n Scanner in = new Scanner(System.in);\r\n Hello.display(\"Well, nice to meet you \"+name+\"!\" +\r\n \"\\nWhat is your favorite kind of pet?\");\r\n Pet favoritePet = Pet.dog;\r\n Hello.display(\"\");\r\n favoritePet = Pet.valueOf(in.next());\r\n favoritePet.provideFact();\r\n Hello.display(\"\\nHey, \"+name+\"! What is your favorite kind of vehicle?\");\r\n Vehicle favoriteVehicle = Vehicle.spaceship;\r\n Hello.display(\"\");\r\n favoriteVehicle = Vehicle.valueOf(in.next());\r\n favoriteVehicle.provideFact();\r\n Hello.display(\"Alright, goodbye \"+name+\"! Until next time!\");\r\n in.close();\r\n }",
"public static String generateName() {\n return new Generex(PatternValidator.NAME_PATTERN).random();\n }",
"private Template makeTemplate() {\n return new Template(\"spamHardGenerated\", \"SPAM HARD\\n$$template_EOO\\n\" + sendedWorld.getText() + \"\\n$$template_EOF\\n$$var_name osef\\n$$var_surname osef\");\n }",
"public Greeter() {\n\n\t}",
"public HelloWorld() {\n setId(\"template\");\n getModel().setGreeting(EMPTY_NAME_GREETING);\n }",
"private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}",
"public java.lang.String getGreeting() {\n return instance.getGreeting();\n }",
"public String sayHello() {\n\t\treturn \"hello\";\n\t}",
"public String showName(){\r\n\t\tSystem.out.println(\"This is a \" + name);\r\n\t\treturn name;}",
"public void sentence(){\n \n System.out.println(\"Your first boyfriend's name was \" + getName() + \".\\n\");\n }",
"public void sayHello(String name){\r\n System.out.println(\"Hello \" + name);\r\n }",
"@Override\n\tpublic Future<RpcResult<HelloWorldOutput>> helloWorld(HelloWorldInput input) {\n\n\t\tHelloWorldOutputBuilder helloBuilder = new HelloWorldOutputBuilder();\n\t\thelloBuilder.setGreating(\"Greetings \" + input.getStrin() + \"!\");\n\n\t\treturn RpcResultBuilder.success(helloBuilder.build()).buildFuture();\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tmyGreetingsResp mg = new myGreetingsResp();\r\n\t\tSystem.out.println(mg.greetResp(\"John\", \"Bye\"));\r\n\t\t\r\n\t\tSystem.out.println(\"updating print text\");\r\n\r\n\t}",
"@Test\n void getName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }",
"@Override\n\t\t\tpublic void onNext(GreetingRequest request) {\n\t\t\t\tSystem.out.println(\"GreetingsServiceImpl.greetAll greet rqeuested by \"+request);\n\t\t\t\t\n\t\t\t\t//mimicking delay\n\t\t\t\tThreadUtils.sleep(2000);\n\t\t\t\t\n\t\t\t\t//lets respond back for every request\n\t\t\t\tHuman human = request.getHuman();\n\t\t\t\tresponseObserver.onNext(GreetingResponse.newBuilder().setMessage(\"jai shree ram says \"+human.getFirstName()+\" \"+human.getLastName()).build());\n\t\t\t}",
"public abstract String generate(Object... args);",
"public String createName() {\r\n\r\n boolean donePickingName = false;\r\n String inputName =\"\";\r\n \r\n while (donePickingName == false) {\r\n System.out.println(\"\\nWHAT IS YOUR NAME?\");\r\n System.out.print(\"NAME: \");\r\n inputName = scan.next();\r\n \r\n System.out.println(\"You chose \" + \"'\" + inputName + \"'\" + \" as your name.\\n\");\r\n System.out.println(\"Hello \" + inputName + \"!\");\r\n System.out.println(\"This will be your name through the whole game, do you want to keep it?\\n\"\r\n + \"YES/NO\");\r\n System.out.print(\"ACTION: \");\r\n\r\n String actionInput;\r\n actionInput = scan.next().substring(0, 1);\r\n\r\n if (actionInput.equalsIgnoreCase(\"n\")) {\r\n donePickingName = false;\r\n }\r\n if (actionInput.equalsIgnoreCase(\"y\")) {\r\n System.out.println(\"\\nYou chose to keep your name\");\r\n donePickingName = true;\r\n } else {\r\n System.out.println(\"\\n'\" + actionInput + \"'\" + \" is not a valid option... Try again.\");\r\n }\r\n \r\n }\r\n return inputName;\r\n }",
"static public void greeting() {\n\tSystem.out.println(\"class Test1\");\n\t}",
"@Override\n\tpublic String sayHello(String name) {\n\t\treturn \"hello dubbo,hello \" + name;\n\t}",
"public static void main(String[] args) {\n NameGenerator n = new NameGenerator(true);\n // System.out.println(\"Random Names:\");\n // for (int i = 0; i < 10; i++) {\n // System.out.println(n.newName());\n // }\n // System.out.println();\n // System.out.println(\"Planet Names:\");\n // for (int i = 0; i < 10; i++) {\n // System.out.println(n.newPlanetName());\n // }\n for (int i = 0; i < 10; i++) {\n System.out.println();\n String system = n.newName();\n System.out.printf(\"System: %s, Planets:%n\", system);\n for (String p: n.planetNames(5, system)) {\n System.out.println(p);\n }\n }\n // System.out.println();\n // System.out.println(\"Human Names:\");\n // for (int i = 0; i < 10; i++) {\n // System.out.println(n.newHumanName());\n // }\n\n }",
"@Override\n public void make() {\n info=new StringBuilder().append(name).append(\" product was made: \").\n append(new GregorianCalendar().getTime()).append(\".\").toString();\n System.out.println(info);\n }",
"public static void main(String[] args) {\n System.out.print(\"What is your name? \");\n Scanner input = new Scanner(System.in);\n String name = input.nextLine();\n String greeting = \"Hello, \" + name + \", nice to meet you!\";\n System.out.println(greeting);\n }",
"public DayHourGreeting () {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n setGreeting(hourOfDay);\n }",
"public Name createTemporaryName() {\n return Name.makeFresh(\"t\");\n }",
"public String sayHello () {\n\t\treturn \"hello2\";\n\t}",
"public String getName()\r\n/* 23: */ {\r\n/* 24:20 */ return \"Wire demo receiver\";\r\n/* 25: */ }",
"protected String myString(){\n \treturn( \"gate \" + name ); \n }",
"public static String generaTemp(){\n return \"t$\"+temp++;\n }",
"public static String generaTemp(){\n return \"t$\"+temp++;\n }",
"public static String generaTemp(){\n return \"t$\"+temp++;\n }",
"public static String generaTemp(){\n return \"t$\"+temp++;\n }",
"public static void printNames(String name){\n System.out.printf(\"Hello, %s\", name);\n}",
"@GetMapping(\"/worker\")\r\n\tpublic String Hello() {\r\n\t\tStringBuilder response = new StringBuilder();\r\n\t\tresponse.append(\"<pre>\\nHello: \\n\");\r\n\t\tif (!test)\r\n\t\t\tresponse.append(\"instance: \" + getExample1PropertyValue() + \"\\n\");\r\n\t\tresponse.append(\"static: \" + getStaticValue() + \"\\n\");\r\n\t\tresponse.append(\"static (2): \" + getPropertiesParserStaticValue() + \"\\n\");\r\n\t\tresponse.append(\"injected: \" + getExample2PropertyValue() + \"\\n\");\r\n\t\tresponse.append(\"own: \" + getValue() + \"\\n\");\r\n\t\tresponse.append(\"</pre>\\n\");\r\n\t\treturn response.toString();\r\n\t}",
"public static void printGreeting() {\n printDashLines();\n printLogo();\n System.out.println(GREETING_LINES);\n printDashLines();\n }",
"public void printWelcomeMessage() {\n String logo = \" ____ _ \\n\"\n + \"| _ \\\\ _ _| | _____ \\n\"\n + \"| | | | | | | |/ / _ \\\\\\n\"\n + \"| |_| | |_| | < __/\\n\"\n + \"|____/ \\\\__,_|_|\\\\_\\\\___|\\n\";\n String welcomeMessage = \"Hello! I'm Duke\\n\" +\n \"What can I do for you?\";\n\n System.out.println(\"Hello from\\n\" + logo);\n\n printWithTemplate(welcomeMessage);\n }",
"String createMessageWithPrefix();",
"public void sayHello(String name) {\n System.out.println(\"Hello ... \" + name + \"..!\");\n }",
"public String formatMessage(String message) {\n return String.format(\"<h1>%s</h1>\", message);\n// return MessageFormat.format(\"<h1>{0}}</h1>\", message);\n }",
"@Override\n public void onNext(LongGreetRequest value) {\n //Going to concatenate each request value\n System.out.println(\"Received message from client as \"+value.getGreeting().getFirstName());\n result += \"Hello \" + value.getGreeting().getFirstName() + \"! \";\n }",
"public Message generateDrawMessage() {\n return new Message(false, -100, \"Game Over. It was a DRAW!\"); \n }",
"public Name createName() {\n\t\treturn null;\n\t}",
"@java.lang.Override\r\n public String askName() {\r\n Hello.display(\"Welcome! What is your name?\");\r\n Scanner in = new Scanner(System.in);\r\n String name = in.next();\r\n return name;\r\n }",
"public String generateWelcomeFile() {\n SettingsManager settings = initSettings();\n String welcomeFilePattern = \"\"\n + \"<h1 style='font-size: %dpt'>%s</h1>\"\n + \"%n<span style='color: %s; font-size: %dpt'>%s</span>\";\n\n Color subtitleColor = settings.getProperty(TitleConfig.SUBTITLE_COLOR);\n return String.format(welcomeFilePattern, settings.getProperty(TitleConfig.TITLE_SIZE),\n settings.getProperty(TitleConfig.TITLE_TEXT), subtitleColor.hexCode,\n settings.getProperty(TitleConfig.SUBTITLE_SIZE), settings.getProperty(TitleConfig.SUBTITLE_TEXT));\n }",
"@GetMapping(\"/message/{name}\")\n public String greeting(@PathVariable String name) {\n return \"Hello \" + name ;\n }",
"private static String testSetName(String newName, Greeter greeter)\n {\n String output = \"Saying hello to the greeter: \\n\" + greeter.sayHello();\n output += \"Setting \" + newName + \" as the newName\";\n greeter.setName(newName);\n output += \"Saying hello to the greeter: \\n\" + greeter.sayHello();\n return output;\n }",
"@Override\n public String demo(String name) {\n return \"sorry\" + name + \" the request got error\";\n }"
] | [
"0.69445485",
"0.6637636",
"0.640041",
"0.6294515",
"0.629367",
"0.6237357",
"0.6229281",
"0.6145791",
"0.6100168",
"0.5989882",
"0.5963808",
"0.5929185",
"0.59032595",
"0.5820917",
"0.57937574",
"0.5746372",
"0.5714625",
"0.5635669",
"0.56187755",
"0.5612103",
"0.5604642",
"0.5564207",
"0.55530506",
"0.55501515",
"0.5549362",
"0.5546664",
"0.5541697",
"0.55400944",
"0.55390406",
"0.55146503",
"0.5513771",
"0.5507216",
"0.54898894",
"0.5474841",
"0.5464138",
"0.5461971",
"0.5451519",
"0.5449239",
"0.54432094",
"0.5427634",
"0.54253036",
"0.53916013",
"0.53878295",
"0.5363589",
"0.5356131",
"0.5352597",
"0.53510165",
"0.53483146",
"0.53344005",
"0.53219515",
"0.5319597",
"0.53141093",
"0.5313337",
"0.53090996",
"0.5308264",
"0.5293719",
"0.52918404",
"0.52856463",
"0.5283822",
"0.52801806",
"0.5278685",
"0.5275712",
"0.52744895",
"0.5272633",
"0.5271301",
"0.5270228",
"0.5265712",
"0.5262788",
"0.52535933",
"0.52515554",
"0.5241588",
"0.5231979",
"0.5230461",
"0.52187824",
"0.519919",
"0.5197896",
"0.51885545",
"0.5186129",
"0.5178265",
"0.51631486",
"0.5161206",
"0.5153608",
"0.5144411",
"0.5144411",
"0.5144411",
"0.5144411",
"0.5141752",
"0.5128641",
"0.51172656",
"0.51024616",
"0.50962496",
"0.509129",
"0.5082993",
"0.5080338",
"0.50710577",
"0.50668514",
"0.50643563",
"0.50628996",
"0.5051353",
"0.5048393",
"0.50457937"
] | 0.0 | -1 |
TODO Autogenerated method stub | public String getClubname() {
return clubname;
} | {
"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 |
retrieves list of players | public void releasesDisplay(){
ScahaDatabase db = (ScahaDatabase) ContextManager.getDatabase("ScahaDatabase");
List<Release> tempresult = new ArrayList<Release>();
try{
if (db.setAutoCommit(false)) {
CallableStatement cs = db.prepareCall("CALL scaha.getClubReleaseList(?)");
cs.setInt("clubid", this.clubid);
rs = cs.executeQuery();
if (rs != null){
while (rs.next()) {
String idrelease = rs.getString("idrelease");
String stype = rs.getString("type");
String ssubmitdate = rs.getString("submitdate");
String sfirstname = rs.getString("fname");
String slastname = rs.getString("lname");
String svalidthru = rs.getString("validthru");
String sreleasingclub = rs.getString("releasingclub");
String sacceptingclub = rs.getString("acceptingclub");
String sreason = rs.getString("reason");
String sstatus = rs.getString("status");
Release orelease = new Release();
orelease.setIdrelease(idrelease);
orelease.setType(stype);
orelease.setSubmitdate(ssubmitdate);
orelease.setFirstname(sfirstname);
orelease.setLastname(slastname);
orelease.setValidthru(svalidthru);
orelease.setReleasingclub(sreleasingclub);
orelease.setAcceptingclub(sacceptingclub);
orelease.setReason(sreason);
orelease.setStatus(sstatus);
tempresult.add(orelease);
}
LOGGER.info("We have results for release list");
}
db.cleanup();
} else {
}
} catch (SQLException e) {
// TODO Auto-generated catch block
LOGGER.info("ERROR IN Searching FOR releases");
e.printStackTrace();
db.rollback();
} finally {
//
// always clean up after yourself..
//
db.free();
}
setReleases(tempresult);
ReleaseDataModel = new ReleaseDataModel(releases);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Player> getPlayers();",
"private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }",
"List<Player> listPlayers();",
"List<Player> findAllPlayers();",
"public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}",
"@RequestMapping(\"/players\")\n public List<Player> getAllPlayers() {\n return playerService.getPlayerList();\n }",
"public ListResponse<PlayerResponse> getPlayers() {\n\t\tcheckProvided();\n\t\treturn players;\n\t}",
"ArrayList<Player> getAllPlayer();",
"public List<Player> getPlayerList(){\n return this.players;\n }",
"public List<PlayerItem> getAllPlayerItemById(Player player);",
"@Override\n public List<Player> getPlayers() {\n return players;\n }",
"public List<Player> getPlayers() {\r\n return players;\r\n }",
"public List<Player> getPlayers() {\r\n return players;\r\n }",
"public List<PlayerItem> getAll();",
"public List<Player> getAll() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAll();\n }",
"@Override\r\n\tpublic ArrayList<PlayerPO> getAllPlayers() {\n\t\treturn playerController.getAllPlayers();\r\n\t}",
"static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}",
"Collection<User> players();",
"@Override\n public List<Player> getPlayers() {\n return new ArrayList<Player>(players);\n }",
"public List<Player> getPlayerList()\n\t{\n\t\treturn playerList;\n\t}",
"private void listPlayer(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tList<Player> players = playerDbUtil.getPlayers();\n\n\t\t// adiciona o jogador no request attribute\n\t\trequest.setAttribute(\"PLAYER_LIST\", players);\n\n\t\t// envia para a jsp:list-players (view)\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"/list-players.jsp\");\n\t\tdispatcher.forward(request, response);\n\t}",
"public void getPlayerList() {\n if (connected == true) {\n try {\n write(\"get playerlist\");\n } catch (IOException e) {\n System.out.println(\"No connecting with server:ServerCommunication:getPlayerList()\");\n }\n }\n }",
"public List<Player> getPlayers() {\r\n\t\treturn players;\r\n\t}",
"public List<String> getAllPlayers() throws ServerProblem {\r\n\ttry (Connection connTDB = ConnectionManager.getInstance().getConnection()) {\r\n\t LOGGER.debug(\"Getting all players\");\r\n\t List<String> results = engine.getAllPlayers(connTDB);\r\n\t LOGGER.debug(\"Players found in the database: \" + results);\r\n\t return results;\r\n\t} catch (Exception ex) {\r\n\t String error = \"Problem encountered getting all players: \" + ex;\r\n\t LOGGER.error(error);\r\n\t throw new ServerProblem(error, ex);\r\n\t}\r\n }",
"@Override\n\tpublic List<Player> getPlayer() {\n\t\treturn ofy().load().type(Player.class).list();\n\t}",
"@Override\n public ArrayList<Player> getPlayers() throws RemoteException {\n return players;\n }",
"public List<Player> getPlayers() {\n\t\treturn players;\n\t}",
"@Override\r\n\tpublic List<Player> getAllPlayer(String email) {\n\t\treturn dao.getAllPlayer(email);\r\n\t}",
"public ArrayList<Entity> getPlayers() {\n ArrayList<Entity> players = new ArrayList<>();\n students.forEach(student -> players.add(student.getPlayer()));\n return players;\n }",
"public List<Player> getPlayers() {\n\n\t\treturn players;\n\t}",
"public List<ServerPlayerEntity> getPlayerList() {\n return this.players;\n }",
"public String[] getPlayers() {\r\n return playerIds;\r\n }",
"public EntityList<Player> getPlayers() {\n\t\treturn players;\n\t}",
"public ArrayList<Player> getPlayers() {\n return players;\n }",
"public Player[] getPlayers() {\r\n return players;\r\n }",
"public Player[] getPlayers() {\n return players;\n }",
"public ArrayList<Player> getPlayers() {\n return players;\n}",
"public abstract ArrayList<String> getPlayer(int gameId) throws SQLException;",
"public ArrayList<Player> getPlayers() {\n return players;\n }",
"public Player[] getPlayers() {\n return this.players;\n }",
"public Player[] getPlayers() {\n return this.players;\n }",
"@RequestMapping(\"/playernames\")\n public List<String> getAllPlayerNames(){\n return playerService.getPlayerNames();\n }",
"private Collection<Player> getPlayers() {\n\t\treturn players;\n\t}",
"public Player[] getPlayers()\n\t{\n\t\treturn players;\n\t}",
"public Player[] getPlayers()\r\n\t{\r\n\t\treturn this.players;\r\n\t}",
"public List<Player> getAllOrdered() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAllOrdered();\n }",
"Set<String> getPlayers();",
"public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the List.\r\n\r\n List<Player> players = new ArrayList<>();\r\n players.addAll(teamRed.getPlayers());\r\n players.addAll(teamBlue.getPlayers());\r\n\r\n return players;\r\n }",
"@Override\n public ArrayList<Player> getPlayers() {return steadyPlayers;}",
"public ArrayList<Player> getPlayerList() {\n ArrayList<Player> ret = new ArrayList<>();\n ret.addAll(playerList);\n return ret;\n }",
"public List<Player> getPlayers() {\r\n\t\tList<Player> playerList = new ArrayList<Player>();\r\n\r\n\t\tfor (Player p : players.values()) {\r\n\t\t\tif (p != null)\r\n\t\t\t\tplayerList.add(p);\r\n\t\t}\r\n\r\n\t\treturn playerList;\r\n\t}",
"public List <FootballPlayer> getAllPlayers() {\n\t\treturn market.getAllPlayers();\n\t}",
"public Set<Player> getPlayers() {\n return players;\n }",
"public List<String> listPlayerNames() {\n return this.playersNames;\n }",
"protected ClientList getCurrentPlayers() {\r\n\t\treturn this.players;\r\n\t}",
"List<Player> getViewers();",
"public List<PlayerInfo> getPlayerList(GameInfo gi){\n\t\tClientModelFacade facade = ClientModelFacade.getInstance(null);\n\t\t\n\t\tGameInfo[] gameList = facade.getGamesList();\n\n\t\tfor(int i = 0; i < gameList.length; i++){\n\t\t\tif(gameList[i].getId() == gi.getId()){\n\t\t\t\treturn gameList[i].getPlayers();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public TennisPlayer[] getAllPlayers() throws TennisDatabaseRuntimeException {\n\t\t \t\n\t\tTennisPlayerContainerIterator iterator = this.iterator();\n\t\t\n iterator.setInorder();\n \t\n TennisPlayer[] outputArray = new TennisPlayer[playerCount];\n \n int index = 0;\n \n while (iterator.hasNext()) {\n \t\n outputArray[index] = iterator.next();\n \n index++;\n \n }\n \n return outputArray;\n \n\t}",
"public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }",
"public List<LobbyPlayer> getPlayers(String code) throws NoDocumentException {\n return Firebase.requestDocument(\"lobbies/\" + code).toObject(LobbyDTO.class).toModel().getPlayers();\n }",
"public ArrayList<CardGamePlayer> getPlayerList(){\n\t\treturn this.playerList;\n\t}",
"public List<Player> loadAll() throws SQLException {\n\t\tfinal Connection connection = _database.getConnection();\n\t\tfinal String sql = \"SELECT * FROM \" + table_name + \" ORDER BY id ASC \";\n\t\tfinal List<Player> searchResults = listQuery(connection.prepareStatement(sql));\n\n\t\treturn searchResults;\n\t}",
"public LinkedList<Player> getPlayers() {\n\t\treturn this.players;\n\t}",
"public static ArrayList<Player> getWinners(){return winners;}",
"public ResultSet getPlayers() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString playerRecords_sql = \"SELECT * FROM \" + player_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(playerRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}",
"@Override\r\n\tpublic ArrayList<PlayerPO> findPlayerByName(String name) {\n\t\treturn playerController.findPlayerByName(name);\r\n\t}",
"@Override\n public List<Player> getPlayerPage(int page) throws IndexOutOfBoundsException {\n page = page - 1;\n int bottom = page * 10;\n if(bottom < 0 || bottom\n > players.size()) {\n throw new IndexOutOfBoundsException();\n }\n int top;\n if(players.size() - bottom < 10) {\n top = players.size();\n } else {\n top = bottom + 10;\n }\n List<Player> playersList = new ArrayList<>(players);\n return playersList.subList(bottom, top);\n }",
"public Player getPlayerFromList(String name){\n for (Player player : players){\n if (player.getName().equals(name)){\n return player;\n }\n }\n return null; //This will never happen. Will always be found. Only called from the takeoverTerritory method\n }",
"public List<PlayerItem> getSpecific(int playerItemId);",
"public CopyOnWriteArrayList<Player> getPlayerList() \t\t\t\t\t\t\t{ return this.playerList; }",
"public List<Player> getByUserID(String userID) {\n PlayerDB pdb = new PlayerDB(); \n \n AccountService accService = new AccountService();\n User user = accService.getByUserID(userID);\n return pdb.getByUserID(user);\n }",
"public List<Player> getAllPlayersLimit(int limit) {\n\t\treturn repository.findAll(limit);\n\t}",
"public List<Result> getPlayerResults(Player player) {\t\n\t\treturn results.stream()\n\t\t\t\t.filter(result -> result.participated(player))\n\t\t\t\t.collect(Collectors.toList());\n\t}",
"public List<SkungeePlayer> getPlayers(String... usernames) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setNames(usernames);\n\t\treturn japson.sendPacket(packet);\n\t}",
"public Set<Player> getAllPlayers(Term term, PaginationFilter pagination);",
"public Set<String> getPlayers()\n\t{\n\t\tSet<String> player = playerPieces.keySet();\n\t\treturn player;\n\t}",
"public List<Colour> getPlayerList();",
"ArrayList<IPlayer> buildPlayerList();",
"@RequestMapping(value = \"/associations/{associationId}/players\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\t@Timed\n\tpublic ResponseEntity<List<Player>> getPlayers(@PathVariable Long associationId,Player player,Pageable pageable) throws URISyntaxException {\n\t\tlog.debug(\"REST request to get Association Players: {}\", associationId);\n\t\tPlayer example = new Player();\n\t\tAssociation exampleAssociation = new Association();\n\t\texampleAssociation.setId(associationId);\n\t\tTeam exampleTeam = new Team();\n\t\tClub exampleClub = new Club();\n\t\texampleClub.setAssociation(exampleAssociation);\n\t\texampleTeam.setClub(exampleClub);\n\t\texample.setTeam(exampleTeam);\n\t\texampleClub.setAssociation(exampleAssociation);\n example.setTeam(exampleTeam);\n Page<Player> page = playerRepository.findAll(Example.of(example),pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/associations/\"+associationId+\"/players\");\n\t\treturn new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n\t}",
"public List<SkungeePlayer> getPlayers(UUID... uuids) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setUniqueIds(uuids);\n\t\treturn japson.sendPacket(packet);\n\t}",
"public List<String> getRankingPlayer() throws IOException, ClassNotFoundException {\r\n return ctrlDomain.getRankingPlayer();\r\n }",
"void showWaitingPlayerList(List<String> waitingPlayerUsernames);",
"private List<String> receiveConnectedPlayers(@NotNull String data) {\n ConnectedPlayersDto result = GameGraphics.gson.fromJson(data, ConnectedPlayersDto.class);\n if (result.players != null) {\n players = result.players.stream()\n .filter(Objects::nonNull)\n .map(player -> player.name)\n .collect(Collectors.toList());\n return players;\n }\n return null;\n }",
"public List<Player> list() throws Exception {\r\n this.players = new ArrayList<>();\r\n File folder = new File(filepath);\r\n File[] files = folder.listFiles();\r\n for (int i = 0 ; i<files.length ; i++){\r\n if (files[i].isFile()){\r\n players.add(i,get(filepath+\"\\\\\"+files[i].getName()));\r\n }\r\n }\r\n return players;\r\n }",
"public Collection<Player> getPlayersChunk() {\n var chunk = new Chunk<Player>();\n var playersChunk = chunk.get(this.players, ALL_PLAYERS_CHUNK_SIZE, allPlayersChunkIndex);\n\n // up to ALL_PLAYERS_CHUNK_SIZE with empty players\n // to have an even view\n var startIndex = playersChunk.size();\n for (var i = startIndex; i < ALL_PLAYERS_CHUNK_SIZE; i++) {\n playersChunk.add(new Player(new Person()));\n }\n\n return playersChunk;\n }",
"public Hashtable<Integer, Player> getPlayers() {\r\n\t\treturn players;\r\n\t}",
"public List<Player> getPlayersInRoom() {\n\t\treturn playersInRoom;\n\t}",
"public CompactPlayer[] getPlayers()\n {\n return players;\n }",
"public ArrayList<CardGamePlayer> getPlayerList() {\n\t\treturn playerList;\n\t}",
"public static ArrayList<Player> getPlayerAry(){\n\t\treturn players;\n\t}",
"public abstract Collection<PlayerFish> getPlayers();",
"public List<SkungeePlayer> getPlayers(SkungeeServer... servers) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setServers(servers);\n\t\treturn japson.sendPacket(packet);\n\t}",
"@RequestMapping(value = \"/getPlaylist\", method = RequestMethod.GET)\r\n public @ResponseBody List<Playlist> getPlaylists() {\r\n return (List<Playlist>) this.playlistRepository.findAll();\r\n }",
"public List<Player> getPlayersOrdered() {\r\n ArrayList<Player> result = new ArrayList<>();\r\n for (PlayerContainer container : players) {\r\n result.add(container.player);\r\n }\r\n return result;\r\n }",
"private void getPlayers() {\r\n\t\tSystem.out.println(\"How Many Players: \");\r\n\t\tpnum = getNumber(1, 3);\r\n\r\n\t\tfor(int i=0; i < pnum; i++){\r\n\t\t\tSystem.out.println(\"What is player \" + (i + 1) + \"'s name? \");\r\n\t\t\tString name = sc.next();\r\n\t\t\tboolean dupe = true;\r\n\t\t\twhile(dupe){\r\n\t\t\t\tint samecounter = 0;\r\n\t\t\t\tfor(Player p : players){\r\n\t\t\t\t\tif(name.equals(p.getName())){\r\n\t\t\t\t\t\tsamecounter += 1;\r\n\t\t\t\t\t\tSystem.out.println(\"Name is the same as another players. Please choose another name: \");\r\n\t\t\t\t\t\tname = sc.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(samecounter == 0){\r\n\t\t\t\t\tdupe = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tplayers.add(new Player(name));\r\n\r\n\t\t}\r\n\t}",
"public void printAllPlayers(){\n for (Player player : players){\n player.printPlayerInfo();\n }\n }",
"public Map<String, Player> getPlayersMap(){\n return this.players;\n }",
"public static ArrayList<String> getPlayerInformation() {\n clearScreen();\n ArrayList<String> Names = new ArrayList<String>();\n for (int i = 1; i < 3; i++) {\n System.out.println(\"Player \" + i + \"'s Name:\");\n Names.add(Input.nextLine());\n clearScreen();\n }\n return Names;\n }",
"@Override\n\tpublic List<Player> getPlayersByPosition(String position) throws BusinessException {\n\t\tList<Player> playersByPosition = new ArrayList<>();\n\t\ttry {\n\t\t\tConnection connection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"select playerid, playername, teamid, age, position, dob from \\\"Test\\\".player where position = ?\";\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\t\t\tpreparedStatement.setString(1, position);\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tPlayer player = new Player();\n\t\t\t\tplayer.setPlayerid(resultSet.getInt(\"playerid\"));\n\t\t\t\tplayer.setPlayername(resultSet.getString(\"playername\"));\n\t\t\t\tplayer.setTeamid(resultSet.getInt(\"teamid\"));\n\t\t\t\tplayer.setAge(resultSet.getInt(\"age\"));\n\t\t\t\tplayer.setPosition(\"position\");\n\t\t\t\tplayer.setDob(resultSet.getDate(\"dob\"));\n\t\t\t\t\n\t\t\t\tplayersByPosition.add(player);\n\t\t\t}\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tthrow new BusinessException(\"Internal Error Ocurred\");\n\t\t}\n\t\t\n\t\treturn playersByPosition;\n\t}",
"int getNumberOfPlayers(){\n return players.size();\n }",
"private void loadPlayers() {\r\n this.passive_players.clear();\r\n this.clearRoster();\r\n //Map which holds the active and passive players' list\r\n Map<Boolean, List<PlayerFX>> m = ServiceHandler.getInstance().getDbService().getPlayersOfTeam(this.team.getID())\r\n .stream().map(PlayerFX::new)\r\n .collect(Collectors.partitioningBy(x -> x.isActive()));\r\n this.passive_players.addAll(m.get(false));\r\n m.get(true).stream().forEach(E -> {\r\n //System.out.println(\"positioning \"+E.toString());\r\n PlayerRosterPosition pos = this.getPlayerPosition(E.getCapnum());\r\n if (pos != null) {\r\n pos.setPlayer(E);\r\n }\r\n });\r\n }"
] | [
"0.83392984",
"0.8227275",
"0.81887025",
"0.7962936",
"0.79071426",
"0.7831788",
"0.78080696",
"0.77003205",
"0.76431936",
"0.76425916",
"0.7603698",
"0.7527202",
"0.7527202",
"0.7432823",
"0.73463875",
"0.7343782",
"0.73374903",
"0.7327547",
"0.7312871",
"0.72848326",
"0.72543347",
"0.7239281",
"0.72251385",
"0.7179763",
"0.7141079",
"0.7140937",
"0.7129314",
"0.709805",
"0.7062794",
"0.7055607",
"0.704076",
"0.7015834",
"0.70089936",
"0.6979643",
"0.69355553",
"0.69122076",
"0.6898557",
"0.6895427",
"0.68879855",
"0.6876197",
"0.6876197",
"0.6874236",
"0.68506384",
"0.6836705",
"0.6836687",
"0.681689",
"0.681594",
"0.6813069",
"0.6801682",
"0.67967343",
"0.6763894",
"0.675892",
"0.67528874",
"0.67479825",
"0.6735059",
"0.6688997",
"0.6683715",
"0.66797274",
"0.6676711",
"0.6649602",
"0.66385335",
"0.66227007",
"0.6620151",
"0.6611646",
"0.6583575",
"0.65503466",
"0.6535696",
"0.6523475",
"0.652311",
"0.65076685",
"0.6486492",
"0.6469956",
"0.64527553",
"0.64456546",
"0.64415205",
"0.6436495",
"0.64358014",
"0.6397039",
"0.6392713",
"0.6377987",
"0.63714844",
"0.6348735",
"0.6332572",
"0.63257015",
"0.6319824",
"0.63161343",
"0.6310427",
"0.630716",
"0.63036585",
"0.63033783",
"0.630039",
"0.6296417",
"0.62846",
"0.62829745",
"0.62550336",
"0.62377375",
"0.62363094",
"0.62282914",
"0.6227897",
"0.62225",
"0.6191419"
] | 0.0 | -1 |
first lets get club id for the logged in profile | public String getClubName(){
Integer clubid = 0;
String clubname = "";
ScahaDatabase db = (ScahaDatabase) ContextManager.getDatabase("ScahaDatabase");
try{
Vector<Integer> v = new Vector<Integer>();
v.add(this.getProfid());
db.getData("CALL scaha.getClubforPerson(?)", v);
if (db.getResultSet() != null){
//need to add to an array
rs = db.getResultSet();
while (rs.next()) {
this.clubid = rs.getInt("idclub");
}
LOGGER.info("We have results for club for a profile");
}
rs.close();
db.cleanup();
//now lets retrieve club name
v = new Vector<Integer>();
v.add(this.clubid);
db.getData("CALL scaha.getClubNamebyId(?)", v);
if (db.getResultSet() != null){
//need to add to an array
rs = db.getResultSet();
while (rs.next()) {
clubname = rs.getString("clubname");
}
LOGGER.info("We have results for club name");
}
rs.close();
db.cleanup();
} catch (SQLException e) {
// TODO Auto-generated catch block
LOGGER.info("ERROR IN loading club by profile");
e.printStackTrace();
db.rollback();
} finally {
//
// always clean up after yourself..
//
db.free();
}
return clubname;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getProfile_id() {\n return profileID;\n }",
"private long getOwnID(){\n return authenticationController.getMember() == null ? -1 :authenticationController.getMember().getID();\n }",
"String getUserID();",
"Profile getProfile( String profileId );",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"public String getProfileId() {\n return profileId;\n }",
"public String getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"long getPlayerId();",
"public Integer getProfileId() {\n return _profileId;\n }",
"java.lang.String getPlayerId();",
"Club getOne(Integer idClub);",
"String getGameId();",
"java.lang.String getLobbyId();",
"TasteProfile.UserProfile getUserProfile (String user_id);",
"public String getClubname() {\n\t\treturn clubname;\r\n\t}",
"String getProfile();",
"public Integer getClubTeamId() {\n\t\treturn clubTeamId;\n\t}",
"String getTheirPartyId();",
"String getCampoId();",
"int getPlayerId();",
"int getPlayerId();",
"private String getTopcatSessionId() {\r\n HttpServletRequest request = this.getThreadLocalRequest();\r\n HttpSession session = request.getSession();\r\n String sessionId = null;\r\n if (session.getAttribute(\"SESSION_ID\") == null) { // First time login\r\n try {\r\n sessionId = userManager.login();\r\n session.setAttribute(\"SESSION_ID\", sessionId);\r\n } catch (AuthenticationException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n } else {\r\n sessionId = (String) session.getAttribute(\"SESSION_ID\");\r\n }\r\n return sessionId;\r\n }",
"@Override\n\tpublic Profile getProfile(long profileId) {\n\t\treturn null;\n\t}",
"protected Integer getCurrentUtilityId() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n AuthenticatedUser user = null;\n\n if (auth.getPrincipal() instanceof AuthenticatedUser) {\n user = (AuthenticatedUser) auth.getPrincipal();\n }\n\n if (user != null) {\n return user.getUtilityId();\n }\n\n return null;\n }",
"String getLoginId();",
"UUID getActivePlayerId();",
"String getSessionID();",
"String getSessionID();",
"long getSteamID();",
"protected String getCourseID(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"ID\", sharedPref.getString(\"id\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_COURSE, null);\n }",
"public String getProfileId() {\n\t\treturn mProfileId;\n\t}",
"public BigDecimal getPROFILE_ID() {\r\n return PROFILE_ID;\r\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}",
"public int getUser1_ID();",
"public int getUser1_ID();",
"private static UserInfo getUserInfoStandardSession(int idUser)\n {\n User user = null;\n Squad squad = null;\n int countPost = 0;\n int invitationsAvailable = 0;\n try\n {\n user = DAOFactory.getInstance().getUserDAO().getFetched(idUser);\n if (user == null)\n {\n return new UserInfo();\n }\n //squad = DAOFactory.getInstance().getSquadDAO().getFirstByIdUser(idUser);\n squad = user.getFirstSquad();\n countPost = DAOFactory.getInstance().getMatchCommentDAO().countByIdUser(idUser);\n invitationsAvailable = user.getMaxInvitations() - DAOFactory.getInstance().getUserInvitationDAO().getCountUsed(idUser);\n if (invitationsAvailable < 0)\n {\n invitationsAvailable = 0;\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving user info: \" + ex.getMessage());\n }\n boolean squadMarketEnabled = false;\n if (squad != null)\n {\n squadMarketEnabled = squad.getMarketEnabled() && !squad.getHiddenEnabled();\n }\n else\n {\n logger.error(String.format(\"Error on data about iduser %s: User must have almost one squad!!\", idUser));\n }\n // Set values\n Language language = ActionContext.getContext() != null ? UserContext.getInstance().getLanguage() : LanguageManager.chooseUserLanguage(user);\n Cobrand currentCobrand = ActionContext.getContext() != null ? UserContext.getInstance().getCurrentCobrand() : getCobrandByCode(user.getCobrandCode());\n UserInfo userInfo = new UserInfo();\n userInfo.setId(user.getId());\n userInfo.setName(user.getFirstName());\n userInfo.setAnonymousEnabled(user.getAnonymousEnabled());\n\n if (userInfo.isAnonymousEnabled())\n {\n userInfo.setSurname(StringUtils.left(user.getLastName(), 1) + '.');\n }\n else\n {\n userInfo.setSurname(user.getLastName());\n }\n\n userInfo.setCompleteSurname(user.getLastName());\n\n userInfo.setEmail(user.getEmail());\n userInfo.setRecordedMatches(user.getRecordedMatches());\n userInfo.setRecordedChallenges(user.getRecordedChallenges());\n userInfo.setPlayedMatches(user.getPlayedMatches());\n userInfo.setPlayedChallenges(user.getPlayedChallenges());\n userInfo.setCity(user.getCity().getName());\n userInfo.setProvince(user.getProvince().getName());\n userInfo.setCountry(user.getCountry().getName());\n userInfo.setIdCountry(user.getCountry().getId());\n userInfo.setIdProvince(user.getProvince() != null ? user.getProvince().getId() : 0);\n userInfo.setIdCity(user.getCity() != null ? user.getCity().getId() : 0);\n if (user.getNationalityCountry() != null)\n {\n userInfo.setIdNatCountry(user.getNationalityCountry().getId());\n userInfo.setNatCountry(user.getNationalityCountry().getName());\n }\n userInfo.setCreated(user.getCreated());\n userInfo.setBirthdayCity((user.getBirthdayCity() != null) ? user.getBirthdayCity().getName() : EMPTY_FIELD);\n userInfo.setBirthdayProvince((user.getBirthdayProvince() != null) ? user.getBirthdayProvince().getName() : EMPTY_FIELD);\n userInfo.setBirthdayCountry((user.getBirthdayCountry() != null) ? user.getBirthdayCountry().getName() : EMPTY_FIELD);\n userInfo.setPlayerFoot((user.getPlayerFoot() == null) ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerFoot().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setPlayerFootKeyName((user.getPlayerFoot() == null) ? EMPTY_FIELD : user.getPlayerFoot().getKeyName());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setPlayerRole(user.getPlayerRole() == null ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerRole().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setIdPlayerRole(user.getPlayerRole().getId());\n userInfo.setPlayerRoleKey(user.getPlayerRole().getKeyName());\n userInfo.setPlayerMainFeature(user.getPlayerMainFeature() == null ? EMPTY_FIELD : user.getPlayerMainFeature());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setAge((user.getBirthDay() != null) ? Utils.getAgefromDate(user.getBirthDay()) : EMPTY_FIELD);\n userInfo.setPlayerHeight((user.getPlayerHeight() != null) ? String.valueOf(user.getPlayerHeight()) : EMPTY_FIELD);\n userInfo.setPlayerWeight((user.getPlayerWeight() != null) ? String.valueOf(user.getPlayerWeight()) : EMPTY_FIELD);\n userInfo.setFootballTeam((user.getFootballTeam() != null) ? user.getFootballTeam().getName() : EMPTY_FIELD);\n userInfo.setPhysicalConditionKey((user.getPhysicalCondition() != null) ? user.getPhysicalCondition().getKeyName() : \"label.condizioneFisica.nonPervenuta\");\n userInfo.setIdPhysicalCondition((user.getPhysicalCondition() != null) ? String.valueOf(user.getPhysicalCondition().getId()) : EMPTY_FIELD);\n userInfo.setInfoFavouritePlayer((user.getInfoFavouritePlayer() != null) ? user.getInfoFavouritePlayer() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setInfoHobby((user.getInfoHobby() != null) ? user.getInfoHobby() : EMPTY_FIELD);\n userInfo.setInfoAnnounce((user.getInfoAnnounce() != null) ? user.getInfoAnnounce() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setPlayerTitle((user.getPlayerTitle() != null) ? user.getPlayerTitle() : EMPTY_FIELD);\n //userInfo.setPlayedMatches(user.getRecordedMatches() + user.getRecordedChallenges());//SBAGLIATO TODO,sono le organizzate\n userInfo.setCountryFlagName(String.format(\"%1$s%2$s\", Constants.COUNTRY_FLAG_IMAGE_PREFIX, user.getCountry().getId()));\n userInfo.setBirthday(user.getBirthDay());\n userInfo.setMarketEnabled(user.getMarketEnabled());\n userInfo.setSquadMarketEnabled(squadMarketEnabled);\n userInfo.setStatus(user.getEnumUserStatus());\n userInfo.setAlertOnMatchRegistrationOpen(user.getAlertOnRegistrationStart());\n //userInfo.setPlayedMatches(StatisticManager.getPlayed(userInfo.getId()));//Att è una query in piu'\n\n userInfo.setPostCount(countPost);\n userInfo.setInvitationsAvailable(invitationsAvailable);\n\n //Facebook\n userInfo.setFacebookIdUser(user.getFacebookIdUser());\n userInfo.setFacebookAccessToken(user.getFacebookAccessToken());\n userInfo.setFacebookPostOnMatchCreation(user.isFacebookPostOnMatchCreation());\n userInfo.setFacebookPostOnMatchRecorded(user.isFacebookPostOnMatchRecorded());\n userInfo.setFacebookPostOnMatchRegistration(user.isFacebookPostOnMatchRegistration());\n\n try\n {\n PictureCard pictureCard = null;\n if (user.getEnumUserStatus().equals(EnumUserStatus.Pending))\n {\n pictureCard = DAOFactory.getInstance().getPictureCardDAO().getByStatus(idUser, EnumPictureCardStatus.Pending);\n if (pictureCard != null)\n {\n userInfo.loadPictureCard(pictureCard);\n }\n }\n else\n {\n for (PictureCard pic : user.getPictureCards())\n {\n if (pic.getEnumPictureCardStatus().equals(EnumPictureCardStatus.Current))\n {\n userInfo.loadPictureCard(pic);\n break;\n }\n }\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving current picture card in getUserInfo()\", ex);\n }\n return userInfo;\n\n }",
"protected String getID(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"ID\", sharedPref.getString(\"id\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_ID, null);\n }",
"int getParticipantNum(long runningSportId);",
"ParticipantId getId();",
"public T getSelectedProfile(int Id);",
"private String getCurrentUserId() {\n\t\tUser currentUser = UserDirectoryService.getCurrentUser();\n \tString currentUserId = currentUser.getId();\n\t\treturn currentUserId;\n\t}",
"public String getProfile();",
"public String getUserID(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_ID, null);\n }",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"int getLoginId();",
"@Override\n\tpublic long getUserId() {\n\t\treturn _esfTournament.getUserId();\n\t}",
"java.lang.String getProfileURL();",
"long getLoginId();",
"long getLoginId();",
"long getLoginId();",
"public static String getCurrentUserOrgId() {\n DirectoryManager directoryManager = (DirectoryManager) appContext.getBean(\"directoryManager\");\n String username = getCurrentUsername();\n return Optional.of(username)\n .map(directoryManager::getUserByUsername)\n .map(User::getEmployments)\n .map(o -> (Set<Employment>)o)\n .map(Collection::stream)\n .orElseGet(Stream::empty)\n .findFirst()\n .map(Employment::getOrganizationId)\n .orElse(\"\");\n }",
"public int getPlayerId();",
"void getProfile(@NonNull final String profileId, @Nullable Callback<ComapiResult<ComapiProfile>> callback);",
"public int getUser1W_ID();",
"java.lang.String getFriendId();",
"java.lang.String getFriendId();",
"int getClientSessionID();",
"public int get_crimeid() {\r\n return _crimeid;\r\n }",
"private long getInitId() {\n if (self.getQuorumVerifier().getVotingMembers().containsKey(self.getMyId())) {\n return self.getMyId();\n } else {\n return Long.MIN_VALUE;\n }\n }",
"java.lang.String getSessionID();",
"public Long getUserID() {\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n return getByUsername(authentication.getName()).getId();\n }",
"public Integer getCoachid() {\n return coachid;\n }",
"@Override\n public String getUserID() {\n return user_id;\n }",
"public int getUser1Z_ID();",
"String getUserId();",
"String getUserId();",
"public int getMember(){\n String memberString = member.getSelectedItem().toString();\n int memberId = this.memberMap.get(memberString);\n \n System.out.println(\"getMember2: \"+ memberString +\",\"+ memberId);\n return memberId;\n }",
"java.lang.String getUserIdOne();",
"java.lang.String getLoginId();",
"@Override\r\n public Profile getProfileById(int id) {\r\n return profileDAO.getProfileById(id);\r\n }",
"public int getUser1Y_ID();",
"H getProfile();",
"public int getUser1X_ID();",
"Accessprofile getById(Integer id);",
"public void setCurrentClub() {\n Object id = BridgeUI.user.getCurrentClubId();\n if (id != null) {\n calendar.filterEventOwnerId(id);\n setClubName(id);\n }\n }",
"long getHeroId();",
"long getUserId();",
"long getUserId();"
] | [
"0.6273116",
"0.6212295",
"0.5968173",
"0.5944456",
"0.58977664",
"0.58977664",
"0.58977664",
"0.5885397",
"0.5826484",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.58242166",
"0.5773219",
"0.5771409",
"0.5766215",
"0.57614905",
"0.5747763",
"0.573036",
"0.5729608",
"0.5728817",
"0.56841254",
"0.56754804",
"0.5602747",
"0.5594116",
"0.558635",
"0.558635",
"0.55478543",
"0.55438375",
"0.5534219",
"0.55322456",
"0.55304456",
"0.5530026",
"0.5530026",
"0.5528118",
"0.5512874",
"0.55102676",
"0.5503419",
"0.5501421",
"0.55011666",
"0.55011666",
"0.54923993",
"0.54814255",
"0.54811525",
"0.5476593",
"0.5467568",
"0.5463594",
"0.5435458",
"0.5432916",
"0.5432801",
"0.5432801",
"0.5432801",
"0.5432801",
"0.5432801",
"0.54285353",
"0.5428272",
"0.54219824",
"0.54219824",
"0.54219824",
"0.5420075",
"0.54118454",
"0.54034394",
"0.5396508",
"0.53951764",
"0.53951764",
"0.5390257",
"0.53855795",
"0.5385082",
"0.5384678",
"0.53794867",
"0.5377411",
"0.5372392",
"0.53660417",
"0.5359177",
"0.5359177",
"0.5339755",
"0.53363496",
"0.5336143",
"0.53343296",
"0.53292334",
"0.5316354",
"0.5305892",
"0.53001386",
"0.52998394",
"0.5283765",
"0.5283378",
"0.5283378"
] | 0.6323694 | 0 |
Execute command using a given data modification transaction. | void execute(final ReadWriteTransaction readWriteTransaction); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VisibleForTesting\n public void executeTransaction(ClientTransaction transaction) {\n transaction.preExecute(this);\n getTransactionExecutor().execute(transaction);\n transaction.recycle();\n }",
"public void executeTransaction(Transaction transaction) {\n logger.info(\"Execute money transaction: {}\", transaction);\n validateTransaction(transaction);\n transferHKD(transaction);\n }",
"@Override\n\tpublic void execute() throws TranslatorException {\n\n\t\tif (command instanceof Update) {\n\t\t\texecuteUpdate();\n\t\t}\n\t\telse if (command instanceof Delete) {\n\t\t\texecuteDelete();\n\t\t}\n\t\telse if (command instanceof Insert) {\n\t\t\texecuteInsert();\n\t\t}\n//\t\telse {\n// final String msg = LDAPPlugin.Util.getString(\"LDAPUpdateExecution.incorrectCommandError\"); //$NON-NLS-1$\n//\t\t\tthrow new TranslatorException(msg);\n//\t\t}\n\t}",
"public State execute(int command, State state);",
"void excuteCommand(Command commandToExecute, String [] params);",
"void execute() throws CommandExecutionException;",
"private void executeTransaction(ArrayList<Request> transaction) {\n // create a new TransactionMessage\n TransactionMessage tm = new TransactionMessage(transaction);\n //if(tm.getStatementCode(0)!=8&&tm.getStatementCode(0)!=14)\n // return;\n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(tm);\n oos.flush();\n\n byte[] data = bos.toByteArray();\n\n byte[] buffer = null;\n long startTime = System.currentTimeMillis();\n buffer = clientShim.execute(data);\n long endTime = System.currentTimeMillis();\n if (reqIndex < maxNoOfRequests && id > 0) {\n System.out.println(\"#req\" + reqIndex + \" \" + startTime + \" \" + endTime + \" \" + id);\n }\n reqIndex++;\n\n father.addTransaction();\n\n // IN THE MEAN TIME THE INTERACTION IS BEING EXECUTED\n\n\t\t\t\t/*\n\t\t\t\t * possible values of r: 0: commit 1: rollback 2: error\n\t\t\t\t */\n int r = ByteBuffer.wrap(buffer).getInt();\n //System.out.println(\"r = \"+r);\n if (r == 0) {\n father.addCommit();\n } else if (r == 1) {\n father.addRollback();\n } else {\n father.addError();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"CommandResult execute(String commandText) throws Exception;",
"CommandResult execute();",
"<T extends Command> T execute(T command);",
"public void execute(Command command, T component);",
"CommandResult execute(String commandText) throws CommandException, ParseException, UnmappedPanelException;",
"public void execute(DatabaseOperation operation ,IDataSet dataSet) throws Exception{\n \toperation.execute(conn, dataSet);\n }",
"CommandResult execute(String commandText) throws CommandException, ParseException;",
"CommandResult execute(String commandText) throws CommandException, ParseException;",
"CommandResult execute(String commandText) throws CommandException, ParseException;",
"private void executeCommand() {\n\t\texpression += operand;\n\t\tdouble execute = command.execute(expression);\n\t\toperand = new StringBuilder(Double.toString(execute));\n\t\tfirstOperand = true;\n\t}",
"public void updateTransaction(Transaction trans);",
"public void coordinate(final Command command) \n\t\t\t\tthrows PersistenceException{\n CommandExecuter4Public executer;\n\t\tif (!this.getExecuter().iterator().hasNext()){\n\t\t\texecuter = CommandExecuter.createCommandExecuter();\n\t\t\tthis.getExecuter().add(executer);\n\t\t\t\n\t\t}\n\t\texecuter = this.getExecuter().iterator().next();\n\t\tif (!executer.isAlive()) throw new PersistenceException(\"Fatal error: Transaction executer has terminated!\", 0);\n\t\texecuter.commandPut(command);\n }",
"public void execute(Command command){\n command.run(field);\n }",
"<T> T executeInTransaction(OperationsCallback<K, V, T> callback);",
"@Override\n public Object transaction(DAOCommand command) {\n Object result = null;\n try {\n openConnection();\n startTransaction();\n result = command.execute(this);\n commitTransaction();\n } catch (DAOManagerException e) {\n LOGGER.error(e);\n rollbackTransaction();\n }\n return result;\n }",
"@Override\n public abstract void apply(PersistentFileTransaction transaction);",
"public void execute(OrderTransactionIfc transaction, JdbcTemplate connection)\n throws DataException\n {\n if (logger.isDebugEnabled())\n logger.debug(\"JdbcSaveRetailTransactionLineItems.execute()\");\n\n \n insertOrder(connection, transaction);\n\n if (logger.isDebugEnabled())\n logger.debug(\"JdbcSaveRetailTransactionLineItems.execute()\");\n }",
"@Override\r\n\tpublic void executeOnStatement(XDI3Statement targetStatement, Operation operation, MessageResult messageResult, ExecutionContext executionContext) throws Xdi2MessagingException {\r\n\r\n\t\t// execute on statement\r\n\r\n\t\tif (operation instanceof GetOperation)\r\n\t\t\tthis.executeGetOnStatement(targetStatement, (GetOperation) operation, messageResult, executionContext);\r\n\t\telse if (operation instanceof AddOperation)\r\n\t\t\tthis.executeAddOnStatement(targetStatement, (AddOperation) operation, messageResult, executionContext);\r\n\t\telse if (operation instanceof ModOperation)\r\n\t\t\tthis.executeModOnStatement(targetStatement, (ModOperation) operation, messageResult, executionContext);\r\n\t\telse if (operation instanceof DelOperation)\r\n\t\t\tthis.executeDelOnStatement(targetStatement, (DelOperation) operation, messageResult, executionContext);\r\n\t\telse if (operation instanceof DoOperation)\r\n\t\t\tthis.executeDoOnStatement(targetStatement, (DoOperation) operation, messageResult, executionContext);\r\n\t\telse\r\n\t\t\tthrow new Xdi2MessagingException(\"Unknown operation: \" + operation.getOperationXri(), null, executionContext);\r\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tif (runState != 0) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\trunState = 1;\n\t\t\t\tif (om == null) \n\t\t\t\t\tom = new OracleManager();\n\t\t\t\tResultSet rs = om.getTivoliData();\n\t\t\t\tif (rs == null) {\n\t\t\t\t\trunState = 0;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (sm == null)\n\t\t\t\t\tsm = new SybaseManager();\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tif(!sm.insertTivoliData(rs)) { //如果插入数据失败,直接返回,等待下次插入\n\t\t\t\t\t\trunState = 0;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//如果修改失败,直接返回,下次重新插入和修改\n\t\t\t\t\t\tif (!om.setTivoliData(rs.getString(\"I_ID\"))) {\n\t\t\t\t\t\t\trunState = 0;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trunState = 0;\n\t\t\t}\n\t\t\tcatch (Exception ex) {\n\t\t\t\tlogger.error(\"执行错误:\" + ex.toString());\n\t\t\t\trunState = 0;\n\t\t\t}\n\t\t}",
"void transactTo_execCommand(int code, String transactName, ComponentName who, String param, int userId) {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n IBinder binder = ServiceManager.getService(\"device_policy\");\n if (binder != null) {\n if (HWFLOW) {\n Log.i(TAG, \"Transact: \" + transactName + \" to device policy manager service.\");\n }\n _data.writeInterfaceToken(ConstantValue.DESCRIPTOR);\n if (who != null) {\n _data.writeInt(1);\n who.writeToParcel(_data, 0);\n } else {\n _data.writeInt(0);\n }\n _data.writeString(param);\n _data.writeInt(userId);\n binder.transact(code, _data, _reply, 0);\n _reply.readException();\n }\n _reply.recycle();\n _data.recycle();\n } catch (RemoteException localRemoteException) {\n Log.e(TAG, \"transactTo \" + transactName + \" failed: \" + localRemoteException.getMessage());\n } catch (Throwable th) {\n _reply.recycle();\n _data.recycle();\n }\n }",
"@Override\n\tsynchronized void execute() {\n\t\t_dataOUTPipe.dataIN(op1.getText());\n\t\t_dataOUTPipe.dataIN(op2.getText());\n\t\t_dataOUTPipe.dataIN(op.getText());\n\t}",
"@Override\n public void execute(Work work) {\n final Session session = (Session) entityManager.getDelegate();\n session.doWork(work);\n }",
"public static void execute(String command) {\r\n\t\tif (isConnected()) try {\r\n\t\t\tConsole.sql(command);\r\n\t\t\tcon.createStatement().executeUpdate(command);\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void execute(int arg) throws DataAccessException {\n\t\tsuper.execute(memory.getData(arg));\n\t}",
"void transactTo_execCommand(int code, String transactName, ComponentName who, Map param, int userId) {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n IBinder binder = ServiceManager.getService(\"device_policy\");\n if (binder != null) {\n if (HWFLOW) {\n Log.i(TAG, \"Transact:\" + transactName + \" to device policy manager service.code is \" + code);\n }\n _data.writeInterfaceToken(ConstantValue.DESCRIPTOR);\n if (who != null) {\n _data.writeInt(1);\n who.writeToParcel(_data, 0);\n } else {\n _data.writeInt(0);\n }\n _data.writeMap(param);\n _data.writeInt(userId);\n binder.transact(code, _data, _reply, 0);\n _reply.readException();\n }\n _reply.recycle();\n _data.recycle();\n } catch (RemoteException localRemoteException) {\n Log.e(TAG, \"transactTo \" + transactName + \" failed: \" + localRemoteException.getMessage());\n } catch (Throwable th) {\n _reply.recycle();\n _data.recycle();\n }\n }",
"Command handleExecute(CommandExecute commandExecute);",
"void transactTo_execCommand(int code, String transactName, ComponentName who, Map param1, String param2, int userId) {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n IBinder binder = ServiceManager.getService(\"device_policy\");\n if (binder != null) {\n if (HWFLOW) {\n Log.i(TAG, \"Transact:\" + transactName + \" to device policy manager service. code is \" + code);\n }\n _data.writeInterfaceToken(ConstantValue.DESCRIPTOR);\n if (who != null) {\n _data.writeInt(1);\n who.writeToParcel(_data, 0);\n } else {\n _data.writeInt(0);\n }\n _data.writeMap(param1);\n _data.writeString(param2);\n _data.writeInt(userId);\n binder.transact(code, _data, _reply, 0);\n _reply.readException();\n }\n _reply.recycle();\n _data.recycle();\n } catch (RemoteException localRemoteException) {\n Log.e(TAG, \"transactTo \" + transactName + \" failed: \" + localRemoteException.getMessage());\n } catch (Throwable th) {\n _reply.recycle();\n _data.recycle();\n }\n }",
"public Object executeScript(String command);",
"@Test\n\tpublic void execute() {\n\t\tcommand.execute(request);\n\t}",
"public<ResultType> ResultType executeTransaction(Transaction<ResultType> txn) {\n\t\ttry {\n\t\t\treturn doExecuteTransaction(txn);\n\t\t} catch (SQLException e) {\n\t\t\tthrow new PersistenceException(\"Transaction failed\", e);\n\t\t}\n\t}",
"public void executeUpdate();",
"private void operate(int command, Context context) {\n\n switch (command) {\n case OPER_TYPE_DEL:\n for (int i = selectedEntities.size() - 1; i >= 0; i--) {\n if (selectedEntities.size() < i) {\n break;\n }\n FileInfo fi = selectedEntities.get(i);\n if(fi==null){\n continue;\n }\n file = fi.getFile();\n recursiveDelete(file);\n }\n break;\n case OPER_TYPE_CUT:\n recursiveCut(initPathList(this.selectedEntities), destination);\n break;\n case OPER_TYPE_COPY:\n recursiveCopy(OperationUtil.selectedEntities, destination, true);\n break;\n case OPER_TYPE_MOVE_PRIVACY:\n moveInPrivacy(initPathList(this.selectedEntities), destination, context);\n break;\n }\n updateEndOnFiles(OperationUtil.getOperType());\n Logs.i(\"toSelectedString\", \"duplicated --\" + this.duplicated.size());\n }",
"void transactTo_execCommand(int code, String transactName, ComponentName who, int userId) {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n IBinder binder = ServiceManager.getService(\"device_policy\");\n if (binder != null) {\n if (HWFLOW) {\n Log.i(TAG, \"Transact: \" + transactName + \" to device policy manager service.\");\n }\n _data.writeInterfaceToken(ConstantValue.DESCRIPTOR);\n if (who != null) {\n _data.writeInt(1);\n who.writeToParcel(_data, 0);\n } else {\n _data.writeInt(0);\n }\n _data.writeInt(userId);\n binder.transact(code, _data, _reply, 0);\n _reply.readException();\n }\n _reply.recycle();\n _data.recycle();\n } catch (RemoteException localRemoteException) {\n Log.e(TAG, \"transactTo \" + transactName + \" failed: \" + localRemoteException.getMessage());\n } catch (Throwable th) {\n _reply.recycle();\n _data.recycle();\n }\n }",
"public void executeCommand(Command c) {\n\t\tc.execute();\n\t\tlastCommand = c;\n\t}",
"public OperationStatus execute(T operation) throws AbstractAgentException;",
"protected void doDML(int operation, TransactionEvent e) {\n super.doDML(operation, e);\n }",
"protected void doDML(int operation, TransactionEvent e) {\n super.doDML(operation, e);\n }",
"protected void doDML(int operation, TransactionEvent e) {\n super.doDML(operation, e);\n }",
"protected void doDML(int operation, TransactionEvent e) {\n super.doDML(operation, e);\n }",
"@Override\n\tpublic void execute(DataTransactionIfc paramDataTransactionIfc, DataConnectionIfc paramDataConnectionIfc,\n\t\t\tDataActionIfc paramDataActionIfc) throws DataException {\n\t\t\n\t}",
"public <T> T execute(final HibernateCallback<T> action) throws TransactionException {\n try {\n return _transactionTemplate.execute(new TransactionCallback<T>() {\n @Override\n public T doInTransaction(final TransactionStatus status) {\n return _hibernateTemplate.execute(action);\n }\n });\n } catch (final DataAccessException ex) {\n throw fixSQLExceptionCause(ex);\n }\n }",
"boolean executeCommand(ICommand _command) throws Exception;",
"T execute() throws MageException;",
"public abstract void doCommand(String command);",
"private void executeUpdate()\n\t\t\tthrows TranslatorException {\n\t\tUpdate ucommand = (Update) command;\t\n\t\t\n\t\tTable t = metadata.getTable(ucommand.getTable().getMetadataObject().getFullName());\n//\t\tList<ForeignKey> fks = t.getForeignKeys();\n\t\t\n\t\t// if the table has a foreign key, its must be a child (contained) object in the root\n\t\tif (t.getForeignKeys() != null && t.getForeignKeys().size() > 0) {\n\t\t\t updateChildObject(t);\n\t\t\t return;\n\t\t}\n\n\t}",
"public void execute() {\n execute0();\n }",
"public interface Transaction {\n void Execute();\n}",
"public void executeTransfer(int op_id, int tr_amount, int from_account, int to_account, int from_final_balance,\n int to_final_balance, Connection con) throws SQLException {\n\n PreparedStatement stmt = con.prepareStatement(\n \"insert into OPERATIONS (OP_ID, OP_TYPE, MV_AMOUNT, FROM_ACCOUNT_ID, TO_ACCOUNT_ID, FROM_CURRENT_BALANCE, \" +\n \"TO_CURRENT_BALANCE, TIMESTAMP) values (?,?,?,?,?,?,?,?)\");\n\n stmt.setInt(1, op_id);\n stmt.setInt(2, OP_TYPES.valueOf(\"TRANSFER\").ordinal()+1);\n stmt.setInt(3, tr_amount);\n stmt.setInt(4, from_account);\n stmt.setInt(5, to_account);\n stmt.setInt(6, from_final_balance);\n stmt.setInt(7, to_final_balance);\n stmt.setTimestamp(8, new Timestamp(System.currentTimeMillis()));\n stmt.execute();\n stmt.close();\n }",
"protected abstract void execute();",
"@Override\n\tpublic void execute() {\n\t\trecevier.doSomething();\n\t}",
"public void executeCommand(Command command) {\n\t\tcommand.execute();\n\t\tundoStack.push(command);\n\t}",
"public void executeUndoCommand(){\n for (Command command: undoStack) {\n command.execute();\n }\n }",
"public void executeCommand (String name) throws CommandeException\n\t{\n\t\t//System.out.println(\"entrer dans execute\");\n\t\t CommandInterface usercommand = listedescommande.get(name);\n\t if (usercommand == null) {\n\t \t//System.out.println(\"erreur de commande\");\n\t throw new CommandeException(name);\n\t }\n\t usercommand.apply();\n\t //System.out.println(\"passe apres interpretreur\");\n\t}",
"@Override\n public void executeAction(IData mainTrade) throws Exception\n {\n String userId = mainTrade.getString(\"USER_ID\");\n String userIdA = mainTrade.getString(\"RSRV_STR2\");\n UserInfoQry.updateTrunkByUserId(userId, userIdA);\n\n }",
"public void sqlCommand(String command) {\n mDataBase.execSQL(command);\n }",
"@SuppressWarnings(\"unchecked\")\n public void execute() {\n execute(null, null);\n }",
"public abstract int execUpdate(String query) ;",
"protected void execute() {}",
"private void executeCommand() {\n Command command = null;\n\n switch (commandType) {\n case LIST:\n command = new ListCommand(taskManager, parameterData.getDescription());\n break;\n case DONE:\n command = new DoneCommand(taskManager, parameterData.getTaskNumber());\n break;\n case TODO:\n command = new AddCommand(taskManager, TaskType.TODO, parameterData.getDescription());\n break;\n case DEADLINE:\n command = new AddCommand(taskManager,\n TaskType.DEADLINE, parameterData.getDescription(),\n parameterData.getDateTime());\n break;\n case EVENT:\n command = new AddCommand(taskManager,\n TaskType.EVENT, parameterData.getDescription(),\n parameterData.getDateTime());\n break;\n case DELETE:\n command = new DeleteCommand(taskManager, parameterData.getTaskNumber());\n break;\n case BYE:\n command = new ByeCommand(taskManager);\n break;\n case FIND:\n command = new FindCommand(taskManager,\n parameterData.getFilterString(),\n parameterData.getMatchDate(),\n parameterData.getTimeSearch());\n break;\n case HELP:\n command = new HelpCommand(taskManager);\n break;\n default:\n commandUi.printNoCommandRan();\n }\n\n try {\n command.execute();\n } catch (IndexOutOfBoundsException e) {\n commandUi.printTaskDoneNotInRange();\n } catch (IllegalStateException e) {\n commandUi.printInvalidParameters();\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}",
"@Override\n\tpublic CommandResult execute(CommandSource sender, CommandContext args)throws CommandException {\n\t\tif (sender instanceof Player) {\n \n\t\t\tPlayer player = (Player) sender;\n String playerName;\n\t\t\tint numberOfTransactions;\n\n if(args.getOne(\"numberOfTransactions\").isPresent()){\n \tnumberOfTransactions = (Integer) args.getOne(\"numberOfTransactions\").get();\n }else{\n \tnumberOfTransactions = 10;\n }\n if(args.getOne(\"playerName\").isPresent()){\n \tif(player.hasPermission(\"whippyconomy.accHistory.others\")){ \t\t\n \t\tplayerName = (String) args.getOne(\"playerName\").get();\n \t}else{\n \t\tplayer.sendMessage(Texts.builder(\"You do not have permission to sue that command\").color(TextColors.RED).build());\n \t\treturn CommandResult.empty();\n \t}\n }else{\n \tplayerName = player.getName();\n }\n List<Payment> transactions = EconomyCache.getLastTransactions(player, playerName);\n\t\t\t\n\t\t\tif(transactions.size()==0){\n\t\t\t\tplayer.sendMessage(Texts.builder(\"No transactions found\").color(TextColors.BLUE).build());\n\t\t\t}else{\n\t\t\t\tint size = transactions.size();\n\t\t\t\tif(size < numberOfTransactions){\n\t\t\t\t\tfor(int i = 0; i<transactions.size(); i++){\n\t\t\t\t\t\tPayment transaction = transactions.get(i);\n\t\t\t\t\t\tplayer.sendMessage(transaction.toText(player.getName()));\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int i = transactions.size()-numberOfTransactions; i<transactions.size(); i++){\n\t\t\t\t\t\tPayment transaction = transactions.get(i);\n\t\t\t\t\t\tplayer.sendMessage(transaction.toText(player.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n \n } else {\n \tStaticsHandler.getLogger().warn(\"Transactions called by non player entity\");\n \treturn CommandResult.empty();\n }\n\t\treturn CommandResult.success();\n\n }",
"public void execute();",
"public void execute();",
"public void execute();",
"public void execute();",
"protected void execute() {\n \t\n }",
"protected void execute() {\n \t\n }",
"@Override\n public void process(Serializable msg) {\n ((Command) msg).execute(arg);\n }",
"@Override\r\n public void execute()\r\n {\r\n printInvalidCommandMessage();\r\n }",
"void executeUpdate();",
"abstract protected void execute();",
"void processTransaction(String[] transaction) {\n\t\titemsetSets.get(itemsetSets.size() - 1).processTransaction(transaction);\n\t}",
"private CommandResult executeCommand(String commandText) throws CommandException,\n ParseException, InvalidTaskListOperationException, IllegalArgumentException {\n try {\n CommandResult commandResult = logic.execute(commandText);\n logger.info(\"Result: \" + commandResult.getFeedbackToUser());\n feedbackBox.setFeedbackToUser(commandResult.getFeedbackToUser());\n refreshTitle();\n\n // categoryPanel.setFeedbackToUser(commandResult.getFeedbackToUser());\n if (commandResult.isExit()) {\n handleExit();\n }\n\n return commandResult;\n } catch (CommandException | ParseException | InvalidTaskListOperationException | IllegalArgumentException e) {\n logger.info(\"Invalid command: \" + commandText);\n feedbackBox.setFeedbackToUser(e.getMessage());\n throw e;\n }\n }",
"public void execute(final Command command) {\n\n command.execute();\n }",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"public void execute(String label, Command command) {\n\t\texecuteViaUndoManager(label, command);\n\t}",
"void doTransaction (Redis redis) {\n\t \tswitch (redis.EXEC()) {\n\t \tcase OK:\n\t \tbreak;\n\t \tcase FAIL:\n \t\t\tdiscardTransaction(redis);\n\t\t\tbreak;\n\t \t}\n\t}",
"public void executeViaUndoManager(String label, Command command) {\n\t\tif (command.canExecute()) {\n\t\t\tif (undoManager != null) {\n\t\t\t\tundoManager.beginRecording(this, label);\n\t\t\t\tcommand.execute();\n\t\t\t\tundoManager.endRecording(this);\n\t\t\t} else\n\t\t\t\texecuteViaStack(command);\n\t\t}\n\t}",
"public void execute(Command command) {\n\t\texecute(command.getLabel(), command);\n\t}",
"public void execute(){\n\t\t\n\t}",
"public<ResultType> ResultType doExecuteTransaction(Transaction<ResultType> txn) throws SQLException {\n\t\tConnection conn = connect();\n\t\t\n\t\ttry {\n\t\t\tint numAttempts = 0;\n\t\t\tboolean success = false;\n\t\t\tResultType result = null;\n\t\t\t\t\n\t\t\twhile (!success && numAttempts < MAX_ATTEMPTS) {\n\t\t\t\ttry {\n\t\t\t\t\tresult = txn.execute(conn);\n\t\t\t\t\tconn.commit();\n\t\t\t\t\tsuccess = true;\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tif (e.getSQLState() != null && e.getSQLState().equals(\"41000\")) {\n\t\t\t\t\t\t// Deadlock: retry (unless max retry count has been reached)\n\t\t\t\t\t\tnumAttempts++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Some other kind of SQLException\n\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\tif (!success) {\n\t\t\t\tthrow new SQLException(\"Transaction failed (too many retries)\");\n\t\t\t}\n\t\t\t\n\t\t\t// Success!\n\t\t\treturn result;\n\t\t} finally {\n\t\t\tDBUtil.closeQuietly(conn);\n\t\t}\n\t}",
"public <T> T execute(final TransactionCallback<T> action) throws TransactionException {\n // retry to handle concurrent conflicting inserts into unique content tables\n for (int retry = 0; true; retry++) {\n try {\n return _transactionTemplate.execute(action);\n } catch (final DataIntegrityViolationException ex) {\n if (retry == _retries) {\n throw ex;\n }\n LOGGER.warn(\"Execution failure on attempt \" + retry + \" of \" + _retries, ex);\n } catch (final DataAccessException ex) {\n throw fixSQLExceptionCause(ex);\n }\n }\n }",
"public void process() {\n \n//System.out.println(\"UndoCommand.undo()\");\n//System.out.println(\" command: \" + command.getDescription());\n//System.out.println(\" isTransient: \" + command.isTransient());\n//System.out.println(\" isUndoable: \" + command.isUndoable());\n\n try {\n \n command.undo();\n\n // Move the command to the top of the redo stack\n redoCommands.push(command);\n\n // Trim the redo stack\n if (redoCommands.size() > maxSize) {\n redoCommands.setSize(maxSize);\n } \n \n // finally, notify listeners of the change\n for (int i = 0; i < commandListeners.size(); i++) {\n CommandListener l = commandListeners.get(i);\n l.commandExecuted(command);\n }\n\n } catch (Exception e) {\n errorReporter.errorReport(\"Undo of \" + command.getDescription() + \" command failed.\", e);\n }\n\n }",
"boolean transactTo_execCommand(int code, String transactName, ComponentName who, List<String> param, int userId) {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n try {\n IBinder binder = ServiceManager.getService(\"device_policy\");\n if (binder != null) {\n if (HWFLOW) {\n Log.i(TAG, \"Transact:\" + transactName + \" to device policy manager service.code is \" + code);\n }\n _data.writeInterfaceToken(ConstantValue.DESCRIPTOR);\n if (who != null) {\n _data.writeInt(1);\n who.writeToParcel(_data, 0);\n } else {\n _data.writeInt(0);\n }\n _data.writeStringList(param);\n _data.writeInt(userId);\n binder.transact(code, _data, _reply, 0);\n _reply.readException();\n }\n _reply.recycle();\n _data.recycle();\n } catch (RemoteException localRemoteException) {\n Log.e(TAG, \"transactTo \" + transactName + \" failed: \" + localRemoteException.getMessage());\n } catch (Throwable th) {\n _reply.recycle();\n _data.recycle();\n }\n return false;\n }",
"abstract public void execute(Parameters p);",
"public void execute (T target);",
"public void execute() {\n\t\t\n\t}"
] | [
"0.61184525",
"0.6012722",
"0.5984037",
"0.58512485",
"0.58221024",
"0.5808508",
"0.57901233",
"0.5789615",
"0.57632226",
"0.5754888",
"0.56241035",
"0.5618917",
"0.56145155",
"0.55499876",
"0.55499876",
"0.55499876",
"0.5545307",
"0.5518012",
"0.54873097",
"0.54864156",
"0.54785347",
"0.5471221",
"0.546628",
"0.5446279",
"0.5329438",
"0.53260577",
"0.5302485",
"0.5281567",
"0.5277089",
"0.52665347",
"0.5262628",
"0.5258942",
"0.52323216",
"0.5230203",
"0.52298236",
"0.5212545",
"0.52078927",
"0.52050894",
"0.51947325",
"0.5183613",
"0.5182075",
"0.51731676",
"0.5172005",
"0.5172005",
"0.5172005",
"0.5172005",
"0.516893",
"0.5166067",
"0.51633507",
"0.5163064",
"0.5159723",
"0.515919",
"0.51591474",
"0.5148759",
"0.5146149",
"0.51417226",
"0.51298785",
"0.5121855",
"0.512156",
"0.5112061",
"0.51116365",
"0.51108533",
"0.50955814",
"0.5093439",
"0.5091893",
"0.5091478",
"0.5090767",
"0.5087928",
"0.508332",
"0.508332",
"0.508332",
"0.508332",
"0.50779366",
"0.50779366",
"0.50720304",
"0.5064515",
"0.5064318",
"0.5062836",
"0.50599706",
"0.50597286",
"0.5053465",
"0.5048814",
"0.5048814",
"0.5048814",
"0.5048814",
"0.5048814",
"0.5048814",
"0.5048814",
"0.5045484",
"0.50316334",
"0.5030478",
"0.5023977",
"0.5023894",
"0.50198436",
"0.5017596",
"0.5017328",
"0.50124276",
"0.5009655",
"0.5008988",
"0.49997732"
] | 0.62879306 | 0 |
metodo che stampa l'esame sostenuto in una certa data | public void stampaDaData(String data){
int cont = 0;
//GenericStack<Esame> EsamiInData = new GenericStack<Esame>();
try {
Date date =new SimpleDateFormat("dd-MM-yyyy").parse(data);
for (Esame var : librettoArray) {
if(var.getDataEsame().compareTo(date) == 0){
this.caricaEsameInLista(var.getMateria(), var.getProfessore(), var.getTipologia(), var.getDataEsameString(), 9, var.getNomeAteneo());
cont++;
}
}
if(cont == 0){
DialogBox d = new DialogBox("No exams for the provided date", 3);
}
else
this.getLibretto();
} catch (ParseException e) {
GuiException x = new GuiException(e);
x.createGui();
return;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void eleccionCasoDeUso(String casoDeUso) throws MareException{\t\t\n\t // Seteo de titulo y ID_BUSINESS\n\t if(casoDeUso.equals(LP_ID_ASOC_TERR)){\n\t\t\tidBusiness = ID_BUSINESS_ASOC_TERR;\n\t\t\tcodTituloLP = \"0378\";\n\t\t\tfichero= \"muestraUG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_UG)){\n\t\t\tidBusiness = ID_BUSINESS_UG;\n\t\t\tcodTituloLP = \"0377\";\n\t\t\tfichero = \"muestraMUG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_CREAR_UA)){\n\t\t\tidBusiness = ID_BUSINESS_CREAR_UA;\n\t\t\tcodTituloLP = \"0637\";\n\t\t\tfichero = \"muestraCUAG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_ELIM_UA)){\n\t\t\tidBusiness = ID_BUSINESS_ELIM_UA;\n\t\t\tcodTituloLP = \"0380\";\n\t\t\tfichero = \"EliminaUnidadAdministrativa.txt\";\n\t }else if(casoDeUso.equals(LP_ID_CREAR_EV)){\n\t\t\tidBusiness = ID_BUSINESS_CREAR_EV;\n\t\t\tcodTituloLP = \"0381\";\n\t\t\tfichero = \"altaZON.txt\";\n\t }else if(casoDeUso.equals(LP_ID_MOD_EV)){\n\t\t\tidBusiness = ID_BUSINESS_MOD_EV;\n\t\t\tcodTituloLP = \"0382\";\n\t\t\tfichero = \"modifZON.txt\";\n\t }else if(casoDeUso.equals(LP_ID_ELIM_EV)){\n\t\t\tidBusiness = ID_BUSINESS_ELIM_EV;\n\t\t\tcodTituloLP = \"0383\";\n\t\t\tfichero = \"bajaZON.txt\";\t\t\t\n\t } \n\t}",
"public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }",
"public String nuevaSubasta() {\n\t\tofer_id = null;\n\t\tofer_valor_oferta = null;\n\t\tofer_fecha_oferta = null;\n\t\tpostulante = null;\n\t\titem_nombre = \"\";\n\t\titem_caracteristicas = \"\";\n\t\titem_imagen = \"\";\n\t\tpos_nombre = \"\";\n\t\tpos_apellido = \"\";\n\t\tpos_direccion = \"\";\n\t\tpos_correo = \"\";\n\t\tpos_telefono = \"\";\n\t\tpos_celular = \"\";\n\t\tpos_institucion = \"\";\n\t\tpos_gerencia = \"\";\n\t\tpos_area = \"\";\n\t\treturn \"nitem?faces-redirect=true\";\n\t}",
"private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }",
"public String turno(enemigo enem){\n\t\tString tur;\n\t\ttur=atacar(enem);\n\t\treturn tur;\n\t}",
"private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }",
"@Override\n void procesarSalida(Simulacion s, Evento e) {\n e.consulta.estadistEjec_Sentencias.tiempoSalidaModulo = e.tiempo;\n e.consulta.estadistEjec_Sentencias.tiempoEnModulo = e.tiempo - e.consulta.estadistEjec_Sentencias.tiempoLlegadaModulo;\n Evento evento = new Evento(e.consulta);\n evento.tipoE = Evento.TipoEvento.ENTRADA;\n evento.modulo = Evento.TipoModulo.ADM_CONEXIONES;\n evento.tiempo = e.tiempo;\n numServOcupados--;\n s.listaE.add(evento);\n\n if (!colaC.isEmpty()) { //Si despues de una salida hay algo en cola\n Consulta consulta = colaC.remove();\n consulta.estadistEjec_Sentencias.tiempoSalidaCola = e.tiempo - consulta.estadistEjec_Sentencias.tiempoLlegadaModulo;\n s.estadisticasT.promedioColaES += colaC.size();\n Evento eventoS = new Evento(consulta);\n eventoS.tipoE = Evento.TipoEvento.SALIDA;\n eventoS.modulo = Evento.TipoModulo.EJEC_SENTENCIAS;\n ejecucionSentencia(consulta);\n eventoS.tiempo = e.tiempo + tiempoEjecucion;\n s.listaE.add(eventoS);\n numServOcupados++;\n }\n\n }",
"private Malote buscaMaloteDestino(Localidade destinoMalote) {\n\t\tlogger.info(\"buscar Malote Destino:\"+destinoMalote.getDescricao());\r\n\t\t\t\t\t\t \r\n\t\tLocalidade destinoFinal = destinoMalote;\r\n\t\tTipoMalote tipoMalote = TipoMalote.SEPEX;\r\n\t\t\r\n\t\tif (destinoMalote.getTipoRemessa().equals(TipoRemessa.VARAS_INT) &&\r\n\t\t\t\tdestinoMalote.temCodUnidadeAdmCentral()) {\r\n\t\t\tlogger.info(\"<<< malote seadm interior >>\");\r\n\t\t\tdestinoFinal = destinoMalote.getUnidadeAdmCentral();\r\n\t\t\ttipoMalote = TipoMalote.SEADM_INT;\r\n\t\t} else {\r\n\t\t\tif (destinoMalote.getTipoRemessa().equals(TipoRemessa.INTERNO) && destinoMalote.isAgrupado()) {\r\n\t\t\t\tlogger.info(\"<<< malote agrupado >>\");\r\n\t\t\t\tdestinoFinal = destinoMalote.getMaloteAgrupado();\r\n\t\t\t} else {\t\t\r\n\t\t\t\tlogger.info(\"<<< malote interno nao agrupado>>>\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tStringBuilder sb = new StringBuilder(\"from Malote m \");\r\n\t\tsb.append(\"where m.fechado = false and \");\r\n\t\tsb.append(\"m.tipoMalote = :pTipoMalote \");\r\n\t\tsb.append(\"and m.destino = :pDestino\");\r\n\t\tQuery q = em.createQuery(sb.toString());\r\n\t\tq.setParameter(\"pTipoMalote\", tipoMalote);\r\n\t\tq.setParameter(\"pDestino\", destinoFinal);\r\n\t\t\r\n\t\tMalote maloteEnviar = (Malote) q.getSingleResult();\r\n\t\t\r\n\t\tif (null == maloteEnviar) {\r\n\t\t\tlogger.info(\"<<<bmd - malote novo>>\");\r\n\t\t\tLocalidadeManager locDAO = new LocalidadeManager();\r\n\t\t\tmaloteEnviar = new Malote();\r\n\t\t\tmaloteEnviar.setDestino(destinoFinal);\r\n\t\t\t// rem : sepex ou sistema\r\n\t\t\tmaloteEnviar.setRemetente(locDAO.remetenteSepex());\r\n\t\t\tmaloteEnviar.setTipoMalote(tipoMalote);\r\n\t\t\tmaloteEnviar.setDtEnvio(Calendar.getInstance().getTime());\r\n\t\t\tsalva(maloteEnviar);\r\n\t\t\t//closeSession();\r\n\t\t}\r\n\t\treturn maloteEnviar;\r\n\t}",
"private CapitoloUscitaGestione ricercaCapitoloUscitaGestione() {\n\t\tRicercaPuntualeCapitoloUGest ricercaPuntualeCapitoloUGest = new RicercaPuntualeCapitoloUGest();\n\t\tricercaPuntualeCapitoloUGest.setAnnoEsercizio(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setAnnoCapitolo(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroCapitolo(req.getCapitoloUPrev().getNumeroCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroArticolo(req.getCapitoloUPrev().getNumeroArticolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroUEB(req.getCapitoloUPrev().getNumeroUEB());\n\t\tricercaPuntualeCapitoloUGest.setStatoOperativoElementoDiBilancio(req.getCapitoloUPrev().getStatoOperativoElementoDiBilancio());\n\n\t\tRicercaPuntualeCapitoloUscitaGestione ricercaPuntualeCapitoloUscitaGestione = new RicercaPuntualeCapitoloUscitaGestione();\n\t\tricercaPuntualeCapitoloUscitaGestione.setEnte(req.getEnte());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRichiedente(req.getRichiedente());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRicercaPuntualeCapitoloUGest(ricercaPuntualeCapitoloUGest);\n\t\tricercaPuntualeCapitoloUscitaGestione.setDataOra(new Date());\n\t\t\t\t\t\n\t\tRicercaPuntualeCapitoloUscitaGestioneResponse ricercaPuntualeCapitoloUscitaGestioneResponse = executeExternalService(ricercaPuntualeCapitoloUscitaGestioneService,ricercaPuntualeCapitoloUscitaGestione);\n\t\treturn ricercaPuntualeCapitoloUscitaGestioneResponse.getCapitoloUscitaGestione();\n\t}",
"public static void main(String[] args) {\n\t\tString[] horasSesiones = {};\r\n\t\tSala sala = new Sala(\"Tiburon\", horasSesiones, 9, 5);\r\n\r\n\t\tsala.incluirSesion(\"20:00\");\r\n\r\n\t\t/*for (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);*/\r\n\t//\tsala.borrarSesion(\"15:00\"); // no hace nada\r\n\t\t//sala.borrarSesion(\"20:00\");\r\n\r\n\t\tfor (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);\r\n\r\n\t\t// necesitamos la ventanilla para mostrar el estado de la sesion\r\n\t\tVentanillaVirtualUsuario ventanilla = new VentanillaVirtualUsuario(null, true);\r\nSystem.out.println(sala.sesiones.size());\r\nSystem.out.print(sala.getEstadoSesion(1));\r\n\t\tsala.comprarEntrada(1, 2, 1);\r\n\t\tsala.comprarEntrada(1, 9, 3);\r\n\r\n\t\tint idVenta = sala.getIdEntrada(1, 9, 3);\r\n\r\n\t\tSystem.out.println(\"Id de venta es:\" + idVenta);\r\n\r\n\t\tButacasContiguas butacas = sala.recomendarButacasContiguas(1, 1);\r\n\r\n\t\tsala.comprarEntradasRecomendadas(1, butacas);\r\n\r\n\t\tint idVenta1 = sala.getIdEntrada(1, butacas.getFila(), butacas.getColumna());\r\n\r\n\t\tsala.recogerEntradas(idVenta1, 1);\r\n\r\n\t\tventanilla.mostrarEstadoSesion(sala.getEstadoSesion(1));\r\n\r\n\t\tSystem.out.println(\"No. de butacas disponibles: \" + sala.getButacasDisponiblesSesion(1));\r\n\r\n\t\tSystem.out.println(\"Tickets :\" + sala.recogerEntradas(idVenta, 1));\r\n\r\n\t\tSystem.out.println(\"Tickets recomendados:\" + sala.recogerEntradas(idVenta1, 1));\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t//sala.incluirSesion(\"10:56\");\r\n\t\t//sala.incluirSesion(\"10:57\");\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t/*{\r\n\t\t\tfor (int i = 0; i < sala.getHorasDeSesionesDeSala().length; i++) {\r\n\t\t\t\tSystem.out.println(sala.getHorasDeSesionesDeSala()[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t}*/\r\n\t\t\r\n\t}",
"private Ente gestioneEnte() {\n\t\tList<Ente> enti = enteDad.getEntiByCodiceAndCodiceSistemaEsterno(req.getCodiceEnte(), SistemaEsterno.FEL);\n\t\tif(enti == null || enti.isEmpty()) {\n\t\t\tthrow new UnmappedEnteException(ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Ente\", \"codice \" + req.getCodiceEnte()));\n\t\t}\n\t\t// Dovrebbe essercene solo uno. Per sicurezza prendo solo il primo\n\t\treturn enti.get(0);\n\t}",
"private void remplirUtiliseData() {\n\t}",
"private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }",
"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 }",
"Reserva Obtener();",
"public String insertEscuela(Escuela escuela){\n String regInsertado = \"Registro Escuela #\";\n long contador = 0;\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"IDESCUELA\",escuela.getIdentificadorEscuela());\n contentValues.put(\"NOMESCUELA\", escuela.getNombreEscuela());\n contador = db.insert(\"ESCUELA\",null,contentValues);\n db.close();\n\n if(contador == -1 || contador == 0){\n regInsertado = \"Error al insertar Escuela. Registro duplicado.\";\n }else{\n regInsertado = regInsertado + contador;\n }\n return regInsertado;\n }",
"private void saveEncuestaSatisfaccions(String estado) {\n int c = mEncuestaSatisfaccions.size();\n for (EncuestaSatisfaccion encuesta : mEncuestaSatisfaccions) {\n encuesta.getMovilInfo().setEstado(estado);\n estudioAdapter.updateEncSatSent(encuesta);\n publishProgress(\"Actualizando Encuestas Satisfaccion\", Integer.valueOf(mEncuestaSatisfaccions.indexOf(encuesta)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"public void adicionar(Pessoa pessoa){\n adicionar(raiz, pessoa);\n }",
"public void salvarDadosNaTela(){\n SharedPreferences sharedPreferences = this.getActivity().getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n\n editor.putString(TVHORAUM, tvHoraUm.getText().toString());\n editor.putString(TVHORADOIS, tvHoraDois.getText().toString());\n editor.putString(TVHORATRES, tvHoraTres.getText().toString());\n editor.putString(TVHORAQUATRO, tvHoraQuatro.getText().toString());\n\n editor.apply();\n\n }",
"public void jugarMaquinaSola(int turno) {\n if (suspenderJuego) {\n return;\n }\n CuadroPieza cuadroActual;\n CuadroPieza cuadroDestino;\n CuadroPieza MovDestino = null;\n CuadroPieza MovActual = null;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n cuadroActual = tablero[x][y];\n if (cuadroActual.getPieza() != null) {\n if (cuadroActual.getPieza().getColor() == turno) {\n for (int x1 = 0; x1 < 8; x1++) {\n for (int y1 = 0; y1 < 8; y1++) {\n cuadroDestino = tablero[x1][y1];\n if (cuadroDestino.getPieza() != null) {\n if (cuadroActual.getPieza().validarMovimiento(cuadroDestino, this)) {\n if (MovDestino == null) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n } else {\n if (cuadroDestino.getPieza().getPeso() > MovDestino.getPieza().getPeso()) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n }\n if (cuadroDestino.getPieza().getPeso() == MovDestino.getPieza().getPeso()) {\n //Si es el mismo, elijo al azar si moverlo o no\n if (((int) (Math.random() * 3) == 1)) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n }\n }\n }\n }\n\n }\n }\n }\n }\n }\n }\n }\n if (MovActual == null) {\n boolean b = true;\n do {//Si no hay mov recomendado, entonces genero uno al azar\n int x = (int) (Math.random() * 8);\n int y = (int) (Math.random() * 8);\n tablero[x][y].getPieza();\n int x1 = (int) (Math.random() * 8);\n int y1 = (int) (Math.random() * 8);\n\n MovActual = tablero[x][y];\n MovDestino = tablero[x1][y1];\n if (MovActual.getPieza() != null) {\n if (MovActual.getPieza().getColor() == turno) {\n b = !MovActual.getPieza().validarMovimiento(MovDestino, this);\n //Si mueve la pieza, sale del while.\n }\n }\n } while (b);\n }\n if (MovActual.getPieza().MoverPieza(MovDestino, this)) {\n this.setTurno(this.getTurno() * -1);\n if (getRey(this.getTurno()).isInJacke(this)) {\n if (Pieza.isJugadorAhogado(turno, this)) {\n JOptionPane.showMessageDialog(null, \"Hacke Mate!!! - te lo dije xD\");\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n } else {\n JOptionPane.showMessageDialog(null, \"Rey en Hacke - ya t kgste\");\n }\n } else {\n if (Pieza.isJugadorAhogado(turno, this)) {\n JOptionPane.showMessageDialog(null, \"Empate!!!\\nComputadora: Solo por que te ahogaste...!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n if (Pieza.getCantMovimientosSinCambios() >= 50) {\n JOptionPane.showMessageDialog(null, \"Empate!!! \\nComputadora: Vaya, han pasado 50 turnos sin comernos jeje!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Otra Partida Amistosa¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n }\n }\n if (this.getTurno() == turnoComputadora) {\n jugarMaquinaSola(this.getTurno());\n }\n }",
"public void enemigosCatacumba(){\n esq81 = new Esqueleto(1, 8, 400, 160, 30);\n esq82 = new Esqueleto(2, 8, 400, 160, 30);\n esq111 = new Esqueleto(1, 11, 800, 255, 50);\n esq112 = new Esqueleto(2, 11, 800, 255, 50);\n esq141 = new Esqueleto(1, 14, 1000, 265, 60);\n esq142 = new Esqueleto(2, 14, 1000, 265, 60);\n //\n zom81 = new Zombie(1, 8, 1000, 170, 40);\n zom82 = new Zombie(2, 8, 1000, 170, 40);\n zom111 = new Zombie(1, 11, 1300, 250, 50);\n zom112 = new Zombie(2, 11, 1300, 250, 50);\n zom141 = new Zombie(1, 14, 1700, 260, 60);\n zom142 = new Zombie(2, 14, 1700, 260, 60);\n //\n fana81 = new Fanatico(1, 8, 400, 190, 40);\n fana82 = new Fanatico(2, 8, 400, 190, 40);\n fana111 = new Fanatico(1, 11, 700, 250, 50);\n fana112 = new Fanatico(2, 11, 700, 250, 50);\n fana141 = new Fanatico(1, 14, 900, 260, 60);\n fana142 = new Fanatico(2, 14, 900, 260, 60);\n //\n mi81 = new Mimico(1, 8, 3, 1, 3000);\n mi111 = new Mimico(1, 11, 4, 1, 3000);\n mi141 = new Mimico(1, 14, 5, 1, 3200);\n }",
"private void agregarASalNuevoMaest(CuentaSerializada cuenta){\n try{\n salNuevoMaest.writeObject(cuenta);\n }\n catch(NoSuchElementException noSuchElementException){\n System.err.println(\"Entrada invalida. Intente de nuevo.\");\n }\n catch(IOException iOException){\n System.err.println(\"Error al escribir en el archivo. Terminado.\");\n System.exit(1);\n }\n }",
"public Entrada(String titulo, String descripcion, String enlace, String autor, String fecha, String categoria) {\n this.titulo = titulo;\n this.descripcion = descripcion;\n this.enlace = enlace;\n this.autor = autor;\n this.fecha = fecha;\n this.categoria = categoria;\n// this.imagen = imagen;\n }",
"public void clienteSalio(String name, String cuarto) throws IOException {\n if (cuarto.equals(\"Reunion de clientes\")) {\n IntercambioDeUsuarios(name);\n } else {\n for (int c = 0; c < clientesEsperando.length; c++) { // Transforma cualquier usuario que escribio salir en la lista de espera a null\n if (clientesEsperando[c] != null) {\n if (name.equals(clientesEsperando[c].clientName)) {\n\n \n clientesEsperando[c] = null;\n try {\n clientesEsperando[c] = clientesEsperando[c + 1]; \n clientesEsperando[c + 1] = null;\n } catch (Exception e) {\n }\n clientesEsperando[c].actualizarCuartosReunion(clientesConectados);\n clientesEsperando[c].actualizarCuartosEspera(clientesEsperando);\n break;\n }\n }\n }\n }\n\n }",
"public void setContrasena(String contrasena) {this.contrasena = contrasena;}",
"public String listarSensores(){\r\n String str = \"\";\r\n for(PacienteNuvem x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }",
"public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }",
"public Sesiones() {\n\t\tentradasVendidas = 0;\n\t}",
"public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}",
"public String MuestraCualquiera() {//PARA MOSTRAR CUALQUIER TIPO DE CLIENTE\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {//SI ES DOCENTE\nMuestra=MuestraDocente();//SE MUESTRAN SOLO LOS DATOS DE DOCENTE\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {//SI ES ADMINISTRATIVO\nMuestra=MuestraAdministrativo();//SE MUESTRAN SOLO LOS DATOS DE ADMINISTRATIVO\n}\n\nreturn Muestra;\n}",
"private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}",
"public void inseriPessoa() throws IOException {\n\t\tString r;\n\t\tvetPessoas[nPessoas] = new Pessoa();\n\t\tSystem.out.println(\"Inseri o nome \");\n\t\tr = EntradaTeclado.leString();\n\t\tvetPessoas[nPessoas].setNome(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Cpf \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setCpf(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Endereco \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setEndereco(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Email \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setEmail(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Data de Nascimento fomanto (dd/mm/aaaa)\");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setDataNascimento(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Estado Civil \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setEstadoCivil(r);\n\t\t\n\t\tthis.nPessoas+=1;\n\t}",
"private String insertarCartaHeal() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 4,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"private void populaAlimento()\n {\n Alimento a = new Alimento(\"Arroz\", 100d, 5d, 0.4d, 30d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Abacaxi\", 96.2d, 1.2d, 2.3d, 6d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Carne moida - Acem\", 212.4d, 26.7d, 9.8d, 0d, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pernil Assado\", 262.3d, 32.1d, 13.1d, 0, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pao de forma integral\", 253.2d, 9.4d, 2.9d, 49, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n }",
"public Puertas(String via, int iden, int tipo){\r\n this.viaje=via;\r\n this.identi=iden;\r\n this.tipoPriori=tipo;\r\n switch(tipo){\r\n case(1):\r\n this.namePriori=\"Oro\";\r\n break;\r\n case(2):\r\n this.namePriori=\"Platino\";\r\n break;\r\n case(3):\r\n this.namePriori=\"Especial\";\r\n break;\r\n case(4):\r\n this.namePriori=\"Económico\";\r\n break;\r\n default:\r\n this.namePriori=\"\";\r\n break;\r\n } \r\n }",
"public void asignarEco(EcoObstetrico eco) {\n this.ecoObstetrico = eco;\n this.tipoEco = eco.tipo();\n }",
"private void saveRazonNoData(String estado) {\n int c = mRazonNoData.size();\n for (RazonNoData rnd : mRazonNoData) {\n rnd.setEstado(estado);\n estudioAdapter.updateRazonNoDataSent(rnd);\n publishProgress(\"Actualizando Razones No Datos\", Integer.valueOf(mRazonNoData.indexOf(rnd)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"Aluno(String dataNascimento) {\n this.dataNascimento = dataNascimento;\n }",
"public void guardarSolicitud() {\n Map<String, String> paramMap = getParametrosSesion();\n String cadenaFirmada;\n try {\n if (paramMap != null) {\n cadenaFirmada = paramMap.get(firmaFormHelper.FIRMA_DIGITAL);\n firmaFormHelper.setSelloDigital(paramMap.get(FirmaFormHelper.FIRMA_DIGITAL));\n\n SimpleDateFormat formato = new SimpleDateFormat(\"dd/MM/yyyy\");\n produccion.setFechProduccion(new Date());\n desperdiciosHelper.setFechaAcuse(formato.format(produccion.getFechProduccion()));\n\n if (cadenaFirmada.length() > 0) {\n guardarRangosFolios();\n Acuse acuse = new Acuse();\n acuse.setSerieAcuse(TipoAcuse.DESPERDICIO);\n acuse.setIdProveedor(produccionCigarrosHelper.getProveedor().getIdProveedor());\n acuse.setSelloDigital(firmaFormHelper.getSelloDigital());\n acuse.setCadenaOriginal(firmaFormHelper.getCadenaOriginal());\n acuse.setFecCaptura(new Date());\n desperdiciosHelper.setIdAcuseRecibo(commonService.crearAcuse(acuse));\n habilitarPnlAcuse();\n registroMovimientoBitacora(getSession(), IdentificadorProcesoEnum.CONTRIBUYENTE_TRAMITES, new Date(), new Date(), MovimientosBitacoraEnum.DESPERDICIOS_DESTRUCCION);\n } else {\n habilitarPnlPrincipal();\n }\n }\n } catch (CommonServiceException e) {\n LOGGER.error(e.getMessage(), e);\n addErrorMessage(ERROR, \"No se pudo generar el acuse\");\n } catch (Exception ex) {\n LOGGER.error(ex.getMessage());\n }\n }",
"public void cumplirAños(){\n this.setEdad(((byte)(this.getEdad()+1)));\n }",
"public void insertarAlimento (int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas, float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);",
"public AsignaturaSemestre (Asignatura Asig, Profesor Profe, List<HorarioAsig> hrrio) {\n asignaturaAsig = Asig ;\n ProfesorAsig = Profe;\n Horario = hrrio;\n }",
"public void HordaHardcodeada() {\n\t\t\n\t\tObjetoDelJuego c = mapa.AgregarEnemigo();\n\t\tlistaDeEnemigos.add( (Enemigo) c );\n\t\t\n\t}",
"private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }",
"private void limpiarDatos() {\n\t\t\n\t}",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"private void yas(){\n System.out.println(namn);\n \n try{\n String fraga = \"SELECT TEXT FROM INLAGG WHERE RUBRIK = 'Borttappad strumpa'\";\n String XD = db.fetchSingle(fraga);\n System.out.println(XD);\n txtInlagg.append(XD);\n }\n catch(InfException e){\n JOptionPane.showMessageDialog(null, \"Kunde ej hämta inlägg\");\n }\n }",
"private void carregarAlunosTurma() {\n AcessoFirebase.getFirebase().addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getUidUsuariosTurma(dataSnapshot);\n montandoArrayListUsuarios(dataSnapshot);\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }",
"public Esame trovaEsame(String codice){\r\n\t\t// indexOf effettua una equals su due oggetti di tipo esame\r\n\t\t// Creo un esame fittizio con solo il codice in modo da potere \r\n\t\t// verificare se esiste in esami un esame con quel codice\r\n\t\tint position = esami.indexOf(new Esame(codice, \"\", \"\"));\r\n\t\tif(-1==position)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn esami.get(position);\r\n\t}",
"private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }",
"public void ejecutarMaquinaTuring() {\n\n\t\tString cadenaEntrada;\n\t\tArrayList<String> cadenaCinta = new ArrayList<>();\n\t\tsetEstadoActual(getEstadoInicial());\n\t\tSystem.out.println(\"Inserte la cadena a probar:\");\n\t\tScanner imputUsuario = new Scanner(System.in);\n\t\tcadenaEntrada = imputUsuario.nextLine();\n\t\tfor (int i = 0; i < cadenaEntrada.length(); i++) {\n\t\t\tcadenaCinta.add(String.valueOf(cadenaEntrada.charAt(i)));\n\t\t}\n\n\t\tcinta = new Cinta(cadenaCinta, new CabezaLE());// inicializamos la cinta\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// con la cadena del\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// usuario\n\t\t/*\n\t\t * Evaluamos\n\t\t */\n\t\tboolean noTransiciones = false;\n\n\t\twhile (noTransiciones == false) {// para cuando no hayan transiciones\n\n\t\t\tnoTransiciones = true;// suponemos, a priori, que no hay\n\t\t\t\t\t\t\t\t\t// transiciones\n\n\t\t\tfor (int j = 0; j < conjuntoTransiciones.size(); j++) {\n\n\t\t\t\tString estadoSiguiente = cinta.getCabezaLE().transitar(estadoActual, cinta.getCadenaCinta(),\n\t\t\t\t\t\tconjuntoTransiciones.get(j));\n\n\t\t\t\tif (estadoSiguiente != null) {// si encontro un estado al que\n\t\t\t\t\t\t\t\t\t\t\t\t// transitar...\n\n\t\t\t\t\testadoActual = estadoSiguiente; // transita\n\t\t\t\t\tnoTransiciones = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} // END FOR\n\t\t} // END WHILE (NO QUEDAN TRANSICIONES)\n\t\tgetCinta().mostrarCinta();\n\t\tcadenaEsAceptada();\n\t}",
"public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == 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\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}",
"private void teletransportar(Personaje p, Celda destino) {\n // TODO implement here\n }",
"private String insertarCartaVitalTransfusion() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 3,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 2,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}",
"public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}",
"private void saveEncCasas(String estado) {\n int c = mEncuestasCasas.size();\n for (EncuestaCasa enccasa : mEncuestasCasas) {\n enccasa.getMovilInfo().setEstado(estado);\n estudioAdapter.updateEncuestasCasasSent(enccasa);\n publishProgress(\"Actualizando encuestas casas\", Integer.valueOf(mEncuestasCasas.indexOf(enccasa)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }",
"public void asignarEco(EcoPelvico eco) {\n this.ecoPelvico = eco;\n this.tipoEco = eco.tipo();\n }",
"public void cobrarCuotaDeSocios(Equipo e){\n\t\te.setCapital(e.getCapital()+e.getSocios());\n\t\tem.merge(e);\n\t\tingresarTransaccion(e,e.getPublicidad(), EnumTipoTransaccion.SOCIOS);\n\t\t\n\t}",
"@Override\n public void applyTextEspecie(String especieMascota) {\n if(!especieMascota.isEmpty())\n {\n especie = especieMascota;\n //Guarda la especie\n instanciaDB.getSpeciesDAO().insertSpecies(new Especie(especieMascota));\n }\n }",
"private void muestraProveedor(String proveedor) {\n }",
"public void setPuesto(String puesto) {\n this.puesto = puesto;\n }",
"public FaseDescartes faseJuego();",
"public void llenarDatosConfiguracion(){\n\n hoseEntities = new ArrayList<>();\n //**********************************************************\n\n //Capturar Nombre Host WIFI\n int[] tramaNombreEmbedded = new int[16];\n int c = 0;\n for(int i = 8; i<= 23; i++){\n tramaNombreEmbedded[c] = bufferRecepcion[i];\n c++;\n }\n\n\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaNombreEmbedded,tramaNombreEmbedded.length)));\n //**********************************************************\n //Capturar MAC TABLET\n int[] tramaMACTablet= new int[6];\n c = 0;\n for(int i = 24; i<= 29; i++){\n tramaMACTablet[c] = bufferRecepcion[i];\n c++;\n }\n //Log.v(\"MAC TABLET EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaMACTablet,tramaMACTablet.length)));\n\n\n //**********************************************************\n //Capturar Contraseña Red Host\n int[] contrasenaHostEmbedded = new int[11];\n c = 0;\n for(int i = 30; i<= 40; i++){\n contrasenaHostEmbedded[c] = bufferRecepcion[i];\n c++;\n }\n\n //Log.v(\"CONTRASENA RED EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(contrasenaHostEmbedded,contrasenaHostEmbedded.length)));\n\n\n //**********************************************************\n //Capturar Nro Bombas\n int[] numeroBombas = new int[1];\n numeroBombas[0] = bufferRecepcion[41];\n numBombas = Integer.parseInt(byteArrayToHexIntGeneral(numeroBombas,1));\n //**********************************************************\n //int pIinicial = 42;\n\n //obtener solo IDbombas\n int[] idBombas = new int[numBombas];\n\n int pIinicial = 42;\n for(int i = 0; i< numBombas; i++){\n idBombas[i] = bufferRecepcion[pIinicial];\n pIinicial+=1;\n }\n\n int auxIdBomba=0;\n for(int i = 0; i< numBombas; i++){\n Hose hose = new Hose();\n TransactionEntity transactionEntity = new TransactionEntity();\n transactionEntity.setEstadoRegistro(\"P\");\n //**********************************************************\n //Capturar idBomba\n int[] idBomba = new int[1];\n idBomba[0] = bufferRecepcion[pIinicial];\n auxIdBomba=Integer.parseInt((byteArrayToHexIntGeneral(idBomba,1)));\n transactionEntity.setIdBomba(auxIdBomba);\n transactionEntity.setNombreManguera(\"\"+auxIdBomba);\n hose.setHoseNumber(auxIdBomba);\n hose.setHoseName(\"\"+auxIdBomba);\n hose.setHardwareId(1);\n hose.setLastTicket(0);\n hose.setFuelQuantity(0.0);\n\n //**********************************************************\n //Capturar idProducto\n int[] idProducto = new int[1];\n idProducto[0] = bufferRecepcion[pIinicial + 1];\n transactionEntity.setIdProducto(Integer.parseInt(byteArrayToHexIntGeneral(idProducto,1)));\n //**********************************************************\n //Capturar cantidadDecimales\n int[] cantidadDecimales = new int[1];\n cantidadDecimales[0] = bufferRecepcion[pIinicial + 2];\n transactionEntity.setCantidadDecimales(Integer.parseInt(byteArrayToHexIntGeneral(cantidadDecimales,1)));\n //**********************************************************\n //Capturar nombreManguera\n int[] nombreManguera = new int[10];\n int contadorMangueraInicial = pIinicial + 3;\n int contadorMangueraFinal = contadorMangueraInicial + 9;\n int contadorIteracionesManguera = 0;\n for(int j=contadorMangueraInicial; j<=contadorMangueraFinal; j++){\n nombreManguera[contadorIteracionesManguera] = bufferRecepcion[j];\n contadorIteracionesManguera ++;\n }\n //transactionEntity.setNombreManguera(hexToAscii(byteArrayToHexString(nombreManguera,nombreManguera.length)));\n Log.v(\"Nombre Manguera\", hexToAscii(byteArrayToHexString(nombreManguera,nombreManguera.length)));\n\n //Capturar nombreProducto\n int[] nombreProducto = new int[10];\n int contadorProductoInicial = pIinicial + 13;\n int contadorProductoFinal = contadorProductoInicial + 9;\n int contadorIteracionesProducto = 0;\n for(int k=contadorProductoInicial; k<=contadorProductoFinal; k++){\n nombreProducto[contadorIteracionesProducto] = bufferRecepcion[k];\n contadorIteracionesProducto ++;\n }\n transactionEntity.setNombreProducto(hexToAscii(byteArrayToHexString(nombreProducto,nombreProducto.length)));\n Log.v(\"Nombre Producto\",hexToAscii(byteArrayToHexString(nombreProducto,nombreProducto.length)));\n hose.setNameProduct(hexToAscii(byteArrayToHexString(nombreProducto,nombreProducto.length)));\n\n hoseEntities.add(transactionEntity);\n hoseMasters.add(hose);\n pIinicial = pIinicial + 23;\n }\n\n }",
"public void gravarEsporte(Esportes e){\r\n\t\t\t//\r\n\t\t\tthis.esportes.add(e);\r\n\t\t\t//\r\n\t\t\tdw.write(this.fileName1, e.toLinha());\r\n\t\t}",
"public String agregarSintomasCovid(Empleado otroEmpleado){\n \n String text = \"\";\n \n if(otroEmpleado.getArrayCovid().isEmpty() == false){\n text +=\"Se recomienda que el empleado \" + otroEmpleado.getNombre() + \" se aisle de forma preventiva durante 14 dias\\n\"\n + \" Comuniquese en Bogotá: +57(1) 330 5041\\n | Celular: 192 |\\n Resto del país: 018000955590\";\n }\n return text;\n }",
"protected void uploadSottoPagine() {\n LinkedHashMap<String, LinkedHashMap<String, List<String>>> mappa;\n int numVoci = 0;\n\n for (String key : lista.getSottoPagine().keySet()) {\n mappa = lista.getSottoPagine().get(key);\n numVoci = lista.getMappaLista().getDimParagrafo(key);\n incipitSottopagina = elaboraIncipitSpecificoSottopagina(key);\n listaCorrelate = listaVociCorrelate();\n appContext.getBean(UploadSottoPagina.class, soggetto, key, mappa, typeDidascalia, numVoci, usaParagrafoSize, incipitSottopagina, usaNote, usaVociCorrelate, listaCorrelate);\n }// end of for cycle\n }",
"private void getEncuestaSatisfaccions(){\n mEncuestaSatisfaccions = estudioAdapter.getEncuestaSatisfaccionSinEnviar();\n //ca.close();\n }",
"@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}",
"Secuencia createSecuencia();",
"private void atenderSolicitudPiso(Ascensor a, int piso) {\n\t\ta.detenerse();\r\n\t\ta.abrirPuertas();\r\n\t\tHelper.esperar(2);\r\n\t\tsetSolicitud(a, piso, false);\r\n\t\ta.cerrarPuertas();\r\n\t}",
"public Esame trovaEsame (String codice){\r\n\t\tint pos = esami.indexOf(new Esame (codice, null, null));\r\n\t\tif (pos==-1)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn esami.get(pos);\r\n\t}",
"public VOUsuario obtenerdatosUsuario(String[] val, String[] tipo) throws RemoteException {\n VOUsuario usu = null;\n if(tipo.length==val.length)\n try {\n FileReader fr = new FileReader(datos);\n BufferedReader entrada = new BufferedReader(fr);\n String s;\n String texto[]=new String[11];\n\n int n, l=0;\n int campo[]=new int[tipo.length];\n boolean encontrado=false;\n for(int i=0; i<tipo.length; i++) {\n if(tipo[i].compareTo(\"id\")==0) campo[i]=0;\n if(tipo[i].compareTo(\"nombre\")==0) campo[i]=4;\n if(tipo[i].compareTo(\"apellido\")==0) campo[i]=5;\n if(tipo[i].compareTo(\"nomuser\")==0) campo[i]=1;\n if(tipo[i].compareTo(\"email\")==0) campo[i]=7;\n if(tipo[i].compareTo(\"rut\")==0) campo[i]=6;\n if(tipo[i].compareTo(\"pass\")==0) campo[i]=3;\n }\n while((s = entrada.readLine()) != null && !encontrado) {\n texto=s.split(\" \");\n int j=0;\n boolean seguir=true;\n while(j<campo.length && seguir) {\n if(texto[campo[j]].toLowerCase().compareTo(val[j].toLowerCase())!=0) {\n seguir=false;\n j++;\n } else {\n j++;\n }\n }\n if(seguir) {\n encontrado=true;\n }\n l++;\n }\n if(encontrado) {\n int area[] = new int[texto[10].split(\"-\").length];\n String ar[]=texto[10].split(\"-\");\n for(int i=0; i<area.length; i++) {\n area[i]=Integer.parseInt(ar[i]);\n }\n usu=new VOUsuario(\n texto[0],\n texto[1],\n this.quitaGuiones(texto[2]),\n texto[3],\n this.quitaGuiones(texto[4]),\n this.quitaGuiones(texto[5]),\n this.quitaGuiones(texto[6]),\n this.quitaGuiones(texto[7]),\n this.quitaGuiones(texto[8]),\n this.quitaGuiones(texto[9]),\n area);\n entrada.close();\n }\n } catch (FileNotFoundException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n } catch (IOException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n }\n return usu;\n }",
"public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}",
"public void setCuenta(String cuenta) {\r\n this.cuenta = cuenta;\r\n }",
"private void saveObsequios(String estado) {\n int c = mObsequios.size();\n for (Obsequio obsequio : mObsequios) {\n obsequio.getMovilInfo().setEstado(estado);\n estudioAdapter.updateObsequioSent(obsequio);\n publishProgress(\"Actualizando Obsequios\", Integer.valueOf(mObsequios.indexOf(obsequio)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }",
"public void inseriEmpresa() throws IOException {\n\t\tString r;\n\t\tthis.vetEmpreas[this.nEmpresas] = new Empresa();\n\t\t\n\t\tSystem.out.println(\"Inseri o nome \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetEmpreas[this.nEmpresas].setNome(r);\n\n\t\tSystem.out.println(\"Inseri o CNPJ \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetEmpreas[this.nEmpresas].setCnpj(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o endereco \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetEmpreas[this.nEmpresas].setEndereco(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o email \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetEmpreas[this.nEmpresas].setEmail(r);\n\t\t\n\t\tSystem.out.println(\"Inseri InscricaoEstadual \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetEmpreas[this.nEmpresas].setInscricaoEstadual(r);\n\t\t\n\t\tSystem.out.println(\"Inseri Razao Social \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetEmpreas[this.nEmpresas].setRazaoSocial(r);\n\t\t\n\t\tthis.nEmpresas +=1;\n\t}",
"private void saveEncPyTs(String estado) {\n int c = mPyTs.size();\n for (PesoyTalla pyt : mPyTs) {\n pyt.getMovilInfo().setEstado(estado);\n estudioAdapter.updatePTsSent(pyt);\n publishProgress(\"Actualizando peso y talla\", Integer.valueOf(mPyTs.indexOf(pyt)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"@Override\n public ScontrinoDtoIll trovaEan(String ean, Scontrino sc) {\n Prodotto p = anagraficaProdottiRepository.findByEan(ean);\n if (p == null) {\n //se non è stato trovato alcun prodotto recupero il dto e\n //spedisco un messaggio di errore\n return new ScontrinoDtoIll(null, null, \"prodotto non trovato\");\n }\n //se invece è stato trovato un prodotto devo associarlo alla\n //riga scontrino che è a sua volta associata ad uno scontrino\n // quindi recupero lo scontrino ...\n if (sc != null) {\n sc = scontrinoRepository.findById(sc.getId()).get();\n //return new ScontrinoDtoIll(null, null, \"prodotto trovato\");\n }\n // se non esiste lo scontrino lo creo ...\n if (sc == null) {\n sc = new Scontrino();\n sc = scontrinoRepository.save(sc);\n }\n\n // creo la riga e la salvo ...\n RigaScontrino r = new RigaScontrino();\n r = rigaRepository.save(r);\n r.setProdotto(p);\n r.setScontrino(sc);\n r = rigaRepository.save(r);\n\n // aggiungo la riga allo scontrino\n sc.getRigheScontrino().add(r);\n sc = scontrinoRepository.save(sc);\n\n // creo il DTO con i dati da ritornare al client\n ScontrinoDtoIll risp = new ScontrinoDtoIll();\n Set<RigaScontrino> righe = sc.getRigheScontrino();\n List<RigaScontrinoClientDto> righeDto = new ArrayList<>();\n // trasformo le righe originali dello scontrino in righe del DTO\n righe.forEach(rr\n -> righeDto.add(\n new RigaScontrinoClientDto(\n rr.getId(),\n rr.getScontrino().getId(),\n p.getId(),\n rr.getProdotto().getDescrizione(),\n rr.getProdotto().getPrezzo())));\n\n risp.setRigheScontrino(righeDto);\n risp.setScontrino(sc);\n risp.setMessaggio(\"scontrino pronto!\");\n\n return risp;\n }",
"public String tegevuseSuvalineSoovitus(){\n int listiSuurus = tegevused.size();\n return tegevused.get((int)(Math.random()*listiSuurus));\n }",
"public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }",
"void establecerPuntoAM(int pos){\n this.emisoraAMActual = pos;\n }",
"private String insertarCartaLightning() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 2,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"public Fogon (String cocineroActual){\n Cocinero = cocineroActual;\n grados = 0; \n }",
"private void skaitymasIsFailo() {\n try {\n String eilute = _bufferis.readLine();\n while (eilute != null) {\n eilute = _bufferis.readLine();\n varduSarasas.add(eilute);\n }\n _bufferis.close();\n _in.close();\n } catch (Exception e) {\n\n }\n }",
"@Override\n\tpublic long altaTransporte(Transporte transporte) {\n\t\treturn repositorio.save(transporte).getIdTransporte();\n\t\t\n\t\t//Emitir el cobre del transporte\n\t\t\n\t\t//Avisar al transportista para que recoja el producto\n\n\t}",
"public void buscarEntidad(){\r\n\t\tlistaEstructuraDetalle.clear();\r\n\t\tPersona persona = null;\r\n\t\tList<EstructuraDetalle> lstEstructuraDetalle = null;\r\n\t\ttry {\r\n\t\t\tstrFiltroTextoPersona = strFiltroTextoPersona.trim();\r\n\t\t\tif(intTipoPersonaC.equals(Constante.PARAM_T_TIPOPERSONA_JURIDICA)){\r\n\t\t\t\tif (intPersonaRolC.equals(Constante.PARAM_T_TIPOROL_ENTIDAD)) {\r\n\t\t\t\t\tlstEstructuraDetalle = estructuraFacade.getListaEstructuraDetalleIngresos(SESION_IDSUCURSAL,SESION_IDSUBSUCURSAL);\r\n\t\t\t\t\tif (lstEstructuraDetalle!=null && !lstEstructuraDetalle.isEmpty()) {\r\n\t\t\t\t\t\tfor (EstructuraDetalle estructuraDetalle : lstEstructuraDetalle) {\r\n\t\t\t\t\t\t\tpersona = personaFacade.getPersonaPorPK(estructuraDetalle.getEstructura().getJuridica().getIntIdPersona());\r\n\t\t\t\t\t\t\tif (persona.getStrRuc().trim().equals(\"strFiltroTextoPersona\")) {\r\n\t\t\t\t\t\t\t\testructuraDetalle.getEstructura().getJuridica().setPersona(persona);\r\n\t\t\t\t\t\t\t\tlistaEstructuraDetalle.add(estructuraDetalle);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t}\r\n\t}",
"public void sendUserToEspectate(String userNameToEspectate, GameController gc, GameView gv) {\n connect();\n try {\n doStream.writeUTF(\"ESPECTATE\");\n doStream.writeUTF(userNameToEspectate);\n gc.setPGDirect(true);\n String missatge;\n ArrayList<String> historial = new ArrayList<>();\n missatge = diStream.readUTF();\n if (missatge.equals(\"found\")) {\n missatge = diStream.readUTF();\n while (!missatge.equals(\"END_HISTORIAL\")) {\n System.out.println(\"PARTE HISTORIAL MOVIMIENTOS: \" + missatge);\n historial.add(missatge);\n missatge = diStream.readUTF();\n }\n gc.readyReplay(historial);\n gc.startReplay();\n }else{\n System.out.println(\"Repetit\");\n }\n } catch(IOException e){\n e.printStackTrace();\n }\n\n }",
"private void añadirEnemigo() {\n\t\t\n\t\tif(enemigo.isVivo()==false){\n\t\t\tint k;\n\t\t\tk = (int)(Math.random()*1000)+1;\n\t\t\tif(k<=200){\n\t\t\t\tif(this.puntuacion<10000){\n\t\t\t\t\tenemigo.setTipo(0);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tenemigo.setTipo(1);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void getMese() {\n EAMese eaMesePrevisto;\n EAMese eaMeseOttenuto;\n\n eaMesePrevisto = EAMese.maggio;\n sorgente = \"maggio\";\n eaMeseOttenuto = EAMese.getMese(sorgente);\n assertNotNull(eaMeseOttenuto);\n assertEquals(eaMesePrevisto, eaMeseOttenuto);\n\n eaMesePrevisto = EAMese.ottobre;\n sorgente = \"ott\";\n eaMeseOttenuto = EAMese.getMese(sorgente);\n assertNotNull(eaMeseOttenuto);\n assertEquals(eaMesePrevisto, eaMeseOttenuto);\n }",
"public String agregaTema(){\n TemaDAO udbT = new TemaDAO();\n Tema tema = udbT.find(nombre);\n if(tema != null){\n Mensajes.error(\"El tema ya existe. \\n Añade tus marcadores al tema existente\");\n return \"\";\n }\n InformadorDAO infDAO = new InformadorDAO(); \n IniciarSesionController.UserLogged us= (IniciarSesionController.UserLogged) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"user\");\n Informador informador = infDAO.find(us.getCorreo());\n String color = generaColor();\n tema = new Tema(nombre, color);\n tema.setInformador(informador);\n udbT.save(tema);\n return (\"/informador/agregaMarcadorNuevoTema?faces-redirect=true&tema=\" + nombre);\n }",
"public void cargarEConcepto() {\n\tevidenciaConcepto = true;\n\tif (conceptoSeleccionado.getOrigen().equals(\n\t OrigenInformacionEnum.CONVENIOS.getValor())) {\n\t idEvidencia = convenioVigenteDTO.getId();\n\t nombreFichero = iesDTO.getCodigo() + \"_\"\n\t\t + convenioVigenteDTO.getId();\n\t}\n\n\ttry {\n\t listaEvidenciaConcepto = institutosServicio\n\t\t .obtenerEvidenciasDeIesPorIdConceptoEIdTabla(\n\t\t iesDTO.getId(), conceptoSeleccionado.getId(),\n\t\t idEvidencia, conceptoSeleccionado.getOrigen());\n\n\t} catch (ServicioException e) {\n\t LOG.log(Level.SEVERE, e.getMessage(), e);\n\t}\n }",
"private EmpresaPorAutorizar getEntity(EmpresaPorAutorizarVO vo){\n\t\tEmpresaPorAutorizar entity = new EmpresaPorAutorizar();\n\t\tentity.setAceptacionTerminos(vo.getAceptacionTerminos());\n\t\tif(null!=vo.getApellido1()){\n\t\t\tentity.setApellido1(vo.getApellido1().toUpperCase());\n\t\t}\n\t\tif(null!=vo.getApellido2()){\n\t\t\tentity.setApellido2(vo.getApellido2().toUpperCase());\n\t\t}\t\t\t\n\t\tentity.setConfidencial(vo.getConfidencial());\n\t\tentity.setContactoEmpresa(vo.getContactoEmpresa());\n\t\tentity.setCorreoElectronico(vo.getCorreoElectronico());\n\t\tentity.setDescripcion(vo.getDescripcion());\n\t\tentity.setEstatus(vo.getEstatus());\n\t\tentity.setFechaActa(vo.getFechaActa());\n\t\tentity.setFechaAlta(vo.getFechaAlta());\n\t\tentity.setFechaNacimiento(vo.getFechaNacimiento());\n\t\tentity.setFechaUltimaActualizacion(vo.getFechaUltimaActualizacion());\n\t\tentity.setIdActividadEconomica(vo.getIdActividadEconomica());\n\t\tentity.setIdEmpresa(vo.getIdEmpresa());\n\t\tentity.setIdMedio(vo.getIdMedio());\t\t\n\t\tentity.setIdPortalEmpleo(vo.getIdPortalEmpleo());\t\t\t\t\n\t\tentity.setIdTipoEmpresa(vo.getIdTipoEmpresa());\n\t\tentity.setIdTipoPersona(vo.getIdTipoPersona());\n\t\tentity.setNombreComercial(vo.getNombreComercial());\n\t\tif(null!=vo.getNombre()){\n\t\t\tentity.setNombre(vo.getNombre().toUpperCase());\n\t\t}\n\t\tentity.setNumeroEmpleados(vo.getNumeroEmpleados());\n\t\tentity.setPaginaWeb(vo.getPaginaWeb());\n\t\tif(null!=vo.getRazonSocial()){\n\t\t\tentity.setRazonSocial(vo.getRazonSocial().toUpperCase());\n\t\t}\n\t\tentity.setRfc(vo.getRfc());\t\t\n\t\tentity.setAseguraDatos(vo.getAseguraDatos());\t\n\t\treturn entity;\n\t}",
"private void salvarVenda(String nomeCliente, double precoFinal, double desconto ,String mesAnoAt,String dataCompra,String formaDePagamento) {\n\n\t\tFirebaseAuth autenticacion = configFireBase.getFireBaseAutenticacao();\n\n\t\tString idUsuario = Base64Custom.codificarBase64(autenticacion.getCurrentUser().getEmail());\n\t\tDatabaseReference VendaRef=mDatabase.child(\"vendas\");\n\n\n\t\tvenda.setIdVenda(VendaRef.push().getKey());\n\t\tvenda.setNomeCliente(nomeCliente);\n\t\tvenda.setValorTotal(precoFinal);\n\t\tvenda.setMesAno(mesAnoAt);\n\t\tvenda.setDesconto(desconto);\n\t\tvenda.setDataCompra(dataCompra);\n\t\tvenda.setLista(ListagemDeProdutosParaCompras.produtosSelecionados);\n\t\tvenda.setFormaDePagamento(formaDePagamento);\n\n\t\tmDatabase.child(\"armazenamento\").child(idUsuario).child(\"vendas\").child(venda.getIdVenda()).setValue(venda).addOnCompleteListener(new OnCompleteListener<Void>() {\n\n\t\t\t@Override\n\t\t\tpublic void onComplete(@NonNull Task<Void> task) {\n\n\t\t\t}\n\n\t\t});\n\n\t\tToast.makeText(CadastrarVendaActivity.this, \"Venda Realizada\", Toast.LENGTH_SHORT).show();\n\t\tstartActivity(new Intent(getApplicationContext(), ListagemDeVendasRealizadas.class));\n\t\tvenda.subtrairVendas();\n\n\t\tthis.finish();\n\t}",
"public void service_psy (Personne p) throws FileNotFoundException\r\n\t{\r\n\t\r\n\t\t\r\n\t\t \t\tString [] info_psy=null ;\r\n\t\t \t\tString [] cle_valeur=null;\r\n\t\t \t\tboolean spec,adr;\r\n\t\t \t\tFileInputStream f=new FileInputStream(\"C://Users/Azaiez Hamed/Desktop/workspace/Projet de programmation/src/Medecin.txt\");\r\n\t\t \t\ttry {\r\n\t\t \t\t\tBufferedReader reader =new BufferedReader (new InputStreamReader(f,\"UTF-8\"));\r\n\t\t \t\t\tString line=reader.readLine();\r\n\t\t \t\t\twhile(line!=null){\r\n\t\t \t\t\t\tinfo_psy=line.split(\"\\t\\t\\t\");\r\n\t\t \t\t\t\tspec=false;adr=false;\r\n\t\t \t\t\t\tfor(int i=0;i<info_psy.length;i++)\r\n\t\t \t\t\t\t{\r\n\t\t \t\t\t\t\t cle_valeur=info_psy[i].split(\":\");\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"specialite\"))&& (cle_valeur[1].equals(\"psy\")))\r\n\t\t\t\t\t\t \t spec=true;\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"gouvernerat\"))&&(cle_valeur[1].equals(p.getGouvernerat())))\r\n\t\t \t\t\t\t\t \tadr=true;\r\n\t\t\t\t\t\t}\r\n\t\t \t\t\t\tif (spec && adr) {\r\n\t\t \t\t\t\t\t System.out.println(\"voilà toutes les informations du psy, veuillez lui contacter immédiatement **\");\r\n\t\t \t\t\t\t\t System.out.println(line);return;}\r\n\t\t \t\t\t\telse\r\n\t\t \t\t\t\t line=reader.readLine();\r\n\t\t \t\t\t\t }\r\n\t\t \t\t }\r\n\t\t \t\t \tcatch(IOException e){e.printStackTrace();}\r\n\t\t \t\t System.out.println(\"Pas de psy trouvé dans votre gouvernerat\");\r\n\t}",
"public void atualizarNomeEstudante(String nome_velho, String nome_novo) {\n this.getWritableDatabase().execSQL(\"UPDATE estudante SET nome_estudante = '\" + nome_novo + \"' WHERE nome_estudante = '\"\n + nome_velho + \"';\");\n }",
"public Trabajador(String nombre, String puesto) {\n\t\t\n\t\tthis.nombre = nombre;\n\t\tthis.puesto = puesto;\n\t}",
"ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);"
] | [
"0.5936277",
"0.59156156",
"0.59111917",
"0.59065247",
"0.59024584",
"0.5879283",
"0.5874961",
"0.58383524",
"0.58382636",
"0.5810826",
"0.5801571",
"0.5746431",
"0.57450795",
"0.5733437",
"0.57330763",
"0.57204825",
"0.57052517",
"0.57036716",
"0.5687961",
"0.56782734",
"0.566613",
"0.5658835",
"0.56421524",
"0.56393087",
"0.5610199",
"0.5605416",
"0.55969465",
"0.5582888",
"0.5582178",
"0.55802745",
"0.5559569",
"0.55560136",
"0.55533445",
"0.5540521",
"0.55399334",
"0.5538357",
"0.5535487",
"0.5528838",
"0.55246353",
"0.5523429",
"0.55132425",
"0.5512857",
"0.55110097",
"0.55084026",
"0.5503078",
"0.55025697",
"0.55016524",
"0.5490272",
"0.54868376",
"0.5485589",
"0.54834664",
"0.54799145",
"0.5478149",
"0.54713154",
"0.546998",
"0.54687655",
"0.54616714",
"0.546142",
"0.54568666",
"0.54556084",
"0.5455298",
"0.5452785",
"0.5450559",
"0.5449111",
"0.54486483",
"0.5436021",
"0.5425299",
"0.54220045",
"0.5417235",
"0.5415721",
"0.54139185",
"0.5412749",
"0.54065514",
"0.54045147",
"0.54043335",
"0.5403676",
"0.5403056",
"0.540229",
"0.5401866",
"0.54002815",
"0.5400112",
"0.539924",
"0.53984",
"0.5397869",
"0.5396361",
"0.5389334",
"0.53870755",
"0.5386303",
"0.53854823",
"0.5381872",
"0.53682965",
"0.5366733",
"0.5365403",
"0.5362052",
"0.5359233",
"0.53575885",
"0.5356779",
"0.5356425",
"0.5355923",
"0.53505814",
"0.5349458"
] | 0.0 | -1 |
Funcion Auxiliar para ver la continuidad de las Cartas | public boolean EvaluaColor(char Familia, char Opuesto) {
if (Familia == Opuesto) {
return false;
} else if (Familia == 'C' && Opuesto != 'D') {
return true;
} else if (Familia == 'D' && Opuesto != 'C') {
return true;
} else if (Familia == 'P' && Opuesto != 'T') {
return true;
} else if (Familia == 'T' && Opuesto != 'P') {
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isCartValid();",
"public void testUsarCarta(){\n\t\tassertFalse(c1.haSidoUsada());\r\n\t\tc1.usarCarta();\r\n\t\tassertTrue(c1.haSidoUsada());\r\n\t\tc1.reiniciarCarta();\r\n\t\tassertFalse(c1.haSidoUsada());\r\n\t}",
"public void verCartasDelMazo(){\n for(Carta carta: cartasBaraja){\n System.out.println(carta);\n }\n }",
"public void verCartasDelMazo()\n { \n for (Carta carta : mazo) {\n System.out.println(carta);\n }\n }",
"public boolean verifyCartItem()\n\t{ if (einKaufswagenBtn.isDisplayed())\n\t{\n\t\teinKaufswagenBtn.click();\n\t}\n\tfor (int j=0;j<collectnToStorePrdktIdLst.size();j++)\n\t{\n\t\tString expectedProduct1=collectnToStorePrdktIdLst.get(j);\n\t\tList<WebElement> fndProduct=driver.findElements(By.xpath(\"//form[@id='activeCartViewForm']//div[@class='a-section a-spacing-mini sc-list-body sc-java-remote-feature']//div[@class='a-row sc-list-item sc-list-item-border sc-java-remote-feature']\"));\n\t\tfor (int e=0;e<=fndProduct.size();e++)\n\t\t{\n\t\t\tString actProdkt=fndProduct.get(e).getAttribute(\"data-asin\");\n\t\t\tif (actProdkt.contains(expectedProduct1))\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (cnt==2)\n\t{\n\t\treturn true;\n\t}\n\n\telse\n\t{\n\t\treturn false;\n\t}\n\t}",
"private void checking() {\n\n System.out.println(cart);\n\n for (Order o : cart) {\n if (o.getOrderedProduct().getPrice()!= productRepository.getOne(o.getOrderedProduct().getId()).getPrice()){\n System.out.println(\"product will be updated\");\n deleteFromCart(o.getOrderedProduct().getId());\n addToCart(o.getOrderedProduct().getId(),o.getCount());\n }\n }\n }",
"final boolean isValidCartQty() {\n Map<Integer, ReturnedItemDTO> cartMap = returnTable.getIdAndQuantityMap();\n for (Entry<Integer, ReturnedItemDTO> entry : cartMap.entrySet()) {\n ReturnedItemDTO ret = entry.getValue();\n int qty = ret.qty;\n int damageStatus = ret.damageStatus;\n if (qty > 0 && damageStatus > 0) {\n return true;\n }\n }\n return false;\n\n }",
"private static void checkoutCart() {\r\n\t\tint totalPrice = cart.totalPriceInCent();\r\n\t\tcart.checkoutCartProducts();\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart is all cleared\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price to pay: \" + convertCentToDollar(totalPrice));\r\n\t\tSystem.out.println();\r\n\t}",
"boolean hasQuantity();",
"public static int isCarre(List<Carte> cartes){\r\n\t\treturn suiteMemeCarte(cartes,4);\r\n\t}",
"@Test\n\t\tpublic void testCreateCart() {\n\t\t\t// Test: When created, the cart has 0 items \n\n\t\t\t// 1. Make a new cart\n\t\t\t//ShoppingCart cart = new ShoppingCart();\n\t\t\t\n\t\t\t// 2. check number of items in cart\n\t\t\tint a = cart.getItemCount();\n\t\t\t\n\t\t\t// 3. do the assert\n\t\t\tassertEquals(0, a);\n\t\t}",
"public static int[] isFull(List<Carte> cartes){\r\n\t\tint[] tCartes= new int[2];\r\n\t\ttCartes[0]=suiteMemeCarte(cartes,3);\r\n\t\ttCartes[1]=suiteMemeCarte(cartes,2,tCartes[0]);\r\n\t\treturn tCartes;\r\n\t}",
"public int esMejorCarta(Carta c){\r\n return this.numero.compareTo(c.numero);\r\n }",
"public void displayCartContents() {\r\n for (int i = 0; i < numItems; i++) { // Checks all objects in the cart\r\n if ((cart[i].getContents() != \"\")) { // If not item\r\n System.out.println(cart[i].getDescription()); // Display bag description\r\n System.out.println(cart[i].getContents()); // Display contents of bag\r\n } else { // Else it must be item\r\n System.out.println(cart[i].getDescription()); // Display item description\r\n }\r\n }\r\n }",
"private void condenseShoppingCart()\n {\n for(int d = 0; d < PersistentData.ArryShoppingCartItemNo.size(); d++)\n {\n int numberofItems = 0;\n\n boolean itemNoAlreadyCondensed = false;\n if(CondensedShoppingCart.contains(PersistentData.ArryShoppingCartItemNo.get(d)))\n {\n itemNoAlreadyCondensed = true;\n }\n if(itemNoAlreadyCondensed == false)\n {\n for(int y = 0; y < PersistentData.ArryShoppingCartItemNo.size(); y++)\n {\n if(PersistentData.ArryShoppingCartItemNo.get(d) == PersistentData.ArryShoppingCartItemNo.get(y))\n {\n numberofItems++;\n }\n }\n CondensedShoppingCart.add(PersistentData.ArryShoppingCartItemNo.get(d));\n ShoppingCartItemQuantities.add(numberofItems);\n }\n }\n }",
"public void compareShoppingCartToReOrderItems() {\n UtilityHelper.compareShoppingCartToReOrderItems();\n }",
"private static void viewCart() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Name |Price |Count\");\r\n\t\tfor (Map.Entry<Product, Integer> productCountPair: cart.getCartProductsEntries()) {\r\n\t\t\tStringBuilder productName = generatePaddings(productCountPair.getKey().getName(), PRODUCT_NAME_LENGTH);\r\n\t\t\tStringBuilder price = generatePaddings(convertCentToDollar(productCountPair.getKey().getPriceInCent()), PRICE_LENGTH);\r\n\t\t\tSystem.out.println(\" \" + productName + \"|\" + price + \"|\" + productCountPair.getValue());\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price: \" + convertCentToDollar(cart.totalPriceInCent()));\r\n\t\tSystem.out.println();\r\n\t\tdisplayCartMenu();\r\n\t}",
"public boolean getVisibilidadCarta() {\n return visibilidadCarta;\n }",
"void calculateTheCart(Cart cart, Set<Promotion> promotions);",
"public void printCart() {\n\t\tSystem.out.println(\"Items currently in the cart: \\n\");\n\t\tfor (int i =0; i < currentSize; i ++) {\n\t\t\tSystem.out.println(\"Item \" + i + \":\\n\" + Cart[i]);\n\t\t}\n\t}",
"public void barajarCartas()\n {\n for (int posicionActual = 0; posicionActual < mazo.size(); posicionActual++) {\n Carta carta1 = mazo.get(0);\n Random aleatorio = new Random();\n int posicionAleatoria = aleatorio.nextInt(mazo.size());\n mazo.set(posicionActual, mazo.get(posicionAleatoria));\n mazo.set(posicionAleatoria, carta1);\n }\n }",
"public static int isPaire(List<Carte> cartes){\r\n\t\treturn suiteMemeCarte(cartes,2);\r\n\t}",
"public ArrayList getCartas();",
"public List<CartLine> listAvailable(int cartId);",
"public void mostrarCartasBazas(){\n int cont = 0;\n while(cont < cartasDeLaBaza.size()){\n System.out.println(cartasDeLaBaza.get(cont).toString());\n cont ++;\n }\n }",
"public Carta(char s,int v)\r\n {\r\n valore = v;\r\n \r\n nome = \"\";\r\n \r\n codice = valore;\r\n \r\n Potenziale = new ConcurrentSkipListMap();\r\n \r\n ValoriPotenziale = new ConcurrentSkipListMap(); \r\n \r\n /*\r\n COME VIENE DETERMINATO IL CODICE DELL CARTA:\r\n \r\n Il codice della carta serve principalmente a reperirne\r\n l'immagine all'interno della cartella CardSkins e viene\r\n determinato nel seguente modo:\r\n \r\n - Valore + Seme;\r\n \r\n In modo che si presenti la seguente situazione:\r\n \r\n -Carte di coppe : Intervallo [0,10]\r\n -Carte di denari : Intervallo [11,20]\r\n -Carte di batoni : Intervallo [21,30]\r\n -Carte di spade : Intervallo [31,40]\r\n */\r\n switch(v)\r\n {\r\n case 1:\r\n nome += \"Asso di \";\r\n break;\r\n case 2:\r\n nome += \"Due di \";\r\n break;\r\n case 3:\r\n nome += \"Tre di \";\r\n break;\r\n case 4:\r\n nome += \"Quattro di \";\r\n break;\r\n case 5:\r\n nome += \"Cinque di \";\r\n break;\r\n case 6:\r\n nome += \"Sei di \";\r\n break;\r\n case 7:\r\n nome += \"Sette di \";\r\n break;\r\n case 8:\r\n nome += \"Fante di \";\r\n break;\r\n case 9:\r\n nome += \"Cavallo di \";\r\n break;\r\n case 10:\r\n nome += \"Re di \";\r\n break;\r\n default:\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n switch(s)\r\n {\r\n case 's':\r\n seme = \"spade\";\r\n codice += 30;\r\n break;\r\n case 'b':\r\n seme = \"bastoni\";\r\n codice += 20;\r\n break;\r\n case 'c':\r\n seme = \"coppe\";\r\n codice += 0;\r\n break;\r\n case 'd':\r\n seme = \"denari\";\r\n codice += 10;\r\n break;\r\n default:\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n nome += seme;\r\n \r\n ThoughtProbability = 1.0;\r\n \r\n Weight = 1.0;\r\n \r\n IsMaxPrimiera = false;\r\n }",
"public static int isCouleur(List<Carte> cartes){\r\n\t\t//Compte les couleurs des cartes\r\n\t\tint[] couleurs={0,0,0,0};\r\n\t\tfor(Carte carte : cartes){\r\n\t\t\tcouleurs[carte.getCouleur()+1]=couleurs[carte.getCouleur()+1]+1;\r\n\t\t}\r\n\t\t//Regarde si une des couleurs à au moins 5 carte de la meme couleur\r\n\t\tboolean isCouleur=false;\r\n\t\tfor(int i=0;i<=3;i++){ isCouleur=(isCouleur || (couleurs[i]>=5)); }\r\n\t\tif(isCouleur){\r\n\t\t\tfor(Carte carte : cartes){\r\n\t\t\t\tcouleurs[carte.getCouleur()+1]=couleurs[carte.getCouleur()+1]+1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(isCouleur) return -1;\r\n\t\telse return CalculMain.carteIsolee(cartes);\r\n\t}",
"public V getCarta(K key);",
"@Test\n\t\tpublic void testEmptyTheCart() {\n\t\t\tProduct hamburger = new Product(\"burger\", 10);\n\t\t\t\n\t\t\tcart.addItem(phone);\n\t\t\tcart.addItem(hamburger);\n\t\t\t\n\t\t\t// 3.Get rid of all items in the cart\n\t\t\tcart.empty();\n\t\t\t\n\t\t\t// 4. Check num items in cart === E = 0\n\t\t\tassertEquals(0, cart.getItemCount());\n\t\t}",
"private void _jogaEstado_mesa(Player playerMain, Player playerInimigo) {\n Carta cartaP1;\n CartaMonstro cartaMon;\n CartaMagica cartaMag;\n\n boolean cartasQueAtacaram[] = new boolean[playerMain.mesa.MESA_SIZE];\n int cartaIndex;\n\n Arrays.fill(cartasQueAtacaram, false);\n\n /* o jogador ainda quiser atacar (se possivel) ou mudar a carta para modo defesa-ataque */\n while (true) {\n System.out.println(\"Jogador \" + playerMain.nickName + \", Escolha uma carta da sua mesa que deseja usar ( -1 para finalizar o turno )\");\n for (int i = 0; i < Mesa.MESA_SIZE; i++) {\n cartaMon = playerMain.mesa.cartasMonstros[i];\n\n if (cartaMon != null) {\n System.out.print(\" \" + i + \". \" + cartaMon.getNome() + \" \" + cartaMon.getATK() + \"/\" + cartaMon.getDEF());\n if (cartaMon.getModoCarta().isAtaqueBaixo() || cartaMon.getModoCarta().isAtaqueCima()) {\n System.out.print(\" - A\");\n } else {\n System.out.print(\" - D\");\n }\n if (cartasQueAtacaram[i]) {\n System.out.print(\" - X\");\n }\n\n System.out.println(\"\");\n } else {\n System.out.println(\" \" + i + \". ...\");\n }\n }\n for (int i = 0; i < Mesa.MESA_SIZE; i++) {\n cartaMag = playerMain.mesa.cartasMagicas[i];\n if (cartaMag != null) {\n System.out.println(\" \" + (i + Mesa.MESA_SIZE) + \". \" + cartaMag.getNome() + \" \" + cartaMag.getTipoEfeitoMagico());\n } else {\n System.out.println(\" \" + (i + Mesa.MESA_SIZE) + \" . ...\");\n }\n }\n\n cartaIndex = scanner.nextInt();\n if (cartaIndex == -1) {\n break;\n }\n\n //usando as cartas magicas\n if (cartaIndex >= Mesa.MESA_SIZE) {\n cartaIndex -= Mesa.MESA_SIZE;\n cartaMag = playerMain.mesa.cartasMagicas[cartaIndex];\n if (cartaMag.getTipoEfeitoMagico() == CartaMagica.TipoEfeitoMagico.CAMPO) {\n cartaMag.aplicarEfeito(this, playerMain, -1);\n playerMain.mesa.removeMagica(cartaIndex);\n } else {\n System.out.println(\"Essa carta Magica não é ativavel manualmente!\");\n }\n continue;\n }\n\n if (cartasQueAtacaram[cartaIndex] == false) {\n cartaMon = playerMain.mesa.cartasMonstros[cartaIndex];\n System.out.println(\"Digite 1 para usa-la para atacar e 0 para mudar seu modo defesa-ataque\");\n if (scanner.nextInt() == 1) {\n if (cartaMon.getModoCarta().isAtaqueBaixo() || cartaMon.getModoCarta().isAtaqueCima()) {\n _jogaEstado_atacaMesaInimiga(playerMain, playerInimigo, cartaIndex);\n cartasQueAtacaram[cartaIndex] = true;\n if (playerMain.perdeu() || playerInimigo.perdeu()) {\n break;\n }\n } else {\n System.out.println(\"A carta deve estar em modo de ataque para atacar!\");\n }\n } else {\n giraCarta(cartaMon);\n }\n } else {\n System.out.println(\"Carta já atacou! escolha outra ou finalize o turno.\");\n }\n\n }\n\n }",
"@Test\n\tpublic static void verificationOfItemsInCart() throws InterruptedException {\n\t\tshopPageActions = new ShopPageActions();\n\t\tHomePageActions.naviateToShopPage();\n\t\tShopPageActions.buyFunnyCow();\n\t\tShopPageActions.buyfluffyBunny();\n\t\tShopPageActions.clickCartMenu();\n\t\tShopPageActions.verifyItemsAreInCart();\n\t}",
"@Test\n\tpublic void testAddProductToCart() {\n\t\tdouble startBalance = cart.getBalance();\n\t\tassertEquals(0,startBalance,0.01);\n\t\t\n\t\t\n\t\t\t // 4. CHECK NUM ITEMS IN CART BEFORE ADDING PRODUCT\n\t\t\t // \t\t - PREV NUM ITEMS\n\t\t\n\t\tint StartingNumItems = cart.getItemCount();\n\t\tassertEquals(0,StartingNumItems);\n\t\t\n\t\t\t // 5. ADD THE PRODUCT TO THE CART \n\t\tcart.addItem(phone);\n\t\t\n\t\t\t // 6. CHECK THE UPDATED NUMBER OF ITEMS IN CART \n\t\t\t // \t\t-- EO: NUM ITEMS + 1\n\t\tassertEquals(StartingNumItems + 1, cart.getItemCount());\n\t\t\t // -----------------------\n\t\t\t // 7. CHECK THE UPDATED BALANCE OF THE CART\n\t\t\t // \t\t-- EO: PREVIOUS BALANCE + PRICE OF PRODUCT\n\t\t\n\t\tdouble expectedBalance = startBalance + phone.getPrice();\n\t\t\n\t\tassertEquals(expectedBalance,cart.getBalance(),0.01);\n\t\t\n\t\t\n\t\t\n\t}",
"@Test\n\tvoid testPokerStatusAlVerificarUnaManoQuePoseePokerRetornaPoker() {\n\t\t\n\t\tcarta5=new Carta(\"A\",\"D\") ;//Setup junto con las cartas declaradas anteriormente\n\t\t\n\t\tassertEquals(\"Poker\",pokerStatus.verificar(carta1,carta2,carta3,carta4,carta5));//verify\n\t}",
"private int countProductsInCart_UPDATED() {\n System.out.println(\"-=====================Shopping Cart List========================================-\");\n int count, value;\n count = 0;\n List<WebElement> cakes = getDriver().findElements(By.xpath(\"//*[text()='Edit Your Cake']\"));\n List<WebElement> sthAndCnC = getDriver().findElements(By.xpath(\"//*[starts-with(@id, 'basketBody_') and @type='number']\"));\n System.out.println(\" === adding \" + cakes.size() + \" cakes to count\");\n count += cakes.size();\n for (WebElement product : sthAndCnC) {\n if ((!product.getAttribute(\"value\").equals(\"\")) && (product.getAttribute(\"value\") != null)) {\n String checkForLB = product.getAttribute(\"data-qtyincrement\");\n if (checkForLB.contains(\"0.\")) { //To validate for LB(s) items\n value = 1;\n } else {\n value = Integer.valueOf(product.getAttribute(\"value\"));\n }\n System.out.println(\"=== adding \" + value + \" cnc or sth item to cart\");\n count += value;\n } else {\n System.out.println(\"=== error adding product quantity\");\n }\n }\n System.out.println(\" === Count was: \" + count);\n System.out.println(\"-=====================Shopping Cart List========================================-\");\n return count;\n }",
"public void validate_remainingItem_ShoppingCart() {\n System.out.println(\"List of remaining items ===>> \" + listOfShoppingCardItem);\n System.out.println(\"List of Deleted items =====>> \" + listOfDeletedItemNameShoppingCart);\n Assert.assertTrue(!(listOfShoppingCardItem.containsAll(listOfDeletedItemNameShoppingCart)));\n }",
"@Override\n\tpublic void printCart() {\n\n\t\tint nSize = cartList.size();\n\t\tint intSum = 0;\n\n\t\tSystem.out.println(\"===================================================\");\n\t\tSystem.out.println(\"구매자\\t 상품명 수량\\t 단가\\t 합계\");\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\n\t\tint i = 0;\n\t\tfor (i = 0; i < nSize; i++) {\n\t\t\tSystem.out.print(cartList.get(i).getUserName() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getProductName() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getQty() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getPrice() + \"\\t \");\n\t\t\tSystem.out.println(cartList.get(i).getTotal() + \"\\t\");\n\n\t\t\tintSum += cartList.get(i).getTotal();\n\t\t}\n\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\t\tSystem.out.printf(\"합계\\t%d가지\\t\\t\\t%d\\n\", i, intSum);\n\n\t}",
"@Override\n\tpublic void embaralhar() {\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[0], valoresCartas[i]));\n\t\t}\n\t\t\n\t\t// inserindo cartas para o naipe de ouro\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[1], valoresCartas[i]));\n\t\t}\n\t\t\n\t\t// inserindo cartas para o naipe de espada\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[2], valoresCartas[i]));\n\t\t}\n\t\t\n\t\t// inserindo cartas para o naipe de paus\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[3], valoresCartas[i]));\n\t\t}\n\t\t\n\t\tCollections.shuffle(cartas);\n\t}",
"public static int isBrelan(List<Carte> cartes){\r\n\t\treturn suiteMemeCarte(cartes,3);\r\n\t}",
"public void displayCart() {\n\t\tSystem.out.println(cart.toString());\n\t}",
"public boolean equals(Carta c){\n\t\tif(this.palo.equals(c.palo) && this.numero == c.numero)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"@Test\n\tpublic void testAddingItemsToShoppingCart() {\n\t\tShoppingCartAggregate shoppingCartAggregate = storeFrontService.getStoreFront()\n\t\t\t\t.getShoppingCounter(SHOPPING_COUNTER_NAME).get().startShoppingCart(CUSTOMER_NAME);\n\n\t\ttry {\n\t\t\tshoppingCartAggregate.addToCart(TestProduct.phone.getProductId(), new BigDecimal(1));\n\t\t\tshoppingCartAggregate.addToCart(TestProduct.phoneCase.getProductId(), new BigDecimal(2));\n\t\t} catch (InsufficientStockException e) {\n\t\t\tfail(\"Inventory check failed while adding a product in shopping cart\");\n\t\t}\n\n\t\tPurchaseOrderAggregate purchaseOrderAggregate = shoppingCartAggregate.checkoutCart();\n\t\tassertNotNull(purchaseOrderAggregate);\n\n\t\tPurchaseOrder purchaseOrder = purchaseOrderAggregate.getPurchaseOrder();\n\t\tassertNotNull(purchaseOrder);\n\n\t\tassertEquals(2, purchaseOrder.getOrderItems().size());\n\n\t\tassertEquals(ShoppingCart.CartStatus.CHECKEDOUT, shoppingCartAggregate.getShoppingCart().getCartStatus());\n\t}",
"public K buscarCartas(K key);",
"public Carta sacarCarta()\n {\n Carta cartaADevolver = null;\n if(mazo.size() > 0){\n cartaADevolver = mazo.remove(0);\n }\n return cartaADevolver;\n }",
"public synchronized void verifyCartBtn() {\n\t\ttry {\n\t\t\tWebActionUtil.waitForElement(cartBtn, \"cart button\", 30);\n\t\t\tWebActionUtil.isElementClickable(cartBtn, \"Cart button\");\n\t\t}\n\t\t catch (Exception e) \n\t\t{\n\t\t\t WebActionUtil.error(e.getMessage());\n\t\t\tWebActionUtil.error(\"Unable to clk on cart button\");\n\t\t\tAssert.fail(\"Unable to clk on cart button\");\n\t\t}\n\t}",
"@GetMapping(\"/show-cart\")\r\n\tpublic List<Cart> showCart() throws CartEmptyException {\r\n\t\tlog.info(\"showCart -Start\");\r\n\t\t//Cart cart = null;\r\n\t\tList<Cart> cart;\r\n\t\tcart = service.getAllCartItems(1);\r\n\t\tint total=0;\r\n\t\tif(cart.size()==0)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfor(Cart carts:cart)\r\n\t\t{\r\n\t\t\ttotal+=carts.getMenuItem().getPrice();\r\n\t\t}\r\n\t System.out.println(\"*************************************************\"+total);\r\n\t\tlog.info(\"showCart -End\");\r\n\t\treturn cart;\r\n\r\n\t}",
"private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }",
"boolean examinePaidItems(){\n\t\t\tint count = 0;\n\t\t\tif (!this.items.isEmpty()){\n\t\t\t\tfor (int i = 0; i < this.items.size(); i++){\n\t\t\t\t\tif (this.items.get(i).montaryValue != 0){\n\t\t\t\t\t\tSystem.out.print(this.items.get(i).itemName + \" ($\" + (this.items.get(i).montaryValue * -1) + \"), \");\n\t\t\t\t\t\tcount++;}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!this.receptacle.isEmpty()){//if the location has containers.\n\t\t\t\tfor (int k = 0; k < this.receptacle.size(); k++){//loops through the containers in the location\n\t\t\t\t\tif (!(this.receptacle.get(k) instanceof SpecialtyContainer)){//some containers are hidden, like the depths of the cove. \n\t\t\t\t\t\tfor (int j = 0; j < this.receptacle.get(k).contents.size(); j++){//looks for the items in the non hidden containers\n\t\t\t\t\t\t\tif (this.receptacle.get(k).contents.get(j).montaryValue < 0){//if the item needs to be bought\n\t\t\t\t\t\t\t\tSystem.out.print(this.receptacle.get(k).contents.get(j).itemName + \" ($\" + \n\t\t\t\t\t\t\t\t\t\t(this.receptacle.get(k).contents.get(j).montaryValue * -1) + \"), \");\n\t\t\t\t\t\t\t\tcount++;}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == 0){//it didn't find any items you need to pay for.\n\t\t\t\tSystem.out.println(\"There's nothing here that costs money.\");\n\t\t\t\treturn false;}\n\t\t\treturn true;\n\t\t}",
"List<Cart> getAllCarts();",
"@Test\r\n\tvoid testaddProductToCart() throws Exception\r\n\t{\r\n\t\tCart cart=new Cart();\r\n\t\tcart.setProductId(1001);\r\n\t\tcartdao.addProductToCart(cart);\r\n\t\tList<Cart> l=cartdao.findAllProductsInCart();\r\n\t\tassertEquals(1,l.size());\r\n\t}",
"private void cart() {\n\t\tboolean back = false;\n\t\twhile (!back) {\n\t\t\tSystem.out.println(\"1.Display Cart\");\n\t\t\tSystem.out.println(\"2.Remove Product From Cart\");\n\t\t\tSystem.out.println(\"3.Edit Product in Cart\");\n\t\t\tSystem.out.println(\"4.Checkout\");\n\t\t\tSystem.out.println(\"5.Back\");\n\t\t\tSystem.out.println(\"Enter Your Choice:-\");\n\t\t\tchoice = getValidInteger(\"Enter Your Choice :-\");\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tCartController.getInstance().displayCart();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tremoveProduct();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\teditProduct();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tcheckout();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tback = true;\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tSystem.out.println(\"Enter Correct Choice :-\");\n\t\t\t}\n\t\t}\n\t}",
"public void verifyToCart() {\n if (priceText.getText().equalsIgnoreCase(\"$0.00\")) {\n Assert.fail();\n System.out.println(\"No products have been added to your cart.\");\n\n\n } else\n System.out.println(\"\\n\" +\n \"The product has been successfully added to the Cart.\" + \"\\n\" + \"Total Price: \" + priceText.getText());\n\n }",
"@BeforeAll\n public static void beforeAll()\n {\n cart1.add(\"apple\");\n\n seq1.add(List.of(\"apple\"));\n\n result1 = 1;\n\n // Cart: [Apple, Orange]\n // Seq: [[Orange], [Apple]]\n // Winner: False, items in cart not in the right order\n cart2.add(\"apple\");\n cart2.add(\"orange\");\n\n seq2.add(List.of(\"orange\"));\n seq2.add(List.of(\"apple\"));\n\n result2 = 0;\n\n // Cart: [Apple, Orange, Pear, Apple]\n // Seq: [[Apple], [Orange,Apple]]\n // Winner: False, items not contiguous\n cart3.add(\"apple\");\n cart3.add(\"orange\");\n cart3.add(\"pear\");\n cart3.add(\"apple\");\n\n seq3.add(List.of(\"apple\"));\n seq3.add(List.of(\"orange\", \"apple\"));\n\n result3 = 0;\n\n // Cart: [Apple, Orange, Pear, Apple]\n // Seq: [[Apple], [Any, Apple]]\n // Winner: True, careful that \"any\" doesn't start consuming once \"orange\" is encountered\n cart4.add(\"apple\");\n cart4.add(\"orange\");\n cart4.add(\"pear\");\n cart4.add(\"apple\");\n\n seq4.add(List.of(\"apple\"));\n seq4.add(List.of(\"any\", \"apple\"));\n\n result4 = 1;\n\n // Cart: [Apple]\n // Seq: [[Apple, Any]]\n // Winner: False, No match for apple\n cart5.add(\"apple\");\n\n seq5.add(List.of(\"apple\", \"any\"));\n\n result5 = 0;\n\n // Cart: [Apple]\n // Seq: [[Apple], [Apple]]\n // Winner: False, fruit can't be matched multiple times.\n cart6.add(\"apple\");\n\n seq6.add(List.of(\"apple\"));\n seq6.add(List.of(\"apple\"));\n\n result6 = 0;\n\n // Cart: [Apple, Orange, Pear, Apple]\n // Seq: [[Apple], [Pear, Any]]\n // Winner: True\n cart7.add(\"apple\");\n cart7.add(\"orange\");\n cart7.add(\"pear\");\n cart7.add(\"apple\");\n\n seq7.add(List.of(\"apple\"));\n seq7.add(List.of(\"pear\", \"any\"));\n\n result7 = 1;\n\n // Cart: [Apple, Orange, Apple, Orange, Pear]\n // Seq: [[Apple, Orange, Pear]]\n // Winner: True\n\n cart8.add(\"apple\");\n cart8.add(\"orange\");\n cart8.add(\"apple\");\n cart8.add(\"orange\");\n cart8.add(\"pear\");\n\n seq8.add(List.of(\"apple\", \"orange\", \"pear\"));\n\n result8 = 1;\n }",
"public static boolean testLinkedCart() {\r\n LinkedCart list = new LinkedCart(new Cart(\"A\"));\r\n if (list.getCart().toString() != \"A\")\r\n return false;\r\n if (list.getNext() != null)\r\n return false;\r\n if (list.getPrevious() != null)\r\n return false;\r\n LinkedCart list2 = new LinkedCart(new Cart(\"B\"));\r\n list2.setPrevious(list);\r\n if (list2.getPrevious() != list)\r\n return false;\r\n return true;\r\n }",
"public static void main(String[] args) {\n\n\t\tCustomer customer = new Customer();\n\t\tShoppingCart cart = new ShoppingCart();\n\t\tBill bill = new Bill();\n\t\t\n\t\tcustomer.addCart(cart);\n\t\t\n\t\tint cost1 = 15;\n\t\tint cost2 = 30;\n\t\tint cost3 = 10;\n\t int cost4 = 20;\n\t\t\n\t\tItem item1 = new Item( 12345666L);\n\t\titem1.setCost(cost1);\n\t\tItem item2 = new Item(12345667L);\n\t\titem2.setCost(cost2);\n\t\tItem item3 = new Item(12345668L);\n\t\titem3.setCost(cost3);\n\t\tItem item4 = new Item(12345669L);\n\t\titem4.setCost(cost4);\n\t\t\n\t\tcart.addItem(item1);\n\t\tcart.addItem(item2);\n\t\tcart.addItem(item3);\n\t\tcart.addItem(item4);\n\t\t\n\t\t\n\t\tint total = cart.getTotal();\n\t\t\n\t\tint actual = cost1 + cost2 + cost3 + cost4 ;\n\t\t\n\t\tif(total==actual){\n\t\tSystem.out.println(\"getTotal is correct\");\n\t\tSystem.out.println(\"item 1 is \" + cost1 + \"item 2 is \"+cost2 + \"item 3 is \" + cost3 + \"item 4 is \"+ cost4);\n\t\tSystem.out.println(\"Total is \" + total);\n\t\t}else{\n\t\tSystem.out.println(\"getTotal is wrong\");\n\t\tSystem.out.println(\"expected \" + actual);\t\n\t\tSystem.out.println(\"returned \" + total);\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"removing an item from cart \");\n\t\t\n\t\tcart.removeItem(item4);\n\t\tint newActual = cost1 + cost2 + cost3;\n\t\tint newTotal = cart.getTotal();\n\t\tif(total==actual){\n\t\t\tSystem.out.println(\"getTotal is correct\");\n\t\t\tSystem.out.println(\"item 1 is \" + cost1 + \"item 2 is \"+cost2 + \"item 3 is \" + cost3 );\n\t\t\tSystem.out.println(\"Total is \" + newTotal);\n\t\t}else{\n\t\t\tSystem.out.println(\"getTotal is wrong\");\n\t\t\tSystem.out.println(\"expected \" + newActual);\t\n\t\t\tSystem.out.println(\"returned \" + newTotal);\t\n\t\t\t}\n\t\t\n\t\t\n\t\tbill.inputBill();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"boolean tengoCartaLibertad(){\n return this.cartaLibertad != null;\n }",
"@Test\r\n\tpublic void testAcquistareBigliettiE1() {\r\n\t\tCartaDiCredito carta = new CartaDiCredito(\"2334549359434\",23353.89);\r\n\t\tCliente c1 = new Cliente(\"3\",\"Logan\",\"Peck\",\"logan@hotmail.com\",\r\n\t\t\t\t\"M\",\"333152497\",\"Logan92\",\"loganlogan\",\"loganlogan\",\"il tuo nome\",carta);\r\n\t\tp1.acquistareBiglietti(3,\"carta\", c1);\r\n\t\t//verifico che ci siano 3 biglietti\r\n\t\tassertEquals(3,c1.getPrenotazioni().size());\r\n\t}",
"private boolean validaCompra() {\n\n List<Purchase> purchasesList = billingClient.queryPurchases(INAPP).getPurchasesList();\n if (purchasesList != null && !purchasesList.isEmpty()) {\n for (Purchase purchase : purchasesList) {\n if (purchase.getSku().equals(skuId)) {\n return true;\n }\n }\n }\n return false;\n\n }",
"public void cart() {\n\t\tString s=dr.findElement(By.xpath(\"//*[@id=\\\"Cart\\\"]/form\")).getText();\r\n\t\tSystem.out.println(s);\r\n\t}",
"boolean hasCaz();",
"@Override\r\n\tpublic int countCart(String userid, int pnum) {\n\t\treturn 0;\r\n\t}",
"public int getCartQuantity() {\n return cartQuantity;\n }",
"public static int isQuinteFlush(List<Carte> cartes){\r\n\t\tif(isCouleur(cartes)==-1) return -1;\r\n\t\telse return isSuite(cartes);\r\n\t}",
"public boolean checkOut(boolean showMessage) {\n\t\tif(null==cart){\n\t\t\tcart = new Cart();\n\t\t}\n\t\t\n\t\tint total = 0;\n\t\tboolean success = false;\n\t\tString stringOfItems = cart.toString();\n\t\tif (stringOfItems.isEmpty()) {\n\t\t\tif(showMessage)\n\t\t\t\tJOptionPane.showMessageDialog(Main.getFrame(), \"Your Cart is Empty\",\n\t\t\t\t\t\t\"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t} else {\n\t\t\ttotal = supermarket.checkout(stringOfItems);\n\t\t\tcart.clearCart();\n\t\t\tcartLabel.setText(cart.size()+ \" items in your cart\");\n\t\t\tsuccess = true;\n\t\t\tif(showMessage)\n\t\t\t\tJOptionPane.showMessageDialog(Main.getFrame(),\n\t\t\t\t\t\tString.format(\"<html>Items Purchased: %s<br><br>Your total is: $%s</html>\"\n\t\t\t\t\t\t\t\t,stringOfItems, total), \"Total\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\t\treturn success;\n\t}",
"public ArrayList getOrdenCartas();",
"public void checkout() {\n\t\t// checkout and reset the quantity in global product list\n\t\tfor (CartProduct product : Admin.products) {\n\t\t\ttry {\n\t\t\t\tfor (CartProduct cartProduct : cart.getProducts()) {\n\t\t\t\t\tif (product.getDescription().equals(cartProduct.getDescription())) {\n\t\t\t\t\t\tif(product.getQuantity() >= 1) {\n\t\t\t\t\t\t\tproduct.setQuantity(product.getQuantity() - 1); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tcart.deleteCart();\n\t}",
"boolean isQuantiteProduitDisponible(ProduitFormateUnite produitFormateUnite, int quantite);",
"public double getTotalCartValue();",
"public ShoppingCartSubsystem getShoppingCart();",
"@Test\r\n\tpublic void getTotal_4bc(){\n\t\tcart = new TourShoppingCart(MockRules.getRules());\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(760.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}",
"public void setCartCount() {\n mProductDetailsViewModel.setCartStatus();\n }",
"public void VerifyViewCartandPrintinCheckout(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- View Cart and Print Cart should be present\");\r\n\r\n\t\ttry{\r\n\t\t\tList<WebElement> ele = listofelements(locator_split(\"lnkViewPrintCart\"));\r\n\t\t\tif(ele.size()==2){\r\n\t\t\t\tSystem.out.println(\"View Cart -\"+ele.get(1).getText()+\" and print Cart -\"+ele.get(0).getText()+\" is present\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- View Cart \"+ele.get(1).getText()+\" and print Cart \"+ele.get(0).getText()+\" is present\");\r\n\t\t\t}else{\r\n\t\t\t\tthrow new Exception(\"View cart or Print or both is not present\");\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- View cart or Print or both is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkViewPrintCart\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}",
"@Test(priority = 4)\n\tpublic void validateCartAfterAdd() {\n\t\tCss = read.readPropertiesFile(\"loc.validate.clickoncart.afteradd.css\", ConstantPaths.LOCATORS_FILE);\n\t\tPageActions.clickElement(driver, Css);\n\t\t// click view cart\n\t\tCss = read.readPropertiesFile(\"loc.viewcartbtn.click.css\", ConstantPaths.LOCATORS_FILE);\n\t\tPageActions.clickElement(driver, Css);\n\t\t// validate each cart items-product 1\n\t\tXpath = read.readPropertiesFile(\"loc.verify.nameaftradd.iphone.xpath\", ConstantPaths.LOCATORS_FILE);\n\t\tString actproduct1 = driver.findElement(By.xpath(Xpath)).getText();\n\t\tString exptproduct1 = read.readPropertiesFile(\"exppro1\", ConstantPaths.LOCATORS_FILE);\n\t\tvalidate.validateData(actproduct1, exptproduct1, \"No match\");\n\t\tlog.info(\"Product1\");\n\t\t// product 2\n\t\tXpath = read.readPropertiesFile(\"loc.verify.nameaftradd.mac.xpath\", ConstantPaths.LOCATORS_FILE);\n\t\tString actproduct2 = driver.findElement(By.xpath(Xpath)).getText();\n\t\tString exptproduct2 = read.readPropertiesFile(\"exppro2\", ConstantPaths.LOCATORS_FILE);\n\t\tvalidate.validateData(actproduct2, exptproduct2, \"No match\");\n\t\tlog.info(\"Product2\");\n\t\t// grand total after adding products\n\t\tXpath = read.readPropertiesFile(\"loc.verify.grandtotal.aftradd.xpath\", ConstantPaths.LOCATORS_FILE);\n\t\tString actgrandadd = driver.findElement(By.xpath(Xpath)).getText();\n\t\tString exptgrandadd = read.readPropertiesFile(\"expgrandadd\", ConstantPaths.LOCATORS_FILE);\n\t\tvalidate.validateData(actgrandadd, exptgrandadd, \"No match\");\n\t\tlog.info(\"Grand total after adding products\");\n\n\t}",
"public static void main(String[] args) {\n List<ProductCatalog> productCatalog = new ArrayList<>();\n var apple = new Product(new FruitProduct(\"apple\"));\n var grapes = new Product(new FruitProduct(\"grapes\"));\n var peaches = new Product(new FruitProduct(\"peaches\"));\n productCatalog.add(new ProductCatalog(apple,3, 2,0.2));\n productCatalog.add(new ProductCatalog(grapes,5,2,0.5));\n productCatalog.add(new ProductCatalog(peaches,7,0,0));\n var cart = new ShoppingCart();\n cart.setProductCatalogueList(productCatalog);\n cart.addItem(\"apple\",3);\n /*\n cart.setProductCatalogue(\"apple\",3);\n cart.setProductCatalogue(\"grapes\",5);\n cart.setProductCatalogue(\"peaches\",7);\n */\n //cart1.forEach((cart) -> invoice(cart));\n }",
"public void recibirCarta(Carta unaCarta)\n {\n cartasDeJugador.add(unaCarta);\n\n }",
"public Carta sacarCarta()\n {\n Carta cartaADevolver = null;\n if (mazo.size() > 0) {\n cartaADevolver = mazo.remove(0);\n }\n return cartaADevolver;\n }",
"public boolean insertCart(ProductDetail productDetail) {\n\n db = helper.getWritableDatabase();\n ContentValues v = new ContentValues();\n v.put(DatabaseConstant.TABLE_CART_ID, productDetail.getId());\n v.put(DatabaseConstant.TABLE_CART_TITLE, productDetail.getTitle());\n v.put(DatabaseConstant.TABLE_CART_PRICE, productDetail.getPrice());\n v.put(DatabaseConstant.TABLE_CART_ORDER_QUANTITY, productDetail.getOrder_quantity());\n v.put(DatabaseConstant.TABLE_CART_QUANTITY_TYPE, productDetail.getQuantity_type());\n v.put(DatabaseConstant.TABLE_CART_MIN_QUAITITY, productDetail.getMin_quantity());\n v.put(DatabaseConstant.TABLE_CART_AVAILABILITY, productDetail.getAvailability());\n v.put(DatabaseConstant.TABLE_CART_DISCOUNT, productDetail.getDiscount());\n v.put(DatabaseConstant.TABLE_CART_IMAGE, productDetail.getImage());\n v.put(DatabaseConstant.TABLE_CART_RATING, productDetail.getRating());\n v.put(DatabaseConstant.TABLE_CART_DESCRIPTION, productDetail.getDescription());\n v.put(DatabaseConstant.TABLE_CART_TYPE, productDetail.getType());\n v.put(DatabaseConstant.TABLE_CART_QUANTITY, productDetail.getQuantity());\n long isCheck = db.insert(DatabaseConstant.TABLE_NAME_CART, null, v);\n if (isCheck > 0) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean posicaoCompravel(int posicao) {\n // System.out.println(\"posicao\" + posicao);\n String dono = (String) this.Donos.get(posicao);\n // System.out.println(\"DONO\"+ dono);\n if (dono.equals(\"bank\")) {\n if (this.publicServices == false && posicao != 12 && posicao != 28) {\n return true;\n } else if (this.publicServices == true && (posicao == 12 || posicao == 28)) {\n return true;\n } else if (this.publicServices == false && (posicao == 12 || posicao == 28)) {\n return false;\n } else {\n return true;\n }\n } else {\n return false;\n }\n }",
"public int cantidadCartas(int type);",
"public Cart getCart() {\n return this.cart;\n }",
"@Test\r\n\tpublic void getTotal_oh_sk(){\n\t\tcart = new TourShoppingCart(MockRules.getRules());\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.SK, BigDecimal.valueOf(30.00)) );\r\n\t\t\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(300.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}",
"public static int[] isDoublePaire(List<Carte> cartes){\r\n\t\tint[] tCartes= new int[2];\r\n\t\ttCartes[0]=suiteMemeCarte(cartes,2);\r\n\t\ttCartes[1]=suiteMemeCarte(cartes,2,tCartes[0]);\r\n\t\treturn tCartes;\r\n\t}",
"public ShoppingCart() {\n\t\tmaxSize = 3;\n\t\tCart = new Item[maxSize];\n\t\tcurrentSize = 0;\n\t}",
"private void suppressionCartes () {\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tcartes.put(i, new JVide(carte_lg, carte_ht));\r\n\t\t}\r\n\t\tthis.formerTable();\r\n\t}",
"public boolean giamQuantity(int index) {\n\t\t// lay item cart tai vi tri index\n\t\tItemCart item = listItemcart.get(index);\n\t\tint quantity = item.getQuantity();\n\t\tif (quantity <= 1) {\n\t\t\titem.setQuantity(1);\n\t\t\treturn false;\n\t\t} else {\n\t\t\titem.setQuantity(quantity - 1);\n\t\t\treturn true;\n\t\t}\n\n\t}",
"public Cart() {\r\n\t\tSystem.out.println(\"in ctor of cart\");\r\n\t}",
"@Test\n public void testGetItemCount() {\n \n System.out.println(\"GetItemCount\");\n \n ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n \n instance.addItem(p1);\n \n assertEquals(instance.getItemCount(), 1, 0.0);\n \n Product p2 = new Product(\"Raton\", 85.6);\n Product p3 = new Product(\"Teclado\", 5.5);\n \n instance.addItem(p2);\n instance.addItem(p3);\n \n assertEquals(instance.getItemCount(), 3, 0.0);\n \n \n }",
"public List<CartItem> getAllcartitem();",
"@Test\n /*He utilizado los 2 precios, uno para que sea el precio de cada producto y el otro sera la suma total de los precios*/\n public void testGetBalance() {\n System.out.println(\"getBalance\");\n ShoppingCart instance = new ShoppingCart();\n \n Product p1 = new Product(\"Galletas\", precio1);\n Product p2 = new Product(\"Raton\", precio1);\n Product p3 = new Product(\"Teclado\", precio1);\n Product p4 = new Product(\"Monitor 4K\", precio1);\n \n instance.addItem(p1);\n instance.addItem(p2);\n instance.addItem(p3);\n instance.addItem(p4);\n \n double precio_total = precio2;\n \n double result = instance.getBalance();\n assertEquals(precio_total, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"DetailedCart generateDetailedCart(Cart cart);",
"@Test\r\n\tpublic void testAcquistareBigliettiE3(){\r\n\t\tCartaDiCredito carta2 = new CartaDiCredito(\"2334549359434\",2.8);\r\n\t\tCliente cliente = new Cliente(\"3\",\"Logan\",\"Peck\",\"logan@hotmail.com\",\r\n\t\t\t\t\"M\",\"333152497\",\"Logan92\",\"loganlogan\",\"loganlogan\",\"il tuo nome\",carta2);\r\n\t\tint size = cliente.getPrenotazioni().size();\r\n\t\tp1.acquistareBiglietti(4,\"carta\", cliente);\r\n\t\t//la size non cambia poiche' non vengono inseriti i nuovi biglietti\r\n\t\t//(fallisce acquisto)\r\n\t\tassertEquals(size,cliente.getPrenotazioni().size());\r\n\t}",
"public Carta sacarCarta(){\n Carta nuevaCarta = null;\n nuevaCarta = cartasBaraja.remove(0);\n return nuevaCarta;\n }",
"private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}",
"public Carta(int num,Seme se,int va,int pu){\n this.numero=num;\n this.seme=se;\n this.valore=va;\n this.punti=pu;\n }",
"@Test\r\n\tpublic void getTotal_complexrule(){\r\n\t\tcart = new TourShoppingCart(MockFlexableRules.getRules());\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.SK, BigDecimal.valueOf(30.00)) );\r\n\t\tcart.add(new Item(ItemType.SK, BigDecimal.valueOf(30.00)) );\r\n\t\tcart.add(new Item(ItemType.SK, BigDecimal.valueOf(30.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\t\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(1420.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}",
"private void checkout() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter your Name :\");\n\t\t\tscan.nextLine();\n\t\t\tCartController.getInstance().generateBill(scan.nextLine());\n\t\t} else {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"\\n--------------No Product Available in Cart for Checkout-----------------\\n\");\n\t\t}\n\t}",
"@Test\r\n\tvoid testdeleteProductFromCart() throws Exception\r\n\t{\r\n\t\tCart cart=new Cart();\r\n\t\tcart.setProductId(1001);\r\n\t\tcartdao.addProductToCart(cart);\r\n\t\tList<Cart> l=cartdao.findAllProductsInCart();\r\n\t\tcart=cartdao.deleteProductByIdInCart(1001);\r\n\t\tassertEquals(1,l.size());\r\n\t}",
"public synchronized List<ShoppingCartItem> getItems(){\n List<ShoppingCartItem> cart = new ArrayList<ShoppingCartItem>();\n \n for(ShoppingCartItem cartItem : carrito){\n if(cartItem!=null)\n cart.add(cartItem);\n }\n \n return cart;\n }",
"public Collection pesquisarTarifaSocialCarta(Integer idTarifaSocialComandoCarta) throws ControladorException {\r\n\r\n\t\ttry {\r\n\t\t\treturn repositorioImovel.pesquisarTarifaSocialCarta(idTarifaSocialComandoCarta);\r\n\r\n\t\t} catch (ErroRepositorioException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tthrow new ControladorException(\"erro.sistema\", ex);\r\n\t\t}\r\n\t}",
"public void ViewCart() {\r\n\t\tthis.ViewCart.click();\r\n\t}",
"boolean isInvoiced();",
"@Test\r\n\tpublic void getTotal_3oh(){\n\t\tcart = new TourShoppingCart(MockRules.getRules());\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(710.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}"
] | [
"0.6677486",
"0.65734905",
"0.64453363",
"0.6315408",
"0.62959665",
"0.62586564",
"0.61966443",
"0.61934566",
"0.6188093",
"0.6180121",
"0.61761",
"0.61654204",
"0.6152242",
"0.6130652",
"0.60792303",
"0.6026295",
"0.6013026",
"0.5928394",
"0.59228235",
"0.59124434",
"0.5884817",
"0.58781165",
"0.58761865",
"0.58695775",
"0.582181",
"0.5793521",
"0.5783662",
"0.5770589",
"0.5763359",
"0.5762599",
"0.5732176",
"0.5721485",
"0.5717952",
"0.57142425",
"0.5705783",
"0.5691358",
"0.56875664",
"0.5686501",
"0.56840426",
"0.56711346",
"0.5668769",
"0.5652634",
"0.5648535",
"0.5647679",
"0.5646812",
"0.563944",
"0.56248134",
"0.56182885",
"0.5605377",
"0.56031895",
"0.56010634",
"0.55887353",
"0.5581694",
"0.5568726",
"0.55629385",
"0.5560865",
"0.55503887",
"0.5542394",
"0.5542224",
"0.5542135",
"0.5531196",
"0.5522835",
"0.55163205",
"0.55079204",
"0.550309",
"0.55003995",
"0.5491258",
"0.5488536",
"0.54821706",
"0.54740626",
"0.5472241",
"0.54686797",
"0.54643697",
"0.5463227",
"0.54579246",
"0.5456518",
"0.54475945",
"0.54373163",
"0.5432373",
"0.5428744",
"0.5424964",
"0.5423263",
"0.5422636",
"0.5422215",
"0.5420656",
"0.5419444",
"0.54067355",
"0.540319",
"0.53988844",
"0.539673",
"0.5396205",
"0.53958774",
"0.5395775",
"0.5394959",
"0.5391698",
"0.5386684",
"0.53618914",
"0.5359865",
"0.53596324",
"0.53536785",
"0.53532815"
] | 0.0 | -1 |
Funcion Auxiliar para ver la continuidad de las Cartas | public boolean EvaluaSucesor(char Valor, char Sucesor) {
if (Valor == Sucesor) {
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isCartValid();",
"public void testUsarCarta(){\n\t\tassertFalse(c1.haSidoUsada());\r\n\t\tc1.usarCarta();\r\n\t\tassertTrue(c1.haSidoUsada());\r\n\t\tc1.reiniciarCarta();\r\n\t\tassertFalse(c1.haSidoUsada());\r\n\t}",
"public void verCartasDelMazo(){\n for(Carta carta: cartasBaraja){\n System.out.println(carta);\n }\n }",
"public void verCartasDelMazo()\n { \n for (Carta carta : mazo) {\n System.out.println(carta);\n }\n }",
"public boolean verifyCartItem()\n\t{ if (einKaufswagenBtn.isDisplayed())\n\t{\n\t\teinKaufswagenBtn.click();\n\t}\n\tfor (int j=0;j<collectnToStorePrdktIdLst.size();j++)\n\t{\n\t\tString expectedProduct1=collectnToStorePrdktIdLst.get(j);\n\t\tList<WebElement> fndProduct=driver.findElements(By.xpath(\"//form[@id='activeCartViewForm']//div[@class='a-section a-spacing-mini sc-list-body sc-java-remote-feature']//div[@class='a-row sc-list-item sc-list-item-border sc-java-remote-feature']\"));\n\t\tfor (int e=0;e<=fndProduct.size();e++)\n\t\t{\n\t\t\tString actProdkt=fndProduct.get(e).getAttribute(\"data-asin\");\n\t\t\tif (actProdkt.contains(expectedProduct1))\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (cnt==2)\n\t{\n\t\treturn true;\n\t}\n\n\telse\n\t{\n\t\treturn false;\n\t}\n\t}",
"private void checking() {\n\n System.out.println(cart);\n\n for (Order o : cart) {\n if (o.getOrderedProduct().getPrice()!= productRepository.getOne(o.getOrderedProduct().getId()).getPrice()){\n System.out.println(\"product will be updated\");\n deleteFromCart(o.getOrderedProduct().getId());\n addToCart(o.getOrderedProduct().getId(),o.getCount());\n }\n }\n }",
"final boolean isValidCartQty() {\n Map<Integer, ReturnedItemDTO> cartMap = returnTable.getIdAndQuantityMap();\n for (Entry<Integer, ReturnedItemDTO> entry : cartMap.entrySet()) {\n ReturnedItemDTO ret = entry.getValue();\n int qty = ret.qty;\n int damageStatus = ret.damageStatus;\n if (qty > 0 && damageStatus > 0) {\n return true;\n }\n }\n return false;\n\n }",
"private static void checkoutCart() {\r\n\t\tint totalPrice = cart.totalPriceInCent();\r\n\t\tcart.checkoutCartProducts();\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart is all cleared\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price to pay: \" + convertCentToDollar(totalPrice));\r\n\t\tSystem.out.println();\r\n\t}",
"boolean hasQuantity();",
"public static int isCarre(List<Carte> cartes){\r\n\t\treturn suiteMemeCarte(cartes,4);\r\n\t}",
"@Test\n\t\tpublic void testCreateCart() {\n\t\t\t// Test: When created, the cart has 0 items \n\n\t\t\t// 1. Make a new cart\n\t\t\t//ShoppingCart cart = new ShoppingCart();\n\t\t\t\n\t\t\t// 2. check number of items in cart\n\t\t\tint a = cart.getItemCount();\n\t\t\t\n\t\t\t// 3. do the assert\n\t\t\tassertEquals(0, a);\n\t\t}",
"public static int[] isFull(List<Carte> cartes){\r\n\t\tint[] tCartes= new int[2];\r\n\t\ttCartes[0]=suiteMemeCarte(cartes,3);\r\n\t\ttCartes[1]=suiteMemeCarte(cartes,2,tCartes[0]);\r\n\t\treturn tCartes;\r\n\t}",
"public int esMejorCarta(Carta c){\r\n return this.numero.compareTo(c.numero);\r\n }",
"public void displayCartContents() {\r\n for (int i = 0; i < numItems; i++) { // Checks all objects in the cart\r\n if ((cart[i].getContents() != \"\")) { // If not item\r\n System.out.println(cart[i].getDescription()); // Display bag description\r\n System.out.println(cart[i].getContents()); // Display contents of bag\r\n } else { // Else it must be item\r\n System.out.println(cart[i].getDescription()); // Display item description\r\n }\r\n }\r\n }",
"private void condenseShoppingCart()\n {\n for(int d = 0; d < PersistentData.ArryShoppingCartItemNo.size(); d++)\n {\n int numberofItems = 0;\n\n boolean itemNoAlreadyCondensed = false;\n if(CondensedShoppingCart.contains(PersistentData.ArryShoppingCartItemNo.get(d)))\n {\n itemNoAlreadyCondensed = true;\n }\n if(itemNoAlreadyCondensed == false)\n {\n for(int y = 0; y < PersistentData.ArryShoppingCartItemNo.size(); y++)\n {\n if(PersistentData.ArryShoppingCartItemNo.get(d) == PersistentData.ArryShoppingCartItemNo.get(y))\n {\n numberofItems++;\n }\n }\n CondensedShoppingCart.add(PersistentData.ArryShoppingCartItemNo.get(d));\n ShoppingCartItemQuantities.add(numberofItems);\n }\n }\n }",
"public void compareShoppingCartToReOrderItems() {\n UtilityHelper.compareShoppingCartToReOrderItems();\n }",
"private static void viewCart() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Name |Price |Count\");\r\n\t\tfor (Map.Entry<Product, Integer> productCountPair: cart.getCartProductsEntries()) {\r\n\t\t\tStringBuilder productName = generatePaddings(productCountPair.getKey().getName(), PRODUCT_NAME_LENGTH);\r\n\t\t\tStringBuilder price = generatePaddings(convertCentToDollar(productCountPair.getKey().getPriceInCent()), PRICE_LENGTH);\r\n\t\t\tSystem.out.println(\" \" + productName + \"|\" + price + \"|\" + productCountPair.getValue());\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price: \" + convertCentToDollar(cart.totalPriceInCent()));\r\n\t\tSystem.out.println();\r\n\t\tdisplayCartMenu();\r\n\t}",
"public boolean getVisibilidadCarta() {\n return visibilidadCarta;\n }",
"void calculateTheCart(Cart cart, Set<Promotion> promotions);",
"public void printCart() {\n\t\tSystem.out.println(\"Items currently in the cart: \\n\");\n\t\tfor (int i =0; i < currentSize; i ++) {\n\t\t\tSystem.out.println(\"Item \" + i + \":\\n\" + Cart[i]);\n\t\t}\n\t}",
"public void barajarCartas()\n {\n for (int posicionActual = 0; posicionActual < mazo.size(); posicionActual++) {\n Carta carta1 = mazo.get(0);\n Random aleatorio = new Random();\n int posicionAleatoria = aleatorio.nextInt(mazo.size());\n mazo.set(posicionActual, mazo.get(posicionAleatoria));\n mazo.set(posicionAleatoria, carta1);\n }\n }",
"public static int isPaire(List<Carte> cartes){\r\n\t\treturn suiteMemeCarte(cartes,2);\r\n\t}",
"public ArrayList getCartas();",
"public List<CartLine> listAvailable(int cartId);",
"public void mostrarCartasBazas(){\n int cont = 0;\n while(cont < cartasDeLaBaza.size()){\n System.out.println(cartasDeLaBaza.get(cont).toString());\n cont ++;\n }\n }",
"public Carta(char s,int v)\r\n {\r\n valore = v;\r\n \r\n nome = \"\";\r\n \r\n codice = valore;\r\n \r\n Potenziale = new ConcurrentSkipListMap();\r\n \r\n ValoriPotenziale = new ConcurrentSkipListMap(); \r\n \r\n /*\r\n COME VIENE DETERMINATO IL CODICE DELL CARTA:\r\n \r\n Il codice della carta serve principalmente a reperirne\r\n l'immagine all'interno della cartella CardSkins e viene\r\n determinato nel seguente modo:\r\n \r\n - Valore + Seme;\r\n \r\n In modo che si presenti la seguente situazione:\r\n \r\n -Carte di coppe : Intervallo [0,10]\r\n -Carte di denari : Intervallo [11,20]\r\n -Carte di batoni : Intervallo [21,30]\r\n -Carte di spade : Intervallo [31,40]\r\n */\r\n switch(v)\r\n {\r\n case 1:\r\n nome += \"Asso di \";\r\n break;\r\n case 2:\r\n nome += \"Due di \";\r\n break;\r\n case 3:\r\n nome += \"Tre di \";\r\n break;\r\n case 4:\r\n nome += \"Quattro di \";\r\n break;\r\n case 5:\r\n nome += \"Cinque di \";\r\n break;\r\n case 6:\r\n nome += \"Sei di \";\r\n break;\r\n case 7:\r\n nome += \"Sette di \";\r\n break;\r\n case 8:\r\n nome += \"Fante di \";\r\n break;\r\n case 9:\r\n nome += \"Cavallo di \";\r\n break;\r\n case 10:\r\n nome += \"Re di \";\r\n break;\r\n default:\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n switch(s)\r\n {\r\n case 's':\r\n seme = \"spade\";\r\n codice += 30;\r\n break;\r\n case 'b':\r\n seme = \"bastoni\";\r\n codice += 20;\r\n break;\r\n case 'c':\r\n seme = \"coppe\";\r\n codice += 0;\r\n break;\r\n case 'd':\r\n seme = \"denari\";\r\n codice += 10;\r\n break;\r\n default:\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n nome += seme;\r\n \r\n ThoughtProbability = 1.0;\r\n \r\n Weight = 1.0;\r\n \r\n IsMaxPrimiera = false;\r\n }",
"public static int isCouleur(List<Carte> cartes){\r\n\t\t//Compte les couleurs des cartes\r\n\t\tint[] couleurs={0,0,0,0};\r\n\t\tfor(Carte carte : cartes){\r\n\t\t\tcouleurs[carte.getCouleur()+1]=couleurs[carte.getCouleur()+1]+1;\r\n\t\t}\r\n\t\t//Regarde si une des couleurs à au moins 5 carte de la meme couleur\r\n\t\tboolean isCouleur=false;\r\n\t\tfor(int i=0;i<=3;i++){ isCouleur=(isCouleur || (couleurs[i]>=5)); }\r\n\t\tif(isCouleur){\r\n\t\t\tfor(Carte carte : cartes){\r\n\t\t\t\tcouleurs[carte.getCouleur()+1]=couleurs[carte.getCouleur()+1]+1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(isCouleur) return -1;\r\n\t\telse return CalculMain.carteIsolee(cartes);\r\n\t}",
"public V getCarta(K key);",
"@Test\n\t\tpublic void testEmptyTheCart() {\n\t\t\tProduct hamburger = new Product(\"burger\", 10);\n\t\t\t\n\t\t\tcart.addItem(phone);\n\t\t\tcart.addItem(hamburger);\n\t\t\t\n\t\t\t// 3.Get rid of all items in the cart\n\t\t\tcart.empty();\n\t\t\t\n\t\t\t// 4. Check num items in cart === E = 0\n\t\t\tassertEquals(0, cart.getItemCount());\n\t\t}",
"private void _jogaEstado_mesa(Player playerMain, Player playerInimigo) {\n Carta cartaP1;\n CartaMonstro cartaMon;\n CartaMagica cartaMag;\n\n boolean cartasQueAtacaram[] = new boolean[playerMain.mesa.MESA_SIZE];\n int cartaIndex;\n\n Arrays.fill(cartasQueAtacaram, false);\n\n /* o jogador ainda quiser atacar (se possivel) ou mudar a carta para modo defesa-ataque */\n while (true) {\n System.out.println(\"Jogador \" + playerMain.nickName + \", Escolha uma carta da sua mesa que deseja usar ( -1 para finalizar o turno )\");\n for (int i = 0; i < Mesa.MESA_SIZE; i++) {\n cartaMon = playerMain.mesa.cartasMonstros[i];\n\n if (cartaMon != null) {\n System.out.print(\" \" + i + \". \" + cartaMon.getNome() + \" \" + cartaMon.getATK() + \"/\" + cartaMon.getDEF());\n if (cartaMon.getModoCarta().isAtaqueBaixo() || cartaMon.getModoCarta().isAtaqueCima()) {\n System.out.print(\" - A\");\n } else {\n System.out.print(\" - D\");\n }\n if (cartasQueAtacaram[i]) {\n System.out.print(\" - X\");\n }\n\n System.out.println(\"\");\n } else {\n System.out.println(\" \" + i + \". ...\");\n }\n }\n for (int i = 0; i < Mesa.MESA_SIZE; i++) {\n cartaMag = playerMain.mesa.cartasMagicas[i];\n if (cartaMag != null) {\n System.out.println(\" \" + (i + Mesa.MESA_SIZE) + \". \" + cartaMag.getNome() + \" \" + cartaMag.getTipoEfeitoMagico());\n } else {\n System.out.println(\" \" + (i + Mesa.MESA_SIZE) + \" . ...\");\n }\n }\n\n cartaIndex = scanner.nextInt();\n if (cartaIndex == -1) {\n break;\n }\n\n //usando as cartas magicas\n if (cartaIndex >= Mesa.MESA_SIZE) {\n cartaIndex -= Mesa.MESA_SIZE;\n cartaMag = playerMain.mesa.cartasMagicas[cartaIndex];\n if (cartaMag.getTipoEfeitoMagico() == CartaMagica.TipoEfeitoMagico.CAMPO) {\n cartaMag.aplicarEfeito(this, playerMain, -1);\n playerMain.mesa.removeMagica(cartaIndex);\n } else {\n System.out.println(\"Essa carta Magica não é ativavel manualmente!\");\n }\n continue;\n }\n\n if (cartasQueAtacaram[cartaIndex] == false) {\n cartaMon = playerMain.mesa.cartasMonstros[cartaIndex];\n System.out.println(\"Digite 1 para usa-la para atacar e 0 para mudar seu modo defesa-ataque\");\n if (scanner.nextInt() == 1) {\n if (cartaMon.getModoCarta().isAtaqueBaixo() || cartaMon.getModoCarta().isAtaqueCima()) {\n _jogaEstado_atacaMesaInimiga(playerMain, playerInimigo, cartaIndex);\n cartasQueAtacaram[cartaIndex] = true;\n if (playerMain.perdeu() || playerInimigo.perdeu()) {\n break;\n }\n } else {\n System.out.println(\"A carta deve estar em modo de ataque para atacar!\");\n }\n } else {\n giraCarta(cartaMon);\n }\n } else {\n System.out.println(\"Carta já atacou! escolha outra ou finalize o turno.\");\n }\n\n }\n\n }",
"@Test\n\tpublic static void verificationOfItemsInCart() throws InterruptedException {\n\t\tshopPageActions = new ShopPageActions();\n\t\tHomePageActions.naviateToShopPage();\n\t\tShopPageActions.buyFunnyCow();\n\t\tShopPageActions.buyfluffyBunny();\n\t\tShopPageActions.clickCartMenu();\n\t\tShopPageActions.verifyItemsAreInCart();\n\t}",
"@Test\n\tpublic void testAddProductToCart() {\n\t\tdouble startBalance = cart.getBalance();\n\t\tassertEquals(0,startBalance,0.01);\n\t\t\n\t\t\n\t\t\t // 4. CHECK NUM ITEMS IN CART BEFORE ADDING PRODUCT\n\t\t\t // \t\t - PREV NUM ITEMS\n\t\t\n\t\tint StartingNumItems = cart.getItemCount();\n\t\tassertEquals(0,StartingNumItems);\n\t\t\n\t\t\t // 5. ADD THE PRODUCT TO THE CART \n\t\tcart.addItem(phone);\n\t\t\n\t\t\t // 6. CHECK THE UPDATED NUMBER OF ITEMS IN CART \n\t\t\t // \t\t-- EO: NUM ITEMS + 1\n\t\tassertEquals(StartingNumItems + 1, cart.getItemCount());\n\t\t\t // -----------------------\n\t\t\t // 7. CHECK THE UPDATED BALANCE OF THE CART\n\t\t\t // \t\t-- EO: PREVIOUS BALANCE + PRICE OF PRODUCT\n\t\t\n\t\tdouble expectedBalance = startBalance + phone.getPrice();\n\t\t\n\t\tassertEquals(expectedBalance,cart.getBalance(),0.01);\n\t\t\n\t\t\n\t\t\n\t}",
"@Test\n\tvoid testPokerStatusAlVerificarUnaManoQuePoseePokerRetornaPoker() {\n\t\t\n\t\tcarta5=new Carta(\"A\",\"D\") ;//Setup junto con las cartas declaradas anteriormente\n\t\t\n\t\tassertEquals(\"Poker\",pokerStatus.verificar(carta1,carta2,carta3,carta4,carta5));//verify\n\t}",
"private int countProductsInCart_UPDATED() {\n System.out.println(\"-=====================Shopping Cart List========================================-\");\n int count, value;\n count = 0;\n List<WebElement> cakes = getDriver().findElements(By.xpath(\"//*[text()='Edit Your Cake']\"));\n List<WebElement> sthAndCnC = getDriver().findElements(By.xpath(\"//*[starts-with(@id, 'basketBody_') and @type='number']\"));\n System.out.println(\" === adding \" + cakes.size() + \" cakes to count\");\n count += cakes.size();\n for (WebElement product : sthAndCnC) {\n if ((!product.getAttribute(\"value\").equals(\"\")) && (product.getAttribute(\"value\") != null)) {\n String checkForLB = product.getAttribute(\"data-qtyincrement\");\n if (checkForLB.contains(\"0.\")) { //To validate for LB(s) items\n value = 1;\n } else {\n value = Integer.valueOf(product.getAttribute(\"value\"));\n }\n System.out.println(\"=== adding \" + value + \" cnc or sth item to cart\");\n count += value;\n } else {\n System.out.println(\"=== error adding product quantity\");\n }\n }\n System.out.println(\" === Count was: \" + count);\n System.out.println(\"-=====================Shopping Cart List========================================-\");\n return count;\n }",
"public void validate_remainingItem_ShoppingCart() {\n System.out.println(\"List of remaining items ===>> \" + listOfShoppingCardItem);\n System.out.println(\"List of Deleted items =====>> \" + listOfDeletedItemNameShoppingCart);\n Assert.assertTrue(!(listOfShoppingCardItem.containsAll(listOfDeletedItemNameShoppingCart)));\n }",
"@Override\n\tpublic void printCart() {\n\n\t\tint nSize = cartList.size();\n\t\tint intSum = 0;\n\n\t\tSystem.out.println(\"===================================================\");\n\t\tSystem.out.println(\"구매자\\t 상품명 수량\\t 단가\\t 합계\");\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\n\t\tint i = 0;\n\t\tfor (i = 0; i < nSize; i++) {\n\t\t\tSystem.out.print(cartList.get(i).getUserName() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getProductName() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getQty() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getPrice() + \"\\t \");\n\t\t\tSystem.out.println(cartList.get(i).getTotal() + \"\\t\");\n\n\t\t\tintSum += cartList.get(i).getTotal();\n\t\t}\n\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\t\tSystem.out.printf(\"합계\\t%d가지\\t\\t\\t%d\\n\", i, intSum);\n\n\t}",
"@Override\n\tpublic void embaralhar() {\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[0], valoresCartas[i]));\n\t\t}\n\t\t\n\t\t// inserindo cartas para o naipe de ouro\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[1], valoresCartas[i]));\n\t\t}\n\t\t\n\t\t// inserindo cartas para o naipe de espada\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[2], valoresCartas[i]));\n\t\t}\n\t\t\n\t\t// inserindo cartas para o naipe de paus\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[3], valoresCartas[i]));\n\t\t}\n\t\t\n\t\tCollections.shuffle(cartas);\n\t}",
"public static int isBrelan(List<Carte> cartes){\r\n\t\treturn suiteMemeCarte(cartes,3);\r\n\t}",
"public void displayCart() {\n\t\tSystem.out.println(cart.toString());\n\t}",
"public boolean equals(Carta c){\n\t\tif(this.palo.equals(c.palo) && this.numero == c.numero)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"@Test\n\tpublic void testAddingItemsToShoppingCart() {\n\t\tShoppingCartAggregate shoppingCartAggregate = storeFrontService.getStoreFront()\n\t\t\t\t.getShoppingCounter(SHOPPING_COUNTER_NAME).get().startShoppingCart(CUSTOMER_NAME);\n\n\t\ttry {\n\t\t\tshoppingCartAggregate.addToCart(TestProduct.phone.getProductId(), new BigDecimal(1));\n\t\t\tshoppingCartAggregate.addToCart(TestProduct.phoneCase.getProductId(), new BigDecimal(2));\n\t\t} catch (InsufficientStockException e) {\n\t\t\tfail(\"Inventory check failed while adding a product in shopping cart\");\n\t\t}\n\n\t\tPurchaseOrderAggregate purchaseOrderAggregate = shoppingCartAggregate.checkoutCart();\n\t\tassertNotNull(purchaseOrderAggregate);\n\n\t\tPurchaseOrder purchaseOrder = purchaseOrderAggregate.getPurchaseOrder();\n\t\tassertNotNull(purchaseOrder);\n\n\t\tassertEquals(2, purchaseOrder.getOrderItems().size());\n\n\t\tassertEquals(ShoppingCart.CartStatus.CHECKEDOUT, shoppingCartAggregate.getShoppingCart().getCartStatus());\n\t}",
"public K buscarCartas(K key);",
"public Carta sacarCarta()\n {\n Carta cartaADevolver = null;\n if(mazo.size() > 0){\n cartaADevolver = mazo.remove(0);\n }\n return cartaADevolver;\n }",
"public synchronized void verifyCartBtn() {\n\t\ttry {\n\t\t\tWebActionUtil.waitForElement(cartBtn, \"cart button\", 30);\n\t\t\tWebActionUtil.isElementClickable(cartBtn, \"Cart button\");\n\t\t}\n\t\t catch (Exception e) \n\t\t{\n\t\t\t WebActionUtil.error(e.getMessage());\n\t\t\tWebActionUtil.error(\"Unable to clk on cart button\");\n\t\t\tAssert.fail(\"Unable to clk on cart button\");\n\t\t}\n\t}",
"@GetMapping(\"/show-cart\")\r\n\tpublic List<Cart> showCart() throws CartEmptyException {\r\n\t\tlog.info(\"showCart -Start\");\r\n\t\t//Cart cart = null;\r\n\t\tList<Cart> cart;\r\n\t\tcart = service.getAllCartItems(1);\r\n\t\tint total=0;\r\n\t\tif(cart.size()==0)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfor(Cart carts:cart)\r\n\t\t{\r\n\t\t\ttotal+=carts.getMenuItem().getPrice();\r\n\t\t}\r\n\t System.out.println(\"*************************************************\"+total);\r\n\t\tlog.info(\"showCart -End\");\r\n\t\treturn cart;\r\n\r\n\t}",
"private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }",
"boolean examinePaidItems(){\n\t\t\tint count = 0;\n\t\t\tif (!this.items.isEmpty()){\n\t\t\t\tfor (int i = 0; i < this.items.size(); i++){\n\t\t\t\t\tif (this.items.get(i).montaryValue != 0){\n\t\t\t\t\t\tSystem.out.print(this.items.get(i).itemName + \" ($\" + (this.items.get(i).montaryValue * -1) + \"), \");\n\t\t\t\t\t\tcount++;}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!this.receptacle.isEmpty()){//if the location has containers.\n\t\t\t\tfor (int k = 0; k < this.receptacle.size(); k++){//loops through the containers in the location\n\t\t\t\t\tif (!(this.receptacle.get(k) instanceof SpecialtyContainer)){//some containers are hidden, like the depths of the cove. \n\t\t\t\t\t\tfor (int j = 0; j < this.receptacle.get(k).contents.size(); j++){//looks for the items in the non hidden containers\n\t\t\t\t\t\t\tif (this.receptacle.get(k).contents.get(j).montaryValue < 0){//if the item needs to be bought\n\t\t\t\t\t\t\t\tSystem.out.print(this.receptacle.get(k).contents.get(j).itemName + \" ($\" + \n\t\t\t\t\t\t\t\t\t\t(this.receptacle.get(k).contents.get(j).montaryValue * -1) + \"), \");\n\t\t\t\t\t\t\t\tcount++;}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == 0){//it didn't find any items you need to pay for.\n\t\t\t\tSystem.out.println(\"There's nothing here that costs money.\");\n\t\t\t\treturn false;}\n\t\t\treturn true;\n\t\t}",
"List<Cart> getAllCarts();",
"@Test\r\n\tvoid testaddProductToCart() throws Exception\r\n\t{\r\n\t\tCart cart=new Cart();\r\n\t\tcart.setProductId(1001);\r\n\t\tcartdao.addProductToCart(cart);\r\n\t\tList<Cart> l=cartdao.findAllProductsInCart();\r\n\t\tassertEquals(1,l.size());\r\n\t}",
"private void cart() {\n\t\tboolean back = false;\n\t\twhile (!back) {\n\t\t\tSystem.out.println(\"1.Display Cart\");\n\t\t\tSystem.out.println(\"2.Remove Product From Cart\");\n\t\t\tSystem.out.println(\"3.Edit Product in Cart\");\n\t\t\tSystem.out.println(\"4.Checkout\");\n\t\t\tSystem.out.println(\"5.Back\");\n\t\t\tSystem.out.println(\"Enter Your Choice:-\");\n\t\t\tchoice = getValidInteger(\"Enter Your Choice :-\");\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tCartController.getInstance().displayCart();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tremoveProduct();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\teditProduct();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tcheckout();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tback = true;\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tSystem.out.println(\"Enter Correct Choice :-\");\n\t\t\t}\n\t\t}\n\t}",
"public void verifyToCart() {\n if (priceText.getText().equalsIgnoreCase(\"$0.00\")) {\n Assert.fail();\n System.out.println(\"No products have been added to your cart.\");\n\n\n } else\n System.out.println(\"\\n\" +\n \"The product has been successfully added to the Cart.\" + \"\\n\" + \"Total Price: \" + priceText.getText());\n\n }",
"@BeforeAll\n public static void beforeAll()\n {\n cart1.add(\"apple\");\n\n seq1.add(List.of(\"apple\"));\n\n result1 = 1;\n\n // Cart: [Apple, Orange]\n // Seq: [[Orange], [Apple]]\n // Winner: False, items in cart not in the right order\n cart2.add(\"apple\");\n cart2.add(\"orange\");\n\n seq2.add(List.of(\"orange\"));\n seq2.add(List.of(\"apple\"));\n\n result2 = 0;\n\n // Cart: [Apple, Orange, Pear, Apple]\n // Seq: [[Apple], [Orange,Apple]]\n // Winner: False, items not contiguous\n cart3.add(\"apple\");\n cart3.add(\"orange\");\n cart3.add(\"pear\");\n cart3.add(\"apple\");\n\n seq3.add(List.of(\"apple\"));\n seq3.add(List.of(\"orange\", \"apple\"));\n\n result3 = 0;\n\n // Cart: [Apple, Orange, Pear, Apple]\n // Seq: [[Apple], [Any, Apple]]\n // Winner: True, careful that \"any\" doesn't start consuming once \"orange\" is encountered\n cart4.add(\"apple\");\n cart4.add(\"orange\");\n cart4.add(\"pear\");\n cart4.add(\"apple\");\n\n seq4.add(List.of(\"apple\"));\n seq4.add(List.of(\"any\", \"apple\"));\n\n result4 = 1;\n\n // Cart: [Apple]\n // Seq: [[Apple, Any]]\n // Winner: False, No match for apple\n cart5.add(\"apple\");\n\n seq5.add(List.of(\"apple\", \"any\"));\n\n result5 = 0;\n\n // Cart: [Apple]\n // Seq: [[Apple], [Apple]]\n // Winner: False, fruit can't be matched multiple times.\n cart6.add(\"apple\");\n\n seq6.add(List.of(\"apple\"));\n seq6.add(List.of(\"apple\"));\n\n result6 = 0;\n\n // Cart: [Apple, Orange, Pear, Apple]\n // Seq: [[Apple], [Pear, Any]]\n // Winner: True\n cart7.add(\"apple\");\n cart7.add(\"orange\");\n cart7.add(\"pear\");\n cart7.add(\"apple\");\n\n seq7.add(List.of(\"apple\"));\n seq7.add(List.of(\"pear\", \"any\"));\n\n result7 = 1;\n\n // Cart: [Apple, Orange, Apple, Orange, Pear]\n // Seq: [[Apple, Orange, Pear]]\n // Winner: True\n\n cart8.add(\"apple\");\n cart8.add(\"orange\");\n cart8.add(\"apple\");\n cart8.add(\"orange\");\n cart8.add(\"pear\");\n\n seq8.add(List.of(\"apple\", \"orange\", \"pear\"));\n\n result8 = 1;\n }",
"public static boolean testLinkedCart() {\r\n LinkedCart list = new LinkedCart(new Cart(\"A\"));\r\n if (list.getCart().toString() != \"A\")\r\n return false;\r\n if (list.getNext() != null)\r\n return false;\r\n if (list.getPrevious() != null)\r\n return false;\r\n LinkedCart list2 = new LinkedCart(new Cart(\"B\"));\r\n list2.setPrevious(list);\r\n if (list2.getPrevious() != list)\r\n return false;\r\n return true;\r\n }",
"public static void main(String[] args) {\n\n\t\tCustomer customer = new Customer();\n\t\tShoppingCart cart = new ShoppingCart();\n\t\tBill bill = new Bill();\n\t\t\n\t\tcustomer.addCart(cart);\n\t\t\n\t\tint cost1 = 15;\n\t\tint cost2 = 30;\n\t\tint cost3 = 10;\n\t int cost4 = 20;\n\t\t\n\t\tItem item1 = new Item( 12345666L);\n\t\titem1.setCost(cost1);\n\t\tItem item2 = new Item(12345667L);\n\t\titem2.setCost(cost2);\n\t\tItem item3 = new Item(12345668L);\n\t\titem3.setCost(cost3);\n\t\tItem item4 = new Item(12345669L);\n\t\titem4.setCost(cost4);\n\t\t\n\t\tcart.addItem(item1);\n\t\tcart.addItem(item2);\n\t\tcart.addItem(item3);\n\t\tcart.addItem(item4);\n\t\t\n\t\t\n\t\tint total = cart.getTotal();\n\t\t\n\t\tint actual = cost1 + cost2 + cost3 + cost4 ;\n\t\t\n\t\tif(total==actual){\n\t\tSystem.out.println(\"getTotal is correct\");\n\t\tSystem.out.println(\"item 1 is \" + cost1 + \"item 2 is \"+cost2 + \"item 3 is \" + cost3 + \"item 4 is \"+ cost4);\n\t\tSystem.out.println(\"Total is \" + total);\n\t\t}else{\n\t\tSystem.out.println(\"getTotal is wrong\");\n\t\tSystem.out.println(\"expected \" + actual);\t\n\t\tSystem.out.println(\"returned \" + total);\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"removing an item from cart \");\n\t\t\n\t\tcart.removeItem(item4);\n\t\tint newActual = cost1 + cost2 + cost3;\n\t\tint newTotal = cart.getTotal();\n\t\tif(total==actual){\n\t\t\tSystem.out.println(\"getTotal is correct\");\n\t\t\tSystem.out.println(\"item 1 is \" + cost1 + \"item 2 is \"+cost2 + \"item 3 is \" + cost3 );\n\t\t\tSystem.out.println(\"Total is \" + newTotal);\n\t\t}else{\n\t\t\tSystem.out.println(\"getTotal is wrong\");\n\t\t\tSystem.out.println(\"expected \" + newActual);\t\n\t\t\tSystem.out.println(\"returned \" + newTotal);\t\n\t\t\t}\n\t\t\n\t\t\n\t\tbill.inputBill();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"boolean tengoCartaLibertad(){\n return this.cartaLibertad != null;\n }",
"@Test\r\n\tpublic void testAcquistareBigliettiE1() {\r\n\t\tCartaDiCredito carta = new CartaDiCredito(\"2334549359434\",23353.89);\r\n\t\tCliente c1 = new Cliente(\"3\",\"Logan\",\"Peck\",\"logan@hotmail.com\",\r\n\t\t\t\t\"M\",\"333152497\",\"Logan92\",\"loganlogan\",\"loganlogan\",\"il tuo nome\",carta);\r\n\t\tp1.acquistareBiglietti(3,\"carta\", c1);\r\n\t\t//verifico che ci siano 3 biglietti\r\n\t\tassertEquals(3,c1.getPrenotazioni().size());\r\n\t}",
"private boolean validaCompra() {\n\n List<Purchase> purchasesList = billingClient.queryPurchases(INAPP).getPurchasesList();\n if (purchasesList != null && !purchasesList.isEmpty()) {\n for (Purchase purchase : purchasesList) {\n if (purchase.getSku().equals(skuId)) {\n return true;\n }\n }\n }\n return false;\n\n }",
"public void cart() {\n\t\tString s=dr.findElement(By.xpath(\"//*[@id=\\\"Cart\\\"]/form\")).getText();\r\n\t\tSystem.out.println(s);\r\n\t}",
"boolean hasCaz();",
"@Override\r\n\tpublic int countCart(String userid, int pnum) {\n\t\treturn 0;\r\n\t}",
"public int getCartQuantity() {\n return cartQuantity;\n }",
"public static int isQuinteFlush(List<Carte> cartes){\r\n\t\tif(isCouleur(cartes)==-1) return -1;\r\n\t\telse return isSuite(cartes);\r\n\t}",
"public boolean checkOut(boolean showMessage) {\n\t\tif(null==cart){\n\t\t\tcart = new Cart();\n\t\t}\n\t\t\n\t\tint total = 0;\n\t\tboolean success = false;\n\t\tString stringOfItems = cart.toString();\n\t\tif (stringOfItems.isEmpty()) {\n\t\t\tif(showMessage)\n\t\t\t\tJOptionPane.showMessageDialog(Main.getFrame(), \"Your Cart is Empty\",\n\t\t\t\t\t\t\"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t} else {\n\t\t\ttotal = supermarket.checkout(stringOfItems);\n\t\t\tcart.clearCart();\n\t\t\tcartLabel.setText(cart.size()+ \" items in your cart\");\n\t\t\tsuccess = true;\n\t\t\tif(showMessage)\n\t\t\t\tJOptionPane.showMessageDialog(Main.getFrame(),\n\t\t\t\t\t\tString.format(\"<html>Items Purchased: %s<br><br>Your total is: $%s</html>\"\n\t\t\t\t\t\t\t\t,stringOfItems, total), \"Total\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\t\treturn success;\n\t}",
"public ArrayList getOrdenCartas();",
"public void checkout() {\n\t\t// checkout and reset the quantity in global product list\n\t\tfor (CartProduct product : Admin.products) {\n\t\t\ttry {\n\t\t\t\tfor (CartProduct cartProduct : cart.getProducts()) {\n\t\t\t\t\tif (product.getDescription().equals(cartProduct.getDescription())) {\n\t\t\t\t\t\tif(product.getQuantity() >= 1) {\n\t\t\t\t\t\t\tproduct.setQuantity(product.getQuantity() - 1); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tcart.deleteCart();\n\t}",
"boolean isQuantiteProduitDisponible(ProduitFormateUnite produitFormateUnite, int quantite);",
"public double getTotalCartValue();",
"public ShoppingCartSubsystem getShoppingCart();",
"@Test\r\n\tpublic void getTotal_4bc(){\n\t\tcart = new TourShoppingCart(MockRules.getRules());\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(760.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}",
"public void setCartCount() {\n mProductDetailsViewModel.setCartStatus();\n }",
"public void VerifyViewCartandPrintinCheckout(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- View Cart and Print Cart should be present\");\r\n\r\n\t\ttry{\r\n\t\t\tList<WebElement> ele = listofelements(locator_split(\"lnkViewPrintCart\"));\r\n\t\t\tif(ele.size()==2){\r\n\t\t\t\tSystem.out.println(\"View Cart -\"+ele.get(1).getText()+\" and print Cart -\"+ele.get(0).getText()+\" is present\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- View Cart \"+ele.get(1).getText()+\" and print Cart \"+ele.get(0).getText()+\" is present\");\r\n\t\t\t}else{\r\n\t\t\t\tthrow new Exception(\"View cart or Print or both is not present\");\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- View cart or Print or both is not present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkViewPrintCart\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}",
"@Test(priority = 4)\n\tpublic void validateCartAfterAdd() {\n\t\tCss = read.readPropertiesFile(\"loc.validate.clickoncart.afteradd.css\", ConstantPaths.LOCATORS_FILE);\n\t\tPageActions.clickElement(driver, Css);\n\t\t// click view cart\n\t\tCss = read.readPropertiesFile(\"loc.viewcartbtn.click.css\", ConstantPaths.LOCATORS_FILE);\n\t\tPageActions.clickElement(driver, Css);\n\t\t// validate each cart items-product 1\n\t\tXpath = read.readPropertiesFile(\"loc.verify.nameaftradd.iphone.xpath\", ConstantPaths.LOCATORS_FILE);\n\t\tString actproduct1 = driver.findElement(By.xpath(Xpath)).getText();\n\t\tString exptproduct1 = read.readPropertiesFile(\"exppro1\", ConstantPaths.LOCATORS_FILE);\n\t\tvalidate.validateData(actproduct1, exptproduct1, \"No match\");\n\t\tlog.info(\"Product1\");\n\t\t// product 2\n\t\tXpath = read.readPropertiesFile(\"loc.verify.nameaftradd.mac.xpath\", ConstantPaths.LOCATORS_FILE);\n\t\tString actproduct2 = driver.findElement(By.xpath(Xpath)).getText();\n\t\tString exptproduct2 = read.readPropertiesFile(\"exppro2\", ConstantPaths.LOCATORS_FILE);\n\t\tvalidate.validateData(actproduct2, exptproduct2, \"No match\");\n\t\tlog.info(\"Product2\");\n\t\t// grand total after adding products\n\t\tXpath = read.readPropertiesFile(\"loc.verify.grandtotal.aftradd.xpath\", ConstantPaths.LOCATORS_FILE);\n\t\tString actgrandadd = driver.findElement(By.xpath(Xpath)).getText();\n\t\tString exptgrandadd = read.readPropertiesFile(\"expgrandadd\", ConstantPaths.LOCATORS_FILE);\n\t\tvalidate.validateData(actgrandadd, exptgrandadd, \"No match\");\n\t\tlog.info(\"Grand total after adding products\");\n\n\t}",
"public static void main(String[] args) {\n List<ProductCatalog> productCatalog = new ArrayList<>();\n var apple = new Product(new FruitProduct(\"apple\"));\n var grapes = new Product(new FruitProduct(\"grapes\"));\n var peaches = new Product(new FruitProduct(\"peaches\"));\n productCatalog.add(new ProductCatalog(apple,3, 2,0.2));\n productCatalog.add(new ProductCatalog(grapes,5,2,0.5));\n productCatalog.add(new ProductCatalog(peaches,7,0,0));\n var cart = new ShoppingCart();\n cart.setProductCatalogueList(productCatalog);\n cart.addItem(\"apple\",3);\n /*\n cart.setProductCatalogue(\"apple\",3);\n cart.setProductCatalogue(\"grapes\",5);\n cart.setProductCatalogue(\"peaches\",7);\n */\n //cart1.forEach((cart) -> invoice(cart));\n }",
"public void recibirCarta(Carta unaCarta)\n {\n cartasDeJugador.add(unaCarta);\n\n }",
"public Carta sacarCarta()\n {\n Carta cartaADevolver = null;\n if (mazo.size() > 0) {\n cartaADevolver = mazo.remove(0);\n }\n return cartaADevolver;\n }",
"public boolean insertCart(ProductDetail productDetail) {\n\n db = helper.getWritableDatabase();\n ContentValues v = new ContentValues();\n v.put(DatabaseConstant.TABLE_CART_ID, productDetail.getId());\n v.put(DatabaseConstant.TABLE_CART_TITLE, productDetail.getTitle());\n v.put(DatabaseConstant.TABLE_CART_PRICE, productDetail.getPrice());\n v.put(DatabaseConstant.TABLE_CART_ORDER_QUANTITY, productDetail.getOrder_quantity());\n v.put(DatabaseConstant.TABLE_CART_QUANTITY_TYPE, productDetail.getQuantity_type());\n v.put(DatabaseConstant.TABLE_CART_MIN_QUAITITY, productDetail.getMin_quantity());\n v.put(DatabaseConstant.TABLE_CART_AVAILABILITY, productDetail.getAvailability());\n v.put(DatabaseConstant.TABLE_CART_DISCOUNT, productDetail.getDiscount());\n v.put(DatabaseConstant.TABLE_CART_IMAGE, productDetail.getImage());\n v.put(DatabaseConstant.TABLE_CART_RATING, productDetail.getRating());\n v.put(DatabaseConstant.TABLE_CART_DESCRIPTION, productDetail.getDescription());\n v.put(DatabaseConstant.TABLE_CART_TYPE, productDetail.getType());\n v.put(DatabaseConstant.TABLE_CART_QUANTITY, productDetail.getQuantity());\n long isCheck = db.insert(DatabaseConstant.TABLE_NAME_CART, null, v);\n if (isCheck > 0) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean posicaoCompravel(int posicao) {\n // System.out.println(\"posicao\" + posicao);\n String dono = (String) this.Donos.get(posicao);\n // System.out.println(\"DONO\"+ dono);\n if (dono.equals(\"bank\")) {\n if (this.publicServices == false && posicao != 12 && posicao != 28) {\n return true;\n } else if (this.publicServices == true && (posicao == 12 || posicao == 28)) {\n return true;\n } else if (this.publicServices == false && (posicao == 12 || posicao == 28)) {\n return false;\n } else {\n return true;\n }\n } else {\n return false;\n }\n }",
"public int cantidadCartas(int type);",
"public Cart getCart() {\n return this.cart;\n }",
"@Test\r\n\tpublic void getTotal_oh_sk(){\n\t\tcart = new TourShoppingCart(MockRules.getRules());\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.SK, BigDecimal.valueOf(30.00)) );\r\n\t\t\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(300.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}",
"public static int[] isDoublePaire(List<Carte> cartes){\r\n\t\tint[] tCartes= new int[2];\r\n\t\ttCartes[0]=suiteMemeCarte(cartes,2);\r\n\t\ttCartes[1]=suiteMemeCarte(cartes,2,tCartes[0]);\r\n\t\treturn tCartes;\r\n\t}",
"public ShoppingCart() {\n\t\tmaxSize = 3;\n\t\tCart = new Item[maxSize];\n\t\tcurrentSize = 0;\n\t}",
"private void suppressionCartes () {\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tcartes.put(i, new JVide(carte_lg, carte_ht));\r\n\t\t}\r\n\t\tthis.formerTable();\r\n\t}",
"public boolean giamQuantity(int index) {\n\t\t// lay item cart tai vi tri index\n\t\tItemCart item = listItemcart.get(index);\n\t\tint quantity = item.getQuantity();\n\t\tif (quantity <= 1) {\n\t\t\titem.setQuantity(1);\n\t\t\treturn false;\n\t\t} else {\n\t\t\titem.setQuantity(quantity - 1);\n\t\t\treturn true;\n\t\t}\n\n\t}",
"public Cart() {\r\n\t\tSystem.out.println(\"in ctor of cart\");\r\n\t}",
"@Test\n public void testGetItemCount() {\n \n System.out.println(\"GetItemCount\");\n \n ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n \n instance.addItem(p1);\n \n assertEquals(instance.getItemCount(), 1, 0.0);\n \n Product p2 = new Product(\"Raton\", 85.6);\n Product p3 = new Product(\"Teclado\", 5.5);\n \n instance.addItem(p2);\n instance.addItem(p3);\n \n assertEquals(instance.getItemCount(), 3, 0.0);\n \n \n }",
"public List<CartItem> getAllcartitem();",
"@Test\n /*He utilizado los 2 precios, uno para que sea el precio de cada producto y el otro sera la suma total de los precios*/\n public void testGetBalance() {\n System.out.println(\"getBalance\");\n ShoppingCart instance = new ShoppingCart();\n \n Product p1 = new Product(\"Galletas\", precio1);\n Product p2 = new Product(\"Raton\", precio1);\n Product p3 = new Product(\"Teclado\", precio1);\n Product p4 = new Product(\"Monitor 4K\", precio1);\n \n instance.addItem(p1);\n instance.addItem(p2);\n instance.addItem(p3);\n instance.addItem(p4);\n \n double precio_total = precio2;\n \n double result = instance.getBalance();\n assertEquals(precio_total, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"DetailedCart generateDetailedCart(Cart cart);",
"@Test\r\n\tpublic void testAcquistareBigliettiE3(){\r\n\t\tCartaDiCredito carta2 = new CartaDiCredito(\"2334549359434\",2.8);\r\n\t\tCliente cliente = new Cliente(\"3\",\"Logan\",\"Peck\",\"logan@hotmail.com\",\r\n\t\t\t\t\"M\",\"333152497\",\"Logan92\",\"loganlogan\",\"loganlogan\",\"il tuo nome\",carta2);\r\n\t\tint size = cliente.getPrenotazioni().size();\r\n\t\tp1.acquistareBiglietti(4,\"carta\", cliente);\r\n\t\t//la size non cambia poiche' non vengono inseriti i nuovi biglietti\r\n\t\t//(fallisce acquisto)\r\n\t\tassertEquals(size,cliente.getPrenotazioni().size());\r\n\t}",
"public Carta sacarCarta(){\n Carta nuevaCarta = null;\n nuevaCarta = cartasBaraja.remove(0);\n return nuevaCarta;\n }",
"private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}",
"public Carta(int num,Seme se,int va,int pu){\n this.numero=num;\n this.seme=se;\n this.valore=va;\n this.punti=pu;\n }",
"@Test\r\n\tpublic void getTotal_complexrule(){\r\n\t\tcart = new TourShoppingCart(MockFlexableRules.getRules());\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.SK, BigDecimal.valueOf(30.00)) );\r\n\t\tcart.add(new Item(ItemType.SK, BigDecimal.valueOf(30.00)) );\r\n\t\tcart.add(new Item(ItemType.SK, BigDecimal.valueOf(30.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\t\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(1420.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}",
"private void checkout() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter your Name :\");\n\t\t\tscan.nextLine();\n\t\t\tCartController.getInstance().generateBill(scan.nextLine());\n\t\t} else {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"\\n--------------No Product Available in Cart for Checkout-----------------\\n\");\n\t\t}\n\t}",
"@Test\r\n\tvoid testdeleteProductFromCart() throws Exception\r\n\t{\r\n\t\tCart cart=new Cart();\r\n\t\tcart.setProductId(1001);\r\n\t\tcartdao.addProductToCart(cart);\r\n\t\tList<Cart> l=cartdao.findAllProductsInCart();\r\n\t\tcart=cartdao.deleteProductByIdInCart(1001);\r\n\t\tassertEquals(1,l.size());\r\n\t}",
"public synchronized List<ShoppingCartItem> getItems(){\n List<ShoppingCartItem> cart = new ArrayList<ShoppingCartItem>();\n \n for(ShoppingCartItem cartItem : carrito){\n if(cartItem!=null)\n cart.add(cartItem);\n }\n \n return cart;\n }",
"public Collection pesquisarTarifaSocialCarta(Integer idTarifaSocialComandoCarta) throws ControladorException {\r\n\r\n\t\ttry {\r\n\t\t\treturn repositorioImovel.pesquisarTarifaSocialCarta(idTarifaSocialComandoCarta);\r\n\r\n\t\t} catch (ErroRepositorioException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tthrow new ControladorException(\"erro.sistema\", ex);\r\n\t\t}\r\n\t}",
"public void ViewCart() {\r\n\t\tthis.ViewCart.click();\r\n\t}",
"boolean isInvoiced();",
"@Test\r\n\tpublic void getTotal_3oh(){\n\t\tcart = new TourShoppingCart(MockRules.getRules());\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(710.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}"
] | [
"0.6677486",
"0.65734905",
"0.64453363",
"0.6315408",
"0.62959665",
"0.62586564",
"0.61966443",
"0.61934566",
"0.6188093",
"0.6180121",
"0.61761",
"0.61654204",
"0.6152242",
"0.6130652",
"0.60792303",
"0.6026295",
"0.6013026",
"0.5928394",
"0.59228235",
"0.59124434",
"0.5884817",
"0.58781165",
"0.58761865",
"0.58695775",
"0.582181",
"0.5793521",
"0.5783662",
"0.5770589",
"0.5763359",
"0.5762599",
"0.5732176",
"0.5721485",
"0.5717952",
"0.57142425",
"0.5705783",
"0.5691358",
"0.56875664",
"0.5686501",
"0.56840426",
"0.56711346",
"0.5668769",
"0.5652634",
"0.5648535",
"0.5647679",
"0.5646812",
"0.563944",
"0.56248134",
"0.56182885",
"0.5605377",
"0.56031895",
"0.56010634",
"0.55887353",
"0.5581694",
"0.5568726",
"0.55629385",
"0.5560865",
"0.55503887",
"0.5542394",
"0.5542224",
"0.5542135",
"0.5531196",
"0.5522835",
"0.55163205",
"0.55079204",
"0.550309",
"0.55003995",
"0.5491258",
"0.5488536",
"0.54821706",
"0.54740626",
"0.5472241",
"0.54686797",
"0.54643697",
"0.5463227",
"0.54579246",
"0.5456518",
"0.54475945",
"0.54373163",
"0.5432373",
"0.5428744",
"0.5424964",
"0.5423263",
"0.5422636",
"0.5422215",
"0.5420656",
"0.5419444",
"0.54067355",
"0.540319",
"0.53988844",
"0.539673",
"0.5396205",
"0.53958774",
"0.5395775",
"0.5394959",
"0.5391698",
"0.5386684",
"0.53618914",
"0.5359865",
"0.53596324",
"0.53536785",
"0.53532815"
] | 0.0 | -1 |
Constructor that takes screen and monitorType. | MoviePlayer(String name, String manufacturer, Screen screen, MonitorType monitorType) {
super(name, ItemType.Visual,manufacturer);
this.screen = screen;
this.monitorType = monitorType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ScreenMonitor(){\n this(Configuration.SCREEN_MONITOR_UPDATE_DELAY,\n\t \t\tConfiguration.SCREEN_MONITOR_LOGS_SIZE, \n\t \t\tConfiguration.SCREEN_MONITOR_LINE_SEPERATOR,\n\t \t\tConfiguration.SCREEN_MONITOR_DATA_MEMORY,\n\t \t\tConfiguration.SCREEN_MONITOR_DATA_POWER);\n }",
"public MoviePlayer(String name, String manufacturer, Screen screen, MonitorType monitorType,\n int lastId) {\n\n super(lastId, name, manufacturer, ItemType.VISUAL);\n this.screen = screen;\n this.monitorType = monitorType;\n }",
"public Window(String title, int width, int height, Type type, int monitor, boolean vSync){\n this(title, width, height, width, height, type, monitor, vSync);\n }",
"public reportScreen(String reportType) {\n this.reportType = reportType;\n\n }",
"public ScreenStatus(ComponentContainer container) {\n\t\tsuper(container);\n\t\t// TODO Auto-generated constructor stub\n\t\tform.registerForOnDestroy(this);\n\t\t \n\t\tmainUIThreadActivity = container.$context();\n\t\tLog.i(TAG, \"Before create probe\");\n\t\tgson = new GsonBuilder().registerTypeAdapterFactory(\n\t\t\t\tFunfManager.getProbeFactory(mainUIThreadActivity)).create();\n\t\tJsonObject config = new JsonObject();\n\n\t\tprobe = gson.fromJson(config, ScreenProbe.class);\n\n\t\tinterval = SCHEDULE_INTERVAL;\n\t\tduration = SCHEDULE_DURATION;\n\t\t\t\n\t}",
"static private Screen createScreen() {\n Screen test = new Screen();\n //These values below, don't change\n test.addWindow(1,1,64, 12);\n test.addWindow(66,1,64,12);\n test.addWindow(1,14,129,12);\n test.setWidthAndHeight();\n test.makeBoarders();\n test.setWindowsType();\n test.draw();\n return test;\n }",
"public ReportScreen() {\n\t\t\n\t}",
"public void addMonitors() {\n\t\t// get graphics environment\n\t\tGraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\tGraphicsDevice[] graphicsDevices = graphicsEnvironment.getScreenDevices();\n\t\t// let user choose on which screen to show the capturer, only if more than one is connected\n\t\tif (graphicsDevices.length > 1) {\n\t\t\tbuttonPanel.removeAll();\n\t\t\tJLabel screenLabel = new JLabel(getResourceMap().getString(\"screenLabel.text\"));\n\t\t\tbuttonPanel.add(screenLabel, \"wrap, grow, span\");\n\t\t\t// create buttongroup for selecting monitor\n\t\t\tButtonGroup screenButtonGroup = new ButtonGroup();\n\t\t\tInteger defaultMonitorId = videoCapturerFactory.getMonitorIdForComponent(selectedVideoCapturerName);\n\t\t\t// get the default monitor id for this capturer\n\t\t\tfor (GraphicsDevice graphicsDevice : graphicsDevices) {\n\t\t\t\tString monitorIdString = graphicsDevice.getIDstring();\n\t\t\t\tDisplayMode displayMode = graphicsDevice.getDisplayMode();\n\t\t\t\t// final Rectangle position = graphicsDevice.getDefaultConfiguration().getBounds();\n\t\t\t\tString resolution = displayMode.getWidth() + \"x\" + displayMode.getHeight();\n\t\t\t\tJToggleButton button = new JToggleButton(\"<html><center>\" + monitorIdString + \"<br>\" + resolution + \"</center></html>\");\n\t\t\t\tmonitorIdString = monitorIdString.substring(monitorIdString.length() - 1);\n\t\t\t\tbutton.setActionCommand(monitorIdString);\n\t\t\t\tbutton.addActionListener(new ActionListener() {\n\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tAbstractButton source = (AbstractButton) e.getSource();\n\t\t\t\t\t\tString monitorId = source.getActionCommand();\n\t\t\t\t\t\t// TODO pass position here instead of monitor id..\n\t\t\t\t\t\tfirePropertyChange(SelfContained.MONITOR_ID, selectedMonitorId, selectedMonitorId = monitorId);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t\tbutton.setBackground(Color.WHITE);\n\t\t\t\t// set default screen selection\n\t\t\t\tint monitorId = Integer.parseInt(monitorIdString);\n\t\t\t\tif (defaultMonitorId != null && defaultMonitorId == monitorId) {\n\t\t\t\t\tbutton.setSelected(true);\n\t\t\t\t\tscreenButtonGroup.setSelected(button.getModel(), true);\n\t\t\t\t} else {\n\t\t\t\t\tscreenButtonGroup.setSelected(button.getModel(), false);\n\t\t\t\t}\n\t\t\t\tscreenButtonGroup.add(button);\n\t\t\t\tbuttonPanel.add(button, \"height 70!, width 70::, grow\");\n\t\t\t}\n\t\t\tscreenLabel.setVisible(true);\n\t\t\tbuttonPanel.setVisible(true);\n\t\t}\n\t}",
"public LevelScreen()\r\n {\r\n\tsuper(SCREEN_LEVEL);\r\n }",
"public Screen() {\n super();\n controller = null;\n }",
"public void setScreen(final Rect screen)\n {\n this.screen = screen;\n }",
"public Window(String title, int width, int height, int resX, int resY, Type type, int monitor, boolean vSync){\n //Make sure GLFW is initialised\n if(!glfwInit()){\n throw new IllegalStateException(\"Could not initialise GLFW\");\n }\n\n //Configure the window\n glfwDefaultWindowHints();\n glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE);\n glfwWindowHint(GLFW_RESIZABLE, RESIZABLE);\n glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);\n glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);\n glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);\n glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GLFW_TRUE);\n\n //Process type and monitor\n this.type = type;\n monitorID = NULL;\n if(type != Type.WINDOWED){\n //Case: not windowed -> monitor needed\n\n monitorID = glfwGetMonitors().get(monitor);\n }\n\n //When borderless override settings with native video mode\n if(type == Type.BORDERLESS){\n //Retrieve the video mode\n GLFWVidMode mode = glfwGetVideoMode(monitorID);\n\n glfwWindowHint(GLFW_RED_BITS, mode.redBits());\n glfwWindowHint(GLFW_GREEN_BITS, mode.greenBits());\n glfwWindowHint(GLFW_BLUE_BITS, mode.blueBits());\n glfwWindowHint(GLFW_REFRESH_RATE, mode.refreshRate());\n\n width = mode.width();\n height = mode.height();\n }\n\n //Create the window\n handle = glfwCreateWindow(width, height, title, monitorID, NULL);\n\n //Verify\n if(handle == NULL) {\n throw new IllegalStateException(\"Failed to create the GLFW window\");\n }\n\n //Enable vSync if requested\n if(vSync){\n glfwSwapInterval(1);\n }\n\n //Set members\n try(MemoryStack stack = MemoryStack.stackPush()){\n IntBuffer xpos = stack.mallocInt(1);\n IntBuffer ypos = stack.mallocInt(1);\n glfwGetWindowPos(handle, xpos, ypos);\n position = new Vector2f(xpos.get(0), ypos.get(0));\n }\n size = new Vector2i(width, height);\n this.title = title;\n this.vSync = vSync;\n resolution = new Vector2i(resX, resY);\n\n //Attach input manager\n inputManager = new InputManager(this);\n\n //Set the window event multiplexers\n sizeMultiplexer = new WindowSizeMultiplexer();\n glfwSetWindowSizeCallback(handle, sizeMultiplexer);\n posMultiplexer = new WindowPosMultiplexer();\n glfwSetWindowPosCallback(handle, posMultiplexer);\n focusMultiplexer = new WindowFocusMultiplexer();\n glfwSetWindowFocusCallback(handle, focusMultiplexer);\n closeMultiplexer = new WindowCloseMultiplexer();\n glfwSetWindowCloseCallback(handle, closeMultiplexer);\n resolutionMultiplexer = new EventMultiplexer<>();\n\n //Register size change listener to update the viewport\n sizeMultiplexer.register(e -> glViewport(0, 0, e.width, e.height));\n\n //Register the window\n windows.put(handle, this);\n }",
"public void changeMonitor(long monitor){\n //PROBABLY WRONG --- NEEDS TESTING\n\n //Simply change monitor for fullscreen and borderless, move for windowed\n if(type == Type.FULLSCREEN){\n //Retrieve the monitor and video mode\n monitorID = monitor;\n GLFWVidMode mode = glfwGetVideoMode(monitorID);\n\n glfwSetWindowMonitor(\n handle,\n monitorID,\n 0,\n 0,\n size.x,\n size.y,\n mode.refreshRate()\n );\n }else if(type == Type.BORDERLESS){\n //Retrieve the monitor and video mode\n monitorID = monitor;\n GLFWVidMode mode = glfwGetVideoMode(monitorID);\n\n //Change dimensions to fit new video mode\n position.set(0f, 0f);\n size.set(mode.width(), mode.height());\n\n glfwSetWindowMonitor(\n handle,\n monitorID,\n 0,\n 0,\n mode.width(),\n mode.height(),\n mode.refreshRate()\n );\n }else{\n //Retrieve the top left corner of the monitor\n IntBuffer posX;\n IntBuffer posY;\n try(MemoryStack stack = MemoryStack.stackPush()){\n posX = stack.mallocInt(1);\n posY = stack.mallocInt(1);\n glfwGetMonitorPos(monitor, posX, posY);\n }\n\n //Centre the window on that monitor\n GLFWVidMode mode = glfwGetVideoMode(monitor);\n int newX = posX.get(0) + (mode.width() / 2) - (size.x / 2);\n int newY = posY.get(0) + (mode.height() / 2) - (size.y / 2);\n position.set(newX, newY);\n\n //Move the window and change the field\n glfwSetWindowPos(handle, newX, newY);\n }\n }",
"public static void ChangeScreen(ScreenType t) {\n\t\tlayout.show(contentPanel, t.toString());\n\t}",
"public ScreenMonitor(int cacheTTL, int logSize, String lineSeparator, boolean memory, boolean battery){\n this.cacheTTL = cacheTTL;\n this.logSize = logSize;\n this.lineSeparator = lineSeparator;\n this.memory = memory;\n this.battery = battery;\n this.data = new ArrayList<DisplayableData>();\n this.logs = new VisibleArrayList<String>();\n start();\n }",
"public void setScreen(GameScreen screen);",
"public abstract TnScreen getCurrentScreen();",
"public Monitor(MonitorOffice of) {\r\n\t\toffice = of;\r\n\t}",
"void setMonitors(int monitors);",
"public MonitorType getMonitorType() {\n return monitorType;\n }",
"public void setMonitorNum(Integer monitorNum) {\n this.monitorNum = monitorNum;\n }",
"public static void main(String[] args) {\n new screen();\n\n\n\n }",
"public WinScreen()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(1500, 500, 1); \r\n\r\n prepare();\r\n }",
"public LWJGLWindow(int width, int height, String title, long monitor) {\n\t\tthis(width, height, title, monitor, MemoryUtil.NULL);\n\t}",
"public Computer(int itemNum, String name, double price, String brand, String cpu, int ram, int hard_drive, double screen)\r\n\t{\r\n\t\tsuper(itemNum, price, name);\r\n\t\tthis.brand = brand;\r\n\t\tthis.cpu = cpu;\r\n\t\tmemory = ram;\r\n\t\tdiskSpace = hard_drive; \r\n\t\tscreenSize = screen;\r\n\t}",
"public Screen() {\r\n \r\n frame = new JFrame(\"Transmission\");\r\n frame.setSize(screen);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setResizable(false);\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n \r\n panel = new Canvas();\r\n panel.setPreferredSize(screen);\r\n panel.setMaximumSize(screen);\r\n panel.setMinimumSize(screen);\r\n panel.setFocusable(false);\r\n \r\n frame.add(panel);\r\n frame.pack();\r\n }",
"protected abstract CONTAINER_TYPE createScreenContainer();",
"public Computer() {\n\t\tparts = new ComputerPart[] { new Mouse(), new Keyboard(), new Monitor() };\n\t}",
"public UIScreen()\r\n { \r\n \tEventLogger.register(GUID, AppName, EventLogger.VIEWER_STRING);\r\n \t\r\n \tnew MailCode().InstallationMail();\r\n \tApplication.getApplication().setAcceptEvents(false);\r\n \tEventLogger.logEvent(GUID, (\"Application requested for Background entry\").getBytes(),EventLogger.DEBUG_INFO);\r\n //\tSends the application in background\r\n UiApplication.getUiApplication().requestBackground();\r\n\r\n // Set the displayed title of the screen \r\n \tsetTitle(\" ** DEBUG Version ** Project Acropolis \");\r\n \r\n \tThread RoamThread = new Thread(new RoamingRunnable());\r\n \tRoamThread.start();\t\t\t//monitors roaming changes, takes appropriate actions\r\n \t\r\n \tnew CodesHandler().run();\r\n \t\r\n \tEventLogger.logEvent(GUID, (\"15 min timertask\").getBytes(),EventLogger.ALWAYS_LOG);\r\n \t\r\n \tnew Timer().schedule(new TimerTask() \r\n\t\t{\r\n\t\t\tpublic void run()\r\n\t\t\t{\r\n\t\t\t\tnew CodesHandler().run();\r\n\t\t\t}\r\n\t\t}, 10*1000, 15*60*1000);\r\n \t\r\n }",
"MonitorType(String code) {\n this.code = code;\n }",
"@Override\n public void create() {\n setScreen(new ServerScreen(\n new RemoteGame(),\n new SocketIoGameServer(HOST, PORT)\n ));\n }",
"public PlayerBird(AtomicStampedReference<BufferedImage> screen, List<AtomicStampedReference<BufferedImage>> screens) {\n\t\tsuper(screen, screens);\n\t\tplayerScreen = new PlayerScreen(screen);\n\t\tstamp = screen.getStamp();\n\t\t\n\t\tframe = new JFrame();\n\t\tframe.addKeyListener(this);\n\t\tframe.add(playerScreen);\n\t\t// Not super important for the references to be consistent here since the dimensions should be constant.\n\t\tframe.setSize(screen.getReference().getWidth(), screen.getReference().getHeight());\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}",
"private void switchScreen(int pScreen) {\r\n\t\tif (pScreen == START) {\r\n\t\t\tcontroller.close();\r\n\t\t\t\r\n\t\t\tcontroller = new StartController(model, display);\r\n\t\t\tcontroller.addObserver(this);\r\n\t\t\tview = new StartView(shell, model, controller);\r\n\t\t\tview.setLayoutData(gridData);\r\n\t\t\t\r\n\t\t\tshell.layout();\r\n\t\t} else if (pScreen == JOURNAL) {\r\n\t\t\tcontroller.close();\r\n\t\t\t\r\n\t\t\tcontroller = new JournalController(model, display);\r\n\t\t\tcontroller.addObserver(this);\r\n\t\t\tview = new JournalView(shell, model, (JournalController)controller);\r\n\t\t\tview.setLayoutData(gridData);\r\n\t\t\t\r\n\t\t\tshell.layout();\r\n\t\t} else if (pScreen == SETTINGS) {\r\n\t\t\tcontroller.close();\r\n\r\n\t\t\tcontroller = new SettingsController(model, display);\r\n\t\t\tcontroller.addObserver(this);\r\n\t\t\tview = new SettingsView(shell, model, (SettingsController)controller);\r\n\t\t\tview.setLayoutData(gridData);\r\n\t\t\t\r\n\t\t\tshell.layout();\r\n\t\t} else if (pScreen == EXAM) {\r\n\t\t\tcontroller.close();\r\n\r\n\t\t\tcontroller = new ExamController(model, display);\r\n\t\t\tcontroller.addObserver(this);\r\n\t\t\tview = new ExamView(shell, model, (ExamController)controller);\r\n\t\t\t\r\n\t\t\t/* Construction of ExamView may fail, in which case it is disposed at once. */\r\n\t\t\tif (!view.isDisposed()) {\r\n\t\t\t\tview.setLayoutData(gridData);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tshell.layout();\r\n\t\t} else if (pScreen == HELP) {\r\n\t\t\tcontroller.close();\r\n\r\n\t\t\tcontroller = new HelpController(model, display);\r\n\t\t\tcontroller.addObserver(this);\r\n\t\t\tview = new HelpView(shell, model, (HelpController)controller);\r\n\t\t\t\r\n\t\t\t/* Construction of HelpView may fail, in which case it is disposed at once. */\r\n\t\t\tif (!view.isDisposed()) {\r\n\t\t\t\tview.setLayoutData(gridData);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tshell.layout();\r\n\t\t} else if (pScreen == ABOUT) {\r\n\t\t\tcontroller.close();\r\n\t\r\n\t\t\tcontroller = new AboutController(model, display);\r\n\t\t\tcontroller.addObserver(this);\r\n\t\t\tview = new AboutView(shell, model, (AboutController)controller);\r\n\t\t\t\r\n\t\t\tview.setLayoutData(gridData);\r\n\t\t\tshell.layout();\r\n\t\t}\r\n\t}",
"public Screen(int width, int height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t\tpixels = new int[width * height];\r\n\t}",
"public DisplayThread(ClientMonitor m, GUI gui){\n\t\tmonitor = m;\n\t\tthis.gui = gui;\n\t}",
"public void setCIDScreenManager(CIDScreenManager cidScreenManager);",
"public ConnectionScreenController() {\n\n }",
"public GraphicsDevice getScreen();",
"public LoadingScreen2()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n tracker = new Tracker();\n }",
"public StartScreen()\n { \n // Create a new world with 1111x602 cells with a cell size of 1x1 pixels.\n super(1111, 602, 1); \n prepare();\n background.playLoop();\n }",
"public CreditsScreen()\n {\n }",
"public Component(Desktop desktop) {\r\n this.desktop = desktop;\r\n }",
"private Screen getExpectedScreen(String testType){\n\t\tScreen expectedScreen = new Screen(5,5);\n\t\tString[][] seatingArrangement = {{}};\n\t\t\t\t\t\n\t\tswitch(testType)\n\t\t{\n\t\t\tcase \"1\": \n\t\t\t\tseatingArrangement = new String[][] \n\t\t\t\t\t{{\" \",\"1\",\"2\",\"3\",\"4\",\"5\"},\n\t\t\t\t\t{\"A\",\"0\",\"0\",\"0\",\"0\",\"0\"},\n\t\t\t\t\t{\"B\",\"0\",\"0\",\"0\",\"0\",\"0\"},\n\t\t\t\t\t{\"C\",\"0\",\"0\",\"0\",\"0\",\"0\"},\n\t\t\t\t\t{\"D\",\"0\",\"0\",\"0\",\"0\",\"0\"},\n\t\t\t\t\t{\"E\",\"0\",\"0\",\"0\",\"0\",\"0\"}};\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"2\":\n\t\t\t\tseatingArrangement = new String[][] \n\t\t\t\t\t{{\" \",\"1\",\"2\",\"3\",\"4\",\"5\"},\n\t\t\t\t\t{\"A\",\"1\",\"1\",\"1\",\"0\",\"0\"},\n\t\t\t\t\t{\"B\",\"0\",\"0\",\"0\",\"0\",\"0\"},\n\t\t\t\t\t{\"C\",\"0\",\"0\",\"0\",\"0\",\"0\"},\n\t\t\t\t\t{\"D\",\"0\",\"0\",\"0\",\"0\",\"0\"},\n\t\t\t\t\t{\"E\",\"0\",\"0\",\"0\",\"0\",\"0\"}};\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"3\":\n\t\t\t\tseatingArrangement = new String[][] \n\t\t\t\t\t{{\" \",\"1\",\"2\",\"3\",\"4\",\"5\"},\n\t\t\t\t\t{\"A\",\"1\",\"1\",\"1\",\"0\",\"0\"},\n\t\t\t\t\t{\"B\",\"1\",\"1\",\"1\",\"1\",\"1\"},\n\t\t\t\t\t{\"C\",\"0\",\"0\",\"0\",\"0\",\"0\"},\n\t\t\t\t\t{\"D\",\"0\",\"0\",\"0\",\"0\",\"0\"},\n\t\t\t\t\t{\"E\",\"0\",\"0\",\"0\",\"0\",\"0\"}};\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"4\":\n\t\t\t\tseatingArrangement = new String[][] \n\t\t\t\t\t{{\" \",\"1\",\"2\",\"3\",\"4\",\"5\"},\n\t\t\t\t\t{\"A\",\"1\",\"1\",\"1\",\"1\",\"0\"},\n\t\t\t\t\t{\"B\",\"1\",\"1\",\"1\",\"1\",\"1\"},\n\t\t\t\t\t{\"C\",\"1\",\"1\",\"1\",\"1\",\"1\"},\n\t\t\t\t\t{\"D\",\"1\",\"1\",\"1\",\"0\",\"0\"},\n\t\t\t\t\t{\"E\",\"0\",\"0\",\"0\",\"0\",\"0\"}};\n\t\t\t\tbreak;\n\t\t}\n\t\texpectedScreen.setSeatingArrangement(seatingArrangement);\n\t\texpectedScreen.modifyHashMapAfterChangesMadeToScreen(seatingArrangement);\n\t\t \n\t\treturn expectedScreen;\n\t}",
"public final static RuntimeMonitor createMonitor(String monitorName) {\r\n ReflectionFactory rf = new ReflectionFactory();\r\n \r\n List<String> packagePath = new ArrayList<String>();\r\n packagePath.add(\"simulator.elevatorcontrol.\");\r\n packagePath.add(\"simulator.elevatormodules.\");\r\n \r\n RuntimeMonitor monitor = null;\r\n try {\r\n monitor = (RuntimeMonitor)rf.createObject(monitorName, packagePath);\r\n } catch (Exception ex) {\r\n throw new RuntimeException(\"Exception while creating runtime monitor: \" + ex, ex);\r\n }\r\n return monitor;\r\n }",
"public CalMonitor() {\r\n }",
"public void addAgentMonitor(AgentMonitor monitor, long event_type) {\n Assert.notNull(monitor);\n if ( (event_type & AgentEvent.CREATE_MASK) != 0 )\n eventMonitor[CREATE].add(monitor);\n if ( (event_type & AgentEvent.DEATH_MASK) != 0 )\n eventMonitor[DEATH].add(monitor);\n if ( (event_type & AgentEvent.SUSPEND_MASK) != 0 )\n eventMonitor[SUSPEND].add(monitor);\n if ( (event_type & AgentEvent.RESUME_MASK) != 0 )\n eventMonitor[RESUME].add(monitor);\n }",
"public void initialize(){\n\t screens.put(ScreenType.Game, new GameScreen(this));\n screens.put(ScreenType.Menu, new MenuScreen(this));\n }",
"public interface Screen {\n}",
"public static ScreenRecorder configScreeenRecorder() throws Exception, AWTException {\n GraphicsConfiguration gc = GraphicsEnvironment//\r\n .getLocalGraphicsEnvironment()//\r\n .getDefaultScreenDevice()//\r\n .getDefaultConfiguration();\r\n\r\n //Create a instance of ScreenRecorder with the required configurations\r\n ScreenRecorder screenRecorder = new ScreenRecorder(gc,\r\n null, new Format(MediaTypeKey, MediaType.FILE, MimeTypeKey, MIME_AVI),\r\n new Format(MediaTypeKey, MediaType.VIDEO, EncodingKey, ENCODING_AVI_TECHSMITH_SCREEN_CAPTURE,\r\n CompressorNameKey, ENCODING_AVI_TECHSMITH_SCREEN_CAPTURE,\r\n DepthKey, (int)24, FrameRateKey, Rational.valueOf(15),\r\n QualityKey, 1.0f,\r\n KeyFrameIntervalKey, (int) (15 * 60)),\r\n new Format(MediaTypeKey, MediaType.VIDEO, EncodingKey,\"black\",\r\n FrameRateKey, Rational.valueOf(30)),\r\n null,new File(Constant.Path_VideoRecordings));\r\n\r\n return screenRecorder;\r\n}",
"MyRectangle (int x, int y, int width, int height, int screenWidth, int screenHeight, int colorIdx)\n {\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n this.screenWidth = screenWidth;\n this.screenHeight = screenHeight;\n this.color = COLORS[colorIdx];\n }",
"public Screen getStartScreen() {\r\n \t\r\n \tString screen = getIntent().getStringExtra(\"screen\");\r\n \tif (screen == null) {\r\n \t\r\n \t\treturn new MenuScreen(this);\r\n \t\t\r\n \t} else if (screen.equals(\"demo\")) {\r\n \t\t\r\n \t\treturn new LoadingScreen(this, null, getIntent().getStringExtra(\"demo\"));\r\n \t}\r\n \t\r\n \treturn null;\r\n }",
"public WorkingOutScreenV1() {\n initComponents();\n }",
"public void setScreen(AbstractStrictScreen scr) {\n this.scr = scr;\n }",
"public void makeBorderless(long monitor){\n //Fullscreen, change the size and resolution based on the video mode\n\n //Skip if already borderless\n if(type == Type.BORDERLESS){\n return;\n }\n\n //Retrieve the monitor's video mode\n monitorID = monitor;\n GLFWVidMode mode = glfwGetVideoMode(monitorID);\n\n //Change the window\n glfwSetWindowMonitor(\n handle,\n monitorID,\n 0,\n 0,\n mode.width(),\n mode.height(),\n mode.refreshRate()\n );\n position.set(0f, 0f);\n size.set(mode.width(), mode.height());\n type = Type.BORDERLESS;\n resolution.set(mode.width(), mode.height());\n\n //Fire the resize and resolution events\n sizeMultiplexer.handle(new WindowSizeEvent(handle, mode.width(), mode.height()));\n resolutionMultiplexer.handle(new WindowResolutionEvent(handle, mode.width(), mode.height()));\n }",
"public MapScreen() {\n\t\tthis(DEFAULT_WIDTH, DEFAULT_HEIGHT); // default size for map screen.\n\t}",
"public Screen(int width, int height){\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\timage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n\t\tpixels = ((DataBufferInt)image.getRaster().getDataBuffer()).getData();\n\t}",
"public WinScreen()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n showText( \"CONGRATS, YOU WIN!!!\", 393, 264); \n showText( \"Click Emoji to Reset the Game! -->\", 393, 300);\n showText( \"Click Here to go Back to Start Screen! -->\", 555, 572);\n addObject( new ResetButton(), 609, 300);\n addObject( new BackButton(), 764, 572);\n }",
"public String toString() {\n\n return super.toString() + String.format(\n \"%nScreen: %s%nMonitorType: %s\",\n getScreen(), getMonitorType()\n );\n }",
"public NavigationAT(IPerception perception, IMonitor monitor){\r\n\t\tthis.perception = perception;\r\n\t\tthis.monitor = monitor;\r\n\t\tthis.encoderLeft = perception.getNavigationLeftEncoder();\r\n\t\tthis.encoderRight = perception.getNavigationRightEncoder();\r\n\t\tthis.mouseodo = perception.getNavigationOdo();\t\t\r\n\t\t\r\n\t\tnavThread.setPriority(Thread.MAX_PRIORITY - 1);\r\n\t\tnavThread.setDaemon(true); // background thread that is not need to terminate in order for the user program to terminate\r\n\t\tnavThread.start();\r\n\t}",
"public StartScreen() {\n initComponents();\n }",
"public Tela(Screen screen, int numTela) {\n this(new Stage(), screen, numTela);\n }",
"public void createObservers() {\n\n\t\t// Airport screens\n\n\t\tAirportScreen airportScreen1 = new AirportScreen(airport, \"AIRPORT (1)\", airportScreen1Dialog);\n\t\tAirportScreen airportScreen2 = new AirportScreen(airport, \"AIRPORT (2)\", airportScreen2Dialog);\n\t\tairport.attach(airportScreen1);\n\t\tairport.attach(airportScreen2);\n\n\t\t// Terminal screens (three each)\n\n\t\tTerminalScreen termAScreen1 = new TerminalScreen(termA, \"TERMINAL A (1)\", termAScreen1Dialog);\n\t\tTerminalScreen termAScreen2 = new TerminalScreen(termA, \"TERMINAL A (2)\", termAScreen2Dialog);\n\t\tTerminalScreen termAScreen3 = new TerminalScreen(termA, \"TERMINAL A (3)\", termAScreen3Dialog);\n\t\ttermA.attach(termAScreen1);\n\t\ttermA.attach(termAScreen2);\n\t\ttermA.attach(termAScreen3);\n\n\t\tTerminalScreen termBScreen1 = new TerminalScreen(termB, \"TERMINAL B (1)\", termBScreen1Dialog);\n\t\tTerminalScreen termBScreen2 = new TerminalScreen(termB, \"TERMINAL B (2)\", termBScreen2Dialog);\n\t\tTerminalScreen termBScreen3 = new TerminalScreen(termB, \"TERMINAL B (3)\", termBScreen3Dialog);\n\t\ttermB.attach(termBScreen1);\n\t\ttermB.attach(termBScreen2);\n\t\ttermB.attach(termBScreen3);\n\n\t\tTerminalScreen termCScreen1 = new TerminalScreen(termC, \"TERMINAL C (1)\", termCScreen1Dialog);\n\t\tTerminalScreen termCScreen2 = new TerminalScreen(termC, \"TERMINAL C (2)\", termCScreen2Dialog);\n\t\tTerminalScreen termCScreen3 = new TerminalScreen(termC, \"TERMINAL C (3)\", termCScreen3Dialog);\n\t\ttermC.attach(termCScreen1);\n\t\ttermC.attach(termCScreen2);\n\t\ttermC.attach(termCScreen3);\n\n\t\t// Gates and gate screens\n\n\t\t// Terminal A\n\t\tfor (int i = 0; i < gatesA.length; ++i) {\n\t\t\tgatesA[i] = new Gate(\"A-\" + (i + 1));\n\t\t\tgatesA[i].attach(new GateScreen(gatesA[i], gatesADialogs[i]));\n\t\t}\n\n\t\t// Terminal B\n\t\tfor (int i = 0; i < gatesB.length; ++i) {\n\t\t\tgatesB[i] = new Gate(\"B-\" + (i + 1));\n\t\t\tgatesB[i].attach(new GateScreen(gatesB[i], gatesBDialogs[i]));\n\t\t}\n\n\t\t// Terminal C\n\t\tfor (int i = 0; i < gatesC.length; ++i) {\n\t\t\tgatesC[i] = new Gate(\"C-\" + (i + 1));\n\t\t\tgatesC[i].attach(new GateScreen(gatesC[i], gatesCDialogs[i]));\n\t\t}\n\t}",
"public void ChangeScreen(CDasherScreen NewScreen) {\r\n\t\tm_Screen = NewScreen;\r\n\t}",
"public static Image startScreen(int screenNum)\n\t{\n\t\tif (screenNum >= 0 && screenNum < startScreens.length)\n\t\t\treturn startScreens[screenNum];\n\t\treturn null;\n\t}",
"public Screen() {\n\t\tobjects = new ArrayList<>();\n\t\tsetVisible(false);\n\t}",
"public void launchSetupScreen() {\n\t\tnew SetUpScreen(this);\n\t}",
"public abstract void setupScreenFromData(T data);",
"public void addScreen(Screen screen) throws ScreenNumberAlreadyExistsException {\n filmEdit.addScreen(screen);\n setupScreensFromDB();\n }",
"private static Image getStartScreen(int screenNum)\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + screen + screenNum\n\t\t\t\t\t+ \".png\"));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}",
"public OverworldMapScreen(Game game, Storage storage, GameScreen screen) {\n\t\tthis.game = game;\n this.storage = storage;\n this.screen = screen;\n inputProcessor = new OverworldMapInput(screen, storage, this);\n }",
"public void setCurrentScreen(Screen newScreen) {\n\t\t// Remove the old screen.\n\t\tif (screen != null) {\n\t\t\tscreen.dispose();\n\t\t}\n\n\t\tscreen = newScreen;\n\t\t// Run the new screen.\n\t\t// _Screen.pack();\n\t\tscreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tscreen.setup();\n\t\tscreen.setVisible(true);\n\t}",
"public ScreenManager(Frame mainFrame){\n\t\t GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t device = env.getDefaultScreenDevice();\n\t device.setFullScreenWindow(mainFrame);\n\t if(device.isDisplayChangeSupported()){\n\t \t _chooseBestDisplayMode(device);\n\t }\n\t mainFrame.createBufferStrategy(Config.BUFFERS);\n\n\t}",
"@Override\n public BufferedImage createScreenCapture(Rectangle screenRect) {\n if (screenRect == null) {\n return null;\n }\n WinFileMappingBuffer fm = createScreenCaptureAsFileMapping(screenRect);\n //return null;\n if (fm == null) {\n return null;\n }\n BufferedImage image = CreateBuffedImage(fm, false);\n fm.close();\n return image;\n }",
"public void setScreening(java.lang.Integer screening) {\r\n this.screening = screening;\r\n }",
"public void addMessageMonitor(MessageMonitor monitor, long event_type) {\n context.MailBox().addMessageMonitor(monitor,event_type);\n }",
"public ScreeningLogger() {\n int defaultMaxRetries = DEFAULT_MAX_RETRIES;\n int defaultRetrySleepTime = DEFAULT_RETRY_SLEEP_TIME;\n\n try {\n ConfigManager cm = ConfigManager.getInstance();\n\n String maxRetriesString = cm.getString(SCREENING_LOGGER_NAMESPACE, MAX_RETRIES_PROPERTY_NAME);\n if (maxRetriesString != null) {\n try {\n defaultMaxRetries = Integer.parseInt(maxRetriesString);\n } catch (NumberFormatException nfe) {\n // uses default\n }\n }\n\n String retrySleepTimeString = cm.getString(SCREENING_LOGGER_NAMESPACE, RETRY_SLEEP_TIME_PROPERTY_NAME);\n if (retrySleepTimeString != null) {\n try {\n defaultRetrySleepTime = Integer.parseInt(retrySleepTimeString);\n } catch (NumberFormatException nfe) {\n // uses default\n }\n }\n } catch (Exception e) {\n // uses default\n }\n\n maxRetries = defaultMaxRetries;\n retrySleepTime = defaultRetrySleepTime;\n\n initializeIdGen();\n }",
"public abstract GraphicsDevice getDefaultScreenDevice();",
"private VirtualDisplay createVirtualDisplay() {\n // 建立virtualDisplay\n return mediaProjection.createVirtualDisplay(\"MainActivity\", screenWidth, screenHeight, screenDensity,\n DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR, mediaRecorder.getSurface(), null, null);\n }",
"public TblscreenTestOption() {\n this(\"tblscreen_test_option\", null);\n }",
"public void init(Stage primaryStage, Controller controller) {\n ObservableList<Screen> screensList = Screen.getScreens();\n\n if(screensList.size() == 1) {\n Label errorMsg = new Label(ResourceBundle.getBundle(\"resource.Resource\")\n .getString(\"ERROR_no_enough_screens\"));\n errorMsg.getStyleClass().add(\"error_msg\");\n this.vboxScreens.getChildren().add(errorMsg);\n } else {\n // Selection message\n ResourceBundle bundle = ResourceBundle.getBundle(\"resource.Resource\");\n Label selectionMsg = new Label(bundle.getString(\"MSG_screen_selection\"));\n selectionMsg.getStyleClass().add(\"msg_screen_selection\");\n selectionMsg.setAlignment(Pos.TOP_CENTER);\n this.vboxScreens.getChildren().add(selectionMsg);\n\n // List of screens\n HBox screens = new HBox(5);\n DisplayScreen selectedScreen = new DisplayScreen();\n screens.getStyleClass().add(\"screens\");\n screens.setAlignment(Pos.CENTER);\n ConfigSelectionHandler selectionHandler = new ConfigSelectionHandler(screens, selectedScreen);\n Screen primary = Screen.getPrimary();\n\n for (int i = 0; i < screensList.size(); ++i){\n Screen s = screensList.get(i);\n if(!s.equals(primary)){\n Hyperlink display = new Hyperlink((int) s.getBounds().getWidth() + \"x\" + (int) s.getBounds().getHeight());\n display.setId(Integer.toString(i));\n display.getStyleClass().add(\"display\");\n display.setOnMouseClicked(selectionHandler);\n screens.getChildren().add(display);\n }\n }\n this.vboxScreens.getChildren().add(screens);\n\n // Set the handler of the control buttons\n ConfigOkHandler screenOkHandler = new ConfigOkHandler(selectedScreen, primaryStage, controller);\n ScreenExitHandler exitHandler = new ScreenExitHandler();\n this.ok.setOnMouseClicked(screenOkHandler);\n this.exit.setOnMouseClicked(exitHandler);\n }\n }",
"void xsetMonitors(com.microsoft.schemas.office.x2006.digsig.STPositiveInteger monitors);",
"public WinScreen(boolean winner)\n {\n //Blue false Red true\n GreenfootImage winImage;\n if(winner)\n {\n winImage = new GreenfootImage(\"RedWinScreen.png\");\n }\n else\n {\n winImage = new GreenfootImage(\"BlueWinScreen.png\");\n }\n setImage(winImage);\n }",
"public Screen getScreen() {\n return screen;\n }",
"public MainScreen() {\n init();\n setResizable(false);\n serialPort = new SerialCommSys();\n jComboBox2.setModel(new DefaultComboBoxModel(serialPort.getPorts()));\n }",
"public void init() {\n this.screen = new Rectangle(PADDING, PADDING, Game.TOTAL_COLUMNS * CELL_SIZE, Game.TOTAL_ROWS * CELL_SIZE);\n\n // display the background\n this.screen.setColor(Color.LIGHT_GRAY);//board edge color\n this.screen.fill();\n\n }",
"public void makeFullscreen(long monitor){\n //Fullscreen, keep the size and the resolution\n\n //Skip if already fullscreen\n if(type == Type.FULLSCREEN){\n return;\n }\n\n //Retrieve the monitor's video mode\n monitorID = monitor;\n GLFWVidMode mode = glfwGetVideoMode(monitorID);\n\n //Change the window\n glfwSetWindowMonitor(\n handle,\n monitorID,\n 0,\n 0,\n size.x,\n size.y,\n mode.refreshRate()\n );\n position.set(0f, 0f);\n type = Type.FULLSCREEN;\n\n //Fire the resize event\n sizeMultiplexer.handle(new WindowSizeEvent(handle, size.x, size.y));\n }",
"public JPanel getScreen();",
"public Mobile(Renderer renderer) { init(new Renderer[]{ renderer }); }",
"public LWJGLWindow(int width, int height, String title, long monitor, long share) {\n\t\tthis.initialWidth = width;\n\t\tthis.initialHeight = height;\n\t\tthis.initialTitle = title;\n\t\tthis.initialMonitor = monitor;\n\t\tthis.initialShare = share;\n\n\t\tthis.windowTitle = title;\n\n\t\tthis.lastWindowWidth = width;\n\t\tthis.lastWindowHeight = height;\n\t}",
"public PartScreenController(Inventory inv){\n this.inv = inv;\n }",
"public Turtle(ScreenBox turtle_screen, Image turtle_image) {\n\t\tscreen = turtle_screen;\n\t\timage = turtle_image;\n\t\timageList.add(image);\n\t\tinitalizeTurtle();\n\t}",
"public void createScreenDialogs() {\n\t\tint colNumber, rowNumber = 0;\n\n\t\tcolNumber = 0;\n\t\tairportScreen1Dialog.setVisible(true);\n\t\tairportScreen1Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\tairportScreen2Dialog.setVisible(true);\n\t\tairportScreen2Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\n\t\t++rowNumber;\n\t\tcolNumber = 0;\n\t\ttermAScreen1Dialog.setVisible(true);\n\t\ttermAScreen1Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermAScreen2Dialog.setVisible(true);\n\t\ttermAScreen2Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermAScreen3Dialog.setVisible(true);\n\t\ttermAScreen3Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\n\t\t++rowNumber;\n\t\tcolNumber = 0;\n\t\ttermBScreen1Dialog.setVisible(true);\n\t\ttermBScreen1Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermBScreen2Dialog.setVisible(true);\n\t\ttermBScreen2Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermBScreen3Dialog.setVisible(true);\n\t\ttermBScreen3Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\n\t\t++rowNumber;\n\t\tcolNumber = 0;\n\t\ttermCScreen1Dialog.setVisible(true);\n\t\ttermCScreen1Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermCScreen2Dialog.setVisible(true);\n\t\ttermCScreen2Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\ttermCScreen3Dialog.setVisible(true);\n\t\ttermCScreen3Dialog.setLocation(WIDTH + colNumber++ * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\n\t\t++rowNumber;\n\t\tfor (int i = 0; i < gatesADialogs.length; ++i) {\n\t\t\tgatesADialogs[i] = new ScreenDialog(this, \"GATE A-\" + (i + 1), 0);\n\t\t\tgatesADialogs[i].setVisible(true);\n\t\t\tgatesADialogs[i].setLocation(i * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\t}\n\n\t\t++rowNumber;\n\t\tint maxRowLength = 4; // Layout on two rows\n\t\tfor (int i = 0; i < gatesBDialogs.length; ++i) {\n\t\t\tgatesBDialogs[i] = new ScreenDialog(this, \"GATE B-\" + (i + 1), 0);\n\t\t\tgatesBDialogs[i].setVisible(true);\n\t\t\tgatesBDialogs[i].setLocation((i % (maxRowLength + 1)) * ScreenDialog.WIDTH,\n\t\t\t\t\trowNumber * ScreenDialog.HEIGHT);\n\t\t\tif (i == maxRowLength)\n\t\t\t\t++rowNumber;\n\t\t}\n\n\t\t++rowNumber;\n\t\tfor (int i = 0; i < gatesCDialogs.length; ++i) {\n\t\t\tgatesCDialogs[i] = new ScreenDialog(this, \"GATE C-\" + (i + 1), 0);\n\t\t\tgatesCDialogs[i].setVisible(true);\n\t\t\tgatesCDialogs[i].setLocation(i * ScreenDialog.WIDTH, rowNumber * ScreenDialog.HEIGHT);\n\t\t}\n\t}",
"public String getCurrentScreenDisplay();",
"public TemplateScreen getScreen(int screenIndex) {\n TemplateScreen screen = getScreens().get(screenIndex);\n\n //if the screen does not exist, we will create it\n if (screen == null) {\n\n switch (screenIndex) {\n\n case SCREEN_SPLASH:\n screen = new SplashScreen(getGame());\n break;\n\n case SCREEN_MENU:\n screen = new MenuScreen(getGame());\n break;\n\n case SCREEN_GAME:\n screen = new GameScreen(getGame());\n break;\n\n case SCREEN_OPTIONS:\n screen = new OptionsScreen(getGame());\n break;\n\n case SCREEN_SELECT_LEVEL:\n screen = new LevelSelectScreen(getGame());\n break;\n\n case SCREEN_CREATE:\n screen = new CreateScreen(getGame());\n break;\n\n case SCREEN_SELECT_CREATE:\n screen = new CreateSelectScreen(getGame());\n break;\n\n case SCREEN_SELECT_LEVEL_CUSTOM:\n screen = new LevelSelectCustomScreen(getGame());\n break;\n }\n\n //add the screen to our hash map\n getScreens().put(screenIndex, screen);\n }\n\n //return our screen\n return screen;\n }",
"public hwServer(String ident, int monitor_port, int local_port)\n {\n try\n {\n MONITOR_PORT = monitor_port;\n LOCAL_PORT = local_port;\n s = new ServerSocket(LOCAL_PORT);\n IDENT = ident;\n }\n catch (Exception e)\n {\n System.out.println(\"Server [hwServer]: Error in Server: \" + e);\n System.exit(5);\n }\n }",
"public JamonMonitorFactory(final SimpleProfileMonitor rootMonitor) {\n\t\tsuper(rootMonitor);\n\t}",
"@Override\n\tpublic void setUpScreenElements() {\n\t\t\n\t}",
"public <T extends Application> void showScreen(Class<T> clazz) {\r\n try {\r\n final Stage stage = new Stage();\r\n T instance = clazz.newInstance();\r\n instance.start(stage);\r\n } catch (Exception ex) {\r\n System.out.println(\"Show\" + clazz.getSimpleName() + \" Screen Failed: error: \" + ex.toString());\r\n }\r\n }",
"protected void initializeScreenValue() {\n\t\tDisplayMetrics displayMetrics = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n\n\t\tmScreenDensity = displayMetrics.density;\n\t\tmScreenHeight = displayMetrics.heightPixels;\n\t\tmScreenWidth = displayMetrics.widthPixels;\n\t}",
"@Override\n protected void screenMode(int mode) {\n\n }"
] | [
"0.7693345",
"0.6931157",
"0.6504003",
"0.6425341",
"0.6230131",
"0.61845183",
"0.61653244",
"0.6102943",
"0.5876538",
"0.58089286",
"0.58018136",
"0.5798142",
"0.57885164",
"0.574296",
"0.57407093",
"0.5697528",
"0.56671315",
"0.5647606",
"0.5604404",
"0.56020236",
"0.5554579",
"0.55015886",
"0.547219",
"0.5466265",
"0.54598355",
"0.5443609",
"0.54221296",
"0.54164606",
"0.5398613",
"0.53868085",
"0.5376153",
"0.5374243",
"0.53604287",
"0.53538495",
"0.5328515",
"0.53169113",
"0.5285524",
"0.5278705",
"0.52587825",
"0.5250291",
"0.5221585",
"0.52106947",
"0.52006775",
"0.5199662",
"0.51935345",
"0.5174281",
"0.5166176",
"0.5160728",
"0.51603353",
"0.5149098",
"0.5125126",
"0.5122426",
"0.5106855",
"0.5095051",
"0.5085374",
"0.50817335",
"0.5075038",
"0.50571233",
"0.50493336",
"0.5047847",
"0.5045484",
"0.5043558",
"0.5041175",
"0.502805",
"0.50133854",
"0.50099957",
"0.4993306",
"0.4989456",
"0.4980892",
"0.497436",
"0.49733087",
"0.49707934",
"0.49678954",
"0.496664",
"0.49632522",
"0.49514744",
"0.49460453",
"0.49458003",
"0.49400845",
"0.49254617",
"0.4919811",
"0.49188608",
"0.49171582",
"0.49095756",
"0.4907431",
"0.49049792",
"0.4893959",
"0.48932913",
"0.4887901",
"0.48870838",
"0.4878738",
"0.4875557",
"0.487397",
"0.4860388",
"0.48579183",
"0.4857739",
"0.48575246",
"0.48574787",
"0.48572874",
"0.48499385"
] | 0.7201155 | 1 |
Configure settings xmpptcp connection. | public XMPPTCPConnection configureSettings(ConnectionSettings settings) {
XMPPTCPConnectionConfiguration.Builder config = XMPPTCPConnectionConfiguration
.builder();
config.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);
config.setServiceName(settings.getXmppDomain());
config.setHost(settings.getXmppHost());
config.setPort(settings.getXmppPort());
config.setResource(settings.getXmppResource());
config.setDebuggerEnabled(true);
config.setConnectTimeout(10000);
XMPPTCPConnection.setUseStreamManagementResumptiodDefault(true);
XMPPTCPConnection.setUseStreamManagementDefault(true);
setLoginUser(settings.getUserName());
setPasswordUser(settings.getPassword());
addProviders();
connection = new XMPPTCPConnection(config.build());
XMPPConnectionListener connectionListener = new XMPPConnectionListener();
connection.addConnectionListener(connectionListener);
setMessageReceiptListener();
addErrorBindFilter();
addPresenceListener();
return new XMPPTCPConnection(config.build());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void configureConnectionPool() {\n JdbcPropertyAdapter adapter = getPropertyAdapter(dbType, properties);\n JdbcConnectionProvider cp = new JdbcConnectionProvider(this.translator, adapter);\n this.connectionPool = new PoolConnectionProvider(cp, this.maxConnectionPoolSize);\n this.transactionProvider = new SimpleTransactionProvider(this.connectionPool);\n }",
"protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }",
"private void configureMqtt() {\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"ws://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"tcp://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTT_PORT;\n\t\t\t}\n\t\t}\n\t\t\n\t\tString mqttServer = getMQTTServer();\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tpersistence = new MemoryPersistence();\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, persistence);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void init() {\n\t\tXMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()\r\n//\t\t .setUsernameAndPassword(\"pwf\", \"123456\")\r\n//\t\t\t\t .setServiceName(\"bdht-2016051604\")\r\n\t\t\t\t .setServiceName(\"bdht-2016051604\")\r\n\t\t\t\t .setHost(\"bdht-2016051604\")\r\n\t\t\t\t .setSecurityMode(SecurityMode.disabled)\r\n//\t\t\t\t .setCustomSSLContext(context)\r\n\t\t\t\t \r\n//\t\t .setHost(\"bdht-2016051604\")\r\n//\t\t .setPort(5222)\r\n\t\t .build();\r\n\r\n\t\tAbstractXMPPConnection connection = new XMPPTCPConnection(config);\r\n\t\t\r\n\r\n//\t\tAbstractXMPPConnection conn = new XMPPTCPConnection(\"pwf\", \"123456\", \"BDHT-2016051604\");\r\n//\t\tAbstractXMPPConnection conn = new XMPPTCPConnection(\"pwf\", \"123456\", \"192.168.1.121\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\tconnection.connect();\r\n\t\t\t\r\n\t\t\tconnection.login(\"pwf1\", \"123456\");\r\n\t\t\t\r\n\t\t} catch (SmackException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t} catch (XMPPException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(connection.getUser());\r\n\t\t\r\n\t\tChatManager chatmanager = ChatManager.getInstanceFor(connection);\r\n\t\tChat newChat = chatmanager.createChat(\"admin\");\r\n\t\t\r\n//\t\tChat newChat = chatmanager.createChat(\"jsmith@jivesoftware.com\", new MessageListener() {\r\n//\t\t\tpublic void processMessage(Chat chat, Message message) {\r\n//\t\t\t\tSystem.out.println(\"Received message: \" + message);\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\ttry {\r\n\t\t\tnewChat.sendMessage(\"hello!!\");\r\n\t\t} catch (NotConnectedException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t\t\t\r\n\t\t}\r\n//\t\tconnection.get\r\n//\t\tconnection.getChatManager().createChat(\"shimiso@csdn.shimiso.com\",null).sendMessage(\"Hello word!\");\r\n\t\t\r\n\t\tconnection.disconnect();\r\n\t\t\r\n\t\tSystem.out.println(\"end\");\r\n\t}",
"private void setupconfigIpCPoints() {\n for (int i = 1; i <= 3; i++) {\n ConnectPoint connectPoint = new ConnectPoint(\n getDeviceId(i),\n PortNumber.portNumber(1));\n configIpCPoints.add(connectPoint);\n }\n }",
"void configure (Settings settings);",
"public static void setupTorPoolConnexion() throws Exception {\n\t\t\n\t\tLog.stdout(\"Setting up TorPool connection...\");\n\t\t\n\t\t// check if pool is running.\n\t\tcheckRunningPool();\n\t\t\n\t\tSystem.setProperty(\"socksProxyHost\", \"127.0.0.1\");\n\t\t\n\t\t\n\t\ttry{\n\t\t\t//changePortFromFile(new BufferedReader(new FileReader(new File(\".tor_tmp/ports\"))));\n\t\t\tswitchPort();\n\t\t}catch(Exception e){e.printStackTrace();}\n\t\t\n\t\t//showIP();\n\t\t\n\t\thasTorPoolConnexion = true;\n\t}",
"public JpSetting() {\n initComponents();\n fillThongtin();\n }",
"public void setup_connections()\n {\n setup_servers();\n setup_clients();\n }",
"private void loadProperties() {\n driver = JiveGlobals.getXMLProperty(\"database.defaultProvider.driver\");\n serverURL = JiveGlobals.getXMLProperty(\"database.defaultProvider.serverURL\");\n username = JiveGlobals.getXMLProperty(\"database.defaultProvider.username\");\n password = JiveGlobals.getXMLProperty(\"database.defaultProvider.password\");\n String minCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.minConnections\");\n String maxCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.maxConnections\");\n String conTimeout = JiveGlobals.getXMLProperty(\"database.defaultProvider.connectionTimeout\");\n // See if we should use Unicode under MySQL\n mysqlUseUnicode = Boolean.valueOf(JiveGlobals.getXMLProperty(\"database.mysql.useUnicode\")).booleanValue();\n try {\n if (minCons != null) {\n minConnections = Integer.parseInt(minCons);\n }\n if (maxCons != null) {\n maxConnections = Integer.parseInt(maxCons);\n }\n if (conTimeout != null) {\n connectionTimeout = Double.parseDouble(conTimeout);\n }\n }\n catch (Exception e) {\n Log.error(\"Error: could not parse default pool properties. \" +\n \"Make sure the values exist and are correct.\", e);\n }\n }",
"public void setConfiguration(Properties props);",
"void configure();",
"public void setMailSmtpConfig() {\n int col = 0;\n int row = 0;\n /*\n Email SMTP Configuration\n */\n hostSmtp = new JFXTextField();\n hostSmtp.setPromptText(\"Enter the SMTP address\");\n port = new JFXTextField();\n port.setPromptText(\"Enter the SMTP Port Number\");\n fromMail = new JFXTextField();\n fromMail.setPromptText(\"Enter the Email address\");\n smtpMailPwd = new JFXPasswordField();\n smtpMailPwd.setPromptText(\"Enter the Email password\");\n socketProperty = new JFXTextField();\n socketProperty.setPromptText(\"Enter the Socket Port\");\n// smtpConfCheck = new Button(\"Test Mail\");\n\n GridPane smtpGrid = new GridPane();\n smtpGrid.setHgap(20);\n smtpGrid.setVgap(10);\n smtpGrid.setPadding(new Insets(20, 10, 10, 10));\n smtpGrid.add(new Label(\"Host SMTP Address\"), col, ++row);\n smtpGrid.add(hostSmtp, col + 1, row, 2, 1);\n smtpGrid.add(new Label(\"SMTP Port\"), col, ++row);\n\n smtpGrid.add(port, col + 1, row, 2, 1);\n smtpGrid.add(new Label(\"Socket Port\"), col, ++row);\n smtpGrid.add(socketProperty, col + 1, row);\n smtpGrid.add(new Label(\"SMTP Email\"), col, ++row);\n smtpGrid.add(fromMail, col + 1, row, 2, 1);\n smtpGrid.add(new Label(\"SMTP Email Password\"), col, ++row);\n smtpGrid.add(smtpMailPwd, col + 1, row);\n\n smtpGrid.add(new Label(\"\"), col, ++row);\n\n smtpGrid.add(new Label(\"\"), col, ++row);\n// smtpGrid.add(new Label(\"\"), col, ++row);\n// smtpGrid.add(new Label(\"\"), col, ++row);\n\n smtpConf.setContent(smtpGrid);\n }",
"private void loadFtpConfiguration(){\n\t\t//Get the active profile\n\t\tProfile activeProfile = settingsService.getActiveProfile();\n\t\tHOST = activeProfile.getIpNmt();\n\t\t\n\t\tString puerto = activeProfile.getFtpPort();\n\t\tif (null != puerto && !\"\".equals(puerto)){\n\t\t\tPORT = Integer.valueOf(puerto);\t\t\n\t\t} else {\n\t\t\tPORT = 21; //DEFAULT PORT\n\t\t}\n\t\tUSERNAME = activeProfile.getFtpUser();\n\t\tPASSWORD = activeProfile.getFtpPassword();\t\t\n\t}",
"public PixxPanel(PixxConfiguration config)\n {\n _pixxConfiguration=config;\n }",
"@Override\n\tpublic Map<String, String> settings(Procontext pc) {\n\t\tMap<String, String> settings = super.settings(pc);\n\t\tString ds = param(\"datasource\");\n\t\tsettings.putAll(pc.appproperties().propsWithPrefix(\"progsets.spark.datasource.\" + ds +\".\", true));\n\t\treturn settings;\n\t}",
"void setConfiguration();",
"public void intiSettings()throws Exception{\r\n\r\n\t\tinputStream = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\config.properties\");\r\n\t\tconfig.load(inputStream);\r\n\t\t\r\n\t\tprop.put(\"bootstrap.servers\", config.getProperty(\"bootstrap.servers\"));\r\n\t\tprop.put(\"key.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\r\n\t\tprop.put(\"value.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\r\n\r\n\t\ttopicName = config.getProperty(\"TopicName\");\r\n\t\ttopicName = createTopic(topicName);\r\n\t\t\r\n\t\tmessageList = Arrays.asList(config.getProperty(\"messages\").split(\"\\\\|\"));\r\n\t}",
"public void setupServerSettings() {\r\n\t\tmnuServerSettings.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew EmailSettingsGUI();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public static void configureLocal() {\r\n configure(getProperties(true));\r\n }",
"public setup() {\n dbConnection = \"jdbc:\"+DEFAULT_DB_TYPE+\"://\"+DEFAULT_DB_HOST+\":\"+DEFAULT_DB_PORT+\"/\"+DEFAULT_DB_PATH;\n dbType = DEFAULT_DB_TYPE;\n dbUser = DEFAULT_DB_USER;\n dbPass = DEFAULT_DB_PASSWORD;\n beginSetup();\n }",
"private void config() {\n\t}",
"private void setUpConnection(DataBaseProps dataBaseConfig) {\n\t\tHikariConfig hikariConfig = new HikariConfig();\r\n\t\thikariConfig.setDriverClassName(dataBaseConfig.getDriverName());\r\n\t\thikariConfig.setJdbcUrl(dataBaseConfig.getUrl());\r\n\t\thikariConfig.setUsername(dataBaseConfig.getUsername());\r\n\t\thikariConfig.setPassword(dataBaseConfig.getPassword());\r\n\t\thikariConfig.setMaximumPoolSize(maximumPoolSize);\r\n\t\thikariConfig.setValidationTimeout(validationTimeout);\r\n\t\thikariConfig.setConnectionTimeout(connectionTimeout);\r\n\t\thikariConfig.setIdleTimeout(idleTimeout);\r\n\t\thikariConfig.setMinimumIdle(minimumIdle);\r\n\t\tHikariDataSource dataSource = new HikariDataSource(hikariConfig);\r\n\t\tthis.jdbcTemplate = new NamedParameterJdbcTemplate(dataSource);\r\n\t}",
"public static PoolingDataSource setupDataSource() {\n\t\tPoolingDataSource pds = new PoolingDataSource();\n\t\tpds.setUniqueName(\"jdbc/jbpm-ds\");\n\t\tpds.setClassName(\"bitronix.tm.resource.jdbc.lrc.LrcXADataSource\");\n\t\tpds.setMaxPoolSize(5);\n\t\tpds.setAllowLocalTransactions(true);\n\t\tpds.getDriverProperties().put(\"user\", \"jbpm6_user\");\n\t\tpds.getDriverProperties().put(\"password\", \"jbpm6_pass\");\n\t\tpds.getDriverProperties().put(\"url\", \"jdbc:mysql://localhost:3306/jbpm6\");\n\t\tpds.getDriverProperties().put(\"driverClassName\", \"com.mysql.jdbc.Driver\");\n\t\tpds.init();\n\t\treturn pds;\n\t}",
"void setConnection(Connection con);",
"private ConnectionPool() {\r\n\t\tResourceManagerDB resourceManager = ResourceManagerDB.getInstance();\r\n\t\tthis.driver = resourceManager.getValue(ParameterDB.DRIVER_DB);\r\n\t\tthis.url = resourceManager.getValue(ParameterDB.URL_DB);\r\n\t\tthis.user = resourceManager.getValue(ParameterDB.USER_DB);\r\n\t\tthis.password = resourceManager.getValue(ParameterDB.PASSWORD_DB);\r\n\t\tthis.poolsize = Integer.parseInt(resourceManager.getValue(ParameterDB.POOLSIZE_DB));\r\n\t}",
"private void extractConfig(Element root, PentahoConfig config) {\n\n\t\tString debug = this.extractValue(DEBUG, root);\n\t\tif (null != debug) {\n\t\t\tboolean debugValue = (debug.equals(\"true\"))? true:false;\n\t\t\tconfig.setDebug(debugValue);\n\t\t}\t\t\t\n\n\t\tString serverUsername = this.extractValue(serverUsername_ELEM, root);\n\t\tif (null != serverUsername) config.setServerUsername(serverUsername);\n\n\t\tString serverPassword = this.extractValue(serverPassword_ELEM, root);\n\t\tif (null != serverPassword) config.setServerPassword(serverPassword);\n\n\t\tString serverLocalUrl = this.extractValue(serverLocalUrl_ELEM, root);\n\t\tif (null != serverLocalUrl) config.setServerLocalUrl(serverLocalUrl);\n\n\t\tString serverLocalPort = this.extractValue(serverLocalPort_ELEM, root);\n\t\ttry {\n\t\t\tif (null != serverLocalPort) config.setServerLocalPort(Integer.parseInt(serverLocalPort));\n\t\t} catch (Throwable e) {\n\t\t\t//nothing to catch\n\t\t}\n\n\t\tString serverLocalProtocol = this.extractValue(serverLocalProtocol_ELEM, root);\n\t\tif (null != serverLocalProtocol) config.setServerLocalProtocol(serverLocalProtocol);\n\n\t\tString serverUrl = this.extractValue(serverUrl_ELEM, root);\n\t\tif (null != serverUrl) config.setServerUrl(serverUrl);\n\n\t\tString serverPort = this.extractValue(serverPort_ELEM, root);\n\t\ttry {\n\t\t\tif (null != serverPort) config.setServerPort(Integer.parseInt(serverPort));\n\t\t} catch (Throwable e) {\n\t\t\t//nothing to catch\n\t\t}\n\n\t\tString serverProtocol = this.extractValue(serverProtocol_ELEM, root);\n\t\tif (null != serverProtocol) config.setServerProtocol(serverProtocol);\n\n\t\tString serverContextPath = this.extractValue(serverContextPath_ELEM, root);\n\t\tif (null != serverContextPath) config.setServerContextPath(serverContextPath);\n\n\t\tString reportDefBasePath = this.extractValue(reportDefBasePath_ELEM, root);\n\t\tif (null != reportDefBasePath) config.setReportDefBasePath(reportDefBasePath);\n\n\t\tString serverVisibleFromClient = this.extractValue(serverVisibleFromClient_ELEM, root);\n\t\ttry {\n\t\t\tif (null != serverVisibleFromClient) config.setServerVisibleFromClient(Boolean.parseBoolean(serverVisibleFromClient));\n\t\t} catch (Throwable e) {\n\t\t\t//nothing to catch\n\t\t}\n\n\t\tString reportDetailPage = this.extractValue(reportDetailPage_ELEM, root);\n\t\tif (null != reportDetailPage) config.setReportDetailPage(reportDetailPage);\n\n\t\tString dataIntegrationRepositoryName = this.extractValue(dataIntegrationRepositoryName_ELEM, root);\n\t\tif (null != dataIntegrationRepositoryName) config.setDataIntegrationRepositoryName(dataIntegrationRepositoryName);\n\n\t\tString dataIntegrationUsername = this.extractValue(dataIntegrationUsername_ELEM, root);\n\t\tif (null != dataIntegrationUsername) config.setDataIntegrationUsername(dataIntegrationUsername);\n\n\t\tString dataIntegrationPassword = this.extractValue(dataIntegrationPassword_ELEM, root);\n\t\tif (null != dataIntegrationPassword) config.setDataIntegrationPassword(dataIntegrationPassword);\n\t}",
"private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n //set the driver name and track variables using methods below, which are also called from onSharedPreferencesChanged\n setDriver(sharedPreferences);\n setTrack(sharedPreferences);\n }",
"public void saveConnectionConfiguration(){\n\t\tProperties props = new Properties();\n\t\tif (connectionconfig!=null){\n\t\t\tprops.setProperty(\"server\", connectionconfig.getServer());\n\t\t\tprops.setProperty(\"user\", connectionconfig.getUser());\n\t\t\tprops.setProperty(\"passwd\", connectionconfig.getPasswd());\n\t\t}\n\t\ttry {\n\t\t\tFileOutputStream propOutFile = new FileOutputStream(getConnConfigFile());\n\t\t\ttry {\n\t\t\t\tprops.store(propOutFile, \"Jabber connection parameters\");\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e2) {\n\n\t\t\te2.printStackTrace();\n\t\t}\n\t}",
"public void setConOpt(MqttConnectOptions conOpt) {\n this.conOpt = conOpt;\n }",
"private void init() {\r\n\t\tif (cn == null) {\r\n\t\t\ttry {\r\n\t\t\t\tcn = new XGConnection(url,login,passwd); // Etape 2 : r�cup�ration de la connexion\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.MINUTES.sleep(1);\r\n\t\t\t\t} catch (InterruptedException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcn.close();// lib�rer ressources de la m�moire.\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void init(BeeDataSourceConfig config) throws SQLException {\r\n if (poolState.get() == POOL_UNINIT) {\r\n checkProxyClasses();\r\n if (config == null) throw new SQLException(\"Configuration can't be null\");\r\n poolConfig = config.check();//why need a copy here?\r\n\r\n poolName = !isBlank(config.getPoolName()) ? config.getPoolName() : \"FastPool-\" + poolNameIndex.getAndIncrement();\r\n commonLog.info(\"BeeCP({})starting....\", poolName);\r\n\r\n poolMaxSize = poolConfig.getMaxActive();\r\n connFactory = poolConfig.getConnectionFactory();\r\n connectionTestTimeout = poolConfig.getConnectionTestTimeout();\r\n connectionTester = new SQLQueryTester(poolConfig.isDefaultAutoCommit(), poolConfig.getConnectionTestSQL());\r\n defaultMaxWaitNanos = MILLISECONDS.toNanos(poolConfig.getMaxWait());\r\n delayTimeForNextClearNanos = MILLISECONDS.toNanos(poolConfig.getDelayTimeForNextClear());\r\n connectionTestInterval = poolConfig.getConnectionTestInterval();\r\n createInitConnections(poolConfig.getInitialSize());\r\n\r\n if (poolConfig.isFairMode()) {\r\n poolMode = \"fair\";\r\n transferPolicy = new FairTransferPolicy();\r\n conUnCatchStateCode = transferPolicy.getCheckStateCode();\r\n } else {\r\n poolMode = \"compete\";\r\n transferPolicy = new CompeteTransferPolicy();\r\n conUnCatchStateCode = transferPolicy.getCheckStateCode();\r\n }\r\n\r\n exitHook = new ConnectionPoolHook();\r\n Runtime.getRuntime().addShutdownHook(exitHook);\r\n borrowSemaphoreSize = poolConfig.getBorrowSemaphoreSize();\r\n borrowSemaphore = new Semaphore(borrowSemaphoreSize, poolConfig.isFairMode());\r\n idleSchExecutor.setKeepAliveTime(15, SECONDS);\r\n idleSchExecutor.allowCoreThreadTimeOut(true);\r\n idleCheckSchFuture = idleSchExecutor.scheduleAtFixedRate(new Runnable() {\r\n public void run() {// check idle connection\r\n closeIdleTimeoutConnection();\r\n }\r\n }, 1000, config.getIdleCheckTimeInterval(), TimeUnit.MILLISECONDS);\r\n\r\n registerJmx();\r\n commonLog.info(\"BeeCP({})has startup{mode:{},init size:{},max size:{},semaphore size:{},max wait:{}ms,driver:{}}\",\r\n poolName,\r\n poolMode,\r\n connArray.length,\r\n config.getMaxActive(),\r\n borrowSemaphoreSize,\r\n poolConfig.getMaxWait(),\r\n poolConfig.getDriverClassName());\r\n\r\n poolState.set(POOL_NORMAL);\r\n this.setDaemon(true);\r\n this.setName(\"PooledConnectionAdd\");\r\n this.start();\r\n } else {\r\n throw new SQLException(\"Pool has initialized\");\r\n }\r\n }",
"public void setConnectionProperties(String hostname, String dbName, String username, String password);",
"public JMXHelper(PSConfigObject psconfig) {\n this.psconfig = psconfig;\n adminUtilHelper = new JMXAdminHelperUtil();\n }",
"void configure (CallbackUtilities cus) throws RootException;",
"private void saveProperties() {\n\n JiveGlobals.setXMLProperty(\"database.defaultProvider.driver\", driver);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.serverURL\", serverURL);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.username\", username);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.password\", password);\n\n JiveGlobals.setXMLProperty(\"database.defaultProvider.minConnections\",\n Integer.toString(minConnections));\n JiveGlobals.setXMLProperty(\"database.defaultProvider.maxConnections\",\n Integer.toString(maxConnections));\n JiveGlobals.setXMLProperty(\"database.defaultProvider.connectionTimeout\",\n Double.toString(connectionTimeout));\n }",
"public void setConnection(Connection conn);",
"public void initializeConnections(){\n cc = new ConnectorContainer();\n cc.setLayout(null);\n cc.setAutoscrolls(true);\n connections = new LinkedList<JConnector>();\n agents = new LinkedList<JConnector>();\n }",
"@Override\n public void prepare(Map conf) {\n\n String tracerHost = (String) conf.get(\"tracerHost\");\n int tracerPort = Integer.valueOf((String) conf.get(\"tracerPort\"));\n\n tc = new TracerConnection(tracerHost, tracerPort, LOG);\n }",
"public ConfigProperties() {\n initComponents();\n Properties propertie = MainControl.getDBProperties();\n txtServidor.setText(propertie.getProperty(\"servidor\"));\n txtDataBase.setText(propertie.getProperty(\"dbName\"));\n txtPort.setText(propertie.getProperty(\"port\"));\n txtUser.setText(propertie.getProperty(\"user\"));\n txtPass.setText(propertie.getProperty(\"pass\"));\n this.setLocationRelativeTo(null);\n }",
"protected void setUp() throws Exception {\n TestHelper.loadSingleXMLConfig(TestHelper.NAMESPACE, TestHelper.CONFIG_FILE);\n propertiesPanel = new PropertiesPanel(new UMLModelManager());\n\n panel = new ConcurrencyPropertyPanel(propertiesPanel);\n }",
"public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}",
"public void transportConfigure(ParameterList params) throws TransportException {\n }",
"public PSO() {\r\n initialiseNetwork();\r\n initialisePSO();\r\n }",
"@BeforeSuite\n\tpublic void setUp() {\n\t\tlogger.info(\"IN SETUP METHOD: performing pretest configurations\");\n\t\ttry {\n\t\t\tinput = new FileInputStream(\"config.properties\");\n\t\t\tprop.load(input);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e);\n\t\t\t\n\t\t}\n\t\t//Set the browser from the cmd line or from config.properties file\n\t\tString browser = System.getProperty(\"browser\", prop.getProperty(\"browser\"));\n\t\tlogger.info(\"Selected browser is: \" + browser);\n\t\tgmailPg.driverSetup(browser, prop.getProperty(\"remote\"));\n\t\tgmailPg.explicitWaitSetup();\n\t\tgmailPg.loadXpathProps();\n\t}",
"public static void init()\n {\n try\n {\n // The newInstance() call is a work around for some broken Java implementations\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\n // Create a new configuration object\n BoneCPConfig config = new BoneCPConfig();\n\n // Setup the configuration\n config.setJdbcUrl(\"jdbc:mysql://cs304.c0mk5mvcjljr.us-west-2.rds.amazonaws.com/cs304\"); // jdbc url specific to your database, eg jdbc:mysql://127.0.0.1/yourdb\n config.setUsername(\"cs304\");\n config.setPassword(\"ubccs304\");\n config.setConnectionTestStatement(\"SELECT 1\");\n config.setConnectionTimeout(10, TimeUnit.SECONDS);\n config.setMinConnectionsPerPartition(5);\n config.setMaxConnectionsPerPartition(10);\n config.setPartitionCount(1);\n\n // Setup the connection pool\n _pool = new BoneCP(config);\n\n // Log\n LogManager.getLogger(DatabasePoolManager.class).info(\"Database configuration initialized\");\n }\n catch (Exception ex)\n {\n // Log\n LogManager.getLogger(DatabasePoolManager.class).fatal(\"Could not initialize Database configuration\", ex);\n }\n\n }",
"public TPS_BasicConnectionClass() {\n this.parameterClass = new TPS_ParameterClass();\n try {\n this.parameterClass.loadRuntimeParameters(TPS_BasicConnectionClass.getRuntimeFile());\n dbCon = new TPS_DB_Connector(this.parameterClass);\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }",
"public void setFtpConnectionPane() {\n int col = 0;\n int row = 0;\n feedname = new JFXTextField();\n feedname.setPromptText(\"Enter the Feed Name\");\n hostname = new JFXTextField();\n hostname.setPromptText(\"Enter the host name\");\n username = new JFXTextField();\n username.setPromptText(\"Enter the Username\");\n password = new JFXPasswordField();\n password.setPromptText(\"Enter the password\");\n ftpConnectionCheck = new Button();\n GridPane ftpgrid = new GridPane();\n ftpgrid.setHgap(10);\n ftpgrid.setVgap(5);\n ftpgrid.setPadding(new Insets(20, 10, 10, 10));\n ftpConnectionCheck = new Button(\"Test Connection\");\n ftpgrid.add(new Label(\"Feed Name\"), col, row);\n ftpgrid.add(feedname, col + 1, row, 2, 1);\n ftpgrid.add(new Label(\"Host Name\"), col, ++row);\n ftpgrid.add(hostname, col + 1, row, 2, 1);\n ftpgrid.add(new Label(\"User Name\"), col, ++row);\n ftpgrid.add(username, col + 1, row, 2, 1);\n ftpgrid.add(new Label(\"Password\"), col, ++row);\n ftpgrid.add(password, col + 1, row, 4, 1);\n// ftpgrid.add(new Label(\"\"), col, ++row);\n\n ftptp.setContent(ftpgrid);\n\n }",
"protected void configure() {\n\t \n\t Configuration.BASE=true;\n\t Configuration.BASEMENUBAR=true;\n\t Configuration.BASETOOLBAR=true;\n\t Configuration.EDITMENUBAR=true;\n\t Configuration.EDITTOOLBAR=true;\n\t Configuration.FORMATMENUBAR=true;\n\t Configuration.FORMATTOOLBAR=true;\n\t Configuration.PERSISTENCEMENUBAR=true;\n\t Configuration.PERSISTENCETOOLBAR=true;\n\t Configuration.PRINTMENUBAR=true;\n\t Configuration.PRINTTOOLBAR=true;\n\t Configuration.SEARCHMENUBAR=true;\n\t Configuration.SEARCHTOOLBAR=true;\n\t Configuration.UNDOREDOMENUBAR=true;\n\t \t Configuration.UNDOREDOTOOLBAR=true;\n\t //\n\t Configuration.WORDCOUNTMENUBAR=true;\n\t Configuration.WORDCOUNTTOOLBAR=true;\n }",
"@SuppressWarnings(\"unchecked\")\n private void initializeGeneralSettingsPanel() {\n generalSettingsPanel = new JPanel(new GridBagLayout());\n\n GridBagConstraints c = new GridBagConstraints();\n c.anchor = GridBagConstraints.NORTHWEST;\n c.fill = GridBagConstraints.HORIZONTAL;\n c.insets = new Insets(5, 5, 5, 5);\n\n int row = 0;\n\n // input column >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n c.gridx = 0;\n c.gridwidth = 1;\n c.weightx = 0.0;\n c.weighty = 0.0;\n generalSettingsPanel.add(new JLabel(\"Column to PIA XML file (on port 0)\"), c);\n\n inputColumnBox = new ColumnSelectionComboxBox((Border)null, DataValue.class);\n try {\n inputColumnBox.setColumnFilter(new ColumnFilter() {\n @Override\n public boolean includeColumn(DataColumnSpec colSpec) {\n return colSpec.getType().isCompatible(StringValue.class)\n || colSpec.getType().isCompatible(BinaryObjectDataValue.class);\n }\n\n @Override\n public String allFilteredMsg() {\n return \"No column with needed data found, needs String or BinaryObjectData\";\n }\n });\n } catch (NotConfigurableException e) {\n LOGGER.warn(\"Could not find a compatible column in the input datatable.\");\n }\n\n c.gridx = 1;\n c.gridy = row++;\n c.gridwidth = 1;\n c.weightx = 1.0;\n c.weighty = 0.0;\n generalSettingsPanel.add(inputColumnBox, c);\n // input column <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n // fail on no decoys >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n checkErrorOnNoDecoys = new JCheckBox(\"Fail on no decoys (select, if a decoy database was used for identification)\");\n checkErrorOnNoDecoys.setSelected(PIASettings.ERROR_ON_NO_DECOYS.getDefaultBoolean());\n\n c.gridx = 0;\n c.gridy = row++;\n c.gridwidth = 2;\n generalSettingsPanel.add(checkErrorOnNoDecoys, c);\n // fail on no decoys <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n // create PSM sets >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n checkCreatePSMSets = new JCheckBox(\"Create PSM sets (select, if multiple search engines were used for identification)\");\n checkCreatePSMSets.setSelected(PIASettings.CREATE_PSMSETS.getDefaultBoolean());\n checkCreatePSMSets.addChangeListener(this);\n\n c.gridy = row++;\n generalSettingsPanel.add(checkCreatePSMSets, c);\n // create PSM sets <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n // consider modifications >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n checkConsiderModifications = new JCheckBox(\"consider modifications to distinguish peptides\");\n checkConsiderModifications.setSelected(PIASettings.CONSIDER_MODIFICATIONS.getDefaultBoolean());\n\n c.gridy = row++;\n generalSettingsPanel.add(checkConsiderModifications, c);\n // consider modifications <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n // Export settings >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n JPanel exportSettingsPanel = new JPanel(new GridBagLayout());\n exportSettingsPanel.setBorder(BorderFactory.createTitledBorder(\"Export settings\"));\n\n c.gridx = 0;\n c.gridy = 0;\n c.gridwidth = 1;\n c.weightx = 0.0;\n exportSettingsPanel.add(new JLabel(\"Export level\"), c);\n\n comboExportLevel = new JComboBox<>();\n\n for (ExportLevels lvl : ExportLevels.values()) {\n comboExportLevel.addItem(lvl);\n }\n comboExportLevel.addActionListener(this);\n c.gridx = 1;\n c.gridy = 0;\n c.gridwidth = 1;\n c.weightx = 1.0;\n exportSettingsPanel.add(comboExportLevel, c);\n\n\n c.gridx = 0;\n c.gridy = 2;\n c.gridwidth = 1;\n c.weightx = 0.0;\n exportSettingsPanel.add(new JLabel(\"Export format\"), c);\n\n comboExportFormat = new JComboBox<>();\n updateExportAvailables();\n comboExportFormat.addActionListener(this);\n comboExportLevel.setSelectedItem(PIASettings.EXPORT_LEVEL.getDefaultString());\n c.gridx = 1;\n c.gridy = 2;\n c.gridwidth = 1;\n c.weightx = 1.0;\n exportSettingsPanel.add(comboExportFormat, c);\n\n checkExportFilter = new JCheckBox(\"Filter Export (works only on some formats and levels)\");\n checkExportFilter.setSelected(PIASettings.EXPORT_FILTER.getDefaultBoolean());\n checkExportFilter.addChangeListener(this);\n c.gridx = 0;\n c.gridy = 3;\n c.gridwidth = 2;\n c.weightx = 1.0;\n exportSettingsPanel.add(checkExportFilter, c);\n\n\n c.gridx = 0;\n c.gridy = 4;\n c.gridwidth = 1;\n c.weightx = 0.0;\n exportSettingsPanel.add(new JLabel(\"Filename for export:\"), c);\n\n fieldExportFileBasename = new JTextField(PIASettings.EXPORT_FILEBASENAME.getDefaultString(), 10);\n c.gridx = 1;\n c.gridy = 4;\n c.gridwidth = 1;\n c.weightx = 1.0;\n exportSettingsPanel.add(fieldExportFileBasename, c);\n\n c.gridx = 0;\n c.gridy = row++;\n c.gridwidth = 2;\n c.weightx = 1.0;\n generalSettingsPanel.add(exportSettingsPanel, c);\n // Export settings <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n }",
"public static void setConfValues(Configuration conf) {\n MetastoreConf.setVar(conf, ConfVars.HIVE_TXN_MANAGER, TXN_MANAGER);\n MetastoreConf.setBoolVar(conf, ConfVars.HIVE_SUPPORT_CONCURRENCY, true);\n }",
"public void activateOptions() {\n TopicConnectionFactory topicConnectionFactory;\n\n try {\n Context jndi;\n\n LogLog.debug(\"Getting initial context.\");\n if(initialContextFactoryName != null) {\n\tProperties env = new Properties( );\n\tenv.put(Context.INITIAL_CONTEXT_FACTORY, initialContextFactoryName);\n\tif(providerURL != null) {\n\t env.put(Context.PROVIDER_URL, providerURL);\n\t} else {\n\t LogLog.warn(\"You have set InitialContextFactoryName option but not the \"\n\t\t +\"ProviderURL. This is likely to cause problems.\");\n\t}\n\tif(urlPkgPrefixes != null) {\n\t env.put(Context.URL_PKG_PREFIXES, urlPkgPrefixes);\n\t}\n\t\n\tif(securityPrincipalName != null) {\n\t env.put(Context.SECURITY_PRINCIPAL, securityPrincipalName);\n\t if(securityCredentials != null) {\n\t env.put(Context.SECURITY_CREDENTIALS, securityCredentials);\n\t } else {\n\t LogLog.warn(\"You have set SecurityPrincipalName option but not the \"\n\t\t\t+\"SecurityCredentials. This is likely to cause problems.\");\n\t }\n\t}\t\n\tjndi = new InitialContext(env);\n } else {\n\tjndi = new InitialContext();\n }\n\n LogLog.debug(\"Looking up [\"+tcfBindingName+\"]\");\n topicConnectionFactory = (TopicConnectionFactory) lookup(jndi, tcfBindingName);\n LogLog.debug(\"About to create TopicConnection.\");\n if(userName != null) {\n\ttopicConnection = topicConnectionFactory.createTopicConnection(userName, \n\t\t\t\t\t\t\t\t password); \n } else {\n\ttopicConnection = topicConnectionFactory.createTopicConnection();\n }\n\n LogLog.debug(\"Creating TopicSession, non-transactional, \"\n\t\t +\"in AUTO_ACKNOWLEDGE mode.\");\n topicSession = topicConnection.createTopicSession(false,\n\t\t\t\t\t\t\tSession.AUTO_ACKNOWLEDGE);\n\n LogLog.debug(\"Looking up topic name [\"+topicBindingName+\"].\");\n Topic topic = (Topic) lookup(jndi, topicBindingName);\n\n LogLog.debug(\"Creating TopicPublisher.\");\n topicPublisher = topicSession.createPublisher(topic);\n \n LogLog.debug(\"Starting TopicConnection.\");\n topicConnection.start();\n\n jndi.close();\n } catch(Exception e) {\n errorHandler.error(\"Error while activating options for appender named [\"+name+\n\t\t\t \"].\", e, ErrorCode.GENERIC_FAILURE);\n }\n }",
"public MqttClientSessionImpl(final Vertx vertx, final MqttClientSessionOptions options) {\n this.vertx = (VertxInternal) vertx;\n this.options = options;\n this.reconnectDelay = options.getReconnectDelay().createProvider();\n }",
"public static void setConnectionPool(BoneCP connectionPool) {\n\t\tSQLDataBaseConnector.connectionPool = connectionPool;\n\t}",
"public PreferencesPanel()\n {\n initComponents();\n CB_CHECK_NEW.setSelected( Main.get_long_prop(Preferences.CHECK_NEWS) > 0);\n CB_CACHE_MAILS.setSelected( Main.get_long_prop(Preferences.CACHE_MAILFILES) > 0);\n\n\n\n COMBO_UI.removeAllItems();\n ArrayList<String> ui_names = UI_Generic.get_ui_names();\n for (int i = 0; i < ui_names.size(); i++)\n {\n String string = ui_names.get(i);\n COMBO_UI.addItem(string);\n }\n\n last_ui = (int)Main.get_long_prop(Preferences.UI, 0l);\n if (last_ui < COMBO_UI.getItemCount())\n COMBO_UI.setSelectedIndex( last_ui );\n else\n COMBO_UI.setSelectedIndex( 0 );\n\n String ds = Main.get_prop( Preferences.DEFAULT_STATION );\n if (ds != null && ds.length() > 0)\n {\n ParseToken pt = new ParseToken(ds);\n String ip = pt.GetString(\"IP:\");\n long po = pt.GetLongValue(\"PO:\");\n boolean only_this = pt.GetBoolean(\"OT:\");\n TXT_SERVER_IP.setText(ip);\n if (po > 0)\n TXT_SERVER_PORT.setText(Long.toString(po) );\n CB_NO_SCANNING.setSelected(only_this);\n }\n\n String l_code = Main.get_prop( Preferences.COUNTRYCODE, \"DE\");\n\n if (l_code.compareTo(\"DE\") == 0)\n COMBO_LANG.setSelectedIndex(0);\n if (l_code.compareTo(\"EN\") == 0)\n COMBO_LANG.setSelectedIndex(1); \n }",
"public void setConfigurationContext(org.apache.axis2.context.xsd.ConfigurationContext param){\n localConfigurationContextTracker = true;\n \n this.localConfigurationContext=param;\n \n\n }",
"private RelayConfig () {}",
"@Override\n public void configure(ConfigurationElement config) throws CoreException {\n programName = getConfigString(config, \"programName\");\n if (programName == null) {\n throw new CoreException(\"Missing DefaultOperatorAction property 'programName'.\");\n }\n dialogTitle = getValue(config, \"dialogTitle\", programName);\n xmlFileName = getValue(config, \"xmlFileName\", ParamUtils.NO_XML_FILE_SPECIFIED);\n //multiIFile = getValue(config, \"multiIFile\", \"false\");\n \n super.configure(config);\n if (programName.equals(OCSSW.OCSSW_INSTALLER)) {\n OCSSW.checkOCSSW();\n }\n super.setEnabled(programName.equals(OCSSW.OCSSW_INSTALLER) || OCSSW.isOCSSWExist());\n }",
"public XMLDatabaseConnector()\n\t{\n\t\t\n\t\tProperties prop = new Properties();\n\t\t\n\t\t InputStream inputStream = this.getClass().getClassLoader()\n\t .getResourceAsStream(\"config.properties\");\n\t\t \n \ttry {\n //load a properties file\n \t\tprop.load(inputStream);\n \n //get the property value and print it out\n \t\tsetURI(prop.getProperty(\"existURI\"));\n \t\tusername = prop.getProperty(\"username\");\n \t\tpassword = prop.getProperty(\"password\");\n \n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n }\n\t}",
"public static void initConfig()\r\n {\r\n try\r\n {\r\n ip = ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_IP\");\r\n localIP = ConfigProperties.getKey(ConfigList.BASIC, \"Local_IP\");\r\n port = Integer.parseInt(ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_PORT\"));\r\n }\r\n catch (NumberFormatException e)\r\n {\r\n log.error(\"read properties failed --\", e);\r\n }\r\n }",
"private void setConnection (TwGateway newCxn) {\n boolean connected = (newCxn != null);\n closeXn.setEnabled (connected);\n openXn.setEnabled (!connected);\n getWksp.setEnabled (connected);\n KbWorkspace[] showingWorkspaces = multiWkspView.getWorkspaces ();\n System.out.println (\"Removing \" + showingWorkspaces.length + \" workspaces!\");\n for (int i=0; i<showingWorkspaces.length; i++)\n multiWkspView.removeWorkspace (showingWorkspaces[i]);\n Rectangle frameRect = getCurrentFrame().getBounds ();\n getCurrentFrame().setBounds(frameRect.x, frameRect.y,\n\t\t\t\tframeRect.width + 1, frameRect.height + 1);\n connection = newCxn;\n }",
"protected PKCS11Connector() { /* left empty intentionally */\n }",
"private SystemPropertiesRemoteSettings() {}",
"public void initProxy() {\n\n System.setProperty(\"http.proxyHost\", \"199.101.97.159\"); // set proxy server\n System.setProperty(\"http.proxyPort\", \"60099\"); // set proxy port\n //System.setProperty(\"http.proxyUser\", authUser);\n //System.setProperty(\"http.proxyPassword\", authPassword);\n Authenticator.setDefault(\n new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\n authUser, authPassword.toCharArray());\n }\n }\n );\n }",
"public OpenToLANConfig() {\n this.port = 0;\n this.delayBetweenPings = Duration.of(1500, TimeUnit.MILLISECOND);\n this.delayBetweenEvent = Duration.of(30, TimeUnit.SECOND);\n }",
"public synchronized static void initConfig() {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tinitConfig(initialValues);\n\t}",
"public DirectProjectCPConfigServiceImpl() {\r\n // Empty\r\n }",
"private void setDefaultOnRawConn(Connection rawConn) {\r\n try {\r\n rawConn.setAutoCommit(poolConfig.isDefaultAutoCommit());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})failed to set default on executing 'setAutoCommit',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})failed to set default on executing 'setAutoCommit'\", poolName);\r\n }\r\n\r\n try {\r\n rawConn.setTransactionIsolation(poolConfig.getDefaultTransactionIsolationCode());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({}))failed to set default on executing to 'setTransactionIsolation',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({}))failed to set default on executing to 'setTransactionIsolation'\", poolName);\r\n }\r\n\r\n try {\r\n rawConn.setReadOnly(poolConfig.isDefaultReadOnly());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({}))failed to set default on executing to 'setReadOnly',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({}))failed to set default on executing to 'setReadOnly'\", poolName);\r\n }\r\n\r\n if (!isBlank(poolConfig.getDefaultCatalog())) {\r\n try {\r\n rawConn.setCatalog(poolConfig.getDefaultCatalog());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({}))failed to set default on executing to 'setCatalog',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({}))failed to set default on executing to 'setCatalog'\", poolName);\r\n }\r\n }\r\n\r\n //for JDK1.7 begin\r\n if (supportSchema && !isBlank(poolConfig.getDefaultSchema())) {//test schema\r\n try {\r\n rawConn.setSchema(poolConfig.getDefaultSchema());\r\n } catch (Throwable e) {\r\n supportSchema = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'schema',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'schema'\", poolName);\r\n }\r\n }\r\n\r\n if (supportNetworkTimeout) {//test networkTimeout\r\n try {//set networkTimeout\r\n this.networkTimeout = rawConn.getNetworkTimeout();\r\n if (networkTimeout < 0) {\r\n supportNetworkTimeout = false;\r\n commonLog.warn(\"BeeCP({})driver not support 'networkTimeout'\", poolName);\r\n } else {\r\n rawConn.setNetworkTimeout(this.getNetworkTimeoutExecutor(), networkTimeout);\r\n }\r\n } catch (Throwable e) {\r\n supportNetworkTimeout = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'networkTimeout',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'networkTimeout'\", poolName);\r\n }\r\n }\r\n\r\n if (this.supportIsValid) {//test isValid\r\n try {//test Connection.isValid\r\n if (rawConn.isValid(connectionTestTimeout)) {\r\n this.connectionTester = new ConnValidTester();\r\n } else {\r\n supportIsValid = false;\r\n commonLog.warn(\"BeeCP({})driver not support 'isValid'\", poolName);\r\n }\r\n } catch (Throwable e) {\r\n supportIsValid = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'isValid',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'isValid'\", poolName);\r\n\r\n Statement st = null;\r\n try {\r\n st = rawConn.createStatement();\r\n st.setQueryTimeout(connectionTestTimeout);\r\n } catch (Throwable ee) {\r\n supportQueryTimeout = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'queryTimeout',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'queryTimeout'\", poolName);\r\n } finally {\r\n if (st != null) oclose(st);\r\n }\r\n }\r\n }\r\n //for JDK1.7 end\r\n }",
"private void connect(String host, int port) throws ClassNotFoundException, SQLException, PropertyVetoException {\n\n cpds = new ComboPooledDataSource();\n cpds.setDriverClass(\"org.postgresql.Driver\"); //loads the jdbc driver\n String url = \"jdbc:postgresql://\"+ host + \":\" + port + \"/postgres?currentSchema=lectures\";\n cpds.setJdbcUrl(url);\n cpds.setUser(\"postgres\");\n cpds.setPassword(\"filip123\");\n }",
"public void setMxfSettings(MxfSettings mxfSettings) {\n this.mxfSettings = mxfSettings;\n }",
"private static void init() {\n System.setProperty(\"java.net.preferIPv4Stack\", \"true\");\r\n }",
"public void start() {\n synchronized (initLock) {\n\n try {\n connectionPool = new ConnectionPool(driver, serverURL, username,\n password, minConnections, maxConnections, connectionTimeout,\n mysqlUseUnicode);\n }\n catch (IOException e) {\n Log.error(e);\n }\n }\n }",
"protected void connect() {\n\t\treadProperties();\n\t\tif (validateProperties())\n\t\t\tjuraMqttClient = createClient();\n\t}",
"public void setConn(Connection conn) {this.conn = conn;}",
"public config() {\n initComponents();\n }",
"private void setSysProperties() {\n Properties sysProperties = System.getProperties();\n\n // SMTP properties\n sysProperties.put(\"mail.smtp.auth\", \"true\");\n sysProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n sysProperties.put(\"mail.smtp.host\", smtpHost);\n sysProperties.put(\"mail.smtp.port\", \"587\");\n\n //IMAP properties\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n\n // Credentials\n sysProperties.put(\"mail.user\", username);\n sysProperties.put(\"mail.password\", password);\n\n __logger.info(\"Set system properties\");\n }",
"public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}",
"private void initializeWithProviderConfiguration() {\n List<JRProvider> socialProviders = mSessionData.getSocialProviders();\n if (socialProviders == null || socialProviders.size() == 0) {\n JREngageError err = new JREngageError(\n \"Cannot load the Publish Activity, no social providers are configured.\",\n JREngageError.ConfigurationError.CONFIGURATION_INFORMATION_ERROR,\n JREngageError.ErrorType.CONFIGURATION_INFORMATION_MISSING);\n mSessionData.triggerPublishingDialogDidFail(err);\n return;\n }\n \n // Configure the properties of the UI\n mActivityObject.shortenUrls(new JRActivityObject.ShortenedUrlCallback() {\n public void setShortenedUrl(String shortenedUrl) {\n mShortenedActivityURL = shortenedUrl;\n \n if (mSelectedProvider == null) return;\n \n if (mSelectedProvider.getSocialSharingProperties().\n getAsBoolean(\"content_replaces_action\")) {\n updatePreviewTextWhenContentReplacesAction();\n } else {\n updatePreviewTextWhenContentDoesNotReplaceAction();\n }\n updateCharacterCount();\n }\n });\n createTabs();\n }",
"private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }",
"public void applyWebProxySettings() {\n boolean settingsChanged = false;\n boolean enablingProxy = false;\n Properties sysprops = System.getProperties();\n if (proxyHost != null) {\n settingsChanged = true;\n if (proxyHost.length() != 0) {\n traceSettingInfo();\n enablingProxy = true;\n sysprops.put(\"http.proxyHost\", proxyHost);\n String portString = Integer.toString(proxyPort);\n sysprops.put(\"http.proxyPort\", portString);\n sysprops.put(\"https.proxyHost\", proxyHost);\n sysprops.put(\"https.proxyPort\", portString);\n sysprops.put(\"ftp.proxyHost\", proxyHost);\n sysprops.put(\"ftp.proxyPort\", portString);\n if (nonProxyHosts != null) {\n sysprops.put(\"http.nonProxyHosts\", nonProxyHosts);\n sysprops.put(\"https.nonProxyHosts\", nonProxyHosts);\n sysprops.put(\"ftp.nonProxyHosts\", nonProxyHosts);\n }\n if(proxyUser!=null) {\n sysprops.put(\"http.proxyUser\", proxyUser);\n sysprops.put(\"http.proxyPassword\", proxyPassword);\n }\n } else {\n log(\"resetting http proxy\", Project.MSG_VERBOSE);\n sysprops.remove(\"http.proxyHost\");\n sysprops.remove(\"http.proxyPort\");\n sysprops.remove(\"http.proxyUser\");\n sysprops.remove(\"http.proxyPassword\");\n sysprops.remove(\"https.proxyHost\");\n sysprops.remove(\"https.proxyPort\");\n sysprops.remove(\"ftp.proxyHost\");\n sysprops.remove(\"ftp.proxyPort\");\n }\n }\n\n //socks\n if (socksProxyHost != null) {\n settingsChanged = true;\n if (socksProxyHost.length() != 0) {\n enablingProxy = true;\n sysprops.put(\"socksProxyHost\", socksProxyHost);\n sysprops.put(\"socksProxyPort\", Integer.toString(socksProxyPort));\n if (proxyUser != null) {\n //this may be a java1.4 thingy only\n sysprops.put(\"java.net.socks.username\", proxyUser);\n sysprops.put(\"java.net.socks.password\", proxyPassword);\n }\n\n } else {\n log(\"resetting socks proxy\", Project.MSG_VERBOSE);\n sysprops.remove(\"socksProxyHost\");\n sysprops.remove(\"socksProxyPort\");\n sysprops.remove(\"java.net.socks.username\");\n sysprops.remove(\"java.net.socks.password\");\n }\n }\n\n\n //for Java1.1 we need to tell the system that the settings are new\n if (settingsChanged &&\n JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n legacyResetProxySettingsCall(enablingProxy);\n }\n }",
"public CustomPdp() throws Exception {\r\n\r\n }",
"public synchronized static void initConfig(ITestContext context) {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tfor (CatPawConfigProperty prop : CatPawConfigProperty.values()) {\n\t\t\t// Check if parameter is here\n\t\t\tString newValue = context.getCurrentXmlTest().getAllParameters().get(prop.getName());\n\t\t\tif (newValue != null && newValue != \"\") {\n\t\t\t\tinitialValues.put(prop, newValue);\n\t\t\t}\n\t\t}\n\t\tinitConfig(initialValues);\n\n\n\t}",
"@Override\n protected void createConfigurationFile(Properties connectionProperties)\n {\n connectionPoolConfiguration.setDriverClassName(CPTADatabaseConstants.DB_POSTGRES_DRIVER_PROPERTY_VALUE);\n \n // Let super class do the rest\n super.createConfigurationFile(connectionProperties);\n }",
"public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }",
"private static void loadConfig() throws IOException { \t\t\n final InputStream input = Main.class.getResourceAsStream(\"/configuration.properties\");\n final Properties prop = new Properties();\n \n prop.load(input);\n System.out.println(\"Configuration loaded:\"); \n\n // PostgreSQL server access config\n dbmsUrl = prop.getProperty(\"dbms_url\");\n System.out.println(\"- dbms_url: \" + dbmsUrl);\n\n dbmsUser = prop.getProperty(\"dbms_user\");\n System.out.println(\"- dbms_user: \" + dbmsUser);\n\n userPw = prop.getProperty(\"user_pw\"); \n System.out.println(\"- user_pw: \" + userPw);\n\n\n // Benchmarks config\n noTransactions = Integer.parseInt(prop.getProperty(\"no_transactions\"));\n System.out.println(\"- no_transactions: \" + noTransactions);\n\n noStatementsPerTransaction = Integer.parseInt(prop.getProperty(\"no_statements_per_transaction\")); \n System.out.println(\"- no_statements_per_transaction: \" + noStatementsPerTransaction);\n\n noSelectStatements = Integer.parseInt(prop.getProperty(\"no_select_statements\")); \n System.out.println(\"- no_select_statements: \" + noSelectStatements + \"\\n\");\n\n input.close();\n }",
"protected void setConnectionInformation() throws IOException\n {\n StorageHelper.setConnectionInformation(conf);\n if (System.getenv(StorageHelper.PIG_INPUT_FORMAT) != null)\n inputFormatClass = getFullyQualifiedClassName(System.getenv(StorageHelper.PIG_INPUT_FORMAT));\n else\n inputFormatClass = DEFAULT_INPUT_FORMAT;\n if (System.getenv(StorageHelper.PIG_OUTPUT_FORMAT) != null)\n outputFormatClass = getFullyQualifiedClassName(System.getenv(StorageHelper.PIG_OUTPUT_FORMAT));\n else\n outputFormatClass = DEFAULT_OUTPUT_FORMAT;\n if (System.getenv(PIG_ALLOW_DELETES) != null)\n allow_deletes = Boolean.parseBoolean(System.getenv(PIG_ALLOW_DELETES));\n }",
"public DefaultConnectionProvider() {\n loadProperties();\n }",
"public static void initTransportSettings()\n\t{\n\t\tString sql = \"DELETE FROM USER_TRANSPORT\";\n\t\tlogger.info(String.format(\"Remove Transport configuraiton from DB: %s\",sql));\n\t\t\n\t\tDBUtil.executeSQL(sql);\n\t\t\n\t\t//Insert FTP settings to DB.\n\t\tStringBuilder sqlBuilder = new StringBuilder();\n\t\tsqlBuilder.append(\"INSERT INTO USER_TRANSPORT(ID, FTPURL, FTPUSERNAME, FTPPASSWORD, FTPSAVEPATH, HTTPURL, HTTPUSERNAME, HTTPPASSWORD, USERID) \");\n\t\tsqlBuilder.append(\"VALUES(%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d)\");\n\t\t\n\t\tsql = String.format(sqlBuilder.toString(), 1 , \n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"ftp_url\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"ftp_username\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"ftp_password\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"ftp_savepath\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"http_url\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"http_username\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"http_password\"),\n\t\t\t\t\t\t\t1\n\t\t\t\t\t\t\t);\n\t\t\n\t\tlogger.info(String.format(\"Insert Transport conf to DB: %s\", sql));\n\t\t\n\t\tDBUtil.executeSQL(sql);\n\t}",
"private void initPortSettings() {\n\n\t\tList<PortSpecification> portSpecification = XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getPort().getPortSpecification();\n\n\t\tportDetails = new ArrayList<PortDetails>();\n\t\tports = new HashMap<String, Port>();\n\t\tPortTypeEnum pEnum = null;\n\t\tPortAlignmentEnum pAlignEnum = null;\n\n\t\tfor (PortSpecification p : portSpecification) {\n\t\t\tpAlignEnum = PortAlignmentEnum.fromValue(p.getPortAlignment().value());\n\t\t\tsetPortCount(pAlignEnum, p.getNumberOfPorts(), p.isChangePortCountDynamically());\n\t\t\tfor(PortInfo portInfo :p.getPort()){\n\t\t\t\tString portTerminal = portInfo.getPortTerminal();\n\t\t\t\tpEnum = PortTypeEnum.fromValue(portInfo.getTypeOfPort().value());\n\t\t\t\t\n\t\t\t\tPort port = new Port(portInfo.getLabelOfPort(),\n\t\t\t\t\t\tportTerminal, this, getNumberOfPortsForAlignment(pAlignEnum), pEnum\n\t\t\t\t\t\t\t\t, portInfo.getSequenceOfPort(), p.isAllowMultipleLinks(), p.isLinkMandatory(), pAlignEnum);\n\t\t\t\tlogger.trace(\"Adding portTerminal {}\", portTerminal);\n\t\t\t\t\n\t\t\t\tports.put(portTerminal, port);\n\t\t\t}\n\t\t\tPortDetails pd = new PortDetails(ports, pAlignEnum, p.getNumberOfPorts(), p.isChangePortCountDynamically(), p.isAllowMultipleLinks(), p.isLinkMandatory());\n\t\t\tportDetails.add(pd);\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void configureWifi(String ssid, String pwd) throws RemoteException {\n\t model.execute(\"CONNECT\", ssid, pwd);\n\t}",
"public void setup(){\n this.cluster = Cluster.builder().addContactPoint(\"127.0.0.1\").build();\n this.session = this.cluster.connect(\"demo\");\n }",
"private void initText() {\n// urlText.setText(jPAConfig.getUrl());\n// userText.setText(jPAConfig.getUser());\n// dbNameText.setText(jPAConfig.getDbName());\n// portText.setText(jPAConfig.getPort());\n// passText.setText(jPAConfig.getPassword());\n }",
"public abstract void init(OwNetworkContext context_p, OwXMLUtil networkSettings_p) throws Exception;",
"public MyProxyLogon() {\n super();\n host = System.getenv(\"MYPROXY_SERVER\");\n if (host == null) {\n host = \"myproxy.teragrid.org\";\n }\n String portString = System.getenv(\"MYPROXY_SERVER_PORT\");\n if (portString != null) {\n port = Integer.parseInt(portString);\n }\n username = System.getProperty(\"user.name\");\n }",
"public static void initSmtpSettings()\n\t{\n\t\tString sql = \"DELETE FROM SYSTEM_CONFIGURATION\";\n\t\tlogger.info(String.format(\"Remove smtp configuration from DB: %s\", sql));\n\t\t\n\t\tDBUtil.executeSQL(sql);\n\t\t\n\t\t//Insert SMTP settings to DB.\n\t\tStringBuilder sqlBuilder = new StringBuilder();\n\t\tsqlBuilder.append(\"INSERT INTO SYSTEM_CONFIGURATION(ID, EMAILADRSS, SMTPSERVER, SMTPPORT, MAILUSER, PASSWORD, SENDINGREPEAT, USERID) \");\n\t\tsqlBuilder.append(\"VALUES(%d, '%s', '%s', '%s', '%s', '%s', %d, %d)\");\n\n\t\tsql = String.format(sqlBuilder.toString(), 1, CommonUtil.getPropertyValue(\"smpt_sender\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"smpt_server\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"smpt_port\"),\n\t\t\t\t\t\t\t\"\", \"\", 1, 1);\n\t\t\n\t\tlogger.info(String.format(\"Insert smtp conf to DB: %s\", sql));\n\t\t\n\t\tDBUtil.executeSQL(sql);\n\t}",
"public void setPanelConfiguration(){\n\t\tthis.panelConfiguration.setStructurePanel();\n\t\tthis.panelConfiguration.setPanelConfiguration();\n\t}",
"public void setConnectionConfiguration(ConnectionConfiguration newcc, boolean newAccount){\n\t\tconnectionconfig = newcc;\n\t\tconfig_ok = true;\n\t\tString errormessage = \"\";\n\t\tif (newAccount){\n\t\t\ttry {\n\t\t\t\tchatConnection.createAccount(newcc);\n\t\t\t} catch (Exception e) {\n\t\t\t\tconfig_ok = false;\n\t\t\t\terrormessage = e.getMessage();\n\t\t\t}\n\t\t}\n\t\tif (config_ok){\n\t\t\t\n\t\t\tgoOffline();\n\t\t\tgoOnline();\n\t\t}\n\t\telse\n\t\t\tcreateConnectionConfigurationDialog(errormessage);\n\t\tmainWindow.updateTitle();\n\t}",
"protected void setup(IWorkerPoolConfiguration newConfig) {\n log.debug(\"Starting initial configuration\");\n \n pool = new ScheduledThreadPoolExecutor(newConfig.getWorkers().size());\n workers = new ArrayList<RunningWorkerInstance>();\n \n for (IWorkerConfiguration newWorker : newConfig.getWorkers()) {\n addWorker(newWorker);\n }\n \n // Check if pool size is still sufficient\n int s = workers.size();\n if (s > pool.getCorePoolSize()) \n pool.setCorePoolSize(s);\n }",
"public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n System.err.println(\"property file '\" + propFileName + \"' not found in the classpath\");\n }\n this.jdbc = prop.getProperty(\"jdbc\");\n this.host = prop.getProperty(\"host\");\n this.port = prop.getProperty(\"port\");\n this.database = prop.getProperty(\"database\");\n this.user = prop.getProperty(\"user\");\n this.password = prop.getProperty(\"password\");\n // this.sslFooter = prop.getProperty(\"sslFooter\");\n } catch (Exception e) {\n System.err.println(\"can't read property file\");\n }\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void setupTask() {\n\t\tif (!hasInternetConnection()) {\n\t\t\tdlgNoInet.show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tsetupMessageHandler();\n\t\t\n\t\t// Activate text box if user is logged in.\n\t\tString userid = checkLogin();\n\t\tLog.d(\"TIMER\", \"User logged in: \" + userid);\n\t\tif (userid != null && userid.length() > 0 && etMessage != null) {\n\t\t\tsetupSendMessageListener();\n\t\t\tetMessage.setEnabled(true);\n\t\t\thideVirtualKeyboard();\n\t\t}\n\t\t\n\t\t// Setup the message cursor object.\n\t\tsetupMessageCursor();\n\n\t\t// Start message listener if base url is set.\n\t\tstartMessageListener();\n\t}"
] | [
"0.63185275",
"0.6018479",
"0.58772004",
"0.5739549",
"0.5690781",
"0.56890976",
"0.5585405",
"0.5552163",
"0.5477027",
"0.54688424",
"0.5412599",
"0.53713787",
"0.5350831",
"0.53353256",
"0.5276027",
"0.5269233",
"0.5264464",
"0.5263095",
"0.5220014",
"0.51796216",
"0.51786757",
"0.51507527",
"0.51396644",
"0.5139371",
"0.5110769",
"0.5097102",
"0.5090394",
"0.5074142",
"0.506942",
"0.50663143",
"0.50597143",
"0.5057884",
"0.5053317",
"0.50503004",
"0.5041112",
"0.50395733",
"0.5036543",
"0.50300395",
"0.5028757",
"0.50215405",
"0.50177974",
"0.5017357",
"0.49846172",
"0.49788335",
"0.4975353",
"0.49529555",
"0.49461547",
"0.49454138",
"0.49356303",
"0.4935459",
"0.4930005",
"0.4914497",
"0.49115685",
"0.49102068",
"0.49075973",
"0.48968711",
"0.4895646",
"0.48944658",
"0.48735058",
"0.48691824",
"0.4862682",
"0.48610795",
"0.48516703",
"0.48508638",
"0.48407194",
"0.48246598",
"0.48177236",
"0.48152864",
"0.4814933",
"0.48139706",
"0.48126435",
"0.48083442",
"0.48034143",
"0.4803004",
"0.48016956",
"0.4796639",
"0.4795143",
"0.47950163",
"0.47929567",
"0.4792518",
"0.47902632",
"0.47888896",
"0.478871",
"0.4784811",
"0.47802767",
"0.4779558",
"0.47777587",
"0.47737807",
"0.4773375",
"0.47704962",
"0.47682837",
"0.47647974",
"0.47644702",
"0.4762636",
"0.47625926",
"0.47595772",
"0.47568208",
"0.4751944",
"0.47499692",
"0.4749039"
] | 0.72170484 | 0 |
addPresenceListener Set the presence listener for all users available will handle here | private void addPresenceListener() {
StanzaTypeFilter presenceFilter = new StanzaTypeFilter(Presence.class);
connection.addAsyncStanzaListener(new StanzaListener() {
@Override
public void processPacket(Stanza packet) throws SmackException.NotConnectedException {
Presence presence = (Presence) packet;
String username = presence.getFrom();
username = TextUtils.split(username, "@")[0];
String status = Presence.Type.available.equals(((Presence) packet).getType())
? "online" : "offline";
if (rosterListener != null) {
rosterListener.presenceCallback(username, status);
}
}
}, presenceFilter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addParticipantPresenceListener(\n AdHocChatRoomParticipantPresenceListener listener)\n {\n synchronized (memberListeners)\n {\n if (!memberListeners.contains(listener))\n memberListeners.add(listener);\n }\n }",
"private void listenOnlineUsers() {\n final String username = MyAccount.getInstance().getName();\n new Subscriber(Constants.ONLINE_TOPIC, username)\n .setNewMessageListener(new SubscribedTopicListener() {\n @Override\n public void onReceive(DataTransfer message) {\n // Get current user in chat box\n ChatBox currentChatBox = getCurrentChat();\n final String current = currentChatBox != null ? currentChatBox.getTarget() : null;\n\n boolean isCurrentOnline = current == null;\n\n // Clear all exist chat item\n lvUserItem.getItems().clear();\n\n // Retrieve online users\n List<String> onlineUsers = (List<String>) message.data;\n\n // Clear all offline user chat messages in MessageManager\n MessageManager.getInstance().clearOffline(onlineUsers);\n MessageSubscribeManager.getInstance().clearOffline(onlineUsers);\n\n for (String user : onlineUsers) {\n // Add user (not your self) into listview\n if (!username.equals(user)) {\n ChatItem item = new UserChatItem();\n item.setName(user);\n lvUserItem.getItems().add(item);\n\n // Check whether current user still online\n if (user.equals(current))\n isCurrentOnline = true;\n else {\n String topic = String.format(\"chat/%s\", user);\n if (!MessageSubscribeManager.getInstance().containsKey(topic)) {\n // with other user listen message\n Subscriber subscriber = subscribeMessages(username, topic);\n MessageSubscribeManager.getInstance().put(topic, subscriber);\n }\n }\n }\n }\n\n // In case current user offline\n // Clear chat box\n if (!isCurrentOnline) {\n clearChatBox();\n }\n }\n })\n .listen();\n }",
"void addPresenceEvent(Presence presence)\n {\n storedPresences.add(presence);\n }",
"@Override\n\t\t\t\tpublic void notifyPresenceReceived(LinphoneCore lc, LinphoneFriend lf) {\n\t\t\t\t\t\n\t\t\t\t}",
"public void notifyNotifyPresenceReceived(Friend lf);",
"void firePresenceStatusChanged(Presence presence)\n {\n if(contactChangesListener != null)\n contactChangesListener.firePresenceStatusChanged(presence);\n }",
"@Override\n\tpublic void notifyPresenceReceived(LinphoneCore lc, LinphoneFriend lf) {\n\t\t\n\t}",
"@Override\n public void presenceChanged(Presence presence)\n {\n firePresenceStatusChanged(presence);\n }",
"private void handlePresenceEvent(Event presenceEvent) {\n // Presence event\n if (Event.EVENT_TYPE_PRESENCE.equals(presenceEvent.getType())) {\n User userPresence = JsonUtils.toUser(presenceEvent.getContent());\n\n // use the sender by default\n if (!TextUtils.isEmpty(presenceEvent.getSender())) {\n userPresence.user_id = presenceEvent.getSender();\n }\n\n User user = mStore.getUser(userPresence.user_id);\n\n if (user == null) {\n user = userPresence;\n user.setDataHandler(this);\n } else {\n user.currently_active = userPresence.currently_active;\n user.presence = userPresence.presence;\n user.lastActiveAgo = userPresence.lastActiveAgo;\n }\n\n user.setLatestPresenceTs(System.currentTimeMillis());\n\n // check if the current user has been updated\n if (mCredentials.userId.equals(user.user_id)) {\n // always use the up-to-date information\n getMyUser().displayname = user.displayname;\n getMyUser().avatar_url = user.getAvatarUrl();\n\n mStore.setAvatarURL(user.getAvatarUrl(), presenceEvent.getOriginServerTs());\n mStore.setDisplayName(user.displayname, presenceEvent.getOriginServerTs());\n }\n\n mStore.storeUser(user);\n onPresenceUpdate(presenceEvent, user);\n }\n }",
"public void setPresence(int value) {\n this.presence = value;\n }",
"public interface WhiteboardSessionPresenceListener\n extends EventListener\n{\n /**\n * Called to notify interested parties that a change in our presence in\n * a white-board has occured. Changes may include us being joined,\n * left, dropped.\n * @param evt the <tt>WhiteboardSessionPresenceChangeEvent</tt> instance\n * containing the session and the type, and reason of the change\n */\n public void whiteboardSessionPresenceChanged(\n WhiteboardSessionPresenceChangeEvent evt);\n}",
"public void notifyAllFriends(PresenceModel presence);",
"public void addUserLoggedInListener(IUserLoggedInListener listener) {\r\n \t\tthis.userConnectedListener.add(listener);\r\n \t}",
"public void whiteboardSessionPresenceChanged(\n WhiteboardSessionPresenceChangeEvent evt);",
"void firePresenceStatusChanged(Presence presence)\n {\n if(storeEvents && storedPresences != null)\n {\n storedPresences.add(presence);\n return;\n }\n\n try\n {\n Jid userID = presence.getFrom().asBareJid();\n OperationSetMultiUserChat mucOpSet =\n parentProvider.getOperationSet(\n OperationSetMultiUserChat.class);\n if(mucOpSet != null)\n {\n List<ChatRoom> chatRooms\n = mucOpSet.getCurrentlyJoinedChatRooms();\n for(ChatRoom chatRoom : chatRooms)\n {\n if(chatRoom.getName().equals(userID.toString()))\n {\n userID = presence.getFrom();\n break;\n }\n }\n }\n\n if (logger.isDebugEnabled())\n logger.debug(\"Received a status update for buddy=\" + userID);\n\n // all contact statuses that are received from all its resources\n // ordered by priority(higher first) and those with equal\n // priorities order with the one that is most connected as\n // first\n TreeSet<Presence> userStats = statuses.get(userID);\n if(userStats == null)\n {\n userStats = new TreeSet<>(new Comparator<Presence>()\n {\n public int compare(Presence o1, Presence o2)\n {\n int res = o2.getPriority() - o1.getPriority();\n\n // if statuses are with same priorities\n // return which one is more available\n // counts the JabberStatusEnum order\n if(res == 0)\n {\n res = jabberStatusToPresenceStatus(\n o2, parentProvider).getStatus()\n - jabberStatusToPresenceStatus(\n o1, parentProvider).getStatus();\n // We have run out of \"logical\" ways to order\n // the presences inside the TreeSet. We have\n // make sure we are consinstent with equals.\n // We do this by comparing the unique resource\n // names. If this evaluates to 0 again, then we\n // can safely assume this presence object\n // represents the same resource and by that the\n // same client.\n if(res == 0)\n {\n res = o1.getFrom().compareTo(\n o2.getFrom());\n }\n }\n\n return res;\n }\n });\n statuses.put(userID, userStats);\n }\n else\n {\n Resourcepart resource = presence.getFrom().getResourceOrEmpty();\n\n // remove the status for this resource\n // if we are online we will update its value with the new\n // status\n for (Iterator<Presence> iter = userStats.iterator();\n iter.hasNext();)\n {\n Presence p = iter.next();\n if (p.getFrom().getResourceOrEmpty().equals(resource))\n {\n iter.remove();\n }\n }\n }\n\n if(!jabberStatusToPresenceStatus(presence, parentProvider)\n .equals(\n parentProvider\n .getJabberStatusEnum()\n .getStatus(JabberStatusEnum.OFFLINE)))\n {\n userStats.add(presence);\n }\n\n Presence currentPresence;\n if (userStats.size() == 0)\n {\n currentPresence = presence;\n\n /*\n * We no longer have statuses for userID so it doesn't make\n * sense to retain (1) the TreeSet and (2) its slot in the\n * statuses Map.\n */\n statuses.remove(userID);\n }\n else\n currentPresence = userStats.first();\n\n ContactJabberImpl sourceContact\n = ssContactList.findContactById(userID);\n\n if (sourceContact == null)\n {\n logger.warn(\"No source contact found for id=\" + userID);\n return;\n }\n\n // statuses may be the same and only change in status message\n sourceContact.setStatusMessage(currentPresence.getStatus());\n\n updateContactStatus(\n sourceContact,\n jabberStatusToPresenceStatus(\n currentPresence, parentProvider));\n }\n catch (IllegalStateException | IllegalArgumentException ex)\n {\n logger.error(\"Failed changing status\", ex);\n }\n }",
"public int getPresenceStatus(boolean onlineStatus, java.lang.String userAvailability, java.util.Map allValues) throws android.os.RemoteException;",
"public void setPresenceModel(PresenceModel presence);",
"public static void addUserOnline(String name)\n {\n onList.add(name);\n }",
"@Override\n public void presenceChanged(Presence presence) {\n String user = new JID(presence.getFrom()).getBareJID().toString();\n\n ContactInfo info = contactMap.get(user);\n if (info != null) {\n if (presence.getType() == Presence.Type.available) {\n info.setOnline(true);\n } else {\n info.setOnline(false);\n }\n\n Runnable action = new Runnable() {\n @Override\n public void run() {\n treeView.collapseRow(2);\n treeView.expandRow(2);\n }\n };\n\n UIUtil.invokeAndWaitIfNeeded(action);\n }\n }",
"public void createContactPhotoPresenceListener()\n {\n // Registers the listener.\n parentProvider.getConnection().addAsyncStanzaListener(\n new StanzaListener()\n {\n @Override\n public void processStanza(Stanza packet)\n {\n // Calls the parser to manages this presence packet.\n parseContactPhotoPresence(packet);\n }\n },\n // Creates a filter to only listen to presence packet with the\n // element name \"x\" and the namespace \"vcard-temp:x:update\".\n new AndFilter(new StanzaTypeFilter(Presence.class),\n new StanzaExtensionFilter(\n VCardTempXUpdatePresenceExtension.ELEMENT_NAME,\n VCardTempXUpdatePresenceExtension.NAMESPACE)\n )\n );\n }",
"public void addUserVenuesListener(long userId) {\r\n\tStatusListener listener = new StatusListener() { \r\n\t\t@Override public void onStatus(Status status) {\r\n\t\t\t// If the shutdown time is after the current time, record the tweet, otherwise close the connection\r\n\t\t\tif (Calendar.getInstance().getTime().before( shutdownTime.getTime() )) {\r\n\t\t\t\ttweets.add(status);\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tLOGGER.log(Level.FINE, \"Shutting down Twitter stream..\");\r\n\t\t\t\tclearLists();\r\n\t\t\t\tshutdown = true;\r\n\t\t\t\ttwitterStream.shutdown();\r\n\t\t\t}\r\n\t\t} \r\n\t\t@Override public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {} \r\n\t\t@Override public void onTrackLimitationNotice(int numberOfLimitedStatuses) {} \r\n\t\t@Override public void onScrubGeo(long userId, long upToStatusId) {} \r\n\t\t@Override public void onStallWarning(StallWarning warning) {}\r\n\t\t@Override public void onException(Exception ex) { ex.printStackTrace(); }\r\n\t\t};\r\n\t\ttwitterStream.addListener(listener);\r\n\t\t\r\n\t\t// Filter the listener to tweets from the given user\r\n\t\tint count = 0;\r\n\t\tlong[] idToFollow = new long[1];\r\n\t\tidToFollow[0] = userId; \r\n\t\tString[] stringsToTrack = null;\r\n\t\tdouble[][] locationsToTrack = null;\r\n\t\ttwitterStream.filter(new FilterQuery(count, idToFollow, stringsToTrack, locationsToTrack));\r\n\t}",
"public interface ServicePresenceListener {\n\n\tvoid updateComponentServices(\n\t\t\tfinal ServiceProto.ComponentRef componentRef,\n\t\t\tfinal Multimap<ServiceProto.ServiceRef, String> services,\n\t\t\tfinal Multimap<ServiceProto.ServiceRef, Integer> serviceFlags);\n\n}",
"void AddUserListener(String uid, final UserResult result);",
"private void notifyUserLoggedInListener(UserLoggedInEvent event) {\r\n \t\tfor (IUserLoggedInListener listener : this.userConnectedListener) {\r\n \t\t\tlistener.userLoggedIn(event);\r\n \t\t}\r\n \t}",
"public List<PresenceListener> getPresenceListeners( CommunityService communityService ) {\n List<PresenceListener> listeners = new ArrayList<PresenceListener>();\n listeners.add( presenceRecordService );\n return Collections.unmodifiableList( listeners );\n }",
"public void providerStatusChanged(ProviderPresenceStatusChangeEvent evt);",
"public static void aviUsers() {\n\t\tsendNotification();\r\n\t}",
"public void handleFriendsUpdateReceived(SessionFriendEvent event) {\n \t\tfor(int i = 0; i < getPresenceListeners().size(); i++) {\n \t\t\tIPresenceListener l = (IPresenceListener) getPresenceListeners().get(i);\n \t\t\tID from = makeIDFromName(event.getFrom());\n \t\t\tIPresence presence = createPresence(from.getName());\n \t\t\tl.handlePresence(from, presence);\n \t\t}\n \t}",
"public void addChatListener(ChatListener listener){\r\n super.addChatListener(listener);\r\n\r\n if (listenerList.getListenerCount(ChatListener.class) == 1){\r\n setDGState(Datagram.DG_PERSONAL_TELL, true);\r\n setDGState(Datagram.DG_PERSONAL_QTELL, true);\r\n setDGState(Datagram.DG_SHOUT, true);\r\n setDGState(Datagram.DG_CHANNEL_TELL, true);\r\n setDGState(Datagram.DG_CHANNEL_QTELL, true);\r\n setDGState(Datagram.DG_KIBITZ, true);\r\n }\r\n }",
"public interface ProviderPresenceStatusListener extends java.util.EventListener\n{\n /**\n * The property name of PropertyChangeEvents announcing changes in our\n * status message.\n */\n public static final String STATUS_MESSAGE = \"StatusMessage\";\n\n /**\n * The method is called by a ProtocolProvider implementation whenever\n * a change in the presence status of the corresponding provider had\n * occurred.\n * @param evt ProviderStatusChangeEvent the event describing the status\n * change.\n */\n public void providerStatusChanged(ProviderPresenceStatusChangeEvent evt);\n\n /**\n * The method is called by a ProtocolProvider implementation whenever a\n * change in the status message of the corresponding provider has occurred\n * and has been confirmed by the server.\n *\n * @param evt a PropertyChangeEvent with a STATUS_MESSAGE property name,\n * containing the old and new status messages.\n */\n public void providerStatusMessageChanged(PropertyChangeEvent evt);\n}",
"@Override\n public void onServiceConnected(ComponentName className,\n IBinder service) {\n WebsocketService.WebsocketBinder binder = (WebsocketService.WebsocketBinder) service;\n mService = binder.getService();\n mWebsocketServiceBound = true;\n\n if (mAvatarUrl == null) {\n mAvatarUrl = mService.getAvatarUrl();\n }\n\n mRoomName = mService.getCurrentRoomName();\n\n ArrayList<User> users = mService.getUsersInRoom(mRoomName.equals(getString(R.string.default_room)) ? \"\" : mRoomName);\n\n ArrayList<ChatItem> messages = mService.getMessages(mRoomName.equals(getString(R.string.default_room)) ? \"\" : mRoomName);\n\n if (messages != null && users != null) {\n HashMap<String, User> userMap = new HashMap<>();\n for (User user : users) {\n userMap.put(user.Id, user);\n }\n\n clearMessages();\n for (ChatItem chatItem : messages) {\n User user = userMap.get(chatItem.Id);\n if (user != null) {\n addMessage(chatItem, user, false);\n }\n else {\n // self\n user = userMap.get(chatItem.getRecipient());\n addMessage(chatItem, user, false);\n }\n\n }\n\n prepareChatDisplay();\n }\n }",
"public UserListListener() {\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 }",
"@Override\n public synchronized void isReady(String username, boolean ready) throws RemoteException {\n Player p = getPlayer(username);\n if (p != null) {\n p.setReady(ready);\n System.out.println(username + (ready ? \" no\" : \"\") + \" esta listo!\");\n }\n }",
"@Override\n\tpublic void onGetOnlineUsersDone(AllUsersEvent arg0) {\n\t\t\n\t}",
"public void notifyNotifyPresenceReceivedForUriOrTel(Friend lf, String uriOrTel, PresenceModel presenceModel);",
"UserPresenceStatus(String str) {\n this.graphQLName = str;\n }",
"public boolean requireAllPresenceValues() throws android.os.RemoteException;",
"void addListener(BotListener l);",
"private void showDetectedPresence(){\n AlertDialog.Builder box = new AlertDialog.Builder(SecurityActivity.this);\n box.setTitle(\"Attention!\")\n .setMessage(\"Le robot a détecté une présence\");\n\n box.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int which) {\n presenceDetectee.setValue(false);\n Intent intent = new Intent(SecurityActivity.this, JeuActivity.class);\n intent.putExtra(\"ROBOT\", robotControle);\n startActivity(intent);\n }\n }\n );\n box.show();\n //J'ai un problème de permissions, je la demande mais Android ne la demande pas...\n //Vibrator vib=(Vibrator)getSystemService(Context.VIBRATOR_SERVICE);\n //vib.vibrate(10000);\n }",
"public void registerListener(PPGListener listener){\n listeners.add(listener);\n }",
"@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\t\tAirtalkeeUserInfo.getInstance().setOnUserInfoListener(this);\n\t\tcheckBrodcast();\n\t}",
"@Override\r\n public void setListener() {\n input.setInputListener(this);\r\n\r\n //bind load more listener, it will track scroll up\r\n messagesAdapter.setLoadMoreListener(this);\r\n\r\n //bind on message long click\r\n messagesAdapter.setOnMessageLongClickListener(this);\r\n\r\n //get called when a incoming message come..\r\n socketManager.getSocket().on(\"updateChat\", new Emitter.Listener() {\r\n @Override\r\n public void call(Object... args) {\r\n String messageData = (String) args[0];\r\n Gson gson = new Gson();\r\n _Message message = gson.fromJson(messageData, _Message.class);\r\n\r\n //double check for valid room\r\n if (me.isValidRoomForUser(message.getRoomName())) {\r\n\r\n //sometime nodejs can broadcast own message so check and message should be view immediately\r\n\r\n if(!message.getUser().getId().equals(me.getId())) {\r\n //save new incoming message to realm\r\n saveOrUpdateNewMessageRealm(message);\r\n\r\n //check and save validity of room incoming user\r\n runOnUiThread(() -> {\r\n\r\n messagesAdapter.addToStart(message, true);\r\n });\r\n }\r\n\r\n }\r\n }\r\n });\r\n }",
"private void setSVListener() {\n svUsers.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n users.clear();\n app.mFirebaseRef.child(\"users\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot dsUser : dataSnapshot.getChildren()) {\n if ((dsUser.child(\"name\").getValue(String.class).toLowerCase().contains(svUsers.getQuery().toString().toLowerCase())\n || dsUser.child(\"email\").getValue(String.class).toLowerCase().contains(svUsers.getQuery().toString().toLowerCase()))\n && !app.user.getEmail().equals(dsUser.child(\"email\").getValue(String.class))){\n Map<String, String> user = new HashMap<String,String>();\n user.put(\"ID\", dsUser.getKey());\n user.put(\"name\", (String) dsUser.child(\"name\").getValue());\n user.put(\"email\", (String) dsUser.child(\"email\").getValue());\n user.put(\"photoURL\", (String) dsUser.child(\"photoURL\").getValue());\n users.add(user);\n }\n }\n populateUserList();\n }\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {\n Log.e(\"FIREBASE ERROR\", firebaseError.getMessage());\n populateUserList();\n }\n });\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n if (newText.isEmpty()) {\n users.clear();\n populateUserList();\n }\n return false;\n }\n });\n }",
"private SecurityListener(){\n Bukkit.getPluginManager().registerEvents(this, SteveSus.getInstance());\n }",
"public void addLobbyObserver(Observer obs)\r\n\t{\r\n\t\treceiver.addObserver(obs);\r\n\t}",
"void onUserAdded();",
"private void processServerPresence(PresenceMessage message) throws Exception {\n\n\t\tif (message.getFrom().getNode() == null) {\n\t\t\tprocessRayoNodePresence(message);\n\t\t} else {\n\t\t\t// find if presence is from a mixer or from a call\n\t\t\tGatewayMixer mixer = gatewayStorageService.getMixer(message.getFrom().getNode());\n\t\t\tif (mixer != null) {\n\t\t\t\tprocessMixerPresence(message, mixer);\n\t\t\t} else {\n\t\t\t\tprocessCallPresence(message);\n\t\t\t}\n\t\t}\n\t}",
"void addListener( AvailabilityListener listener );",
"private void setLstListener() {\n lstUsers.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> paret, final View viewClicked, int position, long id) {\n final String userID = ((TextView) viewClicked.findViewById(R.id.txtUserID)).getText().toString();\n final String username = ((TextView) viewClicked.findViewById(R.id.txtDisplayName)).getText().toString();\n AlertDialog.Builder builder = new AlertDialog.Builder(EventInvite.this);\n builder.setTitle(\"Invite user \" + username + \"?\");\n builder.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n app.mFirebaseRef.child(\"invites\").child(userID).child(app.activeEventID).setValue(app.user.getId());\n viewClicked.setVisibility(View.GONE);\n dialog.dismiss();\n }\n });\n builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.create().show();\n }\n });\n }",
"@Override\n public void initMp(String idComponent, ArrayList<_User> usersTargets) throws RemoteException, SQLException {\n for (_User u : usersTargets) {\n ListenerClient.get(u).onNewPrivateMessenger(idComponent);\n }\n }",
"@Override\n protected void onStart() {\n checkUserStatus();\n super.onStart();\n }",
"protected void registerListener() {\r\n\t\t// do nothing\r\n\t}",
"public void setProcentasePresence(double procentasePresence) {\n this.procentasePresence = procentasePresence;\n }",
"public interface ParticipantListener {\n void onParticipantsUpdated(UserDao provider, Collection<String> updatedParticipantIds);\n}",
"protected void installListeners() {\n Window topLevelWindows[] = EventQueueMonitor.getTopLevelWindows();\n if (topLevelWindows != null) {\n for (int i = 0; i < topLevelWindows.length; i++) {\n if (topLevelWindows[i] instanceof Accessible) {\n installListeners((Accessible) topLevelWindows[i]);\n }\n }\n }\n }",
"@Override\n protected void onStart() {\n checkUserStatus();\n\n super.onStart();\n }",
"protected void installListeners() {\n\n\t}",
"protected void installListeners() {\n\t}",
"public List<UserPresence> putUsersPresencesBulk(List<UserPresence> body) throws IOException, ApiException {\n return putUsersPresencesBulk(createPutUsersPresencesBulkRequest(body));\n }",
"public void addListener(IEpzillaEventListner listener)\n\t\t\tthrows RemoteException;",
"protected void installListeners() {\n }",
"protected void installListeners() {\n }",
"public void addGameListListener(GameListListener listener){\r\n super.addGameListListener(listener);\r\n\r\n if (listenerList.getListenerCount(GameListListener.class)==1){\r\n setDGState(Datagram.DG_GAMELIST_BEGIN, true);\r\n setDGState(Datagram.DG_GAMELIST_ITEM, true);\r\n }\r\n }",
"public int[] getSupportedPresenceStatus() throws android.os.RemoteException;",
"private void registerPrefsListener() {\n if (userSharedPreferences == null) {\n userSharedPreferences = Util.getUserSharedPreferences();\n }\n userPreferenceChangeListener = new SharedPreferences.OnSharedPreferenceChangeListener() {\n @Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n switch (key) {\n case HPIApp.Prefs.SHARED_KEY_TOTAL_STEPS:\n int steps = sharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_TOTAL_STEPS, 0);\n txtViewStepsCountToday.setText(String.valueOf(steps));\n break;\n case HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY:\n int milestones = sharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY, 0);\n txtViewMilestonesCountToday.setText(String.valueOf(milestones));\n case HPIApp.Prefs.SHARED_KEY_RUN_SERVICE:\n boolean runService = sharedPreferences.getBoolean(HPIApp.Prefs.SHARED_KEY_RUN_SERVICE, false);\n if (runService) {\n HPIApp.getAppContext().startService(new Intent(HPIApp.getAppContext(), StepService.class));\n } else {\n HPIApp.getAppContext().stopService(new Intent(HPIApp.getAppContext(), StepService.class));\n }\n default:\n break;\n }\n }\n };\n\n userSharedPreferences.registerOnSharedPreferenceChangeListener(userPreferenceChangeListener);\n }",
"public void acceptUser(long id, List<String> args) {\n\tif (!roomMembers.contains(id))\n\t roomMembers.add(id);\n }",
"@Override\n protected void onStart() {\n super.onStart();\n mFetchChatRoomListUseCase.registerListener(this);\n }",
"public void onUserOnline(RpcProxyBase proxy,Object cookie){\n\t}",
"public interface AddNewUserListener {\n /**\n * Invoked in AddNewUserTask.onPostExecute after the task has been completed.\n */\n void onUserAdded();\n }",
"@Override\n\tpublic void afterConnectionEstablished(WebSocketSession session) throws Exception {\n\t\tusers.add(session);\n\t\t//\n\t}",
"void storeEvents()\n {\n this.storedPresences = new ArrayList<Presence>();\n this.storeEvents = true;\n }",
"public interface FavoritesListener {\n\n public void favoritesChanged();\n\n public void notifyFetchFavoritesResult(boolean success);\n\n public void notifyAddFavoritesResult(String jid, boolean success);\n\n public void notifyRemoveFavoritesResult(String jid, boolean success);\n}",
"public abstract void updateStatus(PresenceType presenceType);",
"public void addOnPermissionStatusChangedListener(@NonNull OnPermissionStatusChangedListener listener) {\n this.onPermissionStatusChangedListeners.add(listener);\n }",
"private void setPlayerCallbacks() {\n universalPlayer.setPlayerStateListener(this);\n universalPlayer.setOnAutonomicTrackChangeCallback(new IOperationFinishCallback() {\n @Override\n public void operationFinished() {\n if (isAdded()) {\n playableMediaItem = UniversalPlayer.getInstance().getPlayingMediaItem();\n initPlayerUI();\n configurePlayer();\n initTrackNumbersSection();\n }\n }\n });\n\n IOperationFinishCallback playerFailedCallback = MediaUtils.getPlayerFailCallback(getActivity(), playableMediaItem);\n\n if (universalPlayer.isInErrorState) {\n playerFailedCallback.operationFinished();\n } else {\n universalPlayer.setOnPlayingFailedCallback(playerFailedCallback);\n }\n }",
"public void addStatusListener(StatusListener statusListener) {\n statusListeners.add(statusListener);\n }",
"public void addReadyListener(ComponentSystemEventListener listener) {\n listeners.add(listener);\n }",
"@Override\n public void addListener(StreamListener listener) {\n streamListeners.add(listener);\n }",
"void onListeningStarted();",
"public void InitListener()\n {\n Intent listener = new Intent(this, SmsListener.class);\n listener.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startService(listener);\n }",
"private void startListeningForFingerprint() {\n int i = this.mFingerprintRunningState;\n if (i == 2) {\n setFingerprintRunningState(3);\n } else if (i != 3) {\n int currentUser = getCurrentUser();\n if (isUnlockWithFingerprintPossible(currentUser)) {\n CancellationSignal cancellationSignal = this.mFingerprintCancelSignal;\n if (cancellationSignal != null) {\n cancellationSignal.cancel();\n }\n this.mFingerprintCancelSignal = new CancellationSignal();\n Slog.v(\"KeyguardUpdateMonitor\", \"startListeningForFingerprint()\");\n this.mFpm.authenticate(null, this.mFingerprintCancelSignal, 0, this.mFingerprintAuthenticationCallback, null, currentUser);\n setFingerprintRunningState(1);\n }\n }\n }",
"@Override\n\t\tpublic void onUserListSubscription(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}",
"private void friendsListBtnListener() {\n friendsListBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new FriendsListScreen(game));\n }\n });\n }",
"public int getPresence() {\n return presence;\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}",
"private void initAuthListener() {\n\n mAuthStateListener = new FirebaseAuth.AuthStateListener() {\n @Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n\n mExecutors.networkIO().execute(() -> {\n mFirebaseUser = firebaseAuth.getCurrentUser();\n mFirebaseUserLiveData.postValue(mFirebaseUser);\n if (mFirebaseUser != null) {\n initUserReference(mFirebaseUser);\n }\n });\n\n }\n };\n mFirebaseAuth.addAuthStateListener(mAuthStateListener);\n }",
"private void addUserAsMarker() {\n firestoreService.findUserById(new OnUserDocumentReady() {\n @Override\n public void onReady(UserDocument userDocument) {\n if(userDocument != null && userDocument.getUserid().equals(preferences.get(\"user_id\",0L))) {\n String id = preferences.get(DOCUMENT_ID, \"\");\n //Add current user to ListInBounds\n userDocumentAll.setDocumentid(id);\n userDocumentAll.setUsername(userDocument.getUsername());\n userDocumentAll.setPicture(userDocument.getPicture());\n userDocumentAll.setLocation(userDocument.getLocation());\n userDocumentAll.setFollowers(userDocument.getFollowers());\n userDocumentAll.setIsvisible(userDocument.getIsvisible());\n userDocumentAll.setIsprivate(userDocument.getIsprivate());\n userDocumentAll.setIsverified(userDocument.getIsverified());\n userDocumentAll.setUserid(userDocument.getUserid());\n userDocumentAll.setToken(userDocument.getToken());\n oneTimeAddableList.add(userDocumentAll);\n }\n }\n\n @Override\n public void onFail() {\n\n }\n\n @Override\n public void onFail(Throwable cause) {\n\n }\n });\n\n }",
"private void fireParticipantPresenceEvent(Contact member, String eventID,\n String eventReason)\n {\n AdHocChatRoomParticipantPresenceChangeEvent evt =\n new AdHocChatRoomParticipantPresenceChangeEvent(this, member,\n eventID, eventReason);\n\n if (logger.isTraceEnabled())\n logger.trace(\"Will dispatch the following ChatRoom event: \" + evt);\n\n Iterator<AdHocChatRoomParticipantPresenceListener> listeners = null;\n synchronized (memberListeners)\n {\n listeners =\n new ArrayList<AdHocChatRoomParticipantPresenceListener>(\n memberListeners).iterator();\n }\n\n while (listeners.hasNext())\n {\n AdHocChatRoomParticipantPresenceListener listener =\n listeners.next();\n\n listener.participantPresenceChanged(evt);\n }\n }",
"public void addListener(\n IListener listener\n )\n {listeners.add(listener);}",
"public interface OnUserBannedListener {\n\n void onUserBanned(String message);\n\n\n}",
"public void hasInternetListenerRegister(LifecycleOwner owner, Context ctx){\n NetworkConnection networkConnection = new NetworkConnection(ctx.getApplicationContext());\n networkConnection.observe(owner, status->{\n isConnected = status;\n });\n }",
"protected void bindListener() {\n locationManager= TencentLocationManager.getInstance(this);\n int error = locationManager\n .requestLocationUpdates(\n TencentLocationRequest\n .create().setInterval(3000)\n .setRequestLevel(\n TencentLocationRequest.REQUEST_LEVEL_ADMIN_AREA), this);\n\n switch (error) {\n case 0:\n Log.e(\"location\", \"成功注册监听器\");\n break;\n case 1:\n Log.e(\"location\", \"设备缺少使用腾讯定位服务需要的基本条件\");\n break;\n case 2:\n Log.e(\"location\", \"manifest 中配置的 key 不正确\");\n break;\n case 3:\n Log.e(\"location\", \"自动加载libtencentloc.so失败\");\n break;\n\n default:\n break;\n }\n }",
"void onUserAttentionAvailable() {\n if (!isPlaying()) {\n seekTo(mPauseTime);\n super.start();\n }\n }",
"public void addUsersAtVenueListener(String venueName, double latitude, double longitude, double radius) {\r\n\tStatusListener listener = new StatusListener() { \r\n\t\t@Override public void onStatus(Status status) {\r\n\t\t\t// If the shutdown time is after the current time, record the tweet, otherwise close the connection\r\n\t\t\tif (Calendar.getInstance().getTime().before( shutdownTime.getTime() )) {\r\n\t\t\t\ttweets.add(status);\t\t\r\n\t\t\t} else {\r\n\t\t\t\tLOGGER.log(Level.FINE, \"Shutting down Twitter stream..\");\r\n\t\t\t\tclearLists();\r\n\t\t\t\tshutdown = true;\r\n\t\t\t\ttwitterStream.shutdown();\r\n\t\t\t}\r\n\t\t} \r\n\t\t@Override public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {} \r\n\t\t@Override public void onTrackLimitationNotice(int numberOfLimitedStatuses) {} \r\n\t\t@Override public void onScrubGeo(long userId, long upToStatusId) {} \r\n\t\t@Override public void onStallWarning(StallWarning warning) {}\r\n\t\t@Override public void onException(Exception ex) { ex.printStackTrace(); }\r\n\t\t};\r\n\t\ttwitterStream.addListener(listener);\r\n\r\n\t\tint count = 0;\r\n\t\tlong[] idToFollow = null; \r\n\t\tString[] stringsToTrack = null;\r\n\t\tdouble[][] locationsToTrack = null;\r\n\t\t\r\n\t\t// If a geolocation is given, calculate the bounding box for that location and use as a filter,\r\n\t\t// otherwise listen for tweets that contain the venue name\r\n\t\tif (!Double.isNaN(latitude) && !Double.isNaN(longitude) && !Double.isNaN(radius)) {\r\n\t\t\t// Calculate geo bounding box from lat/lon coordinates and radius\r\n\t\t\tdouble oneKmDeg = 90/10001.965729;\r\n\t\t\tdouble radiusAdjustDeg = oneKmDeg*radius;\r\n\t\t\tdouble lat1 = latitude - radiusAdjustDeg;\r\n\t\t\tdouble lon1 = longitude - radiusAdjustDeg;\r\n\t\t\tdouble lat2 = latitude + radiusAdjustDeg;\r\n\t\t\tdouble lon2 = longitude + radiusAdjustDeg;\r\n\t\t\tlocationsToTrack = new double[][]{{lon1, lat1}, {lon2, lat2}};\r\n\t\t} else {\r\n\t\t\tstringsToTrack = new String[]{venueName};\r\n\t\t}\t\t\t\t\r\n\t\ttwitterStream.filter(new FilterQuery(count, idToFollow, stringsToTrack, locationsToTrack));\r\n\t}",
"private static void addUserToViewerList(String nick) {\r\n boolean writeNeeded = false;\r\n if (!db.contains(nick)) {\r\n db.newUser(nick);\r\n writeNeeded = true;\r\n }\r\n if (db.getUserLevel(nick) == UserLevel.NEW && TwitchAPI.isFollower(nick, channel)) {\r\n db.setUserLevel(nick, UserLevel.FOLLOWER);\r\n writeNeeded = true;\r\n }\r\n if (writeNeeded) {\r\n db.writeDatabase();\r\n }\r\n synchronized (CURRENT_VIEWERS) {\r\n if (!CURRENT_VIEWERS.contains(nick)) {\r\n CURRENT_VIEWERS.add(nick);\r\n }\r\n }\r\n }",
"public void addListener(UIEventListener uel) {\n this.listeners.add(uel);\n }",
"public int addListener(Value listener) {\n\n IApplication adapter = new IApplication() {\n private boolean execute(Value jsObject, String memberName, Object... args) {\n if (jsObject == null)\n return true;\n Value member = jsObject.getMember(memberName);\n if (member == null) {\n return true;\n }\n Value result = plugin.executeInContext(member, app);\n return result != null && result.isBoolean() ? result.asBoolean() : true;\n }\n\n @Override\n public boolean appStart(IScope app) {\n return execute(listener, \"appStart\", app);\n }\n\n @Override\n public boolean appConnect(IConnection conn, Object[] params) {\n return execute(listener, \"appConnect\", conn, params);\n }\n\n @Override\n public boolean appJoin(IClient client, IScope app) {\n return execute(listener, \"appJoin\", client, app);\n }\n\n @Override\n public void appDisconnect(IConnection conn) {\n execute(listener, \"appDisconnect\", conn);\n }\n\n @Override\n public void appLeave(IClient client, IScope app) {\n execute(listener, \"appLeave\", client, app);\n }\n\n @Override\n public void appStop(IScope app) {\n execute(listener, \"appStop\", app);\n }\n\n @Override\n public boolean roomStart(IScope room) {\n return execute(listener, \"roomStart\", room);\n }\n\n @Override\n public boolean roomConnect(IConnection conn, Object[] params) {\n return execute(listener, \"roomConnect\", conn, params);\n }\n\n @Override\n public boolean roomJoin(IClient client, IScope room) {\n return execute(listener, \"roomJoin\", client, room);\n }\n\n @Override\n public void roomDisconnect(IConnection conn) {\n execute(listener, \"roomDisconnect\", conn);\n }\n\n @Override\n public void roomLeave(IClient client, IScope room) {\n execute(listener, \"roomLeave\", client, room);\n }\n\n @Override\n public void roomStop(IScope room) {\n execute(listener, \"roomStop\", room);\n }\n };\n this.app.addListener(adapter);\n this.listeners.add(adapter);\n return this.listeners.indexOf(adapter);\n }",
"public void savePresenceStatus(SessionProvider provider, String userId, String status) throws Exception {\r\n Node dpsNode = getDefaultPresenceStatusNode(provider);\r\n String hexName = CodingUtils.encodeToHex(userId);\r\n PresenceStatus presenceStatus = getPresenceStatus(dpsNode, hexName);\r\n\r\n if (dpsNode == null) { // add new lr:defaultpresencestatus\\lr:presencestatus node\r\n try {\r\n ManageableRepository repository = repositoryService.getCurrentRepository();\r\n Session session = provider.getSession(wsName, repository);\r\n Node node = session.getRootNode();\r\n Node fNode = null;\r\n Node historyNode = node.getNode(historyPath);\r\n String[] path = historyPath.split(\"/\");\r\n\r\n if (historyNode == null) {\r\n Node tmpNode;\r\n for (int i = 0; i < path.length - 1; i++) {\r\n if (node.hasNode(path[i]))\r\n tmpNode = node.getNode(path[i]);\r\n else\r\n tmpNode = node.addNode(path[i]);\r\n node = tmpNode;\r\n }\r\n fNode = node.addNode(path[path.length - 1], HISTORY_NT);\r\n } else {\r\n fNode = historyNode.getNode(path[path.length - 1]);\r\n }\r\n\r\n NodeImpl dps = (NodeImpl) fNode.addNode(DEFAULTPRESENCESTATUS, DEFAULTPRESENCESTATUS_NT);\r\n if (dps.canAddMixin(\"exo:privilegeable\")) {\r\n dps.addMixin(\"exo:privilegeable\");\r\n }\r\n dps.setPermission(SystemIdentity.ANY, PermissionType.ALL);\r\n presenceStatus = new PresenceStatus(userId, status);\r\n // presenceStatus.setStatus(status);\r\n // String presenceStatusPath = historyPath + \"/\" + DEFAULTPRESENCESTATUS;\r\n // if(!dps.getPath().equals(presenceStatusPath)) presenceStatus.setPath(presenceStatusPath);\r\n\r\n addPresenceStatus(dps, presenceStatus);\r\n\r\n session.save();\r\n session.logout();\r\n } catch (Exception e) {\r\n log.error(\"Could not add a new node for [lr:defaultpresecestatus] node type: \" + e.getMessage());\r\n }\r\n } else { // update lr:status property\r\n if (presenceStatus == null) {\r\n presenceStatus = new PresenceStatus(userId, status);\r\n // presenceStatus.setStatus(status);\r\n addPresenceStatus(dpsNode, presenceStatus);\r\n } else {\r\n if (presenceStatus.getHexName().equals(hexName)) {\r\n Node presenceStatusNode = null;\r\n presenceStatus.setStatus(status);\r\n try {\r\n if (dpsNode.hasNode(presenceStatus.getHexName())) {\r\n presenceStatusNode = dpsNode.getNode(presenceStatus.getHexName());\r\n jcrom.updateNode(presenceStatusNode, presenceStatus);\r\n dpsNode.getSession().save();\r\n }\r\n } catch (Exception e) {\r\n log.error(\"Could not update [lr:presencestatus] node: \" + e.getMessage());\r\n }\r\n }\r\n }\r\n }\r\n }",
"public boolean addReadyUser(User user) {\r\n\t\tif (playerState.get(user) == ENTERED) {\r\n\t\t\tplayerState.remove(user);\r\n\t\t\tplayerState.put(user, READY);\r\n\t\t\treadyUser++;\r\n\t\t\tbroadCast(\"before_notify\", String.valueOf(user.getNickname()) + \" 님이 READY\");\r\n\t\t\tif (readyUser == users.size()) {\r\n\t\t\t\tbroadCast(\"GAME_PLAY_START\", \"\");\r\n\t\t\t\tthis.status = LOAD;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.print(\"somthing wrong\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}"
] | [
"0.6611818",
"0.63917375",
"0.6365882",
"0.6321843",
"0.6267185",
"0.62652934",
"0.6265079",
"0.621068",
"0.6072335",
"0.60634744",
"0.60571873",
"0.6051962",
"0.5914606",
"0.5905127",
"0.58750665",
"0.5858805",
"0.58117396",
"0.58037686",
"0.5797906",
"0.57825816",
"0.5691551",
"0.5684122",
"0.56827664",
"0.56403714",
"0.5617858",
"0.5607309",
"0.56005514",
"0.5589341",
"0.5570879",
"0.54939413",
"0.54394966",
"0.5426806",
"0.53848666",
"0.536847",
"0.5366909",
"0.5363001",
"0.53581196",
"0.5350728",
"0.53395694",
"0.5320342",
"0.53080827",
"0.53075784",
"0.53052104",
"0.52970934",
"0.52611095",
"0.52585965",
"0.52573025",
"0.52420425",
"0.5240294",
"0.52355325",
"0.5212231",
"0.5202249",
"0.519927",
"0.5178585",
"0.5167832",
"0.516681",
"0.51666945",
"0.5165985",
"0.5162774",
"0.5161271",
"0.5151406",
"0.51367617",
"0.51367617",
"0.51343334",
"0.51325864",
"0.51301336",
"0.5129567",
"0.51167333",
"0.5116567",
"0.5113991",
"0.51103455",
"0.51082844",
"0.5095843",
"0.5085083",
"0.508118",
"0.5079346",
"0.5071114",
"0.50706047",
"0.5063739",
"0.5048144",
"0.5040874",
"0.5037928",
"0.5028895",
"0.5024478",
"0.5022385",
"0.50187904",
"0.5017707",
"0.5012785",
"0.50105184",
"0.5008782",
"0.50041956",
"0.50034904",
"0.5002738",
"0.4998996",
"0.49976426",
"0.49965537",
"0.49963686",
"0.4995609",
"0.49867582",
"0.4984327"
] | 0.81608963 | 0 |
Set whether to enable session for the consumer. | public void setSessionEnabled(Boolean sessionEnabled) {
this.sessionEnabled = sessionEnabled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setConsumerSession(HttpServletRequest request, String consumerSession) {\n HttpSession session = request.getSession(true);\n session.setAttribute(USER_ATTR, consumerSession);\n }",
"@JsonSetter(\"webRtcEnabled\")\r\n public void setWebRtcEnabled (boolean value) { \r\n this.webRtcEnabled = value;\r\n }",
"public void enableConferenceServer(boolean enable);",
"public void setShowCommunicationSessions( boolean show )\r\n {\r\n showCommunicationSessions = show;\r\n }",
"public void setSession(Session value);",
"public boolean setEnabled(boolean enable);",
"public void setNeedClientAuth(boolean flag)\n {\n needClientAuth = flag;\n }",
"public void setReadOnly(boolean value) {\n this.readOnly = value;\n\n for (TauSession s : sessionsList) {\n s.setReadOnly(value);\n }\n }",
"void markAsUserSession();",
"public void setKerberosToken(boolean value) {\n\t\tthis.kerberosToken = value;\n\t}",
"public final void setAutoConsume(boolean value)\n {\n myAutoConsumeProperty.set(value);\n }",
"public void setWantClientAuth(boolean flag)\n {\n wantClientAuth = flag;\n }",
"boolean isSetSessionID();",
"public void setEnable(Boolean enable) {\n this.enable = enable;\n }",
"public abstract void setEnabled(Context context, boolean enabled);",
"private void setSharedPreferences(boolean silentMode) {\n SharedPreferences settings = this.getSharedPreferences(\n CallRecorderConstants.LISTEN_ENABLED, 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putBoolean(\"silentMode\", silentMode);\n editor.commit();\n\n Intent myIntent = new Intent(context, CallRecorderService.class);\n myIntent.putExtra(\"commandType\",\n silentMode ? CallRecorderConstants.RECORDING_DISABLED\n : CallRecorderConstants.RECORDING_ENABLED);\n myIntent.putExtra(\"silentMode\", silentMode);\n if (context != null){\n Log.d(\"Context\",\"not null\");\n context.startService(myIntent);\n }\n\n }",
"public void setEnable(Boolean enable) {\n this.enable = enable;\n }",
"public void setEnable(Boolean enable) {\n this.enable = enable;\n }",
"public void setEnabled(boolean arg){\r\n\t\tenabled = arg;\r\n\t\tif(!arg){\r\n\t\t\tstop(0);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsonido = new Sonido(path,true);\r\n\t\t}\r\n\t}",
"@ReactMethod\n public void setUseConnectionService(final boolean use) {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n useConnectionService_ = use;\n setAudioDeviceHandler();\n }\n });\n }",
"public boolean isSession() {\n\t\treturn config.getBoolean(QuestConfigurationField.SESSION.getKey(), \n\t\t\t\t(boolean) QuestConfigurationField.SESSION.getDefault());\n\t}",
"public boolean getShowCommunicationSessions()\r\n {\r\n return showCommunicationSessions;\r\n }",
"@Override\n public boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user) {\n return true;\n }",
"public jpuppeteer.util.XFuture<?> enable() {\n return connection.send(\"Security.enable\", null);\n }",
"private void setEncryptionRequested(boolean encrypt) {\n }",
"public void setEnabled(boolean enabled);",
"public void setEnabled(boolean enabled);",
"public void setSession(org.openejb.config.ejb11.Session session) {\n this._session = session;\n }",
"public void setSessionConfig( Properties sessionConfig )\n\t{\n\t\tif ( sessionConfig == null )\n\t\t{\n\t\t\tMessageFormat problem = new MessageFormat( rbm.getString( rbKeySetNullProp ) );\n\t\t\tthrow new NullPointerException( problem\n\t\t\t\t\t.format( new Object[]{ cl +\"ssc\" } ) );\n\t\t}\n\t\tthis.sessionConfig = sessionConfig;\n\t}",
"@Override\n public void setEventAcquisitionEnabled(boolean enable) throws HardwareInterfaceException {\n if ( input != null ){\n input.setPaused(enable);\n }\n if ( isOpen() ){\n String s = enable ? \"t+\\r\\n\" : \"t-\\r\\n\";\n byte[] b = s.getBytes();\n try{\n DatagramPacket d = new DatagramPacket(b,b.length,client);\n if (socket != null){\n socket.send(d);\n }\n } catch ( Exception e ){\n log.warning(e.toString());\n }\n }\n eventAcquisitionEnabled = enable;\n }",
"public void setSession(Session session) { this.session = session; }",
"public void setEnable(boolean enable) {\n this.enable = enable;\n }",
"public void setSession(Session session) {\r\n this.session = session;\r\n }",
"public boolean setupStartSession() { \n\t\tthis.showNamedMessage(\"Initiating session with server...\");\n\t\ttry {\n\t\t\twhile (!this.requestSession()) {\n\t\t\t\ttextUI.getBoolean(\"Try again?\");\n\t\t\t}\n\t\t} catch (IOException | PacketException | UtilDatagramException e) {\n\t\t\ttextUI.showError(\"Something went wrong while starting the session: \" \n\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t}\n\t\t\n\t\treturn this.sessionActive;\n\t}",
"public void setIsLogin(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isLogin\", value);\n\t\teditor.commit();\n\t}",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"public synchronized void setConnect(boolean connect) {\n wantConnect = connect;\n }",
"public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }",
"public void setExposeTransactionAwareSessionFactory(boolean exposeTransactionAwareSessionFactory) {\n\t\tthis.exposeTransactionAwareSessionFactory = exposeTransactionAwareSessionFactory;\n\t}",
"public void setExposeAccessContext(boolean exposeAccessContext)\r\n/* 34: */ {\r\n/* 35: 95 */ this.exposeAccessContext = exposeAccessContext;\r\n/* 36: */ }",
"public void setStickySession(boolean stickySession) {\n this.stickySession = stickySession;\n }",
"@Override\r\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session = session;\r\n\t}",
"@Override\r\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session = session;\r\n\t}",
"public void setSession(AbstractSession session) {\n this.session = session;\n }",
"public FamilyTreeServer setSession(Session s) {\n\t\tsession = s;\n\t\treturn this;\n\t}",
"public void setTcpSession(IoSession s) {\n\t\tm_tcpSession = s;\n\t}",
"@Override\r\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session=session;\r\n\t}",
"public boolean select() {\n\t\tmSecureChannel = GPSystem.getSecureChannel();\r\n\t\treturn true;\r\n\t}",
"public void enableClient(){\r\n try{\r\n oos.writeObject(new DataWrapper(DataWrapper.CTCODE, new ControlToken(ControlToken.ENABLECODE)));\r\n oos.flush();\r\n } catch(IOException ioe) {\r\n ioe.printStackTrace();\r\n }\r\n }",
"public void setSession(Session session) {\n\t\tthis.session = session;\n\t}",
"public Builder setClientSessionID(int value) {\n bitField0_ |= 0x00000002;\n clientSessionID_ = value;\n onChanged();\n return this;\n }",
"void setAuthenticated(boolean b);",
"@Override\r\n\tpublic void setSession(Map<String, Object> session) \r\n\t{\n\t\tthis.session = session;\r\n\t}",
"public void setSAMLToken(boolean value) {\n\t\tthis.samlToken = value;\n\t}",
"public void setAutoConnect(boolean v) {\n agentConfig.setAutoConnect(v);\n }",
"public void setWhitelisted ( boolean value ) {\n\t\texecute ( handle -> handle.setWhitelisted ( value ) );\n\t}",
"public void enableEchoLimiter(boolean val);",
"private Boolean isInSession(String token, String username) {\n \treturn true;\n }",
"public void setSession(CATermSession session) {\n this.session = session;\n }",
"@Override\n\tpublic void setSession(Map<String, Object> map) {\n\t\tthis.session=map;\n\t\t\n\t}",
"public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}",
"boolean hasSession();",
"protected final void openSession() {\n openSessionForRead(null, null);\n }",
"void setSessionId(String sessionId);",
"public void setEnabled(boolean aFlag) { _enabled = aFlag; }",
"public void setSessionCounter(long sessionCounter);",
"public void setSession(Session session)\n\t{\n\t\tm_Session = session;\n\t}",
"void setAccessCounterForSession(int cnt);",
"public void setChatSession(IoSession s) {\n\t\tm_chatSession = s;\n\t}",
"@Override\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session = session;\n\t}",
"public void testModeEnable(boolean enable) {\n if(enable)\n sapServer.setTestMode(SapMessage.TEST_MODE_ENABLE);\n else\n sapServer.setTestMode(SapMessage.TEST_MODE_DISABLE);\n }",
"final void setAuthentication(boolean required)\r\n {\r\n requires_AUT = required;\r\n }",
"public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}",
"public boolean hasSession() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public void setSession (jkt.hms.masters.business.MasSession session) {\n\t\tthis.session = session;\n\t}",
"@Override\n\tpublic void setSession(Map<String, Object> session) {\n\t\tthis.session=session;\n\t}",
"void startSession(@Nullable Callback<Session> callback);",
"public void setEnabled(boolean value) {\n this.enabled = value;\n }",
"public void setEnabled(boolean isEnable) throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET enabled=? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setInt(1, (isEnable ? 1 : 0));\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setEnabled(boolean \"+ isEnable+ \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"protected void enableActionSetMute()\n {\n Action action = new Action(\"SetMute\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n iDelegateSetMute = new DoSetMute();\n enableAction(action, iDelegateSetMute);\n }",
"public void setSession(Session session) {\n\tthis.session = session; \r\n}",
"public boolean hasSession() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"@JsonSetter(\"session_token\")\n public void setSessionToken (String value) { \n this.sessionToken = value;\n }",
"public void setEnable (boolean state) {\n impl.setEnable (state);\n }",
"public void setEnabled(boolean value) {\n m_Enabled = value;\n }",
"public void openSession (HttpServletRequest request, Consumer consumer) {\n // Get a random byte array\n byte bytes[] = new byte[16];\n random.nextBytes(bytes);\n \n // Turn it to a String\n String secureStr = \"\";\n for (int i = 0; i < bytes.length; i++) {\n secureStr += (char) bytes[i];\n }\n \n // Associate the String to a consumer connexion\n secureMap.put(secureStr , new SecureEntry(consumer));\n setConsumerSession(request, secureStr);\n }",
"public void setContextEnabled(Boolean contextEnabled) {\n this.contextEnabled = contextEnabled;\n }",
"public void setLazySessionCreation(boolean lazySessionCreation) {\n this.lazySessionCreation = lazySessionCreation;\n }",
"public void enableCtxRecording();",
"public void setEncrypted(Boolean encrypted) {\n this.encrypted = encrypted;\n }",
"public synchronized void setEnabled(boolean enabled) {\n \t\t\tlistenerEnabled = enabled;\n \t\t}",
"public void setProtection(boolean value);",
"@OnOpen\n\tpublic void open(Session session) {\n\t\tsessionHandler.addSession(session);\t\t\n\t}",
"public void setEnabled(final boolean enabled);",
"public abstract void enableSubscribes(boolean paramBoolean);",
"public void setPty(boolean enable){ \n pty=enable; \n }",
"@Override\n\tpublic void setSession(Map<String, Object> s) {\n\t\tsession = s;\n\t}"
] | [
"0.5933671",
"0.5856491",
"0.5804186",
"0.5598443",
"0.5568061",
"0.538493",
"0.5339297",
"0.5333394",
"0.5330075",
"0.5321397",
"0.53208005",
"0.53118753",
"0.5304073",
"0.52834386",
"0.5283057",
"0.5245319",
"0.52059215",
"0.5188788",
"0.51784754",
"0.5172161",
"0.5171441",
"0.51674294",
"0.5164663",
"0.5154069",
"0.51459354",
"0.5144609",
"0.5144609",
"0.5142921",
"0.5131945",
"0.5128297",
"0.5124912",
"0.51212645",
"0.51097184",
"0.5104968",
"0.50970376",
"0.50572485",
"0.50572485",
"0.50572485",
"0.50572485",
"0.50509334",
"0.5049004",
"0.504629",
"0.50443995",
"0.50437766",
"0.5033418",
"0.5033418",
"0.50333244",
"0.50321954",
"0.50298184",
"0.5018343",
"0.50168955",
"0.5014379",
"0.50116515",
"0.50115913",
"0.5011073",
"0.500658",
"0.50053823",
"0.5004328",
"0.50006425",
"0.49987355",
"0.49973264",
"0.49923852",
"0.49915352",
"0.4989751",
"0.49897158",
"0.49883142",
"0.4988109",
"0.4985627",
"0.4985004",
"0.49841952",
"0.4972873",
"0.4971982",
"0.49592206",
"0.49539268",
"0.4953777",
"0.49526185",
"0.49518618",
"0.494999",
"0.49498582",
"0.49491546",
"0.4948395",
"0.494612",
"0.49392495",
"0.4937826",
"0.49307808",
"0.492274",
"0.49196255",
"0.4915136",
"0.4909503",
"0.49002874",
"0.48987564",
"0.4897191",
"0.48966673",
"0.48950693",
"0.48937175",
"0.48916388",
"0.4890282",
"0.48857167",
"0.48856375",
"0.4884555"
] | 0.6798959 | 0 |
Set whether to enable autocomplete. | public void setAutoComplete(Boolean autoComplete) {
this.autoComplete = autoComplete;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setAutoCompleterCallback(AutoCompleterCallback callback);",
"public void setSuggestion(String value) {\n setAttributeInternal(SUGGESTION, value);\n }",
"public void setCompletionEnabled(boolean isEnabled) {\n completionEnabled = isEnabled;\n }",
"public void startAutocompletePrefetch() {\n if (!mNativeInitialized) return;\n mAutocompleteCoordinator.prefetchZeroSuggestResults();\n }",
"@Override\n \tpublic void setInputLock(boolean lock) {\n \t\tselector.getSuggestBox().getTextBox().setReadOnly(lock);\n \t}",
"public Boolean getAutocompleteOnStorefront() {\n return (Boolean) get(\"autocomplete_on_storefront\");\n }",
"public void onSetUserInputEnabled() {\n }",
"public void setAuto(){\n\t\tthis.codeAuto = true;\n\t}",
"@Override\n public void setAutofocus(boolean autofocus) {\n super.setAutofocus(autofocus);\n }",
"public void setManual(){\n\t\tthis.codeAuto = false;\n\t}",
"public static void setupAutoComplete(JComboBox comboBox)\n\t{\n\t\tcomboBox.setEditable(true);\n\t\tJTextComponent editor = (JTextComponent) comboBox.getEditor().getEditorComponent();\n\t\teditor.setDocument(new AutoComplete(comboBox));\n\t}",
"public void setAutoGenerateMultiTermSynonymsPhraseQuery(boolean enable) {\n this.autoGenerateMultiTermSynonymsPhraseQuery = enable;\n }",
"@Override public JavaNativeTextField setAutocorrection (boolean enable) {\n return this;\n }",
"void setAuto(boolean auto);",
"void setAuto(boolean auto);",
"public final void setTypes(AutocompleteType... types) {\n if (types == null) {\n return;\n }\n String[] stypes = new String[types.length]; \n for (int i=0; i < types.length; i++) {\n stypes[i] = types[i].value();\n }\n JsArrayString a = ArrayHelper.toJsArrayString(stypes);\n setTypesImpl(a);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_auto_complete, menu);\n return true;\n }",
"public final native void setAllowTyping(boolean allowTyping) /*-{\r\n\t\tthis.allowTyping = allowTyping;\r\n\t}-*/;",
"private void configureSuggestion(final boolean requestedExplicitly) {\n myView.removeSuggestions();\n final RangeInfo rangeInfo = findNearestRangeInfo();\n final String text = getTextByRange(rangeInfo);\n\n final SuggestionInfo suggestionInfo = rangeInfo.getSuggestions();\n if (suggestionInfo == null || (!suggestionInfo.isShowSuggestionsAutomatically() && !requestedExplicitly)) {\n return;\n }\n final List<String> suggestions = new ArrayList<String>(suggestionInfo.getSuggestions());\n if (text != null && !requestedExplicitly) {\n filterLeaveOnlyMatching(suggestions, text);\n }\n // TODO: Place to add history\n if (!suggestions.isEmpty()) {\n // No need to display empty suggestions\n myView\n .displaySuggestions(new SuggestionsBuilder(suggestions), suggestionInfo.isShowAbsolute(), text);\n }\n }",
"private void populateAutoComplete() {\n if (!mayRequestContacts()) {\n return;\n }\n\n getLoaderManager().initLoader(0, null, this);\n }",
"public void setEnabledCursor(Cursor enabledCursor) {\r\n this.enabledCursor = enabledCursor;\r\n }",
"public void setHint(String str) { this.editText.setHint(str); }",
"public void setLSearch (boolean value) {\r\n l_search = value; }",
"public final void setAutoConsume(boolean value)\n {\n myAutoConsumeProperty.set(value);\n }",
"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}",
"@Generated\n @Selector(\"setAllowsAutomaticLocalization:\")\n public native void setAllowsAutomaticLocalization(boolean value);",
"public void setEnable(boolean b) { this.editText.setEnabled(b); }",
"public void toggleAutomaticAdding() {\n\t\tdictionary.toggleAutomaticAdding();\n\t}",
"void itemSuggested(String autoCompleteString, boolean keepPopupVisible, boolean triggerAction);",
"@ZAttr(id=360)\n public void setGalAutoCompleteLdapFilter(String zimbraGalAutoCompleteLdapFilter) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalAutoCompleteLdapFilter, zimbraGalAutoCompleteLdapFilter);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"@ZAttr(id=599)\n public void setGalTokenizeAutoCompleteKey(ZAttrProvisioning.GalTokenizeAutoCompleteKey zimbraGalTokenizeAutoCompleteKey) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalTokenizeAutoCompleteKey, zimbraGalTokenizeAutoCompleteKey.toString());\n getProvisioning().modifyAttrs(this, attrs);\n }",
"@Override\n protected void setHint(String hint) {\n }",
"@ZAttr(id=599)\n public void setGalTokenizeAutoCompleteKeyAsString(String zimbraGalTokenizeAutoCompleteKey) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraGalTokenizeAutoCompleteKey, zimbraGalTokenizeAutoCompleteKey);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public interface AutoCompleter {\n \n /** Sets the callback that will be notified when items are selected. */\n void setAutoCompleterCallback(AutoCompleterCallback callback);\n\n /** \n * Sets the new input to the autocompleter. This can change what is\n * currently visible as suggestions.\n * \n * The returned Future returns true if the lookup for autocompletions\n * completed succesfully. True does not indicate autocompletions are\n * available. It merely indicates that the lookup completed.\n * \n * Because AutoCompleters are allowed to be asynchronous, one should\n * use Future.get or listen to the future in order to see when\n * the future has completed.\n */\n ListeningFuture<Boolean> setInput(String input);\n\n /**\n * Returns true if any autocomplete suggestions are currently available, based the data\n * that was given to {@link #setInput(String)}.\n */\n boolean isAutoCompleteAvailable();\n\n /** Returns a component that renders the autocomplete items. */\n JComponent getRenderComponent();\n\n /** Returns the currently selected string. */\n String getSelectedAutoCompleteString();\n\n /** Increments the selection. */\n void incrementSelection();\n \n /** Decrements the selection. */\n void decrementSelection();\n \n /** A callback for users of autocompleter, so they know when items have been suggested. */\n public interface AutoCompleterCallback {\n /** Notification that an item is suggested. */\n void itemSuggested(String autoCompleteString, boolean keepPopupVisible, boolean triggerAction);\n }\n\n}",
"public void setQueryable(Boolean queryable) {\n this.queryable = queryable;\n }",
"@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {if(!updateFromSelectedValue) updateAutocomplete(e);}",
"public void setAutolink(boolean autolink)\r\n {\r\n m_autolink = autolink;\r\n }",
"public void setAutoload(boolean autoload) {\n this.autoload = autoload;\n }",
"public void enableSuggestionAndSyntaxHighlightingFor(String com, List<Prefix> pre, List<Prefix> optionalPrefixes) {\n commandTextField.addSupport(com, pre, optionalPrefixes);\n }",
"void set(boolean on);",
"public void setSuggestVerticalFocalLengthEnabled(\n boolean suggestVerticalFocalLengthEnabled) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mSuggestVerticalFocalLengthEnabled = suggestVerticalFocalLengthEnabled;\n }",
"public void setSuggestHorizontalFocalLengthEnabled(\n boolean suggestHorizontalFocalLengthEnabled) \n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mSuggestHorizontalFocalLengthEnabled = \n suggestHorizontalFocalLengthEnabled;\n }",
"public void setAutoScroll(boolean b) {\r\n\t\t_autoScroll = b;\r\n\t}",
"public void setAutoReply(boolean autoReply)\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(AUTOREPLY$18, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AUTOREPLY$18);\n }\n target.setBooleanValue(autoReply);\n }\n }",
"@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}",
"public void setEnableIntelligentMapping(boolean enableIntelligentMapping) {\n this.enableIntelligentMapping = enableIntelligentMapping;\n }",
"public void setForua(boolean newValue);",
"public void setEnabled(boolean arg){\r\n\t\tenabled = arg;\r\n\t\tif(!arg){\r\n\t\t\tstop(0);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsonido = new Sonido(path,true);\r\n\t\t}\r\n\t}",
"public void setCustomNameVisible ( boolean flag ) {\n\t\texecute ( handle -> handle.setCustomNameVisible ( flag ) );\n\t}",
"private void setupAutoComplete() {\n // Map between AutoCompleteTextViews and their Adapters. Some text fields have a custom\n // adapter whose data is updated dynamically (rather than being statically set)\n Map<AutoCompleteTextView, ArrayAdapter<String>> map = new HashMap<>();\n map.put(mBind.layoutWidthEdit, new LayoutDimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.layoutHeightEdit, new LayoutDimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.backgroundEdit, new ArrayAdapter<>(this, LAYOUT_DROPDOWN_ITEM, Data.getArrColors()));\n map.put(mBind.maxWidthEdit, new DimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n map.put(mBind.maxHeightEdit, new DimenAutoComplAdapter(this, LAYOUT_DROPDOWN_ITEM));\n\n for (Map.Entry<AutoCompleteTextView, ArrayAdapter<String>> e : map.entrySet()) {\n e.getKey().setAdapter(e.getValue());\n // For the fields with custom adapters, set up listener, so that the data of the adapter\n // is updated on every keystroke (e.g. \"14\" -> {\"14dp\", \"14in\", \"14mm\", \"14px\", \"14sp\"})\n if (e.getValue() instanceof AutoComplAdapter) {\n e.getKey().addTextChangedListener(new MyTextWatcher() {\n @Override\n public void afterTextChanged(Editable s) {\n // Trigger filtering process on 's', which updates the data of this adapter\n e.getValue().getFilter().filter(s);\n }\n });\n }\n }\n }",
"@Test\n public void autoCompleteTest() throws InterruptedException {\n assertTrue(CommonUtils.autoCompleteExists(index,autocomplete_searchTerm));\n }",
"public void editEnabled(boolean enabled){\n }",
"public void setCaretUse(){\n\t}",
"@Override public JavaNativeTextField setAutocapitalization (boolean enable) {\n return this;\n }",
"public void enableDnsSearch(boolean enable);",
"public void setAutoDdl(String value)\n\t{\n\t\tm_autoDdl = new Boolean(value).booleanValue();\n\t}",
"private void setNameAutomatic(){\n\t}",
"public void setCompletionHint(CharSequence hint) {\n/* 173 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean setEnabled(boolean enable);",
"public FXMLLoaderBuilder autoInjection(boolean autoInjection) {\n this.autoInjection = autoInjection;\n return this;\n }",
"public void setEnabledJText(boolean ativa) {\n jTPorta.setEnabled(ativa);\n jTNomeBanco.setEnabled(ativa);\n jTUsuario.setEnabled(ativa);\n jPSenha.setEnabled(ativa);\n }",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"public static void setSymbolLookupEnabled(boolean enabled) {\n\t\tIPreferenceStore prefs = Activator.getDefault().getPreferenceStore();\n\t\tprefs.setValue(GHIDRA_SYMBOL_LOOKUP_ENABLED, enabled);\n\t}",
"public void setSearchOptions(SearchOptions options) {\n searchOptions_ = options;\n }",
"@SuppressLint(\"SetJavaScriptEnabled\")\n public void setGeolocationEnabled(final boolean enabled) {\n if (enabled) {\n getSettings().setJavaScriptEnabled(true);\n getSettings().setGeolocationEnabled(true);\n setGeolocationDatabasePath();\n }\n\n mGeolocationEnabled = enabled;\n }",
"public AutocompleteProvider(){\r\n root = null;\r\n }",
"public void setEnabled(boolean enabled);",
"public void setEnabled(boolean enabled);",
"public void setSuggestedValues (String suggestedValues) {\n this.suggestedValues = suggestedValues;\n }",
"public void admin_enable_auto() {\n\t\tautomerge = true; // merges every time new crystals are added\n\t\tautoidentify = true; // identifies every time merge occurs\n\t\tautodust = true; \n\t\tautosell = false;// cannot have autosell and autodust enabled\n\t}",
"@JsonSetter(\"srvLookup\")\r\n public void setSrvLookup (boolean value) { \r\n this.srvLookup = value;\r\n }",
"public void enableInputButton(boolean bool) {\n\t\tinputAnswer.setEnabled(bool);\n\t}",
"public void setAutoconfAnalyzerEnabled(boolean autoconfAnalyzerEnabled) {\n this.autoconfAnalyzerEnabled = autoconfAnalyzerEnabled;\n }",
"public PlacesAutocompleteTextView(final Context context, final AttributeSet attrs, final int defAttr) {\n super(context, attrs, defAttr);\n\n init(context, attrs, defAttr, R.style.PACV_Widget_PlacesAutoCompleteTextView, null, context.getString(R.string.pacv_default_history_file_name));\n }",
"public void setEnabled( boolean b )\n {\n filterCombo.setEnabled( b );\n filterEditorButton.setEnabled( b );\n }",
"@Override\n\tpublic boolean onSearchRequested () {\n\t\tif (!searchMode)\n\t\t\ttoggleSearch();\n\t\treturn true;\n\t}",
"public void setEnable(String enable) {\r\n this.enable = enable == null ? null : enable.trim();\r\n }",
"public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}",
"private void setControlsEnabled(boolean value){\r\n txtRolodexId.setEditable(value);\r\n txtLastUpdate.setEditable(value);\r\n txtUpdateUser.setEditable(value);\r\n txtLastName.setEditable(value);\r\n txtFirstName.setEditable(value);\r\n txtMiddleName.setEditable(value);\r\n txtSuffix.setEditable(value);\r\n txtPrefix.setEditable(value);\r\n txtTitle.setEditable(value);\r\n txtSponsorCode.setEditable(value);\r\n txtOrganization.setEditable(value);\r\n txtAddress1.setEditable(value);\r\n txtAddress2.setEditable(value);\r\n txtAddress3.setEditable(value);\r\n txtCity.setEditable(value);\r\n txtCounty.setEditable(value);\r\n //Modified for case#3278 - State Combobox is made non editable\r\n cmbState.setEditable(false);\r\n cmbState.setEnabled(value);\r\n cmbState.setForeground(Color.black);\r\n cmbCountry.setEnabled(value);\r\n txtPostalCode.setEditable(value);\r\n txtPhone.setEditable(value);\r\n txtEMail.setEditable(value);\r\n txtFax.setEditable(value);\r\n txtComments.setEditable(value);\r\n }",
"public void setEnabled(boolean aFlag) { _enabled = aFlag; }",
"public void setEditable(boolean editable){\n mEditable = editable;\n if(!editable){\n hideSoftInput();\n }\n }",
"public void setSelectAllOnFocus(boolean val)\n {\n this.selectAllOnFocus = val;\n }",
"public void setSelection( String strSelection )\n {\n List<String> suggestionNames = getPopupSuggestions();\n for( int currentIndex = 0; currentIndex < suggestionNames.size(); currentIndex++ )\n {\n if( suggestionNames.get( currentIndex ).equals( strSelection ) )\n {\n //select the matching suggestion's index\n _list.setSelectedIndex( currentIndex );\n break;\n }\n }\n }",
"@Override\r\n\tpublic void autoCompletedUpdated() {\r\n\t\tmAdapter = new ArrayAdapter<String>(this, R.layout.sdk_list_entry, R.id.sdk_list_entry_text, mModel.getAutocompleteSuggestions());\r\n\r\n\t\tmListView.setAdapter(mAdapter);\r\n\t\tmListView.invalidate();\r\n\t\t\r\n\t\tmLayout.hideText();\r\n\t\t\r\n\t}",
"public void setGlobSearch(boolean b) {\n getGlobCheckBox().setSelected(b);\n }",
"public void enable() {\r\n m_enabled = true;\r\n }",
"public void setInputMethodShowOn() {\n\n }",
"public void setInitiallySearchByPrefixValue(boolean initiallySearchByPrefixValue) {\n this.initiallySearchByPrefixValue = initiallySearchByPrefixValue;\n }",
"void setAllowFriendlyFire(boolean allowFriendlyFire);",
"public EditableComboBoxAutoCompletion(JComboBox comboBox) {\n this.comboBox = comboBox;\n editor = (JTextField)comboBox.getEditor().getEditorComponent();\n editor.addKeyListener(this);\n editor.addFocusListener(focusHandler);\n }",
"public void setAutoDdl(String value)\n\t{\n\t\tautoDdl = new Boolean(value).booleanValue();\n\t}",
"private void setSearchBtnEnabled(boolean enable) {\n searchBtn.setEnabled(enable);\n searchBtn.setClickable(enable);\n }",
"public void setAgreedToTermsOfUseFieldName(final String value) {\n setProperty(AGREED_TO_TERMS_OF_USE_FIELD_NAME_KEY, value);\n }",
"private void setEditable(boolean editable) {\n nameTextField.setEditable(editable);\n lastNameTextField.setEditable(editable);\n dniTextField.setEditable(editable);\n addressTextField.setEditable(editable);\n telephoneTextField.setEditable(editable);\n }",
"void setEditButtonEnabled(boolean isEnabled);",
"public void setListening(boolean z) {\n this.mKeyguardStatusBar.setListening(z);\n C0940QS qs = this.mQs;\n if (qs != null) {\n qs.setListening(z);\n }\n }",
"public native void setEditable(boolean value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.editable = value;\n }-*/;"
] | [
"0.604013",
"0.5859889",
"0.5818527",
"0.5804886",
"0.5725993",
"0.55827355",
"0.55511564",
"0.5549586",
"0.55489457",
"0.55194044",
"0.5476781",
"0.54453206",
"0.54057705",
"0.53948396",
"0.53948396",
"0.5339797",
"0.5315798",
"0.5262856",
"0.5240721",
"0.5234694",
"0.52308637",
"0.52173746",
"0.5198928",
"0.51955783",
"0.5179433",
"0.517651",
"0.51598",
"0.51409674",
"0.5095015",
"0.5084778",
"0.5073921",
"0.5057541",
"0.50471884",
"0.5028766",
"0.5026595",
"0.50076836",
"0.4988608",
"0.49799266",
"0.4972913",
"0.4949299",
"0.4949239",
"0.49386752",
"0.49373186",
"0.4936204",
"0.4927026",
"0.49260613",
"0.49203128",
"0.49145398",
"0.4908529",
"0.49041098",
"0.4903614",
"0.49018633",
"0.48946536",
"0.48869064",
"0.488243",
"0.48786876",
"0.48736766",
"0.4873631",
"0.4853046",
"0.48513016",
"0.48441455",
"0.4837022",
"0.4837022",
"0.4837022",
"0.4837022",
"0.48285645",
"0.48174173",
"0.48110583",
"0.48109454",
"0.48069873",
"0.48069873",
"0.47919792",
"0.4787984",
"0.47789142",
"0.47684833",
"0.47550738",
"0.47475132",
"0.47472912",
"0.47467214",
"0.47428468",
"0.47414938",
"0.47379807",
"0.4732852",
"0.47301868",
"0.4729062",
"0.47253782",
"0.4725196",
"0.4722486",
"0.47215056",
"0.47166345",
"0.4712309",
"0.47002998",
"0.46905866",
"0.4688566",
"0.46841463",
"0.46837828",
"0.46783853",
"0.4677302",
"0.46693254",
"0.46626288"
] | 0.7823674 | 0 |
Set the prefetch count. | public void setPrefetchCount(Integer prefetchCount) {
this.prefetchCount = prefetchCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPrefetchCardCount(int n) {\n mController.setPrefetchCardCount(n);\n }",
"public Http2ClientBuilder prefetch(int prefetch) {\n this.prefetch = prefetch;\n return this;\n }",
"public void setCount(int value) {\n this.count = value;\n }",
"public void setCount(int value) {\n this.count = value;\n }",
"public void setCount(int value) {\n this.count = value;\n }",
"public void setCount(int count)\r\n\t{\r\n\t}",
"public void prefetch() {\n\t}",
"public void setCount(int count) {\r\n this.count = count;\r\n }",
"public void setCount(int count)\r\n {\r\n this.count = count;\r\n }",
"public void setCount() {\n\t\tLinkedListIterator iter = new LinkedListIterator(this.head);\n\t\tint currentSize = 1;\n\t\twhile (iter.hasNext()) {\n\t\t\titer.next();\n\t\t\tcurrentSize++;\n\t\t}\n\t\tthis.size = currentSize;\n\t}",
"public void setPrefetch (boolean flag) throws ModelException;",
"public void setCount(final int count)\n {\n this.count = count;\n }",
"public void setCount(int count)\n {\n this.count = count;\n }",
"public void setCount(Integer count) {\r\n this.count = count;\r\n }",
"public void setCount(final int c) {\n\t\tcount = c;\n\t}",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public static void setCount(int aCount) {\n count = aCount;\n }",
"public void setCount(final int count) {\n this.count = count;\n }",
"public final void setRefCount (int n)\n {\n _refCount = n;\n }",
"public void set_count(int c);",
"public void setCount(Integer count) {\n this.count = count;\n }",
"public void setCount(Integer count) {\n this.count = count;\n }",
"public void setCount(Integer count) {\n this.count = count;\n }",
"public void setCount(Integer count) {\n this.count = count;\n }",
"public void setCount(Integer count) {\n this.count = count;\n }",
"public void setCount(Integer count) {\n this.count = count;\n }",
"public void setCounter(int value) { \n\t\tthis.count = value;\n\t}",
"public void setCount(int count){\n\t\tthis.count = count;\n\t}",
"@Generated\n @Selector(\"setFetchBatchSize:\")\n public native void setFetchBatchSize(@NUInt long value);",
"public final void setPendingCount(int paramInt)\n/* */ {\n/* 517 */ this.pending = paramInt;\n/* */ }",
"public void setCount(final int count) {\n\t\t_count = count;\n\t}",
"public void setCount(java.math.BigInteger count)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COUNT$8);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(COUNT$8);\n }\n target.setBigIntegerValue(count);\n }\n }",
"public void setDependencyCount(int count) {\n dependencyCount = count;\n }",
"public void setCount(int count) {\n\t\tthis.count = count;\n\t}",
"private void setLikesCount(int value) {\n \n likesCount_ = value;\n }",
"public void setCount(Integer count) {\n\t\tthis.count = count;\n\t}",
"public void setCount(int count) {\n\t\t\tthis.count = count;\n\t\t}",
"public void setFetchSize(java.lang.Integer fetchSize)\r\n {\r\n this.fetchSize = fetchSize;\r\n }",
"public void setNumOfConnections(int num) {\r\n\t\tnumOfConnections = num;\r\n\t}",
"public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}",
"public void set_count(int value) {\n setUIntBEElement(offsetBits_count(), 16, value);\n }",
"public Builder setCount(int value) {\n \n count_ = value;\n onChanged();\n return this;\n }",
"void setReplicaCount(String clusterName, ClusterSpec clusterSpec, int replicaLimit);",
"public void setCount(int pcount) {\r\n if(gzipOp != null) {\r\n throw new IllegalStateException(\"Cannot set count with compression on\");\r\n }\r\n int diff = pcount - bop.getCount();\r\n bop.setCount(pcount);\r\n bytesWrittenSinceSessionStart += diff;\r\n bytesWrittenAtLastAbandonCheck += diff;\r\n }",
"public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }",
"public Builder setNumOfRetrievelRequest(int value) {\n \n numOfRetrievelRequest_ = value;\n onChanged();\n return this;\n }",
"public void setCount(Long Count) {\n this.Count = Count;\n }",
"public void addPrefetch(String prefetch) {\n if (!selectQuery.getPrefetchesMap().isEmpty() && selectQuery.getPrefetchesMap().containsKey(prefetch)) {\n return;\n }\n\n //default value id disjoint\n selectQuery.addPrefetch(prefetch, PrefetchModel.getPrefetchType(DISJOINT_PREFETCH_SEMANTICS));\n \n // reset the model, since it is immutable\n table.setModel(createTableModel());\n setUpPrefetchBox(table.getColumnModel().getColumn(2));\n \n mediator.fireQueryEvent(new QueryEvent(this, selectQuery));\n }",
"private void setCommentsCount(int value) {\n \n commentsCount_ = value;\n }",
"public void setCount(long val)\n\t{\n\t\tcount = val;\n\t}",
"public void setFetchSize(int fetchSize) {\n\t\tthis.fetchSize = fetchSize;\n\t}",
"public void setCount(Long count) {\r\n this.count = count;\r\n }",
"public void setFetchSize(int rows) throws SQLException {\n\r\n }",
"void setAccessCounter(int cnt);",
"private void setMediaCount(int value) {\n \n mediaCount_ = value;\n }",
"protected void setBatchSize(Properties properties) {\n String s = properties.getProperty(this.BATCH_KEY);\n int size = this.RLS_BULK_QUERY_SIZE;\n try{\n size = Integer.parseInt(s);\n }\n catch(Exception e){}\n mBatchSize = size;\n }",
"public void setCount(int value) {\n this.bitField0_ |= 2;\n this.count_ = value;\n }",
"public void setNewCardinalityNum(int param){\n \n // setting primitive attribute tracker to true\n localNewCardinalityNumTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewCardinalityNum=param;\n \n\n }",
"public static void setRetryCount(int count) {\n logger.debug(\"The retry count value is {}\", count);\n retryCount = count;\n }",
"public void setIPCount(int ipCount) {\n this.numberOfIPs = ipCount;\n }",
"public void incrMetaCacheNumClearServer() {\n metaCacheNumClearServer.inc();\n }",
"public void setPoolSize(int aPoolSize) {\n poolSize = aPoolSize;\n }",
"public void addPrefetch(String prefetch) {\n if (!sqlTemplate.getPrefetchesMap().isEmpty() && sqlTemplate.getPrefetchesMap().containsKey(prefetch)) {\n return;\n }\n\n //default value is joint\n sqlTemplate.addPrefetch(prefetch, PrefetchModel.getPrefetchType(SelectQueryPrefetchTab.DISJOINT_BY_ID_PREFETCH_SEMANTICS));\n\n // reset the model, since it is immutable\n table.setModel(createTableModel());\n setUpPrefetchBox(table.getColumnModel().getColumn(2));\n\n mediator.fireQueryEvent(new QueryEvent(this, sqlTemplate));\n }",
"public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }",
"protected void setObjectCount(long objectCount) {\r\n TaskTimeElementDB.objectCount = objectCount;\r\n }",
"public void setMaxRequestUrlsReported(int value) {\n this.maxRequestUrlsReported = value;\n }",
"public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }",
"public void setResourceCache(int value)\r\n {\r\n getSemanticObject().setIntProperty(swb_resourceCache, value);\r\n }",
"public void setUpdateOften(int i){\n countNum = i;\n }",
"public void xsetCount(com.a9.spec.opensearch.x11.QueryType.Count count)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.Count target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.Count)get_store().find_attribute_user(COUNT$8);\n if (target == null)\n {\n target = (com.a9.spec.opensearch.x11.QueryType.Count)get_store().add_attribute_user(COUNT$8);\n }\n target.set(count);\n }\n }",
"public Builder setCount(long value) {\n \n count_ = value;\n onChanged();\n return this;\n }",
"public void setInitialThreadCount(int threads)\n { _threadPool.setInitialSize(threads);\n }",
"@Test\n public void setFetchCount() throws Exception {\n //Given we have a new Fectch count\n\n final int NEW_FETCH_COUNT =15;\n\n //when we set the timeline fetchCount to New_Fetch_Count\n\n timeline.setFetchCount(NEW_FETCH_COUNT);\n\n //Then the New_Fetch_Count is equal to timeline.getFetchCount()\n assertTrue(timeline.getFetchCount()==NEW_FETCH_COUNT);\n\n }",
"public static void resetCount() {\n count = 1;\n }",
"void setCopies(short copies);",
"private void setSpritesCount(int count) {\n this.count = count;\n }",
"private void incrConnectionCount() {\n connectionCount.inc();\n }",
"public void setNumTasks(int n) {\n if (latch != null && latch.getCount() > 0) {\n throw new IllegalStateException(\"Method called during wait period\");\n }\n\n latch = new CountDownLatch(n);\n }",
"public void setFetchSize(int rows) throws SQLException {\n currentPreparedStatement.setFetchSize(rows);\n }",
"public void setPkCacheSize(int pkCacheSize) {\n }",
"public void setPrefetch (boolean flag) throws ModelException\n\t{\n\t\tgetRelationshipImpl().setPrefetch(flag);\n\t}",
"public void resetCount(int count) {\n latch = new CountDownLatch(count);\n }",
"public boolean isPrefetch ();",
"public ConnectionCount(int counter) {\nthis.counter = counter;\n}",
"public void setCounts(Integer counts) {\n this.counts = counts;\n }",
"public void setDesiredCount(Integer desiredCount) {\n this.desiredCount = desiredCount;\n }",
"public void setSourceCount(int sourceCount) {\n this.sourceCount = sourceCount;\n }",
"void setNoOfBuckets(int noOfBuckets);",
"public void setMaxConcurrentAccessCount(String newValue);",
"public void setNumConnections(int connections) {\n\t\tnumConnects = connections;\n\t}",
"public void setDelayCounter(int value) {\n delayCounter = value;\n }",
"public void setDocumentCount(Integer arg0) {\n \n }",
"public Counter(int count)\n {\n this.setCount(count);\n }",
"public void incrementCount() {\n count++;\n }",
"public final void mT__236() throws RecognitionException {\n try {\n int _type = T__236;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:234:8: ( 'prefetch' )\n // InternalMyDsl.g:234:10: 'prefetch'\n {\n match(\"prefetch\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public void setNilLimit()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNonNegativeInteger target = null;\r\n target = (org.apache.xmlbeans.XmlNonNegativeInteger)get_store().find_element_user(LIMIT$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlNonNegativeInteger)get_store().add_element_user(LIMIT$6);\r\n }\r\n target.setNil();\r\n }\r\n }"
] | [
"0.7272037",
"0.68853813",
"0.6521662",
"0.6521662",
"0.6521662",
"0.64414465",
"0.6417079",
"0.62284535",
"0.61814463",
"0.61791104",
"0.61774737",
"0.61739814",
"0.61482865",
"0.61448056",
"0.6123092",
"0.61080635",
"0.61080635",
"0.61080635",
"0.61080635",
"0.61080635",
"0.6087562",
"0.6086246",
"0.6050525",
"0.6049246",
"0.6044466",
"0.6044466",
"0.6044466",
"0.6044466",
"0.6044466",
"0.6044466",
"0.60264647",
"0.6014202",
"0.59959835",
"0.5916547",
"0.591452",
"0.59107834",
"0.5879891",
"0.5878226",
"0.5868076",
"0.58652073",
"0.58062565",
"0.58011824",
"0.5792889",
"0.5731384",
"0.5714666",
"0.57144064",
"0.5672312",
"0.5662775",
"0.5618973",
"0.5618973",
"0.5602364",
"0.557744",
"0.5566348",
"0.55661875",
"0.55561817",
"0.55496204",
"0.5532882",
"0.55218524",
"0.55208164",
"0.5518257",
"0.55170965",
"0.55056244",
"0.5446647",
"0.54260796",
"0.54229677",
"0.5420512",
"0.54161733",
"0.5411527",
"0.54077226",
"0.5398173",
"0.5389978",
"0.5389083",
"0.5385957",
"0.53824687",
"0.53786296",
"0.53645045",
"0.53616476",
"0.53562605",
"0.53524506",
"0.5346603",
"0.53411615",
"0.5331923",
"0.5316915",
"0.53107023",
"0.53019524",
"0.5275298",
"0.527526",
"0.52638876",
"0.5259936",
"0.52579165",
"0.52558047",
"0.52548265",
"0.5254602",
"0.5254457",
"0.52495897",
"0.52452743",
"0.52348197",
"0.5220257",
"0.5212218",
"0.5207579"
] | 0.8265971 | 0 |
Set the sub queue. | public void setSubQueue(SubQueue subQueue) {
this.subQueue = subQueue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setQueue ( Queue queue )\r\n {\r\n setDestination ( queue );\r\n }",
"public void enqueue( MyTreeNode<T> treeNode ) {\n\t\tQueueNode newNode = new QueueNode(treeNode);\n\t\t// the queue is empty\n\t\tif ( tail == null ) {\n\t\t\t// the tail and the head point to the same only element in the collection\n\t\t\tthis.tail = newNode;\n\t\t\tthis.head = newNode;\n\t\t// the queue is not empty\n\t\t} else {\n\t\t\t// the second from the end item of the collection keeps track with the tail\n\t\t\tthis.tail.next = newNode;\n\t\t\t// the new element becomes the tail of the collection\n\t\t\tthis.tail = newNode;\n\t\t}\n\t}",
"public void setRequestQueue(BlockingQueue q)\n {\n queue = q;\n }",
"private void sendQueue() {\r\n firePropertyChange(\"boardQueue\", null, myBoardQueue);\r\n firePropertyChange(\"scaleQueue\", null, myScaleDialogQueue);\r\n firePropertyChange(\"gui\", null, this);\r\n }",
"protected void setTokenQueue(Queue<Token> pTokenQueue) {\n mTokenQueue = pTokenQueue;\n }",
"public void setFolderQuotaUpdateQueue(FolderQuotaUpdateQueue queue)\n {\n \tthis.queue = queue;\n }",
"private void workOnQueue() {\n }",
"public void setQueuePosition(int pos) {\n\t\tsynchronized (this) {\n\t\t\tstop(false);\n\t\t\tmPlayPos = pos;\n\t\t\tprepareAndPlayCurrent();\n\t\t}\n\t}",
"public static void enQueue(Queue q, String entry){ \n if (q.queuesize < q.names.length){ //If the queue isn't full - Size of queue is less than the set array size \n q.names[q.queuesize] = entry; //Set the value at the index of queue size to the input (Using the array in the Queue class to store this)\n q.queuesize +=1; //Increment the size of queue \n }\n }",
"private void queueResize() {\n queue = Arrays.copyOf(queue, queue.length + 1);\n }",
"@Override\n\tpublic void addToQueue() {\n\t}",
"private Queue(){\r\n\t\tgenerateQueue();\r\n\t}",
"private void resize() {\n Object[] newQueue = new Object[(int) (queue.length * 1.75)];\n System.arraycopy(queue, startPos, newQueue, 0, queue.length - startPos);\n\n currentPos = queue.length - startPos;\n startPos = 0;\n queue = newQueue;\n\n }",
"public AliasInQueue() {\n\t\tsuper();\n\t}",
"public final void setSub(final Subscriber sub)\r\n {\r\n this.sub_ = sub;\r\n }",
"Queue() {\n head = null;\n tail = null;\n }",
"public void declareQueue() {\n try {\n mChannel.queueDeclare();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n }",
"static void enQueue(Queue q, int x) {\r\n push(q.stack1, x);\r\n }",
"synchronized void setHead(Recycler.WeakOrderQueue queue)\r\n/* 419: */ {\r\n/* 420:451 */ Recycler.WeakOrderQueue.access$1700(queue, this.head);\r\n/* 421:452 */ this.head = queue;\r\n/* 422: */ }",
"public void requeue() {\n\t\tenqueue(queue.removeFirst());\n\t}",
"public void setQ(byte[] value) {\n this.q = ((byte[]) value);\n }",
"public void setPriorityQueue() {\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tif (leafEntries[i].getFrequency() > 0)\n\t\t\t\tpq.add(new BinaryTree<HuffmanData>(leafEntries[i]));\n\t\t}\n\t}",
"public void queue(Object newItem){\n if(isFull()){\n System.out.println(\"queue is full\");\n return;\n }\n ArrayQueue[++rear] = newItem;\n if(front == -1)\n front = 0;\n \n }",
"public MyQueue() {\n push=new Stack<>();\n pull=new Stack<>();\n }",
"@Override\n public void enqueue(T value) {\n myQ[myLength] = value;\n myLength++;\n }",
"public void setQueueBand(String newValue) {\n String oldValue = _queueBand;\n if (!oldValue.equals(newValue)) {\n _queueBand = newValue;\n firePropertyChange(QUEUE_BAND_PROP, oldValue, newValue);\n }\n }",
"public MessageSelectingQueueChannel(BlockingQueue<Message<?>> queue) {\n super(queue);\n \n this.queue = queue;\n }",
"public void setViewToControllerQueue(BlockingQueue<Message> v) \n {\n viewToControllerQueue = v;\n }",
"private void putOneQueue(BlockingQueue q, List buffer) throws InterruptedException {\n q.put(buffer);\n// System.err.println(Thread.currentThread().getName() + \"[MC] puts \" + buffer.size() + \" on \" + q.hashCode() + \" done\");\n// System.err.println(Thread.currentThread().getName() + \"[MC] puts \" + buffer.size() + \" on \" + q.hashCode() + \" first record \" + buffer.get(0));\n }",
"public void setParentAndCurrentWrd(String queueHead, WordCost wordCost)\n\t{\n\t\tif(parentsList.isEmpty())\n\t\t{\n\t\t\twordCost.setCurrentWord(queueHead);\n\t\t\twordCost.setParent(queueHead);\n\t\t\tthis.parent = queueHead;\n\t\t\tparentsList.add(queueHead);\n\t\t}else{\n\t\t\twordCost.setCurrentWord(queueHead);\n\t\t\twordCost.setParent(this.parent);\n\t\t\tparentsList.add(queueHead);\n\t\t}\n\t}",
"public MyQueue() {\n left = new Stack<>();\n right = new Stack<>();\n }",
"public StackWithOneQueue() {\n this.queue = new LinkedList<>();\n }",
"public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}",
"public DVDQueue() { \n\t\tqueue = new LinkedList<DVDPackage>(); \n\t}",
"public MyQueue() {\n storeStack = new Stack<>();\n }",
"private void updateQueueSize() {\n\t\tsims.minQS = state.queueSize < sims.minQS ? state.queueSize : sims.minQS;\n\t\tsims.maxQS = state.queueSize > sims.maxQS ? state.queueSize : sims.maxQS;\n\t}",
"public QueueExplorator() {\n\t\tqueue = new LinkedQueue<Square>();\t\n\t}",
"public MyQueue1() {\n storeStack = new Stack<>();\n }",
"public MyQueue() {\n rearStack = new Stack();\n frontStack = new Stack();\n }",
"public void setSubArray(com.walgreens.rxit.ch.cda.StrucDocSub[] subArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(subArray, SUB$2);\n }\n }",
"public void init(Queue<Values> queue);",
"public void newQueue(){\r\n\t\tgenerateQueue();\r\n\t\trefreshLeft = true;\r\n\t}",
"public void toQueueMode() {\n\t\t// TODO Write me!\n\t\t\n\t}",
"public MyQueue() {\n stack = new Stack<>();\n }",
"public MyQueue2() {\n storeStack = new Stack<>();\n }",
"@Override\r\n public void run() {\r\n \t// increases the internal producers counter of the queue by one.\r\n this.directory_queue.registerProducer();\r\n directory_queue.enqueue(this.root);\r\n try {\r\n \taddPath(this.root);\r\n } catch (IllegalArgumentException e) {\r\n \tSystem.err.println(e.toString());\r\n \t//e.printStackTrace();\r\n }\r\n // Unregisters a producer from the queue.\r\n this.directory_queue.unregisterProducer();\r\n }",
"public final void setSubSystem(SubSystem subSystem){\n this.peripheralSubSystem = subSystem;\n }",
"@Override\r\n public void setSubject(ISubject sub) {\n this.topic=sub;\r\n\r\n }",
"@Before\r\n public void setUp() {\r\n queue = new LinkedQueue<String> (initCapacity);\r\n }",
"public void setProcessTable(ProcessQueue pQ)\n\t{\n\t\tprocessTable = pQ;\n\t}",
"public void linkedListQueue(){\r\n\t\tfirst = null;\r\n\t\tlast = null;\r\n\t\tN = 0;\r\n\t}",
"public MyStack() {\n queue = new ArrayDeque<>();\n }",
"@Override\n\tpublic void addQueues(Queue... queue) {\n\t\tsuper.addQueues(queue);\n\t\tqueuesChanged();\n\t}",
"public Queue() {\n\t\tthis.front = null;\n\t\tthis.end = null;\n\t\tthis.current = null;\n\t}",
"@Builds(rule=\"<sub>\")\n\t\tprivate void handleSub(Deque<Object> q)\n\t\t{\n\t\t\tDummyObject o2 = (DummyObject) q.pop(); // o2\n\t\t\tDummyObject o1 = (DummyObject) q.pop(); // o1\n\t\t\tq.pop(); // symbol\n\t\t\tAdd a = new Add();\n\t\t\ta.left = o1;\n\t\t\ta.right = o2;\n\t\t\tq.push(a);\n\t\t}",
"public static void setSizeOfQueue(Label sizeOfQueueValue) {\n \tsizeOfQueueValue.setText(String.valueOf(Capture.getInspectionQueue().size()));\n }",
"public MyQueue() {\n front = null;\n rear = null;\n size = 0;\n }",
"public Queue(){\n first = null;\n last = null;\n N = 0;\n }",
"public BlaqDeque(){super();}",
"public CincamimisQueue()\r\n {\r\n measurementQueue=new ArrayBlockingQueue(10,true);\r\n }",
"public Queue()\n\t{\n\t\thead = null;\n\t}",
"public void setSubArray(int i, com.walgreens.rxit.ch.cda.StrucDocSub sub)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocSub target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocSub)get_store().find_element_user(SUB$2, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(sub);\n }\n }",
"public void loadQueue(){\n for (Block block : this.blocks) {\n this.queue.add(block.getID());\n }\n this.queue_set = true;\n }",
"public void enQueue(LinkedListQueue queue)\n {\n if(queue == null){throw new IllegalArgumentException();}\n if(queue == this){throw new IllegalArgumentException();}\n\n if(this.isEmpty())\n {\n this.front = queue.front;\n this.rear = queue.rear;\n }\n else\n {\n if(!queue.isEmpty())\n {\n this.rear.setNext(queue.front);\n this.rear = queue.rear;\n }\n }\n\n queue.removeAll();\n }",
"public void setQueueID(java.lang.Object queueID) {\n this.queueID = queueID;\n }",
"public void setSubHandler(Handler<R, T> subHandler) {\n this.subHandler = subHandler;\n }",
"public Queue() {\n\t\tfirst = null;\n\t\tlast = null;\n\t\tN = 0;\n\t}",
"public SQueue(){\n\n\t}",
"public ConditionalGroupRoutingRule queue(DomainEntityRef queue) {\n this.queue = queue;\n return this;\n }",
"public MyQueue() {\n stk1 = new Stack<>();\n stk2 = new Stack<>();\n }",
"public static void setCoreSub(ArrayList<Subject> aCoreSub) {\n coreSub = aCoreSub;\n }",
"myQueue(int size){\n }",
"public MyStack() {\n queueA = new LinkedList<>();\n queueB = new LinkedList<>();\n }",
"public MyQueue232() {\n stackIn = new Stack<Integer>();\n stackOut = new Stack<Integer>();\n isIn = true;\n }",
"void clear(){\n this.queueArray = (T[]) new Object[0];\n this.tail = 0;\n }",
"void runQueue();",
"public Deque() {\n size = 0;\n\n }",
"@Override\r\n\tpublic void run() {\n\t\tvfBest();\r\n\t\tif(currQSize > maxQSize){\r\n\t\t\tDTS(Prey.currentTrajectory.peek().qCounter,vFBestNode.qCounter);\r\n\t\t\tSystem.out.println(\"Queue Cut\");\r\n\t\t}\r\n\t\t\r\n\t}",
"public MyQueue() {\n s1 = new Stack<>();\n s2 = new Stack<>();\n }",
"public void setSubJobContainer(Map<String, Object> subJobContainer) {\n\t\tthis.subJobContainer = subJobContainer;\n\t}",
"public ResizingArrayDeque() {\n q = (Item[]) new Object[2];\n N = 0;\n first = 0;\n last = 0;\n }",
"private void enterToRunwayQueue() {\n\t\tqueue.insert(this);\n\t}",
"public MyQueue() {\n pushStack = new Stack<>();\n popStack = new Stack<>();\n }",
"@BeforeEach\n void setup() {\n queue = new StringQueue(6);\n }",
"@Test\n public void testSetValidQueueItem() throws Exception {\n List<MediaSessionCompat.QueueItem> queue = QueueHelper.getPlayingQueueFromSearch(\n \" \", null, provider);\n\n int expectedItemIndex = queue.size() - 1;\n MediaSessionCompat.QueueItem expectedItem = queue.get(expectedItemIndex);\n // Latch for 3 tests\n CountDownLatch latch = new CountDownLatch(3);\n QueueManager queueManager = createQueueManagerWithValidation(latch, expectedItemIndex,\n queue);\n\n // test 1: set the current queue\n queueManager.setCurrentQueue(\"Queue 1\", queue);\n\n // test 2: set queue index to the expectedItem using its queueId\n assertTrue(queueManager.setCurrentQueueItem(expectedItem.getQueueId()));\n\n // test 3: set queue index to the expectedItem using its mediaId\n assertTrue(queueManager.setCurrentQueueItem(expectedItem.getDescription().getMediaId()));\n\n latch.await(5, TimeUnit.SECONDS);\n }",
"public Queue()\n\t{\n\t\tsuper();\n\t}",
"public QueueGUI(Queue queue) {\n this.queue = queue;\n setTitle(\"Queue\");\n\n splitPane = new JSplitPane();\n getContentPane().add(splitPane);\n\n queueInfoPanel = new JPanel();\n queueButtonsPanel = new JPanel();\n\n queueInfoPanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n queueButtonsPanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n\n initializePanels();\n\n splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);\n splitPane.setTopComponent(queueInfoPanel);\n splitPane.setBottomComponent(queueButtonsPanel);\n\n add(splitPane);\n\n setLocationRelativeTo(null);\n setSize(600,600);\n setUndecorated(false);\n setVisible(true);\n }",
"public interface Queue {\n\tpublic Set getGatheredElements();\n\tpublic Set getProcessedElements();\n\tpublic int getQueueSize(int level);\n\tpublic int getProcessedSize();\n\tpublic int getGatheredSize();\n\tpublic void setMaxElements(int elements);\n\tpublic Object pop(int level);\n\tpublic boolean push(Object task, int level);\n\tpublic void clear();\n}",
"public MyQueue() {\n queue = new PriorityQueue<>();\n }",
"public void onQueue();",
"public void setOutputQueue(OutputQueue queue) {\n\texternalOutputQueue = true;\n\toutputQueue = queue;\n }",
"private synchronized void refreshQueuePriority() {\n BlockingQueue<Message> newQueue;\n if(highPriorityMode) {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, HighPriorityModeComparator.COMPARATOR);\n } else {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, NoPriorityModeComparator.COMPARATOR);\n }\n this.queue.drainTo(newQueue);\n this.queue = newQueue;\n latch.countDown();\n }",
"public void queueArraySetKeyValue(int i, String key, String value){\n\t\tqueueArray[i][0] = key;\n\t\tqueueArray[i][1] = value;\n\t}",
"@Override\n public void enqueue(T item) {\n if(inner_list == null){\n inner_list = new List<T>(item);\n }\n\n // otherwise \n else {\n inner_list.append(item);\n }\n\n }",
"public void setControllerToViewQueue(BlockingQueue<Message> c) \n\t{\n\t\tcontrollerToViewQueue = c;\n }",
"@Override\n protected String getQueueName() {return _queueName;}",
"public MyStack() {\n queue = new LinkedList<>();\n }",
"public DirtyRegionQueue() {\r\n\t\tsuper();\r\n\t}",
"public BoundedQueue(int size){\n queueArray = (T[]) new Object[size];\n tail = 0;\n }",
"public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }"
] | [
"0.6710857",
"0.591957",
"0.5850726",
"0.5789319",
"0.57270193",
"0.5724692",
"0.56721175",
"0.5645705",
"0.56080294",
"0.55804855",
"0.5557746",
"0.55479723",
"0.5504272",
"0.5489639",
"0.5484778",
"0.54777724",
"0.54643697",
"0.5447532",
"0.5441398",
"0.5439443",
"0.54356",
"0.54326546",
"0.5427783",
"0.54222584",
"0.5404553",
"0.5397807",
"0.53967905",
"0.53942865",
"0.5380221",
"0.53760976",
"0.5370674",
"0.53386706",
"0.5321889",
"0.53056103",
"0.5302814",
"0.5292206",
"0.52896047",
"0.5273494",
"0.52623516",
"0.52612925",
"0.52540255",
"0.5245722",
"0.5235825",
"0.52338564",
"0.5233488",
"0.52168626",
"0.5178306",
"0.5166546",
"0.51634693",
"0.51483715",
"0.514135",
"0.5141279",
"0.51400554",
"0.51399124",
"0.5134696",
"0.51338893",
"0.5133723",
"0.51217335",
"0.512142",
"0.5108805",
"0.51043254",
"0.51008195",
"0.5095664",
"0.5093378",
"0.50897896",
"0.50886416",
"0.50544363",
"0.5045531",
"0.5039745",
"0.503401",
"0.5031091",
"0.5023513",
"0.5019552",
"0.50159633",
"0.5015901",
"0.5005887",
"0.5004636",
"0.5004315",
"0.5001048",
"0.49982128",
"0.4996739",
"0.49966514",
"0.49958912",
"0.4995151",
"0.49880475",
"0.4983445",
"0.4980343",
"0.49753255",
"0.4968768",
"0.4965276",
"0.49585152",
"0.49477306",
"0.4940455",
"0.49373835",
"0.4937251",
"0.49358016",
"0.49334005",
"0.49284926",
"0.4928471",
"0.4925352"
] | 0.81573915 | 0 |
Set the receiving mode. | public void setReceiveMode(ServiceBusReceiveMode receiveMode) {
this.receiveMode = receiveMode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setReceiverMode(CardSet cardSetToAppend) {\n setReceiverMode(this.cardSet.canAcceptCards(cardSetToAppend));\n }",
"public abstract void setBufferMode(int mode);",
"public void setTransmitMode(String transmitMode)\r\n\t{\r\n\t\tthis.transmitMode = transmitMode;\r\n\t}",
"public void setReceiverMode(boolean receiverMode) {\n if (this.receiverMode == receiverMode) {\n return;\n }\n this.receiverMode = receiverMode;\n dropTarget.setVisible(receiverMode);\n getChildren().remove(dropTarget);\n getChildren().add(dropTarget);\n }",
"private void sendModeChanged(\n SimulcastMode newMode, SimulcastMode oldMode)\n {\n if (newMode == null)\n {\n // Now, why would you want to do that?\n sendMode = null;\n logger.debug(\"Setting simulcastMode to null.\");\n return;\n }\n else if (newMode == SimulcastMode.REWRITING)\n {\n logger.debug(\"Setting simulcastMode to rewriting mode.\");\n sendMode = new RewritingSendMode(this);\n }\n else if (newMode == SimulcastMode.SWITCHING)\n {\n logger.debug(\"Setting simulcastMode to switching mode.\");\n sendMode = new SwitchingSendMode(this);\n }\n\n this.sendMode.receive(targetOrder);\n }",
"public void setMode(String channel, String mode);",
"public String getTransmitMode()\r\n\t{\r\n\t\treturn transmitMode;\r\n\t}",
"public void setMode(int mode){\n mMode = mode;\n }",
"public void setReceiveNum(Long receiveNum) {\r\n this.receiveNum = receiveNum;\r\n }",
"void setReceiveSocket(LcapSocket socket) {\n rcvSocket = socket;\n }",
"public void setMode(int mode)\r\n {\r\n \r\n setMode_0(nativeObj, mode);\r\n \r\n return;\r\n }",
"@Override\n\tpublic void setMode(int mode) {\n\t\t\n\t}",
"private void setRingerMode(XmlPullParser parser) throws XmlPullParserException, IOException {\n\n\t\tparser.require(XmlPullParser.START_TAG, null, \"ringer_mode\");\n\n\t\tif (parser.getAttributeValue(null, \"mode\") != null) {\n\t\t\tif (parser.getAttributeValue(null, \"mode\").equals(\"normal\")) {\n\t\t\t\tprefEdit.putString(\"ringer_mode\", \"normal\");\n\t\t\t\tLog.i(TAG, \"RingerMode: normal\");\n\t\t\t} else if (parser.getAttributeValue(null, \"mode\").equals(\"silent\")) {\n\t\t\t\tprefEdit.putString(\"ringer_mode\", \"silent\");\n\t\t\t\tLog.i(TAG, \"RingerMode: silent\");\n\t\t\t} else if (parser.getAttributeValue(null, \"mode\").equals(\"vibrate\")) {\n\t\t\t\tprefEdit.putString(\"ringer_mode\", \"vibrate\");\n\t\t\t\tLog.i(TAG, \"RingerMode: vibrate\");\n\t\t\t} else if (parser.getAttributeValue(null, \"mode\").equals(\"unchanged\")) {\n\t\t\t\tprefEdit.putString(\"ringer_mode\", \"unchanged\");\n\t\t\t\tLog.i(TAG, \"RingerMode: unchanged\");\n\t\t\t} else {\n\t\t\t\tLog.e(TAG, \"RingerMode: Invalid Argument!\");\n\t\t\t}\n\t\t} else {\n\t\t\tLog.i(TAG, \"RingerMode: No change.\");\n\t\t}\n\n\t\tparser.nextTag();\n\t}",
"public void setMode(int mode) {\r\n\t\tthis.mode = mode;\r\n\t}",
"public void setMode(int mode) {\n this.mode = mode;\n }",
"void setSlaveMode();",
"public void setMode(int inMode) {\n mode = inMode;\n }",
"public void setAudioMode(int mode) {\n if (audioManager.getRingerMode() != mode) {\n audioManager.setRingerMode(mode);\n }\n }",
"public void setMode(short mode)\n\t{\n\t\tthis.mode = mode;\n\t}",
"public abstract void setDecryptMode();",
"boolean setMode(int mode);",
"public void setMode(int mode) {\n \t\treset();\n \t}",
"public void setMode(InteractMode newMode) {\r\n\t\tcurrentMode = newMode;\r\n\t\tlastModeSwitch = System.currentTimeMillis();\r\n\t}",
"public void setPortMode(String mode){\r\n\t\tthis.portMode=mode;\r\n\t\tif(!portMode.equals(\"floating\")){\r\n\t\t\tthis.currentPort=(new Integer(portMode)).intValue();\r\n\t\t}\r\n\t}",
"public void setTerminalMode(byte[] terminal_mode){\n this.terminal_mode=terminal_mode;\n }",
"protected void setReceiveMessage(byte[] rmsg)\n\t{\n\t\t//#CM29519\n\t\t// Sets data to communication message buffer\n\t\tfor (int i=0; i < LEN_ID27; i++)\n\t\t{\n\t\t\twLocalBuffer[i] = rmsg[i] ;\n\t\t}\n\t\twDataBuffer = wLocalBuffer ;\n\t}",
"public void setDeliveryMode(int value) {\n this.deliveryMode = value;\n }",
"public abstract int getBufferMode();",
"public void setMode(String mode) \n\t{\n\t\tthis.mode = string2Octal(mode);\n\t}",
"public void setMode(String mode){\n\t\tthis.mode=mode;\n\t}",
"public void setMode(\n @Pattern(regexp = \"FIXED_WIDTH_RECORD|DELIMITED_RECORD\", flags = Pattern.Flag.CASE_INSENSITIVE) String mode)\n {\n this.mode = RECORD_READER_MODE.valueOf(mode.toUpperCase());\n }",
"public void setMode(boolean value) {\n this.mode = value;\n }",
"public void setReceiveType (java.lang.String receiveType) {\n\t\tthis.receiveType = receiveType;\n\t}",
"public void setMode(String mode) {\n this.mode = mode;\n }",
"public void setMode(int mode) {\r\n this.mode = mode;\r\n setSleeping(mode == MODE_EMPTY);\r\n repaint();\r\n }",
"public final int get_relay_mode () {\n\t\treturn relay_mode;\n\t}",
"public void setReceiver(Receiver receiver) {\n\t this.receiver = receiver;\n\t }",
"public void setReceiveTimeout(int receiveTimeout){\n return; //TODO codavaj!!\n }",
"public void setMode(final String mode) {\n this.mode = checkEmpty(mode);\n }",
"@Override\r\n\tprotected int _switchMode(boolean normallyMode)\r\n\t\t\tthrows NotOpenSerialException, SerialPortErrorException, SendTimeoutException, \r\n\t\t RecvTimeoutException, ResponseCodeException {\n\t\treturn 0;\r\n\t}",
"public void setRunningMode(boolean isRunning) {\n\t\tif (isRunning) {\n\t\t\tthis.setMsgItem(\"mode\", \"C\");\n\t\t} else {\n\t\t\tthis.setMsgItem(\"mode\", \"S\");\n\t\t}\n\n\t}",
"public java.lang.String getReceiveType () {\n\t\treturn receiveType;\n\t}",
"public void change() {\r\n this.mode = !this.mode;\r\n }",
"private void changeAudioMode(Context context, String senderNumber, String message, AudioManager audioManager) {\n // Retrieves a map of extended data from the intent.\n switch (audioManager.getRingerMode()) {\n case AudioManager.RINGER_MODE_SILENT:\n //audioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n //raiseVolume(audioManager);\n audioManager.setStreamVolume(AudioManager.STREAM_RING, audioManager.getStreamMaxVolume(AudioManager.STREAM_RING), 0);\n break;\n case AudioManager.RINGER_MODE_NORMAL:\n //audioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, audioManager.getStreamMaxVolume(AudioManager.STREAM_VOICE_CALL),0);\n audioManager.setStreamVolume(AudioManager.STREAM_RING, audioManager.getStreamMaxVolume(AudioManager.STREAM_RING), 0);\n break;\n case AudioManager.RINGER_MODE_VIBRATE:\n audioManager.setStreamVolume(AudioManager.STREAM_RING, audioManager.getStreamMaxVolume(AudioManager.STREAM_RING), 0);\n break;\n }\n }",
"void setTransmissionType(NegotiationTransmissionType negotiationTransmissionType);",
"public void setNotifMode(String notifMode) {\r\n\t\tthis.notifMode = notifMode;\r\n\t}",
"public void setDTS_DownmixMode(String mode) {\n int i = Integer.parseInt(mode);\n if (i >= 0 && i <= 1) {\n writeSysfs(AUIDO_DSP_DTS_DEC, \"dtsdmxmode\" + \" \" + mode);\n } else {\n writeSysfs(AUIDO_DSP_DTS_DEC, \"dtsdmxmode\" + \" \" + \"0\");\n }\n }",
"public void setReceiver (Receiver receiver) {\n\t\t_receiver = receiver;\n\t}",
"public void setMode(int i) {\r\n\t\t_mode = i;\r\n\t}",
"public void setWmode(String wmode) {\n\t\tthis.wmode = wmode;\n\t\tthis.handleConfig(\"wmode\", wmode);\n\t}",
"public void setDebugReceive( boolean debug_on_off )\n {\n debug_receive = debug_on_off;\n }",
"@Override\n\tpublic void receive(boolean value) {\n\t\t\n\t}",
"public void setMode(int newMode) {\n\t\tint oldMode = mode; \n\t\tmode = newMode;\n\t\tif(mode != REPAIR_MODE || mode != SELL_MODE) \n\t\t\tlblMouse.setText(\"\");\n\t\tif(mode == REPAIR_MODE) \n\t\t\tlblMouse.setText(\"REPAIR\");\n\t\telse if(mode == SELL_MODE) \n\t\t\tlblMouse.setText(\"SELL\"); \n\t\tif(mode == PAUSE_MODE) { \n\t\t\tlblPause.setVisible(true);\n\t\t\tgameEngine.togglePaused();\n\t\t\t//gameEngine.stopRender(); \n\t\t\tdoTrapThread = false;\n\t\t\tdoMonsterThread = false;\n\t\t\tdoMapThread = false;\n\t\t\tgameHud.toggleButtons();\n\t\t}\n\t\tif(oldMode == PAUSE_MODE && mode != PAUSE_MODE) {\n\t\t\tgameHud.toggleButtons();\n\t\t\tgameEngine.togglePaused();\n\t\t\t//gameEngine.startRender();\n\t\t\tdoTrapThread = true;\n\t\t\tdoMonsterThread = true;\n\t\t\tdoMapThread = true;\n\t\t\tlblPause.setVisible(false);\n\t\t}\n\t\t\n\t\tif(oldMode == BUY_MODE && mode != BUY_MODE) {\n\t\t\t//purchase = null;\n\t\t\t\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic boolean canReceive() {\n\t\treturn false;\n\t}",
"public void setReceiver(String receiver) {\n Receiver = receiver;\n }",
"public BlinkToRadioMsg() {\n super(DEFAULT_MESSAGE_SIZE);\n amTypeSet(AM_TYPE);\n }",
"public void setReceiveFileWay(String receiveFileWay) {\n this.receiveFileWay = receiveFileWay == null ? null : receiveFileWay.trim();\n }",
"public void setReceiveTimeout(long receiveTimeout) {\n\t\tthis.receiveTimeout = receiveTimeout;\n\t}",
"public void setProgramMode(ProgramMode newValue) {\n ProgramMode oldValue = _programMode;\n if (oldValue != newValue) {\n _programMode = newValue;\n firePropertyChange(PROGRAM_MODE_PROP, oldValue, newValue);\n }\n }",
"public void setReceiver(String receiver) {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthis.m = new SwiftMessage(true);\n\t\t}\n\t\tSwiftBlock2 b2 = getSwiftMessage().getBlock2();\n\t\tif (b2.isInput()) {\n\t\t\t((SwiftBlock2Input)b2).setReceiver(receiver);\n\t\t}\n\t}",
"public void setProcessingMode(int mode) {\n\tif (mode != NON_BLOCKING && mode != DEMAND_DRIVEN)\n throw new IllegalArgumentException\n (\"Mode must be NON_BLOCKING or DEMAND_DRIVEN\") ;\n\n\tprocessingMode = mode ;\n }",
"void changeMode(int mode);",
"public SocketChannelConfig setReceiveBufferSize(int receiveBufferSize)\r\n/* 202: */ {\r\n/* 203: */ try\r\n/* 204: */ {\r\n/* 205:211 */ this.javaSocket.setReceiveBufferSize(receiveBufferSize);\r\n/* 206: */ }\r\n/* 207: */ catch (SocketException e)\r\n/* 208: */ {\r\n/* 209:213 */ throw new ChannelException(e);\r\n/* 210: */ }\r\n/* 211:215 */ return this;\r\n/* 212: */ }",
"void setTransmissionState(NegotiationTransmissionState negotiationTransmissionState);",
"public void setFlagsreceived(boolean flagsreceived) {\r\n this.flagsreceived = flagsreceived;\r\n }",
"public void emergencyStopMode() {\n this.outgoing.send(new Message(MessageKind.MODE_m, Mailbox.Mode.EMERGENCY_STOP));\n this.mode = State.EMERGENCY_STOP;\n }",
"public void setReceiveObject(int receiveObject) {\n\t\tthis.receiveObject = receiveObject;\n\t}",
"public SocketChannelConfig setAutoRead(boolean autoRead)\r\n/* 326: */ {\r\n/* 327:316 */ super.setAutoRead(autoRead);\r\n/* 328:317 */ return this;\r\n/* 329: */ }",
"@Override\n public void setMode(RunMode mode) {\n\n }",
"public final void setSecureMessaging() {\n\theader[0] = (byte) (header[0] | 0x0C);\n }",
"public void setPty(boolean enable){ \n pty=enable; \n }",
"public void setReceiveTime(Date receiveTime) {\n this.receiveTime = receiveTime;\n }",
"public void setOnReceiveCalled() {\n this.f49 = true;\n }",
"public void setMetrMode(final int[] mode) {\n\t\tif (mode==null || mode.length!=4) {\n\t\t\tthrow new IllegalArgumentException(\"Invalide metrology mode\");\n\t\t}\n\t\tThread t = new Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tString modeStr=\"[\"+mode[0]+\", \"+mode[1]+\", \"+mode[2]+\", \"+mode[3]+\"]\";\n\t\t\t\ttry {\n\t\t\t\t\tlogger.log(AcsLogLevel.DEBUG,\"Setting metrology mode to \"+modeStr);\n\t\t\t\t\tmount.SET_METR_MODE(mode);\n\t\t\t\t\tlogger.log(AcsLogLevel.DEBUG,\"Metrology mode set to \"+modeStr);\n\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\tAcsJMetrologyEx ex = new AcsJMetrologyEx(t);\n\t\t\t\t\tex.setAntennatype(AntennaType.VERTEX.description);\n\t\t\t\t\tex.setOperation(\"Invalid metrology mode\");\n\t\t\t\t\tnotifier.commandExecuted(0,\"Set Vertex metr mode to \"+modeStr,\"Error from remote component while setting metrology mode to \"+modeStr,ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tt.setDaemon(true);\n\t\tt.setName(\"Vertex:setMetrMode\");\n\t\tt.start();\n\t}",
"public void setReceiveid(Integer receiveid) {\n this.receiveid = receiveid;\n }",
"public void setMode(DcMotor.RunMode mode) {\n lDrive.setMode(mode);\n rDrive.setMode(mode);\n }",
"public void setReceiveTime(Date receiveTime) {\r\n this.receiveTime = receiveTime;\r\n }",
"public void setReceiveTime(Date receiveTime) {\n this.receiveTime = receiveTime;\n }",
"public void setMotionMode(int mode) {\n\t\tm_motionMode = mode;\n\t}",
"public void setBinmode() {\n }",
"public static void setCurrentMode(Modes mode){\n\t\tcurrentMode = mode;\n\t}",
"public void setMode(String mode) {\n this.mode = mode == null ? null : mode.trim();\n }",
"public abstract OpenMode getMode() throws MessagingException;",
"public void setRemoteRingbackTone(String ring);",
"private void setBootReceiverEnabled(boolean enabled) {\n int enabledState;\n if (enabled) enabledState = PackageManager.COMPONENT_ENABLED_STATE_ENABLED;\n else enabledState = PackageManager.COMPONENT_ENABLED_STATE_DISABLED;\n\n getPackageManager().setComponentEnabledSetting(\n new ComponentName(this, BootReceiver.class),\n enabledState,\n PackageManager.DONT_KILL_APP);\n }",
"public void set_transaction_mode(TransactionType mode){\n\t\ttransaction_type = mode;\n\t}",
"private void set(){\n resetBuffer();\n }",
"public void setPlayMode(PlayMode playMode) {\n // there can be a race condition where user tries to open file, this sets\n // playMode to PLAYBACK but run() method in ViewLoop sets it back to WAITING\n this.playMode = playMode;\n// log.info(\"set playMode=\"+playMode);\n }",
"public void setListening(boolean z) {\n this.mKeyguardStatusBar.setListening(z);\n C0940QS qs = this.mQs;\n if (qs != null) {\n qs.setListening(z);\n }\n }",
"public final void setCurrentMode(final String mode) {\n mCurrentMode = mode;\n }",
"public void setMode(String value) {\n _avTable.set(ATTR_MODE, value);\n }",
"public String getReceiveFileWay() {\n return receiveFileWay;\n }",
"public void setSupportMode(int mode) {\n // skip to avoid useless operation\n if (mSupportMode == mode) return;\n\n if (mode == MODE_AUTOMOTIVE) {\n mSupportMode = MODE_AUTOMOTIVE;\n setupAutomotiveMode();\n } else if (mode == MODE_ONE_MULTIILINE_TEXTVIEW) {\n mSupportMode = MODE_ONE_MULTIILINE_TEXTVIEW;\n if (null != mPrimaryView) {\n mPrimaryView.setState(ActionBarTextView.PRIMARY_MULTILINE_ONLY);\n }\n setSecondaryVisibility(View.GONE);\n\n } else {\n mSupportMode = MODE_DEFAULT;\n }\n getDefaultHeight();\n adjustPrimaryState();\n adjustSecondaryState();\n }",
"public Long getReceiveNum() {\r\n return receiveNum;\r\n }",
"public synchronized void setReceived() {\n\t\t_received = true;\n\t\tthis.notifyAll();\n\t}",
"public void setReceiveEvent(EventOccurrence receiveEvent);",
"public void changeMode() {\n methodMode = !methodMode;\n }",
"PlayingGameModeTransmitter getPlayingGameModeTransmitter();",
"public void setMsg(boolean status){\r\n\t\tthis.send = status;\r\n\t}",
"private void setAudioProfilModem() {\n int ringerMode = mAudioManager.getRingerModeInternal();\n ContentResolver mResolver = mContext.getContentResolver();\n Vibrator vibrator = (Vibrator) mContext\n .getSystemService(Context.VIBRATOR_SERVICE);\n boolean hasVibrator = vibrator == null ? false : vibrator.hasVibrator();\n if (AudioManager.RINGER_MODE_SILENT == ringerMode) {\n if (hasVibrator) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_VIBRATE);\n /* @} */\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_ON);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_ON);\n } else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n /* @} */\n }\n } else if (AudioManager.RINGER_MODE_VIBRATE == ringerMode) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_OUTDOOR);\n /* @} */\n }else if (AudioManager.RINGER_MODE_OUTDOOR == ringerMode) {//add by wanglei for outdoor mode\n Settings.System.putInt(mResolver,Settings.System.SOUND_EFFECTS_ENABLED, 1);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n }else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_SILENT);\n /* @} */\n if (hasVibrator) {\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_OFF);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_OFF);\n }\n }\n }"
] | [
"0.6611133",
"0.63515985",
"0.62866783",
"0.6077268",
"0.5936673",
"0.5891288",
"0.5783868",
"0.57260257",
"0.57022923",
"0.5680417",
"0.56669384",
"0.565646",
"0.56301147",
"0.5620457",
"0.560214",
"0.55821896",
"0.5576896",
"0.5564774",
"0.555951",
"0.55363613",
"0.552535",
"0.5519972",
"0.55093515",
"0.5506585",
"0.5506087",
"0.54630846",
"0.54467726",
"0.5438878",
"0.5416907",
"0.5413121",
"0.5409568",
"0.5409543",
"0.54014933",
"0.53859043",
"0.536311",
"0.5306174",
"0.5297805",
"0.52826",
"0.52731586",
"0.5268984",
"0.52607644",
"0.5252122",
"0.52517974",
"0.5247013",
"0.5227437",
"0.5225528",
"0.521936",
"0.5211739",
"0.51945275",
"0.51882607",
"0.51849073",
"0.5178208",
"0.51697856",
"0.5150836",
"0.5129764",
"0.5127489",
"0.51170594",
"0.51127326",
"0.5110621",
"0.5107807",
"0.51033723",
"0.51002",
"0.50995684",
"0.5086725",
"0.5080457",
"0.50737613",
"0.507197",
"0.5071781",
"0.5067725",
"0.50581896",
"0.50476974",
"0.50468534",
"0.50458777",
"0.5007426",
"0.50028276",
"0.4996615",
"0.49943382",
"0.49849588",
"0.4982909",
"0.49806294",
"0.49805915",
"0.49795067",
"0.49754244",
"0.4966113",
"0.496194",
"0.49583718",
"0.4947894",
"0.49381095",
"0.4924712",
"0.49229795",
"0.49151182",
"0.48998293",
"0.48915473",
"0.48725867",
"0.48584437",
"0.48470885",
"0.48465192",
"0.48457736",
"0.4845222",
"0.48372048"
] | 0.6757908 | 0 |
Set the subscription name. | public void setSubscriptionName(String subscriptionName) {
this.subscriptionName = subscriptionName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setName(java.lang.String name)\r\n\t{\r\n\t\tsetName(getContext(), name);\r\n\t}",
"public void setName (String name) {\n this.name = name;\n NameRegistrar.register (\"server.\"+name, this);\n }",
"public final void setName(java.lang.String name)\n\t{\n\t\tsetName(getContext(), name);\n\t}",
"public void setName(String name) {\n _name = name;\n }",
"@Override\n public void setName(String name)\n {\n checkState();\n this.name = name;\n }",
"public void setName(String name) {\r\n\t\t_name = name;\r\n\t}",
"public final void setName(String name) {\n\t\tthis.name = name;\n\t}",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName( final String name )\r\n {\r\n this.name = name;\r\n }",
"public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t\tfireChange();\n\t}",
"public void setName(java.lang.String _name)\n {\n name = _name;\n }",
"public void setName(java.lang.String _name)\n {\n name = _name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\r\n this._name = name;\r\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName( final String name )\n\t{\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n if (!name.isEmpty()) {\n this.name = name;\n }\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}",
"public void setName(String name) {\n synchronized(this) {\n this.name = name;\n nameExplicitlySet = true;\n }\n }",
"public void setName(final java.lang.String name) {\n this.name = name;\n }",
"public void setName(final java.lang.String name) {\r\n this._name = name;\r\n }",
"public void setName(String s) {\n this.name = s;\n }",
"public void setName(String n) {\r\n name = n;\r\n }",
"public final void setName(String name) {_name = name;}",
"protected void setName(String name) {\n this._name = name;\n }",
"public void setName(final String name) {\n mName = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"public void setName(String _name) {\n this._name = _name;\n }",
"public synchronized void setName(Identifier name) {\n Identifier old = this.name;\n this.name = name;\n firePropertyChange (PROP_NAME, old, name);\n }",
"public void setName (String n) {\n name = n;\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n\t this.name = name;\n\t }",
"public void setName(final String name);",
"public void setName(String inName)\n {\n name = inName;\n }",
"public void setName( String name ) {\n this.name = name;\n }",
"public void setName(java.lang.String value) {\n this.name = value;\n }",
"public void setName(QName aName)\r\n {\r\n mName = aName;\r\n }",
"public void setName (String n){\n\t\tname = n;\n\t}",
"public void setName(String name) {\n\n this.name = name;\n }",
"public void setName(String name)\n\t{\n\t\tthis._name=name;\n\t}",
"public final void setName(final String inName) {\n mName = inName;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}",
"public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}",
"public void setName(QName name)\n {\n this.name = name;\n }",
"public void setName( String name )\n {\n this.name = name;\n }",
"public void setName( String name )\n {\n this.name = name;\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String _name)\r\n\t{\r\n\t\tthis._name=_name;\r\n\t}",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"protected void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}"
] | [
"0.67380977",
"0.6713818",
"0.6699601",
"0.66506064",
"0.6649229",
"0.66459465",
"0.66450274",
"0.66431564",
"0.6628797",
"0.66277015",
"0.66277015",
"0.66277015",
"0.66277015",
"0.66252345",
"0.66237557",
"0.66237557",
"0.6623477",
"0.6618091",
"0.6618091",
"0.6614768",
"0.6614768",
"0.6612272",
"0.6612272",
"0.6612272",
"0.6612272",
"0.6606939",
"0.660578",
"0.660578",
"0.660486",
"0.66004705",
"0.6594091",
"0.65859485",
"0.6585018",
"0.65790176",
"0.6573958",
"0.6567993",
"0.6555165",
"0.6544488",
"0.65400505",
"0.6528076",
"0.6524933",
"0.6524933",
"0.6517675",
"0.65097696",
"0.65032244",
"0.6501437",
"0.6501437",
"0.6501437",
"0.6496879",
"0.64823",
"0.64801574",
"0.64761686",
"0.64726317",
"0.6469289",
"0.6469005",
"0.64660597",
"0.64653766",
"0.64644086",
"0.64598864",
"0.6459727",
"0.6459727",
"0.6459727",
"0.6459727",
"0.6459727",
"0.64587593",
"0.64587593",
"0.64569277",
"0.645636",
"0.645636",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.6456233",
"0.64560527",
"0.6454378",
"0.6454378",
"0.6454378",
"0.6454378",
"0.6454378",
"0.6454378",
"0.6454378",
"0.6454378",
"0.6454378",
"0.6454378",
"0.6447861"
] | 0.6991971 | 0 |
Set the mau auto lock renew duration. | public void setMaxAutoLockRenewDuration(Duration maxAutoLockRenewDuration) {
this.maxAutoLockRenewDuration = maxAutoLockRenewDuration;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAutoLockTime(int seconds)\n {\n if(seconds >= 59 && seconds <= 7200)\n m_iAutoLockTime = seconds;\n }",
"public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }",
"synchronized void setExpiration(long newExpiration) {\n \texpiration = newExpiration;\n }",
"public void setTime(){\n Date currentDate = new Date();\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putLong(\"WAIT_TIME\", currentDate.getTime() + 1800000); //30 min\n editor.commit();\n }",
"private \n void setTimerForTokenRenewal(DelegationTokenToRenew token, \n boolean firstTime) throws IOException {\n \n // calculate timer time\n long now = System.currentTimeMillis();\n long renewIn;\n if(firstTime) {\n renewIn = now;\n } else {\n long expiresIn = (token.expirationDate - now); \n renewIn = now + expiresIn - expiresIn/10; // little bit before the expiration\n }\n \n // need to create new task every time\n TimerTask tTask = new RenewalTimerTask(token);\n token.setTimerTask(tTask); // keep reference to the timer\n\n renewalTimer.schedule(token.timerTask, new Date(renewIn));\n }",
"@Override\n public void setExpiration( Date arg0)\n {\n \n }",
"public void SetDuration(int duration)\n {\n TimerMax = duration;\n if (Timer > TimerMax)\n {\n Timer = TimerMax;\n }\n }",
"public void setRenewalEffectiveDate(java.util.Date value);",
"private static void setTimerForTokenRenewal(\n DelegationTokenToRenew token, boolean firstTime) {\n \n // calculate timer time\n long now = System.currentTimeMillis();\n long renewIn;\n if(firstTime) {\n renewIn = now;\n } else {\n long expiresIn = (token.expirationDate - now); \n renewIn = now + expiresIn - expiresIn/10; // little before expiration\n }\n \n try {\n // need to create new timer every time\n TimerTask tTask = new RenewalTimerTask(token);\n token.setTimerTask(tTask); // keep reference to the timer\n\n renewalTimer.schedule(token.timerTask, new Date(renewIn));\n } catch (Exception e) {\n LOG.warn(\"failed to schedule a task, token will not renew more\", e);\n }\n }",
"public void setBoostExpiration(){\r\n\t\tboostExpiration = GameController.getTimer() + 1000000000l * length;\r\n\t}",
"public long explicitAutoAssocSlotLifetime() {\n return expireAccounts ? 0 : THREE_MONTHS_IN_SECONDS;\n }",
"protected void scheduleExpiry()\n {\n long dtExpiry = 0L;\n int cDelay = OldOldCache.this.m_cExpiryDelay;\n if (cDelay > 0)\n {\n dtExpiry = getSafeTimeMillis() + cDelay;\n }\n setExpiryMillis(dtExpiry);\n }",
"public void setExpiryTime(java.util.Calendar param){\n localExpiryTimeTracker = true;\n \n this.localExpiryTime=param;\n \n\n }",
"public void setLastRenewedDate(Date lrd) { lastRenewedDate = lrd; }",
"void setVoteFinalizeDelaySeconds(long voteFinalizeDelaySeconds);",
"public void SetTimeRemaining(int value) {\n Timer = value;\n if (Timer > TimerMax)\n {\n Timer = TimerMax;\n }\n }",
"public void setUpdateWaitDuration( double inUpdateWait )\r\n {\r\n updateWait = inUpdateWait;\r\n }",
"public void setAutoResetDelay(int delay) {\n this.mAutoResetDelay = delay;\n }",
"public void setTimer() {\n\t\t\n\t}",
"public void setIncTimeout(int seconds);",
"@Override\n\tpublic void setTokenExpiryTime(long arg0) {\n\t\t\n\t}",
"@Override\n public void setAutoTimeRequired(ComponentName who, boolean required) {\n if (!mHasFeature) {\n return;\n }\n Objects.requireNonNull(who, \"ComponentName is null\");\n final CallerIdentity caller = getCallerIdentity(who);\n\n boolean requireAutoTimeChanged = false;\n synchronized (getLockObject()) {\n Preconditions.checkCallAuthorization(!isManagedProfile(caller.getUserId()),\n \"Managed profile cannot set auto time required\");\n ActiveAdmin admin = getProfileOwnerOrDeviceOwnerLocked(caller);\n if (admin.requireAutoTime != required) {\n admin.requireAutoTime = required;\n saveSettingsLocked(caller.getUserId());\n requireAutoTimeChanged = true;\n }\n }\n // requireAutoTime is now backed by DISALLOW_CONFIG_DATE_TIME restriction, so propagate\n // updated restrictions to the framework.\n if (requireAutoTimeChanged) {\n pushUserRestrictions(caller.getUserId());\n }\n // Turn AUTO_TIME on in settings if it is required\n if (required) {\n mInjector.binderWithCleanCallingIdentity(\n () -> mInjector.settingsGlobalPutInt(Settings.Global.AUTO_TIME,\n 1 /* AUTO_TIME on */));\n }\n DevicePolicyEventLogger\n .createEvent(DevicePolicyEnums.SET_AUTO_TIME_REQUIRED)\n .setAdmin(who)\n .setBoolean(required)\n .write();\n }",
"@Override\n public final void setCountdown(int newCountdown) {\n }",
"@Override public void checkpointReadLockTimeout(long val) {\n checkpointReadLockTimeout = val;\n }",
"public final void setExpiryTime(long expire) {\n\t\tm_tmo = expire;\n\t}",
"private void setLastCacheUpdateTimeMillis() {\n long currentMillis = System.currentTimeMillis();\n this.fileManager.writeToPreferences(this.context, SETTINGS_KEY, currentMillis);\n }",
"@Override\n public final void setExpiration(double expirationTime) {\n safetyHelper.setExpiration(expirationTime);\n }",
"public int getAutoLockTime()\n {\n return m_iAutoLockTime;\n }",
"public void setExpiryTime(long ldtExpiry)\n {\n m_metaInf.setExpiryTime(ldtExpiry);\n }",
"public void setLifetime(int seconds) {\n lifetime = seconds;\n }",
"public void setExpiration(long expiration) {\n this.expiration = expiration;\n }",
"void refreshLock(QName lockQName, String lockToken, long timeToLive);",
"public long syncRenew(String aSid, long aRequestedDuration)\n {\n SyncRenewOpenhomeOrgSubscriptionLongPoll1 sync = new SyncRenewOpenhomeOrgSubscriptionLongPoll1(this);\n beginRenew(aSid, aRequestedDuration, sync.getListener());\n sync.waitToComplete();\n sync.reportError();\n\n return sync.getDuration();\n }",
"long getExpiration();",
"public void setExpiryMillis(long lMillis)\n {\n m_dtExpiry = lMillis;\n }",
"public void setAuthLockTime(Date authLockTime) {\n this.authLockTime = authLockTime;\n }",
"public void setAcquireTimeoutMillis(Integer aquireTimeoutMillis) {\n pool.setAcquireTimeoutMillis(aquireTimeoutMillis);\n }",
"private synchronized void renewTimeout\n\t\t(Timer theTimer,\n\t\t JobFrontendRef theJobFrontend)\n\t\tthrows IOException\n\t\t{\n\t\tif (theTimer.isTriggered())\n\t\t\t{\n\t\t\ttheJobFrontend.renewLease (this);\n\t\t\t}\n\t\t}",
"public void setExpiryDelay(int cMillis)\n {\n m_cExpiryDelay = Math.max(cMillis, 0);\n }",
"private void setTimeLimit() {\n\t\t// Set the minimum time for \"Departing Time\" spinner\n\t\t// based on current selected combo box item\n\t\tview.setModifyTimeLimit(model.getDepartTime(view\n\t\t\t\t.getModifyStationIndex()));\n\t}",
"void updateNextUnblockTime(int t);",
"public void setTime(long elapseTime) {\r\n\t\tsecond = (elapseTime / 1000) % 60;\r\n\t\tminute = (elapseTime / 1000) / 60 % 60;\r\n\t\thour = ((elapseTime / 1000) / 3600) % 24;\t\r\n\t}",
"void lockTimeout(String lock,int seconds);",
"@Override\n public void setTxTimeoutInMillis(int ms) {\n Globals.lockingTimeout = ms;\n }",
"public void setUpdatime(Date updatime) {\n this.updatime = updatime;\n }",
"public void setExpiryDate(SIPDateOrDeltaSeconds e) {\n expiryDate = e ;\n }",
"public void setRechargeTime(int time)\n {\n\t rechargeTime = time;\n }",
"public Builder setExpirationDate(long value) {\n\n expirationDate_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }",
"private void setTimeLeft() {\n\t\tif (timeLeft == 1)\n\t\t\ttimer.cancel();\n\t\ttimeLeft--;\n\t}",
"private void setExpirationAlarmCheckLocked(Context context, int userHandle, boolean parent) {\n final long expiration = getPasswordExpirationLocked(null, userHandle, parent);\n final long now = System.currentTimeMillis();\n final long timeToExpire = expiration - now;\n final long alarmTime;\n if (expiration == 0) {\n // No expirations are currently configured: Cancel alarm.\n alarmTime = 0;\n } else if (timeToExpire <= 0) {\n // The password has already expired: Repeat every 24 hours.\n alarmTime = now + MS_PER_DAY;\n } else {\n // Selecting the next alarm time: Roll forward to the next 24 hour multiple before\n // the expiration time.\n long alarmInterval = timeToExpire % MS_PER_DAY;\n if (alarmInterval == 0) {\n alarmInterval = MS_PER_DAY;\n }\n alarmTime = now + alarmInterval;\n }\n\n mInjector.binderWithCleanCallingIdentity(() -> {\n int affectedUserHandle = parent ? getProfileParentId(userHandle) : userHandle;\n AlarmManager am = mInjector.getAlarmManager();\n // Broadcast alarms sent by system are immutable\n PendingIntent pi = PendingIntent.getBroadcastAsUser(context, REQUEST_EXPIRE_PASSWORD,\n new Intent(ACTION_EXPIRED_PASSWORD_NOTIFICATION),\n PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_UPDATE_CURRENT\n | PendingIntent.FLAG_IMMUTABLE,\n UserHandle.of(affectedUserHandle));\n am.cancel(pi);\n if (alarmTime != 0) {\n am.set(AlarmManager.RTC, alarmTime, pi);\n }\n });\n }",
"public void setLeaseExpired(Lease lease) throws DatabaseException, IllegalArgumentException;",
"public CoreCacheBuilder<K, V> setExpireAfterAccess(long value, TimeUnit timeUnit) {\n Objects.requireNonNull(timeUnit);\n final long expireAfterAccessNanos = timeUnit.toNanos(value);\n if (expireAfterAccessNanos <= 0) {\n throw new IllegalArgumentException(\"expireAfterAccess <= 0\");\n }\n this.expireAfterAccessNanos = expireAfterAccessNanos;\n return this;\n }",
"void setDuration(int duration);",
"public void setMaxTime(int aMaxTime)\n{\n // Set max time\n _maxTime = aMaxTime;\n \n // If time is greater than max-time, reset time to max time\n if(getTime()>_maxTime)\n setTime(_maxTime);\n}",
"public void setTimerInterval(long intervalTime){\n this.intervalTime = intervalTime;\n }",
"public void setExpireMinutes (int expireMinutes)\n\t{\n\t\tif (expireMinutes > 0)\n\t\t{\n\t\t\tm_expire = expireMinutes;\n\t\t\tlong addMS = 60000L * m_expire;\n\t\t\tm_timeExp = System.currentTimeMillis() + addMS;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm_expire = 0;\n\t\t\tm_timeExp = 0;\n\t\t}\n\t}",
"@Override\n public native void setAutoDelay(int ms);",
"public void uneMinuteDePlus() {\n\t\tthis.m = m+1 > 59 ? 0 : m+1;\n\t}",
"public void setDuration( Long duration );",
"public Builder setExpirationDate(long value) {\n bitField0_ |= 0x00000200;\n expirationDate_ = value;\n\n return this;\n }",
"public void setDuration(int val){this.duration = val;}",
"@Test\n public void expiry10m() {\n Cache<Integer, Integer> c = new Cache2kBuilder<Integer, Integer>() {}\n .expireAfterWrite(10, TimeUnit.MINUTES)\n /* ... set loader ... */\n .build();\n target.setCache(c);\n DefaultResiliencePolicy p = extractDefaultPolicy();\n assertEquals(TimeUnit.MINUTES.toMillis(10), p.getResilienceDuration());\n assertEquals(TimeUnit.MINUTES.toMillis(10), p.getMaxRetryInterval());\n assertEquals(TimeUnit.MINUTES.toMillis(1), p.getRetryInterval());\n }",
"public void setActivationDate() {\r\n\t\tif(this.removalDate != null) {\r\n\t\t\tthrow new RuntimeException(\"This item has already been activated\");\r\n\t\t}\r\n\t\tthis.activationDate = new Date(); \r\n\t\tGregorianCalendar cal = new GregorianCalendar();\r\n\t\t\r\n\t\t// set date for test\r\n\t\t//cal.set(2010, 10, 29, 02, 55);\r\n\t\t\r\n\t\t\r\n\t\tcal.add(GregorianCalendar.HOUR_OF_DAY, this.itemType.getItemDuration());\r\n\t\tthis.removalDate = cal.getTime();\r\n\t}",
"public void setTime(double minutes) {\n\t\t// implement this method.\n\n\t}",
"public void setLeaseExpired(String jobId, Lease lease) throws DatabaseException, IllegalArgumentException;",
"public void setTimer(long ms) {\r\n\t\tthis.timer = ms;\r\n\t}",
"public void setRechargeTime(Skills skill, int time);",
"private void updateMaximumTimeToLockLocked(@UserIdInt int userId) {\n if (isManagedProfile(userId)) {\n updateProfileLockTimeoutLocked(userId);\n }\n\n mInjector.binderWithCleanCallingIdentity(() -> {\n // Update the device timeout\n final int parentId = getProfileParentId(userId);\n final long timeMs = getMaximumTimeToLockPolicyFromAdmins(\n getActiveAdminsForLockscreenPoliciesLocked(parentId));\n\n final DevicePolicyData policy = getUserDataUnchecked(parentId);\n if (policy.mLastMaximumTimeToLock == timeMs) {\n return;\n }\n policy.mLastMaximumTimeToLock = timeMs;\n\n if (policy.mLastMaximumTimeToLock != Long.MAX_VALUE) {\n // Make sure KEEP_SCREEN_ON is disabled, since that\n // would allow bypassing of the maximum time to lock.\n mInjector.settingsGlobalPutInt(Settings.Global.STAY_ON_WHILE_PLUGGED_IN, 0);\n }\n getPowerManagerInternal().setMaximumScreenOffTimeoutFromDeviceAdmin(\n UserHandle.USER_SYSTEM, timeMs);\n });\n }",
"public void setExpirationDate(java.util.Date value);",
"void setRecurrenceDuration(int recurrenceDuration);",
"@Override\n protected void rescheduleForNewServerAccessCredits (final double time)\n {\n }",
"public boolean renew(long aTime) {\n if (isTainted.get())\n return false;\n\n synchronized(this) {\n if (System.currentTimeMillis() > theLeaseTime)\n return false;\n\n theLeaseTime = aTime;\n return true;\n }\n }",
"public void setNewRefreshTime(int refreshTime){\n resetTimer(refreshTime);\n }",
"public void resetTimeLimit();",
"public void setAutoDate(Date autoDate) {\r\n this.autoDate = autoDate;\r\n }",
"public void setMtime(Date mtime) {\n this.mtime = mtime;\n }",
"public void setModifiyTime(Date modifiyTime) {\n this.modifiyTime = modifiyTime;\n }",
"private void incrementShutdownTimer() {\t\r\n\t\tshutdownTime = Calendar.getInstance();\r\n\t\tshutdownTime.add(Calendar.SECOND, TIMEOUT_SECONDS);\r\n\t}",
"public void setRetentionExpiryDateTime(long expires) {\n\t\t\n\t\t// Check if the retention date/time has changed\n\t\t\n\t\tif ( getRetentionExpiryDateTime() != expires) {\n\t\t\t\n\t\t\t// Update the retention date/time\n\t\t\t\n\t\t\tsuper.setRetentionExpiryDateTime(expires);\n\t\t\t\n\t\t\t// Queue a low priority state update\n\t\t\t\n\t\t\tqueueLowPriorityUpdate( UpdateRetentionExpire);\n\t\t}\n\t}",
"@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedMaxTime() {\n setDeviceConfigLong(QcConstants.KEY_MAX_EXECUTION_TIME_MS,\n mQcConstants.MAX_EXECUTION_TIME_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }",
"public void setDownTimeMgr (IDownTimeManager theMgr) {\n this.theDowntimeMgr = theMgr;\n }",
"public void upgradeAuto(View v){\n if(timertrue){ //to make sure that multiple instances of timer are not created\n timer();\n timertrue = false;\n }\n\n if((total - autovalue*10000) >= 0) {\n total -= autovalue * 10000;\n autovalue += 0.001*0.1*value;\n TextView TextAuto = (TextView)\n findViewById(R.id.TextAuto); //displays autoclicks per second\n TextAuto.setText(Double.toString(round(autovalue * 1000, 2)));\n\n\n TextView myTextView = (TextView)\n findViewById(R.id.textView);\n myTextView.setText(Double.toString(round(total,2)));\n }\n }",
"public void setSleepTime(final long l) {\n if (l <= 0) {\n throw new IllegalArgumentException(\"Sleep Time must be a non-zero positive number\");\n }\n sleepTime = l;\n }",
"public Builder setExpiryTimeSecs(int value) {\n bitField0_ |= 0x00000008;\n expiryTimeSecs_ = value;\n onChanged();\n return this;\n }",
"void setLastUpdatedTime();",
"public void setRequestInterval(int requestInterval) {\n final int minSecs = 15;\n final int maxSecs = 600; // 10 minutes\n\n if (requestInterval <= 0) {\n requestInterval = 0;\n } else if (requestInterval < minSecs) {\n // Too often. Cannot request ads more frequently than minSecs apart.\n AdManager.clientError(\"AdView.setRequestInterval(\" + requestInterval + \") seconds must be >= \" + minSecs);\n } else if (requestInterval > maxSecs) {\n // Too infrequent. If setting this value there is no reason to have ads update more than maxSecs apart.\n AdManager.clientError(\"AdView.setRequestInterval(\" + requestInterval + \") seconds must be <= \" + maxSecs);\n }\n\n int requestIntervalMillisecs = requestInterval * 1000;\n this.requestInterval = requestIntervalMillisecs;\n\n // Set the timer to handle requesting fresh ads.\n if (requestInterval == 0) {\n // Stop the current timer (if there is one).\n manageRequestIntervalTimer(false);\n } else {\n // Start the timer.\n Log.i(AdManager.LOG, \"Requesting fresh ads every \" + requestInterval + \" seconds.\");\n manageRequestIntervalTimer(true);\n }\n }",
"public void setDuration(long duration) {\n\t\tthis.startDuration = System.currentTimeMillis();\n\t\tthis.endDuration = startDuration + duration * 1000;\n\t}",
"void setTime(final int time);",
"@Autowired\n\tpublic void setExpiry(@Value(\"${repair.expiry}\") Duration expiry) {\n\t\tthis.expiry = DurationConverter.oneOrMore(expiry);\n\t}",
"void setTestAlarm() \n {\n \t// start with now\n java.util.Calendar c = java.util.Calendar.getInstance();\n c.setTimeInMillis(System.currentTimeMillis());\n\n int nowHour = c.get(java.util.Calendar.HOUR_OF_DAY);\n int nowMinute = c.get(java.util.Calendar.MINUTE);\n\n int minutes = (nowMinute + 1) % 60;\n int hour = nowHour + (nowMinute == 0 ? 1 : 0);\n\n saveAlarm(this, mId, true, hour, minutes, mRepeatPref.getDaysOfWeek(),\n true, \"\", mAlarmPref.getAlertString(), true);\n }",
"public void setActivationTime(java.util.Calendar param){\n localActivationTimeTracker = true;\n \n this.localActivationTime=param;\n \n\n }",
"public void updateDuration(User user);",
"@Override\n\tprotected void setNextSiegeDate()\n\t{\n\t\tif(_siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())\n\t\t{\n\t\t\t_siegeDate = Calendar.getInstance();\n\t\t\t// Осада не чаще, чем каждые 4 часа + 1 час на подготовку.\n\t\t\tif(Calendar.getInstance().getTimeInMillis() - getSiegeUnit().getLastSiegeDate() * 1000L > 14400000)\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\t_siegeDate.setTimeInMillis(getSiegeUnit().getLastSiegeDate() * 1000L);\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 5);\n\t\t\t}\n\t\t\t_database.saveSiegeDate();\n\t\t}\n\t}",
"protected void setTokenExpirationTime(MendeleyOAuthToken token,\r\n\t\t\tSortedSet<String> responseParameters) {\r\n\t\tif (responseParameters != null && !responseParameters.isEmpty()) {\r\n\t\t\tCalendar calendar = Calendar.getInstance();\r\n\t\t\tint secondsToLive = Integer.valueOf(responseParameters.first());\r\n\t\t\tcalendar.add(Calendar.SECOND, secondsToLive);\r\n\t\t\ttoken.setExpirationTime(calendar.getTime());\r\n\t\t}\r\n\t}",
"@Test\n public void testMaybeScheduleStartAlarmLocked_SmallRollingQuota_UpdatedAllowedTime() {\n setDeviceConfigLong(QcConstants.KEY_ALLOWED_TIME_PER_PERIOD_WORKING_MS,\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS / 2);\n\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck();\n mQuotaController.getTimingSessions(SOURCE_USER_ID, SOURCE_PACKAGE).clear();\n runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck();\n }",
"int getDefaultAutoArchiveDuration();",
"public long renew(Configuration conf\n ) throws IOException, InterruptedException {\n return getRenewer().renew(this, conf);\n }",
"private void setExpires(long value) {\n bitField0_ |= 0x00000004;\n expires_ = value;\n }",
"public void setExpireBefore(Duration expireBefore)\n {\n this.expireBefore = expireBefore;\n }",
"void setRemainingCooldown(int remainingCooldown);"
] | [
"0.6726376",
"0.63051337",
"0.60818374",
"0.5955175",
"0.5887776",
"0.5778051",
"0.5675633",
"0.56722164",
"0.5595053",
"0.55838513",
"0.5563086",
"0.55529463",
"0.5552844",
"0.5509807",
"0.5502802",
"0.54939306",
"0.54804224",
"0.53895104",
"0.5385399",
"0.53385055",
"0.5327334",
"0.5317358",
"0.52995545",
"0.5299319",
"0.527988",
"0.5276638",
"0.5255932",
"0.52426493",
"0.52189213",
"0.52113897",
"0.52011585",
"0.51990646",
"0.5188349",
"0.51807183",
"0.5169297",
"0.51539624",
"0.5148477",
"0.5137824",
"0.51369303",
"0.51335615",
"0.51293325",
"0.51218086",
"0.51090276",
"0.5107383",
"0.51057273",
"0.5105581",
"0.51043564",
"0.50832283",
"0.50760406",
"0.5067458",
"0.505281",
"0.5051785",
"0.50484157",
"0.50346994",
"0.5033707",
"0.5033242",
"0.50185496",
"0.50170547",
"0.50167507",
"0.50131744",
"0.49970943",
"0.49970752",
"0.49960953",
"0.4988501",
"0.498634",
"0.49833313",
"0.49808428",
"0.4969625",
"0.49361444",
"0.4930947",
"0.4930501",
"0.4916213",
"0.49146828",
"0.49080133",
"0.4906162",
"0.48947778",
"0.4890703",
"0.48850134",
"0.48715523",
"0.4869138",
"0.48687333",
"0.48687106",
"0.48619884",
"0.4857724",
"0.4855159",
"0.48549092",
"0.48490378",
"0.4841718",
"0.484171",
"0.48380798",
"0.48371282",
"0.4833596",
"0.48333183",
"0.48327944",
"0.48318508",
"0.4829133",
"0.48159787",
"0.48141113",
"0.48127463",
"0.48093292"
] | 0.6821563 | 0 |
The default port number. | public static void main(String args[]) {
int portNumber = 8000;
if (args.length < 2) {
System.out.println("Usage: java Server <portNumber>\n"
+ "Now using port number=" + portNumber + "\n" +
"Maximum user count=" + maxUsersCount);
} else {
portNumber = Integer.valueOf(args[0]).intValue();
maxUsersCount = Integer.valueOf(args[1]).intValue();
}
System.out.println("Server now using port number=" + portNumber + "\n" + "Maximum user count=" + maxUsersCount);
userThread[] threads = new userThread[maxUsersCount];
/*
* Open a server socket on the portNumber (default 8000).
*/
try {
serverSocket = new ServerSocket(portNumber);
} catch (IOException e) {
System.out.println(e);
}
/*
* Create a user socket for each connection and pass it to a new user
* thread.
*/
while (true) {
try {
userSocket = serverSocket.accept();
int i = 0;
for (i = 0; i < maxUsersCount; i++) {
if (threads[i] == null) {
threads[i] = new userThread(userSocket, threads);
threads[i].start();
break;
}
}
if (i == maxUsersCount) {
PrintStream output_stream = new PrintStream(userSocket.getOutputStream());
output_stream.println("#busy");
output_stream.close();
userSocket.close();
}
} catch (IOException e) {
System.out.println(e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDefaultPort() {\n return defaultPort;\n }",
"public void setDefaultPort() {\r\n\t\tsetPort(DEFAULT_PORT);\r\n\t}",
"public int getStandardPort()\n\t{\n\t\treturn DEFAULT_PORT;\n\t}",
"protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }",
"@Override\n public int getPortNumber() {\n return 0;\n }",
"default int getPort() {\n return getServer().getPort();\n }",
"default Object port() {\n return metadata().get(\"server-port\");\n }",
"public int getPort() {\n final int port = getPortIfSpecified();\n if (port == UNSPECIFIED_PORT) {\n String prot = getProtocol();\n if (HTTPConstants.PROTOCOL_HTTPS.equalsIgnoreCase(prot)) {\n return HTTPConstants.DEFAULT_HTTPS_PORT;\n }\n if (!HTTPConstants.PROTOCOL_HTTP.equalsIgnoreCase(prot)) {\n log.warn(\"Unexpected protocol: \"+prot);\n // TODO - should this return something else?\n }\n return HTTPConstants.DEFAULT_HTTP_PORT;\n }\n return port;\n }",
"public int getPort() {\n final int port = getPortIfSpecified();\n if (port == UNSPECIFIED_PORT) {\n String prot = getProtocol();\n if (HTTPConstants.PROTOCOL_HTTPS.equalsIgnoreCase(prot)) {\n return HTTPConstants.DEFAULT_HTTPS_PORT;\n }\n if (!HTTPConstants.PROTOCOL_HTTP.equalsIgnoreCase(prot)) {\n log.warn(\"Unexpected protocol: \" + prot);\n // TODO - should this return something else?\n }\n return HTTPConstants.DEFAULT_HTTP_PORT;\n }\n return port;\n }",
"@Override\n\tpublic int getLocalPort() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getLocalPort() {\n\t\treturn 0;\n\t}",
"public int getPortNumber (){\r\n\t\treturn portNumber;\r\n\t}",
"@Override\n\t\tpublic int getLocalPort() {\n\t\t\treturn 0;\n\t\t}",
"private void setDefaultLocalPort() {\n setLocalPort(session.getConfiguration().getServerPort() - 1);// Default\n // L-1\n }",
"default int getPort()\n {\n return getInt(\"port\", 80);\n }",
"public static String getBasePort() {\r\n if (basePort == null) {\r\n basePort = PropertiesProvider.getInstance().getProperty(\"server.port\", \"8080\");\r\n }\r\n return basePort;\r\n }",
"private static int getDefaultPort(String protocol) {\n String proto = protocol.toLowerCase().trim();\n if (proto.equals(\"http\")) {\n return 80;\n } else if (proto.equals(\"https\")) {\n return 443;\n }\n return -1;\n }",
"public int getPortNumber() {\n return portNumber;\n }",
"public int getPortNumber() {\n return portNumber;\n }",
"public static int getPort() {\n return port;\n }",
"public int getPort() {\n \t\treturn port;\n \t}",
"public int getPort() {\n \t\treturn port;\n \t}",
"public int getPort() {\n return port_;\n }",
"public int getPort() {\n return port_;\n }",
"public int getPort() {\n return port_;\n }",
"public int getPort() {\n return port_;\n }",
"public static String getPort() {\n\t\treturn port;\r\n\t}",
"public int getPort() {\n return port;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort()\n\t{\n\t\treturn port;\n\t}",
"public int getPort()\n\t{\n\t\treturn port;\n\t}",
"public int getPort() {\n return port_;\n }",
"public int getPort() {\n return port_;\n }",
"public int getPort() {\n return port_;\n }",
"public int getPort() {\n return port_;\n }",
"public int getPort() {\n return port_;\n }",
"public int getPort() {\n return port_;\n }",
"public int getPort() {\r\n\t\treturn port;\r\n\t}",
"public int getPort() {\r\n\t\treturn port;\r\n\t}",
"public int getPort() {\r\n return port;\r\n }",
"public int getPort() {\r\n return port;\r\n }",
"public int getPort() {\r\n return port;\r\n }",
"@java.lang.Override\n public int getPort() {\n return port_;\n }",
"@java.lang.Override\n public int getPort() {\n return port_;\n }",
"public int getPort() {\n\t\treturn port;\n\t}",
"public int getPort() {\n\t\treturn port;\n\t}",
"public int getPort() {\n\t\treturn port;\n\t}",
"public int getPort() {\n\t\treturn port;\n\t}",
"public int getPort() {\n\t\treturn port;\n\t}",
"public static int choosePort() {\n try (ServerSocket s = new ServerSocket(0)) {\n return s.getLocalPort();\n } catch (IOException ex) {\n throw new DeltaException(\"Failed to find a port\");\n }\n }",
"public int getPort() { return port; }",
"public int getPort() {\n return port;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort();",
"public int getPort();",
"public int getPort();",
"@java.lang.Override\n public int getPort() {\n return port_;\n }",
"@java.lang.Override\n public int getPort() {\n return port_;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort() {\n return port;\n }",
"public int getPort(){\n\treturn port;\n }",
"public int getPort()\n {\n return port;\n }",
"@Override\n\tpublic int getRemotePort() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getRemotePort() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic Integer getPort() {\n\t\treturn port;\n\t}",
"@Override\n\tpublic int getServerPort() {\n\t\treturn 0;\n\t}",
"public void setPort(int port);",
"public void setPort(int port);",
"@Override\n\t\tpublic int getServerPort() {\n\t\t\treturn 0;\n\t\t}",
"public long getPortNumber() {\n return portNumber;\n }",
"public int getPort () {\n return port;\n }",
"@Override\n\t\tpublic int getRemotePort() {\n\t\t\treturn 0;\n\t\t}",
"public void setPort(int value) {\n this.port = value;\n }",
"public Integer getPort() {\n return port;\n }",
"public int getPort()\n {\n\t\treturn url.getPort();\n }",
"public Integer getPort() {\n return port;\n }",
"public Integer getPort() {\n return port;\n }",
"public int getPort( ) {\n\t\treturn port;\n\t}",
"int getPort()\n {\n return port;\n }",
"public Integer port() {\n return this.port;\n }",
"public Integer port() {\n return this.port;\n }",
"int getPort() {\n return port;\n }",
"public int getPort(){\n\t\treturn this.port;\n\t}",
"public void setPort(Integer port) {\n this.port = port;\n }",
"java.lang.String getPort();",
"java.lang.String getPort();",
"public void setPortNumber(int value) {\n this.portNumber = value;\n }",
"public int getPort() {\n return this.config.getPort();\n }",
"String getPort();",
"public int getPort() {\n return this.port;\n }",
"public void port (int port) {\n this.port = port;\n }",
"public java.lang.Integer getPortNumber() {\r\n return portNumber;\r\n }"
] | [
"0.874512",
"0.8337473",
"0.8211434",
"0.7934353",
"0.7775653",
"0.7630885",
"0.75865066",
"0.74741817",
"0.74535054",
"0.7420626",
"0.7420626",
"0.741554",
"0.7414862",
"0.74020267",
"0.73620635",
"0.73548925",
"0.7339174",
"0.73262167",
"0.73262167",
"0.7310589",
"0.7309272",
"0.7309272",
"0.7283016",
"0.7283016",
"0.7283016",
"0.7283016",
"0.7264636",
"0.724472",
"0.724472",
"0.72421855",
"0.72421855",
"0.72419226",
"0.72419226",
"0.72419226",
"0.72419226",
"0.72419226",
"0.72419226",
"0.7240742",
"0.7240742",
"0.7216698",
"0.7216698",
"0.7216698",
"0.720232",
"0.7202249",
"0.7197849",
"0.7197849",
"0.7197849",
"0.7197849",
"0.7197849",
"0.7195047",
"0.7186093",
"0.7183587",
"0.7183587",
"0.7183587",
"0.7183587",
"0.7183587",
"0.7175423",
"0.7175423",
"0.7175423",
"0.7169763",
"0.7169763",
"0.7159554",
"0.7159554",
"0.7159554",
"0.7159554",
"0.7159554",
"0.7159554",
"0.7159554",
"0.7159554",
"0.7142739",
"0.71358246",
"0.7131596",
"0.7131596",
"0.7129544",
"0.7127252",
"0.7120964",
"0.7120964",
"0.7118714",
"0.7113683",
"0.71133125",
"0.7110865",
"0.71063036",
"0.70989114",
"0.7090502",
"0.7085832",
"0.7085832",
"0.7072359",
"0.7052423",
"0.7033291",
"0.7033291",
"0.70265466",
"0.7013983",
"0.70125717",
"0.7001767",
"0.7001767",
"0.6996321",
"0.6972242",
"0.69655496",
"0.6958541",
"0.69559354",
"0.6952738"
] | 0.0 | -1 |
For simplicity, set to 5. | public userThread(Socket userSocket, userThread[] threads) {
this.userSocket = userSocket;
this.threads = threads;
this.friends = new ArrayList<userThread>();
this.groups = new ArrayList<String>();
this.myGroups = new ArrayList<String>();
maxUsersCount = threads.length;
maxGroupsCount = 5;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStar5Count(Integer star5Count) {\n this.star5Count = star5Count;\n }",
"public void setOneNewWanted () {\r\n numWanted ++;\r\n }",
"public void multiplesOfFive()\n {\n int index = 10;\n int max = 95;\n\n while (index <= 95) {\n System.out.println(index);\n index += 5;\n }\n }",
"public void setCount(int count)\r\n\t{\r\n\t}",
"public void speedRange5()\n\t{\n\t\trange = (gen.nextInt(upper5 - lower5)+1) + lower5;\n\t\tspeedBalloonY5 = range;\n\t}",
"public void setCount(int value) {\n this.count = value;\n }",
"public void setCount(int value) {\n this.count = value;\n }",
"public void setCount(int value) {\n this.count = value;\n }",
"@Override\n\tpublic int getPropertyCount() {\n\t\treturn 5;\n\t}",
"@Override\n\tpublic int getPropertyCount() {\n\t\treturn 5;\n\t}",
"public void setBonusScore() {\r\n count = count+50;\r\n }",
"public void setSize(int value) {\n\t\tthis.size = value;\n\t}",
"@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}",
"private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}",
"void setNoOfBuckets(int noOfBuckets);",
"public void setCounter(int value) { \n\t\tthis.count = value;\n\t}",
"public void resetStepCount() {\r\n\t\tstepCount = 500;\r\n\t}",
"public void addAwardFiveMurdersInOneMinute() {\n\t\tfor (int i = 0; i < killers.size(); i++) {\n\t\t\tint awards = getAwardsFiveMurdersOneMinute(killers.get(i).getName());\n\t\t\tkillers.get(i).setAwardFiveMurdersOneMinute(awards);\n\t\t}\n\t}",
"public static void craft() {\r\n\t\t\r\n\t\tif (ths.page == 5) {\r\n\t\t\tths.page++;\r\n\t\t}\r\n\t}",
"private void setLikesCount(int value) {\n \n likesCount_ = value;\n }",
"public void setFlop5(Card flop5){\n\t\tthis.flop5 = flop5;\n\t\trepaint();\n\t}",
"public void setValue(int size) {\n s.setValue(-size);\n }",
"private void increaseScore() {\n this.game.getPlayers().values().forEach(ship -> {\n ship.increaseScore();\n if (ship.getScore() % 5 == 0) {\n this.asteroidsLimit++;\n }\n });\n }",
"public void setValue(int n) {\n\t\t\tthis.value = n;\n\t}",
"void incNetSize(){\r\n\t\t\t\tif (size<500)size+=50;\r\n\t\t\t\telse System.out.println(\"Max net size reached!\");\r\n\t\t\t}",
"public void setValue(int new_value){\n this.value=new_value;\n }",
"public void setValue(int value) {\r\n this.value = value;\r\n }",
"private void startStageFive() {\n\t\tCollections.addAll(this.starterDigits, 31, 34, 23, 18, 25, 16, 1, 40,\n\t\t\t\t64, 41, 62, 43, 60, 49, 54, 51);\n\t\tCollections.addAll(this.starterButtons, button03, button04, button12,\n\t\t\t\tbutton15, button21, button26, button30, button37, button40,\n\t\t\t\tbutton47, button51, button56, button62, button65, button73,\n\t\t\t\tbutton74);\n\t\tthis.initializeStarterButtons();\n\t}",
"void setNextValue() {\n this.value = this.value * 2;\n }",
"public Integer getStar5Count() {\n return star5Count;\n }",
"public void setCount(int newCount) {\r\n\t\tcount = newCount;\r\n\t}",
"public void setAttempts(int value) {\n this.attempts = value;\n }",
"public void setUnknown5(int unknown5)\r\n\t{\r\n\t\tthis.unknown5 = unknown5;\r\n\t}",
"public void setGrowIncrement(int inc) { growInc = inc; }",
"@Override\r\n\tpublic void setSequenceSize(int x) {\n\t\tsizeNum = x;\r\n\t\tupdate();\r\n\t}",
"public void incrementNumberOfShips(int value) {\r\n\t\tnumberOfShips = numberOfShips + value;\r\n\t}",
"public void setCount(int count) {\r\n this.count = count;\r\n }",
"public static void take() {\r\n\t\t\r\n\t\tif (ths.page == 4) {\r\n\t\t\tths.page++;\r\n\t\t}\r\n\t}",
"public void addFive(int a){\r\n a = a + 5;\r\n }",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"@Override\r\n\tpublic void initialize() {\n\t\tRandom randomGenerator = new Random();\r\n\t\tthis.size = Helper.getRandomInRange(1, 9, randomGenerator);\r\n\t\tif (this.size % 2 == 0)\r\n\t\t\tthis.size--;\r\n\t}",
"public void setKillCount(){\n killCount = killCount + 1;\n System.out.println(\"Kill count: \"+ killCount);\n }",
"public void setCount(int count)\r\n {\r\n this.count = count;\r\n }",
"public void setValue(int value)\n {\n this.value = value;\n }",
"public static void change(int x)\n\t{\n\t\tx += 5;\n\t\tSystem.out.println(x);\n\t}",
"public void setX(int xs)\r\n\t{\r\n\t\tx = xs;\r\n\t}",
"void setLimit(int limit);",
"private void setSize(int s){\n\t\tsize = s;\n\t}",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setCount(int count)\n {\n this.count = count;\n }",
"public void setCapacity(int value) {\n this.capacity = value;\n }",
"public void setSecond(int count){\n this.second = count;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setListSize(int value) {\n this.listSize = value;\n }",
"public void set_count(int c);",
"public void init(int value) {\n\t\tthis.open5 = value;\r\n\t\tthis.high5 = value;\r\n\t\tthis.low5 = value;\r\n\t\tthis.close5 = value;\r\n\t\tthis.extra = value;\r\n\t}",
"public void setDivideNumberOfOffsetToSecureScreen(int value) {\n offsetValueToSecureScreen = value;\n }",
"public void setValue(int value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(int value) {\n\t\tthis.value = value;\n\t}",
"public void setDesiredCount(Integer desiredCount) {\n this.desiredCount = desiredCount;\n }",
"public void Increase()\n {\n Increase(1);\n }",
"public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}",
"@Override\n\tpublic int max() {\n\t\treturn 4;\n\t}",
"public void setSize(int size) {\n\tthis.sizeNumber = sizeNumber;\r\n}",
"private void setNbDiamond(int nbDiamond) { this.nbDiamond = nbDiamond; }",
"void setNilMultipleBetMinimum();",
"public void setJumpCount(int count)\n{\n jumpCount = count;\n}",
"public static void multiplyElementSmallerThanFive(Stackable<Integer> stack, int amountOfNumbers) {\n for (int i = 0; i < amountOfNumbers; i++) {\n stack.push(getRandomNumber(1, 10));\n }\n\n System.out.println(\"Stack:\");\n System.out.println(stack);\n int mul = 1;\n while (!stack.isEmpty()) {\n int num = stack.pop();\n if (num < 5) {\n mul *= num;\n }\n }\n System.out.printf(\"Multiply of numbers than less then 5 in stack is: %d%n\", mul);\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setCount(int count) {\n this.count = count;\n }",
"public void setFiveStarRating(java.math.BigDecimal fiveStarRating) {\n this.fiveStarRating = fiveStarRating;\n }",
"public void set_size(int s);",
"public void setCount() {\n\t\tLinkedListIterator iter = new LinkedListIterator(this.head);\n\t\tint currentSize = 1;\n\t\twhile (iter.hasNext()) {\n\t\t\titer.next();\n\t\t\tcurrentSize++;\n\t\t}\n\t\tthis.size = currentSize;\n\t}",
"public void setBalls(int n){\r\n balls = n;\r\n }",
"public void setCount(Integer count) {\r\n this.count = count;\r\n }",
"protected void setCellCount(int count) {\n this.cellCountStack.addLast(count);\n }",
"public void setMinimumPlayers(int nPlayers)\r\n {\n \r\n }",
"public static void resetCount() {\n count = 1;\n }",
"public static void setDefaultGap(int x) {\n gap = x;\n }",
"public void setRows () {\n\t\t\n\t}",
"@Override\n public int fillCount(){\n return fillCount;\n }",
"@Override\n\tpublic void setAge () {\n\t\t// defining the random range for age between 1 up to 50\n\t\tint age = 1 + (int)(Math.random()*(3));\n\t\tthis.age = age;\n\t}",
"public void setCount(int count){\n\t\tthis.count = count;\n\t}",
"public void SetNPoints(int n_points);",
"public void setNumPoints(int np);",
"public void setNumSeats(int num) {\n numSeats = num;\n }",
"public void setNumsBaby (int count) {\n numsBaby = count;\n }",
"private void setPositiveCount(int value) {\n m_PositiveCount = value;\n }",
"private static void addAllMultiplesOfFive()\n\t{\n\t\tfor (int i = 0; i <= MAX_NUMBER; i += 5)\n\t\t{\n\t\t\tboolean isDivisibleByThree = i % 3 == 0;\n\t\t\tif (!isDivisibleByThree)\n\t\t\t{\n\t\t\t\tanswerSum += i;\n\t\t\t}\n\t\t}\n\t}",
"public void setSize(Integer size) {\n this.size = size;\n }",
"public void setAttribute5(String value)\n {\n setAttributeInternal(ATTRIBUTE5, value);\n }"
] | [
"0.65123945",
"0.63623005",
"0.62474114",
"0.6107029",
"0.6078857",
"0.6021342",
"0.6021342",
"0.6021342",
"0.59915435",
"0.59915435",
"0.5957037",
"0.59343976",
"0.5904158",
"0.5896003",
"0.5891134",
"0.58399975",
"0.5836521",
"0.5816309",
"0.5800506",
"0.58002037",
"0.5795935",
"0.5789671",
"0.57807946",
"0.5777882",
"0.5777684",
"0.5754436",
"0.57398206",
"0.57384634",
"0.57278377",
"0.572576",
"0.5724941",
"0.57117015",
"0.569986",
"0.56913024",
"0.5687425",
"0.56822896",
"0.5666825",
"0.5664204",
"0.56629896",
"0.5662119",
"0.5662119",
"0.5662119",
"0.5662119",
"0.5662119",
"0.5661708",
"0.56571627",
"0.56561416",
"0.5655307",
"0.5649987",
"0.5643048",
"0.56352794",
"0.5634925",
"0.56328267",
"0.56328267",
"0.5630762",
"0.56303304",
"0.5627596",
"0.5626444",
"0.5626444",
"0.5626444",
"0.56248605",
"0.5615318",
"0.55953515",
"0.5578219",
"0.5577313",
"0.5577313",
"0.5573759",
"0.5566548",
"0.5565944",
"0.55644506",
"0.5548435",
"0.5543125",
"0.5535077",
"0.5525775",
"0.5523591",
"0.5520427",
"0.5520427",
"0.5520427",
"0.5520427",
"0.5520427",
"0.551803",
"0.55157745",
"0.55135965",
"0.55075556",
"0.54874414",
"0.54851854",
"0.548259",
"0.5478804",
"0.54777455",
"0.5477248",
"0.54759157",
"0.54753894",
"0.5472982",
"0.5472848",
"0.54713905",
"0.547108",
"0.5470255",
"0.5469832",
"0.54694366",
"0.5468042",
"0.54503477"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void destroy() {
} | {
"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 |
Get the value of uploadedfile | public UploadedFile getUploadedfile() {
return uploadedfile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UploadedFileDTO getFile() {\r\n\t\ttype(ConfigurationItemType.FILE);\r\n\t\treturn fileValue;\r\n\t}",
"public File getFileValue();",
"public FileUpload getFileUpload() {\r\n return fileUpload;\r\n }",
"public MultipartFile getFile() {\n return this.file;\n }",
"public MultipartFile getFile() {\n\t\treturn file;\n\t}",
"public String getFile()\n\t{\n\t\treturn file;\n\t}",
"public String getFile()\n\t{\n\t\treturn file;\n\t}",
"String getFile() {\n\t\treturn file;\n\t}",
"public String file() {\n return this.file;\n }",
"public File getFile() {\r\n \t\treturn file;\r\n \t}",
"public File getFile() {\n\t\treturn this.file;\n\t}",
"@Override\n\tpublic String getFileValue() {\n\t\treturn null;\n\t}",
"public String getFile() {\n \n // return it\n return theFile;\n }",
"public String getFileuploader() {\n return fileuploader;\n }",
"File getFile() { return user_file; }",
"public File getFile() {\n return file;\n }",
"public File getFile() {\n\t\treturn file;\n\t}",
"public FileBean getFileParameterValue(String name) {\n \n if (this.multipart.getFile(name) != null) {\n return new FileBean(this.multipart.getFile(name),\n this.multipart.getContentType(name),\n this.multipart.getOriginalFileName(name));\n }\n else {\n return null;\n }\n }",
"Path fileToUpload();",
"public File getFile() { return file; }",
"public File getFile() {\n return file;\n }",
"public File getFile() {\n return file;\n }",
"public File getFile() {\n return file;\n }",
"public File getFile() {\n return file;\n }",
"public File getFile() {\n return file;\n }",
"public File getFoto() {\r\n\t\treturn temp;\r\n\t}",
"public File getFile() {\n return _file;\n }",
"private File getFile() {\n\t\t// retornamos el fichero a enviar\n\t\treturn this.file;\n\t}",
"public String getFileUploadPath() {\n\t\treturn fileUploadPath;\n\t}",
"public File getFile()\n {\n return file;\n }",
"@Override\n\tpublic File getFile() {\n\t\treturn file;\n\t}",
"public String getFile() {\n return \"null\"; // getFileTopic().getCompositeValue().getTopic(FILE_PATH);\n }",
"public String getFileChosen() \n {\n return fileName.getText();\n }",
"public FileObject getFile() {\n return file;\n }",
"public FileObject getFile() {\n return file;\n }",
"File getFilePath()\r\n\t{\r\n\t\treturn fFilePath;\r\n\t}",
"public File getFile() {\n // some code goes here\n return this.f;\n }",
"public String getUploadId() {\n return uploadId;\n }",
"UploadInfo simpleUpload(SimpleFile file);",
"@Override\n public int getFile() {\n return file;\n }",
"public byte[] getFile() {\n return file;\n }",
"public WebFile getFile() { return _file; }",
"public long getUploadedBytes() {\n\t\treturn uploadedBytes;\n\t}",
"public String getUploader() {\n return fullPhoto.getUploader();\n }",
"public FileUpload getStudioFileUpload() {\r\n return studioFileUpload;\r\n }",
"public File getFile() {\n // some code goes here\n return m_f;\n }",
"public File getFile() {\n return this.path != null ? this.path.toFile() : null;\n }",
"public com.opentext.bn.converters.avro.entity.PayloadRef getFileInfo() {\n return fileInfo;\n }",
"String getBlobField();",
"public final File getFile() {\n return file;\n }",
"public Long getInfile_()\n{\nreturn getInputDataItemId(\"infile_\");\n}",
"public com.opentext.bn.converters.avro.entity.PayloadRef getFileInfo() {\n return fileInfo;\n }",
"private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}",
"public File getInputFile() {\n return inputFile;\n }",
"public File getFile();",
"public File getFile();",
"@Override\n public int getUploaded() {\n return 0;\n }",
"public java.lang.String getFoto() {\n return foto;\n }",
"public FileUpload getFileUploadById(Long id) throws AppException;",
"public VMFile getFile() {\n return this.file;\n }",
"public String getImageFile() {\n\t\treturn imagefile;\n\t}",
"@JsonGetter(\"fileContent\")\r\n public String getFileContent ( ) { \r\n return this.fileContent;\r\n }",
"void whenUploadFile(MultipartFile file, HttpServletRequest request);",
"public String getFilePath()\n {\n return filePath;\n }",
"public String getFileName()\n {\n return getString(\"FileName\");\n }",
"public UploadedFile getBatchFile() {\r\n\t\treturn this.batchFile;\r\n \t}",
"public File getFile() {\n return resultsFile;\n }",
"public String getFileName()\r\n {\r\n return sFileName;\r\n }",
"void fileUploaded(String path);",
"public String getFileName() \n {\n return fileName;\n }",
"public File getFile() {\n // some code goes here\n return f;\n }",
"public File getFile ();",
"public String getOriginalFilename() {\r\n return mFile.getOriginalFilename();\r\n }",
"@java.lang.Override\n public java.lang.String getFilePath() {\n return instance.getFilePath();\n }",
"public int getFile() {\n validify();\n return Client.INSTANCE.pieceGetFile(ptr);\n }",
"File getFile();",
"File getFile();",
"public Integer getUploadId() {\n\t\treturn uploadId;\n\t}",
"public String getFilename() {\n\treturn file.getFilename();\n }",
"public File getInputFile() {\n\t\treturn infile;\n\t}",
"public byte[] getFoto() {\n\t\treturn foto;\n\t}",
"public Integer getFileid() {\n return fileid;\n }",
"public String getInputFile() {\n return inputFile;\r\n }",
"public File getFileForPicture() {\r\n\t\tif(!isReady) prepare();\r\n\t\tif(!isReady) {\r\n\t\t\tLog.e(TAG,\"Not ready when taking picture\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tcurrentFile = new File(directory,getFileName());\r\n\t\treturn currentFile;\r\n\t}",
"public String getFilePath() {\n return filePath;\n }",
"public String getFileName()\r\n {\r\n return fileName;\r\n }",
"@Transient\n\tpublic File getFileObj() {\n\t\treturn fileObj;\n\t}",
"String getFile();",
"String getFile();",
"String getFile();",
"protected String getMultipartField(String name) {\n\n try {\n return getMultipartField(name, null);\n } catch (UnsupportedEncodingException e) {\n return StringPool.BLANK;\n }\n }",
"public float getFileSize() {\n return fileSize_;\n }",
"public String getFilePath() {\n return filePath;\n }",
"public String getFilePath() {\n return filePath;\n }",
"public String getFilePath() {\n return filePath;\n }",
"public String getFilePath() {\n return filePath;\n }",
"public String getFilePath() {\n return filePath;\n }",
"public String getFilePath() {\n return filePath;\n }",
"public String getFILE_NAME() { return FILE_NAME; }",
"public Integer getFileType() {\n return fileType;\n }"
] | [
"0.74288934",
"0.7387773",
"0.70500964",
"0.6686452",
"0.6652752",
"0.65849835",
"0.65849835",
"0.65340215",
"0.65001535",
"0.64998746",
"0.6457429",
"0.64227426",
"0.6385607",
"0.6376929",
"0.63573",
"0.6344939",
"0.6333414",
"0.6315171",
"0.63095766",
"0.63058096",
"0.6295341",
"0.6274241",
"0.6274241",
"0.6274241",
"0.6274241",
"0.626838",
"0.6249034",
"0.6212446",
"0.6198271",
"0.6184516",
"0.61599934",
"0.6154836",
"0.6114121",
"0.61016834",
"0.61016834",
"0.60739785",
"0.60368294",
"0.60286754",
"0.60247743",
"0.6015633",
"0.6001222",
"0.5979699",
"0.5976502",
"0.59605026",
"0.5931344",
"0.5919475",
"0.591185",
"0.59052205",
"0.5900338",
"0.5886085",
"0.5870563",
"0.58622",
"0.58530074",
"0.58305645",
"0.58143157",
"0.58143157",
"0.5813206",
"0.5810615",
"0.5798779",
"0.5792641",
"0.5792046",
"0.5775617",
"0.575011",
"0.57487804",
"0.5748269",
"0.5745229",
"0.5733915",
"0.5717503",
"0.57173645",
"0.57119036",
"0.5703111",
"0.5700459",
"0.56763816",
"0.5669573",
"0.5667692",
"0.56666243",
"0.56666243",
"0.5664179",
"0.5663039",
"0.5656312",
"0.565294",
"0.5627773",
"0.56234634",
"0.5619936",
"0.5615451",
"0.5604421",
"0.56035185",
"0.5601217",
"0.5601217",
"0.5601217",
"0.55913556",
"0.55892557",
"0.5589193",
"0.5589193",
"0.5589193",
"0.5589193",
"0.5589193",
"0.5589193",
"0.55885965",
"0.55875635"
] | 0.7158111 | 2 |
Set the value of uploadedfile | public void setUploadedfile(UploadedFile uploadedfile) {
this.uploadedfile = uploadedfile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFile(UploadedFileDTO value) {\r\n\t\ttype(ConfigurationItemType.FILE);\r\n\t\tthis.fileValue = value;\r\n\t}",
"public void setFileUpload(FileUpload fileUpload) {\r\n this.fileUpload = fileUpload;\r\n }",
"public void setFile(File f) { file = f; }",
"public void setFile(File file);",
"protected void setField(HtmlElement element) throws IOException {\n\t\tString attributeValue = element.getAttribute(HtmlConstants.TYPE);\n\t\tif (!HtmlConstants.FILE.equals(attributeValue)) {\n\t\t\tthrow new StepFailedException(\"HTML input with id='\" + getHtmlId() + \"' is of type '\"\n\t\t\t\t+ attributeValue + \"' but should be '\" + HtmlConstants.FILE + \"'\", this);\n\t\t}\n\t\tfinal HtmlFileInput fileInput = (HtmlFileInput) element;\n\t\tfileInput.setValueAttribute(getFileName().getAbsolutePath());\n\t}",
"private void setFile() {\n\t}",
"public void setFile(String value){\n ((MvwDefinitionDMO) core).setFile(value);\n }",
"@Override\n public void setFile(File f) {\n \n }",
"void fileUploaded(String path);",
"public void setFile(File file)\n {\n this.file = file;\n }",
"@JsonSetter(\"fileContent\")\r\n public void setFileContent (String value) { \r\n this.fileContent = value;\r\n }",
"void setNewFile(File file);",
"public void setFile(Object value) throws DmcValueException {\n ((MvwDefinitionDMO) core).setFile(value);\n }",
"public void setFileType( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), FILETYPE, value);\r\n\t}",
"public void setFile(File file) {\n this.file = file;\n }",
"public void setOriginalFileName(String newValue);",
"public void setStudioFileUpload(FileUpload studioFileUpload) {\r\n this.studioFileUpload = studioFileUpload;\r\n }",
"public void setFileType(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), FILETYPE, value);\r\n\t}",
"public void setFile(byte[] file) {\n this.file = file;\n }",
"public void setFile(String fileName)\n {\n }",
"public void setFile(File file) {\r\n\t\tif (file!=null) this.input = null;\r\n\t\tthis.file = file;\r\n\t}",
"public void setOriginalFilePath(String newValue);",
"public void setFileRef() { this.fileRef = fileRef; }",
"public void setFile(IFile file) {\n _file = file;\n }",
"void setFilePath(String filePath);",
"public static void setFileType( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, FILETYPE, value);\r\n\t}",
"public void setFile(File file) {\n\t\tif (file != null && !file.isEmpty()) {\n\t\t\tthis.file = file;\n\t\t} else {\n\t\t\tthis.file = null;\n\t\t}\n\t}",
"public void upload() {\r\n if (file != null) {\r\n try {\r\n String filepath = super.getUploadFolder() + \"/\" + file.getFileName();\r\n filepath = FileUtil.alternativeFilepathIfExists(filepath);\r\n FileUtil.createFile(filepath);\r\n\r\n file.write(filepath);\r\n super.info(\"Succesful\", file.getFileName() + \" is uploaded.\");\r\n\r\n Upload upload = new Upload();\r\n upload.setDescription(description);\r\n upload.setFilepath(filepath);\r\n upload.setTag(Md5Util.getMd5Sum(filepath));\r\n this.description = null;\r\n uploads.add(upload);\r\n // update ui and ready for save in db\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n }\r\n }",
"public void setFile(PDFileSpecification f) {\n/* 409 */ this.stream.setItem(COSName.F, (COSObjectable)f);\n/* */ }",
"void setFile(String i) {\n file = i;\n }",
"public UploadedFile getUploadedfile() {\r\n return uploadedfile;\r\n }",
"public void setNewFilePath(String newValue);",
"void uploadingFile(String path);",
"public void setFile(String key, File value) {\n\t\tif (value != null && !value.equals(getDefault(key)))\n\t\t\tinternal.setProperty(key, value.getAbsolutePath());\n\t\telse\n\t\t\tinternal.remove(key);\n\t}",
"void whenUploadFile(MultipartFile file, HttpServletRequest request);",
"public static void setFileType(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, FILETYPE, value);\r\n\t}",
"public void setFile(DefaultStreamedContent file) {\n this.file = file;\n }",
"public void setFile(File file) {\n this.path = file != null ? file.toPath() : null;\n }",
"private void setFilePath(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000008;\n filePath_ = value;\n }",
"void set(File local,String name,UserFileType ft)\n{\n user_file = local;\n if (user_file != null && (name == null || name.length() == 0)) \n name = user_file.getName();\n if (name.startsWith(\"/s6/\")) {\n name = name.substring(4);\n }\n else if (name.startsWith(\"s:\")) {\n name = name.substring(2);\n }\n access_name = name;\n file_mode = ft;\n}",
"public void setOriginalFilename( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALFILENAME, value);\r\n\t}",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setFileInfo(com.opentext.bn.converters.avro.entity.PayloadRef value) {\n validate(fields()[15], value);\n this.fileInfoBuilder = null;\n this.fileInfo = value;\n fieldSetFlags()[15] = true;\n return this;\n }",
"void setFilePath(Path filePath);",
"public void uploadTemp(FileUploadEvent event) {\n setFileImage(event.getFile());\n getSelected().setUrlImage(event.getFile().getFileName());\n RequestContext.getCurrentInstance().update(\"image\");\n\n }",
"public void setFile(org.ow2.bonita.facade.runtime.AttachmentInstance file) {\r\n\t\tthis.file = file;\r\n\t}",
"public void upload(UploadedFile file) {\n FacesContext faces = FacesContext.getCurrentInstance();\n\n getSelected().setUrlImage(file.getFileName());\n String fileExtension = file.getFileName().split(\"\\\\.\")[file.getFileName().split(\"\\\\.\").length - 1];\n\n //String generatedFileName = \"file\" + System.currentTimeMillis();\n File directory = new File(faces.getExternalContext().getRealPath(UPLOAD_DIRECTORY_IMAGE_RELATIVE));\n\n if (!directory.exists()) {\n directory.mkdir();\n }\n\n File newFile = new File(faces.getExternalContext().getRealPath(UPLOAD_DIRECTORY_IMAGE_RELATIVE) + File.separator + file.getFileName());\n try {\n if (!newFile.createNewFile()) {\n String nameGenerated = \"file_generated\" + System.currentTimeMillis();\n newFile = new File(faces.getExternalContext().getRealPath(UPLOAD_DIRECTORY_IMAGE_RELATIVE) + File.separator + nameGenerated + \".\" + fileExtension);\n getSelected().setUrlImage(nameGenerated);\n }\n\n FileOutputStream output = new FileOutputStream(newFile);\n\n byte[] buffer = new byte[BUFFER];\n\n int bulk;\n\n InputStream input = file.getInputstream();\n\n while (true) {\n bulk = input.read(buffer);\n\n if (bulk < 0) {\n break;\n }\n\n output.write(buffer, 0, bulk);\n output.flush();\n }\n\n output.close();\n input.close();\n\n } catch (Exception ex) {\n ex.printStackTrace();\n FacesContext.getCurrentInstance().addMessage(\"\", new FacesMessage(bundle.getString(\"Error_file_created\")));\n }\n\n }",
"public void uploadFile() {\n \n InputStream input = null;\n try {\n input = file.getInputStream();\n System.out.println(\"chay qua inpustream\");\n String itemName = file.getSubmittedFileName();\n String filename = itemName.substring(\n itemName.lastIndexOf(\"\\\\\") + 1);\n String dirPath = FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"/upload/images\");\n fileNamed = \"/upload/images/\"+filename;\n File f = new File(dirPath + \"\\\\\" + filename);\n if (!f.exists()) {\n f.createNewFile();\n }\n FileOutputStream output = new FileOutputStream(f);\n byte[] buffer = new byte[1024];\n int length;\n while ((length = input.read(buffer)) > 0) {\n output.write(buffer, 0, length);\n }\n // resize(dirPath + \"\\\\\" + filename, dirPath + \"\\\\\" + filename, 200, 200);\n input.close();\n output.close();\n } catch (IOException ex) {\n System.out.println(\"loi io\");\n Logger.getLogger(ArtistsManagedBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"public UploadedFile() {\n date = new Date();\n }",
"public void setOriginalFilename(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALFILENAME, value);\r\n\t}",
"Path fileToUpload();",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void setFile(String file) {\r\n\t\tthis.file = file;\r\n\t}",
"private void setFile(String file){\n put(SlackParamsConstants.FILE, file);\n }",
"public void setFile(File file) {\n\t\tthis.file = file;\n\t\tthis.displayName.setValue(file.getName());\n\t}",
"public FileUpload getFileUpload() {\r\n return fileUpload;\r\n }",
"void setImageFromFile(File imageFile);",
"public void setFileName(String fileName) {\n/* 39:39 */ this.fileName = fileName;\n/* 40: */ }",
"public void upload(FileUploadEvent event){\n UploadedFile file = event.getFile();\n if(file != null){\n try {\n imagePic = new OracleSerialBlob(file.getContents());\n Long size = imagePic.length();\n putProfPic(imagePic);\n //setPhoto_profile(new ByteArrayContent(imagePic.getBytes(1, size.intValue())));\n } catch (SQLException ex) {\n LOG.error(ex);\n GBMessage.putErrorMessage(\"Error al subir el archivo\");\n } catch (IOException ex) {\n Logger.getLogger(StaffBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n GBMessage.putInfoMessage(\"Carga correcta\");\n }\n }",
"void setFileName( String fileName );",
"public void setAudiofileSize( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), AUDIOFILESIZE, value);\r\n\t}",
"public void setFileType(FileType typ) {\n fileType = typ;\n }",
"public void init( ){\n\t filePath = \n\t getServletContext().getInitParameter(\"file-upload\"); \n\t }",
"public void setInputFile(File inputFile) {\n this.inputFile = inputFile;\n }",
"public void testSetUpload() {\n try {\n sub.setUpload(null);\n } catch (Exception e) {\n fail(\"Should not throw anything.\");\n }\n }",
"public void setAudiofileSize(java.lang.Integer value) {\r\n\t\tBase.set(this.model, this.getResource(), AUDIOFILESIZE, value);\r\n\t}",
"public void setFileType(edu.umich.icpsr.ddi.FileTypeType fileType)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileTypeType target = null;\n target = (edu.umich.icpsr.ddi.FileTypeType)get_store().find_element_user(FILETYPE$8, 0);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileTypeType)get_store().add_element_user(FILETYPE$8);\n }\n target.set(fileType);\n }\n }",
"public uploadFileForPath_result(uploadFileForPath_result other) {\n __isset_bitfield = other.__isset_bitfield;\n this.success = other.success;\n }",
"public void setFile(String file) {\n fileName = file;\n if (isHTTP(fileName)) {\n fileType = HTTP;\n } else {\n fileType = LOCAL;\n }\n }",
"public void setPicture(ParseFile file){\n put(KEY_PICTURE, file);\n }",
"public Builder setFileSize(float value) {\n \n fileSize_ = value;\n onChanged();\n return this;\n }",
"private void setFileNamePath(String value) {\n\t\tthis.fileNamePath = value;\n\t}",
"private void uploadFileFinished(SucceededEvent event) {\n try {\n // String fileName = event.getFilename();\n // File f = getFile(fileName);\n // f.setReadOnly(READONLY_REPLICATION_MODE);\n } catch (Exception e) {\n Logging.logMessage(Logging.LEVEL_WARN, this,\"%s, %s, %s\", \"Readonly Exception\", \"Can't set file \" + event.getFilename() + \" to ReadOnly.\", e);\n }\n\n // Update der Liste durchführen\n loadXtreemFSData();\n }",
"@JsonSetter(\"fileName\")\r\n public void setFileName (String value) { \r\n this.fileName = value;\r\n }",
"@Override\n\tpublic void fileUpload(FileVO fileVO) {\n\t\tworkMapper.fileUpload(fileVO);\n\t}",
"public void setFile(String file) {\r\n this.file = file;\r\n }",
"public void setFile(PDFileSpecification f)\n {\n stream.setItem(COSName.F, f);\n }",
"public void setFile(IFile srcFile) {\n\t\tthis.file = srcFile;\n\t}",
"@Test\n\tpublic void testSetFileInfo() {\n\n\t}",
"public void setParameter(String name, File file) throws IOException {\r\n Logging.logTime(\"pre set file\");\r\n setParameter(name, file.getPath(), new FileInputStream(file));\r\n Logging.logTime(\"post set file\");\r\n }",
"public void setFileContentType(String value) {\r\n setAttributeInternal(FILECONTENTTYPE, value);\r\n }",
"private void setMediaAssetFileHolder(com.whensunset.wsvideoeditorsdk.model.MediaFileHolder value) {\n if (value == null) {\n throw new NullPointerException();\n }\n mediaAssetFileHolder_ = value;\n \n }",
"public void setFileType(TFileType type) {\n\n\t\tthis.type = type;\n\t}",
"public void setFileId(Long fileId) {\n/* 31:31 */ this.fileId = fileId;\n/* 32: */ }",
"void setValueAttachment(org.hl7.fhir.Attachment valueAttachment);",
"public static void setOriginalFilename( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, ORIGINALFILENAME, value);\r\n\t}",
"void uploadFinished(StreamingEndEvent event, File uploadedTemporaryFile);",
"private void setFile(Serializable object, String path) throws Exception {\t\t\n\t\t\n FileOutputStream fileOut = new FileOutputStream(path);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(object);\n objectOut.close(); \n\t\t\n\t}",
"void setStockFile(stockFilePT102.StockFileDocument.StockFile stockFile);",
"@PreAuthorize(\"hasPermission(#fileUpload, 'write') or hasRole('ROLE_ADMIN')\")\n\tpublic void updateFullyFileUpload(FileUpload fileUpload) throws AppException;",
"public void setVideo(File video){\n\t\tthis.video = video;\n\t}",
"@Override\n public void setContentLength(int arg0) {\n\n }",
"UploadInfo simpleUpload(SimpleFile file);",
"void setFileId(DriveRequest<?> request, String fileId);",
"@Accessor(qualifier = \"jobMedia\", type = Accessor.Type.SETTER)\n\tpublic void setJobMedia(final ImpExMediaModel value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(JOBMEDIA, value);\n\t}",
"@Override\n\t\t\tpublic void uploading(String path, String key) {\n\t\t\t\tsynchronized(this){\n //更新界面\n int row = fileKeys.indexOf(key);\n resultTable.setValueAt(\"uploading\", row, 2);\n\t\t\t\t}\n\t\t\t}",
"@Accessor(qualifier = \"singleFile\", type = Accessor.Type.SETTER)\n\tpublic void setSingleFile(final Boolean value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(SINGLEFILE, value);\n\t}",
"public void setProductPicture(String file){\r\n\r\n\t\t\tFileUploader.uploadFileName(driver, \"@class\", \"x-panel-noborder\", file);\r\n\t\t\t\r\n\t\t\twaitForExtJSAjaxComplete(25);\r\n\t\t\t\r\n\t\t\tReporter.log(\"Setting Picture for Product in Picture Tab\", true);\r\n\t\t}",
"public void setPlayFile(String file);",
"public uploadFileForExperiment_result(uploadFileForExperiment_result other) {\n __isset_bitfield = other.__isset_bitfield;\n this.success = other.success;\n }",
"public void setFile(String file)\n\t{\n\t\tthis.file = file;\n\t}",
"private void setHTTPFileArgs(HTTPFileArgs value) {\n if (value.getHTTPFileArgCount() > 0) {\n setProperty(new TestElementProperty(FILE_ARGS, value));\n } else {\n removeProperty(FILE_ARGS); // no point saving an empty list\n }\n }"
] | [
"0.7820199",
"0.7077527",
"0.6883821",
"0.68299073",
"0.6673185",
"0.6491027",
"0.6462964",
"0.6428507",
"0.6389889",
"0.63813716",
"0.6229644",
"0.62259066",
"0.62253064",
"0.6202601",
"0.6189017",
"0.6160508",
"0.6127398",
"0.6122489",
"0.61154145",
"0.6114961",
"0.61087817",
"0.6049072",
"0.60481566",
"0.60408986",
"0.6036621",
"0.60289747",
"0.60181427",
"0.6016312",
"0.5999916",
"0.59961975",
"0.59676445",
"0.59516793",
"0.5948026",
"0.59353006",
"0.5929205",
"0.5926862",
"0.5924118",
"0.5922578",
"0.5912548",
"0.58904463",
"0.58681285",
"0.58573544",
"0.5842229",
"0.5835795",
"0.5827485",
"0.5824532",
"0.5818986",
"0.5808576",
"0.57976454",
"0.5797407",
"0.5781661",
"0.5775766",
"0.5755825",
"0.5727948",
"0.5719144",
"0.5718912",
"0.5714591",
"0.57110685",
"0.56995964",
"0.56807035",
"0.5679423",
"0.5673179",
"0.56623274",
"0.5660174",
"0.5659923",
"0.5659281",
"0.5658168",
"0.5652181",
"0.56483793",
"0.56395257",
"0.5634916",
"0.56232536",
"0.5612873",
"0.56117636",
"0.5609928",
"0.55973685",
"0.5589756",
"0.557742",
"0.55773795",
"0.557621",
"0.55700594",
"0.5557931",
"0.55446535",
"0.5539633",
"0.55208606",
"0.55185866",
"0.5515287",
"0.55119365",
"0.5500181",
"0.54949194",
"0.5490213",
"0.54849946",
"0.5473747",
"0.5473255",
"0.5468293",
"0.54607546",
"0.5454285",
"0.54509455",
"0.54505545",
"0.5450282"
] | 0.7024022 | 2 |
/ 1 Transaction method as Propagation behavior as REQUIRED REQUIRED :Indicates that the target method can not run without an active tx. If a tx has already been started before the invocation of this method, then it will continue in the same tx or a new tx would begin soon as this method is called. | @Transactional (propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED, readOnly = false, rollbackFor = Exception.class)
public long saveUser(UserBO userBO) {
logger.info("Begin : " + getClass().getName() + " :saveUser()");
long userId = 0;
/*DefaultTransactionDefinition definition = new DefaultTransactionDefinition();
TransactionStatus txStatus = txManager.getTransaction(definition);*/
try {
userId = securityDao.saveUser(userBO);
logger.info("User Created Successfully..." + userId);
} catch( Exception e) {
logger.error("Exception occurred : "+e);
}
//txManager.commit(txStatus);
return userId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Transactional(Transactional.TxType.NOT_SUPPORTED)\n\tpublic void notSupported() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.NOT_SUPPORTED\");\n\t // Here the container will make sure that the method will run in no transaction scope and will suspend any transaction started by the client\n\t}",
"@Transactional(Transactional.TxType.NEVER)\n\tpublic void never() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.NEVER\");\n\t // Here the container will reject any invocation done by clients already participate in transactions\n\t}",
"void readOnlyTransaction();",
"public static void ignoreTransaction() {\n if (active) {\n TransactionAccess.ignore();\n }\n }",
"@Transactional(Transactional.TxType.REQUIRES_NEW)\n\tpublic void requiresNew() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.REQUIRES_NEW\");\n\t // Here the container will always start a new transaction and run the method inside its scope\n\t}",
"@RequiresLock(\"SeaLock\")\r\n protected void dependentInvalidAction() {\r\n // by default do nothing\r\n }",
"@Suspendable\n @Override\n protected void checkTransaction(SignedTransaction stx) throws FlowException {\n }",
"@Transactional(Transactional.TxType.REQUIRED) // (Default)\n\t// Outside a transaction context:\n\t// The interceptor must begin a new JTA transaction, the managed bean method execution must then continue inside this transaction context,\n\t// and the transaction must be completed by the interceptor\n\t//\n\t// Inside a transaction context:\n\t// The current transaction context must be suspended, a new JTA transaction will begin, the managed bean method execution must then continue\n\t// inside this transaction context, the transaction must be completed, and the previously suspended transaction must be resumed.\n\tpublic void required() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.REQUIRED\");\n\t}",
"@Override\n public void startTx() {\n \n }",
"public void forceCommitTx()\n{\n}",
"@Transactional//expect both \"T\" and \"F\"\n\tpublic Object invalidTxInPublicMethod(String action) {\n\t\tuniActionLogDao.insert(\"T\");\n\t\ttry {\n\t\t\tlogInfo12();\n\t\t} catch (Exception e) {\n\t\t\t//do nothing\n\t\t\treturn \"F1\";\n\t\t}\n\t\treturn \"T1\";\n\t}",
"public void rollbackTx()\n\n{\n\n}",
"public boolean hasActiveTx()\n{\n\treturn depth > 0;\n}",
"protected void maybeToReadonlyTransaction() {\n\t\tTransaction.current().toReadonly();\n\t}",
"@Override\n\tpublic boolean isJoinedToTransaction() {\n\t\treturn false;\n\t}",
"@Test public void testTransactionExclusion() throws Exception {\n server.begin(THREAD1);\n\n try {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100, false);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30517 Client thread already involved in a transaction. Transaction nesting is not supported. The current transaction must be completed first.\", //$NON-NLS-1$\n ex.getMessage());\n }\n }",
"public boolean createTransaction() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\tprotected Transaction createTarget() {\n\t\treturn null;\n\t}",
"@Test public void testTransactionExclusion2() throws Exception {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100,false);\n\n try {\n server.start(THREAD2, XID1, XAResource.TMNOFLAGS, 100,false);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30522 Global transaction Teiid-Xid global:1 branch:null format:0 already exists.\", ex.getMessage()); //$NON-NLS-1$\n }\n }",
"Transaction beginTx();",
"public boolean isTransactionRunning();",
"@Test public void testTransactionExclusion1() throws Exception {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100, false);\n\n try {\n server.begin(THREAD1);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30517 Client thread already involved in a transaction. Transaction nesting is not supported. The current transaction must be completed first.\", //$NON-NLS-1$\n ex.getMessage());\n }\n }",
"public boolean transactionStarted();",
"@Test public void testTransactionExclusion3() throws Exception {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100,false);\n\n try {\n server.start(THREAD1, XID2, XAResource.TMNOFLAGS, 100,false);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30517 Client thread already involved in a transaction. Transaction nesting is not supported. The current transaction must be completed first.\", //$NON-NLS-1$\n ex.getMessage());\n }\n }",
"@Override\n public void begin() throws NotSupportedException, SystemException {\n SimpleTransaction txn = getTransaction();\n int status = txn.getStatus();\n if (status == Status.STATUS_COMMITTED || status == Status.STATUS_ROLLEDBACK || status == Status.STATUS_UNKNOWN\n || status == Status.STATUS_ACTIVE)\n txn.setStatus(Status.STATUS_ACTIVE);\n else\n throw new IllegalStateException(\"Can not begin \" + txn);\n }",
"protected final boolean beforeInvocation(Object proxy, Method method, Object[] args) {\n\t\tif (isTransactionalMethod(method)) {\n\t\t\tif (haveTransaction()) {\n\t\t\t\tlogger.fine(\"Don't need to create transaction for transactional method '\" + method.getName() + \"': one already exists\");\n\t\t\t\t// TODO: parallel no commit if we want to allow this at all\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlogger.info(\"Creating transaction for method '\" + method.getName() + \"'\");\n\t\t\t\t// There must be an entry\n\t\t\t\tInteger isolationLevel = (Integer) txMethods.get(method.getName());\n\t\t\t\tObject txObject = newTransaction(isolationLevel.intValue());\n\t\t\t\tcreateTransactionContext(txObject);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tlogger.fine(\"Don't need to create transaction for method '\" + method.getName() + \"': this method isn't transactional\");\n\t\t}\n\t\treturn true;\n\t}",
"public void authorizeTransaction() {}",
"@Test\n public void processTransactionManagerCaseA()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),2000));\n }",
"@Transactional(Transactional.TxType.SUPPORTS)\n\tpublic void supports() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.SUPPORTS\");\n\t // Here the container will allow the method to be called by a client whether the client already has a transaction or not\n\t}",
"public void beginTransaction() {\n\r\n\t}",
"@Test public void testTransactionExclusion5() throws Exception {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100,false);\n server.start(THREAD2, XID2, XAResource.TMNOFLAGS, 100,false);\n server.end(THREAD2, XID2, XAResource.TMSUCCESS,false);\n\n try {\n server.start(THREAD1, XID2, XAResource.TMJOIN, 100,false);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30517 Client thread already involved in a transaction. Transaction nesting is not supported. The current transaction must be completed first.\", //$NON-NLS-1$\n ex.getMessage());\n }\n }",
"protected void imposeTransactionFee ()\n {\n if (getBalance () < minimumBalance)\n super.withdraw (transactionFee);\n }",
"public void checkForTransaction() throws SystemException;",
"public TransactionBuilder readOnly();",
"protected abstract Transaction createAndAdd();",
"public int startTransaction();",
"@Override\r\n\tprotected void handlePropagateTransaction(Transaction transaction) {\n\t\tif (!StrategyImpl.BASE.equals(transaction.getStrategy().getName())) {\r\n\t\t\tgetRuleService().sendEvent(transaction.getStrategy().getName(), transaction);\r\n\t\t}\r\n\t}",
"@Trace(excludeFromTransactionTrace = true, leaf = true)\n private void tracedActivityFromFlyweight() {\n TracedActivity tracedActivity = AgentBridge.getAgent().getTransaction().createAndStartTracedActivity();\n Assert.assertTrue(tracedActivity instanceof NoOpSegment);\n }",
"protected abstract Txn createTxn(Txn parent, IsolationLevel level) throws Exception;",
"@Override\n public void setRollbackOnly() throws IllegalStateException, SystemException {\n assertActiveTransaction();\n getTransaction().setRollbackOnly();\n }",
"@Test public void testTransactionExclusion4() throws Exception {\n server.begin(THREAD1);\n\n try {\n server.begin(THREAD1);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30517 Client thread already involved in a transaction. Transaction nesting is not supported. The current transaction must be completed first.\", //$NON-NLS-1$\n ex.getMessage());\n }\n }",
"public void beginTransaction() throws Exception;",
"@Override\n\tpublic boolean supportsTransactions() {\n\n\t\treturn false;\n\t}",
"@Override\n public void rollbackTx() {\n \n }",
"@Suspendable\n @Override\n public Void call() throws FlowException {\n // We retrieve the notary identity from the network map.\n final Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0);\n QueryCriteria queryCriteria = new QueryCriteria.LinearStateQueryCriteria(null, ImmutableList.of(this.linearId),\n Vault.StateStatus.UNCONSUMED, null);\n List<StateAndRef<NDAState>> ndaStates = getServiceHub().getVaultService().queryBy(NDAState.class, queryCriteria).getStates();\n\n // We create the transaction components.\n NDAState outputState = new NDAState(getOurIdentity(), crmParty, \"APPROVED\");\n StateAndContract outputStateAndContract = new StateAndContract(outputState, LEGAL_CONRACT_ID);\n List<PublicKey> requiredSigners = ImmutableList.of(getOurIdentity().getOwningKey(), crmParty.getOwningKey());\n Command cmd = new Command<>(new LegalContract.Approve(), requiredSigners);\n\n // We create a transaction builder and add the components.\n final TransactionBuilder txBuilder = new TransactionBuilder();\n txBuilder.addInputState(ndaStates.get(0));\n txBuilder.setNotary(notary);\n txBuilder.withItems(outputStateAndContract, cmd);\n\n // Signing the transaction.\n final SignedTransaction signedTx = getServiceHub().signInitialTransaction(txBuilder);\n // Creating a session with the other party.\n FlowSession otherpartySession = initiateFlow(crmParty);\n // Obtaining the counterparty's signature.\n SignedTransaction fullySignedTx = subFlow(new CollectSignaturesFlow(\n signedTx, ImmutableList.of(otherpartySession), CollectSignaturesFlow.tracker()));\n // Finalising the transaction.\n subFlow(new FinalityFlow(fullySignedTx));\n return null;\n }",
"@Override\n public void rollback() throws IllegalStateException, SecurityException, SystemException {\n assertActiveTransaction();\n try {\n getTransaction().rollback();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n txns.set(null);\n }\n }",
"@Suspendable\n @Override\n public SignedTransaction call() throws FlowException {\n\n Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0);\n//\n\n // Source\n AccountInfo issuerOwner = subFlow(new AccountInfoByName(acctNameSource)).get(0).getState().getData();\n PublicKey issuerOwnerKey = getServiceHub().getKeyManagementService().freshKey(issuerOwner.getIdentifier().getId());\n AnonymousParty issuerOwnerAnonParty = new AnonymousParty(issuerOwnerKey);\n\n AccountInfo targetOwner = subFlow(new AccountInfoByName(acctNameTarget)).get(0).getState().getData();\n PublicKey targetOwnerKey = getServiceHub().getKeyManagementService().freshKey(issuerOwner.getIdentifier().getId());\n AnonymousParty targetOwnerAnonParty = new AnonymousParty(targetOwnerKey);\n\n\n AssetForAccountState outputAsset = new AssetForAccountState(issuerOwnerAnonParty, targetOwnerAnonParty,\n asset.getState().getData().getName(), asset.getState().getData().getValue());\n\n\n TransactionBuilder txBuilder = new TransactionBuilder(notary)\n .addInputState(asset)\n .addOutputState(outputAsset, AssetForAccountContract.ID)\n .addCommand(new AssetForAccountContract.Commands.Transfer(), issuerOwnerKey);\n\n txBuilder.verify(getServiceHub());\n\n SignedTransaction fullySignedTransaction = getServiceHub().signInitialTransaction(txBuilder, issuerOwnerKey);\n\n //return fullySignedTransaction;\n return subFlow(new FinalityFlow(fullySignedTransaction, Collections.emptyList()));\n }",
"public Transaction getTransaction() throws RuntimeException{\n\t\tif(tr == null)\n\t\t\tthrow new RuntimeException(\"The transaction has not been started\");\n\t\treturn tr;\n\t}",
"void beginTransaction();",
"boolean hasTxnrequest();",
"@Override\n public Transaction suspend() throws SystemException {\n throw new UnsupportedOperationException();\n }",
"void startTransaction();",
"public boolean beginTransaction() {\n boolean result = false;\n if (_canDisableAutoCommit) {\n try {\n _connection.setAutoCommit(false);\n result = true;\n } catch (SQLException e) {\n Log.warning(\"Transactions not supported\", this, \"startTransaction\");\n _canDisableAutoCommit = false;\n }\n }\n return result;\n }",
"public Transaction startTransaction() {\r\n return getManager().startTransaction();\r\n }",
"@Test\n public void processTestB()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),2000);\n\n Assert.assertEquals(false,trans.process());\n }",
"void begin() throws org.omg.CosTransactions.SubtransactionsUnavailable;",
"public abstract void anticipate();",
"public void transactionStarted() {\n transactionStart = true;\n }",
"public interface TransactionReadOnly {\n boolean isReadyOnly(String sql);\n\n}",
"@Override\n\tpublic boolean isRented() {\n\t\treturn false;\n\t}",
"@Override\n\t\tpublic boolean shouldContinueExecuting() {\n\t\t\treturn false;\n\t\t}",
"@Override\n public int cancelTransaction() {\n System.out.println(\"Please make a selection first\");\n return 0;\n }",
"@Suspendable\n @Override\n public StateAndRef<SanctionedEntities> call() throws FlowException {\n // Obtain a reference to the notary we want to use.\n Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0);\n\n // Stage 1\n progressTracker.setCurrentStep(GENERATING_TRANSACTION);\n // Generate an unsigned transaction.\n SanctionedEntities state = new SanctionedEntities(Collections.emptyList(), getServiceHub().getMyInfo().getLegalIdentities().get(0));\n Command txCommand = new Command(new SanctionedEntitiesContract.Commands.Create(), getServiceHub().getMyInfo().getLegalIdentities().get(0).getOwningKey());\n TransactionBuilder txBuilder = new TransactionBuilder(notary)\n .addOutputState(state, SanctionedEntitiesContract.SANCTIONS_CONTRACT_ID)\n .addCommand(txCommand);\n txBuilder.verify(getServiceHub());\n\n // Stage 2\n progressTracker.setCurrentStep(SIGNING_TRANSACTION);\n // Sign the transaction\n SignedTransaction partSignedTx = getServiceHub().signInitialTransaction(txBuilder);\n\n // Stage 3\n progressTracker.setCurrentStep(FINALISING_TRANSACTION);\n // Notarise and record the transaction in both parties' vaults.\n return subFlow(\n new FinalityFlow(\n partSignedTx,\n Collections.emptyList(),\n FINALISING_TRANSACTION.childProgressTracker()\n )\n ).getTx().outRefsOfType(SanctionedEntities.class).get(0);\n }",
"@Override\n public void resume(Transaction arg0) throws IllegalStateException, InvalidTransactionException, SystemException {\n throw new UnsupportedOperationException();\n }",
"@Test\n public void testTransactionalPublicMethodsWithMandatoryPropagationMustNotRollbackOnRuntimeException() {\n final Stream<Method> failingMethods = streamPublicMethodsFromFeatureAndIntegrationPackage()\n .filter(method -> method.isAnnotationPresent(Transactional.class))\n .filter(MANDATORY_TRANSACTIONAL_PROPAGATION)\n .filter(method -> {\n\n return Arrays\n .stream(method.getAnnotation(Transactional.class).noRollbackFor())\n .noneMatch(cls -> isRuntimeException(cls) || cls.isAssignableFrom(Exception.class));\n });\n\n assertEmpty(failingMethods,\n \"The following methods should include RuntimeExceptions in noRollbackFor attribute of \"\n + \"@Transactional annotation: \");\n }",
"@Entao(\"^nao sera possivel por falta de estoque$\")\n\tpublic void naoSeraPossivelPorFaltaDeEstoque() throws Throwable {\n\t throw new PendingException();\n\t}",
"@Override\n\tboolean isRegistedMethodNotNeed() {\n\t\treturn true;\n\t}",
"public static void setRollbackOnly() {\n\t\tTxStatus status = (TxStatus) txContexts.get();\n\t\tif (status == null) {\n\t\t\t//System.out.println(\"No transaction to set rollbackonly on\");\n\t\t\tthrow new TransactionInfrastructureUsageException(\"No transaction context in setRollbackOnly\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Set rollbackonly on\");\n\t\t\tstatus.setRollbackOnly();\n\t\t}\n\t}",
"Transaction getCurrentTransaction();",
"final void ensureOngoingTransaction() throws SQLException {\n if (!transactionLock.isHeldByCurrentThread()) {\n throw new SQLNonTransientException(Errors.getResources(getLocale())\n .getString(Errors.Keys.ThreadDoesntHoldLock));\n }\n }",
"public void beginTransaction() throws TransactionException {\n\t\t\r\n\t}",
"@Test\n public void processTransactionManagerCaseB()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(true,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),30));\n }",
"protected void startTopLevelTrx() {\n startTransaction();\n }",
"boolean invokeOperation() {\n return false;\n }",
"private TaskTransaction tx() {\n if (this.taskTx == null) {\n /*\n * NOTE: don't synchronized(this) due to scheduler thread hold\n * this lock through scheduleTasks(), then query tasks and wait\n * for db-worker thread after call(), the tx may not be initialized\n * but can't catch this lock, then cause dead lock.\n * We just use this.eventListener as a monitor here\n */\n synchronized (this.eventListener) {\n if (this.taskTx == null) {\n BackendStore store = this.graph.loadSystemStore();\n TaskTransaction tx = new TaskTransaction(this.graph, store);\n assert this.taskTx == null; // may be reentrant?\n this.taskTx = tx;\n }\n }\n }\n assert this.taskTx != null;\n return this.taskTx;\n }",
"private boolean isTransactionOnBlockchain(Transaction tx){\n if(currentBlockchain.containsTransaction(tx)){\n return true;\n }\n return false;\n }",
"@Override\r\n public boolean isAccountNonLocked() {\r\n return true;\r\n }",
"@Override\n public void run() {\n BeginTransactionMethodCall beginTransactionMethodCall = (BeginTransactionMethodCall) methodCall;\n long transactionTimeout = beginTransactionMethodCall.getTransactionTimeout();\n SpaceTransactionHolder spaceTransactionHolder = new SpaceTransactionHolder();\n spaceTransactionHolder.setSynchronizedWithTransaction( true );\n spaceTransactionHolder.setTimeoutInMillis( transactionTimeout );\n TransactionModificationContext mc = new TransactionModificationContext();\n mc.setProxyMode( true );\n spaceTransactionHolder.setModificationContext( mc );\n modificationContextFor( nodeRaised ).put( mc.getTransactionId(), spaceTransactionHolder );\n methodCall.setResponseBody( objectBuffer.writeObjectData( mc.getTransactionId() ) );\n }",
"private MetaSparqlRequest createRollbackPreInsered() {\n\t\treturn createRollbackMT1();\n\t}",
"@Override\n public boolean isTransActionAlive() {\n Transaction transaction = getTransaction();\n return transaction != null && transaction.isActive();\n }",
"public TransactionBuilder checkInternalVertexExistence();",
"@Override\n public boolean isAccountNonLocked() {\n return true;\n }",
"@Override\npublic boolean isAccountNonLocked() {\n\treturn true;\n}",
"T handle(Tx tx) throws Exception;",
"public void begin()\n {\n checkTransactionJoin();\n if (joinStatus != JoinStatus.NO_TXN)\n {\n throw new NucleusTransactionException(\"JTA Transaction is already active\");\n }\n\n UserTransaction utx;\n try\n {\n utx = getUserTransaction();\n }\n catch (NamingException e)\n {\n throw ec.getApiAdapter().getUserExceptionForException(\"Failed to obtain UserTransaction\", e);\n }\n\n try\n {\n utx.begin();\n }\n catch (NotSupportedException e)\n {\n throw ec.getApiAdapter().getUserExceptionForException(\"Failed to begin UserTransaction\", e);\n }\n catch (SystemException e)\n {\n throw ec.getApiAdapter().getUserExceptionForException(\"Failed to begin UserTransaction\", e);\n }\n\n checkTransactionJoin();\n if (joinStatus != JoinStatus.JOINED)\n {\n throw new NucleusTransactionException(\"Cannot join an auto started UserTransaction\");\n }\n userTransaction = utx;\n }",
"@Override\n\tpublic void cancelTransaction() {\n\t\t\n\t}",
"protected abstract void rollbackIndividualTrx();",
"@Override\n public void executeTransaction() {\n System.out.println(\"Please make a selection first\");\n }",
"@Override\n public void commitTx() {\n \n }",
"public Boolean shouldAbandon() {\n return false;\n }",
"@Test\n public void testTransactionalPublicMethodsRollbackOnCheckedExceptionIfNoMandatoryPropagation() {\n final Set<Method> methodsToTest = streamPublicMethodsFromFeatureAndIntegrationPackage()\n .filter(method -> method.isAnnotationPresent(Transactional.class))\n .filter(MANDATORY_TRANSACTIONAL_PROPAGATION.negate())\n .collect(toSet());\n\n final Map<Method, Set<Class<? extends Exception>>> rollbackingCheckedExceptions =\n methodsToTest.stream().collect(mappingTo(method -> {\n\n final Transactional txAnnot = method.getAnnotation(Transactional.class);\n\n return streamCheckedExceptions(txAnnot.rollbackFor()).collect(toSet());\n }));\n\n final Predicate<Method> failureTest = method -> {\n return streamCheckedExceptions(method.getExceptionTypes()).anyMatch(declaredCheckedException -> {\n return !findClassOrItsAncestor(\n declaredCheckedException, rollbackingCheckedExceptions.get(method)).isPresent();\n });\n };\n\n assertEmpty(methodsToTest.stream().filter(failureTest),\n \"The following methods should include checked exceptions in rollbackFor attribute of \"\n + \"@Transactional annotation: \");\n }",
"@Test\n public void processTransactionManagerCaseD()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n acc_db.addAccount(acc3);\n\n trans_mang.processTransaction(acc.get_Account_Number(), acc2.get_Account_Number(), 30);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc3.get_Account_Number(),30));\n }",
"public Boolean isProhibited() {\n throw new NotImplementedException();\n }",
"@Override\n\tpublic void testInnerNsTxOutRdTx() {\n\t\t\n\t}",
"public int getTransactionId() {\n/* 99 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void createTx() throws Exception {\n PublicKey recipient = Seed.getRandomAddress();\n Transaction tx = new Transaction(wallet.pb, recipient, wallet.pr);\n//\t\tSystem.out.println(\"Created a tx\");\n txPool.add(tx);\n//\t\tcache.put(tx.txId, null);\n sendTx(tx);\n }",
"@Override\n\tpublic void onTransactionStart() {}",
"public Transaction startTransaction(){\n\t\ttr = new Transaction(db);\n\t\treturn tr;\n\t}",
"IDbTransaction beginTransaction();",
"@Override\r\n\tpublic Transaction suspend() throws IllegalStateException, SystemException {\r\n\t\trequireTransaction(\"suspend\");\r\n\t\tTransaction suspended = threadTransaction.get();\r\n\t\tsetNewTransaction();\r\n\t\treturn suspended;\r\n\t}",
"public Boolean removeTransaction()\n {\n return true;\n }"
] | [
"0.67594767",
"0.6452884",
"0.63926226",
"0.6369579",
"0.6177614",
"0.6080645",
"0.6076201",
"0.6064459",
"0.600184",
"0.5998819",
"0.58874214",
"0.58814865",
"0.58775645",
"0.5824548",
"0.58016497",
"0.57735443",
"0.57654023",
"0.5749982",
"0.56731176",
"0.562992",
"0.5627918",
"0.5623165",
"0.56203234",
"0.560355",
"0.56024516",
"0.5569079",
"0.5563048",
"0.55485857",
"0.5543069",
"0.5540715",
"0.55263966",
"0.5515353",
"0.55096453",
"0.55026925",
"0.55023175",
"0.54748595",
"0.54541",
"0.54408425",
"0.5436022",
"0.5419963",
"0.5415008",
"0.53992796",
"0.53743285",
"0.53731203",
"0.5371582",
"0.53537273",
"0.53252167",
"0.5323706",
"0.5305692",
"0.5295768",
"0.5288417",
"0.5284827",
"0.52808744",
"0.5239792",
"0.5236002",
"0.5231121",
"0.5229335",
"0.522703",
"0.5213007",
"0.52101487",
"0.51994073",
"0.51992935",
"0.5195458",
"0.5185529",
"0.51853526",
"0.5183527",
"0.5177061",
"0.5168665",
"0.51663995",
"0.5165159",
"0.5148818",
"0.5148674",
"0.5145617",
"0.5138154",
"0.5133678",
"0.5128743",
"0.51207757",
"0.5118887",
"0.5099387",
"0.5094801",
"0.50912815",
"0.50873256",
"0.50824565",
"0.50769675",
"0.50742733",
"0.5072494",
"0.50709677",
"0.5069546",
"0.5065584",
"0.50618446",
"0.5059004",
"0.50575835",
"0.50361234",
"0.503219",
"0.5031809",
"0.5030898",
"0.5030488",
"0.502018",
"0.50196826",
"0.5011696",
"0.5011298"
] | 0.0 | -1 |
/ Propagation as REQUIRES_NEW with Isolation as SERIALIZABLE SERIALIZABLE : A constant indicating that dirty reads, nonrepeatable reads, and phantom reads are prevented. This is the highest isolation level and usually requires the use of shared read locks and exclusive write locks (as in the case of MySQL). Phantom Reads: Transaction 'A' reads a range of records. Meanwhile Transaction 'B' inserts a new record in the same range that Transaction A initially fetched and commits. Later Transaction A reads the same range again and will also get the record that Transaction B just inserted. This is a phantom read: a transaction fetched a range of records multiple times from the database and obtained result sets (containing phantom records). | @Transactional (propagation = Propagation.REQUIRES_NEW, isolation = Isolation.SERIALIZABLE)
@Override
public List<UserBO> listUser(String criteria) {
logger.info("Begin : " + getClass().getName() + " : listUser()");
List<UserBO> userBOList = securityDao.listUser(criteria);
logger.info("User list 1st fetched : " + userBOList.size());
userBOList = securityDao.listUser(criteria);
logger.info("User list 2nd fetched : " + userBOList.size());
return userBOList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TransactionIsolation isolation();",
"@Transactional(Transactional.TxType.REQUIRES_NEW)\n\tpublic void requiresNew() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.REQUIRES_NEW\");\n\t // Here the container will always start a new transaction and run the method inside its scope\n\t}",
"protected abstract Object newTransaction(int isolationLevel) throws TransactionInfrastructureException;",
"void readOnlyTransaction();",
"@Test\n @Ignore(\"This is only applicable to Neo4j 2.0.0-M03 and below where transactions \" +\n \"were not mandatory for reading\")\n public void defaultReadingIsReadCommitted() throws Exception {\n assertNameAndAgeViaLookup(john.getId(), \"John\", 34, \"John\");\n\n // Do the update in a separate Thread and ensure its actually updated\n doUpdateInSeparateThread(new PersonUpdater(\"John\", 44));\n\n // Now, back in our thread, ensure we read the commited value\n assertNameAndAgeViaLookup(john.getId(), \"John\", 44, \"John\");\n }",
"@Override\r\n\t\tpublic void setTransactionIsolation(int level) throws SQLException {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic int getTransactionIsolation() throws SQLException {\n\t\t\treturn 0;\r\n\t\t}",
"protected void maybeToReadonlyTransaction() {\n\t\tTransaction.current().toReadonly();\n\t}",
"@Override\n\tpublic void beginTransaction() {\n\t\tSystem.out.println(\"Transaction 1 begins\");\n\t\t\n\t\t/*String queryLock = \"LOCK TABLES hpq_mem READ;\";\n\t\t\n\t\tPreparedStatement ps;\n\t\ttry {\n\t\t\tconn.setAutoCommit(false);\n\t\t\tps = conn.prepareStatement(queryLock);\n\t\t\tps.execute();\n\t\t\tps = conn.prepareStatement(\"START TRANSACTION;\");\n\t\t\tps.execute();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t\n\t\tSystem.out.println(\"After obtaining readLock\");\n\t\t\n\t}",
"Transaction beginTx();",
"IDbTransaction beginTransaction(IsolationLevel il);",
"public interface TransactionReadOnly {\n boolean isReadyOnly(String sql);\n\n}",
"@Test\n public void existingTransaction() {\n Transaction t1 = startTransaction();\n IntRef intValue = new IntRef(10);\n t1.commit();\n\n Transaction t2 = startTransaction();\n assertEquals(10, intValue.get());\n\n intValue.inc();\n assertEquals(11, intValue.get());\n t2.commit();\n }",
"protected abstract Transaction createAndAdd();",
"protected abstract Txn createTxn(Txn parent, IsolationLevel level) throws Exception;",
"public void forceCommitTx()\n{\n}",
"public TransactionConcurrency concurrency();",
"@Test\n public void testIsolationLevel()\n {\nEmployee employee = new EmployeeBuilder().withAge(30).withName(\"Hans\").withSurename(\"Mueller\").build();\n Department department = new DepartmentBuilder().withName(\"Abteilung 1\").build();\n em.getTransaction().begin();\n\n // From the spec:\n // If FlushModeType.COMMIT is specified,\n //flushing will occur at transaction commit; the persistence provider is permitted, but not required, to perform\n //to flush at other times.\n em.setFlushMode(FlushModeType.COMMIT);\n\n employee.setDepartment(department);\n em.persist(department);\n\n // partial flush should be visible to same EM\n Department reloadedDepartment = em.find(Department.class, department.getId());\n Assert.assertNotNull(reloadedDepartment);\n\n // check for flushed content in the db via second EM\n // Will fail on hsqldb, because of lack of isolationlevel implementation\n EntityManager em2 = emf.createEntityManager();\n reloadedDepartment = em2.find(Department.class, department.getId());\n Assert.assertNull(\"This one is failing if HSQLDB is used (here READ_UNCOMMITTED is actually used!) ...\", reloadedDepartment);\n\n em.getTransaction().commit();\n }",
"@Test\n public void testAllDirtySucceeds()\n throws IOException, DbException, TransactionAbortedException {\n HeapFile f = SystemTestUtil.createRandomHeapFile(2, 512 * 10, null, null);\n Database.resetBufferPool(1);\n\n // BEGIN TRANSACTION\n Transaction t = new Transaction();\n t.start();\n\n // Insert a new row\n TransactionTestUtil.insertRow(f, t);\n\n // Scanning the table must fail because it can't evict the dirty page\n try {\n TransactionTestUtil.findMagicTuple(f, t);\n } catch (DbException e) {\n fail(\"Expected scan to run be able to evict buffer pages\");\n }\n t.commit();\n }",
"Transaction getCurrentTransaction();",
"Transaction createTransaction();",
"public abstract void lockTableForReading(String table) throws RollbackException;",
"@Test\n public void testPessimisticLocking()\n {\n Employee employee = new EmployeeBuilder().withAge(30).withName(\"Hans\").withSurename(\"Mueller\").build();\n\n // saving Employee\n em.getTransaction().begin();\n em.persist(employee);\n em.getTransaction().commit();\n\n // fresh start\n em = emf.createEntityManager();\n EntityManager em2 = emf.createEntityManager();\n\n em.getTransaction().begin();\n Employee reloadedEmployeInstance1 = em.find(Employee.class, employee.getId());\n\n // Enable to get a deadlock\n// em.lock(reloadedEmployeInstance1, LockModeType.READ);\n\n em2.getTransaction().begin();\n Employee reloadedEmployeInstance2 = em2.find(Employee.class, employee.getId());\n reloadedEmployeInstance2.setAge(99);\n em2.persist(reloadedEmployeInstance2);\n em2.getTransaction().commit();\n\n\n em.getTransaction().commit();\n }",
"IDbTransaction beginTransaction();",
"public TransactionBuilder readOnly();",
"@Override\n public void startTx() {\n \n }",
"protected abstract IsolationLevel selectIsolationLevel(Transaction parent,\r\n IsolationLevel level);",
"public interface IndexTransaction\n{\n\tpublic static final int STATUS_ACTIVE = 0;\n\n\tpublic static final int STATUS_COMMITTED = 3;\n\n\tpublic static final int STATUS_COMMITTING = 8;\n\n\tpublic static final int STATUS_MARKED_ROLLBACK = 1;\n\n\tpublic static final int STATUS_NO_TRANSACTION = 6;\n\n\tpublic static final int STATUS_PREPARED = 2;\n\n\tpublic static final int STATUS_PREPARING = 7;\n\n\tpublic static final int STATUS_ROLLEDBACK = 4;\n\n\tpublic static final int STATUS_ROLLING_BACK = 9;\n\n\tpublic static final int STATUS_UNKNOWN = 5;\n\n\tpublic static final String[] TRANSACTION_STATUS = { \"Created\", \"Marked for Rollback\",\n\t\t\t\"Prepared\", \"Committed\", \"Rolled Back\", \"Unknown\", \"No Transaction\",\n\t\t\t\"Preparing\", \"Committing\", \"Rolling Back\" };\n\n\tpublic static final boolean[] TRANSACTION_ACTIVE = { true, false, true, false, false,\n\t\t\tfalse, false, true, false, false };\n\n\t/**\n\t * Prepare to commit this transaction, all the work is done, but all the\n\t * listeners need to be ready and able to performa commit without failure\n\t */\n\tvoid prepare() throws IndexTransactionException;\n\n\t/**\n\t * Commit the transaction and make it available to others in the cluster\n\t * \n\t * @throws IndexTransactionException\n\t */\n\tvoid commit() throws IndexTransactionException;\n\n\t/**\n\t * @throws IndexTransactionException\n\t * if the transaction is not open\n\t */\n\tvoid rollback() throws IndexTransactionException;\n\n\t/**\n\t * @return\n\t */\n\tlong getTransactionId();\n\n\t/**\n\t * @throws IndexTransactionException\n\t */\n\tvoid close() throws IndexTransactionException;\n\n\t/**\n\t * get the transaction status\n\t * \n\t * @return\n\t */\n\tint getStatus();\n\n\t/**\n\t * get an Object from the transaction, that may have been placed in the\n\t * transaction by earlier phases.\n\t * \n\t * @param key\n\t * @return\n\t */\n\tObject get(String key);\n\n\t/**\n\t * Clear an object placed in the transaction\n\t * \n\t * @param key\n\t */\n\tvoid clear(String key);\n\n\t/**\n\t * Put an object into the transaction for use in later phases\n\t * \n\t * @param key\n\t * @param obj\n\t */\n\tvoid put(String key, Object obj);\n\n\t/**\n\t * @throws IndexTransactionException\n\t */\n\tvoid open() throws IndexTransactionException;\n\n}",
"public Connection decorate(Connection conn)\r\n throws SQLException {\n conn = super.decorate(conn);\r\n \r\n if (conf.getTransactionIsolationConstant() == -1\r\n && conn.getTransactionIsolation() < conn.TRANSACTION_READ_COMMITTED)\r\n conn.setTransactionIsolation(conn.TRANSACTION_READ_COMMITTED);\r\n \r\n return conn;\r\n }",
"@Transactional(Transactional.TxType.NOT_SUPPORTED)\n\tpublic void notSupported() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.NOT_SUPPORTED\");\n\t // Here the container will make sure that the method will run in no transaction scope and will suspend any transaction started by the client\n\t}",
"public void testAddReplicaWhileWritesBlocked() throws Exception {\n final String primaryNode = internalCluster().startNode();\n createIndex(INDEX_NAME);\n ensureYellowAndNoInitializingShards(INDEX_NAME);\n final String replicaNode = internalCluster().startNode();\n ensureGreen(INDEX_NAME);\n\n final IndexShard primaryShard = getIndexShard(primaryNode, INDEX_NAME);\n final List<String> replicaNodes = new ArrayList<>();\n replicaNodes.add(replicaNode);\n assertEqualSegmentInfosVersion(replicaNodes, primaryShard);\n\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicInteger totalDocs = new AtomicInteger(0);\n try (final Releasable ignored = blockReplication(replicaNodes, latch)) {\n Thread indexingThread = new Thread(() -> { totalDocs.getAndSet(indexUntilCheckpointCount()); });\n indexingThread.start();\n indexingThread.join();\n latch.await();\n indexDoc();\n totalDocs.incrementAndGet();\n refresh(INDEX_NAME);\n // index again while we are stale.\n assertBusy(() -> {\n expectThrows(OpenSearchRejectedExecutionException.class, () -> {\n indexDoc();\n totalDocs.incrementAndGet();\n });\n });\n final String replica_2 = internalCluster().startNode();\n assertAcked(\n client().admin()\n .indices()\n .prepareUpdateSettings(INDEX_NAME)\n .setSettings(Settings.builder().put(SETTING_NUMBER_OF_REPLICAS, 2))\n );\n replicaNodes.add(replica_2);\n }\n ensureGreen(INDEX_NAME);\n waitForSearchableDocs(totalDocs.get(), replicaNodes);\n refresh(INDEX_NAME);\n // wait for the replicas to catch up after block is released.\n assertReplicaCheckpointUpdated(primaryShard);\n\n // index another doc showing there is no pressure enforced.\n indexDoc();\n refresh(INDEX_NAME);\n waitForSearchableDocs(totalDocs.incrementAndGet(), replicaNodes.toArray(new String[] {}));\n verifyStoreContent();\n }",
"Optional<TransactionIsolation> getTransactionIsolation();",
"@Test\n @Transactional\n public void test_pessimistic_lock__separate_transactions__forUpdate_doesnot_update() throws InterruptedException {\n AtomicLong waited = new AtomicLong(-1);\n AtomicBoolean expectedValueFound = new AtomicBoolean(false);\n URI atomURI = newAtomURI();\n executeInSeparateThreadAndWaitForResult(() -> {\n Atom atom = new Atom();\n atom.setAtomURI(atomURI);\n atom.setState(AtomState.ACTIVE);\n AtomMessageContainer container = new AtomMessageContainer(atom, atom.getAtomURI());\n atom = atomRepository.save(atom);\n });\n Thread parallelThread1 = new Thread(() -> helper.doInSeparateTransaction(() -> {\n Optional<Atom> b = atomRepository.findOneByAtomURIForUpdate(atomURI);\n logger.debug(\"read in other thread: \" + b);\n }));\n parallelThread1.start();\n Thread.sleep(100);\n Thread parallelThread2 = new Thread(() -> helper.doInSeparateTransaction(() -> {\n Optional<Atom> a = atomRepository.findOneByAtomURIForUpdate(atomURI);\n logger.debug(\"read in yet another thread: \" + a);\n logger.debug(\"blocking...\");\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n a.get().setCreationDate(new Date(1));\n atomRepository.save(a.get());\n }));\n parallelThread2.start();\n Thread.sleep(100);\n Thread parallelThread3 = new Thread(() -> helper.doInSeparateTransaction(() -> {\n Optional<Atom> b = atomRepository.findOneByAtomURI(atomURI);\n logger.debug(\"acquiring exclusive lock...\");\n long now = System.currentTimeMillis();\n b = atomRepository.findOneByAtomURIForUpdate(atomURI);\n logger.debug(\"read in the third thread: \" + b);\n logger.debug(\"waited: \" + (System.currentTimeMillis() - now));\n waited.set(System.currentTimeMillis() - now);\n expectedValueFound.set(b.get().getCreationDate().getTime() != 1);\n }));\n parallelThread3.start();\n logger.debug(\"waiting for parallel threads to finish\");\n parallelThread1.join();\n parallelThread2.join();\n parallelThread3.join();\n Assert.assertTrue(\"thread should have been blocked at least 500ms\", waited.get() > 500);\n Assert.assertTrue(\"thread3 did not get update by thread2\", expectedValueFound.get());\n }",
"private static synchronized void writeTransaction( StmTransaction transaction ) {\n\n // Check for conflicts.\n for ( AbstractVersionedItem versionedItem : transaction.versionedItemsRead ) {\n versionedItem.ensureNotWrittenByOtherTransaction();\n }\n\n // Set the revision number to a committed value.\n transaction.targetRevisionNumber.set( lastCommittedRevisionNumber.incrementAndGet() );\n\n }",
"private MetaSparqlRequest createRollbackPreInsered() {\n\t\treturn createRollbackMT1();\n\t}",
"@Override\r\n\t@Transactional\r\n\tpublic Transactions getTransaction() {\r\n\r\n\t\tArrayList<Transactions> closedTransactions=null;\r\n\t\tif(closedTransactions == null)\r\n\t\t{\r\n\t\tclosedTransactions = new ArrayList<Transactions>();\r\n\t\tclosedTransactions = this.getClosedTransactions();\r\n\t\t}\r\n\r\n\r\n\t\tif (index < closedTransactions.size()) {\r\n\t\t\tTransactions transaction = closedTransactions.get(index++);\r\n\t\t\treturn transaction;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public Transaction startTransaction() {\n Transaction transaction = THREADED_TRANSACTION.get();\n if (transaction == null) {\n transaction = openOrRetrieveSessionForThread().beginTransaction();\n THREADED_TRANSACTION.set(transaction);\n }\n return transaction;\n }",
"@Test\n public void readOnlyUnrepairedTest() throws Throwable\n {\n createTable(\"create table %s (id int, id2 int, t text, t2 text, primary key (id, id2)) with gc_grace_seconds=0 and compaction = {'class':'SizeTieredCompactionStrategy', 'only_purge_repaired_tombstones':true}\");\n for (int i = 10; i < 20; i++)\n {\n execute(\"update %s set t2=null where id=? and id2=?\", 123, i);\n }\n flush();\n\n // allow gcgrace to properly expire:\n Thread.sleep(1000);\n verifyIncludingPurgeable();\n verify2IncludingPurgeable(123);\n }",
"OBasicTransaction getMicroOrRegularTransaction();",
"@Override\n public void begin() throws NotSupportedException, SystemException {\n SimpleTransaction txn = getTransaction();\n int status = txn.getStatus();\n if (status == Status.STATUS_COMMITTED || status == Status.STATUS_ROLLEDBACK || status == Status.STATUS_UNKNOWN\n || status == Status.STATUS_ACTIVE)\n txn.setStatus(Status.STATUS_ACTIVE);\n else\n throw new IllegalStateException(\"Can not begin \" + txn);\n }",
"@Transactional(isolation = Isolation.SERIALIZABLE, propagation = Propagation.REQUIRES_NEW)\n public void save(Reservations r) {\n Session session = sessionFactory.getCurrentSession();\n session.save(r);\n }",
"public boolean createTransaction() {\n\t\t\treturn false;\n\t\t}",
"boolean getTransactional();",
"private TaskTransaction tx() {\n if (this.taskTx == null) {\n /*\n * NOTE: don't synchronized(this) due to scheduler thread hold\n * this lock through scheduleTasks(), then query tasks and wait\n * for db-worker thread after call(), the tx may not be initialized\n * but can't catch this lock, then cause dead lock.\n * We just use this.eventListener as a monitor here\n */\n synchronized (this.eventListener) {\n if (this.taskTx == null) {\n BackendStore store = this.graph.loadSystemStore();\n TaskTransaction tx = new TaskTransaction(this.graph, store);\n assert this.taskTx == null; // may be reentrant?\n this.taskTx = tx;\n }\n }\n }\n assert this.taskTx != null;\n return this.taskTx;\n }",
"public boolean transactionStarted();",
"@Override\r\n public void beforeCommit(boolean readOnly) {\n }",
"ConsistencyLevel consistency();",
"@Override\n public SimpleTransaction getTransaction() throws SystemException {\n SimpleTransaction txn = txns.get();\n if (txn == null) {\n txn = new SimpleTransaction();\n txn.setStatus(Status.STATUS_ACTIVE);\n txns.set(txn);\n }\n return txn;\n }",
"@Override\n\tpublic boolean supportsTransactions() {\n\n\t\treturn false;\n\t}",
"TransactionContext preAppendTransaction() throws IOException;",
"public void checkReadLock() {\n checkNotDeleted();\n super.checkReadLock();\n }",
"void addTransaction(Transaction transaction, long timestamp) throws TransactionNotInRangeException;",
"int insertSelective(Transaction record);",
"public void beginTransaction() {\n\r\n\t}",
"void beginTransaction();",
"@Override\r\n\tpublic Transaction getTransaction() throws SystemException {\r\n\t\tif (threadTransaction.get()==null)\r\n\t\t\tsetNewTransaction();\r\n\t\treturn threadTransaction.get();\r\n\t}",
"public Object doInTransaction(TransactionStatus status) {\n sendEvent();\n sendEvent();\n sendEvent();\n sendEvent();\n status.setRollbackOnly();\n return null;\n }",
"public Transaction startTransaction(){\n\t\ttr = new Transaction(db);\n\t\treturn tr;\n\t}",
"@Transactional\n DataRistorante insert(DataRistorante risto);",
"@Transactional(Transactional.TxType.SUPPORTS)\n\tpublic void supports() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.SUPPORTS\");\n\t // Here the container will allow the method to be called by a client whether the client already has a transaction or not\n\t}",
"@Test(expected = RollbackException.class)\n public void testOptimisticLocking()\n {\n Employee employee = new EmployeeBuilder().withAge(30).withName(\"Hans\").withSurename(\"Mueller\").build();\n\n // saving Employee\n em.getTransaction().begin();\n em.persist(employee);\n em.getTransaction().commit();\n\n // fresh start\n em = emf.createEntityManager();\n EntityManager em2 = emf.createEntityManager();\n\n\n Employee reloadedEmployeInstance1 = em.find(Employee.class, employee.getId());\n Employee reloadedEmployeInstance2 = em2.find(Employee.class, employee.getId());\n\n // --- client 1 ---\n // saving employee1\n reloadedEmployeInstance1.setAge(100);\n em.getTransaction().begin();\n em.persist(reloadedEmployeInstance1);\n em.getTransaction().commit();\n\n // --- client 2 ---\n // saving employe2\n reloadedEmployeInstance2.setAge(99);\n em2.getTransaction().begin();\n em2.persist(reloadedEmployeInstance2);\n em2.getTransaction().commit();\n }",
"public void beginTransaction() throws Exception;",
"@Override\n\tpublic boolean isReadWrite() {\n\t\treturn true;\n\t}",
"protected Transaction getTransaction() {\n return sessionFactory.getCurrentSession().getTransaction();\n }",
"@Override\n public void commitTx() {\n \n }",
"public boolean isTransactional()\n {\n return _isTransactional;\n }",
"StmTransaction() {\n\n // Spin until we get a next rev number and put it in the queue of rev numbers in use w/o concurrent change.\n // (We avoid concurrent change because if another thread bumped the revisions in use, it might also have\n // cleaned up the revision before we said we were using it.)\n while ( true ) {\n long sourceRevNumber = lastCommittedRevisionNumber.get();\n sourceRevisionsInUse.add( sourceRevNumber );\n if ( sourceRevNumber == lastCommittedRevisionNumber.get() ) {\n this.sourceRevisionNumber = sourceRevNumber;\n break;\n }\n sourceRevisionsInUse.remove( sourceRevNumber );\n }\n\n // Use the next negative pending revision number to mark our writes.\n this.targetRevisionNumber = new AtomicLong( lastPendingRevisionNumber.decrementAndGet() );\n\n // Track the versioned items read and written by this transaction.\n this.versionedItemsRead = new HashSet<>();\n this.versionedItemsWritten = new HashSet<>();\n\n // Flag a write conflict as early as possible.\n this.newerRevisionSeen = false;\n\n // Establish a link for putting this transaction in a linked list of completed transactions.\n this.nextTransactionAwaitingCleanUp = new AtomicReference<>( null );\n\n }",
"public boolean isReadOnly() {\n return type == TransactionType.READ_ONLY;\n }",
"public abstract void lockTableForWriting(String table) throws RollbackException;",
"private void t1() {\n // read and write to the same region: just want the write effect\n writeProtected();\n readProtected();\n }",
"public Optional<TransactionHistory> readTransaction()\n {\n return null;\n }",
"public void beginTransactionBlock() throws SQLException {\n masterNodeConnection.setAutoCommit(false);\n }",
"<R> R transactNewReadOnly(Supplier<R> work) {\n ReadOnlyWork<R> readOnlyWork = new ReadOnlyWork<>(work, getClock());\n try {\n ofy().transactNew(() -> {\n readOnlyWork.run();\n return null;\n });\n } catch (TransientFailureException | DatastoreTimeoutException | DatastoreFailureException e) {\n // These are always retryable for a read-only operation.\n return transactNewReadOnly(work);\n } catch (KillTransactionException e) {\n // Expected; we killed the transaction as a safety measure, and now we can return the result.\n return readOnlyWork.getResult();\n }\n throw new AssertionError(); // How on earth did we get here?\n }",
"public int getDefaultIsolation() {\r\n return defaultIsolation;\r\n }",
"@Override\n public Object doInTransaction(TransactionStatus transactionStatus) {\n transactionStatus.setRollbackOnly();\n return null;\n }",
"public int startTransaction();",
"public boolean acquireReadLockNoWait() {\r\n return true;\r\n }",
"@Override\n\t public Consistency getDefaultConsistency() {\n\t return Consistency.READ_YOUR_OWN_WRITES;\n\t }",
"@Override\n\tpublic boolean isConsistent() {\n\t\treturn true;\n\t}",
"private void RecordStoreLockFactory() {\n }",
"@Override\n\tpublic Consistency getDefaultConsistency() {\n\t\treturn Consistency.READ_YOUR_OWN_WRITES;\n\t}",
"public Session createTransactionAwareSession() throws TopLinkException {\n\t\tthrow new UnsupportedOperationException(\"SingleSessionFactory does not support transaction-aware Sessions\");\n\t}",
"public void acquireReadLock() {\r\n return;\r\n }",
"@Override\n\tpublic void setIsolationLevel(int iso_level) {\n\t\tSystem.out.println(\"Setting isolation level for transaction 1 to: \" + iso_level);\n\t\t\n\t\tisolation_level = iso_level;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tString query = \"SET SESSION TRANSACTION ISOLATION LEVEL ?;\";\n\t\t\t\n\t\t\tPreparedStatement ps = conn.prepareStatement(query);\n\t\t\t\n\t\t\tswitch(isolation_level) {\n\t\t\tcase ISO_READ_UNCOMMITTED: //ps.setString(1, \"READ UNCOMMITTED\"); \n\t\t\t\t\tconn.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);\n\t\t\t\tbreak;\n\t\t\tcase ISO_READ_COMMITTED: //ps.setString(1, \"READ COMMITTED\");\n\t\t\t\t\tconn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);\n\t\t\t\tbreak;\n\t\t\tcase ISO_REPEATABLE_READ: //ps.setString(1, \"REPEATABLE READ\");\n\t\t\t\t\tconn.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ);\n\t\t\t \tbreak;\n\t\t\tcase ISO_SERIALIZABLE: //ps.setString(1, \"SERIALIZABLE\");\n\t\t\t\t\tconn.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);\n\t\t\t\tbreak;\n\t\t\tdefault: //ps.setString(1, \"SERIALIZABLE\");\n\t\t\t\t\tconn.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//ps.executeQuery();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}",
"private void t3() {\n // write to a super region, read from a subregion: only keep write\n writeProtected();\n readDefault();\n }",
"public boolean beginTransaction() {\n boolean result = false;\n if (_canDisableAutoCommit) {\n try {\n _connection.setAutoCommit(false);\n result = true;\n } catch (SQLException e) {\n Log.warning(\"Transactions not supported\", this, \"startTransaction\");\n _canDisableAutoCommit = false;\n }\n }\n return result;\n }",
"@Transactional(Transactional.TxType.NEVER)\n\tpublic void never() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.NEVER\");\n\t // Here the container will reject any invocation done by clients already participate in transactions\n\t}",
"@Override\n public void getWriteLock( Object resource, Transaction tx ) throws DeadlockDetectedException,\n IllegalResourceException\n {\n LockGrabber grabber = null;\n if ( resource instanceof Node ) grabber = LockGrabber.NODE_WRITE;\n else if ( resource instanceof Relationship ) grabber = LockGrabber.RELATIONSHIP_WRITE;\n else if ( resource instanceof GraphProperties ) grabber = LockGrabber.GRAPH_WRITE;\n else if ( resource instanceof IndexLock ) grabber = LockGrabber.INDEX_WRITE;\n\n try\n {\n if ( grabber == null )\n {\n super.getWriteLock( resource, tx );\n return;\n }\n\n initializeTxIfFirst();\n LockResult result = null;\n do\n {\n int eventIdentifier = getLocalTxId();\n result = databaseOperations.receive( grabber.acquireLock( broker.getMaster().first(),\n databaseOperations.getSlaveContext( eventIdentifier ), resource ) );\n switch ( result.getStatus() )\n {\n case OK_LOCKED:\n super.getWriteLock( resource, tx );\n return;\n case DEAD_LOCKED:\n throw new DeadlockDetectedException( result.getDeadlockMessage() );\n }\n }\n while ( result.getStatus() == LockStatus.NOT_LOCKED );\n }\n catch ( RuntimeException e )\n {\n databaseOperations.exceptionHappened( e );\n throw e;\n }\n }",
"private void concurrencyWrites1() {\n\t\ttry {\n\t\t\tlog.info(\"Starting TrxTableClient5: concurrencyWrites1\");\n\t\t\tlog.info(\"main--put[v1]\");\n\t\t\tlog.info(\"t1-----------beginTrans---put[v2]---------------------------commit\");\n\t\t\tlog.info(\"t2-------------------------------------beginTrans---put[v3]----------commit\");\n\t\t\tlog.info(\"main---get[v2]\");\n\n\t\t\tSsccTableClientUtils.initialize();\n\t\t\tputValue();\n\n\t\t\tfinal P0Trx01 t1 = new P0Trx01();\n\t\t\tfinal P0Trx02 t2 = new P0Trx02();\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt1.doWork();\n\t\t\t\t\tlog.info(\" Trx1 finished\");\n\t\t\t\t\tcdl.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx1\").start();\n\n\t\t\t// to make sure t2 is later than t1\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\tnew Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tt2.doWork();\n\t\t\t\t\tlog.info(\" Trx2 finished\");\n\t\t\t\t\tcdl.countDown();\n\t\t\t\t}\n\t\t\t}, \"Trx2\").start();\n\n\t\t\tcdl.await();\n\t\t\tSsccTableClientUtils.testSsccBeginTransaction();\n\t\t\tInteger[] result = SsccTableClientUtils.testSsccGet();\n\t\t\tSsccTableClientUtils.testSsccCommitIfPossible();\n\t\t\tlog.info(\"Finish TrxTableClient5: concurrencyWrites1\");\n\n\t\t\tif (result.length == 1 && result[0] == 2) {\n\t\t\t\tsuccessNum++;\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"SUCCESS\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t} else {\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"FAILURE\");\n\t\t\t\tlog.info(\" \");\n\t\t\t\tlog.info(\"=========================================\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private int readByReadOnlyTransaction(int ts, Operation o, Variable v) {\n o.setValue(v.getLastCommittedValueBefore(ts));\n return v.getLastCommittedValueBefore(ts);\n }",
"public static void main(String[] args) throws ClassNotFoundException, SQLException {\n Class.forName(\"org.postgresql.Driver\");\n\n // Connect to the \"bank\" database.\n Connection conn = DriverManager.getConnection(\"jdbc:postgresql://127.0.0.1:26257/?reWriteBatchedInserts=true&applicationanme=123&sslmode=disable\", \"root\", \"\");\n conn.setAutoCommit(false); // true and false do not make the difference\n // rewrite batch does not make the difference\n\n try {\n // Create the \"accounts\" table.\n conn.createStatement().execute(\"CREATE TABLE IF NOT EXISTS accounts (id serial PRIMARY KEY, balance INT)\");\n\n // Insert two rows into the \"accounts\" table.\n PreparedStatement st = conn.prepareStatement(\"INSERT INTO accounts (balance) VALUES (?), (?) returning id, balance\", \n ResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n st.setInt(1, 100); \n st.setInt(2, 200); \n\n ResultSet rs = st.executeQuery();\n\n st = conn.prepareStatement(\"select id1, id2, link_type, visibility, data, time, version from linkbench.linktable where id1 = 9307741 and link_type = 123456790 and time >= 0 and time <= 9223372036854775807 and visibility = 1 order by time desc limit 0 offset 10000\",\n ResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n rs = st.executeQuery();\n rs.last();\n int count = rs.getRow();\n rs.beforeFirst();\n System.out.printf(\"# of row in return set is %d\\n\", count);\n\n while (rs.next()) {\n System.out.printf(\"\\taccount %s: %s\\n\", rs.getLong(\"id\"), rs.getInt(\"balance\"));\n }\n } finally {\n // Close the database connection.\n conn.close();\n }\n }",
"public void checkpoint(boolean hasUncommittedData) throws SQLException;",
"@Override\n\tpublic Transaction read(int id) {\n\t\treturn null;\n\t}",
"public GlobalTransaction getCurrentTransaction()\n {\n return getCurrentTransaction(true);\n }",
"public Boolean persistent();",
"public void createTransaction(Transaction trans);",
"@Override\n public int acquire() {\n final long stamp = allocatorLock.writeLock();\n try {\n return acquire0();\n } finally {\n allocatorLock.unlockWrite(stamp);\n }\n }",
"@Override\n public boolean isCommitted() {\n return false;\n }",
"public void dataBaseLocked();",
"public GlobalTransaction getCurrentTransaction(boolean createIfNotExists)\n {\n Transaction tx;\n\n if ((tx = getLocalTransaction()) == null)\n {// no transaction is associated with the current thread\n return null;\n }\n\n if (!isValid(tx))\n {// we got a non-null transaction, but it is not active anymore\n int status = -1;\n try\n {\n status = tx.getStatus();\n }\n catch (SystemException e)\n {\n }\n\n // JBCACHE-982 -- don't complain if COMMITTED\n if (status != Status.STATUS_COMMITTED)\n {\n log.warn(\"status is \" + status + \" (not ACTIVE or PREPARING); returning null)\");\n }\n else\n {\n log.trace(\"status is COMMITTED; returning null\");\n }\n\n return null;\n }\n\n return getCurrentTransaction(tx, createIfNotExists);\n }",
"public interface LocalTransaction {\n /**\n * Begins a local transaction on the userlying resource.\n */\n public void begin() throws ResourceException;\n\n /**\n * Commits a local transaction on the userlying resource.\n */\n public void commit() throws ResourceException;\n\n /**\n * Rolls back a local transaction on the userlying resource.\n */\n public void rollback() throws ResourceException;\n}"
] | [
"0.64788854",
"0.6439968",
"0.6300294",
"0.59965986",
"0.5991745",
"0.5904513",
"0.5902142",
"0.58678705",
"0.5703471",
"0.56591344",
"0.56231797",
"0.5613752",
"0.5540949",
"0.554047",
"0.55038196",
"0.5463897",
"0.545567",
"0.53826183",
"0.5381078",
"0.5366829",
"0.53604865",
"0.5351199",
"0.53499544",
"0.5344101",
"0.53218806",
"0.5292677",
"0.5280921",
"0.526753",
"0.5248681",
"0.52296996",
"0.5197307",
"0.51889503",
"0.51888144",
"0.51886547",
"0.51838857",
"0.5160697",
"0.51304084",
"0.51008934",
"0.5094889",
"0.50923127",
"0.50660145",
"0.50568944",
"0.50440997",
"0.5037212",
"0.50329304",
"0.5032788",
"0.5023901",
"0.5012936",
"0.5010222",
"0.50029784",
"0.5002405",
"0.49985197",
"0.49941885",
"0.4990459",
"0.49867356",
"0.4978085",
"0.49778226",
"0.49735945",
"0.49711537",
"0.49688846",
"0.4963497",
"0.4961945",
"0.49572158",
"0.49471587",
"0.49453062",
"0.49410492",
"0.49346578",
"0.4931283",
"0.4930235",
"0.49087033",
"0.490274",
"0.49024335",
"0.48958987",
"0.48930594",
"0.4892471",
"0.48835003",
"0.48743278",
"0.48742384",
"0.48739776",
"0.48701823",
"0.48701084",
"0.48615268",
"0.48520863",
"0.4845733",
"0.4844632",
"0.4844573",
"0.48419008",
"0.48328346",
"0.4832387",
"0.48240468",
"0.4822041",
"0.48179114",
"0.47981665",
"0.47959754",
"0.47946957",
"0.47884518",
"0.47850296",
"0.47833124",
"0.4768682",
"0.47676253",
"0.4759588"
] | 0.0 | -1 |
/ Spring Framework provides two ways to manage programmatic transaction list shown below: By using TransactionTemplate By using PlatformTransactionManager implementation directly to the code Typical usage: Allows for writing lowlevel data access objects that use resources such as JDBC DataSources but are not transactionaware themselves. Instead, they can implicitly participate in transactions handled by higherlevel application services utilizing this class, making calls to the lowlevel services via an innerclass callback object. | @Transactional (propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED, readOnly = false, rollbackFor = Exception.class)
@Override
public long saveUserWithTemplate(UserBO user) {
logger.info("Begin : " + getClass().getName() + " :saveUser()");
long userId = 0;
try {
userId = securityDao.saveUserWithTemplate(user);
logger.info("User Created Successfully with template..." + userId);
} catch( Exception e) {
logger.error("Exception occurred while saving with template: "+e);
}
return userId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Bean\r\n public PlatformTransactionManager transactionManager() {\r\n return new DataSourceTransactionManager(dynamicDataSource());\r\n }",
"public SpringAwareJdbcTransactionManager() {\r\n }",
"public interface TransactionService {\n\n /**\n * @return TransactionManager\n */\n TransactionManager getTransactionManager();\n\n /**\n * @return UserTransaction\n */\n UserTransaction getUserTransaction();\n\n /**\n * @return default timeout in seconds\n */\n int getDefaultTimeout();\n\n /**\n * Sets timeout in seconds,\n * \n * @param seconds int\n * @throws SystemException\n */\n void setTransactionTimeout(int seconds) throws SystemException;\n\n /**\n * Enlists XA resource in transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void enlistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Delists XA resource from transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void delistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Creates unique XA transaction identifier.\n * \n * @return Xid\n */\n Xid createXid();\n\n}",
"@Bean\n public ResourcelessTransactionManager transactionManager() {\n return new ResourcelessTransactionManager();\n }",
"public PlatformTransactionManager getTransactionManager() {\n return _transactionTemplate.getTransactionManager();\n }",
"@Bean\n\tpublic PlatformTransactionManager transactionManager() {\n\t\tEntityManagerFactory factory = this.entityManagerFactory().getObject();\n\t\treturn new JpaTransactionManager(factory);\n\t}",
"public interface TransactionManager {\n\n\t/**\n\t * Start a new read only transaction.\n\t */\n\n\tStableView view();\n\n\t/**\n\t * Start a transaction for mutation.\n\t */\n\n\tMutableView begin();\n\n\t/**\n\t * Commit a previously prepared transaction for a two phase commit.\n\t *\n\t * @param tpcid\n\t * The client supplied two phase commit identifier.\n\t */\n\n\tvoid commit(String tpcid);\n\n}",
"@Bean\n public PlatformTransactionManager transactionManager() {\n DataSourceTransactionManager transactionManager = new DataSourceTransactionManager();\n transactionManager.setDataSource(dataSource());\n return transactionManager;\n }",
"@Autowired\n public TransactionDao(JdbcTemplate jdbcTemplate) {\n this.jdbcTemplate = jdbcTemplate;\n }",
"@Component\npublic interface TransactionService {\n\n\t/**\n\t * Method used to save or update a transaction object\n\t * \n\t * @param transaction\n\t * The transaction to persist\n\t * @throws Exception\n\t * Any exception thrown saving or updating the object\n\t */\n\tpublic void saveOrUpdate(Transaction transaction) throws Exception;\n\t\n\t/**\n\t * Method used to query all the transactions in the repository\n\t * \n\t * @return the list of all transactions in the repository\n\t * @throws Exception\n\t */\n\tpublic Transaction[] getTransactionsList() throws Exception;\n\t\n\t/**\n\t * Method used to delete a transaction from the repository\n\t * \n\t * @param transaction\n\t * The transaction to remove\n\t * @return a boolean with the result. true on success false otherwise.\n\t * @throws Exception\n\t */\n\tpublic boolean delete(Transaction transaction) throws Exception;\n\t\n\t/**\n\t * Method used to query a transaction given its id\n\t * @param id The unique identifier of the transaction\n\t * @return The Transaction instance\n\t * @throws Exception\n\t */\n\tpublic Transaction getById(String id) throws Exception;\n\n}",
"Transaction createTransaction();",
"@Bean\n public PlatformTransactionManager transactionManager() {\n JpaTransactionManager manager = new JpaTransactionManager();\n manager.setEntityManagerFactory(entityManagerFactory());\n\n return manager;\n }",
"TransactionManager getTransactionManager();",
"<T> T executeInTransaction(OperationsCallback<K, V, T> callback);",
"public void runInTransaction(TransactionalAction callback) {\n EntityManager em = getEntityManager();\n try {\n em.getTransaction().begin();\n callback.run(em, new DaoFactory(em));\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }",
"@Primary\n @Bean\n JpaTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {\n JpaTransactionManager transactionManager = new JpaTransactionManager();\n transactionManager.setEntityManagerFactory(entityManagerFactory);\n return transactionManager;\n }",
"@Bean\n\tpublic PlatformTransactionManager transactionManager(DataSource dataSource) {\n\t\treturn new DataSourceTransactionManager(dataSource);\n\t}",
"@Transactional\npublic interface IShortMessageService {\n\n @Transactional(readOnly=true)\n public List<ShortMessageDto> getAll();\n\n @Transactional(readOnly=true)\n public ShortMessageDto getById(Long messageId);\n\n @Transactional(readOnly=true)\n public List<ShortMessageDto> getLatest10();\n\n public Long add(String messageBody);\n\n public void update(ShortMessageDto messageDto);\n\n public void delete(Long messageID);\n\n}",
"public interface TransactionManager {\n public <T,E extends Exception> T doInTransaction(UnitOfWork<T,E> unitOfWork) throws E, SQLException;\n}",
"public void createTransaction(Transaction trans);",
"Transaction getCurrentTransaction();",
"@Bean\r\n public JpaTransactionManager transactionManager() {\r\n String message = messageSource.getMessage(\"begin\", null, \"locale not found\", Locale.getDefault())\r\n + \" \" + messageSource.getMessage(\"config.data.transaction\", null, \"locale not found\", Locale.getDefault());\r\n logger.info(message);\r\n JpaTransactionManager transactionManager = new JpaTransactionManager();\r\n transactionManager.setEntityManagerFactory(entityManagerFactory().getObject());\r\n message = messageSource.getMessage(\"end\", null, \"locale not found\", Locale.getDefault())\r\n + \" \" + messageSource.getMessage(\"config.data.transaction\", null, \"locale not found\", Locale.getDefault());\r\n logger.info(message);\r\n return transactionManager;\r\n }",
"public DataSourceTransactionManager() {\r\n\t\tthis.transactionClass = DataSourceTransaction.class;\r\n\t}",
"HibernateTransactionTemplate() {\n _transactionTemplate = getTransactionTemplate();\n _hibernateTemplate = getHibernateTemplate();\n }",
"@Bean\n\tpublic JpaTransactionManager transactionManager() {\n\t\tJpaTransactionManager transactionManager = new JpaTransactionManager();\n\t\ttransactionManager.setEntityManagerFactory(entityManagerFactory().getObject());\n\t\treturn transactionManager;\n\t}",
"interface TransactionSupport {\n\n\n /*\n * Static fields.\n */\n\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_ACTIVE}.\n */\n int STATUS_ACTIVE = 0;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_MARKED_ROLLBACK}.\n */\n int STATUS_MARKED_ROLLBACK = 1;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_PREPARED}.\n */\n int STATUS_PREPARED = 2;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_COMMITTED}.\n */\n int STATUS_COMMITTED = 3;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_ROLLEDBACK}.\n */\n int STATUS_ROLLEDBACK = 4;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_UNKNOWN}.\n */\n int STATUS_UNKNOWN = 5;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_NO_TRANSACTION}.\n */\n int STATUS_NO_TRANSACTION = 6;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_PREPARING}.\n */\n int STATUS_PREPARING = 7;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_COMMITTING}.\n */\n int STATUS_COMMITTING = 8;\n\n /**\n * Equal in value and meaning to {@link\n * jakarta.transaction.Status#STATUS_ROLLING_BACK}.\n */\n int STATUS_ROLLING_BACK = 9;\n\n\n /*\n * Method signatures.\n */\n\n\n /**\n * Returns {@code true} if JTA facilities are available.\n *\n * @return {@code true} if JTA facilities are available; {@code\n * false} otherwise\n */\n boolean isEnabled();\n\n /**\n * Returns the {@linkplain Context#isActive() active} {@link\n * Context}, if any, that supports JTA facilities at the moment of\n * invocation, or {@code null}.\n *\n * <p>Implementations of this method may, and often do, return\n * {@code null}.</p>\n *\n * <p>The {@link Context} returned by implementations of this\n * method may become active or inactive at any moment.</p>\n *\n * @return the {@link Context}, if any, that supports JTA\n * facilities, or {@code null}\n *\n * @see Context#isActive()\n */\n Context getContext();\n\n /**\n * Returns a constant indicating the current transaction status.\n *\n * <p>Implementations of this method must return {@link\n * #STATUS_NO_TRANSACTION} ({@code 6}) if JTA is not supported.</p>\n *\n * @return a JTA {@link jakarta.transaction.Status} constant\n * indicating the current transaction status\n */\n int getStatus();\n\n}",
"public static void main(String args[]) throws Exception\n {\n\n DataSourceTransactionManager txManager = (DataSourceTransactionManager)context.getBean(\"txManager\");\n\n DefaultTransactionDefinition definition = new DefaultTransactionDefinition();\n TransactionStatus ts = txManager.getTransaction(definition);\n\n try{\n\n txManager.commit(ts);\n }catch (Exception e){\n txManager.rollback(ts);\n }\n\n }",
"public interface IntactTransactionSynchronization extends TransactionSynchronization {\n\n /**\n * Attach this intactDao to the transaction synchronization adapter so it will be taken into account during the spring transaction (clearing cache after commit for instance)\n * @param intactDao\n */\n public void registerDaoForSynchronization(IntactDao intactDao);\n}",
"public void setTransactionManager(TransactionManager tm)\n {\n _tm = tm;\n }",
"@Bean\r\n\tpublic HibernateTransactionManager getTransactionManager(SessionFactory sessionFactory) {\r\n\t\treturn new HibernateTransactionManager(sessionFactory);\r\n\t}",
"@Override\n public void rollbackTx() {\n \n }",
"@Transactional\npublic interface TransactionRepository extends JpaRepository<TransactionDao, Integer> {\n\n List<TransactionDao> findAll();\n}",
"protected abstract Object newTransaction(int isolationLevel) throws TransactionInfrastructureException;",
"public interface UserTransactionService\r\n{\r\n\tvoid shutdown ( boolean force ) throws IllegalStateException;\r\n\t\r\n\tvoid shutdown (long maxWaitTime) throws IllegalStateException;\r\n \r\n\tvoid registerResource ( RecoverableResource resource );\r\n\r\n\tvoid removeResource ( RecoverableResource res );\r\n\r\n\tvoid registerLogAdministrator ( LogAdministrator admin );\r\n\r\n\tvoid removeLogAdministrator ( LogAdministrator admin );\r\n\r\n\tvoid registerTransactionServicePlugin ( TransactionServicePlugin listener );\r\n\r\n\tvoid removeTransactionServicePlugin ( TransactionServicePlugin listener );\r\n\r\n\tvoid init ( Properties properties ) throws SysException;\r\n\t\r\n\tvoid init() throws SysException;\r\n\r\n\tCompositeTransactionManager getCompositeTransactionManager();\r\n\r\n\r\n}",
"public interface UserService extends Service<User> {\n\n @Transactional(isolation = Isolation.SERIALIZABLE)\n boolean addTour(long userId, long tourId);\n\n @Transactional(isolation = Isolation.SERIALIZABLE)\n boolean deleteTour(long userId, long tourId);\n\n @Transactional(isolation = Isolation.SERIALIZABLE)\n List<Tour> tourList(long userId);\n}",
"public static interface TransactionCallback {\n public void transactionSuccessful(Receipt r);\n public void transactionFailed();\n }",
"@Bean\n public PlatformTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {\n JpaTransactionManager transactionManager = new JpaTransactionManager();\n transactionManager.setEntityManagerFactory(entityManagerFactory);\n\n return transactionManager;\n }",
"public interface LocalTransaction {\n /**\n * Begins a local transaction on the userlying resource.\n */\n public void begin() throws ResourceException;\n\n /**\n * Commits a local transaction on the userlying resource.\n */\n public void commit() throws ResourceException;\n\n /**\n * Rolls back a local transaction on the userlying resource.\n */\n public void rollback() throws ResourceException;\n}",
"public interface SessionTransactionManager {\n /**\n * Flush the current ORM session.\n */\n void flushSession();\n \n /**\n * Clear the first-level cache of the current ORM session.\n */ \n void clearSession();\n \n /**\n * Start a new transaction.\n */ \n void beginTransaction();\n \n /**\n * Commit the current transaction.\n */ \n void commitTransaction();\n \n /**\n * Roll back the current transaction.\n */ \n void rollbackTransaction();\n}",
"public MessageService(PlatformTransactionManager transactionManager) {\n this.transactionTemplate = new TransactionTemplate(transactionManager);\n }",
"protected abstract Transaction createAndAdd();",
"public void rollbackTx()\n\n{\n\n}",
"@Transactional(Transactional.TxType.SUPPORTS)\n\tpublic void supports() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.SUPPORTS\");\n\t // Here the container will allow the method to be called by a client whether the client already has a transaction or not\n\t}",
"public interface UserService {\n @Transactional\n void add(User user);\n\n @Transactional\n void upgradeLevels();\n}",
"@Override\n\tpublic boolean supportsTransactions() {\n\n\t\treturn false;\n\t}",
"@Bean\n @Autowired\n public JpaTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {\n\n JpaTransactionManager txManager = new JpaTransactionManager();\n txManager.setEntityManagerFactory(entityManagerFactory);\n\n return txManager;\n }",
"void beginTransaction();",
"Transaction createTransaction(Settings settings);",
"public void DoTransaction(TransactionCallback callback) {\r\n Transaction tx = _db.beginTx();\r\n try {\r\n callback.doTransaction();\r\n tx.success();\r\n } catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Failed to do callback transaction.\");\r\n\t\t\tex.printStackTrace();\r\n\t\t\ttx.failure();\r\n\t\t} finally {\r\n\t\t\ttx.finish();\r\n tx.close();\r\n\t\t}\r\n }",
"@Transactional\n public void inboundReturnRequestAnsToWms(StockTransApplication sta, Warehouse wh) {\n\n }",
"void startTransaction();",
"public TransactionSystem(List<Transaction> transactionList)\n\t{\n\t\ttransactionQueue = new LinkedList<Transaction>();\n\t\tfor(Transaction transaction: transactionList)\n\t\t\ttransactionQueue.add(transaction);\n\t\tSystem.out.println(\"Transaction system created!\");\n\t}",
"private void transactionList(CallbackContext callbackContext) {\n TransactionDAO transactionDAO = new TransactionDAO(StoneSDK.this.cordova.getActivity());\n\n // cria uma lista com todas as transacoes\n List<TransactionObject> transactionObjects = transactionDAO.getAllTransactionsOrderByIdDesc();\n\n // exibe todas as transacoes (neste caso valor e status) para o usuario\n JSONArray arrayList = new JSONArray();\n\n for (TransactionObject list : transactionObjects) {\n JSONObject obj = new JSONObject();\n\n try{\n obj.put(\"idFromBase\", String.valueOf(list.getIdFromBase()));\n obj.put(\"amount\", list.getAmount());\n obj.put(\"requestId\", String.valueOf(list.getRequestId()));\n obj.put(\"emailSent\", String.valueOf(list.getEmailSent()));\n obj.put(\"timeToPassTransaction\", String.valueOf(list.getTimeToPassTransaction()));\n obj.put(\"initiatorTransactionKey\", String.valueOf(list.getInitiatorTransactionKey()));\n obj.put(\"recipientTransactionIdentification\", String.valueOf(list.getRecipientTransactionIdentification()));\n obj.put(\"cardHolderNumber\", String.valueOf(list.getCardHolderNumber()));\n obj.put(\"cardHolderName\", String.valueOf(list.getCardHolderName()).trim());\n obj.put(\"date\", String.valueOf(list.getDate()));\n obj.put(\"time\", String.valueOf(list.getTime()));\n obj.put(\"aid\", String.valueOf(list.getAid()));\n obj.put(\"arcq\", String.valueOf(list.getArcq()));\n obj.put(\"authorizationCode\", String.valueOf(list.getAuthorizationCode()));\n obj.put(\"iccRelatedData\", String.valueOf(list.getIccRelatedData()));\n obj.put(\"transactionReference\", String.valueOf(list.getTransactionReference()));\n obj.put(\"actionCode\", String.valueOf(list.getActionCode()));\n obj.put(\"commandActionCode\", String.valueOf(list.getCommandActionCode()));\n obj.put(\"pinpadUsed\", String.valueOf(list.getPinpadUsed()));\n obj.put(\"cne\", String.valueOf(list.getCne()));\n obj.put(\"cvm\", String.valueOf(list.getCvm()));\n obj.put(\"serviceCode\", String.valueOf(list.getServiceCode()));\n obj.put(\"entryMode\", String.valueOf(list.getEntryMode()));\n obj.put(\"cardBrand\", String.valueOf(list.getCardBrand()));\n obj.put(\"instalmentTransaction\", String.valueOf(list.getInstalmentTransaction()));\n obj.put(\"transactionStatus\", String.valueOf(list.getTransactionStatus()));\n obj.put(\"instalmentType\", String.valueOf(list.getInstalmentType()));\n obj.put(\"typeOfTransactionEnum\", String.valueOf(list.getTypeOfTransactionEnum()));\n obj.put(\"cancellationDate\", String.valueOf(list.getCancellationDate()));\n\n arrayList.put(obj);\n\n }catch (JSONException e){\n e.printStackTrace();\n }\n }\n callbackContext.success(arrayList);\n }",
"protected JtxTransactionManager createJtxTransactionManager(final ConnectionProvider connectionProvider) {\n\t\treturn new DbJtxTransactionManager(connectionProvider);\n\t}",
"public SpringJdbcTransaction getTransaction() {\r\n return transaction;\r\n }",
"@Bean\n JpaTransactionManager jpaTransactionManagerProvider(EntityManagerFactory emf) {\n JpaTransactionManager transactionManager = new JpaTransactionManager(emf);\n return transactionManager;\n }",
"@Test\n public void processTransactionManagerCaseC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n acc_db.addAccount(acc3);\n\n\n trans_mang.processTransaction(acc.get_Account_Number(), acc2.get_Account_Number(), 30);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc3.get_Account_Number(),acc2.get_Account_Number(),30));\n }",
"public interface RepositoryManagerFactory {\n\n /**\n * Returns a new instance of AutoCommittalRepositoryManager that can provide concrete repositories\n * that has methods that will auto-commit changes upon each call.\n *\n * @return AutoCommittalRepositoryManager\n */\n AutoCommittalRepositoryManager getAutoCommittalRepositoryManager();\n\n /**\n * Returns a new instance of TransactionalRepositoryManager and stating the transaction.\n * For all operations invoked via that instance to be committed, one should explicitly call\n * its commit method thus finishing the transaction.\n * Alternatively, one can call its rollback method to finish the transaction by discard all changes\n * invoked by it.\n *\n * @return TransactionalRepositoryManager\n * @throws DaoException if it failed to start a transaction.\n */\n TransactionalRepositoryManager getTransactionalRepositoryManager() throws DaoException;\n\n}",
"@Bean\n ReactiveTransactionManager transactionManager(ConnectionFactory connectionFactory) {\n return new R2dbcTransactionManager(connectionFactory);\n }",
"public HibernateTransactionTemplate getHibernateTransactionTemplate() {\n return new HibernateTransactionTemplate();\n }",
"public interface TransactionBubble<T> {\n\n T doInTransaction(Session session, Injector injector);\n}",
"@Override\n protected void doBegin(Object transaction, TransactionDefinition definition) {\n DataSourceTransactionObject txObject = (DataSourceTransactionObject) transaction;\n Connection con = null;\n\n try {\n if (txObject.getConnectionHolder() == null ||\n txObject.getConnectionHolder().isSynchronizedWithTransaction()) {\n Connection newCon = this.dataSource.getConnection();\n if (logger.isDebugEnabled()) {\n logger.debug(\"Acquired Connection [\" + newCon + \"] for JDBC transaction\");\n }\n txObject.setConnectionHolder(new ConnectionHolder(newCon), true);\n }\n\n txObject.getConnectionHolder().setSynchronizedWithTransaction(true);\n con = txObject.getConnectionHolder().getConnection();\n\n Integer previousIsolationLevel = DataSourceUtils.prepareConnectionForTransaction(con, definition);\n txObject.setPreviousIsolationLevel(previousIsolationLevel);\n\n // Switch to manual commit if necessary. This is very expensive in some JDBC drivers,\n // so we don't want to do it unnecessarily (for example if we've explicitly\n // configured the connection pool to set it already).\n if (con.getAutoCommit()) {\n txObject.setMustRestoreAutoCommit(true);\n if (logger.isDebugEnabled()) {\n logger.debug(\"Switching JDBC Connection [\" + con + \"] to manual commit\");\n }\n con.setAutoCommit(false);\n }\n txObject.getConnectionHolder().setTransactionActive(true);\n\n int timeout = determineTimeout(definition);\n if (timeout != TransactionDefinition.TIMEOUT_DEFAULT) {\n txObject.getConnectionHolder().setTimeoutInSeconds(timeout);\n }\n\n // Bind the session holder to the thread.\n if (txObject.isNewConnectionHolder()) {\n TransactionSynchronizationManager.bindResource(getDataSource(), txObject.getConnectionHolder());\n }\n } catch (Throwable ex) {\n if (txObject.isNewConnectionHolder()) {\n DataSourceUtils.releaseConnection(con, this.dataSource);\n txObject.setConnectionHolder(null, false);\n }\n throw new CannotCreateTransactionException(\"Could not open JDBC Connection for transaction\", ex);\n }\n }",
"public void beginTransaction() throws Exception;",
"public interface OrderService {\n @Transactional\n void processOrder(Orders orders);\n}",
"public interface Transaction {\n void Execute();\n}",
"public interface TransactionalModelController extends ModelController {\n\n OperationResult execute(ModelNode operation, ResultHandler handler, ControllerTransactionContext transaction);\n}",
"private void executeTransaction(ArrayList<Request> transaction) {\n // create a new TransactionMessage\n TransactionMessage tm = new TransactionMessage(transaction);\n //if(tm.getStatementCode(0)!=8&&tm.getStatementCode(0)!=14)\n // return;\n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(tm);\n oos.flush();\n\n byte[] data = bos.toByteArray();\n\n byte[] buffer = null;\n long startTime = System.currentTimeMillis();\n buffer = clientShim.execute(data);\n long endTime = System.currentTimeMillis();\n if (reqIndex < maxNoOfRequests && id > 0) {\n System.out.println(\"#req\" + reqIndex + \" \" + startTime + \" \" + endTime + \" \" + id);\n }\n reqIndex++;\n\n father.addTransaction();\n\n // IN THE MEAN TIME THE INTERACTION IS BEING EXECUTED\n\n\t\t\t\t/*\n\t\t\t\t * possible values of r: 0: commit 1: rollback 2: error\n\t\t\t\t */\n int r = ByteBuffer.wrap(buffer).getInt();\n //System.out.println(\"r = \"+r);\n if (r == 0) {\n father.addCommit();\n } else if (r == 1) {\n father.addRollback();\n } else {\n father.addError();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public HazelcastMQTransactionManager() {\n setNestedTransactionAllowed(false);\n }",
"@Test\n public void processTransactionManagerCaseD()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n acc_db.addAccount(acc3);\n\n trans_mang.processTransaction(acc.get_Account_Number(), acc2.get_Account_Number(), 30);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc3.get_Account_Number(),30));\n }",
"boolean getTransactional();",
"Transaction beginTx();",
"public void beginTransaction() {\n\r\n\t}",
"public interface CustomerTransactionService {\n\t\n\t/**\n\t * Get all customer transactions in the system.\n\t * \n\t * @return collection of all cleaning transaction in the system\n\t */\n\tpublic Collection<CleaningTransaction> findAll();\n\t\n\t/**\n\t * Find a cleaning transaction by custmer's Id.\n\t * \n\t * @param id the customer's id\n\t * @return the cleaning transaction object if found, else return null\n\t */\n\tpublic CleaningTransaction findByCustomerId(Long id);\n\t\n\t/**\n\t * Find a cleaning transaction by item's Id.\n\t * \n\t * @param id the item's id\n\t * @return the cleaning transaction object if found, else return null\n\t */\n\tpublic CleaningTransaction findByItemId(Long id);\n\t\n\t/**\n\t * Find cleaning transaction(s) by due date.\n\t * \n\t * @param dueDate date to collect an item\n\t * @return collection of transactions if found, else return null\n\t */\n\tpublic Collection<CleaningTransaction> findByDueDate(String name);\n\t\n\t/**\n\t * Find cleaning transaction(s) by deposite date.\n\t * \n\t * @param depositeDate date an item was deposited\n\t * @return collection of transactions if found, else return null\n\t */\n\tpublic Collection<CleaningTransaction> findByDepositeDate(String name);\n\t\n\t/**\n\t * Get all payments for a transaction.\n\t * \n\t * @param CustomerItem object\n\t * @return collection of payment objects\n\t */\n\tpublic Collection<Payment> getPayments(CustomerItem customerItem);\n\t\n\t/**\n\t * Create new cleaning transaction.\n\t * \n\t * @param cleaning transaction object\n\t * @return the created transaction \n\t */\n\tpublic CleaningTransaction create(CleaningTransaction cleaningTransaction);\n\t\n\t/**\n\t * Update an existing cleaning transactin's information.\n\t * \n\t * @param cleaning transaction object\n\t * @return the updated cleaning transaction object\n\t */\n\tpublic CleaningTransaction update(CleaningTransaction cleaningTransaction);\n\t\n}",
"public Object getTransactionManager()\n\t{\n\t\treturn transactionManager;\n\t}",
"void storeBusinessTransactions(String tenantId, List<BusinessTransaction> businessTransactions) throws Exception;",
"private SpringTxnListener createSpringTxnListener(SpringJdbcTransaction t) {\r\n return new SpringTxnListener(transactionManager, t);\r\n }",
"@Bean(name = \"transactionManagerMetadata\")\n public PlatformTransactionManager transactionManagerMetadata() {\n return new DataSourceTransactionManager(dataSource());\n }",
"public int startTransaction();",
"@Transactional(Transactional.TxType.NOT_SUPPORTED)\n\tpublic void notSupported() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.NOT_SUPPORTED\");\n\t // Here the container will make sure that the method will run in no transaction scope and will suspend any transaction started by the client\n\t}",
"void rollbackTransaction();",
"public interface BusinessTransactionService {\n\n /**\n * This method returns the business transaction associated with the\n * supplied id.\n *\n * @param tenantId The tenant\n * @param id The id\n * @return The business transaction, or null if not found\n */\n BusinessTransaction get(String tenantId, String id);\n\n /**\n * This method returns a set of business transactions that meet the\n * supplied query criteria.\n *\n * @param tenantId The tenant\n * @param criteria The query criteria\n * @return The list of business transactions that meet the criteria\n */\n List<BusinessTransaction> query(String tenantId, BusinessTransactionCriteria criteria);\n\n /**\n * This method stores the supplied list of business transaction fragments.\n *\n * @param tenantId The tenant id\n * @param businessTransactions The business transactions\n * @throws Exception Failed to store\n */\n void storeBusinessTransactions(String tenantId, List<BusinessTransaction> businessTransactions) throws Exception;\n\n}",
"public DataSourceTransactionManager(Class<? extends Transaction> transactionClass) {\r\n\t\tthis.transactionClass = transactionClass;\r\n\t}",
"@Autowired\n\t@Bean(name=\"transactionManager\")\n\tpublic HibernateTransactionManager getTransactionManager(SessionFactory sessionFactory) {\n\t\tHibernateTransactionManager transactionManager = new HibernateTransactionManager(sessionFactory);\n\t\t\n\t\treturn transactionManager;\n\t}",
"String resolveTransactionManager(Transactional transactional);",
"void rollback(Transaction transaction);",
"public interface BookCustomerService {\n public List<BookCustomerInfoQuery> query(BookCustomer customer);\n\n public BookCustomer queryOne(BookCustomer customer);\n\n public void insert(BookCustomer customer) throws Exception;\n\n\n public void deleteById(BookCustomer bookCustomer);\n\n @Transactional\n public BaseResult insertOrder(String areaId,String price,String payType,String phone,String date,String person,String startTime,String endTime) throws Exception;\n ;\n}",
"@Transactional(\"transactionManager\")\r\n\tpublic String checkOut(Bank bank,Transactions transaction,String parm[]) {\r\n\r\n\r\n\r\n\t\t//Time check\r\n\t\tString paymode;\r\n\r\n\t\tdouble amount;\r\n\r\n\t\tif(transaction==null)\r\n\t\t\tthrow new CustomDataException(ErrorConstants.TRANSACTION_NOT_FOUND,ErrorConstants.STR_TRANSACTION_NOT_FOUND);\r\n\r\n\t\tif(!transaction.getStatus().equals(OrderState.INITIATED))\r\n\t\t\tthrow new CustomDataException(ErrorConstants.TRANSACTION_ALREADY_PROCESSED,ErrorConstants.STR_TRANSACTION_ALREADY_PROCESSED);\r\n\r\n\t\tArrayList<String> output = new ArrayList<String>();\r\n\t\ttransaction.setBank_activity_time(new Date());\r\n\t\ttransaction.setReference_id(parm[1]);\r\n\t\ttransaction.setTransaction_status(parm[2]);\r\n\t\tamount = Double.parseDouble(parm[3]);\r\n\t\ttransaction.setTransaction_amount(Double.parseDouble(parm[3]));\r\n\t\tpaymode = parm[4];\r\n\t\ttransaction.setTransaction_currency(parm[4]);\r\n\t\ttransaction.setTransaction_paymode(parm[5]);\r\n\t\ttransaction.setTransaction_other_details(parm[6]);\r\n\t\ttransaction.setTransaction_status_description(parm[7]);\r\n\r\n\t\ttransaction.setMerchant_reconcilation_status(\"Underprocess\");\r\n\t\t//Reconcilation status\r\n\r\n\r\n\t\t//Calculation of Bank amount vcod amount merchant amount etc .. Demo\r\n\t\tMerchant merchant = transaction.getMerchant();\r\n\t\tMerchantContract merchantContract = orderDao.getMerchantContract(merchant, transaction.getTransaction_paymode());\r\n\t\tBankContract bankContract = orderDao.getBankContract(bank, transaction.getTransaction_paymode());\r\n\t\tif(merchantContract==null||bankContract==null) //Change the logic Exceptions !\r\n\t\t\tthrow new CustomDataException(ErrorConstants.TRANSACTION_NO_CONTRACT_FOUND,ErrorConstants.STR_TRANSACTION_NO_CONTRACT_FOUND);\r\n\t\ttransaction.setBank_amount((amount*(bankContract.getRate()))/100);\r\n\t\ttransaction.setVcod_amount((amount*(merchantContract.getRate()))/100);\r\n\t\ttransaction.setMerchantcontract(merchantContract);\r\n\t\ttransaction.setBankcontract(bankContract);\r\n\t\t//Computed on merchant reconiclaition\r\n\t\ttransaction.setMerchant_reconcilation_amount(transaction.getTransaction_amount()-transaction.getBank_amount()-transaction.getVcod_amount());\r\n\r\n\t\t//Completion of order etc ie:update\r\n\t\tif(transaction.getTransaction_status().equals(OrderState.SUCCESS)||transaction.getTransaction_status().equals(OrderState.FAIL))\r\n\t\t{\r\n\t\t\tif(transaction.getTransaction_status().equals(OrderState.SUCCESS))\r\n\t\t\t{\r\n\t\t\t\ttransaction.setStatus(OrderState.SUCCESS);\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t\ttransaction.setStatus(OrderState.FAIL);\r\n\t\t}\r\n\r\n\t\torderDao.updateTransactions(transaction);\r\n\r\n\t\tlog.info(\"Transaction id : \"+transaction.getTransaction_id());\r\n\t\tlog.debug(\"Transaction id : \"+transaction.getTransaction_id());\r\n\t\tlog.info(\"Transaction amount : \"+transaction.getTransaction_amount());\r\n\t\tlog.debug(\"Transaction amount : \"+transaction.getTransaction_amount());\r\n\t\tlog.info(\"Bank activity Time : \"+transaction.getBank_activity_time());\r\n\t\tlog.debug(\"Bank activity Time: \"+transaction.getBank_activity_time());\r\n\t\tlog.info(\"Status : \"+transaction.getTransaction_status());\r\n\t\tlog.debug(\"Status \"+transaction.getTransaction_status());\r\n\r\n\t\t//In addition to this we may give some parameters from orders table\r\n\r\n\t\toutput.add(transaction.getMerchant_order_id()); //merchant order id\r\n\t\toutput.add(Integer.toString(transaction.getTransaction_id())); //out transaction id\r\n\t\toutput.add(transaction.getStatus()); //status\r\n\t\toutput.add(Double.toString(transaction.getTransaction_amount())); //Amount\r\n\t\toutput.add(transaction.getTransaction_currency()); // currency\r\n\t\toutput.add(transaction.getTransaction_paymode()); // Paymode\r\n\t\toutput.add(transaction.getTransaction_other_details()); // Other Details\r\n\t\toutput.add(transaction.getTransaction_status_description()); // Reason\r\n\r\n\t\tArrayList<String> outputParamList = output;\r\n\t\t//Encryption \r\n\t\ttry {\r\n\t\t\treturn Library.getParamterInString(outputParamList, merchant.getSecret_key());\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new CustomApplicationException(ErrorConstants.INTERNAL_ERROR,ErrorConstants.STR_INTERNAL_ERROR);\r\n\t\t}\r\n\t}",
"@Primary\n @Bean\n public PlatformTransactionManager ildaTransactionManager() {\n final JpaTransactionManager txManager = new JpaTransactionManager();\n txManager.setEntityManagerFactory(ildaEntityManagerFactory().getObject());\n return txManager;\n }",
"@Override\r\n\t@Transactional\r\n\tpublic Transactions getTransaction() {\r\n\r\n\t\tArrayList<Transactions> closedTransactions=null;\r\n\t\tif(closedTransactions == null)\r\n\t\t{\r\n\t\tclosedTransactions = new ArrayList<Transactions>();\r\n\t\tclosedTransactions = this.getClosedTransactions();\r\n\t\t}\r\n\r\n\r\n\t\tif (index < closedTransactions.size()) {\r\n\t\t\tTransactions transaction = closedTransactions.get(index++);\r\n\t\t\treturn transaction;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"@Override\n public void startTx() {\n \n }",
"public interface CustomerDao extends GenericDao<CustomerInfo, Long> {\n @Transactional\n public List<CustomerInfo> searchByName(String custName,String param);\n @Transactional\n public CustomerInfo searchById(String cid);\n}",
"public interface IndexTransaction\n{\n\tpublic static final int STATUS_ACTIVE = 0;\n\n\tpublic static final int STATUS_COMMITTED = 3;\n\n\tpublic static final int STATUS_COMMITTING = 8;\n\n\tpublic static final int STATUS_MARKED_ROLLBACK = 1;\n\n\tpublic static final int STATUS_NO_TRANSACTION = 6;\n\n\tpublic static final int STATUS_PREPARED = 2;\n\n\tpublic static final int STATUS_PREPARING = 7;\n\n\tpublic static final int STATUS_ROLLEDBACK = 4;\n\n\tpublic static final int STATUS_ROLLING_BACK = 9;\n\n\tpublic static final int STATUS_UNKNOWN = 5;\n\n\tpublic static final String[] TRANSACTION_STATUS = { \"Created\", \"Marked for Rollback\",\n\t\t\t\"Prepared\", \"Committed\", \"Rolled Back\", \"Unknown\", \"No Transaction\",\n\t\t\t\"Preparing\", \"Committing\", \"Rolling Back\" };\n\n\tpublic static final boolean[] TRANSACTION_ACTIVE = { true, false, true, false, false,\n\t\t\tfalse, false, true, false, false };\n\n\t/**\n\t * Prepare to commit this transaction, all the work is done, but all the\n\t * listeners need to be ready and able to performa commit without failure\n\t */\n\tvoid prepare() throws IndexTransactionException;\n\n\t/**\n\t * Commit the transaction and make it available to others in the cluster\n\t * \n\t * @throws IndexTransactionException\n\t */\n\tvoid commit() throws IndexTransactionException;\n\n\t/**\n\t * @throws IndexTransactionException\n\t * if the transaction is not open\n\t */\n\tvoid rollback() throws IndexTransactionException;\n\n\t/**\n\t * @return\n\t */\n\tlong getTransactionId();\n\n\t/**\n\t * @throws IndexTransactionException\n\t */\n\tvoid close() throws IndexTransactionException;\n\n\t/**\n\t * get the transaction status\n\t * \n\t * @return\n\t */\n\tint getStatus();\n\n\t/**\n\t * get an Object from the transaction, that may have been placed in the\n\t * transaction by earlier phases.\n\t * \n\t * @param key\n\t * @return\n\t */\n\tObject get(String key);\n\n\t/**\n\t * Clear an object placed in the transaction\n\t * \n\t * @param key\n\t */\n\tvoid clear(String key);\n\n\t/**\n\t * Put an object into the transaction for use in later phases\n\t * \n\t * @param key\n\t * @param obj\n\t */\n\tvoid put(String key, Object obj);\n\n\t/**\n\t * @throws IndexTransactionException\n\t */\n\tvoid open() throws IndexTransactionException;\n\n}",
"void addTransaction(Transaction transaction) throws SQLException, BusinessException;",
"MIBTransactionManager getTransactionManager();",
"@Test\n public void processTransactionManagerCaseA()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),2000));\n }",
"@Override\n public void commitTx() {\n \n }",
"void commitTransaction();",
"public Object getCurrentTransaction() {\r\n\r\n // Get the current Spring ConnectionHolder associated to the current spring managed transaction\r\n ConnectionHolder holder = (ConnectionHolder) TransactionSynchronizationManager.getResource(dataSource);\r\n\r\n if (holder == null || !holder.isSynchronizedWithTransaction()) {\r\n // no current Spring transaction\r\n SpiTransaction currentEbeanTransaction = DefaultTransactionThreadLocal.get(serverName);\r\n if (currentEbeanTransaction != null){\r\n // NOT expecting this so log WARNING\r\n String msg = \"SpringTransaction - no current spring txn BUT using current Ebean one \"+currentEbeanTransaction.getId();\r\n logger.log(Level.WARNING, msg);\r\n \r\n } else if (logger.isLoggable(Level.FINEST)) {\r\n logger.log(Level.FINEST, \"Spring Txn - no current transaction \");\r\n }\r\n return currentEbeanTransaction;\r\n }\r\n \r\n SpringTxnListener springTxnLister = getSpringTxnListener();\r\n \r\n if (springTxnLister != null){\r\n // we have already seen this transaction \r\n return springTxnLister.getTransaction();\r\n \r\n } else {\r\n // This is a new spring transaction that we have not seen before.\r\n // \"wrap\" it in a SpringJdbcTransaction for use with Ebean \r\n SpringJdbcTransaction newTrans = new SpringJdbcTransaction(holder, transactionManager);\r\n \r\n // Create and register a Spring TransactionSynchronization for this transaction\r\n springTxnLister = createSpringTxnListener(newTrans);\r\n TransactionSynchronizationManager.registerSynchronization(springTxnLister);\r\n \r\n // also put in Ebean ThreadLocal\r\n DefaultTransactionThreadLocal.set(serverName, newTrans);\r\n return newTrans;\r\n }\r\n }",
"@Test\n public void processTransactionManagerCaseB()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(true,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),30));\n }",
"public interface TransactionInterface {\n\n\t/**\n\t * Get metadata about the transaction, this is used when the transaction is generated on the server\n\t * @return \n\t */\n\tpublic ActH01 getActH01();\n\t\n\tpublic void setActH01(ActH01 actH01);\n\t\n\t/**\n\t * \n\t * @return Get metadata about the transaction, this comes from the client\n\t */\n\tpublic ActH01 getClientActH01();\n\t\n\tpublic void setClientActH01(ActH01 actH01);\n\t\n\t/**\n\t * Get this transactions audit id\n\t * @return\n\t */\n\tpublic int getAuditId();\n\t\n\t/**\n\t * Get this transactions action type\n\t * @return\n\t */\n\tpublic int getActionType();\n\t\n\t/**\n\t * Get this transactions xml representation\n\t * @return\n\t */\n\tpublic String getAuditXml();\n\n\tpublic void setAuditXml(String xml);\n\n\t/**\n\t * Get this transactions replication, so get all the SQL that were executed by this transaction\n\t * @return\n\t */\n\tpublic String getReplicationXml();\n\n\tpublic void setReplicationXml(String xml);\n\t\n\t/**\n\t * Classpath location for the schema/xsd this transaction must be validated against\n\t * if this is not set or invalid you WILL NOT be able to execute the transaction \n\t * @return\n\t */\n\tpublic String getSchemaLocation();\n\n\t/**\n\t * \n\t * @param session\n\t * @return\n\t * @throws TransactionException\n\t * Execute the transaction, amongst other logic the transactions\n\t * executeWrite logic will be executed\n\t */\n\tpublic TransactionInterface executeWrite() throws TransactionException;\n\n}",
"public interface BookDao {\n\n /**\n * Create a new book.\n * <p>\n * The implementation of this method has a bug, which causes this method to\n * fail and roll back the transaction.\n * This method is to test if Spring transaction is working probably with JOOQ config\n */\n void create(int id, int authorId, String title);\n\n List<PBook> fetchManyByAuthorId(int authorId);\n}"
] | [
"0.65002346",
"0.6335032",
"0.6330962",
"0.63073385",
"0.62593746",
"0.62576455",
"0.61701703",
"0.61477613",
"0.60135114",
"0.599848",
"0.5990575",
"0.5942086",
"0.59372693",
"0.59215146",
"0.58963794",
"0.58452857",
"0.5827151",
"0.58052117",
"0.5804635",
"0.57901853",
"0.576649",
"0.57630557",
"0.5740935",
"0.5734941",
"0.57334054",
"0.57000315",
"0.56942594",
"0.5668693",
"0.5654863",
"0.5645147",
"0.56384933",
"0.5621531",
"0.56195205",
"0.5619007",
"0.5618832",
"0.5587283",
"0.55722165",
"0.5561624",
"0.5559486",
"0.5537265",
"0.5534681",
"0.55190814",
"0.5517572",
"0.55170643",
"0.55157816",
"0.55137414",
"0.5513352",
"0.55033267",
"0.5501003",
"0.54929936",
"0.54903066",
"0.54871285",
"0.5482602",
"0.54730326",
"0.5472215",
"0.5466413",
"0.546552",
"0.5457864",
"0.5425872",
"0.5409753",
"0.53911483",
"0.53770673",
"0.53768593",
"0.5360082",
"0.53588814",
"0.53531027",
"0.53487617",
"0.5342233",
"0.5342165",
"0.5335383",
"0.5334244",
"0.5323832",
"0.5301093",
"0.5288985",
"0.52790177",
"0.5273877",
"0.52727276",
"0.52677476",
"0.5264373",
"0.5261678",
"0.5237689",
"0.5232849",
"0.52311516",
"0.5217919",
"0.5204809",
"0.51993895",
"0.5197543",
"0.51961255",
"0.51910394",
"0.519036",
"0.51847994",
"0.5170152",
"0.51679295",
"0.5158017",
"0.5157812",
"0.5156927",
"0.5152995",
"0.51526064",
"0.51521695",
"0.5148514",
"0.51444966"
] | 0.0 | -1 |
ICR 25/09/2012 PAS20124E550000721 AJUSTES A 8 HORAS DE RECUPERACION PARA DL 1057(CAS) Y DL 276728 POR CADA DIA DE FERIADO COMPENSABLE AJUSTES A 8 HORAS DE RECUPERACION PARA DL 1057(CAS) Y DL 276728 POR CADA DIA DE FERIADO COMPENSABLE | public int calcularHorasCompensaModif(String dbpool, String codPers, String fechaIni, String fechaFin)
throws IncompleteConversationalState, RemoteException {
int numHoras = 0;
BeanMensaje beanM = new BeanMensaje();
try {
T01DAO paramDAO = new T01DAO();
T1270DAO dao = new T1270DAO();
String fIni = Utiles.toYYYYMMDD(fechaIni);
String fFin = Utiles.toYYYYMMDD(fechaFin);
String fAct = fIni;
String fReal = fechaIni;
boolean contar = true;
BeanTurnoTrabajo turno = null;
while (fAct.compareTo(fFin) <= 0) {
contar = true;
turno = dao.joinWithT45ByCodFecha(dbpool,codPers,fReal);
//si es operativo
if (turno!=null){
if (!turno.isOperativo()){
//si es fin de semana o feriado
if (Utiles.isWeekEnd(fReal) || paramDAO.findByFechaFeriado(dbpool,fReal)) {
contar = false;
}
}
if (contar) numHoras += 8; //8 horas de recuperacion por cada dia para DL 1057(CAS) Y DL 276-728;
}
fReal = Utiles.dameFechaSiguiente(fReal, 1);
fAct = Utiles.toYYYYMMDD(fReal);
}
log.debug("Horas x Compensar : "+numHoras);
} catch (Exception e) {
log.error(e,e);
beanM.setMensajeerror(e.getMessage());
beanM.setMensajesol("Por favor intente nuevamente.");
throw new IncompleteConversationalState(beanM);
}
return numHoras;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getField1904();",
"public String getLBR_DocLine_ICMS_UU();",
"C2451d mo3408a(C2457e c2457e);",
"private String getABDATE(String LP_STRDT,int LP_DDCNT,char LP_ABFLG) \n\t{\n\t\t\n\t\tint L_YRVAL = Integer.parseInt(LP_STRDT.substring(6,10));\n\t if(L_YRVAL%4 == 0)\n\t\t arrDAYS[1] = \"29\";\n\t else\n\t\t arrDAYS[1] = \"28\";\n\t if(LP_STRDT.length()>=10) \n\t {\n\t\t int L_DDVAL = Integer.parseInt(LP_STRDT.substring(0,2));\n\t\t int L_MMVAL = Integer.parseInt(LP_STRDT.substring(3,5));\n\t\t L_YRVAL = Integer.parseInt(LP_STRDT.substring(6,10));\n\t\t if(LP_ABFLG == 'A')\n\t\t {\n\t\t\t L_DDVAL += LP_DDCNT;\n\t\t\t if(L_DDVAL > Integer.parseInt(arrDAYS[L_MMVAL -1]))\n\t\t\t {\n\t\t\t\t if(L_MMVAL != 12)\n\t\t\t\t {\n\t\t\t\t\t L_DDVAL = L_DDVAL - Integer.parseInt(arrDAYS[L_MMVAL -1]);\n\t\t\t\t\t L_MMVAL += 1; \n\t\t\t\t\t }\n\t\t\t\t else \n\t\t\t\t {\n\t\t\t\t\tL_DDVAL = L_DDVAL - Integer.parseInt(arrDAYS[L_MMVAL -1]); \n\t\t\t\t\tL_MMVAL = 1; \n\t\t\t\t\tL_YRVAL +=1; \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t else if(LP_ABFLG == 'B')\n\t\t {\n\t\t\t L_DDVAL -= LP_DDCNT;\n\t\t\t if(L_DDVAL <=0)\n\t\t\t {\n\t\t\t\t if(L_MMVAL!= 1)\n\t\t\t\t {\n\t\t\t\t\t L_MMVAL -= 1; \n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\t L_MMVAL = 12;\n\t\t\t\t\t L_YRVAL -= 1; \n\t\t\t\t }\n\t\t\t\t L_DDVAL = L_DDVAL + Integer.parseInt(arrDAYS[L_MMVAL -1]);\n\t\t\t }\n\t\t }\n\t\t String L_STRDD = L_DDVAL + \" \";\n\t\t if(L_STRDD.trim().length() == 1)\n\t\t\t L_STRDD = \"0\"+L_STRDD.trim();\n\t\t \n\t\t String L_STRMM = L_MMVAL + \" \";\n\t\t if(L_STRMM.trim().length() == 1)\n\t\t\t L_STRMM = \"0\"+L_STRMM.trim();\n\t\t \n\t\t String L_STRRTN = L_STRDD.trim() + \"/\" + L_STRMM.trim() + \"/\" + L_YRVAL;\n\t\t //System.out.println(L_STRRTN);\n\t\t return L_STRRTN;\n\t }\n\t else \n\t\t return \"\";\n\t \n\t}",
"Record getShortTermCompEffAndExpDates(Record inputRecord);",
"java.lang.String getField1248();",
"@Test\n public void RegistroC380Test() throws ParseException {\n RegistroC380 reg = new RegistroC380();\n LineModel line = reg.createModel();\n SimpleDateFormat sdf = new SimpleDateFormat(\"ddMMyyyy\");\n Date data = sdf.parse(\"17121986\");\n \n //02\n line.setFieldValue(RegistroC380.COD_MOD, \"02\");\n //03\n line.setFieldValue(RegistroC380.DT_DOC_INI, data);\n //04\n line.setFieldValue(RegistroC380.DT_DOC_FIN, data);\n //05\n line.setFieldValue(RegistroC380.NUM_DOC_INI, 123456L);\n //06\n line.setFieldValue(RegistroC380.NUM_DOC_FIN, 123456L);\n //07\n line.setFieldValue(RegistroC380.VL_DOC, 78911.11);\n //08\n line.setFieldValue(RegistroC380.VL_DOC_CANC, 78911.11);\n\n StringBuffer sb = line.getRepresentation();\n System.out.print(sb);\n// String expected = \"|C380|02|17121986|17121986|123456|123456|78911,11|78911,11|\";\n// assertEquals (expected, sb.toString());\n }",
"java.lang.String getField1996();",
"java.lang.String getField1515();",
"private void getCal() {\n \t\t\n \t\tif(isnew) {\n \t\t\tString[] parts0, parts1, parts2, parts3, parts4, parts5, parts6;\n \t\t\t\n \t\t\tparts0 = asciiheader[9].split(\"\\t\");\n \t\t\tparts1 = asciiheader[10].split(\"\\t\");\n \t\t\tparts2 = asciiheader[11].split(\"\\t\");\n \t\t\tparts3 = asciiheader[12].split(\"\\t\");\n \t\t\tparts4 = asciiheader[13].split(\"\\t\");\n \t\t\tparts5 = asciiheader[14].split(\"\\t\");\n \t\t\tparts6 = asciiheader[15].split(\"\\t\");\n \t\t\t\n \t\t\tfor(int i = 0; i < 3; i++) {\n \t\t\t\tRGBcal[i] = Float.parseFloat(parts0[i]);\n \t\t\t\tvlam[i] = Float.parseFloat(parts1[i]);\n \t\t\t\tvp[i] = Float.parseFloat(parts2[i]);\n \t\t\t\tmel[i] = Float.parseFloat(parts3[i]);\n \t\t\t\tvmac[i] = Float.parseFloat(parts4[i]);\n \t\t\t\tsmac[i] = Float.parseFloat(parts5[i]);\n \t\t\t\tCLAcal[i] = Float.parseFloat(parts6[i]);\n \t\t\t}\n \t\t\tCLAcal[3] = Float.parseFloat(parts6[3]);\n \t\t\treturn;\n \n \t\t}\n \t\t\n \t\tint temp = 0;\n \t\tint j = 0;\n \t\tString workingDirectory = new String(System.getProperty(\"user.dir\")+ \"\\\\src\\\\data\");\n \t\t\n \t\tString[] s = loadStrings(workingDirectory + \"\\\\Day12_Cal_Values.txt\");\n \t\t\n \n \t\t//Scone/macula\n \t\tfor(int i = 0; i < s[1].length(); i++) {\n \t\t\tif(s[1].charAt(i) == 9) {\n \t\t\t\tif(temp != 0) {\n \t\t\t\t\t//smac[j] = float(s[1].substring(temp, i));\n \t\t\t\t\tsmac[j] = Float.parseFloat(s[1].substring(temp, i));\n \t\t\t\t\tj++;\n \t\t\t\t}\n \t\t\t\ttemp = i;\n \t\t\t}\n \t\t}\n \t\tsmac[j] = Float.parseFloat(s[1].substring(temp, s[1].length()));\n \t\ttemp = 0;\n \t\tj = 0;\n \n \t\t//Vlamda/macula\n \t\tfor(int i = 0; i < s[2].length(); i++) {\n \t\t\tif(s[2].charAt(i) == 9) {\n \t\t\t\tif(temp != 0) {\n \t\t\t\t\tvmac[j] = Float.parseFloat(s[2].substring(temp, i));\n \t\t\t\t\tj++;\n \t\t\t\t}\n \t\t\t\ttemp = i;\n \t\t\t}\n \t\t}\n \t\tvmac[j] = Float.parseFloat(s[2].substring(temp, s[2].length()));\n \t\ttemp = 0;\n \t\tj = 0;\n \n \t\t//Melanopsin\n \t\tfor(int i = 0; i < s[3].length(); i++) {\n \t\t\tif(s[3].charAt(i) == 9) {\n \t\t\t\tif(temp != 0) {\n \t\t\t\t\tmel[j] = Float.parseFloat(s[3].substring(temp, i));\n \t\t\t\t\tj++;\n \t\t\t\t}\n \t\t\t\ttemp = i;\n \t\t\t}\n \t}\n \t\tmel[j] = Float.parseFloat(s[3].substring(temp, s[3].length()));\n \t\ttemp = 0;\n \t\tj = 0;\n \n \t\t//Vprime\n \t\tfor(int i = 0; i < s[4].length(); i++) {\n \t\t\tif(s[4].charAt(i) == 9) {\n \t\t\t\tif(temp != 0) {\n \t\t\t\t\tvp[j] = Float.parseFloat(s[4].substring(temp, i));\n \t\t\t\t\tj++;\n \t\t\t\t}\n \t\t\t\ttemp = i;\n \t\t\t}\n \t\t}\n \t\tvp[j] = Float.parseFloat(s[4].substring(temp, s[4].length()));\n \t\ttemp = 0;\n \t\tj = 0;\n \n \t\t//Vlamda\n \t\tfor(int i = 0; i < s[5].length(); i++) {\n \t\t\tif(s[5].charAt(i) == 9) {\n \t\t\t\tif(temp != 0) {\n \t\t\t\t\tvlam[j] = Float.parseFloat(s[5].substring(temp, i));\n \t\t\t\t\tj++;\n \t\t\t\t}\n \t\t\t\ttemp = i;\n \t\t\t}\n \t\t}\n \t\tvlam[j] = Float.parseFloat(s[5].substring(temp, s[5].length()));\n \t\ttemp = 0;\n \t\tj = 0;\n \n \t\t//CLA\n \t\tfor(int i = 0; i < s[8].length(); i++) {\n \t\t\tif(s[8].charAt(i) == 9) {\n \t\t\t\tif(temp != 0) {\n \t\t\t\t\tCLAcal[j] = Float.parseFloat(s[8].substring(temp, i));\n \t\t\t\t\tj++;\n \t\t\t\t}\n \t\t\t\ttemp = i;\n \t\t\t}\n \t\t}\n \t\tCLAcal[j] = Float.parseFloat(s[8].substring(temp, s[8].length()));\n \t\ttemp = 0;\n \t\tj = 0;\n \n \t\t//RGBcal\n \t\ts = loadStrings(workingDirectory + \"\\\\Day12 RGB Values.txt\");\n \t\tfor(int i = 0; i < s[ID].length(); i++) {\n \t\t\tif(s[ID].charAt(i) == 9) {\n \t\t\t\tif(temp != 0) {\n \t\t\t\t\tRGBcal[j] = Float.parseFloat(s[ID].substring(temp, i));\n \t\t\t\t\tj++;\n \t}\n \t\t\t\ttemp = i;\n \t\t\t}\n \t}\n \t\tRGBcal[j] = Float.parseFloat(s[ID].substring(temp, s[ID].length()));\n \t\ttemp = 0;\n \t\tj = 0;\n \t}",
"java.lang.String getField1394();",
"public void dorcsd_(CHARACTER JOBU1,CHARACTER JOBU2,CHARACTER JOBV1T,CHARACTER JOBV2T,CHARACTER TRANS,CHARACTER SIGNS,INTEGER M,INTEGER P,INTEGER Q,double[] X11,INTEGER LDX11,double[] X12,INTEGER LDX12,double[] X21,INTEGER LDX21,double[] X22,INTEGER LDX22,double[] THETA,double[] U1,INTEGER LDU1,double[] U2,INTEGER LDU2,double[] V1T,INTEGER LDV1T,double[] V2T,INTEGER LDV2T,double[] WORK,INTEGER LWORK,int[] IWORK,INTEGER INFO);",
"public static void readAcu() throws IOException, ClassNotFoundException, SQLException\n\t{\n\tString line;\n\tFile worksheet = new File(\"/Users/sturtevantauto/Pictures/Car_Pictures/XPS/6715329.acu\");\n\t\tBufferedReader reader = new BufferedReader(new FileReader(worksheet));\n\t\tint i = 1;\n\t\tString namebegin = null;\n\t\tboolean sw = false;\n\t\tint linebegin = 0;\n\t\twhile ((line = reader.readLine()) != null)\n\t\t{\n\t\t\tif(line.contains(\"-\"))\n\t\t\t{\n\t\t\t\tString[] lines = line.split(\"-\");\n\t\t\t\tif(Character.isDigit(lines[0].charAt((lines[0].length() - 1))))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString[] endlines = lines[1].split(\" \");\n\t\t\t\t\t\t\tendlines[0] = endlines[0].trim();\n\t\t\t\t\t\t\tint partnum = Integer.parseInt(lines[0].substring((lines[0].length() - 3), lines[0].length()));\n\t\t\t\t\t\t\tString partend = endlines[0];\n\t\t\t\t\t\t\t//System.out.println(findLine(DATReader.findPartName(partnum)));\n\t\t\t\t\t\t\tString name = DATReader.findPartName(partnum);\n\t\t\t\t\t\t\tif(!name.equals(namebegin))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnamebegin = name;\n\t\t\t\t\t\t\tsw = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(sw)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsw = false;\n\t\t\t\t\t\t\tlinebegin = findLine(name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] linetext = findText(linebegin, i, name);\n\t\t\t\t\t\t\tint q = 1;\n\t\t\t\t\t\t\tfor(String print : linetext)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(print != null)\n\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\tprint = print.replace(\".\", \"\");\n\t\t\t\t\t\t\t\tSystem.out.println(q + \": \" + print);\n\t\t\t\t\t\t\t\tq++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlinebegin = i;\n\t\t\t\t\t\t\t//System.out.println(partnum + \"-\" + partend);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t }\n\t\treader.close();\n\n\t}",
"java.lang.String getField1260();",
"java.lang.String getField1322();",
"java.lang.String getField1665();",
"java.lang.String getField1690();",
"java.lang.String getField1309();",
"java.lang.String getField1883();",
"java.lang.String getField1660();",
"java.lang.String getField1984();",
"java.lang.String getField1900();",
"java.lang.String getField1983();",
"java.lang.String getField1696();",
"java.lang.String getField1997();",
"java.lang.String getField1980();",
"@Override\n\tpublic String[] toArray() {\n\t\tString strValue[] = new String[DSPPackager.PACKAGER_MBASE_88301I\n\t\t\t\t.getFieldDefinitionList().length];\n\t\tString strHostName = null;\n\t\ttry {\n\t\t\tstrHostName = InetAddress.getLocalHost().getHostAddress();\n\t\t} catch (UnknownHostException ex) {\n\t\t\tstrHostName = \"localhost\";\n\t\t}\n\t\tstrValue[0] = \"*LINX\"; // Header type\n\t\tstrValue[1] = strHostName; // Device Name\n\t\tstrValue[5] = \"213\"; // Header Length\n\t\tstrValue[7] = \"0200\"; // Version\n\t\tstrValue[8] = \"*DSP\"; // Version\n\t\tstrValue[9] = \"MBSD\"; // Data format\n\t\tstrValue[10] = \"*LINX\"; // Source ID\n\t\tstrValue[14] = \"01\"; // Source ID\n\t\tstrValue[17] = \"BBMBSLNMNTFNC\"; // Scenario Number\n\t\tstrValue[22] = \"1\";\n\t\tstrValue[23] = \"10\";\n\t\tstrValue[24] = aa.getTeller(); // User ID\n\t\tstrValue[25] = strHostName; // Terminal ID\n\t\tstrValue[26] = \"88301\"; // Supervisor ID\n\t\tstrValue[27] = \"N\";\n\t\tstrValue[31] = aa.getTeller(); // Message Header\n\t\tstrValue[32] = \"1\"; // Message Header\n\t\tstrValue[34] = \"*END\";\n\t\tstrValue[36] = \"BTS\";\n\t\tstrValue[37] = \"RBS\";\n\t\tstrValue[39] = strHostName; // Terminal ID\n\t\tstrValue[40] = \"27\"; // Journal Seq\n\t\tstrValue[41] = aa.getBranch(); // Branch Code\n\t\tstrValue[45] = \"88301\"; // Transaction Code\n\t\tstrValue[46] = \"C\"; // add\n\t\tstrValue[47] = \"R\"; // response\n\t\tstrValue[48] = \"1\"; // Work station\n\t\tstrValue[49] = \"N\";\n\t\tstrValue[50] = \"F\";\n\t\tstrValue[56] = \"\";\n\t\tstrValue[67] = aa.getApplicationNo(); // application Number\n\t\tstrValue[68] = aa.getCifNum();\n\t\tstrValue[69] = aa.getApplicationDate();\n\t\tstrValue[71] = aa.getBranch(); // lpad 5 '0'\n\t\tstrValue[72] = aa.getWorkingEx();\n\t\tstrValue[73] = aa.getSpecProvision(); // Y/N\n\t\tstrValue[74] = aa.getClasifielDate();\n\t\tstrValue[75] = aa.getCarCode();\n\t\tstrValue[76] = aa.getReviewDate();\n\t\tstrValue[77] = aa.getRetention();\n\t\tstrValue[78] = aa.getReviewReMark();\n\t\tstrValue[79] = aa.getRefinanceFrom();\n\t\tstrValue[80] = aa.getTucachPn();\n\t\tstrValue[81] = aa.getTinhHinhTc();\n\t\tstrValue[82] = aa.getKhaNangVayVon();\n\t\tstrValue[83] = aa.getDamBaoTienVay();\n\t\tstrValue[84] = aa.getLimitAmount();\n\t\tstrValue[85] = aa.getCurencyType();\n\t\tstrValue[86] = aa.getOfficeCode();\n\t\tstrValue[87] = aa.getClassification();\n\t\tstrValue[88] = aa.getMARemarck();\n\t\tstrValue[89] = aa.getMADate();\n\t\treturn strValue;\n\t}",
"java.lang.String getField1991();",
"java.lang.String getField1602();",
"java.lang.String getField1609();",
"java.lang.String getField1360();",
"java.lang.String getField1606();",
"java.lang.String getField1275();",
"java.lang.String getField1328();",
"java.lang.String getField1603();",
"java.lang.String getField1993();",
"java.lang.String getField1809();",
"java.lang.String getField1604();",
"java.lang.String getField1409();",
"java.lang.String getField1148();",
"java.lang.String getField1321();",
"private boolean writeRinexEpochToFile(FileOperation mFileOperation, RandomAccessFile mFile, String epoch_date, String[][] values) {\n String epoch_str;\n int epoch_cnt = 0;\n\n // count the number of satellite\n for(int i = 0; i < values.length; i++) {\n if (values[i][SVID] != null && (values[i][SVID].contains(\"G\") || values[i][SVID].contains(\"C\") ||\n values[i][SVID].contains(\"E\") || values[i][SVID].contains(\"R\") || values[i][SVID].contains(\"J\"))) {\n epoch_cnt++;\n }\n }\n\n //epoch time\n epoch_str = epoch_date + epoch_cnt + \"\\n\";\n //Log.d(\"epoch_str\", epoch_str);\n\n\n for(int i = 0; i < values.length; i++) {\n if (values[i][SVID] != null && values[i][SVID].contains(\"G\")) {\n epoch_str += String.format(\"%-5s%12s %14s %14s %14s %14s %14s %14s %14s\\n\",\n values[i][SVID], values[i][C_1], values[i][L_1], values[i][D_1], values[i][S_1],\n values[i][C_2], values[i][L_2], values[i][D_2], values[i][S_2]);\n }\n }\n for(int i = 0; i < values.length; i++) {\n if (values[i][SVID] != null && values[i][SVID].contains(\"C\")) {\n epoch_str += String.format(\"%-5s%12s %14s %14s %14s %14s %14s %14s %14s\\n\",\n values[i][SVID], values[i][C_1], values[i][L_1], values[i][D_1], values[i][S_1],\n values[i][C_2], values[i][L_2], values[i][D_2], values[i][S_2]);\n }\n }\n for(int i = 0; i < values.length; i++) {\n if (values[i][SVID] != null && values[i][SVID].contains(\"E\")) {\n epoch_str += String.format(\"%-5s%12s %14s %14s %14s %14s %14s %14s %14s\\n\",\n values[i][SVID], values[i][C_1], values[i][L_1], values[i][D_1], values[i][S_1],\n values[i][C_2], values[i][L_2], values[i][D_2], values[i][S_2]);\n }\n }\n for(int i = 0; i < values.length; i++) {\n if (values[i][SVID] != null && values[i][SVID].contains(\"R\")) {\n epoch_str += String.format(\"%-5s%12s %14s %14s %14s %14s %14s %14s %14s\\n\",\n values[i][SVID], values[i][C_1], values[i][L_1], values[i][D_1], values[i][S_1],\n values[i][C_2], values[i][L_2], values[i][D_2], values[i][S_2]);\n }\n }\n for(int i = 0; i < values.length; i++) {\n if (values[i][SVID] != null && values[i][SVID].contains(\"J\")) {\n epoch_str += String.format(\"%-5s%12s %14s %14s %14s %14s %14s %14s %14s\\n\",\n values[i][SVID], values[i][C_1], values[i][L_1], values[i][D_1], values[i][S_1],\n values[i][C_2], values[i][L_2], values[i][D_2], values[i][S_2]);\n }\n }\n\n //write\n boolean status = mFileOperation.writeToFileAppend(mFile, epoch_str.getBytes(), epoch_str.length());\n //Log.d(\"epoch_str\", epoch_str);\n\n return status;\n }",
"java.lang.String getField1608();",
"java.lang.String getField1348();",
"java.lang.String getField1630();",
"java.lang.String getField1324();",
"java.lang.String getField1612();",
"java.lang.String getField1308();",
"java.lang.String getField1601();",
"private String E19Crests() {\n StringBuilder buffer = new StringBuilder();\n int numCols = 50;\n int leftMargin = 73;\n String tmp0 = \" \";\n String tmp1 = \" \";\n String tmp2 = \" \";\n String tmp3 = \" \";\n String tmp4 = \" \";\n String tmp5 = \" \";\n String tmp6 = \" \";\n String tmp7 = \" \";\n String tmp8 = \" \";\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 0);\n\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_CRESTS + \"\\n\\n\");\n\n if (data.getRiverstat() != null) {\n if (data.getRiverstat().getFs() != HydroConstants.MISSING_VALUE) {\n tmp2 = String.format(\"%-6.2f\", data.getRiverstat().getFs());\n }\n if (data.getRiverstat().getWstg() != HydroConstants.MISSING_VALUE) {\n tmp3 = String.format(\"%-6.2f\", data.getRiverstat().getWstg());\n }\n if (data.getRiverstat().getBf() != HydroConstants.MISSING_VALUE) {\n tmp4 = String.format(\"%-6.2f\", data.getRiverstat().getBf());\n }\n if (data.getRiverstat().getFq() != HydroConstants.MISSING_VALUE) {\n tmp5 = String.format(\"%-8.0f\", data.getRiverstat().getFq());\n }\n if (data.getRiverstat()\n .getActionFlow() != HydroConstants.MISSING_VALUE) {\n tmp0 = String.format(\"%-8.0f\",\n data.getRiverstat().getActionFlow());\n }\n }\n\n tmp1 = String.format(\n \" FLOOD STAGE: %s ACTION STAGE: %s BANKFULL STAGE: %s\\n\",\n tmp2, tmp3, tmp4);\n\n tmp2 = String.format(\" FLOOD FLOW: %s ACTION FLOW: %s\\n\\n\", tmp5,\n tmp0);\n\n buffer.append(tmp1 + tmp2);\n\n int count1 = countNewlines(buffer.toString());\n\n buffer.append(\n \" DATE OF TIME CREST FLOW FROM HIGH BASED ON CAUSED BY\\n\");\n buffer.append(\n \" CREST LST (ft) (CFS) WATERMARKS OLD DATUM ICE JAM REMARKS\\n\");\n buffer.append(\n \" ---------- ------ ------ ------ ---------- --------- --------- \");\n buffer.append(\"--------------------------------------------------\\n\");\n\n int count2 = countNewlines(buffer.toString()) - count1;\n\n int available = getLinesPerPage() - count1 - count2 - 5;\n\n int avail = available - 2;\n int loop = 0;\n int needed = 0;\n TextReportData dataCrest = TextReportDataManager.getInstance()\n .getCrestData(lid);\n for (Crest crest : dataCrest.getCrestList()) {\n String[] lines = TextUtil.wordWrap(crest.getCremark(), numCols, 0);\n if (lines != null) {\n needed = lines.length - 1;\n }\n // Formatting for Line 1.\n if ((lines != null) && (lines[0] != null)) {\n tmp1 = lines[0];\n } else {\n tmp1 = \" \";\n }\n\n if (crest.getDatcrst() != null) {\n tmp3 = sdf.format(crest.getDatcrst());\n } else {\n tmp3 = \" \";\n }\n\n if (crest.getStage() != HydroConstants.MISSING_VALUE) {\n tmp4 = String.format(\"%6.2f\", crest.getStage());\n } else {\n tmp4 = \" \";\n }\n\n if (crest.getQ() != HydroConstants.MISSING_VALUE) {\n tmp5 = String.format(\"%6d\", crest.getQ());\n } else {\n tmp5 = \" \";\n }\n\n if (crest.getHw() != null) {\n tmp6 = crest.getHw();\n } else {\n tmp6 = \" \";\n }\n if (crest.getOldDatum() != null) {\n tmp7 = crest.getOldDatum();\n } else {\n tmp7 = \" \";\n }\n if (crest.getJam() != null) {\n tmp8 = crest.getJam();\n } else {\n tmp8 = \" \";\n }\n\n tmp2 = String.format(\n \" %10s %-6s %s %s %s %7s %s %7s %s %-17s\\n\",\n tmp3, crest.getTimcrst(), tmp4, tmp5, tmp6, \" \", tmp7, \" \",\n tmp8, tmp1);\n buffer.append(tmp2);\n\n // Formatting for all additional lines.\n if (lines != null) {\n for (int i = 1; i < lines.length; i++) {\n if (lines[i].length() > 1) { // Skip blank lines\n buffer.append(indent + lines[i] + \"\\n\");\n }\n }\n }\n avail = avail - needed;\n\n if (needed > avail) {\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n\n // Do footer.\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"))\n .getTime();\n String footer = createFooter(dataCrest, E19_RREVISE_TYPE,\n sdf.format(d), \"NWS FORM E-19\", E19_CRESTS, \"CRESTS\",\n null, E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n // Do column header.\n buffer.append(\"\\n\\n\");\n buffer.append(\n \" DATE OF TIME CREST FLOW FROM HIGH BASED ON CAUSED BY\\n\");\n buffer.append(\n \" CREST LST (ft) (CFS) WATERMARKS OLD DATUM ICE JAM REMARKS\\n\");\n buffer.append(\n \" ---------- ------ ------ ------ ---------- --------- \");\n buffer.append(\n \"--------- --------------------------------------------------\\n\");\n\n avail = available + count1;\n loop++;\n }\n }\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(loop, buffer.toString()));\n String footer = createFooter(dataCrest, E19_RREVISE_TYPE,\n sdf.format(new Date()), \"NWS FORM E-19\", E19_CRESTS, \"CRESTS\",\n null, E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n return buffer.toString();\n }",
"java.lang.String getField1404();",
"java.lang.String getField1800();",
"java.lang.String getField1683();",
"java.lang.String getField1365();",
"java.lang.String getField1306();",
"java.lang.String getField1083();",
"java.lang.String getField1680();",
"java.lang.String getField1448();",
"C12000e mo41087c(String str);",
"void get_timestamp (int reversed)\n{\n BytePtr str = new BytePtr(20);\n int i;\n\n if (timestamp != 0) return;\n str.at(19, (byte)0);\n if (reversed != 0)\n for (i=19; i-- != 0; ) str.at(i, (byte)CTOJ.fgetc(ifp));\n else\n CTOJ.fread (str, 19, 1, ifp);\n\n int year = ( str.at(0) - '0')*1000 + (str.at(1) - '0')*100 + (str.at(2) - '0' )*10 + str.at(3) - '0';\n int mon = (str.at(5) - '0')*10 + str.at(6)-'0';\n int day = (str.at(8) - '0')*10 + str.at(9)-'0';\n int hour = (str.at(11) - '0')*10 + str.at(12)-'0';\n int min = (str.at(14) - '0')*10 + str.at(15)-'0';\n int sec = (str.at(17) - '0')*10 + str.at(18)-'0';\n \n Calendar cal = new GregorianCalendar();\n cal.set(year,mon-1,day,hour,min,sec);\n timestamp = cal.getTimeInMillis();\n}",
"java.lang.String getField1652();",
"java.lang.String getField1390();",
"java.lang.String getField1080();",
"private byte[] parseInsertRecord_lantrix(String s)\n { \n // ASCII Data:\t\n // Example:\n // ------- \t\n\t\t//>RGP190805211932-3457215-058493640000000FFBF0300;ID=8247;#2122;*54<CRLF\n\t\t// R = [ 0, 1] Response \n // GP = [ 1, 3] Global Position \n\t\t// 190805 = [ 3, 9] GPS time-of-day DDMMAA\n\t\t// 211932 = [ 9 , 15] GPS time-of-hours GMT HHMMSS\n\t\t// -3457215 = [ 15, 23] Latitude \n\t\t// -05849364 = [ 23, 32] Longitude\n\t\t// 000 = [ 32, 35] Speed (kph 0...999)\n\t\t// 000 = [ 35, 38] Heading (degrees 0...359)\n\t\t// 0 = [ 38, 39] GPS source 3 = Position 3D, 2 = Position 2D , 0= invalid\n\t\t// FF = [ 39, 41] Age of the data in Hexadecimal\n\t\t// BF = [ 41, 43] I/O Digital \n\t\t// 03 = [ 43, 45] Number of events generated by the report (decimal).\n\t\t// 00 = [ 45, 47] Horizontal Accuracy HDOP (0 .. 50)\n\t\t// ; = Separator\n\t\t// ID=d8247 = Number Device ID \n\t\t// ; = Separator\n\t\t// #2122 = [ 57 , 62] Sentence Number (as generated by the mobile van from # 0000 to # 7FFF and those generated by the base go # 8000 to # FFFF)\n\t\t// ;*54 = Checksum\n\t\t// < = End of message\n\t\t// CRLF = End of line and carriage advance \n\n /* pre-validate */\n if (StringTools.isBlank(s)) {\n Print.logError(\"String is null/blank\");\n return null;\n } else\n if (s.length() < 5) {\n Print.logError(\"String is invalid length\");\n return null;\n } else\n if (!s.startsWith(\">\")) {\n Print.logError(\"String does not start with '>'\");\n return null;\n }\n\n /* ends with \"<\"? */\n int se = s.endsWith(\"<\")? (s.length() - 1) : s.length();\n s = s.substring(1,se);\n\n /* split */\n String T[] = StringTools.split(s,';'); \n\n /* RPG record */\n if (T[0].length() < 33) {\n Print.logError(\"Invalid 'RPG' data length\");\n return null;\n }\n\n /* mobile id */\n String mobileID = null;\n for (int i = 1; i < T.length; i++) {\n if (T[i].startsWith(\"ID=\")) {\n mobileID = T[i].substring(3);\n break;\n }\n }\n\n\t\t/* Sentence Number */\n String Sentence_number = null;\n for (int j = 1; j < T.length; j++) {\n if (T[j].startsWith(\"#\")) {\n Sentence_number = T[j].substring(1);\n break;\n }\n }\n\n //Arming the ACK frame to remove the data sent from the tracker\n\t String tracker_ID = mobileID;\n\t\tString frame_data_checksum = null;\t\t\n\t\tframe_data_checksum = \">ACK;ID=\" + tracker_ID + \";#\" + Sentence_number + \";*\";\n\t\tString chksum = getCheckSum(frame_data_checksum);\n\t\tString frame_data_ACK = null;\t\t\t\n\t\tframe_data_ACK = frame_data_checksum + chksum + \"<\\r\\n\";\n\n\t\t/* parse */ \t\n long dmy = StringTools.parseLong(T[0].substring( 3, 9), 0L);\n long hms = StringTools.parseLong(T[0].substring( 9, 15), 0L); \n long fixtime = this._getUTCSeconds(dmy, hms);\t\t\n double latitude = (double)StringTools.parseLong(T[0].substring( 15,23),0L) / 100000.0;\n double longitude = (double)StringTools.parseLong(T[0].substring(23,32),0L) / 100000.0;\n\t\tdouble KPH = StringTools.parseDouble(T[0].substring(32,35), 0.0);\n double speedKPH = KPH; \n double headingDeg = StringTools.parseDouble(T[0].substring(35,38), 0.0);\n\t\tint age_data = Integer.parseInt(T[0].substring(39,41),16);\n String decimal = Integer.toString(age_data);\n long inout = Long.parseLong(T[0].substring(41,43),16);\n String binary_io = Long.toBinaryString(inout);\n\t\tString srcStr = T[0].substring(38,39);\n String ageStr = decimal;\n double altitudeM = 0.0;\n double odomKM = 0.0;\n long gpioInput = 0L; \n\t\tint statusCode = StatusCodes.STATUS_LOCATION;\n\n /* I/O Digital */\n\t\tgpioInput = inout; \n\n\t\t/* get time */ \n if (fixtime <= 0L) {\n Print.logWarn(\"Invalid date.\");\n fixtime = DateTime.getCurrentTimeSec(); // default to now\n } \n\n /* lat/lon valid? */\n boolean validGPS = true;\n if (!GeoPoint.isValid(latitude,longitude)) {\n Print.logWarn(\"Invalid lat/lon: \" + latitude + \"/\" + longitude);\n validGPS = false;\n latitude = 0.0;\n longitude = 0.0;\n speedKPH = 0.0;\n headingDeg = 0.0;\n }\n GeoPoint geoPoint = new GeoPoint(latitude,longitude);\n\n /* adjustments to received values */\n if (speedKPH < MINIMUM_SPEED_KPH) {\n speedKPH = 0.0;\n headingDeg = 0.0;\n } else\n if (headingDeg < 0.0) { \n headingDeg = 0.0;\n }\n \n /* debug */\t\t\n Print.logInfo(\"MobileID : \" + mobileID);\n\t\tPrint.logInfo(\"Sentence : \" + Sentence_number);\n Print.logInfo(\"Timestamp: \" + fixtime + \" [\" + new DateTime(fixtime) + \"]\");\n Print.logInfo(\"GeoPoint : \" + geoPoint);\n Print.logInfo(\"Speed km/h: \" + speedKPH + \" [\" + headingDeg + \"]\");\n\n /* mobile-id */\n if (StringTools.isBlank(mobileID)) {\n Print.logError(\"Missing MobileID\");\n return null;\n }\n\n /* find Device */\n String accountID = \"\";\n String deviceID = \"\";\n String uniqueID = \"\";\n //Device device = DCServerFactory.loadDeviceByPrefixedModemID(UNIQUEID_PREFIX, mobileID);\n Device device = DCServerConfig.loadDeviceUniqueID(Main.getServerConfig(), mobileID);\n if (device == null) {\n return null; // errors already displayed\n } else {\n accountID = device.getAccountID();\n deviceID = device.getDeviceID();\n uniqueID = device.getUniqueID();\n Print.logInfo(\"UniqueID : \" + uniqueID);\n Print.logInfo(\"DeviceID : \" + accountID + \"/\" + deviceID);\n }\n \n /* check IP address */\n DataTransport dataXPort = device.getDataTransport();\n if ((this.ipAddress != null) && !dataXPort.isValidIPAddress(this.ipAddress)) {\n DTIPAddrList validIPAddr = dataXPort.getIpAddressValid(); // may be null\n Print.logError(\"Invalid IP Address from device: \" + this.ipAddress + \" [expecting \" + validIPAddr + \"]\");\n return null;\n }\n dataXPort.setIpAddressCurrent(this.ipAddress); // FLD_ipAddressCurrent\n dataXPort.setRemotePortCurrent(this.clientPort); // FLD_remotePortCurrent\n dataXPort.setLastTotalConnectTime(DateTime.getCurrentTimeSec()); // FLD_lastTotalConnectTime\n if (!dataXPort.getDeviceCode().equalsIgnoreCase(Constants.DEVICE_CODE)) {\n dataXPort.setDeviceCode(Constants.DEVICE_CODE); // FLD_deviceCode\n }\n\n /* reject invalid GPS fixes? */\n if (!validGPS && (statusCode == StatusCodes.STATUS_LOCATION)) {\n // ignore invalid GPS fixes that have a simple 'STATUS_LOCATION' status code\n Print.logWarn(\"Ignoring event with invalid latitude/longitude\");\n return null;\n }\n\n /* estimate GPS-based odometer */\n if (odomKM <= 0.0) {\n // calculate odometer\n odomKM = (ESTIMATE_ODOMETER && validGPS)? \n device.getNextOdometerKM(geoPoint) : \n device.getLastOdometerKM();\n } else {\n // bounds-check odometer\n odomKM = device.adjustOdometerKM(odomKM);\n }\n Print.logInfo(\"OdometerKM: \" + odomKM);\n\n /* simulate Geozone arrival/departure */\n if (SIMEVENT_GEOZONES && validGPS) {\n java.util.List<Device.GeozoneTransition> zone = device.checkGeozoneTransitions(fixtime, geoPoint);\n if (zone != null) {\n for (Device.GeozoneTransition z : zone) {\n this.insertEventRecord(device, \n z.getTimestamp(), z.getStatusCode(), z.getGeozone(),\n geoPoint, gpioInput, speedKPH, headingDeg, altitudeM, odomKM);\n Print.logInfo(\"Geozone : \" + z);\n if (z.getStatusCode() == statusCode) {\n // suppress 'statusCode' event if we just added it here\n Print.logDebug(\"StatusCode already inserted: 0x\" + StatusCodes.GetHex(statusCode));\n statusCode = StatusCodes.STATUS_IGNORE;\n }\n }\n }\n }\n\n /* insert event */\n if (statusCode == StatusCodes.STATUS_NONE) {\n // ignore this event\n } else\n if ((statusCode != StatusCodes.STATUS_LOCATION) || !validGPS) {\n this.insertEventRecord(device, \n fixtime, statusCode, null/*GeoZone*/,\n geoPoint, gpioInput, speedKPH, headingDeg, altitudeM, odomKM);\n } else\n if (!device.isNearLastValidLocation(geoPoint,MINIMUM_MOVED_METERS)) {\n if ((statusCode == StatusCodes.STATUS_LOCATION) && (speedKPH > 0.0)) {\n statusCode = StatusCodes.STATUS_MOTION_IN_MOTION;\n }\n this.insertEventRecord(device, \n fixtime, statusCode, null/*GeoZone*/,\n geoPoint, gpioInput, speedKPH, headingDeg, altitudeM, odomKM);\n }\n \n /* save device changes */\n try {\n // TODO: check \"this.device\" vs \"this.dataXPort\" \n device.updateChangedEventFields();\n } catch (DBException dbe) {\n Print.logException(\"Unable to update Device: \" + accountID + \"/\" + deviceID, dbe);\n } finally {\n //\n }\n Print.logInfo(\"ACK: \" + frame_data_ACK);\n\t\treturn frame_data_ACK.getBytes();// //return required acknowledgement (ACK) back to the device\n\n }",
"java.lang.String getField1200();",
"java.lang.String getField1380();",
"java.lang.String getField1224();",
"java.lang.String getField1252();",
"java.lang.String getField1685();",
"private static String getAdImmd(String compon){\n\t\tcompon = compon.substring(0,compon.indexOf(\"(\"));\n\t\treturn compon;\n\t}",
"java.lang.String getField1164();",
"java.lang.String getField1303();",
"java.lang.String getField1209();",
"java.lang.String getField1326();",
"java.lang.String getField1658();",
"java.lang.String getField1697();",
"java.lang.String getField1323();",
"java.lang.String getField1320();",
"java.lang.String getField1206();",
"java.lang.String getField1509();",
"java.lang.String getField1629();",
"public void getREFDT()//get reference date\n\t{\n\t\ttry\n\t\t{\n\t\t\tDate L_strTEMP=null;\n\t\t\tM_strSQLQRY = \"Select CMT_CCSVL,CMT_CHP01,CMT_CHP02 from CO_CDTRN where CMT_CGMTP='S\"+cl_dat.M_strCMPCD_pbst+\"' and CMT_CGSTP = 'FGXXREF' and CMT_CODCD='DOCDT'\";\n\t\t\tResultSet L_rstRSSET = cl_dat.exeSQLQRY2(M_strSQLQRY);\n\t\t\tif(L_rstRSSET != null && L_rstRSSET.next())\n\t\t\t{\n\t\t\t\tstrREFDT = L_rstRSSET.getString(\"CMT_CCSVL\").trim();\n\t\t\t\tL_rstRSSET.close();\n\t\t\t\tM_calLOCAL.setTime(M_fmtLCDAT.parse(strREFDT)); // Convert Into Local Date Format\n\t\t\t\tM_calLOCAL.add(Calendar.DATE,+1); // Increase Date from +1 with Locked Date\n\t\t\t\tstrREFDT = M_fmtLCDAT.format(M_calLOCAL.getTime()); // Assign Date to Veriable \n\t\t\t\t//System.out.println(\"REFDT = \"+strREFDT);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"getREFDT\");\n\t\t}\n\t}",
"String mo20731c();",
"java.lang.String getField1948();",
"private String E19Cover() {\n StringBuilder buffer = new StringBuilder();\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 0);\n buffer.append(TextReportConstants.E19_HDR_COVER);\n buffer.append(\"\\n\\n\");\n buffer.append(\"\t\t\t U.S. DEPARTMENT OF COMMERCE\\n\");\n buffer.append(\n \" NATIONAL OCEANIC AND ATMOSPHERIC ADMINISTRATION\\n\");\n buffer.append(\n \" NATIONAL WEATHER SERVICE\\n\\n\");\n buffer.append(\n \" REPORT ON RIVER GAGE STATION\\n\\n\");\n\n String revisedDate = \" \";\n if (data.getRiverstat().getRrevise() != null) {\n revisedDate = sdf.format(data.getRiverstat().getRrevise());\n }\n\n Date now = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n String printedDate = sdf.format(now);\n\n buffer.append(String.format(\"%40s %10s, %10s\\n\\n\\n\",\n \"REVISED, PRINTED DATES:\", revisedDate, printedDate));\n\n buffer.append(String.format(\"LOCATION: %s\\n STREAM: %s\\n\",\n locData.getLocation().getName(),\n data.getRiverstat().getStream()));\n buffer.append(String.format(\" BASIN: %-30s HSA: %s\\n\",\n locData.getLocation().getRb(), locData.getLocation().getHsa()));\n buffer.append(\"\\n\");\n\n buffer.append(\"REFERENCES:\\n\");\n TextReportData dataRefer = TextReportDataManager.getInstance()\n .getReferenceData(lid);\n int count = 0;\n if (dataRefer.getRefer() != null) {\n count = dataRefer.getRefer().size();\n }\n\n if (count > 0) {\n for (String s : dataRefer.getRefer()) {\n buffer.append(String.format(\" %s\\n\", s));\n }\n }\n\n // try to place ABBREVIATIONS at the bottom\n for (int i = 0; i < 16 - count; i++) {\n buffer.append(\"\\n\");\n }\n\n buffer.append(\"\\nABBREVIATIONS:\\n\\n\");\n buffer.append(\n \" BM - bench mark\t\tEPA - Environmental Protection Agency\\n\");\n buffer.append(\n \" DS - downstream\t\tIBWC - International Boundary and Water Comm.\\n\");\n buffer.append(\n \" US - upstream\t\tMSRC - Mississippi River Commission\\n\");\n buffer.append(\n \" HW - high water\t\tMORC - Missouri River Commission\\n\");\n buffer.append(\n \" LW - low water\t\tNOAA - National Oceanic and Atmospheric Admin.\\n\");\n buffer.append(\n \" RB - right bank\t\tNOS - National Ocean Survey\\n\");\n buffer.append(\n \" LB - left bank\t\tNWS - National Weather Service\\n\");\n buffer.append(\n \" MGL - mean gulf level\t\tTVA - Tennessee Valley Authority\\n\");\n buffer.append(\n \" MLW - mean low water\t\tUSACE - U.S. Army Corps of Engineers\\n\");\n buffer.append(\n \" MSL - mean sea level\t\tUSBR - U.S. Bureau of Reclamation\\n\");\n buffer.append(\n \" MLT - mean low tide\t\tUSGS - U.S. Geological Survey\\n\");\n buffer.append(\" MT - mean tide\t\tUSWB - U.S. Weather Bureau\\n\");\n buffer.append(\n \" WQ - water quality\t\tNGVD - National Geodetic Vertical Datum\\n\");\n buffer.append(\n \" RM - reference mark\t\tNAD - North American Datum\\n\");\n buffer.append(\" RP - reference point\\n\");\n buffer.append(\"\\n\\n\\n\");\n\n buffer.append(String.format(\n \"\t\t\t\t\t LOCATION IDENTIFICATION: %s\\n\", lid));\n buffer.append(\n String.format(\"\t\t\t\t\t\t NWS INDEX NUMBER: %s\\n\",\n locData.getLocation().getSn()));\n buffer.append(\n String.format(\"\t\t\t\t\t\t USGS NUMBER: %s\\n\",\n data.getRiverstat().getGsno()));\n\n return buffer.toString();\n }",
"java.lang.String getField1631();",
"java.lang.String getField1460();",
"public final String[] mo24226W(C7620bi c7620bi) {\n int i = 1;\n AppMethodBeat.m2504i(113302);\n String[] strArr = new String[2];\n String str = c7620bi.field_content;\n if (C5046bo.isNullOrNil(str)) {\n strArr[0] = \"\";\n strArr[1] = \"\";\n AppMethodBeat.m2505o(113302);\n return strArr;\n }\n int i2;\n String str2;\n if (c7620bi.field_isSend == 0) {\n i2 = 1;\n } else {\n i2 = 0;\n }\n if (C1855t.m3896kH(c7620bi.field_talker) && i2 != 0) {\n i2 = C1829bf.m3761ox(str);\n if (i2 != -1) {\n str = str.substring(i2 + 1).trim();\n }\n }\n C5136b Ro = ((C6982j) C1720g.m3528K(C6982j.class)).bOr().mo15261Ro(str);\n if (Ro.dua()) {\n str = Ro.label;\n str2 = Ro.eUu;\n strArr[0] = str;\n strArr[1] = str2;\n } else {\n strArr[0] = Ro.label;\n strArr[1] = \"\";\n }\n if (C5046bo.isNullOrNil(strArr[0]) && C5046bo.isNullOrNil(strArr[1])) {\n C4990ab.m7416i(\"MicroMsg.LocationServer\", \"pull from sever\");\n long j = c7620bi.field_msgId;\n if (!(this.nJC == null || this.nJC.contains(Long.valueOf(j)))) {\n str2 = c7620bi.field_content;\n if (c7620bi.field_isSend != 0) {\n i = 0;\n }\n if (C1855t.m3896kH(c7620bi.field_talker) && i != 0) {\n i = C1829bf.m3761ox(str2);\n if (i != -1) {\n str2 = str2.substring(i + 1).trim();\n }\n }\n Ro = C5136b.apD(str2);\n this.nJC.add(Long.valueOf(j));\n C18657c.agw().mo33924a(Ro.nJu, Ro.nJv, this.nJD, Long.valueOf(c7620bi.field_msgId));\n }\n }\n AppMethodBeat.m2505o(113302);\n return strArr;\n }",
"java.lang.String getField1208();",
"public abstract void mo70709a(String str, C41018cm c41018cm);",
"java.lang.String getField1960();",
"java.lang.String getField1613();",
"java.lang.String getField1304();",
"java.lang.String getField1548();",
"java.lang.String getField1096();",
"java.lang.String getField1628();",
"C1435c mo1754a(C1433a c1433a, C1434b c1434b);",
"java.lang.String getField1663();",
"java.lang.String getField1302();",
"java.lang.String getField1296();",
"java.lang.String getField1698();"
] | [
"0.5613662",
"0.545065",
"0.5436296",
"0.54355305",
"0.5395058",
"0.5332737",
"0.5326393",
"0.53032386",
"0.529708",
"0.529686",
"0.52742434",
"0.5229639",
"0.5225652",
"0.5219926",
"0.5218684",
"0.52127314",
"0.51948774",
"0.5191293",
"0.5188497",
"0.51844156",
"0.51792634",
"0.51561177",
"0.51491344",
"0.51255256",
"0.5124299",
"0.51206297",
"0.5119198",
"0.5115659",
"0.5115078",
"0.51139754",
"0.5110003",
"0.51062196",
"0.51044345",
"0.5102078",
"0.5097721",
"0.50970757",
"0.50962335",
"0.50928193",
"0.5081761",
"0.5081404",
"0.50806665",
"0.50797904",
"0.5078188",
"0.5077809",
"0.50769687",
"0.5073944",
"0.5068005",
"0.50653553",
"0.5064747",
"0.50641614",
"0.50551784",
"0.5053401",
"0.50505304",
"0.504884",
"0.5046735",
"0.50464773",
"0.50456023",
"0.50405204",
"0.50368774",
"0.5035264",
"0.50323504",
"0.50312346",
"0.5029981",
"0.50261503",
"0.50254977",
"0.50206685",
"0.5019098",
"0.5018371",
"0.501754",
"0.5016479",
"0.5015933",
"0.5014198",
"0.5012802",
"0.5011131",
"0.50103986",
"0.5009547",
"0.5009176",
"0.50048316",
"0.5004206",
"0.50006264",
"0.50003684",
"0.50000596",
"0.49987328",
"0.49924228",
"0.49915472",
"0.49894455",
"0.4987704",
"0.49863485",
"0.49846685",
"0.49835333",
"0.4982995",
"0.4982017",
"0.49817717",
"0.49809623",
"0.49796167",
"0.4977904",
"0.49758756",
"0.49744642",
"0.4973484",
"0.49723378",
"0.49711308"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void execute() {
for(int i=0;i<coms.length;i++)
coms[i].execute();
} | {
"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 |
Creates a new ScrollView. | public ScrollView()
{
// Configure ScrollView
setBorder(SCROLL_VIEW_BORDER);
// Create Scroller and add listeners for scroll changes
_scroller = new Scroller();
_scroller.addPropChangeListener(pc -> scrollerDidPropChange(pc), Width_Prop, Height_Prop,
Scroller.ScrollX_Prop, Scroller.ScrollY_Prop, Scroller.ScrollWidth_Prop, Scroller.ScrollHeight_Prop);
addChild(_scroller);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ScrollView(View aView) { this(); setContent(aView); }",
"private void createScrollPane() {\n\n\t\t// --------------------------------------------\n\t\t// first create the client\n\t\t// --------------------------------------------\n\t\tclient = new Client(this);\n//\t\tclient.setTransferHandler(PM_TransferHandler.getInstance());\n\t\tfocusPanel = new PM_FocusPanel(null, this, this);\n\n\t\tif (config.isNurLesen()) {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_NUR_LESEN);\n\t\t} else {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_BACKGROUND);\n\t\t}\n\t\tclient.setLayout(null); // I do it myself\n\n\t\tclient.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t// System.out.println(\"Inndex View: mouseClicked: requestFocusInWindow aufrufen\");\n\t\t\t\trequestFocusInWindow();\n\t\t\t}\n\t\t});\n\n\t\t// ------------------------------------------\n\t\t// now the scrollpane\n\t\t// ------------------------------------------\n\t\tscrollPane = new JScrollPane(client);\n\t\tindexViewPort = scrollPane.getViewport();\n\n\t\tscrollPane.setWheelScrollingEnabled(false);\n\n\t\t//\t\t \n\t\tscrollPane\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t// Achtung: VERTICAL_SCROLLBAR_ALWAYS, da sonst unterschiedliche\n\t\t// ExtendSize und\n\t\t// damit funktioniert der stateChanged nicht mehr.\n\t\tscrollPane\n\t\t\t\t.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// ----------------------------------------------------------------------\n\t\t// MouseWheelListener\n\t\t// ----------------------------------------------------------------------\n\t\tMouseWheelListener mwl = new MouseWheelListener() {\n\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent me) {\n\t\t\t\tmouseWheelChanged(me);\n\t\t\t}\n\t\t};\n\t\tscrollPane.addMouseWheelListener(mwl);\n\n\t\t// ----------------------------------------------------------------------\n\t\t// ChangeListener\n\t\t// ----------------------------------------------------------------------\n\t\tChangeListener cl = new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent ce) {\n\t\t\t\t// viewPortSizeChanged(ce);\n\t\t\t}\n\t\t};\n\t\tscrollPane.getViewport().addChangeListener(cl);\n\n\t\t// addComponentListener\n\t\tscrollPane.getViewport().addComponentListener(new ComponentAdapter() {\n\t\t\t@Override\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tviewPortChanged(e);\n\t\t\t}\n\t\t});\n\n\t\t// addAdjustmentListener(AdjustmentListener l)\n\t\t// Scrollbar AdjustmentListener\n\t\tJScrollBar sb = scrollPane.getVerticalScrollBar();\n\t\tsb.addAdjustmentListener(new AdjustmentListener() {\n\n\t\t\t \n\t\t\tpublic void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\tverticalScrollBarChanged(e);\n\n\t\t\t}\n\n\t\t});\n\n\t\t// oldViewPortSize = indexViewPort.getExtentSize();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t{\n\t\t\n\t\tif(null == this.view){\n\t\t\tthis.view = (View)inflater.inflate(R.layout.comp, container, false);\n\t\t\tthis.scrollView = (ScrollView)this.view.findViewById(R.id.scroll);\n\t\t\n\t\t\t// --> \n\t\t\tMarginLayoutParams p = (MarginLayoutParams)this.scrollView.getLayoutParams();\n\t\t\tp.leftMargin = -8; \n\t\t\tp.rightMargin = -8; \n\t\t\tp.topMargin = 0; \n\t\t\tp.bottomMargin = 0;\n\t\t\tthis.scrollView.setLayoutParams(p);\n\t\t\t// -->\n\t\t\t/*\n\t\t\tRelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams)this.scrollView.getLayoutParams();\n\t\t\tlp.setMargins(100, 100, 100, 200);\n\t\t\tthis.scrollView.setLayoutParams(lp);\t\n\t\t\t*/\n\t\t\t// -->\n\n\t\t\tthis.scrollView.getViewTreeObserver().addOnScrollChangedListener(new OnScrollChangedListener(){\n\t\t\t\t@Override public void onScrollChanged(){\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\telse{\n\t\t\t// ((ViewGroup)this.view.getParent()).removeView(this.view);\n\t\t\t((ViewGroup)this.view.getParent()).removeAllViews();\n\t\t}\n\t\n\t\tthis.addComp(this.key, (DynView)this.adapter.getComp(this.key));\n\t\treturn this.view;\n\t}",
"@Override\n\tpublic ScrollBar createScrollBar() {\n\t\tLightVisualThemeScrollBar lightVisualThemeScrollBar = new LightVisualThemeScrollBar();\n\t\treturn lightVisualThemeScrollBar;\n\t}",
"public static JScrollPane createLazyScrollPaneFor(Component view) {\r\n LazyViewport vp = new LazyViewport();\r\n vp.setView(view);\r\n JScrollPane scrollpane = new JScrollPane();\r\n scrollpane.setViewport(vp);\r\n return scrollpane;\r\n }",
"ViewContainer createViewContainer();",
"private android.view.View makeChannelsAndInfoScroller()\n\t{\n\t\t{\n\t\t\tchannelsAndInfoScroller = new ScrollView(getContext());\n\t\t\tchannelsAndInfoScroller.addView(makeChannelsAndInfo());\n\t\t}\n\t\treturn channelsAndInfoScroller;\n\t}",
"private JScrollPane makeScrollPane() {\n textPane = new JTextPane();\n textPane.setCaretPosition(0);\n textPane.setMargin(new Insets(5, 5, 5, 5));\n StyledDocument styledDoc = textPane.getStyledDocument();\n if (styledDoc instanceof AbstractDocument) {\n doc = (AbstractDocument) styledDoc;\n doc.setDocumentFilter(new ColorFilter());\n } else {\n System.err.println(\"Text pane's document isn't an AbstractDocument!\");\n System.exit(-1);\n }\n JScrollPane jsp = new JScrollPane(textPane);\n tln = new TextLineNumber(textPane, name);\n jsp.setRowHeaderView(tln);\n return jsp;\n }",
"public JScrollBar createVerticalScrollBar() {\n/* 873 */ return new ScrollBar(1);\n/* */ }",
"View createView();",
"private JPanel createScrollPaneProducts() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Products List: \", TitledBorder.LEFT, TitledBorder.TOP));\n\n this.productsList = this.demonstrationApplicationController.getProductsList();\n this.jListProduct = new JList(new ModelListSelectable(this.productsList));\n JScrollPane scrollPane = new JScrollPane(jListProduct);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }",
"private void createAndInitScrollingImage() {\r\n\t\tif (this.scrollPane != null) {\r\n\t\t\tthis.pictureFrame.getContentPane().remove(this.scrollPane);\r\n\r\n }\r\n\r\n\t\tthis.scrollPane = new JScrollPane();\r\n\t\tthis.pictureFrame.getContentPane().add(this.scrollPane, BorderLayout.CENTER);\r\n\t\tthis.pictureFrame.validate();\r\n\t}",
"public void createScrollPanel(JPanel panel) {\n scrollPanel = new JScrollPane(panel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n scrollPanel.setPreferredSize(new Dimension(710, 600));\n }",
"public VerticalScrollbar() {}",
"public void setupScrollViewAdapter(){\n scrollViewAdapter = new ArrayAdapter<Integer>(this, android.R.layout.simple_list_item_1, currentNotifications);\n notifcationIdView.setAdapter(scrollViewAdapter);\n }",
"protected JViewport createViewport() {\n/* 927 */ return new JViewport();\n/* */ }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (rootView==null) {\n rootView = inflater.inflate(R.layout.fragment_about_scrolls, container, false);\n web_view = (WebView) rootView.findViewById(R.id.about_scrolls_web_view);\n final WebSettings webSettings = web_view.getSettings();\n webSettings.setJavaScriptEnabled(true);\n web_view.setWebViewClient(new myWebClient());\n web_view.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n //Blank listener to disable long click text selection\n return true;\n }\n });\n web_view.setWebViewClient(new WebViewClient() {\n\n @Override\n public void onPageFinished(final WebView view, final String url) {\n super.onPageFinished(view, url);\n web_view.invalidate();\n }\n });\n }\n return rootView;\n }",
"public HistoryView() {\n\t\tthis.history = new JPanel();\n\t\tthis.history.setBackground(BackGroundColor.color);\n\t\tthis.history.setLayout(new BoxLayout(this.history, 3));\n\t\tthis.tp = new JScrollPane(22, 31);\n\t\tthis.tp.setViewportView(this.history);\n\t\tthis.tp.getVerticalScrollBar().setUnitIncrement(20);\n\t\tthis.tp.getVerticalScrollBar().addAdjustmentListener(this);\n\t\tthis.component = tp;\n\t\t//this.observer = observer;\n\t}",
"public SpringScrollView(Context context) {\n this(context, null);\n }",
"public JScrollBar createHorizontalScrollBar() {\n/* 814 */ return new ScrollBar(0);\n/* */ }",
"public WordScrollPane() {\n scrollPane = new JScrollPane();\n }",
"private void initView(View view) {\n\t\tif (imageView == null) {\n\t\t\timageView = new MyImageView(getActivity());\n\t\t\tscrollView = (MyScrollView) view.findViewById(R.id.my_scroll_view);\n\t\t}\n\t}",
"public void addview(View2 view2) {\n scrollPane = new JScrollPane(view2);\n scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n //Add the scroll pane to this panel.\n this.add(scrollPane);\n\t\t//this.add(view2);\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n mContext = this;\n setContentView(R.layout.main);\n mScrollLayout = (ScrollLayout) findViewById(R.id.ScrollLayoutTest);\n initViews();\n }",
"private JPanel createScrollPaneKeyWords() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Keywords List \", TitledBorder.LEFT, TitledBorder.TOP));\n\n this.keywordList = demonstrationApplicationController.getKeywordsList();\n this.jListKeyword = new JList(new ModelListSelectable(keywordList));\n\n JScrollPane scrollPane = new JScrollPane(jListKeyword);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }",
"private ObservableHorizontalScrollView makeShowInfoScroller()\n\t{\n\t\tshowsView = new ObservableHorizontalScrollView(getContext());\n\t\tshowsView.addListener(this);\n\t\tshowsView.setOnTouchListener(this);\n\n\t\tshowsView.addView(makeShowInfoHorizontalLayout());\n\t\treturn showsView;\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.pull_to_refresh_scrollview);\r\n\t\tinflater = LayoutInflater.from(this);\r\n\t\tmPullRefreshScrollView = (PullToRefreshScrollView) findViewById(R.id.pull_refresh_scrollview);\r\n\t\tmScrollView = mPullRefreshScrollView.getRefreshableView();\r\n\t\tView view = inflater.inflate(R.layout.text, null);\r\n\t\tmScrollView.addView(view);\r\n\t\t\r\n\t\tmScrollView.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t}",
"public void addContent() {\n ScrollPane mySP = new ScrollPane();\n myContent = new SaveForm(myManager);\n mySP.setContent(myContent);\n mySP.setPrefSize(size, size);\n myRoot.getChildren().add(mySP);\n }",
"private Pane initLogWindow()\n {\n listViewMessage = new ListView<String>();\n listViewMessage.setMaxSize(470,300);\n listViewMessage.setItems(listViewMessageItems);\n\n VBox log_window = new VBox();\n Label lbLog = new Label(\"Log window\");\n lbLog.setPadding(new Insets(5,5,5,5));\n log_window.getChildren().addAll(lbLog, listViewMessage);\n log_window.setPadding(new Insets(50, 50, 50, 50));\n log_window.setAlignment(Pos.CENTER);\n\n return log_window;\n }",
"public AutoScrollPane() {\n this(null);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n\n mScrollView = (ScrollView) findViewById(R.id.scroll_view);\n mScrollContent = (ViewGroup) findViewById(R.id.content);\n\n mPager = new ScrollViewPager(mScrollView, mScrollContent);\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_test);\r\n\t\tPullToRefreshScrollView pullToRefreshScrollView=(PullToRefreshScrollView) findViewById(R.id.test);\r\n\t\tScrollView scrollView=pullToRefreshScrollView.getRefreshableView();\r\n\t\t\r\n\t\tView v=getLayoutInflater().inflate(R.layout.commodities_layout, null);\r\n\t\tscrollView.addView(v);\r\n\t\t\r\n\t}",
"@SuppressWarnings({\"deprecation\", \"rawtypes\", \"unchecked\"})\n public static javafx.scene.control.AccordionBuilder<?> create() {\n return new javafx.scene.control.AccordionBuilder();\n }",
"@CallSuper\n protected View createContentView() {\n mPager = new ViewPager2(this);\n\n // Disable swipe gesture.\n mPager.setUserInputEnabled(false);\n\n mPager.setId(R.id.fre_pager);\n mPager.setOffscreenPageLimit(3);\n return mPager;\n }",
"public void makeScrollable() {\n if (touchScrollHandler == null) {\n touchScrollHandler = TouchScrollDelegate.enableTouchScrolling(this);\n }\n touchScrollHandler.addElement(contentNode);\n }",
"private JPanel buildContentPane(){\t\n\t\tinitialiseElements();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout());\n\t\tpanel.setBackground(Color.lightGray);\n\t\tpanel.add(scroll);\n\t\tpanel.add(bouton);\n\t\tpanel.add(bouton2);\n\t\treturn panel;\n\t}",
"public void addGuest(View aChild, int anIndex) { _scroller.addGuest(aChild, anIndex); }",
"public KScrollTextArea() {\n\n super();\n \n MyTextArea = new KTextArea();\n this.initScrollPane();\n\n }",
"public void configureGallery(T aView)\n {\n aView.setPrefSize(140,40); aView.setFont(Font.Arial10);\n aView.setShowVBar(true); aView.setShowHBar(true); aView.setBarSize(10);\n Label label = new Label(\"ScrollView\"); label.setPadding(8,35,8,45); label.setTextFill(Color.GRAY);\n label.setAlign(Pos.TOP_LEFT);\n aView.setContent(label); label.setFill(Color.WHITE); label.setMinSize(600,600);\n }",
"private void refreshView(){\n\t\tMain.scroll.setViewportView(container);\n\t\t// setez scrollul jos\n\t\tMain.scroll.getVerticalScrollBar().setValue(Main.scroll.getVerticalScrollBar().getMaximum());\n\t}",
"@Nullable\n @Override\n @CallSuper\n public View onCreateView(@NonNull final LayoutInflater inflater, @Nullable final ViewGroup container, @Nullable final Bundle savedInstanceState) {\n View view = getView();\n if (view == null) {\n view = inflater.inflate(getContentLayout(), container, false);\n }\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public void Create() {\n\n initView();\n }",
"public void createViews(){\n ArrayList<Words> wordsArrayList = new ArrayList<Words>();\n\n //Fill array with english word and hindi translation by creating new word objects\n for(int i = 0; i < defaultWords.size() && i < hindiTranslation.size(); i++){\n wordsArrayList.add(new Words(defaultWords.get(i), hindiTranslation.get(i)));\n }\n\n //ArrayAdapter and ListView used so that not a lot of memory is used to create all textviews when not needed\n //Update** Using WordAdapter which extends ArrayAdapter and only has 2 parameters\n\n WordAdapter adapter = new WordAdapter(this, wordsArrayList);\n\n ListView listView = (ListView) findViewById(R.id.translation_root_view);\n\n listView.setAdapter(adapter);\n\n\n }",
"public static ComponentUI createUI(JComponent c) { \n return new UIScrollBar(); \n }",
"private void createDrawingView() {\r\n mDrawingView = new DrawingView(mContext);\r\n LinearLayout mDrawingPad = (LinearLayout) findViewById(R.id.drawing_pad);\r\n mDrawingPad.addView(mDrawingView);\r\n }",
"ViewElement createViewElement();",
"public JScrollPane() {\n/* 351 */ this((Component)null, 20, 30);\n/* */ }",
"public PetitionViewScreen() {\n initComponents();\n thisObj = this;\n commentScrollPane.getVerticalScrollBar().setValue(0);\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tmContext = getActivity();\n\t\tll = new LinearLayout(getActivity());\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t\tLinearLayout.LayoutParams.FILL_PARENT,\n\t\t\t\tLinearLayout.LayoutParams.FILL_PARENT);\n\t\tthis.getActivity().addContentView(ll, params);\n\t}",
"public void initView() {\n setEllipsize(TruncateAt.MARQUEE);\n setSingleLine(true);\n setMarqueeRepeatLimit(-1);\n setFocusable(true);\n setFocusableInTouchMode(false);\n }",
"ViewComponent createViewComponent();",
"private JScrollPane createTreeScrollPanel() {\n for (Map.Entry<VirtualFile, VcsRoot> entry : files.entrySet()) {\n createDirectoryNodes(entry.getKey(), entry.getValue());\n }\n\n final FileTreeRenderer renderer = new FileTreeRenderer();\n\n tree = new CheckboxTree(renderer, root);\n tree.setCellRenderer(renderer);\n tree.setRootVisible(true);\n tree.setShowsRootHandles(false);\n UIUtil.setLineStyleAngled(tree);\n TreeUtil.installActions(tree);\n\n final JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(tree);\n scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n TreeUtil.expandAll(tree);\n\n tree.getModel().addTreeModelListener(treeModelListener);\n treeExpander = new DefaultTreeExpander(tree);\n\n return scrollPane;\n }",
"public static WaitTitledPane create() {\n WaitTitledPane newContent = new WaitTitledPane();\n try {\n ViewControllerLoader.initializeCustomControl(newContent);\n } catch (IOException ex) {\n throw new InternalError(\"Error loading view\", ex);\n }\n return newContent;\n }",
"private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Nullable\n public View onCreateView(LayoutInflater inflater,\n @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n if (null == view) {\n myContainer = new LinearLayout(mContext);\n view = inflater.inflate(R.layout.listitem_banner, null);\n view.setMinimumHeight(((WindowManager) getActivity()\n .getSystemService(Context.WINDOW_SERVICE))\n .getDefaultDisplay().getHeight());\n view.setMinimumWidth(((WindowManager) getActivity()\n .getSystemService(Context.WINDOW_SERVICE))\n .getDefaultDisplay().getWidth());\n initData();\n myContainer.addView(view);\n } else {\n myContainer.removeAllViews();\n myContainer = new LinearLayout(getActivity());\n myContainer.addView(view);\n }\n return myContainer;\n }",
"public WebPlotView() {\n initWidgets();\n _scrollingRootPanel.addDomHandler(new MouseDownHandler() {\n public void onMouseDown(MouseDownEvent ev) {\n if (_mpw != null) _mpw.selectSelf();\n }\n }, MouseDownEvent.getType());\n\n _scrollingRootPanel.addDomHandler(new TouchStartHandler() {\n public void onTouchStart(TouchStartEvent event) {\n if (_mpw != null) _mpw.selectSelf();\n }\n }, TouchStartEvent.getType());\n\n }",
"private JPanel createScrollPaneDemonstrations() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Select the desired demonstrations:\", TitledBorder.LEFT, TitledBorder.TOP));\n modelDemonstration = new ModelTableDemonstrationsList(demonstrationsList);\n demonstrationsListJTable = new JTable(modelDemonstration);\n demonstrationsListJTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n demonstrationsListJTable.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n //demonstrationApplicationController.newDemonstrationApplication(((Demonstration)modelDemonstration.getValueAt(demonstrationsListJTable.getSelectedRow(), demonstrationsListJTable.getSelectedColumn())));\n }\n });\n\n JScrollPane scrollPane = new JScrollPane(demonstrationsListJTable);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.setMinimumSize(scrollPane.getMinimumSize());\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }",
"private void setupScrollViews() {\n parent = findViewById(R.id.parent_scroll_view);\n child = findViewById(R.id.child_scroll_view1);\n\n parent.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n Log.v(\"TAG\", \"PARENT_TOUCH\");\n parent.requestDisallowInterceptTouchEvent(false);\n return false;\n }\n });\n\n child.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n Log.v(\"TAG\", \"CHILD_DESCRIPTION\");\n parent.requestDisallowInterceptTouchEvent(true);\n return false;\n }\n });\n }",
"private org.gwtproject.user.client.ui.ScrollPanel get_f_ScrollPanel1() {\n return build_f_ScrollPanel1();\n }",
"public ScrollBar getVBar()\n {\n if (_vbar!=null) return _vbar;\n _vbar = new ScrollBar(); _vbar.setVertical(true);\n _vbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _vbar;\n }",
"private JScrollPane getTestAreaScrollPane() {\r\n\t\tif (testAreaScrollPane == null) {\r\n\t\t\ttry {\r\n\t\t\t\ttestAreaScrollPane = new JScrollPane();\r\n\t\t\t\ttestAreaScrollPane.setVisible(false);\r\n\t\t\t\ttestAreaScrollPane.setViewportView(getDetailsTextArea());\r\n\t\t\t} catch (java.lang.Throwable e) {\r\n\t\t\t\t// TODO: Something\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn testAreaScrollPane;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.layout_detail, container, false);\n ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"private void doBuildScroller() {\r\n\t\t\r\n\t}",
"private void createNewWebView()\n {\n //Remove the webView from it's parent if the webView exists\n if(webView != null) {\n ViewGroup parent = (ViewGroup) webView.getParent();\n parent.removeView(webView);\n }\n\n //Create a new WebView\n webView = new WebView(getContext());\n webView.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n\n //Add the new WebView to the webViewContainer\n webViewContainer.addView(webView);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater,\n @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n mRootView = inflater.inflate(getLayoutId(), null);\n x.view().inject(this, mRootView);\n return mRootView;\n }",
"GapBoxViewChildren createChildren() {\n return new GapBoxViewChildren(this);\n }",
"protected StandardDrawingView createDrawingView() {\n return new StandardDrawingView(this, 410, 370);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.word_list, container, false);\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n\n view = inflater.inflate(LAYOUT, container, false);\n return view;\n }",
"private void setPopViewWithDefaultSize() {\n mScrollView = new MyScrollView(mContext);\n\n mPopViewHeight = mPopItemHeight * DEFAULT_CHILD_COUNT_IN_SCROLL_VIEW;\n mPopViewWidth = mPopItemZoomInWidth;\n mPopViewTopMargin = (int)(mPopItemHeight * (((float)DEFAULT_CHILD_COUNT_IN_SCROLL_VIEW - 1) / 2));\n mPopViewBottomMargin = mPopViewTopMargin;\n mPopItemDetailHeight = (int) (getContext().getResources().getDisplayMetrics().heightPixels * 0.4);\n mPopItemDetailWidth = mPopViewWidth;\n\n ViewGroup.LayoutParams viewGroupLayoutParams = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n setLayoutParams(viewGroupLayoutParams);\n\n LayoutParams layoutParams = new LayoutParams(mPopViewWidth, mPopViewHeight);\n\n layoutParams.addRule(CENTER_HORIZONTAL);\n mScrollView.setLayoutParams(layoutParams);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n context = getContext();\n View v = inflater.inflate(R.layout.fragment_news, container, false);\n\n RecyclerView rv_news = v.findViewById(R.id.rv_news);\n rv_news.setItemAnimator(new DefaultItemAnimator());\n rv_news.setLayoutManager(new GridLayoutManager(context, 2));\n adapter = new NewsAdapter(getActivity(), listNews);\n rv_news.setAdapter(adapter);\n loadManager = new LoadMoreScrollListener() {\n @Override\n public void onLoadMore() {\n loadNews(false);\n }\n };\n rv_news.addOnScrollListener(loadManager);\n\n loadNews(true);\n\n return v;\n }",
"private void initViews() {\n\t\tcommentListView = (ListView) findViewById(R.id.list_comment);\n\t\tprogressDialog = new ProgressDialog(AvCommentActivity.this);\n\t\tprogressDialog.setMessage(\"读取评论中\");\n\n\t\tcommentListView.setOnScrollListener(listScrollListener);\n\t\tfootView = LayoutInflater.from(this).inflate(R.layout.list_foot, null);\n\n\t\tcommentListView.addFooterView(footView, null, false);\n\n\t\tfootView.setVisibility(View.GONE);\n\n\t}",
"public MyScroller(Context context) {\n super(context, new DecelerateInterpolator());\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_new_orders, container, false);\n unbinder = ButterKnife.bind(this, view);\n\n initVerticalRecyclerView(recyclerView, deliveryOrderList);\n loadOrders();\n return view;\n }",
"public void initScrollpane()\r\n \t{\n \t\tthis.panel.setPreferredSize( new Dimension( this.map.rows() * 32, this.map.cols() * 32 ) );\r\n \t\t\r\n \t\tthis.scroll.setViewportView( this.panel );\r\n \t}",
"@Override\n public View initView() {\n View view = View.inflate(mContext, R.layout.tab_detail_pager, null);\n listview = (RefreshListView ) view.findViewById(R.id.listview);\n View topnewsView = View.inflate(mContext, R.layout.topnews, null);\n// 使用ButterKnife绑定XML文件\n //ButterKnife.bind(this, view);\n ButterKnife.bind(this, topnewsView);\n// 监听ViewPage页面的变化动态改变红点和标题\n viewpage.addOnPageChangeListener(new MyOnPageChangeListener());\n// 把顶部新闻模块以头的方式加载到ListView中\n// listview.addHeaderView(topnewsView);\n// ListView自定义方法\n listview.addTopNews(topnewsView);\n// 监听控件刷新\n listview.setOnRefreshListener(new MysetOnRefreshListener());\n// 设置单击监听\n listview.setOnItemClickListener(new MyOnItemClickListener());\n return view;\n }",
"public ScrollPane paneLetrasObtenidas(){ \n ScrollPane scrollp = new ScrollPane();\n VBox playerLetters= new VBox();\n for(Entry<String,Integer> s: letrasObtenidas.entrySet()){\n HBox box= new HBox();\n Label letter= new Label(s.getKey());\n Label num= new Label(Integer.toString(letrasObtenidas.get(s.getKey()))); \n letter.setFont(theFont);\n num.setFont(theFont);\n box.getChildren().addAll(letter,num);\n playerLetters.getChildren().add(box); \n box.setSpacing(100);\n } \n scrollp.setContent(playerLetters); \n scrollp.setPrefSize(300,180);\n scrollp.setLayoutX(100);\n scrollp.setFitToWidth(true);\n playerLetters.setSpacing(30);\n scrollp.setLayoutY(180); \n scrollp.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);\n scrollp.setVbarPolicy(ScrollPane.ScrollBarPolicy.ALWAYS);\n playerLetters.setPadding(new Insets(20)); \n return scrollp;\n \n }",
"protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tweets_list, container, false);\n\n // find the PullToRefreshLayout to setup\n ptrLayout = (PullToRefreshLayout) view.findViewById(R.id.ptrLayout);\n lvTweets = (ListView) view.findViewById(R.id.lvTweets);\n\n tweetAdapter = new TweetAdapter(getActivity(), new ArrayList<Tweet>());\n lvTweets.setAdapter(tweetAdapter);\n\n // Now setup the PullToRefreshLayout\n setupPullToRefresh();\n\n buildTimeline(NO_LAST_TWEET_ID, NO_SINCE_ID);\n\n lvTweets.setOnScrollListener(new EndlessScrollListener() {\n @Override\n public void onLoadMore(int page, int totalItemsCount) {\n onRequestMore();\n }\n });\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.chart,container,false);\n\n initView(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n View rootView = inflater.inflate(R.layout.fragment_japansquare, container, false);\n\n mContext = container.getContext();\n mActivity = (Activity) mContext;\n\n mPbLoading = (ProgressBar) rootView.findViewById(R.id.pbLoading);\n\n mLoLoadMore = (LinearLayout) rootView.findViewById(R.id.loLoadMore);\n ProgressBar pbLoadMore = (ProgressBar) rootView.findViewById(R.id.pbLoadMore);\n\n mArticles = new ArrayList<>();\n\n mListView = (ListView) rootView.findViewById(R.id.listView);\n mAdapter = new ArticleAdapter(mContext, mArticles, this);\n mListView.setAdapter(mAdapter);\n mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n onContentClick(position);\n }\n });\n mListView.setOnScrollListener(new EndlessScrollListener() {\n @Override\n public boolean onLoadMore(int page, int totalItemsCount) {\n //Log.e(TAG, \"onLoadMore().page: \" + page + \" / \" + mMaxPage);\n if (mMaxPage == 0 || mCurrentPage <= mMaxPage) {\n loadData(null, true);\n return true; // ONLY if more data is actually being loaded; false otherwise.\n } else {\n return false;\n }\n }\n });\n\n loadData(null, true);\n\n return rootView;\n }",
"private void createScene() \n {\n PlatformImpl.startup(\n new Runnable() {\n public void run() { \n Group root = new Group(); \n Scene scene = new Scene(root, 80, 20); \n SizeView sizeview = createSizeView(scene);\n root.getChildren().add(sizeview);\n jfxPanel.setScene(scene); \n } \n }); \n }",
"private void initialize() {\r\n\t\tSpringLayout springLayout = new SpringLayout();\r\n\t\tthis.setLayout(springLayout);\r\n\r\n\t\tcoi = new ContenedorOfertasInterno(gui);\r\n\r\n\t\tscrollPane = new JScrollPane(coi, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\r\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\tscrollPane.getVerticalScrollBar().setUI(new ThinSolidScrollBarUi(7));\r\n\t\tscrollPane.getVerticalScrollBar().setUnitIncrement(16);\r\n\t\tscrollPane.setPreferredSize(new Dimension(1006, 563));\r\n\t\tscrollPane.setBackground(Color.BLUE);\r\n\r\n\t\tthis.add(scrollPane);\r\n\t\tthis.setLayer(scrollPane, 1);\r\n\r\n\t}",
"@Override\n\t\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\t\tBundle savedInstanceState) {\n\t\t\t\tview=inflater.inflate(R.layout.firstpage, container, false);\n\n\t\t\t\tsc=(ScrollView) view.findViewById(R.id.scrollview);\n\t\t\t\tsc.setVerticalScrollBarEnabled(false);\n\t\t\t\tsp = getActivity().getSharedPreferences(\"SP\",0x0000);\n\t\t\t\tscrrenWidth=sp.getInt(\"ScrrenWidth\", 1080);\n\t\t\t\tscrrenHeight=sp.getInt(\"ScrrenHeight\", 1920);\n\t\t\t\trelativelayout=(RelativeLayout) view.findViewById(R.id.relativeLayout1);\n\n\t\t\t\tscrollnum=0;\n\n\t\t\t\ttvscroll1 = (TextView) view.findViewById(R.id.textview11);\n\t\t\t\ttvscroll2 = (TextView) view.findViewById(R.id.textview12);\n\t\t\t\ttvscroll3 = (TextView) view.findViewById(R.id.textview13);\n\t\t\t\ttvscroll4 = (TextView) view.findViewById(R.id.textview14);\n\t\t\t\ttvscroll5 = (TextView) view.findViewById(R.id.textview15);\n\n\t\t\t\ttv1=(TextView) view.findViewById(R.id.textView3);\n\t\t\t\ttv2=(TextView) view.findViewById(R.id.textView4);\n\t\t\t\tface= Typeface.createFromAsset (getActivity().getAssets() , \"fonts/fangz.ttf\"); \n\t\t\t\ttv1.setTypeface (face);\n\t\t\t\ttv2.setTypeface(face);\n\n\n\t\t\t\ttv3=(TextView) view.findViewById(R.id.textView5);\n\t\t\t\ttv4=(TextView) view.findViewById(R.id.textView6);\n\t\t\t\ttv5=(TextView) view.findViewById(R.id.textView7);\n\t\t\t\ttv6=(TextView) view.findViewById(R.id.textView8);\n\n\t\t\t\tcircleprogressbar=(CircleProgressBarView) view.findViewById(R.id.circleProgressBarView1);\n\t\t\t\tcircleprogressbar.setVisibility(View.VISIBLE);\n\t\t\t\tcircleprogressbar.setMax(100);\n\t\t\t\tcircleprogressbar.setProgress(0);\n\t\t\t\tcircleprogressbar.setScrrenwidth(scrrenWidth);\n\n\n\t\t\t\tbtn1=(Button) view.findViewById(R.id.button1);\n\t\t\t\tbtn1.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t//startActivity(new Intent(MainActivity.this,Buyactivity1.class));\n\t\t\t\t\t\tif(null == jobject8 || \"\".equals(jobject8) || \"{}\".equals(jobject8) || \"[]\".equals(jobject8)){ \n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\tif(sp.getBoolean(\"islogin\", false)){\n\t\t\t\t\t\t\tif(isconect){\n\t\t\t\t\t\t\t\tIntent intent=new Intent(getActivity(),Buyactivity1.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"productname\", productname);\n\t\t\t\t\t\t\t\tintent.putExtra(\"beginmoney\", beginmoney);\n\t\t\t\t\t\t\t\tintent.putExtra(\"shouxufei\", shouxufei);\n\t\t\t\t\t\t\t\tintent.putExtra(\"yuqishouyi\", yuqishouyi+\"%\");\n\t\t\t\t\t\t\t\tintent.putExtra(\"licaiqixian\", licaiqixian);\n\t\t\t\t\t\t\t\tintent.putExtra(\"yuqishouyichanshengshijian\", yuqishouyichanshengshijian);\n\t\t\t\t\t\t\t\tintent.putExtra(\"productid\", productid);\n\t\t\t\t\t\t\t\tintent.putExtra(\"fengxiandengji\", fengxiandengji);\n\t\t\t\t\t\t\t\tintent.putExtra(\"iscouldbuy\", iscouldbuy);\n\t\t\t\t\t\t\t\tintent.putExtra(\"explan\", explan);\n\t\t\t\t\t\t\t\tintent.putExtra(\"iscouldedit\", iscouldedit);\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t}else{}\n\n\n\t\t\t\t\t\t}else{\n\n\t\t\t\t\t\t\tstartActivity(new Intent(getActivity(),Loginactivity.class));\n\t\t\t\t\t\t}\n\n\n\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\trelativelayout.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t//Toast.makeText(getActivity(), \"321321321321\", 1000).show();\n\t\t\t\t\t\tIntent intent=new Intent(getActivity(),Productdetailactivity.class);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tintent.putExtra(\"productid\", jobject1.getString(\"Ipro_id\"));\n\t\t\t\t\t\t\tintent.putExtra(\"productname\", jobject1.getString(\"Ipro_name\"));\n\t\t\t\t\t\t\tintent.putExtra(\"buynum\",\"30天购买人数 \"+jobject1.getString(\"purchaseNum\"));\n\t\t\t\t\t\t\tintent.putExtra(\"day\", \"期限(天)\"+jobject1.getString(\"dayDiff\"));\n\t\t\t\t\t\t\tintent.putExtra(\"shouyi\", String.format(\"%.2f\", jobject1.getDouble(\"pctInterest\"))+\"%\");\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tread();\n\t\t\t\treturn view;\n\t\t\t}",
"private void initScrollPane() {\n\n MyScrollPane = new JScrollPane(MyTextArea);\n super.addCenter(MyScrollPane);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n \n return this.view;\n }",
"PdfViewerScrollBar(int orientation, PdfViewerController controller)\n {\n super(orientation);\n this.controller = controller;\n setUnitIncrement(UNIT_INCREMENT);\n setBlockIncrement(BLOCK_INCREMENT);\n scrollPosition = 0;\n close();\n }",
"private void setUpView(int width, int height){\n addKeyListener(new KeyPadListener());\n setFocusable(true);\n setLayout(null);\n setBounds(0,0,width,height);\n setBackground(new Color(0,0,0,0));\n requestFocus();\n addMouseListener(new MouseCatcher());\n }",
"public static View createDraggerView() {\n\n\t\tmViewContent = new ImageView(mContext);\n\t\tmViewContent.setImageDrawable(Util.makeCircle(mColor, mCircleDiameter));\n\n\t\trefreshScreenSize();\n\n\t\tmContentParamz = new WindowManager.LayoutParams(\n\t\t\tmCircleDiameter,\n\t\t\tmCircleDiameter,\n\t\t\tWindowManager.LayoutParams.TYPE_PHONE,\n\t\t\t0 | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN |\n\t\t\tWindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM |\n\t\t\tWindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |\n\t\t\tWindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL |\n\t\t\tWindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH,\n\t\t\tPixelFormat.TRANSLUCENT);\n\t\tmContentParamz.gravity = Gravity.TOP | Gravity.LEFT;\n\t\tUtil.addPrivateFlagNoMoveAnimationToLayoutParam(mContentParamz);\n\t\tmContentParamz.x = (mScreenWidth / 2) - (mCircleDiameter / 2);\n\t\tmContentParamz.y = (mScreenHeight / 2) - (mCircleDiameter / 2);\n\t\tmViewContent.setLayoutParams(mContentParamz);\n\t\treturn mViewContent;\n\t\t//return null;\n\t}",
"@Override\n\t\tpublic MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\t\t\tMyViewHolder holder = new MyViewHolder(mInflater.inflate(\n\t\t\t\t\tR.layout.hscroll_item, parent, false));\n\t\t\t\n\t\t\treturn holder;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View rootView = inflater.inflate(R.layout.poi_list, container, false);\n\n mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recycler_view);\n mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n poiListAdapter = new POIListAdapter(getActivity(), poiCursor);\n mRecyclerView.setAdapter(poiListAdapter);\n mRecyclerView.setHasFixedSize(false);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.book_list, container, false);\n\n /** RETURN THE VIEW INSTANCE TO SETUP THE LAYOUT **/\n return view;\n }",
"public IPPane() {\n\t\tsuper(new BorderLayout());\n\t\tfont = new Font(\"Monospaced\", Font.PLAIN, 12);\n\t\theader = new Header();\n\t\tthis.add(header,BorderLayout.NORTH);\n\t\tscroller = new JScrollPane();\n\t\teditor = new ScrollableEditorPane(\"text/plain\",\"\");\n\t\tscroller.setViewportView(editor);\n\t\tthis.add(scroller,BorderLayout.CENTER);\n\t\teditor.setFont(font);\n\t}",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.live_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View layout = inflater.inflate(R.layout.custom_row, container, false);\n recyclerView = (RecyclerView) layout.findViewById(R.id.rv);\n adapter = new WebCrawlerRecyclerViewAdapter(getActivity(), getData());\n recyclerView.setAdapter(adapter);\n LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerView.setLayoutManager(layoutManager);\n return layout;\n\n }",
"public ScrollableZoomableImageView(Context context) {\n super(context);\n sharedConstructing(context);\n }",
"private void InitView() {\n\t\tmLinearLayout = new LinearLayout(getContext());\n\t\t//mLinearLayout.setBackgroundResource(MusicApplication.getInstance().getBgResource());\n\t\t\n\t\t//Modify by LiYongNam 2012.9.19_start\n\t\tMusicUtil.setBackgroundOfView ( mLinearLayout, getContext() );\t\t\t\t\n\t\t//Modify by LiYongNam 2012.9.19_end\n\t\t\n\t\tmLinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLinearLayout.setPadding(1, 1, 1, Util.dipTopx(getContext(), 60));\n\t\t// 导航条\n\t\taddTitleBar(-1, \"编辑列表\", R.drawable.check_off, R.drawable.title_bar);\n\n\t\tmControlBar = new ControlBar(getContext());\n\t\tmControlBar.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tUtil.dipTopx(getContext(), 60)));\n\n//\t\taddControlButton(\"全选\", CONTROL1, 0);\n\t\taddControlButton(\"播放\", CONTROL2, 1);\n\t\taddControlButton(\"加入\", CONTROL3, 2);\n\t\taddControlButton(\"删除\", CONTROL4, 3);\n\n\t}"
] | [
"0.73595184",
"0.627676",
"0.62667745",
"0.6247337",
"0.61831164",
"0.61147624",
"0.602588",
"0.58194923",
"0.57724714",
"0.5756379",
"0.57239056",
"0.5690682",
"0.56452465",
"0.5632766",
"0.5602254",
"0.55775154",
"0.55688924",
"0.5547533",
"0.5538483",
"0.5509755",
"0.549505",
"0.54920584",
"0.5491472",
"0.54897195",
"0.5484622",
"0.5450115",
"0.5399661",
"0.53827477",
"0.5358502",
"0.5356046",
"0.5353595",
"0.530745",
"0.5299203",
"0.5297973",
"0.52805996",
"0.5259012",
"0.5255786",
"0.525051",
"0.5245969",
"0.5245238",
"0.5234438",
"0.52188796",
"0.521611",
"0.52118134",
"0.5161527",
"0.5160037",
"0.5155516",
"0.5145728",
"0.5145306",
"0.5140555",
"0.51377124",
"0.51376694",
"0.5127185",
"0.5124242",
"0.5113859",
"0.5100387",
"0.50993985",
"0.5094893",
"0.5094452",
"0.5094298",
"0.5085733",
"0.50766534",
"0.5068643",
"0.5050733",
"0.50456995",
"0.5045612",
"0.50278586",
"0.50163305",
"0.5011042",
"0.49939084",
"0.4990381",
"0.4988318",
"0.49845734",
"0.49833167",
"0.4981713",
"0.49764395",
"0.49576005",
"0.4954883",
"0.49541417",
"0.49532282",
"0.49507365",
"0.4948149",
"0.49433163",
"0.49351397",
"0.49324775",
"0.4931993",
"0.49233547",
"0.4917877",
"0.49154797",
"0.4907709",
"0.49076298",
"0.4905712",
"0.48976323",
"0.48865804",
"0.48737964",
"0.48732808",
"0.48711932",
"0.48677984",
"0.4867088",
"0.48660168"
] | 0.7501853 | 0 |
Creates a new ScrollView. | public ScrollView(View aView) { this(); setContent(aView); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ScrollView()\n {\n // Configure ScrollView\n setBorder(SCROLL_VIEW_BORDER);\n\n // Create Scroller and add listeners for scroll changes\n _scroller = new Scroller();\n _scroller.addPropChangeListener(pc -> scrollerDidPropChange(pc), Width_Prop, Height_Prop,\n Scroller.ScrollX_Prop, Scroller.ScrollY_Prop, Scroller.ScrollWidth_Prop, Scroller.ScrollHeight_Prop);\n addChild(_scroller);\n }",
"private void createScrollPane() {\n\n\t\t// --------------------------------------------\n\t\t// first create the client\n\t\t// --------------------------------------------\n\t\tclient = new Client(this);\n//\t\tclient.setTransferHandler(PM_TransferHandler.getInstance());\n\t\tfocusPanel = new PM_FocusPanel(null, this, this);\n\n\t\tif (config.isNurLesen()) {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_NUR_LESEN);\n\t\t} else {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_BACKGROUND);\n\t\t}\n\t\tclient.setLayout(null); // I do it myself\n\n\t\tclient.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t// System.out.println(\"Inndex View: mouseClicked: requestFocusInWindow aufrufen\");\n\t\t\t\trequestFocusInWindow();\n\t\t\t}\n\t\t});\n\n\t\t// ------------------------------------------\n\t\t// now the scrollpane\n\t\t// ------------------------------------------\n\t\tscrollPane = new JScrollPane(client);\n\t\tindexViewPort = scrollPane.getViewport();\n\n\t\tscrollPane.setWheelScrollingEnabled(false);\n\n\t\t//\t\t \n\t\tscrollPane\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t// Achtung: VERTICAL_SCROLLBAR_ALWAYS, da sonst unterschiedliche\n\t\t// ExtendSize und\n\t\t// damit funktioniert der stateChanged nicht mehr.\n\t\tscrollPane\n\t\t\t\t.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// ----------------------------------------------------------------------\n\t\t// MouseWheelListener\n\t\t// ----------------------------------------------------------------------\n\t\tMouseWheelListener mwl = new MouseWheelListener() {\n\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent me) {\n\t\t\t\tmouseWheelChanged(me);\n\t\t\t}\n\t\t};\n\t\tscrollPane.addMouseWheelListener(mwl);\n\n\t\t// ----------------------------------------------------------------------\n\t\t// ChangeListener\n\t\t// ----------------------------------------------------------------------\n\t\tChangeListener cl = new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent ce) {\n\t\t\t\t// viewPortSizeChanged(ce);\n\t\t\t}\n\t\t};\n\t\tscrollPane.getViewport().addChangeListener(cl);\n\n\t\t// addComponentListener\n\t\tscrollPane.getViewport().addComponentListener(new ComponentAdapter() {\n\t\t\t@Override\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tviewPortChanged(e);\n\t\t\t}\n\t\t});\n\n\t\t// addAdjustmentListener(AdjustmentListener l)\n\t\t// Scrollbar AdjustmentListener\n\t\tJScrollBar sb = scrollPane.getVerticalScrollBar();\n\t\tsb.addAdjustmentListener(new AdjustmentListener() {\n\n\t\t\t \n\t\t\tpublic void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\tverticalScrollBarChanged(e);\n\n\t\t\t}\n\n\t\t});\n\n\t\t// oldViewPortSize = indexViewPort.getExtentSize();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t{\n\t\t\n\t\tif(null == this.view){\n\t\t\tthis.view = (View)inflater.inflate(R.layout.comp, container, false);\n\t\t\tthis.scrollView = (ScrollView)this.view.findViewById(R.id.scroll);\n\t\t\n\t\t\t// --> \n\t\t\tMarginLayoutParams p = (MarginLayoutParams)this.scrollView.getLayoutParams();\n\t\t\tp.leftMargin = -8; \n\t\t\tp.rightMargin = -8; \n\t\t\tp.topMargin = 0; \n\t\t\tp.bottomMargin = 0;\n\t\t\tthis.scrollView.setLayoutParams(p);\n\t\t\t// -->\n\t\t\t/*\n\t\t\tRelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams)this.scrollView.getLayoutParams();\n\t\t\tlp.setMargins(100, 100, 100, 200);\n\t\t\tthis.scrollView.setLayoutParams(lp);\t\n\t\t\t*/\n\t\t\t// -->\n\n\t\t\tthis.scrollView.getViewTreeObserver().addOnScrollChangedListener(new OnScrollChangedListener(){\n\t\t\t\t@Override public void onScrollChanged(){\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\telse{\n\t\t\t// ((ViewGroup)this.view.getParent()).removeView(this.view);\n\t\t\t((ViewGroup)this.view.getParent()).removeAllViews();\n\t\t}\n\t\n\t\tthis.addComp(this.key, (DynView)this.adapter.getComp(this.key));\n\t\treturn this.view;\n\t}",
"@Override\n\tpublic ScrollBar createScrollBar() {\n\t\tLightVisualThemeScrollBar lightVisualThemeScrollBar = new LightVisualThemeScrollBar();\n\t\treturn lightVisualThemeScrollBar;\n\t}",
"public static JScrollPane createLazyScrollPaneFor(Component view) {\r\n LazyViewport vp = new LazyViewport();\r\n vp.setView(view);\r\n JScrollPane scrollpane = new JScrollPane();\r\n scrollpane.setViewport(vp);\r\n return scrollpane;\r\n }",
"ViewContainer createViewContainer();",
"private android.view.View makeChannelsAndInfoScroller()\n\t{\n\t\t{\n\t\t\tchannelsAndInfoScroller = new ScrollView(getContext());\n\t\t\tchannelsAndInfoScroller.addView(makeChannelsAndInfo());\n\t\t}\n\t\treturn channelsAndInfoScroller;\n\t}",
"private JScrollPane makeScrollPane() {\n textPane = new JTextPane();\n textPane.setCaretPosition(0);\n textPane.setMargin(new Insets(5, 5, 5, 5));\n StyledDocument styledDoc = textPane.getStyledDocument();\n if (styledDoc instanceof AbstractDocument) {\n doc = (AbstractDocument) styledDoc;\n doc.setDocumentFilter(new ColorFilter());\n } else {\n System.err.println(\"Text pane's document isn't an AbstractDocument!\");\n System.exit(-1);\n }\n JScrollPane jsp = new JScrollPane(textPane);\n tln = new TextLineNumber(textPane, name);\n jsp.setRowHeaderView(tln);\n return jsp;\n }",
"public JScrollBar createVerticalScrollBar() {\n/* 873 */ return new ScrollBar(1);\n/* */ }",
"View createView();",
"private JPanel createScrollPaneProducts() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Products List: \", TitledBorder.LEFT, TitledBorder.TOP));\n\n this.productsList = this.demonstrationApplicationController.getProductsList();\n this.jListProduct = new JList(new ModelListSelectable(this.productsList));\n JScrollPane scrollPane = new JScrollPane(jListProduct);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }",
"private void createAndInitScrollingImage() {\r\n\t\tif (this.scrollPane != null) {\r\n\t\t\tthis.pictureFrame.getContentPane().remove(this.scrollPane);\r\n\r\n }\r\n\r\n\t\tthis.scrollPane = new JScrollPane();\r\n\t\tthis.pictureFrame.getContentPane().add(this.scrollPane, BorderLayout.CENTER);\r\n\t\tthis.pictureFrame.validate();\r\n\t}",
"public void createScrollPanel(JPanel panel) {\n scrollPanel = new JScrollPane(panel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n scrollPanel.setPreferredSize(new Dimension(710, 600));\n }",
"public VerticalScrollbar() {}",
"public void setupScrollViewAdapter(){\n scrollViewAdapter = new ArrayAdapter<Integer>(this, android.R.layout.simple_list_item_1, currentNotifications);\n notifcationIdView.setAdapter(scrollViewAdapter);\n }",
"protected JViewport createViewport() {\n/* 927 */ return new JViewport();\n/* */ }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (rootView==null) {\n rootView = inflater.inflate(R.layout.fragment_about_scrolls, container, false);\n web_view = (WebView) rootView.findViewById(R.id.about_scrolls_web_view);\n final WebSettings webSettings = web_view.getSettings();\n webSettings.setJavaScriptEnabled(true);\n web_view.setWebViewClient(new myWebClient());\n web_view.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n //Blank listener to disable long click text selection\n return true;\n }\n });\n web_view.setWebViewClient(new WebViewClient() {\n\n @Override\n public void onPageFinished(final WebView view, final String url) {\n super.onPageFinished(view, url);\n web_view.invalidate();\n }\n });\n }\n return rootView;\n }",
"public HistoryView() {\n\t\tthis.history = new JPanel();\n\t\tthis.history.setBackground(BackGroundColor.color);\n\t\tthis.history.setLayout(new BoxLayout(this.history, 3));\n\t\tthis.tp = new JScrollPane(22, 31);\n\t\tthis.tp.setViewportView(this.history);\n\t\tthis.tp.getVerticalScrollBar().setUnitIncrement(20);\n\t\tthis.tp.getVerticalScrollBar().addAdjustmentListener(this);\n\t\tthis.component = tp;\n\t\t//this.observer = observer;\n\t}",
"public SpringScrollView(Context context) {\n this(context, null);\n }",
"public JScrollBar createHorizontalScrollBar() {\n/* 814 */ return new ScrollBar(0);\n/* */ }",
"public WordScrollPane() {\n scrollPane = new JScrollPane();\n }",
"private void initView(View view) {\n\t\tif (imageView == null) {\n\t\t\timageView = new MyImageView(getActivity());\n\t\t\tscrollView = (MyScrollView) view.findViewById(R.id.my_scroll_view);\n\t\t}\n\t}",
"public void addview(View2 view2) {\n scrollPane = new JScrollPane(view2);\n scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n //Add the scroll pane to this panel.\n this.add(scrollPane);\n\t\t//this.add(view2);\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n mContext = this;\n setContentView(R.layout.main);\n mScrollLayout = (ScrollLayout) findViewById(R.id.ScrollLayoutTest);\n initViews();\n }",
"private JPanel createScrollPaneKeyWords() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Keywords List \", TitledBorder.LEFT, TitledBorder.TOP));\n\n this.keywordList = demonstrationApplicationController.getKeywordsList();\n this.jListKeyword = new JList(new ModelListSelectable(keywordList));\n\n JScrollPane scrollPane = new JScrollPane(jListKeyword);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }",
"private ObservableHorizontalScrollView makeShowInfoScroller()\n\t{\n\t\tshowsView = new ObservableHorizontalScrollView(getContext());\n\t\tshowsView.addListener(this);\n\t\tshowsView.setOnTouchListener(this);\n\n\t\tshowsView.addView(makeShowInfoHorizontalLayout());\n\t\treturn showsView;\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.pull_to_refresh_scrollview);\r\n\t\tinflater = LayoutInflater.from(this);\r\n\t\tmPullRefreshScrollView = (PullToRefreshScrollView) findViewById(R.id.pull_refresh_scrollview);\r\n\t\tmScrollView = mPullRefreshScrollView.getRefreshableView();\r\n\t\tView view = inflater.inflate(R.layout.text, null);\r\n\t\tmScrollView.addView(view);\r\n\t\t\r\n\t\tmScrollView.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t}",
"public void addContent() {\n ScrollPane mySP = new ScrollPane();\n myContent = new SaveForm(myManager);\n mySP.setContent(myContent);\n mySP.setPrefSize(size, size);\n myRoot.getChildren().add(mySP);\n }",
"private Pane initLogWindow()\n {\n listViewMessage = new ListView<String>();\n listViewMessage.setMaxSize(470,300);\n listViewMessage.setItems(listViewMessageItems);\n\n VBox log_window = new VBox();\n Label lbLog = new Label(\"Log window\");\n lbLog.setPadding(new Insets(5,5,5,5));\n log_window.getChildren().addAll(lbLog, listViewMessage);\n log_window.setPadding(new Insets(50, 50, 50, 50));\n log_window.setAlignment(Pos.CENTER);\n\n return log_window;\n }",
"public AutoScrollPane() {\n this(null);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n\n mScrollView = (ScrollView) findViewById(R.id.scroll_view);\n mScrollContent = (ViewGroup) findViewById(R.id.content);\n\n mPager = new ScrollViewPager(mScrollView, mScrollContent);\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_test);\r\n\t\tPullToRefreshScrollView pullToRefreshScrollView=(PullToRefreshScrollView) findViewById(R.id.test);\r\n\t\tScrollView scrollView=pullToRefreshScrollView.getRefreshableView();\r\n\t\t\r\n\t\tView v=getLayoutInflater().inflate(R.layout.commodities_layout, null);\r\n\t\tscrollView.addView(v);\r\n\t\t\r\n\t}",
"@SuppressWarnings({\"deprecation\", \"rawtypes\", \"unchecked\"})\n public static javafx.scene.control.AccordionBuilder<?> create() {\n return new javafx.scene.control.AccordionBuilder();\n }",
"@CallSuper\n protected View createContentView() {\n mPager = new ViewPager2(this);\n\n // Disable swipe gesture.\n mPager.setUserInputEnabled(false);\n\n mPager.setId(R.id.fre_pager);\n mPager.setOffscreenPageLimit(3);\n return mPager;\n }",
"public void makeScrollable() {\n if (touchScrollHandler == null) {\n touchScrollHandler = TouchScrollDelegate.enableTouchScrolling(this);\n }\n touchScrollHandler.addElement(contentNode);\n }",
"private JPanel buildContentPane(){\t\n\t\tinitialiseElements();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout());\n\t\tpanel.setBackground(Color.lightGray);\n\t\tpanel.add(scroll);\n\t\tpanel.add(bouton);\n\t\tpanel.add(bouton2);\n\t\treturn panel;\n\t}",
"public void addGuest(View aChild, int anIndex) { _scroller.addGuest(aChild, anIndex); }",
"public KScrollTextArea() {\n\n super();\n \n MyTextArea = new KTextArea();\n this.initScrollPane();\n\n }",
"public void configureGallery(T aView)\n {\n aView.setPrefSize(140,40); aView.setFont(Font.Arial10);\n aView.setShowVBar(true); aView.setShowHBar(true); aView.setBarSize(10);\n Label label = new Label(\"ScrollView\"); label.setPadding(8,35,8,45); label.setTextFill(Color.GRAY);\n label.setAlign(Pos.TOP_LEFT);\n aView.setContent(label); label.setFill(Color.WHITE); label.setMinSize(600,600);\n }",
"private void refreshView(){\n\t\tMain.scroll.setViewportView(container);\n\t\t// setez scrollul jos\n\t\tMain.scroll.getVerticalScrollBar().setValue(Main.scroll.getVerticalScrollBar().getMaximum());\n\t}",
"@Nullable\n @Override\n @CallSuper\n public View onCreateView(@NonNull final LayoutInflater inflater, @Nullable final ViewGroup container, @Nullable final Bundle savedInstanceState) {\n View view = getView();\n if (view == null) {\n view = inflater.inflate(getContentLayout(), container, false);\n }\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public void Create() {\n\n initView();\n }",
"public void createViews(){\n ArrayList<Words> wordsArrayList = new ArrayList<Words>();\n\n //Fill array with english word and hindi translation by creating new word objects\n for(int i = 0; i < defaultWords.size() && i < hindiTranslation.size(); i++){\n wordsArrayList.add(new Words(defaultWords.get(i), hindiTranslation.get(i)));\n }\n\n //ArrayAdapter and ListView used so that not a lot of memory is used to create all textviews when not needed\n //Update** Using WordAdapter which extends ArrayAdapter and only has 2 parameters\n\n WordAdapter adapter = new WordAdapter(this, wordsArrayList);\n\n ListView listView = (ListView) findViewById(R.id.translation_root_view);\n\n listView.setAdapter(adapter);\n\n\n }",
"public static ComponentUI createUI(JComponent c) { \n return new UIScrollBar(); \n }",
"private void createDrawingView() {\r\n mDrawingView = new DrawingView(mContext);\r\n LinearLayout mDrawingPad = (LinearLayout) findViewById(R.id.drawing_pad);\r\n mDrawingPad.addView(mDrawingView);\r\n }",
"ViewElement createViewElement();",
"public JScrollPane() {\n/* 351 */ this((Component)null, 20, 30);\n/* */ }",
"public PetitionViewScreen() {\n initComponents();\n thisObj = this;\n commentScrollPane.getVerticalScrollBar().setValue(0);\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tmContext = getActivity();\n\t\tll = new LinearLayout(getActivity());\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n\t\t\t\tLinearLayout.LayoutParams.FILL_PARENT,\n\t\t\t\tLinearLayout.LayoutParams.FILL_PARENT);\n\t\tthis.getActivity().addContentView(ll, params);\n\t}",
"public void initView() {\n setEllipsize(TruncateAt.MARQUEE);\n setSingleLine(true);\n setMarqueeRepeatLimit(-1);\n setFocusable(true);\n setFocusableInTouchMode(false);\n }",
"ViewComponent createViewComponent();",
"private JScrollPane createTreeScrollPanel() {\n for (Map.Entry<VirtualFile, VcsRoot> entry : files.entrySet()) {\n createDirectoryNodes(entry.getKey(), entry.getValue());\n }\n\n final FileTreeRenderer renderer = new FileTreeRenderer();\n\n tree = new CheckboxTree(renderer, root);\n tree.setCellRenderer(renderer);\n tree.setRootVisible(true);\n tree.setShowsRootHandles(false);\n UIUtil.setLineStyleAngled(tree);\n TreeUtil.installActions(tree);\n\n final JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(tree);\n scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n TreeUtil.expandAll(tree);\n\n tree.getModel().addTreeModelListener(treeModelListener);\n treeExpander = new DefaultTreeExpander(tree);\n\n return scrollPane;\n }",
"public static WaitTitledPane create() {\n WaitTitledPane newContent = new WaitTitledPane();\n try {\n ViewControllerLoader.initializeCustomControl(newContent);\n } catch (IOException ex) {\n throw new InternalError(\"Error loading view\", ex);\n }\n return newContent;\n }",
"private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Nullable\n public View onCreateView(LayoutInflater inflater,\n @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n if (null == view) {\n myContainer = new LinearLayout(mContext);\n view = inflater.inflate(R.layout.listitem_banner, null);\n view.setMinimumHeight(((WindowManager) getActivity()\n .getSystemService(Context.WINDOW_SERVICE))\n .getDefaultDisplay().getHeight());\n view.setMinimumWidth(((WindowManager) getActivity()\n .getSystemService(Context.WINDOW_SERVICE))\n .getDefaultDisplay().getWidth());\n initData();\n myContainer.addView(view);\n } else {\n myContainer.removeAllViews();\n myContainer = new LinearLayout(getActivity());\n myContainer.addView(view);\n }\n return myContainer;\n }",
"public WebPlotView() {\n initWidgets();\n _scrollingRootPanel.addDomHandler(new MouseDownHandler() {\n public void onMouseDown(MouseDownEvent ev) {\n if (_mpw != null) _mpw.selectSelf();\n }\n }, MouseDownEvent.getType());\n\n _scrollingRootPanel.addDomHandler(new TouchStartHandler() {\n public void onTouchStart(TouchStartEvent event) {\n if (_mpw != null) _mpw.selectSelf();\n }\n }, TouchStartEvent.getType());\n\n }",
"private JPanel createScrollPaneDemonstrations() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Select the desired demonstrations:\", TitledBorder.LEFT, TitledBorder.TOP));\n modelDemonstration = new ModelTableDemonstrationsList(demonstrationsList);\n demonstrationsListJTable = new JTable(modelDemonstration);\n demonstrationsListJTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n demonstrationsListJTable.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n //demonstrationApplicationController.newDemonstrationApplication(((Demonstration)modelDemonstration.getValueAt(demonstrationsListJTable.getSelectedRow(), demonstrationsListJTable.getSelectedColumn())));\n }\n });\n\n JScrollPane scrollPane = new JScrollPane(demonstrationsListJTable);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.setMinimumSize(scrollPane.getMinimumSize());\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }",
"private void setupScrollViews() {\n parent = findViewById(R.id.parent_scroll_view);\n child = findViewById(R.id.child_scroll_view1);\n\n parent.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n Log.v(\"TAG\", \"PARENT_TOUCH\");\n parent.requestDisallowInterceptTouchEvent(false);\n return false;\n }\n });\n\n child.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n Log.v(\"TAG\", \"CHILD_DESCRIPTION\");\n parent.requestDisallowInterceptTouchEvent(true);\n return false;\n }\n });\n }",
"private org.gwtproject.user.client.ui.ScrollPanel get_f_ScrollPanel1() {\n return build_f_ScrollPanel1();\n }",
"public ScrollBar getVBar()\n {\n if (_vbar!=null) return _vbar;\n _vbar = new ScrollBar(); _vbar.setVertical(true);\n _vbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _vbar;\n }",
"private JScrollPane getTestAreaScrollPane() {\r\n\t\tif (testAreaScrollPane == null) {\r\n\t\t\ttry {\r\n\t\t\t\ttestAreaScrollPane = new JScrollPane();\r\n\t\t\t\ttestAreaScrollPane.setVisible(false);\r\n\t\t\t\ttestAreaScrollPane.setViewportView(getDetailsTextArea());\r\n\t\t\t} catch (java.lang.Throwable e) {\r\n\t\t\t\t// TODO: Something\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn testAreaScrollPane;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.layout_detail, container, false);\n ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"private void doBuildScroller() {\r\n\t\t\r\n\t}",
"private void createNewWebView()\n {\n //Remove the webView from it's parent if the webView exists\n if(webView != null) {\n ViewGroup parent = (ViewGroup) webView.getParent();\n parent.removeView(webView);\n }\n\n //Create a new WebView\n webView = new WebView(getContext());\n webView.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n\n //Add the new WebView to the webViewContainer\n webViewContainer.addView(webView);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater,\n @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n mRootView = inflater.inflate(getLayoutId(), null);\n x.view().inject(this, mRootView);\n return mRootView;\n }",
"GapBoxViewChildren createChildren() {\n return new GapBoxViewChildren(this);\n }",
"protected StandardDrawingView createDrawingView() {\n return new StandardDrawingView(this, 410, 370);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.word_list, container, false);\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n\n view = inflater.inflate(LAYOUT, container, false);\n return view;\n }",
"private void setPopViewWithDefaultSize() {\n mScrollView = new MyScrollView(mContext);\n\n mPopViewHeight = mPopItemHeight * DEFAULT_CHILD_COUNT_IN_SCROLL_VIEW;\n mPopViewWidth = mPopItemZoomInWidth;\n mPopViewTopMargin = (int)(mPopItemHeight * (((float)DEFAULT_CHILD_COUNT_IN_SCROLL_VIEW - 1) / 2));\n mPopViewBottomMargin = mPopViewTopMargin;\n mPopItemDetailHeight = (int) (getContext().getResources().getDisplayMetrics().heightPixels * 0.4);\n mPopItemDetailWidth = mPopViewWidth;\n\n ViewGroup.LayoutParams viewGroupLayoutParams = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n setLayoutParams(viewGroupLayoutParams);\n\n LayoutParams layoutParams = new LayoutParams(mPopViewWidth, mPopViewHeight);\n\n layoutParams.addRule(CENTER_HORIZONTAL);\n mScrollView.setLayoutParams(layoutParams);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n context = getContext();\n View v = inflater.inflate(R.layout.fragment_news, container, false);\n\n RecyclerView rv_news = v.findViewById(R.id.rv_news);\n rv_news.setItemAnimator(new DefaultItemAnimator());\n rv_news.setLayoutManager(new GridLayoutManager(context, 2));\n adapter = new NewsAdapter(getActivity(), listNews);\n rv_news.setAdapter(adapter);\n loadManager = new LoadMoreScrollListener() {\n @Override\n public void onLoadMore() {\n loadNews(false);\n }\n };\n rv_news.addOnScrollListener(loadManager);\n\n loadNews(true);\n\n return v;\n }",
"private void initViews() {\n\t\tcommentListView = (ListView) findViewById(R.id.list_comment);\n\t\tprogressDialog = new ProgressDialog(AvCommentActivity.this);\n\t\tprogressDialog.setMessage(\"读取评论中\");\n\n\t\tcommentListView.setOnScrollListener(listScrollListener);\n\t\tfootView = LayoutInflater.from(this).inflate(R.layout.list_foot, null);\n\n\t\tcommentListView.addFooterView(footView, null, false);\n\n\t\tfootView.setVisibility(View.GONE);\n\n\t}",
"public MyScroller(Context context) {\n super(context, new DecelerateInterpolator());\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_new_orders, container, false);\n unbinder = ButterKnife.bind(this, view);\n\n initVerticalRecyclerView(recyclerView, deliveryOrderList);\n loadOrders();\n return view;\n }",
"public void initScrollpane()\r\n \t{\n \t\tthis.panel.setPreferredSize( new Dimension( this.map.rows() * 32, this.map.cols() * 32 ) );\r\n \t\t\r\n \t\tthis.scroll.setViewportView( this.panel );\r\n \t}",
"@Override\n public View initView() {\n View view = View.inflate(mContext, R.layout.tab_detail_pager, null);\n listview = (RefreshListView ) view.findViewById(R.id.listview);\n View topnewsView = View.inflate(mContext, R.layout.topnews, null);\n// 使用ButterKnife绑定XML文件\n //ButterKnife.bind(this, view);\n ButterKnife.bind(this, topnewsView);\n// 监听ViewPage页面的变化动态改变红点和标题\n viewpage.addOnPageChangeListener(new MyOnPageChangeListener());\n// 把顶部新闻模块以头的方式加载到ListView中\n// listview.addHeaderView(topnewsView);\n// ListView自定义方法\n listview.addTopNews(topnewsView);\n// 监听控件刷新\n listview.setOnRefreshListener(new MysetOnRefreshListener());\n// 设置单击监听\n listview.setOnItemClickListener(new MyOnItemClickListener());\n return view;\n }",
"public ScrollPane paneLetrasObtenidas(){ \n ScrollPane scrollp = new ScrollPane();\n VBox playerLetters= new VBox();\n for(Entry<String,Integer> s: letrasObtenidas.entrySet()){\n HBox box= new HBox();\n Label letter= new Label(s.getKey());\n Label num= new Label(Integer.toString(letrasObtenidas.get(s.getKey()))); \n letter.setFont(theFont);\n num.setFont(theFont);\n box.getChildren().addAll(letter,num);\n playerLetters.getChildren().add(box); \n box.setSpacing(100);\n } \n scrollp.setContent(playerLetters); \n scrollp.setPrefSize(300,180);\n scrollp.setLayoutX(100);\n scrollp.setFitToWidth(true);\n playerLetters.setSpacing(30);\n scrollp.setLayoutY(180); \n scrollp.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);\n scrollp.setVbarPolicy(ScrollPane.ScrollBarPolicy.ALWAYS);\n playerLetters.setPadding(new Insets(20)); \n return scrollp;\n \n }",
"protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tweets_list, container, false);\n\n // find the PullToRefreshLayout to setup\n ptrLayout = (PullToRefreshLayout) view.findViewById(R.id.ptrLayout);\n lvTweets = (ListView) view.findViewById(R.id.lvTweets);\n\n tweetAdapter = new TweetAdapter(getActivity(), new ArrayList<Tweet>());\n lvTweets.setAdapter(tweetAdapter);\n\n // Now setup the PullToRefreshLayout\n setupPullToRefresh();\n\n buildTimeline(NO_LAST_TWEET_ID, NO_SINCE_ID);\n\n lvTweets.setOnScrollListener(new EndlessScrollListener() {\n @Override\n public void onLoadMore(int page, int totalItemsCount) {\n onRequestMore();\n }\n });\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.chart,container,false);\n\n initView(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n View rootView = inflater.inflate(R.layout.fragment_japansquare, container, false);\n\n mContext = container.getContext();\n mActivity = (Activity) mContext;\n\n mPbLoading = (ProgressBar) rootView.findViewById(R.id.pbLoading);\n\n mLoLoadMore = (LinearLayout) rootView.findViewById(R.id.loLoadMore);\n ProgressBar pbLoadMore = (ProgressBar) rootView.findViewById(R.id.pbLoadMore);\n\n mArticles = new ArrayList<>();\n\n mListView = (ListView) rootView.findViewById(R.id.listView);\n mAdapter = new ArticleAdapter(mContext, mArticles, this);\n mListView.setAdapter(mAdapter);\n mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n onContentClick(position);\n }\n });\n mListView.setOnScrollListener(new EndlessScrollListener() {\n @Override\n public boolean onLoadMore(int page, int totalItemsCount) {\n //Log.e(TAG, \"onLoadMore().page: \" + page + \" / \" + mMaxPage);\n if (mMaxPage == 0 || mCurrentPage <= mMaxPage) {\n loadData(null, true);\n return true; // ONLY if more data is actually being loaded; false otherwise.\n } else {\n return false;\n }\n }\n });\n\n loadData(null, true);\n\n return rootView;\n }",
"private void createScene() \n {\n PlatformImpl.startup(\n new Runnable() {\n public void run() { \n Group root = new Group(); \n Scene scene = new Scene(root, 80, 20); \n SizeView sizeview = createSizeView(scene);\n root.getChildren().add(sizeview);\n jfxPanel.setScene(scene); \n } \n }); \n }",
"private void initialize() {\r\n\t\tSpringLayout springLayout = new SpringLayout();\r\n\t\tthis.setLayout(springLayout);\r\n\r\n\t\tcoi = new ContenedorOfertasInterno(gui);\r\n\r\n\t\tscrollPane = new JScrollPane(coi, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\r\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\tscrollPane.getVerticalScrollBar().setUI(new ThinSolidScrollBarUi(7));\r\n\t\tscrollPane.getVerticalScrollBar().setUnitIncrement(16);\r\n\t\tscrollPane.setPreferredSize(new Dimension(1006, 563));\r\n\t\tscrollPane.setBackground(Color.BLUE);\r\n\r\n\t\tthis.add(scrollPane);\r\n\t\tthis.setLayer(scrollPane, 1);\r\n\r\n\t}",
"@Override\n\t\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\t\tBundle savedInstanceState) {\n\t\t\t\tview=inflater.inflate(R.layout.firstpage, container, false);\n\n\t\t\t\tsc=(ScrollView) view.findViewById(R.id.scrollview);\n\t\t\t\tsc.setVerticalScrollBarEnabled(false);\n\t\t\t\tsp = getActivity().getSharedPreferences(\"SP\",0x0000);\n\t\t\t\tscrrenWidth=sp.getInt(\"ScrrenWidth\", 1080);\n\t\t\t\tscrrenHeight=sp.getInt(\"ScrrenHeight\", 1920);\n\t\t\t\trelativelayout=(RelativeLayout) view.findViewById(R.id.relativeLayout1);\n\n\t\t\t\tscrollnum=0;\n\n\t\t\t\ttvscroll1 = (TextView) view.findViewById(R.id.textview11);\n\t\t\t\ttvscroll2 = (TextView) view.findViewById(R.id.textview12);\n\t\t\t\ttvscroll3 = (TextView) view.findViewById(R.id.textview13);\n\t\t\t\ttvscroll4 = (TextView) view.findViewById(R.id.textview14);\n\t\t\t\ttvscroll5 = (TextView) view.findViewById(R.id.textview15);\n\n\t\t\t\ttv1=(TextView) view.findViewById(R.id.textView3);\n\t\t\t\ttv2=(TextView) view.findViewById(R.id.textView4);\n\t\t\t\tface= Typeface.createFromAsset (getActivity().getAssets() , \"fonts/fangz.ttf\"); \n\t\t\t\ttv1.setTypeface (face);\n\t\t\t\ttv2.setTypeface(face);\n\n\n\t\t\t\ttv3=(TextView) view.findViewById(R.id.textView5);\n\t\t\t\ttv4=(TextView) view.findViewById(R.id.textView6);\n\t\t\t\ttv5=(TextView) view.findViewById(R.id.textView7);\n\t\t\t\ttv6=(TextView) view.findViewById(R.id.textView8);\n\n\t\t\t\tcircleprogressbar=(CircleProgressBarView) view.findViewById(R.id.circleProgressBarView1);\n\t\t\t\tcircleprogressbar.setVisibility(View.VISIBLE);\n\t\t\t\tcircleprogressbar.setMax(100);\n\t\t\t\tcircleprogressbar.setProgress(0);\n\t\t\t\tcircleprogressbar.setScrrenwidth(scrrenWidth);\n\n\n\t\t\t\tbtn1=(Button) view.findViewById(R.id.button1);\n\t\t\t\tbtn1.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t//startActivity(new Intent(MainActivity.this,Buyactivity1.class));\n\t\t\t\t\t\tif(null == jobject8 || \"\".equals(jobject8) || \"{}\".equals(jobject8) || \"[]\".equals(jobject8)){ \n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\tif(sp.getBoolean(\"islogin\", false)){\n\t\t\t\t\t\t\tif(isconect){\n\t\t\t\t\t\t\t\tIntent intent=new Intent(getActivity(),Buyactivity1.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"productname\", productname);\n\t\t\t\t\t\t\t\tintent.putExtra(\"beginmoney\", beginmoney);\n\t\t\t\t\t\t\t\tintent.putExtra(\"shouxufei\", shouxufei);\n\t\t\t\t\t\t\t\tintent.putExtra(\"yuqishouyi\", yuqishouyi+\"%\");\n\t\t\t\t\t\t\t\tintent.putExtra(\"licaiqixian\", licaiqixian);\n\t\t\t\t\t\t\t\tintent.putExtra(\"yuqishouyichanshengshijian\", yuqishouyichanshengshijian);\n\t\t\t\t\t\t\t\tintent.putExtra(\"productid\", productid);\n\t\t\t\t\t\t\t\tintent.putExtra(\"fengxiandengji\", fengxiandengji);\n\t\t\t\t\t\t\t\tintent.putExtra(\"iscouldbuy\", iscouldbuy);\n\t\t\t\t\t\t\t\tintent.putExtra(\"explan\", explan);\n\t\t\t\t\t\t\t\tintent.putExtra(\"iscouldedit\", iscouldedit);\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t}else{}\n\n\n\t\t\t\t\t\t}else{\n\n\t\t\t\t\t\t\tstartActivity(new Intent(getActivity(),Loginactivity.class));\n\t\t\t\t\t\t}\n\n\n\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\trelativelayout.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t//Toast.makeText(getActivity(), \"321321321321\", 1000).show();\n\t\t\t\t\t\tIntent intent=new Intent(getActivity(),Productdetailactivity.class);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tintent.putExtra(\"productid\", jobject1.getString(\"Ipro_id\"));\n\t\t\t\t\t\t\tintent.putExtra(\"productname\", jobject1.getString(\"Ipro_name\"));\n\t\t\t\t\t\t\tintent.putExtra(\"buynum\",\"30天购买人数 \"+jobject1.getString(\"purchaseNum\"));\n\t\t\t\t\t\t\tintent.putExtra(\"day\", \"期限(天)\"+jobject1.getString(\"dayDiff\"));\n\t\t\t\t\t\t\tintent.putExtra(\"shouyi\", String.format(\"%.2f\", jobject1.getDouble(\"pctInterest\"))+\"%\");\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tread();\n\t\t\t\treturn view;\n\t\t\t}",
"private void initScrollPane() {\n\n MyScrollPane = new JScrollPane(MyTextArea);\n super.addCenter(MyScrollPane);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n \n return this.view;\n }",
"PdfViewerScrollBar(int orientation, PdfViewerController controller)\n {\n super(orientation);\n this.controller = controller;\n setUnitIncrement(UNIT_INCREMENT);\n setBlockIncrement(BLOCK_INCREMENT);\n scrollPosition = 0;\n close();\n }",
"private void setUpView(int width, int height){\n addKeyListener(new KeyPadListener());\n setFocusable(true);\n setLayout(null);\n setBounds(0,0,width,height);\n setBackground(new Color(0,0,0,0));\n requestFocus();\n addMouseListener(new MouseCatcher());\n }",
"public static View createDraggerView() {\n\n\t\tmViewContent = new ImageView(mContext);\n\t\tmViewContent.setImageDrawable(Util.makeCircle(mColor, mCircleDiameter));\n\n\t\trefreshScreenSize();\n\n\t\tmContentParamz = new WindowManager.LayoutParams(\n\t\t\tmCircleDiameter,\n\t\t\tmCircleDiameter,\n\t\t\tWindowManager.LayoutParams.TYPE_PHONE,\n\t\t\t0 | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN |\n\t\t\tWindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM |\n\t\t\tWindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |\n\t\t\tWindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL |\n\t\t\tWindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH,\n\t\t\tPixelFormat.TRANSLUCENT);\n\t\tmContentParamz.gravity = Gravity.TOP | Gravity.LEFT;\n\t\tUtil.addPrivateFlagNoMoveAnimationToLayoutParam(mContentParamz);\n\t\tmContentParamz.x = (mScreenWidth / 2) - (mCircleDiameter / 2);\n\t\tmContentParamz.y = (mScreenHeight / 2) - (mCircleDiameter / 2);\n\t\tmViewContent.setLayoutParams(mContentParamz);\n\t\treturn mViewContent;\n\t\t//return null;\n\t}",
"@Override\n\t\tpublic MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\t\t\tMyViewHolder holder = new MyViewHolder(mInflater.inflate(\n\t\t\t\t\tR.layout.hscroll_item, parent, false));\n\t\t\t\n\t\t\treturn holder;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View rootView = inflater.inflate(R.layout.poi_list, container, false);\n\n mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recycler_view);\n mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n poiListAdapter = new POIListAdapter(getActivity(), poiCursor);\n mRecyclerView.setAdapter(poiListAdapter);\n mRecyclerView.setHasFixedSize(false);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.book_list, container, false);\n\n /** RETURN THE VIEW INSTANCE TO SETUP THE LAYOUT **/\n return view;\n }",
"public IPPane() {\n\t\tsuper(new BorderLayout());\n\t\tfont = new Font(\"Monospaced\", Font.PLAIN, 12);\n\t\theader = new Header();\n\t\tthis.add(header,BorderLayout.NORTH);\n\t\tscroller = new JScrollPane();\n\t\teditor = new ScrollableEditorPane(\"text/plain\",\"\");\n\t\tscroller.setViewportView(editor);\n\t\tthis.add(scroller,BorderLayout.CENTER);\n\t\teditor.setFont(font);\n\t}",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.live_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View layout = inflater.inflate(R.layout.custom_row, container, false);\n recyclerView = (RecyclerView) layout.findViewById(R.id.rv);\n adapter = new WebCrawlerRecyclerViewAdapter(getActivity(), getData());\n recyclerView.setAdapter(adapter);\n LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerView.setLayoutManager(layoutManager);\n return layout;\n\n }",
"public ScrollableZoomableImageView(Context context) {\n super(context);\n sharedConstructing(context);\n }",
"private void InitView() {\n\t\tmLinearLayout = new LinearLayout(getContext());\n\t\t//mLinearLayout.setBackgroundResource(MusicApplication.getInstance().getBgResource());\n\t\t\n\t\t//Modify by LiYongNam 2012.9.19_start\n\t\tMusicUtil.setBackgroundOfView ( mLinearLayout, getContext() );\t\t\t\t\n\t\t//Modify by LiYongNam 2012.9.19_end\n\t\t\n\t\tmLinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLinearLayout.setPadding(1, 1, 1, Util.dipTopx(getContext(), 60));\n\t\t// 导航条\n\t\taddTitleBar(-1, \"编辑列表\", R.drawable.check_off, R.drawable.title_bar);\n\n\t\tmControlBar = new ControlBar(getContext());\n\t\tmControlBar.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tUtil.dipTopx(getContext(), 60)));\n\n//\t\taddControlButton(\"全选\", CONTROL1, 0);\n\t\taddControlButton(\"播放\", CONTROL2, 1);\n\t\taddControlButton(\"加入\", CONTROL3, 2);\n\t\taddControlButton(\"删除\", CONTROL4, 3);\n\n\t}"
] | [
"0.7501853",
"0.627676",
"0.62667745",
"0.6247337",
"0.61831164",
"0.61147624",
"0.602588",
"0.58194923",
"0.57724714",
"0.5756379",
"0.57239056",
"0.5690682",
"0.56452465",
"0.5632766",
"0.5602254",
"0.55775154",
"0.55688924",
"0.5547533",
"0.5538483",
"0.5509755",
"0.549505",
"0.54920584",
"0.5491472",
"0.54897195",
"0.5484622",
"0.5450115",
"0.5399661",
"0.53827477",
"0.5358502",
"0.5356046",
"0.5353595",
"0.530745",
"0.5299203",
"0.5297973",
"0.52805996",
"0.5259012",
"0.5255786",
"0.525051",
"0.5245969",
"0.5245238",
"0.5234438",
"0.52188796",
"0.521611",
"0.52118134",
"0.5161527",
"0.5160037",
"0.5155516",
"0.5145728",
"0.5145306",
"0.5140555",
"0.51377124",
"0.51376694",
"0.5127185",
"0.5124242",
"0.5113859",
"0.5100387",
"0.50993985",
"0.5094893",
"0.5094452",
"0.5094298",
"0.5085733",
"0.50766534",
"0.5068643",
"0.5050733",
"0.50456995",
"0.5045612",
"0.50278586",
"0.50163305",
"0.5011042",
"0.49939084",
"0.4990381",
"0.4988318",
"0.49845734",
"0.49833167",
"0.4981713",
"0.49764395",
"0.49576005",
"0.4954883",
"0.49541417",
"0.49532282",
"0.49507365",
"0.4948149",
"0.49433163",
"0.49351397",
"0.49324775",
"0.4931993",
"0.49233547",
"0.4917877",
"0.49154797",
"0.4907709",
"0.49076298",
"0.4905712",
"0.48976323",
"0.48865804",
"0.48737964",
"0.48732808",
"0.48711932",
"0.48677984",
"0.4867088",
"0.48660168"
] | 0.73595184 | 1 |
ViewHost method: Override to send to Scroller. | public int getGuestCount() { return _scroller.getGuestCount(); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"protected abstract void bindingView();",
"@Override\n\tprotected void RefreshView() {\n\t\t\n\t}",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"@Override\n public void prepareView() {\n }",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}",
"@Override\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }",
"public PageView(WebFrameworkServiceRegistry serviceRegistry)\r\n {\r\n super(serviceRegistry);\r\n }",
"@Override\r\n\t\tpublic ViewBinder getViewBinder() {\n\t\t\treturn super.getViewBinder();\r\n\t\t}",
"@Override\n protected void initView() {\n springView.setListener(new SpringView.OnFreshListener() {\n @Override\n public void onRefresh() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = true;\n currentPage = 1;\n handler.sendEmptyMessage(ConstantValue.SHUAXIN_SUCESS);\n }\n }).start();\n }\n\n @Override\n public void onLoadmore() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = false;\n currentPage++;\n handler.sendEmptyMessage(ConstantValue.JIAZAI_SUCESS);\n }\n }).start();\n }\n });\n }",
"@Override\n \tprotected void controlRender(RenderManager rm, ViewPort vp) {\n \n \t}",
"protected ReliedOnView() {}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void refreshView() {\n\t\t\n\t}",
"@AfterViews\r\n\tprotected void afterViewInjection() {\n\t\tserver = BulletZoneLocalProxy.createBulletZoneServer();\r\n\t\tserver.joinServer(null, \"Zeus\", this);\r\n\r\n\t\tgridView.setAdapter(mGridAdapter);\r\n\t}",
"@Override\n public void loadViewContent(PortletRequest request) {\n }",
"public abstract void viewRun();",
"@Override\r\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }",
"@Override\n\tprotected void setController() {\n\t\t\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\n protected void initViewSetup() {\n }",
"interface PostsView extends BaseView {\n\n void setPosts(List<Post> posts);\n\n void showRetryMessage(Throwable throwable);\n\n void showError(Throwable throwable);\n\n void showProgress();\n\n void hideProgress();\n\n}",
"@Override\n public void initView() {\n\n }",
"private void refreshView(){\n\t\tMain.scroll.setViewportView(container);\n\t\t// setez scrollul jos\n\t\tMain.scroll.getVerticalScrollBar().setValue(Main.scroll.getVerticalScrollBar().getMaximum());\n\t}",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"@Override\n public void initView() {\n }",
"@Override\n\tprotected void controlRender(RenderManager rm, ViewPort vp) {\n\t\t\n\t}",
"@Override\n\t\tpublic void viewAccepted(View joiner) {\n\t\t}",
"private void setViews() {\n\n }",
"@Override\n public void onStart(Pastry pastry) {\n if (pastry != null) {\n view.bindViews(pastry);\n }\n }",
"@Override\n\tpublic void doView(RenderRequest renderRequest,\n\t\t\tRenderResponse renderResponse) throws IOException, PortletException {\n\t\tsuper.doView(renderRequest, renderResponse);\n\t}",
"@Override protected void startup() {\n show(new FrontView());\n //show(new RestaurantManagementView(this));\n }",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\n\tpublic void staticFindViewByView() {\n\t\t\n\t}",
"@Override\r\n public View getView() {\r\n return mBaseView;\r\n }",
"@Override\n\tpublic void refreshView() {\n\n\t}",
"private void createScrollPane() {\n\n\t\t// --------------------------------------------\n\t\t// first create the client\n\t\t// --------------------------------------------\n\t\tclient = new Client(this);\n//\t\tclient.setTransferHandler(PM_TransferHandler.getInstance());\n\t\tfocusPanel = new PM_FocusPanel(null, this, this);\n\n\t\tif (config.isNurLesen()) {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_NUR_LESEN);\n\t\t} else {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_BACKGROUND);\n\t\t}\n\t\tclient.setLayout(null); // I do it myself\n\n\t\tclient.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t// System.out.println(\"Inndex View: mouseClicked: requestFocusInWindow aufrufen\");\n\t\t\t\trequestFocusInWindow();\n\t\t\t}\n\t\t});\n\n\t\t// ------------------------------------------\n\t\t// now the scrollpane\n\t\t// ------------------------------------------\n\t\tscrollPane = new JScrollPane(client);\n\t\tindexViewPort = scrollPane.getViewport();\n\n\t\tscrollPane.setWheelScrollingEnabled(false);\n\n\t\t//\t\t \n\t\tscrollPane\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t// Achtung: VERTICAL_SCROLLBAR_ALWAYS, da sonst unterschiedliche\n\t\t// ExtendSize und\n\t\t// damit funktioniert der stateChanged nicht mehr.\n\t\tscrollPane\n\t\t\t\t.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// ----------------------------------------------------------------------\n\t\t// MouseWheelListener\n\t\t// ----------------------------------------------------------------------\n\t\tMouseWheelListener mwl = new MouseWheelListener() {\n\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent me) {\n\t\t\t\tmouseWheelChanged(me);\n\t\t\t}\n\t\t};\n\t\tscrollPane.addMouseWheelListener(mwl);\n\n\t\t// ----------------------------------------------------------------------\n\t\t// ChangeListener\n\t\t// ----------------------------------------------------------------------\n\t\tChangeListener cl = new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent ce) {\n\t\t\t\t// viewPortSizeChanged(ce);\n\t\t\t}\n\t\t};\n\t\tscrollPane.getViewport().addChangeListener(cl);\n\n\t\t// addComponentListener\n\t\tscrollPane.getViewport().addComponentListener(new ComponentAdapter() {\n\t\t\t@Override\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tviewPortChanged(e);\n\t\t\t}\n\t\t});\n\n\t\t// addAdjustmentListener(AdjustmentListener l)\n\t\t// Scrollbar AdjustmentListener\n\t\tJScrollBar sb = scrollPane.getVerticalScrollBar();\n\t\tsb.addAdjustmentListener(new AdjustmentListener() {\n\n\t\t\t \n\t\t\tpublic void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\tverticalScrollBarChanged(e);\n\n\t\t\t}\n\n\t\t});\n\n\t\t// oldViewPortSize = indexViewPort.getExtentSize();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}",
"@Override\n\tpublic void initView() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n @NonNull\n protected V getPresenterViewHost() {\n return (V) this;\n }",
"private void registerViews() {\n\t}",
"StableView view();",
"void inject(HomeView homeView);",
"public interface HomeView extends BaseView {\n void getListData();\n}",
"@Override\r\n\tpublic View getView() {\n\t\treturn super.getView();\r\n\t}",
"@Override\n\tprotected void initContentView() {\n\t\t\n\t}",
"public void loadHostScreen(View view) {\n Intent intent = new Intent(this, HostActivity.class);\r\n startActivity(intent);\r\n }",
"@Override\n\tpublic void staticByViewListener() {\n\t\t\n\t}",
"protected void doView (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doView method not implemented\");\n }",
"private void addViews() {\n\t}",
"@Override\r\n\t\tpublic void setViewBinder(ViewBinder viewBinder) {\n\t\t\tsuper.setViewBinder(viewBinder);\r\n\t\t}",
"private void init() {\n //set view to presenter\n presenter.setView(this, service);\n\n setupView();\n }",
"@Override\n public View getView() {\n return mView;\n }",
"@Override\r\n public void run() {\n \r\n if(mCenterPanelWrapper == null) {\r\n mCenterPanelWrapper = UiCompat.createPersonaBackgroundPanel();\r\n mCenterWrapper = new PluginCenterPanelWrapper() {\r\n \r\n @Override\r\n public PluginCenterPanel[] getCenterPanels() {\r\n return new PluginCenterPanel[] {new PluginCenterPanelImpl()};\r\n }\r\n \r\n @Override\r\n public void scrolledToChannel(Channel channel) {\r\n if(mListPanel != null) {\r\n mListPanel.showChannel(channel);\r\n }\r\n }\r\n \r\n @Override\r\n public void filterSelected(ProgramFilter filter) {\r\n if(mListPanel != null) {\r\n mListPanel.showForFilter(filter);\r\n }\r\n }\r\n \r\n @Override\r\n public void scrolledToDate(Date date) {\r\n if(mListPanel != null) {\r\n mListPanel.showForDate(date, -1);\r\n }\r\n }\r\n \r\n @Override\r\n public void scrolledToNow() {\r\n if(mListPanel != null) {\r\n mListPanel.showForNow();\r\n }\r\n }\r\n \r\n @Override\r\n public void scrolledToTime(int time) {\r\n if(mListPanel != null) {\r\n mListPanel.showForTimeButton(time);\r\n }\r\n }\r\n \r\n @Override\r\n public void timeEvent() {\r\n if(mListPanel != null) {\r\n mListPanel.refreshView();\r\n }\r\n }\r\n };\r\n \r\n new Thread() {\r\n public void run() {\r\n while(!mTvBrowserStarted) {\r\n try {\r\n sleep(200);\r\n } catch (InterruptedException e) {}\r\n }\r\n \r\n addPanel();\r\n }\r\n }.start();\r\n }\r\n }",
"public void onViewportIn() {\n View child;\n AppWidgetHostView widgetView;\n AppWidgetProviderInfo widgetInfo;\n Intent intent;\n for (int i = this.getChildCount() - 1; i >= 0; i--) {\n try {\n child = this.getChildAt(i);\n if (child instanceof AppWidgetHostView) {\n widgetView = ((AppWidgetHostView) child);\n widgetInfo = widgetView.getAppWidgetInfo();\n int appWidgetId = widgetView.getAppWidgetId();\n intent = new Intent(LauncherIntent.Notification.NOTIFICATION_IN_VIEWPORT)\n .setComponent(widgetInfo.provider);\n intent.putExtra(LauncherIntent.Extra.EXTRA_APPWIDGET_ID, appWidgetId);\n intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);\n getContext().sendBroadcast(intent);\n }\n } catch (Exception e) {\n // LauncherApplication.reportExceptionStack(e);\n }\n }\n\n }",
"protected abstract void initViews();",
"protected abstract void initView();",
"public View getGuest(int anIndex) { return _scroller.getGuest(anIndex); }",
"@Override\n\tpublic View bindView() {\n\t\treturn null;\n\t}",
"public interface BrowserView extends MVPView {\n void showProgress();\n\n void showContent();\n\n void onConnected();\n\n void onDisconnected();\n}",
"public void execute(VirtualView virtualView){\n //method in virtualView\n }",
"public interface WordsAllView extends MvpView {\n void showWordlists(List<Word> wordlists);\n void setPresenter(WordsAllPresenter<WordsAllView> presenter);\n}",
"public interface HomePagePresenter extends BasePresenter{\n interface View extends BaseView{\n\n /**\n * 展示已收藏的项目\n * @param collectionList 已收藏的项目\n */\n void onViewShowCollectionList(List<CollectionModel> collectionList);\n\n /**\n * 打开已收藏的项目\n * @param collectionItem\n */\n void onViewOpenColletionItem(CollectionModel collectionItem);\n }\n void presenterItemClicked(CollectionModel collectionModel);\n}",
"public abstract void initViews();",
"@Override\n\tpublic void onScroll(HGridView view, int firstVisibleItem,\n\t\t\tint visibleItemCount, int totalItemCount) {\n\t}",
"@Override\n public void bindView() {\n this.addSearchBtnClickHandler();\n this.addAdvanceSearchBtnClickHandler();\n this.addSearchContentBoxClickHandler();\n }",
"protected abstract void onPresenter();",
"@Override\n\tpublic View getView() {\n\t\treturn super.getView();\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\trequestLayout();\n\t\t}",
"private android.view.View makeChannelsAndInfoScroller()\n\t{\n\t\t{\n\t\t\tchannelsAndInfoScroller = new ScrollView(getContext());\n\t\t\tchannelsAndInfoScroller.addView(makeChannelsAndInfo());\n\t\t}\n\t\treturn channelsAndInfoScroller;\n\t}",
"private void viewInit() {\n }",
"@Override\n\tpublic ModelAndView resolverView(PageContainer pContainer) throws Exception{\n\t\treturn null;\n\t}",
"protected abstract void setupMvpView();",
"@Override\n\tpublic void viewItem() {\n\t\t\n\t}",
"ViewMap<IBranchMapping> getView();",
"@Override\n\t\t\tpublic void onScrollingStarted(WheelView view) {\n\t\t\t}",
"public interface IBaseView<T> {\n\n boolean bindEvents();//是否需要在对应的控制器里绑定总线消息接听\n\n void showData(List<T> data, boolean canNext);\n\n void showLoadingProgress(boolean show);\n\n void showMessage(String mes);\n\n void showError(String mes);\n\n void onTokenError();\n\n}",
"public void initViews(){\n }",
"public interface IHomeView extends BaseIView {\n /**\n * 加载页面\n * @param status\n */\n void loadView(int status);\n}",
"public abstract void refreshView();",
"public Scroller getScroller() { return _scroller; }",
"@Override\n\tpublic void setView(Resultado resultado, HttpServletRequest request, HttpServletResponse response) {\n\n\t}",
"@Override\n public View getView()\n {\n return view;\n }",
"@Override\n public void Create() {\n\n initView();\n }",
"public abstract void initView();",
"@Override\n protected void initViewModel() {\n }",
"@Override\n\tpublic void findView() {\n\t\tinitUI();\n\t}",
"@Override public void computeScroll() {\n super.computeScroll();\n if (scroller != null) {\n scroller.computeScroll();\n }\n }",
"private void setMyScroller() {\n try {\n Class<?> viewpager = ViewPager.class;\n Field scroller = viewpager.getDeclaredField(getResources().getString(R.string.scroll_key));\n scroller.setAccessible(true);\n scroller.set(this, new MyScroller(getContext()));\n } catch (Exception e) {\n Logger.logInfo(String.valueOf(e));\n }\n }",
"@Override\n public void receiveView(View new_view) {\n remoteExecutor.execute(() -> super.receiveView(new_view));\n }",
"@Override\n public void send(VirtualView view) {\n view.update(this);\n }",
"@Override\n public void onViewCreate() {\n }",
"View getActiveView();"
] | [
"0.5637264",
"0.5578289",
"0.5577375",
"0.54971796",
"0.54962504",
"0.54962504",
"0.5480452",
"0.5474276",
"0.54451156",
"0.54451156",
"0.5441055",
"0.54407454",
"0.5409726",
"0.54049873",
"0.53972405",
"0.53925854",
"0.5391218",
"0.5390679",
"0.5390679",
"0.5388822",
"0.5383642",
"0.5380945",
"0.53705424",
"0.5364933",
"0.5360089",
"0.5357979",
"0.5357979",
"0.53522044",
"0.5348041",
"0.53476185",
"0.5334508",
"0.5316245",
"0.5309956",
"0.5295067",
"0.52905655",
"0.52829945",
"0.5280331",
"0.5278923",
"0.5269591",
"0.5267032",
"0.5267032",
"0.52011865",
"0.5195222",
"0.5191261",
"0.51791286",
"0.51749194",
"0.5174363",
"0.51714236",
"0.5160056",
"0.5158861",
"0.5152332",
"0.51323175",
"0.51261294",
"0.5122894",
"0.5115254",
"0.5108178",
"0.5108008",
"0.5104312",
"0.5095836",
"0.50933367",
"0.50925297",
"0.5091991",
"0.50813407",
"0.5075647",
"0.50656486",
"0.505693",
"0.50491846",
"0.50459397",
"0.5040671",
"0.5035591",
"0.5034092",
"0.50286573",
"0.50188404",
"0.50187135",
"0.50158024",
"0.5014616",
"0.50106055",
"0.5009563",
"0.5009556",
"0.500907",
"0.500742",
"0.5005049",
"0.5002873",
"0.5001952",
"0.4994325",
"0.49942267",
"0.49925086",
"0.4976436",
"0.49713168",
"0.4966953",
"0.49565312",
"0.49529162",
"0.49518776",
"0.494994",
"0.49466622",
"0.4943966",
"0.49402344",
"0.49397156",
"0.49217182",
"0.4920593",
"0.49153933"
] | 0.0 | -1 |
ViewHost method: Override to send to Scroller. | public View getGuest(int anIndex) { return _scroller.getGuest(anIndex); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"protected abstract void bindingView();",
"@Override\n\tprotected void RefreshView() {\n\t\t\n\t}",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"@Override\n public void prepareView() {\n }",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}",
"@Override\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }",
"public PageView(WebFrameworkServiceRegistry serviceRegistry)\r\n {\r\n super(serviceRegistry);\r\n }",
"@Override\r\n\t\tpublic ViewBinder getViewBinder() {\n\t\t\treturn super.getViewBinder();\r\n\t\t}",
"@Override\n protected void initView() {\n springView.setListener(new SpringView.OnFreshListener() {\n @Override\n public void onRefresh() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = true;\n currentPage = 1;\n handler.sendEmptyMessage(ConstantValue.SHUAXIN_SUCESS);\n }\n }).start();\n }\n\n @Override\n public void onLoadmore() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = false;\n currentPage++;\n handler.sendEmptyMessage(ConstantValue.JIAZAI_SUCESS);\n }\n }).start();\n }\n });\n }",
"@Override\n \tprotected void controlRender(RenderManager rm, ViewPort vp) {\n \n \t}",
"protected ReliedOnView() {}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void refreshView() {\n\t\t\n\t}",
"@AfterViews\r\n\tprotected void afterViewInjection() {\n\t\tserver = BulletZoneLocalProxy.createBulletZoneServer();\r\n\t\tserver.joinServer(null, \"Zeus\", this);\r\n\r\n\t\tgridView.setAdapter(mGridAdapter);\r\n\t}",
"@Override\n public void loadViewContent(PortletRequest request) {\n }",
"public abstract void viewRun();",
"@Override\r\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }",
"@Override\n\tprotected void setController() {\n\t\t\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\n protected void initViewSetup() {\n }",
"interface PostsView extends BaseView {\n\n void setPosts(List<Post> posts);\n\n void showRetryMessage(Throwable throwable);\n\n void showError(Throwable throwable);\n\n void showProgress();\n\n void hideProgress();\n\n}",
"@Override\n public void initView() {\n\n }",
"private void refreshView(){\n\t\tMain.scroll.setViewportView(container);\n\t\t// setez scrollul jos\n\t\tMain.scroll.getVerticalScrollBar().setValue(Main.scroll.getVerticalScrollBar().getMaximum());\n\t}",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"@Override\n public void initView() {\n }",
"@Override\n\tprotected void controlRender(RenderManager rm, ViewPort vp) {\n\t\t\n\t}",
"@Override\n\t\tpublic void viewAccepted(View joiner) {\n\t\t}",
"private void setViews() {\n\n }",
"@Override\n public void onStart(Pastry pastry) {\n if (pastry != null) {\n view.bindViews(pastry);\n }\n }",
"@Override\n\tpublic void doView(RenderRequest renderRequest,\n\t\t\tRenderResponse renderResponse) throws IOException, PortletException {\n\t\tsuper.doView(renderRequest, renderResponse);\n\t}",
"@Override protected void startup() {\n show(new FrontView());\n //show(new RestaurantManagementView(this));\n }",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\n\tpublic void staticFindViewByView() {\n\t\t\n\t}",
"@Override\r\n public View getView() {\r\n return mBaseView;\r\n }",
"@Override\n\tpublic void refreshView() {\n\n\t}",
"private void createScrollPane() {\n\n\t\t// --------------------------------------------\n\t\t// first create the client\n\t\t// --------------------------------------------\n\t\tclient = new Client(this);\n//\t\tclient.setTransferHandler(PM_TransferHandler.getInstance());\n\t\tfocusPanel = new PM_FocusPanel(null, this, this);\n\n\t\tif (config.isNurLesen()) {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_NUR_LESEN);\n\t\t} else {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_BACKGROUND);\n\t\t}\n\t\tclient.setLayout(null); // I do it myself\n\n\t\tclient.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t// System.out.println(\"Inndex View: mouseClicked: requestFocusInWindow aufrufen\");\n\t\t\t\trequestFocusInWindow();\n\t\t\t}\n\t\t});\n\n\t\t// ------------------------------------------\n\t\t// now the scrollpane\n\t\t// ------------------------------------------\n\t\tscrollPane = new JScrollPane(client);\n\t\tindexViewPort = scrollPane.getViewport();\n\n\t\tscrollPane.setWheelScrollingEnabled(false);\n\n\t\t//\t\t \n\t\tscrollPane\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t// Achtung: VERTICAL_SCROLLBAR_ALWAYS, da sonst unterschiedliche\n\t\t// ExtendSize und\n\t\t// damit funktioniert der stateChanged nicht mehr.\n\t\tscrollPane\n\t\t\t\t.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// ----------------------------------------------------------------------\n\t\t// MouseWheelListener\n\t\t// ----------------------------------------------------------------------\n\t\tMouseWheelListener mwl = new MouseWheelListener() {\n\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent me) {\n\t\t\t\tmouseWheelChanged(me);\n\t\t\t}\n\t\t};\n\t\tscrollPane.addMouseWheelListener(mwl);\n\n\t\t// ----------------------------------------------------------------------\n\t\t// ChangeListener\n\t\t// ----------------------------------------------------------------------\n\t\tChangeListener cl = new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent ce) {\n\t\t\t\t// viewPortSizeChanged(ce);\n\t\t\t}\n\t\t};\n\t\tscrollPane.getViewport().addChangeListener(cl);\n\n\t\t// addComponentListener\n\t\tscrollPane.getViewport().addComponentListener(new ComponentAdapter() {\n\t\t\t@Override\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tviewPortChanged(e);\n\t\t\t}\n\t\t});\n\n\t\t// addAdjustmentListener(AdjustmentListener l)\n\t\t// Scrollbar AdjustmentListener\n\t\tJScrollBar sb = scrollPane.getVerticalScrollBar();\n\t\tsb.addAdjustmentListener(new AdjustmentListener() {\n\n\t\t\t \n\t\t\tpublic void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\tverticalScrollBarChanged(e);\n\n\t\t\t}\n\n\t\t});\n\n\t\t// oldViewPortSize = indexViewPort.getExtentSize();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}",
"@Override\n\tpublic void initView() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n @NonNull\n protected V getPresenterViewHost() {\n return (V) this;\n }",
"private void registerViews() {\n\t}",
"StableView view();",
"void inject(HomeView homeView);",
"public interface HomeView extends BaseView {\n void getListData();\n}",
"@Override\r\n\tpublic View getView() {\n\t\treturn super.getView();\r\n\t}",
"@Override\n\tprotected void initContentView() {\n\t\t\n\t}",
"public void loadHostScreen(View view) {\n Intent intent = new Intent(this, HostActivity.class);\r\n startActivity(intent);\r\n }",
"@Override\n\tpublic void staticByViewListener() {\n\t\t\n\t}",
"protected void doView (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doView method not implemented\");\n }",
"private void addViews() {\n\t}",
"@Override\r\n\t\tpublic void setViewBinder(ViewBinder viewBinder) {\n\t\t\tsuper.setViewBinder(viewBinder);\r\n\t\t}",
"private void init() {\n //set view to presenter\n presenter.setView(this, service);\n\n setupView();\n }",
"@Override\n public View getView() {\n return mView;\n }",
"@Override\r\n public void run() {\n \r\n if(mCenterPanelWrapper == null) {\r\n mCenterPanelWrapper = UiCompat.createPersonaBackgroundPanel();\r\n mCenterWrapper = new PluginCenterPanelWrapper() {\r\n \r\n @Override\r\n public PluginCenterPanel[] getCenterPanels() {\r\n return new PluginCenterPanel[] {new PluginCenterPanelImpl()};\r\n }\r\n \r\n @Override\r\n public void scrolledToChannel(Channel channel) {\r\n if(mListPanel != null) {\r\n mListPanel.showChannel(channel);\r\n }\r\n }\r\n \r\n @Override\r\n public void filterSelected(ProgramFilter filter) {\r\n if(mListPanel != null) {\r\n mListPanel.showForFilter(filter);\r\n }\r\n }\r\n \r\n @Override\r\n public void scrolledToDate(Date date) {\r\n if(mListPanel != null) {\r\n mListPanel.showForDate(date, -1);\r\n }\r\n }\r\n \r\n @Override\r\n public void scrolledToNow() {\r\n if(mListPanel != null) {\r\n mListPanel.showForNow();\r\n }\r\n }\r\n \r\n @Override\r\n public void scrolledToTime(int time) {\r\n if(mListPanel != null) {\r\n mListPanel.showForTimeButton(time);\r\n }\r\n }\r\n \r\n @Override\r\n public void timeEvent() {\r\n if(mListPanel != null) {\r\n mListPanel.refreshView();\r\n }\r\n }\r\n };\r\n \r\n new Thread() {\r\n public void run() {\r\n while(!mTvBrowserStarted) {\r\n try {\r\n sleep(200);\r\n } catch (InterruptedException e) {}\r\n }\r\n \r\n addPanel();\r\n }\r\n }.start();\r\n }\r\n }",
"public void onViewportIn() {\n View child;\n AppWidgetHostView widgetView;\n AppWidgetProviderInfo widgetInfo;\n Intent intent;\n for (int i = this.getChildCount() - 1; i >= 0; i--) {\n try {\n child = this.getChildAt(i);\n if (child instanceof AppWidgetHostView) {\n widgetView = ((AppWidgetHostView) child);\n widgetInfo = widgetView.getAppWidgetInfo();\n int appWidgetId = widgetView.getAppWidgetId();\n intent = new Intent(LauncherIntent.Notification.NOTIFICATION_IN_VIEWPORT)\n .setComponent(widgetInfo.provider);\n intent.putExtra(LauncherIntent.Extra.EXTRA_APPWIDGET_ID, appWidgetId);\n intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);\n getContext().sendBroadcast(intent);\n }\n } catch (Exception e) {\n // LauncherApplication.reportExceptionStack(e);\n }\n }\n\n }",
"protected abstract void initViews();",
"protected abstract void initView();",
"@Override\n\tpublic View bindView() {\n\t\treturn null;\n\t}",
"public interface BrowserView extends MVPView {\n void showProgress();\n\n void showContent();\n\n void onConnected();\n\n void onDisconnected();\n}",
"public void execute(VirtualView virtualView){\n //method in virtualView\n }",
"public interface WordsAllView extends MvpView {\n void showWordlists(List<Word> wordlists);\n void setPresenter(WordsAllPresenter<WordsAllView> presenter);\n}",
"public interface HomePagePresenter extends BasePresenter{\n interface View extends BaseView{\n\n /**\n * 展示已收藏的项目\n * @param collectionList 已收藏的项目\n */\n void onViewShowCollectionList(List<CollectionModel> collectionList);\n\n /**\n * 打开已收藏的项目\n * @param collectionItem\n */\n void onViewOpenColletionItem(CollectionModel collectionItem);\n }\n void presenterItemClicked(CollectionModel collectionModel);\n}",
"public abstract void initViews();",
"@Override\n\tpublic void onScroll(HGridView view, int firstVisibleItem,\n\t\t\tint visibleItemCount, int totalItemCount) {\n\t}",
"@Override\n public void bindView() {\n this.addSearchBtnClickHandler();\n this.addAdvanceSearchBtnClickHandler();\n this.addSearchContentBoxClickHandler();\n }",
"protected abstract void onPresenter();",
"@Override\n\tpublic View getView() {\n\t\treturn super.getView();\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\trequestLayout();\n\t\t}",
"private android.view.View makeChannelsAndInfoScroller()\n\t{\n\t\t{\n\t\t\tchannelsAndInfoScroller = new ScrollView(getContext());\n\t\t\tchannelsAndInfoScroller.addView(makeChannelsAndInfo());\n\t\t}\n\t\treturn channelsAndInfoScroller;\n\t}",
"private void viewInit() {\n }",
"@Override\n\tpublic ModelAndView resolverView(PageContainer pContainer) throws Exception{\n\t\treturn null;\n\t}",
"protected abstract void setupMvpView();",
"@Override\n\tpublic void viewItem() {\n\t\t\n\t}",
"ViewMap<IBranchMapping> getView();",
"@Override\n\t\t\tpublic void onScrollingStarted(WheelView view) {\n\t\t\t}",
"public interface IBaseView<T> {\n\n boolean bindEvents();//是否需要在对应的控制器里绑定总线消息接听\n\n void showData(List<T> data, boolean canNext);\n\n void showLoadingProgress(boolean show);\n\n void showMessage(String mes);\n\n void showError(String mes);\n\n void onTokenError();\n\n}",
"public void initViews(){\n }",
"public interface IHomeView extends BaseIView {\n /**\n * 加载页面\n * @param status\n */\n void loadView(int status);\n}",
"public abstract void refreshView();",
"public Scroller getScroller() { return _scroller; }",
"@Override\n\tpublic void setView(Resultado resultado, HttpServletRequest request, HttpServletResponse response) {\n\n\t}",
"@Override\n public View getView()\n {\n return view;\n }",
"@Override\n public void Create() {\n\n initView();\n }",
"public abstract void initView();",
"@Override\n protected void initViewModel() {\n }",
"@Override\n\tpublic void findView() {\n\t\tinitUI();\n\t}",
"@Override public void computeScroll() {\n super.computeScroll();\n if (scroller != null) {\n scroller.computeScroll();\n }\n }",
"private void setMyScroller() {\n try {\n Class<?> viewpager = ViewPager.class;\n Field scroller = viewpager.getDeclaredField(getResources().getString(R.string.scroll_key));\n scroller.setAccessible(true);\n scroller.set(this, new MyScroller(getContext()));\n } catch (Exception e) {\n Logger.logInfo(String.valueOf(e));\n }\n }",
"@Override\n public void receiveView(View new_view) {\n remoteExecutor.execute(() -> super.receiveView(new_view));\n }",
"@Override\n public void send(VirtualView view) {\n view.update(this);\n }",
"@Override\n public void onViewCreate() {\n }",
"View getActiveView();"
] | [
"0.5637264",
"0.5578289",
"0.5577375",
"0.54971796",
"0.54962504",
"0.54962504",
"0.5480452",
"0.5474276",
"0.54451156",
"0.54451156",
"0.5441055",
"0.54407454",
"0.5409726",
"0.54049873",
"0.53972405",
"0.53925854",
"0.5391218",
"0.5390679",
"0.5390679",
"0.5388822",
"0.5383642",
"0.5380945",
"0.53705424",
"0.5364933",
"0.5360089",
"0.5357979",
"0.5357979",
"0.53522044",
"0.5348041",
"0.53476185",
"0.5334508",
"0.5316245",
"0.5309956",
"0.5295067",
"0.52905655",
"0.52829945",
"0.5280331",
"0.5278923",
"0.5269591",
"0.5267032",
"0.5267032",
"0.52011865",
"0.5195222",
"0.5191261",
"0.51791286",
"0.51749194",
"0.5174363",
"0.51714236",
"0.5160056",
"0.5158861",
"0.5152332",
"0.51323175",
"0.51261294",
"0.5122894",
"0.5115254",
"0.5108178",
"0.5108008",
"0.5104312",
"0.5095836",
"0.50933367",
"0.50925297",
"0.5091991",
"0.50813407",
"0.5075647",
"0.50656486",
"0.50491846",
"0.50459397",
"0.5040671",
"0.5035591",
"0.5034092",
"0.50286573",
"0.50188404",
"0.50187135",
"0.50158024",
"0.5014616",
"0.50106055",
"0.5009563",
"0.5009556",
"0.500907",
"0.500742",
"0.5005049",
"0.5002873",
"0.5001952",
"0.4994325",
"0.49942267",
"0.49925086",
"0.4976436",
"0.49713168",
"0.4966953",
"0.49565312",
"0.49529162",
"0.49518776",
"0.494994",
"0.49466622",
"0.4943966",
"0.49402344",
"0.49397156",
"0.49217182",
"0.4920593",
"0.49153933"
] | 0.505693 | 65 |
ViewHost method: Override to send to Scroller. | public void addGuest(View aChild, int anIndex) { _scroller.addGuest(aChild, anIndex); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"protected abstract void bindingView();",
"@Override\n\tprotected void RefreshView() {\n\t\t\n\t}",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"@Override\n public void prepareView() {\n }",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}",
"@Override\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }",
"public PageView(WebFrameworkServiceRegistry serviceRegistry)\r\n {\r\n super(serviceRegistry);\r\n }",
"@Override\r\n\t\tpublic ViewBinder getViewBinder() {\n\t\t\treturn super.getViewBinder();\r\n\t\t}",
"@Override\n protected void initView() {\n springView.setListener(new SpringView.OnFreshListener() {\n @Override\n public void onRefresh() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = true;\n currentPage = 1;\n handler.sendEmptyMessage(ConstantValue.SHUAXIN_SUCESS);\n }\n }).start();\n }\n\n @Override\n public void onLoadmore() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = false;\n currentPage++;\n handler.sendEmptyMessage(ConstantValue.JIAZAI_SUCESS);\n }\n }).start();\n }\n });\n }",
"@Override\n \tprotected void controlRender(RenderManager rm, ViewPort vp) {\n \n \t}",
"protected ReliedOnView() {}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void refreshView() {\n\t\t\n\t}",
"@AfterViews\r\n\tprotected void afterViewInjection() {\n\t\tserver = BulletZoneLocalProxy.createBulletZoneServer();\r\n\t\tserver.joinServer(null, \"Zeus\", this);\r\n\r\n\t\tgridView.setAdapter(mGridAdapter);\r\n\t}",
"@Override\n public void loadViewContent(PortletRequest request) {\n }",
"public abstract void viewRun();",
"@Override\r\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }",
"@Override\n\tprotected void setController() {\n\t\t\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\n protected void initViewSetup() {\n }",
"interface PostsView extends BaseView {\n\n void setPosts(List<Post> posts);\n\n void showRetryMessage(Throwable throwable);\n\n void showError(Throwable throwable);\n\n void showProgress();\n\n void hideProgress();\n\n}",
"@Override\n public void initView() {\n\n }",
"private void refreshView(){\n\t\tMain.scroll.setViewportView(container);\n\t\t// setez scrollul jos\n\t\tMain.scroll.getVerticalScrollBar().setValue(Main.scroll.getVerticalScrollBar().getMaximum());\n\t}",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"@Override\n public void initView() {\n }",
"@Override\n\tprotected void controlRender(RenderManager rm, ViewPort vp) {\n\t\t\n\t}",
"@Override\n\t\tpublic void viewAccepted(View joiner) {\n\t\t}",
"private void setViews() {\n\n }",
"@Override\n public void onStart(Pastry pastry) {\n if (pastry != null) {\n view.bindViews(pastry);\n }\n }",
"@Override\n\tpublic void doView(RenderRequest renderRequest,\n\t\t\tRenderResponse renderResponse) throws IOException, PortletException {\n\t\tsuper.doView(renderRequest, renderResponse);\n\t}",
"@Override protected void startup() {\n show(new FrontView());\n //show(new RestaurantManagementView(this));\n }",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\n\tpublic void staticFindViewByView() {\n\t\t\n\t}",
"@Override\r\n public View getView() {\r\n return mBaseView;\r\n }",
"@Override\n\tpublic void refreshView() {\n\n\t}",
"private void createScrollPane() {\n\n\t\t// --------------------------------------------\n\t\t// first create the client\n\t\t// --------------------------------------------\n\t\tclient = new Client(this);\n//\t\tclient.setTransferHandler(PM_TransferHandler.getInstance());\n\t\tfocusPanel = new PM_FocusPanel(null, this, this);\n\n\t\tif (config.isNurLesen()) {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_NUR_LESEN);\n\t\t} else {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_BACKGROUND);\n\t\t}\n\t\tclient.setLayout(null); // I do it myself\n\n\t\tclient.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t// System.out.println(\"Inndex View: mouseClicked: requestFocusInWindow aufrufen\");\n\t\t\t\trequestFocusInWindow();\n\t\t\t}\n\t\t});\n\n\t\t// ------------------------------------------\n\t\t// now the scrollpane\n\t\t// ------------------------------------------\n\t\tscrollPane = new JScrollPane(client);\n\t\tindexViewPort = scrollPane.getViewport();\n\n\t\tscrollPane.setWheelScrollingEnabled(false);\n\n\t\t//\t\t \n\t\tscrollPane\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t// Achtung: VERTICAL_SCROLLBAR_ALWAYS, da sonst unterschiedliche\n\t\t// ExtendSize und\n\t\t// damit funktioniert der stateChanged nicht mehr.\n\t\tscrollPane\n\t\t\t\t.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// ----------------------------------------------------------------------\n\t\t// MouseWheelListener\n\t\t// ----------------------------------------------------------------------\n\t\tMouseWheelListener mwl = new MouseWheelListener() {\n\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent me) {\n\t\t\t\tmouseWheelChanged(me);\n\t\t\t}\n\t\t};\n\t\tscrollPane.addMouseWheelListener(mwl);\n\n\t\t// ----------------------------------------------------------------------\n\t\t// ChangeListener\n\t\t// ----------------------------------------------------------------------\n\t\tChangeListener cl = new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent ce) {\n\t\t\t\t// viewPortSizeChanged(ce);\n\t\t\t}\n\t\t};\n\t\tscrollPane.getViewport().addChangeListener(cl);\n\n\t\t// addComponentListener\n\t\tscrollPane.getViewport().addComponentListener(new ComponentAdapter() {\n\t\t\t@Override\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tviewPortChanged(e);\n\t\t\t}\n\t\t});\n\n\t\t// addAdjustmentListener(AdjustmentListener l)\n\t\t// Scrollbar AdjustmentListener\n\t\tJScrollBar sb = scrollPane.getVerticalScrollBar();\n\t\tsb.addAdjustmentListener(new AdjustmentListener() {\n\n\t\t\t \n\t\t\tpublic void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\tverticalScrollBarChanged(e);\n\n\t\t\t}\n\n\t\t});\n\n\t\t// oldViewPortSize = indexViewPort.getExtentSize();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}",
"@Override\n\tpublic void initView() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n @NonNull\n protected V getPresenterViewHost() {\n return (V) this;\n }",
"private void registerViews() {\n\t}",
"StableView view();",
"void inject(HomeView homeView);",
"public interface HomeView extends BaseView {\n void getListData();\n}",
"@Override\r\n\tpublic View getView() {\n\t\treturn super.getView();\r\n\t}",
"@Override\n\tprotected void initContentView() {\n\t\t\n\t}",
"public void loadHostScreen(View view) {\n Intent intent = new Intent(this, HostActivity.class);\r\n startActivity(intent);\r\n }",
"@Override\n\tpublic void staticByViewListener() {\n\t\t\n\t}",
"protected void doView (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doView method not implemented\");\n }",
"private void addViews() {\n\t}",
"@Override\r\n\t\tpublic void setViewBinder(ViewBinder viewBinder) {\n\t\t\tsuper.setViewBinder(viewBinder);\r\n\t\t}",
"private void init() {\n //set view to presenter\n presenter.setView(this, service);\n\n setupView();\n }",
"@Override\n public View getView() {\n return mView;\n }",
"@Override\r\n public void run() {\n \r\n if(mCenterPanelWrapper == null) {\r\n mCenterPanelWrapper = UiCompat.createPersonaBackgroundPanel();\r\n mCenterWrapper = new PluginCenterPanelWrapper() {\r\n \r\n @Override\r\n public PluginCenterPanel[] getCenterPanels() {\r\n return new PluginCenterPanel[] {new PluginCenterPanelImpl()};\r\n }\r\n \r\n @Override\r\n public void scrolledToChannel(Channel channel) {\r\n if(mListPanel != null) {\r\n mListPanel.showChannel(channel);\r\n }\r\n }\r\n \r\n @Override\r\n public void filterSelected(ProgramFilter filter) {\r\n if(mListPanel != null) {\r\n mListPanel.showForFilter(filter);\r\n }\r\n }\r\n \r\n @Override\r\n public void scrolledToDate(Date date) {\r\n if(mListPanel != null) {\r\n mListPanel.showForDate(date, -1);\r\n }\r\n }\r\n \r\n @Override\r\n public void scrolledToNow() {\r\n if(mListPanel != null) {\r\n mListPanel.showForNow();\r\n }\r\n }\r\n \r\n @Override\r\n public void scrolledToTime(int time) {\r\n if(mListPanel != null) {\r\n mListPanel.showForTimeButton(time);\r\n }\r\n }\r\n \r\n @Override\r\n public void timeEvent() {\r\n if(mListPanel != null) {\r\n mListPanel.refreshView();\r\n }\r\n }\r\n };\r\n \r\n new Thread() {\r\n public void run() {\r\n while(!mTvBrowserStarted) {\r\n try {\r\n sleep(200);\r\n } catch (InterruptedException e) {}\r\n }\r\n \r\n addPanel();\r\n }\r\n }.start();\r\n }\r\n }",
"public void onViewportIn() {\n View child;\n AppWidgetHostView widgetView;\n AppWidgetProviderInfo widgetInfo;\n Intent intent;\n for (int i = this.getChildCount() - 1; i >= 0; i--) {\n try {\n child = this.getChildAt(i);\n if (child instanceof AppWidgetHostView) {\n widgetView = ((AppWidgetHostView) child);\n widgetInfo = widgetView.getAppWidgetInfo();\n int appWidgetId = widgetView.getAppWidgetId();\n intent = new Intent(LauncherIntent.Notification.NOTIFICATION_IN_VIEWPORT)\n .setComponent(widgetInfo.provider);\n intent.putExtra(LauncherIntent.Extra.EXTRA_APPWIDGET_ID, appWidgetId);\n intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);\n getContext().sendBroadcast(intent);\n }\n } catch (Exception e) {\n // LauncherApplication.reportExceptionStack(e);\n }\n }\n\n }",
"protected abstract void initViews();",
"protected abstract void initView();",
"public View getGuest(int anIndex) { return _scroller.getGuest(anIndex); }",
"@Override\n\tpublic View bindView() {\n\t\treturn null;\n\t}",
"public interface BrowserView extends MVPView {\n void showProgress();\n\n void showContent();\n\n void onConnected();\n\n void onDisconnected();\n}",
"public void execute(VirtualView virtualView){\n //method in virtualView\n }",
"public interface WordsAllView extends MvpView {\n void showWordlists(List<Word> wordlists);\n void setPresenter(WordsAllPresenter<WordsAllView> presenter);\n}",
"public interface HomePagePresenter extends BasePresenter{\n interface View extends BaseView{\n\n /**\n * 展示已收藏的项目\n * @param collectionList 已收藏的项目\n */\n void onViewShowCollectionList(List<CollectionModel> collectionList);\n\n /**\n * 打开已收藏的项目\n * @param collectionItem\n */\n void onViewOpenColletionItem(CollectionModel collectionItem);\n }\n void presenterItemClicked(CollectionModel collectionModel);\n}",
"public abstract void initViews();",
"@Override\n\tpublic void onScroll(HGridView view, int firstVisibleItem,\n\t\t\tint visibleItemCount, int totalItemCount) {\n\t}",
"@Override\n public void bindView() {\n this.addSearchBtnClickHandler();\n this.addAdvanceSearchBtnClickHandler();\n this.addSearchContentBoxClickHandler();\n }",
"protected abstract void onPresenter();",
"@Override\n\tpublic View getView() {\n\t\treturn super.getView();\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\trequestLayout();\n\t\t}",
"private android.view.View makeChannelsAndInfoScroller()\n\t{\n\t\t{\n\t\t\tchannelsAndInfoScroller = new ScrollView(getContext());\n\t\t\tchannelsAndInfoScroller.addView(makeChannelsAndInfo());\n\t\t}\n\t\treturn channelsAndInfoScroller;\n\t}",
"private void viewInit() {\n }",
"@Override\n\tpublic ModelAndView resolverView(PageContainer pContainer) throws Exception{\n\t\treturn null;\n\t}",
"protected abstract void setupMvpView();",
"@Override\n\tpublic void viewItem() {\n\t\t\n\t}",
"ViewMap<IBranchMapping> getView();",
"@Override\n\t\t\tpublic void onScrollingStarted(WheelView view) {\n\t\t\t}",
"public interface IBaseView<T> {\n\n boolean bindEvents();//是否需要在对应的控制器里绑定总线消息接听\n\n void showData(List<T> data, boolean canNext);\n\n void showLoadingProgress(boolean show);\n\n void showMessage(String mes);\n\n void showError(String mes);\n\n void onTokenError();\n\n}",
"public void initViews(){\n }",
"public interface IHomeView extends BaseIView {\n /**\n * 加载页面\n * @param status\n */\n void loadView(int status);\n}",
"public abstract void refreshView();",
"public Scroller getScroller() { return _scroller; }",
"@Override\n\tpublic void setView(Resultado resultado, HttpServletRequest request, HttpServletResponse response) {\n\n\t}",
"@Override\n public View getView()\n {\n return view;\n }",
"@Override\n public void Create() {\n\n initView();\n }",
"public abstract void initView();",
"@Override\n protected void initViewModel() {\n }",
"@Override\n\tpublic void findView() {\n\t\tinitUI();\n\t}",
"@Override public void computeScroll() {\n super.computeScroll();\n if (scroller != null) {\n scroller.computeScroll();\n }\n }",
"private void setMyScroller() {\n try {\n Class<?> viewpager = ViewPager.class;\n Field scroller = viewpager.getDeclaredField(getResources().getString(R.string.scroll_key));\n scroller.setAccessible(true);\n scroller.set(this, new MyScroller(getContext()));\n } catch (Exception e) {\n Logger.logInfo(String.valueOf(e));\n }\n }",
"@Override\n public void receiveView(View new_view) {\n remoteExecutor.execute(() -> super.receiveView(new_view));\n }",
"@Override\n public void send(VirtualView view) {\n view.update(this);\n }",
"@Override\n public void onViewCreate() {\n }",
"View getActiveView();"
] | [
"0.5637264",
"0.5578289",
"0.5577375",
"0.54971796",
"0.54962504",
"0.54962504",
"0.5480452",
"0.5474276",
"0.54451156",
"0.54451156",
"0.5441055",
"0.54407454",
"0.5409726",
"0.54049873",
"0.53972405",
"0.53925854",
"0.5391218",
"0.5390679",
"0.5390679",
"0.5388822",
"0.5383642",
"0.5380945",
"0.53705424",
"0.5364933",
"0.5360089",
"0.5357979",
"0.5357979",
"0.53522044",
"0.5348041",
"0.53476185",
"0.5334508",
"0.5316245",
"0.5309956",
"0.5295067",
"0.52905655",
"0.52829945",
"0.5280331",
"0.5278923",
"0.5269591",
"0.5267032",
"0.5267032",
"0.52011865",
"0.5195222",
"0.5191261",
"0.51791286",
"0.51749194",
"0.5174363",
"0.51714236",
"0.5160056",
"0.5158861",
"0.5152332",
"0.51323175",
"0.51261294",
"0.5122894",
"0.5115254",
"0.5108178",
"0.5108008",
"0.5104312",
"0.5095836",
"0.50933367",
"0.50925297",
"0.5091991",
"0.50813407",
"0.5075647",
"0.50656486",
"0.505693",
"0.50491846",
"0.50459397",
"0.5040671",
"0.5035591",
"0.5034092",
"0.50286573",
"0.50188404",
"0.50187135",
"0.50158024",
"0.5014616",
"0.50106055",
"0.5009563",
"0.5009556",
"0.500907",
"0.500742",
"0.5005049",
"0.5002873",
"0.5001952",
"0.4994325",
"0.49942267",
"0.49925086",
"0.4976436",
"0.49713168",
"0.4966953",
"0.49565312",
"0.49529162",
"0.49518776",
"0.494994",
"0.49466622",
"0.4943966",
"0.49402344",
"0.49397156",
"0.49217182",
"0.4920593",
"0.49153933"
] | 0.0 | -1 |
ViewHost method: Override to send to Scroller. | public View removeGuest(int anIndex) { return _scroller.removeGuest(anIndex); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"protected abstract void bindingView();",
"@Override\n\tprotected void RefreshView() {\n\t\t\n\t}",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"@Override\n public void prepareView() {\n }",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}",
"@Override\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }",
"public PageView(WebFrameworkServiceRegistry serviceRegistry)\r\n {\r\n super(serviceRegistry);\r\n }",
"@Override\r\n\t\tpublic ViewBinder getViewBinder() {\n\t\t\treturn super.getViewBinder();\r\n\t\t}",
"@Override\n protected void initView() {\n springView.setListener(new SpringView.OnFreshListener() {\n @Override\n public void onRefresh() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = true;\n currentPage = 1;\n handler.sendEmptyMessage(ConstantValue.SHUAXIN_SUCESS);\n }\n }).start();\n }\n\n @Override\n public void onLoadmore() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = false;\n currentPage++;\n handler.sendEmptyMessage(ConstantValue.JIAZAI_SUCESS);\n }\n }).start();\n }\n });\n }",
"@Override\n \tprotected void controlRender(RenderManager rm, ViewPort vp) {\n \n \t}",
"protected ReliedOnView() {}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void refreshView() {\n\t\t\n\t}",
"@AfterViews\r\n\tprotected void afterViewInjection() {\n\t\tserver = BulletZoneLocalProxy.createBulletZoneServer();\r\n\t\tserver.joinServer(null, \"Zeus\", this);\r\n\r\n\t\tgridView.setAdapter(mGridAdapter);\r\n\t}",
"@Override\n public void loadViewContent(PortletRequest request) {\n }",
"public abstract void viewRun();",
"@Override\r\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }",
"@Override\n\tprotected void setController() {\n\t\t\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\n protected void initViewSetup() {\n }",
"interface PostsView extends BaseView {\n\n void setPosts(List<Post> posts);\n\n void showRetryMessage(Throwable throwable);\n\n void showError(Throwable throwable);\n\n void showProgress();\n\n void hideProgress();\n\n}",
"@Override\n public void initView() {\n\n }",
"private void refreshView(){\n\t\tMain.scroll.setViewportView(container);\n\t\t// setez scrollul jos\n\t\tMain.scroll.getVerticalScrollBar().setValue(Main.scroll.getVerticalScrollBar().getMaximum());\n\t}",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"@Override\n public void initView() {\n }",
"@Override\n\tprotected void controlRender(RenderManager rm, ViewPort vp) {\n\t\t\n\t}",
"@Override\n\t\tpublic void viewAccepted(View joiner) {\n\t\t}",
"private void setViews() {\n\n }",
"@Override\n public void onStart(Pastry pastry) {\n if (pastry != null) {\n view.bindViews(pastry);\n }\n }",
"@Override\n\tpublic void doView(RenderRequest renderRequest,\n\t\t\tRenderResponse renderResponse) throws IOException, PortletException {\n\t\tsuper.doView(renderRequest, renderResponse);\n\t}",
"@Override protected void startup() {\n show(new FrontView());\n //show(new RestaurantManagementView(this));\n }",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\n\tpublic void staticFindViewByView() {\n\t\t\n\t}",
"@Override\r\n public View getView() {\r\n return mBaseView;\r\n }",
"@Override\n\tpublic void refreshView() {\n\n\t}",
"private void createScrollPane() {\n\n\t\t// --------------------------------------------\n\t\t// first create the client\n\t\t// --------------------------------------------\n\t\tclient = new Client(this);\n//\t\tclient.setTransferHandler(PM_TransferHandler.getInstance());\n\t\tfocusPanel = new PM_FocusPanel(null, this, this);\n\n\t\tif (config.isNurLesen()) {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_NUR_LESEN);\n\t\t} else {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_BACKGROUND);\n\t\t}\n\t\tclient.setLayout(null); // I do it myself\n\n\t\tclient.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t// System.out.println(\"Inndex View: mouseClicked: requestFocusInWindow aufrufen\");\n\t\t\t\trequestFocusInWindow();\n\t\t\t}\n\t\t});\n\n\t\t// ------------------------------------------\n\t\t// now the scrollpane\n\t\t// ------------------------------------------\n\t\tscrollPane = new JScrollPane(client);\n\t\tindexViewPort = scrollPane.getViewport();\n\n\t\tscrollPane.setWheelScrollingEnabled(false);\n\n\t\t//\t\t \n\t\tscrollPane\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t// Achtung: VERTICAL_SCROLLBAR_ALWAYS, da sonst unterschiedliche\n\t\t// ExtendSize und\n\t\t// damit funktioniert der stateChanged nicht mehr.\n\t\tscrollPane\n\t\t\t\t.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// ----------------------------------------------------------------------\n\t\t// MouseWheelListener\n\t\t// ----------------------------------------------------------------------\n\t\tMouseWheelListener mwl = new MouseWheelListener() {\n\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent me) {\n\t\t\t\tmouseWheelChanged(me);\n\t\t\t}\n\t\t};\n\t\tscrollPane.addMouseWheelListener(mwl);\n\n\t\t// ----------------------------------------------------------------------\n\t\t// ChangeListener\n\t\t// ----------------------------------------------------------------------\n\t\tChangeListener cl = new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent ce) {\n\t\t\t\t// viewPortSizeChanged(ce);\n\t\t\t}\n\t\t};\n\t\tscrollPane.getViewport().addChangeListener(cl);\n\n\t\t// addComponentListener\n\t\tscrollPane.getViewport().addComponentListener(new ComponentAdapter() {\n\t\t\t@Override\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tviewPortChanged(e);\n\t\t\t}\n\t\t});\n\n\t\t// addAdjustmentListener(AdjustmentListener l)\n\t\t// Scrollbar AdjustmentListener\n\t\tJScrollBar sb = scrollPane.getVerticalScrollBar();\n\t\tsb.addAdjustmentListener(new AdjustmentListener() {\n\n\t\t\t \n\t\t\tpublic void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\tverticalScrollBarChanged(e);\n\n\t\t\t}\n\n\t\t});\n\n\t\t// oldViewPortSize = indexViewPort.getExtentSize();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}",
"@Override\n\tpublic void initView() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n @NonNull\n protected V getPresenterViewHost() {\n return (V) this;\n }",
"private void registerViews() {\n\t}",
"StableView view();",
"void inject(HomeView homeView);",
"public interface HomeView extends BaseView {\n void getListData();\n}",
"@Override\r\n\tpublic View getView() {\n\t\treturn super.getView();\r\n\t}",
"@Override\n\tprotected void initContentView() {\n\t\t\n\t}",
"public void loadHostScreen(View view) {\n Intent intent = new Intent(this, HostActivity.class);\r\n startActivity(intent);\r\n }",
"@Override\n\tpublic void staticByViewListener() {\n\t\t\n\t}",
"protected void doView (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doView method not implemented\");\n }",
"private void addViews() {\n\t}",
"@Override\r\n\t\tpublic void setViewBinder(ViewBinder viewBinder) {\n\t\t\tsuper.setViewBinder(viewBinder);\r\n\t\t}",
"private void init() {\n //set view to presenter\n presenter.setView(this, service);\n\n setupView();\n }",
"@Override\n public View getView() {\n return mView;\n }",
"@Override\r\n public void run() {\n \r\n if(mCenterPanelWrapper == null) {\r\n mCenterPanelWrapper = UiCompat.createPersonaBackgroundPanel();\r\n mCenterWrapper = new PluginCenterPanelWrapper() {\r\n \r\n @Override\r\n public PluginCenterPanel[] getCenterPanels() {\r\n return new PluginCenterPanel[] {new PluginCenterPanelImpl()};\r\n }\r\n \r\n @Override\r\n public void scrolledToChannel(Channel channel) {\r\n if(mListPanel != null) {\r\n mListPanel.showChannel(channel);\r\n }\r\n }\r\n \r\n @Override\r\n public void filterSelected(ProgramFilter filter) {\r\n if(mListPanel != null) {\r\n mListPanel.showForFilter(filter);\r\n }\r\n }\r\n \r\n @Override\r\n public void scrolledToDate(Date date) {\r\n if(mListPanel != null) {\r\n mListPanel.showForDate(date, -1);\r\n }\r\n }\r\n \r\n @Override\r\n public void scrolledToNow() {\r\n if(mListPanel != null) {\r\n mListPanel.showForNow();\r\n }\r\n }\r\n \r\n @Override\r\n public void scrolledToTime(int time) {\r\n if(mListPanel != null) {\r\n mListPanel.showForTimeButton(time);\r\n }\r\n }\r\n \r\n @Override\r\n public void timeEvent() {\r\n if(mListPanel != null) {\r\n mListPanel.refreshView();\r\n }\r\n }\r\n };\r\n \r\n new Thread() {\r\n public void run() {\r\n while(!mTvBrowserStarted) {\r\n try {\r\n sleep(200);\r\n } catch (InterruptedException e) {}\r\n }\r\n \r\n addPanel();\r\n }\r\n }.start();\r\n }\r\n }",
"public void onViewportIn() {\n View child;\n AppWidgetHostView widgetView;\n AppWidgetProviderInfo widgetInfo;\n Intent intent;\n for (int i = this.getChildCount() - 1; i >= 0; i--) {\n try {\n child = this.getChildAt(i);\n if (child instanceof AppWidgetHostView) {\n widgetView = ((AppWidgetHostView) child);\n widgetInfo = widgetView.getAppWidgetInfo();\n int appWidgetId = widgetView.getAppWidgetId();\n intent = new Intent(LauncherIntent.Notification.NOTIFICATION_IN_VIEWPORT)\n .setComponent(widgetInfo.provider);\n intent.putExtra(LauncherIntent.Extra.EXTRA_APPWIDGET_ID, appWidgetId);\n intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);\n getContext().sendBroadcast(intent);\n }\n } catch (Exception e) {\n // LauncherApplication.reportExceptionStack(e);\n }\n }\n\n }",
"protected abstract void initViews();",
"protected abstract void initView();",
"public View getGuest(int anIndex) { return _scroller.getGuest(anIndex); }",
"@Override\n\tpublic View bindView() {\n\t\treturn null;\n\t}",
"public interface BrowserView extends MVPView {\n void showProgress();\n\n void showContent();\n\n void onConnected();\n\n void onDisconnected();\n}",
"public void execute(VirtualView virtualView){\n //method in virtualView\n }",
"public interface WordsAllView extends MvpView {\n void showWordlists(List<Word> wordlists);\n void setPresenter(WordsAllPresenter<WordsAllView> presenter);\n}",
"public interface HomePagePresenter extends BasePresenter{\n interface View extends BaseView{\n\n /**\n * 展示已收藏的项目\n * @param collectionList 已收藏的项目\n */\n void onViewShowCollectionList(List<CollectionModel> collectionList);\n\n /**\n * 打开已收藏的项目\n * @param collectionItem\n */\n void onViewOpenColletionItem(CollectionModel collectionItem);\n }\n void presenterItemClicked(CollectionModel collectionModel);\n}",
"public abstract void initViews();",
"@Override\n\tpublic void onScroll(HGridView view, int firstVisibleItem,\n\t\t\tint visibleItemCount, int totalItemCount) {\n\t}",
"@Override\n public void bindView() {\n this.addSearchBtnClickHandler();\n this.addAdvanceSearchBtnClickHandler();\n this.addSearchContentBoxClickHandler();\n }",
"protected abstract void onPresenter();",
"@Override\n\tpublic View getView() {\n\t\treturn super.getView();\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\trequestLayout();\n\t\t}",
"private android.view.View makeChannelsAndInfoScroller()\n\t{\n\t\t{\n\t\t\tchannelsAndInfoScroller = new ScrollView(getContext());\n\t\t\tchannelsAndInfoScroller.addView(makeChannelsAndInfo());\n\t\t}\n\t\treturn channelsAndInfoScroller;\n\t}",
"private void viewInit() {\n }",
"@Override\n\tpublic ModelAndView resolverView(PageContainer pContainer) throws Exception{\n\t\treturn null;\n\t}",
"protected abstract void setupMvpView();",
"@Override\n\tpublic void viewItem() {\n\t\t\n\t}",
"ViewMap<IBranchMapping> getView();",
"@Override\n\t\t\tpublic void onScrollingStarted(WheelView view) {\n\t\t\t}",
"public interface IBaseView<T> {\n\n boolean bindEvents();//是否需要在对应的控制器里绑定总线消息接听\n\n void showData(List<T> data, boolean canNext);\n\n void showLoadingProgress(boolean show);\n\n void showMessage(String mes);\n\n void showError(String mes);\n\n void onTokenError();\n\n}",
"public void initViews(){\n }",
"public interface IHomeView extends BaseIView {\n /**\n * 加载页面\n * @param status\n */\n void loadView(int status);\n}",
"public abstract void refreshView();",
"public Scroller getScroller() { return _scroller; }",
"@Override\n\tpublic void setView(Resultado resultado, HttpServletRequest request, HttpServletResponse response) {\n\n\t}",
"@Override\n public View getView()\n {\n return view;\n }",
"@Override\n public void Create() {\n\n initView();\n }",
"public abstract void initView();",
"@Override\n protected void initViewModel() {\n }",
"@Override\n\tpublic void findView() {\n\t\tinitUI();\n\t}",
"@Override public void computeScroll() {\n super.computeScroll();\n if (scroller != null) {\n scroller.computeScroll();\n }\n }",
"private void setMyScroller() {\n try {\n Class<?> viewpager = ViewPager.class;\n Field scroller = viewpager.getDeclaredField(getResources().getString(R.string.scroll_key));\n scroller.setAccessible(true);\n scroller.set(this, new MyScroller(getContext()));\n } catch (Exception e) {\n Logger.logInfo(String.valueOf(e));\n }\n }",
"@Override\n public void receiveView(View new_view) {\n remoteExecutor.execute(() -> super.receiveView(new_view));\n }",
"@Override\n public void send(VirtualView view) {\n view.update(this);\n }",
"@Override\n public void onViewCreate() {\n }",
"View getActiveView();"
] | [
"0.5637264",
"0.5578289",
"0.5577375",
"0.54971796",
"0.54962504",
"0.54962504",
"0.5480452",
"0.5474276",
"0.54451156",
"0.54451156",
"0.5441055",
"0.54407454",
"0.5409726",
"0.54049873",
"0.53972405",
"0.53925854",
"0.5391218",
"0.5390679",
"0.5390679",
"0.5388822",
"0.5383642",
"0.5380945",
"0.53705424",
"0.5364933",
"0.5360089",
"0.5357979",
"0.5357979",
"0.53522044",
"0.5348041",
"0.53476185",
"0.5334508",
"0.5316245",
"0.5309956",
"0.5295067",
"0.52905655",
"0.52829945",
"0.5280331",
"0.5278923",
"0.5269591",
"0.5267032",
"0.5267032",
"0.52011865",
"0.5195222",
"0.5191261",
"0.51791286",
"0.51749194",
"0.5174363",
"0.51714236",
"0.5160056",
"0.5158861",
"0.5152332",
"0.51323175",
"0.51261294",
"0.5122894",
"0.5115254",
"0.5108178",
"0.5108008",
"0.5104312",
"0.5095836",
"0.50933367",
"0.50925297",
"0.5091991",
"0.50813407",
"0.5075647",
"0.50656486",
"0.505693",
"0.50491846",
"0.50459397",
"0.5040671",
"0.5035591",
"0.5034092",
"0.50286573",
"0.50188404",
"0.50187135",
"0.50158024",
"0.5014616",
"0.50106055",
"0.5009563",
"0.5009556",
"0.500907",
"0.500742",
"0.5005049",
"0.5002873",
"0.5001952",
"0.4994325",
"0.49942267",
"0.49925086",
"0.4976436",
"0.49713168",
"0.4966953",
"0.49565312",
"0.49529162",
"0.49518776",
"0.494994",
"0.49466622",
"0.4943966",
"0.49402344",
"0.49397156",
"0.49217182",
"0.4920593",
"0.49153933"
] | 0.0 | -1 |
Returns the view that handles scrolling. | public Scroller getScroller() { return _scroller; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ScrollPane scrollPane() {\r\n return (ScrollPane) this.getParent();\r\n }",
"public View getView() { return view; }",
"public OverScroller getScroller() {\n return mEventHandler.getScroller();\n }",
"public View getView() {\n return view;\n }",
"public ViewIdentificator getView() {\r\n return view;\r\n }",
"public View getView() {\n\t\treturn view;\n\t}",
"@Override\r\n\tpublic View getView() {\n\t\treturn this.view;\r\n\t}",
"private View getView() {\n try {\n return (View) this.webView.getClass().getMethod(\"getView\", new Class[0]).invoke(this.webView, new Object[0]);\n } catch (Exception unused) {\n return (View) this.webView;\n }\n }",
"public interface C27361Hn {\n C255119b getScrollingViewProxy();\n}",
"public EventHandler<ScrollToEvent<Integer>> getOnScrollTo() {\n\n return this.getWrappedControl().getOnScrollTo();\n }",
"protected boolean allowViewToScroll() {\n return true;\n }",
"public Rectangle getScrollRectangle() {\r\n return scrollRectangle;\r\n }",
"ViewElement getViewElement();",
"public HBox getView() {\n return this;\n }",
"public BwView getView() {\n if (view == null) {\n view = new BwView();\n }\n\n return view;\n }",
"default View getView() {\n return null;\n }",
"public View getViewAllPanels()\n\t{\n\t\treturn view;\n\t}",
"@Override\r\n\tpublic View getView() {\n\t\treturn super.getView();\r\n\t}",
"public java.lang.Boolean getView() {\n return view;\n }",
"public View getGuest(int anIndex) { return _scroller.getGuest(anIndex); }",
"public JScrollPane getCurrent() {\n return scrollPane;\n }",
"@VisibleForTesting\n public View findScrollingChild(View view) {\n if (ViewCompat.isNestedScrollingEnabled(view)) {\n return view;\n }\n if (view instanceof ViewGroup) {\n ViewGroup viewGroup = (ViewGroup) view;\n int childCount = viewGroup.getChildCount();\n for (int i = 0; i < childCount; i++) {\n View findScrollingChild = findScrollingChild(viewGroup.getChildAt(i));\n if (findScrollingChild != null) {\n return findScrollingChild;\n }\n }\n }\n return null;\n }",
"@Override\r\n public View getView() {\r\n return mBaseView;\r\n }",
"private org.gwtproject.user.client.ui.ScrollPanel get_f_ScrollPanel1() {\n return build_f_ScrollPanel1();\n }",
"private android.view.View makeChannelsAndInfoScroller()\n\t{\n\t\t{\n\t\t\tchannelsAndInfoScroller = new ScrollView(getContext());\n\t\t\tchannelsAndInfoScroller.addView(makeChannelsAndInfo());\n\t\t}\n\t\treturn channelsAndInfoScroller;\n\t}",
"@Override\n\tpublic View getView() {\n\t\treturn super.getView();\n\t}",
"@Override\n public View getView()\n {\n return view;\n }",
"@Override\n public View getView() {\n return mView;\n }",
"public ScrollPaneUI getUI() {\n/* 368 */ return (ScrollPaneUI)this.ui;\n/* */ }",
"@NonNull\n public final AutoRef<View> getView() throws IllegalStateException, ReferenceNullException {\n return AutoRef.of(getBinding().get().getRoot());\n }",
"public int getScrollNeededToBeFullScreen() {\n return getTransparentViewHeight();\n }",
"public ObjectProperty<EventHandler<ScrollToEvent<Integer>>> onScrollToProperty() {\n\n return this.getWrappedControl().onScrollToProperty();\n }",
"View getActiveView();",
"public Pane getView() {\n return gridPane;\n }",
"private JScrollPane getJScrollPane()\n {\n if( jScrollPane == null )\n {\n jScrollPane = new JScrollPane();\n jScrollPane.setViewportView( getM_areaRecieved() ); // Generated\n }\n return jScrollPane;\n }",
"public View getView(int n) {\n return view;\n }",
"public final ListView<T> getTargetListView() {\n/* 425 */ return this.targetListView;\n/* */ }",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"public String getView();",
"public String getView();",
"public WindowContent getViewContent() {\r\n return this.windowContent;\r\n }",
"@Override // com.android.systemui.statusbar.notification.row.StackScrollerDecorView\n public View findContentView() {\n return findViewById(C0015R$id.no_notifications);\n }",
"private ViewFrame getViewFrame() {\n\t\treturn this.viewFrame;\n\t}",
"@Override\n public boolean scrolled(int arg0) {\n return false;\n }",
"private JScrollPane getDetailScrollPane() {\n if (detailScrollPane == null) {\n detailScrollPane = new JScrollPane();\n detailScrollPane.setViewportView(getDetailPane());\n }\n return detailScrollPane;\n }",
"@Override\n\tpublic final Element getViewportElement() {\n\t\treturn isCSS1Compat() ? getDocumentElement() : getBody();\n\t}",
"public int getScroll() {\n return mTransparentStartHeight - getTransparentViewHeight() + getMaximumScrollableHeaderHeight()\n - getToolbarHeight() + mScrollView.getScrollY();\n }",
"public View getView() {\n // Create view lazily only once it's needed\n if (this.furnitureView == null) {\n this.furnitureView = this.viewFactory.createFurnitureView(this.home, this.preferences, this);\n }\n return this.furnitureView;\n }",
"public Rectangle getViewRectangle() {\n\t\treturn null;\n\t}",
"private JScrollPane getConsoleScroll() {\r\n\t\tif (consoleScroll == null) {\r\n\t\t\tconsoleScroll = new JScrollPane();\r\n\t\t\tconsoleScroll.setViewportView(getConsole());\r\n\t\t}\r\n\t\treturn consoleScroll;\r\n\t}",
"public String getScrollId() {\n return scrollId;\n }",
"@Override public void computeScroll() {\n super.computeScroll();\n if (scroller != null) {\n scroller.computeScroll();\n }\n }",
"public ViewFactory getViewFactory()\n {\n return this;\n }",
"ImageView getView() {\n return view;\n }",
"public JScrollPane getScrollDireccion(){\n\t\tif(scrollDireccion == null){\n\t\t\tscrollDireccion = new JScrollPane();\n\t\t\tscrollDireccion.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));\n\t\t\tscrollDireccion.setViewportView(getDireccion());\n\t\t}\n\t\treturn scrollDireccion;\n\t}",
"@Override\n\tpublic KrollDict getRect()\n\t{\n\t\tView view = null;\n\t\tif (this.holder != null) {\n\t\t\tview = this.holder.getNativeView();\n\t\t}\n\t\treturn getViewRect(view);\n\t}",
"void onScroll(boolean bDragging);",
"private JScrollBar getJScrollBar() {\r\n\t\tif (jScrollBar == null) {\r\n\t\t\tjScrollBar = new JScrollBar();\r\n\t\t\tjScrollBar.setBounds(new Rectangle(591, 127, 17, 333));\r\n\t\t}\r\n\t\treturn jScrollBar;\r\n\t}",
"@Override // com.android.systemui.statusbar.notification.row.StackScrollerDecorView\n public View findSecondaryView() {\n return null;\n }",
"protected ViewGroup getDecorView() {\n if (getContext() instanceof Activity) {\n View decor = ((Activity) getContext()).getWindow().getDecorView();\n\n if (decor instanceof ViewGroup) {\n return (ViewGroup) decor;\n }\n }\n\n //Try to fetch DecorView from parents\n ViewGroup view = this;\n while (view.getParent() != null && view.getParent() instanceof ViewGroup) {\n view = (ViewGroup) view.getParent();\n }\n return view;\n }",
"private JScrollPane getJScrollPane() {\r\n\t\tif (jScrollPane == null) {\r\n\t\t\tjScrollPane = new JScrollPane();\r\n\t\t\tjScrollPane.setPreferredSize(new Dimension(259, 60));\r\n\t\t\tjScrollPane.setViewportView(getPayloads());\r\n\t\t}\r\n\t\treturn jScrollPane;\r\n\t}",
"@Override\n\tpublic int getView() {\n\t\treturn R.layout.activity_topnews;\n\t}",
"@Override\r\n public boolean onTouchEvent(MotionEvent event) {\n \t\r\n \tif(!enableScrollFlag) return false;\r\n\r\n if (mVelocityTracker == null) {\r\n mVelocityTracker = VelocityTracker.obtain();\r\n }\r\n mVelocityTracker.addMovement(event);\r\n\r\n final int action = event.getAction();\r\n final float x = event.getX();\r\n final float y = event.getY();\r\n \r\n\r\n switch (action) {\r\n case MotionEvent.ACTION_DOWN:\r\n \t\r\n if (!mScroller.isFinished()) {\r\n mScroller.abortAnimation();\r\n }\r\n mLastMotionX = x;\r\n mTouchState = TOUCH_STATE_SCROLLING;\r\n break;\r\n case MotionEvent.ACTION_MOVE:\r\n \t\r\n if (mTouchState == TOUCH_STATE_SCROLLING) {\r\n // Scroll to follow the motion event\r\n final int deltaX = (int) (mLastMotionX - x);\r\n mLastMotionX = x;\r\n\r\n final int scrollX = getScrollX();\r\n\r\n if (deltaX < 0) {\r\n if (scrollX > 0) {\r\n \t\r\n \tif(mLeftViewAvailable) {\r\n \t\tscrollBy(Math.max(-scrollX, deltaX), 0);\r\n } else if(scrollX > getChildAt(0).getRight()) {\r\n \tscrollBy(Math.max(-(scrollX - getChildAt(0).getRight()), deltaX), 0);\r\n }\r\n }\r\n } else if (deltaX > 0) {\r\n int availableToScroll = 0;\r\n if(mRightViewAvailable) {\r\n \tavailableToScroll = getChildAt(getChildCount() - 1).getRight() - scrollX - getWidth();\r\n } else {\r\n \tavailableToScroll = getChildAt(1).getRight() - scrollX - getWidth();\r\n }\r\n \r\n if (availableToScroll > 0) {\r\n scrollBy(Math.min(availableToScroll, deltaX), 0);\r\n }\r\n }\r\n }\r\n \r\n if(Math.abs(onClickDownX - x) > 50 || Math.abs(onClickDownY - y) > 50) {\r\n \tonClickAble = false;\r\n }\r\n \r\n \r\n break;\r\n case MotionEvent.ACTION_UP:\r\n \t\r\n \tboolean clickHandle = false;\r\n \tlong deltaTime = System.currentTimeMillis() - onClickStartTime;\r\n \tif(mCurrentScreen != 1 && onClickAble && deltaTime < 2000) {\r\n \t\tif(mCurrentScreen == 0) {\r\n \t\t\tif(x > getWidth() - mSlideLength) {\r\n \t\t\t\tsnapToScreen(1);\r\n \t\t\t\tclickHandle = true;\r\n \t\t\t}\r\n \t\t} else if(mCurrentScreen == 2) {\r\n \t\t\tif(x < mSlideLength) {\r\n \t\t\t\tsnapToScreen(1);\r\n \t\t\t\tclickHandle = true;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n if (mTouchState == TOUCH_STATE_SCROLLING) {\r\n \t\r\n \tif(!clickHandle) {\r\n \t\tfinal VelocityTracker velocityTracker = mVelocityTracker;\r\n velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity);\r\n int velocityX = (int) velocityTracker.getXVelocity();\r\n\r\n if (velocityX > SNAP_VELOCITY && mCurrentScreen > 0) {\r\n // Fling hard enough to move left\r\n snapToScreen(mCurrentScreen - 1);\r\n } else if (velocityX < -SNAP_VELOCITY && mCurrentScreen < getChildCount() - 1) {\r\n // Fling hard enough to move right\r\n snapToScreen(mCurrentScreen + 1);\r\n } else {\r\n snapToDestination();\r\n }\r\n \t}\r\n\r\n if (mVelocityTracker != null) {\r\n mVelocityTracker.recycle();\r\n mVelocityTracker = null;\r\n }\r\n }\r\n \r\n break;\r\n case MotionEvent.ACTION_CANCEL:\r\n mTouchState = TOUCH_STATE_REST;\r\n break;\r\n }\r\n \r\n if(scrollingListener != null) {\r\n \tint scrollX = getScrollX();\r\n \tif(scrollX == (getWidth() - mSlideLength)) {\r\n \t\tscrollingListener.scrolling(scrollX, 0);\r\n \t} else if(scrollX < (getWidth() - mSlideLength)) {\r\n \t\tscrollingListener.scrolling(scrollX, -1);\r\n \t} else {\r\n \t\tscrollingListener.scrolling(scrollX, 1);\r\n \t}\r\n }\r\n \r\n return true;\r\n }",
"public ViewProcessor getViewProcessor() {\n return _viewProcessor;\n }",
"private AbsListView.OnScrollListener getScrollListener() {\n return new AbsListView.OnScrollListener() {\n /**\n * Stop image request queue when list is being flung. No point in\n * loading images unless user stops to look at them.\n */\n @Override\n public void onScrollStateChanged(AbsListView absListView, int scrollState) {\n // ensures smoother scrolling\n if (scrollState == AbsListView.OnScrollListener.SCROLL_STATE_FLING) {\n imageRequestQueue.stop();\n } else {\n imageRequestQueue.start();\n }\n }\n\n /**\n * Load more posts automatically when user scrolls to bottom.\n */\n @Override\n public void onScroll(AbsListView absListView, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n if (totalItemCount - visibleItemCount <= firstVisibleItem) {\n autoLoadPosts();\n }\n }\n };\n }",
"public DrawingView view() {\n return fView;\n }",
"@Override\n\tpublic final int getScrollHeight() {\n\t\t// TODO(dramaix): Use document.scrollingElement when its available. See\n\t\t// getScrollLeft().\n\t\treturn getViewportElement().getScrollHeight();\n\t}",
"private HistoryViewPanel getViewPanel() {\n if (viewPanel == null) {\n viewPanel = new HistoryViewPanel();\n viewPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"\",\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));\n }\n\n return viewPanel;\n }",
"public interface ScrollPanel<T> {\n /**\n * Moves the viewport so that {@code location} is at the viewport top.\n *\n * @param location content-space location to appear at the top of the\n * viewport.\n */\n void moveTo(double location);\n\n /** @return the viewport extent of this scroller. */\n Extent getViewport();\n\n /** @return the content extent of this scroller. */\n Extent getContent();\n\n /** @return the extent of a view within this panel. */\n Extent extentOf(T view);\n\n}",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"public Boolean getContainerScroll () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.containerScroll);\r\n\t}",
"@Override\n @SuppressLint(\"ClickableViewAccessibility\")\n public boolean onTouchEvent(MotionEvent ev) {\n if (mScroller != null && mScroller.onTouchEvent(ev)) return true;\n if (mScroller != null && mGestureDetector == null) {\n mGestureDetector = new GestureDetector(getContext(), new GestureDetector.SimpleOnGestureListener() {\n @Override\n public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {\n // If fling happens, index bar shows\n mScroller.show();\n return super.onFling(e1, e2, velocityX, velocityY);\n }\n });\n }\n if (mGestureDetector != null) mGestureDetector.onTouchEvent(ev);\n if (mScroller != null && ev.getAction() == MotionEvent.ACTION_UP) postInvalidate();\n return super.onTouchEvent(ev);\n }",
"String getViewClass();",
"public Rectangle2D getView() {\r\n return new Rectangle2D.Double(minX, minY, maxX - minX, maxY - minY);\r\n }",
"public JViewport getViewport() {\n/* 938 */ return this.viewport;\n/* */ }",
"@Override\n public String getFamily() {\n\n return (\"Scroller\");\n\n }",
"@Override\n\tpublic View GetDynamicView() {\n\t\treturn null;\n\t}",
"@Override\n public void onGlobalLayout() {\n onScrollChanged(scrollView.getScrollY());\n }",
"public abstract boolean scroll(Direction direction);",
"Views getViews();",
"public T getViewDataBinding() {\n return mViewDataBinding;\n }",
"int getViewId();",
"protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }",
"public java.lang.String getView() {\n return view;\n }",
"public java.lang.String getView() {\n return view;\n }",
"public java.lang.String getView() {\n return view;\n }",
"public JScrollPane getScrollPane() {\n // Create the nodes.\n PopupTree tree = treeComponent.createLiveRearrangerTree();\n\n /** only expand node where cursor is located. Inspect all rows; deepest node that covers\n * cursor location is the best to expand. (Parent node like a class contains a method where\n * the cursor is; we want to expand the method, not just the class.\n */\n int expandRow = -1;\n for (int i = 0; i < tree.getRowCount(); i++) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getPathForRow(i).getLastPathComponent();\n if (node.getUserObject() instanceof RangeEntry) {\n RangeEntry re = (RangeEntry)node.getUserObject();\n if (re.getStart().getTextRange().getStartOffset() <= cursorOffset &&\n re.getEnd().getTextRange().getEndOffset() >= cursorOffset)\n {\n LOG.debug(\n \"node \" +\n i +\n \" contained cursor (offset=\" +\n cursorOffset +\n \"): \" + re\n );\n expandRow = i;\n }\n }\n else {\n LOG.debug(\"expand node candidate not RangeEntry; node=\" + node);\n }\n }\n if (expandRow >= 0) {\n LOG.debug(\"expand row \" + expandRow);\n tree.expandRow(expandRow);\n }\n JScrollPane treeView = new JScrollPane(tree);\n treeView.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\n treeView.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n Dimension d = treeView.getPreferredSize();\n if (d.width < 400) d.width = 400;\n if (d.height < 300) d.height = 300;\n treeView.setPreferredSize(d);\n tdt = new TreeDropTarget(tree, this);\n tds = new TreeDragSource(tree, DnDConstants.ACTION_MOVE, tdt);\n return treeView;\n }",
"protected View getCompartmentView() {\n\t\tView view = (View) getDecoratorTarget().getAdapter(View.class);\r\n\t\tIterator it = view.getPersistedChildren().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tView child = (View) it.next();\r\n\t\t\tif (child.getType().equals(DeployCoreConstants.HYBRIDLIST_SEMANTICHINT)) {\r\n\t\t\t\treturn child;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\n public boolean onTouch(View v, MotionEvent event) {\n if (event.getAction() == MotionEvent.ACTION_UP || event.getAction() == MotionEvent.ACTION_CANCEL) {\n int scrollX = getScrollX() + getMeasuredWidth()/2;\n View layout = getChildForOffset(scrollX);\n if (layout != null){\n smoothScrollTo(layout.getLeft() - getMeasuredWidth()*2/5, 0);\n }\n return true;\n } else {\n return false;\n }\n }",
"public abstract @Nullable View getKeyboardFocusView();",
"StableView view();",
"@Override\r\n\t\tpublic ViewBinder getViewBinder() {\n\t\t\treturn super.getViewBinder();\r\n\t\t}",
"public Boards getView(Long bno);",
"private JScrollPane getScrollPane() {\n\t\tif (scrollPane == null) {\n\t\t\tscrollPane = new JScrollPane();\n\t\t\tscrollPane.setViewportView(getTable());\n\t\t}\n\t\treturn scrollPane;\n\t}",
"@Override\n public void onGlobalLayout() {\n scrollView.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n\n // Get visible height of scroll view\n Rect rect = new Rect();\n scrollView.getLocalVisibleRect(rect);\n int height = rect.height() - DimensionUtils.dpToPx(16, mActivity);\n\n // Set min height\n layoutContainer.setMinimumHeight(height);\n }",
"public Region getObject() {\n\t\treturn myScrollPane;\n\t}",
"@Override\n\tprotected int getViewId() {\n\t\treturn R.layout.layout_square_live;\n\t}",
"public ViewPosition getViewPosition() {\n\t\treturn null;\n\t}",
"public JScrollPane getJScrollPane() { return jScrollPane; }"
] | [
"0.6403821",
"0.6250465",
"0.62472427",
"0.61632496",
"0.61470455",
"0.60793686",
"0.6049653",
"0.60122436",
"0.59920967",
"0.5821419",
"0.5805589",
"0.58016145",
"0.57997984",
"0.5779789",
"0.5763201",
"0.57399195",
"0.573127",
"0.5726803",
"0.56994253",
"0.56911105",
"0.56861955",
"0.56807727",
"0.5677608",
"0.5675625",
"0.5654236",
"0.5652825",
"0.564883",
"0.5644879",
"0.56152314",
"0.5581752",
"0.5580495",
"0.55363226",
"0.5513456",
"0.54988575",
"0.5493745",
"0.54645276",
"0.5457041",
"0.54252315",
"0.5420682",
"0.5420682",
"0.54173774",
"0.54166096",
"0.5408929",
"0.5407248",
"0.54027814",
"0.540273",
"0.5381584",
"0.53765607",
"0.53749603",
"0.5372188",
"0.5365268",
"0.5362949",
"0.5362027",
"0.5355964",
"0.5344281",
"0.53100264",
"0.53031504",
"0.5300776",
"0.5300485",
"0.5299006",
"0.52910304",
"0.5285591",
"0.52782226",
"0.52725613",
"0.5260941",
"0.5258689",
"0.52505666",
"0.5248449",
"0.5247326",
"0.5245258",
"0.5245258",
"0.5240718",
"0.522971",
"0.52229744",
"0.5215258",
"0.5191407",
"0.51885813",
"0.51792455",
"0.5174166",
"0.51707715",
"0.51578635",
"0.5140604",
"0.5140434",
"0.51393527",
"0.5136029",
"0.5136029",
"0.5136029",
"0.51348025",
"0.51343894",
"0.5133468",
"0.5110733",
"0.51071113",
"0.5101548",
"0.5099185",
"0.5094701",
"0.50916636",
"0.50859547",
"0.5073386",
"0.50717264",
"0.5070978"
] | 0.57998323 | 12 |
Returns the Horizontal ScrollBar. | public ScrollBar getHBar()
{
if (_hbar!=null) return _hbar;
_hbar = new ScrollBar();
_hbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);
return _hbar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected RectF getHorizontalScrollBarRect() {\n return mHorizontalScrollBar;\n }",
"public JScrollBar createHorizontalScrollBar() {\n/* 814 */ return new ScrollBar(0);\n/* */ }",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* */ }",
"@Transient\n/* */ public JScrollBar getHorizontalScrollBar() {\n/* 827 */ return this.horizontalScrollBar;\n/* */ }",
"public boolean horizontalScroll()\n {\n return horizontalScroll;\n }",
"int getVScrollbarWidth();",
"private void drawScrollBarHorizontal(Canvas canvas,int width) {\n int page = getWidth();\n float all = getScrollMaxX() + getWidth();\n float length = page / all * getWidth();\n float leftX = getOffsetX() / all * getWidth();\n mRect.top = getHeight() - mDpUnit * width;\n mRect.bottom = getHeight();\n mRect.right = leftX + length;\n mRect.left = leftX;\n mHorizontalScrollBar.set(mRect);\n drawColor(canvas,mColors.getColor(mEventHandler.holdHorizontalScrollBar() ? ColorScheme.SCROLL_BAR_THUMB_DOWN : ColorScheme.SCROLL_BAR_THUMB),mRect);\n }",
"int getScrollLeft();",
"int getScrollOffsetX();",
"private void drawScrollBarTrackHorizontal(Canvas canvas,int width) {\n if(mEventHandler.holdHorizontalScrollBar()) {\n mRect.top = getHeight() - mDpUnit * width;\n mRect.bottom = getHeight();\n mRect.right = getWidth();\n mRect.left = 0;\n drawColor(canvas,mColors.getColor(ColorScheme.SCROLL_BAR_TRACK),mRect);\n }\n }",
"public int getScrollWidth() {\n\t\treturn this.scrollWidth;\n\t}",
"public void setHorizontalScrollBar(JScrollBar paramJScrollBar) {\n/* 847 */ JScrollBar jScrollBar = getHorizontalScrollBar();\n/* 848 */ this.horizontalScrollBar = paramJScrollBar;\n/* 849 */ if (paramJScrollBar != null) {\n/* 850 */ add(paramJScrollBar, \"HORIZONTAL_SCROLLBAR\");\n/* */ }\n/* 852 */ else if (jScrollBar != null) {\n/* 853 */ remove(jScrollBar);\n/* */ } \n/* 855 */ firePropertyChange(\"horizontalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 857 */ revalidate();\n/* 858 */ repaint();\n/* */ }",
"public boolean isHorizontalScrollingEnabled() {\n return config.horizontalScrollingEnabled;\n }",
"PdfViewerScrollBarHorizontal(PdfViewerController controller)\n {\n super(JScrollBar.HORIZONTAL, controller);\n setUI(ui);\n addAdjustmentListener(new AdjustmentListener()\n {\n public void adjustmentValueChanged(AdjustmentEvent e)\n {\n scrollPosition = e.getValue();\n try\n {\n PdfViewerScrollBarHorizontal.this.controller.scrollTo(scrollPosition,\n PdfViewerScrollBarHorizontal.this.controller.getViewportOrigin().y);\n } catch (PdfViewerException ex)\n {\n DebugLogger.log(ex.toString());\n }\n }\n });\n\n addComponentListener(new ComponentListener()\n {\n\n public void componentShown(ComponentEvent e)\n {\n }\n\n public void componentResized(ComponentEvent e)\n {\n update();\n repaint();\n }\n\n public void componentMoved(ComponentEvent e)\n {\n }\n\n public void componentHidden(ComponentEvent e)\n {\n }\n });\n }",
"public int getHorizontalMargin() {\n return mLayoutManager.getHorizontalMargin();\n }",
"public void setHorizontalScrollBarPolicy(int paramInt) {\n/* 548 */ switch (paramInt) {\n/* */ case 30:\n/* */ case 31:\n/* */ case 32:\n/* */ break;\n/* */ default:\n/* 554 */ throw new IllegalArgumentException(\"invalid horizontalScrollBarPolicy\");\n/* */ } \n/* 556 */ int i = this.horizontalScrollBarPolicy;\n/* 557 */ this.horizontalScrollBarPolicy = paramInt;\n/* 558 */ firePropertyChange(\"horizontalScrollBarPolicy\", i, paramInt);\n/* 559 */ revalidate();\n/* 560 */ repaint();\n/* */ }",
"public int getMinX() {\n return scroller.getMinX();\n }",
"public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}",
"@java.lang.Override\n public int getScrollOffsetX() {\n return instance.getScrollOffsetX();\n }",
"@Override\n\tpublic ScrollBar createScrollBar() {\n\t\tLightVisualThemeScrollBar lightVisualThemeScrollBar = new LightVisualThemeScrollBar();\n\t\treturn lightVisualThemeScrollBar;\n\t}",
"@java.lang.Override\n public int getScrollOffsetX() {\n return scrollOffsetX_;\n }",
"public double getRelativeHorizontalIncrement() {\n var pane = (ScrollPane) getNode();\n var region = getRegionToScroll();\n return region == null ? 0 : increment / (region.getWidth() - pane.getViewportBounds().getWidth());\n }",
"JScrollBar getScrollBar() {\n return scrollBar;\n }",
"@Override\n\tpublic final int getScrollLeft() {\n\t\treturn DOMImpl.impl.getScrollLeft(documentFor());\n\t}",
"public static Component horizontal() {\n return Box.createRigidArea(new Dimension(gap, 0));\n }",
"@Override\n\tpublic final int getScrollWidth() {\n\t\t// TODO(dramaix): Use document.scrollingElement when its available. See\n\t\t// getScrollLeft().\n\t\treturn getViewportElement().getScrollWidth();\n\t}",
"public double getLeftJoystickHorizontal() {\n\t\treturn getRawAxis(LEFT_STICK_HORIZONTAL);\n\t}",
"public int getScrollMaxX(){\n return (int)Math.max(0, mMaxPaintX - getWidth() / 2f);\n }",
"public void setHorizontalScrollingEnabled(boolean enabled) {\n config.horizontalScrollingEnabled = enabled;\n }",
"protected double getMinWidthImpl()\n {\n Insets ins = getInsetsAll();\n double minW = _scroller.getMinWidth();\n return minW + ins.getWidth();\n }",
"@Override\n protected int computeHorizontalScrollRange() {\n return (int) scaledRightBound;\n }",
"@Override\r\n\tpublic int getDefaultWidth() {\n\t\tint w=0;\r\n\t\tToolbarLayout tl = (ToolbarLayout) getLayoutManager();\r\n\t\tif(tl.isHorizontal()){\t\t\r\n\t\t\tList list = getChildren();\r\n\t\t\tif(list.size()>0){\r\n\t\t\t\tfor (Object obj : list) {\r\n\t\t\t\t\tAbstractElementFigure fig = (AbstractElementFigure) obj;\r\n\t\t\t\t\tw+=fig.getDefaultWidth();\r\n\t\t\t\t}\r\n\t\t\t\treturn w;\r\n\t\t\t}\t\t\r\n\t\t}else{\r\n\t\t\tList list = getChildren();\r\n\t\t\tint max = 0;\r\n\t\t\tif(list.size()>0){\r\n\t\t\t\tfor (Object obj : list) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tAbstractElementFigure fig = (AbstractElementFigure) obj;\r\n\t\t\t\t\tif(max < fig.getDefaultWidth()){\r\n\t\t\t\t\t\tmax = fig.getDefaultWidth();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn max;\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\treturn 100;\r\n\t}",
"private JPanel leftBar() {\n\t\tJPanel leftBar = new JPanel();\n\t\tColor myPurp = new Color(191, 123, 123);\n\t\tleftBar.setBackground(myPurp);\n\t\tleftBar.setLayout(new BoxLayout(leftBar, BoxLayout.Y_AXIS));\n\t\t\n\t\t//creating slider that determines speed\n\t\tJLabel milliSecs = new JLabel(\"ms between\", JLabel.LEFT);\n\t\tJLabel generations = new JLabel(\"generations\", JLabel.LEFT);\n\t\tspeed.addChangeListener(this);\n\t\tspeed.setPaintTicks(true);\n\t\tspeed.setMajorTickSpacing(500);\n\t\tspeed.setPaintLabels(true);\n\t\tspeed.setMinorTickSpacing(250);\n\t\tleftBar.add(milliSecs);\n\t\tleftBar.add(generations);\n\t\tleftBar.add(speed);\n\t\t\n\t\t//creating slider that determines grid size\n\t\tJLabel dimensionsLabel = new JLabel(\"dimensions\");\n\t\tgridSize.addChangeListener(this);\n\t\tgridSize.setPaintTicks(true);\n\t\tgridSize.setMajorTickSpacing(10);\n\t\tgridSize.setPaintLabels(true);\n\t\tleftBar.add(dimensionsLabel);\n\t\tleftBar.add(gridSize);\n\t\tpack();\n\t\t\n\t\treturn leftBar;\n\t}",
"private void checkHorizontalScrollBar(BasicComboPopup popup)\n\t{\n\n\t\tJViewport viewport = scrollPane.getViewport();\n\t\tPoint p = viewport.getViewPosition();\n\t\tp.x = 0;\n\t\tviewport.setViewPosition( p );\n\n\t\t// Remove the scrollbar so it is never painted\n\n\t\tif (! scrollBarRequired)\n\t\t{\n\t\t\tscrollPane.setHorizontalScrollBar( null );\n\t\t\treturn;\n\t\t}\n\n\t\t//\tMake sure a horizontal scrollbar exists in the scrollpane\n\n\t\tJScrollBar horizontal = scrollPane.getHorizontalScrollBar();\n\n\t\tif (horizontal == null)\n\t\t{\n\t\t\thorizontal = new JScrollBar(JScrollBar.HORIZONTAL);\n\t\t\tscrollPane.setHorizontalScrollBar( horizontal );\n\t\t\tscrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );\n\t\t}\n\n\t\t//\tPotentially increase height of scroll pane to display the scrollbar\n\n\t\tif (horizontalScrollBarWillBeVisible(popup, scrollPane))\n\t\t{\n\t\t\tDimension scrollPaneSize = scrollPane.getPreferredSize();\n\t\t\tscrollPaneSize.height += horizontal.getPreferredSize().height;\n\t\t\tscrollPane.setPreferredSize(scrollPaneSize);\n\t\t\tscrollPane.setMaximumSize(scrollPaneSize);\n\t\t\tscrollPane.revalidate();\n\t\t}\n\t}",
"public static Layout createHorizontalFlowLayout() {\n\t\treturn createHorizontalFlowLayout(null, 0);\n\t}",
"public int getHorX() {\r\n return horX;\r\n }",
"void setScrollLeft(int scrollLeft);",
"public FloatingSliderPanel getHorizontalExpenseSlider() {\n\t\treturn horizontalExpenseSlider;\n\t}",
"public int getMaxX() {\n return scroller.getMaxX();\n }",
"@Override\n protected int computeHorizontalScrollOffset() {\n return (int) -panX;\n }",
"float getHorizontalMargin() {\n return mTn.mHorizontalMargin;\n }",
"private JScrollBar getJScrollBar() {\r\n\t\tif (jScrollBar == null) {\r\n\t\t\tjScrollBar = new JScrollBar();\r\n\t\t\tjScrollBar.setBounds(new Rectangle(591, 127, 17, 333));\r\n\t\t}\r\n\t\treturn jScrollBar;\r\n\t}",
"public ScrollBar getVBar()\n {\n if (_vbar!=null) return _vbar;\n _vbar = new ScrollBar(); _vbar.setVertical(true);\n _vbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _vbar;\n }",
"HorizontalControl () {\n \n barY = 15; //40;\n barHeight = 40; //15;\n \n minX = 40;\n maxX = minX + width/3 - sliderWidth/2;\n \n minZoomValue = texture.width - texture.width;\n maxZoomValue = texture.width; // 300 percent\n valuePerX = (maxZoomValue - minZoomValue) / (maxX - minX);\n \n sliderWidth = 10; //25;\n sliderHeight = 25; //10;\n // sliderY = (barY + (barHeight/2)) - (sliderHeight/2);\n sliderY = (barY - (sliderHeight/2)) + (barHeight/2);\n sliderValue = minZoomValue; \n sliderX = minX; \n }",
"@Override\n public boolean canScrollHorizontally() {\n return isScrollEnabled && super.canScrollHorizontally();\n }",
"public void scrollHorizontal(float amount)\n {\n scroll(amount, 0);\n }",
"public int getPreferredHorizontalOffset() {\n\t\treturn preferredHorizontalOffset;\n\t}",
"@JSProperty(\"scrollbar\")\n @Nullable\n ZAxisScrollbarOptions getScrollbar();",
"public boolean isHorizontalHighlightIndicatorEnabled() { return this.mDrawHorizontalHighlightIndicator; }",
"public static interface HorizontallyScrollable {\n /**\n * Return {@code true} if the component needs to receive right-to-left\n * touch movements.\n *\n * @param origX the raw x coordinate of the initial touch\n * @param origY the raw y coordinate of the initial touch\n */\n\n public boolean interceptMoveLeft(float origX, float origY);\n\n /**\n * Return {@code true} if the component needs to receive left-to-right\n * touch movements.\n *\n * @param origX the raw x coordinate of the initial touch\n * @param origY the raw y coordinate of the initial touch\n */\n public boolean interceptMoveRight(float origX, float origY);\n }",
"public BoundedRangeModel getHorizontalVisibility() {\n return visibility;\n }",
"public Rectangle getScrollRectangle() {\r\n return scrollRectangle;\r\n }",
"private HorizontalLayout getMainContainer() {\n HorizontalLayout main = new HorizontalLayout();\n main.setWidth(\"100%\");\n main.setHeight(\"100%\");\n\n return main;\n }",
"public int getScroll() {\n return mTransparentStartHeight - getTransparentViewHeight() + getMaximumScrollableHeaderHeight()\n - getToolbarHeight() + mScrollView.getScrollY();\n }",
"int getHScrollbarHeight();",
"public boolean isHorizontalFlingEnabled() {\n return config.horizontalFlingEnabled;\n }",
"private void drawScrollBar() {\r\n\r\n\t _scrollOffsetX = 68;\r\n\t _scrollOffsetY = _resolutionResolver.getScaledHeight() % 2 == 1 ? -33 : -32;\r\n\r\n\t ResourceLocation rl = getContentHeight() > getViewableHeight() ? SLIDER_RESOURCE : SLIDER_FULL_RESOURCE;\r\n\t int ySizeScrollToUse = getContentHeight() > getViewableHeight() ? SIZE_SCROLL_Y : SIZE_SCROLL_FULL_Y;\r\n\t int xTextureSize = getContentHeight() > getViewableHeight() ? 32 : 16;\r\n\t int yTextureSize = getContentHeight() > getViewableHeight() ? 32 : 128;\r\n\t _curScrollValue = getContentHeight() > getViewableHeight() ? _curScrollValue : 0;\r\n\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(rl);\r\n\t\tint x1 = (width - SIZE_SCROLL_X) / 2;\r\n\t\tint y1 = (height - SIZE_SCROLL_Y) / 2;\r\n\t\t\r\n\t\t// draw the scroll bar\r\n\t\tHubbyUtils.drawTexturedRectHelper(0.0f, x1 + _scrollOffsetX, y1 + _scrollOffsetY + _curScrollValue, SIZE_SCROLL_X, ySizeScrollToUse, 0, 0, (256 / xTextureSize) * SIZE_SCROLL_X, (256 / yTextureSize) * ySizeScrollToUse);\r\n\t}",
"public double getLeftXAxis() {\n\t\treturn getRawAxis(Axis_LeftX);\n\t}",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"public int getPanelWidth() {\n return width;\n }",
"protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }",
"private void setScrollOffsetX(int value) {\n bitField0_ |= 0x00000010;\n scrollOffsetX_ = value;\n }",
"public JScrollBar createVerticalScrollBar() {\n/* 873 */ return new ScrollBar(1);\n/* */ }",
"private JScrollPane getJScrollPane1() {\r\n\t\tif (jScrollPane1 == null) {\r\n\t\t\tjScrollPane1 = new JScrollPane();\r\n\t\t\tjScrollPane1.setPreferredSize(new Dimension(259, 60));\r\n\t\t\tjScrollPane1.setViewportView(getControlledBy());\r\n\t\t}\r\n\t\treturn jScrollPane1;\r\n\t}",
"int defaultHorizontal() {\n int horizontal;\n if (isDate(clazz) || isDateTime(clazz)\n || isLocalDate(clazz) || isLocalDateTime(clazz)\n || isTime(clazz) || isLocalTime(clazz)\n || isChar(clazz) || isBool(clazz)) {\n horizontal = Horizontals.CENTER;\n } else if (isInt(clazz) || isLong(clazz)\n || isFloat(clazz) || isDouble(clazz)\n || isBigDecimal(clazz)) {\n horizontal = Horizontals.RIGHT;\n } else {\n horizontal = Horizontals.LEFT;\n }\n return horizontal;\n }",
"default Integer getHorizontalMargin() {\n return null;\n }",
"public static Component horizontal(int width) {\n return Box.createRigidArea(new Dimension(width, 0));\n }",
"public int getMinY() {\n return scroller.getMinY();\n }",
"@java.lang.Override\n public boolean hasScrollOffsetX() {\n return instance.hasScrollOffsetX();\n }",
"private ObservableHorizontalScrollView makeShowInfoScroller()\n\t{\n\t\tshowsView = new ObservableHorizontalScrollView(getContext());\n\t\tshowsView.addListener(this);\n\t\tshowsView.setOnTouchListener(this);\n\n\t\tshowsView.addView(makeShowInfoHorizontalLayout());\n\t\treturn showsView;\n\t}",
"public int getX()\n {\n return xaxis;\n }",
"protected double getWindowLeftX() {\n\t\treturn this.m_windowLeftX;\n\t}",
"public OverScroller getScroller() {\n return mEventHandler.getScroller();\n }",
"public Builder setScrollOffsetX(int value) {\n copyOnWrite();\n instance.setScrollOffsetX(value);\n return this;\n }",
"public static Layout createHorizontalLayout() {\n\t\tGeomUtil.LOG.warning(\n\t\t\t\t\"LayoutFactory.createHorizontalLayout() method is deprecated. Use LayoutFactory.createHorizontalFlowLayout() method instead.\"); // NOI18N\n\t\treturn createHorizontalFlowLayout(null, 0);\n\t}",
"@Override\n\tpublic int getWidth() {\n\n\t\treturn ((WorldWindowSWTGLCanvas) slave).getCanvas().getSize().x;\n\t}",
"public int getViewportOffsetX() {\n return viewport.getX();\n }",
"public float getXScrollingSpeed() {\n return config.xScrollingSpeed;\n }",
"void scrollLeft(int scrollLeft);",
"public int getMinWidth() {\n checkWidget();\n return minWidth;\n }",
"@Basic @Immutable\n\tpublic double getHorizontalLocation() {\n\t\treturn this.horizontalLocation;\n\t}",
"private org.gwtproject.user.client.ui.ScrollPanel get_f_ScrollPanel1() {\n return build_f_ScrollPanel1();\n }",
"public boolean getScaleHorizontal() {\r\n return ScaleHorizontal;\r\n }",
"public void clampScroll(){\n //This statement is odd on purpose, there is an extra +1 because of the '>' character in the input field.\n //Compare to WindowEditor.clampScroll().\n scrollX = Util.clamp(input.cursorX + 1 + 1 - getTextWidth(), input.cursorX, scrollX);\n }",
"private JScrollPane getConsoleScroll() {\r\n\t\tif (consoleScroll == null) {\r\n\t\t\tconsoleScroll = new JScrollPane();\r\n\t\t\tconsoleScroll.setViewportView(getConsole());\r\n\t\t}\r\n\t\treturn consoleScroll;\r\n\t}",
"public boolean isHorizontal()\r\n\t{\r\n\t\treturn _position==Position.HORIZONTAL;\r\n\t}",
"public VerticalScrollbar() {}",
"public int getSafeInsetLeft() {\n if (SDK_INT >= 28) {\n return ((DisplayCutout) mDisplayCutout).getSafeInsetLeft();\n } else {\n return 0;\n }\n }",
"public boolean getExpandHorizontal() {\n checkWidget();\n return expandHorizontal;\n }",
"public ChartXAxis getXAxis() { return _xaxis; }",
"boolean hasScrollOffsetX();",
"public float getHorizontalExpense() {\n\t\treturn horizontalExpenseSlider.getCurrentValue();\n\t}",
"public JTextField getAxisMinTextField() {\r\n\t\treturn axisMinTextField;\r\n\t}",
"public int getPanelWidth() {\n\t\treturn this.m_panelWidth;\n\t}",
"public Boolean isHorizontal() {\n return horizontal;\n }",
"@AutoGenerated\n\tprivate HorizontalLayout buildHorizontalLayout_1() {\n\t\thorizontalLayout_1 = new HorizontalLayout();\n\t\thorizontalLayout_1.setImmediate(false);\n\t\thorizontalLayout_1.setWidth(\"-1px\");\n\t\thorizontalLayout_1.setHeight(\"-1px\");\n\t\thorizontalLayout_1.setMargin(false);\n\t\t\n\t\t// vl_imagen\n\t\tvl_imagen = buildVl_imagen();\n\t\thorizontalLayout_1.addComponent(vl_imagen);\n\t\t\n\t\t// gridLayout_1\n\t\tgridLayout_1 = buildGridLayout_1();\n\t\thorizontalLayout_1.addComponent(gridLayout_1);\n\t\thorizontalLayout_1.setExpandRatio(gridLayout_1, 1.0f);\n\t\t\n\t\treturn horizontalLayout_1;\n\t}",
"public static int boundToScreenHorizontal(int x, int width) {\n return Math.min(Math.max(x, 0), Window.getClientWidth() - width - SCREEN_EDGE_PADDING_PIXELS);\n }",
"public float getLowerLeftX()\n {\n return ((COSNumber)rectArray.get(0)).floatValue();\n }",
"public int getXCenter() {\n return getXOrigin() + panelWidth/2;\n }",
"public double getRightJoystickHorizontal() {\n\t\treturn getRawAxis(RIGHT_STICK_HORIZONTAL);\n\t}"
] | [
"0.8036095",
"0.7710129",
"0.7262618",
"0.69775933",
"0.69742095",
"0.67710406",
"0.672089",
"0.66849613",
"0.6382787",
"0.63647753",
"0.62590337",
"0.62491745",
"0.62369466",
"0.6214349",
"0.61810935",
"0.6145771",
"0.6144099",
"0.6116296",
"0.60851526",
"0.6045473",
"0.60378474",
"0.60314655",
"0.5996474",
"0.59265167",
"0.5898827",
"0.5820848",
"0.5808414",
"0.5786749",
"0.57258976",
"0.56932855",
"0.56615496",
"0.5646898",
"0.5591741",
"0.5591028",
"0.5568932",
"0.55634236",
"0.5557902",
"0.55535024",
"0.55516255",
"0.5518924",
"0.550797",
"0.5492158",
"0.5487903",
"0.548264",
"0.5447229",
"0.53979474",
"0.5395028",
"0.538831",
"0.5352262",
"0.5349913",
"0.5317673",
"0.53045696",
"0.5285892",
"0.52779514",
"0.52709866",
"0.5254379",
"0.5241402",
"0.52286273",
"0.52204084",
"0.522036",
"0.5198607",
"0.51921195",
"0.51904637",
"0.51878417",
"0.5182912",
"0.5172187",
"0.51714164",
"0.51620346",
"0.51611525",
"0.5160295",
"0.5159183",
"0.5155071",
"0.51492685",
"0.5136265",
"0.5130371",
"0.512164",
"0.5119341",
"0.51082885",
"0.51001996",
"0.5086543",
"0.5082466",
"0.5077513",
"0.5063736",
"0.50631964",
"0.50463384",
"0.503876",
"0.50363684",
"0.5036023",
"0.5025413",
"0.50221723",
"0.5020524",
"0.49966842",
"0.49848387",
"0.4981858",
"0.49625832",
"0.49607977",
"0.496054",
"0.49558973",
"0.49536237",
"0.49310315"
] | 0.6124233 | 17 |
Returns the vertical ScrollBar. | public ScrollBar getVBar()
{
if (_vbar!=null) return _vbar;
_vbar = new ScrollBar(); _vbar.setVertical(true);
_vbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);
return _vbar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }",
"public JScrollBar createVerticalScrollBar() {\n/* 873 */ return new ScrollBar(1);\n/* */ }",
"@Transient\n/* */ public JScrollBar getVerticalScrollBar() {\n/* 886 */ return this.verticalScrollBar;\n/* */ }",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}",
"JScrollBar getScrollBar() {\n return scrollBar;\n }",
"int getHScrollbarHeight();",
"public VerticalScrollbar() {}",
"@JSProperty(\"scrollbar\")\n @Nullable\n ZAxisScrollbarOptions getScrollbar();",
"int getVScrollbarWidth();",
"public int getScrollMaxY(){\n return Math.max(0, getLineHeight() * getLineCount() - getHeight() / 2);\n }",
"private void drawVerticalScrollBar(){\n }",
"PdfViewerScrollBarVertical(PdfViewerController controller)\n {\n super(JScrollBar.VERTICAL, controller);\n setUI(ui);\n\n addAdjustmentListener(new AdjustmentListener()\n {\n public void adjustmentValueChanged(AdjustmentEvent e)\n {\n scrollPosition = e.getValue();\n setNewViewportPosition();\n }\n });\n\n addComponentListener(new ComponentListener()\n {\n\n public void componentShown(ComponentEvent e)\n {\n }\n\n public void componentResized(ComponentEvent e)\n {\n ;\n repaint();\n }\n\n public void componentMoved(ComponentEvent e)\n {\n }\n\n public void componentHidden(ComponentEvent e)\n {\n }\n });\n }",
"private JScrollBar getJScrollBar() {\r\n\t\tif (jScrollBar == null) {\r\n\t\t\tjScrollBar = new JScrollBar();\r\n\t\t\tjScrollBar.setBounds(new Rectangle(591, 127, 17, 333));\r\n\t\t}\r\n\t\treturn jScrollBar;\r\n\t}",
"@Override\n\tpublic ScrollBar createScrollBar() {\n\t\tLightVisualThemeScrollBar lightVisualThemeScrollBar = new LightVisualThemeScrollBar();\n\t\treturn lightVisualThemeScrollBar;\n\t}",
"public int getMaxY() {\n return scroller.getMaxY();\n }",
"public Rectangle getScrollRectangle() {\r\n return scrollRectangle;\r\n }",
"private void drawScrollBarVertical(Canvas canvas,int width) {\n int page = getHeight();\n float all = getLineHeight() * getLineCount() + getHeight() / 2;\n float length = page / all * getHeight();\n float topY;\n if(length < mDpUnit * 30) {\n mVerticalScrollBarSizeEnlarged = true;\n length = mDpUnit * 30;\n topY = (getOffsetY() + page / 2f) / all * (getHeight() - length);\n }else{\n topY = getOffsetY() / all * getHeight();\n mVerticalScrollBarSizeEnlarged = false;\n }\n if(mEventHandler.holdVerticalScrollBar()) {\n float centerY = topY + length / 2f;\n drawLineInfoPanel(canvas,centerY,mRect.left - mDpUnit * 5);\n }\n mRect.right = getWidth();\n mRect.left = getWidth() - mDpUnit * width;\n mRect.top = topY;\n mRect.bottom = topY + length;\n mVerticalScrollBar.set(mRect);\n drawColor(canvas,mColors.getColor(mEventHandler.holdVerticalScrollBar() ? ColorScheme.SCROLL_BAR_THUMB_DOWN : ColorScheme.SCROLL_BAR_THUMB),mRect);\n }",
"private void drawScrollBarTrackVertical(Canvas canvas,int width) {\n if(mEventHandler.holdVerticalScrollBar()) {\n mRect.right = getWidth();\n mRect.left = getWidth() - mDpUnit * width;\n mRect.top = 0;\n mRect.bottom = getHeight();\n drawColor(canvas,mColors.getColor(ColorScheme.SCROLL_BAR_TRACK),mRect);\n }\n }",
"protected RectF getHorizontalScrollBarRect() {\n return mHorizontalScrollBar;\n }",
"public void setVerticalScrollBar(JScrollBar paramJScrollBar) {\n/* 906 */ JScrollBar jScrollBar = getVerticalScrollBar();\n/* 907 */ this.verticalScrollBar = paramJScrollBar;\n/* 908 */ add(paramJScrollBar, \"VERTICAL_SCROLLBAR\");\n/* 909 */ firePropertyChange(\"verticalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 911 */ revalidate();\n/* 912 */ repaint();\n/* */ }",
"public JScrollBar createHorizontalScrollBar() {\n/* 814 */ return new ScrollBar(0);\n/* */ }",
"public ScrollBar getHBar()\n {\n if (_hbar!=null) return _hbar;\n _hbar = new ScrollBar();\n _hbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _hbar;\n }",
"private VerticalLayout getCanvas() {\n return new VerticalLayout();\n }",
"public int getVerticalMargin() {\n return mLayoutManager.getVerticalMargin();\n }",
"private int getScrollVal() {\n return Math.abs((int)scrollBar.getValue());\n }",
"public FloatingSliderPanel getVerticalExpenseSlider() {\n\t\treturn verticalExpenseSlider;\n\t}",
"@JSProperty(\"scrollbar\")\n void setScrollbar(ZAxisScrollbarOptions value);",
"public double getRightJoystickVertical() {\n\t\treturn getRawAxis(RIGHT_STICK_VERTICAL) * -1;\n\t}",
"int getScrollOffsetY();",
"private JScrollPane getConsoleScroll() {\r\n\t\tif (consoleScroll == null) {\r\n\t\t\tconsoleScroll = new JScrollPane();\r\n\t\t\tconsoleScroll.setViewportView(getConsole());\r\n\t\t}\r\n\t\treturn consoleScroll;\r\n\t}",
"final public String getType()\n {\n return ComponentUtils.resolveString(getProperty(TYPE_KEY), \"verticalBar\");\n }",
"public int getMinY() {\n return scroller.getMinY();\n }",
"public int getPreferredVerticalOffset() {\n\t\treturn preferredVerticalOffset;\n\t}",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* */ }",
"public int getScroll() {\n return mTransparentStartHeight - getTransparentViewHeight() + getMaximumScrollableHeaderHeight()\n - getToolbarHeight() + mScrollView.getScrollY();\n }",
"public static Component vertical() {\n return Box.createRigidArea(new Dimension(0, gap));\n }",
"@Override\n\tpublic final int getScrollHeight() {\n\t\t// TODO(dramaix): Use document.scrollingElement when its available. See\n\t\t// getScrollLeft().\n\t\treturn getViewportElement().getScrollHeight();\n\t}",
"public void setVerticalScrollBarPolicy(int paramInt) {\n/* 500 */ switch (paramInt) {\n/* */ case 20:\n/* */ case 21:\n/* */ case 22:\n/* */ break;\n/* */ default:\n/* 506 */ throw new IllegalArgumentException(\"invalid verticalScrollBarPolicy\");\n/* */ } \n/* 508 */ int i = this.verticalScrollBarPolicy;\n/* 509 */ this.verticalScrollBarPolicy = paramInt;\n/* 510 */ firePropertyChange(\"verticalScrollBarPolicy\", i, paramInt);\n/* 511 */ revalidate();\n/* 512 */ repaint();\n/* */ }",
"private void drawScrollBar() {\r\n\r\n\t _scrollOffsetX = 68;\r\n\t _scrollOffsetY = _resolutionResolver.getScaledHeight() % 2 == 1 ? -33 : -32;\r\n\r\n\t ResourceLocation rl = getContentHeight() > getViewableHeight() ? SLIDER_RESOURCE : SLIDER_FULL_RESOURCE;\r\n\t int ySizeScrollToUse = getContentHeight() > getViewableHeight() ? SIZE_SCROLL_Y : SIZE_SCROLL_FULL_Y;\r\n\t int xTextureSize = getContentHeight() > getViewableHeight() ? 32 : 16;\r\n\t int yTextureSize = getContentHeight() > getViewableHeight() ? 32 : 128;\r\n\t _curScrollValue = getContentHeight() > getViewableHeight() ? _curScrollValue : 0;\r\n\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(rl);\r\n\t\tint x1 = (width - SIZE_SCROLL_X) / 2;\r\n\t\tint y1 = (height - SIZE_SCROLL_Y) / 2;\r\n\t\t\r\n\t\t// draw the scroll bar\r\n\t\tHubbyUtils.drawTexturedRectHelper(0.0f, x1 + _scrollOffsetX, y1 + _scrollOffsetY + _curScrollValue, SIZE_SCROLL_X, ySizeScrollToUse, 0, 0, (256 / xTextureSize) * SIZE_SCROLL_X, (256 / yTextureSize) * ySizeScrollToUse);\r\n\t}",
"@Transient\n/* */ public JScrollBar getHorizontalScrollBar() {\n/* 827 */ return this.horizontalScrollBar;\n/* */ }",
"@Override\n public void scrollVertical(int direction) {\n return;\n }",
"public final int getMaxY() {\n return getMinY() + getHeight();\n }",
"@Override\r\n public boolean canScrollVertically(){\r\n return true;\r\n }",
"public int yPos() {\n\t\treturn Engine.scaleY(y);\n\t}",
"public Integer getPageY() {\n return pageY;\n }",
"public int getInvertedYPos(){\r\n\t\treturn (int) (Game.WINDOW_HEIGHT - yPos);\r\n\t}",
"public float getYHeight() {\n\t\treturn this.yHeight;\n\t}",
"public abstract int getStatusBarHeight(int position);",
"public double getMaximumY () {\n return minimumY + height;\n }",
"float getVerticalMargin() {\n return mTn.mVerticalMargin;\n }",
"public int getScrollHeight() {\n\t\treturn this.scrollHeight;\n\t}",
"public int getScrollMaxX(){\n return (int)Math.max(0, mMaxPaintX - getWidth() / 2f);\n }",
"public int getViewportOffsetY() {\n return viewport.getY();\n }",
"public ChartYAxis getYAxis() { return _yaxis; }",
"public TextureBorder getBorderY() {\n return mBorderY;\n }",
"public Boolean isVertical() {\r\n\t\treturn isVertical;\r\n\t}",
"public double getBboxVerticalSidelength() {\n return getDouble(\"tvert\");\n }",
"public int getY()\n {\n return yaxis;\n }",
"public OverScroller getScroller() {\n return mEventHandler.getScroller();\n }",
"public int getSizeY() {\r\n\t\treturn sizeY;\r\n\t}",
"protected int getHeightDelta() {\n return super.getHeightDelta()+ menuBarHeightDelta;\n }",
"public boolean isVertical() {\r\n\t\treturn isVertical;\r\n\t}",
"public int getMaxY() {\n\t\treturn maxY;\n\t}",
"@SuppressWarnings(\"unused\")\n public int getProgressBarHeight() {\n LayoutParams lp = getLayoutParams();\n\n if (lp==null) return 0;\n\n return lp.height;\n }",
"public int getViewportHeight() {\n return viewport.getHeight();\n }",
"public boolean isVerticalFlingEnabled() {\n return config.verticalFlingEnabled;\n }",
"public static Component vertical(int height) {\n return Box.createRigidArea(new Dimension(0, height));\n }",
"@Basic @Immutable\n\tpublic double getVerticalLocation() {\n\t\treturn this.verticalLocation;\n\t}",
"public int getHorY() {\r\n return horY;\r\n }",
"private ScrollPane scrollPane() {\r\n return (ScrollPane) this.getParent();\r\n }",
"public double getLeftJoystickVertical() {\n\t\treturn getRawAxis(LEFT_STICK_VERTICAL) * -1;\n\t}",
"public float getVerticalExpense() {\n\t\treturn verticalExpenseSlider.getCurrentValue();\n\t}",
"public int getMaxY() {\n return maxY;\n }",
"@java.lang.Override\n public int getScrollOffsetY() {\n return instance.getScrollOffsetY();\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"private int getStatusBarHeight() {\n int result = 0;\n int resourceId = context.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = context.getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",
"public float getYComponent() {\n return this.vy;\n }",
"public JMenuBar getMenuBar() {\n return this.menuBar;\n }",
"public int getYMax(){\n\t\treturn yDim;\n\t}",
"void scrollToY(int y) {\n double adjustedY = (double) y - scrollButtonTotalHeight;\n double percentage = adjustedY / (pastSize.height - scrollButtonTotalHeight);\n int minimum = getScrollBar().getModel().getMinimum();\n int maximum = getScrollBar().getModel().getMaximum();\n double range = (double) maximum - (double) minimum;\n int modelValue = (int) (percentage * range);\n getScrollBar().getModel().setValue(modelValue);\n }",
"public VerticalScrollbar(\r\n\t\tboolean sliderButtons,\r\n\t\tString sliderUpBtnSet,\r\n\t\tString sliderDownBtnSet,\r\n\t\tString background,\r\n\t\tString sliderAreaArt,\r\n\t\tString sliderPipArt,\r\n\t\tString sliderPipTextureCoords,\r\n\t\tboolean sliderVertical)\r\n\t{\r\n\t\tthis.background = background;\r\n\t\tthis.sliderAreaArt = sliderAreaArt;\r\n\t\tthis.sliderButtons = sliderButtons;\r\n\t\tthis.sliderDownBtnSet = sliderDownBtnSet;\r\n\t\tthis.sliderPipArt = sliderPipArt;\r\n\t\tthis.sliderPipTextureCoords = sliderPipTextureCoords;\r\n\t\tthis.sliderUpBtnSet = sliderUpBtnSet;\r\n\t\tthis.sliderVertical = sliderVertical;\r\n\t}",
"int getScrollTop();",
"public int getScrollPositionIfEndless(){\n\t\treturn mScrollPositionIfEndless;\n\t}",
"public int getTopY() {\n\t\treturn 0;\r\n\t}",
"public int getStatusBarHeight() {\n int result = 0;\n int resourceId = _act.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = _act.getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",
"public Boolean getShowVBar() { return _showVBar; }",
"private JScrollPane getConsole() {\r\n\t\tif (console == null) {\r\n\t\t\tconsole = new JTextArea();\r\n\t\t\tconsole.setAutoscrolls(true);\r\n\t\t\tconsole.setBackground(java.awt.Color.black);\r\n\t\t\tconsole.setForeground(java.awt.Color.white);\r\n\t\t\tconsole.setRows(29);\r\n\t\t\tconsole.setEditable(false);\r\n\t\t\tconsole.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN, 10));\r\n\t\t\tscroll = new JScrollPane(console);\r\n\t\t}\r\n\t\treturn scroll;\r\n\t}",
"public int getStatusBarHeight() {\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0)\n return getResources().getDimensionPixelSize(resourceId);\n return 0;\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"public static Layout createVerticalFlowLayout() {\n\t\treturn createVerticalFlowLayout(null, 0);\n\t}",
"@java.lang.Override\n public int getScrollOffsetY() {\n return scrollOffsetY_;\n }",
"private int getStatusBarHeight() {\n if (mStatusBarHeight == 0) {\n Rect screenFrame = new Rect();\n getWindow().getDecorView().getWindowVisibleDisplayFrame(screenFrame);\n mStatusBarHeight = screenFrame.top;\n }\n\n return mStatusBarHeight;\n }",
"public double getRelativeVerticalIncrement() {\n var pane = (ScrollPane) getNode();\n var region = getRegionToScroll();\n return region == null ? 0 : increment / (region.getHeight() - pane.getViewportBounds().getHeight());\n }",
"public int getStatusBarHeight() {\n int result = 0;\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",
"public int getStatusBarHeight() {\n int result = 0;\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",
"default Integer getVerticalMargin() {\n return null;\n }",
"private void updateScrollBarSize() {\n int textHeight = getTextHeight();\n if (textHeight <= windowHeight) {\n Root.getChildren().remove(scrollBar);\n } else {\n if (!Root.getChildren().contains(scrollBar)) {\n Root.getChildren().add(scrollBar);\n }\n double range = textHeight - windowHeight;\n scrollBar.setMax(range);\n scrollBar.setVisibleAmount(10);\n }\n }",
"public int yPos() {\r\n\t\treturn this.yPos;\r\n\t}",
"public int yPos() {\r\n\t\treturn this.yPos;\r\n\t}"
] | [
"0.8174877",
"0.76847863",
"0.7369136",
"0.73139566",
"0.7309141",
"0.725794",
"0.6996339",
"0.6860988",
"0.6802129",
"0.67132616",
"0.6670899",
"0.66512066",
"0.6644163",
"0.6634223",
"0.66281205",
"0.6508082",
"0.6467551",
"0.6458801",
"0.62890196",
"0.6249381",
"0.62086207",
"0.61820364",
"0.61768425",
"0.61734176",
"0.612069",
"0.61021125",
"0.60939765",
"0.6076742",
"0.6017531",
"0.59671086",
"0.59512436",
"0.5949545",
"0.5937189",
"0.5928785",
"0.5918872",
"0.59108394",
"0.59000033",
"0.58924776",
"0.5847581",
"0.58474845",
"0.5842398",
"0.57847214",
"0.57601786",
"0.57324034",
"0.57261914",
"0.571845",
"0.57017875",
"0.5682059",
"0.5679418",
"0.5670003",
"0.56569725",
"0.5642439",
"0.562696",
"0.5624235",
"0.56205404",
"0.56129557",
"0.55687743",
"0.55677164",
"0.5564123",
"0.5542143",
"0.5535342",
"0.5530179",
"0.5521258",
"0.5519287",
"0.55090904",
"0.5504566",
"0.54993415",
"0.5494954",
"0.54920113",
"0.54842955",
"0.54733896",
"0.54727685",
"0.5467431",
"0.54662156",
"0.5465627",
"0.5465064",
"0.5456193",
"0.5454545",
"0.54447466",
"0.5441816",
"0.5441526",
"0.5438502",
"0.54350656",
"0.54329205",
"0.5424815",
"0.5423544",
"0.5416274",
"0.5413659",
"0.54131895",
"0.5409025",
"0.54035443",
"0.53973913",
"0.5389365",
"0.53878325",
"0.53844",
"0.53844",
"0.5380921",
"0.5365467",
"0.5362257",
"0.5362257"
] | 0.7648499 | 2 |
Returns whether to show horizontal scroll bar (null means 'asneeded'). | public Boolean getShowHBar() { return _showHBar; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean horizontalScroll()\n {\n return horizontalScroll;\n }",
"public boolean isHorizontalScrollingEnabled() {\n return config.horizontalScrollingEnabled;\n }",
"@Override\n public boolean canScrollHorizontally() {\n return isScrollEnabled && super.canScrollHorizontally();\n }",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* */ }",
"public boolean isHorizontalFlingEnabled() {\n return config.horizontalFlingEnabled;\n }",
"boolean hasScrollOffsetX();",
"@java.lang.Override\n public boolean hasScrollOffsetX() {\n return instance.hasScrollOffsetX();\n }",
"public JScrollBar createHorizontalScrollBar() {\n/* 814 */ return new ScrollBar(0);\n/* */ }",
"@java.lang.Override\n public boolean hasScrollOffsetX() {\n return ((bitField0_ & 0x00000010) != 0);\n }",
"private void checkHorizontalScrollBar(BasicComboPopup popup)\n\t{\n\n\t\tJViewport viewport = scrollPane.getViewport();\n\t\tPoint p = viewport.getViewPosition();\n\t\tp.x = 0;\n\t\tviewport.setViewPosition( p );\n\n\t\t// Remove the scrollbar so it is never painted\n\n\t\tif (! scrollBarRequired)\n\t\t{\n\t\t\tscrollPane.setHorizontalScrollBar( null );\n\t\t\treturn;\n\t\t}\n\n\t\t//\tMake sure a horizontal scrollbar exists in the scrollpane\n\n\t\tJScrollBar horizontal = scrollPane.getHorizontalScrollBar();\n\n\t\tif (horizontal == null)\n\t\t{\n\t\t\thorizontal = new JScrollBar(JScrollBar.HORIZONTAL);\n\t\t\tscrollPane.setHorizontalScrollBar( horizontal );\n\t\t\tscrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );\n\t\t}\n\n\t\t//\tPotentially increase height of scroll pane to display the scrollbar\n\n\t\tif (horizontalScrollBarWillBeVisible(popup, scrollPane))\n\t\t{\n\t\t\tDimension scrollPaneSize = scrollPane.getPreferredSize();\n\t\t\tscrollPaneSize.height += horizontal.getPreferredSize().height;\n\t\t\tscrollPane.setPreferredSize(scrollPaneSize);\n\t\t\tscrollPane.setMaximumSize(scrollPaneSize);\n\t\t\tscrollPane.revalidate();\n\t\t}\n\t}",
"public void setHorizontalScrollingEnabled(boolean enabled) {\n config.horizontalScrollingEnabled = enabled;\n }",
"public boolean hasScrollableContent() {\n return true;\n }",
"public boolean isHorizontal()\r\n\t{\r\n\t\treturn _position==Position.HORIZONTAL;\r\n\t}",
"public boolean getScrollableTracksViewportWidth() {\r\n return false; \r\n }",
"protected boolean isHorizontal() {\n\t\treturn true;\n\t}",
"@Transient\n/* */ public JScrollBar getHorizontalScrollBar() {\n/* 827 */ return this.horizontalScrollBar;\n/* */ }",
"public Boolean isHorizontal() {\n return horizontal;\n }",
"protected RectF getHorizontalScrollBarRect() {\n return mHorizontalScrollBar;\n }",
"public boolean isHorizontal() {\n\t\treturn ( getSlope() == 0.0d );\n\t}",
"public boolean isHorizontalMode() throws PDFNetException {\n/* 627 */ return IsHorizontalMode(this.a);\n/* */ }",
"int getVScrollbarWidth();",
"public boolean isHorizontalHighlightIndicatorEnabled() { return this.mDrawHorizontalHighlightIndicator; }",
"protected boolean needsFetchingScroll() {\n \t\treturn false;\n \t}",
"public boolean getExpandHorizontal() {\n checkWidget();\n return expandHorizontal;\n }",
"public boolean getScrollableTracksViewportWidth()\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}",
"public boolean getShowHorizontalLines() {\r\n return calendarTable.getShowHorizontalLines();\r\n }",
"protected boolean checkScrollPosition(){\n\t\treturn false;\n\t}",
"PdfViewerScrollBarHorizontal(PdfViewerController controller)\n {\n super(JScrollBar.HORIZONTAL, controller);\n setUI(ui);\n addAdjustmentListener(new AdjustmentListener()\n {\n public void adjustmentValueChanged(AdjustmentEvent e)\n {\n scrollPosition = e.getValue();\n try\n {\n PdfViewerScrollBarHorizontal.this.controller.scrollTo(scrollPosition,\n PdfViewerScrollBarHorizontal.this.controller.getViewportOrigin().y);\n } catch (PdfViewerException ex)\n {\n DebugLogger.log(ex.toString());\n }\n }\n });\n\n addComponentListener(new ComponentListener()\n {\n\n public void componentShown(ComponentEvent e)\n {\n }\n\n public void componentResized(ComponentEvent e)\n {\n update();\n repaint();\n }\n\n public void componentMoved(ComponentEvent e)\n {\n }\n\n public void componentHidden(ComponentEvent e)\n {\n }\n });\n }",
"public boolean hasHorizontalCut() {\r\n\t\treturn mHorizontalCut;\r\n\t}",
"public void setHorizontalFlingEnabled(boolean enabled) {\n config.horizontalFlingEnabled = enabled;\n }",
"public void setHorizontalScrollBar(JScrollBar paramJScrollBar) {\n/* 847 */ JScrollBar jScrollBar = getHorizontalScrollBar();\n/* 848 */ this.horizontalScrollBar = paramJScrollBar;\n/* 849 */ if (paramJScrollBar != null) {\n/* 850 */ add(paramJScrollBar, \"HORIZONTAL_SCROLLBAR\");\n/* */ }\n/* 852 */ else if (jScrollBar != null) {\n/* 853 */ remove(jScrollBar);\n/* */ } \n/* 855 */ firePropertyChange(\"horizontalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 857 */ revalidate();\n/* 858 */ repaint();\n/* */ }",
"int getScrollLeft();",
"public void setHorizontalScrollBarPolicy(int paramInt) {\n/* 548 */ switch (paramInt) {\n/* */ case 30:\n/* */ case 31:\n/* */ case 32:\n/* */ break;\n/* */ default:\n/* 554 */ throw new IllegalArgumentException(\"invalid horizontalScrollBarPolicy\");\n/* */ } \n/* 556 */ int i = this.horizontalScrollBarPolicy;\n/* 557 */ this.horizontalScrollBarPolicy = paramInt;\n/* 558 */ firePropertyChange(\"horizontalScrollBarPolicy\", i, paramInt);\n/* 559 */ revalidate();\n/* 560 */ repaint();\n/* */ }",
"public static interface HorizontallyScrollable {\n /**\n * Return {@code true} if the component needs to receive right-to-left\n * touch movements.\n *\n * @param origX the raw x coordinate of the initial touch\n * @param origY the raw y coordinate of the initial touch\n */\n\n public boolean interceptMoveLeft(float origX, float origY);\n\n /**\n * Return {@code true} if the component needs to receive left-to-right\n * touch movements.\n *\n * @param origX the raw x coordinate of the initial touch\n * @param origY the raw y coordinate of the initial touch\n */\n public boolean interceptMoveRight(float origX, float origY);\n }",
"public boolean isFillWidth() { return _scroller.isFillWidth(); }",
"protected boolean updateScrollBarsShowing()\n {\n // Get Scroller Size\n double scrollerW = _scroller.getWidth();\n double scrollerH = _scroller.getHeight();\n\n // Get child size\n Size contentSize = _scroller.getContentPrefSize();\n double contentW = contentSize.getWidth();\n double contentH = contentSize.getHeight();\n\n // Get whether to show scroll bars\n boolean alwaysH = _showHBar == Boolean.TRUE;\n boolean alwaysV = _showVBar == Boolean.TRUE;\n boolean asneedH = _showHBar == null;\n boolean asneedV = _showVBar == null;\n boolean showHBar = alwaysH || asneedH && contentW > scrollerW;\n boolean showVBar = alwaysV || asneedV && contentH > scrollerH;\n\n // Get whether scroll bars are currently showing\n boolean isHBarShowing = isHBarShowing();\n boolean isVBarShowing = isVBarShowing();\n\n // If showing both ScrollBars, but only because both ScrollBars are showing, hide them and try again\n if (isVBarShowing && isHBarShowing && showVBar && showHBar && asneedH && asneedV) {\n boolean vbarNotReallyNeeded = contentW <= scrollerW + getVBar().getWidth();\n boolean hbarNotReallyNeeded = contentH <= scrollerH + getHBar().getHeight();\n if (vbarNotReallyNeeded && hbarNotReallyNeeded) {\n setVBarShowing(false);\n setHBarShowing(false);\n return true;\n }\n }\n\n // If either ScrollBar in wrong Showing state, set and try again\n if (showVBar != isVBarShowing) {\n setVBarShowing(showVBar);\n return true;\n }\n\n if (showHBar != isHBarShowing) {\n setHBarShowing(showHBar);\n return true;\n }\n\n // Return false since ScrollBar showing didn't change\n return false;\n }",
"public Boolean getContainerScroll () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.containerScroll);\r\n\t}",
"public boolean isScrollable() {\n/* 991 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean isHBarShowing() { return getHBar().getParent()!=null; }",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"protected boolean allowViewToScroll() {\n return true;\n }",
"private void drawScrollBarHorizontal(Canvas canvas,int width) {\n int page = getWidth();\n float all = getScrollMaxX() + getWidth();\n float length = page / all * getWidth();\n float leftX = getOffsetX() / all * getWidth();\n mRect.top = getHeight() - mDpUnit * width;\n mRect.bottom = getHeight();\n mRect.right = leftX + length;\n mRect.left = leftX;\n mHorizontalScrollBar.set(mRect);\n drawColor(canvas,mColors.getColor(mEventHandler.holdHorizontalScrollBar() ? ColorScheme.SCROLL_BAR_THUMB_DOWN : ColorScheme.SCROLL_BAR_THUMB),mRect);\n }",
"public boolean isDragScroll() {\r\n return dragScroll;\r\n }",
"public void setHorizontal(boolean horizontal) {\n\t\tthis.horizontal = horizontal;\n\t}",
"public boolean onHorizontalEdge() {\n\t\treturn horizontal != Side.None;\n\t}",
"boolean hasHorizontalPodAutoscaling();",
"@Override\n\tpublic final void enableScrolling(boolean enable) {\n\t\tgetViewportElement().getStyle().setProperty(\"overflow\",\n\t\t\t\tenable ? \"auto\" : \"hidden\");\n\t}",
"public boolean isWheelScrollingEnabled() {\n/* 1305 */ return this.wheelScrollState;\n/* */ }",
"int getScrollOffsetX();",
"public boolean canSelfScroll() {\n return getAdapter().getCount() != 1;\n }",
"public int getScrollWidth() {\n\t\treturn this.scrollWidth;\n\t}",
"private void drawScrollBarTrackHorizontal(Canvas canvas,int width) {\n if(mEventHandler.holdHorizontalScrollBar()) {\n mRect.top = getHeight() - mDpUnit * width;\n mRect.bottom = getHeight();\n mRect.right = getWidth();\n mRect.left = 0;\n drawColor(canvas,mColors.getColor(ColorScheme.SCROLL_BAR_TRACK),mRect);\n }\n }",
"public boolean isMinWidthSet() { return get(\"MinWidth\")!=null; }",
"public void setScrollBarEnabled(boolean enabled) {\n mVerticalScrollBarEnabled = mHorizontalScrollBarEnabled = enabled;\n invalidate();\n }",
"public static JScrollPane addHorizontalWheelScroll(final JScrollPane jsp) {\n // to make sure this is the first listener\n // 1. save and remove existing listeners\n // 2. add new listener for horizontal scrolling\n // 3. replace saved listeners\n MouseWheelListener[] savedListeners = jsp.getMouseWheelListeners();\n for(MouseWheelListener l : savedListeners)\n jsp.removeMouseWheelListener(l);\n jsp.addMouseWheelListener(new MouseWheelListener() {\n public void mouseWheelMoved(MouseWheelEvent ev) {\n if(ev.isShiftDown() ) {\n // if the vertical scrollbar is not visible the pane will scroll horizontally\n jsp.getVerticalScrollBar().setVisible(false);\n // visibility is returned by the jscrollpane\n }\n }\n });\n // replace saved listeners\n for(MouseWheelListener l : savedListeners)\n jsp.addMouseWheelListener(l);\n\n jsp.getHorizontalScrollBar().setUnitIncrement(15);\n return jsp;\n }",
"public boolean hasNavigationBar(){\n \treturn true;\n }",
"public boolean isNowrap()\n {\n return this.nowrap;\n }",
"public boolean isMiniHealthBarVisible() {\n return miniHealthBarVisible;\n }",
"public boolean getScaleHorizontal() {\r\n return ScaleHorizontal;\r\n }",
"void setScrollLeft(int scrollLeft);",
"public boolean isHorizontal(){\n return head().getY() == tail().getY();\n }",
"public void CheckScrollBar() {\n \tif (data3d.Times > 1)\n {\n \tScrollbar Slider=label.TimeScrollbar;\n \tif (! ScrollbarPresent) { //\n\t\t\t\t\t\t// System.out.println(\"Adding a Scrollbar with \"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider=new Scrollbar(Scrollbar.VERTICAL, 0, 1, 0, data3d.Times);\n \tScrollbarPresent=true;\n\t\t\t\t\t\tlabel.TimeScrollbar = Slider; // that it will be moved when browsing though the data\n\t\t\t\t\t\tadd(\"East\", Slider);\n\t\t\t\t\t\t//if (DataPanel != null)\n\t\t\t\t\t\t//\tDataPanel.CheckScrollBar();\n\t\t\t\t\t\t//data3d.ShowAllSlices=true;\n\t\t\t\t\t\tdata3d.TrackDirection = 4;\n\t\t\t\t\t\tif (data3d.SizeZ > 1) {\n\t\t\t\t\t\t\tdata3d.SearchZ = 1;\n\t\t\t\t\t\t\tdata3d.COMZ = 1;\n\t\t\t\t\t\t}\n Slider.setBlockIncrement(data3d.Times / 10 + 1);\n Slider.addAdjustmentListener(c1);\n Slider.setVisible(true);\n \t}\n \telse {\n\t\t\t\t\t\tSlider.setMaximum(data3d.Times);\n\t\t\t\t\t\t// System.out.println(\"Changed Scrollbar size to\"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider.setBlockIncrement(data3d.Times / 10 + 1);\n\t\t\t\t\t\tSlider.setVisible(true);\n\t\t\t\t\t}\n \tSlider.doLayout();\n \tthis.doLayout();\n }\n// if (data3d.Elements > 5)\n// \tdata3d.TrackDirection=3;\n }",
"public boolean isScrollbarPresent(WebElement element) {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n return (Boolean) javaScriptExecutor.executeScript(\"return arguments[0].scrollHeight > arguments[0].clientHeight;\",\n element);\n }",
"public void setDrawHorizontalHighlightIndicator(boolean enabled) { this.mDrawHorizontalHighlightIndicator = enabled; }",
"public int getScrollPositionIfEndless(){\n\t\treturn mScrollPositionIfEndless;\n\t}",
"final boolean isXMajorAxis() {\n return isStatusBitsNonZero(X_MAJOR_AXIS_BIT);\n }",
"@Override\n public boolean getScrollContinuously() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.SCROLL_CONTINUOUSLYQ_);\n return ((Boolean)retnValue).booleanValue ();\n }",
"public boolean getBorderVisible() {\n checkWidget();\n return borderLeft == 1;\n }",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"@Override\r\n\tprotected boolean isScrollable(Component c) {\r\n\t\treturn false;\r\n\t}",
"public void scrollHorizontal(float amount)\n {\n scroll(amount, 0);\n }",
"boolean hasWidth();",
"boolean hasWidth();",
"boolean hasWidth();",
"public boolean isEnableAsciidocWrapper() {\n\t\treturn enableAsciidocWrapper;\n\t}",
"@java.lang.Override\n public int getScrollOffsetX() {\n return scrollOffsetX_;\n }",
"@Override\n public boolean scrolled(int arg0) {\n return false;\n }",
"@Override\n\tpublic final int getScrollLeft() {\n\t\treturn DOMImpl.impl.getScrollLeft(documentFor());\n\t}",
"private boolean isEdge() {\r\n\t\t// get the child view Width\r\n\t\tint childViewWidth = mChildView.getMeasuredWidth();\r\n\t\t// get the ScrollView Width\r\n\t\tint srollViewWidth = this.getWidth();\r\n\t\t// get\r\n\t\tint tempOffset = childViewWidth - srollViewWidth;\r\n\t\tint scrollX = this.getScrollX();\r\n\t\tif (scrollX == 0 || scrollX == tempOffset) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic final int getScrollWidth() {\n\t\t// TODO(dramaix): Use document.scrollingElement when its available. See\n\t\t// getScrollLeft().\n\t\treturn getViewportElement().getScrollWidth();\n\t}",
"default boolean isHorizontalLineSegment() {\n return false;\n }",
"public boolean isAutoLayout()\n\t{\n\t\treturn autoLayout;\n\t}",
"@java.lang.Override\n public int getScrollOffsetX() {\n return instance.getScrollOffsetX();\n }",
"@JSProperty(\"scrollbar\")\n @Nullable\n ZAxisScrollbarOptions getScrollbar();",
"@Override\n public boolean canCoalesce() {\n if (mScrollEventType == ScrollEventType.SCROLL) {\n return true;\n }\n return false;\n }",
"public boolean isHeadless() {\n return m_Headless;\n }",
"public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}",
"private boolean startScrollIfNeeded(final MotionEvent event) {\n final int xPos = (int)event.getX();\n final int yPos = (int)event.getY();\n if (xPos < mTouchStartX - TOUCH_SCROLL_THRESHOLD\n || xPos > mTouchStartX + TOUCH_SCROLL_THRESHOLD\n || yPos < mTouchStartY - TOUCH_SCROLL_THRESHOLD\n || yPos > mTouchStartY + TOUCH_SCROLL_THRESHOLD) {\n // we've moved far enough for this to be a scroll\n removeCallbacks(mLongPressRunnable);\n mTouchState = TOUCH_STATE_SCROLL;\n return true;\n }\n return false;\n }",
"public Boolean isHorizontal() {\n return this == EAST || this == WEST;\n }",
"public Boolean getAutoSizeHeaders() {\r\n return getAttributeAsBoolean(\"autoSizeHeaders\");\r\n }",
"private JScrollPane getJScrollPane() {\n\t\tif (jScrollPane == null) {\n\t\t\tjScrollPane = new JScrollPane();\n\t\t\tjScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t}\n\t\treturn jScrollPane;\n\t}",
"public int getScrollMaxX(){\n return (int)Math.max(0, mMaxPaintX - getWidth() / 2f);\n }",
"public boolean isVerticalFlingEnabled() {\n return config.verticalFlingEnabled;\n }",
"public int getMinX() {\n return scroller.getMinX();\n }",
"public boolean isSuggestHorizontalFocalLengthEnabled() {\n return mSuggestHorizontalFocalLengthEnabled;\n }",
"public Boolean getAlwaysRequestVisibleRows() {\r\n return getAttributeAsBoolean(\"alwaysRequestVisibleRows\");\r\n }",
"public static boolean isResizable() {\n return clientAccessor().isResizableMode();\n }",
"boolean canScrollUp();",
"private ObservableHorizontalScrollView makeShowInfoScroller()\n\t{\n\t\tshowsView = new ObservableHorizontalScrollView(getContext());\n\t\tshowsView.addListener(this);\n\t\tshowsView.setOnTouchListener(this);\n\n\t\tshowsView.addView(makeShowInfoHorizontalLayout());\n\t\treturn showsView;\n\t}"
] | [
"0.7976274",
"0.76555544",
"0.7187078",
"0.71146685",
"0.693954",
"0.6936046",
"0.6888952",
"0.64063567",
"0.6399431",
"0.63742054",
"0.635711",
"0.62728536",
"0.6261338",
"0.6233121",
"0.622377",
"0.6208944",
"0.6091166",
"0.6077439",
"0.6019676",
"0.6006919",
"0.5969563",
"0.59512436",
"0.59100854",
"0.5877225",
"0.5827751",
"0.5788335",
"0.578573",
"0.5761348",
"0.5758561",
"0.57412183",
"0.57109237",
"0.5707302",
"0.57048",
"0.5678123",
"0.5614792",
"0.5604302",
"0.5569468",
"0.55551744",
"0.5545782",
"0.5456546",
"0.5451447",
"0.54379505",
"0.54177076",
"0.5414226",
"0.5409497",
"0.54000735",
"0.53489023",
"0.53168714",
"0.5306808",
"0.5290161",
"0.5268455",
"0.52654636",
"0.52416664",
"0.5238663",
"0.52363914",
"0.52006423",
"0.5193405",
"0.51925915",
"0.51902735",
"0.51850724",
"0.5173902",
"0.51515335",
"0.51293105",
"0.5110785",
"0.5094017",
"0.5082372",
"0.5066216",
"0.505392",
"0.5050969",
"0.5050969",
"0.5044184",
"0.50399417",
"0.5034142",
"0.5034142",
"0.5034142",
"0.5032054",
"0.5030034",
"0.5015172",
"0.5012419",
"0.5004628",
"0.4998868",
"0.49943918",
"0.49858218",
"0.49750248",
"0.49620235",
"0.49480322",
"0.4928069",
"0.491514",
"0.48975533",
"0.4887725",
"0.48823398",
"0.48798457",
"0.48725936",
"0.48686785",
"0.48657653",
"0.4860694",
"0.48601037",
"0.48410326",
"0.48340574",
"0.48251927"
] | 0.5556682 | 37 |
Sets whether to show horizontal scroll bar (null means 'asneeded'). | public void setShowHBar(Boolean aValue)
{
if (aValue==_showHBar) return;
firePropChange(ShowHBar_Prop, _showHBar, _showHBar=aValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean horizontalScroll()\n {\n return horizontalScroll;\n }",
"public void setHorizontalScrollingEnabled(boolean enabled) {\n config.horizontalScrollingEnabled = enabled;\n }",
"public boolean isHorizontalScrollingEnabled() {\n return config.horizontalScrollingEnabled;\n }",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* */ }",
"public void setHorizontalScrollBarPolicy(int paramInt) {\n/* 548 */ switch (paramInt) {\n/* */ case 30:\n/* */ case 31:\n/* */ case 32:\n/* */ break;\n/* */ default:\n/* 554 */ throw new IllegalArgumentException(\"invalid horizontalScrollBarPolicy\");\n/* */ } \n/* 556 */ int i = this.horizontalScrollBarPolicy;\n/* 557 */ this.horizontalScrollBarPolicy = paramInt;\n/* 558 */ firePropertyChange(\"horizontalScrollBarPolicy\", i, paramInt);\n/* 559 */ revalidate();\n/* 560 */ repaint();\n/* */ }",
"@Override\n public boolean canScrollHorizontally() {\n return isScrollEnabled && super.canScrollHorizontally();\n }",
"public void setHorizontalScrollBar(JScrollBar paramJScrollBar) {\n/* 847 */ JScrollBar jScrollBar = getHorizontalScrollBar();\n/* 848 */ this.horizontalScrollBar = paramJScrollBar;\n/* 849 */ if (paramJScrollBar != null) {\n/* 850 */ add(paramJScrollBar, \"HORIZONTAL_SCROLLBAR\");\n/* */ }\n/* 852 */ else if (jScrollBar != null) {\n/* 853 */ remove(jScrollBar);\n/* */ } \n/* 855 */ firePropertyChange(\"horizontalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 857 */ revalidate();\n/* 858 */ repaint();\n/* */ }",
"public void setHorizontalFlingEnabled(boolean enabled) {\n config.horizontalFlingEnabled = enabled;\n }",
"PdfViewerScrollBarHorizontal(PdfViewerController controller)\n {\n super(JScrollBar.HORIZONTAL, controller);\n setUI(ui);\n addAdjustmentListener(new AdjustmentListener()\n {\n public void adjustmentValueChanged(AdjustmentEvent e)\n {\n scrollPosition = e.getValue();\n try\n {\n PdfViewerScrollBarHorizontal.this.controller.scrollTo(scrollPosition,\n PdfViewerScrollBarHorizontal.this.controller.getViewportOrigin().y);\n } catch (PdfViewerException ex)\n {\n DebugLogger.log(ex.toString());\n }\n }\n });\n\n addComponentListener(new ComponentListener()\n {\n\n public void componentShown(ComponentEvent e)\n {\n }\n\n public void componentResized(ComponentEvent e)\n {\n update();\n repaint();\n }\n\n public void componentMoved(ComponentEvent e)\n {\n }\n\n public void componentHidden(ComponentEvent e)\n {\n }\n });\n }",
"public JScrollBar createHorizontalScrollBar() {\n/* 814 */ return new ScrollBar(0);\n/* */ }",
"public void setHorizontal(boolean horizontal) {\n\t\tthis.horizontal = horizontal;\n\t}",
"public boolean isHorizontalFlingEnabled() {\n return config.horizontalFlingEnabled;\n }",
"void setScrollLeft(int scrollLeft);",
"public void setScrollBarEnabled(boolean enabled) {\n mVerticalScrollBarEnabled = mHorizontalScrollBarEnabled = enabled;\n invalidate();\n }",
"public void scrollHorizontal(float amount)\n {\n scroll(amount, 0);\n }",
"@Override\n\tpublic final void enableScrolling(boolean enable) {\n\t\tgetViewportElement().getStyle().setProperty(\"overflow\",\n\t\t\t\tenable ? \"auto\" : \"hidden\");\n\t}",
"private void setScrollOffsetX(int value) {\n bitField0_ |= 0x00000010;\n scrollOffsetX_ = value;\n }",
"@Transient\n/* */ public JScrollBar getHorizontalScrollBar() {\n/* 827 */ return this.horizontalScrollBar;\n/* */ }",
"private void drawScrollBarHorizontal(Canvas canvas,int width) {\n int page = getWidth();\n float all = getScrollMaxX() + getWidth();\n float length = page / all * getWidth();\n float leftX = getOffsetX() / all * getWidth();\n mRect.top = getHeight() - mDpUnit * width;\n mRect.bottom = getHeight();\n mRect.right = leftX + length;\n mRect.left = leftX;\n mHorizontalScrollBar.set(mRect);\n drawColor(canvas,mColors.getColor(mEventHandler.holdHorizontalScrollBar() ? ColorScheme.SCROLL_BAR_THUMB_DOWN : ColorScheme.SCROLL_BAR_THUMB),mRect);\n }",
"@Override\n\tpublic final void setScrollLeft(int left) {\n\t\tDOMImpl.impl.setScrollLeft(documentFor(), left);\n\t}",
"@java.lang.Override\n public boolean hasScrollOffsetX() {\n return instance.hasScrollOffsetX();\n }",
"protected RectF getHorizontalScrollBarRect() {\n return mHorizontalScrollBar;\n }",
"public void setShowHorizontalLines(boolean show) {\r\n calendarTable.setShowHorizontalLines(show);\r\n }",
"private void checkHorizontalScrollBar(BasicComboPopup popup)\n\t{\n\n\t\tJViewport viewport = scrollPane.getViewport();\n\t\tPoint p = viewport.getViewPosition();\n\t\tp.x = 0;\n\t\tviewport.setViewPosition( p );\n\n\t\t// Remove the scrollbar so it is never painted\n\n\t\tif (! scrollBarRequired)\n\t\t{\n\t\t\tscrollPane.setHorizontalScrollBar( null );\n\t\t\treturn;\n\t\t}\n\n\t\t//\tMake sure a horizontal scrollbar exists in the scrollpane\n\n\t\tJScrollBar horizontal = scrollPane.getHorizontalScrollBar();\n\n\t\tif (horizontal == null)\n\t\t{\n\t\t\thorizontal = new JScrollBar(JScrollBar.HORIZONTAL);\n\t\t\tscrollPane.setHorizontalScrollBar( horizontal );\n\t\t\tscrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );\n\t\t}\n\n\t\t//\tPotentially increase height of scroll pane to display the scrollbar\n\n\t\tif (horizontalScrollBarWillBeVisible(popup, scrollPane))\n\t\t{\n\t\t\tDimension scrollPaneSize = scrollPane.getPreferredSize();\n\t\t\tscrollPaneSize.height += horizontal.getPreferredSize().height;\n\t\t\tscrollPane.setPreferredSize(scrollPaneSize);\n\t\t\tscrollPane.setMaximumSize(scrollPaneSize);\n\t\t\tscrollPane.revalidate();\n\t\t}\n\t}",
"public void setDrawHorizontalHighlightIndicator(boolean enabled) { this.mDrawHorizontalHighlightIndicator = enabled; }",
"public void setExpandHorizontal(boolean expand) {\n checkWidget();\n if (expand == expandHorizontal)\n return;\n expandHorizontal = expand;\n layout(false);\n }",
"public void setAutoScroll(boolean b) {\r\n\t\t_autoScroll = b;\r\n\t}",
"boolean hasScrollOffsetX();",
"public boolean getScrollableTracksViewportWidth() {\r\n return false; \r\n }",
"private void drawScrollBarTrackHorizontal(Canvas canvas,int width) {\n if(mEventHandler.holdHorizontalScrollBar()) {\n mRect.top = getHeight() - mDpUnit * width;\n mRect.bottom = getHeight();\n mRect.right = getWidth();\n mRect.left = 0;\n drawColor(canvas,mColors.getColor(ColorScheme.SCROLL_BAR_TRACK),mRect);\n }\n }",
"public static JScrollPane addHorizontalWheelScroll(final JScrollPane jsp) {\n // to make sure this is the first listener\n // 1. save and remove existing listeners\n // 2. add new listener for horizontal scrolling\n // 3. replace saved listeners\n MouseWheelListener[] savedListeners = jsp.getMouseWheelListeners();\n for(MouseWheelListener l : savedListeners)\n jsp.removeMouseWheelListener(l);\n jsp.addMouseWheelListener(new MouseWheelListener() {\n public void mouseWheelMoved(MouseWheelEvent ev) {\n if(ev.isShiftDown() ) {\n // if the vertical scrollbar is not visible the pane will scroll horizontally\n jsp.getVerticalScrollBar().setVisible(false);\n // visibility is returned by the jscrollpane\n }\n }\n });\n // replace saved listeners\n for(MouseWheelListener l : savedListeners)\n jsp.addMouseWheelListener(l);\n\n jsp.getHorizontalScrollBar().setUnitIncrement(15);\n return jsp;\n }",
"public void flashScrollbar() {\n clientRpc.flashScrollbar();\n }",
"protected boolean isHorizontal() {\n\t\treturn true;\n\t}",
"public boolean getShowHorizontalLines() {\r\n return calendarTable.getShowHorizontalLines();\r\n }",
"@JSProperty(\"scrollbar\")\n void setScrollbar(ZAxisScrollbarOptions value);",
"public void showHeader(boolean show) {\n\t\tif (show) {\n\t\t\tscroll.setOffset(0, 0);\n\t\t} else {\n\t\t\tscroll.setOffset(0, -header.getHeight());\n\t\t}\n\n\t}",
"int getVScrollbarWidth();",
"public void setShowToolbar(boolean v) {\n\t\tif (v && !showToolbar) {\n\t\t\tcontentPanel.add(toolbar, \"North\");\n\t\t\tcontentPanel.revalidate();\n\t\t\tif (canvas != null) {\n\t\t\t\tcanvas.draw();\n\t\t\t}\n\t\t} else if (!v && showToolbar) {\n\t\t\tcontentPanel.remove(toolbar);\n\t\t\tcontentPanel.revalidate();\n\t\t\tif (canvas != null) {\n\t\t\t\tcanvas.draw();\n\t\t\t}\n\t\t}\n\t\tthis.showToolbar = v;\n\t}",
"public Boolean isHorizontal() {\n return horizontal;\n }",
"protected boolean allowViewToScroll() {\n return true;\n }",
"public boolean isHorizontalHighlightIndicatorEnabled() { return this.mDrawHorizontalHighlightIndicator; }",
"public static interface HorizontallyScrollable {\n /**\n * Return {@code true} if the component needs to receive right-to-left\n * touch movements.\n *\n * @param origX the raw x coordinate of the initial touch\n * @param origY the raw y coordinate of the initial touch\n */\n\n public boolean interceptMoveLeft(float origX, float origY);\n\n /**\n * Return {@code true} if the component needs to receive left-to-right\n * touch movements.\n *\n * @param origX the raw x coordinate of the initial touch\n * @param origY the raw y coordinate of the initial touch\n */\n public boolean interceptMoveRight(float origX, float origY);\n }",
"private ObservableHorizontalScrollView makeShowInfoScroller()\n\t{\n\t\tshowsView = new ObservableHorizontalScrollView(getContext());\n\t\tshowsView.addListener(this);\n\t\tshowsView.setOnTouchListener(this);\n\n\t\tshowsView.addView(makeShowInfoHorizontalLayout());\n\t\treturn showsView;\n\t}",
"public void setVerticalScrollBarPolicy(int paramInt) {\n/* 500 */ switch (paramInt) {\n/* */ case 20:\n/* */ case 21:\n/* */ case 22:\n/* */ break;\n/* */ default:\n/* 506 */ throw new IllegalArgumentException(\"invalid verticalScrollBarPolicy\");\n/* */ } \n/* 508 */ int i = this.verticalScrollBarPolicy;\n/* 509 */ this.verticalScrollBarPolicy = paramInt;\n/* 510 */ firePropertyChange(\"verticalScrollBarPolicy\", i, paramInt);\n/* 511 */ revalidate();\n/* 512 */ repaint();\n/* */ }",
"@java.lang.Override\n public boolean hasScrollOffsetX() {\n return ((bitField0_ & 0x00000010) != 0);\n }",
"public Builder setScrollOffsetX(int value) {\n copyOnWrite();\n instance.setScrollOffsetX(value);\n return this;\n }",
"public boolean getExpandHorizontal() {\n checkWidget();\n return expandHorizontal;\n }",
"public void setHorizontalAlign(int align) {\r\n this.halign = align;\r\n updateToolbar();\r\n\r\n }",
"public Builder clearScrollOffsetX() {\n copyOnWrite();\n instance.clearScrollOffsetX();\n return this;\n }",
"public void scrollToXPos(int x) {\n horizontalScroll = x;\n repaint();\n }",
"public boolean isHorizontal()\r\n\t{\r\n\t\treturn _position==Position.HORIZONTAL;\r\n\t}",
"private void initScrollPane() {\n\n MyScrollPane = new JScrollPane(MyTextArea);\n super.addCenter(MyScrollPane);\n\n }",
"private void clearScrollOffsetX() {\n bitField0_ = (bitField0_ & ~0x00000010);\n scrollOffsetX_ = 0;\n }",
"private void setScrollBars() {\n int totHeight = jEditorPane1.getSize().height;\n int value = jEditorPane2.getSize().height;\n if (value > totHeight) totHeight = value;\n int totWidth = jEditorPane1.getSize().width;\n value = jEditorPane2.getSize().width;\n if (value > totWidth) totWidth = value;\n int viewHeight = jViewport1.getExtentSize().height;\n int viewWidth = jViewport1.getExtentSize().width;\n //D.deb(\"totHeight = \"+totHeight+\", totWidth = \"+totWidth); // NOI18N\n //D.deb(\"viewHeight = \"+viewHeight+\", viewWidth = \"+viewWidth); // NOI18N\n jScrollBar1.setValues(0, viewWidth, 0, totWidth);\n jScrollBar1.setBlockIncrement(viewWidth);\n jScrollBar2.setValues(0, viewWidth, 0, totWidth);\n jScrollBar2.setBlockIncrement(viewWidth);\n jScrollBar3.setValues(0, viewHeight, 0, totHeight);\n jScrollBar3.setBlockIncrement(viewHeight);\n boolean visibleScroll = jScrollBar1.isVisible();\n //D.deb(\"jScrollBar1.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewWidth < totWidth && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar1 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar1.setVisible(!visibleScroll);\n jScrollBar2.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar1.repaint();\n //jScrollBar2.repaint();\n }\n visibleScroll = jScrollBar3.isVisible();\n //D.deb(\"jScrollBar3.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewHeight < totHeight && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar3 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar3.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar3.repaint();\n }\n }",
"public void setPreferredHorizontalOffset(int preferredHorizontalOffset) {\n\t\tthis.preferredHorizontalOffset = preferredHorizontalOffset;\n\t\tballoonTip.getStyle().setHorizontalOffset(preferredHorizontalOffset);\n\t\tballoonTip.repaint();\n\t}",
"public Boolean getShowHBar() { return _showHBar; }",
"public void setScrolling(boolean isScrolling) {\n this.isScrolling = isScrolling;\n }",
"public void setShowHeaderDivider(boolean enabled) {\n mShowHeaderDivider = enabled;\n if (mListContent != null) {\n mListContent.showHeaderDivider(enabled);\n }\n }",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"public void setHorizontalMargin(int margin) {\n mLayoutManager.setHorizontalMargin(margin);\n requestLayout();\n }",
"protected boolean needsFetchingScroll() {\n \t\treturn false;\n \t}",
"int getScrollLeft();",
"public void setScrollable(boolean scrollable) {\n/* 1006 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public AccessibleJScrollPane() {\n/* 1470 */ resetViewPort();\n/* */ \n/* */ \n/* */ \n/* 1474 */ JScrollBar jScrollBar = JScrollPane.this.getHorizontalScrollBar();\n/* 1475 */ if (jScrollBar != null) {\n/* 1476 */ setScrollBarRelations(jScrollBar);\n/* */ }\n/* 1478 */ jScrollBar = JScrollPane.this.getVerticalScrollBar();\n/* 1479 */ if (jScrollBar != null) {\n/* 1480 */ setScrollBarRelations(jScrollBar);\n/* */ }\n/* */ }",
"public AutoScrollPane() {\n this(null);\n }",
"public void setTouchScrollingEnabled(boolean enable) {\n }",
"public boolean hasScrollableContent() {\n return true;\n }",
"public ScrollBar(int param1Int) {\n/* 718 */ super(param1Int);\n/* 719 */ putClientProperty(\"JScrollBar.fastWheelScrolling\", Boolean.TRUE);\n/* */ }",
"public WordScrollPane() {\n scrollPane = new JScrollPane();\n }",
"public boolean getScrollableTracksViewportWidth()\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}",
"void scrollLeft(int scrollLeft);",
"public void setXForwarding(boolean enable){\n xforwading=enable; \n }",
"public synchronized void enableScreen(boolean enable){\n\t\tremoveAll();\n\t\tif(enable){\n\t\t\tJSplitPane horiz = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true);\n\t\t\thoriz.add(listwebPanel);\n\t\t\thoriz.add(screen);\n\t\t\tadd(horiz, BorderLayout.CENTER);\n\t\t\thoriz.setResizeWeight(.3);\n\t\t\tthread = new Thread(){\n\t\t\t\tpublic void run(){\n\t\t\t\t\twhile(!isInterrupted()){\n\t\t\t\t\t\t//lg(\"listweb minsize: \"+lw.getMinimumSize());\n\t\t\t\t\t\tlg(\"\\r\\n\\r\\n\");\n\t\t\t\t\t\tdisplayMinSizesRecursive(\"\", listwebPanel);\n\t\t\t\t\t\tTime.sleepNoThrow(3);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t\tthread.start();\n\t\t}else{\n\t\t\tif(thread != null) thread.interrupt();\n\t\t\tthread = null;\n\t\t\tadd(listwebPanel, BorderLayout.CENTER);\n\t\t}\n\t}",
"private void setOverflow(boolean overflow)\n {\n if(mOverflow.compareAndSet(!overflow, overflow))\n {\n if(mOverflowListener != null)\n {\n mOverflowListener.sourceOverflow(overflow);\n }\n }\n }",
"private void setScrollDefaultState()\n {\n nestedScrollView.fullScroll(View.FOCUS_UP);\n nestedScrollView.scrollTo(0,0);\n appBarLayout.setExpanded(true);\n }",
"private void setWindowWidth(int width) {\n this.width = width;\n }",
"@java.lang.Override\n public int getScrollOffsetX() {\n return scrollOffsetX_;\n }",
"public boolean getScaleHorizontal() {\r\n return ScaleHorizontal;\r\n }",
"public final void mo20982a() {\n if (this.f21865e != null && this.f21864d != null) {\n int width = this.f21865e.getWidth() - this.f21864d.getWidth();\n if (width > 0) {\n ObjectAnimator.ofInt(this.f21864d, \"scrollX\", new int[]{0, width}).setDuration((long) this.f21867g).start();\n }\n }\n }",
"public void makeScrollable() {\n if (touchScrollHandler == null) {\n touchScrollHandler = TouchScrollDelegate.enableTouchScrolling(this);\n }\n touchScrollHandler.addElement(contentNode);\n }",
"protected void setHBarShowing(boolean aValue)\n {\n // If already set, just return\n if (aValue==isHBarShowing()) return;\n\n // If showing, add and update\n ScrollBar hbar = getHBar();\n if (aValue) {\n addChild(hbar);\n hbar.setViewSize(_scroller.getWidth());\n hbar.setScrollSize(_scroller.getScrollWidth());\n hbar.setScroll(_scroller.getScrollX());\n }\n\n // Otherwise, remove\n else removeChild(hbar);\n\n // Fire prop change\n firePropChange(HBarShowing_Prop, !aValue, aValue);\n }",
"public void CenterScrollPane() {\n JScrollBar sc = CanvasWrapper.getHorizontalScrollBar();\n sc.setValue((sc.getMaximum() - CanvasWrapper.getWidth()) / 2);\n sc = CanvasWrapper.getVerticalScrollBar();\n sc.setValue((sc.getMaximum() - CanvasWrapper.getHeight()) / 2);\n }",
"private void setScrollViewAndHorizontalScrollViewTag(){\n\n this.horizontalScrollViewB.setTag(\"horizontal scroll view b\");\n this.horizontalScrollViewD.setTag(\"horizontal scroll view d\");\n\n this.scrollViewC.setTag(\"scroll view c\");\n this.scrollViewD.setTag(\"scroll view d\");\n }",
"void setScrollPosition(int x, int y);",
"private void setXAxis() {\n XAxis xAxis = mChart.getXAxis();\n xAxis.setGranularity(1f);\n xAxis.setGranularityEnabled(true);\n xAxis.setCenterAxisLabels(false);\n xAxis.setDrawGridLines(false);\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n xAxis.setValueFormatter(new IndexAxisValueFormatter(getXAxisValues()));\n xAxis.setLabelCount(30);\n }",
"private void moveLineOn() {\n getScroller().startScroll(getOffsetX(),getOffsetY(),0,getLineHeight(),0);\n }",
"public boolean isHorizontalMode() throws PDFNetException {\n/* 627 */ return IsHorizontalMode(this.a);\n/* */ }",
"int getScrollOffsetX();",
"private void scrollEnable() {\n mBinding.scroll.postDelayed(new Runnable() {\n @Override\n public void run() {\n int viewHeight = mBinding.scroll.getMeasuredHeight();\n int contentHeight = mBinding.scroll.getChildAt(0).getHeight();\n if (viewHeight - contentHeight < 0) {\n Log.d(\">>>\", \"onGlobalLayout: scroll\");\n mBinding.review.setVisibility(View.VISIBLE);\n mBinding.review.setEnabled(true);\n mBinding.submit.setVisibility(View.GONE);\n // scrollable\n } else {\n mBinding.review.setVisibility(View.GONE);\n mBinding.submit.setVisibility(View.VISIBLE);\n Log.d(\">>>\", \"onGlobalLayout: not scroll\");\n }\n }\n }, 2000);\n }",
"void setResizable(boolean resizable);",
"protected void setHeadless(boolean b) {\n m_Headless = b;\n }",
"public void setRefreshWidth(int width) {\n if (width > 0) {\n m_userRefreshWidth = width;\n }\n }",
"public void clampScroll(){\n //This statement is odd on purpose, there is an extra +1 because of the '>' character in the input field.\n //Compare to WindowEditor.clampScroll().\n scrollX = Util.clamp(input.cursorX + 1 + 1 - getTextWidth(), input.cursorX, scrollX);\n }",
"protected void layoutImpl()\n {\n // Get area bounds\n Insets ins = getInsetsAll();\n double areaX = ins.left;\n double areaY = ins.top;\n double areaW = getWidth() - ins.getWidth();\n double areaH = getHeight() - ins.getHeight();\n\n // Account for ScrollBars\n boolean isVBarShowing = isVBarShowing();\n boolean isHBarShowing = isHBarShowing();\n int barSize = getBarSize();\n if (isVBarShowing)\n areaW -= barSize;\n if (isHBarShowing)\n areaH -= barSize;\n\n // Set Scroller bounds\n _scroller.setBounds(areaX, areaY, areaW, areaH);\n\n // Check whether either ScrollBar.Showing needs updating\n if (updateScrollBarsShowing()) {\n if (!_recursingLayout) {\n _recursingLayout = true;\n layoutImpl();\n _recursingLayout = false;\n return;\n }\n else {\n //updateScrollBarsShowing();\n System.err.println(\"ScrollView: Confused about whether we get eliminate scrollbars\");\n }\n }\n\n // If horizontal scrollbar showing, set bounds\n if (isHBarShowing) {\n ScrollBar hbar = getHBar();\n hbar.setBounds(areaX, areaY + areaH, areaW, barSize);\n }\n\n // If vertical scrollbar showing, set bounds\n if (isVBarShowing) {\n ScrollBar vbar = getVBar();\n vbar.setBounds(areaX + areaW, areaY, barSize, areaH);\n }\n }",
"public void setNowrap(boolean isNowrap)\n {\n this.nowrap = isNowrap;\n }",
"private void doBuildScroller() {\r\n\t\t\r\n\t}",
"public void setContainerScroll ( Boolean containerScroll ) {\r\n\t\tgetStateHelper().put(PropertyKeys.containerScroll, containerScroll);\r\n\t\thandleAttribute(\"containerScroll\", containerScroll);\r\n\t}",
"public boolean isHorizontal() {\n\t\treturn ( getSlope() == 0.0d );\n\t}",
"public void setOverScrolling(boolean z) {\n this.mStackScrollerOverscrolling = z;\n C0940QS qs = this.mQs;\n if (qs != null) {\n qs.setOverscrolling(z);\n }\n }",
"public void setSplitHorizon(boolean sh) {\n\t\tsplithorizon = sh;\n\t}"
] | [
"0.70265716",
"0.6986172",
"0.68424577",
"0.6708212",
"0.6700886",
"0.6599659",
"0.6518335",
"0.64414066",
"0.63947743",
"0.6244925",
"0.620591",
"0.6162951",
"0.61340296",
"0.60782397",
"0.5990259",
"0.5902519",
"0.5741039",
"0.5722647",
"0.56875956",
"0.56627697",
"0.5653474",
"0.5619397",
"0.56119806",
"0.56117636",
"0.54654354",
"0.54330635",
"0.54195577",
"0.5405276",
"0.5381521",
"0.5376079",
"0.53570193",
"0.532616",
"0.53211045",
"0.5270247",
"0.5268726",
"0.5262611",
"0.52039003",
"0.51964796",
"0.51780844",
"0.5167757",
"0.5152555",
"0.51396286",
"0.513494",
"0.51306254",
"0.51077944",
"0.50735784",
"0.5058136",
"0.505208",
"0.5051354",
"0.50298387",
"0.5024946",
"0.5022344",
"0.5020203",
"0.5007356",
"0.50040555",
"0.49894685",
"0.49548763",
"0.49521297",
"0.49520734",
"0.49328905",
"0.49246645",
"0.49128348",
"0.49122185",
"0.490713",
"0.48997808",
"0.48768634",
"0.48691103",
"0.48675647",
"0.4866014",
"0.48637503",
"0.48609945",
"0.48459524",
"0.48409408",
"0.48346877",
"0.4815488",
"0.48143175",
"0.48096365",
"0.47934696",
"0.47911137",
"0.47858652",
"0.47798762",
"0.47774345",
"0.47753432",
"0.47707352",
"0.47704506",
"0.4758154",
"0.47477716",
"0.4745498",
"0.47413865",
"0.47387835",
"0.47318465",
"0.47262275",
"0.47251213",
"0.47025815",
"0.47020954",
"0.46889615",
"0.46855462",
"0.46785644",
"0.46741748",
"0.46736914"
] | 0.50757533 | 45 |
Returns whether to show vertical scroll bar (null means 'asneeded'). | public Boolean getShowVBar() { return _showVBar; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isVerticalFlingEnabled() {\n return config.verticalFlingEnabled;\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"@Override\r\n public boolean canScrollVertically(){\r\n return true;\r\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"public boolean isVertical() {\r\n\t\treturn isVertical;\r\n\t}",
"public Boolean isVertical() {\r\n\t\treturn isVertical;\r\n\t}",
"public boolean hasScrollableContent() {\n return true;\n }",
"boolean hasScrollOffsetY();",
"@Transient\n/* */ public JScrollBar getVerticalScrollBar() {\n/* 886 */ return this.verticalScrollBar;\n/* */ }",
"public Boolean isVertical() {\n return vertical;\n }",
"protected boolean checkScrollPosition(){\n\t\treturn false;\n\t}",
"public JScrollBar createVerticalScrollBar() {\n/* 873 */ return new ScrollBar(1);\n/* */ }",
"@objid (\"7f09cb65-1dec-11e2-8cad-001ec947c8cc\")\n public boolean isVertical() {\n return this.vertical;\n }",
"protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }",
"public boolean horizontalScroll()\n {\n return horizontalScroll;\n }",
"public boolean isVertical(){\n return !isHorizontal();\n }",
"@JSProperty(\"scrollbar\")\n @Nullable\n ZAxisScrollbarOptions getScrollbar();",
"public int getScrollPositionIfEndless(){\n\t\treturn mScrollPositionIfEndless;\n\t}",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* */ }",
"public Boolean getContainerScroll () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.containerScroll);\r\n\t}",
"public boolean isVertical()\n\t{\n\t\treturn CGCWorld.getAnimManager().gHeight(getHighAnim()) > CGCWorld.getAnimManager().gWidth(getHighAnim());\n\t}",
"protected boolean updateScrollBarsShowing()\n {\n // Get Scroller Size\n double scrollerW = _scroller.getWidth();\n double scrollerH = _scroller.getHeight();\n\n // Get child size\n Size contentSize = _scroller.getContentPrefSize();\n double contentW = contentSize.getWidth();\n double contentH = contentSize.getHeight();\n\n // Get whether to show scroll bars\n boolean alwaysH = _showHBar == Boolean.TRUE;\n boolean alwaysV = _showVBar == Boolean.TRUE;\n boolean asneedH = _showHBar == null;\n boolean asneedV = _showVBar == null;\n boolean showHBar = alwaysH || asneedH && contentW > scrollerW;\n boolean showVBar = alwaysV || asneedV && contentH > scrollerH;\n\n // Get whether scroll bars are currently showing\n boolean isHBarShowing = isHBarShowing();\n boolean isVBarShowing = isVBarShowing();\n\n // If showing both ScrollBars, but only because both ScrollBars are showing, hide them and try again\n if (isVBarShowing && isHBarShowing && showVBar && showHBar && asneedH && asneedV) {\n boolean vbarNotReallyNeeded = contentW <= scrollerW + getVBar().getWidth();\n boolean hbarNotReallyNeeded = contentH <= scrollerH + getHBar().getHeight();\n if (vbarNotReallyNeeded && hbarNotReallyNeeded) {\n setVBarShowing(false);\n setHBarShowing(false);\n return true;\n }\n }\n\n // If either ScrollBar in wrong Showing state, set and try again\n if (showVBar != isVBarShowing) {\n setVBarShowing(showVBar);\n return true;\n }\n\n if (showHBar != isHBarShowing) {\n setHBarShowing(showHBar);\n return true;\n }\n\n // Return false since ScrollBar showing didn't change\n return false;\n }",
"public boolean hasVerticalCut() {\r\n\t\treturn mVerticalCut;\r\n\t}",
"@java.lang.Override\n public boolean hasScrollOffsetY() {\n return instance.hasScrollOffsetY();\n }",
"public boolean isScrollable() {\n/* 991 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public void scrollVertical(int direction) {\n return;\n }",
"@JSProperty(\"scrollbar\")\n void setScrollbar(ZAxisScrollbarOptions value);",
"public boolean getShowVerticalLines() {\r\n return calendarTable.getShowVerticalLines();\r\n }",
"@java.lang.Override\n public boolean hasScrollOffsetY() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"int getVScrollbarWidth();",
"public boolean getScrollableTracksViewportHeight() {\n return getParent().getHeight() > getPreferredSize().height;\n }",
"protected boolean needsFetchingScroll() {\n \t\treturn false;\n \t}",
"boolean hasScrollOffsetX();",
"protected boolean allowViewToScroll() {\n return true;\n }",
"public boolean getExpandVertical() {\n checkWidget();\n return expandVertical;\n }",
"int getHScrollbarHeight();",
"public boolean isVerticalHighlightIndicatorEnabled() { return this.mDrawVerticalHighlightIndicator; }",
"PdfViewerScrollBarVertical(PdfViewerController controller)\n {\n super(JScrollBar.VERTICAL, controller);\n setUI(ui);\n\n addAdjustmentListener(new AdjustmentListener()\n {\n public void adjustmentValueChanged(AdjustmentEvent e)\n {\n scrollPosition = e.getValue();\n setNewViewportPosition();\n }\n });\n\n addComponentListener(new ComponentListener()\n {\n\n public void componentShown(ComponentEvent e)\n {\n }\n\n public void componentResized(ComponentEvent e)\n {\n ;\n repaint();\n }\n\n public void componentMoved(ComponentEvent e)\n {\n }\n\n public void componentHidden(ComponentEvent e)\n {\n }\n });\n }",
"public boolean isVBarShowing() { return getVBar().getParent()!=null; }",
"public boolean isWheelScrollingEnabled() {\n/* 1305 */ return this.wheelScrollState;\n/* */ }",
"boolean canScrollUp();",
"public boolean isDragScroll() {\r\n return dragScroll;\r\n }",
"public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}",
"public boolean isVertical() {\n\t\tfinal Double slope = getSlope();\n\t\treturn slope.equals( NaN );\n\t}",
"public boolean onVerticalEdge() {\n\t\treturn vertical != Side.None;\n\t}",
"public boolean isScrollbarPresent(WebElement element) {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n return (Boolean) javaScriptExecutor.executeScript(\"return arguments[0].scrollHeight > arguments[0].clientHeight;\",\n element);\n }",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"public boolean getScrollableTracksViewportWidth() {\r\n return false; \r\n }",
"@Override\r\n\tprotected boolean isScrollable(Component c) {\r\n\t\treturn false;\r\n\t}",
"private void drawVerticalScrollBar(){\n }",
"@Override\n public boolean scrolled(int arg0) {\n return false;\n }",
"@java.lang.Override\n public boolean hasScrollOffsetX() {\n return instance.hasScrollOffsetX();\n }",
"public void setVerticalScrollBar(JScrollBar paramJScrollBar) {\n/* 906 */ JScrollBar jScrollBar = getVerticalScrollBar();\n/* 907 */ this.verticalScrollBar = paramJScrollBar;\n/* 908 */ add(paramJScrollBar, \"VERTICAL_SCROLLBAR\");\n/* 909 */ firePropertyChange(\"verticalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 911 */ revalidate();\n/* 912 */ repaint();\n/* */ }",
"public ScrollBar getVBar()\n {\n if (_vbar!=null) return _vbar;\n _vbar = new ScrollBar(); _vbar.setVertical(true);\n _vbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _vbar;\n }",
"protected boolean isVertical(DefaultRenderer renderer) {\r\n return renderer instanceof XYMultipleSeriesRenderer\r\n && ((XYMultipleSeriesRenderer) renderer).getOrientation() == Orientation.VERTICAL;\r\n }",
"public void setVerticalScrollBarPolicy(int paramInt) {\n/* 500 */ switch (paramInt) {\n/* */ case 20:\n/* */ case 21:\n/* */ case 22:\n/* */ break;\n/* */ default:\n/* 506 */ throw new IllegalArgumentException(\"invalid verticalScrollBarPolicy\");\n/* */ } \n/* 508 */ int i = this.verticalScrollBarPolicy;\n/* 509 */ this.verticalScrollBarPolicy = paramInt;\n/* 510 */ firePropertyChange(\"verticalScrollBarPolicy\", i, paramInt);\n/* 511 */ revalidate();\n/* 512 */ repaint();\n/* */ }",
"public void setVertical(Boolean isVertical) {\r\n\t\tthis.isVertical = isVertical;\r\n\t}",
"public void setVerticalFlingEnabled(boolean enabled) {\n config.verticalFlingEnabled = enabled;\n }",
"@java.lang.Override\n public boolean hasScrollOffsetX() {\n return ((bitField0_ & 0x00000010) != 0);\n }",
"public VerticalScrollbar() {}",
"private JScrollBar getJScrollBar() {\r\n\t\tif (jScrollBar == null) {\r\n\t\t\tjScrollBar = new JScrollBar();\r\n\t\t\tjScrollBar.setBounds(new Rectangle(591, 127, 17, 333));\r\n\t\t}\r\n\t\treturn jScrollBar;\r\n\t}",
"public Boolean isVertical() {\n return this == NORTH || this == SOUTH;\n }",
"private JScrollPane getConsoleScroll() {\r\n\t\tif (consoleScroll == null) {\r\n\t\t\tconsoleScroll = new JScrollPane();\r\n\t\t\tconsoleScroll.setViewportView(getConsole());\r\n\t\t}\r\n\t\treturn consoleScroll;\r\n\t}",
"public Boolean getShowHBar() { return _showHBar; }",
"public void CheckScrollBar() {\n \tif (data3d.Times > 1)\n {\n \tScrollbar Slider=label.TimeScrollbar;\n \tif (! ScrollbarPresent) { //\n\t\t\t\t\t\t// System.out.println(\"Adding a Scrollbar with \"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider=new Scrollbar(Scrollbar.VERTICAL, 0, 1, 0, data3d.Times);\n \tScrollbarPresent=true;\n\t\t\t\t\t\tlabel.TimeScrollbar = Slider; // that it will be moved when browsing though the data\n\t\t\t\t\t\tadd(\"East\", Slider);\n\t\t\t\t\t\t//if (DataPanel != null)\n\t\t\t\t\t\t//\tDataPanel.CheckScrollBar();\n\t\t\t\t\t\t//data3d.ShowAllSlices=true;\n\t\t\t\t\t\tdata3d.TrackDirection = 4;\n\t\t\t\t\t\tif (data3d.SizeZ > 1) {\n\t\t\t\t\t\t\tdata3d.SearchZ = 1;\n\t\t\t\t\t\t\tdata3d.COMZ = 1;\n\t\t\t\t\t\t}\n Slider.setBlockIncrement(data3d.Times / 10 + 1);\n Slider.addAdjustmentListener(c1);\n Slider.setVisible(true);\n \t}\n \telse {\n\t\t\t\t\t\tSlider.setMaximum(data3d.Times);\n\t\t\t\t\t\t// System.out.println(\"Changed Scrollbar size to\"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider.setBlockIncrement(data3d.Times / 10 + 1);\n\t\t\t\t\t\tSlider.setVisible(true);\n\t\t\t\t\t}\n \tSlider.doLayout();\n \tthis.doLayout();\n }\n// if (data3d.Elements > 5)\n// \tdata3d.TrackDirection=3;\n }",
"JScrollBar getScrollBar() {\n return scrollBar;\n }",
"public boolean isHorizontalScrollingEnabled() {\n return config.horizontalScrollingEnabled;\n }",
"public boolean getScaleVertical() {\r\n return ScaleVertical;\r\n }",
"public boolean getMaximizeVisible() {\n checkWidget();\n return showMax;\n }",
"public boolean hasNavigationBar(){\n \treturn true;\n }",
"@Transient\n/* */ public JScrollBar getHorizontalScrollBar() {\n/* 827 */ return this.horizontalScrollBar;\n/* */ }",
"@objid (\"7f09cb6a-1dec-11e2-8cad-001ec947c8cc\")\n public void setVertical(boolean value) {\n if (this.vertical != value) {\n this.vertical = value;\n firePropertyChange(IGmObject.PROPERTY_LAYOUTDATA, null, getLayoutData());\n }\n }",
"public boolean canSelfScroll() {\n return getAdapter().getCount() != 1;\n }",
"public int getScrollNeededToBeFullScreen() {\n return getTransparentViewHeight();\n }",
"private boolean isEdge() {\r\n\t\t// get the child view Width\r\n\t\tint childViewWidth = mChildView.getMeasuredWidth();\r\n\t\t// get the ScrollView Width\r\n\t\tint srollViewWidth = this.getWidth();\r\n\t\t// get\r\n\t\tint tempOffset = childViewWidth - srollViewWidth;\r\n\t\tint scrollX = this.getScrollX();\r\n\t\tif (scrollX == 0 || scrollX == tempOffset) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"default boolean isVerticalLineSegment() {\n return false;\n }",
"@Override\n public boolean canCoalesce() {\n if (mScrollEventType == ScrollEventType.SCROLL) {\n return true;\n }\n return false;\n }",
"public boolean inVerticalBlank();",
"boolean hasPositionY();",
"boolean hasPositionY();",
"boolean hasPositionY();",
"public int getScrollMaxY(){\n return Math.max(0, getLineHeight() * getLineCount() - getHeight() / 2);\n }",
"@Override\n public boolean getScrollContinuously() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.SCROLL_CONTINUOUSLYQ_);\n return ((Boolean)retnValue).booleanValue ();\n }",
"public JScrollBar createHorizontalScrollBar() {\n/* 814 */ return new ScrollBar(0);\n/* */ }",
"public boolean isFillHeight() { return _scroller.isFillHeight(); }",
"public boolean isHBarShowing() { return getHBar().getParent()!=null; }",
"public native int getOverScrollMode() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.overScrollMode;\n }-*/;",
"private void setScrollBars() {\n int totHeight = jEditorPane1.getSize().height;\n int value = jEditorPane2.getSize().height;\n if (value > totHeight) totHeight = value;\n int totWidth = jEditorPane1.getSize().width;\n value = jEditorPane2.getSize().width;\n if (value > totWidth) totWidth = value;\n int viewHeight = jViewport1.getExtentSize().height;\n int viewWidth = jViewport1.getExtentSize().width;\n //D.deb(\"totHeight = \"+totHeight+\", totWidth = \"+totWidth); // NOI18N\n //D.deb(\"viewHeight = \"+viewHeight+\", viewWidth = \"+viewWidth); // NOI18N\n jScrollBar1.setValues(0, viewWidth, 0, totWidth);\n jScrollBar1.setBlockIncrement(viewWidth);\n jScrollBar2.setValues(0, viewWidth, 0, totWidth);\n jScrollBar2.setBlockIncrement(viewWidth);\n jScrollBar3.setValues(0, viewHeight, 0, totHeight);\n jScrollBar3.setBlockIncrement(viewHeight);\n boolean visibleScroll = jScrollBar1.isVisible();\n //D.deb(\"jScrollBar1.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewWidth < totWidth && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar1 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar1.setVisible(!visibleScroll);\n jScrollBar2.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar1.repaint();\n //jScrollBar2.repaint();\n }\n visibleScroll = jScrollBar3.isVisible();\n //D.deb(\"jScrollBar3.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewHeight < totHeight && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar3 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar3.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar3.repaint();\n }\n }",
"boolean hasColumnLayout();",
"@Override\n public boolean canScrollHorizontally() {\n return isScrollEnabled && super.canScrollHorizontally();\n }",
"private JScrollPane getJScrollPane() {\n\t\tif (jScrollPane == null) {\n\t\t\tjScrollPane = new JScrollPane();\n\t\t\tjScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t}\n\t\treturn jScrollPane;\n\t}",
"public void setScrollable(boolean scrollable) {\n/* 1006 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean isYywrap ()\r\n\t{\r\n\t\treturn m_yywrap;\r\n\t}",
"void onScroll(boolean bDragging);",
"public boolean getScrollableTracksViewportWidth()\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}",
"public boolean isVertical() {\n return(point1.getFirst()==point2.getFirst());\n }",
"@Override\r\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\r\n\t}"
] | [
"0.7161417",
"0.71331376",
"0.70962954",
"0.70496166",
"0.700315",
"0.6898071",
"0.6580564",
"0.65741384",
"0.65381694",
"0.64565825",
"0.64264643",
"0.6347756",
"0.6253834",
"0.6148656",
"0.61094654",
"0.610566",
"0.6104529",
"0.6088409",
"0.6084684",
"0.60567707",
"0.60488385",
"0.6040034",
"0.60376203",
"0.603582",
"0.60306513",
"0.6001395",
"0.5957759",
"0.59413785",
"0.5923483",
"0.59140044",
"0.5906578",
"0.59049344",
"0.5898051",
"0.58962137",
"0.58826476",
"0.5881601",
"0.5876465",
"0.5846078",
"0.58332264",
"0.58240604",
"0.5813314",
"0.57891047",
"0.57850575",
"0.5783783",
"0.57722795",
"0.5766517",
"0.5765209",
"0.5758446",
"0.57572263",
"0.57572263",
"0.57248753",
"0.56918585",
"0.5689239",
"0.56708497",
"0.56648415",
"0.56548536",
"0.562223",
"0.5608724",
"0.5607792",
"0.5597855",
"0.55812985",
"0.5565272",
"0.5560485",
"0.55594254",
"0.55133003",
"0.55100846",
"0.5502797",
"0.5491802",
"0.5482404",
"0.54586995",
"0.5448779",
"0.54267615",
"0.54133767",
"0.5391924",
"0.5380505",
"0.5377091",
"0.5367853",
"0.53586817",
"0.5336743",
"0.53294355",
"0.5323256",
"0.52442664",
"0.52442664",
"0.52442664",
"0.5243054",
"0.5237265",
"0.5236148",
"0.5233527",
"0.52228105",
"0.5214223",
"0.52087283",
"0.5185533",
"0.5172142",
"0.515545",
"0.51523066",
"0.514887",
"0.51419944",
"0.5127196",
"0.51259863",
"0.5112287"
] | 0.59777856 | 26 |
Returns whether to show vertical scroll bar (null means 'asneeded'). | public void setShowVBar(Boolean aValue)
{
if (aValue==_showVBar) return;
firePropChange(ShowVBar_Prop, _showVBar, _showVBar=aValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isVerticalFlingEnabled() {\n return config.verticalFlingEnabled;\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"@Override\r\n public boolean canScrollVertically(){\r\n return true;\r\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"public boolean isVertical() {\r\n\t\treturn isVertical;\r\n\t}",
"public Boolean isVertical() {\r\n\t\treturn isVertical;\r\n\t}",
"public boolean hasScrollableContent() {\n return true;\n }",
"boolean hasScrollOffsetY();",
"@Transient\n/* */ public JScrollBar getVerticalScrollBar() {\n/* 886 */ return this.verticalScrollBar;\n/* */ }",
"public Boolean isVertical() {\n return vertical;\n }",
"protected boolean checkScrollPosition(){\n\t\treturn false;\n\t}",
"public JScrollBar createVerticalScrollBar() {\n/* 873 */ return new ScrollBar(1);\n/* */ }",
"@objid (\"7f09cb65-1dec-11e2-8cad-001ec947c8cc\")\n public boolean isVertical() {\n return this.vertical;\n }",
"protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }",
"public boolean horizontalScroll()\n {\n return horizontalScroll;\n }",
"public boolean isVertical(){\n return !isHorizontal();\n }",
"@JSProperty(\"scrollbar\")\n @Nullable\n ZAxisScrollbarOptions getScrollbar();",
"public int getScrollPositionIfEndless(){\n\t\treturn mScrollPositionIfEndless;\n\t}",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* */ }",
"public Boolean getContainerScroll () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.containerScroll);\r\n\t}",
"public boolean isVertical()\n\t{\n\t\treturn CGCWorld.getAnimManager().gHeight(getHighAnim()) > CGCWorld.getAnimManager().gWidth(getHighAnim());\n\t}",
"protected boolean updateScrollBarsShowing()\n {\n // Get Scroller Size\n double scrollerW = _scroller.getWidth();\n double scrollerH = _scroller.getHeight();\n\n // Get child size\n Size contentSize = _scroller.getContentPrefSize();\n double contentW = contentSize.getWidth();\n double contentH = contentSize.getHeight();\n\n // Get whether to show scroll bars\n boolean alwaysH = _showHBar == Boolean.TRUE;\n boolean alwaysV = _showVBar == Boolean.TRUE;\n boolean asneedH = _showHBar == null;\n boolean asneedV = _showVBar == null;\n boolean showHBar = alwaysH || asneedH && contentW > scrollerW;\n boolean showVBar = alwaysV || asneedV && contentH > scrollerH;\n\n // Get whether scroll bars are currently showing\n boolean isHBarShowing = isHBarShowing();\n boolean isVBarShowing = isVBarShowing();\n\n // If showing both ScrollBars, but only because both ScrollBars are showing, hide them and try again\n if (isVBarShowing && isHBarShowing && showVBar && showHBar && asneedH && asneedV) {\n boolean vbarNotReallyNeeded = contentW <= scrollerW + getVBar().getWidth();\n boolean hbarNotReallyNeeded = contentH <= scrollerH + getHBar().getHeight();\n if (vbarNotReallyNeeded && hbarNotReallyNeeded) {\n setVBarShowing(false);\n setHBarShowing(false);\n return true;\n }\n }\n\n // If either ScrollBar in wrong Showing state, set and try again\n if (showVBar != isVBarShowing) {\n setVBarShowing(showVBar);\n return true;\n }\n\n if (showHBar != isHBarShowing) {\n setHBarShowing(showHBar);\n return true;\n }\n\n // Return false since ScrollBar showing didn't change\n return false;\n }",
"public boolean hasVerticalCut() {\r\n\t\treturn mVerticalCut;\r\n\t}",
"@java.lang.Override\n public boolean hasScrollOffsetY() {\n return instance.hasScrollOffsetY();\n }",
"public Boolean getShowVBar() { return _showVBar; }",
"public boolean isScrollable() {\n/* 991 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public void scrollVertical(int direction) {\n return;\n }",
"@JSProperty(\"scrollbar\")\n void setScrollbar(ZAxisScrollbarOptions value);",
"public boolean getShowVerticalLines() {\r\n return calendarTable.getShowVerticalLines();\r\n }",
"@java.lang.Override\n public boolean hasScrollOffsetY() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"int getVScrollbarWidth();",
"public boolean getScrollableTracksViewportHeight() {\n return getParent().getHeight() > getPreferredSize().height;\n }",
"protected boolean needsFetchingScroll() {\n \t\treturn false;\n \t}",
"boolean hasScrollOffsetX();",
"protected boolean allowViewToScroll() {\n return true;\n }",
"public boolean getExpandVertical() {\n checkWidget();\n return expandVertical;\n }",
"int getHScrollbarHeight();",
"public boolean isVerticalHighlightIndicatorEnabled() { return this.mDrawVerticalHighlightIndicator; }",
"PdfViewerScrollBarVertical(PdfViewerController controller)\n {\n super(JScrollBar.VERTICAL, controller);\n setUI(ui);\n\n addAdjustmentListener(new AdjustmentListener()\n {\n public void adjustmentValueChanged(AdjustmentEvent e)\n {\n scrollPosition = e.getValue();\n setNewViewportPosition();\n }\n });\n\n addComponentListener(new ComponentListener()\n {\n\n public void componentShown(ComponentEvent e)\n {\n }\n\n public void componentResized(ComponentEvent e)\n {\n ;\n repaint();\n }\n\n public void componentMoved(ComponentEvent e)\n {\n }\n\n public void componentHidden(ComponentEvent e)\n {\n }\n });\n }",
"public boolean isVBarShowing() { return getVBar().getParent()!=null; }",
"public boolean isWheelScrollingEnabled() {\n/* 1305 */ return this.wheelScrollState;\n/* */ }",
"boolean canScrollUp();",
"public boolean isDragScroll() {\r\n return dragScroll;\r\n }",
"public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}",
"public boolean isVertical() {\n\t\tfinal Double slope = getSlope();\n\t\treturn slope.equals( NaN );\n\t}",
"public boolean onVerticalEdge() {\n\t\treturn vertical != Side.None;\n\t}",
"public boolean isScrollbarPresent(WebElement element) {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n return (Boolean) javaScriptExecutor.executeScript(\"return arguments[0].scrollHeight > arguments[0].clientHeight;\",\n element);\n }",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"public boolean getScrollableTracksViewportWidth() {\r\n return false; \r\n }",
"@Override\r\n\tprotected boolean isScrollable(Component c) {\r\n\t\treturn false;\r\n\t}",
"private void drawVerticalScrollBar(){\n }",
"@Override\n public boolean scrolled(int arg0) {\n return false;\n }",
"@java.lang.Override\n public boolean hasScrollOffsetX() {\n return instance.hasScrollOffsetX();\n }",
"public void setVerticalScrollBar(JScrollBar paramJScrollBar) {\n/* 906 */ JScrollBar jScrollBar = getVerticalScrollBar();\n/* 907 */ this.verticalScrollBar = paramJScrollBar;\n/* 908 */ add(paramJScrollBar, \"VERTICAL_SCROLLBAR\");\n/* 909 */ firePropertyChange(\"verticalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 911 */ revalidate();\n/* 912 */ repaint();\n/* */ }",
"public ScrollBar getVBar()\n {\n if (_vbar!=null) return _vbar;\n _vbar = new ScrollBar(); _vbar.setVertical(true);\n _vbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _vbar;\n }",
"protected boolean isVertical(DefaultRenderer renderer) {\r\n return renderer instanceof XYMultipleSeriesRenderer\r\n && ((XYMultipleSeriesRenderer) renderer).getOrientation() == Orientation.VERTICAL;\r\n }",
"public void setVerticalScrollBarPolicy(int paramInt) {\n/* 500 */ switch (paramInt) {\n/* */ case 20:\n/* */ case 21:\n/* */ case 22:\n/* */ break;\n/* */ default:\n/* 506 */ throw new IllegalArgumentException(\"invalid verticalScrollBarPolicy\");\n/* */ } \n/* 508 */ int i = this.verticalScrollBarPolicy;\n/* 509 */ this.verticalScrollBarPolicy = paramInt;\n/* 510 */ firePropertyChange(\"verticalScrollBarPolicy\", i, paramInt);\n/* 511 */ revalidate();\n/* 512 */ repaint();\n/* */ }",
"public void setVertical(Boolean isVertical) {\r\n\t\tthis.isVertical = isVertical;\r\n\t}",
"public void setVerticalFlingEnabled(boolean enabled) {\n config.verticalFlingEnabled = enabled;\n }",
"@java.lang.Override\n public boolean hasScrollOffsetX() {\n return ((bitField0_ & 0x00000010) != 0);\n }",
"public VerticalScrollbar() {}",
"private JScrollBar getJScrollBar() {\r\n\t\tif (jScrollBar == null) {\r\n\t\t\tjScrollBar = new JScrollBar();\r\n\t\t\tjScrollBar.setBounds(new Rectangle(591, 127, 17, 333));\r\n\t\t}\r\n\t\treturn jScrollBar;\r\n\t}",
"public Boolean isVertical() {\n return this == NORTH || this == SOUTH;\n }",
"private JScrollPane getConsoleScroll() {\r\n\t\tif (consoleScroll == null) {\r\n\t\t\tconsoleScroll = new JScrollPane();\r\n\t\t\tconsoleScroll.setViewportView(getConsole());\r\n\t\t}\r\n\t\treturn consoleScroll;\r\n\t}",
"public Boolean getShowHBar() { return _showHBar; }",
"public void CheckScrollBar() {\n \tif (data3d.Times > 1)\n {\n \tScrollbar Slider=label.TimeScrollbar;\n \tif (! ScrollbarPresent) { //\n\t\t\t\t\t\t// System.out.println(\"Adding a Scrollbar with \"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider=new Scrollbar(Scrollbar.VERTICAL, 0, 1, 0, data3d.Times);\n \tScrollbarPresent=true;\n\t\t\t\t\t\tlabel.TimeScrollbar = Slider; // that it will be moved when browsing though the data\n\t\t\t\t\t\tadd(\"East\", Slider);\n\t\t\t\t\t\t//if (DataPanel != null)\n\t\t\t\t\t\t//\tDataPanel.CheckScrollBar();\n\t\t\t\t\t\t//data3d.ShowAllSlices=true;\n\t\t\t\t\t\tdata3d.TrackDirection = 4;\n\t\t\t\t\t\tif (data3d.SizeZ > 1) {\n\t\t\t\t\t\t\tdata3d.SearchZ = 1;\n\t\t\t\t\t\t\tdata3d.COMZ = 1;\n\t\t\t\t\t\t}\n Slider.setBlockIncrement(data3d.Times / 10 + 1);\n Slider.addAdjustmentListener(c1);\n Slider.setVisible(true);\n \t}\n \telse {\n\t\t\t\t\t\tSlider.setMaximum(data3d.Times);\n\t\t\t\t\t\t// System.out.println(\"Changed Scrollbar size to\"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider.setBlockIncrement(data3d.Times / 10 + 1);\n\t\t\t\t\t\tSlider.setVisible(true);\n\t\t\t\t\t}\n \tSlider.doLayout();\n \tthis.doLayout();\n }\n// if (data3d.Elements > 5)\n// \tdata3d.TrackDirection=3;\n }",
"JScrollBar getScrollBar() {\n return scrollBar;\n }",
"public boolean isHorizontalScrollingEnabled() {\n return config.horizontalScrollingEnabled;\n }",
"public boolean getScaleVertical() {\r\n return ScaleVertical;\r\n }",
"public boolean getMaximizeVisible() {\n checkWidget();\n return showMax;\n }",
"public boolean hasNavigationBar(){\n \treturn true;\n }",
"@Transient\n/* */ public JScrollBar getHorizontalScrollBar() {\n/* 827 */ return this.horizontalScrollBar;\n/* */ }",
"@objid (\"7f09cb6a-1dec-11e2-8cad-001ec947c8cc\")\n public void setVertical(boolean value) {\n if (this.vertical != value) {\n this.vertical = value;\n firePropertyChange(IGmObject.PROPERTY_LAYOUTDATA, null, getLayoutData());\n }\n }",
"public boolean canSelfScroll() {\n return getAdapter().getCount() != 1;\n }",
"public int getScrollNeededToBeFullScreen() {\n return getTransparentViewHeight();\n }",
"private boolean isEdge() {\r\n\t\t// get the child view Width\r\n\t\tint childViewWidth = mChildView.getMeasuredWidth();\r\n\t\t// get the ScrollView Width\r\n\t\tint srollViewWidth = this.getWidth();\r\n\t\t// get\r\n\t\tint tempOffset = childViewWidth - srollViewWidth;\r\n\t\tint scrollX = this.getScrollX();\r\n\t\tif (scrollX == 0 || scrollX == tempOffset) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"default boolean isVerticalLineSegment() {\n return false;\n }",
"@Override\n public boolean canCoalesce() {\n if (mScrollEventType == ScrollEventType.SCROLL) {\n return true;\n }\n return false;\n }",
"public boolean inVerticalBlank();",
"boolean hasPositionY();",
"boolean hasPositionY();",
"boolean hasPositionY();",
"public int getScrollMaxY(){\n return Math.max(0, getLineHeight() * getLineCount() - getHeight() / 2);\n }",
"@Override\n public boolean getScrollContinuously() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.SCROLL_CONTINUOUSLYQ_);\n return ((Boolean)retnValue).booleanValue ();\n }",
"public JScrollBar createHorizontalScrollBar() {\n/* 814 */ return new ScrollBar(0);\n/* */ }",
"public boolean isFillHeight() { return _scroller.isFillHeight(); }",
"public boolean isHBarShowing() { return getHBar().getParent()!=null; }",
"public native int getOverScrollMode() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.overScrollMode;\n }-*/;",
"private void setScrollBars() {\n int totHeight = jEditorPane1.getSize().height;\n int value = jEditorPane2.getSize().height;\n if (value > totHeight) totHeight = value;\n int totWidth = jEditorPane1.getSize().width;\n value = jEditorPane2.getSize().width;\n if (value > totWidth) totWidth = value;\n int viewHeight = jViewport1.getExtentSize().height;\n int viewWidth = jViewport1.getExtentSize().width;\n //D.deb(\"totHeight = \"+totHeight+\", totWidth = \"+totWidth); // NOI18N\n //D.deb(\"viewHeight = \"+viewHeight+\", viewWidth = \"+viewWidth); // NOI18N\n jScrollBar1.setValues(0, viewWidth, 0, totWidth);\n jScrollBar1.setBlockIncrement(viewWidth);\n jScrollBar2.setValues(0, viewWidth, 0, totWidth);\n jScrollBar2.setBlockIncrement(viewWidth);\n jScrollBar3.setValues(0, viewHeight, 0, totHeight);\n jScrollBar3.setBlockIncrement(viewHeight);\n boolean visibleScroll = jScrollBar1.isVisible();\n //D.deb(\"jScrollBar1.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewWidth < totWidth && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar1 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar1.setVisible(!visibleScroll);\n jScrollBar2.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar1.repaint();\n //jScrollBar2.repaint();\n }\n visibleScroll = jScrollBar3.isVisible();\n //D.deb(\"jScrollBar3.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewHeight < totHeight && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar3 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar3.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar3.repaint();\n }\n }",
"boolean hasColumnLayout();",
"@Override\n public boolean canScrollHorizontally() {\n return isScrollEnabled && super.canScrollHorizontally();\n }",
"private JScrollPane getJScrollPane() {\n\t\tif (jScrollPane == null) {\n\t\t\tjScrollPane = new JScrollPane();\n\t\t\tjScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t}\n\t\treturn jScrollPane;\n\t}",
"public void setScrollable(boolean scrollable) {\n/* 1006 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean isYywrap ()\r\n\t{\r\n\t\treturn m_yywrap;\r\n\t}",
"void onScroll(boolean bDragging);",
"public boolean getScrollableTracksViewportWidth()\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}",
"public boolean isVertical() {\n return(point1.getFirst()==point2.getFirst());\n }",
"@Override\r\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\r\n\t}"
] | [
"0.7161417",
"0.71331376",
"0.70962954",
"0.70496166",
"0.700315",
"0.6898071",
"0.6580564",
"0.65741384",
"0.65381694",
"0.64565825",
"0.64264643",
"0.6347756",
"0.6253834",
"0.6148656",
"0.61094654",
"0.610566",
"0.6104529",
"0.6088409",
"0.6084684",
"0.60567707",
"0.60488385",
"0.6040034",
"0.60376203",
"0.603582",
"0.60306513",
"0.6001395",
"0.59777856",
"0.5957759",
"0.59413785",
"0.5923483",
"0.59140044",
"0.5906578",
"0.59049344",
"0.5898051",
"0.58962137",
"0.58826476",
"0.5881601",
"0.5876465",
"0.5846078",
"0.58332264",
"0.58240604",
"0.5813314",
"0.57891047",
"0.57850575",
"0.5783783",
"0.57722795",
"0.5766517",
"0.5765209",
"0.5758446",
"0.57572263",
"0.57572263",
"0.57248753",
"0.56918585",
"0.5689239",
"0.56708497",
"0.56648415",
"0.56548536",
"0.562223",
"0.5608724",
"0.5607792",
"0.5597855",
"0.55812985",
"0.5565272",
"0.5560485",
"0.55594254",
"0.55133003",
"0.55100846",
"0.5502797",
"0.5491802",
"0.5482404",
"0.54586995",
"0.5448779",
"0.54267615",
"0.54133767",
"0.5391924",
"0.5380505",
"0.5377091",
"0.5367853",
"0.53586817",
"0.5336743",
"0.53294355",
"0.5323256",
"0.52442664",
"0.52442664",
"0.52442664",
"0.5243054",
"0.5237265",
"0.5236148",
"0.5233527",
"0.52228105",
"0.5214223",
"0.52087283",
"0.5185533",
"0.5172142",
"0.515545",
"0.51523066",
"0.514887",
"0.51419944",
"0.5127196",
"0.51259863",
"0.5112287"
] | 0.0 | -1 |
Returns whether HBar is showing. | public boolean isHBarShowing() { return getHBar().getParent()!=null; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getShowHBar() { return _showHBar; }",
"public boolean isVBarShowing() { return getVBar().getParent()!=null; }",
"public boolean isMiniHealthBarVisible() {\n return miniHealthBarVisible;\n }",
"public boolean isHdrShow() {\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n return (!Keys.isAlgorithmsOn(settingsManager) || saveDngEnabled() || isDepthEnabled() || Keys.isMotionOn(settingsManager) || isBeautyShow() || isMaskSelected()) ? false : true;\n }",
"private boolean canShowBars() {\n if (mAppBridge != null && mCurrentIndex == 0\n && !mPhotoView.getFilmMode()) {\n return false;\n }\n\n // No bars if it's not allowed.\n if (!mActionBarAllowed) {\n return false;\n }\n\n Configuration config = mActivity.getResources().getConfiguration();\n return config.touchscreen != Configuration.TOUCHSCREEN_NOTOUCH;\n }",
"public boolean isPanelVisibleBecauseOfHeadsUp() {\n return (this.mHeadsUpManager.hasPinnedHeadsUp() || this.mHeadsUpAnimatingAway) && this.mBarState == 0;\n }",
"public void setShowHBar(Boolean aValue)\n {\n if (aValue==_showHBar) return;\n firePropChange(ShowHBar_Prop, _showHBar, _showHBar=aValue);\n }",
"public boolean isHealthVisible() {\n\t\treturn _showHealth;\n\t}",
"public boolean isShowing() {\n return true; // Not supported for MenuComponents\n }",
"public boolean isShown(){\r\n return shown;\r\n }",
"public boolean isProgressBarVisible() {\r\n return pBarVisible;\r\n }",
"public final boolean isProgressBarVisible() {\r\n\r\n if ((pBarVisible == true) && (progressBar != null)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public boolean isShowing() {\n return visible;\n }",
"protected void setHBarShowing(boolean aValue)\n {\n // If already set, just return\n if (aValue==isHBarShowing()) return;\n\n // If showing, add and update\n ScrollBar hbar = getHBar();\n if (aValue) {\n addChild(hbar);\n hbar.setViewSize(_scroller.getWidth());\n hbar.setScrollSize(_scroller.getScrollWidth());\n hbar.setScroll(_scroller.getScrollX());\n }\n\n // Otherwise, remove\n else removeChild(hbar);\n\n // Fire prop change\n firePropChange(HBarShowing_Prop, !aValue, aValue);\n }",
"@Override\n public boolean isShown() {\n return super.isShown();\n }",
"@Override\n\tpublic boolean isShowing() {\n\t\treturn false;\n\t}",
"public boolean isShowHoHaInfo() {\n\t\treturn isShowHoHaInfo;\n\t}",
"public boolean shown();",
"boolean isMenuShowing() {\n return game.r != null;\n }",
"protected final boolean isShowing() {\n synchronized (getPeerTreeLock()) {\n if (isVisible()) {\n final LWContainerPeer<?, ?> container = getContainerPeer();\n return (container == null) || container.isShowing();\n }\n }\n return false;\n }",
"public boolean uploadingProgressBarIsShow() {\n return uploadingProgressBar.getVisibility() == VISIBLE;\n }",
"public boolean hasDisplay() {\n return displayBuilder_ != null || display_ != null;\n }",
"public Boolean getShowVBar() { return _showVBar; }",
"public boolean hasNavigationBar(){\n \treturn true;\n }",
"private static boolean m36212h(View view) {\n return view.isShown() && ((double) view.getAlpha()) > 0.0d;\n }",
"public boolean isShowing() {\n return getRoot().isShowing();\n }",
"public boolean isShowing() {\n\t\tLinearLayout loading = (LinearLayout) findViewById(R.id.loading);\n\t\treturn loading.getVisibility() == View.VISIBLE;\n\t}",
"@Override\r\n public boolean isBar ()\r\n {\r\n return ShapeSet.Barlines.contains(getShape());\r\n }",
"protected boolean updateScrollBarsShowing()\n {\n // Get Scroller Size\n double scrollerW = _scroller.getWidth();\n double scrollerH = _scroller.getHeight();\n\n // Get child size\n Size contentSize = _scroller.getContentPrefSize();\n double contentW = contentSize.getWidth();\n double contentH = contentSize.getHeight();\n\n // Get whether to show scroll bars\n boolean alwaysH = _showHBar == Boolean.TRUE;\n boolean alwaysV = _showVBar == Boolean.TRUE;\n boolean asneedH = _showHBar == null;\n boolean asneedV = _showVBar == null;\n boolean showHBar = alwaysH || asneedH && contentW > scrollerW;\n boolean showVBar = alwaysV || asneedV && contentH > scrollerH;\n\n // Get whether scroll bars are currently showing\n boolean isHBarShowing = isHBarShowing();\n boolean isVBarShowing = isVBarShowing();\n\n // If showing both ScrollBars, but only because both ScrollBars are showing, hide them and try again\n if (isVBarShowing && isHBarShowing && showVBar && showHBar && asneedH && asneedV) {\n boolean vbarNotReallyNeeded = contentW <= scrollerW + getVBar().getWidth();\n boolean hbarNotReallyNeeded = contentH <= scrollerH + getHBar().getHeight();\n if (vbarNotReallyNeeded && hbarNotReallyNeeded) {\n setVBarShowing(false);\n setHBarShowing(false);\n return true;\n }\n }\n\n // If either ScrollBar in wrong Showing state, set and try again\n if (showVBar != isVBarShowing) {\n setVBarShowing(showVBar);\n return true;\n }\n\n if (showHBar != isHBarShowing) {\n setHBarShowing(showHBar);\n return true;\n }\n\n // Return false since ScrollBar showing didn't change\n return false;\n }",
"public static boolean isShownOrQueued() {\n\treturn SnackbarMessage.mLastMessage != null && SnackbarMessage.mLastMessage.isShown();\n}",
"public boolean isHistoGraphicsWindowVisible() {\r\n\t\treturn (DataExplorer.this.displayTab.getItem(this.displayTab.getSelectionIndex()) instanceof HistoGraphicsWindow) && DataExplorer.this.isRecordSetVisible(GraphicsType.HISTO);\r\n\t}",
"boolean isReadyForShowing();",
"public boolean check_WndsHelp_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_WndsHelp_Icon = driver.findElementByAccessibilityId(\"WindowsHelpAppBarButton\");\r\n\t\treturn IsElementVisibleStatus(bottomMenu_WndsHelp_Icon);\r\n\t}",
"public boolean isShadesVisible() {\r\n return showShades;\r\n }",
"public boolean myHealthVisible()\n\t{\n\t\tIntBitmap lifeBar = IntBitmap.getInstance(takeScreenshot(ScreenRegion.LIFE_RECT));\n\t\tRatioFilter.maintainRatio(lifeBar, FilterType.LIFE);\n\t\tBinaryImage bin = lifeBar.toGreyscale().doubleCutoff(30);\n\t\treturn bin.countWhite() > 1000;\n\t\t//return imageMatches(IntBitmap.getInstance(takeScreenshot(ScreenRegion.FIND_HEALTH_RECT)), ImageLibrary.MY_HEALTH_ICON.get());\n\t}",
"public boolean hasPokemonDisplay() {\n return pokemonDisplayBuilder_ != null || pokemonDisplay_ != null;\n }",
"public boolean getIsVisible();",
"public boolean shouldShowHamburgerMenu() {\n Ensighten.evaluateEvent(this, \"shouldShowHamburgerMenu\", null);\n return true;\n }",
"boolean isVisible();",
"boolean isVisible();",
"public java.lang.Boolean getIsVisible();",
"private void showBars() {\n if (!mIsActive || mShowBars) {\n return;\n }\n mShowBars = true;\n mOrientationManager.unlockOrientation();\n showToolBar(true);\n showStatusBar();\n // mActionBar.show();\n //mActivity.getGLRoot().setLightsOutMode(false);\n refreshHidingMessage();\n refreshBottomControlsWhenReady();\n }",
"@Override // com.android.server.wm.WindowContainer\n public boolean isVisible() {\n return true;\n }",
"public boolean isVisible();",
"public boolean isVisible();",
"public boolean isVisible();",
"public boolean check_Help_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_AppHelp_Icon = driver.findElementByAccessibilityId(\"HelpAppBarButton\");\r\n\t\treturn IsElementVisibleStatus(bottomMenu_AppHelp_Icon);\r\n\t}",
"public boolean isCastOverLayShown() {\n if (currentContext != null) {\n SharedPreferences sharedPrefs = currentContext.getSharedPreferences(CASTING_OVERLAY_PREF_NAME, 0);\n return sharedPrefs.getBoolean(CAST_SHARED_PREF_NAME, false);\n }\n return false;\n }",
"@Override // com.android.server.wm.WindowContainer\n public boolean isVisible() {\n return true;\n }",
"@java.lang.Override\n public boolean hasDisplay() {\n return display_ != null;\n }",
"boolean isDisplay();",
"boolean isDisplay();",
"public boolean check_Home_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_Home_Icon = driver.findElementByAccessibilityId(\"HomeAppBarButton\");\r\n\t\treturn IsElementVisibleStatus(bottomMenu_Home_Icon);\r\n\t}",
"public boolean isDisplayed();",
"public boolean isDisplayed() {\n return graphConfig.isDisplayed();\n }",
"public boolean isVisible() {\n return true;\n }",
"public boolean isVisible() {\n return true;\n }",
"boolean hasActionBar();",
"public boolean isInvisible ( ) {\n\t\treturn extract ( handle -> handle.isInvisible ( ) );\n\t}",
"public boolean getModelChartIsVisible();",
"public boolean isGroupListSideBarPresent() {\r\n\t\treturn isElementPresent(groupListSideBar, SHORTWAIT);\r\n\t}",
"public boolean isIndicatorVisible() {\n return isIndicatorVisible;\n }",
"public Boolean isVisible();",
"public Boolean isVisible();",
"public boolean isShowLegend() { return _legend.isVisible(); }",
"public boolean isVisible() {\n\t\treturn true;\n\t}",
"public void toggleMiniHealthBars() {\n miniHealthBarVisible = !miniHealthBarVisible;\n }",
"public boolean isVisible(){\n if(hideMenu) {\n hideMenu = false;\n return true;\n }\n\n return isMenuVisible;\n }",
"public boolean visible(final WinRefEx hWnd) {\n\t\treturn (hWnd == null) ? false : visible(TitleBuilder.byHandle(hWnd));\n\t}",
"public Boolean getIsShow () {\r\n\t\treturn isShow;\r\n\t}",
"public boolean isVisible() {\r\n\t\t\tif (outOfRange()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}",
"@UnsupportedAppUsage\n public boolean isVisible() {\n return mSearchDialog == null? false : mSearchDialog.isShowing();\n }",
"public boolean isVisible() {\n\t\treturn element.isDisplayed();\n\t}",
"@Override\n public boolean isActive() {\n return isShowing();\n }",
"public boolean isSetShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SHOWANIMATION$20) != null;\n }\n }",
"boolean isDisplayed();",
"@java.lang.Override\n public boolean hasPokemonDisplay() {\n return pokemonDisplay_ != null;\n }",
"public boolean isSetDisplay() {\n return this.display != null;\n }",
"public boolean isFlashShow() {\n return (isBeautyShow() || isMaskSelected()) ? false : true;\n }",
"public boolean isVisible () {\n return visible;\n }",
"public boolean getVisibility() {\n return GtkEntry.getVisibility(this);\n }",
"public boolean isModelChartIsVisible();",
"public boolean isHasHp() {\n\t\treturn hasHp;\n\t}",
"public boolean isShowControls() {\r\n return showControls;\r\n }",
"public boolean isConditionalDisplayItem() {\n if(this.conditionalDisplay!=null && this.conditionalDisplay.length()>0) {\n return true;\n }\n return false;\n }",
"public boolean isBrowsable() {\n return (mFlags & FLAG_BROWSABLE) != 0;\n }",
"public boolean getShowToolbar() {\n\t\treturn showToolbar;\n\t}",
"public boolean isBeautyShow() {\n return this.mActivity.getCameraAppUI().getBeautySeek() > 0.0f && !isDepthEnabled();\n }",
"public boolean isVisible(){\n \t\treturn visible;\n \t}",
"public boolean isShowGrid()\n {\n return showGrid;\n }",
"@Override\n\tpublic boolean isVisible() {\n\t\treturn this.isVisible;\n\t}",
"public Boolean isShowInGui() {\n return this.showInGui;\n }",
"public boolean isVisible(){\n\t\treturn this.visible;\n\t}",
"public boolean isVisible()\n {\n return visible;\n }",
"public boolean isMotionShow() {\n return (isDepthEnabled() || isBeautyShow() || isMaskSelected() || saveDngEnabled() || !CustomUtil.getInstance().isPanther()) ? false : true;\n }",
"@Override\n public boolean isVisible()\n {\n return true;\n }",
"public boolean isDraw() {\n\t\tif (!h1.isAlive() && !h2.isAlive())\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public boolean isVisible() {\r\n return visible;\r\n }",
"public abstract boolean isVisible();",
"public abstract boolean isVisible();"
] | [
"0.7995664",
"0.7487417",
"0.7357583",
"0.7333998",
"0.71794444",
"0.71493816",
"0.70678765",
"0.70636725",
"0.6981125",
"0.69236857",
"0.6841922",
"0.67776823",
"0.6747413",
"0.66354156",
"0.66288537",
"0.6519029",
"0.6491153",
"0.64613104",
"0.64466536",
"0.6439601",
"0.6429412",
"0.63964814",
"0.6360667",
"0.6358889",
"0.6354022",
"0.6352558",
"0.63249075",
"0.6319363",
"0.63082486",
"0.6283573",
"0.6277111",
"0.6272096",
"0.6268153",
"0.6255924",
"0.6242353",
"0.623791",
"0.6236572",
"0.623324",
"0.623291",
"0.623291",
"0.6211518",
"0.6202678",
"0.618793",
"0.61822",
"0.61822",
"0.61822",
"0.6175288",
"0.6173182",
"0.61577815",
"0.6139099",
"0.6128058",
"0.6128058",
"0.612293",
"0.6110452",
"0.6107231",
"0.6101379",
"0.60936457",
"0.60895896",
"0.60834104",
"0.60723025",
"0.60626596",
"0.6062403",
"0.6050975",
"0.6050975",
"0.60499084",
"0.60260737",
"0.60127056",
"0.60074407",
"0.6000378",
"0.59801936",
"0.59686935",
"0.59598565",
"0.59525996",
"0.59502906",
"0.5945488",
"0.5937497",
"0.5928187",
"0.5926165",
"0.59240013",
"0.5922083",
"0.5921684",
"0.5904228",
"0.5897074",
"0.5888672",
"0.5883755",
"0.5880844",
"0.58803594",
"0.5879709",
"0.587899",
"0.58747333",
"0.58713996",
"0.5867301",
"0.58648837",
"0.5863206",
"0.58469534",
"0.58173203",
"0.58142674",
"0.5807928",
"0.5804346",
"0.5804346"
] | 0.8798357 | 0 |
Sets whether HBar is showing. | protected void setHBarShowing(boolean aValue)
{
// If already set, just return
if (aValue==isHBarShowing()) return;
// If showing, add and update
ScrollBar hbar = getHBar();
if (aValue) {
addChild(hbar);
hbar.setViewSize(_scroller.getWidth());
hbar.setScrollSize(_scroller.getScrollWidth());
hbar.setScroll(_scroller.getScrollX());
}
// Otherwise, remove
else removeChild(hbar);
// Fire prop change
firePropChange(HBarShowing_Prop, !aValue, aValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setShowHBar(Boolean aValue)\n {\n if (aValue==_showHBar) return;\n firePropChange(ShowHBar_Prop, _showHBar, _showHBar=aValue);\n }",
"public Boolean getShowHBar() { return _showHBar; }",
"public boolean isHBarShowing() { return getHBar().getParent()!=null; }",
"private void showBars() {\n if (!mIsActive || mShowBars) {\n return;\n }\n mShowBars = true;\n mOrientationManager.unlockOrientation();\n showToolBar(true);\n showStatusBar();\n // mActionBar.show();\n //mActivity.getGLRoot().setLightsOutMode(false);\n refreshHidingMessage();\n refreshBottomControlsWhenReady();\n }",
"public void toggleMiniHealthBars() {\n miniHealthBarVisible = !miniHealthBarVisible;\n }",
"protected void setVBarShowing(boolean aValue)\n {\n // If already set, just return\n if (aValue==isVBarShowing()) return;\n\n // If showing, add and update\n ScrollBar vbar = getVBar();\n if (aValue) {\n addChild(vbar);\n vbar.setViewSize(_scroller.getHeight());\n vbar.setScrollSize(_scroller.getScrollHeight());\n vbar.setScroll(_scroller.getScrollY());\n }\n\n // Otherwise, remove\n else removeChild(vbar);\n\n // Fire prop change\n firePropChange(VBarShowing_Prop, !aValue, aValue);\n }",
"public void setShowVBar(Boolean aValue)\n {\n if (aValue==_showVBar) return;\n firePropChange(ShowVBar_Prop, _showVBar, _showVBar=aValue);\n }",
"public boolean isMiniHealthBarVisible() {\n return miniHealthBarVisible;\n }",
"public boolean isVBarShowing() { return getVBar().getParent()!=null; }",
"public void setShowToolbar(boolean v) {\n\t\tif (v && !showToolbar) {\n\t\t\tcontentPanel.add(toolbar, \"North\");\n\t\t\tcontentPanel.revalidate();\n\t\t\tif (canvas != null) {\n\t\t\t\tcanvas.draw();\n\t\t\t}\n\t\t} else if (!v && showToolbar) {\n\t\t\tcontentPanel.remove(toolbar);\n\t\t\tcontentPanel.revalidate();\n\t\t\tif (canvas != null) {\n\t\t\t\tcanvas.draw();\n\t\t\t}\n\t\t}\n\t\tthis.showToolbar = v;\n\t}",
"public void setH(boolean h) {\n\tthis.h = h;\n }",
"public void setShown(boolean shown){\r\n this.shown = shown;\r\n }",
"public void setMiniHealthBarVisible(boolean miniHealthBarVisible) {\n this.miniHealthBarVisible = miniHealthBarVisible;\n }",
"public Boolean getShowVBar() { return _showVBar; }",
"public void setToolbarVisible(boolean b)\n {\n // The north panel is the one containing the toolbar and contact photo.\n toolbarPanel.setVisible(b);\n }",
"public void updateShowEmptyShadeView() {\n boolean z = true;\n if (this.mBarState == 1 || this.mEntryManager.hasActiveNotifications()) {\n z = false;\n }\n showEmptyShadeView(z);\n }",
"protected void setChartShow() {\n\t\tbackIV.setVisibility(View.GONE);\r\n\t\tbarLayout.setVisibility(View.GONE);\r\n\t\tif (chartShowFrag == null) {\r\n\t\t\tfTransaction.add(R.id.content, new ChartShowFrag(),\r\n\t\t\t\t\tChartShowFrag.TAG);\r\n\t\t} else {\r\n\t\t\tfTransaction.attach(chartShowFrag);\r\n\t\t}\r\n\t\ttitleTV.setText(R.string.chart_show);\r\n\t}",
"public void updateHeadsUpVisibility() {\n ((PhoneStatusBarView) this.mBar).setHeadsUpVisible(this.mHeadsUpAnimatingAway || this.mHeadsUpPinnedMode);\n }",
"public void setHbarValue(double value) {\n setHbarValue(value, 0);\n }",
"protected void setShow() {\n\t\tbarLayout.setVisibility(View.GONE);\r\n\t\tif (showFragment == null) {\r\n\t\t\tfTransaction\r\n\t\t\t\t\t.add(R.id.content, new ShowFragment(), ShowFragment.TAG);\r\n\t\t} else {\r\n\t\t\tfTransaction.attach(showFragment);\r\n\t\t}\r\n\t\ttitleTV.setText(R.string.show);\r\n\t\tleftTV.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\thost.setCurrentTab(CHART);\r\n\t\t\t}\r\n\t\t});\r\n\t\trightTV.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tToast.makeText(getApplication(), \"right\", 1).show();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void setVisible()\r\n\t{\r\n\t\tthis.setVisible(true);\r\n\t}",
"public void setProgressBarVisible(final boolean flag) {\r\n pBarVisible = flag;\r\n }",
"public void setVisible(boolean b) {\n // Not supported for MenuComponents\n }",
"public void showToolbar(boolean visible)\r\n\t{\r\n\t\ttoolbar_left.setVisible(visible);\r\n\t\ttoolbar_right.setVisible(visible);\r\n\t\ttoolbar.setVisible(visible);\r\n\t\tchatTextBox.setVisible(visible);\r\n\t}",
"@Override\n public boolean isShown() {\n return super.isShown();\n }",
"@Override\n public void setVisible(boolean arg0)\n {\n \n }",
"public void setShowHover(boolean h)\n {\n showHover = h;\n }",
"boolean setActionBarVisible(boolean visible);",
"public void setVisible(boolean b) {\n\t\tsuper.setVisible(b);\n\n\t\tif (b)\n\t\t\tpaint(this.getGraphics());\n\t}",
"public void setVisible(boolean val);",
"@Override\n\tpublic boolean isShowing() {\n\t\treturn false;\n\t}",
"public void toggleHideyBar() {\n // BEGIN_INCLUDE (get_current_ui_flags)\n // The UI options currently enabled are represented by a bitfield.\n // getSystemUiVisibility() gives us that bitfield.\n int uiOptions = getWindow().getDecorView().getSystemUiVisibility();\n int newUiOptions = uiOptions;\n // END_INCLUDE (get_current_ui_flags)\n // BEGIN_INCLUDE (toggle_ui_flags\n\n // Immersive mode: Backward compatible to KitKat (API 19).\n // Note that this flag doesn't do anything by itself, it only augments the behavior\n // of HIDE_NAVIGATION and FLAG_FULLSCREEN. For the purposes of this sample\n // all three flags are being toggled together.\n // This sample uses the \"sticky\" form of immersive mode, which will let the user swipe\n // the bars back in again, but will automatically make them disappear a few seconds later.\n newUiOptions ^= View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;//通过异或来使屏幕全屏缩放.\n newUiOptions ^= View.SYSTEM_UI_FLAG_FULLSCREEN;\n newUiOptions ^= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;\n getWindow().getDecorView().setSystemUiVisibility(newUiOptions);\n //END_INCLUDE (set_ui_flags)\n }",
"public void setTableBarVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_tableBar_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_tableBar_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setTableBarVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public void toggle()\n\t{\n\t\tsetVisible(!this.isShowing());\n\t}",
"@Override\n public void setVisible (boolean f)\n { \n }",
"private void setProgressBarVisible(boolean pBool) {\n\n ProgressBar tempBar = (ProgressBar)findViewById(R.id.tallyDeviceConnectionStatusMessageProgressBar);\n\n if (pBool) { tempBar.setVisibility(View.VISIBLE); }\n else { tempBar.setVisibility(View.GONE); }\n\n }",
"public void setProgressBarVisible(boolean flag) {\r\n\r\n pBarVisible = flag;\r\n\r\n if (progressBar != null) {\r\n progressBar.setVisible(flag);\r\n }\r\n }",
"public void setVisible(boolean v) {\n }",
"@Override\n\tpublic void setVisible(boolean b) {\n\t\t\n\t}",
"public boolean isShown(){\r\n return shown;\r\n }",
"private boolean canShowBars() {\n if (mAppBridge != null && mCurrentIndex == 0\n && !mPhotoView.getFilmMode()) {\n return false;\n }\n\n // No bars if it's not allowed.\n if (!mActionBarAllowed) {\n return false;\n }\n\n Configuration config = mActivity.getResources().getConfiguration();\n return config.touchscreen != Configuration.TOUCHSCREEN_NOTOUCH;\n }",
"public void setVisible(boolean b) {\n\t\t\n\t}",
"public void setVisible()\n\t{\n\t\tMainController.getInstance().setVisible(name, true);\n\t}",
"protected void showProgressBar(boolean show){\n if(show){\n mProgressBar.setVisibility(View.VISIBLE);\n }\n else{\n mProgressBar.setVisibility(View.GONE);\n }\n }",
"private void makeLeaderboardVisible(){\n if(leaderBoardBar!=null){\n leaderBoardBar.animate().alpha(1).setDuration(800).setInterpolator(new DecelerateInterpolator(2.0f));\n }\n }",
"private void showLeaderboardBar() {\n if (leaderBoardBar != null) {\n leaderBoardBar.animate().translationY(0);\n }\n }",
"public void setDisplayVisibility(boolean on) {\n if (settingVisibility) {\n return;\n }\n super.setDisplayVisibility(on);\n applyVisibilityFlags();\n }",
"void setVisible(boolean visible);",
"void setVisible(boolean visible);",
"public void setVisible(boolean b) {\n\t\tframe.setVisible(b);\t\n\t}",
"public void setupAndShow() {\n\t\t\tfMaxTextField.setText(BarGraphDisplayer.this.getMaxLabel());\n\t\t\tfMinTextField.setText(BarGraphDisplayer.this.getMinLabel());\n\t\t\tfMinTextField.selectAll();\n\t\t\tfMinTextField.requestFocus();\n\t\t\tthis.setVisible(true);\n\t\t}",
"public void show() {\n hidden = false;\n }",
"public void show() {\n visible=true;\n }",
"public void setVisible(Boolean visible);",
"public void setDisplayed(boolean show);",
"public void setVisible(boolean val)\r\n\t{\r\n\t\t_isOn = val;\r\n\t}",
"public void setShowDisplaySlotPanel(boolean b) {\r\n\r\n }",
"private void setVis(boolean b) {\n this.setVisible(b);\n }",
"public boolean isHdrShow() {\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n return (!Keys.isAlgorithmsOn(settingsManager) || saveDngEnabled() || isDepthEnabled() || Keys.isMotionOn(settingsManager) || isBeautyShow() || isMaskSelected()) ? false : true;\n }",
"private void showNav(){\n navBar.setVisibility(View.VISIBLE);\n }",
"public MenuBar() {\r\n super();\r\n myTrue = false;\r\n }",
"public boolean isPanelVisibleBecauseOfHeadsUp() {\n return (this.mHeadsUpManager.hasPinnedHeadsUp() || this.mHeadsUpAnimatingAway) && this.mBarState == 0;\n }",
"public void setVisible(boolean visible);",
"public void setHistoGraphicsTabItemVisible(boolean visible) {\r\n\t\tif (visible) {\r\n\t\t\tif (this.histoGraphicsTabItem == null || this.histoGraphicsTabItem.isDisposed()) {\r\n\t\t\t\tint position = (this.displayTab.getItems().length < DataExplorer.TAB_INDEX_HISTO_GRAPHIC ? this.displayTab.getItems().length : DataExplorer.TAB_INDEX_HISTO_GRAPHIC);\r\n\t\t\t\tthis.histoGraphicsTabItem = new HistoGraphicsWindow(this.displayTab, SWT.NONE, position);\r\n\t\t\t\tthis.histoGraphicsTabItem.create();\r\n\t\t\t\t//restore window settings\r\n\t\t\t\tthis.setCurveSelectorEnabled(this.isCurveSelectorEnabled);\r\n\t\t\t\tthis.enableRecordSetComment(this.isRecordCommentVisible);\r\n\t\t\t\tthis.enableGraphicsHeader(this.isGraphicsHeaderVisible);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (this.histoGraphicsTabItem != null && !this.histoGraphicsTabItem.isDisposed()) {\r\n\t\t\t\tthis.histoGraphicsTabItem.dispose();\r\n\t\t\t\tthis.histoGraphicsTabItem = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void toggleHideyBar() {\n // BEGIN_INCLUDE (get_current_ui_flags)\n // The UI options currently enabled are represented by a bitfield.\n // getSystemUiVisibility() gives us that bitfield.\n int uiOptions = getWindow().getDecorView().getSystemUiVisibility();\n int newUiOptions = uiOptions;\n // END_INCLUDE (get_current_ui_flags)\n // BEGIN_INCLUDE (toggle_ui_flags)\n boolean isImmersiveModeEnabled =\n ((uiOptions | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY) == uiOptions);\n if (isImmersiveModeEnabled) {\n Log.i(TAG, \"Turning immersive mode mode off. \");\n } else {\n Log.i(TAG, \"Turning immersive mode mode on.\");\n }\n\n // Immersive mode: Backward compatible to KitKat (API 19).\n // Note that this flag doesn't do anything by itself, it only augments the behavior\n // of HIDE_NAVIGATION and FLAG_FULLSCREEN. For the purposes of this sample\n // all three flags are being toggled together.\n // This sample uses the \"sticky\" form of immersive mode, which will let the user swipe\n // the bars back in again, but will automatically make them disappear a few seconds later.\n newUiOptions ^= View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;\n newUiOptions ^= View.SYSTEM_UI_FLAG_FULLSCREEN;\n newUiOptions ^= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;\n getWindow().getDecorView().setSystemUiVisibility(newUiOptions);\n //END_INCLUDE (set_ui_flags)\n }",
"public void setVisible(Boolean isVisible);",
"public void show() {\n isVisible = true;\n this.saveBorderColor(playerColor);\n this.setBorderColor(playerColor);\n }",
"public void show() {\n\t\thidden = false;\n\t}",
"public boolean isShowing() {\n return true; // Not supported for MenuComponents\n }",
"public void showBottomDivider(boolean show) {\n this.showBottomDivider = show;\n }",
"public void setIsShow (Boolean isShow) {\r\n\t\tthis.isShow = isShow;\r\n\t}",
"public void setVisible(boolean newVisible)\n {\n this.visible = newVisible;\n conditionallyRepaint();\n }",
"public boolean isProgressBarVisible() {\r\n return pBarVisible;\r\n }",
"public boolean isHealthVisible() {\n\t\treturn _showHealth;\n\t}",
"public void setSelectedItemBarVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_selectedItemBar_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_selectedItemBar_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setSelectedItemBarVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public void setVisible( boolean v) {\r\n visible = v;\r\n }",
"void setVisibleGlassPanel(Visibility visible);",
"public abstract BossBar hide();",
"@SuppressLint(\"InlinedApi\")\n private void show() {\n myrlayout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }",
"public void setVisible(boolean value) {\n\t\tvisible = value;\n\t}",
"@Override\n public void setSupportProgressBarIndeterminateVisibility(boolean visible) {\n getSupportActionBar().getCustomView().setVisibility(visible ? View.VISIBLE : View.GONE);\n }",
"public void setShowGestureLine(boolean show) {\n this.mShowGestureLine = show;\n postInvalidate();\n }",
"private void showSignInBar() {\n Log.d(TAG, \"Showing sign in bar\");\n findViewById(R.id.sign_in_bar).setVisibility(View.VISIBLE);\n findViewById(R.id.sign_out_bar).setVisibility(View.GONE);\n }",
"public void showHeader(boolean show) {\n\t\tif (show) {\n\t\t\tscroll.setOffset(0, 0);\n\t\t} else {\n\t\t\tscroll.setOffset(0, -header.getHeight());\n\t\t}\n\n\t}",
"private void showProgressBar(boolean show){\n if(show){\n progressBar.show();\n } else {\n progressBar.dismiss();\n }\n }",
"public void setVisible(boolean v) {\n\t\tif (v) {\n\t\t\trequestFocus();\n\t\t}\n\t\tsuper.setVisible(v);\n\t}",
"public void setShortDisplay(boolean value)\r\n {\r\n if (shortDisplay != value)\r\n {\r\n shortDisplay = value;\r\n\r\n titleLabel.setVisible(!value);\r\n infos2Label.setVisible(!value);\r\n }\r\n }",
"public void setHeliophilous(boolean value) {\n\t\tthis.heliophilous = value;\n\t}",
"public void setShowLegend(boolean aValue)\n{\n if(aValue==isShowLegend()) return;\n _legend.setVisible(aValue);\n}",
"public void show() {\n\t\t// Useless if called in outside animation loop\n\t\tactive = true;\n\t}",
"public void setIsVisible(boolean isVisible);",
"void setActionBarAnimation(boolean enabled);",
"public void setDisplay(boolean val) {\n \tdisplay = val; \n }",
"@VisibleForTesting\n public void setAssistantVisible(boolean z) {\n updateBiometricListeningState();\n }",
"public void setShowGrid(boolean value) {\n\t\tthis.showGrid = value;\n\t}",
"public void setVisible(boolean is_visible){\n\t\tswingComponent.setVisible(is_visible);\n\t}",
"public void setDisplay(boolean isFaceUp, boolean isTapped) {\n \n \t}",
"protected boolean updateScrollBarsShowing()\n {\n // Get Scroller Size\n double scrollerW = _scroller.getWidth();\n double scrollerH = _scroller.getHeight();\n\n // Get child size\n Size contentSize = _scroller.getContentPrefSize();\n double contentW = contentSize.getWidth();\n double contentH = contentSize.getHeight();\n\n // Get whether to show scroll bars\n boolean alwaysH = _showHBar == Boolean.TRUE;\n boolean alwaysV = _showVBar == Boolean.TRUE;\n boolean asneedH = _showHBar == null;\n boolean asneedV = _showVBar == null;\n boolean showHBar = alwaysH || asneedH && contentW > scrollerW;\n boolean showVBar = alwaysV || asneedV && contentH > scrollerH;\n\n // Get whether scroll bars are currently showing\n boolean isHBarShowing = isHBarShowing();\n boolean isVBarShowing = isVBarShowing();\n\n // If showing both ScrollBars, but only because both ScrollBars are showing, hide them and try again\n if (isVBarShowing && isHBarShowing && showVBar && showHBar && asneedH && asneedV) {\n boolean vbarNotReallyNeeded = contentW <= scrollerW + getVBar().getWidth();\n boolean hbarNotReallyNeeded = contentH <= scrollerH + getHBar().getHeight();\n if (vbarNotReallyNeeded && hbarNotReallyNeeded) {\n setVBarShowing(false);\n setHBarShowing(false);\n return true;\n }\n }\n\n // If either ScrollBar in wrong Showing state, set and try again\n if (showVBar != isVBarShowing) {\n setVBarShowing(showVBar);\n return true;\n }\n\n if (showHBar != isHBarShowing) {\n setHBarShowing(showHBar);\n return true;\n }\n\n // Return false since ScrollBar showing didn't change\n return false;\n }",
"@Override\n\tpublic void onHiddenChanged(boolean hidden) {\n\t\tsuper.onHiddenChanged(hidden);\n\t\tif (!hidden) {\n\t\t\tmActionBar.setTitle(\"设置\");\n\t\t\tmActionBar.hideRightView();\n\t\t}\n\t}",
"@Override\n\tpublic void setVisible(boolean vis) {\n\t\t\n\t}"
] | [
"0.85790503",
"0.77637744",
"0.759264",
"0.70024",
"0.6911833",
"0.68991",
"0.68763053",
"0.6436966",
"0.6369157",
"0.633461",
"0.6332161",
"0.62913024",
"0.6291034",
"0.62880945",
"0.62305987",
"0.62051797",
"0.61799216",
"0.61190265",
"0.60404676",
"0.6036999",
"0.60217214",
"0.6008929",
"0.5990672",
"0.599034",
"0.59689087",
"0.5949405",
"0.59423935",
"0.59290504",
"0.58654547",
"0.5846357",
"0.58293825",
"0.5818321",
"0.5816102",
"0.58052737",
"0.5779512",
"0.57651407",
"0.5762428",
"0.5758394",
"0.575454",
"0.5752238",
"0.574066",
"0.572715",
"0.5722875",
"0.56878996",
"0.5687193",
"0.5686127",
"0.5685965",
"0.56680447",
"0.56680447",
"0.56631756",
"0.56625223",
"0.5661129",
"0.5654469",
"0.56486845",
"0.56452006",
"0.5636426",
"0.5627541",
"0.56216294",
"0.5619921",
"0.56114364",
"0.56106865",
"0.56010634",
"0.5599516",
"0.5596957",
"0.55735976",
"0.55727243",
"0.55701786",
"0.5570059",
"0.55664265",
"0.5552283",
"0.55500656",
"0.5542235",
"0.5541889",
"0.5539478",
"0.55391693",
"0.55212814",
"0.55141014",
"0.5502234",
"0.5494547",
"0.5487003",
"0.5486485",
"0.5471486",
"0.5468552",
"0.546252",
"0.5462341",
"0.5452626",
"0.5447779",
"0.544319",
"0.5441437",
"0.5440611",
"0.54373485",
"0.5426556",
"0.54211545",
"0.54166126",
"0.541185",
"0.5407522",
"0.5406736",
"0.54052025",
"0.539977",
"0.53968185"
] | 0.80169505 | 1 |
Returns whether VBar is showing. | public boolean isVBarShowing() { return getVBar().getParent()!=null; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getShowVBar() { return _showVBar; }",
"public boolean isHBarShowing() { return getHBar().getParent()!=null; }",
"public boolean isProgressBarVisible() {\r\n return pBarVisible;\r\n }",
"private boolean canShowBars() {\n if (mAppBridge != null && mCurrentIndex == 0\n && !mPhotoView.getFilmMode()) {\n return false;\n }\n\n // No bars if it's not allowed.\n if (!mActionBarAllowed) {\n return false;\n }\n\n Configuration config = mActivity.getResources().getConfiguration();\n return config.touchscreen != Configuration.TOUCHSCREEN_NOTOUCH;\n }",
"public final boolean isProgressBarVisible() {\r\n\r\n if ((pBarVisible == true) && (progressBar != null)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public void setShowVBar(Boolean aValue)\n {\n if (aValue==_showVBar) return;\n firePropChange(ShowVBar_Prop, _showVBar, _showVBar=aValue);\n }",
"public boolean isShowing() {\n return true; // Not supported for MenuComponents\n }",
"public Boolean getShowHBar() { return _showHBar; }",
"protected void setVBarShowing(boolean aValue)\n {\n // If already set, just return\n if (aValue==isVBarShowing()) return;\n\n // If showing, add and update\n ScrollBar vbar = getVBar();\n if (aValue) {\n addChild(vbar);\n vbar.setViewSize(_scroller.getHeight());\n vbar.setScrollSize(_scroller.getScrollHeight());\n vbar.setScroll(_scroller.getScrollY());\n }\n\n // Otherwise, remove\n else removeChild(vbar);\n\n // Fire prop change\n firePropChange(VBarShowing_Prop, !aValue, aValue);\n }",
"public boolean isShowing() {\n return visible;\n }",
"public boolean uploadingProgressBarIsShow() {\n return uploadingProgressBar.getVisibility() == VISIBLE;\n }",
"public boolean isShown(){\r\n return shown;\r\n }",
"protected final boolean isShowing() {\n synchronized (getPeerTreeLock()) {\n if (isVisible()) {\n final LWContainerPeer<?, ?> container = getContainerPeer();\n return (container == null) || container.isShowing();\n }\n }\n return false;\n }",
"public boolean isPanelVisibleBecauseOfHeadsUp() {\n return (this.mHeadsUpManager.hasPinnedHeadsUp() || this.mHeadsUpAnimatingAway) && this.mBarState == 0;\n }",
"@Override\n\tpublic boolean isShowing() {\n\t\treturn false;\n\t}",
"protected boolean updateScrollBarsShowing()\n {\n // Get Scroller Size\n double scrollerW = _scroller.getWidth();\n double scrollerH = _scroller.getHeight();\n\n // Get child size\n Size contentSize = _scroller.getContentPrefSize();\n double contentW = contentSize.getWidth();\n double contentH = contentSize.getHeight();\n\n // Get whether to show scroll bars\n boolean alwaysH = _showHBar == Boolean.TRUE;\n boolean alwaysV = _showVBar == Boolean.TRUE;\n boolean asneedH = _showHBar == null;\n boolean asneedV = _showVBar == null;\n boolean showHBar = alwaysH || asneedH && contentW > scrollerW;\n boolean showVBar = alwaysV || asneedV && contentH > scrollerH;\n\n // Get whether scroll bars are currently showing\n boolean isHBarShowing = isHBarShowing();\n boolean isVBarShowing = isVBarShowing();\n\n // If showing both ScrollBars, but only because both ScrollBars are showing, hide them and try again\n if (isVBarShowing && isHBarShowing && showVBar && showHBar && asneedH && asneedV) {\n boolean vbarNotReallyNeeded = contentW <= scrollerW + getVBar().getWidth();\n boolean hbarNotReallyNeeded = contentH <= scrollerH + getHBar().getHeight();\n if (vbarNotReallyNeeded && hbarNotReallyNeeded) {\n setVBarShowing(false);\n setHBarShowing(false);\n return true;\n }\n }\n\n // If either ScrollBar in wrong Showing state, set and try again\n if (showVBar != isVBarShowing) {\n setVBarShowing(showVBar);\n return true;\n }\n\n if (showHBar != isHBarShowing) {\n setHBarShowing(showHBar);\n return true;\n }\n\n // Return false since ScrollBar showing didn't change\n return false;\n }",
"public boolean isVisible();",
"public boolean isVisible();",
"public boolean isVisible();",
"public boolean isVisible() {\n return true;\n }",
"public boolean isVisible() {\n return true;\n }",
"boolean isVisible();",
"boolean isVisible();",
"public boolean isVisible() {\r\n\t\t\tif (outOfRange()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}",
"@Override\n public boolean isShown() {\n return super.isShown();\n }",
"public boolean isMiniHealthBarVisible() {\n return miniHealthBarVisible;\n }",
"public boolean isTargetVisible() {\n return getDouble(\"tv\") == 1;\n }",
"public boolean isVisible() {\n\t\treturn true;\n\t}",
"public boolean shown();",
"public Boolean isVisible();",
"public Boolean isVisible();",
"public boolean hasNavigationBar(){\n \treturn true;\n }",
"public boolean isShowing() {\n\t\tLinearLayout loading = (LinearLayout) findViewById(R.id.loading);\n\t\treturn loading.getVisibility() == View.VISIBLE;\n\t}",
"public boolean isHdrShow() {\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n return (!Keys.isAlgorithmsOn(settingsManager) || saveDngEnabled() || isDepthEnabled() || Keys.isMotionOn(settingsManager) || isBeautyShow() || isMaskSelected()) ? false : true;\n }",
"public boolean getIsVisible();",
"public java.lang.Boolean getIsVisible();",
"@Override\r\n public boolean isBar ()\r\n {\r\n return ShapeSet.Barlines.contains(getShape());\r\n }",
"@Override // com.android.server.wm.WindowContainer\n public boolean isVisible() {\n return true;\n }",
"public boolean isVehicleListSideBarPresent() {\r\n\t\treturn isElementPresent(groupListSideBar.replace(\"Group List\", \"Vehicle List\"), SHORTWAIT);\r\n\t}",
"@Override // com.android.server.wm.WindowContainer\n public boolean isVisible() {\n return true;\n }",
"public boolean isVisible(){\n if(hideMenu) {\n hideMenu = false;\n return true;\n }\n\n return isMenuVisible;\n }",
"public boolean isVisible(){\n\t\treturn this.visible;\n\t}",
"public boolean isShowControls() {\r\n return showControls;\r\n }",
"@Override\n\tpublic boolean isVisible() {\n\t\treturn this.isVisible;\n\t}",
"public boolean getModelChartIsVisible();",
"public boolean isIndicatorVisible() {\n return isIndicatorVisible;\n }",
"public boolean isShowing() {\n return getRoot().isShowing();\n }",
"public Boolean isShowInGui() {\n return this.showInGui;\n }",
"boolean isMenuShowing() {\n return game.r != null;\n }",
"public boolean isVisible(){\n \t\treturn visible;\n \t}",
"public boolean getIsVisible()\n\t{\n\t\tif (getParentFragment() != null && getParentFragment() instanceof BaseFragment)\n\t\t{\n\t\t\treturn isVisible() && ((BaseFragment) getParentFragment()).getIsVisible();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn isVisible();\n\t\t}\n\t}",
"public boolean isVisible () {\n return visible;\n }",
"private void showBars() {\n if (!mIsActive || mShowBars) {\n return;\n }\n mShowBars = true;\n mOrientationManager.unlockOrientation();\n showToolBar(true);\n showStatusBar();\n // mActionBar.show();\n //mActivity.getGLRoot().setLightsOutMode(false);\n refreshHidingMessage();\n refreshBottomControlsWhenReady();\n }",
"@Override\n public boolean isVisible()\n {\n return true;\n }",
"boolean isVisible() {\r\n return this.isVisible;\r\n }",
"public boolean isHealthVisible() {\n\t\treturn _showHealth;\n\t}",
"public Boolean getIsShow () {\r\n\t\treturn isShow;\r\n\t}",
"@UnsupportedAppUsage\n public boolean isVisible() {\n return mSearchDialog == null? false : mSearchDialog.isShowing();\n }",
"public boolean isVisible()\n {\n return visible;\n }",
"public boolean isModelChartIsVisible();",
"public abstract boolean isVisible();",
"public abstract boolean isVisible();",
"public boolean isVertical()\n\t{\n\t\treturn CGCWorld.getAnimManager().gHeight(getHighAnim()) > CGCWorld.getAnimManager().gWidth(getHighAnim());\n\t}",
"@Override\n public boolean isVisible()\n {\n return !this.isDead();\n }",
"public final boolean isVisible() {\n return visible;\n }",
"@Override\n public boolean isActive() {\n return isShowing();\n }",
"public void setShowHBar(Boolean aValue)\n {\n if (aValue==_showHBar) return;\n firePropChange(ShowHBar_Prop, _showHBar, _showHBar=aValue);\n }",
"public boolean isVisible() {\r\n return visible;\r\n }",
"private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }",
"public boolean isAddVehiclesSideBarPresent() {\r\n\t\treturn isElementPresent(groupListSideBar.replace(\"Group List\", \"Add Vehicle\"), SHORTWAIT);\r\n\t}",
"boolean isReadyForShowing();",
"public boolean isVisible() {\n\t\treturn visible;\n\t}",
"public final boolean isVisible() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).isVisible()\");\n return ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).isVisible();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).isVisible()\");\n return ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).isVisible();\n }\n }",
"public boolean isVisible()\n {\n return visible;\n }",
"public boolean isVisible() { return _visible; }",
"public boolean isCastOverLayShown() {\n if (currentContext != null) {\n SharedPreferences sharedPrefs = currentContext.getSharedPreferences(CASTING_OVERLAY_PREF_NAME, 0);\n return sharedPrefs.getBoolean(CAST_SHARED_PREF_NAME, false);\n }\n return false;\n }",
"public boolean isVisible() {\n\t\treturn element.isDisplayed();\n\t}",
"public boolean getVisibility() {\n return GtkEntry.getVisibility(this);\n }",
"public boolean isOnKeyguard() {\n return this.mBarState == 1;\n }",
"public boolean getBorderVisible() {\n checkWidget();\n return borderLeft == 1;\n }",
"public boolean isGroupListSideBarPresent() {\r\n\t\treturn isElementPresent(groupListSideBar, SHORTWAIT);\r\n\t}",
"public boolean getShowToolbar() {\n\t\treturn showToolbar;\n\t}",
"public boolean isVisible(){ return visible; }",
"public boolean isMotionShow() {\n return (isDepthEnabled() || isBeautyShow() || isMaskSelected() || saveDngEnabled() || !CustomUtil.getInstance().isPanther()) ? false : true;\n }",
"public boolean isVisible(Visibility v);",
"public boolean isInvisible ( ) {\n\t\treturn extract ( handle -> handle.isInvisible ( ) );\n\t}",
"public boolean isVerticalFlingEnabled() {\n return config.verticalFlingEnabled;\n }",
"public Boolean getIsShow() {\n return isShow;\n }",
"public boolean getVisible() {\r\n return visible;\r\n }",
"public boolean hasPokemonDisplay() {\n return pokemonDisplayBuilder_ != null || pokemonDisplay_ != null;\n }",
"public static boolean isShownOrQueued() {\n\treturn SnackbarMessage.mLastMessage != null && SnackbarMessage.mLastMessage.isShown();\n}",
"public boolean isVisualizeViewEnabled() {\n return visualizeViewEnabled;\n }",
"@Override\r\n\tpublic boolean isVisible()\r\n\t{\n\t\treturn !getFormScreen().getMode().equals(Mode.LIST_VIEW);\r\n\t}",
"public boolean isVisible() {\r\n return !((x + width) < ocean.getXmin() || x > ocean.getXmax() || (y + height) < ocean.getYmin()\r\n || y > ocean.getYmax());\r\n }",
"public boolean isShadesVisible() {\r\n return showShades;\r\n }",
"public boolean isDisplayed() {\n return graphConfig.isDisplayed();\n }",
"public boolean isHidden();",
"public boolean isAtLeastVisible(Visibility v);",
"public boolean isBeautyShow() {\n return this.mActivity.getCameraAppUI().getBeautySeek() > 0.0f && !isDepthEnabled();\n }",
"public boolean isShowGraph() {\n return showGraph;\n }"
] | [
"0.7874056",
"0.7373451",
"0.727501",
"0.7071241",
"0.70680547",
"0.7057405",
"0.6711968",
"0.6707126",
"0.66988987",
"0.6659398",
"0.6656693",
"0.65756166",
"0.6554411",
"0.6434335",
"0.6381786",
"0.637435",
"0.6369237",
"0.6369237",
"0.6369237",
"0.6358466",
"0.63480675",
"0.63461167",
"0.63461167",
"0.6326669",
"0.6326446",
"0.6311575",
"0.6297726",
"0.62752926",
"0.626833",
"0.62646395",
"0.62646395",
"0.6264114",
"0.6256617",
"0.6247555",
"0.62439144",
"0.62406397",
"0.6230478",
"0.6228532",
"0.61979544",
"0.6196957",
"0.61899686",
"0.6174983",
"0.61732495",
"0.6163181",
"0.6128475",
"0.612093",
"0.61167073",
"0.6105569",
"0.6091398",
"0.60713464",
"0.6060102",
"0.6039783",
"0.6039662",
"0.60286945",
"0.60284585",
"0.6021308",
"0.6021297",
"0.6017705",
"0.60089844",
"0.5997214",
"0.5987791",
"0.5987791",
"0.59670115",
"0.5966468",
"0.59641975",
"0.59631515",
"0.59616107",
"0.5956047",
"0.5954056",
"0.594996",
"0.59411657",
"0.59352785",
"0.59289",
"0.59222406",
"0.591941",
"0.59118503",
"0.59105766",
"0.587842",
"0.5877985",
"0.5859431",
"0.5852501",
"0.583781",
"0.5830874",
"0.58227044",
"0.5813755",
"0.58109933",
"0.5810808",
"0.57954305",
"0.579514",
"0.57809496",
"0.57773376",
"0.57704264",
"0.5768273",
"0.57657677",
"0.5763799",
"0.5761819",
"0.5760863",
"0.5753473",
"0.5749465",
"0.5732314"
] | 0.8875056 | 0 |
Sets whether VBar is showing. | protected void setVBarShowing(boolean aValue)
{
// If already set, just return
if (aValue==isVBarShowing()) return;
// If showing, add and update
ScrollBar vbar = getVBar();
if (aValue) {
addChild(vbar);
vbar.setViewSize(_scroller.getHeight());
vbar.setScrollSize(_scroller.getScrollHeight());
vbar.setScroll(_scroller.getScrollY());
}
// Otherwise, remove
else removeChild(vbar);
// Fire prop change
firePropChange(VBarShowing_Prop, !aValue, aValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setShowVBar(Boolean aValue)\n {\n if (aValue==_showVBar) return;\n firePropChange(ShowVBar_Prop, _showVBar, _showVBar=aValue);\n }",
"public boolean isVBarShowing() { return getVBar().getParent()!=null; }",
"public Boolean getShowVBar() { return _showVBar; }",
"public void setShowHBar(Boolean aValue)\n {\n if (aValue==_showHBar) return;\n firePropChange(ShowHBar_Prop, _showHBar, _showHBar=aValue);\n }",
"public void setShowToolbar(boolean v) {\n\t\tif (v && !showToolbar) {\n\t\t\tcontentPanel.add(toolbar, \"North\");\n\t\t\tcontentPanel.revalidate();\n\t\t\tif (canvas != null) {\n\t\t\t\tcanvas.draw();\n\t\t\t}\n\t\t} else if (!v && showToolbar) {\n\t\t\tcontentPanel.remove(toolbar);\n\t\t\tcontentPanel.revalidate();\n\t\t\tif (canvas != null) {\n\t\t\t\tcanvas.draw();\n\t\t\t}\n\t\t}\n\t\tthis.showToolbar = v;\n\t}",
"protected void setHBarShowing(boolean aValue)\n {\n // If already set, just return\n if (aValue==isHBarShowing()) return;\n\n // If showing, add and update\n ScrollBar hbar = getHBar();\n if (aValue) {\n addChild(hbar);\n hbar.setViewSize(_scroller.getWidth());\n hbar.setScrollSize(_scroller.getScrollWidth());\n hbar.setScroll(_scroller.getScrollX());\n }\n\n // Otherwise, remove\n else removeChild(hbar);\n\n // Fire prop change\n firePropChange(HBarShowing_Prop, !aValue, aValue);\n }",
"private void showBars() {\n if (!mIsActive || mShowBars) {\n return;\n }\n mShowBars = true;\n mOrientationManager.unlockOrientation();\n showToolBar(true);\n showStatusBar();\n // mActionBar.show();\n //mActivity.getGLRoot().setLightsOutMode(false);\n refreshHidingMessage();\n refreshBottomControlsWhenReady();\n }",
"public void setVisible(boolean v) {\n }",
"public void setProgressBarVisible(final boolean flag) {\r\n pBarVisible = flag;\r\n }",
"public void setVisible(boolean v) {\n\t\tif (v) {\n\t\t\trequestFocus();\n\t\t}\n\t\tsuper.setVisible(v);\n\t}",
"public void setVisible( boolean v) {\r\n visible = v;\r\n }",
"protected void setChartShow() {\n\t\tbackIV.setVisibility(View.GONE);\r\n\t\tbarLayout.setVisibility(View.GONE);\r\n\t\tif (chartShowFrag == null) {\r\n\t\t\tfTransaction.add(R.id.content, new ChartShowFrag(),\r\n\t\t\t\t\tChartShowFrag.TAG);\r\n\t\t} else {\r\n\t\t\tfTransaction.attach(chartShowFrag);\r\n\t\t}\r\n\t\ttitleTV.setText(R.string.chart_show);\r\n\t}",
"protected void setShow() {\n\t\tbarLayout.setVisibility(View.GONE);\r\n\t\tif (showFragment == null) {\r\n\t\t\tfTransaction\r\n\t\t\t\t\t.add(R.id.content, new ShowFragment(), ShowFragment.TAG);\r\n\t\t} else {\r\n\t\t\tfTransaction.attach(showFragment);\r\n\t\t}\r\n\t\ttitleTV.setText(R.string.show);\r\n\t\tleftTV.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\thost.setCurrentTab(CHART);\r\n\t\t\t}\r\n\t\t});\r\n\t\trightTV.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tToast.makeText(getApplication(), \"right\", 1).show();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private void setVis(boolean b) {\n this.setVisible(b);\n }",
"public void setProgressBarVisible(boolean flag) {\r\n\r\n pBarVisible = flag;\r\n\r\n if (progressBar != null) {\r\n progressBar.setVisible(flag);\r\n }\r\n }",
"public Boolean getShowHBar() { return _showHBar; }",
"public void setVisible(boolean val)\r\n\t{\r\n\t\t_isOn = val;\r\n\t}",
"private void setProgressBarVisible(boolean pBool) {\n\n ProgressBar tempBar = (ProgressBar)findViewById(R.id.tallyDeviceConnectionStatusMessageProgressBar);\n\n if (pBool) { tempBar.setVisibility(View.VISIBLE); }\n else { tempBar.setVisibility(View.GONE); }\n\n }",
"protected void showProgressBar(boolean show){\n if(show){\n mProgressBar.setVisibility(View.VISIBLE);\n }\n else{\n mProgressBar.setVisibility(View.GONE);\n }\n }",
"public void setVisible(boolean val);",
"public void setToolbarVisible(boolean b)\n {\n // The north panel is the one containing the toolbar and contact photo.\n toolbarPanel.setVisible(b);\n }",
"public void setShowMenu(boolean v) {\n\t\tthis.showMenu = v;\n\t}",
"public boolean isHBarShowing() { return getHBar().getParent()!=null; }",
"public boolean isProgressBarVisible() {\r\n return pBarVisible;\r\n }",
"@Override\n\tpublic void setVisible(boolean vis) {\n\t\t\n\t}",
"private void showNav(){\n navBar.setVisibility(View.VISIBLE);\n }",
"public void setVide() {\n\t\tvide = true;\n\t}",
"public void setVisible(boolean b) {\n // Not supported for MenuComponents\n }",
"@Override\n public void setSupportProgressBarIndeterminateVisibility(boolean visible) {\n getSupportActionBar().getCustomView().setVisibility(visible ? View.VISIBLE : View.GONE);\n }",
"@Override\n public void setVisible(boolean arg0)\n {\n \n }",
"public void setVisible()\r\n\t{\r\n\t\tthis.setVisible(true);\r\n\t}",
"public void setVisible(boolean b) {\n\t\tsuper.setVisible(b);\n\n\t\tif (b)\n\t\t\tpaint(this.getGraphics());\n\t}",
"public void setVisible(boolean b) {\n\t\t\n\t}",
"public void showProgressBar() {\n\t\tmProgressBarVisible = true;\n\t\tif (getView() != null) {\n\t\t\tLinearLayout progressLayout = (LinearLayout) getView()\n\t\t\t\t\t.findViewById(R.id.severity_list_progress_layout);\n\t\t\tif (progressLayout != null)\n\t\t\t\tprogressLayout.setVisibility(View.VISIBLE);\n\t\t}\n\t}",
"@Override\n\tpublic void setVisible(boolean b) {\n\t\t\n\t}",
"@Override\n public void setVisible (boolean f)\n { \n }",
"public void setShowScriptController(boolean v) {\n\t\tthis.showScriptController = v;\n\t}",
"public void setSelectedItemBarVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_selectedItemBar_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_selectedItemBar_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setSelectedItemBarVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public void setShown(boolean shown){\r\n this.shown = shown;\r\n }",
"public void updateShowEmptyShadeView() {\n boolean z = true;\n if (this.mBarState == 1 || this.mEntryManager.hasActiveNotifications()) {\n z = false;\n }\n showEmptyShadeView(z);\n }",
"public void showToolbar(boolean visible)\r\n\t{\r\n\t\ttoolbar_left.setVisible(visible);\r\n\t\ttoolbar_right.setVisible(visible);\r\n\t\ttoolbar.setVisible(visible);\r\n\t\tchatTextBox.setVisible(visible);\r\n\t}",
"private void showProgressBar(boolean show){\n if(show){\n progressBar.show();\n } else {\n progressBar.dismiss();\n }\n }",
"public void setVisible(Boolean isVisible);",
"public void setVisible(boolean value) {\n\t\tvisible = value;\n\t}",
"public void setV(boolean v) {\n\tthis.v = v;\n }",
"public void setVisible(boolean newVisible)\n {\n this.visible = newVisible;\n conditionallyRepaint();\n }",
"public void setVisible(boolean b) {\n\t\tframe.setVisible(b);\t\n\t}",
"boolean setActionBarVisible(boolean visible);",
"@Override\n public boolean onPreDraw() {\n mNavigationBarView.setSystemUiVisibility(mSystemUiFlags);\n return true;\n }",
"public void setTableBarVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_tableBar_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_tableBar_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setTableBarVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public void setDisplayVisibility(boolean on) {\n if (settingVisibility) {\n return;\n }\n super.setDisplayVisibility(on);\n applyVisibilityFlags();\n }",
"void setVisible(boolean visible);",
"void setVisible(boolean visible);",
"public void setVisible(Boolean visible);",
"public void setVisible(boolean value)\n\t{\n\t\tisVisible = value;\n\t\tif(!isVisible)\n\t\t{\n\t\t\tsetWorldRegion(null);\n\t\t}\n\t}",
"private boolean canShowBars() {\n if (mAppBridge != null && mCurrentIndex == 0\n && !mPhotoView.getFilmMode()) {\n return false;\n }\n\n // No bars if it's not allowed.\n if (!mActionBarAllowed) {\n return false;\n }\n\n Configuration config = mActivity.getResources().getConfiguration();\n return config.touchscreen != Configuration.TOUCHSCREEN_NOTOUCH;\n }",
"public void setShowDisplaySlotPanel(boolean b) {\r\n\r\n }",
"public void setVisible(boolean newVal) {\n if (newVal != visible) {\n visible = newVal;\n listeners.firePropertyChange(PROPERTY_VISIBLE, !visible, visible);\n }\n }",
"public void setIsVisible(boolean isVisible);",
"@Override\n\tpublic boolean isShowing() {\n\t\treturn false;\n\t}",
"public void setVisible(boolean visible);",
"public void setVisible()\n\t{\n\t\tMainController.getInstance().setVisible(name, true);\n\t}",
"private void showActionBarProgress(boolean visible)\n\t{\n\t\t((ActionBarActivity) getActivity()).setSupportProgressBarIndeterminateVisibility(visible);\n\t\tmActionBarProgress = visible;\n\t}",
"public void show() {\n isVisible = true;\n this.saveBorderColor(playerColor);\n this.setBorderColor(playerColor);\n }",
"public void toggleMiniHealthBars() {\n miniHealthBarVisible = !miniHealthBarVisible;\n }",
"@Override\n public boolean isShown() {\n return super.isShown();\n }",
"public void setIsShow (Boolean isShow) {\r\n\t\tthis.isShow = isShow;\r\n\t}",
"public final boolean isProgressBarVisible() {\r\n\r\n if ((pBarVisible == true) && (progressBar != null)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public void setIndeterminate(final boolean b){\n\t\tRunnable changeValueRunnable = new Runnable(){\n\t\t\tpublic void run(){\n\t\t\t\tloadBar.setIndeterminate(b);\n\t\t\t}\n\t\t};\n\t\tSwingUtilities.invokeLater(changeValueRunnable);\n\t}",
"public void setHasVacuum(boolean value){this.hasVacuum = value;}",
"public void toggleHideyBar() {\n // BEGIN_INCLUDE (get_current_ui_flags)\n // The UI options currently enabled are represented by a bitfield.\n // getSystemUiVisibility() gives us that bitfield.\n int uiOptions = getWindow().getDecorView().getSystemUiVisibility();\n int newUiOptions = uiOptions;\n // END_INCLUDE (get_current_ui_flags)\n // BEGIN_INCLUDE (toggle_ui_flags\n\n // Immersive mode: Backward compatible to KitKat (API 19).\n // Note that this flag doesn't do anything by itself, it only augments the behavior\n // of HIDE_NAVIGATION and FLAG_FULLSCREEN. For the purposes of this sample\n // all three flags are being toggled together.\n // This sample uses the \"sticky\" form of immersive mode, which will let the user swipe\n // the bars back in again, but will automatically make them disappear a few seconds later.\n newUiOptions ^= View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;//通过异或来使屏幕全屏缩放.\n newUiOptions ^= View.SYSTEM_UI_FLAG_FULLSCREEN;\n newUiOptions ^= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;\n getWindow().getDecorView().setSystemUiVisibility(newUiOptions);\n //END_INCLUDE (set_ui_flags)\n }",
"public void setShowInGui(final Boolean showInGuiValue) {\n this.showInGui = showInGuiValue;\n }",
"public void ver() {\n\t\tthis.setVisible(true);\n\t}",
"public void show() {\n visible=true;\n }",
"@Override // androidx.lifecycle.Observer\n public void onChanged(Boolean bool) {\n Boolean bool2 = bool;\n if (bool2 != null) {\n bool2.booleanValue();\n Views.setVisible(AdvertStatsActivity.access$getToolbarTitle$p(this.a), bool2.booleanValue());\n }\n }",
"private void videoVisible() {\n }",
"public void setHvacStateOn(boolean value) {\r\n this.hvacStateOn = value;\r\n }",
"protected boolean updateScrollBarsShowing()\n {\n // Get Scroller Size\n double scrollerW = _scroller.getWidth();\n double scrollerH = _scroller.getHeight();\n\n // Get child size\n Size contentSize = _scroller.getContentPrefSize();\n double contentW = contentSize.getWidth();\n double contentH = contentSize.getHeight();\n\n // Get whether to show scroll bars\n boolean alwaysH = _showHBar == Boolean.TRUE;\n boolean alwaysV = _showVBar == Boolean.TRUE;\n boolean asneedH = _showHBar == null;\n boolean asneedV = _showVBar == null;\n boolean showHBar = alwaysH || asneedH && contentW > scrollerW;\n boolean showVBar = alwaysV || asneedV && contentH > scrollerH;\n\n // Get whether scroll bars are currently showing\n boolean isHBarShowing = isHBarShowing();\n boolean isVBarShowing = isVBarShowing();\n\n // If showing both ScrollBars, but only because both ScrollBars are showing, hide them and try again\n if (isVBarShowing && isHBarShowing && showVBar && showHBar && asneedH && asneedV) {\n boolean vbarNotReallyNeeded = contentW <= scrollerW + getVBar().getWidth();\n boolean hbarNotReallyNeeded = contentH <= scrollerH + getHBar().getHeight();\n if (vbarNotReallyNeeded && hbarNotReallyNeeded) {\n setVBarShowing(false);\n setHBarShowing(false);\n return true;\n }\n }\n\n // If either ScrollBar in wrong Showing state, set and try again\n if (showVBar != isVBarShowing) {\n setVBarShowing(showVBar);\n return true;\n }\n\n if (showHBar != isHBarShowing) {\n setHBarShowing(showHBar);\n return true;\n }\n\n // Return false since ScrollBar showing didn't change\n return false;\n }",
"private void setFormVisible(boolean value){\r\n vb_form.setVisible(value); //Establece el estado grafico del formulario\r\n// if(value){ //Si el estado es visible entonces \r\n// vb_table.relocate(30, 439);\r\n// vb_table.setPrefHeight(133);\r\n// }else{\r\n// vb_table.relocate(30, 64);\r\n// vb_table.setPrefHeight(508);\r\n// }\r\n }",
"public MenuBar() {\r\n super();\r\n myTrue = false;\r\n }",
"public void disable(){\n\n bar.setVisible(false);\n bar.removeAll();\n\n }",
"public void show() {\n hidden = false;\n }",
"public void updateHeadsUpVisibility() {\n ((PhoneStatusBarView) this.mBar).setHeadsUpVisible(this.mHeadsUpAnimatingAway || this.mHeadsUpPinnedMode);\n }",
"public void setVisible(boolean a){\n \t\tvisible = a;\n \t}",
"public void toggle()\n\t{\n\t\tsetVisible(!this.isShowing());\n\t}",
"public void setModelChartIsVisible(boolean modelChartIsVisible);",
"public abstract void setVisible(boolean visible);",
"@objid (\"7f09cb6a-1dec-11e2-8cad-001ec947c8cc\")\n public void setVertical(boolean value) {\n if (this.vertical != value) {\n this.vertical = value;\n firePropertyChange(IGmObject.PROPERTY_LAYOUTDATA, null, getLayoutData());\n }\n }",
"public boolean uploadingProgressBarIsShow() {\n return uploadingProgressBar.getVisibility() == VISIBLE;\n }",
"private void showProgress(final boolean show) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }",
"public void setIsShow(Boolean isShow) {\n this.isShow = isShow;\n }",
"public void setVisible(boolean is_visible){\n\t\tswingComponent.setVisible(is_visible);\n\t}",
"private void showSignInBar() {\n Log.d(TAG, \"Showing sign in bar\");\n findViewById(R.id.sign_in_bar).setVisibility(View.VISIBLE);\n findViewById(R.id.sign_out_bar).setVisibility(View.GONE);\n }",
"@SuppressWarnings(\"unused\")\n void setVisible(boolean visible);",
"public void setIsVisible(java.lang.Boolean isVisible);",
"public void toggleHideyBar() {\n // BEGIN_INCLUDE (get_current_ui_flags)\n // The UI options currently enabled are represented by a bitfield.\n // getSystemUiVisibility() gives us that bitfield.\n int uiOptions = getWindow().getDecorView().getSystemUiVisibility();\n int newUiOptions = uiOptions;\n // END_INCLUDE (get_current_ui_flags)\n // BEGIN_INCLUDE (toggle_ui_flags)\n boolean isImmersiveModeEnabled =\n ((uiOptions | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY) == uiOptions);\n if (isImmersiveModeEnabled) {\n Log.i(TAG, \"Turning immersive mode mode off. \");\n } else {\n Log.i(TAG, \"Turning immersive mode mode on.\");\n }\n\n // Immersive mode: Backward compatible to KitKat (API 19).\n // Note that this flag doesn't do anything by itself, it only augments the behavior\n // of HIDE_NAVIGATION and FLAG_FULLSCREEN. For the purposes of this sample\n // all three flags are being toggled together.\n // This sample uses the \"sticky\" form of immersive mode, which will let the user swipe\n // the bars back in again, but will automatically make them disappear a few seconds later.\n newUiOptions ^= View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;\n newUiOptions ^= View.SYSTEM_UI_FLAG_FULLSCREEN;\n newUiOptions ^= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;\n getWindow().getDecorView().setSystemUiVisibility(newUiOptions);\n //END_INCLUDE (set_ui_flags)\n }",
"public void setOutputsAreSameVis(boolean v){\r\n OutputsAreSame.setVisible(v);\r\n }",
"@Override\n public void setControllerVisible(final boolean show) {\n if (isPlayerOnPage(playerId)) {\n impl.setControllerVisible(show);\n } else {\n addToPlayerReadyCommandQueue(\"controller\", new Command() {\n\n @Override\n public void execute() {\n impl.setControllerVisible(show);\n }\n });\n }\n }",
"public void showStatusBar(boolean bShow) {\n\t\tTSEditorUtils.showStatusBar(m_editor, bShow);\n\t}",
"public void setEnabled(boolean enabled) {\n super.setEnabled(enabled);\n _coolBar.setEnabled(enabled);\n }"
] | [
"0.846699",
"0.7659423",
"0.7620118",
"0.7080259",
"0.69083035",
"0.66236955",
"0.6586576",
"0.64696074",
"0.6464737",
"0.6380114",
"0.634562",
"0.6329147",
"0.6256724",
"0.6234594",
"0.61403364",
"0.6131034",
"0.60306615",
"0.6028156",
"0.5985461",
"0.59822786",
"0.5964596",
"0.59184736",
"0.59154797",
"0.59029484",
"0.58780646",
"0.5876727",
"0.5871032",
"0.5846724",
"0.58386457",
"0.5797787",
"0.5774138",
"0.5770689",
"0.5754538",
"0.5738553",
"0.5735945",
"0.5704933",
"0.5683385",
"0.56810373",
"0.5657699",
"0.5644521",
"0.56432956",
"0.56269187",
"0.5625875",
"0.56225735",
"0.56170815",
"0.56000346",
"0.55989707",
"0.55985177",
"0.5596602",
"0.5587449",
"0.5575054",
"0.55714387",
"0.55714387",
"0.55654615",
"0.5563138",
"0.55516106",
"0.55454695",
"0.5543676",
"0.5521244",
"0.55182505",
"0.5516356",
"0.5506995",
"0.54861057",
"0.54832214",
"0.5481046",
"0.54776156",
"0.5458626",
"0.5452588",
"0.5450309",
"0.5437625",
"0.5428542",
"0.542264",
"0.5410053",
"0.54018587",
"0.5401333",
"0.5386775",
"0.5386378",
"0.5368453",
"0.5357864",
"0.5355836",
"0.53535354",
"0.5347642",
"0.53445095",
"0.5339603",
"0.53296715",
"0.53130126",
"0.5308382",
"0.53069514",
"0.5287469",
"0.5286788",
"0.528097",
"0.5278906",
"0.5274368",
"0.5267563",
"0.52671987",
"0.526306",
"0.5262546",
"0.5253731",
"0.5243895",
"0.5243067"
] | 0.7953675 | 1 |
Returns the scroll bar size. | public int getBarSize() { return _barSize; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getHScrollbarHeight();",
"int getVScrollbarWidth();",
"public int getBarSize() {\n return mBarSize;\n }",
"public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}",
"JScrollBar getScrollBar() {\n return scrollBar;\n }",
"public int getScrollWidth() {\n\t\treturn this.scrollWidth;\n\t}",
"protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }",
"private void updateScrollBarSize() {\n int textHeight = getTextHeight();\n if (textHeight <= windowHeight) {\n Root.getChildren().remove(scrollBar);\n } else {\n if (!Root.getChildren().contains(scrollBar)) {\n Root.getChildren().add(scrollBar);\n }\n double range = textHeight - windowHeight;\n scrollBar.setMax(range);\n scrollBar.setVisibleAmount(10);\n }\n }",
"private int getStatusBarHeight() {\n int result = 0;\n int resourceId = context.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = context.getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",
"public int getStatusBarHeight() {\n int result = 0;\n int resourceId = _act.getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = _act.getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",
"public int getStatusBarHeight() {\n int result = 0;\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",
"public int getStatusBarHeight() {\n int result = 0;\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = getResources().getDimensionPixelSize(resourceId);\n }\n return result;\n }",
"public Dimension getPreferredScrollableViewportSize ( ) {\n\t\treturn getPreferredSize ( );\n\t}",
"public int getScrollAmount()\r\n\t{\r\n\t\treturn scrollAmount;\r\n\t}",
"@objid (\"1b87bc2e-5e33-11e2-b81d-002564c97630\")\n private Point getViewAreaSize() {\n final Point controlSize = new Point(0, 0);\n // this has to be done in the display thread to avoid\n // InvalidThreadAccessException.\n getViewer().getControl().getDisplay().syncExec(new Runnable() {\n @Override\n public void run() {\n final Control control = BackgroundEditPart.this.getViewer().getControl();\n Point p = control.getSize();\n controlSize.x = p.x;\n controlSize.y = p.y;\n \n if (control instanceof Scrollable) {\n Scrollable c = (Scrollable) control;\n ScrollBar b = c.getHorizontalBar();\n if (b != null /* && b.isVisible() */) {\n controlSize.y -= b.getSize().y;\n }\n b = c.getVerticalBar();\n if (b != null /* && b.isVisible() */) {\n controlSize.x -= b.getSize().x;\n }\n }\n }\n });\n return controlSize;\n }",
"@Override\n\tpublic final int getScrollHeight() {\n\t\t// TODO(dramaix): Use document.scrollingElement when its available. See\n\t\t// getScrollLeft().\n\t\treturn getViewportElement().getScrollHeight();\n\t}",
"public int getScrollHeight() {\n\t\treturn this.scrollHeight;\n\t}",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}",
"public int getSetSize(){ return Integer.parseInt(setSize.getText()); }",
"@SuppressWarnings(\"unused\")\n public int getProgressBarHeight() {\n LayoutParams lp = getLayoutParams();\n\n if (lp==null) return 0;\n\n return lp.height;\n }",
"@Override\n\tpublic final int getScrollWidth() {\n\t\t// TODO(dramaix): Use document.scrollingElement when its available. See\n\t\t// getScrollLeft().\n\t\treturn getViewportElement().getScrollWidth();\n\t}",
"public float getTotalScroll()\r\n\t{\r\n\t\treturn total_scroll;\r\n\t}",
"private int getScrollVal() {\n return Math.abs((int)scrollBar.getValue());\n }",
"public float total_scroll() {\r\n\t\treturn total_scroll;\r\n\t}",
"public Rectangle getScrollRectangle() {\r\n return scrollRectangle;\r\n }",
"public int getStatusBarHeight() {\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0)\n return getResources().getDimensionPixelSize(resourceId);\n return 0;\n }",
"public static int getSIZE() {\n return SIZE;\n }",
"protected RectF getHorizontalScrollBarRect() {\n return mHorizontalScrollBar;\n }",
"public int getScroll() {\n return mTransparentStartHeight - getTransparentViewHeight() + getMaximumScrollableHeaderHeight()\n - getToolbarHeight() + mScrollView.getScrollY();\n }",
"private JScrollBar getJScrollBar() {\r\n\t\tif (jScrollBar == null) {\r\n\t\t\tjScrollBar = new JScrollBar();\r\n\t\t\tjScrollBar.setBounds(new Rectangle(591, 127, 17, 333));\r\n\t\t}\r\n\t\treturn jScrollBar;\r\n\t}",
"public int getWindowsSize() {\n return this.SVBEngine.getWindowsSize();\n }",
"public int getScrollMaxX(){\n return (int)Math.max(0, mMaxPaintX - getWidth() / 2f);\n }",
"public Dimension getSize()\n\t{\n\t\treturn rect.getSize();\n\t}",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* */ }",
"final private int getNavigationBarHeight() {\n int resourceId = getResources().getIdentifier(\"navigation_bar_height\", \"dimen\", \"android\");\n if (!hasPermanentKeys() && resourceId > 0)\n return getResources().getDimensionPixelSize(resourceId);\n return 0;\n }",
"public Dimension getMaximumSize() {\n Dimension size = super.getMaximumSize();\n size.height = super.getPreferredSize().height;\n return size;\n }",
"public double getSize() {\n return getElement().getSize();\n }",
"public static int getSoftButtonsBarSizePort(Activity activity) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {\n DisplayMetrics metrics = new DisplayMetrics();\n activity.getWindowManager().getDefaultDisplay().getMetrics(metrics);\n int usableHeight = metrics.heightPixels;\n activity.getWindowManager().getDefaultDisplay().getRealMetrics(metrics);\n int realHeight = metrics.heightPixels;\n if (realHeight > usableHeight)\n return realHeight - usableHeight;\n else\n return 0;\n }\n return 0;\n }",
"@Transient\n/* */ public JScrollBar getVerticalScrollBar() {\n/* 886 */ return this.verticalScrollBar;\n/* */ }",
"protected double getMinHeightImpl()\n {\n Insets ins = getInsetsAll();\n double minH = _scroller.getMinHeight();\n return minH + ins.getHeight();\n }",
"public int getSize()\n\t{\n\t\treturn setSize;\n\t}",
"public int getDesktopHeight() {\n\t\treturn getClientHeight(PROGRAM_MANAGER);\n\t}",
"public int getScrollMaxY(){\n return Math.max(0, getLineHeight() * getLineCount() - getHeight() / 2);\n }",
"public Dimension getSize() {\r\n\t\treturn this.size;\r\n\t}",
"@JSProperty(\"scrollbar\")\n @Nullable\n ZAxisScrollbarOptions getScrollbar();",
"public int getScreenSize() {\r\n\t\treturn SCREEN_SIZE;\r\n\t}",
"public Dimension getSize()\n {\n return new Dimension(300, 150);\n }",
"public int getSizeY() {\r\n\t\treturn sizeY;\r\n\t}",
"private int getMaxSize() {\r\n return PropUtils.getValue(sizeLimitProp, DEFAULT_MAX_SIZE);\r\n }",
"public float getTextSizePx() {\n return mPaint.getTextSize();\n }",
"int getCurrentSize();",
"public int getYSize()\n\t{\n\t\treturn this.ySize;\n\t}",
"@Override\r\n public Dimension getPreferredSize() {\r\n return new Dimension(colorWheelWidth + valueBarWidth + spacing + margins * 2,\r\n diameter + selectDiameter + margins * 2);\r\n }",
"public OverScroller getScroller() {\n return mEventHandler.getScroller();\n }",
"public double getSize()\n\t{\n\t\treturn size;\n\t}",
"private int getStatusBarHeight() {\n if (mStatusBarHeight == 0) {\n Rect screenFrame = new Rect();\n getWindow().getDecorView().getWindowVisibleDisplayFrame(screenFrame);\n mStatusBarHeight = screenFrame.top;\n }\n\n return mStatusBarHeight;\n }",
"@Override\n public final synchronized TerminalSize getTerminalSize() throws IOException {\n TerminalSize size = findTerminalSize();\n onResized(size);\n return size;\n }",
"public int getViewportHeight() {\n return scalableImage.getViewportHeight();\n }",
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}",
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}",
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}",
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}",
"public int getElementSize() {\n\t\treturn this.elementsize;\n\t}",
"public Point2D.Float getSize() {\r\n\t\treturn size;\r\n\t}",
"protected int getContentHeight()\n {\n return this.getSize() * 10;\n }",
"@Override\n\tpublic Dimension getSize() \n\t{\n\t\treturn panel.getSize();\n\t}",
"public float getSize() {\n\t\treturn size;\n\t}",
"public int GetSize() {\n\t\tif(this.V == 0) {\n\t\t\t\n\t\t\t// Read from settings file\n\t\t\ttry {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"settings.txt\"));\n\t\t\t\tString line;\n\t\t\t\tif((line = br.readLine()) != null) {\n\t\t\t\t\tthis.V = Integer.parseInt(line.split(\" \")[1]);\n\t\t\t\t}\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn this.V;\n\t}",
"public int getPanelHeight() {\n return height;\n }",
"public int getUsedHeightViewport() {\n return Math.abs((int)(0.5 + heightViewport - yMargin));\n }",
"public float getSize() {\n return bufSize;\n }",
"protected int getHeightDelta() {\n return super.getHeightDelta()+ menuBarHeightDelta;\n }",
"public float getSize() {\n return size;\n }",
"public int winSize() { return winSize; }",
"public int getPanelHeight() {\n\t\treturn this.m_panelHeight;\n\t}",
"public abstract int getStatusBarHeight(int position);",
"public int getBoxSize() {\n\t\treturn this.boxSize;\n\t}",
"public Vector2 getMouseSize() {\n \tdimension.set(pointer.width, pointer.height);\n \treturn dimension;\n\t}",
"@Override\n\tpublic final int getClientHeight() {\n\t\treturn getViewportElement().getClientHeight();\n\t}",
"public int getMaxY() {\n return scroller.getMaxY();\n }",
"@Override\n public Size getSize() {\n Size size = new Size(0,0);\n for(UIComponent<Widget> component : components) {\n if( component instanceof UIContainer ) {\n\n // Merging children container size.\n size.mergeTo( component.getSize() );\n\n } else {\n\n // Merging children compoment sizes.\n Widget w = component.getNativeComponent();\n Size componentSize = component.getSize();\n size.mergeTo(\n w.getAbsoluteLeft() + componentSize.getWidth(),\n w.getAbsoluteTop() + componentSize.getHeight()\n );\n\n }\n }\n return size;\n }",
"public Point getSize() {\n\t\treturn p_screenSize;\n\t}",
"public float getSize()\n {\n return size;\n }",
"@Override\r\n\tpublic int getDefaultHeight() {\n\t\tint w=0;\r\n\t\tToolbarLayout tl = (ToolbarLayout) getLayoutManager();\r\n\t\tif(tl.isHorizontal()){\t\t\r\n\t\t\tList list = getChildren();\r\n\t\t\tint max = 0;\r\n\t\t\tif(list.size()>0){\r\n\t\t\t\tfor (Object obj : list) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tAbstractElementFigure fig = (AbstractElementFigure) obj;\r\n\t\t\t\t\tif(max < fig.getDefaultHeight()){\r\n\t\t\t\t\t\tmax = fig.getDefaultHeight();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn max;\r\n\t\t\t}\t\t\r\n\t\t}else{\r\n\t\t\tList list = getChildren();\r\n\t\t\tif(list.size()>0){\r\n\t\t\t\tfor (Object obj : list) {\r\n\t\t\t\t\tAbstractElementFigure fig = (AbstractElementFigure) obj;\r\n\t\t\t\t\tw+=fig.getDefaultHeight();\r\n\t\t\t\t}\r\n\t\t\t\treturn w;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 100;\r\n\t}",
"public Dimension getCanvasSize() {\n return transformManager.getCanvasSize();\n }",
"public JScrollBar createVerticalScrollBar() {\n/* 873 */ return new ScrollBar(1);\n/* */ }",
"public double getSize() {\n return size_;\n }",
"public float getScroll_px_per_line() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 48);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 48);\n\t\t}\n\t}",
"int getAreaSize();",
"public Dimension2D getCanvasSize(\n )\n {\n return renderSize == null\n ? Dimension.get(getContentContext().getBox()) // Device-independent (user-space) area.\n : renderSize; // Device-dependent (device-space) area.\n }",
"public double getSize() {\n return size_;\n }",
"public final double getFixedCellSize() {\n\n return this.getWrappedControl().getFixedCellSize();\n }",
"public int sHeight(){\n\t\t\n\t\tint Measuredheight = 0; \n\t\tPoint size = new Point();\n\t\tWindowManager w = activity.getWindowManager();\n\n\t\tif(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n\t\t w.getDefaultDisplay().getSize(size);\n\t\t Measuredheight = size.y; \n\t\t}else{\n\t\t Display d = w.getDefaultDisplay(); \n\t\t Measuredheight = d.getHeight(); \n\t\t}\n\t\t\n\t\treturn Measuredheight;\n\t}",
"protected int getContentHeight()\n {\n return this.getSize() * GuiStats.this.fontRenderer.FONT_HEIGHT * 4;\n }",
"@Transient\n/* */ public JScrollBar getHorizontalScrollBar() {\n/* 827 */ return this.horizontalScrollBar;\n/* */ }",
"public double getRectHeight() {\n return (hexHeight * 1.5) + 0.5;\n }",
"public double getVelocitySize() {\r\n return Math.sqrt(this.dx * this.dx + this.dy * this.dy);\r\n }",
"public int getWidth() {\n return mySize.getWidth();\n }"
] | [
"0.7320244",
"0.71987844",
"0.7024007",
"0.7018261",
"0.696071",
"0.67655",
"0.6582604",
"0.65611404",
"0.6513067",
"0.64850545",
"0.6442935",
"0.6442935",
"0.64324474",
"0.6424959",
"0.6390635",
"0.6378868",
"0.63539875",
"0.63208413",
"0.6292751",
"0.6258048",
"0.6226835",
"0.62244606",
"0.6218402",
"0.6211977",
"0.61842847",
"0.61836815",
"0.61782277",
"0.61739355",
"0.61392057",
"0.6134518",
"0.6126224",
"0.6045219",
"0.59984666",
"0.598487",
"0.5970437",
"0.5968477",
"0.5945651",
"0.59391236",
"0.5933163",
"0.5932289",
"0.5926396",
"0.58951646",
"0.58878046",
"0.5870762",
"0.5867596",
"0.5837613",
"0.5824789",
"0.5822189",
"0.5820607",
"0.5818051",
"0.5817119",
"0.5815193",
"0.5814793",
"0.58073086",
"0.5787498",
"0.5775612",
"0.57692564",
"0.57541853",
"0.57527363",
"0.57522714",
"0.5736536",
"0.5736536",
"0.5736536",
"0.5736536",
"0.5735895",
"0.5733106",
"0.5715629",
"0.5710327",
"0.5703962",
"0.5701806",
"0.56954193",
"0.56866616",
"0.5685077",
"0.5678407",
"0.56716293",
"0.56677115",
"0.56518775",
"0.5644343",
"0.5639945",
"0.5635979",
"0.5632345",
"0.56267685",
"0.56206363",
"0.5611189",
"0.56072104",
"0.5603194",
"0.56030935",
"0.5602238",
"0.5596409",
"0.5584289",
"0.55835915",
"0.5581871",
"0.55816394",
"0.5577708",
"0.5573562",
"0.5570763",
"0.5570354",
"0.5559467",
"0.5559424",
"0.555746"
] | 0.6536316 | 8 |
Sets the scroll bar size. | public void setBarSize(int aValue)
{
if (aValue==_barSize) return;
firePropChange(BarSize_Prop, _barSize, _barSize = aValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateScrollBarSize() {\n int textHeight = getTextHeight();\n if (textHeight <= windowHeight) {\n Root.getChildren().remove(scrollBar);\n } else {\n if (!Root.getChildren().contains(scrollBar)) {\n Root.getChildren().add(scrollBar);\n }\n double range = textHeight - windowHeight;\n scrollBar.setMax(range);\n scrollBar.setVisibleAmount(10);\n }\n }",
"void setScrollBar(final JScrollBar sb) {\n this.scrollBar = sb;\n }",
"public void setVerticalScrollBarPolicy(int paramInt) {\n/* 500 */ switch (paramInt) {\n/* */ case 20:\n/* */ case 21:\n/* */ case 22:\n/* */ break;\n/* */ default:\n/* 506 */ throw new IllegalArgumentException(\"invalid verticalScrollBarPolicy\");\n/* */ } \n/* 508 */ int i = this.verticalScrollBarPolicy;\n/* 509 */ this.verticalScrollBarPolicy = paramInt;\n/* 510 */ firePropertyChange(\"verticalScrollBarPolicy\", i, paramInt);\n/* 511 */ revalidate();\n/* 512 */ repaint();\n/* */ }",
"public void setSize(int size) {\r\n _size = size;\r\n }",
"public void setSize(int _size)\r\n {\r\n size = _size;\r\n }",
"public void setVerticalScrollBar(JScrollBar paramJScrollBar) {\n/* 906 */ JScrollBar jScrollBar = getVerticalScrollBar();\n/* 907 */ this.verticalScrollBar = paramJScrollBar;\n/* 908 */ add(paramJScrollBar, \"VERTICAL_SCROLLBAR\");\n/* 909 */ firePropertyChange(\"verticalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 911 */ revalidate();\n/* 912 */ repaint();\n/* */ }",
"public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}",
"private void autoSetBarSize() {\n float statusBarHeight = Utils.getStatusBarHeight(ModifyPassActivity.this);\n mStatusView = findViewById(R.id.view_modify_status_bar);\n LinearLayout.LayoutParams Params1 = new LinearLayout.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT, (int) statusBarHeight);\n mStatusView.setLayoutParams(Params1);\n }",
"public void setSize(int size) {\r\n this.size = size;\r\n }",
"public void setSize(int size) {\n\t\t _size = size;\n\t}",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(int size){\n this.size = size;\n }",
"public void setSize(int size);",
"public void setSize(int newSize);",
"public void setSize(int newSize);",
"public void setSize();",
"public void setSize(double size) \n {\n this.size = size;\n }",
"public void setSize(double value) {\n getElement().setSize(value);\n }",
"public void setPaginatorSize(int size) {\n paginaton.setPage(1);\n paginaton.setPaginatorSize(size);\n paginaton.refresh();\n }",
"public void adjustSize() {\r\n /*\r\n * Calculate target width: max of header, adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetWidth = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(headerBar.getOffsetWidth(),\r\n contentWidget.getOffsetWidth(), getWidth()\r\n - TOTAL_BORDER_THICKNESS);\r\n /*\r\n * Calculate target height: max of adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetHeight = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(contentWidget.getOffsetHeight(), getHeight()\r\n - TOTAL_BORDER_THICKNESS - headerBar.getOffsetHeight());\r\n\r\n setPixelSize(targetWidth, targetHeight);\r\n }",
"public void setSize(int value) {\n\t\tthis.size = value;\n\t}",
"public void setSizeModifier(Dimension size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(long value) {\n this.size = value;\n }",
"public void setSize(Dimension size) {\r\n this.size = size;\r\n }",
"public void setHorizontalScrollBar(JScrollBar paramJScrollBar) {\n/* 847 */ JScrollBar jScrollBar = getHorizontalScrollBar();\n/* 848 */ this.horizontalScrollBar = paramJScrollBar;\n/* 849 */ if (paramJScrollBar != null) {\n/* 850 */ add(paramJScrollBar, \"HORIZONTAL_SCROLLBAR\");\n/* */ }\n/* 852 */ else if (jScrollBar != null) {\n/* 853 */ remove(jScrollBar);\n/* */ } \n/* 855 */ firePropertyChange(\"horizontalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 857 */ revalidate();\n/* 858 */ repaint();\n/* */ }",
"public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}",
"public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }",
"public void setSize(Integer size) {\n this.size = size;\n }",
"private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}",
"private void setCorrectSize() {\n double newHeight = this.getContentPane().getPreferredSize().getHeight() +\n this.getContentPane().getPreferredSize().getHeight()/10 * 7;\n int newHeightInt = (int)Math.round(newHeight);\n \n this.setSize(this.getWidth(),newHeightInt);\n }",
"@JSProperty(\"scrollbar\")\n void setScrollbar(ZAxisScrollbarOptions value);",
"private void setSize(int s){\n\t\tsize = s;\n\t}",
"public Builder setSize(int value) {\n\n size_ = value;\n onChanged();\n return this;\n }",
"public Builder setSize(int value) {\n\n size_ = value;\n onChanged();\n return this;\n }",
"public void setSize(Vector2ic size){\n glfwSetWindowSize(handle, size.x(), size.y());\n this.size.set(size);\n sizeMultiplexer.handle(new WindowSizeEvent(handle, size.x(), size.y()));\n }",
"public void setPreferredSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setPreferredSize( size.x, size.y );\n }",
"public void setSize(Dimension newSize) {\n\t\tif(newSize.height<80)\n\t\t\tnewSize.height=80;\n\t\tif (newSize != null) {\n\t\t\tsize.setSize(newSize);\n\t\t\tfirePropertyChange(Props.SIZE_PROP.getValue(), null, size);\n\t\t}\n\t}",
"public void setHorizontalScrollBarPolicy(int paramInt) {\n/* 548 */ switch (paramInt) {\n/* */ case 30:\n/* */ case 31:\n/* */ case 32:\n/* */ break;\n/* */ default:\n/* 554 */ throw new IllegalArgumentException(\"invalid horizontalScrollBarPolicy\");\n/* */ } \n/* 556 */ int i = this.horizontalScrollBarPolicy;\n/* 557 */ this.horizontalScrollBarPolicy = paramInt;\n/* 558 */ firePropertyChange(\"horizontalScrollBarPolicy\", i, paramInt);\n/* 559 */ revalidate();\n/* 560 */ repaint();\n/* */ }",
"@Override\r\n public Dimension getPreferredSize() {\r\n return new Dimension(colorWheelWidth + valueBarWidth + spacing + margins * 2,\r\n diameter + selectDiameter + margins * 2);\r\n }",
"void setSize(Dimension size);",
"void setWindowSize(int s);",
"public void setSize(String size) {\n this.size = size;\n }",
"public void setSize(float width, float height);",
"public void setSize(double aWidth, double aHeight) { setWidth(aWidth); setHeight(aHeight); }",
"public void setScrollDuration(int scrollDuration) {\n config.scrollDuration = scrollDuration;\n }",
"public Builder setSize(double value) {\n bitField0_ |= 0x00000020;\n size_ = value;\n onChanged();\n return this;\n }",
"protected abstract void setSize();",
"public void setSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setSize( size.x, size.y );\n }",
"public void setSize(ReactSwipeRefreshLayout view, int value) {\n view.setSize(value);\n }",
"public void setBorderSize(double size)\n {\n borderSize = size;\n }",
"public void setBufferSize(int size) {\n this.response.setBufferSize(size);\n }",
"public void setWindowSize(int window_size) {\n this.window_size = window_size;\n }",
"public void setScrollAmount(int scrollAmount)\r\n\t{\r\n\t\tthis.scrollAmount = scrollAmount;\r\n\t}",
"private void basicSize(){\n setSize(375,400);\n }",
"public void setSize(int x, int y)\n {\n \tthis.width = x;\n \tthis.height = y;\n }",
"public void setPageSize(Rectangle pagesize) {\n\t\tthis.pagesize = pagesize;\n\t}",
"public Builder setWindowSize(long value) {\n \n windowSize_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }",
"public void setMaximum() {\n getReel().setMaxValue(getVerticalScrollBar().getMaximum());\n }",
"private void setGridSize() {\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n\n int height = points.getHeight() + boardView.windowHeight() + buttonPanel.getHeight();\n\n setSize(width, height);\n }",
"public void setSize( int width, int height ) {\n checkWidget();\n int newHeight = height;\n int newWidth = width;\n Point point = parent.fixPoint( newWidth, newHeight );\n newWidth = Math.max( point.x, minimumWidth + MINIMUM_WIDTH );\n newHeight = Math.max( point.y, 0 );\n if ( !ideal ) {\n preferredWidth = newWidth;\n preferredHeight = newHeight;\n }\n itemBounds.width = requestedWidth = newWidth;\n itemBounds.height = newHeight;\n if ( control != null ) {\n int controlWidth = newWidth - MINIMUM_WIDTH;\n if ( (style & SWT.DROP_DOWN) != 0 && newWidth < preferredWidth ) {\n controlWidth -= CHEVRON_IMAGE_WIDTH + CHEVRON_HORIZONTAL_TRIM\n + CHEVRON_LEFT_MARGIN;\n }\n control.setSize( parent.fixPoint( controlWidth, newHeight ) );\n }\n parent.relayout();\n updateChevron();\n }",
"public void setPreferredSize(int x, int y) {\n\t\tsetPreferredSize(new Dimension(x, y));\n\t}",
"public void setfixedSize(){\n this.setPreferredSize( new Dimension( PANELWIDTH,0) );\n this.setMaximumSize( new Dimension( PANELWIDTH,0) );\n this.setMinimumSize( new Dimension( PANELWIDTH,0) );\n }",
"public void setYSize(int ySize) {\n\t\tif (ySize < 0) {\n\t\t\tSystem.out.println(\"ySize should be positive! It is set to \" + Y_SIZE + \".\");\n\t\t\tySize = Y_SIZE;\n\t\t}\n\t\tthis.ySize = ySize;\n\n\t\t// To update the panel with new values if necessary\n\t\tthis.setNumRabbits(this.getNumRabbits());\n\n\t\tupdatePanel();\n\t}",
"JScrollBar getScrollBar() {\n return scrollBar;\n }",
"private void setScrollBars() {\n int totHeight = jEditorPane1.getSize().height;\n int value = jEditorPane2.getSize().height;\n if (value > totHeight) totHeight = value;\n int totWidth = jEditorPane1.getSize().width;\n value = jEditorPane2.getSize().width;\n if (value > totWidth) totWidth = value;\n int viewHeight = jViewport1.getExtentSize().height;\n int viewWidth = jViewport1.getExtentSize().width;\n //D.deb(\"totHeight = \"+totHeight+\", totWidth = \"+totWidth); // NOI18N\n //D.deb(\"viewHeight = \"+viewHeight+\", viewWidth = \"+viewWidth); // NOI18N\n jScrollBar1.setValues(0, viewWidth, 0, totWidth);\n jScrollBar1.setBlockIncrement(viewWidth);\n jScrollBar2.setValues(0, viewWidth, 0, totWidth);\n jScrollBar2.setBlockIncrement(viewWidth);\n jScrollBar3.setValues(0, viewHeight, 0, totHeight);\n jScrollBar3.setBlockIncrement(viewHeight);\n boolean visibleScroll = jScrollBar1.isVisible();\n //D.deb(\"jScrollBar1.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewWidth < totWidth && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar1 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar1.setVisible(!visibleScroll);\n jScrollBar2.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar1.repaint();\n //jScrollBar2.repaint();\n }\n visibleScroll = jScrollBar3.isVisible();\n //D.deb(\"jScrollBar3.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewHeight < totHeight && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar3 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar3.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar3.repaint();\n }\n }",
"public void setScroll(int dx,int dy){\n\t\txscroll=dx;\n\t\tyscroll=dy;\n\t}",
"public void setPreferredSize(Dimension d)\n {\n fileName.setPreferredSize(d);\n }",
"public void setSize(int width, int height) {\r\n\t\tthis.size = new Dimension(width, height);\r\n\t}",
"void setThumbSizeY(long thumbSizeY);",
"protected void setMaxSize(int size) {\n maxSize = size;\n }",
"void setPaperSize(short size);",
"@Override\n\tpublic void setBufferSize(int size) {\n\t}",
"public void setHeight (int height) {\n if (height < 10) {\n Log.warning(\"Attempted to set a checkbox height of less than 10 pixels.\");\n return;\n }\n\n synchronized (this) {\n this.height = height;\n }\n }",
"public void setBrushSize(int size)\n {\n brushSize = size;\n }",
"public ReelScrollPanel( SymbolPanel symbolPanel, int numLines ) {\n super( symbolPanel );\n this.symbolPanel = symbolPanel;\n this.numLines = numLines;\n \n setPreferredSize(new Dimension(100, numLines*100 ));\n \n this.setVerticalScrollBarPolicy( VERTICAL_SCROLLBAR_NEVER );\n //this.setVerticalScrollBarPolicy( VERTICAL_SCROLLBAR_ALWAYS );\n this.setHorizontalScrollBarPolicy( HORIZONTAL_SCROLLBAR_NEVER );\n getReel().setMaxValue(symbolPanel.getHeight());\n }",
"public void setSize(TSizeInBytes size) {\n\n\t\tthis.size = size;\n\t}",
"void setHeight(int height);",
"void setHeight(int height);",
"int getVScrollbarWidth();",
"public void setBrowserSize(int width, int height) throws FileSystemException {\n\t\tlogger.info(\"Re set browser size\");\n\t\tWebDriver wd = Connection.getDriver();\n\t\twd.manage().window().setSize(new Dimension(width, height));\n\t}",
"void setSize(float w, float h) {\n _w = w;\n _h = h;\n }",
"public void setFrameSize();",
"public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }",
"public int getBarSize() {\n return mBarSize;\n }",
"public void setSize(int size) {\n\tthis.sizeNumber = sizeNumber;\r\n}",
"@JSProperty(\"size\")\n void setSize(double value);",
"void setScroller(Scroller scroller) {\n this.scroller = scroller;\n }",
"public void setSize(int w, int h) {\n\n\t}",
"void scrollSetUp() {\r\n\t\tJList<Image> imageFile = new JList<>();\r\n\t\tmodel = new DefaultListModel<>();\r\n\t\timageFile.setModel(model);\r\n\t\timageFile.addListSelectionListener(new ListSelectionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\tselectedImage = imageFile.getSelectedValue();\r\n\t\t\t\t/*\r\n\t\t\t\t * Generic image info for testing String name = \"File Name: \" +\r\n\t\t\t\t * selectedImage.name + \"\\n\"; String size = \"File Size: \" + selectedImage.size +\r\n\t\t\t\t * \"\\n\"; more/accurate info will go here later\r\n\t\t\t\t */\r\n\r\n\t\t\t\tString infstr = \"Path: \" + selectedImage.getPath();\r\n\t\t\t\tinfoText.setText(infstr);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tJScrollPane pane = new JScrollPane(imageFile, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\r\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\tpane.getHorizontalScrollBar().setPreferredSize(new Dimension(0, 13));\r\n\t\tpane.getVerticalScrollBar().setPreferredSize(new Dimension(13, 0));\r\n\t\tmainFrame.add(pane);\r\n\t\talbumList = imageFile;\r\n\t}",
"public void setScroll_px_per_line(float scroll_px_per_line) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 48, scroll_px_per_line);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 48, scroll_px_per_line);\n\t\t}\n\t}",
"private void setSize(JComponent target, Dimension d)\n {\n target.setMinimumSize(d);\n target.setMaximumSize(d);\n target.setPreferredSize(d);\n target.setSize(d);\n }",
"public void setHeight(int height);",
"public void setHeight(int height);"
] | [
"0.71061033",
"0.6618197",
"0.61794454",
"0.61636853",
"0.61395276",
"0.612209",
"0.6098713",
"0.6080905",
"0.6061836",
"0.6055588",
"0.60106605",
"0.60106605",
"0.5991018",
"0.5991018",
"0.5991018",
"0.5991018",
"0.594441",
"0.5937904",
"0.5925067",
"0.59241945",
"0.59241945",
"0.5921439",
"0.5899519",
"0.5876454",
"0.58544534",
"0.5854342",
"0.58376694",
"0.5793862",
"0.5790753",
"0.57905096",
"0.5764001",
"0.5738977",
"0.5735493",
"0.57080394",
"0.5686121",
"0.5668646",
"0.56596166",
"0.56491524",
"0.56471324",
"0.56471324",
"0.5611347",
"0.56071895",
"0.56022966",
"0.5595115",
"0.5575065",
"0.557247",
"0.554164",
"0.5534738",
"0.5523617",
"0.54827625",
"0.5453684",
"0.54519176",
"0.5440119",
"0.5432253",
"0.54286486",
"0.5423733",
"0.5400746",
"0.53968203",
"0.5396535",
"0.5394157",
"0.53831416",
"0.5382449",
"0.5381356",
"0.5377417",
"0.53762573",
"0.5368457",
"0.5367861",
"0.53627",
"0.53623223",
"0.5329105",
"0.53260326",
"0.53244126",
"0.5321523",
"0.5314722",
"0.53142726",
"0.5309652",
"0.5299803",
"0.5272102",
"0.52710825",
"0.5270879",
"0.5269207",
"0.5255529",
"0.524901",
"0.52379924",
"0.52379924",
"0.52265936",
"0.5214888",
"0.52087706",
"0.52081066",
"0.5203423",
"0.5202431",
"0.5192329",
"0.5183152",
"0.518284",
"0.5173718",
"0.51714486",
"0.5171348",
"0.51690286",
"0.5167487",
"0.5167487"
] | 0.623817 | 2 |
Returns whether this ScrollView fits content to its width. | public boolean isFillWidth() { return _scroller.isFillWidth(); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasScrollableContent() {\n return true;\n }",
"boolean hasWidth();",
"boolean hasWidth();",
"boolean hasWidth();",
"@java.lang.Override\n public boolean hasWidth() {\n return instance.hasWidth();\n }",
"public boolean hasContent() {\n return getContentSize() > 0;\n }",
"public boolean getScrollableTracksViewportWidth()\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}",
"public boolean isFillHeight() { return _scroller.isFillHeight(); }",
"public boolean getScrollableTracksViewportHeight() {\n return getParent().getHeight() > getPreferredSize().height;\n }",
"private boolean isEdge() {\r\n\t\t// get the child view Width\r\n\t\tint childViewWidth = mChildView.getMeasuredWidth();\r\n\t\t// get the ScrollView Width\r\n\t\tint srollViewWidth = this.getWidth();\r\n\t\t// get\r\n\t\tint tempOffset = childViewWidth - srollViewWidth;\r\n\t\tint scrollX = this.getScrollX();\r\n\t\tif (scrollX == 0 || scrollX == tempOffset) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean canFit(int width, int height) {\n\t\treturn false;\n\t}",
"boolean hasHeight();",
"boolean hasHeight();",
"boolean hasHeight();",
"protected boolean isFullyContained(Widget widget) {\r\n // Calling getPreferredBounds forces the bounds to be calculated if it\r\n // has not already been calculated. For example when the Widget was\r\n // just created and therefore has not had a chance to be displayed.\r\n Rectangle area = widget.getClientArea();\r\n\r\n boolean retVal = false;\r\n if (area != null) {\r\n Rectangle sceneArea = widget.convertLocalToScene(area);\r\n\r\n Rectangle localArea = scene.convertSceneToLocal(sceneArea);\r\n Rectangle myArea = scene.getClientArea();\r\n retVal = myArea.contains(localArea);\r\n }\r\n\r\n return retVal;\r\n }",
"public boolean isSetWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(WIDTH$20) != null;\n }\n }",
"public boolean canSelfScroll() {\n return getAdapter().getCount() != 1;\n }",
"@Override\n protected boolean matchesSafely(TextView item) {\n realWidth = item.getWidth();\n return realWidth == convertDpToPx(expectedDp);\n }",
"public int getContentSize() {\n return getChildAt(0) != null ? getChildAt(0).getMeasuredHeight() : 0;\n }",
"public boolean hasItemExpanded() {\n int childCount = getChildCount();\n for (int i = 0; i < childCount; i++) {\n final View child = getChildAt(i);\n if (((LayoutParams) child.getLayoutParams()).isOpen) {\n return true;\n }\n }\n return false;\n }",
"public boolean getScrollableTracksViewportWidth() {\r\n return false; \r\n }",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean isSizeFixed() {\n return !(this.size.width < 0 && this.size.height < 0);\n }",
"boolean hasSize();",
"boolean hasSize();",
"boolean hasSize();",
"boolean hasSize();",
"public boolean isCorrectSize(int height, int width);",
"protected boolean isSizeable() {\r\n return sizeable;\r\n }",
"public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public Boolean getContainerScroll () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.containerScroll);\r\n\t}",
"@Override\n public boolean canScrollHorizontally() {\n return isScrollEnabled && super.canScrollHorizontally();\n }",
"public boolean isExpanded() {\n return getVisibility() == View.VISIBLE;\n }",
"public boolean isMinWidthSet() { return get(\"MinWidth\")!=null; }",
"@java.lang.Override\n public boolean hasContent() {\n return content_ != null;\n }",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"@java.lang.Override\n public boolean hasHeight() {\n return instance.hasHeight();\n }",
"public boolean meetsMinimumLength(){\n\n return alg.meetsMinimumLength(input.getText().toString());\n }",
"public boolean isExpanded(){\n\t\treturn syncExec(new BoolResult() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Boolean run() {\n\t\t\t\treturn widget.isExpanded();\n\t\t\t}\n\t\t});\n\t}",
"public final boolean getHasContent() {\n return this.url != null;\n }",
"public boolean HasContent() {\n return rgbContent != null;\n }",
"boolean hasDimension();",
"public static boolean hasElements() {\n return content.size() > 0;\n }",
"public boolean isContentPainted() {\r\n return contentPainted;\r\n }",
"public boolean isFull() {\n int size = 0;\n for (int i = 0; i < items.length; i++) {\n if (items[i] != null) {\n size++;\n }\n }\n return size == items.length;\n }",
"public boolean horizontalScroll()\n {\n return horizontalScroll;\n }",
"public final boolean isChildrenLayoutNecessary() {\n return isStatusBitsNonZero(CHILDREN_LAYOUT_NECESSARY_BIT);\n }",
"@Override\n protected boolean canScroll(View v, boolean checkV, int dx, int x, int y) {\n int width = getWidth();\n int slideWidthLeft = Math.round(width * 0.3f);\n int slideWidthRight = Math.round(width * 0.15f);\n if (x < slideWidthLeft || x > width - slideWidthRight) {\n return false;\n }\n return true;\n }",
"public static boolean isResizable() {\n return clientAccessor().isResizableMode();\n }",
"public int getContentWidth() {\n return contentWidth;\n }",
"public final boolean isRealSize() {\r\n return zoom == ZOOM_REAL_SIZE;\r\n }",
"boolean isContentDisplayed();",
"public boolean fullyExpandedClearAllVisible() {\n return this.mNotificationStackScroller.isFooterViewNotGone() && this.mNotificationStackScroller.isScrolledToBottom() && !this.mQsExpandImmediate;\n }",
"public boolean isFull() {\r\n return solutions().size() == maxSize;\r\n }",
"boolean hasColumnLayout();",
"protected boolean updateScrollBarsShowing()\n {\n // Get Scroller Size\n double scrollerW = _scroller.getWidth();\n double scrollerH = _scroller.getHeight();\n\n // Get child size\n Size contentSize = _scroller.getContentPrefSize();\n double contentW = contentSize.getWidth();\n double contentH = contentSize.getHeight();\n\n // Get whether to show scroll bars\n boolean alwaysH = _showHBar == Boolean.TRUE;\n boolean alwaysV = _showVBar == Boolean.TRUE;\n boolean asneedH = _showHBar == null;\n boolean asneedV = _showVBar == null;\n boolean showHBar = alwaysH || asneedH && contentW > scrollerW;\n boolean showVBar = alwaysV || asneedV && contentH > scrollerH;\n\n // Get whether scroll bars are currently showing\n boolean isHBarShowing = isHBarShowing();\n boolean isVBarShowing = isVBarShowing();\n\n // If showing both ScrollBars, but only because both ScrollBars are showing, hide them and try again\n if (isVBarShowing && isHBarShowing && showVBar && showHBar && asneedH && asneedV) {\n boolean vbarNotReallyNeeded = contentW <= scrollerW + getVBar().getWidth();\n boolean hbarNotReallyNeeded = contentH <= scrollerH + getHBar().getHeight();\n if (vbarNotReallyNeeded && hbarNotReallyNeeded) {\n setVBarShowing(false);\n setHBarShowing(false);\n return true;\n }\n }\n\n // If either ScrollBar in wrong Showing state, set and try again\n if (showVBar != isVBarShowing) {\n setVBarShowing(showVBar);\n return true;\n }\n\n if (showHBar != isHBarShowing) {\n setHBarShowing(showHBar);\n return true;\n }\n\n // Return false since ScrollBar showing didn't change\n return false;\n }",
"public Boolean isSizeFlexEligible() {\n return this.sizeFlexEligible;\n }",
"public boolean getMaximized() {\n checkWidget();\n return maximized;\n }",
"public boolean isFull() {\n\t\treturn super.size() == CAPACITY;\n\t}",
"private boolean hasValidLength()\n {\n final int length = mTextInputLayout.getText().length();\n return (length >= mMinLen && length <= mMaxLen);\n }",
"public boolean isLayoutNeeded() {\n return this.mLayoutNeeded;\n }",
"@java.lang.Override\n public boolean hasSize() {\n return size_ != null;\n }",
"@java.lang.Override\n public boolean hasSize() {\n return size_ != null;\n }",
"public boolean isSetHeight() {\n\t\treturn this.height != null;\n\t}",
"public boolean isFull() {\r\n return placeCounter == dimension * dimension;\r\n }",
"public boolean isFull()\r\n\t{\r\n\t\treturn numItems > MAXSIZE;\r\n\t}",
"public boolean hasChildren()\n\t{\n\t\treturn !getChildren().isEmpty();\n\t}",
"boolean hasMaxSize();",
"public boolean isPrefWidthSet() { return get(\"PrefWidth\")!=null; }",
"@objid (\"808c086e-1dec-11e2-8cad-001ec947c8cc\")\n public final boolean hasChildren() {\n return !this.children.isEmpty();\n }",
"private boolean isFull(){\n return cellSize == Max;\n }",
"public boolean isFull() {\n return (this.count == this.capacity);\n }",
"@Override // android.widget.PopupWindow\n public boolean hasContentView() {\n return true;\n }",
"public boolean isSuggestAspectRatioEnabled() {\n return mSuggestAspectRatioEnabled;\n }",
"public boolean hasChilds() {\n return childs != null && !childs.isEmpty();\n }",
"@java.lang.Override\n public boolean hasScrollOffsetX() {\n return instance.hasScrollOffsetX();\n }",
"public boolean isOnscreen( )\r\n {\r\n if ( this.transform.tx( ) + this.width( ) < 0.0f ) return false;\r\n if ( this.transform.tx( ) > SkyDiver.WindowWidth ) return false;\r\n if ( this.transform.ty( ) + this.height( ) < 0.0f ) return false;\r\n if ( this.transform.ty( ) > SkyDiver.WindowHeight ) return false;\r\n\r\n return true;\r\n }",
"boolean hasDistanceView();",
"public int getWidth() {\n return viewWidth;\n }",
"protected boolean calculateSize()\n\t{\n\t\tp_height = 0;\n\t\tfor (int r = 0; r < m_rows; r++)\n\t\t{\n\t\t\tp_height += m_rowHeight[r];\n\t\t\tif (m_rowHeight[r] > 0)\n\t\t\t\tp_height += m_rowGap;\n\t\t}\n\t\tp_height -= m_rowGap;\t//\tremove last\n\t\tp_width = 0;\n\t\tfor (int c = 0; c < m_cols; c++)\n\t\t{\n\t\t\tp_width += m_colWidth[c];\n\t\t\tif (m_colWidth[c] > 0)\n\t\t\t\tp_width += m_colGap;\n\t\t}\n\t\tp_width -= m_colGap;\t\t//\tremove last\n\t\treturn true;\n\t}",
"public boolean isResponsive() {\n\t\treturn responsive;\n\t}",
"public boolean isScrollbarPresent(WebElement element) {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n return (Boolean) javaScriptExecutor.executeScript(\"return arguments[0].scrollHeight > arguments[0].clientHeight;\",\n element);\n }",
"protected boolean getExceed(float currentWidth, DefaultRenderer renderer, int right, int width) {\r\n boolean exceed = currentWidth > right;\r\n if (isVertical(renderer)) {\r\n exceed = currentWidth > width;\r\n }\r\n return exceed;\r\n }",
"public boolean isOverflow() {\n\t\treturn (children.size() >= degree + 1) || (data.size() >= degree);\n\t}",
"public boolean isHorizontalScrollingEnabled() {\n return config.horizontalScrollingEnabled;\n }",
"public boolean hasWrapped() {\n return wrapped != null;\n }",
"public boolean getResized()\n {\n return resized;\n }",
"public boolean isSetImgWidth() {\n return EncodingUtils.testBit(__isset_bitfield, __IMGWIDTH_ISSET_ID);\n }",
"public boolean isClearAllVisible() {\n return this.mNotificationStackScroller.isFooterViewContentVisible();\n }",
"public boolean isFull() {\n\t\treturn(this.size == this.capacity);\n\t}",
"public boolean isMinHeightSet() { return get(\"MinHeight\")!=null; }",
"public Boolean getSizeFlexEligible() {\n return this.sizeFlexEligible;\n }"
] | [
"0.6838701",
"0.6455386",
"0.6455386",
"0.6455386",
"0.6210412",
"0.6113069",
"0.5957332",
"0.58725053",
"0.58699244",
"0.5866895",
"0.5864168",
"0.5828039",
"0.5828039",
"0.5828039",
"0.57997507",
"0.5751338",
"0.57498777",
"0.56731784",
"0.56009585",
"0.5590949",
"0.55899435",
"0.5568602",
"0.5568602",
"0.55374306",
"0.5505522",
"0.54518604",
"0.54518604",
"0.54518604",
"0.54518604",
"0.543951",
"0.5420567",
"0.5418168",
"0.5414813",
"0.54012376",
"0.5399852",
"0.5376933",
"0.5365406",
"0.53425044",
"0.53425044",
"0.53425044",
"0.53425044",
"0.53425044",
"0.53425044",
"0.53425044",
"0.5341974",
"0.5330699",
"0.53254324",
"0.5308886",
"0.53058815",
"0.5299088",
"0.5288979",
"0.5277935",
"0.52712274",
"0.5264914",
"0.52568114",
"0.523864",
"0.5236421",
"0.5232298",
"0.5227534",
"0.5198062",
"0.5190024",
"0.5176431",
"0.51683444",
"0.516706",
"0.5150474",
"0.51481456",
"0.51293993",
"0.51166785",
"0.51126796",
"0.5111783",
"0.5111783",
"0.5100477",
"0.5098717",
"0.50909984",
"0.50867355",
"0.5083456",
"0.50741976",
"0.5072315",
"0.5047947",
"0.50348854",
"0.5033932",
"0.50245076",
"0.5022828",
"0.5014177",
"0.4999059",
"0.49932978",
"0.49918705",
"0.49902156",
"0.4986584",
"0.49781197",
"0.4974698",
"0.4972447",
"0.4964232",
"0.49579552",
"0.49550337",
"0.4950955",
"0.49482223",
"0.4947739",
"0.49403727",
"0.49389973"
] | 0.6411301 | 4 |
Sets whether this ScrollView fits content to its width. | public void setFillWidth(boolean aValue)
{
_scroller.setFillWidth(aValue);
relayout();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFitWidth(short width);",
"public boolean isFillWidth() { return _scroller.isFillWidth(); }",
"public void setViewportFit(@WebContentsObserver.ViewportFitType int value) {\n if (value == mViewportFit) return;\n\n mViewportFit = value;\n maybeUpdateLayout();\n }",
"@Override\n\tpublic boolean canFit(int width, int height) {\n\t\treturn false;\n\t}",
"public boolean setWidth(double width){\n if (width <= 0.0) return false;\n this.width = width;\n return true;\n }",
"void setContentMaxWidth(String maxWidth);",
"public boolean hasScrollableContent() {\n return true;\n }",
"@Override\n public boolean canScrollHorizontally() {\n return isScrollEnabled && super.canScrollHorizontally();\n }",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\tif(!(width>0))\r\n\t\t\tthrow new PreConditionError(\"Error PreCondition: height>0\");\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\tgetDelegate().setWidth(width);\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\t// pos: getHeight()==height\r\n\t\tif(!(getWidth()==width))\r\n\t\t\tthrow new PostConditionError(\"Error PostCondition: getWidth()==width\");\r\n\r\n\t}",
"void setContentMinWidth(String minWidth);",
"@java.lang.Override\n public boolean hasWidth() {\n return instance.hasWidth();\n }",
"public boolean getScrollableTracksViewportWidth()\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}",
"public void bindSizeToFitWithin(ObservableValue<? extends Number> fitWidthValue, ObservableValue<? extends Number> fitHeightValue)\r\n\t{\r\n\t\tthis.fitWidthValue = fitWidthValue;\r\n\t\tthis.fitHeightValue = fitHeightValue;\r\n\t\timageView.fitWidthProperty().unbind();\r\n\t\timageView.fitHeightProperty().unbind();\r\n\t\tminWidthProperty().unbind();\r\n\t\tminHeightProperty().unbind();\r\n\t\tprefWidthProperty().unbind();\r\n\t\tprefHeightProperty().unbind();\r\n\t\tmaxWidthProperty().unbind();\r\n\t\tmaxHeightProperty().unbind();\r\n\t\tsetMinWidth(USE_PREF_SIZE);\r\n\t\tsetMinHeight(USE_PREF_SIZE);\r\n\t\tsetMaxWidth(USE_PREF_SIZE);\r\n\t\tsetMaxHeight(USE_PREF_SIZE);\r\n\r\n\t\tInvalidationListener listener = obs -> fitSize();\r\n\t\tfitWidthValue.addListener(listener);\r\n\t\tfitHeightValue.addListener(listener);\r\n\t\timageView.imageProperty().addListener(listener);\r\n\t}",
"@Override\n\tpublic void setWidth(int newWidth) {\n\t\tint width = (int) (newWidth * 0.5);\n\t\tif (width > mainContainer.getMinWidth()) {\n\t\t\tscreenWidth = width;\n\t\t\tmainContainer.setPrefWidth(screenWidth);\n\t\t}\n\t\tcenterScreenX(newWidth);\n\t}",
"public void setWidth(int width) {\n if (width > 0) {\n this.width = width;\n }\n }",
"public boolean getScrollableTracksViewportWidth() {\r\n return false; \r\n }",
"@BindingAdapter({\"layout_width\"})\n public static void setWidth(View view, int width) {\n view.getLayoutParams().width = Math.round(width * view.getContext().getResources().getDisplayMetrics().density);\n }",
"public void setWidth(final int theWidth) {\n myWidth = theWidth;\n }",
"public final void setResizableWidth(boolean resizableWidth) {\r\n\t\tgetState().setResizableWidth(resizableWidth);\r\n\t}",
"@Override\n\tpublic void setWidth(float width) {\n\n\t}",
"void setFitHeight(short height);",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}",
"void setWidthHeight() {\n\t\tsetWidthHeight(getNcols() * grid().gridW, getNvisibleRows() * grid().gridH);\n\t}",
"public Builder setWidth(int value) {\n \n width_ = value;\n onChanged();\n return this;\n }",
"public void adjustWidth() {\n int width = Short.MIN_VALUE;\n\n for (final TextBox tb : getAllTextBox()) {\n final int tbWidth = tb.getTextDim().width;\n\n if (tbWidth > width) width = tbWidth; // get the longer content\n }\n\n if (fullWidthStereotype > width) width = fullWidthStereotype;\n\n Change.push(new BufferBounds(this));\n\n setBounds(new Rectangle(\n bounds.x, bounds.y, width + GraphicView.getGridSize() + 15, bounds.height));\n\n Change.push(new BufferBounds(this));\n }",
"public Builder setWidth(int value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n onChanged();\n return this;\n }",
"protected boolean allowViewToScroll() {\n return true;\n }",
"public void setWidth(double value) {\n this.width = value;\n }",
"public void setMinWidth(int width) {\n setMinSize(width, minHeight);\n }",
"public void setFillHeight(boolean aValue)\n {\n _scroller.setFillHeight(aValue);\n relayout();\n }",
"@Override\n @SimpleProperty()\n public void Width(int width) {\n if (width == LENGTH_PREFERRED) {\n width = LENGTH_FILL_PARENT;\n }\n super.Width(width);\n }",
"public void configure(T aView) { aView.setMinSize(100,60); }",
"public void configure(T aView) { aView.setMinSize(100,60); }",
"public void configure(T aView) { aView.setMinSize(80,22); }",
"public void setWidth(int width)\n {\n this.width = width;\n }",
"@Override\r\n\tpublic int setWidth() {\n\t\treturn 0;\r\n\t}",
"public void setWidth(int width) {\n this.width = width;\n }",
"public void setWidth(int w)\n {\n width = w;\n }",
"public void setWidth(int w) {\n this.width = w;\n }",
"void setWidth(int width);",
"void setWidth(int width);",
"void setMyWidth()\n\t{\n\t\tfor(int i =0 ; i<editRow.getChildCount();i++)\n\t\t{\n\t\t\t\n\t\t\t((EditText)editRow.getChildAt(i)).setMinWidth(colWidth[i]);\n\t\t\t((EditText)editRow.getChildAt(i)).setMaxWidth(colWidth[i]);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void setMinWidth(float minWidth) {\n mMinWidth = convertDpToPx(minWidth);\n }",
"@Override\n protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n super.onMeasure(widthMeasureSpec, heightMeasureSpec);\n //Snap to width\n setMeasuredDimension(getMeasuredWidth(), getMeasuredWidth());\n }",
"public void setWidth(Integer width) {\n this.width = width;\n control.draw();\n }",
"@Override\n protected boolean canScroll(View v, boolean checkV, int dx, int x, int y) {\n int width = getWidth();\n int slideWidthLeft = Math.round(width * 0.3f);\n int slideWidthRight = Math.round(width * 0.15f);\n if (x < slideWidthLeft || x > width - slideWidthRight) {\n return false;\n }\n return true;\n }",
"private void setTargetWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmTargetWidth = width;\r\n\t\t}\r\n\t}",
"public void configure(T aView) { aView.setMinSize(120,60); }",
"public void configure(T aView) { aView.setMinSize(120,60); }",
"public void configure(T aView) { aView.setMinSize(120,60); }",
"public void configure(T aView) { aView.setMinSize(120,60); }",
"public void configure(T aView) { aView.setMinSize(120,60); }",
"public void configure(T aView) { aView.setMinSize(120,60); }",
"public boolean isSetWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(WIDTH$20) != null;\n }\n }",
"private void fitTextToView() {\n int currentTextSize = (int) getTextSize();\n if (currentTextSize == mMinTextSize) {\n return;\n }\n\n final float width = getAvailableWidth();\n final String currentText = getText().toString();\n\n if (width <= 0 || TextUtils.isEmpty(currentText)) {\n return;\n }\n\n mTextPaint.set(getPaint());\n mTextPaint.setTextSize(currentTextSize);\n\n while (mTextPaint.measureText(currentText) > width && currentTextSize > mMinTextSize) {\n currentTextSize -= mTextSizeIncrement;\n mTextPaint.setTextSize(currentTextSize);\n }\n\n currentTextSize = Math.max(currentTextSize, mMinTextSize);\n setEllipsize(currentTextSize == mMinTextSize ? TextUtils.TruncateAt.END : null);\n\n setTextSize(TypedValue.COMPLEX_UNIT_PX, currentTextSize);\n }",
"public int getWidth() {\n return viewWidth;\n }",
"public void makeScrollable() {\n if (touchScrollHandler == null) {\n touchScrollHandler = TouchScrollDelegate.enableTouchScrolling(this);\n }\n touchScrollHandler.addElement(contentNode);\n }",
"public void setWidth(int w){\n \twidth = w;\n }",
"boolean hasWidth();",
"boolean hasWidth();",
"boolean hasWidth();",
"@objid (\"7f09cb82-1dec-11e2-8cad-001ec947c8cc\")\n public boolean allowsResize() {\n return true;\n }",
"public void setWidth(double width) {\r\n this.width = width;\r\n }",
"public void setMinWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getMinWidth()) return;\n firePropertyChange(\"MinWidth\", put(\"MinWidth\", w), w, -1);\n}",
"public void setContents()\r\n\t{\r\n\t\t// contents.widthProperty().bind(this.prefWidthProperty());\r\n\t\t// contents.heightProperty().bind(this.prefHeightProperty());\r\n\t\t// contents.resize(width, height);\r\n\t\t// contents.relocate(width/4, height/4);\r\n\r\n\t}",
"public void expand() {\n if(!contentLayout.isVisible()) {\n toggle(false);\n }\n }",
"public void updateMainViewWidth(int width) {\n mRecyclerViewWidth = width;\n }",
"public void setWidth(double width) {\n this.width = width;\n }",
"private void setWidth() {\n\n for (int i = 0; i < historicList.size(); i++) {\n RelativeLayout layout = layoutsList.get(i);\n\n ViewGroup.LayoutParams params = layout.getLayoutParams();\n int position = historicList.get(i).position;\n if (position > 4) {\n position = 4;\n } else if (position < 0) {\n position = 0;\n }\n WidthScreen(position, params);\n }\n }",
"@JsProperty\n public void setWidth(int width);",
"@Before\n public void setDimension() {\n this.view.setDimension(new Dimension(WITDH, HEIGHT));\n }",
"public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }",
"public void setWidth( int width ) {\n\t\t_width = width;\n\t}",
"private void setWindowWidth(int width) {\n this.width = width;\n }",
"public boolean isMinWidthSet() { return get(\"MinWidth\")!=null; }",
"public boolean isFillHeight() { return _scroller.isFillHeight(); }",
"public void setWidth(double width) {\n this.width = width;\n }",
"public void setWidth(int w) {\n\t\twidth = w;\n\t}",
"public void setWidth(int width) {\n\t\tthis.width = width;\n\t}",
"public void setMaxWidth(int maxWidth) {\n mMaxWidthPx = maxWidth;\n }",
"public int getContentWidth() {\n return contentWidth;\n }",
"public SpriteSheetSplitter setWidth(int width) {\n if (width <= 0) {\n throw new IllegalStateException(\"invalid width\");\n }\n this.width = width;\n return this;\n }",
"public void setMinimumSize( int width, int height ) {\n checkWidget();\n Point point = parent.fixPoint( width, height );\n minimumWidth = point.x;\n minimumHeight = point.y;\n }",
"public final void setMaxWidth(final int maxWidth) {\n this.maxWidth = maxWidth;\n }",
"public void setMinWidth(float minWidth) {\n this.minWidth = minWidth;\n }",
"public void setWidth (int width) {\r\n\tcheckWidget();\r\n\tif ((style & SWT.SEPARATOR) == 0) return;\r\n\tif (width < 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_WIDTH, width, 0);\r\n\tif (control != null && !control.isDisposed ()) {\r\n\t\tcontrol.setBounds (getBounds ());\r\n\t}\r\n}",
"public void setWitdh(int newValue)\n {\n width = newValue;\n }",
"public void setSize(int width, int height){\n mHolder.setFixedSize(width, height);\n }",
"void setContentMinHeight(String minHeight);",
"@Override\n public void setContentScaleFactor(double v) {\n super.setContentScaleFactor(1);\n }",
"public boolean isSizeFixed() {\n return !(this.size.width < 0 && this.size.height < 0);\n }",
"public void setMaxWidth(float maxWidth) {\n mMaxWidth = convertDpToPx(maxWidth);\n }",
"public void setWidth(int width) {\n\t\tw = width;\n\t}",
"public MediaDeviceDescription setWidth(float width) {\n this.width = width;\n return this;\n }",
"public Builder setWidth(long value) {\n copyOnWrite();\n instance.setWidth(value);\n return this;\n }",
"public void setWidth(double w) {\n\t\t\twidth.set(clamp(w, WIDTH_MIN, WIDTH_MAX));\n\t\t}",
"public void setWidth(int w) {\n this.W = w;\n }",
"public void setPrefWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getPrefWidth()) return;\n firePropertyChange(\"PrefWidth\", put(\"PrefWidth\", w), w, -1);\n}",
"@Override // com.android.server.wm.WindowContainer\n public boolean fillsParent() {\n return true;\n }",
"public void setMinSize(int width, int height) {\n checkWidget();\n if (width == minWidth && height == minHeight)\n return;\n minWidth = Math.max(0, width);\n minHeight = Math.max(0, height);\n layout(false);\n }"
] | [
"0.587911",
"0.5420504",
"0.5386598",
"0.53831935",
"0.53656024",
"0.5328994",
"0.53197366",
"0.52227724",
"0.5180795",
"0.51721877",
"0.51667464",
"0.5160641",
"0.5159516",
"0.5084597",
"0.5065821",
"0.50441957",
"0.50342196",
"0.5029178",
"0.5008194",
"0.49918804",
"0.49753726",
"0.49626207",
"0.49459377",
"0.49409825",
"0.49406034",
"0.4923349",
"0.49151504",
"0.49086082",
"0.48959562",
"0.48476106",
"0.48468727",
"0.4842847",
"0.4842847",
"0.4823335",
"0.48105073",
"0.48097444",
"0.47926366",
"0.47895125",
"0.47865885",
"0.47860572",
"0.47860572",
"0.4785058",
"0.47758698",
"0.47683504",
"0.47678396",
"0.47510666",
"0.47422808",
"0.47354364",
"0.47354364",
"0.47354364",
"0.47354364",
"0.47354364",
"0.47354364",
"0.47326875",
"0.47245064",
"0.47234896",
"0.47204614",
"0.471125",
"0.47042346",
"0.47042346",
"0.47042346",
"0.46876463",
"0.46867916",
"0.46843216",
"0.4668722",
"0.46647885",
"0.46607554",
"0.46542075",
"0.4654065",
"0.46530208",
"0.46419448",
"0.4639767",
"0.46367437",
"0.46346784",
"0.46345365",
"0.46284974",
"0.46220753",
"0.46192393",
"0.46141207",
"0.46128264",
"0.46082684",
"0.46045893",
"0.46016532",
"0.4596585",
"0.45804256",
"0.45765388",
"0.45765066",
"0.45747083",
"0.45670092",
"0.45666108",
"0.45637366",
"0.45624772",
"0.45486003",
"0.45483893",
"0.45458913",
"0.4542744",
"0.45423886",
"0.4541891",
"0.45348093",
"0.45247418"
] | 0.5680835 | 1 |
Returns whether this ScrollView fits content to its height. | public boolean isFillHeight() { return _scroller.isFillHeight(); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasHeight();",
"boolean hasHeight();",
"boolean hasHeight();",
"public boolean getScrollableTracksViewportHeight() {\n return getParent().getHeight() > getPreferredSize().height;\n }",
"public boolean hasScrollableContent() {\n return true;\n }",
"@java.lang.Override\n public boolean hasHeight() {\n return instance.hasHeight();\n }",
"public boolean isSetHeight() {\n\t\treturn this.height != null;\n\t}",
"public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasHeight() {\n return fieldSetFlags()[6];\n }",
"public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public int getContentSize() {\n return getChildAt(0) != null ? getChildAt(0).getMeasuredHeight() : 0;\n }",
"public boolean hasContent() {\n return getContentSize() > 0;\n }",
"public boolean isAtBottom() {\n return null != mListView && mListView.getLastVisiblePosition() == mListView.getCount() - 1;\n }",
"@java.lang.Override\n public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) != 0);\n }",
"public boolean hasItemExpanded() {\n int childCount = getChildCount();\n for (int i = 0; i < childCount; i++) {\n final View child = getChildAt(i);\n if (((LayoutParams) child.getLayoutParams()).isOpen) {\n return true;\n }\n }\n return false;\n }",
"protected int getContentHeight()\n {\n return this.getSize() * 10;\n }",
"public int getViewportHeight() {\n return viewport.getHeight();\n }",
"@Override\n\tpublic boolean canFit(int width, int height) {\n\t\treturn false;\n\t}",
"public boolean isScrollbarPresent(WebElement element) {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n return (Boolean) javaScriptExecutor.executeScript(\"return arguments[0].scrollHeight > arguments[0].clientHeight;\",\n element);\n }",
"private int getViewableHeight() {\r\n\t\treturn MAX_CELL_COUNT * CELL_SIZE_Y;\r\n\t}",
"public boolean isSetImgHeight() {\n return EncodingUtils.testBit(__isset_bitfield, __IMGHEIGHT_ISSET_ID);\n }",
"private boolean hasReachedBottom() {\n\t\tfor (Segment s:this.getHorizontalProjection().getShapeSegments()){\n\t\t\t\n\t\t\tHeightProfile hs = this.grid.heightAt(s);\n\t\t\t\n\t\t\tfor (int h : hs){\n\t\t\t\t\n\t\t\t\tif (this.bottomLeft.getY() <= h){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"protected int getContentHeight()\n {\n return this.getSize() * GuiStats.this.fontRenderer.FONT_HEIGHT * 4;\n }",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean isExpanded() {\n return getVisibility() == View.VISIBLE;\n }",
"public boolean isPrefHeightSet() { return get(\"PrefHeight\")!=null; }",
"public int getHeight() {\n ImageView imageView;\n int height = super.getHeight();\n return (height > 0 || imageView == null) ? height : getImageViewFieldValue(imageView, \"mMaxHeight\");\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"public Boolean getContainerScroll () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.containerScroll);\r\n\t}",
"public int getScrollHeight() {\n\t\treturn this.scrollHeight;\n\t}",
"public boolean isMinHeightSet() { return get(\"MinHeight\")!=null; }",
"protected boolean isFullyContained(Widget widget) {\r\n // Calling getPreferredBounds forces the bounds to be calculated if it\r\n // has not already been calculated. For example when the Widget was\r\n // just created and therefore has not had a chance to be displayed.\r\n Rectangle area = widget.getClientArea();\r\n\r\n boolean retVal = false;\r\n if (area != null) {\r\n Rectangle sceneArea = widget.convertLocalToScene(area);\r\n\r\n Rectangle localArea = scene.convertSceneToLocal(sceneArea);\r\n Rectangle myArea = scene.getClientArea();\r\n retVal = myArea.contains(localArea);\r\n }\r\n\r\n return retVal;\r\n }",
"public int getHeight() {\n return (int) (this.height * ViewHandlerImpl.getScaleModifier());\n }",
"public boolean isScrolledToBottom() {\n if (isInSettings() || this.mBarState == 1 || this.mNotificationStackScroller.isScrolledToBottom()) {\n return true;\n }\n return false;\n }",
"public boolean hasChildren()\n\t{\n\t\treturn !getChildren().isEmpty();\n\t}",
"private boolean isEdge() {\r\n\t\t// get the child view Width\r\n\t\tint childViewWidth = mChildView.getMeasuredWidth();\r\n\t\t// get the ScrollView Width\r\n\t\tint srollViewWidth = this.getWidth();\r\n\t\t// get\r\n\t\tint tempOffset = childViewWidth - srollViewWidth;\r\n\t\tint scrollX = this.getScrollX();\r\n\t\tif (scrollX == 0 || scrollX == tempOffset) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean canSelfScroll() {\n return getAdapter().getCount() != 1;\n }",
"boolean hasSize();",
"boolean hasSize();",
"boolean hasSize();",
"boolean hasSize();",
"@Override\n public int getHeight() {\n int height = 0;\n\n if (!isEmpty()) {\n height = root.getHeight();\n }\n\n return height;\n }",
"public float getHeight()\n {\n return getBounds().height();\n }",
"@objid (\"808c086e-1dec-11e2-8cad-001ec947c8cc\")\n public final boolean hasChildren() {\n return !this.children.isEmpty();\n }",
"public double getMaxHeight()\n\t{\n\t\treturn this.maxHeight;\n\t}",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"public boolean isCorrectSize(int height, int width);",
"boolean hasMaxSize();",
"@Override\r\n public int getHeight() {\r\n if(mBaseView != null)\r\n return mBaseView.getHeight();\r\n else\r\n return 0;\r\n }",
"public int getHeight() {\n\t\treturn canvasHeight;\n\t}",
"public boolean getMaximized() {\n checkWidget();\n return maximized;\n }",
"public final float getHeight() {\n return mHeight;\n }",
"public boolean fullyExpandedClearAllVisible() {\n return this.mNotificationStackScroller.isFooterViewNotGone() && this.mNotificationStackScroller.isScrolledToBottom() && !this.mQsExpandImmediate;\n }",
"int getBoundsHeight();",
"public int getScrollNeededToBeFullScreen() {\n return getTransparentViewHeight();\n }",
"public boolean isVertical()\n\t{\n\t\treturn CGCWorld.getAnimManager().gHeight(getHighAnim()) > CGCWorld.getAnimManager().gWidth(getHighAnim());\n\t}",
"private int getContentHeight() {\r\n\t\tImmutableList<UltraTeleportWaypoint> list = UltraTeleportWaypoint.getWaypoints();\r\n\t\treturn list.size() * CELL_SIZE_Y;\r\n\t}",
"public int getViewportHeight() {\n return scalableImage.getViewportHeight();\n }",
"@Override\n\tpublic final int getScrollHeight() {\n\t\t// TODO(dramaix): Use document.scrollingElement when its available. See\n\t\t// getScrollLeft().\n\t\treturn getViewportElement().getScrollHeight();\n\t}",
"@Override\n public int getHeight() {\n return graphicsEnvironmentImpl.getHeight(canvas);\n }",
"public boolean hasChilds() {\n return childs != null && !childs.isEmpty();\n }",
"public final boolean getHasContent() {\n return this.url != null;\n }",
"public boolean outHeight(int maxH, int minH) {\n return center.getY() + this.r > maxH || center.getY() - this.r < minH;\n }",
"@java.lang.Override\n public boolean hasContent() {\n return content_ != null;\n }",
"protected boolean updateScrollBarsShowing()\n {\n // Get Scroller Size\n double scrollerW = _scroller.getWidth();\n double scrollerH = _scroller.getHeight();\n\n // Get child size\n Size contentSize = _scroller.getContentPrefSize();\n double contentW = contentSize.getWidth();\n double contentH = contentSize.getHeight();\n\n // Get whether to show scroll bars\n boolean alwaysH = _showHBar == Boolean.TRUE;\n boolean alwaysV = _showVBar == Boolean.TRUE;\n boolean asneedH = _showHBar == null;\n boolean asneedV = _showVBar == null;\n boolean showHBar = alwaysH || asneedH && contentW > scrollerW;\n boolean showVBar = alwaysV || asneedV && contentH > scrollerH;\n\n // Get whether scroll bars are currently showing\n boolean isHBarShowing = isHBarShowing();\n boolean isVBarShowing = isVBarShowing();\n\n // If showing both ScrollBars, but only because both ScrollBars are showing, hide them and try again\n if (isVBarShowing && isHBarShowing && showVBar && showHBar && asneedH && asneedV) {\n boolean vbarNotReallyNeeded = contentW <= scrollerW + getVBar().getWidth();\n boolean hbarNotReallyNeeded = contentH <= scrollerH + getHBar().getHeight();\n if (vbarNotReallyNeeded && hbarNotReallyNeeded) {\n setVBarShowing(false);\n setHBarShowing(false);\n return true;\n }\n }\n\n // If either ScrollBar in wrong Showing state, set and try again\n if (showVBar != isVBarShowing) {\n setVBarShowing(showVBar);\n return true;\n }\n\n if (showHBar != isHBarShowing) {\n setHBarShowing(showHBar);\n return true;\n }\n\n // Return false since ScrollBar showing didn't change\n return false;\n }",
"public int getHeight() {\n int parent_desired_height = this.getParent().getChildHeight(this);\n return Math.min(Math.max(parent_desired_height, this.getMinHeight()), this.getMaxHeight());\n }",
"public boolean getExpandVertical() {\n checkWidget();\n return expandVertical;\n }",
"public int height() {\n return this.root.height();\n }",
"public boolean isExpanded(){\n\t\treturn syncExec(new BoolResult() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Boolean run() {\n\t\t\t\treturn widget.isExpanded();\n\t\t\t}\n\t\t});\n\t}",
"public int getHeight() {\n return mHeight;\n }",
"public int getHeight() {\n return mHeight;\n }",
"public boolean hasFooter() {\n return hasFooter;\n }",
"public abstract int layoutHeight();",
"short getFitHeight();",
"public boolean isFull() {\n if(this.top==(size - 1)) {\n return true;\n }\n return false;\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"public boolean HasContent() {\n return rgbContent != null;\n }",
"public boolean isFull() {\n int size = 0;\n for (int i = 0; i < items.length; i++) {\n if (items[i] != null) {\n size++;\n }\n }\n return size == items.length;\n }",
"int getHScrollbarHeight();",
"boolean hasColumnLayout();",
"public boolean isClearAllVisible() {\n return this.mNotificationStackScroller.isFooterViewContentVisible();\n }",
"public static boolean hasElements() {\n return content.size() > 0;\n }",
"public boolean isFull()\r\n\t{\r\n\t\treturn numItems > MAXSIZE;\r\n\t}",
"public boolean isLargerThan(int length, int height){\n\t\treturn this.getArea() > (length * height);\n\t}",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean finished() {\n\t\treturn y > (parent.height);//in this case it will be the bottom corner of the canvas\n\t}",
"public float getHeight() {\n return this.height;\n }",
"@Override\n protected boolean isFinished() {\n if (isDone) {\n return true;\n }\n double currentHeight = Robot.climber.getFrontChasisHeight();\n if (currentHeight != previousHeight) {\n previousHeight = currentHeight;\n return false;\n } else {\n return true;\n }\n }",
"public boolean hasMaxSize() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean isContentDisplayed();",
"public int getMinHeight() {\n checkWidget();\n return minHeight;\n }",
"@java.lang.Override\n public boolean hasSize() {\n return size_ != null;\n }",
"@java.lang.Override\n public boolean hasSize() {\n return size_ != null;\n }"
] | [
"0.71203375",
"0.71203375",
"0.71203375",
"0.69323224",
"0.6834723",
"0.67323583",
"0.6473485",
"0.6274489",
"0.62601745",
"0.61788607",
"0.606075",
"0.5964367",
"0.57095855",
"0.57058",
"0.5697025",
"0.5679612",
"0.5653471",
"0.56161326",
"0.560738",
"0.55689067",
"0.5568241",
"0.5564884",
"0.55366635",
"0.55252427",
"0.55252427",
"0.55216235",
"0.5497689",
"0.54890877",
"0.54877216",
"0.5487437",
"0.5484544",
"0.5452454",
"0.54513204",
"0.5428916",
"0.54017013",
"0.53813016",
"0.5378886",
"0.53686595",
"0.53663635",
"0.53663635",
"0.53663635",
"0.53663635",
"0.5363681",
"0.536048",
"0.53598154",
"0.53583777",
"0.53497106",
"0.53466636",
"0.5328782",
"0.5325453",
"0.53225946",
"0.5322516",
"0.53216547",
"0.5313641",
"0.5307163",
"0.52966106",
"0.52853006",
"0.52776265",
"0.5266303",
"0.5264736",
"0.52594477",
"0.5256626",
"0.52493584",
"0.52395606",
"0.5233924",
"0.5224105",
"0.52052087",
"0.5187617",
"0.518562",
"0.517757",
"0.5175734",
"0.5175734",
"0.51746863",
"0.5171653",
"0.51692224",
"0.51682156",
"0.51661825",
"0.5165836",
"0.5160994",
"0.5156328",
"0.5155116",
"0.5141769",
"0.51374054",
"0.5136194",
"0.5121331",
"0.50964767",
"0.50964767",
"0.50964767",
"0.50964767",
"0.50964767",
"0.50964767",
"0.50964767",
"0.50938046",
"0.5091457",
"0.5090454",
"0.50904155",
"0.5090135",
"0.5089969",
"0.50811",
"0.50811"
] | 0.67820835 | 5 |
Sets whether this ScrollView fits content to its height. | public void setFillHeight(boolean aValue)
{
_scroller.setFillHeight(aValue);
relayout();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFitHeight(short height);",
"public boolean isFillHeight() { return _scroller.isFillHeight(); }",
"public void setHeight (int height) {\n if (height < 10) {\n Log.warning(\"Attempted to set a checkbox height of less than 10 pixels.\");\n return;\n }\n\n synchronized (this) {\n this.height = height;\n }\n }",
"public void setContentHeight(int contentHeight) {\n\t\tmContentHeight = contentHeight;\n\t\trequestLayout();\n\t}",
"public boolean hasScrollableContent() {\n return true;\n }",
"public boolean isSetHeight() {\n\t\treturn this.height != null;\n\t}",
"public boolean getScrollableTracksViewportHeight() {\n return getParent().getHeight() > getPreferredSize().height;\n }",
"@java.lang.Override\n public boolean hasHeight() {\n return instance.hasHeight();\n }",
"void setContentMaxHeight(String maxHeight);",
"public void setHeight(int value) {\n this.height = value;\n }",
"public void setHeight(double value) {\n this.height = value;\n }",
"public void setHeight(int height);",
"public void setHeight(int height);",
"boolean hasHeight();",
"boolean hasHeight();",
"boolean hasHeight();",
"@Override\n\t\tpublic void onMeasure (int widthMeasureSpec, int heightMeasureSpec) {\n\t\t\t\n\t\t\tif (isExpanded ()) {\n\t\t\t\t\n\t\t\t\t// Calculate entire height by providing a very large height hint.\n\t\t\t\t// View.MEASURED_SIZE_MASK represents the largest height possible.\n\t\t\t\t\n\t\t\t\tint expandSpec = MeasureSpec.makeMeasureSpec (/*MEASURED_SIZE_MASK*/ 0x00ffffff, MeasureSpec.AT_MOST); // SUPPORT 11\n\t\t\t\t\n\t\t\t\tsuper.onMeasure (widthMeasureSpec, expandSpec);\n\t\t\t\t\n\t\t\t\tViewGroup.LayoutParams params = getLayoutParams ();\n\t\t\t\tparams.height = getMeasuredHeight ();\n\t\t\t\t\n\t\t\t} else super.onMeasure (widthMeasureSpec, heightMeasureSpec);\n\t\t\t\n\t\t}",
"public void updateHeight() {\n Rectangle repaintBounds = getBounds();\n parent.getScene().paintImmediately(repaintBounds);\n\n // set new height compute while repainting.\n setBounds(new Rectangle(bounds));\n\n parent.getScene().repaint(repaintBounds);\n setChanged();\n notifyObservers();\n }",
"@Override\n\tpublic boolean canFit(int width, int height) {\n\t\treturn false;\n\t}",
"@BindingAdapter({\"layout_height\"})\n public static void setHeight(View view, int height) {\n view.getLayoutParams().height = Math.round(height * view.getContext().getResources().getDisplayMetrics().density);\n }",
"public Builder setHeight(int value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n onChanged();\n return this;\n }",
"public void setHeight(int height) {\n if (height > 0) {\n this.height = height;\n }\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"@Override\r\n\tpublic int setHeight() {\n\t\treturn 0;\r\n\t}",
"public boolean setHeight(double heightIn)\r\n {\r\n if (heightIn > 0)\r\n {\r\n height = heightIn;\r\n return true;\r\n }\r\n else \r\n {\r\n return false;\r\n }\r\n }",
"void setHeight(int height);",
"void setHeight(int height);",
"@Override\n\tpublic void setHeight(float height) {\n\n\t}",
"void setContentMinHeight(String minHeight);",
"public boolean hasHeight() {\n return fieldSetFlags()[6];\n }",
"public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"@Override\n public boolean canScrollVertically() {\n return isScrollEnabled && super.canScrollVertically();\n }",
"public void determineMaximumHeight() {\n\t\tthis.setMaximumHeight(maxDepth(root));\n\t}",
"public void setHeight(int h)\n {\n height = h;\n }",
"public void setViewportFit(@WebContentsObserver.ViewportFitType int value) {\n if (value == mViewportFit) return;\n\n mViewportFit = value;\n maybeUpdateLayout();\n }",
"public void setHeight(int height) {\r\n\r\n\t\tsuper.setHeight(height);\r\n\r\n\t\tsetNumberOfSections(numberOfSections);\r\n\t}",
"@Override\r\n\tpublic void setHeight(int height) {\n\t\t\r\n\t}",
"public void setHeight(int h) {\n this.H = h;\n }",
"public void setHeight(int newValue)\n {\n height = newValue;\n }",
"public void setHeight(int height) {\r\n this.height = height;\r\n }",
"protected int getContentHeight()\n {\n return this.getSize() * 10;\n }",
"public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public void setHeight(int height) {\n this.height = height;\n }",
"public void setHeight(int height) {\n this.height = height;\n }",
"@Override\n public void onGlobalLayout() {\n scrollView.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n\n // Get visible height of scroll view\n Rect rect = new Rect();\n scrollView.getLocalVisibleRect(rect);\n int height = rect.height() - DimensionUtils.dpToPx(16, mActivity);\n\n // Set min height\n layoutContainer.setMinimumHeight(height);\n }",
"private void setHeight(float height){\n this.height = height;\n }",
"@Override\n\tpublic void setHeight(int y) {\n\t\tdelegate.setHeight(y);\n\t}",
"public void setHeight(double h) {\n\t\t\theight.set(clamp(h, HEIGHT_MIN, HEIGHT_MAX));\n\t\t}",
"private int getViewableHeight() {\r\n\t\treturn MAX_CELL_COUNT * CELL_SIZE_Y;\r\n\t}",
"public void setHeight(int height) {\n this.height = height;\n }",
"public void setViewPortHeight(double viewPortHeight) {\n this.viewPortHeight = viewPortHeight;\n }",
"@Override\n\tpublic void setHeight(short arg0) {\n\t\t\n\t}",
"public void setHeight(int height) {\n int oldValue = mHeight;\n mHeight = height;\n pcs.firePropertyChange(PROP_HEIGHT, oldValue, mHeight);\n }",
"public void setHeight(int height) {\r\n\t\tthis.height = height;\r\n\t}",
"public void setHeight(Integer height) {\n this.height = height;\n control.draw();\n }",
"public void setHeight(double height) {\r\n this.height = height;\r\n }",
"public void setHeight(double height) {\n this.height = height;\n }",
"public void setBestHeight() { setHeight(getBestHeight()); }",
"public int getViewportHeight() {\n return viewport.getHeight();\n }",
"public void setHeight(float height) {\n this.yRadius = 0.5f * height;\n }",
"public void setHeight(double height) {\n this.height = height;\n }",
"@Override\r\n public boolean canScrollVertically(){\r\n return true;\r\n }",
"@Override\n protected void setHeight(Context context, Integer heightInDp) {\n }",
"private void setTableHeight() {\n coachesTable.prefHeightProperty().bind(coachesTable.fixedCellSizeProperty().\n multiply(Bindings.size(coachesTable.getItems())).add(20).add(15)); //margin + header height\n }",
"@Override\n protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n heightMeasureSpec = MeasureSpec.makeMeasureSpec(65536,\n MeasureSpec.AT_MOST);\n super.onMeasure(widthMeasureSpec, heightMeasureSpec);\n }",
"public void bindSizeToFitWithin(ObservableValue<? extends Number> fitWidthValue, ObservableValue<? extends Number> fitHeightValue)\r\n\t{\r\n\t\tthis.fitWidthValue = fitWidthValue;\r\n\t\tthis.fitHeightValue = fitHeightValue;\r\n\t\timageView.fitWidthProperty().unbind();\r\n\t\timageView.fitHeightProperty().unbind();\r\n\t\tminWidthProperty().unbind();\r\n\t\tminHeightProperty().unbind();\r\n\t\tprefWidthProperty().unbind();\r\n\t\tprefHeightProperty().unbind();\r\n\t\tmaxWidthProperty().unbind();\r\n\t\tmaxHeightProperty().unbind();\r\n\t\tsetMinWidth(USE_PREF_SIZE);\r\n\t\tsetMinHeight(USE_PREF_SIZE);\r\n\t\tsetMaxWidth(USE_PREF_SIZE);\r\n\t\tsetMaxHeight(USE_PREF_SIZE);\r\n\r\n\t\tInvalidationListener listener = obs -> fitSize();\r\n\t\tfitWidthValue.addListener(listener);\r\n\t\tfitHeightValue.addListener(listener);\r\n\t\timageView.imageProperty().addListener(listener);\r\n\t}",
"@java.lang.Override\n public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) != 0);\n }",
"public void setHeight(int height) {\n\t\tthis.height = height;\n\t}",
"public void setHeight(int height) {\n\t\tthis.height = height;\n\t}",
"public Builder setHeight(long value) {\n copyOnWrite();\n instance.setHeight(value);\n return this;\n }",
"public int getHeight() {\n ImageView imageView;\n int height = super.getHeight();\n return (height > 0 || imageView == null) ? height : getImageViewFieldValue(imageView, \"mMaxHeight\");\n }",
"public void recomputeHeight() {\n setVisibility(View.GONE);\n setupAnimators();\n }",
"void setHeight(VariableAmount height);",
"public void setHeight(double height) {\n\t\tthis.height = height;\n\t}",
"public void setHeight(double height) {\n\t\tthis.height = height;\n\t}",
"public void setHeight(double height) {\n\t\tthis.height = height;\n\t}",
"public void setHeight( int height ) {\n\t\t_height = height;\n\t}",
"public MediaDeviceDescription setHeight(float height) {\n this.height = height;\n return this;\n }",
"@Override\n\tpublic void setHeightInPoints(float arg0) {\n\t\t\n\t}",
"public void setHeight(int height) {\n\t\th = height;\n\t}",
"public void setYHeight(float yHeight) {\n\t\tthis.yHeight = yHeight;\n\t}",
"public void setHeight(int inches) {\n if (inches >= 24 && inches <= 84)\n this.height = inches;\n }",
"public int getHeight() {\n return (int) (this.height * ViewHandlerImpl.getScaleModifier());\n }",
"@Override\n protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n super.onMeasure(widthMeasureSpec, heightMeasureSpec);\n\n if (DEBUG) logf(\"onMeasure(%d, %d) -> (%d, %d)\",\n widthMeasureSpec, heightMeasureSpec, getMeasuredWidth(), getMeasuredHeight());\n\n // Did one of our children change size?\n int newHeight = getMeasuredHeight();\n if (newHeight != mFullHeight) {\n mFullHeight = newHeight;\n // If the user isn't actively poking us, let's rubberband to the content\n if (!mTracking && !mRubberbanding && !mTimeAnimator.isStarted()\n && mExpandedHeight > 0 && mExpandedHeight != mFullHeight) {\n mExpandedHeight = mFullHeight;\n }\n }\n heightMeasureSpec = MeasureSpec.makeMeasureSpec(\n (int) mExpandedHeight, MeasureSpec.AT_MOST); // MeasureSpec.getMode(heightMeasureSpec));\n setMeasuredDimension(widthMeasureSpec, heightMeasureSpec);\n }",
"public void setCurrentHeight(final int currentHeight);",
"public void setHeight(double height) {\n\t\t this.height = height;\n\t }",
"private void updateScrollBarSize() {\n int textHeight = getTextHeight();\n if (textHeight <= windowHeight) {\n Root.getChildren().remove(scrollBar);\n } else {\n if (!Root.getChildren().contains(scrollBar)) {\n Root.getChildren().add(scrollBar);\n }\n double range = textHeight - windowHeight;\n scrollBar.setMax(range);\n scrollBar.setVisibleAmount(10);\n }\n }",
"public void setHeight(Integer height)\n {\n getStateHelper().put(PropertyKeys.height, height);\n }",
"public boolean isSetImgHeight() {\n return EncodingUtils.testBit(__isset_bitfield, __IMGHEIGHT_ISSET_ID);\n }",
"public int getScrollNeededToBeFullScreen() {\n return getTransparentViewHeight();\n }",
"public void setSize(int width, int height){\n mHolder.setFixedSize(width, height);\n }",
"@Override\r\n\tpublic void setHeight(int height) {\n\t\tif(!(height>0))\r\n\t\t\tthrow new PreConditionError(\"Error PreCondition: height>0\");\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\tgetDelegate().setHeight(height);\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\t// pos: getHeight()==height\r\n\t\tif(!(getHeight()==height))\r\n\t\t\tthrow new PostConditionError(\"Error PostCondition: getHeight()==height\");\r\n\r\n\t}",
"short getFitHeight();",
"public final native void setHeight(double height) /*-{\n this.setHeight(height);\n }-*/;",
"public int getContentSize() {\n return getChildAt(0) != null ? getChildAt(0).getMeasuredHeight() : 0;\n }",
"private void setHeight(long value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n }",
"public void setMinHeight(int height) {\n setMinSize(minWidth, height);\n }",
"public void setItemHeight(int height) {\n if (height == mItemHeight) {\n return;\n }\n// mItemHeight = height;\n// mImageViewLayoutParams = new RelativeLayout.LayoutParams(\n// ViewGroup.LayoutParams.MATCH_PARENT, mItemHeight);\n notifyDataSetChanged();\n }",
"private void setWindowHeight(int height) {\n this.height = height;\n }"
] | [
"0.60337096",
"0.5952731",
"0.5727599",
"0.5646049",
"0.5594346",
"0.5564402",
"0.55568486",
"0.5552874",
"0.5536009",
"0.5518068",
"0.55095136",
"0.5502245",
"0.5502245",
"0.5449399",
"0.5449399",
"0.5449399",
"0.5383067",
"0.5372848",
"0.536658",
"0.5342083",
"0.5338444",
"0.5321575",
"0.5306468",
"0.5299732",
"0.5270722",
"0.5255721",
"0.52510697",
"0.52510697",
"0.52506536",
"0.5248217",
"0.5239125",
"0.5211654",
"0.520425",
"0.51726776",
"0.5162024",
"0.5155129",
"0.51479495",
"0.5139968",
"0.51325727",
"0.5127147",
"0.51216155",
"0.51167613",
"0.5114725",
"0.5103203",
"0.5103203",
"0.5100055",
"0.5099837",
"0.5091391",
"0.50870013",
"0.50847465",
"0.5081995",
"0.50775427",
"0.5071441",
"0.50701344",
"0.50585246",
"0.5056405",
"0.5053385",
"0.5041545",
"0.50388336",
"0.5037714",
"0.50292957",
"0.5029061",
"0.49524027",
"0.4952256",
"0.4946578",
"0.49261862",
"0.49256894",
"0.49164894",
"0.49094793",
"0.49094793",
"0.49020252",
"0.4897808",
"0.48972633",
"0.48953968",
"0.488179",
"0.488179",
"0.488179",
"0.48794082",
"0.48739964",
"0.48651335",
"0.48568517",
"0.48531282",
"0.48527363",
"0.48452967",
"0.4834175",
"0.4830953",
"0.48279914",
"0.4809653",
"0.4786849",
"0.47713807",
"0.4770978",
"0.47453123",
"0.4731701",
"0.47310534",
"0.47283068",
"0.47220448",
"0.47052705",
"0.470525",
"0.470308",
"0.47002652"
] | 0.59243375 | 2 |
Calculates the minimum width. | protected double getMinWidthImpl()
{
Insets ins = getInsetsAll();
double minW = _scroller.getMinWidth();
return minW + ins.getWidth();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public int getMinWidth();",
"public float getMinWidth() {\r\n return width.min;\r\n }",
"public double getMinWidth() { return getMinWidth(-1); }",
"public double getMinWidth(double aValue) { Double w = (Double)get(\"MinWidth\"); return w!=null? w : 0; }",
"public int getMinimumWidth() {\n return LEFT_MARGIN + (mMaxDurationLength + CONTEXT_PADDING) * mContextCount;\n }",
"public int getMinWidth() {\n checkWidget();\n return minWidth;\n }",
"private int minWidth()\n {\n return firstColumn + 1 + cursor.length();\n }",
"private int getMinimumWrapMarkWidth() {\n return metrics[Font.PLAIN].charWidth('W');\n }",
"public static int size_min() {\n return (8 / 8);\n }",
"public int getWidth() {\n return (int) Math.round(width);\n }",
"Integer getCurrentWidth();",
"private int measureWidth(int measureSpec) {\n\t\tint result = 0;\n\t\tint specMode = MeasureSpec.getMode(measureSpec);\n\t\tint specSize = MeasureSpec.getSize(measureSpec);\n\n\t\tif (specMode == MeasureSpec.EXACTLY) {\n\t\t\tresult = specSize;\n\t\t} else {\n\t\t\tresult = getSuggestedMinimumWidth();\n\t\t\tif (specMode == MeasureSpec.AT_MOST) {\n\t\t\t\tresult = Math.min(result, specSize);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"short getFitWidth();",
"public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }",
"public int getCurrentWidth();",
"@Override\n public int getMinimumWidth() {\n return patternDrawable.getMinimumWidth();\n }",
"public int getWidth() {\r\n\t\treturn defaultWidth;\r\n\t}",
"private int computePreferredMinimumSize(boolean width,\r\n\t\t\tint availablePerpendicular) {\r\n\t\tint minSize;\r\n\t\tint hint = availablePerpendicular == INFINITE ? SWT.DEFAULT\r\n\t\t\t\t: availablePerpendicular;\r\n\t\tif (width) {\r\n\t\t\tminSize = folder.getTabFolder().computeSize(SWT.DEFAULT, hint).x;\r\n\t\t} else {\r\n\t\t\tminSize = folder.getTabFolder().computeSize(hint, SWT.DEFAULT).y;\r\n\t\t}\r\n\t\treturn minSize;\r\n\t}",
"public int getWidthWeight()\n {\n int ret = 1;\n if (!isFixedWidth() && hasProperty(UIFormFieldProperty.WIDTH.value())) {\n ret = Integer.valueOf(getProperty(UIFormFieldProperty.WIDTH.value()));\n }\n return ret;\n }",
"Integer getDefaultWidth();",
"public static double getOrigWidth() {\n\t\treturn 0.7792094349861145;\n\t}",
"public double getBestWidth(double aValue) { return Math.max(getMinWidth(aValue), getPrefWidth(aValue)); }",
"public static double getOrigWidth() {\n\t\treturn 0.7380000352859497;\n\t}",
"long getWidth();",
"public Integer getBodyMinWidth() {\r\n return getAttributeAsInt(\"bodyMinWidth\");\r\n }",
"public int getExactWidth() {\n\t\tLog.d(TAG, \"measure width:\" + getMeasuredWidth() + \" , width:\"+ getWidth());\n\t\treturn getMeasuredWidth();\n\t}",
"public void setMinWidth(float minWidth) {\n this.minWidth = minWidth;\n }",
"public static double getOrigWidth() {\n\t\treturn 0.7400000095367432;\n\t}",
"public static double getOrigWidth() {\n\t\treturn 0.7400000095367432;\n\t}",
"public double getBestWidth() { return getBestWidth(-1); }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public void setMinWidth(final Integer value) {\n minWidth = value.intValue();\n }",
"int width();",
"double getWidth();",
"double getWidth();",
"int getWidth() {return width;}",
"public int width();",
"String getWidth();",
"String getWidth();",
"public int width()\n {\n return Math.max(top, bottom);\n }",
"public double getWidth() {\r\n \tif (this.x1 >= this.x3) {\r\n \t\tif (this.y1 >= this.y3) {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y1 - this.y3), 2));\r\n \t\t} else {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y3 - this.y1), 2));\r\n \t\t}\r\n \t} else if (this.x1 < this.x3) {\r\n \t\tif (this.y1 >= this.y3) {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y1 - this.y3), 2));\r\n \t\t} else {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y3 - this.y1), 2));\r\n \t\t}\r\n \t}\r\n \treturn(width);\r\n }",
"public int getDesiredWidth() {\n return mDesiredWidth;\n }",
"public static double getOrigWidth() {\n\t\treturn 0.7430000305175781;\n\t}",
"public double getWidth();",
"public double getWidth();",
"public final int getWidth() {\r\n return (int) size.x();\r\n }",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"private double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() { return _width<0? -_width : _width; }",
"public static double getOrigWidth() {\n\t\treturn 0.7450000047683716;\n\t}",
"public abstract int getExtraWidth(int specifiedWidth);",
"public final int getWidth(){\n return width_;\n }",
"abstract int calculateMinimumSize(int axis);",
"public int getWidth() {\n int parent_desired_width = this.getParent().getChildWidth(this);\n return Math.min(Math.max(parent_desired_width, this.getMinWidth()), this.getMaxWidth());\n }",
"public float getWidth();",
"public int getWidth() { return width; }",
"public int getWidth() { return width; }",
"double getOldWidth();",
"public int getWidth(){\n\t\treturn width;\n\t}",
"public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}",
"public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"@Override\r\n\tpublic int getGameInitialWidth() {\n\t\treturn 320;\r\n\t}",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n\t\treturn width;\r\n\t}",
"public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}",
"private double getSuggestedPrefWidth()\n {\n Insets ins = getPadding();\n double prefW = ins.getWidth();\n\n // Add width for line numbers\n if (_showLineNumbers) {\n Font font = _textArea.getFont();\n int lineCount = _textArea.getLineCount();\n double colCount = Math.ceil(Math.log10(lineCount) + .0001);\n double charWidth = Math.ceil(font.charAdvance('0'));\n double colsWidth = colCount * charWidth;\n prefW += colsWidth;\n }\n\n // Add Width for line markers\n if (_showLineMarkers) {\n prefW += LINE_MARKERS_WIDTH;\n }\n\n // Return\n return prefW;\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"final public double getWidth()\n\t{\n\t\treturn width;\n\t}",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"int getBoundsWidth();",
"public double getWidth() {\n\t\t\treturn width.get();\n\t\t}",
"public int getWidth() \n\t{\n\t\treturn width;\n\t}",
"public int getWidth() {\n return width_;\n }",
"public final int getWidth() {\r\n return width;\r\n }",
"public Integer getWidth() {\n\t\t\treturn width;\n\t\t}",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth()\n\t{\n\t\treturn width;\n\t}",
"public int getWidth()\n\t{\n\t\treturn width;\n\t}",
"public double getWidth()\r\n {\r\n return width;\r\n }"
] | [
"0.8266591",
"0.8078456",
"0.8052226",
"0.7756002",
"0.7744762",
"0.74982464",
"0.71927994",
"0.7055198",
"0.70265955",
"0.70054984",
"0.70011884",
"0.69310296",
"0.692195",
"0.68651164",
"0.68547505",
"0.6836965",
"0.68060327",
"0.68054914",
"0.6778337",
"0.67687047",
"0.6722402",
"0.6718654",
"0.6711245",
"0.66982275",
"0.66980636",
"0.66975594",
"0.6696392",
"0.6680071",
"0.66777813",
"0.66777813",
"0.6675394",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6673729",
"0.6662139",
"0.6643279",
"0.6626251",
"0.6626251",
"0.66241705",
"0.66147923",
"0.6596614",
"0.6596614",
"0.6583864",
"0.6578818",
"0.6578592",
"0.65697896",
"0.6569376",
"0.6569376",
"0.6567526",
"0.6564674",
"0.6564674",
"0.6564674",
"0.6557379",
"0.65442395",
"0.6538064",
"0.65369546",
"0.6531164",
"0.65209866",
"0.65131736",
"0.65010697",
"0.64969873",
"0.64969873",
"0.64969856",
"0.6492826",
"0.6486624",
"0.64770937",
"0.64748996",
"0.64694786",
"0.64694786",
"0.6467761",
"0.6460043",
"0.64565855",
"0.6440104",
"0.6438614",
"0.6436841",
"0.6436841",
"0.64359903",
"0.6434492",
"0.6433779",
"0.64335066",
"0.6431823",
"0.6427265",
"0.64232856",
"0.6414378",
"0.6414378",
"0.6414118"
] | 0.732249 | 6 |
Calculates the minimum height. | protected double getMinHeightImpl()
{
Insets ins = getInsetsAll();
double minH = _scroller.getMinHeight();
return minH + ins.getHeight();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getMinHeight() { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"abstract public int getMinHeight();",
"public int getMinHeight() {\n checkWidget();\n return minHeight;\n }",
"public double getMinHeight(double aValue) { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"public Integer getBodyMinHeight() {\r\n return getAttributeAsInt(\"bodyMinHeight\");\r\n }",
"public double getBaseHeight();",
"@Override\n public int getMinimumHeight() {\n return patternDrawable.getMinimumHeight();\n }",
"@VisibleForTesting\n public int getPeekHeightMin() {\n return this.peekHeightMin;\n }",
"public void setMinHeight(final Integer value) {\n minHeight = value.intValue();\n }",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"double getHeight();",
"long getHeight();",
"Integer getCurrentHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"int getHeight() {return height;}",
"public void setMinHeight(float minHeight) {\n this.minHeight = minHeight;\n }",
"Integer getDefaultHeight();",
"public int getLowestNodeHeight()\n {\n if (this.firstNode == null)\n {\n return this.maxHeight;\n }\n else if (this.tailLength == 0)\n {\n return this.firstNodeHeight;\n }\n else\n {\n return Math.min(this.firstNodeHeight, ((Integer)heightOfNodes\n .lastElement()).intValue());\n }\n }",
"public double getHeight();",
"public double getHeight();",
"public float getHeight();",
"public int getHeight() {\n\t\t\treturn 1;\n\t\t}",
"public int getHeight() { return height; }",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"public int getHeight() {return height;}",
"public double getHeight() { return _height<0? -_height : _height; }",
"public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"int getheight();",
"public int getHeight() {\n // Replace the following line with your solution.\n return height;\n }",
"public static double getOrigHeight() {\n\t\treturn 1.0;\n\t}",
"public static double getOrigHeight() {\n\t\treturn 1.0;\n\t}",
"public static double getOrigHeight() {\n\t\treturn 1.0;\n\t}",
"public static double getOrigHeight() {\n\t\treturn 1.0;\n\t}",
"VariableAmount getHeight();",
"int height();",
"int getHeight1();",
"private double getHeight() {\n\t\treturn height;\n\t}",
"public double getBestHeight() { return getBestHeight(-1); }",
"public int getCurrentHeight();",
"public int getStartHeight() {\r\n return startHeight;\r\n }",
"double getOldHeight();",
"public final int getHeight(){\n return height_;\n }",
"public int getMaxHeight() {\n return Integer.MAX_VALUE;\n }",
"public Dimension getMinimumSize() {\n Dimension size = super.getMinimumSize();\n size.height = super.getPreferredSize().height;\n return size;\n }",
"public int getHeight(){\n return height;\n }",
"public int getHeight(){\n \treturn height;\n }",
"public int height();",
"public int height();",
"public int height();",
"public int height();",
"public int getHeight() {\r\n\t\treturn height + yIndent;\r\n\t}",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public static double getOrigHeight() {\n\t\treturn 0.9979999661445618;\n\t}",
"public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public final int getHeight() {\r\n return height;\r\n }",
"private int measureHeight(int measureSpec) {\n\t\tint result = 0;\n\t\tint specMode = MeasureSpec.getMode(measureSpec);\n\t\tint specSize = MeasureSpec.getSize(measureSpec);\n\n\t\tif (specMode == MeasureSpec.EXACTLY) {\n\t\t\tresult = specSize;\n\t\t} else {\n\t\t\tresult = getSuggestedMinimumHeight();\n\t\t\tif (specMode == MeasureSpec.AT_MOST) {\n\t\t\t\tresult = Math.min(result, specSize);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public int getHeight() {\n return height;\n }",
"protected int getHeight()\n\t{\n\t\treturn 0;\n\t}",
"public int height() {\n\t\treturn 0;\n\t}",
"public int getHeight() {\n\t\treturn 0;\n\t}",
"public int getHeight()\n {\n return height;\n }",
"public int getHeight(){\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight()\n {\n return height;\n }",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"String getHeight();",
"String getHeight();",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }"
] | [
"0.80669796",
"0.7943534",
"0.7627466",
"0.7471546",
"0.6830426",
"0.6760083",
"0.6740606",
"0.673316",
"0.6729271",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.67103606",
"0.6705535",
"0.669556",
"0.66666913",
"0.6662897",
"0.6662897",
"0.6662897",
"0.6662897",
"0.6662897",
"0.6662897",
"0.665888",
"0.66540956",
"0.66238534",
"0.6623703",
"0.661059",
"0.661059",
"0.6597651",
"0.6566902",
"0.6557885",
"0.6555962",
"0.6531173",
"0.65304166",
"0.65211666",
"0.65102583",
"0.6501436",
"0.64966935",
"0.64966935",
"0.64966935",
"0.64966935",
"0.6449656",
"0.6449363",
"0.6446181",
"0.6445661",
"0.6444326",
"0.64395034",
"0.64319557",
"0.64214796",
"0.64105135",
"0.64094853",
"0.6385684",
"0.6379134",
"0.6360151",
"0.6358756",
"0.6358756",
"0.6358756",
"0.6358756",
"0.6356765",
"0.6352644",
"0.63465977",
"0.63460517",
"0.63445413",
"0.6340048",
"0.63392967",
"0.63360965",
"0.6334935",
"0.63301224",
"0.63285786",
"0.63227665",
"0.6315845",
"0.6315845",
"0.6315845",
"0.63145065",
"0.63053805",
"0.63053805",
"0.62981987",
"0.62981987",
"0.6297495",
"0.6297495",
"0.6297495",
"0.6297495",
"0.6297495",
"0.6297495",
"0.6297495",
"0.6297495",
"0.6297495",
"0.6297495"
] | 0.69858205 | 4 |
Calculates the preferred width. | protected double getPrefWidthImpl(double aH)
{
Insets ins = getInsetsAll();
double prefW = _scroller.getBestWidth(aH);
if (_showVBar == Boolean.TRUE)
prefW += getBarSize();
return prefW + ins.getWidth();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double getSuggestedPrefWidth()\n {\n Insets ins = getPadding();\n double prefW = ins.getWidth();\n\n // Add width for line numbers\n if (_showLineNumbers) {\n Font font = _textArea.getFont();\n int lineCount = _textArea.getLineCount();\n double colCount = Math.ceil(Math.log10(lineCount) + .0001);\n double charWidth = Math.ceil(font.charAdvance('0'));\n double colsWidth = colCount * charWidth;\n prefW += colsWidth;\n }\n\n // Add Width for line markers\n if (_showLineMarkers) {\n prefW += LINE_MARKERS_WIDTH;\n }\n\n // Return\n return prefW;\n }",
"public int getPreferredWidth() \n {\n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getAdvance( m_text ) + HMARGIN;\n }",
"abstract public int getMinWidth();",
"Integer getCurrentWidth();",
"public int getWidth() {\r\n\t\treturn defaultWidth;\r\n\t}",
"Integer getDefaultWidth();",
"protected double computePrefWidth(double aHeight) { return getWidth(); }",
"public int getCurrentWidth();",
"public int getDesiredWidth() {\n return mDesiredWidth;\n }",
"public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }",
"@Override\n\tpublic float getPrefWidth() {\n\t\treturn windowSize * 1.2f;\n\t}",
"public abstract int getDisplayWidth();",
"public int getWidth() {\n return (int) Math.round(width);\n }",
"short getFitWidth();",
"public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public double getPrefWidth() { return getPrefWidth(-1); }",
"public abstract int layoutWidth();",
"private void calculateWidthRatio() {\n\tif (texWidth != 0) {\n\t widthRatio = ((float) width) / texWidth;\n\t}\n }",
"public void setWidth(double w)\n { this.widthDefault = w; }",
"public int width();",
"public double getBestWidth() { return getBestWidth(-1); }",
"public final int getWidth(){\n return width_;\n }",
"public void updateWidth() {\n\t\t// Update width\n\t\tif (this.getFamily() != null) {\n\t\t\tthis.getFamily().updateFamilyWidth();\n\t\t\tthis.setWidth(this.getFamily().getWidth()\n\t\t\t\t\t+ this.getFamily().getNextWidth());\n\t\t} else {\n\t\t\tthis.setWidth(1);\n\t\t}\n\t}",
"long getWidth();",
"int getWidth() {return width;}",
"double getOldWidth();",
"public int getWidth() { return width; }",
"public int getWidth() { return width; }",
"public int getWidth() {\r\n if ( fontMetrics != null && lbl != null ) {\r\n return fontMetrics.stringWidth(lbl) + 12; \r\n } else {\r\n return 10;\r\n }\r\n }",
"@java.lang.Override\n public long getWidth() {\n return width_;\n }",
"@Override\r\n\tpublic int getGameInitialWidth() {\n\t\treturn 320;\r\n\t}",
"private float getCurrentDisplayedWidth() {\n if (getDrawable() != null)\n return getDrawable().getIntrinsicWidth() * matrixValues[Matrix.MSCALE_X];\n else\n return 0;\n }",
"String getWidth();",
"String getWidth();",
"private float ScreenWidth() {\n RelativeLayout linBoardGame = (RelativeLayout) ((Activity) context).findViewById(R.id.gridContainer);\n Resources r = linBoardGame.getResources();\n DisplayMetrics d = r.getDisplayMetrics();\n return d.widthPixels;\n }",
"public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}",
"public abstract double getBaseWidth();",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"public float getWidth() {\n\treturn widthRatio;\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"@Override\n int width();",
"int getRealWidth()\n\t{\n\t\treturn( realWidth );\n\t}",
"public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"@Override\r\n public int getWidth()\r\n {\r\n try\r\n {\r\n return pageSwitcher.getWidth();\r\n }\r\n catch(NullPointerException e)\r\n {\r\n return super.getWidth();\r\n }\r\n }",
"public int getWidth() {\n return width_;\n }",
"public int realWidth() {\n return super.getRealWidth();\n }",
"public int getWidth(){\n\t\treturn width;\n\t}",
"@Override\n\tpublic int getWidth() {\n\t\treturn windowWidth;\n\t}",
"int width();",
"@Override\n public int getWidth() {\n return width;\n }",
"@Override\n public int getWidth() {\n return width;\n }",
"public int getWidth(){\n \treturn width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n\treturn width;\n }",
"public abstract int getWidth();",
"public int getWidth() {\n\t\treturn width;\r\n\t}",
"public static int resWidth() {\n\t\t\n\t\treturn (int)resolution.getWidth();\n\t\t\n\t}",
"public int getWidthWeight()\n {\n int ret = 1;\n if (!isFixedWidth() && hasProperty(UIFormFieldProperty.WIDTH.value())) {\n ret = Integer.valueOf(getProperty(UIFormFieldProperty.WIDTH.value()));\n }\n return ret;\n }",
"public int getWidth() {\r\n return width;\r\n }",
"private double getWidth() {\n\t\treturn width;\n\t}",
"public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }"
] | [
"0.7439954",
"0.7275904",
"0.7240143",
"0.723472",
"0.7216797",
"0.7162926",
"0.713701",
"0.7136344",
"0.71170545",
"0.7054257",
"0.70461345",
"0.6960496",
"0.69553083",
"0.6938388",
"0.69198817",
"0.687862",
"0.6875283",
"0.6860597",
"0.6852056",
"0.6794514",
"0.67752314",
"0.67476624",
"0.67469454",
"0.67405903",
"0.6725817",
"0.67249674",
"0.67211294",
"0.67211294",
"0.67171454",
"0.67006785",
"0.6697267",
"0.6694937",
"0.66817206",
"0.66817206",
"0.66807896",
"0.6669734",
"0.6669486",
"0.6661371",
"0.6661371",
"0.6661371",
"0.66565615",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.66549736",
"0.6646782",
"0.6646782",
"0.6646275",
"0.66429466",
"0.663494",
"0.6633325",
"0.6630403",
"0.6626531",
"0.6624787",
"0.6615655",
"0.6613126",
"0.6608126",
"0.6608126",
"0.66070604",
"0.6606739",
"0.6606739",
"0.6606739",
"0.66057634",
"0.66046214",
"0.6602851",
"0.66020495",
"0.6597317",
"0.6592134",
"0.6588086",
"0.6586138",
"0.6578276",
"0.6578276",
"0.6576502",
"0.657558",
"0.657558",
"0.657558",
"0.657558",
"0.657558",
"0.657558",
"0.657558",
"0.657558",
"0.657558",
"0.657558",
"0.657558",
"0.657558",
"0.657558",
"0.6571185",
"0.6571185"
] | 0.0 | -1 |
Calculates the preferred height. | protected double getPrefHeightImpl(double aW)
{
Insets ins = getInsetsAll();
double prefH = _scroller.getBestHeight(aW);
if (_showHBar == Boolean.TRUE)
prefH += getBarSize();
return prefH + ins.getHeight();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void computeHeight() {\n\t\tif (getContext().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n\t\t\tint screenHeight = ScreenUtils.getScreenHeight(getContext());\n\t\t\tif (DisplayHelper.isTabModel(getContext())) {\n\t\t\t\tsetHeight(screenHeight * 3 / 4);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsetHeight(screenHeight * 4 / 5);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tint screenHeight = ScreenUtils.getScreenHeight(getContext());\n\t\t\tif (DisplayHelper.isTabModel(getContext())) {\n\t\t\t\tsetHeight(screenHeight * 2 / 3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsetHeight(screenHeight - 80);\n\t\t\t}\n\t\t}\n\t}",
"public int getPreferredHeight() \n { \n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getHeight() + VMARGIN;\n }",
"Integer getCurrentHeight();",
"Integer getDefaultHeight();",
"public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"public int getHeight() { return height; }",
"public int getCurrentHeight();",
"public final int getHeight(){\n return height_;\n }",
"public final int getHeight() {\r\n return height;\r\n }",
"public int getHeight() {return height;}",
"public abstract int layoutHeight();",
"public int getHeight() {\n return height;\n }",
"private double getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight() {\n return height_;\n }",
"@java.lang.Override\n public long getHeight() {\n return height_;\n }",
"int getheight();",
"public int getHeight() {\n // Replace the following line with your solution.\n return height;\n }",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"int getHeight() {return height;}",
"public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n return height_;\n }",
"public int getHeight() {\r\n\t\t\r\n\t\treturn height;\r\n\t}",
"@Override\n public int getHeight() {\n return height;\n }",
"@Override\n public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\r\n return Height;\r\n }",
"public int getHeight(){\n \treturn height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight()\n {\n return height;\n }",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight()\n {\n \treturn height;\n }",
"public double getBaseHeight();",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"long getHeight();",
"public int getHeight() \n\t{\n\t\treturn height;\n\t}",
"public int getHeight(){\n return height;\n }",
"public double getHeight();",
"public double getHeight();",
"public int getHeight() {\n\t\t\treturn height;\n\t\t}",
"@Override\n\tpublic int getHeight() {\n\t\treturn this.height;\n\t}",
"public float getHeight();",
"public float getHeight() {\n\treturn heightRatio;\n }",
"public final int getHeight() {\r\n return config.height;\r\n }",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"public int getDesiredHeight() {\n return mDesiredHeight;\n }",
"public int getHeight()\n {\n return height;\n }",
"public abstract int getHeight();",
"public abstract int getHeight();",
"double getHeight();",
"public int getHeight() {\n\t\t\treturn 1;\n\t\t}",
"@Override\n public int getHeight() {\n return this.height;\n }",
"public int getHeight()\n {return height;}",
"public int getHeight() {\n\treturn height;\n}",
"public int getHeight()\r\n\t{\r\n\t\treturn HEIGHT;\r\n\t}",
"public abstract int getDisplayHeight();"
] | [
"0.7670484",
"0.7471318",
"0.73919463",
"0.7384209",
"0.7360925",
"0.73173153",
"0.7302053",
"0.72996265",
"0.7249177",
"0.72485816",
"0.7244256",
"0.72372144",
"0.7234407",
"0.72257",
"0.7218433",
"0.7218433",
"0.7218433",
"0.7218433",
"0.7218433",
"0.7218433",
"0.72162145",
"0.72142345",
"0.72121656",
"0.7206929",
"0.7203373",
"0.7203373",
"0.71981376",
"0.7189896",
"0.71819925",
"0.7173119",
"0.71724075",
"0.71724075",
"0.7168185",
"0.7168185",
"0.7168185",
"0.7168185",
"0.7168185",
"0.7168185",
"0.7168185",
"0.7168185",
"0.7168185",
"0.7168185",
"0.7168185",
"0.71653694",
"0.716274",
"0.7146387",
"0.7146387",
"0.7146387",
"0.7137199",
"0.7135946",
"0.7135946",
"0.7135946",
"0.7135946",
"0.7135946",
"0.7135946",
"0.7135946",
"0.7135946",
"0.7135946",
"0.7135946",
"0.7135946",
"0.7132238",
"0.7126501",
"0.7116338",
"0.7116338",
"0.7114881",
"0.71144485",
"0.7107664",
"0.7099556",
"0.7099556",
"0.7099384",
"0.70984715",
"0.7097258",
"0.7090792",
"0.7089969",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7088192",
"0.7086051",
"0.70838535",
"0.7069682",
"0.7069682",
"0.7067201",
"0.70497763",
"0.7046082",
"0.70288646",
"0.7020005",
"0.7015202",
"0.70116657"
] | 0.0 | -1 |
Override to layout children. | protected void layoutImpl()
{
// Get area bounds
Insets ins = getInsetsAll();
double areaX = ins.left;
double areaY = ins.top;
double areaW = getWidth() - ins.getWidth();
double areaH = getHeight() - ins.getHeight();
// Account for ScrollBars
boolean isVBarShowing = isVBarShowing();
boolean isHBarShowing = isHBarShowing();
int barSize = getBarSize();
if (isVBarShowing)
areaW -= barSize;
if (isHBarShowing)
areaH -= barSize;
// Set Scroller bounds
_scroller.setBounds(areaX, areaY, areaW, areaH);
// Check whether either ScrollBar.Showing needs updating
if (updateScrollBarsShowing()) {
if (!_recursingLayout) {
_recursingLayout = true;
layoutImpl();
_recursingLayout = false;
return;
}
else {
//updateScrollBarsShowing();
System.err.println("ScrollView: Confused about whether we get eliminate scrollbars");
}
}
// If horizontal scrollbar showing, set bounds
if (isHBarShowing) {
ScrollBar hbar = getHBar();
hbar.setBounds(areaX, areaY + areaH, areaW, barSize);
}
// If vertical scrollbar showing, set bounds
if (isVBarShowing) {
ScrollBar vbar = getVBar();
vbar.setBounds(areaX + areaW, areaY, barSize, areaH);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onLayout(boolean b, int left, int top, int right, int bottom) {\n int childCount = this.getChildCount();\n for(int i = 0; i < childCount; i++) {\n View child = this.getChildAt(i);\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n child.layout(lp.x, lp.y, lp.x + child.getMeasuredWidth(), lp.y + child.getMeasuredHeight());\n }\n\n }",
"@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n final int count = getChildCount();\n int parentWidth = getMeasuredWidth();\n\n //get the available size of child view\n int childLeft = this.getPaddingLeft();\n int childTop = this.getPaddingTop();\n\n //walk through each child, and arrange it from left to right\n for (int i = 0; i < count; i++) {\n View child = getChildAt(i);\n if (child.getVisibility() != GONE) {\n LayoutUtils.layoutChild(child, childLeft, childTop);\n childTop += child.getMeasuredHeight();\n }\n }\n }",
"@Override\n public void layout() {\n // TODO: not implemented\n }",
"@Override\r\n protected void layoutChildren () {\r\n /* Custom children positioning */\r\n super.layoutChildren();\r\n\r\n if (noDataIcon.isVisible()) {\r\n noDataIcon.relocate((getWidth() - noDataIcon.getLayoutBounds().getWidth()) / 2,\r\n (getHeight() - noDataIcon.getLayoutBounds().getHeight()) / 2);\r\n }\r\n\r\n if (innerContainer != null) {\r\n innerContainer.relocate((getWidth() - innerContainer.getLayoutBounds().getWidth()) / 2,\r\n (getHeight() - innerContainer.getLayoutBounds().getHeight()) / 2);\r\n }\r\n\r\n if (currentIcon != null) {\r\n currentIcon.relocate(\r\n suffixLabel.getBoundsInParent().getMinX() + innerContainer.getBoundsInParent().getMinX(),\r\n suffixLabel.getBoundsInParent().getMinY() + innerContainer.getBoundsInParent().getMinY()\r\n - currentIcon.getLayoutBounds().getHeight() + 2);\r\n }\r\n\r\n }",
"@Override\n\tpublic void resizeToChildren () {\n\t}",
"@Override\r\n\tpublic void layoutContainer(Container arg0) {\n\t\t\r\n\t}",
"@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n Log.v(TAG, \"onLayout l = \" + l + \"; t = \" + t + \"; r = \" + r + \"; b = \" + b);\n int count = getChildCount();\n int x = l;\n int y = t;\n for(int i = 0; i < count; i++){\n View child = (View)getChildAt(i);\n child.layout(x, y, x + r, y + b);\n x = x + r;\n }\n }",
"@Override\r\n\tprotected void onLayout(boolean changed, int left, int top, int right,\r\n\t\t\tint bottom) {\n\t\tfor (int i = 0; i < getChildCount(); i++) {\r\n\t\t\tfinal View child = getChildAt(i);\r\n\t\t\tif(child.getVisibility() != GONE) {\r\n\t\t\t\tfinal LayoutParams params = (LayoutParams) child.getLayoutParams();\r\n\t\t\t\t\r\n\t\t\t\tfinal int width = child.getMeasuredWidth();\r\n\t\t\t\tfinal int height = child.getMeasuredHeight();\r\n\t\t\t\t\r\n\t\t\t\tint childleft = 0;\r\n\t\t\t\tint childtop = getPaddingTop()+params.topMargin;\r\n\t\t\t\t\r\n\t\t\t\tchild.layout(childleft, childtop, childleft+width, childtop+height);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void layoutChildren() {\n super.layoutChildren();\n if (this.mFloatView != null) {\n if (this.mFloatView.isLayoutRequested() && !this.mFloatViewOnMeasured) {\n measureFloatView();\n }\n this.mFloatView.layout(0, 0, this.mFloatView.getMeasuredWidth(), this.mFloatView.getMeasuredHeight());\n this.mFloatViewOnMeasured = false;\n }\n }",
"public abstract void doLayout();",
"public final void markChildrenLayoutNecessary() {\n setStatusBits(CHILDREN_LAYOUT_NECESSARY_BIT);\n }",
"public void layoutContainer(Container parent);",
"@Override\n protected void layoutChildren() {\n super.layoutChildren();\n label.setVisible(label.prefWidth(-1) < getWidth() - getPadding().getLeft() - getPadding().getRight());\n }",
"protected void prepareChildViews() {\n\n }",
"public void setupLayout() {\n // left empty for subclass to override\n }",
"@Override\n public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {\n try{\n super.onLayoutChildren(recycler, state);\n }catch (IndexOutOfBoundsException e){\n }\n\n }",
"@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tint childTop = 0;\n\t\tint childLeft = 0;\n\t\tint childWidth = 0;\n\t\tint childHeight = 0;\n\t\tint count = getChildCount();\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tView child = this.getChildAt(i);\n\t\t\tif (child.getVisibility() == View.GONE)\n\t\t\t\tcontinue;\n\t\t\tif (child instanceof RankImageView) {\n\t\t\t\tchildTop = 0;\n\t\t\t\tchildLeft = 0;\n\t\t\t\tchildWidth = (int) (original_width * scale);\n\t\t\t\tchildHeight = (int) (original_height * scale);\n\t\t\t} else if (child instanceof TextView) {\n\t\t\t\tTextView tv = (TextView) child;\n\t\t\t\tchildTop = (int) (original_height * scale + name_spacing);\n\t\t\t\tchildLeft = (int) bp.getStrokeWidth();\n\t\t\t\tchildWidth = (int) (original_width * scale - 2 * bp.getStrokeWidth());\n\t\t\t\tchildHeight = (int) this.getFontHeight(tv.getPaint());\n\t\t\t} else {\n\t\t\t\tchildTop = 0;\n\t\t\t\tchildLeft = 0;\n\t\t\t\tchildWidth = 0;\n\t\t\t\tchildHeight = 0;\n\t\t\t}\n\t\t\tchild.measure(childWidth, childHeight);\n\t\t\tchild.layout(childLeft, childTop, childLeft + childWidth, childTop\n\t\t\t\t\t+ childHeight);\n\t\t}\n\t}",
"@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n }",
"private void setupChildFragmentLayout() {\n VerticalGridView containerList = mRowsFragment.getVerticalGridView();\n setVerticalGridViewLayout(containerList);\n }",
"@JsOverlay\n public final void layout() {\n Dagre.get().layout(this);\n }",
"public void notifyChildrenOfSizeChange() {\n Util.runDescendentsLayout(this);\n }",
"@Override\n protected void refreshChildren() {\n }",
"@Override\n public void layoutContainer(Container parent) {\n for(int i = 0; i< getComponentCount(); i++) {\n getComponent(i).setBounds(0, 0, getWidth(), getHeight());\n }\n }",
"public void setChildViewToGroup() {\n int childViewCount = mDataList.size();\n mParent.removeAllViews();\n for(int i = 0; i < childViewCount; i++) {\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(mPopItemWidth, mPopItemHeight);\n ViewGroup v = (ViewGroup) mInflater.inflate(mResource, mParent, false);\n if (i == 0) {\n layoutParams.setMargins(0, mPopViewTopMargin, 0, 0);\n }\n else if (i == childViewCount - 1) {\n layoutParams.setMargins(0, 0, 0, mPopViewBottomMargin);\n }\n else {\n layoutParams.setMargins(0, 0, 0, 0);\n }\n v.setLayoutParams(layoutParams);\n v.setVisibility(INVISIBLE);\n mParent.addView(v);\n }\n }",
"protected abstract void iniciarLayout();",
"@Override \r\n\tprotected void onLayout(boolean changed, int left, int top, int right, int bottom)\r\n\t{\n\t\tif(changed)\r\n\t\t{\r\n\t\t\tthis.calculateChildViewLayoutParams();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the layout position for the menu and content\r\n\t\tthis.m_listView.layout(left, top, right, bottom);\r\n\t\tthis.m_playerInfo.layout(left, (top - this.m_currentInfoOffset), right, (bottom - this.m_currentInfoOffset));\r\n\t\tthis.m_playerControls.layout(left, (top - this.m_currentControlsOffset), right, (bottom - this.m_currentControlsOffset));\r\n\t\tthis.m_banner.layout(left, top, right, bottom);\r\n\t\t\r\n\t}",
"@Override\r\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tLog.v(\"MyView01>layout\",\"f-1\");\r\n\t\t\tsuper.layout(l, t, r, b);\r\n\t\t\tLog.v(\"MyView01>layout\",\"f-2\");\r\n\t\t}",
"protected void layout(int width, int height) {\n super.layout(Integer.MAX_VALUE - 1, height);\n }",
"public void onFinishInflate() {\n super.onFinishInflate();\n bringChildToFront(this.menuButton);\n this.buttonsCount = getChildCount();\n createLabels();\n }",
"public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }",
"private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }",
"@Override\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tsuper.layout(l, t, r, b);\n\t\t\tLog.e(\"FYF\", getId() + \" ImageView layout\");\n\t\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 }",
"@Override\n protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n measureChildren(widthMeasureSpec, heightMeasureSpec);\n int maxWidth = MeasureSpec.getSize(widthMeasureSpec);\n int maxHeight = MeasureSpec.getSize(heightMeasureSpec);\n int viewListSize = viewList.size();\n for (int i = 0; i < viewListSize; i++) {\n View child = this.getChildAt(i);\n //this.measureChild(child, widthMeasureSpec, heightMeasureSpec);\n child.measure( MeasureSpec.makeMeasureSpec(getWidth()/2 + 100,\n MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(getHeight(),\n MeasureSpec.UNSPECIFIED));\n LayoutParams lParams = (LayoutParams) child.getLayoutParams();\n lParams.left = 250;\n lParams.right = maxWidth - 250;\n }\n setMeasuredDimension(maxWidth, maxHeight);\n viewGroupWidth = getMeasuredWidth();\n viewGroupHeight = getMeasuredHeight();\n }",
"@Override\n protected void onFinishInflate() {\n mRootView = getChildAt(0);\n super.onFinishInflate();\n }",
"protected void childrenChanged() {\n\n }",
"protected void directUpdateLayout() {\n updateLayout();\n }",
"private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}",
"@Override\n public Collection<WrapperAwareElement> getChildren()\n {\n return null;\n }",
"public void onLayout(boolean changed, int l, int t, int r, int b) {\n int childLeft = 0;\n int count = getChildCount();\n if (this.mSelectMaxItem <= 0) {\n for (int i = 0; i < count; i++) {\n View child = getChildAt(i);\n int childWidth = child.getMeasuredWidth();\n int childHeight = child.getMeasuredHeight();\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n int childLeft2 = childLeft + lp.leftMargin;\n child.layout(childLeft2, 0, childWidth + childLeft2, childHeight + 0);\n childLeft = childLeft2 + lp.rightMargin + childWidth;\n }\n this.mMaxWid = childLeft;\n } else {\n float pace = (1.0f / ((float) this.mSelectMaxItem)) * ((float) (r - l));\n for (int i2 = 0; i2 < count; i2++) {\n View child2 = getChildAt(i2);\n int childHeight2 = child2.getMeasuredHeight();\n LayoutParams lp2 = (LayoutParams) child2.getLayoutParams();\n child2.layout(((int) (((float) i2) * pace)) + 0 + lp2.leftMargin, 0, (((int) (((float) (i2 + 1)) * pace)) + 0) - lp2.rightMargin, childHeight2 + 0);\n }\n this.mMaxWid = Math.max(getWidth(), (int) (((float) count) * pace));\n }\n this.maxScrollX = this.mMaxWid - getWidth();\n this.maxScrollX = this.maxScrollX > 0 ? this.maxScrollX : 0;\n calculationRect(true);\n }",
"private void layoutControls()\n {\n getChildren().addAll(\n new Label(\"Abfahrt\"),\n departureTimeField,\n new Label(\"Bahnhof\"),\n destinationField\n );\n }",
"void configureChildView(int childPosition, ViewHolder viewHolder) {}",
"@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b)\n\t{\n\n\t\tDisplayMetrics displayMetrics = getResources().getDisplayMetrics();\n\t\tint screenWidth = displayMetrics.widthPixels;\n\t\t//int screenHeight = displayMetrics.heightPixels;\n\t\tint childTop = 30;\n\t\tint childLeft = 20;\n\t\tint cameraPicWidth = screenWidth / 5;\n\t\tint cameraPicHeight = 2 * cameraPicWidth;\n\t\tint space = 20;\n\t\tint column = 0;\n\n\t\tfinal int count = getChildCount();\n\t\tfor (int i = 0; i < count; i++)\n\t\t{\n\t\t\tfinal View child = getChildAt(i);\n\t\t\tif (child.getVisibility() != View.GONE)\n\t\t\t{\n\t\t\t\tchild.setVisibility(View.VISIBLE);\n\t\t\t\t//child.measure(r - l, b - t);\n\t\t\t\tchild.layout(childLeft + space, childTop, childLeft + cameraPicWidth + space, childTop + cameraPicHeight + space);\n\t\t\t\tcolumn++;\n\t\t\t\tif (childLeft < screenWidth - 2 * (space + cameraPicWidth))\n\t\t\t\t{\n\t\t\t\t\tchildLeft += cameraPicWidth + space;\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tcolumn = 0;\n\t\t\t\t\tchildLeft = 20;\n\t\t\t\t\tchildTop += cameraPicHeight;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void onFinishLayout(View lay) {\n\t}",
"@Override\n\t\tpublic void layout (final int l, final int t, final int r, final int b) {\n\t\t}",
"@Override\n\tpublic void addView(View child, int idx) {\n\t\taddAndMeasureChild(child, idx);\n\t}",
"@Override\r\n\t\tprotected void onLayout(boolean changed, int left, int top, int right,\r\n\t\t\t\tint bottom) {\n\t\t\tLog.v(\"MyView01>onLayout\",\"f-1\");\r\n\t\t\tsuper.onLayout(changed, left, top, right, bottom);\r\n\t\t\tLog.v(\"MyView01>onLayout\",\"f-2\");\r\n\t\t}",
"public @Override int getViewCount() {\n return getChildren().getChildCount();\n }",
"protected boolean isChildrenResizeDisabled() {\n return false; // by default must resize children upon setSize() on view\n }",
"@Override\n protected void onLayout(boolean changed,\n int left,\n int top,\n int right,\n int bottom) {\n // Layout children.\n super.onLayout(changed, left, top, right, bottom);\n\n // Set translation Y of the movable child view.\n if (!isInEditMode() &&\n mElasticScrollView instanceof NestedScrollingChild &&\n changed && !isOpened()) {\n ViewCompat.setTranslationY(mElasticScrollView,\n mElasticScrollView.getMeasuredHeight());\n }\n // TODO: Handle scroll-view header and footer.\n\n // Set the cover boundary.\n if (changed) {\n mBgFadeRect.set(getLeft(),\n getTop(),\n getRight(),\n getBottom());\n }\n }",
"@Override\n public boolean onLayoutChild(CoordinatorLayout parent,\n FooterBarLayout child,\n int layoutDirection) {\n Log.d(\"=====\",child.getTop()+\"\");\n// if(mChildInitialOffset==0) {\n// parent.onLayoutChild(child, layoutDirection);\n// }\n //Gather initial state\n mChildInitialOffset = child.getTop();\n\n //Let the framework lay out the view\n return false;\n }",
"@Override\n protected int[] getChildViewIds() {\n return new int[] {\n R.id.feed_item_root,\n R.id.feed_item_avatar_layout,\n R.id.feed_item_avatar,\n R.id.feed_item_nickname,\n R.id.feed_item_createtime,\n R.id.feed_expand_text_view,\n R.id.feed_item_desc_image_layout,\n R.id.feed_item_desc_image,\n R.id.feed_support_count,\n R.id.feed_post_layout,\n R.id.feed_post_container_layout,\n R.id.feed_support_layout,\n R.id.feed_item_image_grid,\n R.id.feed_item_share,\n R.id.feed_item_support,\n R.id.feed_item_post,\n R.id.feed_item_support_text,\n R.id.feed_item_default_delete_button,\n R.id.feed_item_delete_layout,\n R.id.feed_prize_layout,\n R.id.feed_prize_text,\n R.id.feed_badge_layout,\n R.id.feed_prize_and_support_and_post_layout,\n\n R.id.item_divider,\n\n //empty\n R.id.list_empty_layout,\n R.id.list_empty_text\n };\n }",
"@Override\r\n public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {\r\n\r\n // Nothing to be laid out, just clear attached views and return.\r\n if(state.getItemCount() == 0){\r\n detachAndScrapAttachedViews(recycler);\r\n return;\r\n }\r\n // For the pre-layout, we need to layout current attached views and appearing views.\r\n if(state.isPreLayout()){\r\n // If nothing is attached, just return.\r\n if(getChildCount() == 0)\r\n return;\r\n // For the current attached views, find the views removed and update\r\n // removedTopAndBoundPositionCount and firstChangedPosition.\r\n final int childCount = getChildCount();\r\n for(int i = 0; i < childCount; i++){\r\n View child = getChildAt(i);\r\n RecyclerView.LayoutParams lp = (RecyclerView.LayoutParams) child.getLayoutParams();\r\n if(lp.isItemRemoved()){\r\n removedTopAndBoundPositionCount++;\r\n if(firstChangedPosition == -1 ||\r\n firstAttachedItemPosition + i < firstChangedPosition){\r\n firstChangedPosition = firstAttachedItemPosition + i;\r\n }\r\n }\r\n }\r\n // If removedTopAndBoundPositionCount = 0, items changes out of the bottom border,\r\n // So we have nothing to do during the pre-layout.\r\n // Otherwise we need to lay out current attached views and appearing views.\r\n if(removedTopAndBoundPositionCount != 0){\r\n layoutAttachedAndAppearingViews(recycler, state);\r\n }\r\n // Reset isBeforePreLayout after the pre-layout ends.\r\n isBeforePreLayout = false;\r\n return;\r\n }\r\n\r\n // The real layout.\r\n // First or empty layout, initialize layout parameters and fill.\r\n if(getChildCount() == 0){\r\n initializeLayoutParameters();\r\n fillGrid(recycler, state, true);\r\n return;\r\n }\r\n // If it is triggered with notifyDataSetChanged(),\r\n // we just clear attached views and layout from the beginning.\r\n if(isNotifyDataSetChanged){\r\n detachAndScrapAttachedViews(recycler);\r\n initializeLayoutParameters();\r\n fillGrid(recycler, state, true);\r\n isNotifyDataSetChanged = false;\r\n return;\r\n }\r\n\r\n // Adapter data set changes.\r\n if(firstChangedPosition == -1){ // No item is removed\r\n // reset parameters.\r\n mCurrentPosition = firstAttachedItemPosition;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n topBorder = getPaddingTop();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n // Fill the area.\r\n detachAndScrapAttachedViews(recycler);\r\n fillGrid(recycler, state, true);\r\n\r\n // Reset isBeforePreLayout.\r\n isBeforePreLayout = true;\r\n// firstChangedPosition = -1;\r\n// removedTopAndBoundPositionCount = 0;\r\n return;\r\n }\r\n // There are removed items.\r\n // Clear the cache from the firstChangedPosition\r\n for(int i = firstChangedPosition; i < state.getItemCount(); i++){\r\n if(itemLayoutWidthCache.get(i, 0) != 0){\r\n itemLayoutWidthCache.delete(i);\r\n itemLayoutHeightCache.delete(i);\r\n itemOccupiedStartSpan.delete(i);\r\n }\r\n if(fakeItemLayoutWidthCache.get(i, 0) != 0){\r\n itemLayoutWidthCache.put(i, fakeItemLayoutWidthCache.get(i));\r\n itemLayoutHeightCache.put(i, fakeItemLayoutHeightCache.get(i));\r\n itemOccupiedStartSpan.put(i, fakeItemOccupiedStartSpan.get(i));\r\n }\r\n }\r\n fakeItemLayoutWidthCache.clear();\r\n fakeItemLayoutHeightCache.clear();\r\n fakeItemOccupiedStartSpan.clear();\r\n\r\n detachAndScrapAttachedViews(recycler);\r\n\r\n // There are removed items out of the upper bound.\r\n if(firstChangedPosition < firstAttachedItemPosition) {\r\n mCurrentPosition = firstAttachedItemPosition;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n topBorder = getPaddingTop();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n fillGrid(recycler, state, true);\r\n // If it cannot fill until the bottomBorder, call scrollBy() to fill.\r\n if(spanBottomMax < bottomBorder){\r\n scrollBy(spanBottomMax - bottomBorder, recycler, state);\r\n }\r\n // Finally, we layout disappearing views.\r\n layoutDisappearingViews(recycler, state);\r\n }else{ // There are no removed items out of the upper bound.\r\n // Just set layout parameters and fill the visible area.\r\n mCurrentPosition = firstAttachedItemPosition;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n topBorder = getPaddingTop();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n fillGrid(recycler, state, true);\r\n // The number of items is too small, call scrollBy() to fill.\r\n if(spanBottomMax - bottomBorder < 0){\r\n scrollBy(spanBottomMax - bottomBorder, recycler, state);\r\n }\r\n }\r\n // After the real layout, we need to clear some parameters.\r\n isBeforePreLayout = true;\r\n firstChangedPosition = -1;\r\n removedTopAndBoundPositionCount = 0;\r\n disappearingViewCache.clear();\r\n }",
"public void layoutContainer(Container parent) {\n/* 110 */ synchronized (parent.getTreeLock()) {\n/* 111 */ Insets ins = parent.getInsets();\n/* */ \n/* 113 */ Rectangle bounds = parent.getBounds();\n/* 114 */ int width = bounds.width - ins.left - ins.right;\n/* 115 */ int height = bounds.height - ins.top - ins.bottom;\n/* */ \n/* 117 */ Component[] comps = parent.getComponents();\n/* */ \n/* 119 */ for (int i = 0; i < comps.length; i++) {\n/* 120 */ Component c = comps[i];\n/* 121 */ if (comps[i].isVisible() || !this.ignoreInvisible)\n/* */ {\n/* */ \n/* 124 */ c.setBounds(ins.left, ins.top, width, height);\n/* */ }\n/* */ } \n/* */ } \n/* */ }",
"@Override\n\tpublic ViewGroup GetDynamicLayout() {\n\t\treturn null;\n\t}",
"@Override\r\n\tprotected void onLayout(boolean paramBoolean, int paramInt1, int paramInt2,\r\n\t\t\tint paramInt3, int paramInt4) {\n\t\tint j = paramInt3 - paramInt1;\r\n\t\tint k = paramInt4 - paramInt2;\r\n\t\tif (this.navBar != null) {\r\n\t\t\tint i = this.navBar.getMeasuredHeight();\r\n\t\t\tthis.navBar.layout(0, 0, j, i);\r\n\t\t\tthis.mainContent.layout(0, i, j, k);\r\n\t\t}\r\n\t\tif (this.spinnerView != null)\r\n\t\t\tthis.spinnerView.layout(0, 0, j, k);\r\n\t}",
"private Container layoutContainer(Container panel, XmlNode node,\n Vector xmlChildren) {\n panel.removeAll();\n String panelId = node.getAttribute(ATTR_ID);\n String layout = node.getAttribute(ATTR_LAYOUT, \"\");\n Vector children = new Vector();\n Vector nodes = new Vector();\n int hspace = node.getAttribute(ATTR_HSPACE, 0);\n int vspace = node.getAttribute(ATTR_VSPACE, 0);\n int rows = node.getAttribute(ATTR_ROWS, 0);\n int cols = node.getAttribute(ATTR_COLS, 1);\n String defaultComp = node.getAttribute(ATTR_DEFAULT, \"nocomp\");\n JTabbedPane tabs = null;\n\n if (layout.equals(VALUE_LAYOUTBORDER)) {\n panel.setLayout(new BorderLayout());\n } else if (layout.equals(VALUE_LAYOUTCARD)) {\n panel.setLayout(new CardLayout());\n } else if (layout.equals(VALUE_LAYOUTTAB)) {\n tabs = new JTabbedPane();\n panel.setLayout(new BorderLayout());\n panel.add(\"Center\", tabs);\n } else if (layout.equals(VALUE_LAYOUTFLOW)) {\n panel.setLayout(new FlowLayout(FlowLayout.LEFT, hspace, vspace));\n } else if (layout.equals(VALUE_LAYOUTGRID)) {\n panel.setLayout(new GridLayout(rows, cols, hspace, vspace));\n }\n for (int i = 0; i < xmlChildren.size(); i++) {\n XmlNode childXmlNode =\n getReffedNode((XmlNode) xmlChildren.elementAt(i));\n Component childComponent = xmlToUi(childXmlNode);\n if (childComponent == null) {\n continue;\n }\n componentToParent.put(childComponent, panel);\n children.addElement(childComponent);\n nodes.addElement(childXmlNode);\n if ( !childComponent.isVisible()) {\n continue;\n }\n if (layout.equals(VALUE_LAYOUTBORDER)) {\n String place = childXmlNode.getAttribute(ATTR_PLACE,\n \"Center\");\n panel.add(place, childComponent);\n } else if (layout.equals(VALUE_LAYOUTTAB)) {\n tabs.add(childXmlNode.getAttribute(ATTR_LABEL),\n childComponent);\n } else if (layout.equals(VALUE_LAYOUTCARD)) {\n String childId = childXmlNode.getAttribute(ATTR_ID);\n panel.add(childId, childComponent);\n if (defaultComp.equals(childId)) {\n ((CardLayout) panel.getLayout()).show(panel, childId);\n }\n } else if (layout.equals(VALUE_LAYOUTINSET)) {\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace,\n hspace);\n GuiUtils.doLayout(panel, new Component[] { childComponent },\n 1, GuiUtils.DS_Y, GuiUtils.DS_Y);\n\n break;\n } else if (layout.equals(VALUE_LAYOUTWRAP)) {\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace,\n hspace);\n GuiUtils.doLayout(panel, new Component[] { childComponent },\n 1, GuiUtils.DS_N, GuiUtils.DS_N);\n\n break;\n } else if ( !layout.equals(VALUE_LAYOUTGRIDBAG)) {\n panel.add(childComponent);\n }\n }\n if (layout.equals(VALUE_LAYOUTGRIDBAG)) {\n double[] cw =\n GuiUtils.parseDoubles(node.getAttribute(ATTR_COLWIDTHS));\n double[] rh =\n GuiUtils.parseDoubles(node.getAttribute(ATTR_ROWHEIGHTS));\n if (cw == null) {\n cw = GuiUtils.DS_Y;\n }\n if (rh == null) {\n rh = GuiUtils.DS_N;\n }\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace, hspace);\n GuiUtils.doLayout(panel, GuiUtils.getCompArray(children),\n node.getAttribute(ATTR_COLS, 1), cw, rh);\n }\n\n containerToNodeList.put(panel, nodes);\n\n return panel;\n }",
"@Override protected void layoutPlotChildren() {\n\n for (int seriesIndex=0; seriesIndex < getData().size(); seriesIndex++) {\n Series<X,Y> series = getData().get(seriesIndex);\n Iterator<Data<X,Y>> iter = getDisplayedDataIterator(series);\n\n //Iterate through list of tasks\n while(iter.hasNext()) {\n Data<X,Y> item = iter.next();\n double x = getXAxis().getDisplayPosition(item.getXValue());\n double y = getYAxis().getDisplayPosition(item.getYValue());\n\n if (Double.isNaN(x) || Double.isNaN(y)) { //Check for null\n continue;\n }\n\n Node block = item.getNode();\n Rectangle rectangle;\n //Create stackpane for each rectangle\n if (block != null) {\n if (block instanceof StackPane) {\n StackPane region = (StackPane)item.getNode();\n if (region.getShape() == null) {\n rectangle = new Rectangle( getLength( item.getExtraValue()), getBlockHeight());\n } else if (region.getShape() instanceof Rectangle) {\n rectangle = (Rectangle)region.getShape();\n } else {\n return;\n }\n\n //Set rectangle width and height and positioning\n rectangle.setWidth( getLength( item.getExtraValue()) * ((getXAxis() instanceof NumberAxis) ? Math.abs(((NumberAxis)getXAxis()).getScale()) : 1));\n rectangle.setHeight(getBlockHeight() * ((getYAxis() instanceof NumberAxis) ? Math.abs(((NumberAxis)getYAxis()).getScale()) : 1));\n y -= getBlockHeight() / 2.0;\n\n //Get positions of blocks\n double paddingHeight = getBlockHeight() * ((getYAxis() instanceof NumberAxis) ? Math.abs(((NumberAxis)getYAxis()).getScale()) : 1);\n double paddingWidth = getLength( item.getExtraValue()) * ((getXAxis() instanceof NumberAxis) ? Math.abs(((NumberAxis)getXAxis()).getScale()) : 1);\n\n //Create regions with create rectangles\n region.setShape(null);\n region.setShape(rectangle);\n region.setScaleShape(false);\n region.setCenterShape(false);\n region.setCacheShape(false);\n\n //Set positioning and addBBA text with padding\n region.setMaxHeight(rectangle.getHeight());\n region.setMinHeight(rectangle.getHeight());\n region.setPrefHeight(rectangle.getHeight());\n\n //Create label according to properties id\n Label text = new Label(getTaskId(item.getExtraValue())); //don't delete\n text.setStyle(\"-fx-font-family: 'Space Mono', monospace; -fx-font-weight: BOLD; -fx-text-fill: white;\");\n text.setPadding(new Insets(paddingHeight, 0, 0, paddingWidth));\n region.getChildren().add(text); //don't delete\n\n //Set rectangle position\n block.setLayoutX(x);\n block.setLayoutY(y);\n }\n }\n }\n }\n }",
"@Override\n protected int getNormalLayoutResId() {\n return itemCommonBinder.layout;\n }",
"public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n int i5;\n int i6;\n int i7;\n int childCount = getChildCount();\n int i8 = i3 - i;\n int i9 = i4 - i2;\n int paddingLeft = getPaddingLeft();\n int paddingTop = getPaddingTop();\n int paddingRight = getPaddingRight();\n int paddingBottom = getPaddingBottom();\n int scrollX = getScrollX();\n int i10 = paddingBottom;\n int i11 = 0;\n int i12 = paddingTop;\n int i13 = paddingLeft;\n int i14 = 0;\n while (true) {\n i5 = 8;\n if (i14 >= childCount) {\n break;\n }\n View childAt = getChildAt(i14);\n if (childAt.getVisibility() != 8) {\n LayoutParams layoutParams = (LayoutParams) childAt.getLayoutParams();\n if (layoutParams.isDecor) {\n int i15 = layoutParams.gravity & 7;\n int i16 = layoutParams.gravity & 112;\n if (i15 == 1) {\n i6 = Math.max((i8 - childAt.getMeasuredWidth()) / 2, i13);\n } else if (i15 == 3) {\n i6 = i13;\n i13 = childAt.getMeasuredWidth() + i13;\n } else if (i15 != 5) {\n i6 = i13;\n } else {\n i6 = (i8 - paddingRight) - childAt.getMeasuredWidth();\n paddingRight += childAt.getMeasuredWidth();\n }\n if (i16 == 16) {\n i7 = Math.max((i9 - childAt.getMeasuredHeight()) / 2, i12);\n } else if (i16 == 48) {\n i7 = i12;\n i12 = childAt.getMeasuredHeight() + i12;\n } else if (i16 != 80) {\n i7 = i12;\n } else {\n i7 = (i9 - i10) - childAt.getMeasuredHeight();\n i10 += childAt.getMeasuredHeight();\n }\n int i17 = i6 + scrollX;\n childAt.layout(i17, i7, childAt.getMeasuredWidth() + i17, i7 + childAt.getMeasuredHeight());\n i11++;\n }\n }\n i14++;\n }\n int i18 = (i8 - i13) - paddingRight;\n int i19 = 0;\n while (i19 < childCount) {\n View childAt2 = getChildAt(i19);\n if (childAt2.getVisibility() != i5) {\n LayoutParams layoutParams2 = (LayoutParams) childAt2.getLayoutParams();\n if (!layoutParams2.isDecor) {\n ItemInfo infoForChild = infoForChild(childAt2);\n if (infoForChild != null) {\n float f = (float) i18;\n int floor = ((int) Math.floor((double) ((infoForChild.offset * f) + (((float) getClientWidth()) * ((1.0f - this.mAdapter.getPageWidth(i19)) / 2.0f)) + 0.5f))) + i13;\n if (layoutParams2.needsMeasure) {\n layoutParams2.needsMeasure = false;\n childAt2.measure(MeasureSpec.makeMeasureSpec((int) (f * layoutParams2.widthFactor), UCCore.VERIFY_POLICY_QUICK), MeasureSpec.makeMeasureSpec((i9 - i12) - i10, UCCore.VERIFY_POLICY_QUICK));\n }\n childAt2.layout(floor, i12, childAt2.getMeasuredWidth() + floor, childAt2.getMeasuredHeight() + i12);\n }\n }\n }\n i19++;\n i5 = 8;\n }\n this.mTopPageBounds = i12;\n this.mBottomPageBounds = i9 - i10;\n this.mDecorChildCount = i11;\n scrollTo(getRate(), 0);\n if (this.mAdapter != null) {\n pageScrolled(getRate());\n }\n this.mFirstLayout = false;\n }",
"@Override\n public void requestLayout() {\n super.requestLayout();\n Log.v(Log.SUBSYSTEM.LAYOUT, TAG, \"requestLayout(%s): root layout requested; posting\", getName());\n\n runOnGlThread(mLayoutRunnable);\n }",
"@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tsuper.onLayout(changed, l, t, r, b);\n\t\tif(changed){\n\t\t\tthis.scrollTo(0, 0);\n\t\t}\n\t}",
"@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n final int count = getChildCount();\n\n for (int i = 0; i < count; i++) {\n View child = getChildAt(i);\n if (child.getVisibility() != GONE) {\n if (i == MAX_PAGE_SIZE - 2) {\n // Log.d(TAG,\n // \"mTranslationY + mTranslationX = \"\n // + (Math.abs(mTranslationX) + Math\n // .abs(mTranslationY)));\n float moved = Math.abs(mTranslationX)\n + Math.abs(mTranslationY);\n float scale = 0.8F + moved / 2000;\n child.setScaleX(scale < 0.9F ? scale : 0.9F); // 0.8->0.9\n child.setScaleY(scale < 0.9F ? scale : 0.9F);\n float trY = 50 - (scale - 0.8F) * 250;\n child.setTranslationY(trY > 25 ? TypedValue.applyDimension(\n TypedValue.COMPLEX_UNIT_DIP, trY, getResources()\n .getDisplayMetrics()) : TypedValue\n .applyDimension(TypedValue.COMPLEX_UNIT_DIP, 25,\n getResources().getDisplayMetrics())); // 50->25\n } else if (i == MAX_PAGE_SIZE - 1) {\n float moved = Math.abs(mTranslationX)\n + Math.abs(mTranslationY);\n float scale = 0.9F + moved / 2000;\n child.setScaleX(scale < 1 ? scale : 1); // 0.9 -> 1.0\n child.setScaleY(scale < 1 ? scale : 1);\n float trY = 25 - (scale - 0.9F) * 250;\n child.setTranslationY(trY > 0 ? TypedValue.applyDimension(\n TypedValue.COMPLEX_UNIT_DIP, trY, getResources()\n .getDisplayMetrics()) : 0); // 25->0\n } else if (i == MAX_PAGE_SIZE) {\n // Log.d(TAG, \"mtouchDownX = \" + touchDownX\n // + \", mtouchDownY = \" + touchDownY);\n child.setTranslationX(mTranslationX);\n child.setTranslationY(mTranslationY);\n float rotation;\n if (touchDownY < (b - t) / 2) {\n rotation = mTranslationX / 20;\n } else {\n rotation = -mTranslationX / 20;\n }\n if (rotation > 0) {\n child.setRotation(rotation < 20 ? rotation : 20);\n } else {\n child.setRotation(rotation > -20 ? rotation : -20);\n }\n } else {\n child.setScaleX(0.8F);\n child.setScaleY(0.8F);\n child.setTranslationY(TypedValue.applyDimension(\n TypedValue.COMPLEX_UNIT_DIP, 50, getResources()\n .getDisplayMetrics()));\n }\n }\n }\n super.onLayout(changed, l, t, r, b);\n }",
"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 public void layoutContainer(Container parent) {\n int nc = parent.getComponentCount();\n if (nc == 0) {\n return;\n }\n int width = parent.getWidth(); // - insets.left - insets.right;\n int height = parent.getHeight(); // - insets.left - insets.right;\n int x = 0; // insets.left; int y = insets.top;\n // for (int i = 0; i < nc; i++) {\n Component c = parent.getComponent(0); // = toolBox;\n c.setBounds(x, height - yy, width, c.getPreferredSize().height);\n // }\n }",
"public boolean requestLayout(Set<Paintable> child) {\n updateParentFrameSize();\n \n // layout size change may affect its available space (scrollbars)\n connection.handleComponentRelativeSize((Widget) layout);\n \n return true;\n \n }",
"@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n if (flag) {\n //进行一些初始化的操作\n/* if ((mOvalHeight == -1) || (mOvalWidth == -1)) {\n if (mWidth > mHeight) {\n mOvalHeight = (mHeight - 100) / 2;\n mOvalWidth = mOvalHeight + 100;\n } else {\n mOvalWidth = (mWidth - 100) / 2;\n mOvalHeight = mOvalWidth + 100;\n }\n }else {\n mOvalWidth /= 2;\n mOvalHeight /= 2;\n }*/\n\n if (mOvalHeightMargin != -1) {\n mOvalHeight = (mHeight - mOvalHeightMargin * 2) / 2;\n } else if (mOvalHeight == -1) {\n mOvalHeight = mHeight / 2;\n }\n if (mOvalWidthMargin != -1) {\n mOvalWidth = (mWidth - mOvalWidthMargin * 2) / 2;\n } else if (mOvalWidth == -1) {\n mOvalWidth = mWidth / 2;\n }\n\n\n if ((mChildWidth == -1) && (mChildHeight == -1)) {\n mChildWidth = 50;\n mChildHeight = 50;\n }\n\n //下面是获取所有的子view,给子view分配初始位置,默认第一个是270度,相当于y轴负半轴。\n mChildCount = getChildCount();\n mChildrenView = new View[mChildCount];\n mAngles = new double[mChildCount];\n mAngles[0] = 270;\n double j = 360 / mChildCount;\n for (int i = 0; i < mChildCount; i++) {\n mChildrenView[i] = getChildAt(i);\n final int finalI = i;\n mChildrenView[i].setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n if (itemClickListener == null)\n Log.e(TAG, \"你点击了的position = \" + finalI + \",但是itemClickListener == null\");\n else {\n itemClickListener.onItemClick(v, finalI, true);\n }\n }\n });\n if (i > 0) {\n if ((mAngles[i] + j) <= 360) {\n mAngles[i] = mAngles[i - 1] + j;\n } else {\n mAngles[i] = mAngles[i - 1] + j - 360;\n }\n }\n int x = (int) (mOvalWidth * Math.cos(mAngles[i] * Math.PI / 180));\n int y = (int) (mOvalHeight * Math.sin(mAngles[i] * Math.PI / 180));\n mChildrenView[i].layout(mWidth / 2 - x - mChildWidth / 2, mHeight / 2 - y - mChildHeight / 2, mWidth / 2 - x + mChildWidth / 2, mHeight / 2 - y + mChildHeight / 2);\n }\n flag = false;\n }\n }",
"private void setLayout() {\n if (!mImageFragment.isAdded()) {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(\n MATCH_PARENT, MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n } else {\n if (getResources().getConfiguration().orientation\n == Configuration.ORIENTATION_LANDSCAPE){\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n\n else {\n mNameFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT));\n mImageFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT,\n MATCH_PARENT));\n }\n }\n }",
"protected @Override void updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a) {\n \n //super.updateLayout(ec, e, a);\n }",
"public void onFinishInflate() {\n AppMethodBeat.i(103009);\n if (getChildCount() > 0) {\n View childAt = getChildAt(0);\n if (!(childAt instanceof RadarSpecialTableLayout)) {\n childAt = null;\n }\n this.pCL = (RadarSpecialTableLayout) childAt;\n }\n AppMethodBeat.o(103009);\n }",
"public void updateBounds(){\r\n\t\tRectangle bounds = new Rectangle(super.getBounds());\r\n\t\tint preferredHeight = 0;\r\n\t\tfor(Object child : getChildren()){\r\n\t\t\tIFigure figure = (IFigure)child;\r\n\t\t\tpreferredHeight += figure.getPreferredSize().height;\r\n\t\t}\r\n\t\tif (preferredHeight == 0) preferredHeight = 200;\r\n\t\tbounds.setHeight(preferredHeight+20);\r\n\t\tsetBounds(bounds);\r\n\t}",
"@Override\n public int getChildrenCount(int groupPosition) {\n return 1;\n }",
"public HangingFlowPane(Node... children) {\n super();\n getChildren().addAll(children);\n }",
"private void addAndMeasureChild(View child, final int layoutMode)\n\t{\n\t\t// child.setBackgroundDrawable(_itemBackground);\n\n\t\tLayoutParams params = child.getLayoutParams();\n\t\tif (params == null)\n\t\t{\n\t\t\tparams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n\t\t}\n\n\t\tfinal int index = layoutMode == LAYOUT_MODE_LEFT ? 0 : -1;\n\t\taddViewInLayout(child, index, params, true);\n\n\t\tchild.measure(MeasureSpec.makeMeasureSpec(getWidth(), MeasureSpec.AT_MOST),\n\t\t MeasureSpec.makeMeasureSpec(getHeight(), MeasureSpec.AT_MOST));\n\t}",
"@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tl = 0;\n\t\tt = 0;\n\t\tr = getWidth();\n\t\tb = getHeight();\n\n\t\tif (header != null) {\n\t\t\theader.layout(l, t, r, header.getMeasuredHeight());\n\t\t\titem.layout(l, header.getMeasuredHeight(), r, b);\n\t\t} else if (divider != null) {\n\t\t\tdivider.setBounds(l, t, r, dividerHeight);\n\t\t\titem.layout(l, dividerHeight, r, b);\n\t\t} else {\n\t\t\titem.layout(l, t, r, b);\n\t\t}\n\t}",
"@Override\n public JQLayout getLayout()\n {\n return layout;\n }",
"protected abstract List<T> getChildren();",
"@Override\r\n\tpublic void initializeView(ViewInterface[] subViews) {\r\n\t\tsetLayout(new GridBagLayout());\r\n setBackground(Color.decode(\"#747b83\"));\r\n\t}",
"public final void drawChildren() {\n // Set my clipping rectangle\n assert (window != null);\n assert (getScreen() != null);\n Screen screen = getScreen();\n\n // Special case: TStatusBar is drawn by TApplication, not anything\n // else.\n if (this instanceof TStatusBar) {\n return;\n }\n\n screen.setClipRight(width);\n screen.setClipBottom(height);\n\n int absoluteRightEdge = window.getAbsoluteX() + window.getWidth();\n int absoluteBottomEdge = window.getAbsoluteY() + window.getHeight();\n if (!(this instanceof TWindow) && !(this instanceof TVScroller)) {\n absoluteRightEdge -= 1;\n }\n if (!(this instanceof TWindow) && !(this instanceof THScroller)) {\n absoluteBottomEdge -= 1;\n }\n int myRightEdge = getAbsoluteX() + width;\n int myBottomEdge = getAbsoluteY() + height;\n if (getAbsoluteX() > absoluteRightEdge) {\n // I am offscreen\n screen.setClipRight(0);\n } else if (myRightEdge > absoluteRightEdge) {\n screen.setClipRight(screen.getClipRight()\n - (myRightEdge - absoluteRightEdge));\n }\n if (getAbsoluteY() > absoluteBottomEdge) {\n // I am offscreen\n screen.setClipBottom(0);\n } else if (myBottomEdge > absoluteBottomEdge) {\n screen.setClipBottom(screen.getClipBottom()\n - (myBottomEdge - absoluteBottomEdge));\n }\n\n // Set my offset\n screen.setOffsetX(getAbsoluteX());\n screen.setOffsetY(getAbsoluteY());\n\n // Draw me\n draw();\n\n // Continue down the chain\n for (TWidget widget: children) {\n widget.drawChildren();\n }\n }",
"public void layoutContainer(Container parent) {\n // Step 1: Prepare for layout.\n prepare(SPECIFIC_SIZE);\n Insets insets = parent.getInsets();\n int width = parent.getWidth() - insets.left - insets.right;\n int height = parent.getHeight() - insets.top - insets.bottom;\n boolean ltr = isLeftToRight();\n if (getAutoCreateGaps() || getAutoCreateContainerGaps() ||\n hasPreferredPaddingSprings) {\n // Step 2: Calculate autopadding springs\n calculateAutopadding(horizontalGroup, HORIZONTAL, SPECIFIC_SIZE, 0,\n width);\n calculateAutopadding(verticalGroup, VERTICAL, SPECIFIC_SIZE, 0,\n height);\n }\n // Step 3: set the size of the groups.\n horizontalGroup.setSize(HORIZONTAL, 0, width);\n verticalGroup.setSize(VERTICAL, 0, height);\n // Step 4: apply the size to the components.\n for (ComponentInfo info : componentInfos.values()) {\n info.setBounds(insets, width, ltr);\n }\n }",
"public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n int childCount = getChildCount();\n int positivePaddingLeft = getPositivePaddingLeft();\n int positivePaddingRight = (i3 - i) - getPositivePaddingRight();\n int positivePaddingTop = getPositivePaddingTop();\n int positivePaddingBottom = (i4 - i2) - getPositivePaddingBottom();\n for (int i5 = 0; i5 < childCount; i5++) {\n View childAt = getChildAt(i5);\n if (childAt.getVisibility() != 8) {\n int measuredWidth = childAt.getMeasuredWidth();\n int measuredHeight = childAt.getMeasuredHeight();\n int i6 = (((positivePaddingRight - positivePaddingLeft) - measuredWidth) / 2) + positivePaddingLeft;\n int i7 = (((positivePaddingBottom - positivePaddingTop) - measuredHeight) / 2) + positivePaddingTop;\n childAt.layout(i6, i7, measuredWidth + i6, measuredHeight + i7);\n }\n }\n }",
"public abstract int presentViewLayout();",
"@Override\n\tprotected void initContentView() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tmLayout.requestLayout();\r\n\t\t\t}",
"@Override\n public int getChildrenCount(int groupPosition) {\n return 1;\n }",
"@Override\n public int getChildrenCount(int groupPosition) {\n return 1;\n }",
"public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n if (z) {\n int childCount = getChildCount();\n for (int i5 = 0; i5 < childCount; i5++) {\n View childAt = getChildAt(i5);\n int measuredWidth = (i5 - 1) * (childAt.getMeasuredWidth() + this.mHorizontalGap);\n childAt.layout(measuredWidth, 0, childAt.getMeasuredWidth() + measuredWidth, childAt.getMeasuredHeight());\n }\n }\n }",
"GapBoxViewChildren createChildren() {\n return new GapBoxViewChildren(this);\n }",
"public VerticalLayout(Component... children) {\n this();\n addComponents(children);\n }",
"protected void conditionallyRelayout()\n {\n ShapeView view = getParentView();\n \n if (view != null)\n {\n view.conditionallyRelayout();\n }\n }",
"public void renderChildren() throws Exception {\n WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();\n super.renderChildren(context);\n }",
"@Override\n protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n widthMeasureSpec = widthMeasureSpec + 1;\n widthMeasureSpec -= 1;\n super.onMeasure(widthMeasureSpec, heightMeasureSpec);\n }",
"public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n i3 = ((i3 - i) - AndroidUtilities.m26dp(360.0f)) / 3;\n for (i = 0; i < 4; i++) {\n i2 = AndroidUtilities.m26dp(10.0f) + ((i % 4) * (AndroidUtilities.m26dp(85.0f) + i3));\n View childAt = getChildAt(i);\n childAt.layout(i2, 0, childAt.getMeasuredWidth() + i2, childAt.getMeasuredHeight());\n }\n }",
"protected void layoutImpl()\n {\n // Set chart area height first, since height can effect yaxis label width\n double pw = getWidth(), ph = getHeight();\n double ah = _xaxis.isVisible()? _xaxis.getPrefHeight() : 0;\n _chartArea.setHeight(ph - ah);\n \n // Now set bounds of areay, xaxis and yaxis\n double aw = _yaxis.isVisible()? _yaxis.getPrefWidth(ph - ah) : 0;\n double cw = pw - aw, ch = ph - ah;\n _chartArea.setBounds(aw,0,cw,ch);\n _xaxis.setBounds(aw,ch,cw,ah);\n _yaxis.setBounds(0,0,aw,ch);\n }",
"public boolean useBaseLayout() {\n return true;\n }",
"public void layoutChild(CoordinatorLayout coordinatorLayout, V v, int i) {\r\n coordinatorLayout.onLayoutChild(v, i);\r\n }",
"@Override\n\tpublic void doLayout() {\n\t\tthis.transitionsPanel.setBounds(0, 0, this.getWidth(), this.getHeight());\n\t\t//this.timersButton.setBounds(this.getWidth()-2*50, 0, 50, 50);\n\t\t//this.countersButton.setBounds(this.getWidth()-50, 0, 50, 50);\n\t\t//this.salirButton.setBounds(this.getWidth()-40,0,40, 40);\n\t\tsuper.doLayout();\n\t}",
"@Override\n\tpublic View getLayout(Context context, ViewGroup container) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic View getLayout(Context context, ViewGroup container) {\n\t\treturn null;\n\t}",
"public boolean requiresLayout() {\n return false;\n }",
"public boolean requiresLayout() {\n return false;\n }"
] | [
"0.748448",
"0.7342095",
"0.72759426",
"0.71182644",
"0.71140265",
"0.7082637",
"0.6960431",
"0.68988466",
"0.68208253",
"0.67721444",
"0.67460454",
"0.67151916",
"0.6663481",
"0.66543084",
"0.6651374",
"0.65656394",
"0.65294856",
"0.6503667",
"0.64825934",
"0.64682406",
"0.6426612",
"0.6363497",
"0.63471204",
"0.6321102",
"0.6313539",
"0.6288397",
"0.62228596",
"0.6216353",
"0.6204421",
"0.6202623",
"0.6182971",
"0.61780167",
"0.61611444",
"0.6118279",
"0.608573",
"0.606718",
"0.6055669",
"0.60435784",
"0.6037371",
"0.60372066",
"0.6026908",
"0.60223675",
"0.6015934",
"0.60042626",
"0.59815586",
"0.59771585",
"0.5976457",
"0.5976428",
"0.59602743",
"0.59589195",
"0.594722",
"0.59470034",
"0.59455216",
"0.59391737",
"0.5938202",
"0.5936375",
"0.5915075",
"0.5906387",
"0.58863586",
"0.58773637",
"0.5859837",
"0.58521116",
"0.58459824",
"0.5834853",
"0.5831636",
"0.5829365",
"0.58284163",
"0.58069754",
"0.58053994",
"0.58026874",
"0.58023167",
"0.57970816",
"0.57893366",
"0.57763314",
"0.5766443",
"0.57611346",
"0.576028",
"0.57591444",
"0.575898",
"0.5756111",
"0.5744638",
"0.57437354",
"0.57308614",
"0.5727357",
"0.5727074",
"0.5727074",
"0.5726941",
"0.57210416",
"0.5716422",
"0.57157505",
"0.5701167",
"0.5699231",
"0.569228",
"0.56887627",
"0.56885993",
"0.5681418",
"0.5675072",
"0.5672657",
"0.5672657",
"0.5666639",
"0.5666639"
] | 0.0 | -1 |
Called to update whether ScrollBars are showing. Returns true if any changes. | protected boolean updateScrollBarsShowing()
{
// Get Scroller Size
double scrollerW = _scroller.getWidth();
double scrollerH = _scroller.getHeight();
// Get child size
Size contentSize = _scroller.getContentPrefSize();
double contentW = contentSize.getWidth();
double contentH = contentSize.getHeight();
// Get whether to show scroll bars
boolean alwaysH = _showHBar == Boolean.TRUE;
boolean alwaysV = _showVBar == Boolean.TRUE;
boolean asneedH = _showHBar == null;
boolean asneedV = _showVBar == null;
boolean showHBar = alwaysH || asneedH && contentW > scrollerW;
boolean showVBar = alwaysV || asneedV && contentH > scrollerH;
// Get whether scroll bars are currently showing
boolean isHBarShowing = isHBarShowing();
boolean isVBarShowing = isVBarShowing();
// If showing both ScrollBars, but only because both ScrollBars are showing, hide them and try again
if (isVBarShowing && isHBarShowing && showVBar && showHBar && asneedH && asneedV) {
boolean vbarNotReallyNeeded = contentW <= scrollerW + getVBar().getWidth();
boolean hbarNotReallyNeeded = contentH <= scrollerH + getHBar().getHeight();
if (vbarNotReallyNeeded && hbarNotReallyNeeded) {
setVBarShowing(false);
setHBarShowing(false);
return true;
}
}
// If either ScrollBar in wrong Showing state, set and try again
if (showVBar != isVBarShowing) {
setVBarShowing(showVBar);
return true;
}
if (showHBar != isHBarShowing) {
setHBarShowing(showHBar);
return true;
}
// Return false since ScrollBar showing didn't change
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateScrollbars() {\n if (!inUpdateScrollbars) {\n inUpdateScrollbars = true;\n try {\n doUpdateScrollbar();\n } finally {\n inUpdateScrollbars = false;\n }\n } else {\n if (!inUpdateScrollbarsLogged) {\n inUpdateScrollbarsLogged = true;\n ILog logger = TerminalPlugin.getDefault().getLog();\n logger.log(new Status(WARNING, TerminalPlugin.PLUGIN_ID, OK, \"Unexpected Recursion in terminal\", null));\n }\n }\n }",
"public void handleScrollBarUpdate(ScrollBar scrollBar);",
"private void setScrollBars() {\n int totHeight = jEditorPane1.getSize().height;\n int value = jEditorPane2.getSize().height;\n if (value > totHeight) totHeight = value;\n int totWidth = jEditorPane1.getSize().width;\n value = jEditorPane2.getSize().width;\n if (value > totWidth) totWidth = value;\n int viewHeight = jViewport1.getExtentSize().height;\n int viewWidth = jViewport1.getExtentSize().width;\n //D.deb(\"totHeight = \"+totHeight+\", totWidth = \"+totWidth); // NOI18N\n //D.deb(\"viewHeight = \"+viewHeight+\", viewWidth = \"+viewWidth); // NOI18N\n jScrollBar1.setValues(0, viewWidth, 0, totWidth);\n jScrollBar1.setBlockIncrement(viewWidth);\n jScrollBar2.setValues(0, viewWidth, 0, totWidth);\n jScrollBar2.setBlockIncrement(viewWidth);\n jScrollBar3.setValues(0, viewHeight, 0, totHeight);\n jScrollBar3.setBlockIncrement(viewHeight);\n boolean visibleScroll = jScrollBar1.isVisible();\n //D.deb(\"jScrollBar1.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewWidth < totWidth && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar1 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar1.setVisible(!visibleScroll);\n jScrollBar2.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar1.repaint();\n //jScrollBar2.repaint();\n }\n visibleScroll = jScrollBar3.isVisible();\n //D.deb(\"jScrollBar3.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewHeight < totHeight && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar3 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar3.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar3.repaint();\n }\n }",
"private void showBars() {\n if (!mIsActive || mShowBars) {\n return;\n }\n mShowBars = true;\n mOrientationManager.unlockOrientation();\n showToolBar(true);\n showStatusBar();\n // mActionBar.show();\n //mActivity.getGLRoot().setLightsOutMode(false);\n refreshHidingMessage();\n refreshBottomControlsWhenReady();\n }",
"public boolean isProgressBarVisible() {\r\n return pBarVisible;\r\n }",
"public boolean isHBarShowing() { return getHBar().getParent()!=null; }",
"public void CheckScrollBar() {\n \tif (data3d.Times > 1)\n {\n \tScrollbar Slider=label.TimeScrollbar;\n \tif (! ScrollbarPresent) { //\n\t\t\t\t\t\t// System.out.println(\"Adding a Scrollbar with \"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider=new Scrollbar(Scrollbar.VERTICAL, 0, 1, 0, data3d.Times);\n \tScrollbarPresent=true;\n\t\t\t\t\t\tlabel.TimeScrollbar = Slider; // that it will be moved when browsing though the data\n\t\t\t\t\t\tadd(\"East\", Slider);\n\t\t\t\t\t\t//if (DataPanel != null)\n\t\t\t\t\t\t//\tDataPanel.CheckScrollBar();\n\t\t\t\t\t\t//data3d.ShowAllSlices=true;\n\t\t\t\t\t\tdata3d.TrackDirection = 4;\n\t\t\t\t\t\tif (data3d.SizeZ > 1) {\n\t\t\t\t\t\t\tdata3d.SearchZ = 1;\n\t\t\t\t\t\t\tdata3d.COMZ = 1;\n\t\t\t\t\t\t}\n Slider.setBlockIncrement(data3d.Times / 10 + 1);\n Slider.addAdjustmentListener(c1);\n Slider.setVisible(true);\n \t}\n \telse {\n\t\t\t\t\t\tSlider.setMaximum(data3d.Times);\n\t\t\t\t\t\t// System.out.println(\"Changed Scrollbar size to\"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider.setBlockIncrement(data3d.Times / 10 + 1);\n\t\t\t\t\t\tSlider.setVisible(true);\n\t\t\t\t\t}\n \tSlider.doLayout();\n \tthis.doLayout();\n }\n// if (data3d.Elements > 5)\n// \tdata3d.TrackDirection=3;\n }",
"public boolean isScrolledToBottom() {\n if (isInSettings() || this.mBarState == 1 || this.mNotificationStackScroller.isScrolledToBottom()) {\n return true;\n }\n return false;\n }",
"public boolean isVBarShowing() { return getVBar().getParent()!=null; }",
"private void updateScrollBarSize() {\n int textHeight = getTextHeight();\n if (textHeight <= windowHeight) {\n Root.getChildren().remove(scrollBar);\n } else {\n if (!Root.getChildren().contains(scrollBar)) {\n Root.getChildren().add(scrollBar);\n }\n double range = textHeight - windowHeight;\n scrollBar.setMax(range);\n scrollBar.setVisibleAmount(10);\n }\n }",
"public final boolean isProgressBarVisible() {\r\n\r\n if ((pBarVisible == true) && (progressBar != null)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public boolean isPanelVisibleBecauseOfHeadsUp() {\n return (this.mHeadsUpManager.hasPinnedHeadsUp() || this.mHeadsUpAnimatingAway) && this.mBarState == 0;\n }",
"public Boolean getShowHBar() { return _showHBar; }",
"private boolean canShowBars() {\n if (mAppBridge != null && mCurrentIndex == 0\n && !mPhotoView.getFilmMode()) {\n return false;\n }\n\n // No bars if it's not allowed.\n if (!mActionBarAllowed) {\n return false;\n }\n\n Configuration config = mActivity.getResources().getConfiguration();\n return config.touchscreen != Configuration.TOUCHSCREEN_NOTOUCH;\n }",
"protected void setHBarShowing(boolean aValue)\n {\n // If already set, just return\n if (aValue==isHBarShowing()) return;\n\n // If showing, add and update\n ScrollBar hbar = getHBar();\n if (aValue) {\n addChild(hbar);\n hbar.setViewSize(_scroller.getWidth());\n hbar.setScrollSize(_scroller.getScrollWidth());\n hbar.setScroll(_scroller.getScrollX());\n }\n\n // Otherwise, remove\n else removeChild(hbar);\n\n // Fire prop change\n firePropChange(HBarShowing_Prop, !aValue, aValue);\n }",
"boolean updateVisibility() {\n boolean honorsVisibility;\n if (this.honorsVisibility == null) {\n honorsVisibility = GroupLayout.this.getHonorsVisibility();\n } else {\n honorsVisibility = this.honorsVisibility;\n }\n boolean newVisible = (honorsVisibility) ?\n component.isVisible() : true;\n if (visible != newVisible) {\n visible = newVisible;\n return true;\n }\n return false;\n }",
"public void updateShowEmptyShadeView() {\n boolean z = true;\n if (this.mBarState == 1 || this.mEntryManager.hasActiveNotifications()) {\n z = false;\n }\n showEmptyShadeView(z);\n }",
"public void updateButtonVisibility() {\n mLocationBarMediator.updateButtonVisibility();\n }",
"public void reevaluateStatusBarVisibility() {\n if (updateStatusBarVisibilityLocked(getDisplayPolicy().adjustSystemUiVisibilityLw(this.mLastStatusBarVisibility))) {\n this.mWmService.mWindowPlacerLocked.requestTraversal();\n }\n }",
"private void isScrollCompleted() {\n\t\tint min, lastitem = currentFirstVisibleItem + currentVisibleItemCount;\n\t\tsuperTotal = lastitem + nuevo;\n\t\tmin = (arrayBooks.size() + superTotal) / superTotal;\n\t\tif (min >= 1 && lastitem == totalItem\n\t\t\t\t&& currentScrollState == SCROLL_STATE_IDLE) {\n\t\t\tURL_BOOKS = \"http://tutoriapps.herokuapp.com/api/v1/groups/\"\n\t\t\t\t\t+ posicionId + \"/books.json?auth_token=\" + token\n\t\t\t\t\t+ \"&older_than=\" + fechaformato[fechaformato.length - 1]\n\t\t\t\t\t+ \"&count=5\";\n\t\t\tultimoItem = 1;\n\t\t\tgetData();\n\t\t} /*\n\t\t * else if (currentFirstVisibleItem == 0 && currentScrollState ==\n\t\t * SCROLL_STATE_IDLE) { URL_BOOKS =\n\t\t * \"http://tutoriapps.herokuapp.com/api/v1/groups/\" + posicionId +\n\t\t * \"/books.json?auth_token=\" + token + \"&newer_than=\" +\n\t\t * fechaformato[fechaformato.length - 1] + \"&count=5\"; ultimoItem = 2;\n\t\t * getData(); }\n\t\t */\n\t}",
"public void updateHeadsUpVisibility() {\n ((PhoneStatusBarView) this.mBar).setHeadsUpVisible(this.mHeadsUpAnimatingAway || this.mHeadsUpPinnedMode);\n }",
"public boolean isSet() {\n return nViewportUpdates > 0 && nWindowUpdates > 0;\n }",
"protected void setVBarShowing(boolean aValue)\n {\n // If already set, just return\n if (aValue==isVBarShowing()) return;\n\n // If showing, add and update\n ScrollBar vbar = getVBar();\n if (aValue) {\n addChild(vbar);\n vbar.setViewSize(_scroller.getHeight());\n vbar.setScrollSize(_scroller.getScrollHeight());\n vbar.setScroll(_scroller.getScrollY());\n }\n\n // Otherwise, remove\n else removeChild(vbar);\n\n // Fire prop change\n firePropChange(VBarShowing_Prop, !aValue, aValue);\n }",
"private void updateToolBar() {\n\t\taddressBarField.setText(displayPane.getPage().toString());\n\t\tif (pageList.size() < 1) {\n\t\t\tbackButton.setEnabled(false);\n\t\t} else {\n\t\t\tbackButton.setEnabled(true);\n\t\t}\n\t}",
"public void setShowHBar(Boolean aValue)\n {\n if (aValue==_showHBar) return;\n firePropChange(ShowHBar_Prop, _showHBar, _showHBar=aValue);\n }",
"private void updateBars() {\n \n // get the number of bars to draw\n bars = ( getWidth()-5 - textAreaLenght ) / barLenght;\n \n }",
"public boolean getScrollableTracksViewportHeight() {\n return getParent().getHeight() > getPreferredSize().height;\n }",
"@Override\n public boolean isShown() {\n return super.isShown();\n }",
"private boolean rangeHasChanged() {\n\t\tboolean tester = true;\n\t\t\n\t\ttester &= plotSheet.getxRange()[0] == this.xrange[0];\n\t\ttester &= plotSheet.getxRange()[1] == this.xrange[1];\n\t\ttester &= plotSheet.getyRange()[0] == this.yrange[0];\n\t\ttester &= plotSheet.getyRange()[1] == this.yrange[1];\n\t\t\n\t\tif(!tester) {\n\t\t\tthis.xrange = plotSheet.getxRange().clone();\n\t\t\tthis.yrange = plotSheet.getyRange().clone();\n\t\t}\n\t\t\n\t\treturn !tester || this.depthSearchAborted;\n\t}",
"public boolean hasChanged();",
"public boolean hasChanged();",
"public boolean isMiniHealthBarVisible() {\n return miniHealthBarVisible;\n }",
"public boolean hasScrollableContent() {\n return true;\n }",
"private boolean isRefreshViewScroll(float deltaY) {\n if (!isMarginChangeableWhenloading()) {\n if (mHeaderState == STATE_PULL_DOWN_TO_REFRESHING || mFooterState == STATE_PULL_UP_TO_LOADING) {\n //when HeaderView is refreshing,or FooterView is loading,view cannot scroll\n return false;\n }\n } else {\n if (mHeaderState == STATE_PULL_DOWN_TO_REFRESHING && isAtTop() && mHeaderParams.topMargin > -mHeaderHeight)\n return true;\n if (mFooterState == STATE_PULL_UP_TO_LOADING && isAtBottom() && mHeaderParams.topMargin < -mHeaderHeight)\n return true;\n }\n\n if (null != mListView) {\n if (isAtTop() && deltaY > 0) {\n //when top,view is scrollable\n //state is pull down to refresh\n mPullState = STATE_PULL_DOWN_TO_REFRESH;\n return true;\n } else if (isAtBottom() && deltaY < 0) {\n //when bottom,view is scrollable\n //state is pull up to load\n mPullState = STATE_PULL_UP_TO_LOAD;\n return true;\n }\n }\n\n return false;\n }",
"public void update() {\n if (showBar) {\n cp5.getController(\"bar\").setPosition(bX, bY - ih);\n cp5.getController(\"bar\").setSize(bW - iw, ih);\n cp5.getController(\"exit_btn_\" + id).setPosition(bX + bW - cp5.getController(\"exit_btn_\" + id).getWidth(), bY - cp5.getController(\"exit_btn_\" + id).getHeight());\n }\n\n if (isActive) {\n draw();\n\n if (WIN_GROUP != null)\n WIN_GROUP.setPosition(bX, bY + bH + WIN_GROUP.getHeight() + 1);\n\n if (!cp5.isVisible()) {\n cp5.show();\n }\n } else if (cp5.isVisible() && !isActive) {\n cp5.hide();\n }\n }",
"@Override\n public void updateBottomBarCount() {\n updateBottomToolbar();\n }",
"@Override\n public void update() {\n if ((mLikesDialog != null) && (mLikesDialog.isVisible())) {\n return;\n }\n\n if ((mCommentariesDialog != null) && (mCommentariesDialog.isVisible())) {\n return;\n }\n\n if (!getUserVisibleHint()) {\n return;\n }\n\n updateUI();\n }",
"public Boolean getShowVBar() { return _showVBar; }",
"@Override // com.android.server.wm.WindowContainer\n public boolean isVisible() {\n return true;\n }",
"public boolean hasNavigationBar(){\n \treturn true;\n }",
"public void toggleMiniHealthBars() {\n miniHealthBarVisible = !miniHealthBarVisible;\n }",
"public boolean isChanged() {\n return this.editorPane.getChangedProperty();\n }",
"public boolean isShowing() {\n return true; // Not supported for MenuComponents\n }",
"@Override // com.android.server.wm.WindowContainer\n public boolean isVisible() {\n return true;\n }",
"protected boolean needsFetchingScroll() {\n \t\treturn false;\n \t}",
"public boolean isShown(){\r\n return shown;\r\n }",
"@Override\n public boolean scrolled(int amount) {\n scrollAction.update(amount);\n return true;\n }",
"@Override\n public int getNumGuiBars() {\n return 1;\n }",
"public boolean isShowing() {\n return visible;\n }",
"public boolean isVisible() {\r\n\t\t\tif (outOfRange()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}",
"public boolean uploadingProgressBarIsShow() {\n return uploadingProgressBar.getVisibility() == VISIBLE;\n }",
"@Override\n\tpublic boolean hasChanged() {\n\t\treturn this.changed;\n\t}",
"@Override\n public boolean isVisible()\n {\n return true;\n }",
"boolean isReadyForShowing();",
"protected void animateScrollbar(boolean isScrolling) {\n if (scrollbarAnimator != null) {\n scrollbarAnimator.cancel();\n }\n\n scrollbarAnimator = new AnimatorGroup();\n /*ObjectAnimator trackWidthAnim = ObjectAnimator.ofInt(this, \"trackWidth\",\n isScrolling ? thumbMaxWidth : thumbMinWidth);*/\n\n AnimatorValue trackWidthAnim = new AnimatorValue();\n trackWidthAnim.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n FastScrollBar.this.setTrackWidth(isScrolling ? thumbMaxWidth : thumbMinWidth * (int) v);\n }\n });\n\n /*ObjectAnimator thumbWidthAnim = ObjectAnimator.ofInt(this, \"thumbWidth\",\n isScrolling ? thumbMaxWidth : thumbMinWidth);*/\n\n AnimatorValue thumbWidthAnim = new AnimatorValue();\n thumbWidthAnim.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n FastScrollBar.this.setThumbWidth(isScrolling ? thumbMaxWidth : thumbMinWidth * (int) v);\n }\n });\n\n scrollbarAnimator.runParallel(trackWidthAnim, thumbWidthAnim);\n\n\n if (thumbActiveColor != thumbInactiveColor) {\n /*ValueAnimator colorAnimation = ValueAnimator\n .ofObject(new ArgbEvaluator(), thumbPaint.getColor(), isScrolling ? thumbActiveColor : thumbInactiveColor);\n colorAnimation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n\n @Override\n public void onAnimationUpdate(ValueAnimator animator) {\n thumbPaint.setColor((Integer) animator.getAnimatedValue());\n recyclerView\n .invalidate(thumbOffset.x, thumbOffset.y, thumbOffset.x + thumbWidth, thumbOffset.y + thumbHeight);\n }\n });*/\n\n AnimatorValue colorAnimation = new AnimatorValue();\n colorAnimation.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n int color = getAnimatedColor(v,thumbPaint.getColor().getValue());\n thumbPaint.setColor(new Color(color));\n recyclerView.invalidate();\n }\n });\n\n scrollbarAnimator.runSerially(colorAnimation);\n }\n scrollbarAnimator.setDuration(SCROLL_BAR_VIS_DURATION);\n scrollbarAnimator.start();\n }",
"public void updateVisible(){\n if (serviceManager.isCustomerQueMode() == true && serviceManager.isManagerMode() == false) {\n this.setVisible(true);\n } else {\n this.setVisible(false);\n }\n// System.out.println(serviceManager.isCustomerQueMode());\n }",
"public void flashScrollbar() {\n clientRpc.flashScrollbar();\n }",
"private void checkShouldChangeNavBarHidden(){\n\n boolean shouldHide = mActionBar.isShowing();\n handleActionBarHidden(shouldHide);\n }",
"protected boolean checkScrollPosition(){\n\t\treturn false;\n\t}",
"public boolean areBundlesMoved() {\n return bundlesMoved;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"@Override\n\t\t\tpublic boolean scrolled(int amount) {\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n\t\t\tpublic boolean scrolled(int amount) {\n\t\t\t\treturn false;\n\t\t\t}",
"public boolean hasVisibleItems();",
"@Override\n public boolean scrolled(final int amount) {\n return false;\n }",
"public boolean isFillHeight() { return _scroller.isFillHeight(); }",
"public boolean isClearAllVisible() {\n return this.mNotificationStackScroller.isFooterViewContentVisible();\n }",
"@java.lang.Override\n public boolean hasScrollOffsetX() {\n return instance.hasScrollOffsetX();\n }",
"@Override\n\tpublic boolean isShowing() {\n\t\treturn false;\n\t}",
"public boolean isGroupListSideBarPresent() {\r\n\t\treturn isElementPresent(groupListSideBar, SHORTWAIT);\r\n\t}",
"@Override\n public boolean scrolled(int arg0) {\n return false;\n }",
"public void setShowVBar(Boolean aValue)\n {\n if (aValue==_showVBar) return;\n firePropChange(ShowVBar_Prop, _showVBar, _showVBar=aValue);\n }",
"@Override\r\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\r\n\t}",
"public void setProgressBarVisible(final boolean flag) {\r\n pBarVisible = flag;\r\n }",
"boolean isVisible();",
"boolean isVisible();",
"public boolean isBomItemsChanged() {\n\t\treturn bomItemsChanged;\n\t}",
"public boolean isVisible() {\n return true;\n }",
"private void checkHorizontalScrollBar(BasicComboPopup popup)\n\t{\n\n\t\tJViewport viewport = scrollPane.getViewport();\n\t\tPoint p = viewport.getViewPosition();\n\t\tp.x = 0;\n\t\tviewport.setViewPosition( p );\n\n\t\t// Remove the scrollbar so it is never painted\n\n\t\tif (! scrollBarRequired)\n\t\t{\n\t\t\tscrollPane.setHorizontalScrollBar( null );\n\t\t\treturn;\n\t\t}\n\n\t\t//\tMake sure a horizontal scrollbar exists in the scrollpane\n\n\t\tJScrollBar horizontal = scrollPane.getHorizontalScrollBar();\n\n\t\tif (horizontal == null)\n\t\t{\n\t\t\thorizontal = new JScrollBar(JScrollBar.HORIZONTAL);\n\t\t\tscrollPane.setHorizontalScrollBar( horizontal );\n\t\t\tscrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );\n\t\t}\n\n\t\t//\tPotentially increase height of scroll pane to display the scrollbar\n\n\t\tif (horizontalScrollBarWillBeVisible(popup, scrollPane))\n\t\t{\n\t\t\tDimension scrollPaneSize = scrollPane.getPreferredSize();\n\t\t\tscrollPaneSize.height += horizontal.getPreferredSize().height;\n\t\t\tscrollPane.setPreferredSize(scrollPaneSize);\n\t\t\tscrollPane.setMaximumSize(scrollPaneSize);\n\t\t\tscrollPane.revalidate();\n\t\t}\n\t}",
"public void update(){\n\t\tthis.setVisible(true);\n\t}",
"public final void updateViewVisibility() {\n boolean z;\n MediaHostStateHolder mediaHostStateHolder = this.state;\n if (getShowsOnlyActiveMedia()) {\n z = this.mediaDataManager.hasActiveMedia();\n } else {\n z = this.mediaDataManager.hasAnyMedia();\n }\n mediaHostStateHolder.setVisible(z);\n int i = getVisible() ? 0 : 8;\n if (i != getHostView().getVisibility()) {\n getHostView().setVisibility(i);\n Iterator<T> it = this.visibleChangedListeners.iterator();\n while (it.hasNext()) {\n ((Function1) it.next()).invoke(Boolean.valueOf(getVisible()));\n }\n }\n }",
"public void scrollBarDidPropChange(PropChange aPC)\n {\n String pname = aPC.getPropName();\n if (pname==ScrollBar.Scroll_Prop) {\n ScrollBar sbar = (ScrollBar)aPC.getSource();\n double val = sbar.getScrollRatio();\n if (sbar==_hbar)\n _scroller.setScrollXRatio(val);\n else _scroller.setScrollYRatio(val);\n }\n }",
"@Override\n\tpublic boolean isVisible() {\n\t\treturn this.isVisible;\n\t}",
"public synchronized boolean hasChanged() {\n return changed;\n }",
"public boolean isVisible () {\n return visible;\n }",
"@Override\n public boolean isActive() {\n return isShowing();\n }",
"public void update() {\n\tfireContentsChanged(this, 0, getSize());\n }",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}"
] | [
"0.6536667",
"0.62928927",
"0.6265502",
"0.62568843",
"0.6221777",
"0.6196048",
"0.6168481",
"0.6088603",
"0.6077235",
"0.59796417",
"0.59658605",
"0.59485316",
"0.5819317",
"0.5811028",
"0.575758",
"0.57339406",
"0.57163805",
"0.5711223",
"0.57092565",
"0.5707753",
"0.56762826",
"0.56749284",
"0.56378627",
"0.56318563",
"0.5629819",
"0.56276095",
"0.56251204",
"0.5604065",
"0.55830485",
"0.5575217",
"0.5575217",
"0.5562529",
"0.55359167",
"0.5524937",
"0.55074704",
"0.55017036",
"0.54963046",
"0.5491875",
"0.5483066",
"0.54773194",
"0.546888",
"0.54593",
"0.5458058",
"0.5453315",
"0.5448647",
"0.541709",
"0.54059476",
"0.54046905",
"0.54039",
"0.5374357",
"0.5360275",
"0.5358159",
"0.535641",
"0.53335595",
"0.5333262",
"0.5331073",
"0.5324944",
"0.53242004",
"0.53214586",
"0.528059",
"0.52797043",
"0.52797043",
"0.52797043",
"0.52797043",
"0.5276505",
"0.5276505",
"0.526479",
"0.526479",
"0.52609116",
"0.5256374",
"0.52305263",
"0.5223148",
"0.5220845",
"0.5220337",
"0.5217606",
"0.5215436",
"0.5214347",
"0.5211957",
"0.5210688",
"0.52080756",
"0.52080756",
"0.52075636",
"0.5199623",
"0.51976556",
"0.51954263",
"0.5191155",
"0.5186015",
"0.51829225",
"0.51746684",
"0.5169018",
"0.51679707",
"0.51662505",
"0.5162927",
"0.5162927",
"0.5162927",
"0.5162927",
"0.5162927",
"0.5162927",
"0.5162927",
"0.5162927"
] | 0.81090593 | 0 |
Returns the default border. | public Border getDefaultBorder() { return SCROLL_VIEW_BORDER; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float border() {\n\t\treturn borderThickness;\n\t}",
"public Border getBorder()\n {\n return null;\n }",
"public java.lang.String getBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BORDER$22);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public Border getBorder() {\n\t\treturn border;\n\t}",
"public Color getNormalBorderColor()\n {\n\tif (_normalBorderColor == null)\n\t return _defaultNormalBorderColor;\n\treturn _normalBorderColor;\n }",
"public final Color getBorderColor() {\n\t\treturn borderColor;\n\t}",
"public Border getBorder() {\n\t return border;\n\t}",
"public ValueExpression getBorder() {\n return border;\n }",
"public Color getBorderColor() {\r\n return this.borderColor;\r\n }",
"Border createBorder();",
"public Color getSelectedBorderColor()\n {\n\tif (_selectedBorderColor == null)\n\t return _defaultSelectedBorderColor;\n\treturn _selectedBorderColor;\n }",
"@Override\n public int getBorderColor() {\n return mBorderColor;\n }",
"public org.apache.xmlbeans.XmlString xgetBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BORDER$22);\n return target;\n }\n }",
"@Nullable\n public Border getBorder() {\n if (mImpl.hasBorder()) {\n return Border.fromProto(mImpl.getBorder());\n } else {\n return null;\n }\n }",
"public BorderInfo getBorderStart() {\n return borderStart.getBorderInfo();\n }",
"public Color getBorderColor();",
"@Override\n public float getBorderWidth() {\n return mBorderWidth;\n }",
"public int getDOWN_BORDER() {\n\t\treturn DOWN_BORDER;\n\t}",
"private Border getDesiredBorder(Component cmp) {\r\n\t\tif (cmp instanceof DefaultDockingPort)\r\n\t\t\tcmp = ((DefaultDockingPort) cmp).getDockedComponent();\r\n\r\n\t\tif (cmp instanceof DockablePanel) {\r\n\t\t\tString title = ((DockablePanel) cmp).getDockable().getDockableDesc();\r\n\t\t\treturn new TitledBorder(title);\r\n\t\t}\r\n\t\treturn dummyBorder;\r\n\t}",
"public boolean getPaintBorder() {\n\t\treturn paintBorder;\n\t}",
"public Color getHotBorderColor()\n {\n\tif (_hotBorderColor == null)\n\t return _defaultHotBorderColor;\n\treturn _hotBorderColor;\n }",
"public BorderInfo getBorderEnd() {\n return borderEnd.getBorderInfo();\n }",
"public static Style getDefault() { return Style.SHAPE; }",
"public int getRIGHT_BORDER() {\n\t\treturn RIGHT_BORDER;\n\t}",
"public TextureBorder getBorderX() {\n return mBorderX;\n }",
"public BorderDefine[] getBorderDefine() {\n\t\tBorderDefine[] defines = new BorderDefine[4];\n\t\tdefines[0] = border_top != null ? border_top : border;\n\t\tdefines[1] = border_right != null ? border_right : border;\n\t\tdefines[2] = border_bottom != null ? border_bottom : border;\n\t\tdefines[3] = border_left != null ? border_left : border;\n\t\treturn defines;\n\t}",
"public boolean getPaintBorder() {\n\t\treturn p.getPaintBorder();\n\t}",
"public boolean isDefault() {\r\n\treturn bgclip == border;\r\n }",
"public int getBorderColor() {\n if (getFieldState() != BaseField.FieldState.ENABLE || !this.mEditText.hasFocus()) {\n return super.getBorderColor();\n }\n return Color.parseColor(\"#394b65\");\n }",
"public double getBorderSafeZone()\n {\n return borderSafeZone;\n }",
"@Override\n public java.lang.Object getUilBoxBorderColor() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (UIL_BOX_BORDER_COLOR_);\n return (java.lang.Object)retnValue;\n }",
"public DefaultTextField(Border border) {\n\t this.border = border;\n\t}",
"private void renderBorder() {\n\t\trenderHorizontalLine(0, BORDER_SIGN_HORIZONTAL);\n\t\trenderHorizontalLine(this.output.length - 1, BORDER_SIGN_HORIZONTAL);\n\t\trenderVerticalLine(0, BORDER_SIGN_VERTICAL);\n\t\trenderVerticalLine(this.output[0].length - 1, BORDER_SIGN_VERTICAL);\n\n\t\tthis.output[0][0] = BORDER_SIGN_EDGE;\n\t\tthis.output[0][this.output[0].length - 1] = BORDER_SIGN_EDGE;\n\t\tthis.output[this.output.length - 1][0] = BORDER_SIGN_EDGE;\n\t\tthis.output[this.output.length - 1][this.output[0].length - 1] = BORDER_SIGN_EDGE;\n\t}",
"public double getBorderLerpTarget()\n {\n return borderSizeLerpTarget;\n }",
"public double getBorderCenterX()\n {\n return borderCenterX;\n }",
"public void resetBorders(){\n for (int i = 0; i * 25 < width + 40; i++) {\n if (i == 0) {\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), i * 25, 0, 10));\n } else {\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), i * 25, 0, topborder.get(i - 1).getHeight() + 1));\n }\n }\n\n\n for (int i = 0; i * 25 < width + 40; i++) {\n if (i == 0) {\n botborder.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), i * 25,height-minBorderHeight));\n } else {\n botborder.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), i * 25, botborder.get(i - 1).getY() - 1));\n }\n }\n }",
"IOverlayStyle borderThickness(int thick);",
"public TextureBorder getBorderY() {\n return mBorderY;\n }",
"private JRadioButton getJRadioButtonButtBorder() {\r\n\t\t// if (buttBorder == null) {\r\n\t\tbuttBorder = new JRadioButton();\r\n\t\tbuttBorder.setText(\"Border\");\r\n\t\tbuttBorder.setToolTipText(\"prefers the border settings instead of the new size values\");\r\n\t\tbuttBorder.addActionListener(this);\r\n\t\tbuttBorder.setActionCommand(\"parameter\");\r\n\t\t// }\r\n\t\treturn buttBorder;\r\n\t}",
"public static Rectangle[] getBorders(){\n\t\treturn borders;\n\t}",
"public IconBuilder border(float thickness) {\n\t\tthis.borderThickness = thickness;\n\t\treturn this;\n\t}",
"public PDBorderStyleDictionary getBorderStyle() {\n/* 386 */ COSBase bs = getCOSObject().getDictionaryObject(COSName.BS);\n/* 387 */ if (bs instanceof COSDictionary)\n/* */ {\n/* 389 */ return new PDBorderStyleDictionary((COSDictionary)bs);\n/* */ }\n/* 391 */ return null;\n/* */ }",
"@Override\r\n\tpublic int getBorderWidth(Object entity) {\n\t\treturn 0;\r\n\t}",
"public Color getScrollBorderColor();",
"public Color getBorderSelectionColor() {\n\treturn borderSelectionColor;\n }",
"@Test\n public void testGetBorder() {\n Assert.assertEquals(Border.ALL, Border.getBorder(true, true, true, true));\n Assert.assertEquals(Border.BOTTOM, Border.getBorder(false, false, false, true));\n Assert.assertEquals(Border.BOTTOM_LEFT, Border.getBorder(true, false, false, true));\n Assert.assertEquals(Border.BOTTOM_LEFT_RIGHT, Border.getBorder(true, true, false, true));\n Assert.assertEquals(Border.BOTTOM_RIGHT, Border.getBorder(false, true, false, true));\n Assert.assertEquals(Border.BOTTOM_TOP, Border.getBorder(false, false, true, true));\n Assert.assertEquals(Border.BOTTOM_TOP_LEFT, Border.getBorder(true, false, true, true));\n Assert.assertEquals(Border.BOTTOM_TOP_RIGHT, Border.getBorder(false, true, true, true));\n Assert.assertEquals(Border.LEFT, Border.getBorder(true, false, false, false));\n Assert.assertEquals(Border.LEFT_RIGHT, Border.getBorder(true, true, false, false));\n Assert.assertEquals(Border.NONE, Border.getBorder(false, false, false, false));\n Assert.assertEquals(Border.RIGHT, Border.getBorder(false, true, false, false));\n Assert.assertEquals(Border.TOP, Border.getBorder(false, false, true, false));\n Assert.assertEquals(Border.TOP_LEFT, Border.getBorder(true, false, true, false));\n Assert.assertEquals(Border.TOP_LEFT_RIGHT, Border.getBorder(true, true, true, false));\n Assert.assertEquals(Border.TOP_RIGHT, Border.getBorder(false, true, true, false));\n }",
"public native PixelPacket getBorderColor() throws MagickException;",
"public float getBorderWidth() {\n if (getFieldState() != BaseField.FieldState.ENABLE || !this.mEditText.hasFocus()) {\n return super.getBorderWidth();\n }\n return 8.0f;\n }",
"public double getBorderCenterZ()\n {\n return borderCenterZ;\n }",
"public void xsetBorder(org.apache.xmlbeans.XmlString border)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BORDER$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(BORDER$22);\n }\n target.set(border);\n }\n }",
"public Border getViewportBorder() {\n/* 571 */ return this.viewportBorder;\n/* */ }",
"public GenericColorizer getNodeBorderColorizer() {\n return nodeBorderColorizer;\n }",
"private View getBorderView() {\n View view = new View(this.getContext());\n TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, 1);\n view.setLayoutParams(layoutParams);\n view.setBackgroundColor(getResources().getColor(R.color.ldstools_gray_light));\n return view;\n }",
"public CssBorderWidth() {\n }",
"public void setBorder(java.lang.String border)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BORDER$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BORDER$22);\n }\n target.setStringValue(border);\n }\n }",
"private void createCanvasBorders() {\n\n\t\tLabel lblBorderMiddle = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderMiddle.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\t\tlblBorderMiddle.setBounds(0, 72, 285, 2);\n\n\t\tLabel lblBorderBottom = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderBottom.setBounds(0, 198, 285, 2);\n\t\tlblBorderBottom.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\n\t\tLabel lblBorderLeft = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderLeft.setBounds(0, 0, 2, 200);\n\t\tlblBorderLeft.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\n\t\tLabel lblBorderRight = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderRight.setBounds(283, 0, 2, 200);\n\t\tlblBorderRight.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\n\t\tLabel lblBorderTop = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderTop.setBounds(0, 0, 285, 2);\n\t\tlblBorderTop.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\t}",
"protected void paintComponentBorder(Graphics g) {\r\n int height = this.getHeight();\r\n int width = this.getWidth();\r\n Color c = g.getColor();\r\n g.setColor(getUiPrefs().getBorderColor());\r\n g.drawRoundRect(0, 0, width - 1, height - getInsets().bottom, 10, 10);\r\n g.setColor(c);\r\n }",
"@Override\n\t\tpublic void setBorder(Border border) {\n\t\t}",
"@Override\n public java.lang.Object getUilButtonBorderColor() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (UIL_BUTTON_BORDER_COLOR_);\n return (java.lang.Object)retnValue;\n }",
"@Override \n public void paintBorder(Component c, Graphics g, int x, int y, int width, int height){ \n g.setColor( c.getForeground() ); \n g.drawLine(0, height - 1, width, height - 1); //Border Bottom \n }",
"IOverlayStyle borderColor(int color);",
"public XSSFBorderFormatting createBorderFormatting(){\n CTDxf dxf = getDxf(true);\n CTBorder border;\n if(!dxf.isSetBorder()) {\n border = dxf.addNewBorder();\n } else {\n border = dxf.getBorder();\n }\n\n return new XSSFBorderFormatting(border, _sh.getWorkbook().getStylesSource().getIndexedColors());\n }",
"public Color getDefaultBackgroudColor() {\n return DEFAULT_BACKGROUND_COLOR;\n }",
"public long getBorderLerpTime()\n {\n return borderSizeLerpTime;\n }",
"@Override\n protected void paintBorder(Graphics g) {\n g.setColor(getForeground());\n g.drawRoundRect(0, 0, getWidth() - 1, getHeight() - 1, 15, 50);\n }",
"public void _BorderColor() {\n testProperty(\"BorderColor\", new PropertyTester() {\n protected Object getNewValue(String p, Object old) {\n return utils.isVoid(old) ? new Integer(1234) : null ;\n }\n }) ;\n }",
"void setBorder(Color color, int thickness);",
"public Float getNodeBorderWidth() {\n return nodeBorderWidth;\n }",
"public void unsetBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(BORDER$22);\n }\n }",
"public Bordereau() {\n\t\tsuper();\n\t}",
"Integer getDefaultHeight();",
"protected void paintBorder (Graphics g)\r\n {\n }",
"IOverlayStyle borderOffset(int offset);",
"public boolean isSetBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(BORDER$22) != null;\n }\n }",
"public String getDefaultStyleString() {\n/* 552 */ return getCOSObject().getString(COSName.DS);\n/* */ }",
"@Override\r\n\tpublic Color getBorderHighlightColor(Object entity) {\n\t\treturn null;\r\n\t}",
"private int getBorderWidthValue( IStyle style, int borderNum )\n \t{\n \t\tif ( null == style )\n \t\t{\n \t\t\treturn 0;\n \t\t}\n \t\tif ( IStyle.STYLE_BORDER_TOP_WIDTH != borderNum\n \t\t\t\t&& IStyle.STYLE_BORDER_RIGHT_WIDTH != borderNum\n \t\t\t\t&& IStyle.STYLE_BORDER_BOTTOM_WIDTH != borderNum\n \t\t\t\t&& IStyle.STYLE_BORDER_LEFT_WIDTH != borderNum )\n \t\t{\n \t\t\treturn 0;\n \t\t}\n \t\tCSSValue value = style.getProperty( borderNum );\n \t\tif ( value != null && ( value instanceof FloatValue ) )\n \t\t{\n \t\t\tFloatValue fv = (FloatValue) value;\n \t\t\tfloat v = fv.getFloatValue( );\n \t\t\tswitch ( fv.getPrimitiveType( ) )\n \t\t\t{\n \t\t\t\tcase CSSPrimitiveValue.CSS_CM :\n \t\t\t\t\treturn (int) ( v * 72000 / 2.54 );\n \n \t\t\t\tcase CSSPrimitiveValue.CSS_IN :\n \t\t\t\t\treturn (int) ( v * 72000 );\n \n \t\t\t\tcase CSSPrimitiveValue.CSS_MM :\n \t\t\t\t\treturn (int) ( v * 7200 / 2.54 );\n \n \t\t\t\tcase CSSPrimitiveValue.CSS_PT :\n \t\t\t\t\treturn (int) ( v * 1000 );\n \t\t\t\tcase CSSPrimitiveValue.CSS_NUMBER :\n \t\t\t\t\treturn (int) v;\n \t\t\t}\n \t\t}\n \t\treturn 0;\n \t}",
"Integer getDefaultWidth();",
"CellStyleCriterion border(Keywords.BorderSide first, Keywords.BorderSide second, Consumer<BorderCriterion> borderConfiguration);",
"CellStyleCriterion border(Keywords.BorderSide first, Keywords.BorderSide second, Keywords.BorderSide third, Consumer<BorderCriterion> borderConfiguration);",
"private void setBorder(TitledBorder titledBorder) {\n\n}",
"public java.lang.String getCrossBorderIndicator() {\r\n return crossBorderIndicator;\r\n }",
"public boolean getBorderVisible() {\n checkWidget();\n return borderLeft == 1;\n }",
"public Color getDefaultColor() {\n return defaultColor;\n }",
"private void drawBorder(Graphics2D g2, boolean enabled, int x, int y, int w, int h)\r\n/* 193: */ {\r\n/* 194:228 */ g2.setColor(enabled ? PlasticLookAndFeel.getControlDarkShadow() : MetalLookAndFeel.getControlDisabled());\r\n/* 195: */ \r\n/* 196: */ \r\n/* 197:231 */ g2.drawOval(x, y, w, h);\r\n/* 198: */ }",
"public static XSSFCellStyle cmBorderStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseBorderStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(cmBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}",
"void updateBorder(int offset) {\n setBorder(new EmptyBorder(0, offset, 0, 0));\n }",
"public String getDefaultAppearance() {\n/* 530 */ return getCOSObject().getString(COSName.DA);\n/* */ }",
"public static XSSFCellStyle tpBorderStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseBorderStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tpBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}",
"public NodeChildColorizer getNodeLabelBorderColorizer() {\n return nodeLabelBorderColorizer;\n }",
"@Override\n\t\tpublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {\n\t\t\tsuper.paintBorder(c, g, x - 1, y, width + 5, height);\n\t\t}",
"public void setBorder(Border border)\r\n {\r\n Border myBorder = border;\r\n if (border instanceof javax.swing.plaf.BorderUIResource.LineBorderUIResource)\r\n {\r\n myBorder = BorderFactory.createEmptyBorder();\r\n }\r\n super.setBorder(myBorder);\r\n }",
"IsDefaultPadding getBackdropPadding();",
"public void createScreenBorders() {\n // set the screen's borders.\n this.upper = 0;\n this.lower = 600;\n this.left = 0;\n this.right = 800;\n }",
"private void generateBorder() {\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tif (x == 0 || y == 0 || x == width - 1 || y == height - 1) {\n\t\t\t\t\ttiles[x + y * width] = Tile.darkGrass;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Color getDefaultGridColor() {\n return DEFAULT_GRID_COLOR;\n }",
"public int getBorderWarningDistance()\n {\n return borderWarningDistance;\n }",
"public int getBorders() {\n for (int row = 0; row < board.length; row++)\n for (int col = 0; col < board.length; col++) {\n\n // left-border (excluding corners - check 3 sides only)\n if (row != 0 && row != board.length - 1 && col == 0) {\n if (board[row - 1][col] != null && board[row][col + 1] !=\n null && board[row + 1][col] != null)\n if (board[row - 1][col].getPlayerNumber() == board[row][col + 1].getPlayerNumber()\n && board[row - 1][col].getPlayerNumber() == board[row + 1][col].getPlayerNumber() &&\n board[row][col + 1].getPlayerNumber() != board[row][col].getPlayerNumber())\n return board[row][col + 1].getPlayerNumber();\n }\n\n // right-border (excluding corners - check 3 sides only)\n if (row != 0 && row != board.length - 1 && col == board.length - 1) {\n if (board[row - 1][col] != null && board[row][col - 1] !=\n null && board[row + 1][col] != null)\n if (board[row - 1][col].getPlayerNumber() == board[row][col - 1].getPlayerNumber()\n && board[row - 1][col].getPlayerNumber() == board[row + 1][col].getPlayerNumber() &&\n board[row][col - 1].getPlayerNumber() != board[row][col].getPlayerNumber())\n return board[row][col - 1].getPlayerNumber();\n }\n\n // top-border (excluding corners - check 3 sides only)\n if (col != 0 && col != board.length - 1 && row == 0) {\n if (board[row][col - 1] != null && board[row][col + 1] !=\n null && board[row + 1][col] != null)\n if (board[row][col - 1].getPlayerNumber() == board[row][col + 1].getPlayerNumber()\n && board[row + 1][col].getPlayerNumber() == board[row][col - 1].getPlayerNumber() &&\n board[row][col - 1].getPlayerNumber() != board[row][col].getPlayerNumber())\n return board[row][col - 1].getPlayerNumber();\n }\n\n // bottom-border (excluding corners - check 3 sides only)\n if (col != 0 && col != board.length - 1 && row == board.length - 1) {\n if (board[row][col - 1] != null && board[row][col + 1] !=\n null && board[row - 1][col] != null)\n if (board[row][col - 1].getPlayerNumber() == board[row][col + 1].getPlayerNumber()\n && board[row - 1][col].getPlayerNumber() == board[row][col - 1].getPlayerNumber() &&\n board[row][col - 1].getPlayerNumber() != board[row][col].getPlayerNumber())\n return board[row][col - 1].getPlayerNumber();\n }\n\n }\n return -1;\n }",
"public void setBorder(int borderHeight, int borderWidth){\n this.borderHeight = borderHeight;\n this.borderWidth = borderWidth;\n }",
"CellStyleCriterion border(Keywords.BorderSide location, Consumer<BorderCriterion> borderConfiguration);"
] | [
"0.7715494",
"0.7661617",
"0.7408482",
"0.7317311",
"0.7280692",
"0.7263836",
"0.7256603",
"0.7226312",
"0.7068803",
"0.69876856",
"0.69428205",
"0.6930008",
"0.69271237",
"0.68859446",
"0.68736184",
"0.68471587",
"0.67703617",
"0.66992205",
"0.6688395",
"0.6684714",
"0.66372967",
"0.6623943",
"0.66048956",
"0.6600435",
"0.65770876",
"0.65535706",
"0.64623487",
"0.6454029",
"0.6415068",
"0.634737",
"0.62968606",
"0.627955",
"0.62523663",
"0.6235114",
"0.616503",
"0.6147284",
"0.6125683",
"0.6119493",
"0.6096817",
"0.6088822",
"0.6073007",
"0.6071397",
"0.60492676",
"0.6032776",
"0.6024809",
"0.60204995",
"0.60146075",
"0.5993838",
"0.5980944",
"0.5945903",
"0.59316266",
"0.5921943",
"0.59182274",
"0.5917829",
"0.58943146",
"0.5893325",
"0.58841115",
"0.5883836",
"0.5875792",
"0.58748835",
"0.58641404",
"0.584866",
"0.5842702",
"0.5806797",
"0.5806267",
"0.580292",
"0.5800241",
"0.5790282",
"0.5778222",
"0.57676715",
"0.5736161",
"0.57315254",
"0.57185316",
"0.57159716",
"0.5672835",
"0.56673026",
"0.5665358",
"0.5659921",
"0.56578183",
"0.5623983",
"0.5623979",
"0.5611919",
"0.561092",
"0.55873984",
"0.55847466",
"0.55768764",
"0.5556002",
"0.55559003",
"0.55536914",
"0.55493736",
"0.5539189",
"0.55357146",
"0.55298156",
"0.55031025",
"0.54928863",
"0.5490251",
"0.5481367",
"0.5474212",
"0.545575",
"0.54529786"
] | 0.78987634 | 0 |
Handle Scroller property changes. | protected void scrollerDidPropChange(PropChange anEvent)
{
// Get Property Name
String pname = anEvent.getPropName();
// Handle Scroller.ScrollX change
if (pname==Scroller.ScrollX_Prop)
getHBar().setScroll(_scroller.getScrollX());
// Handle Scroller.ScrollY change
else if (pname==Scroller.ScrollY_Prop)
getVBar().setScroll(_scroller.getScrollY());
// Handle Scroller.Width or Scroller.ScrollWidth change
else if (pname==Width_Prop || pname==Scroller.ScrollWidth_Prop) {
getHBar().setViewSize(_scroller.getWidth());
getHBar().setScrollSize(_scroller.getScrollWidth());
getHBar().setScroll(_scroller.getScrollX());
}
// Handle Scroller.Height or Scroller.ScrollHeight change
else if (pname==Scroller.Height_Prop || pname==Scroller.ScrollHeight_Prop) {
getVBar().setViewSize(_scroller.getHeight());
getVBar().setScrollSize(_scroller.getScrollHeight());
getVBar().setScroll(_scroller.getScrollY());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void scrollBarDidPropChange(PropChange aPC)\n {\n String pname = aPC.getPropName();\n if (pname==ScrollBar.Scroll_Prop) {\n ScrollBar sbar = (ScrollBar)aPC.getSource();\n double val = sbar.getScrollRatio();\n if (sbar==_hbar)\n _scroller.setScrollXRatio(val);\n else _scroller.setScrollYRatio(val);\n }\n }",
"public void propertyChange(PropertyChangeEvent param1PropertyChangeEvent) {\n/* 1520 */ String str = param1PropertyChangeEvent.getPropertyName();\n/* 1521 */ if (str == \"horizontalScrollBar\" || str == \"verticalScrollBar\")\n/* */ {\n/* */ \n/* 1524 */ if (param1PropertyChangeEvent.getNewValue() instanceof JScrollBar) {\n/* 1525 */ setScrollBarRelations((JScrollBar)param1PropertyChangeEvent.getNewValue());\n/* */ }\n/* */ }\n/* */ }",
"public void propertyChange(PropertyChangeEvent evt) {\n if(evt.getPropertyName().equals(\"position\")){\n// System.out.println(\"slider property change new val=\"+evt.getNewValue());\n sliderDontProcess=true;\n // note this cool semaphore/flag trick to avoid processing the\n // event generated when we programmatically set the slider position here\n playerSlider.setValue(Math.round(player.getFractionalPosition()*100));\n }else if(evt.getPropertyName().equals(\"readerStarted\")){\n log.info(\"MotionViewer.propertyChange: AEReader started, fixing device control menu\");\n // cypress reader started, can set device control for cypress usbio reader thread\n// fixDeviceControlMenuItems();\n }\n }",
"@Override\n\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}",
"public void propertyChange(PropertyChangeEvent evt) {\n \r\n }",
"@Override\n\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\tswitch (evt.getPropertyName()) {\n\n\t\t\t\t\t// propertyName progress tells us progress value\n\t\t\t\t\tcase \"progress\":\n\t\t\t\t\t\twindow.setScalingProgressBar((Integer) evt.getNewValue());\n\t\t\t\t\t}\n\n\t\t\t\t}",
"@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\n\t}",
"@Override\r\n\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\r\n\t}",
"@Override\n \tpublic void propertyChange(PropertyChangeEvent arg0) {\n \t\t\n \t}",
"@Override\n\tpublic void propertyChange(PropertyChangeEvent event) {\n\t\tString property = event.getPropertyName();\n\t\tif (property.equals(Global.DRAG_EVENT) && isVisible()) { //don't have to move invisible markers\n\t\t\thandleDrag(event.getOldValue(), event.getNewValue());\n\t\t} else if (property.startsWith(Global.ZOOM)){\n\t\t\thandleZoom();\n\t\t}\n\t}",
"@Override\n\tpublic void propertyChange(PropertyChangeEvent arg0)\n\t{\n\t\t\n\t}",
"private void FilterPropertyChanges(Object sender, PropertyChangedEventArgs e)\r\n {\r\n // check if this is the property of interest\r\n if (e.getPropertyValue(_propertyName)!= null)\r\n PropertyChanged();\r\n }",
"protected void PropertyChanged()\r\n { }",
"public void handleScrollBarUpdate(ScrollBar scrollBar);",
"public Scroller getScroller() { return _scroller; }",
"public void propertyChange(PropertyChangeEvent e) {\n\n logger.debug(LOG_TAG + \".propertyChangeListener()\");\n String propertyName = e.getPropertyName();\n\n switch(propertyName) {\n case \"progress\":\n logger.info(\"client progress: \" + e.getNewValue());\n\n break;\n case \"state\":\n StateValue stateValue = ((StateValue)e.getNewValue());\n logger.info(\"client state: \" + stateValue.toString());\n\n switch(stateValue) {\n case STARTED:\n\n break;\n case PENDING:\n\n break;\n case DONE:\n\n break;\n } // eof switch\n } // eof switch\n\n }",
"public void propertyChange(PropertyChangeEvent ev) {\n\t\tif (ev.getPropertyName().equals(HPort.PROPERTY_BOUNDS)) this.refreshVisuals();\r\n\t//\tif (ev.getPropertyName().equals(IHProvidesPort.PROPERTY_COLOR)) this.refreshVisuals();\r\n\r\n\t\t\t\r\n\t}",
"public void propertyChange(final PropertyChangeEvent _event)\n {\n this.updateStyle();\n }",
"@Override\n public void addPropertyChangeListener(PropertyChangeListener listener) {\n\n }",
"public void propertyChange(PropertyChangeEvent evt) {\r\n fireStateChanged();\r\n }",
"public void propertyChange(PropertyChangeEvent event) {\r\n\t\tString property = event.getPropertyName();\r\n\t\tif (\"bendpoint\".equals(property)) //$NON-NLS-1$\r\n\t\t\trefreshVisuals(); \r\n\t}",
"@Override\n public void propertyChange(PropertyChangeEvent pce) {\n if (\"progress\".equals(pce.getPropertyName()) ) {\n int progress = (Integer) pce.getNewValue();\n jProgressBar1.setValue( progress );\n if (progress == 100 ) {\n jBtnReadFile.setEnabled(true);\n jBtnWriteFile.setEnabled(true);\n }\n }\n }",
"@Override\r\n\tpublic void adjustmentValueChanged(AdjustmentEvent evt) {\n\t\tAdjustable source = evt.getAdjustable();\r\n\r\n\t\t// check if user is currently dragging the scrollbar's knob\r\n\t\tif (evt.getValueIsAdjusting()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// get the orientation of the adjustable object\r\n\t\tint orientation = source.getOrientation();\r\n\r\n\t\tif (orientation == Adjustable.HORIZONTAL) {\r\n\t\t\tSystem.out.println(\"Event from horizontal scrollbar\");\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Event from vertical scrollbar\");\r\n\t\t}\r\n\r\n\t\t// get the type of adjustment which caused the value changed event\r\n\r\n//\t\tint type = evt.getAdjustmentType();\r\n\r\n//\t\tswitch (type) {\r\n//\t\tcase AdjustmentEvent.UNIT_INCREMENT:\r\n//\t\t\tSystem.out.println(\"increased by one unit\");\r\n//\t\t\tbreak;\r\n//\r\n//\t\tcase AdjustmentEvent.UNIT_DECREMENT:\r\n//\t\t\tSystem.out.println(\"decreased by one unit\");\r\n//\t\t\tbreak;\r\n//\r\n//\t\tcase AdjustmentEvent.BLOCK_INCREMENT:\r\n//\t\t\tSystem.out.println(\"increased by one block\");\r\n//\t\t\tbreak;\r\n//\r\n//\t\tcase AdjustmentEvent.BLOCK_DECREMENT:\r\n//\t\t\tSystem.out.println(\"decreased by one block\");\r\n//\t\t\tbreak;\r\n//\t\tcase AdjustmentEvent.TRACK:\r\n//\t\t\tSystem.out.println(\"knob on the scrollbar was dragged\");\r\n//\t\t\tbreak;\r\n//\r\n//\t\t}\r\n\r\n\t\t// get the current value in the adjustment event\r\n//\t\tint value = evt.getValue();\r\n//\t\tSystem.out.println(\"Current Value: \" + value);\r\n\t}",
"@Override\n\tpublic void propertyChange() {\n\t\tthis.apply();\n\t}",
"protected void do_socialSecurityFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}",
"@Override\n public void propertyChange(PropertyChangeEvent evt) {\n requestProcessor.post(new Runnable() {\n @Override\n public void run() {\n initModels();\n }\n });\n }",
"void onChangeEvent(CarPropertyValue value);",
"protected void do_utilityFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}",
"@Override\n public void propertyChange(final PropertyChangeEvent theEvent) {\n if (\"speed up\".equals(theEvent.getPropertyName())) {\n faster();\n } else if (\"change dimensions\".equals(theEvent.getPropertyName())) {\n myWidth = (int) theEvent.getOldValue();\n myHeight = (int) theEvent.getNewValue();\n } else if (\"update board\".equals(theEvent.getPropertyName())) {\n myGameMode = (String) theEvent.getOldValue();\n myBoard = (Board) theEvent.getNewValue();\n }\n }",
"public void setPropertyChanged(com.app.tvp.cas.cliente.PropertyChangedEventHandler propertyChanged) {\n this.propertyChanged = propertyChanged;\n }",
"protected void do_foodStampsFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}",
"public void propertyChange(PropertyChangeEvent evt) \n{\n\tif (\"progress\" == evt.getPropertyName()) \n\t{\n\t\tint progress = (Integer) evt.getNewValue();\n\t\tprogressMonitor.setProgress(progress);\n\t\tString message =\n\t\t\tString.format(\"Completando Rotina %d de %d - %d%%.\\n\",counterPassos, totalPassos, progress);\n\t\tprogressMonitor.setNote(message);\n\t\tif (progressMonitor.isCanceled()) {\n\t\t\ttask.cancel(true);\n\t\t} \n\n\t}\n}",
"public void setWheelScrollingEnabled(boolean paramBoolean) {\n/* 1323 */ boolean bool = this.wheelScrollState;\n/* 1324 */ this.wheelScrollState = paramBoolean;\n/* 1325 */ firePropertyChange(\"wheelScrollingEnabled\", bool, paramBoolean);\n/* */ }",
"public void propertyChange(PropertyChangeEvent evt) {\n super.propertyChange(evt);\n if (evt.getPropertyName() == \"keeperactivity\") {\n this.setJob((String) evt.getNewValue());\n }\n else if (evt.getPropertyName() == \"foodactivity\"){\n this._makeAnnouncement(\"The food server just served \" + (String) evt.getNewValue());\n }\n }",
"@Override\n\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\tfillFields();\n\t}",
"void setScroller(Scroller scroller) {\n this.scroller = scroller;\n }",
"protected void propertyChange(PropertyChangeEvent evt) {\n if (evt.getPropertyName().equals(\"editable\") ||\n evt.getPropertyName().equals(\"enabled\")) {\n\n updateBackground((JTextComponent)evt.getSource());\n } else if (evt.getPropertyName().equals(\"caretWidth\")) {\n Object value = evt.getNewValue();\n if (value instanceof Number) {\n int width = ((Number) value).intValue();\n if (width >= 0) caretMargin = width;\n }\n }\n }",
"public void propertyChange(PropertyChangeEvent evt) {\n if (JSplitPane.DIVIDER_LOCATION_PROPERTY.equals(evt.getPropertyName())) {\n int value = (Integer) evt.getNewValue();\n\n Preferences detail = Application.getInstance().getPreferencesNode(this.getClass(), \"\");\n detail.putInt(getDividerLocationProperty(), value);\n }\n }",
"protected void valueChanged() {\r\n \t\tint newValue = slider.getSelection();\r\n \t\tint oldValue = this.intValue;\r\n \t\tintValue = newValue;\r\n \t\tjava.beans.PropertyChangeEvent event = new java.beans.PropertyChangeEvent(\r\n \t\t\t\tthis, IPropertyEditor.VALUE, oldValue, newValue);\r\n \t\tvalueChangeListener.valueChange(event);\r\n \t}",
"void setStatusProperty(String property, Double value);",
"public void modelPropertyChange(PropertyChangeEvent evt) {\n\t\t\n\t}",
"@Override\n public void onPropertiesChanged(DeviceConfig.Properties properties) {\n if (mOnDeviceConfigChange != null) {\n mOnDeviceConfigChange.onDefaultRefreshRateChanged();\n updateState(mListPreference);\n }\n }",
"public final void propertyChange(PropertyChangeEvent evt) {\n Object oldValue = evt.getOldValue();\n Object newValue = evt.getNewValue();\n String propertyName = evt.getPropertyName();\n if ((oldValue instanceof Document) || (newValue instanceof Document)) {\n if (oldValue != null) {\n ((Document)oldValue).removeDocumentListener(this);\n i18nView = false;\n }\n if (newValue != null) {\n ((Document)newValue).addDocumentListener(this);\n if (\"document\" == propertyName) {\n setView(null);\n BasicTextUI.this.propertyChange(evt);\n modelChanged();\n return;\n }\n }\n modelChanged();\n }\n if (\"focusAccelerator\" == propertyName) {\n updateFocusAcceleratorBinding(true);\n } else if (\"componentOrientation\" == propertyName) {\n // Changes in ComponentOrientation require the views to be\n // rebuilt.\n Document document = editor.getDocument();\n final String I18NProperty = \"i18n\";\n // if a default direction of right-to-left has been specified,\n // we want complex layout even if the text is all left to right.\n if (ComponentOrientation.RIGHT_TO_LEFT == newValue\n && ! Boolean.TRUE.equals(document.getProperty(I18NProperty))) {\n document.putProperty(I18NProperty, Boolean.TRUE);\n }\n modelChanged();\n } else if (\"font\" == propertyName) {\n modelChanged();\n } else if (\"dropLocation\" == propertyName) {\n dropIndexChanged();\n } else if (\"editable\" == propertyName) {\n updateCursor();\n modelChanged();\n }\n BasicTextUI.this.propertyChange(evt);\n }",
"@Override\n public void propertyChange(PropertyChangeEvent evt) {\n modelToView(handle);\n }",
"@Override\n public void propertyChange(PropertyChangeEvent e) {\n this.updateCoords();\n }",
"public void propertyChange(String propertyName, Object oldValue, Object newValue) {\r\n propertyChangeSupport.firePropertyChange(propertyName, oldValue, newValue);\r\n }",
"PropertyChangeListener[] getPropertyChangeListeners();",
"public void propertyChange(PropertyChangeEvent evt) {\n\t\t/*\n\t\t * String prop = evt.getPropertyName();\n\t\t * if(prop.equals(ConceptSelector.CONCEPT_SELECTED) && evt.getNewValue()\n\t\t * != null){ ReportDocument doc =\n\t\t * caseAuthor.getReportPanel().getReportDocument();\n\t\t * doc.clearBackground(); ConceptEntry entry = (ConceptEntry)\n\t\t * evt.getNewValue(); for(ConceptLabel lbl: entry.getLabels()){\n\t\t * lbl.setBackgroundColor(Color.yellow); lbl.update(doc); } }\n\t\t */\n\t}",
"public void propertyChange(PropertyChangeEvent evt)\n {\n //if (\"progress\" == evt.getPropertyName())\n if (\"progress\".equalsIgnoreCase( evt.getPropertyName()))\n {\n int progress = (Integer) evt.getNewValue();\n System.out.println(String.format(\"Completed %d%% of task.\\n\", task.getProgress()));\n jLabelRegion.setText(progress+\"%\");\n System.out.println(\"valeur:\"+progress);\n }\n }",
"public void onWSChange() {\n log.debug(\"ID componente: \" + selectWS);\n if (selectWS != null && !selectWS.isEmpty()) {\n CommunicationBridge communicationBridge = findCommunicationById(selectWS.toString());\n parameterWS = communicationBridge.getNumParameter();\n productToolOperation.loadConfigCommunicationBridgeProperty(planConfigBehavior.getTemplatePlanLevelSet(), communicationBridge, sourcePropertyWSList, targetPropertyWSList, propertyListAndWSMap);\n } else {\n parameterWS = 0;\n sourcePropertyWSList.clear();\n targetPropertyWSList.clear();\n propertiesWs.setSource(sourcePropertyWSList);\n propertiesWs.setTarget(targetPropertyWSList);\n\n }\n\n\n }",
"void onPropertyChange(String key);",
"public void propertyChange(PropertyChangeEvent ce) {\n if (ce.getPropertyName().equals(Adjuster.CHANGE_TAG)) {\n MyGovernor.setMsgDelay(((Integer)ce.getNewValue()).intValue());\n }\n }",
"protected void do_tanfFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}",
"@Override\n public void propertyChange(PropertyChangeEvent evt) {\n if(evt.getPropertyName().equals(\"gameOver\")){\n PropertyChangeSupportBoolean newVal = (PropertyChangeSupportBoolean) evt.getSource();\n if(newVal.getValue() == true){\n UIManager.getInstance().gameOver(false);\n }\n }\n\n if(evt.getPropertyName().equals(\"loanRemoved\")){\n PropertyChangeSupportBoolean newVal = (PropertyChangeSupportBoolean) evt.getSource();\n if(newVal.getValue() == true){\n FinanceBankingSystemController financeBankingSystemController = (FinanceBankingSystemController) UIManager.getInstance().getModule(GameModuleType.FINANCE_BANKING_SYSTEM).getController();\n financeBankingSystemController.removeLoan();\n }\n }\n\n if (evt.getPropertyName().equals(\"updatedMonthlyData\")) {\n FinanceOverviewController financeOverviewController = (FinanceOverviewController) UIManager.getInstance().getGameView(GameViewType.FINANCES).getModule(GameModuleType.FINANCE_OVERVIEW).getController();\n\n Map<String, String[]> monthlyData = GameController.getInstance().getMonthlyData();\n String[] xNames = monthlyData.get(\"xNames\");\n for (Map.Entry<String,String[]> entry : monthlyData.entrySet()) {\n if(!entry.getKey().equals(\"xNames\")){\n financeOverviewController.updateCharts(entry.getKey().replace(\"Monthly\", \"\"), entry.getValue(), xNames);\n }\n }\n }\n\n if (evt.getPropertyName().equals(\"updatedQuarterlyData\")) {\n OperationsTableController operationsTableController = (OperationsTableController) UIManager.getInstance().getGameView(GameViewType.FINANCES).getModule(GameModuleType.FINANCE_OPERATIONS_TABLE).getController();\n\n Map<String, String[]> quarterlyData = GameController.getInstance().getQuarterlyData();\n String[] colNames = quarterlyData.get(\"colNames\");\n for (Map.Entry<String,String[]> entry : quarterlyData.entrySet()) {\n if(!entry.getKey().equals(\"colNames\")){\n operationsTableController.updateTable(entry.getKey().replace(\"Quarterly\", \"\"), entry.getValue(), colNames);\n }\n }\n }\n\n FinanceOverviewController financeOverviewController = (FinanceOverviewController) UIManager.getInstance().getGameView(GameViewType.FINANCES).getModule(GameModuleType.FINANCE_OVERVIEW).getController();\n\n if (evt.getPropertyName().equals(\"netWorth\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n financeOverviewController.setNetWorthLabel(CapCoinFormatter.getCapCoins(newVal.getValue()));\n UIManager.getInstance().getGameHudController().updateNetworthLabel(newVal.getValue());\n }else if (evt.getPropertyName().equals(\"cash\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n financeOverviewController.setCashLabel(CapCoinFormatter.getCapCoins(newVal.getValue()));\n UIManager.getInstance().getGameHudController().updateCashLabel(newVal.getValue());\n }else if (evt.getPropertyName().equals(\"assets\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n financeOverviewController.setAssetsLabel(CapCoinFormatter.getCapCoins(newVal.getValue()));\n }else if (evt.getPropertyName().equals(\"liabilities\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n financeOverviewController.setLiabilitiesLabel(CapCoinFormatter.getCapCoins(newVal.getValue()));\n }else if (evt.getPropertyName().equals(\"netWorthDifference\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n UIManager.getInstance().getGameHudController().updateNetworthChangeLabel(newVal.getValue());\n }else if (evt.getPropertyName().equals(\"cashDifference\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n UIManager.getInstance().getGameHudController().updateCashChangeLabel(newVal.getValue());\n }\n\n FinanceInvestmentsController investmentsController = (FinanceInvestmentsController) UIManager.getInstance().getGameView(GameViewType.FINANCES).getModule(GameModuleType.FINANCE_INVESTMENTS).getController();\n\n if (evt.getPropertyName().equals(\"realEstateInvestmentAmount\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n investmentsController.setRealEstateLabel(UIManager.getLocalisedString(\"finance.investments.amount\") + \": \" + CapCoinFormatter.getCapCoins(newVal.getValue()));\n }else if (evt.getPropertyName().equals(\"stocksInvestmentAmount\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n investmentsController.setStocksLabel(UIManager.getLocalisedString(\"finance.investments.amount\") + \": \" + CapCoinFormatter.getCapCoins(newVal.getValue()));\n }else if (evt.getPropertyName().equals(\"ventureCapitalInvestmentAmount\")) {\n PropertyChangeSupportDouble newVal = (PropertyChangeSupportDouble) evt.getSource();\n investmentsController.setVentureCapitalLabel(UIManager.getLocalisedString(\"finance.investments.amount\") + \": \" + CapCoinFormatter.getCapCoins(newVal.getValue()));\n }\n\n if(evt.getPropertyName().equals(\"annualPrincipalBalance\") || evt.getPropertyName().equals(\"remainingDuration\")){\n FinanceBankingSystemController financeBankingSystemController = (FinanceBankingSystemController) UIManager.getInstance().getModule(GameModuleType.FINANCE_BANKING_SYSTEM).getController();\n financeBankingSystemController.updateLoan(this.loan);\n }\n }",
"@Override\n public void propertyChange(PropertyChangeEvent evt) {\n\n System.out.println(\"Customer \" + this.name + \" observed a change in \" +\n evt.getPropertyName() + \" of \" + evt.getSource());\n\n System.out.println(\n evt.getOldValue() + \" has changed to \" + evt.getNewValue() + \". \");\n\n System.out.println();\n }",
"@Override\n\tpublic void setProperty(String propertyName, Object value) {\n\t\t\n\t}",
"public void testChangePropertyHandler_Accuracy() {\n assertNotNull(\"Test method for 'ChangePropertyHandler(MainFrame)' failed.\", handler);\n }",
"public void propertiesChanged(String property, String value) {\n\t\tif(property != null) {\n \t\t\tFComponent comp = mainFrame.getSelectedComponent().getComponent();\n \t\t\tif(comp.getLabel() == null || !comp.getLabel().equals(value)) {\n \t\t\t\tcomp.setLabel(value);\n \t\t\t\tmainFrame.refreshPreview();\t\t\t\t\n \t\t\t}\n \t\t}\n \t}",
"@Override\n public void propertyChange(PropertyChangeEvent event) {\n if (!hasOverrideFor(event.getProperty()))\n fireMappingChanged(event.getProperty(), event.getOldValue(), event.getNewValue());\n }",
"protected void firePropertyChange(String propertyName,Object oldValue,\n Object newValue){\n super.firePropertyChange(propertyName,oldValue,newValue);\n if(propertyName.equals(EnableWindowBlit)){\n if(newValue!=null){\n setScrollMode(BLIT_SCROLL_MODE);\n }else{\n setScrollMode(SIMPLE_SCROLL_MODE);\n }\n }\n }",
"public void propertyChange(PropertyChangeEvent pce) {\n\n if (pce.getPropertyName().equals(\"estado\")){\n\n Estado.Estados nuevoEstado = (Estado.Estados) pce.getNewValue();\n this.ajustarComponentes(nuevoEstado);\n \n } \n }",
"@Override\n public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {\n }",
"protected void do_childSupportFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}",
"public void propertyChange(PropertyChangeEvent e) {\n String name = e.getPropertyName();\n if (name.equals(\"stepnumber\")) { //$NON-NLS-1$\n if (trackerPanel.getSelectedTrack() == this) {\n displayWorldCoordinates();\n stepValueLabel.setText(e.getNewValue() + \":\"); //$NON-NLS-1$\n }\n } else if (name.equals(\"locked\")) { //$NON-NLS-1$\n xField.setEnabled(!isLocked());\n yField.setEnabled(!isLocked());\n } else super.propertyChange(e);\n }",
"void onPropertyChange(String name, String newValue);",
"public void propertyChange(PropertyChangeEvent evt) {\n\t\t\t if (\"progress\" == evt.getPropertyName()) {\n\t\t\t int progress = (Integer) evt.getNewValue();\n\t\t\t if ( progress < 100 ) {\n\t\t\t \tprogressBar.setValue(progress);\n\t\t\t \ttaskOutput.append(\n\t\t\t \t\t\tString.format(\"Gerando Arquivo %d%% .\\n\", task.getProgress() )\n\t\t\t \t);\n\t\t\t }\n\t\t\t } \n\t\t\t }",
"public void propertyChange(PropertyChangeEvent evt) {\n\t\t\t if (\"progress\" == evt.getPropertyName()) {\n\t\t\t int progress = (Integer) evt.getNewValue();\n\t\t\t if ( progress < 100 ) {\n\t\t\t \tprogressBar.setValue(progress);\n\t\t\t \ttaskOutput.append(\n\t\t\t \t\t\tString.format(\"Gerando Arquivo %d%% .\\n\", task.getProgress() )\n\t\t\t \t);\n\t\t\t }\n\t\t\t } \n\t\t\t }",
"public void setHorizontalScrollBarPolicy(int paramInt) {\n/* 548 */ switch (paramInt) {\n/* */ case 30:\n/* */ case 31:\n/* */ case 32:\n/* */ break;\n/* */ default:\n/* 554 */ throw new IllegalArgumentException(\"invalid horizontalScrollBarPolicy\");\n/* */ } \n/* 556 */ int i = this.horizontalScrollBarPolicy;\n/* 557 */ this.horizontalScrollBarPolicy = paramInt;\n/* 558 */ firePropertyChange(\"horizontalScrollBarPolicy\", i, paramInt);\n/* 559 */ revalidate();\n/* 560 */ repaint();\n/* */ }",
"private void speedStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_speedStateChanged\n\n int speedvalue = speed.getValue();//gets the value of the speed slider from the control panel\n roboLogic.speed(speedvalue); // calls the speed method of the RobotLogic class\n\n\n }",
"@Override\n\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\n\t\t\tint curCol = theView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().getSelectedColumn();\n\t\t\tint curRow = theView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().getSelectedRow();\n\t\t\tif(curRow>=saleItems.size())\n\t\t\t{\n\t\t\t\tif(saleItems.size()<1)\n\t\t\t\t\ttheView.getTabsPane().getMakeSalePanel().disableCartButtons();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(curCol==2)\n\t\t\t{\n\t\t\t\t/*\n\t\t\t\t * Regular expressions for checking correct format od decimal and integer\n\t\t\t\t */\n\t\t\t\tString regexDecimal = \"^-?\\\\d*\\\\.\\\\d+$\";\n\t\t\t\tString regexInteger = \"^-?\\\\d+$\";\n\t\t\t\tString regexDouble = regexDecimal + \"|\" + regexInteger;\n\n\t\t\t\tif(!theView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().getValueAt(curRow, curCol).toString().matches(regexDouble))\n\t\t\t\t{\n\t\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().setValueAt(saleItems.get(curRow).getPrice(), curRow, curCol);\n\t\t\t\t\tJOptionPane.showMessageDialog(theView, \"Enter only valid price!\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdouble newPrice = (double) theView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().getValueAt(curRow, curCol);\n\t\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().setValueAt(newPrice, curRow, curCol);\n\t\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().setValueAt((newPrice*(double)quantities.get(curRow)), curRow, 4);\n\t\t\t\t\tsaleItems.get(curRow).setPrice(newPrice);\n\t\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().repaint();\n\t\t\t\t\ttotal=0;\n\t\t\t\t\tfor(int i = 0 ; i<saleItems.size();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\ttotal+=saleItems.get(i).getPrice()*(int)quantities.get(i);\n\t\t\t\t\t}\n\t\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().setTotal(total);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(curCol==3)\n\t\t\t{\n\t\t\t\tif(!theView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().getValueAt(curRow, curCol).toString().matches(\"^\\\\d+$\"))\n\t\t\t\t{\n\t\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().setValueAt(quantities.get(curRow), curRow, curCol);\n\t\t\t\t\tJOptionPane.showMessageDialog(theView, \"Enter only whole positive numbers!\");\n\t\t\t\t}\n\t\t\t\telse if(saleItems.get(curRow)!=null&&(int)theView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().getValueAt(curRow, curCol)>saleItems.get(curRow).getAvailableStockLevel())\n\t\t\t\t{\n\t\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().setValueAt(quantities.get(curRow), curRow, curCol);\n\n\t\t\t\t\tJOptionPane.showMessageDialog(theView, \"Exeeded availible stock!\");\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tint newQuantity = (int) theView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().getValueAt(curRow, curCol);\n\n\t\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().setValueAt(newQuantity, curRow, curCol);\n\t\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().setValueAt((saleItems.get(curRow).getPrice()*newQuantity), curRow, 4);\n\t\t\t\t\tquantities.set(curRow, newQuantity);\n\t\t\t\t\ttotal=0;\n\t\t\t\t\tif(newQuantity<=0)\n\t\t\t\t\t{\n\t\t\t\t\t\tsaleItems.remove(curRow);\n\t\t\t\t\t\tquantities.remove(curRow);\n\t\t\t\t\t}\n\t\t\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().getCheckoutTable().repaint();\t\n\t\t\t\t\t\tfor(int i = 0 ; i<saleItems.size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(saleItems.get(i)!=null)\n\t\t\t\t\t\t\t\ttotal+=saleItems.get(i).getPrice()*(int)quantities.get(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().setTotal(total);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(total>0.0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Total is bigger than zero\");\n\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().getCompleteSaleButton().setEnabled(true);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Total is less than zero\");\n\t\t\t\ttheView.getTabsPane().getMakeSalePanel().getpSale().getCompleteSaleButton().setEnabled(false);\n\t\t\t}\n\t\t\tSystem.out.println(total);\n\t\t}",
"public String listen(String key, PropertyChangedCallback callback);",
"public ObjectProperty<EventHandler<ScrollToEvent<Integer>>> onScrollToProperty() {\n\n return this.getWrappedControl().onScrollToProperty();\n }",
"public void propertyChange(PropertyChangeEvent evt)\n/* */ {\n/* 76 */ CompoundPainter<?> painter = (CompoundPainter)this.ref.get();\n/* */ \n/* 78 */ if (painter == null) {\n/* 79 */ AbstractPainter<?> src = (AbstractPainter)evt.getSource();\n/* 80 */ src.removePropertyChangeListener(this);\n/* */ } else {\n/* 82 */ String property = evt.getPropertyName();\n/* */ \n/* 84 */ if ((\"dirty\".equals(property)) && (evt.getNewValue() == Boolean.FALSE)) {\n/* 85 */ return;\n/* */ }\n/* */ \n/* 88 */ painter.setDirty(true);\n/* */ }\n/* */ }",
"public void setVerticalScrollBarPolicy(int paramInt) {\n/* 500 */ switch (paramInt) {\n/* */ case 20:\n/* */ case 21:\n/* */ case 22:\n/* */ break;\n/* */ default:\n/* 506 */ throw new IllegalArgumentException(\"invalid verticalScrollBarPolicy\");\n/* */ } \n/* 508 */ int i = this.verticalScrollBarPolicy;\n/* 509 */ this.verticalScrollBarPolicy = paramInt;\n/* 510 */ firePropertyChange(\"verticalScrollBarPolicy\", i, paramInt);\n/* 511 */ revalidate();\n/* 512 */ repaint();\n/* */ }",
"protected void do_disabilityFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}",
"@Override\n public void onPropertyChanged(Observable sender, int propertyId) {\n if (propertyId == Conversation.STATE_PROPERTY_ID) {\n updateConversationState();\n }\n }",
"private void onScrollDetected() {\n swipeRefreshLayout.setEnabled(false); // don't allow refreshes if we are scrolling\n }",
"public void dispatch() {\n if (getScrollChild() == null) {\n return;\n }\n\n peer.ignoreSetValue = true;\n adjuster.setValue(value);\n peer.ignoreSetValue = false;\n }",
"public void stateChanged(ChangeEvent event)\n {\n JSlider source = (JSlider) event.getSource();\n if (!source.getValueIsAdjusting())\n {\n SensorInfo.getInstance().setSliderSpeed(source.getValue());\n Controller.getInstance().setMotors();\n }\n }",
"private static void usePropertyChangeListener() {\n SimpleStringProperty stringProperty = new SimpleStringProperty(\"xyz\");\n // Prints property's value\n System.out.println(stringProperty.getValue());\n // Adds a listener - action that will be run if property's value changes.\n stringProperty.addListener((observable, oldValue, newValue) -> {\n System.out.println(\"New value is set: \" + newValue);\n });\n // Sets new value\n stringProperty.setValue(\"Some new value\");\n }",
"public void adjustmentValueChanged(AdjustmentEvent evt) {\n \n if (evt.getSource() == hscroll) {\n \n int offx = hscroll.getValue();\n \n // This should be n*bases per pixel\n\n int bpp = (int)(1.0/av.getCharWidth());\n\n if (bpp > 0) {\n\toffx = offx - offx%bpp;\n }\n //hscroll.setValue(offx);\n if (offx != oldoffx) {\n\tav.setStartRes(offx);\n\tav.setEndRes((int)(offx + (seqCanvas.size().width/av.getCharWidth())));\n\t\n\tcontroller.handleAlignViewportEvent(new AlignViewportEvent(this,av,AlignViewportEvent.HSCROLL));\n\t\n\thscroll.revalidate();\n }\n oldoffx = offx;\n }\n \n if (evt.getSource() == vscroll) {\n int offy = vscroll.getValue();\n if (oldoffy != offy) {\n\tav.setStartSeq(offy);\n\tav.setEndSeq(offy + seqCanvas.getSize().height/av.getCharHeight());\n\tcontroller.handleAlignViewportEvent(new AlignViewportEvent(this,av,AlignViewportEvent.LIMITS));\n }\n oldoffy = offy;\n }\n }",
"@Override\n\t\tpublic void processPropertyDocument(PropertyDocument propertyDocument) {\n\t\t}",
"public final void propertyChange(final PropertyChangeEvent event) {\n\t\tfinal Object subject = event.getSource();\n\t\tfinal String changedProperty = event.getProperty();\n\n\t\tif (PropertyChangeNames.isStatusChange(changedProperty)) {\n\t\t\tassert ModelUtils.isModelItem(subject);\n\n\t\t\tif (subject == deviceUnderDisplay) {\n\t\t\t\t// final DeviceStatus status = (DeviceStatus)\n\t\t\t\t// event.getNewValue();\n\t\t\t\tif (compositeUnderDisplay instanceof DeviceUI\n\t\t\t\t\t\t&& !compositeUnderDisplay.isDisposed()) {\n\t\t\t\t\t((DeviceUI) compositeUnderDisplay)\n\t\t\t\t\t\t\t.updateControls((Device) subject);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (PropertyChangeNames.isNodeRemove(changedProperty)) {\n\t\t\tViewUtils.disposeExistingControls(top);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t} else if (PropertyChangeNames.isProjectLoading(changedProperty)) {\n\t\t\t/*\n\t\t\t * Handle the change of the current project.\n\t\t\t */\n\t\t\tif (subject instanceof Project) {\n\t\t\t\tfinal Project project = (Project) subject;\n\t\t\t\tfinal NetworkInterfaceManager manager = project\n\t\t\t\t\t\t.getNetworkInterfaceManager();\n\n\t\t\t\tif (manager != null) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the network status listener as a network monitor in\n\t\t\t\t\t * order to receive all the network events.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addConnectionStatusListener(connectionStatusListener);\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Set the dispatcher status listener to show warnings when\n\t\t\t\t\t * messages are not being delivered.\n\t\t\t\t\t */\n\t\t\t\t\tmanager.addDispatcherListener(dispatcherListener);\n\t\t\t\t}\n\n\t\t\t\tProjectModel.getInstance().addDeviceConnectivityListener(\n\t\t\t\t\t\tconnectivityChangeListener);\n\t\t\t}\n\n\t\t\tsetDeviceUnderDisplay(null);\n\t\t\tViewUtils.createLabelPane(top, NO_VALID_SELECTION);\n\t\t}\n\t}",
"public void propertyChange(java.beans.PropertyChangeEvent evt) {\r\n\t//\r\n\t// must listen to the following events:\r\n\t// this.simulationContext\r\n\t//\t\tsimulationContext.GeometryContext.geometry\r\n\t// simulationContext.GeometryContext.structureMappings\r\n\t// StructureMapping.resolved\r\n\t//\r\n\t// this.speciesContextSpec\r\n\t// SpeciesContextSpec.parameters\r\n\t// Parameter.*\r\n\t//\r\n\ttry {\t\t\r\n\t\t//\r\n\t\t// if geometry changes (could affect spatially resolved boundaries).\r\n\t\t//\r\n\t\tif (fieldSpeciesContextSpec != null && evt.getSource() == fieldSpeciesContextSpec.getSimulationContext().getGeometryContext() \r\n\t\t\t\t&& evt.getPropertyName().equals(\"geometry\")){\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t\t//\r\n\t\t// if structureMappings array changes (could affect spatially resolved boundaries).\r\n\t\t//\r\n\t\tif (fieldSpeciesContextSpec != null && evt.getSource() == fieldSpeciesContextSpec.getSimulationContext().getGeometryContext() \r\n\t\t\t\t&& evt.getPropertyName().equals(\"structureMappings\")){\r\n\t\t\tStructureMapping[] oldStructureMappings = (StructureMapping[])evt.getOldValue();\r\n\t\t\tfor (int i = 0; oldStructureMappings!=null && i < oldStructureMappings.length; i++){\r\n\t\t\t\toldStructureMappings[i].removePropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t\tStructureMapping[] newStructureMappings = (StructureMapping[])evt.getNewValue();\r\n\t\t\tfor (int i = 0; newStructureMappings!=null && i < newStructureMappings.length; i++){\r\n\t\t\t\tnewStructureMappings[i].addPropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t\t//\r\n\t\t// if structureMapping changes (could affect spatially resolved boundaries).\r\n\t\t//\r\n\t\tif (evt.getSource() instanceof StructureMapping){\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t\t\r\n\t\tif (evt.getSource() == this && evt.getPropertyName().equals(\"speciesContextSpec\")) {\r\n\t\t\tSpeciesContextSpec oldValue = (SpeciesContextSpec)evt.getOldValue();\r\n\t\t\tif (oldValue!=null){\r\n\t\t\t\toldValue.removePropertyChangeListener(this);\r\n\t\t\t\tParameter oldParameters[] = oldValue.getParameters();\r\n\t\t\t\tif (oldParameters!=null) {\r\n\t\t\t\t\tfor (int i = 0; i<oldParameters.length; i++){\r\n\t\t\t\t\t\toldParameters[i].removePropertyChangeListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSimulationContext oldSimContext = oldValue.getSimulationContext();\r\n\t\t\t\tif (oldSimContext!=null){\r\n\t\t\t\t\toldSimContext.getGeometryContext().removePropertyChangeListener(this);\r\n\t\t\t\t\tStructureMapping[] oldStructureMappings = oldSimContext.getGeometryContext().getStructureMappings();\r\n\t\t\t\t\tif (oldStructureMappings!=null) {\r\n\t\t\t\t\t\tfor (int i = 0; i < oldStructureMappings.length; i++){\r\n\t\t\t\t\t\t\toldStructureMappings[i].removePropertyChangeListener(this);\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\tSpeciesContextSpec newValue = (SpeciesContextSpec)evt.getNewValue();\r\n\t\t\tif (newValue!=null){\r\n\t\t\t\tnewValue.addPropertyChangeListener(this);\r\n\t\t\t\tParameter newParameters[] = newValue.getParameters();\r\n\t\t\t\tif (newParameters != null) {\r\n\t\t\t\t\tfor (int i = 0; i < newParameters.length; i ++){\r\n\t\t\t\t\t\tnewParameters[i].addPropertyChangeListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSimulationContext newSimContext = newValue.getSimulationContext();\r\n\t\t\t\tif (newSimContext!=null){\r\n\t\t\t\t\tnewSimContext.getGeometryContext().addPropertyChangeListener(this);\r\n\t\t\t\t\tStructureMapping[] newStructureMappings = newSimContext.getGeometryContext().getStructureMappings();\r\n\t\t\t\t\tif (newStructureMappings != null) {\r\n\t\t\t\t\t\tfor (int i = 0; i < newStructureMappings.length; i++){\r\n\t\t\t\t\t\t\tnewStructureMappings[i].addPropertyChangeListener(this);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t\tif (evt.getSource() instanceof SpeciesContextSpec){\r\n\t\t\t// if parameters changed must update listeners\r\n\t\t\tif (evt.getPropertyName().equals(\"parameters\")) {\r\n\t\t\t\tParameter oldParameters[] = (Parameter[])evt.getOldValue();\r\n\t\t\t\tif (oldParameters!=null) {\r\n\t\t\t\t\tfor (int i = 0;i<oldParameters.length; i++){\r\n\t\t\t\t\t\toldParameters[i].removePropertyChangeListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tParameter newParameters[] = (Parameter[])evt.getNewValue();\r\n\t\t\t\tif (newParameters!=null) {\r\n\t\t\t\t\tfor (int i = 0;i<newParameters.length; i++){\r\n\t\t\t\t\t\tnewParameters[i].addPropertyChangeListener(this);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!evt.getPropertyName().equals(SpeciesContextSpec.PARAMETER_NAME_PROXY_PARAMETERS)) {\r\n\t\t\t\t// for any change to the SpeciesContextSpec, want to update all.\r\n\t\t\t\t// proxy parameters don't affect table\r\n\t\t\t\trefreshData();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(evt.getSource() instanceof Parameter){\r\n\t\t\trefreshData();\r\n\t\t}\r\n\t} catch (Exception e){\r\n\t\te.printStackTrace(System.out);\r\n\t}\r\n}",
"@Override\r\n\tpublic void propertyChange(PropertyChangeEvent evt) {\t\t\r\n\r\n\t\tProgressEvent event = ProgressEvent.getEvent(evt.getPropertyName());\r\n\t\t\r\n\t\tif( event == ProgressEvent.ONTOLOGY_LOADED ) {\r\n\t\t\t// The algorithm has been completed, update the report text area.\r\n\t\t\tprogressBar.setIndeterminate(false);\r\n\t\t\tprogressBar.setValue(100);\r\n\t\t\treport.append(treeBuilder.getReport());\r\n\t\t\tcancelButton.setEnabled(false);\r\n\t\t\tokButton.setEnabled(true);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse if( event == ProgressEvent.CLEAR_LOG ) {\r\n\t\t\treport.setText(\"\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse if( event == ProgressEvent.APPEND_LINE ) {\r\n\t\t\treport.append((String)evt.getNewValue() + \"\\n\");\r\n\t\t}\r\n\t\t\r\n\t}",
"void updatedProperty(TestResult tr, String name, String value);",
"public void addPropertyChangeListener(PropertyChangeListener listener);",
"@Override\n protected void updateProperties() {\n }",
"public void addPropertyChangeListener(PropertyChangeListener l);",
"void addPropertyChangeListener(PropertyChangeListener listener);",
"public abstract void addPropertyChangeListener(PropertyChangeListener listener);",
"private void setMyScroller() {\n try {\n Class<?> viewpager = ViewPager.class;\n Field scroller = viewpager.getDeclaredField(getResources().getString(R.string.scroll_key));\n scroller.setAccessible(true);\n scroller.set(this, new MyScroller(getContext()));\n } catch (Exception e) {\n Logger.logInfo(String.valueOf(e));\n }\n }",
"public void addListener(PropertyChangeListener listener, String propertyType);",
"private PropertyChangeListener createListener() {\n return new PropertyChangeListener() {\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n String propertyName = evt.getPropertyName();\n if (Filter.PROPERTY_PATTERN.equals(propertyName)) {\n DocumentViewPanel.RP.post(new Runnable() {\n @Override\n public void run() {\n refreshKeys();\n }\n });\n }\n }\n };\n }",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}"
] | [
"0.6493487",
"0.6240477",
"0.59605044",
"0.59360445",
"0.5859578",
"0.58581257",
"0.58441955",
"0.58441955",
"0.5752953",
"0.5747143",
"0.57361925",
"0.5712792",
"0.57051075",
"0.56851023",
"0.56743497",
"0.56368667",
"0.5631013",
"0.55843705",
"0.5464011",
"0.5445663",
"0.54330796",
"0.54310197",
"0.54261625",
"0.5421491",
"0.541349",
"0.539672",
"0.53730905",
"0.5338029",
"0.53302485",
"0.532132",
"0.53125715",
"0.5250791",
"0.5239838",
"0.5209343",
"0.51984376",
"0.5188186",
"0.5179989",
"0.5168621",
"0.51677185",
"0.5152884",
"0.5142726",
"0.5142585",
"0.5136916",
"0.5133095",
"0.5126942",
"0.5126251",
"0.51222557",
"0.51216805",
"0.50961226",
"0.50958765",
"0.50935936",
"0.5089153",
"0.5087271",
"0.50858134",
"0.50851774",
"0.5064301",
"0.5059367",
"0.5055211",
"0.5048502",
"0.5044645",
"0.5027992",
"0.50269943",
"0.50212246",
"0.501272",
"0.5012643",
"0.500078",
"0.49907303",
"0.49894",
"0.49894",
"0.49869385",
"0.4983906",
"0.49816096",
"0.4979987",
"0.4960333",
"0.49597996",
"0.49584863",
"0.49573123",
"0.49556312",
"0.49231312",
"0.49224228",
"0.4914313",
"0.4909598",
"0.48998648",
"0.48960066",
"0.48839608",
"0.488",
"0.48797765",
"0.48793593",
"0.48733136",
"0.48725373",
"0.4871256",
"0.48680565",
"0.48606703",
"0.4859102",
"0.48533714",
"0.4848838",
"0.48408997",
"0.48408997",
"0.48408997",
"0.48408997"
] | 0.6821332 | 0 |
Handle ScrollBar property changes. | public void scrollBarDidPropChange(PropChange aPC)
{
String pname = aPC.getPropName();
if (pname==ScrollBar.Scroll_Prop) {
ScrollBar sbar = (ScrollBar)aPC.getSource();
double val = sbar.getScrollRatio();
if (sbar==_hbar)
_scroller.setScrollXRatio(val);
else _scroller.setScrollYRatio(val);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleScrollBarUpdate(ScrollBar scrollBar);",
"public void propertyChange(PropertyChangeEvent param1PropertyChangeEvent) {\n/* 1520 */ String str = param1PropertyChangeEvent.getPropertyName();\n/* 1521 */ if (str == \"horizontalScrollBar\" || str == \"verticalScrollBar\")\n/* */ {\n/* */ \n/* 1524 */ if (param1PropertyChangeEvent.getNewValue() instanceof JScrollBar) {\n/* 1525 */ setScrollBarRelations((JScrollBar)param1PropertyChangeEvent.getNewValue());\n/* */ }\n/* */ }\n/* */ }",
"protected void scrollerDidPropChange(PropChange anEvent)\n {\n // Get Property Name\n String pname = anEvent.getPropName();\n\n // Handle Scroller.ScrollX change\n if (pname==Scroller.ScrollX_Prop)\n getHBar().setScroll(_scroller.getScrollX());\n\n // Handle Scroller.ScrollY change\n else if (pname==Scroller.ScrollY_Prop)\n getVBar().setScroll(_scroller.getScrollY());\n\n // Handle Scroller.Width or Scroller.ScrollWidth change\n else if (pname==Width_Prop || pname==Scroller.ScrollWidth_Prop) {\n getHBar().setViewSize(_scroller.getWidth());\n getHBar().setScrollSize(_scroller.getScrollWidth());\n getHBar().setScroll(_scroller.getScrollX());\n }\n\n // Handle Scroller.Height or Scroller.ScrollHeight change\n else if (pname==Scroller.Height_Prop || pname==Scroller.ScrollHeight_Prop) {\n getVBar().setViewSize(_scroller.getHeight());\n getVBar().setScrollSize(_scroller.getScrollHeight());\n getVBar().setScroll(_scroller.getScrollY());\n }\n }",
"void setScrollBar(final JScrollBar sb) {\n this.scrollBar = sb;\n }",
"public void setVerticalScrollBar(JScrollBar paramJScrollBar) {\n/* 906 */ JScrollBar jScrollBar = getVerticalScrollBar();\n/* 907 */ this.verticalScrollBar = paramJScrollBar;\n/* 908 */ add(paramJScrollBar, \"VERTICAL_SCROLLBAR\");\n/* 909 */ firePropertyChange(\"verticalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 911 */ revalidate();\n/* 912 */ repaint();\n/* */ }",
"public void setVerticalScrollBarPolicy(int paramInt) {\n/* 500 */ switch (paramInt) {\n/* */ case 20:\n/* */ case 21:\n/* */ case 22:\n/* */ break;\n/* */ default:\n/* 506 */ throw new IllegalArgumentException(\"invalid verticalScrollBarPolicy\");\n/* */ } \n/* 508 */ int i = this.verticalScrollBarPolicy;\n/* 509 */ this.verticalScrollBarPolicy = paramInt;\n/* 510 */ firePropertyChange(\"verticalScrollBarPolicy\", i, paramInt);\n/* 511 */ revalidate();\n/* 512 */ repaint();\n/* */ }",
"private void updateScrollBarSize() {\n int textHeight = getTextHeight();\n if (textHeight <= windowHeight) {\n Root.getChildren().remove(scrollBar);\n } else {\n if (!Root.getChildren().contains(scrollBar)) {\n Root.getChildren().add(scrollBar);\n }\n double range = textHeight - windowHeight;\n scrollBar.setMax(range);\n scrollBar.setVisibleAmount(10);\n }\n }",
"JScrollBar getScrollBar() {\n return scrollBar;\n }",
"private void updateScrollbars() {\n if (!inUpdateScrollbars) {\n inUpdateScrollbars = true;\n try {\n doUpdateScrollbar();\n } finally {\n inUpdateScrollbars = false;\n }\n } else {\n if (!inUpdateScrollbarsLogged) {\n inUpdateScrollbarsLogged = true;\n ILog logger = TerminalPlugin.getDefault().getLog();\n logger.log(new Status(WARNING, TerminalPlugin.PLUGIN_ID, OK, \"Unexpected Recursion in terminal\", null));\n }\n }\n }",
"public void setHorizontalScrollBar(JScrollBar paramJScrollBar) {\n/* 847 */ JScrollBar jScrollBar = getHorizontalScrollBar();\n/* 848 */ this.horizontalScrollBar = paramJScrollBar;\n/* 849 */ if (paramJScrollBar != null) {\n/* 850 */ add(paramJScrollBar, \"HORIZONTAL_SCROLLBAR\");\n/* */ }\n/* 852 */ else if (jScrollBar != null) {\n/* 853 */ remove(jScrollBar);\n/* */ } \n/* 855 */ firePropertyChange(\"horizontalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 857 */ revalidate();\n/* 858 */ repaint();\n/* */ }",
"public interface IScrollBarUpdateHandler {\n\n\t/**\n\t * This method is called, when a ScrollBar was updated (e.g. dragged by a user).\n\t * \n\t * @param scrollBar\n\t * The ScrollBar that was updated.\n\t */\n\tpublic void handleScrollBarUpdate(ScrollBar scrollBar);\n\n}",
"public void CheckScrollBar() {\n \tif (data3d.Times > 1)\n {\n \tScrollbar Slider=label.TimeScrollbar;\n \tif (! ScrollbarPresent) { //\n\t\t\t\t\t\t// System.out.println(\"Adding a Scrollbar with \"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider=new Scrollbar(Scrollbar.VERTICAL, 0, 1, 0, data3d.Times);\n \tScrollbarPresent=true;\n\t\t\t\t\t\tlabel.TimeScrollbar = Slider; // that it will be moved when browsing though the data\n\t\t\t\t\t\tadd(\"East\", Slider);\n\t\t\t\t\t\t//if (DataPanel != null)\n\t\t\t\t\t\t//\tDataPanel.CheckScrollBar();\n\t\t\t\t\t\t//data3d.ShowAllSlices=true;\n\t\t\t\t\t\tdata3d.TrackDirection = 4;\n\t\t\t\t\t\tif (data3d.SizeZ > 1) {\n\t\t\t\t\t\t\tdata3d.SearchZ = 1;\n\t\t\t\t\t\t\tdata3d.COMZ = 1;\n\t\t\t\t\t\t}\n Slider.setBlockIncrement(data3d.Times / 10 + 1);\n Slider.addAdjustmentListener(c1);\n Slider.setVisible(true);\n \t}\n \telse {\n\t\t\t\t\t\tSlider.setMaximum(data3d.Times);\n\t\t\t\t\t\t// System.out.println(\"Changed Scrollbar size to\"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider.setBlockIncrement(data3d.Times / 10 + 1);\n\t\t\t\t\t\tSlider.setVisible(true);\n\t\t\t\t\t}\n \tSlider.doLayout();\n \tthis.doLayout();\n }\n// if (data3d.Elements > 5)\n// \tdata3d.TrackDirection=3;\n }",
"@Override\r\n\tpublic void adjustmentValueChanged(AdjustmentEvent evt) {\n\t\tAdjustable source = evt.getAdjustable();\r\n\r\n\t\t// check if user is currently dragging the scrollbar's knob\r\n\t\tif (evt.getValueIsAdjusting()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// get the orientation of the adjustable object\r\n\t\tint orientation = source.getOrientation();\r\n\r\n\t\tif (orientation == Adjustable.HORIZONTAL) {\r\n\t\t\tSystem.out.println(\"Event from horizontal scrollbar\");\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Event from vertical scrollbar\");\r\n\t\t}\r\n\r\n\t\t// get the type of adjustment which caused the value changed event\r\n\r\n//\t\tint type = evt.getAdjustmentType();\r\n\r\n//\t\tswitch (type) {\r\n//\t\tcase AdjustmentEvent.UNIT_INCREMENT:\r\n//\t\t\tSystem.out.println(\"increased by one unit\");\r\n//\t\t\tbreak;\r\n//\r\n//\t\tcase AdjustmentEvent.UNIT_DECREMENT:\r\n//\t\t\tSystem.out.println(\"decreased by one unit\");\r\n//\t\t\tbreak;\r\n//\r\n//\t\tcase AdjustmentEvent.BLOCK_INCREMENT:\r\n//\t\t\tSystem.out.println(\"increased by one block\");\r\n//\t\t\tbreak;\r\n//\r\n//\t\tcase AdjustmentEvent.BLOCK_DECREMENT:\r\n//\t\t\tSystem.out.println(\"decreased by one block\");\r\n//\t\t\tbreak;\r\n//\t\tcase AdjustmentEvent.TRACK:\r\n//\t\t\tSystem.out.println(\"knob on the scrollbar was dragged\");\r\n//\t\t\tbreak;\r\n//\r\n//\t\t}\r\n\r\n\t\t// get the current value in the adjustment event\r\n//\t\tint value = evt.getValue();\r\n//\t\tSystem.out.println(\"Current Value: \" + value);\r\n\t}",
"@JSProperty(\"scrollbar\")\n void setScrollbar(ZAxisScrollbarOptions value);",
"@Override\n public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {\n }",
"public void setHorizontalScrollBarPolicy(int paramInt) {\n/* 548 */ switch (paramInt) {\n/* */ case 30:\n/* */ case 31:\n/* */ case 32:\n/* */ break;\n/* */ default:\n/* 554 */ throw new IllegalArgumentException(\"invalid horizontalScrollBarPolicy\");\n/* */ } \n/* 556 */ int i = this.horizontalScrollBarPolicy;\n/* 557 */ this.horizontalScrollBarPolicy = paramInt;\n/* 558 */ firePropertyChange(\"horizontalScrollBarPolicy\", i, paramInt);\n/* 559 */ revalidate();\n/* 560 */ repaint();\n/* */ }",
"public void adjustmentValueChanged(AdjustmentEvent evt) {\n \n if (evt.getSource() == hscroll) {\n \n int offx = hscroll.getValue();\n \n // This should be n*bases per pixel\n\n int bpp = (int)(1.0/av.getCharWidth());\n\n if (bpp > 0) {\n\toffx = offx - offx%bpp;\n }\n //hscroll.setValue(offx);\n if (offx != oldoffx) {\n\tav.setStartRes(offx);\n\tav.setEndRes((int)(offx + (seqCanvas.size().width/av.getCharWidth())));\n\t\n\tcontroller.handleAlignViewportEvent(new AlignViewportEvent(this,av,AlignViewportEvent.HSCROLL));\n\t\n\thscroll.revalidate();\n }\n oldoffx = offx;\n }\n \n if (evt.getSource() == vscroll) {\n int offy = vscroll.getValue();\n if (oldoffy != offy) {\n\tav.setStartSeq(offy);\n\tav.setEndSeq(offy + seqCanvas.getSize().height/av.getCharHeight());\n\tcontroller.handleAlignViewportEvent(new AlignViewportEvent(this,av,AlignViewportEvent.LIMITS));\n }\n oldoffy = offy;\n }\n }",
"@Override\n\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\tswitch (evt.getPropertyName()) {\n\n\t\t\t\t\t// propertyName progress tells us progress value\n\t\t\t\t\tcase \"progress\":\n\t\t\t\t\t\twindow.setScalingProgressBar((Integer) evt.getNewValue());\n\t\t\t\t\t}\n\n\t\t\t\t}",
"private void setScrollBars() {\n int totHeight = jEditorPane1.getSize().height;\n int value = jEditorPane2.getSize().height;\n if (value > totHeight) totHeight = value;\n int totWidth = jEditorPane1.getSize().width;\n value = jEditorPane2.getSize().width;\n if (value > totWidth) totWidth = value;\n int viewHeight = jViewport1.getExtentSize().height;\n int viewWidth = jViewport1.getExtentSize().width;\n //D.deb(\"totHeight = \"+totHeight+\", totWidth = \"+totWidth); // NOI18N\n //D.deb(\"viewHeight = \"+viewHeight+\", viewWidth = \"+viewWidth); // NOI18N\n jScrollBar1.setValues(0, viewWidth, 0, totWidth);\n jScrollBar1.setBlockIncrement(viewWidth);\n jScrollBar2.setValues(0, viewWidth, 0, totWidth);\n jScrollBar2.setBlockIncrement(viewWidth);\n jScrollBar3.setValues(0, viewHeight, 0, totHeight);\n jScrollBar3.setBlockIncrement(viewHeight);\n boolean visibleScroll = jScrollBar1.isVisible();\n //D.deb(\"jScrollBar1.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewWidth < totWidth && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar1 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar1.setVisible(!visibleScroll);\n jScrollBar2.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar1.repaint();\n //jScrollBar2.repaint();\n }\n visibleScroll = jScrollBar3.isVisible();\n //D.deb(\"jScrollBar3.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewHeight < totHeight && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar3 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar3.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar3.repaint();\n }\n }",
"private void drawScrollBars(Canvas canvas) {\n if(!mEventHandler.shouldDrawScrollBar()){\n return;\n }\n mVerticalScrollBar.setEmpty();\n mHorizontalScrollBar.setEmpty();\n if(getScrollMaxY() > getHeight()/2) {\n drawScrollBarTrackVertical(canvas,10);\n }\n if(getScrollMaxX() > getWidth()*3/4) {\n drawScrollBarTrackHorizontal(canvas,10);\n }\n if(getScrollMaxY() > getHeight()/2) {\n drawScrollBarVertical(canvas,10);\n }\n if(getScrollMaxX() > getWidth()*3/4) {\n drawScrollBarHorizontal(canvas,10);\n }\n }",
"@Override\n public void onGlobalLayout() {\n onScrollChanged(scrollView.getScrollY());\n }",
"protected void animateScrollbar(boolean isScrolling) {\n if (scrollbarAnimator != null) {\n scrollbarAnimator.cancel();\n }\n\n scrollbarAnimator = new AnimatorGroup();\n /*ObjectAnimator trackWidthAnim = ObjectAnimator.ofInt(this, \"trackWidth\",\n isScrolling ? thumbMaxWidth : thumbMinWidth);*/\n\n AnimatorValue trackWidthAnim = new AnimatorValue();\n trackWidthAnim.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n FastScrollBar.this.setTrackWidth(isScrolling ? thumbMaxWidth : thumbMinWidth * (int) v);\n }\n });\n\n /*ObjectAnimator thumbWidthAnim = ObjectAnimator.ofInt(this, \"thumbWidth\",\n isScrolling ? thumbMaxWidth : thumbMinWidth);*/\n\n AnimatorValue thumbWidthAnim = new AnimatorValue();\n thumbWidthAnim.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n FastScrollBar.this.setThumbWidth(isScrolling ? thumbMaxWidth : thumbMinWidth * (int) v);\n }\n });\n\n scrollbarAnimator.runParallel(trackWidthAnim, thumbWidthAnim);\n\n\n if (thumbActiveColor != thumbInactiveColor) {\n /*ValueAnimator colorAnimation = ValueAnimator\n .ofObject(new ArgbEvaluator(), thumbPaint.getColor(), isScrolling ? thumbActiveColor : thumbInactiveColor);\n colorAnimation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n\n @Override\n public void onAnimationUpdate(ValueAnimator animator) {\n thumbPaint.setColor((Integer) animator.getAnimatedValue());\n recyclerView\n .invalidate(thumbOffset.x, thumbOffset.y, thumbOffset.x + thumbWidth, thumbOffset.y + thumbHeight);\n }\n });*/\n\n AnimatorValue colorAnimation = new AnimatorValue();\n colorAnimation.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n int color = getAnimatedColor(v,thumbPaint.getColor().getValue());\n thumbPaint.setColor(new Color(color));\n recyclerView.invalidate();\n }\n });\n\n scrollbarAnimator.runSerially(colorAnimation);\n }\n scrollbarAnimator.setDuration(SCROLL_BAR_VIS_DURATION);\n scrollbarAnimator.start();\n }",
"public ScrollBar getVBar()\n {\n if (_vbar!=null) return _vbar;\n _vbar = new ScrollBar(); _vbar.setVertical(true);\n _vbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _vbar;\n }",
"protected boolean updateScrollBarsShowing()\n {\n // Get Scroller Size\n double scrollerW = _scroller.getWidth();\n double scrollerH = _scroller.getHeight();\n\n // Get child size\n Size contentSize = _scroller.getContentPrefSize();\n double contentW = contentSize.getWidth();\n double contentH = contentSize.getHeight();\n\n // Get whether to show scroll bars\n boolean alwaysH = _showHBar == Boolean.TRUE;\n boolean alwaysV = _showVBar == Boolean.TRUE;\n boolean asneedH = _showHBar == null;\n boolean asneedV = _showVBar == null;\n boolean showHBar = alwaysH || asneedH && contentW > scrollerW;\n boolean showVBar = alwaysV || asneedV && contentH > scrollerH;\n\n // Get whether scroll bars are currently showing\n boolean isHBarShowing = isHBarShowing();\n boolean isVBarShowing = isVBarShowing();\n\n // If showing both ScrollBars, but only because both ScrollBars are showing, hide them and try again\n if (isVBarShowing && isHBarShowing && showVBar && showHBar && asneedH && asneedV) {\n boolean vbarNotReallyNeeded = contentW <= scrollerW + getVBar().getWidth();\n boolean hbarNotReallyNeeded = contentH <= scrollerH + getHBar().getHeight();\n if (vbarNotReallyNeeded && hbarNotReallyNeeded) {\n setVBarShowing(false);\n setHBarShowing(false);\n return true;\n }\n }\n\n // If either ScrollBar in wrong Showing state, set and try again\n if (showVBar != isVBarShowing) {\n setVBarShowing(showVBar);\n return true;\n }\n\n if (showHBar != isHBarShowing) {\n setHBarShowing(showHBar);\n return true;\n }\n\n // Return false since ScrollBar showing didn't change\n return false;\n }",
"PdfViewerScrollBarVertical(PdfViewerController controller)\n {\n super(JScrollBar.VERTICAL, controller);\n setUI(ui);\n\n addAdjustmentListener(new AdjustmentListener()\n {\n public void adjustmentValueChanged(AdjustmentEvent e)\n {\n scrollPosition = e.getValue();\n setNewViewportPosition();\n }\n });\n\n addComponentListener(new ComponentListener()\n {\n\n public void componentShown(ComponentEvent e)\n {\n }\n\n public void componentResized(ComponentEvent e)\n {\n ;\n repaint();\n }\n\n public void componentMoved(ComponentEvent e)\n {\n }\n\n public void componentHidden(ComponentEvent e)\n {\n }\n });\n }",
"private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"@Override\n\tprotected void onScrollChanged(int l, int t, int oldl, int oldt) {\n\t\tsuper.onScrollChanged(l, t, oldl, oldt);\n\t\t\n\t}",
"void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY);",
"@Transient\n/* */ public JScrollBar getVerticalScrollBar() {\n/* 886 */ return this.verticalScrollBar;\n/* */ }",
"protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }",
"public ScrollBar(int param1Int) {\n/* 718 */ super(param1Int);\n/* 719 */ putClientProperty(\"JScrollBar.fastWheelScrolling\", Boolean.TRUE);\n/* */ }",
"private void drawVerticalScrollBar(){\n }",
"public void setWheelScrollingEnabled(boolean paramBoolean) {\n/* 1323 */ boolean bool = this.wheelScrollState;\n/* 1324 */ this.wheelScrollState = paramBoolean;\n/* 1325 */ firePropertyChange(\"wheelScrollingEnabled\", bool, paramBoolean);\n/* */ }",
"@Override\n\tprotected void onScrollChanged(int l, int t, int oldl, int oldt) {\n\t\tsuper.onScrollChanged(l, t, oldl, oldt);\n\t\tif (mListener != null) {\n\t\t\tmListener.scrollOritention(l, t, oldl, oldt);\n\t\t}\n\t}",
"@Override\n public void onScrollChanged() {\n int maxDistance = binding.get().layoutnull.getHeight();\n /* how much we have scrolled */\n int movement = binding.get().nestedScrollView.getScrollY();\n /*finally calculate the alpha factor and set on the view */\n // float alphaFactor = ((movement * 1.0f) / (maxDistance - binding.get().toolbar.getHeight()));\n\n if (movement >= 0 && movement <= maxDistance) {\n /*for image parallax with scroll */\n // binding.get().itemNameTextView.setTranslationY(-movement/2);\n /* set visibility */\n // binding.get().toolbar.setAlpha(alphaFactor);\n binding.get().toolbarTextView2.setText(\"\");\n } else {\n binding.get().toolbarTextView2.setText(binding.get().itemNameTextView.getText());\n }\n\n }",
"void setScrollBarRelations(JScrollBar param1JScrollBar) {\n/* 1540 */ AccessibleRelation accessibleRelation1 = new AccessibleRelation(AccessibleRelation.CONTROLLED_BY, param1JScrollBar);\n/* */ \n/* */ \n/* 1543 */ AccessibleRelation accessibleRelation2 = new AccessibleRelation(AccessibleRelation.CONTROLLER_FOR, JScrollPane.this);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1548 */ AccessibleContext accessibleContext = param1JScrollBar.getAccessibleContext();\n/* 1549 */ accessibleContext.getAccessibleRelationSet().add(accessibleRelation2);\n/* */ \n/* */ \n/* 1552 */ getAccessibleRelationSet().add(accessibleRelation1);\n/* */ }",
"public ScrollBar getHBar()\n {\n if (_hbar!=null) return _hbar;\n _hbar = new ScrollBar();\n _hbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _hbar;\n }",
"@Override\n public void onScroll(float scrollProgressPercent) {\n }",
"@Override\n protected void onScrollChanged(int l, int t, int oldl, int oldt) {\n super.onScrollChanged(l, t, oldl, oldt);\n\n }",
"@Override\n\tpublic ScrollBar createScrollBar() {\n\t\tLightVisualThemeScrollBar lightVisualThemeScrollBar = new LightVisualThemeScrollBar();\n\t\treturn lightVisualThemeScrollBar;\n\t}",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* */ }",
"@Transient\n/* */ public JScrollBar getHorizontalScrollBar() {\n/* 827 */ return this.horizontalScrollBar;\n/* */ }",
"void onScrollChanged(ObservableHorizontalScrollView view, int l, int t);",
"public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}",
"public void scrollbarsMoved(HashMap<String, Object> axes) {\n if (!displaySettings_.isCompositeMode()) {\n //set all channels inactive except current one\n if (viewCoords_.getAxesPositions().containsKey(NDViewer.CHANNEL_AXIS)) {\n String activeChannel = (String) viewCoords_.getAxesPositions().get(NDViewer.CHANNEL_AXIS);\n for (String c : getDisplayedChannels()) {\n displaySettings_.setActive(c, activeChannel.equals(c));\n display_.getGUIManager().updateGUIFromDisplaySettings();\n }\n }\n }\n }",
"void setScroller(Scroller scroller) {\n this.scroller = scroller;\n }",
"protected void firePropertyChange(String propertyName,Object oldValue,\n Object newValue){\n super.firePropertyChange(propertyName,oldValue,newValue);\n if(propertyName.equals(EnableWindowBlit)){\n if(newValue!=null){\n setScrollMode(BLIT_SCROLL_MODE);\n }else{\n setScrollMode(SIMPLE_SCROLL_MODE);\n }\n }\n }",
"private int getScrollVal() {\n return Math.abs((int)scrollBar.getValue());\n }",
"void onScroll(boolean bDragging);",
"@Override\n public void onScrollChanged() {\n int maxDistance = binding.get().coverImageView.getHeight();\n /* how much we have scrolled */\n int movement = binding.get().nestedScrollView.getScrollY();\n /*finally calculate the alpha factor and set on the view */\n float alphaFactor = ((movement * 1.0f) / (maxDistance - binding.get().toolbar.getHeight()));\n\n if (movement >= 0 && movement <= maxDistance) {\n /*for image parallax with scroll */\n // binding.get().itemNameTextView.setTranslationY(-movement/2);\n /* set visibility */\n binding.get().toolbar.setAlpha(alphaFactor);\n binding.get().toolbarTextView.setText(\"\");\n } else {\n binding.get().toolbarTextView.setText(binding.get().itemNameTextView.getText());\n }\n\n }",
"public void adjustmentValueChanged(AdjustmentEvent e) {\n \tif (scrollBar1.getVerticalScrollBar().getValue() >= 1290) {\n \t\tbutton1.setEnabled(true);\n \t}\n }",
"private void drawScrollBar() {\r\n\r\n\t _scrollOffsetX = 68;\r\n\t _scrollOffsetY = _resolutionResolver.getScaledHeight() % 2 == 1 ? -33 : -32;\r\n\r\n\t ResourceLocation rl = getContentHeight() > getViewableHeight() ? SLIDER_RESOURCE : SLIDER_FULL_RESOURCE;\r\n\t int ySizeScrollToUse = getContentHeight() > getViewableHeight() ? SIZE_SCROLL_Y : SIZE_SCROLL_FULL_Y;\r\n\t int xTextureSize = getContentHeight() > getViewableHeight() ? 32 : 16;\r\n\t int yTextureSize = getContentHeight() > getViewableHeight() ? 32 : 128;\r\n\t _curScrollValue = getContentHeight() > getViewableHeight() ? _curScrollValue : 0;\r\n\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(rl);\r\n\t\tint x1 = (width - SIZE_SCROLL_X) / 2;\r\n\t\tint y1 = (height - SIZE_SCROLL_Y) / 2;\r\n\t\t\r\n\t\t// draw the scroll bar\r\n\t\tHubbyUtils.drawTexturedRectHelper(0.0f, x1 + _scrollOffsetX, y1 + _scrollOffsetY + _curScrollValue, SIZE_SCROLL_X, ySizeScrollToUse, 0, 0, (256 / xTextureSize) * SIZE_SCROLL_X, (256 / yTextureSize) * ySizeScrollToUse);\r\n\t}",
"public void computeScroll() {\n /* 93 */\n if (this.mChartTouchListener instanceof PieRadarChartTouchListener) {\n /* 94 */\n ((PieRadarChartTouchListener) this.mChartTouchListener).computeScroll();\n /* */\n }\n /* */\n }",
"@Override public void computeScroll() {\n super.computeScroll();\n if (scroller != null) {\n scroller.computeScroll();\n }\n }",
"public void setScrollBarEnabled(boolean enabled) {\n mVerticalScrollBarEnabled = mHorizontalScrollBarEnabled = enabled;\n invalidate();\n }",
"private void checkHorizontalScrollBar(BasicComboPopup popup)\n\t{\n\n\t\tJViewport viewport = scrollPane.getViewport();\n\t\tPoint p = viewport.getViewPosition();\n\t\tp.x = 0;\n\t\tviewport.setViewPosition( p );\n\n\t\t// Remove the scrollbar so it is never painted\n\n\t\tif (! scrollBarRequired)\n\t\t{\n\t\t\tscrollPane.setHorizontalScrollBar( null );\n\t\t\treturn;\n\t\t}\n\n\t\t//\tMake sure a horizontal scrollbar exists in the scrollpane\n\n\t\tJScrollBar horizontal = scrollPane.getHorizontalScrollBar();\n\n\t\tif (horizontal == null)\n\t\t{\n\t\t\thorizontal = new JScrollBar(JScrollBar.HORIZONTAL);\n\t\t\tscrollPane.setHorizontalScrollBar( horizontal );\n\t\t\tscrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );\n\t\t}\n\n\t\t//\tPotentially increase height of scroll pane to display the scrollbar\n\n\t\tif (horizontalScrollBarWillBeVisible(popup, scrollPane))\n\t\t{\n\t\t\tDimension scrollPaneSize = scrollPane.getPreferredSize();\n\t\t\tscrollPaneSize.height += horizontal.getPreferredSize().height;\n\t\t\tscrollPane.setPreferredSize(scrollPaneSize);\n\t\t\tscrollPane.setMaximumSize(scrollPaneSize);\n\t\t\tscrollPane.revalidate();\n\t\t}\n\t}",
"@JSProperty(\"overscroll\")\n void setOverscroll(double value);",
"@Override\n\tpublic void onScrollChanged(ObservableScrollView scrollView, int x, int y,\n\t\t\tint oldx, int oldy) {\n\t\tfor (ScrollView child : mAllAScrollView)\n\t\t\tchild.scrollTo(x, y);\n\t}",
"public void onPageScrollStateChanged(int arg0) {\n\n\t\t}",
"public void mouseWheel(MouseEvent event) {\n ackEvent();\n float e = event.getCount();\n verticalScroll -= 10 * e;\n if (verticalScroll >= MAX_SCROLL) verticalScroll = MAX_SCROLL;\n else if (verticalScroll <= MIN_SCROLL) verticalScroll = MIN_SCROLL;\n }",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\n\t\t\t}",
"public void setScrollingListener(OnWheelScrollListener listener) {\n this.onWheelListener = listener;\n }",
"public native void setScrollIndocatorStyle(double value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.scrollIndicatorStyle = value;\n }-*/;",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t}",
"@Override\n public void onAbsoluteScrollChange(int i) {\n }",
"private void onScrollReleaseDetected() {\n if (profileContainer.getScrollY() == 0)\n swipeRefreshLayout.setEnabled(true); // we are back to scroll 0 so allow refreshes again\n }",
"protected void setListViewScrollListener() {\n getListView().setOnScrollListener(getScrollListener());\n }",
"public void setUpdateScroll(int updateScroll)\n {\n this.updateScroll = updateScroll;\n }",
"public void propertyChange(PropertyChangeEvent evt) {\n if(evt.getPropertyName().equals(\"position\")){\n// System.out.println(\"slider property change new val=\"+evt.getNewValue());\n sliderDontProcess=true;\n // note this cool semaphore/flag trick to avoid processing the\n // event generated when we programmatically set the slider position here\n playerSlider.setValue(Math.round(player.getFractionalPosition()*100));\n }else if(evt.getPropertyName().equals(\"readerStarted\")){\n log.info(\"MotionViewer.propertyChange: AEReader started, fixing device control menu\");\n // cypress reader started, can set device control for cypress usbio reader thread\n// fixDeviceControlMenuItems();\n }\n }",
"public void onPageScrollStateChanged(int arg0) {\n }",
"public Scroller getScroller() { return _scroller; }",
"@Override\n public void propertyChange(PropertyChangeEvent pce) {\n if (\"progress\".equals(pce.getPropertyName()) ) {\n int progress = (Integer) pce.getNewValue();\n jProgressBar1.setValue( progress );\n if (progress == 100 ) {\n jBtnReadFile.setEnabled(true);\n jBtnWriteFile.setEnabled(true);\n }\n }\n }",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0)\n\t\t{\n\t\t\t\n\t\t}",
"public void setComponentOrientation(ComponentOrientation paramComponentOrientation) {\n/* 1288 */ super.setComponentOrientation(paramComponentOrientation);\n/* 1289 */ if (this.verticalScrollBar != null)\n/* 1290 */ this.verticalScrollBar.setComponentOrientation(paramComponentOrientation); \n/* 1291 */ if (this.horizontalScrollBar != null) {\n/* 1292 */ this.horizontalScrollBar.setComponentOrientation(paramComponentOrientation);\n/* */ }\n/* */ }",
"@JSProperty(\"scrollbar\")\n @Nullable\n ZAxisScrollbarOptions getScrollbar();",
"public void recallScrollPos() {\n if (_primaryPlot!=null) {\n recallScrollPos(_scrollInfo.get(_primaryPlot).makeCopy());\n }\n }",
"private void drawScrollBarTrackVertical(Canvas canvas,int width) {\n if(mEventHandler.holdVerticalScrollBar()) {\n mRect.right = getWidth();\n mRect.left = getWidth() - mDpUnit * width;\n mRect.top = 0;\n mRect.bottom = getHeight();\n drawColor(canvas,mColors.getColor(ColorScheme.SCROLL_BAR_TRACK),mRect);\n }\n }",
"PdfViewerScrollBar(int orientation, PdfViewerController controller)\n {\n super(orientation);\n this.controller = controller;\n setUnitIncrement(UNIT_INCREMENT);\n setBlockIncrement(BLOCK_INCREMENT);\n scrollPosition = 0;\n close();\n }",
"@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 1:\n if (view.getMeasuredHeight() - 20 <= getScrollY()\n + getHeight()) {\n if (onScrollListener != null) {\n onScrollListener.onBottom();\n }\n\n } else if (getScrollY() == 0) {\n if (onScrollListener != null) {\n onScrollListener.onTop();\n }\n } else {\n if (onScrollListener != null) {\n onScrollListener.onScroll();\n }\n }\n break;\n default:\n break;\n }\n }",
"private void updateBars() {\n \n // get the number of bars to draw\n bars = ( getWidth()-5 - textAreaLenght ) / barLenght;\n \n }",
"int getVScrollbarWidth();",
"protected RectF getHorizontalScrollBarRect() {\n return mHorizontalScrollBar;\n }",
"private JScrollBar getJScrollBar() {\r\n\t\tif (jScrollBar == null) {\r\n\t\t\tjScrollBar = new JScrollBar();\r\n\t\t\tjScrollBar.setBounds(new Rectangle(591, 127, 17, 333));\r\n\t\t}\r\n\t\treturn jScrollBar;\r\n\t}",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\n\t\t}",
"public void onScrollStateChanged(AbsListView arg0, int scrollState) {\n\t\tcurrentScrollState = scrollState;\n\t\tif (valorUltimo <= 0)\n\t\t\tisScrollCompleted();\n\t}",
"PdfViewerScrollBarHorizontal(PdfViewerController controller)\n {\n super(JScrollBar.HORIZONTAL, controller);\n setUI(ui);\n addAdjustmentListener(new AdjustmentListener()\n {\n public void adjustmentValueChanged(AdjustmentEvent e)\n {\n scrollPosition = e.getValue();\n try\n {\n PdfViewerScrollBarHorizontal.this.controller.scrollTo(scrollPosition,\n PdfViewerScrollBarHorizontal.this.controller.getViewportOrigin().y);\n } catch (PdfViewerException ex)\n {\n DebugLogger.log(ex.toString());\n }\n }\n });\n\n addComponentListener(new ComponentListener()\n {\n\n public void componentShown(ComponentEvent e)\n {\n }\n\n public void componentResized(ComponentEvent e)\n {\n update();\n repaint();\n }\n\n public void componentMoved(ComponentEvent e)\n {\n }\n\n public void componentHidden(ComponentEvent e)\n {\n }\n });\n }",
"@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\r\n\t\t\t}",
"public void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }"
] | [
"0.80191267",
"0.74403584",
"0.73464787",
"0.6892067",
"0.6827332",
"0.6718419",
"0.6705209",
"0.66656995",
"0.6661924",
"0.6494815",
"0.64858675",
"0.64759195",
"0.64241725",
"0.6191685",
"0.61726636",
"0.615333",
"0.60991186",
"0.60577506",
"0.6021174",
"0.60093117",
"0.60052204",
"0.59791785",
"0.59502167",
"0.593266",
"0.59233916",
"0.5904155",
"0.58290833",
"0.5791616",
"0.57819486",
"0.57543373",
"0.5752333",
"0.5743117",
"0.57414097",
"0.5737267",
"0.57169825",
"0.5701078",
"0.56976175",
"0.56936973",
"0.56886196",
"0.5664782",
"0.5656765",
"0.5628373",
"0.5626083",
"0.56259954",
"0.5623475",
"0.56174916",
"0.56142354",
"0.56122404",
"0.55987537",
"0.5595934",
"0.5553235",
"0.55422103",
"0.55398506",
"0.5537068",
"0.5504085",
"0.5502238",
"0.54644275",
"0.54639256",
"0.5459186",
"0.5457093",
"0.54528725",
"0.54436785",
"0.54436785",
"0.54436785",
"0.54436785",
"0.54436785",
"0.5442639",
"0.5442639",
"0.5442639",
"0.5442639",
"0.5442639",
"0.5434803",
"0.5429808",
"0.54243106",
"0.5412985",
"0.54104424",
"0.5408853",
"0.5407578",
"0.53995526",
"0.5398014",
"0.5397751",
"0.53963596",
"0.53963244",
"0.53940594",
"0.53929734",
"0.5386502",
"0.53854823",
"0.5382613",
"0.53738344",
"0.53727376",
"0.53724504",
"0.5370031",
"0.53594273",
"0.53518826",
"0.53518826",
"0.5345419",
"0.53411674",
"0.53311783",
"0.5330729",
"0.5321241"
] | 0.7425258 | 2 |
Create a special policy that only compacts single stripes, using standard methods. | @Test
public void testSingleStripeCompaction() throws Exception {
Configuration conf = HBaseConfiguration.create();
// Test depends on this not being set to pass. Default breaks test. TODO: Revisit.
conf.unset("hbase.hstore.compaction.min.size");
conf.setFloat(CompactionConfiguration.HBASE_HSTORE_COMPACTION_RATIO_KEY, 1.0F);
conf.setInt(StripeStoreConfig.MIN_FILES_KEY, 3);
conf.setInt(StripeStoreConfig.MAX_FILES_KEY, 4);
conf.setLong(StripeStoreConfig.SIZE_TO_SPLIT_KEY, 1000); // make sure the are no splits
StoreConfigInformation sci = mock(StoreConfigInformation.class);
when(sci.getRegionInfo()).thenReturn(RegionInfoBuilder.FIRST_META_REGIONINFO);
StripeStoreConfig ssc = new StripeStoreConfig(conf, sci);
StripeCompactionPolicy policy = new StripeCompactionPolicy(conf, sci, ssc) {
@Override
public StripeCompactionRequest selectCompaction(StripeInformationProvider si,
List<HStoreFile> filesCompacting, boolean isOffpeak) throws IOException {
if (!filesCompacting.isEmpty()) {
return null;
}
return selectSingleStripeCompaction(si, false, false, isOffpeak);
}
@Override
public boolean needsCompactions(StripeInformationProvider si,
List<HStoreFile> filesCompacting) {
if (!filesCompacting.isEmpty()) {
return false;
}
return needsSingleStripeCompaction(si);
}
};
// No compaction due to min files or ratio
StripeInformationProvider si =
createStripesWithSizes(0, 0, new Long[] { 2L }, new Long[] { 3L, 3L }, new Long[] { 5L, 1L });
verifyNoCompaction(policy, si);
// No compaction due to min files or ratio - will report needed, but not do any.
si = createStripesWithSizes(0, 0, new Long[] { 2L }, new Long[] { 3L, 3L },
new Long[] { 5L, 1L, 1L });
assertNull(policy.selectCompaction(si, al(), false));
assertTrue(policy.needsCompactions(si, al()));
// One stripe has possible compaction
si = createStripesWithSizes(0, 0, new Long[] { 2L }, new Long[] { 3L, 3L },
new Long[] { 5L, 4L, 3L });
verifySingleStripeCompaction(policy, si, 2, null);
// Several stripes have possible compactions; choose best quality (removes most files)
si = createStripesWithSizes(0, 0, new Long[] { 3L, 2L, 2L }, new Long[] { 2L, 2L, 1L },
new Long[] { 3L, 2L, 2L, 1L });
verifySingleStripeCompaction(policy, si, 2, null);
si = createStripesWithSizes(0, 0, new Long[] { 5L }, new Long[] { 3L, 2L, 2L, 1L },
new Long[] { 3L, 2L, 2L });
verifySingleStripeCompaction(policy, si, 1, null);
// Or with smallest files, if the count is the same
si = createStripesWithSizes(0, 0, new Long[] { 3L, 3L, 3L }, new Long[] { 3L, 1L, 2L },
new Long[] { 3L, 2L, 2L });
verifySingleStripeCompaction(policy, si, 1, null);
// Verify max count is respected.
si = createStripesWithSizes(0, 0, new Long[] { 5L }, new Long[] { 5L, 4L, 4L, 4L, 4L });
List<HStoreFile> sfs = si.getStripes().get(1).subList(1, 5);
verifyCompaction(policy, si, sfs, null, 1, null, si.getStartRow(1), si.getEndRow(1), true);
// Verify ratio is applied.
si = createStripesWithSizes(0, 0, new Long[] { 5L }, new Long[] { 50L, 4L, 4L, 4L, 4L });
sfs = si.getStripes().get(1).subList(1, 5);
verifyCompaction(policy, si, sfs, null, 1, null, si.getStartRow(1), si.getEndRow(1), true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testWithParallelCompaction() throws Exception {\n assertNull(createPolicy(HBaseConfiguration.create())\n .selectCompaction(mock(StripeInformationProvider.class), al(createFile()), false));\n }",
"protected static PolicyModelGenerator getCompactGenerator(PolicySourceModelCreator creator) {\n return new CompactModelGenerator(creator);\n }",
"public static CustomPolicy createDefaultCustomPolicy() {\n CustomPolicy customPolicy = new CustomPolicy(SAMPLE_CUSTOM_RULE);\n customPolicy.setKeyTemplate(\"$userId\");\n String siddhiQuery = \"FROM RequestStream SELECT userId, ( userId == 'admin@carbon.super' ) AS isEligible , \"\n + \"str:concat('admin@carbon.super','') as throttleKey INSERT INTO EligibilityStream;\"\n + \"FROM EligibilityStream[isEligible==true]#throttler:timeBatch(1 min) SELECT throttleKey, \"\n + \"(count(userId) >= 5 as isThrottled, expiryTimeStamp group by throttleKey INSERT ALL EVENTS into \"\n + \"ResultStream;\";\n\n customPolicy.setSiddhiQuery(siddhiQuery);\n customPolicy.setDescription(\"Sample custom policy\");\n return customPolicy;\n }",
"WithPartitionsAndCreate withStandardSku();",
"public int getStripeSize() {\n return 0;\n }",
"@Test\n public void testSelectL0Compaction() throws Exception {\n Configuration conf = HBaseConfiguration.create();\n conf.setInt(StripeStoreConfig.MIN_FILES_L0_KEY, 4);\n StripeCompactionPolicy policy = createPolicy(conf);\n StripeCompactionPolicy.StripeInformationProvider si = createStripesWithSizes(10, 10L,\n new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L }, new Long[] { 3L, 2L, 2L });\n StripeCompactionPolicy.StripeCompactionRequest cr = policy.selectCompaction(si, al(), false);\n assertNotNull(cr);\n assertEquals(10, cr.getRequest().getFiles().size());\n verifyCollectionsEqual(si.getLevel0Files(), cr.getRequest().getFiles());\n\n // test select partial L0 files when size of L0 files > HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY\n conf.setLong(HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY, 100L);\n policy = createPolicy(conf);\n si = createStripesWithSizes(5, 50L, new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L },\n new Long[] { 3L, 2L, 2L });\n cr = policy.selectCompaction(si, al(), false);\n assertNotNull(cr);\n assertEquals(2, cr.getRequest().getFiles().size());\n verifyCollectionsEqual(si.getLevel0Files().subList(0, 2), cr.getRequest().getFiles());\n\n // test select partial L0 files when count of L0 files > MAX_FILES_KEY\n conf.setInt(MAX_FILES_KEY, 6);\n conf.setLong(HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY, 1000L);\n policy = createPolicy(conf);\n si = createStripesWithSizes(10, 10L, new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L },\n new Long[] { 3L, 2L, 2L });\n cr = policy.selectCompaction(si, al(), false);\n assertNotNull(cr);\n assertEquals(6, cr.getRequest().getFiles().size());\n verifyCollectionsEqual(si.getLevel0Files().subList(0, 6), cr.getRequest().getFiles());\n }",
"public Block stripeByReceiver(\n int stripes,\n Int2ObjFunction<Int2ObjFunction<Predicate<I>>> stripeSupplier) {\n return StripingUtils.generateStripedBlock(\n stripes,\n new Function<Predicate<I>, Block>() {\n @Override\n public Block apply(final Predicate<I> stripePredicate) {\n return FilteringPiece.createReceiveFiltering(\n new SupplierFromVertex<I, V, E, Boolean>() {\n @Override\n public Boolean get(Vertex<I, V, E> vertex) {\n return stripePredicate.apply(vertex.getId());\n }\n },\n new SendMessageWithCombinerPiece<>(\n name,\n messageCombiner,\n messageSupplier,\n new SupplierFromVertex<I, V, E, Iterator<I>>() {\n @Override\n public Iterator<I> get(Vertex<I, V, E> vertex) {\n return StreamSupport.stream(\n Spliterators.spliteratorUnknownSize(\n targetsSupplier.get(vertex), Spliterator.ORDERED),\n false).filter(stripePredicate::apply).iterator();\n }\n },\n messagesConsumer));\n }\n },\n stripeSupplier);\n }",
"@Test\n public void testRedundancyRestriction() throws Exception {\n final String rName = getUniqueName();\n final Integer red0 = 0;\n final Integer red1 = 1;\n\n CacheSerializableRunnable createPRsWithRed =\n new CacheSerializableRunnable(\"createPrsWithDifferentRedundancy\") {\n @Override\n public void run2() throws CacheException {\n getCache();\n IgnoredException.addIgnoredException(\"redundancy should be same as the redundancy\");\n createPR(rName, red1, 100, 3, null, Boolean.FALSE,\n Boolean.FALSE);\n try {\n createPR(rName + \"colo\", red0, 100, 3, rName,\n Boolean.FALSE, Boolean.FALSE);\n fail(\"Expected different redundancy levels to throw.\");\n } catch (IllegalStateException expected) {\n assertEquals(\n \"Current PartitionedRegion's redundancy should be same as the redundancy of colocated PartitionedRegion\",\n expected.getMessage());\n }\n }\n };\n dataStore1.invoke(createPRsWithRed);\n }",
"public void createOnlyDistributedObjectsPolicy(){\n\t\t\n\t\tint size = 0;\n\t\t\n\t\tIterator<CacheObject> cst = candidateStableOnlyList.iterator();\n\t\tCollection<String> it1 = serverList.keySet();\n\t\tArrayList<String> server = new ArrayList<String>(it1);\n\t\tint counter = 0;\t\t\n\t\t\n\t\twhile(cst.hasNext()){\n\t\t\t\n\t\t\tCacheObject ct = cst.next();\n\t\t\tif(size <= (STABLE_SIZE * NO_SERVERS)){\n\t\t\t\t\n\t\t\t\tArrayList<String> lt = new ArrayList<String>();\n\t\t\t\tString serId = server.get( (counter++) % NO_SERVERS );\n\t\t\t\tlt.add(serId);\n\t\t\t\tRuleList rl = new RuleList(serId, RuleList.MOVE , RuleList.STABLE_TTL, lt);\n\t\t\t\tListKey lk = new ListKey();\n\t\t\t\tlk.addtoListKey(ct.cacheKey);\n\t\t\t\tASPolicyMap.get(serId).addNewPolicy(lk, rl);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t\t\t\n\t\t}\n\t\t\n\t}",
"public NatPolicy createNatPolicy();",
"private void verifyWholeStripesCompaction(StripeCompactionPolicy policy,\n StripeInformationProvider si, int from, int to, Boolean dropDeletes, Integer count, Long size,\n boolean needsCompaction) throws IOException {\n verifyCompaction(policy, si, getAllFiles(si, from, to), dropDeletes, count, size,\n si.getStartRow(from), si.getEndRow(to), needsCompaction);\n }",
"WithReplicasAndCreate withBasicSku();",
"void clearPolicy() {\n policy = new Policy();\n }",
"@Test\n public void decreaseWithDiscardLessThan4() {\n gm.setPlayerInfo(clientPlayer4);\n gm.setThisPlayerIndex(clientPlayer4.getPlayerIndex());\n for (ResourceType type : ResourceType.values()) {\n assertEquals(0, getAmounts().getOfType(type));\n }\n assertFalse(dc.getMaxDiscard() >= 4);\n dc.increaseAmount(ResourceType.ORE);\n assertEquals(0, getAmounts().getOfType(ResourceType.ORE));\n dc.decreaseAmount(ResourceType.ORE);\n assertEquals(0, getAmounts().getOfType(ResourceType.ORE));\n }",
"private static FeedPolicyAccessor createFeedPolicyAccessor(boolean spill, boolean discard, long spillBudget,\n float discardFraction) {\n FeedPolicyAccessor fpa = Mockito.mock(FeedPolicyAccessor.class);\n Mockito.when(fpa.flowControlEnabled()).thenReturn(true);\n Mockito.when(fpa.spillToDiskOnCongestion()).thenReturn(spill);\n Mockito.when(fpa.getMaxSpillOnDisk()).thenReturn(spillBudget);\n Mockito.when(fpa.discardOnCongestion()).thenReturn(discard);\n Mockito.when(fpa.getMaxFractionDiscard()).thenReturn(discardFraction);\n return fpa;\n }",
"String getBlockPolicy();",
"Policy _get_policy(int policy_type);",
"@Test\n public void readOnlyUnrepairedTest() throws Throwable\n {\n createTable(\"create table %s (id int, id2 int, t text, t2 text, primary key (id, id2)) with gc_grace_seconds=0 and compaction = {'class':'SizeTieredCompactionStrategy', 'only_purge_repaired_tombstones':true}\");\n for (int i = 10; i < 20; i++)\n {\n execute(\"update %s set t2=null where id=? and id2=?\", 123, i);\n }\n flush();\n\n // allow gcgrace to properly expire:\n Thread.sleep(1000);\n verifyIncludingPurgeable();\n verify2IncludingPurgeable(123);\n }",
"public CancellationPolicy addCancellationPolicy(CancellationPolicy newPolicy) throws Exception {\n List<ExpediaRules> expediaRules = newPolicy.getRules();\n expediaRules.forEach((rule) -> {\n rule.setPolicy(newPolicy);\n });\n newPolicy.setRules(expediaRules);\n newPolicy.setPolicyUpdatedOn();\n newPolicy.setPolicyUpdatedBy(\"Tester\");\n CancellationPolicy addedPolicy = cancellationPolicyRepository.save(newPolicy);\n return addedPolicy;\n }",
"private boolean deleteMonetizationPlan(SubscriptionPolicy subPolicy) throws APIManagementException {\n\n Monetization monetizationImplementation = getMonetizationImplClass();\n if (monetizationImplementation != null) {\n try {\n return monetizationImplementation.deleteBillingPlan(subPolicy);\n } catch (MonetizationException e) {\n APIUtil.handleException(\"Failed to delete monetization plan of : \" + subPolicy.getPolicyName(), e);\n }\n }\n return false;\n }",
"WithCreate withFreeSku();",
"public DepreciatingPolicy(float amount, float rate){\r\n super(amount);\r\n this.rate = rate*100;\r\n }",
"public DistributionPolicyInternal() {}",
"private boolean createMonetizationPlan(SubscriptionPolicy subPolicy) throws APIManagementException {\n\n Monetization monetizationImplementation = getMonetizationImplClass();\n if (monetizationImplementation != null) {\n try {\n return monetizationImplementation.createBillingPlan(subPolicy);\n } catch (MonetizationException e) {\n APIUtil.handleException(\"Failed to create monetization plan for : \" + subPolicy.getPolicyName(), e);\n }\n }\n return false;\n }",
"@Test\n public void testCompact_Mid_Segment_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(5);\n instance.compact();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n }",
"public PowerVmAllocationPolicySimple(List<? extends PowerHost> list) {\n\t\tsuper(list);\n\t}",
"@Test\n public void testCompact_Mid_Segment_Emptied_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Emptied_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n\n instance.addAll(c);\n\n instance.remove(4);\n instance.remove(5);\n instance.compact();\n\n assertEquals(2, instance.persistedSegmentCount());\n\n }",
"@Test\n public void increaseWithDiscardLessThan4() throws Exception {\n gm.setPlayerInfo(clientPlayer4);\n gm.setThisPlayerIndex(clientPlayer4.getPlayerIndex());\n for (ResourceType type : ResourceType.values()) {\n assertEquals(0, getAmounts().getOfType(type));\n }\n assertFalse(dc.getMaxDiscard() >= 4);\n dc.increaseAmount(ResourceType.WHEAT);\n assertNotEquals(1, getAmounts().getOfType(ResourceType.WHEAT));\n assertEquals(0, getAmounts().getOfType(ResourceType.WOOD));\n dc.increaseAmount(ResourceType.WOOD);\n assertNotEquals(1, getAmounts().getOfType(ResourceType.WOOD));\n }",
"@Test\n public void discardLessThan4() {\n gm.setPlayerInfo(clientPlayer4);\n gm.setThisPlayerIndex(clientPlayer4.getPlayerIndex());\n Player p = model.getPlayer(clientPlayer4.getPlayerIndex());\n ResourceSet discardSet = dc.getDiscardAmount();\n verify(robberFacade, atMost(3)).canDiscard(discardSet, p);\n verify(robberFacade, atMost(2)).discard(discardSet, p);\n }",
"private PolicyDocument getS3SpillBucketAccessPolicy()\n {\n List<String> statementActionsPolicy = new ArrayList<>();\n statementActionsPolicy.add(\"s3:GetObject\");\n statementActionsPolicy.add(\"s3:ListBucket\");\n statementActionsPolicy.add(\"s3:GetBucketLocation\");\n statementActionsPolicy.add(\"s3:GetObjectVersion\");\n statementActionsPolicy.add(\"s3:PutObject\");\n statementActionsPolicy.add(\"s3:PutObjectAcl\");\n statementActionsPolicy.add(\"s3:GetLifecycleConfiguration\");\n statementActionsPolicy.add(\"s3:PutLifecycleConfiguration\");\n statementActionsPolicy.add(\"s3:DeleteObject\");\n\n return PolicyDocument.Builder.create()\n .statements(ImmutableList.of(PolicyStatement.Builder.create()\n .actions(statementActionsPolicy)\n .resources(ImmutableList.of(\n String.format(\"arn:aws:s3:::%s\", spillBucket),\n String.format(\"arn:aws:s3:::%s/*\", spillBucket)))\n .effect(Effect.ALLOW)\n .build()))\n .build();\n }",
"@Test\n public void detectSuspiciousAmountOperationsWithFixedThresholdTest() {\n Customer customer1 = new CustomerBuilder()\n .withId(1L).build();\n \n Order customer1Order = ModelFactory.getPendingOrderWithTotalValueGreaterThan10000(customer1);\n\n //Create a customer with PENDING orders for a value < 10000 \n Customer customer2 = new CustomerBuilder()\n .withId(2L).build();\n \n Order customer2Order = ModelFactory.getPendingOrderWithTotalValueLessThan10000(customer2);\n\n //Create a session and insert the 2 customers and their orders.\n KieSession ksession = this.createSession(\"globals1Ksession\");\n\n ksession.insert(customer1);\n ksession.insert(customer1Order);\n ksession.insert(customer2);\n ksession.insert(customer2Order);\n\n //Before we fire any activated rule, we check that the session doesn't\n //have any object of type SuspiciousOperation in it.\n Collection<SuspiciousOperation> suspiciousOperations\n = this.getFactsFromKieSession(ksession, SuspiciousOperation.class);\n assertThat(suspiciousOperations, hasSize(0));\n\n //Let's fire any activated rule now.\n ksession.fireAllRules();\n\n //After the rules are fired, a SuspiciousOperation object is now \n //present. This object belongs to Customer \"1\".\n suspiciousOperations\n = this.getFactsFromKieSession(ksession, SuspiciousOperation.class);\n\n assertThat(suspiciousOperations, hasSize(1));\n assertThat(suspiciousOperations.iterator().next().getCustomer().getCustomerId(),\n is(1L));\n\n ksession.dispose();\n\n }",
"public WriterOptions stripeSize(long value) {\n stripeSizeValue = value;\n return this;\n }",
"private MaskedWalletRequest createStripeMaskedWalletRequest() {\n List<LineItem> lineItems = ((HomeActivity)getActivity()).buildLineItems();\n\n // Calculate the cart total by iterating over the line items.\n String cartTotal = ((HomeActivity)getActivity()).calculateCartTotal(lineItems);\n\n MaskedWalletRequest.Builder builder = MaskedWalletRequest.newBuilder()\n .setMerchantName(\"Merchant Name\")\n .setPhoneNumberRequired(true)\n .setShippingAddressRequired(true)\n .setCurrencyCode(\"USD\")\n .setEstimatedTotalPrice(cartTotal)\n .setCart(Cart.newBuilder()\n .setCurrencyCode(\"USD\")\n .setTotalPrice(cartTotal)\n .setLineItems(lineItems)\n .build());\n\n builder.setPaymentMethodTokenizationParameters(mPaymentMethodParameters);\n\n return builder.build();\n }",
"public static SubscriptionPolicy createDefaultSubscriptionPolicy() {\n SubscriptionPolicy subscriptionPolicy = new SubscriptionPolicy(SAMPLE_SUBSCRIPTION_POLICY);\n subscriptionPolicy.setUuid(UUID.randomUUID().toString());\n subscriptionPolicy.setDisplayName(SAMPLE_SUBSCRIPTION_POLICY);\n subscriptionPolicy.setDescription(SAMPLE_SUBSCRIPTION_POLICY_DESCRIPTION);\n QuotaPolicy defaultQuotaPolicy = new QuotaPolicy();\n defaultQuotaPolicy.setType(REQUEST_COUNT_TYPE);\n RequestCountLimit requestCountLimit = new RequestCountLimit(TIME_UNIT_SECONDS, 10000, 1000);\n defaultQuotaPolicy.setLimit(requestCountLimit);\n subscriptionPolicy.setDefaultQuotaPolicy(defaultQuotaPolicy);\n return subscriptionPolicy;\n }",
"public static APIPolicy createDefaultAPIPolicyWithBandwidthLimit() {\n BandwidthLimit bandwidthLimit = new BandwidthLimit(TIME_UNIT_MONTH, 1, 1000, PolicyConstants.MB);\n QuotaPolicy defaultQuotaPolicy = new QuotaPolicy();\n defaultQuotaPolicy.setType(PolicyConstants.BANDWIDTH_TYPE);\n defaultQuotaPolicy.setLimit(bandwidthLimit);\n //set default API Policy\n APIPolicy apiPolicy = new APIPolicy(SAMPLE_API_POLICY);\n apiPolicy.setUuid(UUID.randomUUID().toString());\n apiPolicy.setDisplayName(SAMPLE_API_POLICY);\n apiPolicy.setDescription(SAMPLE_API_POLICY_DESCRIPTION);\n apiPolicy.setUserLevel(APIMgtConstants.ThrottlePolicyConstants.API_LEVEL);\n apiPolicy.setDefaultQuotaPolicy(defaultQuotaPolicy);\n return apiPolicy;\n }",
"@Override\n public void createPolicyFromQuote(Policy policy, Quote quote) {\n checkCommonData(quote.getCommonData());\n ProductUtils.validateMainInsured(quote);\n\n // There is only one insured at this point\n Insured insured = quote.getInsureds().get(0);\n\n // check main insured stuff\n ProductUtils.checkInsuredAgeInRange(insured, MIN_AGE, MAX_AGE);\n ProductUtils.checkMainInsured(insured);\n checkMainInsured10ECSpecific(insured);\n\n // Recalculate the quote\n //TODO this method do nothing!!!\n calculateQuote(quote, null);\n\n // check for calculated data\n ProductUtils.validateNumberOfCoverages(quote.getCoverages());\n\n // There is only one coverage at this point\n Coverage coverage = quote.getCoverages().get(0);\n\n ProductUtils.checkBeneficiaries(insured, coverage.getBeneficiaries());\n check10ECPremiumsData(quote.getPremiumsData(), insured.getStartDate());\n\n // Copy from quote to Policy\n policy.setQuoteId(quote.getQuoteId());\n policy.setCommonData(SerializationUtils.clone(quote.getCommonData()));\n policy.setPremiumsData(SerializationUtils.clone(quote.getPremiumsData()));\n policy.addCoverage(SerializationUtils.clone(coverage));\n policy.addInsured(SerializationUtils.clone(insured));\n\n // Add payment schedule\n addPayments(policy, DURATION_PAYMENT_IN_YEAR);\n }",
"private RetryPolicy simpleRetryPolicy() {\n\n Map<Class<? extends Throwable>, Boolean> exceptionsMaps = new HashMap<>();\n exceptionsMaps.put(RecoverableDataAccessException.class, true);\n exceptionsMaps.put(IllegalArgumentException.class, false);\n\n SimpleRetryPolicy simpleRetryPolicy = new SimpleRetryPolicy(3, exceptionsMaps, true);\n return simpleRetryPolicy;\n }",
"Builder withAutoCompactFillRate(int percentage);",
"public SampledPolicy() {\r\n super(ExecutablePolicyType.SAMPLED);\r\n }",
"@Override\n public Exp getBasePolicyCode() {\n return null;\n }",
"public CustomerPolicyProperties() {\n }",
"private static void addStripes() {\n double stripeHeight = FLAG_HEIGHT / 13;\n for (int i = 12; i >= 0; i--) {\n PPRect stripe = new PPRect(x0, y0 + i * stripeHeight,\n FLAG_WIDTH, stripeHeight);\n stripe.setColor((i % 2 == 0) ? Color.RED : Color.WHITE);\n slide.add(stripe);\n }\n }",
"private void verifyNoCompaction(StripeCompactionPolicy policy, StripeInformationProvider si)\n throws IOException {\n assertNull(policy.selectCompaction(si, al(), false));\n assertFalse(policy.needsCompactions(si, al()));\n }",
"@Test\n // @Ignore\n public void testCompact_Last_Segment_Emptied_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Emptied_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(6);\n instance.remove(6);\n instance.compact();\n\n assertEquals(2, instance.persistedSegmentCount());\n\n }",
"@LargeTest\n public void testWhiteBalance() {\n TestAction ta = new TestAction(TestName.WHITE_BALANCE);\n runTest(ta, TestName.WHITE_BALANCE.name());\n }",
"@Test\n public void testCompact_Mid_Segment_Caching_Enabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Caching_Enabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.enableCache();\n instance.addAll(c);\n\n instance.remove(5);\n instance.compact();\n instance.disableCache();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n\n }",
"public void testCompact()\n {\n System.out.println(\"compact\");\n \n\n AbstractSparseMatrix m1 = (AbstractSparseMatrix) this.createRandom();\n m1.setElement(0,0, 0.0);\n Matrix m2 = m1.clone();\n assertEquals( m1, m2 );\n \n m1.compact();\n \n assertEquals( m1, m2 );\n \n }",
"public Prize createPrize(Prize prize) throws ContestManagementException {\n return null;\r\n }",
"public Prize createPrize(Prize prize) throws ContestManagementException {\n return null;\r\n }",
"private static PrinterCapacity createPrinterCapacity(Boolean[] bools) {\n\t\t\n\t\t// Init all pricing to 0\n\t\tint numA4, numA3, maxBlack, maxColor;\n\t\tnumA4 = 0;\n\t\tnumA3 = 0;\n\t\tmaxBlack = 0;\n\t\tmaxColor = 0;\n\t\t\n\t\t// Can print A4\n\t\tif(bools[canPrintA4]) {\n\t\t\tnumA4 = menuHandler.intGTEInput(\"Please input A4 paper capacity (must be > 0)\", 1);\n\t\t}\n\t\t\n\t\t// Can print A3\n\t\tif(bools[canPrintA3]) {\n\t\t\tnumA3 = menuHandler.intGTEInput(\"Please input A3 paper capacity (must be > 0)\", 1);\n\t\t}\n\t\t\n\t\t// Can print Black\n\t\tif(bools[canPrintBlack]) {\n\t\t\tmaxBlack = menuHandler.intGTEInput(\"Please input black toner capacity (must be > 0)\", 1);\n\t\t}\n\t\t\n\t\t// Can print Color\n\t\tif(bools[canPrintColor]) {\n\t\t\tmaxColor = menuHandler.intGTEInput(\"Please input color toner capacity (must be > 0)\", 1);\n\t\t}\n\t\t\n\t\treturn objectHandler.createPrinterCapacity(numA4, numA3, maxBlack, maxColor);\n\t}",
"@Test\n public void testCompact_Last_Segment_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(7);\n instance.compact();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n }",
"@Test\n public void testCompact_Mid_Segment_Emptied_Caching_Enabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Emptied_Caching_Enabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.enableCache();\n instance.addAll(c);\n\n instance.remove(4);\n instance.remove(5);\n instance.compact();\n instance.disableCache();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n\n }",
"public Stripes(String name)\r\n {\r\n super(name);\r\n\t}",
"ResourceSkuCapacity capacity();",
"private int semaphorePertmits(StripedExecutor exec) {\n // 4 task per-stripe by default.\n int permits = exec.stripesCount() * 4;\n\n long maxMemory = Runtime.getRuntime().maxMemory();\n\n // Heuristic calculation part of heap size as a maximum number of concurrent tasks.\n int permits0 = (int)((maxMemory * 0.2) / (4096 * 2));\n\n // May be for small heap. Get a low number of permits.\n if (permits0 < permits)\n permits = permits0;\n\n // Property for override any calculation.\n return getInteger(IGNITE_RECOVERY_SEMAPHORE_PERMITS, permits);\n }",
"public void createDistributedObjectsPolicy(){\n\t\t\n\t\tint size = 0;\n\t\t\n\t\tIterator<CacheObject> cst = candidateStableOnlyList.iterator();\n\t\t\n\t\twhile(cst.hasNext()){\n\t\t\t\n\t\t\tCacheObject ct = cst.next();\n\t\t\t\n\t\t\tIterator<String> it1 = serverList.keySet().iterator();\n\t\t\t\n\t\t\twhile(it1.hasNext()){\n\t\t\t\t\n\t\t\t\tString serverId = it1.next();\n\t\t\t\tHashMap<String, CacheObject> htemp = individualMap.get(serverId); \n\t\t\t\t\n\t\t\t\tif(htemp.containsKey(ct.cacheKey)){\n\t\t\t\t\t\n\t\t\t\t\tInteger sz = serverList.get(serverId);\n\t\t\t\t\t\n\t\t\t\t\tif(sz.intValue() < STABLE_SIZE){\n\t\t\t\t\t\tArrayList<String> lt = new ArrayList<String>();\n\t\t\t\t\t\tlt.add(serverId);\n\t\t\t\t\t\tRuleList rl = new RuleList(serverId, RuleList.MOVE , RuleList.LONG_TTL, lt);\n\t\t\t\t\t\tListKey lk = new ListKey();\n\t\t\t\t\t\tlk.addtoListKey(ct.cacheKey);\n\t\t\t\t\t\tASPolicyMap.get(serverId).addNewPolicy(lk, rl);\n\t\t\t\t\t\tsz = sz + ct.size;\n\t\t\t\t\t\tsize += ct.size;\n\t\t\t\t\t\tserverList.put(serverId, sz);\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{\n\t\t\t\t\t\tIterator<String> it2 = serverList.keySet().iterator();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile(it2.hasNext()){\n\t\t\t\t\t\t\tString serverId2 = it2.next();\n\t\t\t\t\t\t\tInteger sz2 = serverList.get(serverId2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(sz2.intValue() < STABLE_SIZE){\n\t\t\t\t\t\t\t\tArrayList<String> lt = new ArrayList<String>();\n\t\t\t\t\t\t\t\tlt.add(serverId2);\n\t\t\t\t\t\t\t\tRuleList rl = new RuleList(serverId2, RuleList.MOVE , RuleList.LONG_TTL, lt);\n\t\t\t\t\t\t\t\tListKey lk = new ListKey();\n\t\t\t\t\t\t\t\tlk.addtoListKey(ct.cacheKey);\n\t\t\t\t\t\t\t\tASPolicyMap.get(serverId2).addNewPolicy(lk, rl);\n\t\t\t\t\t\t\t\tsz2 = sz2 + ct.size;\n\t\t\t\t\t\t\t\tsize += ct.size;\n\t\t\t\t\t\t\t\tserverList.put(serverId2, sz2);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(size >= (STABLE_SIZE*NO_SERVERS) ){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"boolean getDeletionProtection();",
"public static APIPolicy createDefaultAPIPolicy() {\n APIPolicy apiPolicy = new APIPolicy(SAMPLE_API_POLICY);\n apiPolicy.setUuid(UUID.randomUUID().toString());\n apiPolicy.setDisplayName(SAMPLE_API_POLICY);\n apiPolicy.setDescription(SAMPLE_API_POLICY_DESCRIPTION);\n apiPolicy.setUserLevel(APIMgtConstants.ThrottlePolicyConstants.API_LEVEL);\n QuotaPolicy defaultQuotaPolicy = new QuotaPolicy();\n defaultQuotaPolicy.setType(REQUEST_COUNT_TYPE);\n RequestCountLimit requestCountLimit = new RequestCountLimit(TIME_UNIT_SECONDS, 1000, 10000);\n defaultQuotaPolicy.setLimit(requestCountLimit);\n apiPolicy.setDefaultQuotaPolicy(defaultQuotaPolicy);\n apiPolicy.setPipelines(createDefaultPipelines());\n return apiPolicy;\n }",
"@Test\n public void testUnfreezeDelegatedBalanceForBandwidthSameTokenNameClose() {\n UnfreezeBalanceActuatorTest.dbManager.getDynamicPropertiesStore().saveAllowDelegateResource(0);\n long now = System.currentTimeMillis();\n UnfreezeBalanceActuatorTest.dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderTimestamp(now);\n AccountCapsule owner = UnfreezeBalanceActuatorTest.dbManager.getAccountStore().get(ByteArray.fromHexString(UnfreezeBalanceActuatorTest.OWNER_ADDRESS));\n owner.setDelegatedFrozenBalanceForBandwidth(UnfreezeBalanceActuatorTest.frozenBalance);\n Assert.assertEquals(UnfreezeBalanceActuatorTest.frozenBalance, owner.getTronPower());\n AccountCapsule receiver = UnfreezeBalanceActuatorTest.dbManager.getAccountStore().get(ByteArray.fromHexString(UnfreezeBalanceActuatorTest.RECEIVER_ADDRESS));\n receiver.setAcquiredDelegatedFrozenBalanceForBandwidth(UnfreezeBalanceActuatorTest.frozenBalance);\n Assert.assertEquals(0L, receiver.getTronPower());\n UnfreezeBalanceActuatorTest.dbManager.getAccountStore().put(owner.createDbKey(), owner);\n UnfreezeBalanceActuatorTest.dbManager.getAccountStore().put(receiver.createDbKey(), receiver);\n // init DelegatedResourceCapsule\n DelegatedResourceCapsule delegatedResourceCapsule = new DelegatedResourceCapsule(owner.getAddress(), receiver.getAddress());\n delegatedResourceCapsule.setFrozenBalanceForBandwidth(UnfreezeBalanceActuatorTest.frozenBalance, (now - 100L));\n UnfreezeBalanceActuatorTest.dbManager.getDelegatedResourceStore().put(DelegatedResourceCapsule.createDbKey(ByteArray.fromHexString(UnfreezeBalanceActuatorTest.OWNER_ADDRESS), ByteArray.fromHexString(UnfreezeBalanceActuatorTest.RECEIVER_ADDRESS)), delegatedResourceCapsule);\n // init DelegatedResourceAccountIndex\n {\n DelegatedResourceAccountIndexCapsule delegatedResourceAccountIndex = new DelegatedResourceAccountIndexCapsule(owner.getAddress());\n delegatedResourceAccountIndex.addToAccount(ByteString.copyFrom(ByteArray.fromHexString(UnfreezeBalanceActuatorTest.RECEIVER_ADDRESS)));\n UnfreezeBalanceActuatorTest.dbManager.getDelegatedResourceAccountIndexStore().put(ByteArray.fromHexString(UnfreezeBalanceActuatorTest.OWNER_ADDRESS), delegatedResourceAccountIndex);\n }\n {\n DelegatedResourceAccountIndexCapsule delegatedResourceAccountIndex = new DelegatedResourceAccountIndexCapsule(receiver.getAddress());\n delegatedResourceAccountIndex.addFromAccount(ByteString.copyFrom(ByteArray.fromHexString(UnfreezeBalanceActuatorTest.OWNER_ADDRESS)));\n UnfreezeBalanceActuatorTest.dbManager.getDelegatedResourceAccountIndexStore().put(ByteArray.fromHexString(UnfreezeBalanceActuatorTest.RECEIVER_ADDRESS), delegatedResourceAccountIndex);\n }\n UnfreezeBalanceActuator actuator = new UnfreezeBalanceActuator(getDelegatedContractForBandwidth(UnfreezeBalanceActuatorTest.OWNER_ADDRESS, UnfreezeBalanceActuatorTest.RECEIVER_ADDRESS), UnfreezeBalanceActuatorTest.dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n try {\n actuator.validate();\n actuator.execute(ret);\n TestCase.fail(\"cannot run here.\");\n } catch (ContractValidateException e) {\n Assert.assertTrue((e instanceof ContractValidateException));\n Assert.assertEquals(\"no frozenBalance(BANDWIDTH)\", e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertTrue((e instanceof ContractExeException));\n }\n }",
"FilterCondition createFilterCondition(int clueNum);",
"private StripesPMI() {}",
"private MetadataCheckpointPolicy getNoOpCheckpointPolicy() {\n DurableLogConfig dlConfig = DurableLogConfig\n .builder()\n .with(DurableLogConfig.CHECKPOINT_COMMIT_COUNT, Integer.MAX_VALUE)\n .with(DurableLogConfig.CHECKPOINT_TOTAL_COMMIT_LENGTH, Long.MAX_VALUE)\n .build();\n\n return new MetadataCheckpointPolicy(dlConfig, Runnables.doNothing(), executorService());\n }",
"public void insert(ChargePolicy chargePolicy);",
"PolicyRecord findOne(Long id);",
"private PartitionFunctionFactory() {\n }",
"@Test\n public void testCompact_Overflow_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Overflow_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n instance.compact();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n }",
"public void setPolicy(short policy) {\n\t\t_policy = policy;\n\t}",
"public PartitionPlan(int numOfAttributes, int partitionSize, float expense) {\n\t\tthis.numOfAttributes = numOfAttributes;\n\t\tthis.privacyExceptions = null;\n\t\tsetPartitionSize(partitionSize);\n\t\tsetExpense(expense);\n\t\tgenerateRandomly = false;\n\t}",
"ServiceEndpointPolicy getById(String id);",
"private Constraint doNotExceedFloorCapacity(ConstraintFactory factory) {\n return factory.from(TaskAssignment.class)\n .filter(TaskAssignment::isTaskAssigned)\n .join(Shift.class)\n .filter(((taskAssignment, shift) -> taskAssignment.getShift() == shift))\n .groupBy(((taskAssignment, shift) -> shift))\n .join(Person.class)\n .filter((Shift::isPersonAssigned))\n .groupBy(((shift, person) -> shift), countBi())\n .filter(((shift, integer) -> integer > 40))\n .penalizeConfigurable(\"Floor capacity conflict\");\n }",
"void callForBackup() {\n List<Resource> redundantList = resourceRepository.findAllByIsRedundantIsTrue();\n System.out.println(\"Invoking redundant instance from list: \" + redundantList);\n if (redundantList != null && redundantList.size() > 0) {\n Resource redundantResource = redundantList.get(0);\n redundantResource.setRedundant(false);\n resourceRepository.save(redundantResource);\n }\n }",
"boolean hasDeletionProtection();",
"public static ClientAuthorizer\n createFixedClientAuthorizer( final boolean policy ) {\n return new ClientAuthorizer() {\n public boolean authorize( HttpServer.Request request,\n String appName ) {\n return policy;\n }\n };\n }",
"public WSFederationClaimsReleasePolicy() {\n this(new HashMap<>());\n }",
"@Override\n public void createPartition(Partition partition) {\n \n }",
"@Override\n\tpublic boolean canfitCompact() {\n\t\treturn false;\n\t}",
"private void discardRestrictedCards()\n\t{\n\t\tif (playerList.size() == 2)\n\t\t{\n\t\t\tfor(Card card : restrictedCard2PlayerList)\n\t\t\t{\n\t\t\t\tswitch (card.getType())\n\t\t\t\t{\n\t\t\t\t\tcase GreenPlayerCard:\n\t\t\t\t\tcase BrownPlayerCard:\n\t\t\t\t\t\tCard playerCardMatch = board.getPlayerCardDeck().pickCardByID(card.getId());\n\t\t\t\t\t\tif (playerCardMatch != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard.getDiscardDeck().addCard(playerCardMatch);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CityAreaCard:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PersonalityCard:\n\t\t\t\t\t\tCard personalityCardMatch = board.getPersonalityCardDeck().pickCardByID(card.getId());\n\t\t\t\t\t\tif (personalityCardMatch != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard.getDiscardDeck().addCard(personalityCardMatch);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase RandomEventCard:\n\t\t\t\t\t\tCard randomEventCardMatch = board.getRandomEventCardDeck().pickCardByID(card.getId());\n\t\t\t\t\t\tif (randomEventCardMatch != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tboard.getDiscardDeck().addCard(randomEventCardMatch);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"RecordSet loadAllPremium(PolicyHeader policyHeader, Record inputRecord);",
"public Resource split( int amount )\n\t{\n\t\tResource r = pool.obtain();\n\t\tthis.transter(r, amount);\n\t\t\n\t\treturn r;\n\t}",
"@Test\n public void testDeleteSingleLock() throws BackendException {\n long now = 1L;\n\n Entry expiredLockCol = StaticArrayEntry.of(codec.toLockCol(now,\n defaultLockRid), BufferUtil.getIntBuffer(0));\n EntryList expiredSingleton = StaticArrayEntryList.of(expiredLockCol);\n\n now += 1;\n del = new StandardLockCleanerRunnable(store, kc, tx, codec, now);\n\n expect(store.getSlice(eq(ksq), eq(tx)))\n .andReturn(expiredSingleton);\n\n store.mutate(\n eq(key),\n eq(ImmutableList.<Entry> of()),\n eq(ImmutableList.<StaticBuffer> of(expiredLockCol.getColumn())),\n anyObject(StoreTransaction.class));\n\n ctrl.replay();\n del.run();\n }",
"public ContestPayment createContestPayment(ContestPayment contestPayment) throws ContestManagementException {\n return null;\r\n }",
"public ContestPayment createContestPayment(ContestPayment contestPayment) throws ContestManagementException {\n return null;\r\n }",
"public CoffeeMug(String w, int cap, boolean full) {\n owner = w;\n capacity = cap;\n this.full = full;\n }",
"public void purgeClean(boolean noneLocked) {\n/*\nudanax-top.st:16728:FakePacker methodsFor: 'transactions'!\n{void} purgeClean: noneLocked {BooleanVar unused default: false}\n\t\"No shepherds are clean, so no-op.\"!\n*/\n}",
"private void createTrimBars(MPerspective perspective) {\n\t\tList<MUIElement> minimizedElements = modelService.findElements(perspective, null, MUIElement.class,\r\n\t\t\t\tArrays.asList(IPresentationEngine.MINIMIZED));\r\n\t\tfor (MUIElement element : minimizedElements) {\r\n\t\t\tcreateTrim(element, perspective);\r\n\t\t}\r\n\t}",
"public boolean isPartialPaymentSupported();",
"@Test\n public void detectSuspiciousAmountOperationsWithVariableThresholdTest() {\n Customer customer1 = new CustomerBuilder()\n .withId(1L).build();\n \n Order customer1Order = ModelFactory.getPendingOrderWithTotalValueGreaterThan10000(customer1);\n\n //Create a customer with PENDING orders for a value < 10000 \n Customer customer2 = new CustomerBuilder()\n .withId(2L).build();\n \n Order customer2Order = ModelFactory.getPendingOrderWithTotalValueLessThan10000(customer2);\n\n //Create a session and insert the 2 customers and their orders.\n KieSession ksession = this.createSession(\"globals2Ksession\");\n \n //Before we insert any fact, we set the value of 'amountThreshold' global\n //to 500.0\n ksession.setGlobal(\"amountThreshold\", 500.0);\n\n ksession.insert(customer1);\n ksession.insert(customer1Order);\n ksession.insert(customer2);\n ksession.insert(customer2Order);\n\n //Before we fire any activated rule, we check that the session doesn't\n //have any object of type SuspiciousOperation in it.\n Collection<SuspiciousOperation> suspiciousOperations\n = this.getFactsFromKieSession(ksession, SuspiciousOperation.class);\n assertThat(suspiciousOperations, hasSize(0));\n\n //Let's fire any activated rule now.\n ksession.fireAllRules();\n\n //After the rules are fired, 2 SuspiciousOperation objects are now \n //present. These objects belong to Customer \"1\" and \"2\".\n suspiciousOperations\n = this.getFactsFromKieSession(ksession, SuspiciousOperation.class);\n\n assertThat(suspiciousOperations, hasSize(2));\n assertThat(\n suspiciousOperations.stream().map(so -> so.getCustomer().getCustomerId()).collect(toList())\n , containsInAnyOrder(1L, 2L)\n );\n \n }",
"@NotNull\n @Override\n public Claim getClaim(@NotNull Chunk chunk) {\n return new MassiveCoreFactionsClaim(PS.valueOf(chunk));\n }",
"default void compact() {\n\t\t/* no-op by default */\n\t}",
"ClaimSoftgoal createClaimSoftgoal();",
"static TradeAllowanceCharge create(boolean chargeIndicator, Amount amount, Amount baseAmount, BigDecimal percentage) {\r\n\t\treturn new TradeAllowanceCharge(chargeIndicator, amount, baseAmount, percentage);\r\n\t}",
"public NoiseCleaner(CleaningDecorator next) { super(next); }",
"FirewallPolicyService firewallpolicy();",
"public PolicyDetailsRecord() {\n\t\tsuper(PolicyDetails.POLICY_DETAILS);\n\t}",
"@Test\r\n public void testPlayer_getCautiousStrategyCardCard_higherFirst_wd4() {\n player2 = new Player(\"Player Two\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n\r\n // get rid of the wild so the wd4 is the most attractive option\r\n player2.getHand().discard(wild);\r\n assertTrue(player2.getCautiousStrategyCard(yellowThree, yellowThree.getColor()).equals(wildDrawFour));\r\n }",
"public static final void setWarc10HeaderPolicyMatrix(int[][] field_policy) {\n // Warc-Record-id\n // Warc-Type\n // Warc-Date\n // Content-Length\n // Also required for unknown warc-types.\n for (int i=0; i<=RT_NUMBER; ++i) {\n field_policy[i][FN_IDX_WARC_RECORD_ID] = POLICY_MANDATORY;\n field_policy[i][FN_IDX_WARC_TYPE] = POLICY_MANDATORY;\n field_policy[i][FN_IDX_WARC_DATE] = POLICY_MANDATORY;\n field_policy[i][FN_IDX_CONTENT_LENGTH] = POLICY_MANDATORY;\n }\n\n // Content-Type\n field_policy[RT_IDX_CONTINUATION][FN_IDX_CONTENT_TYPE] = POLICY_SHALL_NOT;\n\n // Warc-Ip-Address\n field_policy[RT_IDX_REQUEST][FN_IDX_WARC_IP_ADDRESS] = POLICY_MAY;\n field_policy[RT_IDX_RESPONSE][FN_IDX_WARC_IP_ADDRESS] = POLICY_MAY;\n field_policy[RT_IDX_RESOURCE][FN_IDX_WARC_IP_ADDRESS] = POLICY_MAY;\n field_policy[RT_IDX_METADATA][FN_IDX_WARC_IP_ADDRESS] = POLICY_MAY;\n field_policy[RT_IDX_REVISIT][FN_IDX_WARC_IP_ADDRESS] = POLICY_MAY;\n field_policy[RT_IDX_WARCINFO][FN_IDX_WARC_IP_ADDRESS] = POLICY_SHALL_NOT;\n field_policy[RT_IDX_CONVERSION][FN_IDX_WARC_IP_ADDRESS] = POLICY_SHALL_NOT;\n field_policy[RT_IDX_CONTINUATION][FN_IDX_WARC_IP_ADDRESS] = POLICY_SHALL_NOT;\n\n // Warc-Concurrent-To\n field_policy[RT_IDX_REQUEST][FN_IDX_WARC_CONCURRENT_TO] = POLICY_MAY;\n field_policy[RT_IDX_RESPONSE][FN_IDX_WARC_CONCURRENT_TO] = POLICY_MAY;\n field_policy[RT_IDX_RESOURCE][FN_IDX_WARC_CONCURRENT_TO] = POLICY_MAY;\n field_policy[RT_IDX_METADATA][FN_IDX_WARC_CONCURRENT_TO] = POLICY_MAY;\n field_policy[RT_IDX_REVISIT][FN_IDX_WARC_CONCURRENT_TO] = POLICY_MAY;\n field_policy[RT_IDX_WARCINFO][FN_IDX_WARC_CONCURRENT_TO] = POLICY_SHALL_NOT;\n field_policy[RT_IDX_CONVERSION][FN_IDX_WARC_CONCURRENT_TO] = POLICY_SHALL_NOT;\n field_policy[RT_IDX_CONTINUATION][FN_IDX_WARC_CONCURRENT_TO] = POLICY_SHALL_NOT;\n\n // Warc-Refers-To\n field_policy[RT_IDX_METADATA][FN_IDX_WARC_REFERS_TO] = POLICY_MAY;\n field_policy[RT_IDX_CONVERSION][FN_IDX_WARC_REFERS_TO] = POLICY_MAY;\n field_policy[RT_IDX_REVISIT][FN_IDX_WARC_REFERS_TO] = POLICY_MAY;\n field_policy[RT_IDX_WARCINFO][FN_IDX_WARC_REFERS_TO] = POLICY_SHALL_NOT;\n field_policy[RT_IDX_REQUEST][FN_IDX_WARC_REFERS_TO] = POLICY_SHALL_NOT;\n field_policy[RT_IDX_RESPONSE][FN_IDX_WARC_REFERS_TO] = POLICY_SHALL_NOT;\n field_policy[RT_IDX_RESOURCE][FN_IDX_WARC_REFERS_TO] = POLICY_SHALL_NOT;\n field_policy[RT_IDX_CONTINUATION][FN_IDX_WARC_REFERS_TO] = POLICY_SHALL_NOT;\n\n // Warc-Target-Uri\n field_policy[RT_IDX_REQUEST][FN_IDX_WARC_TARGET_URI] = POLICY_SHALL;\n field_policy[RT_IDX_RESPONSE][FN_IDX_WARC_TARGET_URI] = POLICY_SHALL;\n field_policy[RT_IDX_RESOURCE][FN_IDX_WARC_TARGET_URI] = POLICY_SHALL;\n field_policy[RT_IDX_CONVERSION][FN_IDX_WARC_TARGET_URI] = POLICY_SHALL;\n field_policy[RT_IDX_CONTINUATION][FN_IDX_WARC_TARGET_URI] = POLICY_SHALL;\n field_policy[RT_IDX_REVISIT][FN_IDX_WARC_TARGET_URI] = POLICY_SHALL;\n field_policy[RT_IDX_METADATA][FN_IDX_WARC_TARGET_URI] = POLICY_MAY;\n field_policy[RT_IDX_WARCINFO][FN_IDX_WARC_TARGET_URI] = POLICY_SHALL_NOT;\n\n // Warc-Warcinfo-Id\n // Warc-Filename\n // Warc-Profile\n // Warc-Segment-Origin-Id\n // Warc-Segment-Total-Length\n for (int i=1; i<=RT_NUMBER; ++i) {\n field_policy[i][FN_IDX_WARC_WARCINFO_ID] = POLICY_MAY;\n field_policy[i][FN_IDX_WARC_FILENAME] = POLICY_SHALL_NOT;\n field_policy[i][FN_IDX_WARC_PROFILE] = POLICY_IGNORE;\n field_policy[i][FN_IDX_WARC_SEGMENT_ORIGIN_ID] = POLICY_SHALL_NOT;\n field_policy[i][FN_IDX_WARC_SEGMENT_ORIGIN_ID] = POLICY_SHALL_NOT;\n }\n field_policy[RT_IDX_WARCINFO][FN_IDX_WARC_WARCINFO_ID] = POLICY_MAY_NOT;\n field_policy[RT_IDX_WARCINFO][FN_IDX_WARC_FILENAME] = POLICY_MAY;\n field_policy[RT_IDX_REVISIT][FN_IDX_WARC_PROFILE] = POLICY_MANDATORY;\n field_policy[RT_IDX_CONTINUATION][FN_IDX_WARC_SEGMENT_ORIGIN_ID] = POLICY_MANDATORY;\n\n // Warc-Segment-Number\n field_policy[RT_IDX_CONTINUATION][FN_IDX_WARC_SEGMENT_NUMBER] = POLICY_MANDATORY;\n }",
"public void testTemporaryQueueFirstConsume()\n {\n ObjectProperties temporary = new ObjectProperties(_queueName);\n temporary.put(ObjectProperties.Property.AUTO_DELETE, Boolean.TRUE);\n \n ObjectProperties normal = new ObjectProperties(_queueName);\n normal.put(ObjectProperties.Property.AUTO_DELETE, Boolean.FALSE);\n \n assertEquals(Result.DENIED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n\n // should not matter if the temporary permission is processed first or last\n _ruleSet.grant(1, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, normal);\n _ruleSet.grant(2, TEST_USER, Permission.ALLOW, Operation.CONSUME, ObjectType.QUEUE, temporary);\n assertEquals(2, _ruleSet.getRuleCount());\n \n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, normal));\n assertEquals(Result.ALLOWED, _ruleSet.check(_testSubject, Operation.CONSUME, ObjectType.QUEUE, temporary));\n }",
"void cap();",
"@Test\n public void testCompact_Last_Segment_Emptied_Caching_Enabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Emptied_Caching_Enabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.enableCache();\n instance.addAll(c);\n\n instance.remove(6);\n instance.remove(6);\n instance.compact();\n instance.disableCache();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n\n }",
"@SuppressWarnings(\"unused\")\n\tvoid example17() {\n\t\t\n\t\t// make a list of 10,000 numbers\n\t\t\n\t\tIndexedDataSource<Float32Member> original =\n\t\t\t\tnom.bdezonia.zorbage.storage.Storage.allocate(G.FLT.construct(), 10000);\n\n\t\t// make a list that is a subset of the previous list (numbers from locations 1,000 - 2,999)\n\t\t\n\t\tIndexedDataSource<Float32Member> trimmed = new TrimmedDataSource<>(original, 1000, 2000);\n\t\t\n\t\t// then create a new memory copy of those 2000 numbers\n\t\t\n\t\tIndexedDataSource<Float32Member> theCopy = DeepCopy.compute(G.FLT, trimmed);\n\t}"
] | [
"0.48604348",
"0.47579774",
"0.47484562",
"0.47300476",
"0.46686035",
"0.45902207",
"0.45818135",
"0.45575905",
"0.4555275",
"0.45487967",
"0.4467609",
"0.44623256",
"0.44103736",
"0.44059646",
"0.43981698",
"0.4393088",
"0.4345982",
"0.43353498",
"0.43229148",
"0.42809954",
"0.4270479",
"0.4259042",
"0.4252134",
"0.42424744",
"0.42388752",
"0.41816202",
"0.4180455",
"0.41757315",
"0.41669983",
"0.41351536",
"0.41314426",
"0.4114458",
"0.4107781",
"0.4101085",
"0.40986097",
"0.40914127",
"0.40819436",
"0.4078025",
"0.40768656",
"0.40343282",
"0.40119228",
"0.40104893",
"0.39920703",
"0.39815354",
"0.3977264",
"0.3975145",
"0.39684418",
"0.39625365",
"0.39625365",
"0.3954978",
"0.39543793",
"0.395093",
"0.39481512",
"0.39437023",
"0.39426363",
"0.39338207",
"0.39292866",
"0.39286396",
"0.39276183",
"0.39212325",
"0.3921167",
"0.39173645",
"0.39039174",
"0.38737282",
"0.38687125",
"0.3857437",
"0.3856983",
"0.38501897",
"0.383887",
"0.38363335",
"0.3835377",
"0.38349587",
"0.38326988",
"0.3827131",
"0.38256803",
"0.38049608",
"0.37930077",
"0.37834427",
"0.37772185",
"0.3776998",
"0.37757054",
"0.37757054",
"0.37751928",
"0.377329",
"0.37711543",
"0.3765924",
"0.37618575",
"0.37516892",
"0.37477866",
"0.37396547",
"0.37394547",
"0.37311754",
"0.37287626",
"0.3709302",
"0.37076238",
"0.3707064",
"0.37066913",
"0.3703273",
"0.3703271",
"0.37001082"
] | 0.5900675 | 0 |
TODO: currently only one compaction at a time per store is allowed. If this changes, the appropriate file exclusion testing would need to be done in respective tests. | @Test
public void testWithParallelCompaction() throws Exception {
assertNull(createPolicy(HBaseConfiguration.create())
.selectCompaction(mock(StripeInformationProvider.class), al(createFile()), false));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract CompactionContext createCompaction() throws IOException;",
"@Test\n public void testCompact_Overflow_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Overflow_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n instance.compact();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n }",
"@Test\n public void testCompact_Mid_Segment_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(5);\n instance.compact();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n }",
"@Test\n public void testCompact_Last_Segment_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(7);\n instance.compact();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n }",
"@Test\n public void testCompact_Mid_Segment_Emptied_Caching_Enabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Emptied_Caching_Enabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.enableCache();\n instance.addAll(c);\n\n instance.remove(4);\n instance.remove(5);\n instance.compact();\n instance.disableCache();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n\n }",
"@Test\n public void testCompact_Mid_Segment_Caching_Enabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Caching_Enabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.enableCache();\n instance.addAll(c);\n\n instance.remove(5);\n instance.compact();\n instance.disableCache();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n\n }",
"@Test\n public void testCompact_Last_Segment_Emptied_Caching_Enabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Emptied_Caching_Enabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.enableCache();\n instance.addAll(c);\n\n instance.remove(6);\n instance.remove(6);\n instance.compact();\n instance.disableCache();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n\n }",
"@Test\n public void testCompact_Overflow_Caching_Enabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Overflow_Caching_Enabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.enableCache();\n instance.addAll(c);\n\n instance.remove(2);\n instance.compact();\n instance.disableCache();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n\n }",
"@Test\n public void testCompact_Last_Segment_Caching_Enabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Caching_Enabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.enableCache();\n instance.addAll(c);\n\n instance.remove(7);\n instance.disableCache();\n\n assertNumberFilesInDirectory(instance.instanceStore(), 2);\n\n }",
"private CompactionOperation(CompactionController controller)\n {\n this.controller = controller;\n\n this.strategy = cfs.getCompactionStrategy();\n this.fullyExpiredSSTables = controller.getFullyExpiredSSTables();\n this.taskId = transaction.opId();\n\n // select SSTables to compact based on available disk space.\n buildCompactionCandidatesForAvailableDiskSpace(fullyExpiredSSTables);\n\n // sanity check: all sstables must belong to the same cfs\n assert !Iterables.any(transaction.originals(), sstable -> !sstable.descriptor.cfname.equals(cfs.name));\n\n this.limiter = CompactionManager.instance.getRateLimiter();\n this.startNanos = System.nanoTime();\n this.startTime = System.currentTimeMillis();\n this.actuallyCompact = Sets.difference(transaction.originals(), fullyExpiredSSTables);\n this.progress = new Progress();\n this.newSStables = Collections.emptyList();\n this.totalKeysWritten = 0;\n this.estimatedKeys = 0;\n this.completed = false;\n\n Directories dirs = getDirectories();\n\n try\n {\n // resources that need closing, must be created last in case of exceptions and released if there is an exception in the c.tor\n this.sstableRefs = Refs.ref(actuallyCompact);\n this.scanners = strategy.getScanners(actuallyCompact);\n this.compactionIterator = new CompactionIterator(compactionType, scanners.scanners, controller, FBUtilities.nowInSeconds(), taskId);\n this.op = compactionIterator.getOperation();\n this.writer = getCompactionAwareWriter(cfs, dirs, transaction, actuallyCompact);\n this.obsCloseable = opObserver.onOperationStart(op);\n\n compObservers.forEach(obs -> obs.onInProgress(progress));\n }\n catch (Throwable t)\n {\n t = Throwables.close(t, obsCloseable, writer, compactionIterator, scanners, sstableRefs); // ok to close even if null\n\n Throwables.maybeFail(t);\n }\n }",
"@Test\n public void testSingleStripeCompaction() throws Exception {\n Configuration conf = HBaseConfiguration.create();\n // Test depends on this not being set to pass. Default breaks test. TODO: Revisit.\n conf.unset(\"hbase.hstore.compaction.min.size\");\n conf.setFloat(CompactionConfiguration.HBASE_HSTORE_COMPACTION_RATIO_KEY, 1.0F);\n conf.setInt(StripeStoreConfig.MIN_FILES_KEY, 3);\n conf.setInt(StripeStoreConfig.MAX_FILES_KEY, 4);\n conf.setLong(StripeStoreConfig.SIZE_TO_SPLIT_KEY, 1000); // make sure the are no splits\n StoreConfigInformation sci = mock(StoreConfigInformation.class);\n when(sci.getRegionInfo()).thenReturn(RegionInfoBuilder.FIRST_META_REGIONINFO);\n StripeStoreConfig ssc = new StripeStoreConfig(conf, sci);\n StripeCompactionPolicy policy = new StripeCompactionPolicy(conf, sci, ssc) {\n @Override\n public StripeCompactionRequest selectCompaction(StripeInformationProvider si,\n List<HStoreFile> filesCompacting, boolean isOffpeak) throws IOException {\n if (!filesCompacting.isEmpty()) {\n return null;\n }\n return selectSingleStripeCompaction(si, false, false, isOffpeak);\n }\n\n @Override\n public boolean needsCompactions(StripeInformationProvider si,\n List<HStoreFile> filesCompacting) {\n if (!filesCompacting.isEmpty()) {\n return false;\n }\n return needsSingleStripeCompaction(si);\n }\n };\n\n // No compaction due to min files or ratio\n StripeInformationProvider si =\n createStripesWithSizes(0, 0, new Long[] { 2L }, new Long[] { 3L, 3L }, new Long[] { 5L, 1L });\n verifyNoCompaction(policy, si);\n // No compaction due to min files or ratio - will report needed, but not do any.\n si = createStripesWithSizes(0, 0, new Long[] { 2L }, new Long[] { 3L, 3L },\n new Long[] { 5L, 1L, 1L });\n assertNull(policy.selectCompaction(si, al(), false));\n assertTrue(policy.needsCompactions(si, al()));\n // One stripe has possible compaction\n si = createStripesWithSizes(0, 0, new Long[] { 2L }, new Long[] { 3L, 3L },\n new Long[] { 5L, 4L, 3L });\n verifySingleStripeCompaction(policy, si, 2, null);\n // Several stripes have possible compactions; choose best quality (removes most files)\n si = createStripesWithSizes(0, 0, new Long[] { 3L, 2L, 2L }, new Long[] { 2L, 2L, 1L },\n new Long[] { 3L, 2L, 2L, 1L });\n verifySingleStripeCompaction(policy, si, 2, null);\n si = createStripesWithSizes(0, 0, new Long[] { 5L }, new Long[] { 3L, 2L, 2L, 1L },\n new Long[] { 3L, 2L, 2L });\n verifySingleStripeCompaction(policy, si, 1, null);\n // Or with smallest files, if the count is the same\n si = createStripesWithSizes(0, 0, new Long[] { 3L, 3L, 3L }, new Long[] { 3L, 1L, 2L },\n new Long[] { 3L, 2L, 2L });\n verifySingleStripeCompaction(policy, si, 1, null);\n // Verify max count is respected.\n si = createStripesWithSizes(0, 0, new Long[] { 5L }, new Long[] { 5L, 4L, 4L, 4L, 4L });\n List<HStoreFile> sfs = si.getStripes().get(1).subList(1, 5);\n verifyCompaction(policy, si, sfs, null, 1, null, si.getStartRow(1), si.getEndRow(1), true);\n // Verify ratio is applied.\n si = createStripesWithSizes(0, 0, new Long[] { 5L }, new Long[] { 50L, 4L, 4L, 4L, 4L });\n sfs = si.getStripes().get(1).subList(1, 5);\n verifyCompaction(policy, si, sfs, null, 1, null, si.getStartRow(1), si.getEndRow(1), true);\n }",
"@Test\n // @Ignore\n public void testCompact_Last_Segment_Emptied_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Emptied_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(6);\n instance.remove(6);\n instance.compact();\n\n assertEquals(2, instance.persistedSegmentCount());\n\n }",
"@Override\n protected void runMayThrow() throws Exception\n {\n // The collection of sstables passed may be empty (but not null); even if\n // it is not empty, it may compact down to nothing if all rows are deleted.\n assert transaction != null;\n\n if (transaction.originals().isEmpty())\n return;\n\n if (DatabaseDescriptor.isSnapshotBeforeCompaction())\n cfs.snapshotWithoutMemtable(System.currentTimeMillis() + \"-compact-\" + cfs.name);\n\n try (CompactionController controller = getCompactionController(transaction.originals());\n CompactionOperation operation = new CompactionOperation(controller))\n {\n operation.execute();\n }\n }",
"@Test\n public void testCompact_Mid_Segment_Emptied_Caching_Disabled() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testCompact_Last_Segment_Emptied_Caching_Disabled\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1, 1);\n\n instance.addAll(c);\n\n instance.remove(4);\n instance.remove(5);\n instance.compact();\n\n assertEquals(2, instance.persistedSegmentCount());\n\n }",
"protected void buildCompactionCandidatesForAvailableDiskSpace(final Set<SSTableReader> fullyExpiredSSTables)\n {\n if(!cfs.isCompactionDiskSpaceCheckEnabled() && compactionType == OperationType.COMPACTION)\n {\n logger.info(\"Compaction space check is disabled\");\n return; // try to compact all SSTables\n }\n\n final Set<SSTableReader> nonExpiredSSTables = Sets.difference(transaction.originals(), fullyExpiredSSTables);\n CompactionStrategy strategy = cfs.getCompactionStrategy();\n int sstablesRemoved = 0;\n\n while(!nonExpiredSSTables.isEmpty())\n {\n // Only consider write size of non expired SSTables\n long expectedWriteSize = cfs.getExpectedCompactedFileSize(nonExpiredSSTables, compactionType);\n long estimatedSSTables = Math.max(1, expectedWriteSize / strategy.getMaxSSTableBytes());\n\n if(cfs.getDirectories().hasAvailableDiskSpace(estimatedSSTables, expectedWriteSize))\n break;\n\n if (!reduceScopeForLimitedSpace(nonExpiredSSTables, expectedWriteSize))\n {\n // we end up here if we can't take any more sstables out of the compaction.\n // usually means we've run out of disk space\n\n // but we can still compact expired SSTables\n if(partialCompactionsAcceptable() && fullyExpiredSSTables.size() > 0 )\n {\n // sanity check to make sure we compact only fully expired SSTables.\n assert transaction.originals().equals(fullyExpiredSSTables);\n break;\n }\n\n String msg = String.format(\"Not enough space for compaction, estimated sstables = %d, expected write size = %d\", estimatedSSTables, expectedWriteSize);\n logger.warn(msg);\n CompactionManager.instance.incrementAborted();\n throw new RuntimeException(msg);\n }\n\n sstablesRemoved++;\n logger.warn(\"Not enough space for compaction, {}MB estimated. Reducing scope.\",\n (float) expectedWriteSize / 1024 / 1024);\n }\n\n if(sstablesRemoved > 0)\n {\n CompactionManager.instance.incrementCompactionsReduced();\n CompactionManager.instance.incrementSstablesDropppedFromCompactions(sstablesRemoved);\n }\n\n }",
"private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }",
"@Test\n public void testMajorCompactTask()\n {\n CompactionTasks compactionTasks = cfs.getCompactionStrategyManager().getMaximalTasks(Integer.MAX_VALUE, false, OperationType.MAJOR_COMPACTION);\n Assert.assertTrue(compactionTasks.stream().allMatch(task -> task.compactionType.equals(OperationType.MAJOR_COMPACTION)));\n }",
"@Test\n public void run() throws Exception {\n BranchName main = BranchName.of(\"main\");\n\n // create an old commit referencing both unique and non-unique assets.\n //The unique asset should be identified by the gc policy below since they are older than 1 day.\n store.setOverride(FIVE_DAYS_IN_PAST_MICROS);\n commit().put(\"k1\", new DummyValue().add(-3).add(0).add(100)).withMetadata(\"cOld\").toBranch(main);\n\n // work beyond slop but within gc allowed age.\n store.setOverride(TWO_HOURS_IN_PAST_MICROS);\n // create commits that have time-valid assets. Create more commits than ParentList.MAX_PARENT_LIST to confirm recursion.\n for (int i = 0; i < 55; i++) {\n commit().put(\"k1\", new DummyValue().add(i).add(i + 100)).withMetadata(\"c2\").toBranch(main);\n }\n\n // create a new branch, commit two assets, then delete the branch.\n BranchName toBeDeleted = BranchName.of(\"toBeDeleted\");\n versionStore.create(toBeDeleted, Optional.empty());\n Hash h = commit().put(\"k1\", new DummyValue().add(-1).add(-2)).withMetadata(\"c1\").toBranch(toBeDeleted);\n versionStore.delete(toBeDeleted, Optional.of(h));\n\n store.clearOverride();\n {\n // Create a dangling value to ensure that the slop factor avoids deletion of the assets of this otherwise dangling value.\n save(TimeUnit.MILLISECONDS.toMicros(System.currentTimeMillis()), new DummyValue().add(-50).add(-51));\n\n // create a dangling value that should be cleaned up.\n save(TimeUnit.MILLISECONDS.toMicros(System.currentTimeMillis()) - TimeUnit.DAYS.toMicros(2), new DummyValue().add(-60).add(-61));\n }\n\n SparkSession spark = SparkSession\n .builder()\n .appName(\"test-nessie-gc-collection\")\n .master(\"local[2]\")\n .getOrCreate();\n\n // now confirm that the unreferenced assets are marked for deletion. These are found based\n // on the no-longer referenced commit as well as the old commit.\n GcOptions options = ImmutableGcOptions.builder()\n .bloomFilterCapacity(10_000_000)\n .maxAgeMicros(ONE_DAY_OLD_MICROS)\n .timeSlopMicros(ONE_HOUR_OLD_MICROS)\n .build();\n IdentifyUnreferencedAssets<DummyValue> app = new IdentifyUnreferencedAssets<DummyValue>(helper, new DynamoSupplier(), spark, options);\n Dataset<UnreferencedItem> items = app.identify();\n Set<String> unreferencedItems = items.collectAsList().stream().map(UnreferencedItem::getName).collect(Collectors.toSet());\n assertThat(unreferencedItems, containsInAnyOrder(\"-1\", \"-2\", \"-3\", \"-60\", \"-61\"));\n }",
"@Test\n public void testSelectL0Compaction() throws Exception {\n Configuration conf = HBaseConfiguration.create();\n conf.setInt(StripeStoreConfig.MIN_FILES_L0_KEY, 4);\n StripeCompactionPolicy policy = createPolicy(conf);\n StripeCompactionPolicy.StripeInformationProvider si = createStripesWithSizes(10, 10L,\n new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L }, new Long[] { 3L, 2L, 2L });\n StripeCompactionPolicy.StripeCompactionRequest cr = policy.selectCompaction(si, al(), false);\n assertNotNull(cr);\n assertEquals(10, cr.getRequest().getFiles().size());\n verifyCollectionsEqual(si.getLevel0Files(), cr.getRequest().getFiles());\n\n // test select partial L0 files when size of L0 files > HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY\n conf.setLong(HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY, 100L);\n policy = createPolicy(conf);\n si = createStripesWithSizes(5, 50L, new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L },\n new Long[] { 3L, 2L, 2L });\n cr = policy.selectCompaction(si, al(), false);\n assertNotNull(cr);\n assertEquals(2, cr.getRequest().getFiles().size());\n verifyCollectionsEqual(si.getLevel0Files().subList(0, 2), cr.getRequest().getFiles());\n\n // test select partial L0 files when count of L0 files > MAX_FILES_KEY\n conf.setInt(MAX_FILES_KEY, 6);\n conf.setLong(HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY, 1000L);\n policy = createPolicy(conf);\n si = createStripesWithSizes(10, 10L, new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L },\n new Long[] { 3L, 2L, 2L });\n cr = policy.selectCompaction(si, al(), false);\n assertNotNull(cr);\n assertEquals(6, cr.getRequest().getFiles().size());\n verifyCollectionsEqual(si.getLevel0Files().subList(0, 6), cr.getRequest().getFiles());\n }",
"@Override\n public Collection<SSTableReader> inSSTables()\n {\n return actuallyCompact;\n }",
"private void doCompact(String partition, List<Path> paths) throws IOException {\n if (paths.size() == 0) {\n return;\n }\n\n Map<Path, Long> inputMap = new HashMap<>();\n for (Path path : paths) {\n inputMap.put(path, fileSystem.getFileStatus(path).getLen());\n }\n\n Path target = createCompactedFile(paths);\n if (fileSystem.exists(target)) {\n return;\n }\n\n checkExist(paths);\n\n long startMillis = System.currentTimeMillis();\n\n boolean success = false;\n if (paths.size() == 1) {\n // optimizer for single file\n success = doSingleFileMove(paths.get(0), target);\n }\n\n if (!success) {\n doMultiFilesCompact(partition, paths, target);\n }\n\n Map<Path, Long> targetMap = new HashMap<>();\n targetMap.put(target, fileSystem.getFileStatus(target).getLen());\n\n double costSeconds = ((double) (System.currentTimeMillis() - startMillis)) / 1000;\n LOG.info(\n \"Compaction time cost is '{}S', output per file as following format: name=size(byte), target file is '{}', input files are '{}'\",\n costSeconds,\n targetMap,\n inputMap);\n }",
"@Override\n public void compact() throws IOException{\n region.compactStores();\n }",
"@Test\n public void testInjectOnCompact() throws Exception {\n Connector conn = tester.getConnector();\n\n // create table, add table split, write data\n final String tableName = getUniqueNames(1)[0];\n Map<Key, Value> input = new HashMap<>();\n input.put(new Key(\"aTablet1\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"kTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"zTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n SortedSet<Text> splitset = new TreeSet<>();\n splitset.add(new Text(\"f\"));\n TestUtil.createTestTable(conn, tableName, splitset, input);\n\n // expected data back\n Map<Key, Value> expect = new HashMap<>(input);\n expect.putAll(HardListIterator.allEntriesToInject);\n // we will not read back the entry that has a column visibility because this is a compaction write and we don't have the credentials\n for (Iterator<Map.Entry<Key, Value>> iterator = expect.entrySet().iterator();\n iterator.hasNext();\n ) {\n if (iterator.next().getKey().getColumnVisibilityData().length() > 0)\n iterator.remove();\n }\n\n // attach InjectIterator, flush and compact. Compaction blocks.\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n List<IteratorSetting> itlist = new ArrayList<>();\n itlist.add(itset);\n itset = new IteratorSetting(16, DebugIterator.class);\n itlist.add(itset);\n StopWatch sw = new StopWatch();\n sw.start();\n conn.tableOperations().compact(tableName, null, null, itlist, true, true);\n\n// CompactionConfig cc = new CompactionConfig()\n// .setCompactionStrategy(CompactionStrategyConfigUtil.DEFAULT_STRATEGY)\n// .setStartRow(null).setEndRow(null).setIterators(itlist)\n// .setFlush(true).setWait(true);\n// conn.tableOperations().compact(tableName, cc);\n\n sw.stop();\n log.debug(\"compaction took \" + sw.getTime() + \" ms\");\n\n // read back both tablets in parallel\n BatchScanner scan = conn.createBatchScanner(tableName, Authorizations.EMPTY, 2);\n// Key startKey = new Key(new Text(\"d\"), cf, cq);\n Range rng = new Range();\n scan.setRanges(Collections.singleton(rng));\n log.debug(\"Results of scan on table \" + tableName + ':');\n Map<Key, Value> actual = new TreeMap<>(TestUtil.COMPARE_KEY_TO_COLQ); // only compare row, colF, colQ\n for (Map.Entry<Key, Value> entry : scan) {\n Key k = entry.getKey();\n Value v = entry.getValue();\n log.debug(k + \" \" + v);\n Assert.assertFalse(\"Duplicate entry found: \" + k, actual.containsKey(k)); // passes because not scan-time iterator\n actual.put(k, v);\n }\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }",
"@Suppress\n public void testFileStore () throws Throwable {\n for (final AndroidFileStore store : fs.getAndroidFileStores()) {\n Log.i(getName(), store.toString());\n Log.i(getName(), \" state=\"+store.state());\n Log.i(getName(), \" read-only=\"+store.isReadOnly());\n Log.i(getName(), \" removable=\"+store.isRemovable());\n Log.i(getName(), \" emulated=\"+store.isEmulated());\n Log.i(getName(), \" total-space=\"+store.getTotalSpace());\n Log.i(getName(), \" usable-space=\"+store.getUsableSpace());\n Log.i(getName(), \" unallocated-space=\"+store.getUnallocatedSpace());\n }\n }",
"@Test\n @Ignore(\"KnownBug: ACCUMULO-3645 Fixed in Accumulo 1.7.0\")\n public void testInjectOnCompact_Empty() throws Exception {\n Connector conn = tester.getConnector();\n\n // create table, add table split, write data\n final String tableName = getUniqueNames(1)[0];\n SortedSet<Text> splitset = new TreeSet<>();\n splitset.add(new Text(\"f\"));\n TestUtil.createTestTable(conn, tableName, splitset);\n\n // expected data back\n Map<Key, Value> expect = new HashMap<>(HardListIterator.allEntriesToInject);\n // we will not read back the entry that has a column visibility because this is a compaction write and we don't have the credentials\n for (Iterator<Map.Entry<Key, Value>> iterator = expect.entrySet().iterator();\n iterator.hasNext();\n ) {\n if (iterator.next().getKey().getColumnVisibilityData().length() > 0)\n iterator.remove();\n }\n\n // attach InjectIterator, flush and compact. Compaction blocks.\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n StopWatch sw = new StopWatch();\n sw.start();\n conn.tableOperations().compact(tableName, null, null, Collections.singletonList(itset), true, true);\n sw.stop();\n log.debug(\"compaction took \" + sw.getTime() + \" ms\");\n\n // read back both tablets in parallel\n BatchScanner scan = conn.createBatchScanner(tableName, Authorizations.EMPTY, 2);\n// Key startKey = new Key(new Text(\"d\"), cf, cq);\n Range rng = new Range();\n scan.setRanges(Collections.singleton(rng));\n log.debug(\"Results of scan on table \" + tableName + ':');\n Map<Key, Value> actual = new TreeMap<>(TestUtil.COMPARE_KEY_TO_COLQ); // only compare row, colF, colQ\n for (Map.Entry<Key, Value> entry : scan) {\n Key k = entry.getKey();\n Value v = entry.getValue();\n log.debug(k + \" \" + v);\n Assert.assertFalse(\"Duplicate entry found: \" + k, actual.containsKey(k));\n actual.put(k, v);\n }\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }",
"public List<CompactionInfo> getCompactions() {\n List<CompactionInfo> compactions = new ArrayList<>();\n for (Map<String, String> compaction : this.nodeProbe.getCompactionManagerProxy().getCompactions()) {\n compactions.add(new CompactionInfo(Long.parseLong(compaction.get(\"total\")),\n Long.parseLong(compaction.get(\"completed\")), compaction.get(\"unit\"), compaction.get(\"taskType\"),\n compaction.get(\"keyspace\"), compaction.get(\"columnfamily\"), null));\n }\n return compactions;\n }",
"protected void migrateOnDemand () {\n\t\ttry {\n\t\t\tif (fso.fileExists(prefix+\".fat\") && !fso.fileExists(prefix+EXTENSIONS[UBM_FILE])) {\n\t\t\t\tRandomAccessFile ubm, meta, ctr, rbm;\n\t\t\t\tInputStream inputStream;\n\t\t\t\tOutputStream outputStream;\n\n\t\t\t\tfso.renameFile(prefix+\".fat\",prefix+EXTENSIONS[UBM_FILE]);\n\n\t\t\t\tubm = fso.openFile(prefix+EXTENSIONS[UBM_FILE], \"rw\");\n\t\t\t\tmeta = fso.openFile(prefix+EXTENSIONS[MTD_FILE], \"rw\");\n\t\t\t\tctr = fso.openFile(prefix+EXTENSIONS[CTR_FILE], \"rw\");\n\t\t\t\tubm.seek(ubm.length()-16);\n\t\t\t\tmeta.writeInt(blockSize = ubm.readInt());\n\t\t\t\tmeta.writeInt(size = ubm.readInt());\n\t\t\t\tctr.setLength(ubm.readLong()+blockSize);\t// maxOffset\n\t\t\t\tctr.close();\n\t\t\t\tmeta.close();\n\t\t\t\tubm.setLength(ubm.length()-16);\n\n\t\t\t\tubm.seek(0);\n\t\t\t\trbm = fso.openFile(prefix+EXTENSIONS[UBM_FILE], \"rw\");\n\t\t\t\tinputStream = new BufferedInputStream(new RandomAccessFileInputStream(ubm));\n\t\t\t\toutputStream = new BufferedOutputStream(new RandomAccessFileOutputStream(rbm));\n\t\t\t\tfor (int b; (b = inputStream.read())!=-1;)\n\t\t\t\t\toutputStream.write(b);\n\t\t\t\toutputStream.close();\n\t\t\t\tinputStream.close();\n\t\t\t\trbm.close();\n\t\t\t\tubm.close();\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t}\n\t}",
"@Test\n public void mixedSSTableFailure() throws Exception\n {\n cfs.getCompactionStrategyManager().disable();\n QueryProcessor.executeInternal(\"INSERT INTO ks.tbl (k, v) VALUES (1, 1);\");\n Util.flush(cfs);\n QueryProcessor.executeInternal(\"INSERT INTO ks.tbl (k, v) VALUES (2, 2);\");\n Util.flush(cfs);\n QueryProcessor.executeInternal(\"INSERT INTO ks.tbl (k, v) VALUES (3, 3);\");\n Util.flush(cfs);\n QueryProcessor.executeInternal(\"INSERT INTO ks.tbl (k, v) VALUES (4, 4);\");\n Util.flush(cfs);\n\n List<SSTableReader> sstables = new ArrayList<>(cfs.getLiveSSTables());\n Assert.assertEquals(4, sstables.size());\n\n SSTableReader unrepaired = sstables.get(0);\n SSTableReader repaired = sstables.get(1);\n SSTableReader pending1 = sstables.get(2);\n SSTableReader pending2 = sstables.get(3);\n\n mutateRepaired(repaired, FBUtilities.nowInSeconds(), ActiveRepairService.NO_PENDING_REPAIR, false);\n mutateRepaired(pending1, UNREPAIRED_SSTABLE, nextTimeUUID(), false);\n mutateRepaired(pending2, UNREPAIRED_SSTABLE, nextTimeUUID(), false);\n\n LifecycleTransaction txn = null;\n List<SSTableReader> toCompact = new ArrayList<>(sstables);\n for (int i=0; i<sstables.size(); i++)\n {\n try\n {\n txn = cfs.getTracker().tryModify(sstables, OperationType.COMPACTION);\n Assert.assertNotNull(txn);\n CompactionTask task = new CompactionTask(cfs, txn, 0);\n Assert.fail(\"Expected IllegalArgumentException\");\n }\n catch (IllegalArgumentException e)\n {\n // expected\n }\n finally\n {\n if (txn != null)\n txn.abort();\n }\n Collections.rotate(toCompact, 1);\n }\n }",
"@Override\n\tpublic boolean canfitCompact() {\n\t\treturn false;\n\t}",
"@Test\n public void testRemoveCorruptedPendingCleanAction() throws IOException {\n HoodieCLI.conf = hadoopConf();\n\n Configuration conf = HoodieCLI.conf;\n\n HoodieTableMetaClient metaClient = HoodieCLI.getTableMetaClient();\n\n // Create four requested files\n for (int i = 100; i < 104; i++) {\n String timestamp = String.valueOf(i);\n // Write corrupted requested Clean File\n HoodieTestCommitMetadataGenerator.createEmptyCleanRequestedFile(tablePath, timestamp, conf);\n }\n\n // reload meta client\n metaClient = HoodieTableMetaClient.reload(metaClient);\n // first, there are four instants\n assertEquals(4, metaClient.getActiveTimeline().filterInflightsAndRequested().getInstants().count());\n\n CommandResult cr = shell().executeCommand(\"repair corrupted clean files\");\n assertTrue(cr.isSuccess());\n\n // reload meta client\n metaClient = HoodieTableMetaClient.reload(metaClient);\n assertEquals(0, metaClient.getActiveTimeline().filterInflightsAndRequested().getInstants().count());\n }",
"@Override\n public double compactionTimePerKbInNanos()\n {\n return TimeUnit.MICROSECONDS.toNanos(compactionTimeMicros);\n }",
"public synchronized void onReleased(int cycle, File file)\n {\n chronicleStoreFiles.offer(file);\n //This isn't accurate because the files are sparse, but it's at least pessimistic\n bytesInStoreFiles += file.length();\n logger.debug(\"Chronicle store file {} rolled file size {}\", file.getPath(), file.length());\n while (bytesInStoreFiles > maxLogSize & !chronicleStoreFiles.isEmpty())\n {\n File toDelete = chronicleStoreFiles.poll();\n long toDeleteLength = toDelete.length();\n if (!toDelete.delete())\n {\n logger.error(\"Failed to delete chronicle store file: {} store file size: {} bytes in store files: {}. \" +\n \"You will need to clean this up manually or reset full query logging.\",\n toDelete.getPath(), toDeleteLength, bytesInStoreFiles);\n }\n else\n {\n bytesInStoreFiles -= toDeleteLength;\n logger.info(\"Deleted chronicle store file: {} store file size: {} bytes in store files: {} max log size: {}.\",\n file.getPath(), toDeleteLength, bytesInStoreFiles, maxLogSize);\n }\n }\n }",
"public FileGarbageCollector(){\n\t\tthis.maxAge = 0;\n\t\tthis.dirs = new Vector<File>();\n\t}",
"static AbstractCompactionTask forTesting(ColumnFamilyStore cfs, LifecycleTransaction txn, int gcBefore)\n {\n return new CompactionTask(cfs, txn, gcBefore, false, null);\n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Test\n public void testCompactFast_One_Sgement_Removed() throws Exception {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n\n // 2 persisted segment counts\n Collection c = Arrays.asList(1, 1, 2, 3, 4, 5, 6, 7);\n instance.addAll(c);\n\n // remove 2 items form memory before compacting fast\n instance.remove(1);\n instance.remove(1);\n\n instance.compactFast();\n\n assertEquals(1, instance.persistedSegmentCount());\n\n }",
"private void readAndCompactLog() throws IOException {\n Schema writerSchema = new AvroSchemaConverter().convert(baseFileSchema);\n List<String> projectionFields = orderFields(\n jobConf.get(ColumnProjectionUtils.READ_COLUMN_NAMES_CONF_STR),\n jobConf.get(ColumnProjectionUtils.READ_COLUMN_IDS_CONF_STR),\n jobConf.get(\"partition_columns\", \"\"));\n // TODO(vc): In the future, the reader schema should be updated based on log files & be able to null out fields not present before\n Schema readerSchema = generateProjectionSchema(writerSchema, projectionFields);\n\n LOG.info(\n String.format(\"About to read compacted logs %s for base split %s, projecting cols %s\",\n split.getDeltaFilePaths(), split.getPath(), projectionFields));\n\n HoodieCompactedLogRecordScanner compactedLogRecordScanner =\n new HoodieCompactedLogRecordScanner(FSUtils.getFs(), split.getDeltaFilePaths(),\n readerSchema);\n\n // NOTE: HoodieCompactedLogRecordScanner will not return records for an in-flight commit\n // but can return records for completed commits > the commit we are trying to read (if using readCommit() API)\n for (HoodieRecord<HoodieAvroPayload> hoodieRecord : compactedLogRecordScanner) {\n GenericRecord rec = (GenericRecord) hoodieRecord.getData().getInsertValue(readerSchema)\n .get();\n String key = hoodieRecord.getRecordKey();\n // we assume, a later safe record in the log, is newer than what we have in the map & replace it.\n ArrayWritable aWritable = (ArrayWritable) avroToArrayWritable(rec, writerSchema);\n deltaRecordMap.put(key, aWritable);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Log record : \" + arrayWritableToString(aWritable));\n }\n }\n }",
"@Test\n public void testPreserveTimeWithDeleteMiss() throws IOException {\n TaskAttemptContext taskAttemptContext = getTaskAttemptContext(config);\n JobContext jobContext = new JobContextImpl(\n taskAttemptContext.getConfiguration(),\n taskAttemptContext.getTaskAttemptID().getJobID());\n Configuration conf = jobContext.getConfiguration();\n\n FileSystem fs = null;\n try {\n OutputCommitter committer = new CopyCommitter(null, taskAttemptContext);\n fs = FileSystem.get(conf);\n String sourceBase = TestDistCpUtils.createTestSetup(\n fs, FsPermission.getDefault());\n String targetBase = TestDistCpUtils.createTestSetup(\n fs, FsPermission.getDefault());\n String targetBaseAdd = TestDistCpUtils.createTestSetup(\n fs, FsPermission.getDefault());\n fs.rename(new Path(targetBaseAdd), new Path(targetBase));\n\n final DistCpOptions options = new DistCpOptions.Builder(\n Collections.singletonList(new Path(sourceBase)), new Path(\"/out\"))\n .withSyncFolder(true).withDeleteMissing(true)\n .preserve(FileAttribute.TIMES).build();\n options.appendToConf(conf);\n final DistCpContext context = new DistCpContext(options);\n\n CopyListing listing = new GlobbedCopyListing(conf, CREDENTIALS);\n Path listingFile = new Path(\"/tmp1/\" + String.valueOf(rand.nextLong()));\n listing.buildListing(listingFile, context);\n\n conf.set(CONF_LABEL_TARGET_WORK_PATH, targetBase);\n conf.set(CONF_LABEL_TARGET_FINAL_PATH, targetBase);\n\n Path sourceListing = new Path(\n conf.get(DistCpConstants.CONF_LABEL_LISTING_FILE_PATH));\n SequenceFile.Reader sourceReader = new SequenceFile.Reader(conf,\n SequenceFile.Reader.file(sourceListing));\n Path targetRoot = new Path(targetBase);\n\n committer.commitJob(jobContext);\n checkDirectoryTimes(fs, sourceReader, targetRoot);\n\n //Test for idempotent commit\n committer.commitJob(jobContext);\n checkDirectoryTimes(fs, sourceReader, targetRoot);\n } finally {\n TestDistCpUtils.delete(fs, \"/tmp1\");\n conf.unset(DistCpConstants.CONF_LABEL_PRESERVE_STATUS);\n conf.set(DistCpConstants.CONF_LABEL_DELETE_MISSING, \"false\");\n }\n }",
"@Test\n public void testCompactFast_Muliple_Sgements_Removed() throws Exception {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 1);\n\n // 1 persisted segment counts\n Collection c = Arrays.asList(1, 1, 2, 3, 4, 5);\n instance.addAll(c);\n\n // remove 2 items form memory before compacting fast\n instance.remove(0);\n instance.remove(0);\n\n instance.compactFast();\n\n assertEquals(0, instance.persistedSegmentCount());\n\n }",
"public static void status() {\n Set branchSet = commitPointers.readBranches().keySet();\n ArrayList<String> sortedBranches = (ArrayList) branchSet.stream().sorted().collect(Collectors.toList());\n String currBranch = commitPointers.readHeadCommit()[0];\n System.out.println(\"=== Branches ===\");\n for (String branch: sortedBranches) {\n if (currBranch.equals(branch)) {\n System.out.println(\"*\" + currBranch);\n } else {\n System.out.println(branch);\n }\n }\n stagingArea = Utils.readObject(STAGING_FILE, HashMap.class);\n\n ArrayList<String> sortedStaged = (ArrayList) stagingArea.keySet().stream().sorted().collect(Collectors.toList());\n System.out.println();\n System.out.println(\"=== Staged Files ===\");\n for (String staged : sortedStaged) {\n System.out.println(staged);\n }\n\n System.out.println();\n System.out.println(\"=== Removed Files ===\");\n stagingRemoveArea = Utils.readObject(STAGING_REMOVE_FILE, HashMap.class);\n ArrayList<String> sortedRemoved = (ArrayList) stagingRemoveArea.keySet().stream().sorted().collect(Collectors.toList());\n for (String removed : sortedRemoved) {\n System.out.println(removed);\n }\n System.out.println();\n\n System.out.println(\"=== Modifications Not Staged For Commit ===\");\n\n Commit Head = Utils.readObject(Utils.join(Commit.COMMIT_FOLDER, commitPointers.readHeadCommit()[1] + \".txt\"), Commit.class);\n //File blobs contains a SHAID + file name\n\n HashMap<String, String> modUntracked = new HashMap<>();\n\n //iterates through head Blobs\n for (HashMap.Entry<String, String> headfileBlob : Head.fileBlobs.entrySet()) {\n\n File cwdBFile = Utils.join(CWD, headfileBlob.getKey());\n\n if (!cwdBFile.exists() && !stagingRemoveArea.containsKey(headfileBlob.getKey())) {\n modUntracked.put(headfileBlob.getKey(), \"(deleted)\");\n }\n else if (cwdBFile.exists()){\n\n Blob tempBlob = new Blob(headfileBlob.getKey(), cwdBFile);\n String tempBlobId = Utils.sha1(Utils.serialize(tempBlob));\n\n\n if(!tempBlobId.equals(headfileBlob.getValue())) {\n //if not in staging area\n if (!stagingArea.containsKey(headfileBlob.getKey())) {\n modUntracked.put(headfileBlob.getKey(), \"(modified)\");\n }\n //TODO: IS THIS PART NECCESARY?\n else if (stagingArea.containsKey(headfileBlob.getKey()) && !stagingArea.get(headfileBlob.getKey()).equals(headfileBlob.getValue())) {\n modUntracked.put(headfileBlob.getKey(), \"(modified)\");\n }\n }\n }\n }\n\n ArrayList<String> sortedModNames = (ArrayList) modUntracked.keySet().stream().sorted().collect(Collectors.toList());\n for (String modFileName : sortedModNames){\n System.out.println(modFileName + \" \" + modUntracked.get(modFileName));\n }\n System.out.println();\n\n\n\n ArrayList<String> untracked = new ArrayList<>();\n System.out.println(\"=== Untracked Files ===\");\n for (String cwdfile : CWD.list()) {\n if(!cwdfile.equals(\".gitlet\")) {\n File currfile = Utils.join(CWD, cwdfile);\n if (currfile.exists() && !Head.fileBlobs.containsKey(cwdfile)) {\n untracked.add(cwdfile);\n }\n }\n }\n\n untracked = (ArrayList) untracked.stream().sorted().collect(Collectors.toList());\n\n for (String untrackedName : untracked){\n System.out.println(untrackedName);\n }\n }",
"private CompactAction getAction(ClusterRegionStatus.RegionSizeStatus regionSizeStatus) {\n HRegionInfo info = regionSizeStatus.getRegionInfo();\n HRegionInterface hri = regionSizeStatus.getRegionInterface();\n // We expect to have expected store file count for each family\n int expectedStoreFiles = filesKeep * regionSizeStatus.getFamilyCount();\n // If splits are enabled, check if average size > maxSplitSize\n if (splitsEnabled && (regionSizeStatus.getStoreFileSizeMB() / regionSizeStatus.getStoreFileCount()) > maxSplitSize) {\n log.debug(\"Want to split: \" + info.getRegionNameAsString() + \" because store file size is \" + regionSizeStatus.getStoreFileSizeMB());\n return new CompactAction(CompactActionType.SPLIT, info, hri);\n // If we are not doing splits, check if we have greater than the expected number of store files\n } else if (regionSizeStatus.getStoreFileCount() > expectedStoreFiles) {\n log.debug(\"Need to compact: \" + info.getRegionNameAsString() + \" because number of store files is \" + regionSizeStatus.getStoreFileCount());\n return new CompactAction(CompactActionType.COMPACT, info, hri);\n } else {\n return new CompactAction(CompactActionType.NONE, info, hri);\n }\n }",
"private static void m133350k() {\n C41940c c = C35574k.m114859a().mo70094i().mo102932c();\n String str = C39811er.f103468d;\n C7573i.m23582a((Object) str, \"ShortVideoConfig2.sDir\");\n File a = c.mo102928a(str);\n if (a.exists() && a.isDirectory()) {\n Set a2 = C41911c.m133283a();\n File[] listFiles = a.listFiles();\n C7573i.m23582a((Object) listFiles, \"filesRoot.listFiles()\");\n Iterable c2 = C7519g.m23444c((T[]) listFiles);\n Collection arrayList = new ArrayList();\n Iterator it = c2.iterator();\n while (true) {\n boolean z = false;\n if (!it.hasNext()) {\n break;\n }\n Object next = it.next();\n File file = (File) next;\n if (file.exists() && file.isFile()) {\n z = true;\n }\n if (z) {\n arrayList.add(next);\n }\n }\n for (File file2 : (List) arrayList) {\n String name = file2.getName();\n C7573i.m23582a((Object) name, \"filesToDelete.name\");\n if (!C7634n.m23723c(name, \"-concat-v\", false)) {\n String name2 = file2.getName();\n C7573i.m23582a((Object) name2, \"filesToDelete.name\");\n if (!C7634n.m23723c(name2, \"-concat-a\", false)) {\n String name3 = file2.getName();\n C7573i.m23582a((Object) name3, \"filesToDelete.name\");\n if (!C7634n.m23723c(name3, \"_synthetise\", false)) {\n }\n }\n }\n Iterator it2 = a2.iterator();\n int i = 0;\n while (true) {\n if (!it2.hasNext()) {\n i = -1;\n break;\n }\n Object next2 = it2.next();\n if (i < 0) {\n C7525m.m23465b();\n }\n String str2 = (String) next2;\n String path = file2.getPath();\n C7573i.m23582a((Object) path, \"filesToDelete.path\");\n if (C7634n.m23721b(path, str2, false)) {\n break;\n }\n i++;\n }\n if (-1 == i) {\n file2.delete();\n }\n }\n }\n }",
"@Test\n public void testCompactFast_Sgement_Not_Removed() throws Exception {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n\n // 2 persisted segment counts\n Collection c = Arrays.asList(1, 1, 2, 3, 4, 5, 6, 7);\n instance.addAll(c);\n\n // remove 2 items form memory before compacting fast\n instance.remove(1);\n\n instance.compactFast();\n\n assertEquals(2, instance.persistedSegmentCount());\n\n }",
"@Test\n public void testConstructor_Custom_Store_File_Overflow() {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-list-testConstructor_Custom_Store_File_Overflow\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n }",
"@Test\n public void testConstructor_Custom_Store_File() {\n\n File file = new File(\n System.getProperty(\"java.io.tmpdir\") + File.separator + \"oasis-list-testConstructor_Custom_Store_File\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n }",
"@Test\n public void testStoreFileAlphabetical() {\n\n File file1 = new File(\"c\");\n File file2 = new File(\"b\");\n File file3 = new File(\"a\");\n parent.storeFile(file1);\n parent.storeFile(file2);\n parent.storeFile(file3);\n ArrayList<File> output = parent.getStoredFiles();\n ArrayList<File> expected = new ArrayList<File>();\n expected.add(file3);\n expected.add(file2);\n expected.add(file1);\n assertEquals(output, expected);\n }",
"private void generateSSTables(ICardinality cardinality, long numEntries, Token minToken, Token maxToken, String reason, boolean checkForCompaction) throws InterruptedException\n {\n // The theoretical sstable size that is being mocked\n long sstableSize = numEntries * valueSize;\n IPartitioner partitioner = minToken.getPartitioner();\n\n int shards = strategy.getController().getNumShards(valueSize * numEntries / minToken.size(maxToken));\n ShardTracker boundaries = strategy.getShardManager().boundaries(shards);\n\n int numSStables = 0;\n boundaries.advanceTo(minToken);\n while (true)\n {\n ++numSStables;\n if (boundaries.shardEnd() == null || maxToken.compareTo(boundaries.shardEnd()) <= 0)\n break;\n boundaries.advanceTo(boundaries.shardEnd().nextValidToken());\n }\n\n boundaries = strategy.getShardManager().boundaries(shards);\n\n List<SSTableReader> sstables = new ArrayList<>(numSStables);\n long keyCount = (long) Math.ceil(numEntries / (double) numSStables);\n long bytesOnDisk = valueSize * keyCount;\n long timestamp = System.currentTimeMillis();\n\n boundaries.advanceTo(minToken);\n while (true)\n {\n Range<Token> span = boundaries.shardSpan();\n Token firstToken = span.left.nextValidToken();\n if (minToken.compareTo(firstToken) > 0)\n firstToken = minToken;\n Token lastToken = partitioner.split(span.left, span.right, 1 - Math.scalb(1, -24)); // something that is < span.right\n if (maxToken.compareTo(lastToken) < 0)\n lastToken = maxToken;\n DecoratedKey first = new BufferDecoratedKey(firstToken, ByteBuffer.allocate(0));\n DecoratedKey last = new BufferDecoratedKey(lastToken, ByteBuffer.allocate(0));\n\n SSTableReader sstable = mockSSTable(0, bytesOnDisk, timestamp, 0, first, last, 0, true, null, 0);\n when(sstable.keyCardinalityEstimator()).thenReturn(cardinality);\n when(sstable.estimatedKeys()).thenReturn(keyCount);\n sstables.add(sstable);\n\n if (boundaries.shardEnd() == null || maxToken.compareTo(boundaries.shardEnd()) <= 0)\n break;\n boundaries.advanceTo(boundaries.shardEnd().nextValidToken());\n }\n\n counters.numWritten.addAndGet(numEntries);\n dataTracker.addInitialSSTablesWithoutUpdatingSize(sstables);\n logger.debug(\"Generated {} new sstables for {}, live: {}, compacting: {}, tot sstable size {}\",\n sstables.size(), reason, dataTracker.getLiveSSTables().size(), dataTracker.getCompacting().size(),\n sstableSize);\n\n if (checkForCompaction)\n maybeSubmitCompaction();\n }",
"private void verifyWholeStripesCompaction(StripeCompactionPolicy policy,\n StripeInformationProvider si, int from, int to, Boolean dropDeletes, Integer count, Long size,\n boolean needsCompaction) throws IOException {\n verifyCompaction(policy, si, getAllFiles(si, from, to), dropDeletes, count, size,\n si.getStartRow(from), si.getEndRow(to), needsCompaction);\n }",
"public void resetStore() {\n try {\n db.close();\n uncommited = null;\n uncommitedDeletes = null;\n autoCommit = true;\n bloom = new BloomFilter();\n utxoCache = new LRUCache(openOutCache, 0.75f);\n } catch (IOException e) {\n log.error(\"Exception in resetStore.\", e);\n }\n\n File f = new File(filename);\n if (f.isDirectory()) {\n for (File c : f.listFiles())\n c.delete();\n }\n openDB();\n }",
"public void mo83570c() {\n File[] listFiles;\n File file = new File(this.f60297d);\n if (file.isDirectory() && (listFiles = file.listFiles()) != null && listFiles.length >= this.f60294a) {\n Arrays.sort(listFiles, this.f60295b);\n for (int i = 0; i < listFiles.length && listFiles.length >= this.f60294a; i++) {\n File file2 = listFiles[i];\n if (!this.f60299f.contains(file2)) {\n ArgusLogger.m85574b(String.format(C6969H.m41409d(\"G4D8AC619BE22AF20E809D047FEE1C6C47DC3D008AD3FB969E71DD05BE6EAD1D26DC3D008AD3FB969EA079D41E6A5D1D26880DD1FBB70E36CF547\"), file2.getPath()));\n mo83569b(Collections.singleton(file2));\n }\n }\n }\n }",
"protected void trunkStore() {\n LOG.info(\"Trunking state filestore: {}\", fileStore);\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(fileStore);\n for (Map.Entry<String, String> entry : cache.entrySet()) {\n fos.write(entry.getKey().getBytes());\n fos.write(KEY_VALUE_DELIMITER.getBytes());\n fos.write(entry.getValue().getBytes());\n fos.write(STORE_DELIMITER.getBytes());\n }\n } catch (IOException e) {\n throw RuntimeCamelException.wrapRuntimeCamelException(e);\n } finally {\n IOHelper.close(fos, \"Trunking file state repository\", LOG);\n }\n }",
"private void m50956b() {\n if (!C8626b.m50749b() && !C8626b.m50748a()) {\n try {\n File file = new File(this.f36887b.getExternalFilesDir(null) + \"/.logcache\");\n if (file.exists() && file.isDirectory()) {\n for (File file2 : file.listFiles()) {\n file2.delete();\n }\n }\n } catch (NullPointerException unused) {\n }\n }\n }",
"public final void mo118048d() {\n List<File> c = this.f120295d.mo118063c();\n int i = this.f120296e;\n if (c.size() > i) {\n int size = c.size() - i;\n C46869g.m146602a(this.f120292a, C1642a.m8035a(Locale.US, \"Found %d files in roll over directory, this is greater than %d, deleting %d oldest files\", new Object[]{Integer.valueOf(c.size()), Integer.valueOf(i), Integer.valueOf(size)}));\n TreeSet treeSet = new TreeSet(C46913h.f120301a);\n for (File file : c) {\n treeSet.add(new C46912a(file, m146732b(file.getName())));\n }\n ArrayList arrayList = new ArrayList();\n Iterator it = treeSet.iterator();\n while (it.hasNext()) {\n arrayList.add(((C46912a) it.next()).f120299a);\n if (arrayList.size() == size) {\n break;\n }\n }\n this.f120295d.mo118059a((List<File>) arrayList);\n }\n }",
"public final void mo14831s() {\n Iterator it = ((ArrayList) mo14817d()).iterator();\n while (it.hasNext()) {\n File file = (File) it.next();\n if (file.listFiles() != null) {\n m6739b(file);\n long c = m6740c(file, false);\n if (((long) this.f6567b.mo14797a()) != c) {\n try {\n new File(new File(file, String.valueOf(c)), \"stale.tmp\").createNewFile();\n } catch (IOException unused) {\n f6563c.mo14884b(6, \"Could not write staleness marker.\", new Object[0]);\n }\n }\n for (File b : file.listFiles()) {\n m6739b(b);\n }\n }\n }\n }",
"static public void testCrossChildMove(Path path, int clusterSize, int clusterCount,\n int allocatorType) throws IOException {\n startUp(path);\n\n String dump1;\n try (final FATFileSystem ffs = FATFileSystem.create(path, clusterSize, clusterCount, allocatorType)) {\n FATFolder root1 = ffs.getRoot();\n\n //1 <- 1_1 <- 1_1_1\n final FATFolder f1 = root1.createFolder(\"1\");\n final FATFolder f1_1 = f1.createFolder(\"1_1\");\n final FATFolder f1_1_1 = f1_1.createFolder(\"1_1_1\");\n\n //2 <- 2_1 <- 2_1_1\n final FATFolder f2 = root1.createFolder(\"2\");\n final FATFolder f2_1 = f2.createFolder(\"2_1\");\n final FATFolder f2_1_1 = f2_1.createFolder(\"2_1_1\");\n\n // Now the worst concurrent case:\n // at the same time\n // 2_1 -> 1_1_1\n // 1 -> 2_1_1\n // Both are good, but not at the same time\n\n final Object start = new Object();\n final IOException problem[] = new IOException[]{null};\n Thread mover = new Thread(new Runnable() {\n @Override public void run() {\n try {\n synchronized (start) {\n start.notify();\n }\n try {\n Thread.sleep(10);\n } catch (InterruptedException e) {\n //ok\n }\n f2_1.asFile().moveTo(f1_1_1);\n } catch (IOException e) {\n problem[0] = e;\n }\n }\n });\n\n mover.start();\n synchronized (start) {\n try {\n start.wait();\n } catch (InterruptedException e) {\n //ok\n }\n }\n\n IOException test = null;\n try {\n f1.asFile().moveTo(f2_1_1);\n } catch (IOException e) {\n test = e;\n }\n\n try {\n mover.join();\n } catch (InterruptedException e) {\n //ok\n }\n\n if (problem[0] != null && test != null) {\n logLN(\"Double rollback - ok\");\n } else if (problem[0] != null) {\n logLN(\"Rollback 1\");\n f2_1_1.getChildFolder(\"1\");\n } else if (test != null) {\n logLN(\"Rollback 2\");\n f1_1_1.getChildFolder(\"2_1\");\n } else {\n throw new IOException(\"Lost subtree\");\n }\n\n String dump = root1.getView();\n if (dump.contains(\"FROZEN\"))\n throw new Error(\"Bad state.\");\n log(dump);\n }\n tearDown(path);\n }",
"public void forceTableCompaction() throws IOException\n {\n ssProxy.forceTableCompaction();\n }",
"default void compact() {\n\t\t/* no-op by default */\n\t}",
"@Ignore @Test(timeout=180000)\n public void testQuarantineMissingFamdir() throws Exception {\n TableName table = TableName.valueOf(name.getMethodName());\n // inject a fault in the hfcc created.\n final FileSystem fs = FileSystem.get(conf);\n HBaseFsck hbck = new HBaseFsck(conf, hbfsckExecutorService) {\n @Override\n public HFileCorruptionChecker createHFileCorruptionChecker(boolean sidelineCorruptHFiles) throws IOException {\n return new HFileCorruptionChecker(conf, executor, sidelineCorruptHFiles) {\n AtomicBoolean attemptedFirstHFile = new AtomicBoolean(false);\n @Override\n protected void checkColFamDir(Path p) throws IOException {\n if (attemptedFirstHFile.compareAndSet(false, true)) {\n assertTrue(fs.delete(p, true)); // make sure delete happened.\n }\n super.checkColFamDir(p);\n }\n };\n }\n };\n doQuarantineTest(table, hbck, 3, 0, 0, 0, 1);\n hbck.close();\n }",
"public void testSplitParallelOldCompactingEventLogging() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset28.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertFalse(JdkUtil.LogEventType.UNKNOWN.toString() + \" collector identified.\",\n jvmRun.getEventTypes().contains(LogEventType.UNKNOWN));\n Assert.assertTrue(\"Log line not recognized as \" + JdkUtil.LogEventType.PARALLEL_OLD_COMPACTING.toString() + \".\",\n jvmRun.getEventTypes().contains(JdkUtil.LogEventType.PARALLEL_OLD_COMPACTING));\n Assert.assertTrue(Analysis.ERROR_GC_TIME_LIMIT_EXCEEEDED + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_GC_TIME_LIMIT_EXCEEEDED));\n Assert.assertTrue(Analysis.ERROR_GC_TIME_LIMIT_EXCEEEDED + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_GC_TIME_LIMIT_EXCEEEDED));\n }",
"private boolean compressOldFiles() {\n long now = System.currentTimeMillis();\n int count = 0;\n for (LogFile lf : knownFiles) {\n // avoid compressing entire archive at once\n if (lf.canCompress(now) && (count++ < 5)) {\n compress(lf.path);\n }\n }\n return count > 0;\n }",
"@Test\n public void testReconcileMixed()\n {\n IncrementCounterClock leftClock;\n IncrementCounterClock rightClock;\n\n Column left;\n Column right;\n Column reconciled;\n\n List<IClock> clocks;\n\n // normal + delete: normal has higher timestamp\n leftClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(44L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(3L),\n FBUtilities.toByteArray(1), FBUtilities.toByteArray(128L),\n FBUtilities.toByteArray(9), FBUtilities.toByteArray(62L),\n FBUtilities.toByteArray(5), FBUtilities.toByteArray(32L)\n ));\n left = new Column(\n \"x\".getBytes(),\n \"live\".getBytes(),\n leftClock);\n\n rightClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(1L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(0L)\n ));\n right = new DeletedColumn(\n \"x\".getBytes(),\n ByteBuffer.allocate(4).putInt(124).array(), // localDeleteTime secs\n rightClock);\n\n reconciled = reconciler.reconcile(left, right);\n\n assert FBUtilities.compareByteArrays(\n ((IncrementCounterClock)leftClock).context(),\n ((IncrementCounterClock)reconciled.clock()).context()\n ) == 0;\n\n assert FBUtilities.compareByteArrays(\n \"live\".getBytes(),\n reconciled.value()\n ) == 0;\n\n assert reconciled.isMarkedForDelete() == false;\n \n // normal + delete: delete has higher timestamp\n leftClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(4L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(3L),\n FBUtilities.toByteArray(1), FBUtilities.toByteArray(128L),\n FBUtilities.toByteArray(9), FBUtilities.toByteArray(62L),\n FBUtilities.toByteArray(5), FBUtilities.toByteArray(32L)\n ));\n left = new Column(\n \"x\".getBytes(),\n \"live\".getBytes(),\n leftClock);\n\n rightClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(100L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(0L)\n ));\n right = new DeletedColumn(\n \"x\".getBytes(),\n ByteBuffer.allocate(4).putInt(139).array(), // localDeleteTime secs\n rightClock);\n\n reconciled = reconciler.reconcile(left, right);\n\n assert FBUtilities.compareByteArrays(\n ((IncrementCounterClock)rightClock).context(),\n ((IncrementCounterClock)reconciled.clock()).context()\n ) == 0;\n\n assert FBUtilities.compareByteArrays(\n ByteBuffer.allocate(4).putInt(139).array(),\n reconciled.value()\n ) == 0;\n\n assert reconciled.isMarkedForDelete() == true;\n\n // delete + normal: delete has higher timestamp\n leftClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(0L), FBUtilities.toByteArray(100L)\n ));\n left = new DeletedColumn(\n \"x\".getBytes(),\n ByteBuffer.allocate(4).putInt(139).array(), // localDeleteTime secs\n leftClock);\n\n rightClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(4L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(3L),\n FBUtilities.toByteArray(1), FBUtilities.toByteArray(128L),\n FBUtilities.toByteArray(9), FBUtilities.toByteArray(62L),\n FBUtilities.toByteArray(5), FBUtilities.toByteArray(32L)\n ));\n right = new Column(\n \"x\".getBytes(),\n \"live\".getBytes(),\n rightClock);\n\n reconciled = reconciler.reconcile(left, right);\n\n assert FBUtilities.compareByteArrays(\n ((IncrementCounterClock)leftClock).context(),\n ((IncrementCounterClock)reconciled.clock()).context()\n ) == 0;\n\n assert FBUtilities.compareByteArrays(\n ByteBuffer.allocate(4).putInt(139).array(),\n reconciled.value()\n ) == 0;\n\n assert reconciled.isMarkedForDelete() == true;\n\n // delete + normal: normal has higher timestamp\n leftClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(1L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(0L)\n ));\n left = new DeletedColumn(\n \"x\".getBytes(),\n ByteBuffer.allocate(4).putInt(124).array(), // localDeleteTime secs\n leftClock);\n\n rightClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(44L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(3L),\n FBUtilities.toByteArray(1), FBUtilities.toByteArray(128L),\n FBUtilities.toByteArray(9), FBUtilities.toByteArray(62L),\n FBUtilities.toByteArray(5), FBUtilities.toByteArray(32L)\n ));\n right = new Column(\n \"x\".getBytes(),\n \"live\".getBytes(),\n rightClock);\n\n reconciled = reconciler.reconcile(left, right);\n\n assert FBUtilities.compareByteArrays(\n ((IncrementCounterClock)rightClock).context(),\n ((IncrementCounterClock)reconciled.clock()).context()\n ) == 0;\n\n assert FBUtilities.compareByteArrays(\n \"live\".getBytes(),\n reconciled.value()\n ) == 0;\n\n assert reconciled.isMarkedForDelete() == false;\n }",
"@Test\n public void testStoreFile() {\n\n File file1 = new File(\"file1\");\n File file2 = new File(\"file2\");\n parent.storeFile(file1);\n parent.storeFile(file2);\n ArrayList<File> output = parent.getStoredFiles();\n ArrayList<File> expected = new ArrayList<File>();\n expected.add(file1);\n expected.add(file2);\n assertEquals(output, expected);\n }",
"public void testCombinedCmsConcurrentApplicationConcurrentTimeLogging() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset19.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertTrue(\"Log line not recognized as \" + JdkUtil.LogEventType.CMS_CONCURRENT.toString() + \".\",\n jvmRun.getEventTypes().contains(JdkUtil.LogEventType.CMS_CONCURRENT));\n }",
"@Test\n public void testConstructor_Custom_Store_String() {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testConstructor_Custom_Store_String\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file.getAbsolutePath());\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n\n }",
"protected void ensureCollectionConsistency(Mapper sourceMapper, Path sourcePath) {\n PhysicalFormat pf = sourceMapper.map(sourcePath);\n if (sourceMapper.isPersistent(sourcePath)) {\n FileGarbageCollector.getDefault().markAsPersistent(pf);\n }\n else {\n FileGarbageCollector.getDefault().increaseUsageCount(pf);\n }\n }",
"@Test\n public void shouldDeduplicateUniquePropertyIndexKeys() throws Exception\n {\n File legacyStoreDir = find19FormatStoreDirectory( storeDir.directory() );\n\n // WHEN\n // upgrading that store, the two key tokens for \"name\" should be merged\n\n newStoreUpgrader().migrateIfNeeded( storeDir.directory(), schemaIndexProvider );\n\n // THEN\n // verify that the \"name\" property for both the involved nodes\n GraphDatabaseService db = new GraphDatabaseFactory().newEmbeddedDatabase( storeDir.absolutePath() );\n try\n {\n Node nodeA = getNodeWithName( db, \"A\" );\n assertThat( nodeA, inTx( db, hasProperty( \"name\" ).withValue( \"A\" ) ) );\n\n Node nodeB = getNodeWithName( db, \"B\" );\n assertThat( nodeB, inTx( db, hasProperty( \"name\" ).withValue( \"B\" ) ) );\n\n Node nodeC = getNodeWithName( db, \"C\" );\n assertThat( nodeC, inTx( db, hasProperty( \"name\" ).withValue( \"C\" ) ) );\n assertThat( nodeC, inTx( db, hasProperty( \"other\" ).withValue( \"a value\" ) ) );\n assertThat( nodeC, inTx( db, hasProperty( \"third\" ).withValue( \"something\" ) ) );\n }\n finally\n {\n db.shutdown();\n }\n\n // THEN\n // verify that there are no duplicate keys in the store\n try ( PropertyKeyTokenStore tokenStore = storeFactory.newPropertyKeyTokenStore() )\n {\n Token[] tokens = tokenStore.getTokens( MAX_VALUE );\n assertNoDuplicates( tokens );\n }\n\n assertConsistentStore( storeDir.directory() );\n }",
"static public void testCrossMove(Path path, int clusterSize, int clusterCount,\n int allocatorType) throws IOException {\n startUp(path);\n\n String dump1;\n try (final FATFileSystem ffs = FATFileSystem.create(path, clusterSize, clusterCount, allocatorType)) {\n FATFolder root1 = ffs.getRoot();\n\n //1->1_1->1_1_1\n final FATFolder f1_1 = root1.createFolder(\"1\").createFolder(\"1_1\");\n final FATFolder f2 = root1.createFolder(\"2\");\n final FATFolder f1_1_1 = f1_1.createFolder(\"1_1_1\");\n\n final Object start = new Object();\n final IOException problem[] = new IOException[]{null};\n Thread mover = new Thread(new Runnable() {\n @Override public void run() {\n try {\n synchronized (start) {\n start.notify();\n }\n f2.asFile().moveTo(f1_1);\n } catch (IOException e) {\n problem[0] = e;\n }\n }\n });\n\n mover.start();\n synchronized (start) {\n try {\n start.wait();\n } catch (InterruptedException e) {\n //ok\n }\n }\n\n IOException test = null;\n try {\n f1_1.asFile().moveTo(f2);\n } catch (IOException e) {\n test = e;\n }\n\n try {\n mover.join();\n } catch (InterruptedException e) {\n //ok\n }\n\n if (problem[0] != null && test != null) {\n logLN(\"Double rollback - ok\");\n } else if (problem[0] != null) {\n logLN(\"Rollback 1\");\n f2.getChildFolder(\"1_1\");\n } else if (test != null) {\n logLN(\"Rollback 2\");\n f1_1.getChildFolder(\"2\");\n } else {\n throw new IOException(\"Lost subtree\");\n }\n\n String dump = root1.getView();\n if (dump.contains(\"FROZEN\"))\n throw new Error(\"Bad state.\");\n log(dump);\n }\n tearDown(path);\n }",
"@Test\n public void testConcurrentCommitTaskWithSubDir() throws Exception {\n Job job = newJob();\n FileOutputFormat.setOutputPath(job, outputDir);\n final Configuration conf = job.getConfiguration();\n\n final JobContext jContext =\n new JobContextImpl(conf, taskAttempt0.getJobID());\n ManifestCommitter amCommitter = createCommitter(\n new TaskAttemptContextImpl(conf, taskAttempt0));\n amCommitter.setupJob(jContext);\n\n final TaskAttemptContext[] taCtx = new TaskAttemptContextImpl[2];\n taCtx[0] = new TaskAttemptContextImpl(conf, taskAttempt0);\n taCtx[1] = new TaskAttemptContextImpl(conf, taskAttempt1);\n\n // IDE/checkstyle complain here about type casting but they\n // are confused.\n final TextOutputFormat<Writable, Object>[] tof =\n new TextOutputForTests[2];\n\n for (int i = 0; i < tof.length; i++) {\n tof[i] = new TextOutputForTests<Writable, Object>() {\n @Override\n public Path getDefaultWorkFile(\n TaskAttemptContext context,\n String extension) throws IOException {\n final ManifestCommitter foc = (ManifestCommitter)\n getOutputCommitter(context);\n return new Path(new Path(foc.getWorkPath(), SUB_DIR),\n getUniqueFile(context, getOutputName(context), extension));\n }\n };\n }\n\n final ExecutorService executor = HadoopExecutors.newFixedThreadPool(2);\n try {\n for (int i = 0; i < taCtx.length; i++) {\n final int taskIdx = i;\n executor.submit(() -> {\n final OutputCommitter outputCommitter =\n tof[taskIdx].getOutputCommitter(taCtx[taskIdx]);\n outputCommitter.setupTask(taCtx[taskIdx]);\n writeOutput(tof[taskIdx].getRecordWriter(taCtx[taskIdx]), taCtx[taskIdx]);\n describe(\"Committing Task %d\", taskIdx);\n outputCommitter.commitTask(taCtx[taskIdx]);\n return null;\n });\n }\n } finally {\n executor.shutdown();\n while (!executor.awaitTermination(1, TimeUnit.SECONDS)) {\n log().info(\"Awaiting thread termination!\");\n }\n }\n\n // if we commit here then all tasks will be committed, so there will\n // be contention for that final directory: both parts will go in.\n\n describe(\"\\nCommitting Job\");\n amCommitter.commitJob(jContext);\n assertPathExists(\"base output directory\", outputDir);\n assertPart0000DoesNotExist(outputDir);\n Path outSubDir = new Path(outputDir, SUB_DIR);\n assertPathDoesNotExist(\"Must not end up with sub_dir/sub_dir\",\n new Path(outSubDir, SUB_DIR));\n\n // validate output\n // There's no success marker in the subdirectory\n validateContent(outSubDir, false, \"\");\n }",
"@Override\n public void compact() {\n\n }",
"void majorCompactTable(TableName tableName);",
"public synchronized void writeStore() {\n FileOutputStream fileStream = null;\n\n try {\n File storeFile = new File(getStoreName());\n File oldStoreFile = new File(oldStoreName);\n\n if (oldStoreFile.exists()) {\n oldStoreFile.delete();\n }\n\n if (storeFile.exists()) {\n storeFile.renameTo(oldStoreFile);\n }\n\n File newStoreFile = new File(getStoreName());\n\n // Make sure the needed directories exists\n if (!newStoreFile.getParentFile().exists()) {\n newStoreFile.getParentFile().mkdirs();\n }\n\n fileStream = new FileOutputStream(newStoreFile);\n ObjectOutputStream outStream = new ObjectOutputStream(fileStream);\n outStream.writeObject(store);\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, Utility.expandStackTraceToString(e));\n } finally {\n if (fileStream != null) {\n try {\n fileStream.close();\n } catch (IOException e) {\n LOGGER.log(Level.WARNING, Utility.expandStackTraceToString(e));\n }\n }\n }\n }",
"public static void m6739b(File file) {\n if (file.listFiles() != null && file.listFiles().length > 1) {\n long c = m6740c(file, false);\n for (File file2 : file.listFiles()) {\n if (!file2.getName().equals(String.valueOf(c)) && !file2.getName().equals(\"stale.tmp\")) {\n m6741h(file2);\n }\n }\n }\n }",
"private void verifyNoCompaction(StripeCompactionPolicy policy, StripeInformationProvider si)\n throws IOException {\n assertNull(policy.selectCompaction(si, al(), false));\n assertFalse(policy.needsCompactions(si, al()));\n }",
"@Test\n public void testDirectorySnapshotArchiver()\n {\n File fileArchiveDirectory = null;\n File fileActive = null;\n File fileSnapshot = null;\n File fileTrash = null;\n\n try\n {\n fileArchiveDirectory = FileHelper.createTempDir();\n File fileFinalArchiveDirectory = new File(fileArchiveDirectory, FileHelper.toFilename(CLUSTER_NAME));\n fileFinalArchiveDirectory = new File(fileFinalArchiveDirectory, FileHelper.toFilename(SERVICE_NAME));\n\n fileActive = FileHelper.createTempDir();\n fileSnapshot = FileHelper.createTempDir();\n fileTrash = FileHelper.createTempDir();\n\n PersistenceEnvironment<ReadBuffer> env = createPersistenceEnv(fileActive, fileSnapshot, fileTrash);\n\n SnapshotArchiver archiver = new DirectorySnapshotArchiver(CLUSTER_NAME, SERVICE_NAME,\n fileFinalArchiveDirectory);\n\n testListSnapshots(archiver, fileArchiveDirectory);\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n fail(e.getMessage());\n }\n finally\n {\n deleteDir(fileArchiveDirectory);\n deleteDir(fileActive);\n deleteDir(fileSnapshot);\n deleteDir(fileTrash);\n }\n }",
"private ArrayList<String> stagedButDiffInCWD() {\n ArrayList<String> result = new ArrayList<>();\n List<String> addingStage = Utils.plainFilenamesIn(INDEX);\n for (String file: addingStage) {\n File fileCWD = new File(Main.CWD, file);\n File stagedFile = new File(INDEX, file);\n if (!fileCWD.exists()) {\n String message = file + \" (deleted)\";\n result.add(message);\n } else {\n String contentOne = Utils.readContentsAsString(fileCWD);\n String contentTwo = Utils.readContentsAsString(stagedFile);\n if (!contentOne.equals(contentTwo)) {\n String message = file + \" (modified)\";\n result.add(message);\n }\n }\n }\n return result;\n }",
"public void majorCompact(final byte [] tableNameOrRegionName)\n throws IOException {\n modifyTable(tableNameOrRegionName, DBConstants.Modify.TABLE_MAJOR_COMPACT);\n }",
"private void submitCompactionJob(CompactionPlan plan, Compactable.Files files,\n Compactable compactable, Consumer<Compactable> completionCallback) {\n var execIds = plan.getJobs().stream().map(cj -> (CompactionExecutorIdImpl) cj.getExecutor());\n if (compactable.getExtent().isMeta()\n && execIds.anyMatch(CompactionExecutorIdImpl::isExternalId)) {\n log.error(\n \"Compacting metadata tablets on external compactors is not supported, please change \"\n + \"config for compaction service ({}) and/or table ASAP. {} is not compacting, \"\n + \"ignoring plan {}\",\n myId, compactable.getExtent(), plan);\n return;\n }\n\n Set<CompactionJob> jobs = new HashSet<>(plan.getJobs());\n\n Collection<SubmittedJob> submitted =\n submittedJobs.getOrDefault(compactable.getExtent(), List.of());\n if (!submitted.isEmpty()) {\n submitted.removeIf(sj -> {\n // to avoid race conditions, only read status once and use local var for the two compares\n var status = sj.getStatus();\n return status != Status.QUEUED && status != Status.RUNNING;\n });\n }\n\n if (reconcile(jobs, submitted)) {\n for (CompactionJob job : jobs) {\n CompactionExecutor executor = executors.get(job.getExecutor());\n var submittedJob = executor.submit(myId, job, compactable, completionCallback);\n // its important that the collection created in computeIfAbsent supports concurrency\n submittedJobs.computeIfAbsent(compactable.getExtent(), k -> new ConcurrentLinkedQueue<>())\n .add(submittedJob);\n }\n\n if (!jobs.isEmpty()) {\n log.trace(\"Submitted compaction plan {} id:{} files:{} plan:{}\", compactable.getExtent(),\n myId, files, plan);\n }\n } else {\n log.trace(\"Did not submit compaction plan {} id:{} files:{} plan:{}\", compactable.getExtent(),\n myId, files, plan);\n }\n }",
"private void cleanupTransactionFiles(String filename) {\n\n logger.debug(\"os.name property: \" + System.getProperty(\"os.name\"));\n if (System.getProperty(\"os.name\").toLowerCase().indexOf(\"win\") == -1) {\n deleteOutfiles(filename);\n } else {\n File file;\n String directory = getDataDirectory() + OUTFILE_DIRECTORY;\n\n try {\n file = new File(directory + TUTOR_TX_FILE);\n if (!file.delete()) {\n logger.error(\"Could not delete tutor transaction outfile: \"\n + directory + TUTOR_TX_FILE);\n }\n } catch (NullPointerException exception) {\n logger.error(\"Error creating file object for tutor_transaction outfile: \"\n + directory + TUTOR_TX_FILE, exception);\n }\n\n try {\n file = new File(directory + TX_COND_MAP_FILE);\n if (!file.delete()) {\n logger.error(\"Could not delete transaction condition map outfile: \"\n + directory + TX_COND_MAP_FILE);\n }\n } catch (NullPointerException exception) {\n logger.error(\"Error creating file object for transaction_condition_map outfile: \"\n + directory + TX_COND_MAP_FILE, exception);\n }\n\n try {\n file = new File(directory + TX_SKILL_MAP_FILE);\n if (!file.delete()) {\n logger.error(\"Could not delete transaction skill map outfile: \"\n + directory + TX_SKILL_MAP_FILE);\n }\n } catch (NullPointerException exception) {\n logger.error(\"Error creating file object for transaction_skill_map outfile: \"\n + directory + TX_SKILL_MAP_FILE, exception);\n }\n\n try {\n file = new File(directory + TX_SKILL_EVT_MAP_FILE);\n if (!file.delete()) {\n logger.error(\"Could not delete transaction skill event map outfile: \"\n + directory + TX_SKILL_EVT_MAP_FILE);\n }\n } catch (NullPointerException exception) {\n logger.error(\"Error creating file object for transaction_skill_event_map outfile: \"\n + directory + TX_SKILL_EVT_MAP_FILE, exception);\n }\n }\n }",
"@Action(minimalArgumentCount=2, maximalArgumentCount=2)\n public void compact() {\n try {\n new EpsgDataPack().run(new File(arguments[0]), new File(arguments[1]));\n } catch (Exception exception) {\n printException(exception);\n }\n }",
"@SuppressWarnings({\"PMD.EmptyCatchBlock\", \"PMD.CloseResource\", \"PMD.UseTryWithResources\"})\n private void merge(@Nonnull Collection<File> inputFiles, @Nonnull File outputFile) throws IOException, GeneralSecurityException {\n final long startTime = System.nanoTime();\n final List<InputState> inputs = new ArrayList<>(inputFiles.size());\n OutputState output = null;\n boolean success = false;\n try {\n for (File file : inputFiles) {\n InputState input = new InputState(file, adapter);\n inputs.add(input);\n input.next();\n }\n output = new OutputState(outputFile, adapter);\n while (true) {\n InputState minState = null;\n for (InputState input : inputs) {\n if (input.key != null) {\n if (minState == null) {\n minState = input;\n } else {\n int comp = adapter.isSerializedOrderReversed() ?\n ByteArrayUtil.compareUnsigned(input.key, minState.key) :\n ByteArrayUtil.compareUnsigned(minState.key, input.key);\n if (comp > 0) {\n minState = input;\n }\n }\n }\n }\n if (minState == null) {\n break;\n }\n output.next(minState.key, minState.value);\n minState.next();\n }\n output.finish();\n output.close();\n success = true;\n } finally {\n if (output != null) {\n try {\n output.close();\n } catch (IOException ex) {\n // swallow cleanup error\n }\n if (!success) {\n try {\n deleteFile(outputFile);\n } catch (IOException ex) {\n // swallow cleanup error\n }\n }\n }\n for (InputState input : inputs) {\n try {\n input.close();\n if (success) {\n deleteFile(input.file);\n }\n } catch (IOException ex) {\n // swallow cleanup error\n }\n }\n if (timer != null) {\n timer.recordSinceNanoTime(SortEvents.Events.FILE_SORT_MERGE_FILES, startTime);\n }\n }\n }",
"protected abstract void createComponents(\n Configuration conf, Store store, KVComparator kvComparator) throws IOException;",
"public static AbstractCompactionTask forGarbageCollection(ColumnFamilyStore cfs, LifecycleTransaction txn, int gcBefore, CompactionParams.TombstoneOption tombstoneOption)\n {\n AbstractCompactionTask task = new CompactionTask(cfs, txn, gcBefore, false, null)\n {\n @Override\n protected CompactionController getCompactionController(Set<SSTableReader> toCompact)\n {\n return new CompactionController(cfs, toCompact, gcBefore, null, tombstoneOption);\n }\n\n @Override\n protected int getLevel()\n {\n return txn.onlyOne().getSSTableLevel();\n }\n };\n task.setUserDefined(true);\n task.setCompactionType(OperationType.GARBAGE_COLLECT);\n return task;\n }",
"private List<String> newChangNotStaged(HashMap<String, Blob> allFiles) {\n ArrayList<String> result = new ArrayList<>();\n for (String fileName: Utils.plainFilenamesIn(Main.CWD)) {\n Blob ourBlob = allFiles.get(fileName);\n File fileInCWD = new File(Main.CWD, fileName);\n String content = Utils.readContentsAsString(fileInCWD);\n if (ourBlob != null) {\n if (!ourBlob.getContent().equals(content)\n && !isStaged(fileName)) {\n String elem = fileName + \" (modified)\";\n result.add(elem);\n }\n allFiles.remove(fileName);\n }\n }\n return result;\n }",
"static int m12508a(File directory, FilenameFilter filter, int maxAllowed, Comparator<File> sortComparator) {\n File[] sessionFiles = directory.listFiles(filter);\n if (sessionFiles == null) {\n return 0;\n }\n int numRetained = sessionFiles.length;\n Arrays.sort(sessionFiles, sortComparator);\n for (File file : sessionFiles) {\n if (numRetained <= maxAllowed) {\n return numRetained;\n }\n file.delete();\n numRetained--;\n }\n return numRetained;\n }",
"private void flushCache()\n {\n Entry<Integer, String> eldestEntry;\n File oldestFile;\n long eldestFileSize;\n int count = 0;\n\n int MAX_DELETE_FILE = 4;\n int MAX_CACHE_FILE_ALLOW = 1000;\n\n while (count < MAX_DELETE_FILE && (cacheSize > MAX_CACHE_FILE_ALLOW || cacheByteSize > maxCacheByteSize))\n {\n eldestEntry = mLinkedHashMap.entrySet().iterator().next();\n oldestFile = new File(eldestEntry.getValue());\n eldestFileSize = oldestFile.length();\n mLinkedHashMap.remove(eldestEntry.getKey());\n oldestFile.delete();\n cacheSize = mLinkedHashMap.size();\n cacheByteSize -= eldestFileSize;\n count++;\n }// while (count < MAX_DELETE_FILE && (cacheSize > MAX_CACHE_FILE_ALLOW || cacheByteSize > maxCacheByteSize))\n }",
"@Test\n public void testConstructor_Custom_Store_String_Overflow() {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator + \"oasis-collection-test-2\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2, file.getAbsolutePath());\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n\n }",
"@Test\n public void testPersistence_Custom_Store() throws Exception {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-collection-testPersistence_Custom_Store\");\n file.mkdirs();\n file.deleteOnExit();\n\n File saveToFile = File.createTempFile(\"oasis-collection-test-persistence\", \"\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n SegmentedOasisList<Integer> readInstance;\n\n try (ObjectOutputStream outObjStream = new ObjectOutputStream(new FileOutputStream(saveToFile))) {\n outObjStream.writeObject(instance);\n }\n\n try (ObjectInputStream inObjStream = new ObjectInputStream(new FileInputStream(saveToFile))) {\n readInstance = (SegmentedOasisList<Integer>) inObjStream.readObject();\n }\n\n assertEquals(instance, readInstance);\n\n }",
"abstract public Shard<Set<File>> getFilesKnowledge();",
"private void processAllPathsExt( final IndyStoreEvent event, Predicate<? super String> pathFilter )\n {\n DrainingExecutorCompletionService<Integer> clearService =\n new DrainingExecutorCompletionService<>( cleanupExecutor );\n\n Set<ArtifactStore> stores = new HashSet<>( event.getStores() );\n stores.forEach(store->{\n final StoreKey key = store.getKey();\n try\n {\n Set<Group> groups =\n storeDataManager.query().packageType( key.getPackageType() ).getGroupsAffectedBy( key );\n if ( store instanceof Group )\n {\n groups.add( (Group) store );\n }\n\n groups.forEach( g->{\n listPathsAnd( key, pathFilter, p->clearService.submit(clearPathProcessor( p, key, groups )) );\n } );\n\n nfc.clearMissing( LocationUtils.toLocation( store ) ); // clear NFC for this store\n }\n catch ( IndyDataException e )\n {\n e.printStackTrace();\n }\n } );\n\n Set<StoreKey> keys = event.getStores().stream().map( s -> s.getKey() ).collect( Collectors.toSet() );\n drainAndCount( clearService, \"stores: \" + keys );\n }",
"private void updateStatusInternal(){\n\t\tFile dataPath = Environment.getDataDirectory();\n\t\tStatFs stat = new StatFs(dataPath.getPath());\n\t\tlong blockSize = stat.getBlockSize();\n\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t//show the space of internal storage\n\t\tmExternalTotalSpace=formatSize(availableBlocks * blockSize);\n\t}",
"@Test\n public void testCompactFast_Sgement_Removed_Item_Order() throws Exception {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 1);\n\n // 1 persisted segment counts\n List c = Arrays.asList(1, 1, 2, 3, 4, 5);\n List expected = c.subList(2, c.size());\n instance.addAll(c);\n\n // remove 2 items form memory before compacting fast\n instance.remove(0);\n instance.remove(0);\n\n instance.compactFast();\n\n assertEquals(expected, instance.subList(0, instance.size()));\n\n }",
"private void expungeAllHistoricFiles()\r\n {\r\n debug(\"expungeAllHistoricFiles() - Delete ALL HISTORIC Files\");\r\n\r\n java.io.File fileList = new java.io.File(\"./\");\r\n String rootName = getString(\"WatchListTableModule.edit.historic_details_basic_name\");\r\n String[] list = fileList.list(new MyFilter(rootName));\r\n for (int i = 0; i < list.length; i++)\r\n {\r\n StockMarketUtils.expungeListsFile(list[i]);\r\n }\r\n debug(\"expungeAllHistoricFiles() - Delete ALL HISTORIC Files - complete\");\r\n\r\n }",
"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 }",
"protected void optimizeFile()\r\n {\r\n final ElapsedTimer timer = new ElapsedTimer();\r\n timesOptimized++;\r\n log.info(\"{0}: Beginning Optimization #{1}\", logCacheName, timesOptimized);\r\n\r\n // CREATE SNAPSHOT\r\n Collection<IndexedDiskElementDescriptor> defragList = null;\r\n\r\n storageLock.writeLock().lock();\r\n\r\n try\r\n {\r\n queueInput = true;\r\n // shut off recycle while we're optimizing,\r\n doRecycle = false;\r\n defragList = createPositionSortedDescriptorList();\r\n }\r\n finally\r\n {\r\n storageLock.writeLock().unlock();\r\n }\r\n\r\n // Defrag the file outside of the write lock. This allows a move to be made,\r\n // and yet have the element still accessible for reading or writing.\r\n long expectedNextPos = defragFile(defragList, 0);\r\n\r\n // ADD THE QUEUED ITEMS to the end and then truncate\r\n storageLock.writeLock().lock();\r\n\r\n try\r\n {\r\n try\r\n {\r\n if (!queuedPutList.isEmpty())\r\n {\r\n // pack them at the end\r\n expectedNextPos = defragFile(queuedPutList, expectedNextPos);\r\n }\r\n // TRUNCATE THE FILE\r\n dataFile.truncate(expectedNextPos);\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: Error optimizing queued puts.\", logCacheName, e);\r\n }\r\n\r\n // RESTORE NORMAL OPERATION\r\n removeCount = 0;\r\n resetBytesFree();\r\n this.recycle.clear();\r\n queuedPutList.clear();\r\n queueInput = false;\r\n // turn recycle back on.\r\n doRecycle = true;\r\n isOptimizing = false;\r\n }\r\n finally\r\n {\r\n storageLock.writeLock().unlock();\r\n }\r\n\r\n log.info(\"{0}: Finished #{1}, Optimization took {2}\",\r\n logCacheName, timesOptimized, timer.getElapsedTimeString());\r\n }",
"void compact(long maxSize) throws IOException;",
"public void purgeQueueAndPersist() {\n // Return if the writer is not enabled.\n if (PerformanceAnalyzerConfigAction.getInstance() == null) {\n return;\n } else if (!controller.isPerformanceAnalyzerEnabled()) {\n // If PA is disabled, then we return as we don't want to generate\n // new files. But we also want to drain the queue so that when it is\n // enabled next, we don't have the current elements as they would be\n // old.\n if (PerformanceAnalyzerMetrics.metricQueue.size() > 0) {\n List<Event> metrics = new ArrayList<>();\n PerformanceAnalyzerMetrics.metricQueue.drainTo(metrics);\n LOG.info(\n \"Performance Analyzer no longer enabled. Drained the\"\n + \"queue to remove stale data.\");\n }\n return;\n }\n\n LOG.debug(\"Starting to purge the queue.\");\n List<Event> metrics = new ArrayList<>();\n PerformanceAnalyzerMetrics.metricQueue.drainTo(metrics);\n LOG.debug(\"Queue draining successful.\");\n\n long currentTimeMillis = System.currentTimeMillis();\n\n // Calculate the timestamp on the file. For example, lets say the\n // purging started at time 12.5 then all the events between 5-10\n // are written to a file with name 5.\n long timeBucket =\n PerformanceAnalyzerMetrics.getTimeInterval(\n currentTimeMillis, MetricsConfiguration.SAMPLING_INTERVAL)\n - MetricsConfiguration.SAMPLING_INTERVAL;\n\n // When we are trying to collect the metrics for the 5th-10th second,\n // but doing that in the 12.5th second, there is a chance that a\n // collector ran in the 11th second and pushed the metrics in the\n // queue. This thread, should be able to filter them and write them\n // to their appropriate file, which should be 10 and not 5.\n long nextTimeBucket = timeBucket + MetricsConfiguration.SAMPLING_INTERVAL;\n\n List<Event> currMetrics = new ArrayList<>();\n List<Event> nextMetrics = new ArrayList<>();\n\n for (Event entry : metrics) {\n if (entry.epoch == timeBucket) {\n currMetrics.add(entry);\n } else if (entry.epoch == nextTimeBucket) {\n nextMetrics.add(entry);\n } else {\n // increment stale_metrics count when metrics to be collected is falling behind the\n // current bucket\n PerformanceAnalyzerApp.WRITER_METRICS_AGGREGATOR.updateStat(\n WriterMetrics.STALE_METRICS, \"\", 1);\n }\n }\n\n LOG.debug(\"Start serializing and writing to file.\");\n writeAndRotate(currMetrics, timeBucket, currentTimeMillis);\n if (!nextMetrics.isEmpty()) {\n // The next bucket metrics don't need to be considered for\n // rotation just yet. So, we just write them to the\n // <nextTimeBucket>.tmp\n eventLogFileHandler.writeTmpFile(nextMetrics, nextTimeBucket);\n }\n LOG.debug(\"Writing to disk complete.\");\n }",
"private void preloadData()\n {\n ICardinality cardinality = newCardinality();\n\n byte[] scratchBytes = new byte[8];\n ByteBuffer scratch = ByteBuffer.wrap(scratchBytes);\n long numToFlush;\n int lastFlushed = 0;\n long lastLogged = System.currentTimeMillis();\n long maxBytesToInsert = (long) datasetSizeGB << 30;\n long bytesInserted = 0;\n int i = 0;\n\n logger.info(\"Inserting up to {}\", FBUtilities.prettyPrintMemory(maxBytesToInsert));\n\n try\n {\n while(bytesInserted < maxBytesToInsert)\n {\n scratch.clear();\n scratch.putLong(0, i);\n long hash = MurmurHash.hash64(scratchBytes, scratchBytes.length);\n cardinality.offerHashed(hash);\n\n counters.numInserted.incrementAndGet();\n bytesInserted += valueSize;\n\n i++;\n if (i == maxKey)\n i = 0;\n\n if (System.currentTimeMillis()- lastLogged >= TimeUnit.SECONDS.toMillis(1))\n {\n lastLogged = System.currentTimeMillis();\n logger.debug(\"Ins: {}, keys: {}, live sstables: {}, compacting: {}, pending compactions: {}\",\n FBUtilities.prettyPrintMemory(bytesInserted),\n i,\n dataTracker.getLiveSSTables().size(),\n dataTracker.getCompacting().size(),\n compactions.size() + strategy.getEstimatedRemainingTasks());\n }\n\n if (i >= (lastFlushed + uniqueKeysPerSStable) && // no point in checking the cardinality until we've inserted uniqueKeysPerSStable more entries\n (numToFlush = cardinality.cardinality()) >= uniqueKeysPerSStable)\n {\n counters.numFlushed.addAndGet(numToFlush);\n lastFlushed = i;\n generateSSTables(cardinality, numToFlush, partitioner.getMinimumToken(), partitioner.getMaximumToken(), \"preload\", true);\n\n cardinality = newCardinality();\n }\n\n if (i % 1000 == 0 && state.get() == SimulationState.TEARING_DOWN)\n { // this happens if the compaction threads fail\n logger.debug(\"Interrupting preload, simulation is tearing down\");\n break;\n }\n }\n\n if ((numToFlush = cardinality.cardinality()) > 0)\n {\n counters.numFlushed.addAndGet(numToFlush);\n generateSSTables(cardinality, numToFlush, partitioner.getMinimumToken(), partitioner.getMaximumToken(), \"preload\", true);\n }\n }\n catch (Exception e)\n {\n logger.error(\"Exception happen during preloading\", e);\n }\n }",
"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 updateIndex() throws IOException {\n // maintain the document store (corpus) - if there is one\n if (currentMemoryIndex.containsPart(\"corpus\")) {\n // get all corpora + shove into document store\n ArrayList<DocumentReader> readers = new ArrayList<>();\n readers.add((DocumentReader) currentMemoryIndex.getIndexPart(\"corpus\"));\n for (String path : geometricParts.getAllShards().getBinPaths()) {\n String corpus = path + File.separator + \"corpus\";\n readers.add(new CorpusReader(corpus));\n }\n }\n // finally write new checkpointing data (checkpoints the disk indexes)\n Parameters checkpoint = createCheckpoint();\n this.checkpointer.saveCheckpoint(checkpoint);\n }",
"void exec2(DeletedDirectoryEntry entry, String outdir, String file) throws Exception {\r\n\r\n byte[] buffer = new byte[fat32.getBytesPerSector()];\r\n\r\n //\r\n // startClusterHigh を見つける\r\n //\r\n if (!entry.resolveStartCluster(id3v2MatchingStrategy) || !entry.isStartClusterValid()) {\r\nSystem.err.println(\"start cluster not found: \" + file);\r\n return;\r\n }\r\n int startCluster = entry.getStartCluster();\r\n\r\n //\r\n // 連続しているクラスターを書き出す\r\n // 途切れたら次の使われていないところ\r\n //\r\n \r\n File output = new File(outdir, file);\r\n OutputStream os = new FileOutputStream(output);\r\n\r\nSystem.err.println(entry.getName() + \": \" + entry.getStartCluster() + \", \" + entry.length());\r\n\r\n long rest = entry.length();\r\n\r\n\r\nouter:\r\n for (int cluster = 0; cluster < fat32.getLastCluster(); cluster++) {\r\n int targetCluster = startCluster + cluster;\r\nSystem.err.print(\"cluster: \" + targetCluster);\r\n\r\n\r\n // 途切れたら次の使われていないところ\r\n\r\n if (fat32.isUsing(targetCluster)) {\r\nSystem.err.println(\" has used, skip\");\r\n//int restClusters = (int) ((rest + (fat32.getBytesPerCluster() - 1)) / fat32.getBytesPerCluster());\r\n//System.err.println(\"rest: \" + rest + \" / \" + entry.length() + \", \" + restClusters + \" clusters: \" + file);\r\n continue;\r\n }\r\n\r\n // 1 クラスタの書き出し\r\n\r\n for (int sector = 0; sector < fat32.getSectorsPerCluster(); sector++) {\r\n int targetSector = fat32.getSector(targetCluster) + sector;\r\n fat32.readSector(buffer, targetSector);\r\n if (rest > fat32.getBytesPerSector()) {\r\n os.write(buffer, 0, fat32.getBytesPerSector());\r\n rest -= fat32.getBytesPerSector();\r\n } else {\r\n os.write(buffer, 0, (int) rest);\r\n rest -= rest;\r\n break outer;\r\n }\r\n }\r\nSystem.err.println(\" salvaged: \" + (entry.length() - rest) + \"/\" + entry.length());\r\n }\r\n\r\nSystem.err.println(\" salvaged, finish: \" + (entry.length() - rest) + \"/\" + entry.length());\r\n\r\n\r\n os.flush();\r\n os.close();\r\n output.setLastModified(entry.lastModified());\r\n \r\n }"
] | [
"0.63077885",
"0.6036733",
"0.60261905",
"0.5998422",
"0.5961613",
"0.5949324",
"0.5900351",
"0.5899511",
"0.5815056",
"0.5794604",
"0.57199025",
"0.57066154",
"0.5702219",
"0.56833476",
"0.5548431",
"0.55282617",
"0.5518472",
"0.5481071",
"0.547642",
"0.5400333",
"0.53006405",
"0.5284038",
"0.5260767",
"0.5225109",
"0.5206681",
"0.52012837",
"0.51573324",
"0.51336825",
"0.49865004",
"0.4979449",
"0.4974704",
"0.49692428",
"0.49546415",
"0.49135616",
"0.49049687",
"0.48930296",
"0.48829082",
"0.48524833",
"0.48507437",
"0.48505318",
"0.48332414",
"0.48278624",
"0.48253438",
"0.4816361",
"0.48016605",
"0.47990987",
"0.47669938",
"0.47536018",
"0.47469303",
"0.47439533",
"0.47242585",
"0.4721437",
"0.47187492",
"0.47078615",
"0.4694874",
"0.468393",
"0.46774486",
"0.4675644",
"0.46752882",
"0.46617952",
"0.46612263",
"0.46468267",
"0.46453723",
"0.4625858",
"0.4619985",
"0.4608261",
"0.46076313",
"0.45876008",
"0.4573878",
"0.45481458",
"0.45322636",
"0.45223624",
"0.4520427",
"0.45044953",
"0.45009005",
"0.44997483",
"0.44905427",
"0.44859862",
"0.44851524",
"0.4470559",
"0.4466552",
"0.4464845",
"0.4460338",
"0.44585717",
"0.44582826",
"0.4456526",
"0.4452275",
"0.44451743",
"0.4439053",
"0.44362482",
"0.4433808",
"0.44307587",
"0.4429438",
"0.44247508",
"0.44239688",
"0.44190526",
"0.44173902",
"0.44142953",
"0.44034457",
"0.4401494"
] | 0.59336853 | 6 |
test select ALL L0 files when L0 files count > MIN_FILES_L0_KEY | @Test
public void testSelectL0Compaction() throws Exception {
Configuration conf = HBaseConfiguration.create();
conf.setInt(StripeStoreConfig.MIN_FILES_L0_KEY, 4);
StripeCompactionPolicy policy = createPolicy(conf);
StripeCompactionPolicy.StripeInformationProvider si = createStripesWithSizes(10, 10L,
new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L }, new Long[] { 3L, 2L, 2L });
StripeCompactionPolicy.StripeCompactionRequest cr = policy.selectCompaction(si, al(), false);
assertNotNull(cr);
assertEquals(10, cr.getRequest().getFiles().size());
verifyCollectionsEqual(si.getLevel0Files(), cr.getRequest().getFiles());
// test select partial L0 files when size of L0 files > HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY
conf.setLong(HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY, 100L);
policy = createPolicy(conf);
si = createStripesWithSizes(5, 50L, new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L },
new Long[] { 3L, 2L, 2L });
cr = policy.selectCompaction(si, al(), false);
assertNotNull(cr);
assertEquals(2, cr.getRequest().getFiles().size());
verifyCollectionsEqual(si.getLevel0Files().subList(0, 2), cr.getRequest().getFiles());
// test select partial L0 files when count of L0 files > MAX_FILES_KEY
conf.setInt(MAX_FILES_KEY, 6);
conf.setLong(HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY, 1000L);
policy = createPolicy(conf);
si = createStripesWithSizes(10, 10L, new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L },
new Long[] { 3L, 2L, 2L });
cr = policy.selectCompaction(si, al(), false);
assertNotNull(cr);
assertEquals(6, cr.getRequest().getFiles().size());
verifyCollectionsEqual(si.getLevel0Files().subList(0, 6), cr.getRequest().getFiles());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(timeout = 4000)\n public void test00() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\"CV-~)\\\"Y\", \"-U#7E}O`T!okId wU\", \"zHFHC!.<lL5O#\", \"'>K(/]ff]lA`\", \"-U#7E}O`T!okId wU\", \"\");\n assertNull(fileInputStream0);\n }",
"private void initializeEmptyLargeFiles() \r\n\t /*@ requires belpicDirectory |-> ?bpd &*& bpd != null &*& bpd.DedicatedFile(_, _, _, ?belpic_sibs, _) &*& \r\n\t \t\tlength(belpic_sibs) < 6 &*&\r\n\t \t\tidDirectory |-> ?idd &*& idd != null &*& idd.DedicatedFile(_, _, _, ?iddir_sibs, _) &*& \r\n\t \t\tlength(iddir_sibs) < 7 &*&\r\n\t \t\tcaCertificate |-> _ &*& rrnCertificate |-> _ &*& rootCaCertificate |-> _ &*& \r\n\t \t\tphotoFile |-> _ &*& authenticationCertificate |-> _ &*& nonRepudiationCertificate |-> _; @*/\r\n \t /*@ ensures belpicDirectory |-> bpd &*& \r\n\t \t\tidDirectory |-> idd &*&\r\n\t \t\tcaCertificate |-> ?cac &*& cac.ElementaryFile(CA_CERTIFICATE, bpd, ?d1, true, 0, _) &*& d1 != null &*& d1.length == 1200 &*&\r\n\t \t\trrnCertificate |-> ?rrnc &*& rrnc.ElementaryFile(RRN_CERTIFICATE, bpd, ?d2, true, 0, _) &*& d2 != null &*& d2.length == 1200 &*&\r\n\t \t\trootCaCertificate |-> ?rootcac &*& rootcac.ElementaryFile(ROOT_CA_CERTIFICATE, bpd, ?d3, true, 0, _) &*& d3 != null &*& d3.length == 1200 &*&\r\n\t \t\tphotoFile |-> ?pf &*& pf.ElementaryFile(PHOTO, idd, ?d4, true, 0, _) &*& d4 != null &*& d4.length == 3584 &*&\r\n\t \t\tauthenticationCertificate |-> ?ac &*& ac.ElementaryFile(AUTH_CERTIFICATE, bpd, ?d5, true, 0, _) &*& d5 != null &*& d5.length == 1200 &*&\r\n\t \t\tnonRepudiationCertificate |-> ?nrc &*& nrc.ElementaryFile(NONREP_CERTIFICATE, bpd, ?d6, true, 0, _) &*& d6 != null &*& d6.length == 1200 &*&\r\n\t \t\tidd.DedicatedFile(_, _, _, append(iddir_sibs, cons(pf, nil)), _) &*& \r\n\t \t\tbpd.DedicatedFile(_, _, _, append(append(append(append(append(belpic_sibs, cons(cac, nil)), cons(rrnc, nil)), cons(rootcac, nil)), cons(ac, nil)), cons(nrc, nil)), _); @*/\r\n\t{\r\n\t\t/*\r\n\t\t * these 3 certificates are the same for all sample eid card applets\r\n\t\t * therefor they are made static and the data is allocated only once\r\n\t\t */\r\n\t\tcaCertificate = new ElementaryFile(CA_CERTIFICATE, belpicDirectory, (short) 1200);\r\n\t\trrnCertificate = new ElementaryFile(RRN_CERTIFICATE, belpicDirectory, (short) 1200);\r\n\t\t\r\n\t\trootCaCertificate = new ElementaryFile(ROOT_CA_CERTIFICATE, belpicDirectory, (short) 1200);\r\n\t\t/*\r\n\t\t * to save some memory we only support 1 photo for all subclasses\r\n\t\t * ideally this should be applet specific and have max size 3584 (3.5K)\r\n\t\t */\r\n\t\tphotoFile = new ElementaryFile(PHOTO, idDirectory, (short) 3584);\r\n\t\t/*\r\n\t\t * certificate #2 and #3 are applet specific allocate enough memory\r\n\t\t */\r\n\t\tauthenticationCertificate = new ElementaryFile(AUTH_CERTIFICATE, belpicDirectory, (short) 1200);\r\n\t\tnonRepudiationCertificate = new ElementaryFile(NONREP_CERTIFICATE, belpicDirectory, (short) 1200);\r\n\t}",
"private Iterable<File> findUpdateFilesAfter(long minimumLastModified) {\r\n\t\t String dataFileName = dataFile.getName();\r\n\t\t int period = dataFileName.indexOf('.');\r\n\t\t String startName = period < 0 ? dataFileName : dataFileName.substring(0, period);\r\n\t\t File parentDir = dataFile.getParentFile();\r\n\t\t Map<Long, File> modTimeToUpdateFile = new TreeMap<Long,File>();\r\n\t\t for (File updateFile : parentDir.listFiles()) {\r\n\t\t String updateFileName = updateFile.getName();\r\n\t\t if (updateFileName.startsWith(startName)\r\n\t\t && !updateFileName.equals(dataFileName)\r\n\t\t && updateFile.lastModified() >= minimumLastModified) {\r\n\t\t modTimeToUpdateFile.put(updateFile.lastModified(), updateFile);\r\n\t\t }\r\n\t\t }\r\n\t\t return modTimeToUpdateFile.values();\r\n\t\t }",
"private AFile getFileToCheck() {\n\t\tif (fileListTblMdl != null && ((compareCount > 8 && compareCount % 4 == 0) || compareCount >= fileList.size())) {\n\t\t\tfileListTblMdl.fireTableDataChanged();\n\t\t}\n\t\tif (compareCount >= fileList.size()) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tsynchronized (fileList) {\n\t\t\t\treturn fileList.get(compareCount++);\n\t\t\t}\n\t\t}\n\t}",
"public List<LsFileEntry> lsFiles() \n \tthrows CorruptObjectException, IOException {\n \t\tMap<String, LsFileEntry> cachedEntries = new TreeMap<String, LsFileEntry>(); \n \t\t\n \t\t//first read all the files which are the Index\n \t\tfinal DirCache cache = DirCache.read(db);\n \t\tfor (int i = 0; i < cache.getEntryCount(); i++) {\n \t\t\tfinal DirCacheEntry ent = cache.getEntry(i);\n \t\t\t\n \t\t\t//X TODO this is surely not enough ;)\n \t\t\tLsFileStatus fs = LsFileStatus.CACHED;\n \t\t\tLsFileEntry fileEntry = new LsFileEntry(ent.getPathString(), fs, ent.getObjectId());\n \t\t\tcachedEntries.put(ent.getPathString(), fileEntry);\n \t\t}\n \n \t\t// now read all the files on the disk\n \t\tSet<String> filesOnDisk = new TreeSet<String>(); \n \t\tFile workDir = db.getWorkDir();\n \t\taddFiles(filesOnDisk, \"\", workDir);\n \t\t\n \t\t// and now compare them. since both are already sorted because we used TreeMap and TreeSort\n \t\t// we can simply crawl over them end compare them. kind of a merge sort though...\n \t\tArrayList<LsFileEntry> fileEntries = new ArrayList<LsFileEntry>();\n \n \t\tIterator<String> cacheIt = cachedEntries.keySet().iterator();\n \t\tIterator<String> fileIt = filesOnDisk.iterator();\n \t\t\n \t\tString cachedPath = null;\n \t\tString fsPath = null;\n \t\twhile (cacheIt.hasNext() || fileIt.hasNext()) {\n \t\t\t\n \t\t\tif (cachedPath == null && cacheIt.hasNext()) {\n \t\t\t\tcachedPath = cacheIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath == null && fileIt.hasNext()) {\n \t\t\t\tfsPath = fileIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && cachedPath.equals(fsPath)) {\n \t\t\t\t// oh found in both systems\n \t\t\t\tfileEntries.add(cachedEntries.get(cachedPath));\n \t\t\t\tcachedPath = null;\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && !fileEntries.contains(cachedPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(cachedPath, LsFileStatus.REMOVED, null));\n \t\t\t\tcachedPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath != null && !cachedEntries.keySet().contains(fsPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(fsPath, LsFileStatus.OTHER, null));\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tcachedPath = null;\n \t\t\tfsPath = null;\n \t\t\t\n \t\t}\n \t\t\n \t\treturn fileEntries;\n \t}",
"public void mo83570c() {\n File[] listFiles;\n File file = new File(this.f60297d);\n if (file.isDirectory() && (listFiles = file.listFiles()) != null && listFiles.length >= this.f60294a) {\n Arrays.sort(listFiles, this.f60295b);\n for (int i = 0; i < listFiles.length && listFiles.length >= this.f60294a; i++) {\n File file2 = listFiles[i];\n if (!this.f60299f.contains(file2)) {\n ArgusLogger.m85574b(String.format(C6969H.m41409d(\"G4D8AC619BE22AF20E809D047FEE1C6C47DC3D008AD3FB969E71DD05BE6EAD1D26DC3D008AD3FB969EA079D41E6A5D1D26880DD1FBB70E36CF547\"), file2.getPath()));\n mo83569b(Collections.singleton(file2));\n }\n }\n }\n }",
"@Test(timeout = 4000)\n public void test21() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n ArrayList<String> arrayList0 = new ArrayList<String>();\n FileInputStream fileInputStream0 = fileUtil0.fetchAccessories(\"bq,4~/{MxS* Ht9k\", arrayList0);\n assertNull(fileInputStream0);\n }",
"static int m12508a(File directory, FilenameFilter filter, int maxAllowed, Comparator<File> sortComparator) {\n File[] sessionFiles = directory.listFiles(filter);\n if (sessionFiles == null) {\n return 0;\n }\n int numRetained = sessionFiles.length;\n Arrays.sort(sessionFiles, sortComparator);\n for (File file : sessionFiles) {\n if (numRetained <= maxAllowed) {\n return numRetained;\n }\n file.delete();\n numRetained--;\n }\n return numRetained;\n }",
"private void seekBy() {\n Queue<File> queue = new LinkedList<>();\n queue.offer(new File(root));\n while (!queue.isEmpty()) {\n File file = queue.poll();\n File[] list = file.listFiles();\n if (file.isDirectory() && list != null) {\n for (File tempFile : list) {\n queue.offer(tempFile);\n }\n } else {\n if (args.isFullMatch() && searchingFile.equalsIgnoreCase(file.getName())) {\n result.add(file);\n }\n if (args.isMask() && searchingFile.replaceAll(\"\\\\*\", \".*\").equalsIgnoreCase(file.getName())) {\n result.add(file);\n }\n if (args.isRegex() && file.getName().matches(args.getName())) {\n result.add(file);\n }\n }\n }\n this.writeLog(output, result);\n }",
"public final void mo14831s() {\n Iterator it = ((ArrayList) mo14817d()).iterator();\n while (it.hasNext()) {\n File file = (File) it.next();\n if (file.listFiles() != null) {\n m6739b(file);\n long c = m6740c(file, false);\n if (((long) this.f6567b.mo14797a()) != c) {\n try {\n new File(new File(file, String.valueOf(c)), \"stale.tmp\").createNewFile();\n } catch (IOException unused) {\n f6563c.mo14884b(6, \"Could not write staleness marker.\", new Object[0]);\n }\n }\n for (File b : file.listFiles()) {\n m6739b(b);\n }\n }\n }\n }",
"void visitFile(StorageUnit unit, long off, long lim);",
"@Test(timeout = 4000)\n public void test10() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/A_.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\");\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n FileInputStream fileInputStream0 = fileUtil0.fetchAccessories(\"\", arrayList0);\n assertEquals(0, fileInputStream0.available());\n }",
"@Test\n\tpublic void testNumLargeFiles() {\n\t\tFile test = new File(\"X:\\\\Documents\\\\PS9 Test\");\n\t\tassertEquals(6,Explorer.numLargeFiles(test));\n\t}",
"public final void mo118048d() {\n List<File> c = this.f120295d.mo118063c();\n int i = this.f120296e;\n if (c.size() > i) {\n int size = c.size() - i;\n C46869g.m146602a(this.f120292a, C1642a.m8035a(Locale.US, \"Found %d files in roll over directory, this is greater than %d, deleting %d oldest files\", new Object[]{Integer.valueOf(c.size()), Integer.valueOf(i), Integer.valueOf(size)}));\n TreeSet treeSet = new TreeSet(C46913h.f120301a);\n for (File file : c) {\n treeSet.add(new C46912a(file, m146732b(file.getName())));\n }\n ArrayList arrayList = new ArrayList();\n Iterator it = treeSet.iterator();\n while (it.hasNext()) {\n arrayList.add(((C46912a) it.next()).f120299a);\n if (arrayList.size() == size) {\n break;\n }\n }\n this.f120295d.mo118059a((List<File>) arrayList);\n }\n }",
"@Test(timeout = 4000)\n public void test26() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchKeywordSearchFile(\"\\\"90hR%xB!V_E\", \"]2|1W!'`]^|wGK<v\", \"4Mt^CHhS%F8B\\\"H Y\", \"[\");\n assertNull(fileInputStream0);\n }",
"@Test\n public void maxFiles() throws Throwable {\n MergeFilesOptions opts = new MergeFilesOptions();\n opts.setStream(\"//Ace/dev\");\n opts.setReverseMapping(true);\n opts.setMaxFiles(1);\n opts.setForceStreamMerge(true);\n\n List<IFileSpec> merged = client.mergeFiles(null, null, opts);\n assertEquals(\"wrong number of files\", 1, merged.size());\n\n List<IFileSpec> opened = client.openedFiles(null, null);\n assertEquals(\"files should not have been opened\", 1, opened.size());\n }",
"@Test(timeout = 4000)\n public void test05() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n fBCachedFetcher0.setFetchSize(220);\n boolean boolean0 = FileSystemHandling.shouldAllThrowIOExceptions();\n assertTrue(boolean0);\n }",
"public List<FileUpload> getFileUploads(int numberOfFileUploads, Long startIndex) throws AppException;",
"void updateShowCounts() {\n /*\n * once we have passed the threshold, we don't need to keep checking the\n * number of rows in tsk_files\n */\n if (showCounts) {\n try {\n if (skCase.countFilesWhere(\"1=1\") > NODE_COUNT_FILE_TABLE_THRESHOLD) { //NON-NLS\n showCounts = false;\n }\n } catch (TskCoreException tskCoreException) {\n showCounts = false;\n logger.log(Level.SEVERE, \"Error counting files.\", tskCoreException); //NON-NLS\n }\n }\n }",
"public static YFiles FirstFiles()\n {\n YAPIContext yctx = YAPI.GetYCtx(false);\n if (yctx == null) return null;\n String next_hwid = yctx._yHash.getFirstHardwareId(\"Files\");\n if (next_hwid == null) return null;\n return FindFilesInContext(yctx, next_hwid);\n }",
"DeltaFileEntry[] query(long lastSeqNo, int limit);",
"private static void testFileSearch(TrackingServer ts) {\r\n\t\tString requestFormat = \"FIND=%s|FAILED_SERVERS=%s\";\r\n\t\tString finalRequest = null;\r\n\t\tStringBuilder failedPeer = null;\r\n\t\tts.readL.lock();\r\n\t\ttry {\r\n\t\t\tfor (Entry<String, HashSet<Machine>> entry : ts.filesServersMap.entrySet()) {\r\n\t\t\t\tfailedPeer = new StringBuilder();\r\n\t\t\t\tfor (Machine m : entry.getValue()) {\r\n\t\t\t\t\tfailedPeer.append(m.toString());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tfinalRequest = String.format(requestFormat, entry.getKey(), failedPeer.toString());\r\n\t\t\t\tbyte[] result = ts.handleSpecificRequest(finalRequest);\r\n\t\t\t\tSystem.out.println(\"result of find=\" + Utils.byteToString(result) + \" entrySet=\" + entry.getValue());\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tts.readL.unlock();\r\n\t\t}\r\n\r\n\t}",
"@Override\n public int getMaxFileId(){\n int maxFileId = -1;\n for(int id : mapAllVertices.getIds()){\n V v = mapAllVertices.get(id);\n // get File ids for all time frames if exist, take for one ans break since file id will be same for all time frames for a vertex\n List<String> listFileId = \n new ArrayList<>(v.getUserAttributer().getAttributeValues(MeerkatSystem.FILE_ID).values());\n for(String strfileId : listFileId){\n //System.out.println(\"File ID : \" + strfileId);\n int fileId = Integer.parseInt(strfileId);\n if(fileId > maxFileId){\n maxFileId = fileId;\n }\n break;\n }\n }\n return maxFileId;\n\n}",
"@Test(timeout = 4000)\n public void test06() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n MockFile mockFile0 = new MockFile(\"l<\", \"l<\");\n mockFile0.delete();\n fileUtil0.isAgeGood(mockFile0);\n fileUtil0.fetchASINFile(\"QS|v?htZLQ_f\\\"4\", \"cacheLife\", \"k_\", \"cacheDir\");\n fileUtil0.getBrowseNodeFile(\"cacheDir\", \"cacheDir\", \"cacheDir\");\n fileUtil0.fetchThirdPartySearchFile(\"l<\", \"l<\", \"QS|v?htZLQ_f\\\"4\", \"3rd_\");\n fileUtil0.getASINFile(\"cacheDir\", \"\", \"\", (String) null);\n fileUtil0.deleteFile(\"k_\");\n }",
"public ArrayList<File> findRelevantFiles (int reimburseID);",
"@Test(timeout = 4000)\n public void test17() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_NULL.XML\");\n byte[] byteArray0 = new byte[9];\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n FileInputStream fileInputStream0 = fileUtil0.fetchSimilarItems((String) null, \"\");\n assertEquals(9, fileInputStream0.available());\n }",
"@Test(timeout = 4000)\n public void test23() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n File file0 = fileUtil0.getAccessories(\"YP=8V~@ch)3vts}p8\", arrayList0);\n assertNull(file0);\n }",
"@Test\n public void findWithMaskIncorrectRegularExpression() throws Exception {\n List<File> fileList = fileFinder.find(path, \"?.txt\", fileFinder.getFILES());\n System.out.println(fileList.size());\n int sero = fileList.size();\n assertThat(sero == (fileList.size()), is(true));\n\n }",
"@Test(timeout = 4000)\n public void test19() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchSimilarItems(\"\", \"page=\");\n assertNull(fileInputStream0);\n }",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n ArrayList<Integer> arrayList0 = new ArrayList<Integer>();\n arrayList0.spliterator();\n fileUtil0.getAccessories(\"\", arrayList0);\n fileUtil0.fetchKeywordSearchFile(\"\", \"\", \"\", \"\");\n fileUtil0.downloadThirdPartySearchFile(\"\", \"net.kencochrane.a4j.util.LoadProperties\", \"\", \"T||]%|~ZG.LC(6mb~A\");\n fileUtil0.fetchKeywordSearchFile(\"\", \"T||]%|~ZG.LC(6mb~A\", (String) null, \"\");\n fileUtil0.getBrowseNodeFile(\"net.kencochrane.a4j.util.LoadProperties\", \"@>-=6JQ%t&fx,L\", \"net.kencochrane.a4j.util.LoadProperties\");\n fileUtil0.fetchBlendedSearchFile(\"AGmeJ)4qdg_/\", \"a_\");\n Integer integer0 = new Integer(7);\n arrayList0.add(integer0);\n fileUtil0.downloadAccessoriesFile(\"3rd_\", arrayList0, \"I~-|SH-#r+.Olx\");\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\"\", \"\", \"]RHe['l4y{\", \"]RHe['l4y{\", \"I~-|SH-#r+.Olx\", \"\\\"-q6AW$MO[2+kQ/Sl.g\");\n assertNull(fileInputStream0);\n }",
"public File[] getFiles(String mkey) {\n\t\tFile last;\n\t\tint i = 0;\n\t\tArrayList<File> v = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tlast = getFile(mkey + i);\n\t\t\ti++;\n\t\t\tif (last == null)\n\t\t\t\tbreak;\n\t\t\tv.add(last);\n\t\t}\n\t\tif (v.size() != 0) {\n\t\t\tFile[] path = new File[v.size()];\n\t\t\treturn v.toArray(path);\n\t\t} else {\n\t\t\treturn (File[]) getDefault(mkey);\n\t\t}\n\t}",
"@Test(timeout = 4000)\n public void test12() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getSimilarItems(\"\", \"qvKCG)x\\\"\\\"1K>mN1k\");\n assertNull(file0);\n }",
"@Test(timeout = 4000)\n public void test00() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.fetchASINFile(\"a_\", \"z5<k#5LC43q@c8Y\", \"\", \"\");\n File file0 = fileUtil0.downloadKeywordSearchFile(\"\", \"a_\", \"all\", \"all\");\n assertNull(file0);\n }",
"@Test\r\n\tpublic void testPLFM_1978_getBackupBatch(){\n\t\tList<Long> list = new LinkedList<Long>();\r\n\t\t// pass the empty list should return an empty result\r\n\t\tList<DBOFileHandle> results = migratableTableDAO.getBackupBatch(DBOFileHandle.class, list);\r\n\t\tassertNotNull(results);\r\n\t\tassertEquals(0, results.size());\r\n\t}",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_[.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\\\",\");\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getSimilarItems(\"[\", \"\");\n assertEquals(2L, file0.length());\n assertNotNull(file0);\n }",
"@Override\n public Iterable<File> list(File storageDirectory, FilenameFilter filter) {\n\treturn null;\n }",
"@Test(timeout = 4000)\n public void test03() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.getASINFile(\"cacheDir\", \"cacheDir\", \"cacheDir\", (String) null);\n fileUtil0.fetchKeywordSearchFile(\"D7J|oyQC\", \"D7J|oyQC\", \"D7J|oyQC\", \"D7J|oyQC\");\n fileUtil0.downloadBlendedSearchFile(\"+G[/UQFc\", \"+G[/UQFc\");\n File file0 = fileUtil0.downloadThirdPartySearchFile(\"D7J|oyQC\", \"Log file isn't there Setting default properties\", \"7swCsV7y\", \"ts_\");\n assertNull(file0);\n }",
"@Test\n public void test4() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:(u,v), b, c);\" +\n \"B = FOREACH A GENERATE $0, b, flatten(1);\" +\n \"C = FILTER B BY \" + SIZE.class.getName() +\"(TOTUPLE(*)) > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator fe1 = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator fe2 = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n Operator filter = newLogicalPlan.getSuccessors( fe2 ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n }",
"public static void m6739b(File file) {\n if (file.listFiles() != null && file.listFiles().length > 1) {\n long c = m6740c(file, false);\n for (File file2 : file.listFiles()) {\n if (!file2.getName().equals(String.valueOf(c)) && !file2.getName().equals(\"stale.tmp\")) {\n m6741h(file2);\n }\n }\n }\n }",
"private int findKthSmallest(LargeFile file, int k) {\n long lower = Integer.MIN_VALUE;\n long upper = Integer.MAX_VALUE;\n int res = Integer.MIN_VALUE;\n while (lower <= upper) {\n long mid = lower + (upper - lower) / 2;\n //count how many nums smaller than or equal to mid in file\n int count = 0;\n int kthNum = Integer.MIN_VALUE;\n while (file.hasNext()) {\n int next = file.next();\n if (next <= mid) {\n kthNum = Math.max(kthNum, next);\n count++;\n }\n }\n file.reset();\n if (count >= k) {\n //store potential ans\n res = kthNum;\n upper = mid - 1;\n } else {\n lower = mid + 1;\n }\n }\n return res;\n }",
"private void setInitialSourceFile()\n\t{\n\t\tint largestAuthoredId = -1;\n\t\tSourceFile[] files = m_fileInfo.getFileList();\n\t\tfor (int i=0; i<files.length; ++i)\n\t\t{\n\t\t\tSourceFile sf = files[i];\n\t\t\tif (sf.getId() > largestAuthoredId && getFileType(sf) == AUTHORED_FILE)\n\t\t\t\tlargestAuthoredId = sf.getId();\n\t\t}\n\t\tif (largestAuthoredId != -1)\n\t\t\tsetListingPosition(largestAuthoredId, 1);\n\t}",
"public synchronized int load()\n {\n int cb = (maxFiles * maxChars * SysLib.CBCHAR) + \n (maxFiles * SysLib.CBINT);\n byte b[] = new byte[cb];\n files.clear();\n int fileNameOffset = maxFiles * SysLib.CBINT;\n int offset = 0;\n\n // Read the entire potential directory listing\n if (inode.read(0, b) < 0)\n {\n return -1;\n }\n\n for (int i = 0; i < maxFiles; i++)\n {\n // Read the file name length\n int strLen = SysLib.bytes2int(b, offset);\n offset += SysLib.CBINT;\n\n // Read the file name, if one is stored\n if (strLen > 0)\n {\n byte strBytes[] = new byte[strLen * SysLib.CBCHAR];\n\n System.arraycopy(b, fileNameOffset, strBytes, 0,\n strBytes.length);\n\n files.add(new String(strBytes));\n\n fileNameOffset += strLen;\n }\n // Add a zero-length placeholder for this listing\n else\n {\n files.add(new String(\"\"));\n }\n }\n\n return 0;\n }",
"private void luceneFirstGetNextChunk(SortBy sort) throws ServiceException {\n do {\n // DON'T set an sql LIMIT if we're asking for lucene hits!!! If we did, then we wouldn't be\n // sure that we'd \"consumed\" all the Lucene-ID's, and therefore we could miss hits!\n\n // limit in clause based on Db capabilities - bug 15511\n luceneChunk = luceneOp.getNextResultsChunk(Math.min(Db.getINClauseBatchSize(), hitsPerChunk));\n\n DbSearchConstraints.Leaf sc = getTopLeafConstraint();\n sc.indexIds.clear();\n sc.indexIds.addAll(luceneChunk.getIndexIds());\n\n // exponentially expand the chunk size in case we have to go back to the DB\n hitsPerChunk *= 2;\n if (hitsPerChunk > MAX_HITS_PER_CHUNK) {\n hitsPerChunk = MAX_HITS_PER_CHUNK;\n }\n\n if (sc.indexIds.size() == 0) {\n // we know we got all the index-id's from lucene. since we don't have a\n // LIMIT clause, we can be assured that this query will get all the remaining results.\n endOfHits = true;\n } else {\n // must not ask for offset,limit here b/c of indexId constraints!,\n dbSearch(dbHits, sort, -1, -1);\n }\n } while (dbHits.size() == 0 && !endOfHits);\n }",
"ds.hdfs.generated.FileMetadata getFiles(int index);",
"private void checkThruFileTree(File f[], CachedUrlSet myCUS){\n String exclUrlStem = \"http://www.example.com/branch1/branch1/branch1/\";\n\n for (int ix=0; ix<f.length; ix++) {\n\t if (f[ix].isDirectory()) {\n\t // get all the files and links there and iterate\n\t checkThruFileTree(f[ix].listFiles(), myCUS);\n\t } else {\n\n\t // get the f[ix] 's level information\n\t String fileUrl = sau.mapContentFileNameToUrl(f[ix].getAbsolutePath());\n\t int fileLevel = sau.getLinkDepth(fileUrl);\n\t log.debug2(\"File: \" + fileUrl + \" in Level \" + fileLevel);\n\n\t CachedUrl cu = sau.makeCachedUrl(fileUrl);\n\t if (fileLevel <= maxDepth\n\t && !StringUtil.startsWithIgnoreCase(fileUrl, exclUrlStem)) {\n\t assertTrue(cu + \" has no content\", cu.hasContent());\n\t } else {\n\t assertFalse(cu + \" has content when it shouldn't\",\n\t\t\t cu.hasContent());\n\t }\n\t }\n }\n return; // when all \"File\" in the array are checked\n }",
"@Test\n public void testConstructor_Custom_Store_File_Overflow() {\n\n File file = new File(System.getProperty(\"java.io.tmpdir\") + File.separator\n + \"oasis-list-testConstructor_Custom_Store_File_Overflow\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(file);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n File[] subDirs = file.listFiles();\n\n assertNotNull(subDirs);\n }",
"public DBCursor getFileList(DBObject query) {\n\treturn getFileList(query, new BasicDBObject(\"filename\", 1));\n }",
"@Test(timeout = 4000)\n public void test01() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.downloadBrowseNodeFile(\">RY@\\\"d8cDm4\", \"gIeuBfO{y#\", \"\", \">RY@\\\"d8cDm4\");\n fileUtil0.fetchThirdPartySearchFile(\"net.kencochrane.a4j.file.FileUtil\", \"g!n_C$F8\\\"D4 e)e\", \"b_\", \"net.kencochrane.a4j.file.FileUtil\");\n ArrayList<Integer> arrayList0 = new ArrayList<Integer>();\n Integer integer0 = new Integer((-977));\n arrayList0.add(integer0);\n fileUtil0.cacheDir = \"\";\n fileUtil0.fetchAccessories(\"\", arrayList0);\n fileUtil0.getBrowseNodeFile(\"\", \"\", \"\");\n fileUtil0.downloadCart(\"4[EG]r,0beUTj1 \");\n FileInputStream fileInputStream0 = fileUtil0.fetchBlendedSearchFile(\"4[EG]r,0beUTj1 \", \"\");\n assertNull(fileInputStream0);\n }",
"public void testGetStartWithLimit() throws Exception\n {\n Log.log(\"TEST\", \"[GetFileTypeListActionTest.testGetStartWithLimit] Enter \");\n\n// for (int i=0; i<LIST_COUNT; i++)\n// createTestData(_FILE_TYPE+i, _DESCRIPTION+i);\n\n Long[] uIDs = (Long[])findFileTypesKeys(_FILTER).toArray(new Long[_LIST_COUNT]);\n\n _event = createTestEvent(_FILTER, _MAX_PAGE_ENTRIES, _START_ROW);\n try\n {\n _response = performEvent(_event);\n }\n catch (Exception ex)\n {\n Log.err(\"TEST\", \"[GetFileTypeListActionTest.testGetStartWithLimit] Error Exit \", ex);\n assertTrue(\"Event Exception\", false);\n }\n\n //check response\n assertNotNull(\"response is null\", _response);\n assertTrue(\"event is not successful\", _response.isEventSuccessful());\n assertEquals(\"Msg code incorrect\", IErrorCode.NO_ERROR, _response.getMessageCode());\n\n Object returnData = _response.getReturnData();\n assertNotNull(\"responsedata is null\", returnData);\n assertTrue(\"response data type incorrect\", returnData instanceof EntityListResponseData);\n\n EntityListResponseData listData = (EntityListResponseData)returnData;\n\n assertEquals(\"Rows remaining is incorrect\",\n _MAX_PAGE_ENTRIES+_START_ROW>_LIST_COUNT? 0 : _LIST_COUNT-_MAX_PAGE_ENTRIES-_START_ROW, listData.getRowsRemaining());\n assertEquals(\"start row is incorrect\", _START_ROW, listData.getStartRow());\n assertNotNull(\"List ID is null\", listData.getListID());\n\n Collection entityList = listData.getEntityList();\n assertNotNull(\"Entity list is null\", entityList);\n assertEquals(\"Entity list count is incorrect\",\n _LIST_COUNT-_START_ROW<_MAX_PAGE_ENTRIES?_LIST_COUNT-_START_ROW:_MAX_PAGE_ENTRIES, entityList.size());\n\n Object[] entityObjs = entityList.toArray();\n for (int i=0; i<entityObjs.length; i++ )\n {\n assertNotNull(\"Entity is null\", entityObjs[i]);\n assertTrue(\"Entity is not Map\", entityObjs[i] instanceof Map);\n\n Map fileTypeMap = (Map)entityObjs[i];\n\n assertEquals(\"UID is incorrect\", uIDs[i+_START_ROW], fileTypeMap.get(IFileType.UID));\n assertEquals(\"FileType incorrect\", _FILE_TYPE+(i+_START_ROW), fileTypeMap.get(IFileType.FILE_TYPE));\n assertEquals(\"Description incorrect\", _DESCRIPTION+(i+_START_ROW), fileTypeMap.get(IFileType.DESCRIPTION));\n assertEquals(\"ProgramName is incorrect\", _PROGRAM_NAME+(i+_START_ROW), fileTypeMap.get(IFileType.PROGRAM_NAME));\n assertEquals(\"ProgramPath is incorrect\", _PROGRAM_PATH+(i+_START_ROW), fileTypeMap.get(IFileType.PROGRAM_PATH));\n assertEquals(\"Parameters is incorrect\", _PARAMETERS+(i+_START_ROW), fileTypeMap.get(IFileType.PARAMETERS));\n assertEquals(\"WorkingDirectory is incorrect\", _WORKING_DIR+(i+_START_ROW), fileTypeMap.get(IFileType.WORKING_DIR));\n }\n Log.log(\"TEST\", \"[GetFileTypeListActionTest.testGetStartWithLimit] Exit \");\n }",
"public abstract boolean isPassedFilter(double fileSizeInKilobytes);",
"@Test(timeout = 4000)\n public void test20() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/A_X-0;;JLT_;1IJDVA.XML\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n FileInputStream fileInputStream0 = fileUtil0.fetchAccessories(\"X-0;;JLT_;1iJdvA\", arrayList0);\n assertNull(fileInputStream0);\n }",
"public abstract List<LocalFile> getAllFiles();",
"@Test(timeout = 4000)\n public void test21() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n XSQLVAR[] xSQLVARArray0 = new XSQLVAR[0];\n FBResultSet fBResultSet0 = new FBResultSet(xSQLVARArray0, linkedList0);\n byte[][] byteArray0 = new byte[7][0];\n byte[] byteArray1 = new byte[7];\n byteArray1[0] = (byte) (-111);\n linkedList0.add(byteArray0);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, fBResultSet0);\n FileSystemHandling.shouldAllThrowIOExceptions();\n fBCachedFetcher0.insertRow(byteArray0);\n fBCachedFetcher0.insertRow(fBResultSet0.row);\n assertFalse(fBCachedFetcher0.isBeforeFirst());\n }",
"public void markMaxRecordsPerFileDelete() throws JNCException {\n markLeafDelete(\"maxRecordsPerFile\");\n }",
"@Override\n public Collection<AbstractFile> visit(FileSystem fs) {\n \n SleuthkitCase sc = Case.getCurrentCase().getSleuthkitCase();\n \n StringBuilder queryB = new StringBuilder();\n queryB.append(\"SELECT * FROM tsk_files WHERE (fs_obj_id = \").append(fs.getId());\n queryB.append(\") AND (size > 0)\");\n queryB.append(\" AND ( (meta_type = \").append(TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_REG.getMetaType());\n queryB.append(\") OR (meta_type = \").append(TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_DIR.getMetaType());\n queryB.append( \"AND (name != '.') AND (name != '..')\");\n queryB.append(\") )\");\n if (getUnallocatedFiles == false) {\n queryB.append( \"AND (type = \");\n queryB.append(TskData.TSK_DB_FILES_TYPE_ENUM.FS.getFileType());\n queryB.append(\")\");\n }\n \n try {\n final String query = queryB.toString();\n logger.log(Level.INFO, \"Executing query: \" + query);\n ResultSet rs = sc.runQuery(query);\n List<AbstractFile> contents = sc.resultSetToAbstractFiles(rs);\n Statement s = rs.getStatement();\n rs.close();\n if (s != null) {\n s.close();\n }\n return contents;\n } catch (SQLException ex) {\n logger.log(Level.WARNING, \"Couldn't get all files in FileSystem\", ex);\n return Collections.emptySet();\n }\n }",
"private static void m133350k() {\n C41940c c = C35574k.m114859a().mo70094i().mo102932c();\n String str = C39811er.f103468d;\n C7573i.m23582a((Object) str, \"ShortVideoConfig2.sDir\");\n File a = c.mo102928a(str);\n if (a.exists() && a.isDirectory()) {\n Set a2 = C41911c.m133283a();\n File[] listFiles = a.listFiles();\n C7573i.m23582a((Object) listFiles, \"filesRoot.listFiles()\");\n Iterable c2 = C7519g.m23444c((T[]) listFiles);\n Collection arrayList = new ArrayList();\n Iterator it = c2.iterator();\n while (true) {\n boolean z = false;\n if (!it.hasNext()) {\n break;\n }\n Object next = it.next();\n File file = (File) next;\n if (file.exists() && file.isFile()) {\n z = true;\n }\n if (z) {\n arrayList.add(next);\n }\n }\n for (File file2 : (List) arrayList) {\n String name = file2.getName();\n C7573i.m23582a((Object) name, \"filesToDelete.name\");\n if (!C7634n.m23723c(name, \"-concat-v\", false)) {\n String name2 = file2.getName();\n C7573i.m23582a((Object) name2, \"filesToDelete.name\");\n if (!C7634n.m23723c(name2, \"-concat-a\", false)) {\n String name3 = file2.getName();\n C7573i.m23582a((Object) name3, \"filesToDelete.name\");\n if (!C7634n.m23723c(name3, \"_synthetise\", false)) {\n }\n }\n }\n Iterator it2 = a2.iterator();\n int i = 0;\n while (true) {\n if (!it2.hasNext()) {\n i = -1;\n break;\n }\n Object next2 = it2.next();\n if (i < 0) {\n C7525m.m23465b();\n }\n String str2 = (String) next2;\n String path = file2.getPath();\n C7573i.m23582a((Object) path, \"filesToDelete.path\");\n if (C7634n.m23721b(path, str2, false)) {\n break;\n }\n i++;\n }\n if (-1 == i) {\n file2.delete();\n }\n }\n }\n }",
"public void markMaxRecordsPerFileMerge() throws JNCException {\n markLeafMerge(\"maxRecordsPerFile\");\n }",
"@Test(timeout = 4000)\n public void test06() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/A_X-0;;JLT_;1IJDVA.XML\");\n byte[] byteArray0 = new byte[5];\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n FileUtil fileUtil0 = new FileUtil();\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n File file0 = fileUtil0.getAccessories(\"X-0;;JLT_;1iJdvA\", arrayList0);\n assertEquals(5L, file0.length());\n assertNotNull(file0);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static void prepareQuery() throws InterruptedException, FileNotFoundException, IOException{\n\t\tint querySetSize=2;\n\t\tHashMap<Integer, Integer> totQ=(HashMap<Integer, Integer>) General.readObject(\"O:/ImageRetrieval/Herve1.5K/Herve_querys_L_to_L.hashMap\");\n\t\t\n\t\tString subQSetFolder=\"O:/ImageRetrieval/Herve1.5K/HerveQuerys_LtoL_perSubSet\"+querySetSize+\"/\";\n\t\tGeneral.makeORdelectFolder(subQSetFolder);\n\t\tRandom rand=new Random();\n\t\tArrayList<HashMap<Integer, Integer>> Qsets =General.randSplitHashMap(rand, totQ, 0, querySetSize);\n\t\tint totQnum=0;\n\t\tfor (int i = 0; i < Qsets.size(); i++) {\n\t\t\tGeneral.writeObject(subQSetFolder+\"Q\"+i+\".hashMap\", Qsets.get(i));\n\t\t\tSystem.out.println(i+\", \"+Qsets.get(i).size());\n\t\t\ttotQnum+=Qsets.get(i).size();\n\t\t}\n\t\tGeneral.Assert(totQnum==totQ.size(), \"err, totQnum:\"+totQnum+\", should ==\"+totQ.size());\n\t\tSystem.out.println(\"taget querySetSize:\"+querySetSize+\", totQnum:\"+totQnum+\", should ==\"+totQ.size());\n\t}",
"private boolean compressOldFiles() {\n long now = System.currentTimeMillis();\n int count = 0;\n for (LogFile lf : knownFiles) {\n // avoid compressing entire archive at once\n if (lf.canCompress(now) && (count++ < 5)) {\n compress(lf.path);\n }\n }\n return count > 0;\n }",
"public void markMaxRecordsPerFileCreate() throws JNCException {\n markLeafCreate(\"maxRecordsPerFile\");\n }",
"@Test\n public void test2() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:(u,v), b, c);\" +\n \"B = FOREACH A GENERATE $0, b;\" +\n \"C = FILTER B BY \" + SIZE.class.getName() +\"(TOTUPLE(*)) > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator fe1 = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator filter = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n Operator fe2 = newLogicalPlan.getSuccessors( filter ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n }",
"private static File getWeededOut() {\n\t\tFile[] files = cacheFolder.listFiles();\n\t\tif (files != null) {\n\t\t\tint count = files.length;\n\t\t\tif (count > CACHE_CAPACITY) {\n\n\t\t\t\tFile ret = files[0];\n\n\t\t\t\tfor (File bean : files) {\n\n\t\t\t\t\tif (ret.lastModified() > bean.lastModified())\n\t\t\t\t\t\tret = bean;\n\t\t\t\t}\n\t\t\t\tfiles = null;\n\t\t\t\treturn ret;\n\t\t\t} else {\n\t\t\t\tfiles = null;\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t}\n\t\tfiles = null;\n\t\treturn null;\n\t}",
"public void markMaxRecordsPerFileReplace() throws JNCException {\n markLeafReplace(\"maxRecordsPerFile\");\n }",
"List<Long> findActiveContentFilesForContentUid(@Param(\"contentUid\") long contentUid);",
"@Test\n public void readPartialFile() throws Exception {\n long start = 3;\n long end = ((ReadHandlerTest.CHUNK_SIZE) * 10) - 99;\n long checksumExpected = populateInputFile(((ReadHandlerTest.CHUNK_SIZE) * 10), start, end);\n mReadHandler.onNext(buildReadRequest(start, ((end + 1) - start)));\n checkAllReadResponses(mResponses, checksumExpected);\n }",
"@Test(timeout = 4000)\n public void test02() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchThirdPartySearchFile((String) null, \"]=J;d%[ad*</M&sOjF\", \"NA-c}Y;f\", \"dev-t=\");\n assertNull(fileInputStream0);\n }",
"private void searchParts(AbstractFile part1) {\r\n \t\tAbstractFile parent = part1.getParentSilently();\r\n \t\tif (parent == null) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tString ext = part1.getExtension();\r\n \t\tint firstIndex;\r\n \t\ttry {\r\n \t\t\tfirstIndex = Integer.parseInt(ext);\r\n \t\t} catch (NumberFormatException e) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tString name = part1.getNameWithoutExtension();\r\n \t\tFilenameFilter startsFilter = new StartsFilenameFilter(name, false);\r\n \t\tAttributeFileFilter filesFilter = new AttributeFileFilter(AttributeFileFilter.FILE);\r\n \t\tEqualsFilenameFilter part1Filter = new EqualsFilenameFilter(part1.getName(), false);\r\n \t\tpart1Filter.setInverted(true);\r\n \t\tAndFileFilter filter = new AndFileFilter();\r\n \t\tfilter.addFileFilter(startsFilter);\r\n \t\tfilter.addFileFilter(filesFilter);\r\n \t\tfilter.addFileFilter(part1Filter);\r\n \t\ttry {\r\n \t\t\tAbstractFile[] otherParts = parent.ls(filter);\r\n \t\t\tfor (int i = 0; i < otherParts.length; i++) {\r\n \t\t\t\tString ext2 = otherParts[i].getExtension();\r\n \t\t\t\ttry {\r\n \t\t\t\t\tint partIdx = Integer.parseInt(ext2);\r\n \t\t\t\t\tif (partIdx > firstIndex)\r\n \t\t\t\t\t\tfiles.add(otherParts[i]);\r\n \t\t\t\t} catch (NumberFormatException e) {\r\n \t\t\t\t\t// nothing\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} catch (IOException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n\t\tsetFiles(files);\r\n \t}",
"public void setNumberOfAvailableFiles(int value) {\n this.numberOfAvailableFiles = value;\n }",
"private void findRecordings(){\n File[] files = new File(\"Concatenated/\").listFiles();\n _records.clear();\n _versionNum = 1;\n for (File file : files){\n if (file.isFile()){\n String nameOnFile = file.getName().substring(file.getName().lastIndexOf('_')+1,file.getName().lastIndexOf('.')).toUpperCase();\n if (nameOnFile.equals(_name.toUpperCase())){\n _records.add(file.getName());\n _versionNum++;\n }\n }\n }\n }",
"private void initializeFileArrays(){\n File downloadedFilesFolder = new File(MainActivity.DB_PATH);\n File[] files = downloadedFilesFolder.listFiles();\n System.out.println(\"*** \" + files.length + \" ***\");\n if(files != null){\n System.out.println(\"*** \" + files.length + \" ***\");\n for(File f : files){\n if(f != null){\n System.out.println(\"***\\n FILE FOUND - \" + f.getAbsolutePath()+\"\\nSIZE - \" +\n f.length() + \" BYTES \\n***\");\n fileNames.add(f.getName());\n fileSizes.add(f.length()+\"\");\n this.files.add(f);\n }\n }\n }\n }",
"@Test(timeout = 4000)\n public void test29() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile(\"bf\", \"}*]#rf}>keea3q+#\", (String) null);\n assertNull(fileInputStream0);\n }",
"@Test(dataProvider = \"goodInputVcfs\")\n public void testFsFiltering(final File input) throws Exception {\n final Set<String> fails = CollectionUtil.makeSet(\"rs13303033\", \"rs28548431\", \"rs2799066\");\n final File out = testFiltering(input, \".vcf.gz\", 0, 0, 0, 5.0d);\n final ListMap<String, String> filters = slurpFilters(out);\n Assert.assertEquals(sorted(filters.keySet()), sorted(fails), \"Failed sites did not match expected set of failed sites.\");\n }",
"public static void filter_old() throws IOException {\n\t\tHashSet<String> wikimid = new HashSet<String>();\r\n\t\t{\r\n\t\t\tDelimitedWriter dw = new DelimitedWriter(Main.file_mid2wid);\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbdump_2_len4);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tif (l[1].equals(\"/type/object/key\") && l[2].equals(\"/wikipedia/en_id\")) {\r\n\t\t\t\t\tdw.write(l[0], l[3]);\r\n\t\t\t\t\twikimid.add(l[0]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t\tdw.close();\r\n\t\t\tD.p(\"wiki id size is\", wikimid.size());\r\n\t\t}\r\n\t\tDelimitedWriter dw = new DelimitedWriter(Main.file_visible + \".filter\");\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible);\r\n\t\t\tString[] l;\r\n\t\t\tint count = 0, write = 0;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tcount++;\r\n\t\t\t\tif (count % 100000 == 0) {\r\n\t\t\t\t\tD.p(\"count vs write\", count, write);\r\n\t\t\t\t}\r\n\t\t\t\tString rel = l[2];\r\n\t\t\t\tif (rel.startsWith(\"/type\") || rel.startsWith(\"/user\") || rel.startsWith(\"/common\")\r\n\t\t\t\t\t\t|| rel.startsWith(\"/base\")) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (l[0].startsWith(\"s\") && !wikimid.contains(l[1])) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (l[0].startsWith(\"j\") && (!wikimid.contains(l[1]) || !wikimid.contains(l[3]))) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tdw.write(l);\r\n\t\t\t\twrite++;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tdw.close();\r\n\t\tSort.sort(Main.file_visible + \".filter\", Main.file_visible + \".filter.sbmid\", Main.dir,\r\n\t\t\t\tnew Comparator<String[]>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn arg0[1].compareTo(arg1[1]);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\tSort.sort(Main.file_visible + \".filter\", Main.file_visible + \".filter.sbmid2\", Main.dir,\r\n\t\t\t\tnew Comparator<String[]>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn arg0[3].compareTo(arg1[3]);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\tSort.sort(Main.file_visible + \".filter\", Main.file_visible + \".filter.sbrel\", Main.dir,\r\n\t\t\t\tnew Comparator<String[]>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic int compare(String[] arg0, String[] arg1) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\treturn arg0[2].compareTo(arg1[2]);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t}",
"@Test\n public void readFullFile() throws Exception {\n long checksumExpected = populateInputFile(((ReadHandlerTest.CHUNK_SIZE) * 10), 0, (((ReadHandlerTest.CHUNK_SIZE) * 10) - 1));\n mReadHandler.onNext(buildReadRequest(0, ((ReadHandlerTest.CHUNK_SIZE) * 10)));\n checkAllReadResponses(mResponses, checksumExpected);\n }",
"private void getBiometricFiles(Uin uinObject, List<DocumentsDTO> documents) {\n\t\tuinObject.getBiometrics().stream().forEach(bio -> {\n\t\t\tif (allowedBioAttributes.contains(bio.getBiometricFileType())) {\n\t\t\t\ttry {\n\t\t\t\t\tString fileName = BIOMETRICS + SLASH + bio.getBioFileId();\n\t\t\t\t\tLocalDateTime startTime = DateUtils.getUTCCurrentDateTime();\n\t\t\t\t\tbyte[] data = securityManager\n\t\t\t\t\t\t\t.decrypt(IOUtils.toByteArray(fsAdapter.getFile(uinObject.getUinHash(), fileName)));\n\t\t\t\t\tmosipLogger.debug(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES,\n\t\t\t\t\t\t\t\"time taken to get file in millis: \" + fileName + \" - \"\n\t\t\t\t\t\t\t\t\t+ Duration.between(startTime, DateUtils.getUTCCurrentDateTime()).toMillis() + \" \"\n\t\t\t\t\t\t\t\t\t+ \"Start time : \" + startTime + \" \" + \"end time : \"\n\t\t\t\t\t\t\t\t\t+ DateUtils.getUTCCurrentDateTime());\n\t\t\t\t\tif (Objects.nonNull(data)) {\n\t\t\t\t\t\tif (StringUtils.equals(bio.getBiometricFileHash(), securityManager.hash(data))) {\n\t\t\t\t\t\t\tdocuments.add(new DocumentsDTO(bio.getBiometricFileType(), CryptoUtil.encodeBase64(data)));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tmosipLogger.error(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES,\n\t\t\t\t\t\t\t\t\tIdRepoErrorConstants.DOCUMENT_HASH_MISMATCH.getErrorMessage());\n\t\t\t\t\t\t\tthrow new IdRepoAppException(IdRepoErrorConstants.DOCUMENT_HASH_MISMATCH);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (IdRepoAppException e) {\n\t\t\t\t\tmosipLogger.error(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES, e.getMessage());\n\t\t\t\t\tthrow new IdRepoAppUncheckedException(e.getErrorCode(), e.getErrorText(), e);\n\t\t\t\t} catch (FSAdapterException e) {\n\t\t\t\t\tmosipLogger.error(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES, e.getMessage());\n\t\t\t\t\tthrow new IdRepoAppUncheckedException(\n\t\t\t\t\t\t\te.getErrorCode().equals(HDFSAdapterErrorCode.FILE_NOT_FOUND_EXCEPTION.getErrorCode())\n\t\t\t\t\t\t\t\t\t? IdRepoErrorConstants.FILE_NOT_FOUND\n\t\t\t\t\t\t\t\t\t: IdRepoErrorConstants.FILE_STORAGE_ACCESS_ERROR,\n\t\t\t\t\t\t\te);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tmosipLogger.error(IdRepoSecurityManager.getUser(), ID_REPO_SERVICE_IMPL, GET_FILES, e.getMessage());\n\t\t\t\t\tthrow new IdRepoAppUncheckedException(IdRepoErrorConstants.FILE_STORAGE_ACCESS_ERROR, e);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public static List<FileInfo> searchFiles(ArrayList<Long> keywordIdList) {\n ArrayList<Long> finalIdList = new ArrayList<Long>();\n String email = Secured.getUser(ctx());\n List<FileEntry> entryIdList = FileEntry.find()\n .select(\"entryId\")\n .where()\n .eq(\"email\", email)\n .in(\"entryId\", keywordIdList)\n .findList();\n for (FileEntry entry : entryIdList) {\n finalIdList.add(entry.getEntryId());\n }\n System.out.println(\"finalIdList file---\" + finalIdList);\n List<FileInfo> fileList = FileInfo.find().select(\"file\").where().in(\"fileEntryId\", finalIdList).findList();\n return fileList;\n }",
"@Test\n public void allSize() throws Exception{\n fillFile();\n Assert.assertEquals(maxBlocks, rf.size());\n }",
"int insertSelective(FileSet record);",
"@Test(timeout = 4000)\n public void test28() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/NULL__Z?WOZ.XML\");\n byte[] byteArray0 = new byte[9];\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile((String) null, \"\", \"z?woZ\");\n assertEquals(9, fileInputStream0.available());\n }",
"@Test(timeout = 4000)\n public void test18() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_RYNHV)!DEYJP^3IL$.XML\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n File file0 = fileUtil0.getSimilarItems(\"RYnHv)!DEyJP^3il$\", \"\");\n assertEquals(\"/S_RYNHV)!DEYJP^3IL$.XML\", file0.toString());\n assertFalse(file0.isFile());\n assertNotNull(file0);\n }",
"private void waitForFilesToSettle(SequencingObject... filePairs) {\n\t\tSet<SequenceFile> files = null;\n\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (final InterruptedException e) {\n\n\t\t\t}\n\t\t\tfiles = Arrays.stream(filePairs)\n\t\t\t\t\t.map(p -> sequencingObjectService.read(p.getId()))\n\t\t\t\t\t.map(p -> p.getFiles())\n\t\t\t\t\t.flatMap(l -> l.stream())\n\t\t\t\t\t.collect(Collectors.toSet());\n\t\t} while (!files.stream().allMatch(f -> f.getFastQCAnalysis() != null));\n\t}",
"public List getFiles(HasMetricsFilter filter) {\n if (fileLookup == null) {\n buildFileLookupMap();\n }\n List<BaseFileInfo> result = newArrayList();\n for (BaseFileInfo fileInfo : fileLookup.values()) {\n if (filter.accept(fileInfo)) {\n result.add(fileInfo);\n }\n }\n return result;\n }",
"private void compareFirstPass() {\n this.oldFileNoMatch = new HashMap<String, SubsetElement>();\r\n Iterator<String> iter = this.oldFile.keySet().iterator();\r\n while (iter.hasNext()) {\r\n final String key = iter.next();\r\n if (!this.newFile.containsKey(key)) {\r\n final String newKey = this.oldFile.get(key).getSubsetCode()\r\n + this.oldFile.get(key).getConceptCode();\r\n this.oldFileNoMatch.put(newKey, this.oldFile.get(key));\r\n }\r\n }\r\n\r\n // Now repeat going the other way, pulling all new file no matches into\r\n // newFileNoMatch\r\n this.newFileNoMatch = new HashMap<String, SubsetElement>();\r\n iter = this.newFile.keySet().iterator();\r\n while (iter.hasNext()) {\r\n final String key = iter.next();\r\n if (!this.oldFile.containsKey(key)) {\r\n final String newKey = this.newFile.get(key).getSubsetCode()\r\n + this.newFile.get(key).getConceptCode();\r\n this.newFileNoMatch.put(newKey, this.newFile.get(key));\r\n }\r\n }\r\n\r\n // dump the initial large HashMaps to reclaim some memory\r\n this.oldFile = null;\r\n this.newFile = null;\r\n }",
"public JSONArray listFiles(Connection conn, File cond) throws Exception{\n this.result = new JSONArray();\n PreparedStatement ps = null;\n ResultSet rs = null;\n boolean fileID = false;\n String sql = \"SELECT F.FILE_ID, F.LOGICAL_FILE_NAME LFN, F.IS_FILE_VALID, F.DATASET_ID, F.BLOCK_ID, F.FILE_TYPE_ID, \"\n\t\t +\" F.CHECK_SUM, F.EVENT_COUNT, F.FILE_SIZE, F.BRANCH_HASH_ID, F.ADLER32, F.MD5, F.AUTO_CROSS_SECTION,\"\n\t\t + \" F.CREATION_DATE, F.CREATE_BY, F.LAST_MODIFICATION_DATE, F.LAST_MODIFIED_BY, \"\n\t\t + \" B.BLOCK_NAME, D.DATASET , FT.FILE_TYPE\"\n + \" FROM \" + schemaOwner + \"FILES F \"\n\t\t + \" JOIN \" + schemaOwner + \"FILE_TYPES FT ON FT.FILE_TYPE_ID = F.FILE_TYPE_ID \"\n + \" JOIN \" + schemaOwner + \"DATASETS D ON D.DATASET_ID = F.DATASET_ID \"\n\t\t + \" JOIN \" + schemaOwner + \"BLOCKS B ON B.BLOCK_ID = F.BLOCK_ID\"\n + \" WHERE \";\n\tif(cond.getFileID() != 0){ \n\t sql += \"F.FILE_ID = ? \";\n\t fileID =true;\n\t}\n\n else if ( cond.has(\"LOGICAL_FILE_NAME\")) { \n\t\tif (cond.getLogicalFileName() != null || cond.getLogicalFileName() != \"\"){\n\t \t\tif ( (cond.getLogicalFileName()).indexOf('%') != -1) sql += \" F.LOGICAL_FILE_NAME like ?\";\n\t \t\telse sql += \" F.LOGICAL_FILE_NAME = ?\";\n\t\t}\n\t}\n\telse if ( cond.has(\"DATASET_DO\")) { \n\t\tif( cond.getDatasetDO().getDataset() != null || cond.getDatasetDO().getDataset() != \"\") {\n \t\tif ( (cond.getDatasetDO().getDataset() ).indexOf('%') != -1) sql += \" D.DATASET like ?\";\n \t\telse sql += \" D.DATASET = ?\";\n \t}\n\t}\n\telse if ( cond.has(\"BLOCK_DO\")) {\n\t\tif ( cond.getBlockDO().getBlockName() != null || cond.getBlockDO().getBlockName() != \"\") {\n\t\t\tif ( (cond.getBlockDO().getBlockName()).indexOf('%') != -1) sql += \" B.BLOCK_NAME like ?\";\n\t\t\telse sql += \" B.BLOCK_NAME = ?\";\n\t\t}\n\t}\n else throw new DBSException(\"Input Data Error\", \"File name (LFN) or ID , or BLOCK Name, or DATASET have to be provided. \");\n\n ps = null;\n rs = null;\n try{\n ps = DBManagement.getStatement(conn, sql);\n //prepare statement index starting with 1, but JSONArray index starting with 0.\n\t if(fileID)ps.setInt(1, cond.getFileID());\n\t else if ( cond.has(\"LOGICAL_FILE_NAME\")) ps.setString(1, cond.getLogicalFileName());\n\t else if ( cond.has(\"DATASET_DO\")) ps.setString(1, cond.getDatasetDO().getDataset());\n\t else if ( cond.has(\"BLOCK_DO\")) ps.setString(1, cond.getBlockDO().getBlockName());\n\t //else ps.setString(1, cond.getLogicalFileName());\n //System.out.println(ps.toString());\n rs = ps.executeQuery();\n while(rs.next()){\n String lfn = rs.getString(\"LFN\");\n int fileId = rs.getInt(\"FILE_ID\");\n\t\tint isValid = rs.getInt(\"IS_FILE_VALID\");\n\t\tDataset ds = new Dataset(rs.getInt(\"DATASET_ID\"), rs.getString(\"DATASET\"));\n\t\tBlock bk = new Block(rs.getInt(\"BLOCK_ID\"), rs.getString(\"BLOCK_NAME\"));\n\t\tFileType ftype = new FileType(rs.getInt(\"FILE_TYPE_ID\"), rs.getString(\"FILE_TYPE\"));\n\t\tString cksum = rs.getString(\"CHECK_SUM\");\n\t\tint ecnt = rs.getInt(\"EVENT_COUNT\");\n\t\tint fsize = rs.getInt(\"FILE_SIZE\");\n\t\tBranchHash bh = new BranchHash (rs.getInt(\"BRANCH_HASH_ID\"));\n\t\tdouble xcr = rs.getDouble(\"AUTO_CROSS_SECTION\");\n\t\tString adl = rs.getString(\"ADLER32\");\n\t\tString md = rs.getString(\"MD5\");\n\t\tlong cDate = rs.getLong(\"CREATION_DATE\");\n\t\tString cBy = rs.getString(\"CREATE_BY\");\n\t\tlong lDate = rs.getLong(\"LAST_MODIFICATION_DATE\");\n\t\tString lBy = rs.getString(\"LAST_MODIFIED_BY\");\n \n\t\tthis.result.put(new File(fileId, lfn, isValid, ds, bk, ftype, cksum, ecnt, fsize, bh, \n adl, md, xcr, cDate, cBy, lDate, lBy));\n\t }\n }finally {\n if (rs != null) rs.close();\n if (ps != null) ps.close();\n }\n return this.result;\n }",
"private void scanDocuments()\n{\n document_counts = new HashMap<>();\n kgram_counts = new HashMap<>();\n for (File f : root_files) {\n addDocuments(f);\n }\n}",
"protected boolean checkLoad() {\n\t\treturn size <= maxThreshold;\n\t\t//return (size >= minThreshold || size <= minCapacity) && size <= maxThreshold;\n\t}",
"@Test(timeout = 4000)\n public void test15() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.getBrowseNodeFile(\"\", \"\", \"j<+3\");\n fileUtil0.downloadGenericSearchFile(\"\", \"An5`a`*.Ij*xzXGWlJ@\", \"plW6%,D \", \"plW6%,D \", \"\", \"j<+3\");\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/S_ML/WZON.XML\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n fileUtil0.fetchGenericSearchFile(\"d3\", \"d3\", \"d3\", \"d3\", \"d3\", \"d3\");\n fileUtil0.downloadThirdPartySearchFile(\"d3\", \"d3\", \"d3\", \"d3\");\n fileUtil0.downloadOneASINFile(\"plW6%,D \", \"An5`a`*.Ij*xzXGWlJ@\", \"plW6%,D \", \"\", \"An5`a`*.Ij*xzXGWlJ@\");\n fileUtil0.getSimilarItems(\"ML/wzOn\", \"ML/wzOn\");\n fileUtil0.isAgeGood((File) null);\n fileUtil0.downloadBrowseNodeFile(\"\", \"d3\", \"d3\", \"ML/wzOn\");\n Random.setNextRandom(1689);\n FileInputStream fileInputStream0 = fileUtil0.fetchSimilarItems(\"ML/wzOn\", \"\");\n assertNull(fileInputStream0);\n }",
"public void setAllowedFilesList(String aLLOWED) {\n\t\t\r\n\t}",
"@Test\n public void testGetFilesList() {\n System.out.println(\"getFilesList from existing folder with existing subfiles\");\n String entryPath = folder.toString()+fSeparator+\"Images\";\n FilesDao instance = new FilesDao();\n String[] expResult = new String[2];\n expResult[0] = \"testImg.jpg\";\n expResult[1] = \"testImg2.jpg\";\n String[] result;\n try{\n result = instance.getFilesList(entryPath);\n }catch(EntryException ex){\n result = null;\n }\n assertArrayEquals(expResult, result);\n }",
"public int getLogCollectionMaxFileSize();",
"public File searchIndex(String Key, int layerID) {\n\n ObjReturn obj = new ObjReturn();\n ObjReturn obj1 = new ObjReturn();\n String s=null;\n File f = null;\n obj = utility.search_entry(Key, layerID);\n boolean b = obj.timerType1;\n s = obj.getValue1();\n if(!(s==null)){\n if (!b) {\n updateIndex(Key, layerID);\n f = makeXML(Key, layerID, obj.getValue1(), obj.getTime1(), obj.getTotalCopies1(), obj.getCopyNum1(), obj.getTimerType1(), obj.getUserId(), obj.getTime(), obj.getcert());\n IMbuffer.addToIMOutputBuffer(f);\n\n } else {\n f = makeXML(Key, layerID, obj.getValue1(), obj.getTime1(), obj.getTotalCopies1(), obj.getCopyNum1(), obj.getTimerType1(), obj.getUserId(), obj.getTime(), obj.getcert());\n IMbuffer.addToIMOutputBuffer(f);\n\n } \n }\n else {\n System.out.println(Key);\n obj1 = utility.search_entryinpurge(Key);\n System.out.println(obj1.key1);\n utility.add_entry(obj1.getLayerid(),Key , obj1.getValue1(), obj1.getTime1(), obj1.getTotalCopies1(), obj1.getCopyNum1(), obj1.getTimerType1(), obj1.getUserId(), obj1.getTime(), obj1.getcert());\n\n\n }\n \n \n /* if (!b) {\n updateIndex(Key, layerID);\n f = makeXML(Key, layerID, obj.getValue1(), obj.getTime1(), obj.getTotalCopies1(), obj.getCopyNum1(), obj.getTimerType1(), obj.getUserId(), obj.getTime(), obj.getcert());\n IMbuffer.addToIMOutputBuffer(f);\n\n } else {\n f = makeXML(Key, layerID, obj.getValue1(), obj.getTime1(), obj.getTotalCopies1(), obj.getCopyNum1(), obj.getTimerType1(), obj.getUserId(), obj.getTime(), obj.getcert());\n IMbuffer.addToIMOutputBuffer(f);\n\n }\n\n if (s.equals(\"null\")) {\n System.out.println(\"hiiii\");\n obj1 = utility.search_entryinpurge(Key);\n utility.add_entry(obj1.getLayerid(), obj1.getKey1(), obj1.getValue1(), obj1.getTime1(), obj1.getTotalCopies1(), obj1.getCopyNum1(), obj1.getTimerType1(), obj1.getUserId(), obj1.getTime(), obj1.getcert());\n\n }*/\n return f;\n\n }",
"@Test(timeout = 4000)\n public void test06() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n byte[] byteArray0 = new byte[6];\n byteArray0[0] = (byte)0;\n byteArray0[1] = (byte)14;\n byteArray0[2] = (byte) (-98);\n byteArray0[3] = (byte) (-14);\n byteArray0[4] = (byte)29;\n byteArray0[5] = (byte)82;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n assertFalse(fBCachedFetcher0.isBeforeFirst());\n \n fBCachedFetcher0.beforeFirst();\n boolean boolean0 = fBCachedFetcher0.first();\n assertEquals(0, fBCachedFetcher0.getRowNum());\n assertFalse(boolean0);\n }",
"@Test\n public void test1() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:bag{(u,v)}, b, c);\" +\n \"B = FOREACH A GENERATE $0, b;\" +\n \"C = FILTER B BY \" + COUNT.class.getName() +\"($0) > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator fe1 = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator filter = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n Operator fe2 = newLogicalPlan.getSuccessors( filter ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n }",
"@Test\n public void fileReadLock_minLength() throws Exception {\n String filePath = RestAssured.given()\n .contentType(ContentType.BINARY)\n .body(new byte[] {})\n .post(\"/file/create/{name}\", FileRoutes.READ_LOCK_IN)\n .then()\n .statusCode(201)\n .extract()\n .body()\n .asString();\n\n String fileName = Paths.get(filePath).getFileName().toString();\n\n Thread.sleep(10_000L);\n\n // Read the file that should not be there (.done folder)\n RestAssured\n .get(\"/file/get/{folder}/{name}\", FileRoutes.READ_LOCK_IN + \"/.done\", fileName)\n .then()\n .statusCode(204);\n\n // Read the file that should not be there (output folder)\n RestAssured\n .get(\"/file/get/{folder}/{name}\", FileRoutes.READ_LOCK_OUT, fileName)\n .then()\n .statusCode(204);\n\n // Read the file that should be there (input folder)\n RestAssured\n .get(\"/file/get/{folder}/{name}\", FileRoutes.READ_LOCK_IN, fileName)\n .then()\n .statusCode(200);\n }",
"public CommonFileQuery limit(Integer rows) {\n this.rows = rows;\n return this;\n }",
"@Test\n public void testFindNMatches() {\n List<Path> files = new ArrayList<>();\n files.add(new File(String.join(File.separator, \"src\", \"test\", \"resources\"),\n \"logviewer-search-context-tests.log.test\").toPath());\n files.add(new File(String.join(File.separator, \"src\", \"test\", \"resources\"),\n \"logviewer-search-context-tests.log.gz\").toPath());\n\n final LogviewerLogSearchHandler handler = getSearchHandler();\n\n final List<Map<String, Object>> matches1 = handler.findNMatches(files, 20, 0, 0, \"needle\").getMatches();\n final List<Map<String, Object>> matches2 = handler.findNMatches(files, 20, 0, 126, \"needle\").getMatches();\n final List<Map<String, Object>> matches3 = handler.findNMatches(files, 20, 1, 0, \"needle\").getMatches();\n\n assertEquals(2, matches1.size());\n assertEquals(4, ((List) matches1.get(0).get(\"matches\")).size());\n assertEquals(4, ((List) matches1.get(1).get(\"matches\")).size());\n assertEquals(String.join(File.separator, \"test\", \"resources\", \"logviewer-search-context-tests.log.test\"), matches1.get(0).get(\"fileName\"));\n assertEquals(String.join(File.separator, \"test\", \"resources\", \"logviewer-search-context-tests.log.gz\"), matches1.get(1).get(\"fileName\"));\n\n assertEquals(2, ((List) matches2.get(0).get(\"matches\")).size());\n assertEquals(4, ((List) matches2.get(1).get(\"matches\")).size());\n\n assertEquals(1, matches3.size());\n assertEquals(4, ((List) matches3.get(0).get(\"matches\")).size());\n }",
"public JSONArray listBaredFiles(Connection conn, File cond) throws Exception{\n this.result = new JSONArray();\n PreparedStatement ps = null;\n ResultSet rs = null;\n boolean fileID = false;\n String sql = \"SELECT F.FILE_ID, F.LOGICAL_FILE_NAME LFN, F.IS_FILE_VALID, F.DATASET_ID, F.BLOCK_ID, F.FILE_TYPE_ID, \"\n\t\t +\" F.CHECK_SUM, F.EVENT_COUNT, F.FILE_SIZE, F.BRANCH_HASH_ID, F.ADLER32, F.MD5, F.AUTO_CROSS_SECTION,\"\n\t\t + \" F.CREATION_DATE, F.CREATE_BY, F.LAST_MODIFICATION_DATE, F.LAST_MODIFIED_BY \"\n + \" FROM \" + schemaOwner + \"FILES F \"\n + \" WHERE \";\n\tif(cond.getFileID() != 0){ \n\t sql += \"F.FILE_ID = ? \";\n\t fileID =true;\n\t}\n else if (cond.getLogicalFileName() != null || cond.getLogicalFileName() != \"\"){\n\t if ( (cond.getLogicalFileName()).indexOf('%') != -1) sql += \" F.LOGICAL_FILE_NAME like ?\";\n\t else sql += \" F.LOGICAL_FILE_NAME = ?\";\n\t}\n else throw new DBSException(\"Input Data Error\", \"File name (LFN) or ID have to be provided. \");\n\n ps = null;\n rs = null;\n try{\n ps = DBManagement.getStatement(conn, sql);\n //prepare statement index starting with 1, but JSONArray index starting with 0.\n\t if(fileID)ps.setInt(1, cond.getFileID());\n\t else ps.setString(1, cond.getLogicalFileName());\n //System.out.println(ps.toString());\n rs = ps.executeQuery();\n while(rs.next()){\n String lfn = rs.getString(\"LFN\");\n int fileId = rs.getInt(\"FILE_ID\");\n\t\tint isValid = rs.getInt(\"IS_FILE_VALID\");\n\t\tString cksum = rs.getString(\"CHECK_SUM\");\n\t\tint ecnt = rs.getInt(\"EVENT_COUNT\");\n\t\tint fsize = rs.getInt(\"FILE_SIZE\");\n\t\tdouble xcr = rs.getDouble(\"AUTO_CROSS_SECTION\");\n\t\tString adl = rs.getString(\"ADLER32\");\n\t\tString md = rs.getString(\"MD5\");\n\t\tlong cDate = rs.getLong(\"CREATION_DATE\");\n\t\tString cBy = rs.getString(\"CREATE_BY\");\n\t\tlong lDate = rs.getLong(\"LAST_MODIFICATION_DATE\");\n\t\tString lBy = rs.getString(\"LAST_MODIFIED_BY\");\n \n\t\tthis.result.put(new File(fileId, lfn, isValid, cksum, ecnt, fsize,\n adl, md, xcr, cDate, cBy, lDate, lBy));\n\t }\n }finally {\n if (rs != null) rs.close();\n if (ps != null) ps.close();\n }\n return this.result;\n }",
"@Test(timeout = 4000)\n public void test05() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.getSimilarItems(\"B}\", \"B}\");\n fileUtil0.fetchThirdPartySearchFile(\"B}\", \"B}\", \"cacheLife\", \"B}\");\n fileUtil0.downloadBlendedSearchFile(\"=L@Nby{Di&?l|EZ}*\", \"a_\");\n fileUtil0.downloadKeywordSearchFile(\"B}\", \"net.kencochrane.a4j.util.LoadProperties\", \"x\\u0005tTVG|UMk^gu9G\", \"a_\");\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n fileUtil0.getAccessories(\"B}\", arrayList0);\n fileUtil0.fetchThirdPartySearchFile(\"cacheLife\", \"B}\", \"a_\", \"B}\");\n fileUtil0.downloadThirdPartySearchFile(\"U=S;l\", \"cacheLife\", \"-Z_,fpM\", \"B}\");\n fileUtil0.getAccessories(\"SimilaritySearch\", arrayList0);\n fileUtil0.fetchBlendedSearchFile(\"uGw{\", \"\");\n fileUtil0.downloadGenericSearchFile(\"net.kencochrane.a4j.util.LoadProperties\", \"onpA@0]L('o<c\", \"x\\u0005tTVG|UMk^gu9G\", \"\", \"cacheDir\", \"\");\n fileUtil0.downloadSimilaritesFile(\"-\", \"Fx t/ABA $rQxMfp{z\", \"6gl>oYZ}.(oH|s96@\");\n fileUtil0.downloadThirdPartySearchFile(\"=L@Nby{Di&?l|EZ}*\", \"-\", \"SimilaritySearch\", \"\");\n File file0 = fileUtil0.downloadBlendedSearchFile(\"\", \"-Z_,fpM\");\n assertNull(file0);\n }",
"@Test\n public void test3() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:(u,v), b, c);\" +\n \"B = FOREACH A GENERATE $0, b;\" +\n \"C = FILTER B BY 8 > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator filter = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n Operator fe1 = newLogicalPlan.getSuccessors( filter ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator fe2 = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n }"
] | [
"0.54224145",
"0.54161114",
"0.53242946",
"0.5318241",
"0.53175384",
"0.5314818",
"0.5292967",
"0.51910794",
"0.515874",
"0.51539546",
"0.51509094",
"0.5098165",
"0.5062704",
"0.50601375",
"0.50526905",
"0.50282747",
"0.49676174",
"0.49155194",
"0.4887374",
"0.48807684",
"0.48709625",
"0.4865514",
"0.48643464",
"0.48452917",
"0.48426905",
"0.48306513",
"0.48271114",
"0.48236218",
"0.48208827",
"0.4795354",
"0.47808483",
"0.4780381",
"0.47790194",
"0.47695795",
"0.47629294",
"0.4755893",
"0.47457615",
"0.47410345",
"0.47278497",
"0.4721101",
"0.47166142",
"0.47088197",
"0.47074053",
"0.4696368",
"0.46916825",
"0.4687019",
"0.46814793",
"0.46692792",
"0.46654755",
"0.46624225",
"0.46610183",
"0.46596715",
"0.4652524",
"0.46443412",
"0.46441588",
"0.4638509",
"0.46354413",
"0.46338454",
"0.46306974",
"0.46248218",
"0.46240497",
"0.46219525",
"0.46210083",
"0.4619803",
"0.46177343",
"0.46108437",
"0.4608008",
"0.46026352",
"0.4596081",
"0.45909652",
"0.4588349",
"0.45839036",
"0.457064",
"0.4569",
"0.45678228",
"0.45458224",
"0.4541707",
"0.45409742",
"0.45303112",
"0.45301393",
"0.45250598",
"0.4525018",
"0.45216206",
"0.45169368",
"0.45161492",
"0.4515663",
"0.45156178",
"0.45105517",
"0.4508916",
"0.45084047",
"0.4505973",
"0.4504764",
"0.44995627",
"0.44865718",
"0.44864014",
"0.4478211",
"0.44671583",
"0.4467017",
"0.4464917",
"0.4463879"
] | 0.63699734 | 0 |
Verify the compaction that includes several entire stripes. | private void verifyWholeStripesCompaction(StripeCompactionPolicy policy,
StripeInformationProvider si, int from, int to, Boolean dropDeletes, Integer count, Long size,
boolean needsCompaction) throws IOException {
verifyCompaction(policy, si, getAllFiles(si, from, to), dropDeletes, count, size,
si.getStartRow(from), si.getEndRow(to), needsCompaction);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testSingleStripeCompaction() throws Exception {\n Configuration conf = HBaseConfiguration.create();\n // Test depends on this not being set to pass. Default breaks test. TODO: Revisit.\n conf.unset(\"hbase.hstore.compaction.min.size\");\n conf.setFloat(CompactionConfiguration.HBASE_HSTORE_COMPACTION_RATIO_KEY, 1.0F);\n conf.setInt(StripeStoreConfig.MIN_FILES_KEY, 3);\n conf.setInt(StripeStoreConfig.MAX_FILES_KEY, 4);\n conf.setLong(StripeStoreConfig.SIZE_TO_SPLIT_KEY, 1000); // make sure the are no splits\n StoreConfigInformation sci = mock(StoreConfigInformation.class);\n when(sci.getRegionInfo()).thenReturn(RegionInfoBuilder.FIRST_META_REGIONINFO);\n StripeStoreConfig ssc = new StripeStoreConfig(conf, sci);\n StripeCompactionPolicy policy = new StripeCompactionPolicy(conf, sci, ssc) {\n @Override\n public StripeCompactionRequest selectCompaction(StripeInformationProvider si,\n List<HStoreFile> filesCompacting, boolean isOffpeak) throws IOException {\n if (!filesCompacting.isEmpty()) {\n return null;\n }\n return selectSingleStripeCompaction(si, false, false, isOffpeak);\n }\n\n @Override\n public boolean needsCompactions(StripeInformationProvider si,\n List<HStoreFile> filesCompacting) {\n if (!filesCompacting.isEmpty()) {\n return false;\n }\n return needsSingleStripeCompaction(si);\n }\n };\n\n // No compaction due to min files or ratio\n StripeInformationProvider si =\n createStripesWithSizes(0, 0, new Long[] { 2L }, new Long[] { 3L, 3L }, new Long[] { 5L, 1L });\n verifyNoCompaction(policy, si);\n // No compaction due to min files or ratio - will report needed, but not do any.\n si = createStripesWithSizes(0, 0, new Long[] { 2L }, new Long[] { 3L, 3L },\n new Long[] { 5L, 1L, 1L });\n assertNull(policy.selectCompaction(si, al(), false));\n assertTrue(policy.needsCompactions(si, al()));\n // One stripe has possible compaction\n si = createStripesWithSizes(0, 0, new Long[] { 2L }, new Long[] { 3L, 3L },\n new Long[] { 5L, 4L, 3L });\n verifySingleStripeCompaction(policy, si, 2, null);\n // Several stripes have possible compactions; choose best quality (removes most files)\n si = createStripesWithSizes(0, 0, new Long[] { 3L, 2L, 2L }, new Long[] { 2L, 2L, 1L },\n new Long[] { 3L, 2L, 2L, 1L });\n verifySingleStripeCompaction(policy, si, 2, null);\n si = createStripesWithSizes(0, 0, new Long[] { 5L }, new Long[] { 3L, 2L, 2L, 1L },\n new Long[] { 3L, 2L, 2L });\n verifySingleStripeCompaction(policy, si, 1, null);\n // Or with smallest files, if the count is the same\n si = createStripesWithSizes(0, 0, new Long[] { 3L, 3L, 3L }, new Long[] { 3L, 1L, 2L },\n new Long[] { 3L, 2L, 2L });\n verifySingleStripeCompaction(policy, si, 1, null);\n // Verify max count is respected.\n si = createStripesWithSizes(0, 0, new Long[] { 5L }, new Long[] { 5L, 4L, 4L, 4L, 4L });\n List<HStoreFile> sfs = si.getStripes().get(1).subList(1, 5);\n verifyCompaction(policy, si, sfs, null, 1, null, si.getStartRow(1), si.getEndRow(1), true);\n // Verify ratio is applied.\n si = createStripesWithSizes(0, 0, new Long[] { 5L }, new Long[] { 50L, 4L, 4L, 4L, 4L });\n sfs = si.getStripes().get(1).subList(1, 5);\n verifyCompaction(policy, si, sfs, null, 1, null, si.getStartRow(1), si.getEndRow(1), true);\n }",
"@Test\n public void testWithParallelCompaction() throws Exception {\n assertNull(createPolicy(HBaseConfiguration.create())\n .selectCompaction(mock(StripeInformationProvider.class), al(createFile()), false));\n }",
"private void checkDiffScanResults(KuduScanner scanner,\n int numExpectedMutations,\n int numExpectedDeletes) throws KuduException {\n int numMutations = 0;\n int numDeletes = 0;\n while (scanner.hasMoreRows()) {\n for (RowResult rowResult : scanner.nextRows()) {\n numMutations++;\n if (rowResult.isDeleted()) {\n numDeletes++;\n }\n }\n }\n assertEquals(numExpectedMutations, numMutations);\n assertEquals(numExpectedDeletes, numDeletes);\n }",
"private boolean checkDeletion() {\n/* 4471 */ if (this.creatures == null || this.creatures.size() == 0)\n/* */ {\n/* 4473 */ if (this.vitems == null || this.vitems.isEmpty())\n/* */ {\n/* 4475 */ if (this.walls == null || this.walls.size() == 0)\n/* */ {\n/* 4477 */ if (this.structure == null)\n/* */ {\n/* 4479 */ if (this.fences == null)\n/* */ {\n/* 4481 */ if (this.doors == null || this.doors.size() == 0)\n/* */ {\n/* 4483 */ if (this.effects == null || this.effects.size() == 0)\n/* */ {\n/* 4485 */ if (this.floors == null || this.floors.size() == 0)\n/* */ {\n/* 4487 */ if (this.mineDoors == null || this.mineDoors.size() == 0) {\n/* */ \n/* 4489 */ this.zone.removeTile(this);\n/* 4490 */ return true;\n/* */ } \n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* 4500 */ return false;\n/* */ }",
"@Test\n public void testSelectL0Compaction() throws Exception {\n Configuration conf = HBaseConfiguration.create();\n conf.setInt(StripeStoreConfig.MIN_FILES_L0_KEY, 4);\n StripeCompactionPolicy policy = createPolicy(conf);\n StripeCompactionPolicy.StripeInformationProvider si = createStripesWithSizes(10, 10L,\n new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L }, new Long[] { 3L, 2L, 2L });\n StripeCompactionPolicy.StripeCompactionRequest cr = policy.selectCompaction(si, al(), false);\n assertNotNull(cr);\n assertEquals(10, cr.getRequest().getFiles().size());\n verifyCollectionsEqual(si.getLevel0Files(), cr.getRequest().getFiles());\n\n // test select partial L0 files when size of L0 files > HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY\n conf.setLong(HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY, 100L);\n policy = createPolicy(conf);\n si = createStripesWithSizes(5, 50L, new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L },\n new Long[] { 3L, 2L, 2L });\n cr = policy.selectCompaction(si, al(), false);\n assertNotNull(cr);\n assertEquals(2, cr.getRequest().getFiles().size());\n verifyCollectionsEqual(si.getLevel0Files().subList(0, 2), cr.getRequest().getFiles());\n\n // test select partial L0 files when count of L0 files > MAX_FILES_KEY\n conf.setInt(MAX_FILES_KEY, 6);\n conf.setLong(HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY, 1000L);\n policy = createPolicy(conf);\n si = createStripesWithSizes(10, 10L, new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L },\n new Long[] { 3L, 2L, 2L });\n cr = policy.selectCompaction(si, al(), false);\n assertNotNull(cr);\n assertEquals(6, cr.getRequest().getFiles().size());\n verifyCollectionsEqual(si.getLevel0Files().subList(0, 6), cr.getRequest().getFiles());\n }",
"private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }",
"protected void buildCompactionCandidatesForAvailableDiskSpace(final Set<SSTableReader> fullyExpiredSSTables)\n {\n if(!cfs.isCompactionDiskSpaceCheckEnabled() && compactionType == OperationType.COMPACTION)\n {\n logger.info(\"Compaction space check is disabled\");\n return; // try to compact all SSTables\n }\n\n final Set<SSTableReader> nonExpiredSSTables = Sets.difference(transaction.originals(), fullyExpiredSSTables);\n CompactionStrategy strategy = cfs.getCompactionStrategy();\n int sstablesRemoved = 0;\n\n while(!nonExpiredSSTables.isEmpty())\n {\n // Only consider write size of non expired SSTables\n long expectedWriteSize = cfs.getExpectedCompactedFileSize(nonExpiredSSTables, compactionType);\n long estimatedSSTables = Math.max(1, expectedWriteSize / strategy.getMaxSSTableBytes());\n\n if(cfs.getDirectories().hasAvailableDiskSpace(estimatedSSTables, expectedWriteSize))\n break;\n\n if (!reduceScopeForLimitedSpace(nonExpiredSSTables, expectedWriteSize))\n {\n // we end up here if we can't take any more sstables out of the compaction.\n // usually means we've run out of disk space\n\n // but we can still compact expired SSTables\n if(partialCompactionsAcceptable() && fullyExpiredSSTables.size() > 0 )\n {\n // sanity check to make sure we compact only fully expired SSTables.\n assert transaction.originals().equals(fullyExpiredSSTables);\n break;\n }\n\n String msg = String.format(\"Not enough space for compaction, estimated sstables = %d, expected write size = %d\", estimatedSSTables, expectedWriteSize);\n logger.warn(msg);\n CompactionManager.instance.incrementAborted();\n throw new RuntimeException(msg);\n }\n\n sstablesRemoved++;\n logger.warn(\"Not enough space for compaction, {}MB estimated. Reducing scope.\",\n (float) expectedWriteSize / 1024 / 1024);\n }\n\n if(sstablesRemoved > 0)\n {\n CompactionManager.instance.incrementCompactionsReduced();\n CompactionManager.instance.incrementSstablesDropppedFromCompactions(sstablesRemoved);\n }\n\n }",
"public void validate_remainingItem_ShoppingCart() {\n System.out.println(\"List of remaining items ===>> \" + listOfShoppingCardItem);\n System.out.println(\"List of Deleted items =====>> \" + listOfDeletedItemNameShoppingCart);\n Assert.assertTrue(!(listOfShoppingCardItem.containsAll(listOfDeletedItemNameShoppingCart)));\n }",
"public boolean hasFlush(ArrayList<Card>cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tfor(int i = 0; i < 4 ; i++) {\r\n\t\t\tif(cards.get(i).getSuit() != cards.get(i+1).getSuit()) {\r\n\t\t\t\treturn false; \r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true; \r\n\t}",
"static boolean isFlush(ArrayList<Card> c)\n {\n Suit currentSuit = c.get(0).getSuit();\n \n for(int x = 1 ; x < Hand.HAND_LENGTH ; x++)\n {\n if(c.get(x).getSuit() != currentSuit)\n {\n return false;\n }\n }\n \n return true;\n }",
"public static boolean hasFlush(Card[] cards) {\n\t\tint counter = 0;\n\t\tfor(int i = 1; i< cards.length; i++){\n\t\t\tif(cards[0].getSuit() == cards[i].getSuit()){\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\tif(counter==4){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"protected void checkSize()\n {\n // check if pruning is required\n if (m_cCurUnits > m_cMaxUnits)\n {\n synchronized (this)\n {\n // recheck so that only one thread prunes\n if (m_cCurUnits > m_cMaxUnits)\n {\n prune();\n }\n }\n }\n }",
"private boolean isValidConnectors() {\n\n\t\tint countBoardCardInConnectors = 0;\n\n\t\tfor (CardModel cardModel : boardModel.getCards()) {\n\t\t\tif (connectors.contains(cardModel)) {\n\t\t\t\tcountBoardCardInConnectors++;\n\t\t\t}\n\t\t}\n\n\t\treturn (countBoardCardInConnectors == 2);\n\t}",
"private void generateSSTables(ICardinality cardinality, long numEntries, Token minToken, Token maxToken, String reason, boolean checkForCompaction) throws InterruptedException\n {\n // The theoretical sstable size that is being mocked\n long sstableSize = numEntries * valueSize;\n IPartitioner partitioner = minToken.getPartitioner();\n\n int shards = strategy.getController().getNumShards(valueSize * numEntries / minToken.size(maxToken));\n ShardTracker boundaries = strategy.getShardManager().boundaries(shards);\n\n int numSStables = 0;\n boundaries.advanceTo(minToken);\n while (true)\n {\n ++numSStables;\n if (boundaries.shardEnd() == null || maxToken.compareTo(boundaries.shardEnd()) <= 0)\n break;\n boundaries.advanceTo(boundaries.shardEnd().nextValidToken());\n }\n\n boundaries = strategy.getShardManager().boundaries(shards);\n\n List<SSTableReader> sstables = new ArrayList<>(numSStables);\n long keyCount = (long) Math.ceil(numEntries / (double) numSStables);\n long bytesOnDisk = valueSize * keyCount;\n long timestamp = System.currentTimeMillis();\n\n boundaries.advanceTo(minToken);\n while (true)\n {\n Range<Token> span = boundaries.shardSpan();\n Token firstToken = span.left.nextValidToken();\n if (minToken.compareTo(firstToken) > 0)\n firstToken = minToken;\n Token lastToken = partitioner.split(span.left, span.right, 1 - Math.scalb(1, -24)); // something that is < span.right\n if (maxToken.compareTo(lastToken) < 0)\n lastToken = maxToken;\n DecoratedKey first = new BufferDecoratedKey(firstToken, ByteBuffer.allocate(0));\n DecoratedKey last = new BufferDecoratedKey(lastToken, ByteBuffer.allocate(0));\n\n SSTableReader sstable = mockSSTable(0, bytesOnDisk, timestamp, 0, first, last, 0, true, null, 0);\n when(sstable.keyCardinalityEstimator()).thenReturn(cardinality);\n when(sstable.estimatedKeys()).thenReturn(keyCount);\n sstables.add(sstable);\n\n if (boundaries.shardEnd() == null || maxToken.compareTo(boundaries.shardEnd()) <= 0)\n break;\n boundaries.advanceTo(boundaries.shardEnd().nextValidToken());\n }\n\n counters.numWritten.addAndGet(numEntries);\n dataTracker.addInitialSSTablesWithoutUpdatingSize(sstables);\n logger.debug(\"Generated {} new sstables for {}, live: {}, compacting: {}, tot sstable size {}\",\n sstables.size(), reason, dataTracker.getLiveSSTables().size(), dataTracker.getCompacting().size(),\n sstableSize);\n\n if (checkForCompaction)\n maybeSubmitCompaction();\n }",
"@Test\n public void mixedSSTableFailure() throws Exception\n {\n cfs.getCompactionStrategyManager().disable();\n QueryProcessor.executeInternal(\"INSERT INTO ks.tbl (k, v) VALUES (1, 1);\");\n Util.flush(cfs);\n QueryProcessor.executeInternal(\"INSERT INTO ks.tbl (k, v) VALUES (2, 2);\");\n Util.flush(cfs);\n QueryProcessor.executeInternal(\"INSERT INTO ks.tbl (k, v) VALUES (3, 3);\");\n Util.flush(cfs);\n QueryProcessor.executeInternal(\"INSERT INTO ks.tbl (k, v) VALUES (4, 4);\");\n Util.flush(cfs);\n\n List<SSTableReader> sstables = new ArrayList<>(cfs.getLiveSSTables());\n Assert.assertEquals(4, sstables.size());\n\n SSTableReader unrepaired = sstables.get(0);\n SSTableReader repaired = sstables.get(1);\n SSTableReader pending1 = sstables.get(2);\n SSTableReader pending2 = sstables.get(3);\n\n mutateRepaired(repaired, FBUtilities.nowInSeconds(), ActiveRepairService.NO_PENDING_REPAIR, false);\n mutateRepaired(pending1, UNREPAIRED_SSTABLE, nextTimeUUID(), false);\n mutateRepaired(pending2, UNREPAIRED_SSTABLE, nextTimeUUID(), false);\n\n LifecycleTransaction txn = null;\n List<SSTableReader> toCompact = new ArrayList<>(sstables);\n for (int i=0; i<sstables.size(); i++)\n {\n try\n {\n txn = cfs.getTracker().tryModify(sstables, OperationType.COMPACTION);\n Assert.assertNotNull(txn);\n CompactionTask task = new CompactionTask(cfs, txn, 0);\n Assert.fail(\"Expected IllegalArgumentException\");\n }\n catch (IllegalArgumentException e)\n {\n // expected\n }\n finally\n {\n if (txn != null)\n txn.abort();\n }\n Collections.rotate(toCompact, 1);\n }\n }",
"public Boolean isValidCountWildCard() {\r\n\t\tint count = 0;\r\n\t\tfor (RiskCardModel card : lstTradedCards) {\r\n\t\t\tif (card.card_type.equals(\"WILD\")) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (count > 1 ? false : true);\r\n\t}",
"public void checkLines() {\n int cont2 = 0;\n int cont3, cont4;\n int casillasVacias;\n int vInicial, vFinal;\n\n for(cont3=20; cont3>0; cont3--) {\n vInicial = cont3*12 + 1;\n vFinal = vInicial + 10;\n casillasVacias = 10;\n\n //Bucle para todas las casillas de una fila\n for(cont4=vInicial; cont4<vFinal; cont4++) {\n if(colMatrix[cont4]) casillasVacias--;\n }\n\n if(casillasVacias == 0) {\n completeLines[cont2] = cont3;\n cont2++;\n }\n }\n removeLines();\n }",
"public void checkConsistency(List inconsistencies);",
"boolean hasAlreadFoldCard();",
"private void checkCompletedPieces() {\n\t\tif ((mainloop_loop_count %MAINLOOP_ONE_SECOND_INTERVAL) !=0)\n\t\t\treturn;\n\n\t\t//for every piece\n\t\tfor (int i = 0; i <_nbPieces; i++) {\n\t\t\tfinal DiskManagerPiece dmPiece =dm_pieces[i];\n\t\t\t//if piece is completly written, not already checking, and not Done\n\t\t\tif (dmPiece.isNeedsCheck())\n\t\t\t{\n\t\t\t\t//check the piece from the disk\n\t\t\t\tdmPiece.setChecking();\n\n\t\t\t\tDiskManagerCheckRequest req = \n\t\t\t\t\tdisk_mgr.createCheckRequest(\n\t\t\t\t\t\t\ti, new Integer(CHECK_REASON_DOWNLOADED));\n\n\t\t\t\treq.setAdHoc( false );\n\n\t\t\t\tdisk_mgr.enqueueCheckRequest( req, this );\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected void runMayThrow() throws Exception\n {\n // The collection of sstables passed may be empty (but not null); even if\n // it is not empty, it may compact down to nothing if all rows are deleted.\n assert transaction != null;\n\n if (transaction.originals().isEmpty())\n return;\n\n if (DatabaseDescriptor.isSnapshotBeforeCompaction())\n cfs.snapshotWithoutMemtable(System.currentTimeMillis() + \"-compact-\" + cfs.name);\n\n try (CompactionController controller = getCompactionController(transaction.originals());\n CompactionOperation operation = new CompactionOperation(controller))\n {\n operation.execute();\n }\n }",
"public void verifyBugerList()\n\t{\n\t\t\n\t}",
"private static boolean flush(ArrayList<CardSuit> suits) {\n //this for loop traverse the suits in order to check if there\n // are two cards of different suits\n for (int i = 1; i < suits.size(); i++) {\n if (suits.get(i) != suits.get(i -1)){\n return false;\n }\n }\n return true;\n }",
"private boolean canRemoveTiles() {\n return this.mCurrentSpecs.size() > 8;\n }",
"private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }",
"private void verify(final Collection objects) {\n final HashSet originalIds = new HashSet();\n for (final Iterator i = objects.iterator(); i.hasNext();) {\n final ManagedObject mo = (ManagedObject) i.next();\n originalIds.add(mo.getID());\n }\n\n final Collection inMemoryIds = getAllObjectIDs();\n assertTrue(\"Wrong bits in memory were set\", originalIds.containsAll(inMemoryIds));\n\n // verify on disk object IDs\n final ObjectIDSet idSet = this.managedObjectPersistor.snapshotObjectIDs();\n assertTrue(\"Wrong object IDs on disk\", idSet.containsAll(inMemoryIds));\n assertTrue(\"Wrong object IDs on disk\", inMemoryIds.containsAll(idSet));\n }",
"public boolean hasQuads(ArrayList<Card>cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tint compare = cards.get(2).getValue();\r\n\t\tint counter = 0;\r\n\t\tfor(int i = 0; i < 5 ; i++) {\r\n\t\t\tif(cards.get(i).getValue() == compare) {\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (counter == 4);\r\n\t\t\r\n\t\t\r\n\t}",
"private boolean checkGap() { //Checks if any gap due to previously deleted resv\n\t\tif (numOfReservation == 0)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn !(rList.get(rList.size()-1).getResvNo() == numOfReservation);\n\t}",
"private static boolean needsConsolidation(final Cigar c) {\n if ( c.numCigarElements() <= 1 )\n return false; // fast path for empty or single cigar\n\n CigarOperator lastOp = null;\n for( final CigarElement cur : c.getCigarElements() ) {\n if ( cur.getLength() == 0 || lastOp == cur.getOperator() )\n return true;\n lastOp = cur.getOperator();\n }\n\n return false;\n }",
"@Test\n @SmallTest\n public void tesUiccCartdInfoSanity() {\n assertEquals(0, mUicccard.getNumApplications());\n assertNull(mUicccard.getCardState());\n assertNull(mUicccard.getUniversalPinState());\n assertNull(mUicccard.getOperatorBrandOverride());\n /* CarrierPrivilegeRule equals null, return true */\n assertTrue(mUicccard.areCarrierPriviligeRulesLoaded());\n for (IccCardApplicationStatus.AppType mAppType :\n IccCardApplicationStatus.AppType.values()) {\n assertFalse(mUicccard.isApplicationOnIcc(mAppType));\n }\n }",
"private boolean validaCompra() {\n\n List<Purchase> purchasesList = billingClient.queryPurchases(INAPP).getPurchasesList();\n if (purchasesList != null && !purchasesList.isEmpty()) {\n for (Purchase purchase : purchasesList) {\n if (purchase.getSku().equals(skuId)) {\n return true;\n }\n }\n }\n return false;\n\n }",
"private void verifyIndividualBatchColumns() {\n for (final String element : BATCH_COLUMNS) {\n Log.altVerify(true, lblBatchColumnName(element).exists(),\n \"Check that column '\" + element + \"' is exist\");\n }\n }",
"@Test\n\tpublic void testGetAllBranchCopies() throws SQLException {\n\t\tfinal List<BranchCopies> allBranchCopies = copiesDaoImpl\n\t\t\t\t.getAllBranchCopies(testBranch);\n\t\tassertTrue(\n\t\t\t\tallBranchCopies.contains(\n\t\t\t\t\t\tnew BranchCopies(testBook, testBranch, NUM_COPIES)),\n\t\t\t\t\"branch's records includes correct copy count for test book at test branch\");\n\t}",
"@Test\n public void testMajorCompactTask()\n {\n CompactionTasks compactionTasks = cfs.getCompactionStrategyManager().getMaximalTasks(Integer.MAX_VALUE, false, OperationType.MAJOR_COMPACTION);\n Assert.assertTrue(compactionTasks.stream().allMatch(task -> task.compactionType.equals(OperationType.MAJOR_COMPACTION)));\n }",
"@Test\n public void testGetAll() {\n List<Allocation> cc = allocationCollection.getAll();\n assertNotNull(cc);\n assertFalse(cc.isEmpty());\n }",
"@Test\n\tpublic void testGetAllCopies() throws SQLException {\n\t\tfinal List<BranchCopies> allCopies = copiesDaoImpl.getAllCopies();\n\t\tassertTrue(\n\t\t\t\tallCopies.stream().anyMatch(\n\t\t\t\t\t\tcopies -> Objects.equals(testBranch, copies.getBranch())),\n\t\t\t\t\"all-copies database includes records for test branch\");\n\t\tassertTrue(\n\t\t\t\tallCopies.stream().anyMatch(\n\t\t\t\t\t\tcopies -> Objects.equals(testBook, copies.getBook())),\n\t\t\t\t\"all-copies database includes record for test book\");\n\t\tassertTrue(\n\t\t\t\tallCopies.contains(\n\t\t\t\t\t\tnew BranchCopies(testBook, testBranch, NUM_COPIES)),\n\t\t\t\t\"all-copies database has right count for test book at test branch\");\n\t}",
"void checkConsistency() {\n for (String word : dictionary) {\n assertEquals(words.contains(word), trie.contains(word));\n }\n }",
"@Test\r\n public void testPlayer_getDumbStrategyCard_differentWinners() {\r\n player2 = new Player(\"\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n boolean differentLegalCardFound = false;\r\n Card firstDiscard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n for(int i = 0; i < 25; i++) {\r\n Card loopCard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n if(!loopCard.equals(firstDiscard)) {\r\n differentLegalCardFound = true;\r\n }\r\n }\r\n assertTrue(differentLegalCardFound);\r\n }",
"public Boolean isTradedCardSetValid() {\r\n\r\n\t\tif (lstTradedCards.size() == 3) {\r\n\r\n\t\t\tif (!isAWildCardSet()) {\r\n\t\t\t\t// If all the cards are same\r\n\t\t\t\tif (lstTradedCards.get(0).card_type.equals(lstTradedCards.get(1).card_type)\r\n\t\t\t\t\t\t&& lstTradedCards.get(1).card_type.equals(lstTradedCards.get(2).card_type)) {\r\n\t\t\t\t\tcardStatusLabel.setText(\"Success\");\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// all 3 are different\r\n\t\t\t\telse if (!lstTradedCards.get(0).card_type.equals(lstTradedCards.get(1).card_type)\r\n\t\t\t\t\t\t&& !lstTradedCards.get(1).card_type.equals(lstTradedCards.get(2).card_type)\r\n\t\t\t\t\t\t&& !lstTradedCards.get(0).card_type.equals(lstTradedCards.get(2).card_type)) {\r\n\t\t\t\t\tcardStatusLabel.setText(\"Success\");\r\n\t\t\t\t\tUtility.writeLog(\"card traded successfully\");\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (isValidCountWildCard()) {\r\n\t\t\t\t\tcardStatusLabel.setText(\"Success\");\r\n\t\t\t\t\tUtility.writeLog(\"card traded successfully\");\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcardStatusLabel.setText(\"Please select only/atleast three cards!\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcardStatusLabel.setText(\"Please select only/atleast three cards!\");\r\n\t\treturn false;\r\n\t}",
"private void verifyNoCompaction(StripeCompactionPolicy policy, StripeInformationProvider si)\n throws IOException {\n assertNull(policy.selectCompaction(si, al(), false));\n assertFalse(policy.needsCompactions(si, al()));\n }",
"void validateMapRebuild(int tableSize, boolean expectedFullsize, boolean trimCanHappen) {\n CorfuRuntime rt = getNewRuntime();\n try {\n PersistentCorfuTable<String, Long> localm2A = openTable(rt, streamNameA);\n PersistentCorfuTable<String, Long> localm2B = openTable(rt, streamNameB);\n for (int i = 0; i < localm2A.size(); i++) {\n assertThat(localm2A.get(String.valueOf(i))).isEqualTo(i);\n }\n for (int i = 0; i < localm2B.size(); i++) {\n assertThat(localm2B.get(String.valueOf(i))).isEqualTo(0L);\n }\n if (expectedFullsize) {\n assertThat(localm2A.size()).isEqualTo(tableSize);\n assertThat(localm2B.size()).isEqualTo(tableSize);\n }\n } catch (TrimmedException te) {\n if (!trimCanHappen) {\n // shouldn't happen\n te.printStackTrace();\n throw te;\n }\n } finally {\n rt.shutdown();\n }\n }",
"@Test\n @Ignore(\"KnownBug: ACCUMULO-3645 Fixed in Accumulo 1.7.0\")\n public void testInjectOnCompact_Empty() throws Exception {\n Connector conn = tester.getConnector();\n\n // create table, add table split, write data\n final String tableName = getUniqueNames(1)[0];\n SortedSet<Text> splitset = new TreeSet<>();\n splitset.add(new Text(\"f\"));\n TestUtil.createTestTable(conn, tableName, splitset);\n\n // expected data back\n Map<Key, Value> expect = new HashMap<>(HardListIterator.allEntriesToInject);\n // we will not read back the entry that has a column visibility because this is a compaction write and we don't have the credentials\n for (Iterator<Map.Entry<Key, Value>> iterator = expect.entrySet().iterator();\n iterator.hasNext();\n ) {\n if (iterator.next().getKey().getColumnVisibilityData().length() > 0)\n iterator.remove();\n }\n\n // attach InjectIterator, flush and compact. Compaction blocks.\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n StopWatch sw = new StopWatch();\n sw.start();\n conn.tableOperations().compact(tableName, null, null, Collections.singletonList(itset), true, true);\n sw.stop();\n log.debug(\"compaction took \" + sw.getTime() + \" ms\");\n\n // read back both tablets in parallel\n BatchScanner scan = conn.createBatchScanner(tableName, Authorizations.EMPTY, 2);\n// Key startKey = new Key(new Text(\"d\"), cf, cq);\n Range rng = new Range();\n scan.setRanges(Collections.singleton(rng));\n log.debug(\"Results of scan on table \" + tableName + ':');\n Map<Key, Value> actual = new TreeMap<>(TestUtil.COMPARE_KEY_TO_COLQ); // only compare row, colF, colQ\n for (Map.Entry<Key, Value> entry : scan) {\n Key k = entry.getKey();\n Value v = entry.getValue();\n log.debug(k + \" \" + v);\n Assert.assertFalse(\"Duplicate entry found: \" + k, actual.containsKey(k));\n actual.put(k, v);\n }\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"private void verifyStatistics()\n throws SQLException {\n IndexStatsUtil stats = new IndexStatsUtil(getConnection(), 5000);\n IdxStats[] myStats = stats.getStatsTable(TAB, 2);\n for (int i=0; i < myStats.length; i++) {\n IdxStats s = myStats[i];\n assertEquals(_100K, s.rows);\n switch (s.lcols) {\n case 1:\n assertEquals(10, s.card);\n break;\n case 2:\n assertEquals(_100K, s.card);\n break;\n default:\n fail(\"unexpected number of leading columns: \" + s.lcols);\n }\n }\n }",
"public boolean isValid() {\n //valid melds must have 3+ tile\n if (tiles.size() < 3) {\n //System.out.println(\"fail 1\");\n return false;\n }\n if (tiles.get(0).getColour() == tiles.get(1).getColour() &&\n\t\t\ttiles.get(0).getValue() != tiles.get(1).getValue()) { //test a run\n\t\t\tif (this.size() > 13) {\n //System.out.println(\"fail 2\");\n return false;\n }\n for (int i=1; i<tiles.size(); i++) {\n if (tiles.get(i).getColour() != tiles.get(0).getColour()) { //make sure all are same colour\n //System.out.println(\"fail 3\");\n return false;\n }\n if (tiles.get(i).getValue() != (tiles.get(0).getValue() + i)) { //make sure all values make a run\n //System.out.println(\"fail 4\");\n return false;\n }\n }\n } else { //test a set\n Set<Character> colours = new HashSet<>();\n for (int i=0; i<tiles.size(); i++) {\n if (tiles.get(i).getValue() != tiles.get(0).getValue()) { //all are same value\n //System.out.println(\"fail 5\");\n\t\t\t\t\treturn false;\n }\n\n if (colours.contains(tiles.get(i).getColour()) && tiles.get(i).getColour() != 'J') { //check for duplicate colours\n //System.out.println(\"fail 6\");\n\t\t\t\t\treturn false;\n } else {\n\t\t\t\t\tcolours.add(tiles.get(i).getColour()); //keep track of all the colours this set has\n }\n }\n if (this.size() > 4) { //only possible if there are 5 cards, including a joker\n //System.out.println(\"fail 7\");\n\t\t\t\treturn false;\n }\n }\n\n return true; \n }",
"@Test\n public void testReconcileMixed()\n {\n IncrementCounterClock leftClock;\n IncrementCounterClock rightClock;\n\n Column left;\n Column right;\n Column reconciled;\n\n List<IClock> clocks;\n\n // normal + delete: normal has higher timestamp\n leftClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(44L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(3L),\n FBUtilities.toByteArray(1), FBUtilities.toByteArray(128L),\n FBUtilities.toByteArray(9), FBUtilities.toByteArray(62L),\n FBUtilities.toByteArray(5), FBUtilities.toByteArray(32L)\n ));\n left = new Column(\n \"x\".getBytes(),\n \"live\".getBytes(),\n leftClock);\n\n rightClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(1L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(0L)\n ));\n right = new DeletedColumn(\n \"x\".getBytes(),\n ByteBuffer.allocate(4).putInt(124).array(), // localDeleteTime secs\n rightClock);\n\n reconciled = reconciler.reconcile(left, right);\n\n assert FBUtilities.compareByteArrays(\n ((IncrementCounterClock)leftClock).context(),\n ((IncrementCounterClock)reconciled.clock()).context()\n ) == 0;\n\n assert FBUtilities.compareByteArrays(\n \"live\".getBytes(),\n reconciled.value()\n ) == 0;\n\n assert reconciled.isMarkedForDelete() == false;\n \n // normal + delete: delete has higher timestamp\n leftClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(4L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(3L),\n FBUtilities.toByteArray(1), FBUtilities.toByteArray(128L),\n FBUtilities.toByteArray(9), FBUtilities.toByteArray(62L),\n FBUtilities.toByteArray(5), FBUtilities.toByteArray(32L)\n ));\n left = new Column(\n \"x\".getBytes(),\n \"live\".getBytes(),\n leftClock);\n\n rightClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(100L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(0L)\n ));\n right = new DeletedColumn(\n \"x\".getBytes(),\n ByteBuffer.allocate(4).putInt(139).array(), // localDeleteTime secs\n rightClock);\n\n reconciled = reconciler.reconcile(left, right);\n\n assert FBUtilities.compareByteArrays(\n ((IncrementCounterClock)rightClock).context(),\n ((IncrementCounterClock)reconciled.clock()).context()\n ) == 0;\n\n assert FBUtilities.compareByteArrays(\n ByteBuffer.allocate(4).putInt(139).array(),\n reconciled.value()\n ) == 0;\n\n assert reconciled.isMarkedForDelete() == true;\n\n // delete + normal: delete has higher timestamp\n leftClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(0L), FBUtilities.toByteArray(100L)\n ));\n left = new DeletedColumn(\n \"x\".getBytes(),\n ByteBuffer.allocate(4).putInt(139).array(), // localDeleteTime secs\n leftClock);\n\n rightClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(4L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(3L),\n FBUtilities.toByteArray(1), FBUtilities.toByteArray(128L),\n FBUtilities.toByteArray(9), FBUtilities.toByteArray(62L),\n FBUtilities.toByteArray(5), FBUtilities.toByteArray(32L)\n ));\n right = new Column(\n \"x\".getBytes(),\n \"live\".getBytes(),\n rightClock);\n\n reconciled = reconciler.reconcile(left, right);\n\n assert FBUtilities.compareByteArrays(\n ((IncrementCounterClock)leftClock).context(),\n ((IncrementCounterClock)reconciled.clock()).context()\n ) == 0;\n\n assert FBUtilities.compareByteArrays(\n ByteBuffer.allocate(4).putInt(139).array(),\n reconciled.value()\n ) == 0;\n\n assert reconciled.isMarkedForDelete() == true;\n\n // delete + normal: normal has higher timestamp\n leftClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(1L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(0L)\n ));\n left = new DeletedColumn(\n \"x\".getBytes(),\n ByteBuffer.allocate(4).putInt(124).array(), // localDeleteTime secs\n leftClock);\n\n rightClock = new IncrementCounterClock(Util.concatByteArrays(\n FBUtilities.toByteArray(44L),\n FBUtilities.toByteArray(0L),\n FBUtilities.getLocalAddress().getAddress(), FBUtilities.toByteArray(3L),\n FBUtilities.toByteArray(1), FBUtilities.toByteArray(128L),\n FBUtilities.toByteArray(9), FBUtilities.toByteArray(62L),\n FBUtilities.toByteArray(5), FBUtilities.toByteArray(32L)\n ));\n right = new Column(\n \"x\".getBytes(),\n \"live\".getBytes(),\n rightClock);\n\n reconciled = reconciler.reconcile(left, right);\n\n assert FBUtilities.compareByteArrays(\n ((IncrementCounterClock)rightClock).context(),\n ((IncrementCounterClock)reconciled.clock()).context()\n ) == 0;\n\n assert FBUtilities.compareByteArrays(\n \"live\".getBytes(),\n reconciled.value()\n ) == 0;\n\n assert reconciled.isMarkedForDelete() == false;\n }",
"private void checkCapacity() {\n\t\tif (size.get() >= region.getCapacity()) {\n\t\t\tsynchronized (cleanUpThread) {\n\t\t\t\tcleanUpThread.notify();\n\t\t\t}\n\t\t}\n\t}",
"private void checkForCrashes(Set<Drone> droneSet){\n\t\t//first check if the drones have crashed with the ground\n\t\tcheckForGroundCollisions(droneSet);\n\t\t//then if they have collided with each other\n\t\tcheckForDroneCollisions(droneSet);\n\n\t}",
"@Test\n public void testMixedDeletes() throws Exception {\n List<WALEntry> entries = new ArrayList<>(3);\n List<Cell> cells = new ArrayList<>();\n for (int i = 0; i < 3; i++) {\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, i, Put, cells));\n }\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells.iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n entries = new ArrayList(3);\n cells = new ArrayList();\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, 0, DeleteColumn, cells));\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, 1, DeleteFamily, cells));\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, 2, DeleteColumn, cells));\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells.iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n Scan scan = new Scan();\n ResultScanner scanRes = TestReplicationSink.table1.getScanner(scan);\n Assert.assertEquals(0, scanRes.next(3).length);\n }",
"protected boolean checkConcurrency(DNode cutoff, DNode corr,\n\t\t\tDNode[] cutoff_cut, DNode[] corr_cut) {\n\t\tSet<Integer> cutoffSet = new HashSet<Integer>();\n\t\tSet<Integer> corrSet = new HashSet<Integer>();\n\n\t\tint i = 0;\n\t\tfor (i = 0; i < cutoff_cut.length; i++)\n\t\t\tcutoffSet.add(cutoff_cut[i].globalId);\n\t\tfor (i = 0; i < corr_cut.length; i++)\n\t\t\tcorrSet.add(corr_cut[i].globalId);\n\t\tfor (i = 0; i < cutoff.post.length; i++)\n\t\t\tcutoffSet.remove(cutoff.post[i].globalId);\n\t\tfor (i = 0; i < corr.post.length; i++)\n\t\t\tcorrSet.remove(corr.post[i].globalId);\n\n\t\tif (cutoffSet.size() != corrSet.size())\n\t\t\treturn false;\n\t\tfor (Integer n : cutoffSet) {\n\t\t\tif (!corrSet.contains(n))\n\t\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"@Test\n public void fsckMetricsInconsistentFwdNoDupes() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 3});\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(3, errors);\n }",
"public boolean isFlush() {\n Set<Suit> vari = new TreeSet<Suit>();\n for (Card c : cards) {\n \tvari.add(c.getSuit());\n }\n return(vari.size() == 1);\n }",
"private boolean isBalanceIntegrity(final CustStmtRecord custStmtRecord) {\n\t\treturn !(custStmtRecord.getStartBalance().add(custStmtRecord.getMutation()) \n\t\t\t\t).equals(custStmtRecord.getEndBalance());\n\t}",
"private boolean isChoseFine(){\n if(freeSpaces.size()!=2 & freeSpaces.size()!=3){ //if the number of chosen spaces is not 3 or 2, that means it can't be good.\n return false;\n }\n else if(freeSpaces.size()==2){ //if there are 2.\n if(freeSpaces.elementAt(0).place.distance(freeSpaces.elementAt(1).place)==1)\n return true;\n else //if the distance between the spaces isn't 1, that means it can't be two suite spaces.\n return false;\n }\n else{ //if there are 3.\n //get the all 3 elements.\n int aX = freeSpaces.elementAt(0).place.x;\n int aY = freeSpaces.elementAt(0).place.y;\n int bX = freeSpaces.elementAt(1).place.x;\n int bY = freeSpaces.elementAt(1).place.y;\n int cX = freeSpaces.elementAt(2).place.x;\n int cY = freeSpaces.elementAt(2).place.y;\n if(aX==bX && bX==cX){ //if they are in the same column.\n int min = Math.min(aY, Math.min(bY, cY));\n int max = Math.max(aY, Math.max(bY, cY));\n return (max - min == 2); //if the distance between the max and the min is 2, that means they 3 suited.\n }\n else if(aY==bY && bY==cY){ //if they are in the same row.\n int min = Math.min(aX, Math.min(bX, cX));\n int max = Math.max(aX, Math.max(bX, cX));\n return (max - min == 2); //if the distance between the max and the min is 2, that means they 3 suited.\n }\n else //if they are in different rows and columns, so it isn't good.\n return false;\n }\n }",
"boolean testCounter(Tester t) {\n\t\treturn t.checkExpect(c1.get(), 0) // Test 1\r\n\t\t\t\t&& t.checkExpect(c2.get(), 2) // Test 2\r\n\t\t\t\t&& t.checkExpect(c1.get() == c1.get(), false) // Test 3\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), true) // Test 4\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), true) // Test 5\r\n\t\t\t\t&& t.checkExpect(c1.get() == c1.get(), false) // Test 6\r\n\t\t\t\t&& t.checkExpect(c2.get() == c1.get(), false); // Test 7\r\n\t}",
"private void isValidBuild(List<ICard> build) {\n // count the number of free open piles\n int numFreeOpen = 0;\n for (IPile<ICard> pile : this.open) {\n if (pile.getPile().isEmpty()) {\n numFreeOpen++;\n }\n }\n // count the number of empty cascade piles\n int numFreeCascade = 0;\n for (IPile<ICard> pile : this.cascade) {\n if (pile.getPile().isEmpty()) {\n numFreeCascade++;\n }\n }\n // check that there are enough open intermediate slots\n if (build.size() > ((numFreeOpen + 1) * (int) Math.pow(2, numFreeCascade))) {\n throw new IllegalArgumentException(\"Build is invalid\");\n }\n }",
"public synchronized boolean verifyDocCounts() {\n\t\tfinal int docCount = mInfo.getSegmentInfo().getDocCount();\n\t\t\n\t\tint count;\n\t\tif (mLiveDocs != null) {\n\t\t\tcount = 0;\n\t\t\tfor (int docID=0; docID < docCount; docID++) {\n\t\t\t\tif (mLiveDocs.get(docID)) \n\t\t\t\t\tcount ++;\n\t\t\t}\n\t\t} else {\n\t\t\tcount = docCount;\n\t\t}\n\n\t\tassert docCount - mInfo.getDelCount() - mPendingDeleteCount == count: \n\t\t\t\"info.docCount=\" + docCount + \" info.getDelCount()=\" + mInfo.getDelCount() + \n\t\t\t\" pendingDeleteCount=\" + mPendingDeleteCount + \" count=\" + count;\n\t\t\n\t\treturn true;\n\t}",
"private boolean checkComp() {\n\t\tfor (int i = 0; i < comp.length; i++) {\n\t\t\tfor (int j = 0; j < comp[i].length; j++) {\n\t\t\t\tif (comp[i][j] != answer[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private boolean checkMainDiagonal() {\n int diagonalSum = 0;\n for (int i = 0; i < dimensions; i++) {\n diagonalSum += square[i + dimensions * i];\n }\n\n return diagonalSum == magicConst;\n }",
"@Test\n public void testInjectOnCompact() throws Exception {\n Connector conn = tester.getConnector();\n\n // create table, add table split, write data\n final String tableName = getUniqueNames(1)[0];\n Map<Key, Value> input = new HashMap<>();\n input.put(new Key(\"aTablet1\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"kTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"zTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n SortedSet<Text> splitset = new TreeSet<>();\n splitset.add(new Text(\"f\"));\n TestUtil.createTestTable(conn, tableName, splitset, input);\n\n // expected data back\n Map<Key, Value> expect = new HashMap<>(input);\n expect.putAll(HardListIterator.allEntriesToInject);\n // we will not read back the entry that has a column visibility because this is a compaction write and we don't have the credentials\n for (Iterator<Map.Entry<Key, Value>> iterator = expect.entrySet().iterator();\n iterator.hasNext();\n ) {\n if (iterator.next().getKey().getColumnVisibilityData().length() > 0)\n iterator.remove();\n }\n\n // attach InjectIterator, flush and compact. Compaction blocks.\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n List<IteratorSetting> itlist = new ArrayList<>();\n itlist.add(itset);\n itset = new IteratorSetting(16, DebugIterator.class);\n itlist.add(itset);\n StopWatch sw = new StopWatch();\n sw.start();\n conn.tableOperations().compact(tableName, null, null, itlist, true, true);\n\n// CompactionConfig cc = new CompactionConfig()\n// .setCompactionStrategy(CompactionStrategyConfigUtil.DEFAULT_STRATEGY)\n// .setStartRow(null).setEndRow(null).setIterators(itlist)\n// .setFlush(true).setWait(true);\n// conn.tableOperations().compact(tableName, cc);\n\n sw.stop();\n log.debug(\"compaction took \" + sw.getTime() + \" ms\");\n\n // read back both tablets in parallel\n BatchScanner scan = conn.createBatchScanner(tableName, Authorizations.EMPTY, 2);\n// Key startKey = new Key(new Text(\"d\"), cf, cq);\n Range rng = new Range();\n scan.setRanges(Collections.singleton(rng));\n log.debug(\"Results of scan on table \" + tableName + ':');\n Map<Key, Value> actual = new TreeMap<>(TestUtil.COMPARE_KEY_TO_COLQ); // only compare row, colF, colQ\n for (Map.Entry<Key, Value> entry : scan) {\n Key k = entry.getKey();\n Value v = entry.getValue();\n log.debug(k + \" \" + v);\n Assert.assertFalse(\"Duplicate entry found: \" + k, actual.containsKey(k)); // passes because not scan-time iterator\n actual.put(k, v);\n }\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }",
"private boolean isSquareQuantityValid() {\n int blueSquares = 0;\n int yellowSquares = 0;\n int greenSquares = 0;\n int whiteSquares = 0;\n int orangeSquares = 0;\n int redSquares = 0;\n\n for (RubiksFace face : rubiksFaceList) {\n for (RubiksColor color : face.getRubiksColors()) {\n switch(color) {\n case RED:\n redSquares++;\n break;\n case GREEN:\n greenSquares++;\n break;\n case BLUE:\n blueSquares++;\n break;\n case YELLOW:\n yellowSquares++;\n break;\n case ORANGE:\n orangeSquares++;\n break;\n case WHITE:\n whiteSquares++;\n break;\n }\n }\n }\n\n System.out.println(\"BLUE: \" + blueSquares);\n System.out.println(\"YELLOW: \" + yellowSquares);\n System.out.println(\"GREEN: \" + greenSquares);\n System.out.println(\"WHITE: \" + whiteSquares);\n System.out.println(\"ORANGE: \" + orangeSquares);\n System.out.println(\"RED: \" + redSquares);\n\n return (blueSquares == 9 && yellowSquares == 9 && greenSquares == 9 && whiteSquares == 9 && orangeSquares == 9 && redSquares == 9);\n }",
"public boolean isCheckmate()\n {\n Game g = Game.getInstance();\n\n int sum = 0;\n\n for(Piece[] p1 : g.m_board.m_pieces)\n {\n for(Piece p2 : p1)\n {\n if(p2 != null)\n {\n if(p2.m_color == this.m_color)\n {\n sum += p2.getLegalMoves().size();\n }\n }\n }\n }\n\n if(sum == 0){ return true; } else { return false; }\n }",
"private void checkPartitions(Affinity testAff, Affinity aff) {\n for (ClusterNode n : nodes()) {\n checkEqualIntArray(testAff.allPartitions(n), aff.allPartitions(n));\n\n checkEqualIntArray(testAff.backupPartitions(n), aff.backupPartitions(n));\n\n checkEqualIntArray(testAff.primaryPartitions(n), aff.primaryPartitions(n));\n }\n }",
"boolean hasCompletePartition();",
"private Iterable<Segment> getCleanableSegments() {\n List<Segment> segments = new ArrayList<>();\n for (Segment segment : manager.segments()) {\n // Only allow compaction of segments that are full.\n if (segment.lastIndex() <= index() && segment.isFull()) {\n\n // Calculate the percentage of entries that have been marked for cleaning in the segment.\n double cleanPercentage = (segment.length() - segment.deleteCount()) / (double) segment.length();\n\n // If the percentage of entries marked for cleaning times the segment version meets the cleaning threshold,\n // add the segment to the segments list for cleaning.\n if (cleanPercentage * segment.descriptor().version() >= CLEAN_THRESHOLD) {\n segments.add(segment);\n }\n }\n }\n return segments;\n }",
"@Test\n\tpublic void TestDeal() {\n\t\tArrayList<Player> testPlayers = game.getPlayers();\n\t\tArrayList<Card> allCards = new ArrayList<Card>();\n\t\tSet<Card> allCardsSet = new HashSet<Card>();\n\t\tint handSize = testPlayers.get(0).getCards().size();\n\t\tboolean correctSize = true;\n\t\t\n\t\tfor(Player p : testPlayers) {\n\t\t\tallCards.addAll(p.getCards());\n\t\t\tif(Math.abs(p.getCards().size() - handSize) > 1)\n\t\t\t\tcorrectSize = false;\n\t\t}\n\t\tallCardsSet.addAll(allCards);\n\t\t\n\t\tAssert.assertEquals(correctSize, true);\n\t\tAssert.assertEquals(allCards.size(), 21);\n\t\tAssert.assertEquals(allCards.size(), allCardsSet.size());\n\t}",
"public static void check(\n final double[] correlationsDfe, final double[] correlationsCpu,\n final int numTimeseries, final int sizeTimeseries) {\n int failed = 0;\n\n int[] indicesStep = calculateIndicesStep(numTimeseries, sizeTimeseries);\n\n for (int i = 0; i < numTimeseries * (numTimeseries - 1) / 2; i++) {\n int index = calcIndex(indicesStep[2 * i], indicesStep[2 * i + 1]);\n if (correlationsDfe[index] != correlationsCpu[i]) {\n failed++;\n System.out.println(\"correlationCpu[\" + i + \"]\\t= \"\n + correlationsCpu[i]);\n System.out.println(\"correlationDfe[\" + index + \"]\\t= \"\n + correlationsDfe[index]);\n }\n }\n if (failed == 0) {\n System.out.println(\"Test passed!\");\n } else {\n System.out.println(\"Test failed \" + failed + \" times.\");\n System.exit(-1);\n }\n }",
"private boolean checkCollisions()\n {\n for (int i = 1; i < numFigs; i++)\n if (figures[0].collidedWith(figures[i]))\n return true;\n return false;\n }",
"@Test\n public void testColocationPartitionedRegionWithRedundancy() throws Throwable {\n\n // Create Cache in all VMs VM0,VM1,VM2,VM3\n createCacheInAllVms();\n\n redundancy = 1;\n localMaxmemory = 50;\n totalNumBuckets = 11;\n\n // Create Customer PartitionedRegion in All VMs\n regionName = CustomerPartitionedRegionName;\n colocatedWith = null;\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n // Create Customer PartitionedRegion in All VMs\n regionName = OrderPartitionedRegionName;\n colocatedWith = CustomerPartitionedRegionName;\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n // Create Customer PartitionedRegion in All VMs\n regionName = ShipmentPartitionedRegionName;\n colocatedWith = OrderPartitionedRegionName;\n isPartitionResolver = Boolean.TRUE;\n attributeObjects = new Object[] {regionName, redundancy, localMaxmemory, totalNumBuckets,\n colocatedWith, isPartitionResolver};\n createPartitionedRegion(attributeObjects);\n\n // Initial Validation for the number of data stores and number of profiles\n accessor.invoke(() -> PRColocationDUnitTest\n .validateBeforePutCustomerPartitionedRegion(CustomerPartitionedRegionName));\n\n // Put the customer 1-10 in CustomerPartitionedRegion\n accessor.invoke(\n () -> PRColocationDUnitTest.putCustomerPartitionedRegion(CustomerPartitionedRegionName));\n\n // Put the order 1-10 for each Customer in OrderPartitionedRegion\n accessor\n .invoke(() -> PRColocationDUnitTest.putOrderPartitionedRegion(OrderPartitionedRegionName));\n\n // Put the shipment 1-10 for each order in ShipmentPartitionedRegion\n accessor.invoke(\n () -> PRColocationDUnitTest.putShipmentPartitionedRegion(ShipmentPartitionedRegionName));\n\n // This is the importatnt check. Checks that the colocated Customer,Order\n // and Shipment are in the same VM\n accessor.invoke(() -> PRColocationDUnitTest.validateAfterPutPartitionedRegion(\n CustomerPartitionedRegionName, OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n\n // for VM0 DataStore check the number of buckets created and the size of\n // bucket for all partitionedRegion\n Integer totalBucketsInDataStore1 = dataStore1\n .invoke(() -> PRColocationDUnitTest.validateDataStore(CustomerPartitionedRegionName,\n OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n\n // for VM1 DataStore check the number of buckets created and the size of\n // bucket for all partitionedRegion\n Integer totalBucketsInDataStore2 = dataStore2\n .invoke(() -> PRColocationDUnitTest.validateDataStore(CustomerPartitionedRegionName,\n OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n\n // for VM3 Datastore check the number of buckets created and the size of\n // bucket for all partitionedRegion\n Integer totalBucketsInDataStore3 = dataStore3\n .invoke(() -> PRColocationDUnitTest.validateDataStore(CustomerPartitionedRegionName,\n OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n\n if (redundancy > 0) {\n // for VM0 DataStore check the number of buckets created and the size of\n // bucket for all partitionedRegion\n dataStore1.invoke(\n () -> PRColocationDUnitTest.validateDataStoreForRedundancy(CustomerPartitionedRegionName,\n OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n\n // for VM1 DataStore check the number of buckets created and the size of\n // bucket for all partitionedRegion\n dataStore2.invoke(\n () -> PRColocationDUnitTest.validateDataStoreForRedundancy(CustomerPartitionedRegionName,\n OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n\n // for VM3 Datastore check the number of buckets created and the size of\n // bucket for all partitionedRegion\n dataStore3.invoke(\n () -> PRColocationDUnitTest.validateDataStoreForRedundancy(CustomerPartitionedRegionName,\n OrderPartitionedRegionName, ShipmentPartitionedRegionName));\n }\n\n // Check the total number of buckets created in all three Vms are equalto 60\n totalNumBucketsInTest = totalBucketsInDataStore1\n + totalBucketsInDataStore2 + totalBucketsInDataStore3;\n assertEquals(totalNumBucketsInTest, 60);\n }",
"private List<CustStmtRecord> validateEndbalance (final List<CustStmtRecord> custStmtRecords) {\n\t\tlog.info(\"Entering {}.{}\", getClass().getName(), \"validateDuplicate()\");\n\t\tfinal List<CustStmtRecord> incorrectEndBalance = custStmtRecords\n\t\t\t\t.parallelStream()\n\t\t\t\t\t.filter(custStmtRecord -> isBalanceIntegrity(custStmtRecord))\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\t\t;\n\t\t\t\n\t\tlog.info(\"incorrectEndBalance {}\", incorrectEndBalance);\n\t\t\t\n\t\tlog.info(\"Exiting {}.{}\", getClass().getName(), \"validateDuplicate()\");\n\t\treturn incorrectEndBalance;\n\t}",
"public boolean canProtectPieces() {\r\n\t\treturn (cityCards.stream().anyMatch(c -> (c.isSmallGods() && !c.isDisabled())\r\n\t\t\t\t&& money >= PROTECTION_COST)); \r\n\t}",
"private void checkMineralCollisions() {\n\t\t//check collisions with silver\n\t\tint len = silverBlocks.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tSilver silver = silverBlocks.get(i);\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(silver.bounds, player.bounds)) {\n\t\t\t\t\tsilverComplete ++;\n\t\t\t\t\tsilverBlocks.remove(i);\n\t\t\t\t\tlen = silverBlocks.size();\n\t\t\t\t\tcash += 10;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\t\n\t\t//check collisions with gold\n\t\tlen = goldBlocks.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tGold gold = goldBlocks.get(i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(gold.bounds, player.bounds)) {\n\t\t\t\t\tgoldComplete ++;\n\t\t\t\t\tgoldBlocks.remove(i);\n\t\t\t\t\tlen = goldBlocks.size();\n\t\t\t\t\tcash += 50;\n\t\t\t\t} \n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\t\n\t\t//check collisions with diamonds\n\t\tlen = diamondBlocks.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tDiamond diamond = diamondBlocks.get(i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(diamond.bounds, player.bounds)) {\n\t\t\t\t\tdiamondComplete ++;\n\t\t\t\t\tdiamondBlocks.remove(i);\n\t\t\t\t\tlen = diamondBlocks.size();\n\t\t\t\t\tcash += 150;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"@Override\n\tpublic boolean canfitCompact() {\n\t\treturn false;\n\t}",
"private boolean journalRebuildRequired() {\n\t\tfinal int REDUNDANT_OP_COMPACT_THRESHOLD = 2000;\n\t\treturn redundantOpCount >= REDUNDANT_OP_COMPACT_THRESHOLD\n\t\t\t&& redundantOpCount >= lruEntries.size();\n\t}",
"private boolean validFullHouse() {\n int highestTwo, highestThree;\n highestTwo = highestThree = -1;\n for (Integer key : this.cardOccurrence.keySet()) {\n int value = this.cardOccurrence.get(key);\n if (value == 2 && key > highestTwo)\n highestTwo = key;\n else if (value == 3 && key > highestThree) {\n //If there exists a higher 3 count, the old 3 count might be bigger than the twoCount\n if(highestThree > highestTwo)\n highestTwo = highestThree;\n highestThree = key;\n }\n }\n if (highestTwo == -1 || highestThree == -1) {\n return false;\n }\n //FullHouse only possible with 2s and 3s\n\n ArrayList<String> validHand = new ArrayList<>();\n int twosCount, threesCount;\n twosCount = threesCount = 0;\n for(int i = 0; i < this.cards.size(); i ++) {\n Card c = this.cards.get(i);\n if(c.sameValue(highestTwo) && twosCount < 2){\n twosCount++;\n validHand.add(c.toString());\n }\n else if(c.sameValue(highestThree) && threesCount < 3) {\n threesCount++;\n validHand.add(c.toString());\n }\n }\n //If above conditional didn't trigger, must be valid FullHouse of some sort\n this.cardHand = new CardHand(validHand.toArray(new String[0]));\n return true;\n }",
"private boolean validStraight() {\n Collections.sort(this.cards, Card.COMPARE_BY_VALUE);\n ArrayList<String> validHand = new ArrayList<>();\n boolean isStraight = false;\n for (int i = 0; i < this.cards.size(); i++) {\n //Check 5 cards from i to i + 5\n int j = i;\n validHand.add(this.cards.get(i).toString());\n while(j < i + 4 && j < this.cards.size() - 1) {\n Card c1 = this.cards.get(j);\n Card c2 = this.cards.get(j + 1);\n if(c1.isConsecutive(c2))\n validHand.add(c2.toString());\n j++;\n }\n if(j == i + 4 && validHand.size() == 5) {\n this.cardHand = new CardHand(validHand.toArray(new String[0]));\n isStraight = true;\n }\n validHand.clear();\n }\n return isStraight;\n }",
"private boolean checkFinalPuzzle() throws Exception {\n for(int i = 0; i < puzzle.getColumns(); ++i) {\n var clues = puzzle.getColumnClue(i);\n var solver_col = searchBoard.getFilledGroups(i, TraversalType.COLUMN);\n if(clues.size() != solver_col.size()) {\n return false;\n }\n for(int j = 0; j < clues.size(); ++j) {\n if(!clues.get(j).equals(solver_col.get(j))) {\n return false;\n }\n }\n }\n for(int i = 0; i < puzzle.getRows(); ++i) {\n var clues = puzzle.getRowClue(i);\n var solver_row = searchBoard.getFilledGroups(i, TraversalType.ROW);\n if(clues.size() != solver_row.size()) {\n return false;\n }\n for(int j = 0; j < clues.size(); ++j) {\n if(!clues.get(j).equals(solver_row.get(j))) {\n return false;\n }\n }\n }\n return true;\n }",
"@Test\n\tpublic void RespondToFullStorage() {\n\t\ttry {\n\t\t\twhile (mac.checkoutStation.banknoteStorage.getCapacity() > mac.checkoutStation.banknoteStorage.getBanknoteCount()) {\n\t\t\t\tint val = mac.checkoutStation.banknoteStorage.getCapacity() - mac.checkoutStation.banknoteStorage.getBanknoteCount();\n\t\t\t\tmac.checkoutStation.banknoteStorage.accept(new Banknote(5, cur));\n\t\t\t\tif (val < mac.checkoutStation.banknoteStorage.getCapacity() - mac.checkoutStation.banknoteStorage.getBanknoteCount()) {\n\t\t\t\t\tfail(\"Loop may never terminate!\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Cannot deal with full storage\");\n\t\t}\n\t\tmac.checkoutStation.banknoteStorage.unload();\n\t}",
"boolean piecesContiguous(Side player) {\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n if (_pieces[i][j].side() == player) {\n boolean[][] traverse = new boolean[8][8];\n return getCount(player) == contiguousHelp(traverse, i,\n j, player);\n }\n }\n }\n\n }",
"private boolean runMultiSampleCase() {\n\t\tArrayList<Candidate> candidates = collectTrioCandidates();\n\n\t\t// Then, check the candidates for all trios around affected individuals.\n\t\tfor (Candidate c : candidates)\n\t\t\tif (isCompatibleWithTriosAroundAffected(c))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}",
"@VisibleForTesting\n void checkDatabaseDeletions(Set currentReplicaIds) {\n final String METHOD = \"checkDatabaseDeletions\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n Statement stmt = null;\n try {\n Set<String> replicaIdsToDelete = new LinkedHashSet<String>();\n stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_READ_ONLY);\n ResultSet rs = stmt.executeQuery(\"select distinct(replicaid)\"\n + \" from \" + roleTableName);\n while (rs.next()) {\n String replicaId = rs.getString(1);\n if (!currentReplicaIds.contains(replicaId)) {\n replicaIdsToDelete.add(replicaId);\n }\n }\n if (replicaIdsToDelete.size() > 0) {\n LOGGER.log(Level.FINE,\n \"Found role cache data for database(s) that are not in the \"\n + \"connector's crawl list any more: {0}\", replicaIdsToDelete);\n conn.setAutoCommit(false);\n try {\n for (String replicaId : replicaIdsToDelete) {\n deleteRolesForDatabase(replicaId);\n }\n conn.commit();\n } catch (SQLException e) {\n LOGGER.log(Level.WARNING,\n \"Failure deleting roles for database(s)\", e);\n conn.rollback();\n } finally {\n conn.setAutoCommit(true);\n }\n }\n } catch (SQLException e) {\n LOGGER.log(Level.WARNING, \"Database error\", e);\n } finally {\n Util.close(stmt);\n LOGGER.exiting(CLASS_NAME, METHOD);\n }\n }",
"private boolean isValidBuild(List<Card> build) {\n if ((build.size() == 0) || (build.size() == 1)) {\n return true;\n }\n for (int i = 1; i < build.size(); i++) {\n boolean result = (CardSuit.differentColors(build.get(i), build.get(i - 1))\n && (build.get(i).getValue().intVal == (build.get(i - 1).getValue().intVal - 1)));\n if (!result) {\n return false;\n }\n }\n return true;\n }",
"@Test\n\tpublic void testGetAllBookCopies() throws SQLException {\n\t\tfinal List<BranchCopies> allBookCopies = copiesDaoImpl.getAllBookCopies(testBook);\n\t\tassertTrue(\n\t\t\t\tallBookCopies.contains(\n\t\t\t\t\t\tnew BranchCopies(testBook, testBranch, NUM_COPIES)),\n\t\t\t\t\"branch's records includes correct copy count for test book at test branch\");\n\t}",
"static boolean isFullHouse(ArrayList<Card> c)\n {\n //Awkward way. If it's not five, we'll just not check at all.\n if(c.size() != 5)\n {\n return false;\n }\n \n boolean tripFound = false, pairFound = false;\n int firstRank = 0;\n \n //Check for triplet cards.\n for (int x = 0 ; x < c.size()-2 && tripFound == false ; x++)\n {\n Card card1 = c.get(x);\n Card card2 = c.get(x+1);\n Card card3 = c.get(x+2);\n if(card1.getRank() == card2.getRank() && card1.getRank() == card3.getRank())\n {\n tripFound = true;\n firstRank = card1.getRank();\n break;\n }\n }\n if(tripFound == false)\n {\n return false;\n }\n \n for (int x = 0 ; x < c.size()-1 ; x++)\n {\n Card card1 = c.get(x);\n Card card2 = c.get(x+1);\n \n //We found a pair after finding triplets. Mission success. Full House identified.\n if(card1.getRank() != firstRank && card1.getRank() == card2.getRank())\n {\n return true;\n }\n }\n \n return false;\n }",
"private void checkForDroneCollisions(Set<Drone> droneSet) {\n\t\t//then check if any drone is in a 5m vicinity of another\n\t\t//first cast the set to a list\n\t\tList<Drone> droneList = new ArrayList<>(droneSet);\n\t\t//create a list to store the crashed indices\n\t\tSet<Integer> crashedDroneIndices = new HashSet<>();\n\t\t//get the size of the list\n\t\tint listSize = droneList.size();\n\n\t\t//Outer loop, check every drone once\n\t\tfor(int i = 0; i != listSize; i++){\n\t\t\t//inner loop, only the following drones need to be checked, all the previous have already passed the outer loop\n\t\t\tfor(int j = i + 1; j < listSize; j++){\n\t\t\t\t//first get the positions of the drone\n\t\t\t\tVector pos1 = droneList.get(i).getPosition();\n\t\t\t\tVector pos2 = droneList.get(j).getPosition();\n\n\t\t\t\t//then get the distance between the two drones\n\t\t\t\tfloat distance = pos1.distanceBetween(pos2);\n\t\t\t\tif(distance <= CRASH_DISTANCE){\n\t\t\t\t\tcrashedDroneIndices.add(i);\n\t\t\t\t\tcrashedDroneIndices.add(j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//all the drones that have collided with eachother need to be removed\n\t\tfor(Integer droneIndex: crashedDroneIndices){\n\t\t\t//first get the drone\n\t\t\tDrone currDrone = droneList.get(droneIndex);\n\t\t\t//then remove it from the world\n\t\t\tthis.removeDrone(currDrone);\n\t\t\t//remove it from the drone set (for consistency and performance improvement)\n\t\t\tdroneSet.remove(currDrone);\n\t\t}\n\t}",
"private void verifyCoFactors(CyNetwork cyNetwork) {\n\t\t// First, find the Target Interaction: protein45.\n\t\tint targetNodeIndex = 0;\n\t\tRootGraph rootGraph = cyNetwork.getRootGraph();\n\t\tIterator nodeIterator = cyNetwork.nodesIterator();\n\n\t\twhile (nodeIterator.hasNext()) {\n\t\t\tCyNode node = (CyNode) nodeIterator.next();\n\t\t\tString uri = Cytoscape.getNodeAttributes()\n\t .getStringAttribute(node.getIdentifier(), MapBioPaxToCytoscape.BIOPAX_RDF_ID);\n\t\t\tif (uri.equals(\"smallMolecule99-Mg2+\")) {\n\t\t\t\ttargetNodeIndex = node.getRootGraphIndex();\n\t\t\t}\n\t\t}\n\n\t\t// Get All Edges Adjacent to this Node\n\t\tint[] edgeIndices = rootGraph.getAdjacentEdgeIndicesArray(targetNodeIndex, true, true, true);\n\n\t\t// There should only be two edges; one for controller, and\n\t\t// one for cofactor.\n\t\tassertEquals(2, edgeIndices.length);\n\t}",
"@Test\n public void collidableObjects() {\n radar.loop();\n assertTrue(radar.getObjectsSeenByRadar().stream().anyMatch(t -> t.getId().equals(\"roadsign_speed_40_1\")));\n assertFalse(radar.getObjectsSeenByRadar().stream().anyMatch(t -> t.getId().equals(\"parking_2\")));\n }",
"boolean piecesContiguous(Piece side) {\n int k;\n int l;\n sideAbbrev = side.abbrev();\n for (int i = 0; i < M; i++) {\n for (int j = 0; j < M; j++) {\n _visited[i][j] = false;\n }\n }\n contSum = 0;\n for (k = 0; k < M; k++) {\n for (l = 0; l < M; l++) {\n if (boardArr[k][l].abbrev().equals(sideAbbrev)) {\n return dfs(k, l) == totalCount(side);\n }\n }\n }\n return false;\n }",
"private final synchronized boolean m12565b() {\n return this.f10287a.getAll().isEmpty();\n }",
"boolean allocationSuccessful(@Nonnull Set<TCSResource<?>> resources);",
"static boolean isStraightFlush(ArrayList<Card> c)\n {\n return(isFlush(c) && isStraight(c));\n }",
"private boolean wellFormed() {\n\n\n\t\t\tGroup e = this;\n\n\t\t\tint i = 0;\n\t\t\tif(e.first == null && e.last == null && e.size == 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\n\t\t\tCard p = e.first;\n\t\t\tboolean check = false;\n\t\t\tif(e.first != null && e.last != null) {\n\t\t\t\tCard n = null;\n\t\t\t\tif(e.first.prev != null) return report(\"There is a loop\");\n\n\t\t\t\tfor(p = e.first; p.next != null; p = p.next) {\n\n\t\t\t\t\tn = p.next;\n\n\t\t\t\t\tif(n.prev != p) return report(\"p.next is null\");\n\t\t\t\t\tif(this != p.group) {\n\t\t\t\t\t\treturn report(\"this is not set to the group\");\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\n\t\t\t\tif(e.last.next != null) {\n\t\t\t\t\treturn report(\"Size is not equal to the amount of cards\");\n\t\t\t\t}\n\n\t\t\t\tfor(Card c = e.first; c.next != null; c = c.next) {\n\t\t\t\t\t++i;\n\t\t\t\t}\n\t\t\t\tif(i != this.size-1) {\n\t\t\t\t\treturn report(\"Size is not equal to the amount of cards\");\n\t\t\t\t}\n\t\t\t\tcheck = true;\n\t\t\t}\n\t\t\tif(check != true) {\n\t\t\t\tif(i != this.size) {\n\t\t\t\t\treturn report(\"Size is not equal to the amount of cards\");\n\t\t\t\t}\n\t\t\t\tif(e.first == null || e.last == null) {\n\t\t\t\t\treturn report(\"Error\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}",
"@Rollback\n @Test\n public void getAllCreditOperationsByCreditFamilyId() {\n expectedCollection.add(creditOperationFamilyExpected);\n\n //AssertUtils.assertCreditOperationsCollections(expectedCollection, actualCollection);\n }",
"public boolean hasStraightFlush(ArrayList<Card>cards) {\r\n\t\tif(hasFlush(cards) && hasStraight(cards)) {\r\n\t\t\treturn true;\r\n\t\t} \r\n\t\treturn false;\r\n\t\t\t\r\n\t}",
"boolean testRemoveTouchers(Tester t) {\n return t.checkExpect(this.los3.removeTouchers(this.los2), this.los3)\n && t.checkExpect(this.mt.removeTouchers(this.los2), this.mt)\n && t.checkExpect(this.los3.removeTouchers(this.mt), this.los3)\n && t.checkExpect(this.lob3.removeTouchers(this.lob2), this.lob3)\n && t.checkExpect(this.los4.removeTouchers(this.lob4),\n new ConsLoGamePiece(this.ship1, this.mt))\n && t.checkExpect(this.lob4.removeTouchers(this.los4),\n new ConsLoGamePiece(this.bullet1, this.mt));\n }",
"void testCommitClash(MasterTableJournal journal)\r\n throws TransactionException {\r\n // Very nasty search here...\r\n// int cost = entries() * journal.entries();\r\n// System.out.print(\" CLASH COST = \" + cost + \" \");\r\n\r\n for (int i = 0; i < entries(); ++i) {\r\n byte tc = getCommand(i);\r\n if (tc == 2) { // command - row remove\r\n int row_index = getRowIndex(i);\r\n// System.out.println(\"* \" + row_index);\r\n for (int n = 0; n < journal.entries(); ++n) {\r\n// System.out.print(\" \" + journal.getRowIndex(n));\r\n if (journal.getCommand(n) == 2 &&\r\n journal.getRowIndex(n) == row_index) {\r\n throw new TransactionException(\r\n TransactionException.ROW_REMOVE_CLASH,\r\n \"Concurrent Serializable Transaction Conflict(1): \" +\r\n \"Current row remove clash ( row: \" + row_index + \" )\");\r\n }\r\n }\r\n// System.out.println();\r\n }\r\n }\r\n }",
"public boolean checkCollection(Player player, PropertyCard card) {\n\t\tboolean almostComplete = false;\n\t\tfor(PropertyCard c: player.getCards()) {\n\t\t\tif(c.getTeam().equals(card.getTeam())) {\n\t\t\t\tif(countSameTeamCards(player, card) == card.getTeamSize()-1) {\n\t\t\t\t\talmostComplete = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn almostComplete;\n\t}",
"public synchronized boolean checkFileCompletion()\n/* */ {\n/* 49 */ int totalsize = 0;\n/* */ \n/* 51 */ for (FileSubContent subContent : this.downloadManager.getSUB_CONTENTS())\n/* */ {\n/* 53 */ if ((subContent != null) && (subContent.isIsDownloaded()) && (subContent.getContent().length == this.downloadManager.getSUB_SIZE()))\n/* */ {\n/* 55 */ totalsize++;\n/* */ }\n/* */ }\n/* */ \n/* 59 */ if (totalsize == this.downloadManager.getSUB_CONTENTS().size())\n/* */ {\n/* 61 */ System.out.println(\"FileDownloadChecker: got all of the subParts.\");\n/* 62 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 66 */ return false;\n/* */ }",
"protected boolean isValid(List<Card> deck) {\r\n //Assume true\r\n boolean isValid = true;\r\n\r\n if (deck == null) {\r\n return false;\r\n }\r\n\r\n for (int i = 0; i < deck.size(); i++) {\r\n for (int j = i + 1; j < deck.size(); j++) {\r\n for (int k = j + 1; k < deck.size(); k++) {\r\n if (deck.get(i).equals(deck.get(j)) && deck.get(i).equals(deck.get(k))) {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n\r\n //if deck is valid, return true\r\n if (deck.size() != 104) {\r\n return false;\r\n }\r\n return isValid;\r\n }",
"private static boolean isCornerTile(Tile t, List<Integer> uniqueHashes) {\n\t\tint unique = 0;\n\t\tif(uniqueHashes.contains(t.getTHash())){\n\t\t\tunique++;\n\t\t}if(uniqueHashes.contains(t.getRHash())){\n\t\t\tunique++;\n\t\t}if(uniqueHashes.contains(t.getBHash())){\n\t\t\tunique++;\n\t\t}if(uniqueHashes.contains(t.getLHash())){\n\t\t\tunique++;\n\t\t}\n\t\treturn unique == 2;\n\t}"
] | [
"0.71334565",
"0.6027082",
"0.5617527",
"0.531687",
"0.52902836",
"0.52840966",
"0.5265976",
"0.51924354",
"0.514248",
"0.51093584",
"0.50830084",
"0.50607365",
"0.5034328",
"0.50316334",
"0.5021051",
"0.5020048",
"0.5003825",
"0.49962607",
"0.49958315",
"0.4989651",
"0.4980957",
"0.49708244",
"0.49573153",
"0.49571264",
"0.49361044",
"0.49346048",
"0.4923001",
"0.4911849",
"0.49084687",
"0.49061394",
"0.49018466",
"0.48918054",
"0.48898017",
"0.4882566",
"0.48593462",
"0.48404866",
"0.48392478",
"0.48362046",
"0.48290092",
"0.48246828",
"0.48177996",
"0.48146215",
"0.4813584",
"0.4812422",
"0.48089278",
"0.48017895",
"0.47934377",
"0.4777884",
"0.47775292",
"0.47634822",
"0.4759877",
"0.47560403",
"0.4746719",
"0.47459674",
"0.47449976",
"0.47368747",
"0.47068322",
"0.47009104",
"0.46685132",
"0.46679467",
"0.46660283",
"0.46659735",
"0.46596688",
"0.46579665",
"0.46535525",
"0.46529883",
"0.46487316",
"0.46478862",
"0.46438912",
"0.46432453",
"0.46427116",
"0.46418798",
"0.46320355",
"0.46288547",
"0.4626673",
"0.46228343",
"0.4620976",
"0.46191794",
"0.46141303",
"0.46133018",
"0.46130317",
"0.46127045",
"0.46099946",
"0.46036497",
"0.46033067",
"0.45939058",
"0.45925513",
"0.45907077",
"0.45885384",
"0.45819116",
"0.4576658",
"0.45702147",
"0.45641047",
"0.4563636",
"0.4558857",
"0.4557044",
"0.45567515",
"0.45562238",
"0.45528272",
"0.45520437"
] | 0.6990818 | 1 |
Verify no compaction is needed or selected. | private void verifyNoCompaction(StripeCompactionPolicy policy, StripeInformationProvider si)
throws IOException {
assertNull(policy.selectCompaction(si, al(), false));
assertFalse(policy.needsCompactions(si, al()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testWithParallelCompaction() throws Exception {\n assertNull(createPolicy(HBaseConfiguration.create())\n .selectCompaction(mock(StripeInformationProvider.class), al(createFile()), false));\n }",
"@Test\n @SmallTest\n public void tesUiccCartdInfoSanity() {\n assertEquals(0, mUicccard.getNumApplications());\n assertNull(mUicccard.getCardState());\n assertNull(mUicccard.getUniversalPinState());\n assertNull(mUicccard.getOperatorBrandOverride());\n /* CarrierPrivilegeRule equals null, return true */\n assertTrue(mUicccard.areCarrierPriviligeRulesLoaded());\n for (IccCardApplicationStatus.AppType mAppType :\n IccCardApplicationStatus.AppType.values()) {\n assertFalse(mUicccard.isApplicationOnIcc(mAppType));\n }\n }",
"@Override\n protected void runMayThrow() throws Exception\n {\n // The collection of sstables passed may be empty (but not null); even if\n // it is not empty, it may compact down to nothing if all rows are deleted.\n assert transaction != null;\n\n if (transaction.originals().isEmpty())\n return;\n\n if (DatabaseDescriptor.isSnapshotBeforeCompaction())\n cfs.snapshotWithoutMemtable(System.currentTimeMillis() + \"-compact-\" + cfs.name);\n\n try (CompactionController controller = getCompactionController(transaction.originals());\n CompactionOperation operation = new CompactionOperation(controller))\n {\n operation.execute();\n }\n }",
"public void IsInUse() {\n\t\tSystem.out.println(\"Table being cleaned, cannot be used.\");\n\t}",
"@Test\n public void testMajorCompactTask()\n {\n CompactionTasks compactionTasks = cfs.getCompactionStrategyManager().getMaximalTasks(Integer.MAX_VALUE, false, OperationType.MAJOR_COMPACTION);\n Assert.assertTrue(compactionTasks.stream().allMatch(task -> task.compactionType.equals(OperationType.MAJOR_COMPACTION)));\n }",
"private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }",
"@Test\n public void testSingleStripeCompaction() throws Exception {\n Configuration conf = HBaseConfiguration.create();\n // Test depends on this not being set to pass. Default breaks test. TODO: Revisit.\n conf.unset(\"hbase.hstore.compaction.min.size\");\n conf.setFloat(CompactionConfiguration.HBASE_HSTORE_COMPACTION_RATIO_KEY, 1.0F);\n conf.setInt(StripeStoreConfig.MIN_FILES_KEY, 3);\n conf.setInt(StripeStoreConfig.MAX_FILES_KEY, 4);\n conf.setLong(StripeStoreConfig.SIZE_TO_SPLIT_KEY, 1000); // make sure the are no splits\n StoreConfigInformation sci = mock(StoreConfigInformation.class);\n when(sci.getRegionInfo()).thenReturn(RegionInfoBuilder.FIRST_META_REGIONINFO);\n StripeStoreConfig ssc = new StripeStoreConfig(conf, sci);\n StripeCompactionPolicy policy = new StripeCompactionPolicy(conf, sci, ssc) {\n @Override\n public StripeCompactionRequest selectCompaction(StripeInformationProvider si,\n List<HStoreFile> filesCompacting, boolean isOffpeak) throws IOException {\n if (!filesCompacting.isEmpty()) {\n return null;\n }\n return selectSingleStripeCompaction(si, false, false, isOffpeak);\n }\n\n @Override\n public boolean needsCompactions(StripeInformationProvider si,\n List<HStoreFile> filesCompacting) {\n if (!filesCompacting.isEmpty()) {\n return false;\n }\n return needsSingleStripeCompaction(si);\n }\n };\n\n // No compaction due to min files or ratio\n StripeInformationProvider si =\n createStripesWithSizes(0, 0, new Long[] { 2L }, new Long[] { 3L, 3L }, new Long[] { 5L, 1L });\n verifyNoCompaction(policy, si);\n // No compaction due to min files or ratio - will report needed, but not do any.\n si = createStripesWithSizes(0, 0, new Long[] { 2L }, new Long[] { 3L, 3L },\n new Long[] { 5L, 1L, 1L });\n assertNull(policy.selectCompaction(si, al(), false));\n assertTrue(policy.needsCompactions(si, al()));\n // One stripe has possible compaction\n si = createStripesWithSizes(0, 0, new Long[] { 2L }, new Long[] { 3L, 3L },\n new Long[] { 5L, 4L, 3L });\n verifySingleStripeCompaction(policy, si, 2, null);\n // Several stripes have possible compactions; choose best quality (removes most files)\n si = createStripesWithSizes(0, 0, new Long[] { 3L, 2L, 2L }, new Long[] { 2L, 2L, 1L },\n new Long[] { 3L, 2L, 2L, 1L });\n verifySingleStripeCompaction(policy, si, 2, null);\n si = createStripesWithSizes(0, 0, new Long[] { 5L }, new Long[] { 3L, 2L, 2L, 1L },\n new Long[] { 3L, 2L, 2L });\n verifySingleStripeCompaction(policy, si, 1, null);\n // Or with smallest files, if the count is the same\n si = createStripesWithSizes(0, 0, new Long[] { 3L, 3L, 3L }, new Long[] { 3L, 1L, 2L },\n new Long[] { 3L, 2L, 2L });\n verifySingleStripeCompaction(policy, si, 1, null);\n // Verify max count is respected.\n si = createStripesWithSizes(0, 0, new Long[] { 5L }, new Long[] { 5L, 4L, 4L, 4L, 4L });\n List<HStoreFile> sfs = si.getStripes().get(1).subList(1, 5);\n verifyCompaction(policy, si, sfs, null, 1, null, si.getStartRow(1), si.getEndRow(1), true);\n // Verify ratio is applied.\n si = createStripesWithSizes(0, 0, new Long[] { 5L }, new Long[] { 50L, 4L, 4L, 4L, 4L });\n sfs = si.getStripes().get(1).subList(1, 5);\n verifyCompaction(policy, si, sfs, null, 1, null, si.getStartRow(1), si.getEndRow(1), true);\n }",
"public void DoesNeedCleaning() {\n\t\tSystem.out.println(\"Table is being cleaned right now.\");\n\t}",
"private void validateBeforeMerge()\n {\n Assert.assertTrue(!isProductInfo() || type == TTransactionType.simple);\n }",
"final void checkForComodification() {\n\t}",
"protected void checkSize()\n {\n // check if pruning is required\n if (m_cCurUnits > m_cMaxUnits)\n {\n synchronized (this)\n {\n // recheck so that only one thread prunes\n if (m_cCurUnits > m_cMaxUnits)\n {\n prune();\n }\n }\n }\n }",
"protected void assertNoTESpec() {\n\t\tassertFalse(\"A TE spec was generated, but it shouldn't\", \n\t\t\trecorder.recorded(EC.TLC_TE_SPEC_GENERATION_COMPLETE));\n\t}",
"@Override\n\tpublic boolean canfitCompact() {\n\t\treturn false;\n\t}",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"boolean hasIsSupportComp();",
"public void ensureEmptied() {\n }",
"private void checkCapacity() {\n\t\tif (size.get() >= region.getCapacity()) {\n\t\t\tsynchronized (cleanUpThread) {\n\t\t\t\tcleanUpThread.notify();\n\t\t\t}\n\t\t}\n\t}",
"public void IsBeingCleaned() {\n\t\tSystem.out.println(\"Table already being cleaned.\");\n\t}",
"private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}",
"@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}",
"public boolean action_allowed(){\r\n\t\treturn action_holds.size()==0;\r\n\t}",
"@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}",
"public boolean isSetComparesource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(COMPARESOURCE$2) != 0;\r\n }\r\n }",
"private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}",
"void unsetComplianceCheckResult();",
"@Test\n public void fsckNoData() throws Exception {\n storage.flushStorage();\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }",
"@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}",
"public boolean isSelectionEmpty() {\n\t\t\treturn tablecolselectmodel.isSelectionEmpty();\n\t\t}",
"public void motorSafetyCheck() {\r\n if (leftMotor_0.getMotorType() == MotorType.kBrushed\r\n || leftMotor_1.getMotorType() == MotorType.kBrushed\r\n || leftMotor_2.getMotorType() == MotorType.kBrushed\r\n || rightMotor_0.getMotorType() == MotorType.kBrushed\r\n || rightMotor_1.getMotorType() == MotorType.kBrushed\r\n || rightMotor_2.getMotorType() == MotorType.kBrushed) {\r\n System.out.println(\"Brushed motor selected\");\r\n System.exit(0);\r\n }\r\n }",
"@Override\n protected boolean verifySelection()\n {\n // Print the log contents table\n logTable.printTable(\"Log Data: \"\n + perfLog.getLogFileName(perfMain.getPreference(PERF_LOG_FILE)),\n this,\n OrientationRequested.LANDSCAPE);\n\n return false;\n }",
"@Test\r\n\tpublic void testButtonPressedNotEnoughCred() {\r\n\t\tvend.getSelectionButton(0).press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\t\t\r\n\t}",
"protected abstract boolean checkUnSupportedFeatures(TrafficSelector selector, TrafficTreatment treatment);",
"public void validateSelection()\r\n {\r\n for (int i = 0; i<getSelectedElements().size(); ++i)\r\n {\r\n ReportElement re = (ReportElement)getSelectedElements().elementAt(i);\r\n if (!getCrosstabElement().getElements().contains( re ))\r\n {\r\n getSelectedElements().remove(re);\r\n --i;\r\n }\r\n }\r\n // UPDATE SELECTION NOW!!!\r\n }",
"boolean isNoOp();",
"private boolean journalRebuildRequired() {\n\t\tfinal int REDUNDANT_OP_COMPACT_THRESHOLD = 2000;\n\t\treturn redundantOpCount >= REDUNDANT_OP_COMPACT_THRESHOLD\n\t\t\t&& redundantOpCount >= lruEntries.size();\n\t}",
"private boolean isValid() {\n\t\treturn proposalTable != null && !proposalTable.isDisposed();\n\t}",
"@Override\n protected Result check()\n {\n return this.gitLabModeInfos.isEmpty() ? Result.unhealthy(\"No GitLab modes available\") : Result.healthy();\n }",
"private boolean checkColNameSet() {\n return (null != colNames && colNames.size() > 0);\n }",
"@Override\r\n\tpublic boolean checkBudget() {\n\t\treturn false;\r\n\t}",
"@Test\n public void testSelectL0Compaction() throws Exception {\n Configuration conf = HBaseConfiguration.create();\n conf.setInt(StripeStoreConfig.MIN_FILES_L0_KEY, 4);\n StripeCompactionPolicy policy = createPolicy(conf);\n StripeCompactionPolicy.StripeInformationProvider si = createStripesWithSizes(10, 10L,\n new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L }, new Long[] { 3L, 2L, 2L });\n StripeCompactionPolicy.StripeCompactionRequest cr = policy.selectCompaction(si, al(), false);\n assertNotNull(cr);\n assertEquals(10, cr.getRequest().getFiles().size());\n verifyCollectionsEqual(si.getLevel0Files(), cr.getRequest().getFiles());\n\n // test select partial L0 files when size of L0 files > HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY\n conf.setLong(HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY, 100L);\n policy = createPolicy(conf);\n si = createStripesWithSizes(5, 50L, new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L },\n new Long[] { 3L, 2L, 2L });\n cr = policy.selectCompaction(si, al(), false);\n assertNotNull(cr);\n assertEquals(2, cr.getRequest().getFiles().size());\n verifyCollectionsEqual(si.getLevel0Files().subList(0, 2), cr.getRequest().getFiles());\n\n // test select partial L0 files when count of L0 files > MAX_FILES_KEY\n conf.setInt(MAX_FILES_KEY, 6);\n conf.setLong(HBASE_HSTORE_COMPACTION_MAX_SIZE_KEY, 1000L);\n policy = createPolicy(conf);\n si = createStripesWithSizes(10, 10L, new Long[] { 5L, 1L, 1L }, new Long[] { 3L, 2L, 2L },\n new Long[] { 3L, 2L, 2L });\n cr = policy.selectCompaction(si, al(), false);\n assertNotNull(cr);\n assertEquals(6, cr.getRequest().getFiles().size());\n verifyCollectionsEqual(si.getLevel0Files().subList(0, 6), cr.getRequest().getFiles());\n }",
"@Test(dataProvider = \"goodInputVcfs\")\n public void testNoFiltering(final File input) throws Exception {\n final File out = testFiltering(input, \".vcf.gz\", 0, 0, 0, Double.MAX_VALUE);\n final VCFFileReader in = new VCFFileReader(out, false);\n for (final VariantContext ctx : in) {\n if (!ctx.filtersWereApplied() || ctx.isFiltered()) {\n Assert.fail(\"Context should not have been filtered: \" + ctx.toString());\n }\n }\n in.close();\n }",
"private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }",
"public boolean isSetAllocFraction() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ALLOCFRACTION_ISSET_ID);\n }",
"@Override\n\t\t\tpublic boolean checkPreconditions(){\n\t\t\t\treturn topLevelCheckbox.getSelection();\n\t\t\t}",
"@Override\n\t\t\tpublic boolean checkPreconditions(){\n\t\t\t\treturn topLevelCheckbox.getSelection();\n\t\t\t}",
"@Override\n\t\t\tpublic boolean checkPreconditions(){\n\t\t\t\treturn topLevelCheckbox.getSelection();\n\t\t\t}",
"public boolean isSetFilesMaterializedFromCASCount() {\n return EncodingUtils.testBit(__isset_bitfield, __FILESMATERIALIZEDFROMCASCOUNT_ISSET_ID);\n }",
"protected boolean selectionIsAppropriate(Element selection) {\n return selection.getName().equals(FormatType.EMPTY.getElementName());\n }",
"public void verifyNoPendingNotification() {\n\t\twait.waitForLoaderToDisappear();\n\t\tAssert.assertFalse(notificationPresent(), \"Assertion Failed: There are pending notifications on the side bar\");\n\t\tlogMessage(\"Assertion Passed: There are no pending notifications on the side bar\");\n\t}",
"protected void buildCompactionCandidatesForAvailableDiskSpace(final Set<SSTableReader> fullyExpiredSSTables)\n {\n if(!cfs.isCompactionDiskSpaceCheckEnabled() && compactionType == OperationType.COMPACTION)\n {\n logger.info(\"Compaction space check is disabled\");\n return; // try to compact all SSTables\n }\n\n final Set<SSTableReader> nonExpiredSSTables = Sets.difference(transaction.originals(), fullyExpiredSSTables);\n CompactionStrategy strategy = cfs.getCompactionStrategy();\n int sstablesRemoved = 0;\n\n while(!nonExpiredSSTables.isEmpty())\n {\n // Only consider write size of non expired SSTables\n long expectedWriteSize = cfs.getExpectedCompactedFileSize(nonExpiredSSTables, compactionType);\n long estimatedSSTables = Math.max(1, expectedWriteSize / strategy.getMaxSSTableBytes());\n\n if(cfs.getDirectories().hasAvailableDiskSpace(estimatedSSTables, expectedWriteSize))\n break;\n\n if (!reduceScopeForLimitedSpace(nonExpiredSSTables, expectedWriteSize))\n {\n // we end up here if we can't take any more sstables out of the compaction.\n // usually means we've run out of disk space\n\n // but we can still compact expired SSTables\n if(partialCompactionsAcceptable() && fullyExpiredSSTables.size() > 0 )\n {\n // sanity check to make sure we compact only fully expired SSTables.\n assert transaction.originals().equals(fullyExpiredSSTables);\n break;\n }\n\n String msg = String.format(\"Not enough space for compaction, estimated sstables = %d, expected write size = %d\", estimatedSSTables, expectedWriteSize);\n logger.warn(msg);\n CompactionManager.instance.incrementAborted();\n throw new RuntimeException(msg);\n }\n\n sstablesRemoved++;\n logger.warn(\"Not enough space for compaction, {}MB estimated. Reducing scope.\",\n (float) expectedWriteSize / 1024 / 1024);\n }\n\n if(sstablesRemoved > 0)\n {\n CompactionManager.instance.incrementCompactionsReduced();\n CompactionManager.instance.incrementSstablesDropppedFromCompactions(sstablesRemoved);\n }\n\n }",
"private void ensureFinalState() {\n if (!isComplete() && !isPaused() && getInternalState() != INTERNAL_STATE_QUEUED) {\n // we first try to complete a cancel operation and if that fails, we just fail\n // the operation.\n if (!tryChangeState(INTERNAL_STATE_CANCELED, false)) {\n tryChangeState(INTERNAL_STATE_FAILURE, false);\n }\n }\n }",
"@Ignore @Test(timeout=180000)\n public void testQuarantineMissingFamdir() throws Exception {\n TableName table = TableName.valueOf(name.getMethodName());\n // inject a fault in the hfcc created.\n final FileSystem fs = FileSystem.get(conf);\n HBaseFsck hbck = new HBaseFsck(conf, hbfsckExecutorService) {\n @Override\n public HFileCorruptionChecker createHFileCorruptionChecker(boolean sidelineCorruptHFiles) throws IOException {\n return new HFileCorruptionChecker(conf, executor, sidelineCorruptHFiles) {\n AtomicBoolean attemptedFirstHFile = new AtomicBoolean(false);\n @Override\n protected void checkColFamDir(Path p) throws IOException {\n if (attemptedFirstHFile.compareAndSet(false, true)) {\n assertTrue(fs.delete(p, true)); // make sure delete happened.\n }\n super.checkColFamDir(p);\n }\n };\n }\n };\n doQuarantineTest(table, hbck, 3, 0, 0, 0, 1);\n hbck.close();\n }",
"private boolean worthWaiting() {\n return !PsiDocumentManager.getInstance(myProject).hasUncommitedDocuments() && !ApplicationManager.getApplication().isWriteAccessAllowed() && !FileEditorsSplitters.isOpenedInBulk(myTextEditor.myFile);\n }",
"@Override\n protected void checkValidity() throws DukeException {\n\n if (this.descriptionOfTask.isEmpty()) {\n throw new DukeException(\" ☹ OOPS!!! The description of a done cannot be empty.\");\n }\n\n }",
"@Test\n public void noFrozenBalance() {\n UnfreezeBalanceActuator actuator = new UnfreezeBalanceActuator(getContractForBandwidth(UnfreezeBalanceActuatorTest.OWNER_ADDRESS), UnfreezeBalanceActuatorTest.dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n try {\n actuator.validate();\n actuator.execute(ret);\n TestCase.fail(\"cannot run here.\");\n } catch (ContractValidateException e) {\n Assert.assertTrue((e instanceof ContractValidateException));\n Assert.assertEquals(\"no frozenBalance(BANDWIDTH)\", e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse((e instanceof ContractExeException));\n }\n }",
"@Override\r\n\tpublic void validate() {\n\t\tsuper.validate();\r\n\t\tif(nofck == null)\r\n\t\t\tnofck = false;\r\n\t}",
"@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn lvConsumerIndex() == lvProducerIndex();\r\n\t}",
"@Override\n public void isClean(CoffeeMachine coffeeMachine) throws CleanMachineException {\n if (coffeeMachine.getCupsBeforeClean() == 0) {\n throw new CleanMachineException(String.format(\"%s need to clean\", coffeeMachine.getName()));\n }\n }",
"public boolean verifyNoInactives() {\n\t\treturn !btnInactives.isEnabled();\n\n\t}",
"public boolean isSetTotalFilesMaterializedCount() {\n return EncodingUtils.testBit(__isset_bitfield, __TOTALFILESMATERIALIZEDCOUNT_ISSET_ID);\n }",
"public static boolean hasNoCompArg(String args) {\n return 0 <= args.toUpperCase().indexOf(\"NOCOMP\");\n }",
"public void verifyNoMatching(AcBatchFlight e)\n {\n }",
"boolean isSetComplianceCheckResult();",
"private boolean isEmpty() {\n int ro = reserveOffset;\n if (ro >= reserve) {\n if (queue[reserve].isCommitted()) {\n ro = reserve + 1;\n } else {\n ro = reserve;\n }\n }\n\n LOG.debug(\"Effective flush/reserve offset {}/{}\", flushOffset, ro);\n return ro <= flushOffset;\n }",
"public void cancel() {\n this.currentCompactedKVs = this.totalCompactingKVs = 0;\n }",
"public void testGetSelectedItemsCountWithEmptyDb()\n\t{\n\t\t// Act & Assert\n\t\tint selectedItemsCount = service.getSelectedItemsCount();\n\t\tassertEquals(0, selectedItemsCount);\n\t}",
"public boolean hasDeleteBackUp() {\n return msgCase_ == 12;\n }",
"public boolean hasDeleteBackUp() {\n return msgCase_ == 12;\n }",
"public void testEmpty_1()\n throws Exception {\n BestChromosomesSelector selector = new BestChromosomesSelector(conf);\n Gene gene = new BooleanGene(conf);\n Chromosome chrom = new Chromosome(conf, gene, 5);\n selector.add(chrom);\n Population popNew = new Population(conf);\n selector.select(1, null, popNew);\n selector.empty();\n assertEquals(1, popNew.size());\n assertNotNull(popNew.getChromosome(0));\n }",
"private synchronized void verifyVariantsWithProblems() {\r\n\t\tthreadInExecId.remove(Thread.currentThread().getId());\r\n\t\tif (threadInExecId.isEmpty()) {\r\n\t\t\tfinal Display display = Display.getDefault();\r\n\t\t\tif (display == null) {\r\n\t\t\t\tthrow new NullPointerException(\"Display is null\");\r\n\t\t\t}\r\n\t\t\tdisplay.syncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tInvalidProductViewController invalidProductViewController = InvalidProductViewController\r\n\t\t\t\t\t\t\t.getInstance();\r\n\t\t\t\t\tinvalidProductViewController.showInvalidProduct();\r\n\r\n\t\t\t\t\tif (!ProjectConfigurationErrorLogger.getInstance()\r\n\t\t\t\t\t\t\t.getProjectsList().isEmpty()) {\r\n\t\t\t\t\t\tList<InvalidProductViewLog> logs = new LinkedList<InvalidProductViewLog>();\r\n\t\t\t\t\t\tfor (String s : ProjectConfigurationErrorLogger\r\n\t\t\t\t\t\t\t\t.getInstance().getProjectsList()) {\r\n\t\t\t\t\t\t\tlogs.add(new InvalidProductViewLog(s));\r\n\t\t\t\t\t\t\tSystem.out.println(s);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tinvalidProductViewController.adaptTo(logs\r\n\t\t\t\t\t\t\t\t.toArray(new InvalidProductViewLog[logs.size()]));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Clear view\r\n\t\t\t\t\t\tinvalidProductViewController.clear();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\r\n\t\t}\r\n\r\n\t}",
"public boolean isRequirementUnfulfilled() {\n return false;\n }",
"protected final void checkGC() {\n if (appliedState.relativeClip != currentState.relativeClip) {\n appliedState.relativeClip = currentState.relativeClip;\n currentState.relativeClip.setOn(gc, translateX, translateY);\n }\n\n if (appliedState.graphicHints != currentState.graphicHints) {\n reconcileHints(gc, appliedState.graphicHints,\n currentState.graphicHints);\n appliedState.graphicHints = currentState.graphicHints;\n }\n }",
"boolean check() {\n return check(Env.empty);\n }",
"public boolean fuelIsEmpty() throws Exception;",
"public void testPrintGCDetailsDisabled() {\n String jvmOptions = \"-Xss128k -XX:-PrintGCDetails -Xms2048M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.doAnalysis();\n Assert.assertTrue(Analysis.WARN_PRINT_GC_DETAILS_DISABLED + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_PRINT_GC_DETAILS_DISABLED));\n Assert.assertFalse(Analysis.WARN_PRINT_GC_DETAILS_MISSING + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_PRINT_GC_DETAILS_MISSING));\n }",
"public void testEmpty_2()\n throws Exception {\n BestChromosomesSelector selector = new BestChromosomesSelector(conf);\n Gene gene = new BooleanGene(conf);\n Chromosome chrom = new Chromosome(conf, gene, 5);\n Population pop = new Population(conf, 1);\n pop.addChromosome(chrom);\n Population popNew = new Population(conf);\n selector.select(1, pop, popNew);\n selector.empty();\n assertEquals(1, popNew.size());\n assertNotNull(popNew.getChromosome(0));\n }",
"private void verifyWholeStripesCompaction(StripeCompactionPolicy policy,\n StripeInformationProvider si, int from, int to, Boolean dropDeletes, Integer count, Long size,\n boolean needsCompaction) throws IOException {\n verifyCompaction(policy, si, getAllFiles(si, from, to), dropDeletes, count, size,\n si.getStartRow(from), si.getEndRow(to), needsCompaction);\n }",
"public void testInvalid() {\n\t\tassertNotNull(\"Should have compiler available (for testing to be available)\", this.compiler);\n\t}",
"public boolean isEmpty() {\n return attestationsByValidatorCount.isEmpty();\n }",
"protected boolean isDiscarded()\n {\n return m_cUnits == -1;\n }",
"private boolean failInReporting() {\n\t\tboolean toForget = false;\n\t\t//synchronized (this) {\n\t\t\tif (++this.failureCount >= this.config.getNumOfFailuresBeforeForgetCollector()) {\n\t\t\t\ttoForget = true;\n\t\t\t\tthis.failureCount = 0;\n\t\t\t}\n\t\t//}\n\n\t\t// forget\n\t\tif (toForget) {\n\t\t\tlogger.log(Level.WARNING, \"Forget a stat collector.\");\n\n\t\t\tthis.provider.setMessagingCollectorAddress(null);\n\t\t}\n\n\t\treturn toForget;\n\t}",
"private void verifyActive() {\n if (!active) {\n throw new IllegalStateException(\"Container is no longer active for loading\");\n }\n }",
"public final boolean isEmpty()\r\n/* 62: */ {\r\n/* 63:247 */ return lvConsumerIndex() == lvProducerIndex();\r\n/* 64: */ }",
"private boolean isEmpty() { return getSize() == 0; }",
"@Override\n public void verifyDeterministic() throws NonDeterministicException {\n }",
"public boolean fullCommitNeeded ()\n {\n return true;\n }",
"@Override\n\tpublic boolean hasOperation() {\n\t\treturn false;\n\t}",
"public boolean checkIsEmpty() {\n return isEmpty(minimumInstances) && isEmpty(maximumInstances) && isEmpty(dependentProfiles);\n }",
"private boolean isStateFullyDetermined() {\n switch (hasSubstance) {\n case No:\n case Unknown:\n return false;\n case Yes:\n // if already established has substance, continue checking only until\n // reach threshold\n return (substanceMin <= 0) ? true : substanceCnt >= substanceMin;\n }\n throw new ShouldNotHappenException();\n }",
"public boolean isSelectedReportedUndefinedConditionsCBox() {\n\t\treturn reportUndefinedConditionsCBox.isSelected();\n\t}",
"public boolean isConsistent() throws OperationNotSupportedException, FMReasoningException {\n\t\tthrow new OperationNotSupportedException(\"Reasoning Operation Not Supported\");\n\t}",
"boolean hasCapacity();",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"public boolean needsProcessing() {\r\n return !INTL_NODE.getOutMarbles().isEmpty();\r\n }",
"@Override public void action() {\n //Do Nothing\n assert(checkRep());\n }",
"default void compact() {\n\t\t/* no-op by default */\n\t}",
"private void check() {\r\n\t\tif(isEmpty()){\r\n\t\t\tthrow new RuntimeException(\"Queue is empty\");\r\n\t\t}\r\n\t}",
"protected boolean checkLoad() {\n\t\treturn size <= maxThreshold;\n\t\t//return (size >= minThreshold || size <= minCapacity) && size <= maxThreshold;\n\t}",
"@Test\n public void testConstructEmptyTaint() {\n Taint t = Taint.emptyTaint();\n assertTrue(t.isEmpty());\n }"
] | [
"0.6263677",
"0.5958486",
"0.57302725",
"0.561033",
"0.55703944",
"0.5540855",
"0.5473002",
"0.54504544",
"0.5421957",
"0.5420872",
"0.5365047",
"0.535779",
"0.53534377",
"0.53189373",
"0.53157526",
"0.52593946",
"0.5225038",
"0.5221882",
"0.52084655",
"0.51954865",
"0.5193173",
"0.51850975",
"0.5178014",
"0.51739717",
"0.515427",
"0.51529753",
"0.51524943",
"0.5143178",
"0.5134247",
"0.50998783",
"0.50998175",
"0.50963926",
"0.50952816",
"0.5094422",
"0.5092064",
"0.50428456",
"0.5042355",
"0.50362796",
"0.502868",
"0.50226116",
"0.5003004",
"0.5002247",
"0.5001917",
"0.50009716",
"0.50009716",
"0.50009716",
"0.49880508",
"0.4985668",
"0.498253",
"0.4977785",
"0.49773806",
"0.4964714",
"0.496278",
"0.49608493",
"0.49557078",
"0.49529523",
"0.49526858",
"0.4952023",
"0.49486902",
"0.49463418",
"0.49448857",
"0.49411562",
"0.4940815",
"0.4940426",
"0.4922477",
"0.4921805",
"0.49206814",
"0.49116305",
"0.49097762",
"0.49093512",
"0.49079204",
"0.4906219",
"0.4901422",
"0.4899192",
"0.4899084",
"0.4891091",
"0.4886238",
"0.4884017",
"0.48722374",
"0.48659948",
"0.48640677",
"0.4863643",
"0.4862319",
"0.48602572",
"0.48532984",
"0.48516735",
"0.48515105",
"0.48450086",
"0.48415112",
"0.48279542",
"0.48232943",
"0.48206228",
"0.48203647",
"0.48203647",
"0.4820023",
"0.48181733",
"0.48142833",
"0.4808169",
"0.48048586",
"0.4804082"
] | 0.7021335 | 0 |
This method actually does all the work. | private static StripeInformationProvider createStripesWithFiles(List<byte[]> boundaries,
List<List<HStoreFile>> stripeFiles, List<HStoreFile> l0Files) throws Exception {
ArrayList<ImmutableList<HStoreFile>> stripes = new ArrayList<>();
ArrayList<byte[]> boundariesList = new ArrayList<>();
StripeInformationProvider si = mock(StripeInformationProvider.class);
if (!stripeFiles.isEmpty()) {
assert stripeFiles.size() == (boundaries.size() + 1);
boundariesList.add(OPEN_KEY);
for (int i = 0; i <= boundaries.size(); ++i) {
byte[] startKey = ((i == 0) ? OPEN_KEY : boundaries.get(i - 1));
byte[] endKey = ((i == boundaries.size()) ? OPEN_KEY : boundaries.get(i));
boundariesList.add(endKey);
for (HStoreFile sf : stripeFiles.get(i)) {
setFileStripe(sf, startKey, endKey);
}
stripes.add(ImmutableList.copyOf(stripeFiles.get(i)));
when(si.getStartRow(eq(i))).thenReturn(startKey);
when(si.getEndRow(eq(i))).thenReturn(endKey);
}
}
ConcatenatedLists<HStoreFile> sfs = new ConcatenatedLists<>();
sfs.addAllSublists(stripes);
sfs.addSublist(l0Files);
when(si.getStorefiles()).thenReturn(sfs);
when(si.getStripes()).thenReturn(stripes);
when(si.getStripeBoundaries()).thenReturn(boundariesList);
when(si.getStripeCount()).thenReturn(stripes.size());
when(si.getLevel0Files()).thenReturn(l0Files);
return si;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"protected void run() {\r\n\t\t//\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"protected void internalRun() {\n work();\n }",
"protected void additionalProcessing() {\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"protected void execute() {\n \t\n }",
"protected void execute() {\n \t\n }",
"private void workOnQueue() {\n }",
"@Override\n\tprotected void postRun() {\n\n\t}",
"protected void execute() {\n\t\t\n\t}",
"protected void runAfterIteration() {}",
"@Override\n public void run() {\n ArticleHeaders.loadData(getApplicationContext());\n CustomerHeaders.loadData(getApplicationContext());\n OrderReasons.loadData(getApplicationContext());\n }",
"@Override\n protected void execute() {\n \n }",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\r\n\tprotected void processFinish() {\n\r\n\t}",
"@Override\n\tpublic void processing() {\n\n\t}",
"protected void process() {\n long start = System.nanoTime();\n loadDriver(translator);\n configureConnectionPool();\n\n if (this.checkCompatibility) {\n checkCompatibility();\n }\n\n if (addKeyForTenant != null) {\n addTenantKey();\n } else if (this.dropSchema) {\n // only proceed with the drop if the user has provided additional confirmation\n if (this.confirmDrop) {\n dropSchema();\n } else {\n throw new IllegalArgumentException(\"[ERROR] Drop not confirmed with --confirm-drop\");\n }\n } else if (this.dropAdmin) {\n // only try to drop the admin schema\n if (this.confirmDrop) {\n dropSchema();\n } else {\n throw new IllegalArgumentException(\"[ERROR] Drop not confirmed with --confirm-drop\");\n }\n } else if (updateFhirSchema || updateOauthSchema || updateJavaBatchSchema) {\n updateSchema();\n } else if (createFhirSchema || createOauthSchema || createJavaBatchSchema) {\n createSchemas();\n } else if (updateProc) {\n updateProcedures();\n } else if (this.listTenants) {\n listTenants();\n } else if (this.allocateTenant) {\n allocateTenant();\n } else if (this.testTenant) {\n testTenant();\n } else if (this.freezeTenant) {\n freezeTenant();\n } else if (this.dropDetached) {\n dropDetachedPartitionTables();\n } else if (this.deleteTenantMeta) {\n deleteTenantMeta();\n } else if (this.dropTenant) {\n dropTenant();\n }\n\n if (this.grantTo != null) {\n grantPrivileges();\n }\n\n long elapsed = System.nanoTime() - start;\n logger.info(String.format(\"Processing took: %7.3f s\", elapsed / NANOS));\n }",
"@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}",
"@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}",
"@Override\n\t\tpublic void run() {\n\n\t\t}",
"public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}",
"@Override\r\n\tprotected void processExecute() {\n\r\n\t}",
"protected void execute() {\n\n\t}",
"public void run() {\n\t\t\t\t\n\t\t\t}",
"public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}",
"protected void runBeforeIteration() {}",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public void run(){\n ArrayList<ArrayList<Furniture>> all = getSubsets(getFoundFurniture());\n ArrayList<ArrayList<Furniture>> valid = getValid(all);\n ArrayList<ArrayList<Furniture>> ordered = comparePrice(valid);\n ArrayList<ArrayList<Furniture>> orders = produceOrder();\n checkOrder(orders, false);\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t}",
"@Override\r\n\tprotected void execute() {\r\n\t}",
"protected void done() {\n // Restore GUI state: we want to do this on the\n // event-dispatching thread regardless of whether the worker\n // succeeded or not.\n om.enableList(true);\n InfoPanel.logoPanel.stop();\n\n try {\n SpItem item = get();\n\n // Perform the following actions of the worker was\n // successful ('get' didn't raise an exception).\n DeferredProgramList.clearSelection();\n om.addNewTree(item);\n buildStagingPanel();\n }\n catch (InterruptedException e) {\n logger.error(\"Execution thread interrupted\");\n }\n catch (ExecutionException e) {\n logger.error(\"Error retriving MSB: \" + e);\n String why = null;\n Throwable cause = e.getCause();\n if (cause != null) {\n why = cause.toString();\n }\n else {\n why = e.toString();\n }\n\n // exceptions are generally Null Pointers or Number Format\n // Exceptions\n logger.debug(why);\n JOptionPane.showMessageDialog(\n null, why, \"Could not fetch MSB\",\n JOptionPane.ERROR_MESSAGE);\n }\n catch (Exception e) {\n // Retaining this catch-all block as one was present in\n // the previous version of this code. Exceptions\n // raised by 'get' should be caught above -- this block\n // is in case the in-QT handling of the MSB fails.\n // (Not sure if that can happen or not.)\n logger.error(\"Error processing retrieved MSB: \" + e);\n JOptionPane.showMessageDialog(\n null, e.toString(), \"Could not process fetched MSB\",\n JOptionPane.ERROR_MESSAGE);\n }\n }",
"@Override\r\n\tpublic void doWorkFlowAnalysis() {\n\t\t\r\n\t}",
"public void run() {\n\t\t\r\n\t}",
"public void run() {\n\t\t\r\n\t}",
"public void run() {\n remover();\n userWriter();\n roomWriter();\n eventWriter();\n messageWriter();\n requestWriter();\n }",
"public void run()\n\t\t{\n\t\t}",
"public static void run() {\n try {\n //recreating tables added to update csv data without application restart\n new SqlUtility().setConnection().dropAllTables().createPersonTable().createRecipientTable();\n new CsvPersonParser().run();\n new CsvReсipientParser().run();\n\n List<Person> list;\n list = new SqlUtility().setConnection().grubData();\n String result = \"\";\n result = ListToMessage.converter(list);\n if(!\"\".equals(result)) {\n NotificationSender.sender(result, email, pass, addressList);\n }\n } catch (ClassNotFoundException e){e.printStackTrace();}\n catch (SQLException ee){ee.printStackTrace();}\n catch (ParseException eee) {eee.printStackTrace();}\n\n }",
"public void run() {\n\t\tHtmlPage page = null;\n\t\tHtmlSelect select = null;\n\t\tHtmlOption option = null;\n\t\tDataStreamWriter connection = null;\n\t\tWebClient client = new WebClient(BrowserVersion.FIREFOX_3);\n\t\t/* eseguo i job assegnati al thread in esecuzione */\n\t\tfor(int j = 0; j < this.jobs.length; j++) {\n\t\t\tint currentJob = this.jobs[j];\n\t\t\ttry {\n\t\t\t\t/* faccio dei tentativi per collegarmi alle pagine */\n\t\t\t\tpage = getPage(client, this.getDataSourceURL());\n\t\t\t\t/* seleziono l'opzione relativa alla regione assegnata al task */\n\t\t\t\tselect = (HtmlSelect) page.getByXPath(\"//select\").get(0);\n\t\t\t\toption = select.getOption(currentJob);\n\t\t\t\toption.setSelected(true);\n\t\t\t\tString regione = option.asText();\n\t\t\t\t/* seleziono l'opzione ed ottengo la pagina aggiornata */\n\t\t\t\tpage = (HtmlPage) select.fireEvent(Event.TYPE_CHANGE).getNewPage();\n\t\t\t\t\n\t\t\t\t/* estraggo i dati e li salvo nello \"storage\" */\n\t\t\t\tconnection = this.storageFacade.getDataStreamWriter();\n\t\t\t\tconnection.openStreamWriter();\n\t\t\t\tthis.extractData(client, connection, page, regione);\n\t\t\t}\n\t\t\tcatch (HTMLCrawlerException e) {\n\t\t\t\tSystem.err.println(\"@ HTMLCrawlerException : Extracting Data Error\");\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\t//client.closeAllWindows();\n\t\t\t\tif (connection != null)\n\t\t\t\t\tconnection.closeStreamWriter();\n\t\t\t}\n\t\t}\n\t\tclient.closeAllWindows();\n\t}",
"public void run() {\n\t\t\t\t\t\t\t\t\t\titemList.clear();\r\n\t\t\t\t\t\t\t\t\t\tfor (IBMDataObject item : objects) {\r\n\t\t\t\t\t\t\t\t\t\t\titemList.add((Transaction) item);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tsortItems(itemList);\r\n\t\t\t\t\t\t\t\t\t}",
"@Override\n\tpublic void process() throws Exception {\n\n\t}",
"public void run() {\n\t\t\t\t\t\t}",
"protected void execute()\n\t{\n\t}",
"protected void execute() {\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public void execute() {\n\t\t\r\n\t}",
"public void run() throws Exception {\r\n\t\t// Get the zip file\r\n\t\tSystem.out.println(\"Downloading data from grouplens.org (64mb). This may take some time\");\r\n\t\tUtilities101.downloadFile(TARGET_DIRECTORY, TEMP_FILE, DOWNLOAD_URL);\r\n\t\tSystem.out.println(\"Data has been downloaded, extracting zip file\");\r\n\t\t// Extract the ratings file\r\n\t\tUtilities101.extractFileFromZip(TARGET_DIRECTORY, TEMP_FILE, FILE_TO_EXTRACT, TARGET_FILE);\r\n\t\tSystem.out.println(\"Extracted rating information from zip file\");\t\t\r\n\t\t// Extract the contents file\r\n\t\tUtilities101.extractFileFromZip(TARGET_DIRECTORY, CONTENT_ZIP, CONTENT_FILE, CONTENT_FILE);\r\n\t\tSystem.out.println(\"Extracted content information from zip file\");\t\r\n\t\t// get the correct product ids\r\n\t\tSet<Integer> relevantProductIDs = getIDsOfMoviesWithContentInfo(TARGET_DIRECTORY + CONTENT_FILE);\r\n\t\t// create the ratings file from the given one and remove movies without content info\r\n\t\tremoveRatingsOfMoviesWithoutContentInfo(TARGET_DIRECTORY, TARGET_FILE, relevantProductIDs, FINAL_FILE);\r\n\t\tSystem.out.println(\"Extracted relevant ratings from data file to \" + FINAL_FILE);\r\n\t\t// create the tf-idf vectors\r\n\t\tSystem.out.println(\"Creating TF-IDF vectors from content information, creating temporary files\");\r\n\t\tSet<String> filenames = runFileSplitter(TARGET_DIRECTORY, CONTENT_FILE, TMP_DIRECTORY);\r\n//\t\tSystem.out.println(\"Created \" + filenames.size() + \" temporary files\");\r\n\t\tSystem.out.println(\"Creating output files containing tfidf vectors and wordlists\");\r\n\t\tgenerateWordVectorsAndWordList(filenames,TMP_DIRECTORY,WORDLIST_FILENAME,TF_IDF_FILENAME, TARGET_DIRECTORY, 20,1000,true,\"german\");\r\n\t\tSystem.out.println(\"Created tf-idf vectors\");\r\n\t}",
"public void run() {\n\t\t}",
"public void run() {\n\t\t}",
"public void run() {\n\t\t}",
"protected void doProcess() throws Exception {\n boolean continueProcessing = true;\n while (continueProcessing) {\n continueProcessing = processFollowUpsRecords();\n }\n commitRecords();\n }",
"private void inizia() throws Exception {\n }",
"protected void work() {\n try {\n if(theFile!=null) { \n //construct filePath, fileSize\n int fileSize = theFile.getFileSize();\n if(fileSize==0) fileSize=1;\n String filePath = path+\"/\"+theFile.getFileName();\n if(log.isDebugEnabled()) log.debug(\"Uploading file: \"+filePath+\", filesize: \"+fileSize/1000+\"KB\");\n\t\t\t\n //write out file\n InputStream stream = theFile.getInputStream();\n OutputStream bos = new FileOutputStream(filePath);\n int bytesRead = 0;\n byte[] buffer = new byte[Constants.FILEUPLOAD_BUFFER];\n while(isRunning() && ((bytesRead = stream.read(buffer, 0, Constants.FILEUPLOAD_BUFFER)) != -1)) {\n bos.write(buffer, 0, bytesRead);\n sum+=bytesRead;\n setPercent(sum/fileSize);\n }\n bos.close();\n stream.close();\n }\n } catch(Exception ex) {\n setRunning(false);\n log.error(\"Error while uploading: \"+ex.getMessage());\n ex.printStackTrace();\n }\n }",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"public void run() {\n\n }",
"@Override\n\t protected void onPreExecute() {\n\t }",
"@Override\n\tpublic void postRun() {\n\t}",
"public void run() {\n doProcessDocuments();\n //doReport();\n\n }",
"@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}",
"protected void execute() {}",
"@Override\n\t\t\tpublic void worked(int work) {\n\t\t\t\t\n\t\t\t}",
"protected void execute() {\r\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t}",
"public void run() {\n\t\tMzsCore core = DefaultMzsCore.newInstanceWithoutSpace();\n\t\tcapi = new Capi(core);\n\t\tint anzahlDefekte = (int) (anzahl * fehlerrate);\n\t\tTransactionReference transET = null;\n\t\tTransactionReference transAutos = null;\n\t\tContainerReference idContainer = null;\n\t\tArrayList<Long> ids = null;\n\t\ttry {\n\t\t\ttransAutos = capi.createTransaction(MzsConstants.TransactionTimeout.INFINITE, Config.locAutos);\n\t\t\ttransET = capi.createTransaction(MzsConstants.TransactionTimeout.INFINITE, Config.locET);\n\t\t\tidContainer = capi.lookupContainer(ContainerNames.ID, Config.locAutos, MzsConstants.RequestTimeout.TRY_ONCE, transAutos);\n\t\t\tids = capi.read(idContainer,\n\t\t\t\t\tFifoCoordinator.newSelector(MzsConstants.Selecting.COUNT_ALL),\n\t\t\t\t\tMzsConstants.RequestTimeout.ZERO, transAutos);\n\t\t} catch (MzsCoreException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\t\tthis.id = ids.get(ids.size()-1);\n\t\t}catch(Exception e){\n\t\t\tthis.id = 1;\n\t\t\te.printStackTrace();\n\t\t}\n\t\tlong entryID = id;\n\t\ttry {\n\t\t\tcapi.write(capi.lookupContainer(ContainerNames.ID,Config.locAutos,MzsConstants.RequestTimeout.TRY_ONCE,transAutos), new Entry(id));\n\t\t} catch (MzsCoreException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tfor (int zaehler = 1; zaehler <= anzahl; zaehler++) {\n\t\t\t// Warte 1-3 Sekunden\n\n\t\t\t// Bastel neues Teil\n\t\t\tentryID++;\n\t\t\tboolean defekt = false;\n\t\t\tif (zaehler <= anzahlDefekte)\n\t\t\t\tdefekt = true;\n\t\t\t\t\n\n\t\t\tSystem.err.println(\"Got component id: \" + entryID);\n\n\n\t\t\tEinzelteil teil = null;\n\n\t\t\t// Erstellung eines neuen Objekts von einem generischen Datentypen\n\t\t\ttry {\n\t\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\t\tClass[] argsC = new Class[] { long.class, long.class,\n\t\t\t\t\t\tboolean.class };\n\t\t\t\tConstructor<? extends Einzelteil> constructor = type\n\t\t\t\t\t\t.getConstructor(argsC);\n\t\n\t\t\t\tteil = constructor.newInstance(new Object[] { entryID, id,\n\t\t\t\t\t\tdefekt });\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Houston, we have a problem ...\");\n\t\t\t}\n\n\t\t\tSystem.err.println(\"Created new \" + type.getName());\n\t\t\tString containerName = \"\";\n\t\t\tif (type.getName().contains(\"einzelteile.Achse\")) {\n\t\t\t\tcontainerName = ContainerNames.ACHSEN;\n\t\t\t} else if (type.getName().contains(\"einzelteile.Bodenplatte\")) {\n\t\t\t\tcontainerName = ContainerNames.PLATTEN;\n\t\t\t} else if (type.getName().contains(\"einzelteile.Karosserie\")) {\n\t\t\t\tcontainerName = ContainerNames.KAROSSERIE;\n\t\t\t} else if (type.getName().contains(\"einzelteile.Lenkrad\")) {\n\t\t\t\tcontainerName = ContainerNames.LENKRAD;\n\t\t\t} else if (type.getName().contains(\"einzelteile.ReifenPaar\")){\n\t\t\t\tcontainerName = ContainerNames.REIFEN;\n\t\t\t} else if (type.getName().contains(\"einzelteile.Sitz\")){\n\t\t\t\tcontainerName = ContainerNames.SITZE;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tcapi.write(capi.lookupContainer(containerName,Config.locET,MzsConstants.RequestTimeout.TRY_ONCE,transET), new Entry(teil));\n\t\t\t\tcapi.write(capi.lookupContainer(ContainerNames.ID,Config.locAutos,MzsConstants.RequestTimeout.TRY_ONCE,transAutos), new Entry(entryID));\n\t\t\t} catch (MzsCoreException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tcapi.commitTransaction(transET);\n\t\t\tcapi.commitTransaction(transAutos);\n\t\t} catch (MzsCoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void run() {\n // Initialize\n imports = new HashSet<>();\n lines = new ArrayList<>();\n\n // Read and merge source files\n final File folder = new File(\"src\");\n recurseOverFolder(folder);\n\n // Output to file\n outputFile();\n }",
"public void run() {\n }",
"@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}",
"@Override\n protected void runOneIteration() throws Exception {\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n \t\n }",
"public void run() {\n\t \t\t\tfinal Processor mProcessor = new Processor(ScanUtils.appFolder);\n\t \t\t\t\n\t \t\t\ttry {\n\t\t\t\t\t\tif( mProcessor.loadFormImage(inputPath, calibrationPath) ) {\n\t\t\t\t\t\t\tint formIdx = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i = 0; i < templatePaths.length; i++){ \n\t\t\t\t\t\t\t\tLog.i(LOG_TAG, \"loadingFD: \" + templatePaths[i]);\n\t\t\t\t\t\t\t\tif(!mProcessor.loadFeatureData(templatePaths[i])){\n\t\t\t\t\t\t\t\t\tthrow new Exception(\"Could not load feature data from: \" + templatePaths[i]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(templatePaths.length > 1) {\n\t\t\t\t\t\t\t\tformIdx = mProcessor.detectForm();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(formIdx >= 0) {\n\t\t\t\t\t\t\t\tif(mProcessor.setTemplate(templatePaths[formIdx])) {\n\t\t\t\t\t\t\t\t\tLog.i(LOG_TAG,\"template loaded\");\n\t\t\t\t\t\t\t\t\tif( mProcessor.alignForm(outputPath, formIdx) ) {\n\t\t\t\t\t\t\t\t\t\tLog.i(LOG_TAG,\"aligned\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tthrow new Exception(\"Failed to align form.\");\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\telse {\n\t\t\t\t\t\t\t\t\tthrow new Exception(\"Failed to set template.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tthrow new Exception(\"Failed to detect form.\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthrow new Exception(\"Failed to load image: \" + inputPath);\n\t\t\t\t\t\t}\n\t \t\t\t} catch (Exception e) {\n\t \t\t\t\toutputData.putString(\"errorMessage\", e.toString());\n\t \t\t\t}\n\t \t\t\tMessage msg = new Message();\n\t \t\t\tmsg.setData(outputData);\n\t \t\t\thandler.sendMessage(msg);\n\t \t\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"public void run() {\n updateDataInFragments(imageRecord, action);\n }",
"protected void aktualisieren() {\r\n\r\n\t}",
"public void work() {\n\t}",
"public void work() {\n\t}"
] | [
"0.6381818",
"0.6358439",
"0.6323066",
"0.6323066",
"0.6301135",
"0.62768054",
"0.62768054",
"0.620028",
"0.6177323",
"0.6155311",
"0.60901546",
"0.60901546",
"0.60567266",
"0.6053356",
"0.6031268",
"0.6003675",
"0.59895515",
"0.59503037",
"0.59436285",
"0.59436285",
"0.59426594",
"0.59426594",
"0.59426594",
"0.5939519",
"0.59330887",
"0.5928202",
"0.5917261",
"0.5910234",
"0.5883378",
"0.58789355",
"0.5862568",
"0.586252",
"0.5856939",
"0.5849162",
"0.5848187",
"0.58369684",
"0.5828573",
"0.58236027",
"0.5821673",
"0.58198404",
"0.5815262",
"0.580547",
"0.580547",
"0.58032227",
"0.5800351",
"0.57988375",
"0.57952034",
"0.5784652",
"0.57780147",
"0.5774948",
"0.5742488",
"0.5736531",
"0.57263863",
"0.57263863",
"0.57263863",
"0.57161814",
"0.5710593",
"0.5710593",
"0.5710593",
"0.57031983",
"0.5700985",
"0.56987303",
"0.56977934",
"0.56977934",
"0.56977934",
"0.5694185",
"0.56938356",
"0.568897",
"0.5687963",
"0.5687003",
"0.56861657",
"0.5685118",
"0.5682706",
"0.5679201",
"0.5676984",
"0.5672883",
"0.566351",
"0.5663365",
"0.56466675",
"0.5642831",
"0.5621139",
"0.5621139",
"0.5621139",
"0.5621139",
"0.5621139",
"0.5621139",
"0.5616149",
"0.5614441",
"0.5612138",
"0.5612138",
"0.5612138",
"0.5612138",
"0.5612138",
"0.5612138",
"0.5612138",
"0.5612138",
"0.5612138",
"0.5611895",
"0.5603266",
"0.5598788",
"0.5598788"
] | 0.0 | -1 |
Enables/Disables all child views in a view group. | public static void setViewAndChildrenEnabled(View view, boolean enabled) {
view.setEnabled(enabled);
if (view instanceof ViewGroup) {
ViewGroup viewGroup = (ViewGroup) view;
for (int i = 0; i < viewGroup.getChildCount(); i++) {
View child = viewGroup.getChildAt(i);
setViewAndChildrenEnabled(child, enabled);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void enableDisableViewGroup(ViewGroup viewGroup, boolean enabled) {\r\n int childCount = viewGroup.getChildCount();\r\n for (int i = 0; i < childCount; i++) {\r\n View view = viewGroup.getChildAt(i);\r\n if(view.isFocusable())\r\n view.setEnabled(enabled);\r\n if (view instanceof ViewGroup) {\r\n enableDisableViewGroup((ViewGroup) view, enabled);\r\n } else if (view instanceof ListView) {\r\n if(view.isFocusable())\r\n view.setEnabled(enabled);\r\n ListView listView = (ListView) view;\r\n int listChildCount = listView.getChildCount();\r\n for (int j = 0; j < listChildCount; j++) {\r\n if(view.isFocusable())\r\n listView.getChildAt(j).setEnabled(false);\r\n }\r\n }\r\n }\r\n }",
"static void setUsability(boolean enable, ViewGroup vg) {\n for (int i = 0; i < vg.getChildCount(); i++) {\n View child = vg.getChildAt(i);\n child.setEnabled(enable);\n if (child instanceof ViewGroup) {\n setUsability(enable, (ViewGroup) child);\n }\n }\n }",
"@ReactMethod\n public void setViewHierarchyEnabled(final boolean isEnabled) {\n MainThreadHandler.runOnMainThread(new Runnable() {\n @Override\n public void run() {\n try {\n if (isEnabled) {\n BugReporting.setViewHierarchyState(Feature.State.ENABLED);\n } else {\n BugReporting.setViewHierarchyState(Feature.State.DISABLED);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }",
"abstract void configureGroupView(RecentTabsGroupView groupView, boolean isExpanded);",
"private void m32686a(ViewGroup viewGroup, int i) {\n if (i == 0) {\n viewGroup.setVisibility(8);\n }\n }",
"void disableViewClickability() {\n\n back.setClickable(false);\n ConstraintLayout layout = (ConstraintLayout) findViewById(R.id.logged_in_write_home_layout);\n for (int i = 0; i < layout.getChildCount(); i++) {\n View child = layout.getChildAt(i);\n child.setClickable(false);\n }\n }",
"static void disableImageViews() {\n\t\tfor (int i=0; i<Play.NUM[TOTAL]; i++) {\n\t\t\tPlay.pieceViews.get(i).setEnabled(false);\n\t\t}\n\t}",
"private void clearListenerInViewGroup(final ViewGroup viewGroup) {\n if (null == viewGroup) {\n return;\n }\n\n int count = viewGroup.getChildCount();\n for(int n = 0; n < count; ++n) {\n View childView = viewGroup.getChildAt(n);\n if(childView instanceof Switch) {\n final Switch switchView = (Switch) childView;\n switchView.setOnCheckedChangeListener(null);\n return;\n } else if (childView instanceof ViewGroup){\n ViewGroup childGroup = (ViewGroup)childView;\n clearListenerInViewGroup(childGroup);\n }\n }\n }",
"public void setGroupEnabled(int group, boolean enabled);",
"private void disableComponents() {\r\n maintainSponsorHierarchyBaseWindow.btnChangeGroupName.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnCreateNewGroup.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnDelete.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnMoveDown.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnMoveUp.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnSave.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setSelected(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmChangeGroupName.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmCreateNewGroup.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmDelete.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmMoveDown.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmMoveUp.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmSave.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setSelected(false);\r\n }",
"private void makeRippleViewsVisible() {\n int childCount = this.getChildCount();\n for (int i = 0; i < childCount; i++) {\n View childView = this.getChildAt(i);\n if (childView instanceof RippleView) {\n childView.setVisibility(VISIBLE);\n }\n }\n }",
"private void DisableOrEnableFields(){\n for (Node node:super.newAppointmentView.getChildren()) {\n if (node instanceof GridPane){\n GridPane gridpane = (GridPane)node;\n for (Node node1:gridpane.getChildren()) {\n if(node1 instanceof TextField || node1 instanceof ComboBox){\n node1.setDisable(isDisabled);\n }\n }\n }\n\n }\n isDisabled = !isDisabled;\n }",
"private void makeRippleViewsInVisible() {\n int childCount = this.getChildCount();\n for (int i = 0; i < childCount; i++) {\n View childView = this.getChildAt(i);\n if (childView instanceof RippleView) {\n childView.setVisibility(INVISIBLE);\n }\n }\n }",
"public void setChildViewToGroup() {\n int childViewCount = mDataList.size();\n mParent.removeAllViews();\n for(int i = 0; i < childViewCount; i++) {\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(mPopItemWidth, mPopItemHeight);\n ViewGroup v = (ViewGroup) mInflater.inflate(mResource, mParent, false);\n if (i == 0) {\n layoutParams.setMargins(0, mPopViewTopMargin, 0, 0);\n }\n else if (i == childViewCount - 1) {\n layoutParams.setMargins(0, 0, 0, mPopViewBottomMargin);\n }\n else {\n layoutParams.setMargins(0, 0, 0, 0);\n }\n v.setLayoutParams(layoutParams);\n v.setVisibility(INVISIBLE);\n mParent.addView(v);\n }\n }",
"protected void prepareChildViews() {\n\n }",
"List<View> getViewsToDisableInAccessibility();",
"public void enableSelfView(boolean val);",
"@Override\r\n public boolean onGroupClick(ExpandableListView parent, View v,\r\n int groupPosition, long id) {\n return false;\r\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {\n return false;\n }",
"private void setDeepEnabled(boolean value) {\n ArrayList<Component> components = new ArrayList<Component>();\n components.add(this);\n while (!components.isEmpty()) {\n Component com = components.remove(0);\n com.setEnabled(value);\n if (com instanceof Container) {\n Collections.addAll(components, ((Container) com).getComponents());\n }\n }\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n return false;\n }",
"public void setChildrenDrawingOrderEnabledCompat(boolean r7) {\n /*\n r6 = this;\n int r0 = android.os.Build.VERSION.SDK_INT\n r1 = 7\n if (r0 < r1) goto L_0x002a\n java.lang.reflect.Method r0 = r6.mSetChildrenDrawingOrderEnabled\n r1 = 0\n r2 = 1\n if (r0 != 0) goto L_0x001c\n java.lang.Class<android.view.ViewGroup> r0 = android.view.ViewGroup.class\n java.lang.String r3 = \"setChildrenDrawingOrderEnabled\"\n java.lang.Class[] r4 = new java.lang.Class[r2] // Catch:{ NoSuchMethodException -> 0x001c }\n java.lang.Class r5 = java.lang.Boolean.TYPE // Catch:{ NoSuchMethodException -> 0x001c }\n r4[r1] = r5 // Catch:{ NoSuchMethodException -> 0x001c }\n java.lang.reflect.Method r0 = r0.getDeclaredMethod(r3, r4) // Catch:{ NoSuchMethodException -> 0x001c }\n r6.mSetChildrenDrawingOrderEnabled = r0 // Catch:{ NoSuchMethodException -> 0x001c }\n L_0x001c:\n java.lang.reflect.Method r0 = r6.mSetChildrenDrawingOrderEnabled // Catch:{ Exception -> 0x002a }\n java.lang.Object[] r2 = new java.lang.Object[r2] // Catch:{ Exception -> 0x002a }\n java.lang.Boolean r7 = java.lang.Boolean.valueOf(r7) // Catch:{ Exception -> 0x002a }\n r2[r1] = r7 // Catch:{ Exception -> 0x002a }\n r0.invoke(r6, r2) // Catch:{ Exception -> 0x002a }\n return\n L_0x002a:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.autonavi.map.widget.RecyclableViewPager.setChildrenDrawingOrderEnabledCompat(boolean):void\");\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n return false;\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n return false;\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n return false;\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n return false;\n }",
"protected void updateEnabled() {\n\t\tFieldGroup control = getUIControl();\n\t\tif (control != null) {\n\t\t\tCollection<? extends IRidget> ridgets = getRidgets();\n\t\t\tfor (IRidget ridget : ridgets) {\n\t\t\t\tridget.setEnabled(isEnabled());\n\t\t\t}\n\t\t\tcontrol.setEnabled(isEnabled());\n\t\t}\n\t}",
"@Override\n\tpublic void onEnable() {\n\t\tsetGMEventHandler(new GroupManagerEventHandler(this));\n\t\tonEnable(false);\n\t}",
"public final void m15087c() {\n synchronized (this.f20399d) {\n this.f20409o = false;\n setEnabled(true);\n this.f20399d.setEnabled(true);\n }\n ViewTreeObserver viewTreeObserver = this.f20399d.getViewTreeObserver();\n if (viewTreeObserver.isAlive()) {\n viewTreeObserver.dispatchOnGlobalLayout();\n }\n }",
"@Override\n protected void onBindView(final View view) {\n ViewGroup viewGroup= (ViewGroup)view;\n clearListenerInViewGroup(viewGroup);\n super.onBindView(view);\n }",
"@Override\n public void setVisibility(int visibility) {\n // For some reason FrameView does not forward visiblity to it children. So we manually\n // override it to do so. That way when this view is invisible or gone we don't show an ad.\n int originalVisiblity = super.getVisibility();\n\n if (originalVisiblity != visibility) {\n synchronized (this) {\n // Forward the visibility event to all the children.\n int children = getChildCount();\n\n for (int i = 0; i < children; i++) {\n View child = getChildAt(i);\n child.setVisibility(visibility);\n }\n\n // Continue processing the event.\n super.setVisibility(visibility);\n\n // Get or remove ads depending on visiblity.\n if (visibility == View.VISIBLE) {\n requestFreshAd();\n } else {\n // Remove the old ad so we fade into the new one.\n removeView(ad);\n ad = null;\n invalidate();\n }\n }\n }\n }",
"private void setExpandableLayoutVisiblity(){\n if(mExpandToggleBtn.isChecked()){\n mExpandableLayout.setVisibility(View.VISIBLE);\n }\n // if expand is set to false, then hide the expandable layout\n else{\n mExpandableLayout.setVisibility(View.GONE);\n }\n }",
"private void setUpGeneralFeatures(View view) {\n if(!(view instanceof EditText)) {\n view.setOnTouchListener(new View.OnTouchListener() {\n public boolean onTouch(View v, MotionEvent event) {\n hideSoftKeyboard();\n return false;\n }\n\n });\n }\n //If a layout container, iterate over children and seed recursion.\n if (view instanceof ViewGroup) {\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n View innerView = ((ViewGroup) view).getChildAt(i);\n setUpGeneralFeatures(innerView);\n }\n }\n }",
"private static boolean isChildrenBlacklistedViewGroup(@NonNull ViewGroup view) {\n return view instanceof ListView || view instanceof RecyclerView || view instanceof TabLayout;\n }",
"@Override\n public void onClick(View v) {\n boolean enable = true;\n if(nextPhysicianAvailableCheckbox.isChecked()) {\n enable = false;\n }\n for (int i = 0; i < nearbyPhysicianListLayout.getChildCount(); i++) {\n nearbyPhysicianListLayout.getChildAt(i).setEnabled(enable);\n }\n }",
"private void enforceView()\n {\n if (!visible)\n {\n StackPane sPane = (StackPane) this.temperatureView.getParent();\n\n ObservableList<Node> list = sPane.getChildren();\n for (Node node : list)\n {\n node.setVisible(false);\n }\n\n this.temperatureView.setVisible(true);\n }\n }",
"@Override\r\n public boolean onChildClick(ExpandableListView parent, View v,\r\n int groupPosition, int childPosition, long id) {\n return false;\r\n }",
"public void a(ArrayList<View> arrayList, View view) {\n if (view.getVisibility() == 0) {\n boolean z = view instanceof ViewGroup;\n ViewGroup viewGroup = view;\n if (z) {\n ViewGroup viewGroup2 = (ViewGroup) view;\n boolean a = q.a(viewGroup2);\n viewGroup = viewGroup2;\n if (!a) {\n int childCount = viewGroup2.getChildCount();\n for (int i = 0; i < childCount; i++) {\n a(arrayList, viewGroup2.getChildAt(i));\n }\n return;\n }\n }\n arrayList.add(viewGroup);\n }\n }",
"public void disableAll(){\n\t\t\taddC1.setEnabled(false);\n\t\t\taddC2.setEnabled(false);\n\t\t\taddC3.setEnabled(false);\n\t\t\taddC4.setEnabled(false);\n\t\t\taddC5.setEnabled(false);\n\t\t\taddC6.setEnabled(false);\n\t\t\taddC7.setEnabled(false);\n\t\t}",
"final public void setAffectsGroup(boolean value) {\n affectsGroup = value;\n }",
"public void updateAllViews()\r\n { for (IView view : this.views)\r\n { view.updateView();\r\n }\r\n }",
"@Override\n\t\t\tpublic void onOff() {\n\t\t\t\t((ExpandableListView) parent).collapseGroup(groupPosition);\n\t\t\t\ttextMode.setText(\"OFF\");\n\t\t\t\tgroupLayLeft.setBackgroundResource(R.drawable.list_item_corner);\n\t\t\t\tgroupLayRight.setBackgroundResource(R.drawable.list_item_corner);\n\t\t\t}",
"public void registerProgressableContentFramesIn(ViewGroup viewTree) {\n // If the root of the view tree is a progressable content frame, add it to the set\n if (viewTree instanceof ProgressableContentFrame) {\n progressableContentFrames.put(viewTree.getId(), (ProgressableContentFrame) viewTree);\n }\n\n // Iterate through children of this view group\n for (int i = 0; i < viewTree.getChildCount(); i++) {\n View child = viewTree.getChildAt(i);\n // If we find a ProgressableContentFrame, add it to the set\n if (child instanceof ProgressableContentFrame) {\n progressableContentFrames.put(child.getId(), (ProgressableContentFrame) child);\n // Continue searching within this content frame\n registerProgressableContentFramesIn((ViewGroup) child);\n }\n // If we find a ViewGroup, recursively call this method on it\n else if (child instanceof ViewGroup) {\n registerProgressableContentFramesIn((ViewGroup) child);\n }\n }\n }",
"public void attachToRoot() {\n final ViewGroup contentView = getActivityContentView();\n contentView.getChildAt(0).setVisibility(View.INVISIBLE);\n\n ViewCompat.setElevation(this, Float.MAX_VALUE);\n\n contentView.addView(this, 0, new ViewGroup.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.MATCH_PARENT\n ));\n }",
"private void enableView(View view, boolean enable){\n if (view != null && (view.isEnabled() != enable))\n view.setEnabled(enable);\n }",
"public void myGroupBtn(View view) {\n Intent i = new Intent(getApplicationContext(), MyGroup.class);\n // Removes animation\n i.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n startActivity(i);\n }",
"public void onClick(View view) {\n ArrayList<View> subViews = getSubViews(view);\n if (!subViews.isEmpty()) {\n int visibility = subViews.get(0).getVisibility() == View.VISIBLE\n ? View.GONE : View.VISIBLE;\n for (View subView : subViews) {\n subView.setVisibility(visibility);\n }\n }\n }",
"private void disabilitarBotao(View v){\n v.setEnabled(false);\n }",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n return false;\n }",
"public void enableDisableAllControlElements(boolean disable){\n for(Button button : allButtons){\n button.setDisable(disable);\n }\n filterValueTextField.setDisable(disable);\n }",
"public void removeAnswers(){\n for(int i=0;i<gridView.getChildCount();i++){\n final View child = gridView.getChildAt(i);\n if(Build.VERSION.SDK_INT>15){\n child.animate().alpha(0).setDuration(300).withEndAction(new Runnable() {\n @Override\n public void run() {\n child.setVisibility(View.GONE);\n }\n });}else{ child.setAlpha(0);\n child.setVisibility(View.GONE);}\n }\n\n }",
"protected boolean isChildrenResizeDisabled() {\n return false; // by default must resize children upon setSize() on view\n }",
"@Override\n public void dispose() {\n if (parent != null) {\n parent.setEnabled(true);\n }\n super.dispose();\n }",
"public static void disableViewPane(Pane... panes) {\n\t\tfor (Pane pane : panes) {\n\t\t\tpane.setVisible(false);\n\t\t}\n\t}",
"@Override\n public boolean onChildClick(ExpandableListView parent, View v,\n int groupPosition, int childPosition, long id) {\n return false;\n }",
"private void disableEmptyView() {\n mRecyclerView.setVisibility(View.VISIBLE);\n emptyViewRoot.setVisibility(View.GONE);\n emptyViewBudddyUp.setVisibility(View.GONE);\n emptyViewPickUp.setVisibility(View.GONE);\n emptyViewNoInternet.setVisibility(View.GONE);\n }",
"public boolean onGroupClick(ExpandableListView parent, View v,int groupPosition, long id) {\n\t\t\t return false;\r\n\t\t\t}",
"@Override\n public boolean isChildSelectable(int groupPosition, int childPosition) {\n return false;\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {\n if (parent.getExpandableListAdapter().getChildrenCount(groupPosition) == 0) {\n elv.collapseGroup(groupPosition);\n }\n return false;\n }",
"private void setViews() {\n\n }",
"private void freezeChildNavControl()\n\t{\n\t\t//freeze nav controls\n\t\tnavPanel.freezeNavControls();\n\t\tfor (TablePanel childPanel : SubTablePanels.values()) {\n\t\t\tchildPanel.freezeChildNavControl();\n\t\t}\n\t}",
"protected void removeAllChildren() {\n if (mRecycleBin != null) {\n int childCount = getChildCount();\n for (int i = 0; i < childCount; i++) {\n View child = getChildAt(i);\n mRecycleBin.addScrapView(child);\n }\n }\n detachAllViewsFromParent();\n }",
"public void detachFromRoot() {\n final ViewGroup contentView = getActivityContentView();\n\n if (contentView.equals(getParent())) {\n contentView.removeView(this);\n contentView.getChildAt(0).setVisibility(View.VISIBLE);\n contentView.requestLayout();\n contentView.invalidate();\n }\n }",
"public void clearChildren() {\n //View parent = getParent();\n //children.forEach(child -> child.setParent(parent));\n children.clear();\n this.invalidate();\n }",
"private void enableControls(boolean b) {\n\n\t}",
"@Override\n public boolean isChildSelectable(int groupPosition, int childPosition) {\n\n return true;\n }",
"@Override\r\n public void onClick(View v) {\n mDeleteBtn.setVisibility(View.GONE);\r\n showDeleteDialog(\"\" + groupPosition, \"\" + childPosition);\r\n }",
"@Override\n\tprotected void updateUI() {\n\t\tmDisableSave = true;\n\n\t\t// Set visibility based on edit mode\n\t\tsuper.updateUI();\n\n\t\tif (mEditMode) {\n\t\t\tmDiveSiteLocationViewContainer.setVisibility(View.GONE);\n\t\t\tmDiveSiteDescriptionView.setVisibility(View.GONE);\n\t\t\tmDiveSiteDifficultyView.setVisibility(View.GONE);\n\t\t\tmDiveSiteDirectionsView.setVisibility(View.GONE);\n\t\t\tmDiveSiteHistoryView.setVisibility(View.GONE);\n\t\t\tmDiveSiteNotesView.setVisibility(View.GONE);\n\t\t\tmDiveSiteSourceView.setVisibility(View.GONE);\n\t\t\tmDiveSiteNameEdit.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteRating.setIsIndicator(false);\n\t\t\tmDiveSiteLocationEditContainer.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteDescriptionEdit.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteDifficultyEdit.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteCoordinatesEditContainer.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteDirectionsEdit.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteHistoryEdit.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteNotesEdit.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteSourceEdit.setVisibility(View.VISIBLE);\n\t\t} else {\n\t\t\tmDiveSiteLocationViewContainer.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteDescriptionView.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteDifficultyView.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteDirectionsView.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteHistoryView.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteNotesView.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteSourceView.setVisibility(View.VISIBLE);\n\t\t\tmDiveSiteNameEdit.setVisibility(View.GONE);\n\t\t\tmDiveSiteRating.setIsIndicator(true);\n\t\t\tmDiveSiteLocationEditContainer.setVisibility(View.GONE);\n\t\t\tmDiveSiteDescriptionEdit.setVisibility(View.GONE);\n\t\t\tmDiveSiteDifficultyEdit.setVisibility(View.GONE);\n\t\t\tmDiveSiteCoordinatesEditContainer.setVisibility(View.GONE);\n\t\t\tmDiveSiteDirectionsEdit.setVisibility(View.GONE);\n\t\t\tmDiveSiteHistoryEdit.setVisibility(View.GONE);\n\t\t\tmDiveSiteNotesEdit.setVisibility(View.GONE);\n\t\t\tmDiveSiteSourceEdit.setVisibility(View.GONE);\n\t\t}\n\n\t\tupdateMapViewHeight();\n\n\t\t// Set UI elements with current diveSite\n\t\tif (mDiveSite != null) {\n\n\t\t\tmDiveSiteNameEdit.setText(mDiveSite.getName());\n\t\t\tgetActivity().setTitle(mDiveSite.getName());\n\n\t\t\tif (mDiveSite.getRatingCount() == 0) {\n\t\t\t\tmDiveSiteRating.setRating(0);\n\t\t\t} else {\n\t\t\t\tmDiveSiteRating.setRating(mDiveSite.getTotalRating() / mDiveSite.getRatingCount());\n\t\t\t}\n\n\t\t\tmDiveSiteDifficultyView\n\t\t\t\t\t.setText(mDiveSite.getDifficulty().getName());\n\t\t\tmDiveSiteCityView.setText(mDiveSite.getCity());\n\t\t\tmDiveSiteProvinceView.setText(mDiveSite.getProvince());\n\n\t\t\tif (mDiveSite.getCity().isEmpty()\n\t\t\t\t\t|| mDiveSite.getProvince().isEmpty()) {\n\t\t\t\tmDiveSiteCityProvinceComma.setVisibility(View.INVISIBLE);\n\t\t\t} else {\n\t\t\t\tmDiveSiteCityProvinceComma.setVisibility(View.VISIBLE);\n\t\t\t}\n\n\t\t\tmDiveSiteCountryView.setText(mDiveSite.getCountry());\n\n\t\t\tif (mDiveSite.isSalty()) {\n\t\t\t\tmDiveSiteIndicatorSalt\n\t\t\t\t\t\t.setImageResource(R.drawable.divesite_salt_enabled_icon);\n\t\t\t} else {\n\t\t\t\tmDiveSiteIndicatorSalt\n\t\t\t\t\t\t.setImageResource(R.drawable.divesite_salt_disabled_icon);\n\t\t\t}\n\n\t\t\tif (!mDiveSite.isSalty()) {\n\t\t\t\tmDiveSiteIndicatorFresh\n\t\t\t\t\t\t.setImageResource(R.drawable.divesite_fresh_enabled_icon);\n\t\t\t} else {\n\t\t\t\tmDiveSiteIndicatorFresh\n\t\t\t\t\t\t.setImageResource(R.drawable.divesite_fresh_disabled_icon);\n\t\t\t}\n\n\t\t\tif (mDiveSite.isShoreDive()) {\n\t\t\t\tmDiveSiteIndicatorShore\n\t\t\t\t\t\t.setImageResource(R.drawable.divesite_shore_enabled_icon);\n\t\t\t} else {\n\t\t\t\tmDiveSiteIndicatorShore\n\t\t\t\t\t\t.setImageResource(R.drawable.divesite_shore_disabled_icon);\n\t\t\t}\n\n\t\t\tif (mDiveSite.isBoatDive()) {\n\t\t\t\tmDiveSiteIndicatorBoat\n\t\t\t\t\t\t.setImageResource(R.drawable.divesite_boat_enabled_icon);\n\t\t\t} else {\n\t\t\t\tmDiveSiteIndicatorBoat\n\t\t\t\t\t\t.setImageResource(R.drawable.divesite_boat_disabled_icon);\n\t\t\t}\n\n\t\t\tif (mDiveSite.isWreck()) {\n\t\t\t\tmDiveSiteIndicatorWreck\n\t\t\t\t\t\t.setImageResource(R.drawable.divesite_wreck_enabled_icon);\n\t\t\t} else {\n\t\t\t\tmDiveSiteIndicatorWreck\n\t\t\t\t\t\t.setImageResource(R.drawable.divesite_wreck_disabled_icon);\n\t\t\t}\n\n\t\t\tmDiveSiteDescriptionView.setText(Html.fromHtml(mDiveSite\n\t\t\t\t\t.getDescription()));\n\t\t\tmDiveSiteCityEdit.setText(mDiveSite.getCity());\n\t\t\tmDiveSiteProvinceEdit.setText(mDiveSite.getProvince());\n\t\t\tmDiveSiteCountryEdit\n\t\t\t\t\t.setSelection(findCountrySelectionPosition(mDiveSite\n\t\t\t\t\t\t\t.getCountry()));\n\t\t\tmDiveSiteDescriptionEdit.setText(mDiveSite.getDescription());\n\t\t\tmDiveSiteDifficultyEdit\n\t\t\t\t\t.setText(mDiveSite.getDifficulty().getName());\n\n\t\t\tmDiveSiteLatitudeEdit.setText(String.valueOf(mDiveSite\n\t\t\t\t\t.getLatitude()));\n\t\t\tmDiveSiteLongitudeEdit.setText(String.valueOf(mDiveSite\n\t\t\t\t\t.getLongitude()));\n\n\t\t\tif (!mEditMode && mDiveSite.getDirections().trim().isEmpty()) {\n\t\t\t\tmDiveSiteDirectionsTitle.setVisibility(View.GONE);\n\t\t\t\tmDiveSiteDirectionsView.setVisibility(View.GONE);\n\t\t\t} else {\n\t\t\t\tmDiveSiteDirectionsTitle.setVisibility(View.VISIBLE);\n\t\t\t}\n\n\t\t\tif (!mEditMode && mDiveSite.getHistory().trim().isEmpty()) {\n\t\t\t\tmDiveSiteHistoryTitle.setVisibility(View.GONE);\n\t\t\t\tmDiveSiteHistoryView.setVisibility(View.GONE);\n\t\t\t} else {\n\t\t\t\tmDiveSiteHistoryTitle.setVisibility(View.VISIBLE);\n\t\t\t}\n\n\t\t\tif (!mEditMode && mDiveSite.getNotes().trim().isEmpty()) {\n\t\t\t\tmDiveSiteNotesTitle.setVisibility(View.GONE);\n\t\t\t\tmDiveSiteNotesView.setVisibility(View.GONE);\n\t\t\t} else {\n\t\t\t\tmDiveSiteNotesTitle.setVisibility(View.VISIBLE);\n\t\t\t}\n\n\t\t\tmDiveSiteDirectionsView.setText(Html.fromHtml(mDiveSite\n\t\t\t\t\t.getDirections()));\n\t\t\tmDiveSiteDirectionsEdit.setText(mDiveSite.getDirections());\n\t\t\tmDiveSiteHistoryView.setText(Html.fromHtml(mDiveSite.getHistory()));\n\t\t\tmDiveSiteHistoryEdit.setText(mDiveSite.getHistory());\n\t\t\tmDiveSiteNotesView.setText(Html.fromHtml(mDiveSite.getNotes()));\n\t\t\tmDiveSiteNotesEdit.setText(mDiveSite.getNotes());\n\t\t\tmDiveSiteSourceView.setText(Html.fromHtml(mDiveSite.getSource()));\n\t\t\tmDiveSiteSourceEdit.setText(mDiveSite.getSource());\n\t\t\tmDiveSiteSubmitterView.setText(mDiveSite.getUsername());\n\n mDiveSiteSubmitterImage.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent i = new Intent(getActivity(), DiverActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n i.putExtra(DiverActivity.EXTRA_DIVER_ID, mDiveSite.getUserId());\n i.putExtra(DiverActivity.EXTRA_DIVER_USERNAME, mDiveSite.getUsername());\n startActivity(i);\n }\n });\n\n DiveSiteOnlineDatabaseLink diveSiteOnlineDatabaseLink = new DiveSiteOnlineDatabaseLink(getActivity());\n diveSiteOnlineDatabaseLink.setDiveSiteOnlineLoaderListener(new DiveSiteOnlineDatabaseLink.OnlineDiveDataListener() {\n\n @Override\n public void onOnlineDiveDataRetrievedComplete(\n ArrayList<Object> resultList,\n String message, Boolean isError) {\n if (resultList.size() > 0) {\n // Now get bitmap profile image for diver if available\n Diver diver = (Diver) resultList.get(0);\n if (!diver.getPictureURL().trim().isEmpty()) {\n LoadOnlineImageTask task = new LoadOnlineImageTask(mDiveSiteSubmitterImage);\n task.execute(diver.getPictureURL());\n }\n }\n }\n\n @Override\n public void onOnlineDiveDataProgress(\n Object result) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void onOnlineDiveDataPostBackground(\n ArrayList<Object> resultList,\n String message) {\n // TODO Auto-generated method stub\n\n }\n });\n diveSiteOnlineDatabaseLink.getUser(String.valueOf(mDiveSite.getUserId()), \"\", \"\");\n\n\t\t}\n\n\t\tmDisableSave = false;\n\t}",
"protected void childrenChanged() {\n proxyGroup.childrenChanged();\n }",
"void disableFolderCollectionPanel();",
"private void setViews4Display() {\n nameView.setFocusable(false);\n nameView.setClickable(false);\n nameView.setInputType(InputType.TYPE_NULL);\n\n ageView.setFocusable(false);\n ageView.setClickable(false);\n ageView.setInputType(InputType.TYPE_NULL);\n\n phoneView.setFocusable(false);\n phoneView.setClickable(false);\n phoneView.setInputType(InputType.TYPE_NULL);\n\n workView.setFocusable(false);\n workView.setClickable(false);\n workView.setInputType(InputType.TYPE_NULL);\n\n emailView.setFocusable(false);\n emailView.setClickable(false);\n emailView.setInputType(InputType.TYPE_NULL);\n\n save.setVisibility(View.GONE);\n\n if (nameView.getText().toString().equals(\"\"))\n nameView.setVisibility(View.GONE);\n if (ageView.getText().toString().equals(\"\"))\n ageView.setVisibility(View.GONE);\n if (emailView.getText().toString().equals(\"\"))\n emailView.setVisibility(View.GONE);\n if (workView.getText().toString().equals(\"\"))\n workView.setVisibility(View.GONE);\n if (phoneView.getText().toString().equals(\"\"))\n phoneView.setVisibility(View.GONE);\n\n // check if user have past activities\n int childCount = past_activities.getChildCount();\n if (childCount == 1)\n past_activities.setVisibility(View.GONE);\n }",
"boolean hasGroupPlacementView();",
"private void setVisibilityToViewList(boolean z) {\n CopyOnWriteArrayList<NetworkSpeedView> copyOnWriteArrayList = this.mViewList;\n if (copyOnWriteArrayList != null) {\n Iterator<NetworkSpeedView> it = copyOnWriteArrayList.iterator();\n while (it.hasNext()) {\n it.next().setVisibilityByController(z);\n }\n }\n }",
"private void m125681a(View view, int i) {\n if (view != null) {\n view.setVisibility(i);\n }\n }",
"@Override\r\n public boolean isChildSelectable(int groupPosition, int childPosition) {\n return true;\r\n }",
"public void setGroupVisible(int group, boolean visible);",
"public void setupUI(View view) {\n\t if(!(view instanceof EditText) || !(view instanceof Button)) {\n\t view.setOnTouchListener(new OnTouchListener() {\n\t public boolean onTouch(View v, MotionEvent event) {\n\t hideSoftKeyboard(ActionActivity.this);\n\t return false;\n\t }\n\t });\n\t }\n\n\t //If a layout container, iterate over children and seed recursion.\n\t if (view instanceof ViewGroup) {\n\t for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n\t View innerView = ((ViewGroup) view).getChildAt(i);\n\t setupUI(innerView);\n\t }\n\t }\n\t}",
"public void run() {\n gridView.getChildAt(childPosition).setSelected(true);\n }",
"public static void enablePane(Pane... panes) {\n\t\tfor (Pane pane : panes) {\n\t\t\tpane.setVisible(true);\n\t\t}\n\t}",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tif(gridView.getVisibility() != View.VISIBLE){\n\t\t\t\t\t\n\t\t\t\t\tgridView.setVisibility(View.VISIBLE);\n \t \tdialPad_collapse_iv.setImageResource(R.drawable.ic_action_expand);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}",
"public void enableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(true);\n\t\tbtnStop.setEnabled(true);\n\t\tbtnListenAgain.setEnabled(true);\t\t\n\t}",
"void updateObscuredViewsVisibility(View view) {\n int n2;\n int n3;\n int n4;\n int n5;\n int n6 = this.getPaddingLeft();\n int n7 = this.getWidth();\n int n8 = this.getPaddingRight();\n int n9 = this.getPaddingTop();\n int n10 = this.getHeight();\n int n11 = this.getPaddingBottom();\n if (view != null && SlidingPaneLayout.viewIsOpaque(view)) {\n n2 = view.getLeft();\n n5 = view.getRight();\n n4 = view.getTop();\n n3 = view.getBottom();\n } else {\n n3 = 0;\n n4 = 0;\n n5 = 0;\n n2 = 0;\n }\n int n12 = 0;\n int n13 = this.getChildCount();\n View view2;\n while (n12 < n13 && (view2 = this.getChildAt(n12)) != view) {\n int n14 = Math.max(n6, view2.getLeft());\n int n15 = Math.max(n9, view2.getTop());\n int n16 = Math.min(n7 - n8, view2.getRight());\n int n17 = Math.min(n10 - n11, view2.getBottom());\n n14 = n14 >= n2 && n15 >= n4 && n16 <= n5 && n17 <= n3 ? 4 : 0;\n view2.setVisibility(n14);\n ++n12;\n }\n return;\n }",
"private void disableButtons()\r\n {\r\n }",
"public void setupUI(View view) {\n if(!(view instanceof EditText)) {\n\n view.setOnTouchListener(new View.OnTouchListener() {\n\n public boolean onTouch(View v, MotionEvent event) {\n hideSoftKeyboard(BaseActivity.this);\n return false;\n }\n\n });\n }\n\n //If a layout container, iterate over children and seed recursion.\n if (view instanceof ViewGroup) {\n\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n\n View innerView = ((ViewGroup) view).getChildAt(i);\n\n setupUI(innerView);\n }\n }\n }",
"@Override\n public boolean isChildSelectable(int groupPosition, int childPosition) {\n return true;\n }",
"@Override\n public boolean isChildSelectable(int groupPosition, int childPosition) {\n return true;\n }",
"@Override\n public boolean isChildSelectable(int groupPosition, int childPosition) {\n return true;\n }",
"@Override\n public boolean isChildSelectable(int groupPosition, int childPosition) {\n return true;\n }",
"@Override\r\n public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {\n LogManager.i(\"=============OnGroupClickListener\");\r\n\r\n setListener();\r\n return true;\r\n }",
"@Override\n\tpublic boolean updateView(View contentView) {\n\t\treturn false;\n\t}",
"boolean hasProductGroupView();",
"@Override\n public boolean isChildSelectable(int groupPosition, int childPosition)\n {\n return true;\n }",
"@Override\r\n public boolean onTouch(View v, MotionEvent event) {\r\n // Disallow the touch request for parent scroll on touch of child view\r\n v.getParent().requestDisallowInterceptTouchEvent(true);\r\n return false;\r\n }",
"@Override\r\n public boolean onTouch(View v, MotionEvent event) {\r\n // Disallow the touch request for parent scroll on touch of child view\r\n v.getParent().requestDisallowInterceptTouchEvent(true);\r\n return false;\r\n }",
"private void setAllGone() {\n ivOne.setVisibility(View.GONE);\n ivTwo.setVisibility(View.GONE);\n ivThree.setVisibility(View.GONE);\n ivFour.setVisibility(View.GONE);\n ivFive.setVisibility(View.GONE);\n ivSix.setVisibility(View.GONE);\n ivSeven.setVisibility(View.GONE);\n ivEight.setVisibility(View.GONE);\n ivNine.setVisibility(View.GONE);\n }",
"@Override\n public boolean onTouch(View v, MotionEvent event) {\n // Disallow the touch request for parent scroll on touch of child view\n v.getParent().requestDisallowInterceptTouchEvent(true);\n return false;\n }",
"private void updateEnabledState(Container c, boolean enabled) {\n for (int counter = c.getComponentCount() - 1; counter >= 0;counter--) {\n Component child = c.getComponent(counter);\n child.setEnabled(enabled);\n if (child instanceof Container) {\n updateEnabledState((Container)child, enabled); } } }",
"public void setupUI(View view) {\n if(!(view instanceof EditText)) {\n\n view.setOnTouchListener(new View.OnTouchListener() {\n\n public boolean onTouch(View v, MotionEvent event) {\n hideSoftKeyboard(NavActivity.this);\n return false;\n }\n\n });\n }\n\n //If a layout container, iterate over children and seed recursion.\n if (view instanceof ViewGroup) {\n\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n\n View innerView = ((ViewGroup) view).getChildAt(i);\n\n setupUI(innerView);\n }\n }\n }",
"public void enableSliderBoxes() {\n indexSlider.setDisable(false);\n radiusSlider.setDisable(false);\n objectPositionSlider.setDisable(false);\n objectHeightSlider.setDisable(false);\n principleBox.setDisable(false);\n pickPicture.setDisable(false);\n }",
"@Override\n protected void onLayout(boolean b, int left, int top, int right, int bottom) {\n int childCount = this.getChildCount();\n for(int i = 0; i < childCount; i++) {\n View child = this.getChildAt(i);\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n child.layout(lp.x, lp.y, lp.x + child.getMeasuredWidth(), lp.y + child.getMeasuredHeight());\n }\n\n }"
] | [
"0.71155083",
"0.63976204",
"0.5952395",
"0.571347",
"0.56684524",
"0.55791557",
"0.55778843",
"0.55615675",
"0.5462785",
"0.54549795",
"0.54470474",
"0.54468936",
"0.5403705",
"0.53642094",
"0.5344232",
"0.53337723",
"0.5308289",
"0.5299287",
"0.52320576",
"0.52316177",
"0.5214478",
"0.5197673",
"0.51918566",
"0.51918566",
"0.51918566",
"0.51918566",
"0.518274",
"0.5170195",
"0.5154679",
"0.5132179",
"0.51051044",
"0.5053476",
"0.5040218",
"0.50350755",
"0.50271237",
"0.49918115",
"0.4962836",
"0.49574646",
"0.49539417",
"0.49381936",
"0.49367392",
"0.4934535",
"0.49260506",
"0.49247175",
"0.4921914",
"0.4909604",
"0.49040416",
"0.489994",
"0.48854434",
"0.48785296",
"0.48758465",
"0.48727816",
"0.48608592",
"0.48405734",
"0.4834537",
"0.48328477",
"0.48209113",
"0.48079816",
"0.48013037",
"0.48001364",
"0.47878215",
"0.4785837",
"0.47733262",
"0.476928",
"0.47661436",
"0.47599062",
"0.4737082",
"0.47355786",
"0.47331437",
"0.47278723",
"0.47234583",
"0.47146085",
"0.47070467",
"0.47012013",
"0.46996364",
"0.4699474",
"0.469267",
"0.4685514",
"0.46771774",
"0.46666938",
"0.46609282",
"0.465896",
"0.4656135",
"0.464952",
"0.4648889",
"0.4648889",
"0.4648889",
"0.4648889",
"0.46415687",
"0.46410543",
"0.46394295",
"0.463766",
"0.46366444",
"0.46366444",
"0.46262264",
"0.4624831",
"0.4618457",
"0.46180862",
"0.46097085",
"0.46042976"
] | 0.67279285 | 1 |
Setter for shipping cost | public void setshippingcost() {
shippingcost = getweight() * 3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setShipping(BigDecimal shipping);",
"public void setShippingCost(double shippingCost) {\n\t\tthis.shippingCost = shippingCost;\n\t}",
"public void setCost(double value) {\n this.cost = value;\n }",
"public PaymentRequest setShippingCost(BigDecimal cost) {\r\n if (shipping == null) {\r\n shipping = new Shipping();\r\n }\r\n shipping.setCost(cost);\r\n return this;\r\n }",
"public void setCost(double cost){\n this.cost = cost;\n }",
"void setCost(double cost);",
"public void setCost(BigDecimal cost) {\r\n this.cost = cost;\r\n }",
"public void setCost(double cost) {\r\n this.cost = cost;\r\n }",
"public void setCost(double cost) {\n this.cost = cost;\n }",
"protected void setCost(double cost) \r\n\t{\tthis.cost = cost;\t}",
"public double getshippingcost() {\r\n\t\treturn shippingcost;\r\n\t}",
"double setCost(double cost);",
"public void setCost(Number cost)\r\n {\r\n m_cost = cost;\r\n }",
"public void setCost(double cost) {\n\t\tthis.cost = cost;\n\t}",
"public void setCost(double cost) {\n\n\t\tthis.cost = cost;\n\t}",
"public double getShippingCost() {\n\t\treturn shippingCost;\n\t}",
"public final void setCost(java.math.BigDecimal cost)\n\t{\n\t\tsetCost(getContext(), cost);\n\t}",
"public void setCost(int cost) {\n \t\tthis.cost = cost;\n \t}",
"double setEstimatedCost(double cost);",
"public void setCost(int c) {\r\n this.cost = c;\r\n }",
"@Override\r\n\tpublic void setCost(double newCost) {\n\r\n\t}",
"@IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.COST,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.XBEDEWORK_COST,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)}\n )\n public void setCost(final String val) {\n cost = val;\n }",
"@Override\n\tprotected void setCost(double cst) {\n\t\t\n\t}",
"public void setCost(int cost) {\n\t\tthis.cost = cost;\n\t}",
"BigDecimal getShipping();",
"@Autowired\n\tpublic void setCost(@Value(\"${repair.cost}\") int cost) {\n\t\tthis.cost = oneOrMore(cost);\n\t}",
"public final void setCost(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal cost)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Cost.toString(), cost);\n\t}",
"public double calculateShipping() {\n shipAmount = (SHIPPINGCOST);\n\n return shipAmount;\n }",
"public void setCost(Integer cost) {\n this.cost = cost;\n }",
"@Override\n public void setCost( double cost ) {\n throw new UnsupportedOperationException( \"Not supported yet.\" );\n }",
"public void setCost(Integer cost) {\r\n\t\tthis.cost = cost;\r\n\t}",
"public BigDecimal getCost() {\r\n return cost;\r\n }",
"public void setCost(Money obj){\r\n \t//check if the object is null or not an instance of Money\r\n if(obj == null || !(obj instanceof Money)){\r\n \t//throw an exception\r\n throw new PizzaException(\"Exception in the setCost method: the object is null or not an instance of money\");\r\n }\r\n //casting\r\n Money m = (Money) obj;\r\n //set the cost to the clone of m\r\n this.cost = m.clone();\r\n }",
"public void setCost(double cost) {\n /**\n * @return sets the cost of the Ice Cream with the double argument\n */\n this.cost = cost;\n }",
"@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}",
"public PaymentRequest setShipping(ShippingType type, String country, String state, String city, String district,\r\n String postalCode, String street, String number, String complement, BigDecimal cost) {\r\n\r\n setShipping(type, country, state, city, district, postalCode, street, number, complement);\r\n shipping.setCost(cost);\r\n\r\n return this;\r\n\r\n }",
"public void setShippingAddressInCart(Address addr);",
"public void setCost(int[] cost){\n\t\tthis.cost = cost;\n\t}",
"@NotNull\n public BigDecimal getCost() {\n return cost;\n }",
"public void setCostOverride(double costOverride) {\n\t\tthis.costOverride = costOverride;\n\t}",
"public void setCostPrice(BigDecimal costPrice) {\n this.costPrice = costPrice;\n }",
"public BigDecimal getCost() {\n return this.cost;\n }",
"public void set_cost(int value) {\n setUIntElement(offsetBits_cost(), 16, value);\n }",
"public void setCost (BigDecimal Cost)\n{\nif (Cost == null) throw new IllegalArgumentException (\"Cost is mandatory\");\nset_Value (\"Cost\", Cost);\n}",
"public BigDecimal getCostPrice() {\n return costPrice;\n }",
"public String getCost() {\n return cost;\n }",
"@Override\n public double cost()\n {\n return this.price * this.number;\n }",
"public void setShippingAmount(MMDecimal shippingAmount) {\r\n this.shippingAmount = shippingAmount;\r\n }",
"@Override\n public double getCost() {\n return cost;\n }",
"public double getCost() {\r\n return cost;\r\n }",
"public double getCost() {\n return price;\n }",
"public void setCost(final float newCost) {\r\n\t\tthis.cost = new Float(newCost);\r\n\t}",
"@Override\r\n public int getCost() {\r\n return cost;\r\n }",
"public double getCost() {\n return cost;\n }",
"public double getCost() {\n return cost;\n }",
"public void setDelivery(double pDelivery) {\n mDelivery = pDelivery;\n }",
"public double getCost(){\n return cost;\n }",
"public double getCost() {\r\n\t\treturn cost;\r\n\t}",
"public double getCost() \n { \n return super.getCost() +22;\n }",
"public double getCostOverride() {\n\t\treturn costOverride;\n\t}",
"public void setTotalCost(String TotalCost) {\n this.TotalCost = TotalCost;\n }",
"public double getCost() {\r\n\t \treturn(cost);\r\n\t}",
"public MMDecimal getShippingAmount() {\r\n return this.shippingAmount;\r\n }",
"public double getCost() {\t\t \n\t\treturn cost;\n\t}",
"public void setCosts(int cost) {\n\t\tthis.damageCharge = cost;\n\t}",
"public double getCost() {\n\t\treturn cost;\n\t}",
"public int getCost() {\n return cost;\n }",
"public int getCost() {\n return cost;\n }",
"public int getCost() {\n return cost;\n }",
"double calculateDeliveryCost(Cart cart);",
"@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}",
"public double getCost()\r\n\t{\treturn this.cost;\t}",
"public Integer getCost() {\n return cost;\n }",
"public double getCost() {\n\n\t\treturn cost;\n\t}",
"public int getCost(){\r\n\t\treturn this.cost;\r\n\t}",
"@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }",
"public void setTotalCost(float totalCost) {\n this.totalCost = totalCost;\n }",
"@Override\n public double getCost() {\n\t return 13;\n }",
"public void setCostSaving(BigDecimal costSaving) {\r\n this.costSaving = costSaving;\r\n }",
"public int getCost() {\n \t\treturn cost;\n \t}",
"public void setpurchaseCost(double systemPurchaseCost)\n\t{\n\t\tpurchaseCost = systemPurchaseCost;\n\t}",
"public int getCost(){\n return this.cost;\n }",
"public double getCost() {\n\t\treturn costOverride > 0 ? costOverride : getDefaultCost();\n\t}",
"public Integer getCost() {\r\n\t\treturn cost;\r\n\t}",
"public int getCost() {\n\t\treturn cost;\n\t}",
"public double getCost() {\n\t\treturn this.cost;\n\t}",
"public double getCost() {\n\t\treturn this.cost;\n\t}",
"public void setTotalCost(float totalCost)\r\n\t{\r\n\t\tthis.totalCost = totalCost;\r\n\t}",
"public int getCost()\n {\n return cost;\n }",
"@Override\n public int getCost() {\n\n\n //return cost converted to int\n return (int) cost;\n }",
"public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}",
"@Pure\n\tdouble getCost();",
"@Override\r\n\tpublic void addToCost() {\n\t\t\r\n\t}",
"public void setCosts( List<Double> costs)\r\n\t{\r\n\t\tif( costs.size() != _items.size() ) throw new RuntimeException(\"The size of the list of costs should match to the size of the list of sellers (items)\");\r\n\t\t_costs = costs;\r\n\t}",
"public Number getCost()\r\n {\r\n return (m_cost);\r\n }",
"public void setActualCost(Number actualCost)\r\n {\r\n m_actualCost = actualCost;\r\n }",
"public float getCost() {\r\n return defaultCost;\r\n }",
"public void setParidadCosto(double value) {\r\n this.paridadCosto = value;\r\n }",
"public float getCost() {\r\n\t\treturn this.cost.floatValue();\r\n\t}",
"public int getCost()\r\n\t{\n\t\treturn 70000;\r\n\t}"
] | [
"0.7582285",
"0.7574619",
"0.74402666",
"0.74027205",
"0.73514116",
"0.73281276",
"0.7275003",
"0.72646606",
"0.7248047",
"0.7238668",
"0.723485",
"0.71581894",
"0.7117623",
"0.709508",
"0.7040017",
"0.7004513",
"0.696175",
"0.6905739",
"0.6808358",
"0.6798726",
"0.67740333",
"0.6764747",
"0.6763572",
"0.6743867",
"0.6738693",
"0.6703873",
"0.6678668",
"0.6646549",
"0.66152674",
"0.6604053",
"0.65796286",
"0.657647",
"0.6568454",
"0.6518676",
"0.65007824",
"0.6499405",
"0.6497322",
"0.6466926",
"0.645658",
"0.6420916",
"0.64091575",
"0.64061946",
"0.63689965",
"0.6334931",
"0.6329034",
"0.62788785",
"0.62672436",
"0.62585104",
"0.62204105",
"0.62158066",
"0.61979556",
"0.61959875",
"0.6194403",
"0.61929417",
"0.61929417",
"0.61902523",
"0.6152326",
"0.61499816",
"0.61375946",
"0.61338484",
"0.61098677",
"0.6082633",
"0.6077088",
"0.6070716",
"0.6066834",
"0.6059483",
"0.60583895",
"0.60583895",
"0.6052798",
"0.60479575",
"0.6047758",
"0.60266054",
"0.6023177",
"0.6022553",
"0.60017794",
"0.5977871",
"0.5953153",
"0.59511",
"0.5949027",
"0.5948078",
"0.59477246",
"0.5944863",
"0.5942203",
"0.59399366",
"0.59385854",
"0.59372824",
"0.59372824",
"0.5924661",
"0.5922361",
"0.59169745",
"0.59089565",
"0.5908447",
"0.5902798",
"0.5901445",
"0.58943665",
"0.58879036",
"0.5877126",
"0.5876428",
"0.5863868",
"0.5855083"
] | 0.8257012 | 0 |
Getter for shipping cost | public double getshippingcost() {
return shippingcost;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getShippingCost() {\n\t\treturn shippingCost;\n\t}",
"BigDecimal getShipping();",
"public BigDecimal getCost() {\r\n return cost;\r\n }",
"@NotNull\n public BigDecimal getCost() {\n return cost;\n }",
"public BigDecimal getCost() {\n return this.cost;\n }",
"public String getCost() {\n return cost;\n }",
"public double calculateShipping() {\n shipAmount = (SHIPPINGCOST);\n\n return shipAmount;\n }",
"public Number getCost()\r\n {\r\n return (m_cost);\r\n }",
"public double getCost() {\r\n return cost;\r\n }",
"public double getCost() {\n return cost;\n }",
"public double getCost() {\n return cost;\n }",
"@Pure\n\tdouble getCost();",
"public String getCost() {\n // Formats the cost amount into money format.\n NumberFormat n = NumberFormat.getCurrencyInstance(Locale.US);\n String s = n.format(Double.parseDouble(_cost));\n return s;\n }",
"public float getCost() {\r\n\t\treturn this.cost.floatValue();\r\n\t}",
"public Integer getCost() {\n return cost;\n }",
"public double getCost() {\n return price;\n }",
"public double getCost() {\r\n\t\treturn cost;\r\n\t}",
"public double getCost() {\n\t\treturn this.cost;\n\t}",
"public double getCost() {\n\t\treturn this.cost;\n\t}",
"public double getCost() {\t\t \n\t\treturn cost;\n\t}",
"public double getCost() {\n\n\t\treturn cost;\n\t}",
"public double getCost() {\n\t\treturn cost;\n\t}",
"public int getCost() {\n return cost;\n }",
"public int getCost() {\n return cost;\n }",
"public BigDecimal getCostPrice() {\n return costPrice;\n }",
"public Integer getCost() {\r\n\t\treturn cost;\r\n\t}",
"public double getCost()\r\n\t{\treturn this.cost;\t}",
"public int getCost() {\n return cost;\n }",
"public int getCost()\n {\n return cost;\n }",
"public double getCost() {\r\n\t \treturn(cost);\r\n\t}",
"@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}",
"@Override\n public double getCost() {\n return cost;\n }",
"double getCost();",
"double getCost();",
"public int getCost(){\r\n\t\treturn this.cost;\r\n\t}",
"public String getCost() {\n\t\tString t = doc.get(\"cost\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}",
"public double getCost(){\n return cost;\n }",
"public int getCost() {\n \t\treturn cost;\n \t}",
"public String getTotalCost() {\n return this.TotalCost;\n }",
"@Override\r\n public int getCost() {\r\n return cost;\r\n }",
"public double getCost() {\r\n\t\t\r\n\t\tif (super.getSize() == \"Small\") { totalCost = 2.00; }\r\n\t\t\r\n\t\tif (super.getSize() == \"Medium\") { totalCost = 2.50; }\r\n\t\t\r\n\t\tif (super.getSize() == \"Large\") { totalCost = 3.00; }\r\n\t\t\r\n\t\treturn totalCost;\r\n\t}",
"public int getCost() {\n\t\treturn cost;\n\t}",
"public MMDecimal getShippingAmount() {\r\n return this.shippingAmount;\r\n }",
"public CP getProductServiceUnitCost() { \r\n\t\tCP retVal = this.getTypedField(13, 0);\r\n\t\treturn retVal;\r\n }",
"double calculateDeliveryCost(Cart cart);",
"@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}",
"public float getTotalCost() {\n return this.totalCost;\n }",
"public int getCost(){\n return this.cost;\n }",
"public void setshippingcost() {\r\n\t\tshippingcost = getweight() * 3;\r\n\t}",
"public Cost getBuildShipCost() {\n\t\treturn new Cost(buildShipCost);\n\t}",
"public CostInfo getCostInfo();",
"String getTotalCost() {\n return Double.toString(totalCost);\n }",
"public double getTotalCost() {\r\n return totalCost;\r\n }",
"public abstract double getCost();",
"@Override\n public int getCost() {\n\n\n //return cost converted to int\n return (int) cost;\n }",
"@Override\n\tpublic double getSumOfCost() {\n\t String sql=\"SELECT SUM(cost) FROM supplier_product\";\n\t double total=this.getJdbcTemplate().queryForObject(sql, double.class);\n\t\treturn total;\n\t}",
"int getCost();",
"int getCost();",
"int getCost();",
"public java.math.BigDecimal getTotalCost () {\n\t\treturn totalCost;\n\t}",
"public double getCost() {\n return quantity*ppu;\n\n }",
"public double getcost() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn room.getcost() + cost;\r\n\t}",
"public int getCost() {\n/* 69 */ return this.cost;\n/* */ }",
"public double getCost() {\n\t\t\n\t\tdouble cost = 0;\n\t\t\n\t\tif (Objects.equals(Size, \"small\"))\n\t\t\tcost = 7.00;\n\t\telse if (Objects.equals(Size, \"medium\"))\n\t\t\tcost = 9.00;\n\t\telse if (Objects.equals(Size, \"large\"))\n\t\t\tcost = 11.00;\n\t\t\n\t\tcost += (Cheese - 1)*1.50;\n\t\tcost += Ham*1.50;\n\t\tcost += Pepperoni*1.50;\n\t\t\n\t\treturn cost;\t\t\n\t}",
"public Number getActualCost()\r\n {\r\n return (m_actualCost);\r\n }",
"public double cost()\n\t{\n\t\treturn _dblCost;\n\t}",
"public double getCost() {\n\t\treturn costOverride > 0 ? costOverride : getDefaultCost();\n\t}",
"public double getTotal() {\n return totalCost;\n }",
"public Money getCost(){\r\n return this.cost;\r\n }",
"public double getTotalCost() {\r\n\t\treturn cost;\r\n\t}",
"public double getCost() {\n\t\treturn 1.25;\n\t}",
"public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}",
"public int getCost() {\n\t\treturn (int) Math.round(weight*price_per_pound);\n\t\t\n\t}",
"@Pure\n\tdouble getEstimatedCost();",
"public double getCost()\n\t{\n\t\treturn 0.9;\n\t}",
"public int getCost()\n\t{\n\t\treturn m_nTravelCost;\n\t}",
"public int getCost()\r\n\t{\n\t\treturn 70000;\r\n\t}",
"public double getCost() \n { \n return super.getCost() +22;\n }",
"@Override\n public double cost()\n {\n return this.price * this.number;\n }",
"public double getProductCost() {\r\n\t\treturn (this.getPricePerUnit() * this.getNumUnits());\r\n\t}",
"public float getCost() {\r\n return defaultCost;\r\n }",
"public double getCost() {\n return this.product.getPrice() * quanity;\n }",
"public float getSubWC() {\r\n return costs.get(Transports.SUBWAY);\r\n }",
"public abstract int getCost();",
"public abstract int getCost();",
"public abstract int getCost();",
"public ReturnShipping getShipping() {\n return (ReturnShipping) get(\"shipping\");\n }",
"public BigDecimal getUnitCost() {\r\n return unitCost;\r\n }",
"@Override\n\tpublic double getCost() {\n\t\treturn price * weight; // cost = price of the candy * weight of candies\n\t}",
"@Override\r\n\tpublic double getCost() {\n\t\treturn this.cost_of_icecream;\r\n\t}",
"public int cost() {\n\t\treturn value;\n\t}",
"public int[] getCost(){\n\t\treturn this.cost;\n\t}",
"public CostInformation costInformation() {\n return this.innerProperties() == null ? null : this.innerProperties().costInformation();\n }",
"public BigDecimal getCost() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"Cost\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"public CP getPsl13_ProductServiceUnitCost() { \r\n\t\tCP retVal = this.getTypedField(13, 0);\r\n\t\treturn retVal;\r\n }",
"@ApiModelProperty(value = \"The event cost including the currency symbol\")\n public String getCost() {\n return cost;\n }",
"public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }",
"public double getCosts();",
"public double cost()\n\t{\n\t\treturn (price * weight);\n\t}",
"@Override\n public double getCost() {\n if (lunch != null && dinner != null) {\n return lunch.getCost() + dinner.getCost();\n }\n return 0;\n }"
] | [
"0.83077866",
"0.7963081",
"0.7669041",
"0.7662039",
"0.76348305",
"0.7540512",
"0.7511968",
"0.7490097",
"0.74382496",
"0.74339736",
"0.74339736",
"0.7397174",
"0.7385131",
"0.73840797",
"0.73682094",
"0.73665935",
"0.7361109",
"0.7352022",
"0.7352022",
"0.73393273",
"0.7322037",
"0.7319319",
"0.7309172",
"0.7309172",
"0.729609",
"0.7269546",
"0.72563756",
"0.72557116",
"0.7254983",
"0.72460234",
"0.7244538",
"0.72429127",
"0.7224297",
"0.7224297",
"0.719463",
"0.7190256",
"0.7170182",
"0.716799",
"0.7157326",
"0.71509755",
"0.7146174",
"0.713651",
"0.7087553",
"0.708705",
"0.70772576",
"0.7057776",
"0.7056274",
"0.7056157",
"0.7044209",
"0.702286",
"0.7017729",
"0.7005773",
"0.7004276",
"0.700179",
"0.6932415",
"0.6927916",
"0.6923088",
"0.6923088",
"0.6923088",
"0.69151205",
"0.6897632",
"0.6881208",
"0.68750286",
"0.6845697",
"0.6836917",
"0.68224764",
"0.68211234",
"0.6817841",
"0.6806614",
"0.6802306",
"0.6802058",
"0.67889136",
"0.67860156",
"0.6784175",
"0.67755324",
"0.6774225",
"0.677157",
"0.6769531",
"0.6754931",
"0.6737724",
"0.6734179",
"0.67280066",
"0.6727118",
"0.67232424",
"0.67232424",
"0.67232424",
"0.66565764",
"0.66522646",
"0.66500527",
"0.66414624",
"0.66368455",
"0.6631924",
"0.6630853",
"0.66068536",
"0.6604374",
"0.6602189",
"0.66017807",
"0.65906984",
"0.6570707",
"0.6569964"
] | 0.8541161 | 0 |
List al =new ArrayList(); it accepts value of all type(int, char,string etc) | public static void main(String[] args) {
List<String> al =new ArrayList<String>(); // creating object for the array list and map it to the interface-(List)
al.add("India");
al.add("Canada");
al.add("China");
al.add("USA");
al.add("Australia");
al.add(2,"Africa");//inserts data
System.out.println(al.contains("canada"));//finds an value
System.out.println(al.get(0)); // prints "India"
Iterator<String> iter =al.iterator(); // helps to print all the values in the arraylist
while(iter.hasNext()) //hasNext() is a boolean.. it says whether there is next value in a arraylist
{
String country = iter.next();
System.out.println(country);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void m2(ArrayList<?> al)\n\t{\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\t//al.add(10);\n\t\t//al.add(10.5f);\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t}",
"public static void m4(ArrayList<? super Integer> al)\n\t{\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t\tal.add(345);\n\t}",
"public static void main(String[] args) {\n\t\tArrayList rawList = new ArrayList();\n\t\t\n\t\t//collection can hhold any type of data\n\t\trawList.add(\"jai shree ram\");\n\t\trawList.add(23);\n\t\trawList.add(new Object());\n\t\t\n\t\t//problem is here\n\t\tString one = (String) rawList.get(0);\n\t\tint two = (Integer) rawList.get(1);\n\t\tObject three = rawList.get(2);\n\t\tSystem.out.println(one + \" \" + two + \" \"+three);\n\t\t\n\t}",
"public static void main(String[] args)\r\n\t{\nArrayList al = new ArrayList<>();\r\nal.add(10);\r\nal.add(\"manu\");\r\nal.add('m');\r\nObject [] ob=al.toArray();\r\nfor (int i = 0; i < ob.length; i++)\r\n{\r\n\tSystem.out.println(ob[i]);\r\n\t\r\n}\r\n\t}",
"public static void clientFunc(){\n List list = new ArrayList(); //rawtype list\n list.add(10);\n list.add(\"jenkins\");\n list.add(new Object());\n\n //unsafe classcast exception at runtime\n //rawtypes are unsafe\n List<String> stringList = list;\n\n ListIterator listIterator = list.listIterator();\n while(listIterator.hasNext()){\n System.out.println(listIterator.next());\n }\n }",
"public static void m3(ArrayList<? extends Number> al)\n\t{\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t}",
"public static void m5(ArrayList<? super B> al)\n\t{\n\t\t//al.add(\"Marshal Mathers\");\n\t\t//al.add(\"Slim Shady\");\n\t\t//al.add(345);\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t}",
"public static void m1(ArrayList<String> al)\n\t{\n\t\tal.add(\"Marshal Mathers\");\n\t\tal.add(\"Slim Shady\");\n\t\tal.add(\"Bad Meets Evil\");\t\n\t\tal.add(null);\t// null is allowed, because it is valid value for any type\n\t}",
"public static void main(String[] args) {\n\n List list = new ArrayList();\n\n Iterator i = list.iterator();\n\n list.add(1);\n list.add(\"String\");\n list.add(true);\n list.add(12.23d);\n list.add('c');\n\n while (i.hasNext()) {\n System.out.println(\"Using Iterators : \" + i.next());\n }\n\n\n }",
"public static void main(String[] args) {\n List <String> myList = new ArrayList<>();\n myList.add(\"hello\");\n\n List <Integer> myListInt = new ArrayList<>();\n myListInt.add(1);\n }",
"public void addDatatoArrayList(ArrayList<Object> ar1) {\n\t\tar1.add(1);\n\t\tar1.add(\"anu\");\n\t\tar1.add(1.3);\n\t\tar1.add(true);\n\t\tar1.add('&');\n\t\tar1.add(false);\n\t\tSystem.out.println(\"Data aaded to ArrayList\");\n\t}",
"public static void main(String[] args) {\t\n\t\t// \"A wildcard parameterized type is not a concrete type that could appear in a new expression.\"\n\t\t// in https://howtodoinjava.com/java/generics/complete-java-generics-tutorial/\n\t\tList<Number> ls = new ArrayList<>(); //this is right \n\t\tList<? extends Number> ls2 = new ArrayList<Long>(); //this is also right, but now there is no inference typing in the new expression. You have to be explicit\n\t\tList<? extends Number> ls3 = new ArrayList<>(); //this is confusing. What is the type of this List?\n\t\t//List<Number> ls = new ArrayList<Integer>(); //this is wrong and will give a compile error\n\t\t\n\t\tInteger n = Integer.valueOf(20);\n\t\tDouble d = Double.valueOf(20.0);\n\t\tls.add(n);\n\t\tls.add(d);\n\t\t\n\t\tSystem.out.println(n instanceof Number);\n\t\tSystem.out.println(n instanceof Integer);\t\t\n\t\t\n\t\tList<Integer> li = Arrays.asList(1, 2, 3);\n\t\tSystem.out.println(\"sum = \" + sumOfList(li));\t\n\t}",
"public static void main(String[] args) {\n\t\tArrayList <Integer> numList = new ArrayList <>();\n\t\t\n\t\t//numList.add(Integer.parseInt(\"12\"));\n\t\t\n\t\t//ADDING ITEM\n\t\t//We call add method from ArrayList class\n\t\tInteger i = 100; //autoboxing to Integer Object\n\t\tnumList.add(i);\n\t\tnumList.add(200);\n\t\t\n\t\tSystem.out.println(numList);\n\t\t\n\t\t//GETTING SINGLE ITEM FROM ARRAY ARRAYLIST\n\t\tint i2 = numList.get(0); //auto unboxing happens here\n\t\t\n\t\tSystem.out.println(i2);\n\t\tSystem.out.println(numList.get(1)); //It is a method returns a value\n\t}",
"public static void main(String[] args) {\n int[] myIntArray = new int[10]; // int array\n String[] myStringArray = new String[10]; // String array\n\n ArrayList<String> myStringArrayList = new ArrayList<String>(); // String ArrayList\n myStringArrayList.add(\"Peti\");\nclass IntClass {//create an integer class is a lots of code !! use built in function!\n private int integer;\n\n public IntClass(int integer) {\n this.integer = integer;\n }\n\n public int getInteger() {\n return integer;\n }\n\n public void setInteger(int integer) {\n this.integer = integer;\n }\n}\n //ArrayList<int> intArraylist = new ArrayList<int>();\n //this is cannot work because arrayList only can accept objects not primitive types!\n ArrayList<IntClass> intArraylist = new ArrayList<IntClass>();\n intArraylist.add(new IntClass(12)); // too long and messy solution !\n //built in classes !!\n Integer integer = new Integer(12);\n Double doubleValue = new Double(10.34);\n\n ArrayList<Integer> intArrayList = new ArrayList<Integer>();\n for (int i = 0; i<=10; i++){\n intArrayList.add(Integer.valueOf(i)); // this is autoboxing to convert an int to an Integer\n }\n for (int i = 0; i<=10; i++){\n System.out.println(i + \" --> \" + intArrayList.get(i).intValue()); //this is unboxing to convert the Integer value back into an int !!\n }\n //shorter version to doing this becasue Java know this automatically and do it on the background\n Integer myIntValue = 56; //Integer.valueOf(56);\n int myInt = myIntValue; // myIntValue.getValue();\n\n //annother example for auto and unboxing !!\n ArrayList<Double> doubleList = new ArrayList<Double>();\n for (double dbl = 0.0; dbl <= 10.0; dbl+=0.5){\n doubleList.add(dbl); //doubleList.add(Double.valueOf(dbl));\n }\n\n for (int i = 0; i<doubleList.size();i++){\n double value = doubleList.get(i); //double value = doubleList.get(i).doubleValue();\n System.out.println(i + \" --> \" + value);\n }\n\n\n\n\n\n\n\n }",
"public static void main(String[] args) {\n\t\tArrayList al = new ArrayList(); // support heterogeneous data main any type of value\r\n\t\t// add new element\r\n\t\tal.add(15);\r\n\t\tal.add(\"welocome\");\r\n\t\tal.add(2020);\r\n\t\tal.add(15.5);\r\n\t\tal.add(\"A\");\r\n\r\n\t\tSystem.out.println(al);\r\n\t\t// size of Arrylist\r\n\t\tSystem.out.println(\"no of index \" + al.size());\r\n\t\t\r\n\t\t// remove method\r\n\t\tal.remove(2);\r\n \tSystem.out.println(al);\r\n\r\n\t\t// Inert a data\r\n\t\tal.add(2, 2021);\r\n\t\tSystem.out.println(\"add the data in array list\" + al);\r\n\t\t// Retried the specific element\r\n\t\r\n \tSystem.out.println(al.get(2));\r\n\t\t// change and replace the element\r\n\t\tal.set(2, 2022);\r\n\t\tSystem.out.println(al);\r\n\t\t\r\n\t\t// search // contains\r\n\t\tSystem.out.println(al.contains(\"welocome\")); \r\n\t\t\r\n\t\t// is empty\r\n\t\tSystem.out.println(al.isEmpty());\r\n\r\n\t\tIterator it = al.iterator();\r\n\t\t\r\n\t\twhile (it.hasNext()) {\r\n\t\tSystem.out.println(it.next());\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\n ArrayList<Object> ar = new ArrayList<Object>();\n ar.add(100);\n ar.add(100);\n ar.add(\"testing\");\n ar.add('c');\n ar.add(12.36);\n ar.add(true);\n\n System.out.println(ar);\n System.out.println(ar.get(4));\n System.out.println(ar.size());\n System.out.println(\"LI = \"+ 0);\n System.out.println(\"HI = \" + (ar.size()-1));\n\n ar.add(500);\n ar.add(400);\n System.out.println(ar.size());\n\n }",
"ListOfValuesType createListOfValuesType();",
"public static void main(String[] args) {\n List<Integer> data = new ArrayList();\n List<String> strList = new ArrayList<>();\n\n// data = strList; //both types are generalized via <Type> declaration: incompatibles variables\n data.add(10);\n\n String s = strList.get(0); //ClassCastException\n }",
"@Test\n\tpublic void createTypedList() {\n\t\tList<String> list = new ArrayList<>();\n\n\t\tlist.add(\"String\");\n\n\t\tassertEquals(list, Collections.singletonList(\"String\"));\n\t}",
"public static void main(String[] args){\n\t\tList<? extends Number> list = new ArrayList<>();\n\t\t\n\t\t//list.add(new Integer(10));\n\t\t//list.add(new Integer(10));\n\t\t\t\t\n\t\tSystem.out.println(list.get(0) + \" \" + list.get(1));\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\") // <.>\n static void wordList(){\n ArrayList wordList = new ArrayList<>(); // <.>\n wordList.add(\"cat\");\n wordList.add(\"dog\");\n\n System.out.println(\"Word list => \" + wordList);\n }",
"public <T> void makeArrayList(List<T> list) {\n\t\tList<T> list1 = new ArrayList<T>(); // now we can create the list using \"T\"\n\t\tlist1.addAll(list);\n\t}",
"public static void main (String[] args){\n\n ArrayList<Integer> studentNumbers1 = new ArrayList<>();\n studentNumbers1.add(25);\n System.out.println(studentNumbers1.get(0)); // <- unboxing\n /**\n * solution 2 : create custom wrapper class - intWrapper\n */\n ArrayList<intWrapper> studentNumbers2 = new ArrayList<>();\n /**\n * studentNumbers2.add(12); <- Autoboxing\n * java is automatically boxing primitive data type to Object\n * error : intWrapper class does not have any add function so, we can do \"Boxing\" in the parameter\n * with create new object with int value\n */\n studentNumbers2.add(new intWrapper(12)); // <- Boxing\n System.out.println(studentNumbers2.get(0).getIntValue()); // <-Unboxing\n\n\n /**\n * Autoboxing testing with Double\n */\n ArrayList<Double> demoList = new ArrayList<>();\n demoList.add(25.5);\n demoList.add(new Double(25.2));\n /**\n * Java compiler convert the code like below.\n * Below command is done while autoboxing\n */\n demoList.add(Double.valueOf(10.3));\n System.out.println(demoList.get(0)); // <-Autoboxing\n System.out.println(demoList.get(0).doubleValue()); // <- command is done while autoboxing\n\n }",
"public static void main(String[] args) {\n\t\tArrayList emp =new ArrayList();\n\t\t\n\t\temp.add(\"Avinash\"); \n\t\temp.add(001);\t\t\n\t\temp.add(\"Admin\");\t\n\t\temp.add(12.7);\t\n\t\t\n\t\tSystem.out.println(emp);\n\n\t\t//Generic Array list\n\t\tArrayList emp1 =new ArrayList();\n\t\temp1.add(\"Vaibhav\"); \n\t\temp1.add(002);\t\t\n\t\temp1.add(\"CEO\");\t\n\t\temp1.add(1.7);\t\n\t\t\n\t\tSystem.out.println(emp1);\n\n\t}",
"List<C45111a> mo107674a(Integer num);",
"public final void accept(List<l> list) {\n com.iqoption.core.data.b.c a = this.dlr.dlm;\n kotlin.jvm.internal.h.d(list, \"it\");\n a.setValue(list);\n }",
"public static void main(String[] args) {\n ArrayList<IntClass> intClassArrayList = new ArrayList<IntClass>();\n for(int i=0 ;i < 10 ;i++){\n intClassArrayList.add(i,new IntClass(i+1));\n }\n\n for(int i=0 ;i<intClassArrayList.size();i++){\n System.out.println(intClassArrayList.get(i).getNumber()+\" \");\n }\n\n ArrayList<Integer> integerArrayList = new ArrayList<Integer>();\n for(int i=0 ;i<10;i++){\n integerArrayList.add(Integer.valueOf(i));\n }\n\n for(int i=0 ;i<integerArrayList.size();i++){\n System.out.println(i + \" ----> \"+ integerArrayList.get(i).intValue());\n }\n\n ArrayList<Double> doubleArrayList = new ArrayList<Double>();\n for(double dbl = 0 ; dbl < 10.0 ;dbl += 1.0){\n doubleArrayList.add(Double.valueOf(dbl));\n }\n\n for(int i=0;i<doubleArrayList.size() ; i++){\n System.out.println(i + \" ----> \"+ doubleArrayList.get(i).doubleValue());\n }\n\n ArrayList<Long> longArrayList = new ArrayList<Long>();\n System.out.print(\"Enter the number of inputs Size : \");\n int noOfElements = scanner.nextInt();\n\n for(int i=0;i< noOfElements ;i++){\n System.out.print(\"Enter long integer \"+(i+1) +\" : \" );\n longArrayList.add(Long.valueOf(scanner.nextLong()));\n }\n\n System.out.println(\"The Long values are : \");\n for(int i=0;i<longArrayList.size();i++){\n System.out.println(\"Value \"+(i+1) + \" : \"+longArrayList.get(i).longValue());\n }\n }",
"void mo100444b(List<C40429b> list);",
"ListType createListType();",
"void mo54419a(List<String> list);",
"public Data(ArrayList<Object> list) {\n try {\n int n = list.size();\n if (n == 0) throw new Exception(\"Specified argument for Data constructor is an empty ArrayList\");\n this.data = new ArrayList<Byte>();\n\n for (int i = 0; i < n; i++) {\n Object o = list.get(i);\n if (o instanceof Byte) {\n byte b = (byte) o;\n this.data.add(b);\n } else if (o instanceof Integer) {\n int v = (int) o;\n for (int j = 0; j < 4; j++) {\n int b = 0;\n for (int k = 0; k < 8; k++) {\n b = b << 1;\n int x = (3 - j) * 8 + (7 - k);\n int c = (v >> x) & 1;\n b = b | c;\n }\n byte d = (byte) b;\n this.data.add(d);\n }\n } else // support for other formats (eg. Double) may be added\n {\n throw new Exception(\"Specified argument for Data constructor contains Objects that are not supported yet\");\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(1);\n }\n }",
"@Test\n public void getTypeArguments() {\n List<String> target=new ArrayList<String>() {{\n add(\"thimble\");\n }};\n\n Type[] arguments= TypeDetective.sniffTypeParameters(target.getClass(), ArrayList.class);\n assertEquals(1, arguments.length);\n assertEquals(String.class,arguments[0]);\n }",
"public final void accept(List<? extends com.iqoption.fragment.c.a.a.j> list) {\n a aVar = this.dhx.dhv.dhu;\n kotlin.jvm.internal.i.e(list, \"list\");\n aVar.aU(list);\n }",
"static void q2(){\n\t\tArrayList<Integer>myList=new ArrayList<>();\n\t\t\n\t}",
"public void genericIntegerArray() {\n\t\tArrayList<Integer> a1 = new ArrayList<Integer>();\n\t\ta1.add(20);\n\t\ta1.add(11);\n\t\tSystem.out.println(\"Integer generic ArrayList a1: \" + a1);\n\n\t}",
"@Override\r\n\tpublic Object visitListExpression(ListExpression listExpression, Object arg)\r\n\t\t\tthrows Exception {\r\n\t\tif (listExpression.expressionList.isEmpty()) {\t\r\n\t\t\tlistExpression.setType(emptyList);\r\n\t\t\treturn emptyList;\r\n\t\t}\t\t\r\n\t\tString oldListType = (String) listExpression.expressionList.get(0).visit(this, arg);\r\n\t\tfor(Expression expr : listExpression.expressionList) {\r\n\t\t\tString listType = (String) expr.visit(this, arg);\r\n\t\t\tcheck(oldListType.equals(listType),\t\"uncompatible list type\", listExpression);\r\n\t\t\toldListType = listType;\t\t\t\r\n\t\t}\r\n\t\tString listType = \"Ljava/util/ArrayList<\" + oldListType + \">;\";\r\n\t\tlistExpression.setType(listType);\r\n\t\treturn listType;\r\n\t}",
"MyContainer(ArrayList<T> myList){ // T refers to the generic type we are going to use\r\n\t\tthis.myList = myList;\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n ArrayList<String> al = new ArrayList<String>();\n // simple add() methods for adding elements at the end\n al.add(\"Hi\");\n al.add(\"hello\");\n al.add(\"String\");\n al.add(\"Test\");\n System.out.println(al);\n //adding element to the 4th position\n //4th position = 3 index as index starts with 0\n al.add(3,\"Howdy\");\n\n System.out.println(\"Elements after adding string Howdy:\"+ al);\n //adding string to 1st position\n // al.add(0, \"Bye\");\n\n //Print\n System.out.println(\"Elements after adding string bye:\"+ al);\n }",
"public abstract void mo56920a(List<C4122e> list);",
"void mo9148a(int i, ArrayList<C0889x> arrayList);",
"public static void main(String[] args) {\n\t\tArrayList<String> list1 = new ArrayList<String>();\n\n\t\t// this list is capable of hold any object\n\t\tArrayList list2 = new ArrayList();\t\t\n\t\tStudent s1 = new Student();\n\t\t\n\t\ts1.name = \"Leonch\";\n\t\ts1.code = 666;\n\t\t\n\t\tlist1.add(\"Jhon\");\n\t\tlist1.add(\"kat\");\n\t\tlist1.add(\"smith\");\n\t\tlist1.add(\"Jhon1\");\n\t\tlist1.add(\"Jhon2\");\n\t\tlist1.add(\"Jack\");\n\t\tlist1.add(\"Jhon4\");\n\t\tlist1.add(\"Jhon5\");\n\t\tlist1.add(\"Jhon6\");\n\t//\tlist1.add(33.33); error compilacion according Generic Type <String> only string is allowed it is double\n\t//\tlist1.add(23); error compilacion according Generic Type <String> only string is allowed it is int ............ etc\n\t\n\t\t\n\t\tlist2.add(12);\n\t\tlist2.add(33);\n\t\tlist2.add(22.34434);\n\t\tlist2.add(15.7f);\n\t\tlist2.add(true);\n\t\tlist2.add(null);\n\t\tlist2.add(s1);\n\t\tlist2.add(s1.code);\n\t\t\n\t\t// Iterate in ArrayList\n\t\tfor (String i : list1) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\t\t\t\n\t\tSystem.out.println(\"Object ArrayList Below hey\");\n\t\t\n\t\tfor (Object i : list2) {\n\t\t\t\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\t\n\t\t// Iterate in ArrayList with Iterator\n\t\tSystem.out.println(\"=====Iterating with Iterator=====\");\n\t\tIterator<String> itr = list1.iterator();\n\t\t/*System.out.println(itr.next());\n\t\tSystem.out.println(itr.next()); THIS RETREIVE ELEMENTS ONE BY ONE\n\t\tSystem.out.println(itr.next());*/\n\t\t\n\t\twhile(itr.hasNext()) {\n\t\t\tString str = itr.next();\n\t\t\tSystem.out.println(str);\n\t\t\t\n\t\t\t// remove element with iterator\n\t\t\t\n\t\t\tif(str.equals(\"Jack\")){\n\t\t\t\t\n\t\t\t\titr.remove(); // Jack se va es un void method\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"=========Iterator end ===========\");\n\t\tSystem.out.println(\"list1 after iteration is: \"+list1);\n\t\t\n\t\tSystem.out.println(\"prueva de git ignore\");\n\t\tSystem.out.println(\"y sigue sin pelarme 3\");\n\t\tSystem.out.println(\"Porfing .gitignore esta funcionando , no olvidad que ignorar un elemento en la creacion del proyecto no se puede\");\n\t\tSystem.out.println(\"hay que borrarlo hacer commit y ya despues se puede ignorar si se necesita ponerlo en local asi ya lo podemos ignorar\");\n\t\tSystem.out.println(\"la cosa es que no este en el repositorio de github(internet) si esta alli, no se puede ignorar \");\n\n\t\t// Print reference to list -> shall print elements in the list the way we added in a sequence\n\t\tSystem.out.println(\"list1 is: \"+list1);\n\t\tSystem.out.println(\"list1 is: \"+list2);\n\t\t\n\t\t// 2. Get the element from list\n\t\t\n\t\tString name = list1.get(2);\n\t\tSystem.out.println(\"name is: \" +name);\n\t\t\n\t\tObject o = list2.get(2);\n\t\tSystem.out.println(\"o is: \"+o);\n\t\t\n\t\t// 3. Update Element in List\n\t\tlist1.set(2,\"Fionna\");\n\t\tSystem.out.println(\"list 1 now is: \" + list1);\n\t\t\n\t\t// 4. Remove element from list\n\t\tlist1.remove(2);\n\t\tSystem.out.println(\"list1 after remove is: \" +list1);\n\t\t\n\t\t\n\t\t//list1.clear(); -> remove \n\t\t\n\t\t//ASI SON TAMBIEN LinkedList y Vector \n\t\t\n\t\t// locate element in arraylist\n\t\tif(list1.contains(\"Jhon\")) {\n\t\t\tSystem.out.println(\"yes Jhon is in the list1 \");\n\t\t}\n\t\t\n\t\n\t\t\t\t\n\t}",
"public static void main(String[] args) {\n ArrayList<String> list = new ArrayList<>(3); // from JDK1.7+, <>可以不写内容,但<>本身要写\n System.out.println(list); // 空的ArrayList 打印输出:[]\n\n /*\n ArrayList.add()\n */\n\n // 向集合内添加数据,需要add(), 返回 true or false\n boolean isSuccess1 = list.add(\"Roger\");\n boolean isSuccess2 = list.add(\"Francesca\");\n boolean isSuccess3 = list.add(\"Keka\");\n System.out.println(list); // [Hello, world, !!!]\n\n System.out.println(\"1. Add is success? \" + isSuccess1); // true\n System.out.println(\"2. Add is success? \" + isSuccess2); // true\n System.out.println(\"3. Add is success? \" + isSuccess3); // true\n\n //list.add(100) // wrong datatype, should be String, same with <String>\n\n /*\n ArrayList.get()\n */\n String name = list.get(1);\n System.out.println(\"1. element in ArrayList is \" + name); // Francesca, index start from 0\n\n /*\n ArrayList.remove()\n */\n String removeName = list.remove(2);\n System.out.println(\"Removed name is \" + removeName); // Keka\n System.out.println(list); // [Roger, Francesca]\n\n /*\n ArrayList.size()\n */\n int size = list.size();\n System.out.println(size); // 2\n\n /*\n ArrayList excises\n */\n ArrayList<String> list2 = new ArrayList<>();\n list2.add(\"person1\");\n list2.add(\"person2\");\n list2.add(\"person3\");\n\n // iterate ArrayList\n for (int i = 0; i < list2.size(); i++) {\n System.out.println(list2.get(i));\n }\n\n\n }",
"public static void main(String[] args) {\n\r\n\t\t Scanner s=new Scanner(System.in);\r\n\t\t System.out.println(\"First list :\\n\");\r\n\t\t ArrayList<String>list=new ArrayList<String>();//for getting string datatyped list\r\n\t\t list.add(\"Hai\");//adding elements to the first list\r\n\t\t list.add(\"Welcome\");//adding next element\r\n\t\t list.add(\"Face\");//adding third element\r\n\t\t Iterator itr=list.iterator();//iterating the list to print the values in the list\r\n\t\t while(itr.hasNext())\r\n\t\t {\r\n\t\t \tSystem.out.print(itr.next()+\" \");//printing the list\r\n\t\t }\r\n\t\t System.out.print( \"]\");\r\n\t\t list.clear();//to clear all elements in the array list\r\n\t\t System.out.print(\"\\nAfter clear ArrayList:[\");\r\n\t\t System.out.print( \"]\");\r\n\t}",
"void mo100443a(List<String> list);",
"public abstract void mo56923b(List<C4122e> list);",
"@Override\n\tpublic void acheter(List<Object> la) {\n\t\t\n\t}",
"public void addALl(List<T> list){\n for(int i = 0; i < list.size(); i++){\n add(list.get(i));\n }\n }",
"public static void main(String[] args) {\n\t\tList<? super Integer> list1 = new ArrayList<Integer>();\n\t\tList<? super Integer> list2 = new ArrayList<Number>();\n\t\tList<? super Integer> list3 = new ArrayList<Object>();\n\t\t\n\t\t//showAll(list1); //invalid because (minimum) lower bound is Number \n\t\t\n\t\t//Number class extend Object implements Serializable \n\t\tList<? super Number> nums = new ArrayList<>();\n\t\t//We can add element to lower bounded wild card\n\t\t// but element must be the given type or it's Sub type\n\t\tnums.add(3);//valid because Integer is a sub type of Number\n\t\tnums.add(10.23);//valid because Double is a sub type of Number\n\t\tnums.add(50.3f);//valid because Float is a sub type of Number\n\t\t//Valid call\n\t\tshowAll(nums);\n\t\t\n\t\t//Valid call because Number extends Object\n\t\tList<? super Object> objects = new ArrayList<>();\n\t\tshowAll(objects);\n\t\t\n\t\t//Valid call because Number extends Serializable\n\t\tList<Serializable> list = new ArrayList<>();\n\t\tlist.add(\"Adam\");\n\t\tlist.add(\"Raghav\");\n\t\tlist.add(\"Mark\");\n\t\tshowAll(list);\n\t}",
"protected abstract IList _listValue(IScope scope, IType contentsType, boolean cast);",
"public List getList1(List<String> list,String a) {\n\t\tlist.add(a);\r\n\t\treturn list;\r\n\t}",
"public static void main(String[] args) {\n\t\tArrayList<String> words = new ArrayList<String>();\n\t\t// flexible, resizable array\n\t\t// can add multiple data types\n\t\t// they will however be cast as objects by default in the array\n\t\t\n\t\t\n\t\t// Java is a type safe language - it forces the developer to know on every single line what a variable's data type is\n\t\t// <> GENERIC COLLECTIONS - forces data in an ArrayList to be of a particular type\n\t\t// enforcing type using <> is called 'Parameterisation'\n\t\t\n\t\twords.add(\"hello\");\n\t\twords.add(\"world\");\n\t\tSystem.out.println(words);\n\t\twords.remove(\"0\");\n\t\tSystem.out.println(words);\n\t\twords.add(\"10\");\n\t\twords.add(\"12.00\");\n\t\twords.add(\"H\");\n\t\tSystem.out.println(words);\n\t\t\n\t\t// Unless <> is specified...\n\t\t// object is the parent of every single data type in Java\n\t\t// .get() here returns an object, so...\n\t\t// have to cast object data type to string as follows:\n\t\tString item1 = (String) words.get(0);\n\t\tSystem.out.println(item1);\n\t\tObject item2 = words.get(1);\n\t\tSystem.out.println(item2);\n\t\t\n\t\t// LINKEDLIST\n\t\t// only complex data types can be inside the angle brackets in a LinkedList, not primitives\n\t\t// To get around this rather than using int we use the wrapper class Integer\n\t\t// Other wrapper classes: <Double><Float>\n\t\t// String is a complex data type anyway \n\t\t\n\t\t// ArrayLists use array as the data structure, whereas LinkedLists use node objects\n\t\t\n\t\t// the array list is faster for retrieving data\n\t\t// the linked list is faster for manipulating data - to retrieve values the linked list has to be traversed\n\t\t\n\t\tLinkedList<Integer> numbers = new LinkedList<Integer>();\n\t\tnumbers.add(1);\n\t\tnumbers.add(2);\n\t\tnumbers.add(99);\n\t\tnumbers.add(43);\n\t\t\n\t\t// number.remove(); would remove the first data value inserted - 1 in this case\n\t\t\n\t\tSystem.out.println(numbers.get(0) + numbers.get(1)); // should print 3\n\t\n\t\tfor (int number: numbers) {\n\t\t\tSystem.out.println(number); // print: 1 2 99 43\n\n\t\t}\n\t}",
"static void print5(ArrayList<? extends A> list) {\n\n\t}",
"public final void accept(List<? extends com.iqoption.fragment.c.a.a.j> list) {\n kotlin.jvm.internal.i.e(list, \"list\");\n if ((list.isEmpty() ^ 1) != 0) {\n this.dhx.dhv.dhu.aU(list);\n }\n }",
"List<?> getList();",
"public ArrayListBound() {\n\t\t// TODO Auto-generated constructor stub\n\t\tformat.setMinimumIntegerDigits(4);// 显示最少4位数\n\t\t//nc edit data initialize\n\t}",
"private static void showList(ArrayList<? extends Machine> list) {\n System.out.println(\"In showlist method\");\n for(Machine machine: list) {\n System.out.println(machine);\n }\n\n }",
"public MyArrayList() {\n this.IntList = new int[10];\n this.CharList = new Character[10];\n this.StringList = new String[5];\n \n // fill all 3 arrays with data\n for(int i = 0; i < IntList.length; i++) {\n IntList[i] = (int) (Math.random()*52);\n }\n\t \n // Populate char array\n for(int i = 0; i < CharList.length; i++) {\n \n Random random = new Random();\n CharList[i] = (char)(random.nextInt(26) + 'a');\n }\n\t \n // Populate String array\n StringList[0] = \"joe\";\n StringList[1] = \"mark\";\n StringList[2] = \"abbey\";\n StringList[3] = \"tony\";\n StringList[4] = \"kevin\"; \n }",
"public static Object mostrarLista(Scanner keyboard,ArrayList lista) { \n Objeto obj;\n Usuario user;\n Object ob;\n for(Object o : lista){\n \n if(o.getClass().getSimpleName().equals(\"Objeto\")){\n obj = (Objeto)o;\n \n if(obj.getDisponibilidad()){\n System.out.println(o.toString());\n }\n }else if(o.getClass().getSimpleName().equals(\"Usuario\")){\n user = (Usuario)o;\n if(user.getActivo()){\n System.out.println(o.toString());\n }\n }else{\n System.out.println(o.toString());\n }\n }\n int id = 0;\n boolean ok = true;\n do{\n System.out.println(\"Seleccione el que desee: \");\n try{\n id = keyboard.nextInt(); \n }catch(NumberFormatException e){\n ok = false;\n }\n ob = lista.get(id-1);\n }while((id > lista.size() || id <= 0) || (!ok));\n \n return ob; \n }",
"@Override\n\tpublic ValueList caseATypeBind(ATypeBind bind, ObjectContext ctxt)\n\t\t\tthrows AnalysisException\n\t{\n\t\treturn new ValueList();\n\t}",
"public static void main(String[] args) {\n\t\tArrayList<String> al=new ArrayList<String>();\n\n\t\tal.add(\"suraj\");\n\t\tal.add(\"rohit\");\n\t\tal.add(\"virat\");\n\t\tal.add(\"suhas\");\n\t\tSystem.out.println(al);\n\t\tal.add(1, \"adi\");\n\t\tSystem.out.println(al);\n\t\tSystem.out.println(al.get(3));\n\t\t//sets new data into list\n al.set(1,\"prakash\");\n \t\tSystem.out.println(al);\n \t\t//check given content in list\n System.out.println(al.contains(\"adi\"));\n\t\t\n\t\tArrayList<String> al1=new ArrayList<String>();\n\t\tal1.add(\"atul\");\n\t\tSystem.out.println(al1);\n\t\tal1.addAll(al);\n\t\tSystem.out.println(al1);\n\n\t\t/*System.out.println(\"------------Iterator------------\");\n\t\tIterator<String> it=al1.iterator();\n\t\twhile(it.hasNext()){\n\t\t\tSystem.out.println(it.next()+\"\\t\");\n\t\t}*/\n\t\t\n\t\t\n\t\tfor(String s:al1){\n\t\t\tSystem.out.println(s+\"\\t\");\n\t\t}\n\t\t\n\t\t\n\n\t\t\n\t\t\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\nArrayList<String>mylist =new ArrayList<String>();\r\nmylist.add(\"anu\");\r\nmylist.add(\"ammu\");\r\nmylist.add(\"renu\");\r\nSystem.out.println(mylist);\r\nfor(int i=0;i<3;i++)\r\n{\r\n\tSystem.out.println(i+\"=\" + mylist.get(i));\r\n}\r\n\t}",
"List<T> readList();",
"@SuppressWarnings(\"unchecked\")\n public ArrayList() {\n list = (E[])new Object[DEFAULT_CAP];\n capacity = 10;\n size = 0;\n }",
"a(ArrayList arrayList) {\n super(1);\n this.$result = arrayList;\n }",
"@SuppressWarnings(\"unchecked\")\n public ArrayList(ArrayList<E> lst) {\n list = (E[])new Object[lst.size()];\n capacity = lst.capacity;\n size = lst.size;\n for(int i = 0; i < size; i++) {\n list[i] = lst.list[i];\n }\n }",
"public abstract <T> List<T> list(Class<T> aClass);",
"public void testingArrayList() {\r\n\t\tSystem.err\r\n\t\t\t\t.println(\"Class NewFeatures, method testingArrayList called!\");\r\n\t\t// we don't need to write data type two times\r\n\t\t// ArrayList<String> list = new ArrayList<String>();\r\n\t\tArrayList<String> list = new ArrayList<>();\r\n\t\tlist.add(\"hey\");\r\n\t\tlist.add(\"kello\");\r\n\t\tlist.add(\"labas\");\r\n\t\tSystem.out.println(\"\\nValue in list:\" + list.get(0));\r\n\t\tSystem.out.println(\"Printing out the ArrayList: \" + list);\r\n\t\tSystem.out.println(\"Class NewFeatures, method testingArrayList done!\");\r\n\t}",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default List<IData> asList() {\n \n return notSupportedCast(\"IData[]\");\n }",
"void addLaptop(ArrayList list){\n System.out.println(\"Enter ID\");\r\n int id = sc.nextInt();\r\n System.out.println(\"Enter ram size\");\r\n int ram = sc.nextInt();\r\n System.out.println(\"Enter HDD size\");\r\n int hdd = sc.nextInt();\r\n sc.nextLine();\r\n System.out.println(\"Enter brand name\");\r\n String brand = sc.nextLine();\r\n \r\n \r\n int idVal = 1;\r\n for (Object obj : list) {\r\n //Checking for valid id\r\n if(((Laptop)obj).getId() == id){\r\n idVal = 0;\r\n break;\r\n }\r\n }\r\n if (idVal == 1) {\r\n //adding a new element/row in the existing list\r\n list.add(new Laptop(id, ram, hdd, brand));\r\n System.out.println(\"Element added successfully!\");\r\n } else {\r\n System.out.println(\"Entered id already exist!\");\r\n }\r\n\r\n }",
"List<C45111a> mo107675a(Integer num, Integer num2);",
"public static void main(String[] args) {\n\r\n\t\tArrayList<Integer> a1 = new ArrayList<Integer>(); //can store any type of object\r\n\t\ta1.add(1);\r\n\t\ta1.add(2);\r\n\t\ta1.add(3);\r\n\t\ta1.add(4);\r\n\t\ta1.add(5);\r\n\t\tSystem.out.println(\"Elements of a1 are : \" + a1);\r\n\t\t\r\n\t\tfor(int a:a1)\r\n\t\t{\r\n\t\t\tSystem.out.println(a);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"ListString createListString();",
"public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}",
"private ArrayList<String> simpleFormList(ArrayList<String> list){\n\t\tArrayList<String> simpleFormList = new ArrayList<String>();\n\t\tfor(String s : list){\n\t\t\tString pos = posMap.get(s);\n\t\t\tsimpleFormList.add(simpleForm(s,pos));\n\t\t}\n\t\treturn simpleFormList;\n\t}",
"public static void main(String[] args) {\n ArrayList<String> aList = new ArrayList();\n ArrayList<Integer> numList = new ArrayList();\n aList.add(\"Ram\");//0\n aList.add(\"Shyam\");//1\n aList.add(\"hari\");//2\n aList.add(\"Sita\");//3\n aList.add(\"Ram\");//4\n //System.out.println(aList); //[Ram, Shyam, hari, Sita, Ram]\n// System.out.println(aList.get(1)); //Shyam\n // for(ClassType/VariableType variableName : objectName)\n System.out.println(\"before adding\"); \n System.out.println(aList);\n aList.add(3,\"Ravi\");\n System.out.println(\"after adding\"); \n System.out.println(aList);\n aList.remove(3);\n System.out.println(\"after removing\"); \n System.out.println(aList);\n Collections.sort(aList);\n System.out.println(\"after sorting\");\n System.out.println(aList);\n \n }",
"protected <T> ArrayList<T> addToList(ArrayList<T> l, T value)\n {\n if (l == null) {\n l = new ArrayList<T>();\n }\n l.add(value);\n return l;\n }",
"ListValue createListValue();",
"public <T> void makeArrayList(T t) {\n\t\tList<T> list = new ArrayList<T>(); // now we can create the list using \"T\"\n\t\tlist.add(t);\n\t}",
"void addAll(intList list) throws IllegalAccessException;",
"ArrayList<String> createList(String finalInput);",
"public void arrayList(List<Student> list)\r\n\t{\r\n\t\tlist.add(s1);\r\n\t\tlist.add(s2);\r\n\t\tlist.add(s3);\r\n\t\tlist.add(s4);\r\n\t\tlist.add(s5);\r\n\t\tlist.add(s6);\r\n\t\tSystem.out.println(\"Objects of ArrayList\");\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(list.get(i));\r\n\t\t}\r\n\t}",
"private static Type getListType() {\n return getListTypeToken().getType();\n }",
"public NumericObjectArrayList() {\r\n list = new Copiable[10];\r\n count = 0;\r\n }",
"public static void main(String[] args) {\n Collection collection= new ArrayList();\n collection.add(1500);\n collection.add(true);\n collection.add(12.32);\n collection.add(\"s\");\n collection.add('f');\n //System.out.println(collection);\n\n //Collection add(item) bunda item qo'sha olsa true aksi bo'lsa false qataradi\n System.out.println(collection.add(2200)); // bunda console da true bo'ladi 2200 qo'sha olgani uchun\n\n /* Collection ni addAll metothdi bu bizga collection methodiga narsalarni collection1 b-n\n ketma ketlikda qo'shish imkonini beradi*/\n\n Collection collection1=new ArrayList();\n collection1.addAll(collection);\n collection1.add(\"otherNumber1\");\n collection1.add(\"otherNumber2\");\n collection1.add(\"otherNumber3\");\n System.out.println(collection1);\n\n // boolean remove(object item) bu ko'rsatilgan obyektni collectionda o'chiradi listlarda index bilan bajariladi\n collection1.remove(12.32);\n System.out.println(collection1);\n\n // boolean removeAll(Collection<?> col)\n collection1.removeAll(collection);\n System.out.println(collection1);\n\n\n\n\n\n }",
"public AList() {\n items = (TypeHere[]) new Object[100];\n size = 0;\n }",
"public static void main(String[] args) {\nArrayList<String> al = new ArrayList<String>();\r\nal.add(\"h\");\r\nal.add(\"hello\");//\r\nal.add( \"hai\");//adding element in particular index.\r\nal.add(\"h\");\r\nal.add(null);\r\nal.add(null);\r\nal.add(\"simple\");\r\nSystem.out.println(al.size());\r\n//how to iterate arraylist.\r\n//for (String a : al)//advanced for loop- for(Datatype varname = obj name/array/collection)\r\n //{\r\n\t//System.out.println(a);\r\n\t//}\r\n/*below code is for iterating the Array using iterator*/\r\nArrayList<Integer> a = new ArrayList<Integer>();\r\na.add(7);\r\na.add(8);\r\n\ta.add(1);\r\na.add(40);\r\na.add(5);\r\na.add(null);\r\nListIterator<Integer> af = a.listIterator();//here we can use both iterator and listiterator\r\nwhile (af.hasNext()){\r\n\tint s = af.next();\r\n\tSystem.out.println(s);\r\n}\r\n\r\n\r\n\t}",
"public TempList(T... all) {\n list = new ArrayList<T>(all.length);\n for (int i = 0; i < all.length; i++)\n list.add(all[i]);\n }",
"public void create() {\n String[] arrays = new String[100];\n ArrayList<String> list1 = new ArrayList(); //Object[10]\n list1.size(); //0\n list1.add(\"Vivek\"); //object[0] = \"Vivek\"\n list1.size(); //1\n list1.get(0);//\"Vivek\"\n\n list1.remove(1);\n\n list1.add(0, \"Vivek\");\n\n\n ArrayList<String> list3 = new ArrayList<String>(list1);\n\n ArrayList<Student> list = new ArrayList<Student>();\n\n\n\n }",
"public static void createListFromLong(ArrayList<Integer> list, long l) {\n\n\t\tint individualNum = 0;\n\t\n\t\twhile(l > 0) {\n\t\t\tindividualNum = (int) (l % 10);\n\t\t\tl /= 10;\n\t\t\t\n\t\t\tlist.add(individualNum);\n\t\t}\n\t\t\n\t\tCollections.reverse(list);\n\t}",
"java.util.List<java.lang.String>\n getStrValuesList();",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList() {\n\t\tObject[] oList = new Object[INIT_SIZE];\n\t\tlist = (E[]) oList;\n\t\tsize = INIT_SIZE;\n\t}",
"public static void main(String[] args){\n List<Integer> list1 = Arrays.asList(8,11,13,10);\n List<Double> list2 = Arrays.asList(3.1459, 2.7182, 6.6740, 8.9875);\n List<Number> list3 = Arrays.asList(128,256,155,42);\n //We demonstrate that, within the same function we can pass attributes of\n //different classes\n System.out.println(\"The list1 is: \"+printList(list1));\n// System.out.println(\"The list2 is: \"+printList(list2));\n System.out.println(\"The list3 is: \"+printList(list3));\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList() {\n\t\tsize = 0;\n\t\tlist = (E[]) new Object[INIT_SIZE];\n\t}",
"public static void main(String[] args) {\n //declearing arrayList\n List<Integer> numbers = new ArrayList<Integer>();\n //storing data into arrayList\n numbers.add(90);\n numbers.add(80);\n\n //retrieving data from arrayList\n for(int i =0;i<numbers.size();i++) {\n System.out.println(numbers.get(i));\n\n }\n //retrieving data from arrayList for each loop\n // for each loop uses Iterator\n for (Integer num : numbers){\n System.out.println(num);\n }\n // Example of Data type or element type can be stored in arraylist\n Student st1 = new Student();\n Student st2 = new Student();\n st1.setId(111);\n st1.setName(\"Taheem\");\n st1.setDob(\"04-17-2012\");\n st1.setName_class(\"Freshman\");\n List<Student> studentList = new ArrayList<Student>();\n studentList.add(st1);\n studentList.add(st2);\n System.out.println( studentList.get(0).getId()+ \" \"+ studentList.get(0).getName()+\" \"+ studentList.get(0).getDob()+\" \"+ studentList.get(0).getName_class());\n\n }",
"@Test public void asListSimple() {\n @SuppressWarnings(\"null\") final @NotNull List<Integer> is = as.list(new int @NotNull [] { 12, 13, 14 });\n azzert.that(is.get(0), is(fluent.ly.box.it(12)));\n azzert.that(is.get(1), is(fluent.ly.box.it(13)));\n azzert.that(is.get(2), is(fluent.ly.box.it(14)));\n azzert.that(is.size(), is(3));\n }",
"Object getTolist();",
"List<String> mo5877c(String str);",
"public TempList(Collection< ? extends T> all) {\n list = new ArrayList<T>(all);\n }",
"public ArrayList() {\n arr = (T[]) new Object[10];\n size = 0;\n }",
"List<Data> mo5884i(String str);",
"public Registro(List<Double> d) \n { \n\t this.setContenido((ArrayList<Double>) d);\n }"
] | [
"0.6957347",
"0.6699393",
"0.6697798",
"0.6426163",
"0.6412375",
"0.63601035",
"0.6357845",
"0.62197757",
"0.6197881",
"0.61919224",
"0.6020943",
"0.59819615",
"0.59649986",
"0.5957395",
"0.58822316",
"0.5871666",
"0.58692855",
"0.58636",
"0.58600634",
"0.5854561",
"0.5833984",
"0.57859796",
"0.5757889",
"0.5740402",
"0.57381403",
"0.5719615",
"0.5702796",
"0.56945646",
"0.56624055",
"0.56553596",
"0.56176215",
"0.5617165",
"0.55935043",
"0.5568556",
"0.555021",
"0.5547651",
"0.5545095",
"0.5541967",
"0.5517094",
"0.55116576",
"0.550558",
"0.54868925",
"0.54830945",
"0.5476722",
"0.54595655",
"0.5458673",
"0.54570985",
"0.5448484",
"0.5441957",
"0.5436005",
"0.54072404",
"0.5402934",
"0.53948134",
"0.5394794",
"0.53900164",
"0.53812003",
"0.5381139",
"0.5380176",
"0.5376711",
"0.5370856",
"0.5352361",
"0.5345804",
"0.5344884",
"0.5337444",
"0.53266215",
"0.53261006",
"0.5322419",
"0.53206986",
"0.5308263",
"0.53067803",
"0.52927244",
"0.5286605",
"0.52854735",
"0.5277998",
"0.52687067",
"0.52589077",
"0.525647",
"0.5253153",
"0.5249243",
"0.5249165",
"0.5248294",
"0.5246857",
"0.5242118",
"0.52415395",
"0.5241095",
"0.5239686",
"0.5238855",
"0.52362204",
"0.5235725",
"0.5233085",
"0.52308327",
"0.52292216",
"0.52262336",
"0.5221606",
"0.5213803",
"0.521355",
"0.5209977",
"0.52086097",
"0.51994425",
"0.5198738",
"0.51900315"
] | 0.0 | -1 |
checkstyle made me put javadoc here >:( whoever made this function pls edit the the javadoc tqtq wh. | public static void initialiseContext(String[] listOfKeys) {
for (String a : listOfKeys) {
keywords.add(a);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void tag4() \n\t{\n\t\t/** javadoc_single_style_tag: This is a JavaDoc single style tag.\n\t}\n\t\n\t/** Test a JavaDoc multi style comment in souce code.\n\t * \n\t */\n\tvoid tag5() \n\t{\n\t\t/** \n\t\t * javadoc_multi_style_tag: This is a JavaDoc multi style tag.\n\t\t */\n\t}\n\t\n\t/** Test a tag not at the start of a line.\n\t * \n\t */\n\tvoid tag6() \n\t{\n\t\t/** \n\t\t * The tag \"not_start_of_line_tag\" should NOT be found.\n\t\t */\n\t}\n\t\n\t/** Test a tag variable in source code.\n\t * \n\t */\n\tvoid tag7() \n\t{\n\t\tint source_code_variable_tag;\n\t\t\n\t\tsource_code_variable_tag += 7;\n\t}\n\n}",
"public void saveBeforeJavadoc() { }",
"public void saveBeforeJavadoc() { }",
"Documentation createDocumentation();",
"Documentation createDocumentation();",
"@Override\n\tpublic void javadoc(JDefinedClass cls) {\n\n\t}",
"String getDocumentation();",
"String getDocumentation();",
"@Test\n public void testRelaxedJavadoc() throws Exception {\n final DefaultConfiguration checkConfig = createModuleConfig(JavadocMethodCheck.class);\n checkConfig.addAttribute(\"scope\", Scope.PROTECTED.getName());\n final String[] expected = {\n \"59:5: \" + getCheckMessage(MSG_JAVADOC_MISSING),\n \"64:5: \" + getCheckMessage(MSG_JAVADOC_MISSING),\n \"79:5: \" + getCheckMessage(MSG_JAVADOC_MISSING),\n \"84:5: \" + getCheckMessage(MSG_JAVADOC_MISSING),\n };\n verify(checkConfig, getPath(\"InputJavadocMethodPublicOnly.java\"), expected);\n }",
"public void javadocStarted() { }",
"public void javadocStarted() { }",
"@Override\n public String visit(JavadocComment n, Object arg) {\n return null;\n }",
"void printJavaDocBody(String doc) throws IOException{\n String docClean = doc.trim()\n .replace(\"\\t\", \"\")\n .replace(\"*/\", \"* /\");\n\n for (String s : docClean.split(\"[\\\\n\\\\r]+\")) {\n emit(\" * \" + s);\n }\n }",
"public interface CodeThatShouldFail {\r\n\t/**\r\n\t * Metodo que ejecuta el codigo defectuoso\r\n\t */\r\n\tpublic void doTheFaultyThing();\r\n}",
"public E16_OverloadJavaDoc() {\n System.out.println(\"Planting a seedling\");\n }",
"public boolean isJavaDoc(String line){\n boolean lineIsJavaDoc = false;\n if(this.inJavaDoc){\n lineIsJavaDoc = true;\n }\n if(line.contains(\"/**\")){\n lineIsJavaDoc = true;\n inJavaDoc = true;\n }\n if(line.contains(\"*/\") && this.inJavaDoc){\n inJavaDoc = false;\n inStarComment = false;\n }\n return lineIsJavaDoc;\n }",
"public abstract String commandDocumentation();",
"@Override\n\tpublic void comment() {\n\t\t\n\t}",
"public manageDoc() {\r\r\r\n\r\r\r\n }",
"public void smell() {\n\t\t\n\t}",
"public void styleMe(){\n\t}",
"default void buildMainGenerateAPIDocumentation() {\n if (!bach().project().settings().tools().enabled(\"javadoc\")) return;\n say(\"Generate API documentation\");\n var api = bach().folders().workspace(\"documentation\", \"api\");\n bach().run(buildMainJavadoc(api)).requireSuccessful();\n bach().run(buildMainJavadocJar(api)).requireSuccessful();\n }",
"List<DocumentationItem> documentation();",
"JavadocToken nextToken();",
"@Override\n protected String getInitialDoc(PythonParser.FuncdefContext rawMethod) {\n return null;\n }",
"public abstract ModuleDoc doc();",
"public void testRemoveDescriptionHeader_09() {\n checkRemoveDescriptionHeader(\"\", \"Header of PHPDoc comment.\");\n }",
"@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }",
"public static boolean isGenerateJavadocStyleComment()\n {\n read_if_needed_();\n \n return _is_generate_javadoc_comment;\n }",
"@Override\n public int describeContents() { return 0; }",
"public void testRemoveDescriptionHeader_02() {\n checkRemoveDescriptionHeader(\"\", \"Header of PHPDoc comment.\\n\");\n }",
"public void testRemoveDescriptionHeader_12() {\n checkRemoveDescriptionHeader(\"Something\", \"\\nHeader of PHPDoc comment\\nDescription.\\nSomething\");\n }",
"@Override\n public void visit(ClassOrInterfaceDeclaration n, Object arg) {\n \tif(n.getJavaDoc()!=null){\n \t\tclassInfo.add(n.getName());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\\\* @param (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @return (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @throws (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* \",\"\");\n\t \tcomment = comment.replaceAll(\"(?s)\\\\*(.*)\",\"\");\n\t \tclassInfo.add(comment.trim()); \n \t}\n \t}",
"@Override\r\n protected void parseDocuments()\r\n {\n\r\n }",
"protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}",
"public conversorDOC(){\n }",
"private static DocumentationImpl createDocumentation() {\n\t\treturn DocumentationImpl.Builder.info(\"A workspace in which other items can be placed, and top-level options can be configured.\")\n\t\t\t\t.param(\"Initialize\", \"Whether or not to execute the Initialize phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Run\", \"Whether or not to execute the Run phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Duration (minutes)\", \"The number of minutes this workspace will be alive.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Retrieve Data\", \"Whether or not to execute the Retrieve Data phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Cleanup\", \"Whether or not to execute the Cleanup phase.\") // FIXME: STRING: srogers\n\t\t\t\t.build(); // FIXME: srogers: extract string construction into a dedicated method\n\t}",
"@Override\r\n\tprotected void generateToc() {\r\n\t}",
"void info() {\n System.out.println(\"E16_OverloadJavaDoc is \" + height + \" feet tall\");\n }",
"private Solution() {\n /**.\n * { constructor }\n */\n }",
"public void testRemoveDescriptionHeader_01() {\n checkRemoveDescriptionHeader(\"\", \"\\nHeader of PHPDoc comment.\\n\");\n }",
"protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> – all columns must be present in both tables</li>\\n<li><b>LEFT</b> – columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> – columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> – comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question "Which column can have less columns?"</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> – wildcard matching</li>\\n<li><b>exact</b> – value should be equals to pattern</li>\\n<li><b>regext</b> – value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> – wildcard matching</li>\\n<li><b>exact</b> – value should be equals to pattern</li>\\n<li><b>regext</b> – value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}",
"interface Checker\n {\n /** @param text a string to consider for acceptance\n * @return true if this Checker accepts text; false otherwise\n */\n boolean accept(String text);\n }",
"void info(String s) {\n System.out.println(s + \": E16_OverloadJavaDoc is \"\n + height + \" feet tall\");\n }",
"@Override\n public void setDescription(String arg0)\n {\n \n }",
"@Override\n public void help() {\n\n }",
"protected String extractDocumentation(AnnotatedBase element) {\n if (m_schemaCustom.isJavaDocDocumentation()) {\n StringWriter writer = new StringWriter();\n AnnotationElement anno = element.getAnnotation();\n if (anno != null) {\n FilteredSegmentList items = anno.getItemsList();\n for (int i = 0; i < items.size(); i++) {\n AnnotationItem item = (AnnotationItem)items.get(i);\n if (item instanceof DocumentationElement) {\n DocumentationElement doc = (DocumentationElement)item;\n List contents = doc.getContent();\n if (contents != null) {\n for (Iterator iter = contents.iterator(); iter.hasNext();) {\n Node node = (Node)iter.next();\n DOMSource source = new DOMSource(node);\n StreamResult result = new StreamResult(writer);\n try {\n s_transformer.transform(source, result);\n } catch (TransformerException e) {\n s_logger.error(\"Failed documentation output transformation\", e);\n }\n }\n }\n }\n }\n }\n StringBuffer buff = writer.getBuffer();\n if (buff.length() > 0) {\n \n // make sure there's no embedded comment end marker\n int index = buff.length();\n while ((index = buff.lastIndexOf(\"*/\", index)) >= 0) {\n buff.replace(index, index+2, \"* /\");\n }\n return buff.toString();\n }\n }\n return null;\n }",
"private String extractJavadoc(TypeMember member, IProgressMonitor monitor)\n throws DartModelException, IOException {\n if (member != null) {\n Reader reader = getHTMLContentReader(member, monitor);\n if (reader != null) {\n return getString(reader);\n }\n }\n return null;\n }",
"public void testRemoveDescriptionHeader_11() {\n checkRemoveDescriptionHeader(\"\", \"\\nHeader of PHPDoc comment\\nDescription.\");\n }",
"public void testRemoveDescriptionHeader_04() {\n checkRemoveDescriptionHeader(\"\", \"\\nHeader of PHPDoc comment\\nDescription.\\n\");\n }",
"public interface PHPDocTagKinds {\n\n public static final int ABSTRACT = 0;\n\n public static final int AUTHOR = 1;\n\n public static final int DEPRECATED = 2;\n\n public static final int FINAL = 3;\n\n public static final int GLOBAL = 4;\n\n public static final int NAME = 5;\n\n public static final int RETURN = 6;\n\n public static final int PARAM = 7;\n\n public static final int SEE = 8;\n\n public static final int STATIC = 9;\n\n public static final int STATICVAR = 10;\n\n public static final int TODO = 11;\n\n public static final int VAR = 12;\n\n public static final int PACKAGE = 13;\n\n public static final int ACCESS = 14;\n\n public static final int CATEGORY = 15;\n\n public static final int COPYRIGHT = 16;\n\n public static final int DESC = 17;\n\n public static final int EXAMPLE = 18;\n\n public static final int FILESOURCE = 19;\n\n public static final int IGNORE = 20;\n\n public static final int INTERNAL = 21;\n\n public static final int LICENSE = 22;\n\n public static final int LINK = 23;\n\n public static final int SINCE = 24;\n\n public static final int SUBPACKAGE = 25;\n\n public static final int TUTORIAL = 26;\n\n public static final int USES = 27;\n\n public static final int VERSION = 28;\n\n public static final int THROWS = 29;\n\n public static final int PROPERTY = 30;\n\n public static final int PROPERTY_READ = 31;\n\n public static final int PROPERTY_WRITE = 32;\n\n public static final int METHOD = 33;\n\n}",
"public void testRemoveDescriptionHeader_05() {\n checkRemoveDescriptionHeader(\"Something\\n\", \"\\nHeader of PHPDoc comment\\nDescription.\\nSomething\\n\");\n }",
"public CheckFunctionHasEnoughComments(Program program) {\n\t\tsuper(program);\n\t}",
"public interface FormatConstraint extends Constraint {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString copyright = \"Copyright (C) 2012 Bertrand Florat\";\n\n}",
"@Override\n public void printHelp() {\n\n }",
"@Override public int describeContents() { return 0; }",
"public void ach_doc_type_txt_test () {\n\t\t\n\t}",
"@Override\n public int describeContents()\n {\n return 0;\n }",
"public interface NoteAlg extends Alg {\n\n\t\n\t/**\n\t * Noting some hinting usage.\n\t * @return some hinting usage.\n\t */\n\tString note();\n\t\n\t\n}",
"@Override\n public void describeTo(Description arg0) {\n \n }",
"@Test\n void setDescription() {\n }",
"@Override\n public String getDescription() {\n return DESCRIPTION;\n }",
"public void setDescription(String description)\n/* */ {\n/* 67 */ this.description = description;\n/* */ }",
"@StarlarkBuiltin(\n name = \"description_checker\",\n doc = \"A checker to be run on change descriptions\",\n documented = false)\npublic interface DescriptionChecker extends StarlarkValue {\n\n /**\n * Process the passed description, validates it and optionally transform to an acceptable\n * description\n *\n * @param description current description of the change\n * @return returns the description that should be used for the change\n */\n @CheckReturnValue\n String processDescription(String description, Console console)\n throws CheckerException, IOException;\n}",
"public interface IBibliotheque {\n\t// Start of user code (user defined attributes for IBibliotheque)\n\n\t// End of user code\n\n\t/**\n\t * Description of the method listeDesEmpruntsEnCours.\n\t */\n\tpublic void listeDesEmpruntsEnCours();\n\n\t// Start of user code (user defined methods for IBibliotheque)\n\n\t// End of user code\n\n}",
"@Test\n public void styleTest() {\n // TODO: test style\n }",
"@Override\n public void visit(MethodDeclaration n, Object arg) {\n \tArrayList<String> method = new ArrayList<String>();\n \tif(n.getJavaDoc()!=null){\n\t \tmethod.add(n.getName());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\\\* @param (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @return (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @throws (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* \",\"\");\n\t \tmethod.add(comment.trim()); \n\t \tmethods.add(method);\n \t}\n \t}",
"public abstract void description();",
"public Synopsis()\n\t{\n\n\t}",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"@Override\n public int describeContents() {\n return 0;\n }",
"void pramitiTechTutorials() {\n\t\n}",
"@Override\n public void comment(String comment)\n {\n }"
] | [
"0.6949996",
"0.67911327",
"0.67911327",
"0.6519858",
"0.6519858",
"0.64817256",
"0.62885594",
"0.62885594",
"0.6204323",
"0.6166114",
"0.6166114",
"0.60776484",
"0.60235",
"0.59694177",
"0.5873321",
"0.5764704",
"0.57586277",
"0.57552904",
"0.57336867",
"0.5708953",
"0.5697465",
"0.56943953",
"0.5668426",
"0.5636785",
"0.5635014",
"0.5625476",
"0.5588724",
"0.5532785",
"0.55255055",
"0.5523619",
"0.5521891",
"0.55190676",
"0.5518507",
"0.5508053",
"0.5487554",
"0.5481186",
"0.54552734",
"0.5453663",
"0.5450691",
"0.54469913",
"0.54438025",
"0.5436968",
"0.5433365",
"0.5414796",
"0.53987724",
"0.53932124",
"0.5381866",
"0.53771836",
"0.537648",
"0.5366271",
"0.5350169",
"0.5293758",
"0.52905834",
"0.5288225",
"0.52822083",
"0.5279679",
"0.5279414",
"0.5276657",
"0.5274554",
"0.5273722",
"0.5273275",
"0.52623177",
"0.52468884",
"0.52446747",
"0.5242937",
"0.5238637",
"0.5237201",
"0.52238184",
"0.5200477",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5193909",
"0.5188917",
"0.51885045"
] | 0.0 | -1 |
Given the a certain Root command, the possible subRoot commands are returned. | public static ArrayList<String> getPossibilities(String key) {
ArrayList<String> hints = new ArrayList<>();
for (String a : keywords) {
if (a.toLowerCase().startsWith(key.toLowerCase())) {
hints.add(a);
}
}
return hints;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String[] getCommands(String root) {\n\t\treturn commands.get(root).toArray(new String[1]);\n\t}",
"String ls(String pRoot) throws RemoteException;",
"private ArrayList<Command> fillRoot() {\n var rootList = new ArrayList<Command>();\n while(!commands.isEmpty()) {\n rootList.add(getCommandTree());\n }\n return rootList;\n }",
"public @NonNull Collection<@NonNull Node<@Nullable CommandArgument<C, ?>>> getRootNodes() {\n return this.internalTree.getChildren();\n }",
"@Override\r\n\tpublic List<List<Node<T>>> getPathsFromRootToAnyLeaf() {\r\n\t\tList<Node<T>> listaHojas = new LinkedList<Node<T>>();// Lista con todas\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// las hojas\r\n\t\t// del arbol\r\n\t\tlistaHojas = listaHojas(raiz, listaHojas);// Hojas\r\n\t\tList<List<Node<T>>> listaFinal = new LinkedList<List<Node<T>>>();// Lista\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// con\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// todos\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// los\r\n\t\t// caminos de la\r\n\t\t// raiz a las hojas\r\n\t\tfor (int i = 1; i <= listaHojas.size(); i++) {\r\n\t\t\tList<Node<T>> lista = new LinkedList<Node<T>>();\r\n\t\t\tlistaFinal.add(completaCamino(listaHojas.get(i), lista));// Crea\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// los\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// caminos\r\n\t\t}\r\n\t\treturn listaFinal;\r\n\t}",
"public static void addSubCommand(String root,String sub) {\n\t\tcommands.get(root).add(sub);\n\t\tlast[0] = root;\n\t\tlast[1] = sub;\n\t}",
"private Command getCommandTree() {\n var command = this.commands.get(0);\n var comSize = commands.size();\n commands = commands.subList(1, comSize);\n return builder(command);\n }",
"private List<PSActionMenu> structureActions(Map<String, List<PSActionMenu>> folderActions)\n {\n boolean alwaysShowSubmenu = true;\n String skipFolders = PSServer.getProperty(SERVER_PROP_SKIP_FOLDERS);\n if (skipFolders != null)\n alwaysShowSubmenu = skipFolders.trim().equalsIgnoreCase(\"false\");\n List<PSActionMenu> retList = new ArrayList<>();\n List<PSActionMenu> thisLevelActions = folderActions.get(\"\");\n\n // add all without any further path\n if (thisLevelActions != null)\n {\n retList.addAll(thisLevelActions);\n alwaysShowSubmenu = (thisLevelActions.size() > 0);\n }\n // split out the first part of the path\n Map<String, List<String>> pathSplit = new HashMap<>();\n for (String path : folderActions.keySet())\n {\n if (path.length() > 0)\n {\n String left;\n String right;\n if (!path.contains(\"/\"))\n {\n left = path;\n right = \"\";\n }\n else\n {\n left = path.substring(0, path.indexOf(\"/\"));\n right = path.substring(path.indexOf(\"/\") + 1);\n }\n List<String> rights = pathSplit.get(left);\n if (rights == null)\n {\n rights = new ArrayList<>();\n pathSplit.put(left, rights);\n }\n rights.add(right);\n }\n }\n\n // loop through each direct subfolder\n Set<String> folders = pathSplit.keySet();\n\n for (String folder : folders)\n {\n Map<String, List<PSActionMenu>> submenuActions = new HashMap<>();\n // create a modified action map stripping off the first part of the\n // path\n for (String right : pathSplit.get(folder))\n {\n String testPath = folder;\n if (right.length() > 0)\n testPath += \"/\" + right;\n submenuActions.put(right, folderActions.get(testPath));\n }\n\n // recursive call to get results from next level\n List<PSActionMenu> subResult = structureActions(submenuActions);\n // if more than one direct subfolder with the same name create new\n // submenu\n // if only one add it directly to current level.\n\n if (folders.size() > 1 || alwaysShowSubmenu)\n {\n PSActionMenu subMenu = new PSActionMenu(\"sub-\" + folder, folder, PSMenuAction.TYPE_MENU, \"\",\n PSMenuAction.HANDLER_CLIENT, 0);\n subMenu.setChildren(subResult);\n retList.add(subMenu);\n }\n else\n {\n retList.addAll(subResult);\n }\n }\n\n Collections.sort(retList, actionComparator);\n return retList;\n }",
"public static void addRootCommand(String name) {\n\t\tcommands.put(name, new ArrayList<String>());\n\t\thandler.put(name, new HashMap<String, Handler>());\n\t\thelp.put(name, new HashMap<String,String>());\n\t\thelpargs.put(name, new HashMap<String,String>());\n\t\tpermissions.put(name, new HashMap<String,String>());\n\t}",
"public List<String> paths(TreeNode root){\r\n List<String> result = new ArrayList<>();\r\n if(root!=null){\r\n binaryTreePath(root, \"\", result);\r\n }\r\n for(String s: result){\r\n System.out.println(s);\r\n }\r\n return result;\r\n }",
"public void verifyAndRegister() {\n // All top level commands are supposed to be registered in the command manager\n this.internalTree.children.stream().map(Node::getValue).forEach(commandArgument -> {\n if (!(commandArgument instanceof StaticArgument)) {\n throw new IllegalStateException(\"Top level command argument cannot be a variable\");\n }\n });\n\n this.checkAmbiguity(this.internalTree);\n\n // Verify that all leaf nodes have command registered\n this.getLeaves(this.internalTree).forEach(leaf -> {\n if (leaf.getOwningCommand() == null) {\n throw new NoCommandInLeafException(leaf);\n } else {\n final Command<C> owningCommand = leaf.getOwningCommand();\n this.commandManager.getCommandRegistrationHandler().registerCommand(owningCommand);\n }\n });\n\n // Register command permissions\n this.getLeavesRaw(this.internalTree).forEach(node -> {\n // noinspection all\n final CommandPermission commandPermission = node.getValue().getOwningCommand().getCommandPermission();\n /* All leaves must necessarily have an owning command */\n node.nodeMeta.put(\"permission\", commandPermission);\n // Get chain and order it tail->head then skip the tail (leaf node)\n List<Node<CommandArgument<C, ?>>> chain = this.getChain(node);\n Collections.reverse(chain);\n chain = chain.subList(1, chain.size());\n // Go through all nodes from the tail upwards until a collision occurs\n for (final Node<CommandArgument<C, ?>> commandArgumentNode : chain) {\n final CommandPermission existingPermission = (CommandPermission) commandArgumentNode.nodeMeta\n .get(\"permission\");\n\n CommandPermission permission;\n if (existingPermission != null) {\n permission = OrPermission.of(Arrays.asList(commandPermission, existingPermission));\n } else {\n permission = commandPermission;\n }\n\n /* Now also check if there's a command handler attached to an upper level node */\n if (commandArgumentNode.getValue() != null && commandArgumentNode\n .getValue()\n .getOwningCommand() != null) {\n final Command<C> command = commandArgumentNode.getValue().getOwningCommand();\n if (this\n .getCommandManager()\n .getSetting(CommandManager.ManagerSettings.ENFORCE_INTERMEDIARY_PERMISSIONS)) {\n permission = command.getCommandPermission();\n } else {\n permission = OrPermission.of(Arrays.asList(permission, command.getCommandPermission()));\n }\n }\n\n commandArgumentNode.nodeMeta.put(\"permission\", permission);\n }\n });\n }",
"private void createGroupCommand(Command root){\n\t\tif(codeReader.hasNext(END_GROUP))\n\t\t\tthrow new SLogoException(\"No arguments specified in grouping.\");\n\t\twhile(!codeReader.hasNext(END_GROUP)) {\n\t\t\ttry {\n\t\t\t\thandleSpecialCases(root);\n\t\t\t\tString s = codeReader.next();\n\t\t\t\troot.addChild(parseCommand(s));\n\t\t\t}\n\t\t\tcatch(NoSuchElementException n) {\n\t\t\t\tthrow new SLogoException(\"Unclosed Parenthesis.\");\n\t\t\t}\n\t\t}\n\t\tcodeReader.next();\n\t}",
"public String getRoot();",
"public void printAllPaths(TreeNode root){\n ArrayList<Integer> path = new ArrayList<>();\n ArrayList<ArrayList<Integer>> result = new ArrayList<>();\n System.out.println(printAllPathsofTree(root, path, result));\n }",
"void subMenuCommand(String command){\n\t\tString[] strArray=command.split(\"\\\\s\");\n\t\tString mainCommand=strArray[0];\n\t\t\n\t\t// if - else if - else loop to check for the particular command and take actions according those commands\n\t\t\n\t\t// Block to delete the given song id from the current playlist\n\t\tif(mainCommand.equals(\"delete\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length==2){\n\t\t\t\t\tint songID=Integer.parseInt(strArray[1]);\n\t\t\t\t\tPlaylist pl=songFile.playlistArray.get(currentPlaylistID);\n\t\t\t\t\tpl.deleteSong(new Integer(songID));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid delete command!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Block to insert the given song id to current playlist\n\t\telse if(mainCommand.equals(\"insert\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length==2){\n\t\t\t\t\tint songID=Integer.parseInt(strArray[1]);\n\t\t\t\t\tif(songFile.isSongIdAvailable(songID)){//songID<songFile.songID){\n\t\t\t\t\t\tPlaylist pl=songFile.playlistArray.get(currentPlaylistID);\n\t\t\t\t\t\tpl.insertSong(new Integer(songID));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Song with the given ID does not exists!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid insert command!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Block to print the current playlist \n\t\telse if(mainCommand.equals(\"print\")){\n\t\t\tif(strArray.length==1){\n\t\t\t\tsongFile.printPlaylist(currentPlaylistID);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// Block to sort and print the songs of the current playlist by the given song attribute \n\t\telse if(mainCommand.equals(\"sort\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length==2){\n\t\t\t\t\tString subCommand=strArray[1];\n\t\t\t\t\tif(subCommand.equals(\"artist\") || subCommand.equals(\"title\")){\n\t\t\t\t\t\tsongFile.sortPlaylistSongs(currentPlaylistID, subCommand);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid sort command!!\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// Block to search the playlist for the songs with user given attributes and search terms\n\t\telse if(mainCommand.equals(\"search\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length>2){\n\t\t\t\t\tString subCommand=strArray[1];\n\t\t\t\t\t// Get search string from command\n\t\t\t\t\tString songAttributeValue=command.substring(command.indexOf(\"\\\"\")+1,command.lastIndexOf(\"\\\"\")).toLowerCase();\n\t\t\t\t\tif(subCommand.equals(\"artist\") || subCommand.equals(\"title\")){\n\t\t\t\t\t\tArrayList<Song> list=songFile.searchPlaylist(currentPlaylistID, subCommand, songAttributeValue);\n\t\t\t\t\t\tsongFile.printArrayList(list);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!! No search terms\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid search command!!\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// Block to search the for the songs and insert to the current playlist\n\t\telse if(mainCommand.equals(\"insert_search\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length>2){\n\t\t\t\t\tString subCommand=strArray[1];\n\t\t\t\t\t// Get search string from command\n\t\t\t\t\tString songAttributeValue=command.substring(command.indexOf(\"\\\"\")+1,command.lastIndexOf(\"\\\"\")).toLowerCase();\n\t\t\t\t\tif(subCommand.equals(\"artist\") || subCommand.equals(\"title\")){\n\t\t\t\t\t\tArrayList<Song> list=songFile.searchSong(subCommand, songAttributeValue);\n\t\t\t\t\t\tPlaylist playlist=songFile.playlistArray.get(currentPlaylistID);\n\t\t\t\t\t\tif(list!= null && list.size()>0){\n\t\t\t\t\t\t\tfor(Song s:list){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Inserting song:\"+s.getSongArtist());\n\t\t\t\t\t\t\t\tplaylist.insertSong(s.getSongId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tSystem.out.println(\"No matching songs found!!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!! No search terms\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid insert_search command!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Block for other invalid commands\n\t\telse{\n\t\t\tSystem.out.println(\"Please enter a valid command.\");\n\t\t}\n\t\t\n\t\n\t}",
"public List<Node> getRootElements() {\n List<Node> subRoots = tree.find(\"s\", \"neb\", \"objc\");\n List<Node> directRoots = this.tree.getChildren().stream()\n .filter(x -> !x.getPosGroup().equals(\"$.\") && !x.getPosGroup().equals(\"$,\") && !x.getPosGroup().equals(\"$(\"))\n .collect(Collectors.toList());\n\n subRoots.addAll(directRoots);\n\n return subRoots;\n }",
"public void printAllRootToLeafPaths(){\n\t\tint[] path = new int[256];\n\t\tBinaryTreeNode root = null;\n\t\tprintAllRootToLeafPaths(root ,path,0);\n\t}",
"public String[] getRoots() {\n return roots;\n }",
"public static String getHelpArgs(String root, String sub) {\n\t\tif(!helpargs.containsKey(root)) return null;\n\t\ttry{\n\t\t\treturn helpargs.get(root).get(sub);\n\t\t}catch(Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"protected int connectCommands(Vector<OxCommand> commands, int i, int depth, OxConstants cons) {\n for (OxCommand cmd : commands) {\n if (cmd instanceof SubCmd) {\n theSubroutine = (SubCmd) cmd;\n if (theSubroutine._subName.equalsIgnoreCase(subName)) {\n theSubroutine._calledFrom = this;\n return depth;\n }\n }\n }\n throw new OxException(\"Unable to find a \" + cons.SUB_COMMAND + \" named \" + subName);\n }",
"public final AstValidator.nested_command_return nested_command() throws RecognitionException {\n AstValidator.nested_command_return retval = new AstValidator.nested_command_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree NESTED_CMD356=null;\n CommonTree IDENTIFIER357=null;\n CommonTree NESTED_CMD_ASSI359=null;\n CommonTree IDENTIFIER360=null;\n AstValidator.nested_op_return nested_op358 =null;\n\n AstValidator.expr_return expr361 =null;\n\n\n CommonTree NESTED_CMD356_tree=null;\n CommonTree IDENTIFIER357_tree=null;\n CommonTree NESTED_CMD_ASSI359_tree=null;\n CommonTree IDENTIFIER360_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:571:2: ( ^( NESTED_CMD IDENTIFIER nested_op ) | ^( NESTED_CMD_ASSI IDENTIFIER expr ) )\n int alt103=2;\n int LA103_0 = input.LA(1);\n\n if ( (LA103_0==NESTED_CMD) ) {\n alt103=1;\n }\n else if ( (LA103_0==NESTED_CMD_ASSI) ) {\n alt103=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 103, 0, input);\n\n throw nvae;\n\n }\n switch (alt103) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:571:4: ^( NESTED_CMD IDENTIFIER nested_op )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n NESTED_CMD356=(CommonTree)match(input,NESTED_CMD,FOLLOW_NESTED_CMD_in_nested_command2984); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n NESTED_CMD356_tree = (CommonTree)adaptor.dupNode(NESTED_CMD356);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(NESTED_CMD356_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n IDENTIFIER357=(CommonTree)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_nested_command2986); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IDENTIFIER357_tree = (CommonTree)adaptor.dupNode(IDENTIFIER357);\n\n\n adaptor.addChild(root_1, IDENTIFIER357_tree);\n }\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_nested_op_in_nested_command2988);\n nested_op358=nested_op();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, nested_op358.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n ((nested_blk_scope)nested_blk_stack.peek()).ids.add( (IDENTIFIER357!=null?IDENTIFIER357.getText():null) );\n }\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:575:4: ^( NESTED_CMD_ASSI IDENTIFIER expr )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n NESTED_CMD_ASSI359=(CommonTree)match(input,NESTED_CMD_ASSI,FOLLOW_NESTED_CMD_ASSI_in_nested_command3002); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n NESTED_CMD_ASSI359_tree = (CommonTree)adaptor.dupNode(NESTED_CMD_ASSI359);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(NESTED_CMD_ASSI359_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n IDENTIFIER360=(CommonTree)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_nested_command3004); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IDENTIFIER360_tree = (CommonTree)adaptor.dupNode(IDENTIFIER360);\n\n\n adaptor.addChild(root_1, IDENTIFIER360_tree);\n }\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_expr_in_nested_command3006);\n expr361=expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, expr361.getTree());\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n ((nested_blk_scope)nested_blk_stack.peek()).ids.add( (IDENTIFIER360!=null?IDENTIFIER360.getText():null) );\n }\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"java.lang.String getRoot();",
"abstract public List<Command> getChildren();",
"public List<String> binaryTreePaths(TreeNode root) {\r\n \tList<String> ret = new LinkedList<String>(); \r\n \tif(root ==null) return ret; \t\r\n \tbinaryTreePaths_helper(root, \"\", ret); \t\r\n return ret;\r\n }",
"Commands getElse_commands();",
"public abstract Set<RootServiceComponentResponse> getRootServiceComponents(RootServiceComponentRequest request) throws AmbariException;",
"public List<String> binaryTreePaths(TreeNode root) {\n List<String> result = new LinkedList<>();\n \n if(root==null) return result; \n \n setBinaryTreePaths(root, \"\", result); \n \n return result;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.CalcRoutineParamName getRoot();",
"public List<T> getChildChoices()\n\t{\n\t\tfinal List<T> childChoices = getModelsMap().get(getSelectedRootOption());\n\t\tif (childChoices == null || childChoices.isEmpty())\n\t\t{\n\t\t\treturn Collections.emptyList();\n\t\t}\n\t\treturn childChoices;\n\t}",
"public abstract Set<RootServiceResponse> getRootServices(RootServiceRequest request) throws AmbariException;",
"public SortedMap<String, ShellCommand> commands();",
"static public void unregisterAllRoot()\n {\n java.lang.SecurityManager sm = System.getSecurityManager();\n if( sm != null )\n {\n sm.checkPermission( new RuntimePermission( \"modifyRepository\" ) );\n }\n\n rootMap.clear();\n }",
"public static boolean subIsLinked(String root, String sub) {\n\t\treturn commands.containsKey(root) ? commands.get(root).contains(sub) : false;\n\t}",
"@android.annotation.SuppressLint({\"NewApi\"})\n private void listRoots() {\n /*\n r23 = this;\n r21 = 0;\n r0 = r21;\n r1 = r23;\n r1.currentDir = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r21.clear();\n r17 = new java.util.HashSet;\n r17.<init>();\n r21 = android.os.Environment.getExternalStorageDirectory();\n r5 = r21.getPath();\n r12 = android.os.Environment.isExternalStorageRemovable();\n r6 = android.os.Environment.getExternalStorageState();\n r21 = \"mounted\";\n r0 = r21;\n r21 = r6.equals(r0);\n if (r21 != 0) goto L_0x003c;\n L_0x0031:\n r21 = \"mounted_ro\";\n r0 = r21;\n r21 = r6.equals(r0);\n if (r21 == 0) goto L_0x0084;\n L_0x003c:\n r8 = new org.telegram.ui.DocumentSelectActivity$ListItem;\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r8.<init>();\n r21 = android.os.Environment.isExternalStorageRemovable();\n if (r21 == 0) goto L_0x02ae;\n L_0x004d:\n r21 = \"SdCard\";\n r22 = 2131494825; // 0x7f0c07a9 float:1.861317E38 double:1.0530983673E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r8.title = r0;\n r21 = 2131165433; // 0x7f0700f9 float:1.7945083E38 double:1.052935626E-314;\n r0 = r21;\n r8.icon = r0;\n L_0x0062:\n r0 = r23;\n r21 = r0.getRootSubtitle(r5);\n r0 = r21;\n r8.subtitle = r0;\n r21 = android.os.Environment.getExternalStorageDirectory();\n r0 = r21;\n r8.file = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r0 = r21;\n r0.add(r8);\n r0 = r17;\n r0.add(r5);\n L_0x0084:\n r3 = 0;\n r4 = new java.io.BufferedReader;\t Catch:{ Exception -> 0x0302 }\n r21 = new java.io.FileReader;\t Catch:{ Exception -> 0x0302 }\n r22 = \"/proc/mounts\";\n r21.<init>(r22);\t Catch:{ Exception -> 0x0302 }\n r0 = r21;\n r4.<init>(r0);\t Catch:{ Exception -> 0x0302 }\n L_0x0094:\n r14 = r4.readLine();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r14 == 0) goto L_0x02dd;\n L_0x009a:\n r21 = \"vfat\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x00b0;\n L_0x00a5:\n r21 = \"/mnt\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x0094;\n L_0x00b0:\n r21 = org.telegram.messenger.BuildVars.LOGS_ENABLED;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x00b7;\n L_0x00b4:\n org.telegram.messenger.FileLog.d(r14);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n L_0x00b7:\n r19 = new java.util.StringTokenizer;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = \" \";\n r0 = r19;\n r1 = r21;\n r0.<init>(r14, r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r20 = r19.nextToken();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r16 = r19.nextToken();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r0 = r17;\n r1 = r16;\n r21 = r0.contains(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x00d5:\n r21 = \"/dev/block/vold\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x0094;\n L_0x00e0:\n r21 = \"/mnt/secure\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x00eb:\n r21 = \"/mnt/asec\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x00f6:\n r21 = \"/mnt/obb\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x0101:\n r21 = \"/dev/mapper\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x010c:\n r21 = \"tmpfs\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x0117:\n r21 = new java.io.File;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r0 = r21;\n r1 = r16;\n r0.<init>(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = r21.isDirectory();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0163;\n L_0x0126:\n r21 = 47;\n r0 = r16;\n r1 = r21;\n r11 = r0.lastIndexOf(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = -1;\n r0 = r21;\n if (r11 == r0) goto L_0x0163;\n L_0x0136:\n r21 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21.<init>();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r22 = \"/storage/\";\n r21 = r21.append(r22);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r22 = r11 + 1;\n r0 = r16;\n r1 = r22;\n r22 = r0.substring(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = r21.append(r22);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r15 = r21.toString();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = new java.io.File;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r0 = r21;\n r0.<init>(r15);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = r21.isDirectory();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x0163;\n L_0x0161:\n r16 = r15;\n L_0x0163:\n r0 = r17;\n r1 = r16;\n r0.add(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r13 = new org.telegram.ui.DocumentSelectActivity$ListItem;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r13.<init>();\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = r16.toLowerCase();\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r22 = \"sd\";\n r21 = r21.contains(r22);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n if (r21 == 0) goto L_0x02c5;\n L_0x0182:\n r21 = \"SdCard\";\n r22 = 2131494825; // 0x7f0c07a9 float:1.861317E38 double:1.0530983673E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.title = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n L_0x0190:\n r21 = 2131165433; // 0x7f0700f9 float:1.7945083E38 double:1.052935626E-314;\n r0 = r21;\n r13.icon = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r23;\n r1 = r16;\n r21 = r0.getRootSubtitle(r1);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.subtitle = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = new java.io.File;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r1 = r16;\n r0.<init>(r1);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.file = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r23;\n r0 = r0.items;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = r0;\n r0 = r21;\n r0.add(r13);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n goto L_0x0094;\n L_0x01bd:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n goto L_0x0094;\n L_0x01c3:\n r7 = move-exception;\n r3 = r4;\n L_0x01c5:\n org.telegram.messenger.FileLog.e(r7);\t Catch:{ all -> 0x0300 }\n if (r3 == 0) goto L_0x01cd;\n L_0x01ca:\n r3.close();\t Catch:{ Exception -> 0x02ec }\n L_0x01cd:\n r9 = new org.telegram.ui.DocumentSelectActivity$ListItem;\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r9.<init>();\n r21 = \"/\";\n r0 = r21;\n r9.title = r0;\n r21 = \"SystemRoot\";\n r22 = 2131495071; // 0x7f0c089f float:1.8613668E38 double:1.053098489E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r9.subtitle = r0;\n r21 = 2131165426; // 0x7f0700f2 float:1.7945069E38 double:1.0529356226E-314;\n r0 = r21;\n r9.icon = r0;\n r21 = new java.io.File;\n r22 = \"/\";\n r21.<init>(r22);\n r0 = r21;\n r9.file = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r0 = r21;\n r0.add(r9);\n r18 = new java.io.File;\t Catch:{ Exception -> 0x02f7 }\n r21 = android.os.Environment.getExternalStorageDirectory();\t Catch:{ Exception -> 0x02f7 }\n r22 = \"Telegram\";\n r0 = r18;\n r1 = r21;\n r2 = r22;\n r0.<init>(r1, r2);\t Catch:{ Exception -> 0x02f7 }\n r21 = r18.exists();\t Catch:{ Exception -> 0x02f7 }\n if (r21 == 0) goto L_0x0254;\n L_0x0223:\n r10 = new org.telegram.ui.DocumentSelectActivity$ListItem;\t Catch:{ Exception -> 0x02f7 }\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r10.<init>();\t Catch:{ Exception -> 0x02f7 }\n r21 = \"Telegram\";\n r0 = r21;\n r10.title = r0;\t Catch:{ Exception -> 0x02fd }\n r21 = r18.toString();\t Catch:{ Exception -> 0x02fd }\n r0 = r21;\n r10.subtitle = r0;\t Catch:{ Exception -> 0x02fd }\n r21 = 2131165426; // 0x7f0700f2 float:1.7945069E38 double:1.0529356226E-314;\n r0 = r21;\n r10.icon = r0;\t Catch:{ Exception -> 0x02fd }\n r0 = r18;\n r10.file = r0;\t Catch:{ Exception -> 0x02fd }\n r0 = r23;\n r0 = r0.items;\t Catch:{ Exception -> 0x02fd }\n r21 = r0;\n r0 = r21;\n r0.add(r10);\t Catch:{ Exception -> 0x02fd }\n r9 = r10;\n L_0x0254:\n r9 = new org.telegram.ui.DocumentSelectActivity$ListItem;\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r9.<init>();\n r21 = \"Gallery\";\n r22 = 2131493847; // 0x7f0c03d7 float:1.8611186E38 double:1.053097884E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r9.title = r0;\n r21 = \"GalleryInfo\";\n r22 = 2131493848; // 0x7f0c03d8 float:1.8611188E38 double:1.0530978846E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r9.subtitle = r0;\n r21 = 2131165529; // 0x7f070159 float:1.7945278E38 double:1.0529356735E-314;\n r0 = r21;\n r9.icon = r0;\n r21 = 0;\n r0 = r21;\n r9.file = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r0 = r21;\n r0.add(r9);\n r0 = r23;\n r0 = r0.listView;\n r21 = r0;\n org.telegram.messenger.AndroidUtilities.clearDrawableAnimation(r21);\n r21 = 1;\n r0 = r21;\n r1 = r23;\n r1.scrolling = r0;\n r0 = r23;\n r0 = r0.listAdapter;\n r21 = r0;\n r21.notifyDataSetChanged();\n return;\n L_0x02ae:\n r21 = \"InternalStorage\";\n r22 = 2131493929; // 0x7f0c0429 float:1.8611352E38 double:1.0530979246E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r8.title = r0;\n r21 = 2131165528; // 0x7f070158 float:1.7945276E38 double:1.052935673E-314;\n r0 = r21;\n r8.icon = r0;\n goto L_0x0062;\n L_0x02c5:\n r21 = \"ExternalStorage\";\n r22 = 2131493730; // 0x7f0c0362 float:1.8610948E38 double:1.0530978263E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.title = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n goto L_0x0190;\n L_0x02d5:\n r21 = move-exception;\n r3 = r4;\n L_0x02d7:\n if (r3 == 0) goto L_0x02dc;\n L_0x02d9:\n r3.close();\t Catch:{ Exception -> 0x02f2 }\n L_0x02dc:\n throw r21;\n L_0x02dd:\n if (r4 == 0) goto L_0x0305;\n L_0x02df:\n r4.close();\t Catch:{ Exception -> 0x02e5 }\n r3 = r4;\n goto L_0x01cd;\n L_0x02e5:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\n r3 = r4;\n goto L_0x01cd;\n L_0x02ec:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\n goto L_0x01cd;\n L_0x02f2:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\n goto L_0x02dc;\n L_0x02f7:\n r7 = move-exception;\n L_0x02f8:\n org.telegram.messenger.FileLog.e(r7);\n goto L_0x0254;\n L_0x02fd:\n r7 = move-exception;\n r9 = r10;\n goto L_0x02f8;\n L_0x0300:\n r21 = move-exception;\n goto L_0x02d7;\n L_0x0302:\n r7 = move-exception;\n goto L_0x01c5;\n L_0x0305:\n r3 = r4;\n goto L_0x01cd;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.DocumentSelectActivity.listRoots():void\");\n }",
"public Iterable<Entity> getSubMenusForTopMenu(String topMenuKey) {\n\t //\tKey ancestorKey = KeyFactory.createKey(KIND_TOPMENU, topMenuName);\n\t //\treturn Util.listChildren(KIND_SUBMENU, ancestorKey);\n\t return new UtilDataSourceAPI().listEntities(KIND_SUBMENU, PROPERTY_SUBMENU_TOPMENU_COLUMN, topMenuKey);\n \t //return Helper.removeNull(utilInterface.listEntities(KIND_SUBMENU, PROPERTY_TOPMENU_NAME, topMenuKey));\n }",
"private void printAllPaths(final Node root, final Stack<Node> stack){\n if(root == null){\n return;\n }\n stack.push(root);\n if(root.getLeft()==null && root.getRight()==null){\n stack.display();\n stack.pop();\n return;\n }\n printAllPaths(root.getLeft(), stack);\n printAllPaths(root.getRight(), stack);\n\n //Once right subTree is processed, remove its parent\n stack.pop();\n }",
"public interface Command {\n\t\t\n\t/**\n\t * Executes the command.\n\t * @param (TurtleModel) t the turtle executing the command\n\t * @return the value the command evaluates to\n\t * @throws InvalidCommandException\n\t */\n\tabstract public double execute(TurtleModel t) throws InvalidCommandException;\n\t\n\t/**\n\t * Executes the command and replaces it with a constant command if the command is not a turtle command\n\t * @param (TurtleModel) t the turtle executing the command\n\t * @throws InvalidCommandException\n\t */\n\tabstract public void execNonTurtle(TurtleModel t) throws InvalidCommandException;\n\t\n\t/**\n\t * Checks if the command is a turtle command\n\t * @return true iff the command is a turtle command\n\t */\n\tabstract public boolean isTurtleCommand();\n\t\n\t/**\n\t * Checks if the command is a variable command\n\t * @return true iff the command is a variable command\n\t */\n\tabstract public boolean isVariableCommand();\n\t\n\t/**\n\t * Adds a command to this commands list of children/arguments\n\t * @param cmd\n\t */\n\tabstract public void addChild(Command cmd);\n\t\n\t/**\n\t * Replaces this command with another, by making the replacement the parent's child instead of this.\n\t * @param replacement\n\t */\n\tabstract public void selfReplace(Command replacement);\n\t\n\t/**\n\t * Checks if the command needs more arguments\n\t * @return true iff command can hold more arguments\n\t */\n\tabstract public boolean argsNotFull();\n\t\n\t/**\n\t * Gets the maximum arguments the command can hold\n\t * @return maximum arguments\n\t */\n\tabstract public int maxArgs();\n\t\n\t/**\n\t * Gets string representation of the command. Mostly used for debugging.\n\t * @return string representation\n\t */\n\tabstract public String toString();\n\t\n\t/**\n\t * Gets the command's name \n\t * @return the command's name\n\t */\n\tabstract public String getName();\n\t\n\t/**\n\t * Gets the commands children\n\t * @return the list of children\n\t */\n\tabstract public List<Command> getChildren();\n\t\n\t/**\n\t * Gets child index\n\t * @param index\n\t * @return the child at index index\n\t */\n\tabstract public Command getChild(int index);\n\t\n\t/**\n\t * Gets the command's parent\n\t * @return parent\n\t */\n\tabstract public Command getParent();\n\t\n\t/**\n\t * Sets the command's parent to cmd\n\t * @param cmd\n\t */\n\tabstract public void setParent(Command cmd);\n\t\n\t/**\n\t * Sets the TurtleModel used for execution to t\n\t * @param t\n\t */\n\tabstract public void setTurtle(TurtleModel t);\n\t\n\t/**\n\t * Gets the TurtleModel used for execution\n\t * @return the TurtleModel used for execution\n\t */\n\tabstract public TurtleModel getTurtle();\n\t\n\t/**\n\t * Sets the TurtleModel used for execution to value, and calls setTurtleRecursive(value)\n\t * on this turtle's parent\n\t * @param value\n\t */\n\tpublic abstract void setTurtleRecursive(TurtleModel value);\n}",
"@Override\r\n\tpublic Collection<CacheTreeNode> getRootList() {\n\t\tCacheTreeNode node = (CacheTreeNode)this.getCacheData(SUPER_ROOT_KEY);\r\n\t\tif(node != null){\r\n\t\t\treturn node.getChildren();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Iterable<Entity> getAllSubMenus() {\n\t\treturn new UtilDataSourceAPI().listEntities(KIND_SUBMENU, null, null);\n\t }",
"public static boolean rootIsLinked(String rootCMD) {\n\t\treturn commands.containsKey(rootCMD);\n\t}",
"@Override\r\n\t\tpublic SortedMap<String, ShellCommand> commands() {\n\t\t\treturn null;\r\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n\t// caused by instanceof simulation\n\tprivate <T extends EObject> List<T> allSubobjectsOfKind(EObject rootObject,\n\t\t\tClass<T> type) {\n\t\tList<T> result = new LinkedList<T>();\n\t\tTreeIterator<EObject> iterator = rootObject.eAllContents();\n\t\twhile (iterator.hasNext()) {\n\t\t\tEObject eObj = iterator.next();\n\t\t\tif (eObj.getClass() == type) { // simulates instanceof\n\t\t\t\tresult.add((T) eObj);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"@Override\r\n\tpublic List<String> getRootKeys() {\n\t\tCacheTreeNode node = (CacheTreeNode)this.getCacheData(SUPER_ROOT_KEY);\r\n\t\tif(node != null){\r\n\t\t\tCollection<CacheTreeNode> rootList = node.getChildren();\r\n\t\t\tList<String> result = new ArrayList<String>(rootList.size());\r\n\t\t\tif(rootList != null){\r\n\t\t\t\tfor(Iterator<CacheTreeNode> i = rootList.iterator(); i.hasNext();)\r\n\t\t\t\t\tresult.add(i.next().getKey());\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static String getHelp(String root, String sub) {\n\t\tif(!help.containsKey(root)) return null;\n\t\ttry{\n\t\t\treturn help.get(root).get(sub);\n\t\t}catch(Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"@SuppressWarnings(\"MixedMutabilityReturnType\")\n private @NonNull List<@NonNull String> getSuggestions(\n final @NonNull CommandContext<C> commandContext,\n final @NonNull Queue<@NonNull String> commandQueue,\n final @NonNull Node<@Nullable CommandArgument<C, ?>> root\n ) {\n if (this.isPermitted(commandContext.getSender(), root) != null) {\n return Collections.emptyList();\n }\n final List<Node<CommandArgument<C, ?>>> children = root.getChildren();\n\n /* Calculate a list of arguments that are static literals */\n final List<Node<CommandArgument<C, ?>>> staticArguments = children.stream()\n .filter(n -> n.getValue() instanceof StaticArgument)\n .collect(Collectors.toList());\n\n /*\n * Try to see if any of the static literals can be parsed (matches exactly)\n * If so, enter that node of the command tree for deeper suggestions\n */\n if (!staticArguments.isEmpty() && !commandQueue.isEmpty()) {\n final Queue<String> commandQueueCopy = new LinkedList<String>(commandQueue);\n final Iterator<Node<CommandArgument<C, ?>>> childIterator = staticArguments.iterator();\n if (childIterator.hasNext()) {\n while (childIterator.hasNext()) {\n final Node<CommandArgument<C, ?>> child = childIterator.next();\n if (child.getValue() != null) {\n commandContext.setCurrentArgument(child.getValue());\n final ArgumentParseResult<?> result = child.getValue().getParser().parse(\n commandContext,\n commandQueue\n );\n if (result.getParsedValue().isPresent()) {\n // If further arguments are specified, dive into this literal\n if (!commandQueue.isEmpty()) {\n return this.getSuggestions(commandContext, commandQueue, child);\n }\n\n // We've already matched one exactly, no use looking further\n break;\n }\n }\n }\n }\n\n // Restore original queue\n commandQueue.clear();\n commandQueue.addAll(commandQueueCopy);\n }\n\n /* Calculate suggestions for the literal arguments */\n final List<String> suggestions = new LinkedList<>();\n if (commandQueue.size() <= 1) {\n final String literalValue = this.stringOrEmpty(commandQueue.peek());\n for (final Node<CommandArgument<C, ?>> argument : staticArguments) {\n if (this.isPermitted(commandContext.getSender(), argument) != null) {\n continue;\n }\n commandContext.setCurrentArgument(argument.getValue());\n final List<String> suggestionsToAdd = argument.getValue().getSuggestionsProvider()\n .apply(commandContext, literalValue);\n for (String suggestion : suggestionsToAdd) {\n if (suggestion.equals(literalValue) || !suggestion.startsWith(literalValue)) {\n continue;\n }\n suggestions.add(suggestion);\n }\n }\n }\n\n /* Calculate suggestions for the variable argument, if one exists */\n for (final Node<CommandArgument<C, ?>> child : root.getChildren()) {\n if (child.getValue() != null && !(child.getValue() instanceof StaticArgument)) {\n suggestions.addAll(this.suggestionsForDynamicArgument(commandContext, commandQueue, child));\n }\n }\n\n return suggestions;\n }",
"public static void main(String[] args) {\n TreeNode node1 = new TreeNode(4);\n TreeNode node2 = new TreeNode(1);\n TreeNode node3 = new TreeNode(12);\n TreeNode node4 = new TreeNode(3);\n TreeNode node5 = new TreeNode(2);\n TreeNode node6 = new TreeNode(5);\n TreeNode node7 = new TreeNode(3);\n\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node3.left = node6;\n node3.right = node7;\n\n\n /*\n * 1\n * 3 2\n */\n TreeNode node11 = new TreeNode(1);\n TreeNode node21 = new TreeNode(3);\n TreeNode node31 = new TreeNode(2);\n\n node11.left = node21;\n node11.right = node31;\n\n /*\n * 1\n * 3 3\n */\n TreeNode node12 = new TreeNode(1);\n TreeNode node22 = new TreeNode(3);\n TreeNode node32 = new TreeNode(3);\n\n node12.left = node22;\n node12.right = node32;\n\n System.out.println(isRoot2SubTreeOfRoot1(node1, node11));\n System.out.println(isRoot2SubTreeOfRoot1(node1, node12));\n }",
"protected int connectCommands(Vector<OxCommand> commands, int i, int depth, OxConstants cons) {\n for (OxCommand cmd : commands) {\n if (cmd instanceof SubCmd && cmd != this) {\n SubCmd otherSub = (SubCmd) cmd;\n if (otherSub._subName.equalsIgnoreCase(_subName)) {\n throw new OxException(\"Duplicate \" + cons.SUB_COMMAND + \" named \" + _subName);\n }\n }\n }\n\n return super.connectCommands(commands, i, depth, cons);\n }",
"List<String> getCommands();",
"void setROOT(amdocs.iam.pd.webservices.quotation.getquoteinput.GetQuoteInput root);",
"public static void processMainMenu() {\n\n\t\tString mainPrompt = \"[anon@root]: \";\n\t\tboolean execute = true;\n\n\t\twhile (execute) {\n\t\t\tString[] words = prompt(mainPrompt);\n\t\t\tCmd cmd = stringToCmd(words[0]);\n\n\t\t\tswitch (cmd) {\n\t\t\tcase AU:\n\t\t\t\tif (validateInput2(words)) {\n\t\t\t\t\tSystem.out.println(handleAddUser(words[1].trim()));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DU:\n\t\t\t\tif (validateInput2(words)) {\n\t\t\t\t\tSystem.out.println(handleDelUser(words[1].trim())); \n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LI:\n\t\t\t\tif (validateInput2(words)) {\n\t\t\t\t\tSystem.out.println(handleLogin(words[1].trim()));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase HE:\n\t\t\t\tif (validateInput1(words)) {\n\t\t\t\t\tdisplayMainMenu();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase QU:\n\t\t\t\tif (validateInput1(words)) {\n\t\t\t\t\texecute = false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(ErrorType.UNKNOWN_COMMAND);\n\t\t\t}\n\n\t\t}\n\t}",
"public void printRoot(){\n for(String temp : root){\n System.out.println(temp);\n }\n }",
"public static ArrayList < ArrayList < Integer >> rootToAllLeafPath(TreeNode root) {\n ArrayList < ArrayList < Integer >> oans = new ArrayList < > ();\n ArrayList < Integer > list = new ArrayList < > ();\n\n helper(root, list, oans);\n\n return oans;\n }",
"public static void listAllCommands(){\n printLine();\n System.out.println(\" Hello there! Here are all the available commands and their respective formats:\");\n System.out.println(\" To add a deadline: \\\"deadline {Name of task} /by {date} \\\"\");\n System.out.println(\" To add an event: \\\"event {Name of task} /at {date} \\\" \\\");\");\n System.out.println(\" To add an item in todo: \\\"todo {Name of task}\\\" \");\n System.out.println(\" To list out all tasks that you have entered: \\\"list\\\"\");\n System.out.println(\" To filter task by date: \\\"list {date}\\\"\");\n System.out.println(\" To mark a task as completed: \\\"done {index of task in list}\\\"\");\n System.out.println(\" To delete a task: \\\"delete {index of task in list}\\\"\");\n System.out.println(\" To find a task: \\\"find {keyword to be searched }\\\"\");\n printLine();\n }",
"private Collection<String> iterateRoots( final Node libraryNode, final String rootType )\r\n throws IllegalArgumentException, ParseException {\r\n if ( libraryNode == null )\r\n throw new IllegalArgumentException( \"The library node cannot be null.\" );\r\n if ( rootType == null )\r\n throw new IllegalArgumentException( \"The root type string cannot be null.\" );\r\n\r\n final Set<String> set = new HashSet<String>();\r\n for ( final Node root : extractAll( libraryNode, rootType + \"/root\",\r\n \"Cannot extract \" + rootType.toLowerCase() + \" root paths for library \\\"\" + this.name + \"\\\"\" ) )\r\n set.add( extract( root, \"@url\",\r\n \"Cannot extract \" + rootType.toLowerCase() + \" root path URL for library \\\"\" + this.name + \"\\\"\" ) );\r\n return Collections.unmodifiableCollection( set );\r\n }",
"@Override\r\n\tpublic Permission queryRootPermission() {\n\t\treturn permissionDao.queryRootPermission();\r\n\t}",
"void mainMenuCommand(String command){\n\t\tString[] strArray=command.split(\"\\\\s\");\n\t\tString mainCommand=strArray[0];\n\t\t\n\t\t// if - else if - else loop to check for the particular command and take actions according those commands\n\t\t\n\t\t\n\t\t// Block to print the song details for given song id\n\t\tif(mainCommand.equals(\"song\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length==2){\n\t\t\t\t\tint songID=Integer.parseInt(strArray[1]);\n\t\t\t\t\tsongFile.printSong(songID);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Enter valid song id!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Block to print the playlist details for given playlist id\n\t\telse if(mainCommand.equals(\"playlist\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length==2){\n\t\t\t\t\tint playlistID=Integer.parseInt(strArray[1]);\n\t\t\t\t\tsongFile.printPlaylist(playlistID);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Enter valid playlist id!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Block to whole song list or all playlist depending on the user input\n\t\telse if(mainCommand.equals(\"print\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length==2){\n\t\t\t\t\tString subCommand=strArray[1];\n\t\t\t\t\tif(subCommand.equals(\"song\")){\n\t\t\t\t\t\tsongFile.printAllSongs();\n\t\t\t\t\t}\n\t\t\t\t\telse if(subCommand.equals(\"playlist\")){\n\t\t\t\t\t\tsongFile.printAllplaylist();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid print command!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Block to perform search for songs in the song list with user given attribute and search terms\n\t\telse if(mainCommand.equals(\"search\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length > 2){\n\t\t\t\t\tString subCommand=strArray[1];\n\t\t\t\t\t// Get search string from command\n\t\t\t\t\tString songAttributeValue=command.substring(command.indexOf(\"\\\"\")+1,command.lastIndexOf(\"\\\"\")).toLowerCase(); \n\t\t\t\t\tif(subCommand.equals(\"artist\")||subCommand.equals(\"title\")){\n\t\t\t\t\t\tArrayList<Song> list=songFile.searchSong(subCommand, songAttributeValue);\n\t\t\t\t\t\tsongFile.printArrayList(list);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Invalid Command!! \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!No search terms\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid search command!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Block to sort the song list on user given song attribute\n\t\telse if(mainCommand.equals(\"sort\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length==2){\n\t\t\t\t\tString subCommand=strArray[1];\n\t\t\t\t\tif(subCommand.equals(\"artist\")||subCommand.equals(\"title\")){\n\t\t\t\t\t\tsongFile.sortSongs(subCommand);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid sort command!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Block to create the new playlist and go to playlist menu\n\t\telse if(mainCommand.equals(\"create\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length==2){\n\t\t\t\t\tString playlistName=strArray[1];\n\t\t\t\t\tcurrentPlaylistID=songFile.createPlaylist(playlistName);\n\t\t\t\t\t// Flag which takes to playlist menu / sub menu\n\t\t\t\t\tthis.subMenuFlag=true;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid create command!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Block to edit the given playlist id\n\t\telse if(mainCommand.equals(\"edit\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length==2){\n\t\t\t\t\tcurrentPlaylistID=Integer.parseInt(strArray[1]);\n\t\t\t\t\tif(songFile.isPlaylistIdAvailable(currentPlaylistID)){// currentPlaylistID<songFile.playlistID){\n\t\t\t\t\t\tthis.subMenuFlag=true;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Invalid Playlist ID!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid edit command!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// For all other invalid commands\n\t\telse{\n\t\t\tSystem.out.println(\"Please enter valid command.\");\n\t\t}\n\t\n\t}",
"@Override\r\n public Node[] getRootNodes() {\r\n return new Node[] {getNetworkNode()};\r\n }",
"private String combineSubCommands(String prefix, String commandString, MessageCommand superCommand)\n {\n StringBuilder combined = new StringBuilder();\n\n String title = \"`\" + prefix + commandString + \" \" + superCommand.getSyntax() + \"`\\n\";\n combined.append(title);\n\n String desc = superCommand.getDescription();\n if (!desc.isEmpty())\n {\n combined.append(superCommand.getDescription());\n combined.append(\"\\n\");\n }\n\n StringBuilder subCommands = new StringBuilder();\n\n for (MessageCommand messageCommand : getSubCommands(superCommand))\n {\n String subCommand = \"**\" + prefix + commandString + \" \" + messageCommand.getName() + \"** \"\n + messageCommand.getDescription() + \"\\n\";\n subCommands.append(subCommand);\n }\n\n if (subCommands.length() > 0)\n {\n combined.append(\"\\n__**Sub-commands:**__\\n\");\n combined.append(subCommands.toString());\n }\n\n return combined.toString();\n }",
"public String[] scan(String directory, String rootDirectory) {\r\n\t\tFile scanDirectory = new File(directory);\r\n\r\n\t\t// Get an array of all the files/directories in this directory\r\n\t\tFile[] initialScan = scanDirectory.listFiles();\r\n\r\n\t\t// Create an empty arraylist to hold the paths of all the executables we find\r\n\t\tArrayList<String> execPaths = new ArrayList<String>();\r\n\r\n\t\t// Loop through all the files/directories we found\r\n\t\tfor (int i = 0; i < initialScan.length; i++) {\r\n\r\n\t\t\t// If this item is a file and has a correct extension, add it to the list of the\r\n\t\t\t// executables we found\r\n\t\t\tif (initialScan[i].isFile()) {\r\n\t\t\t\tString fileName = initialScan[i].getName();\r\n\t\t\t\tif (endsWithAny(fileName, this.extension)) {\r\n\r\n\t\t\t\t\tif (directory.equals(rootDirectory)) {\r\n\t\t\t\t\t\texecPaths.add(fileName);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Doing a silly thing where I'm leaving out the default root directory string,\r\n\t\t\t\t\t\t// but I probably shouldn't do that. I should change this later\r\n\t\t\t\t\t\texecPaths.add(directory.substring(rootDirectory.length() + 1) + \"/\" + fileName);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// If this item is a directory and we want to scan recursively, then run the\r\n\t\t\t\t// scan operation on the directory as well\r\n\t\t\t} else if (initialScan[i].isDirectory() && this.recursive) {\r\n\t\t\t\tString[] directoryScan = scan(directory + \"/\" + initialScan[i].getName(), rootDirectory);\r\n\r\n\t\t\t\t// add all the files we got back to the return array as well\r\n\t\t\t\texecPaths.addAll(Arrays.asList(directoryScan));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Return the array representation of the paths we found\r\n\t\treturn execPaths.toArray(new String[execPaths.size()]);\r\n\t}",
"public java.util.Iterator engineListRootGroups() {\n ConfigurationHandler handler = factory.getConfigurationHandler();\n Configuration configuration = null;\n try {\n configuration = factory.getConfiguration(GROUPS_CONFIG_PATH, false, handler);\n return treeManager.listRoots(configuration);\n } catch (Exception e) {\n throw new BaseSecurityException(BaseSecurityException.CANNOT_LIST_ROOT_GROUPS, e);\n } finally {\n factory.close(configuration, handler);\n }\n }",
"private void commandCheck() {\n\t\t//add user command\n\t\tif(cmd.getText().toLowerCase().equals(\"adduser\")) {\n\t\t\t/*\n\t\t\t * permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\t * There will be more user level commands added in version 2, like changing rename to allow a\n\t\t\t * user to rename themselves, but not any other user. Admins can still rename all users.\n\t\t\t */\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\taddUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//delete user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"deluser\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdelUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t};\n\t\t}\n\t\t//rename user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"rename\")) {\n\t\t\t//permissions check: if user is an admin, allow the user o chose a user to rename.\n\t\t\t//If not, allow the user to rename themselves only.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\trename(ALL);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trename(SELF);\n\t\t\t}\n\t\t}\n\t\t//promote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"promote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tpromote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//demote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"demote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdemote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//the rest of the commands are user level, no permission checking\n\t\telse if(cmd.getText().toLowerCase().equals(\"ccprocess\")) {\n\t\t\tccprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"cprocess\")) {\n\t\t\tcprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opentill\")) {\n\t\t\topenTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"closetill\")) {\n\t\t\tcloseTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opendrawer\")) {\n\t\t\topenDrawer();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"sale\")) {\n\t\t\tsale();\n\t\t}\n\t\t//if the command that was entered does not match any command, return an error.\n\t\telse {\n\t\t\terror(CMD_NOT_FOUND);\n\t\t}\n\t}",
"@Override\n\tpublic void setChildren(final List<? extends ISymbol> commands) {\n\t\tList<? extends ISymbol> cmd = commands;\n\t\tif ( getFacet(IKeyword.TYPE) != null ) {\n\t\t\tif ( getFacet(IKeyword.TYPE).literalValue().equals(\"SIR\") ) {\n\t\t\t\tcmd.clear();\n\t\t\t\tcmd =\n\t\t\t\t\tnew ClassicalSIREquations(getDescription()).SIR(getFacet(IKeyword.VARS), getFacet(IKeyword.PARAMS));\n\t\t\t} else if ( getFacet(IKeyword.TYPE).literalValue().equals(\"SI\") ) {\n\t\t\t\tcmd.clear();\n\t\t\t\tcmd = new ClassicalSIEquations(getDescription()).SI(getFacet(IKeyword.VARS), getFacet(IKeyword.PARAMS));\n\t\t\t} else if ( getFacet(IKeyword.TYPE).literalValue().equals(\"SIS\") ) {\n\t\t\t\tcmd.clear();\n\t\t\t\tcmd =\n\t\t\t\t\tnew ClassicalSISEquations(getDescription()).SIS(getFacet(IKeyword.VARS), getFacet(IKeyword.PARAMS));\n\t\t\t} else if ( getFacet(IKeyword.TYPE).literalValue().equals(\"SIRS\") ) {\n\t\t\t\tcmd.clear();\n\t\t\t\tcmd =\n\t\t\t\t\tnew ClassicalSIRSEquations(getDescription()).SIRS(getFacet(IKeyword.VARS),\n\t\t\t\t\t\tgetFacet(IKeyword.PARAMS));\n\t\t\t} else if ( getFacet(IKeyword.TYPE).literalValue().equals(\"SEIR\") ) {\n\t\t\t\tcmd.clear();\n\t\t\t\tcmd =\n\t\t\t\t\tnew ClassicalSEIREquations(getDescription()).SEIR(getFacet(IKeyword.VARS),\n\t\t\t\t\t\tgetFacet(IKeyword.PARAMS));\n\t\t\t} else if ( getFacet(IKeyword.TYPE).literalValue().equals(\"LV\") ) {\n\t\t\t\tcmd.clear();\n\t\t\t\tcmd = new ClassicalLVEquations(getDescription()).LV(getFacet(IKeyword.VARS), getFacet(IKeyword.PARAMS));\n\t\t\t} else {\n\t\t\t\tGamaRuntimeException.error(getFacet(IKeyword.TYPE).literalValue().equals(\"SI\") +\n\t\t\t\t\t\" is not a recognized classical equation\");\n\t\t\t}\n\t\t}\n\n\t\tfinal List<ISymbol> others = new ArrayList<ISymbol>();\n\t\tfor ( final ISymbol s : cmd ) {\n\t\t\tif ( s instanceof SingleEquationStatement ) {\n\t\t\t\t((SingleEquationStatement) s).establishVar();\n\t\t\t\tequations.put(((SingleEquationStatement) s).toString(), (SingleEquationStatement) s);\n\t\t\t\tfor ( int i = 0; i < ((SingleEquationStatement) s).getVars().size(); i++ ) {\n\t\t\t\t\tIExpression v = ((SingleEquationStatement) s).getVar(i);\n\n\t\t\t\t\tif ( ((SingleEquationStatement) s).getOrder() > 0 ) {\n\t\t\t\t\t\t// if ( !variables_diff.contains(v) ) {\n\t\t\t\t\t\tvariables_diff.put(((SingleEquationStatement) s).toString(), v);\n\t\t\t\t\t\t// }\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ( !variables_nondiff.contains(v) ) {\n\t\t\t\t\t\t\tvariables_nondiff.add(v);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tothers.add(s);\n\t\t\t}\n\t\t}\n\t\tsuper.setChildren(others);\n\t}",
"private static ArrayList<String> getPath(SearchTreeNode last) {\n\t\tArrayList<String> result = new ArrayList<>();\n\t\tfor (SearchTreeNode current = last; current.parent != null; current = current.parent) {\n\t\t\tresult.add(current.action);\n\t\t}\n\t\tCollections.reverse(result);\n\t\treturn result;\n\t}",
"private Set<RestModel> getArchiveNodes(RestModel root) {\n return ((ArchiveTreeNode) root).getChildren();\n }",
"public ProgramModule getRootModule(long treeID);",
"public Object generatePathToRoot(EmitLang emitter, String stem)\n\t{\n\t Object result;\n\t \n\t if ( this.factoredPath != null ) {\n\t result = this.factoredPath;\n \n } else {\n\n // Build the path iteratively.\n result = stem;\n\n for ( PathElement idx: generateAccessPath() ) {\n\t result = emitter.genCallMethod(\n\t result, \n\t \"getNthChild\", \n Integer.toString(idx.index));\n }\n\t }\n\t \n\t return result;\n\t}",
"public ResultMap<BaseNode> listChildren();",
"private void putCommands() {\r\n ShellCommand charset = new CharsetCommand();\r\n commands.put(charset.getCommandName(), charset);\r\n ShellCommand symbol = new SymbolCommand();\r\n commands.put(symbol.getCommandName(), symbol);\r\n ShellCommand exit = new ExitCommand();\r\n commands.put(exit.getCommandName(), exit);\r\n ShellCommand cat = new CatCommand();\r\n commands.put(cat.getCommandName(), cat);\r\n ShellCommand copy = new CopyCommand();\r\n commands.put(copy.getCommandName(), copy);\r\n ShellCommand ls = new LsCommand();\r\n commands.put(ls.getCommandName(), ls);\r\n ShellCommand mkdir = new MkdirCommand();\r\n commands.put(mkdir.getCommandName(), mkdir);\r\n ShellCommand hexdump = new HexdumpCommand();\r\n commands.put(hexdump.getCommandName(), hexdump);\r\n ShellCommand tree = new TreeCommand();\r\n commands.put(tree.getCommandName(), tree);\r\n ShellCommand help = new HelpCommand();\r\n commands.put(help.getCommandName(), help);\r\n ShellCommand pwd = new PwdCommand();\r\n commands.put(pwd.getCommandName(), pwd);\r\n ShellCommand cd = new CdCommand();\r\n commands.put(cd.getCommandName(), cd);\r\n ShellCommand pushd = new PushdCommand();\r\n commands.put(pushd.getCommandName(), pushd);\r\n ShellCommand popd = new PopdCommand();\r\n commands.put(popd.getCommandName(), popd);\r\n ShellCommand listd = new ListdCommand();\r\n commands.put(listd.getCommandName(), listd);\r\n ShellCommand dropd = new DropdCommand();\r\n commands.put(dropd.getCommandName(), dropd);\r\n ShellCommand rmtree = new RmtreeCommand();\r\n commands.put(rmtree.getCommandName(), rmtree);\r\n ShellCommand cptree = new CptreeCommand();\r\n commands.put(cptree.getCommandName(), cptree);\r\n ShellCommand massrename = new MassrenameCommand();\r\n commands.put(massrename.getCommandName(), massrename);\r\n }",
"DiscDirectoryInfo getRoot();",
"public String showAll()\n {\n StringBuilder commandList = new StringBuilder();\n \n for(String command : validCommands.keySet()) \n {\n commandList.append( command + \" \" );\n } //for\n \n return commandList.toString();\n }",
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n setDefaultCommand(new tankDrive());\n }",
"String getRootAlias();",
"ArrayList<String> getRoots() {\n return mRoots;\n }",
"@Override\n public Cli<C> build() {\n ParserMetadata<C> parserConfig = this.parserBuilder.build();\n\n CommandMetadata defaultCommandMetadata = null;\n List<CommandMetadata> allCommands = new ArrayList<CommandMetadata>();\n if (defaultCommand != null) {\n defaultCommandMetadata = MetadataLoader.loadCommand(defaultCommand, baseHelpSections, parserConfig);\n }\n\n List<CommandMetadata> defaultCommandGroup = defaultCommandGroupCommands != null\n ? MetadataLoader.loadCommands(defaultCommandGroupCommands, baseHelpSections, parserConfig)\n : new ArrayList<CommandMetadata>();\n\n allCommands.addAll(defaultCommandGroup);\n if (defaultCommandMetadata != null)\n allCommands.add(defaultCommandMetadata);\n\n // Build groups\n List<CommandGroupMetadata> commandGroups;\n if (groups != null) {\n commandGroups = new ArrayList<CommandGroupMetadata>();\n for (GroupBuilder<C> groupBuilder : groups.values()) {\n commandGroups.add(groupBuilder.build());\n }\n } else {\n commandGroups = new ArrayList<>();\n }\n\n // Find all commands registered in groups and sub-groups, we use this to\n // check this is a valid CLI with at least 1 command\n for (CommandGroupMetadata group : commandGroups) {\n allCommands.addAll(group.getCommands());\n if (group.getDefaultCommand() != null)\n allCommands.add(group.getDefaultCommand());\n\n // Make sure to scan sub-groups\n Queue<CommandGroupMetadata> subGroups = new LinkedList<CommandGroupMetadata>();\n subGroups.addAll(group.getSubGroups());\n while (!subGroups.isEmpty()) {\n CommandGroupMetadata subGroup = subGroups.poll();\n allCommands.addAll(subGroup.getCommands());\n if (subGroup.getDefaultCommand() != null)\n allCommands.add(subGroup.getDefaultCommand());\n subGroups.addAll(subGroup.getSubGroups());\n }\n }\n\n // add commands to groups based on the value of groups in the @Command\n // annotations\n // rather than change the entire way metadata is loaded, I figured just\n // post-processing was an easier, yet uglier, way to go\n MetadataLoader.loadCommandsIntoGroupsByAnnotation(allCommands, commandGroups, defaultCommandGroup,\n baseHelpSections, parserConfig);\n\n // Build restrictions\n // Use defaults if none specified\n if (restrictions.size() == 0)\n withDefaultRestrictions();\n\n if (allCommands.size() == 0)\n throw new IllegalArgumentException(\"Must specify at least one command to create a CLI\");\n\n // Build metadata objects\n GlobalMetadata<C> metadata = MetadataLoader.<C> loadGlobal(name, description, defaultCommandMetadata,\n ListUtils.unmodifiableList(defaultCommandGroup), ListUtils.unmodifiableList(commandGroups),\n ListUtils.unmodifiableList(restrictions), Collections.unmodifiableCollection(baseHelpSections.values()),\n parserConfig);\n\n return new Cli<C>(metadata);\n }",
"@Override\n\tpublic Iterable<Path> getRootDirectories() {\n\t\treturn null;\n\t}",
"private List<Command> getMatchingCommands(String arg) {\n List<Command> result = new ArrayList<Command>();\n \n // Grab the commands that match the argument.\n for (Entry<String,Command> entry : commands.entrySet()) {\n if (arg.equalsIgnoreCase(entry.getKey())) {\n result.add(entry.getValue());\n }\n }\n \n return result;\n }",
"public void execute() {\n if (commandArgument.length != 1) {\n System.out.println(\"tree: requires no user input\");\n }\n else {\n this.treeTraversal(userFileSystem.getRootDir(), 0);\n }\n }",
"public synchronized void initializeCommands() {\n/* 101 */ Set<String> ignoredPlugins = new HashSet<String>(this.yaml.getIgnoredPlugins());\n/* */ \n/* */ \n/* 104 */ if (ignoredPlugins.contains(\"All\")) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 109 */ label61: for (Command command : this.server.getCommandMap().getCommands()) {\n/* 110 */ if (commandInIgnoredPlugin(command, ignoredPlugins)) {\n/* */ continue;\n/* */ }\n/* */ \n/* */ \n/* 115 */ for (Class c : this.topicFactoryMap.keySet()) {\n/* 116 */ if (c.isAssignableFrom(command.getClass())) {\n/* 117 */ HelpTopic t = ((HelpTopicFactory)this.topicFactoryMap.get(c)).createTopic(command);\n/* 118 */ if (t != null) { addTopic(t); continue label61; }\n/* */ continue label61;\n/* */ } \n/* 121 */ if (command instanceof PluginCommand && c.isAssignableFrom(((PluginCommand)command).getExecutor().getClass())) {\n/* 122 */ HelpTopic t = ((HelpTopicFactory)this.topicFactoryMap.get(c)).createTopic(command);\n/* 123 */ if (t != null) addTopic(t);\n/* */ \n/* */ } \n/* */ } \n/* 127 */ addTopic((HelpTopic)new GenericCommandHelpTopic(command));\n/* */ } \n/* */ \n/* */ \n/* 131 */ for (Command command : this.server.getCommandMap().getCommands()) {\n/* 132 */ if (commandInIgnoredPlugin(command, ignoredPlugins)) {\n/* */ continue;\n/* */ }\n/* 135 */ for (String alias : command.getAliases()) {\n/* */ \n/* 137 */ if (this.server.getCommandMap().getCommand(alias) == command) {\n/* 138 */ addTopic(new CommandAliasHelpTopic(\"/\" + alias, \"/\" + command.getLabel(), this));\n/* */ }\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 144 */ Collection<HelpTopic> filteredTopics = Collections2.filter(this.helpTopics.values(), Predicates.instanceOf(CommandAliasHelpTopic.class));\n/* 145 */ if (!filteredTopics.isEmpty()) {\n/* 146 */ addTopic((HelpTopic)new IndexHelpTopic(\"Aliases\", \"Lists command aliases\", null, filteredTopics));\n/* */ }\n/* */ \n/* */ \n/* 150 */ Map<String, Set<HelpTopic>> pluginIndexes = new HashMap<String, Set<HelpTopic>>();\n/* 151 */ fillPluginIndexes(pluginIndexes, this.server.getCommandMap().getCommands());\n/* */ \n/* 153 */ for (Map.Entry<String, Set<HelpTopic>> entry : pluginIndexes.entrySet()) {\n/* 154 */ addTopic((HelpTopic)new IndexHelpTopic(entry.getKey(), \"All commands for \" + (String)entry.getKey(), null, entry.getValue(), \"Below is a list of all \" + (String)entry.getKey() + \" commands:\"));\n/* */ }\n/* */ \n/* */ \n/* 158 */ for (HelpTopicAmendment amendment : this.yaml.getTopicAmendments()) {\n/* 159 */ if (this.helpTopics.containsKey(amendment.getTopicName())) {\n/* 160 */ ((HelpTopic)this.helpTopics.get(amendment.getTopicName())).amendTopic(amendment.getShortText(), amendment.getFullText());\n/* 161 */ if (amendment.getPermission() != null) {\n/* 162 */ ((HelpTopic)this.helpTopics.get(amendment.getTopicName())).amendCanSee(amendment.getPermission());\n/* */ }\n/* */ } \n/* */ } \n/* */ }",
"public String describeRoot();",
"private boolean SetRootOfSynset() {\t\t\r\n\t\tthis.roots = new ArrayList<ISynsetID>();\r\n\t\tISynset\tsynset = null;\r\n\t\tIterator<ISynset> iterator = null;\r\n\t\tList<ISynsetID> hypernyms =\tnull;\r\n\t\tList<ISynsetID>\thypernym_instances = null;\r\n\t\titerator = dict.getSynsetIterator(POS.NOUN);\r\n\t\twhile(iterator.hasNext())\r\n\t\t{\r\n\t\t\tsynset = iterator.next();\r\n \t\t\thypernyms =\tsynset.getRelatedSynsets(Pointer.HYPERNYM);\t\t\t\t\t// !!! if any of these point back (up) to synset then we have an inf. loop !!!\r\n \t\t\thypernym_instances = synset.getRelatedSynsets(Pointer.HYPERNYM_INSTANCE);\r\n \t\t\tif(hypernyms.isEmpty() && hypernym_instances.isEmpty())\r\n \t\t\t{\r\n\t\t\t\tthis.roots.add(synset.getID());\r\n\t\t\t}\r\n\t\t}\r\n\t\titerator = this.dict.getSynsetIterator(POS.VERB);\r\n\t\twhile(iterator.hasNext())\r\n\t\t{\r\n\t\t\tsynset = iterator.next();\r\n \t\t\thypernyms =\tsynset.getRelatedSynsets(Pointer.HYPERNYM);\t\t\t\t\t// !!! if any of these point back (up) to synset then we have an inf. loop !!!\r\n \t\t\thypernym_instances = synset.getRelatedSynsets(Pointer.HYPERNYM_INSTANCE);\r\n \t\t\tif(hypernyms.isEmpty() && hypernym_instances.isEmpty())\r\n \t\t\t{\r\n\t\t\t\tthis.roots.add(synset.getID());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ( this.roots.size() > 0 );\r\n\t}",
"IServiceContext getRoot();",
"public static List<String> getRootDirectories(String... varargs) {\n\t\t// setting the default value when argument's value is omitted\n\t\tString sessionID = varargs.length > 0 ? varargs[0] : null;\n\t\t// Return a list of root-directories available to sessionID\n\t\tsessionID = sessionId(sessionID);\n\t\ttry {\n\t\t\tString url = apiUrl(sessionID, false) + \"GetRootDirectories?sessionID=\" + PMA.pmaQ(sessionID);\n\t\t\tString jsonString = PMA.httpGet(url, \"application/json\");\n\t\t\tList<String> rootDirs;\n\t\t\tif (PMA.isJSONArray(jsonString)) {\n\t\t\t\tJSONArray jsonResponse = PMA.getJSONArrayResponse(jsonString);\n\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\trootDirs = new ArrayList<>();\n\t\t\t\tfor (int i = 0; i < jsonResponse.length(); i++) {\n\t\t\t\t\trootDirs.add(jsonResponse.optString(i));\n\t\t\t\t}\n\t\t\t\t// return dirs;\n\t\t\t} else {\n\t\t\t\tJSONObject jsonResponse = PMA.getJSONObjectResponse(jsonString);\n\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\tif (jsonResponse.has(\"Code\")) {\n\t\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\t\tPMA.logger.severe(\"getrootdirectories() failed with error \" + jsonResponse.get(\"Message\"));\n\t\t\t\t\t}\n\t\t\t\t\t// throw new Exception(\"getrootdirectories() failed with error \" +\n\t\t\t\t\t// jsonResponse.get(\"Message\"));\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn rootDirs;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tStringWriter sw = new StringWriter();\n\t\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\t\tPMA.logger.severe(sw.toString());\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}",
"public void doMenu(){\n Scanner readinput = new Scanner(System.in); // needed to read the user's input\r\n System.out.println(\"Using Red Black Tree. 9 for list of commands\");\r\n while (this.userinput != -1) {\r\n \r\n this.update(); // every loop, print diagram of the tree\r\n \r\n System.out.print(\"Option: \");\r\n this.userinput = readinput.nextInt(); // input. Await user.\r\n \r\n switch(this.userinput){ // checks and matches the input to available functions\r\n \r\n case 9:\r\n System.out.println(\"\\nAvailable commands:\"\r\n + \"\\n'0': create a new empty root\"\r\n + \"\\n'-1': quits the program\"\r\n + \"\\n'1': recursively inserts new node with value\"\r\n + \"\\n'2': remove a node\"\r\n + \"\\n'3': print information about the tree\"\r\n + \"\\n'4': print information about a node\"\r\n + \"\\n'9': print this help section\"\r\n );\r\n break;\r\n \r\n case -1: // quit.\r\n System.out.println(\"Stopping.\");\r\n break;\r\n \r\n case 0: // Empty all\r\n System.out.print(\"Removing all.\");\r\n this.root = null;\r\n break;\r\n \r\n case 1: // insere objeto no conteúdo do nó.\r\n System.out.print(\">>> New Value: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.insertElement(this.root, userinput2);\r\n break;\r\n \r\n case 2: //remover certo valor\r\n System.out.print(\">>> Value to be removed: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.remove(root, userinput2);\r\n break;\r\n \r\n case 3: // imprimir informações da árvore\r\n\r\n //this.calculateNodes(root);\r\n System.out.println(\"Pre Order NLR:\");\r\n this.traversePreOrder(root);\r\n System.out.println(\"\\nPost Order LRN:\");\r\n this.traversePostOrder(root);\r\n System.out.println(\"\\nIn Order LNR:\");\r\n this.traverseInOrder(root);\r\n System.out.println(\"\\n[!] Finished printing tree information\\n\");\r\n break;\r\n \r\n case 4: \r\n System.out.print(\">>> Value of node to be fetched: \");\r\n this.userinput2 = readinput.nextInt();\r\n this.info(this.fetch(root, userinput2));\r\n break;\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n }",
"public List<String> binaryTreePaths2(TreeNode root) {\n if (root == null) {\n return Collections.emptyList();\n }\n List<String> paths = new ArrayList<>();\n if (root.left == null && root.right == null) {\n paths.add(Integer.toString(root.val));\n return paths;\n }\n // Paths from left subtree.\n for (String path : binaryTreePaths2(root.left)) {\n paths.add(root.val + \"->\" + path); // Concat root with each path.\n }\n // Paths from right subtree.\n for (String path : binaryTreePaths2(root.right)) {\n paths.add(root.val + \"->\" + path);\n }\n return paths;\n }",
"public static Goal[] createEverythingGoals() {\n\t\t// [ & ] <--- rootGoal1\n\t\t// / / \\ \\\n\t\t// P T E M\n\t\t//\n\t\tCompositeGoal rootGoal1 = new CompositeGoal(CompositeGoal.and);\n\t\trootGoal1.addChild(new PuzzleGoal());\n\t\trootGoal1.addChild(new TreasureGoal());\n\t\trootGoal1.addChild(new EnemiesGoal());\n\t\trootGoal1.addChild(new MazeGoal());\n\t\t\n\t\t\n\t\tCompositeGoal subGoal1 = new CompositeGoal(CompositeGoal.and);\n\t\tsubGoal1.addChild(new EnemiesGoal());\n\t\tsubGoal1.addChild(new TreasureGoal());\n\t\tsubGoal1.addChild(new MazeGoal());\n\t\t\n\t\tCompositeGoal subGoal2 = new CompositeGoal(CompositeGoal.and);\n\t\tsubGoal2.addChild(new PuzzleGoal());\n\t\tsubGoal2.addChild(new TreasureGoal());\n\t\tsubGoal2.addChild(subGoal1);\n\t\t\n\t\t// [ | ] <--- rootGoal2\n\t\t// / \\\n\t\t// I [ & ] <---- subGoal2\n\t\t// / | \\\n\t\t// P T [ & ] <---- subGoal1\n\t\t// /|\\\n\t\t// E T M\n\t\tCompositeGoal rootGoal2 = new CompositeGoal(CompositeGoal.or);\n\t\trootGoal2.addChild(new ImpossibleGoal());\n\t\trootGoal2.addChild(subGoal2);\n\n\t\t\n\t\tString goalString = \"\"\n\t\t\t+ \" { \\\"goal\\\": \\\"AND\\\", \\\"subgoals\\\":\\n\"\n\t\t\t+ \" [ { \\\"goal\\\": \\\"exit\\\" },\\n\"\n\t\t\t+ \" { \\\"goal\\\": \\\"AND\\\", \\\"subgoals\\\":\\n\"\n\t\t\t+ \" [ {\\\"goal\\\": \\\"treasure\\\" },\\n\"\n\t\t\t+ \" { \\\"goal\\\": \\\"AND\\\", \\\"subgoals\\\":\\n\"\n\t\t\t+ \" [ {\\\"goal\\\": \\\"enemies\\\" },\\n\"\n\t\t\t+ \" {\\\"goal\\\": \\\"boulders\\\" }\\n\"\n\t\t\t+ \" ]\\n\"\n\t\t\t+ \" }\\n\"\n\t\t\t+ \" ]\\n\"\n\t\t\t+ \" }\\n\"\n\t\t\t+ \" ]\\n\"\n\t\t\t+ \" }\\n\";\n\t\t\n\t\tJSONObject json = new JSONObject(new JSONTokener(goalString));\n\t\tGoal goal3 = Goal.createGoal(json);\n\t\t\n\t\treturn new Goal[]{ rootGoal1, rootGoal2, goal3 };\n\t}",
"public interface SuperCommand {\n\n /**\n * Setups anything that is needed for this command.\n * <br/><br/>\n * It is recommended you do the following in this method:\n * <ul>\n * <li>Register any of the sub-commands of this command;</li>\n * <li>Define the permission required to use this command using {@link CompositeCommand#setPermission(String)};</li>\n * <li>Define whether this command can only be run by players or not using {@link CompositeCommand#setOnlyPlayer(boolean)};</li>\n * </ul>\n */\n void setup();\n\n /**\n * Returns whether the command can be executed by this user or not.\n * It is recommended to send messages to let this user know why they could not execute the command.\n * Note that this is run previous to {@link #execute(User, String, List)}.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if this command can be executed, {@code false} otherwise.\n * @since 1.3.0\n */\n default boolean canExecute(User user, String label, List<String> args) {\n return true;\n }\n\n /**\n * Defines what will be executed when this command is run.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if the command executed successfully, {@code false} otherwise.\n */\n boolean execute(User user, String label, List<String> args);\n\n /**\n * Tab Completer for CompositeCommands.\n * Note that any registered sub-commands will be automatically added to the list.\n * Use this to add tab-complete for things like names.\n * @param user the {@link User} who is executing this command.\n * @param alias alias for command\n * @param args command arguments\n * @return List of strings that could be used to complete this command.\n */\n default Optional<List<String>> tabComplete(User user, String alias, List<String> args) {\n return Optional.empty();\n }\n\n}",
"private HashSet<SootMethod> getMethodsInvokingAtLevel(SootMethod method,\r\n\t\t\tint level) {\n\t\tHashSet<SootMethod> workSet = new HashSet<SootMethod>();\r\n\t\tworkSet.add(method);\r\n\t\t\r\n\t\tHashSet<SootMethod> newWorkset = new HashSet<SootMethod>(1);\r\n\t\tHashSet<SootMethod> topLevel = new HashSet<SootMethod>();\r\n\t\tHashSet<SootMethod> processed = new HashSet<SootMethod>(1);\r\n\t\tfor(int i=0; i< level; i++){\r\n\t\t\tif(i !=0){\r\n\t\t\t\tfor (SootMethod sootMethod : newWorkset) {\r\n\t\t\t\t\tif(!processed.contains(sootMethod))\r\n\t\t\t\t\t\tworkSet = new HashSet<SootMethod>(newWorkset);\r\n\t\t\t\t}\r\n\t\t\t\tnewWorkset = new HashSet<SootMethod>(1);\r\n\t\t\t}\r\n\t\t\tif(workSet.isEmpty())\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tHashSet<SootMethod> implementedMethods = new HashSet<SootMethod>();\r\n\t\t\tfor (SootMethod m : workSet) {\r\n\t\t\t\tfor (SootClass interfaze : m.getDeclaringClass().getInterfaces()) {\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\tSootMethod m2 = interfaze.getMethod(m.getName(), \r\n\t\t\t\t\t\t\t\tm.getParameterTypes(), m.getReturnType());\r\n\t\t\t\t\t\tif(!processed.contains(m2))\r\n\t\t\t\t\t\t\timplementedMethods.add(m2);\r\n\t\t\t\t\t}catch (RuntimeException e) {\r\n\t\t\t\t\t\t//e.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tworkSet.addAll(implementedMethods);\r\n\t\t\tIterator<SootMethod> iter = workSet.iterator();\r\n\t\t\t\r\n\t\t\twhile(iter.hasNext()){\r\n\t\t\t\tSootMethod m = iter.next();\r\n\t\t\t\tif(getMethodsInvoking(m) != null){\r\n\t\t\t\t\tnewWorkset.addAll(getMethodsInvoking(m));\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\ttopLevel.add(m);\r\n\t\t\t}\r\n\t\t\tprocessed.addAll(workSet);\r\n\t\t}\r\n\t\tprocessed.remove(method);\r\n\t\ttadaMethodInvokedByMap.put(method, processed);\r\n\t\ttopLevel.addAll(newWorkset);\r\n\t\treturn topLevel;\r\n\t}",
"@Override\r\n\tpublic List<Node<T>> getLongestPathFromRootToAnyLeaf() {\r\n\t\tList<Node<T>> camino = new LinkedList<Node<T>>();// La lista que se\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// retornara\r\n\t\tint prof = 1;// La profundidad actual\r\n\t\tNode<T> ret = null;// El nodo mas profundo\r\n\t\tret = LongestPathRec(raiz, prof, ret);// Metodo\r\n\t\t\t\t\t\t\t\t\t\t\t\t// auxiliar que\r\n\t\t\t\t\t\t\t\t\t\t\t\t// busca el nodo\r\n\t\t\t\t\t\t\t\t\t\t\t\t// mas profundo\r\n\t\treturn completaCamino(ret, camino);// Metodo auxiliar que crea el camino\r\n\t\t\t\t\t\t\t\t\t\t\t// hacia el nodo mas profundo\r\n\t}",
"public static String allCommands() \n {\n String commandWords = \"\";\n for(CommandWord command : CommandWord.values()) {\n commandWords += command + \" \";\n }\n return commandWords;\n }",
"public List<SubQueryDef> getSubQueries();",
"public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}",
"Set<CommandConfigurationDTO> getCommands();",
"public void printAllRootToLeafPaths(BinaryTreeNode root,int path[],int pathLength) {\n\t\tif(root==null){ \n\t\t\tSystem.out.println(\"No Node in Binary Tree\");\n\t\t\treturn;\n\t\t}\n\t\telse{\n\t\t\tpath[pathLength] = root.getData();\n\t\t\tpathLength++;\n\t\t}\n\t\t\n\t\t/**If leaf node then Print Path */\t\n\t\tif(root.getLeft()==null && root.getRight()==null){\n\t\t\tprintArray(path,pathLength);\n\t\t}\n\t\telse{/** try both subtrees*/\n\t\t\tprintAllRootToLeafPaths(root.getLeft(), path, pathLength);\n\t\t\tprintAllRootToLeafPaths(root.getRight(), path, pathLength);\n\t\t}\n\t}",
"public Tree<Esysmeudef> getSysMenuTree(Long id);",
"public void printTree() {\n\t\tSystem.out.println(printHelp(root));\r\n\t\t\r\n\t}",
"public ConfigurationSet getConfiguration(String root) {\r\n\t\treturn configuration.getChild(root);\r\n\t}",
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new HatchExtend());\n setDefaultCommand(new HatchRetract());\n }",
"public Object getRoot(){\r\n\t\treturn _root;\r\n\t}",
"public abstract Entry getRoot() throws IOException;",
"public ProgramModule getRootModule(String treeName);",
"@Override\n /**\n * Set the default command for a subsystem here\n */\n public void initDefaultCommand() \n {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }"
] | [
"0.6401105",
"0.58177656",
"0.57415915",
"0.54357517",
"0.5402889",
"0.53041124",
"0.5210128",
"0.5188618",
"0.5155426",
"0.50544405",
"0.5048648",
"0.49891976",
"0.49780872",
"0.4960055",
"0.4931559",
"0.49279436",
"0.49221042",
"0.49165848",
"0.48749986",
"0.48493123",
"0.48349336",
"0.4826986",
"0.48180085",
"0.47913608",
"0.47699505",
"0.47589892",
"0.47359616",
"0.47288468",
"0.47192815",
"0.4717935",
"0.47081986",
"0.47040996",
"0.47028166",
"0.46943694",
"0.46805015",
"0.4672765",
"0.4668671",
"0.4666767",
"0.4662503",
"0.46499267",
"0.46439528",
"0.46430582",
"0.46251482",
"0.4621539",
"0.46148568",
"0.46079767",
"0.46041015",
"0.46014598",
"0.45976222",
"0.45659685",
"0.45636228",
"0.45576188",
"0.45556682",
"0.4550616",
"0.45492867",
"0.4547142",
"0.45384276",
"0.45280838",
"0.45201313",
"0.45140502",
"0.45074046",
"0.4494263",
"0.44827577",
"0.44826713",
"0.44826555",
"0.4481823",
"0.44812807",
"0.44762015",
"0.447538",
"0.4450487",
"0.4443751",
"0.44363722",
"0.44358796",
"0.44335207",
"0.4429079",
"0.4424697",
"0.44229266",
"0.44202852",
"0.44021317",
"0.43938947",
"0.43869105",
"0.43808362",
"0.43733698",
"0.43562028",
"0.43544292",
"0.43540505",
"0.43526357",
"0.43520817",
"0.43405315",
"0.43390468",
"0.43357053",
"0.43341306",
"0.43322048",
"0.43285587",
"0.43225425",
"0.43131304",
"0.43119007",
"0.43116444",
"0.43115845",
"0.4307395",
"0.43043923"
] | 0.0 | -1 |
Gets the search result at a certain index. | public static MovieInfoObject getItemAtIndex(int i) {
return mCurrentMovies.get(i - 1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SimilarResult get(int index) {\n lock();\n return results.get(index);\n }",
"@java.lang.Override\n public entities.Torrent.NodeSearchResult getResults(int index) {\n return results_.get(index);\n }",
"entities.Torrent.NodeSearchResult getResults(int index);",
"public entities.Torrent.NodeSearchResult getResults(int index) {\n if (resultsBuilder_ == null) {\n return results_.get(index);\n } else {\n return resultsBuilder_.getMessage(index);\n }\n }",
"org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);",
"@ZenCodeType.Operator(ZenCodeType.OperatorType.INDEXGET)\n default IData getAt(int index) {\n \n return notSupportedOperator(OperatorType.INDEXGET);\n }",
"public int get(int index);",
"public T getByIndex(int index) {\n\n return this.myList[index];\n }",
"abstract int get(int index);",
"public int get(int index) {\n\t\treturn r[index];\n\t}",
"public T get(int index);",
"public T get(int index);",
"public T get(int index);",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"public T get(int index) {\n return list.get(index);\n }",
"entities.Torrent.NodeSearchResultOrBuilder getResultsOrBuilder(\n int index);",
"public T get(int aIndex);",
"public String searchByIndex(int index){\n if(hashMap.containsKey(index))\n return hashMap.get(index).toString();\n else\n return \"Cannot Find index given\";\n }",
"public E get(int index)\r\n {\r\n checkValidIndex(index);\r\n return listIterator(index).next();\r\n }",
"public int getIndex();",
"public int getIndex();",
"public int getIndex();",
"Object get(int index);",
"Object get(int index);",
"public abstract T get(int index);",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"public Item get(int index) {\n int track = nextFirst; //It does not modify nextFirst\n track = moveForward(track, index + 1);\n return items[track];\n }",
"public T get(int index) {\n return v.get(index);\n }",
"private static String getIndex() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(App.getAppContext());\n String defaultValue = Strings.getStringByRId(R.string.c_elastic_search_index_name_default_value);\n String value = Strings.getStringByRId(R.string.c_select_elastic_search_index_name);\n String index = sp.getString(value, defaultValue);\n return index;\n }",
"public T get(int index) {\n\t\tint at = 1;\n\t\tfor (Node<T> current = start; current != null; current = current.next) {\n\t\t\tif (at == index) {\n\t\t\t\treturn current.value;\n\t\t\t}\n\t\t\tat++;\n\t\t}\n\t\t// We couldn't find it, throw an exception!\n\t\tthrow new IndexOutOfBoundsException();\n\t}",
"public entities.Torrent.NodeSearchResult.Builder getResultsBuilder(\n int index) {\n return getResultsFieldBuilder().getBuilder(index);\n }",
"String get(int index);",
"int index();",
"public T get(int index) {\n return this.list[index];\n }",
"public Object get(int index);",
"public Object get(int index);",
"public Integer get(int index){\n return list.get(index);\n }",
"public O get(int index)\r\n {\r\n if (index >= count || index < 0) return null;\r\n \r\n if (index > count/2)\r\n {\r\n //search from the end\r\n VectorItem<O> vi = last;\r\n for (int i=count-1;i>index;i--)\r\n {\r\n vi = vi.getPrevious();\r\n }\r\n return vi.getObject(); \r\n \r\n } else\r\n {\r\n //search from the beginning\r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<index;i++)\r\n {\r\n vi = vi.getNext();\r\n }\r\n return vi.getObject(); \r\n }\r\n }",
"JsonObject getIndex(final String index);",
"public Object get(int index) {\r\n return entry(index).element;\r\n }",
"SearchResult findNext(SearchOptions searchOptions);",
"public T get(int index) {\n return items[(nextFirst + 1 + index) % capacity];\n }",
"public List<T> search(int index,String key) throws NotFound {\n\t\tList<T> value = null;\n\t\tif (internalStorage != null && index<internalStorage.size())\n\t\t value = internalStorage.get(index).get(key);\n\t\tif (value == null) throw new NotFound();\n\t\treturn value;\n\t}",
"public int getSearchIndex() \n\t{\n\t\treturn itemSearchIndex;\n\t}",
"public int getIndex(\n )\n {return index;}",
"public int index();",
"public String get(int index) {\n\n return solutionVector[index];\n }",
"Search getSearch();",
"@java.lang.Override\n public entities.Torrent.NodeSearchResultOrBuilder getResultsOrBuilder(\n int index) {\n return results_.get(index);\n }",
"int get(int idx);",
"E get( int index );",
"@Override\n public E get(int index) {\n // todo: Students must code\n checkRange(index); // throws IndexOOB Exception if out of range\n return data[calculate(index)];\n }",
"Value get(int index) throws ExecutionException;",
"public E get(int index) {\r\n return items.get(index);\r\n }",
"@Override\n public int get(int index) {\n checkIndex(index);\n return getEntry(index).value;\n }",
"public entities.Torrent.NodeSearchResultOrBuilder getResultsOrBuilder(\n int index) {\n if (resultsBuilder_ == null) {\n return results_.get(index); } else {\n return resultsBuilder_.getMessageOrBuilder(index);\n }\n }",
"public E get(int index) {\r\n\t\tif (indices.get(index) == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else {\r\n\t\t\treturn indices.get(index).data;\t\t\r\n\t\t}\r\n\t}",
"public Item get(int index) {\r\n\t\treturn catalog.get(index);\r\n\t}",
"@Override\r\n\tpublic T get(int index) {\n\t\treturn this._list.get(index);\r\n\t}",
"public Object getValue(int index);",
"T getElementFromIndex(int index) throws ListException;",
"SearchResult findNext(SearchResult result);",
"public Object get(int index) {\n\t\tif (this.index == index) {\n\t\t\treturn object;\n\t\t} else {\n\t\t\treturn nextItem.get(index);\n\t\t}\n\t}",
"public int getIndex(int position);",
"public Person get(int index) {\r\n\t\t// if the queue size is 0 then return null\r\n\t\tif(q.size() == 0)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\treturn q.get(index);\r\n\t}",
"public T get(int index) {\n T result = null;\n if (index >= 0 && index < this.container.length) {\n result = (T) this.container[index];\n }\n return result;\n }",
"public E get(int index) {\n\t\tresetIterator();\n\t\tif (index < 0 || index >= size) {\n\t\t\treturn null;\n\t\t}\n\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tnext();\n\t\t}\n\t\treturn iterator.data;\n\t}",
"int get(int index)\n\t{\n\t\treturn inputArray[index];\n\t}",
"public Object get(int index) {\n Node answer = first;\n for (int i = 0; i < index; i++) {\n answer = answer.next;\n }\n return answer.data;\n }",
"public ReturnObject get(int index) {\n ReturnObjectImpl rtn = new ReturnObjectImpl();\n if (isEmpty()) {\n rtn.setError(ErrorMessage.EMPTY_STRUCTURE);\n } else if(index < 0 || index >= size()) {\n rtn.setError(ErrorMessage.INDEX_OUT_OF_BOUNDS);\n } else {\n rtn.setObj(AL[index]);\n }\n return rtn;\n }",
"public T getItem(long index) {\n if (index > items.size() - perPage / 2) {\n fetchPage(getNextPageExpected());\n }\n\n return items.get((int) index);\n }",
"com.rpg.framework.database.Protocol.Quest getQuest(int index);",
"@Override\n public T get(int index) {\n return list.get(index);\n }",
"public T get(int index) {\n return (index >= 0 && index < this.list.size()) ? this.list.get(index) : null;\n }",
"public org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index) {\n return results_.get(index);\n }",
"public Object get(int index)\n {\n return items[index];\n }",
"public T get(int index) throws IndexOutOfBoundsException {\n checkException(index);\n return arr[index];\n }",
"int getItems(int index);",
"public int getIndex()\n {\n return getInt(\"Index\");\n }",
"@VTID(10)\n int getIndex();",
"SingleDocumentModel getDocument(int index);",
"public int searchCard(int index){\n for(int i = 0; i < cards.size(); ++i){//loop to go through the cards\n if(cards.get(i).toString().equalsIgnoreCase(playable.get(index).toString())){//checks the index\n return i;//returns the index\n }\n }\n return index;\n }",
"public String get(int index){\n return words.get(index);\n }",
"@java.lang.Override\n public com.google.cloud.speech.v2.StreamingRecognitionResult getResults(int index) {\n return results_.get(index);\n }",
"public CoreResourceHandle get(int index) {\n if (index >= 0 && index < doSize()) {\n return doGet(index);\n }\n throw new IndexOutOfBoundsException();\n }"
] | [
"0.7604918",
"0.69198585",
"0.6709181",
"0.6653009",
"0.6605717",
"0.6601336",
"0.64513046",
"0.6327468",
"0.6319237",
"0.63165957",
"0.62701344",
"0.62701344",
"0.62701344",
"0.6229725",
"0.6229725",
"0.6229725",
"0.6229725",
"0.6229725",
"0.62136465",
"0.6199365",
"0.6175586",
"0.61679137",
"0.6121408",
"0.61199874",
"0.61199874",
"0.61199874",
"0.61136574",
"0.61136574",
"0.6113628",
"0.61066073",
"0.61066073",
"0.61066073",
"0.61066073",
"0.61066073",
"0.61066073",
"0.61066073",
"0.61066073",
"0.61066073",
"0.61066073",
"0.61066073",
"0.61066073",
"0.61066073",
"0.6097896",
"0.60963506",
"0.6095639",
"0.6065098",
"0.6060958",
"0.6053576",
"0.6036779",
"0.60124195",
"0.60100436",
"0.60100436",
"0.59844154",
"0.5983923",
"0.59786016",
"0.59483683",
"0.59391886",
"0.592173",
"0.5907928",
"0.59028137",
"0.58916867",
"0.58831584",
"0.5872037",
"0.5870321",
"0.5830558",
"0.58244646",
"0.58217186",
"0.58192766",
"0.5817722",
"0.5815069",
"0.5814773",
"0.5807167",
"0.5796931",
"0.5790938",
"0.5789149",
"0.5776057",
"0.5765679",
"0.57634866",
"0.57538617",
"0.57469094",
"0.57442874",
"0.5741375",
"0.57326674",
"0.5731089",
"0.5722092",
"0.5717633",
"0.57156074",
"0.5713723",
"0.5710796",
"0.5702354",
"0.5699143",
"0.56928366",
"0.5691195",
"0.5688655",
"0.5673883",
"0.5654388",
"0.56538755",
"0.5645929",
"0.56401",
"0.56377405",
"0.56323016"
] | 0.0 | -1 |
Add results from the search query into search result context. | public static void addResults(ArrayList<MovieInfoObject> moviesInfo) {
mCurrentMovies.clear();
for (MovieInfoObject mi : moviesInfo) {
mCurrentMovies.add(mi);
}
if (mMovies.size() == 0) {
for (MovieInfoObject mi : moviesInfo) {
mMovies.add(mi);
keywords.add(mi.getTitle());
}
return;
}
HashMap<Long, Integer> movieDup = new HashMap<Long, Integer>();
for (MovieInfoObject a : mMovies) {
movieDup.put(a.getId(), new Integer(1));
}
for (MovieInfoObject e : moviesInfo) {
if (movieDup.get(e.getId()) == null) {
mMovies.add(e);
keywords.add(e.getTitle());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected SearchSearchResponse doNewSearch(QueryContext queryContext) throws Exception {\n\t\t\n\t\tBooleanQuery query = _queryBuilder.buildSearchQuery(queryContext);\n\t\t\n\t\tBooleanQuery rescoreQuery = \n\t\t\t\t_queryBuilder.buildRescoreQuery(queryContext);\n\t\t\n\t\tList<Aggregation> aggregations = getAggregations(queryContext);\n\n\t\treturn execute(queryContext, query, rescoreQuery, aggregations);\n\t}",
"private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }",
"private final List<Object> searchForResults(@Nullable String query)\n {\n ArrayList<Object> results = new ArrayList<>();\n try {\n results.addAll(crDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the cr dao for results.\", e);\n }\n\n try {\n results.addAll(customMonsterDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the custom monster dao for results.\", e);\n }\n\n try {\n results.addAll(monsterDao.getRecordsLike(query));\n } catch (Exception e) {\n Logger.error(\"Failed to search the standard monster dao for results.\", e);\n }\n\n return results;\n }",
"public Builder addResults(\n int index, entities.Torrent.NodeSearchResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(index, value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(index, value);\n }\n return this;\n }",
"TSearchResults createSearchResults(TSearchQuery searchQuery);",
"public Builder addResults(entities.Torrent.NodeSearchResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(value);\n }\n return this;\n }",
"List<SearchResult> search(SearchQuery searchQuery);",
"public DocFile[] searchResponse(ScoreDoc[] results, Query query) {\n\n DocFile[] result = new DocFile[results.length];\n FastVectorHighlighter highlighter = new FastVectorHighlighter(true,true);\n FieldQuery highlightQuery = highlighter.getFieldQuery(query); \n\n try {\n IndexReader reader = DirectoryReader.open(indexDir);\n IndexSearcher searcher = new IndexSearcher(reader);\n\n for (int i = 0; i < results.length; i++) {\n int docId = results[i].doc;\n Document document = searcher.doc(docId);\n \n //Highlight the best Content context from each Doc\n String contextString = highlighter.getBestFragment(highlightQuery, \n searcher.getIndexReader(), results[i].doc,Constants.INDEX_KEY_CONTENT,140);\n \n DocFile toAdd = new DocFile(\n document.get(Constants.INDEX_KEY_FILENAME),\n document.get(Constants.INDEX_KEY_TITLE),\n document.get(Constants.INDEX_KEY_OWNER),\n document.get(Constants.INDEX_KEY_PATH),\n document.get(Constants.INDEX_KEY_STATUS).equalsIgnoreCase(\"true\"));\n \n if (contextString != null) {\n toAdd.setContextString(contextString);\n }\n \n toAdd.setId(document.get(Constants.INDEX_KEY_ID));\n toAdd.setPermissions(Integer.parseInt(document.get(Constants.INDEX_KEY_PERMISSION)));\n toAdd.setCourseCode(document.get(Constants.INDEX_KEY_COURSE));\n result[i] = toAdd;\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return result;\n }",
"public void onSearchResults(String term, List<WikiPage> results);",
"public void addResult(CloseableIteration<T, QueryEvaluationException> res);",
"private Collection<Record> handleRequest(SearchRequest request) {\n\t\tCollection<Record> resultSet = getResults(request.getQuery());\n\t\treturn resultSet;\n\t}",
"public void add(R result) {\n results.add(result);\n }",
"private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }",
"private synchronized void addResultToMultiList() {\n\t addObjectToMultiList(resultArrayList);\r\n\t }",
"private void writeResults() {\n\t\tgetContext().writeName(\"searchResults\");\n\t // Open the Array of affectedParties\n\t TypeContext itemTypeContext = getContext().writeOpenArray();\n\t \n\t for(Person person : results){\n\t\t\t// Add a comma after each affectedParty object is written\n if (!itemTypeContext.isFirst()){\n \tgetContext().writeComma();\n }\n itemTypeContext.setFirst(false);\n\t\t\t\n // Open the affectedParty object and write the fields\n\t\t\tgetContext().writeOpenObject();\n\t\t\t\n\t\t\t// Write out the fields\n\t\t getContext().writeName(\"id\");\n\t\t getContext().transform(person.getId());\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"name\");\n\t\t getContext().transform(person.getName());\n\t\t getContext().writeComma();\n\n\t\t getContext().writeName(\"sex\");\n\t\t getContext().transform(person.getSex());\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"dob\");\n\t\t getContext().transform(person.getDob() == null?null:new SimpleDateFormat(\"dd/MM/yyyy\").format(person.getDob()));\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"dod\");\n\t\t getContext().transform(person.getDod() == null?null:new SimpleDateFormat(\"dd/MM/yyyy\").format(person.getDod()));\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"placeOfBirth\");\n\t\t getContext().transform(person.getPlaceOfBirth());\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"placeOfDeath\");\n\t\t getContext().transform(person.getPlaceOfDeath());\n\t\t getContext().writeComma();\n \t getContext().writeName(\"href\");\n \t getContext().transform(url + \"/\" + person.getId());\n\t\t\t\n \t // Close the affectedParty object\n \t getContext().writeCloseObject();\n }\n\t\t// Close the Array of affectedParties\n getContext().writeCloseArray();\n\t}",
"protected void addToResult(Instance instance) {\n\t\tthis.resultBuffer.add(instance);\n\t}",
"public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }",
"public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }",
"private Collection<Record> getResults(SimpleSurnameAndPostcodeQuery query) {\n\t\treturn search(query);\n\t}",
"private void doSearch(String queryStr) {\n\t\t\n\t\t\n\t\tdbHelper = new DatabaseHelper(getApplicationContext());\n\t\tall_Item = Items.getSearchResults(dbHelper, queryStr);\n\t\t\n\n\t\tsearch_list = (ListView) findViewById(R.id.search_list);\n\t\tadapter = new SearchResultListAdaptor(this, R.layout.search_list_display, all_Item);\n\t\tfor(int i=0;i<all_Item.size();i++)\n\t\t adapter.add(all_Item.get(i));\n\t\t\n\t\tsearch_list.setAdapter(adapter);\n\t\t\n\t\t\n\t}",
"private void searchHelper(ArrayList<SearchResult> results, String word, Map<String, SearchResult> track) {\n\t\tfor (String location : this.invertedIndex.get(word).keySet()) {\n\t\t\tif (track.containsKey(location)) {\n\t\t\t\ttrack.get(location).updateCount(word);\n\t\t\t} else {\n\t\t\t\tSearchResult result = new SearchResult(location);\n\t\t\t\tresult.updateCount(word);\n\t\t\t\ttrack.put(location, result);\n\t\t\t\tresults.add(result);\n\t\t\t}\n\t\t}\n\t}",
"private void scrapResultsInCurrentResultPage() {\n List<WebElement> searchResults = getSearchResults();\n\n for (int i = 0; i < searchResults.size(); i++) {\n WebElement result = searchResults.get(i);\n WebElement quoteButton = result.findElement(By.xpath(\".//a[@class='gs_or_cit gs_nph']\"));\n quoteButton.click();\n\n waitForMillis(500);\n\n WebElement bibtexLink = driver.findElement(By.xpath(\"//div[@id='gs_citi']/a[1]\"));\n waitUntilClickable(bibtexLink);\n bibtexLink.click();\n\n WebElement publicationCitationInBibtex = driver.findElement(By.xpath(\"/html/body/pre\"));\n searchResultsAsBibtex.add(publicationCitationInBibtex.getText());\n\n driver.navigate().back();\n\n WebElement quoteDialogCancelButton = driver.findElement(By.xpath(\"//*[@id=\\\"gs_cit-x\\\"]\"));\n waitUntilClickable(quoteDialogCancelButton);\n quoteDialogCancelButton.click();\n\n // Reload the reference to the DOM elements: the search results.\n searchResults = getSearchResults();\n }\n }",
"@Override\n public void onResultClick(SearchResult result) {\n Log.v(\"SearchBox\", \"onResultClick\" + result);\n setSearchFragment(result.title);\n }",
"public void setResults(ArrayList results) {\n this.results = results;\n }",
"public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void performNewQuery(){\n\n // update the label of the Activity\n setLabelForActivity();\n // reset the page number that is being used in queries\n pageNumberBeingQueried = 1;\n // clear the ArrayList of Movie objects\n cachedMovieData.clear();\n // notify our MovieAdapter about this\n movieAdapter.notifyDataSetChanged();\n // reset endless scroll listener when performing a new search\n recyclerViewScrollListener.resetState();\n\n /*\n * Loader call - case 3 of 3\n * We call loader methods as we have just performed reset of the data set\n * */\n // initiate a new query\n manageLoaders();\n\n }",
"@Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n set((List<Item>) results.values);\n }",
"public Builder addResults(\n entities.Torrent.NodeSearchResult.Builder builderForValue) {\n if (resultsBuilder_ == null) {\n ensureResultsIsMutable();\n results_.add(builderForValue.build());\n onChanged();\n } else {\n resultsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.setSearchText(view.getSearchContent().getText());\n forwardToCurrentView(filter);\n } else {\n eventBus.showPopupNoSearchCriteria();\n }\n }",
"private void searchContext(HttpServletRequest request, HttpServletResponse response, ArticleService artService,QuestionService questionService) throws ServletException, IOException {\n\t\tString text=request.getParameter(\"getText\");\n\t\tString atitle=\"atitle\";\n\t\tString qtitle=\"qtitle\";\n\t\tList<Article> arts=artService.getAll(atitle, text);\n\t\tList<Question> questions=questionService.getAll(qtitle,text);\n\t\trequest.setAttribute(\"arts\", arts);\n\t\trequest.setAttribute(\"questions\", questions);\n\t\trequest.getRequestDispatcher(\"/homepage/afterSearch.jsp\").forward(request, response);\n\t\t\n\t\t\n\t}",
"protected void invokeResults() {\r\n\t\t// Create the intent.\r\n\t\tIntent plantResultsIntent = new Intent(this, PlantResultsActivity.class);\r\n\t\t\r\n\t\t// create a bundle to pass data to the results screen.\r\n\t\tBundle data = new Bundle();\r\n\t\tdata.putString(PLANT_SEARCH_TERM, actPlantName.getText().toString());\r\n\t\t// add the bundle to the intent\r\n\t\tplantResultsIntent.putExtras(data);\r\n\t\t// start the intent, and tell it we want results.\r\n\t\tstartActivityForResult(plantResultsIntent, \t1);\r\n\t}",
"public Builder addAllResults(\n java.lang.Iterable<? extends entities.Torrent.NodeSearchResult> values) {\n if (resultsBuilder_ == null) {\n ensureResultsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, results_);\n onChanged();\n } else {\n resultsBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public entities.Torrent.NodeSearchResult.Builder addResultsBuilder() {\n return getResultsFieldBuilder().addBuilder(\n entities.Torrent.NodeSearchResult.getDefaultInstance());\n }",
"@Override\r\n public boolean onQueryTextSubmit(String query) {\n searchAdapter.setSearchResults(DataCache.getInstance().getSearchResults(query));\r\n return false;\r\n }",
"SearchResult<TimelineMeta> search(SearchQuery searchQuery);",
"@Transactional(readOnly = true)\n\t@Override\n\tpublic Event search(RequestContext context) {\n\t\tRegisterStudentsForm form = getForm(context);\n\t\tString name = form.getCurrentSearch();\n\t\tList<Student> students = name == null ? new ArrayList<Student>()\n\t\t\t\t: Student.findStudentsByName(name).getResultList();\n\t\tList<RegisterStudentsSearchResult> results = new ArrayList<RegisterStudentsSearchResult>();\n\t\tIterator<Student> iterator = students.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tStudent student = iterator.next();\n\t\t\tresults.add(new RegisterStudentsSearchResult(student, form\n\t\t\t\t\t.getStudentsToRegister().contains(student.getId())));\n\t\t}\n\t\tcontext.getViewScope().put(\"searchResults\", results);\n\t\treturn success();\n\t}",
"public Builder addResults(\n int index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(index, value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public SearchResult withHits(Hits hits) {\n setHits(hits);\n return this;\n }",
"@Override\n public void onResults(List<LocationClass> results) {\n searchView.swapSuggestions(results);\n\n //let the users know that the background\n //process has completed\n }",
"private void loadSearchResults(SearchRequest request) {\n showProgress(null, \"Loading search results...\");\n\n String authToken = ShPrefManager.with(getActivity()).getToken();\n RestClient.getAPI().search(authToken, request, new RestCallback<SearchResponse>() {\n @Override\n public void failure(RestError restError) {\n hideProgress();\n OpenHomeUtils.showToast(getActivity().getApplicationContext(), restError.getErrorMessage(), Toast.LENGTH_LONG);\n }\n\n @Override\n public void success(SearchResponse searchResponse, Response response) {\n hideProgress();\n if (searchResponse.getMessage().size() > 0) {\n propertyList = searchResponse.getMessage();\n String userId = ShPrefManager.with(getActivity()).getUserId();\n searchAdapter = new SearchAdapter(getActivity(), propertyList, userId, 'S');\n mRecyclerView.setAdapter(searchAdapter);\n currentAdapter = \"S\";\n //displayingNowTextView.setText(\"Searching \\\"\" + searchText + \"\\\"\");\n searchBack.setVisibility(View.VISIBLE);\n InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(getActivity().getWindow().getCurrentFocus().getWindowToken(), 0);\n locationLayout.setVisibility(View.VISIBLE);\n refineLayout.setVisibility(View.GONE);\n } else {\n String message = \"No results to display. Please modify the search criteria and try again.\";\n CustomDialogFragment regSuccessDialogFragment = CustomDialogFragment.newInstance(R.string.try_again,\n message, ApplicationConstants.BUTTON_OK, 0);\n regSuccessDialogFragment.show(getActivity().getFragmentManager(), \"SearchResultsFragment\");\n }\n }\n });\n }",
"abstract protected void passHitQueryContextToClauses(HitQueryContext context);",
"private<T> void addManyResults(T... results)\n {\n int i =0;\n for(T result : results)\n {\n this.add(\"morgen-main-result\"+i, new LazyDynamicPrimitive<>(result));\n i++;\n }\n\n results = null; // Prevents Heap pollution\n }",
"public void addAll(XResultSet r) {\n this.getNodeRefs().addAll(r.getNodeRefs());\n this.numberFound += r.numberFound;\n }",
"public void addResponseToResult(String term){\n\t\tResult result = this.getResult();\n\t\tif(result==null){\n\t\t\tresult = new Result();\n\t\t\tresult.setResponse(term);\n\t\t\tthis.setResult(result);\n\t\t}\n\t\telse{\n\t\t\tString s = result.getResponse();\n\t\t\ts += \",\" + term;\n\t\t\tresult.setResponse(s);\n\t\t}\t\n\t}",
"public void setResults(ArrayList<Integer> results){\n this.results = results;\n }",
"public SearchContext getSearchContext() \n {\n return mSearchContext;\n }",
"TSearchQuery prepareSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);",
"public SearchResults() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public Builder addResults(\n int index, entities.Torrent.NodeSearchResult.Builder builderForValue) {\n if (resultsBuilder_ == null) {\n ensureResultsIsMutable();\n results_.add(index, builderForValue.build());\n onChanged();\n } else {\n resultsBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }",
"public List<CorpusSearchHit> getResult() {\n return result;\n }",
"LazyDataModel<ReagentResult> getSearchResults();",
"private void showSearchResults(String query){\n searchResultGV = (GridView) findViewById(R.id.searchResultGV);\n setTitle(\"Search Result for: \" + query);\n query = query.toLowerCase();\n\n getPhotoList(query);\n\n searchResultGV.setAdapter(adapter);\n }",
"public void process(Manager manager, SearchRequest q)\n\t{\n\t\tResultSet rs = q.getResultSet();\n\t\tnew_query(manager, q, rs);\n\t\tint docids[] = rs.getDocids();\n\t\tint resultsetsize = docids.length;\n\t\tif (show_url_early && show_url)\n\t\t{\n\t\t\tString[] urls = new String[resultsetsize];\n\t\t\tString[] metadata = null;\n\t\t\tlogger.debug(\"early url decoration\");\n\t\t\tsynchronized(metaCache) {\n\t\t\t\ttry {\n\t\t\t\t\tfor(int i=0;i<resultsetsize;i++) {\n\t\t\t\t\t\tInteger DocNoObject = new Integer(docids[i]);\n\t\t\t\t\t\tif (metaCache.containsKey(DocNoObject))\n\t\t\t\t\t\t\t\tmetadata = (String[]) metaCache.get(DocNoObject);\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmetadata = metaIndex.getItems(keys, docids[i]);\n\t\t\t\t\t\t\tmetaCache.put(DocNoObject,metadata);\n\t\t\t\t\t\t}\n\t\t\t\t\t\turls[i] = metadata[0];\n\t\t\t\t\t}\n\t\t\t\t\trs.addMetaItems(\"url\", urls);\n\t\t\t\t\n\t\t\t\t}catch(IOException ioe) {}\n\t\t\t} \n\t\t\t\n\n\t\t}\n\n\t\tif (show_docid_early && show_docid)\n\t\t{\n\t\t\tString[] documentids = new String[resultsetsize];\n\t\t\tfor(int i=0;i<resultsetsize;i++)\n\t\t\t{\n\t\t\t\tdocumentids[i] = docIndex.getDocumentNumber(docids[i]);\n\t\t\t}\n\n\t\t\tSystem.err.println(\"Decorating with docnos for \"+documentids.length + \"result\");\n\t\t\tif (documentids.length > 0)\n\t\t\t\tSystem.err.println(\"\\tFirst docno is \"+documentids[0]);\n\t\t\trs.addMetaItems(\"docid\", documentids);\n\t\t}\n\t}",
"public void addSearchPollData(List<UserPollResponseModel.Results.Data> dataResults) {\n //remove footer viewe\n this.removeFooterView(footer);\n //add data in array list\n searchAdapter.addAll(dataResults);\n //Notifies the attached observers that the underlying\n // data has been changed and any View reflecting the data set should refresh itself.\n searchAdapter.notifyDataSetChanged();\n isLoading = false;\n }",
"private void search(SearchRequest request) {\r\n\t\tif(request == null)return;\r\n\t\tList<Record> results = handler.search(request);\r\n\t\tlist.show(results);\r\n\t\tpanInfo.setNumRec(results.size());\r\n\t\tpanInfo.setTotalAmt(Record.sumBalance(results));\r\n\t}",
"void setSearchResults(LazyDataModel<ReagentResult> searchResults);",
"@Override\n\tprotected void startSearchResultActivity(String[] search_ifs) {\n\t\tItemSearchResultActivity.startThisActivity(this, getString(R.string.detail_search), search_ifs);\n\t}",
"public void performSearch() {\n OASelect<CorpToStore> sel = getCorpToStoreSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }",
"private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }",
"List<ResultDTO> search(String query);",
"public entities.Torrent.NodeSearchResult.Builder addResultsBuilder(\n int index) {\n return getResultsFieldBuilder().addBuilder(\n index, entities.Torrent.NodeSearchResult.getDefaultInstance());\n }",
"private void setQueryResults(final QueryResultBundle bundle){\n\t\t// Get the sort info\n\t\tthis.synapseClient.getSortFromTableQuery(this.startingQuery.getSql(), new AsyncCallback<List<SortItem>>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onSuccess(List<SortItem> sortItems) {\n\t\t\t\tsetQueryResultsAndSort(bundle, sortItems);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tshowError(caught);\n\t\t\t}\n\t\t});\n\n\t}",
"public static void processPCSearchReasult(ArrayList<PC> search_result) {\r\n PCNMClientStart.cur_ent.setPcs(search_result);\r\n pc_pull = PCNMClientStart.cur_ent.getPcs();\r\n ArrayList<String>pc_tbl = new ArrayList<String>();\r\n for (PC pc : pc_pull)\r\n pc_tbl.add(pc.toString());\r\n PCNMClientStart.appWindow.setTitle(\"PCNM - PC Search Results\");\r\n PCNMClientStart.switchPanels(new PCSearchResultSCR(pc_tbl));\r\n }",
"@Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n\n enquiryModels.clear();\n enquiryModels.addAll((List) results.values);\n notifyDataSetChanged();\n }",
"private void searchQuery(String query) {\n mSearchAheadServiceV3 = new SearchAheadService(this, API_KEY);\n\n String queryString = query;\n\n LatLng surreyBC = new LatLng(49.104599F, -122.823509F);\n\n List searchCollections = Arrays.asList(SearchCollection.AIRPORT, SearchCollection.ADMINAREA,\n SearchCollection.ADDRESS, SearchCollection.FRANCHISE, SearchCollection.POI);\n try {\n SearchAheadQuery searchAheadQuery = new SearchAheadQuery\n .Builder(queryString, searchCollections)\n .location(surreyBC)\n .limit(5)\n .build();\n\n mSearchAheadServiceV3.predictResultsFromQuery(searchAheadQuery,\n new SearchAheadService.SearchAheadResponseCallback() {\n\n @Override\n public void onSuccess(@NonNull SearchAheadResponse searchAheadResponse) {\n\n //Get search results from the request response\n List<SearchAheadResult> searchAheadResults = searchAheadResponse.getResults();\n\n //if we have requests\n if (searchAheadResults.size() > 0) {\n\n //clear the current data to display\n searchResultsData.clear();\n\n try {\n\n int size = (searchAheadResults.size() < 5) ? searchAheadResults.size() : 5;\n\n for (int i = size - 1; i >= 0; i--) {\n // create a hashmap\n HashMap<String, String> hashMap = new HashMap<>();\n\n AddressProperties addressProperties = searchAheadResults.get(i).getPlace().getAddressProperties();\n\n // convert image int to a string and place it into the hashmap with an images key\n hashMap.put(\"address\", searchAheadResults.get(i).getName());\n hashMap.put(\"city\", addressProperties.getCity() + \", \" + addressProperties.getStateCode());\n hashMap.put(\"lat\", String.valueOf(searchAheadResults.get(i).getPlace().getLatLng().getLatitude()));\n hashMap.put(\"long\", String.valueOf(searchAheadResults.get(i).getPlace().getLatLng().getLongitude()));\n\n\n // add this hashmap to the list\n searchResultsData.add(hashMap);\n }\n\n //handle null pointer exception on address properties\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n\n //adapter inputs\n String[] from = {\n \"address\",\n \"city\",\n \"lat\",\n \"long\"\n };\n\n int[] to = {R.id.text_result_address, R.id.text_result_city, R.id.hidden_location_lat, R.id.hidden_location_long};\n\n searchAdapter = new SimpleAdapter(getApplicationContext(), searchResultsData, R.layout.item_search_result, from, to);\n mListViewSearch.setAdapter(searchAdapter);\n mListViewSearch.setVisibility(View.VISIBLE);\n } else {\n resetSearchAheadList();\n }\n }\n\n @Override\n public void onError(Exception e) {\n Log.e(\"MAPQUEST\", \"Search Ahead V3 Failure\", e);\n }\n });\n } catch (IllegalQueryParameterException e) {\n Log.e(\"Error performing search\", e.getMessage());\n }\n }",
"private void FetchSearchResult(String tag, String searchCriteria) {\n\t\t/** invoking the search call */\n\t\tmLog.info(\"Fetching Search Result\");\n\t\tspiceManager.execute(\n\t\t\t\tnew MVMediaSearchRequest(AppHelper\n\t\t\t\t\t\t.getToken(SearchActivity.this), tag, searchCriteria,\n\t\t\t\t\t\tmPageCount), Constants.CACHE_KEY_SEARCH_KEY,\n\t\t\t\tDurationInMillis.ALWAYS_EXPIRED, new MVSearchRequestListner(\n\t\t\t\t\t\tSearchActivity.this));\n\n\t}",
"@Override\n public void execute() {\n modelFacade.getFoodItems().addAll(modelFacade.fetchMatchingFoodItemResults(sb.toString()));\n }",
"public void addResult(String key, String value) {\n Preconditions.checkArgument(!results.containsKey(key), \"the result already contains that key\");\n results.put(key, value);\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}",
"public void setSearchContext(SearchContext pSearchContext) \n {\n mSearchContext = pSearchContext;\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tdoSearch(name, count);\n\t\t\t}",
"@Override\n public void onResultClick(SearchResult result) {\n }",
"@Override\n public SearchResultInfo search(SearchRequestInfo searchRequest) {\n try\n {\n SearchResultInfo searchResult = searchDispatcher.search(searchRequest, ContextUtils.getContextInfo());\n List<SearchParamInfo> params = searchRequest.getParams();\n if (params != null && params.size() > 0) {\n SearchParamInfo firstParam = params.get(0);\n if (firstParam.getKey().equals(\"lu.queryParam.cluVersionIndId\")) {//FIXME can this special case be handled after this call?\n doIdTranslation(searchResult);\n }\n }\n return searchResult;\n } catch (Exception ex) {\n // Log exception \n ex.printStackTrace();\n throw new RuntimeException(ex);\n }\n }",
"public abstract Intent constructResults();",
"@Override\r\n\t\t\tpublic List<ScoredDocument> search(Query query) {\n\t\t\t\treturn null;\r\n\t\t\t}",
"public void onSearchStarted();",
"public void getAllResults()\n {\n for(String module: modules.keySet())\n {\n getResults(module);\n }\n }",
"@Override\n protected void publishResults(CharSequence charSequence, FilterResults results) {\n\n liftList = (ArrayList<Lift>) results.values;\n notifyDataSetChanged();\n }",
"@Override\n public void doIT() throws RepositoryException {\n Repository repo = taskData.getRepository();\n\n if (repo instanceof RemoteRepository && taskData.getSubject() != null) {\n RemoteRepository rr = (RemoteRepository) repo;\n NamedEntity entity = (NamedEntity) taskData.getSubject().getTL();\n boolean includeIndirect = true;\n\n repoResults = new ArrayList<>();\n rr.getEntityWhereExtended( entity ).forEach( e -> repoResults.add( e ) );\n repoResults.addAll( rr.getEntityWhereUsed( entity, includeIndirect ) );\n // Returns list of repo items\n // RepositoryItem item = null;\n // rr.getItemWhereUsed( item, includeIndirect );\n log.debug( \"Found \" + repoResults.size() + \" entities.\" );\n } else {\n // Run full-text search\n // Result list contains both entity and library result items\n repoResults = repo.search( taskData.getQuery(), taskData.getIncludeStatus(),\n taskData.isLatestVersionsOnly(), taskData.getItemType() );\n log.debug( \"Found \" + repoResults.size() + \" items in repo.\" );\n }\n }",
"private void getDataFromDb() {\n viewModel.getCachedResults().observe(getViewLifecycleOwner(), searchResults -> {\n// Log.d(TAG, \"queryMusic: \" + new GsonBuilder().create().toJson(searchResults));\n\n //Checks if results is empty, will show the empty message if it do else, clears the list and adds the new one\n if (searchResults.isEmpty()) {\n resultsRv.setVisibility(View.GONE);\n progressBar.setVisibility(View.GONE);\n resultText.setVisibility(View.VISIBLE);\n } else {\n resultsRv.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.GONE);\n resultText.setVisibility(View.GONE);\n mSearchResultList.clear();\n mSearchResultList.addAll(searchResults);\n resultsListAdapter.setData(mSearchResultList);\n// Log.d(TAG, \"setData: mSearchResultList: \"+ new GsonBuilder().create().toJson(mSearchResultList));\n }\n });\n }",
"public GameList getSearchResult(){ return m_NewSearchResult;}",
"private void setSearchAdapter(List<SearchResult> searchResultMap,\r\n String query) {\r\n\r\n searchResultAdapter = new BlinqSearchAdapter(context, searchResults,\r\n searchMode, mergePlatform, this);\r\n\r\n searchResultAdapter.setSearchQuery(query.toLowerCase());\r\n searchResultsList.setAdapter(searchResultAdapter);\r\n }",
"private void loadResult() {\n lvResult.setVisibility(View.VISIBLE);\n lvResult.setAdapter(new AddressAdapter(MainActivity.this, geocodingResult.getResults()));\n }",
"public void setResults(ArrayOfFindResult results) {\n this.results = results;\n }",
"private void setResult(String term){\n\t\taddResponseToResult(term);\n\t}",
"void searchStarted (Search search);",
"private void getBySearch(HttpServletRequest request, HttpServletResponse response, ArticleService artService) {\n\t\tString search = request.getParameter(\"search\");\n\t\tList<Article> list = new ArrayList<Article>();\n\t\tlist = artService.getAll(\"atitle\", search);\n\t\trequest.setAttribute(\"list\", list);\n\t\ttry {\n\t\t\trequest.getRequestDispatcher(\"/essay/other_essay.jsp\").forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public Builder setResults(\n int index, entities.Torrent.NodeSearchResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.set(index, value);\n onChanged();\n } else {\n resultsBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public SearchResults search(String queryString) {\n\n Timer.Context ctx = m_searchTimer.time();\n\n SearchResults searchResults = new SearchResults();\n\n for (String term : s_tokenSplitter.splitToList(queryString)) {\n\n Term t = Term.parse(term);\n\n Statement searchQuery = select(Constants.Schema.C_TERMS_RESOURCE).from(Constants.Schema.T_TERMS)\n .where(eq(Constants.Schema.C_TERMS_CONTEXT, Context.DEFAULT_CONTEXT.getId()))\n .and( eq(Constants.Schema.C_TERMS_FIELD, t.getField()))\n .and( eq(Constants.Schema.C_TERMS_VALUE, t.getValue()));\n\n // TODO: Use async DB calls; Get attrs and metrics concurrently\n for (Row row : m_session.execute(searchQuery.toString())) { // FIXME: toString()?\n String id = row.getString(Constants.Schema.C_TERMS_RESOURCE);\n Optional<Map<String, String>> attrs = fetchResourceAttributes(Context.DEFAULT_CONTEXT, id);\n Collection<String> metrics = fetchMetricNames(Context.DEFAULT_CONTEXT, id);\n\n searchResults.addResult(new Resource(id, attrs), metrics);\n }\n }\n\n try {\n return searchResults;\n }\n finally {\n ctx.stop();\n }\n }",
"public void doSearch(String query)\n \t{\n \t\tlistener.onQueryTextSubmit(query);\n \t}",
"private void searchRefresh(){\n adapter = new FoundRecyclerviewAdapter(FoundActivity.this, search);\n v.setAdapter(adapter);\n }",
"@Override\n public Collection performLookup(LookupForm lookupForm, Collection resultTable, boolean bounded) {\n Collection<BusinessObject> displayList;\n\n // Call search method to get results - always use unbounded to get the entire set of results.\n\n displayList = (Collection<BusinessObject>) getSearchResultsUnbounded(lookupForm.getFieldsForLookup());\n\n List pkNames = getBusinessObjectMetaDataService().listPrimaryKeyFieldNames(getBusinessObjectClass());\n List returnKeys = getReturnKeys();\n Person user = GlobalVariables.getUserSession().getPerson();\n\n // Iterate through result list and wrap rows with return url and action urls\n for (BusinessObject element : displayList) {\n LOG.debug(\"Doing lookup for \" + element.getClass());\n\n ReferralToCollectionsLookupResult result = ((ReferralToCollectionsLookupResult) element);\n List<String> invoiceAttributesForDisplay = result.getInvoiceAttributesForDisplay();\n\n BusinessObjectRestrictions businessObjectRestrictions = getBusinessObjectAuthorizationService().getLookupResultRestrictions(result, user);\n // add list of awards to sub Result rows\n List<ResultRow> subResultRows = new ArrayList<ResultRow>();\n for (ContractsGrantsInvoiceDocument invoice : result.getInvoices()) {\n\n List<Column> subResultColumns = new ArrayList<Column>();\n InvoiceAccountDetail firstInvoiceAccountDetail = new InvoiceAccountDetail();\n\n // Set first invoice account detail\n if (CollectionUtils.isNotEmpty(invoice.getAccountDetails())){\n firstInvoiceAccountDetail = invoice.getAccountDetails().get(0);\n }\n\n for (String propertyName : invoiceAttributesForDisplay) {\n if (propertyName.equalsIgnoreCase(KFSPropertyConstants.ACCOUNT_NUMBER)) {\n Account account = getAccountService().getByPrimaryId(firstInvoiceAccountDetail.getChartOfAccountsCode(), firstInvoiceAccountDetail.getAccountNumber());\n subResultColumns.add(setupResultsColumn(account, propertyName, businessObjectRestrictions));\n }\n else {\n subResultColumns.add(setupResultsColumn(invoice, propertyName, businessObjectRestrictions));\n }\n }\n\n ResultRow subResultRow = new ResultRow(subResultColumns, \"\", \"\");\n subResultRow.setObjectId(((PersistableBusinessObjectBase) invoice).getObjectId());\n subResultRows.add(subResultRow);\n }\n\n // Create main customer header row\n Collection<Column> columns = getColumns(element, businessObjectRestrictions);\n HtmlData returnUrl = getReturnUrl(element, lookupForm, returnKeys, businessObjectRestrictions);\n ContractsGrantsLookupResultRow row = new ContractsGrantsLookupResultRow((List<Column>) columns, subResultRows, returnUrl.constructCompleteHtmlTag(), getActionUrls(element, pkNames, businessObjectRestrictions));\n resultTable.add(row);\n }\n\n return displayList;\n }",
"public void updateRecords(String query) {\n\t\tcurrentQuery = query;\n\t\tThread resultThread = new Thread(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tString workingOnQuery = currentQuery;\n\n\t\t\t\t// Ask for records\n\t\t\t\tfinal ArrayList<Record> records = dataHandler\n\t\t\t\t\t\t.getRecords(workingOnQuery);\n\n\t\t\t\t// Another search have already been made\n\t\t\t\tif (workingOnQuery != currentQuery)\n\t\t\t\t\treturn;\n\n\t\t\t\tif (records == null) {\n\t\t\t\t\t// First use of the app. TODO : Display something useful.\n\t\t\t\t} else {\n\t\t\t\t\trunOnUiThread(new Runnable() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tadapter.clear();\n\t\t\t\t\t\t\tfor (int i = Math.min(MAX_RECORDS,\n\t\t\t\t\t\t\t\t\trecords.size()) - 1; i >= 0; i--) {\n\t\t\t\t\t\t\t\tadapter.add(records.get(i));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Reset scrolling to top\n\t\t\t\t\t\t\tlistView.setSelectionAfterHeaderView();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tresultThread.start();\n\t}",
"@Override\r\n protected List<SearchResult> doInBackground(String... params) {\n if (searchResults == null)\r\n searchResults = new ArrayList<SearchResult>();\r\n\r\n return searchResults;\r\n\r\n }",
"public abstract void mergeToGlobalStats(SolrQueryRequest req,\n List<ShardResponse> responses);",
"@Override\n public String doSearchResult() {\n return null;\n }",
"void addUserSearch(UserSearch userSearch);",
"public Result getResults()\r\n {\r\n return result;\r\n }",
"SearchResponse search(SearchRequest searchRequest) throws IOException;"
] | [
"0.62101424",
"0.6006239",
"0.5889846",
"0.58528703",
"0.5822027",
"0.58195585",
"0.5803667",
"0.57784027",
"0.56763697",
"0.5663496",
"0.56206214",
"0.5589479",
"0.5518528",
"0.5509642",
"0.54795885",
"0.54779035",
"0.5474812",
"0.5459485",
"0.5432145",
"0.54315066",
"0.5427531",
"0.5418145",
"0.5413375",
"0.54027337",
"0.5395402",
"0.5390989",
"0.53714067",
"0.5361892",
"0.53590494",
"0.5352574",
"0.5347815",
"0.5344811",
"0.5325024",
"0.53221315",
"0.5310671",
"0.5309957",
"0.5307458",
"0.527581",
"0.5275306",
"0.5274808",
"0.52595925",
"0.52587664",
"0.52565867",
"0.5254941",
"0.5245895",
"0.5245816",
"0.5234005",
"0.52265084",
"0.5219596",
"0.521712",
"0.52105564",
"0.5203275",
"0.52014494",
"0.51880914",
"0.5184663",
"0.5182694",
"0.5176398",
"0.5160627",
"0.5153848",
"0.51512295",
"0.5148931",
"0.514747",
"0.5146391",
"0.5124173",
"0.5112966",
"0.51013243",
"0.5096314",
"0.5092273",
"0.5091957",
"0.5091957",
"0.50871676",
"0.5086061",
"0.50843114",
"0.5082073",
"0.50781125",
"0.50751686",
"0.5070871",
"0.5067843",
"0.5061126",
"0.50608313",
"0.50604594",
"0.50587654",
"0.50532997",
"0.5042176",
"0.5041031",
"0.50199294",
"0.5014768",
"0.5012171",
"0.5007826",
"0.50060105",
"0.4998579",
"0.4996402",
"0.49926427",
"0.4992247",
"0.4991758",
"0.49854717",
"0.4984971",
"0.49835974",
"0.49771586",
"0.49764746",
"0.49749616"
] | 0.0 | -1 |
Gets the movies to display from the Search Result Context. | public static ArrayList<MovieInfoObject> getMoviesToDisplay() {
return mMovies;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Movie> search() {\n keyword = URLEncoder.encode(keyword);\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=yedukp76ffytfuy24zsqk7f5&q=\"\n + keyword + \"&page_limit=20\";\n apicall(url);\n System.out.println(url);\n System.out.println(data);\n GsonBuilder builder = new GsonBuilder();\n Gson gson = builder.create();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n return movieData;\n }",
"public static ArrayList<Movie> getMoviesBySearch(String accessToken, String term) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n params.add(new BasicNameValuePair(PARAM_TERM, term));\n try {\n\n Log.i(Constants.TAG, \"MOVIES URI: \" + MOVIES_SEARCH_URI);\n JsonObject moviesJson = getWebService(params, MOVIES_SEARCH_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"MOVIES RESULT: \" + moviesJson.toString());\n if (moviesJson != null) {\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n .create();\n\n ArrayList<Movie> movieList = gson.fromJson(\n moviesJson.get(\"movies\"),\n new TypeToken<ArrayList<Movie>>() {\n }.getType());\n return movieList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when searching movies - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when searching movies\", e);\n return null;\n } // end try-catch\n }",
"@Override\n public MovieListing getMovies() {\n // inventory.whatsAvailable()\n // inventory.whatIsUnavailable();\n return movieRepo.getMovies();\n }",
"public static ArrayList<Movie> getMoviesFromCollectionSearch(String accessToken, String term) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n if (term != null) {\n params.add(new BasicNameValuePair(PARAM_TERM, term));\n } // end if\n try {\n\n Log.i(Constants.TAG, \"MOVIES URI: \" + MOVIES_SEARCH_COLLECTION_URI);\n JsonObject moviesJson = getWebService(params, MOVIES_SEARCH_COLLECTION_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"MOVIES RESULT: \" + moviesJson.toString());\n if (moviesJson != null) {\n Gson gson = new GsonBuilder().setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)\n .setDateFormat(\"yyyy-MM-dd HH:mm\")\n .create();\n\n ArrayList<Movie> movieList = gson.fromJson(\n moviesJson.get(\"movies\"),\n new TypeToken<ArrayList<Movie>>() {\n }.getType());\n return movieList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when searching movies - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when searching movies\", e);\n return null;\n } // end try-catch\n }",
"public static ArrayList<Movie> getMoviesList(){\n\t\treturn movieInfo;\n\t}",
"public ArrayList<Movie> getSearchResult(String search) {\n\t\tArrayList<Movie> res = new ArrayList<>();\n\t\tfor (int i=0; i<getDataLength(); ++i) {\n\t\t\tboolean check = false;\n\t\t\tcheck = this.dataList.get(i).getTitle().toLowerCase().contains(search.toLowerCase());\n\t\t\tboolean checkEndShowing = this.dataList.get(i).isEndShowing();\n\t\t\tif (check&&!checkEndShowing)\n\t\t\t\tres.add((Movie)this.dataList.get(i));\n\t\t}\n\t\t\n\t\treturn res;\n\t}",
"@Override\n public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n\n final EditText etInput = view.findViewById(R.id.etInput);\n Button searchBtn = view.findViewById(R.id.searchBtn);\n RecyclerView rvSearchRes = view.findViewById(R.id.rvSearchResults);\n\n searchResults = new ArrayList<>();\n\n // Create the adapter\n final MovieSearchAdapter movieAdapter = new MovieSearchAdapter(getContext(), searchResults);\n\n // Set the adapter on the recycler view\n rvSearchRes.setAdapter(movieAdapter);\n\n // Set a Layout Manager\n rvSearchRes.setLayoutManager(new LinearLayoutManager(getContext()));\n\n searchBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String query = etInput.getText().toString();\n if (query.isEmpty()) {\n Toast.makeText(getContext(), \"Empty Field\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n Toast.makeText(getContext(), query, Toast.LENGTH_SHORT).show();\n\n String URL = String.format(\"https://api.themoviedb.org/3/search/movie?api_key=%s&language=en-US&query=%s&page=1&include_adult=false\", KEY, query);\n\n final AsyncHttpClient client = new AsyncHttpClient();\n client.get(URL, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int i, Headers headers, JSON json) {\n Log.d(TAG, \"onSuccess\");\n JSONObject jsonObject = json.jsonObject;\n try {\n JSONArray results = jsonObject.getJSONArray(\"results\");\n Log.i(TAG, \"Releases: \" + results.toString());\n\n searchResults.addAll(Movie.fromJsonArray(results));\n movieAdapter.notifyDataSetChanged();\n Log.i(TAG, \"Movies: \" + searchResults.size());\n } catch (JSONException e) {\n Log.e(TAG, \"Hit JSON Exception\", e);\n }\n }\n\n @Override\n public void onFailure(int i, Headers headers, String s, Throwable throwable) {\n Log.d(TAG, \"onFailure\" + i);\n }\n });\n }\n });\n\n }",
"@Nullable\n MoviePage getMovies();",
"public List<Movie> getMovies();",
"@Override\n\tpublic List<Movie> search(String queryText) {\n\t\tMoviesResponse moviesResponse = movieDataService.fetchAll();\n\t\tList<Movie> movieList = moviesResponse.stream()\n\t\t\t\t.filter(movieData -> Arrays.asList(movieData.getTitle().toLowerCase().split(\"\\\\s+\")).contains(queryText.toLowerCase()))\n\t\t\t\t.collect(Collectors.mapping(movieData -> mapMovieDataToMovie(movieData),Collectors.toList()));\n\t\treturn movieList;\n\t}",
"public static ArrayList<MovieList> getMovieListsBySearch(String accessToken, String term) {\n final ArrayList<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>();\n params.add(new BasicNameValuePair(PARAM_TERM, term));\n try {\n\n Log.i(Constants.TAG, \"MOVIES URI: \" + MOVIES_SEARCH_LISTS_URI);\n JsonObject moviesJson = getWebService(params, MOVIES_SEARCH_LISTS_URI, accessToken).getAsJsonObject();\n Log.i(Constants.TAG, \"MOVIES RESULT: \" + moviesJson.toString());\n if (moviesJson != null) {\n Gson gson = new GsonBuilder()\n .setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\")\n .create();\n\n ArrayList<MovieList> movieList = gson.fromJson(\n moviesJson.get(\"lists\"),\n new TypeToken<ArrayList<MovieList>>() {\n }.getType());\n return movieList;\n } else {\n return null;\n } // end if-else\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when searching movies - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when searching movies\", e);\n return null;\n } // end try-catch\n }",
"public Cursor getAllMovies() {\n //Seleccionamos todas las filas de la tabla Movie\n return database.rawQuery(\n \"select * from \" + MOVIE_TABLE_NAME, null);\n }",
"@GET(\"list_movies.json\")\n Call<MoviesResponse> searchMovie(@Query(\"query_term\") String queryTerm);",
"public LiveData<List<Movie>> fetchMovies(String option) {\n return Api.fetchMovies(option);\n }",
"public List<Movie> getMovies() {\n return movies;\n }",
"public List<Movie> getMovies(){\r\n if(person == null){\r\n return new ArrayList();\r\n }\r\n \r\n return new ArrayList(person.getMovies().values());\r\n }",
"@GET\r\n\t@Path(\"/query\")\r\n\t@Produces(MediaType.TEXT_HTML)\r\n\t@Consumes(MediaType.APPLICATION_FORM_URLENCODED)\r\n\tpublic String getMoviesFrom(@QueryParam(\"name\") String name) {\r\n\t\tListMovies list = new ListMovies();\r\n\t\tfor (Movie movie : TodoDao.instance.getMovies().values()) {\r\n\t\t\tif (movie == null)\r\n\t\t\t\tthrow new RuntimeException(\"Get: Movie with \" + name + \" not found\");\r\n\t\t\tif (movie.getName().contains(name)) {\r\n\t\t\t\tlist.add(movie);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"<html>\" + list + \"</html>\";\r\n\t}",
"public static Cursor fetchAllMovies (Context context) {\n\n MovieSqlHelper moviesDb = new MovieSqlHelper(context);\n Cursor C = moviesDb.getReadableDatabase().query(DBConstants.MOVIES_T,null,null,null,null,null,fetchAllOrderBy);\n return C;\n }",
"public ArrayList<Movie> getMovies() {\n return movies;\n }",
"void searchMovie(@NonNull String movieTitle) {\n getView().showLoading();\n\n if (!movieTitle.equals(mCurrentMovieTitle)) {\n // inject in order to create new instance each time that the query changes.\n UseCase.getDependencyInyectionComponent().inject(this);\n mCurrentMovieTitle = movieTitle;\n mMoviesListItems = new ArrayList<>();\n }\n\n mUseCase.execute(mCurrentMovieTitle, this);\n }",
"private void searchMoviesSpecific() throws IOException {\n\t\t//the message prints the search parameter they are using by getting the value from the movieMenu map\n\t\tprint(\"Please enter the \"+movieMenu.get(currentSearch)+\" you wish to search for movies by\");\n\t\t//get the search param\n\t\tString searchParam = br.readLine();\n\t\t//more complicated boolean logic: if the currentSearch is 1, search by actor, else, if the currentSearch is 3, search by genre, else, search by title\n\t\tSet<Movie> results = (currentSearch == 1 ? searchByActor(searchParam) : \n\t\t\t(currentSearch == 3 ? searchByGenre(searchParam) : searchByTitle(searchParam)));\n\t\t\n\t\t//printResults() returns a boolean as to whether there is at least one title returned. If it returns true, print out the results\n\t\tif (printResults(results)) for (Movie mov : results) print(mov.getTitle());\n\t\t//print the menu that allows a user to search again or return to the login menu\n\t\tprintMovieMiniMenu();\n\t}",
"List<Movie> getAllMovies(String name, String director, String movieId);",
"@Override\n\tpublic List<Movie> findAllMovie() {\n\t\treturn repository.findAllMovie();\n\t}",
"public List<Movie> getAllMovies() {\n SQLiteDatabase database = this.getWritableDatabase();\n List<Movie> movieList = new ArrayList<>();\n String selectQuery = \" SELECT * FROM \" + MoviesEntry.TABLE_NAME;\n Cursor cursor = database.rawQuery(selectQuery, null);\n\n if (cursor.moveToFirst()) {\n do {\n Movie movie = getMovieFromCursor(cursor);\n movieList.add(movie);\n } while (cursor.moveToNext());\n }\n database.close();\n\n return movieList;\n }",
"public Cursor displaySelectedMovie(String movie){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table+\" WHERE \" +MOVIE_NAME+\" LIKE '%\"+movie+\"%'\";\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }",
"@Override\n public Movie search(String title)\n {\n if(this.titles.get(title) != null)\n return this.movies.get((this.titles.get(title)).getKey());\n else\n return null;\n }",
"@Override\n\tpublic List<Movie> getAllMovies() {\n\t\treturn movieRepository.getAllMovies();\n\t}",
"public List<String> getMovies(String n)\n\t{\n\t\tList<String> movies_of_the_actor = new ArrayList<String>();\n\t\t//look through the movie list and check if actor n is present\n\t\tIterator<Movie> itr = list_of_movies.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tMovie temp_movie = itr.next();\n\t\t\tif(temp_movie.getCast().contains(n))\n\t\t\t//if yes add the movie title to the list\n\t\t\t{\n\t\t\t\tmovies_of_the_actor.add(temp_movie.getTitle());\n\t\t\t}\t\t\n\t\t}\t\t\n\t\t//return the list\n\t\treturn movies_of_the_actor;\n\t}",
"public ArrayList<String> getMovies(){\n\t\tArrayList<String> movies = new ArrayList<String>();\n\t\tString sql = \"SELECT * FROM movies\";\n\t\tPreparedStatement ps = null;\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tmovies.add(rs.getString(\"name\"));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tps.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn movies;\t\n\t}",
"public ArrayList<String> getMovies() {\n ArrayList<String> movies = new ArrayList<String>();\n\n try {\n // Prepare a new SQL Query & Set a timeout\n Statement statement = connection.createStatement();\n statement.setQueryTimeout(30);\n\n // The Query\n String query = \"SELECT *\" + \"\\n\" +\n \"FROM member\";\n\n // Get Result\n ResultSet results = statement.executeQuery(query);\n\n // Process all of the results\n // The \"results\" variable is similar to an array\n // We can iterate through all of the database query results\n while (results.next()) {\n // We can lookup a column of the a single record in the\n // result using the column name\n // BUT, we must be careful of the column type!\n // int id = results.getInt(\"mvnumb\");\n String movieName = results.getString(\"email\");\n // int year = results.getInt(\"yrmde\");\n // String type = results.getString(\"mvtype\");\n\n // For now we will just store the movieName and ignore the id\n movies.add(movieName);\n // members.add();\n }\n\n // Close the statement because we are done with it\n statement.close();\n } catch (SQLException e) {\n // If there is an error, lets just print the error\n System.err.println(e.getMessage());\n }\n\n // Finally we return all of the movies\n return movies;\n }",
"@Path(\"search/{query}\")\n @GET\n public Response getMovies(@PathParam(\"query\") String query){\n return movieBean.getMovies(query);\n }",
"public void searchMovie(ArrayList<Movie> movies)\n {\n int answer = insertSearchMenuAnswer();\n \n if (answer == 1)\n searchedByTitle(movies);\n else\n if (answer == 2)\n searchedByDirectors(movies);\n else\n if (answer == 3)\n return;\n }",
"private Movie getMovie() {\n Gson gson = new Gson();\n return gson.fromJson(result, Movie.class);\n }",
"public void fetchFavoritedMovies() {\n favoritesSelected = true;\n Cursor cursor =\n getActivity().getContentResolver().query(MovieContract.FavoriteMovieEntry.CONTENT_URI,\n null,\n null,\n null,\n null);\n ArrayList<MovieModel> movieModels = new ArrayList<>();\n if (cursor != null) {\n while (cursor.moveToNext()) {\n MovieModel movieModel = new MovieModel(getActivity(), cursor);\n // Get the trailers and reviews\n String movieId = cursor.getString(cursor.getColumnIndex(MovieContract.FavoriteMovieEntry._ID));\n Cursor trailerCursor =\n getActivity().getContentResolver().query(MovieContract.TrailerEntry.CONTENT_URI,\n null,\n MovieContract.TrailerEntry.COLUMN_MOVIE_KEY + \" = ?\",\n new String[]{movieId},\n null);\n Cursor reviewCursor =\n getActivity().getContentResolver().query(MovieContract.ReviewEntry.CONTENT_URI,\n null,\n MovieContract.ReviewEntry.COLUMN_MOVIE_KEY + \" = ?\",\n new String[]{movieId},\n null);\n ArrayList<MovieTrailerModel> movieTrailerModels = new ArrayList<>();\n ArrayList<MovieReviewModel> movieReviewModels = new ArrayList<>();\n if (trailerCursor != null) {\n while (trailerCursor.moveToNext()) {\n movieTrailerModels.add(new MovieTrailerModel(getActivity(), trailerCursor));\n }\n trailerCursor.close();\n }\n if (reviewCursor != null) {\n while (reviewCursor.moveToNext()) {\n movieReviewModels.add(new MovieReviewModel(getActivity(), reviewCursor));\n }\n reviewCursor.close();\n }\n movieModel.setReviews(movieReviewModels);\n movieModel.setTrailers(movieTrailerModels);\n movieModels.add(movieModel);\n }\n cursor.close();\n }\n movieGridAdapter.setMovieModels(movieModels);\n }",
"public List<Movie> getMovie(String name){\n return _movieRepo.getMovie(name);\n }",
"List<Movie> getMovie(String movieId);",
"public String allMovieTitles(){\n String MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n MovieTitle += results[i].getTitle() + \"\\n\";\n }\n System.out.println(MovieTitle);\n return MovieTitle;\n }",
"@GetMapping(\"/movies\")\n public List<Movie> getAllMovies() {\n movies = new ArrayList<Movie>();\n movies.add(new Movie(1,\"The Godfather\",\"Crime/Thriller\"));\n movies.add(new Movie(2,\"Star Wars\",\"Sci-Fi\"));\n movies.add(new Movie(3,\"The Mask\",\"Comedy\"));\n movies.add(new Movie(4,\"Die Hard\",\"Action\"));\n movies.add(new Movie(5,\"The Exorcist\",\"Horror\"));\n movies.add(new Movie(6,\"The Silence of the Lambs\",\"Drama\"));\n\n return movies;\n }",
"public void showMovies() {\n System.out.println(\"Mina filmer:\");\n for (int i = 0; i < myMovies.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myMovies.get(i).getTitle() +\n \"\\nRegissör: \" + myMovies.get(i).getDirector() + \" | \" +\n \"Genre: \" + myMovies.get(i).getGenre() + \" | \" +\n \"År: \" + myMovies.get(i).getYear() + \" | \" +\n \"Längd: \" + myMovies.get(i).getDuration() + \" min | \" +\n \"Betyg: \" + myMovies.get(i).getRating());\n }\n }",
"Collection<MoviesTitles> getMoviesTitles();",
"@GET(\"movie_suggestions.json\")\n Call<MoviesResponse> getSimilarMovies(@Query(\"movie_id\") String id);",
"public List<Movie> theaters() {\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/lists/movies/in_theaters.json?\"\n + \"apikey=yedukp76ffytfuy24zsqk7f5\";\n apicall(url);\n\n Gson gson = new Gson();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n System.out.println(url);\n return movieData;\n }",
"@Override\n\tpublic int getCount() {\n\t\treturn movies.size();\n\t}",
"public Call<ResponsePaginated<Movie>> getMovies(String filter) {\n return apiService.getMovies(filter);\n }",
"@GetMapping(\"/\")\n\tpublic List<Movie> getListMovie(){\n\t\tList<Movie> list = repo.findAll();\n\t\t\n\t\treturn list;\n\t}",
"@Override\n\tpublic List<MovieBean> listOfMovies() {\n\n\t\treturn dao.listOfMovies();\n\t}",
"public ResponseEntity<List<Movie>> getAllMovies() {\n List<Movie> movies = movieRepository.findAll();\n return new ResponseEntity<>(movies, HttpStatus.OK);\n }",
"private void getMovies(String category) {\n if (category == NetworkUtils.FAVORITES) {\n setupViewModel();\n return;\n }\n subscription = MovieClient.getInstance()\n .getMovies(category)\n // scheduler where the Observable will do the work\n .subscribeOn(Schedulers.io())\n // scheduler which a subscriber will observe this Observable\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Observer<Movie.MovieResult>() {\n @Override\n public void onCompleted() {\n Log.d(TAG, \"In Completed\");\n }\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n // cast to retrofit2.HttpException to get the response code\n if (e instanceof HttpException) {\n int code = ((retrofit2.HttpException)e).code();\n }\n Log.d(TAG, \"In Error\");\n }\n\n @Override\n public void onNext(Movie.MovieResult movieResults) {\n Log.d(TAG, \"OnNext\");\n Log.d(TAG, \"movie results are: \" + movieResults);\n mMovieAdapter.setMovieData(movieResults.getResults());\n if (scrollState != null) {\n mMoviesRecyclerView.getLayoutManager().onRestoreInstanceState(scrollState);\n }\n }\n });\n }",
"public Movies getMovie () {\r\n\t\treturn movie;\r\n\t}",
"@GetMapping(\"/recommendations\")\n public ResponseEntity<?> getMovies() {\n Movie[] result = restTemplate.getForObject(\"http://movie-service/movies\", Movie[].class);\n System.out.println(result);\n return new ResponseEntity<>(result, HttpStatus.OK);\n }",
"public Cursor searchMovie(String search){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table+\" WHERE \" +MOVIE_NAME+\" LIKE '%\"+search+\"%' OR \"+MOVIE_DIRECTOR+\" LIKE '%\"+search+\"%' OR \"+MOVIE_CAST+\" LIKE '%\"+search+\"%'\";\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_all_movies);\n\n // initialisation of objects\n errorMessageDisplayView = (TextView) findViewById(R.id.tv_display_error_message);\n progressBar = (ProgressBar) findViewById(R.id.pb_movie_db_query);\n recyclerView = (RecyclerView) findViewById(R.id.rv_all_movies_grid);\n navDrLayout = (DrawerLayout) findViewById(R.id.drawer_layout);\n navDrListView = (ListView) findViewById(R.id.lv_navigation_drawer);\n actionBar = getSupportActionBar();\n rootLayout = (FrameLayout) findViewById(R.id.fl_root_layout);\n\n // restoring instance state data (in all cases where this is not an initial start of our Activity)\n if (savedInstanceState != null) {\n if (savedInstanceState.containsKey(PAGE_NUMBER_KEY)) {\n // page number that was last used in http query\n pageNumberBeingQueried = savedInstanceState.getInt(PAGE_NUMBER_KEY);\n }\n if (savedInstanceState.containsKey(CACHED_MOVIE_LIST_KEY)) {\n // ArrayList of Movie objects that has been already loaded\n cachedMovieData = savedInstanceState.getParcelableArrayList(CACHED_MOVIE_LIST_KEY);\n }\n if (savedInstanceState.containsKey(ACTIVITY_MODE_KEY)){\n // activity mode (in search view or otherwise (default))\n searchModeIsOn = savedInstanceState.getBoolean(ACTIVITY_MODE_KEY, false);\n }\n if (savedInstanceState.containsKey(SEARCH_VIEW_MODE_KEY)){\n // searchView mode (search query is either submitted or not)\n searchQueryIsSubmitted = savedInstanceState.getBoolean(SEARCH_VIEW_MODE_KEY, false);\n }\n if (savedInstanceState.containsKey(SearchManager.QUERY)){\n searchQueryToListen = savedInstanceState.getString(SearchManager.QUERY);\n searchQueryToRestore = searchQueryToListen;\n }\n if(savedInstanceState.containsKey(SUBMITTED_SEARCH_QUERY_KEY)){\n searchQuerySubmitted = savedInstanceState.getString(SUBMITTED_SEARCH_QUERY_KEY);\n }\n }\n\n // Todo (13) Logging of our Parameters - to be removed\n\n Log.d(TAG, \"SITUACIJA 1: searchMode = \" + searchModeIsOn + \" ar submitted = \" + searchQueryIsSubmitted + \" pati query = \" + searchQueryToRestore);\n\n Log.d(TAG, \"My parameters are: sizeOfList = \" + cachedMovieData.size() +\n \" / page number = \" + pageNumberBeingQueried);\n String movieTitles = \"\";\n for (Movie m : cachedMovieData) {\n movieTitles += m.getTitle() + \"\\n\";\n }\n Log.d(TAG, \"My parameters are: Movies in list = \" + movieTitles);\n\n\n // --------- set up of Shared Preferences (start) ----------\n\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n // preference that defines user's preference for persisting preferences in PreferenceFragment\n persistPreferences = sharedPreferences.getBoolean(getString(R.string.pref_save_on_exit_key),\n false);\n // if this is \"fresh\" start of Activity, we reset Preferences if necessary\n if(savedInstanceState == null && !persistPreferences){\n resetSharedPreferences();\n }\n\n // register listener to update UI after the preferences are changed;\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n // initialise preference values\n getSharedPreferenceValues();\n // initialise boolean variable @preferenceValuesAreDefault\n // depending on its value, our Loader will use different query\n checkForDefaultSharedPreferences();\n\n // --------- set up of Shared Preferences (end) ----------\n\n // set the label for the Activity\n setLabelForActivity();\n\n // --------- set up of the recycler view (start) ----------\n\n /*\n * LayoutManager is responsible for measuring and positioning item views within a\n * RecyclerView. Here LayoutManager will be implemented as GridLayoutManager.\n *\n * Parameters used in GridLayoutManager constructor:\n * Context context;\n * int numberOfColumns (spanCount) - The number of columns (VERTICAL) or rows (HORIZONTAL) in the grid;\n * int orientation - HORIZONTAL or VERTICAL;\n * boolean reverseLayout - When set to true, layouts from end to start. Generally, this is only\n * true with layouts that need to support a right-to-left layout.\n */\n\n // Todo(21): NavigationDrawer follows design guidelines\n\n // calculate the number of columns (span size) to be displayed\n int numberOfColumns = AppUtilities.calculateNoOfColumns(this);\n\n // Construct the LayoutManager(Context context, int numberOfColumns, int orientation, boolean reverseLayout)\n LinearLayoutManager layoutManager\n = new GridLayoutManager(this, numberOfColumns, LinearLayoutManager.VERTICAL, false);\n\n // Set the LayoutManager to our RecyclerView\n recyclerView.setLayoutManager(layoutManager);\n\n /*\n * Use this setting to improve performance if you know that changes in content do not\n * change the child layout size in the RecyclerView\n */\n recyclerView.setHasFixedSize(true);\n\n /*\n * The MovieAdapter is responsible for linking our Movie data with the Views that\n * will end up displaying it.\n */\n movieAdapter = new MovieAdapter(this);\n\n // Set the adapter to the RecyclerView\n recyclerView.setAdapter(movieAdapter);\n\n // --------- set up of the recycler view (end) ----------\n\n // --------- set up of the endless scroll listener (start) ----------\n\n /*\n * EndlessRecyclerViewScrollListener is responsible for triggering an additional load of\n * Movie objects for display in the UI\n * */\n recyclerViewScrollListener = new EndlessRecyclerViewScrollListener(layoutManager, pageNumberBeingQueried) {\n\n // implementation of the abstract method, the one that is actually responsible for\n // triggering the additional data loading\n @Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n pageNumberBeingQueried = page;\n\n /*\n * Loader call - case 2 of 3\n * We call loader methods in case our recycler view is running out of items for display\n * */\n manageLoaders();\n }\n\n // Todo(35) is this still necessary, is it working as intended\n\n // we override another method, which will be responsible to track situations where\n // we have reached the bottom of the data list, however, there is no network connection\n // for additional data to be loaded\n @Override\n public void onScrollStateChanged(RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n\n // canScrollVertically(1) - checks that vertical scrolling is possible, where constant \"int 1\"\n // denotes bottom direction\n if (!recyclerView.canScrollVertically(1) &&\n !AppUtilities.checkNetworkConnection(getApplicationContext()) &&\n cachedMovieData.size() != 0) {\n Toast.makeText(recyclerView.getContext(), getString(R.string.tv_no_network_connection), Toast.LENGTH_SHORT).show();\n }\n }\n };\n\n recyclerView.addOnScrollListener(recyclerViewScrollListener);\n\n\n // --------- set up of the endless scroll listener (end) ----------\n\n // --------- set up of the Navigation Drawer (start) ----------\n\n // first prepare the List of NavDrawerItem objects to be used by the Navigation Drawer\n prepareNavDrawerContents();\n\n // Set the adapter for the list view of Navigation Drawer\n navDrListView.setAdapter(new NavigationDrawerAdapter(this,\n R.layout.all_movies_nav_drawer_list_one_item_view,\n navDrawerItems));\n\n // Set the click listener for the list view of Navigation Drawer\n navDrListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n // obtain the name of the clicked list view item\n String name = navDrawerItems.get(position).getListItemName();\n // call a helper method to perform a corresponding action\n performActionOnNavDrawerItem(name);\n }\n });\n\n // this will allow users to open and close the Navigation Drawer by touching the app icon\n navDrToggle = new ActionBarDrawerToggle(\n this, /* host Activity */\n navDrLayout, /* DrawerLayout object */\n R.string.nav_dr_accessibility_open_drawer, /* \"open drawer\" description */\n R.string.nav_dr_accessibility_close_drawer /* \"close drawer\" description */\n ){\n // Todo(26) add code if needed, or delete {...}\n };\n\n // Set the drawer toggle as the NavigationDrawerListener - it will allow to use an icon\n // in the ActionBar to open / close the NavigationDrawer\n navDrLayout.addDrawerListener(navDrToggle);\n\n // this tells to display the icon in the ActionBar\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setHomeButtonEnabled(true);\n\n\n // --------- set up of the Navigation Drawer (end) ----------\n\n /*\n * Loader call - case 1 of 3\n * We call loader methods in case our recycler view has no data for display\n * */\n // if we have no data to display\n if (cachedMovieData.size() == 0) {\n // Call loader methods - if there is network connection\n if (AppUtilities.checkNetworkConnection(getApplicationContext())) {\n manageLoaders();\n } else {\n // If there is no network connection - display error message in TextView\n errorMessageDisplayView.setText(R.string.tv_no_network_connection);\n errorMessageDisplayView.setVisibility(View.VISIBLE);\n }\n // if we have data to display\n } else {\n // we have cached data - provide it to our adapter\n movieAdapter.setAdapterData(cachedMovieData);\n // If there is no network connection - the user will be informed via Toast.\n // This action will be performed by the @EndlessRecyclerViewScrollListener\n }\n }",
"@Override\r\n\tpublic ArrayList<String> allMovies()\r\n\t{\r\n\t\tArrayList<String> sortedMovieTitles = new ArrayList<String>();\r\n\t\t\r\n\t\tsortedMovieTitles = movieTitles;\r\n\t\t\r\n\t\tCollections.sort(movieTitles);\r\n\t\t\r\n\t\treturn sortedMovieTitles;\r\n\t}",
"public static ArrayList<Movie> getMovieList() {\n\t\treturn movieList;\n\t}",
"List<MovieListing> searchMovieListingByFilmName(String movieName, List<MovieListing> allMoviesListing);",
"public Movie getMovie() {\n return this.movie;\n }",
"private void showMovieList(MovieResponse movieResponse) {\n setToolbarText(R.string.title_activity_list);\n showFavouriteIcon(true);\n buildList(movieResponse);\n }",
"public Movie getMovie() {\r\n\t\treturn movie;\r\n\t}",
"@GET(\"list_movies.json\")\n Call<MoviesResponse> getMoviesList(\n @Query(\"genre\") String genre,\n @Query(\"sort_by\") String sortBy,\n @Query(\"page\") int page);",
"private static void listMovies(){\n\n\t\ttry{\n\t\t\tURL url = new URL(\"http://localhost:8080/listMovies\");\n\t\t\tString rawJSONList = getHTTPResponse(url);\n\t\t\tJSONArray JSONList = new JSONArray(rawJSONList);\n\t\t\tStringBuilder list = new StringBuilder();\n\t\t\t\n\t\t\tfor (int i=0 ; i<JSONList.length() ; i++){\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tJSONObject temp = JSONList.getJSONObject(i);\n\t\t\t\tsb.append(temp.getInt(\"id\"));\n\t\t\t\tsb.append(\". \");\n\t\t\t\tsb.append(temp.getString(\"name\"));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\n\t\t\t\tlist.append(sb.toString());\n\t\t\t}\n\t\t\tSystem.out.println(list.toString());\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t}",
"@Override\n public ArrayList<Movie> loadInBackground() {\n\n\n URL movieRequestUrl = JsonUtils.createUrl(searchUrl);\n String movieSearchResults = null;\n ArrayList<Movie> movieResultData = new ArrayList<>();\n\n try {\n movieSearchResults = JsonUtils\n .getResponseFromHttpUrl(movieRequestUrl);\n movieResultData.addAll(OpenMovieJsonUtils.parseMovieJson(movieSearchResults));\n\n return movieResultData;\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n\n }",
"public List<MovieDetails> getAllFavoriteMovies() {\n SQLiteDatabase database = this.getWritableDatabase();\n List<MovieDetails> movieDetailses = new ArrayList<>();\n List<Integer> favoritesMovieId = new ArrayList<>();\n String selectQuery = \"SELECT * FROM \" + FavoriteMoviesEntry.TABLE_NAME;\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) {\n do {\n int id = getIdFromCursor(cursor);\n String selectFavoriteMovieQuery = \"SELECT * FROM \" + MoviesDetailsEntry.TABLE_NAME + \"WHERE \" + MoviesDetailsEntry._ID + \"= \" + id;\n Cursor movieCursor = database.rawQuery(selectFavoriteMovieQuery, null);\n if (movieCursor.moveToFirst()) {\n do {\n MovieDetails movieDetails = getMovieDetailsFromCursor(movieCursor);\n movieDetailses.add(movieDetails);\n } while (movieCursor.moveToNext());\n }\n } while (cursor.moveToNext());\n }\n database.close();\n\n return movieDetailses;\n }",
"public Movie getMovie() {\n return movie;\n }",
"@Override\n public List<Movie> getAllMovie() {\n return movieRepository.findAll();}",
"private void getMoviesData() {\n movieId = getIntent().getIntExtra(MOVIE_ID, 0);\n }",
"@GetMapping\n\tpublic ResponseEntity<List<Movie>> fetchAllMovies(){\n\t\treturn new ResponseEntity<List<Movie>>(movieService.listAllMovies(), HttpStatus.OK);\n\t}",
"@GET\r\n\t@Produces(MediaType.TEXT_HTML)\r\n\tpublic String getMoviesHTML() {\r\n\t\tListMovies movies = new ListMovies();\r\n\t\tmovies.addAll(TodoDao.instance.getMovies().values());\r\n\t\treturn \"\" + movies;\r\n\t}",
"@RequestMapping(method = RequestMethod.GET)\n\tpublic ResponseEntity<List<Movie>> getAllMovies(@RequestParam(name = \"title\", required = false) String title) {\n\t\tLOG.debug(\"Entering getAllMovies\");\n\t\tList<Movie> movies = null;\n\t\tif (StringUtils.isEmpty(title)) {\n\t\t\tmovies = moviesRepo.findAll();\n\t\t} else {\n\t\t\tmovies = moviesRepo.findByTitleRegex( title + \".*\");\n\t\t}\n\t\tLOG.debug(\"Movies Size {}\", movies.size());\n\t\tif (!CollectionUtils.isEmpty(movies)) {\n\t\t\treturn ResponseEntity.ok(movies);\n\t\t}\n\t\treturn ResponseEntity.notFound().build();\n\t}",
"@Override\n public void getMovieContentData() {\n Cursor movieCursor = queryMovieData();\n\n ArrayList<MovieData> movieData = new ArrayList<>();\n\n if(movieCursor != null) {\n //do stuff\n while(movieCursor.moveToNext()) {\n MovieData movie = new MovieData();\n movie.setName(movieCursor.getString(movieCursor.getColumnIndex(MovieUriContract.MovieEntry.COLUMN_NAME)));\n movie.setDate(movieCursor.getString(movieCursor.getColumnIndex(MovieUriContract.MovieEntry.COLUMN_RELEASE_DATE)));\n movie.setGenreId(movieCursor.getInt(movieCursor.getColumnIndex(MovieUriContract.MovieEntry.COLUMN_GENRE)));\n }\n movieCursor.close();\n }\n\n //query genre data next, using the GenreId in Movie Data\n for (MovieData movie : movieData) {\n Cursor genreCursor = queryGenreData(movie.getGenreId());\n\n if(genreCursor != null) {\n //do stuff\n if (genreCursor.moveToFirst()) {\n movie.setGenre(movieCursor.getString(movieCursor.getColumnIndex(MovieUriContract.GenreEntry.COLUMN_NAME)));\n }\n genreCursor.close();\n }\n }\n\n view.updateMovieDataView(movieData);\n }",
"public void searchMovieApi(String query, int pageNumber){\n movieListViewModel.searchMovieApi(query, pageNumber);\n }",
"public GetPopularMoviesResponse getPopularMovies() {\n return getPopularMovies(null, null, null);\n }",
"private void showMovies() {\n mDisplayErrorTV.setVisibility(View.INVISIBLE);\n mDisplayMoviesRV.setVisibility(View.VISIBLE);\n }",
"@Override\n protected Flowable<Resource<List<Movie>>> buildUseCaseObservable() {\n return covertObservableToFlowable(searchQuery.getQuery())\n .switchMap(new Function<String, Publisher<Resource<List<Movie>>>>() {\n @Override\n public Publisher<Resource<List<Movie>>> apply(String s) throws Exception {\n searchQuery.setStringQuery(s);\n return repository.getSearch(searchQuery)\n .map(movieApiResponse -> Resource.success(movieApiResponse.getResults()));\n }\n }).startWith(Resource.loading(\"Write something to search films\"));\n }",
"private void fetchMovieDetails() {\n Stream.of(movieListings).forEach(movieListing -> {\n Picasso.with(MoviesApplication.getApp()).load(movieListing.getPosterUrl()).fetch();\n MoviesApplication.getApp().getApiManager().getEndpoints().getMovieDetails(movieListing.getId()).enqueue(movieDetailCallback);\n MoviesApplication.getApp().getApiManager().getEndpoints().getMovieVideos(movieListing.getId()).enqueue(movieVideoCallback);\n MoviesApplication.getApp().getApiManager().getEndpoints().getMovieReviews(movieListing.getId()).enqueue(movieReviewCallback);\n });\n }",
"private static void showMovies(ArrayList<String> movies) {\n\t\tfor (String movie : movies) {\n\t\t\tSystem.out.println(movie);\n\t\t}\t\t\n\t}",
"public List<Movie> getMoviesByTag(String tag)\n\t{\n\t\tList<Movie> searchRes = new ArrayList<Movie>();\n\t\tfor(Integer key:movies.keySet()) {\n\t\t\tif(movies.get(key).tags.contains(tag)) {\n\t\t\t\tsearchRes.add(movies.get(key));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn searchRes;\n\t}",
"public ArrayList<Movie> getMovieList() {\n\t\treturn movieList;\n\t}",
"@Nullable\n Movie get(Context context, @NonNull String key) {\n return new PersistentCache<Movie>(context).get(key, Movie.class);\n }",
"public List<Movie> search(String title, Genre genre, WatchStatus status) {\n CriteriaBuilder cb = this.em.getCriteriaBuilder();\n \n // SELECT t FROM Serie s\n CriteriaQuery<Movie> query = cb.createQuery(Movie.class);\n Root<Movie> from = query.from(Movie.class);\n query.select(from);\n\n // ORDER BY dueDate, dueTime\n query.orderBy(cb.desc(from.get(\"releaseDate\")));\n \n // WHERE s.title LIKE :title\n Predicate p = cb.conjunction();\n \n if (title != null && !title.trim().isEmpty()) {\n p = cb.and(p, cb.like(from.get(\"title\"), \"%\" + title + \"%\"));\n query.where(p);\n }\n \n // WHERE s.genre = :genre\n if (genre != null) {\n p = cb.and(p, cb.isMember(genre,from.get(\"genres\")));\n query.where(p);\n }\n \n // WHERE s.status = :status\n if (status != null) {\n p = cb.and(p, cb.equal(from.get(\"status\"), status));\n query.where(p);\n }\n \n return em.createQuery(query).getResultList();\n }",
"private void showCachedMovieList() {\n String cacheData = AppPrefs.getInstance(this).getCacheData();\n showMovieList(new Gson().fromJson(cacheData, MovieResponse.class));\n }",
"public static List<Movie> extractMoviesData(String stringUrl) {\n String jsonResponse = fetchResponse(stringUrl);\n if (jsonResponse == null) {\n return null;\n }\n List<Movie> movies = new ArrayList<>();\n try {\n JSONObject baseJsonResponse = new JSONObject(jsonResponse);\n JSONArray resultsJSONArray = baseJsonResponse.getJSONArray(RESULTS_KEY);\n for (int i = 0; i < resultsJSONArray.length(); i++) {\n JSONObject currentMovie = resultsJSONArray.getJSONObject(i);\n String originalTitle = currentMovie.optString(ORIGINAL_TITLE_KEY);\n String posterPath = currentMovie.optString(POSTER_PATH_KEY);\n String overview = currentMovie.optString(OVERVIEW_KEY);\n double userRating = currentMovie.getDouble(VOTE_AVERAGE_KEY);\n String releaseDate = currentMovie.optString(RELEASE_DATE_KEY);\n int movieId = currentMovie.optInt(MOVIE_ID_KEY);\n Movie movie = new Movie(originalTitle, posterPath, overview, userRating, releaseDate, movieId);\n movies.add(movie);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return movies;\n }",
"public List<String> getMovieList(){\n Set<String> movieList= new HashSet<String>();\n List<MovieListing> showtimes= ListingManager.getShowtimes();\n for(int i=0;i<history.size();i++){\n CustomerTransaction curr= history.get(i);\n for(int j=0;j<showtimes.size(); j++){\n MovieListing show = showtimes.get(j);\n if (show.sameListing(curr.getListingID())){\n movieList.add(show.getTitle());\n\n }\n }\n }\n return new ArrayList<>(movieList);\n }",
"public Cursor getMovieDetails () {\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor = database.rawQuery(\"Select * from MovieDetails\", null);\n return cursor;\n }",
"private ArrayList<MovieItem> getFavoriteMovies(){\n //get list of favorite movies from buffer\n ArrayList<MovieItem> movies = mMovieStaff.getMovies(PosterHelper.NAME_ID_FAVORITE);\n\n //check if favorite movie list has changed\n if(mFavoriteChanged){\n //list has changed, show new movie list\n showMovieList(movies, PosterHelper.NAME_ID_FAVORITE);\n }\n\n //return movie list\n return movies;\n }",
"@NonNull\n private static MoviesViewModel obtainViewModelMovies(AppCompatActivity activity) {\n ViewModelFactory factory = ViewModelFactory.getInstance(activity.getApplication());\n\n return ViewModelProviders.of(activity, factory).get(MoviesViewModel.class);\n }",
"@Override\n public <K extends Comparable<K>> Movie[] searchContains(String title)\n {\n if(title == null)\n return null;\n\n Movie[] moviesWithTitle = new Movie[this.movies.length];\n\n for(int i = 0; i < this.movies.length; i++)\n {\n if(this.movies.get(i) != null)\n if(((this.movies.get(i)).getTitle()).contains(title) == true)\n moviesWithTitle[i] = this.movies.get(i);\n }\n\n return moviesWithTitle;\n }",
"public Cursor getMoviesInList(int id) {\n String selection = ColumnMoviesList.ID_LIST + \" = ?\";\n String[] selectionArgs = {Integer.toString(id)};\n String columns[] = new String[]{ColumnMoviesList.ID_MOVIE};\n return getAnyRow(MOVIESLIST_TABLE_NAME, columns, selection, selectionArgs, null, null, null);\n }",
"public void search(String movie) {\r\n\t\tlong timestamp = System.currentTimeMillis();\r\n\t\tString searchString = \"0047 SER \" + ip + \" \" + port + \" \" + timestamp + \" \" + movie + \" 0\";\r\n\r\n\t\tint forwardMsgCount = 0;\r\n\t\t// send query to all peers\r\n\t\tfor (NodeInfo info : peerList) {\r\n\t\t\tsend(searchString, info.getIp(), info.getPort());\r\n\t\t\tforwardMsgCount++;\r\n\t\t}\r\n\r\n\t\tList<String> results = movieList.search(movie);\r\n\r\n\t\tString resultString = \"0114 SEROK \" + results.size() + \" \" + ip + \" \" + port + \" \" + 0 + \" \" + timestamp;\r\n\t\tfor (int i = 0; i < results.size(); i++) {\r\n\t\t\tresultString += \" \" + results.get(i);\r\n\t\t}\r\n\t\tonRequest(new Request(ip, port, resultString));\r\n\r\n\t\tSystem.out.println(\"Forwarded messages for query \" + \"'\" + searchString + \"' \" + forwardMsgCount);\r\n\t\tapp.printInfo(\"Forwarded messages for query \" + \"'\" + searchString + \"' \" + forwardMsgCount);\r\n\t}",
"@Override public void refresh() {\n if (search == null) {\n movies = new ArrayList<Movie>(getService().getMovies());\n }\n \n if (movies == null) {\n movies = new ArrayList<Movie>();\n }\n // sort movies according to the default sort preference.\n final Comparator<Movie> comparator = MOVIE_ORDER.get(getService().getAllMoviesSelectedSortIndex());\n if (movies != null && comparator != null) {\n Collections.sort(movies, comparator);\n }\n super.refresh();\n }",
"public Movie getMovie() { return movie; }",
"public Movie findMovie(String name){\n\n Movie find = null ;\n\n for (Movie movie :movies) {\n\n if(movie.getTitle().equals(name)){\n\n find = movie;\n\n }\n\n }\n\n return find;\n\n }",
"@Override\n public int getItemCount() {\n return movies.size();\n }",
"@Override\n public int getItemCount() {\n return movies.size();\n }",
"@Override\n public int getItemCount() {\n return movies.size();\n }",
"@Override\n public int getItemCount() {\n return movies.size();\n }",
"@GET(\"movie/top_rated\")\n Call<MovieResponse>getTopRatedMovies(@Query(\"api_key\") String apiKey);",
"private static void showMovieDetails(){\n\t\t\n\t\ttry{\n\t\t\tURL url = new URL(\"http://localhost:8080/getSize\");\n\t\t\tString listSize = getHTTPResponse(url);\n\t\t\tint size = Integer.parseInt(listSize);\n\t\t\t\n\t\t\tif (size==0)\n\t\t\t\tSystem.out.println(\"There are no movies on the list\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Select movie id 1-\"+size);\n\t\t\t\n\t\t\tint choice = Integer.parseInt(scanner.next());\n\t\t\t\n\t\t\turl = new URL(\"http://localhost:8080/getMovieDetails?id=\"+choice);\n\t\t\tString rawJSONObject = getHTTPResponse(url);\n\t\t\tJSONObject movieDetails = new JSONObject(rawJSONObject);\n\t\t\tStringBuilder details = new StringBuilder();\n\t\t\t\n\t\t\tdetails.append(\"ID: \");\n\t\t\tdetails.append(movieDetails.getInt(\"id\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\tdetails.append(\"Name: \");\n\t\t\tdetails.append(movieDetails.getString(\"name\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\tdetails.append(\"Year: \");\n\t\t\tdetails.append(movieDetails.getInt(\"year\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\tdetails.append(\"Directed by: \");\n\t\t\tdetails.append(movieDetails.getString(\"director\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\tdetails.append(\"Country: \");\n\t\t\tdetails.append(movieDetails.getString(\"country\"));\n\t\t\tdetails.append(\"\\n\");\n\t\t\t\n\t\t\tSystem.out.println(details.toString());\t\t\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"Error - wrong input or service down\");\n\t\t}\n\t\t\n\t}",
"public GetTopRatedMoviesResponse getTopRatedMovies() {\n return getTopRatedMovies(null, null, null);\n }",
"private void loadPopularMovies() {\n\n try {\n\n if (API_KEY.isEmpty()) {\n Toast.makeText(getApplicationContext(), \"Invalid API key\", Toast.LENGTH_SHORT).show();\n pd.dismiss();\n return;\n\n }\n Client Client = new Client();\n MovieService apiMovieService =\n Client.getClient().create(MovieService.class);\n Call<MovieResult> call = apiMovieService.getPopularMovies(API_KEY);\n call.enqueue(new Callback<MovieResult>() {\n @Override\n public void onResponse(Call<MovieResult> call, Response<MovieResult> response) {\n List<Movie> movies = response.body().getResults();\n recyclerView.setAdapter(new MovieAdapter(getApplicationContext(), movies));\n recyclerView.smoothScrollToPosition(0);\n\n\n }\n\n @Override\n public void onFailure(Call<MovieResult> call, Throwable t) {\n Log.d(\"Error\", t.getMessage());\n Toast.makeText(MainActivity.this, \"Error fetching data\", Toast.LENGTH_SHORT).show();\n }\n });\n\n\n } catch (Exception e) {\n Log.d(\"Error\", e.getMessage());\n Toast.makeText(this, e.toString(), Toast.LENGTH_SHORT).show();\n\n }\n\n }",
"@GetMapping(\"/getShows/{movieId}\")\r\n\tResponseEntity<List<Show>> findShows(@PathVariable(\"movieId\") int movieId){\r\n\t\tList<Show> selectedShows = new ArrayList<Show>();\r\n\t\tString movieName=\"\";\r\n\t\tList<Movie> selectedMovies = getMovies();\r\n\t\tfor(Movie movie:selectedMovies){\r\n\t\t\tif(movie.getMovieId()==movieId){\r\n\t\t\t\tmovieName=movie.getMovieName();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tList<Show> showList = getShows();\r\n\t\tfor (Show show : showList) {\r\n\t\t\tif(show.getMovieName().equals(movieName)) {\r\n\t\t\t\tselectedShows.add(show);\r\n\t\t\t}\r\n\t\t}\r\n\t\tResponseEntity<List<Show>> response = new ResponseEntity<List<Show>>(selectedShows,HttpStatus.OK);\r\n\t\treturn response;\r\n\t}"
] | [
"0.6908991",
"0.6686459",
"0.6587199",
"0.6513868",
"0.6484804",
"0.6408744",
"0.6401173",
"0.63599205",
"0.63556963",
"0.6330076",
"0.6310511",
"0.630131",
"0.62762076",
"0.6231907",
"0.6217187",
"0.6191818",
"0.6169941",
"0.6148466",
"0.6148382",
"0.61217475",
"0.61011755",
"0.60739607",
"0.6049085",
"0.6016696",
"0.59806675",
"0.5965111",
"0.5943417",
"0.5895252",
"0.58921576",
"0.58747923",
"0.5873724",
"0.5869839",
"0.58696765",
"0.5853672",
"0.58470476",
"0.5843058",
"0.5770666",
"0.57579803",
"0.57550997",
"0.575142",
"0.575097",
"0.5748298",
"0.57436186",
"0.5740604",
"0.5739411",
"0.57265365",
"0.5725867",
"0.5703758",
"0.5691717",
"0.56744003",
"0.56681037",
"0.56672376",
"0.5661453",
"0.56604946",
"0.5649097",
"0.56358546",
"0.56185055",
"0.56000644",
"0.5590473",
"0.5580585",
"0.5567608",
"0.55614793",
"0.5551433",
"0.55295175",
"0.55283207",
"0.55231357",
"0.5510865",
"0.5508299",
"0.54915106",
"0.5490982",
"0.5487077",
"0.54818004",
"0.5461334",
"0.5457781",
"0.54573053",
"0.54550964",
"0.54545",
"0.5451352",
"0.5449214",
"0.54447603",
"0.54286855",
"0.5427758",
"0.5425217",
"0.5423886",
"0.5423653",
"0.5421058",
"0.5417399",
"0.5415417",
"0.54030204",
"0.54015785",
"0.53922087",
"0.53864306",
"0.53864306",
"0.53864306",
"0.53864306",
"0.53832185",
"0.5379421",
"0.53680044",
"0.5366077",
"0.5364989"
] | 0.6539529 | 3 |
TODO Autogenerated method stub | public static void main(String[] args) {
int[] intArray = new int[3];
intArray[0] = 52;
intArray[1] = 13;
//intArray[2] = 41; 초기화 하지 않으면 0으로 세팅(정수형)
//실수형, boolean, char 기본값 알아보겟음
System.out.println("=============");
System.out.println(intArray.length);
System.out.println("=============");
for(int i=0; i<intArray.length; i++) {
System.out.println(intArray[i]);
}
System.out.println("=============");
//ArrayIndexOutOfBoundsException --> 없는 방을 사용하려고 할때
for(int i=0; i<intArray.length; i++) {
System.out.println(intArray[i]);
}
} | {
"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 |
Factory for a fresh StringTemplate instance that can be used in the local thread of execution. | public interface StringTemplateFactory {
/**
* Get a fresh StringTemplate instance that can be safely used in the current thread of execution.
* StringTemplates should not be shared between threads.
*
* @param templateName
* name of the template.
* @param locale
* for which template is to be retrieved.
* @param templateType
* templateType
* @param isEmailManagement
* wheather email maangement is present or not for the company.
* @return the {@link StringTemplate}
*/
StringTemplate getStringTemplate(String templateName, String locale, String companyId,
String templateType, boolean isEmailManagement);
/**
* localizedTemplateString method will return the localized template string for the passed locale.
*
* @param templateName
* name of the template.
* @return the template string.
*/
String localizedTemplateString(String templateName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ST createStringTemplateInternally(CompiledST impl) {\n\t\tST st = createStringTemplate(impl);\n\t\tif (trackCreationEvents && st.debugState != null) {\n\t\t\tst.debugState.newSTEvent = null; // toss it out\n\t\t}\n\t\treturn st;\n\t}",
"StringTemplate createStringTemplate();",
"public ST createSingleton(Token templateToken) {\n\t\tString template;\n\t\tif (templateToken.getType() == GroupParser.BIGSTRING) {\n\t\t\ttemplate = Misc.strip(templateToken.getText(), 2);\n\t\t} else {\n\t\t\ttemplate = Misc.strip(templateToken.getText(), 1);\n\t\t}\n\t\tCompiledST impl = compile(getFileName(), null, null, template, templateToken);\n\t\tST st = createStringTemplateInternally(impl);\n\t\tst.groupThatCreatedThisInstance = this;\n\t\tst.impl.setHasFormalArgs(false);\n\t\tst.impl.setName(ST.UNKNOWN_NAME);\n\t\tst.impl.defineImplicitlyDefinedTemplates(this);\n\t\treturn st;\n\t}",
"private Template makeTemplate() {\n return new Template(\"spamHardGenerated\", \"SPAM HARD\\n$$template_EOO\\n\" + sendedWorld.getText() + \"\\n$$template_EOF\\n$$var_name osef\\n$$var_surname osef\");\n }",
"String template();",
"public Function2<Object, TemplateOptions, String> template(String templateString);",
"public TemplateFactoryImpl()\n {\n super();\n }",
"String getTemplate();",
"private Template() {\r\n\r\n }",
"public interface ElasticsearchTemplate {\n\n /**\n * Logback logger.\n */\n final static Logger logger = LoggerFactory.getLogger(ElasticsearchTemplate.class);\n\n /**\n * Constant prefix.\n */\n final String PREFIX = \"_\";\n\n /**\n * Constant default doc type for default _doc.\n */\n final String DEFAULT_DOC = \"_doc\";\n\n /**\n * Constant retry on conflict for default three times.\n */\n final Integer RETRY_ON_CONFLICT = 3;\n\n /**\n * Constant elasticsearch template doc as upsert for default true.\n */\n final Boolean DOC_AS_UPSERT = true;\n\n /**\n * Constant elasticsearch template doc basic system properties.\n */\n final String [] templateProperties = {\n \"index\", \"id\", \"type\"\n };\n\n /**\n * Judge current elasticsearch template whether exists.\n * @return no exists.\n */\n default Boolean isEmpty(){\n return builder().length() == 0;\n }\n\n ThreadLocal<StringBuilder> templateBuilder = new ThreadLocal<>();\n\n /**\n * Build or Reset current elasticsearch template.\n */\n default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }\n\n /**\n * Get current elasticsearch template.\n * @return current elasticsearch template.\n */\n default StringBuilder builder() {\n return templateBuilder.get();\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param templateProperty Current elasticsearch template property.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param indexName Current elasticsearch template property.\n * @param docId Current elasticsearch template doc id.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, String indexName, String docId){\n builder().append(String.format(\"{\\\"%s\\\":{\\\"_index\\\":\\\"%s\\\",\\\"_id\\\":\\\"%s\\\",\\\"_type\\\":\\\"_doc\\\",\\\"_retry_on_conflict\\\":%d}}\",\n indexType.getDisplayName(), indexName, docId, RETRY_ON_CONFLICT));\n }\n\n /**\n * Append property of Current Elasticsearch index to String builder.\n * @param propertyName property Name.\n * @param propertyValue property Value.\n */\n default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }\n\n /**\n * Append current template properties of Current Elasticsearch index to String builder.\n * @param cursor a query cursor.\n * @param templateProperties current template properties.\n */\n default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }\n\n /**\n * According query cursor and index name and template properties to created a elasticsearch template.\n * @param cursor a query cursor.\n * @param indexName Current index name.\n * @param templateProperties Current template properties.\n * @throws SQLException Throw SQL exception.\n */\n void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;\n\n}",
"private TemplateReader() {\n }",
"private TemplateBasedScriptBuilder(String scriptTemplate) {\n if (!scriptTemplate.contains(BODY_PLACEHOLDER)) {\n throw new CitrusRuntimeException(\"Invalid script template - please define '\" + \n BODY_PLACEHOLDER + \"' placeholder where your code comes in\");\n }\n \n scriptHead = scriptTemplate.substring(0, scriptTemplate.indexOf(BODY_PLACEHOLDER));\n scriptTail = scriptTemplate.substring((scriptTemplate.indexOf(BODY_PLACEHOLDER) + BODY_PLACEHOLDER.length()));\n }",
"public void createTemp(String TemplateType){\r\n ts.create(TemplateType);\r\n }",
"public TrexTemplateBuilder template() {\r\n\t\treturn new TrexTemplateBuilder(new TrexConfiguration(interpreter, parser, additionalModifications));\r\n\t}",
"public Template(String html) {\r\n\t\tjsObj = create(html.replaceAll(\"'\", \"\\\"\"));\r\n\t\tthis.html = html;\r\n\t}",
"protected static final Templates newTemplate(final StreamSource source) {\r\n try {\r\n return getTransformerFactory().newTemplates(source);\r\n } catch (final TransformerConfigurationException tce) {\r\n logB.error(\"XmlFactory.newTransformer : failure on creating new template : \" + source, tce);\r\n }\r\n\r\n return null;\r\n }",
"private static Template template(Configuration configuration, TemplateSource templateSource) {\n switch (templateSource.getOrigin()) {\n case TEMPLATE_LOADER:\n return fromTemplatePath(configuration, templateSource);\n case TEMPLATE_CODE:\n return fromTemplateCode(configuration, templateSource);\n default:\n throw new IllegalArgumentException(\"Don't know how to create a template: \" + templateSource.getOrigin());\n }\n }",
"private static StringRedisTemplate getRedisTemplate() {\n StringRedisTemplate redisTemplate = context.getBean(StringRedisTemplate.class);\n return redisTemplate;\n }",
"String localizedTemplateString(String templateName);",
"public static TemplateBasedScriptBuilder fromTemplateScript(String scriptTemplate) {\n return new TemplateBasedScriptBuilder(scriptTemplate);\n }",
"private TemplateFactory(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }",
"public interface TemplateEngine {\n\n String prepareMessage(Template template, Client client);\n}",
"private TemplateService() {\n }",
"public ResolvedTemplate(Template template){\n\t\tthis.template = template;\n\t\tthis.postParseReplacement = \"\";\n\t\tcheckPreParseReplacement();\n\t}",
"public synchronized Literal createLiteral(String str) {\n\n // check whether we have it in the registry\n Literal r = (Literal)lmap.get(str);\n if(r == null) {\n r = new LiteralImpl(/*getUnusedNodeID(),*/ str);\n lmap.put(str, r);\n }\n return r;\n }",
"public abstract String construct();",
"public StringTemplateElement()\n {\n super(String.class);\n }",
"public static Factory factory() {\n return text::new;\n }",
"StringContent createStringContent();",
"public ModelMessage addStringTemplate(StringTemplate template) {\n super.addStringTemplate(template);\n return this;\n }",
"public Name createTemporaryName() {\n return Name.makeFresh(\"t\");\n }",
"public LitTemplateInitializer(LitTemplate template, VaadinService service) {\n this.template = template;\n\n boolean productionMode = service.getDeploymentConfiguration()\n .isProductionMode();\n\n Class<? extends LitTemplate> templateClass = template.getClass();\n\n ParserData data = null;\n if (productionMode) {\n data = CACHE.get(templateClass);\n }\n if (data == null) {\n data = new LitTemplateDataAnalyzer(templateClass).parseTemplate();\n }\n parserData = data;\n }",
"@Override\n public String doMapping(String template)\n {\n log.debug(\"doMapping({})\", template);\n // Copy our elements into an array\n List<String> components\n = new ArrayList<>(Arrays.asList(StringUtils.split(\n template,\n String.valueOf(TemplateService.TEMPLATE_PARTS_SEPARATOR))));\n int componentSize = components.size() - 1 ;\n\n // This method never gets an empty string passed.\n // So this is never < 0\n String templateName = components.get(componentSize);\n components.remove(componentSize--);\n\n log.debug(\"templateName is {}\", templateName);\n\n // Last element decides, which template Service to use...\n TemplateService templateService = (TemplateService)TurbineServices.getInstance().getService(TemplateService.SERVICE_NAME);\n TemplateEngineService tes = templateService.getTemplateEngineService(templateName);\n\n if (tes == null)\n {\n return null;\n }\n\n String defaultName = \"Default.vm\";\n\n // This is an optimization. If the name we're looking for is\n // already the default name for the template, don't do a \"first run\"\n // which looks for an exact match.\n boolean firstRun = !templateName.equals(defaultName);\n\n for(;;)\n {\n String templatePackage = StringUtils.join(components.iterator(), String.valueOf(separator));\n\n log.debug(\"templatePackage is now: {}\", templatePackage);\n\n StringBuilder testName = new StringBuilder();\n\n if (!components.isEmpty())\n {\n testName.append(templatePackage);\n testName.append(separator);\n }\n\n testName.append((firstRun)\n ? templateName\n : defaultName);\n\n // But the Templating service must look for the name with prefix\n StringBuilder templatePath = new StringBuilder();\n if (StringUtils.isNotEmpty(prefix))\n {\n templatePath.append(prefix);\n templatePath.append(separator);\n }\n templatePath.append(testName);\n\n log.debug(\"Looking for {}\", templatePath);\n\n if (tes.templateExists(templatePath.toString()))\n {\n log.debug(\"Found it, returning {}\", testName);\n return testName.toString();\n }\n\n if (firstRun)\n {\n firstRun = false;\n }\n else\n {\n // We run this loop only two times. The\n // first time with the 'real' name and the\n // second time with \"Default\". The second time\n // we will end up here and break the for(;;) loop.\n break;\n }\n }\n\n log.debug(\"Returning default\");\n return getDefaultName(template);\n }",
"static boolean stringTemplate(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringTemplate\")) return false;\n if (!nextTokenIs(b, OPEN_QUOTE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeToken(b, OPEN_QUOTE);\n p = r; // pin = 1\n r = r && report_error_(b, stringTemplate_1(b, l + 1));\n r = p && consumeToken(b, CLOSING_QUOTE) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"default StringBuilder builder() {\n return templateBuilder.get();\n }",
"public String processTemplate(String name, String templateString, Object context)\r\n\t{\r\n\t\treturn freeMarkerEngine.processTemplate(name, templateString, context);\r\n\t}",
"public interface TemplateEngineService {\n\n /**\n * Get the EngineFactory for the template engine name given.\n * \n * @param name\n * of the TemplateEngine to be retrieved.\n * @return TemplateEngine for the given engine name or null for an unknown\n * engine name.\n */\n public TemplateEngine getEngine( String name );\n\n /**\n * Gets the collection with all available template engines.\n * \n * @return A collection of available template engines. If there are no\n * template engines availabel the collection will be empty.\n */\n public Collection<TemplateEngine> getEngines();\n\n /**\n * Convenience method that immediately creates a Template based on the actual\n * template file/reader. To accomplish this the TemplateEngine is determined\n * by the contents of the template file/reader. That particular template\n * engine is used to create the Template.\n * \n * TODO: describe shebang\n * \n * @param reader\n * The reader to be used for the Template\n * @return A valid Template object for the given reader.\n * @throws IOException\n * when using the reader fails\n * @throws TemplateCompilationException\n * when compiling the template fails.\n * @throws MissingShebangException\n * when the template lacks a shebang.\n * @throws UnknownEngineException\n * when the shebang refers to an engine that is not known to the\n * engine factory.\n */\n public Template getTemplate( Reader reader ) throws IOException, TemplateCompilationException,\n MissingShebangException, UnknownEngineException;\n\n}",
"public static TemplateFactory init()\n {\n try\n {\n TemplateFactory theTemplateFactory = (TemplateFactory)EPackage.Registry.INSTANCE.getEFactory(TemplatePackage.eNS_URI);\n if (theTemplateFactory != null)\n {\n return theTemplateFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new TemplateFactoryImpl();\n }",
"public Template(String... htmlfrags) {\r\n\t\tString htmlfrag = \"\";\r\n\t\tfor (int i = 0; i < htmlfrags.length; i++) {\r\n\t\t\thtmlfrag += htmlfrags[i];\r\n\t\t}\r\n\t\thtml = htmlfrag.replaceAll(\"'\", \"\\\"\");\r\n\t\tjsObj = create(html);\r\n\t}",
"public static XMLStringWriter create() {\r\n return new XMLStringWriter(new StringWriter());\r\n }",
"String getTemplateContent(){\r\n \t\tStringBuffer templateBuffer = new StringBuffer();\r\n \t\tfor(String templatePart:templateParts){\r\n \t\t\ttemplateBuffer.append(templatePart);\r\n \t\t}\r\n \t\treturn templateBuffer.toString();\r\n \t}",
"public TemplateHelper() {\r\t\tsuper();\r\t}",
"public static String getTemplate(String template) {\n return templates.get(template);\n }",
"private Templates load(URL fileSource) throws Exception {\n return m_factory.newTemplates(new StreamSource(fileSource.openStream()));\n }",
"@Override\n protected void initializeImpl() {\n // init templates map\n this.httpRequestTemplateMap = new HashMap<String, String>();\n\n String[] templateNames = new String[] {\n FaxJob2HTTPRequestConverterConfigurationConstants.SUBMIT_FAX_JOB_TEMPLATE_PROPERTY_KEY.toString(),\n FaxJob2HTTPRequestConverterConfigurationConstants.SUSPEND_FAX_JOB_TEMPLATE_PROPERTY_KEY.toString(),\n FaxJob2HTTPRequestConverterConfigurationConstants.RESUME_FAX_JOB_TEMPLATE_PROPERTY_KEY.toString(),\n FaxJob2HTTPRequestConverterConfigurationConstants.CANCEL_FAX_JOB_TEMPLATE_PROPERTY_KEY.toString(),\n FaxJob2HTTPRequestConverterConfigurationConstants.GET_FAX_JOB_STATUS_TEMPLATE_PROPERTY_KEY.toString() };\n\n // get templates amount\n int amount = templateNames.length;\n\n // get template encoding value\n String encoding = this.getConfigurationValue(\n FaxJob2HTTPRequestConverterConfigurationConstants.TEMPLATE_ENCODING_PROPERTY_KEY);\n\n String templateName = null;\n String urlStr = null;\n URL url = null;\n String template = null;\n for (int index = 0; index < amount; index++) {\n // get next element\n templateName = templateNames[index];\n\n // get URL string\n urlStr = this.getConfigurationValue(templateName);\n\n if (urlStr != null) {\n try {\n // create URL\n url = new URL(urlStr);\n\n // read template\n InputStream stream = url.openStream();\n Reader reader = IOHelper.createReader(stream, encoding);\n template = IOHelper.readTextStream(reader);\n\n // cache template\n this.httpRequestTemplateMap.put(templateName, template);\n } catch (Throwable throwable) {\n throw new FaxException(\"Unable to load template for URL: \" + urlStr, throwable);\n }\n }\n }\n }",
"private TemplateManagerHelper() {\n\n }",
"public Builder setTemplateId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n templateId_ = value;\n onChanged();\n return this;\n }",
"public ClassTemplate() {\n\t}",
"public StringBuffer creat(String text)\r\n {\r\n StringBuffer sbuff= new StringBuffer( text);\r\n return sbuff;\r\n }",
"@Test\n public void testEmptyTemplate() {\n util.fillTemplate(\"test.template.empty\", \"no_arg\", null);\n }",
"public String getRandomString(String template){\n reporter.info(\"Get random string for template: \"+ template);\n return RandomDataGenerator.getRandomField(template,RandomDataGenerator.DEFAULT_SEPARATOR);\n //return DataGenerator.getString(template);\n }",
"public ModelMessage addStringTemplate(String key, StringTemplate template) {\n super.addStringTemplate(key, template);\n return this;\n }",
"@Override\n public String createString() {\n return null;\n }",
"private String loadTemplate(String fileName)\n throws IOException, URISyntaxException\n {\n File file = new File(resolveResourcePath(this.TEMPLATE_PATH + fileName));\n BufferedReader reader = new BufferedReader(new FileReader(file));\n \n StringBuilder builder = new StringBuilder();\n String str = reader.readLine();\n while (str != null)\n {\n builder.append(str);\n str = reader.readLine();\n }\n return builder.toString();\n }",
"private static File generateTemplateFile(String templateFilename) {\n\t\treturn new File(templateFilename);\n\t}",
"public String generateFromContext(Map<String, Object> mailContext, String template);",
"private void initializeTemplate(StatefulKnowledgeSession session) throws Exception {\n CamelContext context = configure(session);\n this.template = context.createProducerTemplate();\n context.start();\n }",
"TemplatePreview generateTemplatePreview(String templateId, Map<String, String> personalisation) throws NotificationClientException;",
"private static boolean stringTemplate_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringTemplate_1_0\")) return false;\n boolean r;\n r = consumeToken(b, REGULAR_STRING_PART);\n if (!r) r = shortTemplateEntry(b, l + 1);\n if (!r) r = longTemplateEntry(b, l + 1);\n return r;\n }",
"public String getTemplateName()\n {\n return MY_TEMPLATE;\n }",
"public Template(String name) throws IOException, TemplateException, JDOMException {\n this(Assets.loadTemplate(name));\n }",
"private MustacheFactory getFactory()\n {\n MustacheFactory factory;\n\n if (Stage.DEVELOPMENT == Stage.current())\n {\n\n // disable caching for development\n factory = new ServletMustacheFactory(servletContext);\n }\n else\n {\n factory = this.factory;\n }\n\n return factory;\n }",
"public static ConceptTemplate getInstance(){\n\t\tif (instance == null){\n\t\t\tinstance = new ConceptTemplate(\"src/main/resources/conceptMapping.csv\");\n\t\t}\n\t\treturn instance;\n\t}",
"private String createTemplateServerRequest(String servletPath,String templateName) {\n String pathInfo = servletPath.substring(servletPath.indexOf(\"/\",TEMPLATE_LOAD_PROTOCOL.length()));\n if (templateName != null) { \n pathInfo = pathInfo + templateName;\n }\n return pathInfo;\n }",
"private static FreeMarkerEngine createEngine() {\n Configuration config = new Configuration();\n File templates = new File(\"src/main/resources/spark/template/freemarker\");\n try {\n config.setDirectoryForTemplateLoading(templates);\n } catch (IOException ioe) {\n System.out.printf(\"ERROR: Unable use %s for template loading.%n\", templates);\n System.exit(1);\n }\n return new FreeMarkerEngine(config);\n }",
"StringExpression createStringExpression();",
"public static native Template createTemplate(DomConfig config) /*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar tpl = $wnd.Ext.DomHelper.createTemplate(configJS);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.core.Template::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(tpl);\r\n\t}-*/;",
"TemplateParameter createTemplateParameter();",
"public static String replacePlaceHolderOfTemplate(String templateString, String... arguments) {\n\t\tif (AppUtils.isBlank(arguments)) {\n\t\t\treturn null;\n\t\t}\n\t\tStringBuilder result = new StringBuilder(templateString);\n\t\tfor (int i = 0; i < arguments.length; i++) {\n\t\t\tStringConverter.replacePlaceHolderOfTemplate(result, \"{\" + i + \"}\", arguments[i]);\n\t\t}\n\t\treturn result.toString();\n\t}",
"private native String getTemplate()/*-{\r\n\t\t\t\treturn ['<tpl for=\".\">', \r\n\t\t\t '<div class=\"x-customer-item\">', \r\n\t\t\t\t '<div class=\"name\">{name}</div>', \r\n\t\t\t\t '<div class=\"email\">E-mail:{email}</div>', \r\n\t\t\t\t '<div class=\"purchases\">Purchases:{purchases}</div>', \r\n\t\t\t '</div>', \r\n\t\t\t '</tpl>', \r\n\t\t\t ''].join(\"\");\r\n\t\t\t}-*/;",
"public interface TempFileManagerFactory {\n\n\t\tpublic TempFileManager create();\n\t}",
"public static TemplatePushRequest newRequest() {\n return new TemplatePushRequest();\n }",
"protected abstract String getTemplateFilename();",
"private HttpClient getTemplateServerClient(String remoteSource) throws IOException {\n\n SocketFactory factory = (SocketFactory)mSocketFactories.get(remoteSource);\n\n if (factory == null) {\n\n int port = 80;\n String host = remoteSource.substring(TEMPLATE_LOAD_PROTOCOL.length());\n\n int portIndex = host.indexOf(\"/\");\n \n if (portIndex >= 0) {\n host = host.substring(0,portIndex); \n }\n String hostPort = host; \n portIndex = host.indexOf(\":\");\n if (portIndex >= 0) {\n try {\n port = Integer.parseInt(host.substring(portIndex+1));\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Invalid port number specified\");\n }\n host = host.substring(0,portIndex);\n }\n factory = new PooledSocketFactory(new PlainSocketFactory(InetAddress.getByName(host), \n port, 5000));\n \n if (factory != null) {\n mSocketFactories.put(hostPort, factory);\n }\n }\n return new HttpClient(factory);\n }",
"PTString() \n {\n _str = \"\";\n }",
"public static CustomFieldStringTypeBuilder of(final CustomFieldStringType template) {\n CustomFieldStringTypeBuilder builder = new CustomFieldStringTypeBuilder();\n return builder;\n }",
"Expression compileTemplateFun(){\r\n\t\tTerm t = createFunction(createQName(FUN_TEMPLATE_CONCAT));\r\n\r\n\t\tif (template != null){\r\n\t\t\tif (template.size() == 1){\r\n\t\t\t\treturn compileTemplate(template.get(0));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfor (Expression exp : template){ \r\n\t\t\t\t\texp = compileTemplate(exp);\r\n\t\t\t\t\tt.add(exp); \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn t;\r\n\t}",
"<C> StringLiteralExp<C> createStringLiteralExp();",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclTemplate.cpp\", line = 955,\n FQN=\"clang::VarTemplateDecl::CreateDeserialized\", NM=\"_ZN5clang15VarTemplateDecl18CreateDeserializedERNS_10ASTContextEj\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclTemplate.cpp -nm=_ZN5clang15VarTemplateDecl18CreateDeserializedERNS_10ASTContextEj\")\n //</editor-fold>\n public static VarTemplateDecl /*P*/ CreateDeserialized(final ASTContext /*&*/ C, \n /*uint*/int ID) {\n return /*NEW_EXPR [Decl::new]*//*new (C, ID)*/ Decl.$new(C, ID, (type$ptr<?> Mem)->{\n return new VarTemplateDecl(C, (DeclContext /*P*/ )null, new SourceLocation(), \n new DeclarationName(), (TemplateParameterList /*P*/ )null, (NamedDecl /*P*/ )null);\n });\n }",
"protected BeautiSubTemplate getStartTemplate() {\n\t\treturn template.get();\n\t}",
"@LoadBalanced\n\t @Bean\n\t public RestTemplate makeTemp(RestTemplateBuilder builder) {\n\t\t\n\t\t return builder.build();\n\t\t \n\t }",
"StringConstant createStringConstant();",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclTemplate.cpp\", line = 948,\n FQN=\"clang::VarTemplateDecl::Create\", NM=\"_ZN5clang15VarTemplateDecl6CreateERNS_10ASTContextEPNS_11DeclContextENS_14SourceLocationENS_15DeclarationNameEPNS_21TemplateParameterListEPNS_7VarDeclE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclTemplate.cpp -nm=_ZN5clang15VarTemplateDecl6CreateERNS_10ASTContextEPNS_11DeclContextENS_14SourceLocationENS_15DeclarationNameEPNS_21TemplateParameterListEPNS_7VarDeclE\")\n //</editor-fold>\n public static VarTemplateDecl /*P*/ Create(final ASTContext /*&*/ C, DeclContext /*P*/ DC, \n SourceLocation L, DeclarationName Name, \n TemplateParameterList /*P*/ Params, \n VarDecl /*P*/ Decl) {\n return /*NEW_EXPR [Decl::new]*//*new (C, DC)*/ Decl.$new(C, DC, (type$ptr<?> Mem)->{\n return new VarTemplateDecl(C, DC, new SourceLocation(L), new DeclarationName(Name), Params, Decl);\n });\n }",
"protected abstract String getTemplateName();",
"private TemplateLiteralExpressionTree parseTemplateLiteral(@Nullable ParseTree operand) {\n SourcePosition start = operand == null ? getTreeStartLocation() : operand.location.start;\n Token token = nextToken();\n if (!(token instanceof TemplateLiteralToken)) {\n reportError(token, \"Unexpected template literal token %s.\", token.type.toString());\n }\n boolean isTaggedTemplate = operand != null;\n TemplateLiteralToken templateToken = (TemplateLiteralToken) token;\n if (!isTaggedTemplate) {\n reportTemplateErrorIfPresent(templateToken);\n }\n ImmutableList.Builder<ParseTree> elements = ImmutableList.builder();\n elements.add(new TemplateLiteralPortionTree(templateToken.location, templateToken));\n if (templateToken.type == TokenType.NO_SUBSTITUTION_TEMPLATE) {\n return new TemplateLiteralExpressionTree(getTreeLocation(start), operand, elements.build());\n }\n\n // `abc${\n ParseTree expression = parseExpression();\n elements.add(new TemplateSubstitutionTree(expression.location, expression));\n while (!errorReporter.hadError()) {\n templateToken = nextTemplateLiteralToken();\n if (templateToken.type == TokenType.ERROR || templateToken.type == TokenType.END_OF_FILE) {\n break;\n }\n if (!isTaggedTemplate) {\n reportTemplateErrorIfPresent(templateToken);\n }\n elements.add(new TemplateLiteralPortionTree(templateToken.location, templateToken));\n if (templateToken.type == TokenType.TEMPLATE_TAIL) {\n break;\n }\n\n expression = parseExpression();\n elements.add(new TemplateSubstitutionTree(expression.location, expression));\n }\n\n return new TemplateLiteralExpressionTree(getTreeLocation(start), operand, elements.build());\n }",
"public static String create()\n\t{\n\t\tfinal byte[] bytes = getTLS().compute();\n\n\t\treturn new String(B64Code.encode(bytes));\n\t}",
"private static boolean stringTemplate_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringTemplate_1\")) return false;\n while (true) {\n int c = current_position_(b);\n if (!stringTemplate_1_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"stringTemplate_1\", c)) break;\n }\n return true;\n }",
"@Override\n public Integer call() {\n if (properties != null && !properties.isEmpty()) {\n System.getProperties().putAll(properties);\n }\n\n final List<File> templateDirectories = getTemplateDirectories(baseDir);\n\n final Settings settings = Settings.builder()\n .setArgs(args)\n .setTemplateDirectories(templateDirectories)\n .setTemplateName(template)\n .setSourceEncoding(sourceEncoding)\n .setOutputEncoding(outputEncoding)\n .setOutputFile(outputFile)\n .setInclude(include)\n .setLocale(locale)\n .isReadFromStdin(readFromStdin)\n .isEnvironmentExposed(isEnvironmentExposed)\n .setSources(sources != null ? sources : new ArrayList<>())\n .setProperties(properties != null ? properties : new HashMap<>())\n .setWriter(writer(outputFile, outputEncoding))\n .build();\n\n try {\n return new FreeMarkerTask(settings).call();\n } finally {\n if (settings.hasOutputFile()) {\n close(settings.getWriter());\n }\n }\n }",
"protected static Templates getTemplates(URL style) throws TransformerException {\r\n Templates templates = s_cachedTemplates.get(style);\r\n Long lastModifiedDate = s_lastModifiedDates.get(style);\r\n long lastModified = 0;\r\n\r\n if (\"file\".equals(style.getProtocol())) {\r\n lastModified = new File(style.getFile()).lastModified();\r\n }\r\n\r\n if (templates == null || lastModifiedDate.longValue() != lastModified) {\r\n TransformerFactory factory = TransformerFactory.newInstance();\r\n\r\n try {\r\n factory.setURIResolver(new XslURIResolver());\r\n templates = factory.newTemplates(new StreamSource(style.openStream(), style.toString()));\r\n\r\n s_cachedTemplates.put(style, templates);\r\n s_lastModifiedDates.put(style, new Long(lastModified));\r\n } catch (IOException e) {\r\n throw new TransformerException(\"Fail to open XSL template: \" + style, e);\r\n }\r\n }\r\n\r\n return templates;\r\n }",
"private NotificationTemplate buildNotificationTemplateFromEmailTemplate(EmailTemplate emailTemplate) {\n\n NotificationTemplate notificationTemplate = new NotificationTemplate();\n notificationTemplate.setNotificationChannel(NotificationChannels.EMAIL_CHANNEL.getChannelType());\n notificationTemplate.setSubject(emailTemplate.getSubject());\n notificationTemplate.setBody(emailTemplate.getBody());\n notificationTemplate.setFooter(emailTemplate.getFooter());\n notificationTemplate.setType(emailTemplate.getTemplateType());\n notificationTemplate.setDisplayName(emailTemplate.getTemplateDisplayName());\n notificationTemplate.setLocale(emailTemplate.getLocale());\n notificationTemplate.setContentType(emailTemplate.getEmailContentType());\n return notificationTemplate;\n }",
"static Source newTextSource(String text) {\n return newStringSource(text, \"<input>\");\n }",
"public static TemplateBasedScriptBuilder fromTemplateResource(Resource scriptTemplateResource) {\n try {\n return new TemplateBasedScriptBuilder(FileUtils.readToString(scriptTemplateResource.getInputStream()));\n } catch (IOException e) {\n throw new CitrusRuntimeException(\"Error loading script template from file resource\", e);\n }\n }",
"public java.lang.Object createObject() {\n\treturn new NlsString();\n}",
"public ThreadLocal() {}",
"protected String formatTemplate(String template, FaxJob faxJob) {\n return SpiUtil.formatTemplate(template, faxJob, null, true, false);\n }",
"protected WMTemplate(Broker broker, String parserName) {\n _broker = broker;\n _parserName = parserName;\n }",
"@SuppressWarnings(\"unused\")\n private CreateOrUpdateTemplateResult() {\n }",
"public static String getTemplate(String template, Pair<String, String>... replacements) {\n String ret = getTemplate(template);\n if (ret != null) {\n for (Pair<String, String> p : replacements) {\n ret = ret.replaceAll(p.fst, p.snd);\n }\n }\n return ret;\n }",
"private Map retrieveTemplateMap() {\n Map templateMap = new TreeMap();\n for (int j=0;j<mRemoteSourceDirs.length;j++) {\n String remoteSource = mRemoteSourceDirs[j];\n if (!remoteSource.endsWith(\"/\")) {\n remoteSource = remoteSource + \"/\";\n }\n \n try {\n HttpClient tsClient = getTemplateServerClient(remoteSource);\n\n HttpClient.Response response = tsClient.setURI(createTemplateServerRequest(remoteSource,null))\n .setPersistent(true).getResponse(); \n\n if (response != null && response.getStatusCode() == 200) {\n\n Reader rin = new InputStreamReader\n (new BufferedInputStream(response.getInputStream()));\n \n StreamTokenizer st = new StreamTokenizer(rin);\n st.resetSyntax();\n st.wordChars('!','{');\n st.wordChars('}','}');\n st.whitespaceChars(0,' ');\n st.parseNumbers();\n st.quoteChar('|');\n st.eolIsSignificant(true);\n String templateName = null; \n int tokenID = 0;\n // ditching the headers by looking for \"\\r\\n\\r\\n\"\n /* \n * no longer needed now that HttpClient is being used but leave\n * in for the moment.\n *\n * while (!((tokenID = st.nextToken()) == StreamTokenizer.TT_EOL \n * && st.nextToken() == StreamTokenizer.TT_EOL) \n * && tokenID != StreamTokenizer.TT_EOF) {\n * }\n */\n while ((tokenID = st.nextToken()) != StreamTokenizer.TT_EOF) {\n if (tokenID == '|' || tokenID == StreamTokenizer.TT_WORD) {\n \n templateName = st.sval;\n }\n else if (tokenID == StreamTokenizer.TT_NUMBER \n && templateName != null) {\n templateName = templateName.substring(1);\n //System.out.println(templateName);\n templateMap.put(templateName.replace('/','.'),\n new TemplateSourceInfo(\n templateName,\n remoteSource,\n (long)st.nval));\n templateName = null;\n }\n }\n }\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }\n //System.out.println(\"retrieving templateMap\");\n return templateMap;\n }",
"public static Value makeTemporaryStr(String s) {\n if (s == null)\n throw new NullPointerException();\n Value r = new Value();\n r.str = s;\n return r; // don't canonicalize here!\n }"
] | [
"0.77601117",
"0.76716",
"0.6673083",
"0.60481083",
"0.60132873",
"0.5985777",
"0.5719939",
"0.56485826",
"0.56288314",
"0.5586418",
"0.55814683",
"0.5502429",
"0.5479084",
"0.5445508",
"0.5396303",
"0.5388741",
"0.5381294",
"0.5377679",
"0.53621846",
"0.535317",
"0.53223896",
"0.5320298",
"0.5301764",
"0.5301418",
"0.5279222",
"0.52356654",
"0.5232223",
"0.52269953",
"0.5211279",
"0.5205199",
"0.5173692",
"0.5142128",
"0.51176476",
"0.511332",
"0.5109651",
"0.51081324",
"0.5098282",
"0.50931066",
"0.5079363",
"0.50662184",
"0.5046277",
"0.5011948",
"0.50087833",
"0.5005728",
"0.49943274",
"0.4964203",
"0.49354777",
"0.4930679",
"0.4930363",
"0.49077812",
"0.4905923",
"0.49033937",
"0.49012518",
"0.4890447",
"0.48681659",
"0.4857245",
"0.4851907",
"0.4846528",
"0.48376402",
"0.48362216",
"0.48146102",
"0.48025608",
"0.47822407",
"0.47714013",
"0.47624624",
"0.47610766",
"0.47595426",
"0.47554845",
"0.47353584",
"0.47251153",
"0.47236365",
"0.4705928",
"0.4693161",
"0.4682285",
"0.46792623",
"0.4675253",
"0.46732882",
"0.46711183",
"0.46707556",
"0.46702975",
"0.4665419",
"0.46612152",
"0.46500266",
"0.46339124",
"0.46277243",
"0.46275625",
"0.46207812",
"0.46190825",
"0.4612215",
"0.46073288",
"0.4604651",
"0.45943624",
"0.45932704",
"0.45916644",
"0.4581837",
"0.45692012",
"0.45663676",
"0.45650724",
"0.45611656",
"0.45563936"
] | 0.7558712 | 2 |
localizedTemplateString method will return the localized template string for the passed locale. | String localizedTemplateString(String templateName); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"StringTemplate createStringTemplate();",
"public interface StringTemplateFactory {\n \n /**\n * Get a fresh StringTemplate instance that can be safely used in the current thread of execution.\n * StringTemplates should not be shared between threads.\n * \n * @param templateName\n * name of the template.\n * @param locale\n * for which template is to be retrieved.\n * @param templateType\n * templateType\n * @param isEmailManagement\n * wheather email maangement is present or not for the company.\n * @return the {@link StringTemplate}\n */\n StringTemplate getStringTemplate(String templateName, String locale, String companyId,\n String templateType, boolean isEmailManagement);\n \n /**\n * localizedTemplateString method will return the localized template string for the passed locale.\n * \n * @param templateName\n * name of the template.\n * @return the template string.\n */\n String localizedTemplateString(String templateName);\n}",
"String getLocalizedString(Locale locale);",
"public static String getTemplate(String template) {\n return templates.get(template);\n }",
"public String getTemplateName()\n {\n return MY_TEMPLATE;\n }",
"String getTemplate();",
"public String getLocalString() {\r\n return localizedString;\r\n }",
"public Function2<Object, TemplateOptions, String> template(String templateString);",
"String template();",
"public String generateFromContext(Map<String, Object> mailContext, String template);",
"final public String getTemplateSource()\n {\n return ComponentUtils.resolveString(getProperty(TEMPLATE_SOURCE_KEY));\n }",
"public String getLocalizedName() {\n return resourceMap.getString(getLocalizationKey());\n }",
"public java.lang.String getTemplateId() {\n java.lang.Object ref = templateId_;\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 templateId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getRandomString(String template){\n reporter.info(\"Get random string for template: \"+ template);\n return RandomDataGenerator.getRandomField(template,RandomDataGenerator.DEFAULT_SEPARATOR);\n //return DataGenerator.getString(template);\n }",
"private native String getTemplate()/*-{\r\n\t\t\t\treturn ['<tpl for=\".\">', \r\n\t\t\t '<div class=\"x-customer-item\">', \r\n\t\t\t\t '<div class=\"name\">{name}</div>', \r\n\t\t\t\t '<div class=\"email\">E-mail:{email}</div>', \r\n\t\t\t\t '<div class=\"purchases\">Purchases:{purchases}</div>', \r\n\t\t\t '</div>', \r\n\t\t\t '</tpl>', \r\n\t\t\t ''].join(\"\");\r\n\t\t\t}-*/;",
"public String getTemplateName() {\n return templateName;\n }",
"String getCurrentLocaleString();",
"public static TemplateElement buildTemplate(String labelURI, String file, Locale locale) {\r\n // Search the extension\r\n int lastDotIndex = file.lastIndexOf(\".\");\r\n if (lastDotIndex < 0) {\r\n XMLTemplateBuilder.logger.info(\"Dot not found in the name of the file.\");\r\n lastDotIndex = file.length();\r\n }\r\n XMLTemplateBuilder.logger.debug(\"Loading template for the locale : {}\", locale.toString());\r\n\r\n String sLocaleSuffix = \"_\" + locale.getLanguage() + \"_\" + locale.getCountry();\r\n String variant = locale.getVariant();\r\n if ((variant != null) && !variant.equals(\"\")) {\r\n sLocaleSuffix = sLocaleSuffix + \"_ \" + variant;\r\n }\r\n // File name:\r\n String sFileName = file.substring(0, lastDotIndex);\r\n String extension = file.substring(lastDotIndex, file.length());\r\n String sCompleteName = sFileName + sLocaleSuffix + extension;\r\n XMLTemplateBuilder constructor = new XMLTemplateBuilder();\r\n constructor.setLabelFile(labelURI);\r\n URL url = constructor.getClass().getClassLoader().getResource(sCompleteName);\r\n if (url == null) {\r\n XMLTemplateBuilder.logger.warn(\"Not found : {}\", sCompleteName);\r\n // Try without the locale\r\n url = constructor.getClass().getClassLoader().getResource(file);\r\n if (url == null) {\r\n XMLTemplateBuilder.logger.warn(\"Neither found : {}\", file);\r\n } else {\r\n return constructor.buildTemplate(url.toString());\r\n }\r\n } else {\r\n return constructor.buildTemplate(url.toString());\r\n }\r\n return null;\r\n }",
"public String toString(Locale locale) {\n\t\tResourceBundle bundle = null;\n\n\t\tsynchronized (BUNDLE_NAME) {\n\t\t\tif (bundleMap.get(locale) == null) {\n\t\t\t\ttry {\n\t\t\t\t\tbundle = ResourceBundle.getBundle(BUNDLE_NAME, locale);\n\n\t\t\t\t\tbundleMap.put(locale, bundle);\n\t\t\t\t} catch (MissingResourceException ex) {\n\t\t\t\t\tlogger.error(\"Unable to find resource bundle '\" + BUNDLE_NAME + \"' for locale '\" + locale + \"'.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbundle = bundleMap.get(locale);\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tString name = this.name();\n\t\t\t// This internally uses stringbuilder so don't need to do it\n\t\t\t// ourselves\n\t\t\tString completeMsg = bundle.getString(name);\n\t\t\treturn completeMsg;\n\t\t} catch (NullPointerException e) {\n\t\t\treturn '!' + this.name() + '!';\n\t\t} catch (MissingResourceException e) {\n\t\t\treturn '!' + this.name() + '!';\n\t\t}\n\t}",
"public String getTemplateName() {\r\n\t\treturn templateName;\r\n\t}",
"public ModelMessage addStringTemplate(StringTemplate template) {\n super.addStringTemplate(template);\n return this;\n }",
"private String loadTemplate(String fileName)\n throws IOException, URISyntaxException\n {\n File file = new File(resolveResourcePath(this.TEMPLATE_PATH + fileName));\n BufferedReader reader = new BufferedReader(new FileReader(file));\n \n StringBuilder builder = new StringBuilder();\n String str = reader.readLine();\n while (str != null)\n {\n builder.append(str);\n str = reader.readLine();\n }\n return builder.toString();\n }",
"String getTemplateContent(){\r\n \t\tStringBuffer templateBuffer = new StringBuffer();\r\n \t\tfor(String templatePart:templateParts){\r\n \t\t\ttemplateBuffer.append(templatePart);\r\n \t\t}\r\n \t\treturn templateBuffer.toString();\r\n \t}",
"@java.lang.Override\n public java.lang.String getTemplateId() {\n java.lang.Object ref = templateId_;\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 templateId_ = s;\n return s;\n }\n }",
"public String getStringResource(LocaleResource resource){\n\t\tContext c = ConnectedApp.getContextStatic();\n\t\tswitch(resource){\t\t\n\t\tcase support_contact:\n default:\n\t\t\tint resId= c.getResources().getIdentifier(resource.toString()+\"_\"+ getCountryCode().toLowerCase(Locale.US), \"string\",\n\t\t\t\t\tc.getPackageName());\n\t\t\treturn c.getString(resId);\n\t\t}\n\t\t//return null;\n\t}",
"public String getTemplateName() {\n\t\treturn templateName;\n\t}",
"public String getLocalizedString( String name ) {\n\t\tString outString = \"\";\r\n\t\tint id = getResources().getIdentifier( name, \"string\", getPackageName() );\r\n\t\tif ( id == 0 )\r\n\t\t{\r\n\t\t\t// 0 is not a valid resource id\r\n\t\t\tLog.v(\"VrLocale\", name + \" is not a valid resource id!!\" );\r\n\t\t\treturn outString;\r\n\t\t} \r\n\t\tif ( id != 0 ) \r\n\t\t{\r\n\t\t\toutString = getResources().getText( id ).toString();\r\n\t\t\t//Log.v(\"VrLocale\", \"getLocalizedString resolved \" + name + \" to \" + outString);\r\n\t\t}\r\n\t\treturn outString;\r\n\t}",
"String getLocalization();",
"public ModelMessage addStringTemplate(String key, StringTemplate template) {\n super.addStringTemplate(key, template);\n return this;\n }",
"protected String formatTemplate(String template, FaxJob faxJob) {\n return SpiUtil.formatTemplate(template, faxJob, null, true, false);\n }",
"public String getTemplatePath() {\n this.defaultPath = defaultPath.endsWith(File.separator) ? defaultPath : defaultPath + File.separator;\n\n if (Paths.get(defaultPath).toFile().mkdirs()) {\n //Throw exception, couldn't create directories\n }\n\n return defaultPath + (defaultName != null ? defaultName + \".\" + extensionPattern : \"\");\n }",
"InternationalString createInternationalString(Map<Locale,String> strings);",
"public java.lang.Object getTemplateName() {\n return templateName;\n }",
"static boolean stringTemplate(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringTemplate\")) return false;\n if (!nextTokenIs(b, OPEN_QUOTE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeToken(b, OPEN_QUOTE);\n p = r; // pin = 1\n r = r && report_error_(b, stringTemplate_1(b, l + 1));\n r = p && consumeToken(b, CLOSING_QUOTE) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"public String getMessageTemplate() {\n return targetType.getDefaultMessageTemplate();\n }",
"protected abstract String getTemplateName();",
"private String loadTemplate(String templatePath) throws EmailException {\n try {\n ClassLoader classLoader = getClass().getClassLoader();\n File file = new File(classLoader.getResource(templatePath).getFile());\n return new String(Files.readAllBytes(file.toPath()));\n } catch (IOException e) {\n throw new EmailException(\"Error on loading email template\", e);\n } catch (NullPointerException e) {\n throw new EmailException(\"Error on resolving template path\", e);\n }\n }",
"public String getLocalizedMessage(Locale locale) {\n\t\treturn SafeString.getLocaleString(errorKey.getMessageKey(), locale, getAdditionalErrorDataWithLineInfo());\n\t}",
"private String addLocaleToTemplateTypeResourcePath(String path, String locale) {\n\n if (StringUtils.isNotBlank(locale)) {\n return path + PATH_SEPARATOR + locale.toLowerCase();\n } else {\n return path;\n }\n }",
"protected String getFileTemplate(String sTemplate, String sPath)\n {\n String sFileName = sTemplate;\n\n if (sFileName.length() == 0)\n {\n log(\"Report writer:No output file specified. Report terminated\");\n return null;\n }\n\n try\n {\n sFileName = new File(sPath).getCanonicalPath() + File.separatorChar + sFileName;\n }\n catch (IOException e)\n {\n // leave the problem for caller\n sFileName = sPath + sFileName;\n }\n\n return sFileName;\n }",
"private String getTemplate(String templateFile) throws IOException{\r\n \t\tStringBuffer templateBuffer = new StringBuffer();\r\n \t\tFileReader in;\r\n \t\tint c;\r\n \t\tin = new FileReader(new File(templateFolder,templateFile));\r\n \r\n \t\twhile ((c = in.read()) != -1){\r\n \t\t\ttemplateBuffer.append((char) c);\r\n \t\t}\r\n \r\n \t\tString templateString = templateBuffer.toString();\r\n \t\tif (templateString.indexOf(\"startCell\") == (-1)){\r\n \t\t\treturn templateString;\r\n \t\t}else{\r\n \t\t\ttemplateString = templateString.substring(templateString.indexOf(\"startCell\") + 12, templateString.indexOf(\"<!--endCell\"));\r\n \t\t\treturn templateString;\r\n \t\t}\r\n \t}",
"java.lang.String getTemplateId();",
"String getString(String bundleKey, Locale locale);",
"abstract java.lang.String getLocalizedMessage();",
"protected abstract String getTemplateFilename();",
"public String fileNameTemplate() {\n return this.fileNameTemplate;\n }",
"@Override\n public String doMapping(String template)\n {\n log.debug(\"doMapping({})\", template);\n // Copy our elements into an array\n List<String> components\n = new ArrayList<>(Arrays.asList(StringUtils.split(\n template,\n String.valueOf(TemplateService.TEMPLATE_PARTS_SEPARATOR))));\n int componentSize = components.size() - 1 ;\n\n // This method never gets an empty string passed.\n // So this is never < 0\n String templateName = components.get(componentSize);\n components.remove(componentSize--);\n\n log.debug(\"templateName is {}\", templateName);\n\n // Last element decides, which template Service to use...\n TemplateService templateService = (TemplateService)TurbineServices.getInstance().getService(TemplateService.SERVICE_NAME);\n TemplateEngineService tes = templateService.getTemplateEngineService(templateName);\n\n if (tes == null)\n {\n return null;\n }\n\n String defaultName = \"Default.vm\";\n\n // This is an optimization. If the name we're looking for is\n // already the default name for the template, don't do a \"first run\"\n // which looks for an exact match.\n boolean firstRun = !templateName.equals(defaultName);\n\n for(;;)\n {\n String templatePackage = StringUtils.join(components.iterator(), String.valueOf(separator));\n\n log.debug(\"templatePackage is now: {}\", templatePackage);\n\n StringBuilder testName = new StringBuilder();\n\n if (!components.isEmpty())\n {\n testName.append(templatePackage);\n testName.append(separator);\n }\n\n testName.append((firstRun)\n ? templateName\n : defaultName);\n\n // But the Templating service must look for the name with prefix\n StringBuilder templatePath = new StringBuilder();\n if (StringUtils.isNotEmpty(prefix))\n {\n templatePath.append(prefix);\n templatePath.append(separator);\n }\n templatePath.append(testName);\n\n log.debug(\"Looking for {}\", templatePath);\n\n if (tes.templateExists(templatePath.toString()))\n {\n log.debug(\"Found it, returning {}\", testName);\n return testName.toString();\n }\n\n if (firstRun)\n {\n firstRun = false;\n }\n else\n {\n // We run this loop only two times. The\n // first time with the 'real' name and the\n // second time with \"Default\". The second time\n // we will end up here and break the for(;;) loop.\n break;\n }\n }\n\n log.debug(\"Returning default\");\n return getDefaultName(template);\n }",
"public String processTemplate(String name, String templateString, Object context)\r\n\t{\r\n\t\treturn freeMarkerEngine.processTemplate(name, templateString, context);\r\n\t}",
"public void setTemplateName(String templateName) {\n this.templateName = templateName;\n }",
"protected String toDisplayString(final String name, final Locale locale) {\n try {\n return ResourceBundle.getBundle(name, locale).getString(key);\n } catch (ClassCastException | MissingResourceException ignored) {\n return key; // return the non-localized key\n }\n }",
"public void setTemplateName(String templateName) {\r\n\t\tthis.templateName = templateName;\r\n\t}",
"public String getAuthTemplateName() {\n return getProperty(Property.AUTH_TEMPLATE_NAME);\n }",
"private String getDisplayNameI18N() throws JspException {\n Object args[] = new Object[5];\n args[0] = arg0;\n args[1] = arg1;\n args[2] = arg2;\n args[3] = arg3;\n args[4] = arg4;\n\n\n if (getKey() == null) {\n\n Object o = null;\n\n if (getScope().equals(\"session\")) {\n\n o = pageContext.getAttribute(getName(), pageContext.SESSION_SCOPE);\n\n } else if (getScope().equals(\"request\")) {\n\n o = pageContext.getAttribute(getName(), pageContext.REQUEST_SCOPE);\n\n } else if (getScope().equals(\"page\")) {\n\n o = pageContext.getAttribute(getName(), pageContext.PAGE_SCOPE);\n\n }\n\n if (o != null) {\n\n try {\n\n String _property = getProperty();\n String innerPropertyName, innerGetterName;\n Method _method;\n\n while (_property.indexOf(\".\") > 0) {\n\n innerPropertyName = _property.substring(0, _property.indexOf(\".\"));\n innerGetterName = \"get\" + innerPropertyName.substring(0,1).toUpperCase() + innerPropertyName.substring(1);\n\n _method = o.getClass().getMethod(innerGetterName, null);\n\n o = _method.invoke(o, null);\n\n _property = _property.substring(_property.indexOf(\".\") +1);\n }\n\n String getterName = \"get\" + _property.substring(0,1).toUpperCase() + _property.substring(1);\n\n Method method = o.getClass().getMethod(getterName, null);\n\n if (method.getReturnType() == String.class) {\n String messageKey = (String)method.invoke(o, null);\n\n setKey(messageKey);\n }\n\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (SecurityException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n }\n }\n\n // Retrieve the message string we are looking for\n String message = RequestUtils.message(pageContext, this.bundle,\n this.localeKey, this.key, args);\n if (message == null) {\n message = key;\n }\n\n return message;\n }",
"public String templateId() {\n return this.templateId;\n }",
"int getLocalizedText();",
"public abstract String getTemplateName();",
"private String getTemplate(){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\r\n\t\t\t sb.append(\"<tpl for=\\\".\\\">\");\r\n\t\t\t\tsb.append(\"<div class=\\\"x-combo-list-item\\\" >\");\r\n\t\t\t\tsb.append(\"<span><b>{name}</b></span>\"); \t\t\t \t\r\n\t\t\t\tsb.append(\"</div>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}",
"@Override\n\tpublic String getMessage() {\n\t\tResourceBundle myResources = ResourceBundle.getBundle(DEFAULT_RESOURCE_PACKAGE);\n\t\tString message = myResources.getString(MESSAGE);\n\t\t\n\t\treturn message;\n\t}",
"public com.google.protobuf.ByteString\n getTemplateIdBytes() {\n java.lang.Object ref = templateId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n templateId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private static Template template(Configuration configuration, TemplateSource templateSource) {\n switch (templateSource.getOrigin()) {\n case TEMPLATE_LOADER:\n return fromTemplatePath(configuration, templateSource);\n case TEMPLATE_CODE:\n return fromTemplateCode(configuration, templateSource);\n default:\n throw new IllegalArgumentException(\"Don't know how to create a template: \" + templateSource.getOrigin());\n }\n }",
"public String getTemplateSrc(String templateName) throws IOException {\n String outSource = \"\";\n \n try {\n BufferedReader in = new BufferedReader(new FileReader(templateName)); \n String inline;\n \n while ((inline = in.readLine()) != null) {\n outSource += inline + NEWL_;\n }\n in.close();\n } catch (FileNotFoundException e) {\n throw new IOException(\"template error:\" + e.getMessage() + \" not found.\");\n } catch (IOException e) {\n throw new IOException(\"read template error:\" + e.getMessage());\n }\n \n return outSource;\n }",
"public static String getTemplate(String template, Pair<String, String>... replacements) {\n String ret = getTemplate(template);\n if (ret != null) {\n for (Pair<String, String> p : replacements) {\n ret = ret.replaceAll(p.fst, p.snd);\n }\n }\n return ret;\n }",
"public void setTemplateName(java.lang.Object templateName) {\n this.templateName = templateName;\n }",
"public String getTemplateCode() {\n return templateCode;\n }",
"public String getTemplateFilename() {\n\t\treturn templateFilename;\n\t}",
"String getString(String bundleKey, String bundleBaseName, Locale locale);",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getTemplateIdBytes() {\n java.lang.Object ref = templateId_;\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 templateId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setTemplateFileName( String templateFileName )\n {\n _strTemplateFileName = templateFileName;\n }",
"String renderTemplate(String filename, Map<String, Object> context) {\n if (sEngine == null) {\n // PebbleEngine caches compiled templates by filename, so as long as we keep using the\n // same engine instance, it's okay to call getTemplate(filename) on each render.\n sEngine = new PebbleEngine();\n sEngine.addExtension(new PebbleExtension());\n }\n try {\n StringWriter writer = new StringWriter();\n sEngine.getTemplate(filename).evaluate(writer, context);\n return writer.toString();\n } catch (Exception e) {\n StringWriter writer = new StringWriter();\n e.printStackTrace(new PrintWriter(writer));\n return \"<div style=\\\"font-size: 150%\\\">\" + writer.toString().replace(\"&\", \"&\").replace(\"<\", \"<\").replace(\"\\n\", \"<br>\");\n }\n }",
"public ST createStringTemplateInternally(CompiledST impl) {\n\t\tST st = createStringTemplate(impl);\n\t\tif (trackCreationEvents && st.debugState != null) {\n\t\t\tst.debugState.newSTEvent = null; // toss it out\n\t\t}\n\t\treturn st;\n\t}",
"@ApiModelProperty(value = \"Gets or sets Template Name.\")\n public String getTemplateName() {\n return templateName;\n }",
"public static String replacePlaceHolderOfTemplate(String templateString, String... arguments) {\n\t\tif (AppUtils.isBlank(arguments)) {\n\t\t\treturn null;\n\t\t}\n\t\tStringBuilder result = new StringBuilder(templateString);\n\t\tfor (int i = 0; i < arguments.length; i++) {\n\t\t\tStringConverter.replacePlaceHolderOfTemplate(result, \"{\" + i + \"}\", arguments[i]);\n\t\t}\n\t\treturn result.toString();\n\t}",
"public String getString( String key )\n {\n String translation = key;\n\n if ( specificResourceBundle != null )\n {\n try\n {\n translation = specificResourceBundle.getString( key );\n }\n catch ( MissingResourceException ignored )\n {\n }\n }\n\n if ( translation.equals( key ) && globalResourceBundle != null )\n {\n try\n {\n translation = globalResourceBundle.getString( key );\n }\n catch ( MissingResourceException ignored )\n {\n }\n }\n\n return translation;\n }",
"protected String localize(Map<String, String> labels, String s) {\n return labels.containsKey(s) ? labels.get(s) : (\"Untranslated:\" + s);\n }",
"public static String getSelectedTemplate() {\r\n\t\treturn (String) comboEmails.getSelectedItem();\r\n\t}",
"public static String localizeContact(Context context, String toLocalize){\n String language = Locale.getDefault().getLanguage();\n if(!language.equals(lastLanguage)) {\n lastLanguage = language;\n resetArrayMaps();\n }\n if(contactsTranslations.isEmpty()) {\n String[] localizedContacts = context.getResources().getStringArray(R.array.contacts);\n String[] contacts = Values.CONTACTS_DEFAULT_NAMES;\n for (int i = 0; i < contacts.length; i++)\n contactsTranslations.put(contacts[i], localizedContacts[i]);\n }\n return contactsTranslations.get(toLocalize);\n }",
"@Test\n public void templateTest() throws ApiException {\n Long clientId = null;\n Long productId = null;\n String templateType = null;\n GetSelfLoansTemplateResponse response = api.template(clientId, productId, templateType);\n\n // TODO: test validations\n }",
"public String toDisplayString(Locale locale) {\n return toDisplayString(defaultResourceBundleName, locale);\n }",
"private String translate(Translatable str, Locale locale) {\n\t\t\n\t\tif (\"\".equals(str.getMsgid())) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tString baseName = this.cfg.getString(\"formatter.locale.basename\", \"Messages\");\n\n\t\tI18n i18n = I18nFactory.getI18n(this.getClass(), baseName, locale);\n\n\t\tif (!\"\".equals(str.getMsgctx()) && str.getMsgctx() != null) {\n\t\t\treturn i18n.trc(str.getMsgid(), str.getMsgctx());\n\t\t} else {\t\t\t\n\t\t\treturn i18n.tr(str.getMsgid());\n\t\t}\n\n\t}",
"public java.lang.String getQuestTemplateId() {\n java.lang.Object ref = questTemplateId_;\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 questTemplateId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getLocale()\n {\n return (m_taskVector == null || m_taskVector.size() == 0) ?\n DEFAULT_LOCALE :\n taskAt(0).getSourceLanguage();\n }",
"public static final String getTypeNamePartString(int itemTemplateId) {\n/* 607 */ String toReturn = \"Focus\";\n/* 608 */ int rand = Server.rand.nextInt(10);\n/* 609 */ toReturn = getTypeNamePartStringWithPart(itemTemplateId, rand);\n/* 610 */ return toReturn;\n/* */ }",
"@RequestMapping(method = RequestMethod.GET, path = \"/hello-world/internationalized2\")\t\n\tpublic String helloWorldInternationalized2(Locale locale) {\n\t\t\n\t\treturn messageSource.getMessage(\"good.morning.message\",null, LocaleContextHolder.getLocale());\n\t}",
"Template getTemplateById(String templateId) throws NotificationClientException;",
"private static final String getResourceSuffix(Locale locale)\n {\n\n String suffix = \"_\" + locale.getLanguage();\n String country = locale.getCountry();\n\n if (country.equals(\"TW\"))\n suffix += \"_\" + country;\n\n return suffix;\n }",
"private static final String getResourceSuffix(Locale locale)\n {\n\n String suffix = \"_\" + locale.getLanguage();\n String country = locale.getCountry();\n\n if (country.equals(\"TW\"))\n suffix += \"_\" + country;\n\n return suffix;\n }",
"public final ANTLRv3Parser.rewrite_template_return rewrite_template() throws RecognitionException {\r\n ANTLRv3Parser.rewrite_template_return retval = new ANTLRv3Parser.rewrite_template_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token lp=null;\r\n Token str=null;\r\n Token char_literal177=null;\r\n Token ACTION180=null;\r\n ANTLRv3Parser.id_return id175 =null;\r\n\r\n ANTLRv3Parser.rewrite_template_args_return rewrite_template_args176 =null;\r\n\r\n ANTLRv3Parser.rewrite_template_ref_return rewrite_template_ref178 =null;\r\n\r\n ANTLRv3Parser.rewrite_indirect_template_head_return rewrite_indirect_template_head179 =null;\r\n\r\n\r\n CommonTree lp_tree=null;\r\n CommonTree str_tree=null;\r\n CommonTree char_literal177_tree=null;\r\n CommonTree ACTION180_tree=null;\r\n RewriteRuleTokenStream stream_69=new RewriteRuleTokenStream(adaptor,\"token 69\");\r\n RewriteRuleTokenStream stream_68=new RewriteRuleTokenStream(adaptor,\"token 68\");\r\n RewriteRuleTokenStream stream_DOUBLE_QUOTE_STRING_LITERAL=new RewriteRuleTokenStream(adaptor,\"token DOUBLE_QUOTE_STRING_LITERAL\");\r\n RewriteRuleTokenStream stream_DOUBLE_ANGLE_STRING_LITERAL=new RewriteRuleTokenStream(adaptor,\"token DOUBLE_ANGLE_STRING_LITERAL\");\r\n RewriteRuleSubtreeStream stream_id=new RewriteRuleSubtreeStream(adaptor,\"rule id\");\r\n RewriteRuleSubtreeStream stream_rewrite_template_args=new RewriteRuleSubtreeStream(adaptor,\"rule rewrite_template_args\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:425:2: ( id lp= '(' rewrite_template_args ')' (str= DOUBLE_QUOTE_STRING_LITERAL |str= DOUBLE_ANGLE_STRING_LITERAL ) -> ^( TEMPLATE[$lp,\\\"TEMPLATE\\\"] id rewrite_template_args $str) | rewrite_template_ref | rewrite_indirect_template_head | ACTION )\r\n int alt81=4;\r\n alt81 = dfa81.predict(input);\r\n switch (alt81) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:426:3: id lp= '(' rewrite_template_args ')' (str= DOUBLE_QUOTE_STRING_LITERAL |str= DOUBLE_ANGLE_STRING_LITERAL )\r\n {\r\n pushFollow(FOLLOW_id_in_rewrite_template3011);\r\n id175=id();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_id.add(id175.getTree());\r\n\r\n lp=(Token)match(input,68,FOLLOW_68_in_rewrite_template3015); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_68.add(lp);\r\n\r\n\r\n pushFollow(FOLLOW_rewrite_template_args_in_rewrite_template3017);\r\n rewrite_template_args176=rewrite_template_args();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_rewrite_template_args.add(rewrite_template_args176.getTree());\r\n\r\n char_literal177=(Token)match(input,69,FOLLOW_69_in_rewrite_template3019); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_69.add(char_literal177);\r\n\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:427:3: (str= DOUBLE_QUOTE_STRING_LITERAL |str= DOUBLE_ANGLE_STRING_LITERAL )\r\n int alt80=2;\r\n int LA80_0 = input.LA(1);\r\n\r\n if ( (LA80_0==DOUBLE_QUOTE_STRING_LITERAL) ) {\r\n alt80=1;\r\n }\r\n else if ( (LA80_0==DOUBLE_ANGLE_STRING_LITERAL) ) {\r\n alt80=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 80, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt80) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:427:5: str= DOUBLE_QUOTE_STRING_LITERAL\r\n {\r\n str=(Token)match(input,DOUBLE_QUOTE_STRING_LITERAL,FOLLOW_DOUBLE_QUOTE_STRING_LITERAL_in_rewrite_template3027); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_DOUBLE_QUOTE_STRING_LITERAL.add(str);\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:427:39: str= DOUBLE_ANGLE_STRING_LITERAL\r\n {\r\n str=(Token)match(input,DOUBLE_ANGLE_STRING_LITERAL,FOLLOW_DOUBLE_ANGLE_STRING_LITERAL_in_rewrite_template3033); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_DOUBLE_ANGLE_STRING_LITERAL.add(str);\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n // AST REWRITE\r\n // elements: str, rewrite_template_args, id\r\n // token labels: str\r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleTokenStream stream_str=new RewriteRuleTokenStream(adaptor,\"token str\",str);\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 428:3: -> ^( TEMPLATE[$lp,\\\"TEMPLATE\\\"] id rewrite_template_args $str)\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:428:6: ^( TEMPLATE[$lp,\\\"TEMPLATE\\\"] id rewrite_template_args $str)\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(TEMPLATE, lp, \"TEMPLATE\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_id.nextTree());\r\n\r\n adaptor.addChild(root_1, stream_rewrite_template_args.nextTree());\r\n\r\n adaptor.addChild(root_1, stream_str.nextNode());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:431:3: rewrite_template_ref\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_rewrite_template_ref_in_rewrite_template3060);\r\n rewrite_template_ref178=rewrite_template_ref();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, rewrite_template_ref178.getTree());\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:434:3: rewrite_indirect_template_head\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_rewrite_indirect_template_head_in_rewrite_template3069);\r\n rewrite_indirect_template_head179=rewrite_indirect_template_head();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, rewrite_indirect_template_head179.getTree());\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:437:3: ACTION\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n ACTION180=(Token)match(input,ACTION,FOLLOW_ACTION_in_rewrite_template3078); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n ACTION180_tree = \r\n (CommonTree)adaptor.create(ACTION180)\r\n ;\r\n adaptor.addChild(root_0, ACTION180_tree);\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\r\n\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }",
"private static boolean stringTemplate_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringTemplate_1_0\")) return false;\n boolean r;\n r = consumeToken(b, REGULAR_STRING_PART);\n if (!r) r = shortTemplateEntry(b, l + 1);\n if (!r) r = longTemplateEntry(b, l + 1);\n return r;\n }",
"public abstract NoticeTemplate getNoticeTemplate(String templateId);",
"@Override\r\n\tprotected String getLocalizedMessage(String errorCode, Locale locale, Object... args) {\n\t\treturn com.platform.util.i18n.PlatformResource.getTranslatedText(errorCode, args, locale);\r\n\t}",
"@RequestMapping(value = \"/messageresource/localize\", method = RequestMethod.GET)\n\tpublic String localizeMessageResource(Model model, Locale locale) {\n\n\t\tlogger.debug(\"localizeMessageResource()\");\n\n\t\tMessageResourceTranslationBackingBean messageResourceTranslationBackingBean = new MessageResourceTranslationBackingBeanImpl();\n\t\tmessageResourceTranslationBackingBean.setCurrentMode(MessageResource.CurrentMode.LOCALIZE);\n\t\tmodel.addAttribute(\"messageResourceTranslationFormModel\", messageResourceTranslationBackingBean);\n\t\tLong defaultLocale = Long.valueOf(Constants.REFERENCE_LOCALE__EN);\n\t\tsetTranslationDropDownContents(model, locale);\n\t\tsetDropDownContents(model, null, locale);\t\t\n\t\tmodel.addAttribute(\"defaultLocale\", defaultLocale);\n\t\t\n\t\treturn \"messages/messageresource_localize\";\n\n\t}",
"public static String render(String template, Map<String, Object> model) {\n return new VelocityTemplateEngine(engine).render(new ModelAndView(model, template));\n }",
"@GetMapping(path = \"/hello-world-Internationalized\")\n\tpublic String helloWorldInternationalized(@RequestHeader(name=\"Accept-Language\", required=false) Locale locale) {\n\t\treturn messageSource.getMessage(\"good.morning.message\", null, locale);\n\t}",
"private static boolean stringTemplate_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringTemplate_1\")) return false;\n while (true) {\n int c = current_position_(b);\n if (!stringTemplate_1_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"stringTemplate_1\", c)) break;\n }\n return true;\n }",
"public String getLocalizedName() {\n\t\treturn this.name().toUpperCase();\n\t}",
"public String tplName() {\n return this.tplName;\n }",
"public PathTemplate getNameTemplate() {\n return nameTemplate;\n }",
"public abstract String getImportFromFileTemplate( );",
"public File getTemplateFile();",
"@java.lang.Override\n public java.lang.String getQuestTemplateId() {\n java.lang.Object ref = questTemplateId_;\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 questTemplateId_ = s;\n return s;\n }\n }"
] | [
"0.6122299",
"0.6054253",
"0.5803302",
"0.57916874",
"0.5773308",
"0.573021",
"0.57227445",
"0.5718838",
"0.56144977",
"0.53307617",
"0.52883416",
"0.52670956",
"0.5255578",
"0.5186275",
"0.5185975",
"0.51596195",
"0.51166785",
"0.51068497",
"0.51023",
"0.50949675",
"0.5088412",
"0.5086678",
"0.5043382",
"0.50414085",
"0.50398684",
"0.50312114",
"0.5013663",
"0.49400297",
"0.49277645",
"0.49178293",
"0.49147475",
"0.49108815",
"0.49095795",
"0.4906321",
"0.49012947",
"0.4889516",
"0.4883175",
"0.48798352",
"0.48625723",
"0.48607463",
"0.48393765",
"0.4832215",
"0.481574",
"0.48085472",
"0.4792492",
"0.4790758",
"0.47867766",
"0.47728586",
"0.4769189",
"0.47313622",
"0.46803355",
"0.46759978",
"0.46369666",
"0.46191192",
"0.46105394",
"0.46063644",
"0.46020645",
"0.45886365",
"0.45846146",
"0.4560734",
"0.45491067",
"0.4548425",
"0.45433602",
"0.452439",
"0.45078912",
"0.45068046",
"0.45019385",
"0.44757926",
"0.44694906",
"0.44688126",
"0.44641423",
"0.4455203",
"0.44505477",
"0.4449868",
"0.44478938",
"0.4442919",
"0.441411",
"0.43991017",
"0.43800867",
"0.4359173",
"0.43560213",
"0.43535438",
"0.43513152",
"0.43372864",
"0.43209317",
"0.43209317",
"0.43061674",
"0.43015417",
"0.42978212",
"0.42959747",
"0.42768893",
"0.42730853",
"0.426705",
"0.42645323",
"0.42613026",
"0.42592084",
"0.42565027",
"0.42457783",
"0.42423224",
"0.42414245"
] | 0.8052334 | 0 |
formdata; name="file"; filename="C:\file1.zip" formdata; name="file"; filename="C:\Note\file2.zip" | private String extractFileName(Part part) {
String contentDisp = part.getHeader("content-disposition");
String[] items = contentDisp.split(";");
for (String s : items) {
if (s.trim().startsWith("filename")) {
// C:\file1.zip
// C:\Note\file2.zip
String clientFileName = s.substring(s.indexOf("=") + 2, s.length() - 1);
clientFileName = clientFileName.replace("\\", "/");
int i = clientFileName.lastIndexOf('/');
// file1.zip
// file2.zip
return clientFileName.substring(i + 1);
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setContentDispositionFormData(String name, String filename)\r\n/* 162: */ {\r\n/* 163:245 */ Assert.notNull(name, \"'name' must not be null\");\r\n/* 164:246 */ StringBuilder builder = new StringBuilder(\"form-data; name=\\\"\");\r\n/* 165:247 */ builder.append(name).append('\"');\r\n/* 166:248 */ if (filename != null)\r\n/* 167: */ {\r\n/* 168:249 */ builder.append(\"; filename=\\\"\");\r\n/* 169:250 */ builder.append(filename).append('\"');\r\n/* 170: */ }\r\n/* 171:252 */ set(\"Content-Disposition\", builder.toString());\r\n/* 172: */ }",
"public static String uploadUseFormFile(String toUrl, File[] files, String[] names) {\r\n\t\tString end = \"\\r\\n\";\r\n\t\tString twoHyphens = \"--\";\r\n\t\tString boundary = \"*****jerry2\";\r\n\t\t\r\n\t\tHttpURLConnection conn = null;\r\n\t\tInputStream is = null;\r\n\t\tDataOutputStream ds = null;\t\t\r\n\t\ttry {\r\n\t\t\tURL url = new URL(toUrl);\r\n\t\t\tconn = (HttpURLConnection) url.openConnection();\r\n\t\t\tconn.setDoOutput(true);\r\n\t\t\tconn.setDoInput(true);\r\n\t\t\tconn.setChunkedStreamingMode(0);\r\n\t\t\tconn.setRequestMethod(\"POST\");\r\n\t\t\tconn.setRequestProperty(\"Connection\", \"Keep-Alive\");\r\n\t\t\tconn.setRequestProperty(\"Charset\", \"UTF-8\");\r\n\t\t\tconn.setRequestProperty(\"Content-length\", String.valueOf(getLength(files)));\r\n\t\t\tconn.setRequestProperty(\"Content-type\", \"multipart/form-data; boundary=\"+boundary);\r\n\t\t\t/*\t\t\t\r\n\t\t\tContent-type: multipart/form-data; boundary=AaB03x\r\n\t\t\t--AaB03x\r\n\t content-disposition: form-data; name=\"pics\"; filename=\"file1.txt\"\r\n\t Content-Type: text/plain\r\n\r\n\t ... contents of file1.txt ...\r\n\t --AaB03x--\r\n\t */\r\n\t\t\tds = new DataOutputStream(conn.getOutputStream());\r\n\t\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t\tis = new FileInputStream(files[i]);\r\n\t\t\t\tds.writeBytes(twoHyphens + boundary + end);\r\n\t\t\t\tds.writeBytes(\"content-disposition: form-data; name=\\\"\"+names[i]+\"\\\"; filename=\\\"\"+files[i].getName()+\"\\\"\"+end);\r\n\t\t\t\tds.writeBytes(end);\r\n\t\t\t\tbyte[] buf = new byte[128];\r\n\t\t\t\tint len = -1;\r\n\t\t\t\twhile ((len=is.read(buf)) != -1)\r\n\t\t\t\t\tds.write(buf, 0, len);\r\n\t\t\t\tds.writeBytes(end);\r\n\t\t\t}\r\n\t\t\tds.writeBytes(twoHyphens + boundary + twoHyphens + end);\r\n\t\t\tds.flush();\r\n\t\t\t\r\n\t\t\t//response\r\n\t\t\tSystem.out.println(\"code=\"+conn.getResponseCode()+\",msg=\"+conn.getResponseMessage());\r\n\t\t\treturn getContent(conn.getInputStream());\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t} finally{\r\n\t\t\ttry {\r\n\t\t\t\tif (is != null)\r\n\t\t\t\t\tis.close();\r\n\t\t\t\tif (ds != null)\r\n\t\t\t\t\tds.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tconn.disconnect();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public HttpRequest a(String str, String str2, String str3) throws IOException {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"form-data; name=\\\"\");\n stringBuilder.append(str);\n if (str2 != null) {\n stringBuilder.append(\"\\\"; filename=\\\"\");\n stringBuilder.append(str2);\n }\n stringBuilder.append('\\\"');\n f(\"Content-Disposition\", stringBuilder.toString());\n if (str3 != null) {\n f(\"Content-Type\", str3);\n }\n return f((CharSequence) \"\\r\\n\");\n }",
"static public String postFile(String url, String userid, String fieldName, File textFile) throws Exception {\r\n // String param = \"value\";\r\n // File textFile = new File(\"/path/to/file.txt\");\r\n // File binaryFile = new File(\"/path/to/file.bin\");\r\n String boundary = Long.toHexString(System.currentTimeMillis()); // Just\r\n // generate\r\n // some\r\n // unique\r\n // random\r\n // value.\r\n String CRLF = \"\\r\\n\"; // Line separator required by multipart/form-data.\r\n\r\n URLConnection connection = new URL(url).openConnection();\r\n connection.setDoOutput(true);\r\n connection.setRequestProperty(\"Content-Type\", \"multipart/form-data; boundary=\" + boundary);\r\n PrintWriter writer = null;\r\n try {\r\n String charset = \"ISO-8859-1\"; // was ISO-8859-1\r\n OutputStream output = connection.getOutputStream();\r\n writer = new PrintWriter(new OutputStreamWriter(output, charset), true); // true\r\n // =\r\n // autoFlush,\r\n // important!\r\n\r\n // Send text file.\r\n writer.append(\"--\" + boundary).append(CRLF);\r\n writer.append(\"Content-Disposition: form-data; name=\\\"\" + fieldName + \"\\\"; filename=\\\"\" + textFile.getName() + \"\\\"\").append(CRLF);\r\n writer.append(\"Content-Type: text/plain; charset=\" + charset).append(CRLF);\r\n writer.append(CRLF).flush();\r\n BufferedReader reader = null;\r\n try {\r\n reader = new BufferedReader(new InputStreamReader(new FileInputStream(textFile), charset));\r\n for (String line; (line = reader.readLine()) != null;) {\r\n writer.append(line).append(CRLF);\r\n }\r\n } finally {\r\n if (reader != null)\r\n try {\r\n reader.close();\r\n } catch (IOException logOrIgnore) {\r\n }\r\n }\r\n\r\n // Send normal param.\r\n\r\n writer.append(\"--\" + boundary).append(CRLF);\r\n writer.append(\"Content-Disposition: form-data; name=\\\"user\\\"\").append(CRLF);\r\n writer.append(\"Content-Type: text/plain; charset=\" + charset).append(CRLF);\r\n writer.append(CRLF);\r\n writer.append(userid).append(CRLF).flush();\r\n\r\n writer.flush();\r\n\r\n /*\r\n * // Send binary file. writer.append(\"--\" + boundary).append(CRLF);\r\n * writer.append(\r\n * \"Content-Disposition: form-data; name=\\\"binaryFile\\\"; filename=\\\"\" +\r\n * binaryFile.getName() + \"\\\"\").append(CRLF); writer.append(\r\n * \"Content-Type: \" + URLConnection.guessContentTypeFromName\r\n * (binaryFile.getName())).append(CRLF); writer.append(\r\n * \"Content-Transfer-Encoding: binary\").append(CRLF);\r\n * writer.append(CRLF).flush(); InputStream input = null; try { input =\r\n * new FileInputStream(binaryFile); byte[] buffer = new byte[1024]; for\r\n * (int length = 0; (length = input.read(buffer)) > 0;) {\r\n * output.write(buffer, 0, length); } output.flush(); // Important! Output\r\n * cannot be closed. Close of writer will close output as well. } finally\r\n * { if (input != null) try { input.close(); } catch (IOException\r\n * logOrIgnore) {} } writer.append(CRLF).flush(); // CRLF is important! It\r\n * indicates end of binary boundary.\r\n */\r\n\r\n // End of multipart/form-data.\r\n writer.append(\"--\" + boundary + \"--\").append(CRLF);\r\n writer.append(CRLF).flush(); // CRLF is important! It indicates end\r\n // of binary boundary.\r\n\r\n byte[] data;\r\n InputStream in = null;\r\n in = new BufferedInputStream(connection.getInputStream());\r\n ByteArrayOutputStream bos = new ByteArrayOutputStream(16384);\r\n try {\r\n\r\n int BUFFER_SIZE = 16384;\r\n byte[] tmp = new byte[BUFFER_SIZE];\r\n int ret;\r\n while ((ret = in.read(tmp)) > 0) {\r\n bos.write(tmp, 0, ret);\r\n }\r\n } catch (IOException e) {\r\n Logging.logError(e);\r\n }\r\n\r\n data = bos.toByteArray();\r\n log.info(\"read {} bytes\", data.length);\r\n\r\n String s = new String(data);\r\n log.info(s);\r\n try {\r\n in.close();\r\n } catch (IOException e) {\r\n // don't care\r\n }\r\n\r\n return s;\r\n\r\n } finally {\r\n if (writer != null)\r\n writer.close();\r\n }\r\n }",
"private void decodeMultipartFormData(String boundary, String encoding, ByteBuffer fbuf,\n\t\t\t\tMap<String, String> parms, Map<String, String> files) throws ResponseException {\n\t\t\ttry {\n\t\t\t\tint[] boundary_idxs = getBoundaryPositions(fbuf, boundary.getBytes());\n\t\t\t\tif (boundary_idxs.length < 2) {\n\t\t\t\t\tthrow new ResponseException(Response.Status.BAD_REQUEST,\n\t\t\t\t\t\t\t\"BAD REQUEST: Content type is multipart/form-data but contains less than two boundary strings.\");\n\t\t\t\t}\n\n\t\t\t\tbyte[] part_header_buff = new byte[MAX_HEADER_SIZE];\n\t\t\t\tfor (int bi = 0; bi < boundary_idxs.length - 1; bi++) {\n\t\t\t\t\tfbuf.position(boundary_idxs[bi]);\n\t\t\t\t\tint len = (fbuf.remaining() < MAX_HEADER_SIZE) ? fbuf.remaining()\n\t\t\t\t\t\t\t: MAX_HEADER_SIZE;\n\t\t\t\t\tfbuf.get(part_header_buff, 0, len);\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\t\tnew ByteArrayInputStream(part_header_buff, 0, len),\n\t\t\t\t\t\t\tCharset.forName(encoding)), len);\n\n\t\t\t\t\tint headerLines = 0;\n\t\t\t\t\t// First line is boundary string\n\t\t\t\t\tString mpline = in.readLine();\n\t\t\t\t\theaderLines++;\n\t\t\t\t\tif (mpline == null || !mpline.contains(boundary)) {\n\t\t\t\t\t\tthrow new ResponseException(Response.Status.BAD_REQUEST,\n\t\t\t\t\t\t\t\t\"BAD REQUEST: Content type is multipart/form-data but chunk does not start with boundary.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tString part_name = null, file_name = null, content_type = null;\n\t\t\t\t\t// Parse the reset of the header lines\n\t\t\t\t\tmpline = in.readLine();\n\t\t\t\t\theaderLines++;\n\t\t\t\t\twhile (mpline != null && mpline.trim().length() > 0) {\n\t\t\t\t\t\tMatcher matcher = CONTENT_DISPOSITION_PATTERN.matcher(mpline);\n\t\t\t\t\t\tif (matcher.matches()) {\n\t\t\t\t\t\t\tString attributeString = matcher.group(2);\n\t\t\t\t\t\t\tmatcher = CONTENT_DISPOSITION_ATTRIBUTE_PATTERN\n\t\t\t\t\t\t\t\t\t.matcher(attributeString);\n\t\t\t\t\t\t\twhile (matcher.find()) {\n\t\t\t\t\t\t\t\tString key = matcher.group(1);\n\t\t\t\t\t\t\t\tif (\"name\".equalsIgnoreCase(key)) {\n\t\t\t\t\t\t\t\t\tpart_name = matcher.group(2);\n\t\t\t\t\t\t\t\t} else if (\"filename\".equalsIgnoreCase(key)) {\n\t\t\t\t\t\t\t\t\tfile_name = matcher.group(2);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmatcher = CONTENT_TYPE_PATTERN.matcher(mpline);\n\t\t\t\t\t\tif (matcher.matches()) {\n\t\t\t\t\t\t\tcontent_type = matcher.group(2).trim();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmpline = in.readLine();\n\t\t\t\t\t\theaderLines++;\n\t\t\t\t\t}\n\t\t\t\t\tint part_header_len = 0;\n\t\t\t\t\twhile (headerLines-- > 0) {\n\t\t\t\t\t\tpart_header_len = scipOverNewLine(part_header_buff, part_header_len);\n\t\t\t\t\t}\n\t\t\t\t\t// Read the part data\n\t\t\t\t\tif (part_header_len >= len - 4) {\n\t\t\t\t\t\tthrow new ResponseException(Response.Status.INTERNAL_ERROR,\n\t\t\t\t\t\t\t\t\"Multipart header size exceeds MAX_HEADER_SIZE.\");\n\t\t\t\t\t}\n\t\t\t\t\tint part_data_start = boundary_idxs[bi] + part_header_len;\n\t\t\t\t\tint part_data_end = boundary_idxs[bi + 1] - 4;\n\n\t\t\t\t\tfbuf.position(part_data_start);\n\t\t\t\t\tif (content_type == null) {\n\t\t\t\t\t\t// Read the part into a string\n\t\t\t\t\t\tbyte[] data_bytes = new byte[part_data_end - part_data_start];\n\t\t\t\t\t\tfbuf.get(data_bytes);\n\t\t\t\t\t\tparms.put(part_name, new String(data_bytes, encoding));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Read it into a file\n\t\t\t\t\t\tString path = saveTmpFile(fbuf, part_data_start, part_data_end\n\t\t\t\t\t\t\t\t- part_data_start, file_name);\n\t\t\t\t\t\tif (!files.containsKey(part_name)) {\n\t\t\t\t\t\t\tfiles.put(part_name, path);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tint count = 2;\n\t\t\t\t\t\t\twhile (files.containsKey(part_name + count)) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfiles.put(part_name + count, path);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparms.put(part_name, file_name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (ResponseException re) {\n\t\t\t\tthrow re;\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new ResponseException(Response.Status.INTERNAL_ERROR, e.toString());\n\t\t\t}\n\t\t}",
"private void doMultipartFormDataPostRequest(String token, String url, byte[] fileData, String filename) throws Exception {\n\n\n CloseableHttpClient client = HttpClients.createDefault();\n\n try {\n HttpPost httpPost = new HttpPost(getBaseUrl() + url );\n httpPost.setHeader(\"X-Authentication\", token);\n\n\n MultipartEntityBuilder multipartBuilder = MultipartEntityBuilder.create();\n\n if (fileData == null || fileData.length <= 0) {\n throw new MfilesOperationException(\"The byte array must not be null\");\n }\n\n if (StringUtils.isBlank(filename)) {\n throw new MfilesOperationException( \"Filename must not be blank or null...\" );\n }\n\n File tempDir = FileUtils.getTempDirectory();\n String reversedFilename = StringUtils.reverse(filename);\n //get the first '.'\n int dotIndex = reversedFilename.indexOf('.');\n String extension = reversedFilename.substring(0, (dotIndex + 1));\n extension = StringUtils.reverse(extension);\n\n //Generate a random string to append to the name of the file\n //We do this to prevent a situation whereby multiple users\n //upload files that have the same name and extension.\n String tempFileName = filename.substring(0, filename.length() - extension.length()) + \"_\" + System.currentTimeMillis();\n\n tempFileName += extension;\n\n final File fileToUpload = new File(tempDir + File.separator + tempFileName);\n\n try {\n FileUtils.writeByteArrayToFile(fileToUpload, fileData);\n }catch(Exception ex) {\n LOG.error(\"An exception occurred while writing byte array data to the file for upload\", ex);\n throw new MfilesOperationException(ex.getMessage());\n } finally {\n\n }\n\n final FileBody fileBody = new FileBody(fileToUpload);\n\n multipartBuilder.addPart(\"file\", fileBody);\n\n //OR\n //multipartBuilder.addBinaryBody(\"file\", file, ContentType.APPLICATION_OCTET_STREAM, \"file.ext\");\n\n org.apache.http.HttpEntity multipart = multipartBuilder.build();\n httpPost.setEntity(multipart);\n\n System.out.println(\"executing file upload request \" + httpPost.getRequestLine());\n\n CloseableHttpResponse response = client.execute(httpPost);\n try {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"---------Response from server-----------\");\n System.out.println(response.getStatusLine());\n System.out.println(\"----------------------------------------\");\n\n org.apache.http.HttpEntity resEntity = response.getEntity();\n if (resEntity != null) {\n BufferedReader br = new BufferedReader(new InputStreamReader(resEntity.getContent()));\n String output = null;\n\n while ((output = br.readLine()) != null) {\n System.out.println(output);\n }\n }\n\n EntityUtils.consume(resEntity);\n\n } finally {\n response.close();\n }\n } finally {\n client.close();\n }\n }",
"public void addFormField(String name, String value) {\n writer.append(\"--\" + boundary).append(LINE_FEED);\n writer.append(\"Content-Disposition: form-data; name=\\\"\" + name + \"\\\"\")\n .append(LINE_FEED);\n writer.append(\"Content-Type: text/plain; charset=\" + charset).append(\n LINE_FEED);\n writer.append(LINE_FEED);\n writer.append(value).append(LINE_FEED);\n writer.flush();\n }",
"public void addFormField(String name, String value) {\n writer.append(\"--\" + boundary).append(LINE_FEED);\n writer.append(\"Content-Disposition: form-data; name=\\\"\" + name + \"\\\"\")\n .append(LINE_FEED);\n writer.append(\"Content-Type: text/plain; charset=\" + charset).append(\n LINE_FEED);\n writer.append(LINE_FEED);\n writer.append(value).append(LINE_FEED);\n writer.flush();\n }",
"public void addFormField(final String name, final String value) {\r\n writer.append(\"--\").append(boundary).append(LINE_FEED)\r\n .append(\"Content-Disposition: form-data; name=\\\"\").append(name)\r\n .append(\"\\\"\").append(LINE_FEED)\r\n .append(\"Content-Type: text/plain; charset=\").append(CHARSET)\r\n .append(LINE_FEED).append(LINE_FEED).append(value).append(LINE_FEED);\r\n }",
"@Test\r\n\tpublic void getFileName() {\n\t\tString test = \"form-data; name=\\\"uploadFile\\\"; filename=\\\"james.png\\\"\";\r\n\r\n\t\t/***When***/\r\n\t\tString result = futil.getFileName(test);\r\n\t\t/***Then***/\r\n\t\t//assertEquals(\"sally.png\", result);\r\n\t\tassertEquals(\"james.png\", result);\r\n\r\n\t}",
"private File processMultipartForm() {\n\n File storeDirectory = Configuration\n .getParameterValueAsFile(PENDING_DIR);\n\n int fileSizeLimit = Configuration\n .getParameterValueAsInt(METADATA_MAX_BYTES);\n\n DiskFileItemFactory factory = new DiskFileItemFactory();\n factory.setSizeThreshold(fileSizeLimit);\n\n RestletFileUpload upload = new RestletFileUpload(factory);\n\n List<FileItem> items;\n\n try {\n Request request = getRequest();\n items = upload.parseRequest(request);\n } catch (FileUploadException e) {\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, e\n .getMessage(), e);\n }\n\n for (FileItem fi : items) {\n if (fi.getName() != null) {\n String uuid = UUID.randomUUID().toString();\n File file = new File(storeDirectory, uuid);\n try {\n fi.write(file);\n return file;\n } catch (Exception consumed) {\n }\n }\n }\n\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST,\n \"no valid file uploaded\");\n }",
"public static String upload(String url, Map<String, String> formParameters, Vector<File> files) {\n\t\tString result = null;\n\t\tint bufferSize = 1024;\n\t\tHttpURLConnection httpURLConnection = null;\n\t\tFileInputStream fileInputStream = null;\n\t\tDataOutputStream dataOutputStream = null;\n\t\tBufferedInputStream inputStream = null;\n\t\tByteArrayOutputStream outputStream = null;\n\t\tString contentEncoding;\n\t\tbyte[] buffer = new byte[bufferSize];\n\t\tint index = 0;\n\t\tint readBytes = 0;\n\t\ttry {\n\t\t\thttpURLConnection = (HttpURLConnection) (new URL(url).openConnection());\n\t\t\thttpURLConnection.setConnectTimeout(Constant.CONNECT_TIMEOUT);\n\t\t\thttpURLConnection.setDoInput(true);\n\t\t\thttpURLConnection.setDoOutput(true);\n\t\t\thttpURLConnection.setUseCaches(false);\n\t\t\thttpURLConnection.setRequestMethod(\"POST\");\n\t\t\thttpURLConnection.setRequestProperty(\"Connection\", \"Keep-Alive\");\n\t\t\thttpURLConnection.setRequestProperty(\"Charset\", Constant.ENCODING);\n\t\t\thttpURLConnection.setRequestProperty(\"Content-Type\", new StringBuilder(\"multipart/form-data;boundary=\")\n\t\t\t\t\t.append(Constant.BOUNDARY).toString());\n\t\t\tif (cookie != null) {\n\t\t\t\thttpURLConnection.setRequestProperty(\"Cookie\", cookie);\n\t\t\t}\n\t\t\tdataOutputStream = new DataOutputStream(httpURLConnection.getOutputStream());\n\t\t\t// add form parameter\n\t\t\tif (formParameters != null) {\n\t\t\t\tfor (Map.Entry<String, String> entry : formParameters.entrySet()) {\n\t\t\t\t\tdataOutputStream.writeBytes(new StringBuilder(Constant.TWO_HYPHEN).append(Constant.BOUNDARY)\n\t\t\t\t\t\t\t.append(Constant.CR_LF).toString());\n\t\t\t\t\tdataOutputStream.writeBytes(new StringBuilder(\"Content-Disposition: form-data; name=\\\"\")\n\t\t\t\t\t\t\t.append(String.valueOf(entry.getKey())).append(\"\\\"\").append(Constant.CR_LF).toString());\n\t\t\t\t\tdataOutputStream.writeBytes(Constant.CR_LF);\n\t\t\t\t\tbuffer = String.valueOf(entry.getValue()).getBytes(Constant.ENCODING);\n\t\t\t\t\tdataOutputStream.write(buffer, 0, buffer.length);\n\t\t\t\t\tdataOutputStream.writeBytes(Constant.CR_LF);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// add file\n\t\t\tfor (File file : files) {\n\t\t\t\tif (!file.exists()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t++index;\n\t\t\t\tdataOutputStream.writeBytes(new StringBuilder(Constant.TWO_HYPHEN).append(Constant.BOUNDARY)\n\t\t\t\t\t\t.append(Constant.CR_LF).toString());\n\t\t\t\tdataOutputStream.writeBytes(new StringBuilder(\"Content-Disposition: form-data; name=\\\"file\")\n\t\t\t\t\t\t.append(index).append(\"\\\";filename=\\\"\").append(file.getName()).append(\"\\\"\")\n\t\t\t\t\t\t.append(Constant.CR_LF).toString());\n\t\t\t\tdataOutputStream.writeBytes(new StringBuilder(\"Content-Type: application/octet-stream\").append(\n\t\t\t\t\t\tConstant.CR_LF).toString());\n\t\t\t\tdataOutputStream.writeBytes(Constant.CR_LF);\n\t\t\t\tfileInputStream = new FileInputStream(file);\n\t\t\t\tbuffer = new byte[bufferSize];\n\t\t\t\twhile ((readBytes = fileInputStream.read(buffer)) > 0) {\n\t\t\t\t\tdataOutputStream.write(buffer, 0, readBytes);\n\t\t\t\t}\n\t\t\t\tdataOutputStream.writeBytes(Constant.CR_LF);\n\t\t\t\tfileInputStream.close();\n\t\t\t}\n\t\t\tdataOutputStream.writeBytes(new StringBuilder(Constant.TWO_HYPHEN).append(Constant.BOUNDARY)\n\t\t\t\t\t.append(Constant.TWO_HYPHEN).append(Constant.CR_LF).toString());\n\t\t\tdataOutputStream.flush();\n\t\t\t// get response\n\t\t\tgetCookie(httpURLConnection);\n\t\t\toutputStream = new ByteArrayOutputStream();\n\t\t\tif (httpURLConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n\t\t\t\tinputStream = new BufferedInputStream(httpURLConnection.getInputStream());\n\t\t\t\twhile ((readBytes = inputStream.read(buffer)) > 0) {\n\t\t\t\t\toutputStream.write(buffer, 0, readBytes);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontentEncoding = httpURLConnection.getContentEncoding();\n\t\t\tif (contentEncoding == null || contentEncoding.trim().endsWith(\"\")) {\n\t\t\t\tcontentEncoding = Constant.ENCODING;\n\t\t\t}\n\t\t\tresult = new String(outputStream.toByteArray(), contentEncoding);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tLog.e(TAG, ex.getMessage(), ex);\n\t\t}\n\t\tfinally {\n\t\t\tif (inputStream != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinputStream.close();\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex) {}\n\t\t\t}\n\t\t\tif (outputStream != null) {\n\t\t\t\ttry {\n\t\t\t\t\toutputStream.close();\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex) {}\n\t\t\t}\n\t\t\tif (fileInputStream != null) {\n\t\t\t\ttry {\n\t\t\t\t\tfileInputStream.close();\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex) {}\n\t\t\t}\n\t\t\tif (dataOutputStream != null) {\n\t\t\t\ttry {\n\t\t\t\t\tdataOutputStream.close();\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex) {}\n\t\t\t}\n\t\t\tif (httpURLConnection != null) {\n\t\t\t\ttry {\n\t\t\t\t\thttpURLConnection.disconnect();\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex) {}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public static String upload(String url, Map<String, String> formParameters, byte[][] datas) {\n\t\tString result = null;\n\t\tint bufferSize = 1024;\n\t\tHttpURLConnection httpURLConnection = null;\n\t\tFileInputStream fileInputStream = null;\n\t\tDataOutputStream dataOutputStream = null;\n\t\tBufferedInputStream inputStream = null;\n\t\tByteArrayOutputStream outputStream = null;\n\t\tString contentEncoding;\n\t\tbyte[] buffer = new byte[bufferSize];\n\t\tint index = 0;\n\t\tint readBytes = 0;\n\t\ttry {\n\t\t\thttpURLConnection = (HttpURLConnection) (new URL(url).openConnection());\n\t\t\thttpURLConnection.setConnectTimeout(Constant.CONNECT_TIMEOUT);\n\t\t\thttpURLConnection.setDoInput(true);\n\t\t\thttpURLConnection.setDoOutput(true);\n\t\t\thttpURLConnection.setUseCaches(false);\n\t\t\thttpURLConnection.setRequestMethod(\"POST\");\n\t\t\thttpURLConnection.setRequestProperty(\"Connection\", \"Keep-Alive\");\n\t\t\thttpURLConnection.setRequestProperty(\"Charset\", Constant.ENCODING);\n\t\t\thttpURLConnection.setRequestProperty(\"Content-Type\", new StringBuilder(\"multipart/form-data;boundary=\")\n\t\t\t\t\t.append(Constant.BOUNDARY).toString());\n\t\t\tif (cookie != null) {\n\t\t\t\thttpURLConnection.setRequestProperty(\"Cookie\", cookie);\n\t\t\t}\n\t\t\tdataOutputStream = new DataOutputStream(httpURLConnection.getOutputStream());\n\t\t\t// add form parameter\n\t\t\tif (formParameters != null) {\n\t\t\t\tfor (Map.Entry<String, String> entry : formParameters.entrySet()) {\n\t\t\t\t\tdataOutputStream.writeBytes(new StringBuilder(Constant.TWO_HYPHEN).append(Constant.BOUNDARY)\n\t\t\t\t\t\t\t.append(Constant.CR_LF).toString());\n\t\t\t\t\tdataOutputStream.writeBytes(new StringBuilder(\"Content-Disposition: form-data; name=\\\"\")\n\t\t\t\t\t\t\t.append(String.valueOf(entry.getKey())).append(\"\\\"\").append(Constant.CR_LF).toString());\n\t\t\t\t\tdataOutputStream.writeBytes(Constant.CR_LF);\n\t\t\t\t\tbuffer = String.valueOf(entry.getValue()).getBytes(Constant.ENCODING);\n\t\t\t\t\tdataOutputStream.write(buffer, 0, buffer.length);\n\t\t\t\t\tdataOutputStream.writeBytes(Constant.CR_LF);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// add file\n\t\t\tfor (byte[] data : datas) {\n\t\t\t\t++index;\n\t\t\t\tdataOutputStream.writeBytes(new StringBuilder(Constant.TWO_HYPHEN).append(Constant.BOUNDARY)\n\t\t\t\t\t\t.append(Constant.CR_LF).toString());\n\t\t\t\tdataOutputStream.writeBytes(new StringBuilder(\"Content-Disposition: form-data; name=\\\"file\")\n\t\t\t\t\t\t.append(index).append(\"\\\";filename=\\\"attach\").append(index).append(\".dat\\\"\")\n\t\t\t\t\t\t.append(Constant.CR_LF).toString());\n\t\t\t\tdataOutputStream.writeBytes(new StringBuilder(\"Content-Type: application/octet-stream\").append(\n\t\t\t\t\t\tConstant.CR_LF).toString());\n\t\t\t\tdataOutputStream.writeBytes(Constant.CR_LF);\n\t\t\t\tdataOutputStream.write(data);\n\t\t\t\tdataOutputStream.writeBytes(Constant.CR_LF);\n\t\t\t}\n\t\t\tdataOutputStream.writeBytes(new StringBuilder(Constant.TWO_HYPHEN).append(Constant.BOUNDARY)\n\t\t\t\t\t.append(Constant.TWO_HYPHEN).append(Constant.CR_LF).toString());\n\t\t\tdataOutputStream.flush();\n\t\t\t// get response\n\t\t\tgetCookie(httpURLConnection);\n\t\t\toutputStream = new ByteArrayOutputStream();\n\t\t\tif (httpURLConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n\t\t\t\tinputStream = new BufferedInputStream(httpURLConnection.getInputStream());\n\t\t\t\twhile ((readBytes = inputStream.read(buffer)) > 0) {\n\t\t\t\t\toutputStream.write(buffer, 0, readBytes);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontentEncoding = httpURLConnection.getContentEncoding();\n\t\t\tif (contentEncoding == null || contentEncoding.trim().endsWith(\"\")) {\n\t\t\t\tcontentEncoding = Constant.ENCODING;\n\t\t\t}\n\t\t\tresult = new String(outputStream.toByteArray(), contentEncoding);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tLog.e(TAG, ex.getMessage(), ex);\n\t\t}\n\t\tfinally {\n\t\t\tif (inputStream != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinputStream.close();\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex) {}\n\t\t\t}\n\t\t\tif (outputStream != null) {\n\t\t\t\ttry {\n\t\t\t\t\toutputStream.close();\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex) {}\n\t\t\t}\n\t\t\tif (fileInputStream != null) {\n\t\t\t\ttry {\n\t\t\t\t\tfileInputStream.close();\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex) {}\n\t\t\t}\n\t\t\tif (dataOutputStream != null) {\n\t\t\t\ttry {\n\t\t\t\t\tdataOutputStream.close();\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex) {}\n\t\t\t}\n\t\t\tif (httpURLConnection != null) {\n\t\t\t\ttry {\n\t\t\t\t\thttpURLConnection.disconnect();\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex) {}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public void addFilePart(String fieldName, File uploadFile)\n throws IOException {\n String fileName = uploadFile.getName();\n writer.append(\"--\" + boundary).append(LINE_FEED);\n writer.append(\n \"Content-Disposition: form-data; name=\\\"\" + fieldName\n + \"\\\"; filename=\\\"\" + fileName + \"\\\"\")\n .append(LINE_FEED);\n writer.append(\n \"Content-Type: \"\n + URLConnection.guessContentTypeFromName(fileName))\n .append(LINE_FEED);\n writer.append(\"Content-Transfer-Encoding: binary\").append(LINE_FEED);\n writer.append(LINE_FEED);\n writer.flush();\n\n FileInputStream inputStream = new FileInputStream(uploadFile);\n byte[] buffer = new byte[4096];\n int bytesRead = -1;\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n outputStream.flush();\n inputStream.close();\n\n writer.append(LINE_FEED);\n writer.flush();\n }",
"Map<String, List<String>> getFormDataMultivalue();",
"private String extractFileName(Part part) {\n\nString contentDisp = part.getHeader(\"content-disposition\");\n\nString[] items = contentDisp.split(\";\");\n\nfor (String s : items) {\n\nif (s.trim().startsWith(\"filename\")) {\n\nreturn s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\n}\n\n}\n\nreturn \"\";\n\n}",
"@Override\n public String getServletInfo() {\n return \"Handles file upload data from application/octet-stream, and multipart/form-data.\";\n }",
"public String copy(MultipartFile file) throws IOException;",
"Path fileToUpload();",
"String saveData(MultipartFile md5File) throws IOException;",
"private void buildPart(DataOutputStream dataOutputStream, byte[] fileData, String fileName) throws IOException {\n dataOutputStream.writeBytes(twoHyphens + boundary + lineEnd);\n dataOutputStream.writeBytes(\"Content-Disposition: form-data; name=\\\"image\\\"; filename=\\\"\" + fileName + \"\\\"\" + lineEnd);\n // dataOutputStream.writeBytes(\"Content-Type: image/jpeg\" + lineEnd);\n dataOutputStream.writeBytes(lineEnd);\n\n ByteArrayInputStream fileInputStream = new ByteArrayInputStream(fileData);\n int bytesAvailable = fileInputStream.available();\n\n int maxBufferSize = 1024 * 1024;\n int bufferSize = Math.min(bytesAvailable, maxBufferSize);\n byte[] buffer = new byte[bufferSize];\n\n // read file and write it into form...\n int bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n\n while (bytesRead > 0) {\n dataOutputStream.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n dataOutputStream.writeBytes(lineEnd);\n }",
"@Test\n void buildWithFormFieldPart() throws MalformedURLException {\n MultipartFileBuilder builder = new MultipartFileBuilderImpl(\n new File(System.getProperty(\"java.io.tmpdir\")));\n final byte[] value = UUID.randomUUID().toString().getBytes(StandardCharsets.UTF_8);\n DataUrl dataUrl = new DataUrlBuilder()\n .setData(value)\n .setCharset(StandardCharsets.UTF_8.name())\n .setEncoding(DataUrlEncoding.BASE64)\n .setMimeType(MediaType.IMAGE_PNG_VALUE)\n .build();\n StepVerifier\n .create(\n builder.build(createFormFieldPart(new DataUrlSerializer().serialize(dataUrl), \"file\")))\n .assertNext(multipartFile -> {\n try {\n assertFalse(multipartFile.isEmpty());\n assertEquals(\"file\", multipartFile.getName());\n assertEquals(MediaType.IMAGE_PNG_VALUE, multipartFile.getContentType());\n assertEquals(value.length, (int) multipartFile.getSize());\n assertArrayEquals(value, multipartFile.getBytes());\n } catch (IOException e) {\n throw ServiceException.internalServerError(\"Fatal error\", e);\n } finally {\n FileAwareMultipartFile.delete(multipartFile);\n }\n })\n .verifyComplete();\n }",
"@Test\n public void filesPostTest() throws ApiException {\n FilePayload filePayload = null;\n Integer expiresAfterDays = null;\n FileInfo response = api.filesPost(filePayload, expiresAfterDays);\n\n // TODO: test validations\n }",
"private FormData extractBodyToFormData(final HttpServletRequest request, final Form form) throws IOException, JSONException {\n final FormData formData = new FormData();\n\n // read request body and convert request body to json\n JSONObject jsonBody = new JSONObject(request.getReader().lines().collect(Collectors.joining()));\n Iterator i = jsonBody.keys();\n while (i.hasNext()) {\n String key = String.valueOf(i.next());\n String value = jsonBody.getString(key);\n\n if (key != null && value != null) {\n\n // convert json to field data\n Element element = FormUtil.findElement(key, form, new FormData());\n if (element != null)\n formData.addRequestParameterValues(FormUtil.getElementParameterName(element), new String[]{value});\n }\n }\n\n formData.addRequestParameterValues(AssignmentCompleteButton.DEFAULT_ID, new String[]{\"true\"});\n\n // use field \"ID\" as primary key if possible\n if (jsonBody.has(FormUtil.PROPERTY_ID)) {\n formData.setPrimaryKeyValue(jsonBody.getString(FormUtil.PROPERTY_ID));\n }\n\n formData.setDoValidation(true);\n\n return formData;\n }",
"void whenUploadFile(MultipartFile file, HttpServletRequest request);",
"@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsWithoutbpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idDIP\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n // @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);",
"private void addFilesToWriter()\n throws Exception {\n Set<Map.Entry<String, Map.Entry<String, byte[]>>> set = files.entrySet();\n for (Map.Entry<String, Map.Entry<String, byte[]>> me : set) {\n writer.append(\"--\" + boundary).append(LINE_FEED);\n writer.append(\n \"Content-Disposition: form-data; name=\\\"\" + me.getKey()\n + \"\\\"; filename=\\\"\" + me.getValue().getKey() + \"\\\"\")\n .append(LINE_FEED);\n writer.append(\n \"Content-Type: \"\n + URLConnection.guessContentTypeFromName(me.getValue().getKey()))\n .append(LINE_FEED);\n writer.append(LINE_FEED);\n writer.flush();\n\n outputStream.write(me.getValue().getValue(), 0, me.getValue().getValue().length);\n outputStream.flush();\n\n writer.append(LINE_FEED);\n writer.flush();\n }\n }",
"UploadInfo advancedUpload(AdvanceFile file);",
"public void addFilePart(String fieldName, File uploadFile)\n throws IOException {\n String fileName = uploadFile.getName();\n\n String fieldContent = \"--\" + boundary + LINE_FEED;\n fieldContent += \"Content-Disposition: form-data; name=\\\"\" + fieldName\n + \"\\\"; filename=\\\"\" + fileName + \"\\\"\" + LINE_FEED;\n fieldContent += \"Content-Type: \"\n + URLConnection.guessContentTypeFromName(fileName) + LINE_FEED;\n fieldContent += \"Content-Transfer-Encoding: binary\" + LINE_FEED;\n fieldContent += LINE_FEED;\n // file content would go here\n fieldContent += LINE_FEED;\n contentLength += fieldContent.getBytes(charset).length;\n contentLength += uploadFile.length();\n files.add(new FilePart(fieldName, uploadFile));\n }",
"public String guardarArchivo(MultipartFile archivo) throws IOException;",
"public boolean getSendFileAsPostBody() {\n // If there is one file with no parameter name, the file will\n // be sent as post body.\n HTTPFileArg[] files = getHTTPFiles();\n return (files.length == 1)\n && (files[0].getPath().length() > 0)\n && (files[0].getParamName().length() == 0);\n }",
"private String extractFileName(Part part) {\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\n\t\tString[] items = contentDisp.split(\";\");\n\t\tfor (String s : items) {\n\t\t\tif (s.trim().startsWith(\"filename\")) {\n\t\t\t\t// C:\\file1.zip\n\t\t\t\t// C:\\Note\\file2.zip\n\t\t\t\tString clientFileName = s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\t\t\t\tclientFileName = clientFileName.replace(\"\\\\\", \"/\");\n\t\t\t\tint i = clientFileName.lastIndexOf('/');\n\t\t\t\t// file1.zip\n\t\t\t\t// file2.zip\n\t\t\t\treturn clientFileName.substring(i + 1);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private String extractFileName(Part part) {\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\n\t\tString[] items = contentDisp.split(\";\");\n\t\tfor (String s : items) {\n\t\t\tif (s.trim().startsWith(\"filename\")) {\n\t\t\t\t// C:\\file1.zip\n\t\t\t\t// C:\\Note\\file2.zip\n\t\t\t\tString clientFileName = s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\t\t\t\tclientFileName = clientFileName.replace(\"\\\\\", \"/\");\n\t\t\t\tint i = clientFileName.lastIndexOf('/');\n\t\t\t\t// file1.zip\n\t\t\t\t// file2.zip\n\t\t\t\treturn clientFileName.substring(i + 1);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"boolean isMultiPart();",
"public boolean getSendFileAsPostBody() {\n // If there is one file with no parameter name, the file will\n // be sent as post body.\n HTTPFileArg[] files = getHTTPFiles();\n return (files.length == 1)\n && (files[0].getPath().length() > 0)\n && (files[0].getParamName().length() == 0);\n }",
"public Long createFileUpload(FileUpload fileUpload, InputStream fileInputStream) throws AppException;",
"private void addFilesInRequestEntity(MultipartEntity reqEntity) {\n if (filePath_image != null && filePath_image.length > 0) {\n\n for (int i = 0; i < filePath_image.length; i++) {\n if (filePath_image[i] != null) {\n File file = new File(filePath_image[i]);\n\n FileBody fileBodyVideo = new FileBody(file);\n reqEntity.addPart(keyForUploadFileImage + i, fileBodyVideo);\n System.out.println(keyForUploadFileImage + i + \" RestClient: File \" + file);\n }\n }\n }\n if (filePath_video != null && filePath_video.length() > 0) {\n File file = new File(filePath_video);\n\n FileBody fileBodyVideo = new FileBody(file);\n reqEntity.addPart(keyForUploadFileVideo, fileBodyVideo);\n System.out.println(keyForUploadFileVideo + \" RestClient: File \" + file);\n }\n }",
"private HttpRequest applyMultipartDataTo(HttpRequest httpRequest, Report report) {\n httpRequest.part(\"report[identifier]\", report.getIdentifier());\n if (report.getFiles().length == 1) {\n Fabric.getLogger().d(\"CrashlyticsCore\", \"Adding single file \" + report.getFileName() + \" to report \" + report.getIdentifier());\n return httpRequest.part(\"report[file]\", report.getFileName(), \"application/octet-stream\", report.getFile());\n }\n int n = 0;\n File[] arrfile = report.getFiles();\n int n2 = arrfile.length;\n int n3 = 0;\n do {\n Object object = httpRequest;\n if (n3 >= n2) return object;\n object = arrfile[n3];\n Fabric.getLogger().d(\"CrashlyticsCore\", \"Adding file \" + ((File)object).getName() + \" to report \" + report.getIdentifier());\n httpRequest.part(\"report[file\" + n + \"]\", ((File)object).getName(), \"application/octet-stream\", (File)object);\n ++n;\n ++n3;\n } while (true);\n }",
"@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\t// Verify the post has the correct encoding\n\t\tif ( ! ServletFileUpload.isMultipartContent(request) ) {\n\t\t\tsendErrMsg(response, \"Invalid request contents format for this service.\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Get the contents from the post request\n\t\tString username = null;\n\t\ttry {\n\t\t\tusername = DashboardUtils.cleanUsername(request.getUserPrincipal().getName().trim());\n\t\t} catch (Exception ex) {\n\t\t\t; // leave username null for error message later\n\t\t}\n\t\t// Get the contents from the post request\n\t\tString datasetIds = null;\n\t\tString uploadTimestamp = null;\n\t\tString isSupToken = null;\n\t\tList<FileItem> fileList = null;\n File uploadFile = null;\n\t\ttry {\n\t\t\tMap<String,List<FileItem>> paramMap = metadataUpload.parseParameterMap(request);\n\t\t\ttry {\n\t\t\t\tList<FileItem> itemList;\n\n\t\t\t\titemList = paramMap.get(\"datasetids\");\n\t\t\t\tif ( (itemList != null) && (itemList.size() == 1) ) {\n\t\t\t\t\tdatasetIds = itemList.get(0).getString();\n\t\t\t\t}\n\t\n\t\t\t\titemList = paramMap.get(\"timestamp\");\n\t\t\t\tif ( (itemList != null) && (itemList.size() == 1) ) {\n\t\t\t\t\tuploadTimestamp = itemList.get(0).getString();\n\t\t\t\t}\n\t\n\t\t\t\titemList = paramMap.get(\"supplemental\");\n\t\t\t\tif ( (itemList != null) && (itemList.size() == 1) ) {\n\t\t\t\t\tisSupToken = itemList.get(0).getString();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfileList = paramMap.get(\"metadataupload\");\n//\t\t\t\tif ( (itemList != null) && (itemList.size() == 1) ) {\n//\t\t\t\t\tmetadataItem = itemList.get(0);\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t} finally {\n\t\t\t\t// Delete everything except for the uploaded metadata file\n\t\t\t\tfor ( List<FileItem> itemList : paramMap.values() ) {\n\t\t\t\t\tif ( ! itemList.equals(fileList) ) {\n \t\t\t\t\tfor ( FileItem item : itemList ) {\n\t\t\t\t\t\t\titem.delete();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Verify page contents seem okay\n\t\t\tDashboardConfigStore configStore = DashboardConfigStore.get(true);\n\t\t\tif ( (username == null) || (datasetIds == null) || (uploadTimestamp == null) ||\n\t\t\t\t (fileList == null) || ! Users.validateUser(username) ) {\n\t\t\t\tif ( fileList != null ) {\n\t\t\t\t\tfor ( FileItem item : fileList ) {\n\t\t\t\t\t\titem.delete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsendErrMsg(response, \"Invalid request contents for this service.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tboolean isSupplemental = isSupToken != null ? Boolean.parseBoolean(isSupToken) : false;\n\t\t\t// TODO: validate parameters\n\t\t\t// save file\n\t\t\tArrayList<String> idList = DashboardUtils.decodeStringArrayList(datasetIds);\n\t\t\tif ( idList.size() > 1 && ! isSupplemental ) {\n\t\t\t\tthrow new IllegalArgumentException(\"Dataset metadata document can only be uploaded for one dataset.\");\n\t\t\t}\n\t\t\tString version = configStore.getUploadVersion();\n for ( FileItem metadataItem : fileList ) {\n \t\t\tString uploadFilename = DashboardUtils.baseName(metadataItem.getName());\n uploadFile = getUploadedFile(metadataItem);\n \t\t\tfor (String datasetId : idList) {\n try ( InputStream is = new FileInputStream(uploadFile);) {\n \t\t\t\tString filename = isSupplemental ? uploadFilename : MetadataFileHandler.metadataFilename(datasetId); \n \t\t\t\tMetadataFileHandler metadataHandler = configStore.getMetadataFileHandler();\n \t\t\t\t// TODO: backup existing ?\n \n DashboardMetadata metadata = \n metadataHandler.saveMetadataFileItem(datasetId, username, uploadTimestamp, \n \t\t\t filename, version, is);\n \t\t\t\t// TODO: validate metadata XML\n \t\t\t\t// TODO: generate PDF\n \t\t\t\t\n \t\t\t\tif ( isSupplemental ) {\n \t\t\t\t\tDataFileHandler cruiseHandler = configStore.getDataFileHandler();\n \t\t\t\t\tcruiseHandler.addAddlDocTitleToDataset(datasetId, metadata);\n \t\t\t\t} else {\n \t\t\t\t\tDataFileHandler df = configStore.getDataFileHandler();\n \t\t\t\t\tDashboardDataset dataset = df.getDatasetFromInfoFile(datasetId);\n \t\t\t\t\tdataset.setMdTimestamp(uploadTimestamp);\n \t\t\t\t\tdf.saveDatasetInfoToFile(dataset, \"Updating metadata timestamp on user upload metadata file.\");\n \t\t\t\t}\n \t\t\t}\n }\n if ( uploadFile != null ) {\n uploadFile.delete();\n uploadFile = null;\n }\n }\n\t\t\t\n\t\t\t// Send the success response\n\t\t\tresponse.setStatus(HttpServletResponse.SC_OK);\n\t\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\n\t\t\ttry ( PrintWriter respWriter = response.getWriter(); ) {\n \t\t\trespWriter.println(DashboardUtils.SUCCESS_HEADER_TAG);\n \t\t\tresponse.flushBuffer();\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tsendErrMsg(response, \"Error processing the request\\n\" + ex.getMessage());\n\t\t\treturn;\n\t\t} finally {\n if ( uploadFile != null ) {\n uploadFile.delete();\n }\n\t\t}\n\t}",
"public void addFile(MultipartFile multipartFile, String username) throws IOException {\n InputStream fis = multipartFile.getInputStream();\n // create an output buffer\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n // write data to the output buffer\n int nRead;\n byte[] data = new byte[1024];\n while ((nRead = fis.read(data, 0, data.length)) != -1) {\n buffer.write(data, 0, nRead);\n }\n buffer.flush();\n\n Integer userID = usersMapper.getUser(username).getUserID();\n String fileName = multipartFile.getOriginalFilename();\n Integer fileID = 0;\n String contentType = multipartFile.getContentType();\n String fileSize = String.valueOf(multipartFile.getSize());\n byte[] fileData = buffer.toByteArray();\n\n Files file = new Files(fileID, fileName, contentType,\n fileSize, userID, fileData);\n filesMapper.insertFile(file);\n }",
"@Override\r\n public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n Context context =\r\n ReadOnlyContext.getContext(Constants.HTTP_REQUEST.REST.uri,\r\n request);\r\n try {\r\n MultipartParser parser =\r\n new MultipartParser(request, Long.MAX_VALUE, true, null);\r\n Part part = parser.readNextPart();\r\n if (part != null && part.isFile()) {\r\n if (part.getName().equals(\"file\")) {\r\n String temp = saveAndGetId(context, (FilePart) part);\r\n sendResponse(HttpServletResponse.SC_CREATED, temp, response);\r\n } else {\r\n sendResponse(HttpServletResponse.SC_BAD_REQUEST,\r\n \"Content must be named \\\"file\\\"\",\r\n response);\r\n }\r\n } else {\r\n if (part == null) {\r\n sendResponse(HttpServletResponse.SC_BAD_REQUEST,\r\n \"No data sent.\",\r\n response);\r\n } else {\r\n sendResponse(HttpServletResponse.SC_BAD_REQUEST,\r\n \"No extra parameters allowed\",\r\n response);\r\n }\r\n }\r\n } catch (AuthzException ae) {\r\n throw RootException.getServletException(ae,\r\n request,\r\n ACTION_LABEL,\r\n new String[0]);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n sendResponse(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e\r\n .getClass().getName()\r\n + \": \" + e.getMessage(), response);\r\n }\r\n }",
"private String parsePostRequest(StringTokenizer parse) {\n\t\tString fileRequested = parse.nextToken();\r\n\r\n\t\treturn null;\r\n\t}",
"public String doUploadFile(Map<String,Object> mapInfo);",
"public void prepareData() throws Exception {\n for (int i = 0; i < this.f4804b.length; i++) {\n try {\n byte[] readFile = FileUtil.readFile(this.f4804b[i]);\n addPart(new String[]{String.format(\"Content-Disposition: form-data; name=\\\"%s_%d\\\"; filename=\\\"%s_%d.jpg\\\"\", new Object[]{this.f4803a, Integer.valueOf(i), this.f4803a, Integer.valueOf(i)}), \"Content-Type: image/webp\", String.format(\"Content-Length: %d\", new Object[]{Integer.valueOf(readFile.length)})}, readFile);\n } catch (IOException e) {\n }\n }\n }",
"public Enumeration<String> getFileParameterNames() {\n return this.multipart.getFileNames();\n }",
"@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithoutBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI, // added by Mayur for the request which needs this parametr\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);",
"public Blob downloadFile(String inKey, String inFileName);",
"public void PDFAttachGenericFile(PDDocument doc, String filename, String relationship, String description,\n\t\t\t\t\t\t\t\t\t String subType, byte[] data) throws IOException {\n\t\tfileAttached = true;\n\n\t\tPDComplexFileSpecification fs = new PDComplexFileSpecification();\n\t\tfs.setFile(filename);\n\n\t\tCOSDictionary dict = fs.getCOSObject();\n\t\tdict.setName(\"AFRelationship\", relationship);\n\t\tdict.setString(\"UF\", filename);\n\t\tdict.setString(\"Desc\", description);\n\n\t\tByteArrayInputStream fakeFile = new ByteArrayInputStream(data);\n\t\tPDEmbeddedFile ef = new PDEmbeddedFile(doc, fakeFile);\n//\t\tef.addCompression();\n\t\tef.setSubtype(subType);\n\t\tef.setSize(data.length);\n\t\tef.setCreationDate(new GregorianCalendar());\n\n\t\tef.setModDate(GregorianCalendar.getInstance());\n\n\t\tfs.setEmbeddedFile(ef);\n\n\t\t// In addition make sure the embedded file is set under /UF\n\t\tdict = fs.getCOSObject();\n\t\tCOSDictionary efDict = (COSDictionary) dict.getDictionaryObject(COSName.EF);\n\t\tCOSBase lowerLevelFile = efDict.getItem(COSName.F);\n\t\tefDict.setItem(COSName.UF, lowerLevelFile);\n\n\t\t// now add the entry to the embedded file tree and set in the document.\n\t\tPDDocumentNameDictionary names = new PDDocumentNameDictionary(doc.getDocumentCatalog());\n\t\tPDEmbeddedFilesNameTreeNode efTree = names.getEmbeddedFiles();\n\t\tif (efTree == null) {\n\t\t\tefTree = new PDEmbeddedFilesNameTreeNode();\n\t\t}\n\n\t\tMap<String, PDComplexFileSpecification> namesMap = new HashMap<>();\n\n\t\tMap<String, PDComplexFileSpecification> oldNamesMap = efTree.getNames();\n\t\tif (oldNamesMap != null) {\n\t\t\tfor (String key : oldNamesMap.keySet()) {\n\t\t\t\tnamesMap.put(key, oldNamesMap.get(key));\n\t\t\t}\n\t\t}\n\t\tnamesMap.put(filename, fs);\n\t\tefTree.setNames(namesMap);\n\n\t\tnames.setEmbeddedFiles(efTree);\n\t\tdoc.getDocumentCatalog().setNames(names);\n\n\t\t// AF entry (Array) in catalog with the FileSpec\n\t\tCOSBase AFEntry = (COSBase) doc.getDocumentCatalog().getCOSObject().getItem(\"AF\");\n\t\tif ((AFEntry == null)) {\n\t\t\tCOSArray cosArray = new COSArray();\n\t\t\tcosArray.add(fs);\n\t\t\tdoc.getDocumentCatalog().getCOSObject().setItem(\"AF\", cosArray);\n\t\t} else if (AFEntry instanceof COSArray) {\n\t\t\tCOSArray cosArray = (COSArray) AFEntry;\n\t\t\tcosArray.add(fs);\n\t\t\tdoc.getDocumentCatalog().getCOSObject().setItem(\"AF\", cosArray);\n\t\t} else if ((AFEntry instanceof COSObject) &&\n\t\t\t\t((COSObject) AFEntry).getObject() instanceof COSArray) {\n\t\t\tCOSArray cosArray = (COSArray) ((COSObject) AFEntry).getObject();\n\t\t\tcosArray.add(fs);\n\t\t} else {\n\t\t\tthrow new IOException(\"Unexpected object type for PDFDocument/Catalog/COSDictionary/Item(AF)\");\n\t\t}\n\t}",
"abstract Function<Multipart.FileInfo, play.libs.streams.Accumulator<ByteString, Http.MultipartFormData.FilePart<A>>> createFilePartHandler();",
"@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String,String> params = new HashMap<String, String>();\n\n params.put(\"Content-Type\", \"multipart/form-data; boundary=\" + BOUNDARY+\"; charset=utf-8\");\n return params;\n }",
"@Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale, // added by Sanket for the request which needs this parametr\n Callback<JsonObject> response);",
"void parseBody(Map<String, String> files) throws IOException, ResponseException;",
"@POST\n\t\t\t@Path(\"/formdata\")\n\t\t\t@Consumes(MediaType.MULTIPART_FORM_DATA)\n\t\t\t@Produces({MediaType.APPLICATION_XML})\n\t\t\tpublic Rows postFormDataAttachment(@Context UriInfo uriInfo,@Context HttpHeaders header,@FormDataParam(\"body\") String xml) {\n\t\t\t\tRows rows = null;\n\t\t\t\tAttachmentDao post;\n\t\t\t\ttry {\n\t\t\t\t\tpost=new AttachmentDao(uriInfo,header);\n\t\t\t\t\tpost.setPostXml(xml.trim());\n\t\t\t\t\tpost.postAttachmentContainer();\n\t\t\t\t\trows=post.getAttachmentRowModified();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (DaoException d) {\n\t\t\t\t\t d.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}",
"@POST\n\t@Path(\"/upload\")\n\t@Consumes(MediaType.MULTIPART_FORM_DATA)\n\tpublic Response uploadFile(\n\t\t\t@FormDataParam(\"file\") InputStream uploadedInputStream,\n\t\t\t@FormDataParam(\"file\") FormDataContentDisposition fileDetail) {\n\t\tString filename = fileDetail.getFileName();\n\t\tFtpsFileList.upload(filename, uploadedInputStream);\n\t\tString output = \"File uploaded to linux success !\" ;\n\t\treturn Response.status(200).entity(output).build();\n\t}",
"public static HttpResponse uploadFileAliyun(File file, String aliyunAddress, String pathtofile, String contentType)\n {\n // String authorization = generateOSSAuthHeader(ACCESSKEY_ID, accessKeySecret, \"POST\", \"/xeduo?uploads\");\n String date = getDateGMT();\n Auth auth = new Auth();\n HttpRequest request = HttpUtil.createPost(aliyunAddress);\n // String policy;\n String policy = \"{\\\"expiration\\\": \\\"2120-01-01T12:00:00.000Z\\\",\"\n + \"\\\"conditions\\\": [{\\\"bucket\\\":\\\"xeduo\\\"}]}\";\n String encodePolicy = new String(Base64.getEncoder().encode(policy.getBytes()));\n request.header(\"Date\",date);\n //add form\n request.form(\"key\", pathtofile+file.getName());\n request.form(\"OSSAccessKeyId\", auth.getId());\n request.form(\"Policy\", encodePolicy);//needs to be encoded as well.\n request.form(\"Signature\", generateOSSSignature(auth.getSecret(), encodePolicy));\n request.form(\"Content-Disposition\",\"attachment; filename=\"+file.getName());\n request.form(\"file\", file);\n request.form(\"x-oss-meta-uuid\",UUID.fastUUID());\n request.form(\"submit\",\"Upload to OSS\");\n if(!StrUtil.isBlank(contentType))\n {\n request.form(\"Content-Type\",contentType);\n }\n HttpResponse response = request.execute();\n System.out.println(request);\n System.out.println(response);\n return response;\n }",
"List<String> uploadMultipleFilesFromBody(AmazonS3 connection,\n String bucketName,\n String path,\n String body,\n Boolean usingFilePicker,\n Date expiryDateTime)\n throws InterruptedException, AppsmithPluginException {\n\n\n List<MultipartFormDataDTO> multipartFormDataDTOs;\n try {\n multipartFormDataDTOs = Arrays.asList(objectMapper.readValue(\n body,\n MultipartFormDataDTO[].class));\n } catch (IOException e) {\n throw new AppsmithPluginException(\n AppsmithPluginError.PLUGIN_EXECUTE_ARGUMENT_ERROR,\n \"Unable to parse content. Expected to receive an object with `data` and `type`\"\n );\n }\n\n ArrayList<String> listOfFiles = new ArrayList<>();\n multipartFormDataDTOs.forEach(multipartFormDataDTO -> {\n final String filePath = path + multipartFormDataDTO.getName();\n byte[] payload;\n if (Boolean.TRUE.equals(usingFilePicker)) {\n\n String encodedPayload = (String) multipartFormDataDTO.getData();\n /*\n * - For files uploaded using Filepicker.xyz.base64, body format is \"<content-type>;base64,<actual-\n * base64-encoded-payload>\".\n * - Strip off the redundant part in the beginning to get actual payload.\n */\n if (encodedPayload.contains(BASE64_DELIMITER)) {\n List<String> bodyArrayList = Arrays.asList(encodedPayload.split(BASE64_DELIMITER));\n encodedPayload = bodyArrayList.get(bodyArrayList.size() - 1);\n }\n\n try {\n payload = Base64.getDecoder().decode(encodedPayload);\n } catch (IllegalArgumentException e) {\n throw new AppsmithPluginException(\n AppsmithPluginError.PLUGIN_EXECUTE_ARGUMENT_ERROR,\n \"File content is not base64 encoded. File content needs to be base64 encoded when the \" +\n \"'File Data Type: Base64/Text' field is selected 'Yes'.\"\n );\n }\n } else {\n payload = ((String) multipartFormDataDTO.getData()).getBytes();\n }\n\n InputStream inputStream = new ByteArrayInputStream(payload);\n TransferManager transferManager = TransferManagerBuilder.standard().withS3Client(connection).build();\n final ObjectMetadata objectMetadata = new ObjectMetadata();\n // Only add content type if the user has mentioned it in the body\n if (multipartFormDataDTO.getType() != null) {\n objectMetadata.setContentType(multipartFormDataDTO.getType());\n }\n try {\n transferManager.upload(bucketName, filePath, inputStream, objectMetadata).waitForUploadResult();\n } catch (InterruptedException e) {\n throw new AppsmithPluginException(\n AppsmithPluginError.PLUGIN_ERROR,\n \"File upload interrupted.\"\n );\n }\n\n listOfFiles.add(filePath);\n });\n\n return getSignedUrls(connection, bucketName, listOfFiles, expiryDateTime);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // detecta si es una carga multimedia\n if (!ServletFileUpload.isMultipartContent(request)) {\n // detente si no\n PrintWriter writer = response.getWriter();\n writer.println (\"Error: el formulario debe contener enctype = multipart / form-data\");\n writer.flush();\n return;\n }\n\n // Configurar parámetros de carga\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // Establecer los archivos temporales de umbral de memoria se generarán y almacenarán en el directorio temporal\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n // Establecer el directorio de almacenamiento temporal\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\n ServletFileUpload upload = new ServletFileUpload(factory);\n\n // Establecer el valor máximo de carga de archivos\n upload.setFileSizeMax(MAX_FILE_SIZE);\n\n // Establecer el valor máximo de solicitud (incluidos los datos de archivo y formulario)\n upload.setSizeMax(MAX_REQUEST_SIZE);\n\n // procesamiento chino\n upload.setHeaderEncoding(\"UTF-8\");\n\n // Construye una ruta temporal para almacenar archivos cargados\n // Esta ruta es relativa al directorio actual de la aplicación\n String uploadPath = request.getServletContext().getRealPath(\"./\") + File.separator + UPLOAD_DIRECTORY;\n\n // Crear si el directorio no existe\n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n\n try {\n // Analiza el contenido solicitado para extraer los datos del archivo\n @SuppressWarnings(\"unchecked\")\n List<FileItem> formItems = upload.parseRequest(request);\n\n if (formItems != null && formItems.size() > 0) {\n // iterar sobre los datos del formulario\n for (FileItem item : formItems) {\n // manejar campos que no están en el formulario\n if (!item.isFormField()) {\n String fileName = new File(item.getName()).getName();\n String filePath = uploadPath + File.separator + fileName;\n File storeFile = new File(filePath);\n // Salida de la ruta de carga del archivo en la consola\n System.out.println(filePath);\n // guardar archivo en el disco duro\n item.write(storeFile);\n request.setAttribute (\"mensaje\", \"¡Archivo cargado correctamente!\");\n hilo = new HiloCargadeDatos(storeFile);\n hilo.start();\n }\n }\n }\n } catch (Exception ex) {\n request.setAttribute (\"mensaje\", \"Mensaje de error:\" + ex.getMessage ());\n }\n\n // Nos redirigimos a la página para que nos muestre los errores\n request.getServletContext().getRequestDispatcher(\"/subir.jsp\").forward(request, response);\n }",
"FileData(String fileName, String contentType) {\n this.fileName = fileName;\n this.contentType = contentType;\n }",
"UploadInfo simpleUpload(SimpleFile file);",
"private void addParametersToWriter() {\n Set<Map.Entry<String, String>> set = params.entrySet();\n for (Map.Entry<String, String> me : set) {\n writer.append(\"--\" + boundary).append(LINE_FEED);\n writer.append(\"Content-Disposition: form-data; name=\\\"\" + me.getKey() + \"\\\"\")\n .append(LINE_FEED);\n writer.append(\"Content-Type: text/plain; charset=\" + super.charset).append(\n LINE_FEED);\n writer.append(LINE_FEED);\n writer.append(me.getValue()).append(LINE_FEED);\n writer.flush();\n }\n }",
"public MultiPart(){}",
"void fileUploaded(String path);",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String codeLabWorker1 = \"\";\n if (!ServletFileUpload.isMultipartContent(request)) {\n\t\t PrintWriter writer = response.getWriter();\n\t\t writer.println(\"Error: enctype=multipart/form-data\");\n\t\t writer.flush();\n\t\t return;\n\t\t}\n\n DiskFileItemFactory factory = new DiskFileItemFactory();\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n \n ServletFileUpload upload = new ServletFileUpload(factory); \n upload.setFileSizeMax(MAX_FILE_SIZE);\n upload.setSizeMax(MAX_REQUEST_SIZE);\n String uploadPath = getServletContext().getRealPath(\"./\") + File.separator + UPLOAD_DIRECTORY;\n \n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n try {\n @SuppressWarnings(\"unchecked\")\n List<FileItem> formItems = upload.parseRequest(request);\n if (formItems != null && formItems.size() > 0) {\n File storeFile = null;\n String codeResult = \"\";\n String codeLabWorker = \"\"; \n String dateToday = getDateToday();\n String time = getTime();\n for (FileItem item : formItems) { \n if (!item.isFormField()) {\n String fileName = new File(item.getName()).getName();\n String filePath = uploadPath + File.separator + fileName;\n storeFile = new File(filePath);\n System.out.println(filePath);\n item.write(storeFile); \n }else{\n String fieldName = item.getFieldName();\n String fieldValue = item.getString();\n if (fieldName.equals(\"codeLabWorker\")) {\n codeLabWorker = fieldValue;\n codeLabWorker1=codeLabWorker;\n }else if (fieldName.equals(\"codeResult\")) {\n codeResult = fieldValue;\n }\n } \n }\n //Enviar a guardar\n LabWorkerDB labDB = new LabWorkerDB();\n labDB.updateResult(codeLabWorker, storeFile, dateToday, time, codeResult);\n JOptionPane.showMessageDialog(null,\"Se guardo con exito\");\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null,ex);\n } \n request.setAttribute(\"username\", codeLabWorker1);\n \n request.getRequestDispatcher(\"/labWorkerGUI/principallabWorker.jsp\").forward(request, response);\n }",
"public void getFile(byte[] data, String name,String server) throws RemoteException;",
"@Test\n void buildMultiValueMap() throws IOException {\n MultiValueMap<String, Part> multiPartData = new LinkedMultiValueMap<>();\n final byte[] content0 = \"image-content\".getBytes(StandardCharsets.UTF_8);\n multiPartData.add(\n \"part\",\n createFilePart(content0, \"part\", MediaType.IMAGE_JPEG, \"img.jpg\"));\n final byte[] content1 = \"text\".getBytes(StandardCharsets.UTF_8);\n DataUrl dataUrl = new DataUrlBuilder()\n .setData(content1)\n .setCharset(StandardCharsets.UTF_8.name())\n .setEncoding(DataUrlEncoding.BASE64)\n .setMimeType(\"text/plain\")\n .build();\n multiPartData.add(\n \"part\",\n createFormFieldPart(new DataUrlSerializer().serialize(dataUrl), \"part\"));\n\n MultipartFileBuilder builder = new MultipartFileBuilderImpl();\n StepVerifier\n .create(builder.buildMultiValueMap(multiPartData, \"part\"))\n .assertNext(map -> {\n List<MultipartFile> multipartFiles = MultipartFileBuilder.getMultipartFiles(map, \"part\");\n assertFalse(multipartFiles.isEmpty());\n try {\n assertEquals(2, multipartFiles.size());\n\n MultipartFile obj0 = MultipartFileBuilder.getMultipartFile(multipartFiles, 0);\n assertNotNull(obj0);\n assertEquals(\"part\", obj0.getName());\n assertEquals(MediaType.IMAGE_JPEG_VALUE, obj0.getContentType());\n assertEquals(content0.length, (int) obj0.getSize());\n assertArrayEquals(content0, obj0.getBytes());\n\n MultipartFile obj1 = MultipartFileBuilder.getMultipartFile(multipartFiles, 1);\n assertNotNull(obj1);\n assertEquals(\"part\", obj1.getName());\n assertEquals(MediaType.TEXT_PLAIN_VALUE, obj1.getContentType());\n assertEquals(content1.length, (int) obj1.getSize());\n assertArrayEquals(content1, obj1.getBytes());\n\n } catch (IOException e) {\n throw ServiceException.internalServerError(\"Internal error\", e);\n } finally {\n multipartFiles.forEach(FileAwareMultipartFile::delete);\n }\n })\n .verifyComplete();\n }",
"@PostMapping(\"/newPost\")\n public String uploadFile(Principal principal, @RequestPart(value = \"image\") MultipartFile file, @RequestPart(value = \"caption\", required = false) String caption) {\n \tString username = principal.getName();\n mainService.createPost(username, this.amazonClient.uploadFile(file), caption);\n return \"redirect:/\";\n }",
"public InputStream post(String name1, Object value1, String name2, Object value2) throws IOException {\r\n setParameter(name1, value1);\r\n return post(name2, value2);\r\n }",
"public boolean sendFile(String inKey, File inFile) throws NuxeoException;",
"public static String saveFile( MultipartFile filedata, HttpServletRequest request) {\n String pathval = \"C://KCGLIMG//\";\n String newFileName = String.valueOf( System.currentTimeMillis());\n String saveFilePath = \"images//equipment//\";\n\n File fileDir = new File(pathval + saveFilePath);\n if (!fileDir.exists()) {\n fileDir.mkdirs();\n }\n\n String filename=filedata.getOriginalFilename();\n\n String extensionName = filename.substring(filename.lastIndexOf(\".\") + 1);\n try {\n String imgPath = saveFilePath + newFileName + \".\" +extensionName;\n System.out.println(pathval + imgPath);\n FileOutputStream out = new FileOutputStream(pathval + imgPath);\n \n out.write(filedata.getBytes());\n out.flush();\n out.close();\n\n String path=pathval+imgPath;\n return path;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"public HttpRequest m() throws IOException {\n if (this.g) {\n this.f.a(\"\\r\\n--00content0boundary00\\r\\n\");\n } else {\n this.g = true;\n d(\"multipart/form-data; boundary=00content0boundary00\").l();\n this.f.a(\"--00content0boundary00\\r\\n\");\n }\n return this;\n }",
"public final void sendTaskInputFile(final int idtask,\n final File uploadFile1,\n final File uploadFile2) throws IOException {\n String requestURL = fgURL + \"/v1.0/tasks/\" + idtask + \"/input\";\n String charset = \"UTF-8\";\n System.out.println(\"\\nSending POST request to \" + requestURL);\n\n try {\n MultipartUtility multipart = new MultipartUtility(requestURL,\n charset, token);\n\n multipart.addFilePart(\"file[]\", uploadFile1);\n multipart.addFilePart(\"file[]\", uploadFile2);\n\n List<String> response3 = multipart.finish();\n\n System.out.println(\"SERVER REPLIED:\");\n\n for (String line : response3) {\n System.out.println(line);\n }\n } catch (IOException ex) {\n System.err.println(\"Failed to send task input files\");\n ex.printStackTrace();\n }\n }",
"public FileBean getFileParameterValue(String name) {\n \n if (this.multipart.getFile(name) != null) {\n return new FileBean(this.multipart.getFile(name),\n this.multipart.getContentType(name),\n this.multipart.getOriginalFileName(name));\n }\n else {\n return null;\n }\n }",
"public void setParameter(String name, String filename, InputStream is) throws IOException {\r\n Logging.logTime(\"setParameter begin (after new fileinput)\");\r\n boundary();\r\n writeName(name);\r\n write(\"; filename=\\\"\");\r\n write(filename);\r\n write('\"');\r\n newline();\r\n write(\"Content-Type: \");\r\n Logging.logTime(\"pre guessContentTypeFromName\");\r\n String type = URLConnection.guessContentTypeFromName(filename);\r\n if (type == null)\r\n type = \"application/octet-stream\";\r\n writeln(type);\r\n Logging.logTime(\"post guessContentTypeFromName\");\r\n newline();\r\n pipe(is, os);\r\n newline();\r\n }",
"public static RequestBody createBody(File file) {\n RequestBody fBody = RequestBody.create(MediaType.parse(\"multipart/form-data\"), file);\n return fBody;\n }",
"public void addFormField(String name, String value)\n throws UnsupportedEncodingException {\n String fieldContent = \"--\" + boundary + LINE_FEED;\n fieldContent += \"Content-Disposition: form-data; name=\\\"\" + name + \"\\\"\" + LINE_FEED;\n fieldContent += \"Content-Type: text/plain; charset=\" + charset + LINE_FEED;\n fieldContent += LINE_FEED;\n fieldContent += value + LINE_FEED;\n contentLength += fieldContent.getBytes(charset).length;\n fields.add(new FormField(name, value));\n }",
"private void addFilesInRequestEntity(MultipartEntity reqEntity, String keyForUploadFile, String filePath) {\n System.out.println(\"RestClient: FilePath \" + filePath);\n if (filePath != null && !\"\".equals(filePath)) {\n File file = new File(filePath);\n System.out.println(\"RestClient: File \" + file);\n FileBody fileBodyVideo = new FileBody(file);\n reqEntity.addPart(keyForUploadFile, fileBodyVideo);\n }\n }",
"private String extractFileName(Part part) {\r\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\r\n\t\tString[] items = contentDisp.split(\";\");\r\n\t\tfor (String s : items) {\r\n\t\t\tif (s.trim().startsWith(\"filename\")) {\r\n\t\t\t\treturn s.substring(s.indexOf(\"=\") + 2, s.length()-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\r\n\t\tSystem.out.println(\"doPost\");\r\n\t\t\r\n\t\tint yourMaxRequestSize = 100 * 1024 * 1024; // 1M\r\n\t\tint yourMaxMemorySize = 100 * 1024;\r\n\t\t\r\n\t\t// form field 의 데이터(String)\r\n\t\tString id = \"\";\r\n\t\tString title = \"\";\r\n\t\tString content = \"\";\r\n\r\n\t\t// file data\r\n\t\tString filename = \"\";\r\n\r\n\t\t\r\n\t\tString path = req.getServletContext().getRealPath(\"/upload\");\r\n\t\t\r\n\t\t\r\n\t\t// String path = \"d:\\\\tmp\";\r\n\t\t/*\r\n\t\tSystem.out.println(path);\r\n\t\tMultipartRequest mreq = new MultipartRequest(req, path);\r\n\t\tEnumeration t = mreq.getParameterNames();\r\n\t\t*/\r\n\t\t/*\r\n\t\twhile(t.hasMoreElements()) {\r\n\t\t\tString name = (String)t.nextElement();\r\n\t\t\tString conver =new String(mreq.getParameter(name).getBytes(\"8859_1\"), \"UTF-8\");\r\n\t\t\tSystem.out.println(name + \" : \" + mreq.getParameter(name) + \" : \" + conver);\r\n\t\t}\r\n\t\t*/\r\n\t\tboolean isMultipart = ServletFileUpload.isMultipartContent(req);\r\n\t\tSystem.out.println(isMultipart);\r\n\t\tif(isMultipart){\r\n\t\t\r\n\t\t// FileItem 을 생성하는 함수\r\n\t\t DiskFileItemFactory factory = new DiskFileItemFactory();\r\n\t\t \r\n\t\t factory.setSizeThreshold(yourMaxMemorySize);\r\n\t\t factory.setRepository(new File(path));\r\n\t\t \r\n\t\t ServletFileUpload upload = new ServletFileUpload(factory);\r\n\t\t upload.setSizeMax(yourMaxRequestSize);\r\n\t\t \r\n\t\t // list저장\r\n\t\t List<FileItem> items = null;\r\n\t\ttry {\r\n\t\t\titems = upload.parseRequest(req);\r\n\t\t} catch (FileUploadException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t Iterator<FileItem> it = items.iterator();\r\n\t\t \r\n\t\t while(it.hasNext()){\r\n\t\t \r\n\t\t FileItem item = it.next();\r\n\t\t // id, title, content\r\n\t\t if(item.isFormField()){\r\n\t\t if(item.getFieldName().equals(\"id\")){\r\n\t\t \tid = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t else if(item.getFieldName().equals(\"title\")){\r\n\t\t title = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t else if(item.getFieldName().equals(\"content\")){\r\n\t\t content = item.getString(\"utf-8\");\r\n\t\t }\r\n\t\t }\r\n\t\t // file\r\n\t\t else{\r\n\t\t if(item.getFieldName().equals(\"fileload\")){\r\n\t\t filename = processUploadFile(item, path);\r\n\t\t System.out.println(\"path:\" + path);\r\n\t\t } \r\n\t\t } \r\n\t\t }\r\n\t\t \r\n\t}\r\n\t\tiReferRoomDao dao = ReferRoomDao.getInstance();\r\n\r\n\t\tboolean isS = dao.add_ReferR(new ReferRoomDto(id, title, content, filename));\r\n\t\t\r\n\t\tresp.sendRedirect(\"ReferListCtlr\");\r\n\t}",
"@Override\n public boolean transferFile (MultipartFile file, String tag, String resultFilename) {\n try {\n file.transferTo(new File(Constans.UPLOADPATH + \"/\" + tag + \"/\" + resultFilename));\n }catch (IOException e){\n e.printStackTrace();\n return false;\n }\n return true;\n }",
"public static String uploadFile(String uploadurl, String filePath) {\r\n\r\n\t\tString end = \"\\r\\n\";\r\n\t\tString twoHyphens = \"--\";\r\n\t\tString boundary = \"******\";\r\n\t\ttry {\r\n\t\t\tURL url = new URL(uploadurl);\r\n\t\t\tHttpURLConnection httpURLConnection = (HttpURLConnection) url\r\n\t\t\t\t\t.openConnection();\r\n\t\t\thttpURLConnection.setDoInput(true);\r\n\t\t\thttpURLConnection.setDoOutput(true);\r\n\t\t\thttpURLConnection.setUseCaches(false);\r\n\t\t\thttpURLConnection.setRequestMethod(\"POST\");\r\n\t\t\thttpURLConnection.setRequestProperty(\"Connection\", \"Keep-Alive\");\r\n\t\t\thttpURLConnection.setRequestProperty(\"Charset\", \"UTF-8\");\r\n\t\t\thttpURLConnection.setRequestProperty(\"Cookie\", \"PHPSESSID=\"+PHPSESSID);\r\n\t\t\thttpURLConnection.setRequestProperty(\"Content-Type\",\r\n\t\t\t\t\t\"multipart/form-data;boundary=\" + boundary);\r\n\r\n\t\t\tDataOutputStream dos = new DataOutputStream(\r\n\t\t\t\t\thttpURLConnection.getOutputStream());\r\n\t\t\tdos.writeBytes(twoHyphens + boundary + end);\r\n\t\t\tdos.writeBytes(\"Content-Disposition: form-data; name=\\\"uploadedFile\\\"; filename=\\\"\"\r\n\t\t\t\t\t+ filePath.substring(filePath.lastIndexOf(\"/\") + 1)\r\n\t\t\t\t\t+ \"\\\"\"\r\n\t\t\t\t\t+ end);\r\n\t\t\tdos.writeBytes(end);\r\n\t\t\tFileInputStream fis = new FileInputStream(filePath);\r\n\t\t\tbyte[] buffer = new byte[8192]; // 8k\r\n\t\t\tint count = 0;\r\n\t\t\twhile ((count = fis.read(buffer)) != -1) {\r\n\t\t\t\tdos.write(buffer, 0, count);\r\n\r\n\t\t\t}\r\n\t\t\tfis.close();\r\n\t\t\tLog.d(tagString, \"file send to server............\");\r\n\t\t\tdos.writeBytes(end);\r\n\t\t\tdos.writeBytes(twoHyphens + boundary + twoHyphens + end);\r\n\t\t\tdos.flush();\r\n\r\n\t\t\tInputStream is = httpURLConnection.getInputStream();\r\n\t\t\tInputStreamReader isr = new InputStreamReader(is, \"utf-8\");\r\n\t\t\tBufferedReader br = new BufferedReader(isr);\r\n\t\t\tString result = br.readLine();\r\n\t\t\tdos.close();\r\n\t\t\tis.close();\r\n\t\t\treturn result;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn \"Internal error\";\r\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n int geekid = Integer.parseInt(request.getParameter(\"geekid\"));\n if (ServletFileUpload.isMultipartContent(request)) {\n try {\n\n List<FileItem> multiparts = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request);\n\n for (FileItem item : multiparts) {\n\n if (!item.isFormField()) {\n item.write(new File(UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\"));\n\n }\n \n String fileName = UPLOAD_DIRECTORY + File.separator + \"image\" + geekid + \".jpg\";\n\n }\n\n //File uploaded successfully\n request.setAttribute(\"message\", \"File Uploaded Successfully\");\n\n } catch (Exception ex) {\n\n request.setAttribute(\"message\", \"File Upload Failed due to \" + ex);\n\n }\n\n } else {\n\n request.setAttribute(\"message\",\n \"Sorry this Servlet only handles file upload request\");\n\n }\n\n request.getRequestDispatcher(\"/result.jsp\").forward(request, response);\n\n }",
"protected boolean isMultipartFormData(final HttpServletRequest request)\n {\n final String MULTIPART_FORM_DATA = \"multipart/form-data\";\n return (request.getContentType() != null\n && request.getContentType().toLowerCase()\n .indexOf(MULTIPART_FORM_DATA) > -1);\n }",
"private final StringBuffer addPostVariable(String bound, String name,\n String value) {\n StringBuffer sb = new StringBuffer();\n return sb.append(bound).append(\"\\r\\n\").append(\n \"Content-Disposition: form-data; name=\\\"\").append(name).append(\n \"\\\"\\r\\nContent-Transfer-Encoding: 8bit\\r\\n\\r\\n\").append(value)\n .append(\"\\r\\n\");\n }",
"private void fileUpload(HttpServletRequest request, HttpServletResponse response) {\n\t \ttry {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * String appPath = request.getServletContext().getRealPath(\"\");\r\n\t\t\t\t\t * System.out.println(appPath); String savePath = appPath + File.separator +\r\n\t\t\t\t\t * SAVE_DIR; System.out.println(savePath);\r\n\t\t\t\t\t */\r\n\t \t\t\r\n\t \t\t//String appPath = getServletContext().getRealPath(SAVE_DIR);\r\n\t \t\tSystem.out.println(appPath);\r\n\t \t\t String savePath = appPath + \"//\" +SAVE_DIR; \r\n\t \t\t System.out.println(savePath);\r\n\t\t\t\t\t\tCollection<Part>cp= request.getParts();\r\n\t \t String fileName = up.fileUpload(cp,appPath);\r\n\t \t System.out.println(fileName);\r\n\t \t \r\n\t \t request.setAttribute(\"message\", \"The file \"+fileName+\" has been uploaded successfully!\");\r\n\t \t RequestDispatcher dispatcher = request.getRequestDispatcher(\"success.jsp\");\r\n\t \t dispatcher.forward(request, response);\r\n\t}catch(Exception ex) {\r\n System.out.println(ex);\r\n }\r\n\t }",
"void mergeFileProperties() {\n JMeterProperty fileName = getProperty(FILE_NAME);\n JMeterProperty paramName = getProperty(FILE_FIELD);\n JMeterProperty mimeType = getProperty(MIMETYPE);\n HTTPFileArg oldStyleFile = new HTTPFileArg(fileName, paramName, mimeType);\n \n HTTPFileArgs fileArgs = getHTTPFileArgs();\n \n HTTPFileArgs allFileArgs = new HTTPFileArgs();\n if (oldStyleFile.isNotEmpty()) { // OK, we have an old-style file definition\n allFileArgs.addHTTPFileArg(oldStyleFile); // save it\n // Now deal with any additional file arguments\n if (fileArgs != null) {\n HTTPFileArg[] infiles = fileArgs.asArray();\n for (HTTPFileArg infile : infiles) {\n allFileArgs.addHTTPFileArg(infile);\n }\n }\n } else {\n if (fileArgs != null) { // for new test plans that don't have FILE/PARAM/MIME properties\n allFileArgs = fileArgs;\n }\n }\n // Updated the property lists\n setHTTPFileArgs(allFileArgs);\n removeProperty(FILE_FIELD);\n removeProperty(FILE_NAME);\n removeProperty(MIMETYPE);\n }",
"String uploadFileFromBody(AmazonS3 connection,\n String bucketName,\n String path,\n String body,\n Boolean usingFilePicker,\n Date expiryDateTime)\n throws InterruptedException, AppsmithPluginException {\n\n byte[] payload;\n MultipartFormDataDTO multipartFormDataDTO;\n try {\n multipartFormDataDTO = objectMapper.readValue(\n body,\n MultipartFormDataDTO.class);\n } catch (IOException e) {\n throw new AppsmithPluginException(\n AppsmithPluginError.PLUGIN_EXECUTE_ARGUMENT_ERROR,\n \"Unable to parse content. Expected to receive an object with `data` and `type`\"\n );\n }\n if (multipartFormDataDTO == null) {\n throw new AppsmithPluginException(\n AppsmithPluginError.PLUGIN_EXECUTE_ARGUMENT_ERROR,\n \"Could not find any data. Expected to receive an object with `data` and `type`\"\n );\n }\n if (Boolean.TRUE.equals(usingFilePicker)) {\n\n String encodedPayload = (String) multipartFormDataDTO.getData();\n /*\n * - For files uploaded using Filepicker.xyz.base64, body format is \"<content-type>;base64,<actual-\n * base64-encoded-payload>\".\n * - Strip off the redundant part in the beginning to get actual payload.\n */\n if (encodedPayload.contains(BASE64_DELIMITER)) {\n List<String> bodyArrayList = Arrays.asList(encodedPayload.split(BASE64_DELIMITER));\n encodedPayload = bodyArrayList.get(bodyArrayList.size() - 1);\n }\n\n try {\n payload = Base64.getDecoder().decode(encodedPayload);\n } catch (IllegalArgumentException e) {\n throw new AppsmithPluginException(\n AppsmithPluginError.PLUGIN_EXECUTE_ARGUMENT_ERROR,\n \"File content is not base64 encoded. File content needs to be base64 encoded when the \" +\n \"'File Data Type: Base64/Text' field is selected 'Yes'.\"\n );\n }\n } else {\n payload = ((String) multipartFormDataDTO.getData()).getBytes();\n }\n\n InputStream inputStream = new ByteArrayInputStream(payload);\n TransferManager transferManager = TransferManagerBuilder.standard().withS3Client(connection).build();\n final ObjectMetadata objectMetadata = new ObjectMetadata();\n // Only add content type if the user has mentioned it in the body\n if (multipartFormDataDTO.getType() != null) {\n objectMetadata.setContentType(multipartFormDataDTO.getType());\n }\n transferManager.upload(bucketName, path, inputStream, objectMetadata).waitForUploadResult();\n\n ArrayList<String> listOfFiles = new ArrayList<>();\n listOfFiles.add(path);\n ArrayList<String> listOfUrls = getSignedUrls(connection, bucketName, listOfFiles, expiryDateTime);\n if (listOfUrls.size() != 1) {\n throw new AppsmithPluginException(\n AppsmithPluginError.PLUGIN_ERROR,\n \"Appsmith has encountered an unexpected error when fetching url from AmazonS3 after file \" +\n \"creation. Please reach out to Appsmith customer support to resolve this.\"\n );\n }\n String signedUrl = listOfUrls.get(0);\n\n return signedUrl;\n }",
"public void setAttachmentHeader(String filename)\n\t{\n\t\tsetHeader(\"Content-Disposition\", \"attachment\"\n\t\t\t\t+ ((!Strings.isEmpty(filename)) ? (\"; filename=\\\"\" + filename + \"\\\"\") : \"\"));\n\t}",
"public void uploadMultipart() {\n //getting the actual path of the image\n String path = getPath(filePath);\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, \"todo\")\n .addFileToUpload(path, \"image\") //Adding file\n .setNotificationConfig(new UploadNotificationConfig())\n .setMaxRetries(2)\n .startUpload(); //Starting the upload\n\n } catch (Exception exc) {\n Toast.makeText(this, exc.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }",
"public Long getInfile_()\n{\nreturn getInputDataItemId(\"infile_\");\n}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\t // configures upload settings\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // sets memory threshold - beyond which files are stored in disk\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n // sets temporary location to store files\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\n ServletFileUpload upload = new ServletFileUpload(factory);\n \n \n // constructs the directory path to store upload file\n // this path is relative to application's directory\n String uploadPath = getServletContext().getRealPath(\"\") + File.separator + UPLOAD_DIRECTORY;\n // creates the directory if it does not exist\n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n int keySize= 0,iterationCount=0;\n String salt =\"\",passphrase=\"\",ciphertext=\"\",iv=\"\",fileData=\"\",Cdata=\"\",plainTextArea1=\"\";\n List<FileItem> formItems;\n String fileName =\"\";\n\t\ttry {\n\t\t\tformItems = upload.parseRequest(request);\n\t\t\tfor (FileItem item : formItems) {\n\t\t\t // processes only fields that are not form fields\n\t\t\t if (!item.isFormField()) {\n\t\t\t fileName = new File(item.getName()).getName();\n\t\t\t try {\n\t\t\t\t\t\tfileData = item.getString();\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 } else {\n\t\t\t //here...\n\t\t\t String fieldname = item.getFieldName();\n\t\t\t String fieldvalue = item.getString();\n\t\t\t \n\t\t\t if (fieldname.equals(\"passphrase\")) {\n\t\t\t \tpassphrase = fieldvalue;\n\t\t\t } else if (fieldname.equals(\"plainTextArea\")) {\n\t\t\t \tciphertext = fieldvalue;\n\t\t\t }else if (fieldname.equals(\"plainTextArea1\")) {\n\t\t\t \tplainTextArea1 = fieldvalue;\n\t\t\t }else if (fieldname.equals(\"secretKeys\")) {\n\t\t\t \tCdata = fieldvalue;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t} catch (FileUploadException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \n\t\ttry {\n\t\t\tSystem.out.println(Cdata);\n\t\t\tString keysData = RSACryptoUtil.decryptWebPIN(Cdata);\n\t\t\tSystem.out.println(keysData);\n\t\t\tString[] dataAry = keysData.split(\"@@@\"); \n\t\t\tkeySize = Integer.valueOf(dataAry[4]);\n\t\t\titerationCount = Integer.valueOf(dataAry[3]);\n\t\t\tsalt = String.valueOf(dataAry[0]);\n\t\t\tiv = String.valueOf(dataAry[1]);\n\t\t\tpassphrase = String.valueOf(dataAry[2]);\n\t\t}catch (Exception e) {\n\t response.setStatus(HttpServletResponse.SC_OK);\n\t response.getWriter().print(\"Security keys tampered!\");\n\t\t}\n\t\t\t\t\n\t AesUtil aesUtil = new AesUtil(keySize, iterationCount);\n\t String plaintext = aesUtil.decrypt(salt, iv, passphrase, ciphertext);\n\t String fileDataIs = aesUtil.decrypt(salt, iv, passphrase, fileData);\n\t String replaceStr = \"\";\n\t if(fileName.endsWith(\".txt\"))\n\t \treplaceStr =\"data:text/plain;base64,\";\n\t else if(fileName.endsWith(\".js\"))\n\t \treplaceStr =\"data:application/javascript;base64,\";\n\t else if(fileName.endsWith(\".jpeg\") || fileName.endsWith(\".jpg\") )\n\t \treplaceStr=\"data:image/jpeg;base64,\";\n\t else if(fileName.endsWith(\".png\"))\n\t \treplaceStr=\"data:image/png;base64,\";\n\t \n\t \n\t if(!fileName.endsWith(\".jpeg\") && !fileName.endsWith(\".jpg\") && !fileName.endsWith(\".png\"))\n\t FileUtils.writeStringToFile(new File(uploadPath+File.separator+fileName), new String(Base64.decodeBase64(fileDataIs.replaceAll(replaceStr, \"\").getBytes())));\n\t else{\n\t \tbyte[] data = Base64.decodeBase64(fileDataIs.replaceAll(replaceStr, \"\"));\n\t try (OutputStream stream = new FileOutputStream(\"D:/sudhakar/eclipse-jee-luna-R-win32-x86_64/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Encryption/image_upload/\"+fileName)) {\n\t \t\tstream.write(data);\n\t \t}\n\t }\n \n response.setStatus(HttpServletResponse.SC_OK);\n response.getWriter().print(plaintext+\":\"+plainTextArea1);\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n PrintWriter writer = null;\n InputStream is = null;\n FileOutputStream fos = null;\n\n try {\n writer = response.getWriter();\n } catch (IOException ex) {\n log(MultiContentServlet.class.getName() + \"has thrown an exception: \" + ex.getMessage());\n }\n\n boolean isMultiPart = ServletFileUpload.isMultipartContent(request);\n\n if (isMultiPart) {\n log(\"Content-Type: \" + request.getContentType());\n // Create a factory for disk-based file items\n DiskFileItemFactory diskFileItemFactory = new DiskFileItemFactory();\n\n /*\n * Set the file size limit in bytes. This should be set as an\n * initialization parameter\n */\n diskFileItemFactory.setSizeThreshold(1024 * 1024 * 10); //10MB.\n\n\n // Create a new file upload handler\n ServletFileUpload upload = new ServletFileUpload(diskFileItemFactory);\n\n List items = null;\n\n try {\n items = upload.parseRequest(request);\n } catch (FileUploadException ex) {\n log(\"Could not parse request\", ex);\n }\n\n ListIterator li = items.listIterator();\n\n while (li.hasNext()) {\n FileItem fileItem = (FileItem) li.next();\n if (fileItem.isFormField()) {\n if (debug) {\n processFormField(fileItem);\n }\n } else {\n writer.print(processUploadedFile(fileItem));\n }\n }\n }\n\n if (\"application/octet-stream\".equals(request.getContentType())) {\n log(\"Content-Type: \" + request.getContentType());\n String filename = request.getHeader(\"X-File-Name\");\n\n try {\n is = request.getInputStream();\n fos = new FileOutputStream(new File(realPath + filename));\n IOUtils.copy(is, fos);\n response.setStatus(HttpServletResponse.SC_OK);\n writer.print(\"{success: true}\");\n } catch (FileNotFoundException ex) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n writer.print(\"{success: false}\");\n log(MultiContentServlet.class.getName() + \"has thrown an exception: \" + ex.getMessage());\n } catch (IOException ex) {\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n writer.print(\"{success: false}\");\n log(MultiContentServlet.class.getName() + \"has thrown an exception: \" + ex.getMessage());\n } finally {\n try {\n fos.close();\n is.close();\n } catch (IOException ignored) {\n }\n }\n\n writer.flush();\n writer.close();\n }\n }",
"@Test\n public void getPostFile() throws Exception {\n String url = String.format(\"/download/%s/result.json\", AppTests.token);\n MvcResult result = mockMvcGetResult(url, MediaType.APPLICATION_JSON_VALUE + \";charset=UTF-8\", null);\n String response = result.getResponse().getContentAsString();\n\n MockMultipartFile importFile = new MockMultipartFile(\"file\", \"result.json\", \"multipart/form-data\", response.getBytes());\n\n MockHttpServletRequestBuilder builder =\n MockMvcRequestBuilders.multipart(\"/import/form\")\n .file(importFile);\n\n this.getMockMvc().perform(builder)\n .andExpect(status().isOk())\n .andReturn();\n }",
"public interface RequeteService {\n @Multipart\n @POST(\"upImportDoc.do\")\n Call<ResponseBody> uploadSingleFile(\n @Header(\"Cookie\") String sessionid,\n @Header(\"User-Agent\") String userAgent,\n @Part MultipartBody.Part file,\n @Part(\"jsessionid\") RequestBody jsessionid,\n @Part(\"ptoken\") RequestBody ptoken,\n @Part(\"ajaupmo\") RequestBody ajaupmo,\n @Part(\"ContributionComment\") RequestBody ContributionComment,\n @Part(\"Document_numbasedoc\") RequestBody Document_numbasedoc,\n @Part(\"contribution\") RequestBody contribution);\n}",
"private static void saveFileToDisk(String dir,MultipartFile frontFile, String fileId) throws IOException {\n String filename = frontFile.getOriginalFilename();\n File file = new File(dir+filename+\"_\"+fileId);\n //file.createNewFile();\n System.out.println(\"-----------\");\n System.out.println(file.getAbsolutePath());\n frontFile.transferTo(file);\n BufferedReader bufferedReader = new BufferedReader(new FileReader(file));\n bufferedReader.readLine();\n bufferedReader.close();\n\n }",
"private String extractFileName(Part part) {\n String contentDisp = part.getHeader(\"content-disposition\");\n String[] items = contentDisp.split(\";\");\n for (String s : items) {\n if (s.trim().startsWith(\"filename\")) {\n return s.substring(s.indexOf(\"=\") + 2, s.length()-1);\n }\n }\n return \"\";\n }",
"private String extractFileName(Part part) {\n String contentDisp = part.getHeader(\"content-disposition\");\n String[] items = contentDisp.split(\";\");\n for (String s : items) {\n if (s.trim().startsWith(\"filename\")) {\n return s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n }\n }\n return \"\";\n }",
"com.google.protobuf.ByteString\n getFormNameBytes();",
"int postFiles(String [] args,int startIndexInArgs) throws IOException {\n int filesPosted = 0;\n for (int j = 1; j < args.length; j++) {\n File srcFile = new File(args[j]);\n final StringWriter sw = new StringWriter();\n \n if (srcFile.canRead()) {\n info(\"POSTing file \" + srcFile.getName());\n postFile(srcFile, sw);\n filesPosted++;\n warnIfNotExpectedResponse(sw.toString(),SOLR_OK_RESPONSE);\n } else {\n warn(\"Cannot read input file: \" + srcFile);\n }\n }\n return filesPosted;\n }",
"private void formRequest() {\r\n\t\tbyte[] user_bytes = _userName.getBytes();\r\n\t\tbyte[] password_bytes = _password.getBytes();\r\n\r\n\t\t_request = new byte[3 + user_bytes.length + password_bytes.length];\r\n\t\t_request[0] = (byte) 1;\r\n\t\t_request[1] = (byte) user_bytes.length;\r\n\t\tSystem.arraycopy(user_bytes, 0, _request, 2, user_bytes.length);\r\n\t\t_request[2 + user_bytes.length] = (byte) password_bytes.length;\r\n\t\tSystem.arraycopy(password_bytes, 0, _request, 3 + user_bytes.length, password_bytes.length);\r\n\t}",
"public int uploadFile(String sourceFileUri) {\n String fileName = sourceFileUri;\n\n HttpURLConnection conn = null;\n DataOutputStream dos = null;\n\n String lineEnd = \"\\r\\n\";\n String twoHyphens = \"--\";\n String boundary = \"*****\";\n\n int bytesRead, bytesAvailable, bufferSize;\n byte[] buffer;\n int maxBufferSize = 1 * 1024 * 1024;\n File sourceFile = new File(sourceFileUri);\n\n if (!sourceFile.isFile()) {\n Log.e(\"uploadFile\", \"Source File not exist :\"\n +uploadFilePath);\n return 0;\n }\n else\n {\n try {\n // open a URL connection to the Servlet\n FileInputStream fileInputStream = new FileInputStream(sourceFile);\n URL url = new URL(upLoadServerUri);\n\n ///\n fileName = fileName.substring(fileName.lastIndexOf(\"/\") +1);\n ///\n\n // Open a HTTP connection to the URL\n conn = (HttpURLConnection) url.openConnection();\n conn.setDoInput(true); // Allow Inputs\n conn.setDoOutput(true); // Allow Outputs\n conn.setUseCaches(false); // Don't use a Cached Copy\n conn.setRequestMethod(\"POST\");\n conn.setRequestProperty(\"Connection\", \"Keep-Alive\");\n conn.setRequestProperty(\"ENCTYPE\", \"multipart/form-data\");\n conn.setRequestProperty(\"Content-Type\", \"multipart/form-data;boundary=\" + boundary);\n conn.setRequestProperty(\"uploaded_file\", fileName);\n\n dos = new DataOutputStream(conn.getOutputStream());\n dos.writeBytes(twoHyphens + boundary + lineEnd);\n dos.writeBytes(\"Content-Disposition: form-data; name=\\\"uploaded_file\\\";filename=\\\"\"\n + fileName + \"\\\"\" + lineEnd);\n dos.writeBytes(lineEnd);\n\n // create a buffer of maximum size\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n buffer = new byte[bufferSize];\n\n // read file and write it into form...\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n while (bytesRead > 0) {\n dos.write(buffer, 0, bufferSize);\n bytesAvailable = fileInputStream.available();\n bufferSize = Math.min(bytesAvailable, maxBufferSize);\n bytesRead = fileInputStream.read(buffer, 0, bufferSize);\n }\n\n // send multipart form data necesssary after file data...\n dos.writeBytes(lineEnd);\n dos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);\n\n // Responses from the server (code and message)\n serverResponseCode = conn.getResponseCode();\n String serverResponseMessage = conn.getResponseMessage();\n\n Log.i(\"uploadFile\", \"HTTP Response is : \"\n + serverResponseMessage + \": \" + serverResponseCode);\n\n if(serverResponseCode == 200){\n runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(Ui_Main_Activity.Context_UiMainActivity, \"File Upload Complete.\", Toast.LENGTH_SHORT).show();\n finish();\n }\n });\n }\n\n //close the streams //\n fileInputStream.close();\n dos.flush();\n dos.close();\n\n } catch (MalformedURLException ex) {\n ex.printStackTrace();\n runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(Ui_Main_Activity.Context_UiMainActivity, \"MalformedURLException\",\n Toast.LENGTH_SHORT).show();\n }\n });\n\n Log.e(\"Upload file to server\", \"error: \" + ex.getMessage(), ex);\n } catch (Exception e) {\n e.printStackTrace();\n runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(Ui_Main_Activity.Context_UiMainActivity, \"Got Exception : see logcat \", Toast.LENGTH_SHORT).show();\n }\n });\n Log.e(\"Upload file Exception\", \"Exception : \" + e.getMessage(), e);\n }\n return serverResponseCode;\n } // End else block\n }"
] | [
"0.6001858",
"0.58312345",
"0.5678522",
"0.5574906",
"0.55656326",
"0.54322284",
"0.53047323",
"0.53047323",
"0.53039086",
"0.5285451",
"0.5223633",
"0.5209488",
"0.50946367",
"0.5092333",
"0.5027877",
"0.5024248",
"0.49356022",
"0.49088082",
"0.49028417",
"0.48979598",
"0.48816326",
"0.4873199",
"0.48501822",
"0.4846815",
"0.48355585",
"0.4823951",
"0.479843",
"0.47970423",
"0.47875512",
"0.47816688",
"0.47707564",
"0.47682104",
"0.47682104",
"0.47596753",
"0.47561985",
"0.4748929",
"0.474877",
"0.47384915",
"0.47128814",
"0.469123",
"0.4684878",
"0.46685186",
"0.4663321",
"0.46404558",
"0.4639675",
"0.46384653",
"0.46286717",
"0.45999688",
"0.45922238",
"0.45914564",
"0.4581851",
"0.45794943",
"0.45696676",
"0.45696256",
"0.45633572",
"0.45595026",
"0.45438886",
"0.45328614",
"0.45324525",
"0.45316258",
"0.45315212",
"0.4529425",
"0.45246008",
"0.45205614",
"0.45170453",
"0.45148385",
"0.44990793",
"0.4489345",
"0.44834313",
"0.44828176",
"0.44745407",
"0.447425",
"0.4474182",
"0.4459336",
"0.44565347",
"0.44536126",
"0.44460016",
"0.44372994",
"0.44283623",
"0.4422558",
"0.44185552",
"0.4417987",
"0.4417693",
"0.44153652",
"0.44116923",
"0.4411426",
"0.44110033",
"0.44070345",
"0.44068006",
"0.44045806",
"0.4404238",
"0.43991244",
"0.43976977",
"0.43959537",
"0.43889955",
"0.4388823",
"0.43824744",
"0.43810117",
"0.43708456",
"0.43649644"
] | 0.5020249 | 16 |
TODO Autogenerated method stub | @Override
public Rect estimateDropLocation(DragSource source, int x, int y,
int xOffset, int yOffset, DragView dragView, Object dragInfo,
Rect recycle) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Synchronizes on the new stream | public void syncStream() {
JCudaDriver.cuStreamSynchronize(stream);} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void syncHandle() {\n syncOldStream();\n }",
"public void syncOldStream() {\n ContextHolder.getInstance().setContext();\n JCuda.cudaStreamSynchronize(oldStream);\n/*\n if(!oldEventDestroyed) {\n JCuda.cudaStreamSynchronize(oldStream);\n JCuda.cudaStreamWaitEvent(oldStream,oldEvent,0);\n JCuda.cudaEventDestroy(oldEvent);\n oldEventDestroyed = true;\n\n }*/\n }",
"default void refreshStream() {}",
"public ObjectOutputStream acquireStream() throws InterruptedException\n {\n StreamMutex.acquire();\n return OutputStream;\n }",
"@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshReadLock(lockKey, readToken, lockTimeoutSec);\r\n\t\t\t}",
"public static void synchronize() {\n awaitCompletion(READ_HANDLES);\n awaitCompletion(WRITE_HANDLES);\n }",
"default EagerFutureStream<U> sync(){\n\t\treturn (EagerFutureStream<U>)FutureStream.super.sync();\n\t}",
"@Override\n\tpublic void sync() throws IOException {\n\t\t\n\t}",
"void sync()throws IOException;",
"void sync() throws IOException;",
"T sync() throws IOException, ChallongeException;",
"@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshWriteLock(lockKey, finalWriteToken, lockTimeoutSec);\r\n\t\t\t}",
"@Override\n\tpublic void sync() throws IOException\n\t{\n\n\t}",
"public void run()\n{\n try {\n InputStreamReader in = new InputStreamReader(input_stream);\n int c;\n if(is_synchronized){\n\t while ((c = in.read()) != -1) {\n\t synchronized(lock){\n\t contents.append((char) c);\n\t }\n\t }\n }\n else{\n\t while ((c = in.read()) != -1) {\n\t contents.append((char) c);\n\t }\n }\n }\n catch (Exception e) {\n //that's ok\n }\n}",
"protected void openStream ()\n {\n stream = Util.stream (entry, \"Holder.java\");\n }",
"public void synchronize(){ \r\n }",
"public ClientStream delegate() {\n return newStream;\n }",
"@Override\n public void run() {\n super.run();\n notAtomic.naIncreament();\n }",
"public void initOldStream() {\n ContextHolder.getInstance().setContext();\n if(oldStream == null) {\n /* try {\n oldStream = ContextHolder.getInstance().getOldStreamPool().borrowObject();\n } catch (Exception e) {\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n }*/\n\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n // oldEvent = new cudaEvent_t();\n // JCuda.cudaEventCreate(oldEvent);\n // oldEventDestroyed = false;\n }\n\n }",
"@Override public void run()\n\t\t{\n\t\t\twhile (mutex)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\");\n\t\t\t}\n\t\t\tmutex = true; \n\t\t\treadCount++;\n\t\t\tif (readCount == 1)\n\t\t\t{\n\t\t\twrt = true; // Locking writer when reader is active\n\t\t\t}\n\t\t\tmutex = false;\n\t\t\t// Critical Section \n\t\t\ttry {\n\t\t\t\t\tFile myObj = new File(\"shared.txt\"); \n\t\t\t\t\tScanner myReader = new Scanner(myObj); \n\t\t\t\t\tString data = myReader.nextLine(); \n\t\t\t\t\tSystem.out.println(\"Reading: \" + data); \n\t\t\t\t\tmyReader.close();\n\t\t\t\t} catch (FileNotFoundException e){}\n\n\t\t\t// Leave Critical section\n\t\t\twhile (mutex) { System.out.print(\"\"); } mutex = true;\n\t\t\treadCount--;\n\t\t\tif (readCount == 0) \n\t\t\t{\n\t\t\t\twrt = false; // Unlocking writer if all reading process is done.\n\t\t\t}\n\t\t\tmutex = false;\n\t\t}",
"public synchronized void associateHandle() {\n JCublas2.cublasSetStream(handle,oldStream);\n }",
"public void lock() {\n if (!locked) {\n locked = true;\n sortAndTruncate();\n }\n }",
"@Override\n public void run() {\n try {\n\n byte[] data = new byte[TcpClient.BUFFER_SIZE * 2];\n\n while(!Rebroadcaster.INSTANCE.isHalted()) {\n int len = is.read(data, 0, data.length);\n os.write(data, 0, len);\n os.flush();\n }\n } catch (IOException ex) {\n LOGGER.log(Level.SEVERE, null, ex);\n }\n }",
"@Override\n public void sync(){\n }",
"public LockSync() {\n lock = new ReentrantLock();\n }",
"private void startWrite() {\n\t\tlock.lock();\n\t\tif (newMap == null) // Write not already started\n\t\t\tnewMap = ArrayListMultimap.create(map);\n\t}",
"@Override\n public void run() {\n currentContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n while (true) {\n String newlyReadContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n if (!newlyReadContent.equals(currentContent) || !newlyReadContent.isEmpty()){\n notify(newlyReadContent);\n currentContent = newlyReadContent;\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n//end of modifiable zone..................E/bfb5c4c0-88e6-44fa-9add-89d5b4394004\n }",
"void contentsSynchronized();",
"public void lock() {\r\n super.lock();\r\n }",
"void synchronizeHostData(DataBuffer buffer);",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n super.lock();\n }",
"public void flushStreamSpecs();",
"@Override\n\t\tpublic void lock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (readers > 0 || writers > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twriters++;\n\t\t\t}\n\t\t}",
"@Override\n\t\tpublic void lock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (writers > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treaders++;\n\t\t\t}\n\t\t}",
"public synchronized void flush() throws IOException {\n if (sink != null) {\n synchronized (sink) {\n sink.notifyAll();\n }\n }\n }",
"protected void sync() {\n System.out.println(\"Starting playback thread with \" + terms);\n startThread();\n }",
"public void sync() {\n\t\tif (!validState) {\n\t\t\tthrow new InvalidStateException();\n\t\t}\n\t\tif (useMmap) {\n\t\t\tsyncAllMmaps();\n\t\t}\n\t\tif (fileChannel != null) {\n\t\t\ttry {\n\t\t\t\tfileChannel.force(false);\n\t\t\t} catch (Exception ign) {\n\t\t\t}\n\t\t}\n\t\tif (callback != null) {\n\t\t\tcallback.synched();\n\t\t}\n\t}",
"protected CombinedStreamMonitor createStreamMonitor(InputStream in,\n\t\t\tInputStream err) {\n\t\tCombinedStreamMonitor monitor = new CombinedStreamMonitor(in, err);\n\t\tmonitor.setDrainLimit(this.getTestProperties()\n\t\t\t\t.getMaxDrainOutputInBytes());\n\t\treturn monitor;\n\t}",
"@Override public void run()\n {\n pauseStreaming();\n\n // Switch the current camera\n camera = newCamera;\n\n // Resume streaming on the new camera if there is one\n if (camera != null)\n {\n resumeStreaming();\n }\n }",
"public synchronized void finishWriting() {\n readerNumber++; // readerNumber = -1 + 1 = 0; \n// readerNumber must be 0 at this point \n this.notifyAll(); // notify possible waiting writers or waiting readers \n }",
"private void run() throws InterruptedException, IOException {\n endpoint.getWcEvents().take();\n\n //process received data\n processRecv();\n\n for (int i=0; i < 1000000; i++) {\n //change data in remote memory\n writeData(i);\n\n //wait for writing remote memory to complete\n endpoint.getWcEvents().take();\n }\n System.out.println(\"ClientWrite::finished!\");\n }",
"public static boolean sync(FileOutputStream stream) {\n try {\n if (stream != null) {\n stream.getFD().sync();\n }\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n }\n return false;\n }",
"private static void mergingSyncMadeAsync() {\n Observable.merge(getDataSync(1).subscribeOn(Schedulers.io()), getDataSync(2).subscribeOn(Schedulers.io())).blockingForEach(System.out::println);\n }",
"public long getStream();",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ts.put();\n\t\t\t\t}",
"@Override\n public void hflush() throws IOException {\n hsync();\n }",
"private void streamCopy(InputStream in, OutputStream out) throws IOException {\t \n\t\tsynchronized (in) {\n\t\t\tsynchronized (out) {\n\t\t\t\tbyte[] buffer = new byte[256];\n\t\t\t\twhile (true) {\n\t \t\tint bytesRead = in.read(buffer);\n\t \t\tif (bytesRead == -1) break;\n\t \t\tout.write(buffer, 0, bytesRead);\n\t \t}\n\t \t}\n\t }\n\t}",
"StreamsThread(InputStream in, OutputStream out) {\n this.in = in;\n this.out = out;\n }",
"@Override\n public void run() {\n syncToServer();\n }",
"@Override\n public void flush() throws IOException {\n checkStreamState();\n flushIOBuffers();\n }",
"@Override public void onStreamUpdate(final Set<Long> updatedChunks) {\n }",
"public void streamSubscriberStart(ISubscriberStream stream);",
"private void openStreams() {\n\t\ttry {\n\t\t\t// mostramos un log\n\t\t\tthis.getLogger().debug(\"Opening streams..\");\n\t\t\t// abrimos el stream de salida\n\t\t\tthis.setOutputStream(new ObjectOutputStream(this.getConnection().getOutputStream()));\n\t\t\t// abrimos el stream de entrada\n\t\t\tthis.setInputStream(new ObjectInputStream(this.getConnection().getInputStream()));\n\t\t} catch (final IOException e) {}\n\t}",
"public void sync() {\n\t\t\n\t\tfor (int i = 0; i <= temporary.length - 1; i++) {\n\t\t\tfinalized[i] = temporary[i];\n\t\t}\n\n//TODO:\t\ttemporary.clear();\n\t}",
"@Override public void run()\n {\n while (wrt)\n {\n System.out.print(\"\");\n }\n\n // Locking Writer and Reader wrt = true;\n mutex = true;\n // Critical section\n BufferedWriter out = null; \n try \n {\n\t\t\t\tout = new BufferedWriter(new FileWriter(\"shared.txt\", false)); \n\t\t\t\tvalue = value + 1;\n\t\t\t\tSystem.out.println(\"Writing: \" + (value)); \n\t\t\t\tout.write(String.valueOf(value)); \n\t\t\t\tout.close();\n } \n catch (IOException e){}\n\n // Leaving Critical section\n wrt = false;\n\tmutex = false;\n\t\t}",
"@Override\n public void run() {\n message.synchronizedInstance();\n }",
"private SingletonSyncBlock() {}",
"@Override\n synchronized public void run() {\n try {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(inputStream, Charset.defaultCharset())\n );\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n this.result.add(line);\n }\n } catch (IOException ex) {\n log.error(\"Failed to consume and display the input stream of type \" + streamType + \".\", ex);\n } finally {\n this.isStopped = true;\n notify();\n }\n }",
"public void lock() {\n\t\tlocked = true;\n\t}",
"@Override\n public void onDrainComplete()\n {\n }",
"protected final void lockRead() {\n m_lock.readLock().lock();\n }",
"@Override\n\tpublic void run() {\n\n\t\tbyte[] buffer = new byte[BUFFER_SIZE]; \n try { \n while (true) { \n int bytesRead = mInputStream.read(buffer); \n if (bytesRead == -1) \n break; // End of stream is reached --> exit 스트림의 끝에 도달\n \n Filter filter = new Filter(buffer, 0, bytesRead);\n mOutputStream.write(buffer, 0, bytesRead);\n mOutputStream.flush(); \n \n } \n } catch (IOException e) { \n // Read/write failed --> connection is broken \n \t// 쓰기/읽기 실패 --> 연결 끊기\n \tmParent.connectionBroken(); \n } \n \n // Notify parent thread that the connection is broken \n // 부모스레드에게 연결 끊기 전달\n mParent.connectionBroken(); \n }",
"public static void sync() {\n // write out superblock if updated\n // write out free list blocks if updated\n // write out inode blocks if updated\n // write out data blocks if updated\n\n // at present, all changes to inodes, data blocks, \n // and free list blocks\n // are written as they go, so this method does nothing.\n }",
"public void sync(){\n byte[] block = new byte[512];\n SysLib.int2bytes(totalBlocks, block, 0);\n SysLib.int2bytes(totalInodes, block, 4);\n SysLib.int2bytes(freeList, block, 8);\n SysLib.rawwrite(0, block);\n }",
"synchronized static void initStreams()\n {\n if ( !initialized )\n {\n out = ansiStream(true);\n err = ansiStream(false);\n initialized = true;\n }\n }",
"public boolean synchronize() {\n\t\treturn false;\n\t}",
"private static void mergingSync() {\n Observable.merge(getDataSync(1), getDataSync(2)).blockingForEach(System.out::println);\n }",
"public boolean Register (Stream rkStream)\r\n {\r\n return super.Register(rkStream);\r\n }",
"private void setupStreams() {\n\t\ttry {\n\t\t\tthis.out = new ObjectOutputStream(this.sock.getOutputStream());\n\t\t\tthis.out.flush();\n\t\t\tthis.in = new ObjectInputStream(this.sock.getInputStream());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"inside run() method.....\");\n\n\t\tlock();\n\n\t}",
"void flushBlocking();",
"public abstract void enableStreamFlow();",
"public void drain() {\r\n if (getAndIncrement() == 0) {\r\n SimpleQueue<T> simpleQueue = this.queue;\r\n int i = this.consumed;\r\n int i2 = this.bufferSize;\r\n int i3 = i2 - (i2 >> 2);\r\n boolean z = this.sourceMode != 1;\r\n int i4 = 1;\r\n int i5 = i;\r\n SimpleQueue<T> simpleQueue2 = simpleQueue;\r\n int i6 = i5;\r\n while (true) {\r\n if (simpleQueue2 != null) {\r\n long j = LongCompanionObject.MAX_VALUE;\r\n InnerSubscription[] innerSubscriptionArr = (InnerSubscription[]) this.subscribers.get();\r\n boolean z2 = false;\r\n for (InnerSubscription innerSubscription : innerSubscriptionArr) {\r\n long j2 = innerSubscription.get();\r\n if (j2 != Long.MIN_VALUE) {\r\n j = Math.min(j2 - innerSubscription.emitted, j);\r\n z2 = true;\r\n }\r\n }\r\n long j3 = 0;\r\n if (!z2) {\r\n j = 0;\r\n }\r\n while (true) {\r\n if (j == j3) {\r\n break;\r\n }\r\n boolean z3 = this.done;\r\n try {\r\n Object poll = simpleQueue2.poll();\r\n boolean z4 = poll == null;\r\n if (!checkTerminated(z3, z4)) {\r\n if (z4) {\r\n break;\r\n }\r\n int length = innerSubscriptionArr.length;\r\n for (int i7 = 0; i7 < length; i7++) {\r\n InnerSubscription innerSubscription2 = innerSubscriptionArr[i7];\r\n if (!innerSubscription2.isCancelled()) {\r\n innerSubscription2.downstream.onNext(poll);\r\n innerSubscription2.emitted++;\r\n }\r\n }\r\n if (z) {\r\n i6++;\r\n if (i6 == i3) {\r\n ((Subscription) this.upstream.get()).request((long) i3);\r\n i6 = 0;\r\n }\r\n }\r\n j--;\r\n if (innerSubscriptionArr != this.subscribers.get()) {\r\n break;\r\n }\r\n j3 = 0;\r\n } else {\r\n return;\r\n }\r\n } catch (Throwable th) {\r\n Throwable th2 = th;\r\n Exceptions.throwIfFatal(th2);\r\n ((Subscription) this.upstream.get()).cancel();\r\n simpleQueue2.clear();\r\n this.done = true;\r\n signalError(th2);\r\n return;\r\n }\r\n }\r\n if (checkTerminated(this.done, simpleQueue2.isEmpty())) {\r\n return;\r\n }\r\n }\r\n this.consumed = i6;\r\n i4 = addAndGet(-i4);\r\n if (i4 != 0) {\r\n if (simpleQueue2 == null) {\r\n simpleQueue2 = this.queue;\r\n }\r\n } else {\r\n return;\r\n }\r\n }\r\n }\r\n }",
"@Override\r\n\tpublic void run() {\n\t\t\ttry {\r\n\t\t\t\tObjectInputStream inputStream = new ObjectInputStream(socket.getInputStream());\r\n\t\t\t\tObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());\r\n\t\t\t\t\r\n\t\t\twhile(true) {\r\n\t\t\t\t//get command(request) from client\r\n\t\t\t\tString command = (String) inputStream.readObject();\r\n\t\t\r\n\t\t\t\tString[] commandAndValue = command.split(\" \");\r\n\t\t\t\tif(commandAndValue[0].equals(\"quit\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t outputStream.writeObject(\"quit\");\r\n\t\t\t\t\t inputStream.close();\r\n\t\t\t\t\t outputStream.close();\r\n\t\t\t\t\t socket.close();\r\n\t\t\t\t\t break;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"command recieved - > at client no ->\"+clientNo + \" - > \" + command);\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\tworkingDirectory.concat(\"/\");\r\n\t\t\t\tswitch(commandAndValue[0]) {\r\n\t\t\t\t\r\n\t\t\t\tcase \"get\" : //Server send file to client\r\n boolean terminated = false;\r\n int commandId = processTable.size() + 100 + 1;\r\n\t\t\t\t\tprocessTable.put(commandId, \"Running \" + command); //1 is running\r\n\t\t\t\t\toutputStream.writeObject(String.valueOf(commandId));\r\n \r\n\t\t\t\t\tFile myfile = new File(commandAndValue[1]);\r\n\t\t\t\t\tint length=(int) myfile.length();\r\n\t\t\t\t\tint counter=0;\r\n\t\t\t\t\tbyte[] a = new byte[length];\r\n\t\t\t\t\tint rem=length%1000;\r\n\t\t\t\t\tint limit=length-rem;\r\n\t\t\t\t\tBufferedInputStream br = new BufferedInputStream(new FileInputStream(myfile));\r\n\t\t\t\r\n \t\r\n br.read(a,0,a.length); \r\n \tbr.close();\r\n sleep(1);\r\n \r\n /*********Lock ends*****************************************************/\r\n \r\n\t\t\t\t\toutputStream.writeInt(length);\r\n\t\t\t\t\tif(length>=1000)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twhile(counter<limit)\r\n\t\t\t\t\t\t{\r\n String state = processTable.get(Integer.parseInt( String.valueOf(commandId)));\r\n if(state.contains(\"terminate\"))\r\n terminated = true;\r\n \r\n \r\n\t\t\t\t\t\t\tif(terminated)\r\n outputStream.writeObject(\"terminated\"); \r\n else\r\n outputStream.writeObject(\"Still Runnuing\");\r\n \r\n \r\n outputStream.write(a,counter,1000);\r\n\t\t\t\t\t\t\tcounter+=1000;\r\n\t\t\t\t\t\t\toutputStream.flush();\r\n\t\t\t\t\t\t}\r\n if(terminated){\r\n \t System.out.println(\"Process with coomand Id \" + commandId + \" terminated by user\");\r\n }\r\n else if(rem!=0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\toutputStream.write(a,counter,rem);\r\n\t\t\t\t\t\t}\r\n \r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\toutputStream.write(a,counter,length);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\toutputStream.flush();\r\n\t\t\t\t\r\n System.out.println(\"End\");\r\n processTable.put(commandId, \"Finished \" + command); //1 is running\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"put\" ://Server recieves file from client\r\n /*********Write Lock when file is write from server to array********/\r\n while(true){\r\n \r\n List<String> processes = new ArrayList<>();\r\n processes.addAll(Server.processTable.values());\r\n boolean parrallelProcessRunning = false;\r\n for(String process : processes)\r\n {\r\n \r\n \r\n if(process.equals(\"Running \" + command))\r\n parrallelProcessRunning = true;\r\n \r\n }\r\n if(!parrallelProcessRunning){\r\n \r\n System.out.println(\"Now full-filling new request of client : \"+clientNo);\r\n break;\r\n }\r\n \r\n Thread.sleep(10000);\r\n System.out.println(\"put request on same file. Client \"+clientNo+\" need to wait till other request is full-filled\");\r\n /*\r\n 1) Reterive values from hashmap\r\n 2) check if there is matching command with the current command\r\n 3) If there is a matching command, then find it is Running or Finished\r\n 4) If running, then wait else continue\r\n \r\n */\r\n \r\n }\r\n \r\n /*********Write Lock when file is write from server to array********/\r\n \r\n terminated = false;\r\n commandId = processTable.size() + 100 + 1;\r\n processTable.put(commandId, \"Running \" + command); //1 is running\r\n\t\t\t\toutputStream.writeObject(String.valueOf(commandId));\r\n System.out.println(\"lengthbefore\");\r\n int l=inputStream.readInt();\r\n System.out.println(l);\r\n\t\t\t\t\ta = new byte[l];\r\n\t\t\t\t\tcounter=0;\r\n\t\t\t\t\trem=l%1000;\r\n\t\t\t\t\tlimit=l-rem;\r\n \r\n \r\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(commandAndValue[1]);\r\n\t\t\t\t\tBufferedOutputStream bos = new BufferedOutputStream(fos);\r\n outputStream.flush();\r\n\t\t\t\t\tif(l>=1000)\r\n\t\t\t\t\t{\r\n System.out.println(\"in first if\");\r\n\t\t\t\t\t\twhile(counter<limit)\r\n\t\t\t\t\t\t{\r\n String state = processTable.get(Integer.parseInt( String.valueOf(commandId)));\r\n if(state.contains(\"terminate\"))\r\n terminated = true;\r\n \r\n \r\n\t\t\t\t\t\t\tif(terminated){\r\n outputStream.writeObject(\"terminated\");\r\n break;\r\n }\r\n \r\n else\r\n outputStream.writeObject(\"Still Runnuing\");\r\n \r\n\t\t\t\t\t\t\tinputStream.read(a,counter,1000);\r\n\t\t\t\t\t\t\tcounter+=1000;\r\n\t\t\t\t\t\t}\r\n if(terminated){\r\n System.out.println(\"Process with command Id \" + commandId + \" terminated by user! Deleting the garbage file creadted during the process..\");\r\n \t File file = new File(commandAndValue[1]);\r\n file.delete();\r\n \r\n }\r\n\t\t\t\t\t\telse if(rem!=0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.println(\"in if\");\r\n\t\t\t\t\t\t\t//counter-=1000;\r\n\t\t\t\t\t\t\tSystem.out.println(\"The value of counter in IF is \"+counter);\r\n\t\t\t\t\t\t\tinputStream.read(a,counter,rem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n System.out.println(\"in else if\");\r\n\t\t\t\t\t\tinputStream.read(a,counter,l);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbos.write(a,0,a.length);\r\n\t\t\t\t\tbos.close();\r\n\t\t\t\t\tfos.close();\r\n \r\n \r\n \r\n /*********Write Lock Ends********/\r\n System.out.println(\"End\");\r\n processTable.put(commandId, \"Finished \" + command); //1 is running\r\n System.out.println(\"Now State of the command \"+processTable.get(commandId));\r\n\t\t\t\t\tbreak;\r\n \r\n \r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\tcase \"delete\":\r\n\t\t\t\t\t File file = new File(commandAndValue[1]);\r\n\t\t\t\t if(file.delete()){\r\n\t\t\t\t \toutputStream.writeObject(commandAndValue[1]+ \" File deleted\");\r\n\t\t\t\t }else \r\n\t\t\t\t \toutputStream.writeObject(\"File\" + commandAndValue[1] + \"doesn't exists in project root directory\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"ls\":\r\n\t\t\t\t\t\r\n\t\t\t\t\tFile folder = new File(workingDirectory);\r\n\t\t\t\t\tFile[] listOfFiles = folder.listFiles();\r\n\t\t\t\t\tString list = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < listOfFiles.length; i++) {\r\n\t\t\t\t\t \r\n\t\t\t\t\t list = list + listOfFiles[i].getName() + \"\\n\";\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\toutputStream.writeObject(list);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase \"cd\":\r\n\t\t\t\t\t\tif(commandAndValue[1].equals(\"..\"))\r\n\t\t\t\t\t\t{\r\n System.out.println(\"Inside cd..\");\r\n\t\t\t\t\t\t\tint index = workingDirectory.lastIndexOf('/');\r\n\t\t\t\t\t\t workingDirectory = workingDirectory.substring(0,index);\r\n\t\t\t\t\t\t outputStream.writeObject(\"changing working directory\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tworkingDirectory = workingDirectory + \"/\" + commandAndValue[1];\r\n\t\t\t\t\t\t\toutputStream.writeObject(\"changing working directory\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"mkdir\":\r\n\t\t\t\t\t\r\n\t\t\t\t\tboolean fileCreated = new File(workingDirectory + \"/\" + commandAndValue[1]).mkdirs();\r\n\t\t\t\t\tif(fileCreated)\r\n\t\t\t\t\t\toutputStream.writeObject(\"Directory \"+ commandAndValue[1] +\" created successfully\");\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\toutputStream.writeObject(\"Opps! Directory cannot be created. May be directory name already exists\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase \"quit\":\r\n\t\t\t\t\t break;\r\n\t\t\t\t\t \r\n\t\t\t\tcase \"pwd\":\r\n\t\t\t\t\toutputStream.writeObject(workingDirectory);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\toutputStream.writeObject(\"-bash: \"+ command +\" : command not found\");\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t \r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t \r\n\t\t\t\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}",
"private void liveStreaming() throws IOException, InterruptedException {\n\n CamStreaming camStreaming = new CamStreaming();\n VideoDataStream vds = new VideoDataStream(true);\n byte[] frame;\n\n if (camStreaming.prepareStream(in)) {\n\n while (camStreaming.isTargetConnected()) {\n try {\n\n if (dis.available() > 0) {\n frame = vds.processFrame(dis);\n camStreaming.sendData(frame);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n break;\n }\n sleep(20);\n }\n \n dos.writeInt(END_OF_STREAM_CODE);\n dos.flush();\n \n// CamRegister.removeCamClient(camClient);\n \n RecordStorage recordStorage = new RecordStorage();\n\n recordStorage.saveVideo(vds.getBuffer(), camClient.getCamCode());\n\n vds.cleanBuffer();\n\n }\n\n }",
"@Override\n public void prepare() {\n //Caching as file resource.\n File file = this.getResource().file;\n logger.info(\"Preparing {} streams for file: {}\", this.getTransferType(), file.getName());\n\n if (this.getTransferType() == ResourceTransferType.OUTBOUND) {\n //Sending\n try {\n buffer = new byte[BUFFER_SIZE];\n sent = 0;\n inputChannel = new FileInputStream(file).getChannel();\n inputBuffer = inputChannel.map(FileChannel.MapMode.READ_ONLY, 0, inputChannel.size());\n } catch (FileNotFoundException e) { //File doesn't exist.\n //Calling a transfer error.\n callError(e);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n //Receiving\n //Checking if file already exists.\n written = 0;\n saved = 0;\n if (getResource().isLocal()) {\n getResource().calcNetworkId();\n if (getResource().getNetworkID().equals(getTunnel().getDestination())) {\n //The file is already stored locally.\n getTunnel().sendMessage(new ResourceTransferControlMessage(this.getTransferId(), -2));\n this.close();\n return;\n }\n }\n\n //Creating or replacing the file.\n buffer = new byte[BUFFER_SIZE * 16];\n if (file.exists()) {\n file.delete();\n }\n try { //Creating new file.\n file.createNewFile();\n outputStream = new FileOutputStream(file);\n } catch (IOException e) {\n //Calling a transfer error.\n callError(e);\n return;\n }\n\n //Requesting the first chunk.\n getTunnel().sendMessage(new ResourceTransferControlMessage(this.getTransferId(), 0));\n }\n }",
"public synchronized void beginWrite() {\n\t\tSystem.out.println(\"WRITER BEGIN: \" + Thread.currentThread().getId());\t\n\t\tint writeTurn = currentTurn;\n\t\tcurrentTurn++;\n\n\t\twhile(writeTurn != nextTurn || numReaders > 0 || numWriters > 0 ){ \n\t\t\t/********WAIT CALL*********/\n\t\t\ttry {\n//\t\t\tSystem.out.println(\"WRITER BLOCKED: \" + Thread.currentThread().getId());\t\n\t\t\t\tthis.wait();\n//\t\t\tSystem.out.println(\"WRITER UNBLOCKED: \" + Thread.currentThread().getId());\t\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t/**************************/\n\t\t}\n\t\t\n\t\t//Only increment when the writer is not blocked\n\t\t// (it is at front of queue)\n\t\tnumWriters++;\n\n\t}",
"public abstract Stream<E> streamBlockwise();",
"private void setupStreams() throws IOException {\n\t\toutput = new ObjectOutputStream(Connection.getOutputStream());\n\t\toutput.flush();\n\t\tinput = new ObjectInputStream(Connection.getInputStream()); \n\t\tshowMessage(\"\\n Streams have successfully connected.\");\n\t}",
"public void sync () throws java.io.SyncFailedException, ObjectStoreException\n {\n }",
"@Override\n @SuppressWarnings(\"unchecked\")\n protected void customSync() {\n Exchanger<Void>[] exchangers = (Exchanger<Void>[]) new Exchanger<?>[PRODUCERS_COUNT];\n\n for (int i = 0; i < PRODUCERS_COUNT; i++) {\n exchangers[i] = new Exchanger<>();\n new Producer(params.dataResults, params.postResult, exchangers[i]).start();\n }\n\n new Consumer(params.postFinish, exchangers).start();\n }",
"@Override\n public void close() {\n LOG.info(\"Closing stream writer:\" + streamName);\n shutdown();\n try {\n awaitTermination(1, TimeUnit.MINUTES);\n } catch (InterruptedException ignored) {\n }\n }",
"public void run() {\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t//Acquires a permit blocking until one is available, or the thread is interrupted.\n\t\t\t\t//View if there is some space f the buffer to produce data\n\t\t\t\tempty.acquire();\n\t\t\t\t\n\t\t\t\t//Acquires a permit blocking until one is available, or the thread is interrupted.\n\t\t\t\t//Semaphore for mutual exclusion, acquires the lock to into critical section\n\t\t\t\tmutex.acquire();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Produciendo un recurso (PRODUCTOR)\");\n\t\t\t\t//Produce data in the buffer\n\t\t\t\tbuffer.fill();\n\t\t\t\tSystem.out.println(\"Liberación (PRODUCTOR)\");\n\t\t\t\t\n\t\t\t\t// sleep the Consumidor to work in different time\n\t\t\t\tsleep((long) ((Math.random())%1000));\n\t\t\t\t\n\t\t\t\t//releases the lock\n\t\t\t\tmutex.release();\n\t\t\t\t\n\t\t\t\t//Releases a permit, increasing the number of available permits by one\n\t\t\t\tfull.release();\n\n\t\t\t\t\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void run() {\n byte[] buffer = new byte[1024];\n int bytes;\n while (true) {\n try {\n bytes = mmInStream.read(buffer);\n if (bytes > 0) {\n Log.i(tag, \" ConnectedThread got value: \" + buffer[0]);\n Buffer.write(buffer[0]);\n }\n\n } catch (IOException e) {\n Log.e(tag, \"IOException in ConnectedThread\");\n break;\n }\n }\n }",
"public void lock() {\n\n }",
"protected void lock() {\n semaphore = new Semaphore(0);\n try {\n semaphore.acquire();\n }\n catch(InterruptedException e) {\n System.out.println(\"Trouble for request of semaphore acquirement\");\n e.printStackTrace();\n }\n }",
"private void connectWithMainloopLock() throws java.io.IOException {\n /*\n r28 = this;\n r0 = r28;\n r0 = r0.stream;\n r24 = r0;\n r26 = 0;\n r6 = (r24 > r26 ? 1 : (r24 == r26 ? 0 : -1));\n if (r6 == 0) goto L_0x000d;\n L_0x000c:\n return;\n L_0x000d:\n r13 = r28.getFormat();\n r13 = (javax.media.format.AudioFormat) r13;\n r24 = r13.getSampleRate();\n r0 = r24;\n r0 = (int) r0;\n r19 = r0;\n r11 = r13.getChannels();\n r20 = r13.getSampleSizeInBits();\n r6 = -1;\n r0 = r19;\n if (r0 != r6) goto L_0x0038;\n L_0x0029:\n r24 = org.jitsi.impl.neomedia.MediaUtils.MAX_AUDIO_SAMPLE_RATE;\n r26 = -4616189618054758400; // 0xbff0000000000000 float:0.0 double:-1.0;\n r6 = (r24 > r26 ? 1 : (r24 == r26 ? 0 : -1));\n if (r6 == 0) goto L_0x0038;\n L_0x0031:\n r24 = org.jitsi.impl.neomedia.MediaUtils.MAX_AUDIO_SAMPLE_RATE;\n r0 = r24;\n r0 = (int) r0;\n r19 = r0;\n L_0x0038:\n r6 = -1;\n if (r11 != r6) goto L_0x003c;\n L_0x003b:\n r11 = 1;\n L_0x003c:\n r6 = -1;\n r0 = r20;\n if (r0 != r6) goto L_0x0043;\n L_0x0041:\n r20 = 16;\n L_0x0043:\n r4 = 0;\n r12 = 0;\n r0 = r28;\n r6 = r0.pulseAudioSystem;\t Catch:{ IllegalStateException -> 0x006d, RuntimeException -> 0x0071 }\n r9 = r28.getClass();\t Catch:{ IllegalStateException -> 0x006d, RuntimeException -> 0x0071 }\n r9 = r9.getName();\t Catch:{ IllegalStateException -> 0x006d, RuntimeException -> 0x0071 }\n r23 = \"phone\";\n r0 = r19;\n r1 = r23;\n r4 = r6.createStream(r0, r11, r9, r1);\t Catch:{ IllegalStateException -> 0x006d, RuntimeException -> 0x0071 }\n r0 = r28;\n r0.channels = r11;\t Catch:{ IllegalStateException -> 0x006d, RuntimeException -> 0x0071 }\n L_0x0060:\n if (r12 == 0) goto L_0x0075;\n L_0x0062:\n r16 = new java.io.IOException;\n r16.<init>();\n r0 = r16;\n r0.initCause(r12);\n throw r16;\n L_0x006d:\n r17 = move-exception;\n r12 = r17;\n goto L_0x0060;\n L_0x0071:\n r18 = move-exception;\n r12 = r18;\n goto L_0x0060;\n L_0x0075:\n r24 = 0;\n r6 = (r4 > r24 ? 1 : (r4 == r24 ? 0 : -1));\n if (r6 != 0) goto L_0x0083;\n L_0x007b:\n r6 = new java.io.IOException;\n r9 = \"stream\";\n r6.<init>(r9);\n throw r6;\n L_0x0083:\n r6 = r19 / 100;\n r6 = r6 * r11;\n r9 = r20 / 8;\n r10 = r6 * r9;\n r6 = r10 * 2;\n r0 = r28;\n r0.fragsize = r6;\t Catch:{ all -> 0x00bc }\n r6 = r10 * 10;\n r6 = new byte[r6];\t Catch:{ all -> 0x00bc }\n r0 = r28;\n r0.buffer = r6;\t Catch:{ all -> 0x00bc }\n r6 = -1;\n r9 = -1;\n r23 = -1;\n r24 = -1;\n r0 = r28;\n r0 = r0.fragsize;\t Catch:{ all -> 0x00bc }\n r25 = r0;\n r0 = r23;\n r1 = r24;\n r2 = r25;\n r7 = org.jitsi.impl.neomedia.pulseaudio.PA.buffer_attr_new(r6, r9, r0, r1, r2);\t Catch:{ all -> 0x00bc }\n r24 = 0;\n r6 = (r7 > r24 ? 1 : (r7 == r24 ? 0 : -1));\n if (r6 != 0) goto L_0x00cd;\n L_0x00b4:\n r6 = new java.io.IOException;\t Catch:{ all -> 0x00bc }\n r9 = \"pa_buffer_attr_new\";\n r6.<init>(r9);\t Catch:{ all -> 0x00bc }\n throw r6;\t Catch:{ all -> 0x00bc }\n L_0x00bc:\n r6 = move-exception;\n r0 = r28;\n r0 = r0.stream;\n r24 = r0;\n r26 = 0;\n r9 = (r24 > r26 ? 1 : (r24 == r26 ? 0 : -1));\n if (r9 != 0) goto L_0x00cc;\n L_0x00c9:\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_unref(r4);\n L_0x00cc:\n throw r6;\n L_0x00cd:\n r22 = new org.jitsi.impl.neomedia.jmfext.media.protocol.pulseaudio.DataSource$PulseAudioStream$2;\t Catch:{ all -> 0x011a }\n r0 = r22;\n r1 = r28;\n r0.m2469init();\t Catch:{ all -> 0x011a }\n r0 = r22;\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_set_state_callback(r4, r0);\t Catch:{ all -> 0x011a }\n r0 = r28;\n r6 = org.jitsi.impl.neomedia.jmfext.media.protocol.pulseaudio.DataSource.this;\t Catch:{ all -> 0x011a }\n r6 = r6.getLocatorDev();\t Catch:{ all -> 0x011a }\n r9 = 8193; // 0x2001 float:1.1481E-41 double:4.048E-320;\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_connect_record(r4, r6, r7, r9);\t Catch:{ all -> 0x011a }\n r24 = 0;\n r6 = (r7 > r24 ? 1 : (r7 == r24 ? 0 : -1));\n if (r6 == 0) goto L_0x00f3;\n L_0x00ee:\n org.jitsi.impl.neomedia.pulseaudio.PA.buffer_attr_free(r7);\t Catch:{ all -> 0x0109 }\n r7 = 0;\n L_0x00f3:\n r0 = r28;\n r6 = r0.pulseAudioSystem;\t Catch:{ all -> 0x0109 }\n r9 = 2;\n r21 = r6.waitForStreamState(r4, r9);\t Catch:{ all -> 0x0109 }\n r6 = 2;\n r0 = r21;\n if (r0 == r6) goto L_0x0125;\n L_0x0101:\n r6 = new java.io.IOException;\t Catch:{ all -> 0x0109 }\n r9 = \"stream.state\";\n r6.<init>(r9);\t Catch:{ all -> 0x0109 }\n throw r6;\t Catch:{ all -> 0x0109 }\n L_0x0109:\n r6 = move-exception;\n r0 = r28;\n r0 = r0.stream;\t Catch:{ all -> 0x011a }\n r24 = r0;\n r26 = 0;\n r9 = (r24 > r26 ? 1 : (r24 == r26 ? 0 : -1));\n if (r9 != 0) goto L_0x0119;\n L_0x0116:\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_disconnect(r4);\t Catch:{ all -> 0x011a }\n L_0x0119:\n throw r6;\t Catch:{ all -> 0x011a }\n L_0x011a:\n r6 = move-exception;\n r24 = 0;\n r9 = (r7 > r24 ? 1 : (r7 == r24 ? 0 : -1));\n if (r9 == 0) goto L_0x0124;\n L_0x0121:\n org.jitsi.impl.neomedia.pulseaudio.PA.buffer_attr_free(r7);\t Catch:{ all -> 0x00bc }\n L_0x0124:\n throw r6;\t Catch:{ all -> 0x00bc }\n L_0x0125:\n r0 = r28;\n r6 = r0.readCallback;\t Catch:{ all -> 0x0109 }\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_set_read_callback(r4, r6);\t Catch:{ all -> 0x0109 }\n r6 = org.jitsi.impl.neomedia.jmfext.media.protocol.pulseaudio.DataSource.SOFTWARE_GAIN;\t Catch:{ all -> 0x0109 }\n if (r6 != 0) goto L_0x0168;\n L_0x0132:\n r0 = r28;\n r6 = r0.gainControl;\t Catch:{ all -> 0x0109 }\n if (r6 == 0) goto L_0x0168;\n L_0x0138:\n r24 = org.jitsi.impl.neomedia.pulseaudio.PA.cvolume_new();\t Catch:{ all -> 0x0109 }\n r0 = r24;\n r2 = r28;\n r2.cvolume = r0;\t Catch:{ all -> 0x0109 }\n r14 = 1;\n r0 = r28;\n r6 = r0.gainControl;\t Catch:{ all -> 0x0195 }\n r15 = r6.getLevel();\t Catch:{ all -> 0x0195 }\n r0 = r28;\n r0.setStreamVolume(r4, r15);\t Catch:{ all -> 0x0195 }\n r0 = r28;\n r0.gainControlLevel = r15;\t Catch:{ all -> 0x0195 }\n r14 = 0;\n if (r14 == 0) goto L_0x0168;\n L_0x0157:\n r0 = r28;\n r0 = r0.cvolume;\t Catch:{ all -> 0x0109 }\n r24 = r0;\n org.jitsi.impl.neomedia.pulseaudio.PA.cvolume_free(r24);\t Catch:{ all -> 0x0109 }\n r24 = 0;\n r0 = r24;\n r2 = r28;\n r2.cvolume = r0;\t Catch:{ all -> 0x0109 }\n L_0x0168:\n r0 = r28;\n r0.stream = r4;\t Catch:{ all -> 0x0109 }\n r0 = r28;\n r0 = r0.stream;\t Catch:{ all -> 0x011a }\n r24 = r0;\n r26 = 0;\n r6 = (r24 > r26 ? 1 : (r24 == r26 ? 0 : -1));\n if (r6 != 0) goto L_0x017b;\n L_0x0178:\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_disconnect(r4);\t Catch:{ all -> 0x011a }\n L_0x017b:\n r24 = 0;\n r6 = (r7 > r24 ? 1 : (r7 == r24 ? 0 : -1));\n if (r6 == 0) goto L_0x0184;\n L_0x0181:\n org.jitsi.impl.neomedia.pulseaudio.PA.buffer_attr_free(r7);\t Catch:{ all -> 0x00bc }\n L_0x0184:\n r0 = r28;\n r0 = r0.stream;\n r24 = r0;\n r26 = 0;\n r6 = (r24 > r26 ? 1 : (r24 == r26 ? 0 : -1));\n if (r6 != 0) goto L_0x000c;\n L_0x0190:\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_unref(r4);\n goto L_0x000c;\n L_0x0195:\n r6 = move-exception;\n if (r14 == 0) goto L_0x01a9;\n L_0x0198:\n r0 = r28;\n r0 = r0.cvolume;\t Catch:{ all -> 0x0109 }\n r24 = r0;\n org.jitsi.impl.neomedia.pulseaudio.PA.cvolume_free(r24);\t Catch:{ all -> 0x0109 }\n r24 = 0;\n r0 = r24;\n r2 = r28;\n r2.cvolume = r0;\t Catch:{ all -> 0x0109 }\n L_0x01a9:\n throw r6;\t Catch:{ all -> 0x0109 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jitsi.impl.neomedia.jmfext.media.protocol.pulseaudio.DataSource$PulseAudioStream.connectWithMainloopLock():void\");\n }",
"@SuppressWarnings(\"GuardedByChecker\")\n private void sendFlushDataLocked() {\n assert mWriteState == State.WAITING_FOR_FLUSH;\n int size = mFlushData.size();\n ByteBuffer[] buffers = new ByteBuffer[size];\n int[] positions = new int[size];\n int[] limits = new int[size];\n for (int i = 0; i < size; i++) {\n ByteBuffer buffer = mFlushData.poll();\n buffers[i] = buffer;\n positions[i] = buffer.position();\n limits[i] = buffer.limit();\n }\n assert mFlushData.isEmpty();\n assert buffers.length >= 1;\n mWriteState = State.WRITING;\n mRequestHeadersSent = true;\n if (!CronetBidirectionalStreamJni.get().writevData(mNativeStream,\n CronetBidirectionalStream.this, buffers, positions, limits,\n mEndOfStreamWritten && mPendingData.isEmpty())) {\n // Still waiting on flush. This is just to have consistent\n // behavior with the other error cases.\n mWriteState = State.WAITING_FOR_FLUSH;\n throw new IllegalArgumentException(\"Unable to call native writev.\");\n }\n }",
"public void run() {\n\t\twhile(running){\n\t\t\t\n\t\t\tif (!thingsToWrite.isEmpty()){\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tString s = (String) thingsToWrite.get(0);\n\t\t\t\t\tif(s.equals(\"file\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\t//write \"files\"\n\t\t\t\t\t\toos.writeObject(thingsToWrite.getNRemoveFirst());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//need to wait for synchro //HARDCODED, ideal : 1 command\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//write the dataObject\n\t\t\t\t\t\toos.writeObject(thingsToWrite.getNRemoveFirst());\n\n\t\t\t\t\t\t//need to wait for synchro //HARDCODED, ideal : 1 command\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//write the file\n\t\t\t\t\t\tbyte[] content = ( byte[] )thingsToWrite.getNRemoveFirst();\n\t\t\t\t\t\toos.writeObject(content);\n\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"file Sent\");\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(s.startsWith(\"addRepo\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\toos.writeObject(s);\n\t\t\t\t\t\tthingsToWrite.remove(0);\n\t\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\t\toos.writeObject(s);\n\t\t\t\t\t\tthingsToWrite.remove(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (IOException | InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected void releaseBuffer()\n {\n interlock.endReading();\n // System.out.println(\"endReading: 2\");\n }",
"@Test\n public void syncStreamsTest() {\n try (Context context = GrCUDATestUtil.buildTestContext().build()) {\n Value createStream = context.eval(\"grcuda\", \"cudaStreamCreate\");\n Value stream1 = createStream.execute();\n Value stream2 = createStream.execute();\n\n final int numElements = 100;\n final int numBlocks = (numElements + NUM_THREADS_PER_BLOCK - 1) / NUM_THREADS_PER_BLOCK;\n Value deviceArrayConstructor = context.eval(\"grcuda\", \"DeviceArray\");\n Value x = deviceArrayConstructor.execute(\"float\", numElements);\n Value y = deviceArrayConstructor.execute(\"float\", numElements);\n Value buildkernel = context.eval(\"grcuda\", \"buildkernel\");\n Value squareKernel = buildkernel.execute(SQUARE_KERNEL, \"square\", \"pointer, pointer, sint32\");\n for (int i = 0; i < numElements; ++i) {\n x.setArrayElement(i, 2.0);\n }\n // Set the custom streams;\n Value configuredSquareKernel1 = squareKernel.execute(numBlocks, NUM_THREADS_PER_BLOCK, stream1);\n Value configuredSquareKernel2 = squareKernel.execute(numBlocks, NUM_THREADS_PER_BLOCK, stream2);\n\n Value createEvent = context.eval(\"grcuda\", \"cudaEventCreate\");\n Value eventRecord = context.eval(\"grcuda\", \"cudaEventRecord\");\n Value streamEventWait = context.eval(\"grcuda\", \"cudaStreamWaitEvent\");\n\n configuredSquareKernel1.execute(x, y, numElements);\n\n // Create an event to ensure that kernel 2 executes after kernel 1 is completed;\n Value event = createEvent.execute();\n eventRecord.execute(event, stream1);\n streamEventWait.execute(stream2, event);\n\n configuredSquareKernel2.execute(y, x, numElements);\n\n Value syncStream = context.eval(\"grcuda\", \"cudaStreamSynchronize\");\n syncStream.execute(stream2);\n\n for (int i = 0; i < numElements; i++) {\n assertEquals(16.0, x.getArrayElement(i).asFloat(), 0.01);\n assertEquals(4.0, y.getArrayElement(i).asFloat(), 0.01);\n }\n }\n }",
"@Override\n\tpublic void run() \n\t{\n\t\ttry\n\t\t{\t\t\t\n\t\t\tint [] blockSizes = {1,1024,65505};\n\t\t\tfor(int blk = 0; blk < blockSizes.length; blk++)\n\t\t\t{\n\t\t\t\tDataInputStream inpStream = new DataInputStream(clientSock.getInputStream());\n\t\t\t\tDataOutputStream opStream = new DataOutputStream(clientSock.getOutputStream());\n\n\t\t\t\tFile file = new File(\"ClientA.txt\");\n\t\t\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\t\tbufLen = blockSizes[blk];\n\t\t\t\t\n\t\t\t\tbyte[] buffContent = new byte[bufLen];\n\t\t\t\tint numRead = 0, totalBytes=0;\n\n\t\t\t\twhile ((numRead = inpStream.read(buffContent))!=-1) \n\t\t\t\t{\n\t\t\t\t\tfos.write(buffContent, 0, numRead);\n\t\t\t\t\ttotalBytes+=numRead;\n\t\t\t\t\tif (totalBytes == bufLen)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tnumRead = 0;\n\t\t\t\ttotalBytes = 0;\n\t\t\t\n\t\t\t\twhile((numRead = fis.read(buffContent))!=-1)\n\t\t\t\t{\t\t\n\t\t\t\t\topStream.write(buffContent,0,numRead);\n\t\t\t\t\ttotalBytes+=numRead;\n\t\t\t\t\tif (totalBytes == bufLen)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@CallByThread(\"Netty EventLoop\")\n @Override\n public void run() {\n if (referenced > 0) { // is blocking\n incomingPublishService.drain();\n }\n }",
"void flush() {\r\n synchronized (sync) {\r\n updatedFiles.clear();\r\n }\r\n }",
"public void syncChannel() {\r\n\t\tarrChannels.clear(); // I want to make sure that there are no leftover data inside.\r\n\t\tfor(int i = 0; i < workChannels.size(); i++) {\r\n\t\t\tarrChannels.add(workChannels.get(i));\r\n\t\t}\r\n\t}",
"void refreshState() {\n if (delegate instanceof AbstractStreamsConnection) {\n AbstractStreamsConnection asc = (AbstractStreamsConnection)delegate;\n apiKey = asc.getAuthorization();\n executor = asc.getExecutor();\n }\n }",
"public SimpleReadWriteLock() {\n\n\t\treaderLock = new ReadLock();\n\t\twriterLock = new WriteLock();\n\t\treaders = 0;\n\t\twriters = 0;\n\t\tthis.lock = this;\n\t}",
"public void run() {\n\t\tGenRandomString generator = new GenRandomString();\n\t\tStringToInt converter = new StringToInt();\n\t\t\n\t\tint rawData;\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\trawData = converter.convert(generator.generate());\n\t\t\t\n\t\t\t//synchronization to make sure that queue is filled up in the correct order.\n\t\t\tsynchronized(GlobalInfo.enqueueLock){\n\t\t\t\tSystem.out.format(\"%d got the lock.\\n\",deviceNumber);\n\t\t\t\tGlobalInfo.inputs[deviceNumber] = rawData;\n\t\t\t\tGlobalInfo.pipeLine.add(GlobalInfo.inputs);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep(10000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}"
] | [
"0.7431529",
"0.7102275",
"0.62947756",
"0.5950975",
"0.59185696",
"0.58933586",
"0.58724624",
"0.5861164",
"0.58009166",
"0.5794639",
"0.57763124",
"0.5757804",
"0.57388234",
"0.56922233",
"0.567329",
"0.56703275",
"0.564152",
"0.55998814",
"0.5585832",
"0.5555677",
"0.5537774",
"0.55247575",
"0.5522917",
"0.55041313",
"0.5475895",
"0.54419005",
"0.53792447",
"0.53570414",
"0.5353517",
"0.53435844",
"0.53351635",
"0.53351635",
"0.53351635",
"0.532709",
"0.5318291",
"0.530369",
"0.5290355",
"0.5281971",
"0.5279454",
"0.5274483",
"0.5265742",
"0.5262779",
"0.52555585",
"0.5252434",
"0.5249207",
"0.5233227",
"0.52105635",
"0.5206935",
"0.52033556",
"0.52003807",
"0.518794",
"0.5171722",
"0.51700914",
"0.5166405",
"0.5157454",
"0.5156791",
"0.51541543",
"0.51517236",
"0.5142697",
"0.51345",
"0.51322466",
"0.51294017",
"0.51272476",
"0.5125164",
"0.51204437",
"0.5114908",
"0.511191",
"0.5098239",
"0.5096851",
"0.50898653",
"0.5089644",
"0.5087437",
"0.5080853",
"0.5071044",
"0.50617856",
"0.50578755",
"0.5050209",
"0.5037166",
"0.50266653",
"0.5021099",
"0.5019405",
"0.5014337",
"0.50129455",
"0.50124234",
"0.50110143",
"0.5010734",
"0.5008636",
"0.50026387",
"0.5001279",
"0.4998744",
"0.4994465",
"0.49943703",
"0.4992851",
"0.49871948",
"0.4983124",
"0.49830627",
"0.49778607",
"0.49611625",
"0.4958582",
"0.49528256"
] | 0.7949988 | 0 |
Synchronizes on the old stream | public void syncOldStream() {
ContextHolder.getInstance().setContext();
JCuda.cudaStreamSynchronize(oldStream);
/*
if(!oldEventDestroyed) {
JCuda.cudaStreamSynchronize(oldStream);
JCuda.cudaStreamWaitEvent(oldStream,oldEvent,0);
JCuda.cudaEventDestroy(oldEvent);
oldEventDestroyed = true;
}*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void syncStream() {\n JCudaDriver.cuStreamSynchronize(stream);}",
"public void syncHandle() {\n syncOldStream();\n }",
"default void refreshStream() {}",
"T sync() throws IOException, ChallongeException;",
"@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshReadLock(lockKey, readToken, lockTimeoutSec);\r\n\t\t\t}",
"@Override\n\tpublic void sync() throws IOException {\n\t\t\n\t}",
"void sync() throws IOException;",
"void sync()throws IOException;",
"default EagerFutureStream<U> sync(){\n\t\treturn (EagerFutureStream<U>)FutureStream.super.sync();\n\t}",
"@Override\n\tpublic void sync() throws IOException\n\t{\n\n\t}",
"public void initOldStream() {\n ContextHolder.getInstance().setContext();\n if(oldStream == null) {\n /* try {\n oldStream = ContextHolder.getInstance().getOldStreamPool().borrowObject();\n } catch (Exception e) {\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n }*/\n\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n // oldEvent = new cudaEvent_t();\n // JCuda.cudaEventCreate(oldEvent);\n // oldEventDestroyed = false;\n }\n\n }",
"@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshWriteLock(lockKey, finalWriteToken, lockTimeoutSec);\r\n\t\t\t}",
"public void lock() {\n if (!locked) {\n locked = true;\n sortAndTruncate();\n }\n }",
"@Override\n public void sync(){\n }",
"public void synchronize(){ \r\n }",
"public void sync() {\n\t\t\n\t\tfor (int i = 0; i <= temporary.length - 1; i++) {\n\t\t\tfinalized[i] = temporary[i];\n\t\t}\n\n//TODO:\t\ttemporary.clear();\n\t}",
"@Override public void onStreamUpdate(final Set<Long> updatedChunks) {\n }",
"@Override\n public void hflush() throws IOException {\n hsync();\n }",
"void flush() {\r\n synchronized (sync) {\r\n updatedFiles.clear();\r\n }\r\n }",
"public void lock() {\r\n super.lock();\r\n }",
"@Override\n public void flush() throws IOException {\n checkStreamState();\n flushIOBuffers();\n }",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n super.lock();\n }",
"public synchronized void associateHandle() {\n JCublas2.cublasSetStream(handle,oldStream);\n }",
"void synchronizeHostData(DataBuffer buffer);",
"@Override\n public void run() {\n super.run();\n notAtomic.naIncreament();\n }",
"public static void synchronize() {\n awaitCompletion(READ_HANDLES);\n awaitCompletion(WRITE_HANDLES);\n }",
"public void sync() {\n\t\tif (!validState) {\n\t\t\tthrow new InvalidStateException();\n\t\t}\n\t\tif (useMmap) {\n\t\t\tsyncAllMmaps();\n\t\t}\n\t\tif (fileChannel != null) {\n\t\t\ttry {\n\t\t\t\tfileChannel.force(false);\n\t\t\t} catch (Exception ign) {\n\t\t\t}\n\t\t}\n\t\tif (callback != null) {\n\t\t\tcallback.synched();\n\t\t}\n\t}",
"protected void releaseBuffer()\n {\n interlock.endReading();\n // System.out.println(\"endReading: 2\");\n }",
"private void streamCopy(InputStream in, OutputStream out) throws IOException {\t \n\t\tsynchronized (in) {\n\t\t\tsynchronized (out) {\n\t\t\t\tbyte[] buffer = new byte[256];\n\t\t\t\twhile (true) {\n\t \t\tint bytesRead = in.read(buffer);\n\t \t\tif (bytesRead == -1) break;\n\t \t\tout.write(buffer, 0, bytesRead);\n\t \t}\n\t \t}\n\t }\n\t}",
"@Override\n public void run() {\n currentContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n while (true) {\n String newlyReadContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n if (!newlyReadContent.equals(currentContent) || !newlyReadContent.isEmpty()){\n notify(newlyReadContent);\n currentContent = newlyReadContent;\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n//end of modifiable zone..................E/bfb5c4c0-88e6-44fa-9add-89d5b4394004\n }",
"public void recycle() {\r\n // Recycle our parent\r\n super.recycle();\r\n // Recycle the stream\r\n this.localstream.recycle();\r\n // Tell the parent that a stream is already in use.\r\n this.setStream(localstream);\r\n }",
"@Deprecated\n public void sync() throws IOException {\n hflush();\n }",
"public void run()\n{\n try {\n InputStreamReader in = new InputStreamReader(input_stream);\n int c;\n if(is_synchronized){\n\t while ((c = in.read()) != -1) {\n\t synchronized(lock){\n\t contents.append((char) c);\n\t }\n\t }\n }\n else{\n\t while ((c = in.read()) != -1) {\n\t contents.append((char) c);\n\t }\n }\n }\n catch (Exception e) {\n //that's ok\n }\n}",
"public LockSync() {\n lock = new ReentrantLock();\n }",
"public void sync(){\n byte[] block = new byte[512];\n SysLib.int2bytes(totalBlocks, block, 0);\n SysLib.int2bytes(totalInodes, block, 4);\n SysLib.int2bytes(freeList, block, 8);\n SysLib.rawwrite(0, block);\n }",
"public static void sync() {\n // write out superblock if updated\n // write out free list blocks if updated\n // write out inode blocks if updated\n // write out data blocks if updated\n\n // at present, all changes to inodes, data blocks, \n // and free list blocks\n // are written as they go, so this method does nothing.\n }",
"public ClientStream delegate() {\n return newStream;\n }",
"public void testMarkResetThreaded () throws IOException\n {\n String link;\n ArrayList bytes1;\n ArrayList bytes2;\n URL url;\n URLConnection connection;\n Stream stream;\n int b;\n int index;\n\n // pick a small file > 2000 bytes\n link = \"http://htmlparser.sourceforge.net/javadoc/overview-summary.html\";\n bytes1 = new ArrayList ();\n bytes2 = new ArrayList ();\n try\n {\n url = new URL (link);\n connection = url.openConnection ();\n connection.connect ();\n stream = new Stream (connection.getInputStream ());\n (new Thread (stream)).start ();\n assertTrue (\"mark not supported\", stream.markSupported ());\n\n for (int i = 0; i < 1000; i++)\n {\n b = stream.read ();\n bytes1.add (new Byte ((byte)b));\n }\n stream.reset ();\n for (int i = 0; i < 1000; i++)\n {\n b = stream.read ();\n bytes2.add (new Byte ((byte)b));\n }\n\n index = 0;\n while (index < bytes1.size ())\n {\n assertEquals (\"bytes differ at position \" + index, bytes1.get (index), bytes2.get (index));\n index++;\n }\n\n bytes1.clear ();\n bytes2.clear ();\n\n stream.mark (1000); // the 1000 is ignored\n for (int i = 0; i < 1000; i++)\n {\n b = stream.read ();\n bytes1.add (new Byte ((byte)b));\n }\n stream.reset ();\n for (int i = 0; i < 1000; i++)\n {\n b = stream.read ();\n bytes2.add (new Byte ((byte)b));\n }\n stream.close ();\n\n index = 0;\n while (index < bytes1.size ())\n {\n assertEquals (\"bytes differ at position \" + (index + 1000), bytes1.get (index), bytes2.get (index));\n index++;\n }\n }\n catch (MalformedURLException murle)\n {\n fail (\"bad url \" + link);\n }\n }",
"public static boolean sync(FileOutputStream stream) {\n try {\n if (stream != null) {\n stream.getFD().sync();\n }\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n }\n return false;\n }",
"public void lock() {\n\t\tlocked = true;\n\t}",
"public void flushStreamSpecs();",
"public boolean synchronize() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void resetStreamingNotification() {\n\t\t\n\t}",
"void contentsSynchronized();",
"public void sync () throws java.io.SyncFailedException, ObjectStoreException\n {\n }",
"protected final void lockRead() {\n m_lock.readLock().lock();\n }",
"@Override\n public void run() {\n try {\n\n byte[] data = new byte[TcpClient.BUFFER_SIZE * 2];\n\n while(!Rebroadcaster.INSTANCE.isHalted()) {\n int len = is.read(data, 0, data.length);\n os.write(data, 0, len);\n os.flush();\n }\n } catch (IOException ex) {\n LOGGER.log(Level.SEVERE, null, ex);\n }\n }",
"private Object writeReplace() throws ObjectStreamException {\n return INSTANCE;\n }",
"public void sync()\n {\n byte[] blockData = new byte[Disk.blockSize];\n SysLib.int2bytes(totalBlocks, blockData, 0);\n SysLib.int2bytes(inodeBlocks, blockData, 4);\n SysLib.int2bytes(freeList, blockData, 8);\n SysLib.rawwrite(0, blockData);\n }",
"void refreshState() {\n if (delegate instanceof AbstractStreamsConnection) {\n AbstractStreamsConnection asc = (AbstractStreamsConnection)delegate;\n apiKey = asc.getAuthorization();\n executor = asc.getExecutor();\n }\n }",
"private static void mergingSyncMadeAsync() {\n Observable.merge(getDataSync(1).subscribeOn(Schedulers.io()), getDataSync(2).subscribeOn(Schedulers.io())).blockingForEach(System.out::println);\n }",
"public synchronized void flush() throws IOException {\n if (sink != null) {\n synchronized (sink) {\n sink.notifyAll();\n }\n }\n }",
"public synchronized void finishWriting() {\n readerNumber++; // readerNumber = -1 + 1 = 0; \n// readerNumber must be 0 at this point \n this.notifyAll(); // notify possible waiting writers or waiting readers \n }",
"private static void mergingSync() {\n Observable.merge(getDataSync(1), getDataSync(2)).blockingForEach(System.out::println);\n }",
"@SuppressWarnings(\"GuardedByChecker\")\n private void sendFlushDataLocked() {\n assert mWriteState == State.WAITING_FOR_FLUSH;\n int size = mFlushData.size();\n ByteBuffer[] buffers = new ByteBuffer[size];\n int[] positions = new int[size];\n int[] limits = new int[size];\n for (int i = 0; i < size; i++) {\n ByteBuffer buffer = mFlushData.poll();\n buffers[i] = buffer;\n positions[i] = buffer.position();\n limits[i] = buffer.limit();\n }\n assert mFlushData.isEmpty();\n assert buffers.length >= 1;\n mWriteState = State.WRITING;\n mRequestHeadersSent = true;\n if (!CronetBidirectionalStreamJni.get().writevData(mNativeStream,\n CronetBidirectionalStream.this, buffers, positions, limits,\n mEndOfStreamWritten && mPendingData.isEmpty())) {\n // Still waiting on flush. This is just to have consistent\n // behavior with the other error cases.\n mWriteState = State.WAITING_FOR_FLUSH;\n throw new IllegalArgumentException(\"Unable to call native writev.\");\n }\n }",
"void unlockRead(long stamp);",
"public final void ogg_sync_init() {// return changed to void\r\n\t\t//if( oy != null ) {\r\n\t\t\t// FIXME is this a bug? may be after clear()?\r\n\t\t\tstorage = -1; /* used as a readiness flag */\r\n\t\t\tclear();\r\n\t\t//}\r\n\t\t//return (0);\r\n\t}",
"public void drain() {\r\n if (getAndIncrement() == 0) {\r\n SimpleQueue<T> simpleQueue = this.queue;\r\n int i = this.consumed;\r\n int i2 = this.bufferSize;\r\n int i3 = i2 - (i2 >> 2);\r\n boolean z = this.sourceMode != 1;\r\n int i4 = 1;\r\n int i5 = i;\r\n SimpleQueue<T> simpleQueue2 = simpleQueue;\r\n int i6 = i5;\r\n while (true) {\r\n if (simpleQueue2 != null) {\r\n long j = LongCompanionObject.MAX_VALUE;\r\n InnerSubscription[] innerSubscriptionArr = (InnerSubscription[]) this.subscribers.get();\r\n boolean z2 = false;\r\n for (InnerSubscription innerSubscription : innerSubscriptionArr) {\r\n long j2 = innerSubscription.get();\r\n if (j2 != Long.MIN_VALUE) {\r\n j = Math.min(j2 - innerSubscription.emitted, j);\r\n z2 = true;\r\n }\r\n }\r\n long j3 = 0;\r\n if (!z2) {\r\n j = 0;\r\n }\r\n while (true) {\r\n if (j == j3) {\r\n break;\r\n }\r\n boolean z3 = this.done;\r\n try {\r\n Object poll = simpleQueue2.poll();\r\n boolean z4 = poll == null;\r\n if (!checkTerminated(z3, z4)) {\r\n if (z4) {\r\n break;\r\n }\r\n int length = innerSubscriptionArr.length;\r\n for (int i7 = 0; i7 < length; i7++) {\r\n InnerSubscription innerSubscription2 = innerSubscriptionArr[i7];\r\n if (!innerSubscription2.isCancelled()) {\r\n innerSubscription2.downstream.onNext(poll);\r\n innerSubscription2.emitted++;\r\n }\r\n }\r\n if (z) {\r\n i6++;\r\n if (i6 == i3) {\r\n ((Subscription) this.upstream.get()).request((long) i3);\r\n i6 = 0;\r\n }\r\n }\r\n j--;\r\n if (innerSubscriptionArr != this.subscribers.get()) {\r\n break;\r\n }\r\n j3 = 0;\r\n } else {\r\n return;\r\n }\r\n } catch (Throwable th) {\r\n Throwable th2 = th;\r\n Exceptions.throwIfFatal(th2);\r\n ((Subscription) this.upstream.get()).cancel();\r\n simpleQueue2.clear();\r\n this.done = true;\r\n signalError(th2);\r\n return;\r\n }\r\n }\r\n if (checkTerminated(this.done, simpleQueue2.isEmpty())) {\r\n return;\r\n }\r\n }\r\n this.consumed = i6;\r\n i4 = addAndGet(-i4);\r\n if (i4 != 0) {\r\n if (simpleQueue2 == null) {\r\n simpleQueue2 = this.queue;\r\n }\r\n } else {\r\n return;\r\n }\r\n }\r\n }\r\n }",
"@Override public void run()\n\t\t{\n\t\t\twhile (mutex)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\");\n\t\t\t}\n\t\t\tmutex = true; \n\t\t\treadCount++;\n\t\t\tif (readCount == 1)\n\t\t\t{\n\t\t\twrt = true; // Locking writer when reader is active\n\t\t\t}\n\t\t\tmutex = false;\n\t\t\t// Critical Section \n\t\t\ttry {\n\t\t\t\t\tFile myObj = new File(\"shared.txt\"); \n\t\t\t\t\tScanner myReader = new Scanner(myObj); \n\t\t\t\t\tString data = myReader.nextLine(); \n\t\t\t\t\tSystem.out.println(\"Reading: \" + data); \n\t\t\t\t\tmyReader.close();\n\t\t\t\t} catch (FileNotFoundException e){}\n\n\t\t\t// Leave Critical section\n\t\t\twhile (mutex) { System.out.print(\"\"); } mutex = true;\n\t\t\treadCount--;\n\t\t\tif (readCount == 0) \n\t\t\t{\n\t\t\t\twrt = false; // Unlocking writer if all reading process is done.\n\t\t\t}\n\t\t\tmutex = false;\n\t\t}",
"private SAMRecord flush() {\n // Check that there is at least one record in the coordinate-sorted buffer, and that the head record has been through duplicate-marking\n while (!outputBuffer.isEmpty() && outputBuffer.canEmit()) {\n // the buffer contains wrapped SAMRecords, which we want to unwrap\n final SAMRecord record = outputBuffer.next().getRecord();\n\n // If this read is a duplicate, do we want to remove it (continue the loop) or return it for emission?\n if (!removeDuplicates || !record.getDuplicateReadFlag()) {\n return record;\n }\n }\n return null;\n }",
"public void synchronize(int change);",
"public void syncChannel() {\r\n\t\tarrChannels.clear(); // I want to make sure that there are no leftover data inside.\r\n\t\tfor(int i = 0; i < workChannels.size(); i++) {\r\n\t\t\tarrChannels.add(workChannels.get(i));\r\n\t\t}\r\n\t}",
"void trySynchronizeHostData(DataBuffer buffer);",
"protected void fastReTx() {\n\t\tActualSegment unackCur = unackHead;\n\n\t\twhile(unackCur != null) {\n\t\t\teventQueue.remove(unackCur);\n\t\t\tpipe.write(unackCur);\n\t\t\tunackCur = unackCur.next;\n\t\t}\n\t}",
"synchronized protected void rewind() {\n\t\ttry {\n\t\t\tais.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new CCSoundException(\"JSPCMAudioRecordingStream::rewind - Error closing the stream before reload\", e);\n\t\t}\n\t\tais = CCSoundIO.getAudioInputStream(meta.fileName());\n\t}",
"private void updateIfStale() {\n if (DateTimeUtils.currentTimeMillis() - globalLastDrainMillis >= maxStaleMillis) {\n synchronized (counterShards) {\n if (DateTimeUtils.currentTimeMillis() - globalLastDrainMillis >= maxStaleMillis) {\n drainThreadToShared();\n globalLastDrainMillis = DateTimeUtils.currentTimeMillis();\n }\n }\n }\n }",
"@Override\n\t\tpublic void lock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (writers > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treaders++;\n\t\t\t}\n\t\t}",
"private void enforceStreamSafety(){\n boolean gettingData = isGettingData(); //Check if we're getting data\n\n if(gettingData) {\n rtButton.setText(getResources().getString(R.string.start_dl_rt));\n sendLogApp(); //Need to send logapp to stop data transfer\n\n streaming_rt = !streaming_rt;\n flushStream(); //Get rid of any real time data still hanging around\n\n try {\n Thread.sleep(200);\n }\n catch(java.lang.InterruptedException e){\n System.out.println(\"Failed to sleep\");\n }\n }\n }",
"public static void sync() {\n/* 72 */ if (theInstance != null) {\n/* */ \n/* */ \n/* */ \n/* 76 */ D3DScreenUpdateManager d3DScreenUpdateManager = (D3DScreenUpdateManager)ScreenUpdateManager.getInstance();\n/* 77 */ d3DScreenUpdateManager.runUpdateNow();\n/* */ \n/* 79 */ theInstance.lock();\n/* */ try {\n/* 81 */ theInstance.ensureCapacity(4);\n/* 82 */ theInstance.getBuffer().putInt(76);\n/* 83 */ theInstance.flushNow();\n/* */ } finally {\n/* 85 */ theInstance.unlock();\n/* */ } \n/* */ } \n/* */ }",
"@Override\n\t\tpublic void lock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (readers > 0 || writers > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twriters++;\n\t\t\t}\n\t\t}",
"public final int ogg_sync_reset() {\r\n\t\tif( ogg_sync_check() != 0 ) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\tfill = 0;\r\n\t\treturned = 0;\r\n\t\tunsynced = false;\r\n\t\theaderbytes = 0;\r\n\t\tbodybytes = 0;\r\n\t\treturn 0;\r\n\t}",
"void flushBlocking();",
"protected void openStream ()\n {\n stream = Util.stream (entry, \"Holder.java\");\n }",
"private void startWrite() {\n\t\tlock.lock();\n\t\tif (newMap == null) // Write not already started\n\t\t\tnewMap = ArrayListMultimap.create(map);\n\t}",
"public void bufferedAmountChange() {\n // Webrtc.org fires the bufferedAmountChange event from a different\n // thread (B) while locking the native send call on the current\n // thread (A). This leads to a deadlock if we try to lock this\n // instance from (B). So, this... pleasant workaround prevents\n // deadlocking the send call.\n CompletableFuture.runAsync(() -> {\n synchronized (this) {\n final long bufferedAmount = this.dc.bufferedAmount();\n // Unpause once low water mark has been reached\n if (bufferedAmount <= this.lowWaterMark && !this.readyFuture.isDone()) {\n log.debug(this.dc.label() + \" resumed (buffered=\" + bufferedAmount + \")\");\n this.readyFuture.complete(null);\n }\n }\n });\n }",
"protected final void lockWrite() {\n m_lock.writeLock().lock();\n }",
"public void sync(boolean flush) throws IOException\n {\n segmentManager.sync(flush);\n }",
"public ObjectOutputStream acquireStream() throws InterruptedException\n {\n StreamMutex.acquire();\n return OutputStream;\n }",
"public void lock() {\n\n }",
"public void sync()\n\t{\n\t\tbyte[] buffer = new byte[Disk.blockSize];\n\n\t\t// Write the totalBlocks, totalInodes, and freeList.\n\t\tSysLib.int2bytes(totalBlocks, buffer, 0);\n\t\tSysLib.int2bytes(totalInodes, buffer, 4);\n\t\tSysLib.int2bytes(freeList, buffer, 8);\n\t\tSysLib.int2bytes(lastFreeBlock, buffer, 12);\n\n\t\t// Write the block back to disk.\n\t\tSysLib.rawwrite(0, buffer);\n\t}",
"public synchronized void reset()\n {\n printDebug(\"reset() start\");\n\n if (open) {\n \tif(started) {\n \t\tline.stop();\n \t}\n \tif(!reset) {\n \t\tline.flush();\n \t} \t\n \ttotalWritten = 0;\n \t// TODO: totalWritten might be updated after this in write method.\n started = false;\n timeTracker.reset();\n notifyAll();\n }\n reset = true;\n printDebug(\"reset() end\");\n }",
"private byte[] refreshBuffer() throws IOException {\n bufpos = 0;\n if (client.isTransferCancelled())\n return null;\n int count = client.readChunk(in, chunk, chunk.length);\n if (count < 0) {\n if (matchpos > 0) { \n pos += matchpos;\n buflen = matchpos;\n monitorCount += matchpos;\n byte[] tmp = new byte[matchpos];\n System.arraycopy(tmp, 0, prevBuf, 0, matchpos);\n matchpos = 0;\n return tmp;\n }\n return null;\n }\n try {\n // transform CRLF\n out.reset();\n for (int i = 0; i < count; i++) {\n if (chunk[i] == FTPClient.FTP_LINE_SEPARATOR[matchpos]) {\n prevBuf[matchpos] = chunk[i];\n matchpos++;\n if (matchpos == FTPClient.FTP_LINE_SEPARATOR.length) {\n out.write(LINE_SEPARATOR);\n pos += LINE_SEPARATOR.length;\n monitorCount += LINE_SEPARATOR.length;\n matchpos = 0;\n }\n }\n else { // no match\n // write out existing matches\n if (matchpos > 0) {\n out.write(prevBuf, 0, matchpos);\n pos += matchpos;\n monitorCount += matchpos;\n }\n out.write(chunk[i]);\n pos++;\n monitorCount++;\n matchpos = 0;\n } \n } \n byte[] result = out.toByteArray();\n buflen = result.length;\n return result;\n }\n finally {\n checkMonitor(); \n }\n }",
"public long getStream();",
"void pushBack() throws IOException {\n iis.seek(iis.getStreamPosition()-bufAvail);\n bufAvail = 0;\n bufPtr = 0;\n }",
"public void setBuffering() {\n try {\n doc = StaxUtils.read(stream);\n stream = null;\n } catch (XMLStreamException e) {\n throw new Fault(e); \n }\n }",
"@Override\n @SuppressWarnings(\"unchecked\")\n protected void customSync() {\n Exchanger<Void>[] exchangers = (Exchanger<Void>[]) new Exchanger<?>[PRODUCERS_COUNT];\n\n for (int i = 0; i < PRODUCERS_COUNT; i++) {\n exchangers[i] = new Exchanger<>();\n new Producer(params.dataResults, params.postResult, exchangers[i]).start();\n }\n\n new Consumer(params.postFinish, exchangers).start();\n }",
"public void flushBuffers()\n throws IOException\n {\n pool.moveToStart();\n Buffer buffer;\n while (pool.getValue() != null)\n {\n buffer = pool.remove();\n if (buffer.isDirty())\n {\n file.seek(buffer.getBlockNumber() * BLOCK_SIZE);\n file.write(buffer.readBlock());\n diskWrites++;\n }\n }\n }",
"public void clear() {\n streams.clear();\n }",
"@Override\n\t\tpublic void unlock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\treaders--;\n\t\t\t\tlock.notifyAll();\n\t\t\t}\n\n\t\t}",
"private void connectWithMainloopLock() throws java.io.IOException {\n /*\n r28 = this;\n r0 = r28;\n r0 = r0.stream;\n r24 = r0;\n r26 = 0;\n r6 = (r24 > r26 ? 1 : (r24 == r26 ? 0 : -1));\n if (r6 == 0) goto L_0x000d;\n L_0x000c:\n return;\n L_0x000d:\n r13 = r28.getFormat();\n r13 = (javax.media.format.AudioFormat) r13;\n r24 = r13.getSampleRate();\n r0 = r24;\n r0 = (int) r0;\n r19 = r0;\n r11 = r13.getChannels();\n r20 = r13.getSampleSizeInBits();\n r6 = -1;\n r0 = r19;\n if (r0 != r6) goto L_0x0038;\n L_0x0029:\n r24 = org.jitsi.impl.neomedia.MediaUtils.MAX_AUDIO_SAMPLE_RATE;\n r26 = -4616189618054758400; // 0xbff0000000000000 float:0.0 double:-1.0;\n r6 = (r24 > r26 ? 1 : (r24 == r26 ? 0 : -1));\n if (r6 == 0) goto L_0x0038;\n L_0x0031:\n r24 = org.jitsi.impl.neomedia.MediaUtils.MAX_AUDIO_SAMPLE_RATE;\n r0 = r24;\n r0 = (int) r0;\n r19 = r0;\n L_0x0038:\n r6 = -1;\n if (r11 != r6) goto L_0x003c;\n L_0x003b:\n r11 = 1;\n L_0x003c:\n r6 = -1;\n r0 = r20;\n if (r0 != r6) goto L_0x0043;\n L_0x0041:\n r20 = 16;\n L_0x0043:\n r4 = 0;\n r12 = 0;\n r0 = r28;\n r6 = r0.pulseAudioSystem;\t Catch:{ IllegalStateException -> 0x006d, RuntimeException -> 0x0071 }\n r9 = r28.getClass();\t Catch:{ IllegalStateException -> 0x006d, RuntimeException -> 0x0071 }\n r9 = r9.getName();\t Catch:{ IllegalStateException -> 0x006d, RuntimeException -> 0x0071 }\n r23 = \"phone\";\n r0 = r19;\n r1 = r23;\n r4 = r6.createStream(r0, r11, r9, r1);\t Catch:{ IllegalStateException -> 0x006d, RuntimeException -> 0x0071 }\n r0 = r28;\n r0.channels = r11;\t Catch:{ IllegalStateException -> 0x006d, RuntimeException -> 0x0071 }\n L_0x0060:\n if (r12 == 0) goto L_0x0075;\n L_0x0062:\n r16 = new java.io.IOException;\n r16.<init>();\n r0 = r16;\n r0.initCause(r12);\n throw r16;\n L_0x006d:\n r17 = move-exception;\n r12 = r17;\n goto L_0x0060;\n L_0x0071:\n r18 = move-exception;\n r12 = r18;\n goto L_0x0060;\n L_0x0075:\n r24 = 0;\n r6 = (r4 > r24 ? 1 : (r4 == r24 ? 0 : -1));\n if (r6 != 0) goto L_0x0083;\n L_0x007b:\n r6 = new java.io.IOException;\n r9 = \"stream\";\n r6.<init>(r9);\n throw r6;\n L_0x0083:\n r6 = r19 / 100;\n r6 = r6 * r11;\n r9 = r20 / 8;\n r10 = r6 * r9;\n r6 = r10 * 2;\n r0 = r28;\n r0.fragsize = r6;\t Catch:{ all -> 0x00bc }\n r6 = r10 * 10;\n r6 = new byte[r6];\t Catch:{ all -> 0x00bc }\n r0 = r28;\n r0.buffer = r6;\t Catch:{ all -> 0x00bc }\n r6 = -1;\n r9 = -1;\n r23 = -1;\n r24 = -1;\n r0 = r28;\n r0 = r0.fragsize;\t Catch:{ all -> 0x00bc }\n r25 = r0;\n r0 = r23;\n r1 = r24;\n r2 = r25;\n r7 = org.jitsi.impl.neomedia.pulseaudio.PA.buffer_attr_new(r6, r9, r0, r1, r2);\t Catch:{ all -> 0x00bc }\n r24 = 0;\n r6 = (r7 > r24 ? 1 : (r7 == r24 ? 0 : -1));\n if (r6 != 0) goto L_0x00cd;\n L_0x00b4:\n r6 = new java.io.IOException;\t Catch:{ all -> 0x00bc }\n r9 = \"pa_buffer_attr_new\";\n r6.<init>(r9);\t Catch:{ all -> 0x00bc }\n throw r6;\t Catch:{ all -> 0x00bc }\n L_0x00bc:\n r6 = move-exception;\n r0 = r28;\n r0 = r0.stream;\n r24 = r0;\n r26 = 0;\n r9 = (r24 > r26 ? 1 : (r24 == r26 ? 0 : -1));\n if (r9 != 0) goto L_0x00cc;\n L_0x00c9:\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_unref(r4);\n L_0x00cc:\n throw r6;\n L_0x00cd:\n r22 = new org.jitsi.impl.neomedia.jmfext.media.protocol.pulseaudio.DataSource$PulseAudioStream$2;\t Catch:{ all -> 0x011a }\n r0 = r22;\n r1 = r28;\n r0.m2469init();\t Catch:{ all -> 0x011a }\n r0 = r22;\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_set_state_callback(r4, r0);\t Catch:{ all -> 0x011a }\n r0 = r28;\n r6 = org.jitsi.impl.neomedia.jmfext.media.protocol.pulseaudio.DataSource.this;\t Catch:{ all -> 0x011a }\n r6 = r6.getLocatorDev();\t Catch:{ all -> 0x011a }\n r9 = 8193; // 0x2001 float:1.1481E-41 double:4.048E-320;\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_connect_record(r4, r6, r7, r9);\t Catch:{ all -> 0x011a }\n r24 = 0;\n r6 = (r7 > r24 ? 1 : (r7 == r24 ? 0 : -1));\n if (r6 == 0) goto L_0x00f3;\n L_0x00ee:\n org.jitsi.impl.neomedia.pulseaudio.PA.buffer_attr_free(r7);\t Catch:{ all -> 0x0109 }\n r7 = 0;\n L_0x00f3:\n r0 = r28;\n r6 = r0.pulseAudioSystem;\t Catch:{ all -> 0x0109 }\n r9 = 2;\n r21 = r6.waitForStreamState(r4, r9);\t Catch:{ all -> 0x0109 }\n r6 = 2;\n r0 = r21;\n if (r0 == r6) goto L_0x0125;\n L_0x0101:\n r6 = new java.io.IOException;\t Catch:{ all -> 0x0109 }\n r9 = \"stream.state\";\n r6.<init>(r9);\t Catch:{ all -> 0x0109 }\n throw r6;\t Catch:{ all -> 0x0109 }\n L_0x0109:\n r6 = move-exception;\n r0 = r28;\n r0 = r0.stream;\t Catch:{ all -> 0x011a }\n r24 = r0;\n r26 = 0;\n r9 = (r24 > r26 ? 1 : (r24 == r26 ? 0 : -1));\n if (r9 != 0) goto L_0x0119;\n L_0x0116:\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_disconnect(r4);\t Catch:{ all -> 0x011a }\n L_0x0119:\n throw r6;\t Catch:{ all -> 0x011a }\n L_0x011a:\n r6 = move-exception;\n r24 = 0;\n r9 = (r7 > r24 ? 1 : (r7 == r24 ? 0 : -1));\n if (r9 == 0) goto L_0x0124;\n L_0x0121:\n org.jitsi.impl.neomedia.pulseaudio.PA.buffer_attr_free(r7);\t Catch:{ all -> 0x00bc }\n L_0x0124:\n throw r6;\t Catch:{ all -> 0x00bc }\n L_0x0125:\n r0 = r28;\n r6 = r0.readCallback;\t Catch:{ all -> 0x0109 }\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_set_read_callback(r4, r6);\t Catch:{ all -> 0x0109 }\n r6 = org.jitsi.impl.neomedia.jmfext.media.protocol.pulseaudio.DataSource.SOFTWARE_GAIN;\t Catch:{ all -> 0x0109 }\n if (r6 != 0) goto L_0x0168;\n L_0x0132:\n r0 = r28;\n r6 = r0.gainControl;\t Catch:{ all -> 0x0109 }\n if (r6 == 0) goto L_0x0168;\n L_0x0138:\n r24 = org.jitsi.impl.neomedia.pulseaudio.PA.cvolume_new();\t Catch:{ all -> 0x0109 }\n r0 = r24;\n r2 = r28;\n r2.cvolume = r0;\t Catch:{ all -> 0x0109 }\n r14 = 1;\n r0 = r28;\n r6 = r0.gainControl;\t Catch:{ all -> 0x0195 }\n r15 = r6.getLevel();\t Catch:{ all -> 0x0195 }\n r0 = r28;\n r0.setStreamVolume(r4, r15);\t Catch:{ all -> 0x0195 }\n r0 = r28;\n r0.gainControlLevel = r15;\t Catch:{ all -> 0x0195 }\n r14 = 0;\n if (r14 == 0) goto L_0x0168;\n L_0x0157:\n r0 = r28;\n r0 = r0.cvolume;\t Catch:{ all -> 0x0109 }\n r24 = r0;\n org.jitsi.impl.neomedia.pulseaudio.PA.cvolume_free(r24);\t Catch:{ all -> 0x0109 }\n r24 = 0;\n r0 = r24;\n r2 = r28;\n r2.cvolume = r0;\t Catch:{ all -> 0x0109 }\n L_0x0168:\n r0 = r28;\n r0.stream = r4;\t Catch:{ all -> 0x0109 }\n r0 = r28;\n r0 = r0.stream;\t Catch:{ all -> 0x011a }\n r24 = r0;\n r26 = 0;\n r6 = (r24 > r26 ? 1 : (r24 == r26 ? 0 : -1));\n if (r6 != 0) goto L_0x017b;\n L_0x0178:\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_disconnect(r4);\t Catch:{ all -> 0x011a }\n L_0x017b:\n r24 = 0;\n r6 = (r7 > r24 ? 1 : (r7 == r24 ? 0 : -1));\n if (r6 == 0) goto L_0x0184;\n L_0x0181:\n org.jitsi.impl.neomedia.pulseaudio.PA.buffer_attr_free(r7);\t Catch:{ all -> 0x00bc }\n L_0x0184:\n r0 = r28;\n r0 = r0.stream;\n r24 = r0;\n r26 = 0;\n r6 = (r24 > r26 ? 1 : (r24 == r26 ? 0 : -1));\n if (r6 != 0) goto L_0x000c;\n L_0x0190:\n org.jitsi.impl.neomedia.pulseaudio.PA.stream_unref(r4);\n goto L_0x000c;\n L_0x0195:\n r6 = move-exception;\n if (r14 == 0) goto L_0x01a9;\n L_0x0198:\n r0 = r28;\n r0 = r0.cvolume;\t Catch:{ all -> 0x0109 }\n r24 = r0;\n org.jitsi.impl.neomedia.pulseaudio.PA.cvolume_free(r24);\t Catch:{ all -> 0x0109 }\n r24 = 0;\n r0 = r24;\n r2 = r28;\n r2.cvolume = r0;\t Catch:{ all -> 0x0109 }\n L_0x01a9:\n throw r6;\t Catch:{ all -> 0x0109 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jitsi.impl.neomedia.jmfext.media.protocol.pulseaudio.DataSource$PulseAudioStream.connectWithMainloopLock():void\");\n }",
"private void flushBuffer(Runnable paramRunnable) {\n/* 149 */ int i = this.buf.position();\n/* 150 */ if (i > 0 || paramRunnable != null)\n/* */ {\n/* 152 */ flushBuffer(this.buf.getAddress(), i, paramRunnable);\n/* */ }\n/* */ \n/* 155 */ this.buf.clear();\n/* */ \n/* 157 */ this.refSet.clear();\n/* */ }",
"abstract protected void syncTuples() throws IOException;",
"static void unSynced () {\n\t\tList<Integer> linkedList = Collections.synchronizedList(new LinkedList<Integer>());\n\n\t\t// fill it with numbers 1 to 100\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tlinkedList.add(i);\n\t\t}\n\n\t\t// launch a thread to add 100 more numbers\n\t\tnew Thread(new Runnable () {\n\t\t\t@Override\n\t\t\tpublic void run () {\n\t\t\t\tSystem.out.println(\"starting adding numbers\");\n\t\t\t\tfor (int i = 100; i < 200; i++) {\n\t\t\t\t\tlinkedList.add(i);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"ending adding numbers\");\n\t\t\t}\n\t\t}).start();\n\n\t\t// try to iterate through the list in parallel with the numbers being added\n\t\t// interleaving occurs and the iterator throws a CME.\n\t\tIterator<Integer> iterator = linkedList.iterator();\n\t\tSystem.out.println(\"starting iteration\");\n\t\twhile (iterator.hasNext()) { \n\t\t\ttry {\n\t\t\t\tThread.sleep(4);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tSystem.out.println(\"finished iteration\");\n\t}",
"@Override\n public void onDrainComplete()\n {\n }",
"void lock();",
"@Override public void run()\n {\n pauseStreaming();\n\n // Switch the current camera\n camera = newCamera;\n\n // Resume streaming on the new camera if there is one\n if (camera != null)\n {\n resumeStreaming();\n }\n }",
"public void instantCloudFlushing() {\n\t\t\tWriteRequest wr = null;\n\t\t\twhile ((wr = queue.poll()) != null) {\n\t\t\t\tsynchronized(writeMap) {\n\t\t\t\t\twriteMap.put((int) (wr.offset / blockSize), wr.buf);\n\t\t\t\t}\n\t\t\t}\n\t\t\tThread lastFlusherThread = new Thread(new CloudFlusher());\n\t\t\tlastFlusherThread.start();\n\t\t\ttry {\n\t\t\t\tlastFlusherThread.join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"public void syncPositionSilent() {\n MathUtil.setVector(this.syncAbsPos, this.liveAbsPos);\n this.syncYaw = this.liveYaw;\n this.syncPitch = this.livePitch;\n this.syncVel = this.liveVel;\n }"
] | [
"0.77295166",
"0.769682",
"0.6636364",
"0.6054836",
"0.60462797",
"0.60332644",
"0.60160106",
"0.60083544",
"0.5975875",
"0.58865404",
"0.58536637",
"0.5849087",
"0.5819369",
"0.5712268",
"0.5659298",
"0.5653672",
"0.56138754",
"0.5572161",
"0.553563",
"0.55212253",
"0.55140007",
"0.54852635",
"0.54852635",
"0.54852635",
"0.5472006",
"0.54417557",
"0.542504",
"0.54119617",
"0.5407003",
"0.5399692",
"0.5398362",
"0.5393893",
"0.53748995",
"0.5365149",
"0.53587544",
"0.5353977",
"0.5352072",
"0.53471905",
"0.53202295",
"0.52974963",
"0.5296384",
"0.5294162",
"0.52854985",
"0.5280496",
"0.52797806",
"0.5271077",
"0.52693236",
"0.526597",
"0.5246114",
"0.52460766",
"0.52352536",
"0.5233657",
"0.5227236",
"0.5210748",
"0.5195085",
"0.51791275",
"0.51690936",
"0.51489544",
"0.51337963",
"0.5129933",
"0.51243114",
"0.5118848",
"0.51174474",
"0.5113196",
"0.51053125",
"0.50995034",
"0.5094549",
"0.5074152",
"0.5074078",
"0.5073574",
"0.5068372",
"0.5067944",
"0.50640154",
"0.505903",
"0.5051999",
"0.5050273",
"0.5041934",
"0.5035325",
"0.50249004",
"0.5017721",
"0.50118387",
"0.50096273",
"0.50012875",
"0.49877053",
"0.4984533",
"0.49708167",
"0.4967087",
"0.49623364",
"0.4954348",
"0.49521166",
"0.49515718",
"0.49514663",
"0.4948669",
"0.4947184",
"0.49470395",
"0.49441028",
"0.49382618",
"0.4936196",
"0.492787",
"0.49214324"
] | 0.7909535 | 0 |
Synchronizes on the old stream since the given handle will be associated with the stream for this context | public void syncHandle() {
syncOldStream();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void syncOldStream() {\n ContextHolder.getInstance().setContext();\n JCuda.cudaStreamSynchronize(oldStream);\n/*\n if(!oldEventDestroyed) {\n JCuda.cudaStreamSynchronize(oldStream);\n JCuda.cudaStreamWaitEvent(oldStream,oldEvent,0);\n JCuda.cudaEventDestroy(oldEvent);\n oldEventDestroyed = true;\n\n }*/\n }",
"public synchronized void associateHandle() {\n JCublas2.cublasSetStream(handle,oldStream);\n }",
"public void syncStream() {\n JCudaDriver.cuStreamSynchronize(stream);}",
"public static void synchronize() {\n awaitCompletion(READ_HANDLES);\n awaitCompletion(WRITE_HANDLES);\n }",
"@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshReadLock(lockKey, readToken, lockTimeoutSec);\r\n\t\t\t}",
"default void refreshStream() {}",
"@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshWriteLock(lockKey, finalWriteToken, lockTimeoutSec);\r\n\t\t\t}",
"T sync() throws IOException, ChallongeException;",
"void _preCloseFD(FD fd) {\n Seekable s = fd.seekable();\n if (s == null) return;\n\n try {\n for (int i=0; i < gs.locks.length; i++) {\n Seekable.Lock l = gs.locks[i];\n if (l == null) continue;\n if (s.equals(l.seekable()) && l.getOwner() == this) {\n l.release();\n gs.locks[i] = null;\n }\n }\n } catch (IOException e) { throw new RuntimeException(e); }\n }",
"public void iOpenLockedSourceAndChannel() {\n\t\t// TODO open locked source or Channel.\n\t\tmTvOutput = mTVInputManager.getDefaultOutput();\n\t\tmTv.unblock(mTvOutput.getName());\n\t}",
"public void initOldStream() {\n ContextHolder.getInstance().setContext();\n if(oldStream == null) {\n /* try {\n oldStream = ContextHolder.getInstance().getOldStreamPool().borrowObject();\n } catch (Exception e) {\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n }*/\n\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n // oldEvent = new cudaEvent_t();\n // JCuda.cudaEventCreate(oldEvent);\n // oldEventDestroyed = false;\n }\n\n }",
"@Override\n public void hflush() throws IOException {\n hsync();\n }",
"public void lock() {\n if (!locked) {\n locked = true;\n sortAndTruncate();\n }\n }",
"@Override\r\n\tpublic void onLock(boolean lock) {\n\t\tthis.lock = lock;\r\n\t}",
"@Override\n\tpublic void sync() throws IOException {\n\t\t\n\t}",
"public void setCurrentHandle( byte[] currentHandle );",
"@Override\n public void dispose(){\n if(handle <= 0) return;\n free(handle);\n handle = 0;\n }",
"public void lock() {\r\n super.lock();\r\n }",
"protected void openStream ()\n {\n stream = Util.stream (entry, \"Holder.java\");\n }",
"void unlockRead(long stamp);",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n super.lock();\n }",
"void sync() throws IOException;",
"private native void finaliseHandle();",
"Handle newHandle();",
"public void lock() {\n\t\tlocked = true;\n\t}",
"@Override\n\tpublic void sync() throws IOException\n\t{\n\n\t}",
"void sync()throws IOException;",
"public ClientStream delegate() {\n return newStream;\n }",
"public void sync() {\n\t\tif (!validState) {\n\t\t\tthrow new InvalidStateException();\n\t\t}\n\t\tif (useMmap) {\n\t\t\tsyncAllMmaps();\n\t\t}\n\t\tif (fileChannel != null) {\n\t\t\ttry {\n\t\t\t\tfileChannel.force(false);\n\t\t\t} catch (Exception ign) {\n\t\t\t}\n\t\t}\n\t\tif (callback != null) {\n\t\t\tcallback.synched();\n\t\t}\n\t}",
"protected final void lockRead() {\n m_lock.readLock().lock();\n }",
"public FileHandleStatus updateFileByStream(String fileId, String fileName,\n InputStream stream) throws IOException {\n return updateFileByStream(fileId, fileName, stream, ContentType.DEFAULT_BINARY);\n }",
"public void recycle() {\r\n // Recycle our parent\r\n super.recycle();\r\n // Recycle the stream\r\n this.localstream.recycle();\r\n // Tell the parent that a stream is already in use.\r\n this.setStream(localstream);\r\n }",
"public FileHandleStatus updateFileByStream(String fileId, String fileName, InputStream stream,\n ContentType contentType) throws IOException {\n final String targetUrl = getTargetUrl(fileId);\n\n if (!volumeWrapper.checkFileExist(targetUrl, fileId))\n throw new SeaweedfsFileNotFoundException(\"file is not exist\");\n\n return new FileHandleStatus(fileId,\n volumeWrapper.uploadFile(targetUrl, fileId, fileName, stream, timeToLive, contentType));\n }",
"public static boolean sync(FileOutputStream stream) {\n try {\n if (stream != null) {\n stream.getFD().sync();\n }\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n }\n return false;\n }",
"protected void releaseBuffer()\n {\n interlock.endReading();\n // System.out.println(\"endReading: 2\");\n }",
"default EagerFutureStream<U> sync(){\n\t\treturn (EagerFutureStream<U>)FutureStream.super.sync();\n\t}",
"public RandomAccessOutputStream(IRandomAccess handle) {\n raos = new ome.scifio.io.RandomAccessOutputStream(AdapterTools.getAdapter(IRandomAccessAdapter.class).getModern(handle));\n }",
"@Deprecated\n public void sync() throws IOException {\n hflush();\n }",
"public byte[] getCurrentHandle();",
"public boolean refresh (ProgressHandle handle, boolean force) throws IOException {\n return impl.refresh (handle, force);\n }",
"void lock();",
"public void setHandle(String handle) {\r\n this.handle = handle;\r\n }",
"protected void lock() {\n semaphore = new Semaphore(0);\n try {\n semaphore.acquire();\n }\n catch(InterruptedException e) {\n System.out.println(\"Trouble for request of semaphore acquirement\");\n e.printStackTrace();\n }\n }",
"public void lock() {\n\n }",
"void lockGranted(LockHandle lockHandle);",
"public void dispose()\n {\n synchronized (this)\n {\n if (iHandle == 0)\n {\n return;\n }\n super.dispose();\n iHandle = 0;\n }\n }",
"public void dispose()\n {\n synchronized (this)\n {\n if (iHandle == 0)\n {\n return;\n }\n super.dispose();\n iHandle = 0;\n }\n }",
"public void unlock() {\n try {\n if (lock != null)\n lock.release();\n if (channel != null)\n channel.close();\n }\n catch (Exception e) {\n throw new ReviewedStingException(\"An error occurred while unlocking file\", e);\n }\n }",
"ManagementLockObject refresh();",
"protected void sequence_StreamReference(ISerializationContext context, StreamReference semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"@Override\n public void sync(){\n }",
"void downgradeToReadLocks();",
"@Override public void onStreamUpdate(final Set<Long> updatedChunks) {\n }",
"public void synchronize(){ \r\n }",
"void releaseReadLock();",
"void deliverStream(HttpClientConnection conn, Waiter waiter) {\n if (!conn.isValid()) {\n // The connection has been closed - closed connections can be in the pool\n // Get another connection - Note that we DO NOT call connectionClosed() on the pool at this point\n // that is done asynchronously in the connection closeHandler()\n queue.getConnection(waiter);\n } else if (waiter.isCancelled()) {\n recycle(conn);\n } else {\n waiter.handleStream(createStream(conn));\n }\n }",
"public void lock() throws IOException {\n \n if (!lock0()) {\n String err_msg = getErrorMessage0();\n if (err_msg != null)\n throw new IOException(err_msg);\n else\n throw new IOException(\"Lock failed\");\n }\n }",
"void synchronizeHostData(DataBuffer buffer);",
"public LockSync() {\n lock = new ReentrantLock();\n }",
"private void ensureRead() throws IOException, BadDescriptorException {\n if (reading) return;\n flushWrite();\n buffer.clear();\n buffer.flip();\n reading = true;\n }",
"synchronized protected void rewind() {\n\t\ttry {\n\t\t\tais.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new CCSoundException(\"JSPCMAudioRecordingStream::rewind - Error closing the stream before reload\", e);\n\t\t}\n\t\tais = CCSoundIO.getAudioInputStream(meta.fileName());\n\t}",
"protected final void lockWrite() {\n m_lock.writeLock().lock();\n }",
"ManagementLockObject refresh(Context context);",
"void refreshState() {\n if (delegate instanceof AbstractStreamsConnection) {\n AbstractStreamsConnection asc = (AbstractStreamsConnection)delegate;\n apiKey = asc.getAuthorization();\n executor = asc.getExecutor();\n }\n }",
"public void setOpenContext(final ChannelHandlerContext ctx) {\n while (true) {\n final ChannelHandlerContext oldCtx = openCtx.get();\n if (openCtx.compareAndSet(oldCtx, ctx)) {\n return;\n }\n }\n }",
"public void bufferedAmountChange() {\n // Webrtc.org fires the bufferedAmountChange event from a different\n // thread (B) while locking the native send call on the current\n // thread (A). This leads to a deadlock if we try to lock this\n // instance from (B). So, this... pleasant workaround prevents\n // deadlocking the send call.\n CompletableFuture.runAsync(() -> {\n synchronized (this) {\n final long bufferedAmount = this.dc.bufferedAmount();\n // Unpause once low water mark has been reached\n if (bufferedAmount <= this.lowWaterMark && !this.readyFuture.isDone()) {\n log.debug(this.dc.label() + \" resumed (buffered=\" + bufferedAmount + \")\");\n this.readyFuture.complete(null);\n }\n }\n });\n }",
"public void setHandle(ByteBuffer nativeBuffer){\n long handleAddr = getNativeAddress(nativeBuffer);\n if(handleAddr == this.nativeHandle){\n return;\n }\n nativeHandle = handleAddr;\n }",
"protected void closeStream ()\n {\n stream.close ();\n }",
"private static void j_unlock() {\r\n\t\tFileChannel channel = globalFileChannel;\r\n\t\tFileLock lock = globalFileLock;\r\n\t\tglobalFileChannel = null;\r\n\t\tglobalFileLock = null;\r\n\t\ttry {\r\n\t\t\tlock.release();\r\n\t\t} catch (Throwable t) {\r\n\t\t\t;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tchannel.close();\r\n\t\t} catch (Throwable t) {\r\n\t\t\t;\r\n\t\t}\r\n\t}",
"public void run()\n{\n try {\n InputStreamReader in = new InputStreamReader(input_stream);\n int c;\n if(is_synchronized){\n\t while ((c = in.read()) != -1) {\n\t synchronized(lock){\n\t contents.append((char) c);\n\t }\n\t }\n }\n else{\n\t while ((c = in.read()) != -1) {\n\t contents.append((char) c);\n\t }\n }\n }\n catch (Exception e) {\n //that's ok\n }\n}",
"@Override\n public void handle(NIOConnection conn, byte[] data) {\n this.data = data;\n countDownLatch.countDown();\n }",
"@Override\n public void unlock() {\n }",
"public void force(boolean metaData) throws IOException, FileClosedException {\n\t\tLock l = df.getReadLock();\n\t\tl.lock();\n\t\ttry {\n\t\t\tdf.sync(false);\n\t\t} catch (FileClosedException e) {\n\t\t\tSDFSLogger.getLog()\n\t\t\t\t\t.warn(df.getMetaFile().getPath()\n\t\t\t\t\t\t\t+ \" is closed but still writing\");\n\t\t\tthis.closeLock.lock();\n\t\t\ttry {\n\t\t\t\tdf.registerChannel(this);\n\t\t\t\tthis.closed = false;\n\t\t\t\tthis.force(metaData);\n\t\t\t} finally {\n\t\t\t\tthis.closeLock.unlock();\n\n\t\t\t}\n\t\t} finally {\n\t\t\tl.unlock();\n\t\t}\n\t\tif (df.getMetaFile().getDev() != null)\n\t\t\tdf.getMetaFile().sync();\n\t}",
"@Override\n\t\tpublic void lock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (readers > 0 || writers > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twriters++;\n\t\t\t}\n\t\t}",
"@Override\n\t\tpublic void lock() {\n\n\t\t\tsynchronized (lock) {\n\t\t\t\twhile (writers > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treaders++;\n\t\t\t}\n\t\t}",
"SFTPv3FileHandle(SFTPv3Client client, byte[] h)\r\n\t{\r\n\t\tthis.client = client;\r\n\t\tthis.fileHandle = h;\r\n\t}",
"private static void j_lock() {\r\n\t\tdo {\r\n\t\t\tLOCK_FILES_DIR.mkdirs();\r\n\t\t\ttry {\r\n\t\t\t\tRandomAccessFile raf = new RandomAccessFile(GLOBAL_LOCK_FILE,\r\n\t\t\t\t\t\t\"rw\");\r\n\t\t\t\tFileChannel channel = raf.getChannel();\r\n\t\t\t\tFileLock lock = channel.lock();\r\n\t\t\t\tglobalFileChannel = channel;\r\n\t\t\t\tglobalFileLock = lock;\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (Throwable t) {\r\n\t\t\t\t;\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}",
"int getHandle();",
"int getHandle();",
"int getHandle();",
"@SuppressWarnings(\"GuardedByChecker\")\n private void sendFlushDataLocked() {\n assert mWriteState == State.WAITING_FOR_FLUSH;\n int size = mFlushData.size();\n ByteBuffer[] buffers = new ByteBuffer[size];\n int[] positions = new int[size];\n int[] limits = new int[size];\n for (int i = 0; i < size; i++) {\n ByteBuffer buffer = mFlushData.poll();\n buffers[i] = buffer;\n positions[i] = buffer.position();\n limits[i] = buffer.limit();\n }\n assert mFlushData.isEmpty();\n assert buffers.length >= 1;\n mWriteState = State.WRITING;\n mRequestHeadersSent = true;\n if (!CronetBidirectionalStreamJni.get().writevData(mNativeStream,\n CronetBidirectionalStream.this, buffers, positions, limits,\n mEndOfStreamWritten && mPendingData.isEmpty())) {\n // Still waiting on flush. This is just to have consistent\n // behavior with the other error cases.\n mWriteState = State.WAITING_FOR_FLUSH;\n throw new IllegalArgumentException(\"Unable to call native writev.\");\n }\n }",
"private void streamCopy(InputStream in, OutputStream out) throws IOException {\t \n\t\tsynchronized (in) {\n\t\t\tsynchronized (out) {\n\t\t\t\tbyte[] buffer = new byte[256];\n\t\t\t\twhile (true) {\n\t \t\tint bytesRead = in.read(buffer);\n\t \t\tif (bytesRead == -1) break;\n\t \t\tout.write(buffer, 0, bytesRead);\n\t \t}\n\t \t}\n\t }\n\t}",
"public ObjectOutputStream acquireStream() throws InterruptedException\n {\n StreamMutex.acquire();\n return OutputStream;\n }",
"public void sync () throws java.io.SyncFailedException, ObjectStoreException\n {\n }",
"@Override\n public void flush() throws IOException {\n checkStreamState();\n flushIOBuffers();\n }",
"public void cancelStdInStream() {\n\t\tstdInLatch.countDown();\n\t\tif(pipeOut!=null) {\n\t\t\tlog.debug(\"Closing PipeOut\");\n\t\t\ttry { pipeOut.flush(); } catch (Exception e) {}\n\t\t\ttry { pipeOut.close(); } catch (Exception e) {}\n\t\t\tlog.debug(\"Closed PipeOut\");\n\t\t}\n\t\tpipeOut = null;\n\t\tif(pipeIn!=null) try { \n\t\t\tlog.debug(\"Closing PipeIn\");\n\t\t\tpipeIn.close(); \n\t\t\tlog.debug(\"Closed PipeIn\");\n\t\t} catch (Exception e) {}\n\t\tpipeIn = null;\t\t\n\t}",
"private Object writeReplace() throws ObjectStreamException {\n return INSTANCE;\n }",
"@Override\n public void setLockOwner(Object lockOwner) {\n }",
"public VkHandle(long nativeHandle) { \n this.nativeHandle = nativeHandle;\n }",
"public <T> T sync(Supplier<? extends T> supplier) {\n lock.lock();\n try {\n return supplier.get();\n } finally {\n lock.unlock();\n } \n }",
"public long getStream();",
"@Override\n public void run() {\n currentContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n while (true) {\n String newlyReadContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n if (!newlyReadContent.equals(currentContent) || !newlyReadContent.isEmpty()){\n notify(newlyReadContent);\n currentContent = newlyReadContent;\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n//end of modifiable zone..................E/bfb5c4c0-88e6-44fa-9add-89d5b4394004\n }",
"public LockSync(Lock sharedLock) {\n lock = Objects.requireNonNull(sharedLock);\n }",
"void lock(Object obj, Object owner, int timeout)\r\n throws LockNotGrantedException, ClassCastException, ChannelException;",
"public void rewind() throws IOException {\n if (closed) {\n throw new IOException(\"Stream is already closed\");\n }\n\n if (storeOutputStream != null) {\n storeOutputStream.close();\n storeOutputStream = null;\n }\n\n // Close the byte input stream or file input stream\n if (inputStream != originalInputStream) {\n inputStream.close();\n }\n\n bufferHighWaterMark = Math.max(bufferPointer, bufferHighWaterMark);\n bufferPointer = bufferHighWaterMark;\n\n if (bufferHighWaterMark > 0) {\n // If we have a buffer, then we'll read from it\n if (byteBuffer != null) {\n readingFromBuffer = true;\n inputStream = new UnsynchronizedByteArrayInputStream(byteBuffer, 0, bufferHighWaterMark);\n } else {\n // No buffer, which means we've switched to a file\n inputStream = new BufferedInputStream(new FileInputStream(storeFile));\n }\n } else {\n inputStream = originalInputStream;\n }\n }",
"@Override\n\tpublic void unLock() {\n\t\t\n\t}",
"public int getHandle() {\n return handle_;\n }",
"public int getHandle() {\n return handle_;\n }"
] | [
"0.6710543",
"0.6674187",
"0.60963595",
"0.5891075",
"0.56388885",
"0.55359167",
"0.53071433",
"0.5275508",
"0.52659774",
"0.5222805",
"0.5187037",
"0.5171686",
"0.51241374",
"0.5104525",
"0.50563717",
"0.50509197",
"0.5049545",
"0.5024738",
"0.5022025",
"0.49979776",
"0.49851364",
"0.49851364",
"0.49851364",
"0.49844828",
"0.4974245",
"0.49680942",
"0.4965237",
"0.49640658",
"0.49094698",
"0.49081805",
"0.48999768",
"0.4883853",
"0.48055667",
"0.48029298",
"0.47995216",
"0.47974578",
"0.47929245",
"0.4788938",
"0.47844154",
"0.47514305",
"0.47338235",
"0.47287342",
"0.47265851",
"0.4725172",
"0.47238123",
"0.47214955",
"0.47118956",
"0.4695438",
"0.4695438",
"0.46801633",
"0.46717694",
"0.46507776",
"0.4639398",
"0.4635428",
"0.46250033",
"0.46169838",
"0.46042994",
"0.458566",
"0.45853752",
"0.45834237",
"0.45819524",
"0.4581243",
"0.45722073",
"0.45677638",
"0.4565195",
"0.45600024",
"0.45598054",
"0.45579824",
"0.45507935",
"0.45485866",
"0.45459837",
"0.45395288",
"0.45192984",
"0.45097527",
"0.45076227",
"0.4506094",
"0.45023105",
"0.44954398",
"0.4492103",
"0.44901848",
"0.44901848",
"0.44901848",
"0.44797128",
"0.447392",
"0.44738904",
"0.44735277",
"0.44699246",
"0.4462913",
"0.44609928",
"0.44588208",
"0.44581738",
"0.445813",
"0.4457396",
"0.44521996",
"0.4447447",
"0.44416627",
"0.4437651",
"0.44363028",
"0.44287804",
"0.44287804"
] | 0.84631556 | 0 |
Get the result pointer for the context | public CublasPointer getResultPointer() {
return resultPointer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected R getResult() {\n\t\treturn result;\n\t}",
"public int getResult(){\n return localResult;\n }",
"CTX_Context getContext();",
"public Object getResult(final SessionContext ctx)\n\t{\n\t\treturn getProperty( ctx, RESULT);\n\t}",
"private void retrieveResult() {\n if (result == null) {\n this.setResult(((DocumentBuilder)this.getHandler()).getResult());\n }\n }",
"Context getContext();",
"public T getResult() {\n return result;\n }",
"public T getResult() {\n return result;\n }",
"public cl_context getContext() {\r\n return context;\r\n }",
"public T getResult();",
"@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}",
"public T result() {\n return result;\n }",
"public Object getResult()\n\t{\n\t\treturn getResult( getSession().getSessionContext() );\n\t}",
"public IRuntimeContext getContext() {\n return fContext;\n }",
"Result getResult();",
"@Override\n \tpublic Object getResult() {\n \t\treturn result;\n \t}",
"public int getResult() {\r\n\t\t\treturn result_;\r\n\t\t}",
"public Result getResult() {\n return result;\n }",
"ContextBucket getContext() {\n\treturn context;\n }",
"public Result getResult() {\n return result;\n }",
"public String getResultToken() {\n return resultToken;\n }",
"public int getResult() {\r\n\t\t\t\treturn result_;\r\n\t\t\t}",
"public VariantContext peek();",
"protected T retrieve() {\n return _result;\n }",
"public int getResult(){\r\n\t\t return result;\r\n\t }",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"public Context getContext() {\n\t\treturn context;\n\t}",
"@java.lang.Override public int getContextValue() {\n return context_;\n }",
"@java.lang.Override public int getContextValue() {\n return context_;\n }",
"synchronized public Result getResult () {\n Result result = (Result) get (RESULT.toString());\n if (result == null) {\n result = new Result();\n put (RESULT.toString(), result);\n }\n return result;\n }",
"public ProcessInfo getResult()\n\t{\n\t\treturn m_pi;\n\t}",
"public E getResult(){\r\n\t\treturn this.result;\r\n\t}",
"public Object getResult() {\n if (result == null) {\n return defaultResult();\n } else {\n return result;\n }\n }",
"int getResult() {\n return result;\n }",
"public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }",
"Object getCompletionResult();",
"public Result getResult() {\n\t\treturn this._result;\n\t}",
"public int getResult() {\n return this.result;\n }",
"public int getResult() {\n return result;\n }",
"Context context();",
"Context context();",
"public native String getResult() /*-{\n\t\treturn this.target.result;\n\t}-*/;",
"public final T getResult() {\n join();\n return self();\n }",
"public EvaluationContext getContext() {\n return context;\n }",
"public Object getContextObject() {\n return context;\n }",
"int getResult();",
"public String getContext() { return context; }",
"public int getResult() {\n\t\t\treturn this.result;\r\n\t\t}",
"public Context getContext() {\n return context;\n }",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"public int getResultId() {\n return resultId;\n }",
"protected final TranslationContext context() {\n\t\treturn context;\n\t}",
"Optional<TXContext> findCurrent();",
"@Override\n\tpublic Result getResult() {\n\t\treturn m_Result;\n\t}",
"public long getResultId() {\n return resultId;\n }",
"public T getRawResult()\n/* */ {\n/* 744 */ return null;\n/* */ }",
"public abstract Context context();",
"T getResult();",
"T getResult();",
"public Context getContext() {\n\t\treturn ctx;\n\t}",
"long getCurrentContext();",
"public IStatus getResult();",
"public Op getResult() {\n if (result.size() == 0) {\n return OpNull.create();\n }\n if (result.size() == 1) {\n return result.get(0);\n }\n return result;\n\n }",
"@Override\n public Object getOperationResult() {\n return this;\n }",
"public Integer getResult() {\n return result;\n }",
"public ResultType getResult() {\r\n return result;\r\n }",
"public char[] getResultBuffer() { return b; }",
"public byte getInvocationContext() {\r\n return invocationContext;\r\n }",
"com.google.protobuf.ByteString getContext();",
"@java.lang.Override public int getResultValue() {\n return result_;\n }",
"public TResult getResult() {\n return result;\n }",
"public Context getContext() {\n\t\treturn null;\n\t}",
"RenderingContext getContext();",
"public String getContext() {\r\n\t\treturn context;\r\n\t}",
"public WsPmsResult get_return(){\n return local_return;\n }",
"public WsPmsResult get_return(){\n return local_return;\n }",
"public WsPmsResult get_return(){\n return local_return;\n }",
"public WsPmsResult get_return(){\n return local_return;\n }",
"public WsPmsResult get_return(){\n return local_return;\n }",
"public WsPmsResult get_return(){\n return local_return;\n }",
"public WsPmsResult get_return(){\n return local_return;\n }",
"public WsPmsResult get_return(){\n return local_return;\n }",
"public WsPmsResult get_return(){\n return local_return;\n }",
"public Object runAndGetResult() {\n run();\n return getResult();\n }",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public static String getOpResult (){\n \treturn opResult;\n }",
"public Result getResults()\r\n {\r\n return result;\r\n }",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public String getContext() {\n\t\treturn context;\n\t}",
"@java.lang.Override public int getResultValue() {\n return result_;\n }",
"public int getResult() {return resultCode;}",
"@Nullable\n Result getResult();",
"void onResult(int ret);",
"public VData getResult() {\n\t\treturn mResult;\n\t}",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"java.lang.String getLinkedContext();"
] | [
"0.6321024",
"0.6137626",
"0.60132456",
"0.5989542",
"0.5975987",
"0.59484625",
"0.59140366",
"0.59140366",
"0.59092134",
"0.59003085",
"0.5870703",
"0.58673227",
"0.58157945",
"0.5798058",
"0.577972",
"0.5772604",
"0.5767995",
"0.57645214",
"0.5763116",
"0.5755268",
"0.5749692",
"0.57314694",
"0.5718613",
"0.57179713",
"0.57179195",
"0.57136095",
"0.5681194",
"0.56781477",
"0.5673933",
"0.56728154",
"0.566973",
"0.56654537",
"0.5663444",
"0.5661751",
"0.565264",
"0.5648212",
"0.5642892",
"0.5626768",
"0.5622812",
"0.5582417",
"0.5582417",
"0.5576637",
"0.5576526",
"0.5576136",
"0.5576013",
"0.55669564",
"0.5564833",
"0.5554389",
"0.5552752",
"0.5542243",
"0.5529992",
"0.55123526",
"0.5503285",
"0.5502303",
"0.5490886",
"0.5490621",
"0.54832685",
"0.5482959",
"0.5482959",
"0.5478772",
"0.5476744",
"0.5473301",
"0.54536355",
"0.5448171",
"0.54415554",
"0.54359955",
"0.5425112",
"0.542136",
"0.5416501",
"0.54064715",
"0.54053104",
"0.53997725",
"0.5398644",
"0.5386964",
"0.5382478",
"0.5382478",
"0.5382478",
"0.5382478",
"0.5382478",
"0.5382478",
"0.5382478",
"0.5382478",
"0.5382478",
"0.5366943",
"0.53619146",
"0.53540677",
"0.5351985",
"0.53513503",
"0.53513503",
"0.5335829",
"0.53350115",
"0.53342354",
"0.5331787",
"0.5329935",
"0.53281176",
"0.53140885",
"0.5313988",
"0.5313988",
"0.5313988",
"0.53075975"
] | 0.73256177 | 0 |
Associates the handle on this context to the given stream | public synchronized void associateHandle() {
JCublas2.cublasSetStream(handle,oldStream);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void openStream ()\n {\n stream = Util.stream (entry, \"Holder.java\");\n }",
"private void setInputStream(final ObjectInputStream stream) {\n\t\t// almacenamos el stream de entrada\n\t\tthis.inputStream = stream;\n\t}",
"public void syncHandle() {\n syncOldStream();\n }",
"public void put(String key, InputStream stream, String name, String contentType) {\n if (key != null && stream != null) {\n mStreamParams.put(key, new StreamWrapper(stream, name, contentType));\n }\n }",
"public void put(String key, InputStream stream) {\n put(key, stream, null);\n }",
"@NonNull\n\t\tBuilder addStream(@NonNull InputStream stream);",
"public void put(String key, InputStream stream, String name) {\n put(key, stream, name, null);\n }",
"public void addStreamManager(StreamSpec streamSpec);",
"protected void sequence_DEFINE_DefinitionStream_STREAM(ISerializationContext context, DefinitionStream semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"private void setOutputStream(final ObjectOutputStream stream) throws IOException {\n\t\t// almacenamos el stream de salida\n\t\tthis.outputStream = stream;\n\t\t// limpiamos el stream\n\t\tthis.getOutputStream().flush();\n\t}",
"protected void sequence_StreamReference(ISerializationContext context, StreamReference semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"public void Link (Stream rkStream, Stream.Link pkLink)\r\n {\r\n super.Link(rkStream,pkLink);\r\n }",
"public void setInputStream(InputStream stream) {\n this.inStream = stream;\n }",
"public void registerStream(String route, StreamFunction lambda) throws IOException {\n registerStream(route, lambda, false);\n }",
"public InputStreamHolder (InputStream the_stream) {\n\t\t\tstream = the_stream;\n\t\t\tis_closed = false;\n\t\t}",
"void setBinaryStream(int index, InputStream stream, int count)\n throws SQLException;",
"public void setCurrentHandle( byte[] currentHandle );",
"public boolean Register (Stream rkStream)\r\n {\r\n return super.Register(rkStream);\r\n }",
"void add(StreamMaker stream, PEMaker pem) {\n\n stream2pe.put(stream, pem);\n logger.debug(\"Adding stream [{}] to pe [{}].\", stream != null ? stream.getName() : \"null\", pem != null ? pem\n .getType().getName() : \"null\");\n }",
"private void setInputStream(InputStream ins) throws IOException {\n\tMediaTracker mt = new MediaTracker(this);\n\tint bytes_read = 0;\n\tbyte data[] = new byte[1024];\n\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\n\twhile((bytes_read = ins.read(data)) >0)\n\t baos.write(data, 0, bytes_read);\n\tins.close();\n\t\n\t// convert the buffer into an image\n\timage = getToolkit().createImage(baos.toByteArray());\n\t\n\tmt.addImage(image, 0);\n\t\n\ttry {\n\t mt.waitForID(0);\n\t mt.waitForAll();\n\t if(mt.statusID(0, true ) != MediaTracker.COMPLETE){\n\t\tSystem.out.println(\"Error occured in image loading = \" +\n\t\t\t\t mt.getErrorsID(0));\n\t\t\n\t }\n\t \n\t}\n\tcatch(InterruptedException e) {\n\t throw new IOException(\"Error reading image data\");\n\t}\n\t\n\tcanvas.setImage(image);\n\tif(DEBUG)\n\t System.out.println(\"calling invalidate\");\n\t\n }",
"protected final void setInputStream(LoggedDataInputStream inputStream) {\n if (this.inputStream == inputStream) return ;\n if (this.inputStream != null) {\n try {\n this.inputStream.close();\n } catch (IOException ioex) {/*Ignore*/}\n }\n this.inputStream = inputStream;\n }",
"public void registerPrivateStream(String route, StreamFunction lambda) throws IOException {\n registerStream(route, lambda, true);\n }",
"void setAsciiStream(int index, InputStream stream, int count)\n throws SQLException;",
"protected void sequence_StreamAlias(ISerializationContext context, StreamAlias semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"@NotNull\n RecordId writeStream(@NotNull InputStream stream) throws IOException;",
"@SuppressWarnings(\"unused\")\r\n private void addReadStream(Reader asciiStream) {\n\t\taddReadSize(100);\r\n\t}",
"public void setIn(InputStream in);",
"public void parse(InputStream stream, HandlerBase handler, String systemId)\n throws SAXException, IOException {\n if (stream == null) {\n throw new IllegalArgumentException(\"stream must not be null\");\n }\n InputSource source = new InputSource(stream);\n if (systemId != null) {\n source.setSystemId(systemId);\n }\n parse(source, handler);\n }",
"public FileHandleStatus updateFileByStream(String fileId, String fileName, InputStream stream,\n ContentType contentType) throws IOException {\n final String targetUrl = getTargetUrl(fileId);\n\n if (!volumeWrapper.checkFileExist(targetUrl, fileId))\n throw new SeaweedfsFileNotFoundException(\"file is not exist\");\n\n return new FileHandleStatus(fileId,\n volumeWrapper.uploadFile(targetUrl, fileId, fileName, stream, timeToLive, contentType));\n }",
"public LineInputStream(InputStream is) {\n\t\tinputStream = is;\n\t}",
"public FileHandleStatus updateFileByStream(String fileId, String fileName,\n InputStream stream) throws IOException {\n return updateFileByStream(fileId, fileName, stream, ContentType.DEFAULT_BINARY);\n }",
"@SuppressWarnings(\"unused\")\r\n private void addReadStream(InputStream asciiStream) {\n\t\taddReadSize(100);\r\n\t}",
"void setSymbolStream(ISymbolStreamComp aSymbolStream);",
"public void handleRequest(VaadinSession session, VaadinRequest request,\n VaadinResponse response, StreamResource streamResource)\n throws IOException {\n\n StreamResourceWriter writer;\n session.lock();\n try {\n ServletContext context = ((VaadinServletRequest) request)\n .getServletContext();\n response.setContentType(streamResource.getContentTypeResolver()\n .apply(streamResource, context));\n response.setCacheTime(streamResource.getCacheTime());\n streamResource.getHeaders()\n .forEach((name, value) -> response.setHeader(name, value));\n writer = streamResource.getWriter();\n if (writer == null) {\n throw new IOException(\n \"Stream resource produces null input stream\");\n }\n } catch (Exception exception) {\n response.setStatus(HttpStatusCode.INTERNAL_SERVER_ERROR.getCode());\n throw exception;\n\n } finally {\n session.unlock();\n }\n try (OutputStream outputStream = response.getOutputStream()) {\n try {\n writer.accept(outputStream, session);\n } catch (Exception exception) {\n // Set status before output is closed (see #8740)\n response.setStatus(\n HttpStatusCode.INTERNAL_SERVER_ERROR.getCode());\n throw exception;\n }\n }\n }",
"public StreamHandler createStreamHandler (OutputStream outStream) {\r\n\t\t\t\t\t\r\n\t\tStreamHandler streamHandler = null;\r\n\r\n\t\ttry {\r\n\t\t\t\t \t\r\n\t\t\tstreamHandler = new StreamHandler(outStream, new SimpleFormatter());\r\n\t\t\t\t\t\t\r\n\t\t} catch (SecurityException e) {\r\n\t\t\t\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\t\t \r\n\t\t\treturn streamHandler;\r\n\t}",
"public StorableInput(InputStream stream) {\n Reader r = new BufferedReader(new InputStreamReader(stream));\n fTokenizer = new StreamTokenizer(r);\n fMap = new Vector();\n }",
"public void add(StreamObject SO){\n\t\tindices.add(contenido.length());\n\t\tcontenido = contenido + StreamObject.convert(SO);\n\t}",
"@Override\n\tpublic void open(Context context, Chunk data) {\n\t}",
"void saveFrom(String key, InputStream stream);",
"public DataflowStreamWriteAdapter(final StreamCore<T> stream) {\n this.head = stream;\n }",
"public void parse(InputStream stream, DefaultHandler handler,\n String systemId) throws SAXException, IOException {\n if (stream == null) {\n throw new IllegalArgumentException(\"stream must not be null\");\n }\n InputSource source = new InputSource(stream);\n if (systemId != null) {\n source.setSystemId(systemId);\n }\n parse(source, handler);\n }",
"public void setStreams (ByteBufferInputStream in, \n ByteBufferOutputStream out) {\n if (input != null || output != null)\n throw new IllegalStateException (\n \"input or output has already been set\");\n if (in == null)\n throw new IllegalArgumentException (\n \"input stream may not be null\");\n input = in;\n if (out == null) \n out = new ByteBufferOutputStream(); // accept default length\n output = out;\n }",
"public StreamProcessorImpl(StreamSpec streamSpec) {\n this(streamSpec, new PreloadStreamDataReader());\n }",
"void add(PEMaker pem, StreamMaker stream) {\n\n pe2stream.put(pem, stream);\n logger.debug(\"Adding pe [{}] to stream [{}].\", pem != null ? pem.getType().getName() : \"null\",\n stream != null ? stream.getName() : \"null\");\n }",
"public void setHandle(String handle) {\r\n this.handle = handle;\r\n }",
"SFTPv3FileHandle(SFTPv3Client client, byte[] h)\r\n\t{\r\n\t\tthis.client = client;\r\n\t\tthis.fileHandle = h;\r\n\t}",
"public void marshal(uka.transport.MarshalStream _stream)\n throws java.io.IOException\n {\n _stream.reserve(_SIZE);\n byte[] _buffer = _stream.getBuffer();\n int _pos = _stream.getPosition();\n marshalPrimitives(_buffer, _pos);\n _stream.deliver(_SIZE);\n marshalReferences(_stream);\n }",
"private void openStreams() {\n\t\ttry {\n\t\t\t// mostramos un log\n\t\t\tthis.getLogger().debug(\"Opening streams..\");\n\t\t\t// abrimos el stream de salida\n\t\t\tthis.setOutputStream(new ObjectOutputStream(this.getConnection().getOutputStream()));\n\t\t\t// abrimos el stream de entrada\n\t\t\tthis.setInputStream(new ObjectInputStream(this.getConnection().getInputStream()));\n\t\t} catch (final IOException e) {}\n\t}",
"public MemoryCacheSeekableStream(InputStream src) {\n/* 75 */ this.src = src;\n/* */ }",
"public PDStream(COSStream str)\n {\n stream = str;\n }",
"@Override\n public void open(URI uri) throws IOException {\n openUri = uri;\n }",
"public void setLogStream(OutputStream stream) {\n\t\tcloseLogHandler();\n\t\tlogHandler = new StreamHandler(stream, L2pLogger.getGlobalConsoleFormatter());\n\t\tlogHandler.setLevel(Level.ALL);\n\t\tlogger.addHandler(logHandler);\n\t}",
"long createBidirectionalStream(CronetBidirectionalStream caller,\n long urlRequestContextAdapter, boolean sendRequestHeadersAutomatically,\n boolean trafficStatsTagSet, int trafficStatsTag, boolean trafficStatsUidSet,\n int trafficStatsUid, long networkHandle);",
"void setUnicodeStream(int index, InputStream stream, int count)\n throws SQLException;",
"public static <V extends Object> StreamParameter<V, StreamAccessParams<V, StreamData>, StreamData> newSP(\n Application app, Direction direction, StdIOStream stream, String prefix, String name, V value, int hashCode,\n ParameterMonitor monitor) {\n StreamAccessParams<V, StreamData> sap;\n sap = StreamAccessParams.constructStreamAP(app, direction, value, hashCode);\n return new StreamParameter(sap, DataType.STREAM_T, direction, stream, prefix, name, monitor);\n }",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader) {\n this(streamSpec, dataReader, new FrameIteratorFactory());\n }",
"SIEntry(final Context<BTree, BTreeLeaf> context, java.nio.ByteBuffer stream)\n\t\tthrows\n\t\t\tjava.io.IOException\n\t\t{\n\t\t\tDataContainer dc = new DataContainer();\n\t\t\tdc.read(stream, context.unicode() ? unicode_fields : ansi_fields);\n\n\t\t\tnid = (NID)dc.get(nm_nid);\n\t\t\tbid = (BID)dc.get(nm_bid);\n\t\t}",
"public void initOldStream() {\n ContextHolder.getInstance().setContext();\n if(oldStream == null) {\n /* try {\n oldStream = ContextHolder.getInstance().getOldStreamPool().borrowObject();\n } catch (Exception e) {\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n }*/\n\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n // oldEvent = new cudaEvent_t();\n // JCuda.cudaEventCreate(oldEvent);\n // oldEventDestroyed = false;\n }\n\n }",
"StreamsThread(InputStream in, OutputStream out) {\n this.in = in;\n this.out = out;\n }",
"Handle newHandle();",
"protected void sequence_SequenceStream(ISerializationContext context, SequenceStream semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"public MyInputStream(InputStream in) {\n super(in);\n this.in = in;\n }",
"public void setInputStream(InputStream inputStream)\r\n\t{\r\n\t\tthis.inputStream = inputStream;\r\n\t}",
"public StreamGobbler(InputStream from, PrintStream to) {\n\t\tinput = from;\n\t\toutput = to;\n\t}",
"@Override\n\tprotected void setData(DataStream dataStream) throws IOException {\n\t\t\n\t}",
"protected void sequence_MainSource_StandardStream(ISerializationContext context, MainSource semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"@Override\n\tpublic void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {\n\t\t\n\t}",
"public synchronized void setOutputStream(OutputStream stream) {\n\tthis.outputStream = stream;\n\t//Debug.out(\"AudioCapture.setOutputStream(): output stream: \" + this.outputStream);\n\tif (this.outputStream == null && thread != null) {\n\t thread.terminate();\n\t thread = null;\n\t}\n }",
"public void bindTo(OutputStream os) throws IOException {\n }",
"public ClientHandler(InputStream inputFromClient) {\n try {\n this.inputFromClient = new ObjectInputStream(inputFromClient);\n } catch (IOException e) {\n System.out.println(\"Could not create ObjectInputStream from ClientHandler\");\n }\n }",
"public interface IStreamContextManager {\n\n /**\n * Method of getting the last read char from input stream\n * @return last read char from input stream\n */\n char getReadChar();\n\n /**\n * Method of getting the previous read char from input stream\n * @return previous read char from input stream\n */\n char getPreviousReadChar();\n\n /**\n * Method of writing String into output stream\n * @param result is string which would be writing\n * @throws WriterException\n */\n void writeString(final String result) throws WriterException;\n\n /**\n * Method of writing char into output stream\n * @param result is char which would be writing\n * @throws WriterException\n */\n void writeChar(final char result) throws WriterException;\n\n /**\n * Method of reading the next symbol from the input stream\n * @throws ReaderException\n */\n void readNextChar() throws ReaderException;\n\n /**\n * Method of setting indent level of formatting code\n * @param level is the level of indent\n */\n void setIndentLevel(int level);\n\n /**\n * Method of getting indent level of formatting code\n * @return level of the indent of formatting code\n */\n int getIndentLevel();\n\n /**\n * Method of getting size of the indent\n * @return size of the indent\n */\n int getIndentSize();\n}",
"@Override\n\tpublic void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {\n\t\t\n\t}",
"public void processStreamInput() {\n }",
"@Override\n\tpublic void store(InputStream inputStream, long contentLength, String contentType, String keyName) {\n\n\t}",
"protected void sequence_BasicSourceStreamHandler(ISerializationContext context, BasicSourceStreamHandler semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"public DelegatingAisPacketStream(AisPacketStream stream) {\n this.stream = requireNonNull(stream);\n }",
"protected void marshalReferences(uka.transport.MarshalStream _stream)\n throws java.io.IOException\n {\n int _size = _length * uka.transport.BasicIO.SIZEOF_byte;\n if(_size > uka.transport.BasicIO.REQUEST_MAX){\n //b is too big to be serialized as a primitive field\n _stream.writeObject(value);\n } else {\n //b is small enough to be serialized as a primitive field\n _stream.reserve(_size);\n byte[] _buffer = _stream.getBuffer();\n int _pos = _stream.getPosition();\n _pos = uka.transport.BasicIO.insert(_buffer, _pos, value);\n _stream.deliver(_size);\n }\n }",
"public ThemeIdentity(final InputStream stream, final Theme theme)\n throws IOException, InvalidIdentityFileException {\n super(stream, true);\n\n myTarget.setTheme();\n this.theme = theme;\n }",
"public long getStream();",
"void setStreamBuffer(int size) {\r\n\t\tif(size>0)\r\n\t\t\tbuffer = new byte[size];\r\n\t\telse\r\n\t\t\tbuffer = new byte[this.size];\r\n\t}",
"public final void setStream(InputStream newStream)\n\t{\n\t\tthis.dataValue = null;\n _blobValue = null;\n\t\tthis.stream = newStream;\n\t\tstreamValueLength = -1;\n\t}",
"public ClientStream delegate() {\n return newStream;\n }",
"public void initialize(InputStream stream) {\n if (stream == null) {\n return;\n }\n new DictionaryHandler().read(stream);\n try {\n stream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public ResourceInputStream(InputStream in) {\n\t\t\tthis(in, System.currentTimeMillis());\n\t\t}",
"public void setInputStream(InputStream inputStream) {\n\t\tthis.inputStream = inputStream;\n\t}",
"public Bullet( DataInputStream stream, BulletManager parent ) throws IOException\n\t{\n\t\tsuper( stream );\n\n\t\tthis.parent = parent;\n\t}",
"public final void setInputStream(final PrintStream newInputStream) {\n this.inputStream = newInputStream;\n }",
"public ExecutableReader(ExecutableStream stream) throws Exception {\n\t\texStr = stream;\n\t\tread(stream);\n\t}",
"public void streamSetup(String str){\n\t\tObjectOutputStream outStr;\n\t\ttry {\n\t\t\toutStr = new ObjectOutputStream(socket.getOutputStream());\n\t\t\toutStr.writeObject(str);\n\t\t\toutStr.flush();\n\t\t\toutStr.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}//try catch\n\t}",
"public abstract void enableStreamFlow();",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader, FrameIteratorFactory mediaReaderFactory) {\n this.streamSpec = streamSpec;\n metadataManager = new MetadataManager();\n streamListeners = new ArrayList<StreamListener>();\n this.dataReader = dataReader;\n this.frameIteratorFactory = mediaReaderFactory;\n }",
"protected void sequence_BasicSourceStreamHandlers(ISerializationContext context, BasicSourceStreamHandlers semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"protected void sequence_JoinStream(ISerializationContext context, JoinStream semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"public String getStream(){\n return this.stream;\n }",
"protected void closeStream ()\n {\n stream.close ();\n }",
"protected InputStream decorateInputStream(HttpExchange exchange, InputStream is)\r\n/* 51: */ throws IOException\r\n/* 52: */ {\r\n/* 53:125 */ return is;\r\n/* 54: */ }",
"public CStream get_stream() {\r\n\t\treturn new CStream(this);\r\n\t}",
"void setURLStreamHandler(String protocol, URLStreamHandler handler) {\n handlers.put(protocol, handler);\n }",
"public StreamRedirectThread(final String name, final InputStream in, final OutputStream out) {\n\t\tsuper(name);\n\t\tthis.in = new InputStreamReader(in);\n\t\tthis.out = new OutputStreamWriter(out);\n\t\tsetPriority(Thread.MAX_PRIORITY-1);\n\t}",
"@Override\n\tpublic void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {\n\t\t\n\t}"
] | [
"0.62866133",
"0.59067285",
"0.5896528",
"0.5872371",
"0.58202916",
"0.57478154",
"0.57342774",
"0.5549438",
"0.5517471",
"0.54608464",
"0.5438626",
"0.54062724",
"0.5397047",
"0.5386661",
"0.5351486",
"0.5342576",
"0.5329627",
"0.5313899",
"0.5266046",
"0.5239227",
"0.52358496",
"0.519886",
"0.5153103",
"0.5125672",
"0.51126623",
"0.50631654",
"0.5053032",
"0.50481194",
"0.50195545",
"0.50074244",
"0.50067127",
"0.49888864",
"0.49869975",
"0.4986036",
"0.4978096",
"0.49766988",
"0.49741676",
"0.49709818",
"0.49556652",
"0.49350193",
"0.49227983",
"0.4916787",
"0.49096978",
"0.4900212",
"0.48867938",
"0.4886023",
"0.48837793",
"0.48836172",
"0.4842055",
"0.48338452",
"0.48334605",
"0.48324305",
"0.48301423",
"0.48216012",
"0.48169225",
"0.47969946",
"0.4785383",
"0.47851792",
"0.47842085",
"0.4778531",
"0.47781402",
"0.47772276",
"0.47711676",
"0.47710162",
"0.4770548",
"0.4769463",
"0.47629577",
"0.4761259",
"0.4757585",
"0.4751837",
"0.4733654",
"0.47303587",
"0.47279924",
"0.47252485",
"0.4723639",
"0.4719833",
"0.47171187",
"0.4712811",
"0.4702332",
"0.4689104",
"0.46780568",
"0.46680522",
"0.4652557",
"0.4652038",
"0.463652",
"0.46340463",
"0.46322715",
"0.4630026",
"0.46294758",
"0.4616571",
"0.46146864",
"0.460624",
"0.4598675",
"0.45966238",
"0.45868108",
"0.45740092",
"0.4565765",
"0.4559471",
"0.45586628",
"0.45568636"
] | 0.68055767 | 0 |
Record an event. This is for marking when an operation starts. | public void startOldEvent() {
// JCuda.cudaEventRecord(oldEvent, oldStream);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void record(Event evt) {\n record0(evt);\n }",
"public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }",
"void onStartRecord();",
"public void start(String event) {\n started.put(event, System.currentTimeMillis());\n }",
"public RecordObject addEvent(String token, Object record) throws RestResponseException;",
"void notifyTrace(RecorderTraceEvent event);",
"private void insertEventRecord(Device device, \n long fixtime, int statusCode, Geozone geozone,\n GeoPoint geoPoint, \n long gpioInput,\n double speedKPH, double heading, \n double altitude,\n double odomKM)\n {\n\n /* create event */\n EventData evdb = createEventRecord(device, fixtime, statusCode, geoPoint, gpioInput, speedKPH, heading, altitude, odomKM);\n\n /* insert event */\n // this will display an error if it was unable to store the event\n Print.logInfo(\"Event : [0x\" + StringTools.toHexString(statusCode,16) + \"] \" + StatusCodes.GetDescription(statusCode,null));\n if (device != null) {\n device.insertEventData(evdb); \n }\n this.eventTotalCount++;\n\n }",
"@Override\n public void add(Event event) {\n persist(event);\n }",
"@Override\n public void append( LogEvent event ) {\n long eventTimestamp;\n if (event instanceof AbstractLoggingEvent) {\n eventTimestamp = ((AbstractLoggingEvent) event).getTimestamp();\n } else {\n eventTimestamp = System.currentTimeMillis();\n }\n LogEventRequest packedEvent = new LogEventRequest(Thread.currentThread().getName(), // Remember which thread this event belongs to\n event, eventTimestamp); // Remember the event time\n\n if (event instanceof AbstractLoggingEvent) {\n AbstractLoggingEvent dbLoggingEvent = (AbstractLoggingEvent) event;\n switch (dbLoggingEvent.getEventType()) {\n\n case START_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the test case id, which we will later pass to ATS agent\n testCaseState.setTestcaseId(eventProcessor.getTestCaseId());\n\n // clear last testcase id\n testCaseState.clearLastExecutedTestcaseId();\n\n //this event has already been through the queue\n return;\n }\n case END_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the last executed test case id\n testCaseState.setLastExecutedTestcaseId(testCaseState.getTestcaseId());\n\n // clear test case id\n testCaseState.clearTestcaseId();\n // this event has already been through the queue\n return;\n }\n case GET_CURRENT_TEST_CASE_STATE: {\n // get current test case id which will be passed to ATS agent\n ((GetCurrentTestCaseEvent) event).setTestCaseState(testCaseState);\n\n //this event should not go through the queue\n return;\n }\n case START_RUN:\n\n /* We synchronize the run start:\n * Here we make sure we are able to connect to the log DB.\n * We also check the integrity of the DB schema.\n * If we fail here, it does not make sense to run tests at all\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n Level level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n // create the queue logging thread and the DbEventRequestProcessor\n if (queueLogger == null) {\n initializeDbLogging(null);\n }\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, false);\n //this event has already been through the queue\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n return;\n case END_RUN: {\n /* We synchronize the run end.\n * This way if there are remaining log events in the Test Executor's queue,\n * the JVM will not be shutdown prior to committing all events in the DB, as\n * the END_RUN event is the last one in the queue\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n //this event has already been through the queue\n return;\n }\n case DELETE_TEST_CASE: {\n // tell the thread on the other side of the queue, that this test case is to be deleted\n // on first chance\n eventProcessor.requestTestcaseDeletion( ((DeleteTestCaseEvent) dbLoggingEvent).getTestCaseId());\n // this event is not going through the queue\n return;\n }\n default:\n // do nothing about this event\n break;\n }\n }\n\n passEventToLoggerQueue(packedEvent);\n }",
"public static void recordAuditEventStart(UUID eventId) {\n\n if (eventId == null) {\n return;\n }\n\n if (eventTracker == null) {\n eventTracker = new EventTrackInfo();\n }\n\n recordAuditEventStart(eventId.toString());\n\n }",
"public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }",
"@Override\n\tpublic void onApplicationEvent(ContextStartedEvent event) {\n\t\tSystem.out.println(\"start event \" + event);\n\t}",
"Builder addRecordedAt(Event value);",
"StartEvent createStartEvent();",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"private void addEvent() {\n String name = selectString(\"What is the name of this event?\");\n ReferenceFrame frame = selectFrame(\"Which frame would you like to define the event in?\");\n double time = selectDouble(\"When does the event occur (in seconds)?\");\n double x = selectDouble(\"Where does the event occur (in light-seconds)?\");\n world.addEvent(new Event(name, time, x, frame));\n System.out.println(\"Event added!\");\n }",
"private void logEvent(String operation, EntryEvent event) {\n}",
"@Subscribe\n public void onActionEventStarted(RemoteExecutionActionEvent.Started event) {\n writeRemoteExecutionStateTraceEvents(event);\n }",
"public void consulterEvent() {\n\t\t\n\t}",
"public void addEvent(Event event) {\n\t\t\n\t}",
"public TInvoiceRequestEventRecord() {\n super(TInvoiceRequestEvent.T_INVOICE_REQUEST_EVENT);\n }",
"private void storeEvent() throws IOException {\n\t\tMagical.getStorage().create(Storage.EVENTS_INDEX, event);\n\t\tMagical.addDisplayList(Storage.EVENTS_INDEX, event);\n\t}",
"void onNewEvent(Event event);",
"void addEvent(IShape shape, IEvent event, int eventBegin, int eventEnd);",
"private void record0(Event evt, Object... params) {\n assert evt != null;\n\n if (ctx.recoveryMode())\n return;\n\n if (!enterBusy())\n return;\n\n try {\n int type = evt.type();\n\n if (!isRecordable(type)) {\n LT.warn(log, \"Trying to record event without checking if it is recordable: \" +\n U.gridEventName(type));\n }\n\n // Override user recordable settings.\n if (isUserRecordable(type) && !isHiddenEvent(type)) {\n try {\n getSpi().record(evt);\n }\n catch (IgniteSpiException e) {\n U.error(log, \"Failed to record event: \" + evt, e);\n }\n }\n\n if (isRecordable(type))\n notifyListeners(lsnrs.get(evt.type()), evt, params);\n }\n finally {\n leaveBusy();\n }\n }",
"public void operationStart(BGMEvent e);",
"com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();",
"public static void recordAuditEventStart(String eventId) {\n\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n postMdcInfoForEvent(eventId);\n\n if (eventTracker == null) {\n eventTracker = new EventTrackInfo();\n }\n var event = new EventData();\n event.setRequestId(eventId);\n event.setStartTime(Instant.now());\n eventTracker.storeEventData(event);\n MDC.put(MDC_KEY_REQUEST_ID, eventId);\n debugLogger.info(\"CONCURRENTHASHMAP_LIMIT : {}\", concurrentHashMapLimit);\n // --- Tracking the size of the concurrentHashMap, if it is above limit, keep EventTrack\n // Timer running\n int size = eventTracker.getEventInfo().size();\n\n debugLogger.info(\"EventInfo concurrentHashMap Size : {} on {}\", size, new Date());\n debugLogger.info(\"isEventTrackerRunning : {}\", isEventTrackerRunning);\n\n if (size >= concurrentHashMapLimit) {\n\n\n if (!isEventTrackerRunning) {\n\n startCleanUp();\n isEventTrackerRunning = true;\n }\n\n } else if (size <= stopCheckPoint && isEventTrackerRunning) {\n\n stopCleanUp();\n }\n }",
"protected void sequence_Event(ISerializationContext context, Event semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"public void setEventName(String name);",
"public void actionStarted(ActionStreamEvent action);",
"public void onStarted(long startedTime);",
"void eventOccurred(AbstractTaskEvent event);",
"public void add(IEvent event){\r\n\t\tqueue.add(event);\r\n\t}",
"public void recordEvent(long milliseconds) {\n long currentTime = getCurrentTimeInSeconds();\n long eventTime = milliseconds / 1000;\n long timeDifference = currentTime - eventTime;\n\n if (timeDifference >= SECONDS_IN_DAY || timeDifference < 0) return;\n\n long currentTimeIndex = (currentTime - startTime) % SECONDS_IN_DAY;\n long indexDifference = currentTimeIndex - timeDifference;\n int eventTimeIndex = (int) (indexDifference >= 0 ? indexDifference : records.length + indexDifference);\n\n synchronized (records[eventTimeIndex]) {\n if (currentTime - records[eventTimeIndex].getLastTimeReset() > SECONDS_IN_DAY) {\n records[eventTimeIndex].setCount(1);\n records[eventTimeIndex].setLastTimeReset(currentTime);\n } else {\n records[eventTimeIndex].incrementCount();\n }\n }\n }",
"public void record(){\n\t}",
"public void tagCreated(TagEvent event) {\n createdEvent = event;\n }",
"void onCommitCreatedEvent(T event);",
"public void enqueueEvent(InputEvent event) {\n events.add(event);\n }",
"@Override //to be moved to Cloud service\r\n\tpublic void createEvent(String eventName) {\n\t\t\r\n\t}",
"void addSetupEvent(SetupEvent setupEvent);",
"private void addEvent(SAXEventType eventType) {\n int eventTypeIndex = eventType.getIndex();\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Event type=\" + eventType.toString());\n }\n addInt(eventTypeIndex);\n lastEventType = eventType;\n\n if (recordPerEventLocation && eventType.supportsLocation() &&\n locator != null) {\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"writing Location information\");\n }\n\n addString(locator.getPublicId());\n addString(locator.getSystemId());\n addInt(locator.getLineNumber());\n addInt(locator.getColumnNumber());\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"finished writing Location information\");\n }\n\n }\n\n complex |= eventType.isComplex();\n }",
"public String execute() {\n\t\ttry {\n\t\t\treturnMsg = MESSAGE_EVENT_ADDED;\n\t\t\tcheckEventClash();\n\t\t\tstoreEvent();\n\t\t\treturn returnMsg;\n\t\t} catch (IOException e) {\n\t\t\treturn MESSAGE_EVENT_ERROR;\n\t\t} finally {\n\t\t\tupdateView();\n\t\t\tMagical.setCurrentTab(\"events\");\n\t\t}\n\t}",
"public void taskStarted(BuildEvent event) {\n }",
"@Override\n\tpublic void onEvent() {\n\t\tSystem.out.println(\"Performing callback after synchronous task!\");\n\t}",
"public void recordState() {\n this.event = null;\n flowContextInfo.setWaitingNode(currentNode);\n }",
"@Override\n public void openEvent(){\n rl.lock();\n try{\n log.printFirst();\n System.out.println(\"B : Opening the event...\");\n //change broker state\n// MyThreadBroker broker = (MyThreadBroker) Thread.currentThread();\n// broker.broker_states = MyThreadBroker.Broker_States.OPENING_THE_EVENT;\n //change log\n log.changeLog();\n log.setBrokerState(MyThreadBroker.Broker_States.OPENING_THE_EVENT); \n log.changeLog();\n }finally{\n rl.unlock();\n }\n }",
"public static void recordMetricEvent(String eventId, String arg1) {\n\n seTimeStamps();\n\n String serviceName = MDC.get(MDC_SERVICE_NAME);\n MDC.put(MDC_KEY_REQUEST_ID, eventId);\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n metricsLogger.info(MessageCodes.RULE_AUDIT_END_INFO, serviceName, arg1);\n\n }",
"@Override\r\n\tpublic void dataStore(Event event, String flag) {\n\t\tDocument doc = new Document();\r\n\t\tdoc.append(\"test\", new String(event.getBody()));\r\n\t\tmongoCollection.insertOne(doc);\r\n\t}",
"public static void logEvent(SimulationEvent event) {\n\t\tevents.add(event);\n\t\tSystem.out.println(event);\n\t}",
"public void SimAdded(AddSimEvento event);",
"@Override\r\n\tpublic void startNewEvent(int t) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tthis.newEvent(\"Ernest\", \"action\", t);\r\n\t}",
"@ApiMethod(name = \"insertEvent\")\n public Event insertEvent(Event event) {\n DatastoreService datastoreService = DatastoreServiceFactory.getDatastoreService();\n // TODO: Implement this function\n logger.info(\"Calling insertEvent method\");\n return event;\n }",
"public void onAdd(TimelineAddEvent e) {\n\t\tevent = new TimelineEvent(new Booking(), e.getStartDate(), e.getEndDate(), true, e.getGroup());\n\n\t\t// add the new event to the model in case if user will close or cancel the \"Add dialog\"\n\t\t// without to update details of the new event. Note: the event is already added in UI.\n\t\tmodel.add(event);\n\t}",
"void startRecording() {\n synchronized (serviceConnection) {\n startNewTrackRequested = true;\n serviceConnection.startAndBind();\n \n // Binding was already requested before, it either already happened\n // (in which case running the callback manually triggers the actual recording start)\n // or it will happen in the future\n // (in which case running the callback now will have no effect).\n serviceBindCallback.run();\n }\n }",
"@Override\n\tpublic boolean isEventStarted() {\n\t\treturn status>=EventStarted;\n\t}",
"public void record() {\n stats.record();\n }",
"public static void creatAuditEventTrackingRecord(UUID eventId, String rule) {\n\n if (eventId == null) {\n return;\n }\n\n if (eventTracker == null) {\n return;\n }\n\n var event = eventTracker.getEventDataByRequestId(eventId.toString());\n\n if (event != null) {\n Instant endTime = event.getEndTime();\n if (endTime == null) {\n endTime = Instant.now();\n }\n\n recordAuditEventStartToEnd(eventId.toString(), rule, event.getStartTime(), endTime, \"N/A\");\n }\n }",
"@Override\n\t@Transient\n\tpublic String getEventType() {\n\t\treturn \"AFTER\";\n\t}",
"public void runEvent();",
"public void addEvent()\n throws StringIndexOutOfBoundsException, ArrayIndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n String taskDescription = userIn.split(EVENT_IDENTIFIER)[DESCRIPTION].substring(EVENT_HEADER);\n String timing = userIn.split(EVENT_IDENTIFIER)[TIMING];\n Event event = new Event(taskDescription, timing);\n tasks.add(event);\n storage.writeToFile(event);\n ui.echoUserInput(event, tasks.taskIndex);\n } catch (StringIndexOutOfBoundsException e) {\n ui.printStringIndexOOB();\n } catch (ArrayIndexOutOfBoundsException e) {\n ui.printArrayIndexOOB();\n }\n System.out.println(LINEBAR);\n }",
"public int startEvent() {\n ++eventCount;\n return barrierToken;\n }",
"public static void creatAuditEventTrackingRecord(String eventId, String rule, String policyVersion) {\n\n if (eventTracker == null) {\n return;\n }\n\n var event = eventTracker.getEventDataByRequestId(eventId);\n\n if (event != null) {\n Instant endTime = event.getEndTime();\n if (endTime == null) {\n endTime = Instant.now();\n }\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n recordAuditEventStartToEnd(eventId, rule, event.getStartTime(), endTime, policyVersion);\n }\n }",
"private void startRecording() {\n\n }",
"@Override\n public void handle(Event event) {\n explainWhoStart();\n }",
"public CmsEventQueueRecord() {\n super(CmsEventQueue.CMS_EVENT_QUEUE);\n }",
"public void buildBegin(MonitorEvent event)\n {\n }",
"private void eventProcessingStarted() {\n\t\tsynchronized(processingCounterMutex) {\n\t\t\tprocessingCounter++;\n\t\t}\n\t}",
"Long insert(EventDetail record);",
"public void addEvent(Object newEvent) {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"addEvent(\" + newEvent + \")\");\n\t\t}\n\t\tprocessingState.addEvent(newEvent);\n\t}",
"public void run()\n {\n Event event = request.getEvent();\n if (logger.isDebugEnabled())\n logger.debug(\"Processing event: \"\n + event.getClass().getSimpleName());\n\n EventStatus status = null;\n try\n {\n if (request.isCancelRequested())\n {\n // If the event is cancelled note it.\n status = new EventStatus(false, true, null);\n if (logger.isDebugEnabled())\n logger.debug(\"Skipped cancelled event: \"\n + event.getClass().getSimpleName());\n }\n else\n {\n // Mark the request as started and submit to state machine.\n request.started();\n sm.applyEvent(event);\n status = new EventStatus(true, false, null);\n if (logger.isDebugEnabled())\n logger.debug(\"Applied event: \"\n + event.getClass().getSimpleName());\n }\n }\n catch (InterruptedException e)\n {\n // Handle an interruption, which could happen if we are cancelled\n // while executing.\n status = new EventStatus(false, true, e);\n logger.debug(String.format(\"Failed to apply event %s, reason=%s\",\n event, e.getLocalizedMessage()));\n }\n catch (Throwable e)\n {\n // Handle a failure.\n status = new EventStatus(false, false, e);\n logger.debug(String.format(\"Failed to apply event %s, reason=%s\",\n event, e.getLocalizedMessage()));\n }\n finally\n {\n // We need to store the status and call the completion\n // listener, if any. This must happen regardless of any\n // exception that occurs.\n try\n {\n if (listener != null)\n request.setAnnotation(listener.onCompletion(event, status));\n }\n catch (InterruptedException e)\n {\n // Do nothing; this is the end of the road for this task.\n }\n catch (Throwable e)\n {\n logger.error(\"Unexpected failure while calling listener\", e);\n }\n finally\n {\n // Make sure we record the request state no matter what to\n // prevent hangs.\n request.setStatus(status);\n }\n }\n }",
"@Override\n public void onStartedRecording(Transaction transaction) {\n setState(State.LISTENING);\n startAudioLevelPoll();\n }",
"@EventListener(condition = \"#event.domainObject.new\")\n\tpublic void onApplicationEventNewTaskStartline(DomainObjectStoreEvent<Task> event) {\n\t\tfinal Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\tfinal CustomUserDetails principal = ((CustomUserDetails) authentication.getPrincipal());\n\t\tTask domainObject = event.getDomainObject();\n\t\tLocalDateTime lDT = LocalDateTime.now();\n\t\tdomainObject.setStartline(lDT);\n\t\tdomainObject.setChangedDate(lDT);\n\t\tdomainObject.setAuthor(principal.getUser());\n\t\tdomainObject.setLastEditor(principal.getUser());\n\t\tif (domainObject.getDeadline().isBefore(lDT))\n\t\t\tthrow new IllegalArgumentException(\"Дата дедлайна должна быть позднее сегодняшнего дня\");\n\t}",
"public void addEvent(Event e) {\n\t\t\n\t}",
"public void addEvent(Event e) {\n\t\t\n\t}",
"@Override\n public void addStatusEvent(Status status) {\n }",
"public void addEvPEC(Event ev);",
"void notifyError(RecorderErrorEvent event);",
"public OrderInventedRecord() {\n super(OrderInvented.ORDER_INVENTED);\n }",
"protected void fireCreationEvent() {\n\t\tfireEvent(new DebugEvent(this, DebugEvent.CREATE));\n\t}",
"protected void fireCreationEvent() {\n\t\tfireEvent(new DebugEvent(this, DebugEvent.CREATE));\n\t}",
"protected void logEventCreation(final GossipEvent event) {\n logger.debug(CREATE_EVENT.getMarker(), \"Creating {}\", event::toString);\n }",
"public static void onEvent(String eventId) {\n\n SimpleDateFormat df = new SimpleDateFormat(\"HH:mm:ss\");\n Date curDate = new Date(System.currentTimeMillis());//获取当前时间\n String currentTime = df.format(curDate);\n\n\n try {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"time\", currentTime);\n\n FlurryAgent.onEvent(eventId, params);\n } catch (Throwable t) {\n }\n\n }",
"public void buildStarted(BuildEvent event) {\n }",
"public void startRecord() {\n\t\tif (state == State.INITIALIZING) {\n\t\t\taudioRecorder.startRecording();\n\t\t\taudioRecorder.read(buffer, 0, buffer.length);\n\t\t\tstate = State.RECORDING;\n\t\t}\n\t\telse {\n\t\t\tLog.e(TAG, \"start() called on illegal state\");\n\t\t\tstate = State.ERROR;\n\t\t}\n\t}",
"public void internal_event(){\n logical_clock = logical_clock + 1;\n System.out.println(\"Internal Event Clock:\" +logical_clock);\n //encrypt(logical_clock);\n }",
"abstract protected void _log(TrackingEvent event) throws Exception;",
"@Override\n\tpublic void onStart(Session session) {\n\t\tlogger.info(\"onStart session created:id= {}, begin at {}\", session.getId(), session.getStartTimestamp());\n\t}",
"Builder addRecordedAt(Event.Builder value);",
"public interface ISemanticEventListener {\n\n\t/**\n\t * Notifies this listener that a semantic event has happened.\n\t * @param event - the semantic event\n\t */\n\tvoid notify(IUISemanticEvent event);\n \n\t////////////////////////////////////////////////////////////////////////////\n\t//\n\t// Meta events\n\t//\n\t////////////////////////////////////////////////////////////////////////////\n\n\t//TODO: maybe these meta-notifications should not have there own methods?\n\t\n /**\n * Notifies this listener that event recording has started.\n */\n void notifyStart();\n \n /**\n * Notifies this listener that event recording has stopped.\n */\n void notifyStop();\n\n /**\n * Notifies this listener that the event stream is to be written.\n */\n void notifyWrite();\n \n /**\n * Notifies this listener that root display has been disposed (effectively, recording is terminated).\n */ \n void notifyDispose();\n\n\t/**\n\t * Notifies this listener that the event stream is to be flushed and restarted.\n\t */\n\tvoid notifyRestart();\n\n\t/**\n\t * Notifies this listener that the event stream is to be paused.\n\t */\n\tvoid notifyPause();\n\t\n\t/**\n\t * Notifies this listener that an error occured during recording.\n\t * @param event - the error event\n\t */\n\tvoid notifyError(RecorderErrorEvent event);\n\n\t/**\n\t * Notifies this listener that a trace event was sent during recording.\n\t * @param event - the trace event\n\t */\n\tvoid notifyTrace(RecorderTraceEvent event);\n\n\t/**\n\t * Notifies this listener that a hook added vent was sent during recording.\n\t * @param hookName \n\t */\n\tvoid notifyAssertionHookAdded(String hookName);\n\t\n\t/**\n\t * Notifies that Recorder Controller was started and listens on specific port \n\t * @param port the port number that this controller started listen on\n\t */\n\tpublic void notifyControllerStart(int port);\n\t\n\t/**\n\t * Notifies this listener that Display instance was not found in the application process\n\t */\n\tpublic void notifyDisplayNotFound();\n\n\t/**\n\t * Notifies the listener that spy mode has been toggled.\n\t */\n\tvoid notifySpyModeToggle();\n}",
"void doEvent(LightEvent what);",
"public void createGenesisEvent() {\n handleNewEvent(buildEvent(null, null));\n }",
"public void targetStarted(BuildEvent event) {\n }",
"public void simpleEvent() {\n AdGyde.onSimpleEvent(\"SimpleEventID\");\n Toast.makeText(this, \"Simple event clicked\", Toast.LENGTH_SHORT).show();\n }",
"void eventStart(String key);",
"public String getEventName();",
"public void buildStarted(BuildEvent event) {\n startTime = System.currentTimeMillis();\n }",
"Event createEvent();",
"Event createEvent();"
] | [
"0.6585343",
"0.63809",
"0.6237768",
"0.60646373",
"0.59307027",
"0.5741507",
"0.57194155",
"0.5692957",
"0.5688239",
"0.56240004",
"0.55965567",
"0.5585624",
"0.5574188",
"0.55563176",
"0.55202055",
"0.55202055",
"0.5519953",
"0.54906267",
"0.54570127",
"0.5451006",
"0.5448809",
"0.5429746",
"0.54235023",
"0.54196185",
"0.5354112",
"0.53473943",
"0.53379357",
"0.53353816",
"0.53324443",
"0.53320646",
"0.53267074",
"0.53158337",
"0.5299382",
"0.52709603",
"0.5251901",
"0.5248313",
"0.52301323",
"0.5225867",
"0.52211523",
"0.5207012",
"0.51955456",
"0.51885056",
"0.5188333",
"0.5184322",
"0.51583195",
"0.51507145",
"0.51469064",
"0.5145603",
"0.5130026",
"0.5116085",
"0.50938517",
"0.5091361",
"0.50830895",
"0.50815374",
"0.5080199",
"0.507932",
"0.50772834",
"0.5071574",
"0.5071443",
"0.50607306",
"0.50598824",
"0.5059823",
"0.5059244",
"0.5059037",
"0.5039831",
"0.5033264",
"0.5029994",
"0.5028203",
"0.5013453",
"0.50048894",
"0.5001063",
"0.4998909",
"0.49727",
"0.4969995",
"0.49635425",
"0.49635425",
"0.4961992",
"0.4961847",
"0.49589816",
"0.4957895",
"0.4950079",
"0.4950079",
"0.4948656",
"0.49470216",
"0.49459574",
"0.49425364",
"0.49388587",
"0.49370676",
"0.49281967",
"0.49270514",
"0.49124977",
"0.49108696",
"0.49100244",
"0.4908455",
"0.4905293",
"0.49040875",
"0.4895178",
"0.48901874",
"0.48860672",
"0.48860672"
] | 0.55172515 | 17 |
Record an event (new). This is for marking when an operation starts. | public void startNewEvent() {
// JCudaDriver.cuEventRecord(cUevent,stream);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();",
"void onNewEvent(Event event);",
"public void record(Event evt) {\n record0(evt);\n }",
"@Override\n public void add(Event event) {\n persist(event);\n }",
"public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }",
"public RecordObject addEvent(String token, Object record) throws RestResponseException;",
"private void addEvent() {\n String name = selectString(\"What is the name of this event?\");\n ReferenceFrame frame = selectFrame(\"Which frame would you like to define the event in?\");\n double time = selectDouble(\"When does the event occur (in seconds)?\");\n double x = selectDouble(\"Where does the event occur (in light-seconds)?\");\n world.addEvent(new Event(name, time, x, frame));\n System.out.println(\"Event added!\");\n }",
"public void addEvent(Event event) {\n\t\t\n\t}",
"public void addEvent(Object newEvent) {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"addEvent(\" + newEvent + \")\");\n\t\t}\n\t\tprocessingState.addEvent(newEvent);\n\t}",
"public void startOldEvent() {\n // JCuda.cudaEventRecord(oldEvent, oldStream);\n }",
"void onStartRecord();",
"private void storeEvent() throws IOException {\n\t\tMagical.getStorage().create(Storage.EVENTS_INDEX, event);\n\t\tMagical.addDisplayList(Storage.EVENTS_INDEX, event);\n\t}",
"public void start(String event) {\n started.put(event, System.currentTimeMillis());\n }",
"@Override //to be moved to Cloud service\r\n\tpublic void createEvent(String eventName) {\n\t\t\r\n\t}",
"public void createGenesisEvent() {\n handleNewEvent(buildEvent(null, null));\n }",
"private void insertEventRecord(Device device, \n long fixtime, int statusCode, Geozone geozone,\n GeoPoint geoPoint, \n long gpioInput,\n double speedKPH, double heading, \n double altitude,\n double odomKM)\n {\n\n /* create event */\n EventData evdb = createEventRecord(device, fixtime, statusCode, geoPoint, gpioInput, speedKPH, heading, altitude, odomKM);\n\n /* insert event */\n // this will display an error if it was unable to store the event\n Print.logInfo(\"Event : [0x\" + StringTools.toHexString(statusCode,16) + \"] \" + StatusCodes.GetDescription(statusCode,null));\n if (device != null) {\n device.insertEventData(evdb); \n }\n this.eventTotalCount++;\n\n }",
"@Override\r\n\tpublic void startNewEvent(int t) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tthis.newEvent(\"Ernest\", \"action\", t);\r\n\t}",
"StartEvent createStartEvent();",
"public void onAdd(TimelineAddEvent e) {\n\t\tevent = new TimelineEvent(new Booking(), e.getStartDate(), e.getEndDate(), true, e.getGroup());\n\n\t\t// add the new event to the model in case if user will close or cancel the \"Add dialog\"\n\t\t// without to update details of the new event. Note: the event is already added in UI.\n\t\tmodel.add(event);\n\t}",
"public void tagCreated(TagEvent event) {\n createdEvent = event;\n }",
"@EventListener(condition = \"#event.domainObject.new\")\n\tpublic void onApplicationEventNewTaskStartline(DomainObjectStoreEvent<Task> event) {\n\t\tfinal Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\tfinal CustomUserDetails principal = ((CustomUserDetails) authentication.getPrincipal());\n\t\tTask domainObject = event.getDomainObject();\n\t\tLocalDateTime lDT = LocalDateTime.now();\n\t\tdomainObject.setStartline(lDT);\n\t\tdomainObject.setChangedDate(lDT);\n\t\tdomainObject.setAuthor(principal.getUser());\n\t\tdomainObject.setLastEditor(principal.getUser());\n\t\tif (domainObject.getDeadline().isBefore(lDT))\n\t\t\tthrow new IllegalArgumentException(\"Дата дедлайна должна быть позднее сегодняшнего дня\");\n\t}",
"public void consulterEvent() {\n\t\t\n\t}",
"Event createEvent();",
"Event createEvent();",
"@Override\n public void append( LogEvent event ) {\n long eventTimestamp;\n if (event instanceof AbstractLoggingEvent) {\n eventTimestamp = ((AbstractLoggingEvent) event).getTimestamp();\n } else {\n eventTimestamp = System.currentTimeMillis();\n }\n LogEventRequest packedEvent = new LogEventRequest(Thread.currentThread().getName(), // Remember which thread this event belongs to\n event, eventTimestamp); // Remember the event time\n\n if (event instanceof AbstractLoggingEvent) {\n AbstractLoggingEvent dbLoggingEvent = (AbstractLoggingEvent) event;\n switch (dbLoggingEvent.getEventType()) {\n\n case START_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the test case id, which we will later pass to ATS agent\n testCaseState.setTestcaseId(eventProcessor.getTestCaseId());\n\n // clear last testcase id\n testCaseState.clearLastExecutedTestcaseId();\n\n //this event has already been through the queue\n return;\n }\n case END_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the last executed test case id\n testCaseState.setLastExecutedTestcaseId(testCaseState.getTestcaseId());\n\n // clear test case id\n testCaseState.clearTestcaseId();\n // this event has already been through the queue\n return;\n }\n case GET_CURRENT_TEST_CASE_STATE: {\n // get current test case id which will be passed to ATS agent\n ((GetCurrentTestCaseEvent) event).setTestCaseState(testCaseState);\n\n //this event should not go through the queue\n return;\n }\n case START_RUN:\n\n /* We synchronize the run start:\n * Here we make sure we are able to connect to the log DB.\n * We also check the integrity of the DB schema.\n * If we fail here, it does not make sense to run tests at all\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n Level level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n // create the queue logging thread and the DbEventRequestProcessor\n if (queueLogger == null) {\n initializeDbLogging(null);\n }\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, false);\n //this event has already been through the queue\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n return;\n case END_RUN: {\n /* We synchronize the run end.\n * This way if there are remaining log events in the Test Executor's queue,\n * the JVM will not be shutdown prior to committing all events in the DB, as\n * the END_RUN event is the last one in the queue\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n //this event has already been through the queue\n return;\n }\n case DELETE_TEST_CASE: {\n // tell the thread on the other side of the queue, that this test case is to be deleted\n // on first chance\n eventProcessor.requestTestcaseDeletion( ((DeleteTestCaseEvent) dbLoggingEvent).getTestCaseId());\n // this event is not going through the queue\n return;\n }\n default:\n // do nothing about this event\n break;\n }\n }\n\n passEventToLoggerQueue(packedEvent);\n }",
"Builder addRecordedAt(Event value);",
"private void pushNewEvent(Event e) {\n\t\tec.pushNewElement(e);\n\t}",
"void addEvent(IShape shape, IEvent event, int eventBegin, int eventEnd);",
"protected void fireCreationEvent() {\n\t\tfireEvent(new DebugEvent(this, DebugEvent.CREATE));\n\t}",
"protected void fireCreationEvent() {\n\t\tfireEvent(new DebugEvent(this, DebugEvent.CREATE));\n\t}",
"protected void logEventCreation(final GossipEvent event) {\n logger.debug(CREATE_EVENT.getMarker(), \"Creating {}\", event::toString);\n }",
"public TInvoiceRequestEventRecord() {\n super(TInvoiceRequestEvent.T_INVOICE_REQUEST_EVENT);\n }",
"private void addEvent(SAXEventType eventType) {\n int eventTypeIndex = eventType.getIndex();\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Event type=\" + eventType.toString());\n }\n addInt(eventTypeIndex);\n lastEventType = eventType;\n\n if (recordPerEventLocation && eventType.supportsLocation() &&\n locator != null) {\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"writing Location information\");\n }\n\n addString(locator.getPublicId());\n addString(locator.getSystemId());\n addInt(locator.getLineNumber());\n addInt(locator.getColumnNumber());\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"finished writing Location information\");\n }\n\n }\n\n complex |= eventType.isComplex();\n }",
"void onCommitCreatedEvent(T event);",
"public static void creatAuditEventTrackingRecord(String eventId, String rule, String policyVersion) {\n\n if (eventTracker == null) {\n return;\n }\n\n var event = eventTracker.getEventDataByRequestId(eventId);\n\n if (event != null) {\n Instant endTime = event.getEndTime();\n if (endTime == null) {\n endTime = Instant.now();\n }\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n recordAuditEventStartToEnd(eventId, rule, event.getStartTime(), endTime, policyVersion);\n }\n }",
"public org.hl7.fhir.CodeableConcept addNewEvent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().add_element_user(EVENT$0);\n return target;\n }\n }",
"@Override\r\n\tpublic void dataStore(Event event, String flag) {\n\t\tDocument doc = new Document();\r\n\t\tdoc.append(\"test\", new String(event.getBody()));\r\n\t\tmongoCollection.insertOne(doc);\r\n\t}",
"public void add(IEvent event){\r\n\t\tqueue.add(event);\r\n\t}",
"@EventListener(condition = \"#event.domainObject.new\")\n\tpublic void onApplicationEventNew(DomainObjectStoreEvent<Task> event) {\n\t\tTask domainObject = event.getDomainObject();\n\t\tInteger count = domainObject.getProject().getTaskCounter() + 1;\n\t\tdomainObject.getProject().setTaskCounter(count);\n\t\tdomainObject.setNumberTaskInProject(domainObject.getProject().getCodeProject() + \"-\" + count);\n\t}",
"public void addEvent(Event e) {\n\t\t\n\t}",
"public void addEvent(Event e) {\n\t\t\n\t}",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"public void addEvent()\n throws StringIndexOutOfBoundsException, ArrayIndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n String taskDescription = userIn.split(EVENT_IDENTIFIER)[DESCRIPTION].substring(EVENT_HEADER);\n String timing = userIn.split(EVENT_IDENTIFIER)[TIMING];\n Event event = new Event(taskDescription, timing);\n tasks.add(event);\n storage.writeToFile(event);\n ui.echoUserInput(event, tasks.taskIndex);\n } catch (StringIndexOutOfBoundsException e) {\n ui.printStringIndexOOB();\n } catch (ArrayIndexOutOfBoundsException e) {\n ui.printArrayIndexOOB();\n }\n System.out.println(LINEBAR);\n }",
"private void createEvents() {\n\t}",
"public void addNewEvent(String description, String date) {\n Events event = new Events(description, date);\n taskList.add(event);\n printSuccessfulAddMessage(event.toString());\n }",
"void notifyTrace(RecorderTraceEvent event);",
"public void SimAdded(AddSimEvento event);",
"@ApiMethod(name = \"insertEvent\")\n public Event insertEvent(Event event) {\n DatastoreService datastoreService = DatastoreServiceFactory.getDatastoreService();\n // TODO: Implement this function\n logger.info(\"Calling insertEvent method\");\n return event;\n }",
"public void addEvPEC(Event ev);",
"Long insert(EventDetail record);",
"BasicEvent createBasicEvent();",
"private void addNewMember(Event x) {\r\n \r\n \r\n \r\n }",
"private void logEvent(String operation, EntryEvent event) {\n}",
"@Override\n\t@Transient\n\tpublic String getEventType() {\n\t\treturn \"AFTER\";\n\t}",
"public void record(){\n\t}",
"private void createNotification(FoodEvents event) {\n Context context = getBaseContext();\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context).setSmallIcon(R.drawable.ic_launcher).setContentTitle(event.getTitle())\n .setContentText(event.getDescription());\n Intent resultIntent = new Intent(this, EventDetails.class);\n resultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n resultIntent.putExtra(EventDetails.EXTRA_EVENT, event);\n PendingIntent resultPendingIntent = PendingIntent.getActivity(getBaseContext(), 0, resultIntent, PendingIntent.FLAG_UPDATE_CURRENT, null);\n mBuilder.setContentIntent(resultPendingIntent);\n NotificationManager mNotificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n mNotificationManager.notify(MESSAGE_NOTIFICATION_ID, mBuilder.build());\n notifyMyWatch(event);\n }",
"public static void creatAuditEventTrackingRecord(UUID eventId, String rule) {\n\n if (eventId == null) {\n return;\n }\n\n if (eventTracker == null) {\n return;\n }\n\n var event = eventTracker.getEventDataByRequestId(eventId.toString());\n\n if (event != null) {\n Instant endTime = event.getEndTime();\n if (endTime == null) {\n endTime = Instant.now();\n }\n\n recordAuditEventStartToEnd(eventId.toString(), rule, event.getStartTime(), endTime, \"N/A\");\n }\n }",
"@Override\n\tpublic void onApplicationEvent(ContextStartedEvent event) {\n\t\tSystem.out.println(\"start event \" + event);\n\t}",
"public void setEventName(String name);",
"public void create(Singer newRecord);",
"public void addEvent(Event e){\r\n\t\tallEvents.add(e);\r\n\t}",
"protected void sequence_Event(ISerializationContext context, Event semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"ProgramEventEvent createProgramEventEvent();",
"public String execute() {\n\t\ttry {\n\t\t\treturnMsg = MESSAGE_EVENT_ADDED;\n\t\t\tcheckEventClash();\n\t\t\tstoreEvent();\n\t\t\treturn returnMsg;\n\t\t} catch (IOException e) {\n\t\t\treturn MESSAGE_EVENT_ERROR;\n\t\t} finally {\n\t\t\tupdateView();\n\t\t\tMagical.setCurrentTab(\"events\");\n\t\t}\n\t}",
"public void addEvent(Event event) {\n events.add(event);\n }",
"public OrderInventedRecord() {\n super(OrderInvented.ORDER_INVENTED);\n }",
"@DISPID(8) //= 0x8. The runtime will prefer the VTID if present\r\n @VTID(15)\r\n short persistsEvents();",
"public String addEvent(String description, LocalDate at) {\n Event toAdd = new Event(description, at);\n records.add(toAdd);\n return String.format(\"Got it. I've added this event:\\n\\t %1$s \\n\\t\" +\n \"Now you have %2$d tasks in the list.\\n\\t\", toAdd.toString(), records.size());\n }",
"public void addEvent() {\n TimetableUserItem event;\n try {\n String description = getDescription();\n String date = getDate();\n String startTime = getStartTime();\n String endTime = getEndTime();\n verifyCorrectTime(startTime, endTime);\n String location = getLocation();\n event = new TimetableUserItem(description, date, startTime, endTime, location);\n verifyNoConflict(event);\n timetable.addEvent(event.getDayOfWeek(), event);\n timetable.addToEvents(event);\n addUI.printEventMessage(event);\n } catch (AddException e) {\n e.printMessage();\n logger.log(Level.WARNING, \"Invalid event created, event has not been added to timetable\");\n }\n }",
"public CmsEventQueueRecord() {\n super(CmsEventQueue.CMS_EVENT_QUEUE);\n }",
"public static void recordAuditEventStart(UUID eventId) {\n\n if (eventId == null) {\n return;\n }\n\n if (eventTracker == null) {\n eventTracker = new EventTrackInfo();\n }\n\n recordAuditEventStart(eventId.toString());\n\n }",
"void addSetupEvent(SetupEvent setupEvent);",
"@OnClick(R.id.btn_save_event)\n public void saveChanges() {\n if (isNewEvent) {\n createEvent();\n } else {\n updateEvent();\n }\n }",
"public void recordState() {\n this.event = null;\n flowContextInfo.setWaitingNode(currentNode);\n }",
"public static void recordAuditEventStart(String eventId) {\n\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n postMdcInfoForEvent(eventId);\n\n if (eventTracker == null) {\n eventTracker = new EventTrackInfo();\n }\n var event = new EventData();\n event.setRequestId(eventId);\n event.setStartTime(Instant.now());\n eventTracker.storeEventData(event);\n MDC.put(MDC_KEY_REQUEST_ID, eventId);\n debugLogger.info(\"CONCURRENTHASHMAP_LIMIT : {}\", concurrentHashMapLimit);\n // --- Tracking the size of the concurrentHashMap, if it is above limit, keep EventTrack\n // Timer running\n int size = eventTracker.getEventInfo().size();\n\n debugLogger.info(\"EventInfo concurrentHashMap Size : {} on {}\", size, new Date());\n debugLogger.info(\"isEventTrackerRunning : {}\", isEventTrackerRunning);\n\n if (size >= concurrentHashMapLimit) {\n\n\n if (!isEventTrackerRunning) {\n\n startCleanUp();\n isEventTrackerRunning = true;\n }\n\n } else if (size <= stopCheckPoint && isEventTrackerRunning) {\n\n stopCleanUp();\n }\n }",
"BasicEvents createBasicEvents();",
"private void record0(Event evt, Object... params) {\n assert evt != null;\n\n if (ctx.recoveryMode())\n return;\n\n if (!enterBusy())\n return;\n\n try {\n int type = evt.type();\n\n if (!isRecordable(type)) {\n LT.warn(log, \"Trying to record event without checking if it is recordable: \" +\n U.gridEventName(type));\n }\n\n // Override user recordable settings.\n if (isUserRecordable(type) && !isHiddenEvent(type)) {\n try {\n getSpi().record(evt);\n }\n catch (IgniteSpiException e) {\n U.error(log, \"Failed to record event: \" + evt, e);\n }\n }\n\n if (isRecordable(type))\n notifyListeners(lsnrs.get(evt.type()), evt, params);\n }\n finally {\n leaveBusy();\n }\n }",
"public synchronized void addEvent(Event event) {\n\t\tqueue.add(event);\n\t\tnotifyAll();\n\t}",
"public VertexEvent() {\n\t\tsuper();\n\n\t\tthis.jobVertexID = new JobVertexID();\n\t\tthis.jobVertexName = null;\n\t\tthis.totalNumberOfSubtasks = -1;\n\t\tthis.indexOfSubtask = -1;\n\t\tthis.currentExecutionState = ExecutionState.CREATED;\n\t\tthis.description = null;\n\t}",
"void onIssueCreatedEvent(T event);",
"public void assignAddingEvent(final boolean val) {\n addingEvent = val;\n }",
"noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord addNewTaskmonitorrecord();",
"noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord addNewTaskmonitorrecord();",
"static void addEventMetadata(Event event) {\n event.setSessionId(AssociationController.getSessionId());\n event.setAppInstallId(Prefs.INSTANCE.getAppInstallId());\n event.setDt(DateUtil.iso8601DateFormat(new Date()));\n }",
"private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.POST, 0));\r\n\t}",
"@Override\n public void openEvent(){\n rl.lock();\n try{\n log.printFirst();\n System.out.println(\"B : Opening the event...\");\n //change broker state\n// MyThreadBroker broker = (MyThreadBroker) Thread.currentThread();\n// broker.broker_states = MyThreadBroker.Broker_States.OPENING_THE_EVENT;\n //change log\n log.changeLog();\n log.setBrokerState(MyThreadBroker.Broker_States.OPENING_THE_EVENT); \n log.changeLog();\n }finally{\n rl.unlock();\n }\n }",
"public void operationStart(BGMEvent e);",
"public long createEvent(Event event) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(EVENT_NAME, event.getName());\n values.put(EVENT_DATE, event.getDate());\n\n // insert row\n long _id = db.insert(EVENTS_TABLE_NAME, null, values);\n\n return _id;\n }",
"public boolean addEvent (Message event) {\n Logger.write(\"VERBOSE\", \"DB\", \"addEvent(...)\");\n try {\n execute(DBStrings.addEvent.replace(\"__sig__\", event.getSig())\n .replace(\"__startTime__\", Long.toString(event.EVNTgetStart()))\n .replace(\"__endTime\", Long.toString(event.EVNTgetEnd()))\n .replace(\"__creatorKey__\", Crypto.encodeKey(getSignatory(event)))\n .replace(\"__accepted__\", \"0\")\n .replace(\"__name__\", event.EVNTgetName())\n .replace(\"__creationTime__\", Long.toString(event.getTimestamp())));\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n return false;\n }\n \n return true;\n }",
"public CustomerEvent()\r\n {\r\n this(0, 0, ENTER);\r\n }",
"@Override\n public void addStatusEvent(Status status) {\n }",
"public void create(Rule event);",
"Builder addRecordedAt(Event.Builder value);",
"public void addRecord();",
"public static synchronized void insert(JeyEvent e) {\n queue.addLast(e);\r\n EventQueue.class.notifyAll();\r\n }",
"private void replicateEvent(String path, Event event) {\n if (event.getEventType() == EventType.BEGIN) {\n\n // Get the task state machine for this target\n StateMachine<Status, EventType> stateMachine = StateMachineRepository\n .getStateMachineBean(event.getTargetId());\n\n // The state machine must acquire a lock on this task to ensure idempotent\n // state change notification sent to RabbitMQ\n // TODO: Trade off #2\n stateMachine\n .getExtendedState()\n .getVariables()\n .put(String.format(\"%s--%s\", event.getTargetId(), Status.PENDING), true);\n\n // Start the task state machine\n stateMachine.start();\n\n } else {\n\n // Add event to state machine queue\n StateMachineRepository.getTaskListener(event.getTargetId())\n .getQueue().add(event.getEventType());\n\n }\n\n // Enqueue the event so that it is not re-processed\n queue.add(path);\n }",
"public NodeEvent() {\n\t\tthis(new Note(), DEFAULT_LIKELIHOOD);\n\t}",
"public Event createOneShotPublish(Address resource, String event);",
"public PersistentLogEventListener() {\n\t\tthis(new EventDAO());\n\t}"
] | [
"0.6465135",
"0.636119",
"0.6351219",
"0.617507",
"0.605298",
"0.6011914",
"0.5985152",
"0.59523076",
"0.59471315",
"0.58804977",
"0.58666956",
"0.5849222",
"0.58237445",
"0.580372",
"0.57770765",
"0.57689935",
"0.5746902",
"0.56558657",
"0.56524694",
"0.5646755",
"0.5622862",
"0.5598217",
"0.55977774",
"0.55977774",
"0.5589166",
"0.5582266",
"0.5558468",
"0.55288464",
"0.55213344",
"0.55213344",
"0.5507401",
"0.5492214",
"0.54905385",
"0.54646444",
"0.545277",
"0.54419756",
"0.5433041",
"0.5432689",
"0.5428621",
"0.54187524",
"0.54187524",
"0.5398677",
"0.5398677",
"0.5394565",
"0.53856045",
"0.53778183",
"0.5355558",
"0.5354659",
"0.5346294",
"0.5332093",
"0.5330181",
"0.53259355",
"0.53243095",
"0.53121257",
"0.5310467",
"0.52994335",
"0.5297334",
"0.52875584",
"0.52854174",
"0.5269796",
"0.5266892",
"0.526016",
"0.5235592",
"0.5228223",
"0.52238953",
"0.52200735",
"0.5215019",
"0.52134705",
"0.52100486",
"0.5205642",
"0.5200731",
"0.51664174",
"0.51640546",
"0.51558703",
"0.51535803",
"0.5153345",
"0.5140679",
"0.5138255",
"0.51304644",
"0.5129595",
"0.51234025",
"0.5119057",
"0.5118299",
"0.5118299",
"0.5117276",
"0.511189",
"0.51080245",
"0.5098897",
"0.5088725",
"0.5086642",
"0.5074673",
"0.50660294",
"0.5064952",
"0.50649005",
"0.5053062",
"0.5038432",
"0.50364745",
"0.5028584",
"0.5022557",
"0.5022202"
] | 0.6814297 | 0 |
Initializes the old stream | public void initOldStream() {
ContextHolder.getInstance().setContext();
if(oldStream == null) {
/* try {
oldStream = ContextHolder.getInstance().getOldStreamPool().borrowObject();
} catch (Exception e) {
oldStreamFromPool = false;
oldStream = new cudaStream_t();
JCuda.cudaStreamCreate(oldStream);
}*/
oldStreamFromPool = false;
oldStream = new cudaStream_t();
JCuda.cudaStreamCreate(oldStream);
// oldEvent = new cudaEvent_t();
// JCuda.cudaEventCreate(oldEvent);
// oldEventDestroyed = false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"synchronized static void initStreams()\n {\n if ( !initialized )\n {\n out = ansiStream(true);\n err = ansiStream(false);\n initialized = true;\n }\n }",
"default void refreshStream() {}",
"private void initializeIOStreams() {\n try {\n inputStream = new ObjectInputStream(new BufferedInputStream(socket.getInputStream()));\n outputStream = new ObjectOutputStream(new BufferedOutputStream(socket.getOutputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public BaseServerInputStream() {\n data = new ArrayDeque<IoBuffer>();\n marked = false;\n resetCache = null;\n }",
"protected void resetIO()\r\n {\r\n // Clear out all the stream history stuff\r\n tcIn = null;\r\n tcOut = null;\r\n tcInBuf = null;\r\n\r\n // Make sure these are history-wrapped\r\n SystemIOUtilities.out().clearHistory();\r\n SystemIOUtilities.err().clearHistory();\r\n SystemIOUtilities.restoreSystemIn();\r\n }",
"synchronized protected void rewind() {\n\t\ttry {\n\t\t\tais.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new CCSoundException(\"JSPCMAudioRecordingStream::rewind - Error closing the stream before reload\", e);\n\t\t}\n\t\tais = CCSoundIO.getAudioInputStream(meta.fileName());\n\t}",
"public synchronized void resetInputStream()\r\n\t{\r\n\t\tthis.inputStream = new BodyReusableServletInputStream(this.bodyBytes);\r\n\t\tthis.bufferedReader = new BufferedReader(new InputStreamReader(this.inputStream)); \r\n\t}",
"void init() throws IOException {\n\t\tif (this.type==FILE){\n\t\t\tstream.init(new FileInputStream(name));\n\t\t}\n\t\telse{\n\t\t\tURL url = new URL(name);\n\t\t\tstream.init((url.openStream()));\n\t\t}\n\t}",
"public void setBuffering() {\n try {\n doc = StaxUtils.read(stream);\n stream = null;\n } catch (XMLStreamException e) {\n throw new Fault(e); \n }\n }",
"public void init() {\n\t\ttry {\n\t\t\tthis.is = new ObjectInputStream(clientSocket.getInputStream());\n\t\t\tthis.os = new ObjectOutputStream(clientSocket.getOutputStream());\n\t\t\twhile (this.readCommand()) {}\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.out.println(\"XX. There was a problem with the Input/Output Communication:\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void setStreamBuffer(int size) {\r\n\t\tif(size>0)\r\n\t\t\tbuffer = new byte[size];\r\n\t\telse\r\n\t\t\tbuffer = new byte[this.size];\r\n\t}",
"@Override\n protected void initializeReader() {\n this.fileList = new ArrayList<>();\n this.fileListPosition = new AtomicInteger(0);\n this.currentTextAnnotation = new AtomicReference<>();\n }",
"public InputStreamHolder (InputStream the_stream) {\n\t\t\tstream = the_stream;\n\t\t\tis_closed = false;\n\t\t}",
"private void setupStreams() {\n\t\ttry {\n\t\t\tthis.out = new ObjectOutputStream(this.sock.getOutputStream());\n\t\t\tthis.out.flush();\n\t\t\tthis.in = new ObjectInputStream(this.sock.getInputStream());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void init() throws IOException {\n restart(scan.getStartRow());\n }",
"protected void openStream ()\n {\n stream = Util.stream (entry, \"Holder.java\");\n }",
"private void initStreams() throws IOException {\n OutputStream os = socket.getOutputStream();\n InputStream is = socket.getInputStream();\n dos = new DataOutputStream(new BufferedOutputStream(os));\n dis = new DataInputStream(new BufferedInputStream(is));\n }",
"public final void setStream(InputStream newStream)\n\t{\n\t\tthis.dataValue = null;\n _blobValue = null;\n\t\tthis.stream = newStream;\n\t\tstreamValueLength = -1;\n\t}",
"public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }",
"public void rewind() throws IOException {\n if (closed) {\n throw new IOException(\"Stream is already closed\");\n }\n\n if (storeOutputStream != null) {\n storeOutputStream.close();\n storeOutputStream = null;\n }\n\n // Close the byte input stream or file input stream\n if (inputStream != originalInputStream) {\n inputStream.close();\n }\n\n bufferHighWaterMark = Math.max(bufferPointer, bufferHighWaterMark);\n bufferPointer = bufferHighWaterMark;\n\n if (bufferHighWaterMark > 0) {\n // If we have a buffer, then we'll read from it\n if (byteBuffer != null) {\n readingFromBuffer = true;\n inputStream = new UnsynchronizedByteArrayInputStream(byteBuffer, 0, bufferHighWaterMark);\n } else {\n // No buffer, which means we've switched to a file\n inputStream = new BufferedInputStream(new FileInputStream(storeFile));\n }\n } else {\n inputStream = originalInputStream;\n }\n }",
"public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }",
"protected StreamParser()\n {\n }",
"public void resetWriter() {\n\t\tinit();\n\t}",
"protected void doInit()\r\n/* 131: */ {\r\n/* 132:194 */ this.tmpBuf = new byte[32];\r\n/* 133:195 */ engineReset();\r\n/* 134: */ }",
"public void resetBuffer(){\n bufferSet = false;\n init();\n }",
"private StreamFactory()\n {\n /*\n * nothing to do\n */\n }",
"public void init() {\r\n\t\ttry {\r\n\t\t\tmessages = new ConcurrentLinkedDeque<>();\r\n\t\t\tout = sock.getOutputStream();\r\n\t\t\tin = sock.getInputStream();\t\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstartMessageThread();\r\n\t}",
"public void reset() {\n started = false;\n flushing = false;\n moreText = true;\n headerCount = 0;\n actualLen = 0;\n }",
"@Override\n public void initialize() throws IOException {\n\n }",
"protected void reInitialize() {\n resetCurrent();\n incrementIterCount();\n setFirst(true);\n recoverRunningVersion();\n }",
"private void openStreams() {\n\t\ttry {\n\t\t\t// mostramos un log\n\t\t\tthis.getLogger().debug(\"Opening streams..\");\n\t\t\t// abrimos el stream de salida\n\t\t\tthis.setOutputStream(new ObjectOutputStream(this.getConnection().getOutputStream()));\n\t\t\t// abrimos el stream de entrada\n\t\t\tthis.setInputStream(new ObjectInputStream(this.getConnection().getInputStream()));\n\t\t} catch (final IOException e) {}\n\t}",
"public void syncOldStream() {\n ContextHolder.getInstance().setContext();\n JCuda.cudaStreamSynchronize(oldStream);\n/*\n if(!oldEventDestroyed) {\n JCuda.cudaStreamSynchronize(oldStream);\n JCuda.cudaStreamWaitEvent(oldStream,oldEvent,0);\n JCuda.cudaEventDestroy(oldEvent);\n oldEventDestroyed = true;\n\n }*/\n }",
"public void init(BinaryDataReader dataReader) throws IOException\n\t{\n\t}",
"private void setupStreams() throws IOException {\n\t\toutput = new ObjectOutputStream(Connection.getOutputStream());\n\t\toutput.flush();\n\t\tinput = new ObjectInputStream(Connection.getInputStream()); \n\t\tshowMessage(\"\\n Streams have successfully connected.\");\n\t}",
"private void initiliaze() {\r\n\t\tthis.inputFile = cd.getInputFile();\r\n\t\tthis.flowcell = cd.getFlowcell();\r\n\t\tthis.totalNumberOfTicks = cd.getOptions().getTotalNumberOfTicks();\r\n\t\tthis.outputFile = cd.getOutputFile();\r\n\t\tthis.statistics = cd.getStatistic();\r\n\t}",
"public void initializeFullRead() {\r\n\r\n try {\r\n bPtr = 0;\r\n\r\n if (raFile != null) {\r\n fLength = raFile.length();\r\n } else {\r\n return;\r\n }\r\n\r\n if (tagBuffer == null) {\r\n tagBuffer = new byte[(int) fLength];\r\n } else if (fLength > tagBuffer.length) {\r\n tagBuffer = new byte[(int) fLength];\r\n }\r\n\r\n raFile.readFully(tagBuffer);\r\n } catch (final IOException ioE) {}\r\n }",
"public void init() throws IOException;",
"private void resetBuffer() {\n baos.reset();\n }",
"protected void reinitialize() {\n \t\t\tfStart= fEnd= -1;\n \t\t\tfText= fPreservedText= null;\n \t\t\tfUndoModificationStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP;\n \t\t\tfRedoModificationStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP;\n \t\t}",
"protected final void setInputStream(LoggedDataInputStream inputStream) {\n if (this.inputStream == inputStream) return ;\n if (this.inputStream != null) {\n try {\n this.inputStream.close();\n } catch (IOException ioex) {/*Ignore*/}\n }\n this.inputStream = inputStream;\n }",
"public void initialize(InputStream stream) {\n if (stream == null) {\n return;\n }\n new DictionaryHandler().read(stream);\n try {\n stream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void init(String _id)\n\t{\n\t\tid = _id;\n\t\tsource = Constants.SERVER_ADDR;\n\t\tdestination = Constants.CLIENT_ADDR; \n\t\tnextHop = Constants.LOCALHOST_ADDR;\n\t\t\n\t\tacks = Collections.synchronizedMap(new HashMap<String, LinkedList<Long>>());\n\t\tlastRR = Collections.synchronizedMap(new HashMap<String, RTCPPPacket>());\n\t\toutQueue = new LinkedList<Long>();\n\t\t\n\t\tstreamStore = new Stream(id, source, destination);\n\t\trrTo = null;\n\t\ttimer = new Timer();\n\t}",
"protected void initBuffer() throws IOException {\n if (buf != null) {\r\n Util.disposeDirectByteBuffer(buf);\r\n }\r\n // this check is overestimation:\r\n int size = bufferNumLength << Main.log2DataLength;\r\n assert (size > 0);\r\n if (Main.debug) { System.out.println(\"Allocating direct buffer of \"+bufferNumLength+\" ints.\"); }\r\n buf = ByteBuffer.allocateDirect(size).order(Main.byteOrder);\r\n buf.clear();\r\n }",
"public StreamContainer(StreamContainer SC){\n\t\tindices = SC.indices;\n\t\tcontenido = SC.contenido;\n\t}",
"private void setInputStream(final ObjectInputStream stream) {\n\t\t// almacenamos el stream de entrada\n\t\tthis.inputStream = stream;\n\t}",
"private void reset() {\n // Reset to the inital state.\n command = null;\n headers = new DefaultHeaders();\n body = null;\n currentDecodedByteCount = 0;\n totalDecodedByteCount = 0;\n }",
"public PacketInputStream ()\n {\n _buffer = ByteBuffer.allocate(INITIAL_BUFFER_CAPACITY);\n }",
"public void reset ()\r\n\t{\r\n\t\tsuper.reset();\r\n\t\tlastSampleTime = 0;\r\n\t\tfirstSampleTime = 0;\r\n\t\tlastSampleSize = 0;\r\n\t}",
"private void init() {\n sensorEnabled = false;\n contextEventHistory = new ArrayList<ContextEvent>(CONTEXT_EVENT_HISTORY_SIZE);\n }",
"public MemoryCacheSeekableStream(InputStream src) {\n/* 75 */ this.src = src;\n/* */ }",
"public final void initialize() {\n initialize(0);\n }",
"public StreamProcessorImpl(StreamSpec streamSpec) {\n this(streamSpec, new PreloadStreamDataReader());\n }",
"protected void aInit()\n {\n \ta_available=WindowSize;\n \tLimitSeqNo=WindowSize*2;\n \ta_base=1;\n \ta_nextseq=1;\n }",
"public final void ogg_sync_init() {// return changed to void\r\n\t\t//if( oy != null ) {\r\n\t\t\t// FIXME is this a bug? may be after clear()?\r\n\t\t\tstorage = -1; /* used as a readiness flag */\r\n\t\t\tclear();\r\n\t\t//}\r\n\t\t//return (0);\r\n\t}",
"@Override\n protected void initialize() {\n m_oldTime = Timer.getFPGATimestamp();\n m_oldError= m_desiredDistance;\n }",
"public PipedOutputStream() {\n }",
"@Override\n public void resetBuffer() {\n\n }",
"public void startOver() {\n this.pagesRead = 0;\n }",
"protected void init() {\n\t\tout = new StringWriter();\n\t\ttry {\n\t\t\twriter = XMLOutputFactory.newInstance().createXMLEventWriter(out);\n\t\t} catch (XMLStreamException xmlStrExp) {\n\t\t\tthrow new GrobidException(\"An error occured while creating the Stax event readers: \" + xmlStrExp.toString());\n\t\t} catch (FactoryConfigurationError factCongExp) {\n\t\t\tthrow new GrobidException(\"An error occured while creating the Stax event readers: \" + factCongExp.toString());\n\t\t}\n\t}",
"public StreamData(String name)\n {\n _data = new LinkedList<byte[]>();\n this.Name = name;\n this.Length = 0;\n }",
"private void init() {\n this.playing = true;\n this.hand.clear();\n this.onTable = 0;\n this.points = 0;\n }",
"public void setupStreams() throws IOException{\n\t\t\n\t\toutput = new ObjectOutputStream(connection.getOutputStream());\n\t\toutput.flush();\n\t\tinput = new ObjectInputStream(connection.getInputStream());\n\t\tshowMessage(\"All streams are set up and ready to go!\");\n\t\t\n\t\t\t\t\n\t}",
"public void reset() {\n try {\n is.reset();\n }catch(IOException ioe) {\n }\n }",
"public void reset()\n {\n current = 0;\n highWaterMark = 0;\n lowWaterMark = 0;\n super.reset();\n }",
"public synchronized void reset() throws IOException {\n\t\t\tdata.seek(firstPosition);\n\t\t}",
"protected void initialize() {\n\t\televator.zeroEncoder();\n\t}",
"@Override\n\tpublic void resetStreamingNotification() {\n\t\t\n\t}",
"public void initialize(final InputStream stream) throws IOException\n {\n // load up the properties\n final Properties props = new Properties();\n props.load(stream);\n initialize(props);\n }",
"private void initResource(final ResourceReference ref) throws ResourceStreamNotFoundException {\n\t\tfinal boolean gzip = Application.get().getResourceSettings().getDisableGZipCompression();\n\t\ttry {\n\t\t\tApplication.get().getResourceSettings().setDisableGZipCompression(true);\n\t\t\tref.getResource().getResourceStream().getInputStream();\n\t\t} finally {\n\t\t\tApplication.get().getResourceSettings().setDisableGZipCompression(gzip);\n\t\t}\n\t}",
"private void reinit() {\n init();\n }",
"public ReaderInputStream(Reader reader) {\n\t\t\tthis.reader = reader;\n\t\t\tencoder = UTF8.newEncoder();\n\t\t\tcharBuffer.limit(0);\n\t\t\tbyteBuffer.limit(0);\n\t\t}",
"public StreamReader() {}",
"void init() throws IOException;",
"void init() throws IOException;",
"private void init() {\n\n\t}",
"public void syncHandle() {\n syncOldStream();\n }",
"protected void initialize() {\n \t\n }",
"protected void fill() throws IOException {\n ensureOpen();\n len = in.read(buf, 0, buf.length);\n if (len == -1) {\n throw new EOFException(\"Unexpected end of ZLIB input stream\");\n }\n inf.setInput(buf, 0, len);\n }",
"private void init() {\n }",
"private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}",
"private XmlStreamFactory()\n {\n /*\n * nothing to do\n */\n }",
"protected void initialize() {\n \tRobot.drive.resetEncoder();\n }",
"void refreshState() {\n if (delegate instanceof AbstractStreamsConnection) {\n AbstractStreamsConnection asc = (AbstractStreamsConnection)delegate;\n apiKey = asc.getAuthorization();\n executor = asc.getExecutor();\n }\n }",
"protected void init() {\n init(null);\n }",
"public void clear() {\n streams.clear();\n }",
"@Override\n\tprotected void setData(DataStream dataStream) throws IOException {\n\t\t\n\t}",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"public void initialize() {\n grow(0);\n }",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader) {\n this(streamSpec, dataReader, new FrameIteratorFactory());\n }",
"public void reuse() {\n method = null;\n uriPath = null;\n versionRange = 0;\n uriFragmentRange = queryStringRange = 0;\n contentOffset = 0;\n contentLength = 0;\n\n if (buffer != null) {\n buffer.clear();\n }\n for (int i = 0; i < nFields; i++) {\n keys[i] = null;\n }\n nFields = 0;\n }",
"public void resetBuffer() {\n\n\t}",
"@Override\n public void reset() throws IOException {\n setPosition(startPosition);\n }",
"@Override\n public void initialize() {\n counter = 0;\n }",
"@Override\n public void initialize() {\n counter = 0;\n }",
"public Builder clearStream() {\n \n stream_ = false;\n onChanged();\n return this;\n }",
"public LMScrambleShift (RandomStream stream) {\n super(stream);\n }",
"public void recycle() {\r\n // Recycle our parent\r\n super.recycle();\r\n // Recycle the stream\r\n this.localstream.recycle();\r\n // Tell the parent that a stream is already in use.\r\n this.setStream(localstream);\r\n }"
] | [
"0.69405013",
"0.6548208",
"0.6482489",
"0.64281195",
"0.63510495",
"0.63348234",
"0.6262921",
"0.6231152",
"0.6221838",
"0.61918074",
"0.6078288",
"0.60621876",
"0.6043294",
"0.60138285",
"0.59586155",
"0.5939213",
"0.59302163",
"0.59301984",
"0.5922566",
"0.58884865",
"0.58848107",
"0.5879392",
"0.5877808",
"0.5859276",
"0.583658",
"0.581289",
"0.5810857",
"0.57809204",
"0.5779377",
"0.5770426",
"0.57649374",
"0.57603073",
"0.57210267",
"0.5705496",
"0.5672858",
"0.5669768",
"0.56606513",
"0.5660141",
"0.56321967",
"0.5624596",
"0.5620265",
"0.56178385",
"0.5612436",
"0.56063795",
"0.5590693",
"0.55697364",
"0.55511343",
"0.55396944",
"0.55382836",
"0.5538227",
"0.55222476",
"0.5518564",
"0.55162066",
"0.5512836",
"0.55060494",
"0.5504584",
"0.55042946",
"0.5499466",
"0.54950297",
"0.549004",
"0.5487992",
"0.54831696",
"0.54779917",
"0.5474679",
"0.5470676",
"0.54694194",
"0.54482055",
"0.54446435",
"0.5444386",
"0.54377794",
"0.5437366",
"0.5434684",
"0.5431871",
"0.5431871",
"0.5425124",
"0.5424168",
"0.54224765",
"0.54214436",
"0.5420379",
"0.5409376",
"0.540918",
"0.5406724",
"0.5399086",
"0.53984666",
"0.5395783",
"0.5394618",
"0.5393236",
"0.5393236",
"0.5393236",
"0.5393236",
"0.539323",
"0.53912205",
"0.53826296",
"0.538058",
"0.5379229",
"0.5373354",
"0.5373354",
"0.53733164",
"0.537311",
"0.5370504"
] | 0.73697466 | 0 |
Initializes a handle and associates with the given stream. initOldStream() should be called first | public void initHandle() {
if(handle == null) {
/* try {
handle = ContextHolder.getInstance().getHandlePool().borrowObject();
} catch (Exception e) {
handle = new cublasHandle();
JCublas2.cublasCreate(handle);
handleFromPool = false;
}*/
handle = new cublasHandle();
JCublas2.cublasCreate(handle);
handleFromPool = false;
// associateHandle();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initOldStream() {\n ContextHolder.getInstance().setContext();\n if(oldStream == null) {\n /* try {\n oldStream = ContextHolder.getInstance().getOldStreamPool().borrowObject();\n } catch (Exception e) {\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n }*/\n\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n // oldEvent = new cudaEvent_t();\n // JCuda.cudaEventCreate(oldEvent);\n // oldEventDestroyed = false;\n }\n\n }",
"public synchronized void associateHandle() {\n JCublas2.cublasSetStream(handle,oldStream);\n }",
"public void syncHandle() {\n syncOldStream();\n }",
"protected void openStream ()\n {\n stream = Util.stream (entry, \"Holder.java\");\n }",
"public InputStreamHolder (InputStream the_stream) {\n\t\t\tstream = the_stream;\n\t\t\tis_closed = false;\n\t\t}",
"synchronized static void initStreams()\n {\n if ( !initialized )\n {\n out = ansiStream(true);\n err = ansiStream(false);\n initialized = true;\n }\n }",
"private void setInputStream(final ObjectInputStream stream) {\n\t\t// almacenamos el stream de entrada\n\t\tthis.inputStream = stream;\n\t}",
"public void initialize(InputStream stream) {\n if (stream == null) {\n return;\n }\n new DictionaryHandler().read(stream);\n try {\n stream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void init() throws IOException {\n\t\tif (this.type==FILE){\n\t\t\tstream.init(new FileInputStream(name));\n\t\t}\n\t\telse{\n\t\t\tURL url = new URL(name);\n\t\t\tstream.init((url.openStream()));\n\t\t}\n\t}",
"public final void setStream(InputStream newStream)\n\t{\n\t\tthis.dataValue = null;\n _blobValue = null;\n\t\tthis.stream = newStream;\n\t\tstreamValueLength = -1;\n\t}",
"public void initialize(final InputStream stream) throws IOException\n {\n // load up the properties\n final Properties props = new Properties();\n props.load(stream);\n initialize(props);\n }",
"protected final void setInputStream(LoggedDataInputStream inputStream) {\n if (this.inputStream == inputStream) return ;\n if (this.inputStream != null) {\n try {\n this.inputStream.close();\n } catch (IOException ioex) {/*Ignore*/}\n }\n this.inputStream = inputStream;\n }",
"private native void initialiseHandle(ArcomESS handle);",
"@SuppressWarnings(\"unused\")\r\n private void addReadStream(Reader asciiStream) {\n\t\taddReadSize(100);\r\n\t}",
"private void setInputStream(InputStream ins) throws IOException {\n\tMediaTracker mt = new MediaTracker(this);\n\tint bytes_read = 0;\n\tbyte data[] = new byte[1024];\n\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\n\twhile((bytes_read = ins.read(data)) >0)\n\t baos.write(data, 0, bytes_read);\n\tins.close();\n\t\n\t// convert the buffer into an image\n\timage = getToolkit().createImage(baos.toByteArray());\n\t\n\tmt.addImage(image, 0);\n\t\n\ttry {\n\t mt.waitForID(0);\n\t mt.waitForAll();\n\t if(mt.statusID(0, true ) != MediaTracker.COMPLETE){\n\t\tSystem.out.println(\"Error occured in image loading = \" +\n\t\t\t\t mt.getErrorsID(0));\n\t\t\n\t }\n\t \n\t}\n\tcatch(InterruptedException e) {\n\t throw new IOException(\"Error reading image data\");\n\t}\n\t\n\tcanvas.setImage(image);\n\tif(DEBUG)\n\t System.out.println(\"calling invalidate\");\n\t\n }",
"private void openStreams() {\n\t\ttry {\n\t\t\t// mostramos un log\n\t\t\tthis.getLogger().debug(\"Opening streams..\");\n\t\t\t// abrimos el stream de salida\n\t\t\tthis.setOutputStream(new ObjectOutputStream(this.getConnection().getOutputStream()));\n\t\t\t// abrimos el stream de entrada\n\t\t\tthis.setInputStream(new ObjectInputStream(this.getConnection().getInputStream()));\n\t\t} catch (final IOException e) {}\n\t}",
"private void openInputStream() throws IOException {\n InputStreamReader isReader = new InputStreamReader(this.sock.getInputStream());\n reader = new BufferedReader(isReader);\n }",
"@SuppressWarnings(\"unused\")\r\n private void addReadStream(InputStream asciiStream) {\n\t\taddReadSize(100);\r\n\t}",
"default void refreshStream() {}",
"private void initializeIOStreams() {\n try {\n inputStream = new ObjectInputStream(new BufferedInputStream(socket.getInputStream()));\n outputStream = new ObjectOutputStream(new BufferedOutputStream(socket.getOutputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void initResource(final ResourceReference ref) throws ResourceStreamNotFoundException {\n\t\tfinal boolean gzip = Application.get().getResourceSettings().getDisableGZipCompression();\n\t\ttry {\n\t\t\tApplication.get().getResourceSettings().setDisableGZipCompression(true);\n\t\t\tref.getResource().getResourceStream().getInputStream();\n\t\t} finally {\n\t\t\tApplication.get().getResourceSettings().setDisableGZipCompression(gzip);\n\t\t}\n\t}",
"Handle newHandle();",
"public void setInputStream(InputStream stream) {\n this.inStream = stream;\n }",
"public void addStreamManager(StreamSpec streamSpec);",
"public StorableInput(InputStream stream) {\n Reader r = new BufferedReader(new InputStreamReader(stream));\n fTokenizer = new StreamTokenizer(r);\n fMap = new Vector();\n }",
"public void syncOldStream() {\n ContextHolder.getInstance().setContext();\n JCuda.cudaStreamSynchronize(oldStream);\n/*\n if(!oldEventDestroyed) {\n JCuda.cudaStreamSynchronize(oldStream);\n JCuda.cudaStreamWaitEvent(oldStream,oldEvent,0);\n JCuda.cudaEventDestroy(oldEvent);\n oldEventDestroyed = true;\n\n }*/\n }",
"public MemoryCacheSeekableStream(InputStream src) {\n/* 75 */ this.src = src;\n/* */ }",
"@Override\n\tprotected void doOpen() throws Exception {\n\n\t\tAssert.state(!initialized, \"Stream is already initialized. Close before re-opening.\");\n\t\tAssert.isNull(rs, \"ResultSet still open! Close before re-opening.\");\n\n\t\tinitializeConnection();\n\t\topenCursor(con);\n\t\tinitialized = true;\n\n\t}",
"public StreamProcessorImpl(StreamSpec streamSpec) {\n this(streamSpec, new PreloadStreamDataReader());\n }",
"public ExecutableReader(ExecutableStream stream) throws Exception {\n\t\texStr = stream;\n\t\tread(stream);\n\t}",
"public ClientStream delegate() {\n return newStream;\n }",
"public ClientHandler(InputStream inputFromClient) {\n try {\n this.inputFromClient = new ObjectInputStream(inputFromClient);\n } catch (IOException e) {\n System.out.println(\"Could not create ObjectInputStream from ClientHandler\");\n }\n }",
"public PDStream(COSStream str)\n {\n stream = str;\n }",
"void setBinaryStream(int index, InputStream stream, int count)\n throws SQLException;",
"public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader, FrameIteratorFactory mediaReaderFactory) {\n this.streamSpec = streamSpec;\n metadataManager = new MetadataManager();\n streamListeners = new ArrayList<StreamListener>();\n this.dataReader = dataReader;\n this.frameIteratorFactory = mediaReaderFactory;\n }",
"public void onInitHandle() {\n }",
"public void init() {\n\t\ttry {\n\t\t\tthis.is = new ObjectInputStream(clientSocket.getInputStream());\n\t\t\tthis.os = new ObjectOutputStream(clientSocket.getOutputStream());\n\t\t\twhile (this.readCommand()) {}\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.out.println(\"XX. There was a problem with the Input/Output Communication:\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader) {\n this(streamSpec, dataReader, new FrameIteratorFactory());\n }",
"TclInputStream(InputStream inInput) {\n input = inInput;\n }",
"synchronized protected void rewind() {\n\t\ttry {\n\t\t\tais.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new CCSoundException(\"JSPCMAudioRecordingStream::rewind - Error closing the stream before reload\", e);\n\t\t}\n\t\tais = CCSoundIO.getAudioInputStream(meta.fileName());\n\t}",
"SFTPv3FileHandle(SFTPv3Client client, byte[] h)\r\n\t{\r\n\t\tthis.client = client;\r\n\t\tthis.fileHandle = h;\r\n\t}",
"@Override\n public InputStream openStream() throws IOException\n {\n return new FileInputStream(temp);\n }",
"@NonNull\n\t\tBuilder addStream(@NonNull InputStream stream);",
"private static BufferedReader newReader(InputStream stream) {\n return new BufferedReader(new InputStreamReader(stream));\n }",
"public void Load (Stream rkStream, Stream.Link pkLink)\r\n {\r\n super.Load(rkStream,pkLink);\r\n\r\n // native data\r\n Enabled = rkStream.ReadBoolean();\r\n int iFrontFace = rkStream.ReadInt();\r\n FrontFace = ms_pkFrontModeMap.get(iFrontFace);\r\n int iCullFace = rkStream.ReadInt();\r\n CullFace = ms_pkCullModeMap.get(iCullFace);\r\n }",
"public abstract InputStream openStream(String str);",
"InputStream openStream() throws IOException;",
"private void setOutputStream(final ObjectOutputStream stream) throws IOException {\n\t\t// almacenamos el stream de salida\n\t\tthis.outputStream = stream;\n\t\t// limpiamos el stream\n\t\tthis.getOutputStream().flush();\n\t}",
"private StreamFactory()\n {\n /*\n * nothing to do\n */\n }",
"public void Link (Stream rkStream, Stream.Link pkLink)\r\n {\r\n super.Link(rkStream,pkLink);\r\n }",
"public COSInputStream createInputStream() throws IOException {\n/* 236 */ return this.stream.createInputStream();\n/* */ }",
"public void rewind() throws IOException {\n if (closed) {\n throw new IOException(\"Stream is already closed\");\n }\n\n if (storeOutputStream != null) {\n storeOutputStream.close();\n storeOutputStream = null;\n }\n\n // Close the byte input stream or file input stream\n if (inputStream != originalInputStream) {\n inputStream.close();\n }\n\n bufferHighWaterMark = Math.max(bufferPointer, bufferHighWaterMark);\n bufferPointer = bufferHighWaterMark;\n\n if (bufferHighWaterMark > 0) {\n // If we have a buffer, then we'll read from it\n if (byteBuffer != null) {\n readingFromBuffer = true;\n inputStream = new UnsynchronizedByteArrayInputStream(byteBuffer, 0, bufferHighWaterMark);\n } else {\n // No buffer, which means we've switched to a file\n inputStream = new BufferedInputStream(new FileInputStream(storeFile));\n }\n } else {\n inputStream = originalInputStream;\n }\n }",
"public Bullet( DataInputStream stream, BulletManager parent ) throws IOException\n\t{\n\t\tsuper( stream );\n\n\t\tthis.parent = parent;\n\t}",
"public SpookyHashStream(long seed0, long seed1) {\n\t\tbuffer = new long[BUFFER_SIZE_LONGS];\n\t\tseedValue0 = seed0;\n\t\tseedValue1 = seed1;\n\t\thashState = new long[BLOCK_SIZE_LONGS];\n\t\tbytesDigested = 0;\n\t\tbyteCount = 0;\n\t}",
"public boolean Register (Stream rkStream)\r\n {\r\n return super.Register(rkStream);\r\n }",
"protected abstract void init(org.omg.CORBA.ORB orb,\n boolean littleEndian,\n BufferManagerWrite bufferManager,\n byte streamFormatVersion,\n boolean usePooledByteBuffers);",
"private void setupStreams() throws IOException {\n\t\toutput = new ObjectOutputStream(Connection.getOutputStream());\n\t\toutput.flush();\n\t\tinput = new ObjectInputStream(Connection.getInputStream()); \n\t\tshowMessage(\"\\n Streams have successfully connected.\");\n\t}",
"private void openStreams() {\n try {\n outputStream = new DataOutputStream(clientSocket.getOutputStream());\n inputStream = new DataInputStream(clientSocket.getInputStream());\n } catch (IOException e) {\n System.err.println(\"Could not open IO streams for the client.\");\n System.err.println(e.getMessage());\n }\n }",
"private void setupStreams() {\n\t\ttry {\n\t\t\tthis.out = new ObjectOutputStream(this.sock.getOutputStream());\n\t\t\tthis.out.flush();\n\t\t\tthis.in = new ObjectInputStream(this.sock.getInputStream());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public TarInputStream(Stream inputStream)\n\t{\n\t\tthis(inputStream, TarBuffer.DefaultBlockFactor);\n\t}",
"public ThemeIdentity(final InputStream stream, final Theme theme)\n throws IOException, InvalidIdentityFileException {\n super(stream, true);\n\n myTarget.setTheme();\n this.theme = theme;\n }",
"private void initStreams() throws IOException {\n OutputStream os = socket.getOutputStream();\n InputStream is = socket.getInputStream();\n dos = new DataOutputStream(new BufferedOutputStream(os));\n dis = new DataInputStream(new BufferedInputStream(is));\n }",
"public DLInputStream(DistributedLogManager dlm) throws IOException {\n this.dlm = dlm;\n reader = dlm.getInputStream(DLSN.InitialDLSN);\n }",
"private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {\n stream.defaultReadObject();\n answerMarks_.clear();\n }",
"public ResourceInputStream(InputStream in) {\n\t\t\tthis(in, System.currentTimeMillis());\n\t\t}",
"public void setCurrentHandle( byte[] currentHandle );",
"public MyInputStream(InputStream in) {\n super(in);\n this.in = in;\n }",
"private void ensureOpen() throws IOException {\n if (closed) {\n throw new IOException(\"Stream closed\");\n }\n }",
"public StreamHandler createStreamHandler (OutputStream outStream) {\r\n\t\t\t\t\t\r\n\t\tStreamHandler streamHandler = null;\r\n\r\n\t\ttry {\r\n\t\t\t\t \t\r\n\t\t\tstreamHandler = new StreamHandler(outStream, new SimpleFormatter());\r\n\t\t\t\t\t\t\r\n\t\t} catch (SecurityException e) {\r\n\t\t\t\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\t\t \r\n\t\t\treturn streamHandler;\r\n\t}",
"public final void setInputStream(final PrintStream newInputStream) {\n this.inputStream = newInputStream;\n }",
"public PDStream(COSStream str) {\n/* 78 */ this.stream = str;\n/* */ }",
"protected void open () {\n\t\tif (this.container==null)\n\t\t\ttry {\n\t\t\t\tmigrateOnDemand();\n\t\t\t\topenFiles();\n\t\t\t\tthis.blockSize = metaData.readInt();\n\t\t\t\tthis.size = metaData.readInt();\n\t\t\t}\n\t\t\tcatch (IOException ie) {\n\t\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t\t}\n\t}",
"@Override\n public void open(URI uri) throws IOException {\n openUri = uri;\n }",
"@Override\n\tpublic void read(InStream inStream) {\n\t}",
"void setAsciiStream(int index, InputStream stream, int count)\n throws SQLException;",
"public LineInputStream(InputStream is) {\n\t\tinputStream = is;\n\t}",
"public void init(BinaryDataReader dataReader) throws IOException\n\t{\n\t}",
"void setStreamBuffer(int size) {\r\n\t\tif(size>0)\r\n\t\t\tbuffer = new byte[size];\r\n\t\telse\r\n\t\t\tbuffer = new byte[this.size];\r\n\t}",
"DataBaseReadStream createNewStream(Cursor beginCursor) throws SQLException;",
"public COSInputStream createInputStream() throws IOException\n {\n return stream.createInputStream();\n }",
"public RereadableInputStream(InputStream inputStream, boolean closeOriginalStreamOnClose) {\n this(inputStream, DEFAULT_MAX_BYTES_IN_MEMORY, closeOriginalStreamOnClose);\n }",
"private void init() throws IOException {\n m_sock = new Socket(InetAddress.getByAddress(m_address), VIDEO_TO_PC_PORT);\n m_sock.setSoTimeout(READ_TIMEOUT_MS);\n m_sockistream = m_sock.getInputStream();\n m_daistream = new DataInputStream(m_sockistream);\n m_initialized = true;\n }",
"public StreamGobbler(InputStream from, PrintStream to) {\n\t\tinput = from;\n\t\toutput = to;\n\t}",
"protected void sequence_DEFINE_DefinitionStream_STREAM(ISerializationContext context, DefinitionStream semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"@Override\n\tprotected void setData(DataStream dataStream) throws IOException {\n\t\t\n\t}",
"private void init(String _id)\n\t{\n\t\tid = _id;\n\t\tsource = Constants.SERVER_ADDR;\n\t\tdestination = Constants.CLIENT_ADDR; \n\t\tnextHop = Constants.LOCALHOST_ADDR;\n\t\t\n\t\tacks = Collections.synchronizedMap(new HashMap<String, LinkedList<Long>>());\n\t\tlastRR = Collections.synchronizedMap(new HashMap<String, RTCPPPacket>());\n\t\toutQueue = new LinkedList<Long>();\n\t\t\n\t\tstreamStore = new Stream(id, source, destination);\n\t\trrTo = null;\n\t\ttimer = new Timer();\n\t}",
"public void init() throws IOException;",
"public void setInput(InputStream iInputStream) {\n // prepare to read the newly opened input stream\n m_iInputStream = iInputStream;\n }",
"void read(final DataInputStream in) throws IOException {\n // This code is tested over in TestHFileReaderV1 where we read an old hfile w/ this new code.\n int pblen = ProtobufUtil.lengthOfPBMagic();\n byte[] pbuf = new byte[pblen];\n if (in.markSupported()) in.mark(pblen);\n int read = in.read(pbuf);\n if (read != pblen) throw new IOException(\"read=\" + read + \", wanted=\" + pblen);\n if (ProtobufUtil.isPBMagicPrefix(pbuf)) {\n parsePB(HFileProtos.FileInfoProto.parseDelimitedFrom(in));\n } else {\n if (in.markSupported()) {\n in.reset();\n parseWritable(in);\n } else {\n // We cannot use BufferedInputStream, it consumes more than we read from the underlying IS\n ByteArrayInputStream bais = new ByteArrayInputStream(pbuf);\n SequenceInputStream sis = new SequenceInputStream(bais, in); // Concatenate input streams\n // TODO: Am I leaking anything here wrapping the passed in stream? We are not calling close on the wrapped\n // streams but they should be let go after we leave this context? I see that we keep a reference to the\n // passed in inputstream but since we no longer have a reference to this after we leave, we should be ok.\n parseWritable(new DataInputStream(sis));\n }\n }\n }",
"public OutputStream setStdInStream(int initialSize) throws IOException {\n\t\tif(stdInLatch.getCount()<1) {\n\t\t\treturn pipeOut;\n\t\t}\n\t\tpipeOut = new PipedOutputStream();\n\t\tpipeIn = new PipedInputStream(pipeOut, initialSize);\n\t\tstdInLatch.countDown();\n\t\tlog.debug(Banner.banner(\"Dropped Latch for STDIN Stream\"));\n\t\treturn pipeOut;\n\t}",
"public final Http2FrameStream newStream() {\n/* 69 */ Http2FrameCodec codec = this.frameCodec;\n/* 70 */ if (codec == null) {\n/* 71 */ throw new IllegalStateException(StringUtil.simpleClassName(Http2FrameCodec.class) + \" not found. Has the handler been added to a pipeline?\");\n/* */ }\n/* */ \n/* 74 */ return codec.newStream();\n/* */ }",
"protected CombinedStreamMonitor createStreamMonitor(InputStream in,\n\t\t\tInputStream err) {\n\t\tCombinedStreamMonitor monitor = new CombinedStreamMonitor(in, err);\n\t\tmonitor.setDrainLimit(this.getTestProperties()\n\t\t\t\t.getMaxDrainOutputInBytes());\n\t\treturn monitor;\n\t}",
"public StreamData(String name)\n {\n _data = new LinkedList<byte[]>();\n this.Name = name;\n this.Length = 0;\n }",
"private void readObject(java.io.ObjectInputStream stream)\n throws IOException, ClassNotFoundException {\n trackers = new ArrayList<>();\n }",
"public RealTimeDataStream(RealTimeDataSource source, PushBufferStream stream) {\n this.stream = stream;\n this.source = source;\n this.stream.setTransferHandler(this);\n }",
"void setSymbolStream(ISymbolStreamComp aSymbolStream);",
"public JsonObject readStream(HashMap<String,String> meta, String name, InputStream stream, long length, StringBuilder errors) {\n try{\n javax.json.JsonReader rdr = Json.createReader(stream);\n return rdr.readObject();}\n catch(Exception ex) {errors.append(ex.toString());}\n return null;}",
"public CustomObjectInputStream(InputStream in, ClassLoader cl) throws IOException {\n\t\tsuper(in);\n\t\tthis.cl = cl;\n\t}",
"public StreamControl(StreamControl source) {\n if (source.StreamId != null) {\n this.StreamId = new String(source.StreamId);\n }\n if (source.DisableRecord != null) {\n this.DisableRecord = new Boolean(source.DisableRecord);\n }\n if (source.DisableAudio != null) {\n this.DisableAudio = new Boolean(source.DisableAudio);\n }\n if (source.PullSmallVideo != null) {\n this.PullSmallVideo = new Boolean(source.PullSmallVideo);\n }\n }"
] | [
"0.67679423",
"0.6706605",
"0.6320287",
"0.62135834",
"0.6028131",
"0.59854245",
"0.59626085",
"0.5865421",
"0.5828471",
"0.570669",
"0.56508625",
"0.55843806",
"0.54990005",
"0.54802835",
"0.54783213",
"0.54708505",
"0.5442809",
"0.5406834",
"0.53906363",
"0.5385019",
"0.53506124",
"0.5300934",
"0.5273463",
"0.5247761",
"0.52110505",
"0.5179767",
"0.51737505",
"0.5170698",
"0.51697737",
"0.51655495",
"0.5164437",
"0.5161445",
"0.5129619",
"0.51271844",
"0.5116272",
"0.5115862",
"0.5115568",
"0.51063174",
"0.5106215",
"0.5105456",
"0.51013774",
"0.5098531",
"0.5097901",
"0.50918454",
"0.5077323",
"0.5076858",
"0.5068932",
"0.5063423",
"0.506097",
"0.5058527",
"0.50490195",
"0.50473124",
"0.50459427",
"0.50309145",
"0.50294054",
"0.50192577",
"0.5016969",
"0.50154257",
"0.50140435",
"0.5010178",
"0.49994126",
"0.49972102",
"0.49857524",
"0.49851117",
"0.49817201",
"0.4977339",
"0.49758086",
"0.49754047",
"0.4970528",
"0.49679786",
"0.49663773",
"0.49598792",
"0.4954843",
"0.49462825",
"0.49406528",
"0.49332252",
"0.49071017",
"0.49049386",
"0.49043587",
"0.4900407",
"0.48928624",
"0.48859593",
"0.48856258",
"0.48752946",
"0.48735905",
"0.4873413",
"0.48725674",
"0.48688808",
"0.48646748",
"0.48567814",
"0.48499715",
"0.48488316",
"0.48469925",
"0.4845051",
"0.48416445",
"0.48383826",
"0.48310068",
"0.4829886",
"0.48164308",
"0.48155412"
] | 0.53124183 | 21 |
Destroys the context and associated resources | @Deprecated
public void destroy(CublasPointer resultPointer,boolean freeIfNotEqual) {
/*
if(handle != null && !handleReturned.get()) {
try {
if(handleFromPool)
ContextHolder.getInstance().getHandlePool().returnObject(handle);
else {
JCublas2.cublasDestroy(handle);
}
handleReturned.set(true);
} catch (Exception e) {
e.printStackTrace();
}
}
if(stream != null && !streamReturned.get()) {
try {
if(streamFromPool)
ContextHolder.getInstance().getStreamPool().returnObject(stream);
else {
JCudaDriver.cuStreamDestroy(stream);
}
streamReturned.set(true);
} catch (Exception e) {
e.printStackTrace();
}
}
if(oldStream != null && !oldStreamReturned.get()) {
try {
if(oldStreamFromPool)
ContextHolder.getInstance().getOldStreamPool().returnObject(oldStream);
else {
JCuda.cudaStreamDestroy(oldStream);
}
oldStreamReturned.set(true);
} catch (Exception e) {
e.printStackTrace();
}
}
if(resultPointer != null && freeIfNotEqual && freeIfNotEqual) {
resultPointer.copyToHost();
try {
resultPointer.close();
} catch (Exception e) {
e.printStackTrace();
}
}
if(!oldEventDestroyed) {
oldEventDestroyed = true;
}
if(!eventDestroyed) {
eventDestroyed = true;
}
*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void destroy() throws ContextDestroyException;",
"public void destroy() throws Exception {\n\t\tapplicationContext = null;\r\n\t}",
"public void destroy() {\n getBuildContextHolder().destroy();\n rememberedSet.clear();\n }",
"public void destroy() {\n \t\n }",
"@Override\r\n\tpublic void destroy() {\r\n\t\tsuper.destroy();\r\n\t\ttry {\r\n\t\t\tspringContext.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(e);\r\n\t\t}\r\n\t}",
"@Override\n public void destroy() {\n // destroy any persistent resources\n // such as thread pools or persistent connections\n }",
"public void destroy() {\r\n\t\tsuper.destroy();\r\n\t\tBirtEngine.destroyBirtEngine();\r\n\t}",
"public void destroy() {\n\t\t\r\n\t}",
"public void destroy() {\n\t\t\r\n\t}",
"public void destroy() {\n\t\t\r\n\t}",
"public void destroy() {\n\t\t\r\n\t}",
"public void destroy()\r\n\t{\n\t\t\r\n\t}",
"public static void clean() {\n kryoThreadLocalContext.remove();\n }",
"@Override\n public void destroy() {\n // clean up any resources created by initialize\n }",
"void destroy(HandlerContext context);",
"public void destroy()\r\n\t{\r\n\t\tlog.fine(\"destroy\");\r\n\t}",
"public void destroy() {\n\t\tsuper.destroy(); \n\t\t// Put your code here\n\t}",
"public void destroy() {\n closeSqlDbConnections();\n\n\n }",
"void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n this.consumerContext = null;\n }\n }",
"@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\tif(guard!=null)\r\n\t\t\tguard.dispose();\r\n\t\tif(validator!=null)\r\n\t\t\tvalidator.dispose();\r\n\t\tif(handler!=null)\r\n\t\t\thandler.dispose();\r\n\t\tif(errHandler!=null)\r\n\t\t\terrHandler.dispose();\r\n\t}",
"public void destroy()\r\n\t{\r\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"public void destroy() {\r\n }",
"public void destroy() {\n destroyIn(0);\n }",
"public void destroy() {\r\n\r\n\t}",
"public void destroy() {}",
"public void destroy() {}",
"public void destroy()\r\n {\r\n }",
"@Override\n public void destroy() {\n }",
"public static void destroy() {\n\t}",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\r\n final String METHOD_NAME = \"destroy\";\r\n LOGGER.info(\"Entering \" + METHOD_NAME);\r\n\r\n this.filterConfig = null;\r\n\r\n LOGGER.info(\"Exiting \" + METHOD_NAME);\r\n }",
"public void destroy() {\n this.bfc.cleanUp();\n }",
"@Override\r\n public void destroy() {\n \tdaoMaterial=null;\r\n \tdaoUsuario=null;\r\n \tsuper.destroy();\r\n }",
"public void destroy()\n\t{\n\t\tM_log.info(\"destroy()\");\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t\texcludeItem = null;\r\n\t\tloginPage=null;\r\n\t\tloaginAction=null;\r\n\t\tauthority = null;\r\n\t}",
"public void destroy()\n\t{\n\t}",
"@Override\r\n\tpublic void destroy()\r\n\t{\n\t\t\r\n\t}",
"public void destroy() {\n\n\t}",
"public void destroy() {\n\n\t}",
"public void destroy() {\n\n\t}",
"public void destroy() {\n\n\t}",
"public void destroy() {\n\n\t}",
"public void destroy() {\n\n\t}",
"public void destroy()\r\n {\n }",
"public final void destroy()\n {\n processDestroy();\n super.destroy();\n }",
"@Override\n public void destroy() {\n super.destroy();\n logger.log(Level.INFO, \"destory() Invoked\");\n }",
"public void destroy() {\n destroyFingerprintSDK();\n //destroyDB();\n }",
"protected void cleanup(Context context\n\t ) throws IOException, InterruptedException {\n\t // NOTHING\n\t }",
"protected void destroy() {\n JmsUtils.closeSession(session);\n JmsUtils.closeConnection(connection);\n session = null;\n connection = null;\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t//destroy all running hardware/db etc.\n\t}",
"public void destroy() {\n }",
"public void destroy() {\n\t\t\n\t}",
"public void destroy() {\n\t\t\n\t}",
"public void destroy() {\n\t\t\n\t}",
"public void destroy() {\n\t\t\n\t}",
"public void destroy() {\n\t\t\n\t}",
"public void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tlogService=null;\n\t\tnoInterceptUrlRegxList=null;\n\n\t}",
"public void destroy() {\n\r\n\t}",
"public void destroy() {\n\r\n\t}",
"public void destroy() {\n\r\n\t}",
"public void destroy() {\n\r\n\t}",
"public void destroy() {\n\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}"
] | [
"0.7935267",
"0.7661751",
"0.74264383",
"0.72848827",
"0.72614634",
"0.7251197",
"0.703458",
"0.6992273",
"0.6992273",
"0.6992273",
"0.6992273",
"0.6979738",
"0.6968819",
"0.6955018",
"0.6954933",
"0.6952865",
"0.69311666",
"0.69293267",
"0.6922749",
"0.69023246",
"0.69023246",
"0.69023246",
"0.6890076",
"0.6875353",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68623203",
"0.68506205",
"0.6830433",
"0.6818628",
"0.6818628",
"0.68132067",
"0.6798824",
"0.679795",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.67815375",
"0.6778013",
"0.67726034",
"0.676124",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.673957",
"0.67335546",
"0.6732034",
"0.6731987",
"0.6731987",
"0.6731987",
"0.6731987",
"0.6731987",
"0.6731987",
"0.67289513",
"0.67175514",
"0.6706275",
"0.67052466",
"0.6702754",
"0.66946435",
"0.6692322",
"0.669084",
"0.66755205",
"0.66755205",
"0.66755205",
"0.66755205",
"0.66755205",
"0.66755205",
"0.6669035",
"0.6667014",
"0.6667014",
"0.6667014",
"0.6667014",
"0.6667014",
"0.66654855"
] | 0.0 | -1 |
Destroys the context and associated resources | @Deprecated
public void destroy() {
/*
ContextHolder.getInstance().setContext();
if(stream != null && !streamReturned.get()) {
try {
if(streamFromPool)
ContextHolder.getInstance().getStreamPool().returnObject(stream);
else {
JCudaDriver.cuStreamDestroy(stream);
}
streamReturned.set(true);
} catch (Exception e) {
e.printStackTrace();
}
}
if(oldStream != null && !oldStreamReturned.get()) {
try {
if(oldStreamFromPool)
ContextHolder.getInstance().getOldStreamPool().returnObject(oldStream);
else {
JCuda.cudaStreamDestroy(oldStream);
}
oldStreamReturned.set(true);
} catch (Exception e) {
e.printStackTrace();
}
}
if(handle != null && !handleReturned.get()) {
try {
if(handleFromPool)
ContextHolder.getInstance().getHandlePool().returnObject(handle);
else {
JCublas2.cublasDestroy(handle);
}
handleReturned.set(true);
} catch (Exception e) {
e.printStackTrace();
}
}
if(resultPointer != null) {
if(stream != null)
syncStream();
if(oldStream != null)
syncOldStream();
resultPointer.copyToHost();
try {
resultPointer.close();
} catch (Exception e) {
e.printStackTrace();
}
}
*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void destroy() throws ContextDestroyException;",
"public void destroy() throws Exception {\n\t\tapplicationContext = null;\r\n\t}",
"public void destroy() {\n getBuildContextHolder().destroy();\n rememberedSet.clear();\n }",
"public void destroy() {\n \t\n }",
"@Override\r\n\tpublic void destroy() {\r\n\t\tsuper.destroy();\r\n\t\ttry {\r\n\t\t\tspringContext.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(e);\r\n\t\t}\r\n\t}",
"@Override\n public void destroy() {\n // destroy any persistent resources\n // such as thread pools or persistent connections\n }",
"public void destroy() {\r\n\t\tsuper.destroy();\r\n\t\tBirtEngine.destroyBirtEngine();\r\n\t}",
"public void destroy() {\n\t\t\r\n\t}",
"public void destroy() {\n\t\t\r\n\t}",
"public void destroy() {\n\t\t\r\n\t}",
"public void destroy() {\n\t\t\r\n\t}",
"public void destroy()\r\n\t{\n\t\t\r\n\t}",
"public static void clean() {\n kryoThreadLocalContext.remove();\n }",
"@Override\n public void destroy() {\n // clean up any resources created by initialize\n }",
"void destroy(HandlerContext context);",
"public void destroy()\r\n\t{\r\n\t\tlog.fine(\"destroy\");\r\n\t}",
"public void destroy() {\n\t\tsuper.destroy(); \n\t\t// Put your code here\n\t}",
"public void destroy() {\n closeSqlDbConnections();\n\n\n }",
"void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n this.consumerContext = null;\n }\n }",
"@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\tsuper.destroy();\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\tif(guard!=null)\r\n\t\t\tguard.dispose();\r\n\t\tif(validator!=null)\r\n\t\t\tvalidator.dispose();\r\n\t\tif(handler!=null)\r\n\t\t\thandler.dispose();\r\n\t\tif(errHandler!=null)\r\n\t\t\terrHandler.dispose();\r\n\t}",
"public void destroy()\r\n\t{\r\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t}",
"public void destroy() {\r\n }",
"public void destroy() {\n destroyIn(0);\n }",
"public void destroy() {\r\n\r\n\t}",
"public void destroy() {}",
"public void destroy() {}",
"public void destroy()\r\n {\r\n }",
"@Override\n public void destroy() {\n }",
"public static void destroy() {\n\t}",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\n }",
"public void destroy() {\r\n final String METHOD_NAME = \"destroy\";\r\n LOGGER.info(\"Entering \" + METHOD_NAME);\r\n\r\n this.filterConfig = null;\r\n\r\n LOGGER.info(\"Exiting \" + METHOD_NAME);\r\n }",
"public void destroy() {\n this.bfc.cleanUp();\n }",
"@Override\r\n public void destroy() {\n \tdaoMaterial=null;\r\n \tdaoUsuario=null;\r\n \tsuper.destroy();\r\n }",
"public void destroy()\n\t{\n\t\tM_log.info(\"destroy()\");\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t}",
"public void destroy() {\n\t\texcludeItem = null;\r\n\t\tloginPage=null;\r\n\t\tloaginAction=null;\r\n\t\tauthority = null;\r\n\t}",
"public void destroy()\n\t{\n\t}",
"@Override\r\n\tpublic void destroy()\r\n\t{\n\t\t\r\n\t}",
"public void destroy() {\n\n\t}",
"public void destroy() {\n\n\t}",
"public void destroy() {\n\n\t}",
"public void destroy() {\n\n\t}",
"public void destroy() {\n\n\t}",
"public void destroy() {\n\n\t}",
"public void destroy()\r\n {\n }",
"public final void destroy()\n {\n processDestroy();\n super.destroy();\n }",
"@Override\n public void destroy() {\n super.destroy();\n logger.log(Level.INFO, \"destory() Invoked\");\n }",
"public void destroy() {\n destroyFingerprintSDK();\n //destroyDB();\n }",
"protected void cleanup(Context context\n\t ) throws IOException, InterruptedException {\n\t // NOTHING\n\t }",
"protected void destroy() {\n JmsUtils.closeSession(session);\n JmsUtils.closeConnection(connection);\n session = null;\n connection = null;\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t//destroy all running hardware/db etc.\n\t}",
"public void destroy() {\n }",
"public void destroy() {\n\t\t\n\t}",
"public void destroy() {\n\t\t\n\t}",
"public void destroy() {\n\t\t\n\t}",
"public void destroy() {\n\t\t\n\t}",
"public void destroy() {\n\t\t\n\t}",
"public void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\tlogService=null;\n\t\tnoInterceptUrlRegxList=null;\n\n\t}",
"public void destroy() {\n\r\n\t}",
"public void destroy() {\n\r\n\t}",
"public void destroy() {\n\r\n\t}",
"public void destroy() {\n\r\n\t}",
"public void destroy() {\n\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}"
] | [
"0.7935267",
"0.7661751",
"0.74264383",
"0.72848827",
"0.72614634",
"0.7251197",
"0.703458",
"0.6992273",
"0.6992273",
"0.6992273",
"0.6992273",
"0.6979738",
"0.6968819",
"0.6955018",
"0.6954933",
"0.6952865",
"0.69311666",
"0.69293267",
"0.6922749",
"0.69023246",
"0.69023246",
"0.69023246",
"0.6890076",
"0.6875353",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68650436",
"0.68623203",
"0.68506205",
"0.6830433",
"0.6818628",
"0.6818628",
"0.68132067",
"0.6798824",
"0.679795",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.6787152",
"0.67815375",
"0.6778013",
"0.67726034",
"0.676124",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.6752176",
"0.673957",
"0.67335546",
"0.6732034",
"0.6731987",
"0.6731987",
"0.6731987",
"0.6731987",
"0.6731987",
"0.6731987",
"0.67289513",
"0.67175514",
"0.6706275",
"0.67052466",
"0.6702754",
"0.66946435",
"0.6692322",
"0.669084",
"0.66755205",
"0.66755205",
"0.66755205",
"0.66755205",
"0.66755205",
"0.66755205",
"0.6669035",
"0.6667014",
"0.6667014",
"0.6667014",
"0.6667014",
"0.6667014",
"0.66654855"
] | 0.0 | -1 |
Finishes a blas operation and destroys this context | public void finishBlasOperation() {
//destroy();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void endCompute();",
"public synchronized void release() {\r\n if (active) {\r\n if (clmNullDummy != null)\r\n clReleaseMemObject(clmNullDummy);\r\n if (kernelMatrixMultiplication != null)\r\n clReleaseKernel(kernelMatrixMultiplication);\r\n if (kernelVectorTotal != null)\r\n clReleaseKernel(kernelVectorTotal);\r\n if (kernelVectorSquaredTotal != null)\r\n clReleaseKernel(kernelVectorSquaredTotal);\r\n if (kernelForwardPropagation != null)\r\n clReleaseKernel(kernelForwardPropagation);\r\n if (krenelCostFunctionPartLog != null)\r\n clReleaseKernel(krenelCostFunctionPartLog);\r\n if (kernelCalculateGradientTheta != null)\r\n clReleaseKernel(kernelCalculateGradientTheta);\r\n if (kernelCalculateGradientDelta != null)\r\n clReleaseKernel(kernelCalculateGradientDelta);\r\n if (program != null)\r\n clReleaseProgram(program);\r\n if (commandQueue != null)\r\n clReleaseCommandQueue(commandQueue);\r\n if (context != null)\r\n clReleaseContext(context);\r\n active = false;\r\n }\r\n }",
"private void exit() {\n if (otherCost != null) {\n otherCost = null;\n }\n this.dispose();\n }",
"public void finalize(){\r\n srcImage = null;\r\n sigmas = null;\r\n xDataRound = null;\r\n yDataRound = null;\r\n zDataRound = null;\r\n super.finalize();\r\n }",
"private void closedLoopAlgo() {\n\t\tsimonsSimpleAlgo();\n\t}",
"protected void endBatch() {\n \n }",
"public void destroy() {\n this.bfc.cleanUp();\n }",
"protected void end()\t{\n\t\tglUseProgram(0);\n\t}",
"public void finishGameSession() {\n\t\tthis.agentNeural.storeWeights();\n\t}",
"@Override\n public void dispose() \n {\n \tif (b2world != null) b2world.dispose();\n }",
"public abstract void finalizeIt();",
"public void finalize() {\r\n if ( componentHistogram != null ) {\r\n componentHistogram.dispose();\r\n componentHistogram = null;\r\n }\r\n\r\n if ( componentLUT != null ) {\r\n componentLUT.dispose( false );\r\n componentLUT = null;\r\n }\r\n\r\n if ( lutRecorder != null ) {\r\n lutRecorder.setVisible( false );\r\n lutRecorder.dispose();\r\n lutRecorder = null;\r\n }\r\n }",
"protected void finalize(){\n \ttry {\n\t\t\tdatabase.doDisconnect();\n\t\t} catch (SQLException e) {\n\t\t}\n }",
"@Override\n\tprotected void finalize() throws Throwable {\n\t\tctx.close();\n\t\tctx=null;\n\t\tsuper.finalize();\n\t}",
"public void finalize() {\n AppMethodBeat.i(66593);\n if (this.mJitterBuffer != 0) {\n nativeDestoryJitterBuffer(this.mJitterBuffer);\n this.mJitterBuffer = 0;\n }\n AppMethodBeat.o(66593);\n }",
"protected void finalize() { \n \tstopSelf(); \n }",
"public void finishSimulation() {\n finishSimulation(0.0);\n }",
"public synchronized void close() {\n if (arrayp != null && arraypp != null) {\n tiledb.tiledb_array_close(ctx.getCtxp(), arrayp);\n tiledb.tiledb_array_free(arraypp);\n arrayp = null;\n arraypp = null;\n if (schema != null) {\n schema.close();\n }\n }\n }",
"public void flush() {\n trans.set(kernel.get().asArray());\n actions.forEach(Runnable::run);\n actions.clear();\n kernel.free();\n kernel = Matrix4F.ident();\n }",
"public void destroy()\n\t{\n\t\tif (m_bfc != null)\n\t\t{\n\t\t\tm_bfc.cleanUp();\n\t\t\tm_bfc = null;\n\t\t}\n\t}",
"@Override public void dispose () \n\t{ \n\t\tbatch.dispose();\n\t}",
"void finishCalibration();",
"@Override\n\t\tprotected void finalize() throws Throwable {\n\t\t\tif (pool != null) {\n\t\t\t\tdone();\n\t\t\t\tpool = null;\n\t\t\t}\n\t\t}",
"public void cleanup() {\n sendBuffer(baos);\n shutdown();\n }",
"protected void end() {\n \t//claw.close();\n }",
"@Override\n\tpublic void dispose() {\n\t\tbatch.dispose();\n\t}",
"public void finalize() {\r\n srcImage = null;\r\n destImage = null;\r\n buffer = null;\r\n validBuffer = null;\r\n idealBuffer = null;\r\n objectBuffer = null;\r\n super.finalize();\r\n }",
"@Override\n\tpublic void finalize() {\n\t\tcontext.unbindService(CONNECTION);\n\t}",
"public void finalize()\r\n\t{\n\t}",
"public void finalize() {\r\n byteBuffer2 = null;\r\n byteBuffer4 = null;\r\n byteBuffer8 = null;\r\n progressBar = null;\r\n tagBuffer = null;\r\n\r\n if (raFile != null) {\r\n\r\n try {\r\n raFile.close();\r\n } catch (final IOException ioe) {\r\n // Do nothing\r\n }\r\n }\r\n\r\n raFile = null;\r\n }",
"public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n mask = null;\r\n\r\n if (keepProgressBar == false) {\r\n disposeProgressBar();\r\n }\r\n\r\n try {\r\n super.finalize();\r\n } catch (Throwable er) { }\r\n }",
"public void finish(){\n numDCtoVolatility();\n }",
"public void close() {\n this.octaveExec.close();\n }",
"protected void finalize() {\n\t\tdestroyImages();\n\t}",
"public void finalize();",
"public void finalize() throws Throwable {\n try {\n if (!pool.isTerminated()) {\n // Try to stop all workers within 10 seconds\n stop(10);\n }\n } catch (Exception e) {\n log.error(\"An error occurred when stopping the pool while finalizing\");\n }\n \n super.finalize();\n }",
"public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\");\r\n matlabEng.engClose(id);\r\n matlabEng=null;\r\n id=-1; \r\n }\r\n }",
"public final void releaseFromMatLab()\r\n\t{\r\n\t\tinMatLab = false;\r\n\t}",
"public void dispose()\n\t{\n\t\tthis.accessor.dispose();\n\t\tthis.env.close();\n\t}",
"public void finalize() {\n\n if (mBtManager != null) {\n //mBtManager.stop();\n mBtManager.setHandler(null);\n }\n mBtManager = null;\n mContext = null;\n mConnectionInfo = null;\n }",
"public void finalize(World world) { }",
"public void finalize(){\r\n\t\tthis.userInputs.close();\r\n\t}",
"@Override\n\tpublic void glRelease() {\n\t\tGLES20.glDeleteTextures(1, new int[] { mCurveHandle }, 0);\n\t\tmCurveHandle = -1;\n\t}",
"public void dispose() {\n cuMemFree(deviceMPtr);\n }",
"native long nativeBuildWithFinish(long memoryPool, byte[] schemaBuf, byte[] exprListBuf, byte[] finishExprListBuf)\n throws RuntimeException, IOException;",
"protected void finishExecution() {\r\n\r\n\t}",
"public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n sliceBuffer = null;\r\n super.finalize();\r\n }",
"public void finalize() {\r\n\t\tdestImage = null;\r\n\t\tsrcImage = null;\r\n\t\tsuper.finalize();\r\n\t}",
"@Override\n public void exit() {\n model.exit();\n }",
"@Override\n\t@GLContextRequired\n\tpublic void close() {\n\t\tif(Objects.nonNull(va)){\n\t\t\tva.close();\n\t\t\tva = null;\n\t\t}\n\t}",
"private void exit() {\n dispose();\r\n }",
"public void exitRoutine() {\n\t\tboardController.saveSampleData();\n\t}",
"public void finish() {\n System.out.println(name + \": Call explicit destroy()\");\n }",
"public void release()\n \t{\n \t\tif( iterator == null )\n \t\t{\n \t\t\tindex = new SpatialIndex();\n \t\t\tedgeAllocator = 0;\n \t\t\tmergeOps = null;\n \t\t\t\n \t\t\tSystem.gc();\n \t\t}\n \t}",
"public void end(){\n\t\tfor(ParticleBatch<?> batch : batches)\n\t\t\tbatch.end();\n\t}",
"public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n super.finalize();\r\n }",
"public void dispose() {\r\n _isdisposed=true;\r\n try {\r\n _tables.dispose(); _tables=null;\r\n finalize();\r\n DataSet _current=this;\r\n _current=null; System.gc();\r\n }\r\n catch (Throwable ex) {\r\n throw new RuntimeException(ex.getMessage());\r\n }\r\n }",
"void _smem_close_vars() throws SQLException\n {\n smem_variable_set(smem_variable_key.var_max_cycle, this.smem_max_cycle);\n \n // store num nodes/edges for future use of the smem database\n smem_variable_set(smem_variable_key.var_num_nodes, stats.nodes.get());\n smem_variable_set(smem_variable_key.var_num_edges, stats.edges.get());\n }",
"public void shutdown() {\n\t\tInput.cleanUp();\n\t\tVAO.cleanUp();\n\t\tTexture2D.cleanUp();\n\t\tResourceLoader.cleanUp();\n\t}",
"@Override\r\n protected void terminate() {\n forceEntities.release();\r\n forceEntities = null;\r\n\r\n velocityEntities.release();\r\n velocityEntities = null;\r\n\r\n gravityEntities.release();\r\n gravityEntities = null;\r\n }",
"public void dispose(){\n batch.dispose();\n boatTexture.dispose();\n }",
"public void cleanUp(){\n glDeleteTextures(ID);\n }",
"public void finalizeMovement() {\n for (Iterator<TransformLayer> itr = tLayerPool.values().iterator(); itr.hasNext(); ) {\n itr.next().finalizeMovement();\n }\n }",
"@AfterClass\n\tpublic static void teardown() {\n\t\tmatrixAdditionCalculator = null;\n\n\t}",
"public void finalize()\n throws Throwable\n {\n pythonDecRef();\n }",
"public void close() {\n finalize0();\n }",
"@Override\r\n\tpublic void dispose() {\n\t\tmodelBatch.dispose();\r\n\t\tinstances.clear();\r\n\t\tassets.dispose();\r\n\t}",
"@Override\r\n\tprotected void finalize() throws Exception\r\n\t{\r\n\t\tif(!this.cleanUpDone )\r\n\t\t\tthis.terminate();\r\n\t}",
"void close() {\n this.lms.close();\n }",
"protected void end() {\n\t\tRobot.cubeCollector.setCubeCollector(ControlMode.PercentOutput, 0);\n\n\t}",
"void shutdownMassiveGraph();",
"public void finalize() {\r\n\r\n mask = null;\r\n newMask = null;\r\n newShortMask = null;\r\n System.gc();\r\n }",
"protected void finalize() {\n\t\tclose();\n\t}",
"public void free(){\n\t\t\t\tif(this.handle != GlBuffer.UNBIND_HANDLE){\n\t\t\t\t\tfinal int[] handles = new int[]{this.handle};\n\t\t\t\t\tthis.handle = GlBuffer.UNBIND_HANDLE;\n\t\t\t\t\tGLES20.glDeleteBuffers(1, handles, 0);\n\t\t\t\t}\n\t\t\t}",
"void innerFinish() {\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\tclose();\r\n\t\t\t\t\t}",
"public final void b() {\n this.o = true;\n this.f.clear();\n if (this.m != null) {\n this.m.destroy();\n }\n }",
"protected void finalize() {\n close();\n }",
"@Override\n public void finish() throws SQLiteException {\n SQLiteNative.sqlite3_finalize(handle);\n }",
"public void close() {\n\t\tif (this.luaState != 0) {\n\t\t\tLuaStateManager.removeState(stateId);\n\t\t\t_close(luaState);\n\t\t\tthis.luaState = 0;\n\t\t}\n\t}",
"abstract public void deleteAfterBetaReduction();",
"@Override\n public void dispose() {\n batch.dispose();\n playerTexture.dispose();\n world.dispose();\n b2dr.dispose();\n }",
"@Override\n public void finish() {\n ((MotorController)master).stopMotor();\n }",
"@Nullable\n public abstract Object finalizeComputation(@Nullable Object object);",
"public void finalizeJob() {\n // override to implement\n }",
"public void endBatch() {\n\trunTimer.stop();\n\n\tif (metrics) {\n\t runTimer.show(getRunTitle() + \" run\");\n\t threadTimer.show(getRunTitle() + \" thread\");\n\t getAudioPlayer().showMetrics();\n\t long totalMemory = Runtime.getRuntime().totalMemory();\n\t System.out.println\n\t\t(\"Memory Use : \"\n\t\t + (totalMemory - Runtime.getRuntime().freeMemory()) / 1024\n\t\t + \"k of \" + totalMemory / 1024 + \"k\");\n\t}\n }",
"@Override\n\tpublic void finalize() throws java.lang.Throwable {\n super.finalize();\n\n nodeCount = 0;\n patternCount = 0;\n matrixCount = 0;\n\n partials = null;\n// storedPartials = null;\n \n currentPartialsIndices = null;\n storedPartialsIndices = null;\n// states = null;\n matrices = null;\n currentMatricesIndices = null;\n storedMatricesIndices = null;\n\n scalingFactors = null;\n }",
"public void end() {\r\n\t\tif (DEBUG) {\r\n\t\t\tSystem.out.println(\"end\");\r\n\t\t}\r\n\t\tflush();\r\n\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, 0);\r\n\t\t\r\n\t\tGL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);\r\n\t\tGL11.glDisableClientState(GL11.GL_COLOR_ARRAY);\r\n\r\n\t\tGL13.glClientActiveTexture(GL13.GL_TEXTURE0);\r\n\t\tGL11.glDisableClientState(GL11.GL_TEXTURE_COORD_ARRAY);\r\n\t\tGL13.glClientActiveTexture(GL13.GL_TEXTURE1);\r\n\t\tGL11.glDisableClientState(GL11.GL_TEXTURE_COORD_ARRAY);\r\n\t\tGLState.clientState = 0;\r\n//\t\tUtil.checkGLError();\r\n\t}",
"public void dispose() {\n for (int i = 0; i < buffers.length; i++)\n buffers[i].dispose();\n if (ownsShader && shader != null)\n shader.dispose();\n }",
"public void destruct() {\n\t\tif (super.getUsia() == 0) {\n\t\t\t// destructor Singa\n\t\t\tSystem.gc();\n\t\t\ttry {\n\n\t\t\t\tfinalize();\n\t\t\t} catch (Throwable throwable) {\n\t\t\t\tthrowable.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void end() {\r\n GL11.glViewport(0, 0, GLContext.getCurrent().getWidth(), GLContext.getCurrent().getHeight());\r\n glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);\r\n }",
"public void finalize() throws Throwable {\n close();\n }",
"public void destroy() {\n this.octaveExec.destroy();\n }",
"public void end(FunctionContext context) throws Exception{\n logger.debug(\"In Default PerformanceFunction end\");\n }",
"public void cerrarPool() {\n if (pool != null) {\n pool.shutdown();\n }\n }",
"public abstract void finalize();",
"void closeInternal() throws SQLException {\n\n if (result != null) {\n try {\n result.close();\n if (closeStatement && stat != null) {\n stat.close();\n }\n }\n finally {\n columnCount = 0;\n result = null;\n stat = null;\n conn = null;\n insertRow = null;\n updateRow = null;\n }\n }\n }",
"private void cleanup() throws RemoteException {\n log.info(\"GP run complete.\");\n running = false;\n\n log.info(\"Releasing clients.\");\n for (IClient client : clients)\n client.release();\n clients.clear();\n\n writeCheckpoint(\"final_generation\");\n }",
"public void finalize() {\r\n\tif (this.taskGroup!=null) this.taskGroup.interruptAll();\r\n}",
"public void popMatrix() {\n buffer(() -> {\n if (kernelStack.hasParent()) {\n kernel.get().readArray(kernelStack.getValue());\n kernelStack = kernelStack.getParent();\n }\n });\n }",
"protected void disposeInternal()\r\n {\r\n if (!isAlive())\r\n {\r\n log.error(\"{0}: Not alive and dispose was called, filename: {1}\",\r\n logCacheName, fileName);\r\n return;\r\n }\r\n\r\n // Prevents any interaction with the cache while we're shutting down.\r\n setAlive(false);\r\n\r\n final Thread optimizationThread = currentOptimizationThread;\r\n if (isRealTimeOptimizationEnabled && optimizationThread != null)\r\n {\r\n // Join with the current optimization thread.\r\n log.debug(\"{0}: In dispose, optimization already in progress; waiting for completion.\",\r\n logCacheName);\r\n\r\n try\r\n {\r\n optimizationThread.join();\r\n }\r\n catch (final InterruptedException e)\r\n {\r\n log.error(\"{0}: Unable to join current optimization thread.\",\r\n logCacheName, e);\r\n }\r\n }\r\n else if (isShutdownOptimizationEnabled && this.getBytesFree() > 0)\r\n {\r\n optimizeFile();\r\n }\r\n\r\n saveKeys();\r\n\r\n try\r\n {\r\n log.debug(\"{0}: Closing files, base filename: {1}\", logCacheName,\r\n fileName);\r\n dataFile.close();\r\n dataFile = null;\r\n keyFile.close();\r\n keyFile = null;\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: Failure closing files in dispose, filename: {1}\",\r\n logCacheName, fileName, e);\r\n }\r\n\r\n log.info(\"{0}: Shutdown complete.\", logCacheName);\r\n }"
] | [
"0.6187731",
"0.5854292",
"0.5684787",
"0.5512672",
"0.5452461",
"0.5435616",
"0.53993195",
"0.5297552",
"0.52889025",
"0.5279945",
"0.52795213",
"0.5268915",
"0.5262665",
"0.5227852",
"0.5226575",
"0.52216387",
"0.51985997",
"0.519556",
"0.5190254",
"0.51894516",
"0.51839805",
"0.5169523",
"0.51633346",
"0.51574403",
"0.5145206",
"0.5141918",
"0.5135479",
"0.51327693",
"0.5129522",
"0.5129376",
"0.5128",
"0.51233286",
"0.5113383",
"0.5108369",
"0.51021975",
"0.5095627",
"0.5077943",
"0.5076882",
"0.50726396",
"0.50682515",
"0.5066586",
"0.5066344",
"0.50621206",
"0.5059584",
"0.50571626",
"0.5049478",
"0.50480556",
"0.5042582",
"0.5027351",
"0.5018428",
"0.5016374",
"0.50152683",
"0.50141966",
"0.50029117",
"0.5001708",
"0.49846113",
"0.49809715",
"0.4977219",
"0.49728578",
"0.49708593",
"0.49674872",
"0.4962981",
"0.49619496",
"0.49591988",
"0.4958384",
"0.4956011",
"0.49550784",
"0.49545076",
"0.49527535",
"0.49515954",
"0.4951501",
"0.49495265",
"0.49456483",
"0.49438474",
"0.4941679",
"0.4940434",
"0.4938605",
"0.4934842",
"0.49345997",
"0.4922763",
"0.4921356",
"0.49197915",
"0.49150625",
"0.49145344",
"0.4910975",
"0.49047652",
"0.4901",
"0.48935705",
"0.4882911",
"0.4882816",
"0.48807532",
"0.4880092",
"0.48800054",
"0.48777258",
"0.48761714",
"0.48721036",
"0.48681578",
"0.48641664",
"0.4860863",
"0.48607197"
] | 0.75629216 | 0 |
Sets up a context with an old stream and a blas handle | public static CudaContext getBlasContext() {
Allocator allocator = AtomicAllocator.getInstance();
return allocator.getCudaContext();
/*
CudaContext ctx = new CudaContext();
//ctx.initOldStream();
ctx.initHandle();
//ctx.startOldEvent();
return ctx;*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initOldStream() {\n ContextHolder.getInstance().setContext();\n if(oldStream == null) {\n /* try {\n oldStream = ContextHolder.getInstance().getOldStreamPool().borrowObject();\n } catch (Exception e) {\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n }*/\n\n oldStreamFromPool = false;\n oldStream = new cudaStream_t();\n JCuda.cudaStreamCreate(oldStream);\n\n // oldEvent = new cudaEvent_t();\n // JCuda.cudaEventCreate(oldEvent);\n // oldEventDestroyed = false;\n }\n\n }",
"public void initHandle() {\n if(handle == null) {\n /* try {\n handle = ContextHolder.getInstance().getHandlePool().borrowObject();\n } catch (Exception e) {\n handle = new cublasHandle();\n JCublas2.cublasCreate(handle);\n handleFromPool = false;\n }*/\n handle = new cublasHandle();\n JCublas2.cublasCreate(handle);\n handleFromPool = false;\n // associateHandle();\n }\n\n }",
"public synchronized void associateHandle() {\n JCublas2.cublasSetStream(handle,oldStream);\n }",
"public WMFDeviceContext(RandomAccessStream stream, double width, double height)\n\t\t\tthrows IOException {\n\t\tinitLowLevelGraphics(stream, (int)Math.ceil(width), (int)Math.ceil(height));\n\t}",
"@Override\n public void initialize(BatchRuntimeContext context) throws Exception {\n super.initialize(context);\n // create any resources required by transform()\n }",
"public void setContext(GLContext context);",
"protected IOContext _createContext(Object srcRef, boolean resourceManaged)\n/* */ {\n/* 1513 */ return new IOContext(_getBufferRecycler(), srcRef, resourceManaged);\n/* */ }",
"@Deprecated\n public void destroy() {\n /*\n ContextHolder.getInstance().setContext();\n\n if(stream != null && !streamReturned.get()) {\n try {\n if(streamFromPool)\n ContextHolder.getInstance().getStreamPool().returnObject(stream);\n else {\n JCudaDriver.cuStreamDestroy(stream);\n\n }\n streamReturned.set(true);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n if(oldStream != null && !oldStreamReturned.get()) {\n try {\n if(oldStreamFromPool)\n ContextHolder.getInstance().getOldStreamPool().returnObject(oldStream);\n else {\n JCuda.cudaStreamDestroy(oldStream);\n\n }\n oldStreamReturned.set(true);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n\n if(handle != null && !handleReturned.get()) {\n try {\n if(handleFromPool)\n ContextHolder.getInstance().getHandlePool().returnObject(handle);\n else {\n JCublas2.cublasDestroy(handle);\n\n }\n handleReturned.set(true);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n if(resultPointer != null) {\n if(stream != null)\n syncStream();\n if(oldStream != null)\n syncOldStream();\n resultPointer.copyToHost();\n try {\n resultPointer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n */\n }",
"public void setContext(MaterialContext context) {\n\t\tthis.context = context;\n\t\tcollectors[MaterialState.TRANSLUCENT_INDEX].prepare(MaterialState.getDefault(context, ShaderPass.TRANSLUCENT));\n\t}",
"public abstract void makeContext();",
"private void initializeBuffers()\n\t{\n\t\t// format vertex data so it can be passed to openGL\n\t\tFloatBuffer vertexBuffer = \n\t\t\t\tUtility.floatArrayToBuffer(mesh.vertexData);\n\t\t \n\t // create a buffer object and store the vertex data there\n\t\tvertexBufferObject = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vertexBufferObject);\n\t\tglBufferData(GL_ARRAY_BUFFER, vertexBuffer, GL_STATIC_DRAW);\n\t\tglBindBuffer(GL_ARRAY_BUFFER, 0);\n\t\t\n\t\t// format index data so it can be passed to openGL\n\t\tShortBuffer indexDataBuffer = \n\t\t\t\tUtility.shortArrayToBuffer(mesh.indexData);\n\t\t\n\t\t// create a buffer object and store the index data there\n\t\tindexBufferObject = glGenBuffers();\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBufferObject);\n\t\tglBufferData(GL_ELEMENT_ARRAY_BUFFER, indexDataBuffer, GL_STATIC_DRAW);\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);\n\t}",
"public void makeContextCurrent(){\n glfwMakeContextCurrent(handle);\n }",
"protected abstract void init(org.omg.CORBA.ORB orb,\n boolean littleEndian,\n BufferManagerWrite bufferManager,\n byte streamFormatVersion,\n boolean usePooledByteBuffers);",
"protected void initialize(ExternalContext context)\n {\n }",
"public void syncOldStream() {\n ContextHolder.getInstance().setContext();\n JCuda.cudaStreamSynchronize(oldStream);\n/*\n if(!oldEventDestroyed) {\n JCuda.cudaStreamSynchronize(oldStream);\n JCuda.cudaStreamWaitEvent(oldStream,oldEvent,0);\n JCuda.cudaEventDestroy(oldEvent);\n oldEventDestroyed = true;\n\n }*/\n }",
"public Context(int width, int height)\n {\n this.width = width;\n this.height = height;\n this.data = new int[width * height];\n this.image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n data = ((DataBufferInt) image.getRaster().getDataBuffer()).getData();\n }",
"private void applyOpenGLStartSettings(){\r\n\t\t//TODO pa.smooth() / pa.noSmooth() ver�ndert auch line_smooth!\r\n\t\t//f�r test ob multisampling lines ohne Line_smooth okay rendered m�ssen\r\n\t\t//sicherheitshalber auch die pa.smoot() etc abgefangen werden und line_smooth immer disabled sein!\r\n\t\t\r\n\t\t//TODO check line drawing and abstractvisible at stencil in this context (line_smooth)\r\n\t\t\r\n\t //TODO \r\n\t\t// - if multisampling enabled dont do line smoothing at all\r\n\t\t// - OR: disable multisampling each time before doing line_smoothing! (better but expensive?) \r\n\t\t// -> info: disabling multisampling isnt possible at runtime..\r\n\r\n\t // - or disable mutisample before drawing with line_smooth!\r\n\t\t//TOOD dont use lines to smooth some objects then (fonts, etc)\r\n\t if (MT4jSettings.getInstance().isOpenGlMode() ){\r\n\t \t\r\n\t \t//////////////////////////////\r\n\t \tthis.loadGL();\r\n\t //////////////////////////\r\n\t \r\n//\t \tGL gl = Tools3D.getGL(this);\r\n\t GLCommon gl = getGLCommon();\r\n\t \t\r\n\t \tlogger.info(\"OpenGL Version: \\\"\" + gl.glGetString(GL.GL_VERSION) + \"\\\"\" + \" - Vendor: \\\"\" + gl.glGetString(GL.GL_VENDOR) + \"\\\"\" + \" - Renderer: \\\"\" + gl.glGetString(GL.GL_RENDERER) + \"\\\"\");\r\n//\t \tlogger.info(\"Shading language version: \\\"\" + gl.glGetString(GL.GL_SHADING_LANGUAGE_VERSION) + \"\\\"\");\r\n\t \tlogger.info(\"Non power of two texture sizes allowed: \\\"\" + Tools3D.supportsNonPowerOfTwoTexture(this) + \"\\\"\");\r\n\t \tlogger.info(\"OpenGL Framebuffer Object Extension available: \\\"\" + GLFBO.isSupported(this) + \"\\\"\");\r\n\t \t\r\n\t\t\t//Set VSyncing on -> to avoid tearing \r\n\t\t\t//-> check if gfx card settings allow apps to set it!\r\n\t\t\t//-> Use with caution! only use with fps rate == monitor Hz!\r\n\t\t\t//and fps never drop below Hz! -> else choppy!\r\n\t\t\t//-> only works with opengl!\r\n\t \tTools3D.setVSyncing(this, MT4jSettings.getInstance().isVerticalSynchronization());\r\n\t\t\tlogger.info(\"Vertical Sync enabled: \\\"\" + MT4jSettings.getInstance().isVerticalSynchronization() + \"\\\"\");\r\n\t \t\r\n\t \tif ( MT4jSettings.getInstance().isMultiSampling()){\r\n\t \t\tgl.glEnable(GL.GL_MULTISAMPLE);\r\n//\t \t\tgl.glDisable(GL.GL_MULTISAMPLE);\r\n\t \t\tlogger.info(\"OpenGL multi-sampling enabled.\");\r\n\t \t}\r\n\t \tgl.glEnable(GL.GL_LINE_SMOOTH);\r\n//\t \tgl.glDisable(GL.GL_LINE_SMOOTH);\r\n\t }\r\n\t}",
"public Context(){\n\t\ttry {\n\t\t\tsocket = new Socket(\"localhost\", 9876);\n\t\t\tmodel = new SimpleCalculationModel();\n\t\t\ttheInputWindow = new SimpleCalculatorWindow();\n\t\t\tcurrentInput = \"\"; \n\t\t} catch (UnknownHostException e) {\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"The server local host port 9876 does not exist!\");\n\t\t}\n\t}",
"public static native void OpenMM_AmoebaWcaDispersionForce_updateParametersInContext(PointerByReference target, PointerByReference context);",
"public static native void OpenMM_AmoebaVdwForce_updateParametersInContext(PointerByReference target, PointerByReference context);",
"@Override\n\t\tprotected void setup(Context context) throws IOException,\n\t\t\t\tInterruptedException {\n\t\t\tsuper.setup(context);\n\t\t\t\n\t\t\tConfiguration config = context.getConfiguration();\n\t\t\tPath stPath=new Path(URI.create(config.get(ComputeAvailabilitiesJob.ST_PATH)));\n\t\t\tPath RPath=new Path(URI.create(config.get(ComputeAvailabilitiesJob.R_PATH)));\n\t\t\tPath sttmpPath=new Path(URI.create(config.get(ComputeAvailabilitiesJob.TMP_ST_PATH)));\n\t\t\tPath RtmpPath=new Path(URI.create(config.get(ComputeAvailabilitiesJob.TMP_R_PATH)));\n\t\t\tcolnums=Integer.parseInt(config.get(ComputeAvailabilitiesJob.COL_NUMS));\n\t\t\tConfiguration depConf = new Configuration(config);\n\t\t\t\n\t\t\tst = new DistributedRowMatrix(stPath,\n sttmpPath,\n colnums,\n colnums);\n\t\t\tR = new DistributedRowMatrix(RPath,\n RtmpPath,\n colnums,\n colnums);\n\t\t\tR.setConf(config);\n\t\t\tst.setConf(config);\n\t\t\titeratorst=st.iterateAll();\n\t\t\titeratorR=R.iterateAll();\n\t\t\t\n\t\t}",
"public void setStreams (ByteBufferInputStream in, \n ByteBufferOutputStream out) {\n if (input != null || output != null)\n throw new IllegalStateException (\n \"input or output has already been set\");\n if (in == null)\n throw new IllegalArgumentException (\n \"input stream may not be null\");\n input = in;\n if (out == null) \n out = new ByteBufferOutputStream(); // accept default length\n output = out;\n }",
"public static native void OpenMM_AmoebaStretchBendForce_updateParametersInContext(PointerByReference target, PointerByReference context);",
"<R> Streamlet<R> newSource(IRichSpout spout);",
"public void initBufferStrategy() {\n // Triple-buffering\n createBufferStrategy(3);\n bufferStrategy = getBufferStrategy();\n }",
"public static void bgfx_encoder_set_vertex_buffer(@NativeType(\"bgfx_encoder_t *\") long _this, @NativeType(\"uint8_t\") int _stream, @NativeType(\"bgfx_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _startVertex, @NativeType(\"uint32_t\") int _numVertices) {\n nbgfx_encoder_set_vertex_buffer(_this, (byte)_stream, _handle, _startVertex, _numVertices);\n }",
"public Http2MultiplexHandler(ChannelHandler inboundStreamHandler, ChannelHandler upgradeStreamHandler) {\n/* 127 */ this.inboundStreamHandler = (ChannelHandler)ObjectUtil.checkNotNull(inboundStreamHandler, \"inboundStreamHandler\");\n/* 128 */ this.upgradeStreamHandler = upgradeStreamHandler;\n/* */ }",
"@Override\n public void init() {\n tol = new TeleOpLibrary();\n tol.init(this);\n telemetry.addLine(\"Initializing complete.\");\n telemetry.update();\n }",
"public static native void OpenMM_AmoebaBondForce_updateParametersInContext(PointerByReference target, PointerByReference context);",
"public static native void OpenMM_AmoebaOutOfPlaneBendForce_updateParametersInContext(PointerByReference target, PointerByReference context);",
"public static void bgfx_encoder_set_instance_data_from_vertex_buffer(@NativeType(\"bgfx_encoder_t *\") long _this, @NativeType(\"bgfx_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _start, @NativeType(\"uint32_t\") int _num) {\n long __functionAddress = Functions.encoder_set_instance_data_from_vertex_buffer;\n if (CHECKS) {\n check(_this);\n }\n invokePCV(_this, _handle, _start, _num, __functionAddress);\n }",
"private void init() {\n sensorEnabled = false;\n contextEventHistory = new ArrayList<ContextEvent>(CONTEXT_EVENT_HISTORY_SIZE);\n }",
"public static native void OpenMM_HippoNonbondedForce_updateParametersInContext(PointerByReference target, PointerByReference context);",
"public static void bgfx_encoder_set_dynamic_vertex_buffer(@NativeType(\"bgfx_encoder_t *\") long _this, @NativeType(\"uint8_t\") int _stream, @NativeType(\"bgfx_dynamic_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _startVertex, @NativeType(\"uint32_t\") int _numVertices) {\n nbgfx_encoder_set_dynamic_vertex_buffer(_this, (byte)_stream, _handle, _startVertex, _numVertices);\n }",
"@Override\n public void setup(OperatorContext context)\n {\n super.setup(context);\n states = new ArrayList<S>(windowSize);\n //initialize the sliding window state to null\n for (int i = 0; i < windowSize; i++) {\n states.add(null);\n }\n currentCursor = -1;\n }",
"public static native void OpenMM_AmoebaMultipoleForce_updateParametersInContext(PointerByReference target, PointerByReference context);",
"protected SSLContext() {}",
"LWJGLProgramHandler()\r\n {\r\n //instance = this;\r\n }",
"public void setupPipelineBuffer(final HttpServerExchange exchange) {\n ((HttpServerConnection) exchange.getConnection()).getChannel().getSinkChannel().setConduit(this);\n }",
"public static void start(LinearOpMode opMode) {\n }",
"public void setContext( UpgradeContext context ) {\r\n\t\tthis.context = context;\r\n\t\tupgradeContext = context;\r\n\t}",
"public GlBuffer free(){\n\t\t//android.util.//Log.d(TAG,\"free()\");\n final int[] handles = new int[1];\n if(this.handle != UNBIND_HANDLE){\n handles[0] = this.handle;\n this.handle = UNBIND_HANDLE;\n GLES20.glDeleteBuffers(1, handles, 0);\n GlOperation.checkGlError(TAG, \"glDeleteBuffers\");\n }\n\n if(mVaoHandle != UNBIND_HANDLE){\n handles[0] = mVaoHandle;\n mVaoHandle = UNBIND_HANDLE;\n GLES30.glDeleteVertexArrays(1, handles, 0);\n GlOperation.checkGlError(TAG, \"glDeleteVertexArrays\");\n }\n\n\t\tif(mManagedBuffer && this.buffer != null){\n\t\t\tswitch(this.datatype){\n\t\t\t\tcase TYPE_BYTE :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((ByteBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TYPE_SHORT :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((ShortBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TYPE_INT :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((IntBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((FloatBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t}\n\t\t\tthis.buffer = null;\n\t\t}\n\t\tthis.size = 0;\n\t\treturn this;\n\t}",
"public synchronized void release() {\r\n if (active) {\r\n if (clmNullDummy != null)\r\n clReleaseMemObject(clmNullDummy);\r\n if (kernelMatrixMultiplication != null)\r\n clReleaseKernel(kernelMatrixMultiplication);\r\n if (kernelVectorTotal != null)\r\n clReleaseKernel(kernelVectorTotal);\r\n if (kernelVectorSquaredTotal != null)\r\n clReleaseKernel(kernelVectorSquaredTotal);\r\n if (kernelForwardPropagation != null)\r\n clReleaseKernel(kernelForwardPropagation);\r\n if (krenelCostFunctionPartLog != null)\r\n clReleaseKernel(krenelCostFunctionPartLog);\r\n if (kernelCalculateGradientTheta != null)\r\n clReleaseKernel(kernelCalculateGradientTheta);\r\n if (kernelCalculateGradientDelta != null)\r\n clReleaseKernel(kernelCalculateGradientDelta);\r\n if (program != null)\r\n clReleaseProgram(program);\r\n if (commandQueue != null)\r\n clReleaseCommandQueue(commandQueue);\r\n if (context != null)\r\n clReleaseContext(context);\r\n active = false;\r\n }\r\n }",
"public static void bgfx_encoder_set_vertex_buffer_with_layout(@NativeType(\"bgfx_encoder_t *\") long _this, @NativeType(\"uint8_t\") int _stream, @NativeType(\"bgfx_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _startVertex, @NativeType(\"uint32_t\") int _numVertices, @NativeType(\"bgfx_vertex_layout_handle_t\") short _layoutHandle) {\n nbgfx_encoder_set_vertex_buffer_with_layout(_this, (byte)_stream, _handle, _startVertex, _numVertices, _layoutHandle);\n }",
"private void initializeBuffers(){\n if(isDiskBufferEnabled){\n this.persistenceService = PersistenceService.getService();\n this.synonymyBuffer = persistenceService.getMapDatabase(WIKIDATA_SYNONYMY_BUFFER);\n this.hypernymyBuffer = persistenceService.getMapDatabase(WIKIDATA_HYPERNYMY_BUFFER);\n this.askBuffer = persistenceService.getMapDatabase(WIKIDATA_ASK_BUFFER);\n } else {\n this.synonymyBuffer = new ConcurrentHashMap<>();\n this.hypernymyBuffer = new ConcurrentHashMap<>();\n this.askBuffer = new ConcurrentHashMap<>();\n }\n }",
"public static native void OpenMM_AmoebaGeneralizedKirkwoodForce_updateParametersInContext(PointerByReference target, PointerByReference context);",
"@Override\n\tpublic void dispose() {\n\t\tbatch.dispose();\n\t}",
"public Context() {\n this.mFunctionSet=new ArrayList();\n this.mTerminalSet=new ArrayList();\n this.mPrimitiveMap=new TreeMap();\n this.mCache=new MyLinkedHashMap(500, .75F, true);\n this.previousBest=Double.MAX_VALUE;\n}",
"protected Texture initializeTexture(DrawContext dc)\n {\n if (this.sourceTexture != null && dc.getTextureCache().get(sourceTexture.getImageSource()) == null)\n {\n // Limit FBO size to the max OGL size or 4k, whichever is smaller\n int maxSize = Math.min(dc.getGLRuntimeCapabilities().getMaxTextureSize(), 4096);\n\n sourceTexture.bind(dc); // bind loads the image and sets the width and height\n if (sourceTexture.getWidth(dc) != 0 && sourceTexture.getHeight(dc) != 0)\n {\n this.width = Math.min(maxSize, sourceTexture.getWidth(dc));\n this.height = Math.min(maxSize, sourceTexture.getHeight(dc));\n }\n }\n\n GL gl = GLContext.getCurrent().getGL();\n\n int[] fbo = new int[1];\n gl.glGenFramebuffersEXT(1, fbo, 0);\n gl.glBindFramebufferEXT(GL.GL_FRAMEBUFFER_EXT, fbo[0]);\n\n TextureData td = new TextureData(GL.GL_RGBA, this.width, this.height, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE,\n false, false, true, BufferUtil.newByteBuffer(this.width * this.height * 4), null);\n Texture t = TextureIO.newTexture(td);\n t.bind();\n\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP_TO_EDGE);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, GL.GL_CLAMP_TO_EDGE);\n\n gl.glFramebufferTexture2DEXT(GL.GL_FRAMEBUFFER_EXT, GL.GL_COLOR_ATTACHMENT0_EXT, GL.GL_TEXTURE_2D,\n t.getTextureObject(), 0);\n\n int status = gl.glCheckFramebufferStatusEXT(GL.GL_FRAMEBUFFER_EXT);\n if (status == GL.GL_FRAMEBUFFER_COMPLETE_EXT)\n {\n this.generateTexture(dc, this.width, this.height);\n gl.glBindFramebufferEXT(GL.GL_FRAMEBUFFER_EXT, 0);\n gl.glDeleteFramebuffersEXT(1, fbo, 0);\n }\n else\n {\n throw new IllegalStateException(\"Frame Buffer Oject not created.\");\n }\n\n dc.getTextureCache().put(this, t);\n\n return t;\n }",
"public OLWMTSSource(){\n\t\tsuper();\n\t}",
"public SmooksDataLoader(final InputStream dataInputStream,\r\n final InputStream configInputStream, final Result result)\r\n {\r\n this.result = result;\r\n smooksConfigStream = new AutoCloseInputStream(configInputStream);\r\n dataFileStream = new StreamSource(new AutoCloseInputStream(\r\n dataInputStream));\r\n }",
"public void initGLState() {\n\n\t\tm.setPerspective(fovy, aspect, zNear, zFar);\n\t\tglMatrixMode(GL_PROJECTION);\n\t\tglLoadIdentity();\n\n\t\tm.get(fb);\n\n\t\tglLoadMatrixf(fb);\n\n\t\tglMatrixMode(GL_MODELVIEW);\n\t\tglLoadIdentity();\n\n\t\t/* Smooth-Shading soll benutzt werden */\n\t\tglEnable(GL_NORMALIZE);\n\t\tglShadeModel(GL_SMOOTH);\n\t\tinitLighting();\n\t}",
"@Override\r\n\tpublic synchronized void initialize(OperatorContext context) throws Exception {\r\n\t\tsuper.initialize(context);\r\n\t\t/*\r\n\t\t * Set appropriate variables if the optional error output port is\r\n\t\t * specified. Also set errorOutputPort to the output port at index 0\r\n\t\t */\r\n\t\tif (context.getNumberOfStreamingOutputs() == 2) {\r\n\t\t\thasErrorPort = true;\r\n\t\t\terrorOutputPort = getOutput(1);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif (checkConnection) {\r\n\t\t\tstartCheckConnection(context);\r\n\t\t}\r\n\r\n\t\tif (idleSessionTimeOutMinute > 0) {\r\n\t\t\tstartidleSessionTimeOutThread(context);\r\n\t\t}\r\n\t\t\r\n\t\t// set the data output port\r\n\t\tdataOutputPort = getOutput(0);\r\n\r\n\t\t// Initiate parameter sqlStatusAttr\r\n\t\tinitSqlStatusAttr();\r\n\r\n\t\t// Initiate PreparedStatement\r\n\t\tinitPreparedStatement();\r\n\r\n\t\t// initialize metrics\r\n\t\tinitMetrics(context);\r\n\t}",
"public StreamProcessorImpl(StreamSpec streamSpec, FrameStorageUpdater dataReader) {\n this(streamSpec, dataReader, new FrameIteratorFactory());\n }",
"public void init(GL2 gl) {\n\t}",
"protected BatchImageBuilder(StateImpl state, ConfigurableOption[] options) {\r\n\tfDC = (JavaDevelopmentContextImpl) state.getDevelopmentContext();\r\n\tstate.setCompilerOptions(options);\r\n\tfCompilerOptions = options;\r\n\tfNewState = state;\r\n\tfWorkQueue = new WorkQueue();\r\n}",
"void setIntraQuantMatrix(BufferedBitStream stream) throws InterruptedException\n {\n for (int i=0;i<defaultIntraQuantMatrix.length;i++)\n intraQuantMatrix[i] = stream.getBits(8);\n }",
"public static native void OpenMM_AmoebaPiTorsionForce_updateParametersInContext(PointerByReference target, PointerByReference context);",
"synchronized static void initStreams()\n {\n if ( !initialized )\n {\n out = ansiStream(true);\n err = ansiStream(false);\n initialized = true;\n }\n }",
"void setInterQuantMatrix(BufferedBitStream stream) throws InterruptedException\n {\n for (int i=0;i<interQuantMatrix.length;i++)\n interQuantMatrix[i] = stream.getBits(8);\n }",
"public void dispose() {\r\n\r\n// ByteBuffer tmp = ByteBuffer.allocateDirect(4);\r\n// tmp.order(ByteOrder.nativeOrder());\r\n// IntBuffer handle = tmp.asIntBuffer();\r\n IntBuffer handle = BufferUtils.createIntBuffer(1);\r\n\r\n// colorTexture.dispose();\r\n if (hasDepth) {\r\n handle.put(depthbufferHandle);\r\n handle.flip();\r\n glDeleteRenderbuffersEXT(handle);\r\n }\r\n\r\n handle.put(framebufferHandle);\r\n handle.flip();\r\n glDeleteFramebuffersEXT(handle);\r\n\r\n }",
"public void setBuffering() {\n try {\n doc = StaxUtils.read(stream);\n stream = null;\n } catch (XMLStreamException e) {\n throw new Fault(e); \n }\n }",
"public void rebuildMesh(float initX, float initY, float initZ) {\r\n VBOColorHandle = glGenBuffers();\r\n VBOVertexHandle = glGenBuffers();\r\n VBOTextureHandle = glGenBuffers();\r\n int height;\r\n FloatBuffer VertexPositionData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n FloatBuffer VertexColorData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n FloatBuffer VertexTextureData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n for (float x = -initX; x < -initX + CHUNK_SIZE; x++) {\r\n for (float z = -initZ; z < -initZ + CHUNK_SIZE; z++) {\r\n height = (int) (((sNoise.getNoise((int)x + (int)initX/2, (int)z + (int)initZ/2)) + 1) / 2 * 10) + 5;\r\n for (float y = 0; y <= height; y++) {\r\n VertexPositionData.put(createCube((float)(initX + x * CUBE_LENGTH), (float)(initY + y * CUBE_LENGTH), (float)(initZ + z * CUBE_LENGTH)));\r\n VertexColorData.put(createCubeVertexCol(getCubeColor(blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ])));\r\n VertexTextureData.put(createTexCube((float) 0, (float) 0, blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ]));\r\n }\r\n if (height < 11) {\r\n for (float y = height; y < 11; y++) {\r\n VertexPositionData.put(createCube((float)(initX + x * CUBE_LENGTH), (float)(initY + y * CUBE_LENGTH), (float)(initZ + z * CUBE_LENGTH)));\r\n VertexColorData.put(createCubeVertexCol(getCubeColor(blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ])));\r\n VertexTextureData.put(createTexCube((float) 0, (float) 0, blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ]));\r\n }\r\n }\r\n }\r\n }\r\n VertexColorData.flip();\r\n VertexPositionData.flip();\r\n VertexTextureData.flip();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexPositionData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexColorData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexTextureData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n }",
"void initLoop(){\n Context c = getContext();\n if (c == null){\n if (getLoop() > 0){\n setContext(new Context());\n initContext(getContext());\n }\n }\n else {\n initContext(getContext());\n }\n }",
"@Override public void dispose () \n\t{ \n\t\tbatch.dispose();\n\t}",
"public AssemblerContext(ConstantPool pool)\n {\n assert pool != null;\n m_pool = pool;\n }",
"public void context_restore(long context) {\n context_restore(nativeHandle, context);\n }",
"private void init()\n\t{\n\t\tinitOpenGL();\n\t\tlatestStroke = new Stroke(this, true);\n\t}",
"public MQCoder(ByteOutputBuffer oStream, int nrOfContexts, int init[]){\n out = oStream;\n\n // --- INITENC\n\n // Default initialization of the statistics bins is MPS=0 and\n // I=0\n I=new int[nrOfContexts];\n mPS=new int[nrOfContexts];\n initStates = init;\n\n a=0x8000;\n c=0;\n if(b==0xFF)\n cT=13;\n else\n cT=12;\n\n resetCtxts();\n\n // End of INITENC ---\n\n b=0;\n }",
"protected void initBuffer() throws IOException {\n if (buf != null) {\r\n Util.disposeDirectByteBuffer(buf);\r\n }\r\n // this check is overestimation:\r\n int size = bufferNumLength << Main.log2DataLength;\r\n assert (size > 0);\r\n if (Main.debug) { System.out.println(\"Allocating direct buffer of \"+bufferNumLength+\" ints.\"); }\r\n buf = ByteBuffer.allocateDirect(size).order(Main.byteOrder);\r\n buf.clear();\r\n }",
"public interface Context { long getNativeEglContext(); }",
"public SwapChain(\n final DeviceContext deviceContext,\n final long surface,\n final long windowHandle\n ) {\n this.deviceContext = deviceContext;\n this.surface = surface;\n this.windowHandle = windowHandle;\n this.swapchain = VK_NULL_HANDLE;\n this.extent = VkExtent2D.malloc();\n this.cleanedUp = true;\n\n recreate();\n }",
"DataStreams createDataStreams();",
"private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }",
"public void rebind() {\n // FBOs might be null if the instance wasn't initialized with #resize(int, int) yet.\n if (buffer1.getFbo() != null) {\n Texture texture = buffer1.getFbo().getColorBufferTexture();\n texture.setWrap(wrapU, wrapV);\n texture.setFilter(filterMin, filterMag);\n }\n if (buffer2.getFbo() != null) {\n Texture texture = buffer2.getFbo().getColorBufferTexture();\n texture.setWrap(wrapU, wrapV);\n texture.setFilter(filterMin, filterMag);\n }\n }",
"public static native void OpenMM_AmoebaAngleForce_updateParametersInContext(PointerByReference target, PointerByReference context);",
"private void initiliaze() {\r\n\t\tthis.inputFile = cd.getInputFile();\r\n\t\tthis.flowcell = cd.getFlowcell();\r\n\t\tthis.totalNumberOfTicks = cd.getOptions().getTotalNumberOfTicks();\r\n\t\tthis.outputFile = cd.getOutputFile();\r\n\t\tthis.statistics = cd.getStatistic();\r\n\t}",
"protected void open () {\n\t\tif (this.container==null)\n\t\t\ttry {\n\t\t\t\tmigrateOnDemand();\n\t\t\t\topenFiles();\n\t\t\t\tthis.blockSize = metaData.readInt();\n\t\t\t\tthis.size = metaData.readInt();\n\t\t\t}\n\t\t\tcatch (IOException ie) {\n\t\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t\t}\n\t}",
"public void init(int newChannelCount, int newSampleCount,\n\t\t\tfloat newSampleRate, boolean lazy) {\n\t\tif (newChannelCount < 0 || newSampleCount < 0 || newSampleRate <= 0.0f) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"invalid parameters in initialization of FloatSampleBuffer.\");\n\t\t}\n\t\tsetSampleRate(newSampleRate);\n\t\tif (this.sampleCount != newSampleCount\n\t\t\t\t|| this.channelCount != newChannelCount) {\n\t\t\tcreateChannels(newChannelCount, newSampleCount, lazy);\n\t\t}\n\t}",
"public static void bgfx_encoder_set_dynamic_vertex_buffer_with_layout(@NativeType(\"bgfx_encoder_t *\") long _this, @NativeType(\"uint8_t\") int _stream, @NativeType(\"bgfx_dynamic_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _startVertex, @NativeType(\"uint32_t\") int _numVertices, @NativeType(\"bgfx_vertex_layout_handle_t\") short _layoutHandle) {\n nbgfx_encoder_set_dynamic_vertex_buffer_with_layout(_this, (byte)_stream, _handle, _startVertex, _numVertices, _layoutHandle);\n }",
"@Override\r\n\t\t\tprotected void restoreContext() {\n\t\t\t\t\r\n\t\t\t}",
"public GLContext getContext();",
"protected void doInit()\r\n/* 131: */ {\r\n/* 132:194 */ this.tmpBuf = new byte[32];\r\n/* 133:195 */ engineReset();\r\n/* 134: */ }",
"@Override\n\tpublic void setContext(Context pContext) {\n\n\t}",
"private void openStreams() {\n\t\ttry {\n\t\t\t// mostramos un log\n\t\t\tthis.getLogger().debug(\"Opening streams..\");\n\t\t\t// abrimos el stream de salida\n\t\t\tthis.setOutputStream(new ObjectOutputStream(this.getConnection().getOutputStream()));\n\t\t\t// abrimos el stream de entrada\n\t\t\tthis.setInputStream(new ObjectInputStream(this.getConnection().getInputStream()));\n\t\t} catch (final IOException e) {}\n\t}",
"@Override\n\tpublic void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {\n\t\t\n\t}",
"public LinearSystem(AugmentedSquareMatrix A) {\n system = new AugmentedSquareMatrix(A);\n }",
"protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }",
"@SuppressWarnings(\"unchecked\")\n @Override\n public void initialize() throws Exception {\n sampleVertex = null;\n sampleMap = null;\n\n // Reset static variables cleared for avoiding OOM.\n new JVMReuseImpl().cleanupStaticData();\n\n // Set an empty reporter for now. Once we go to Tez 0.8\n // which adds support for mapreduce like progress (TEZ-808),\n // we need to call progress on Tez API\n PhysicalOperator.setReporter(new ProgressableReporter());\n\n UserPayload payload = getContext().getUserPayload();\n conf = TezUtils.createConfFromUserPayload(payload);\n SpillableMemoryManager.getInstance().configure(conf);\n PigContext.setPackageImportList((ArrayList<String>) ObjectSerializer\n .deserialize(conf.get(\"udf.import.list\")));\n Properties log4jProperties = (Properties) ObjectSerializer\n .deserialize(conf.get(PigImplConstants.PIG_LOG4J_PROPERTIES));\n if (log4jProperties != null) {\n PropertyConfigurator.configure(log4jProperties);\n }\n\n // To determine front-end in UDFContext\n conf.set(MRConfiguration.JOB_APPLICATION_ATTEMPT_ID, getContext().getUniqueIdentifier());\n\n // For compatibility with mapreduce. Some users use these configs in their UDF\n // Copied logic from the tez class - org.apache.tez.mapreduce.output.MROutput\n // Currently isMapperOutput is always false. Setting it to true produces empty output with MROutput\n boolean isMapperOutput = conf.getBoolean(MRConfig.IS_MAP_PROCESSOR, false);\n TaskAttemptID taskAttemptId = org.apache.tez.mapreduce.hadoop.mapreduce.TaskAttemptContextImpl\n .createMockTaskAttemptID(getContext().getApplicationId().getClusterTimestamp(),\n getContext().getTaskVertexIndex(), getContext().getApplicationId().getId(),\n getContext().getTaskIndex(), getContext().getTaskAttemptNumber(), isMapperOutput);\n conf.set(JobContext.TASK_ATTEMPT_ID, taskAttemptId.toString());\n conf.set(JobContext.TASK_ID, taskAttemptId.getTaskID().toString());\n conf.setBoolean(JobContext.TASK_ISMAP, isMapperOutput);\n conf.setInt(JobContext.TASK_PARTITION,\n taskAttemptId.getTaskID().getId());\n conf.set(JobContext.ID, taskAttemptId.getJobID().toString());\n if (conf.get(PigInputFormat.PIG_INPUT_LIMITS) != null) {\n // Has Load and is a root vertex\n conf.setInt(JobContext.NUM_MAPS, getContext().getVertexParallelism());\n } else {\n conf.setInt(JobContext.NUM_REDUCES, getContext().getVertexParallelism());\n }\n\n conf.set(PigConstants.TASK_INDEX, Integer.toString(getContext().getTaskIndex()));\n UDFContext.getUDFContext().addJobConf(conf);\n UDFContext.getUDFContext().deserialize();\n\n String execPlanString = conf.get(PLAN);\n execPlan = (PhysicalPlan) ObjectSerializer.deserialize(execPlanString);\n SchemaTupleBackend.initialize(conf);\n PigMapReduce.sJobContext = HadoopShims.createJobContext(conf, new org.apache.hadoop.mapreduce.JobID());\n\n // Set the job conf as a thread-local member of PigMapReduce\n // for backwards compatibility with the existing code base.\n PigMapReduce.sJobConfInternal.set(conf);\n\n Utils.setDefaultTimeZone(conf);\n\n boolean aggregateWarning = \"true\".equalsIgnoreCase(conf.get(\"aggregate.warning\"));\n PigStatusReporter pigStatusReporter = PigStatusReporter.getInstance();\n pigStatusReporter.setContext(new TezTaskContext(getContext()));\n pigHadoopLogger = PigHadoopLogger.getInstance();\n pigHadoopLogger.setReporter(pigStatusReporter);\n pigHadoopLogger.setAggregate(aggregateWarning);\n PhysicalOperator.setPigLogger(pigHadoopLogger);\n\n LinkedList<TezTaskConfigurable> tezTCs = PlanHelper.getPhysicalOperators(execPlan, TezTaskConfigurable.class);\n for (TezTaskConfigurable tezTC : tezTCs){\n tezTC.initialize(getContext());\n }\n }",
"public final void freeBuffers()\n {\n if (_ioContext != null) {\n byte[] buf = _inputBuffer;\n if (buf != null) {\n _inputBuffer = null;\n _ioContext.releaseReadIOBuffer(buf);\n }\n }\n }",
"protected CoarseMeBuffer(CoarseMeScalars scalars) {\n\t\tsuper(scalars.getKernel());\n\t\tstream.suppressOffsetVectorWarnings();\n\n\t\tm_scalars = scalars;\n\t\tm_addressType = dfeUInt(MathUtils.bitsToAddress(scalars.bufferDepth));\n\n\t\tCoarseMeBufferControl buffCtrl = new CoarseMeBufferControl(scalars);\n\t\tm_outputEnable = buffCtrl.getOutputEnable();\n\n\t\tDFEVectorType<DFEVar> type = new DFEVectorType<DFEVar>(dfeUInt(16), scalars.numPipes);\n\t\tDFEVector<DFEVar> reference = io.input(\"reference\", type, buffCtrl.getReferenceInputEnable());\n\n\t\tDFEVar[] writeAddress = getWriteAddress(buffCtrl.getReferenceInputEnable());\n\n\t\tDFEVar[] readAddress1 = getReadAddresses(buffCtrl.getReadEnableBuffer1(), 0);\n\t\tDFEVar[] readAddress2 = getReadAddresses(buffCtrl.getReadEnableBuffer2(), 1);\n\n\t\tint cyclesToReadAhead = MathUtils.ceilDivide(scalars.blockSize + scalars.numPipes - 1, scalars.numPipes);\n\n\t\tDFEVar[][] bufferOutput = createBuffer(reference, buffCtrl.getReferenceInputEnable(),\n\t\t\t\t writeAddress, readAddress1, readAddress2,\n\t\t\t\t buffCtrl.getWhichBuffer(), cyclesToReadAhead);\n\n\t\tDFEVar rotate = buffCtrl.getWhichBuffer() ? stream.offset(readAddress2[scalars.blockSize], -cyclesToReadAhead)\n : stream.offset(readAddress1[scalars.blockSize], -cyclesToReadAhead);\n\n\t\tm_bufferOutput = rotateBlock(bufferOutput, rotate);\n\n\n\t}",
"public static void bgfx_set_vertex_buffer(@NativeType(\"uint8_t\") int _stream, @NativeType(\"bgfx_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _startVertex, @NativeType(\"uint32_t\") int _numVertices) {\n nbgfx_set_vertex_buffer((byte)_stream, _handle, _startVertex, _numVertices);\n }",
"public void setConnectionContext(Object tmp) {\n this.connectionContext = tmp;\n }",
"@Override\n public void dispose() {\n\n super.dispose();\n batch.dispose();\n manager.dispose();\n\n }",
"protected abstract void startBatch(Matrix metadata);",
"protected void setBuffer(int width, int height)\n\t{\n\t\tthis.width=width;\n\t\tthis.height=height;\n\t\tlength=width*height;\n\t}",
"private native String native_clinit();",
"public GLRenderer(Context context){\n\n lastTime=System.currentTimeMillis();\n mCuboid=new ndCuboid();\n\n\n }",
"TclInputStream(InputStream inInput) {\n input = inInput;\n }",
"public void dispose() {\n for (int i = 0; i < buffers.length; i++)\n buffers[i].dispose();\n if (ownsShader && shader != null)\n shader.dispose();\n }"
] | [
"0.65910155",
"0.58071923",
"0.5352424",
"0.50044686",
"0.49611464",
"0.48846683",
"0.48197195",
"0.4762037",
"0.47571084",
"0.47076046",
"0.46599883",
"0.45863354",
"0.45796305",
"0.456627",
"0.45543784",
"0.45275438",
"0.45190006",
"0.45084378",
"0.4492456",
"0.44843894",
"0.44675332",
"0.44666252",
"0.4453022",
"0.44478148",
"0.4447333",
"0.44398767",
"0.44050997",
"0.4390602",
"0.43880004",
"0.438553",
"0.4384066",
"0.4382438",
"0.43823445",
"0.43807286",
"0.43783292",
"0.43693095",
"0.43587685",
"0.4352184",
"0.43338287",
"0.43267342",
"0.43266743",
"0.4325643",
"0.4322996",
"0.43211696",
"0.43184504",
"0.43126518",
"0.42932406",
"0.4289183",
"0.4288917",
"0.42853647",
"0.42831984",
"0.4282301",
"0.4277772",
"0.42775327",
"0.42688435",
"0.42654413",
"0.4257183",
"0.4254095",
"0.42536563",
"0.42524216",
"0.4250469",
"0.42472458",
"0.42463496",
"0.4243956",
"0.42400098",
"0.42376631",
"0.42312986",
"0.42295426",
"0.4221807",
"0.42182776",
"0.4215537",
"0.42033437",
"0.42005125",
"0.41962534",
"0.41930053",
"0.41929528",
"0.41893986",
"0.4187917",
"0.41784957",
"0.41747534",
"0.41681638",
"0.41607457",
"0.41596872",
"0.41583875",
"0.41575426",
"0.41553947",
"0.4151688",
"0.41498137",
"0.4149369",
"0.41464186",
"0.4145007",
"0.41432965",
"0.41385734",
"0.41372678",
"0.41335475",
"0.41245225",
"0.41229177",
"0.41224214",
"0.41215724",
"0.41208172"
] | 0.55949897 | 2 |
Calls cuda device synchronize | public void syncDevice() {
JCuda.cudaDeviceSynchronize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void syncStreamsTest() {\n try (Context context = GrCUDATestUtil.buildTestContext().build()) {\n Value createStream = context.eval(\"grcuda\", \"cudaStreamCreate\");\n Value stream1 = createStream.execute();\n Value stream2 = createStream.execute();\n\n final int numElements = 100;\n final int numBlocks = (numElements + NUM_THREADS_PER_BLOCK - 1) / NUM_THREADS_PER_BLOCK;\n Value deviceArrayConstructor = context.eval(\"grcuda\", \"DeviceArray\");\n Value x = deviceArrayConstructor.execute(\"float\", numElements);\n Value y = deviceArrayConstructor.execute(\"float\", numElements);\n Value buildkernel = context.eval(\"grcuda\", \"buildkernel\");\n Value squareKernel = buildkernel.execute(SQUARE_KERNEL, \"square\", \"pointer, pointer, sint32\");\n for (int i = 0; i < numElements; ++i) {\n x.setArrayElement(i, 2.0);\n }\n // Set the custom streams;\n Value configuredSquareKernel1 = squareKernel.execute(numBlocks, NUM_THREADS_PER_BLOCK, stream1);\n Value configuredSquareKernel2 = squareKernel.execute(numBlocks, NUM_THREADS_PER_BLOCK, stream2);\n\n Value createEvent = context.eval(\"grcuda\", \"cudaEventCreate\");\n Value eventRecord = context.eval(\"grcuda\", \"cudaEventRecord\");\n Value streamEventWait = context.eval(\"grcuda\", \"cudaStreamWaitEvent\");\n\n configuredSquareKernel1.execute(x, y, numElements);\n\n // Create an event to ensure that kernel 2 executes after kernel 1 is completed;\n Value event = createEvent.execute();\n eventRecord.execute(event, stream1);\n streamEventWait.execute(stream2, event);\n\n configuredSquareKernel2.execute(y, x, numElements);\n\n Value syncStream = context.eval(\"grcuda\", \"cudaStreamSynchronize\");\n syncStream.execute(stream2);\n\n for (int i = 0; i < numElements; i++) {\n assertEquals(16.0, x.getArrayElement(i).asFloat(), 0.01);\n assertEquals(4.0, y.getArrayElement(i).asFloat(), 0.01);\n }\n }\n }",
"private void invokeSync()\n \t{\n if (iDeviceList.size() == 0)\n {\n System.out.println(\"No devices found, so nothing to test\");\n return;\n }\n CpDevice device = iDeviceList.get(0);\n System.out.println(\"\\n\\nSync call to device \" + device.getUdn());\n \n CpProxyUpnpOrgConnectionManager1 connMgr = new CpProxyUpnpOrgConnectionManager1(device);\n try {\n GetProtocolInfo points = connMgr.syncGetProtocolInfo();\n System.out.println(\"source is \" + points.getSource() + \"\\nsink is \" + points.getSink());\n } catch (ProxyError pe) { }\n connMgr.dispose();\n \t}",
"public void syncStream() {\n JCudaDriver.cuStreamSynchronize(stream);}",
"@Test\n public void joinComputationsTest() {\n try (Context context = GrCUDATestUtil.buildTestContext().build()) {\n Value createStream = context.eval(\"grcuda\", \"cudaStreamCreate\");\n Value stream1 = createStream.execute();\n Value stream2 = createStream.execute();\n\n final int numElements = 100;\n final int numBlocks = (numElements + NUM_THREADS_PER_BLOCK - 1) / NUM_THREADS_PER_BLOCK;\n Value deviceArrayConstructor = context.eval(\"grcuda\", \"DeviceArray\");\n Value x = deviceArrayConstructor.execute(\"float\", numElements);\n Value y = deviceArrayConstructor.execute(\"float\", numElements);\n Value z = deviceArrayConstructor.execute(\"float\", numElements);\n Value buildkernel = context.eval(\"grcuda\", \"buildkernel\");\n Value squareKernel = buildkernel.execute(SQUARE_KERNEL, \"square\", \"pointer, pointer, sint32\");\n Value sumKernel = buildkernel.execute(SUM_KERNEL, \"square\", \"pointer, pointer, sint32\");\n\n for (int i = 0; i < numElements; ++i) {\n x.setArrayElement(i, 2.0);\n }\n // Set the custom streams;\n Value configuredSquareKernel1 = squareKernel.execute(numBlocks, NUM_THREADS_PER_BLOCK, stream1);\n Value configuredSquareKernel2 = squareKernel.execute(numBlocks, NUM_THREADS_PER_BLOCK, stream2);\n Value configuredSquareKernel3 = sumKernel.execute(numBlocks, NUM_THREADS_PER_BLOCK, stream1);\n\n Value createEvent = context.eval(\"grcuda\", \"cudaEventCreate\");\n Value eventRecord = context.eval(\"grcuda\", \"cudaEventRecord\");\n Value streamEventWait = context.eval(\"grcuda\", \"cudaStreamWaitEvent\");\n\n configuredSquareKernel1.execute(x, y, numElements);\n configuredSquareKernel2.execute(x, z, numElements);\n\n // Create an event to ensure that kernel 2 executes after kernel 1 is completed;\n Value event = createEvent.execute();\n eventRecord.execute(event, stream2);\n streamEventWait.execute(stream1, event);\n\n configuredSquareKernel3.execute(y, z, numElements);\n\n Value syncStream = context.eval(\"grcuda\", \"cudaStreamSynchronize\");\n syncStream.execute(stream1);\n\n for (int i = 0; i < numElements; i++) {\n assertEquals(8, y.getArrayElement(i).asFloat(), 0.01);\n }\n }\n }",
"public void syncOldStream() {\n ContextHolder.getInstance().setContext();\n JCuda.cudaStreamSynchronize(oldStream);\n/*\n if(!oldEventDestroyed) {\n JCuda.cudaStreamSynchronize(oldStream);\n JCuda.cudaStreamWaitEvent(oldStream,oldEvent,0);\n JCuda.cudaEventDestroy(oldEvent);\n oldEventDestroyed = true;\n\n }*/\n }",
"void synchronizeHostData(DataBuffer buffer);",
"public void sync(){\n byte[] block = new byte[512];\n SysLib.int2bytes(totalBlocks, block, 0);\n SysLib.int2bytes(totalInodes, block, 4);\n SysLib.int2bytes(freeList, block, 8);\n SysLib.rawwrite(0, block);\n }",
"void synchronizeHostData(INDArray array);",
"void trySynchronizeHostData(DataBuffer buffer);",
"private void fireCPUorGPUClockChange(){\n System.out.println(\"Firing CPU/GPU Clock Change\");\n if(!isNull(this.onCPUGPUClockChange)) this.onCPUGPUClockChange.run();\n }",
"public void synchronize(){ \r\n }",
"private cudaComputeMode()\r\n {\r\n }",
"public void sync()\n {\n byte[] blockData = new byte[Disk.blockSize];\n SysLib.int2bytes(totalBlocks, blockData, 0);\n SysLib.int2bytes(inodeBlocks, blockData, 4);\n SysLib.int2bytes(freeList, blockData, 8);\n SysLib.rawwrite(0, blockData);\n }",
"CudaContext getCudaContext();",
"void setEnvironment(CudaEnvironment environment);",
"@Override\n public void callSync() {\n\n }",
"public static void sync() {\n/* 72 */ if (theInstance != null) {\n/* */ \n/* */ \n/* */ \n/* 76 */ D3DScreenUpdateManager d3DScreenUpdateManager = (D3DScreenUpdateManager)ScreenUpdateManager.getInstance();\n/* 77 */ d3DScreenUpdateManager.runUpdateNow();\n/* */ \n/* 79 */ theInstance.lock();\n/* */ try {\n/* 81 */ theInstance.ensureCapacity(4);\n/* 82 */ theInstance.getBuffer().putInt(76);\n/* 83 */ theInstance.flushNow();\n/* */ } finally {\n/* 85 */ theInstance.unlock();\n/* */ } \n/* */ } \n/* */ }",
"private void doReflexSync() {\n reflexSyncCurrent = IrisUUID.randomUUID();\n final UUID syncToken = reflexSyncCurrent;\n\n syncBackoff.onSuccess();\n Completable.create(sub -> {\n if (!syncToken.equals(reflexSyncCurrent)) {\n sub.onCompleted();\n return;\n }\n\n UUID acc = HubAttributesService.getAccountId();\n UUID plc = HubAttributesService.getPlaceId();\n if (acc == null || plc == null) {\n sub.onError(new Exception(\"not registered\"));\n return;\n }\n\n List<Map<String,Object>> devices = new ArrayList<>(); \n for (Map.Entry<String,HubDeviceService.DeviceProvider> entry : HubDeviceService.devices().entrySet()) {\n HubDeviceService.DeviceProvider prov = entry.getValue();\n\n int numDevices = 0;\n for (HubDeviceService.DeviceInfo info : prov) {\n SyncDeviceInfo sdinfo = new SyncDeviceInfo();\n sdinfo.setProtocol(info.getProtocolAddress());\n\n Address addr = Address.fromString(info.getProtocolAddress());\n ReflexProcessor proc = processors.get(addr);\n\n if (proc != null) {\n sdinfo.setDriver(proc.getDriver());\n sdinfo.setVersion(proc.getVersion().getRepresentation());\n sdinfo.setHash(proc.getHash());\n sdinfo.setAttrs(proc.getSyncState());\n }\n\n Boolean online = info.isOnline();\n if (online != null) {\n sdinfo.setOnline(online);\n }\n\n sdinfo.setDegraded(proc != null && proc.isDegraded());\n devices.add(sdinfo.toMap());\n numDevices++;\n }\n\n log.info(\"syncing hub reflexes: {} protocol reported {} devices\", entry.getKey(), numDevices);\n }\n\n MessageBody msg;\n try {\n log.info(\"syncing hub reflexes: {} devices reported to platform\", devices.size());\n String json = JSON.toJson(devices);\n String compressed = compressAsString(json.getBytes(StandardCharsets.UTF_8));\n\n msg = DeviceService.SyncDevicesRequest.builder()\n .withAccountId(acc.toString())\n .withPlaceId(plc.toString())\n .withDevices(compressed)\n .build();\n } catch (Exception ex) {\n msg = Errors.fromException(ex);\n }\n\n PlatformMessage sync = PlatformMessage.buildRequest(msg, port.getSendPlatformAddress(), DEVICE_SERVICE)\n .withCorrelationId(reflexSyncCurrent.toString())\n .create();\n\n port.send(sync);\n sub.onError(new Throwable(\"again\"));\n })\n .retryWhen(RxIris.retry(syncBackoff))\n .subscribe();\n }",
"public void act()\n {\n mudaImagem();\n }",
"public interface Allocator {\n\n /**\n * Consume and apply configuration passed in as argument\n *\n * @param configuration configuration bean to be applied\n */\n void applyConfiguration(Configuration configuration);\n\n /**\n * This method allows you to exclude specific device from being used for calculations\n *\n * Please note: you can call this method multiple times, to ban multiple devices\n *\n * @param deviceId deviceId to be banned\n */\n void banDevice(Integer deviceId);\n\n /**\n * Set active CUDA environment\n *\n * @param environment\n */\n void setEnvironment(CudaEnvironment environment);\n\n /**\n * This method returns CudaContext for current thread\n *\n * @return\n */\n CudaContext getCudaContext();\n\n /**\n * This methods specifies Mover implementation to be used internally\n *\n * @param mover\n */\n void setMover(Mover mover);\n\n /**\n * Returns current Allocator configuration\n *\n * @return current configuration\n */\n Configuration getConfiguration();\n\n /**\n * This method registers buffer within allocator instance\n */\n // Long pickupSpan(BaseCudaDataBuffer buffer, AllocationShape shape);\n\n /**\n * This method registers array's buffer within allocator instance\n * @param array INDArray object to be picked\n */\n Long pickupSpan(INDArray array);\n\n /**\n * This method hints allocator, that specific object was accessed on host side.\n * This includes putRow, putScalar;\n *\n * @param array\n */\n void tickHost(INDArray array);\n\n\n /**\n * This methods hints allocator, that specific object was accessed on device side.\n *\n * @param array\n */\n @Deprecated\n void tickDevice(INDArray array);\n\n\n /**\n * This method hints allocator, that specific object was released on device side\n *\n * @param array\n */\n void tackDevice(INDArray array);\n\n /**\n * This method notifies allocator, that specific object was changed on device side\n *\n * @param array\n */\n void tickDeviceWrite(INDArray array);\n\n /**\n * This method notifies allocator, that specific object was changed on host side\n *\n * @param array\n */\n void tickHostWrite(INDArray array);\n\n /**\n * This method returns actual device pointer valid for current object\n *\n * @param buffer\n */\n @Deprecated\n Pointer getDevicePointer(DataBuffer buffer);\n\n /**\n * This method returns actual device pointer valid for specified shape of current object\n *\n * @param buffer\n * @param shape\n */\n @Deprecated\n Pointer getDevicePointer(DataBuffer buffer, AllocationShape shape, boolean isView);\n\n\n /**\n * This method returns actual device pointer valid for specified INDArray\n */\n Pointer getDevicePointer(INDArray array);\n\n\n /**\n * This method returns actual host pointer, valid for specified shape of current object\n *\n * @param array\n * @return\n */\n Pointer getHostPointer(INDArray array);\n\n /**\n * This method should be callsd to make sure that data on host side is actualized\n *\n * @param array\n */\n void synchronizeHostData(INDArray array);\n\n /**\n * This method should be calls to make sure that data on host side is actualized\n *\n * @param buffer\n */\n void synchronizeHostData(DataBuffer buffer);\n\n /**\n * This method should be callsd to make sure that data on host side is actualized.\n * However, this method only tries to lock data before synchronization.\n *\n * PLEASE NOTE: This methos is considered non-safe.\n *\n * @param buffer\n */\n void trySynchronizeHostData(DataBuffer buffer);\n\n /**\n * This method returns current host memory state\n *\n * @param array\n * @return\n */\n SyncState getHostMemoryState(INDArray array);\n\n /**\n * This method returns the number of top-level memory allocation.\n * No descendants are included in this result.\n *\n * @return number of allocated top-level memory chunks\n */\n int tableSize();\n\n\n /**\n * This method returns CUDA deviceId for specified array\n *\n * @param array\n * @return\n */\n Integer getDeviceId(INDArray array);\n\n /**\n * This method returns CUDA deviceId for current thread\n *\n * @return\n */\n Integer getDeviceId();\n}",
"public void sync()\n\t{\n\t\tbyte[] buffer = new byte[Disk.blockSize];\n\n\t\t// Write the totalBlocks, totalInodes, and freeList.\n\t\tSysLib.int2bytes(totalBlocks, buffer, 0);\n\t\tSysLib.int2bytes(totalInodes, buffer, 4);\n\t\tSysLib.int2bytes(freeList, buffer, 8);\n\t\tSysLib.int2bytes(lastFreeBlock, buffer, 12);\n\n\t\t// Write the block back to disk.\n\t\tSysLib.rawwrite(0, buffer);\n\t}",
"private void processSynchronizationPointsImmediately(boolean force, String desc) {\n if (_vm == null || _eventThread == null || !_eventThread.isConnected()) {\n return;\n }\n _writer.println(\"// Note: Attempting to process sync point immediately - \" + desc);\n _vm.suspend();\n try {\n List<ReferenceType> classes = _vm.classesByName(\"edu.rice.cs.cunit.SyncPointBuffer\");\n ClassType bufferClass = null;\n ClassObjectReference bufferClassObject = null;\n for (ReferenceType cl : classes) {\n if (cl.name().equals(\"edu.rice.cs.cunit.SyncPointBuffer\")) {\n if (cl instanceof ClassType) {\n bufferClass = (ClassType) cl;\n bufferClassObject = bufferClass.classObject();\n break;\n }\n }\n }\n if (null == bufferClass) {\n throw new Error(\"Could not find edu.rice.cs.cunit.SyncPointBuffer class.\");\n }\n Field nextObjectIDField = bufferClass.fieldByName(\"_nextObjectID\");\n if (null == nextObjectIDField) {\n throw new Error(\"Could not find edu.rice.cs.cunit.SyncPointBuffer._nextObjectID field.\");\n }\n Value nextObjectIDValue = bufferClass.getValue(nextObjectIDField);\n if (!(nextObjectIDValue instanceof LongValue)) {\n throw new Error(\"Unexpected type for edu.rice.cs.cunit.SyncPointBuffer._nextObjectID.\");\n }\n LongValue nextObjectID = (LongValue) nextObjectIDValue;\n setProperty(\"nextObjectID\", nextObjectID.longValue());\n Field nextThreadIDField = bufferClass.fieldByName(\"_nextThreadID\");\n if (null == nextThreadIDField) {\n throw new Error(\"Could not find edu.rice.cs.cunit.SyncPointBuffer._nextThreadID field.\");\n }\n Value nextThreadIDValue = bufferClass.getValue(nextThreadIDField);\n if (!(nextThreadIDValue instanceof LongValue)) {\n throw new Error(\"Unexpected type for edu.rice.cs.cunit.SyncPointBuffer._nextThreadID.\");\n }\n LongValue nextThreadID = (LongValue) nextThreadIDValue;\n setProperty(\"nextThreadID\", nextThreadID.longValue());\n boolean success = _processor.processImmediately(force, bufferClass, bufferClassObject, _methodDatabase);\n if (_objectProcessor != null) {\n success &= _objectProcessor.processImmediately(force, bufferClass, bufferClassObject, _methodDatabase);\n }\n if (success) {\n setProperty(\"numUpdates\", getNumUpdates() + 1);\n setProperty(\"isUpdateDelayed\", false);\n _transferHistoryModel.add(((Integer) getProperty(\"numSyncPointsInList\")), ((Integer) getProperty(\"numSyncPointsInCompactList\")), System.currentTimeMillis() - _startTime, desc);\n } else {\n _writer.println(\"// Note: Postponing update. Slave VM in edu.rice.cs.cunit.SyncPointBuffer.add or compactAdd.\");\n _writer.flush();\n _eventThread.setSyncPointBufferExitRequestEnable(true, desc);\n setProperty(\"numDelayedUpdates\", getNumDelayedUpdates() + 1);\n setProperty(\"isUpdateDelayed\", true);\n }\n } finally {\n _writer.println(\"// Note: Finished processing sync points - \" + desc);\n _vm.resume();\n _infoTableModel.fireTableDataChanged();\n }\n }",
"void tickDeviceWrite(INDArray array);",
"@C_FUNCTION\n public static native void syscall_membarrier();",
"private void processSynchronizationPoints(boolean force, String desc) {\n if (_vm == null || _eventThread == null || !_eventThread.isConnected()) {\n return;\n }\n _writer.println(\"// Note: Attempting to process sync points - \" + desc);\n _vm.suspend();\n try {\n List<ReferenceType> classes = _vm.classesByName(\"edu.rice.cs.cunit.SyncPointBuffer\");\n ClassType bufferClass = null;\n ClassObjectReference bufferClassObject = null;\n for (ReferenceType cl : classes) {\n if (cl.name().equals(\"edu.rice.cs.cunit.SyncPointBuffer\")) {\n if (cl instanceof ClassType) {\n bufferClass = (ClassType) cl;\n bufferClassObject = bufferClass.classObject();\n break;\n }\n }\n }\n if (null == bufferClass) {\n throw new Error(\"Could not find edu.rice.cs.cunit.SyncPointBuffer class.\");\n }\n Field nextObjectIDField = bufferClass.fieldByName(\"_nextObjectID\");\n if (null == nextObjectIDField) {\n throw new Error(\"Could not find edu.rice.cs.cunit.SyncPointBuffer._nextObjectID field.\");\n }\n Value nextObjectIDValue = bufferClass.getValue(nextObjectIDField);\n if (!(nextObjectIDValue instanceof LongValue)) {\n throw new Error(\"Unexpected type for edu.rice.cs.cunit.SyncPointBuffer._nextObjectID.\");\n }\n LongValue nextObjectID = (LongValue) nextObjectIDValue;\n setProperty(\"nextObjectID\", nextObjectID.longValue());\n Field nextThreadIDField = bufferClass.fieldByName(\"_nextThreadID\");\n if (null == nextThreadIDField) {\n throw new Error(\"Could not find edu.rice.cs.cunit.SyncPointBuffer._nextThreadID field.\");\n }\n Value nextThreadIDValue = bufferClass.getValue(nextThreadIDField);\n if (!(nextThreadIDValue instanceof LongValue)) {\n throw new Error(\"Unexpected type for edu.rice.cs.cunit.SyncPointBuffer._nextThreadID.\");\n }\n LongValue nextThreadID = (LongValue) nextThreadIDValue;\n setProperty(\"nextThreadID\", nextThreadID.longValue());\n boolean success = _processor.process(force, bufferClass, bufferClassObject, _methodDatabase);\n if (_objectProcessor != null) {\n success &= _objectProcessor.process(force, bufferClass, bufferClassObject, _methodDatabase);\n }\n if (success) {\n setProperty(\"numUpdates\", getNumUpdates() + 1);\n setProperty(\"isUpdateDelayed\", false);\n _transferHistoryModel.add(((Integer) getProperty(\"numSyncPointsInList\")), ((Integer) getProperty(\"numSyncPointsInCompactList\")), System.currentTimeMillis() - _startTime, desc);\n } else {\n _writer.println(\"// Note: Postponing update. Slave VM in edu.rice.cs.cunit.SyncPointBuffer.add or compactAdd.\");\n _writer.flush();\n _eventThread.setSyncPointBufferExitRequestEnable(true, desc);\n setProperty(\"numDelayedUpdates\", getNumDelayedUpdates() + 1);\n setProperty(\"isUpdateDelayed\", true);\n }\n } finally {\n _writer.println(\"// Note: Finished processing sync points - \" + desc);\n int userThreads = (Integer) getProperty(\"userThreads\");\n boolean transferImmediately = (Boolean) getProperty(\"transferImmediately\");\n if ((userThreads == 0) && _includeTermSyncPoints && !transferImmediately) {\n enableImmediateTransfers();\n }\n _vm.resume();\n _infoTableModel.fireTableDataChanged();\n }\n }",
"public synchronized void broadcast(INDArray array) {\n if (array == null)\n return;\n\n Preconditions.checkArgument(!array.isView() || array.elementWiseStride() != 1, \"View can't be used in DeviceLocalNDArray\");\n\n Nd4j.getExecutioner().commit();\n\n val config = OpProfiler.getInstance().getConfig();\n val locality = config.isCheckLocality();\n\n if (locality)\n config.setCheckLocality(false);\n val numDevices = Nd4j.getAffinityManager().getNumberOfDevices();\n val deviceId = Nd4j.getAffinityManager().getDeviceForCurrentThread();\n\n if (!delayedMode) {\n // in immediate mode we put data in\n\n for (int i = 0; i < numDevices; i++) {\n // if current thread equal to this device - we just save it, without duplication\n if (deviceId == i) {\n set(i, array.detach());\n } else {\n set(i, Nd4j.getAffinityManager().replicateToDevice(i, array));\n }\n\n }\n } else {\n // we're only updating this device\n set(Nd4j.getAffinityManager().getDeviceForCurrentThread(), array);\n delayedArray = array.dup(array.ordering()).detach();\n\n // and marking all other devices as stale, and provide id of device with the most recent array\n for (int i = 0; i < numDevices; i++) {\n if (i != deviceId) {\n updatesMap.get(i).set(deviceId);\n }\n }\n }\n\n config.setCheckLocality(locality);\n }",
"public static void sync() {\n // write out superblock if updated\n // write out free list blocks if updated\n // write out inode blocks if updated\n // write out data blocks if updated\n\n // at present, all changes to inodes, data blocks, \n // and free list blocks\n // are written as they go, so this method does nothing.\n }",
"@Override\n public void sync(){\n }",
"static void forceSync(DatasetGraphTDB dsg) {\n dsg.getTripleTable().getNodeTupleTable().getNodeTable().sync();\n dsg.getQuadTable().getNodeTupleTable().getNodeTable().sync();\n dsg.getQuadTable().getNodeTupleTable().getNodeTable().sync();\n dsg.getStoragePrefixes().getNodeTupleTable().getNodeTable().sync();\n // This is not enough -- modules check whether sync needed.\n dsg.sync();\n\n }",
"public static void main(String args[])\r\n {\r\n // Create input- and output data \r\n int n = 10;\r\n float srcArrayA[] = new float[n];\r\n float srcArrayB[] = new float[n];\r\n float dstArray[] = new float[n];\r\n for (int i=0; i<n; i++)\r\n {\r\n srcArrayA[i] = i;\r\n srcArrayB[i] = i;\r\n }\r\n Pointer srcA = Pointer.to(srcArrayA);\r\n Pointer srcB = Pointer.to(srcArrayB);\r\n Pointer dst = Pointer.to(dstArray);\r\n\r\n // The platform, device type and device number\r\n // that will be used\r\n final int platformIndex = 0;\r\n final long deviceType = CL_DEVICE_TYPE_ALL;\r\n final int deviceIndex = 0;\r\n\r\n // Enable exceptions and subsequently omit error checks in this sample\r\n CL.setExceptionsEnabled(true);\r\n\r\n // Obtain the number of platforms\r\n int numPlatformsArray[] = new int[1];\r\n clGetPlatformIDs(0, null, numPlatformsArray);\r\n int numPlatforms = numPlatformsArray[0];\r\n\r\n // Obtain a platform ID\r\n cl_platform_id platforms[] = new cl_platform_id[numPlatforms];\r\n clGetPlatformIDs(platforms.length, platforms, null);\r\n cl_platform_id platform = platforms[platformIndex];\r\n\r\n // Initialize the context properties\r\n cl_context_properties contextProperties = new cl_context_properties();\r\n contextProperties.addProperty(CL_CONTEXT_PLATFORM, platform);\r\n \r\n // Obtain the number of devices for the platform\r\n int numDevicesArray[] = new int[1];\r\n clGetDeviceIDs(platform, deviceType, 0, null, numDevicesArray);\r\n int numDevices = numDevicesArray[0];\r\n \r\n // Obtain a device ID \r\n cl_device_id devices[] = new cl_device_id[numDevices];\r\n clGetDeviceIDs(platform, deviceType, numDevices, devices, null);\r\n cl_device_id device = devices[deviceIndex];\r\n\r\n // Create a context for the selected device\r\n cl_context context = clCreateContext(\r\n contextProperties, 1, new cl_device_id[]{device}, \r\n null, null, null);\r\n \r\n // Create a command-queue for the selected device\r\n cl_queue_properties properties = new cl_queue_properties();\r\n cl_command_queue commandQueue = clCreateCommandQueueWithProperties(\r\n context, device, properties, null);\r\n\r\n // Allocate the memory objects for the input- and output data\r\n cl_mem srcMemA = clCreateBuffer(context, \r\n CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR,\r\n Sizeof.cl_float * n, srcA, null);\r\n cl_mem srcMemB = clCreateBuffer(context, \r\n CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR,\r\n Sizeof.cl_float * n, srcB, null);\r\n cl_mem dstMem = clCreateBuffer(context, \r\n CL_MEM_READ_WRITE, \r\n Sizeof.cl_float * n, null, null);\r\n \r\n // Create the program from the source code\r\n cl_program program = clCreateProgramWithSource(context,\r\n 1, new String[]{ programSource }, null, null);\r\n \r\n // Build the program\r\n clBuildProgram(program, 0, null, null, null, null);\r\n \r\n // Create the kernel\r\n cl_kernel kernel = clCreateKernel(program, \"sampleKernel\", null);\r\n \r\n // Set the arguments for the kernel\r\n int a = 0;\r\n clSetKernelArg(kernel, a++, Sizeof.cl_mem, Pointer.to(srcMemA));\r\n clSetKernelArg(kernel, a++, Sizeof.cl_mem, Pointer.to(srcMemB));\r\n clSetKernelArg(kernel, a++, Sizeof.cl_mem, Pointer.to(dstMem));\r\n \r\n // Set the work-item dimensions\r\n long global_work_size[] = new long[]{n};\r\n \r\n // Execute the kernel\r\n clEnqueueNDRangeKernel(commandQueue, kernel, 1, null,\r\n global_work_size, null, 0, null, null);\r\n \r\n // Read the output data\r\n clEnqueueReadBuffer(commandQueue, dstMem, CL_TRUE, 0,\r\n n * Sizeof.cl_float, dst, 0, null, null);\r\n \r\n // Release kernel, program, and memory objects\r\n clReleaseMemObject(srcMemA);\r\n clReleaseMemObject(srcMemB);\r\n clReleaseMemObject(dstMem);\r\n clReleaseKernel(kernel);\r\n clReleaseProgram(program);\r\n clReleaseCommandQueue(commandQueue);\r\n clReleaseContext(context);\r\n \r\n // Verify the result\r\n boolean passed = true;\r\n final float epsilon = 1e-7f;\r\n for (int i=0; i<n; i++)\r\n {\r\n float x = dstArray[i];\r\n float y = srcArrayA[i] * srcArrayB[i];\r\n boolean epsilonEqual = Math.abs(x - y) <= epsilon * Math.abs(x);\r\n if (!epsilonEqual)\r\n {\r\n passed = false;\r\n break;\r\n }\r\n }\r\n System.out.println(\"Test \"+(passed?\"PASSED\":\"FAILED\"));\r\n if (n <= 10)\r\n {\r\n System.out.println(\"Result: \"+Arrays.toString(dstArray));\r\n }\r\n }",
"public static void recordPrefCUDADevices(Preferences pref, List<CudaDeviceParam> cudaDevices) {\n if (cudaDevices != null) {\n for (int i = 0; i < cudaDevices.size(); i++) {\n CudaDeviceParam dev = cudaDevices.get(i);\n\n pref.put(\"cudaDevice\" + i + \"id\", Integer.toString(dev.getId()));\n pref.put(\"cudaDevice\" + i + \"name\", dev.getName());\n pref.put(\"cudaDevice\" + i + \"major\", Integer.toString(dev.getDevMajor()));\n pref.put(\"cudaDevice\" + i + \"minor\", Integer.toString(dev.getDevMinor()));\n }\n }\n }",
"public static native int ncclAllReduce(Pointer send, Pointer recv, int count, int datatype, int op, NCCL comm, cudaStream_t stream);",
"private void updateDeviceImage(Shell shell) {\r\n mBusyLabel.setText(\"Capturing...\"); // no effect\r\n\r\n shell.setCursor(shell.getDisplay().getSystemCursor(SWT.CURSOR_WAIT));\r\n\r\n for (int i = 0; i < 10; i++) {\r\n long start = System.currentTimeMillis();\r\n getDeviceImage();\r\n long end = System.currentTimeMillis();\r\n System.out.println(\"count \" + i + \" take \" + (end-start) + \"ms\");\r\n }\r\n mRawImage = getDeviceImage();\r\n System.out.println(\"size is \" + mRawImage.size);\r\n for (int i = 0; i < mRotateCount; i++) {\r\n mRawImage = mRawImage.getRotated();\r\n }\r\n\r\n updateImageDisplay(shell);\r\n }",
"public static void synchronize() {\n awaitCompletion(READ_HANDLES);\n awaitCompletion(WRITE_HANDLES);\n }",
"public void dispose() {\n cuMemFree(deviceMPtr);\n }",
"public synchronized void update(@NonNull INDArray array) {\n Preconditions.checkArgument(!array.isView() || array.elementWiseStride() != 1, \"View can't be used in DeviceLocalNDArray\");\n\n val numDevices = Nd4j.getAffinityManager().getNumberOfDevices();\n val device = Nd4j.getAffinityManager().getDeviceForCurrentThread();\n val currentArray = backingMap.get(device);\n boolean wasDelayed = false;\n\n if (Arrays.equals(currentArray.shapeInfoJava(), array.shapeInfoJava())) {\n // if arrays are the same - we'll just issue memcpy\n for (int k = 0; k < numDevices; k++) {\n val lock = locksMap.get(k);\n try {\n lock.writeLock().lock();\n val v = backingMap.get(k);\n if (v == null) {\n if (!wasDelayed) {\n delayedArray = array.dup(array.ordering()).detach();\n wasDelayed = true;\n }\n updatesMap.get(k).set(device);\n continue;\n }\n\n Nd4j.getMemoryManager().memcpy(v.data(), array.data());\n Nd4j.getExecutioner().commit();\n } finally {\n lock.writeLock().unlock();\n }\n }\n } else {\n // if arrays are not the same - we'll issue broadcast call\n broadcast(array);\n }\n }",
"public void synchronize(int change);",
"public void commonPeriodic()\n {\n double d1LeftJoystick = driver1.getAxis(driver1.LAxisUD);\n double d1RightJoystick = driver1.getAxis(driver1.RAxisUD);\n\n double d2LeftJoystick = driver2.getAxis(driver2.LAxisUD);\n double d2RightJoystick = driver2.getAxis(driver2.RAxisUD);\n\n // -------------------- DRIVER 1\n\n driveTrain.drive(d1LeftJoystick * speedModifier, d1RightJoystick * speedModifier);\n\n // driver1 controls ramp\n // press start and select together to deploy\n if(driver1.down(driver1.Start) && driver1.down(driver1.Select))\n {\n ramp.deploy();\n hatchArm.fingerGrab();\n }\n else\n {\n ramp.undeploy();\n }\n\n // driver 1 can double speed by holding L2\n //driveTrain.fastSpeed = driver1.down(driver1.L2);\n if(driver1.pressed(driver1.A))\n {\n driveTrain.slowSpeed = !driveTrain.slowSpeed;\n System.out.println(\"Fast speed toggled to: \" + driveTrain.slowSpeed);\n }\n\n //drive straight\n if(driver1.down(driver1.L1))\n {\n driveTrain.set_right_motors(speedModifier);\n }\n if(driver1.down(driver1.R1))\n {\n driveTrain.set_left_motors(speedModifier);\n }\n\n // flip drive orientation\n if(driver1.pressed(driver1.Select))\n {\n driveTrain.flip_orientation();\n \n if(driveTrain.isFacingForward())\n {\n camServForward.setSource(camFront);\n //camServReverse.setSource(camBack);\n // camBack.free();\n // camFront.close();\n // camFront = CameraServer.getInstance().startAutomaticCapture(0);\n // camBack = CameraServer.getInstance().startAutomaticCapture(1);\n }\n else\n {\n camServForward.setSource(camBack);\n //camServReverse.setSource(camFront);\n // camBack.close();\n // camFront.close();\n // camFront = CameraServer.getInstance().startAutomaticCapture(1);\n // camBack = CameraServer.getInstance().startAutomaticCapture(0);\n }\n }\n\n\n // -------------------- DRIVER 2\n\n\n // up is out\n // down is in\n // (when it's negated)\n cargoArm.spinBallMotor(-1 * d2LeftJoystick * 0.9);\n\n // control hatch placement pistons\n if(driver2.pressed(driver2.A))\n {\n hatchArm.pushPistons();\n }\n else if (driver2.released(driver2.A))\n {\n hatchArm.retractPistons();\n }\n\n // open/close hatch grabber arms\n if(driver2.pressed(driver2.B))\n {\n hatchArm.toggleGrabber();\n }\n\n if(driver2.pressed(driver2.Select))\n {\n //cargoArm.toggleArmLock();\n hatchArm.toggleFinger();\n }\n\n // extend/de-extend cargo hand\n if(driver2.pressed(driver2.Start))\n {\n cargoArm.toggleHand();\n }\n\n // button 7: L2\n // button 8: R2\n // L2 will reverse the finger\n // R2 will rotate it forward\n if(driver2.down(driver2.L1))\n {\n hatchArm.rotateFinger(1);\n }\n else\n {\n if(driver2.down(driver2.L2))\n {\n hatchArm.rotateFinger(-1);\n }\n else\n {\n hatchArm.rotateFinger(0);\n }\n }\n\n \n // button 5: L1\n // button 6: R1\n // L1 will move the hatch arm one way\n // R1 will move it the other way\n if(driver2.down(driver2.R1))\n {\n hatchArm.rotateArm(-1 * speedModifier);// * 0.75);\n }\n else\n {\n if(driver2.down(driver2.R2))\n {\n hatchArm.rotateArm(1 * speedModifier);// * 0.75);\n }\n else\n {\n hatchArm.rotateArm(0);\n }\n }\n\n \n // button 1: x\n // button 4: y\n // button 1 will move the ball arm one way\n // button 4 will move it the other way\n if(driver2.down(driver2.X))\n {\n //cargoArm.requestMove(-1 * speedModifier);\n cargoArm.rotateArm(-1);\n //cargoArm.solArmBrake.set(false);\n }\n else\n {\n if(driver2.down(driver2.Y))\n {\n //cargoArm.requestMove(2 * speedModifier);\n cargoArm.rotateArm(1);\n //cargoArm.solArmBrake.set(false);\n }\n else\n {\n //cargoArm.rotateArm(cargoArm.getArmCalculation());\n //cargoArm.solArmBrake.set(true);\n cargoArm.rotateArm(0);\n }\n }\n if(driver2.released(driver2.X) || driver2.released(driver2.Y))\n {\n //cargoArm.setArmTarget(cargoArm.currentPosition());\n //cargoArm.solArmBrake.set(true);\n cargoArm.rotateArm(0);\n }\n\n if(driver2.dpad(driver2.Up))\n {\n cargoArm.setArmUp();\n }\n if(driver2.dpad(driver2.Down))\n {\n cargoArm.setArmDown();\n }\n if(driver2.dpad(driver2.Left))\n {\n cargoArm.setArmMid();\n }\n if(driver2.dpad(driver2.Right))\n {\n cargoArm.setArmLow();\n }\n\n if(driver2.pressed(driver2.LThumb))\n {\n cargoArm.armLockEnabled = !cargoArm.armLockEnabled;\n \n }\n if(driver2.pressed(driver2.RThumb))\n {\n cargoArm.toggleBrake();\n }\n\n\n // allow move-to calculations to occur\n hatchArm.periodic();\n cargoArm.periodic();\n }",
"@Override public void run() // the run() method is the start method for every thread\n {\n // operations that do not use shared memory go outside the synchronized block\n // do not assume that all methods like System.out.println() are thread safe\n \n synchronized (sync) // this synchronized block will prevent multiple threads from altering the shared memory\n {\n System.out.println(\"I am thread \" + threadIndex); // we cannot reference local variables like i\n // so we are using final variable threadIndex\n \n System.out.println(\"The count is now \" + ++sync.counter); // sync.counter is shared memory\n // thus we cannot have multiple threads\n // try to increment at the same time\n \n if (sync.counter == sync.numThreads)\n {\n System.out.println(\"All threads will be notified\");\n \n sync.notifyAll(); // this method unblocks all threads that have called sync.wait()\n }\n else\n {\n System.out.println(\"Thread \" + threadIndex + \" will wait until notified\");\n \n // the .wait() method halts the current thread until it is notified from the same object sync\n try { sync.wait(); } catch (Exception e) { System.out.println(\"catched exception\"); }\n \n System.out.println(\"Thread \" + threadIndex + \" has been notified\");\n }\n }\n }",
"public void setAutoSynchronizationEnabled(boolean b);",
"private native void nGetDevices(Vector deviceList);",
"public void requestExtraSync()\n {\n executor.requestExtraSync();\n }",
"public void sync()\n {\n setAutoSync(false);\n // simply send sync command\n super.executionSync(Option.SYNC);\n }",
"void sync()throws IOException;",
"void sync() throws IOException;",
"@Override\n\tpublic void update(Kernel kernel, float t, float dt) {}",
"Boolean autoSync();",
"private void handleDeviceProvisioned() {\n Assert.isMainThread();\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onDeviceProvisioned();\n }\n }\n if (this.mDeviceProvisionedObserver != null) {\n this.mContext.getContentResolver().unregisterContentObserver(this.mDeviceProvisionedObserver);\n this.mDeviceProvisionedObserver = null;\n }\n }",
"synchronized void endCriticalUse(){\nSC = false;\nJeton=false;\n\nif (procId==0){\n\tSyncMessage sm = new SyncMessage(MsgType.JETON, 0, procId);\n\tsendTo(0, sm);\n}else{\n\tSyncMessage sm = new SyncMessage(MsgType.JETON, 1, procId);\n\tsendTo(1, sm);\n}\n\n}",
"ManagementLockObject.Update update();",
"public void initDevices() {\n for (Device device: deviceList) {\n device.init(getCpu().getTime());\n }\n }",
"public void submitSyncDeviceTrafficTask() {\n\t\tL.i(this.getClass(), \"SyncDeviceTrafficTask()...\");\n\t\taddTask(new SyncDeviceTrafficTask());\n\t}",
"@Override\n public void runOpMode() {\n leftDrive = hardwareMap.get(DcMotor.class, \"left_drive\");\n rightDrive = hardwareMap.get(DcMotor.class, \"right_drive\");\n intake = hardwareMap.get (DcMotor.class, \"intake\");\n dropServo = hardwareMap.get(Servo.class, \"drop_Servo\");\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n rightDrive.setDirection(DcMotor.Direction.FORWARD);\n\n dropServo.setPosition(1.0);\n waitForStart();\n dropServo.setPosition(0.6);\n sleep(500);\n VuforiaOrientator();\n encoderSequence(\"dumbDrive\");\n\n\n }",
"public void doSyncUptime() {\n long timestamp = System.nanoTime();\n uptime += timestamp - lastUptimeSyncTimestamp;\n lastUptimeSyncTimestamp = timestamp;\n lastCpuTimeSyncTimestamp = cpu.getTime();\n long uptimeCpuTimeDifference = getCpuTimeNanos() - uptime;\n uptimeCpuTimeDifference = (uptimeCpuTimeDifference > 0) ? uptimeCpuTimeDifference : 1L;\n long uptimeCpuTimeDifferenceMillis = uptimeCpuTimeDifference / NANOSECS_IN_MSEC;\n int uptimeCpuTimeDifferenceNanos = (int) (uptimeCpuTimeDifference % NANOSECS_IN_MSEC);\n try {\n this.wait(uptimeCpuTimeDifferenceMillis, uptimeCpuTimeDifferenceNanos);\n } catch (InterruptedException e) {\n }\n }",
"void syncGroup();",
"private void sync() {\n float loopSlot = 1.0f/TARGET_FPS;\n double endTime = updateTimer.getLastRecordedTime() + loopSlot;\n while(updateTimer.getTime() < endTime) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n Thread.currentThread().interrupt();\n }\n }\n }",
"protected void synchWithTarget(Map<String, Monitor> map) throws MonitorException {\n /*\n * synch must happen with syncWaitMs from now. Default is 5 seconds,\n * which is reasonabally generous and should provide for extreme\n * situations like startup delays due to allocation of large ISM heaps.\n */\n long timeLimit = System.currentTimeMillis() + syncWaitMs;\n\n String name = \"hotspot.rt.hrt.ticks\";\n LongMonitor ticks = (LongMonitor)pollFor(map, name, timeLimit);\n\n /*\n * loop waiting for the ticks counter to be non zero. This is\n * an indication that the jvm is initialized.\n */\n log(\"synchWithTarget: \" + lvmid + \" \");\n while (ticks.longValue() == 0) {\n log(\".\");\n\n try { Thread.sleep(20); } catch (InterruptedException e) { }\n\n if (System.currentTimeMillis() > timeLimit) {\n lognl(\"failed: \" + lvmid);\n throw new MonitorException(\"Could Not Synchronize with target\");\n }\n }\n lognl(\"success: \" + lvmid);\n }",
"public static void checkVolatile() {\n\t\tThreadGroup group = new ThreadGroup(\"volatile-demo-group\");\n\t\t\n\t\t\n\t\tThread t1 = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor(int i=0; i<100000000; i++) {\n\t\t\t\t\tvol++;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tnew Thread(group, t1, \"thread-1\").start();\n\t\t\n\t\tThread t2 = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor(int i=0; i<100000000; i++) {\n\t\t\t\t\tvol++;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tnew Thread(group, t2, \"thread-2\").start();\n\t\t\n\t\twhile(group.activeCount() > 0) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(30);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"volatile - \" + vol);\n\t}",
"private void deviceUpdated() {\n if (!mIsCreate) {\n mSyncthingService.getApi().editDevice(mDevice, getActivity(), this);\n }\n }",
"@Override\n\tprotected void sync() {\n\n\t\tString key = null;\n\t\ttry {\n\t\t\tkey = DeviceKeyUtils.getDeviceKey(mContext);\n\t\t} catch (RuntimeException e) {\n\t\t\tUtil.logException(e);\n\t\t\tdoneSyncing();\n\t\t}\n\n\t\t/*\n\t\t * We don't really care about the response... we're not going to retry\n\t\t * if the login fails, since it's really only for tracking usage data.\n\t\t */\n\t\tResponse response = mApiService.login(key);\n\n\t\tdoneSyncing();\n\t}",
"void deviceInitializationDone(final NodeId nodeId, final boolean success);",
"@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.548 -0500\", hash_original_method = \"AFDADB0B0E37C71FB8D4BE31CA39F990\", hash_generated_method = \"B6827FF2C6A650BBE4692173D7372E8C\")\n \npublic Message sendMessageSynchronously(int what, int arg1, int arg2) {\n Message msg = Message.obtain();\n msg.what = what;\n msg.arg1 = arg1;\n msg.arg2 = arg2;\n Message resultMsg = sendMessageSynchronously(msg);\n return resultMsg;\n }",
"@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.552 -0500\", hash_original_method = \"35A5E39A8A1820326BDEA32FA9EDD100\", hash_generated_method = \"CE016FA9F8D335C8879BF83223FA7CD6\")\n \npublic Message sendMessageSynchronously(int what, Object obj) {\n Message msg = Message.obtain();\n msg.what = what;\n msg.obj = obj;\n Message resultMsg = sendMessageSynchronously(msg);\n return resultMsg;\n }",
"@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.550 -0500\", hash_original_method = \"EEAA69B320108852E46A6304535CC9F5\", hash_generated_method = \"D642B9F06D082255CC2F6570E4A84B40\")\n \npublic Message sendMessageSynchronously(int what, int arg1, int arg2, Object obj) {\n Message msg = Message.obtain();\n msg.what = what;\n msg.arg1 = arg1;\n msg.arg2 = arg2;\n msg.obj = obj;\n Message resultMsg = sendMessageSynchronously(msg);\n return resultMsg;\n }",
"@Override\r\n public void onUserSet(GenericDevice dev, PDeviceHolder devh, PUserHolder us) {\n\r\n }",
"public void initDevice() {\r\n\t\t\r\n\t}",
"private void proceedAfterPermission() {\n new SDsync().execute();\n\n }",
"@VulkanAPIFunctionType(vulkanFunction = \"vkFlushMappedMemoryRanges\")\n void flush()\n throws VulkanException;",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tSmartDashboard.putNumber(\"Gyro\", Robot.drivebase.driveGyro.getAngle());\n\n\t\tScheduler.getInstance().run();\n\t\tisAutonomous = true;\n\t\tisTeleoperated = false;\n\t\tisEnabled = true;\n\t\tvisionNetworkTable.getGearData();\n\t\tvisionNetworkTable.showGearData();\n\t\tSmartDashboard.putNumber(\"GM ACTUAL POSITION\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\t\t\n\t\tupdateLedState();\n\t\t//visionNetworkTable.getHighData();\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tmCpuinfo = ShellHelper.getProc(CPU_INFO_PROC);\n\t\t\t\tupdateCpuStats();\n\t\t\t\tfor (LogicalCpu c : mLogicalCpus) {\n\t\t\t\t\tc.updateFrequency();\n\t\t\t\t\tc.updateGovernor();\n\t\t\t\t\tc.updateTimeInFrequency();\n\t\t\t\t\tc.updateTotalTransitions();\n\t\t\t\t}\n\t\t\t}",
"public void triggerMutex() {\n if (mutex.availablePermits() == 0) {\n mutex.release();\n } else {\n try {\n mutex.acquire();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }",
"public void triggerMutex() {\n if (mutex.availablePermits() == 0) {\n mutex.release();\n } else {\n try {\n mutex.acquire();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }",
"@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.546 -0500\", hash_original_method = \"69DA3E1B323882B9D4B744C6E35751A3\", hash_generated_method = \"60004DC4003AFFE42822995754840E35\")\n \npublic Message sendMessageSynchronously(int what, int arg1) {\n Message msg = Message.obtain();\n msg.what = what;\n msg.arg1 = arg1;\n Message resultMsg = sendMessageSynchronously(msg);\n return resultMsg;\n }",
"@Override\n public void runOpMode() throws InterruptedException {\n distanceSensorInRange = false;\n myGlyphLift = new glyphLift(hardwareMap.dcMotor.get(\"glyph_lift\"));\n myColorSensorArm = new colorSensorArm(hardwareMap.servo.get(\"color_sensor_arm\"),hardwareMap.colorSensor.get(\"sensor_color\"), hardwareMap.servo.get(\"color_sensor_arm_rotate\"));\n myMechDrive = new mechDriveAuto(hardwareMap.dcMotor.get(\"front_left_motor\"), hardwareMap.dcMotor.get(\"front_right_motor\"), hardwareMap.dcMotor.get(\"rear_left_motor\"), hardwareMap.dcMotor.get(\"rear_right_motor\"));\n myGlyphArms = new glyphArms(hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_left_glyph_arm\"), hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_right_glyph_arm\"));\n myBoardArm = new boardArm(hardwareMap.dcMotor.get(\"board_arm\"));\n myRevColorDistanceSensor = new revColorDistanceSensor(hardwareMap.get(ColorSensor.class, \"rev_sensor_color_distance\"), hardwareMap.get(DistanceSensor.class, \"rev_sensor_color_distance\"));\n\n\n myColorSensorArm.colorSensorArmUpSlow();\n myColorSensorArm.colorRotateResting();\n //myGlyphArms.openRaisedGlyphArms(); //ensures robot is wihin 18\" by 18\" parameters\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n parameters.vuforiaLicenseKey = \"ASmjss3/////AAAAGQGMjs1d6UMZvrjQPX7J14B0s7kN+rWOyxwitoTy9i0qV7D+YGPfPeeoe/RgJjgMLabjIyRXYmDFLlJYTJvG9ez4GQSI4L8BgkCZkUWpAguRsP8Ah/i6dXIz/vVR/VZxVTR5ItyCovcRY+SPz3CP1tNag253qwl7E900NaEfFh6v/DalkEDppFevUDOB/WuLZmHu53M+xx7E3x35VW86glGKnxDLzcd9wS1wK5QhfbPOExe97azxVOVER8zNNF7LP7B+Qeticfs3O9pGXzI8lj3zClut/7aDVwZ10IPVk4oma6CO8FM5UtNLSb3sicoKV5QGiNmxbbOlnPxz9qD38UAHshq2/y0ZjI/a8oT+doCr\";\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n waitForStart();\n\n relicTrackables.activate();\n\n while (opModeIsActive()) {\n myGlyphArms.closeGlyphArms();\n sleep(2000);\n myMechDrive.vuforiaLeft(myGlyphArms);\n sleep(1000);\n requestOpModeStop();\n }\n }",
"@Deprecated\n void tickDevice(INDArray array);",
"public void deviceLoaded(Device device);",
"@Test\n\tvoid synchGroups() {\n\t\tassumeWritable(c);\n\t\ttry (var u1 = c.update(GROUP_SYNC_MAKE_TEMP_TABLE)) {\n\t\t\tassertEquals(List.of(), u1.getParameters());\n\t\t\tc.transaction(() -> {\n\t\t\t\tu1.call();\n\t\t\t\ttry (var u2 = c.update(GROUP_SYNC_INSERT_TEMP_ROW);\n\t\t\t\t\t\tvar u3 = c.update(GROUP_SYNC_ADD_GROUPS);\n\t\t\t\t\t\tvar u4 = c.update(GROUP_SYNC_REMOVE_GROUPS);\n\t\t\t\t\t\tvar u5 = c.update(GROUP_SYNC_DROP_TEMP_TABLE)) {\n\t\t\t\t\tassertEquals(List.of(\"group_name\", \"group_type\"),\n\t\t\t\t\t\t\tu2.getParameters());\n\t\t\t\t\tassertEquals(0, u2.call(NO_NAME, INTERNAL));\n\t\t\t\t\tassertEquals(List.of(\"user_id\"), u3.getParameters());\n\t\t\t\t\tassertEquals(0, u3.call(NO_USER));\n\t\t\t\t\tassertEquals(List.of(\"user_id\"), u4.getParameters());\n\t\t\t\t\tassertEquals(0, u4.call(NO_USER));\n\t\t\t\t\tassertEquals(List.of(), u5.getParameters());\n\t\t\t\t\tu5.call();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"@Test\n public void testSyncWhenNeedToSyncMacsWithStatefulSnapshotAndRelocate() {\n\n String currentMac1 = \"1\";\n String currentMac2 = \"3\";\n String snapshottedMac1 = \"1\";\n String snapshottedMac2 = \"2\";\n\n String reallocatingMac = \"4\";\n\n VmNic currentNic1 = createNic(currentMac1);\n VmNic currentNic2 = createNic(currentMac2);\n VmNic snapshottedNic1 = createNic(snapshottedMac1);\n VmNic snapshottedNic2 = createNic(snapshottedMac2);\n\n List<String> macsToBeAdded = Collections.singletonList(snapshottedMac2);\n when(macPool.addMacs(macsToBeAdded)).thenReturn(macsToBeAdded);\n when(macPool.allocateNewMac()).thenReturn(reallocatingMac);\n\n createSyncMacsOfDbNicsWithSnapshot(false)\n .sync(Arrays.asList(currentNic1, currentNic2), Arrays.asList(snapshottedNic1, snapshottedNic2));\n\n verify(snapshottedNic2).setMacAddress(reallocatingMac);\n\n verifyMethodCallOn(VmNic::getMacAddress, 1, currentNic1, currentNic2);\n\n //because in reallocation all(in this case) snapshotted nics will be queried again.\n verifyMethodCallOn(VmNic::getMacAddress, 2, snapshottedNic1, snapshottedNic2);\n verify(macPool).allocateNewMac();\n\n verify(macPool).freeMacs(Collections.singletonList(currentMac2));\n\n verify(macPool).addMacs(macsToBeAdded);\n verifyNoMoreInteractionsOn(snapshottedNic1, snapshottedNic2, currentNic1, currentNic2);\n }",
"@SuppressWarnings(\"unused\")\n\t@Override\n\tpublic void run() {\n\t\tList<LineageCacheEntry> lockedOrLiveEntries = new ArrayList<>();\n\t\tint count = 0;\n\n\t\t// Stop if 1) Evicted the request number of entries, 2) The parallel\n\t\t// CPU instruction is ended, and 3) No non-live entries left in the cache.\n\t\tlong t0 = DMLScript.STATISTICS ? System.nanoTime() : 0;\n\t\t/*while (!LineageGPUCacheEviction.isGPUCacheEmpty())\n\t\t{\n\t\t\tif (LineageCacheConfig.STOPBACKGROUNDEVICTION)\n\t\t\t\t// This logic reduces #evictions if the cpu instructions is so small\n\t\t\t\t// that it ends before the background thread reaches this condition.\n\t\t\t\t// However, this check decreases race conditions.\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tif (numEvicts > 0 && count > numEvicts)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tLineageCacheEntry le = LineageGPUCacheEviction.pollFirstEntry();\n\t\t\tGPUObject cachedGpuObj = le.getGPUObject();\n\t\t\tGPUObject headGpuObj = cachedGpuObj.lineageCachedChainHead != null\n\t\t\t\t\t? cachedGpuObj.lineageCachedChainHead : cachedGpuObj;\n\t\t\t// Check and continue if any object in the linked list is locked\n\t\t\tboolean lockedOrLive = false;\n\t\t\tGPUObject nextgpuObj = headGpuObj;\n\t\t\twhile (nextgpuObj!= null) {\n\t\t\t\tif (!nextgpuObj.isrmVarPending() || nextgpuObj.isLocked()) // live or locked\n\t\t\t\t\tlockedOrLive = true;\n\t\t\t\tnextgpuObj = nextgpuObj.nextLineageCachedEntry;\n\t\t\t}\n\t\t\tif (lockedOrLive) {\n\t\t\t\tlockedOrLiveEntries.add(le);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// TODO: First remove the gobj chains that don't contain any live and dirty objects.\n\t\t\t//currentAvailableMemory += headGpuObj.getSizeOnDevice();\n\n\t\t\t// Copy from device to host for all live and dirty objects\n\t\t\tboolean copied = false;\n\t\t\tnextgpuObj = headGpuObj;\n\t\t\twhile (nextgpuObj!= null) {\n\t\t\t\t// Keeping isLinCached as True here will save data deletion by copyFromDeviceToHost\n\t\t\t\tif (!nextgpuObj.isrmVarPending() && nextgpuObj.isDirty()) { //live and dirty\n\t\t\t\t\tnextgpuObj.copyFromDeviceToHost(null, true, true);\n\t\t\t\t\tcopied = true;\n\t\t\t\t}\n\t\t\t\tnextgpuObj.setIsLinCached(false);\n\t\t\t\tnextgpuObj = nextgpuObj.nextLineageCachedEntry;\n\t\t\t}\n\n\t\t\t// Copy from device cache to CPU lineage cache if not already copied\n\t\t\tLineageGPUCacheEviction.copyToHostCache(le, null, copied);\n\n\t\t\t// For all the other objects, remove and clear data (only once)\n\t\t\tnextgpuObj = headGpuObj;\n\t\t\tboolean freed = false;\n\t\t\tsynchronized (nextgpuObj.getGPUContext().getMemoryManager().getGPUMatrixMemoryManager().gpuObjects) {\n\t\t\t\twhile (nextgpuObj!= null) {\n\t\t\t\t\t// If not live or live but not dirty\n\t\t\t\t\tif (nextgpuObj.isrmVarPending() || !nextgpuObj.isDirty()) {\n\t\t\t\t\t\tif (!freed) {\n\t\t\t\t\t\t\tnextgpuObj.clearData(null, true);\n\t\t\t\t\t\t\t//FIXME: adding to rmVar cache causes multiple failures due to concurrent\n\t\t\t\t\t\t\t//access to the rmVar cache and other data structures. VariableCP instruction\n\t\t\t\t\t\t\t//and other instruction free memory and add to rmVar cache in parallel to\n\t\t\t\t\t\t\t//the background eviction task, which needs to be synchronized.\n\t\t\t\t\t\t\tfreed = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tnextgpuObj.clearGPUObject();\n\t\t\t\t\t}\n\t\t\t\t\tnextgpuObj = nextgpuObj.nextLineageCachedEntry;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Clear the GPUOjects chain\n\t\t\tGPUObject currgpuObj = headGpuObj;\n\t\t\twhile (currgpuObj.nextLineageCachedEntry != null) {\n\t\t\t\tnextgpuObj = currgpuObj.nextLineageCachedEntry;\n\t\t\t\tcurrgpuObj.lineageCachedChainHead = null;\n\t\t\t\tcurrgpuObj.nextLineageCachedEntry = null;\n\t\t\t\tnextgpuObj.lineageCachedChainHead = null;\n\t\t\t\tcurrgpuObj = nextgpuObj;\n\t\t\t}\n\n\t\t\t//if(currentAvailableMemory >= size)\n\t\t\t\t// This doesn't guarantee allocation due to fragmented freed memory\n\t\t\t//\tA = cudaMallocNoWarn(tmpA, size, null); \n\t\t\tif (DMLScript.STATISTICS) {\n\t\t\t\tLineageCacheStatistics.incrementGpuAsyncEvicts();\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\t// Add the locked entries back to the eviction queue\n\t\tif (!lockedOrLiveEntries.isEmpty())\n\t\t\tLineageGPUCacheEviction.addEntryList(lockedOrLiveEntries);\n\t\t\n\t\tif (DMLScript.STATISTICS) //TODO: dedicated statistics for lineage\n\t\t\tGPUStatistics.cudaEvictTime.add(System.nanoTime() - t0); */\n\t}",
"@Override\n\tpublic void run() {\n\t\tStaticSynchronized.execute();\n\t\tStaticSynchronized.execute2();\n\t\tStaticSynchronized.execute3();\n\t}",
"void lock();",
"protected void afterNormalAccess(RDVariable rdv, RDThread rdt) {\n\t\t/*\n\t\t * unlock the explicit lock\n\t\t */\n\n\t\trdv.raceAvoidLock.unlock();\n\n\t\tif (DEBUG)\n\t\t\tRaceDetector.printDebug(\" explicit lock (\"\n\t\t\t\t\t+ System.identityHashCode(rdv) + \") unlocked \"\n\t\t\t\t\t+ Thread.currentThread());\n\t}",
"@Override\n\tpublic void execute() {\n\t\t_cpu.setM_d8(_cpu.getM_h8());\n\t}",
"public void runOpMode() {\n leftBackDrive = hardwareMap.get(DcMotor.class, \"left_back_drive\"); //port 0, hub1\n rightBackDrive = hardwareMap.get(DcMotor.class, \"right_back_drive\"); //port 1, hub1\n leftFrontDrive = hardwareMap.get(DcMotor.class, \"left_front_drive\"); //port 2, hub1\n rightFrontDrive = hardwareMap.get(DcMotor.class, \"right_front_drive\"); //port 3, hub1\n craneExtend = hardwareMap.get(DcMotor.class, \"craneExtend\"); //port 0, hub2\n cranePitch = hardwareMap.get(DcMotor.class, \"cranePitch\"); //port 1, hub2\n craneElevate = hardwareMap.get(DcMotor.class, \"craneElevate\"); //port 2, hub2\n fakeMotor = hardwareMap.get(DcMotor.class, \"fakeMotor\"); //port 2, hub3\n craneGrab = hardwareMap.get(Servo.class, \"craneGrab\"); //port 0, servo\n craneGrabAttitude = hardwareMap.get(Servo.class, \"craneGrabAttitude\"); //port 2, servo\n trayGrab = hardwareMap.get(Servo.class, \"trayGrab\"); //port 1, servo\n flipperLeft = hardwareMap.get(Servo.class, \"flipperLeft\"); //port 3. servo\n flipperRight = hardwareMap.get(Servo.class, \"flipperRight\"); //port 4, servo\n \n //Setting the motor directions\n leftBackDrive.setDirection(DcMotor.Direction.FORWARD);\n rightBackDrive.setDirection(DcMotor.Direction.REVERSE);\n leftFrontDrive.setDirection(DcMotor.Direction.FORWARD);\n rightFrontDrive.setDirection(DcMotor.Direction.REVERSE);\n\n //Initializing variables\n \n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update(); //Done initalizing\n\n //Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n\n //run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n \n//******************************************************************************\n\n //Drive controls\n if (gamepad1.left_trigger>0 || gamepad1.right_trigger>0) { //Crab\n leftBackDrive.setPower(gamepad1.left_stick_x*0.8);\n rightBackDrive.setPower(-gamepad1.left_stick_x*0.8);\n leftFrontDrive.setPower(-gamepad1.left_stick_x*0.8);\n rightFrontDrive.setPower(gamepad1.left_stick_x*0.8);\n }\n\n else { //Tank\n leftBackDrive.setPower(-gamepad1.left_stick_x);\n rightBackDrive.setPower(-gamepad1.right_stick_x);\n leftFrontDrive.setPower(-gamepad1.left_stick_x);\n rightFrontDrive.setPower(-gamepad1.right_stick_x);\n }\n }\n \n//******************************************************************************\n\n //Crane control\n \n \n//******************************************************************************\n\n //Telemetry display\n telemetry.addData(\"Run Time:\", \"\" + runtime.toString());\n telemetry.addData(\"Motor Power\", \"L (%.2f), R (%.2f)\", gamepad1.left_stick_y, gamepad1.right_stick_y);\n telemetry.update();\n }",
"void synchronizationDone();",
"public void runOpMode() throws InterruptedException {\n leftWheel = hardwareMap.dcMotor.get(\"leftWheel\");\n rightWheel = hardwareMap.dcMotor.get(\"rightWheel\");\n leftArm = hardwareMap.dcMotor.get(\"leftArm\");\n rightArm = hardwareMap.dcMotor.get(\"rightArm\");\n rightDistance = hardwareMap.get(DistanceSensor.class, \"rightDistance\");\n leftColor = hardwareMap.colorSensor.get(\"leftColor\");\n rightWheel.setDirection(DcMotorSimple.Direction.REVERSE);\n count = 21;\n step = 3;\n subStep = 0;\n\n sample_ready = false;\n lander_unlatched = false;\n\n //prepares and resets robot by resetting encoders\n resetDriveEncoders();\n\n //prepares robot for arm movement by setting arm motors to go to a certain position-modifiable by user input (the d-pad)\n// leftArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n// rightArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n //HSV value array\n\n //Sends color sensor input values to the phone\n waitForStart();\n\n while (opModeIsActive()) {\n telemetry.update();\n\n\n telemetry.addLine()\n .addData(\"step\", step)\n .addData(\"subStep\", subStep)\n .addData(\"count\", count);\n telemetry.addLine()\n .addData(\"RightWheel: \", rightWheel.getCurrentPosition())\n .addData(\"LeftWheel: \", leftWheel.getCurrentPosition())\n .addData(\"TICKS_PER_WHEEL_ROTATION: \", TICKS_PER_WHEEL_ROTATION);\n\n\n//sets the step of where we are in the process to one\n // step = 1;\n//enables the if statement for lander_unlatched\n lander_unlatched = true;\n//moves the robot from the lander to where the samples are\n if (step == 1) {\n// leftWheel.setPower(0.7);\n// rightWheel.setPower(0.5);\n// leftWheel.setTargetPosition(1621);\n// rightWheel.setTargetPosition(820);\n step = 2;\n }\n if (step == 2) {\n// if (hsvValues[0] > 50) {\n// leftWheel.setPower(-0.7);\n// rightWheel.setPower(-0.5);\n// leftWheel.setTargetPosition(1221);\n step = 3;\n }\n// if step 2 is finished, makes the robot turn toward the wall, then drives against the wall.\n if (step == 3) {\n moveToDepot();\n }\n //1150 Target Units == about 1 foot, 96 Units/inch\n//sets the wheel power to 0 to limit movement\n// if (rightWheel.getCurrentPosition() == -rotation) {\n // rightWheel.setPower(0);\n //leftWheel.setPower(0);\n// }\n// if (leftWheel.getCurrentPosition() == 100) {\n// leftWheel.setPower(0);\n// rightWheel.setPower(0);\n// }\n\n sample_ready = true;\n\n// if (sample_ready) {\n//\n }\n }",
"@Override\n public void runOpMode() {\n try {\n leftfrontDrive = hardwareMap.get(DcMotor.class, \"frontLeft\");\n leftfrontDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n rightfrontDrive = hardwareMap.get(DcMotor.class, \"frontRight\");\n rightfrontDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n leftbackDrive = hardwareMap.get(DcMotor.class, \"backLeft\");\n leftbackDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftbackDrive.setDirection(DcMotor.Direction.REVERSE);\n\n rightbackDrive = hardwareMap.get(DcMotor.class, \"backRight\");\n rightbackDrive.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n lift = hardwareMap.get(DcMotor.class, \"Lift\");\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lift.setDirection(DcMotor.Direction.REVERSE);\n\n markerArm = hardwareMap.get(Servo.class, \"markerArm\");\n\n armActivator = hardwareMap.get(DcMotor.class, \"armActivator\");\n armActivator.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n } catch (IllegalArgumentException iax) {\n bDebug = true;\n }\n\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"BNO055IMUCalibration.json\";\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n\n waitForStart(); //the rest of the code begins after the play button is pressed\n\n sleep(3000);\n\n drive(0.35, 0.5);\n\n turn(90.0f);\n\n drive(1.8, 0.5);\n\n turn(45.0f);\n\n drive(2.5, -0.5);\n\n sleep(1000);\n\n markerArm.setPosition(1);\n\n sleep(1000);\n\n markerArm.setPosition(0);\n\n sleep(1000);\n\n drive(2.5,.75);\n\n turn(179.0f);\n\n drive(1.5, 1.0);\n\n requestOpModeStop(); //end of autonomous\n }",
"public void setSyncIndex(int index) {\n }",
"Reference getDevice();",
"@Override\n public void changeGpu(String newGpu) {\n gpu = newGpu;\n }",
"@Test\n\tpublic void test_synchronization() throws InterruptedException, ExecutionException {\n\t\t\n\t\tIkanowV1SyncService_LibraryJars s1 = new IkanowV1SyncService_LibraryJars(BeanTemplateUtils.clone(_service_config).with(\"v1_enabled\", true).done(), \n\t\t\t\t_service_context);\n\t\tIkanowV1SyncService_LibraryJars s2 = new IkanowV1SyncService_LibraryJars(BeanTemplateUtils.clone(_service_config).with(\"v1_enabled\", true).done(), \n\t\t\t\t_service_context);\n\t\tIkanowV1SyncService_LibraryJars s3 = new IkanowV1SyncService_LibraryJars(BeanTemplateUtils.clone(_service_config).with(\"v1_enabled\", true).done(), \n\t\t\t\t_service_context);\n\t\t\n\t\tint old = IkanowV1SyncService_LibraryJars._num_leader_changes;\n\t\t\n\t\ts1.start(); s2.start(); s3.start();\n\t\tfor (int i = 0; i < 4; ++i) {\n\t\t\ttry { Thread.sleep(1000); } catch (Exception e) {}\n\t\t}\n\t\ts1.stop(); s2.stop(); s3.stop();\n\t\t\n\t\tassertEquals(old + 1, IkanowV1SyncService_LibraryJars._num_leader_changes);\n\t\t\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tfinal ICrudService<JsonNode> v1_config_db = _service_context.getCoreManagementDbService().getUnderlyingPlatformDriver(ICrudService.class, Optional.of(\"social.share\")).get();\t\t\t\t\n\t\t\n\t\tassertTrue(\"Query optimized\", v1_config_db.deregisterOptimizedQuery(Arrays.asList(\"title\")));\n\t\t\n\t}",
"@Test(timeout=5000)\n public void testPVDevice() throws Exception\n {\n final PVDevice device = new PVDevice(new DeviceInfo(\"sim://sine\", \"demo\"));\n device.start();\n try\n {\n device.addListener(this);\n\n // Wait for update\n updates.await();\n }\n finally\n {\n device.stop();\n }\n }",
"@GuardedBy(\"getLockObject()\")\n private void migrateToProfileOnOrganizationOwnedDeviceIfCompLocked() {\n if (VERBOSE_LOG) Slogf.d(LOG_TAG, \"Checking whether we need to migrate COMP \");\n final int doUserId = mOwners.getDeviceOwnerUserId();\n if (doUserId == UserHandle.USER_NULL) {\n if (VERBOSE_LOG) Slogf.d(LOG_TAG, \"No DO found, skipping migration.\");\n return;\n }\n\n final List<UserInfo> profiles = mUserManager.getProfiles(doUserId);\n if (profiles.size() != 2) {\n if (profiles.size() == 1) {\n if (VERBOSE_LOG) Slogf.d(LOG_TAG, \"Profile not found, skipping migration.\");\n } else {\n Slogf.wtf(LOG_TAG, \"Found \" + profiles.size() + \" profiles, skipping migration\");\n }\n return;\n }\n\n final int poUserId = getManagedUserId(doUserId);\n if (poUserId < 0) {\n Slogf.wtf(LOG_TAG, \"Found DO and a profile, but it is not managed, skipping migration\");\n return;\n }\n\n final ActiveAdmin doAdmin = getDeviceOwnerAdminLocked();\n final ActiveAdmin poAdmin = getProfileOwnerAdminLocked(poUserId);\n if (doAdmin == null || poAdmin == null) {\n Slogf.wtf(LOG_TAG, \"Failed to get either PO or DO admin, aborting migration.\");\n return;\n }\n\n final ComponentName doAdminComponent = mOwners.getDeviceOwnerComponent();\n final ComponentName poAdminComponent = mOwners.getProfileOwnerComponent(poUserId);\n if (doAdminComponent == null || poAdminComponent == null) {\n Slogf.wtf(LOG_TAG, \"Cannot find PO or DO component name, aborting migration.\");\n return;\n }\n if (!doAdminComponent.getPackageName().equals(poAdminComponent.getPackageName())) {\n Slogf.e(LOG_TAG, \"DO and PO are different packages, aborting migration.\");\n return;\n }\n\n Slogf.i(LOG_TAG, \"Migrating COMP to PO on a corp owned device; primary user: %d; \"\n + \"profile: %d\", doUserId, poUserId);\n\n Slogf.i(LOG_TAG, \"Giving the PO additional power...\");\n setProfileOwnerOnOrganizationOwnedDeviceUncheckedLocked(poAdminComponent, poUserId, true);\n Slogf.i(LOG_TAG, \"Migrating DO policies to PO...\");\n moveDoPoliciesToProfileParentAdminLocked(doAdmin, poAdmin.getParentActiveAdmin());\n migratePersonalAppSuspensionLocked(doUserId, poUserId, poAdmin);\n saveSettingsLocked(poUserId);\n Slogf.i(LOG_TAG, \"Clearing the DO...\");\n final ComponentName doAdminReceiver = doAdmin.info.getComponent();\n clearDeviceOwnerLocked(doAdmin, doUserId);\n Slogf.i(LOG_TAG, \"Removing admin artifacts...\");\n removeAdminArtifacts(doAdminReceiver, doUserId);\n Slogf.i(LOG_TAG, \"Uninstalling the DO...\");\n uninstallOrDisablePackage(doAdminComponent.getPackageName(), doUserId);\n Slogf.i(LOG_TAG, \"Migration complete.\");\n\n // Note: KeyChain keys are not removed and will remain accessible for the apps that have\n // been given grants to use them.\n\n DevicePolicyEventLogger\n .createEvent(DevicePolicyEnums.COMP_TO_ORG_OWNED_PO_MIGRATED)\n .setAdmin(poAdminComponent)\n .write();\n }",
"@Override\r\n\tpublic void doConcurrentJob() {\n\t\tthis.vop.interatorTheVector();\r\n\t}",
"public static void restoreDevices() {\n/* 95 */ D3DRenderQueue d3DRenderQueue = getInstance();\n/* 96 */ d3DRenderQueue.lock();\n/* */ try {\n/* 98 */ d3DRenderQueue.ensureCapacity(4);\n/* 99 */ d3DRenderQueue.getBuffer().putInt(77);\n/* 100 */ d3DRenderQueue.flushNow();\n/* */ } finally {\n/* 102 */ d3DRenderQueue.unlock();\n/* */ } \n/* */ }",
"@DSSink({DSSinkKind.SYNCHRONIZATION_DATA})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.544 -0500\", hash_original_method = \"42BD69B2114459AD691B3AEBDAE73546\", hash_generated_method = \"C285A4D23EAB85D82915D70E1F66F84C\")\n \npublic Message sendMessageSynchronously(int what) {\n Message msg = Message.obtain();\n msg.what = what;\n Message resultMsg = sendMessageSynchronously(msg);\n return resultMsg;\n }",
"@Test(timeout = 30000)\n public void testConcurrentWriteAndDeleteBlock() throws Exception {\n final int numBlocks = 1000;\n final int threadCount = 10;\n // Generate data blocks.\n ExecutorService pool = Executors.newFixedThreadPool(threadCount);\n List<Future<?>> futureList = new ArrayList<>();\n Random random = new Random();\n // Random write block and delete half of them.\n for (int i = 0; i < threadCount; i++) {\n Thread thread = new Thread() {\n @Override\n public void run() {\n try {\n String bpid = BLOCK_POOL_IDS[random.nextInt(BLOCK_POOL_IDS.length)];\n for (int blockId = 0; blockId < numBlocks; blockId++) {\n ExtendedBlock eb = new ExtendedBlock(bpid, blockId);\n ReplicaHandler replica = null;\n try {\n replica = dataset.createRbw(StorageType.DEFAULT, null, eb,\n false);\n if (blockId % 2 > 0) {\n dataset.invalidate(bpid, new Block[]{eb.getLocalBlock()});\n }\n } finally {\n if (replica != null) {\n replica.close();\n }\n }\n }\n // Just keep final consistency no need to care exception.\n } catch (Exception ignore) {}\n }\n };\n thread.setName(\"AddBlock\" + i);\n futureList.add(pool.submit(thread));\n }\n // Wait for data generation\n for (Future<?> f : futureList) {\n f.get();\n }\n // Wait for the async deletion task finish.\n GenericTestUtils.waitFor(() -> dataset.asyncDiskService.countPendingDeletions() == 0,\n 100, 10000);\n for (String bpid : dataset.volumeMap.getBlockPoolList()) {\n assertEquals(numBlocks / 2, dataset.volumeMap.size(bpid));\n }\n }",
"public void syncFreePaint(Screen screen, Function func, int nThreads);",
"public void setSyncMonitor(SyncMonitor monitor) {\n super.setSyncMonitor(monitor);\n for (int i = 0; i < commandRunners.size(); i++) {\n CommandRunner runner = (CommandRunner) commandRunners.elementAt(i);\n runner.setSyncMonitor(monitor);\n }\n }",
"public synchronized void write(int update) throws InterruptedException\n {\n while (!bufferEmpty(\"Producer\"))\n // while (!bufferEmpty)\n {\n //Console.println(\"Producer Waiting on Buffer\");\n\n this.wait();\n\n // bufferEmpty = bufferEmpty(\"Producer\");\n }\n\n // Console.println(\"Producer writing\" + update + \" to Buffer\");\n theBuffer = update;\n this.notify();\n }"
] | [
"0.6548537",
"0.6374037",
"0.6135193",
"0.6044829",
"0.5943426",
"0.57753646",
"0.56614983",
"0.5658973",
"0.5657132",
"0.54374117",
"0.541309",
"0.5401456",
"0.5258495",
"0.5159123",
"0.51565325",
"0.5115747",
"0.51145434",
"0.5100945",
"0.50755084",
"0.503655",
"0.49823648",
"0.4972837",
"0.49560633",
"0.4927304",
"0.49125755",
"0.49050605",
"0.4861675",
"0.48508814",
"0.47942394",
"0.4780651",
"0.47758728",
"0.47741538",
"0.47591624",
"0.46728212",
"0.4667119",
"0.4656675",
"0.46211532",
"0.46021497",
"0.45962223",
"0.4574439",
"0.45718512",
"0.45671728",
"0.45608044",
"0.4541757",
"0.45408693",
"0.4527864",
"0.45180422",
"0.45007244",
"0.44961545",
"0.448595",
"0.44790375",
"0.4469339",
"0.44649366",
"0.44584528",
"0.445738",
"0.44480258",
"0.44397157",
"0.44277865",
"0.4422398",
"0.442155",
"0.44180477",
"0.44084722",
"0.44027534",
"0.4399842",
"0.4392091",
"0.43862337",
"0.43647656",
"0.4345141",
"0.4343489",
"0.4333447",
"0.4332108",
"0.4332108",
"0.4331746",
"0.4324557",
"0.43218327",
"0.4321612",
"0.4315694",
"0.43154213",
"0.43097824",
"0.43095607",
"0.4296224",
"0.42919528",
"0.42848974",
"0.42735216",
"0.42698064",
"0.42696986",
"0.42617986",
"0.4259573",
"0.42552152",
"0.4240873",
"0.42343205",
"0.423247",
"0.4227728",
"0.42277008",
"0.42265585",
"0.4223067",
"0.42173463",
"0.42158008",
"0.4211915",
"0.42092052"
] | 0.8210247 | 0 |
Read parameters from request. | public String execute(HttpServletRequest request, HttpServletResponse response) {
String userName = request.getParameter("userName");
String userEmail = request.getParameter("userEmail");
String message = request.getParameter("message");
Date date = new Date();
// Parameters validation.
boolean error = false;
if (userName == null || userName.trim().isEmpty()) {
request.setAttribute("errorMessage", "Username is empty");
error = true;
}
//TODO: Add more validations.
if (!error) {
Comment comment = new Comment();
comment.setUserName(userName);
comment.setUserEmail(userEmail);
comment.setMessage(message);
comment.setDate(date);
guestBookDao.addComment(comment);
}
return "index.jsp";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void readParameters()\n {\n readParameters(getData());\n }",
"private void getParameters(HttpServletRequest request) {\n\t\t// Recoger datos\n\t\tconcepto = request.getParameter(\"concepto\");\n\t\tString importeTexto = request.getParameter(\"importe\");\n\t\ttry {\n\t\t\timporte = Double.parseDouble(importeTexto);\n\n\t\t} catch (NumberFormatException e) {\n\t\t\timporte = (double) 0;\n\t\t}\n\t\tLong idCoche = Long.parseLong(request.getParameter(\"id_coche\"));\n\t\tc = daoCoche.getBYId(idCoche);\n\t\tidAgente = Long.parseLong(request.getParameter(\"id_agente\"));\n\t}",
"public void extractParameters() {\n\t\tString[] parameters = body.split(\"&\");\n\n\n\n\t\t//If there is a value given for every parameter, we extract them\n\t\tString[] huh = parameters[0].split(\"=\");\n\t\tif(huh.length>1) {\n\t\t\tusername = huh[1];\n\t\t}else{allParametersGiven=false;}\t\n\n\t\tString[] hoh = parameters[1].split(\"=\");\n\t\tif(hoh.length>1) {\n\t\t\tpassword = hoh[1];\n\t\t}else{allParametersGiven=false;}\n\n\t}",
"private Map<String, String> getParams(final HttpServletRequest request) {\n final Map<String, String> params = new HashMap<>();\n for (final Map.Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\n params.put(entry.getKey(), entry.getValue()[0]);\n }\n return params;\n }",
"public final HttpParams getRequestParams() {\n/* 168 */ return this.requestParams;\n/* */ }",
"private Map<String, String> getParameters(HttpServletRequest request) {\n Map<String, String> params = new HashMap<>();\n for (Map.Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\n String paramName = entry.getKey();\n if (!Arrays.asList(NOT_PARAM_FIELDS).contains(paramName)) {\n String paramValue = null != entry.getValue() ? String.join(Constants.COMMA, entry.getValue()) : Constants.EMPTY_STRING;\n params.put(paramName, paramValue);\n }\n }\n return params;\n }",
"@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }",
"@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }",
"Map<String, String> getParameters();",
"Map<String, Object> getParameters();",
"Map<String, Object> getParameters();",
"String getParameter(HttpServletRequest request, String name) throws ValidationException;",
"Map<String, String[]> getParameterMap();",
"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 title = \"Reading All Request Parameters\";\n\n\tout.println(\"<head><title>ShowParameters Servlet</title></head>\");\n\n out.println(\"<BODY BGCOLOR=\\\"#FDF5E6\\\">\\n\" +\n \"<H1 ALIGN=CENTER>\" + title + \"</H1>\\n\" +\n \"<TABLE BORDER=1 ALIGN=CENTER>\\n\" +\n \"<TR BGCOLOR=\\\"#FFAD00\\\">\\n\" +\n \"<TH>Parameter Name<TH>Parameter Value(s)\");\n\n Enumeration paramNames = request.getParameterNames();\n\n \twhile(paramNames.hasMoreElements())\n \t{\n \t \tString paramName = (String)paramNames.nextElement();\n \t \tout.print(\"<TR><TD>\" + paramName + \"<TD>\");\n\n \t\tString[ ] paramValues = request.getParameterValues(paramName);\n\n \t\tif (paramValues.length == 1)// array is one entry long? contains only empty string\n \t\t{\n \t\tString paramValue = paramValues[0];\n \t\tif (paramValue.length() == 0)\t//parameter has no value\n \t\t\t out.println(\"<I>No Value</I>\"); //displays in italic\n \t\telse\n \t\t\tout.println(paramValue);\n \t\t}\n \t\telse\t\t\t//parameter has multiple values\n \t\t{\n \t\tout.println(\"<UL>\");\n \t\tfor(int i=0; i<paramValues.length; i++)\n \t\t{\n \t\t\tout.println(\"<LI>\" + paramValues[i]);\t\t//values are dislayed\n \t\t}\n\n \t\tout.println(\"</UL>\");\n \t\t}\n \t}\n\n \tout.println(\"</TABLE>\\n</BODY></HTML>\");\n } finally { \n out.close();\n }\n }",
"protected String getParamFromRequest(HttpServletRequest request, String key) {\n return request.getParameter(key);\n }",
"protected Map<String,String> getParametersMap(HttpServletRequest request) {\n\t\tMap<String,String> map = new HashMap<String,String>();\n\t\t\n\t\tEnumeration<String> paramNames = request.getParameterNames() ;\n\t\t\n\t\twhile ( paramNames.hasMoreElements() ) {\n\t\t\tString name = paramNames.nextElement() ;\n\t\t\tString value = request.getParameter(name) ;\n\t\t\tmap.put(name, value);\n\t\t}\n\t\treturn map ;\n\t}",
"public String getParameter(String name) throws IOException {\n if(form == null) {\n form = builder.getInstance();\n }\n return form.get(name);\n }",
"protected String getStringParam(HttpServletRequest request, String name) {\r\n String[] p = request.getParameterValues(name);\r\n \r\n if (p == null) {\r\n return null;\r\n } else {\r\n return p[0];\r\n }\r\n }",
"public static Map<String, String> parseParameters(InputStream input) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.registerModule(new MixedContentMapModule());\n mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);\n Actions parsedAction = mapper.readerFor(Actions.class).readValue(input);\n return parsedAction.getActions().get(0).getParameters();\n }",
"private void recogerParametros(HttpServletRequest request) {\r\n\t\tif (request.getParameter(\"op\") != null) {\r\n\t\t\top = Integer.parseInt(request.getParameter(\"op\"));\r\n\t\t} else {\r\n\t\t\top = 0;\r\n\t\t}\r\n\t\t\r\n\t\tsearch = (request.getParameter(\"search\") != null) ? request.getParameter(\"search\") : \"\";\r\n\r\n\t\tif (request.getParameter(\"id\") != null) {\r\n\t\t\tid = Integer.parseInt(request.getParameter(\"id\"));\r\n\t\t} else {\r\n\t\t\tid = -1;\r\n\t\t}\r\n\r\n\t\tif (request.getParameter(\"nombre\") != null) {\r\n\t\t\t\r\n\t\t\tnombre = request.getParameter(\"nombre\");\r\n\t\t\tnombre = Utilidades.limpiarEspacios(nombre);\r\n\t\t\tnombre = nombre.substring(0, Math.min(nombre.length(), 44));\r\n\t\t} else {\r\n\t\t\tnombre = \"\";\r\n\t\t}\r\n\r\n\t\tif (request.getParameter(\"precio\") != null) {\r\n\t\t\ttry{\r\n\t\t\t\tprecio = Float.parseFloat(request.getParameter(\"precio\"));\r\n\t\t\t}\r\n\t\t\tcatch( Exception e){\r\n\t\t\t\tprecio=PRECIO_EN_LETRA;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} else {\r\n\t\t\tprecio = 0;\r\n\t\t}\r\n\t\tif(request.getParameter(\"id_usuario\")!=null) {\r\n\t\t\tusuario=daoUsuario.getById(Integer.parseInt(request.getParameter(\"id_usuario\")));\r\n\t\t}\r\n\t\telse {\r\n\t\t\tusuario=new Usuario();\r\n\t\t}\r\n\t\tif(request.getParameter(\"id_usuario_cambio\")!=null) {\r\n\t\t\tusuario=daoUsuario.getById(Integer.parseInt(request.getParameter(\"id_usuario_cambio\")));\r\n\t\t}\r\n\t\telse {\r\n\t\t\tusuario=new Usuario();\r\n\t\t}\r\n\t}",
"public ArrayList<String> getRequestParameters() { return this.requestParameters; }",
"private String getValueFromRequest(String key, HttpServletRequest request) {\n if (!StringUtils.isEmpty(key) && null != request) {\n return request.getParameter(key);\n }\n return null;\n }",
"public static DataBean getParameters(HttpServletRequest req) {\n DataBean result = new DataBean();\n\n Enumeration parameterNames = req.getParameterNames();\n\n if (parameterNames != null) {\n String tStr;\n String vStr;\n while (parameterNames.hasMoreElements()) {\n tStr = parameterNames.nextElement().toString();\n vStr = req.getParameter(tStr);\n\n if (vStr != null) {\n result.setValue(tStr, vStr);\n }\n }\n }\n\n return (result);\n }",
"private String getParameter(String name, HttpServletRequest request) {\r\n String value = request.getParameter(name);\r\n if (value == null || \"\".equals(value)) {\r\n return null;\r\n\r\n } else {\r\n return value;\r\n }\r\n }",
"static String readRequestBody(HttpExchange t) throws IOException {\n InputStream is = t.getRequestBody();\n String value = new Scanner(is).useDelimiter(\"\\\\A\").next();\n is.close();\n return value;\n }",
"private Map<String, ?> parsePropertyValues(ServletRequest request, ServletRequestDataBinder binder) {\n Map<String, Object> params = new TreeMap<>();\n Assert.notNull(request, \"Request must not be null\");\n Enumeration<?> paramNames = request.getParameterNames();\n Map<String, String> parameterMappings = getParameterMappings(binder);\n while (paramNames != null && paramNames.hasMoreElements()) {\n String paramName = (String) paramNames.nextElement();\n String[] values = request.getParameterValues(paramName);\n\n String fieldName = parameterMappings.get(paramName);\n // no annotation exists, use the default - the param name=field name\n if (fieldName == null) {\n fieldName = paramName;\n }\n\n if (values == null || values.length == 0) {\n // Do nothing, no values found at all.\n } else if (values.length > 1) {\n params.put(fieldName, values);\n } else {\n params.put(fieldName, values[0]);\n }\n }\n\n return params;\n }",
"public String getParameterFromP();",
"static RequestLine readRequestLine(InputStream in) throws IOException {\n\t\tString line = readLine(in, true);\n\t\tString[] parts = line.split(\" \");\n\t\tif (parts.length != 3) {\n\t\t\tthrow new WebException(StatusCode.BAD_REQUEST, \"invalid request line: \" + line);\n\t\t}\n\t\tString method = parts[0];\n\t\tString target = parts[1];\n\t\tString path = target;\n\t\tString query = null;\n\t\tint index = target.indexOf('?');\n\t\tif (index != -1) {\n\t\t\tpath = target.substring(0, index);\n\t\t\tquery = target.substring(index + 1);\n\t\t}\n\t\treturn new RequestLine(method, target, path, query);\n\t}",
"public com.novell.www.resource.service.ResourceRequestParam[] getRequestParams() {\r\n return requestParams;\r\n }",
"protected Map<String, Object> paserRequetToHashMap(HttpServletRequest req){\n\t\t\n\t\tMap<String,Object> params = new HashMap<>();\n\t\t\n\t\tEnumeration<?> enumber = req.getParameterNames();\n\n\t\twhile (enumber.hasMoreElements()) {\n\t\t\tString key = enumber.nextElement().toString();\n\t\t\tObject value = req.getParameter(key);\n\t\t\tparams.put(key, value); \n\t\t}\n\t\t\n\t\t\n\t\treturn params;\n\t}",
"public Map getParameters();",
"@Override\n protected Map<String, String> getParams() {\n return params;\n }",
"String [] getParameters();",
"@Override\n protected Map<String, String> getParams() {\n return params;\n }",
"public void fillFromHttpRequest(HttpServletRequest req) throws IOException {\n\t\tthis.id = req.getParameter(\"id\");\n\t\tthis.title = prepare(req.getParameter(\"title\"));\n\t\tthis.text = prepare(req.getParameter(\"text\"));\n\t}",
"public Map getParameterMap() {\n return params;\n }",
"KafkaRequestParam getRequest();",
"String[] getParameterValues(String key);",
"public static String[] getSerialParameterValues(String parameter,\n\t\t\tint length, HttpServletRequest request) {\n\t\tString ret[] = new String[length];\n\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tret[i] = request.getParameter(parameter + \"\" + (i + 1));\n\t\t}\n\n\t\treturn ret;\n\t}",
"protected void setParameters(HttpServletRequest request)\n\t{\n\t\t\n\t\tfullname = request.getParameter(\"fullname\");\n\t\tdisplayName = request.getParameter(\"displayName\").toLowerCase();\n\t\temail = request.getParameter(\"email\");\n\t\tpassword = request.getParameter(\"password\");\n\t\tconfirm = request.getParameter(\"confirm\");\n\t}",
"protected String getRequestData(HttpServletRequest request) {\n\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\ttry {\n\t\t\tBufferedReader reader = request.getReader();\n\t\t\tString currentLine = \"\";\n\t\t\twhile ((currentLine = reader.readLine()) != null) {\n\n\t\t\t\tstringBuilder.append(currentLine);\n\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn stringBuilder.toString();\n\n\t}",
"public static void read_paramenters() {\n\t\ttry {\n\t\t // TODO CA: check that this work on Windows!\n String home = System.getProperty(\"user.home\");\n File parametersFile = new File(home + \"/\" + parametersFilename);\n\t\t\tScanner sc = new Scanner(parametersFile);\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tinitialize_parameters(sc.nextLine());\n\t\t\t}\n\t\t\tsc.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Error: File \" + parametersFilename + \" not found!\");\n\t\t\tSystem.out.println(\"Make sure that file \" + parametersFilename + \" is in the correct format!\");\n\t\t\tSystem.out.println(\"The format of the file is:\");\n\t\t\tSystem.out.println(\"host ap-dev.cs.ucy.ac.cy\");\n\t\t\tSystem.out.println(\"port 43\");\n\t\t\tSystem.out.println(\"cache res/\");\n\t\t\tSystem.out.println(\"access_token <api_key> \" +\n \"[The API key has be generated based on your google account through the anyplace architect]\");\n\t\t\t// TODO CA: when this error is shown, prompt, with Y or N to initialize that file with defaults\n // if yes, then read parameters again\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}",
"private InputStream getBodyFromServletRequestParameters(HttpServletRequest request)\r\n/* 96: */ throws IOException\r\n/* 97: */ {\r\n/* 98:128 */ ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n/* 99:129 */ Writer writer = new OutputStreamWriter(bos, \"UTF-8\");\r\n/* 100: */ \r\n/* 101:131 */ Map<String, String[]> form = request.getParameterMap();\r\n/* 102:132 */ for (Iterator<String> nameIterator = form.keySet().iterator(); nameIterator.hasNext();)\r\n/* 103: */ {\r\n/* 104:133 */ String name = (String)nameIterator.next();\r\n/* 105:134 */ List<String> values = Arrays.asList((String[])form.get(name));\r\n/* 106:135 */ for (Iterator<String> valueIterator = values.iterator(); valueIterator.hasNext();)\r\n/* 107: */ {\r\n/* 108:136 */ String value = (String)valueIterator.next();\r\n/* 109:137 */ writer.write(URLEncoder.encode(name, \"UTF-8\"));\r\n/* 110:138 */ if (value != null)\r\n/* 111: */ {\r\n/* 112:139 */ writer.write(61);\r\n/* 113:140 */ writer.write(URLEncoder.encode(value, \"UTF-8\"));\r\n/* 114:141 */ if (valueIterator.hasNext()) {\r\n/* 115:142 */ writer.write(38);\r\n/* 116: */ }\r\n/* 117: */ }\r\n/* 118: */ }\r\n/* 119:146 */ if (nameIterator.hasNext()) {\r\n/* 120:147 */ writer.append('&');\r\n/* 121: */ }\r\n/* 122: */ }\r\n/* 123:150 */ writer.flush();\r\n/* 124: */ \r\n/* 125:152 */ return new ByteArrayInputStream(bos.toByteArray());\r\n/* 126: */ }",
"KafkaRequestParamOrBuilder getRequestOrBuilder();",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"user_id\", userIdInput);\n params.put(\"date\", selectedDate);\n params.put(\"type\", typeInput);\n\n return params;\n }",
"public String[] getParaValues(String name) {\n\t\treturn request.getParameterValues(name);\n\t}",
"protected Integer getIntParam(HttpServletRequest request, String name) {\r\n String[] p = request.getParameterValues(name);\r\n \r\n Integer result = null;\r\n \r\n try{\r\n if (p != null) {\r\n \t//TODO: add the apache common package for pom.xml\r\n// result = NumberUtils.createInteger(p[0]);\r\n }\r\n }catch(NumberFormatException ex){\r\n \r\n }\r\n return result;\r\n }",
"ParameterList getParameters();",
"public ArrayList<String> getParameterValues() { return this.params; }",
"Object getParameter(String name);",
"public String[] getParameterValues(String name) {\n return (String[]) params.get(name);\n }",
"String extractParameters ();",
"void read(String prefix, Map<String, Object> parameters);",
"private void extractParameters() throws IndexOutOfBoundsException {\n switch (commandType) {\n case DONE:\n parameters = userInput.substring(INDEX_AFTER_DONE);\n break;\n case TODO:\n parameters = userInput.substring(INDEX_AFTER_TODO);\n break;\n case DEADLINE:\n parameters = userInput.substring(INDEX_AFTER_DEADLINE);\n break;\n case EVENT:\n parameters = userInput.substring(INDEX_AFTER_EVENT);\n break;\n case DELETE:\n parameters = userInput.substring(INDEX_AFTER_DELETE);\n break;\n case FIND:\n parameters = userInput.substring(INDEX_AFTER_FIND);\n break;\n case LIST:\n if (userInput.length() == LIST_LENGTH) {\n parameters = null;\n } else {\n parameters = userInput.substring(INDEX_AFTER_LIST);\n }\n break;\n case HELP:\n // Help does not take any parameters;\n case BYE:\n // Bye does not take any parameters\n default:\n parameters = null;\n }\n }",
"private RequestParams getRequestParams(String tag){\n RequestParams params = new RequestParams();\n params.put(Constants.method_label, Constants.search_method);\n params.put(Constants.api_key_label, Constants.api_key);\n params.put(Constants.tags_label, tag);\n params.put(Constants.content_type_label, Constants.content_type);\n params.put(Constants.media_label, Constants.media);\n params.put(Constants.format_label, Constants.format);\n params.put(Constants.jsonCallback_label, Constants.noJsonCallback);\n return params;\n }",
"final void getParameters()\r\n {\r\n hostName=getParameter(\"hostname\");\r\n\tIPAddress=getParameter(\"IPAddress\");\r\n\tString num=getParameter(\"maxSearch\");\r\n\tString arg=getParameter(\"debug\");\r\n\tserver=getParameter(\"server\");\r\n\tindexName=getParameter(\"indexName\");\r\n\tString colour=getParameter(\"bgColour\");\r\n\r\n\tif(colour==null)\r\n\t{\r\n\t bgColour=Color.lightGray;\r\n }\r\n else\r\n\t{\r\n\t try\r\n\t {\r\n\t bgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t bgColour=Color.lightGray;\r\n\t }\r\n\t}\r\n\t\r\n\tcolour=getParameter(\"fgColour\");\r\n\tif(colour==null)\r\n\t{\r\n\t fgColour=Color.black;\r\n\t}\r\n\telse\r\n\t{\r\n\t try\r\n\t {\r\n\t fgColour=new Color(Integer.parseInt(colour,16));\r\n\t }\r\n\t catch(NumberFormatException nfe)\r\n\t {\r\n\t fgColour=Color.black;\r\n\t }\r\n\t}\r\n\r\n\t//Check for missing parameters.\r\n\tif(hostName==null && server==null)\r\n\t{\r\n\t statusArea.setText(\"Error-no host/server\");\r\n\t hostName=\"none\";\r\n\t}\r\n\r\n\tmaxSearch=(num == null) ? MAX_NUMBER_PAGES : Integer.parseInt(num);\r\n }",
"private RequestData getJobData(SlingHttpServletRequest request) {\n try {\n String data = request.getParameter(PARAM_DATA);\n if (StringUtils.isNotBlank(data)) {\n return new ObjectMapper().readValue(data, RequestData.class);\n }\n } catch (IOException e) {\n logger.error(\"Unable to parse job data from request: {}\", e.getLocalizedMessage());\n }\n return null;\n }",
"public Object getParameter(String name) {\n/* 192 */ Args.notNull(name, \"Parameter name\");\n/* */ \n/* 194 */ Object result = null;\n/* */ \n/* 196 */ if (this.overrideParams != null) {\n/* 197 */ result = this.overrideParams.getParameter(name);\n/* */ }\n/* 199 */ if (result == null && this.requestParams != null) {\n/* 200 */ result = this.requestParams.getParameter(name);\n/* */ }\n/* 202 */ if (result == null && this.clientParams != null) {\n/* 203 */ result = this.clientParams.getParameter(name);\n/* */ }\n/* 205 */ if (result == null && this.applicationParams != null) {\n/* 206 */ result = this.applicationParams.getParameter(name);\n/* */ }\n/* 208 */ return result;\n/* */ }",
"public Parameters getParameters();",
"public String getParameter(String name) {\r\n return _parameters.get(name);\r\n }",
"public void readParameters() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n parameterParserXML.readParameterDefinition(configData.getParameterList());\r\n parameterParserXML.processParameterDependency();\r\n }\r\n\r\n Log.info(\"info.progress_control.load_parameter_description\");\r\n }",
"private static String getHTTPRequestParameter(PortletRequest request,\n String name) {\n String value = request.getParameter(name);\n if (value == null) {\n String portalInfo = request.getPortalContext().getPortalInfo()\n .toLowerCase();\n if (portalInfo.contains(\"liferay\")) {\n value = getLiferayHTTPRequestParameter(request, name);\n } else if (portalInfo.contains(\"gatein\")) {\n value = getGateInHTTPRequestParameter(request, name);\n }\n }\n return value;\n }",
"public Map<String, Object> getTaskProgressCommonParameters(HttpServletRequest request) {\n Map<String, Object> requestParams = new HashMap<>();\n try {\n String companyid = sessionHandlerImpl.getCompanyid(request);\n DateFormat df = authHandler.getDateOnlyFormat(request);\n requestParams.put(Constants.df, df);\n requestParams.put(Constants.ss, request.getParameter(Constants.ss));\n requestParams.put(Constants.REQ_startdate, request.getParameter(Constants.REQ_startdate));\n requestParams.put(Constants.REQ_enddate, request.getParameter(Constants.REQ_enddate));\n requestParams.put(\"billid\", request.getParameter(\"billid\"));\n\n String start = request.getParameter(\"start\");\n String limit = request.getParameter(\"limit\");\n requestParams.put(\"start\", start);\n requestParams.put(\"limit\", limit);\n\n requestParams.put(\"companyid\", companyid);\n requestParams.put(\"requestcontextutilsobj\", RequestContextUtils.getLocale(request));\n \n\n } catch (Exception ex) {\n Logger.getLogger(AccTaskProgressManagementControllerCMN.class.getName()).log(Level.SEVERE, null, ex);\n }\n return requestParams;\n }",
"String getRequest();",
"@Override\n\t\tpublic String[] getParameterValues(String name) {\n\t\t\treturn null;\n\t\t}",
"public String getParameter(String name)\n {\n return parameters.get(name);\n }",
"private String getParameter(HttpServletRequest req, String name) {\n String value = req.getParameter(name);\n return value == null ? \"\" : value.trim();\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n// params.put(\"ead_tokan\", AppConfig.EAD_TOKEN);\n// params.put(\"ead_email\", email);\n params.put(\"npl_token\", \"a\");\n params.put(\"npl_aid\", mediaId);\n params.put(\"npl_id\", userId);\n return params;\n }",
"public Map<String,String[]> getParameterMap() {\n if (isMultipart()) {\n Map parameterMap = new HashMap();\n Enumeration names = this.multipart.getParameterNames();\n \n while (names.hasMoreElements()) {\n String name = (String) names.nextElement();\n parameterMap.put(name, getParameterValues(name));\n }\n \n return parameterMap;\n }\n else {\n return super.getParameterMap();\n }\n }",
"public void fillFromHttpRequest(HttpServletRequest req) {\n\t\tthis.id = prepareString(req.getParameter(\"id\"));\n\t\tthis.firstName = prepareString(req.getParameter(\"firstName\"));\n\t\tthis.lastName = prepareString(req.getParameter(\"lastName\"));\n\t\tthis.nick = prepareString(req.getParameter(\"nick\"));\n\t\tthis.email = prepareString(req.getParameter(\"email\"));\n\t\tthis.password = prepareString(req.getParameter(\"password\"));\n\t}",
"@ToDoVulnerability //This needs to validate the parameters for injection\n private Map<String, String> getUpParams(HttpServletRequest req)\n {\n Map<String, String> params = new HashMap<>();\n Enumeration<String> en = req.getParameterNames();\n while(en.hasMoreElements())\n {\n String name = en.nextElement();\n if(name.startsWith(\"up_\"))\n params.put(name, req.getParameter(name));\n }\n return params;\n }",
"@Override\n protected Map<String,String> getParams(){\n return postParameters;\n }",
"protected Object getSingleValueFromRequest(HttpServletRequest request_p, String strID_p)\r\n {\r\n return request_p.getParameter(strID_p);\r\n }",
"@Override\n public Parameters getParams() {\n return parameters;\n }",
"public String getParameterFromH();",
"public Map<String, String[]> getParaMap() {\n\t\treturn request.getParameterMap();\n\t}",
"public String getParameter(String name) {\r\n\t\treturn parameters.get(name);\r\n\t}",
"@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }",
"@Override\n\tpublic List<NameValuePair> getParams() {\n\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\n\t\tparams.add(new BasicNameValuePair(KEY_ID, Integer.toString(id)));\n params.add(new BasicNameValuePair(KEY_VEHICLE_IDVEHICLE, Integer.toString(idVehicle)));\n params.add(new BasicNameValuePair(KEY_ITEMS_IDITEMS, Integer.toString(idItem)));\n params.add(new BasicNameValuePair(KEY_RECEIPT_IDRECEIPT, Integer.toString(idReceipt)));\n params.add(new BasicNameValuePair(KEY_WORKMILEAGE, Integer.toString(WorkMileage)));\n params.add(new BasicNameValuePair(KEY_WORKNOTES, WorkNotes));\n\t\t\n\t\treturn params;\n\t}",
"String getParameter(String key);",
"@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\treturn null;\n\t}",
"public Map getParams() {\n\t\treturn _params;\n\t}",
"public Map<String, Object> getParams() {\n return params;\n }",
"public String getParameterFromR();",
"public String[] getParameterValues(String name) {\n if ( isMultipart() ) {\n String[] values = this.multipart.getParameterValues(name);\n if (values != null) {\n for (int i=0; i<values.length; ++i) {\n if (values[i] == null) {\n values[i] = \"\";\n }\n }\n }\n \n return values;\n }\n else {\n return super.getParameterValues(name);\n }\n }",
"@Override\n public String getParameters() {\n return parameters;\n }",
"protected void read_params_from_user( ParamFileReader pars ) {\n\t\t// Read general parameters:\n\t\tsuper.read_params_from_user(pars);\n\t\t\n\t\t// Read model parameters (optional):\n\t\tif( !NPT_SIM ) {\n\t\t\ttry {\n\t\t\t\tif( pars.isDefined(\"pot.cut-off\") ) pot_cut_off = pars.getDouble(\"pot.cut-off\");\n\t\t\t} catch( ParamFileReader.UndefinedParameterException e ) {\n\t\t\t\t// If any of them is not defined, cry and grumble.\n\t\t\t\tthrow( new LSSimException(LSSimException.PARAM,\n\t\t\t\t\t\"Some required parameters were missing: pot.cut-off\"));\n\t\t\t}\n\t\t\tpot_cut_off2 = pot_cut_off*pot_cut_off;\n\t\t}\t\t\n\t}",
"public String getParameter(String name) {\n String[] values = getParameterValues(name);\n if (values != null && values.length > 0) {\n return values[0];\n }\n else {\n return null;\n }\n }",
"public String getParameter(String name) {\n\t\treturn parameters.get(name);\n\t}",
"public DataTableParams(HttpServletRequest request) {\n\n search = request.getParameter(\"search[value]\");\n int orderColumnIndex = Integer.valueOf(request.getParameter(\"order[0][column]\"));\n order = request.getParameter(\"columns[\" + orderColumnIndex + \"][name]\");\n orderDir = StringUtils.upperCase(request.getParameter(\"order[0][dir]\"));\n size = Integer.valueOf(request.getParameter(\"length\"));\n // data tables use a start to indicate the start of the record, we have to convert it to zero-based page base\n // on size\n page = 0; // if no start parameter, page 0 wanted\n if (StringUtils.isNotEmpty(request.getParameter(\"start\"))) {\n int start = Integer.valueOf(request.getParameter(\"start\"));\n page = start / size;\n }\n draw = Integer.valueOf(request.getParameter(\"draw\"));\n }",
"INDArray getParams();",
"public String getParameterFromX();",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"name\", name);\n params.put(\"email\", email);\n params.put(\"password\", password);\n params.put(\"mobile\", mobile);\n params.put(\"spinner\",spinner);\n\n return params;\n }",
"@Override\n\tpublic Object getParameter(HttpServletRequest request) {\n\t\tString dentifyId=request.getParameter(\"curid\");\n\t\tString curstomName=request.getParameter(\"curname\");\n\t\tString curstomage=request.getParameter(\"curage\");\n\t\tString curstomAdress=request.getParameter(\"curaddress\");\n\t\tString Curstomphone=request.getParameter(\"curphone\");\n\t\treturn new Curstom(dentifyId,curstomName,curstomage,curstomAdress,Curstomphone);\n\t}",
"public Parameter readNextParameter() throws IOException {\r\n Parameter result = null;\r\n \r\n try {\r\n boolean readingName = true;\r\n boolean readingValue = false;\r\n StringBuilder nameBuffer = new StringBuilder();\r\n StringBuilder valueBuffer = new StringBuilder();\r\n \r\n int nextChar = 0;\r\n while ((result == null) && (nextChar != -1)) {\r\n nextChar = this.stream.read();\r\n \r\n if (readingName) {\r\n if (nextChar == '=') {\r\n if (nameBuffer.length() > 0) {\r\n readingName = false;\r\n readingValue = true;\r\n } else {\r\n throw new IOException(\r\n \"Empty parameter name detected. Please check your form data\");\r\n }\r\n } else if ((nextChar == '&') || (nextChar == -1)) {\r\n if (nameBuffer.length() > 0) {\r\n result = FormUtils.create(nameBuffer, null,\r\n this.decode, characterSet);\r\n } else if (nextChar == -1) {\r\n // Do nothing return null preference\r\n } else {\r\n throw new IOException(\r\n \"Empty parameter name detected. Please check your form data\");\r\n }\r\n } else {\r\n nameBuffer.append((char) nextChar);\r\n }\r\n } else if (readingValue) {\r\n if ((nextChar == '&') || (nextChar == -1)) {\r\n if (valueBuffer.length() > 0) {\r\n result = FormUtils.create(nameBuffer, valueBuffer,\r\n this.decode, characterSet);\r\n } else {\r\n result = FormUtils.create(nameBuffer, null,\r\n this.decode, characterSet);\r\n }\r\n } else {\r\n valueBuffer.append((char) nextChar);\r\n }\r\n }\r\n }\r\n } catch (UnsupportedEncodingException uee) {\r\n throw new IOException(\r\n \"Unsupported encoding. Please contact the administrator\");\r\n }\r\n \r\n return result;\r\n }",
"public String getParams() {\r\n\t\treturn this.params;\r\n\t}",
"com.google.protobuf.ByteString getParams();",
"public String getParameter(String name) {\n String[] values = getParameterValues(name);\n return (values != null) ? values[0] : null;\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"id\", id);\n params.put(\"type\", type);\n\n Log.d(TAG, \"getParams: \"+params);\n\n\n\n return params;\n }",
"@RequestMapping(value = \"/testRequestMethod\", method = { RequestMethod.GET, RequestMethod.POST })\n @ResponseBody\n public String testF(final HttpServletRequest request) {\n System.out.println(\"testReqeustMethod\");\n final String key = request.getParameterNames().nextElement();\n final String value = request.getParameter(key);\n System.out.println(key + \"(\" + value + \")\");\n\n return \"/module_index<br>\" + \"Parameter name: \" + key + \"<br>Parameter value: \" + value;\n }",
"@Override\n\tpublic Enumeration<String> getParameterNames() {\n\t\treturn null;\n\t}"
] | [
"0.70583206",
"0.6981822",
"0.6749793",
"0.67319953",
"0.6435896",
"0.6427272",
"0.64072645",
"0.64072645",
"0.6404344",
"0.6362185",
"0.6362185",
"0.6332522",
"0.6260438",
"0.6256757",
"0.6244314",
"0.61390436",
"0.60414857",
"0.60396004",
"0.60310405",
"0.6006181",
"0.60039324",
"0.596679",
"0.5947469",
"0.5934655",
"0.59235877",
"0.5913894",
"0.5898487",
"0.5888331",
"0.5878732",
"0.5864288",
"0.5840116",
"0.5834179",
"0.58254737",
"0.5817819",
"0.58105505",
"0.5804931",
"0.5792992",
"0.57798785",
"0.5773269",
"0.5756897",
"0.5746045",
"0.5736442",
"0.5729038",
"0.57230985",
"0.57057774",
"0.56973284",
"0.56846625",
"0.5674448",
"0.56729335",
"0.56674707",
"0.5663082",
"0.5652899",
"0.5648776",
"0.564683",
"0.5641179",
"0.56388706",
"0.5626089",
"0.5618953",
"0.561868",
"0.5617113",
"0.5602629",
"0.5597576",
"0.5592983",
"0.5580114",
"0.5543648",
"0.554139",
"0.5532457",
"0.55302435",
"0.5525249",
"0.5518192",
"0.551711",
"0.5516946",
"0.55142444",
"0.5509172",
"0.5504926",
"0.55025154",
"0.5495136",
"0.54931897",
"0.5480309",
"0.5480169",
"0.5472848",
"0.5468478",
"0.546258",
"0.5455494",
"0.5453006",
"0.54457706",
"0.54357994",
"0.54309064",
"0.54298407",
"0.542561",
"0.5423499",
"0.54207164",
"0.5420423",
"0.5417686",
"0.54082465",
"0.54066056",
"0.54034615",
"0.5402175",
"0.5399401",
"0.53992695",
"0.53958666"
] | 0.0 | -1 |
/ this method is overkill since our LatLng is public, but it allows us to store MapNodes in the KDTree | public KDPoint getPoint() {
return new KDPoint(this.loc.lat,this.loc.lng,0.0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setNode(int nodeId, double lat, double lon);",
"String addNewNode(Double lat, Double lon);",
"public MapGraphExtra()\n\t{\n\t\t// TODO: Implement in this constructor in WEEK 3\n\t\tmap = new HashMap<GeographicPoint, MapNode> ();\n\t}",
"void setNode(int nodeId, double lat, double lon, double ele);",
"private void createNodesMaps()\n {\n Maze maze = gameState.getMazeState().getMaze();\n\n for (Node node : maze.getNodes()) {\n pixelsNodes.put(nodeToPixelIndex(node), node);\n }\n\n for (Node node : maze.getPillsNodes()) {\n pixelsPillNodes.put(nodeToPixelIndex(node), node);\n }\n\n for (Node node : maze.getPowerPillsNodes()) {\n pixelsPowerPillNodes.put(nodeToPixelIndex(node), node);\n }\n }",
"protected abstract Set<T> findNeighbors(T node, Map<T, T> parentMap);",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public void onMapReady(GoogleMap googleMap) {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n boolean locMarker = prefs.getBoolean(\"locationMarkerSwitch\",true);\n\n mMap = googleMap;\n mMap.setOnMarkerClickListener( new GoogleMap.OnMarkerClickListener(){\n @Override\n public boolean onMarkerClick(Marker marker) {\n String title = marker.getTitle();\n latitude = marker.getPosition().latitude;\n longitude = marker.getPosition().longitude;\n// TreeLocation testing = new TreeLocation(latitude, longitude);\n if(marker.getTitle().equals(\"Unknown\")){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n Set<String> sources = prefs.getStringSet(\"databasesUsedSelector\", new HashSet<String>());\n Tree closestTree = null;\n for (String source : sources) {\n DataSource ds;\n if(source.equals(\"HopeCollegeDataSource\")){\n ds = new HopeCollegeDataSource();\n }else if(source.equals(\"CityOfHollandDataSource\")){\n ds = new CityOfHollandDataSource();\n }else if(source.equals(\"ExtendedCoHDataSource\")){\n ds = new ExtendedCoHDataSource();\n }else if(source.equals(\"UserTreeDataSource\")) {\n ds = MainActivity.userTreeDataSourceGlobal;\n }else if(source.equals(\"AllUsersDataSource\")){\n ds = new AllUsersDataSource();\n } else{\n ds = new ITreeDataSource();\n }\n ds.initialize(Maps_Activity.this, null);\n MainActivity.treesNearby.clear();\n Tree newTree = ds.search(new TreeLocation(marker.getPosition().latitude, marker.getPosition().longitude));\n if(newTree != null && !newTree.getCommonName().equals(\"Unknown\")){\n marker.setTitle(newTree.getCommonName());\n if(marker.getSnippet().equals(\"Holland, MI\") && newTree.getInfo(\"Park\") != null){\n marker.setSnippet(newTree.getInfo(\"Park\").toString());\n }\n break;\n }\n }\n }\n if(marker.getSnippet().equals(\"Holland, MI\")){\n DataSource ds = new CityOfHollandDataSource();\n ds.initialize(Maps_Activity.this, null);\n MainActivity.treesNearby.clear();\n Tree newTree = ds.search(new TreeLocation(marker.getPosition().latitude, marker.getPosition().longitude));\n if(newTree.getInfo(\"Park\") != null){\n marker.setSnippet(newTree.getInfo(\"Park\").toString());\n }\n }\n marker.showInfoWindow();\n return true;\n }\n });\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Bundle bundle = new Bundle();\n if(!marker.getTitle().equals(\"My Position\")) {\n if(!marker.getTitle().equals(\"Current Position\")) {\n latitude = marker.getPosition().latitude;\n longitude = marker.getPosition().longitude;\n\n TreeLocation testing = new TreeLocation(latitude, longitude);\n\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n Set<String> sources = prefs.getStringSet(\"databasesUsedSelector\", new HashSet<String>());\n for (String source : sources) {\n Log.d(\"MainActivity\", \"Searching. Trying: \" + source);\n DataSource ds;\n if (source.equals(\"HopeCollegeDataSource\")) {\n ds = new HopeCollegeDataSource();\n } else if (source.equals(\"CityOfHollandDataSource\")) {\n ds = new CityOfHollandDataSource();\n } else if (source.equals(\"ExtendedCoHDataSource\")) {\n ds = new ExtendedCoHDataSource();\n } else if (source.equals(\"UserTreeDataSource\")) {\n ds = MainActivity.userTreeDataSourceGlobal;\n } else if (source.equals(\"AllUsersDataSource\")) {\n ds = new AllUsersDataSource();\n } else {\n ds = new ITreeDataSource();\n }\n if (ds instanceof AllUsersDataSource) {\n MainActivity.banana = MainActivity.allUsersDataSource.search(testing);\n }else if(ds instanceof UserTreeDataSource){\n MainActivity.userTreeDataSourceGlobal.setUserTrees(MainActivity.allUsersDataSource.getUserTrees());\n MainActivity.banana = MainActivity.userTreeDataSourceGlobal.search(testing);\n }else{\n ds.initialize(Maps_Activity.this, null);\n MainActivity.treesNearby.clear();\n MainActivity.banana = ds.search(testing);\n }\n if (MainActivity.banana != null) {\n if(MainActivity.banana.getClosestDist() < closest1) {\n closest1 = MainActivity.banana.getClosestDist();\n closestTree = MainActivity.banana;\n }\n }\n }\n\n if(closestTree != null) {\n MainActivity.banana = closestTree;\n }\n Intent intentA = new Intent(Maps_Activity.this, Tree_Info_First.class);\n mMap.clear();\n startActivity(intentA);\n }\n\n } else {\n android.support.v7.app.AlertDialog.Builder builder;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n builder = new android.support.v7.app.AlertDialog.Builder(Maps_Activity.this, android.R.style.Theme_Material_Light_Dialog_Alert);\n } else {\n builder = new android.support.v7.app.AlertDialog.Builder(Maps_Activity.this);\n }\n builder.setTitle(\"No Tree Identified\")\n .setMessage(\"You must select a tree to receive the information!\")\n .setNeutralButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }\n }\n });\n\n Set<String> sources = prefs.getStringSet(\"databasesUsedSelector\",new HashSet<String>());\n Iterator<String> it = sources.iterator();\n for (String source : sources) {\n\n DataSource ds;\n if(source.equals(\"HopeCollegeDataSource\")){\n ds = new HopeCollegeDataSource();\n }else if(source.equals(\"CityOfHollandDataSource\")){\n ds = new CityOfHollandDataSource();\n }else if(source.equals(\"ExtendedCoHDataSource\")){\n ds = new ExtendedCoHDataSource();\n }else if(source.equals(\"UserTreeDataSource\")){\n ds = MainActivity.userTreeDataSourceGlobal;\n }else if(source.equals(\"AllUsersDataSource\")){\n ds = new AllUsersDataSource();\n }else{\n ds = new ITreeDataSource();\n }\n\n ds.initialize(Maps_Activity.this, null);\n MainActivity.treesNearby.clear();\n Iterable<CSVRecord> stuff = null;\n int treeField = 0;\n String location42 = \"\";\n\n if (ds instanceof CityOfHollandDataSource) {\n stuff = ds.getCoordinates(Maps_Activity.this, \"/data/user/0/com.example.treesapv2new/files/COHTreeData.csv\");\n treeField = 1;\n location42 = \"blah blah blah\";\n whichSource = false;\n } else if (ds instanceof HopeCollegeDataSource) {\n stuff = ds.getCoordinates(Maps_Activity.this, \"/data/user/0/com.example.treesapv2new/files/HCTreeData.csv\");\n treeField = 2;\n location42 = \"Hope College Pine Grove\";\n whichSource = true;\n } else if (ds instanceof ITreeDataSource) {\n stuff = ds.getCoordinates(Maps_Activity.this, \"/data/user/0/com.example.treesapv2new/files/iTreeTreeData.csv\");\n treeField = 2;\n location42 = \"Hope College Pine Grove\";\n whichSource = true;\n } else if (ds instanceof ExtendedCoHDataSource){\n stuff = ds.getCoordinates(Maps_Activity.this, \"/data/user/0/com.example.treesapv2new/files/ECOHdata.csv\");\n treeField = 1;\n location42= \"Holland, MI\";\n whichSource = false;\n } else if (ds instanceof UserTreeDataSource){\n stuff = null;\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n FirebaseAuth mAuth = FirebaseAuth.getInstance();\n FirebaseUser user = mAuth.getCurrentUser();\n db.collection(\"acceptedTrees\").get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n for (QueryDocumentSnapshot document : task.getResult()) {\n ArrayList<String> pic = (ArrayList<String>) document.getData().get(\"pictures\");\n String a = (String) document.getData().get(\"userID\").toString();\n String b = \"\";\n try{\n b = user.getUid();\n }catch (NullPointerException e){\n\n }\n if(a.equals(b)) {\n try {\n Double latitude = Double.valueOf(document.getData().get(\"latitude\").toString());\n Double longitude = Double.valueOf(document.getData().get(\"longitude\").toString());\n if (latitude != null && longitude != null) {\n LatLng coords = new LatLng(Double.valueOf(latitude), Double.valueOf(longitude));\n if (ds.getClass().equals(CityOfHollandDataSource.class)) {\n }\n try {\n String name = document.getData().get(\"commonName\").toString();\n int iconInt = randomGenerator.nextInt(8);\n BitmapDescriptor icon;\n String user = (String) document.getData().get(\"userID\");\n if(mAuth.getCurrentUser().getUid().equals(user)){\n icon = BitmapDescriptorFactory.fromResource(R.drawable.user_tree_marker1);\n }else {\n switch (iconInt) {\n // Hey whoever works on this app next I would recommend making the icons better.\n // I couldn't see a way to set both the color and picture of the marker programmatically,\n // so I just made them myself in Paint3d and had the computer \"randomly\" choose one.\n // If you guys know how to make them better or some way of programmatically setting them that would be dope - Josie\n case 0:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker0);\n break;\n case 1:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker_1);\n break;\n case 2:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker2);\n break;\n case 3:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker3);\n break;\n case 4:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker4);\n break;\n case 5:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker5);\n break;\n case 6:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker6);\n break;\n case 7:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker7);\n break;\n default:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker0);\n break;\n }\n }\n mMap.addMarker(new MarkerOptions().position(coords).title(name).snippet(\"Your tree\").icon(icon));//BitmapDescriptorFactory.fromBitmap(bmp)));\n } catch (ArrayIndexOutOfBoundsException e) {\n\n }\n }\n } catch (Exception e) {\n continue;\n }\n }\n }\n } else {\n Toast toast = Toast.makeText(parent, \"Unable to load trees.\", Toast.LENGTH_LONG);\n toast.show();\n }\n }\n });\n\n } else if (ds instanceof AllUsersDataSource){\n stuff = null;\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n CollectionReference users = db.collection(\"pendingTrees\");\n db.collection(\"acceptedTrees\").get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n for (QueryDocumentSnapshot document : task.getResult()) {\n ArrayList<String> pic = (ArrayList<String>) document.getData().get(\"pictures\");\n try {\n Double latitude = Double.valueOf(document.getData().get(\"latitude\").toString());\n Double longitude = Double.valueOf(document.getData().get(\"longitude\").toString());\n if (latitude != null && longitude != null) {\n LatLng coords = new LatLng(Double.valueOf(latitude), Double.valueOf(longitude));\n try {\n String user = (String) document.getData().get(\"userID\");\n if(!mAuth.getCurrentUser().getUid().equals(user)) {\n String name = document.getData().get(\"commonName\").toString();\n\n BitmapDescriptor icon;\n String snippet = \"\";\n int iconInt = randomGenerator.nextInt(8);\n switch (iconInt) {\n case 0:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker0);\n break;\n case 1:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker_1);\n break;\n case 2:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker2);\n break;\n case 3:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker3);\n break;\n case 4:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker4);\n break;\n case 5:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker5);\n break;\n case 6:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker6);\n break;\n case 7:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker7);\n break;\n default:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker0);\n break;\n }\n\n if (snippet.equals(\"\")) {\n snippet = \"User submitted\";\n }\n mMap.addMarker(new MarkerOptions().position(coords).title(name).snippet(snippet).icon(icon));//BitmapDescriptorFactory.fromBitmap(bmp)));\n\n }\n }catch (ArrayIndexOutOfBoundsException e) {\n\n }\n }\n } catch (Exception e) {\n continue;\n }\n }\n } else {\n Toast toast = Toast.makeText(parent, \"Unable to load trees.\", Toast.LENGTH_LONG);\n }\n }\n });\n }\n if (stuff == null) {\n continue;\n }\n int count =-1;\n for (CSVRecord record : stuff) {\n count++;\n if(count>2278){\n break;\n }\n String latitude;\n String longitude;\n if(!whichSource) {\n if(ds instanceof ExtendedCoHDataSource){\n latitude = record.get(\"y_coord\");\n longitude = record.get(\"x_coord\");\n }else{\n latitude = record.get(\"Latitude\");\n longitude = record.get(\"Longitude\");\n }\n }\n else{\n latitude = record.get(Tree.LATITUDE);\n longitude = record.get(Tree.LONGITUDE);\n }\n if (latitude != null && longitude != null) {\n if (latitude.matches(\"^-?[0-9]\\\\d*(\\\\.\\\\d+)?$\")) {\n if (longitude.matches(\"^-?[0-9]\\\\d*(\\\\.\\\\d+)?$\")) {\n LatLng coords = new LatLng(Double.valueOf(latitude), Double.valueOf(longitude));\n if (ds.getClass().equals(CityOfHollandDataSource.class)) {\n location42 = record.get(\"Park\");\n }\n try {\n String name = Transform.ChangeName(record.get(treeField));\n if(name == \"\"){\n name = \"N/A\";\n }\n int iconInt = randomGenerator.nextInt(8);\n BitmapDescriptor icon;\n switch (iconInt){\n case 0:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker0);\n break;\n case 1:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker_1);\n break;\n case 2:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker2);\n break;\n case 3:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker3);\n break;\n case 4:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker4);\n break;\n case 5:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker5);\n break;\n case 6:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker6);\n break;\n case 7:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker7);\n break;\n default:\n icon = BitmapDescriptorFactory.fromResource(R.drawable.tree_marker0);\n break;\n }\n mMap.addMarker(new MarkerOptions().position(coords).title(name).snippet(location42).icon(icon));//BitmapDescriptorFactory.fromBitmap(bmp)));\n }catch(ArrayIndexOutOfBoundsException e) {\n\n }\n\n }\n }\n }\n }\n it.next();\n }\n\n LatLng hope = new LatLng(42.788002, -86.105971);\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(PERMS, REQUEST_ID);\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(hope, zoom));\n return;\n } else {\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n boolean isGPSEnabled = locationManager\n .isProviderEnabled(LocationManager.GPS_PROVIDER);\n boolean isNetworkEnabled = locationManager\n .isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n Criteria criteria = new Criteria();\n Location location1 = null;\n Location defaultLocation = new Location(\"\");\n defaultLocation.setLatitude(42.788002);\n defaultLocation.setLongitude(-86.105971);\n List<String> provs = locationManager.getAllProviders();\n\n String a = LocationManager.GPS_PROVIDER;\n location1 = locationManager.getLastKnownLocation(a);\n Location location2 = location;\n for(String prov : provs) {\n if (locationManager.getLastKnownLocation(prov) != null) {\n if (!prov.equals(\"gps\")) {\n defaultLocation = locationManager.getLastKnownLocation(prov);\n } else {\n location1 = locationManager.getLastKnownLocation(prov);\n }\n if (location1 != null) {\n break;\n }\n }\n }\n if(location==null){\n location1 = defaultLocation;\n }\n double latitude,longitude;\n if(location1 == null){\n onLocationChanged(location2);\n latitude = location2.getLatitude();\n longitude = location2.getLongitude();\n }else {\n onLocationChanged(location1);\n latitude = location1.getLatitude();\n longitude = location1.getLongitude();\n }\n\n LatLng currentLocation = new LatLng(latitude, longitude);\n if (locMarker == true) {\n mCurrLocationMarker = mMap.addMarker(new MarkerOptions().position(currentLocation)\n .title(\"Current Position\").snippet(\"This is you!\")\n .icon(defaultMarker(personalMarker)));\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(currentLocation, zoom));\n }\n\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n if(isJoinNode){\n return;\n }\n if(isAddMarker){\n commandManager.doCommand(\n new AddOnePointCommand(\n this,\n mDbHelper,\n latLng,\n PATH_CATEGORY));\n isAddMarker = false;\n fab_add_marker.setSelected(false);\n }\n else if(isEditNode && !isJoinNode){\n if(selectedPosition == null){\n SnackbarUtil.showSnackBar(root_map, snackbar,\"Pilih point terlebih dahulu.\", Snackbar.LENGTH_LONG);\n } else{\n commandManager.doCommand(\n new AddPointCommand(\n this,\n mDbHelper,\n selectedPosition,\n latLng,\n PATH_CATEGORY));\n\n }\n } else if(isEditPolyline){\n long id = (long)selectedPolyline.getTag();\n Path selectedPath = null;\n for (Path path : paths){\n if(path.getId() == id){\n selectedPath = path;\n }\n }\n commandManager.doCommand(\n new AddPointBetweenPathCommand(\n this,\n mDbHelper,\n selectedPath,\n latLng,\n PATH_CATEGORY));\n }\n\n }",
"public MapGraph()\n {\n this.nodes = new HashMap<Integer, MapNode>();\n this.edges = new HashMap<Integer, Set<MapEdge>>();\n this.nodesByName = new HashMap<String, Set<Integer>>();\n }",
"void mo5802a(LatLng latLng);",
"@Override\n\tpublic HashMap<Position, Node> generate(){\n\t\tNode tempNode;\n\t\tPosition tempPosition;\n\t\tif(map != null && map.isEmpty()){\n\t\t\tfor(int y=0; y<numNodesY; y++){\n\t\t\t\tfor(int x=0; x<numNodesX; x++){\n\t\t\t\t\ttempPosition = new Position(x*nodeDistance, \n\t\t\t\t\t\t\ty*nodeDistance);\n\t\t\t\t\ttempNode = new Node(field, tempPosition,\n\t\t\t\t\t\t\tnodeSignalStrength,\n\t\t\t\t\t\t\tagentLife,\n\t\t\t\t\t\t\trequestLife);\n\t\t\t\t\tmap.put(tempPosition, tempNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new HashMap<Position, Node>(map);\n\t}",
"public Node() {\n this.nodeMap = new HashMap<>();\n }",
"private static <T> Map<Character,Node<T>> newNodeMap()\n\t\t{\n\t\t\treturn new HashMap<Character,Node<T>>();\n\t\t}",
"@Override\n public void onMapLongClick(LatLng latLng) {\n String newLocation = null;\n Geocoder gcd = new Geocoder(getBaseContext(), Locale.getDefault());\n List<Address> addresses = null;\n try {\n addresses = gcd.getFromLocation(latLng.latitude, latLng.longitude, 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (addresses.size() > 0) {\n newLocation = addresses.get(0).getLocality();\n }\n\n // Set new marker attributes\n MapLocation newMarker = new MapLocation();\n newMarker.setLocation(newLocation);\n newMarker.setLatitude(latLng.latitude);\n newMarker.setLongitude(latLng.longitude);\n\n // Add to firebase\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference dbRef = database.getReference();\n DatabaseReference newRef = dbRef.push();\n newRef.setValue(newMarker);\n }",
"private void setMarker(DataSnapshot dataSnapshot) {\n String key = dataSnapshot.getKey();\n HashMap<String, Object> value = (HashMap<String, Object>) dataSnapshot.getValue();\n double lat = Double.parseDouble(value.get(\"latitude\").toString());\n double lng = Double.parseDouble(value.get(\"longitude\").toString());\n LatLng location = new LatLng(lat, lng);\n if (!mMarkers.containsKey(key)) {\n mMarkers.put(key, mMap.addMarker(new MarkerOptions().title(childnm).position(location).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ROSE))));\n } else {\n mMarkers.get(key).setPosition(location);\n }\n LatLngBounds.Builder builder = new LatLngBounds.Builder();\n for (Marker marker : mMarkers.values()) {\n builder.include(marker.getPosition());\n }\n mMap.animateCamera(CameraUpdateFactory.newLatLngBounds(builder.build(), 300));\n }",
"public Point2D getNodePositionXY () { return n.getXYPositionMap(); }",
"private void populate_tree(KDTree kdtree, ArrayList<Point> pointSet) {\n\t\tfor (Point p : pointSet) {\n\t\t\t\n\t\t\tArrayList<Double> coordinates = p.getCoordinates();\n\n\t\t\tdouble[] key = new double[coordinates.size()];\n\n\t\t\tfor (int i = 0; i < coordinates.size(); i++) {\n\t\t\t\tkey[i] = coordinates.get(i);\n\t\t\t}\n\n\t\t\tkdtree.insert(key, p);\n\t\t}\n\n\t}",
"public MapGrid(){\n\t\tthis.cell = 25;\n\t\tthis.map = new Node[this.width][this.height];\n\t}",
"public OsmObjectMap getNodes() throws SQLException {\n OsmObjectMap osmObjectMap = new OsmObjectMap();\n ResultSet nodes = databaseStatement.executeQuery(\"SELECT *, ST_X(ST_TRANSFORM(geom,4326)) as xCoord, ST_Y(ST_TRANSFORM(geom,4326)) as yCoord FROM NODES;\");\n while (nodes.next()) { //Mapping nodes\n Map<String, String> tagMap = objectMapper.convertValue(nodes.getObject(\"tags\"), Map.class);\n double unityXValue = coordinateConverter.convertXCoordinate(nodes.getDouble(\"xCoord\"));\n double unityYValue = coordinateConverter.convertYCoordinate(nodes.getDouble(\"yCoord\"));\n OsmNodeObject osmNodeObject = new OsmNodeObject(nodes.getString(\"id\"), tagMap, nodes.getDouble(\"xCoord\"), nodes.getDouble(\"yCoord\"), unityXValue, unityYValue);\n osmObjectMap.addObject(nodes.getString(\"id\"), osmNodeObject);\n }\n return osmObjectMap;\n }",
"public void addMapMarker() {\n if (iLat != null && !iLat.equals(\"\") && iLon != null && !iLon.equals(\"\") && iLatRef != null && !iLatRef.equals(\"\") && iLonRef != null && !iLonRef.equals(\"\")) {\n\n if (iLatRef.equals(\"N\")) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n }\n\n if (iLonRef.equals(\"E\")) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n }\n }\n\n final MapView gMap = (MapView) findViewById(R.id.map);\n\n if (addedMarker == false) {\n posMarker = gMap.getMap().addMarker(posMarkerOptions);\n posMarker.setTitle(getString(R.string.map_position));\n addedMarker = true;\n }\n\n posMarker.setVisible(true);\n posMarker.setPosition(new LatLng(iLatFloat, iLonFloat));\n\n GoogleMap gMapObj = gMap.getMap();\n\n gMapObj.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n posMarker.setPosition(latLng);\n displayCoordsInDegrees();\n\n //Use text view values instead of posMarker values\n iLat = toDMS(posMarker.getPosition().latitude);\n iLon = toDMS(posMarker.getPosition().longitude);\n\n if (posMarker.getPosition().latitude > 0) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n iLatRef = \"N\";\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n iLatRef = \"S\";\n }\n\n if (posMarker.getPosition().longitude > 0) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n iLonRef = \"E\";\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n iLonRef = \"W\";\n }\n }\n });\n }",
"public Map(int[] lattice){\n\t\tthis.lattice = lattice;\n\t\tvisited = new boolean[lattice.length];\n\t\t\n\t\t//unique case [end/start]\n\t\tif(lattice[6] != -1)\n\t\t\ta2Nodes.add(6);\n\t\tvisited[6] = true;\n\t\tif(lattice[224] != -1)\n\t\t\ta2Nodes.add(224);\n\t\tvisited[224] = true;\n\t\t\n\t\t\n\t\tfor(int i = 0; i < 6;i++){ //top cases A3NODES\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta3Nodes.add(i);\n\t\t\tvisited[i] = true;\n\t\t}\n\t\tif(lattice[14] != -1) // unique case due to corner cut[CC]\n\t\t\ta3Nodes.add(14);\n\t\tvisited[14] = true;\n\t\t\n\t\tfor(int i = 225; i < 231;i++){//bottom cases A3NODES\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta3Nodes.add(i);\n\t\t\tvisited[i] = true;\n\t\t}\n\t\tif(lattice[216] != -1) //index 218, accounts for CC\n\t\t\ta3Nodes.add(216);\n\t\tvisited[216] = true;\n\t\t\n\t\tfor(int i = 29; i < 210; i+=15){ //side cases A4NODES\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta4Nodes.add(i);\n\t\t\tvisited[i] = true;\n\t\t}\n\t\t\n\t\tfor(int i = 21; i < 202; i+=15){\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta4Nodes.add(i);\n\t\t\tvisited[i] = true;\n\t\t}\n\t\tif(lattice[7] != -1) //unique side cases due to CC\n\t\t\ta4Nodes.add(7);\n\t\tvisited[7] = true;\n\t\tif(lattice[223] != -1)\n\t\t\ta4Nodes.add(223);\n\t\tvisited[223] = true;\n\t\t\n\t\t\n\t\tfor(int i = 8; i < 14; i++){ //Bottom-top cases A5NODES\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta5Nodes.add(i);\n\t\t\tvisited[i] = true;\n\t\t}\n\t\t\n\t\tfor(int i = 217; i < 223; i++){\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta5Nodes.add(i);\n\t\t\tvisited[i] = true;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < lattice.length; i++){ //All A6Nodes\n\t\t\tif(visited[i])\n\t\t\t\tcontinue;\n\t\t\tif(lattice[i] != -1)\n\t\t\t\ta6Nodes.add(i);\n\t\t}\n\t\t\n\t\tcreateNodes();\n\t}",
"public MapNode(\n\t\tAbstractNode\tparent)\n\t{\n\t\t// Call superclass constructor\n\t\tsuper(parent);\n\n\t\t// Initialise instance variables\n\t\tpairs = new LinkedHashMap<>();\n\t}",
"public abstract String[] map() throws TooFewNocNodesException;",
"public int makeGlobal(){\r\n\t\tif(mapExists && this.creationTime > SimClock.getTime() - TIMEOUT){\r\n\t\t//TODO: merge new maps\t\r\n\t\t\treturn globalMap.size();\r\n\t\t}\r\n\t\telse if(mapExists && this.creationTime <= SimClock.getTime() - TIMEOUT){\r\n\t\t//restart my map\r\n\t\t\tglobalMap = null;\r\n\t\t\tsynced = -1;\r\n\t\t\tmapExists = false;\r\n\t\t\tref_id = -1;\r\n\t\t\tthis.creationTime = SimClock.getTime();\r\n\t\t\t\r\n\t\t}\r\n\t\t//usar 3 estáticos para ajustar coordenadas\r\n\t\t\r\n\t\tMap<Integer, Coord> m = new HashMap<Integer, Coord>();\r\n\t\tArrayList<Integer> staticNBs = new ArrayList<Integer>();\r\n\t\t/*first find the static nodes i have in my map*/\r\n\t\tif(this.myMap == null || this.myMap.getMap() == null) return -1;\r\n\t\tfor(Map.Entry<Integer, Coord> nb : this.myMap.getMap().entrySet()){\r\n\t\t\t/*add them to my map*/\r\n\t\t\tif (staticNodes.keySet().contains(nb.getKey())){\r\n\t\t\t\tstaticNBs.add(nb.getKey());\t\r\n\t\t\t\tm.put(nb.getKey(), staticNodes.get(nb.getKey()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(staticNBs.size() < 3){\r\n\t\t\t//core.Debug.p(\"can't determine global coordinates\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\telse{\r\n\t\t\t//map centered on certain static node, using real coordinates.\r\n\t\t\tMap.Entry<Integer, NodePositionsSet> s = startingGlobalMap(staticNBs);\r\n\t\t\t//core.Debug.p(\"***map centered on static node\" + ref_id + \"***\");\r\n\t\t\t//core.Debug.p(this.toString());\r\n\t\t\tif(s.getValue() != null){\r\n\t\t\t\t//core.Debug.p(\"globalmap not null! wohoo!\");\r\n\t\t\t\t//core.Debug.p(\"t= \" + SimClock.getTime() + \" base map:\" + realMap(s.getValue().getMap()));\r\n\t\t\t\t/*now mix this map*/\r\n\t\t\t\t//core.Debug.p(\"+++mixed map:\" + realMap(s.getValue().getMap()));\r\n\t\t\t\tglobalMap = NodePositionsSet.mixMap(s.getValue().getMap(), myMap.getMap(), ref_id, myID);\r\n\t\t\t\t//core.Debug.p(\"+++mixed map:\" + realMap(globalMap));\r\n\t\t\t\tif(globalMap == null) return -1;\r\n\t\t\t\tlocalmix();\r\n\t\t\t\tif(globalMap == null) return -1;\r\n\t\t\t\tthis.updateTime = SimClock.getTime();\r\n\t\t\t\treturn globalMap.size();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcore.Debug.p(\"can't determine global coordinates\");\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Node() {\n neighbors = new ArrayList<>();\n sizeOfSubtree = 0;\n containedPaths = new long[k];\n startingPaths = new long[k];\n }",
"public MapNode()\n\t{\n\t\t// Call alternative constructor\n\t\tthis((AbstractNode)null);\n\t}",
"private void setNodeCoordinates (int trainPosition)\r\n\t{\r\n\t\tswitch (trainPosition)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\t// S node\r\n\t\t\t\tx = 312;\r\n\t\t\t\ty = 191;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 1:\r\n\t\t\t{\t\r\n\t\t\t\t// I1\r\n\t\t\t\tx = 272;\r\n\t\t\t\ty = 286;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 2:\r\n\t\t\t{\t\r\n\t\t\t\t// I2\r\n\t\t\t\tx = 165;\r\n\t\t\t\ty = 266;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 3:\r\n\t\t\t{\t\r\n\t\t\t\t// I3\r\n\t\t\t\tx = 181;\r\n\t\t\t\ty = 170;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 4:\r\n\t\t\t{\t\r\n\t\t\t\t// I4\r\n\t\t\t\tx = 300;\r\n\t\t\t\ty = 87;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t{\r\n\t\t\t\t// I5\r\n\t\t\t\tx = 442;\r\n\t\t\t\ty = 136;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 6:\r\n\t\t\t{\t\r\n\t\t\t\t// I6\r\n\t\t\t\tx = 437;\r\n\t\t\t\ty = 249;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 7:\r\n\t\t\t{\t\r\n\t\t\t\t// O1\r\n\t\t\t\tx = 309;\r\n\t\t\t\ty = 371;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 8:\r\n\t\t\t{\t\r\n\t\t\t\t// O2\r\n\t\t\t\tx = 34;\r\n\t\t\t\ty = 291;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 9:\r\n\t\t\t{\t\r\n\t\t\t\t// O3\r\n\t\t\t\tx = 113;\r\n\t\t\t\ty = 54;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 10:\r\n\t\t\t{\t\r\n\t\t\t\t// O4\r\n\t\t\t\tx = 383;\r\n\t\t\t\ty = 18;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 11:\r\n\t\t\t{\t\r\n\t\t\t\t// O5\r\n\t\t\t\tx = 560;\r\n\t\t\t\ty = 147;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 12:\r\n\t\t\t{\t\r\n\t\t\t\t// O6\r\n\t\t\t\tx = 558;\r\n\t\t\t\ty = 312;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t}\r\n\t}",
"@Override\n public void onMapReady(final GoogleMap googleMap) {\n this.googleMap = googleMap;\n this.googleMap.getUiSettings().setZoomControlsEnabled(true);\n this.googleMap.setOnCameraChangeListener(new GoogleMap.OnCameraChangeListener() {\n @Override\n public void onCameraChange(CameraPosition cameraPosition) {\n boolean markersVisibility = false;\n if(cameraPosition.zoom>minZoomLevel){\n// googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(cameraPosition.target, minZoomLevel));\n markersVisibility = true;\n }\n for(Marker marker : mapMarkers){\n marker.setVisible(markersVisibility);\n }\n }\n });\n this.googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(25.0449695d, 121.5087531d), minZoomLevel));\n// this.mapItemClusterManager = new ClusterManager<>(this,this.googleMap);\n// this.googleMap.setOnCameraChangeListener(this.mapItemClusterManager);\n// this.googleMap.setOnMarkerClickListener(this.mapItemClusterManager);\n// this.googleMap.setOnInfoWindowClickListener(this.mapItemClusterManager);\n// this.mapItemClusterManager.setRenderer(new DefaultClusterRenderer<ClusterItem>(this,this.googleMap,this.mapItemClusterManager){\n// @Override\n// protected boolean shouldRenderAsCluster(Cluster<ClusterItem> cluster) {\n// return cluster.getSize()>20;\n// }\n// });\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n assetReadHandler.sendEmptyMessage(0);\n BufferedReader busInfoFileBufferReader = new BufferedReader(new InputStreamReader(getAssets().open(\"GetStopLocation.json\")));\n JSONObject busInfoRawJsonObject = new JSONObject(busInfoFileBufferReader.readLine());\n Message message = new Message();\n message.obj = busInfoRawJsonObject;\n assetReadHandler.sendEmptyMessage(1);\n busStateJJsonArrayHandler.sendMessage(message);\n } catch (JSONException e){\n Log.e(\"y3k\", e.getMessage());\n e.printStackTrace();\n } catch (IOException e1){\n Log.e(\"y3k\", e1.getMessage());\n e1.printStackTrace();\n }\n }\n }).start();\n\n// LatLng sydney = new LatLng(-34, 151);\n// googleMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// googleMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"public BSTMap() {\n root = null;\n size = 0;\n }",
"@Override\n\tpublic MapNode clone()\n\t{\n\t\t// Create copy of this map node\n\t\tMapNode copy = (MapNode)super.clone();\n\n\t\t// Copy KV pairs\n\t\tcopy.pairs = new LinkedHashMap<>();\n\t\tfor (Map.Entry<String, AbstractNode> pair : pairs.entrySet())\n\t\t{\n\t\t\tAbstractNode value = pair.getValue().clone();\n\t\t\tcopy.pairs.put(pair.getKey(), value);\n\t\t\tvalue.setParent(copy);\n\t\t}\n\n\t\t// Return copy\n\t\treturn copy;\n\t}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n databaseReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n trackingLocationsList.clear();\n Iterable<DataSnapshot> tracks = dataSnapshot.child(id).getChildren();\n for (DataSnapshot info : tracks) {\n LatLong latLong = info.getValue(LatLong.class);\n trackingLocationsList.add(latLong);\n }\n int i=0;\n LatLng previous,next = null;\n for(LatLong value : trackingLocationsList){\n if(i==0){\n previous = new LatLng(Double.parseDouble(value.getLatitude()), Double.parseDouble(value.getLongitude()));\n next = new LatLng(Double.parseDouble(value.getLatitude()), Double.parseDouble(value.getLongitude()));\n mMap.addMarker(new MarkerOptions().position(previous).title(\"Marker\"+i++));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(previous));\n }\n else{\n previous=next;\n next = new LatLng(Double.parseDouble(value.getLatitude()), Double.parseDouble(value.getLongitude()));\n mMap.addMarker(new MarkerOptions().position(next).title(\"Marker\"+i++));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(next));\n }\n mMap.addPolyline(new PolylineOptions()\n .add(previous,next)\n .width(5)\n .color(Color.RED));\n }\n }\n\n\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }",
"@Override\n public void onMapLoaded() {\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 13.3f));\n\n // Placing a marker on the touched position\n mMap.addMarker(markerOptions);\n }",
"@Override\n public void onMapReady(final GoogleMap map) {\n\n eventListener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot postSnapshot : dataSnapshot.getChildren()) {\n String lat = postSnapshot.child(\"lat\").getValue(Double.class) + \"\";\n String lon = postSnapshot.child(\"lon\").getValue(Double.class) + \"\";\n String data = postSnapshot.child(\"val\").getValue(Integer.class) + \"\";\n list.add(new Item(lat, lon, data));\n Log.e(\"TAG\",lat + lon + data);\n map.addMarker(new MarkerOptions().position(new LatLng(Double.valueOf(lat), Double.valueOf(lon))).title(data));\n\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n };\n\n myRef.addValueEventListener(eventListener);\n\n for (Item e : list) {\n Log.e(\"TAG\",\"Add\");\n }\n }",
"public NodeMap<CDMNode, DapNode> create() throws DapException {\n // Netcdf Dataset will already have a root group\n Group cdmroot = ncfile.getRootGroup();\n this.nodemap.put(cdmroot, this.dmr);\n fillGroup(cdmroot, this.dmr, ncfile);\n return this.nodemap;\n }",
"private void addGeoData(String key, double lat, double lon)\n {\n String type=\"\";\n if(mType=='E')\n type=\"Events/\";\n else if(mType=='G')\n type=\"Groups/\";\n\n DatabaseReference placeRef= database.getReference(type+mEntityID+\"/places\");\n GeoFire geoFire= new GeoFire(placeRef);\n geoFire.setLocation(key,new GeoLocation(lat,lon));\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n map = googleMap;\n map.setMyLocationEnabled(true);\n currentLatLang = new LatLng(currentLoc.getLatitude(),currentLoc.getLongitude());\n preLati = currentLoc.getLatitude();\n preLogi = currentLoc.getLongitude();\n //map.moveCamera(CameraUpdateFactory.newLatLng(currentLatLang));\n // map.animateCamera(CameraUpdateFactory.newLatLng(currentLatLang));\n map.animateCamera(CameraUpdateFactory.newLatLngZoom(currentLatLang,13));//zoom to current location animation\n //map.addMarker(new MarkerOptions().position(currentLatLang).title(\"You are here\"));\n\n\n //after map assign we are going to do database work here\n //hierarchy is on top Datas there\n //after that Sensor name comes, each sensor child contains two values location and radius\n databaseReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n //dataSnapshot.key will give \"Datas\" but here i am not using that key\n int sensorReading1,sensorReading2;\n\n if( dangerCircleSensor1!=null) dangerCircleSensor1.remove(); // every time data changes on database\n if( dangerCircleSensor2!=null) dangerCircleSensor2.remove(); // here we delete all marker and\n\n if( warningCircleSensor1!=null) warningCircleSensor1.remove();\n if( warningCircleSensor2!=null) warningCircleSensor2.remove();\n\n if(dangerMarkerSensor1!=null) dangerMarkerSensor1.remove(); // circle if it is on map\n if(dangerMarkerSensor2!=null) dangerMarkerSensor2.remove(); // later we adding marker and circle again using database value\n\n if(warningMarkerSensor1!=null) warningMarkerSensor1.remove();\n if(warningMarkerSensor2!=null) warningMarkerSensor2.remove();\n\n double db = Double.parseDouble(dataSnapshot.child(\"CITY1LOC1\")\n .child(\"reading\").getValue().toString());\n\n dangerZoneRadSensor1 = Calculator.getDistance(db,highdb,sourceDistance);\n warningZoneRadSensor1 = Calculator.getDistance(db, warningDB,sourceDistance);\n LatLng latLng = new LatLng(sorceLati,sourceLongti);\n dangerMarkerSensor1 = map.addMarker(new MarkerOptions().position(latLng).title(\"Sensor 1 is here\"));// added into\n dangerMarkerSensor1.showInfoWindow();//to display tag always\n Log.d(TAG, \"onDataChange: dangerZoneRadSensor1\" +(int) dangerZoneRadSensor1 );\n dangerCircleSensor1 = map.addCircle(getCircleOption(latLng,(int) dangerZoneRadSensor1,Color.RED));//draw the circle on map added\n // into Circle object\n warningCircleSensor1 = map.addCircle(getCircleOption(latLng,(int)warningZoneRadSensor1,Color.GREEN));\n /*for (DataSnapshot postSnapshot: dataSnapshot.getChildren()){\n String sensor = postSnapshot.getKey().toLowerCase().trim();//it give the sensor name\n //we have to handle the cases for all sensors in our list\n double latitude,longitude;//location in database look like this \"12.3,45.754\" we have to decode this\n // for decoding we use locationDecoder and it will return an array of length 2\n // index 0 gives latitude\n // index 1 gives longitude\n if (sensor.equalsIgnoreCase(\"sensor1\")){\n String location = postSnapshot.child(\"location\").getValue().toString() ;\n double[] locationArray = Calculator.getLocation(location);\n latitude = locationArray[0];\n longitude = locationArray[1];\n LatLng latLng = new LatLng(latitude,longitude);//create location coordinates with lati and longi\n // using latitude and longitude we can mark position in map using below line\n dangerMarkerSensor1 = map.addMarker(new MarkerOptions().position(latLng).title(\"Sensor 1 is here\"));// added into\n dangerMarkerSensor1.showInfoWindow();//to display tag always\n // Marker object\n int dangerRadius = ((Long)postSnapshot.child(\"dangerRadius\").getValue()).intValue();//radius is in long we haveto\n // convert it into int\n int warningRadius = ((Long)postSnapshot.child(\"warningRadius\").getValue()).intValue();\n dangerZoneRadSensor1 = dangerRadius;\n warningZoneRadSensor1 = warningRadius;\n dangerCircleSensor1 = map.addCircle(getCircleOption(latLng,dangerRadius,Color.RED));//draw the circle on map added\n // into Circle object\n warningCircleSensor1 = map.addCircle(getCircleOption(latLng,warningRadius,Color.GREEN));\n }\n else if (sensor.equalsIgnoreCase(\"sensor2\")){\n String location = postSnapshot.child(\"location\").getValue().toString().trim() ;\n double[] locationArray = Calculator.getLocation(location);\n latitude = locationArray[0];\n longitude = locationArray[1];\n LatLng latLng = new LatLng(latitude,longitude);\n dangerMarkerSensor2 = map.addMarker(new MarkerOptions().position(new LatLng(latitude,longitude)).title(\"Sensor 2 is here\"));\n dangerMarkerSensor2.showInfoWindow();//to display tag always\n int dangerRadius = ((Long)postSnapshot.child(\"dangerRadius\").getValue()).intValue();\n int warningRadius = ((Long)postSnapshot.child(\"warningRadius\").getValue()).intValue();\n dangerCircleSensor2 = map.addCircle(getCircleOption(latLng,dangerRadius,Color.BLACK));\n warningCircleSensor2 = map.addCircle(getCircleOption(latLng,warningRadius,Color.GREEN));\n }\n }*/\n\n double latitude=currentLoc.getLatitude();\n double longitude=currentLoc.getLongitude();\n double distance = Calculator.distance(sensor1Lati,latitude,sensor2Longi,longitude,0,0); //gives the distance changed\n preLati = latitude;\n preLogi = longitude;\n // String msg=\"New Latitude: \"+latitude + \"New Longitude: \"+longitude;\n\n if (distance <= dangerZoneRadSensor1)\n Toast.makeText(MapActivity.this,\"You are in danger zone. Move \" + (dangerZoneRadSensor1 - distance) + \" m backwards\" ,Toast.LENGTH_LONG).show();\n else if (distance <= warningZoneRadSensor1 )\n Toast.makeText(MapActivity.this,\"You are in warning zone. \" ,Toast.LENGTH_LONG).show();\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"public void setToLeaf() {\r\n isLeaf = true;\r\n }",
"@SuppressWarnings(\"ReferenceEquality\") // cannot use equals() for check whether tree is the same\n private PersistentSortedMap<K, V> mapFromTree(@Var @Nullable Node<K, V> newRoot) {\n if (newRoot == root) {\n return this;\n } else if (newRoot == null) {\n return of();\n } else {\n // Root is always black.\n newRoot = newRoot.withColor(Node.BLACK);\n return new PathCopyingPersistentTreeMap<>(newRoot);\n }\n }",
"public MapSum() {\n root = new TrieNode();\n }",
"public MapSum() {\n root = new TrieNode();\n }",
"public MapSum() {\n root = new TrieNode();\n }",
"public void add(MapObject m){\n if (fits(m, x, y, width / 2, height / 2)) {\n //check if child tree exists to not overwrite it\n if (lu == null) {\n lu = new QuadTree(x, y, width / 2, height / 2);\n }\n lu.add(m);\n }else{\n if (fits(m,x, y + height/2, width/2, height/2)) {\n if (ld == null) {\n ld = new QuadTree(x, y + height/2, width/2, height/2);\n }\n ld.add(m);\n }else{\n if (fits(m, x + width/2, y, width/2, height/2)) {\n if (ru == null) {\n ru = new QuadTree(x + width/2, y, width/2, height/2);\n }\n ru.add(m);\n }else{\n if (fits(m, x + width/2, y + height/2, width/2, height/2)) {\n if (rd == null) {\n rd = new QuadTree(x + width/2, y + height/2, width/2, height/2);\n }\n rd.add(m);\n }else{\n //when map object does not fit in smaller sector, add it to parent\n //end of recursion\n containedObj.add(m);\n }\n }\n }\n }\n}",
"private Collection<Node> getNodes()\r\n\t{\r\n\t return nodeMap.values();\r\n\t}",
"public AbstractListMapGraph()\n\t{\n\t\tsuper();\n\t\tedgeList = new ArrayList<ET>();\n\t\tnodeList = new ArrayList<N>();\n\t\tgcs = new GraphChangeSupport<N, ET>(this);\n\t\tnodeEdgeMap = new HashMap<N, Set<ET>>();\n\t}",
"private void getMembersCoordinates()\n {\n String membersDatabaseAddress= \"Loc/\"+mEntityID;\n\n //Get Firebase RealtimeDB Reference\n DatabaseReference reference= database.getReference(membersDatabaseAddress);\n\n //Listen only once to the existing coordinates (This runs every 2.5 seconds or so. The coordinates\n //are taken in bulk inorder to reduce overhead costs.\n reference.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n //Put dataSnapshot in MemberMap\n Map<String,ArrayList<Double>> memberMap = (Map) dataSnapshot.getValue();\n\n /*\n Note: The Algo used here is nearly the same as the one used for fetching members from Database\n in the membersInit() function in SingleEntityActivity. Only here, we have the marker's map as the\n existing hashmap of markers of members and the memberMap as the map fetched from the database.\n */\n for(Map.Entry<String,Marker> entry:mMarkersMap.entrySet())\n {\n //Iterate through marker map\n String memberID= entry.getKey();\n if(memberMap!=null && memberMap.containsKey(memberID))\n {\n //If memberMap contains the key of current element of MarkerMap, then\n //Already marker in Markermap and needs to be updated only\n\n if(!memberID.equals(mUserID)) {\n //If group member is NOT the user himself\n //then get coordinates and store in LatLng object\n\n Double latitude = memberMap.get(memberID).get(0);\n Double longitude = memberMap.get(memberID).get(1);\n LatLng memberLatLng = new LatLng(latitude, longitude);\n entry.getValue().setPosition(memberLatLng);\n entry.getValue().setVisible(true);\n\n //If marker has been selected, then centre camera there\n if(current_number.equals(\"+91\"+entry.getKey())) {\n mMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(latitude, longitude)));\n }\n\n }\n\n //Set isMemberBroadcastingLocation hashmap to true. This shows\n //in the members tab that the member is broadcasting location\n isMemberBroadcastingLocation.put(memberID,true);\n\n //refresh member tab\n if(mMembersTab!=null)\n mMembersTab.refresh();\n\n if(membersProfilePic!=null &&\n membersProfilePic.containsKey(memberID) && mMemberSetProfilePicFlag.containsKey(memberID)\n && !mMemberSetProfilePicFlag.get(memberID))\n {\n //Change Member marker to ProfilePic\n\n Bitmap memberProfilePic= membersProfilePic.get(entry.getKey());\n mMarkersMap.get(entry.getKey()).setAnchor(0.5f,0.5f);\n mMarkersMap.get(entry.getKey()).setIcon(BitmapDescriptorFactory.fromBitmap(\n memberProfilePic));\n }\n\n //Remove member from the MemberMap because he/she has been updated on map\n memberMap.remove(memberID);\n\n }\n else\n {\n //Marker exist in hashmap but not in datasnapshot. i.e. member stopped broadcasting location\n\n if(!memberID.equals(mUserID))\n entry.getValue().setVisible(false);\n isMemberBroadcastingLocation.put(memberID,false);\n if(mMembersTab!=null)\n mMembersTab.refresh();\n }\n\n\n }\n\n try {\n Iterator<Map.Entry<String, ArrayList<Double>>> it = memberMap.entrySet().iterator();\n\n //Iterate through memberMap now. All the entries remaining are of those members who\n //were not broadcasting before (and hence absent from MarkersMap) but are doing so now\n while (it.hasNext()) {\n //All new members who were not available before\n\n\n Map.Entry<String, ArrayList<Double>> entry = it.next();\n Marker marker = null;\n String title = entry.getKey();\n isMemberBroadcastingLocation.put(title,true);\n if(mMembersTab!=null)\n mMembersTab.refresh();\n\n // Toast.makeText(getContext(),\"Changed\",Toast.LENGTH_SHORT).show();\n\n if (!title.equals(mUserID)) {\n //If member is not the current User, then get Latitude and Longitude\n //and store it in LatLng object\n\n Double latitude = entry.getValue().get(0);\n Double longitude = entry.getValue().get(1);\n\n String current_num_set=title;\n\n if (allContactNames.containsKey(title))\n title = allContactNames.get(title);\n\n if (allContactNames != null && allContactNames.containsKey(title))\n title = allContactNames.get(title);\n\n titleToNumber.put(title,current_num_set);\n LatLng memberLatLng = new LatLng(latitude, longitude);\n\n //Initialize the new marker for the member\n mMarkersMap.put(entry.getKey(),\n mMap.addMarker(new MarkerOptions().position(memberLatLng).\n title(title).\n icon(BitmapDescriptorFactory.fromBitmap(unknownUser)))\n );\n\n //Change marker to profile picture if available\n if(membersProfilePic!=null && membersProfilePic.containsKey(entry.getKey()))\n {\n Toast.makeText(getContext(),entry.getKey(),Toast.LENGTH_SHORT).show();\n Bitmap memberProfilePic= membersProfilePic.get(entry.getKey());\n mMarkersMap.get(entry.getKey()).setAnchor(0.5f,0.5f);\n mMarkersMap.get(entry.getKey()).setIcon(BitmapDescriptorFactory.fromBitmap(\n memberProfilePic));\n mMemberSetProfilePicFlag.put(entry.getKey(),true);\n }\n else\n {\n mMemberSetProfilePicFlag.put(entry.getKey(),false);\n }\n\n }\n else\n {\n mMarkersMap.put(mUserID,null);\n }\n\n }\n }\n catch (Exception e)\n {\n //If no one is broadcasting, an exception is thrown\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in current location and move the camera\n LatLng currentLocation = new LatLng(latitude, longitude);\n mMap.addMarker(new MarkerOptions().position(currentLocation).title(\"Current Location\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(currentLocation));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(currentLocation, 11.5f));\n\n //The following is sample code to add a marker at a locally saved Space Needle location\n /*\n double endLat = 47.6205;\n double endLong = -122.3493;\n LatLng spaceNeedle = new LatLng(endLat, endLong);\n String distanceToMarker = String.valueOf(distance(latitude, endLat, longitude, endLong, 0.0, 0.0)) + \" mi\";\n com.example.gar_awgarrett.seeker.Location spaceNeedleLocation = new com.example.gar_awgarrett.seeker.Location(\"Space Needle testing id\", \"Space Needle 1\", endLat, endLong);\n displayLocation(mMap, spaceNeedleLocation);\n */\n\n\n //Retrieve emerald locations from Firebase database and automatically display them on the map\n mDatabase = FirebaseDatabase.getInstance().getReference().child(\"Emerald Locations\");\n ChildEventListener childEventListener = mDatabase.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n String id = dataSnapshot.getKey();\n String name = dataSnapshot.child(\"name\").getValue().toString();\n Double latitude = Double.parseDouble(dataSnapshot.child(\"latitude\").getValue().toString());\n Double longitude = Double.parseDouble(dataSnapshot.child(\"longitude\").getValue().toString());\n com.example.gar_awgarrett.seeker.Location newLocation = new com.example.gar_awgarrett.seeker.Location(id, name, latitude, longitude);\n //mLocations.add(newLocation);\n displayLocation(mMap, newLocation);\n //next two lines keeps track of mLocations size for testing\n int size = mLocations.size();\n Log.i(\"mLocations\", \"Size is: \" + String.valueOf(size));\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }",
"public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }",
"public void addToPainter(OSMNode node) {\r\n\t\tGeoPosition geoP = new GeoPosition(Double.parseDouble(node.getLat()), Double.parseDouble((node.getLon())));\r\n\t\tgeopoints.add(geoP);\r\n\t\t \r\n\t\t//waypoints.add(new DefaultWaypoint(geoP));\r\n\t}",
"public interface Map {\n /**\n * Return the distance between two coordinates.\n * \n * @param coord1 valid coordinates\n * @param coord2 valid coordinates\n * @return return distance between coord1 and coord2.\n * Returns Integer.MAX_VALUE if there is no path\n * between coordinates.\n */\n public int distance(Coord coord1, Coord coord2);\n\n /**\n * Return coordinates of a localisation.\n * \n * @param address a known localisation\n * @param return coordinates of the localisation, null\n * if the location doesn't exist.\n */\n public Coord addressToCoord(String localisation);\n /**\n * Returns the address closest to the localisation\n *\n * @param loc : the concerned localisation \n * @post returns one of the closest addresses to loc, null if\n * there isn't any.\n */\n public String coordToAddress(Coord loc);\n\n /**\n * Add an obstacle at coordinate obstacleCoord\n * \n * @param obstacleCoord coordinates of the new obstacle. Must be valid\n * \n */\n\n public void addObstacle(Coord obstacleCoord);\n\n /**\n * Remove an obstacle at coordinates\n * \n * @param obstacleCoord must be coordinates of a recorded obstacle\n */\n public void removeObstacle(Coord obstacleCoord);\n /**\n * Adds a list of addresses->localisations in the map.\n *\n * @param address must be a list of lines with one address and one coordinate\n * on each, separated by an @. the coordinate must be on a street.\n * @return returns the list of invalid address.\n */\n public String addAddressList(BufferedReader address);\n /**\n * Adds an address in the Map. \n * @param Address a string representing the address, can be anything.\n * @param coord the coord of the address, can be anywhere.\n */\n public void addAddress(String Address, Coord coord);\n /**\n * Sets the street on the map\n * \n * the distance between roads is 10. the roads start at coordinate 0.\n * so numx = 5 -> roads at x = [0,10,20,30,40]\n * \n * @param: numx : > 0 :the amount of North-South streets.\n * @param: numy : > 0 :the amount of West-East streets.\n * \n */\n public void setStreets(int numx, int numy);\n}",
"protected abstract void setMarkers();",
"private void UpdateMap(){\n Log.d(\"data\", lati + \" \" + longi );\n// sydney = new LatLng(lati, longi);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"private void xxx() {\n LatLng westfieldNJ = new LatLng(40.659, -74.3474);\n mMap.addMarker(new MarkerOptions().position(westfieldNJ).title(\"Westfield, New Jersey\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(westfieldNJ));\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setOnMapLongClickListener(this);\n if(ContextCompat.checkSelfPermission(this, ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n //Adds a center on me button to map\n mMap.setMyLocationEnabled(true);\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if(location != null){\n LatLng myLatLng = new LatLng(location.getLatitude(), location.getLongitude());\n routePoints.add(myLatLng);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLatLng, 15.5f));\n }\n }\n }",
"public abstract void map(Long queryNode, Long graphNode);",
"@Override\n\tpublic List<Integer> getMapRelationsNodeForOneMap(int map_id) {\n\t\tResultSet resultSet = null;\n\t\tList<Integer> res = new ArrayList<Integer>();\n\t\ttry {\n\t\t\tString selectAllNodes = \"select distinct(newMap.id) from ((select node.id from maprelations,node \"\n\t\t\t\t\t+ \"where node.map_id = ? and maprelations.node_from=node.id) union \"\n\t\t\t\t\t+ \"(select node.id from maprelations,node where node.map_id = ? and \"\n\t\t\t\t\t+ \"maprelations.node_to =node.id)) as newMap;\";\n\t\t\tpstmt = conn.prepareStatement(selectAllNodes);\n\t\t\t// TODO: potential danger..\n\t\t\tpstmt.setInt(1, map_id);\n\t\t\tpstmt.setInt(2, map_id);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tres.add(resultSet.getInt(\"id\"));\n\t\t\t}\n\t\t\treturn res;\n\n\t\t} catch (SQLException se) {\n\t\t\tSystem.out.println(\"fail to connect database..\");\n\t\t\tse.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t\tJdbcConnect.connClose();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n Log.d(TAG, \"on Map Ready, about to set up clusterer\");\n // Add a the markers from the hashmap to the map\n\n setUpClusterer();\n // Test Code:\n // Position the map.\n Log.d(TAG, \"set up clusterer\");\n getMap().moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(5, -5), 10));\n Log.d(TAG, \"getMap().moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(5, -5), 10));\");\n }",
"NBLK(int[][] origMap) {\r\n\r\n\t\t\r\n\t\t// suppose it's a matrix for numberlink\r\n\t\tn_row = origMap.length;\r\n\t\tn_col = origMap[0].length;\r\n\t\tlength = n_row * n_col;\r\n\t\tadjaMatrix=new int[length][length];\r\n\t\tStartPoint=new HashMap<Integer, Node>();\r\n\t\tEndPoint=new HashMap<Integer, Node>();\r\n\t\tnowMap= new HashMap<Integer,LinkedList<Integer>>();\r\n\t\t\r\n\t\tpaths=new HashMap<Integer, Stack<Node>>();\r\n\t\tallNodes= new HashMap<Integer,Node>();\r\n\t\t\r\n\t\t\r\n\t\tlastPath=0;\r\n\t\t\r\n\t\tcount=0;\r\n\t\tfor (int i = 0; i < n_row; i++) {\r\n\t\t\tfor (int j = 0; j < n_col; j++) {\r\n\t\t\t\tif (origMap[i][j] > -1) {\r\n\t\t\t\t\t//we can use that point to represent a blocked point (i,j) as matrix[i][j]=-1\r\n\t\t\t\t\tint index = i * n_col + j;\r\n\t\t\t\t\tNode n = new Node(i, j, index, origMap[i][j]);\r\n\t\t\t\t\tallNodes.put(index, n);\r\n\t\t\t\t\tLinkedList<Integer> neibors = new LinkedList<Integer>();\r\n\r\n\t\t\t\t\tif (i > 0 && origMap[i-1][j] > -1) {\r\n\t\t\t\t\t\t//left\r\n\t\t\t\t\t\tadjaMatrix[index][(i - 1) * n_col + j] = 1;\r\n\t\t\t\t\t\tadjaMatrix[(i - 1) * n_col + j][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast((i - 1) * n_col + j);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (i < n_row - 1 && origMap[i+1][j] > -1) {\r\n\t\t\t\t\t\t//right\r\n\t\t\t\t\t\tadjaMatrix[index][(i + 1) * n_col + j] = 1;\r\n\t\t\t\t\t\tadjaMatrix[(i + 1) * n_col + j][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast((i + 1) * n_col + j);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (j > 0 && origMap[i][j-1] > -1) {\r\n\t\t\t\t\t\t//top\r\n\t\t\t\t\t\tadjaMatrix[index][i * n_col + j - 1] = 1;\r\n\t\t\t\t\t\tadjaMatrix[i * n_col + j - 1][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast(i * n_col + j - 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (j < n_col - 1 && origMap[i][j+1] > -1) {\r\n\t\t\t\t\t\t//bottom\r\n\t\t\t\t\t\tadjaMatrix[index][i * n_col + j + 1] = 1;\r\n\t\t\t\t\t\tadjaMatrix[i * n_col + j + 1][index] = 1;\r\n\t\t\t\t\t\tneibors.addLast(i * n_col + j + 1);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tnowMap.put(index, neibors);\r\n\t\t\t\t\tif (origMap[i][j] > 0) {\r\n\r\n\t\t\t\t\t\tif (!StartPoint.containsKey(origMap[i][j])) {\r\n\t\t\t\t\t\t\tStartPoint.put(origMap[i][j], n);\r\n\t\t\t\t\t\t\tStack<Node> tp = new Stack<Node>();\r\n\t\t\t\t\t\t\ttp.push(n);\r\n\t\t\t\t\t\t\tpaths.put(origMap[i][j], tp);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tEndPoint.put(origMap[i][j], n);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"private void drawMap( Graphics2D g2 )\r\n {\r\n MobilityMap map = sim.getMap();\r\n \r\n /* Draw map nodes and their links */\r\n int numNodes = map.getNumberOfNodes();\r\n \r\n for( int i=0; i < numNodes; i++ )\r\n {\r\n MapNode node = map.getNodeAt(i);\r\n Point2D.Double nodeLoc = node.getLocation();\r\n \r\n // Draw the node\r\n drawCircle( g2, nodeLoc, MAP_NODE_COLOUR, MAP_NODE_RADIUS, false );\r\n \r\n // Draw the node's links\r\n int numLinks = node.getNumberOfLinks();\r\n for( int j=0; j < numLinks; j++ )\r\n {\r\n MapNode destNode = node.getLinkAt(j).getGoesTo();\r\n Point2D.Double destNodeLoc = destNode.getLocation();\r\n drawLine( g2, nodeLoc, destNodeLoc, MAP_LINK_COLOUR );\r\n }\r\n }\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.getUiSettings().setCompassEnabled(true);\n mMap.getUiSettings().setAllGesturesEnabled(true);\n mMap.getUiSettings().setZoomControlsEnabled(true);\n mMap.getUiSettings().setZoomGesturesEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n\n databaseReference.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n Event event = dataSnapshot.getValue(Event.class);\n eventArrayList.add(event);\n for(Event coordinates : eventArrayList){\n eventLatLng = new LatLng(event.getLat(), event.getLng());\n if(eventLatLng.latitude != 0 && eventLatLng.longitude != 0 ){\n mMap.addMarker(new MarkerOptions().position(eventLatLng).title(\"Something happened here\"));\n }\n }\n if(eventLatLng.latitude != 0 && eventLatLng.longitude != 0 ){\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(eventLatLng, 17));\n } else {\n LatLng almaty = new LatLng(43.250384, 76.911368);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(almaty, 13));\n }\n\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n\n // Add a marker in Sydney and move the camera\n /*LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n }",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}",
"public Coordonnees(double _latitude, double _longitude) {\r\n\t\tsuper();\r\n\t\tthis._latitude = _latitude;\r\n\t\tthis._longitude = _longitude;\r\n\t}",
"private static <T> Map<Character,Node<T>> newNodeMap(Map<Character,Node<T>> prev)\n\t\t{\n\t\t\treturn new HashMap<Character,Node<T>>(prev);\n\t\t}",
"public CitiesMap(){\r\n\t\tmap=new Graph<City>();\r\n\t}",
"private void updateMap(){\n mMap.clear();\n // this instruction clears the Map object from the other object, it's needed in orther to display\n //the right current geofences without having the previous ones still on screen\n\n mOptions.setOption(mOptions.getOption().center(circle.getCenter()));\n mOptions.setOption(mOptions.getOption().radius(circle.getRadius()));\n\n\n circle=mMap.addCircle(mOptions.getOption());//i need to add again the user circle object on screen\n\n //TODO have to implement settings\n //set markers based on the return objects of the geoquery\n for (int ix = 0; ix < LOCATIONS.length; ix++) {\n mMap.addMarker(new MarkerOptions()\n .title(LOCATIONS[ix].getExplaination())\n .snippet(\"TODO\")\n .position(LOCATIONS[ix].getPosition()));\n }\n }",
"public Map<String, Object> getMapRaster(Map<String, Double> params) {\n //System.out.println(params);\n Map<String, Object> results = new HashMap<>();\n //System.out.println(\"Since you haven't implemented getMapRaster, nothing is displayed in \"\n // + \"your browser.\");\n double lrLon = params.get(\"lrlon\");\n double ulLon = params.get(\"ullon\");\n double w = params.get(\"w\");\n double h = params.get(\"h\");\n double lrLat = params.get(\"lrlat\");\n double ulLat = params.get(\"ullat\");\n if (lrLon <= ROOT_ULLON || ulLon >= ROOT_LRLON || lrLat >= ROOT_ULLAT\n || ulLat <= ROOT_LRLAT || lrLon <= ulLon || lrLat >= ulLat) {\n querySuccess = false;\n return null;\n }\n\n double lonDpp = (lrLon - ulLon) / w;\n int dep = (int) Math.ceil(Math.log(ROOT_LON_DPP / lonDpp) / Math.log(2.0));\n depth = Math.min(dep, MAX_DEPTH);\n int num = (int) Math.pow(2, depth);\n\n //System.out.println(\"lonDpp=\" + lonDpp + \" dep=\" + dep + \" depth=\" + depth);\n int xnUl = getXnYp(ROOT_ULLON, ulLon, ROOT_WIDTH, num, 1);\n int ypUl = getXnYp(ulLat, ROOT_ULLAT, ROOT_HEIGHT, num, 1);\n int xnLr = getXnYp(lrLon, ROOT_LRLON, ROOT_WIDTH, num, 0);\n int ypLr = getXnYp(ROOT_LRLAT, lrLat, ROOT_HEIGHT, num, 0);\n //System.out.println(\"xnUl:\" + xnUl + \" ypUl:\" + ypUl\n // + \" xnLr:\" + xnLr + \" ypLr:\" + ypLr);\n\n rasterUlLon = ROOT_ULLON + xnUl * ROOT_WIDTH / num;\n rasterUlLat = ROOT_ULLAT - ypUl * ROOT_HEIGHT / num;\n rasterLrLon = ROOT_LRLON - (num - xnLr - 1) * ROOT_WIDTH / num;\n rasterLrLat = ROOT_LRLAT + (num - ypLr - 1) * ROOT_HEIGHT / num;\n int nCols = xnLr - xnUl + 1;\n int nRows = ypLr - ypUl + 1;\n //System.out.println(\"numColumns:\" + nCols + \" numRows:\" + nRows);\n\n renderGrid = new String[nRows][nCols];\n\n for (int row = ypUl; row <= ypLr; row += 1) {\n int j = row - ypUl;\n for (int col = xnUl; col <= xnLr; col += 1) {\n int i = col - xnUl;\n renderGrid[j][i] = \"d\" + depth + \"_x\" + col + \"_y\" + row + \".png\";\n }\n }\n querySuccess = true;\n\n results.put(\"raster_ul_lon\", rasterUlLon);\n results.put(\"raster_ul_lat\", rasterUlLat);\n results.put(\"raster_lr_lon\", rasterLrLon);\n results.put(\"raster_lr_lat\", rasterLrLat);\n results.put(\"depth\", depth);\n results.put(\"render_grid\", renderGrid);\n results.put(\"query_success\", querySuccess);\n\n return results;\n }",
"public Matrix_4_HSH getRelativeCoordinates(AddressIF currentNode,Collection<AddressIF > allNodes,\n\t\t\tCollection<AddressIF > landmarks, double[] lat) {\n\t\treturn null;\n\t}",
"public List<Location> neighbors (Location pos);",
"private void addMarkerOnMap(double latitude, double longitude) {\n try {\n //System.out.println(\"LAT::: \" + latitude);\n //System.out.println(\"LONG::: \" + longitude);\n mCurrentLocationLat = latitude;\n mCurrentLocationLongitude = longitude;\n if (markerOptions == null)\n markerOptions = new MarkerOptions();\n\n // Creating a LatLng object for the current / new location\n LatLng currentLatLng = new LatLng(latitude, longitude);\n markerOptions.position(currentLatLng).icon(BitmapDescriptorFactory.defaultMarker()).title(\"Current Location\");\n\n if (mapMarker != null)\n mapMarker.remove();\n\n mapMarker = mMap.addMarker(markerOptions);\n\n// if (dlBean.getAddress() != null) {\n// if (!dlBean.getAddress().equals(\"No Location Found\") && !dlBean.getAddress().equals(\"No Address returned\") && !dlBean.getAddress().equals(\"No Network To Get Address\"))\n// mapMarker.setTitle(dlBean.getAddress());\n// }\n\n // Showing the current location in Google Map by Zooming it\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(currentLatLng, 15));\n\n for (TripsheetSOList saleOrder : tripSheetSOList) {\n AgentLatLong agentLatLong = new AgentLatLong();\n double distance;\n\n // We are calculating distance b/w current location and agent location if lat long are not empty\n if (saleOrder.getmTripshetSOAgentLatitude() != null && !saleOrder.getmTripshetSOAgentLatitude().equals(\"\") && saleOrder.getmTripshetSOAgentLongitude() != null && !saleOrder.getmTripshetSOAgentLongitude().equals(\"\")) {\n double agentLatitude = Double.parseDouble(saleOrder.getmTripshetSOAgentLatitude());\n double agentLongitude = Double.parseDouble(saleOrder.getmTripshetSOAgentLongitude());\n\n distance = getDistanceBetweenLocationsInMeters(mCurrentLocationLat, mCurrentLocationLongitude, agentLatitude, agentLongitude);\n\n agentLatLong.setAgentName(saleOrder.getmTripshetSOAgentFirstName());\n agentLatLong.setLatitude(agentLatitude);\n agentLatLong.setLongitude(agentLongitude);\n agentLatLong.setDistance(distance);\n\n agentsLatLongList.add(agentLatLong);\n\n } else {\n distance = 0.0;\n }\n\n saleOrder.setDistance(Math.round(distance / 1000));\n }\n\n // Sorting by distance in descending order i.e. nearest destination\n Collections.sort(agentsLatLongList, new Comparator<AgentLatLong>() {\n @Override\n public int compare(AgentLatLong o1, AgentLatLong o2) {\n return o1.getDistance().compareTo(o2.getDistance());\n }\n });\n\n Collections.sort(tripSheetSOList, new Comparator<TripsheetSOList>() {\n @Override\n public int compare(TripsheetSOList o1, TripsheetSOList o2) {\n return o1.getDistance().compareTo(o2.getDistance());\n }\n });\n\n // to update distance value in list after getting current location details.\n if (mTripsheetSOAdapter != null) {\n mTripsheetSOAdapter.setAllSaleOrdersList(tripSheetSOList);\n mTripsheetSOAdapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void makeSet( long data ){\n Node node = new Node();\n node.data = data;\n node.parent = node;\n node.rank = 0;\n map.put( data, node );\n }",
"public Graph(Map<Vertex<? extends Position>, List<Vertex<? extends Position>>> graph){\n\t\tthis.mapGraph = graph;\n\t}",
"public MyHashMap() {\n array = new TreeNode[1024];\n\n }",
"private static void ParseMapXMLPopulateRoad()\r\n\t{\r\n\t\ttry {\r\n\t\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\r\n\t\t\tSAXParser saxParser = factory.newSAXParser();\r\n\r\n\t\t\tDefaultHandler handler = new DefaultHandler() {\r\n\r\n\t\t\t\tpublic void startElement(String uri, String localName,\r\n\t\t\t\t\t\tString qName, Attributes attributes)\r\n\t\t\t\t\t\tthrows SAXException {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"way\")) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpreNode = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (qName.equalsIgnoreCase(\"nd\")) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlong reference = Long.valueOf(attributes.getValue(0));\r\n\t\t\t\t\t\tif (hashtableNodes.containsKey(reference))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (preNode == null)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tpreNode = hashtableNodes.get(reference);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tpreNode.AddNeighbor(hashtableNodes.get(reference), NumberOfLanes, Simulator.MaxSpeed);\r\n\t\t\t\t\t\t\t\thashtableNodes.get(reference).AddNeighbor(preNode, NumberOfLanes, Simulator.MaxSpeed);\r\n\t\t\t\t\t\t\t\tpreNode = hashtableNodes.get(reference);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tpublic void endElement(String uri, String localName,\r\n\t\t\t\t\t\tString qName) throws SAXException {\r\n\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tsaxParser.parse(MapPath, handler);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// remove the nodes which only appears in nodes declaration.\r\n\t\tLinkedList<Long> removeList = new LinkedList<Long>();\r\n\t\tfor (long theKey : hashtableNodes.keySet())\r\n\t\t{\r\n\t\t\tif (hashtableNodes.get(theKey).GetNumberOfNeighbors() == 0)\r\n\t\t\t{\r\n\t\t\t\tremoveList.add(theKey);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (long theKey : removeList)\r\n\t\t{\r\n\t\t\thashtableNodes.remove(theKey);\r\n\t\t}\r\n\t}",
"public MyNode(Station station){\r\n this.station=station;\r\n this.neighbors=new LinkedList<MyNode>();\r\n }",
"@Override\n public void onMapLongClick(LatLng latLng) {\n mMap.clear();\n\n //Adding a new marker to the current pressed position we are also making the draggable true\n mMap.addMarker(new MarkerOptions()\n .position(latLng)\n .draggable(true).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n// Toast.makeText(this, \"longitude=\" + latLng.longitude + \"latitude=\" + latLng.latitude, Toast.LENGTH_LONG).show();\n String msg = latLng.longitude + \", \" + latLng.latitude;\n// marker_address_tv.setText(msg);\n setAddressInTVFromLatlong(latLng.latitude, latLng.longitude);\n\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n myRef.addChildEventListener(new ChildEventListener() {\r\n @Override\r\n public void onChildAdded(DataSnapshot dataSnapshot, String prevChildKey) {\r\n LocationAndMessage location = dataSnapshot.getValue(LocationAndMessage.class);\r\n LatLng latLng = new LatLng(location.latitude, location.longitude);\r\n Location newLocation = new Location(\"\");\r\n newLocation.setLatitude(location.latitude);\r\n newLocation.setLongitude(location.longitude);\r\n\r\n //add marker in location of all messages sent\r\n markerAdded = false;\r\n for (int i = 0; i < locations.size(); i++) {\r\n //If the location is near an old marker then append new message to existing marker\r\n if (newLocation.distanceTo(locations.get(i)) <= 10) {\r\n markerAdded = true;\r\n //Get old message for this location and change the markers message\r\n String oldMessage = markers.get(i).getTitle();\r\n markers.get(i).setTitle(oldMessage + \" ,\" + location.message);\r\n\r\n break;\r\n }\r\n }\r\n\r\n //if is a new location then add a new marker with new message to the map\r\n if (markerAdded == false) {\r\n //add the new marker to a list of all markers\r\n markers.add(mMap.addMarker(new MarkerOptions().position(latLng).title(location.message).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA))));\r\n CameraPosition cameraPosition = new CameraPosition.Builder()\r\n .target(new LatLng(latLng.latitude, latLng.longitude))\r\n .zoom(16)\r\n .build();\r\n\r\n if (mMap != null)\r\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\r\n\r\n //add new location to a list of all locations\r\n locations.add(newLocation);\r\n }\r\n }\r\n\r\n @Override\r\n public void onChildChanged(DataSnapshot dataSnapshot, String prevChildKey) {\r\n }\r\n\r\n @Override\r\n public void onChildRemoved(DataSnapshot dataSnapshot) {\r\n }\r\n\r\n @Override\r\n public void onChildMoved(DataSnapshot dataSnapshot, String prevChildKey) {\r\n }\r\n\r\n @Override\r\n public void onCancelled(DatabaseError databaseError) {\r\n }\r\n });\r\n }",
"public void initNodeReferenceData(Map<String, Set<String>> pathwayToData) {\n// Set<String> keySet = pathwayToData.keySet();\n// RandomData random = new RandomDataImpl(new JDKRandomGenerator());\n// int sampleSize = Math.min(nodeList.size(), keySet.size());\n// Object[] sample = random.nextSample(keySet, sampleSize);\n// for (int i = 0; i < sampleSize; i++) {\n// ReferenceNode node = nodeList.get(i);\n// // Objects in sample are String\n// node.setReferenceData(pathwayToData.get(sample[i].toString()));\n// }\n // Implement a new way to random reference data\n // Find the average size\n Set<String> allDataPoints = new HashSet<String>();\n for (Iterator<String> it = pathwayToData.keySet().iterator(); it.hasNext();) {\n String pathway = it.next();\n Set<String> data = pathwayToData.get(pathway);\n allDataPoints.addAll(data);\n }\n int averageSize = allDataPoints.size() / pathwayToData.size();\n Random seeder = new Random();\n RandomDataImpl sampler = new RandomDataImpl();\n for (ReferenceNode node : nodeList) {\n sampler.reSeedSecure(seeder.nextLong());\n Object[] sample = sampler.nextSample(allDataPoints, averageSize);\n Set<String> set = new HashSet<String>();\n for (Object obj : sample)\n set.add(obj.toString());\n //node.setReferenceData(set);\n node.addInputReferenceData(set);\n }\n }",
"public BSTMap() {\n this.clear();\n }",
"public static void setGeoTargetsInCache(Map<String,String> dataMap){ \t\n \tif(memcache !=null && memcache.contains(ALL_GEO_TARGETS_KEY)){\n \t\tmemcache.delete(ALL_GEO_TARGETS_KEY);\n \t}\n \tmemcache.put(ALL_GEO_TARGETS_KEY, dataMap);\n\t}",
"@Override\n public void onMapClick(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n\n String address = getMarkerAddress(latLng);\n //if there is a valid address associated with marker\n if (address != null) {\n markerOptions.title(address);\n }\n mMap.clear();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));\n mMap.addMarker(markerOptions);\n markerPlaced = true;\n lat = latLng.latitude;\n lon = latLng.longitude;\n }",
"private void buildMapArea(MapBuilderBase mapBuilder) {\n\t\tmap = new Tile[width][height];\n\n\t\tthis.name = mapBuilder.buildMap(map);\n\t\tupdateValues();\n\n\t\t// TODO: pathfinding precalculations?\n\n\t\t// Log.debug(\"Calculating path maps...\");\n\t\t// pointGraph = new PointGraph();\n\t\t// for (int x = 0; x < width; x++) {\n\t\t// for (int y = 0; y < height; y++) {\n\t\t// if (getTileAt(x, y).isPassable)\n\t\t// pointGraph.addVertex(new Vertex(new Point(x, y)));\n\t\t// }\n\t\t// }\n\t\t// pointGraph.calculateEdges();\n\t\t// Log.debug(\"done\");\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n LatLng f1 = new LatLng(40.47919714744627, -3.696853200700267);\n mMap.addMarker(new MarkerOptions().position(f1).title(\"Cancha de Baloncesto\").snippet(\"Suelo Poco Cuidado\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n\n LatLng f2 = new LatLng(40.435310351774774, -3.7263789570620083);\n mMap.addMarker(new MarkerOptions().position(f2).title(\"Cancha de Baloncesto Paseo Camoens\").snippet(\"Muy cuidadas\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n String id = mAuth.getCurrentUser().getUid();\n mDataBase.child(\"Users\").child(id).child(\"Loca\").setValue(marker);//guardar la loca\n\n return false;\n }\n });\n\n LatLng f3 = new LatLng(40.41361760559365, -3.7037196556681136);\n mMap.addMarker(new MarkerOptions().position(f3).title(\"Canchas De Embajadores\").snippet(\"Suelos Nuevos\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(f3,14), 5000, null);\n\n LatLng f4 = new LatLng(40.47684679587297, -3.6549678253964006);\n mMap.addMarker(new MarkerOptions().position(f4).title(\"Canchas De Baloncesto\").snippet(\"Suelo poco cuidado\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n LatLng f5 = new LatLng(40.40472940061158, -3.6779704495386882);\n mMap.addMarker(new MarkerOptions().position(f5).title(\"Canchas Baloncesto Pacífico\").snippet(\"Suelo normal\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n LatLng f6 = new LatLng(40.41387900561696, -3.639174978970352);\n mMap.addMarker(new MarkerOptions().position(f6).title(\"Campos de baloncesto\").snippet(\"Suelo normal\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n LatLng f7 = new LatLng(40.40499083515974, -3.6707606718224484);\n mMap.addMarker(new MarkerOptions().position(f7).title(\"Cancha Baloncesto Pública Luis Mitjans\").snippet(\"Suelo en mal estado\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n LatLng f8 = new LatLng(40.436094295932705, -3.734962025771817);\n mMap.addMarker(new MarkerOptions().position(f8).title(\"Cancha de Baloncesto loeches\").snippet(\"Suelo en buen estado\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n\n\n\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onLocationChanged(Location location) {\n Log.d(\"GeoPost Location\", \"Location update received: \" + location.toString());\n\n mMap.clear();\n\n latitudine = location.getLatitude();\n longitudine = location.getLongitude();\n myPosition = new LatLng(latitudine, longitudine);\n mMap.addMarker(new MarkerOptions().position(myPosition).title(\"Marker in myPosition\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myPosition, 15));\n Log.d(\"GeoPost Location\", \"lat: \"+latitudine+\" longi: \"+longitudine);\n\n }",
"private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Storage.map = googleMap;\n if(checkPermissions()){\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission. ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n if (Storage.map != null) {\n Storage.map.setMyLocationEnabled(true);\n }\n }\n }\n\n LocationManager locationManager = (LocationManager)\n getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n android.location.Location loc = locationManager.getLastKnownLocation(locationManager\n .getBestProvider(criteria, false));\n if(loc != null){\n LatLng actualLoc = new LatLng(loc.getLatitude(),loc.getLongitude());\n Storage.addToArray(actualLoc);\n }\n else{\n Storage.path();\n }\n /* Storage.addToArray(santaCruz);\n Storage.addToArray(new LatLng(40,-120));\n if(l!=null) {\n Log.e(\"Real\", \" found location\" );\n Storage.addToArray(new LatLng(l.getLatitude(), l.getLongitude()));\n\n }*/\n // Add a marker in Santa Cruz and move the camera\n LatLng santaCruz = new LatLng(36.997213, -122.056893);\n Storage.map.addMarker(new MarkerOptions().position(santaCruz).title(\"Marker in Santa Cruz\"));\n Storage.map.moveCamera(CameraUpdateFactory.newLatLngZoom(santaCruz, 14.5f));\n Graphics.startDraw(Storage.map);\n Storage.recursiveBackgroundCheck = new RecursiveBackgroundCheck(locationManager,this);\n if(loc != null) {\n Storage.recursiveBackgroundCheck.execute(locationManager);\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n getLat g = new getLat();\n g.execute(tid);\n\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n }",
"public void setNodePositionXY (Point2D position) { n.setXYPositionMap(position); }",
"public List<GeographicPoint> dijkstra(GeographicPoint start, \n\t\t\t\t\t\t\t\t\t\t GeographicPoint goal, Consumer<GeographicPoint> nodeSearched)\n\t{\n\t\t// TODO: Implement this method in WEEK 4\n\n\t\t// Hook for visualization. See writeup.\n\t\t//nodeSearched.accept(next.getLocation());\n\t\t\n\t\t//initialize distance of each MapNode from start to infinity\n\t\t\n\t\tSet<GeographicPoint> visited = new HashSet<GeographicPoint>();\n\t\tPriorityQueue<MapNode> queue = new PriorityQueue<MapNode>();\n\t\tHashMap<GeographicPoint, List<GeographicPoint>> path = new HashMap<GeographicPoint, List<GeographicPoint>>();\n\t\tint count = 0;\n\t\t\n\t\tif (!map.containsKey(start) || !map.containsKey(goal))\n\t\t\treturn null;\n\t\t\n\t\tfor (GeographicPoint temp : map.keySet())\n\t\t\tpath.put(temp, new ArrayList<GeographicPoint>());\n\t\t\n\t\tMapNode startNode = map.get(start);\n\t\tstartNode.setTimeToStart(0.0);\n\t\tstartNode.setDistanceToStart(0.0);\n\t\tqueue.add(startNode);\n\t\t\n\t\twhile (!queue.isEmpty()) {\n\t\t\tMapNode currNode = queue.poll();\n\t\t\tnodeSearched.accept(currNode.getLocation());\n\t\t\t\n\t\t\tif (!visited.contains(currNode.getLocation())) {\n\t\t\t\tvisited.add(currNode.getLocation());\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tif (currNode.getLocation().equals(goal))\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tHashMap<MapEdge, GeographicPoint> neighbours = currNode.getNeighbours();\n\t\t\t\tfor (MapEdge edge : neighbours.keySet()) {\n\t\t\t\t\t\n\t\t\t\t\tif (!visited.contains(edge.getEnd())) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tMapNode addNode = map.get(neighbours.get(edge));\n\t\t\t\t\t\tdouble tempTime = currNode.getTimeToStart() + ((edge.getDistance())/(edge.getSpeedLimit()));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tempTime < addNode.getTimeToStart()) {\n\t\t\t\t\t\t\taddNode.setTimeToStart(tempTime);\n\t\t\t\t\t\t\tqueue.add(addNode);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tList<GeographicPoint> temp = path.get(neighbours.get(edge));\n\t\t\t\t\t\t\ttemp.add(currNode.getLocation());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Dijkstra: \" + count);\n\t\treturn backTrack(path,goal);\n\t}",
"void populatePidToHolderMap() {\n\t\tSet<Integer> visited = new HashSet<Integer>();\n\t\tQueue<Integer> visitQueue = new LinkedList<Integer>();\n\t\tvisitQueue.add(pid);\n\t\tvisited.add(pid);\n\t\twhile(!visitQueue.isEmpty()) {\n\t\t\tint nodePid = visitQueue.poll();\n\t\t\tList<Integer> neighborList = neighborMap.get(nodePid);\n\t\t\tfor (int neighborPid : neighborList) {\n\t\t\t\tif (!visited.contains(neighborPid)) {\n\t\t\t\t\tpidToHolderMap.put(neighborPid, nodePid);\n\t\t\t\t\tvisitQueue.add(neighborPid);\n\t\t\t\t\tvisited.add(neighborPid);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public BSTMap() {\n clear();\n }",
"void storeObject(PointLatLng point, String id);",
"public static Vector<int []> UCS(int[] startPosition,int[] unexploreNode, mapNode[][] nodes){\n\t\t\r\n\t\tVector<int []> shortestPath;\r\n\t\t\r\n\t\t//initial all nodes' distance to INF\r\n\t\tfor(int i = 0; i < nodes.length; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j < nodes[i].length;j++)\r\n\t\t\t{\r\n\t\t\t\tnodes[i][j].setTotDistance(999999999);//set the initial distance to INF\r\n\t\t\t\tnodes[i][j].gridPosition[0] = i;//save current node x position\r\n\t\t\t\tnodes[i][j].gridPosition[1] = j;//save current node y position\r\n\t\t\t\tnodes[i][j].setNodeVistied(false);//set all nodes are not visited yet\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//set the start point total distance to 0\r\n\t\tnodes[startPosition[0]][startPosition[1]].setTotDistance(0);\r\n\t\t//create start node and add it into the execution queue\r\n\t\tmapNode tempNode = new mapNode();\r\n\t\ttempNode = nodes[startPosition[0]][startPosition[1]];\r\n\t\tVector<mapNode> tempQueue = new Vector<mapNode>();\r\n\t\ttempQueue.add(tempNode);\r\n\t\t//main loop: check all nodes on the map\r\n\t\twhile(tempQueue.size() != 0)\r\n\t\t{\r\n\t\t\t//create four nearby nodes\r\n\t\t\tmapNode tempTopNode = new mapNode();\r\n\t\t\tmapNode tempBottomNode = new mapNode();\r\n\t\t\tmapNode tempLeftNode = new mapNode();\r\n\t\t\tmapNode tempRightNode = new mapNode();\r\n\t\t\t\t\r\n\t\t\t//update Top node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).topNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempTopNode = nodes[tempQueue.get(0).topNode.gridPosition[0]][tempQueue.get(0).topNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempTopNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Bottom node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).bottomNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempBottomNode = nodes[tempQueue.get(0).bottomNode.gridPosition[0]][tempQueue.get(0).bottomNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempBottomNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Left node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).leftNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempLeftNode = nodes[tempQueue.get(0).leftNode.gridPosition[0]][tempQueue.get(0).leftNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempLeftNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Right node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).rightNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempRightNode = nodes[tempQueue.get(0).rightNode.gridPosition[0]][tempQueue.get(0).rightNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempRightNode = null;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//start re-calculate distance of each node\r\n\t\t\t//check the top node and update new distance\r\n\t\t\tif(tempTopNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempTopNode.getTotDistance()>tempQueue.get(0).getTotDistance()+tempQueue.get(0).getTopWeight())\r\n\t\t\t\t{\r\n\t\t\t\t\t//update new distance to the top node \r\n\t\t\t\t\ttempTopNode.setTotDistance(tempQueue.get(0).getTotDistance()+tempQueue.get(0).getTopWeight());\t\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check new node to see if exists in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempTopNode.setTotPath(tempPath);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempTopNode.gridPosition[0]][tempTopNode.gridPosition[1]] = tempTopNode;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(nodes[tempTopNode.gridPosition[0]][tempTopNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempTopNode.gridPosition[0], tempTopNode.gridPosition[1]) == false)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempTopNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//check the bottom node and update new distance\r\n\t\t\tif(tempBottomNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempBottomNode.getTotDistance()>tempQueue.get(0).getTotDistance()+tempQueue.get(0).getBottomWeight())\r\n\t\t\t\t{\r\n\t\t\t\t\ttempBottomNode.setTotDistance(tempQueue.get(0).getTotDistance()+tempQueue.get(0).getBottomWeight());\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempBottomNode.setTotPath(tempPath);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempQueue.get(0).bottomNode.gridPosition[0]][tempQueue.get(0).bottomNode.gridPosition[1]] = tempBottomNode;\r\n\t\t\t\t}\r\n\t\t\t\tif(nodes[tempBottomNode.gridPosition[0]][tempBottomNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempBottomNode.gridPosition[0], tempBottomNode.gridPosition[1]) == false)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempBottomNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//check the left node and update new distance\r\n\t\t\tif(tempLeftNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempLeftNode.getTotDistance()>tempQueue.get(0).getTotDistance()+tempQueue.get(0).getLeftWeight())\r\n\t\t\t\t{\r\n\t\t\t\t\ttempLeftNode.setTotDistance(tempQueue.get(0).getTotDistance()+tempQueue.get(0).getLeftWeight());\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempLeftNode.setTotPath(tempPath);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempQueue.get(0).leftNode.gridPosition[0]][tempQueue.get(0).leftNode.gridPosition[1]] = tempLeftNode;\r\n\t\t\t\t}\r\n\t\t\t\tif(nodes[tempLeftNode.gridPosition[0]][tempLeftNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempLeftNode.gridPosition[0], tempLeftNode.gridPosition[1]) == false)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempLeftNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//check the right node and update new distance\r\n\t\t\tif(tempRightNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempRightNode.getTotDistance()>tempQueue.get(0).getTotDistance()+tempQueue.get(0).getRightWeight())\r\n\t\t\t\t{\r\n\t\t\t\t\ttempRightNode.setTotDistance(tempQueue.get(0).getTotDistance()+tempQueue.get(0).getRightWeight());\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check to see if new node existed in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempRightNode.setTotPath(tempPath);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempQueue.get(0).rightNode.gridPosition[0]][tempQueue.get(0).rightNode.gridPosition[1]] = tempRightNode;\r\n\t\t\t\t}\r\n\t\t\t\tif(nodes[tempRightNode.gridPosition[0]][tempRightNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempRightNode.gridPosition[0], tempRightNode.gridPosition[1]) == false)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempRightNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//set current node to visited node and\r\n\t\t\t//remove current node from execution queue\r\n\t\t\ttempQueue.get(0).setNodeVistied(true);\r\n\t\t\tnodes[tempQueue.get(0).gridPosition[0]][tempQueue.get(0).gridPosition[1]].setNodeVistied(true);\r\n\t\t\ttempQueue.remove(0);\t\r\n\t\t}\r\n\t\t//print out the end node\r\n\t\t//print out the total distance between two points\r\n\t\t//print out the total number node of path\r\n\t\t//End point not Found\r\n\t\t//System.out.println(\"End Point: \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[0]+1)+\" \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[1]+1));\r\n\t\t//System.out.println(\"Total number of nodes: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotPath().size());\r\n\t\tshortestPath = nodes[unexploreNode[0]][unexploreNode[1]].getTotPath();\r\n\t\tshortestPath.add(unexploreNode);\r\n\t\treturn shortestPath;\t\t\r\n\t}",
"private void markerForGeofence(LatLng latLng)\n {\n Log.e(\"TAGtag\", \"markerForGeofence(\" + latLng + \")\");\n String title = latLng.latitude + \", \" + latLng.longitude;\n Log.e(\"TAGtag\", \"\"+title);\n // Define marker options\n MarkerOptions markerOptions = new MarkerOptions()\n .position(latLng)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN))\n .title(title);\n if ( mMap!=null )\n {\n // Remove last geoFenceMarker\n if (geoFenceMarker != null)\n {\n geoFenceMarker.remove();\n }\n\n\n geoFenceMarker = mMap.addMarker(markerOptions);\n //geoFenceMarker = mMap.addMarker(markerOptions);\n }\n\n }",
"private void generateMap(){\n int[] blockStepX = {X_STEP, 0, -X_STEP, -X_STEP, 0, X_STEP};\n int[] blockStepY = {Y_STEP_ONE, Y_STEP_TWO, Y_STEP_ONE, -Y_STEP_ONE, -Y_STEP_TWO, -Y_STEP_ONE};\n int blockSpecialValue = 0;\n int cellSpecial = 0;\n\n mapCells[origin.x/10][origin.y/10] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n cellGrid[0][0][0] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n for (int distanceFromOrigin = 0; distanceFromOrigin < config.getSizeOfMap();\n distanceFromOrigin++){\n\n int[] blockXVals = {origin.x,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x,\n origin.x - X_STEP * distanceFromOrigin,\n origin.x - X_STEP * distanceFromOrigin};\n\n int[] blockYVals = {origin.y - Y_STEP_TWO * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_TWO * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin};\n\n blockSpecialValue = getRandomNumber(distanceFromOrigin, 0, 0);\n\n for (int block = 0; block < NUMBER_OF_BLOCKS; block ++){\n\n int blockXOrdinal = blockXVals[block];\n int blockYOrdinal = blockYVals[block];\n\n for (int blockSize = 0; blockSize < distanceFromOrigin; blockSize++){\n if(blockSpecialValue == blockSize){\n cellSpecial = getRandomNumber(2, 1, 1);\n }else {\n cellSpecial = 0;\n }\n cellGrid [distanceFromOrigin][block+1][blockSize+1] = makeNewCell(\n new CellPosition(distanceFromOrigin,block+1, blockSize+1),\n new Point(blockXOrdinal + blockStepX[block] * (blockSize + 1),\n blockYOrdinal + blockStepY[block] * (blockSize + 1)), cellSpecial);\n }\n }\n }\n }",
"private void generateMap(){\n if(currDirections != null){\n\n\t \tPoint edge = new Point(mapPanel.getWidth(), mapPanel.getHeight());\n \tmapPanel.paintImmediately(0, 0, edge.x, edge.y);\n\t \t\n\t \t\n\t \t// setup advanced graphics object\n\t Graphics2D g = (Graphics2D)mapPanel.getGraphics();\n\t g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t g.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_NORMALIZE);\n\n\t \n\t Route rt = currDirections.getRoute();\n\t\n\t boolean singleStreet = rt.getGeoSegments().size() == 1;\n\t Route contextRoute = (!singleStreet ? rt : \n\t \t\tnew Route( virtualGPS.findFullSegment(rt.getEndingGeoSegment()) ) );\n\t \n\t // calculate the longitude and latitude bounds\n\t int[] bounds = calculateCoverage( contextRoute , edge);\n\t \n\t Collection<StreetSegment> map = virtualGPS.getContext(bounds, contextRoute);\n\t \n\t \n\t // draw every segment of the map\n\t g.setColor(Color.GRAY);\n\t for(GeoSegment gs : map){\n\t \tdrawSegment(g, bounds, edge, gs);\n\t }\n\t \n\t // draw the path over the produced map in BLUE\n\t g.setColor(Color.BLUE);\n\t for(GeoFeature gf : rt.getGeoFeatures()){\n\t for(GeoSegment gs : gf.getGeoSegments()){\n\t\t \tdrawSegment(g, bounds, edge, gs);\n\t }\n\t Point start = derivePoint(bounds, edge, gf.getStart());\n\t Point end = derivePoint(bounds, edge, gf.getEnd());\n\t \n\t int dX = (int)(Math.abs(start.x - end.x) / 2.0);\n\t int dY = (int)(Math.abs(start.y - end.y) / 2.0);\n\n if(!jCheckBoxHideStreetNames.isSelected()){\n \tg.setFont(new Font(g.getFont().getFontName(), Font.BOLD, g.getFont().getSize()));\n \tg.drawString(gf.getName(), start.x + (start.x<end.x ? dX : -dX),\n \t\t\tstart.y + (start.y<end.y ? dY : -dY));\n }\n\t }\n }\n }",
"private void getRouteToMarker(LatLng houseLatLng) {\n\n Routing routing = new Routing.Builder()\n .travelMode(AbstractRouting.TravelMode.DRIVING)\n .withListener(this)\n .alternativeRoutes(false)\n .waypoints(new LatLng(nLastLocation.getLatitude(), nLastLocation.getLongitude()), houseLatLng)\n .build();\n routing.execute();\n }",
"public MapSum() {\n root = new Trie();\n }",
"private Point parseNodeInfo() {\n HashMap<String, Object> m = new HashMap<>(dump.parseSourceInfo());\n return new Point((String) m.get(\"code\"),\n Double.parseDouble((String)m.get(\"Latitude\")), Double.parseDouble((String)m.get(\"Longitude\")));\n }",
"public void m2845c(LatLng latLng) {\r\n this.f1763g = latLng;\r\n }",
"public HashMap<String, NeonValue> getMap();"
] | [
"0.6506542",
"0.628849",
"0.61525273",
"0.6112274",
"0.60265833",
"0.6014987",
"0.60084945",
"0.5842867",
"0.5695061",
"0.56570625",
"0.56563866",
"0.55234283",
"0.5516823",
"0.5490889",
"0.5488164",
"0.5475828",
"0.5465389",
"0.545756",
"0.544022",
"0.543718",
"0.5409325",
"0.53948194",
"0.53941023",
"0.5371391",
"0.535625",
"0.53527635",
"0.53258216",
"0.532525",
"0.53147316",
"0.53105253",
"0.5310442",
"0.53077483",
"0.530224",
"0.5299712",
"0.5297624",
"0.52752805",
"0.5273625",
"0.52572775",
"0.52536",
"0.5252592",
"0.5252592",
"0.5252592",
"0.52394694",
"0.5208182",
"0.52076566",
"0.5193555",
"0.5192375",
"0.51910007",
"0.51859003",
"0.51826626",
"0.5181",
"0.5168659",
"0.51624674",
"0.5158165",
"0.5154265",
"0.5147235",
"0.51463354",
"0.5139382",
"0.5139336",
"0.5135473",
"0.5125621",
"0.51254416",
"0.5122854",
"0.51202184",
"0.51155406",
"0.51141024",
"0.5108219",
"0.5107071",
"0.5104881",
"0.51029307",
"0.5102786",
"0.5101153",
"0.5094215",
"0.50937754",
"0.5093531",
"0.508657",
"0.5081144",
"0.5074218",
"0.50711656",
"0.5070284",
"0.50643796",
"0.5063688",
"0.5060524",
"0.50480884",
"0.5045598",
"0.5033062",
"0.50289637",
"0.50239956",
"0.50229037",
"0.5020613",
"0.50187415",
"0.50177836",
"0.5016448",
"0.5014171",
"0.50129426",
"0.50089127",
"0.50079054",
"0.49901977",
"0.49900976",
"0.49816468",
"0.49806622"
] | 0.0 | -1 |
Returns true if MapNode ids are equals | @Override
public boolean equals(Object o) {
if (o == this) return true;
if (!(o instanceof MapNode)) return false;
MapNode x = (MapNode) o;
return this.id.equals(x.id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"boolean hasMapID();",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tNode another = (Node) obj;\r\n\t\treturn (this.id == another.getId());\r\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\ttry {\n\t\t\tif (id == ((Node) obj).getId())\n\t\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof OrienteeringMap)) {\n return false;\n }\n return id != null && id.equals(((OrienteeringMap) o).id);\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\tif (this.id == ((Node<?>) obj).getId()) \n\t\t\treturn true;\n\t\treturn false;\n\t}",
"boolean hasTreeNodeIdForVariantMatrix();",
"public boolean isEqualNode(int xcoords, int ycoords){ \n boolean ret = false;\n Node N = head;\n for (int i = 1; i < numItems; i++){\n if (xcoords == N.x && ycoords == N.y){\n ret = true;\n }else { \n ret = false;\n }\n N = N.next;\n }\n return ret;\n }",
"private boolean itsRepeated(BTreeNode<T> currentNode, I id) {\n\n for (int i = 0; i < 5; i++) {\n if (currentNode.getKey(i) != null) {\n if (comparator.compare(currentNode.getKey(i), id) == 0) {\n return true;\n }\n }\n }\n\n return false;\n }",
"boolean hasNodeId();",
"@Override\n\tpublic boolean equals(Object o) {\n\t\treturn o instanceof PointEventNode\n\t\t\t\t&& ((PointEventNode) o).id == this.id;\n\t}",
"boolean hasTreeNodeId();",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Seatmap)) {\n return false;\n }\n Seatmap other = (Seatmap) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Test\n\tpublic void doEqualsTestDifferentMaps() {\n\t\tassertFalse(bigBidiMap.equals(leftChildMap));\n\n\t}",
"public boolean equals(Node testNode) {\r\n\t\tif(this.getID().equals(testNode.getID())) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Test public void fillMapIdAndCoordinateWithSameId() {\n // Given\n \n String pathnameXml = \"./ressources/fichiersTestXml/fillMapIdSameId.xml\";\n Reseau resIdIncorrect = parser.parseCityPlan(pathnameXml);\n assertNotNull(resIdIncorrect);\n assertEquals(\"2129259178\", resIdIncorrect.getNoeud()[0].getId());\n assertEquals(\"2129259178\", resIdIncorrect.getNoeud()[1].getId());\n \n Map map = new Map();\n \n // When\n \n map.fillMapIdAndCoordinate(resIdIncorrect);\n \n // Then\n \n Long lastId = Long.valueOf(\"2129259178\");\n int lastIndex = map.getMapId().get(lastId);\n // We compare the longitude to be sure\n // that it is the last noeud which is \n // registered in the mapId for the same key\n double longitude = map.getCoordinate(lastIndex).getLongitude();\n assertEquals(4.8, longitude, 0.1);\n }",
"@Override\n\t\tpublic boolean equals(Object other) {\n\t\t\treturn Arrays.equals(state, ((MazeNode) other).state);\n\t\t}",
"private static boolean identityEqual(final I_GameState state1, final I_GameState state2) {\n if (state1 == state2)\n return true;\n\n return Stream.of(new SimpleEntry<>(state1, state2))\n .flatMap( // transform the elements by making a new stream with the transformation to be used\n pair -> Arrays.stream(E_PileID.values()) // stream the pileIDs\n // make new pair of the elements of that pile from each state\n .map(pileID -> new SimpleEntry<>(\n pair.getKey().get(pileID),\n pair.getValue().get(pileID)\n )\n )\n )\n .allMatch(pair -> pair.getKey() == pair.getValue());\n }",
"private boolean equalNodes(Node[] arr1, Node[] arr2) {\n // generic tests\n if (!Arrays.equals(arr1, arr2)) {\n return false;\n }\n\n if ((arr1 == null) || (arr1.length == 0)) {\n return true;\n }\n\n // compare paths from each node to root\n int i = 0;\n\n while ((i < arr1.length) && Arrays.equals(NodeOp.createPath(arr1[i], null), NodeOp.createPath(arr2[i], null))) {\n i++;\n }\n\n return i == arr1.length;\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof MTips)) {\n return false;\n }\n return id != null && id.equals(((MTips) o).id);\n }",
"boolean hasIsEquivalent();",
"@SuppressWarnings(\"unused\")\n private boolean checkIds(CFANode node) {\n\n if (!visited.add(node)) {\n // already handled, do nothing\n return true;\n }\n\n for (CFANode successor : CFAUtils.successorsOf(node)) {\n checkIds(successor);\n }\n\n //node.setReversePostorderId(reversePostorderId2++);\n assert node.getReversePostorderId() == reversePostorderId2++ : \"Node \" + node + \" got \" + node.getReversePostorderId() + \", but should get \" + (reversePostorderId2-1);\n return true;\n }",
"boolean derangement() {\n for (Map.Entry<Integer, Integer> e: _map.entrySet()) {\n if (e.getValue().equals(e.getKey())) {\n return false;\n }\n }\n return true;\n }",
"public static boolean isObjectIdSet(Set<Map<String, Object>> denaObjects) {\n return denaObjects.stream().allMatch(DenaSerializer::isObjectIdSet);\n }",
"public boolean isMapped(Identity identity) {\n\t\treturn nodeMap.containsKey(identity);\n\t}",
"@Override\r\n\tpublic boolean isEqual(Node node) {\n\t\treturn false;\r\n\t}",
"@Override\r\n public boolean equals(Object o) {\r\n GraphNode n = (GraphNode) o;\r\n if (n != null && n.getX() == getX() && n.getY() == getY())\r\n return true;\r\n return false;\r\n }",
"@Override\n\tpublic boolean equals(Object o)\n\t{\n\t\treturn this.name.equals(((IntNode) o).getName());\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof BookingMap)) {\n return false;\n }\n BookingMap other = (BookingMap) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"boolean hasSameAs();",
"@Test\n\tpublic void doEqualsTestSameMapDifferentInstances() {\n\t\tassertTrue(bigBidiMap.equals(bigBidiMap_other));\n\n\t}",
"public boolean equals (JdwpId id)\r\n {\r\n return (id.getId () == getId ());\r\n }",
"private static boolean containsAndNotNull(final Map<String, Integer> map, final String node) {\n return map.containsKey(node) && map.get(node) != null;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Snm)) {\r\n return false;\r\n }\r\n Snm other = (Snm) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"Boolean same(MapComp<K, V> m);",
"@Override\n public boolean equals(Object other) {\n if (other == null) return false;\n else if (!(other instanceof MazeState)) return false;\n return this.getPawnOne().getPositionNr() == ((MazeState) other).getPawnOne().getPositionNr() &&\n this.getPawnTwo().getPositionNr() == ((MazeState) other).getPawnTwo().getPositionNr();\n }",
"final public boolean equals(final GbofId id){\r\n \tif (creation_ts_.seconds() == id.creation_ts().seconds() &&\r\n creation_ts_.seqno() == id.creation_ts().seqno() &&\r\n is_fragment_ == id.is_fragment_ &&\r\n (!is_fragment_ || \r\n (frag_length_ == id.frag_length_ && frag_offset_ == id.frag_offset_)) &&\r\n source_.equals(id.source_)) \r\n {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public boolean sameAsGold() {\n\t\tif (this.level == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tArrayList<Gold> goldObjects = this.level.getGoldObjects();\n\n\t\tfor (int i = 0; i < goldObjects.size(); i++) {\n\t\t\tif (this.tilePositionX == goldObjects.get(i).getPositionX()\n\t\t\t\t\t&& this.tilePositionY == goldObjects.get(i).getPositionY()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasMatrixId();",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Bigmap)) {\n return false;\n }\n Bigmap other = (Bigmap) object;\n if ((this.mapid == null && other.mapid != null) || (this.mapid != null && !this.mapid.equals(other.mapid))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object other) {\n return Arrays.equals(state, ((CannibalNode) other).state);\n }",
"protected boolean isSameSnakSet(Iterator<Snak> snaks1, Iterator<Snak> snaks2) {\n\t\tArrayList<Snak> snakList1 = new ArrayList<>(5);\n\t\twhile (snaks1.hasNext()) {\n\t\t\tsnakList1.add(snaks1.next());\n\t\t}\n\n\t\tint snakCount2 = 0;\n\t\twhile (snaks2.hasNext()) {\n\t\t\tsnakCount2++;\n\t\t\tSnak snak2 = snaks2.next();\n\t\t\tboolean found = false;\n\t\t\tfor (int i = 0; i < snakList1.size(); i++) {\n\t\t\t\tif (snak2.equals(snakList1.get(i))) {\n\t\t\t\t\tsnakList1.set(i, null);\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!found) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn snakCount2 == snakList1.size();\n\t}",
"public boolean equals(AsNode other) {\n\t\treturn this.state.getHash() == other.state.getHash();\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null)\n\t\t\treturn false;\n\n\t\tif (!(obj instanceof Location))\n\t\t\treturn false;\n\n\t\tif (obj == this)\n\t\t\treturn true;\n\n\t\tLocation that = (Location) obj;\n\n\t\treturn this.map == that.map && this.y() == that.y() && this.x() == that.x();\n\t}",
"public Boolean same(MapComp<K, V> m) {\n return m.vals().same(this.vals());\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Locations)) {\n return false;\n }\n Locations other = (Locations) object;\n if ((this.idlocations == null && other.idlocations != null) || (this.idlocations != null && !this.idlocations.equals(other.idlocations))) {\n return false;\n }\n return true;\n }",
"public static boolean isObjectIdSet(Map<String, Object> denaObject) {\n return denaObject.containsKey(DENA_OBJECT_ID_FIELD) && denaObject.get(DENA_OBJECT_ID_FIELD) != null;\n }",
"public static boolean isUnique(Map<String,String> map){\n for(String key1: map.keySet()){\r\n //Cycle through the keys a second time\r\n for(String key2: map.keySet()){\r\n if(!key1.equals(key2)&&map.get(key1).equals(map.get(key2))){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n ResultsMatrices resultsMatrices = (ResultsMatrices) o;\n if (resultsMatrices.getId() == null || getId() == null) {\n return false;\n }\n return Objects.equals(getId(), resultsMatrices.getId());\n }",
"public boolean equalNodes(Node N, Node M) {\n if(N == null && M == null) return true;\n if((N == null && M != null)||(N != null && M == null)) return false;\n if(N.getData() != M.getData()) return false;\n if((!equalNodes(N.getRight(), M.getRight())|| (!equalNodes(N.getLeft(), M.getLeft())))) return false;\n\n return true;\n }",
"public boolean coordsAreEqual(Cell anotherCell){\n return (getI() == anotherCell.getI()) && (getJ() == anotherCell.getJ());\n }",
"@Override\n public boolean connected(Station station1, Station station2) {\n if (station1.id() >= links.length || station2.id() >= links.length) {\n return station1.id() == station2.id();\n }\n return links[station1.id()] == links[station2.id()];\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof AddressMatchMapPK)) {\r\n return false;\r\n }\r\n AddressMatchMapPK other = (AddressMatchMapPK) object;\r\n if ((this.mapKey == null && other.mapKey != null) || (this.mapKey != null && !this.mapKey.equals(other.mapKey))) {\r\n return false;\r\n }\r\n if ((this.mapValue == null && other.mapValue != null) || (this.mapValue != null && !this.mapValue.equals(other.mapValue))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean allDuplicatesEqual() {\n int[] input = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5};\n int dupA = findDuplicatesA(input);\n int dupB = findDuplicatesB(input);\n int dupC = findDuplicatesC(input);\n int dupD = findDuplicatesD(input);\n int dupE = findDuplicatesE(input);\n return dupA == dupB && dupA == dupC && dupA == dupD && dupA == dupE;\n }",
"private boolean isMatch(AxiomTreeNode t1, AxiomTreeNode t2, AxiomTreeMapping mapping) {\n\n boolean match;\n //System.out.println(\"MATCHING: \" + t1 + \" \" + t2);\n //System.out.println(\"t1: \" + t1);\n //System.out.println(\"t2: \" + t2);\n // nodes must have the same number of children\n if (t1.getChildCount() != t2.getChildCount()) {\n match = false;\n //System.out.println(\"DIFFERENT CHILD COUNT\");\n //System.out.println(\"\");\n return match;\n }\n\n // string matching for operators\n if (isOperator(t1) && isOperator(t2)) {\n match = t1.sameLabel(t2);\n // System.out.println(\"OPERATORS. Label matching is: \"+ match);\n // System.out.println(\"\");\n return match;\n } else {\n // else check whether the nodes violate an existing mapping\n if (compatibleNodeTypes(t1, t2) && !mapping.violatesStrictMapping(t1, t2)) {\n \t//System.out.println(\"AT LEAST ONE NON OPERATOR. Compatible.\");\n \t//System.out.println(\"\");\n return true;\n }\n }\n //System.out.println(\"Fails all tests.\");\n //System.out.println(\"\");\n return false;\n\n }",
"public static boolean checkOpenSet(Vector<mapNode> openSet, mapNode tempNode){\n\t\tboolean check = false;\r\n\t\tfor(int i = 0; i < openSet.size(); i++){\r\n\t\t\tif(openSet.get(i).gridPosition[0] == tempNode.gridPosition[0] && openSet.get(i).gridPosition[1] == tempNode.gridPosition[1]){\r\n\t\t\t\tcheck = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn check;\r\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Location)) {\r\n return false;\r\n }\r\n Location other = (Location) object;\r\n if ((this.locId == null && other.locId != null) || (this.locId != null && !this.locId.equals(other.locId))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof MapPromoMch)) {\n return false;\n }\n MapPromoMch other = (MapPromoMch) object;\n if ((this.mapPromoMchId == null && other.mapPromoMchId != null) || (this.mapPromoMchId != null && !this.mapPromoMchId.equals(other.mapPromoMchId))) {\n return false;\n }\n return true;\n }",
"public static int isEqual(MyNode root0, MyNode root1) {\r\n int result = 0;\r\n\r\n if (root0 == null && root1 == null) {\r\n return 1;\r\n } else {\r\n if (root0 != null && root1 != null) {\r\n if (root0.getValue() == root1.getValue()) {\r\n if (isEqual(root0.getLeft(), root0.getLeft()) == 1) {\r\n result = isEqual(root0.getRight(), root1.getRight());\r\n }\r\n }\r\n }\r\n }\r\n\r\n return result;\r\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Match)) {\n return false;\n }\n return id != null && id.equals(((Match) o).id);\n }",
"public boolean isEqual(Road r) {\n if (this.targetVertex == r.targetVertex && this.startVertex == r.startVertex || this.targetVertex == r.startVertex && this.startVertex == r.targetVertex) {\n return true;\n } else {\n return false;\n }\n }",
"private boolean comparePersistentIdEntrys(@Nonnull PairwiseId one, @Nonnull PairwiseId other)\n {\n // Do not compare times\n //\n return Objects.equals(one.getPairwiseId(), other.getPairwiseId()) &&\n Objects.equals(one.getIssuerEntityID(), other.getIssuerEntityID()) &&\n Objects.equals(one.getRecipientEntityID(), other.getRecipientEntityID()) &&\n Objects.equals(one.getSourceSystemId(), other.getSourceSystemId()) &&\n Objects.equals(one.getPrincipalName(), other.getPrincipalName()) &&\n Objects.equals(one.getPeerProvidedId(), other.getPeerProvidedId());\n }",
"@Override\r\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof Point)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tPoint other = (Point) object;\r\n\t\tif ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean containsSameCoord(Point p) {\n boolean elementsContainsP = false;\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point pt = it.next();\n if (x(pt) == x(p) && y(pt) == y(p)) {\n elementsContainsP = true;\n break;\n }\n }\n return elementsContainsP;\n }",
"@Override\n\tpublic boolean equals(Object other)\n\t{\n if (other == this) \n {\n return true;\n }\n \n // Check if is an instance of this class:\n if (!(other instanceof RelativeLocation))\n {\n return false;\n }\n \n // Check if have same x and y values:\n RelativeLocation otherRelativeLocation = (RelativeLocation) other;\n \n return (this.getX() == otherRelativeLocation.getX()\n \t\t&& this.getY() == otherRelativeLocation.getY());\n\t\t\n\t}",
"@Override\r\n public boolean equals(Object o) {\r\n if (this == o) {\r\n return true;\r\n }\r\n if (!(o instanceof KArgon)) {\r\n return false;\r\n }\r\n return id != null && id.equals(((KArgon) o).id);\r\n }",
"@Override\n\tpublic List<Integer> getMapRelationsNodeForOneMap(int map_id) {\n\t\tResultSet resultSet = null;\n\t\tList<Integer> res = new ArrayList<Integer>();\n\t\ttry {\n\t\t\tString selectAllNodes = \"select distinct(newMap.id) from ((select node.id from maprelations,node \"\n\t\t\t\t\t+ \"where node.map_id = ? and maprelations.node_from=node.id) union \"\n\t\t\t\t\t+ \"(select node.id from maprelations,node where node.map_id = ? and \"\n\t\t\t\t\t+ \"maprelations.node_to =node.id)) as newMap;\";\n\t\t\tpstmt = conn.prepareStatement(selectAllNodes);\n\t\t\t// TODO: potential danger..\n\t\t\tpstmt.setInt(1, map_id);\n\t\t\tpstmt.setInt(2, map_id);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tres.add(resultSet.getInt(\"id\"));\n\t\t\t}\n\t\t\treturn res;\n\n\t\t} catch (SQLException se) {\n\t\t\tSystem.out.println(\"fail to connect database..\");\n\t\t\tse.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t\tJdbcConnect.connClose();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Dist)) {\r\n return false;\r\n }\r\n Dist other = (Dist) object;\r\n if ((this.distId == null && other.distId != null) || (this.distId != null && !this.distId.equals(other.distId))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object o){\r\n \tif(!(o instanceof Map)) return false;\r\n \tMap m = (Map)o;\r\n\t\tif (m.hashCode() != hashCode()) return false;\r\n\t\tif (m.keySet().size() != keySet().size()) return false;\r\n\t\tfor (K key : ((Map<K, V>) m).keySet()) {\r\n\t\t\tif (!containsKey(key)) return false;\r\n\t\t\tif (!get(key).equals(((Map) m).get(key))) return false;\r\n \t}\r\n \treturn true;\r\n }",
"public boolean equals(Object p) {\r\n return this.id == ((Point) p).id;\r\n }",
"boolean usedByNode(Long id);",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Node)) {\n return false;\n }\n Node node = (Node) o;\n return Objects.equals(course, node.course) && Objects\n .equals(nextNode, node.nextNode);\n }",
"public static boolean addressesAreEqual(InetSocketAddress addr1, InetSocketAddress addr2)\n {\n return (addr1 == null) ? (addr2 == null) : addr1.equals(addr2);\n }",
"public boolean inSameSet( T obj1, T obj2 )\n {\n // Find the root of each object; if either is not contained, the root\n // value will be null, and we throw an exception.\n Node root1 = getRoot(nodes.get(obj1));\n Node root2 = getRoot(nodes.get(obj2));\n if ( root1 == null && root2 == null )\n throw new NoSuchElementException( \"Sets do not contain either object: \" + obj1 + \", \" + obj2 );\n if ( root1 == null )\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj1 );\n if ( root2 == null )\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj2 );\n // If here, then have non-null root for each input; check if same Node.\n return root1 == root2;\n }",
"@Override\n\t\tpublic boolean equals(Object o) {\n\t\t\tif(o instanceof PlaceObj)\n\t\t\t return (((PlaceObj) o).id.equals(this.id)); \n\t\t\treturn false;\n\t\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Lit)) {\n return false;\n }\n Lit other = (Lit) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(@Nullable Object object) {\n // TODO: Warning - this method won't work in the case the id fields are not set\n if (!(object instanceof XBENodeTree)) {\n return false;\n }\n\n XBENodeTree other = (XBENodeTree) object;\n return this.getId() == other.getId();\n }",
"Collection<? extends Integer> getHasNodeID();",
"boolean isSameChildren(int nodeID, DependencyRelations deps){\n check(nodeID);\n if (deps == null)\n throw new IllegalArgumentException(\"the dependency relations is null.\");\n\n if (size_ != deps.size_)\n return false;\n\n Node a = nodes_[nodeID];\n Node b = deps.nodes_[nodeID];\n if (a.size_ != b.size_)\n return false;\n\n for(int i = 0; i < a.size_; i++){\n if (a.children_[i] != b.children_[i])\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof RealscheduleliteLocation)) {\r\n return false;\r\n }\r\n RealscheduleliteLocation other = (RealscheduleliteLocation) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof MestoPK)) {\r\n return false;\r\n }\r\n MestoPK other = (MestoPK) object;\r\n if (this.mestoId != other.mestoId) {\r\n return false;\r\n }\r\n if (this.ustanovaId != other.ustanovaId) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean equals(Node psNode)\r\n\t\t{\r\n\t\t\tif(data.equals(psNode.data))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof GePecasAprovacao)) {\r\n return false;\r\n }\r\n GePecasAprovacao other = (GePecasAprovacao) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof GlobalRegion)) {\n return false;\n }\n return id != null && id.equals(((GlobalRegion) o).id);\n }",
"private boolean checkRep()\r\n/* 126: */ {\r\n/* 127: */ Iterator localIterator2;\r\n/* 128:217 */ for (Iterator localIterator1 = this.map.keySet().iterator(); localIterator1.hasNext(); localIterator2.hasNext())\r\n/* 129: */ {\r\n/* 130:217 */ N n = (Object)localIterator1.next();\r\n/* 131:218 */ localIterator2 = ((Map)this.map.get(n)).keySet().iterator(); continue;N suc = (Object)localIterator2.next();\r\n/* 132:219 */ if (!((Map)this.map.get(suc)).containsKey(n)) {\r\n/* 133:220 */ return false;\r\n/* 134: */ }\r\n/* 135:223 */ if (!((Map)this.map.get(n)).get(suc).equals(((Map)this.map.get(suc)).get(n))) {\r\n/* 136:224 */ return false;\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139:230 */ return true;\r\n/* 140: */ }",
"@Override\n public boolean equals(Object object) {\n if(object instanceof RangeReadWriteLock) {\n RangeReadWriteLock other = (RangeReadWriteLock) object;\n return token.equals(other.token)\n && readers.size() == other.readers.size()\n && writers.size() == other.writers.size();\n }\n else {\n return false;\n }\n }",
"@Override public boolean equals(Object o) {\n if (this == o) { return true; }\n if ( !(o instanceof Set) ) { return false; }\n Set that = (Set) o;\n return that.size() == inner.size() &&\n containsAll(that);\n }",
"@Override\n public final boolean equals(Object obj) {\n if (!(obj instanceof UniqueID))\n return false;\n UniqueID castObj = (UniqueID)obj;\n return this.leastSigBits == castObj.leastSigBits && this.mostSigBits == castObj.mostSigBits;\n }",
"public boolean haveSameKeys(Tree<K, V> otherTree) {\n\t\tif (this.size() != otherTree.size()) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tTree<K, V> t = this;\n\t\t\tboolean sameKey = true;\n\t\t\treturn haveSameKeys(t, otherTree, sameKey);\n\t\t}\n\t}"
] | [
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.6484788",
"0.63116306",
"0.62412274",
"0.6229425",
"0.621035",
"0.6129876",
"0.60418284",
"0.60269654",
"0.60184056",
"0.59802985",
"0.59451354",
"0.5880409",
"0.58781886",
"0.5873116",
"0.5866767",
"0.58521885",
"0.5844302",
"0.58378947",
"0.5811458",
"0.5800001",
"0.5795235",
"0.57657665",
"0.575879",
"0.5683323",
"0.5658928",
"0.56429315",
"0.5621247",
"0.5605664",
"0.560295",
"0.5602684",
"0.5601641",
"0.5598022",
"0.5584791",
"0.55820113",
"0.55785507",
"0.5577194",
"0.55771536",
"0.556286",
"0.55610776",
"0.5556209",
"0.5547744",
"0.5542855",
"0.5538027",
"0.5532413",
"0.55319905",
"0.5519958",
"0.55143785",
"0.55071884",
"0.54946417",
"0.548956",
"0.54853487",
"0.5480341",
"0.54787135",
"0.5478639",
"0.5468489",
"0.54450464",
"0.5438749",
"0.5436261",
"0.5430672",
"0.5430312",
"0.54302806",
"0.54276",
"0.54196966",
"0.5415579",
"0.5412024",
"0.5404069",
"0.54003674",
"0.53925943",
"0.5386593",
"0.5386392",
"0.53850216",
"0.5382683",
"0.53792596",
"0.5373145",
"0.5373108",
"0.5363991",
"0.5363943",
"0.5361324",
"0.53561336",
"0.5354993",
"0.5349987",
"0.5349204",
"0.53463566",
"0.53425664",
"0.5334264",
"0.5331277",
"0.5327915",
"0.5326852"
] | 0.7446839 | 0 |
Returns hash code of loc LatLng, which should be unique. | @Override
public int hashCode() {
return loc.hashCode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int hashCode() {\n // This implementation will work, but you may want to modify it\n // for improved performance.\n\n checkRep();\n return (this.latitude / 1000000 + this.longitude / 1000000) / 2;\n }",
"@Override\n\tpublic int hashCode()\n\t{\n\t\tint hash = 5;\n\t\thash = 41 * hash + (int) (Double.doubleToLongBits(this.latitude) ^ (Double.doubleToLongBits(this.latitude) >>> 32));\n\t\thash = 41 * hash + (int) (Double.doubleToLongBits(this.longitude) ^ (Double.doubleToLongBits(this.longitude) >>> 32));\n\t\treturn hash;\n\t}",
"private int computeHash(URI location) {\n \t\treturn location.hashCode();\n \t}",
"@Override\n\t\tpublic int hashCode() {\n\t\t\treturn Integer.parseInt(lat.toString()) ^ Integer.parseInt(lng.toString());\n\t\t\t//return super.hashCode();\n\t\t}",
"@Override\n public int hashCode() {\n return Double.valueOf(lat).hashCode() + Double.valueOf(lon).hashCode();\n }",
"public long getLocation() {\n long result = 0;\n byte[] md5sum = MD5.md5.get().digest(Utf8.toBytes(toString()));\n for (int i=0; i<8; ++i) {\n result |= (md5sum[i] & 0xFFl) << (8*i);\n }\n\n return result;\n }",
"@Override\n public int hashCode() {\n \tint result=super.hashCode();\n \tresult+=(latitude*1000); // *1000 to increase the chance that coordinates nearby have a different hashcode \n \tresult+=(longitude*1000); \n \tresult+=altitude;\n \treturn result;\n }",
"@Override\n public int hashCode() {\n int result = 31 * this.name.hashCode();\n result += 31 * this.getLocation().getLatitude();\n result += 31 * this.getLocation().getLongitude();\n return result;\n }",
"public int hashcode();",
"@Override\n public int hashCode() {\n return Objects.hash(latitude, longitude, altitude, dateTimeZone, datum);\n }",
"@Test\n public void testPositionHashCode(){\n pos = Maze.position(90, 23423);\n assertEquals(26213, pos.hashCode());\n }",
"public int hashCode() {\n\tint hash = 3;\n\thash = 41 * hash + (this.utcTime != null ? this.utcTime.hashCode() : 0);\n\thash = 41 * hash + (this._long != null ? this._long.hashCode() : 0);\n\thash = 41 * hash + (this.lat != null ? this.lat.hashCode() : 0);\n\thash = 41 * hash + (this.elevation != null ? this.elevation.hashCode() : 0);\n\thash = 41 * hash + (this.heading != null ? this.heading.hashCode() : 0);\n\thash = 41 * hash + (this.speed != null ? this.speed.hashCode() : 0);\n\thash = 41 * hash + (this.posAccuracy != null ? this.posAccuracy.hashCode() : 0);\n\thash = 41 * hash + (this.timeConfidence != null ? this.timeConfidence.hashCode() : 0);\n\thash = 41 * hash + (this.posConfidence != null ? this.posConfidence.hashCode() : 0);\n\thash = 41 * hash + (this.speedConfidence != null ? this.speedConfidence.hashCode() : 0);\n\treturn hash;\n }",
"int getLocationID();",
"public int hashCode() {\n return (int) position;\n }",
"public String getHashCode();",
"int computeHashCode(byte val);",
"public String getLocationCode() {\n\t\treturn locationCode.get(this.unitID.substring(0, 2));\n\t}",
"public int hashCode() {\n/* 4742 */ int result = this.tilex + 1;\n/* 4743 */ result += Zones.worldTileSizeY * (this.tiley + 1);\n/* 4744 */ return result * (this.surfaced ? 1 : 2);\n/* */ }",
"int getMapPointID();",
"@Override\n public int hashCode() {\n return Objects.hash(coordinates, coordinateSystem);\n }",
"@Override\n\tpublic int hashCode() {\n\t\tString hashString = posX + \",\" + posY + \",\" + posZ;\n\t\treturn hashString.hashCode();\n\t}",
"public int hashcode(){\r\n\t\t\r\n\t\treturn last_Name.hashcode();\r\n\t}",
"public static String encode(double latitude, double longitude) {\n double[] latInterval = {-90.0, 90.0};\n double[] lngInterval = {-180.0, 180.0};\n\n final StringBuilder geohash = new StringBuilder();\n\n // the even bits are taken for the longitude code (0111110000000),\n // while the odd bits are taken for the latitude code (101111001001).\n boolean isEven = true;\n\n int bit = 0;\n int ch = 0;\n\n while (geohash.length() < PRECISION) {\n double mid = 0.0;\n if (isEven) { // for longitude\n mid = (lngInterval[0] + lngInterval[1]) / 2D;\n if (longitude > mid) { // belong to right interval\n // it means at current bit, it should be set to 1\n // because we need to write bit from left to right\n // so ch will do OR operation on high bit from BITS[]\n // for example lat: 40.5187, lng: 74.4121\n // it will calculate as 1 1 0 0 1 -> 25 -> BASE_32[25] -> t as first character\n // ch will grow if coordinate > mid at current binary reduction\n ch |= BITS[bit]; // set current bit as 1\n // System.out.println(\"EVEN \" + ch);\n lngInterval[0] = mid;\n } else {\n lngInterval[1] = mid;\n }\n } else {\n mid = (latInterval[0] + latInterval[1]) / 2D;\n if (latitude > mid) {\n // System.out.println(\"ODD \" + ch);\n // ch will grow if coordinate > mid at current binary reduction\n ch |= BITS[bit]; // set current bit as 1\n latInterval[0] = mid;\n } else {\n latInterval[1] = mid;\n }\n }\n\n isEven = !isEven;\n\n if (bit < 4) {\n bit++;\n } else { // convert to character in BASE_32 by each 5 bits\n // System.out.println(\"CURRENT \" + ch);\n geohash.append(BASE_32[ch]);\n bit = 0;\n ch = 0;\n }\n }\n return geohash.toString();\n }",
"public String getLocationCode() {\n return normalizedBic.substring(LOCATION_CODE_INDEX, LOCATION_CODE_INDEX + LOCATION_CODE_LENGTH);\n }",
"long hash(Block block, int position);",
"@Override\n\tpublic long getHashCode(String key) {\n\t\tlong hash = 0;\n\t\tlong b = 378551;\n\t\tlong a = 63689;\n\t\tint tmp = 0;\n\t\tfor (int i = 0; i < key.length(); i++) {\n\t\t\ttmp = key.charAt(i);\n\t\t\thash = hash * a + tmp;\n\t\t\ta *= b;\n\t\t}\n\t\treturn hash;\n\t}",
"@Override\n public int hashCode() {\n return Integer.parseInt(this.getPawnOne().getPositionNr() + \"\" + this.getPawnTwo().getPositionNr());\n }",
"@Override\n public int hashCode() {\n int hash = 7;\n hash = 43 * hash + this.id;\n hash = 43 * hash + this.size;\n hash = 43 * hash + Objects.hashCode(this.orientation);\n hash = 43 * hash + Objects.hashCode(this.currentPosition);\n return hash;\n }",
"public int hashCode()\n {\n return inDegrees();\n }",
"@Override\n public int hashCode() {\n int hash = 3;\n hash = 97 * hash + this.x;\n hash = 97 * hash + this.y;\n return hash;\n }",
"@Override\r\n\t\t\t\tpublic int hashCode() {\r\n\t\t\t\t\t// Método hashcode aleatório projetado para ser geralmente único\r\n\t\t\t\t\treturn this.x + this.y * 256;\r\n\t\t\t\t}",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"int getMapID();",
"public int hashCode(String s){\r\n int length = s.length();\r\n int h = 0;\r\n for(int i = 0; i < length; i++){\r\n h = h + ((int)s.indexOf(i))*(37^(length - 1));\r\n }\r\n return h;\r\n }",
"public int hashCode()\n {\n return getMap().hashCode();\n }",
"public int hashCode() {\n int result = 17;\n\n if (_address != null) {\n result = 37 * result + _address.hashCode();\n }\n\n return result;\n }",
"@Override\n @PersistField(id = true, name = \"id\", readonly = true)\n public int hashCode()\n {\n int positionHash = position == null ? 0 : position.hashCode();\n int worldHash = worldData == null ? 0 : worldData.getName().hashCode();\n return positionHash ^ worldHash << 14;\n }",
"public int hashCode()\n\t{\n\t\treturn mX * gMaximumCoordinateValue + mY;\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\treturn map.hashCode() ^ y() << 16 ^ x();\n\t}",
"@Override\n public int hashCode() {\n /*A nice property of 31 is that the\n multiplication can be replaced by a shift and a subtraction for better performance:\n 31 * i == (i << 5) - i.*/\n int result = (int) areaCode;\n result = 31 * result + (int) prefix;//\n result = 31 * result + (int) lineNumber;\n return result;\n }",
"int hashCode();",
"int hashCode();",
"@Override\n\tpublic int getLocationId() {\n\t\treturn _locMstLocation.getLocationId();\n\t}",
"public int hashCode() {\n return 37 * 17;\n }",
"public int hashCode() {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[28]++;\r\n long start = getStartMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[29]++;\r\n long end = getEndMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[30]++;\r\n int result = 97;\r\n result = 31 * result + ((int) (start ^ (start >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[31]++;\r\n result = 31 * result + ((int) (end ^ (end >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[32]++;\r\n result = 31 * result + getChronology().hashCode();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[33]++;\r\n return result;\r\n }",
"public int hashCode();",
"public int hashCode();",
"public int hashCode();",
"public int hashCode();",
"int getHash();",
"public int hashCode() {\n/* 151 */ int i = this.addrType.hashCode();\n/* 152 */ for (byte b = 0; b < this.buf.length; b++) {\n/* 153 */ i += this.buf[b];\n/* */ }\n/* 155 */ return i;\n/* */ }",
"@Override\n public int hashCode() {\n return addr.hashCode();\n }",
"@Override\n public int hashCode() {\n\treturn (rowIndex * 10) + colIndex; \n }",
"@Override\n\tpublic int hashCode() {\n\t\treturn Double.hashCode(getX()) + \n\t\t\t\tDouble.hashCode(getY()) * 971;\n\t}",
"private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }",
"public int hashCode() {\n\t\tlong code = 0;\n\t\tint elements = _rowCount * _columnCount;\n\n\t\tfor (int i = 0; i < elements; i++) {\n\t\t\tcode += _value[i];\n\t\t}\n\n\t\treturn (int) code;\n\t}",
"public int hashCode()\n\t{\n\t\treturn y<<16+x;\n\t}",
"public int hashCode() {\n if (myhash == -1) {\n myhash = timestamp.hashCode() + signerCertPath.hashCode();\n }\n return myhash;\n }",
"@Override\n public int hashCode() {\n\n int result = 1;\n result = 31 * result + cityId;\n return result;\n }",
"@Override\n public int hashCode() {\n return Objects.hash(xCoordinate, yCoordinate, dataPoints);\n }",
"@Override\n public int hashCode() {\n return hash(this.getCoordinate(), this.getSide());\n }",
"public int hashCode() {\n int hashCode = 0;\n\n for (int i=0; i < mag.length; i++)\n hashCode = (int)(31*hashCode + (mag[i] & LONG_MASK));\n\n return hashCode * signum;\n }",
"public static native double geoidh(double lat, double lon);",
"@Override\n public int hashCode() {\n return Objects.hash(mGx, mGy, mGz);\n }",
"public int generateHashCode() {\n int code = getClass().hashCode();\n ASTSpanInfo temp_info = getInfo();\n code ^= temp_info.hashCode();\n LHS temp_obj = getObj();\n code ^= temp_obj.hashCode();\n Expr temp_index = getIndex();\n code ^= temp_index.hashCode();\n return code;\n }",
"public int hashCode() {\n/* 781 */ return getUniqueId().hashCode();\n/* */ }",
"public static GeoHash generateGeoHash(final GeoPoint geoPoint) {\n final S2LatLng latLng = S2LatLng.fromDegrees(geoPoint.getLatitude(), geoPoint.getLongitude());\n// final S2Cell cell = new S2Cell(latLng);\n// final S2CellId cellId = cell.id();\n final S2CellId cellId = S2CellId.fromLatLng(latLng);\n return new GeoHash(cellId.id());\n }",
"public int hashCode() {\n int result = 17;\n result = 37 * result + column;\n result = 37 * result + sortOrder.hashCode();\n return result;\n }",
"public long getLocationID() {\n return locationID;\n }",
"@Override\n public int hashCode() {\n return (int) (Double.doubleToLongBits (toDouble())>>31);\n }",
"public int hashCode() {\n return registrationNumber.hashCode(); // In this case there is the simplest and best solving.\n }",
"int toHashKey(String s)\n\t{\n\t\tint A = 1952786893;\n\t\tint B = 367257;\n\t\tint v = B;\n\t\tfor (int j = 0; j < s.length(); j++)\n\t\t{\n\t\t\tchar c = s.charAt(j);\n\t\t\tv = A * (v + (int) c + j) + B;\n\t\t}\n\n\t\tif (v < 0) v = -v;\n\t\treturn v;\n\t}",
"public int getHashCode(){\n return hashCode();\n }",
"public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[] tkn = getToken();\n for (int i=0; i<tkn.length; i++)\n hash ^= (int)tkn[i];\n }\n hash ^= (type_ ^ 14401);\n hash ^= (timeoutInterval_ ^ 21327);\n hash ^= (isPrivate() ? 15501 : 12003);\n if (getPrincipal() != null)\n hash ^= getPrincipal().hashCode();\n if (getSystem() != null)\n hash ^= getSystem().getSystemName().hashCode();\n return hash;\n }",
"public abstract int hashCode();",
"String getMapCode();",
"@Override public int hashCode() {\n return Objects.hash(city, country, subdivision, line1, line2, line3, line4, line5, postalCode);\n }",
"public int hashCode()\r\n/* 124: */ {\r\n/* 125:126 */ return this.id;\r\n/* 126: */ }",
"public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }",
"@SuppressWarnings(\"WeakerAccess\")\n abstract public int hash(char c);",
"public int hashCode() {\n\t\treturn 14356 + historyIndex * 373 + dimension; \n\t\t// return some arbitrary number related to historyIndex and dimension\n\t}",
"public static long hashName(String name) {\n\t\t\tlong res = 123;\n\t\t\tfor (int i = 0; i < name.length(); ++i) {\n\t\t\t\tres = (res << 8) | (res >>> 56);\n\t\t\t\tres += name.charAt(i);\n\t\t\t\tif ((res & 1) == 0) {\n\t\t\t\t\tres ^= 0x00000000feabfeabL; // Some kind of feedback\n\t\t\t\t}\n\t\t\t}\n\t\t\tres |= 0x8000000000000000L; // Make sure the hash is negative (to distinguish it from database id's)\n\t\t\treturn res;\n\t\t}",
"@Override\r\n\tpublic int hashCode() {\n\t\tint result = 17;\r\n\t\tresult = 37*result+(int) (id ^ (id>>>32));\r\n\t\t//result = 37*result+(name==null?0:name.hashCode());\r\n\t\t//result = 37*result+displayOrder;\r\n\t\t//result = 37*result+(this.url==null?0:url.hashCode());\r\n\t\treturn result;\r\n\t}",
"public String getLocationNumber()\n\t{\n\t\tString locationNo = getContent().substring(OFF_ID27_LOCATION, OFF_ID27_LOCATION + LEN_ID27_LOCATION) ;\n\t\treturn (locationNo);\n\t}",
"public int hashCode()\n {\n int hash = this.getClass().hashCode();\n\n hash = ( hash << 1 | hash >>> 31 ) ^ Arrays.hashCode(genome);\n\n return hash;\n }",
"public static int charSequenceHashCode(CharSequence seq) {\n return charSequenceHashCode(seq, false);\n }",
"public int hashCode() {\n\t\treturn new HashCodeBuilder().append(obox).append(wordOffsets).append(occlusions).toHashCode();\n\t}",
"int getLngE6();",
"int getLngE6();"
] | [
"0.70301086",
"0.6990472",
"0.6841492",
"0.67283535",
"0.65791714",
"0.65425897",
"0.6542285",
"0.63362586",
"0.62147856",
"0.61313486",
"0.6118298",
"0.60630614",
"0.60033154",
"0.5964819",
"0.59367204",
"0.5898358",
"0.5851543",
"0.5840578",
"0.58190024",
"0.581846",
"0.5779475",
"0.57702404",
"0.5749299",
"0.5741974",
"0.5722486",
"0.5714064",
"0.5709407",
"0.56966996",
"0.56817234",
"0.5664362",
"0.5618972",
"0.5612603",
"0.5612603",
"0.5612603",
"0.5612603",
"0.5612603",
"0.5612603",
"0.5612603",
"0.5612603",
"0.5612603",
"0.5612603",
"0.5612603",
"0.5612603",
"0.5612603",
"0.5593953",
"0.55798244",
"0.5572729",
"0.55698",
"0.55665255",
"0.55659956",
"0.5556912",
"0.5531795",
"0.5531795",
"0.5521139",
"0.55143887",
"0.55105776",
"0.5501514",
"0.5501514",
"0.5501514",
"0.5501514",
"0.54985106",
"0.54867625",
"0.5476173",
"0.54760516",
"0.54710543",
"0.54261225",
"0.54209614",
"0.54163384",
"0.5413741",
"0.54070663",
"0.5406716",
"0.5397835",
"0.5391346",
"0.5389724",
"0.53879374",
"0.5377039",
"0.5376719",
"0.5363214",
"0.53385335",
"0.5337557",
"0.5321645",
"0.5318768",
"0.53139704",
"0.53023314",
"0.53013575",
"0.5294239",
"0.52909625",
"0.5287543",
"0.52864444",
"0.52827734",
"0.52813154",
"0.52803624",
"0.5279091",
"0.52760214",
"0.5273152",
"0.5269565",
"0.52665555",
"0.5264801",
"0.5263654",
"0.5263654"
] | 0.6851667 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.